From 1d79767c7a4c90b55cca16e72c2fa9788537c7cb Mon Sep 17 00:00:00 2001 From: d10sfan Date: Mon, 2 Dec 2024 16:22:37 +0000 Subject: [PATCH] deploy: luxtorpeda-dev/packages@f209ca5bad74636aad5a2b1cc6c2d30f67f73293 --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 03994d3..c0c9589 100644 --- a/main.js +++ b/main.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebui=self.webpackChunkwebui||[]).push([[792],{344:()=>{function ya(e,n,t,i,r,o,s){try{var a=e[o](s),l=a.value}catch(c){return void t(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function ii(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function s(l){ya(o,i,r,s,a,"next",l)}function a(l){ya(o,i,r,s,a,"throw",l)}s(void 0)})}}let et=null,ba=!1,Yf=1;const vt=Symbol("SIGNAL");function X(e){const n=et;return et=e,n}const Po={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 wa(e){if(ba)throw new Error("");if(null===et)return;et.consumerOnSignalRead(e);const n=et.nextProducerIndex++;Wc(et),ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ea(e){Wc(e);for(let n=0;n0}function Wc(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Qb(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Xb(e){return void 0!==e.producerNode}let Jb=function zF(){throw new Error};function ew(){Jb()}function Jf(e,n){Wb()||ew(),e.equal(e.value,n)||(e.value=n,function WF(e){e.version++,function jF(){Yf++}(),qb(e)}(e))}const ep={...Po,equal:function Zf(e,n){return Object.is(e,n)},value:void 0};const tp=()=>{};function ue(e){return"function"==typeof e}function np(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const ip=np(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Kc(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Ze{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(ue(i))try{i()}catch(o){n=o instanceof ip?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{iw(o)}catch(s){n=n??[],s instanceof ip?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ip(n)}}add(n){var t;if(n&&n!==this)if(this.closed)iw(n);else{if(n instanceof Ze){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Kc(t,n)}remove(n){const{_finalizers:t}=this;t&&Kc(t,n),n instanceof Ze&&n._removeParent(this)}}Ze.EMPTY=(()=>{const e=new Ze;return e.closed=!0,e})();const tw=Ze.EMPTY;function nw(e){return e instanceof Ze||e&&"closed"in e&&ue(e.remove)&&ue(e.add)&&ue(e.unsubscribe)}function iw(e){ue(e)?e():e.unsubscribe()}const Rr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Qc={setTimeout(e,n,...t){const{delegate:i}=Qc;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=Qc;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function rw(e){Qc.setTimeout(()=>{const{onUnhandledError:n}=Rr;if(!n)throw e;n(e)})}function rp(){}const KF=op("C",void 0,void 0);function op(e,n,t){return{kind:e,value:n,error:t}}let Nr=null;function Xc(e){if(Rr.useDeprecatedSynchronousErrorHandling){const n=!Nr;if(n&&(Nr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=Nr;if(Nr=null,t)throw i}}else e()}class sp extends Ze{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,nw(n)&&n.add(this)):this.destination=iO}static create(n,t,i){return new Sa(n,t,i)}next(n){this.isStopped?lp(function XF(e){return op("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?lp(function QF(e){return op("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?lp(KF,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()}}}const eO=Function.prototype.bind;function ap(e,n){return eO.call(e,n)}class tO{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){Jc(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){Jc(i)}else Jc(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Jc(t)}}}class Sa extends sp{constructor(n,t,i){let r;if(super(),ue(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&Rr.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&ap(n.next,o),error:n.error&&ap(n.error,o),complete:n.complete&&ap(n.complete,o)}):r=n}this.destination=new tO(r)}}function Jc(e){Rr.useDeprecatedSynchronousErrorHandling?function JF(e){Rr.useDeprecatedSynchronousErrorHandling&&Nr&&(Nr.errorThrown=!0,Nr.error=e)}(e):rw(e)}function lp(e,n){const{onStoppedNotification:t}=Rr;t&&Qc.setTimeout(()=>t(e,n))}const iO={closed:!0,next:rp,error:function nO(e){throw e},complete:rp},cp="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ki(e){return e}function ow(e){return 0===e.length?Ki:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}let Be=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function sO(e){return e&&e instanceof sp||function oO(e){return e&&ue(e.next)&&ue(e.error)&&ue(e.complete)}(e)&&nw(e)}(t)?t:new Sa(t,i,r);return Xc(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=sw(i))((r,o)=>{const s=new Sa({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[cp](){return this}pipe(...t){return ow(t)(this)}toPromise(t){return new(t=sw(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return e.create=n=>new e(n),e})();function sw(e){var n;return null!==(n=e??Rr.Promise)&&void 0!==n?n:Promise}const aO=np(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Q=(()=>{class e extends Be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new aw(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new aO}next(t){Xc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){Xc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){Xc(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:o}=this;return i||r?tw:(this.currentObservers=null,o.push(t),new Ze(()=>{this.currentObservers=null,Kc(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new Be;return t.source=this,t}}return e.create=(n,t)=>new aw(n,t),e})();class aw extends Q{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:tw}}class an extends Q{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function lw(e){return ue(e?.lift)}function tt(e){return n=>{if(lw(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ze(e,n,t,i,r){return new lO(e,n,t,i,r)}class lO extends sp{constructor(n,t,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}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()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function K(e,n){return tt((t,i)=>{let r=0;t.subscribe(ze(i,o=>{i.next(e.call(n,o,r++))}))})}const cw="https://g.co/ng/security#xss";class b extends Error{code;constructor(n,t){super(function Vo(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}const ed=Symbol("InputSignalNode#UNSET"),dw={...ep,transformFn:void 0,applyValueToInputSignal(e,n){Jf(e,n)}};function uw(e,n){const t=Object.create(dw);function i(){if(wa(t),t.value===ed)throw new b(-950,!1);return t.value}return t.value=e,t.transformFn=n?.transform,i[vt]=t,i}function Mi(e){return{toString:e}.toString()}const jo="__parameters__";function Uo(e,n,t){return Mi(()=>{const i=function dp(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,d){const u=l.hasOwnProperty(jo)?l[jo]:Object.defineProperty(l,jo,{value:[]})[jo];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const Le=globalThis;function we(e){for(let n in e)if(e[n]===we)return n;throw Error("Could not find renamed property on target object.")}function cO(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function dt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(dt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function up(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const dO=we({__forward_ref__:we});function Ie(e){return e.__forward_ref__=Ie,e.toString=function(){return dt(this())},e}function j(e){return td(e)?e():e}function td(e){return"function"==typeof e&&e.hasOwnProperty(dO)&&e.__forward_ref__===Ie}function S(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Me(e){return{providers:e.providers||[],imports:e.imports||[]}}function nd(e){return fw(e,rd)||fw(e,pw)}function fw(e,n){return e.hasOwnProperty(n)?e[n]:null}function id(e){return e&&(e.hasOwnProperty(hp)||e.hasOwnProperty(gO))?e[hp]:null}const rd=we({\u0275prov:we}),hp=we({\u0275inj:we}),pw=we({ngInjectableDef:we}),gO=we({ngInjectorDef:we});class C{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,t){this._desc=n,this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=S({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function _p(e){return e&&!!e.\u0275providers}const Ia=we({\u0275cmp:we}),vp=we({\u0275dir:we}),yp=we({\u0275pipe:we}),gw=we({\u0275mod:we}),Ti=we({\u0275fac:we}),Ma=we({__NG_ELEMENT_ID__:we}),_w=we({__NG_ENV_ID__:we});function Z(e){return"string"==typeof e?e:null==e?"":String(e)}function bp(e,n){throw new b(-201,!1)}var ne=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ne||{});let wp;function vw(){return wp}function Xt(e){const n=wp;return wp=e,n}function yw(e,n,t){const i=nd(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&ne.Optional?null:void 0!==n?n:void bp()}const Ta={},Cp="__NG_DI_FLAG__",od="ngTempTokenPath",CO=/\n/gm,bw="__source";let zo;function Xi(e){const n=zo;return zo=e,n}function xO(e,n=ne.Default){if(void 0===zo)throw new b(-203,!1);return null===zo?yw(e,void 0,n):zo.get(e,n&ne.Optional?null:void 0,n)}function M(e,n=ne.Default){return(vw()||xO)(j(e),n)}function g(e,n=ne.Default){return M(e,sd(n))}function sd(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ep(e){const n=[];for(let t=0;tArray.isArray(t)?$o(t,n):n(t))}function Cw(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function ad(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function cn(e,n,t){let i=Go(e,n);return i>=0?e[1|i]=t:(i=~i,function Ew(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function xp(e,n){const t=Go(e,n);if(t>=0)return e[1|t]}function Go(e,n){return function Dw(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=e[o<n?r=o:i=o+1}return~(r<{t.push(s)};return $o(n,s=>{const a=s;dd(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&Sw(r,o),t}function Sw(e,n){for(let t=0;t{n(o,i)})}}function dd(e,n,t,i){if(!(e=j(e)))return!1;let r=null,o=id(e);const s=!o&&ee(e);if(o||s){if(s&&!s.standalone)return!1;r=e}else{const l=e.ngModule;if(o=id(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)dd(c,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{$o(o.imports,d=>{dd(d,n,t,i)&&(c||=[],c.push(d))})}finally{}void 0!==c&&Sw(c,n)}if(!a){const c=Or(r)||(()=>new r);n({provide:r,useFactory:c,deps:he},r),n({provide:Sp,useValue:r,multi:!0},r),n({provide:Dn,useValue:()=>M(r),multi:!0},r)}const l=o.providers;if(null!=l&&!a){const c=e;Mp(l,d=>{n(d,c)})}}}return r!==e&&void 0!==e.providers}function Mp(e,n){for(let t of e)_p(t)&&(t=t.\u0275providers),Array.isArray(t)?Mp(t,n):n(t)}const FO=we({provide:String,useValue:we});function Tp(e){return null!==e&&"object"==typeof e&&FO in e}function Pr(e){return"function"==typeof e}const Ap=new C(""),ud={},PO={};let kp;function hd(){return void 0===kp&&(kp=new cd),kp}class Dt{}class qo extends Dt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,Np(n,s=>this.processProvider(s)),this.records.set(xw,Wo(void 0,this)),r.has("environment")&&this.records.set(Dt,Wo(void 0,this));const o=this.records.get(Ap);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Sp,he,ne.Self))}destroy(){Ra(this),this._destroyed=!0;const n=X(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of t)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),X(n)}}onDestroy(n){return Ra(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Ra(this);const t=Xi(this),i=Xt(void 0);try{return n()}finally{Xi(t),Xt(i)}}get(n,t=Ta,i=ne.Default){if(Ra(this),n.hasOwnProperty(_w))return n[_w](this);i=sd(i);const o=Xi(this),s=Xt(void 0);try{if(!(i&ne.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function HO(e){return"function"==typeof e||"object"==typeof e&&e instanceof C}(n)&&nd(n);l=c&&this.injectableDefInScope(c)?Wo(Rp(n),ud):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&ne.Self?hd():this.parent).get(n,t=i&ne.Optional&&t===Ta?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[od]=a[od]||[]).unshift(dt(n)),o)throw a;return function IO(e,n,t,i){const r=e[od];throw n[bw]&&r.unshift(n[bw]),e.message=function MO(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=dt(n);if(Array.isArray(n))r=n.map(dt).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):dt(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(CO,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[od]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{Xt(s),Xi(o)}}resolveInjectorInitializers(){const n=X(null),t=Xi(this),i=Xt(void 0);try{const o=this.get(Dn,he,ne.Self);for(const s of o)s()}finally{Xi(t),Xt(i),X(n)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(dt(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){let t=Pr(n=j(n))?n:j(n&&n.provide);const i=function VO(e){return Tp(e)?Wo(void 0,e.useValue):Wo(Tw(e),ud)}(n);if(!Pr(n)&&!0===n.multi){let r=this.records.get(t);r||(r=Wo(void 0,ud,!0),r.factory=()=>Ep(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){const i=X(null);try{return t.value===ud&&(t.value=PO,t.value=t.factory()),"object"==typeof t.value&&t.value&&function jO(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{X(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=j(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function Rp(e){const n=nd(e),t=null!==n?n.factory:Or(e);if(null!==t)return t;if(e instanceof C)throw new b(204,!1);if(e instanceof Function)return function LO(e){if(e.length>0)throw new b(204,!1);const t=function mO(e){return e&&(e[rd]||e[pw])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new b(204,!1)}function Tw(e,n,t){let i;if(Pr(e)){const r=j(e);return Or(r)||Rp(r)}if(Tp(e))i=()=>j(e.useValue);else if(function Mw(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Ep(e.deps||[]));else if(function Iw(e){return!(!e||!e.useExisting)}(e))i=()=>M(j(e.useExisting));else{const r=j(e&&(e.useClass||e.provide));if(!function BO(e){return!!e.deps}(e))return Or(r)||Rp(r);i=()=>new r(...Ep(e.deps))}return i}function Ra(e){if(e.destroyed)throw new b(205,!1)}function Wo(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Np(e,n){for(const t of e)Array.isArray(t)?Np(t,n):t&&_p(t)?Np(t.\u0275providers,n):n(t)}function xn(e,n){e instanceof qo&&Ra(e);const i=Xi(e),r=Xt(void 0);try{return n()}finally{Xi(i),Xt(r)}}function Aw(){return void 0!==vw()||null!=function DO(){return zo}()}function Zo(e){if(!Aw())throw new b(-203,!1)}const z=11,T=25;var _d=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(_d||{});function Qe(e){return Array.isArray(e)&&"object"==typeof e[1]}function ft(e){return Array.isArray(e)&&!0===e[1]}function Pp(e){return!!(4&e.flags)}function nr(e){return e.componentOffset>-1}function vd(e){return!(1&~e.flags)}function jn(e){return!!e.template}function Fa(e){return!!(512&e[2])}class JO{previousValue;currentValue;firstChange;constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Lw(e,n,t,i){null!==n?n.applyValueToInputSignal(n,i):e[t]=i}const un=(()=>{const e=()=>Vw;return e.ngInherit=!0,e})();function Vw(e){return e.type.prototype.ngOnChanges&&(e.setInput=tP),eP}function eP(){const e=jw(this),n=e?.current;if(n){const t=e.previous;if(t===ri)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function tP(e,n,t,i,r){const o=this.declaredInputs[i],s=jw(e)||function nP(e,n){return e[Bw]=n}(e,{previous:ri,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new JO(c&&c.currentValue,t,l===ri),Lw(e,n,r,t)}const Bw="__ngSimpleChanges__";function jw(e){return e[Bw]||null}function ce(e){for(;Array.isArray(e);)e=e[0];return e}function Oa(e,n){return ce(n[e])}function Ht(e,n){return ce(n[e.index])}function ts(e,n){return e.data[n]}function hn(e,n){const t=n[e];return Qe(t)?t:t[0]}function Hp(e){return!(128&~e[2])}function Sn(e,n){return null==n?null:e[n]}function zw(e){e[17]=0}function Up(e){1024&e[2]||(e[2]|=1024,Hp(e)&&Pa(e))}function yd(e){return!!(9216&e[2]||e[24]?.dirty)}function zp(e){e[10].changeDetectionScheduler?.notify(9),64&e[2]&&(e[2]|=1024),yd(e)&&Pa(e)}function Pa(e){e[10].changeDetectionScheduler?.notify(0);let n=ki(e);for(;null!==n&&!(8192&n[2])&&(n[2]|=8192,Hp(n));)n=ki(n)}function bd(e,n){if(!(256&~e[2]))throw new b(911,!1);null===e[21]&&(e[21]=[]),e[21].push(n)}function ki(e){const n=e[3];return ft(n)?n[3]:n}const $={lFrame:eC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let qp=!1;function Gw(){return $.bindingsEnabled}function Hr(){return null!==$.skipHydrationRootTNode}function w(){return $.lFrame.lView}function H(){return $.lFrame.tView}function Cd(e){return $.lFrame.contextLView=e,e[8]}function Ed(e){return $.lFrame.contextLView=null,e}function re(){let e=qw();for(;null!==e&&64===e.type;)e=e.parent;return e}function qw(){return $.lFrame.currentTNode}function Hn(e,n){const t=$.lFrame;t.currentTNode=e,t.isParent=n}function Wp(){return $.lFrame.isParent}function Zp(){$.lFrame.isParent=!1}function Yw(){return qp}function Dd(e){const n=qp;return qp=e,n}function In(){return $.lFrame.bindingIndex++}function Ni(e){const n=$.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function gP(e,n){const t=$.lFrame;t.bindingIndex=t.bindingRootIndex=e,Yp(n)}function Yp(e){$.lFrame.currentDirectiveIndex=e}function Qp(){return $.lFrame.currentQueryIndex}function xd(e){$.lFrame.currentQueryIndex=e}function vP(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[5]:null}function Xw(e,n,t){if(t&ne.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&ne.Host||(r=vP(o),null===r||(o=o[14],10&r.type))););if(null===r)return!1;n=r,e=o}const i=$.lFrame=Jw();return i.currentTNode=n,i.lView=e,!0}function Xp(e){const n=Jw(),t=e[1];$.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Jw(){const e=$.lFrame,n=null===e?null:e.child;return null===n?eC(e):n}function eC(e){const 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:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function tC(){const e=$.lFrame;return $.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const nC=tC;function Jp(){const e=tC();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function xt(){return $.lFrame.selectedIndex}function Ur(e){$.lFrame.selectedIndex=e}function Ee(){const e=$.lFrame;return ts(e.tView,e.selectedIndex)}let oC=!0;function Va(){return oC}function li(e){oC=e}function Sd(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t=i)break}else n[l]<0&&(e[17]+=65536),(a>14>16&&(3&e[2])===n&&(e[2]+=16384,aC(a,o)):aC(a,o)}class Ba{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,t,i){this.factory=n,this.canSeeViewProviders=t,this.injectImpl=i}}function im(e,n,t){let i=0;for(;in){s=o-1;break}}}for(;o>16}(e),i=n;for(;t>0;)i=i[14],t--;return i}let sm=!0;function Td(e){const n=sm;return sm=e,n}let kP=0;const ci={};function Ad(e,n){const t=fC(e,n);if(-1!==t)return t;const i=n[1];i.firstCreatePass&&(e.injectorIndex=n.length,am(i.data,e),am(n,null),am(i.blueprint,null));const r=kd(e,n),o=e.injectorIndex;if(om(r)){const s=Ha(r),a=Ua(r,n),l=a[1].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function am(e,n){e.push(0,0,0,0,0,0,0,0,n)}function fC(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function kd(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){if(i=bC(r),null===i)return-1;if(t++,r=r[14],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function lm(e,n,t){!function RP(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Ma)&&(i=t[Ma]),null==i&&(i=t[Ma]=kP++);const r=255&i;n.data[e+(r>>5)]|=1<=0?255&n:PP:n}(t);if("function"==typeof o){if(!Xw(n,e,i))return i&ne.Host?pC(r,0,i):mC(n,t,i,r);try{let s;if(s=o(i),null!=s||i&ne.Optional)return s;bp()}finally{nC()}}else if("number"==typeof o){let s=null,a=fC(e,n),l=-1,c=i&ne.Host?n[15][5]:null;for((-1===a||i&ne.SkipSelf)&&(l=-1===a?kd(e,n):n[a+8],-1!==l&&yC(i,!1)?(s=n[1],a=Ha(l),n=Ua(l,n)):a=-1);-1!==a;){const d=n[1];if(vC(o,a,d.data)){const u=FP(a,n,t,s,i,c);if(u!==ci)return u}l=n[a+8],-1!==l&&yC(i,n[1].data[a+8]===c)&&vC(o,a,n)?(s=d,a=Ha(l),n=Ua(l,n)):a=-1}}return r}function FP(e,n,t,i,r,o){const s=n[1],a=s.data[e+8],d=Rd(a,s,t,null==i?nr(a)&&sm:i!=s&&!!(3&a.type),r&ne.Host&&o===a);return null!==d?$r(n,s,d,a):ci}function Rd(e,n,t,i,r){const o=e.providerIndexes,s=n.data,a=1048575&o,l=e.directiveStart,d=o>>20,f=r?a+d:e.directiveEnd;for(let h=i?a:a+d;h=l&&p.type===t)return h}if(r){const h=s[l];if(h&&jn(h)&&h.type===t)return l}return null}function $r(e,n,t,i){let r=e[t];const o=n.data;if(function xP(e){return e instanceof Ba}(r)){const s=r;s.resolving&&function yO(e,n){throw n&&n.join(" > "),new b(-200,e)}(function ge(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Z(e)}(o[t]));const a=Td(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Xt(s.injectImpl):null;Xw(e,i,ne.Default);try{r=e[t]=s.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&&function EP(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=Vw(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}r&&(t.preOrderHooks??=[]).push(0-e,r),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==c&&Xt(c),Td(a),s.resolving=!1,nC()}}return r}function vC(e,n,t){return!!(t[n+(e>>5)]&1<{const n=e.prototype.constructor,t=n[Ti]||cm(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[Ti]||cm(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function cm(e){return td(e)?()=>{const n=cm(j(e));return n&&n()}:Or(e)}function bC(e){const n=e[1],t=n.type;return 2===t?n.declTNode:1===t?e[5]:null}function za(e){return function NP(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;rM(xw)});static __NG_ELEMENT_ID__=-1}class GP{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>za(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}new C("").__NG_ELEMENT_ID__=e=>{const n=re();if(null===n)throw new b(204,!1);if(2&n.type)return n.value;if(e&ne.Optional)return null;throw new b(204,!1)};const IC=!1;let ir=(()=>class e{static __NG_ELEMENT_ID__=WP;static __NG_ENV_ID__=t=>t})();class MC extends ir{_lView;constructor(n){super(),this._lView=n}onDestroy(n){return bd(this._lView,n),()=>function $p(e,n){if(null===e[21])return;const t=e[21].indexOf(n);-1!==t&&e[21].splice(t,1)}(this._lView,n)}}function WP(){return new MC(w())}class Fi{}const $a=new C("",{providedIn:"root",factory:()=>!1}),TC=new C(""),um=new C("");let Un=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new an(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}has(t){return this.pendingTasks.has(t)}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();const fe=class YP extends Q{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,Aw()&&(this.destroyRef=g(ir,{optional:!0})??void 0,this.pendingTasks=g(Un,{optional:!0})??void 0)}emit(n){const t=X(null);try{super.next(n)}finally{X(t)}}subscribe(n,t,i){let r=n,o=t||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof Ze&&n.add(a),a}wrapInTimeout(n){return t=>{const i=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==i&&this.pendingTasks?.remove(i)})}}};function Ga(...e){}function AC(e){let n,t;function i(){e=Ga;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),i()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{e(),i()})),()=>i()}function kC(e){return queueMicrotask(()=>e()),()=>{e=Ga}}const hm="isAngularZone",Fd=hm+"_ID";let KP=0;class q{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new fe(!1);onMicrotaskEmpty=new fe(!1);onStable=new fe(!1);onError=new fe(!1);constructor(n){const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=IC}=n;if(typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&i,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=o,function JP(e){const n=()=>{!function XP(e){function n(){AC(()=>{e.callbackScheduled=!1,pm(e),e.isCheckStableRunning=!0,fm(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),pm(e))}(e)},t=KP++;e._inner=e._inner.fork({name:"angular",properties:{[hm]:!0,[Fd]:t,[Fd+t]:!0},onInvokeTask:(i,r,o,s,a,l)=>{if(function e1(e){return FC(e,"__ignore_ng_zone__")}(l))return i.invokeTask(o,s,a,l);try{return RC(e),i.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&n(),NC(e)}},onInvoke:(i,r,o,s,a,l,c)=>{try{return RC(e),i.invoke(o,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function t1(e){return FC(e,"__scheduler_tick__")}(l)&&n(),NC(e)}},onHasTask:(i,r,o,s)=>{i.hasTask(o,s),r===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,pm(e),fm(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,r,o,s)=>(i.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(hm)}static assertInAngularZone(){if(!q.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(q.isInAngularZone())throw new b(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,QP,Ga,Ga);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const QP={};function fm(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function pm(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function RC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function NC(e){e._nesting--,fm(e)}class mm{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new fe;onMicrotaskEmpty=new fe;onStable=new fe;onError=new fe;run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}}function FC(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class fn{_console=console;handleError(n){this._console.error("ERROR",n)}}const i1=new C("",{providedIn:"root",factory:()=>{const e=g(q),n=g(fn);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function PC(e,n){return uw(e,n)}const o1=(PC.required=function r1(e){return uw(ed,e)},PC);function s1(){return os(re(),w())}function os(e,n){return new Ce(Ht(e,n))}let Ce=(()=>class e{nativeElement;constructor(t){this.nativeElement=t}static __NG_ELEMENT_ID__=s1})();function LC(e){return e instanceof Ce?e.nativeElement:e}function a1(){return this._results[Symbol.iterator]()}class qa{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Q}constructor(n=!1){this._emitDistinctChangesOnly=n}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,t){return this._results.reduce(n,t)}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,t){this.dirty=!1;const i=function Jt(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function RO(e,n,t){if(e.length!==n.length)return!1;for(let i=0;iT1}),T1="ng",wm=new C(""),ui=new C("",{providedIn:"platform",factory:()=>"unknown"}),Gr=new C(""),Cm=new C("",{providedIn:"root",factory:()=>function di(){if(void 0!==bm)return bm;if(typeof document<"u")return document;throw new b(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),rE=new C("",{providedIn:"root",factory:()=>!1});var Rm=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Rm||{});const Xa=new C(""),lE=new Set;function bt(e){lE.has(e)||(lE.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var ds=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ds||{});let Nm=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();const cE=[ds.EarlyRead,ds.Write,ds.MixedReadWrite,ds.Read];let dE=(()=>{class e{ngZone=g(q);scheduler=g(Fi);errorHandler=g(fn,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(Xa,{optional:!0})}execute(){this.executing=!0;for(const t of cE)for(const i of this.sequences)if(!i.erroredOrDestroyed&&i.hooks[t])try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>i.hooks[t](i.pipelinedValue),i.snapshot))}catch(r){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(const t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(7))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}maybeTrace(t,i){return i?.run(Rm.AFTER_NEXT_RENDER,t)??t()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();class uE{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,t,i,r,o=null){this.impl=n,this.hooks=t,this.once=i,this.snapshot=o,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function hi(e,n){!n?.injector&&Zo();const t=n?.injector??g(De);return bt("NgAfterNextRender"),fE(e,t,n,!0)}function fE(e,n,t,i){const r=n.get(Nm);r.impl??=n.get(dE);const o=n.get(Xa,null,{optional:!0}),s=t?.phase??ds.MixedReadWrite,a=!0!==t?.manualCleanup?n.get(ir):null,l=new uE(r.impl,function F1(e,n){if(e instanceof Function){const t=[void 0,void 0,void 0,void 0];return t[n]=e,t}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,s),i,a,o?.snapshot(null));return r.impl.register(l),l}var zn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(zn||{});let Qd,Xd;function gs(e){return function Wm(){if(void 0===Qd&&(Qd=null,Le.trustedTypes))try{Qd=Le.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Qd}()?.createHTML(e)||e}function LE(e){return function Zm(){if(void 0===Xd&&(Xd=null,Le.trustedTypes))try{Xd=Le.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Xd}()?.createScriptURL(e)||e}class Yr{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${cw})`}}class gL extends Yr{getTypeName(){return"HTML"}}class _L extends Yr{getTypeName(){return"Style"}}class vL extends Yr{getTypeName(){return"Script"}}class yL extends Yr{getTypeName(){return"URL"}}class bL extends Yr{getTypeName(){return"ResourceURL"}}function pn(e){return e instanceof Yr?e.changingThisBreaksApplicationSecurity:e}function fi(e,n){const t=function wL(e){return e instanceof Yr&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${cw})`)}return t===n}class IL{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(gs(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class ML{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=gs(n),t}}const AL=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Jd(e){return(e=String(e)).match(AL)?e:"unsafe:"+e}function Oi(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function ll(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const BE=Oi("area,br,col,hr,img,wbr"),jE=Oi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),HE=Oi("rp,rt"),Ym=ll(BE,ll(jE,Oi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ll(HE,Oi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ll(HE,jE)),Km=Oi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),UE=ll(Km,Oi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Oi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),kL=Oi("script,style,template");class RL{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let t=n.firstChild,i=!0,r=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)r.push(t),t=OL(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=FL(t);if(o){t=o;break}t=r.pop()}return this.buf.join("")}startElement(n){const t=zE(n).toLowerCase();if(!Ym.hasOwnProperty(t))return this.sanitizedSomething=!0,!kL.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const t=zE(n).toLowerCase();Ym.hasOwnProperty(t)&&!BE.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(GE(n))}}function FL(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw $E(n);return n}function OL(e){const n=e.firstChild;if(n&&function NL(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw $E(n);return n}function zE(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function $E(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const PL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,LL=/([^\#-~ |!])/g;function GE(e){return e.replace(/&/g,"&").replace(PL,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(LL,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let eu;function qE(e,n){let t=null;try{eu=eu||function VE(e){const n=new ML(e);return function TL(){try{return!!(new window.DOMParser).parseFromString(gs(""),"text/html")}catch{return!1}}()?new IL(n):n}(e);let i=n?String(n):"";t=eu.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=t.innerHTML,t=eu.getInertBodyElement(i)}while(i!==o);return gs((new RL).sanitizeChildren(Qm(t)||t))}finally{if(t){const i=Qm(t)||t;for(;i.firstChild;)i.firstChild.remove()}}}function Qm(e){return"content"in e&&function VL(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var wt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(wt||{});function _s(e){const n=cl();return n?n.sanitize(wt.URL,e)||"":fi(e,"URL")?pn(e):Jd(Z(e))}function WE(e){const n=cl();if(n)return LE(n.sanitize(wt.RESOURCE_URL,e)||"");if(fi(e,"ResourceURL"))return LE(pn(e));throw new b(904,!1)}function cl(){const e=w();return e&&e[10].sanitizer}const GL=/^>|^->||--!>|)/g;function mn(e){return e instanceof Function?e():e}var sr=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(sr||{}),ar=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ar||{});function tg(e,n){return undefined(e,n)}function ys(e,n,t,i,r){if(null!=i){let o,s=!1;ft(i)?o=i:Qe(i)&&(s=!0,i=i[0]);const a=ce(i);0===e&&null!==t?null==r?lD(n,t,a):Kr(n,t,a,r||null,!0):1===e&&null!==t?Kr(n,t,a,r||null,!0):2===e?function hl(e,n,t){e.removeChild(null,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function hV(e,n,t,i,r){const o=t[7];o!==ce(t)&&ys(n,e,i,o,r);for(let a=10;an.replace(qL,"\u200b$1\u200b"))}(n))}function iu(e,n,t){return e.createElement(n,t)}function oD(e,n){n[10].changeDetectionScheduler?.notify(10),ou(e,n,n[z],2,null,null)}function sD(e,n){const t=e[9],i=n[3];(Qe(i)||n[15]!==i[3][15])&&(e[2]|=_d.HasTransplantedViews),null===t?e[9]=[n]:t.push(n)}function rg(e,n){const t=e[9],i=t.indexOf(n);t.splice(i,1)}function dl(e,n){if(e.length<=10)return;const t=10+n,i=e[t];if(i){const r=i[16];null!==r&&r!==e&&rg(r,i),n>0&&(e[t-1][4]=i[4]);const o=ad(e,10+n);!function rD(e,n){oD(e,n),n[0]=null,n[5]=null}(i[1],i);const s=o[18];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function ul(e,n){if(!(256&n[2])){const t=n[z];t.destroyNode&&ou(e,n,t,3,null,null),function sV(e){let n=e[12];if(!n)return og(e[1],e);for(;n;){let t=null;if(Qe(n))t=n[12];else{const i=n[10];i&&(t=i)}if(!t){for(;n&&!n[4]&&n!==e;)Qe(n)&&og(n[1],n),n=n[3];null===n&&(n=e),Qe(n)&&og(n[1],n),t=n&&n[4]}n=t}}(n)}}function og(e,n){if(256&n[2])return;const t=X(null);try{n[2]&=-129,n[2]|=256,n[24]&&Da(n[24]),function cV(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i=0?i[a]():i[-a].unsubscribe(),s+=2}else t[s].call(i[t[s+1]]);null!==i&&(n[7]=null);const r=n[21];if(null!==r){n[21]=null;for(let s=0;s-1){const{encapsulation:o}=e.data[i.directiveStart+r];if(o===zn.None||o===zn.Emulated)return null}return Ht(i,t)}}(e,n.parent,t)}function Kr(e,n,t,i,r){e.insertBefore(n,t,i,r)}function lD(e,n,t){e.appendChild(n,t)}function cD(e,n,t,i,r){null!==i?Kr(e,n,t,i,r):lD(e,n,t)}function ag(e,n){return e.parentNode(n)}function dD(e,n,t){return hD(e,n,t)}let hD=function uD(e,n,t){return 40&e.type?Ht(e,t):null};function ru(e,n,t,i){const r=sg(e,i,n),o=n[z],a=dD(i.parent||n[5],i,n);if(null!=r)if(Array.isArray(t))for(let l=0;l-1){let o;for(;++ro?"":r[d+1].toLowerCase(),2&i&&c!==u){if($n(i))return!1;s=!0}}}}else{if(!s&&!$n(i)&&!$n(l))return!1;if(s&&$n(l))continue;s=!1,i=l|1&i}}return $n(i)||s}function $n(e){return!(1&e)}function yV(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let o=!1;for(;r-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!$n(s)&&(n+=wD(o,r),r=""),i=s,o=o||!$n(i);t++}return""!==r&&(n+=wD(o,r)),n}const Y={};function P(e=1){CD(H(),w(),xt()+e,!1)}function CD(e,n,t,i){if(!i)if(3&~n[2]){const o=e.preOrderHooks;null!==o&&Md(n,o,0,t)}else{const o=e.preOrderCheckHooks;null!==o&&Id(n,o,t)}Ur(t)}function x(e,n=ne.Default){const t=w();return null===t?M(e,n):gC(re(),t,j(e),n)}function DD(e,n,t,i,r,o){const s=X(null);try{let a=null;r&sr.SignalBased&&(a=n[i][vt]),null!==a&&void 0!==a.transformFn&&(o=a.transformFn(o)),r&sr.HasDecoratorInputTransform&&(o=e.inputTransforms[i].call(n,o)),null!==e.setInput?e.setInput(n,a,o,t,i):Lw(n,a,i,o)}finally{X(s)}}function fl(e,n,t,i,r,o,s,a,l,c,d){const u=n.blueprint.slice();return u[0]=r,u[2]=1228|i,(null!==c||e&&2048&e[2])&&(u[2]|=2048),zw(u),u[3]=u[14]=e,u[8]=t,u[10]=s||e&&e[10],u[z]=a||e&&e[z],u[9]=l||e&&e[9]||null,u[5]=o,u[19]=function d1(){return c1++}(),u[6]=d,u[20]=c,u[15]=2==n.type?e[15]:u,u}function Xr(e,n,t,i,r){let o=e.data[n];if(null===o)o=function hg(e,n,t,i,r){const o=qw(),s=Wp(),l=e.data[n]=function FV(e,n,t,i,r,o){let s=n?n.injectorIndex:-1,a=0;return Hr()&&(a|=128),{type:t,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}}(0,s?o:o&&o.parent,t,n,i,r);return null===e.firstChild&&(e.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(e,n,t,i,r),function mP(){return $.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=i,o.attrs=r;const s=function La(){const e=$.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Hn(o,!0),o}function pl(e,n,t,i){if(0===t)return-1;const r=n.length;for(let o=0;oT&&CD(e,n,T,!1),t(i,r)}finally{Ur(o)}}function fg(e,n,t){if(Pp(n)){const i=X(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function ID(e,n,t,i,r){for(let o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];if(void 0===s)continue;i??={};let a,l=sr.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(null!==r){if(!r.hasOwnProperty(o))continue;c=r[o]}0===e?MD(i,t,c,a,l):MD(i,t,c,a)}return i}function MD(e,n,t,i,r){let o;e.hasOwnProperty(t)?(o=e[t]).push(n,i):o=e[t]=[n,i],void 0!==r&&o.push(r)}function tn(e,n,t,i,r,o,s,a){const l=Ht(n,t);let d,c=n.inputs;!a&&null!=c&&(d=c[i])?(Eg(e,t,d,i,r),nr(n)&&function LV(e,n){const t=hn(n,e);16&t[2]||(t[2]|=64)}(t,n.index)):3&n.type&&(i=function PV(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(l,i,r))}function vg(e,n,t,i){if(Gw()){const r=null===i?null:{"":-1},o=function zV(e,n){const t=e.directiveRegistry;let i=null,r=null;if(t)for(let o=0;o0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,i,o)}}(e,n,i,pl(e,t,r.hostVars,Y),r)}function bg(e){let n=16;return e.signals?n=4096:e.onPush&&(n=64),n}function pi(e,n,t,i,r,o){const s=Ht(e,n);!function wg(e,n,t,i,r,o,s){if(null==o)e.removeAttribute(n,r,t);else{const a=null==s?Z(o):s(o,i||"",r);e.setAttribute(n,r,a,t)}}(n[z],s,o,e.value,t,i,r)}function YV(e,n,t,i,r,o){const s=o[n];if(null!==s)for(let a=0;a0&&(t[r-1][4]=n),i{Pa(e.lView)},consumerOnSignalRead(){this.lView[24]=this}},oB={...Po,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=ki(e.lView);for(;n&&!VD(n[1]);)n=ki(n);n&&Up(n)},consumerOnSignalRead(){this.lView[24]=this}};function VD(e){return 2!==e.type}function BD(e){if(null===e[23])return;let n=!0;for(;n;){let t=!1;for(const i of e[23])i.dirty&&(t=!0,null===i.zone||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=t&&!!(8192&e[2])}}function cu(e,n=!0,t=0){const r=e[10].rendererFactory;r.begin?.();try{!function aB(e,n){const t=Yw();try{Dd(!0),Sg(e,n);let i=0;for(;yd(e);){if(100===i)throw new b(103,!1);i++,Sg(e,1)}}finally{Dd(t)}}(e,t)}catch(s){throw n&&au(e,s),s}finally{r.end?.()}}function HD(e,n,t,i){const r=n[2];if(!(256&~r))return;Xp(n);let a=!0,l=null,c=null;VD(e)?(c=function eB(e){return e[24]??function tB(e){const n=LD.pop()??Object.create(iB);return n.lView=e,n}(e)}(n),l=Lo(c)):null===function Kf(){return et}()?(a=!1,c=function rB(e){const n=e[24]??Object.create(oB);return n.lView=e,n}(n),l=Lo(c)):n[24]&&(Da(n[24]),n[24]=null);try{zw(n),function Kw(e){return $.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&xD(e,n,t,2,i);const d=!(3&~r);if(d){const h=e.preOrderCheckHooks;null!==h&&Id(n,h,null)}else{const h=e.preOrderHooks;null!==h&&Md(n,h,0,null),em(n,0)}if(function lB(e){for(let n=qC(e);null!==n;n=WC(n)){if(!(n[2]&_d.HasTransplantedViews))continue;const t=n[9];for(let i=0;i-1&&(dl(n,i),ad(t,i))}this._attachedToViewContainer=!1}ul(this._lView[1],this._lView)}onDestroy(n){bd(this._lView,n)}markForCheck(){gl(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Up(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){zp(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,cu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Fa(this._lView),t=this._lView[16];null!==t&&!n&&rg(t,this._lView),oD(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=n;const t=Fa(this._lView),i=this._lView[16];null!==i&&!t&&sD(i,this._lView),zp(this._lView)}}let Li=(()=>class e{static __NG_ELEMENT_ID__=hB})();const dB=Li,uB=class extends dB{_declarationLView;_declarationTContainer;elementRef;constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,i){const r=bs(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:i});return new _l(r)}};function hB(){return du(re(),w())}function du(e,n){return 4&e.type?new uB(n,e,os(e,n)):null}class s2{}class hx{}class a2{resolveComponentFactory(n){throw Error(`No component factory found for ${dt(n)}.`)}}class gu{static NULL=new a2}class _u{}let Vi=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function l2(){const e=w(),t=hn(re().index,e);return(Qe(t)?t:e)[z]}()})(),c2=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>null})}return e})();function yu(e,n,t){let i=t?e.styles:null,r=t?e.classes:null,o=0;if(null!==n)for(let s=0;s0&&_D(e,t,o.join(" "))}}(f,W,p,i),void 0!==t&&function y2(e,n,t){const i=e.projection=[];for(let r=0;rclass e{static __NG_ELEMENT_ID__=w2})();function w2(){return yx(re(),w())}const C2=nn,_x=class extends C2{_lContainer;_hostTNode;_hostLView;constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return os(this._hostTNode,this._hostLView)}get injector(){return new pt(this._hostTNode,this._hostLView)}get parentInjector(){const n=kd(this._hostTNode,this._hostLView);if(om(n)){const t=Ua(n,this._hostLView),i=Ha(n);return new pt(t[1].data[i+8],t)}return new pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=vx(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=n.createEmbeddedViewImpl(t||{},o,null);return this.insertImpl(a,r,Jr(this._hostTNode,null)),a}createComponent(n,t,i,r,o){const s=n&&!function Na(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const p=t||{};a=p.index,i=p.injector,r=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}const l=s?n:new Il(ee(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const m=(s?c:this.parentInjector).get(Dt,null);m&&(o=m)}ee(l.componentType??{});const h=l.create(c,r,null,o);return this.insertImpl(h.hostView,a,Jr(this._hostTNode,null)),h}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,i){const r=n._lView;if(function sP(e){return ft(e[3])}(r)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const l=r[3],c=new _x(l,l[5],l[3]);c.detach(c.indexOf(n))}}const o=this._adjustIndex(t),s=this._lContainer;return ws(s,r,o,i),n.attachToViewContainerRef(),Cw(jg(s),o,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=vx(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=dl(this._lContainer,t);i&&(ad(jg(this._lContainer),t),ul(i[1],i))}detach(n){const t=this._adjustIndex(n,-1),i=dl(this._lContainer,t);return i&&null!=ad(jg(this._lContainer),t)?new _l(i):null}_adjustIndex(n,t=0){return n??this.length+t}};function vx(e){return e[8]}function jg(e){return e[8]||(e[8]=[])}function yx(e,n){let t;const i=n[e.index];return ft(i)?t=i:(t=kD(i,n,null,e),n[e.index]=t,su(n,t)),bx(t,n,e,i),new _x(t,e,n)}let bx=function Cx(e,n,t,i){if(e[7])return;let r;r=8&t.type?ce(i):function E2(e,n){const t=e[z],i=t.createComment(""),r=Ht(n,e);return Kr(t,ag(t,r),i,function dV(e,n){return e.nextSibling(n)}(t,r),!1),i}(n,t),e[7]=r};class Ug{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new Ug(this.queryList)}setDirty(){this.queryList.setDirty()}}class zg{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,r=[];for(let o=0;on.trim())}(n):n}}class $g{queries;constructor(n=[]){this.queries=n}elementStart(n,t){for(let i=0;i0)i.push(s[a/2]);else{const c=o[a+1],d=n[-l];for(let u=10;u(wa(n),n.value);return t[vt]=n,t}(e),i=t[vt];return n?.equal&&(i.equal=n.equal),t.set=r=>Jf(i,r),t.update=r=>function qF(e,n){Wb()||ew(),Jf(e,n(e.value))}(i,r),t.asReadonly=Yg.bind(t),t}function Yg(){const e=this[vt];if(void 0===e.readonlyFn){const n=()=>this();n[vt]=e,e.readonlyFn=n}return e.readonlyFn}class dr{}class Hx{}class Qg extends dr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new mx(this);constructor(n,t,i,r=!0){super(),this.ngModuleType=n,this._parent=t;const o=At(n);this._bootstrapComponents=mn(o.bootstrap),this._r3Injector=SC(n,t,[{provide:dr,useValue:this},{provide:gu,useValue:this.componentFactoryResolver},...i],dt(n),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Xg extends Hx{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new Qg(this.moduleType,n,[])}}class Ux extends dr{injector;componentFactoryResolver=new mx(this);instance=null;constructor(n){super();const t=new qo([...n.providers,{provide:dr,useValue:this},{provide:gu,useValue:this.componentFactoryResolver}],n.parent||hd(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Cu(e,n,t=null){return new Ux({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let $2=(()=>{class e{_injector;cachedInjectors=new Map;constructor(t){this._injector=t}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const i=Ip(0,t.type),r=i.length>0?Cu([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,r)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=S({token:e,providedIn:"environment",factory:()=>new e(M(Dt))})}return e})();function it(e){return Mi(()=>{const n=$x(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Od.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get($2).getOrCreateStandaloneInjector(t):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||zn.Emulated,styles:e.styles||he,_:null,schemas:e.schemas||null,tView:null,id:""};n.standalone&&bt("NgStandalone"),Gx(t);const i=e.dependencies;return t.directiveDefs=Eu(i,!1),t.pipeDefs=Eu(i,!0),t.id=function Z2(e){let n=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(const o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function G2(e){return ee(e)||ut(e)}function q2(e){return null!==e}function Fe(e){return Mi(()=>({type:e.type,bootstrap:e.bootstrap||he,declarations:e.declarations||he,imports:e.imports||he,exports:e.exports||he,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function zx(e,n){if(null==e)return ri;const t={};for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];let o,s,a=sr.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),n?(t[o]=a!==sr.None?[i,a]:i,n[o]=s):t[o]=i}return t}function O(e){return Mi(()=>{const n=$x(e);return Gx(n),n})}function Nt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function $x(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||ri,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||he,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:zx(e.inputs,n),outputs:zx(e.outputs),debugInfo:null}}function Gx(e){e.features?.forEach(n=>n(e))}function Eu(e,n){if(!e)return null;const t=n?Et:G2;return()=>("function"==typeof e?e():e).map(i=>t(i)).filter(q2)}function oe(e){let n=function qx(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let r;if(jn(e))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new b(903,!1);r=n.\u0275dir}if(r){if(t){i.push(r);const s=e;s.inputs=Du(e.inputs),s.inputTransforms=Du(e.inputTransforms),s.declaredInputs=Du(e.declaredInputs),s.outputs=Du(e.outputs);const a=r.hostBindings;a&&J2(e,a);const l=r.viewQuery,c=r.contentQueries;if(l&&Q2(e,l),c&&X2(e,c),Y2(e,r),cO(e.outputs,r.outputs),jn(r)&&r.data.animation){const d=e.data;d.animation=(d.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=ja(r.hostAttrs,t=ja(t,r.hostAttrs))}}(i)}function Y2(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const i=n.inputs[t];if(void 0!==i&&(e.inputs[t]=i,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;e.inputTransforms??={},e.inputTransforms[r]=n.inputTransforms[r]}}}function Du(e){return e===ri?{}:e===he?[]:e}function Q2(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function X2(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function J2(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}function qn(e){const n=e.inputConfig,t={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[3]&&(t[i]=r[3])}e.inputTransforms=t}function xu(e){return!!e_(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function e_(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Xe(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Al(e,n,t,i,r,o,s,a,l,c){const d=t+T,u=n.firstCreatePass?function lj(e,n,t,i,r,o,s,a,l){const c=n.consts,d=Xr(n,e,4,s||null,a||null);vg(n,t,d,Sn(c,l)),Sd(n,d);const u=d.tView=_g(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}(d,n,e,i,r,o,s,a,l):n.data[d];Hn(u,!1);const f=Qx(n,e,u,t);Va()&&ru(n,e,f,u),Rt(f,e);const h=kD(f,e,f,u);return e[d]=h,su(e,h),vd(u)&&pg(n,e,u),null!=l&&mg(e,u,c),u}function rt(e,n,t,i,r,o,s,a){const l=w(),c=H();return Al(l,c,e,n,t,i,r,Sn(c.consts,o),s,a),rt}let Qx=function Xx(e,n,t,i){return li(!0),n[z].createComment("")};let s0=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const h0=new C(""),ku=new C("");let s_,r_=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(t,i,r){this._ngZone=t,this.registry=i,s_||(function Zj(e){s_=e}(r),r.addToWindow(i)),this._watchAngularEvents(),t.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:()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t()},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,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(t,i,r),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}static \u0275fac=function(i){return new(i||e)(M(q),M(o_),M(ku))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),o_=(()=>{class e{_applications=new Map;registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return s_?.findTestabilityInTree(this,t,i)??null}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Rl(e){return!!e&&"function"==typeof e.then}function f0(e){return!!e&&"function"==typeof e.subscribe}const Ru=new C("");let p0=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((t,i)=>{this.resolve=t,this.reject=i});appInits=g(Ru,{optional:!0})??[];injector=g(De);constructor(){}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const o=xn(this.injector,r);if(Rl(o))t.push(o);else if(f0(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});t.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),a_=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>new m0})}return e})();class m0{queuedEffectCount=0;queues=new Map;schedule(n){this.enqueue(n)}enqueue(n){const t=n.zone;this.queues.has(t)||this.queues.set(t,new Set);const i=this.queues.get(t);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,t]of this.queues)null===n?this.flushQueue(t):n.run(()=>this.flushQueue(t))}flushQueue(n){for(const t of n)n.delete(t),this.queuedEffectCount--,t.run()}}const Nl=new C("");function _0(e,n){return Array.isArray(n)?n.reduce(_0,e):{...e,...n}}let rn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(i1);afterRenderManager=g(Nm);zonelessEnabled=g($a);rootEffectScheduler=g(a_);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Q;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=g(Un).hasPendingTasks.pipe(K(t=>!t));constructor(){g(Xa,{optional:!0})}whenStable(){let t;return new Promise(i=>{t=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{t.unsubscribe()})}_injector=g(Dt);get injector(){return this._injector}bootstrap(t,i){const r=t instanceof hx;if(!this._injector.get(p0).done)throw!r&&function Ji(e){const n=ee(e)||ut(e)||Et(e);return null!==n&&n.standalone}(t),new b(405,!1);let s;s=r?t:this._injector.get(gu).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function Yj(e){return e.isBoundToModule}(s)?void 0:this._injector.get(dr),c=s.create(De.NULL,[],i||s.selector,a),d=c.location.nativeElement,u=c.injector.get(h0,null);return u?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),Nu(this.components,c),u?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(null!==this.tracingSnapshot){const i=this.tracingSnapshot;return this.tracingSnapshot=null,void i.run(Rm.CHANGE_DETECTION,this._tick)}if(this._runningTick)throw new b(101,!1);const t=X(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,X(t),this.afterTick.next()}};synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(_u,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let i=0;for(;0!==this.dirtyFlags&&i++<10;)this.synchronizeOnce(t)}synchronizeOnce(t){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const i=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)Xj(r,o,i,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else t?.begin?.(),t?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>yd(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Nu(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Nl,[]).forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Nu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new b(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Nu(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function Xj(e,n,t,i){(t||yd(e))&&cu(e,n,t&&!i?0:1)}function qe(e,n,t,i){const r=w();return Xe(r,In(),n)&&(H(),pi(Ee(),r,e,n,t,i)),qe}function As(e,n,t,i){return Xe(e,In(),t)?n+Z(t)+i:Y}function Ou(e,n){return e<<17|n<<2}function mr(e){return e>>17&32767}function u_(e){return 2|e}function io(e){return(131068&e)>>2}function h_(e,n){return-131069&e|n<<2}function f_(e){return 1|e}function A0(e,n,t,i){const r=e[t+1],o=null===n;let s=i?mr(r):io(r),a=!1;for(;0!==s&&(!1===a||o);){const c=e[s+1];PH(e[s],n)&&(a=!0,e[s+1]=i?f_(c):u_(c)),s=i?mr(c):io(c)}a&&(e[t+1]=i?u_(r):f_(r))}function PH(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Go(e,n)>=0}const mt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function k0(e){return e.substring(mt.key,mt.keyEnd)}function R0(e,n){const t=mt.textEnd;return t===n?-1:(n=mt.keyEnd=function jH(e,n,t){for(;n32;)n++;return n}(e,mt.key=n,t),Vs(e,n,t))}function Vs(e,n,t){for(;n=0;t=R0(n,t))cn(e,k0(n),!0)}function Wn(e,n,t,i){const r=w(),o=H(),s=Ni(2);o.firstUpdatePass&&V0(o,e,s,i),n!==Y&&Xe(r,s,n)&&j0(o,o.data[xt()],r,r[z],e,r[s+1]=function QH(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=dt(pn(e)))),e}(n,t),i,s)}function L0(e,n){return n>=e.expandoStartIndex}function V0(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[xt()],s=L0(e,t);U0(o,i)&&null===n&&!s&&(n=!1),n=function $H(e,n,t,i){const r=function Kp(e){const n=$.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=Pl(t=m_(null,e,n,t,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==r)if(t=m_(r,e,n,t,i),null===o){let l=function GH(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==io(i))return e[mr(i)]}(e,n,i);void 0!==l&&Array.isArray(l)&&(l=m_(null,e,n,l[1],i),l=Pl(l,n.attrs,i),function qH(e,n,t,i){e[mr(t?n.classBindings:n.styleBindings)]=i}(e,n,i,l))}else o=function WH(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):d=t,r)if(0!==l){const f=mr(e[a+1]);e[i+1]=Ou(f,a),0!==f&&(e[f+1]=h_(e[f+1],i)),e[a+1]=function RH(e,n){return 131071&e|n<<17}(e[a+1],i)}else e[i+1]=Ou(a,0),0!==a&&(e[a+1]=h_(e[a+1],i)),a=i;else e[i+1]=Ou(l,0),0===a?a=i:e[l+1]=h_(e[l+1],i),l=i;c&&(e[i+1]=u_(e[i+1])),A0(e,d,i,!0),A0(e,d,i,!1),function OH(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&Go(o,n)>=0&&(t[i+1]=f_(t[i+1]))}(n,d,e,i,o),s=Ou(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,t,s,i)}}function m_(e,n,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[r],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let f=t[r+1];f===Y&&(f=u?he:void 0);let h=u?xp(f,i):d===i?f:void 0;if(c&&!Pu(h)&&(h=xp(l,i)),Pu(h)&&(a=h,s))return a;const p=e[r+1];r=s?mr(p):io(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=xp(l,i))}return a}function Pu(e){return void 0!==e}function U0(e,n){return!!(e.flags&(n?8:16))}function vi(e,n){bt("NgControlFlow");const t=w(),i=In(),r=t[i]!==Y?t[i]:-1,o=-1!==r?Lu(t,T+r):void 0;if(Xe(t,i,e)){const a=X(null);try{if(void 0!==o&&function Dg(e,n){const t=dl(e,n);return void 0!==t&&ul(t[1],t),t}(o,0),-1!==e){const l=T+e,c=Lu(t,l),d=function v_(e,n){return ts(e,n)}(t[1],l),u=null;ws(c,bs(t,d,n,{dehydratedView:u}),0,Jr(d,u))}}finally{X(a)}}else if(void 0!==o){const a=function PD(e,n){const t=10+n;if(t(li(!0),iu(i,r,function rC(){return $.lFrame.currentNamespace}()));function Bs(e,n,t){const i=w(),r=H(),o=e+T,s=r.firstCreatePass?function CU(e,n,t,i,r){const o=n.consts,s=Sn(o,i),a=Xr(n,e,8,"ng-container",s);return null!==s&&yu(a,s,!0),vg(n,t,a,Sn(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,t):r.data[o];Hn(s,!0);const a=Z0(r,i,s,e);return i[o]=a,Va()&&ru(r,i,a,s),Rt(a,i),vd(s)&&(pg(r,i,s),fg(r,s,i)),null!=t&&mg(i,s),Bs}function js(){let e=re();const n=H();return Wp()?Zp():(e=e.parent,Hn(e,!1)),n.firstCreatePass&&(Sd(n,e),Pp(e)&&n.queries.elementEnd(e)),js}let Z0=(e,n,t,i)=>(li(!0),ig(n[z],""));function Vu(){return w()}function ro(e,n,t){const i=w();return Xe(i,In(),n)&&tn(H(),Ee(),i,e,n,i[z],t,!0),ro}const Bu="en-US";let X0=Bu;function He(e,n,t,i){const r=w(),o=H(),s=re();return function w_(e,n,t,i,r,o,s){const a=vd(i),c=e.firstCreatePass&&FD(e),d=n[8],u=ND(n);let f=!0;if(3&i.type||s){const m=Ht(i,n),_=s?s(m):m,y=u.length,v=s?I=>s(ce(I[i.index])):i.index;let E=null;if(!s&&a&&(E=function gz(e,n,t,i){const r=e.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,n,r,i.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=o,E.__ngLastListenerFn__=o,f=!1;else{o=yS(i,n,d,o);const I=t.listen(_,r,o);u.push(o,I),c&&c.push(r,v,y,y+1)}}else o=yS(i,n,d,o);const h=i.outputs;let p;if(f&&null!==h&&(p=h[r])){const m=p.length;if(m)for(let _=0;_-1?hn(e.index,n):n,5);let a=vS(n,0,i,o),l=r.__ngNextListenerFn__;for(;l;)a=vS(n,0,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function Ue(e=1){return function yP(e){return($.lFrame.contextLView=function $w(e,n){for(;e>0;)n=n[14],e--;return n}(e,$.lFrame.contextLView))[8]}(e)}function _z(e,n){let t=null;const i=function bV(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let r=0;r(li(!0),function ng(e,n){return e.createText(n)}(n[z],i));function so(e){return Tn("",e,""),so}function Tn(e,n,t){const i=w(),r=As(i,e,n,t);return r!==Y&&function Pi(e,n,t){const i=Oa(n,e);!function iD(e,n,t){e.setValue(n,t)}(e[z],i,t)}(i,xt(),r),Tn}function x_(e,n,t,i,r){if(e=j(e),Array.isArray(e))for(let o=0;o>20;if(Pr(e)||!e.multi){const h=new Ba(c,r,x),p=I_(l,n,r?d:d+f,u);-1===p?(lm(Ad(a,s),o,l),S_(o,e,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(h),s.push(h)):(t[p]=h,s[p]=h)}else{const h=I_(l,n,d+f,u),p=I_(l,n,d,d+f),_=p>=0&&t[p];if(r&&!_||!r&&!(h>=0&&t[h])){lm(Ad(a,s),o,l);const y=function jz(e,n,t,i,r){const o=new Ba(e,t,x);return o.multi=[],o.index=n,o.componentProviders=0,KS(o,r,i&&!t),o}(r?Bz:Vz,t.length,r,i,c);!r&&_&&(t[p].providerFactory=y),S_(o,e,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(y),s.push(y)}else S_(o,e,h>-1?h:p,KS(t[r?p:h],c,!r&&i));!r&&i&&_&&t[p].componentProviders++}}}function S_(e,n,t,i){const r=Pr(n),o=function OO(e){return!!e.useClass}(n);if(r||o){const l=(o?j(n.useClass):n).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const d=c.indexOf(t);-1===d?c.push(t,[i,l]):c[d+1].push(i,l)}else c.push(t,l)}}}function KS(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function I_(e,n,t,i){for(let r=t;r{t.providersResolver=(i,r)=>function Lz(e,n,t){const i=H();if(i.firstCreatePass){const r=jn(e);x_(t,i.data,i.blueprint,r,!0),x_(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}function XS(e,n,t,i,r,o){const s=n+t;return Xe(e,s,r)?function mi(e,n,t){return e[n]=t}(e,s+1,o?i.call(o,r):i(r)):function Ul(e,n){const t=e[n];return t===Y?void 0:t}(e,s+1)}function Gu(e,n){const t=H();let i;const r=e+T;t.firstCreatePass?(i=function e$(e,n){if(n)for(let t=n.length-1;t>=0;t--){const i=n[t];if(e===i.name)return i}}(n,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks??=[]).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=Or(i.type)),a=Xt(x);try{const l=Td(!1),c=o();return Td(l),function D_(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,w(),r,c),c}finally{Xt(a)}}function qu(e,n,t){const i=e+T,r=w(),o=function jr(e,n){return e[n]}(r,i);return function zl(e,n){return e[1].data[n].pure}(r,i)?XS(r,function Ut(){const e=$.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}(),n,o.transform,t,o):o.transform(t)}class R${ngModuleFactory;componentFactories;constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let vI=(()=>{class e{compileModuleSync(t){return new Xg(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=mn(At(t).declarations).reduce((s,a)=>{const l=ee(a);return l&&s.push(new Il(l)),s},[]);return new R$(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),O$=(()=>{class e{zone=g(q);changeDetectionScheduler=g(Fi);applicationRef=g(rn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function F_({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new q({...O_(),scheduleInRootZone:t}),[{provide:q,useFactory:e},{provide:Dn,multi:!0,useFactory:()=>{const i=g(O$,{optional:!0});return()=>i.initialize()}},{provide:Dn,multi:!0,useFactory:()=>{const i=g(L$);return()=>{i.initialize()}}},!0===n?{provide:TC,useValue:!0}:[],{provide:um,useValue:t??IC}]}function O_(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let L$=(()=>{class e{subscription=new Ze;initialized=!1;zone=g(q);pendingTasks=g(Un);initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{q.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Gl=(()=>{class e{appRef=g(rn);taskService=g(Un);ngZone=g(q);zonelessEnabled=g($a);tracing=g(Xa,{optional:!0});disableScheduling=g(TC,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ze;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Fd):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(um,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){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 mm||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;let i=!1;switch(t){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,i=!0;break;case 13:this.appRef.dirtyFlags|=16,i=!0;break;case 12:i=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;const r=this.useMicrotaskScheduler?kC:AC;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(t){return!(this.disableScheduling&&!t||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Fd+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(t),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,kC(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Bi=new C("",{providedIn:"root",factory:()=>g(Bi,ne.Optional|ne.SkipSelf)||function V$(){return typeof $localize<"u"&&$localize.locale||Bu}()}),Zu=new C("");function Yu(e){return!e.moduleRef}let DI=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(t){this._injector=t}bootstrapModuleFactory(t,i){const r=i?.scheduleInRootZone,s=i?.ignoreChangesOutsideZone,a=[F_({ngZoneFactory:()=>function n1(e="zone.js",n){return"noop"===e?new mm:"zone.js"===e?new q(n):e}(i?.ngZone,{...O_({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}),scheduleInRootZone:r}),ignoreChangesOutsideZone:s}),{provide:Fi,useExisting:Gl}],l=function z2(e,n,t){return new Qg(e,n,t,!1)}(t.moduleType,this.injector,a);return function EI(e){const n=Yu(e)?e.r3Injector:e.moduleRef.injector,t=n.get(q);return t.run(()=>{Yu(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const i=n.get(fn,null);let r;if(t.runOutsideAngular(()=>{r=t.onError.subscribe({next:o=>{i.handleError(o)}})}),Yu(e)){const o=()=>n.destroy(),s=e.platformInjector.get(Zu);s.add(o),n.onDestroy(()=>{r.unsubscribe(),s.delete(o)})}else{const o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Zu);s.add(o),e.moduleRef.onDestroy(()=>{Nu(e.allPlatformModules,e.moduleRef),r.unsubscribe(),s.delete(o)})}return function Qj(e,n,t){try{const i=t();return Rl(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(i,t,()=>{const o=n.get(p0);return o.runInitializers(),o.donePromise.then(()=>{if(function kU(e){"string"==typeof e&&(X0=e.toLowerCase().replace(/_/g,"-"))}(n.get(Bi,Bu)||Bu),Yu(e)){const a=n.get(rn);return void 0!==e.rootComponent&&a.bootstrap(e.rootComponent),a}return function $$(e,n){const t=e.injector.get(rn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>t.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new b(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({moduleRef:l,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(t,i=[]){const r=_0({},i);return function F$(e,n,t){const i=new Xg(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Zu,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(i){return new(i||e)(M(De))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),gr=null;const xI=new C("");function SI(e,n,t=[]){const i=`Platform: ${n}`,r=new C(i);return(o=[])=>{let s=L_();if(!s||s.injector.get(xI,!1)){const a=[...t,...o,{provide:r,useValue:!0}];e?e(a):function G$(e){if(gr&&!gr.get(xI,!1))throw new b(400,!1);(function g0(){!function $F(e){Jb=e}(()=>{throw new b(600,!1)})})(),gr=e;const n=e.get(DI);(function MI(e){const n=e.get(wm,null);xn(e,()=>{n?.forEach(t=>t())})})(e)}(function II(e=[],n){return De.create({name:n,providers:[{provide:Ap,useValue:"platform"},{provide:Zu,useValue:new Set([()=>gr=null])},...e]})}(a,i))}return function q$(){const n=L_();if(!n)throw new b(401,!1);return n}()}}function L_(){return gr?.get(DI)??null}let _r=(()=>class e{static __NG_ELEMENT_ID__=Z$})();function Z$(e){return function Y$(e,n,t){if(nr(e)&&!t){const i=hn(e.index,n);return new _l(i,i)}return 175&e.type?new _l(n[15],n):null}(re(),w(),!(16&~e))}class NI{constructor(){}supports(n){return xu(n)}create(n){return new e3(n)}}const J$=(e,n)=>n;class e3{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||J$}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const s=!i||t&&t.currentIndex{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,r)):n=this._addAfter(new t3(t,i),o,r),n}_verifyReinsertion(n,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new FI),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new FI),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class t3{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,t){this.item=n,this.trackById=t}}class n3{_head=null;_tail=null;add(n){null===this._head?(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,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class FI{map=new Map;put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new n3,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function OI(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const i=n._prev;return t._next=n,t._prev=i,n._prev=t,i&&(i._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,t);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new r3(n);return this._records.set(n,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(i=>t(n[i],i))}}class r3{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n}}function LI(){return new U_([new NI])}let U_=(()=>{class e{factories;static \u0275prov=S({token:e,providedIn:"root",factory:LI});constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||LI()),deps:[[e,new ka,new Fr]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new b(901,!1)}}return e})();function VI(){return new Xu([new PI])}let Xu=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:VI});factories;constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||VI()),deps:[[e,new ka,new Fr]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(i)return i;throw new b(901,!1)}}return e})();const a3=SI(null,"core",[]);let l3=(()=>{class e{constructor(t){}static \u0275fac=function(i){return new(i||e)(M(rn))};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})();function Ae(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function dM(e,n=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?n:Number(e)}function Lt(e){const n=X(null);try{return e()}finally{X(n)}}let fM=(()=>class e{view;node;constructor(t,i){this.view=t,this.node=i}static __NG_ELEMENT_ID__=W3})();function W3(){return new fM(w(),re())}class J3{[vt];constructor(n){this[vt]=n}destroy(){this[vt].destroy()}}const pM={...Po,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:Ga,run(){if(this.dirty=!1,this.hasRun&&!Ea(this))return;this.hasRun=!0;const e=i=>(this.cleanupFns??=[]).push(i),n=Lo(this),t=Dd(!1);try{this.maybeCleanup(),this.fn(e)}finally{Dd(t),Ca(this,n)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}},e8={...pM,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){Da(this),this.onDestroyFn(),this.maybeCleanup()}},t8={...pM,consumerMarkedDirty(){this.view[2]|=8192,Pa(this.view),this.notifier.notify(14)},destroy(){Da(this),this.onDestroyFn(),this.maybeCleanup(),this.view[23]?.delete(this)}};function gM(e,n){const t=ee(e),i=n.elementInjector||hd();return new Il(t).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}let _M=null;function vr(){return _M}class f8{}const ae=new C("");let Y_=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>g(m8),providedIn:"platform"})}return e})();const p8=new C("");let m8=(()=>{class e extends Y_{_location;_history;_doc=g(ae);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vr().getBaseHref(this._doc)}onPopState(t){const i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}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(t){this._location.pathname=t}pushState(t,i,r){this._history.pushState(t,i,r)}replaceState(t,i,r){this._history.replaceState(t,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function K_(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function vM(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function ji(e){return e&&"?"!==e[0]?"?"+e:e}let co=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>g(bM),providedIn:"root"})}return e})();const yM=new C("");let bM=(()=>{class e extends co{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,i){super(),this._platformLocation=t,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??g(ae).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return K_(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+ji(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+ji(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+ji(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(i){return new(i||e)(M(Y_),M(yM,8))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),g8=(()=>{class e extends co{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,i){super(),this._platformLocation=t,null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=K_(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){let s=this.prepareExternalUrl(r+ji(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){let s=this.prepareExternalUrl(r+ji(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(i){return new(i||e)(M(Y_),M(yM,8))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Gs=(()=>{class e{_subject=new Q;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function y8(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(vM(wM(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+ji(i))}normalize(t){return e.stripTrailingSlash(function v8(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,wM(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ji(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ji(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=ji;static joinWithSlash=K_;static stripTrailingSlash=vM;static \u0275fac=function(i){return new(i||e)(M(co))};static \u0275prov=S({token:e,factory:()=>function _8(){return new Gs(M(co))}(),providedIn:"root"})}return e})();function wM(e){return e.replace(/\/index.html$/,"")}function AM(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const sv=/\s+/,kM=[];let RM=(()=>{class e{_ngEl;_renderer;initialClasses=kM;rawClass;stateMap=new Map;constructor(t,i){this._ngEl=t,this._renderer=i}set klass(t){this.initialClasses=null!=t?t.trim().split(sv):kM}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(sv):t}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const i of t)this._updateState(i,!0);else if(null!=t)for(const i of Object.keys(t))this._updateState(i,!!t[i]);this._applyStateDiff()}_updateState(t,i){const r=this.stateMap.get(t);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(t,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const i=t[0],r=t[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(t,i){(t=t.trim()).length>0&&t.split(sv).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||e)(x(Ce),x(Vi))};static \u0275dir=O({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();class r4{$implicit;ngForOf;index;count;constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let FM=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new r4(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),OM(a,r)}});for(let r=0,o=i.length;r{OM(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}static \u0275fac=function(i){return new(i||e)(x(nn),x(Li),x(U_))};static \u0275dir=O({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function OM(e,n){e.context.$implicit=n.item}let PM=(()=>{class e{_viewContainer;_context=new o4;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,i){this._viewContainer=t,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){LM("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){LM("ngIfElse",t),this._elseTemplateRef=t,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,i){return!0}static \u0275fac=function(i){return new(i||e)(x(nn),x(Li))};static \u0275dir=O({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})();class o4{$implicit=null;ngIf=null}function LM(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${dt(n)}'.`)}class l4{createSubscription(n,t){return Lt(()=>n.subscribe({next:t,error:i=>{throw i}}))}dispose(n){Lt(()=>n.unsubscribe())}}class c4{createSubscription(n,t){return n.then(t,i=>{throw i})}dispose(n){}}const d4=new c4,u4=new l4;let BM=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Rl(t))return d4;if(f0(t))return u4;throw function Qn(e,n){return new b(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||e)(x(_r,16))};static \u0275pipe=Nt({name:"async",type:e,pure:!1})}return e})(),jM=(()=>{class e{differs;constructor(t){this.differs=t}differ;keyValues=[];compareFn=HM;transform(t,i=HM){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ??=this.differs.find(t).create();const r=this.differ.diff(t),o=i!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(s=>{this.keyValues.push(function D4(e,n){return{key:e,value:n}}(s.key,s.currentValue))})),(r||o)&&(i&&this.keyValues.sort(i),this.compareFn=i),this.keyValues}static \u0275fac=function(i){return new(i||e)(x(Xu,16))};static \u0275pipe=Nt({name:"keyvalue",type:e,pure:!1})}return e})();function HM(e,n){const t=e.key,i=n.key;if(t===i)return 0;if(void 0===t)return 1;if(void 0===i)return-1;if(null===t)return 1;if(null===i)return-1;if("string"==typeof t&&"string"==typeof i)return t{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})();const zM="browser";function yr(e){return e===zM}function $M(e){return"server"===e}let T4=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>yr(g(ui))?new A4(g(ae),window):new R4})}return e})();class A4{document;window;offset=()=>[0,0];constructor(n,t){this.document=n,this.window=t}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const t=function k4(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}}class R4{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class GM{}class sG extends f8{supportsDOMEvents=!0}class pv extends sG{static makeCurrent(){!function h8(e){_M??=e}(new pv)}onAndCancel(n,t,i){return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return(t=t||this.getDefaultDocument()).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,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function aG(){return Xl=Xl||document.querySelector("base"),Xl?Xl.getAttribute("href"):null}();return null==t?null:function lG(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){Xl=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return AM(document.cookie,n)}}let Xl=null,dG=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const mv=new C("");let nT=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(t,i){this._zone=i,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(o=>o.supports(t)),!i)throw new b(5101,!1);return this._eventNameToPlugin.set(t,i),i}static \u0275fac=function(i){return new(i||e)(M(mv),M(q))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();class iT{_doc;constructor(n){this._doc=n}manager}const gv="ng-app-id";function rT(e){for(const n of e)n.remove()}function oT(e,n){const t=n.createElement("style");return t.textContent=e,t}function _v(e,n){const t=n.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t}let sT=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(t,i,r,o={}){this.doc=t,this.appId=i,this.nonce=r,this.isServer=$M(o),function uG(e,n,t){const i=e.head?.querySelectorAll(`style[${gv}="${n}"]`);if(i)for(const r of i)r.textContent&&(r.removeAttribute(gv),t.set(r.textContent,{usage:0,elements:[r]}))}(t,i,this.inline),this.hosts.add(t.head)}addStyles(t,i){for(const r of t)this.addUsage(r,this.inline,oT);i?.forEach(r=>this.addUsage(r,this.external,_v))}removeStyles(t,i){for(const r of t)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(t,i,r){const o=i.get(t);o?o.usage++:i.set(t,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,r(t,this.doc)))})}removeUsage(t,i){const r=i.get(t);r&&(r.usage--,r.usage<=0&&(rT(r.elements),i.delete(t)))}ngOnDestroy(){for(const[,{elements:t}]of[...this.inline,...this.external])rT(t);this.hosts.clear()}addHost(t){this.hosts.add(t);for(const[i,{elements:r}]of this.inline)r.push(this.addElement(t,oT(i,this.doc)));for(const[i,{elements:r}]of this.external)r.push(this.addElement(t,_v(i,this.doc)))}removeHost(t){this.hosts.delete(t)}addElement(t,i){return this.nonce&&i.setAttribute("nonce",this.nonce),this.isServer&&i.setAttribute(gv,this.appId),t.appendChild(i)}static \u0275fac=function(i){return new(i||e)(M(ae),M(rr),M(Cm,8),M(ui))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const vv={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"},yv=/%COMP%/g,mG=new C("",{providedIn:"root",factory:()=>!0});function lT(e,n){return n.map(t=>t.replace(yv,e))}let bv=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(t,i,r,o,s,a,l,c=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.platformIsServer=$M(a),this.defaultRenderer=new wv(t,s,l,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===zn.ShadowDom&&(i={...i,encapsulation:zn.Emulated});const r=this.getOrCreateRenderer(t,i);return r instanceof dT?r.applyToHost(t):r instanceof Cv&&r.applyStyles(),r}getOrCreateRenderer(t,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case zn.Emulated:o=new dT(l,c,i,this.appId,d,s,a,u);break;case zn.ShadowDom:return new yG(l,c,t,i,s,a,this.nonce,u);default:o=new Cv(l,c,i,d,s,a,u)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(i){return new(i||e)(M(nT),M(sT),M(rr),M(mG),M(ae),M(ui),M(q),M(Cm))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();class wv{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,t,i,r){this.eventManager=n,this.doc=t,this.ngZone=i,this.platformIsServer=r}destroy(){}destroyNode=null;createElement(n,t){return t?this.doc.createElementNS(vv[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(cT(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(cT(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){t.remove()}selectRootElement(n,t){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new b(-5104,!1);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const o=vv[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=vv[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(ar.DashCase|ar.Important)?n.style.setProperty(t,i,r&ar.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&ar.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){null!=n&&(n[t]=i)}setValue(n,t){n.nodeValue=t}listen(n,t,i){if("string"==typeof n&&!(n=vr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(i))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function cT(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class yG extends wv{sharedStylesHost;hostEl;shadowRoot;constructor(n,t,i,r,o,s,a,l){super(n,o,s,l),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=lT(r.id,r.styles);for(const u of c){const f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=u,this.shadowRoot.appendChild(f)}const d=r.getExternalStyles?.();if(d)for(const u of d){const f=_v(u,o);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Cv extends wv{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,t,i,r,o,s,a,l){super(n,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=l?lT(l,i.styles):i.styles,this.styleUrls=i.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class dT extends Cv{contentAttr;hostAttr;constructor(n,t,i,r,o,s,a,l){const c=r+"-"+i.id;super(n,t,i,o,s,a,l,c),this.contentAttr=function gG(e){return"_ngcontent-%COMP%".replace(yv,e)}(c),this.hostAttr=function _G(e){return"_nghost-%COMP%".replace(yv,e)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}let bG=(()=>{class e extends iT{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}static \u0275fac=function(i){return new(i||e)(M(ae))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const uT=["alt","control","meta","shift"],wG={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},CG={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let EG=(()=>{class e extends iT{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const o=e.parseEventName(i),s=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vr().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),uT.forEach(c=>{const d=i.indexOf(c);d>-1&&(i.splice(d,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let r=wG[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),uT.forEach(s=>{s!==r&&(0,CG[s])(t)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{e.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static \u0275fac=function(i){return new(i||e)(M(ae))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const IG=SI(a3,"browser",[{provide:ui,useValue:zM},{provide:wm,useValue:function DG(){pv.makeCurrent()},multi:!0},{provide:ae,useFactory:function SG(){return function M1(e){bm=e}(document),document},deps:[]}]),MG=new C(""),pT=[{provide:ku,useClass:class cG{addToWindow(n){Le.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new b(5103,!1);return o},Le.getAllAngularTestabilities=()=>n.getAllTestabilities(),Le.getAllAngularRootElements=()=>n.getAllRootElements(),Le.frameworkStabilizers||(Le.frameworkStabilizers=[]),Le.frameworkStabilizers.push(i=>{const r=Le.getAllAngularTestabilities();let o=r.length;const s=function(){o--,0==o&&i()};r.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(n,t,i){return null==t?null:n.getTestability(t)??(i?vr().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:h0,useClass:r_,deps:[q,o_,ku]},{provide:r_,useClass:r_,deps:[q,o_,ku]}],mT=[{provide:Ap,useValue:"root"},{provide:fn,useFactory:function xG(){return new fn},deps:[]},{provide:mv,useClass:bG,multi:!0,deps:[ae,q,ui]},{provide:mv,useClass:EG,multi:!0,deps:[ae]},bv,sT,nT,{provide:_u,useExisting:bv},{provide:GM,useClass:dG,deps:[]},[]];let gT=(()=>{class e{constructor(t){}static \u0275fac=function(i){return new(i||e)(M(MG,12))};static \u0275mod=Fe({type:e});static \u0275inj=Me({providers:[...mT,...pT],imports:[UM,l3]})}return e})(),TG=(()=>{class e{_doc;constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static \u0275fac=function(i){return new(i||e)(M(ae))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Jl=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:function(i){let r=null;return r=i?new(i||e):M(NG),r},providedIn:"root"})}return e})(),NG=(()=>{class e extends Jl{_doc;constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case wt.NONE:return i;case wt.HTML:return fi(i,"HTML")?pn(i):qE(this._doc,String(i)).toString();case wt.STYLE:return fi(i,"Style")?pn(i):i;case wt.SCRIPT:if(fi(i,"Script"))return pn(i);throw new b(5200,!1);case wt.URL:return fi(i,"URL")?pn(i):Jd(String(i));case wt.RESOURCE_URL:if(fi(i,"ResourceURL"))return pn(i);throw new b(5201,!1);default:throw new b(5202,!1)}}bypassSecurityTrustHtml(t){return function CL(e){return new gL(e)}(t)}bypassSecurityTrustStyle(t){return function EL(e){return new _L(e)}(t)}bypassSecurityTrustScript(t){return function DL(e){return new vL(e)}(t)}bypassSecurityTrustUrl(t){return function xL(e){return new yL(e)}(t)}bypassSecurityTrustResourceUrl(t){return function SL(e){return new bL(e)}(t)}static \u0275fac=function(i){return new(i||e)(M(ae))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wr(e){return this instanceof wr?(this.v=e,this):new wr(e)}function CT(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function Iv(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Tv=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function ET(e){return ue(e?.then)}function DT(e){return ue(e[cp])}function xT(e){return Symbol.asyncIterator&&ue(e?.[Symbol.asyncIterator])}function ST(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const IT=function s5(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function MT(e){return ue(e?.[IT])}function TT(e){return function wT(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(h){return function(p){return Promise.resolve(p).then(h,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(h,p){i[h]&&(r[h]=function(m){return new Promise(function(_,y){o.push([h,m,_,y])>1||l(h,m)})},p&&(r[h]=p(r[h])))}function l(h,p){try{!function c(h){h.value instanceof wr?Promise.resolve(h.value.v).then(d,u):f(o[0][2],h)}(i[h](p))}catch(m){f(o[0][3],m)}}function d(h){l("next",h)}function u(h){l("throw",h)}function f(h,p){h(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield wr(t.read());if(r)return yield wr(void 0);yield yield wr(i)}}finally{t.releaseLock()}})}function AT(e){return ue(e?.getReader)}function Wt(e){if(e instanceof Be)return e;if(null!=e){if(DT(e))return function a5(e){return new Be(n=>{const t=e[cp]();if(ue(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Tv(e))return function l5(e){return new Be(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,rw)})}(e);if(xT(e))return kT(e);if(MT(e))return function d5(e){return new Be(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(AT(e))return function u5(e){return kT(TT(e))}(e)}throw ST(e)}function kT(e){return new Be(n=>{(function h5(e,n){var t,i,r,o;return function yT(e,n,t,i){return new(t||(t=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(u){s(u)}}function l(d){try{c(i.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):function r(o){return o instanceof t?o:new t(function(s){s(o)})}(d.value).then(a,l)}c((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=CT(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function zi(e,n,t,i=0,r=!1){const o=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!r)return o}function RT(e,n=0){return tt((t,i)=>{t.subscribe(ze(i,r=>zi(i,e,()=>i.next(r),n),()=>zi(i,e,()=>i.complete(),n),r=>zi(i,e,()=>i.error(r),n)))})}function NT(e,n=0){return tt((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function FT(e,n){if(!e)throw new Error("Iterable cannot be null");return new Be(t=>{zi(t,n,()=>{const i=e[Symbol.asyncIterator]();zi(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function lt(e,n){return n?function v5(e,n){if(null!=e){if(DT(e))return function f5(e,n){return Wt(e).pipe(NT(n),RT(n))}(e,n);if(Tv(e))return function m5(e,n){return new Be(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(ET(e))return function p5(e,n){return Wt(e).pipe(NT(n),RT(n))}(e,n);if(xT(e))return FT(e,n);if(MT(e))return function g5(e,n){return new Be(t=>{let i;return zi(t,n,()=>{i=e[IT](),zi(t,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void t.error(s)}o?t.complete():t.next(r)},0,!0)}),()=>ue(i?.return)&&i.return()})}(e,n);if(AT(e))return function _5(e,n){return FT(TT(e),n)}(e,n)}throw ST(e)}(e,n):Wt(e)}function OT(e){return e&&ue(e.schedule)}function Av(e){return e[e.length-1]}function PT(e){return ue(Av(e))?e.pop():void 0}function tc(e){return OT(Av(e))?e.pop():void 0}function F(...e){return lt(e,tc(e))}const{isArray:b5}=Array,{getPrototypeOf:w5,prototype:C5,keys:E5}=Object;function LT(e){if(1===e.length){const n=e[0];if(b5(n))return{args:n,keys:null};if(function D5(e){return e&&"object"==typeof e&&w5(e)===C5}(n)){const t=E5(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:x5}=Array;function kv(e){return K(n=>function S5(e,n){return x5(n)?e(...n):e(n)}(e,n))}function VT(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}function wh(...e){const n=tc(e),t=PT(e),{args:i,keys:r}=LT(e);if(0===i.length)return lt([],n);const o=new Be(function I5(e,n,t=Ki){return i=>{BT(n,()=>{const{length:r}=e,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=lt(e[l],n);let d=!1;c.subscribe(ze(i,u=>{o[l]=u,d||(d=!0,a--),a||i.next(t(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>VT(r,s):Ki));return t?o.pipe(kv(t)):o}function BT(e,n,t){e?zi(t,e,n):n()}const Ch=np(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Tt(e,n,t=1/0){return ue(n)?Tt((i,r)=>K((o,s)=>n(i,o,r,s))(Wt(e(i,r))),t):("number"==typeof n&&(t=n),tt((i,r)=>function M5(e,n,t,i,r,o,s,a){const l=[];let c=0,d=0,u=!1;const f=()=>{u&&!l.length&&!c&&n.complete()},h=m=>c{o&&n.next(m),c++;let _=!1;Wt(t(m,d++)).subscribe(ze(n,y=>{r?.(y),o?h(y):n.next(y)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&cp(y)):p(y)}f()}catch(y){n.error(y)}}))};return e.subscribe(ze(n,h,()=>{u=!0,f()})),()=>{a?.()}}(i,r,e,t)))}function Zs(e=1/0){return Tt(Ki,e)}function Eh(...e){return function T5(){return Zs(1)}()(lt(e,tc(e)))}function jT(e){return new Be(n=>{Wt(e()).subscribe(n)})}function nc(e,n){const t=ue(e)?e:()=>e,i=r=>r.error(t());return new Be(n?r=>n.schedule(i,0,r):i)}const Xn=new Be(e=>e.complete());function Rv(){return tt((e,n)=>{let t=null;e._refCount++;const i=ze(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class HT extends Be{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,lw(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Ze;const t=this.getSubject();n.add(this.source.subscribe(ze(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Ze.EMPTY)}return n}refCount(){return Rv()(this)}}function vn(e,n){return tt((t,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();t.subscribe(ze(i,l=>{r?.unsubscribe();let c=0;const d=o++;Wt(e(l,d)).subscribe(r=ze(i,u=>i.next(n?n(l,u,d,c++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function yi(e){return e<=0?()=>Xn:tt((n,t)=>{let i=0;n.subscribe(ze(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function uo(...e){const n=tc(e);return tt((t,i)=>{(n?Eh(e,t,n):Eh(e,t)).subscribe(i)})}function yn(e,n){return tt((t,i)=>{let r=0;t.subscribe(ze(i,o=>e.call(n,o,r++)&&i.next(o)))})}function Dh(e){return tt((n,t)=>{let i=!1;n.subscribe(ze(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function UT(e=k5){return tt((n,t)=>{let i=!1;n.subscribe(ze(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function k5(){return new Ch}function Cr(e,n){const t=arguments.length>=2;return i=>i.pipe(e?yn((r,o)=>e(r,o,i)):Ki,yi(1),t?Dh(n):UT(()=>new Ch))}function Ys(e,n){return ue(n)?Tt(e,n,1):Tt(e,1)}function _t(e,n,t){const i=ue(e)||n||t?{next:e,error:n,complete:t}:e;return i?tt((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(ze(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):Ki}function ho(e){return tt((n,t)=>{let o,i=null,r=!1;i=n.subscribe(ze(t,void 0,void 0,s=>{o=Wt(e(s,ho(e)(n))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function Nv(e){return e<=0?()=>Xn:tt((n,t)=>{let i=[];n.subscribe(ze(t,r=>{i.push(r),e{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function zT(e){return K(()=>e)}function Ks(e){return tt((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function Je(e){return tt((n,t)=>{Wt(e).subscribe(ze(t,()=>t.complete(),rp)),!t.closed&&n.subscribe(t)})}const te="primary",ic=Symbol("RouteTitle");class O5{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Qs(e){return new O5(e)}function P5(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return e===n}function GT(e){return e.length>0?e[e.length-1]:null}function Er(e){return function Ev(e){return!!e&&(e instanceof Be||ue(e.lift)&&ue(e.subscribe))}(e)?e:Rl(e)?lt(Promise.resolve(e)):F(e)}const V5={exact:function ZT(e,n,t){if(!po(e.segments,n.segments)||!xh(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!ZT(e.children[i],n.children[i],t))return!1;return!0},subset:YT},qT={exact:function B5(e,n){return bi(e,n)},subset:function j5(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>$T(e[t],n[t]))},ignored:()=>!0};function WT(e,n,t){return V5[t.paths](e.root,n.root,t.matrixParams)&&qT[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function YT(e,n,t){return KT(e,n,n.segments,t)}function KT(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!po(r,t)||n.hasChildren()||!xh(r,t,i))}if(e.segments.length===t.length){if(!po(e.segments,t)||!xh(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!YT(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(po(e.segments,r)&&xh(e.segments,r,i)&&e.children[te])&&KT(e.children[te],n,o,i)}}function xh(e,n,t){return n.every((i,r)=>qT[t](e[r].parameters,i.parameters))}class fo{root;queryParams;fragment;_queryParamMap;constructor(n=new xe([],{}),t={},i=null){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Qs(this.queryParams),this._queryParamMap}toString(){return z5.serialize(this)}}class xe{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ih(this)}}class rc{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Qs(this.parameters),this._parameterMap}toString(){return JT(this)}}function po(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let Xs=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>new Sh,providedIn:"root"})}return e})();class Sh{parse(n){const t=new eq(n);return new fo(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${oc(n.root,!0)}`,i=function q5(e){const n=Object.entries(e).map(([t,i])=>Array.isArray(i)?i.map(r=>`${Mh(t)}=${Mh(r)}`).join("&"):`${Mh(t)}=${Mh(i)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function $5(e){return encodeURI(e)}(n.fragment)}`:""}`}}const z5=new Sh;function Ih(e){return e.segments.map(n=>JT(n)).join("/")}function oc(e,n){if(!e.hasChildren())return Ih(e);if(n){const t=e.children[te]?oc(e.children[te],!1):"",i=[];return Object.entries(e.children).forEach(([r,o])=>{r!==te&&i.push(`${r}:${oc(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function U5(e,n){let t=[];return Object.entries(e.children).forEach(([i,r])=>{i===te&&(t=t.concat(n(r,i)))}),Object.entries(e.children).forEach(([i,r])=>{i!==te&&(t=t.concat(n(r,i)))}),t}(e,(i,r)=>r===te?[oc(e.children[te],!1)]:[`${r}:${oc(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[te]?`${Ih(e)}/${t[0]}`:`${Ih(e)}/(${t.join("//")})`}}function QT(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mh(e){return QT(e).replace(/%3B/gi,";")}function Ov(e){return QT(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Th(e){return decodeURIComponent(e)}function XT(e){return Th(e.replace(/\+/g,"%20"))}function JT(e){return`${Ov(e.path)}${function G5(e){return Object.entries(e).map(([n,t])=>`;${Ov(n)}=${Ov(t)}`).join("")}(e.parameters)}`}const W5=/^[^\/()?;#]+/;function Pv(e){const n=e.match(W5);return n?n[0]:""}const Z5=/^[^\/()?;=#]+/,K5=/^[^=?&#]+/,X5=/^[^&#]+/;class eq{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new xe([],{}):new xe([],this.parseChildren())}parseQueryParams(){const 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("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[te]=new xe(n,t)),i}parseSegment(){const n=Pv(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new rc(Th(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function Y5(e){const n=e.match(Z5);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=Pv(this.remaining);r&&(i=r,this.capture(i))}n[Th(t)]=Th(i)}parseQueryParam(n){const t=function Q5(e){const n=e.match(K5);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function J5(e){const n=e.match(X5);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=XT(t),o=XT(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){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Pv(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new b(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=te);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[te]:new xe([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new b(4011,!1)}}function eA(e){return e.segments.length>0?new xe([],{[te]:e}):e}function tA(e){const n={};for(const[i,r]of Object.entries(e.children)){const o=tA(r);if(i===te&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function tq(e){if(1===e.numberOfChildren&&e.children[te]){const n=e.children[te];return new xe(e.segments.concat(n.segments),n.children)}return e}(new xe(e.segments,n))}function mo(e){return e instanceof fo}function nA(e){let n;const r=eA(function t(o){const s={};for(const l of o.children){const c=t(l);s[l.outlet]=c}const a=new xe(o.url,s);return o===e&&(n=a),a}(e.root));return n??r}function iA(e,n,t,i){let r=e;for(;r.parent;)r=r.parent;if(0===n.length)return Lv(r,r,r,t,i);const o=function iq(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new oA(!0,0,e);let n=0,t=!1;const i=e.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new oA(t,n,i)}(n);if(o.toRoot())return Lv(r,r,new xe([],{}),t,i);const s=function rq(e,n,t){if(e.isAbsolute)return new kh(n,!0,0);if(!t)return new kh(n,!1,NaN);if(null===t.parent)return new kh(t,!0,0);const i=Ah(e.commands[0])?0:1;return function oq(e,n,t){let i=e,r=n,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new b(4005,!1);r=i.segments.length}return new kh(i,!1,r-o)}(t,t.segments.length-1+i,e.numberOfDoubleDots)}(o,r,e),a=s.processChildren?ac(s.segmentGroup,s.index,o.commands):sA(s.segmentGroup,s.index,o.commands);return Lv(r,s.segmentGroup,a,t,i)}function Ah(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function sc(e){return"object"==typeof e&&null!=e&&e.outlets}function Lv(e,n,t,i,r){let s,o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),s=e===n?t:rA(e,n,t);const a=eA(tA(s));return new fo(a,o,r)}function rA(e,n,t){const i={};return Object.entries(e.children).forEach(([r,o])=>{i[r]=o===n?t:rA(o,n,t)}),new xe(e.segments,i)}class oA{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&Ah(i[0]))throw new b(4003,!1);const r=i.find(sc);if(r&&r!==GT(i))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class kh{segmentGroup;processChildren;index;constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function sA(e,n,t){if(e??=new xe([],{}),0===e.segments.length&&e.hasChildren())return ac(e,n,t);const i=function aq(e,n,t){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=t.length)return o;const s=e.segments[r],a=t[i];if(sc(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!lA(l,c,s))return o;i+=2}else{if(!lA(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,n,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndexo!==te)&&e.children[te]&&1===e.numberOfChildren&&0===e.children[te].segments.length){const o=ac(e.children[te],n,t);return new xe(e.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=sA(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===i[o]&&(r[o]=s)}),new xe(e.segments,r)}}function Vv(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r{"string"==typeof i&&(i=[i]),null!==i&&(n[t]=Vv(new xe([],{}),0,i))}),n}function aA(e){const n={};return Object.entries(e).forEach(([t,i])=>n[t]=`${i}`),n}function lA(e,n,t){return e==t.path&&bi(n,t.parameters)}const lc="imperative";var le=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(le||{});class wi{id;url;constructor(n,t){this.id=n,this.url=t}}class Rh extends wi{type=le.NavigationStart;navigationTrigger;restoredState;constructor(n,t,i="imperative",r=null){super(n,t),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class $i extends wi{urlAfterRedirects;type=le.NavigationEnd;constructor(n,t,i){super(n,t),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var bn=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(bn||{}),Nh=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Nh||{});class go extends wi{reason;code;type=le.NavigationCancel;constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Js extends wi{reason;code;type=le.NavigationSkipped;constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r}}class Bv extends wi{error;target;type=le.NavigationError;constructor(n,t,i,r){super(n,t),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class cA extends wi{urlAfterRedirects;state;type=le.RoutesRecognized;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cq extends wi{urlAfterRedirects;state;type=le.GuardsCheckStart;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dq extends wi{urlAfterRedirects;state;shouldActivate;type=le.GuardsCheckEnd;constructor(n,t,i,r,o){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class uq extends wi{urlAfterRedirects;state;type=le.ResolveStart;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hq extends wi{urlAfterRedirects;state;type=le.ResolveEnd;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fq{route;type=le.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class pq{route;type=le.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class mq{snapshot;type=le.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gq{snapshot;type=le.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _q{snapshot;type=le.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vq{snapshot;type=le.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dA{routerEvent;position;anchor;type=le.Scroll;constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jv{}class Fh{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}}function Jn(e){return e.outlet||te}function cc(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class Dq{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return cc(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new dc(this.rootInjector)}}let dc=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new Dq(this.rootInjector),this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(i){return new(i||e)(M(Dt))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class uA{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=Hv(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=Hv(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Uv(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Uv(n,this._root).map(t=>t.value)}}function Hv(e,n){if(e===n.value)return n;for(const t of n.children){const i=Hv(e,t);if(i)return i}return null}function Uv(e,n){if(e===n.value)return[n];for(const t of n.children){const i=Uv(e,t);if(i.length)return i.unshift(n),i}return[]}class ei{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function ea(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class hA extends uA{snapshot;constructor(n,t){super(n),this.snapshot=t,zv(this,n)}toString(){return this.snapshot.toString()}}function fA(e){const n=function xq(e){const o=new Ph([],{},{},"",{},te,e,null,{});return new pA("",new ei(o,[]))}(e),t=new an([new rc("",{})]),i=new an({}),r=new an({}),o=new an({}),s=new an(""),a=new ta(t,i,o,s,r,te,e,n.root);return a.snapshot=n.root,new hA(new ei(a,[]),n)}class ta{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,t,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(K(c=>c[ic]))??F(void 0),this.url=n,this.params=t,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(K(n=>Qs(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(K(n=>Qs(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Oh(e,n,t="emptyOnly"){let i;const{routeConfig:r}=e;return i=null===n||"always"!==t&&""!==r?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.data,...r?.data,...e._resolvedData}},r&&gA(r)&&(i.resolve[ic]=r.title),i}class Ph{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ic]}constructor(n,t,i,r,o,s,a,l,c){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}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??=Qs(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Qs(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class pA extends uA{url;constructor(n,t){super(t),this.url=n,zv(this,t)}toString(){return mA(this._root)}}function zv(e,n){n.value._routerState=e,n.children.forEach(t=>zv(e,t))}function mA(e){const n=e.children.length>0?` { ${e.children.map(mA).join(", ")} } `:"";return`${e.value}${n}`}function $v(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,bi(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),bi(n.params,t.params)||e.paramsSubject.next(t.params),function L5(e,n){if(e.length!==n.length)return!1;for(let t=0;tbi(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Gv(e.parent,n.parent))}function gA(e){return"string"==typeof e.title||null===e.title}const Sq=new C("");let qv=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=te;activateEvents=new fe;deactivateEvents=new fe;attachEvents=new fe;detachEvents=new fe;routerOutletData=o1(void 0);parentContexts=g(dc);location=g(nn);changeDetector=g(_r);inputBinder=g(Lh,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){const{firstChange:i,previousValue:r}=t.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(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=t;const r=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Wv(t,a,r.injector,this.routerOutletData);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||e)};static \u0275dir=O({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[un]})}return e})();class Wv{route;childContexts;parent;outletData;__ngOutletInjector(n){return new Wv(this.route,this.childContexts,n,this.outletData)}constructor(n,t,i,r){this.route=n,this.childContexts=t,this.parent=i,this.outletData=r}get(n,t){return n===ta?this.route:n===dc?this.childContexts:n===Sq?this.outletData:this.parent.get(n,t)}}const Lh=new C("");let _A=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:i}=t,r=wh([i.queryParams,i.params,i.data]).pipe(vn(([o,s,a],l)=>(a={...o,...s,...a},0===l?F(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(t);const s=function u8(e){const n=ee(e);if(!n)return null;const t=new Il(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,r)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function uc(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function Mq(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return uc(e,i,r);return uc(e,i)})}(e,n,t);return new ei(i,r)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>uc(e,a)),s}}const i=function Tq(e){return new ta(new an(e.url),new an(e.params),new an(e.queryParams),new an(e.fragment),new an(e.data),e.outlet,e.component,e)}(n.value),r=n.children.map(o=>uc(e,o));return new ei(i,r)}}class Zv{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}}const vA="ngNavigationCancelingError";function Vh(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=mo(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=yA(!1,bn.Redirect);return r.url=t,r.navigationBehaviorOptions=i,r}function yA(e,n){const t=new Error(`NavigationCancelingError: ${e||""}`);return t[vA]=!0,t.cancellationCode=n,t}function bA(e){return!!e&&e[vA]}class Rq{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,t,i,r,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),$v(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=ea(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=ea(n);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=ea(n);for(const 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,t,i){const r=ea(t);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new vq(o.value.snapshot))}),n.children.length&&this.forwardEvent(new gq(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if($v(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const 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),$v(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)}}class wA{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Bh{component;route;constructor(n,t){this.component=n,this.route=t}}function Nq(e,n,t){const i=e._root;return hc(i,n?n._root:null,t,[i.value])}function na(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function pO(e){return null!==nd(e)}(e)?n.get(e):e:i}function hc(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=ea(n);return e.children.forEach(s=>{(function Oq(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function Pq(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!po(e.url,n.url);case"pathParamsOrQueryParamsChange":return!po(e.url,n.url)||!bi(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gv(e,n)||!bi(e.queryParams,n.queryParams);default:return!Gv(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new wA(i)):(o.data=s.data,o._resolvedData=s._resolvedData),hc(e,n,o.component?a?a.children:null:t,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Bh(a.outlet.component,s))}else s&&fc(n,a,r),r.canActivateChecks.push(new wA(i)),hc(e,null,o.component?a?a.children:null:t,i,r)})(s,o[s.value.outlet],t,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>fc(a,t.getContext(s),r)),r}function fc(e,n,t){const i=ea(e),r=e.value;Object.entries(i).forEach(([o,s])=>{fc(s,r.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new Bh(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function pc(e){return"function"==typeof e}function CA(e){return e instanceof Ch||"EmptyError"===e?.name}const jh=Symbol("INITIAL_VALUE");function ia(){return vn(e=>wh(e.map(n=>n.pipe(yi(1),uo(jh)))).pipe(K(n=>{for(const t of n)if(!0!==t){if(t===jh)return jh;if(!1===t||zq(t))return t}return!0}),yn(n=>n!==jh),yi(1)))}function zq(e){return mo(e)||e instanceof Zv}function EA(e){return function rO(...e){return ow(e)}(_t(n=>{if("boolean"!=typeof n)throw Vh(0,n)}),K(n=>!0===n))}class Yv{segmentGroup;constructor(n){this.segmentGroup=n||null}}class Hh extends Error{urlTree;constructor(n){super(),this.urlTree=n}}function ra(e){return nc(new Yv(e))}class nW{urlSerializer;urlTree;constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return F(i);if(r.numberOfChildren>1||!r.children[te])return nc(new b(4e3,!1));r=r.children[te]}}applyRedirectCommands(n,t,i,r,o){if("string"!=typeof t){const a=t,{queryParams:l,fragment:c,routeConfig:d,url:u,outlet:f,params:h,data:p,title:m}=r,_=xn(o,()=>a({params:h,data:p,queryParams:l,fragment:c,routeConfig:d,url:u,outlet:f,title:m}));if(_ instanceof fo)throw new Hh(_);t=_}const s=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i);if("/"===t[0])throw new Hh(s);return s}applyRedirectCreateUrlTree(n,t,i,r){const o=this.createSegmentGroup(n,t.root,i,r);return new fo(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return Object.entries(n).forEach(([r,o])=>{if("string"==typeof o&&":"===o[0]){const a=o.substring(1);i[r]=t[a]}else i[r]=o}),i}createSegmentGroup(n,t,i,r){const o=this.createSegments(n,t.segments,i,r);let s={};return Object.entries(t.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new xe(o,s)}createSegments(n,t,i,r){return t.map(o=>":"===o.path[0]?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new b(4001,!1);return r}findOrReturn(n,t){let i=0;for(const r of t){if(r.path===n.path)return t.splice(i),r;i++}return n}}const Kv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function iW(e,n,t,i,r){const o=DA(e,n,t);return o.matched?(i=function yq(e,n){return e.providers&&!e._injector&&(e._injector=Cu(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,i),function Jq(e,n,t,i){const r=n.canMatch;return r&&0!==r.length?F(r.map(s=>{const a=na(s,e);return Er(function Uq(e){return e&&pc(e.canMatch)}(a)?a.canMatch(n,t):xn(e,()=>a(n,t)))})).pipe(ia(),EA()):F(!0)}(i,n,t).pipe(K(s=>!0===s?o:{...Kv}))):F(o)}function DA(e,n,t){if("**"===n.path)return function rW(e){return{matched:!0,parameters:e.length>0?GT(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(t);if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Kv}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||P5)(t,e,n);if(!r)return{...Kv};const o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function xA(e,n,t,i){return t.length>0&&function aW(e,n,t){return t.some(i=>Uh(e,n,i)&&Jn(i)!==te)}(e,t,i)?{segmentGroup:new xe(n,sW(i,new xe(t,e.children))),slicedSegments:[]}:0===t.length&&function lW(e,n,t){return t.some(i=>Uh(e,n,i))}(e,t,i)?{segmentGroup:new xe(e.segments,oW(e,t,i,e.children)),slicedSegments:t}:{segmentGroup:new xe(e.segments,e.children),slicedSegments:t}}function oW(e,n,t,i){const r={};for(const o of t)if(Uh(e,n,o)&&!i[Jn(o)]){const s=new xe([],{});r[Jn(o)]=s}return{...i,...r}}function sW(e,n){const t={};t[te]=n;for(const i of e)if(""===i.path&&Jn(i)!==te){const r=new xe([],{});t[Jn(i)]=r}return t}function Uh(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class dW{}class fW{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,t,i,r,o,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new nW(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){const n=xA(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(K(({children:t,rootSnapshot:i})=>{const r=new ei(i,t),o=new pA("",r),s=function nq(e,n,t=null,i=null){return iA(nA(e),n,t,i)}(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){const t=new Ph([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),te,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,te,t).pipe(K(i=>({children:i,rootSnapshot:t})),ho(i=>{if(i instanceof Hh)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Yv?this.noMatchError(i):i}))}processSegmentGroup(n,t,i,r,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,t,i,o):this.processSegment(n,t,i,i.segments,r,!0,o).pipe(K(s=>s instanceof ei?[s]:[]))}processChildren(n,t,i,r){const o=[];for(const s of Object.keys(i.children))"primary"===s?o.unshift(s):o.push(s);return lt(o).pipe(Ys(s=>{const a=i.children[s],l=function Eq(e,n){const t=e.filter(i=>Jn(i)===n);return t.push(...e.filter(i=>Jn(i)!==n)),t}(t,s);return this.processSegmentGroup(n,l,a,s,r)}),function N5(e,n){return tt(function R5(e,n,t,i,r){return(o,s)=>{let a=t,l=n,c=0;o.subscribe(ze(s,d=>{const u=c++;l=a?e(l,d,u):(a=!0,d),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}((s,a)=>(s.push(...a),s)),Dh(null),function F5(e,n){const t=arguments.length>=2;return i=>i.pipe(e?yn((r,o)=>e(r,o,i)):Ki,Nv(1),t?Dh(n):UT(()=>new Ch))}(),Tt(s=>{if(null===s)return ra(i);const a=SA(s);return function pW(e){e.sort((n,t)=>n.value.outlet===te?-1:t.value.outlet===te?1:n.value.outlet.localeCompare(t.value.outlet))}(a),F(a)}))}processSegment(n,t,i,r,o,s,a){return lt(t).pipe(Ys(l=>this.processSegmentAgainstRoute(l._injector??n,t,l,i,r,o,s,a).pipe(ho(c=>{if(c instanceof Yv)return F(null);throw c}))),Cr(l=>!!l),ho(l=>{if(CA(l))return function cW(e,n,t){return 0===n.length&&!e.children[t]}(i,r,o)?F(new dW):ra(i);throw l}))}processSegmentAgainstRoute(n,t,i,r,o,s,a,l){return Jn(i)===s||s!==te&&Uh(r,o,i)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,t,i,o,s,l):ra(r):ra(r)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s,a){const{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:f}=DA(t,r,o);if(!l)return ra(t);"string"==typeof r.redirectTo&&"/"===r.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const h=new Ph(o,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,IA(r),Jn(r),r.component??r._loadedComponent??null,r,MA(r)),p=Oh(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(p.params),h.data=Object.freeze(p.data);const m=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,u,h,n);return this.applyRedirects.lineralizeSegments(r,m).pipe(Tt(_=>this.processSegment(n,i,t,_.concat(f),s,!1,a)))}matchSegmentAgainstRoute(n,t,i,r,o,s){const a=iW(t,i,r,n);return"**"===i.path&&(t.children={}),a.pipe(vn(l=>l.matched?this.getChildConfig(n=i._injector??n,i,r).pipe(vn(({routes:c})=>{const d=i._loadedInjector??n,{parameters:u,consumedSegments:f,remainingSegments:h}=l,p=new Ph(f,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,IA(i),Jn(i),i.component??i._loadedComponent??null,i,MA(i)),m=Oh(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(m.params),p.data=Object.freeze(m.data);const{segmentGroup:_,slicedSegments:y}=xA(t,f,h,c);if(0===y.length&&_.hasChildren())return this.processChildren(d,c,_,p).pipe(K(E=>new ei(p,E)));if(0===c.length&&0===y.length)return F(new ei(p,[]));const v=Jn(i)===o;return this.processSegment(d,c,_,y,v?te:o,!0,p).pipe(K(E=>new ei(p,E instanceof ei?[E]:[])))})):ra(t)))}getChildConfig(n,t,i){return t.children?F({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?F({routes:t._loadedRoutes,injector:t._loadedInjector}):function Xq(e,n,t,i){const r=n.canLoad;return void 0===r||0===r.length?F(!0):F(r.map(s=>{const a=na(s,e);return Er(function Vq(e){return e&&pc(e.canLoad)}(a)?a.canLoad(n,t):xn(e,()=>a(n,t)))})).pipe(ia(),EA())}(n,t,i).pipe(Tt(r=>r?this.configLoader.loadChildren(n,t).pipe(_t(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function tW(){return nc(yA(!1,bn.GuardRejected))}())):F({routes:[],injector:n})}}function mW(e){const n=e.value.routeConfig;return n&&""===n.path}function SA(e){const n=[],t=new Set;for(const i of e){if(!mW(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=SA(i.children);n.push(new ei(i.value,r))}return n.filter(i=>!t.has(i))}function IA(e){return e.data||{}}function MA(e){return e.resolve||{}}function TA(e){const n=e.children.map(t=>TA(t)).flat();return[e,...n]}function Qv(e){return vn(n=>{const t=e(n);return t?lt(t).pipe(K(()=>n)):F(n)})}let AA=(()=>{class e{buildTitle(t){let i,r=t.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===te);return i}getResolvedTitleForRoute(t){return t.data[ic]}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>g(wW),providedIn:"root"})}return e})(),wW=(()=>{class e extends AA{title;constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||e)(M(TG))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const oa=new C("",{providedIn:"root",factory:()=>({})});let kA=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(i,r){1&i&&Ft(0,"router-outlet")},dependencies:[qv],encapsulation:2})}return e})();function Xv(e){const n=e.children&&e.children.map(Xv),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==te&&(t.component=kA),t}const sa=new C("");let Jv=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(vI);loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return F(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=Er(t.loadComponent()).pipe(K(RA),_t(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Ks(()=>{this.componentLoaders.delete(t)})),r=new HT(i,()=>new Q).pipe(Rv());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return F({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function CW(e,n,t,i){return Er(e.loadChildren()).pipe(K(RA),Tt(r=>r instanceof Hx||Array.isArray(r)?F(r):lt(n.compileModuleAsync(r))),K(r=>{i&&i(e);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(t).injector,s=o.get(sa,[],{optional:!0,self:!0}).flat()),{routes:s.map(Xv),injector:o}}))}(i,this.compiler,t,this.onLoadEndListener).pipe(Ks(()=>{this.childrenLoaders.delete(i)})),s=new HT(o,()=>new Q).pipe(Rv());return this.childrenLoaders.set(i,s),s}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function RA(e){return function EW(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let ey=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>g(DW),providedIn:"root"})}return e})(),DW=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const NA=new C(""),FA=new C("");function xW(e,n,t){const i=e.get(FA),r=e.get(ae);return e.get(q).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o;const s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),function SW(e){return new Promise(n=>{hi({read:()=>setTimeout(n)},{injector:e})})}(e))),{onViewTransitionCreated:l}=i;return l&&xn(e,()=>l({transition:a,from:n,to:t})),s})}const ty=new C("");let zh=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new Q;transitionAbortSubject=new Q;configLoader=g(Jv);environmentInjector=g(Dt);urlSerializer=g(Xs);rootContexts=g(dc);location=g(Gs);inputBindingEnabled=null!==g(Lh,{optional:!0});titleStrategy=g(AA);options=g(oa,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(ey);createViewTransition=g(NA,{optional:!0});navigationErrorHandler=g(ty,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>F(void 0);rootComponentType=null;constructor(){this.configLoader.onLoadEndListener=r=>this.events.next(new pq(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new fq(r))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:i})}setupNavigations(t,i,r){return this.transitions=new an({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:lc,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(yn(o=>0!==o.id),K(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),vn(o=>{let s=!1,a=!1;return F(o).pipe(vn(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",bn.SupersededByNewNavigation),Xn;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:"string"==typeof l.extras.browserUrl?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const u="";return this.events.next(new Js(l.id,this.urlSerializer.serialize(l.rawUrl),u,Nh.IgnoredSameUrlNavigation)),l.resolve(!1),Xn}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return F(l).pipe(vn(u=>{const f=this.transitions?.getValue();return this.events.next(new Rh(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions?.getValue()?Xn:Promise.resolve(u)}),function gW(e,n,t,i,r,o){return Tt(s=>function uW(e,n,t,i,r,o,s="emptyOnly"){return new fW(e,n,t,i,r,s,o).recognize()}(e,n,t,i,s.extractedUrl,r,o).pipe(K(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),_t(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects};const f=new cA(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:u,extractedUrl:f,source:h,restoredState:p,extras:m}=l,_=new Rh(u,this.urlSerializer.serialize(f),h,p);this.events.next(_);const y=fA(this.rootComponentType).snapshot;return this.currentTransition=o={...l,targetSnapshot:y,urlAfterRedirects:f,extras:{...m,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=f,F(o)}{const u="";return this.events.next(new Js(l.id,this.urlSerializer.serialize(l.extractedUrl),u,Nh.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Xn}}),_t(l=>{const c=new cq(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),K(l=>(this.currentTransition=o={...l,guards:Nq(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},o)),function $q(e,n){return Tt(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?F({...t,guardsResult:!0}):function Gq(e,n,t,i){return lt(e).pipe(Tt(r=>function Qq(e,n,t,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?F(o.map(a=>{const l=cc(n)??r,c=na(a,l);return Er(function Hq(e){return e&&pc(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,i):xn(l,()=>c(e,n,t,i))).pipe(Cr())})).pipe(ia()):F(!0)}(r.component,r.route,t,n,i)),Cr(r=>!0!==r,!0))}(s,i,r,e).pipe(Tt(a=>a&&function Lq(e){return"boolean"==typeof e}(a)?function qq(e,n,t,i){return lt(n).pipe(Ys(r=>Eh(function Zq(e,n){return null!==e&&n&&n(new mq(e)),F(!0)}(r.route.parent,i),function Wq(e,n){return null!==e&&n&&n(new _q(e)),F(!0)}(r.route,i),function Kq(e,n,t){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function Fq(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>jT(()=>F(s.guards.map(l=>{const c=cc(s.node)??t,d=na(l,c);return Er(function jq(e){return e&&pc(e.canActivateChild)}(d)?d.canActivateChild(i,e):xn(c,()=>d(i,e))).pipe(Cr())})).pipe(ia())));return F(o).pipe(ia())}(e,r.path,t),function Yq(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return F(!0);const r=i.map(o=>jT(()=>{const s=cc(n)??t,a=na(o,s);return Er(function Bq(e){return e&&pc(e.canActivate)}(a)?a.canActivate(n,e):xn(s,()=>a(n,e))).pipe(Cr())}));return F(r).pipe(ia())}(e,r.route,t))),Cr(r=>!0!==r,!0))}(i,o,e,n):F(a)),K(a=>({...t,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),_t(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&"boolean"!=typeof l.guardsResult)throw Vh(0,l.guardsResult);const c=new dq(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),yn(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",bn.GuardRejected),!1)),Qv(l=>{if(l.guards.canActivateChecks.length)return F(l).pipe(_t(c=>{const d=new uq(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),vn(c=>{let d=!1;return F(c).pipe(function _W(e,n){return Tt(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return F(t);const o=new Set(r.map(l=>l.route)),s=new Set;for(const l of o)if(!s.has(l))for(const c of TA(l))s.add(c);let a=0;return lt(s).pipe(Ys(l=>o.has(l)?function vW(e,n,t,i){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!gA(r)&&(o[ic]=r.title),function yW(e,n,t,i){const r=Fv(e);if(0===r.length)return F({});const o={};return lt(r).pipe(Tt(s=>function bW(e,n,t,i){const r=cc(n)??i,o=na(e,r);return Er(o.resolve?o.resolve(n,t):xn(r,()=>o(n,t)))}(e[s],n,t,i).pipe(Cr(),_t(a=>{if(a instanceof Zv)throw Vh(new Sh,a);o[s]=a}))),Nv(1),zT(o),ho(s=>CA(s)?Xn:nc(s)))}(o,e,n,i).pipe(K(s=>(e._resolvedData=s,e.data=Oh(e,e.parent,t).resolve,null)))}(l,i,e,n):(l.data=Oh(l,l.parent,e).resolve,F(void 0))),_t(()=>a++),Nv(1),Tt(l=>a===s.size?F(t):Xn))})}(this.paramsInheritanceStrategy,this.environmentInjector),_t({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",bn.NoDataFromResolver)}}))}),_t(c=>{const d=new hq(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),Qv(l=>{const c=d=>{const u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(_t(f=>{d.component=f}),K(()=>{})));for(const f of d.children)u.push(...c(f));return u};return wh(c(l.targetSnapshot.root)).pipe(Dh(null),yi(1))}),Qv(()=>this.afterPreactivation()),vn(()=>{const{currentSnapshot:l,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?lt(d).pipe(K(()=>o)):F(o)}),K(l=>{const c=function Iq(e,n,t){const i=uc(e,n._root,t?t._root:void 0);return new hA(i,n)}(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,o}),_t(()=>{this.events.next(new jv)}),((e,n,t,i)=>K(r=>(new Rq(n,r.targetRouterState,r.currentRouterState,t,i).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),yi(1),_t({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new $i(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),Je(this.transitionAbortSubject.pipe(_t(l=>{throw l}))),Ks(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",bn.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),ho(l=>{if(a=!0,bA(l))this.events.next(new go(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),function Aq(e){return bA(e)&&mo(e.url)}(l)?this.events.next(new Fh(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{const c=new Bv(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{const d=xn(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(!(d instanceof Zv))throw this.events.next(c),l;{const{message:u,cancellationCode:f}=Vh(0,d);this.events.next(new go(o.id,this.urlSerializer.serialize(o.extractedUrl),u,f)),this.events.next(new Fh(d.redirectTo,d.navigationBehaviorOptions))}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return Xn}))}))}cancelNavigationTransition(t,i,r){const o=new go(t.id,this.urlSerializer.serialize(t.extractedUrl),i,r);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function IW(e){return e!==lc}let MW=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>g(AW),providedIn:"root"})}return e})();class TW{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let AW=(()=>{class e extends TW{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),OA=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>g(kW),providedIn:"root"})}return e})(),kW=(()=>{class e extends OA{location=g(Gs);urlSerializer=g(Xs);options=g(oa,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=g(ey);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new fo;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=fA(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(i=>{"popstate"===i.type&&t(i.url,i.state)})}handleRouterEvent(t,i){if(t instanceof Rh)this.stateMemento=this.createStateMemento();else if(t instanceof Js)this.rawUrlTree=i.initialUrl;else if(t instanceof cA){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else t instanceof jv?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):t instanceof go&&(t.code===bn.GuardRejected||t.code===bn.NoDataFromResolver)?this.restoreHistory(i):t instanceof Bv?this.restoreHistory(i,!0):t instanceof $i&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,i){const r=t instanceof fo?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===t.finalUrl&&0===o&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var mc=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(mc||{});function PA(e,n){e.events.pipe(yn(t=>t instanceof $i||t instanceof go||t instanceof Bv||t instanceof Js),K(t=>t instanceof $i||t instanceof Js?mc.COMPLETE:t instanceof go&&(t.code===bn.Redirect||t.code===bn.SupersededByNewNavigation)?mc.REDIRECTING:mc.FAILED),yn(t=>t!==mc.REDIRECTING),yi(1)).subscribe(()=>{n()})}const RW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},NW={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ci=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(s0);stateManager=g(OA);options=g(oa,{optional:!0})||{};pendingTasks=g(Un);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(zh);urlSerializer=g(Xs);location=g(Gs);urlHandlingStrategy=g(ey);_events=new Q;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(MW);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(sa,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(Lh,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ze;subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(i=>{try{const r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(null!==r&&null!==o)if(this.stateManager.handleRouterEvent(i,o),i instanceof go&&i.code!==bn.Redirect&&i.code!==bn.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof $i)this.navigated=!0;else if(i instanceof Fh){const s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l={browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||"eager"===this.urlUpdateStrategy||IW(r.source),...s};this.scheduleNavigation(a,lc,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function OW(e){return!(e instanceof jv||e instanceof Fh)})(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),lc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",i)},0)})}navigateToSyncWithBrowser(t,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(t);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(t){this.config=t.map(Xv),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(t,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}null!==d&&(d=this.removeEmptyProps(d));try{u=nA(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||"/"!==t[0][0])&&(t=[]),u=this.currentUrlTree.root}return iA(u,t,d,c??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=mo(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,lc,null,i)}navigate(t,i={skipLocationChange:!1}){return function FW(e){for(let n=0;n(null!=o&&(i[r]=o),i),{})}scheduleNavigation(t,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((u,f)=>{a=u,l=f});const d=this.pendingTasks.add();return PA(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(u=>Promise.reject(u))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$h=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new Q;constructor(t,i,r,o,s,a){this.router=t,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof $i&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(t){null==t?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=mo(t)||Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,i,r,o,s){const a=this.urlTree;return!!(null===a||this.isAnchorElement&&(0!==t||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(a,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const t=this.urlTree;this.href=null!==t&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;const i=null===this.href?null:function ZE(e,n,t){return function $L(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?WE:_s}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(t,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,t,i):r.removeAttribute(o,t)}get urlTree(){return null===this.routerLinkInput?null:mo(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||e)(x(Ci),x(ta),za("tabindex"),x(Vi),x(Ce),x(co))};static \u0275dir=O({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){1&i&&He("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&i&&qe("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ae],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ae],replaceUrl:[2,"replaceUrl","replaceUrl",Ae],routerLink:"routerLink"},features:[qn,un]})}return e})();class LA{}let VW=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,i,r,o,s){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(yn(t=>t instanceof $i),Ys(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=Cu(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return lt(r).pipe(Zs())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):F(null);const o=r.pipe(Tt(s=>null===s?F(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?lt([o,this.loader.loadComponent(i)]).pipe(Zs()):o})}static \u0275fac=function(i){return new(i||e)(M(Ci),M(vI),M(Dt),M(LA),M(Jv))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ny=new C("");let VA=(()=>{class e{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(t,i,r,o,s={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Rh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof $i?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Js&&t.code===Nh.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof dA&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new dA(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){!function ED(){throw new Error("invalid")}()};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function Ei(e,n){return{\u0275kind:e,\u0275providers:n}}function jA(){const e=g(De);return n=>{const t=e.get(rn);if(n!==t.components[0])return;const i=e.get(Ci),r=e.get(HA);1===e.get(iy)&&i.initialNavigation(),e.get(UA,null,ne.Optional)?.setUpPreloading(),e.get(ny,null,ne.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const HA=new C("",{factory:()=>new Q}),iy=new C("",{providedIn:"root",factory:()=>1}),UA=new C("");function UW(e){return Ei(0,[{provide:UA,useExisting:VW},{provide:LA,useExisting:e}])}function $W(e){return Ei(9,[{provide:NA,useValue:xW},{provide:FA,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const zA=new C("ROUTER_FORROOT_GUARD"),GW=[Gs,{provide:Xs,useClass:Sh},Ci,dc,{provide:ta,useFactory:function BA(e){return e.routerState.root},deps:[Ci]},Jv,[]];let $A=(()=>{class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[GW,[],{provide:sa,multi:!0,useValue:t},{provide:zA,useFactory:YW,deps:[[Ci,new Fr,new ka]]},i?.errorHandler?{provide:ty,useValue:i.errorHandler}:[],{provide:oa,useValue:i||{}},i?.useHash?{provide:co,useClass:g8}:{provide:co,useClass:bM},{provide:ny,useFactory:()=>{const e=g(T4),n=g(q),t=g(oa),i=g(zh),r=g(Xs);return t.scrollOffset&&e.setOffset(t.scrollOffset),new VA(r,i,e,n,t)}},i?.preloadingStrategy?UW(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?KW(i):[],i?.bindToComponentInputs?Ei(8,[_A,{provide:Lh,useExisting:_A}]).\u0275providers:[],i?.enableViewTransitions?$W().\u0275providers:[],[{provide:GA,useFactory:jA},{provide:Nl,multi:!0,useExisting:GA}]]}}static forChild(t){return{ngModule:e,providers:[{provide:sa,multi:!0,useValue:t}]}}static \u0275fac=function(i){return new(i||e)(M(zA,8))};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})();function YW(e){return"guarded"}function KW(e){return["disabled"===e.initialNavigation?Ei(3,[{provide:Ru,multi:!0,useFactory:()=>{const n=g(Ci);return()=>{n.setUpLocationChangeListener()}}},{provide:iy,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Ei(2,[{provide:iy,useValue:0},{provide:Ru,multi:!0,deps:[De],useFactory:n=>{const t=n.get(p8,Promise.resolve());return()=>t.then(()=>new Promise(i=>{const r=n.get(Ci),o=n.get(HA);PA(r,()=>{i(!0)}),n.get(zh).afterPreactivation=()=>(i(!0),o.closed?F(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const GA=new C("");let ry;try{ry=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ry=!1}let gc,_o,oy,sn=(()=>{class e{_platformId=g(ui);isBrowser=this._platformId?yr(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!ry)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _c(e){return function JW(){if(null==gc&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>gc=!0}))}finally{gc=gc||!1}return gc}()?e:!!e.capture}function e6(){if(null==_o){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return _o=!1,_o;if("scrollBehavior"in document.documentElement.style)_o=!0;else{const e=Element.prototype.scrollTo;_o=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return _o}function Gi(e){return e.composedPath?e.composedPath()[0]:e.target}function WA(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const qh=new WeakMap;let Dr=(()=>{class e{_appRef;_injector=g(De);_environmentInjector=g(Dt);load(t){const i=this._appRef=this._appRef||this._injector.get(rn);let r=qh.get(i);r||(r={loaders:new Set,refs:[]},qh.set(i,r),i.onDestroy(()=>{qh.get(i)?.refs.forEach(o=>o.destroy()),qh.delete(i)})),r.loaders.has(t)||(r.loaders.add(t),r.refs.push(gM(t,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ZA=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return e})();function Wh(e,...n){return n.length?n.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}class b6 extends Ze{constructor(n,t){super()}schedule(n,t=0){return this}}const Zh={setInterval(e,n,...t){const{delegate:i}=Zh;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Zh;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class ly extends b6{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,i=0){return Zh.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&Zh.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;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){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Kc(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}const cy={now:()=>(cy.delegate||Date).now(),delegate:void 0};class bc{constructor(n,t=bc.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}bc.now=cy.now;class dy extends bc{constructor(n,t=bc.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}const uy=new dy(ly),w6=uy;function XA(e,n=uy){return tt((t,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+e,d=n.now();if(d{o=c,s=n.now(),r||(r=n.schedule(l,e),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function JA(e){return yn((n,t)=>e<=t)}function ek(e,n=Ki){return e=e??C6,tt((t,i)=>{let r,o=!0;t.subscribe(ze(i,s=>{const a=n(s);(o||!e(r,a))&&(o=!1,r=a,i.next(s))}))})}function C6(e,n){return e===n}let E6=(()=>{class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),D6=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({providers:[E6]})}return e})();function nk(e){return null!=e&&"false"!=`${e}`}function ik(e,n=0){return function x6(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):2===arguments.length?n:0}function Yh(e){return Array.isArray(e)?e:[e]}function ct(e){return null==e?"":"string"==typeof e?e:`${e}px`}function la(e){return e instanceof Ce?e.nativeElement:e}const rk=new Set;let vo,S6=(()=>{class e{_platform=g(sn);_nonce=g(Cm,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):M6}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function I6(e,n){if(!rk.has(e))try{vo||(vo=document.createElement("style"),n&&vo.setAttribute("nonce",n),vo.setAttribute("type","text/css"),document.head.appendChild(vo)),vo.sheet&&(vo.sheet.insertRule(`@media ${e} {body{ }}`,0),rk.add(e))}catch(t){console.error(t)}}(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function M6(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let T6=(()=>{class e{_mediaMatcher=g(S6);_zone=g(q);_queries=new Map;_destroySubject=new Q;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return ok(Yh(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=wh(ok(Yh(t)).map(s=>this._registerQuery(s).observable));return o=Eh(o.pipe(yi(1)),o.pipe(JA(1),XA(0))),o.pipe(K(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),o={observable:new Be(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(uo(i),K(({matches:s})=>({query:t,matches:s})),Je(this._destroySubject)),mql:i};return this._queries.set(t,o),o}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ok(e){return e.map(n=>n.split(",")).reduce((n,t)=>n.concat(t)).map(n=>n.trim())}function Kh(e,n){return e.getAttribute(n)?.match(/\S+/g)??[]}const ak="cdk-describedby-message",Qh="cdk-describedby-host";let hy=0,R6=(()=>{class e{_platform=g(sn);_document=g(ae);_messageRegistry=new Map;_messagesContainer=null;_id=""+hy++;constructor(){g(Dr).load(ZA),this._id=g(rr)+"-"+hy++}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const o=fy(i,r);"string"!=typeof i?(lk(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,i,r){if(!i||!this._isElementNode(t))return;const o=fy(i,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),"string"==typeof i){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const t=this._document.querySelectorAll(`[${Qh}="${this._id}"]`);for(let i=0;i0!=r.indexOf(ak));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=this._messageRegistry.get(i);(function A6(e,n,t){const i=Kh(e,n);t=t.trim(),!i.some(r=>r.trim()===t)&&(i.push(t),e.setAttribute(n,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(Qh,this._id),r.referenceCount++}_removeMessageReference(t,i){const r=this._messageRegistry.get(i);r.referenceCount--,function k6(e,n,t){const i=Kh(e,n);t=t.trim();const r=i.filter(o=>o!==t);r.length?e.setAttribute(n,r.join(" ")):e.removeAttribute(n)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(Qh)}_isElementDescribedByMessage(t,i){const r=Kh(t,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=t.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fy(e,n){return"string"==typeof e?`${n||""}/${e}`:e}function lk(e,n){e.id||(e.id=`${ak}-${n}-${hy++}`)}class ck{_letterKeyStream=new Q;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Q;selectedItem=this._selectedItem;constructor(n,t){const i="number"==typeof t?.debounceInterval?t.debounceInterval:200;t?.skipPredicate&&(this._skipPredicateFn=t.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){const t=n.keyCode;n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(_t(t=>this._pressedLetters.push(t)),XA(n),yn(()=>this._pressedLetters.length>0),K(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let i=1;in.disabled;constructor(n,t){this._items=n,n instanceof qa?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):bu(n)&&(this._effectRef=function W_(e,n){bt("NgSignals"),!n?.injector&&Zo();const t=n?.injector??g(De);let r,i=!0!==n?.manualCleanup?t.get(ir):null;const o=t.get(fM,null,{optional:!0}),s=t.get(Fi);return null===o||n?.forceRoot?r=function i8(e,n,t){const i=Object.create(e8);return i.fn=e,i.scheduler=n,i.notifier=t,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.schedule(i),i.notifier.notify(13),i}(e,t.get(a_),s):(r=function n8(e,n,t){const i=Object.create(t8);return i.view=e,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=t,e[23]??=new Set,e[23].add(i),i.consumerMarkedDirty(i),i}(o.view,s,e),i instanceof MC&&i._lView===o.view&&(i=null)),r.injector=t,null!==i&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new J3(r)}(()=>this._itemsChanged(n()),{injector:t}))}tabOut=new Q;change=new Q;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();const t=this._getItemsArray();return this._typeahead=new ck(t,{debounceInterval:"number"==typeof n?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,t=10){return this._pageUpAndDown={enabled:n,delta:t},this}setActiveItem(n){const t=this._activeItem();this.updateActiveItem(n),this._activeItem()!==t&&this.change.next(this._activeItemIndex)}onKeydown(n){const t=n.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}}class O6 extends F6{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}function fk(e){return 0===e.buttons||0===e.detail}function pk(e){const n=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const G6=new C("cdk-input-modality-detector-options"),q6={ignoreKeys:[18,17,224,91,16]},ca=_c({passive:!0,capture:!0});let W6=(()=>{class e{_platform=g(sn);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new an(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(i=>i===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Gi(t))};_onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(fk(t)?"keyboard":"mouse"),this._mostRecentTarget=Gi(t))};_onTouchstart=t=>{pk(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Gi(t))};constructor(){const t=g(q),i=g(ae),r=g(G6,{optional:!0});this._options={...q6,...r},this.modalityDetected=this._modality.pipe(JA(1)),this.modalityChanged=this.modalityDetected.pipe(ek()),this._platform.isBrowser&&t.runOutsideAngular(()=>{i.addEventListener("keydown",this._onKeydown,ca),i.addEventListener("mousedown",this._onMousedown,ca),i.addEventListener("touchstart",this._onTouchstart,ca)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ca),document.removeEventListener("mousedown",this._onMousedown,ca),document.removeEventListener("touchstart",this._onTouchstart,ca))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Xh=function(e){return e[e.IMMEDIATE=0]="IMMEDIATE",e[e.EVENTUAL=1]="EVENTUAL",e}(Xh||{});const Y6=new C("cdk-focus-monitor-default-options"),Jh=_c({passive:!0,capture:!0});let py=(()=>{class e{_ngZone=g(q);_platform=g(sn);_inputModalityDetector=g(W6);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=g(ae,{optional:!0});_stopInputModalityDetector=new Q;constructor(){const t=g(Y6,{optional:!0});this._detectionMode=t?.detectionMode||Xh.IMMEDIATE}_rootNodeFocusAndBlurListener=t=>{for(let r=Gi(t);r;r=r.parentElement)"focus"===t.type?this._onFocus(t,r):this._onBlur(t,r)};monitor(t,i=!1){const r=la(t);if(!this._platform.isBrowser||1!==r.nodeType)return F();const o=function n6(e){if(function t6(){if(null==oy){const e=typeof document<"u"?document.head:null;oy=!(!e||!e.createShadowRoot&&!e.attachShadow)}return oy}()){const n=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new Q,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=la(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const o=la(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===Xh.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,this._detectionMode===Xh.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),o=Gi(t);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Jh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Jh)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Je(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Jh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Jh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let s=0;s{class e{_platform=g(sn);_hasCheckedHighContrastMode;_document=g(ae);_breakpointSubscription;constructor(){this._breakpointSubscription=g(T6).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return yo.NONE;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return yo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return yo.BLACK_ON_WHITE}return yo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(my,gk,_k),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===yo.BLACK_ON_WHITE?t.add(my,gk):i===yo.WHITE_ON_BLACK&&t.add(my,_k)}}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),K6=(()=>{class e{constructor(){g(vk)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[D6]})}return e})();const gy={};let _y=(()=>{class e{_appId=g(rr);getId(t){return"ng"!==this._appId&&(t+=this._appId),gy.hasOwnProperty(t)||(gy[t]=0),`${t}${gy[t]++}`}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Q6=new C("cdk-dir-doc",{providedIn:"root",factory:function X6(){return g(ae)}}),J6=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let vy=(()=>{class e{value="ltr";change=new fe;constructor(){const t=g(Q6,{optional:!0});t&&(this.value=function e9(e){const n=e?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?J6.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wc=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})(),Zt=(()=>{class e{constructor(){g(vk)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[wc,wc]})}return e})(),yk=(()=>{class e{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yy=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return e})();var Rn=function(e){return e[e.FADING_IN=0]="FADING_IN",e[e.VISIBLE=1]="VISIBLE",e[e.FADING_OUT=2]="FADING_OUT",e[e.HIDDEN=3]="HIDDEN",e}(Rn||{});class a9{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Rn.HIDDEN;constructor(n,t,i,r=!1){this._renderer=n,this.element=t,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}}const bk=_c({passive:!0,capture:!0});class l9{_events=new Map;addHandler(n,t,i,r){const o=this._events.get(t);if(o){const s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(t,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,bk)})}removeHandler(n,t,i){const r=this._events.get(n);if(!r)return;const o=r.get(t);o&&(o.delete(i),0===o.size&&r.delete(t),0===r.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,bk)))}_delegateEventHandler=n=>{const t=Gi(n);t&&this._events.get(n.type)?.forEach((i,r)=>{(r===t||r.contains(t))&&i.forEach(o=>o.handleEvent(n))})}}const ef={enterDuration:225,exitDuration:150},wk=_c({passive:!0,capture:!0}),Ck=["mousedown","touchstart"],Ek=["mouseup","mouseleave","touchend","touchcancel"];let d9=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return e})();class tf{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new l9;constructor(n,t,i,r,o){this._target=n,this._ngZone=t,this._platform=r,r.isBrowser&&(this._containerElement=la(i)),o&&o.get(Dr).load(d9)}fadeInRipple(n,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...ef,...i.animation};i.centered&&(n=r.left+r.width/2,t=r.top+r.height/2);const s=i.radius||function u9(e,n,t){const i=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),r=Math.max(Math.abs(n-t.top),Math.abs(n-t.bottom));return Math.sqrt(i*i+r*r)}(n,t,r),a=n-r.left,l=t-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=l-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=i.color&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),h=u.transitionDuration,p="none"===u.transitionProperty||"0s"===h||"0s, 0s"===h||0===r.width&&0===r.height,m=new a9(this,d,i,p);d.style.transform="scale3d(1, 1, 1)",m.state=Rn.FADING_IN,i.persistent||(this._mostRecentTransientRipple=m);let _=null;return!p&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const y=()=>{_&&(_.fallbackTimer=null),clearTimeout(E),this._finishRippleTransition(m)},v=()=>this._destroyRipple(m),E=setTimeout(v,c+100);d.addEventListener("transitionend",y),d.addEventListener("transitioncancel",v),_={onTransitionEnd:y,onTransitionCancel:v,fallbackTimer:E}}),this._activeRipples.set(m,_),(p||!c)&&this._finishRippleTransition(m),m}fadeOutRipple(n){if(n.state===Rn.FADING_OUT||n.state===Rn.HIDDEN)return;const t=n.element,i={...ef,...n.config.animation};t.style.transitionDuration=`${i.exitDuration}ms`,t.style.opacity="0",n.state=Rn.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){const t=la(n);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Ck.forEach(i=>{tf._eventManager.addHandler(this._ngZone,i,t,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ek.forEach(t=>{this._triggerElement.addEventListener(t,this,wk)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Rn.FADING_IN?this._startFadeOutTransition(n):n.state===Rn.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const t=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Rn.VISIBLE,!i&&(!t||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const t=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=Rn.HIDDEN,null!==t&&(n.element.removeEventListener("transitionend",t.onTransitionEnd),n.element.removeEventListener("transitioncancel",t.onTransitionCancel),null!==t.fallbackTimer&&clearTimeout(t.fallbackTimer)),n.element.remove()}_onMousedown(n){const t=fk(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===Rn.VISIBLE||n.config.terminateOnPointerUp&&n.state===Rn.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(Ck.forEach(t=>tf._eventManager.removeHandler(t,n,this)),this._pointerUpEventsRegistered&&(Ek.forEach(t=>n.removeEventListener(t,this,wk)),this._pointerUpEventsRegistered=!1))}}const Dk=new C("mat-ripple-global-options");let xk=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[Zt,Zt]})}return e})();const Sk={capture:!0},Ik=["focus","mousedown","mouseenter","touchstart"],by="mat-ripple-loader-uninitialized",wy="mat-ripple-loader-class-name",Mk="mat-ripple-loader-centered",nf="mat-ripple-loader-disabled";let Tk=(()=>{class e{_document=g(ae,{optional:!0});_animationMode=g(Gr,{optional:!0});_globalRippleOptions=g(Dk,{optional:!0});_platform=g(sn);_ngZone=g(q);_injector=g(De);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(const t of Ik)this._document?.addEventListener(t,this._onInteraction,Sk)})}ngOnDestroy(){const t=this._hosts.keys();for(const i of t)this.destroyRipple(i);for(const i of Ik)this._document?.removeEventListener(i,this._onInteraction,Sk)}configureRipple(t,i){t.setAttribute(by,this._globalRippleOptions?.namespace??""),(i.className||!t.hasAttribute(wy))&&t.setAttribute(wy,i.className||""),i.centered&&t.setAttribute(Mk,""),i.disabled&&t.setAttribute(nf,"")}setDisabled(t,i){const r=this._hosts.get(t);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(t))):i?t.setAttribute(nf,""):t.removeAttribute(nf)}_onInteraction=t=>{const i=Gi(t);if(i instanceof HTMLElement){const r=i.closest(`[${by}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();const i=this._document.createElement("span");i.classList.add("mat-ripple",t.getAttribute(wy)),t.append(i);const r="NoopAnimations"===this._animationMode,o=this._globalRippleOptions,s=r?0:o?.animation?.enterDuration??ef.enterDuration,a=r?0:o?.animation?.exitDuration??ef.exitDuration,l={rippleDisabled:r||o?.disabled||t.hasAttribute(nf),rippleConfig:{centered:t.hasAttribute(Mk),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:s,exitDuration:a}}},c=new tf(l,this._ngZone,i,this._platform,this._injector),d=!l.rippleDisabled;d&&c.setupTriggerEvents(t),this._hosts.set(t,{target:l,renderer:c,hasSetUpEvents:d}),t.removeAttribute(by)}destroyRipple(t){const i=this._hosts.get(t);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(t))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function kk(e={}){const{connector:n=()=>new Q,resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return o=>{let s,a,l,c=0,d=!1,u=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,d=u=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return tt((m,_)=>{c++,!u&&!d&&f();const y=l=l??n();_.add(()=>{c--,0===c&&!u&&!d&&(a=Cy(p,r))}),y.subscribe(_),!s&&c>0&&(s=new Sa({next:v=>y.next(v),error:v=>{u=!0,f(),a=Cy(h,t,v),y.error(v)},complete:()=>{d=!0,f(),a=Cy(h,i),y.complete()}}),Wt(m).subscribe(s))})(o)}}function Cy(e,n,...t){if(!0===n)return void e();if(!1===n)return;const i=new Sa({next:()=>{i.unsubscribe(),e()}});return Wt(n(...t)).subscribe(i)}class rf{}class sf{}class Nn{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),o=t.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,i)=>{this.addHeaderEntry(i,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,i])=>{this.setHeaderEntries(t,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof Nn?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(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new Nn;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Nn?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,t);const r=("a"===n.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}addHeaderEntry(n,t){const i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(t):this.headers.set(i,[t])}setHeaderEntries(n,t){const i=(Array.isArray(t)?t:[t]).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(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class h9{encodeKey(n){return Rk(n)}encodeValue(n){return Rk(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const p9=/%(\d[a-f0-9])/gi,m9={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Rk(e){return encodeURIComponent(e).replace(p9,(n,t)=>m9[t]??n)}function af(e){return`${e}`}class xr{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new h9,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function f9(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const i=n.fromObject[t],r=Array.isArray(i)?i.map(af):[af(i)];this.map.set(t,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new xr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(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":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(af(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(af(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class g9{map=new Map;set(n,t){return this.map.set(n,t),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 Nk(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Fk(e){return typeof Blob<"u"&&e instanceof Blob}function Ok(e){return typeof FormData<"u"&&e instanceof FormData}class Ec{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(n,t,i,r){let o;if(this.url=t,this.method=n.toUpperCase(),function _9(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?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 Nn,this.context??=new g9,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":af.set(h,n.setHeaders[h]),c)),n.setParams&&(d=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),d)),new Ec(t,i,s,{params:d,headers:c,context:u,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}}var Sr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Sr||{});class Ey{headers;status;statusText;url;ok;type;constructor(n,t=200,i="OK"){this.headers=n.headers||new Nn,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class lf extends Ey{constructor(n={}){super(n)}type=Sr.ResponseHeader;clone(n={}){return new lf({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class bo extends Ey{body;constructor(n={}){super(n),this.body=void 0!==n.body?n.body:null}type=Sr.Response;clone(n={}){return new bo({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ua extends Ey{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Dy(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Dc=(()=>{class e{handler;constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof Ec)o=t;else{let l,c;l=r.headers instanceof Nn?r.headers:new Nn(r.headers),r.params&&(c=r.params instanceof xr?r.params:new xr({fromObject:r.params})),o=new Ec(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}const s=F(o).pipe(Ys(l=>this.handler.handle(l)));if(t instanceof Ec||"events"===r.observe)return s;const a=s.pipe(yn(l=>l instanceof bo));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(K(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(K(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(K(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(K(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new xr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,Dy(r,i))}post(t,i,r={}){return this.request("POST",t,Dy(r,i))}put(t,i,r={}){return this.request("PUT",t,Dy(r,i))}static \u0275fac=function(i){return new(i||e)(M(rf))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const w9=/^\)\]\}',?\n/;function Lk(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let xy=(()=>{class e{fetchImpl=g(E9,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t));ngZone=g(q);handle(t){return new Be(i=>{const r=new AbortController;return this.doRequest(t,r.signal,i).then(Sy,o=>i.error(new ua({error:o}))),()=>r.abort()})}doRequest(t,i,r){var o=this;return ii(function*(){const s=o.createRequestInit(t);let a;try{const p=o.ngZone.runOutsideAngular(()=>o.fetchImpl(t.urlWithParams,{signal:i,...s}));(function D9(e){e.then(Sy,Sy)})(p),r.next({type:Sr.Sent}),a=yield p}catch(p){return void r.error(new ua({error:p,status:p.status??0,statusText:p.statusText,url:t.urlWithParams,headers:p.headers}))}const l=new Nn(a.headers),c=a.statusText,d=Lk(a)??t.urlWithParams;let u=a.status,f=null;if(t.reportProgress&&r.next(new lf({headers:l,status:u,statusText:c,url:d})),a.body){const p=a.headers.get("content-length"),m=[],_=a.body.getReader();let v,E,y=0;const I=typeof Zone<"u"&&Zone.current;yield o.ngZone.runOutsideAngular(ii(function*(){for(;;){const{done:W,value:J}=yield _.read();if(W)break;if(m.push(J),y+=J.length,t.reportProgress){E="text"===t.responseType?(E??"")+(v??=new TextDecoder).decode(J,{stream:!0}):void 0;const be=()=>r.next({type:Sr.DownloadProgress,total:p?+p:void 0,loaded:y,partialText:E});I?I.run(be):be()}}}));const B=o.concatChunks(m,y);try{const W=a.headers.get("Content-Type")??"";f=o.parseBody(t,B,W)}catch(W){return void r.error(new ua({error:W,headers:new Nn(a.headers),status:a.status,statusText:a.statusText,url:Lk(a)??t.urlWithParams}))}}0===u&&(u=f?200:0),u>=200&&u<300?(r.next(new bo({body:f,headers:l,status:u,statusText:c,url:d})),r.complete()):r.error(new ua({error:f,headers:l,status:u,statusText:c,url:d}))})()}parseBody(t,i,r){switch(t.responseType){case"json":const o=(new TextDecoder).decode(i).replace(w9,"");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(t){const i={},r=t.withCredentials?"include":void 0;if(t.headers.forEach((o,s)=>i[o]=s.join(",")),t.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const o=t.detectContentTypeHeader();null!==o&&(i["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:i,credentials:r}}concatChunks(t,i){const r=new Uint8Array(i);let o=0;for(const s of t)r.set(s,o),o+=s.length;return r}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();class E9{}function Sy(){}function Vk(e,n){return n(e)}function x9(e,n){return(t,i)=>n.intercept(t,{handle:r=>e(r,i)})}const I9=new C(""),xc=new C(""),Bk=new C(""),jk=new C("",{providedIn:"root",factory:()=>!0});function M9(){let e=null;return(n,t)=>{null===e&&(e=(g(I9,{optional:!0})??[]).reduceRight(x9,Vk));const i=g(Un);if(g(jk)){const o=i.add();return e(n,t).pipe(Ks(()=>i.remove(o)))}return e(n,t)}}let Hk=(()=>{class e extends rf{backend;injector;chain=null;pendingTasks=g(Un);contributeToStability=g(jk);constructor(t,i){super(),this.backend=t,this.injector=i}handle(t){if(null===this.chain){const i=Array.from(new Set([...this.injector.get(xc),...this.injector.get(Bk,[])]));this.chain=i.reduceRight((r,o)=>function S9(e,n,t){return(i,r)=>xn(t,()=>n(i,o=>e(o,r)))}(r,o,this.injector),Vk)}if(this.contributeToStability){const i=this.pendingTasks.add();return this.chain(t,r=>this.backend.handle(r)).pipe(Ks(()=>this.pendingTasks.remove(i)))}return this.chain(t,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||e)(M(sf),M(Dt))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const N9=/^\)\]\}',?\n/;let zk=(()=>{class e{xhrFactory;constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new b(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?lt(i.\u0275loadImpl()):F(null)).pipe(vn(()=>new Be(o=>{const s=i.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((m,_)=>s.setRequestHeader(m,_.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const m=t.detectContentTypeHeader();null!==m&&s.setRequestHeader("Content-Type",m)}if(t.responseType){const m=t.responseType.toLowerCase();s.responseType="json"!==m?m:"text"}const a=t.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const m=s.statusText||"OK",_=new Nn(s.getAllResponseHeaders()),y=function F9(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return l=new lf({headers:_,status:s.status,statusText:m,url:y}),l},d=()=>{let{headers:m,status:_,statusText:y,url:v}=c(),E=null;204!==_&&(E=typeof s.response>"u"?s.responseText:s.response),0===_&&(_=E?200:0);let I=_>=200&&_<300;if("json"===t.responseType&&"string"==typeof E){const B=E;E=E.replace(N9,"");try{E=""!==E?JSON.parse(E):null}catch(W){E=B,I&&(I=!1,E={error:W,text:E})}}I?(o.next(new bo({body:E,headers:m,status:_,statusText:y,url:v||void 0})),o.complete()):o.error(new ua({error:E,headers:m,status:_,statusText:y,url:v||void 0}))},u=m=>{const{url:_}=c(),y=new ua({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:_||void 0});o.error(y)};let f=!1;const h=m=>{f||(o.next(c()),f=!0);let _={type:Sr.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(_.total=m.total),"text"===t.responseType&&s.responseText&&(_.partialText=s.responseText),o.next(_)},p=m=>{let _={type:Sr.UploadProgress,loaded:m.loaded};m.lengthComputable&&(_.total=m.total),o.next(_)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),t.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),o.next({type:Sr.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),t.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(i){return new(i||e)(M(GM))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const Iy=new C(""),$k=new C("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Gk=new C("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class qk{}let L9=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(t,i,r){this.doc=t,this.platform=i,this.cookieName=r}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=AM(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(i){return new(i||e)(M(ae),M(ui),M($k))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function V9(e,n){const t=e.url.toLowerCase();if(!g(Iy)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const i=g(qk).getToken(),r=g(Gk);return null!=i&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,i)})),n(e)}var Ir=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Ir||{});function wo(e,n){return{\u0275kind:e,\u0275providers:n}}function B9(...e){const n=[Dc,zk,Hk,{provide:rf,useExisting:Hk},{provide:sf,useFactory:()=>g(xy,{optional:!0})??g(zk)},{provide:xc,useValue:V9,multi:!0},{provide:Iy,useValue:!0},{provide:qk,useClass:L9}];for(const t of e)n.push(...t.\u0275providers);return function er(e){return{\u0275providers:e}}(n)}const Wk=new C(""),Y9=["*"];let df;function Sc(e){return function K9(){if(void 0===df&&(df=null,typeof window<"u")){const e=window;void 0!==e.trustedTypes&&(df=e.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return df}()?.createHTML(e)||e}function tR(e){return Error(`Unable to find icon with the name "${e}"`)}function nR(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function iR(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class Co{url;svgText;options;svgElement;constructor(n,t,i){this.url=n,this.svgText=t,this.options=i}}let uf=(()=>{class e{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(t,i,r,o){this._httpClient=t,this._sanitizer=i,this._errorHandler=o,this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,o){return this._addSvgIconConfig(t,i,new Co(r,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,o){const s=this._sanitizer.sanitize(wt.HTML,r);if(!s)throw iR(r);const a=Sc(s);return this._addSvgIconConfig(t,i,new Co("",a,o))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new Co(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const o=this._sanitizer.sanitize(wt.HTML,i);if(!o)throw iR(i);const s=Sc(o);return this._addSvgIconSetConfig(t,new Co("",s,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(wt.RESOURCE_URL,t);if(!i)throw nR(t);const r=this._cachedIconsByUrl.get(i);return r?F(hf(r)):this._loadSvgIconFromConfig(new Co(t,null)).pipe(_t(o=>this._cachedIconsByUrl.set(i,o)),K(o=>hf(o)))}getNamedSvgIcon(t,i=""){const r=rR(i,t);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,t),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(t,s):nc(tR(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?F(hf(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(K(i=>hf(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?F(r):function Ak(...e){const n=PT(e),{args:t,keys:i}=LT(e),r=new Be(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let d=0;d{u||(u=!0,c--),a[d]=f},()=>l--,void 0,()=>{(!l||!u)&&(c||o.next(i?VT(i,a):a),o.complete())}))}});return n?r.pipe(kv(n)):r}(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(ho(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(wt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),F(null)})))).pipe(K(()=>{const s=this._extractIconWithNameFromAnySet(t,i);if(!s)throw tR(t);return s}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,t,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(_t(i=>t.svgText=i),K(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?F(null):this._fetchIcon(t).pipe(_t(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const o=t.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(Sc(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(Sc("")),r=t.attributes;for(let o=0;oSc(c)),Ks(()=>this._inProgressUrlFetches.delete(s)),kk());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(rR(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;rn?n.pathname+n.search:""}}}),oR=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],iZ=oR.map(e=>`[${e}]`).join(", "),rZ=/^url\(['"]?#(.*?)['"]?\)$/;let oZ=(()=>{class e{_elementRef=g(Ce);_iconRegistry=g(uf);_location=g(tZ);_errorHandler=g(fn);_defaultColor;get color(){return this._color||this._defaultColor}set color(t){this._color=t}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ze.EMPTY;constructor(){const t=g(new GP("aria-hidden"),{optional:!0}),i=g(eZ,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),t||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>t.classList.remove(r)),i.forEach(r=>t.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(iZ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(rZ):null;if(c){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:s,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(yi(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){2&i&&(qe("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),Ol(r.color?"mat-"+r.color:""),It("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:[2,"inline","inline",Ae],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[qn],ngContentSelectors:Y9,decls:1,vars:0,template:function(i,r){1&i&&(Yn(),ot(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return e})(),sZ=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[Zt,Zt]})}return e})();function Ic(...e){const n=tc(e),t=function y5(e,n){return"number"==typeof Av(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?Wt(i[0]):Zs(t)(lt(i,n)):Xn}const ti=new C("");Promise.resolve(),Promise.resolve();var G=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(G||{});const Wi="*";function Fn(e){return{type:G.Style,styles:e,offset:null}}class Fc{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,t=0){this.totalTime=n+t}_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){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class cN{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let t=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==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){const t=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const dN=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],uN=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function wY(e,n){1&e&&(A(0,"span",3),ot(1,1),N())}function CY(e,n){1&e&&(A(0,"span",6),ot(1,2),N())}function EY(e,n){1&e&&(A(0,"span",3),ot(1,1),A(2,"span",8),function iC(){$.lFrame.currentNamespace="svg"}(),A(3,"svg",9),Ft(4,"path",10),N()()())}function DY(e,n){1&e&&(A(0,"span",6),ot(1,2),N())}const Qy=["*"],xf=new C("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),Xy=new C("MatChipAvatar"),Jy=new C("MatChipTrailingIcon"),eb=new C("MatChipRemove"),Sf=new C("MatChip");let pa=(()=>{class e{_elementRef=g(Ce);_parentChip=g(Sf);isInteractive=!0;_isPrimary=!0;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(t){this._disabled=t}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){g(Dr).load(yy),"BUTTON"===this._elementRef.nativeElement.nodeName&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(t){!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(i){return new(i||e)};static \u0275dir=O({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(i,r){1&i&&He("click",function(s){return r._handleClick(s)})("keydown",function(s){return r._handleKeydown(s)}),2&i&&(qe("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),It("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--trailing",!r._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",Ae],tabIndex:[2,"tabIndex","tabIndex",t=>null==t?-1:dM(t)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[qn]})}return e})(),ma=(()=>{class e{_changeDetectorRef=g(_r);_elementRef=g(Ce);_ngZone=g(q);_focusMonitor=g(py);_globalRippleOptions=g(Dk,{optional:!0});_document=g(ae);_onFocus=new Q;_onBlur=new Q;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled;_allLeadingIcons;_allTrailingIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=g(_y).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_ariaDescriptionId=`${this.id}-aria-description`;_chipListDisabled=!1;_textElement;get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(t){this._disabled=t}_disabled=!1;removed=new fe;destroyed=new fe;basicChipAttrName="mat-basic-chip";leadingIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=g(Tk);_injector=g(De);constructor(){g(Dr).load(yy),g(Dr).load(ZA);const t=g(Gr,{optional:!0});this._animationsDisabled="NoopAnimations"===t,this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const t=this._elementRef.nativeElement;this._isBasicChip=t.hasAttribute(this.basicChipAttrName)||t.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Ic(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(t){(8===t.keyCode&&!t.repeat||46===t.keyCode)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(i=>{const r=i._elementRef.nativeElement;return r===t||r.contains(t)})}_getActions(){const t=[];return this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),this.trailingIcon&&t.push(this.trailingIcon),t}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const i=null!==t;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):hi(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(1&i&&(gn(o,Xy,5),gn(o,Jy,5),gn(o,eb,5),gn(o,Xy,5),gn(o,Jy,5),gn(o,eb,5)),2&i){let s;Ot(s=Pt())&&(r.leadingIcon=s.first),Ot(s=Pt())&&(r.trailingIcon=s.first),Ot(s=Pt())&&(r.removeIcon=s.first),Ot(s=Pt())&&(r._allLeadingIcons=s),Ot(s=Pt())&&(r._allTrailingIcons=s),Ot(s=Pt())&&(r._allRemoveIcons=s)}},viewQuery:function(i,r){if(1&i&&zu(pa,5),2&i){let o;Ot(o=Pt())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){1&i&&He("keydown",function(s){return r._handleKeydown(s)}),2&i&&(ro("id",r.id),qe("role",r.role)("aria-label",r.ariaLabel),Ol("mat-"+(r.color||"primary")),It("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",Ae],highlighted:[2,"highlighted","highlighted",Ae],disableRipple:[2,"disableRipple","disableRipple",Ae],disabled:[2,"disabled","disabled",Ae]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[pe([{provide:Sf,useExisting:e}]),qn],ngContentSelectors:uN,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){1&i&&(Yn(dN),Ft(0,"span",0),A(1,"span",1)(2,"span",2),rt(3,wY,2,0,"span",3),A(4,"span",4),ot(5),Ft(6,"span",5),N()()(),rt(7,CY,2,0,"span",6)),2&i&&(P(2),ie("isInteractive",!1),P(),vi(r.leadingIcon?3:-1),P(4),vi(r._hasTrailingIcon()?7:-1))},dependencies:[pa],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width, 1px);border-radius:var(--mdc-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size, 24px);height:var(--mdc-chip-with-avatar-avatar-size, 24px);font-size:var(--mdc-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius, 8px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mdc-chip-with-icon-icon-size, 18px);height:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return e})(),tb=(()=>{class e extends ma{_defaultOptions=g(xf,{optional:!0});chipListSelectable=!0;_chipListMultiple=!1;_chipListHideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=t,this._changeDetectorRef.markForCheck()}_selectable=!0;get selected(){return this._selected}set selected(t){this._setSelectedState(t,!1,!0)}_selected=!1;get ariaSelected(){return this.selectable?this.selected.toString():null}basicChipAttrName="mat-basic-chip-option";selectionChange=new fe;ngOnInit(){super.ngOnInit(),this.role="presentation"}select(){this._setSelectedState(!0,!1,!0)}deselect(){this._setSelectedState(!1,!1,!0)}selectViaInteraction(){this._setSelectedState(!0,!0,!0)}toggleSelected(t=!1){return this._setSelectedState(!this.selected,t,!0),this.selected}_handlePrimaryActionInteraction(){this.disabled||(this.focus(),this.selectable&&this.toggleSelected(!0))}_hasLeadingGraphic(){return!!this.leadingIcon||!this._chipListHideSingleSelectionIndicator||this._chipListMultiple}_setSelectedState(t,i,r){t!==this.selected&&(this._selected=t,r&&this.selectionChange.emit({source:this,isUserInput:i,selected:this.selected}),this._changeDetectorRef.markForCheck())}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275cmp=it({type:e,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(i,r){2&i&&(ro("id",r.id),qe("tabindex",null)("aria-label",null)("aria-description",null)("role",r.role),It("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--filter",!r._isBasicChip)("mdc-evolution-chip--selectable",!r._isBasicChip)("mat-mdc-chip-selected",r.selected)("mat-mdc-chip-multiple",r._chipListMultiple)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-chip-with-avatar",r.leadingIcon)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--selected",r.selected)("mdc-evolution-chip--selecting",!r._animationsDisabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-primary-graphic",r._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon()))},inputs:{selectable:[2,"selectable","selectable",Ae],selected:[2,"selected","selected",Ae]},outputs:{selectionChange:"selectionChange"},features:[pe([{provide:ma,useExisting:e},{provide:Sf,useExisting:e}]),qn,oe],ngContentSelectors:uN,decls:10,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","","role","option",3,"_allowFocusWhenDisabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill","none","stroke","currentColor","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"]],template:function(i,r){1&i&&(Yn(dN),Ft(0,"span",0),A(1,"span",1)(2,"button",2),rt(3,EY,5,0,"span",3),A(4,"span",4),ot(5),Ft(6,"span",5),N()()(),rt(7,DY,2,0,"span",6),A(8,"span",7),se(9),N()),2&i&&(P(2),ie("_allowFocusWhenDisabled",!0),qe("aria-selected",r.ariaSelected)("aria-label",r.ariaLabel)("aria-describedby",r._ariaDescriptionId),P(),vi(r._hasLeadingGraphic()?3:-1),P(4),vi(r._hasTrailingIcon()?7:-1),P(),ie("id",r._ariaDescriptionId),P(),so(r.ariaDescription))},dependencies:[pa],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width, 1px);border-radius:var(--mdc-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size, 24px);height:var(--mdc-chip-with-avatar-avatar-size, 24px);font-size:var(--mdc-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius, 8px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mdc-chip-with-icon-icon-size, 18px);height:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return e})(),nb=(()=>{class e{_elementRef=g(Ce);_changeDetectorRef=g(_r);_dir=g(vy,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new Q;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(t=>t._onFocus)}get chipDestroyedChanges(){return this._getChipStream(t=>t.destroyed)}get chipRemovedChanges(){return this._getChipStream(t=>t.removed)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(t){this._explicitRole=t}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new qa;constructor(){}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(t=>t._hasFocus())}_syncChipsState(){this._chips?.forEach(t=>{t._chipListDisabled=this._disabled,t._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(t){this._originatesFromChip(t)&&this._keyManager.onKeydown(t)}_isValidIndex(t){return t>=0&&tthis._elementRef.nativeElement.tabIndex=t))}_getChipStream(t){return this._chips.changes.pipe(uo(null),vn(()=>Ic(...this._chips.map(t))))}_originatesFromChip(t){let i=t.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(uo(this._chips)).subscribe(t=>{const i=[];t.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new O6(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(t=>this._skipPredicate(t)),this.chipFocusChanges.pipe(Je(this._destroyed)).subscribe(({chip:t})=>{const i=t._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(Je(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t))}_skipPredicate(t){return!t.isInteractive||t.disabled}_trackChipSetChanges(){this._chips.changes.pipe(uo(null),Je(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Je(this._destroyed)).subscribe(t=>{const r=this._chips.toArray().indexOf(t.chip);this._isValidIndex(r)&&t.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const t=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[t];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(1&i&&gn(o,ma,5),2&i){let s;Ot(s=Pt())&&(r._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){1&i&&He("keydown",function(s){return r._handleKeydown(s)}),2&i&&qe("role",r.role)},inputs:{disabled:[2,"disabled","disabled",Ae],role:"role",tabIndex:[2,"tabIndex","tabIndex",t=>null==t?0:dM(t)]},features:[qn],ngContentSelectors:Qy,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){1&i&&(Yn(),A(0,"div",0),ot(1),N())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return e})();class LY{source;value;constructor(n,t){this.source=n,this.value=t}}const VY={provide:ti,useExisting:Ie(()=>ib),multi:!0};let ib=(()=>{class e extends nb{_onTouched=()=>{};_onChange=()=>{};_defaultRole="listbox";_pendingInitialValue;_defaultOptions=g(xf,{optional:!0});get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._syncListboxProperties()}_multiple=!1;get selected(){const t=this._chips.toArray().filter(i=>i.selected);return this.multiple?t:t[0]}ariaOrientation="horizontal";get selectable(){return this._selectable}set selectable(t){this._selectable=t,this._syncListboxProperties()}_selectable=!0;compareWith=(t,i)=>t===i;required=!1;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncListboxProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get chipSelectionChanges(){return this._getChipStream(t=>t.selectionChange)}get chipBlurChanges(){return this._getChipStream(t=>t._onBlur)}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}_value;change=new fe;_chips=void 0;ngAfterContentInit(){void 0!==this._pendingInitialValue&&Promise.resolve().then(()=>{this._setSelectionByValue(this._pendingInitialValue,!1),this._pendingInitialValue=void 0}),this._chips.changes.pipe(uo(null),Je(this._destroyed)).subscribe(()=>{this._syncListboxProperties()}),this.chipBlurChanges.pipe(Je(this._destroyed)).subscribe(()=>this._blur()),this.chipSelectionChanges.pipe(Je(this._destroyed)).subscribe(t=>{this.multiple||this._chips.forEach(i=>{i!==t.source&&i._setSelectedState(!1,!1,!1)}),t.isUserInput&&this._propagateChanges()})}focus(){if(this.disabled)return;const t=this._getFirstSelectedChip();t&&!t.disabled?t.focus():this._chips.length>0?this._keyManager.setFirstItemActive():this._elementRef.nativeElement.focus()}writeValue(t){this._chips?this._setSelectionByValue(t,!1):null!=t&&(this._pendingInitialValue=t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_setSelectionByValue(t,i=!0){this._clearSelection(),Array.isArray(t)?t.forEach(r=>this._selectValue(r,i)):this._selectValue(t,i)}_blur(){this.disabled||setTimeout(()=>{this.focused||this._markAsTouched()})}_keydown(t){9===t.keyCode&&super._allowFocusEscape()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck()}_propagateChanges(){let t=null;t=Array.isArray(this.selected)?this.selected.map(i=>i.value):this.selected?this.selected.value:void 0,this._value=t,this.change.emit(new LY(this,t)),this._onChange(t),this._changeDetectorRef.markForCheck()}_clearSelection(t){this._chips.forEach(i=>{i!==t&&i.deselect()})}_selectValue(t,i){const r=this._chips.find(o=>null!=o.value&&this.compareWith(o.value,t));return r&&(i?r.selectViaInteraction():r.select()),r}_syncListboxProperties(){this._chips&&Promise.resolve().then(()=>{this._chips.forEach(t=>{t._chipListMultiple=this.multiple,t.chipListSelectable=this._selectable,t._chipListHideSingleSelectionIndicator=this.hideSingleSelectionIndicator,t._changeDetectorRef.markForCheck()})})}_getFirstSelectedChip(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected}_skipPredicate(t){return!t.isInteractive}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275cmp=it({type:e,selectors:[["mat-chip-listbox"]],contentQueries:function(i,r,o){if(1&i&&gn(o,tb,5),2&i){let s;Ot(s=Pt())&&(r._chips=s)}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:11,hostBindings:function(i,r){1&i&&He("focus",function(){return r.focus()})("blur",function(){return r._blur()})("keydown",function(s){return r._keydown(s)}),2&i&&(ro("tabIndex",r.disabled||r.empty?-1:r.tabIndex),qe("role",r.role)("aria-describedby",r._ariaDescribedby||null)("aria-required",r.role?r.required:null)("aria-disabled",r.disabled.toString())("aria-multiselectable",r.multiple)("aria-orientation",r.ariaOrientation),It("mat-mdc-chip-list-disabled",r.disabled)("mat-mdc-chip-list-required",r.required))},inputs:{multiple:[2,"multiple","multiple",Ae],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",Ae],compareWith:"compareWith",required:[2,"required","required",Ae],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ae],value:"value"},outputs:{change:"change"},features:[pe([VY]),qn,oe],ngContentSelectors:Qy,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){1&i&&(Yn(),A(0,"div",0),ot(1),N())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return e})(),jY=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({providers:[yk,{provide:xf,useValue:{separatorKeyCodes:[13]}}],imports:[Zt,xk,Zt]})}return e})();const HY=["addListener","removeListener"],UY=["addEventListener","removeEventListener"],zY=["on","off"];function rb(e,n,t,i){if(ue(t)&&(i=t,t=void 0),i)return rb(e,n,t).pipe(kv(i));const[r,o]=function qY(e){return ue(e.addEventListener)&&ue(e.removeEventListener)}(e)?UY.map(s=>a=>e[s](n,a,t)):function $Y(e){return ue(e.addListener)&&ue(e.removeListener)}(e)?HY.map(mN(e,n)):function GY(e){return ue(e.on)&&ue(e.off)}(e)?zY.map(mN(e,n)):[];if(!r&&Tv(e))return Tt(s=>rb(s,n,t))(Wt(e));if(!r)throw new TypeError("Invalid event target");return new Be(s=>{const a=(...l)=>s.next(1o(a)})}function mN(e,n){return t=>i=>e[t](n,i)}const Oc={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=Oc;i&&(n=i.requestAnimationFrame,t=i.cancelAnimationFrame);const r=n(o=>{t=void 0,e(o)});return new Ze(()=>t?.(r))},requestAnimationFrame(...e){const{delegate:n}=Oc;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=Oc;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};new class ZY extends dy{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class WY extends ly{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=Oc.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(Oc.cancelAnimationFrame(t),n._scheduled=void 0)}});let ob,KY=1;const Mf={};function gN(e){return e in Mf&&(delete Mf[e],!0)}const QY={setImmediate(e){const n=KY++;return Mf[n]=!0,ob||(ob=Promise.resolve()),ob.then(()=>gN(n)&&e()),n},clearImmediate(e){gN(e)}},{setImmediate:XY,clearImmediate:JY}=QY,Tf={setImmediate(...e){const{delegate:n}=Tf;return(n?.setImmediate||XY)(...e)},clearImmediate(e){const{delegate:n}=Tf;return(n?.clearImmediate||JY)(e)},delegate:void 0};new class tK extends dy{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class eK extends ly{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=Tf.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(Tf.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))}});function _N(e=0,n,t=w6){let i=-1;return null!=n&&(OT(n)?t=n:i=n),new Be(r=>{let o=function rK(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function vN(e,n=uy){return function iK(e){return tt((n,t)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,t.next(c)}s&&t.complete()},l=()=>{o=null,s&&t.complete()};n.subscribe(ze(t,c=>{i=!0,r=c,o||Wt(e(c)).subscribe(o=ze(t,a,l))},()=>{s=!0,(!i||!o||o.closed)&&t.complete()}))})}(()=>_N(e,n))}let yN=(()=>{class e{_ngZone=g(q);_platform=g(sn);_document=g(ae,{optional:!0});constructor(){}_scrolled=new Q;_globalSubscription=null;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Be(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(vN(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):F()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(yn(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=la(i),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>rb(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),bN=(()=>{class e{_platform=g(sn);_viewportSize;_change=new Q;_changeListener=t=>{this._change.next(t)};_document=g(ae,{optional:!0});constructor(){g(q).runOutsideAngular(()=>{if(this._platform.isBrowser){const i=this._getWindow();i.addEventListener("resize",this._changeListener),i.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(vN(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pc=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})(),wN=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[wc,Pc,wc,Pc]})}return e})();class sb{_attachedHost;attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class CN extends sb{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(n,t,i,r,o){super(),this.component=n,this.viewContainerRef=t,this.injector=i,this.projectableNodes=o}}class aK extends sb{templateRef;viewContainerRef;context;injector;constructor(n,t,i,r){super(),this.templateRef=n,this.viewContainerRef=t,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,t=this.context){return this.context=t,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class lK extends sb{element;constructor(n){super(),this.element=n instanceof Ce?n.nativeElement:n}}class cK{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof CN?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof aK?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof lK?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}attachDomPortal=null;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)}}class dK extends cK{outletElement;_appRef;_defaultInjector;_document;constructor(n,t,i,r,o){super(),this.outletElement=n,this._appRef=i,this._defaultInjector=r,this._document=o}attachComponentPortal(n){let t;if(n.viewContainerRef){const i=n.injector||n.viewContainerRef.injector,r=i.get(dr,null,{optional:!0})||void 0;t=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else t=gM(n.component,{elementInjector:n.injector||this._defaultInjector||De.NULL,environmentInjector:this._appRef.injector,projectableNodes:n.projectableNodes||void 0}),this._appRef.attachView(t.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(t.hostView),t.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=n,t}attachTemplatePortal(n){let t=n.viewContainerRef,i=t.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{const t=n.element,i=this._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),this.outletElement.appendChild(t),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let EN=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})();const DN=e6();class uK{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(n,t){this._viewportRuler=n,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=ct(-this._previousScrollPosition.left),n.style.top=ct(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.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"),DN&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),DN&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class hK{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,t,i,r){this._scrollDispatcher=n,this._ngZone=t,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(yn(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-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}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class xN{enable(){}disable(){}attach(){}}function ab(e,n){return n.some(t=>e.bottomt.bottom||e.rightt.right)}function SN(e,n){return n.some(t=>e.topt.bottom||e.leftt.right)}class fK{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,t,i,r){this._scrollDispatcher=n,this._viewportRuler=t,this._ngZone=i,this._config=r}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();ab(t,[{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}}let pK=(()=>{class e{_scrollDispatcher=g(yN);_viewportRuler=g(bN);_ngZone=g(q);_document=g(ae);constructor(){}noop=()=>new xN;close=t=>new hK(this._scrollDispatcher,this._ngZone,this._viewportRuler,t);block=()=>new uK(this._viewportRuler,this._document);reposition=t=>new fK(this._scrollDispatcher,this._viewportRuler,this._ngZone,t);static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class mK{positionStrategy;scrollStrategy=new xN;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){const t=Object.keys(n);for(const i of t)void 0!==n[i]&&(this[i]=n[i])}}}class gK{connectionPair;scrollableViewProperties;constructor(n,t){this.connectionPair=n,this.scrollableViewProperties=t}}let IN=(()=>{class e{_attachedOverlays=[];_document=g(ae);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_K=(()=>{class e extends IN{_ngZone=g(q,{optional:!0});add(t){super.add(t),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)}_keydownListener=t=>{const i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){const o=i[r]._keydownEvents;this._ngZone?this._ngZone.run(()=>o.next(t)):o.next(t);break}};static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vK=(()=>{class e extends IN{_platform=g(sn);_ngZone=g(q,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(t){if(super.add(t),!this._isAttached){const 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){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=t=>{this._pointerDownEventTarget=Gi(t)};_clickListener=t=>{const i=Gi(t),r="click"===t.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){const a=o[s];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(MN(a.overlayElement,i)||MN(a.overlayElement,r))break;const l=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(t)):l.next(t)}};static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function MN(e,n){const t=typeof ShadowRoot<"u"&&ShadowRoot;let i=n;for(;i;){if(i===e)return!0;i=t&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}let TN=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return e})(),AN=(()=>{class e{_platform=g(sn);_containerElement;_document=g(ae);_styleLoader=g(Dr);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||WA()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(n);_backdropTransitionendHandler=n=>{this._disposeBackdrop(n.target)};_previousHostParent;_keydownEvents=new Q;_outsidePointerEvents=new Q;_renders=new Q;_afterRenderRef;_afterNextRenderRef;constructor(n,t,i,r,o,s,a,l,c,d=!1,u){this._portalOutlet=n,this._host=t,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=u,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=Lt(()=>function hE(e,n){!n?.injector&&Zo();const t=n?.injector??g(De);return bt("NgAfterRender"),fE(e,t,n,!1)}(()=>{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);const t=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=hi(()=>{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),"function"==typeof t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const 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={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...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(){const n=this._config.direction;return n?"string"==typeof n?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;const n=this._pane.style;n.width=ct(this._config.width),n.height=ct(this._config.height),n.minWidth=ct(this._config.minWidth),n.minHeight=ct(this._config.minHeight),n.maxWidth=ct(this._config.maxWidth),n.maxHeight=ct(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const 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(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);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,t,i){const r=Yh(t||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const n=this._renders.pipe(Je(Ic(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(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(){const 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)}}const kN="cdk-overlay-connected-position-bounding-box",bK=/([A-Za-z%]+)$/;class wK{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new Q;_resizeSubscription=Ze.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(kN),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)return void this.reapplyLastPosition();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();const n=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,r,a),c=this._getOverlayPoint(l,t,a),d=this._getOverlayFit(c,t,i,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,i)?o.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=d,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Io(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(kN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,t)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(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,t,i){let r,o;if("center"==i.originX)r=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r="start"==i.originX?s:a}return t.left<0&&(r-=t.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(n,t,i){let r,o;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,t,i,r){const o=NN(t);let{x:s,y:a}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let f=0-a,h=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),m=this._subtractOverflows(o.height,f,h),_=p*m;return{visibleArea:_,isCompletelyWithinViewport:o.width*o.height===_,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(n,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,o=i.right-t.x,s=RN(this._overlayRef.getConfig().minHeight),a=RN(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=s&&s<=r)&&(n.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(n,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=NN(t),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0);let d=0,u=0;return d=r.width<=o.width?c||-s:n.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)f=i.width-n.x+2*this._viewportMargin,d=n.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)u=n.x,d=i.right-n.x;else{const h=Math.min(i.right-n.x+i.left,n.x),p=this._lastBoundingBoxSize.width;d=2*h,u=n.x-h,d>p&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-p/2)}return{top:s,left:u,bottom:a,right:f,width:d,height:o}}_setBoundingBoxStyles(n,t){const i=this._calculateBoundingBoxRect(n,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=ct(i.height),r.top=ct(i.top),r.bottom=ct(i.bottom),r.width=ct(i.width),r.left=ct(i.left),r.right=ct(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=ct(o)),s&&(r.maxWidth=ct(s))}this._lastBoundingBoxSize=i,Io(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Io(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Io(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,t){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();Io(i,this._getExactOverlayY(t,n,d)),Io(i,this._getExactOverlayX(t,n,d))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=ct(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ct(s.maxWidth):o&&(i.maxWidth="")),Io(this._pane.style,i)}_getExactOverlayY(n,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=ct(o.y),r}_getExactOverlayX(n,t,i){let s,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=ct(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:SN(n,i),isOriginOutsideView:ab(n,i),isOverlayClipped:SN(t,i),isOverlayOutsideView:ab(t,i)}}_subtractOverflows(n,...t){return t.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,t=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+t-this._viewportMargin,width:n-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,t){return"x"===t?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&Yh(n).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Ce)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const t=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+t,height:i,width:t}}}function Io(e,n){for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function RN(e){if("number"!=typeof e&&null!=e){const[n,t]=e.split(bK);return t&&"px"!==t?null:parseFloat(n)}return e||null}function NN(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const FN="cdk-global-overlay-wrapper";class EK{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(n){const t=n.getConfig();this._overlayRef=n,this._width&&!t.width&&n.updateSize({width:this._width}),this._height&&!t.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(FN),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;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let h="",p="",m="";l?m="flex-start":"center"===d?(m="center",f?p=u:h=u):f?"left"===d||"end"===d?(m="flex-end",h=u):("right"===d||"start"===d)&&(m="flex-start",p=u):"left"===d||"start"===d?(m="flex-start",h=u):("right"===d||"end"===d)&&(m="flex-end",p=u),n.position=this._cssPosition,n.marginLeft=l?"0":h,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":p,t.justifyContent=m,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(FN),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let DK=(()=>{class e{_viewportRuler=g(bN);_document=g(ae);_platform=g(sn);_overlayContainer=g(AN);constructor(){}global(){return new EK}flexibleConnectedTo(t){return new wK(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ga=(()=>{class e{scrollStrategies=g(pK);_overlayContainer=g(AN);_positionBuilder=g(DK);_keyboardDispatcher=g(_K);_injector=g(De);_ngZone=g(q);_document=g(ae);_directionality=g(vy);_location=g(Gs);_outsideClickDispatcher=g(vK);_animationsModuleType=g(Gr,{optional:!0});_idGenerator=g(_y);_appRef;_styleLoader=g(Dr);constructor(){}create(t){this._styleLoader.load(TN);const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new mK(t);return s.direction=s.direction||this._directionality.value,new yK(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(Dt))}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id=this._idGenerator.getId("cdk-overlay-"),i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(rn)),new dK(t,null,this._appRef,this._injector,this._document)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const IK={provide:new C("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const e=g(ga);return()=>e.scrollStrategies.reposition()}}),deps:[ga],useFactory:function SK(e){return()=>e.scrollStrategies.reposition()}};let MK=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({providers:[ga,IK],imports:[wc,EN,wN,wN]})}return e})();const TK=["tooltip"],PN=new C("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const e=g(ga);return()=>e.scrollStrategies.reposition({scrollThrottle:20})}}),kK={provide:PN,deps:[ga],useFactory:function AK(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}},NK=new C("mat-tooltip-default-options",{providedIn:"root",factory:function RK(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),LN="tooltip-panel",VN=_c({passive:!0});let VK=(()=>{class e{_overlay=g(ga);_elementRef=g(Ce);_scrollDispatcher=g(yN);_viewContainerRef=g(nn);_ngZone=g(q);_platform=g(sn);_ariaDescriber=g(R6);_focusMonitor=g(py);_dir=g(vy);_injector=g(De);_defaultOptions=g(NK,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_scrollStrategy=g(PN);_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=BK;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=nk(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){const i=nk(t);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=ik(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=ik(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){const i=this._message;this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_document=g(ae);_touchstartTimeout=null;_destroyed=new Q;constructor(){const t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._dir.change.pipe(Je(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Je(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,VN)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new CN(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(t):(i._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&o._origin instanceof Ce)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&t||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(Je(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${LN}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Je(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Je(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!Wh(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(t){const r=!this._dir||"ltr"==this._dir.value;return"top"===t.originY?t.offsetY=-8:"bottom"===t.originY?t.offsetY=8:"start"===t.originX?t.offsetX=r?-8:8:"end"===t.originX&&(t.offsetX=r?8:-8),t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),hi(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:o}=t;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${LN}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==t.x&&void 0!==t.y&&(i=t),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{const i=t.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,VN)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static \u0275fac=function(i){return new(i||e)};static \u0275dir=O({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){2&i&&It("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return e})(),BK=(()=>{class e{_changeDetectorRef=g(_r);_elementRef=g(Ce);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Q;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){const t=g(Gr,{optional:!0});this._animationsDisabled="NoopAnimations"===t}show(t){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>24&&t.width>=200}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(t?o:r),i.classList.add(t?r:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(1&i&&zu(TK,7),2&i){let o;Ot(o=Pt())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){1&i&&He("mouseleave",function(s){return r._handleMouseLeave(s)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(1&i){const o=Vu();A(0,"div",1,0),He("animationend",function(a){return Cd(o),Ed(r._handleAnimationEnd(a))}),A(2,"div",2),se(3),N()()}2&i&&(It("mdc-tooltip--multiline",r._isMultiline),ie("ngClass",r.tooltipClass),P(3),so(r.message))},dependencies:[RM],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return e})(),jK=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({providers:[kK],imports:[K6,MK,Zt,Zt,Pc]})}return e})();function HK(e,n){if(1&e){const t=Vu();A(0,"a",10),He("click",function(r){return Cd(t),Ed(r.stopPropagation())}),se(1),N()}if(2&e){const t=Ue().$implicit;C_("href","https://store.steampowered.com/app/"+t.titleId,_s),P(),Tn(" ",t.game_name," ")}}function UK(e,n){if(1&e&&(A(0,"div"),se(1),N()),2&e){const t=Ue().$implicit;P(),Tn(" ",t.game_name," ")}}function zK(e,n){if(1&e){const t=Vu();A(0,"mat-chip-option",11),He("click",function(r){const o=Cd(t).$implicit,s=Ue().$implicit;return Ed(Ue().onEngineClicked(r,s,o.key))}),se(1),N()}if(2&e){const t=n.$implicit,i=Ue().$implicit;ie("selected",Ue().titleEnginePicked[i.titleId]==t.key)("value",t.key),P(),Tn(" ",t.key," ")}}function $K(e,n){1&e&&(A(0,"mat-icon",29),se(1," sports_esports "),N()),2&e&&zt("color","darkgray")}function GK(e,n){1&e&&(A(0,"mat-icon",30),se(1," sports_esports "),N()),2&e&&zt("color","red")}function qK(e,n){1&e&&(A(0,"mat-icon",31),se(1," sports_esports "),N()),2&e&&zt("color","green")}function WK(e,n){1&e&&(A(0,"mat-icon",32),se(1," sports_esports "),N()),2&e&&zt("color","yellow")}function ZK(e,n){1&e&&(A(0,"mat-icon",33),se(1," sports_esports "),N()),2&e&&zt("color","yellow")}function YK(e,n){1&e&&(A(0,"mat-icon",34),se(1," sports_esports "),N()),2&e&&zt("color","yellow")}function KK(e,n){1&e&&(A(0,"mat-icon",35),se(1," cloud_off "),N()),2&e&&zt("color","darkgray")}function QK(e,n){if(1&e&&(A(0,"mat-icon",14),se(1," cloud "),N()),2&e){const t=Ue(2).$implicit,i=Ue();zt("color","red"),ie("matTooltip","Game Has Cloud Saves But Not Supported Due to "+i.translate_key(t.cloudIssueReason))}}function XK(e,n){1&e&&(A(0,"mat-icon",36),se(1," cloud "),N()),2&e&&zt("color","darkgray")}function JK(e,n){1&e&&(A(0,"mat-icon",37),se(1," cloud "),N()),2&e&&zt("color","green")}function eQ(e,n){if(1&e&&(A(0,"div",9)(1,"div",25),se(2,"Version"),N(),A(3,"div",26),se(4),N()()),2&e){const t=Ue(2).$implicit,i=Ue();P(4),Tn(" ",t.engines[i.titleEnginePicked[t.titleId]].version," ")}}function tQ(e,n){if(1&e&&(A(0,"div"),se(1),N()),2&e){const t=Ue().$implicit;P(),Tn(" ",t.label," ")}}function nQ(e,n){if(1&e&&(A(0,"div"),se(1),N()),2&e){const t=Ue().$implicit,i=Ue(5);P(),Tn(" ",i.NOTICE_MAP[t.value]," ")}}function iQ(e,n){if(1&e&&(A(0,"div"),se(1),N()),2&e){const t=Ue().$implicit,i=Ue(5);P(),Tn(" ",i.NOTICE_MAP[t.key]," ")}}function rQ(e,n){if(1&e&&(A(0,"li"),rt(1,tQ,2,1,"div",6)(2,nQ,2,1,"div",6)(3,iQ,2,1,"div",6),N()),2&e){const t=n.$implicit;P(),ie("ngIf",t.label),P(),ie("ngIf",t.value),P(),ie("ngIf",t.key&&!t.value&&!t.label)}}function oQ(e,n){if(1&e&&(Bs(0),rt(1,rQ,4,3,"li",38),js()),2&e){const t=Ue(3).$implicit,i=Ue();P(),ie("ngForOf",t.engines[i.titleEnginePicked[t.titleId]].notices)}}function sQ(e,n){if(1&e&&(Bs(0),A(1,"div",12)(2,"ul"),rt(3,oQ,2,1,"ng-container",6),N()(),js()),2&e){const t=Ue(2).$implicit,i=Ue();P(3),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].notices)}}function aQ(e,n){if(1&e&&(Bs(0),A(1,"div",12)(2,"div",9)(3,"div",13)(4,"mat-icon",14),se(5," install_desktop "),N(),A(6,"mat-icon",14),se(7," desktop_windows "),N(),A(8,"mat-icon",14),se(9," construction "),N(),rt(10,$K,2,2,"mat-icon",15)(11,GK,2,2,"mat-icon",16)(12,qK,2,2,"mat-icon",17)(13,WK,2,2,"mat-icon",18)(14,ZK,2,2,"mat-icon",19)(15,YK,2,2,"mat-icon",20)(16,KK,2,2,"mat-icon",21)(17,QK,2,3,"mat-icon",22)(18,XK,2,2,"mat-icon",23)(19,JK,2,2,"mat-icon",24),N()(),A(20,"div",9)(21,"div",25),se(22,"Engine"),N(),A(23,"div",26)(24,"a",27),se(25),N()()(),A(26,"div",9)(27,"div",25),se(28,"License"),N(),A(29,"div",26)(30,"a",27),se(31),N()()(),rt(32,eQ,5,1,"div",28),A(33,"div",9)(34,"div",25),se(35,"Contributor"),N(),A(36,"div",26)(37,"a",27),se(38),N()()()(),rt(39,sQ,4,1,"ng-container",6),js()),2&e){const t=Ue().$implicit,i=Ue();P(4),zt("color",t.engines[i.titleEnginePicked[t.titleId]].manualSteps?"yellow":"green"),ie("matTooltip",t.engines[i.titleEnginePicked[t.titleId]].manualSteps?"Manual Steps Required":"Automatic Installation"),P(2),zt("color",t.engines[i.titleEnginePicked[t.titleId]].steamOverlayDisabled?"red":"green"),ie("matTooltip",t.engines[i.titleEnginePicked[t.titleId]].steamOverlayDisabled?"Steam Overlay Disabled":"Steam Overlay Enabled"),P(2),zt("color",t.engines[i.titleEnginePicked[t.titleId]].inProgress?"yellow":"green"),ie("matTooltip",t.engines[i.titleEnginePicked[t.titleId]].inProgress?"Engine May Have Missing Features":"Engine Considered Feature Complete"),P(2),ie("ngIf",!(t.engines[i.titleEnginePicked[t.titleId]].controllerNotSupported||t.engines[i.titleEnginePicked[t.titleId]].controllerSupported||t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedSteamChanges||t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGame||t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGameAndSteam)),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerNotSupported),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupported&&t.controllerSteamDefault),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGame&&t.controllerSteamDefault),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupported&&!t.controllerSteamDefault),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGame&&!t.controllerSteamDefault),P(),ie("ngIf",t.cloudNotAvailable),P(),ie("ngIf",t.cloudAvailable&&t.cloudIssue),P(),ie("ngIf",t.cloudAvailable&&!t.cloudSupported&&!t.cloudIssue),P(),ie("ngIf",t.cloudAvailable&&t.cloudSupported),P(5),ie("href",t.engines[i.titleEnginePicked[t.titleId]].engine_link,_s),P(),so(i.titleEnginePicked[t.titleId]),P(5),ie("href",t.engines[i.titleEnginePicked[t.titleId]].license_link,_s),P(),Tn(" ",t.engines[i.titleEnginePicked[t.titleId]].license," "),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].version),P(5),ie("href",t.engines[i.titleEnginePicked[t.titleId]].author_link,_s),P(),Tn(" ",t.engines[i.titleEnginePicked[t.titleId]].author," "),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].notices||t.notices)}}function lQ(e,n){if(1&e&&(A(0,"div",2)(1,"div",3)(2,"div",4),rt(3,HK,2,2,"a",5)(4,UK,2,1,"div",6),N(),A(5,"div",7)(6,"mat-chip-listbox"),rt(7,zK,2,3,"mat-chip-option",8),Gu(8,"keyvalue"),N()()(),A(9,"div",9),rt(10,aQ,40,27,"ng-container",6),N()()),2&e){const t=n.$implicit,i=Ue();P(3),ie("ngIf",!t.isDefault),P(),ie("ngIf",t.isDefault),P(3),ie("ngForOf",qu(8,4,t.engines)),P(3),ie("ngIf",i.titleEnginePicked[t.titleId])}}let cQ=(()=>{class e{constructor(){this.titles=[],this.titleEnginePicked={},this.NOTICE_MAP={},this.runControllerCheck=!0}ngOnInit(){var t=this;return ii(function*(){const i=yield fetch("/packagessniper_v2.json");t.titles=yield i.json(),t.enginesToMap(),t.noticeTranslationToMap(),t.sortTitles()})()}noticeTranslationToMap(){for(let t of this.titles.notice_translation)this.NOTICE_MAP[t.key]=t.value}enginesToMap(){const t={};for(let i of this.titles.engines)t[i.engine_name]=i;this.titles.engines=t}translate_key(t){return this.NOTICE_MAP[t]}processTitle(t){const i=t.app_id;if(t.engines={},t.cloudAvailable&&!t.cloudSupported&&!t.cloudIssue&&console.error(`title of ${t.game_name} has unknown cloud save feature state`),t.engine_name){const o=t.engine_name;this.titles.engines[o]?t.engines[o]=this.titles.engines[o]:console.error(`engineName of ${o} not found from title of ${i}`)}else if(t.engine_names)for(let o of t.engine_names)this.titles.engines[o]?t.engines[o]=this.titles.engines[o]:console.error(`engineName of ${o} not found from title of ${i}`);else if(t.choices)for(let o of t.choices){const s=o.name;this.titles.engines[s]?t.engines[s]=this.titles.engines[s]:o.engine_name&&this.titles.engines[o.engine_name]?t.engines[o.engine_name]=this.titles.engines[o.engine_name]:console.error(`engineName of ${s} not found from title of ${i}`)}else console.error(`missing information for ${i}`);const r=Object.keys(t.engines);r.sort(),this.titleEnginePicked[i]=r[0];for(let o in t.engines){const s=JSON.parse(JSON.stringify(t.engines[o]));if(t.notices){s.notices||(s.notices=[]);for(let a of t.notices)s.notices.push(a)}if(t.removeNotices){const a=[];for(let l of s.notices){let c=!0;for(let d of t.removeNotices)if(l.key===d){c=!1;break}c&&a.push(l)}s.notices=a}if(s.notices)for(let a of s.notices)"manual_steps"===a.key&&(s.manualSteps=!0),"steam_overlay_disabled"===a.key&&(s.steamOverlayDisabled=!0),"in_progress"===a.key&&(s.inProgress=!0);t.engines[o]=s}return t}sortTitles(){const t=[];let i=this.titles.default_engine;if(this.runControllerCheck)for(const r in this.titles.engines){const o=this.titles.engines[r];let s=!1;for(let a of Object.keys(o))if(-1!==a.indexOf("controller")){s=!0;break}s||console.error(`missing controller data for ${o.engine_name}`)}for(let r of this.titles.games)r.titleId=r.app_id,r=this.processTitle(r),t.push(r);t.sort(function(r,o){return r.game_nameo.game_name?1:0}),i&&(i.isDefault=!0,i.titleId="default",i.app_id="default",i=this.processTitle(i),t.unshift(i)),this.titles=t}onEngineClicked(t,i,r){this.titleEnginePicked[i.titleId]=r}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=it({type:e,selectors:[["app-packages"]],standalone:!1,decls:2,vars:1,consts:[[1,"container-fluid","page-wrapper"],["class","row game-row",4,"ngFor","ngForOf"],[1,"row","game-row"],[1,"row","header-wrapper"],[1,"col-sm-6","game-title"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],[1,"col-sm-6","game-choices"],[3,"selected","value","click",4,"ngFor","ngForOf"],[1,"row"],["target","_blank",3,"click","href"],[3,"click","selected","value"],[1,"col-12","col-md-6"],[1,"col-12","status-icons"],[3,"matTooltip"],["matTooltip","Unknown Controller Support",3,"color",4,"ngIf"],["matTooltip","Engine Does Not Have Native Controller Support",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support And Works Out of the Box",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game Settings",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual Steam Settings",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game and Steam Settings",3,"color",4,"ngIf"],["matTooltip","Game Does Not Have Cloud Saves",3,"color",4,"ngIf"],[3,"matTooltip","color",4,"ngIf"],["matTooltip","Game Has Cloud Saves But Unknown Status",3,"color",4,"ngIf"],["matTooltip","Cloud Saves Supported",3,"color",4,"ngIf"],[1,"col-5","col-md-4","col-lg-3"],[1,"col-7","col-md-8"],["target","_blank",3,"href"],["class","row",4,"ngIf"],["matTooltip","Unknown Controller Support"],["matTooltip","Engine Does Not Have Native Controller Support"],["matTooltip","Engine Has Native Controller Support And Works Out of the Box"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game Settings"],["matTooltip","Engine Has Native Controller Support But Needs Manual Steam Settings"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game and Steam Settings"],["matTooltip","Game Does Not Have Cloud Saves"],["matTooltip","Game Has Cloud Saves But Unknown Status"],["matTooltip","Cloud Saves Supported"],[4,"ngFor","ngForOf"]],template:function(i,r){1&i&&(A(0,"div",0),rt(1,lQ,11,6,"div",1),N()),2&i&&(P(),ie("ngForOf",r.titles))},dependencies:[FM,PM,oZ,ib,tb,VK,jM],styles:[".packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}.packages-wrapper[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%] + .mat-form-field[_ngcontent-%COMP%]{margin-left:8px}.mat-chip[_ngcontent-%COMP%]{cursor:pointer!important}.page-wrapper[_ngcontent-%COMP%]{padding-top:1rem;color:#fff;max-width:1200px}.header-wrapper[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6;padding-bottom:.5rem;margin-bottom:.5rem;padding-top:.5rem}.game-row[_ngcontent-%COMP%]{background:#424242;padding:0 0 0 24px;margin-bottom:1rem;margin-left:15px;margin-right:15px;padding-bottom:.5rem}.game-title[_ngcontent-%COMP%], .engine-choices[_ngcontent-%COMP%]{align-self:center;margin-bottom:.5rem}div[_ngcontent-%COMP%]{word-break:break-word}.status-icons[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:.625rem}"]})}}return e})();class dQ extends Q{constructor(n=1/0,t=1/0,i=cy){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;t||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;snull};function Se(e,n=""){let t="string"==typeof e?e:e.source;const i={replace:(r,o)=>{let s="string"==typeof o?o:o.source;return s=s.replace(Kt.caret,"$1"),t=t.replace(r,s),i},getRegex:()=>new RegExp(t,n)};return i}const Kt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Vc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,jN=/(?:[*+-]|\d{1,9}[.)])/,HN=Se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,jN).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),cb=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,db=/(?!\s*\])(?:\\.|[^\[\]\\])+/,_Q=Se(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",db).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),vQ=Se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jN).getRegex(),Af="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ub=/|$))/,yQ=Se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",ub).replace("tag",Af).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),UN=Se(cb).replace("hr",Vc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Af).getRegex(),hb={blockquote:Se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",UN).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:_Q,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Vc,html:yQ,lheading:HN,list:vQ,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:UN,table:Lc,text:/^[^\n]+/},zN=Se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Vc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Af).getRegex(),bQ={...hb,table:zN,paragraph:Se(cb).replace("hr",Vc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",zN).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Af).getRegex()},wQ={...hb,html:Se("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ub).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Lc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Se(cb).replace("hr",Vc).replace("heading"," *#{1,6} *[^\n]").replace("lheading",HN).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},$N=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,GN=/^( {2,}|\\)\n(?!\s*$)/,Bc=new RegExp("\\p{P}\\p{S}","u"),DQ=Se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Bc).getRegex(),SQ=Se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Bc).getRegex(),IQ=Se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Bc).getRegex(),MQ=Se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Bc).getRegex(),TQ=Se(/\\([punct])/,"gu").replace(/punct/g,Bc).getRegex(),AQ=Se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),kQ=Se(ub).replace("(?:--\x3e|$)","--\x3e").getRegex(),RQ=Se("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",kQ).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),kf=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,NQ=Se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",kf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qN=Se(/^!?\[(label)\]\[(ref)\]/).replace("label",kf).replace("ref",db).getRegex(),WN=Se(/^!?\[(ref)\](?:\[\])?/).replace("ref",db).getRegex(),fb={_backpedal:Lc,anyPunctuation:TQ,autolink:AQ,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:GN,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Lc,emStrongLDelim:SQ,emStrongRDelimAst:IQ,emStrongRDelimUnd:MQ,escape:$N,link:NQ,nolink:WN,punctuation:DQ,reflink:qN,reflinkSearch:Se("reflink|nolink(?!\\()","g").replace("reflink",qN).replace("nolink",WN).getRegex(),tag:RQ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},ZN=e=>LQ[e];function Di(e,n){if(n){if(Kt.escapeTest.test(e))return e.replace(Kt.escapeReplace,ZN)}else if(Kt.escapeTestNoEncode.test(e))return e.replace(Kt.escapeReplaceNoEncode,ZN);return e}function YN(e){try{e=encodeURI(e).replace(Kt.percentDecode,"%")}catch{return null}return e}function KN(e,n){const i=e.replace(Kt.findPipe,(o,s,a)=>{let l=!1,c=s;for(;--c>=0&&"\\"===a[c];)l=!l;return l?"|":" |"}).split(Kt.splitPipe);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),n)if(i.length>n)i.splice(n);else for(;i.length0)return{type:"space",raw:t[0]}}code(n){const t=this.rules.block.code.exec(n);if(t){const i=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Hc(i,"\n")}}}fences(n){const t=this.rules.block.fences.exec(n);if(t){const i=t[0],r=function BQ(e,n,t){const i=e.match(t.other.indentCodeCompensation);if(null===i)return n;const r=i[1];return n.split("\n").map(o=>{const s=o.match(t.other.beginningSpace);if(null===s)return o;const[a]=s;return a.length>=r.length?o.slice(r.length):o}).join("\n")}(i,t[3]||"",this.rules);return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(n){const t=this.rules.block.heading.exec(n);if(t){let i=t[2].trim();if(this.rules.other.endingHash.test(i)){const r=Hc(i,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(i=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(n){const t=this.rules.block.hr.exec(n);if(t)return{type:"hr",raw:Hc(t[0],"\n")}}blockquote(n){const t=this.rules.block.blockquote.exec(n);if(t){let i=Hc(t[0],"\n").split("\n"),r="",o="";const s=[];for(;i.length>0;){let a=!1;const l=[];let c;for(c=0;c1,o={type:"list",raw:"",ordered:r,start:r?+i.slice(0,-1):"",loose:!1,items:[]};i=r?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=r?i:"[*+-]");const s=this.rules.other.listItemRegex(i);let a=!1;for(;n;){let c=!1,d="",u="";if(!(t=s.exec(n))||this.rules.block.hr.test(n))break;d=t[0],n=n.substring(d.length);let f=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,v=>" ".repeat(3*v.length)),h=n.split("\n",1)[0],p=!f.trim(),m=0;if(this.options.pedantic?(m=2,u=f.trimStart()):p?m=t[1].length+1:(m=t[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=f.slice(m),m+=t[1].length),p&&this.rules.other.blankLine.test(h)&&(d+=h+"\n",n=n.substring(h.length+1),c=!0),!c){const v=this.rules.other.nextBulletRegex(m),E=this.rules.other.hrRegex(m),I=this.rules.other.fencesBeginRegex(m),B=this.rules.other.headingBeginRegex(m),W=this.rules.other.htmlBeginRegex(m);for(;n;){const J=n.split("\n",1)[0];let be;if(h=J,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),be=h):be=h.replace(this.rules.other.tabCharGlobal," "),I.test(h)||B.test(h)||W.test(h)||v.test(h)||E.test(h))break;if(be.search(this.rules.other.nonSpaceChar)>=m||!h.trim())u+="\n"+be.slice(m);else{if(p||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||I.test(f)||B.test(f)||E.test(f))break;u+="\n"+h}!p&&!h.trim()&&(p=!0),d+=J+"\n",n=n.substring(J.length+1),f=be.slice(m)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(a=!0));let y,_=null;this.options.gfm&&(_=this.rules.other.listIsTask.exec(u),_&&(y="[ ] "!==_[0],u=u.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:d,task:!!_,checked:y,loose:!1,text:u,tokens:[]}),o.raw+=d}const l=o.items.at(-1);l&&(l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd()),o.raw=o.raw.trimEnd();for(let c=0;c"space"===f.type),u=d.length>0&&d.some(f=>this.rules.other.anyLine.test(f.raw));o.loose=u}if(o.loose)for(let c=0;c({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[c]})));return s}}lheading(n){const t=this.rules.block.lheading.exec(n);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(n){const t=this.rules.block.paragraph.exec(n);if(t){const i="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(n){const t=this.rules.block.text.exec(n);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(n){const t=this.rules.inline.escape.exec(n);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(n){const t=this.rules.inline.tag.exec(n);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(n){const t=this.rules.inline.link.exec(n);if(t){const i=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;const s=Hc(i.slice(0,-1),"\\");if((i.length-s.length)%2==0)return}else{const s=function VQ(e,n){if(-1===e.indexOf(n[1]))return-1;let t=0;for(let i=0;i-1){const l=(0===t[0].indexOf("!")?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){const s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],o=s[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?r.slice(1):r.slice(1,-1)),QN(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(n,t){let i;if((i=this.rules.inline.reflink.exec(n))||(i=this.rules.inline.nolink.exec(n))){const o=t[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!o){const s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return QN(i,o,i[0],this.lexer,this.rules)}}emStrong(n,t,i=""){let r=this.rules.inline.emStrongLDelim.exec(n);if(!(!r||r[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!i||this.rules.inline.punctuation.exec(i))){const s=[...r[0]].length-1;let a,l,c=s,d=0;const u="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*n.length+s);null!=(r=u.exec(t));){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=[...a].length,r[3]||r[4]){c+=l;continue}if((r[5]||r[6])&&s%3&&!((s+l)%3)){d+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+d);const f=[...r[0]][0].length,h=n.slice(0,s+r.index+f+l);if(Math.min(s,l)%2){const m=h.slice(1,-1);return{type:"em",raw:h,text:m,tokens:this.lexer.inlineTokens(m)}}const p=h.slice(2,-2);return{type:"strong",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(n){const t=this.rules.inline.code.exec(n);if(t){let i=t[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return r&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:t[0],text:i}}}br(n){const t=this.rules.inline.br.exec(n);if(t)return{type:"br",raw:t[0]}}del(n){const t=this.rules.inline.del.exec(n);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(n){const t=this.rules.inline.autolink.exec(n);if(t){let i,r;return"@"===t[2]?(i=t[1],r="mailto:"+i):(i=t[1],r=i),{type:"link",raw:t[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}url(n){let t;if(t=this.rules.inline.url.exec(n)){let i,r;if("@"===t[2])i=t[0],r="mailto:"+i;else{let o;do{o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(o!==t[0]);i=t[0],r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(n){const t=this.rules.inline.text.exec(n);if(t)return{type:"text",raw:t[0],text:t[0],escaped:this.lexer.state.inRawBlock}}}class On{tokens;options;state;tokenizer;inlineQueue;constructor(n){this.tokens=[],this.tokens.links=Object.create(null),this.options=n||Mo,this.options.tokenizer=this.options.tokenizer||new Nf,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:Kt,block:Rf.normal,inline:jc.normal};this.options.pedantic?(t.block=Rf.pedantic,t.inline=jc.pedantic):this.options.gfm&&(t.block=Rf.gfm,t.inline=this.options.breaks?jc.breaks:jc.gfm),this.tokenizer.rules=t}static get rules(){return{block:Rf,inline:jc}}static lex(n,t){return new On(t).lex(n)}static lexInline(n,t){return new On(t).inlineTokens(n)}lex(n){n=n.replace(Kt.carriageReturn,"\n"),this.blockTokens(n,this.tokens);for(let t=0;t!!(r=s.call({lexer:this},n,t))&&(n=n.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(n)){n=n.substring(r.raw.length);const s=t.at(-1);1===r.raw.length&&void 0!==s?s.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(n)){n=n.substring(r.raw.length);const s=t.at(-1);"paragraph"===s?.type||"text"===s?.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.text,this.inlineQueue.at(-1).src=s.text):t.push(r);continue}if(r=this.tokenizer.fences(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(n)){n=n.substring(r.raw.length);const s=t.at(-1);"paragraph"===s?.type||"text"===s?.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(n)){n=n.substring(r.raw.length),t.push(r);continue}let o=n;if(this.options.extensions?.startBlock){let s=1/0;const a=n.slice(1);let l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},a),"number"==typeof l&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(o=n.substring(0,s+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){const s=t.at(-1);i&&"paragraph"===s?.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r),i=o.length!==n.length,n=n.substring(r.raw.length)}else if(r=this.tokenizer.text(n)){n=n.substring(r.raw.length);const s=t.at(-1);"text"===s?.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r)}else if(n){const s="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}}return this.state.top=!0,t}inline(n,t=[]){return this.inlineQueue.push({src:n,tokens:t}),t}inlineTokens(n,t=[]){let i=n,r=null;if(this.tokens.links){const a=Object.keys(this.tokens.links);if(a.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(i));)a.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(i));)i=i.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(i));)i=i.slice(0,r.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o=!1,s="";for(;n;){let a;if(o||(s=""),o=!1,this.options.extensions?.inline?.some(c=>!!(a=c.call({lexer:this},n,t))&&(n=n.substring(a.raw.length),t.push(a),!0)))continue;if(a=this.tokenizer.escape(n)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.tag(n)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.link(n)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(a.raw.length);const c=t.at(-1);"text"===a.type&&"text"===c?.type?(c.raw+=a.raw,c.text+=a.text):t.push(a);continue}if(a=this.tokenizer.emStrong(n,i,s)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.codespan(n)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.br(n)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.del(n)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.autolink(n)){n=n.substring(a.raw.length),t.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(n))){n=n.substring(a.raw.length),t.push(a);continue}let l=n;if(this.options.extensions?.startInline){let c=1/0;const d=n.slice(1);let u;this.options.extensions.startInline.forEach(f=>{u=f.call({lexer:this},d),"number"==typeof u&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(l=n.substring(0,c+1))}if(a=this.tokenizer.inlineText(l)){n=n.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(s=a.raw.slice(-1)),o=!0;const c=t.at(-1);"text"===c?.type?(c.raw+=a.raw,c.text+=a.text):t.push(a)}else if(n){const c="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}return t}}class To{options;parser;constructor(n){this.options=n||Mo}space(n){return""}code({text:n,lang:t,escaped:i}){const r=(t||"").match(Kt.notSpaceStart)?.[0],o=n.replace(Kt.endingNewline,"")+"\n";return r?'
'+(i?o:Di(o,!0))+"
\n":"
"+(i?o:Di(o,!0))+"
\n"}blockquote({tokens:n}){return`
\n${this.parser.parse(n)}
\n`}html({text:n}){return n}heading({tokens:n,depth:t}){return`${this.parser.parseInline(n)}\n`}hr(n){return"
\n"}list(n){const t=n.ordered,i=n.start;let r="";for(let a=0;a\n"+r+"\n"}listitem(n){let t="";if(n.task){const i=this.checkbox({checked:!!n.checked});n.loose?"paragraph"===n.tokens[0]?.type?(n.tokens[0].text=i+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&"text"===n.tokens[0].tokens[0].type&&(n.tokens[0].tokens[0].text=i+" "+Di(n.tokens[0].tokens[0].text),n.tokens[0].tokens[0].escaped=!0)):n.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):t+=i+" "}return t+=this.parser.parse(n.tokens,!!n.loose),`
  • ${t}
  • \n`}checkbox({checked:n}){return"'}paragraph({tokens:n}){return`

    ${this.parser.parseInline(n)}

    \n`}table(n){let t="",i="";for(let o=0;o${r}`),"\n\n"+t+"\n"+r+"
    \n"}tablerow({text:n}){return`\n${n}\n`}tablecell(n){const t=this.parser.parseInline(n.tokens),i=n.header?"th":"td";return(n.align?`<${i} align="${n.align}">`:`<${i}>`)+t+`\n`}strong({tokens:n}){return`${this.parser.parseInline(n)}`}em({tokens:n}){return`${this.parser.parseInline(n)}`}codespan({text:n}){return`${Di(n,!0)}`}br(n){return"
    "}del({tokens:n}){return`${this.parser.parseInline(n)}`}link({href:n,title:t,tokens:i}){const r=this.parser.parseInline(i),o=YN(n);if(null===o)return r;let s='",s}image({href:n,title:t,text:i}){const r=YN(n);if(null===r)return Di(i);let o=`${i}{const a=o[s].flat(1/0);i=i.concat(this.walkTokens(a,t))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,t)))}}return i}use(...n){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(i=>{const r={...i};if(r.async=this.defaults.async||r.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const s=t.renderers[o.name];t.renderers[o.name]=s?function(...a){let l=o.renderer.apply(this,a);return!1===l&&(l=s.apply(this,a)),l}:o.renderer}if("tokenizer"in o){if(!o.level||"block"!==o.level&&"inline"!==o.level)throw new Error("extension level must be 'block' or 'inline'");const s=t[o.level];s?s.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&("block"===o.level?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:"inline"===o.level&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),i.renderer){const o=this.defaults.renderer||new To(this.defaults);for(const s in i.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const l=i.renderer[s],c=o[s];o[s]=(...d)=>{let u=l.apply(o,d);return!1===u&&(u=c.apply(o,d)),u||""}}r.renderer=o}if(i.tokenizer){const o=this.defaults.tokenizer||new Nf(this.defaults);for(const s in i.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=i.tokenizer[s],c=o[s];o[s]=(...d)=>{let u=l.apply(o,d);return!1===u&&(u=c.apply(o,d)),u}}r.tokenizer=o}if(i.hooks){const o=this.defaults.hooks||new Ff;for(const s in i.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const l=i.hooks[s],c=o[s];o[s]=Ff.passThroughHooks.has(s)?d=>{if(this.defaults.async)return Promise.resolve(l.call(o,d)).then(f=>c.call(o,f));const u=l.call(o,d);return c.call(o,u)}:(...d)=>{let u=l.apply(o,d);return!1===u&&(u=c.apply(o,d)),u}}r.hooks=o}if(i.walkTokens){const o=this.defaults.walkTokens,s=i.walkTokens;r.walkTokens=function(a){let l=[];return l.push(s.call(this,a)),o&&(l=l.concat(o.call(this,a))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,t){return On.lex(n,t??this.defaults)}parser(n,t){return Pn.parse(n,t??this.defaults)}parseMarkdown(n){return(i,r)=>{const o={...r},s={...this.defaults,...o},a=this.onError(!!s.silent,!!s.async);if(!0===this.defaults.async&&!1===o.async)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||null===i)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=n);const l=s.hooks?s.hooks.provideLexer():n?On.lex:On.lexInline,c=s.hooks?s.hooks.provideParser():n?Pn.parse:Pn.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(i):i).then(d=>l(d,s)).then(d=>s.hooks?s.hooks.processAllTokens(d):d).then(d=>s.walkTokens?Promise.all(this.walkTokens(d,s.walkTokens)).then(()=>d):d).then(d=>c(d,s)).then(d=>s.hooks?s.hooks.postprocess(d):d).catch(a);try{s.hooks&&(i=s.hooks.preprocess(i));let d=l(i,s);s.hooks&&(d=s.hooks.processAllTokens(d)),s.walkTokens&&this.walkTokens(d,s.walkTokens);let u=c(d,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(d){return a(d)}}}onError(n,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",n){const r="

    An error occurred:

    "+Di(i.message+"",!0)+"
    ";return t?Promise.resolve(r):r}if(t)return Promise.reject(i);throw i}}};function me(e,n){return Ao.parse(e,n)}me.options=me.setOptions=function(e){return Ao.setOptions(e),BN(me.defaults=Ao.defaults),me},me.getDefaults=function lb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},me.defaults=Mo,me.use=function(...e){return Ao.use(...e),BN(me.defaults=Ao.defaults),me},me.walkTokens=function(e,n){return Ao.walkTokens(e,n)},me.parseInline=Ao.parseInline,me.Parser=Pn,me.parser=Pn.parse,me.Renderer=To,me.TextRenderer=mb,me.Lexer=On,me.lexer=On.lex,me.Tokenizer=Nf,me.Hooks=Ff,me.parse=me;const HQ=["*"];let XN=(()=>{class e{constructor(){this._buttonClick$=new Q,this.copied$=this._buttonClick$.pipe(vn(()=>Ic(F(!0),_N(3e3).pipe(zT(!1)))),ek(),function uQ(e,n,t){let i,r=!1;return e&&"object"==typeof e?({bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:t}=e):i=e??1/0,kk({connector:()=>new dQ(i,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}(1)),this.copiedText$=this.copied$.pipe(uo(!1),K(t=>t?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=it({type:e,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(i,r){1&i&&(A(0,"button",0),Gu(1,"async"),He("click",function(){return r.onCopyToClipboardClick()}),se(2),Gu(3,"async"),N()),2&i&&(It("copied",qu(1,3,r.copied$)),P(2),so(qu(3,5,r.copiedText$)))},dependencies:[BM],encapsulation:2,changeDetection:0})}}return e})();const $Q=new C("CLIPBOARD_OPTIONS");var gb=function(e){return e.CommandLine="command-line",e.LineHighlight="line-highlight",e.LineNumbers="line-numbers",e}(gb||{});const JN=new C("MARKED_EXTENSIONS"),qQ=new C("MARKED_OPTIONS"),WQ=new C("MERMAID_OPTIONS"),eF=new C("SECURITY_CONTEXT");let _b=(()=>{class e{get options(){return this._options}set options(t){this._options={...this.DEFAULT_MARKED_OPTIONS,...t}}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}constructor(t,i,r,o,s,a,l,c){this.clipboardOptions=t,this.extensions=i,this.mermaidOptions=o,this.platform=s,this.securityContext=a,this.http=l,this.sanitizer=c,this.DEFAULT_MARKED_OPTIONS={renderer:new To},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new Q,this.reload$=this._reload$.asObservable(),this.options=r}parse(t,i=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:r,inline:o,emoji:s,mermaid:a,disableSanitizer:l}=i,c={...this.options,...i.markedOptions},d=c.renderer||this.renderer||new To;this.extensions&&(this.renderer=this.extendsRendererForExtensions(d)),a&&(this.renderer=this.extendsRendererForMermaid(d));const u=this.trimIndentation(t),f=r?this.decodeHtml(u):u,h=s?this.parseEmoji(f):f,p=this.parseMarked(h,c,o);return(l?p:this.sanitizer.sanitize(this.securityContext,p))||""}render(t,i=this.DEFAULT_RENDER_OPTIONS,r){const{clipboard:o,clipboardOptions:s,katex:a,katexOptions:l,mermaid:c,mermaidOptions:d}=i;a&&this.renderKatex(t,{...this.DEFAULT_KATEX_OPTIONS,...l}),c&&this.renderMermaid(t,{...this.DEFAULT_MERMAID_OPTIONS,...this.mermaidOptions,...d}),o&&this.renderClipboard(t,r,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...s}),this.highlight(t)}reload(){this._reload$.next()}getSource(t){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(t,{responseType:"text"}).pipe(K(i=>this.handleExtension(t,i)))}highlight(t){if(!yr(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;t||(t=document);const i=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,r=>r.classList.add("language-none")),Prism.highlightAllUnder(t)}decodeHtml(t){if(!yr(this.platform))return t;const i=document.createElement("textarea");return i.innerHTML=t,i.value}extendsRendererForExtensions(t){const i=t;return!0===i.\u0275NgxMarkdownRendererExtendedForExtensions||(this.extensions?.length>0&&me.use(...this.extensions),i.\u0275NgxMarkdownRendererExtendedForExtensions=!0),t}extendsRendererForMermaid(t){const i=t;if(!0===i.\u0275NgxMarkdownRendererExtendedForMermaid)return t;const r=t.code;return t.code=o=>"mermaid"===o.lang?`
    ${o.text}
    `:r(o),i.\u0275NgxMarkdownRendererExtendedForMermaid=!0,t}handleExtension(t,i){const r=t.lastIndexOf("://"),o=r>-1?t.substring(r+4):t,s=o.lastIndexOf("/"),a=s>-1?o.substring(s+1).split("?")[0]:"",l=a.lastIndexOf("."),c=l>-1?a.substring(l+1):"";return c&&"md"!==c?"```"+c+"\n"+i+"\n```":i}parseMarked(t,i,r=!1){if(i.renderer){const o={...i.renderer};delete o.\u0275NgxMarkdownRendererExtendedForExtensions,delete o.\u0275NgxMarkdownRendererExtendedForMermaid,delete i.renderer,me.use({renderer:o})}return r?me.parseInline(t,i):me.parse(t,i)}parseEmoji(t){if(!yr(this.platform))return t;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(t)}renderKatex(t,i){if(yr(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(t,i)}}renderClipboard(t,i,r){if(!yr(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!i)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:o,buttonTemplate:s}=r,a=t.querySelectorAll("pre");for(let l=0;lu.classList.add("hover"),d.onmouseleave=()=>u.classList.remove("hover"),o){const p=i.createComponent(o);f=p.hostView,p.changeDetectorRef.markForCheck()}else if(s)f=i.createEmbeddedView(s);else{const p=i.createComponent(XN);f=p.hostView,p.changeDetectorRef.markForCheck()}f.rootNodes.forEach(p=>{u.appendChild(p),h=new ClipboardJS(p,{text:()=>c.innerText})}),f.onDestroy(()=>h.destroy())}}renderMermaid(t,i=this.DEFAULT_MERMAID_OPTIONS){if(!yr(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const r=t.querySelectorAll(".mermaid");0!==r.length&&(mermaid.initialize(i),mermaid.run({nodes:r}))}trimIndentation(t){if(!t)return"";let i;return t.split("\n").map(r=>{let o=i;return r.length>0&&(o=isNaN(o)?r.search(/\S|$/):Math.min(r.search(/\S|$/),o)),isNaN(i)&&(i=o),o?r.substring(o):r}).join("\n")}static{this.\u0275fac=function(i){return new(i||e)(M($Q,8),M(JN,8),M(qQ,8),M(WQ,8),M(ui),M(eF),M(Dc,8),M(Jl))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),tF=(()=>{class e{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(t){this._disableSanitizer=this.coerceBooleanProperty(t)}get inline(){return this._inline}set inline(t){this._inline=this.coerceBooleanProperty(t)}get clipboard(){return this._clipboard}set clipboard(t){this._clipboard=this.coerceBooleanProperty(t)}get emoji(){return this._emoji}set emoji(t){this._emoji=this.coerceBooleanProperty(t)}get katex(){return this._katex}set katex(t){this._katex=this.coerceBooleanProperty(t)}get mermaid(){return this._mermaid}set mermaid(t){this._mermaid=this.coerceBooleanProperty(t)}get lineHighlight(){return this._lineHighlight}set lineHighlight(t){this._lineHighlight=this.coerceBooleanProperty(t)}get lineNumbers(){return this._lineNumbers}set lineNumbers(t){this._lineNumbers=this.coerceBooleanProperty(t)}get commandLine(){return this._commandLine}set commandLine(t){this._commandLine=this.coerceBooleanProperty(t)}constructor(t,i,r){this.element=t,this.markdownService=i,this.viewContainerRef=r,this.error=new fe,this.load=new fe,this.ready=new fe,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new Q}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(Je(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(t,i=!1){var r=this;return ii(function*(){const o={decodeHtml:i,inline:r.inline,emoji:r.emoji,mermaid:r.mermaid,disableSanitizer:r.disableSanitizer},s={clipboard:r.clipboard,clipboardOptions:r.getClipboardOptions(),katex:r.katex,katexOptions:r.katexOptions,mermaid:r.mermaid,mermaidOptions:r.mermaidOptions},a=yield r.markdownService.parse(t,o);r.element.nativeElement.innerHTML=a,r.handlePlugins(),r.markdownService.render(r.element.nativeElement,s,r.viewContainerRef),r.ready.emit()})()}coerceBooleanProperty(t){return null!=t&&"false"!=`${String(t)}`}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:t=>{this.render(t).then(()=>{this.load.emit(t)})},error:t=>this.error.emit(t)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,gb.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,gb.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(t,i){const r=t.querySelectorAll("pre");for(let o=0;o{const a=i[s];if(a){const l=this.toLispCase(s);r.item(o).setAttribute(l,a.toString())}})}toLispCase(t){const i=t.match(/([A-Z])/g);if(!i)return t;let r=t.toString();for(let o=0,s=i.length;o{class e{static forRoot(t){return{ngModule:e,providers:[t7(t)]}}static forChild(){return{ngModule:e}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Fe({type:e})}static{this.\u0275inj=Me({imports:[UM]})}}return e})();const i7=[{path:"packages",component:cQ},{path:"**",component:(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=it({type:e,selectors:[["app-home"]],standalone:!1,decls:3,vars:0,consts:[[1,"container-fluid","page-wrapper"],[1,"content"],["src","README.md"]],template:function(i,r){1&i&&(A(0,"div",0)(1,"div",1),Ft(2,"markdown",2),N()())},dependencies:[tF],styles:[".content[_ngcontent-%COMP%]{background:#424242;padding:0 0 0 16px;margin-top:1rem;margin-bottom:1rem;padding-bottom:.5rem;color:#fff}"]})}}return e})()}];let r7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Fe({type:e})}static{this.\u0275inj=Me({imports:[$A.forRoot(i7),$A]})}}return e})();const o7=["*",[["mat-toolbar-row"]]],s7=["*","mat-toolbar-row"];let a7=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275dir=O({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return e})(),l7=(()=>{class e{_elementRef=g(Ce);_platform=g(sn);_document=g(ae);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(1&i&&gn(o,a7,5),2&i){let s;Ot(s=Pt())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){2&i&&(Ol(r.color?"mat-"+r.color:""),It("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:s7,decls:2,vars:0,template:function(i,r){1&i&&(Yn(o7),ot(0),ot(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}"],encapsulation:2,changeDetection:0})}return e})(),c7=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[Zt,Zt]})}return e})();const d7=["mat-button",""],u7=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],h7=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],f7=new C("MAT_BUTTON_CONFIG"),p7=[{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"]}];let m7=(()=>{class e{_elementRef=g(Ce);_platform=g(sn);_ngZone=g(q);_animationMode=g(Gr,{optional:!0});_focusMonitor=g(py);_rippleLoader=g(Tk);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){g(Dr).load(yy);const t=g(f7,{optional:!0}),i=this._elementRef.nativeElement,r=i.classList;this.disabledInteractive=t?.disabledInteractive??!1,this.color=t?.color??null,this._rippleLoader?.configureRipple(i,{className:"mat-mdc-button-ripple"});for(const{attribute:o,mdcClasses:s}of p7)i.hasAttribute(o)&&r.add(...s)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",i){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(i){return new(i||e)};static \u0275dir=O({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ae],disabled:[2,"disabled","disabled",Ae],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ae],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ae]},features:[qn]})}return e})(),g7=(()=>{class e extends m7{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275cmp=it({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){2&i&&(qe("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Ol(r.color?"mat-"+r.color:""),It("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[oe],attrs:d7,ngContentSelectors:h7,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){1&i&&(Yn(u7),Ft(0,"span",0),ot(1),A(2,"span",1),ot(3,1),N(),ot(4,2),Ft(5,"span",2)(6,"span",3)),2&i&&It("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, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);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, -4px);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, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-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-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-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-sys-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-sys-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, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);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, -8px);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, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);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, -8px);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, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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-sys-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);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);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, -8px);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, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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, 1px);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-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-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-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return e})(),v7=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[Zt,xk,Zt]})}return e})(),y7=(()=>{class e{constructor(){this.title="webui"}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=it({type:e,selectors:[["app-root"]],standalone:!1,decls:9,vars:0,consts:[[1,"example-spacer"],["color","primary","routerLink","/","mat-raised-button","","aria-label","Client",1,"client-button"],["color","primary","routerLink","/packages","mat-raised-button","","aria-label","Packages"]],template:function(i,r){1&i&&(A(0,"mat-toolbar")(1,"span"),se(2,"Luxtorpeda"),N(),Ft(3,"span",0),A(4,"button",1),se(5," Client "),N(),A(6,"button",2),se(7," Packages "),N()(),Ft(8,"router-outlet"))},dependencies:[qv,$h,l7,g7],styles:[".example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{background:#303030!important;border-bottom:1px solid gray}.client-button[_ngcontent-%COMP%]{margin-right:.625rem}"]})}}return e})();function nF(e){return new b(3e3,!1)}function Ar(e){switch(e.length){case 0:return new Fc;case 1:return e[0];default:return new cN(e)}}function iF(e,n,t=new Map,i=new Map){const r=[],o=[];let s=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((f,h)=>{let p=h,m=f;if("offset"!==h)switch(p=e.normalizePropertyName(p,r),m){case"!":m=t.get(h);break;case Wi:m=i.get(h);break;default:m=e.normalizeStyleValue(h,p,m,r)}u.set(p,m)}),d||o.push(u),a=u,s=c}),r.length)throw function U7(){return new b(3502,!1)}();return o}function vb(e,n,t,i){switch(n){case"start":e.onStart(()=>i(t&&yb(t,"start",e)));break;case"done":e.onDone(()=>i(t&&yb(t,"done",e)));break;case"destroy":e.onDestroy(()=>i(t&&yb(t,"destroy",e)))}}function yb(e,n,t){const o=bb(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),s=e._data;return null!=s&&(o._data=s),o}function bb(e,n,t,i,r="",o=0,s){return{element:e,triggerName:n,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function wn(e,n,t){let i=e.get(n);return i||e.set(n,i=t),i}function rF(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const eX=typeof document>"u"?null:document.documentElement;function wb(e){const n=e.parentNode||e.host||null;return n===eX?null:n}let ko=null,oF=!1;function sF(e,n){for(;n;){if(n===e)return!0;n=wb(n)}return!1}function aF(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const i=e.querySelector(n);return i?[i]:[]}let Cb=(()=>{class e{validateStyleProperty(t){return function nX(e){ko||(ko=function iX(){return typeof document<"u"?document.body:null}()||{},oF=!!ko.style&&"WebkitAppearance"in ko.style);let n=!0;return ko.style&&!function tX(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in ko.style,!n&&oF&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in ko.style)),n}(t)}containsElement(t,i){return sF(t,i)}getParentElement(t){return wb(t)}query(t,i,r){return aF(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,o,s,a=[],l){return new Fc(r,o)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();class Eb{static NOOP=new Cb}class Db{}const xb="ng-enter",Of="ng-leave",Pf="ng-trigger",Lf=".ng-trigger",cF="ng-animating",Sb=".ng-animating";function Yi(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Ib(parseFloat(n[1]),n[2])}function Ib(e,n){return"s"===n?1e3*e:e}function Vf(e,n,t){return e.hasOwnProperty("duration")?e:function aX(e,n,t){let r,o=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(nF()),{duration:0,delay:0,easing:""};r=Ib(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Ib(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=e;if(!t){let a=!1,l=n.length;r<0&&(n.push(function b7(){return new b(3100,!1)}()),a=!0),o<0&&(n.push(function w7(){return new b(3101,!1)}()),a=!0),a&&n.splice(l,0,nF())}return{duration:r,delay:o,easing:s}}(e,n,t)}function xi(e,n,t){n.forEach((i,r)=>{const o=Tb(r);t&&!t.has(r)&&t.set(r,e.style[o]),e.style[o]=i})}function Ro(e,n){n.forEach((t,i)=>{const r=Tb(i);e.style[r]=""})}function Uc(e){return Array.isArray(e)?1==e.length?e[0]:function lY(e,n=null){return{type:G.Sequence,steps:e,options:n}}(e):e}const Mb=new RegExp("{{\\s*(.+?)\\s*}}","g");function uF(e){let n=[];if("string"==typeof e){let t;for(;t=Mb.exec(e);)n.push(t[1]);Mb.lastIndex=0}return n}function zc(e,n,t){const i=`${e}`,r=i.replace(Mb,(o,s)=>{let a=n[s];return null==a&&(t.push(function E7(){return new b(3003,!1)}()),a=""),a.toString()});return r==i?e:r}const dX=/-+([a-z0-9])/g;function Tb(e){return e.replace(dX,(...n)=>n[1].toUpperCase())}function Cn(e,n,t){switch(n.type){case G.Trigger:return e.visitTrigger(n,t);case G.State:return e.visitState(n,t);case G.Transition:return e.visitTransition(n,t);case G.Sequence:return e.visitSequence(n,t);case G.Group:return e.visitGroup(n,t);case G.Animate:return e.visitAnimate(n,t);case G.Keyframes:return e.visitKeyframes(n,t);case G.Style:return e.visitStyle(n,t);case G.Reference:return e.visitReference(n,t);case G.AnimateChild:return e.visitAnimateChild(n,t);case G.AnimateRef:return e.visitAnimateRef(n,t);case G.Query:return e.visitQuery(n,t);case G.Stagger:return e.visitStagger(n,t);default:throw function D7(){return new b(3004,!1)}()}}function Ab(e,n){return window.getComputedStyle(e)[n]}const fX=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"]);class hF extends Db{normalizePropertyName(n,t){return Tb(n)}normalizeStyleValue(n,t,i,r){let o="";const s=i.toString().trim();if(fX.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function x7(){return new b(3005,!1)}())}return s+o}}const jf=new Set(["true","1"]),Hf=new Set(["false","0"]);function fF(e,n){const t=jf.has(e)||Hf.has(e),i=jf.has(n)||Hf.has(n);return(r,o)=>{let s="*"==e||e==r,a="*"==n||n==o;return!s&&t&&"boolean"==typeof r&&(s=r?jf.has(e):Hf.has(e)),!a&&i&&"boolean"==typeof o&&(a=o?jf.has(n):Hf.has(n)),s&&a}}const _X=new RegExp("s*:selfs*,?","g");function kb(e,n,t,i){return new vX(e).build(n,t,i)}class vX{_driver;constructor(n){this._driver=n}build(n,t,i){const r=new wX(t);return this._resetContextStyleTimingState(r),Cn(this,Uc(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let i=t.queryCount=0,r=t.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function S7(){return new b(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==G.State){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,t))}),l.name=c}else if(a.type==G.Transition){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,s.push(l)}else t.errors.push(function I7(){return new b(3007,!1)}())}),{type:G.Trigger,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,t){const i=this.visitStyle(n.styles,t),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{uF(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&t.errors.push(function M7(){return new b(3008,!1)}(0,o.values()))}return{type:G.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const i=Cn(this,Uc(n.animation),t),r=function pX(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(i=>function mX(e,n,t){if(":"==e[0]){const l=function gX(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}(e,t);if("function"==typeof l)return void n.push(l);e=l}const i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function L7(){return new b(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(fF(r,s)),"<"==o[0]&&("*"!=r||"*"!=s)&&n.push(fF(s,r))}(i,t,n)):t.push(e),t}(n.expr,t.errors);return{type:G.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:No(n.options)}}visitSequence(n,t){return{type:G.Sequence,steps:n.steps.map(i=>Cn(this,i,t)),options:No(n.options)}}visitGroup(n,t){const i=t.currentTime;let r=0;const o=n.steps.map(s=>{t.currentTime=i;const a=Cn(this,s,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:G.Group,steps:o,options:No(n.options)}}visitAnimate(n,t){const i=function EX(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return Rb(Vf(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Rb(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=Vf(t,n);return Rb(r.duration,r.delay,r.easing)}(n.timings,t.errors);t.currentAnimateTimings=i;let r,o=n.styles?n.styles:Fn({});if(o.type==G.Keyframes)r=this.visitKeyframes(o,t);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Fn(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:G.Animate,timings:i,style:r,options:null}}visitStyle(n,t){const i=this._makeStyleAst(n,t);return this._validateStyleAst(i,t),i}_makeStyleAst(n,t){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Wi?i.push(a):t.errors.push(new b(3002,!1)):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 l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:G.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const i=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(t.errors.push(function A7(){return new b(3010,!1)}()),u=!1),o=d.startTime),u&&c.set(l,{startTime:o,endTime:r}),t.options&&function cX(e,n,t){const i=n.params||{},r=uF(e);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(function C7(){return new b(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const i={type:G.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function k7(){return new b(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const d=n.steps.map(y=>{const v=this._makeStyleAst(y,t);let E=null!=v.offset?v.offset:function CX(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(v.styles),I=0;return null!=E&&(o++,I=v.offset=E),l=l||I<0||I>1,a=a||I0&&o{const E=f>0?v==h?1:f*v:s[v],I=E*_;t.currentTime=p+m.delay+I,m.duration=I,this._validateStyleAst(y,t),y.offset=E,i.styles.push(y)}),i}visitReference(n,t){return{type:G.Reference,animation:Cn(this,Uc(n.animation),t),options:No(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:G.AnimateChild,options:No(n.options)}}visitAnimateRef(n,t){return{type:G.AnimateRef,animation:this.visitReference(n.animation,t),options:No(n.options)}}visitQuery(n,t){const i=t.currentQuerySelector,r=n.options||{};t.queryCount++,t.currentQuery=n;const[o,s]=function yX(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(_X,"")),e=e.replace(/@\*/g,Lf).replace(/@\w+/g,t=>Lf+"-"+t.slice(1)).replace(/:animating/g,Sb),[e,n]}(n.selector);t.currentQuerySelector=i.length?i+" "+o:o,wn(t.collectedStyles,t.currentQuerySelector,new Map);const a=Cn(this,Uc(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:G.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:No(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function O7(){return new b(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Vf(n.timings,t.errors,!0);return{type:G.Stagger,animation:Cn(this,Uc(n.animation),t),timings:i,options:null}}}class wX{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(n){this.errors=n}}function No(e){return e?(e={...e}).params&&(e.params=function bX(e){return e?{...e}:null}(e.params)):e={},e}function Rb(e,n,t){return{duration:e,delay:n,easing:t}}function Nb(e,n,t,i,r,o,s=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Uf{_map=new Map;get(n){return this._map.get(n)||[]}append(n,t){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const SX=new RegExp(":enter","g"),MX=new RegExp(":leave","g");function Fb(e,n,t,i,r,o=new Map,s=new Map,a,l,c=[]){return(new TX).buildKeyframes(e,n,t,i,r,o,s,a,l,c)}class TX{buildKeyframes(n,t,i,r,o,s,a,l,c,d=[]){c=c||new Uf;const u=new Ob(n,t,c,r,o,d,[]);u.options=l;const f=l.delay?Yi(l.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([s],null,u.errors,l),Cn(this,i,u);const h=u.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let m=h.length-1;m>=0;m--){const _=h[m];if(_.element===t){p=_;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[Nb(t,[],[],[],0,f,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(n.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){const i=t.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,i),this.visitReference(n.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Yi(zc(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,t,i){let o=t.currentTimeline.currentTime;const s=null!=i.duration?Yi(i.duration):null,a=null!=i.delay?Yi(i.delay):null;return 0!==s&&n.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),Cn(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const i=t.subContextCount;let r=t;const o=n.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){r.previousNode.type==G.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=zf);const s=Yi(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Cn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const i=[];let r=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?Yi(n.options.delay):0;n.steps.forEach(s=>{const a=t.createSubContext(n.options);o&&a.delayNextStep(o),Cn(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(r),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const i=n.strValue;return Vf(t.params?zc(i,t.params,t.errors):i,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const i=t.currentAnimateTimings=this._visitTiming(n.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;o.type==G.Keyframes?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+o),t.previousNode=n}visitQuery(n,t){const i=t.currentTimeline.currentTime,r=n.options||{},o=r.delay?Yi(r.delay):0;o&&(t.previousNode.type===G.Style||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=zf);let s=i;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;const u=t.createSubContext(n.options,c);o&&u.delayNextStep(o),c===t.element&&(l=u.currentTimeline),Cn(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const i=t.parentContext,r=t.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const d=t.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;Cn(this,n.animation,t),t.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}}const zf={};class Ob{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=zf;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,t,i,r,o,s,a,l){this._driver=n,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.currentTimeline=l||new $f(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Yi(i.duration)),null!=i.delay&&(r.delay=Yi(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=zc(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const i=n.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return n}createSubContext(n=null,t,i){const r=t||this.element,o=new Ob(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=zf,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,i){const r={duration:t??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new AX(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,t,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(SX,"."+this._enterClassName)).replace(MX,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function P7(){return new b(3014,!1)}()),a}}class $f{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(n,t,i,r){this._driver=n,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new $f(this._driver,n,t||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+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||Wi),this._currentKeyframe.set(t,Wi);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,i,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},s=function kX(e,n){const t=new Map;let i;return e.forEach(r=>{if("*"===r){i??=n.keys();for(let o of i)t.set(o,Wi)}else for(let[o,s]of r)t.set(o,s)}),t}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=zc(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Wi),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,i)=>{const r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{"!"===d?n.add(u):d===Wi&&t.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});const o=[...n.values()],s=[...t.values()];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Nb(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class AX extends $f{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,t,i,r,o,s,a=!1){super(n,t,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:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=i+t,a=t/s,l=new Map(n[0]);l.set("offset",0),o.push(l);const c=new Map(n[0]);c.set("offset",gF(a)),o.push(c);const d=n.length-1;for(let u=1;u<=d;u++){let f=new Map(n[u]);const h=f.get("offset");f.set("offset",gF((t+h*i)/s)),o.push(f)}i=s,t=0,r="",n=o}return Nb(this.element,n,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function gF(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}function _F(e,n,t,i,r,o,s,a,l,c,d,u,f){return{type:0,element:e,triggerName:n,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:f}}const Pb={};class vF{_triggerName;ast;_stateStyles;constructor(n,t,i){this._triggerName=n,this.ast=t,this._stateStyles=i}match(n,t,i,r){return function RX(e,n,t,i,r){return e.some(o=>o(n,t,i,r))}(this.ast.matchers,n,t,i,r)}buildStyles(n,t,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(t,i):new Map}build(n,t,i,r,o,s,a,l,c,d){const u=[],f=this.ast.options&&this.ast.options.params||Pb,p=this.buildStyles(i,a&&a.params||Pb,u),m=l&&l.params||Pb,_=this.buildStyles(r,m,u),y=new Set,v=new Map,E=new Map,I="void"===r,B={params:yF(m,f),delay:this.ast.options?.delay},W=d?[]:Fb(n,t,this.ast.animation,o,s,p,_,B,c,u);let J=0;return W.forEach(be=>{J=Math.max(be.duration+be.delay,J)}),u.length?_F(t,this._triggerName,i,r,I,p,_,[],[],v,E,J,u):(W.forEach(be=>{const Si=be.element,va=wn(v,Si,new Set);be.preStyleProps.forEach(Fo=>va.add(Fo));const OF=wn(E,Si,new Set);be.postStyleProps.forEach(Fo=>OF.add(Fo)),Si!==t&&y.add(Si)}),_F(t,this._triggerName,i,r,I,p,_,W,[...y.values()],v,E,J))}}function yF(e,n){const t={...n};return Object.entries(e).forEach(([i,r])=>{null!=r&&(t[i]=r)}),t}class NX{styles;defaultParams;normalizer;constructor(n,t,i){this.styles=n,this.defaultParams=t,this.normalizer=i}buildStyles(n,t){const i=new Map,r=yF(n,this.defaultParams);return this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=zc(s,r,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(a,s)})}),i}}class OX{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(n,t,i){this.name=n,this.ast=t,this._normalizer=i,t.states.forEach(r=>{this.states.set(r.name,new NX(r.style,r.options&&r.options.params||{},i))}),bF(this.states,"true","1"),bF(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new vF(n,r,this.states))}),this.fallbackTransition=function PX(e,n){return new vF(e,{type:G.Transition,animation:{type:G.Sequence,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,i,r){return this.transitionFactories.find(s=>s.match(n,t,i,r))||null}matchStyles(n,t,i){return this.fallbackTransition.buildStyles(n,t,i)}}function bF(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const LX=new Uf;class VX{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i}register(n,t){const i=[],o=kb(this._driver,t,i,[]);if(i.length)throw function z7(){return new b(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,i){const r=n.element,o=iF(this._normalizer,n.keyframes,t,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=Fb(this._driver,t,o,xb,Of,new Map,new Map,i,LX,r),s.forEach(d=>{const u=wn(a,d.element,new Map);d.postStyleProps.forEach(f=>u.set(f,null))})):(r.push(function $7(){return new b(3300,!1)}()),s=[]),r.length)throw function G7(){return new b(3504,!1)}();a.forEach((d,u)=>{d.forEach((f,h)=>{d.set(h,this._driver.computeStyle(u,h,Wi))})});const c=Ar(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function q7(){return new b(3301,!1)}();return t}listen(n,t,i,r){const o=bb(t,"","","");return vb(this._getPlayer(n),i,o,r),()=>{}}command(n,t,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,t,r[0]||{});const 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)}}}const wF="ng-animate-queued",Lb="ng-animate-disabled",zX=[],CF={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$X={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ni="__ng_removed";class Vb{namespaceId;value;options;get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const i=n&&n.hasOwnProperty("value");if(this.value=function ZX(e){return e??null}(i?n.value:n),i){const{value:o,...s}=n;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const $c="void",Bb=new Vb($c);class GX{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(n,t,i){this.id=n,this.hostElement=t,this._engine=i,this._hostClassName="ng-tns-"+n,Ln(t,this._hostClassName)}listen(n,t,i,r){if(!this._triggers.has(t))throw function W7(){return new b(3302,!1)}();if(null==i||0==i.length)throw function Z7(){return new b(3303,!1)}();if(!function YX(e){return"start"==e||"done"==e}(i))throw function Y7(){return new b(3400,!1)}();const o=wn(this._elementListeners,n,[]),s={name:t,phase:i,callback:r};o.push(s);const a=wn(this._engine.statesByElement,n,new Map);return a.has(t)||(Ln(n,Pf),Ln(n,Pf+"-"+t),a.set(t,Bb)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function K7(){return new b(3401,!1)}();return t}trigger(n,t,i,r=!0){const o=this._getTrigger(t),s=new jb(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(Ln(n,Pf),Ln(n,Pf+"-"+t),this._engine.statesByElement.set(n,a=new Map));let l=a.get(t);const c=new Vb(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Bb),c.value!==$c&&l.value===c.value){if(!function XX(e,n){const t=Object.keys(e),i=Object.keys(n);if(t.length!=i.length)return!1;for(let r=0;r{Ro(n,_),xi(n,y)})}return}const f=wn(this._engine.playersByElement,n,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let h=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!h){if(!r)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:h,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Ln(n,wF),s.onStart(()=>{_a(n,wF)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(n);if(_){let y=_.indexOf(s);y>=0&&_.splice(y,1)}}),this.players.push(s),f.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const i=this._engine.driver.query(n,Lf,!0);i.forEach(r=>{if(r[ni])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,t,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const d=this.trigger(n,c,$c,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),i&&Ar(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(t&&i){const r=new Set;t.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Bb,d=new Vb($c),u=new jb(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,t){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let r=!1;if(i.totalAnimations){const 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,t);else{const o=n[ni];(!o||o===CF)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,t))}}insertNode(n,t){Ln(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=bb(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,vb(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class qX{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,t)=>{};_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,i){this.bodyNode=n,this.driver=t,this._normalizer=i}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,t){const i=new GX(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,t){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(t,n),n}register(n,t){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,t)),i}registerTrigger(n,t,i){let r=this._namespaceLookup[n];r&&r.register(t,i)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(n,t,i,r){if(Gf(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(n,t,i,r){if(!Gf(t))return;const o=t[ni];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Ln(n,Lb)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),_a(n,Lb))}removeNode(n,t,i){if(Gf(t)){const r=n?this._fetchNamespace(n):null;r?r.removeNode(t,i):this.markElementAsRemoved(n,t,!1,i);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(n,t,i,r,o){this.collectedLeaveElements.push(t),t[ni]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,i,r,o){return Gf(t)?this._fetchNamespace(n).listen(t,i,r,o):()=>{}}_buildInstruction(n,t,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,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,Lf,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,Sb,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ar(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[ni];if(t&&t.setForRemoval){if(n[ni]=CF,t.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(Lb)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let t=[];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;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Ar(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function Q7(){return new b(3402,!1)}()}_flushAnimations(n,t){const i=new Uf,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(k=>{d.add(k);const L=this.driver.query(k,".ng-animate-queued",!0);for(let U=0;U{const U=xb+m++;p.set(L,U),k.forEach(de=>Ln(de,U))});const _=[],y=new Set,v=new Set;for(let k=0;ky.add(de)):v.add(L))}const E=new Map,I=xF(f,Array.from(y));I.forEach((k,L)=>{const U=Of+m++;E.set(L,U),k.forEach(de=>Ln(de,U))}),n.push(()=>{h.forEach((k,L)=>{const U=p.get(L);k.forEach(de=>_a(de,U))}),I.forEach((k,L)=>{const U=E.get(L);k.forEach(de=>_a(de,U))}),_.forEach(k=>{this.processLeaveNode(k)})});const B=[],W=[];for(let k=this._namespaceList.length-1;k>=0;k--)this._namespaceList[k].drainQueuedTransitions(t).forEach(U=>{const de=U.player,Ct=U.element;if(B.push(de),this.collectedEnterElements.length){const Bt=Ct[ni];if(Bt&&Bt.setForMove){if(Bt.previousTriggersValues&&Bt.previousTriggersValues.has(U.triggerName)){const Oo=Bt.previousTriggersValues.get(U.triggerName),Vn=this.statesByElement.get(U.element);if(Vn&&Vn.has(U.triggerName)){const Wf=Vn.get(U.triggerName);Wf.value=Oo,Vn.set(U.triggerName,Wf)}}return void de.destroy()}}const Ii=!u||!this.driver.containsElement(u,Ct),En=E.get(Ct),kr=p.get(Ct),We=this._buildInstruction(U,i,kr,En,Ii);if(We.errors&&We.errors.length)return void W.push(We);if(Ii)return de.onStart(()=>Ro(Ct,We.fromStyles)),de.onDestroy(()=>xi(Ct,We.toStyles)),void r.push(de);if(U.isFallbackTransition)return de.onStart(()=>Ro(Ct,We.fromStyles)),de.onDestroy(()=>xi(Ct,We.toStyles)),void r.push(de);const VF=[];We.timelines.forEach(Bt=>{Bt.stretchStartingKeyframe=!0,this.disabledNodes.has(Bt.element)||VF.push(Bt)}),We.timelines=VF,i.append(Ct,We.timelines),s.push({instruction:We,player:de,element:Ct}),We.queriedElements.forEach(Bt=>wn(a,Bt,[]).push(de)),We.preStyleProps.forEach((Bt,Oo)=>{if(Bt.size){let Vn=l.get(Oo);Vn||l.set(Oo,Vn=new Set),Bt.forEach((Wf,$b)=>Vn.add($b))}}),We.postStyleProps.forEach((Bt,Oo)=>{let Vn=c.get(Oo);Vn||c.set(Oo,Vn=new Set),Bt.forEach((Wf,$b)=>Vn.add($b))})});if(W.length){const k=[];W.forEach(L=>{k.push(function X7(){return new b(3505,!1)}())}),B.forEach(L=>L.destroy()),this.reportError(k)}const J=new Map,be=new Map;s.forEach(k=>{const L=k.element;i.has(L)&&(be.set(L,L),this._beforeAnimationBuild(k.player.namespaceId,k.instruction,J))}),r.forEach(k=>{const L=k.element;this._getPreviousPlayers(L,!1,k.namespaceId,k.triggerName,null).forEach(de=>{wn(J,L,[]).push(de),de.destroy()})});const Si=_.filter(k=>IF(k,l,c)),va=new Map;DF(va,this.driver,v,c,Wi).forEach(k=>{IF(k,l,c)&&Si.push(k)});const Fo=new Map;h.forEach((k,L)=>{DF(Fo,this.driver,new Set(k),l,"!")}),Si.forEach(k=>{const L=va.get(k),U=Fo.get(k);va.set(k,new Map([...L?.entries()??[],...U?.entries()??[]]))});const zb=[],PF=[],LF={};s.forEach(k=>{const{element:L,player:U,instruction:de}=k;if(i.has(L)){if(d.has(L))return U.onDestroy(()=>xi(L,de.toStyles)),U.disabled=!0,U.overrideTotalTime(de.totalTime),void r.push(U);let Ct=LF;if(be.size>1){let En=L;const kr=[];for(;En=En.parentNode;){const We=be.get(En);if(We){Ct=We;break}kr.push(En)}kr.forEach(We=>be.set(We,Ct))}const Ii=this._buildAnimation(U.namespaceId,de,J,o,Fo,va);if(U.setRealPlayer(Ii),Ct===LF)zb.push(U);else{const En=this.playersByElement.get(Ct);En&&En.length&&(U.parentPlayer=Ar(En)),r.push(U)}}else Ro(L,de.fromStyles),U.onDestroy(()=>xi(L,de.toStyles)),PF.push(U),d.has(L)&&r.push(U)}),PF.forEach(k=>{const L=o.get(k.element);if(L&&L.length){const U=Ar(L);k.setRealPlayer(U)}}),r.forEach(k=>{k.parentPlayer?k.syncPlayerEvents(k.parentPlayer):k.destroy()});for(let k=0;k<_.length;k++){const L=_[k],U=L[ni];if(_a(L,Of),U&&U.hasAnimation)continue;let de=[];if(a.size){let Ii=a.get(L);Ii&&Ii.length&&de.push(...Ii);let En=this.driver.query(L,Sb,!0);for(let kr=0;kr!Ii.destroyed);Ct.length?KX(this,L,Ct):this.processLeaveNode(L)}return _.length=0,zb.forEach(k=>{this.players.push(k),k.onDone(()=>{k.destroy();const L=this.players.indexOf(k);this.players.splice(L,1)}),k.play()}),zb}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,i,r,o){let s=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==$c;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,t,i){const o=t.element,s=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,d=c!==o,u=wn(i,c,[]);this._getPreviousPlayers(c,d,s,a,t.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),u.push(h)})}Ro(o,t.fromStyles)}_buildAnimation(n,t,i,r,o,s){const a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,f=t.timelines.map(p=>{const m=p.element;d.add(m);const _=m[ni];if(_&&_.removedBeforeQueried)return new Fc(p.duration,p.delay);const y=m!==l,v=function QX(e){const n=[];return SF(e,n),n}((i.get(m)||zX).map(J=>J.getRealPlayer())).filter(J=>!!J.element&&J.element===m),E=o.get(m),I=s.get(m),B=iF(this._normalizer,p.keyframes,E,I),W=this._buildPlayer(p,B,v);if(p.subTimeline&&r&&u.add(m),y){const J=new jb(n,a,m);J.setRealPlayer(W),c.push(J)}return W});c.forEach(p=>{wn(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function WX(e,n,t){let i=e.get(n);if(i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&e.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>Ln(p,cF));const h=Ar(f);return h.onDestroy(()=>{d.forEach(p=>_a(p,cF)),xi(l,t.toStyles)}),u.forEach(p=>{wn(r,p,[]).push(h)}),h}_buildPlayer(n,t,i){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,i):new Fc(n.duration,n.delay)}}class jb{namespaceId;triggerName;element;_player=new Fc;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(n,t,i){this.namespaceId=n,this.triggerName=t,this.element=i}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>vb(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){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){wn(this._queuedCallbacks,n,[]).push(t)}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&&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){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function Gf(e){return e&&1===e.nodeType}function EF(e,n){const t=e.style.display;return e.style.display=n??"none",t}function DF(e,n,t,i,r){const o=[];t.forEach(l=>o.push(EF(l)));const s=[];i.forEach((l,c)=>{const d=new Map;l.forEach(u=>{const f=n.computeStyle(c,u,r);d.set(u,f),(!f||0==f.length)&&(c[ni]=$X,s.push(c))}),e.set(c,d)});let a=0;return t.forEach(l=>EF(l,o[a++])),s}function xF(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const r=new Set(n),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function Ln(e,n){e.classList?.add(n)}function _a(e,n){e.classList?.remove(n)}function KX(e,n,t){Ar(t).onDone(()=>e.processLeaveNode(n))}function SF(e,n){for(let t=0;tr.add(o)):n.set(e,i),t.delete(e),!0}class Gc{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(n,t)=>{};constructor(n,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new qX(n.body,t,i),this._timelineEngine=new VX(n.body,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,t,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],d=kb(this._driver,o,l,[]);if(l.length)throw function H7(){return new b(3404,!1)}();a=function FX(e,n,t){return new OX(e,n,t)}(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,r,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,i,r){this._transitionEngine.insertNode(n,t,i,r)}onRemove(n,t,i){this._transitionEngine.removeNode(n,t,i)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,i,r){if("@"==i.charAt(0)){const[o,s]=rF(i);this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(n,t,i,r)}listen(n,t,i,r,o){if("@"==i.charAt(0)){const[s,a]=rF(i);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(n,t,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)}}let eJ=(()=>{class e{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r;let o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&xi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(xi(this._element,this._initialStyles),this._endStyles&&(xi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Ro(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ro(this._element,this._endStyles),this._endStyles=null),xi(this._element,this._initialStyles),this._state=3)}}return e})();function Hb(e){let n=null;return e.forEach((t,i)=>{(function tJ(e){return"display"===e||"position"===e})(i)&&(n=n||new Map,n.set(i,t))}),n}class MF{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(n,t,i,r){this.element=n,this.keyframes=t,this.options=i,this._specialStyles=r,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;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(n,t,i){return n.animate(this._convertKeyframesToObject(t),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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:Ab(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class TF{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,t){return sF(n,t)}getParentElement(n){return wb(n)}query(n,t,i){return aF(n,t,i)}computeStyle(n,t,i){return Ab(n,t)}animate(n,t,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,d=s.filter(h=>h instanceof MF);(function uX(e,n){return 0===e||0===n})(i,r)&&d.forEach(h=>{h.currentSnapshot.forEach((p,m)=>c.set(m,p))});let u=function lX(e){return e.length?e[0]instanceof Map?e:e.map(n=>new Map(Object.entries(n))):[]}(t).map(h=>new Map(h));u=function hX(e,n,t){if(t.size&&n.length){let i=n[0],r=[];if(t.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,Ab(e,a)))}}return n}(n,u,c);const f=function JX(e,n){let t=null,i=null;return Array.isArray(n)&&n.length?(t=Hb(n[0]),n.length>1&&(i=Hb(n[n.length-1]))):n instanceof Map&&(t=Hb(n)),t||i?new eJ(e,t,i):null}(n,u);return new MF(n,u,l,f)}}const AF="@.disabled";class kF{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(n,t,i,r){this.namespaceId=n,this.delegate=t,this.engine=i,this._onDestroy=r}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,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,i,r=!0){this.delegate.insertBefore(n,t,i),this.engine.onInsert(this.namespaceId,t,n,r)}removeChild(n,t,i){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,i,r){this.delegate.setAttribute(n,t,i,r)}removeAttribute(n,t,i){this.delegate.removeAttribute(n,t,i)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,i,r){this.delegate.setStyle(n,t,i,r)}removeStyle(n,t,i){this.delegate.removeStyle(n,t,i)}setProperty(n,t,i){"@"==t.charAt(0)&&t==AF?this.disableAnimations(n,!!i):this.delegate.setProperty(n,t,i)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,i){return this.delegate.listen(n,t,i)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class nJ extends kF{factory;constructor(n,t,i,r,o){super(t,i,r,o),this.factory=n,this.namespaceId=t}setProperty(n,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==AF?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,t.slice(1),i):this.delegate.setProperty(n,t,i)}listen(n,t,i){if("@"==t.charAt(0)){const r=function iJ(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function rJ(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,t,i)}}class oJ{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(n,t,i){this.delegate=n,this.engine=t,this._zone=i,t.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(n,t){const r=this.delegate.createRenderer(n,t);if(!n||!t?.data?.animation){const c=this._rendererCache;let d=c.get(r);return d||(d=new kF("",r,this.engine,()=>c.delete(r)),c.set(r,d)),d}const o=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);const a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,n,c.name,c)};return t.data.animation.forEach(a),new nJ(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,t,i){if(n>=0&&nt(i));const r=this._animationCallbacksBuffer;0==r.length&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const RF=[{provide:Db,useFactory:function aJ(){return new hF}},{provide:Gc,useClass:(()=>{class e extends Gc{constructor(t,i,r){super(t,i,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||e)(M(ae),M(Eb),M(Db))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})()},{provide:_u,useFactory:function lJ(e,n,t){return new oJ(e,n,t)},deps:[bv,Gc,q]}],Ub=[{provide:Eb,useFactory:()=>new TF},{provide:Gr,useValue:"BrowserAnimations"},...RF],NF=[{provide:Eb,useClass:Cb},{provide:Gr,useValue:"NoopAnimations"},...RF];let cJ=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?NF:Ub}}static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({providers:Ub,imports:[gT]})}return e})(),dJ=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})(),uJ=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[Zt,dJ,EN]})}return e})(),fJ=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[Zt,Pc,Pc,Zt]})}return e})(),pJ=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Fe({type:e,bootstrap:[y7]})}static{this.\u0275inj=Me({providers:[B9(wo(Ir.LegacyInterceptors,[{provide:Wk,useFactory:M9},{provide:xc,useExisting:Wk,multi:!0}]))],imports:[gT,r7,cJ,uJ,sZ,jY,fJ,jK,n7.forRoot({loader:Dc}),c7,v7]})}}return e})();IG().bootstrapModule(pJ).catch(e=>console.error(e))}},ya=>{ya(ya.s=344)}]); \ No newline at end of file +"use strict";(self.webpackChunkwebui=self.webpackChunkwebui||[]).push([[792],{344:()=>{function ya(e,n,t,i,r,o,s){try{var a=e[o](s),l=a.value}catch(c){return void t(c)}a.done?n(l):Promise.resolve(l).then(i,r)}function ii(e){return function(){var n=this,t=arguments;return new Promise(function(i,r){var o=e.apply(n,t);function s(l){ya(o,i,r,s,a,"next",l)}function a(l){ya(o,i,r,s,a,"throw",l)}s(void 0)})}}let et=null,ba=!1,Yf=1;const vt=Symbol("SIGNAL");function X(e){const n=et;return et=e,n}const Po={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 wa(e){if(ba)throw new Error("");if(null===et)return;et.consumerOnSignalRead(e);const n=et.nextProducerIndex++;qc(et),ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ea(e){qc(e);for(let n=0;n0}function qc(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Xb(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Jb(e){return void 0!==e.producerNode}let ew=function GF(){throw new Error};function tw(){ew()}function Jf(e,n){Zb()||tw(),e.equal(e.value,n)||(e.value=n,function YF(e){e.version++,function UF(){Yf++}(),Wb(e)}(e))}const ep={...Po,equal:function Zf(e,n){return Object.is(e,n)},value:void 0};const tp=()=>{};function ue(e){return"function"==typeof e}function np(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const ip=np(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Yc(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Ze{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(ue(i))try{i()}catch(o){n=o instanceof ip?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{rw(o)}catch(s){n=n??[],s instanceof ip?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ip(n)}}add(n){var t;if(n&&n!==this)if(this.closed)rw(n);else{if(n instanceof Ze){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Yc(t,n)}remove(n){const{_finalizers:t}=this;t&&Yc(t,n),n instanceof Ze&&n._removeParent(this)}}Ze.EMPTY=(()=>{const e=new Ze;return e.closed=!0,e})();const nw=Ze.EMPTY;function iw(e){return e instanceof Ze||e&&"closed"in e&&ue(e.remove)&&ue(e.add)&&ue(e.unsubscribe)}function rw(e){ue(e)?e():e.unsubscribe()}const Rr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Kc={setTimeout(e,n,...t){const{delegate:i}=Kc;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=Kc;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ow(e){Kc.setTimeout(()=>{const{onUnhandledError:n}=Rr;if(!n)throw e;n(e)})}function rp(){}const XF=op("C",void 0,void 0);function op(e,n,t){return{kind:e,value:n,error:t}}let Nr=null;function Qc(e){if(Rr.useDeprecatedSynchronousErrorHandling){const n=!Nr;if(n&&(Nr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=Nr;if(Nr=null,t)throw i}}else e()}class sp extends Ze{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,iw(n)&&n.add(this)):this.destination=oO}static create(n,t,i){return new Sa(n,t,i)}next(n){this.isStopped?lp(function eO(e){return op("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?lp(function JF(e){return op("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?lp(XF,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()}}}const nO=Function.prototype.bind;function ap(e,n){return nO.call(e,n)}class iO{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){Xc(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){Xc(i)}else Xc(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Xc(t)}}}class Sa extends sp{constructor(n,t,i){let r;if(super(),ue(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&Rr.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&ap(n.next,o),error:n.error&&ap(n.error,o),complete:n.complete&&ap(n.complete,o)}):r=n}this.destination=new iO(r)}}function Xc(e){Rr.useDeprecatedSynchronousErrorHandling?function tO(e){Rr.useDeprecatedSynchronousErrorHandling&&Nr&&(Nr.errorThrown=!0,Nr.error=e)}(e):ow(e)}function lp(e,n){const{onStoppedNotification:t}=Rr;t&&Kc.setTimeout(()=>t(e,n))}const oO={closed:!0,next:rp,error:function rO(e){throw e},complete:rp},cp="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ki(e){return e}function sw(e){return 0===e.length?Ki:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}let Be=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function lO(e){return e&&e instanceof sp||function aO(e){return e&&ue(e.next)&&ue(e.error)&&ue(e.complete)}(e)&&iw(e)}(t)?t:new Sa(t,i,r);return Qc(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=aw(i))((r,o)=>{const s=new Sa({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[cp](){return this}pipe(...t){return sw(t)(this)}toPromise(t){return new(t=aw(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return e.create=n=>new e(n),e})();function aw(e){var n;return null!==(n=e??Rr.Promise)&&void 0!==n?n:Promise}const cO=np(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Q=(()=>{class e extends Be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new lw(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new cO}next(t){Qc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){Qc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){Qc(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:r,observers:o}=this;return i||r?nw:(this.currentObservers=null,o.push(t),new Ze(()=>{this.currentObservers=null,Yc(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new Be;return t.source=this,t}}return e.create=(n,t)=>new lw(n,t),e})();class lw extends Q{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:nw}}class an extends Q{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function cw(e){return ue(e?.lift)}function tt(e){return n=>{if(cw(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ze(e,n,t,i,r){return new dO(e,n,t,i,r)}class dO extends sp{constructor(n,t,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}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()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function K(e,n){return tt((t,i)=>{let r=0;t.subscribe(ze(i,o=>{i.next(e.call(n,o,r++))}))})}const dw="https://g.co/ng/security#xss";class b extends Error{code;constructor(n,t){super(function Vo(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}const Jc=Symbol("InputSignalNode#UNSET"),uw={...ep,transformFn:void 0,applyValueToInputSignal(e,n){Jf(e,n)}};function hw(e,n){const t=Object.create(uw);function i(){if(wa(t),t.value===Jc)throw new b(-950,!1);return t.value}return t.value=e,t.transformFn=n?.transform,i[vt]=t,i}function Mi(e){return{toString:e}.toString()}const jo="__parameters__";function Uo(e,n,t){return Mi(()=>{const i=function dp(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,d){const u=l.hasOwnProperty(jo)?l[jo]:Object.defineProperty(l,jo,{value:[]})[jo];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}const Le=globalThis;function we(e){for(let n in e)if(e[n]===we)return n;throw Error("Could not find renamed property on target object.")}function uO(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function dt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(dt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function up(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const hO=we({__forward_ref__:we});function Ie(e){return e.__forward_ref__=Ie,e.toString=function(){return dt(this())},e}function j(e){return ed(e)?e():e}function ed(e){return"function"==typeof e&&e.hasOwnProperty(hO)&&e.__forward_ref__===Ie}function S(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Me(e){return{providers:e.providers||[],imports:e.imports||[]}}function td(e){return pw(e,id)||pw(e,mw)}function pw(e,n){return e.hasOwnProperty(n)?e[n]:null}function nd(e){return e&&(e.hasOwnProperty(hp)||e.hasOwnProperty(vO))?e[hp]:null}const id=we({\u0275prov:we}),hp=we({\u0275inj:we}),mw=we({ngInjectableDef:we}),vO=we({ngInjectorDef:we});class C{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,t){this._desc=n,this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=S({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function _p(e){return e&&!!e.\u0275providers}const Ia=we({\u0275cmp:we}),vp=we({\u0275dir:we}),yp=we({\u0275pipe:we}),_w=we({\u0275mod:we}),Ti=we({\u0275fac:we}),Ma=we({__NG_ELEMENT_ID__:we}),vw=we({__NG_ENV_ID__:we});function Z(e){return"string"==typeof e?e:null==e?"":String(e)}function bp(e,n){throw new b(-201,!1)}var ne=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ne||{});let wp;function yw(){return wp}function Xt(e){const n=wp;return wp=e,n}function bw(e,n,t){const i=td(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&ne.Optional?null:void 0!==n?n:void bp()}const Ta={},Cp="__NG_DI_FLAG__",rd="ngTempTokenPath",DO=/\n/gm,ww="__source";let zo;function Xi(e){const n=zo;return zo=e,n}function IO(e,n=ne.Default){if(void 0===zo)throw new b(-203,!1);return null===zo?bw(e,void 0,n):zo.get(e,n&ne.Optional?null:void 0,n)}function M(e,n=ne.Default){return(yw()||IO)(j(e),n)}function g(e,n=ne.Default){return M(e,od(n))}function od(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ep(e){const n=[];for(let t=0;tArray.isArray(t)?$o(t,n):n(t))}function Ew(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function sd(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function cn(e,n,t){let i=Go(e,n);return i>=0?e[1|i]=t:(i=~i,function Dw(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function xp(e,n){const t=Go(e,n);if(t>=0)return e[1|t]}function Go(e,n){return function xw(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=e[o<n?r=o:i=o+1}return~(r<{t.push(s)};return $o(n,s=>{const a=s;cd(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&Iw(r,o),t}function Iw(e,n){for(let t=0;t{n(o,i)})}}function cd(e,n,t,i){if(!(e=j(e)))return!1;let r=null,o=nd(e);const s=!o&&ee(e);if(o||s){if(s&&!s.standalone)return!1;r=e}else{const l=e.ngModule;if(o=nd(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)cd(c,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{$o(o.imports,d=>{cd(d,n,t,i)&&(c||=[],c.push(d))})}finally{}void 0!==c&&Iw(c,n)}if(!a){const c=Or(r)||(()=>new r);n({provide:r,useFactory:c,deps:he},r),n({provide:Sp,useValue:r,multi:!0},r),n({provide:Dn,useValue:()=>M(r),multi:!0},r)}const l=o.providers;if(null!=l&&!a){const c=e;Mp(l,d=>{n(d,c)})}}}return r!==e&&void 0!==e.providers}function Mp(e,n){for(let t of e)_p(t)&&(t=t.\u0275providers),Array.isArray(t)?Mp(t,n):n(t)}const PO=we({provide:String,useValue:we});function Tp(e){return null!==e&&"object"==typeof e&&PO in e}function Pr(e){return"function"==typeof e}const Ap=new C(""),dd={},VO={};let kp;function ud(){return void 0===kp&&(kp=new ld),kp}class Dt{}class qo extends Dt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,Np(n,s=>this.processProvider(s)),this.records.set(Sw,Wo(void 0,this)),r.has("environment")&&this.records.set(Dt,Wo(void 0,this));const o=this.records.get(Ap);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Sp,he,ne.Self))}destroy(){Ra(this),this._destroyed=!0;const n=X(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of t)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),X(n)}}onDestroy(n){return Ra(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Ra(this);const t=Xi(this),i=Xt(void 0);try{return n()}finally{Xi(t),Xt(i)}}get(n,t=Ta,i=ne.Default){if(Ra(this),n.hasOwnProperty(vw))return n[vw](this);i=od(i);const o=Xi(this),s=Xt(void 0);try{if(!(i&ne.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function zO(e){return"function"==typeof e||"object"==typeof e&&e instanceof C}(n)&&td(n);l=c&&this.injectableDefInScope(c)?Wo(Rp(n),dd):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&ne.Self?ud():this.parent).get(n,t=i&ne.Optional&&t===Ta?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[rd]=a[rd]||[]).unshift(dt(n)),o)throw a;return function TO(e,n,t,i){const r=e[rd];throw n[ww]&&r.unshift(n[ww]),e.message=function AO(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=dt(n);if(Array.isArray(n))r=n.map(dt).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):dt(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(DO,"\n ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[rd]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{Xt(s),Xi(o)}}resolveInjectorInitializers(){const n=X(null),t=Xi(this),i=Xt(void 0);try{const o=this.get(Dn,he,ne.Self);for(const s of o)s()}finally{Xi(t),Xt(i),X(n)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(dt(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){let t=Pr(n=j(n))?n:j(n&&n.provide);const i=function jO(e){return Tp(e)?Wo(void 0,e.useValue):Wo(Aw(e),dd)}(n);if(!Pr(n)&&!0===n.multi){let r=this.records.get(t);r||(r=Wo(void 0,dd,!0),r.factory=()=>Ep(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){const i=X(null);try{return t.value===dd&&(t.value=VO,t.value=t.factory()),"object"==typeof t.value&&t.value&&function UO(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{X(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=j(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function Rp(e){const n=td(e),t=null!==n?n.factory:Or(e);if(null!==t)return t;if(e instanceof C)throw new b(204,!1);if(e instanceof Function)return function BO(e){if(e.length>0)throw new b(204,!1);const t=function _O(e){return e&&(e[id]||e[mw])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new b(204,!1)}function Aw(e,n,t){let i;if(Pr(e)){const r=j(e);return Or(r)||Rp(r)}if(Tp(e))i=()=>j(e.useValue);else if(function Tw(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Ep(e.deps||[]));else if(function Mw(e){return!(!e||!e.useExisting)}(e))i=()=>M(j(e.useExisting));else{const r=j(e&&(e.useClass||e.provide));if(!function HO(e){return!!e.deps}(e))return Or(r)||Rp(r);i=()=>new r(...Ep(e.deps))}return i}function Ra(e){if(e.destroyed)throw new b(205,!1)}function Wo(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Np(e,n){for(const t of e)Array.isArray(t)?Np(t,n):t&&_p(t)?Np(t.\u0275providers,n):n(t)}function xn(e,n){e instanceof qo&&Ra(e);const i=Xi(e),r=Xt(void 0);try{return n()}finally{Xi(i),Xt(r)}}function kw(){return void 0!==yw()||null!=function SO(){return zo}()}function Zo(e){if(!kw())throw new b(-203,!1)}const z=11,T=25;var gd=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(gd||{});function Qe(e){return Array.isArray(e)&&"object"==typeof e[1]}function ft(e){return Array.isArray(e)&&!0===e[1]}function Pp(e){return!!(4&e.flags)}function nr(e){return e.componentOffset>-1}function _d(e){return!(1&~e.flags)}function jn(e){return!!e.template}function Fa(e){return!!(512&e[2])}class tP{previousValue;currentValue;firstChange;constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Vw(e,n,t,i){null!==n?n.applyValueToInputSignal(n,i):e[t]=i}const un=(()=>{const e=()=>Bw;return e.ngInherit=!0,e})();function Bw(e){return e.type.prototype.ngOnChanges&&(e.setInput=iP),nP}function nP(){const e=Hw(this),n=e?.current;if(n){const t=e.previous;if(t===ri)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function iP(e,n,t,i,r){const o=this.declaredInputs[i],s=Hw(e)||function rP(e,n){return e[jw]=n}(e,{previous:ri,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new tP(c&&c.currentValue,t,l===ri),Vw(e,n,r,t)}const jw="__ngSimpleChanges__";function Hw(e){return e[jw]||null}function ce(e){for(;Array.isArray(e);)e=e[0];return e}function Oa(e,n){return ce(n[e])}function Ht(e,n){return ce(n[e.index])}function ts(e,n){return e.data[n]}function hn(e,n){const t=n[e];return Qe(t)?t:t[0]}function Hp(e){return!(128&~e[2])}function Sn(e,n){return null==n?null:e[n]}function $w(e){e[17]=0}function Up(e){1024&e[2]||(e[2]|=1024,Hp(e)&&Pa(e))}function vd(e){return!!(9216&e[2]||e[24]?.dirty)}function zp(e){e[10].changeDetectionScheduler?.notify(9),64&e[2]&&(e[2]|=1024),vd(e)&&Pa(e)}function Pa(e){e[10].changeDetectionScheduler?.notify(0);let n=ki(e);for(;null!==n&&!(8192&n[2])&&(n[2]|=8192,Hp(n));)n=ki(n)}function yd(e,n){if(!(256&~e[2]))throw new b(911,!1);null===e[21]&&(e[21]=[]),e[21].push(n)}function ki(e){const n=e[3];return ft(n)?n[3]:n}const $={lFrame:tC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let qp=!1;function qw(){return $.bindingsEnabled}function Hr(){return null!==$.skipHydrationRootTNode}function w(){return $.lFrame.lView}function H(){return $.lFrame.tView}function wd(e){return $.lFrame.contextLView=e,e[8]}function Cd(e){return $.lFrame.contextLView=null,e}function re(){let e=Ww();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ww(){return $.lFrame.currentTNode}function Hn(e,n){const t=$.lFrame;t.currentTNode=e,t.isParent=n}function Wp(){return $.lFrame.isParent}function Zp(){$.lFrame.isParent=!1}function Kw(){return qp}function Ed(e){const n=qp;return qp=e,n}function In(){return $.lFrame.bindingIndex++}function Ni(e){const n=$.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function vP(e,n){const t=$.lFrame;t.bindingIndex=t.bindingRootIndex=e,Yp(n)}function Yp(e){$.lFrame.currentDirectiveIndex=e}function Qp(){return $.lFrame.currentQueryIndex}function Dd(e){$.lFrame.currentQueryIndex=e}function bP(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[5]:null}function Jw(e,n,t){if(t&ne.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&ne.Host||(r=bP(o),null===r||(o=o[14],10&r.type))););if(null===r)return!1;n=r,e=o}const i=$.lFrame=eC();return i.currentTNode=n,i.lView=e,!0}function Xp(e){const n=eC(),t=e[1];$.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function eC(){const e=$.lFrame,n=null===e?null:e.child;return null===n?tC(e):n}function tC(e){const 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:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function nC(){const e=$.lFrame;return $.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const iC=nC;function Jp(){const e=nC();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function xt(){return $.lFrame.selectedIndex}function Ur(e){$.lFrame.selectedIndex=e}function Ee(){const e=$.lFrame;return ts(e.tView,e.selectedIndex)}let sC=!0;function Va(){return sC}function li(e){sC=e}function xd(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t=i)break}else n[l]<0&&(e[17]+=65536),(a>14>16&&(3&e[2])===n&&(e[2]+=16384,lC(a,o)):lC(a,o)}class Ba{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,t,i){this.factory=n,this.canSeeViewProviders=t,this.injectImpl=i}}function im(e,n,t){let i=0;for(;in){s=o-1;break}}}for(;o>16}(e),i=n;for(;t>0;)i=i[14],t--;return i}let sm=!0;function Md(e){const n=sm;return sm=e,n}let NP=0;const ci={};function Td(e,n){const t=pC(e,n);if(-1!==t)return t;const i=n[1];i.firstCreatePass&&(e.injectorIndex=n.length,am(i.data,e),am(n,null),am(i.blueprint,null));const r=Ad(e,n),o=e.injectorIndex;if(om(r)){const s=Ha(r),a=Ua(r,n),l=a[1].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function am(e,n){e.push(0,0,0,0,0,0,0,0,n)}function pC(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Ad(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){if(i=wC(r),null===i)return-1;if(t++,r=r[14],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function lm(e,n,t){!function FP(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Ma)&&(i=t[Ma]),null==i&&(i=t[Ma]=NP++);const r=255&i;n.data[e+(r>>5)]|=1<=0?255&n:VP:n}(t);if("function"==typeof o){if(!Jw(n,e,i))return i&ne.Host?mC(r,0,i):gC(n,t,i,r);try{let s;if(s=o(i),null!=s||i&ne.Optional)return s;bp()}finally{iC()}}else if("number"==typeof o){let s=null,a=pC(e,n),l=-1,c=i&ne.Host?n[15][5]:null;for((-1===a||i&ne.SkipSelf)&&(l=-1===a?Ad(e,n):n[a+8],-1!==l&&bC(i,!1)?(s=n[1],a=Ha(l),n=Ua(l,n)):a=-1);-1!==a;){const d=n[1];if(yC(o,a,d.data)){const u=PP(a,n,t,s,i,c);if(u!==ci)return u}l=n[a+8],-1!==l&&bC(i,n[1].data[a+8]===c)&&yC(o,a,n)?(s=d,a=Ha(l),n=Ua(l,n)):a=-1}}return r}function PP(e,n,t,i,r,o){const s=n[1],a=s.data[e+8],d=kd(a,s,t,null==i?nr(a)&&sm:i!=s&&!!(3&a.type),r&ne.Host&&o===a);return null!==d?$r(n,s,d,a):ci}function kd(e,n,t,i,r){const o=e.providerIndexes,s=n.data,a=1048575&o,l=e.directiveStart,d=o>>20,f=r?a+d:e.directiveEnd;for(let h=i?a:a+d;h=l&&p.type===t)return h}if(r){const h=s[l];if(h&&jn(h)&&h.type===t)return l}return null}function $r(e,n,t,i){let r=e[t];const o=n.data;if(function IP(e){return e instanceof Ba}(r)){const s=r;s.resolving&&function wO(e,n){throw n&&n.join(" > "),new b(-200,e)}(function ge(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Z(e)}(o[t]));const a=Md(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Xt(s.injectImpl):null;Jw(e,i,ne.Default);try{r=e[t]=s.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&&function xP(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=Bw(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}r&&(t.preOrderHooks??=[]).push(0-e,r),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==c&&Xt(c),Md(a),s.resolving=!1,iC()}}return r}function yC(e,n,t){return!!(t[n+(e>>5)]&1<{const n=e.prototype.constructor,t=n[Ti]||cm(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[Ti]||cm(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function cm(e){return ed(e)?()=>{const n=cm(j(e));return n&&n()}:Or(e)}function wC(e){const n=e[1],t=n.type;return 2===t?n.declTNode:1===t?e[5]:null}function za(e){return function OP(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;rM(Sw)});static __NG_ELEMENT_ID__=-1}class WP{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>za(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}new C("").__NG_ELEMENT_ID__=e=>{const n=re();if(null===n)throw new b(204,!1);if(2&n.type)return n.value;if(e&ne.Optional)return null;throw new b(204,!1)};const MC=!1;let ir=(()=>class e{static __NG_ELEMENT_ID__=YP;static __NG_ENV_ID__=t=>t})();class TC extends ir{_lView;constructor(n){super(),this._lView=n}onDestroy(n){return yd(this._lView,n),()=>function $p(e,n){if(null===e[21])return;const t=e[21].indexOf(n);-1!==t&&e[21].splice(t,1)}(this._lView,n)}}function YP(){return new TC(w())}class Fi{}const $a=new C("",{providedIn:"root",factory:()=>!1}),AC=new C(""),um=new C("");let Un=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new an(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}has(t){return this.pendingTasks.has(t)}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();const fe=class QP extends Q{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,kw()&&(this.destroyRef=g(ir,{optional:!0})??void 0,this.pendingTasks=g(Un,{optional:!0})??void 0)}emit(n){const t=X(null);try{super.next(n)}finally{X(t)}}subscribe(n,t,i){let r=n,o=t||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof Ze&&n.add(a),a}wrapInTimeout(n){return t=>{const i=this.pendingTasks?.add();setTimeout(()=>{n(t),void 0!==i&&this.pendingTasks?.remove(i)})}}};function Ga(...e){}function kC(e){let n,t;function i(){e=Ga;try{void 0!==t&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(t),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),i()}),"function"==typeof requestAnimationFrame&&(t=requestAnimationFrame(()=>{e(),i()})),()=>i()}function RC(e){return queueMicrotask(()=>e()),()=>{e=Ga}}const hm="isAngularZone",Nd=hm+"_ID";let XP=0;class q{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new fe(!1);onMicrotaskEmpty=new fe(!1);onStable=new fe(!1);onError=new fe(!1);constructor(n){const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=MC}=n;if(typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&i,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=o,function t1(e){const n=()=>{!function e1(e){function n(){kC(()=>{e.callbackScheduled=!1,pm(e),e.isCheckStableRunning=!0,fm(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),pm(e))}(e)},t=XP++;e._inner=e._inner.fork({name:"angular",properties:{[hm]:!0,[Nd]:t,[Nd+t]:!0},onInvokeTask:(i,r,o,s,a,l)=>{if(function n1(e){return OC(e,"__ignore_ng_zone__")}(l))return i.invokeTask(o,s,a,l);try{return NC(e),i.invokeTask(o,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&n(),FC(e)}},onInvoke:(i,r,o,s,a,l,c)=>{try{return NC(e),i.invoke(o,s,a,l,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function i1(e){return OC(e,"__scheduler_tick__")}(l)&&n(),FC(e)}},onHasTask:(i,r,o,s)=>{i.hasTask(o,s),r===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,pm(e),fm(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(i,r,o,s)=>(i.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(hm)}static assertInAngularZone(){if(!q.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(q.isInAngularZone())throw new b(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,JP,Ga,Ga);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const JP={};function fm(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function pm(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function NC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function FC(e){e._nesting--,fm(e)}class mm{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new fe;onMicrotaskEmpty=new fe;onStable=new fe;onError=new fe;run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}}function OC(e,n){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[n]}class fn{_console=console;handleError(n){this._console.error("ERROR",n)}}const o1=new C("",{providedIn:"root",factory:()=>{const e=g(q),n=g(fn);return t=>e.runOutsideAngular(()=>n.handleError(t))}});function LC(e,n){return hw(e,n)}const a1=(LC.required=function s1(e){return hw(Jc,e)},LC);function l1(){return os(re(),w())}function os(e,n){return new Ce(Ht(e,n))}let Ce=(()=>class e{nativeElement;constructor(t){this.nativeElement=t}static __NG_ELEMENT_ID__=l1})();function VC(e){return e instanceof Ce?e.nativeElement:e}function c1(){return this._results[Symbol.iterator]()}class qa{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Q}constructor(n=!1){this._emitDistinctChangesOnly=n}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,t){return this._results.reduce(n,t)}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,t){this.dirty=!1;const i=function Jt(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function FO(e,n,t){if(e.length!==n.length)return!1;for(let i=0;ik1}),k1="ng",wm=new C(""),ui=new C("",{providedIn:"platform",factory:()=>"unknown"}),Gr=new C(""),Cm=new C("",{providedIn:"root",factory:()=>function di(){if(void 0!==bm)return bm;if(typeof document<"u")return document;throw new b(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),oE=new C("",{providedIn:"root",factory:()=>!1});var Rm=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Rm||{});const Xa=new C(""),cE=new Set;function bt(e){cE.has(e)||(cE.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var ds=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ds||{});let Nm=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();const dE=[ds.EarlyRead,ds.Write,ds.MixedReadWrite,ds.Read];let uE=(()=>{class e{ngZone=g(q);scheduler=g(Fi);errorHandler=g(fn,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(Xa,{optional:!0})}execute(){this.executing=!0;for(const t of dE)for(const i of this.sequences)if(!i.erroredOrDestroyed&&i.hooks[t])try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>i.hooks[t](i.pipelinedValue),i.snapshot))}catch(r){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(const t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(7))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}maybeTrace(t,i){return i?.run(Rm.AFTER_NEXT_RENDER,t)??t()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();class hE{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,t,i,r,o=null){this.impl=n,this.hooks=t,this.once=i,this.snapshot=o,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function hi(e,n){!n?.injector&&Zo();const t=n?.injector??g(De);return bt("NgAfterNextRender"),pE(e,t,n,!0)}function pE(e,n,t,i){const r=n.get(Nm);r.impl??=n.get(uE);const o=n.get(Xa,null,{optional:!0}),s=t?.phase??ds.MixedReadWrite,a=!0!==t?.manualCleanup?n.get(ir):null,l=new hE(r.impl,function P1(e,n){if(e instanceof Function){const t=[void 0,void 0,void 0,void 0];return t[n]=e,t}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,s),i,a,o?.snapshot(null));return r.impl.register(l),l}var zn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(zn||{});let Kd,Qd;function gs(e){return function Wm(){if(void 0===Kd&&(Kd=null,Le.trustedTypes))try{Kd=Le.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Kd}()?.createHTML(e)||e}function VE(e){return function Zm(){if(void 0===Qd&&(Qd=null,Le.trustedTypes))try{Qd=Le.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Qd}()?.createScriptURL(e)||e}class Yr{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${dw})`}}class vL extends Yr{getTypeName(){return"HTML"}}class yL extends Yr{getTypeName(){return"Style"}}class bL extends Yr{getTypeName(){return"Script"}}class wL extends Yr{getTypeName(){return"URL"}}class CL extends Yr{getTypeName(){return"ResourceURL"}}function pn(e){return e instanceof Yr?e.changingThisBreaksApplicationSecurity:e}function fi(e,n){const t=function EL(e){return e instanceof Yr&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${dw})`)}return t===n}class TL{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(gs(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}}class AL{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=gs(n),t}}const RL=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Xd(e){return(e=String(e)).match(RL)?e:"unsafe:"+e}function Oi(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function ll(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const jE=Oi("area,br,col,hr,img,wbr"),HE=Oi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),UE=Oi("rp,rt"),Ym=ll(jE,ll(HE,Oi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ll(UE,Oi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ll(UE,HE)),Km=Oi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),zE=ll(Km,Oi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Oi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),NL=Oi("script,style,template");class FL{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let t=n.firstChild,i=!0,r=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)r.push(t),t=LL(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=PL(t);if(o){t=o;break}t=r.pop()}return this.buf.join("")}startElement(n){const t=$E(n).toLowerCase();if(!Ym.hasOwnProperty(t))return this.sanitizedSomething=!0,!NL.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=n.attributes;for(let r=0;r"),!0}endElement(n){const t=$E(n).toLowerCase();Ym.hasOwnProperty(t)&&!jE.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(qE(n))}}function PL(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw GE(n);return n}function LL(e){const n=e.firstChild;if(n&&function OL(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw GE(n);return n}function $E(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function GE(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const VL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BL=/([^\#-~ |!])/g;function qE(e){return e.replace(/&/g,"&").replace(VL,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(BL,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let Jd;function WE(e,n){let t=null;try{Jd=Jd||function BE(e){const n=new AL(e);return function kL(){try{return!!(new window.DOMParser).parseFromString(gs(""),"text/html")}catch{return!1}}()?new TL(n):n}(e);let i=n?String(n):"";t=Jd.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=t.innerHTML,t=Jd.getInertBodyElement(i)}while(i!==o);return gs((new FL).sanitizeChildren(Qm(t)||t))}finally{if(t){const i=Qm(t)||t;for(;i.firstChild;)i.firstChild.remove()}}}function Qm(e){return"content"in e&&function jL(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var wt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(wt||{});function _s(e){const n=cl();return n?n.sanitize(wt.URL,e)||"":fi(e,"URL")?pn(e):Xd(Z(e))}function ZE(e){const n=cl();if(n)return VE(n.sanitize(wt.RESOURCE_URL,e)||"");if(fi(e,"ResourceURL"))return VE(pn(e));throw new b(904,!1)}function cl(){const e=w();return e&&e[10].sanitizer}const WL=/^>|^->||--!>|)/g;function mn(e){return e instanceof Function?e():e}var sr=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(sr||{}),ar=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(ar||{});function tg(e,n){return undefined(e,n)}function ys(e,n,t,i,r){if(null!=i){let o,s=!1;ft(i)?o=i:Qe(i)&&(s=!0,i=i[0]);const a=ce(i);0===e&&null!==t?null==r?cD(n,t,a):Kr(n,t,a,r||null,!0):1===e&&null!==t?Kr(n,t,a,r||null,!0):2===e?function hl(e,n,t){e.removeChild(null,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function pV(e,n,t,i,r){const o=t[7];o!==ce(t)&&ys(n,e,i,o,r);for(let a=10;an.replace(ZL,"\u200b$1\u200b"))}(n))}function nu(e,n,t){return e.createElement(n,t)}function sD(e,n){n[10].changeDetectionScheduler?.notify(10),ru(e,n,n[z],2,null,null)}function aD(e,n){const t=e[9],i=n[3];(Qe(i)||n[15]!==i[3][15])&&(e[2]|=gd.HasTransplantedViews),null===t?e[9]=[n]:t.push(n)}function rg(e,n){const t=e[9],i=t.indexOf(n);t.splice(i,1)}function dl(e,n){if(e.length<=10)return;const t=10+n,i=e[t];if(i){const r=i[16];null!==r&&r!==e&&rg(r,i),n>0&&(e[t-1][4]=i[4]);const o=sd(e,10+n);!function oD(e,n){sD(e,n),n[0]=null,n[5]=null}(i[1],i);const s=o[18];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function ul(e,n){if(!(256&n[2])){const t=n[z];t.destroyNode&&ru(e,n,t,3,null,null),function lV(e){let n=e[12];if(!n)return og(e[1],e);for(;n;){let t=null;if(Qe(n))t=n[12];else{const i=n[10];i&&(t=i)}if(!t){for(;n&&!n[4]&&n!==e;)Qe(n)&&og(n[1],n),n=n[3];null===n&&(n=e),Qe(n)&&og(n[1],n),t=n&&n[4]}n=t}}(n)}}function og(e,n){if(256&n[2])return;const t=X(null);try{n[2]&=-129,n[2]|=256,n[24]&&Da(n[24]),function uV(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i=0?i[a]():i[-a].unsubscribe(),s+=2}else t[s].call(i[t[s+1]]);null!==i&&(n[7]=null);const r=n[21];if(null!==r){n[21]=null;for(let s=0;s-1){const{encapsulation:o}=e.data[i.directiveStart+r];if(o===zn.None||o===zn.Emulated)return null}return Ht(i,t)}}(e,n.parent,t)}function Kr(e,n,t,i,r){e.insertBefore(n,t,i,r)}function cD(e,n,t){e.appendChild(n,t)}function dD(e,n,t,i,r){null!==i?Kr(e,n,t,i,r):cD(e,n,t)}function ag(e,n){return e.parentNode(n)}function uD(e,n,t){return fD(e,n,t)}let fD=function hD(e,n,t){return 40&e.type?Ht(e,t):null};function iu(e,n,t,i){const r=sg(e,i,n),o=n[z],a=uD(i.parent||n[5],i,n);if(null!=r)if(Array.isArray(t))for(let l=0;l-1){let o;for(;++ro?"":r[d+1].toLowerCase(),2&i&&c!==u){if($n(i))return!1;s=!0}}}}else{if(!s&&!$n(i)&&!$n(l))return!1;if(s&&$n(l))continue;s=!1,i=l|1&i}}return $n(i)||s}function $n(e){return!(1&e)}function wV(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let o=!1;for(;r-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!$n(s)&&(n+=CD(o,r),r=""),i=s,o=o||!$n(i);t++}return""!==r&&(n+=CD(o,r)),n}const Y={};function P(e=1){ED(H(),w(),xt()+e,!1)}function ED(e,n,t,i){if(!i)if(3&~n[2]){const o=e.preOrderHooks;null!==o&&Id(n,o,0,t)}else{const o=e.preOrderCheckHooks;null!==o&&Sd(n,o,t)}Ur(t)}function x(e,n=ne.Default){const t=w();return null===t?M(e,n):_C(re(),t,j(e),n)}function xD(e,n,t,i,r,o){const s=X(null);try{let a=null;r&sr.SignalBased&&(a=n[i][vt]),null!==a&&void 0!==a.transformFn&&(o=a.transformFn(o)),r&sr.HasDecoratorInputTransform&&(o=e.inputTransforms[i].call(n,o)),null!==e.setInput?e.setInput(n,a,o,t,i):Vw(n,a,i,o)}finally{X(s)}}function fl(e,n,t,i,r,o,s,a,l,c,d){const u=n.blueprint.slice();return u[0]=r,u[2]=1228|i,(null!==c||e&&2048&e[2])&&(u[2]|=2048),$w(u),u[3]=u[14]=e,u[8]=t,u[10]=s||e&&e[10],u[z]=a||e&&e[z],u[9]=l||e&&e[9]||null,u[5]=o,u[19]=function h1(){return u1++}(),u[6]=d,u[20]=c,u[15]=2==n.type?e[15]:u,u}function Xr(e,n,t,i,r){let o=e.data[n];if(null===o)o=function hg(e,n,t,i,r){const o=Ww(),s=Wp(),l=e.data[n]=function PV(e,n,t,i,r,o){let s=n?n.injectorIndex:-1,a=0;return Hr()&&(a|=128),{type:t,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}}(0,s?o:o&&o.parent,t,n,i,r);return null===e.firstChild&&(e.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(e,n,t,i,r),function _P(){return $.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=i,o.attrs=r;const s=function La(){const e=$.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Hn(o,!0),o}function pl(e,n,t,i){if(0===t)return-1;const r=n.length;for(let o=0;oT&&ED(e,n,T,!1),t(i,r)}finally{Ur(o)}}function fg(e,n,t){if(Pp(n)){const i=X(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;snull;function MD(e,n,t,i,r){for(let o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];if(void 0===s)continue;i??={};let a,l=sr.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(null!==r){if(!r.hasOwnProperty(o))continue;c=r[o]}0===e?TD(i,t,c,a,l):TD(i,t,c,a)}return i}function TD(e,n,t,i,r){let o;e.hasOwnProperty(t)?(o=e[t]).push(n,i):o=e[t]=[n,i],void 0!==r&&o.push(r)}function tn(e,n,t,i,r,o,s,a){const l=Ht(n,t);let d,c=n.inputs;!a&&null!=c&&(d=c[i])?(Eg(e,t,d,i,r),nr(n)&&function BV(e,n){const t=hn(n,e);16&t[2]||(t[2]|=64)}(t,n.index)):3&n.type&&(i=function VV(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(l,i,r))}function vg(e,n,t,i){if(qw()){const r=null===i?null:{"":-1},o=function GV(e,n){const t=e.directiveRegistry;let i=null,r=null;if(t)for(let o=0;o0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,i,o)}}(e,n,i,pl(e,t,r.hostVars,Y),r)}function bg(e){let n=16;return e.signals?n=4096:e.onPush&&(n=64),n}function pi(e,n,t,i,r,o){const s=Ht(e,n);!function wg(e,n,t,i,r,o,s){if(null==o)e.removeAttribute(n,r,t);else{const a=null==s?Z(o):s(o,i||"",r);e.setAttribute(n,r,a,t)}}(n[z],s,o,e.value,t,i,r)}function QV(e,n,t,i,r,o){const s=o[n];if(null!==s)for(let a=0;a0&&(t[r-1][4]=n),i{Pa(e.lView)},consumerOnSignalRead(){this.lView[24]=this}},aB={...Po,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let n=ki(e.lView);for(;n&&!BD(n[1]);)n=ki(n);n&&Up(n)},consumerOnSignalRead(){this.lView[24]=this}};function BD(e){return 2!==e.type}function jD(e){if(null===e[23])return;let n=!0;for(;n;){let t=!1;for(const i of e[23])i.dirty&&(t=!0,null===i.zone||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=t&&!!(8192&e[2])}}function lu(e,n=!0,t=0){const r=e[10].rendererFactory;r.begin?.();try{!function cB(e,n){const t=Kw();try{Ed(!0),Sg(e,n);let i=0;for(;vd(e);){if(100===i)throw new b(103,!1);i++,Sg(e,1)}}finally{Ed(t)}}(e,t)}catch(s){throw n&&su(e,s),s}finally{r.end?.()}}function UD(e,n,t,i){const r=n[2];if(!(256&~r))return;Xp(n);let a=!0,l=null,c=null;BD(e)?(c=function nB(e){return e[24]??function iB(e){const n=VD.pop()??Object.create(oB);return n.lView=e,n}(e)}(n),l=Lo(c)):null===function Kf(){return et}()?(a=!1,c=function sB(e){const n=e[24]??Object.create(aB);return n.lView=e,n}(n),l=Lo(c)):n[24]&&(Da(n[24]),n[24]=null);try{$w(n),function Qw(e){return $.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&SD(e,n,t,2,i);const d=!(3&~r);if(d){const h=e.preOrderCheckHooks;null!==h&&Sd(n,h,null)}else{const h=e.preOrderHooks;null!==h&&Id(n,h,0,null),em(n,0)}if(function dB(e){for(let n=WC(e);null!==n;n=ZC(n)){if(!(n[2]&gd.HasTransplantedViews))continue;const t=n[9];for(let i=0;i-1&&(dl(n,i),sd(t,i))}this._attachedToViewContainer=!1}ul(this._lView[1],this._lView)}onDestroy(n){yd(this._lView,n)}markForCheck(){gl(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Up(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){zp(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,lu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=Fa(this._lView),t=this._lView[16];null!==t&&!n&&rg(t,this._lView),sD(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=n;const t=Fa(this._lView),i=this._lView[16];null!==i&&!t&&aD(i,this._lView),zp(this._lView)}}let Li=(()=>class e{static __NG_ELEMENT_ID__=pB})();const hB=Li,fB=class extends hB{_declarationLView;_declarationTContainer;elementRef;constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,i){const r=bs(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:i});return new _l(r)}};function pB(){return cu(re(),w())}function cu(e,n){return 4&e.type?new fB(n,e,os(e,n)):null}class l2{}class fx{}class c2{resolveComponentFactory(n){throw Error(`No component factory found for ${dt(n)}.`)}}class mu{static NULL=new c2}class gu{}let Vi=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function d2(){const e=w(),t=hn(re().index,e);return(Qe(t)?t:e)[z]}()})(),u2=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>null})}return e})();function vu(e,n,t){let i=t?e.styles:null,r=t?e.classes:null,o=0;if(null!==n)for(let s=0;s0&&vD(e,t,o.join(" "))}}(f,W,p,i),void 0!==t&&function w2(e,n,t){const i=e.projection=[];for(let r=0;rclass e{static __NG_ELEMENT_ID__=E2})();function E2(){return bx(re(),w())}const D2=nn,vx=class extends D2{_lContainer;_hostTNode;_hostLView;constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return os(this._hostTNode,this._hostLView)}get injector(){return new pt(this._hostTNode,this._hostLView)}get parentInjector(){const n=Ad(this._hostTNode,this._hostLView);if(om(n)){const t=Ua(n,this._hostLView),i=Ha(n);return new pt(t[1].data[i+8],t)}return new pt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=yx(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=n.createEmbeddedViewImpl(t||{},o,null);return this.insertImpl(a,r,Jr(this._hostTNode,null)),a}createComponent(n,t,i,r,o){const s=n&&!function Na(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const p=t||{};a=p.index,i=p.injector,r=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}const l=s?n:new Il(ee(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const m=(s?c:this.parentInjector).get(Dt,null);m&&(o=m)}ee(l.componentType??{});const h=l.create(c,r,null,o);return this.insertImpl(h.hostView,a,Jr(this._hostTNode,null)),h}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,i){const r=n._lView;if(function lP(e){return ft(e[3])}(r)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const l=r[3],c=new vx(l,l[5],l[3]);c.detach(c.indexOf(n))}}const o=this._adjustIndex(t),s=this._lContainer;return ws(s,r,o,i),n.attachToViewContainerRef(),Ew(jg(s),o,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=yx(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=dl(this._lContainer,t);i&&(sd(jg(this._lContainer),t),ul(i[1],i))}detach(n){const t=this._adjustIndex(n,-1),i=dl(this._lContainer,t);return i&&null!=sd(jg(this._lContainer),t)?new _l(i):null}_adjustIndex(n,t=0){return n??this.length+t}};function yx(e){return e[8]}function jg(e){return e[8]||(e[8]=[])}function bx(e,n){let t;const i=n[e.index];return ft(i)?t=i:(t=RD(i,n,null,e),n[e.index]=t,ou(n,t)),wx(t,n,e,i),new vx(t,e,n)}let wx=function Ex(e,n,t,i){if(e[7])return;let r;r=8&t.type?ce(i):function x2(e,n){const t=e[z],i=t.createComment(""),r=Ht(n,e);return Kr(t,ag(t,r),i,function hV(e,n){return e.nextSibling(n)}(t,r),!1),i}(n,t),e[7]=r};class Ug{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new Ug(this.queryList)}setDirty(){this.queryList.setDirty()}}class zg{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,r=[];for(let o=0;on.trim())}(n):n}}class $g{queries;constructor(n=[]){this.queries=n}elementStart(n,t){for(let i=0;i0)i.push(s[a/2]);else{const c=o[a+1],d=n[-l];for(let u=10;u(wa(n),n.value);return t[vt]=n,t}(e),i=t[vt];return n?.equal&&(i.equal=n.equal),t.set=r=>Jf(i,r),t.update=r=>function ZF(e,n){Zb()||tw(),Jf(e,n(e.value))}(i,r),t.asReadonly=Yg.bind(t),t}function Yg(){const e=this[vt];if(void 0===e.readonlyFn){const n=()=>this();n[vt]=e,e.readonlyFn=n}return e.readonlyFn}class dr{}class Ux{}class Qg extends dr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new gx(this);constructor(n,t,i,r=!0){super(),this.ngModuleType=n,this._parent=t;const o=At(n);this._bootstrapComponents=mn(o.bootstrap),this._r3Injector=IC(n,t,[{provide:dr,useValue:this},{provide:mu,useValue:this.componentFactoryResolver},...i],dt(n),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Xg extends Ux{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new Qg(this.moduleType,n,[])}}class zx extends dr{injector;componentFactoryResolver=new gx(this);instance=null;constructor(n){super();const t=new qo([...n.providers,{provide:dr,useValue:this},{provide:mu,useValue:this.componentFactoryResolver}],n.parent||ud(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function wu(e,n,t=null){return new zx({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let q2=(()=>{class e{_injector;cachedInjectors=new Map;constructor(t){this._injector=t}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const i=Ip(0,t.type),r=i.length>0?wu([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,r)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=S({token:e,providedIn:"environment",factory:()=>new e(M(Dt))})}return e})();function it(e){return Mi(()=>{const n=Gx(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Fd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(q2).getOrCreateStandaloneInjector(t):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||zn.Emulated,styles:e.styles||he,_:null,schemas:e.schemas||null,tView:null,id:""};n.standalone&&bt("NgStandalone"),qx(t);const i=e.dependencies;return t.directiveDefs=Cu(i,!1),t.pipeDefs=Cu(i,!0),t.id=function K2(e){let n=0;const i=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(const o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function W2(e){return ee(e)||ut(e)}function Z2(e){return null!==e}function Fe(e){return Mi(()=>({type:e.type,bootstrap:e.bootstrap||he,declarations:e.declarations||he,imports:e.imports||he,exports:e.exports||he,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function $x(e,n){if(null==e)return ri;const t={};for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];let o,s,a=sr.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),n?(t[o]=a!==sr.None?[i,a]:i,n[o]=s):t[o]=i}return t}function O(e){return Mi(()=>{const n=Gx(e);return qx(n),n})}function Nt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Gx(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||ri,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||he,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:$x(e.inputs,n),outputs:$x(e.outputs),debugInfo:null}}function qx(e){e.features?.forEach(n=>n(e))}function Cu(e,n){if(!e)return null;const t=n?Et:W2;return()=>("function"==typeof e?e():e).map(i=>t(i)).filter(Z2)}function oe(e){let n=function Wx(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let r;if(jn(e))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new b(903,!1);r=n.\u0275dir}if(r){if(t){i.push(r);const s=e;s.inputs=Eu(e.inputs),s.inputTransforms=Eu(e.inputTransforms),s.declaredInputs=Eu(e.declaredInputs),s.outputs=Eu(e.outputs);const a=r.hostBindings;a&&tj(e,a);const l=r.viewQuery,c=r.contentQueries;if(l&&J2(e,l),c&&ej(e,c),Q2(e,r),uO(e.outputs,r.outputs),jn(r)&&r.data.animation){const d=e.data;d.animation=(d.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=ja(r.hostAttrs,t=ja(t,r.hostAttrs))}}(i)}function Q2(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const i=n.inputs[t];if(void 0!==i&&(e.inputs[t]=i,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;e.inputTransforms??={},e.inputTransforms[r]=n.inputTransforms[r]}}}function Eu(e){return e===ri?{}:e===he?[]:e}function J2(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function ej(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function tj(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}function qn(e){const n=e.inputConfig,t={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[3]&&(t[i]=r[3])}e.inputTransforms=t}function Du(e){return!!e_(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function e_(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Xe(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Al(e,n,t,i,r,o,s,a,l,c){const d=t+T,u=n.firstCreatePass?function dj(e,n,t,i,r,o,s,a,l){const c=n.consts,d=Xr(n,e,4,s||null,a||null);vg(n,t,d,Sn(c,l)),xd(n,d);const u=d.tView=_g(2,d,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,d),u.queries=n.queries.embeddedTView(d)),d}(d,n,e,i,r,o,s,a,l):n.data[d];Hn(u,!1);const f=Xx(n,e,u,t);Va()&&iu(n,e,f,u),Rt(f,e);const h=RD(f,e,f,u);return e[d]=h,ou(e,h),_d(u)&&pg(n,e,u),null!=l&&mg(e,u,c),u}function rt(e,n,t,i,r,o,s,a){const l=w(),c=H();return Al(l,c,e,n,t,i,r,Sn(c.consts,o),s,a),rt}let Xx=function Jx(e,n,t,i){return li(!0),n[z].createComment("")};let a0=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const f0=new C(""),Au=new C("");let s_,r_=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(t,i,r){this._ngZone=t,this.registry=i,s_||(function Kj(e){s_=e}(r),r.addToWindow(i)),this._watchAngularEvents(),t.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:()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t()},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,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(t,i,r),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}static \u0275fac=function(i){return new(i||e)(M(q),M(o_),M(Au))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),o_=(()=>{class e{_applications=new Map;registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return s_?.findTestabilityInTree(this,t,i)??null}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Rl(e){return!!e&&"function"==typeof e.then}function p0(e){return!!e&&"function"==typeof e.subscribe}const ku=new C("");let m0=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((t,i)=>{this.resolve=t,this.reject=i});appInits=g(ku,{optional:!0})??[];injector=g(De);constructor(){}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const o=xn(this.injector,r);if(Rl(o))t.push(o);else if(p0(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});t.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),a_=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>new g0})}return e})();class g0{queuedEffectCount=0;queues=new Map;schedule(n){this.enqueue(n)}enqueue(n){const t=n.zone;this.queues.has(t)||this.queues.set(t,new Set);const i=this.queues.get(t);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(const[n,t]of this.queues)null===n?this.flushQueue(t):n.run(()=>this.flushQueue(t))}flushQueue(n){for(const t of n)n.delete(t),this.queuedEffectCount--,t.run()}}const Nl=new C("");function v0(e,n){return Array.isArray(n)?n.reduce(v0,e):{...e,...n}}let rn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(o1);afterRenderManager=g(Nm);zonelessEnabled=g($a);rootEffectScheduler=g(a_);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Q;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=g(Un).hasPendingTasks.pipe(K(t=>!t));constructor(){g(Xa,{optional:!0})}whenStable(){let t;return new Promise(i=>{t=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{t.unsubscribe()})}_injector=g(Dt);get injector(){return this._injector}bootstrap(t,i){const r=t instanceof fx;if(!this._injector.get(m0).done)throw!r&&function Ji(e){const n=ee(e)||ut(e)||Et(e);return null!==n&&n.standalone}(t),new b(405,!1);let s;s=r?t:this._injector.get(mu).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function Qj(e){return e.isBoundToModule}(s)?void 0:this._injector.get(dr),c=s.create(De.NULL,[],i||s.selector,a),d=c.location.nativeElement,u=c.injector.get(f0,null);return u?.registerApplication(d),c.onDestroy(()=>{this.detachView(c.hostView),Ru(this.components,c),u?.unregisterApplication(d)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(null!==this.tracingSnapshot){const i=this.tracingSnapshot;return this.tracingSnapshot=null,void i.run(Rm.CHANGE_DETECTION,this._tick)}if(this._runningTick)throw new b(101,!1);const t=X(null);try{this._runningTick=!0,this.synchronize()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,X(t),this.afterTick.next()}};synchronize(){let t=null;this._injector.destroyed||(t=this._injector.get(gu,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let i=0;for(;0!==this.dirtyFlags&&i++<10;)this.synchronizeOnce(t)}synchronizeOnce(t){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const i=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)eH(r,o,i,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else t?.begin?.(),t?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:t})=>vd(t))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Ru(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Nl,[]).forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Ru(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new b(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ru(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function eH(e,n,t,i){(t||vd(e))&&lu(e,n,t&&!i?0:1)}function qe(e,n,t,i){const r=w();return Xe(r,In(),n)&&(H(),pi(Ee(),r,e,n,t,i)),qe}function As(e,n,t,i){return Xe(e,In(),t)?n+Z(t)+i:Y}function Fu(e,n){return e<<17|n<<2}function mr(e){return e>>17&32767}function u_(e){return 2|e}function io(e){return(131068&e)>>2}function h_(e,n){return-131069&e|n<<2}function f_(e){return 1|e}function k0(e,n,t,i){const r=e[t+1],o=null===n;let s=i?mr(r):io(r),a=!1;for(;0!==s&&(!1===a||o);){const c=e[s+1];VH(e[s],n)&&(a=!0,e[s+1]=i?f_(c):u_(c)),s=i?mr(c):io(c)}a&&(e[t+1]=i?u_(r):f_(r))}function VH(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Go(e,n)>=0}const mt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function R0(e){return e.substring(mt.key,mt.keyEnd)}function N0(e,n){const t=mt.textEnd;return t===n?-1:(n=mt.keyEnd=function UH(e,n,t){for(;n32;)n++;return n}(e,mt.key=n,t),Vs(e,n,t))}function Vs(e,n,t){for(;n=0;t=N0(n,t))cn(e,R0(n),!0)}function Wn(e,n,t,i){const r=w(),o=H(),s=Ni(2);o.firstUpdatePass&&B0(o,e,s,i),n!==Y&&Xe(r,s,n)&&H0(o,o.data[xt()],r,r[z],e,r[s+1]=function JH(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=dt(pn(e)))),e}(n,t),i,s)}function V0(e,n){return n>=e.expandoStartIndex}function B0(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[xt()],s=V0(e,t);z0(o,i)&&null===n&&!s&&(n=!1),n=function qH(e,n,t,i){const r=function Kp(e){const n=$.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=Pl(t=m_(null,e,n,t,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==r)if(t=m_(r,e,n,t,i),null===o){let l=function WH(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==io(i))return e[mr(i)]}(e,n,i);void 0!==l&&Array.isArray(l)&&(l=m_(null,e,n,l[1],i),l=Pl(l,n.attrs,i),function ZH(e,n,t,i){e[mr(t?n.classBindings:n.styleBindings)]=i}(e,n,i,l))}else o=function YH(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)):d=t,r)if(0!==l){const f=mr(e[a+1]);e[i+1]=Fu(f,a),0!==f&&(e[f+1]=h_(e[f+1],i)),e[a+1]=function FH(e,n){return 131071&e|n<<17}(e[a+1],i)}else e[i+1]=Fu(a,0),0!==a&&(e[a+1]=h_(e[a+1],i)),a=i;else e[i+1]=Fu(l,0),0===a?a=i:e[l+1]=h_(e[l+1],i),l=i;c&&(e[i+1]=u_(e[i+1])),k0(e,d,i,!0),k0(e,d,i,!1),function LH(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&Go(o,n)>=0&&(t[i+1]=f_(t[i+1]))}(n,d,e,i,o),s=Fu(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,t,s,i)}}function m_(e,n,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[r],c=Array.isArray(l),d=c?l[1]:l,u=null===d;let f=t[r+1];f===Y&&(f=u?he:void 0);let h=u?xp(f,i):d===i?f:void 0;if(c&&!Ou(h)&&(h=xp(l,i)),Ou(h)&&(a=h,s))return a;const p=e[r+1];r=s?mr(p):io(p)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=xp(l,i))}return a}function Ou(e){return void 0!==e}function z0(e,n){return!!(e.flags&(n?8:16))}function vi(e,n){bt("NgControlFlow");const t=w(),i=In(),r=t[i]!==Y?t[i]:-1,o=-1!==r?Pu(t,T+r):void 0;if(Xe(t,i,e)){const a=X(null);try{if(void 0!==o&&function Dg(e,n){const t=dl(e,n);return void 0!==t&&ul(t[1],t),t}(o,0),-1!==e){const l=T+e,c=Pu(t,l),d=function v_(e,n){return ts(e,n)}(t[1],l),u=null;ws(c,bs(t,d,n,{dehydratedView:u}),0,Jr(d,u))}}finally{X(a)}}else if(void 0!==o){const a=function LD(e,n){const t=10+n;if(t(li(!0),nu(i,r,function oC(){return $.lFrame.currentNamespace}()));function Bs(e,n,t){const i=w(),r=H(),o=e+T,s=r.firstCreatePass?function DU(e,n,t,i,r){const o=n.consts,s=Sn(o,i),a=Xr(n,e,8,"ng-container",s);return null!==s&&vu(a,s,!0),vg(n,t,a,Sn(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,t):r.data[o];Hn(s,!0);const a=Y0(r,i,s,e);return i[o]=a,Va()&&iu(r,i,a,s),Rt(a,i),_d(s)&&(pg(r,i,s),fg(r,s,i)),null!=t&&mg(i,s),Bs}function js(){let e=re();const n=H();return Wp()?Zp():(e=e.parent,Hn(e,!1)),n.firstCreatePass&&(xd(n,e),Pp(e)&&n.queries.elementEnd(e)),js}let Y0=(e,n,t,i)=>(li(!0),ig(n[z],""));function Lu(){return w()}function ro(e,n,t){const i=w();return Xe(i,In(),n)&&tn(H(),Ee(),i,e,n,i[z],t,!0),ro}const Vu="en-US";let J0=Vu;function He(e,n,t,i){const r=w(),o=H(),s=re();return function w_(e,n,t,i,r,o,s){const a=_d(i),c=e.firstCreatePass&&OD(e),d=n[8],u=FD(n);let f=!0;if(3&i.type||s){const m=Ht(i,n),_=s?s(m):m,y=u.length,v=s?I=>s(ce(I[i.index])):i.index;let E=null;if(!s&&a&&(E=function vz(e,n,t,i){const r=e.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,n,r,i.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=o,E.__ngLastListenerFn__=o,f=!1;else{o=bS(i,n,d,o);const I=t.listen(_,r,o);u.push(o,I),c&&c.push(r,v,y,y+1)}}else o=bS(i,n,d,o);const h=i.outputs;let p;if(f&&null!==h&&(p=h[r])){const m=p.length;if(m)for(let _=0;_-1?hn(e.index,n):n,5);let a=yS(n,0,i,o),l=r.__ngNextListenerFn__;for(;l;)a=yS(n,0,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function Ue(e=1){return function wP(e){return($.lFrame.contextLView=function Gw(e,n){for(;e>0;)n=n[14],e--;return n}(e,$.lFrame.contextLView))[8]}(e)}function yz(e,n){let t=null;const i=function CV(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(!(1&t))return n[t+1]}return null}(e);for(let r=0;r(li(!0),function ng(e,n){return e.createText(n)}(n[z],i));function so(e){return Tn("",e,""),so}function Tn(e,n,t){const i=w(),r=As(i,e,n,t);return r!==Y&&function Pi(e,n,t){const i=Oa(n,e);!function rD(e,n,t){e.setValue(n,t)}(e[z],i,t)}(i,xt(),r),Tn}function x_(e,n,t,i,r){if(e=j(e),Array.isArray(e))for(let o=0;o>20;if(Pr(e)||!e.multi){const h=new Ba(c,r,x),p=I_(l,n,r?d:d+f,u);-1===p?(lm(Td(a,s),o,l),S_(o,e,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(h),s.push(h)):(t[p]=h,s[p]=h)}else{const h=I_(l,n,d+f,u),p=I_(l,n,d,d+f),_=p>=0&&t[p];if(r&&!_||!r&&!(h>=0&&t[h])){lm(Td(a,s),o,l);const y=function Uz(e,n,t,i,r){const o=new Ba(e,t,x);return o.multi=[],o.index=n,o.componentProviders=0,QS(o,r,i&&!t),o}(r?Hz:jz,t.length,r,i,c);!r&&_&&(t[p].providerFactory=y),S_(o,e,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(y),s.push(y)}else S_(o,e,h>-1?h:p,QS(t[r?p:h],c,!r&&i));!r&&i&&_&&t[p].componentProviders++}}}function S_(e,n,t,i){const r=Pr(n),o=function LO(e){return!!e.useClass}(n);if(r||o){const l=(o?j(n.useClass):n).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const d=c.indexOf(t);-1===d?c.push(t,[i,l]):c[d+1].push(i,l)}else c.push(t,l)}}}function QS(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function I_(e,n,t,i){for(let r=t;r{t.providersResolver=(i,r)=>function Bz(e,n,t){const i=H();if(i.firstCreatePass){const r=jn(e);x_(t,i.data,i.blueprint,r,!0),x_(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}function JS(e,n,t,i,r,o){const s=n+t;return Xe(e,s,r)?function mi(e,n,t){return e[n]=t}(e,s+1,o?i.call(o,r):i(r)):function Ul(e,n){const t=e[n];return t===Y?void 0:t}(e,s+1)}function $u(e,n){const t=H();let i;const r=e+T;t.firstCreatePass?(i=function n$(e,n){if(n)for(let t=n.length-1;t>=0;t--){const i=n[t];if(e===i.name)return i}}(n,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks??=[]).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=Or(i.type)),a=Xt(x);try{const l=Md(!1),c=o();return Md(l),function D_(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,w(),r,c),c}finally{Xt(a)}}function Gu(e,n,t){const i=e+T,r=w(),o=function jr(e,n){return e[n]}(r,i);return function zl(e,n){return e[1].data[n].pure}(r,i)?JS(r,function Ut(){const e=$.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}(),n,o.transform,t,o):o.transform(t)}class F${ngModuleFactory;componentFactories;constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let yI=(()=>{class e{compileModuleSync(t){return new Xg(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=mn(At(t).declarations).reduce((s,a)=>{const l=ee(a);return l&&s.push(new Il(l)),s},[]);return new F$(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),L$=(()=>{class e{zone=g(q);changeDetectionScheduler=g(Fi);applicationRef=g(rn);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function F_({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new q({...O_(),scheduleInRootZone:t}),[{provide:q,useFactory:e},{provide:Dn,multi:!0,useFactory:()=>{const i=g(L$,{optional:!0});return()=>i.initialize()}},{provide:Dn,multi:!0,useFactory:()=>{const i=g(B$);return()=>{i.initialize()}}},!0===n?{provide:AC,useValue:!0}:[],{provide:um,useValue:t??MC}]}function O_(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let B$=(()=>{class e{subscription=new Ze;initialized=!1;zone=g(q);pendingTasks=g(Un);initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{q.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Gl=(()=>{class e{appRef=g(rn);taskService=g(Un);ngZone=g(q);zonelessEnabled=g($a);tracing=g(Xa,{optional:!0});disableScheduling=g(AC,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ze;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Nd):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(um,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){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 mm||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&5===t)return;let i=!1;switch(t){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,i=!0;break;case 13:this.appRef.dirtyFlags|=16,i=!0;break;case 12:i=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;const r=this.useMicrotaskScheduler?RC:kC;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(t){return!(this.disableScheduling&&!t||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Nd+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(t),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,RC(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Bi=new C("",{providedIn:"root",factory:()=>g(Bi,ne.Optional|ne.SkipSelf)||function j$(){return typeof $localize<"u"&&$localize.locale||Vu}()}),Wu=new C("");function Zu(e){return!e.moduleRef}let xI=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(t){this._injector=t}bootstrapModuleFactory(t,i){const r=i?.scheduleInRootZone,s=i?.ignoreChangesOutsideZone,a=[F_({ngZoneFactory:()=>function r1(e="zone.js",n){return"noop"===e?new mm:"zone.js"===e?new q(n):e}(i?.ngZone,{...O_({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}),scheduleInRootZone:r}),ignoreChangesOutsideZone:s}),{provide:Fi,useExisting:Gl}],l=function G2(e,n,t){return new Qg(e,n,t,!1)}(t.moduleType,this.injector,a);return function DI(e){const n=Zu(e)?e.r3Injector:e.moduleRef.injector,t=n.get(q);return t.run(()=>{Zu(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const i=n.get(fn,null);let r;if(t.runOutsideAngular(()=>{r=t.onError.subscribe({next:o=>{i.handleError(o)}})}),Zu(e)){const o=()=>n.destroy(),s=e.platformInjector.get(Wu);s.add(o),n.onDestroy(()=>{r.unsubscribe(),s.delete(o)})}else{const o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Wu);s.add(o),e.moduleRef.onDestroy(()=>{Ru(e.allPlatformModules,e.moduleRef),r.unsubscribe(),s.delete(o)})}return function Jj(e,n,t){try{const i=t();return Rl(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(i,t,()=>{const o=n.get(m0);return o.runInitializers(),o.donePromise.then(()=>{if(function NU(e){"string"==typeof e&&(J0=e.toLowerCase().replace(/_/g,"-"))}(n.get(Bi,Vu)||Vu),Zu(e)){const a=n.get(rn);return void 0!==e.rootComponent&&a.bootstrap(e.rootComponent),a}return function q$(e,n){const t=e.injector.get(rn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(i=>t.bootstrap(i));else{if(!e.instance.ngDoBootstrap)throw new b(-403,!1);e.instance.ngDoBootstrap(t)}n.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({moduleRef:l,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(t,i=[]){const r=v0({},i);return function P$(e,n,t){const i=new Xg(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(Wu,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(i){return new(i||e)(M(De))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),gr=null;const SI=new C("");function II(e,n,t=[]){const i=`Platform: ${n}`,r=new C(i);return(o=[])=>{let s=L_();if(!s||s.injector.get(SI,!1)){const a=[...t,...o,{provide:r,useValue:!0}];e?e(a):function W$(e){if(gr&&!gr.get(SI,!1))throw new b(400,!1);(function _0(){!function qF(e){ew=e}(()=>{throw new b(600,!1)})})(),gr=e;const n=e.get(xI);(function TI(e){const n=e.get(wm,null);xn(e,()=>{n?.forEach(t=>t())})})(e)}(function MI(e=[],n){return De.create({name:n,providers:[{provide:Ap,useValue:"platform"},{provide:Wu,useValue:new Set([()=>gr=null])},...e]})}(a,i))}return function Z$(){const n=L_();if(!n)throw new b(401,!1);return n}()}}function L_(){return gr?.get(xI)??null}let _r=(()=>class e{static __NG_ELEMENT_ID__=K$})();function K$(e){return function Q$(e,n,t){if(nr(e)&&!t){const i=hn(e.index,n);return new _l(i,i)}return 175&e.type?new _l(n[15],n):null}(re(),w(),!(16&~e))}class FI{constructor(){}supports(n){return Du(n)}create(n){return new n3(n)}}const t3=(e,n)=>n;class n3{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||t3}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const s=!i||t&&t.currentIndex{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,r)):n=this._addAfter(new i3(t,i),o,r),n}_verifyReinsertion(n,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new OI),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new OI),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class i3{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,t){this.item=n,this.trackById=t}}class r3{_head=null;_tail=null;add(n){null===this._head?(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,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class OI{map=new Map;put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new r3,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function PI(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const i=n._prev;return t._next=n,t._prev=i,n._prev=t,i&&(i._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,t);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new s3(n);return this._records.set(n,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(i=>t(n[i],i))}}class s3{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n}}function VI(){return new U_([new FI])}let U_=(()=>{class e{factories;static \u0275prov=S({token:e,providedIn:"root",factory:VI});constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||VI()),deps:[[e,new ka,new Fr]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new b(901,!1)}}return e})();function BI(){return new Qu([new LI])}let Qu=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:BI});factories;constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||BI()),deps:[[e,new ka,new Fr]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(i)return i;throw new b(901,!1)}}return e})();const c3=II(null,"core",[]);let d3=(()=>{class e{constructor(t){}static \u0275fac=function(i){return new(i||e)(M(rn))};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})();function Ae(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function uM(e,n=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?n:Number(e)}function Lt(e){const n=X(null);try{return e()}finally{X(n)}}let pM=(()=>class e{view;node;constructor(t,i){this.view=t,this.node=i}static __NG_ELEMENT_ID__=Y3})();function Y3(){return new pM(w(),re())}class t8{[vt];constructor(n){this[vt]=n}destroy(){this[vt].destroy()}}const mM={...Po,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:Ga,run(){if(this.dirty=!1,this.hasRun&&!Ea(this))return;this.hasRun=!0;const e=i=>(this.cleanupFns??=[]).push(i),n=Lo(this),t=Ed(!1);try{this.maybeCleanup(),this.fn(e)}finally{Ed(t),Ca(this,n)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}},n8={...mM,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){Da(this),this.onDestroyFn(),this.maybeCleanup()}},i8={...mM,consumerMarkedDirty(){this.view[2]|=8192,Pa(this.view),this.notifier.notify(14)},destroy(){Da(this),this.onDestroyFn(),this.maybeCleanup(),this.view[23]?.delete(this)}};function _M(e,n){const t=ee(e),i=n.elementInjector||ud();return new Il(t).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}let vM=null;function vr(){return vM}class m8{}const ae=new C("");let Y_=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>g(_8),providedIn:"platform"})}return e})();const g8=new C("");let _8=(()=>{class e extends Y_{_location;_history;_doc=g(ae);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vr().getBaseHref(this._doc)}onPopState(t){const i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}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(t){this._location.pathname=t}pushState(t,i,r){this._history.pushState(t,i,r)}replaceState(t,i,r){this._history.replaceState(t,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function K_(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function yM(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function ji(e){return e&&"?"!==e[0]?"?"+e:e}let co=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>g(wM),providedIn:"root"})}return e})();const bM=new C("");let wM=(()=>{class e extends co{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,i){super(),this._platformLocation=t,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??g(ae).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return K_(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+ji(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+ji(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+ji(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(i){return new(i||e)(M(Y_),M(bM,8))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),v8=(()=>{class e extends co{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,i){super(),this._platformLocation=t,null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=K_(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){let s=this.prepareExternalUrl(r+ji(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){let s=this.prepareExternalUrl(r+ji(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(i){return new(i||e)(M(Y_),M(bM,8))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Gs=(()=>{class e{_subject=new Q;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function w8(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(yM(CM(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+ji(i))}normalize(t){return e.stripTrailingSlash(function b8(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,CM(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ji(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ji(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=ji;static joinWithSlash=K_;static stripTrailingSlash=yM;static \u0275fac=function(i){return new(i||e)(M(co))};static \u0275prov=S({token:e,factory:()=>function y8(){return new Gs(M(co))}(),providedIn:"root"})}return e})();function CM(e){return e.replace(/\/index.html$/,"")}function kM(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const sv=/\s+/,RM=[];let NM=(()=>{class e{_ngEl;_renderer;initialClasses=RM;rawClass;stateMap=new Map;constructor(t,i){this._ngEl=t,this._renderer=i}set klass(t){this.initialClasses=null!=t?t.trim().split(sv):RM}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(sv):t}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const i of t)this._updateState(i,!0);else if(null!=t)for(const i of Object.keys(t))this._updateState(i,!!t[i]);this._applyStateDiff()}_updateState(t,i){const r=this.stateMap.get(t);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(t,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const i=t[0],r=t[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(t,i){(t=t.trim()).length>0&&t.split(sv).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||e)(x(Ce),x(Vi))};static \u0275dir=O({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();class s4{$implicit;ngForOf;index;count;constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let OM=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new s4(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),PM(a,r)}});for(let r=0,o=i.length;r{PM(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}static \u0275fac=function(i){return new(i||e)(x(nn),x(Li),x(U_))};static \u0275dir=O({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function PM(e,n){e.context.$implicit=n.item}let LM=(()=>{class e{_viewContainer;_context=new a4;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,i){this._viewContainer=t,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){VM("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){VM("ngIfElse",t),this._elseTemplateRef=t,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,i){return!0}static \u0275fac=function(i){return new(i||e)(x(nn),x(Li))};static \u0275dir=O({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})();class a4{$implicit=null;ngIf=null}function VM(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${dt(n)}'.`)}class d4{createSubscription(n,t){return Lt(()=>n.subscribe({next:t,error:i=>{throw i}}))}dispose(n){Lt(()=>n.unsubscribe())}}class u4{createSubscription(n,t){return n.then(t,i=>{throw i})}dispose(n){}}const h4=new u4,f4=new d4;let jM=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Rl(t))return h4;if(p0(t))return f4;throw function Qn(e,n){return new b(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||e)(x(_r,16))};static \u0275pipe=Nt({name:"async",type:e,pure:!1})}return e})(),HM=(()=>{class e{differs;constructor(t){this.differs=t}differ;keyValues=[];compareFn=UM;transform(t,i=UM){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ??=this.differs.find(t).create();const r=this.differ.diff(t),o=i!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(s=>{this.keyValues.push(function S4(e,n){return{key:e,value:n}}(s.key,s.currentValue))})),(r||o)&&(i&&this.keyValues.sort(i),this.compareFn=i),this.keyValues}static \u0275fac=function(i){return new(i||e)(x(Qu,16))};static \u0275pipe=Nt({name:"keyvalue",type:e,pure:!1})}return e})();function UM(e,n){const t=e.key,i=n.key;if(t===i)return 0;if(void 0===t)return 1;if(void 0===i)return-1;if(null===t)return 1;if(null===i)return-1;if("string"==typeof t&&"string"==typeof i)return t{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})();const $M="browser";function yr(e){return e===$M}function GM(e){return"server"===e}let k4=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>yr(g(ui))?new R4(g(ae),window):new F4})}return e})();class R4{document;window;offset=()=>[0,0];constructor(n,t){this.document=n,this.window=t}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const t=function N4(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}}class F4{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class qM{}class lG extends m8{supportsDOMEvents=!0}class pv extends lG{static makeCurrent(){!function p8(e){vM??=e}(new pv)}onAndCancel(n,t,i){return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return(t=t||this.getDefaultDocument()).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,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function cG(){return Xl=Xl||document.querySelector("base"),Xl?Xl.getAttribute("href"):null}();return null==t?null:function dG(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){Xl=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return kM(document.cookie,n)}}let Xl=null,hG=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const mv=new C("");let iT=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(t,i){this._zone=i,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(o=>o.supports(t)),!i)throw new b(5101,!1);return this._eventNameToPlugin.set(t,i),i}static \u0275fac=function(i){return new(i||e)(M(mv),M(q))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();class rT{_doc;constructor(n){this._doc=n}manager}const gv="ng-app-id";function oT(e){for(const n of e)n.remove()}function sT(e,n){const t=n.createElement("style");return t.textContent=e,t}function _v(e,n){const t=n.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t}let aT=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(t,i,r,o={}){this.doc=t,this.appId=i,this.nonce=r,this.isServer=GM(o),function fG(e,n,t){const i=e.head?.querySelectorAll(`style[${gv}="${n}"]`);if(i)for(const r of i)r.textContent&&(r.removeAttribute(gv),t.set(r.textContent,{usage:0,elements:[r]}))}(t,i,this.inline),this.hosts.add(t.head)}addStyles(t,i){for(const r of t)this.addUsage(r,this.inline,sT);i?.forEach(r=>this.addUsage(r,this.external,_v))}removeStyles(t,i){for(const r of t)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(t,i,r){const o=i.get(t);o?o.usage++:i.set(t,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,r(t,this.doc)))})}removeUsage(t,i){const r=i.get(t);r&&(r.usage--,r.usage<=0&&(oT(r.elements),i.delete(t)))}ngOnDestroy(){for(const[,{elements:t}]of[...this.inline,...this.external])oT(t);this.hosts.clear()}addHost(t){this.hosts.add(t);for(const[i,{elements:r}]of this.inline)r.push(this.addElement(t,sT(i,this.doc)));for(const[i,{elements:r}]of this.external)r.push(this.addElement(t,_v(i,this.doc)))}removeHost(t){this.hosts.delete(t)}addElement(t,i){return this.nonce&&i.setAttribute("nonce",this.nonce),this.isServer&&i.setAttribute(gv,this.appId),t.appendChild(i)}static \u0275fac=function(i){return new(i||e)(M(ae),M(rr),M(Cm,8),M(ui))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const vv={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"},yv=/%COMP%/g,_G=new C("",{providedIn:"root",factory:()=>!0});function cT(e,n){return n.map(t=>t.replace(yv,e))}let bv=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(t,i,r,o,s,a,l,c=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.platformIsServer=GM(a),this.defaultRenderer=new wv(t,s,l,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===zn.ShadowDom&&(i={...i,encapsulation:zn.Emulated});const r=this.getOrCreateRenderer(t,i);return r instanceof uT?r.applyToHost(t):r instanceof Cv&&r.applyStyles(),r}getOrCreateRenderer(t,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(i.encapsulation){case zn.Emulated:o=new uT(l,c,i,this.appId,d,s,a,u);break;case zn.ShadowDom:return new wG(l,c,t,i,s,a,this.nonce,u);default:o=new Cv(l,c,i,d,s,a,u)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(i){return new(i||e)(M(iT),M(aT),M(rr),M(_G),M(ae),M(ui),M(q),M(Cm))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();class wv{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,t,i,r){this.eventManager=n,this.doc=t,this.ngZone=i,this.platformIsServer=r}destroy(){}destroyNode=null;createElement(n,t){return t?this.doc.createElementNS(vv[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(dT(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(dT(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){t.remove()}selectRootElement(n,t){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new b(-5104,!1);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const o=vv[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=vv[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(ar.DashCase|ar.Important)?n.style.setProperty(t,i,r&ar.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&ar.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){null!=n&&(n[t]=i)}setValue(n,t){n.nodeValue=t}listen(n,t,i){if("string"==typeof n&&!(n=vr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(i))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function dT(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class wG extends wv{sharedStylesHost;hostEl;shadowRoot;constructor(n,t,i,r,o,s,a,l){super(n,o,s,l),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=cT(r.id,r.styles);for(const u of c){const f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=u,this.shadowRoot.appendChild(f)}const d=r.getExternalStyles?.();if(d)for(const u of d){const f=_v(u,o);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Cv extends wv{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,t,i,r,o,s,a,l){super(n,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=l?cT(l,i.styles):i.styles,this.styleUrls=i.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class uT extends Cv{contentAttr;hostAttr;constructor(n,t,i,r,o,s,a,l){const c=r+"-"+i.id;super(n,t,i,o,s,a,l,c),this.contentAttr=function vG(e){return"_ngcontent-%COMP%".replace(yv,e)}(c),this.hostAttr=function yG(e){return"_nghost-%COMP%".replace(yv,e)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}let CG=(()=>{class e extends rT{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}static \u0275fac=function(i){return new(i||e)(M(ae))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const hT=["alt","control","meta","shift"],EG={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},DG={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let xG=(()=>{class e extends rT{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const o=e.parseEventName(i),s=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vr().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),hT.forEach(c=>{const d=i.indexOf(c);d>-1&&(i.splice(d,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let r=EG[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),hT.forEach(s=>{s!==r&&(0,DG[s])(t)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{e.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static \u0275fac=function(i){return new(i||e)(M(ae))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const TG=II(c3,"browser",[{provide:ui,useValue:$M},{provide:wm,useValue:function SG(){pv.makeCurrent()},multi:!0},{provide:ae,useFactory:function MG(){return function A1(e){bm=e}(document),document},deps:[]}]),AG=new C(""),mT=[{provide:Au,useClass:class uG{addToWindow(n){Le.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new b(5103,!1);return o},Le.getAllAngularTestabilities=()=>n.getAllTestabilities(),Le.getAllAngularRootElements=()=>n.getAllRootElements(),Le.frameworkStabilizers||(Le.frameworkStabilizers=[]),Le.frameworkStabilizers.push(i=>{const r=Le.getAllAngularTestabilities();let o=r.length;const s=function(){o--,0==o&&i()};r.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(n,t,i){return null==t?null:n.getTestability(t)??(i?vr().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:f0,useClass:r_,deps:[q,o_,Au]},{provide:r_,useClass:r_,deps:[q,o_,Au]}],gT=[{provide:Ap,useValue:"root"},{provide:fn,useFactory:function IG(){return new fn},deps:[]},{provide:mv,useClass:CG,multi:!0,deps:[ae,q,ui]},{provide:mv,useClass:xG,multi:!0,deps:[ae]},bv,aT,iT,{provide:gu,useExisting:bv},{provide:qM,useClass:hG,deps:[]},[]];let _T=(()=>{class e{constructor(t){}static \u0275fac=function(i){return new(i||e)(M(AG,12))};static \u0275mod=Fe({type:e});static \u0275inj=Me({providers:[...gT,...mT],imports:[zM,d3]})}return e})(),kG=(()=>{class e{_doc;constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static \u0275fac=function(i){return new(i||e)(M(ae))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Jl=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:function(i){let r=null;return r=i?new(i||e):M(OG),r},providedIn:"root"})}return e})(),OG=(()=>{class e extends Jl{_doc;constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case wt.NONE:return i;case wt.HTML:return fi(i,"HTML")?pn(i):WE(this._doc,String(i)).toString();case wt.STYLE:return fi(i,"Style")?pn(i):i;case wt.SCRIPT:if(fi(i,"Script"))return pn(i);throw new b(5200,!1);case wt.URL:return fi(i,"URL")?pn(i):Xd(String(i));case wt.RESOURCE_URL:if(fi(i,"ResourceURL"))return pn(i);throw new b(5201,!1);default:throw new b(5202,!1)}}bypassSecurityTrustHtml(t){return function DL(e){return new vL(e)}(t)}bypassSecurityTrustStyle(t){return function xL(e){return new yL(e)}(t)}bypassSecurityTrustScript(t){return function SL(e){return new bL(e)}(t)}bypassSecurityTrustUrl(t){return function IL(e){return new wL(e)}(t)}bypassSecurityTrustResourceUrl(t){return function ML(e){return new CL(e)}(t)}static \u0275fac=function(i){return new(i||e)(M(ae))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wr(e){return this instanceof wr?(this.v=e,this):new wr(e)}function ET(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function Iv(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Tv=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function DT(e){return ue(e?.then)}function xT(e){return ue(e[cp])}function ST(e){return Symbol.asyncIterator&&ue(e?.[Symbol.asyncIterator])}function IT(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const MT=function l5(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function TT(e){return ue(e?.[MT])}function AT(e){return function CT(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(h){return function(p){return Promise.resolve(p).then(h,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(h,p){i[h]&&(r[h]=function(m){return new Promise(function(_,y){o.push([h,m,_,y])>1||l(h,m)})},p&&(r[h]=p(r[h])))}function l(h,p){try{!function c(h){h.value instanceof wr?Promise.resolve(h.value.v).then(d,u):f(o[0][2],h)}(i[h](p))}catch(m){f(o[0][3],m)}}function d(h){l("next",h)}function u(h){l("throw",h)}function f(h,p){h(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield wr(t.read());if(r)return yield wr(void 0);yield yield wr(i)}}finally{t.releaseLock()}})}function kT(e){return ue(e?.getReader)}function Wt(e){if(e instanceof Be)return e;if(null!=e){if(xT(e))return function c5(e){return new Be(n=>{const t=e[cp]();if(ue(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Tv(e))return function d5(e){return new Be(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,ow)})}(e);if(ST(e))return RT(e);if(TT(e))return function h5(e){return new Be(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(kT(e))return function f5(e){return RT(AT(e))}(e)}throw IT(e)}function RT(e){return new Be(n=>{(function p5(e,n){var t,i,r,o;return function bT(e,n,t,i){return new(t||(t=Promise))(function(o,s){function a(d){try{c(i.next(d))}catch(u){s(u)}}function l(d){try{c(i.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):function r(o){return o instanceof t?o:new t(function(s){s(o)})}(d.value).then(a,l)}c((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=ET(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function zi(e,n,t,i=0,r=!1){const o=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!r)return o}function NT(e,n=0){return tt((t,i)=>{t.subscribe(ze(i,r=>zi(i,e,()=>i.next(r),n),()=>zi(i,e,()=>i.complete(),n),r=>zi(i,e,()=>i.error(r),n)))})}function FT(e,n=0){return tt((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function OT(e,n){if(!e)throw new Error("Iterable cannot be null");return new Be(t=>{zi(t,n,()=>{const i=e[Symbol.asyncIterator]();zi(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function lt(e,n){return n?function b5(e,n){if(null!=e){if(xT(e))return function m5(e,n){return Wt(e).pipe(FT(n),NT(n))}(e,n);if(Tv(e))return function _5(e,n){return new Be(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(DT(e))return function g5(e,n){return Wt(e).pipe(FT(n),NT(n))}(e,n);if(ST(e))return OT(e,n);if(TT(e))return function v5(e,n){return new Be(t=>{let i;return zi(t,n,()=>{i=e[MT](),zi(t,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void t.error(s)}o?t.complete():t.next(r)},0,!0)}),()=>ue(i?.return)&&i.return()})}(e,n);if(kT(e))return function y5(e,n){return OT(AT(e),n)}(e,n)}throw IT(e)}(e,n):Wt(e)}function PT(e){return e&&ue(e.schedule)}function Av(e){return e[e.length-1]}function LT(e){return ue(Av(e))?e.pop():void 0}function tc(e){return PT(Av(e))?e.pop():void 0}function F(...e){return lt(e,tc(e))}const{isArray:C5}=Array,{getPrototypeOf:E5,prototype:D5,keys:x5}=Object;function VT(e){if(1===e.length){const n=e[0];if(C5(n))return{args:n,keys:null};if(function S5(e){return e&&"object"==typeof e&&E5(e)===D5}(n)){const t=x5(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:I5}=Array;function kv(e){return K(n=>function M5(e,n){return I5(n)?e(...n):e(n)}(e,n))}function BT(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}function bh(...e){const n=tc(e),t=LT(e),{args:i,keys:r}=VT(e);if(0===i.length)return lt([],n);const o=new Be(function T5(e,n,t=Ki){return i=>{jT(n,()=>{const{length:r}=e,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=lt(e[l],n);let d=!1;c.subscribe(ze(i,u=>{o[l]=u,d||(d=!0,a--),a||i.next(t(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>BT(r,s):Ki));return t?o.pipe(kv(t)):o}function jT(e,n,t){e?zi(t,e,n):n()}const wh=np(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Tt(e,n,t=1/0){return ue(n)?Tt((i,r)=>K((o,s)=>n(i,o,r,s))(Wt(e(i,r))),t):("number"==typeof n&&(t=n),tt((i,r)=>function A5(e,n,t,i,r,o,s,a){const l=[];let c=0,d=0,u=!1;const f=()=>{u&&!l.length&&!c&&n.complete()},h=m=>c{o&&n.next(m),c++;let _=!1;Wt(t(m,d++)).subscribe(ze(n,y=>{r?.(y),o?h(y):n.next(y)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&cp(y)):p(y)}f()}catch(y){n.error(y)}}))};return e.subscribe(ze(n,h,()=>{u=!0,f()})),()=>{a?.()}}(i,r,e,t)))}function Zs(e=1/0){return Tt(Ki,e)}function Ch(...e){return function k5(){return Zs(1)}()(lt(e,tc(e)))}function HT(e){return new Be(n=>{Wt(e()).subscribe(n)})}function nc(e,n){const t=ue(e)?e:()=>e,i=r=>r.error(t());return new Be(n?r=>n.schedule(i,0,r):i)}const Xn=new Be(e=>e.complete());function Rv(){return tt((e,n)=>{let t=null;e._refCount++;const i=ze(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class UT extends Be{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,cw(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Ze;const t=this.getSubject();n.add(this.source.subscribe(ze(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Ze.EMPTY)}return n}refCount(){return Rv()(this)}}function vn(e,n){return tt((t,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();t.subscribe(ze(i,l=>{r?.unsubscribe();let c=0;const d=o++;Wt(e(l,d)).subscribe(r=ze(i,u=>i.next(n?n(l,u,d,c++):u),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function yi(e){return e<=0?()=>Xn:tt((n,t)=>{let i=0;n.subscribe(ze(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function uo(...e){const n=tc(e);return tt((t,i)=>{(n?Ch(e,t,n):Ch(e,t)).subscribe(i)})}function yn(e,n){return tt((t,i)=>{let r=0;t.subscribe(ze(i,o=>e.call(n,o,r++)&&i.next(o)))})}function Eh(e){return tt((n,t)=>{let i=!1;n.subscribe(ze(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function zT(e=N5){return tt((n,t)=>{let i=!1;n.subscribe(ze(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function N5(){return new wh}function Cr(e,n){const t=arguments.length>=2;return i=>i.pipe(e?yn((r,o)=>e(r,o,i)):Ki,yi(1),t?Eh(n):zT(()=>new wh))}function Ys(e,n){return ue(n)?Tt(e,n,1):Tt(e,1)}function _t(e,n,t){const i=ue(e)||n||t?{next:e,error:n,complete:t}:e;return i?tt((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(ze(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):Ki}function ho(e){return tt((n,t)=>{let o,i=null,r=!1;i=n.subscribe(ze(t,void 0,void 0,s=>{o=Wt(e(s,ho(e)(n))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function Nv(e){return e<=0?()=>Xn:tt((n,t)=>{let i=[];n.subscribe(ze(t,r=>{i.push(r),e{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function $T(e){return K(()=>e)}function Ks(e){return tt((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function Je(e){return tt((n,t)=>{Wt(e).subscribe(ze(t,()=>t.complete(),rp)),!t.closed&&n.subscribe(t)})}const te="primary",ic=Symbol("RouteTitle");class L5{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Qs(e){return new L5(e)}function V5(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return e===n}function qT(e){return e.length>0?e[e.length-1]:null}function Er(e){return function Ev(e){return!!e&&(e instanceof Be||ue(e.lift)&&ue(e.subscribe))}(e)?e:Rl(e)?lt(Promise.resolve(e)):F(e)}const j5={exact:function YT(e,n,t){if(!po(e.segments,n.segments)||!Dh(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!YT(e.children[i],n.children[i],t))return!1;return!0},subset:KT},WT={exact:function H5(e,n){return bi(e,n)},subset:function U5(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>GT(e[t],n[t]))},ignored:()=>!0};function ZT(e,n,t){return j5[t.paths](e.root,n.root,t.matrixParams)&&WT[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function KT(e,n,t){return QT(e,n,n.segments,t)}function QT(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!po(r,t)||n.hasChildren()||!Dh(r,t,i))}if(e.segments.length===t.length){if(!po(e.segments,t)||!Dh(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!KT(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(po(e.segments,r)&&Dh(e.segments,r,i)&&e.children[te])&&QT(e.children[te],n,o,i)}}function Dh(e,n,t){return n.every((i,r)=>WT[t](e[r].parameters,i.parameters))}class fo{root;queryParams;fragment;_queryParamMap;constructor(n=new xe([],{}),t={},i=null){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Qs(this.queryParams),this._queryParamMap}toString(){return G5.serialize(this)}}class xe{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Sh(this)}}class rc{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Qs(this.parameters),this._parameterMap}toString(){return eA(this)}}function po(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let Xs=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>new xh,providedIn:"root"})}return e})();class xh{parse(n){const t=new nq(n);return new fo(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${oc(n.root,!0)}`,i=function Z5(e){const n=Object.entries(e).map(([t,i])=>Array.isArray(i)?i.map(r=>`${Ih(t)}=${Ih(r)}`).join("&"):`${Ih(t)}=${Ih(i)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function q5(e){return encodeURI(e)}(n.fragment)}`:""}`}}const G5=new xh;function Sh(e){return e.segments.map(n=>eA(n)).join("/")}function oc(e,n){if(!e.hasChildren())return Sh(e);if(n){const t=e.children[te]?oc(e.children[te],!1):"",i=[];return Object.entries(e.children).forEach(([r,o])=>{r!==te&&i.push(`${r}:${oc(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function $5(e,n){let t=[];return Object.entries(e.children).forEach(([i,r])=>{i===te&&(t=t.concat(n(r,i)))}),Object.entries(e.children).forEach(([i,r])=>{i!==te&&(t=t.concat(n(r,i)))}),t}(e,(i,r)=>r===te?[oc(e.children[te],!1)]:[`${r}:${oc(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[te]?`${Sh(e)}/${t[0]}`:`${Sh(e)}/(${t.join("//")})`}}function XT(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ih(e){return XT(e).replace(/%3B/gi,";")}function Ov(e){return XT(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mh(e){return decodeURIComponent(e)}function JT(e){return Mh(e.replace(/\+/g,"%20"))}function eA(e){return`${Ov(e.path)}${function W5(e){return Object.entries(e).map(([n,t])=>`;${Ov(n)}=${Ov(t)}`).join("")}(e.parameters)}`}const Y5=/^[^\/()?;#]+/;function Pv(e){const n=e.match(Y5);return n?n[0]:""}const K5=/^[^\/()?;=#]+/,X5=/^[^=?&#]+/,eq=/^[^&#]+/;class nq{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new xe([],{}):new xe([],this.parseChildren())}parseQueryParams(){const 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("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[te]=new xe(n,t)),i}parseSegment(){const n=Pv(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new rc(Mh(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function Q5(e){const n=e.match(K5);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=Pv(this.remaining);r&&(i=r,this.capture(i))}n[Mh(t)]=Mh(i)}parseQueryParam(n){const t=function J5(e){const n=e.match(X5);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function tq(e){const n=e.match(eq);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=JT(t),o=JT(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){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Pv(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new b(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=te);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[te]:new xe([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new b(4011,!1)}}function tA(e){return e.segments.length>0?new xe([],{[te]:e}):e}function nA(e){const n={};for(const[i,r]of Object.entries(e.children)){const o=nA(r);if(i===te&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function iq(e){if(1===e.numberOfChildren&&e.children[te]){const n=e.children[te];return new xe(e.segments.concat(n.segments),n.children)}return e}(new xe(e.segments,n))}function mo(e){return e instanceof fo}function iA(e){let n;const r=tA(function t(o){const s={};for(const l of o.children){const c=t(l);s[l.outlet]=c}const a=new xe(o.url,s);return o===e&&(n=a),a}(e.root));return n??r}function rA(e,n,t,i){let r=e;for(;r.parent;)r=r.parent;if(0===n.length)return Lv(r,r,r,t,i);const o=function oq(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new sA(!0,0,e);let n=0,t=!1;const i=e.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new sA(t,n,i)}(n);if(o.toRoot())return Lv(r,r,new xe([],{}),t,i);const s=function sq(e,n,t){if(e.isAbsolute)return new Ah(n,!0,0);if(!t)return new Ah(n,!1,NaN);if(null===t.parent)return new Ah(t,!0,0);const i=Th(e.commands[0])?0:1;return function aq(e,n,t){let i=e,r=n,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new b(4005,!1);r=i.segments.length}return new Ah(i,!1,r-o)}(t,t.segments.length-1+i,e.numberOfDoubleDots)}(o,r,e),a=s.processChildren?ac(s.segmentGroup,s.index,o.commands):aA(s.segmentGroup,s.index,o.commands);return Lv(r,s.segmentGroup,a,t,i)}function Th(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function sc(e){return"object"==typeof e&&null!=e&&e.outlets}function Lv(e,n,t,i,r){let s,o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`}),s=e===n?t:oA(e,n,t);const a=tA(nA(s));return new fo(a,o,r)}function oA(e,n,t){const i={};return Object.entries(e.children).forEach(([r,o])=>{i[r]=o===n?t:oA(o,n,t)}),new xe(e.segments,i)}class sA{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&Th(i[0]))throw new b(4003,!1);const r=i.find(sc);if(r&&r!==qT(i))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ah{segmentGroup;processChildren;index;constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function aA(e,n,t){if(e??=new xe([],{}),0===e.segments.length&&e.hasChildren())return ac(e,n,t);const i=function cq(e,n,t){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=t.length)return o;const s=e.segments[r],a=t[i];if(sc(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!cA(l,c,s))return o;i+=2}else{if(!cA(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,n,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndexo!==te)&&e.children[te]&&1===e.numberOfChildren&&0===e.children[te].segments.length){const o=ac(e.children[te],n,t);return new xe(e.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=aA(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===i[o]&&(r[o]=s)}),new xe(e.segments,r)}}function Vv(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r{"string"==typeof i&&(i=[i]),null!==i&&(n[t]=Vv(new xe([],{}),0,i))}),n}function lA(e){const n={};return Object.entries(e).forEach(([t,i])=>n[t]=`${i}`),n}function cA(e,n,t){return e==t.path&&bi(n,t.parameters)}const lc="imperative";var le=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(le||{});class wi{id;url;constructor(n,t){this.id=n,this.url=t}}class kh extends wi{type=le.NavigationStart;navigationTrigger;restoredState;constructor(n,t,i="imperative",r=null){super(n,t),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class $i extends wi{urlAfterRedirects;type=le.NavigationEnd;constructor(n,t,i){super(n,t),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var bn=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(bn||{}),Rh=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Rh||{});class go extends wi{reason;code;type=le.NavigationCancel;constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Js extends wi{reason;code;type=le.NavigationSkipped;constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r}}class Bv extends wi{error;target;type=le.NavigationError;constructor(n,t,i,r){super(n,t),this.error=i,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class dA extends wi{urlAfterRedirects;state;type=le.RoutesRecognized;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uq extends wi{urlAfterRedirects;state;type=le.GuardsCheckStart;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hq extends wi{urlAfterRedirects;state;shouldActivate;type=le.GuardsCheckEnd;constructor(n,t,i,r,o){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class fq extends wi{urlAfterRedirects;state;type=le.ResolveStart;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pq extends wi{urlAfterRedirects;state;type=le.ResolveEnd;constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mq{route;type=le.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class gq{route;type=le.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _q{snapshot;type=le.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vq{snapshot;type=le.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yq{snapshot;type=le.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bq{snapshot;type=le.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class uA{routerEvent;position;anchor;type=le.Scroll;constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jv{}class Nh{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}}function Jn(e){return e.outlet||te}function cc(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class Sq{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return cc(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new dc(this.rootInjector)}}let dc=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new Sq(this.rootInjector),this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(i){return new(i||e)(M(Dt))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class hA{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=Hv(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=Hv(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Uv(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Uv(n,this._root).map(t=>t.value)}}function Hv(e,n){if(e===n.value)return n;for(const t of n.children){const i=Hv(e,t);if(i)return i}return null}function Uv(e,n){if(e===n.value)return[n];for(const t of n.children){const i=Uv(e,t);if(i.length)return i.unshift(n),i}return[]}class ei{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function ea(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class fA extends hA{snapshot;constructor(n,t){super(n),this.snapshot=t,zv(this,n)}toString(){return this.snapshot.toString()}}function pA(e){const n=function Iq(e){const o=new Oh([],{},{},"",{},te,e,null,{});return new mA("",new ei(o,[]))}(e),t=new an([new rc("",{})]),i=new an({}),r=new an({}),o=new an({}),s=new an(""),a=new ta(t,i,o,s,r,te,e,n.root);return a.snapshot=n.root,new fA(new ei(a,[]),n)}class ta{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,t,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(K(c=>c[ic]))??F(void 0),this.url=n,this.params=t,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(K(n=>Qs(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(K(n=>Qs(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Fh(e,n,t="emptyOnly"){let i;const{routeConfig:r}=e;return i=null===n||"always"!==t&&""!==r?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.data,...r?.data,...e._resolvedData}},r&&_A(r)&&(i.resolve[ic]=r.title),i}class Oh{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ic]}constructor(n,t,i,r,o,s,a,l,c){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}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??=Qs(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Qs(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class mA extends hA{url;constructor(n,t){super(t),this.url=n,zv(this,t)}toString(){return gA(this._root)}}function zv(e,n){n.value._routerState=e,n.children.forEach(t=>zv(e,t))}function gA(e){const n=e.children.length>0?` { ${e.children.map(gA).join(", ")} } `:"";return`${e.value}${n}`}function $v(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,bi(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),bi(n.params,t.params)||e.paramsSubject.next(t.params),function B5(e,n){if(e.length!==n.length)return!1;for(let t=0;tbi(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Gv(e.parent,n.parent))}function _A(e){return"string"==typeof e.title||null===e.title}const Mq=new C("");let qv=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=te;activateEvents=new fe;deactivateEvents=new fe;attachEvents=new fe;detachEvents=new fe;routerOutletData=a1(void 0);parentContexts=g(dc);location=g(nn);changeDetector=g(_r);inputBinder=g(Ph,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){const{firstChange:i,previousValue:r}=t.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(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=t;const r=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Wv(t,a,r.injector,this.routerOutletData);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||e)};static \u0275dir=O({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[un]})}return e})();class Wv{route;childContexts;parent;outletData;__ngOutletInjector(n){return new Wv(this.route,this.childContexts,n,this.outletData)}constructor(n,t,i,r){this.route=n,this.childContexts=t,this.parent=i,this.outletData=r}get(n,t){return n===ta?this.route:n===dc?this.childContexts:n===Mq?this.outletData:this.parent.get(n,t)}}const Ph=new C("");let vA=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:i}=t,r=bh([i.queryParams,i.params,i.data]).pipe(vn(([o,s,a],l)=>(a={...o,...s,...a},0===l?F(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(t);const s=function f8(e){const n=ee(e);if(!n)return null;const t=new Il(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,r)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function uc(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function Aq(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return uc(e,i,r);return uc(e,i)})}(e,n,t);return new ei(i,r)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>uc(e,a)),s}}const i=function kq(e){return new ta(new an(e.url),new an(e.params),new an(e.queryParams),new an(e.fragment),new an(e.data),e.outlet,e.component,e)}(n.value),r=n.children.map(o=>uc(e,o));return new ei(i,r)}}class Zv{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}}const yA="ngNavigationCancelingError";function Lh(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=mo(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=bA(!1,bn.Redirect);return r.url=t,r.navigationBehaviorOptions=i,r}function bA(e,n){const t=new Error(`NavigationCancelingError: ${e||""}`);return t[yA]=!0,t.cancellationCode=n,t}function wA(e){return!!e&&e[yA]}class Fq{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,t,i,r,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),$v(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=ea(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=ea(n);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=ea(n);for(const 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,t,i){const r=ea(t);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new bq(o.value.snapshot))}),n.children.length&&this.forwardEvent(new vq(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if($v(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const 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),$v(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)}}class CA{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Vh{component;route;constructor(n,t){this.component=n,this.route=t}}function Oq(e,n,t){const i=e._root;return hc(i,n?n._root:null,t,[i.value])}function na(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function gO(e){return null!==td(e)}(e)?n.get(e):e:i}function hc(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=ea(n);return e.children.forEach(s=>{(function Lq(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function Vq(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!po(e.url,n.url);case"pathParamsOrQueryParamsChange":return!po(e.url,n.url)||!bi(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gv(e,n)||!bi(e.queryParams,n.queryParams);default:return!Gv(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new CA(i)):(o.data=s.data,o._resolvedData=s._resolvedData),hc(e,n,o.component?a?a.children:null:t,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Vh(a.outlet.component,s))}else s&&fc(n,a,r),r.canActivateChecks.push(new CA(i)),hc(e,null,o.component?a?a.children:null:t,i,r)})(s,o[s.value.outlet],t,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>fc(a,t.getContext(s),r)),r}function fc(e,n,t){const i=ea(e),r=e.value;Object.entries(i).forEach(([o,s])=>{fc(s,r.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new Vh(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function pc(e){return"function"==typeof e}function EA(e){return e instanceof wh||"EmptyError"===e?.name}const Bh=Symbol("INITIAL_VALUE");function ia(){return vn(e=>bh(e.map(n=>n.pipe(yi(1),uo(Bh)))).pipe(K(n=>{for(const t of n)if(!0!==t){if(t===Bh)return Bh;if(!1===t||Gq(t))return t}return!0}),yn(n=>n!==Bh),yi(1)))}function Gq(e){return mo(e)||e instanceof Zv}function DA(e){return function sO(...e){return sw(e)}(_t(n=>{if("boolean"!=typeof n)throw Lh(0,n)}),K(n=>!0===n))}class Yv{segmentGroup;constructor(n){this.segmentGroup=n||null}}class jh extends Error{urlTree;constructor(n){super(),this.urlTree=n}}function ra(e){return nc(new Yv(e))}class rW{urlSerializer;urlTree;constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return F(i);if(r.numberOfChildren>1||!r.children[te])return nc(new b(4e3,!1));r=r.children[te]}}applyRedirectCommands(n,t,i,r,o){if("string"!=typeof t){const a=t,{queryParams:l,fragment:c,routeConfig:d,url:u,outlet:f,params:h,data:p,title:m}=r,_=xn(o,()=>a({params:h,data:p,queryParams:l,fragment:c,routeConfig:d,url:u,outlet:f,title:m}));if(_ instanceof fo)throw new jh(_);t=_}const s=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i);if("/"===t[0])throw new jh(s);return s}applyRedirectCreateUrlTree(n,t,i,r){const o=this.createSegmentGroup(n,t.root,i,r);return new fo(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return Object.entries(n).forEach(([r,o])=>{if("string"==typeof o&&":"===o[0]){const a=o.substring(1);i[r]=t[a]}else i[r]=o}),i}createSegmentGroup(n,t,i,r){const o=this.createSegments(n,t.segments,i,r);let s={};return Object.entries(t.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new xe(o,s)}createSegments(n,t,i,r){return t.map(o=>":"===o.path[0]?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new b(4001,!1);return r}findOrReturn(n,t){let i=0;for(const r of t){if(r.path===n.path)return t.splice(i),r;i++}return n}}const Kv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oW(e,n,t,i,r){const o=xA(e,n,t);return o.matched?(i=function wq(e,n){return e.providers&&!e._injector&&(e._injector=wu(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,i),function tW(e,n,t,i){const r=n.canMatch;return r&&0!==r.length?F(r.map(s=>{const a=na(s,e);return Er(function $q(e){return e&&pc(e.canMatch)}(a)?a.canMatch(n,t):xn(e,()=>a(n,t)))})).pipe(ia(),DA()):F(!0)}(i,n,t).pipe(K(s=>!0===s?o:{...Kv}))):F(o)}function xA(e,n,t){if("**"===n.path)return function sW(e){return{matched:!0,parameters:e.length>0?qT(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(t);if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Kv}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||V5)(t,e,n);if(!r)return{...Kv};const o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function SA(e,n,t,i){return t.length>0&&function cW(e,n,t){return t.some(i=>Hh(e,n,i)&&Jn(i)!==te)}(e,t,i)?{segmentGroup:new xe(n,lW(i,new xe(t,e.children))),slicedSegments:[]}:0===t.length&&function dW(e,n,t){return t.some(i=>Hh(e,n,i))}(e,t,i)?{segmentGroup:new xe(e.segments,aW(e,t,i,e.children)),slicedSegments:t}:{segmentGroup:new xe(e.segments,e.children),slicedSegments:t}}function aW(e,n,t,i){const r={};for(const o of t)if(Hh(e,n,o)&&!i[Jn(o)]){const s=new xe([],{});r[Jn(o)]=s}return{...i,...r}}function lW(e,n){const t={};t[te]=n;for(const i of e)if(""===i.path&&Jn(i)!==te){const r=new xe([],{});t[Jn(i)]=r}return t}function Hh(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class hW{}class mW{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,t,i,r,o,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new rW(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){const n=SA(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(K(({children:t,rootSnapshot:i})=>{const r=new ei(i,t),o=new mA("",r),s=function rq(e,n,t=null,i=null){return rA(iA(e),n,t,i)}(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){const t=new Oh([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),te,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,te,t).pipe(K(i=>({children:i,rootSnapshot:t})),ho(i=>{if(i instanceof jh)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Yv?this.noMatchError(i):i}))}processSegmentGroup(n,t,i,r,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,t,i,o):this.processSegment(n,t,i,i.segments,r,!0,o).pipe(K(s=>s instanceof ei?[s]:[]))}processChildren(n,t,i,r){const o=[];for(const s of Object.keys(i.children))"primary"===s?o.unshift(s):o.push(s);return lt(o).pipe(Ys(s=>{const a=i.children[s],l=function xq(e,n){const t=e.filter(i=>Jn(i)===n);return t.push(...e.filter(i=>Jn(i)!==n)),t}(t,s);return this.processSegmentGroup(n,l,a,s,r)}),function O5(e,n){return tt(function F5(e,n,t,i,r){return(o,s)=>{let a=t,l=n,c=0;o.subscribe(ze(s,d=>{const u=c++;l=a?e(l,d,u):(a=!0,d),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}((s,a)=>(s.push(...a),s)),Eh(null),function P5(e,n){const t=arguments.length>=2;return i=>i.pipe(e?yn((r,o)=>e(r,o,i)):Ki,Nv(1),t?Eh(n):zT(()=>new wh))}(),Tt(s=>{if(null===s)return ra(i);const a=IA(s);return function gW(e){e.sort((n,t)=>n.value.outlet===te?-1:t.value.outlet===te?1:n.value.outlet.localeCompare(t.value.outlet))}(a),F(a)}))}processSegment(n,t,i,r,o,s,a){return lt(t).pipe(Ys(l=>this.processSegmentAgainstRoute(l._injector??n,t,l,i,r,o,s,a).pipe(ho(c=>{if(c instanceof Yv)return F(null);throw c}))),Cr(l=>!!l),ho(l=>{if(EA(l))return function uW(e,n,t){return 0===n.length&&!e.children[t]}(i,r,o)?F(new hW):ra(i);throw l}))}processSegmentAgainstRoute(n,t,i,r,o,s,a,l){return Jn(i)===s||s!==te&&Hh(r,o,i)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,t,i,o,s,l):ra(r):ra(r)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s,a){const{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:f}=xA(t,r,o);if(!l)return ra(t);"string"==typeof r.redirectTo&&"/"===r.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const h=new Oh(o,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,MA(r),Jn(r),r.component??r._loadedComponent??null,r,TA(r)),p=Fh(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(p.params),h.data=Object.freeze(p.data);const m=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,u,h,n);return this.applyRedirects.lineralizeSegments(r,m).pipe(Tt(_=>this.processSegment(n,i,t,_.concat(f),s,!1,a)))}matchSegmentAgainstRoute(n,t,i,r,o,s){const a=oW(t,i,r,n);return"**"===i.path&&(t.children={}),a.pipe(vn(l=>l.matched?this.getChildConfig(n=i._injector??n,i,r).pipe(vn(({routes:c})=>{const d=i._loadedInjector??n,{parameters:u,consumedSegments:f,remainingSegments:h}=l,p=new Oh(f,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,MA(i),Jn(i),i.component??i._loadedComponent??null,i,TA(i)),m=Fh(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(m.params),p.data=Object.freeze(m.data);const{segmentGroup:_,slicedSegments:y}=SA(t,f,h,c);if(0===y.length&&_.hasChildren())return this.processChildren(d,c,_,p).pipe(K(E=>new ei(p,E)));if(0===c.length&&0===y.length)return F(new ei(p,[]));const v=Jn(i)===o;return this.processSegment(d,c,_,y,v?te:o,!0,p).pipe(K(E=>new ei(p,E instanceof ei?[E]:[])))})):ra(t)))}getChildConfig(n,t,i){return t.children?F({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?F({routes:t._loadedRoutes,injector:t._loadedInjector}):function eW(e,n,t,i){const r=n.canLoad;return void 0===r||0===r.length?F(!0):F(r.map(s=>{const a=na(s,e);return Er(function jq(e){return e&&pc(e.canLoad)}(a)?a.canLoad(n,t):xn(e,()=>a(n,t)))})).pipe(ia(),DA())}(n,t,i).pipe(Tt(r=>r?this.configLoader.loadChildren(n,t).pipe(_t(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function iW(){return nc(bA(!1,bn.GuardRejected))}())):F({routes:[],injector:n})}}function _W(e){const n=e.value.routeConfig;return n&&""===n.path}function IA(e){const n=[],t=new Set;for(const i of e){if(!_W(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=IA(i.children);n.push(new ei(i.value,r))}return n.filter(i=>!t.has(i))}function MA(e){return e.data||{}}function TA(e){return e.resolve||{}}function AA(e){const n=e.children.map(t=>AA(t)).flat();return[e,...n]}function Qv(e){return vn(n=>{const t=e(n);return t?lt(t).pipe(K(()=>n)):F(n)})}let kA=(()=>{class e{buildTitle(t){let i,r=t.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===te);return i}getResolvedTitleForRoute(t){return t.data[ic]}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>g(EW),providedIn:"root"})}return e})(),EW=(()=>{class e extends kA{title;constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||e)(M(kG))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const oa=new C("",{providedIn:"root",factory:()=>({})});let RA=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(i,r){1&i&&Ft(0,"router-outlet")},dependencies:[qv],encapsulation:2})}return e})();function Xv(e){const n=e.children&&e.children.map(Xv),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==te&&(t.component=RA),t}const sa=new C("");let Jv=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(yI);loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return F(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=Er(t.loadComponent()).pipe(K(NA),_t(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Ks(()=>{this.componentLoaders.delete(t)})),r=new UT(i,()=>new Q).pipe(Rv());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return F({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function DW(e,n,t,i){return Er(e.loadChildren()).pipe(K(NA),Tt(r=>r instanceof Ux||Array.isArray(r)?F(r):lt(n.compileModuleAsync(r))),K(r=>{i&&i(e);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(t).injector,s=o.get(sa,[],{optional:!0,self:!0}).flat()),{routes:s.map(Xv),injector:o}}))}(i,this.compiler,t,this.onLoadEndListener).pipe(Ks(()=>{this.childrenLoaders.delete(i)})),s=new UT(o,()=>new Q).pipe(Rv());return this.childrenLoaders.set(i,s),s}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function NA(e){return function xW(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let ey=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>g(SW),providedIn:"root"})}return e})(),SW=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const FA=new C(""),OA=new C("");function IW(e,n,t){const i=e.get(OA),r=e.get(ae);return e.get(q).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o;const s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),function MW(e){return new Promise(n=>{hi({read:()=>setTimeout(n)},{injector:e})})}(e))),{onViewTransitionCreated:l}=i;return l&&xn(e,()=>l({transition:a,from:n,to:t})),s})}const ty=new C("");let Uh=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new Q;transitionAbortSubject=new Q;configLoader=g(Jv);environmentInjector=g(Dt);urlSerializer=g(Xs);rootContexts=g(dc);location=g(Gs);inputBindingEnabled=null!==g(Ph,{optional:!0});titleStrategy=g(kA);options=g(oa,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(ey);createViewTransition=g(FA,{optional:!0});navigationErrorHandler=g(ty,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>F(void 0);rootComponentType=null;constructor(){this.configLoader.onLoadEndListener=r=>this.events.next(new gq(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new mq(r))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:i})}setupNavigations(t,i,r){return this.transitions=new an({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:lc,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(yn(o=>0!==o.id),K(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),vn(o=>{let s=!1,a=!1;return F(o).pipe(vn(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",bn.SupersededByNewNavigation),Xn;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:"string"==typeof l.extras.browserUrl?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!c&&"reload"!==(l.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const u="";return this.events.next(new Js(l.id,this.urlSerializer.serialize(l.rawUrl),u,Rh.IgnoredSameUrlNavigation)),l.resolve(!1),Xn}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return F(l).pipe(vn(u=>{const f=this.transitions?.getValue();return this.events.next(new kh(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions?.getValue()?Xn:Promise.resolve(u)}),function vW(e,n,t,i,r,o){return Tt(s=>function fW(e,n,t,i,r,o,s="emptyOnly"){return new mW(e,n,t,i,r,s,o).recognize()}(e,n,t,i,s.extractedUrl,r,o).pipe(K(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),_t(u=>{o.targetSnapshot=u.targetSnapshot,o.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects};const f=new dA(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:u,extractedUrl:f,source:h,restoredState:p,extras:m}=l,_=new kh(u,this.urlSerializer.serialize(f),h,p);this.events.next(_);const y=pA(this.rootComponentType).snapshot;return this.currentTransition=o={...l,targetSnapshot:y,urlAfterRedirects:f,extras:{...m,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=f,F(o)}{const u="";return this.events.next(new Js(l.id,this.urlSerializer.serialize(l.extractedUrl),u,Rh.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Xn}}),_t(l=>{const c=new uq(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),K(l=>(this.currentTransition=o={...l,guards:Oq(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},o)),function qq(e,n){return Tt(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?F({...t,guardsResult:!0}):function Wq(e,n,t,i){return lt(e).pipe(Tt(r=>function Jq(e,n,t,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?F(o.map(a=>{const l=cc(n)??r,c=na(a,l);return Er(function zq(e){return e&&pc(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,i):xn(l,()=>c(e,n,t,i))).pipe(Cr())})).pipe(ia()):F(!0)}(r.component,r.route,t,n,i)),Cr(r=>!0!==r,!0))}(s,i,r,e).pipe(Tt(a=>a&&function Bq(e){return"boolean"==typeof e}(a)?function Zq(e,n,t,i){return lt(n).pipe(Ys(r=>Ch(function Kq(e,n){return null!==e&&n&&n(new _q(e)),F(!0)}(r.route.parent,i),function Yq(e,n){return null!==e&&n&&n(new yq(e)),F(!0)}(r.route,i),function Xq(e,n,t){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function Pq(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>HT(()=>F(s.guards.map(l=>{const c=cc(s.node)??t,d=na(l,c);return Er(function Uq(e){return e&&pc(e.canActivateChild)}(d)?d.canActivateChild(i,e):xn(c,()=>d(i,e))).pipe(Cr())})).pipe(ia())));return F(o).pipe(ia())}(e,r.path,t),function Qq(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return F(!0);const r=i.map(o=>HT(()=>{const s=cc(n)??t,a=na(o,s);return Er(function Hq(e){return e&&pc(e.canActivate)}(a)?a.canActivate(n,e):xn(s,()=>a(n,e))).pipe(Cr())}));return F(r).pipe(ia())}(e,r.route,t))),Cr(r=>!0!==r,!0))}(i,o,e,n):F(a)),K(a=>({...t,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),_t(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&"boolean"!=typeof l.guardsResult)throw Lh(0,l.guardsResult);const c=new hq(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),yn(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",bn.GuardRejected),!1)),Qv(l=>{if(l.guards.canActivateChecks.length)return F(l).pipe(_t(c=>{const d=new fq(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),vn(c=>{let d=!1;return F(c).pipe(function yW(e,n){return Tt(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return F(t);const o=new Set(r.map(l=>l.route)),s=new Set;for(const l of o)if(!s.has(l))for(const c of AA(l))s.add(c);let a=0;return lt(s).pipe(Ys(l=>o.has(l)?function bW(e,n,t,i){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!_A(r)&&(o[ic]=r.title),function wW(e,n,t,i){const r=Fv(e);if(0===r.length)return F({});const o={};return lt(r).pipe(Tt(s=>function CW(e,n,t,i){const r=cc(n)??i,o=na(e,r);return Er(o.resolve?o.resolve(n,t):xn(r,()=>o(n,t)))}(e[s],n,t,i).pipe(Cr(),_t(a=>{if(a instanceof Zv)throw Lh(new xh,a);o[s]=a}))),Nv(1),$T(o),ho(s=>EA(s)?Xn:nc(s)))}(o,e,n,i).pipe(K(s=>(e._resolvedData=s,e.data=Fh(e,e.parent,t).resolve,null)))}(l,i,e,n):(l.data=Fh(l,l.parent,e).resolve,F(void 0))),_t(()=>a++),Nv(1),Tt(l=>a===s.size?F(t):Xn))})}(this.paramsInheritanceStrategy,this.environmentInjector),_t({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",bn.NoDataFromResolver)}}))}),_t(c=>{const d=new pq(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),Qv(l=>{const c=d=>{const u=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(d.routeConfig).pipe(_t(f=>{d.component=f}),K(()=>{})));for(const f of d.children)u.push(...c(f));return u};return bh(c(l.targetSnapshot.root)).pipe(Eh(null),yi(1))}),Qv(()=>this.afterPreactivation()),vn(()=>{const{currentSnapshot:l,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?lt(d).pipe(K(()=>o)):F(o)}),K(l=>{const c=function Tq(e,n,t){const i=uc(e,n._root,t?t._root:void 0);return new fA(i,n)}(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o={...l,targetRouterState:c},this.currentNavigation.targetRouterState=c,o}),_t(()=>{this.events.next(new jv)}),((e,n,t,i)=>K(r=>(new Fq(n,r.targetRouterState,r.currentRouterState,t,i).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),yi(1),_t({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new $i(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),Je(this.transitionAbortSubject.pipe(_t(l=>{throw l}))),Ks(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",bn.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),ho(l=>{if(a=!0,wA(l))this.events.next(new go(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),function Rq(e){return wA(e)&&mo(e.url)}(l)?this.events.next(new Nh(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{const c=new Bv(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{const d=xn(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(!(d instanceof Zv))throw this.events.next(c),l;{const{message:u,cancellationCode:f}=Lh(0,d);this.events.next(new go(o.id,this.urlSerializer.serialize(o.extractedUrl),u,f)),this.events.next(new Nh(d.redirectTo,d.navigationBehaviorOptions))}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return Xn}))}))}cancelNavigationTransition(t,i,r){const o=new go(t.id,this.urlSerializer.serialize(t.extractedUrl),i,r);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function TW(e){return e!==lc}let AW=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>g(RW),providedIn:"root"})}return e})();class kW{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let RW=(()=>{class e extends kW{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),PA=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:()=>g(NW),providedIn:"root"})}return e})(),NW=(()=>{class e extends PA{location=g(Gs);urlSerializer=g(Xs);options=g(oa,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=g(ey);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new fo;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=pA(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(i=>{"popstate"===i.type&&t(i.url,i.state)})}handleRouterEvent(t,i){if(t instanceof kh)this.stateMemento=this.createStateMemento();else if(t instanceof Js)this.rawUrlTree=i.initialUrl;else if(t instanceof dA){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else t instanceof jv?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):t instanceof go&&(t.code===bn.GuardRejected||t.code===bn.NoDataFromResolver)?this.restoreHistory(i):t instanceof Bv?this.restoreHistory(i,!0):t instanceof $i&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,i){const r=t instanceof fo?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===t.finalUrl&&0===o&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var mc=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(mc||{});function LA(e,n){e.events.pipe(yn(t=>t instanceof $i||t instanceof go||t instanceof Bv||t instanceof Js),K(t=>t instanceof $i||t instanceof Js?mc.COMPLETE:t instanceof go&&(t.code===bn.Redirect||t.code===bn.SupersededByNewNavigation)?mc.REDIRECTING:mc.FAILED),yn(t=>t!==mc.REDIRECTING),yi(1)).subscribe(()=>{n()})}const FW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},OW={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ci=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(a0);stateManager=g(PA);options=g(oa,{optional:!0})||{};pendingTasks=g(Un);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(Uh);urlSerializer=g(Xs);location=g(Gs);urlHandlingStrategy=g(ey);_events=new Q;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(AW);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(sa,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(Ph,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ze;subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(i=>{try{const r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(null!==r&&null!==o)if(this.stateManager.handleRouterEvent(i,o),i instanceof go&&i.code!==bn.Redirect&&i.code!==bn.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof $i)this.navigated=!0;else if(i instanceof Nh){const s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l={browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||"eager"===this.urlUpdateStrategy||TW(r.source),...s};this.scheduleNavigation(a,lc,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function LW(e){return!(e instanceof jv||e instanceof Nh)})(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),lc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",i)},0)})}navigateToSyncWithBrowser(t,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(t);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(t){this.config=t.map(Xv),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(t,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}null!==d&&(d=this.removeEmptyProps(d));try{u=iA(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||"/"!==t[0][0])&&(t=[]),u=this.currentUrlTree.root}return rA(u,t,d,c??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=mo(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,lc,null,i)}navigate(t,i={skipLocationChange:!1}){return function PW(e){for(let n=0;n(null!=o&&(i[r]=o),i),{})}scheduleNavigation(t,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((u,f)=>{a=u,l=f});const d=this.pendingTasks.add();return LA(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(u=>Promise.reject(u))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),zh=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new Q;constructor(t,i,r,o,s,a){this.router=t,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof $i&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(t){null==t?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=mo(t)||Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,i,r,o,s){const a=this.urlTree;return!!(null===a||this.isAnchorElement&&(0!==t||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(a,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const t=this.urlTree;this.href=null!==t&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;const i=null===this.href?null:function YE(e,n,t){return function qL(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?ZE:_s}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(t,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,t,i):r.removeAttribute(o,t)}get urlTree(){return null===this.routerLinkInput?null:mo(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||e)(x(Ci),x(ta),za("tabindex"),x(Vi),x(Ce),x(co))};static \u0275dir=O({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){1&i&&He("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&i&&qe("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ae],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ae],replaceUrl:[2,"replaceUrl","replaceUrl",Ae],routerLink:"routerLink"},features:[qn,un]})}return e})();class VA{}let jW=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,i,r,o,s){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(yn(t=>t instanceof $i),Ys(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=wu(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return lt(r).pipe(Zs())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):F(null);const o=r.pipe(Tt(s=>null===s?F(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?lt([o,this.loader.loadComponent(i)]).pipe(Zs()):o})}static \u0275fac=function(i){return new(i||e)(M(Ci),M(yI),M(Dt),M(VA),M(Jv))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ny=new C("");let BA=(()=>{class e{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(t,i,r,o,s={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof kh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof $i?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Js&&t.code===Rh.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof uA&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new uA(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){!function DD(){throw new Error("invalid")}()};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function Ei(e,n){return{\u0275kind:e,\u0275providers:n}}function HA(){const e=g(De);return n=>{const t=e.get(rn);if(n!==t.components[0])return;const i=e.get(Ci),r=e.get(UA);1===e.get(iy)&&i.initialNavigation(),e.get(zA,null,ne.Optional)?.setUpPreloading(),e.get(ny,null,ne.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const UA=new C("",{factory:()=>new Q}),iy=new C("",{providedIn:"root",factory:()=>1}),zA=new C("");function $W(e){return Ei(0,[{provide:zA,useExisting:jW},{provide:VA,useExisting:e}])}function qW(e){return Ei(9,[{provide:FA,useValue:IW},{provide:OA,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const $A=new C("ROUTER_FORROOT_GUARD"),WW=[Gs,{provide:Xs,useClass:xh},Ci,dc,{provide:ta,useFactory:function jA(e){return e.routerState.root},deps:[Ci]},Jv,[]];let GA=(()=>{class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[WW,[],{provide:sa,multi:!0,useValue:t},{provide:$A,useFactory:QW,deps:[[Ci,new Fr,new ka]]},i?.errorHandler?{provide:ty,useValue:i.errorHandler}:[],{provide:oa,useValue:i||{}},i?.useHash?{provide:co,useClass:v8}:{provide:co,useClass:wM},{provide:ny,useFactory:()=>{const e=g(k4),n=g(q),t=g(oa),i=g(Uh),r=g(Xs);return t.scrollOffset&&e.setOffset(t.scrollOffset),new BA(r,i,e,n,t)}},i?.preloadingStrategy?$W(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?XW(i):[],i?.bindToComponentInputs?Ei(8,[vA,{provide:Ph,useExisting:vA}]).\u0275providers:[],i?.enableViewTransitions?qW().\u0275providers:[],[{provide:qA,useFactory:HA},{provide:Nl,multi:!0,useExisting:qA}]]}}static forChild(t){return{ngModule:e,providers:[{provide:sa,multi:!0,useValue:t}]}}static \u0275fac=function(i){return new(i||e)(M($A,8))};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})();function QW(e){return"guarded"}function XW(e){return["disabled"===e.initialNavigation?Ei(3,[{provide:ku,multi:!0,useFactory:()=>{const n=g(Ci);return()=>{n.setUpLocationChangeListener()}}},{provide:iy,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Ei(2,[{provide:iy,useValue:0},{provide:ku,multi:!0,deps:[De],useFactory:n=>{const t=n.get(g8,Promise.resolve());return()=>t.then(()=>new Promise(i=>{const r=n.get(Ci),o=n.get(UA);LA(r,()=>{i(!0)}),n.get(Uh).afterPreactivation=()=>(i(!0),o.closed?F(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const qA=new C("");let ry;try{ry=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ry=!1}let gc,_o,oy,sn=(()=>{class e{_platformId=g(ui);isBrowser=this._platformId?yr(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!ry)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _c(e){return function t6(){if(null==gc&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>gc=!0}))}finally{gc=gc||!1}return gc}()?e:!!e.capture}function n6(){if(null==_o){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return _o=!1,_o;if("scrollBehavior"in document.documentElement.style)_o=!0;else{const e=Element.prototype.scrollTo;_o=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return _o}function Gi(e){return e.composedPath?e.composedPath()[0]:e.target}function ZA(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const Gh=new WeakMap;let Dr=(()=>{class e{_appRef;_injector=g(De);_environmentInjector=g(Dt);load(t){const i=this._appRef=this._appRef||this._injector.get(rn);let r=Gh.get(i);r||(r={loaders:new Set,refs:[]},Gh.set(i,r),i.onDestroy(()=>{Gh.get(i)?.refs.forEach(o=>o.destroy()),Gh.delete(i)})),r.loaders.has(t)||(r.loaders.add(t),r.refs.push(_M(t,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),YA=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return e})();function qh(e,...n){return n.length?n.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}class C6 extends Ze{constructor(n,t){super()}schedule(n,t=0){return this}}const Wh={setInterval(e,n,...t){const{delegate:i}=Wh;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Wh;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class ly extends C6{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,i=0){return Wh.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&Wh.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;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){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Yc(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}const cy={now:()=>(cy.delegate||Date).now(),delegate:void 0};class bc{constructor(n,t=bc.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}bc.now=cy.now;class dy extends bc{constructor(n,t=bc.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}const uy=new dy(ly),E6=uy;function JA(e,n=uy){return tt((t,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+e,d=n.now();if(d{o=c,s=n.now(),r||(r=n.schedule(l,e),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function ek(e){return yn((n,t)=>e<=t)}function tk(e,n=Ki){return e=e??D6,tt((t,i)=>{let r,o=!0;t.subscribe(ze(i,s=>{const a=n(s);(o||!e(r,a))&&(o=!1,r=a,i.next(s))}))})}function D6(e,n){return e===n}let x6=(()=>{class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),S6=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({providers:[x6]})}return e})();function ik(e){return null!=e&&"false"!=`${e}`}function rk(e,n=0){return function I6(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):2===arguments.length?n:0}function Zh(e){return Array.isArray(e)?e:[e]}function ct(e){return null==e?"":"string"==typeof e?e:`${e}px`}function la(e){return e instanceof Ce?e.nativeElement:e}const ok=new Set;let vo,M6=(()=>{class e{_platform=g(sn);_nonce=g(Cm,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):A6}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function T6(e,n){if(!ok.has(e))try{vo||(vo=document.createElement("style"),n&&vo.setAttribute("nonce",n),vo.setAttribute("type","text/css"),document.head.appendChild(vo)),vo.sheet&&(vo.sheet.insertRule(`@media ${e} {body{ }}`,0),ok.add(e))}catch(t){console.error(t)}}(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function A6(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let k6=(()=>{class e{_mediaMatcher=g(M6);_zone=g(q);_queries=new Map;_destroySubject=new Q;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return sk(Zh(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=bh(sk(Zh(t)).map(s=>this._registerQuery(s).observable));return o=Ch(o.pipe(yi(1)),o.pipe(ek(1),JA(0))),o.pipe(K(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),o={observable:new Be(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(uo(i),K(({matches:s})=>({query:t,matches:s})),Je(this._destroySubject)),mql:i};return this._queries.set(t,o),o}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function sk(e){return e.map(n=>n.split(",")).reduce((n,t)=>n.concat(t)).map(n=>n.trim())}function Yh(e,n){return e.getAttribute(n)?.match(/\S+/g)??[]}const lk="cdk-describedby-message",Kh="cdk-describedby-host";let hy=0,F6=(()=>{class e{_platform=g(sn);_document=g(ae);_messageRegistry=new Map;_messagesContainer=null;_id=""+hy++;constructor(){g(Dr).load(YA),this._id=g(rr)+"-"+hy++}describe(t,i,r){if(!this._canBeDescribed(t,i))return;const o=fy(i,r);"string"!=typeof i?(ck(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,i,r){if(!i||!this._isElementNode(t))return;const o=fy(i,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),"string"==typeof i){const s=this._messageRegistry.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const t=this._document.querySelectorAll(`[${Kh}="${this._id}"]`);for(let i=0;i0!=r.indexOf(lk));t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){const r=this._messageRegistry.get(i);(function R6(e,n,t){const i=Yh(e,n);t=t.trim(),!i.some(r=>r.trim()===t)&&(i.push(t),e.setAttribute(n,i.join(" ")))})(t,"aria-describedby",r.messageElement.id),t.setAttribute(Kh,this._id),r.referenceCount++}_removeMessageReference(t,i){const r=this._messageRegistry.get(i);r.referenceCount--,function N6(e,n,t){const i=Yh(e,n);t=t.trim();const r=i.filter(o=>o!==t);r.length?e.setAttribute(n,r.join(" ")):e.removeAttribute(n)}(t,"aria-describedby",r.messageElement.id),t.removeAttribute(Kh)}_isElementDescribedByMessage(t,i){const r=Yh(t,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=t.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fy(e,n){return"string"==typeof e?`${n||""}/${e}`:e}function ck(e,n){e.id||(e.id=`${lk}-${n}-${hy++}`)}class dk{_letterKeyStream=new Q;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Q;selectedItem=this._selectedItem;constructor(n,t){const i="number"==typeof t?.debounceInterval?t.debounceInterval:200;t?.skipPredicate&&(this._skipPredicateFn=t.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){const t=n.keyCode;n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(_t(t=>this._pressedLetters.push(t)),JA(n),yn(()=>this._pressedLetters.length>0),K(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let i=1;in.disabled;constructor(n,t){this._items=n,n instanceof qa?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):yu(n)&&(this._effectRef=function W_(e,n){bt("NgSignals"),!n?.injector&&Zo();const t=n?.injector??g(De);let r,i=!0!==n?.manualCleanup?t.get(ir):null;const o=t.get(pM,null,{optional:!0}),s=t.get(Fi);return null===o||n?.forceRoot?r=function o8(e,n,t){const i=Object.create(n8);return i.fn=e,i.scheduler=n,i.notifier=t,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.schedule(i),i.notifier.notify(13),i}(e,t.get(a_),s):(r=function r8(e,n,t){const i=Object.create(i8);return i.view=e,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=t,e[23]??=new Set,e[23].add(i),i.consumerMarkedDirty(i),i}(o.view,s,e),i instanceof TC&&i._lView===o.view&&(i=null)),r.injector=t,null!==i&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new t8(r)}(()=>this._itemsChanged(n()),{injector:t}))}tabOut=new Q;change=new Q;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();const t=this._getItemsArray();return this._typeahead=new dk(t,{debounceInterval:"number"==typeof n?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,t=10){return this._pageUpAndDown={enabled:n,delta:t},this}setActiveItem(n){const t=this._activeItem();this.updateActiveItem(n),this._activeItem()!==t&&this.change.next(this._activeItemIndex)}onKeydown(n){const t=n.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}}class L6 extends P6{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}function pk(e){return 0===e.buttons||0===e.detail}function mk(e){const n=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const W6=new C("cdk-input-modality-detector-options"),Z6={ignoreKeys:[18,17,224,91,16]},ca=_c({passive:!0,capture:!0});let Y6=(()=>{class e{_platform=g(sn);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new an(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(i=>i===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Gi(t))};_onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(pk(t)?"keyboard":"mouse"),this._mostRecentTarget=Gi(t))};_onTouchstart=t=>{mk(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Gi(t))};constructor(){const t=g(q),i=g(ae),r=g(W6,{optional:!0});this._options={...Z6,...r},this.modalityDetected=this._modality.pipe(ek(1)),this.modalityChanged=this.modalityDetected.pipe(tk()),this._platform.isBrowser&&t.runOutsideAngular(()=>{i.addEventListener("keydown",this._onKeydown,ca),i.addEventListener("mousedown",this._onMousedown,ca),i.addEventListener("touchstart",this._onTouchstart,ca)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ca),document.removeEventListener("mousedown",this._onMousedown,ca),document.removeEventListener("touchstart",this._onTouchstart,ca))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Qh=function(e){return e[e.IMMEDIATE=0]="IMMEDIATE",e[e.EVENTUAL=1]="EVENTUAL",e}(Qh||{});const Q6=new C("cdk-focus-monitor-default-options"),Xh=_c({passive:!0,capture:!0});let py=(()=>{class e{_ngZone=g(q);_platform=g(sn);_inputModalityDetector=g(Y6);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=g(ae,{optional:!0});_stopInputModalityDetector=new Q;constructor(){const t=g(Q6,{optional:!0});this._detectionMode=t?.detectionMode||Qh.IMMEDIATE}_rootNodeFocusAndBlurListener=t=>{for(let r=Gi(t);r;r=r.parentElement)"focus"===t.type?this._onFocus(t,r):this._onBlur(t,r)};monitor(t,i=!1){const r=la(t);if(!this._platform.isBrowser||1!==r.nodeType)return F();const o=function r6(e){if(function i6(){if(null==oy){const e=typeof document<"u"?document.head:null;oy=!(!e||!e.createShadowRoot&&!e.attachShadow)}return oy}()){const n=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new Q,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const i=la(t),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(t,i,r){const o=la(t);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===Qh.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused","touch"===i),t.classList.toggle("cdk-keyboard-focused","keyboard"===i),t.classList.toggle("cdk-mouse-focused","mouse"===i),t.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&i,this._detectionMode===Qh.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,i){const r=this._elementInfo.get(i),o=Gi(t);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(t,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const i=t.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Xh),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Xh)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Je(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){const i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Xh),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Xh),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,r){this._setClasses(t,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){const i=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(t){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===t||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||t.disabled)return!1;const o=t.labels;if(o)for(let s=0;s{class e{_platform=g(sn);_hasCheckedHighContrastMode;_document=g(ae);_breakpointSubscription;constructor(){this._breakpointSubscription=g(k6).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return yo.NONE;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return yo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return yo.BLACK_ON_WHITE}return yo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(my,_k,vk),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===yo.BLACK_ON_WHITE?t.add(my,_k):i===yo.WHITE_ON_BLACK&&t.add(my,vk)}}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),X6=(()=>{class e{constructor(){g(yk)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[S6]})}return e})();const gy={};let _y=(()=>{class e{_appId=g(rr);getId(t){return"ng"!==this._appId&&(t+=this._appId),gy.hasOwnProperty(t)||(gy[t]=0),`${t}${gy[t]++}`}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const J6=new C("cdk-dir-doc",{providedIn:"root",factory:function e9(){return g(ae)}}),t9=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let vy=(()=>{class e{value="ltr";change=new fe;constructor(){const t=g(J6,{optional:!0});t&&(this.value=function n9(e){const n=e?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?t9.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wc=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})(),Zt=(()=>{class e{constructor(){g(yk)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[wc,wc]})}return e})(),bk=(()=>{class e{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yy=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return e})();var Rn=function(e){return e[e.FADING_IN=0]="FADING_IN",e[e.VISIBLE=1]="VISIBLE",e[e.FADING_OUT=2]="FADING_OUT",e[e.HIDDEN=3]="HIDDEN",e}(Rn||{});class c9{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Rn.HIDDEN;constructor(n,t,i,r=!1){this._renderer=n,this.element=t,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}}const wk=_c({passive:!0,capture:!0});class d9{_events=new Map;addHandler(n,t,i,r){const o=this._events.get(t);if(o){const s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(t,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,wk)})}removeHandler(n,t,i){const r=this._events.get(n);if(!r)return;const o=r.get(t);o&&(o.delete(i),0===o.size&&r.delete(t),0===r.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,wk)))}_delegateEventHandler=n=>{const t=Gi(n);t&&this._events.get(n.type)?.forEach((i,r)=>{(r===t||r.contains(t))&&i.forEach(o=>o.handleEvent(n))})}}const Jh={enterDuration:225,exitDuration:150},Ck=_c({passive:!0,capture:!0}),Ek=["mousedown","touchstart"],Dk=["mouseup","mouseleave","touchend","touchcancel"];let h9=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return e})();class ef{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new d9;constructor(n,t,i,r,o){this._target=n,this._ngZone=t,this._platform=r,r.isBrowser&&(this._containerElement=la(i)),o&&o.get(Dr).load(h9)}fadeInRipple(n,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...Jh,...i.animation};i.centered&&(n=r.left+r.width/2,t=r.top+r.height/2);const s=i.radius||function f9(e,n,t){const i=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),r=Math.max(Math.abs(n-t.top),Math.abs(n-t.bottom));return Math.sqrt(i*i+r*r)}(n,t,r),a=n-r.left,l=t-r.top,c=o.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=a-s+"px",d.style.top=l-s+"px",d.style.height=2*s+"px",d.style.width=2*s+"px",null!=i.color&&(d.style.backgroundColor=i.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),h=u.transitionDuration,p="none"===u.transitionProperty||"0s"===h||"0s, 0s"===h||0===r.width&&0===r.height,m=new c9(this,d,i,p);d.style.transform="scale3d(1, 1, 1)",m.state=Rn.FADING_IN,i.persistent||(this._mostRecentTransientRipple=m);let _=null;return!p&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const y=()=>{_&&(_.fallbackTimer=null),clearTimeout(E),this._finishRippleTransition(m)},v=()=>this._destroyRipple(m),E=setTimeout(v,c+100);d.addEventListener("transitionend",y),d.addEventListener("transitioncancel",v),_={onTransitionEnd:y,onTransitionCancel:v,fallbackTimer:E}}),this._activeRipples.set(m,_),(p||!c)&&this._finishRippleTransition(m),m}fadeOutRipple(n){if(n.state===Rn.FADING_OUT||n.state===Rn.HIDDEN)return;const t=n.element,i={...Jh,...n.config.animation};t.style.transitionDuration=`${i.exitDuration}ms`,t.style.opacity="0",n.state=Rn.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){const t=la(n);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Ek.forEach(i=>{ef._eventManager.addHandler(this._ngZone,i,t,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Dk.forEach(t=>{this._triggerElement.addEventListener(t,this,Ck)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Rn.FADING_IN?this._startFadeOutTransition(n):n.state===Rn.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const t=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Rn.VISIBLE,!i&&(!t||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const t=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=Rn.HIDDEN,null!==t&&(n.element.removeEventListener("transitionend",t.onTransitionEnd),n.element.removeEventListener("transitioncancel",t.onTransitionCancel),null!==t.fallbackTimer&&clearTimeout(t.fallbackTimer)),n.element.remove()}_onMousedown(n){const t=pk(n),i=this._lastTouchStartEvent&&Date.now(){!n.config.persistent&&(n.state===Rn.VISIBLE||n.config.terminateOnPointerUp&&n.state===Rn.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(Ek.forEach(t=>ef._eventManager.removeHandler(t,n,this)),this._pointerUpEventsRegistered&&(Dk.forEach(t=>n.removeEventListener(t,this,Ck)),this._pointerUpEventsRegistered=!1))}}const xk=new C("mat-ripple-global-options");let Sk=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[Zt,Zt]})}return e})();const Ik={capture:!0},Mk=["focus","mousedown","mouseenter","touchstart"],by="mat-ripple-loader-uninitialized",wy="mat-ripple-loader-class-name",Tk="mat-ripple-loader-centered",tf="mat-ripple-loader-disabled";let Ak=(()=>{class e{_document=g(ae,{optional:!0});_animationMode=g(Gr,{optional:!0});_globalRippleOptions=g(xk,{optional:!0});_platform=g(sn);_ngZone=g(q);_injector=g(De);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(const t of Mk)this._document?.addEventListener(t,this._onInteraction,Ik)})}ngOnDestroy(){const t=this._hosts.keys();for(const i of t)this.destroyRipple(i);for(const i of Mk)this._document?.removeEventListener(i,this._onInteraction,Ik)}configureRipple(t,i){t.setAttribute(by,this._globalRippleOptions?.namespace??""),(i.className||!t.hasAttribute(wy))&&t.setAttribute(wy,i.className||""),i.centered&&t.setAttribute(Tk,""),i.disabled&&t.setAttribute(tf,"")}setDisabled(t,i){const r=this._hosts.get(t);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(t))):i?t.setAttribute(tf,""):t.removeAttribute(tf)}_onInteraction=t=>{const i=Gi(t);if(i instanceof HTMLElement){const r=i.closest(`[${by}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();const i=this._document.createElement("span");i.classList.add("mat-ripple",t.getAttribute(wy)),t.append(i);const r="NoopAnimations"===this._animationMode,o=this._globalRippleOptions,s=r?0:o?.animation?.enterDuration??Jh.enterDuration,a=r?0:o?.animation?.exitDuration??Jh.exitDuration,l={rippleDisabled:r||o?.disabled||t.hasAttribute(tf),rippleConfig:{centered:t.hasAttribute(Tk),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:s,exitDuration:a}}},c=new ef(l,this._ngZone,i,this._platform,this._injector),d=!l.rippleDisabled;d&&c.setupTriggerEvents(t),this._hosts.set(t,{target:l,renderer:c,hasSetUpEvents:d}),t.removeAttribute(by)}destroyRipple(t){const i=this._hosts.get(t);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(t))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Rk(e={}){const{connector:n=()=>new Q,resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return o=>{let s,a,l,c=0,d=!1,u=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,d=u=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return tt((m,_)=>{c++,!u&&!d&&f();const y=l=l??n();_.add(()=>{c--,0===c&&!u&&!d&&(a=Cy(p,r))}),y.subscribe(_),!s&&c>0&&(s=new Sa({next:v=>y.next(v),error:v=>{u=!0,f(),a=Cy(h,t,v),y.error(v)},complete:()=>{d=!0,f(),a=Cy(h,i),y.complete()}}),Wt(m).subscribe(s))})(o)}}function Cy(e,n,...t){if(!0===n)return void e();if(!1===n)return;const i=new Sa({next:()=>{i.unsubscribe(),e()}});return Wt(n(...t)).subscribe(i)}class nf{}class rf{}class Nn{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),o=t.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,i)=>{this.addHeaderEntry(i,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,i])=>{this.setHeaderEntries(t,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof Nn?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(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new Nn;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Nn?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,t);const r=("a"===n.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}addHeaderEntry(n,t){const i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(t):this.headers.set(i,[t])}setHeaderEntries(n,t){const i=(Array.isArray(t)?t:[t]).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(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class p9{encodeKey(n){return Nk(n)}encodeValue(n){return Nk(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const g9=/%(\d[a-f0-9])/gi,_9={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Nk(e){return encodeURIComponent(e).replace(g9,(n,t)=>_9[t]??n)}function sf(e){return`${e}`}class xr{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new p9,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function m9(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const i=n.fromObject[t],r=Array.isArray(i)?i.map(sf):[sf(i)];this.map.set(t,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new xr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(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":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(sf(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(sf(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class v9{map=new Map;set(n,t){return this.map.set(n,t),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 Fk(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Ok(e){return typeof Blob<"u"&&e instanceof Blob}function Pk(e){return typeof FormData<"u"&&e instanceof FormData}class Ec{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(n,t,i,r){let o;if(this.url=t,this.method=n.toUpperCase(),function y9(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?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 Nn,this.context??=new v9,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":af.set(h,n.setHeaders[h]),c)),n.setParams&&(d=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),d)),new Ec(t,i,s,{params:d,headers:c,context:u,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}}var Sr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Sr||{});class Ey{headers;status;statusText;url;ok;type;constructor(n,t=200,i="OK"){this.headers=n.headers||new Nn,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class af extends Ey{constructor(n={}){super(n)}type=Sr.ResponseHeader;clone(n={}){return new af({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class bo extends Ey{body;constructor(n={}){super(n),this.body=void 0!==n.body?n.body:null}type=Sr.Response;clone(n={}){return new bo({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ua extends Ey{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Dy(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let Dc=(()=>{class e{handler;constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof Ec)o=t;else{let l,c;l=r.headers instanceof Nn?r.headers:new Nn(r.headers),r.params&&(c=r.params instanceof xr?r.params:new xr({fromObject:r.params})),o=new Ec(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}const s=F(o).pipe(Ys(l=>this.handler.handle(l)));if(t instanceof Ec||"events"===r.observe)return s;const a=s.pipe(yn(l=>l instanceof bo));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(K(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(K(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(K(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(K(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new xr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,Dy(r,i))}post(t,i,r={}){return this.request("POST",t,Dy(r,i))}put(t,i,r={}){return this.request("PUT",t,Dy(r,i))}static \u0275fac=function(i){return new(i||e)(M(nf))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const E9=/^\)\]\}',?\n/;function Vk(e){if(e.url)return e.url;const n="X-Request-URL".toLocaleLowerCase();return e.headers.get(n)}let xy=(()=>{class e{fetchImpl=g(x9,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t));ngZone=g(q);handle(t){return new Be(i=>{const r=new AbortController;return this.doRequest(t,r.signal,i).then(Sy,o=>i.error(new ua({error:o}))),()=>r.abort()})}doRequest(t,i,r){var o=this;return ii(function*(){const s=o.createRequestInit(t);let a;try{const p=o.ngZone.runOutsideAngular(()=>o.fetchImpl(t.urlWithParams,{signal:i,...s}));(function S9(e){e.then(Sy,Sy)})(p),r.next({type:Sr.Sent}),a=yield p}catch(p){return void r.error(new ua({error:p,status:p.status??0,statusText:p.statusText,url:t.urlWithParams,headers:p.headers}))}const l=new Nn(a.headers),c=a.statusText,d=Vk(a)??t.urlWithParams;let u=a.status,f=null;if(t.reportProgress&&r.next(new af({headers:l,status:u,statusText:c,url:d})),a.body){const p=a.headers.get("content-length"),m=[],_=a.body.getReader();let v,E,y=0;const I=typeof Zone<"u"&&Zone.current;yield o.ngZone.runOutsideAngular(ii(function*(){for(;;){const{done:W,value:J}=yield _.read();if(W)break;if(m.push(J),y+=J.length,t.reportProgress){E="text"===t.responseType?(E??"")+(v??=new TextDecoder).decode(J,{stream:!0}):void 0;const be=()=>r.next({type:Sr.DownloadProgress,total:p?+p:void 0,loaded:y,partialText:E});I?I.run(be):be()}}}));const B=o.concatChunks(m,y);try{const W=a.headers.get("Content-Type")??"";f=o.parseBody(t,B,W)}catch(W){return void r.error(new ua({error:W,headers:new Nn(a.headers),status:a.status,statusText:a.statusText,url:Vk(a)??t.urlWithParams}))}}0===u&&(u=f?200:0),u>=200&&u<300?(r.next(new bo({body:f,headers:l,status:u,statusText:c,url:d})),r.complete()):r.error(new ua({error:f,headers:l,status:u,statusText:c,url:d}))})()}parseBody(t,i,r){switch(t.responseType){case"json":const o=(new TextDecoder).decode(i).replace(E9,"");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(t){const i={},r=t.withCredentials?"include":void 0;if(t.headers.forEach((o,s)=>i[o]=s.join(",")),t.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){const o=t.detectContentTypeHeader();null!==o&&(i["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:i,credentials:r}}concatChunks(t,i){const r=new Uint8Array(i);let o=0;for(const s of t)r.set(s,o),o+=s.length;return r}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();class x9{}function Sy(){}function Bk(e,n){return n(e)}function I9(e,n){return(t,i)=>n.intercept(t,{handle:r=>e(r,i)})}const T9=new C(""),xc=new C(""),jk=new C(""),Hk=new C("",{providedIn:"root",factory:()=>!0});function A9(){let e=null;return(n,t)=>{null===e&&(e=(g(T9,{optional:!0})??[]).reduceRight(I9,Bk));const i=g(Un);if(g(Hk)){const o=i.add();return e(n,t).pipe(Ks(()=>i.remove(o)))}return e(n,t)}}let Uk=(()=>{class e extends nf{backend;injector;chain=null;pendingTasks=g(Un);contributeToStability=g(Hk);constructor(t,i){super(),this.backend=t,this.injector=i}handle(t){if(null===this.chain){const i=Array.from(new Set([...this.injector.get(xc),...this.injector.get(jk,[])]));this.chain=i.reduceRight((r,o)=>function M9(e,n,t){return(i,r)=>xn(t,()=>n(i,o=>e(o,r)))}(r,o,this.injector),Bk)}if(this.contributeToStability){const i=this.pendingTasks.add();return this.chain(t,r=>this.backend.handle(r)).pipe(Ks(()=>this.pendingTasks.remove(i)))}return this.chain(t,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||e)(M(rf),M(Dt))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const O9=/^\)\]\}',?\n/;let $k=(()=>{class e{xhrFactory;constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new b(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?lt(i.\u0275loadImpl()):F(null)).pipe(vn(()=>new Be(o=>{const s=i.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((m,_)=>s.setRequestHeader(m,_.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const m=t.detectContentTypeHeader();null!==m&&s.setRequestHeader("Content-Type",m)}if(t.responseType){const m=t.responseType.toLowerCase();s.responseType="json"!==m?m:"text"}const a=t.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const m=s.statusText||"OK",_=new Nn(s.getAllResponseHeaders()),y=function P9(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return l=new af({headers:_,status:s.status,statusText:m,url:y}),l},d=()=>{let{headers:m,status:_,statusText:y,url:v}=c(),E=null;204!==_&&(E=typeof s.response>"u"?s.responseText:s.response),0===_&&(_=E?200:0);let I=_>=200&&_<300;if("json"===t.responseType&&"string"==typeof E){const B=E;E=E.replace(O9,"");try{E=""!==E?JSON.parse(E):null}catch(W){E=B,I&&(I=!1,E={error:W,text:E})}}I?(o.next(new bo({body:E,headers:m,status:_,statusText:y,url:v||void 0})),o.complete()):o.error(new ua({error:E,headers:m,status:_,statusText:y,url:v||void 0}))},u=m=>{const{url:_}=c(),y=new ua({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:_||void 0});o.error(y)};let f=!1;const h=m=>{f||(o.next(c()),f=!0);let _={type:Sr.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(_.total=m.total),"text"===t.responseType&&s.responseText&&(_.partialText=s.responseText),o.next(_)},p=m=>{let _={type:Sr.UploadProgress,loaded:m.loaded};m.lengthComputable&&(_.total=m.total),o.next(_)};return s.addEventListener("load",d),s.addEventListener("error",u),s.addEventListener("timeout",u),s.addEventListener("abort",u),t.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),o.next({type:Sr.Sent}),()=>{s.removeEventListener("error",u),s.removeEventListener("abort",u),s.removeEventListener("load",d),s.removeEventListener("timeout",u),t.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(i){return new(i||e)(M(qM))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const Iy=new C(""),Gk=new C("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),qk=new C("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Wk{}let B9=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(t,i,r){this.doc=t,this.platform=i,this.cookieName=r}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=kM(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(i){return new(i||e)(M(ae),M(ui),M(Gk))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function j9(e,n){const t=e.url.toLowerCase();if(!g(Iy)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const i=g(Wk).getToken(),r=g(qk);return null!=i&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,i)})),n(e)}var Ir=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Ir||{});function wo(e,n){return{\u0275kind:e,\u0275providers:n}}function H9(...e){const n=[Dc,$k,Uk,{provide:nf,useExisting:Uk},{provide:rf,useFactory:()=>g(xy,{optional:!0})??g($k)},{provide:xc,useValue:j9,multi:!0},{provide:Iy,useValue:!0},{provide:Wk,useClass:B9}];for(const t of e)n.push(...t.\u0275providers);return function er(e){return{\u0275providers:e}}(n)}const Zk=new C(""),Q9=["*"];let cf;function Sc(e){return function X9(){if(void 0===cf&&(cf=null,typeof window<"u")){const e=window;void 0!==e.trustedTypes&&(cf=e.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return cf}()?.createHTML(e)||e}function nR(e){return Error(`Unable to find icon with the name "${e}"`)}function iR(e){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${e}".`)}function rR(e){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${e}".`)}class Co{url;svgText;options;svgElement;constructor(n,t,i){this.url=n,this.svgText=t,this.options=i}}let df=(()=>{class e{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(t,i,r,o){this._httpClient=t,this._sanitizer=i,this._errorHandler=o,this._document=r}addSvgIcon(t,i,r){return this.addSvgIconInNamespace("",t,i,r)}addSvgIconLiteral(t,i,r){return this.addSvgIconLiteralInNamespace("",t,i,r)}addSvgIconInNamespace(t,i,r,o){return this._addSvgIconConfig(t,i,new Co(r,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,i,r,o){const s=this._sanitizer.sanitize(wt.HTML,r);if(!s)throw rR(r);const a=Sc(s);return this._addSvgIconConfig(t,i,new Co("",a,o))}addSvgIconSet(t,i){return this.addSvgIconSetInNamespace("",t,i)}addSvgIconSetLiteral(t,i){return this.addSvgIconSetLiteralInNamespace("",t,i)}addSvgIconSetInNamespace(t,i,r){return this._addSvgIconSetConfig(t,new Co(i,null,r))}addSvgIconSetLiteralInNamespace(t,i,r){const o=this._sanitizer.sanitize(wt.HTML,i);if(!o)throw rR(i);const s=Sc(o);return this._addSvgIconSetConfig(t,new Co("",s,r))}registerFontClassAlias(t,i=t){return this._fontCssClassesByAlias.set(t,i),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const i=this._sanitizer.sanitize(wt.RESOURCE_URL,t);if(!i)throw iR(t);const r=this._cachedIconsByUrl.get(i);return r?F(uf(r)):this._loadSvgIconFromConfig(new Co(t,null)).pipe(_t(o=>this._cachedIconsByUrl.set(i,o)),K(o=>uf(o)))}getNamedSvgIcon(t,i=""){const r=oR(i,t);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,t),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(t,s):nc(nR(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?F(uf(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(K(i=>uf(i)))}_getSvgFromIconSetConfigs(t,i){const r=this._extractIconWithNameFromAnySet(t,i);return r?F(r):function kk(...e){const n=LT(e),{args:t,keys:i}=VT(e),r=new Be(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let d=0;d{u||(u=!0,c--),a[d]=f},()=>l--,void 0,()=>{(!l||!u)&&(c||o.next(i?BT(i,a):a),o.complete())}))}});return n?r.pipe(kv(n)):r}(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(ho(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(wt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),F(null)})))).pipe(K(()=>{const s=this._extractIconWithNameFromAnySet(t,i);if(!s)throw nR(t);return s}))}_extractIconWithNameFromAnySet(t,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,t,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(_t(i=>t.svgText=i),K(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?F(null):this._fetchIcon(t).pipe(_t(i=>t.svgText=i))}_extractSvgIconFromSet(t,i,r){const o=t.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(Sc(""));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(t){const i=this._document.createElement("DIV");i.innerHTML=t;const r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(t){const i=this._svgElementFromString(Sc("")),r=t.attributes;for(let o=0;oSc(c)),Ks(()=>this._inProgressUrlFetches.delete(s)),Rk());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(t,i,r){return this._svgIconConfigs.set(oR(t,i),r),this}_addSvgIconSetConfig(t,i){const r=this._iconSetConfigs.get(t);return r?r.push(i):this._iconSetConfigs.set(t,[i]),this}_svgElementFromConfig(t){if(!t.svgElement){const i=this._svgElementFromString(t.svgText);this._setSvgAttributes(i,t.options),t.svgElement=i}return t.svgElement}_getIconConfigFromResolvers(t,i){for(let r=0;rn?n.pathname+n.search:""}}}),sR=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],oZ=sR.map(e=>`[${e}]`).join(", "),sZ=/^url\(['"]?#(.*?)['"]?\)$/;let aZ=(()=>{class e{_elementRef=g(Ce);_iconRegistry=g(df);_location=g(iZ);_errorHandler=g(fn);_defaultColor;get color(){return this._color||this._defaultColor}set color(t){this._color=t}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(t){const i=this._cleanupFontValue(t);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(t){const i=this._cleanupFontValue(t);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ze.EMPTY;constructor(){const t=g(new WP("aria-hidden"),{optional:!0}),i=g(nZ,{optional:!0});i&&(i.color&&(this.color=this._defaultColor=i.color),i.fontSet&&(this.fontSet=i.fontSet)),t||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];const i=t.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let i=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=t.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>t.classList.remove(r)),i.forEach(r=>t.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){const i=t.querySelectorAll(oZ),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{const a=i[o],l=a.getAttribute(s),c=l?l.match(sZ):null;if(c){let d=r.get(a);d||(d=[],r.set(a,d)),d.push({name:s,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[i,r]=this._splitIconName(t);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(yi(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){2&i&&(qe("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),Ol(r.color?"mat-"+r.color:""),It("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:[2,"inline","inline",Ae],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[qn],ngContentSelectors:Q9,decls:1,vars:0,template:function(i,r){1&i&&(Yn(),ot(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return e})(),lZ=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[Zt,Zt]})}return e})();function Ic(...e){const n=tc(e),t=function w5(e,n){return"number"==typeof Av(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?Wt(i[0]):Zs(t)(lt(i,n)):Xn}const ti=new C("");Promise.resolve(),Promise.resolve();var G=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(G||{});const Wi="*";function Fn(e){return{type:G.Style,styles:e,offset:null}}class Fc{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,t=0){this.totalTime=n+t}_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){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class dN{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let t=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==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){const t=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const uN=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],hN=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function EY(e,n){1&e&&(A(0,"span",3),ot(1,1),N())}function DY(e,n){1&e&&(A(0,"span",6),ot(1,2),N())}function xY(e,n){1&e&&(A(0,"span",3),ot(1,1),A(2,"span",8),function rC(){$.lFrame.currentNamespace="svg"}(),A(3,"svg",9),Ft(4,"path",10),N()()())}function SY(e,n){1&e&&(A(0,"span",6),ot(1,2),N())}const Qy=["*"],Df=new C("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),Xy=new C("MatChipAvatar"),Jy=new C("MatChipTrailingIcon"),eb=new C("MatChipRemove"),xf=new C("MatChip");let pa=(()=>{class e{_elementRef=g(Ce);_parentChip=g(xf);isInteractive=!0;_isPrimary=!0;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(t){this._disabled=t}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){g(Dr).load(yy),"BUTTON"===this._elementRef.nativeElement.nodeName&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(t){!this.disabled&&this.isInteractive&&this._isPrimary&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(t.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(i){return new(i||e)};static \u0275dir=O({type:e,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(i,r){1&i&&He("click",function(s){return r._handleClick(s)})("keydown",function(s){return r._handleKeydown(s)}),2&i&&(qe("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),It("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--trailing",!r._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",Ae],tabIndex:[2,"tabIndex","tabIndex",t=>null==t?-1:uM(t)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[qn]})}return e})(),ma=(()=>{class e{_changeDetectorRef=g(_r);_elementRef=g(Ce);_ngZone=g(q);_focusMonitor=g(py);_globalRippleOptions=g(xk,{optional:!0});_document=g(ae);_onFocus=new Q;_onBlur=new Q;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled;_allLeadingIcons;_allTrailingIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=g(_y).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_ariaDescriptionId=`${this.id}-aria-description`;_chipListDisabled=!1;_textElement;get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(t){this._value=t}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(t){this._disabled=t}_disabled=!1;removed=new fe;destroyed=new fe;basicChipAttrName="mat-basic-chip";leadingIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=g(Ak);_injector=g(De);constructor(){g(Dr).load(yy),g(Dr).load(YA);const t=g(Gr,{optional:!0});this._animationsDisabled="NoopAnimations"===t,this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const t=this._elementRef.nativeElement;this._isBasicChip=t.hasAttribute(this.basicChipAttrName)||t.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Ic(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(t){(8===t.keyCode&&!t.repeat||46===t.keyCode)&&(t.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(t){return this._getActions().find(i=>{const r=i._elementRef.nativeElement;return r===t||r.contains(t)})}_getActions(){const t=[];return this.primaryAction&&t.push(this.primaryAction),this.removeIcon&&t.push(this.removeIcon),this.trailingIcon&&t.push(this.trailingIcon),t}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const i=null!==t;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):hi(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})),{injector:this._injector}))})}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(1&i&&(gn(o,Xy,5),gn(o,Jy,5),gn(o,eb,5),gn(o,Xy,5),gn(o,Jy,5),gn(o,eb,5)),2&i){let s;Ot(s=Pt())&&(r.leadingIcon=s.first),Ot(s=Pt())&&(r.trailingIcon=s.first),Ot(s=Pt())&&(r.removeIcon=s.first),Ot(s=Pt())&&(r._allLeadingIcons=s),Ot(s=Pt())&&(r._allTrailingIcons=s),Ot(s=Pt())&&(r._allRemoveIcons=s)}},viewQuery:function(i,r){if(1&i&&Uu(pa,5),2&i){let o;Ot(o=Pt())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(i,r){1&i&&He("keydown",function(s){return r._handleKeydown(s)}),2&i&&(ro("id",r.id),qe("role",r.role)("aria-label",r.ariaLabel),Ol("mat-"+(r.color||"primary")),It("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",Ae],highlighted:[2,"highlighted","highlighted",Ae],disableRipple:[2,"disableRipple","disableRipple",Ae],disabled:[2,"disabled","disabled",Ae]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[pe([{provide:xf,useExisting:e}]),qn],ngContentSelectors:hN,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){1&i&&(Yn(uN),Ft(0,"span",0),A(1,"span",1)(2,"span",2),rt(3,EY,2,0,"span",3),A(4,"span",4),ot(5),Ft(6,"span",5),N()()(),rt(7,DY,2,0,"span",6)),2&i&&(P(2),ie("isInteractive",!1),P(),vi(r.leadingIcon?3:-1),P(4),vi(r._hasTrailingIcon()?7:-1))},dependencies:[pa],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width, 1px);border-radius:var(--mdc-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size, 24px);height:var(--mdc-chip-with-avatar-avatar-size, 24px);font-size:var(--mdc-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius, 8px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mdc-chip-with-icon-icon-size, 18px);height:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return e})(),tb=(()=>{class e extends ma{_defaultOptions=g(Df,{optional:!0});chipListSelectable=!0;_chipListMultiple=!1;_chipListHideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=t,this._changeDetectorRef.markForCheck()}_selectable=!0;get selected(){return this._selected}set selected(t){this._setSelectedState(t,!1,!0)}_selected=!1;get ariaSelected(){return this.selectable?this.selected.toString():null}basicChipAttrName="mat-basic-chip-option";selectionChange=new fe;ngOnInit(){super.ngOnInit(),this.role="presentation"}select(){this._setSelectedState(!0,!1,!0)}deselect(){this._setSelectedState(!1,!1,!0)}selectViaInteraction(){this._setSelectedState(!0,!0,!0)}toggleSelected(t=!1){return this._setSelectedState(!this.selected,t,!0),this.selected}_handlePrimaryActionInteraction(){this.disabled||(this.focus(),this.selectable&&this.toggleSelected(!0))}_hasLeadingGraphic(){return!!this.leadingIcon||!this._chipListHideSingleSelectionIndicator||this._chipListMultiple}_setSelectedState(t,i,r){t!==this.selected&&(this._selected=t,r&&this.selectionChange.emit({source:this,isUserInput:i,selected:this.selected}),this._changeDetectorRef.markForCheck())}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275cmp=it({type:e,selectors:[["mat-basic-chip-option"],["","mat-basic-chip-option",""],["mat-chip-option"],["","mat-chip-option",""]],hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-option"],hostVars:37,hostBindings:function(i,r){2&i&&(ro("id",r.id),qe("tabindex",null)("aria-label",null)("aria-description",null)("role",r.role),It("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--filter",!r._isBasicChip)("mdc-evolution-chip--selectable",!r._isBasicChip)("mat-mdc-chip-selected",r.selected)("mat-mdc-chip-multiple",r._chipListMultiple)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-chip-with-avatar",r.leadingIcon)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--selected",r.selected)("mdc-evolution-chip--selecting",!r._animationsDisabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-primary-graphic",r._hasLeadingGraphic())("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon()))},inputs:{selectable:[2,"selectable","selectable",Ae],selected:[2,"selected","selected",Ae]},outputs:{selectionChange:"selectionChange"},features:[pe([{provide:ma,useExisting:e},{provide:xf,useExisting:e}]),qn,oe],ngContentSelectors:hN,decls:10,vars:8,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","","role","option",3,"_allowFocusWhenDisabled"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"],[1,"cdk-visually-hidden",3,"id"],[1,"mdc-evolution-chip__checkmark"],["viewBox","-2 -3 30 30","focusable","false","aria-hidden","true",1,"mdc-evolution-chip__checkmark-svg"],["fill","none","stroke","currentColor","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-evolution-chip__checkmark-path"]],template:function(i,r){1&i&&(Yn(uN),Ft(0,"span",0),A(1,"span",1)(2,"button",2),rt(3,xY,5,0,"span",3),A(4,"span",4),ot(5),Ft(6,"span",5),N()()(),rt(7,SY,2,0,"span",6),A(8,"span",7),se(9),N()),2&i&&(P(2),ie("_allowFocusWhenDisabled",!0),qe("aria-selected",r.ariaSelected)("aria-label",r.ariaLabel)("aria-describedby",r._ariaDescriptionId),P(),vi(r._hasLeadingGraphic()?3:-1),P(4),vi(r._hasTrailingIcon()?7:-1),P(),ie("id",r._ariaDescriptionId),P(),so(r.ariaDescription))},dependencies:[pa],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-outline-width, 1px);border-radius:var(--mdc-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mdc-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mdc-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mdc-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mdc-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mdc-chip-with-avatar-avatar-size, 24px);height:var(--mdc-chip-with-avatar-avatar-size, 24px);font-size:var(--mdc-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius, 8px);height:var(--mdc-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mdc-chip-with-icon-icon-size, 18px);height:var(--mdc-chip-with-icon-icon-size, 18px);font-size:var(--mdc-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mdc-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mdc-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return e})(),nb=(()=>{class e{_elementRef=g(Ce);_changeDetectorRef=g(_r);_dir=g(vy,{optional:!0});_lastDestroyedFocusedChipIndex=null;_keyManager;_destroyed=new Q;_defaultRole="presentation";get chipFocusChanges(){return this._getChipStream(t=>t._onFocus)}get chipDestroyedChanges(){return this._getChipStream(t=>t.destroyed)}get chipRemovedChanges(){return this._getChipStream(t=>t.removed)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._syncChipsState()}_disabled=!1;get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}tabIndex=0;set role(t){this._explicitRole=t}_explicitRole=null;get focused(){return this._hasFocusedChip()}_chips;_chipActions=new qa;constructor(){}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(t=>t._hasFocus())}_syncChipsState(){this._chips?.forEach(t=>{t._chipListDisabled=this._disabled,t._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(t){this._originatesFromChip(t)&&this._keyManager.onKeydown(t)}_isValidIndex(t){return t>=0&&tthis._elementRef.nativeElement.tabIndex=t))}_getChipStream(t){return this._chips.changes.pipe(uo(null),vn(()=>Ic(...this._chips.map(t))))}_originatesFromChip(t){let i=t.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(uo(this._chips)).subscribe(t=>{const i=[];t.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new L6(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(t=>this._skipPredicate(t)),this.chipFocusChanges.pipe(Je(this._destroyed)).subscribe(({chip:t})=>{const i=t._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(Je(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t))}_skipPredicate(t){return!t.isInteractive||t.disabled}_trackChipSetChanges(){this._chips.changes.pipe(uo(null),Je(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Je(this._destroyed)).subscribe(t=>{const r=this._chips.toArray().indexOf(t.chip);this._isValidIndex(r)&&t.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const t=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[t];i.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(1&i&&gn(o,ma,5),2&i){let s;Ot(s=Pt())&&(r._chips=s)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){1&i&&He("keydown",function(s){return r._handleKeydown(s)}),2&i&&qe("role",r.role)},inputs:{disabled:[2,"disabled","disabled",Ae],role:"role",tabIndex:[2,"tabIndex","tabIndex",t=>null==t?0:uM(t)]},features:[qn],ngContentSelectors:Qy,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){1&i&&(Yn(),A(0,"div",0),ot(1),N())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return e})();class BY{source;value;constructor(n,t){this.source=n,this.value=t}}const jY={provide:ti,useExisting:Ie(()=>ib),multi:!0};let ib=(()=>{class e extends nb{_onTouched=()=>{};_onChange=()=>{};_defaultRole="listbox";_pendingInitialValue;_defaultOptions=g(Df,{optional:!0});get multiple(){return this._multiple}set multiple(t){this._multiple=t,this._syncListboxProperties()}_multiple=!1;get selected(){const t=this._chips.toArray().filter(i=>i.selected);return this.multiple?t:t[0]}ariaOrientation="horizontal";get selectable(){return this._selectable}set selectable(t){this._selectable=t,this._syncListboxProperties()}_selectable=!0;compareWith=(t,i)=>t===i;required=!1;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncListboxProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get chipSelectionChanges(){return this._getChipStream(t=>t.selectionChange)}get chipBlurChanges(){return this._getChipStream(t=>t._onBlur)}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}_value;change=new fe;_chips=void 0;ngAfterContentInit(){void 0!==this._pendingInitialValue&&Promise.resolve().then(()=>{this._setSelectionByValue(this._pendingInitialValue,!1),this._pendingInitialValue=void 0}),this._chips.changes.pipe(uo(null),Je(this._destroyed)).subscribe(()=>{this._syncListboxProperties()}),this.chipBlurChanges.pipe(Je(this._destroyed)).subscribe(()=>this._blur()),this.chipSelectionChanges.pipe(Je(this._destroyed)).subscribe(t=>{this.multiple||this._chips.forEach(i=>{i!==t.source&&i._setSelectedState(!1,!1,!1)}),t.isUserInput&&this._propagateChanges()})}focus(){if(this.disabled)return;const t=this._getFirstSelectedChip();t&&!t.disabled?t.focus():this._chips.length>0?this._keyManager.setFirstItemActive():this._elementRef.nativeElement.focus()}writeValue(t){this._chips?this._setSelectionByValue(t,!1):null!=t&&(this._pendingInitialValue=t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_setSelectionByValue(t,i=!0){this._clearSelection(),Array.isArray(t)?t.forEach(r=>this._selectValue(r,i)):this._selectValue(t,i)}_blur(){this.disabled||setTimeout(()=>{this.focused||this._markAsTouched()})}_keydown(t){9===t.keyCode&&super._allowFocusEscape()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck()}_propagateChanges(){let t=null;t=Array.isArray(this.selected)?this.selected.map(i=>i.value):this.selected?this.selected.value:void 0,this._value=t,this.change.emit(new BY(this,t)),this._onChange(t),this._changeDetectorRef.markForCheck()}_clearSelection(t){this._chips.forEach(i=>{i!==t&&i.deselect()})}_selectValue(t,i){const r=this._chips.find(o=>null!=o.value&&this.compareWith(o.value,t));return r&&(i?r.selectViaInteraction():r.select()),r}_syncListboxProperties(){this._chips&&Promise.resolve().then(()=>{this._chips.forEach(t=>{t._chipListMultiple=this.multiple,t.chipListSelectable=this._selectable,t._chipListHideSingleSelectionIndicator=this.hideSingleSelectionIndicator,t._changeDetectorRef.markForCheck()})})}_getFirstSelectedChip(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected}_skipPredicate(t){return!t.isInteractive}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275cmp=it({type:e,selectors:[["mat-chip-listbox"]],contentQueries:function(i,r,o){if(1&i&&gn(o,tb,5),2&i){let s;Ot(s=Pt())&&(r._chips=s)}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:11,hostBindings:function(i,r){1&i&&He("focus",function(){return r.focus()})("blur",function(){return r._blur()})("keydown",function(s){return r._keydown(s)}),2&i&&(ro("tabIndex",r.disabled||r.empty?-1:r.tabIndex),qe("role",r.role)("aria-describedby",r._ariaDescribedby||null)("aria-required",r.role?r.required:null)("aria-disabled",r.disabled.toString())("aria-multiselectable",r.multiple)("aria-orientation",r.ariaOrientation),It("mat-mdc-chip-list-disabled",r.disabled)("mat-mdc-chip-list-required",r.required))},inputs:{multiple:[2,"multiple","multiple",Ae],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",Ae],compareWith:"compareWith",required:[2,"required","required",Ae],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ae],value:"value"},outputs:{change:"change"},features:[pe([jY]),qn,oe],ngContentSelectors:Qy,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){1&i&&(Yn(),A(0,"div",0),ot(1),N())},styles:[".mat-mdc-chip-set{display:flex}.mat-mdc-chip-set:focus{outline:none}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%;margin-left:-8px;margin-right:0}.mat-mdc-chip-set .mdc-evolution-chip{margin:4px 0 4px 8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip-set__chips{margin-left:0;margin-right:-8px}[dir=rtl] .mat-mdc-chip-set .mdc-evolution-chip{margin-left:0;margin-right:8px}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return e})(),UY=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({providers:[bk,{provide:Df,useValue:{separatorKeyCodes:[13]}}],imports:[Zt,Sk,Zt]})}return e})();const zY=["addListener","removeListener"],$Y=["addEventListener","removeEventListener"],GY=["on","off"];function rb(e,n,t,i){if(ue(t)&&(i=t,t=void 0),i)return rb(e,n,t).pipe(kv(i));const[r,o]=function ZY(e){return ue(e.addEventListener)&&ue(e.removeEventListener)}(e)?$Y.map(s=>a=>e[s](n,a,t)):function qY(e){return ue(e.addListener)&&ue(e.removeListener)}(e)?zY.map(gN(e,n)):function WY(e){return ue(e.on)&&ue(e.off)}(e)?GY.map(gN(e,n)):[];if(!r&&Tv(e))return Tt(s=>rb(s,n,t))(Wt(e));if(!r)throw new TypeError("Invalid event target");return new Be(s=>{const a=(...l)=>s.next(1o(a)})}function gN(e,n){return t=>i=>e[t](n,i)}const Oc={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=Oc;i&&(n=i.requestAnimationFrame,t=i.cancelAnimationFrame);const r=n(o=>{t=void 0,e(o)});return new Ze(()=>t?.(r))},requestAnimationFrame(...e){const{delegate:n}=Oc;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=Oc;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};new class KY extends dy{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class YY extends ly{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=Oc.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(Oc.cancelAnimationFrame(t),n._scheduled=void 0)}});let ob,XY=1;const If={};function _N(e){return e in If&&(delete If[e],!0)}const JY={setImmediate(e){const n=XY++;return If[n]=!0,ob||(ob=Promise.resolve()),ob.then(()=>_N(n)&&e()),n},clearImmediate(e){_N(e)}},{setImmediate:eK,clearImmediate:tK}=JY,Mf={setImmediate(...e){const{delegate:n}=Mf;return(n?.setImmediate||eK)(...e)},clearImmediate(e){const{delegate:n}=Mf;return(n?.clearImmediate||tK)(e)},delegate:void 0};new class iK extends dy{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class nK extends ly{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=Mf.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(Mf.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))}});function vN(e=0,n,t=E6){let i=-1;return null!=n&&(PT(n)?t=n:i=n),new Be(r=>{let o=function sK(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function yN(e,n=uy){return function oK(e){return tt((n,t)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,t.next(c)}s&&t.complete()},l=()=>{o=null,s&&t.complete()};n.subscribe(ze(t,c=>{i=!0,r=c,o||Wt(e(c)).subscribe(o=ze(t,a,l))},()=>{s=!0,(!i||!o||o.closed)&&t.complete()}))})}(()=>vN(e,n))}let bN=(()=>{class e{_ngZone=g(q);_platform=g(sn);_document=g(ae,{optional:!0});constructor(){}_scrolled=new Q;_globalSubscription=null;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Be(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(yN(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):F()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(yn(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=la(i),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>rb(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wN=(()=>{class e{_platform=g(sn);_viewportSize;_change=new Q;_changeListener=t=>{this._change.next(t)};_document=g(ae,{optional:!0});constructor(){g(q).runOutsideAngular(()=>{if(this._platform.isBrowser){const i=this._getWindow();i.addEventListener("resize",this._changeListener),i.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(yN(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Pc=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})(),CN=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[wc,Pc,wc,Pc]})}return e})();class sb{_attachedHost;attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class EN extends sb{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(n,t,i,r,o){super(),this.component=n,this.viewContainerRef=t,this.injector=i,this.projectableNodes=o}}class cK extends sb{templateRef;viewContainerRef;context;injector;constructor(n,t,i,r){super(),this.templateRef=n,this.viewContainerRef=t,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,t=this.context){return this.context=t,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class dK extends sb{element;constructor(n){super(),this.element=n instanceof Ce?n.nativeElement:n}}class uK{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof EN?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof cK?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof dK?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}attachDomPortal=null;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)}}class hK extends uK{outletElement;_appRef;_defaultInjector;_document;constructor(n,t,i,r,o){super(),this.outletElement=n,this._appRef=i,this._defaultInjector=r,this._document=o}attachComponentPortal(n){let t;if(n.viewContainerRef){const i=n.injector||n.viewContainerRef.injector,r=i.get(dr,null,{optional:!0})||void 0;t=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else t=_M(n.component,{elementInjector:n.injector||this._defaultInjector||De.NULL,environmentInjector:this._appRef.injector,projectableNodes:n.projectableNodes||void 0}),this._appRef.attachView(t.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(t.hostView),t.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=n,t}attachTemplatePortal(n){let t=n.viewContainerRef,i=t.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{const t=n.element,i=this._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),this.outletElement.appendChild(t),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let DN=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})();const xN=n6();class fK{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(n,t){this._viewportRuler=n,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=ct(-this._previousScrollPosition.left),n.style.top=ct(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.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"),xN&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),xN&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class pK{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,t,i,r){this._scrollDispatcher=n,this._ngZone=t,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(yn(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-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}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class SN{enable(){}disable(){}attach(){}}function ab(e,n){return n.some(t=>e.bottomt.bottom||e.rightt.right)}function IN(e,n){return n.some(t=>e.topt.bottom||e.leftt.right)}class mK{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,t,i,r){this._scrollDispatcher=n,this._viewportRuler=t,this._ngZone=i,this._config=r}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();ab(t,[{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}}let gK=(()=>{class e{_scrollDispatcher=g(bN);_viewportRuler=g(wN);_ngZone=g(q);_document=g(ae);constructor(){}noop=()=>new SN;close=t=>new pK(this._scrollDispatcher,this._ngZone,this._viewportRuler,t);block=()=>new fK(this._viewportRuler,this._document);reposition=t=>new mK(this._scrollDispatcher,this._viewportRuler,this._ngZone,t);static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class _K{positionStrategy;scrollStrategy=new SN;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){const t=Object.keys(n);for(const i of t)void 0!==n[i]&&(this[i]=n[i])}}}class vK{connectionPair;scrollableViewProperties;constructor(n,t){this.connectionPair=n,this.scrollableViewProperties=t}}let MN=(()=>{class e{_attachedOverlays=[];_document=g(ae);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yK=(()=>{class e extends MN{_ngZone=g(q,{optional:!0});add(t){super.add(t),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)}_keydownListener=t=>{const i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){const o=i[r]._keydownEvents;this._ngZone?this._ngZone.run(()=>o.next(t)):o.next(t);break}};static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),bK=(()=>{class e extends MN{_platform=g(sn);_ngZone=g(q,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(t){if(super.add(t),!this._isAttached){const 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){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=t=>{this._pointerDownEventTarget=Gi(t)};_clickListener=t=>{const i=Gi(t),r="click"===t.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){const a=o[s];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(TN(a.overlayElement,i)||TN(a.overlayElement,r))break;const l=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(t)):l.next(t)}};static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function TN(e,n){const t=typeof ShadowRoot<"u"&&ShadowRoot;let i=n;for(;i;){if(i===e)return!0;i=t&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}let AN=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return e})(),kN=(()=>{class e{_platform=g(sn);_containerElement;_document=g(ae);_styleLoader=g(Dr);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||ZA()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;othis._backdropClick.next(n);_backdropTransitionendHandler=n=>{this._disposeBackdrop(n.target)};_previousHostParent;_keydownEvents=new Q;_outsidePointerEvents=new Q;_renders=new Q;_afterRenderRef;_afterNextRenderRef;constructor(n,t,i,r,o,s,a,l,c,d=!1,u){this._portalOutlet=n,this._host=t,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=d,this._injector=u,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=Lt(()=>function fE(e,n){!n?.injector&&Zo();const t=n?.injector??g(De);return bt("NgAfterRender"),pE(e,t,n,!1)}(()=>{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);const t=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=hi(()=>{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),"function"==typeof t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const 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={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...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(){const n=this._config.direction;return n?"string"==typeof n?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;const n=this._pane.style;n.width=ct(this._config.width),n.height=ct(this._config.height),n.minWidth=ct(this._config.minWidth),n.minHeight=ct(this._config.minHeight),n.maxWidth=ct(this._config.maxWidth),n.maxHeight=ct(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const 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(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);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,t,i){const r=Zh(t||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const n=this._renders.pipe(Je(Ic(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(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(){const 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)}}const RN="cdk-overlay-connected-position-bounding-box",CK=/([A-Za-z%]+)$/;class EK{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new Q;_resizeSubscription=Ze.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(RN),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)return void this.reapplyLastPosition();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();const n=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,r,a),c=this._getOverlayPoint(l,t,a),d=this._getOverlayFit(c,t,i,a);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(d,c,i)?o.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleAreal&&(l=d,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Io(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(RN),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,t)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(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,t,i){let r,o;if("center"==i.originX)r=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r="start"==i.originX?s:a}return t.left<0&&(r-=t.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(n,t,i){let r,o;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,t,i,r){const o=FN(t);let{x:s,y:a}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let f=0-a,h=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),m=this._subtractOverflows(o.height,f,h),_=p*m;return{visibleArea:_,isCompletelyWithinViewport:o.width*o.height===_,fitsInViewportVertically:m===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(n,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,o=i.right-t.x,s=NN(this._overlayRef.getConfig().minHeight),a=NN(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=s&&s<=r)&&(n.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(n,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=FN(t),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0);let d=0,u=0;return d=r.width<=o.width?c||-s:n.xp&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)f=i.width-n.x+2*this._viewportMargin,d=n.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)u=n.x,d=i.right-n.x;else{const h=Math.min(i.right-n.x+i.left,n.x),p=this._lastBoundingBoxSize.width;d=2*h,u=n.x-h,d>p&&!this._isInitialRender&&!this._growAfterOpen&&(u=n.x-p/2)}return{top:s,left:u,bottom:a,right:f,width:d,height:o}}_setBoundingBoxStyles(n,t){const i=this._calculateBoundingBoxRect(n,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=ct(i.height),r.top=ct(i.top),r.bottom=ct(i.bottom),r.width=ct(i.width),r.left=ct(i.left),r.right=ct(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=ct(o)),s&&(r.maxWidth=ct(s))}this._lastBoundingBoxSize=i,Io(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Io(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Io(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,t){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const d=this._viewportRuler.getViewportScrollPosition();Io(i,this._getExactOverlayY(t,n,d)),Io(i,this._getExactOverlayX(t,n,d))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=ct(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ct(s.maxWidth):o&&(i.maxWidth="")),Io(this._pane.style,i)}_getExactOverlayY(n,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=ct(o.y),r}_getExactOverlayX(n,t,i){let s,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=ct(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:IN(n,i),isOriginOutsideView:ab(n,i),isOverlayClipped:IN(t,i),isOverlayOutsideView:ab(t,i)}}_subtractOverflows(n,...t){return t.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,t=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+t-this._viewportMargin,width:n-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,t){return"x"===t?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&Zh(n).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Ce)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const t=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+t,height:i,width:t}}}function Io(e,n){for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function NN(e){if("number"!=typeof e&&null!=e){const[n,t]=e.split(CK);return t&&"px"!==t?null:parseFloat(n)}return e||null}function FN(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const ON="cdk-global-overlay-wrapper";class xK{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(n){const t=n.getConfig();this._overlayRef=n,this._width&&!t.width&&n.updateSize({width:this._width}),this._height&&!t.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(ON),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;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),d=this._xPosition,u=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let h="",p="",m="";l?m="flex-start":"center"===d?(m="center",f?p=u:h=u):f?"left"===d||"end"===d?(m="flex-end",h=u):("right"===d||"start"===d)&&(m="flex-start",p=u):"left"===d||"start"===d?(m="flex-start",h=u):("right"===d||"end"===d)&&(m="flex-end",p=u),n.position=this._cssPosition,n.marginLeft=l?"0":h,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":p,t.justifyContent=m,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(ON),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let SK=(()=>{class e{_viewportRuler=g(wN);_document=g(ae);_platform=g(sn);_overlayContainer=g(kN);constructor(){}global(){return new xK}flexibleConnectedTo(t){return new EK(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ga=(()=>{class e{scrollStrategies=g(gK);_overlayContainer=g(kN);_positionBuilder=g(SK);_keyboardDispatcher=g(yK);_injector=g(De);_ngZone=g(q);_document=g(ae);_directionality=g(vy);_location=g(Gs);_outsideClickDispatcher=g(bK);_animationsModuleType=g(Gr,{optional:!0});_idGenerator=g(_y);_appRef;_styleLoader=g(Dr);constructor(){}create(t){this._styleLoader.load(AN);const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new _K(t);return s.direction=s.direction||this._directionality.value,new wK(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(Dt))}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id=this._idGenerator.getId("cdk-overlay-"),i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(rn)),new hK(t,null,this._appRef,this._injector,this._document)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const TK={provide:new C("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const e=g(ga);return()=>e.scrollStrategies.reposition()}}),deps:[ga],useFactory:function MK(e){return()=>e.scrollStrategies.reposition()}};let AK=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({providers:[ga,TK],imports:[wc,DN,CN,CN]})}return e})();const kK=["tooltip"],LN=new C("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const e=g(ga);return()=>e.scrollStrategies.reposition({scrollThrottle:20})}}),NK={provide:LN,deps:[ga],useFactory:function RK(e){return()=>e.scrollStrategies.reposition({scrollThrottle:20})}},OK=new C("mat-tooltip-default-options",{providedIn:"root",factory:function FK(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),VN="tooltip-panel",BN=_c({passive:!0});let jK=(()=>{class e{_overlay=g(ga);_elementRef=g(Ce);_scrollDispatcher=g(bN);_viewContainerRef=g(nn);_ngZone=g(q);_platform=g(sn);_ariaDescriber=g(F6);_focusMonitor=g(py);_dir=g(vy);_injector=g(De);_defaultOptions=g(OK,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_scrollStrategy=g(LN);_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=HK;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=ik(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){const i=ik(t);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=rk(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=rk(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){const i=this._message;this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_document=g(ae);_touchstartTimeout=null;_destroyed=new Q;constructor(){const t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._dir.change.pipe(Je(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Je(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{t.removeEventListener(i,r,BN)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const r=this._createOverlay(i);this._detach(),this._portal=this._portal||new EN(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(t):(i._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&o._origin instanceof Ce)return this._overlayRef;this._detach()}const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&t||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(Je(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${VN}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Je(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Je(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!qh(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const i=t.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(t){const r=!this._dir||"ltr"==this._dir.value;return"top"===t.originY?t.offsetY=-8:"bottom"===t.originY?t.offsetY=8:"start"===t.originX?t.offsetX=r?-8:8:"end"===t.originX&&(t.offsetX=r?8:-8),t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&t||"right"==i&&!t?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&t||"left"==i&&!t)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),hi(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){const{overlayY:i,originX:r,originY:o}=t;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${VN}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{let i;this._setupPointerExitEventsIfNeeded(),void 0!==t.x&&void 0!==t.y&&(i=t),this.show(void 0,i)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{const i=t.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{const r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,BN)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(t.clientX,t.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const i=this._elementRef.nativeElement,r=i.style;("on"===t||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===t||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static \u0275fac=function(i){return new(i||e)};static \u0275dir=O({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){2&i&&It("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return e})(),HK=(()=>{class e{_changeDetectorRef=g(_r);_elementRef=g(Ce);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Q;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){const t=g(Gr,{optional:!0});this._animationsDisabled="NoopAnimations"===t}show(t){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>24&&t.width>=200}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(t?o:r),i.classList.add(t?r:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(1&i&&Uu(kK,7),2&i){let o;Ot(o=Pt())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){1&i&&He("mouseleave",function(s){return r._handleMouseLeave(s)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(1&i){const o=Lu();A(0,"div",1,0),He("animationend",function(a){return wd(o),Cd(r._handleAnimationEnd(a))}),A(2,"div",2),se(3),N()()}2&i&&(It("mdc-tooltip--multiline",r._isMultiline),ie("ngClass",r.tooltipClass),P(3),so(r.message))},dependencies:[NM],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return e})(),UK=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({providers:[NK],imports:[X6,AK,Zt,Zt,Pc]})}return e})();function zK(e,n){if(1&e){const t=Lu();A(0,"a",10),He("click",function(r){return wd(t),Cd(r.stopPropagation())}),se(1),N()}if(2&e){const t=Ue().$implicit;C_("href","https://store.steampowered.com/app/"+t.titleId,_s),P(),Tn(" ",t.game_name," ")}}function $K(e,n){if(1&e&&(A(0,"div"),se(1),N()),2&e){const t=Ue().$implicit;P(),Tn(" ",t.game_name," ")}}function GK(e,n){if(1&e){const t=Lu();A(0,"mat-chip-option",11),He("click",function(r){const o=wd(t).$implicit,s=Ue().$implicit;return Cd(Ue().onEngineClicked(r,s,o.key))}),se(1),N()}if(2&e){const t=n.$implicit,i=Ue().$implicit;ie("selected",Ue().titleEnginePicked[i.titleId]==t.key)("value",t.key),P(),Tn(" ",t.key," ")}}function qK(e,n){1&e&&(A(0,"mat-icon",29),se(1," sports_esports "),N()),2&e&&zt("color","darkgray")}function WK(e,n){1&e&&(A(0,"mat-icon",30),se(1," sports_esports "),N()),2&e&&zt("color","red")}function ZK(e,n){1&e&&(A(0,"mat-icon",31),se(1," sports_esports "),N()),2&e&&zt("color","green")}function YK(e,n){1&e&&(A(0,"mat-icon",32),se(1," sports_esports "),N()),2&e&&zt("color","yellow")}function KK(e,n){1&e&&(A(0,"mat-icon",33),se(1," sports_esports "),N()),2&e&&zt("color","yellow")}function QK(e,n){1&e&&(A(0,"mat-icon",34),se(1," sports_esports "),N()),2&e&&zt("color","yellow")}function XK(e,n){1&e&&(A(0,"mat-icon",35),se(1," cloud_off "),N()),2&e&&zt("color","darkgray")}function JK(e,n){if(1&e&&(A(0,"mat-icon",14),se(1," cloud "),N()),2&e){const t=Ue(2).$implicit,i=Ue();zt("color","red"),ie("matTooltip","Game Has Cloud Saves But Not Supported Due to "+i.translate_key(t.cloudIssueReason))}}function eQ(e,n){1&e&&(A(0,"mat-icon",36),se(1," cloud "),N()),2&e&&zt("color","darkgray")}function tQ(e,n){1&e&&(A(0,"mat-icon",37),se(1," cloud "),N()),2&e&&zt("color","green")}function nQ(e,n){if(1&e&&(A(0,"div",9)(1,"div",25),se(2,"Version"),N(),A(3,"div",26),se(4),N()()),2&e){const t=Ue(2).$implicit,i=Ue();P(4),Tn(" ",t.engines[i.titleEnginePicked[t.titleId]].version," ")}}function iQ(e,n){if(1&e&&(A(0,"div"),se(1),N()),2&e){const t=Ue().$implicit;P(),Tn(" ",t.label," ")}}function rQ(e,n){if(1&e&&(A(0,"div"),se(1),N()),2&e){const t=Ue().$implicit,i=Ue(5);P(),Tn(" ",i.NOTICE_MAP[t.value]," ")}}function oQ(e,n){if(1&e&&(A(0,"div"),se(1),N()),2&e){const t=Ue().$implicit,i=Ue(5);P(),Tn(" ",i.NOTICE_MAP[t.key]," ")}}function sQ(e,n){if(1&e&&(A(0,"li"),rt(1,iQ,2,1,"div",6)(2,rQ,2,1,"div",6)(3,oQ,2,1,"div",6),N()),2&e){const t=n.$implicit;P(),ie("ngIf",t.label),P(),ie("ngIf",t.value),P(),ie("ngIf",t.key&&!t.value&&!t.label)}}function aQ(e,n){if(1&e&&(Bs(0),rt(1,sQ,4,3,"li",38),js()),2&e){const t=Ue(3).$implicit,i=Ue();P(),ie("ngForOf",t.engines[i.titleEnginePicked[t.titleId]].notices)}}function lQ(e,n){if(1&e&&(Bs(0),A(1,"div",12)(2,"ul"),rt(3,aQ,2,1,"ng-container",6),N()(),js()),2&e){const t=Ue(2).$implicit,i=Ue();P(3),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].notices)}}function cQ(e,n){if(1&e&&(Bs(0),A(1,"div",12)(2,"div",9)(3,"div",13)(4,"mat-icon",14),se(5," install_desktop "),N(),A(6,"mat-icon",14),se(7," desktop_windows "),N(),A(8,"mat-icon",14),se(9," construction "),N(),rt(10,qK,2,2,"mat-icon",15)(11,WK,2,2,"mat-icon",16)(12,ZK,2,2,"mat-icon",17)(13,YK,2,2,"mat-icon",18)(14,KK,2,2,"mat-icon",19)(15,QK,2,2,"mat-icon",20)(16,XK,2,2,"mat-icon",21)(17,JK,2,3,"mat-icon",22)(18,eQ,2,2,"mat-icon",23)(19,tQ,2,2,"mat-icon",24),N()(),A(20,"div",9)(21,"div",25),se(22,"Engine"),N(),A(23,"div",26)(24,"a",27),se(25),N()()(),A(26,"div",9)(27,"div",25),se(28,"License"),N(),A(29,"div",26)(30,"a",27),se(31),N()()(),rt(32,nQ,5,1,"div",28),A(33,"div",9)(34,"div",25),se(35,"Contributor"),N(),A(36,"div",26)(37,"a",27),se(38),N()()()(),rt(39,lQ,4,1,"ng-container",6),js()),2&e){const t=Ue().$implicit,i=Ue();P(4),zt("color",t.engines[i.titleEnginePicked[t.titleId]].manualSteps?"yellow":"green"),ie("matTooltip",t.engines[i.titleEnginePicked[t.titleId]].manualSteps?"Manual Steps Required":"Automatic Installation"),P(2),zt("color",t.engines[i.titleEnginePicked[t.titleId]].steamOverlayDisabled?"red":"green"),ie("matTooltip",t.engines[i.titleEnginePicked[t.titleId]].steamOverlayDisabled?"Steam Overlay Disabled":"Steam Overlay Enabled"),P(2),zt("color",t.engines[i.titleEnginePicked[t.titleId]].inProgress?"yellow":"green"),ie("matTooltip",t.engines[i.titleEnginePicked[t.titleId]].inProgress?"Engine May Have Missing Features":"Engine Considered Feature Complete"),P(2),ie("ngIf",!(t.engines[i.titleEnginePicked[t.titleId]].controllerNotSupported||t.engines[i.titleEnginePicked[t.titleId]].controllerSupported||t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedSteamChanges||t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGame||t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGameAndSteam)),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerNotSupported),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupported&&t.controllerSteamDefault),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGame&&t.controllerSteamDefault),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupported&&!t.controllerSteamDefault),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].controllerSupportedManualGame&&!t.controllerSteamDefault),P(),ie("ngIf",t.cloudNotAvailable),P(),ie("ngIf",t.cloudAvailable&&t.cloudIssue),P(),ie("ngIf",t.cloudAvailable&&!t.cloudSupported&&!t.cloudIssue),P(),ie("ngIf",t.cloudAvailable&&t.cloudSupported),P(5),ie("href",t.engines[i.titleEnginePicked[t.titleId]].engine_link,_s),P(),so(i.titleEnginePicked[t.titleId]),P(5),ie("href",t.engines[i.titleEnginePicked[t.titleId]].license_link,_s),P(),Tn(" ",t.engines[i.titleEnginePicked[t.titleId]].license," "),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].version),P(5),ie("href",t.engines[i.titleEnginePicked[t.titleId]].author_link,_s),P(),Tn(" ",t.engines[i.titleEnginePicked[t.titleId]].author," "),P(),ie("ngIf",t.engines[i.titleEnginePicked[t.titleId]].notices||t.notices)}}function dQ(e,n){if(1&e&&(A(0,"div",2)(1,"div",3)(2,"div",4),rt(3,zK,2,2,"a",5)(4,$K,2,1,"div",6),N(),A(5,"div",7)(6,"mat-chip-listbox"),rt(7,GK,2,3,"mat-chip-option",8),$u(8,"keyvalue"),N()()(),A(9,"div",9),rt(10,cQ,40,27,"ng-container",6),N()()),2&e){const t=n.$implicit,i=Ue();P(3),ie("ngIf",!t.isDefault),P(),ie("ngIf",t.isDefault),P(3),ie("ngForOf",Gu(8,4,t.engines)),P(3),ie("ngIf",i.titleEnginePicked[t.titleId])}}let uQ=(()=>{class e{constructor(){this.titles=[],this.titleEnginePicked={},this.NOTICE_MAP={},this.runControllerCheck=!0}ngOnInit(){var t=this;return ii(function*(){const i=yield fetch("/packagessniper_v2.json");t.titles=yield i.json(),t.enginesToMap(),t.noticeTranslationToMap(),t.sortTitles()})()}noticeTranslationToMap(){for(let t of this.titles.notice_translation)this.NOTICE_MAP[t.key]=t.value}enginesToMap(){const t={};for(let i of this.titles.engines)t[i.engine_name]=i;this.titles.engines=t}translate_key(t){return this.NOTICE_MAP[t]}processTitle(t){const i=t.app_id;if(t.engines={},t.cloudAvailable&&!t.cloudSupported&&!t.cloudIssue&&console.error(`title of ${t.game_name} has unknown cloud save feature state`),t.engine_name){const o=t.engine_name;this.titles.engines[o]?t.engines[o]=this.titles.engines[o]:console.error(`engineName of ${o} not found from title of ${i}`)}else if(t.engine_names)for(let o of t.engine_names)this.titles.engines[o]?t.engines[o]=this.titles.engines[o]:console.error(`engineName of ${o} not found from title of ${i}`);else if(t.choices)for(let o of t.choices){const s=o.name;this.titles.engines[s]?t.engines[s]=this.titles.engines[s]:o.engine_name&&this.titles.engines[o.engine_name]?t.engines[o.engine_name]=this.titles.engines[o.engine_name]:console.error(`engineName of ${s} not found from title of ${i}`)}else console.error(`missing information for ${i}`);const r=Object.keys(t.engines);r.sort(),this.titleEnginePicked[i]=r[0];for(let o in t.engines){const s=JSON.parse(JSON.stringify(t.engines[o]));if(t.notices){s.notices||(s.notices=[]);for(let a of t.notices)s.notices.push(a)}if(t.removeNotices){const a=[];for(let l of s.notices){let c=!0;for(let d of t.removeNotices)if(l.key===d){c=!1;break}c&&a.push(l)}s.notices=a}if(s.notices)for(let a of s.notices)"manual_steps"===a.key&&(s.manualSteps=!0),"steam_overlay_disabled"===a.key&&(s.steamOverlayDisabled=!0),"in_progress"===a.key&&(s.inProgress=!0);t.engines[o]=s}return t}sortTitles(){const t=[];let i=this.titles.default_engine;if(this.runControllerCheck)for(const r in this.titles.engines){const o=this.titles.engines[r];let s=!1;for(let a of Object.keys(o))if(-1!==a.indexOf("controller")){s=!0;break}s||console.error(`missing controller data for ${o.engine_name}`)}for(let r of this.titles.games)r.titleId=r.app_id,r=this.processTitle(r),t.push(r);t.sort(function(r,o){return r.game_nameo.game_name?1:0}),i&&(i.isDefault=!0,i.titleId="default",i.app_id="default",i=this.processTitle(i),t.unshift(i)),this.titles=t}onEngineClicked(t,i,r){this.titleEnginePicked[i.titleId]=r}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=it({type:e,selectors:[["app-packages"]],standalone:!1,decls:2,vars:1,consts:[[1,"container-fluid","page-wrapper"],["class","row game-row",4,"ngFor","ngForOf"],[1,"row","game-row"],[1,"row","header-wrapper"],[1,"col-sm-6","game-title"],["target","_blank",3,"href","click",4,"ngIf"],[4,"ngIf"],[1,"col-sm-6","game-choices"],[3,"selected","value","click",4,"ngFor","ngForOf"],[1,"row"],["target","_blank",3,"click","href"],[3,"click","selected","value"],[1,"col-12","col-md-6"],[1,"col-12","status-icons"],[3,"matTooltip"],["matTooltip","Unknown Controller Support",3,"color",4,"ngIf"],["matTooltip","Engine Does Not Have Native Controller Support",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support And Works Out of the Box",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game Settings",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual Steam Settings",3,"color",4,"ngIf"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game and Steam Settings",3,"color",4,"ngIf"],["matTooltip","Game Does Not Have Cloud Saves",3,"color",4,"ngIf"],[3,"matTooltip","color",4,"ngIf"],["matTooltip","Game Has Cloud Saves But Unknown Status",3,"color",4,"ngIf"],["matTooltip","Cloud Saves Supported",3,"color",4,"ngIf"],[1,"col-5","col-md-4","col-lg-3"],[1,"col-7","col-md-8"],["target","_blank",3,"href"],["class","row",4,"ngIf"],["matTooltip","Unknown Controller Support"],["matTooltip","Engine Does Not Have Native Controller Support"],["matTooltip","Engine Has Native Controller Support And Works Out of the Box"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game Settings"],["matTooltip","Engine Has Native Controller Support But Needs Manual Steam Settings"],["matTooltip","Engine Has Native Controller Support But Needs Manual In-Game and Steam Settings"],["matTooltip","Game Does Not Have Cloud Saves"],["matTooltip","Game Has Cloud Saves But Unknown Status"],["matTooltip","Cloud Saves Supported"],[4,"ngFor","ngForOf"]],template:function(i,r){1&i&&(A(0,"div",0),rt(1,dQ,11,6,"div",1),N()),2&i&&(P(),ie("ngForOf",r.titles))},dependencies:[OM,LM,aZ,ib,tb,jK,HM],styles:[".packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.packages-wrapper[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}.packages-wrapper[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%] + .mat-form-field[_ngcontent-%COMP%]{margin-left:8px}.mat-chip[_ngcontent-%COMP%]{cursor:pointer!important}.page-wrapper[_ngcontent-%COMP%]{padding-top:1rem;color:#fff;max-width:1200px}.header-wrapper[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6;padding-bottom:.5rem;margin-bottom:.5rem;padding-top:.5rem}.game-row[_ngcontent-%COMP%]{background:#424242;padding:0 0 0 24px;margin-bottom:1rem;margin-left:15px;margin-right:15px;padding-bottom:.5rem}.game-title[_ngcontent-%COMP%], .engine-choices[_ngcontent-%COMP%]{align-self:center;margin-bottom:.5rem}div[_ngcontent-%COMP%]{word-break:break-word}.status-icons[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:.625rem}"]})}}return e})();class hQ extends Q{constructor(n=1/0,t=1/0,i=cy){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;t||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;snull};function Se(e,n=""){let t="string"==typeof e?e:e.source;const i={replace:(r,o)=>{let s="string"==typeof o?o:o.source;return s=s.replace(Kt.caret,"$1"),t=t.replace(r,s),i},getRegex:()=>new RegExp(t,n)};return i}const Kt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Vc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,HN=/(?:[*+-]|\d{1,9}[.)])/,UN=Se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,HN).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),cb=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,db=/(?!\s*\])(?:\\.|[^\[\]\\])+/,yQ=Se(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",db).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),bQ=Se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,HN).getRegex(),Tf="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ub=/|$))/,wQ=Se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",ub).replace("tag",Tf).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),zN=Se(cb).replace("hr",Vc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Tf).getRegex(),hb={blockquote:Se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",zN).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:yQ,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Vc,html:wQ,lheading:UN,list:bQ,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:zN,table:Lc,text:/^[^\n]+/},$N=Se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Vc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Tf).getRegex(),CQ={...hb,table:$N,paragraph:Se(cb).replace("hr",Vc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",$N).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Tf).getRegex()},EQ={...hb,html:Se("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ub).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Lc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Se(cb).replace("hr",Vc).replace("heading"," *#{1,6} *[^\n]").replace("lheading",UN).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},GN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,qN=/^( {2,}|\\)\n(?!\s*$)/,Af=/[\p{P}\p{S}]/u,fb=/[\s\p{P}\p{S}]/u,WN=/[^\s\p{P}\p{S}]/u,SQ=Se(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,fb).getRegex(),MQ=Se(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,Af).getRegex(),TQ=Se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,WN).replace(/punctSpace/g,fb).replace(/punct/g,Af).getRegex(),AQ=Se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,WN).replace(/punctSpace/g,fb).replace(/punct/g,Af).getRegex(),kQ=Se(/\\(punct)/,"gu").replace(/punct/g,Af).getRegex(),RQ=Se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),NQ=Se(ub).replace("(?:--\x3e|$)","--\x3e").getRegex(),FQ=Se("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",NQ).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),kf=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,OQ=Se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",kf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ZN=Se(/^!?\[(label)\]\[(ref)\]/).replace("label",kf).replace("ref",db).getRegex(),YN=Se(/^!?\[(ref)\](?:\[\])?/).replace("ref",db).getRegex(),pb={_backpedal:Lc,anyPunctuation:kQ,autolink:RQ,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:qN,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Lc,emStrongLDelim:MQ,emStrongRDelimAst:TQ,emStrongRDelimUnd:AQ,escape:GN,link:OQ,nolink:YN,punctuation:SQ,reflink:ZN,reflinkSearch:Se("reflink|nolink(?!\\()","g").replace("reflink",ZN).replace("nolink",YN).getRegex(),tag:FQ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},KN=e=>BQ[e];function Di(e,n){if(n){if(Kt.escapeTest.test(e))return e.replace(Kt.escapeReplace,KN)}else if(Kt.escapeTestNoEncode.test(e))return e.replace(Kt.escapeReplaceNoEncode,KN);return e}function QN(e){try{e=encodeURI(e).replace(Kt.percentDecode,"%")}catch{return null}return e}function XN(e,n){const i=e.replace(Kt.findPipe,(o,s,a)=>{let l=!1,c=s;for(;--c>=0&&"\\"===a[c];)l=!l;return l?"|":" |"}).split(Kt.splitPipe);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),n)if(i.length>n)i.splice(n);else for(;i.length0)return{type:"space",raw:t[0]}}code(n){const t=this.rules.block.code.exec(n);if(t){const i=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:jc(i,"\n")}}}fences(n){const t=this.rules.block.fences.exec(n);if(t){const i=t[0],r=function HQ(e,n,t){const i=e.match(t.other.indentCodeCompensation);if(null===i)return n;const r=i[1];return n.split("\n").map(o=>{const s=o.match(t.other.beginningSpace);if(null===s)return o;const[a]=s;return a.length>=r.length?o.slice(r.length):o}).join("\n")}(i,t[3]||"",this.rules);return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(n){const t=this.rules.block.heading.exec(n);if(t){let i=t[2].trim();if(this.rules.other.endingHash.test(i)){const r=jc(i,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(i=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(n){const t=this.rules.block.hr.exec(n);if(t)return{type:"hr",raw:jc(t[0],"\n")}}blockquote(n){const t=this.rules.block.blockquote.exec(n);if(t){let i=jc(t[0],"\n").split("\n"),r="",o="";const s=[];for(;i.length>0;){let a=!1;const l=[];let c;for(c=0;c1,o={type:"list",raw:"",ordered:r,start:r?+i.slice(0,-1):"",loose:!1,items:[]};i=r?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=r?i:"[*+-]");const s=this.rules.other.listItemRegex(i);let a=!1;for(;n;){let c=!1,d="",u="";if(!(t=s.exec(n))||this.rules.block.hr.test(n))break;d=t[0],n=n.substring(d.length);let f=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,v=>" ".repeat(3*v.length)),h=n.split("\n",1)[0],p=!f.trim(),m=0;if(this.options.pedantic?(m=2,u=f.trimStart()):p?m=t[1].length+1:(m=t[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,u=f.slice(m),m+=t[1].length),p&&this.rules.other.blankLine.test(h)&&(d+=h+"\n",n=n.substring(h.length+1),c=!0),!c){const v=this.rules.other.nextBulletRegex(m),E=this.rules.other.hrRegex(m),I=this.rules.other.fencesBeginRegex(m),B=this.rules.other.headingBeginRegex(m),W=this.rules.other.htmlBeginRegex(m);for(;n;){const J=n.split("\n",1)[0];let be;if(h=J,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),be=h):be=h.replace(this.rules.other.tabCharGlobal," "),I.test(h)||B.test(h)||W.test(h)||v.test(h)||E.test(h))break;if(be.search(this.rules.other.nonSpaceChar)>=m||!h.trim())u+="\n"+be.slice(m);else{if(p||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||I.test(f)||B.test(f)||E.test(f))break;u+="\n"+h}!p&&!h.trim()&&(p=!0),d+=J+"\n",n=n.substring(J.length+1),f=be.slice(m)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(a=!0));let y,_=null;this.options.gfm&&(_=this.rules.other.listIsTask.exec(u),_&&(y="[ ] "!==_[0],u=u.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:d,task:!!_,checked:y,loose:!1,text:u,tokens:[]}),o.raw+=d}const l=o.items.at(-1);l&&(l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd()),o.raw=o.raw.trimEnd();for(let c=0;c"space"===f.type),u=d.length>0&&d.some(f=>this.rules.other.anyLine.test(f.raw));o.loose=u}if(o.loose)for(let c=0;c({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[c]})));return s}}lheading(n){const t=this.rules.block.lheading.exec(n);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(n){const t=this.rules.block.paragraph.exec(n);if(t){const i="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(n){const t=this.rules.block.text.exec(n);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(n){const t=this.rules.inline.escape.exec(n);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(n){const t=this.rules.inline.tag.exec(n);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(n){const t=this.rules.inline.link.exec(n);if(t){const i=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;const s=jc(i.slice(0,-1),"\\");if((i.length-s.length)%2==0)return}else{const s=function jQ(e,n){if(-1===e.indexOf(n[1]))return-1;let t=0;for(let i=0;i-1){const l=(0===t[0].indexOf("!")?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){const s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],o=s[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?r.slice(1):r.slice(1,-1)),JN(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(n,t){let i;if((i=this.rules.inline.reflink.exec(n))||(i=this.rules.inline.nolink.exec(n))){const o=t[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!o){const s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return JN(i,o,i[0],this.lexer,this.rules)}}emStrong(n,t,i=""){let r=this.rules.inline.emStrongLDelim.exec(n);if(!(!r||r[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!i||this.rules.inline.punctuation.exec(i))){const s=[...r[0]].length-1;let a,l,c=s,d=0;const u="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*n.length+s);null!=(r=u.exec(t));){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=[...a].length,r[3]||r[4]){c+=l;continue}if((r[5]||r[6])&&s%3&&!((s+l)%3)){d+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+d);const f=[...r[0]][0].length,h=n.slice(0,s+r.index+f+l);if(Math.min(s,l)%2){const m=h.slice(1,-1);return{type:"em",raw:h,text:m,tokens:this.lexer.inlineTokens(m)}}const p=h.slice(2,-2);return{type:"strong",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(n){const t=this.rules.inline.code.exec(n);if(t){let i=t[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return r&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:t[0],text:i}}}br(n){const t=this.rules.inline.br.exec(n);if(t)return{type:"br",raw:t[0]}}del(n){const t=this.rules.inline.del.exec(n);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(n){const t=this.rules.inline.autolink.exec(n);if(t){let i,r;return"@"===t[2]?(i=t[1],r="mailto:"+i):(i=t[1],r=i),{type:"link",raw:t[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}url(n){let t;if(t=this.rules.inline.url.exec(n)){let i,r;if("@"===t[2])i=t[0],r="mailto:"+i;else{let o;do{o=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(o!==t[0]);i=t[0],r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(n){const t=this.rules.inline.text.exec(n);if(t)return{type:"text",raw:t[0],text:t[0],escaped:this.lexer.state.inRawBlock}}}class On{tokens;options;state;tokenizer;inlineQueue;constructor(n){this.tokens=[],this.tokens.links=Object.create(null),this.options=n||Mo,this.options.tokenizer=this.options.tokenizer||new Nf,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:Kt,block:Rf.normal,inline:Bc.normal};this.options.pedantic?(t.block=Rf.pedantic,t.inline=Bc.pedantic):this.options.gfm&&(t.block=Rf.gfm,t.inline=this.options.breaks?Bc.breaks:Bc.gfm),this.tokenizer.rules=t}static get rules(){return{block:Rf,inline:Bc}}static lex(n,t){return new On(t).lex(n)}static lexInline(n,t){return new On(t).inlineTokens(n)}lex(n){n=n.replace(Kt.carriageReturn,"\n"),this.blockTokens(n,this.tokens);for(let t=0;t!!(r=s.call({lexer:this},n,t))&&(n=n.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(n)){n=n.substring(r.raw.length);const s=t.at(-1);1===r.raw.length&&void 0!==s?s.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(n)){n=n.substring(r.raw.length);const s=t.at(-1);"paragraph"===s?.type||"text"===s?.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.text,this.inlineQueue.at(-1).src=s.text):t.push(r);continue}if(r=this.tokenizer.fences(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(n)){n=n.substring(r.raw.length);const s=t.at(-1);"paragraph"===s?.type||"text"===s?.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(n)){n=n.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(n)){n=n.substring(r.raw.length),t.push(r);continue}let o=n;if(this.options.extensions?.startBlock){let s=1/0;const a=n.slice(1);let l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},a),"number"==typeof l&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(o=n.substring(0,s+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){const s=t.at(-1);i&&"paragraph"===s?.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r),i=o.length!==n.length,n=n.substring(r.raw.length)}else if(r=this.tokenizer.text(n)){n=n.substring(r.raw.length);const s=t.at(-1);"text"===s?.type?(s.raw+="\n"+r.raw,s.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r)}else if(n){const s="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}}return this.state.top=!0,t}inline(n,t=[]){return this.inlineQueue.push({src:n,tokens:t}),t}inlineTokens(n,t=[]){let i=n,r=null;if(this.tokens.links){const a=Object.keys(this.tokens.links);if(a.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(i));)a.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(i));)i=i.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(i));)i=i.slice(0,r.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o=!1,s="";for(;n;){let a;if(o||(s=""),o=!1,this.options.extensions?.inline?.some(c=>!!(a=c.call({lexer:this},n,t))&&(n=n.substring(a.raw.length),t.push(a),!0)))continue;if(a=this.tokenizer.escape(n)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.tag(n)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.link(n)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(a.raw.length);const c=t.at(-1);"text"===a.type&&"text"===c?.type?(c.raw+=a.raw,c.text+=a.text):t.push(a);continue}if(a=this.tokenizer.emStrong(n,i,s)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.codespan(n)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.br(n)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.del(n)){n=n.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.autolink(n)){n=n.substring(a.raw.length),t.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(n))){n=n.substring(a.raw.length),t.push(a);continue}let l=n;if(this.options.extensions?.startInline){let c=1/0;const d=n.slice(1);let u;this.options.extensions.startInline.forEach(f=>{u=f.call({lexer:this},d),"number"==typeof u&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(l=n.substring(0,c+1))}if(a=this.tokenizer.inlineText(l)){n=n.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(s=a.raw.slice(-1)),o=!0;const c=t.at(-1);"text"===c?.type?(c.raw+=a.raw,c.text+=a.text):t.push(a)}else if(n){const c="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}return t}}class To{options;parser;constructor(n){this.options=n||Mo}space(n){return""}code({text:n,lang:t,escaped:i}){const r=(t||"").match(Kt.notSpaceStart)?.[0],o=n.replace(Kt.endingNewline,"")+"\n";return r?'
    '+(i?o:Di(o,!0))+"
    \n":"
    "+(i?o:Di(o,!0))+"
    \n"}blockquote({tokens:n}){return`
    \n${this.parser.parse(n)}
    \n`}html({text:n}){return n}heading({tokens:n,depth:t}){return`${this.parser.parseInline(n)}\n`}hr(n){return"
    \n"}list(n){const t=n.ordered,i=n.start;let r="";for(let a=0;a\n"+r+"\n"}listitem(n){let t="";if(n.task){const i=this.checkbox({checked:!!n.checked});n.loose?"paragraph"===n.tokens[0]?.type?(n.tokens[0].text=i+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&"text"===n.tokens[0].tokens[0].type&&(n.tokens[0].tokens[0].text=i+" "+Di(n.tokens[0].tokens[0].text),n.tokens[0].tokens[0].escaped=!0)):n.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):t+=i+" "}return t+=this.parser.parse(n.tokens,!!n.loose),`
  • ${t}
  • \n`}checkbox({checked:n}){return"'}paragraph({tokens:n}){return`

    ${this.parser.parseInline(n)}

    \n`}table(n){let t="",i="";for(let o=0;o${r}`),"\n\n"+t+"\n"+r+"
    \n"}tablerow({text:n}){return`\n${n}\n`}tablecell(n){const t=this.parser.parseInline(n.tokens),i=n.header?"th":"td";return(n.align?`<${i} align="${n.align}">`:`<${i}>`)+t+`\n`}strong({tokens:n}){return`${this.parser.parseInline(n)}`}em({tokens:n}){return`${this.parser.parseInline(n)}`}codespan({text:n}){return`${Di(n,!0)}`}br(n){return"
    "}del({tokens:n}){return`${this.parser.parseInline(n)}`}link({href:n,title:t,tokens:i}){const r=this.parser.parseInline(i),o=QN(n);if(null===o)return r;let s='
    ",s}image({href:n,title:t,text:i}){const r=QN(n);if(null===r)return Di(i);let o=`${i}{const a=o[s].flat(1/0);i=i.concat(this.walkTokens(a,t))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,t)))}}return i}use(...n){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(i=>{const r={...i};if(r.async=this.defaults.async||r.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const s=t.renderers[o.name];t.renderers[o.name]=s?function(...a){let l=o.renderer.apply(this,a);return!1===l&&(l=s.apply(this,a)),l}:o.renderer}if("tokenizer"in o){if(!o.level||"block"!==o.level&&"inline"!==o.level)throw new Error("extension level must be 'block' or 'inline'");const s=t[o.level];s?s.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&("block"===o.level?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:"inline"===o.level&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),i.renderer){const o=this.defaults.renderer||new To(this.defaults);for(const s in i.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const l=i.renderer[s],c=o[s];o[s]=(...d)=>{let u=l.apply(o,d);return!1===u&&(u=c.apply(o,d)),u||""}}r.renderer=o}if(i.tokenizer){const o=this.defaults.tokenizer||new Nf(this.defaults);for(const s in i.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=i.tokenizer[s],c=o[s];o[s]=(...d)=>{let u=l.apply(o,d);return!1===u&&(u=c.apply(o,d)),u}}r.tokenizer=o}if(i.hooks){const o=this.defaults.hooks||new Ff;for(const s in i.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const l=i.hooks[s],c=o[s];o[s]=Ff.passThroughHooks.has(s)?d=>{if(this.defaults.async)return Promise.resolve(l.call(o,d)).then(f=>c.call(o,f));const u=l.call(o,d);return c.call(o,u)}:(...d)=>{let u=l.apply(o,d);return!1===u&&(u=c.apply(o,d)),u}}r.hooks=o}if(i.walkTokens){const o=this.defaults.walkTokens,s=i.walkTokens;r.walkTokens=function(a){let l=[];return l.push(s.call(this,a)),o&&(l=l.concat(o.call(this,a))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,t){return On.lex(n,t??this.defaults)}parser(n,t){return Pn.parse(n,t??this.defaults)}parseMarkdown(n){return(i,r)=>{const o={...r},s={...this.defaults,...o},a=this.onError(!!s.silent,!!s.async);if(!0===this.defaults.async&&!1===o.async)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||null===i)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=n);const l=s.hooks?s.hooks.provideLexer():n?On.lex:On.lexInline,c=s.hooks?s.hooks.provideParser():n?Pn.parse:Pn.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(i):i).then(d=>l(d,s)).then(d=>s.hooks?s.hooks.processAllTokens(d):d).then(d=>s.walkTokens?Promise.all(this.walkTokens(d,s.walkTokens)).then(()=>d):d).then(d=>c(d,s)).then(d=>s.hooks?s.hooks.postprocess(d):d).catch(a);try{s.hooks&&(i=s.hooks.preprocess(i));let d=l(i,s);s.hooks&&(d=s.hooks.processAllTokens(d)),s.walkTokens&&this.walkTokens(d,s.walkTokens);let u=c(d,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(d){return a(d)}}}onError(n,t){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",n){const r="

    An error occurred:

    "+Di(i.message+"",!0)+"
    ";return t?Promise.resolve(r):r}if(t)return Promise.reject(i);throw i}}};function me(e,n){return Ao.parse(e,n)}me.options=me.setOptions=function(e){return Ao.setOptions(e),jN(me.defaults=Ao.defaults),me},me.getDefaults=function lb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},me.defaults=Mo,me.use=function(...e){return Ao.use(...e),jN(me.defaults=Ao.defaults),me},me.walkTokens=function(e,n){return Ao.walkTokens(e,n)},me.parseInline=Ao.parseInline,me.Parser=Pn,me.parser=Pn.parse,me.Renderer=To,me.TextRenderer=gb,me.Lexer=On,me.lexer=On.lex,me.Tokenizer=Nf,me.Hooks=Ff,me.parse=me;const zQ=["*"];let eF=(()=>{class e{constructor(){this._buttonClick$=new Q,this.copied$=this._buttonClick$.pipe(vn(()=>Ic(F(!0),vN(3e3).pipe($T(!1)))),tk(),function fQ(e,n,t){let i,r=!1;return e&&"object"==typeof e?({bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:t}=e):i=e??1/0,Rk({connector:()=>new hQ(i,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}(1)),this.copiedText$=this.copied$.pipe(uo(!1),K(t=>t?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=it({type:e,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(i,r){1&i&&(A(0,"button",0),$u(1,"async"),He("click",function(){return r.onCopyToClipboardClick()}),se(2),$u(3,"async"),N()),2&i&&(It("copied",Gu(1,3,r.copied$)),P(2),so(Gu(3,5,r.copiedText$)))},dependencies:[jM],encapsulation:2,changeDetection:0})}}return e})();const qQ=new C("CLIPBOARD_OPTIONS");var _b=function(e){return e.CommandLine="command-line",e.LineHighlight="line-highlight",e.LineNumbers="line-numbers",e}(_b||{});const tF=new C("MARKED_EXTENSIONS"),ZQ=new C("MARKED_OPTIONS"),YQ=new C("MERMAID_OPTIONS"),nF=new C("SECURITY_CONTEXT");let vb=(()=>{class e{get options(){return this._options}set options(t){this._options={...this.DEFAULT_MARKED_OPTIONS,...t}}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}constructor(t,i,r,o,s,a,l,c){this.clipboardOptions=t,this.extensions=i,this.mermaidOptions=o,this.platform=s,this.securityContext=a,this.http=l,this.sanitizer=c,this.DEFAULT_MARKED_OPTIONS={renderer:new To},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new Q,this.reload$=this._reload$.asObservable(),this.options=r}parse(t,i=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:r,inline:o,emoji:s,mermaid:a,disableSanitizer:l}=i,c={...this.options,...i.markedOptions},d=c.renderer||this.renderer||new To;this.extensions&&(this.renderer=this.extendsRendererForExtensions(d)),a&&(this.renderer=this.extendsRendererForMermaid(d));const u=this.trimIndentation(t),f=r?this.decodeHtml(u):u,h=s?this.parseEmoji(f):f,p=this.parseMarked(h,c,o);return(l?p:this.sanitizer.sanitize(this.securityContext,p))||""}render(t,i=this.DEFAULT_RENDER_OPTIONS,r){const{clipboard:o,clipboardOptions:s,katex:a,katexOptions:l,mermaid:c,mermaidOptions:d}=i;a&&this.renderKatex(t,{...this.DEFAULT_KATEX_OPTIONS,...l}),c&&this.renderMermaid(t,{...this.DEFAULT_MERMAID_OPTIONS,...this.mermaidOptions,...d}),o&&this.renderClipboard(t,r,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...s}),this.highlight(t)}reload(){this._reload$.next()}getSource(t){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(t,{responseType:"text"}).pipe(K(i=>this.handleExtension(t,i)))}highlight(t){if(!yr(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;t||(t=document);const i=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,r=>r.classList.add("language-none")),Prism.highlightAllUnder(t)}decodeHtml(t){if(!yr(this.platform))return t;const i=document.createElement("textarea");return i.innerHTML=t,i.value}extendsRendererForExtensions(t){const i=t;return!0===i.\u0275NgxMarkdownRendererExtendedForExtensions||(this.extensions?.length>0&&me.use(...this.extensions),i.\u0275NgxMarkdownRendererExtendedForExtensions=!0),t}extendsRendererForMermaid(t){const i=t;if(!0===i.\u0275NgxMarkdownRendererExtendedForMermaid)return t;const r=t.code;return t.code=o=>"mermaid"===o.lang?`
    ${o.text}
    `:r(o),i.\u0275NgxMarkdownRendererExtendedForMermaid=!0,t}handleExtension(t,i){const r=t.lastIndexOf("://"),o=r>-1?t.substring(r+4):t,s=o.lastIndexOf("/"),a=s>-1?o.substring(s+1).split("?")[0]:"",l=a.lastIndexOf("."),c=l>-1?a.substring(l+1):"";return c&&"md"!==c?"```"+c+"\n"+i+"\n```":i}parseMarked(t,i,r=!1){if(i.renderer){const o={...i.renderer};delete o.\u0275NgxMarkdownRendererExtendedForExtensions,delete o.\u0275NgxMarkdownRendererExtendedForMermaid,delete i.renderer,me.use({renderer:o})}return r?me.parseInline(t,i):me.parse(t,i)}parseEmoji(t){if(!yr(this.platform))return t;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(t)}renderKatex(t,i){if(yr(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(t,i)}}renderClipboard(t,i,r){if(!yr(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!i)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:o,buttonTemplate:s}=r,a=t.querySelectorAll("pre");for(let l=0;lu.classList.add("hover"),d.onmouseleave=()=>u.classList.remove("hover"),o){const p=i.createComponent(o);f=p.hostView,p.changeDetectorRef.markForCheck()}else if(s)f=i.createEmbeddedView(s);else{const p=i.createComponent(eF);f=p.hostView,p.changeDetectorRef.markForCheck()}f.rootNodes.forEach(p=>{u.appendChild(p),h=new ClipboardJS(p,{text:()=>c.innerText})}),f.onDestroy(()=>h.destroy())}}renderMermaid(t,i=this.DEFAULT_MERMAID_OPTIONS){if(!yr(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const r=t.querySelectorAll(".mermaid");0!==r.length&&(mermaid.initialize(i),mermaid.run({nodes:r}))}trimIndentation(t){if(!t)return"";let i;return t.split("\n").map(r=>{let o=i;return r.length>0&&(o=isNaN(o)?r.search(/\S|$/):Math.min(r.search(/\S|$/),o)),isNaN(i)&&(i=o),o?r.substring(o):r}).join("\n")}static{this.\u0275fac=function(i){return new(i||e)(M(qQ,8),M(tF,8),M(ZQ,8),M(YQ,8),M(ui),M(nF),M(Dc,8),M(Jl))}}static{this.\u0275prov=S({token:e,factory:e.\u0275fac})}}return e})(),iF=(()=>{class e{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(t){this._disableSanitizer=this.coerceBooleanProperty(t)}get inline(){return this._inline}set inline(t){this._inline=this.coerceBooleanProperty(t)}get clipboard(){return this._clipboard}set clipboard(t){this._clipboard=this.coerceBooleanProperty(t)}get emoji(){return this._emoji}set emoji(t){this._emoji=this.coerceBooleanProperty(t)}get katex(){return this._katex}set katex(t){this._katex=this.coerceBooleanProperty(t)}get mermaid(){return this._mermaid}set mermaid(t){this._mermaid=this.coerceBooleanProperty(t)}get lineHighlight(){return this._lineHighlight}set lineHighlight(t){this._lineHighlight=this.coerceBooleanProperty(t)}get lineNumbers(){return this._lineNumbers}set lineNumbers(t){this._lineNumbers=this.coerceBooleanProperty(t)}get commandLine(){return this._commandLine}set commandLine(t){this._commandLine=this.coerceBooleanProperty(t)}constructor(t,i,r){this.element=t,this.markdownService=i,this.viewContainerRef=r,this.error=new fe,this.load=new fe,this.ready=new fe,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new Q}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(Je(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(t,i=!1){var r=this;return ii(function*(){const o={decodeHtml:i,inline:r.inline,emoji:r.emoji,mermaid:r.mermaid,disableSanitizer:r.disableSanitizer},s={clipboard:r.clipboard,clipboardOptions:r.getClipboardOptions(),katex:r.katex,katexOptions:r.katexOptions,mermaid:r.mermaid,mermaidOptions:r.mermaidOptions},a=yield r.markdownService.parse(t,o);r.element.nativeElement.innerHTML=a,r.handlePlugins(),r.markdownService.render(r.element.nativeElement,s,r.viewContainerRef),r.ready.emit()})()}coerceBooleanProperty(t){return null!=t&&"false"!=`${String(t)}`}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:t=>{this.render(t).then(()=>{this.load.emit(t)})},error:t=>this.error.emit(t)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,_b.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,_b.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(t,i){const r=t.querySelectorAll("pre");for(let o=0;o{const a=i[s];if(a){const l=this.toLispCase(s);r.item(o).setAttribute(l,a.toString())}})}toLispCase(t){const i=t.match(/([A-Z])/g);if(!i)return t;let r=t.toString();for(let o=0,s=i.length;o{class e{static forRoot(t){return{ngModule:e,providers:[i7(t)]}}static forChild(){return{ngModule:e}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Fe({type:e})}static{this.\u0275inj=Me({imports:[zM]})}}return e})();const o7=[{path:"packages",component:uQ},{path:"**",component:(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=it({type:e,selectors:[["app-home"]],standalone:!1,decls:3,vars:0,consts:[[1,"container-fluid","page-wrapper"],[1,"content"],["src","README.md"]],template:function(i,r){1&i&&(A(0,"div",0)(1,"div",1),Ft(2,"markdown",2),N()())},dependencies:[iF],styles:[".content[_ngcontent-%COMP%]{background:#424242;padding:0 0 0 16px;margin-top:1rem;margin-bottom:1rem;padding-bottom:.5rem;color:#fff}"]})}}return e})()}];let s7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Fe({type:e})}static{this.\u0275inj=Me({imports:[GA.forRoot(o7),GA]})}}return e})();const a7=["*",[["mat-toolbar-row"]]],l7=["*","mat-toolbar-row"];let c7=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275dir=O({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return e})(),d7=(()=>{class e{_elementRef=g(Ce);_platform=g(sn);_document=g(ae);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=it({type:e,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(1&i&&gn(o,c7,5),2&i){let s;Ot(s=Pt())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){2&i&&(Ol(r.color?"mat-"+r.color:""),It("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",0===r._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:l7,decls:2,vars:0,template:function(i,r){1&i&&(Yn(a7),ot(0),ot(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}"],encapsulation:2,changeDetection:0})}return e})(),u7=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[Zt,Zt]})}return e})();const h7=["mat-button",""],f7=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],p7=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],m7=new C("MAT_BUTTON_CONFIG"),g7=[{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"]}];let _7=(()=>{class e{_elementRef=g(Ce);_platform=g(sn);_ngZone=g(q);_animationMode=g(Gr,{optional:!0});_focusMonitor=g(py);_rippleLoader=g(Ak);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){g(Dr).load(yy);const t=g(m7,{optional:!0}),i=this._elementRef.nativeElement,r=i.classList;this.disabledInteractive=t?.disabledInteractive??!1,this.color=t?.color??null,this._rippleLoader?.configureRipple(i,{className:"mat-mdc-button-ripple"});for(const{attribute:o,mdcClasses:s}of g7)i.hasAttribute(o)&&r.add(...s)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",i){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(i){return new(i||e)};static \u0275dir=O({type:e,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ae],disabled:[2,"disabled","disabled",Ae],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ae],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ae]},features:[qn]})}return e})(),v7=(()=>{class e extends _7{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Ve(e)))(r||e)}})();static \u0275cmp=it({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){2&i&&(qe("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),Ol(r.color?"mat-"+r.color:""),It("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[oe],attrs:h7,ngContentSelectors:p7,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){1&i&&(Yn(f7),Ft(0,"span",0),ot(1),A(2,"span",1),ot(3,1),N(),ot(4,2),Ft(5,"span",2)(6,"span",3)),2&i&&It("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, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);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, -4px);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, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-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-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-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-sys-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-sys-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, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);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, -8px);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, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);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, -8px);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, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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-sys-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);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);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, -8px);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, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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, 1px);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-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-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-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return e})(),b7=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[Zt,Sk,Zt]})}return e})(),w7=(()=>{class e{constructor(){this.title="webui"}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=it({type:e,selectors:[["app-root"]],standalone:!1,decls:9,vars:0,consts:[[1,"example-spacer"],["color","primary","routerLink","/","mat-raised-button","","aria-label","Client",1,"client-button"],["color","primary","routerLink","/packages","mat-raised-button","","aria-label","Packages"]],template:function(i,r){1&i&&(A(0,"mat-toolbar")(1,"span"),se(2,"Luxtorpeda"),N(),Ft(3,"span",0),A(4,"button",1),se(5," Client "),N(),A(6,"button",2),se(7," Packages "),N()(),Ft(8,"router-outlet"))},dependencies:[qv,zh,d7,v7],styles:[".example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{background:#303030!important;border-bottom:1px solid gray}.client-button[_ngcontent-%COMP%]{margin-right:.625rem}"]})}}return e})();function rF(e){return new b(3e3,!1)}function Ar(e){switch(e.length){case 0:return new Fc;case 1:return e[0];default:return new dN(e)}}function oF(e,n,t=new Map,i=new Map){const r=[],o=[];let s=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((f,h)=>{let p=h,m=f;if("offset"!==h)switch(p=e.normalizePropertyName(p,r),m){case"!":m=t.get(h);break;case Wi:m=i.get(h);break;default:m=e.normalizeStyleValue(h,p,m,r)}u.set(p,m)}),d||o.push(u),a=u,s=c}),r.length)throw function $7(){return new b(3502,!1)}();return o}function yb(e,n,t,i){switch(n){case"start":e.onStart(()=>i(t&&bb(t,"start",e)));break;case"done":e.onDone(()=>i(t&&bb(t,"done",e)));break;case"destroy":e.onDestroy(()=>i(t&&bb(t,"destroy",e)))}}function bb(e,n,t){const o=wb(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),s=e._data;return null!=s&&(o._data=s),o}function wb(e,n,t,i,r="",o=0,s){return{element:e,triggerName:n,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function wn(e,n,t){let i=e.get(n);return i||e.set(n,i=t),i}function sF(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const nX=typeof document>"u"?null:document.documentElement;function Cb(e){const n=e.parentNode||e.host||null;return n===nX?null:n}let ko=null,aF=!1;function lF(e,n){for(;n;){if(n===e)return!0;n=Cb(n)}return!1}function cF(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const i=e.querySelector(n);return i?[i]:[]}let Eb=(()=>{class e{validateStyleProperty(t){return function rX(e){ko||(ko=function oX(){return typeof document<"u"?document.body:null}()||{},aF=!!ko.style&&"WebkitAppearance"in ko.style);let n=!0;return ko.style&&!function iX(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in ko.style,!n&&aF&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in ko.style)),n}(t)}containsElement(t,i){return lF(t,i)}getParentElement(t){return Cb(t)}query(t,i,r){return cF(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,o,s,a=[],l){return new Fc(r,o)}static \u0275fac=function(i){return new(i||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();class Db{static NOOP=new Eb}class xb{}const Sb="ng-enter",Of="ng-leave",Pf="ng-trigger",Lf=".ng-trigger",uF="ng-animating",Ib=".ng-animating";function Yi(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Mb(parseFloat(n[1]),n[2])}function Mb(e,n){return"s"===n?1e3*e:e}function Vf(e,n,t){return e.hasOwnProperty("duration")?e:function cX(e,n,t){let r,o=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(rF()),{duration:0,delay:0,easing:""};r=Mb(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=Mb(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=e;if(!t){let a=!1,l=n.length;r<0&&(n.push(function C7(){return new b(3100,!1)}()),a=!0),o<0&&(n.push(function E7(){return new b(3101,!1)}()),a=!0),a&&n.splice(l,0,rF())}return{duration:r,delay:o,easing:s}}(e,n,t)}function xi(e,n,t){n.forEach((i,r)=>{const o=Ab(r);t&&!t.has(r)&&t.set(r,e.style[o]),e.style[o]=i})}function Ro(e,n){n.forEach((t,i)=>{const r=Ab(i);e.style[r]=""})}function Hc(e){return Array.isArray(e)?1==e.length?e[0]:function dY(e,n=null){return{type:G.Sequence,steps:e,options:n}}(e):e}const Tb=new RegExp("{{\\s*(.+?)\\s*}}","g");function fF(e){let n=[];if("string"==typeof e){let t;for(;t=Tb.exec(e);)n.push(t[1]);Tb.lastIndex=0}return n}function Uc(e,n,t){const i=`${e}`,r=i.replace(Tb,(o,s)=>{let a=n[s];return null==a&&(t.push(function x7(){return new b(3003,!1)}()),a=""),a.toString()});return r==i?e:r}const hX=/-+([a-z0-9])/g;function Ab(e){return e.replace(hX,(...n)=>n[1].toUpperCase())}function Cn(e,n,t){switch(n.type){case G.Trigger:return e.visitTrigger(n,t);case G.State:return e.visitState(n,t);case G.Transition:return e.visitTransition(n,t);case G.Sequence:return e.visitSequence(n,t);case G.Group:return e.visitGroup(n,t);case G.Animate:return e.visitAnimate(n,t);case G.Keyframes:return e.visitKeyframes(n,t);case G.Style:return e.visitStyle(n,t);case G.Reference:return e.visitReference(n,t);case G.AnimateChild:return e.visitAnimateChild(n,t);case G.AnimateRef:return e.visitAnimateRef(n,t);case G.Query:return e.visitQuery(n,t);case G.Stagger:return e.visitStagger(n,t);default:throw function S7(){return new b(3004,!1)}()}}function kb(e,n){return window.getComputedStyle(e)[n]}const mX=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"]);class pF extends xb{normalizePropertyName(n,t){return Ab(n)}normalizeStyleValue(n,t,i,r){let o="";const s=i.toString().trim();if(mX.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function I7(){return new b(3005,!1)}())}return s+o}}const jf=new Set(["true","1"]),Hf=new Set(["false","0"]);function mF(e,n){const t=jf.has(e)||Hf.has(e),i=jf.has(n)||Hf.has(n);return(r,o)=>{let s="*"==e||e==r,a="*"==n||n==o;return!s&&t&&"boolean"==typeof r&&(s=r?jf.has(e):Hf.has(e)),!a&&i&&"boolean"==typeof o&&(a=o?jf.has(n):Hf.has(n)),s&&a}}const yX=new RegExp("s*:selfs*,?","g");function Rb(e,n,t,i){return new bX(e).build(n,t,i)}class bX{_driver;constructor(n){this._driver=n}build(n,t,i){const r=new EX(t);return this._resetContextStyleTimingState(r),Cn(this,Hc(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let i=t.queryCount=0,r=t.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function M7(){return new b(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==G.State){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,t))}),l.name=c}else if(a.type==G.Transition){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,s.push(l)}else t.errors.push(function T7(){return new b(3007,!1)}())}),{type:G.Trigger,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,t){const i=this.visitStyle(n.styles,t),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{fF(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&t.errors.push(function A7(){return new b(3008,!1)}(0,o.values()))}return{type:G.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const i=Cn(this,Hc(n.animation),t),r=function gX(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(i=>function _X(e,n,t){if(":"==e[0]){const l=function vX(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}(e,t);if("function"==typeof l)return void n.push(l);e=l}const i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function B7(){return new b(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(mF(r,s)),"<"==o[0]&&("*"!=r||"*"!=s)&&n.push(mF(s,r))}(i,t,n)):t.push(e),t}(n.expr,t.errors);return{type:G.Transition,matchers:r,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:No(n.options)}}visitSequence(n,t){return{type:G.Sequence,steps:n.steps.map(i=>Cn(this,i,t)),options:No(n.options)}}visitGroup(n,t){const i=t.currentTime;let r=0;const o=n.steps.map(s=>{t.currentTime=i;const a=Cn(this,s,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:G.Group,steps:o,options:No(n.options)}}visitAnimate(n,t){const i=function xX(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return Nb(Vf(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Nb(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=Vf(t,n);return Nb(r.duration,r.delay,r.easing)}(n.timings,t.errors);t.currentAnimateTimings=i;let r,o=n.styles?n.styles:Fn({});if(o.type==G.Keyframes)r=this.visitKeyframes(o,t);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Fn(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:G.Animate,timings:i,style:r,options:null}}visitStyle(n,t){const i=this._makeStyleAst(n,t);return this._validateStyleAst(i,t),i}_makeStyleAst(n,t){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Wi?i.push(a):t.errors.push(new b(3002,!1)):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 l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:G.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const i=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l);let u=!0;d&&(o!=r&&o>=d.startTime&&r<=d.endTime&&(t.errors.push(function R7(){return new b(3010,!1)}()),u=!1),o=d.startTime),u&&c.set(l,{startTime:o,endTime:r}),t.options&&function uX(e,n,t){const i=n.params||{},r=fF(e);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(function D7(){return new b(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const i={type:G.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function N7(){return new b(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const d=n.steps.map(y=>{const v=this._makeStyleAst(y,t);let E=null!=v.offset?v.offset:function DX(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(v.styles),I=0;return null!=E&&(o++,I=v.offset=E),l=l||I<0||I>1,a=a||I0&&o{const E=f>0?v==h?1:f*v:s[v],I=E*_;t.currentTime=p+m.delay+I,m.duration=I,this._validateStyleAst(y,t),y.offset=E,i.styles.push(y)}),i}visitReference(n,t){return{type:G.Reference,animation:Cn(this,Hc(n.animation),t),options:No(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:G.AnimateChild,options:No(n.options)}}visitAnimateRef(n,t){return{type:G.AnimateRef,animation:this.visitReference(n.animation,t),options:No(n.options)}}visitQuery(n,t){const i=t.currentQuerySelector,r=n.options||{};t.queryCount++,t.currentQuery=n;const[o,s]=function wX(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(yX,"")),e=e.replace(/@\*/g,Lf).replace(/@\w+/g,t=>Lf+"-"+t.slice(1)).replace(/:animating/g,Ib),[e,n]}(n.selector);t.currentQuerySelector=i.length?i+" "+o:o,wn(t.collectedStyles,t.currentQuerySelector,new Map);const a=Cn(this,Hc(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:G.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:No(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function L7(){return new b(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Vf(n.timings,t.errors,!0);return{type:G.Stagger,animation:Cn(this,Hc(n.animation),t),timings:i,options:null}}}class EX{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(n){this.errors=n}}function No(e){return e?(e={...e}).params&&(e.params=function CX(e){return e?{...e}:null}(e.params)):e={},e}function Nb(e,n,t){return{duration:e,delay:n,easing:t}}function Fb(e,n,t,i,r,o,s=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Uf{_map=new Map;get(n){return this._map.get(n)||[]}append(n,t){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const MX=new RegExp(":enter","g"),AX=new RegExp(":leave","g");function Ob(e,n,t,i,r,o=new Map,s=new Map,a,l,c=[]){return(new kX).buildKeyframes(e,n,t,i,r,o,s,a,l,c)}class kX{buildKeyframes(n,t,i,r,o,s,a,l,c,d=[]){c=c||new Uf;const u=new Pb(n,t,c,r,o,d,[]);u.options=l;const f=l.delay?Yi(l.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([s],null,u.errors,l),Cn(this,i,u);const h=u.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let m=h.length-1;m>=0;m--){const _=h[m];if(_.element===t){p=_;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[Fb(t,[],[],[],0,f,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(n.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){const i=t.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,i),this.visitReference(n.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Yi(Uc(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,t,i){let o=t.currentTimeline.currentTime;const s=null!=i.duration?Yi(i.duration):null,a=null!=i.delay?Yi(i.delay):null;return 0!==s&&n.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),Cn(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const i=t.subContextCount;let r=t;const o=n.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){r.previousNode.type==G.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=zf);const s=Yi(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Cn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const i=[];let r=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?Yi(n.options.delay):0;n.steps.forEach(s=>{const a=t.createSubContext(n.options);o&&a.delayNextStep(o),Cn(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(r),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const i=n.strValue;return Vf(t.params?Uc(i,t.params,t.errors):i,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const i=t.currentAnimateTimings=this._visitTiming(n.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;o.type==G.Keyframes?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+o),t.previousNode=n}visitQuery(n,t){const i=t.currentTimeline.currentTime,r=n.options||{},o=r.delay?Yi(r.delay):0;o&&(t.previousNode.type===G.Style||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=zf);let s=i;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;const u=t.createSubContext(n.options,c);o&&u.delayNextStep(o),c===t.element&&(l=u.currentTimeline),Cn(this,n.animation,u),u.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,u.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const i=t.parentContext,r=t.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const d=t.currentTimeline;l&&d.delayNextStep(l);const u=d.currentTime;Cn(this,n.animation,t),t.previousNode=n,i.currentStaggerTime=r.currentTime-u+(r.startTime-i.currentTimeline.startTime)}}const zf={};class Pb{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=zf;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,t,i,r,o,s,a,l){this._driver=n,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.currentTimeline=l||new $f(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Yi(i.duration)),null!=i.delay&&(r.delay=Yi(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=Uc(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const i=n.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return n}createSubContext(n=null,t,i){const r=t||this.element,o=new Pb(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=zf,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,i){const r={duration:t??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new RX(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,t,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(MX,"."+this._enterClassName)).replace(AX,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function V7(){return new b(3014,!1)}()),a}}class $f{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(n,t,i,r){this._driver=n,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new $f(this._driver,n,t||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+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||Wi),this._currentKeyframe.set(t,Wi);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,i,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},s=function NX(e,n){const t=new Map;let i;return e.forEach(r=>{if("*"===r){i??=n.keys();for(let o of i)t.set(o,Wi)}else for(let[o,s]of r)t.set(o,s)}),t}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=Uc(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Wi),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,i)=>{const r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{"!"===d?n.add(u):d===Wi&&t.add(u)}),i||c.set("offset",l/this.duration),r.push(c)});const o=[...n.values()],s=[...t.values()];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Fb(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class RX extends $f{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,t,i,r,o,s,a=!1){super(n,t,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:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=i+t,a=t/s,l=new Map(n[0]);l.set("offset",0),o.push(l);const c=new Map(n[0]);c.set("offset",vF(a)),o.push(c);const d=n.length-1;for(let u=1;u<=d;u++){let f=new Map(n[u]);const h=f.get("offset");f.set("offset",vF((t+h*i)/s)),o.push(f)}i=s,t=0,r="",n=o}return Fb(this.element,n,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function vF(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}function yF(e,n,t,i,r,o,s,a,l,c,d,u,f){return{type:0,element:e,triggerName:n,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:f}}const Lb={};class bF{_triggerName;ast;_stateStyles;constructor(n,t,i){this._triggerName=n,this.ast=t,this._stateStyles=i}match(n,t,i,r){return function FX(e,n,t,i,r){return e.some(o=>o(n,t,i,r))}(this.ast.matchers,n,t,i,r)}buildStyles(n,t,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(t,i):new Map}build(n,t,i,r,o,s,a,l,c,d){const u=[],f=this.ast.options&&this.ast.options.params||Lb,p=this.buildStyles(i,a&&a.params||Lb,u),m=l&&l.params||Lb,_=this.buildStyles(r,m,u),y=new Set,v=new Map,E=new Map,I="void"===r,B={params:wF(m,f),delay:this.ast.options?.delay},W=d?[]:Ob(n,t,this.ast.animation,o,s,p,_,B,c,u);let J=0;return W.forEach(be=>{J=Math.max(be.duration+be.delay,J)}),u.length?yF(t,this._triggerName,i,r,I,p,_,[],[],v,E,J,u):(W.forEach(be=>{const Si=be.element,va=wn(v,Si,new Set);be.preStyleProps.forEach(Fo=>va.add(Fo));const LF=wn(E,Si,new Set);be.postStyleProps.forEach(Fo=>LF.add(Fo)),Si!==t&&y.add(Si)}),yF(t,this._triggerName,i,r,I,p,_,W,[...y.values()],v,E,J))}}function wF(e,n){const t={...n};return Object.entries(e).forEach(([i,r])=>{null!=r&&(t[i]=r)}),t}class OX{styles;defaultParams;normalizer;constructor(n,t,i){this.styles=n,this.defaultParams=t,this.normalizer=i}buildStyles(n,t){const i=new Map,r=wF(n,this.defaultParams);return this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Uc(s,r,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(a,s)})}),i}}class LX{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(n,t,i){this.name=n,this.ast=t,this._normalizer=i,t.states.forEach(r=>{this.states.set(r.name,new OX(r.style,r.options&&r.options.params||{},i))}),CF(this.states,"true","1"),CF(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new bF(n,r,this.states))}),this.fallbackTransition=function VX(e,n){return new bF(e,{type:G.Transition,animation:{type:G.Sequence,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,i,r){return this.transitionFactories.find(s=>s.match(n,t,i,r))||null}matchStyles(n,t,i){return this.fallbackTransition.buildStyles(n,t,i)}}function CF(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const BX=new Uf;class jX{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i}register(n,t){const i=[],o=Rb(this._driver,t,i,[]);if(i.length)throw function G7(){return new b(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,i){const r=n.element,o=oF(this._normalizer,n.keyframes,t,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=Ob(this._driver,t,o,Sb,Of,new Map,new Map,i,BX,r),s.forEach(d=>{const u=wn(a,d.element,new Map);d.postStyleProps.forEach(f=>u.set(f,null))})):(r.push(function q7(){return new b(3300,!1)}()),s=[]),r.length)throw function W7(){return new b(3504,!1)}();a.forEach((d,u)=>{d.forEach((f,h)=>{d.set(h,this._driver.computeStyle(u,h,Wi))})});const c=Ar(s.map(d=>{const u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function Z7(){return new b(3301,!1)}();return t}listen(n,t,i,r){const o=wb(t,"","","");return yb(this._getPlayer(n),i,o,r),()=>{}}command(n,t,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,t,r[0]||{});const 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)}}}const EF="ng-animate-queued",Vb="ng-animate-disabled",GX=[],DF={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qX={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ni="__ng_removed";class Bb{namespaceId;value;options;get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const i=n&&n.hasOwnProperty("value");if(this.value=function KX(e){return e??null}(i?n.value:n),i){const{value:o,...s}=n;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const zc="void",jb=new Bb(zc);class WX{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(n,t,i){this.id=n,this.hostElement=t,this._engine=i,this._hostClassName="ng-tns-"+n,Ln(t,this._hostClassName)}listen(n,t,i,r){if(!this._triggers.has(t))throw function Y7(){return new b(3302,!1)}();if(null==i||0==i.length)throw function K7(){return new b(3303,!1)}();if(!function QX(e){return"start"==e||"done"==e}(i))throw function Q7(){return new b(3400,!1)}();const o=wn(this._elementListeners,n,[]),s={name:t,phase:i,callback:r};o.push(s);const a=wn(this._engine.statesByElement,n,new Map);return a.has(t)||(Ln(n,Pf),Ln(n,Pf+"-"+t),a.set(t,jb)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function X7(){return new b(3401,!1)}();return t}trigger(n,t,i,r=!0){const o=this._getTrigger(t),s=new Hb(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(Ln(n,Pf),Ln(n,Pf+"-"+t),this._engine.statesByElement.set(n,a=new Map));let l=a.get(t);const c=new Bb(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=jb),c.value!==zc&&l.value===c.value){if(!function eJ(e,n){const t=Object.keys(e),i=Object.keys(n);if(t.length!=i.length)return!1;for(let r=0;r{Ro(n,_),xi(n,y)})}return}const f=wn(this._engine.playersByElement,n,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let h=o.matchTransition(l.value,c.value,n,c.params),p=!1;if(!h){if(!r)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:h,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Ln(n,EF),s.onStart(()=>{_a(n,EF)})),s.onDone(()=>{let m=this.players.indexOf(s);m>=0&&this.players.splice(m,1);const _=this._engine.playersByElement.get(n);if(_){let y=_.indexOf(s);y>=0&&_.splice(y,1)}}),this.players.push(s),f.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const i=this._engine.driver.query(n,Lf,!0);i.forEach(r=>{if(r[ni])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,t,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const d=this.trigger(n,c,zc,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),i&&Ar(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(t&&i){const r=new Set;t.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||jb,d=new Bb(zc),u=new Hb(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(n,t){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let r=!1;if(i.totalAnimations){const 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,t);else{const o=n[ni];(!o||o===DF)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,t))}}insertNode(n,t){Ln(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=wb(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,yb(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class ZX{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,t)=>{};_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,i){this.bodyNode=n,this.driver=t,this._normalizer=i}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,t){const i=new WX(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,t){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(t,n),n}register(n,t){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,t)),i}registerTrigger(n,t,i){let r=this._namespaceLookup[n];r&&r.register(t,i)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(n,t,i,r){if(Gf(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(n,t,i,r){if(!Gf(t))return;const o=t[ni];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Ln(n,Vb)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),_a(n,Vb))}removeNode(n,t,i){if(Gf(t)){const r=n?this._fetchNamespace(n):null;r?r.removeNode(t,i):this.markElementAsRemoved(n,t,!1,i);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(n,t,i,r,o){this.collectedLeaveElements.push(t),t[ni]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,i,r,o){return Gf(t)?this._fetchNamespace(n).listen(t,i,r,o):()=>{}}_buildInstruction(n,t,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,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,Lf,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,Ib,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Ar(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[ni];if(t&&t.setForRemoval){if(n[ni]=DF,t.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(Vb)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let t=[];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;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Ar(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function J7(){return new b(3402,!1)}()}_flushAnimations(n,t){const i=new Uf,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(k=>{d.add(k);const L=this.driver.query(k,".ng-animate-queued",!0);for(let U=0;U{const U=Sb+m++;p.set(L,U),k.forEach(de=>Ln(de,U))});const _=[],y=new Set,v=new Set;for(let k=0;ky.add(de)):v.add(L))}const E=new Map,I=IF(f,Array.from(y));I.forEach((k,L)=>{const U=Of+m++;E.set(L,U),k.forEach(de=>Ln(de,U))}),n.push(()=>{h.forEach((k,L)=>{const U=p.get(L);k.forEach(de=>_a(de,U))}),I.forEach((k,L)=>{const U=E.get(L);k.forEach(de=>_a(de,U))}),_.forEach(k=>{this.processLeaveNode(k)})});const B=[],W=[];for(let k=this._namespaceList.length-1;k>=0;k--)this._namespaceList[k].drainQueuedTransitions(t).forEach(U=>{const de=U.player,Ct=U.element;if(B.push(de),this.collectedEnterElements.length){const Bt=Ct[ni];if(Bt&&Bt.setForMove){if(Bt.previousTriggersValues&&Bt.previousTriggersValues.has(U.triggerName)){const Oo=Bt.previousTriggersValues.get(U.triggerName),Vn=this.statesByElement.get(U.element);if(Vn&&Vn.has(U.triggerName)){const Wf=Vn.get(U.triggerName);Wf.value=Oo,Vn.set(U.triggerName,Wf)}}return void de.destroy()}}const Ii=!u||!this.driver.containsElement(u,Ct),En=E.get(Ct),kr=p.get(Ct),We=this._buildInstruction(U,i,kr,En,Ii);if(We.errors&&We.errors.length)return void W.push(We);if(Ii)return de.onStart(()=>Ro(Ct,We.fromStyles)),de.onDestroy(()=>xi(Ct,We.toStyles)),void r.push(de);if(U.isFallbackTransition)return de.onStart(()=>Ro(Ct,We.fromStyles)),de.onDestroy(()=>xi(Ct,We.toStyles)),void r.push(de);const jF=[];We.timelines.forEach(Bt=>{Bt.stretchStartingKeyframe=!0,this.disabledNodes.has(Bt.element)||jF.push(Bt)}),We.timelines=jF,i.append(Ct,We.timelines),s.push({instruction:We,player:de,element:Ct}),We.queriedElements.forEach(Bt=>wn(a,Bt,[]).push(de)),We.preStyleProps.forEach((Bt,Oo)=>{if(Bt.size){let Vn=l.get(Oo);Vn||l.set(Oo,Vn=new Set),Bt.forEach((Wf,Gb)=>Vn.add(Gb))}}),We.postStyleProps.forEach((Bt,Oo)=>{let Vn=c.get(Oo);Vn||c.set(Oo,Vn=new Set),Bt.forEach((Wf,Gb)=>Vn.add(Gb))})});if(W.length){const k=[];W.forEach(L=>{k.push(function eX(){return new b(3505,!1)}())}),B.forEach(L=>L.destroy()),this.reportError(k)}const J=new Map,be=new Map;s.forEach(k=>{const L=k.element;i.has(L)&&(be.set(L,L),this._beforeAnimationBuild(k.player.namespaceId,k.instruction,J))}),r.forEach(k=>{const L=k.element;this._getPreviousPlayers(L,!1,k.namespaceId,k.triggerName,null).forEach(de=>{wn(J,L,[]).push(de),de.destroy()})});const Si=_.filter(k=>TF(k,l,c)),va=new Map;SF(va,this.driver,v,c,Wi).forEach(k=>{TF(k,l,c)&&Si.push(k)});const Fo=new Map;h.forEach((k,L)=>{SF(Fo,this.driver,new Set(k),l,"!")}),Si.forEach(k=>{const L=va.get(k),U=Fo.get(k);va.set(k,new Map([...L?.entries()??[],...U?.entries()??[]]))});const $b=[],VF=[],BF={};s.forEach(k=>{const{element:L,player:U,instruction:de}=k;if(i.has(L)){if(d.has(L))return U.onDestroy(()=>xi(L,de.toStyles)),U.disabled=!0,U.overrideTotalTime(de.totalTime),void r.push(U);let Ct=BF;if(be.size>1){let En=L;const kr=[];for(;En=En.parentNode;){const We=be.get(En);if(We){Ct=We;break}kr.push(En)}kr.forEach(We=>be.set(We,Ct))}const Ii=this._buildAnimation(U.namespaceId,de,J,o,Fo,va);if(U.setRealPlayer(Ii),Ct===BF)$b.push(U);else{const En=this.playersByElement.get(Ct);En&&En.length&&(U.parentPlayer=Ar(En)),r.push(U)}}else Ro(L,de.fromStyles),U.onDestroy(()=>xi(L,de.toStyles)),VF.push(U),d.has(L)&&r.push(U)}),VF.forEach(k=>{const L=o.get(k.element);if(L&&L.length){const U=Ar(L);k.setRealPlayer(U)}}),r.forEach(k=>{k.parentPlayer?k.syncPlayerEvents(k.parentPlayer):k.destroy()});for(let k=0;k<_.length;k++){const L=_[k],U=L[ni];if(_a(L,Of),U&&U.hasAnimation)continue;let de=[];if(a.size){let Ii=a.get(L);Ii&&Ii.length&&de.push(...Ii);let En=this.driver.query(L,Ib,!0);for(let kr=0;kr!Ii.destroyed);Ct.length?XX(this,L,Ct):this.processLeaveNode(L)}return _.length=0,$b.forEach(k=>{this.players.push(k),k.onDone(()=>{k.destroy();const L=this.players.indexOf(k);this.players.splice(L,1)}),k.play()}),$b}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,i,r,o){let s=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==zc;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,t,i){const o=t.element,s=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,d=c!==o,u=wn(i,c,[]);this._getPreviousPlayers(c,d,s,a,t.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),u.push(h)})}Ro(o,t.fromStyles)}_buildAnimation(n,t,i,r,o,s){const a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,f=t.timelines.map(p=>{const m=p.element;d.add(m);const _=m[ni];if(_&&_.removedBeforeQueried)return new Fc(p.duration,p.delay);const y=m!==l,v=function JX(e){const n=[];return MF(e,n),n}((i.get(m)||GX).map(J=>J.getRealPlayer())).filter(J=>!!J.element&&J.element===m),E=o.get(m),I=s.get(m),B=oF(this._normalizer,p.keyframes,E,I),W=this._buildPlayer(p,B,v);if(p.subTimeline&&r&&u.add(m),y){const J=new Hb(n,a,m);J.setRealPlayer(W),c.push(J)}return W});c.forEach(p=>{wn(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function YX(e,n,t){let i=e.get(n);if(i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&e.delete(n)}return i}(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>Ln(p,uF));const h=Ar(f);return h.onDestroy(()=>{d.forEach(p=>_a(p,uF)),xi(l,t.toStyles)}),u.forEach(p=>{wn(r,p,[]).push(h)}),h}_buildPlayer(n,t,i){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,i):new Fc(n.duration,n.delay)}}class Hb{namespaceId;triggerName;element;_player=new Fc;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(n,t,i){this.namespaceId=n,this.triggerName=t,this.element=i}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>yb(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){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){wn(this._queuedCallbacks,n,[]).push(t)}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&&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){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function Gf(e){return e&&1===e.nodeType}function xF(e,n){const t=e.style.display;return e.style.display=n??"none",t}function SF(e,n,t,i,r){const o=[];t.forEach(l=>o.push(xF(l)));const s=[];i.forEach((l,c)=>{const d=new Map;l.forEach(u=>{const f=n.computeStyle(c,u,r);d.set(u,f),(!f||0==f.length)&&(c[ni]=qX,s.push(c))}),e.set(c,d)});let a=0;return t.forEach(l=>xF(l,o[a++])),s}function IF(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const r=new Set(n),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function Ln(e,n){e.classList?.add(n)}function _a(e,n){e.classList?.remove(n)}function XX(e,n,t){Ar(t).onDone(()=>e.processLeaveNode(n))}function MF(e,n){for(let t=0;tr.add(o)):n.set(e,i),t.delete(e),!0}class $c{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(n,t)=>{};constructor(n,t,i){this._driver=t,this._normalizer=i,this._transitionEngine=new ZX(n.body,t,i),this._timelineEngine=new jX(n.body,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,t,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],d=Rb(this._driver,o,l,[]);if(l.length)throw function z7(){return new b(3404,!1)}();a=function PX(e,n,t){return new LX(e,n,t)}(r,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,r,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,i,r){this._transitionEngine.insertNode(n,t,i,r)}onRemove(n,t,i){this._transitionEngine.removeNode(n,t,i)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,i,r){if("@"==i.charAt(0)){const[o,s]=sF(i);this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(n,t,i,r)}listen(n,t,i,r,o){if("@"==i.charAt(0)){const[s,a]=sF(i);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(n,t,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)}}let nJ=(()=>{class e{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r;let o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&xi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(xi(this._element,this._initialStyles),this._endStyles&&(xi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Ro(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ro(this._element,this._endStyles),this._endStyles=null),xi(this._element,this._initialStyles),this._state=3)}}return e})();function Ub(e){let n=null;return e.forEach((t,i)=>{(function iJ(e){return"display"===e||"position"===e})(i)&&(n=n||new Map,n.set(i,t))}),n}class AF{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(n,t,i,r){this.element=n,this.keyframes=t,this.options=i,this._specialStyles=r,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;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(n,t,i){return n.animate(this._convertKeyframesToObject(t),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){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:kb(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class kF{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,t){return lF(n,t)}getParentElement(n){return Cb(n)}query(n,t,i){return cF(n,t,i)}computeStyle(n,t,i){return kb(n,t)}animate(n,t,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,d=s.filter(h=>h instanceof AF);(function fX(e,n){return 0===e||0===n})(i,r)&&d.forEach(h=>{h.currentSnapshot.forEach((p,m)=>c.set(m,p))});let u=function dX(e){return e.length?e[0]instanceof Map?e:e.map(n=>new Map(Object.entries(n))):[]}(t).map(h=>new Map(h));u=function pX(e,n,t){if(t.size&&n.length){let i=n[0],r=[];if(t.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,kb(e,a)))}}return n}(n,u,c);const f=function tJ(e,n){let t=null,i=null;return Array.isArray(n)&&n.length?(t=Ub(n[0]),n.length>1&&(i=Ub(n[n.length-1]))):n instanceof Map&&(t=Ub(n)),t||i?new nJ(e,t,i):null}(n,u);return new AF(n,u,l,f)}}const RF="@.disabled";class NF{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(n,t,i,r){this.namespaceId=n,this.delegate=t,this.engine=i,this._onDestroy=r}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,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,i,r=!0){this.delegate.insertBefore(n,t,i),this.engine.onInsert(this.namespaceId,t,n,r)}removeChild(n,t,i){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,i,r){this.delegate.setAttribute(n,t,i,r)}removeAttribute(n,t,i){this.delegate.removeAttribute(n,t,i)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,i,r){this.delegate.setStyle(n,t,i,r)}removeStyle(n,t,i){this.delegate.removeStyle(n,t,i)}setProperty(n,t,i){"@"==t.charAt(0)&&t==RF?this.disableAnimations(n,!!i):this.delegate.setProperty(n,t,i)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,i){return this.delegate.listen(n,t,i)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class rJ extends NF{factory;constructor(n,t,i,r,o){super(t,i,r,o),this.factory=n,this.namespaceId=t}setProperty(n,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==RF?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,t.slice(1),i):this.delegate.setProperty(n,t,i)}listen(n,t,i){if("@"==t.charAt(0)){const r=function oJ(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function sJ(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,t,i)}}class aJ{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(n,t,i){this.delegate=n,this.engine=t,this._zone=i,t.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(n,t){const r=this.delegate.createRenderer(n,t);if(!n||!t?.data?.animation){const c=this._rendererCache;let d=c.get(r);return d||(d=new NF("",r,this.engine,()=>c.delete(r)),c.set(r,d)),d}const o=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);const a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,n,c.name,c)};return t.data.animation.forEach(a),new rJ(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,t,i){if(n>=0&&nt(i));const r=this._animationCallbacksBuffer;0==r.length&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const FF=[{provide:xb,useFactory:function cJ(){return new pF}},{provide:$c,useClass:(()=>{class e extends $c{constructor(t,i,r){super(t,i,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||e)(M(ae),M(Db),M(xb))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})()},{provide:gu,useFactory:function dJ(e,n,t){return new aJ(e,n,t)},deps:[bv,$c,q]}],zb=[{provide:Db,useFactory:()=>new kF},{provide:Gr,useValue:"BrowserAnimations"},...FF],OF=[{provide:Db,useClass:Eb},{provide:Gr,useValue:"NoopAnimations"},...FF];let uJ=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?OF:zb}}static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({providers:zb,imports:[_T]})}return e})(),hJ=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({})}return e})(),fJ=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[Zt,hJ,DN]})}return e})(),mJ=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=Fe({type:e});static \u0275inj=Me({imports:[Zt,Pc,Pc,Zt]})}return e})(),gJ=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Fe({type:e,bootstrap:[w7]})}static{this.\u0275inj=Me({providers:[H9(wo(Ir.LegacyInterceptors,[{provide:Zk,useFactory:A9},{provide:xc,useExisting:Zk,multi:!0}]))],imports:[_T,s7,uJ,fJ,lZ,UY,mJ,UK,r7.forRoot({loader:Dc}),u7,b7]})}}return e})();TG().bootstrapModule(gJ).catch(e=>console.error(e))}},ya=>{ya(ya.s=344)}]); \ No newline at end of file