s6-0day/0day.tomorrow/Public/main.9af4d9bb812b7290.js

1 line
604 KiB
JavaScript
Executable File

"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[179],{895:()=>{function he(n){return"function"==typeof n}function ls(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Qa=ls(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function $r(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class We{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(he(i))try{i()}catch(o){t=o instanceof Qa?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Bg(o)}catch(s){t=t??[],s instanceof Qa?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Qa(t)}}add(t){var e;if(t&&t!==this)if(this.closed)Bg(t);else{if(t instanceof We){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&$r(e,t)}remove(t){const{_finalizers:e}=this;e&&$r(e,t),t instanceof We&&t._removeParent(this)}}We.EMPTY=(()=>{const n=new We;return n.closed=!0,n})();const Lg=We.EMPTY;function Vg(n){return n instanceof We||n&&"closed"in n&&he(n.remove)&&he(n.add)&&he(n.unsubscribe)}function Bg(n){he(n)?n():n.unsubscribe()}const or={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Xa={setTimeout(n,t,...e){const{delegate:i}=Xa;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=Xa;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Hg(n){Xa.setTimeout(()=>{const{onUnhandledError:t}=or;if(!t)throw n;t(n)})}function ad(){}const tT=ld("C",void 0,void 0);function ld(n,t,e){return{kind:n,value:t,error:e}}let sr=null;function Ja(n){if(or.useDeprecatedSynchronousErrorHandling){const t=!sr;if(t&&(sr={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=sr;if(sr=null,e)throw i}}else n()}class cd extends We{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Vg(t)&&t.add(this)):this.destination=lT}static create(t,e,i){return new cs(t,e,i)}next(t){this.isStopped?dd(function iT(n){return ld("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?dd(function nT(n){return ld("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?dd(tT,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const oT=Function.prototype.bind;function ud(n,t){return oT.call(n,t)}class sT{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){el(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){el(i)}else el(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){el(e)}}}class cs extends cd{constructor(t,e,i){let r;if(super(),he(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&or.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&ud(t.next,o),error:t.error&&ud(t.error,o),complete:t.complete&&ud(t.complete,o)}):r=t}this.destination=new sT(r)}}function el(n){or.useDeprecatedSynchronousErrorHandling?function rT(n){or.useDeprecatedSynchronousErrorHandling&&sr&&(sr.errorThrown=!0,sr.error=n)}(n):Hg(n)}function dd(n,t){const{onStoppedNotification:e}=or;e&&Xa.setTimeout(()=>e(n,t))}const lT={closed:!0,next:ad,error:function aT(n){throw n},complete:ad},hd="function"==typeof Symbol&&Symbol.observable||"@@observable";function Pi(n){return n}function jg(n){return 0===n.length?Pi:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let Te=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function dT(n){return n&&n instanceof cd||function uT(n){return n&&he(n.next)&&he(n.error)&&he(n.complete)}(n)&&Vg(n)}(e)?e:new cs(e,i,r);return Ja(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Ug(i))((r,o)=>{const s=new cs({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[hd](){return this}pipe(...e){return jg(e)(this)}toPromise(e){return new(e=Ug(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function Ug(n){var t;return null!==(t=n??or.Promise)&&void 0!==t?t:Promise}const hT=ls(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let L=(()=>{class n extends Te{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new $g(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new hT}next(e){Ja(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Ja(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Ja(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?Lg:(this.currentObservers=null,o.push(e),new We(()=>{this.currentObservers=null,$r(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new Te;return e.source=this,e}}return n.create=(t,e)=>new $g(t,e),n})();class $g extends L{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:Lg}}function zg(n){return he(n?.lift)}function qe(n){return t=>{if(zg(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ve(n,t,e,i,r){return new fT(n,t,e,i,r)}class fT extends cd{constructor(t,e,i,r,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function $(n,t){return qe((e,i)=>{let r=0;e.subscribe(Ve(i,o=>{i.next(n.call(t,o,r++))}))})}function ar(n){return this instanceof ar?(this.v=n,this):new ar(n)}function gT(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(h){i[h]&&(r[h]=function(f){return new Promise(function(p,g){o.push([h,f,p,g])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof ar?Promise.resolve(h.value.v).then(c,u):d(o[0][2],h)}(i[h](f))}catch(p){d(o[0][3],p)}}function c(h){a("next",h)}function u(h){a("throw",h)}function d(h,f){h(f),o.shift(),o.length&&a(o[0][0],o[0][1])}}function _T(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function qg(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[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=n[o](s)).done,s.value)})}}}const pd=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Yg(n){return he(n?.then)}function Kg(n){return he(n[hd])}function Zg(n){return Symbol.asyncIterator&&he(n?.[Symbol.asyncIterator])}function Qg(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Xg=function vT(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Jg(n){return he(n?.[Xg])}function e_(n){return gT(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield ar(e.read());if(r)return yield ar(void 0);yield yield ar(i)}}finally{e.releaseLock()}})}function t_(n){return he(n?.getReader)}function Lt(n){if(n instanceof Te)return n;if(null!=n){if(Kg(n))return function bT(n){return new Te(t=>{const e=n[hd]();if(he(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(pd(n))return function CT(n){return new Te(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(Yg(n))return function wT(n){return new Te(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Hg)})}(n);if(Zg(n))return n_(n);if(Jg(n))return function DT(n){return new Te(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(t_(n))return function MT(n){return n_(e_(n))}(n)}throw Qg(n)}function n_(n){return new Te(t=>{(function ET(n,t){var e,i,r,o;return function pT(n,t,e,i){return new(e||(e=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=_T(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function ai(n,t,e,i=0,r=!1){const o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function ft(n,t,e=1/0){return he(t)?ft((i,r)=>$((o,s)=>t(i,o,r,s))(Lt(n(i,r))),e):("number"==typeof t&&(e=t),qe((i,r)=>function ST(n,t,e,i,r,o,s,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&t.complete()},f=g=>c<i?p(g):l.push(g),p=g=>{o&&t.next(g),c++;let y=!1;Lt(e(g,u++)).subscribe(Ve(t,v=>{r?.(v),o?f(v):t.next(v)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&c<i;){const v=l.shift();s?ai(t,s,()=>p(v)):p(v)}h()}catch(v){t.error(v)}}))};return n.subscribe(Ve(t,f,()=>{d=!0,h()})),()=>{a?.()}}(i,r,n,e)))}function zr(n=1/0){return ft(Pi,n)}const $n=new Te(n=>n.complete());function i_(n){return n&&he(n.schedule)}function md(n){return n[n.length-1]}function r_(n){return he(md(n))?n.pop():void 0}function us(n){return i_(md(n))?n.pop():void 0}function o_(n,t=0){return qe((e,i)=>{e.subscribe(Ve(i,r=>ai(i,n,()=>i.next(r),t),()=>ai(i,n,()=>i.complete(),t),r=>ai(i,n,()=>i.error(r),t)))})}function s_(n,t=0){return qe((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function a_(n,t){if(!n)throw new Error("Iterable cannot be null");return new Te(e=>{ai(e,t,()=>{const i=n[Symbol.asyncIterator]();ai(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Xe(n,t){return t?function FT(n,t){if(null!=n){if(Kg(n))return function IT(n,t){return Lt(n).pipe(s_(t),o_(t))}(n,t);if(pd(n))return function kT(n,t){return new Te(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(Yg(n))return function xT(n,t){return Lt(n).pipe(s_(t),o_(t))}(n,t);if(Zg(n))return a_(n,t);if(Jg(n))return function RT(n,t){return new Te(e=>{let i;return ai(e,t,()=>{i=n[Xg](),ai(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>he(i?.return)&&i.return()})}(n,t);if(t_(n))return function OT(n,t){return a_(e_(n),t)}(n,t)}throw Qg(n)}(n,t):Lt(n)}function Sn(...n){const t=us(n),e=function TT(n,t){return"number"==typeof md(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?Lt(i[0]):zr(e)(Xe(i,t)):$n}function l_(n={}){const{connector:t=(()=>new L),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=l=void 0,u=d=!1},p=()=>{const g=s;f(),g?.unsubscribe()};return qe((g,y)=>{c++,!d&&!u&&h();const v=l=l??t();y.add(()=>{c--,0===c&&!d&&!u&&(a=gd(p,r))}),v.subscribe(y),!s&&c>0&&(s=new cs({next:E=>v.next(E),error:E=>{d=!0,h(),a=gd(f,e,E),v.error(E)},complete:()=>{u=!0,h(),a=gd(f,i),v.complete()}}),Lt(g).subscribe(s))})(o)}}function gd(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new cs({next:()=>{i.unsubscribe(),n()}});return t(...e).subscribe(i)}function Se(n){for(let t in n)if(n[t]===Se)return t;throw Error("Could not find renamed property on target object.")}function _d(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function Ae(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Ae).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function yd(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const PT=Se({__forward_ref__:Se});function Ie(n){return n.__forward_ref__=Ie,n.toString=function(){return Ae(this())},n}function z(n){return vd(n)?n():n}function vd(n){return"function"==typeof n&&n.hasOwnProperty(PT)&&n.__forward_ref__===Ie}class C extends Error{constructor(t,e){super(function tl(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function Y(n){return"string"==typeof n?n:null==n?"":String(n)}function nl(n,t){throw new C(-201,!1)}function zt(n,t){null==n&&function ye(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function A(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function K(n){return{providers:n.providers||[],imports:n.imports||[]}}function il(n){return c_(n,rl)||c_(n,d_)}function c_(n,t){return n.hasOwnProperty(t)?n[t]:null}function u_(n){return n&&(n.hasOwnProperty(bd)||n.hasOwnProperty(zT))?n[bd]:null}const rl=Se({\u0275prov:Se}),bd=Se({\u0275inj:Se}),d_=Se({ngInjectableDef:Se}),zT=Se({ngInjectorDef:Se});var B=(()=>((B=B||{})[B.Default=0]="Default",B[B.Host=1]="Host",B[B.Self=2]="Self",B[B.SkipSelf=4]="SkipSelf",B[B.Optional=8]="Optional",B))();let Cd;function ln(n){const t=Cd;return Cd=n,t}function h_(n,t,e){const i=il(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&B.Optional?null:void 0!==t?t:void nl(Ae(n))}function Ni(n){return{toString:n}.toString()}var An=(()=>((An=An||{})[An.OnPush=0]="OnPush",An[An.Default=1]="Default",An))(),Tn=(()=>{return(n=Tn||(Tn={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Tn;var n})();const xe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Gr={},ge=[],ol=Se({\u0275cmp:Se}),wd=Se({\u0275dir:Se}),Dd=Se({\u0275pipe:Se}),f_=Se({\u0275mod:Se}),ci=Se({\u0275fac:Se}),ds=Se({__NG_ELEMENT_ID__:Se});let WT=0;function ke(n){return Ni(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===An.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||ge,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Tn.Emulated,id:"c"+WT++,styles:n.styles||ge,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=g_(n.inputs,i),r.outputs=g_(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(p_).filter(m_):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(It).filter(m_):null,r})}function p_(n){return we(n)||Tt(n)}function m_(n){return null!==n}function X(n){return Ni(()=>({type:n.type,bootstrap:n.bootstrap||ge,declarations:n.declarations||ge,imports:n.imports||ge,exports:n.exports||ge,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function g_(n,t){if(null==n)return Gr;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const I=ke;function Vt(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function we(n){return n[ol]||null}function Tt(n){return n[wd]||null}function It(n){return n[Dd]||null}function Gt(n,t){const e=n[f_]||null;if(!e&&!0===t)throw new Error(`Type ${Ae(n)} does not have '\u0275mod' property.`);return e}function Bt(n){return Array.isArray(n)&&"object"==typeof n[1]}function xn(n){return Array.isArray(n)&&!0===n[1]}function Sd(n){return 0!=(8&n.flags)}function cl(n){return 2==(2&n.flags)}function ul(n){return 1==(1&n.flags)}function kn(n){return null!==n.template}function XT(n){return 0!=(256&n[2])}function hr(n,t){return n.hasOwnProperty(ci)?n[ci]:null}class tI{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ct(){return v_}function v_(n){return n.type.prototype.ngOnChanges&&(n.setInput=iI),nI}function nI(){const n=C_(this),t=n?.current;if(t){const e=n.previous;if(e===Gr)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function iI(n,t,e,i){const r=C_(n)||function rI(n,t){return n[b_]=t}(n,{previous:Gr,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new tI(l&&l.currentValue,t,s===Gr),n[i]=t}Ct.ngInherit=!0;const b_="__ngSimpleChanges__";function C_(n){return n[b_]||null}function Je(n){for(;Array.isArray(n);)n=n[0];return n}function dl(n,t){return Je(t[n])}function dn(n,t){return Je(t[n.index])}function kd(n,t){return n.data[t]}function Zr(n,t){return n[t]}function qt(n,t){const e=t[n];return Bt(e)?e:e[0]}function hl(n){return 64==(64&n[2])}function Li(n,t){return null==t?null:n[t]}function w_(n){n[18]=0}function Rd(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const q={lFrame:R_(null),bindingsEnabled:!0};function M_(){return q.bindingsEnabled}function w(){return q.lFrame.lView}function de(){return q.lFrame.tView}function Vi(n){return q.lFrame.contextLView=n,n[8]}function Bi(n){return q.lFrame.contextLView=null,n}function at(){let n=E_();for(;null!==n&&64===n.type;)n=n.parent;return n}function E_(){return q.lFrame.currentTNode}function zn(n,t){const e=q.lFrame;e.currentTNode=n,e.isParent=t}function Od(){return q.lFrame.isParent}function Fd(){q.lFrame.isParent=!1}function xt(){const n=q.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function Qr(){return q.lFrame.bindingIndex++}function di(n){const t=q.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function vI(n,t){const e=q.lFrame;e.bindingIndex=e.bindingRootIndex=n,Pd(t)}function Pd(n){q.lFrame.currentDirectiveIndex=n}function Nd(n){const t=q.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function I_(){return q.lFrame.currentQueryIndex}function Ld(n){q.lFrame.currentQueryIndex=n}function CI(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function x_(n,t,e){if(e&B.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&B.Host||(r=CI(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=q.lFrame=k_();return i.currentTNode=t,i.lView=n,!0}function Vd(n){const t=k_(),e=n[1];q.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function k_(){const n=q.lFrame,t=null===n?null:n.child;return null===t?R_(n):t}function R_(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function O_(){const n=q.lFrame;return q.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const F_=O_;function Bd(){const n=O_();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function kt(){return q.lFrame.selectedIndex}function Hi(n){q.lFrame.selectedIndex=n}function Ke(){const n=q.lFrame;return kd(n.tView,n.selectedIndex)}function fl(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const o=n.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(n.contentHooks||(n.contentHooks=[])).push(-e,s),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function pl(n,t,e){P_(n,t,3,e)}function ml(n,t,e,i){(3&n[2])===e&&P_(n,t,e,i)}function Hd(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function P_(n,t,e,i){const o=i??-1,s=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<s;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<o||-1==o)&&(xI(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function xI(n,t,e,i){const r=e[i]<0,o=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class _s{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function gl(n,t,e){let i=0;for(;i<e.length;){const r=e[i];if("number"==typeof r){if(0!==r)break;i++;const o=e[i++],s=e[i++],a=e[i++];n.setAttribute(t,s,a,o)}else{const o=r,s=e[++i];L_(o)?n.setProperty(t,o,s):n.setAttribute(t,o,s),i++}}return i}function N_(n){return 3===n||4===n||6===n}function L_(n){return 64===n.charCodeAt(0)}function _l(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||V_(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function V_(n,t,e,i,r){let o=0,s=n.length;if(-1===t)s=-1;else for(;o<n.length;){const a=n[o++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=o-1;break}}}for(;o<n.length;){const a=n[o];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(n[o+1]=r));if(i===n[o+1])return void(n[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==s&&(n.splice(s,0,t),o=s+1),n.splice(o++,0,e),null!==i&&n.splice(o++,0,i),null!==r&&n.splice(o++,0,r)}function B_(n){return-1!==n}function Xr(n){return 32767&n}function Jr(n,t){let e=function PI(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Ud=!0;function yl(n){const t=Ud;return Ud=n,t}let NI=0;const Gn={};function vs(n,t){const e=zd(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,$d(i.data,n),$d(t,null),$d(i.blueprint,null));const r=vl(n,t),o=n.injectorIndex;if(B_(r)){const s=Xr(r),a=Jr(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function $d(n,t){n.push(0,0,0,0,0,0,0,0,t)}function zd(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function vl(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=Y_(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function bl(n,t,e){!function LI(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(ds)&&(i=e[ds]),null==i&&(i=e[ds]=NI++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function U_(n,t,e){if(e&B.Optional||void 0!==n)return n;nl()}function $_(n,t,e,i){if(e&B.Optional&&void 0===i&&(i=null),0==(e&(B.Self|B.Host))){const r=n[9],o=ln(void 0);try{return r?r.get(t,i,e&B.Optional):h_(t,i,e&B.Optional)}finally{ln(o)}}return U_(i,0,e)}function z_(n,t,e,i=B.Default,r){if(null!==n){if(1024&t[2]){const s=function UI(n,t,e,i,r){let o=n,s=t;for(;null!==o&&null!==s&&1024&s[2]&&!(256&s[2]);){const a=G_(o,s,e,i|B.Self,Gn);if(a!==Gn)return a;let l=o.parent;if(!l){const c=s[21];if(c){const u=c.get(e,Gn,i);if(u!==Gn)return u}l=Y_(s),s=s[15]}o=l}return r}(n,t,e,i,Gn);if(s!==Gn)return s}const o=G_(n,t,e,i,Gn);if(o!==Gn)return o}return $_(t,e,i,r)}function G_(n,t,e,i,r){const o=function HI(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(ds)?n[ds]:void 0;return"number"==typeof t?t>=0?255&t:jI:t}(e);if("function"==typeof o){if(!x_(t,n,i))return i&B.Host?U_(r,0,i):$_(t,e,i,r);try{const s=o(i);if(null!=s||i&B.Optional)return s;nl()}finally{F_()}}else if("number"==typeof o){let s=null,a=zd(n,t),l=-1,c=i&B.Host?t[16][6]:null;for((-1===a||i&B.SkipSelf)&&(l=-1===a?vl(n,t):t[a+8],-1!==l&&q_(i,!1)?(s=t[1],a=Xr(l),t=Jr(l,t)):a=-1);-1!==a;){const u=t[1];if(W_(o,a,u.data)){const d=BI(a,t,e,s,i,c);if(d!==Gn)return d}l=t[a+8],-1!==l&&q_(i,t[1].data[a+8]===c)&&W_(o,a,t)?(s=u,a=Xr(l),t=Jr(l,t)):a=-1}}return r}function BI(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Cl(a,s,e,null==i?cl(a)&&Ud:i!=s&&0!=(3&a.type),r&B.Host&&o===a);return null!==u?bs(t,s,u,a):Gn}function Cl(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=s[f];if(f<l&&e===p||f>=l&&p.type===e)return f}if(r){const f=s[l];if(f&&kn(f)&&f.type===e)return l}return null}function bs(n,t,e,i){let r=n[e];const o=t.data;if(function kI(n){return n instanceof _s}(r)){const s=r;s.resolving&&function NT(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new C(-200,`Circular dependency in DI detected for ${n}${e}`)}(function me(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Y(n)}(o[e]));const a=yl(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?ln(s.injectImpl):null;x_(n,i,B.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function II(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=v_(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&ln(l),yl(a),s.resolving=!1,F_()}}return r}function W_(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function q_(n,t){return!(n&B.Self||n&B.Host&&t)}class eo{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return z_(this._tNode,this._lView,t,i,e)}}function jI(){return new eo(at(),w())}function mt(n){return Ni(()=>{const t=n.prototype.constructor,e=t[ci]||Gd(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[ci]||Gd(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Gd(n){return vd(n)?()=>{const t=Gd(z(n));return t&&t()}:hr(n)}function Y_(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}function hi(n){return function VI(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const o=e[r];if(N_(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(o===t)return e[r+1];r+=2}}}return null}(at(),n)}const no="__parameters__";function ro(n,t,e){return Ni(()=>{const i=function Wd(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);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,u){const d=l.hasOwnProperty(no)?l[no]:Object.defineProperty(l,no,{value:[]})[no];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class M{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=A({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Yt(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),Yt(i,t)):t!==n&&t.push(i)}return t}function fi(n,t){n.forEach(e=>Array.isArray(e)?fi(e,t):t(e))}function Z_(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function wl(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ds(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function Kt(n,t,e){let i=oo(n,t);return i>=0?n[1|i]=e:(i=~i,function WI(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Yd(n,t){const e=oo(n,t);if(e>=0)return n[1|e]}function oo(n,t){return function J_(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<<e];if(t===s)return o<<e;s>t?r=o:i=o+1}return~(r<<e)}(n,t,1)}const Ms={},Zd="__NG_DI_FLAG__",Ml="ngTempTokenPath",ex=/\n/gm,ey="__source";let Es;function so(n){const t=Es;return Es=n,t}function nx(n,t=B.Default){if(void 0===Es)throw new C(-203,!1);return null===Es?h_(n,void 0,t):Es.get(n,t&B.Optional?null:void 0,t)}function _(n,t=B.Default){return(function GT(){return Cd}()||nx)(z(n),t)}function Oe(n,t=B.Default){return"number"!=typeof t&&(t=0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)),_(n,t)}function Qd(n){const t=[];for(let e=0;e<n.length;e++){const i=z(n[e]);if(Array.isArray(i)){if(0===i.length)throw new C(900,!1);let r,o=B.Default;for(let s=0;s<i.length;s++){const a=i[s],l=ix(a);"number"==typeof l?-1===l?r=a.token:o|=l:r=a}t.push(_(r,o))}else t.push(_(i))}return t}function Ss(n,t){return n[Zd]=t,n.prototype[Zd]=t,n}function ix(n){return n[Zd]}const Ui=Ss(ro("Optional"),8),ao=Ss(ro("SkipSelf"),4);let Jd,Al;function co(n){return function eh(){if(void 0===Al&&(Al=null,xe.trustedTypes))try{Al=xe.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Al}()?.createHTML(n)||n}class fr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class yx extends fr{getTypeName(){return"HTML"}}class vx extends fr{getTypeName(){return"Style"}}class bx extends fr{getTypeName(){return"Script"}}class Cx extends fr{getTypeName(){return"URL"}}class wx extends fr{getTypeName(){return"ResourceURL"}}function Zt(n){return n instanceof fr?n.changingThisBreaksApplicationSecurity:n}function Wn(n,t){const e=function Dx(n){return n instanceof fr&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class Ix{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(co(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class xx{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=co(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=co(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const s=e.item(r).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&t.removeAttribute(s)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const Rx=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Il(n){return(n=String(n)).match(Rx)?n:"unsafe:"+n}function pi(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function Is(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const py=pi("area,br,col,hr,img,wbr"),my=pi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gy=pi("rp,rt"),nh=Is(py,Is(my,pi("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")),Is(gy,pi("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")),Is(gy,my)),ih=pi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_y=Is(ih,pi("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"),pi("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")),Ox=pi("script,style,template");class Fx{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!nh.hasOwnProperty(e))return this.sanitizedSomething=!0,!Ox.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const o=i.item(r),s=o.name,a=s.toLowerCase();if(!_y.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;ih[a]&&(l=Il(l)),this.buf.push(" ",s,'="',yy(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();nh.hasOwnProperty(e)&&!py.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(yy(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Px=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nx=/([^\#-~ |!])/g;function yy(n){return n.replace(/&/g,"&amp;").replace(Px,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Nx,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let xl;function vy(n,t){let e=null;try{xl=xl||function fy(n){const t=new xx(n);return function kx(){try{return!!(new window.DOMParser).parseFromString(co(""),"text/html")}catch{return!1}}()?new Ix(t):t}(n);let i=t?String(t):"";e=xl.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=e.innerHTML,e=xl.getInertBodyElement(i)}while(i!==o);return co((new Fx).sanitizeChildren(rh(e)||e))}finally{if(e){const i=rh(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function rh(n){return"content"in n&&function Lx(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var _e=(()=>((_e=_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))();const sh=new M("ENVIRONMENT_INITIALIZER"),Cy=new M("INJECTOR",-1),wy=new M("INJECTOR_DEF_TYPES");class Dy{get(t,e=Ms){if(e===Ms){const i=new Error(`NullInjectorError: No provider for ${Ae(t)}!`);throw i.name="NullInjectorError",i}return e}}function Gx(...n){return{\u0275providers:My(0,n)}}function My(n,...t){const e=[],i=new Set;let r;return fi(t,o=>{const s=o;ah(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&Ey(r,e),e}function Ey(n,t){for(let e=0;e<n.length;e++){const{providers:r}=n[e];fi(r,o=>{t.push(o)})}}function ah(n,t,e,i){if(!(n=z(n)))return!1;let r=null,o=u_(n);const s=!o&&we(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=u_(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)ah(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{fi(o.imports,u=>{ah(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&Ey(c,t)}if(!a){const c=hr(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:ge},{provide:wy,useValue:r,multi:!0},{provide:sh,useValue:()=>_(r),multi:!0})}const l=o.providers;null==l||a||fi(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const Wx=Se({provide:String,useValue:Se});function lh(n){return null!==n&&"object"==typeof n&&Wx in n}function pr(n){return"function"==typeof n}const ch=new M("Set Injector scope."),kl={},Yx={};let uh;function Rl(){return void 0===uh&&(uh=new Dy),uh}class $i{}class Ty extends $i{constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,hh(t,s=>this.processProvider(s)),this.records.set(Cy,uo(void 0,this)),r.has("environment")&&this.records.set($i,uo(void 0,this));const o=this.records.get(ch);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(wy.multi,ge,B.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=so(this),i=ln(void 0);try{return t()}finally{so(e),ln(i)}}get(t,e=Ms,i=B.Default){this.assertNotDestroyed();const r=so(this),o=ln(void 0);try{if(!(i&B.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function Jx(n){return"function"==typeof n||"object"==typeof n&&n instanceof M}(t)&&il(t);a=l&&this.injectableDefInScope(l)?uo(dh(t),kl):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&B.Self?Rl():this.parent).get(t,e=i&B.Optional&&e===Ms?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Ml]=s[Ml]||[]).unshift(Ae(t)),r)throw s;return function rx(n,t,e,i){const r=n[Ml];throw t[ey]&&r.unshift(t[ey]),n.message=function ox(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=Ae(t);if(Array.isArray(t))r=t.map(Ae).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Ae(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(ex,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Ml]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{ln(o),so(r)}}resolveInjectorInitializers(){const t=so(this),e=ln(void 0);try{const i=this.get(sh.multi,ge,B.Self);for(const r of i)r()}finally{so(t),ln(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(Ae(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let e=pr(t=z(t))?t:z(t&&t.provide);const i=function Zx(n){return lh(n)?uo(void 0,n.useValue):uo(Iy(n),kl)}(t);if(pr(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=uo(void 0,kl,!0),r.factory=()=>Qd(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===kl&&(e.value=Yx,e.value=e.factory()),"object"==typeof e.value&&e.value&&function Xx(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=z(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function dh(n){const t=il(n),e=null!==t?t.factory:hr(n);if(null!==e)return e;if(n instanceof M)throw new C(204,!1);if(n instanceof Function)return function Kx(n){const t=n.length;if(t>0)throw Ds(t,"?"),new C(204,!1);const e=function UT(n){const t=n&&(n[rl]||n[d_]);if(t){const e=function $T(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new C(204,!1)}function Iy(n,t,e){let i;if(pr(n)){const r=z(n);return hr(r)||dh(r)}if(lh(n))i=()=>z(n.useValue);else if(function Ay(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Qd(n.deps||[]));else if(function Sy(n){return!(!n||!n.useExisting)}(n))i=()=>_(z(n.useExisting));else{const r=z(n&&(n.useClass||n.provide));if(!function Qx(n){return!!n.deps}(n))return hr(r)||dh(r);i=()=>new r(...Qd(n.deps))}return i}function uo(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function ek(n){return!!n.\u0275providers}function hh(n,t){for(const e of n)Array.isArray(e)?hh(e,t):ek(e)?hh(e.\u0275providers,t):t(e)}class xy{}class ik{resolveComponentFactory(t){throw function nk(n){const t=Error(`No component factory found for ${Ae(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let mr=(()=>{class n{}return n.NULL=new ik,n})();function rk(){return ho(at(),w())}function ho(n,t){return new ce(dn(n,t))}let ce=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=rk,n})();function ok(n){return n instanceof ce?n.nativeElement:n}class ks{}let mi=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function sk(){const n=w(),e=qt(at().index,n);return(Bt(e)?e:n)[11]}(),n})(),ak=(()=>{class n{}return n.\u0275prov=A({token:n,providedIn:"root",factory:()=>null}),n})();class gr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const lk=new gr("14.2.6"),fh={};function yh(n){return n.ngOriginalError}class gi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&yh(t);for(;e&&yh(e);)e=yh(e);return e||null}}const vh=new Map;let bk=0;const Ch="__ngContext__";function wt(n,t){Bt(t)?(n[Ch]=t[20],function wk(n){vh.set(n[20],n)}(t)):n[Ch]=t}function _i(n){return n instanceof Function?n():n}var Ht=(()=>((Ht=Ht||{})[Ht.Important=1]="Important",Ht[Ht.DashCase=2]="DashCase",Ht))();function Dh(n,t){return undefined(n,t)}function Os(n){const t=n[3];return xn(t)?t[3]:t}function Mh(n){return Gy(n[13])}function Eh(n){return Gy(n[4])}function Gy(n){for(;null!==n&&!xn(n);)n=n[4];return n}function po(n,t,e,i,r){if(null!=i){let o,s=!1;xn(i)?o=i:Bt(i)&&(s=!0,i=i[0]);const a=Je(i);0===n&&null!==e?null==r?Qy(t,e,a):_r(t,e,a,r||null,!0):1===n&&null!==e?_r(t,e,a,r||null,!0):2===n?function rv(n,t,e){const i=Ol(n,t);i&&function Kk(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function Xk(n,t,e,i,r){const o=e[7];o!==Je(e)&&po(t,n,i,o,r);for(let a=10;a<e.length;a++){const l=e[a];Fs(l[1],l,n,t,i,o)}}(t,n,o,e,r)}}function Ah(n,t,e){return n.createElement(t,e)}function qy(n,t){const e=n[9],i=e.indexOf(t),r=t[3];512&t[2]&&(t[2]&=-513,Rd(r,-1)),e.splice(i,1)}function Th(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&qy(r,i),t>0&&(n[e-1][4]=i[4]);const o=wl(n,10+t);!function jk(n,t){Fs(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function Yy(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&Fs(n,t,e,3,null,null),function zk(n){let t=n[13];if(!t)return Ih(n[1],n);for(;t;){let e=null;if(Bt(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Bt(t)&&Ih(t[1],t),t=t[3];null===t&&(t=n),Bt(t)&&Ih(t[1],t),e=t&&t[4]}t=e}}(t)}}function Ih(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function Yk(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof _s)){const o=e[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=r[o[s]],l=o[s+1];try{l.call(a)}finally{}}else try{o.call(r)}finally{}}}}(n,t),function qk(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const s=e[o+1],a="function"==typeof s?s(t):Je(t[s]),l=i[r=e[o+2]],c=e[o+3];"boolean"==typeof c?a.removeEventListener(e[o],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o<i.length;o++)(0,i[o])();t[7]=null}}(n,t),1===t[1].type&&t[11].destroy();const e=t[17];if(null!==e&&xn(t[3])){e!==t[3]&&qy(e,t);const i=t[19];null!==i&&i.detachView(n)}!function Dk(n){vh.delete(n[20])}(t)}}function Ky(n,t,e){return function Zy(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Tn.None||r===Tn.Emulated)return null}return dn(i,e)}(n,t.parent,e)}function _r(n,t,e,i,r){n.insertBefore(t,e,i,r)}function Qy(n,t,e){n.appendChild(t,e)}function Xy(n,t,e,i,r){null!==i?_r(n,t,e,i,r):Qy(n,t,e)}function Ol(n,t){return n.parentNode(t)}function Jy(n,t,e){return tv(n,t,e)}let tv=function ev(n,t,e){return 40&n.type?dn(n,e):null};function Fl(n,t,e,i){const r=Ky(n,i,t),o=t[11],a=Jy(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)Xy(o,r,e[l],a,!1);else Xy(o,r,e,a,!1)}function Pl(n,t){if(null!==t){const e=t.type;if(3&e)return dn(t,n);if(4&e)return kh(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return Pl(n,i);{const r=n[t.index];return xn(r)?kh(-1,r):Je(r)}}if(32&e)return Dh(t,n)()||Je(n[t.index]);{const i=iv(n,t);return null!==i?Array.isArray(i)?i[0]:Pl(Os(n[16]),i):Pl(n,t.next)}}return null}function iv(n,t){return null!==t?n[16][6].projection[t.projection]:null}function kh(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return Pl(i,r)}return t[7]}function Rh(n,t,e,i,r,o,s){for(;null!=e;){const a=i[e.index],l=e.type;if(s&&0===t&&(a&&wt(Je(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Rh(n,t,e.child,i,r,o,!1),po(t,n,r,a,o);else if(32&l){const c=Dh(e,i);let u;for(;u=c();)po(t,n,r,u,o);po(t,n,r,a,o)}else 16&l?ov(n,t,i,e,r,o):po(t,n,r,a,o);e=s?e.projectionNext:e.next}}function Fs(n,t,e,i,r,o){Rh(e,i,n.firstChild,t,r,o,!1)}function ov(n,t,e,i,r,o){const s=e[16],l=s[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)po(t,n,r,l[c],o);else Rh(n,t,l,s[3],r,o,!0)}function sv(n,t,e){n.setAttribute(t,"style",e)}function Oh(n,t,e){""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e)}function av(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=t.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}e=r+1}}const lv="ng-template";function eR(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==av(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function cv(n){return 4===n.type&&n.value!==lv}function tR(n,t,e){return t===(4!==n.type||e?n.value:lv)}function nR(n,t,e){let i=4;const r=n.attrs||[],o=function oR(n){for(let t=0;t<n.length;t++)if(N_(n[t]))return t;return n.length}(r);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!tR(n,l,e)||""===l&&1===t.length){if(Rn(i))return!1;s=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!eR(n.attrs,c,e)){if(Rn(i))return!1;s=!0}continue}const d=iR(8&i?"class":l,r,cv(n),e);if(-1===d){if(Rn(i))return!1;s=!0;continue}if(""!==c){let h;h=d>o?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==av(f,c,0)||2&i&&c!==h){if(Rn(i))return!1;s=!0}}}}else{if(!s&&!Rn(i)&&!Rn(l))return!1;if(s&&Rn(l))continue;s=!1,i=l|1&i}}return Rn(i)||s}function Rn(n){return 0==(1&n)}function iR(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r<t.length;){const s=t[r];if(s===n)return r;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=o?1:2}return-1}return function sR(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function uv(n,t,e=!1){for(let i=0;i<t.length;i++)if(nR(n,t[i],e))return!0;return!1}function aR(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function dv(n,t){return n?":not("+t.trim()+")":t}function lR(n){let t=n[0],e=1,i=2,r="",o=!1;for(;e<n.length;){let s=n[e];if("string"==typeof s)if(2&i){const a=n[++e];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Rn(s)&&(t+=dv(o,r),r=""),i=s,o=o||!Rn(i);e++}return""!==r&&(t+=dv(o,r)),t}const Z={};function T(n){hv(de(),w(),kt()+n,!1)}function hv(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&pl(t,o,e)}else{const o=n.preOrderHooks;null!==o&&ml(t,o,0,e)}Hi(e)}function gv(n,t=null,e=null,i){const r=_v(n,t,e,i);return r.resolveInjectorInitializers(),r}function _v(n,t=null,e=null,i,r=new Set){const o=[e||ge,Gx(n)];return i=i||("object"==typeof n?void 0:Ae(n)),new Ty(o,t||Rl(),i||null,r)}let He=(()=>{class n{static create(e,i){if(Array.isArray(e))return gv({name:""},i,e,"");{const r=e.name??"";return gv({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Ms,n.NULL=new Dy,n.\u0275prov=A({token:n,providedIn:"any",factory:()=>_(Cy)}),n.__NG_ELEMENT_ID__=-1,n})();function m(n,t=B.Default){const e=w();return null===e?_(n,t):z_(at(),e,z(n),t)}function go(){throw new Error("invalid")}function Ll(n,t){return n<<17|t<<2}function On(n){return n>>17&32767}function Vh(n){return 2|n}function yi(n){return(131068&n)>>2}function Bh(n,t){return-131069&n|t<<2}function Hh(n){return 1|n}function Fv(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],o=e[i+1];if(-1!==o){const s=n.data[o];Ld(r),s.contentQueries(2,t[o],o)}}}function Hl(n,t,e,i,r,o,s,a,l,c,u){const d=t.blueprint.slice();return d[0]=r,d[2]=76|i,(null!==u||n&&1024&n[2])&&(d[2]|=1024),w_(d),d[3]=d[15]=n,d[8]=e,d[10]=s||n&&n[10],d[11]=a||n&&n[11],d[12]=l||n&&n[12]||null,d[9]=c||n&&n[9]||null,d[6]=o,d[20]=function Ck(){return bk++}(),d[21]=u,d[16]=2==t.type?n[16]:d,d}function _o(n,t,e,i,r){let o=n.data[t];if(null===o)o=function Yh(n,t,e,i,r){const o=E_(),s=Od(),l=n.data[t]=function zR(n,t,e,i,r,o){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,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,e,t,i,r);return null===n.firstChild&&(n.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(n,t,e,i,r),function yI(){return q.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=e,o.value=i,o.attrs=r;const s=function gs(){const n=q.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return zn(o,!0),o}function yo(n,t,e,i){if(0===e)return-1;const r=t.length;for(let o=0;o<e;o++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function Kh(n,t,e){Vd(t);try{const i=n.viewQuery;null!==i&&rf(1,i,e);const r=n.template;null!==r&&Pv(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Fv(n,t),n.staticViewQueries&&rf(2,n.viewQuery,e);const o=n.components;null!==o&&function jR(n,t){for(let e=0;e<t.length;e++)sO(n,t[e])}(t,o)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,Bd()}}function jl(n,t,e,i){const r=t[2];if(128!=(128&r)){Vd(t);try{w_(t),function A_(n){return q.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&Pv(n,t,e,2,i);const s=3==(3&r);if(s){const c=n.preOrderCheckHooks;null!==c&&pl(t,c,null)}else{const c=n.preOrderHooks;null!==c&&ml(t,c,0,null),Hd(t,0)}if(function rO(n){for(let t=Mh(n);null!==t;t=Eh(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],o=r[3];0==(512&r[2])&&Rd(o,1),r[2]|=512}}}(t),function iO(n){for(let t=Mh(n);null!==t;t=Eh(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];hl(i)&&jl(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&Fv(n,t),s){const c=n.contentCheckHooks;null!==c&&pl(t,c)}else{const c=n.contentHooks;null!==c&&ml(t,c,1),Hd(t,1)}!function BR(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)Hi(~r);else{const o=r,s=e[++i],a=e[++i];vI(s,o),a(2,t[o])}}}finally{Hi(-1)}}(n,t);const a=n.components;null!==a&&function HR(n,t){for(let e=0;e<t.length;e++)oO(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&rf(2,l,i),s){const c=n.viewCheckHooks;null!==c&&pl(t,c)}else{const c=n.viewHooks;null!==c&&ml(t,c,2),Hd(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,Rd(t[3],-1))}finally{Bd()}}}function Pv(n,t,e,i,r){const o=kt(),s=2&i;try{Hi(-1),s&&t.length>22&&hv(n,t,22,!1),e(i,r)}finally{Hi(o)}}function Nv(n,t,e){if(Sd(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o<r;o++){const s=n.data[o];s.contentQueries&&s.contentQueries(1,e[o],o)}}}function Zh(n,t,e){!M_()||(function KR(n,t,e,i){const r=e.directiveStart,o=e.directiveEnd;n.firstCreatePass||vs(e,t),wt(i,t);const s=e.initialInputs;for(let a=r;a<o;a++){const l=n.data[a],c=kn(l);c&&eO(t,e,l);const u=bs(t,n,a,e);wt(u,t),null!==s&&tO(0,a-r,u,l,0,s),c&&(qt(e.index,t)[8]=u)}}(n,t,e,dn(e,t)),128==(128&e.flags)&&function ZR(n,t,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,s=function bI(){return q.lFrame.currentDirectiveIndex}();try{Hi(o);for(let a=i;a<r;a++){const l=n.data[a],c=t[a];Pd(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&$v(l,c)}}finally{Hi(-1),Pd(s)}}(n,t,e))}function Qh(n,t,e=dn){const i=t.localNames;if(null!==i){let r=t.index+1;for(let o=0;o<i.length;o+=2){const s=i[o+1],a=-1===s?e(t,n):n[s];n[r++]=a}}}function Lv(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=Xh(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function Xh(n,t,e,i,r,o,s,a,l,c){const u=22+i,d=u+r,h=function UR(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:Z);return e}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function Vv(n,t,e,i){const r=Yv(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&Kv(n).push(i,r.length-1))}function Bv(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}return e}function Hv(n,t){const i=t.directiveEnd,r=n.data,o=t.attrs,s=[];let a=null,l=null;for(let c=t.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===o||cv(t)?null:nO(d,o);s.push(h),a=Bv(d,c,a),l=Bv(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=a,t.outputs=l}function Qt(n,t,e,i,r,o,s,a){const l=dn(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[i])?(sf(n,e,u,i,r),cl(t)&&jv(e,t.index)):3&t.type&&(i=function GR(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=s?s(r,t.value||"",i):r,o.setProperty(l,i,r))}function jv(n,t){const e=qt(t,n);16&e[2]||(e[2]|=32)}function Jh(n,t,e,i){let r=!1;if(M_()){const o=function QR(n,t,e){const i=n.directiveRegistry;let r=null;if(i)for(let o=0;o<i.length;o++){const s=i[o];uv(e,s.selectors,!1)&&(r||(r=[]),bl(vs(e,t),n,s.type),kn(s)?(zv(n,e),r.unshift(s)):r.push(s))}return r}(n,t,e),s=null===i?null:{"":-1};if(null!==o){r=!0,Gv(e,n.data.length,o.length);for(let u=0;u<o.length;u++){const d=o[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=yo(n,t,o.length,null);for(let u=0;u<o.length;u++){const d=o[u];e.mergedAttrs=_l(e.mergedAttrs,d.hostAttrs),Wv(n,e,t,c,d),JR(c,d,s),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}Hv(n,e)}s&&function XR(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const o=e[t[r+1]];if(null==o)throw new C(-301,!1);i.push(t[r],o)}}}(e,i,s)}return e.mergedAttrs=_l(e.mergedAttrs,e.attrs),r}function Uv(n,t,e,i,r,o){const s=o.hostBindings;if(s){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function YR(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function $v(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function zv(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function JR(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;kn(t)&&(e[""]=n)}}function Gv(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function Wv(n,t,e,i,r){n.data[i]=r;const o=r.factory||(r.factory=hr(r.type)),s=new _s(o,kn(r),m);n.blueprint[i]=s,e[i]=s,Uv(n,t,0,i,yo(n,e,r.hostVars,Z),r)}function eO(n,t,e){const i=dn(t,n),r=Lv(e),o=n[10],s=Ul(n,Hl(n,r,null,e.onPush?32:16,i,t,o,o.createRenderer(i,e),null,null,null));n[t.index]=s}function qn(n,t,e,i,r,o){const s=dn(n,t);!function ef(n,t,e,i,r,o,s){if(null==o)n.removeAttribute(t,r,e);else{const a=null==s?Y(o):s(o,i||"",r);n.setAttribute(t,r,a,e)}}(t[11],s,o,n.value,e,i,r)}function tO(n,t,e,i,r,o){const s=o[t];if(null!==s){const a=i.setInput;for(let l=0;l<s.length;){const c=s[l++],u=s[l++],d=s[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function nO(n,t){let e=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,n[r],t[i+1])),i+=2}else i+=2;else i+=4}return e}function qv(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function oO(n,t){const e=qt(t,n);if(hl(e)){const i=e[1];48&e[2]?jl(i,e,i.template,e[8]):e[5]>0&&tf(e)}}function tf(n){for(let i=Mh(n);null!==i;i=Eh(i))for(let r=10;r<i.length;r++){const o=i[r];if(hl(o))if(512&o[2]){const s=o[1];jl(s,o,s.template,o[8])}else o[5]>0&&tf(o)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=qt(e[i],n);hl(r)&&r[5]>0&&tf(r)}}function sO(n,t){const e=qt(t,n),i=e[1];(function aO(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),Kh(i,e,e[8])}function Ul(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function nf(n){for(;n;){n[2]|=32;const t=Os(n);if(XT(n)&&!t)return n;n=t}return null}function $l(n,t,e,i=!0){const r=t[10];r.begin&&r.begin();try{jl(n,t,n.template,e)}catch(s){throw i&&Qv(t,s),s}finally{r.end&&r.end()}}function rf(n,t,e){Ld(0),t(n,e)}function Yv(n){return n[7]||(n[7]=[])}function Kv(n){return n.cleanup||(n.cleanup=[])}function Zv(n,t,e){return(null===n||kn(n))&&(e=function lI(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function Qv(n,t){const e=n[9],i=e?e.get(gi,null):null;i&&i.handleError(t)}function sf(n,t,e,i,r){for(let o=0;o<e.length;){const s=e[o++],a=e[o++],l=t[s],c=n.data[s];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function zl(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,o=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?o=a:1==o?r=yd(r,a):2==o&&(i=yd(i,a+": "+t[++s]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}function Gl(n,t,e,i,r=!1){for(;null!==e;){const o=t[e.index];if(null!==o&&i.push(Je(o)),xn(o))for(let a=10;a<o.length;a++){const l=o[a],c=l[1].firstChild;null!==c&&Gl(l[1],l,c,i)}const s=e.type;if(8&s)Gl(n,t,e.child,i);else if(32&s){const a=Dh(e,t);let l;for(;l=a();)i.push(l)}else if(16&s){const a=iv(t,e);if(Array.isArray(a))i.push(...a);else{const l=Os(t[16]);Gl(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class Ps{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Gl(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(xn(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(Th(t,i),wl(e,i))}this._attachedToViewContainer=!1}Yy(this._lView[1],this._lView)}onDestroy(t){Vv(this._lView[1],this._lView,null,t)}markForCheck(){nf(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){$l(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function $k(n,t){Fs(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class lO extends Ps{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;$l(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class af extends mr{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=we(t);return new Ns(e,this.ngModule)}}function Xv(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class uO{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){const r=this.injector.get(t,fh,i);return r!==fh||e===fh?r:this.parentInjector.get(t,e,i)}}class Ns extends xy{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function cR(n){return n.map(lR).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Xv(this.componentDef.inputs)}get outputs(){return Xv(this.componentDef.outputs)}create(t,e,i,r){let o=(r=r||this.ngModule)instanceof $i?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new uO(t,o):t,a=s.get(ks,null);if(null===a)throw new C(407,!1);const l=s.get(ak,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function $R(n,t,e){return n.selectRootElement(t,e===Tn.ShadowDom)}(c,i,this.componentDef.encapsulation):Ah(a.createRenderer(null,this.componentDef),u,function cO(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,f=Xh(0,null,null,1,0,null,null,null,null,null),p=Hl(null,f,null,h,null,null,a,c,l,s,null);let g,y;Vd(p);try{const v=function fO(n,t,e,i,r,o){const s=e[1];e[22]=n;const l=_o(s,22,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(zl(l,c,!0),null!==n&&(gl(r,n,c),null!==l.classes&&Oh(r,n,l.classes),null!==l.styles&&sv(r,n,l.styles)));const u=i.createRenderer(n,t),d=Hl(e,Lv(t),null,t.onPush?32:16,e[22],l,i,u,o||null,null,null);return s.firstCreatePass&&(bl(vs(l,e),s,t.type),zv(s,l),Gv(l,e.length,1)),Ul(e,d),e[22]=d}(d,this.componentDef,p,a,c);if(d)if(i)gl(c,d,["ng-version",lk.full]);else{const{attrs:E,classes:b}=function uR(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let o=n[i];if("string"==typeof o)2===r?""!==o&&t.push(o,n[++i]):8===r&&e.push(o);else{if(!Rn(r))break;r=o}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);E&&gl(c,d,E),b&&b.length>0&&Oh(c,d,b.join(" "))}if(y=kd(f,22),void 0!==e){const E=y.projection=[];for(let b=0;b<this.ngContentSelectors.length;b++){const x=e[b];E.push(null!=x?Array.from(x):null)}}g=function pO(n,t,e,i){const r=e[1],o=function qR(n,t,e){const i=at();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),Wv(n,i,t,yo(n,t,1,null),e),Hv(n,i));const r=bs(t,n,i.directiveStart,i);wt(r,t);const o=dn(i,t);return o&&wt(o,t),r}(r,e,t);if(n[8]=e[8]=o,null!==i)for(const a of i)a(o,t);if(t.contentQueries){const a=at();t.contentQueries(1,o,a.directiveStart)}const s=at();return!r.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Hi(s.index),Uv(e[1],s,0,s.directiveStart,s.directiveEnd,t),$v(t,o)),o}(v,this.componentDef,p,[mO]),Kh(f,p,null)}finally{Bd()}return new hO(this.componentType,g,ho(y,p),p,y)}}class hO extends class tk{}{constructor(t,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new lO(r),this.componentType=t}setInput(t,e){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[t])){const o=this._rootLView;sf(o[1],o,r,t,e),jv(o,this._tNode.index)}}get injector(){return new eo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function mO(){const n=at();fl(w()[1],n)}function G(n){let t=function Jv(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(kn(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new C(903,!1);r=t.\u0275dir}if(r){if(e){i.push(r);const s=n;s.inputs=lf(n.inputs),s.declaredInputs=lf(n.declaredInputs),s.outputs=lf(n.outputs);const a=r.hostBindings;a&&vO(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&_O(n,l),c&&yO(n,c),_d(n.inputs,r.inputs),_d(n.declaredInputs,r.declaredInputs),_d(n.outputs,r.outputs),kn(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(n),a===G&&(e=!1)}}t=Object.getPrototypeOf(t)}!function gO(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=_l(r.hostAttrs,e=_l(e,r.hostAttrs))}}(i)}function lf(n){return n===Gr?{}:n===ge?[]:n}function _O(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function yO(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function vO(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let Wl=null;function yr(){if(!Wl){const n=xe.Symbol;if(n&&n.iterator)Wl=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Wl=i)}}}return Wl}function Ls(n){return!!cf(n)&&(Array.isArray(n)||!(n instanceof Map)&&yr()in n)}function cf(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Yn(n,t,e){return n[t]=e}function Dt(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function Fe(n,t,e,i){const r=w();return Dt(r,Qr(),t)&&(de(),qn(Ke(),r,n,t,e,i)),Fe}function bo(n,t,e,i){return Dt(n,Qr(),e)?t+Y(e)+i:Z}function oe(n,t,e,i,r,o,s,a){const l=w(),c=de(),u=n+22,d=c.firstCreatePass?function AO(n,t,e,i,r,o,s,a,l){const c=t.consts,u=_o(t,n,4,s||null,Li(c,a));Jh(t,e,u,Li(c,l)),fl(t,u);const d=u.tViews=Xh(2,u,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,i,r,o,s):c.data[u];zn(d,!1);const h=l[11].createComment("");Fl(c,l,h,d),wt(h,l),Ul(l,l[u]=qv(h,l,h,d)),ul(d)&&Zh(c,l,d),null!=s&&Qh(l,d,a)}function uf(n){return Zr(function _I(){return q.lFrame.contextLView}(),22+n)}function O(n,t,e){const i=w();return Dt(i,Qr(),t)&&Qt(de(),Ke(),i,n,t,i[11],e,!1),O}function df(n,t,e,i,r){const s=r?"class":"style";sf(n,e,t.inputs[s],s,i)}function D(n,t,e,i){const r=w(),o=de(),s=22+n,a=r[11],l=r[s]=Ah(a,t,function TI(){return q.lFrame.currentNamespace}()),c=o.firstCreatePass?function IO(n,t,e,i,r,o,s){const a=t.consts,c=_o(t,n,2,r,Li(a,o));return Jh(t,e,c,Li(a,s)),null!==c.attrs&&zl(c,c.attrs,!1),null!==c.mergedAttrs&&zl(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,o,r,0,t,e,i):o.data[s];zn(c,!0);const u=c.mergedAttrs;null!==u&&gl(a,l,u);const d=c.classes;null!==d&&Oh(a,l,d);const h=c.styles;return null!==h&&sv(a,l,h),64!=(64&c.flags)&&Fl(o,r,l,c),0===function hI(){return q.lFrame.elementDepthCount}()&&wt(l,r),function fI(){q.lFrame.elementDepthCount++}(),ul(c)&&(Zh(o,r,c),Nv(o,c,r)),null!==i&&Qh(r,c),D}function S(){let n=at();Od()?Fd():(n=n.parent,zn(n,!1));const t=n;!function pI(){q.lFrame.elementDepthCount--}();const e=de();return e.firstCreatePass&&(fl(e,n),Sd(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function OI(n){return 0!=(16&n.flags)}(t)&&df(e,t,w(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function FI(n){return 0!=(32&n.flags)}(t)&&df(e,t,w(),t.stylesWithoutHost,!1),S}function De(n,t,e,i){return D(n,t,e,i),S(),De}function Bs(n,t,e){const i=w(),r=de(),o=n+22,s=r.firstCreatePass?function xO(n,t,e,i,r){const o=t.consts,s=Li(o,i),a=_o(t,n,8,"ng-container",s);return null!==s&&zl(a,s,!0),Jh(t,e,a,Li(o,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,r,i,t,e):r.data[o];zn(s,!0);const a=i[o]=i[11].createComment("");return Fl(r,i,a,s),wt(a,i),ul(s)&&(Zh(r,i,s),Nv(r,s,i)),null!=e&&Qh(i,s),Bs}function Hs(){let n=at();const t=de();return Od()?Fd():(n=n.parent,zn(n,!1)),t.firstCreatePass&&(fl(t,n),Sd(n)&&t.queries.elementEnd(n)),Hs}function br(){return w()}function js(n){return!!n&&"function"==typeof n.then}function ub(n){return!!n&&"function"==typeof n.subscribe}const hf=ub;function te(n,t,e,i){const r=w(),o=de(),s=at();return db(o,r,r[11],s,n,t,0,i),te}function Yl(n,t){const e=at(),i=w(),r=de();return db(r,i,Zv(Nd(r.data),e,i),e,n,t),Yl}function db(n,t,e,i,r,o,s,a){const l=ul(i),u=n.firstCreatePass&&Kv(n),d=t[8],h=Yv(t);let f=!0;if(3&i.type||a){const y=dn(i,t),v=a?a(y):y,E=h.length,b=a?ie=>a(Je(ie[i.index])):i.index;let x=null;if(!a&&l&&(x=function kO(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const s=r[o];if(s===e&&r[o+1]===i){const a=t[7],l=r[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=o,x.__ngLastListenerFn__=o,f=!1;else{o=fb(i,t,d,o,!1);const ie=e.listen(v,r,o);h.push(o,ie),u&&u.push(r,b,E,E+1)}}else o=fb(i,t,d,o,!1);const p=i.outputs;let g;if(f&&null!==p&&(g=p[r])){const y=g.length;if(y)for(let v=0;v<y;v+=2){const ue=t[g[v]][g[v+1]].subscribe(o),ze=h.length;h.push(o,ue),u&&u.push(r,i.index,ze,-(ze+1))}}}function hb(n,t,e,i){try{return!1!==e(i)}catch(r){return Qv(n,r),!1}}function fb(n,t,e,i,r){return function o(s){if(s===Function)return i;nf(2&n.flags?qt(n.index,t):t);let l=hb(t,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=hb(t,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Me(n=1){return function wI(n){return(q.lFrame.contextLView=function DI(n,t){for(;n>0;)t=t[15],n--;return t}(n,q.lFrame.contextLView))[8]}(n)}function RO(n,t){let e=null;const i=function rR(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const o=t[r];if("*"!==o){if(null===i?uv(n,o,!0):aR(i,o))return r}else e=r}return e}function bi(n){const t=w()[16][6];if(!t.projection){const i=t.projection=Ds(n?n.length:1,null),r=i.slice();let o=t.child;for(;null!==o;){const s=n?RO(o,n):0;null!==s&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o),o=o.next}}}function ct(n,t=0,e){const i=w(),r=de(),o=_o(r,22+n,16,null,e||null);null===o.projection&&(o.projection=t),Fd(),64!=(64&o.flags)&&function Qk(n,t,e){ov(t[11],0,t,e,Ky(n,e,t),Jy(e.parent||t[6],e,t))}(r,i,o)}function Db(n,t,e,i,r){const o=n[e+1],s=null===t;let a=i?On(o):yi(o),l=!1;for(;0!==a&&(!1===l||s);){const u=n[a+1];PO(n[a],t)&&(l=!0,n[a+1]=i?Hh(u):Vh(u)),a=i?On(u):yi(u)}l&&(n[e+1]=i?Vh(o):Hh(o))}function PO(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&oo(n,t)>=0}const ut={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Mb(n){return n.substring(ut.key,ut.keyEnd)}function Eb(n,t){const e=ut.textEnd;return e===t?-1:(t=ut.keyEnd=function BO(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,ut.key=t,e),To(n,t,e))}function To(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function Kl(n,t,e){return Fn(n,t,e,!1),Kl}function et(n,t){return Fn(n,t,null,!0),et}function Zn(n,t){for(let e=function LO(n){return function Ab(n){ut.key=0,ut.keyEnd=0,ut.value=0,ut.valueEnd=0,ut.textEnd=n.length}(n),Eb(n,To(n,0,ut.textEnd))}(t);e>=0;e=Eb(t,e))Kt(n,Mb(t),!0)}function Fn(n,t,e,i){const r=w(),o=de(),s=di(2);o.firstUpdatePass&&kb(o,n,s,i),t!==Z&&Dt(r,s,t)&&Ob(o,o.data[kt()],r,r[11],n,r[s+1]=function ZO(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=Ae(Zt(n)))),n}(t,e),i,s)}function xb(n,t){return t>=n.expandoStartIndex}function kb(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[kt()],s=xb(n,e);Pb(o,i)&&null===t&&!s&&(t=!1),t=function zO(n,t,e,i){const r=Nd(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Us(e=pf(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=pf(r,n,t,e,i),null===o){let l=function GO(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==yi(i))return n[On(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=pf(null,n,t,l[1],i),l=Us(l,t.attrs,i),function WO(n,t,e,i){n[On(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function qO(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<r;o++)i=Us(i,n[o].hostAttrs,e);return Us(i,t.attrs,e)}(n,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),e}(r,o,t,i),function OO(n,t,e,i,r,o){let s=o?t.classBindings:t.styleBindings,a=On(s),l=yi(s);n[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||oo(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=On(n[a+1]);n[i+1]=Ll(h,a),0!==h&&(n[h+1]=Bh(n[h+1],i)),n[a+1]=function IR(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Ll(a,0),0!==a&&(n[a+1]=Bh(n[a+1],i)),a=i;else n[i+1]=Ll(l,0),0===a?a=i:n[l+1]=Bh(n[l+1],i),l=i;c&&(n[i+1]=Vh(n[i+1])),Db(n,u,i,!0),Db(n,u,i,!1),function FO(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&oo(o,t)>=0&&(e[i+1]=Hh(e[i+1]))}(t,u,n,i,o),s=Ll(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function pf(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(o=t[a],i=Us(i,o.hostAttrs,r),o!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function Us(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let o=0;o<t.length;o++){const s=t[o];"number"==typeof s?r=s:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Kt(n,s,!!e||t[++o]))}return void 0===n?null:n}function Ob(n,t,e,i,r,o,s,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];Zl(function Sv(n){return 1==(1&n)}(c)?Fb(l,t,e,r,yi(c),s):void 0)||(Zl(o)||function Ev(n){return 2==(2&n)}(c)&&(o=Fb(l,null,e,r,a,s)),function Jk(n,t,e,i,r){if(t)r?n.addClass(e,i):n.removeClass(e,i);else{let o=-1===i.indexOf("-")?void 0:Ht.DashCase;null==r?n.removeStyle(e,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Ht.Important),n.setStyle(e,i,r,o))}}(i,s,dl(kt(),e),r,o))}function Fb(n,t,e,i,r,o){const s=null===t;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Z&&(h=d?ge:void 0);let f=d?Yd(h,i):u===i?h:void 0;if(c&&!Zl(f)&&(f=Yd(l,i)),Zl(f)&&(a=f,s))return a;const p=n[r+1];r=s?On(p):yi(p)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=Yd(l,i))}return a}function Zl(n){return void 0!==n}function Pb(n,t){return 0!=(n.flags&(t?16:32))}function F(n,t=""){const e=w(),i=de(),r=n+22,o=i.firstCreatePass?_o(i,r,1,t,null):i.data[r],s=e[r]=function Sh(n,t){return n.createText(t)}(e[11],t);Fl(i,e,s,o),zn(o,!1)}function Mt(n){return Nn("",n,""),Mt}function Nn(n,t,e){const i=w(),r=bo(i,n,t,e);return r!==Z&&function vi(n,t,e){const i=dl(t,n);!function Wy(n,t,e){n.setValue(t,e)}(n[11],i,e)}(i,kt(),r),Nn}function zb(n,t,e){!function Pn(n,t,e,i){const r=de(),o=di(2);r.firstUpdatePass&&kb(r,null,o,i);const s=w();if(e!==Z&&Dt(s,o,e)){const a=r.data[kt()];if(Pb(a,i)&&!xb(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=yd(l,e||"")),df(r,a,s,e,i)}else!function KO(n,t,e,i,r,o,s,a){r===Z&&(r=ge);let l=0,c=0,u=0<r.length?r[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<o.length?o[c+1]:void 0;let g,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,g=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,g=f),null!==p&&Ob(n,t,e,i,p,g,s,a),u=l<r.length?r[l]:null,d=c<o.length?o[c]:null}}(r,a,s,s[11],s[o+1],s[o+1]=function YO(n,t,e){if(null==e||""===e)return ge;const i=[],r=Zt(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)n(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&n(i,o,r[o]);else"string"==typeof r&&t(i,r);return i}(n,t,e),i,o)}}(Kt,Zn,bo(w(),n,t,e),!0)}function Cr(n,t,e){const i=w();return Dt(i,Qr(),t)&&Qt(de(),Ke(),i,n,t,i[11],e,!0),Cr}function Ql(n,t,e){const i=w();if(Dt(i,Qr(),t)){const o=de(),s=Ke();Qt(o,s,i,n,t,Zv(Nd(o.data),s,i),e,!0)}return Ql}const wr=void 0;var mF=["en",[["a","p"],["AM","PM"],wr],[["AM","PM"],wr,wr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],wr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],wr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",wr,"{1} 'at' {0}",wr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function pF(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let Io={};function Ot(n){const t=function gF(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=tC(t);if(e)return e;const i=t.split("-")[0];if(e=tC(i),e)return e;if("en"===i)return mF;throw new C(701,!1)}function tC(n){return n in Io||(Io[n]=xe.ng&&xe.ng.common&&xe.ng.common.locales&&xe.ng.common.locales[n]),Io[n]}var R=(()=>((R=R||{})[R.LocaleId=0]="LocaleId",R[R.DayPeriodsFormat=1]="DayPeriodsFormat",R[R.DayPeriodsStandalone=2]="DayPeriodsStandalone",R[R.DaysFormat=3]="DaysFormat",R[R.DaysStandalone=4]="DaysStandalone",R[R.MonthsFormat=5]="MonthsFormat",R[R.MonthsStandalone=6]="MonthsStandalone",R[R.Eras=7]="Eras",R[R.FirstDayOfWeek=8]="FirstDayOfWeek",R[R.WeekendRange=9]="WeekendRange",R[R.DateFormat=10]="DateFormat",R[R.TimeFormat=11]="TimeFormat",R[R.DateTimeFormat=12]="DateTimeFormat",R[R.NumberSymbols=13]="NumberSymbols",R[R.NumberFormats=14]="NumberFormats",R[R.CurrencyCode=15]="CurrencyCode",R[R.CurrencySymbol=16]="CurrencySymbol",R[R.CurrencyName=17]="CurrencyName",R[R.Currencies=18]="Currencies",R[R.Directionality=19]="Directionality",R[R.PluralCase=20]="PluralCase",R[R.ExtraData=21]="ExtraData",R))();const xo="en-US";let nC=xo;function _f(n,t,e,i,r){if(n=z(n),Array.isArray(n))for(let o=0;o<n.length;o++)_f(n[o],t,e,i,r);else{const o=de(),s=w();let a=pr(n)?n:z(n.provide),l=Iy(n);const c=at(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(pr(n)||!n.multi){const f=new _s(l,r,m),p=vf(a,t,r?u:u+h,d);-1===p?(bl(vs(c,s),o,a),yf(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),s.push(f)):(e[p]=f,s[p]=f)}else{const f=vf(a,t,u+h,d),p=vf(a,t,u,u+h),g=f>=0&&e[f],y=p>=0&&e[p];if(r&&!y||!r&&!g){bl(vs(c,s),o,a);const v=function p1(n,t,e,i,r){const o=new _s(n,e,m);return o.multi=[],o.index=t,o.componentProviders=0,AC(o,r,i&&!e),o}(r?f1:h1,e.length,r,i,l);!r&&y&&(e[p].providerFactory=v),yf(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(v),s.push(v)}else yf(o,n,f>-1?f:p,AC(e[r?p:f],l,!r&&i));!r&&i&&y&&e[p].componentProviders++}}}function yf(n,t,e,i){const r=pr(t),o=function qx(n){return!!n.useClass}(t);if(r||o){const l=(o?z(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function AC(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function vf(n,t,e,i){for(let r=e;r<i;r++)if(t[r]===n)return r;return-1}function h1(n,t,e,i){return bf(this.multi,[])}function f1(n,t,e,i){const r=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=bs(e,e[1],this.providerFactory.index,i);o=a.slice(0,s),bf(r,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],bf(r,o);return o}function bf(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function fe(n,t=[]){return e=>{e.providersResolver=(i,r)=>function d1(n,t,e){const i=de();if(i.firstCreatePass){const r=kn(n);_f(e,i.data,i.blueprint,r,!0),_f(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Dr{}class TC{}class IC extends Dr{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new af(this);const i=Gt(t);this._bootstrapComponents=_i(i.bootstrap),this._r3Injector=_v(t,e,[{provide:Dr,useValue:this},{provide:mr,useValue:this.componentFactoryResolver}],Ae(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Cf extends TC{constructor(t){super(),this.moduleType=t}create(t){return new IC(this.moduleType,t)}}class g1 extends Dr{constructor(t,e,i){super(),this.componentFactoryResolver=new af(this),this.instance=null;const r=new Ty([...t,{provide:Dr,useValue:this},{provide:mr,useValue:this.componentFactoryResolver}],e||Rl(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function nc(n,t,e=null){return new g1(n,t,e).injector}let _1=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=My(0,e.type),r=i.length>0?nc([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=A({token:n,providedIn:"environment",factory:()=>new n(_($i))}),n})();function xC(n){n.getStandaloneInjector=t=>t.get(_1).getOrCreateStandaloneInjector(n)}function Ys(n,t){const e=n[t];return e===Z?void 0:e}function VC(n,t,e,i,r,o,s){const a=t+e;return function vr(n,t,e,i){const r=Dt(n,t,e);return Dt(n,t+1,i)||r}(n,a,r,o)?Yn(n,a+2,s?i.call(s,r,o):i(r,o)):Ys(n,a+2)}function ko(n,t){const e=de();let i;const r=n+22;e.firstCreatePass?(i=function N1(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=hr(i.type)),s=ln(m);try{const a=yl(!1),l=o();return yl(a),function TO(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,w(),r,l),l}finally{ln(s)}}function ic(n,t,e){const i=n+22,r=w(),o=Zr(r,i);return Ks(r,i)?function LC(n,t,e,i,r,o){const s=t+e;return Dt(n,s,r)?Yn(n,s+1,o?i.call(o,r):i(r)):Ys(n,s+1)}(r,xt(),t,o.transform,e,o):o.transform(e)}function Df(n,t,e,i){const r=n+22,o=w(),s=Zr(o,r);return Ks(o,r)?VC(o,xt(),t,s.transform,e,i,s):s.transform(e,i)}function Ks(n,t){return n[1].data[t].pure}function Mf(n){return t=>{setTimeout(n,void 0,t)}}const ee=class H1 extends L{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Mf(o),r&&(r=Mf(r)),s&&(s=Mf(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof We&&t.add(a),a}};function j1(){return this._results[yr()]()}class Zs{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=yr(),i=Zs.prototype;i[e]||(i[e]=j1)}get changes(){return this._changes||(this._changes=new ee)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=Yt(t);(this._changesDetected=!function zI(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],o=t[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let fn=(()=>{class n{}return n.__NG_ELEMENT_ID__=z1,n})();const U1=fn,$1=class extends U1{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=Hl(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),Kh(i,r,t),new Ps(r)}};function z1(){return rc(at(),w())}function rc(n,t){return 4&n.type?new $1(t,n,ho(n,t)):null}let jt=(()=>{class n{}return n.__NG_ELEMENT_ID__=G1,n})();function G1(){return zC(at(),w())}const W1=jt,UC=class extends W1{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ho(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){const t=vl(this._hostTNode,this._hostLView);if(B_(t)){const e=Jr(t,this._hostLView),i=Xr(t);return new eo(e[1].data[i+8],e)}return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=$C(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function ws(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new Ns(we(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get($i,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function dI(n){return xn(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new UC(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function Gk(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i<o-10?(t[4]=e[r],Z_(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const s=t[17];null!==s&&e!==s&&function Wk(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=64}(r,i,s,o);const a=kh(o,s),l=i[11],c=Ol(l,s[7]);return null!==c&&function Uk(n,t,e,i,r,o){i[0]=r,i[6]=t,Fs(n,i,e,1,r,o)}(r,s[6],l,i,c,a),t.attachToViewContainerRef(),Z_(Ef(s),o,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=$C(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=Th(this._lContainer,e);i&&(wl(Ef(this._lContainer),e),Yy(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=Th(this._lContainer,e);return i&&null!=wl(Ef(this._lContainer),e)?new Ps(i):null}_adjustIndex(t,e=0){return t??this.length+e}};function $C(n){return n[8]}function Ef(n){return n[8]||(n[8]=[])}function zC(n,t){let e;const i=t[n.index];if(xn(i))e=i;else{let r;if(8&n.type)r=Je(i);else{const o=t[11];r=o.createComment("");const s=dn(n,t);_r(o,Ol(o,s),r,function Zk(n,t){return n.nextSibling(t)}(o,s),!1)}t[n.index]=e=qv(i,t,r,n),Ul(t,e)}return new UC(e,n,t)}class Sf{constructor(t){this.queryList=t,this.matches=null}clone(){return new Sf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Af{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){const s=e.getByIndex(o);r.push(this.queries[s.indexInDeclarationView].clone())}return new Af(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==KC(t,e).matches&&this.queries[e].setDirty()}}class GC{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class Tf{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==e?e.push(o):e=[o])}return null!==e?new Tf(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class If{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new If(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const o=i[r];this.matchTNodeWithReadOption(t,e,K1(e,o)),this.matchTNodeWithReadOption(t,e,Cl(e,t,o,!1,!1))}else i===fn?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Cl(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===ce||r===jt||r===fn&&4&e.type)this.addMatch(e.index,-2);else{const o=Cl(e,t,r,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function K1(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function Q1(n,t,e,i){return-1===e?function Z1(n,t){return 11&n.type?ho(n,t):4&n.type?rc(n,t):null}(t,n):-2===e?function X1(n,t,e){return e===ce?ho(t,n):e===fn?rc(t,n):e===jt?zC(t,n):void 0}(n,t,i):bs(n,n[1],e,t)}function WC(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const o=n.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:Q1(t,o[c],s[l+1],e.metadata.read))}r.matches=a}return r.matches}function xf(n,t,e,i){const r=n.queries.getByIndex(e),o=r.matches;if(null!==o){const s=WC(n,t,r,e);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&xf(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];xf(f[1],f,c,i)}}}}}return i}function ve(n){const t=w(),e=de(),i=I_();Ld(i+1);const r=KC(e,i);if(n.dirty&&function uI(n){return 4==(4&n[2])}(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const o=r.crossesNgTemplate?xf(e,t,i,[]):WC(e,t,r,i);n.reset(o,ok),n.notifyOnChanges()}return!0}return!1}function Ln(n,t,e){const i=de();i.firstCreatePass&&(YC(i,new GC(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),qC(i,w(),t)}function tt(n,t,e,i){const r=de();if(r.firstCreatePass){const o=at();YC(r,new GC(t,e,i),o.index),function eP(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(r,n),2==(2&e)&&(r.staticContentQueries=!0)}qC(r,w(),e)}function be(){return function J1(n,t){return n[19].queries[t].queryList}(w(),I_())}function qC(n,t,e){const i=new Zs(4==(4&e));Vv(n,t,i,i.destroy),null===t[19]&&(t[19]=new Af),t[19].queries.push(new Sf(i))}function YC(n,t,e){null===n.queries&&(n.queries=new Tf),n.queries.track(new If(t,e))}function KC(n,t){return n.queries.getByIndex(t)}function ZC(n,t){return rc(n,t)}function sc(...n){}const ac=new M("Application Initializer");let lc=(()=>{class n{constructor(e){this.appInits=e,this.resolve=sc,this.reject=sc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const o=this.appInits[r]();if(js(o))e.push(o);else if(hf(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(_(ac,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Fo=new M("AppId",{providedIn:"root",factory:function mw(){return`${Pf()}${Pf()}${Pf()}`}});function Pf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const gw=new M("Platform Initializer"),cc=new M("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),_w=new M("appBootstrapListener"),pn=new M("AnimationModuleType");let bP=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Qn=new M("LocaleId",{providedIn:"root",factory:()=>Oe(Qn,B.Optional|B.SkipSelf)||function CP(){return typeof $localize<"u"&&$localize.locale||xo}()});class DP{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let Nf=(()=>{class n{compileModuleSync(e){return new Cf(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=_i(Gt(e).declarations).reduce((s,a)=>{const l=we(a);return l&&s.push(new Ns(l)),s},[]);return new DP(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const SP=(()=>Promise.resolve(0))();function Lf(n){typeof Zone>"u"?SP.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Q{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ee(!1),this.onMicrotaskEmpty=new ee(!1),this.onStable=new ee(!1),this.onError=new ee(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function AP(){let n=xe.requestAnimationFrame,t=xe.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function xP(n){const t=()=>{!function IP(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(xe,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Bf(n),n.isCheckStableRunning=!0,Vf(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Bf(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return bw(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),Cw(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return bw(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),Cw(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Bf(n),Vf(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Q.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(Q.isInAngularZone())throw new C(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,TP,sc,sc);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const TP={};function Vf(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Bf(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function bw(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Cw(n){n._nesting--,Vf(n)}class kP{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ee,this.onMicrotaskEmpty=new ee,this.onStable=new ee,this.onError=new ee}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const ww=new M(""),uc=new M("");let Uf,Hf=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Uf||(function RP(n){Uf=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Q.assertNotInAngularZone(),Lf(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Lf(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(_(Q),_(jf),_(uc))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),jf=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Uf?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Wi=null;const Dw=new M("AllowMultipleToken"),$f=new M("PlatformDestroyListeners");class Mw{constructor(t,e){this.name=t,this.token=e}}function Sw(n,t,e=[]){const i=`Platform: ${t}`,r=new M(i);return(o=[])=>{let s=zf();if(!s||s.injector.get(Dw,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function PP(n){if(Wi&&!Wi.get(Dw,!1))throw new C(400,!1);Wi=n;const t=n.get(Tw);(function Ew(n){const t=n.get(gw,null);t&&t.forEach(e=>e())})(n)}(function Aw(n=[],t){return He.create({name:t,providers:[{provide:ch,useValue:"platform"},{provide:$f,useValue:new Set([()=>Wi=null])},...n]})}(a,i))}return function LP(n){const t=zf();if(!t)throw new C(401,!1);return t}()}}function zf(){return Wi?.get(Tw)??null}let Tw=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function xw(n,t){let e;return e="noop"===n?new kP:("zone.js"===n?void 0:n)||new Q(t),e}(i?.ngZone,function Iw(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Q,useValue:r}];return r.run(()=>{const s=He.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(gi,null);if(!l)throw new C(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{dc(this._modules,a),c.unsubscribe()})}),function kw(n,t,e){try{const i=e();return js(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(lc);return c.runInitializers(),c.donePromise.then(()=>(function iC(n){zt(n,"Expected localeId to be defined"),"string"==typeof n&&(nC=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Qn,xo)||xo),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=Rw({},i);return function OP(n,t,e){const i=new Cf(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Po);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new C(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get($f,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(_(He))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function Rw(n,t){return Array.isArray(t)?t.reduce(Rw,n):{...n,...t}}let Po=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new Te(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Te(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Q.assertNotInAngularZone(),Lf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Q.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Sn(o,s.pipe(l_()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof xy;if(!this._injector.get(lc).done)throw!r&&function Wr(n){const t=we(n)||Tt(n)||It(n);return null!==t&&t.standalone}(e),new C(405,false);let s;s=r?e:this._injector.get(mr).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function FP(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Dr),c=s.create(He.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(ww,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),dc(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;dc(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(_w,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>dc(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new C(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(_(Q),_($i),_(gi))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function dc(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let Fw=!0,Xt=(()=>{class n{}return n.__NG_ELEMENT_ID__=HP,n})();function HP(n){return function jP(n,t,e){if(cl(n)&&!e){const i=qt(n.index,t);return new Ps(i,i)}return 47&n.type?new Ps(t[16],t):null}(at(),w(),16==(16&n))}class Bw{constructor(){}supports(t){return Ls(t)}create(t){return new qP(t)}}const WP=(n,t)=>t;class qP{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||WP}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex<jw(i,r,o)?e:i,a=jw(s,r,o),l=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)r++;else{o||(o=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<o.length?o[h]:o[h]=0,p=f+h;u<=p&&p<c&&(o[h]=f+1)}o[s.previousIndex]=u-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Ls(t))throw new C(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,o,s,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)o=t[a],s=this._trackByFn(a,o),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,s,a),i=!0),e=e._next}else r=0,function MO(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[yr()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new YP(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Hw),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Hw),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class YP{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class KP{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Hw{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new KP,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jw(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class Uw{constructor(){}supports(t){return t instanceof Map||cf(t)}create(){return new ZP}}class ZP{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||cf(t)))throw new C(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;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(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);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 QP(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class QP{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function $w(){return new pc([new Bw])}let pc=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||$w()),deps:[[n,new ao,new Ui]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new C(901,!1)}}return n.\u0275prov=A({token:n,providedIn:"root",factory:$w}),n})();function zw(){return new Xs([new Uw])}let Xs=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||zw()),deps:[[n,new ao,new Ui]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new C(901,!1)}}return n.\u0275prov=A({token:n,providedIn:"root",factory:zw}),n})();const eN=Sw(null,"core",[]);let tN=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(_(Po))},n.\u0275mod=X({type:n}),n.\u0275inj=K({}),n})();function wi(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let mc=null;function Xn(){return mc}const W=new M("DocumentToken");let Kf=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:function(){return function oN(){return _(Gw)}()},providedIn:"platform"}),n})();const sN=new M("Location Initialized");let Gw=(()=>{class n extends Kf{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Xn().getBaseHref(this._doc)}onPopState(e){const i=Xn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Xn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){Ww()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){Ww()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(_(W))},n.\u0275prov=A({token:n,factory:function(){return function aN(){return new Gw(_(W))}()},providedIn:"platform"}),n})();function Ww(){return!!window.history.pushState}function Zf(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function qw(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Di(n){return n&&"?"!==n[0]?"?"+n:n}let Er=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:function(){return Oe(Kw)},providedIn:"root"}),n})();const Yw=new M("appBaseHref");let Kw=(()=>{class n extends Er{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Oe(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Zf(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Di(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Di(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Di(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(_(Kf),_(Yw,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lN=(()=>{class n extends Er{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=Zf(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Di(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Di(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(_(Kf),_(Yw,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),Js=(()=>{class n{constructor(e){this._subject=new ee,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=qw(Zw(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Di(i))}normalize(e){return n.stripTrailingSlash(function uN(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,Zw(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Di(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Di(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Di,n.joinWithSlash=Zf,n.stripTrailingSlash=qw,n.\u0275fac=function(e){return new(e||n)(_(Er))},n.\u0275prov=A({token:n,factory:function(){return function cN(){return new Js(_(Er))}()},providedIn:"root"}),n})();function Zw(n){return n.replace(/\/index.html$/,"")}var Qe=(()=>((Qe=Qe||{})[Qe.Format=0]="Format",Qe[Qe.Standalone=1]="Standalone",Qe))(),le=(()=>((le=le||{})[le.Narrow=0]="Narrow",le[le.Abbreviated=1]="Abbreviated",le[le.Wide=2]="Wide",le[le.Short=3]="Short",le))(),Ue=(()=>((Ue=Ue||{})[Ue.Short=0]="Short",Ue[Ue.Medium=1]="Medium",Ue[Ue.Long=2]="Long",Ue[Ue.Full=3]="Full",Ue))(),H=(()=>((H=H||{})[H.Decimal=0]="Decimal",H[H.Group=1]="Group",H[H.List=2]="List",H[H.PercentSign=3]="PercentSign",H[H.PlusSign=4]="PlusSign",H[H.MinusSign=5]="MinusSign",H[H.Exponential=6]="Exponential",H[H.SuperscriptingExponent=7]="SuperscriptingExponent",H[H.PerMille=8]="PerMille",H[H.Infinity=9]="Infinity",H[H.NaN=10]="NaN",H[H.TimeSeparator=11]="TimeSeparator",H[H.CurrencyDecimal=12]="CurrencyDecimal",H[H.CurrencyGroup=13]="CurrencyGroup",H))();function gc(n,t){return gn(Ot(n)[R.DateFormat],t)}function _c(n,t){return gn(Ot(n)[R.TimeFormat],t)}function yc(n,t){return gn(Ot(n)[R.DateTimeFormat],t)}function mn(n,t){const e=Ot(n),i=e[R.NumberSymbols][t];if(typeof i>"u"){if(t===H.CurrencyDecimal)return e[R.NumberSymbols][H.Decimal];if(t===H.CurrencyGroup)return e[R.NumberSymbols][H.Group]}return i}function Xw(n){if(!n[R.ExtraData])throw new Error(`Missing extra locale data for the locale "${n[R.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function gn(n,t){for(let e=t;e>-1;e--)if(typeof n[e]<"u")return n[e];throw new Error("Locale data API: locale data undefined")}function Xf(n){const[t,e]=n.split(":");return{hours:+t,minutes:+e}}const DN=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ea={},MN=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var dt=(()=>((dt=dt||{})[dt.Short=0]="Short",dt[dt.ShortGMT=1]="ShortGMT",dt[dt.Long=2]="Long",dt[dt.Extended=3]="Extended",dt))(),j=(()=>((j=j||{})[j.FullYear=0]="FullYear",j[j.Month=1]="Month",j[j.Date=2]="Date",j[j.Hours=3]="Hours",j[j.Minutes=4]="Minutes",j[j.Seconds=5]="Seconds",j[j.FractionalSeconds=6]="FractionalSeconds",j[j.Day=7]="Day",j))(),ne=(()=>((ne=ne||{})[ne.DayPeriods=0]="DayPeriods",ne[ne.Days=1]="Days",ne[ne.Months=2]="Months",ne[ne.Eras=3]="Eras",ne))();function EN(n,t,e,i){let r=function FN(n){if(tD(n))return n;if("number"==typeof n&&!isNaN(n))return new Date(n);if("string"==typeof n){if(n=n.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(n)){const[r,o=1,s=1]=n.split("-").map(a=>+a);return vc(r,o-1,s)}const e=parseFloat(n);if(!isNaN(n-e))return new Date(e);let i;if(i=n.match(DN))return function PN(n){const t=new Date(0);let e=0,i=0;const r=n[8]?t.setUTCFullYear:t.setFullYear,o=n[8]?t.setUTCHours:t.setHours;n[9]&&(e=Number(n[9]+n[10]),i=Number(n[9]+n[11])),r.call(t,Number(n[1]),Number(n[2])-1,Number(n[3]));const s=Number(n[4]||0)-e,a=Number(n[5]||0)-i,l=Number(n[6]||0),c=Math.floor(1e3*parseFloat("0."+(n[7]||0)));return o.call(t,s,a,l,c),t}(i)}const t=new Date(n);if(!tD(t))throw new Error(`Unable to convert "${n}" into a date`);return t}(n);t=Mi(e,t)||t;let a,s=[];for(;t;){if(a=MN.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;t=u}}let l=r.getTimezoneOffset();i&&(l=eD(i,l),r=function ON(n,t,e){const i=e?-1:1,r=n.getTimezoneOffset();return function RN(n,t){return(n=new Date(n.getTime())).setMinutes(n.getMinutes()+t),n}(n,i*(eD(t,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const d=function kN(n){if(ep[n])return ep[n];let t;switch(n){case"G":case"GG":case"GGG":t=Pe(ne.Eras,le.Abbreviated);break;case"GGGG":t=Pe(ne.Eras,le.Wide);break;case"GGGGG":t=Pe(ne.Eras,le.Narrow);break;case"y":t=it(j.FullYear,1,0,!1,!0);break;case"yy":t=it(j.FullYear,2,0,!0,!0);break;case"yyy":t=it(j.FullYear,3,0,!1,!0);break;case"yyyy":t=it(j.FullYear,4,0,!1,!0);break;case"Y":t=Dc(1);break;case"YY":t=Dc(2,!0);break;case"YYY":t=Dc(3);break;case"YYYY":t=Dc(4);break;case"M":case"L":t=it(j.Month,1,1);break;case"MM":case"LL":t=it(j.Month,2,1);break;case"MMM":t=Pe(ne.Months,le.Abbreviated);break;case"MMMM":t=Pe(ne.Months,le.Wide);break;case"MMMMM":t=Pe(ne.Months,le.Narrow);break;case"LLL":t=Pe(ne.Months,le.Abbreviated,Qe.Standalone);break;case"LLLL":t=Pe(ne.Months,le.Wide,Qe.Standalone);break;case"LLLLL":t=Pe(ne.Months,le.Narrow,Qe.Standalone);break;case"w":t=Jf(1);break;case"ww":t=Jf(2);break;case"W":t=Jf(1,!0);break;case"d":t=it(j.Date,1);break;case"dd":t=it(j.Date,2);break;case"c":case"cc":t=it(j.Day,1);break;case"ccc":t=Pe(ne.Days,le.Abbreviated,Qe.Standalone);break;case"cccc":t=Pe(ne.Days,le.Wide,Qe.Standalone);break;case"ccccc":t=Pe(ne.Days,le.Narrow,Qe.Standalone);break;case"cccccc":t=Pe(ne.Days,le.Short,Qe.Standalone);break;case"E":case"EE":case"EEE":t=Pe(ne.Days,le.Abbreviated);break;case"EEEE":t=Pe(ne.Days,le.Wide);break;case"EEEEE":t=Pe(ne.Days,le.Narrow);break;case"EEEEEE":t=Pe(ne.Days,le.Short);break;case"a":case"aa":case"aaa":t=Pe(ne.DayPeriods,le.Abbreviated);break;case"aaaa":t=Pe(ne.DayPeriods,le.Wide);break;case"aaaaa":t=Pe(ne.DayPeriods,le.Narrow);break;case"b":case"bb":case"bbb":t=Pe(ne.DayPeriods,le.Abbreviated,Qe.Standalone,!0);break;case"bbbb":t=Pe(ne.DayPeriods,le.Wide,Qe.Standalone,!0);break;case"bbbbb":t=Pe(ne.DayPeriods,le.Narrow,Qe.Standalone,!0);break;case"B":case"BB":case"BBB":t=Pe(ne.DayPeriods,le.Abbreviated,Qe.Format,!0);break;case"BBBB":t=Pe(ne.DayPeriods,le.Wide,Qe.Format,!0);break;case"BBBBB":t=Pe(ne.DayPeriods,le.Narrow,Qe.Format,!0);break;case"h":t=it(j.Hours,1,-12);break;case"hh":t=it(j.Hours,2,-12);break;case"H":t=it(j.Hours,1);break;case"HH":t=it(j.Hours,2);break;case"m":t=it(j.Minutes,1);break;case"mm":t=it(j.Minutes,2);break;case"s":t=it(j.Seconds,1);break;case"ss":t=it(j.Seconds,2);break;case"S":t=it(j.FractionalSeconds,1);break;case"SS":t=it(j.FractionalSeconds,2);break;case"SSS":t=it(j.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Cc(dt.Short);break;case"ZZZZZ":t=Cc(dt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Cc(dt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Cc(dt.Long);break;default:return null}return ep[n]=t,t}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function vc(n,t,e){const i=new Date(0);return i.setFullYear(n,t,e),i.setHours(0,0,0),i}function Mi(n,t){const e=function dN(n){return Ot(n)[R.LocaleId]}(n);if(ea[e]=ea[e]||{},ea[e][t])return ea[e][t];let i="";switch(t){case"shortDate":i=gc(n,Ue.Short);break;case"mediumDate":i=gc(n,Ue.Medium);break;case"longDate":i=gc(n,Ue.Long);break;case"fullDate":i=gc(n,Ue.Full);break;case"shortTime":i=_c(n,Ue.Short);break;case"mediumTime":i=_c(n,Ue.Medium);break;case"longTime":i=_c(n,Ue.Long);break;case"fullTime":i=_c(n,Ue.Full);break;case"short":const r=Mi(n,"shortTime"),o=Mi(n,"shortDate");i=bc(yc(n,Ue.Short),[r,o]);break;case"medium":const s=Mi(n,"mediumTime"),a=Mi(n,"mediumDate");i=bc(yc(n,Ue.Medium),[s,a]);break;case"long":const l=Mi(n,"longTime"),c=Mi(n,"longDate");i=bc(yc(n,Ue.Long),[l,c]);break;case"full":const u=Mi(n,"fullTime"),d=Mi(n,"fullDate");i=bc(yc(n,Ue.Full),[u,d])}return i&&(ea[e][t]=i),i}function bc(n,t){return t&&(n=n.replace(/\{([^}]+)}/g,function(e,i){return null!=t&&i in t?t[i]:e})),n}function Bn(n,t,e="-",i,r){let o="";(n<0||r&&n<=0)&&(r?n=1-n:(n=-n,o=e));let s=String(n);for(;s.length<t;)s="0"+s;return i&&(s=s.slice(s.length-t)),o+s}function it(n,t,e=0,i=!1,r=!1){return function(o,s){let a=function AN(n,t){switch(n){case j.FullYear:return t.getFullYear();case j.Month:return t.getMonth();case j.Date:return t.getDate();case j.Hours:return t.getHours();case j.Minutes:return t.getMinutes();case j.Seconds:return t.getSeconds();case j.FractionalSeconds:return t.getMilliseconds();case j.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${n}".`)}}(n,o);if((e>0||a>-e)&&(a+=e),n===j.Hours)0===a&&-12===e&&(a=12);else if(n===j.FractionalSeconds)return function SN(n,t){return Bn(n,3).substring(0,t)}(a,t);const l=mn(s,H.MinusSign);return Bn(a,t,l,i,r)}}function Pe(n,t,e=Qe.Format,i=!1){return function(r,o){return function TN(n,t,e,i,r,o){switch(e){case ne.Months:return function pN(n,t,e){const i=Ot(n),o=gn([i[R.MonthsFormat],i[R.MonthsStandalone]],t);return gn(o,e)}(t,r,i)[n.getMonth()];case ne.Days:return function fN(n,t,e){const i=Ot(n),o=gn([i[R.DaysFormat],i[R.DaysStandalone]],t);return gn(o,e)}(t,r,i)[n.getDay()];case ne.DayPeriods:const s=n.getHours(),a=n.getMinutes();if(o){const c=function yN(n){const t=Ot(n);return Xw(t),(t[R.ExtraData][2]||[]).map(i=>"string"==typeof i?Xf(i):[Xf(i[0]),Xf(i[1])])}(t),u=function vN(n,t,e){const i=Ot(n);Xw(i);const o=gn([i[R.ExtraData][0],i[R.ExtraData][1]],t)||[];return gn(o,e)||[]}(t,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[f,p]=h,g=s>=f.hours&&a>=f.minutes,y=s<p.hours||s===p.hours&&a<p.minutes;if(f.hours<p.hours){if(g&&y)return!0}else if(g||y)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(-1!==d)return u[d]}return function hN(n,t,e){const i=Ot(n),o=gn([i[R.DayPeriodsFormat],i[R.DayPeriodsStandalone]],t);return gn(o,e)}(t,r,i)[s<12?0:1];case ne.Eras:return function mN(n,t){return gn(Ot(n)[R.Eras],t)}(t,i)[n.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,o,n,t,e,i)}}function Cc(n){return function(t,e,i){const r=-1*i,o=mn(e,H.MinusSign),s=r>0?Math.floor(r/60):Math.ceil(r/60);switch(n){case dt.Short:return(r>=0?"+":"")+Bn(s,2,o)+Bn(Math.abs(r%60),2,o);case dt.ShortGMT:return"GMT"+(r>=0?"+":"")+Bn(s,1,o);case dt.Long:return"GMT"+(r>=0?"+":"")+Bn(s,2,o)+":"+Bn(Math.abs(r%60),2,o);case dt.Extended:return 0===i?"Z":(r>=0?"+":"")+Bn(s,2,o)+":"+Bn(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${n}"`)}}}function Jw(n){return vc(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function Jf(n,t=!1){return function(e,i){let r;if(t){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=Jw(e),s=function xN(n){const t=vc(n,0,1).getDay();return vc(n,0,1+(t<=4?4:11)-t)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Bn(r,n,mn(i,H.MinusSign))}}function Dc(n,t=!1){return function(e,i){return Bn(Jw(e).getFullYear(),n,mn(i,H.MinusSign),t)}}const ep={};function eD(n,t){n=n.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(e)?t:e}function tD(n){return n instanceof Date&&!isNaN(n.valueOf())}function oD(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let sp=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ls(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Ae(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(m(pc),m(Xs),m(ce),m(mi))},n.\u0275dir=I({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class YN{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,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 lD=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new YN(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),cD(a,r)}});for(let r=0,o=i.length;r<o;r++){const a=i.get(r).context;a.index=r,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{cD(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(m(jt),m(fn),m(pc))},n.\u0275dir=I({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function cD(n,t){n.context.$implicit=t.item}let Ei=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new ZN,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){uD("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){uD("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(m(jt),m(fn))},n.\u0275dir=I({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class ZN{constructor(){this.$implicit=null,this.ngIf=null}}function uD(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Ae(t)}'.`)}class ap{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let na=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=I({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),lp=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new ap(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(m(jt),m(fn),m(na,9))},n.\u0275dir=I({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),dD=(()=>{class n{constructor(e,i,r){r._addDefault(new ap(e,i))}}return n.\u0275fac=function(e){return new(e||n)(m(jt),m(fn),m(na,9))},n.\u0275dir=I({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})();function Hn(n,t){return new C(2100,!1)}class eL{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class tL{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const nL=new tL,iL=new eL;let cp=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(js(e))return nL;if(ub(e))return iL;throw Hn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(m(Xt,16))},n.\u0275pipe=Vt({name:"async",type:n,pure:!1,standalone:!0}),n})();const lL=new M("DATE_PIPE_DEFAULT_TIMEZONE");let up=(()=>{class n{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",r,o){if(null==e||""===e||e!=e)return null;try{return EN(e,i,o||this.locale,r??this.defaultTimezone??void 0)}catch(s){throw Hn()}}}return n.\u0275fac=function(e){return new(e||n)(m(Qn,16),m(lL,24))},n.\u0275pipe=Vt({name:"date",type:n,pure:!0,standalone:!0}),n})(),Si=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({}),n})();const pD="browser";let DL=(()=>{class n{}return n.\u0275prov=A({token:n,providedIn:"root",factory:()=>new ML(_(W),window)}),n})();class ML{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function EL(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=mD(this.window.history)||mD(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function mD(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class gD{}class mp extends class $L extends class rN{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function iN(n){mc||(mc=n)}(new mp)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function zL(){return ra=ra||document.querySelector("base"),ra?ra.getAttribute("href"):null}();return null==e?null:function GL(n){Sc=Sc||document.createElement("a"),Sc.setAttribute("href",n);const t=Sc.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){ra=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return oD(document.cookie,t)}}let Sc,ra=null;const bD=new M("TRANSITION_ID"),qL=[{provide:ac,useFactory:function WL(n,t,e){return()=>{e.get(lc).donePromise.then(()=>{const i=Xn(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o<r.length;o++)i.remove(r[o])})}},deps:[bD,W,He],multi:!0}];let KL=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const Ac=new M("EventManagerPlugins");let Tc=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o<r.length;o++){const s=r[o];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(_(Ac),_(Q))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();class CD{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=Xn().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let wD=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),oa=(()=>{class n extends wD{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(DD),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(DD))}}return n.\u0275fac=function(e){return new(e||n)(_(W))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();function DD(n){Xn().remove(n)}const gp={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},_p=/%COMP%/g;function Ic(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?Ic(n,r,e):(r=r.replace(_p,n),e.push(r))}return e}function SD(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let xc=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new yp(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Tn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new tV(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Tn.ShadowDom:return new nV(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Ic(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(_(Tc),_(oa),_(Fo))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();class yp{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(gp[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(TD(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(TD(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=gp[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=gp[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Ht.DashCase|Ht.Important)?t.style.setProperty(e,i,r&Ht.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Ht.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,SD(i)):this.eventManager.addEventListener(t,e,SD(i))}}function TD(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class tV extends yp{constructor(t,e,i,r){super(t),this.component=i;const o=Ic(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function XL(n){return"_ngcontent-%COMP%".replace(_p,n)}(r+"-"+i.id),this.hostAttr=function JL(n){return"_nghost-%COMP%".replace(_p,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class nV extends yp{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Ic(r.id,r.styles,[]);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let iV=(()=>{class n extends CD{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(_(W))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const ID=["alt","control","meta","shift"],rV={"\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"},oV={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let sV=(()=>{class n extends CD{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xn().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),ID.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,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(e,i){let r=rV[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),ID.forEach(s=>{s!==r&&(0,oV[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(_(W))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const uV=Sw(eN,"browser",[{provide:cc,useValue:pD},{provide:gw,useValue:function aV(){mp.makeCurrent()},multi:!0},{provide:W,useFactory:function cV(){return function mx(n){Jd=n}(document),document},deps:[]}]),RD=new M(""),OD=[{provide:uc,useClass:class YL{addToWindow(t){xe.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},xe.getAllAngularTestabilities=()=>t.getAllTestabilities(),xe.getAllAngularRootElements=()=>t.getAllRootElements(),xe.frameworkStabilizers||(xe.frameworkStabilizers=[]),xe.frameworkStabilizers.push(i=>{const r=xe.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?Xn().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:ww,useClass:Hf,deps:[Q,jf,uc]},{provide:Hf,useClass:Hf,deps:[Q,jf,uc]}],FD=[{provide:ch,useValue:"root"},{provide:gi,useFactory:function lV(){return new gi},deps:[]},{provide:Ac,useClass:iV,multi:!0,deps:[W,Q,cc]},{provide:Ac,useClass:sV,multi:!0,deps:[W]},{provide:xc,useClass:xc,deps:[Tc,oa,Fo]},{provide:ks,useExisting:xc},{provide:wD,useExisting:oa},{provide:oa,useClass:oa,deps:[W]},{provide:Tc,useClass:Tc,deps:[Ac,Q]},{provide:gD,useClass:KL,deps:[]},[]];let PD=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:Fo,useValue:e.appId},{provide:bD,useExisting:Fo},qL]}}}return n.\u0275fac=function(e){return new(e||n)(_(RD,12))},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[...FD,...OD],imports:[Si,tN]}),n})(),ND=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(_(W))},n.\u0275prov=A({token:n,factory:function(e){let i=null;return i=e?new e:function hV(){return new ND(_(W))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let Cp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:function(e){let i=null;return i=e?new(e||n):_(BD),i},providedIn:"root"}),n})(),BD=(()=>{class n extends Cp{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case _e.NONE:return i;case _e.HTML:return Wn(i,"HTML")?Zt(i):vy(this._doc,String(i)).toString();case _e.STYLE:return Wn(i,"Style")?Zt(i):i;case _e.SCRIPT:if(Wn(i,"Script"))return Zt(i);throw new Error("unsafe value used in a script context");case _e.URL:return Wn(i,"URL")?Zt(i):Il(String(i));case _e.RESOURCE_URL:if(Wn(i,"ResourceURL"))return Zt(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function Mx(n){return new yx(n)}(e)}bypassSecurityTrustStyle(e){return function Ex(n){return new vx(n)}(e)}bypassSecurityTrustScript(e){return function Sx(n){return new bx(n)}(e)}bypassSecurityTrustUrl(e){return function Ax(n){return new Cx(n)}(e)}bypassSecurityTrustResourceUrl(e){return function Tx(n){return new wx(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(_(W))},n.\u0275prov=A({token:n,factory:function(e){let i=null;return i=e?new e:function vV(n){return new BD(n.get(W))}(_(He)),i},providedIn:"root"}),n})();function N(...n){return Xe(n,us(n))}class _n extends L{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}const kc=ls(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:bV}=Array,{getPrototypeOf:CV,prototype:wV,keys:DV}=Object;function HD(n){if(1===n.length){const t=n[0];if(bV(t))return{args:t,keys:null};if(function MV(n){return n&&"object"==typeof n&&CV(n)===wV}(t)){const e=DV(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:EV}=Array;function wp(n){return $(t=>function SV(n,t){return EV(t)?n(...t):n(t)}(n,t))}function jD(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function Dp(...n){const t=us(n),e=r_(n),{args:i,keys:r}=HD(n);if(0===i.length)return Xe([],t);const o=new Te(function AV(n,t,e=Pi){return i=>{UD(t,()=>{const{length:r}=n,o=new Array(r);let s=r,a=r;for(let l=0;l<r;l++)UD(t,()=>{const c=Xe(n[l],t);let u=!1;c.subscribe(Ve(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,t,r?s=>jD(r,s):Pi));return e?o.pipe(wp(e)):o}function UD(n,t,e){n?ai(e,n,t):t()}function Rc(...n){return function TV(){return zr(1)}()(Xe(n,us(n)))}function sa(n){return new Te(t=>{Lt(n()).subscribe(t)})}function No(n,t){const e=he(n)?n:()=>n,i=r=>r.error(e());return new Te(t?r=>t.schedule(i,0,r):i)}function Mp(){return qe((n,t)=>{let e=null;n._refCount++;const i=Ve(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}class $D extends Te{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,zg(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new We;const e=this.getSubject();t.add(this.source.subscribe(Ve(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=We.EMPTY)}return t}refCount(){return Mp()(this)}}function yn(n,t){return qe((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(Ve(i,l=>{r?.unsubscribe();let c=0;const u=o++;Lt(n(l,u)).subscribe(r=Ve(i,d=>i.next(t?t(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function je(n){return n<=0?()=>$n:qe((t,e)=>{let i=0;t.subscribe(Ve(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function Jn(...n){const t=us(n);return qe((e,i)=>{(t?Rc(n,e,t):Rc(n,e)).subscribe(i)})}function gt(n,t){return qe((e,i)=>{let r=0;e.subscribe(Ve(i,o=>n.call(t,o,r++)&&i.next(o)))})}function Oc(n){return qe((t,e)=>{let i=!1;t.subscribe(Ve(e,r=>{i=!0,e.next(r)},()=>{i||e.next(n),e.complete()}))})}function zD(n=IV){return qe((t,e)=>{let i=!1;t.subscribe(Ve(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(n())))})}function IV(){return new kc}function Yi(n,t){const e=arguments.length>=2;return i=>i.pipe(n?gt((r,o)=>n(r,o,i)):Pi,je(1),e?Oc(t):zD(()=>new kc))}function Ki(n,t){return he(t)?ft(n,t,1):ft(n,1)}function $e(n,t,e){const i=he(n)||t||e?{next:n,error:t,complete:e}:n;return i?qe((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(Ve(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)}))}):Pi}function ei(n){return qe((t,e)=>{let o,i=null,r=!1;i=t.subscribe(Ve(e,void 0,void 0,s=>{o=Lt(n(s,ei(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function xV(n,t,e,i,r){return(o,s)=>{let a=e,l=t,c=0;o.subscribe(Ve(s,u=>{const d=c++;l=a?n(l,u,d):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function GD(n,t){return qe(xV(n,t,arguments.length>=2,!0))}function Ep(n){return n<=0?()=>$n:qe((t,e)=>{let i=[];t.subscribe(Ve(e,r=>{i.push(r),n<i.length&&i.shift()},()=>{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function WD(n,t){const e=arguments.length>=2;return i=>i.pipe(n?gt((r,o)=>n(r,o,i)):Pi,Ep(1),e?Oc(t):zD(()=>new kc))}function qD(n,t=!1){return qe((e,i)=>{let r=0;e.subscribe(Ve(i,o=>{const s=n(o,r++);(s||t)&&i.next(o),!s&&i.complete()}))})}function Fc(n){return qe((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}const se="primary",aa=Symbol("RouteTitle");class RV{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Lo(n){return new RV(n)}function OV(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.length<n.length))return null;const r={};for(let o=0;o<i.length;o++){const s=i[o],a=n[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,i.length),posParams:r}}function ti(n,t){const e=n?Object.keys(n):void 0,i=t?Object.keys(t):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!YD(n[r],t[r]))return!1;return!0}function YD(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;const e=[...n].sort(),i=[...t].sort();return e.every((r,o)=>i[o]===r)}return n===t}function KD(n){return Array.prototype.concat.apply([],n)}function ZD(n){return n.length>0?n[n.length-1]:null}function yt(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Zi(n){return hf(n)?n:js(n)?Xe(Promise.resolve(n)):N(n)}const NV={exact:function JD(n,t,e){if(!Ar(n.segments,t.segments)||!Pc(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!JD(n.children[i],t.children[i],e))return!1;return!0},subset:eM},QD={exact:function LV(n,t){return ti(n,t)},subset:function VV(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>YD(n[e],t[e]))},ignored:()=>!0};function XD(n,t,e){return NV[e.paths](n.root,t.root,e.matrixParams)&&QD[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function eM(n,t,e){return tM(n,t,t.segments,e)}function tM(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Ar(r,e)||t.hasChildren()||!Pc(r,e,i))}if(n.segments.length===e.length){if(!Ar(n.segments,e)||!Pc(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!eM(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(Ar(n.segments,r)&&Pc(n.segments,r,i)&&n.children[se])&&tM(n.children[se],t,o,i)}}function Pc(n,t,e){return t.every((i,r)=>QD[e](n[r].parameters,i.parameters))}class Sr{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lo(this.queryParams)),this._queryParamMap}toString(){return jV.serialize(this)}}class ae{constructor(t,e){this.segments=t,this.children=e,this.parent=null,yt(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Nc(this)}}class la{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Lo(this.parameters)),this._parameterMap}toString(){return oM(this)}}function Ar(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}let nM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:function(){return new Ap},providedIn:"root"}),n})();class Ap{parse(t){const e=new ZV(t);return new Sr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${ca(t.root,!0)}`,i=function zV(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${Lc(e)}=${Lc(r)}`).join("&"):`${Lc(e)}=${Lc(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${i}${"string"==typeof t.fragment?`#${function UV(n){return encodeURI(n)}(t.fragment)}`:""}`}}const jV=new Ap;function Nc(n){return n.segments.map(t=>oM(t)).join("/")}function ca(n,t){if(!n.hasChildren())return Nc(n);if(t){const e=n.children[se]?ca(n.children[se],!1):"",i=[];return yt(n.children,(r,o)=>{o!==se&&i.push(`${o}:${ca(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function HV(n,t){let e=[];return yt(n.children,(i,r)=>{r===se&&(e=e.concat(t(i,r)))}),yt(n.children,(i,r)=>{r!==se&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===se?[ca(n.children[se],!1)]:[`${r}:${ca(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[se]?`${Nc(n)}/${e[0]}`:`${Nc(n)}/(${e.join("//")})`}}function iM(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lc(n){return iM(n).replace(/%3B/gi,";")}function Tp(n){return iM(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vc(n){return decodeURIComponent(n)}function rM(n){return Vc(n.replace(/\+/g,"%20"))}function oM(n){return`${Tp(n.path)}${function $V(n){return Object.keys(n).map(t=>`;${Tp(t)}=${Tp(n[t])}`).join("")}(n.parameters)}`}const GV=/^[^\/()?;=#]+/;function Bc(n){const t=n.match(GV);return t?t[0]:""}const WV=/^[^=?&#]+/,YV=/^[^&#]+/;class ZV{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ae([],{}):new ae([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[se]=new ae(t,e)),i}parseSegment(){const t=Bc(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new la(Vc(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Bc(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Bc(this.remaining);r&&(i=r,this.capture(i))}t[Vc(e)]=Vc(i)}parseQueryParam(t){const e=function qV(n){const t=n.match(WV);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function KV(n){const t=n.match(YV);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=rM(e),o=rM(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Bc(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new C(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=se);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[se]:new ae([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new C(4011,!1)}}function Ip(n){return n.segments.length>0?new ae([],{[se]:n}):n}function Hc(n){const t={};for(const i of Object.keys(n.children)){const o=Hc(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function QV(n){if(1===n.numberOfChildren&&n.children[se]){const t=n.children[se];return new ae(n.segments.concat(t.segments),t.children)}return n}(new ae(n.segments,t))}function Tr(n){return n instanceof Sr}function eB(n,t,e,i,r){if(0===e.length)return Vo(t.root,t.root,t.root,i,r);const o=function lM(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new aM(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return yt(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...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?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new aM(e,t,i)}(e);return o.toRoot()?Vo(t.root,t.root,new ae([],{}),i,r):function s(l){const c=function nB(n,t,e,i){if(n.isAbsolute)return new Bo(t.root,!0,0);if(-1===i)return new Bo(e,e===t.root,0);return function cM(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new C(4005,!1);r=i.segments.length}return new Bo(i,!1,r-o)}(e,i+(ua(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?ha(c.segmentGroup,c.index,o.commands):kp(c.segmentGroup,c.index,o.commands);return Vo(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function ua(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function da(n){return"object"==typeof n&&null!=n&&n.outlets}function Vo(n,t,e,i,r){let s,o={};i&&yt(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:sM(n,t,e);const a=Ip(Hc(s));return new Sr(a,o,r)}function sM(n,t,e){const i={};return yt(n.children,(r,o)=>{i[o]=r===t?e:sM(r,t,e)}),new ae(n.segments,i)}class aM{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&ua(i[0]))throw new C(4003,!1);const r=i.find(da);if(r&&r!==ZD(i))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Bo{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function kp(n,t,e){if(n||(n=new ae([],{})),0===n.segments.length&&n.hasChildren())return ha(n,t,e);const i=function rB(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(i>=e.length)return o;const s=n.segments[r],a=e[i];if(da(a))break;const l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!dM(l,c,s))return o;i+=2}else{if(!dM(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){const o=new ae(n.segments.slice(0,i.pathIndex),{});return o.children[se]=new ae(n.segments.slice(i.pathIndex),n.children),ha(o,0,r)}return i.match&&0===r.length?new ae(n.segments,{}):i.match&&!n.hasChildren()?Rp(n,t,e):i.match?ha(n,0,r):Rp(n,t,e)}function ha(n,t,e){if(0===e.length)return new ae(n.segments,{});{const i=function iB(n){return da(n[0])?n[0].outlets:{[se]:n}}(e),r={};return yt(i,(o,s)=>{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=kp(n.children[s],t,o))}),yt(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new ae(n.segments,r)}}function Rp(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r<e.length;){const o=e[r];if(da(o)){const l=oB(o.outlets);return new ae(i,l)}if(0===r&&ua(e[0])){i.push(new la(n.segments[t].path,uM(e[0]))),r++;continue}const s=da(o)?o.outlets[se]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&ua(a)?(i.push(new la(s,uM(a))),r+=2):(i.push(new la(s,{})),r++)}return new ae(i,{})}function oB(n){const t={};return yt(n,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=Rp(new ae([],{}),0,e))}),t}function uM(n){const t={};return yt(n,(e,i)=>t[i]=`${e}`),t}function dM(n,t,e){return n==e.path&&ti(t,e.parameters)}class Ai{constructor(t,e){this.id=t,this.url=e}}class Op extends Ai{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ir extends Ai{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class jc extends Ai{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class hM extends Ai{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class sB extends Ai{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class aB extends Ai{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lB extends Ai{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class cB extends Ai{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uB extends Ai{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dB{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class hB{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class fB{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pB{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mB{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gB{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fM{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class pM{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Fp(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=Fp(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Pp(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return Pp(t,this._root).map(e=>e.value)}}function Fp(n,t){if(n===t.value)return t;for(const e of t.children){const i=Fp(n,e);if(i)return i}return null}function Pp(n,t){if(n===t.value)return[t];for(const e of t.children){const i=Pp(n,e);if(i.length)return i.unshift(t),i}return[]}class Ti{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ho(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class mM extends pM{constructor(t,e){super(t),this.snapshot=e,Np(this,t)}toString(){return this.snapshot.toString()}}function gM(n,t){const e=function yB(n,t){const s=new Uc([],{},{},"",{},se,t,null,n.root,-1,{});return new yM("",new Ti(s,[]))}(n,t),i=new _n([new la("",{})]),r=new _n({}),o=new _n({}),s=new _n({}),a=new _n(""),l=new Qi(i,r,s,a,o,se,t,e.root);return l.snapshot=e.root,new mM(new Ti(l,[]),e)}class Qi{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe($(c=>c[aa]))??N(void 0),this._futureSnapshot=l}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._paramMap=this.params.pipe($(t=>Lo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($(t=>Lo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function _M(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function vB(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Uc{constructor(t,e,i,r,o,s,a,l,c,u,d,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[aa],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}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._paramMap=Lo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class yM extends pM{constructor(t,e){super(e),this.url=t,Np(this,e)}toString(){return vM(this._root)}}function Np(n,t){t.value._routerState=n,t.children.forEach(e=>Np(n,e))}function vM(n){const t=n.children.length>0?` { ${n.children.map(vM).join(", ")} } `:"";return`${n.value}${t}`}function Lp(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,ti(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),ti(t.params,e.params)||n.params.next(e.params),function FV(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(!ti(n[e],t[e]))return!1;return!0}(t.url,e.url)||n.url.next(e.url),ti(t.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function Vp(n,t){const e=ti(n.params,t.params)&&function BV(n,t){return Ar(n,t)&&n.every((e,i)=>ti(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||Vp(n.parent,t.parent))}function fa(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function CB(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return fa(n,i,r);return fa(n,i)})}(n,t,e);return new Ti(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>fa(n,a)),s}}const i=function wB(n){return new Qi(new _n(n.url),new _n(n.params),new _n(n.queryParams),new _n(n.fragment),new _n(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>fa(n,o));return new Ti(i,r)}}const Bp="ngNavigationCancelingError";function bM(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=Tr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=CM(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function CM(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[Bp]=!0,i.cancellationCode=t,e&&(i.url=e),i}function wM(n){return DM(n)&&Tr(n.url)}function DM(n){return n&&n[Bp]}class DB{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new pa,this.attachRef=null}}let pa=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new DB,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $c=!1;let Hp=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ee,this.deactivateEvents=new ee,this.attachEvents=new ee,this.detachEvents=new ee,this.name=r||se,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,$c);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,$c);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,$c);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new C(4013,$c);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new MB(e,a,r.injector);if(i&&function EB(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(m(pa),m(jt),hi("name"),m(Xt),m($i))},n.\u0275dir=I({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),n})();class MB{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Qi?this.route:t===pa?this.childContexts:this.parent.get(t,e)}}let jp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ke({type:n,selectors:[["ng-component"]],standalone:!0,features:[xC],decls:1,vars:0,template:function(e,i){1&e&&De(0,"router-outlet")},dependencies:[Hp],encapsulation:2}),n})();function MM(n,t){return n.providers&&!n._injector&&(n._injector=nc(n.providers,t,`Route: ${n.path}`)),n._injector??t}function $p(n){const t=n.children&&n.children.map($p),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==se&&(e.component=jp),e}function vn(n){return n.outlet||se}function EM(n,t){const e=n.filter(i=>vn(i)===t);return e.push(...n.filter(i=>vn(i)!==t)),e}function ma(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class xB{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Lp(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Ho(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),yt(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=Ho(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=Ho(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=Ho(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new gB(o.value.snapshot))}),t.children.length&&this.forwardEvent(new pB(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(Lp(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,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),Lp(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=ma(r.snapshot),l=a?.get(mr)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class SM{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class zc{constructor(t,e){this.component=t,this.route=e}}function kB(n,t,e){const i=n._root;return ga(i,t?t._root:null,e,[i.value])}function jo(n,t){const e=Symbol(),i=t.get(n,e);return i===e?"function"!=typeof n||function jT(n){return null!==il(n)}(n)?t.get(n):n:i}function ga(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ho(t);return n.children.forEach(s=>{(function OB(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function FB(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Ar(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Ar(n.url,t.url)||!ti(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Vp(n,t)||!ti(n.queryParams,t.queryParams);default:return!Vp(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new SM(i)):(o.data=s.data,o._resolvedData=s._resolvedData),ga(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new zc(a.outlet.component,s))}else s&&_a(t,a,r),r.canActivateChecks.push(new SM(i)),ga(n,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),yt(o,(s,a)=>_a(s,e.getContext(a),r)),r}function _a(n,t,e){const i=Ho(n),r=n.value;yt(i,(o,s)=>{_a(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new zc(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function ya(n){return"function"==typeof n}function zp(n){return n instanceof kc||"EmptyError"===n?.name}const Gc=Symbol("INITIAL_VALUE");function Uo(){return yn(n=>Dp(n.map(t=>t.pipe(je(1),Jn(Gc)))).pipe($(t=>{for(const e of t)if(!0!==e){if(e===Gc)return Gc;if(!1===e||e instanceof Sr)return e}return!0}),gt(t=>t!==Gc),je(1)))}function AM(n){return function cT(...n){return jg(n)}($e(t=>{if(Tr(t))throw bM(0,t)}),$(t=>!0===t))}const Gp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function TM(n,t,e,i,r){const o=Wp(n,t,e);return o.matched?function QB(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?N(r.map(s=>{const a=jo(s,n);return Zi(function HB(n){return n&&ya(n.canMatch)}(a)?a.canMatch(t,e):n.runInContext(()=>a(t,e)))})).pipe(Uo(),AM()):N(!0)}(i=MM(t,i),t,e).pipe($(s=>!0===s?o:{...Gp})):N(o)}function Wp(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...Gp}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||OV)(e,n,t);if(!r)return{...Gp};const o={};yt(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Wc(n,t,e,i,r="corrected"){if(e.length>0&&function e2(n,t,e){return e.some(i=>qc(n,t,i)&&vn(i)!==se)}(n,e,i)){const s=new ae(t,function JB(n,t,e,i){const r={};r[se]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&vn(o)!==se){const s=new ae([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[vn(o)]=s}return r}(n,t,i,new ae(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function t2(n,t,e){return e.some(i=>qc(n,t,i))}(n,e,i)){const s=new ae(n.segments,function XB(n,t,e,i,r,o){const s={};for(const a of i)if(qc(n,e,a)&&!r[vn(a)]){const l=new ae([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[vn(a)]=l}return{...r,...s}}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new ae(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function qc(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function IM(n,t,e,i){return!!(vn(n)===i||i!==se&&qc(t,e,n))&&("**"===n.path||Wp(t,n,e).matched)}function xM(n,t,e){return 0===t.length&&!n.children[e]}const Yc=!1;class Kc{constructor(t){this.segmentGroup=t||null}}class kM{constructor(t){this.urlTree=t}}function va(n){return No(new Kc(n))}function RM(n){return No(new kM(n))}class s2{constructor(t,e,i,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=Wc(this.urlTree.root,[],[],this.config).segmentGroup,e=new ae(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,se).pipe($(o=>this.createUrlTree(Hc(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ei(o=>{if(o instanceof kM)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof Kc?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,se).pipe($(r=>this.createUrlTree(Hc(r),t.queryParams,t.fragment))).pipe(ei(r=>{throw r instanceof Kc?this.noMatchError(r):r}))}noMatchError(t){return new C(4002,Yc)}createUrlTree(t,e,i){const r=Ip(t);return new Sr(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe($(o=>new ae([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Xe(r).pipe(Ki(o=>{const s=i.children[o],a=EM(e,o);return this.expandSegmentGroup(t,a,s,o).pipe($(l=>({segment:l,outlet:o})))}),GD((o,s)=>(o[s.outlet]=s.segment,o),{}),WD())}expandSegment(t,e,i,r,o,s){return Xe(i).pipe(Ki(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(ei(c=>{if(c instanceof Kc)return N(null);throw c}))),Yi(a=>!!a),ei((a,l)=>{if(zp(a))return xM(e,r,o)?N(new ae([],{})):va(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return IM(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):va(e):va(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?RM(o):this.lineralizeSegments(i,o).pipe(ft(s=>{const a=new ae(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Wp(e,r,o);if(!a)return va(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?RM(d):this.lineralizeSegments(r,d).pipe(ft(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=MM(i,t),i.loadChildren?(i._loadedRoutes?N({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe($(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new ae(r,{})))):N(new ae(r,{}))):TM(e,i,r,t).pipe(yn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(ft(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:f,slicedSegments:p}=Wc(e,a,l,h),g=new ae(f.segments,f.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,h,g).pipe($(b=>new ae(a,b)));if(0===h.length&&0===p.length)return N(new ae(a,{}));const y=vn(i)===o;return this.expandSegment(d,g,h,p,y?se:o,!0).pipe($(E=>new ae(a.concat(E.segments),E.children)))})):va(e)))}getChildConfig(t,e,i){return e.children?N({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?N({routes:e._loadedRoutes,injector:e._loadedInjector}):function ZB(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?N(!0):N(r.map(s=>{const a=jo(s,n);return Zi(function NB(n){return n&&ya(n.canLoad)}(a)?a.canLoad(t,e):n.runInContext(()=>a(t,e)))})).pipe(Uo(),AM())}(t,e,i).pipe(ft(r=>r?this.configLoader.loadChildren(t,e).pipe($e(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function r2(n){return No(CM(Yc,3))}())):N({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return N(i);if(r.numberOfChildren>1||!r.children[se])return No(new C(4e3,Yc));r=r.children[se]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new Sr(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return yt(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return yt(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new ae(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new C(4001,Yc);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class l2{}class d2{constructor(t,e,i,r,o,s,a,l){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const t=Wc(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,se).pipe($(e=>{if(null===e)return null;const i=new Uc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},se,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ti(i,e),o=new yM(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=_M(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return Xe(Object.keys(i.children)).pipe(Ki(r=>{const o=i.children[r],s=EM(e,r);return this.processSegmentGroup(t,s,o,r)}),GD((r,o)=>r&&o?(r.push(...o),r):null),qD(r=>null!==r),Oc(null),WD(),$(r=>{if(null===r)return null;const o=OM(r);return function h2(n){n.sort((t,e)=>t.value.outlet===se?-1:e.value.outlet===se?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return Xe(e).pipe(Ki(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),Yi(s=>!!s),ei(s=>{if(zp(s))return xM(i,r,o)?N([]):N(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!IM(e,i,r,o))return N(null);let s;if("**"===e.path){const a=r.length>0?ZD(r).parameters:{},l=PM(i)+r.length;s=N({snapshot:new Uc(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,LM(e),vn(e),e.component??e._loadedComponent??null,e,FM(i),l,VM(e),l),consumedSegments:[],remainingSegments:[]})}else s=TM(i,e,r,t).pipe($(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=PM(i)+l.length;return{snapshot:new Uc(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,LM(e),vn(e),e.component??e._loadedComponent??null,e,FM(i),d,VM(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(yn(a=>{if(null===a)return N(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function f2(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=Wc(i,c,u,h.filter(y=>void 0===y.redirectTo),this.relativeLinkResolution);if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe($(y=>null===y?null:[new Ti(l,y)]));if(0===h.length&&0===p.length)return N([new Ti(l,[])]);const g=vn(e)===o;return this.processSegment(d,h,f,p,g?se:o).pipe($(y=>null===y?null:[new Ti(l,y)]))}))}}function p2(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function OM(n){const t=[],e=new Set;for(const i of n){if(!p2(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=OM(i.children);t.push(new Ti(i.value,r))}return t.filter(i=>!e.has(i))}function FM(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function PM(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function LM(n){return n.data||{}}function VM(n){return n.resolve||{}}function BM(n){return"string"==typeof n.title||null===n.title}function qp(n){return yn(t=>{const e=n(t);return e?Xe(e).pipe($(()=>t)):N(t)})}let HM=(()=>{class n{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===se);return i}getResolvedTitleForRoute(e){return e.data[aa]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:function(){return Oe(jM)},providedIn:"root"}),n})(),jM=(()=>{class n extends HM{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(e){return new(e||n)(_(ND))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class w2{}class M2 extends class D2{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Qc=new M("",{providedIn:"root",factory:()=>({})}),Yp=new M("ROUTES");let Kp=(()=>{class n{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return N(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Zi(e.loadComponent()).pipe($e(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Fc(()=>{this.componentLoaders.delete(e)})),r=new $D(i,()=>new L).pipe(Mp());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return N({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe($(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=KD(l.get(Yp,[],B.Self|B.Optional)));return{routes:c.map($p),injector:l}}),Fc(()=>{this.childrenLoaders.delete(i)})),s=new $D(o,()=>new L).pipe(Mp());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Zi(e()).pipe(ft(i=>i instanceof TC||Array.isArray(i)?N(i):Xe(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(_(He),_(Nf))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class S2{}class A2{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function T2(n){throw n}function I2(n,t,e){return t.parse("/")}const x2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},k2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function $M(){const n=Oe(nM),t=Oe(pa),e=Oe(Js),i=Oe(He),r=Oe(Nf),o=Oe(Yp,{optional:!0})??[],s=Oe(Qc,{optional:!0})??{},a=Oe(jM),l=Oe(HM,{optional:!0}),c=Oe(S2,{optional:!0}),u=Oe(w2,{optional:!0}),d=new rt(null,n,t,e,i,r,KD(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,function R2(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(s,d),d}let rt=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new L,this.errorHandler=T2,this.malformedUriErrorHandler=I2,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>N(void 0),this.urlHandlingStrategy=new A2,this.routeReuseStrategy=new M2,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(Kp),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new hB(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new dB(h)),this.ngModule=s.get(Dr),this.console=s.get(bP);const d=s.get(Q);this.isNgZoneEnabled=d instanceof Q&&Q.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function PV(){return new Sr(new ae([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=gM(this.currentUrlTree,this.rootComponentType),this.transitions=new _n({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(gt(r=>0!==r.id),$(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),yn(r=>{let o=!1,s=!1;return N(r).pipe($e(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),yn(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return zM(a.source)&&(this.browserUrlTree=a.extractedUrl),N(a).pipe(yn(d=>{const h=this.transitions.getValue();return i.next(new Op(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?$n:Promise.resolve(d)}),function a2(n,t,e,i){return yn(r=>function o2(n,t,e,i,r){return new s2(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe($(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),$e(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function g2(n,t,e,i,r,o){return ft(s=>function u2(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new d2(n,t,e,i,r,s,a,o).recognize().pipe(yn(l=>null===l?function c2(n){return new Te(t=>t.error(n))}(new l2):N(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe($(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),$e(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const f=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(f,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new sB(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:p,restoredState:g,extras:y}=a,v=new Op(h,this.serializeUrl(f),p,g);i.next(v);const E=gM(f,this.rootComponentType).snapshot;return N(r={...a,targetSnapshot:E,urlAfterRedirects:f,extras:{...y,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),$n}),$e(a=>{const l=new aB(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),$(a=>r={...a,guards:kB(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function UB(n,t){return ft(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?N({...e,guardsResult:!0}):function $B(n,t,e,i){return Xe(n).pipe(ft(r=>function KB(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?N(o.map(a=>{const l=ma(t)??r,c=jo(a,l);return Zi(function BB(n){return n&&ya(n.canDeactivate)}(c)?c.canDeactivate(n,t,e,i):l.runInContext(()=>c(n,t,e,i))).pipe(Yi())})).pipe(Uo()):N(!0)}(r.component,r.route,e,t,i)),Yi(r=>!0!==r,!0))}(s,i,r,n).pipe(ft(a=>a&&function PB(n){return"boolean"==typeof n}(a)?function zB(n,t,e,i){return Xe(t).pipe(Ki(r=>Rc(function WB(n,t){return null!==n&&t&&t(new fB(n)),N(!0)}(r.route.parent,i),function GB(n,t){return null!==n&&t&&t(new mB(n)),N(!0)}(r.route,i),function YB(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function RB(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>sa(()=>N(s.guards.map(l=>{const c=ma(s.node)??e,u=jo(l,c);return Zi(function VB(n){return n&&ya(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(Yi())})).pipe(Uo())));return N(o).pipe(Uo())}(n,r.path,e),function qB(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return N(!0);const r=i.map(o=>sa(()=>{const s=ma(t)??e,a=jo(o,s);return Zi(function LB(n){return n&&ya(n.canActivate)}(a)?a.canActivate(t,n):s.runInContext(()=>a(t,n))).pipe(Yi())}));return N(r).pipe(Uo())}(n,r.route,e))),Yi(r=>!0!==r,!0))}(i,o,n,t):N(a)),$(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),$e(a=>{if(r.guardsResult=a.guardsResult,Tr(a.guardsResult))throw bM(0,a.guardsResult);const l=new lB(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),gt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),qp(a=>{if(a.guards.canActivateChecks.length)return N(a).pipe($e(l=>{const c=new cB(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),yn(l=>{let c=!1;return N(l).pipe(function _2(n,t){return ft(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return N(e);let o=0;return Xe(r).pipe(Ki(s=>function y2(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!BM(r)&&(o[aa]=r.title),function v2(n,t,e,i){const r=function b2(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return N({});const o={};return Xe(r).pipe(ft(s=>function C2(n,t,e,i){const r=ma(t)??i,o=jo(n,r);return Zi(o.resolve?o.resolve(t,e):r.runInContext(()=>o(t,e)))}(n[s],t,e,i).pipe(Yi(),$e(a=>{o[s]=a}))),Ep(1),function kV(n){return $(()=>n)}(o),ei(s=>zp(s)?$n:No(s)))}(o,n,t,i).pipe($(s=>(n._resolvedData=s,n.data=_M(n,e).resolve,r&&BM(r)&&(n.data[aa]=r.title),null)))}(s.route,i,n,t)),$e(()=>o++),Ep(1),ft(s=>o===r.length?N(e):$n))})}(this.paramsInheritanceStrategy,this.ngModule.injector),$e({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),$e(l=>{const c=new uB(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),qp(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe($e(d=>{c.component=d}),$(()=>{})));for(const d of c.children)u.push(...l(d));return u};return Dp(l(a.targetSnapshot.root)).pipe(Oc(),je(1))}),qp(()=>this.afterPreactivation()),$(a=>{const l=function bB(n,t,e){const i=fa(n,t._root,e?e._root:void 0);return new mM(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),$e(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>$(i=>(new xB(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),$e({next(){o=!0},complete(){o=!0}}),Fc(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),ei(a=>{if(s=!0,DM(a)){wM(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new jc(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),wM(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||zM(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new hM(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return $n}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map($p),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),eB(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Tr(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function O2(n){for(let t=0;t<n.length;t++){if(null==n[t])throw new C(4008,false)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,e)}return i}isActive(e,i){let r;if(r=!0===i?{...x2}:!1===i?{...k2}:i,Tr(e))return XD(this.currentUrlTree,e,r);const o=this.parseUrl(e);return XD(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.keys(e).reduce((i,r)=>{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Ir(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,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((h,f)=>{a=h,l=f});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const o=new jc(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){go()},n.\u0275prov=A({token:n,factory:function(){return $M()},providedIn:"root"}),n})();function zM(n){return"imperative"!==n}let $o=(()=>{class n{constructor(e,i,r,o,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new L,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=wi(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=wi(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=wi(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const i=this.renderer,r=this.el.nativeElement;null!==e?i.setAttribute(r,"tabindex",e):i.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(e){return new(e||n)(m(rt),m(Qi),hi("tabindex"),m(mi),m(ce))},n.\u0275dir=I({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,i){1&e&&te("click",function(){return i.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[Ct]}),n})();class GM{}let N2=(()=>{class n{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(gt(e=>e instanceof Ir),Ki(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=nc(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,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 Xe(r).pipe(zr())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):N(null);const o=r.pipe(ft(s=>null===s?N(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Xe([o,this.loader.loadComponent(i)]).pipe(zr()):o})}}return n.\u0275fac=function(e){return new(e||n)(_(rt),_(Nf),_($i),_(GM),_(Kp))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Qp=new M("");let WM=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Op?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ir&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof fM&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new fM(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){go()},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();function zo(n,t){return{\u0275kind:n,\u0275providers:t}}function Xp(n){return[{provide:Yp,multi:!0,useValue:n}]}function YM(){const n=Oe(He);return t=>{const e=n.get(Po);if(t!==e.components[0])return;const i=n.get(rt),r=n.get(KM);1===n.get(Jp)&&i.initialNavigation(),n.get(ZM,null,B.Optional)?.setUpPreloading(),n.get(Qp,null,B.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const KM=new M("",{factory:()=>new L}),Jp=new M("",{providedIn:"root",factory:()=>1});const ZM=new M("");function H2(n){return zo(0,[{provide:ZM,useExisting:N2},{provide:GM,useExisting:n}])}const QM=new M("ROUTER_FORROOT_GUARD"),j2=[Js,{provide:nM,useClass:Ap},{provide:rt,useFactory:$M},pa,{provide:Qi,useFactory:function qM(n){return n.routerState.root},deps:[rt]},Kp];function U2(){return new Mw("Router",rt)}let tu=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[j2,[],Xp(e),{provide:QM,useFactory:W2,deps:[[rt,new Ui,new ao]]},{provide:Qc,useValue:i||{}},i?.useHash?{provide:Er,useClass:lN}:{provide:Er,useClass:Kw},{provide:Qp,useFactory:()=>{const n=Oe(rt),t=Oe(DL),e=Oe(Qc);return e.scrollOffset&&t.setOffset(e.scrollOffset),new WM(n,t,e)}},i?.preloadingStrategy?H2(i.preloadingStrategy).\u0275providers:[],{provide:Mw,multi:!0,useFactory:U2},i?.initialNavigation?q2(i):[],[{provide:XM,useFactory:YM},{provide:_w,multi:!0,useExisting:XM}]]}}static forChild(e){return{ngModule:n,providers:[Xp(e)]}}}return n.\u0275fac=function(e){return new(e||n)(_(QM,8))},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[jp]}),n})();function W2(n){return"guarded"}function q2(n){return["disabled"===n.initialNavigation?zo(3,[{provide:ac,multi:!0,useFactory:()=>{const t=Oe(rt);return()=>{t.setUpLocationChangeListener()}}},{provide:Jp,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?zo(2,[{provide:Jp,useValue:0},{provide:ac,multi:!0,deps:[He],useFactory:t=>{const e=t.get(sN,Promise.resolve());let i=!1;return()=>e.then(()=>new Promise(o=>{const s=t.get(rt),a=t.get(KM);(function r(o){t.get(rt).events.pipe(gt(a=>a instanceof Ir||a instanceof jc||a instanceof hM),$(a=>a instanceof Ir||a instanceof jc&&(0===a.code||1===a.code)&&null),gt(a=>null!==a),je(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?N(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const XM=new M("");let em;try{em=typeof Intl<"u"&&Intl.v8BreakIterator}catch{em=!1}let Go,ht=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function wL(n){return n===pD}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!em)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(_(cc))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const JM=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function eE(){if(Go)return Go;if("object"!=typeof document||!document)return Go=new Set(JM),Go;let n=document.createElement("input");return Go=new Set(JM.filter(t=>(n.setAttribute("type",t),n.type===t))),Go}let ba,xr,tm;function Wo(n){return function K2(){if(null==ba&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ba=!0}))}finally{ba=ba||!1}return ba}()?n:!!n.capture}function Z2(){if(null==xr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return xr=!1,xr;if("scrollBehavior"in document.documentElement.style)xr=!0;else{const n=Element.prototype.scrollTo;xr=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return xr}function nm(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function kr(n){return n.composedPath?n.composedPath()[0]:n.target}function im(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ni(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}class uH extends We{constructor(t,e){super()}schedule(t,e=0){return this}}const su={setInterval(n,t,...e){const{delegate:i}=su;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=su;return(t?.clearInterval||clearInterval)(n)},delegate:void 0};class am extends uH{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var i;if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(t,e,i=0){return su.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&su.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}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:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,$r(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const oE={now:()=>(oE.delegate||Date).now(),delegate:void 0};class Ca{constructor(t,e=Ca.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}Ca.now=oE.now;class lm extends Ca{constructor(t,e=Ca.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const cm=new lm(am),dH=cm;function um(n,t=cm){return qe((e,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+n,u=t.now();if(u<c)return r=this.schedule(void 0,c-u),void i.add(r);a()}e.subscribe(Ve(i,c=>{o=c,s=t.now(),r||(r=t.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function sE(n){return gt((t,e)=>n<=e)}function aE(n,t=Pi){return n=n??hH,qe((e,i)=>{let r,o=!0;e.subscribe(Ve(i,s=>{const a=t(s);(o||!n(r,a))&&(o=!1,r=a,i.next(s))}))})}function hH(n,t){return n===t}function Ne(n){return qe((t,e)=>{Lt(n).subscribe(Ve(e,()=>e.complete(),ad)),!e.closed&&t.subscribe(e)})}function Ee(n){return null!=n&&"false"!=`${n}`}function wa(n,t=0){return function fH(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function au(n){return Array.isArray(n)?n:[n]}function ot(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Ii(n){return n instanceof ce?n.nativeElement:n}let lE=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pH=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Ii(e);return new Te(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new L,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(_(lE))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mH=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new ee,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ee(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=wa(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(um(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(m(pH),m(ce),m(Q))},n.\u0275dir=I({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),cE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[lE]}),n})();const uE=new Set;let qo,gH=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):yH}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function _H(n){if(!uE.has(n))try{qo||(qo=document.createElement("style"),qo.setAttribute("type","text/css"),document.head.appendChild(qo)),qo.sheet&&(qo.sheet.insertRule(`@media ${n} {body{ }}`,0),uE.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(_(ht))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function yH(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let lu=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new L}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return dE(au(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=Dp(dE(au(e)).map(s=>this._registerQuery(s).observable));return o=Rc(o.pipe(je(1)),o.pipe(sE(1),um(0))),o.pipe($(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new Te(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Jn(i),$(({matches:s})=>({query:e,matches:s})),Ne(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(_(gH),_(Q))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function dE(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function cu(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const pE="cdk-describedby-message",uu="cdk-describedby-host";let dm=0,CH=(()=>{class n{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+dm++,this._document=e,this._id=Oe(Fo)+"-"+dm++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=hm(i,r);"string"!=typeof i?(mE(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=hm(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,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 e=this._document.querySelectorAll(`[${uu}="${this._id}"]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(uu);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){const r=this._document.createElement("div");mE(r,this._id),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(hm(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;const e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let o=0;o<i.length;o++)i[o].remove();const r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(e),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(e){const i=cu(e,"aria-describedby").filter(r=>0!=r.indexOf(pE));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=this._messageRegistry.get(i);(function vH(n,t,e){const i=cu(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(uu,this._id),r.referenceCount++}_removeMessageReference(e,i){const r=this._messageRegistry.get(i);r.referenceCount--,function bH(n,t,e){const r=cu(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(uu)}_isElementDescribedByMessage(e,i){const r=cu(e,"aria-describedby"),o=this._messageRegistry.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(_(W),_(ht))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function hm(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function mE(n,t){n.id||(n.id=`${pE}-${t}-${dm++}`)}class gE{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new L,this._typeaheadSubscription=We.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new L,this.change=new L,t instanceof Zs&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe($e(e=>this._pressedLetters.push(e)),um(t),gt(()=>this._pressedLetters.length>0),$(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const o=(this._activeItemIndex+r)%i.length,s=i[o];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(o);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){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;default:return void((r||ni(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Zs?this._items.toArray():this._items}}class wH extends gE{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class DH extends gE{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let du=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function EH(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function MH(n){try{return n.frameElement}catch{return null}}(function OH(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===yE(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=yE(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function kH(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function RH(n){return!function AH(n){return function IH(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function SH(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function TH(n){return function xH(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||_E(n))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(_(ht))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function _E(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function yE(n){if(!_E(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class FH{constructor(t,e,i,r,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){const e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=0;i<e.length;i++){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(r)return r}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=e.length-1;i>=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(je(1)).subscribe(t)}}let fm=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new FH(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(_(du),_(Q),_(W))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function vE(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function bE(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const PH=new M("cdk-input-modality-detector-options"),NH={ignoreKeys:[18,17,224,91,16]},Yo=Wo({passive:!0,capture:!0});let LH=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new _n(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=kr(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(vE(s)?"keyboard":"mouse"),this._mostRecentTarget=kr(s))},this._onTouchstart=s=>{bE(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=kr(s))},this._options={...NH,...o},this.modalityDetected=this._modality.pipe(sE(1)),this.modalityChanged=this.modalityDetected.pipe(aE()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Yo),r.addEventListener("mousedown",this._onMousedown,Yo),r.addEventListener("touchstart",this._onTouchstart,Yo)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Yo),document.removeEventListener("mousedown",this._onMousedown,Yo),document.removeEventListener("touchstart",this._onTouchstart,Yo))}}return n.\u0275fac=function(e){return new(e||n)(_(ht),_(Q),_(W),_(PH,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const VH=new M("liveAnnouncerElement",{providedIn:"root",factory:function BH(){return null}}),HH=new M("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let pm=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o<i.length;o++)i[o].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),this._document.body.appendChild(r),r}}return n.\u0275fac=function(e){return new(e||n)(_(VH,8),_(Q),_(W),_(HH,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const jH=new M("cdk-focus-monitor-default-options"),hu=Wo({passive:!0,capture:!0});let Da=(()=>{class n{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new L,this._rootNodeFocusAndBlurListener=a=>{for(let c=kr(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||0}monitor(e,i=!1){const r=Ii(e);if(!this._platform.isBrowser||1!==r.nodeType)return N(null);const o=function X2(n){if(function Q2(){if(null==tm){const n=typeof document<"u"?document.head:null;tm=!(!n||!n.createShadowRoot&&!n.attachShadow)}return tm}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}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 L,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Ii(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Ii(e);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((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=kr(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,hu),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,hu)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ne(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.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,hu),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,hu),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s<o.length;s++)if(o[s].contains(i))return!0;return!1}}return n.\u0275fac=function(e){return new(e||n)(_(Q),_(ht),_(LH),_(W,8),_(jH,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wE="cdk-high-contrast-black-on-white",DE="cdk-high-contrast-white-on-black",mm="cdk-high-contrast-active";let ME=(()=>{class n{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Oe(lu).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(mm,wE,DE),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(mm,wE):2===i&&e.add(mm,DE)}}}return n.\u0275fac=function(e){return new(e||n)(_(ht),_(W))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),EE=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(_(ME))},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[cE]}),n})();const UH=new M("cdk-dir-doc",{providedIn:"root",factory:function $H(){return Oe(W)}}),zH=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Xi=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new ee,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function GH(n){const t=n?.toLowerCase()||"";return"auto"===t&&typeof navigator<"u"&&navigator?.language?zH.test(navigator.language)?"rtl":"ltr":"rtl"===t?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(_(UH,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ma=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({}),n})();function WH(n,t){if(1&n&&De(0,"mat-pseudo-checkbox",4),2&n){const e=Me();O("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function qH(n,t){if(1&n&&(D(0,"span",5),F(1),S()),2&n){const e=Me();T(1),Nn("(",e.group.label,")")}}const YH=["*"],ZH=new M("mat-sanity-checks",{providedIn:"root",factory:function KH(){return!0}});let Ce=(()=>{class n{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!im()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(_(ME),_(ZH,8),_(W))},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[Ma,Ma]}),n})();function TE(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Ee(t)}}}function Ea(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function gm(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ee(t)}}}function IE(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?wa(e):this.defaultTabIndex}}}function _m(n){return class extends n{constructor(...t){super(...t),this.errorState=!1}updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}}}let Sa=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[Ce,Ce]}),n})();class XH{constructor(t,e,i,r=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const kE={enterDuration:225,exitDuration:150},ym=Wo({passive:!0}),RE=["mousedown","touchstart"],OE=["mouseup","mouseleave","touchend","touchcancel"];class FE{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Ii(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...kE,...i.animation};i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function ej(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),f=d.transitionDuration,p="none"===d.transitionProperty||"0s"===f||"0s, 0s"===f,g=new XH(this,u,i,p);u.style.transform="scale3d(1, 1, 1)",g.state=0,i.persistent||(this._mostRecentTransientRipple=g);let y=null;return!p&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const v=()=>this._finishRippleTransition(g),E=()=>this._destroyRipple(g);u.addEventListener("transitionend",v),u.addEventListener("transitioncancel",E),y={onTransitionEnd:v,onTransitionCancel:E}}),this._activeRipples.set(g,y),(p||!c)&&this._finishRippleTransition(g),g}fadeOutRipple(t){if(2===t.state||3===t.state)return;const e=t.element,i={...kE,...t.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=2,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Ii(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(RE))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(OE),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){0===t.state?this._startFadeOutTransition(t):2===t.state&&this._destroyRipple(t)}_startFadeOutTransition(t){const e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=1,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){const e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=3,null!==e&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel)),t.element.remove()}_onMousedown(t){const e=vE(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!bE(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,ym)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(RE.forEach(t=>{this._triggerElement.removeEventListener(t,this,ym)}),this._pointerUpEventsRegistered&&OE.forEach(t=>{this._triggerElement.removeEventListener(t,this,ym)}))}}const PE=new M("mat-ripple-global-options");let vm=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new FE(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(m(ce),m(Q),m(ht),m(PE,8),m(pn,8))},n.\u0275dir=I({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&et("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),bm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[Ce,Ce]}),n})(),tj=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(m(pn,8))},n.\u0275cmp=ke({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&et("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),n})(),nj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[Ce]}),n})();const NE=new M("MAT_OPTION_PARENT_COMPONENT"),LE=new M("MatOptgroup");let ij=0;class rj{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let oj=(()=>{class n{constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ij++,this.onSelectionChange=new ee,this._stateChanges=new L}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Ee(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!ni(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new rj(this,e))}}return n.\u0275fac=function(e){go()},n.\u0275dir=I({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),VE=(()=>{class n extends oj{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(m(ce),m(Xt),m(NE,8),m(LE,8))},n.\u0275cmp=ke({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&te("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Cr("id",i.id),Fe("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),et("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[G],ngContentSelectors:YH,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(bi(),oe(0,WH,1,2,"mat-pseudo-checkbox",0),D(1,"span",1),ct(2),S(),oe(3,qH,2,1,"span",2),De(4,"div",3)),2&e&&(O("ngIf",i.multiple),T(3),O("ngIf",i.group&&i.group._inert),T(1),O("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[vm,Ei,tj],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),n})();function BE(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let s=0;s<n+1;s++)i[s].group&&i[s].group===r[o]&&o++;return o}return 0}let HE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[bm,Si,Ce,nj]}),n})();const aj=["mat-button",""],lj=["*"],uj=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],dj=Ea(TE(gm(class{constructor(n){this._elementRef=n}})));let Rr=(()=>{class n extends dj{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of uj)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(m(ce),m(Da),m(pn,8))},n.\u0275cmp=ke({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&Ln(vm,5),2&e){let r;ve(r=be())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Fe("disabled",i.disabled||null),et("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[G],attrs:aj,ngContentSelectors:lj,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(bi(),D(0,"span",0),ct(1),S(),De(2,"span",1)(3,"span",2)),2&e&&(T(2),et("mat-button-ripple-round",i.isRoundButton||i.isIconButton),O("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[vm],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),Cm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[bm,Ce,Ce]}),n})();function jE(...n){const t=r_(n),{args:e,keys:i}=HD(n),r=new Te(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u<s;u++){let d=!1;Lt(e[u]).subscribe(Ve(o,h=>{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?jD(i,a):a),o.complete())}))}});return t?r.pipe(wp(t)):r}class UE{}class $E{}class xi{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof xi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new xi;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof xi?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class hj{encodeKey(t){return zE(t)}encodeValue(t){return zE(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const pj=/%(\d[a-f0-9])/gi,mj={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function zE(n){return encodeURIComponent(n).replace(pj,(t,e)=>mj[e]??t)}function fu(n){return`${n}`}class ii{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new hj,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function fj(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(fu):[fu(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new ii({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(fu(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(fu(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class gj{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function GE(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function WE(n){return typeof Blob<"u"&&n instanceof Blob}function qE(n){return typeof FormData<"u"&&n instanceof FormData}class Ta{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function _j(n){switch(n){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.headers||(this.headers=new xi),this.context||(this.context=new gj),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new ii,this.urlWithParams=e}serializeBody(){return null===this.body?null:GE(this.body)||WE(this.body)||qE(this.body)||function yj(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ii?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||qE(this.body)?null:WE(this.body)?this.body.type||null:GE(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ii?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){const e=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,c=t.params||this.params;const u=t.context??this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((d,h)=>d.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new Ta(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var st=(()=>((st=st||{})[st.Sent=0]="Sent",st[st.UploadProgress=1]="UploadProgress",st[st.ResponseHeader=2]="ResponseHeader",st[st.DownloadProgress=3]="DownloadProgress",st[st.Response=4]="Response",st[st.User=5]="User",st))();class wm{constructor(t,e=200,i="OK"){this.headers=t.headers||new xi,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Dm extends wm{constructor(t={}){super(t),this.type=st.ResponseHeader}clone(t={}){return new Dm({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class pu extends wm{constructor(t={}){super(t),this.type=st.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new pu({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class YE extends wm{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Mm(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Ia=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Ta)o=e;else{let l,c;l=r.headers instanceof xi?r.headers:new xi(r.headers),r.params&&(c=r.params instanceof ii?r.params:new ii({fromObject:r.params})),o=new Ta(e,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})}const s=N(o).pipe(Ki(l=>this.handler.handle(l)));if(e instanceof Ta||"events"===r.observe)return s;const a=s.pipe(gt(l=>l instanceof pu));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe($(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($(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($(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe($(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ii).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Mm(r,i))}post(e,i,r={}){return this.request("POST",e,Mm(r,i))}put(e,i,r={}){return this.request("PUT",e,Mm(r,i))}}return n.\u0275fac=function(e){return new(e||n)(_(UE))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();class KE{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Em=new M("HTTP_INTERCEPTORS");let vj=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const bj=/^\)\]\}',?\n/;let ZE=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Te(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const f=r.statusText||"OK",p=new xi(r.getAllResponseHeaders()),g=function Cj(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new Dm({headers:p,status:r.status,statusText:f,url:g}),s},l=()=>{let{headers:f,status:p,statusText:g,url:y}=a(),v=null;204!==p&&(v=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=v?200:0);let E=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof v){const b=v;v=v.replace(bj,"");try{v=""!==v?JSON.parse(v):null}catch(x){v=b,E&&(E=!1,v={error:x,text:v})}}E?(i.next(new pu({body:v,headers:f,status:p,statusText:g,url:y||void 0})),i.complete()):i.error(new YE({error:v,headers:f,status:p,statusText:g,url:y||void 0}))},c=f=>{const{url:p}=a(),g=new YE({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(g)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:st.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&!!r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:st.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:st.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(_(gD))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const Sm=new M("XSRF_COOKIE_NAME"),Am=new M("XSRF_HEADER_NAME");class Tm{}let wj=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=oD(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(_(W),_(cc),_(Sm))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),Im=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(_(Tm),_(Am))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),Dj=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(Em,[]);this.chain=i.reduceRight((r,o)=>new KE(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(_($E),_(He))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),Mj=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Im,useClass:vj}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Sm,useValue:e.cookieName}:[],e.headerName?{provide:Am,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[Im,{provide:Em,useExisting:Im,multi:!0},{provide:Tm,useClass:wj},{provide:Sm,useValue:"XSRF-TOKEN"},{provide:Am,useValue:"X-XSRF-TOKEN"}]}),n})(),Ej=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[Ia,{provide:UE,useClass:Dj},ZE,{provide:$E,useExisting:ZE}],imports:[Mj.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();const Sj=["*"];let mu;function xa(n){return function Aj(){if(void 0===mu&&(mu=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(mu=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return mu}()?.createHTML(n)||n}function QE(n){return Error(`Unable to find icon with the name "${n}"`)}function XE(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function JE(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Or{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let gu=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new Or(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(_e.HTML,r);if(!s)throw JE(r);const a=xa(s);return this._addSvgIconConfig(e,i,new Or("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new Or(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(_e.HTML,i);if(!o)throw JE(i);const s=xa(o);return this._addSvgIconSetConfig(e,new Or("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(_e.RESOURCE_URL,e);if(!i)throw XE(e);const r=this._cachedIconsByUrl.get(i);return r?N(_u(r)):this._loadSvgIconFromConfig(new Or(e,null)).pipe($e(o=>this._cachedIconsByUrl.set(i,o)),$(o=>_u(o)))}getNamedSvgIcon(e,i=""){const r=e0(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):No(QE(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?N(_u(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe($(i=>_u(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?N(r):jE(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(ei(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(_e.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),N(null)})))).pipe($(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw QE(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe($e(i=>e.svgText=i),$(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?N(null):this._fetchIcon(e).pipe($e(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.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(xa("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(xa("<svg></svg>")),r=e.attributes;for(let o=0;o<r.length;o++){const{name:s,value:a}=r[o];"id"!==s&&i.setAttribute(s,a)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[o].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){const{url:i,options:r}=e,o=r?.withCredentials??!1;if(!this._httpClient)throw function Tj(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==i)throw Error(`Cannot fetch icon from URL "${i}".`);const s=this._sanitizer.sanitize(_e.RESOURCE_URL,i);if(!s)throw XE(i);const a=this._inProgressUrlFetches.get(s);if(a)return a;const l=this._httpClient.get(s,{responseType:"text",withCredentials:o}).pipe($(c=>xa(c)),Fc(()=>this._inProgressUrlFetches.delete(s)),l_());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(e0(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){const o=this._resolvers[r](i,e);if(o)return xj(o)?new Or(o.url,null,o.options):new Or(o,null)}}}return n.\u0275fac=function(e){return new(e||n)(_(Ia,8),_(Cp),_(W,8),_(gi))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function _u(n){return n.cloneNode(!0)}function e0(n,t){return n+":"+t}function xj(n){return!(!n.url||!n.options)}const kj=Ea(class{constructor(n){this._elementRef=n}}),Rj=new M("MAT_ICON_DEFAULT_OPTIONS"),Oj=new M("mat-icon-location",{providedIn:"root",factory:function Fj(){const n=Oe(W),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),t0=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Pj=t0.map(n=>`[${n}]`).join(", "),Nj=/^url\(['"]?#(.*?)['"]?\)$/;let yu=(()=>{class n extends kj{constructor(e,i,r,o,s,a){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=We.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ee(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(Pj),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<i.length;o++)t0.forEach(s=>{const a=i[o],l=a.getAttribute(s),c=l?l.match(Nj):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(je(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(m(ce),m(gu),hi("aria-hidden"),m(Oj),m(gi),m(Rj,8))},n.\u0275cmp=ke({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(Fe("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),et("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[G],ngContentSelectors:Sj,decls:1,vars:0,template:function(e,i){1&e&&(bi(),ct(0))},styles:[".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}),n})(),n0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[Ce,Ce]}),n})();const Lj=["*",[["mat-card-footer"]]],Vj=["*","mat-card-footer"];let Bj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=I({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),r0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=I({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),Hj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=I({type:n,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),n})(),o0=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(m(pn,8))},n.\u0275cmp=ke({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,i){2&e&&et("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:Vj,decls:2,vars:0,template:function(e,i){1&e&&(bi(Lj),ct(0),ct(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),n})(),s0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[Ce,Ce]}),n})(),jj=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ke({type:n,selectors:[["app-home-view"]],decls:47,vars:0,consts:[[1,"px-16"],[1,"text-blue-600"],[1,"mt-8"],["mat-flat-button","","color","accent","routerLink","/store"],[1,"grid","grid-col-1","lg:grid-cols-3","gap-4","pt-8"],[1,"py-3"],[1,"px-3"],[2,"transform","rotate(-35deg)"]],template:function(e,i){1&e&&(D(0,"div")(1,"div",0)(2,"h1"),F(3," Welcome to the "),D(4,"span",1),F(5,"OTX 0day Marketplace"),S(),De(6,"br"),S(),D(7,"h2"),F(8,"We are the #1 marketplace for exploits"),S(),D(9,"p"),F(10,"We are your leading marketplace for high quality exploits"),S(),D(11,"div",2)(12,"button",3),F(13," Shop now "),D(14,"mat-icon"),F(15,"arrow_right_alt"),S()()()(),D(16,"div",4)(17,"div",5)(18,"mat-card")(19,"mat-card-title"),F(20,"Fully Documented "),De(21,"span",6),D(22,"mat-icon"),F(23,"book"),S()(),D(24,"mat-card-content")(25,"p"),F(26," Our exploits are fully documented "),S()()()(),D(27,"div",5)(28,"mat-card")(29,"mat-card-title"),F(30,"Fast Delivery "),De(31,"span",6),D(32,"mat-icon",7),F(33,"send"),S()(),D(34,"mat-card-content")(35,"p"),F(36," Exploits can be downloaded right after the the payment is approved "),S()()()(),D(37,"div",5)(38,"mat-card")(39,"mat-card-title"),F(40,"Satisfaction guaranteed "),De(41,"span",6),D(42,"mat-icon"),F(43,"mood"),S()(),D(44,"mat-card-content")(45,"p"),F(46," If an exploit is broken, we'll give your money back "),S()()()()()())},dependencies:[Rr,yu,o0,Bj,r0,$o],styles:["mat-card[_ngcontent-%COMP%]{background-color:transparent!important}mat-card[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{font-size:large}"]}),n})(),a0=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(m(mi),m(ce))},n.\u0275dir=I({type:n}),n})(),Fr=(()=>{class n extends a0{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=mt(n)))(i||n)}}(),n.\u0275dir=I({type:n,features:[G]}),n})();const ri=new M("NgValueAccessor"),$j={provide:ri,useExisting:Ie(()=>Pr),multi:!0},Gj=new M("CompositionEventMode");let Pr=(()=>{class n extends a0{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function zj(){const n=Xn()?Xn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(m(mi),m(ce),m(Gj,8))},n.\u0275dir=I({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&te("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[fe([$j]),G]}),n})();function Ji(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function c0(n){return null!=n&&"number"==typeof n.length}const St=new M("NgValidators"),er=new M("NgAsyncValidators"),qj=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Pt{static min(t){return u0(t)}static max(t){return function d0(n){return t=>{if(Ji(t.value)||Ji(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function h0(n){return Ji(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function f0(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function p0(n){return Ji(n.value)||qj.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function m0(n){return t=>Ji(t.value)||!c0(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return function g0(n){return t=>c0(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function _0(n){if(!n)return vu;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Ji(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return D0(t)}static composeAsync(t){return M0(t)}}function u0(n){return t=>{if(Ji(t.value)||Ji(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function vu(n){return null}function y0(n){return null!=n}function v0(n){return js(n)?Xe(n):n}function b0(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function C0(n,t){return t.map(e=>e(n))}function w0(n){return n.map(t=>function Yj(n){return!n.validate}(t)?t:e=>t.validate(e))}function D0(n){if(!n)return null;const t=n.filter(y0);return 0==t.length?null:function(e){return b0(C0(e,t))}}function xm(n){return null!=n?D0(w0(n)):null}function M0(n){if(!n)return null;const t=n.filter(y0);return 0==t.length?null:function(e){return jE(C0(e,t).map(v0)).pipe($(b0))}}function km(n){return null!=n?M0(w0(n)):null}function E0(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function S0(n){return n._rawValidators}function A0(n){return n._rawAsyncValidators}function Rm(n){return n?Array.isArray(n)?n:[n]:[]}function bu(n,t){return Array.isArray(n)?n.includes(t):n===t}function T0(n,t){const e=Rm(t);return Rm(n).forEach(r=>{bu(e,r)||e.push(r)}),e}function I0(n,t){return Rm(t).filter(e=>!bu(n,e))}class x0{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=xm(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=km(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Nt extends x0{get formDirective(){return null}get path(){return null}}class jn extends x0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class k0{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ka=(()=>{class n extends k0{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(m(jn,2))},n.\u0275dir=I({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&et("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[G]}),n})(),Ra=(()=>{class n extends k0{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(m(Nt,10))},n.\u0275dir=I({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&et("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[G]}),n})();const Oa="VALID",wu="INVALID",Ko="PENDING",Fa="DISABLED";function Nm(n){return(Du(n)?n.validators:n)||null}function O0(n){return Array.isArray(n)?xm(n):n||null}function Lm(n,t){return(Du(t)?t.asyncValidators:n)||null}function F0(n){return Array.isArray(n)?km(n):n||null}function Du(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class L0{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=O0(this._rawValidators),this._composedAsyncValidatorFn=F0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Oa}get invalid(){return this.status===wu}get pending(){return this.status==Ko}get disabled(){return this.status===Fa}get enabled(){return this.status!==Fa}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=O0(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=F0(t)}addValidators(t){this.setValidators(T0(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(T0(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(I0(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(I0(t,this._rawAsyncValidators))}hasValidator(t){return bu(this._rawValidators,t)}hasAsyncValidator(t){return bu(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ko,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Fa,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Oa,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Oa||this.status===Ko)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Fa:Oa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ko,this._hasOwnPendingAsyncValidator=!0;const e=v0(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ee,this.statusChanges=new ee}_calculateStatus(){return this._allControlsDisabled()?Fa:this.errors?wu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ko)?Ko:this._anyControlsHaveStatus(wu)?wu:Oa}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Du(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class Zo extends L0{constructor(t,e,i){super(Nm(e),Lm(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){(function N0(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new C(1002,"")})})(this,0,t),Object.keys(t).forEach(i=>{(function P0(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new C(1e3,"");if(!i[e])throw new C(1001,"")})(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}function Pa(n,t){Vm(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function iU(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&V0(n,t)})}(n,t),function oU(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function rU(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&V0(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function nU(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function Eu(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Au(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Su(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Vm(n,t){const e=S0(n);null!==t.validator?n.setValidators(E0(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=A0(n);null!==t.asyncValidator?n.setAsyncValidators(E0(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();Su(t._rawValidators,r),Su(t._rawAsyncValidators,r)}function Au(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=S0(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=A0(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return Su(t._rawValidators,i),Su(t._rawAsyncValidators,i),e}function V0(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function B0(n,t){Vm(n,t)}function j0(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}const uU={provide:Nt,useExisting:Ie(()=>Qo)},Na=(()=>Promise.resolve())();let Qo=(()=>{class n extends Nt{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new ee,this.form=new Zo({},xm(e),km(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Na.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Pa(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Na.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Na.then(()=>{const i=this._findContainer(e.path),r=new Zo({});B0(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Na.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){Na.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,j0(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(m(St,10),m(er,10))},n.\u0275dir=I({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&te("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[fe([uU]),G]}),n})();function U0(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function $0(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const bn=class extends L0{constructor(t=null,e,i){super(Nm(e),Lm(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Du(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=$0(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){U0(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){U0(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){$0(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};let La=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=I({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const pU={provide:ri,useExisting:Ie(()=>jm),multi:!0};let jm=(()=>{class n extends Fr{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=mt(n)))(i||n)}}(),n.\u0275dir=I({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,i){1&e&&te("input",function(o){return i.onChange(o.target.value)})("blur",function(){return i.onTouched()})},features:[fe([pU]),G]}),n})(),Y0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({}),n})();const Um=new M("NgModelWithFormControlWarning"),yU={provide:jn,useExisting:Ie(()=>Xo)};let Xo=(()=>{class n extends jn{constructor(e,i,r,o){super(),this._ngModelWarningConfig=o,this.update=new ee,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=function Hm(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===Pr?e=o:function lU(n){return Object.getPrototypeOf(n.constructor)===Fr}(o)?i=o:r=o}),r||i||e||null}(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&Eu(i,this,!1),Pa(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}(function Bm(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)})(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Eu(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(m(St,10),m(er,10),m(ri,10),m(Um,8))},n.\u0275dir=I({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[fe([yU]),G,Ct]}),n})();const vU={provide:Nt,useExisting:Ie(()=>ki)};let ki=(()=>{class n extends Nt{constructor(e,i){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ee,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Au(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Pa(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Eu(e.control||null,e,!1),function cU(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,j0(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(Eu(i||null,e),(n=>n instanceof bn)(r)&&(Pa(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);B0(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function sU(n,t){return Au(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Vm(this.form,this),this._oldForm&&Au(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(m(St,10),m(er,10))},n.\u0275dir=I({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&te("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[fe([vU]),G,Ct]}),n})();let Nr=(()=>{class n{constructor(){this._validator=vu}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):vu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=I({type:n,features:[Ct]}),n})();const xU={provide:St,useExisting:Ie(()=>qm),multi:!0};let qm=(()=>{class n extends Nr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>function nS(n){return"number"==typeof n?n:parseFloat(n)}(e),this.createValidator=e=>u0(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=mt(n)))(i||n)}}(),n.\u0275dir=I({type:n,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Fe("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[fe([xU]),G]}),n})(),LU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[Y0]}),n})(),VU=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Um,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[LU]}),n})();const Km="user";let Tu=(()=>{class n{constructor(e){this.http=e,this.user=JSON.parse(window.sessionStorage.getItem(Km))}signUp(e,i){return this.http.post("/register",{username:e,password:i}).pipe(je(1),$e(()=>this.saveUser({username:e})))}login(e,i){return this.http.post("/login",{username:e,password:i}).pipe(je(1),$e(()=>this.saveUser({username:e})))}get loggedIn(){return!!this.user}saveUser(e){this.user=e,window.sessionStorage.setItem(Km,JSON.stringify(e))}logout(){this.user=void 0,window.sessionStorage.removeItem(Km)}}return n.\u0275fac=function(e){return new(e||n)(_(Ia))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const HU=["addListener","removeListener"],jU=["addEventListener","removeEventListener"],UU=["on","off"];function Iu(n,t,e,i){if(he(e)&&(i=e,e=void 0),i)return Iu(n,t,e).pipe(wp(i));const[r,o]=function GU(n){return he(n.addEventListener)&&he(n.removeEventListener)}(n)?jU.map(s=>a=>n[s](t,a,e)):function $U(n){return he(n.addListener)&&he(n.removeListener)}(n)?HU.map(cS(n,t)):function zU(n){return he(n.on)&&he(n.off)}(n)?UU.map(cS(n,t)):[];if(!r&&pd(n))return ft(s=>Iu(s,t,e))(Lt(n));if(!r)throw new TypeError("Invalid event target");return new Te(s=>{const a=(...l)=>s.next(1<l.length?l:l[0]);return r(a),()=>o(a)})}function cS(n,t){return e=>i=>n[e](t,i)}const Va={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Va;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(o=>{e=void 0,n(o)});return new We(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:t}=Va;return(t?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=Va;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};new class qU extends lm{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class WU extends am{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Va.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Va.cancelAnimationFrame(e),t._scheduled=void 0)}});let Zm,KU=1;const xu={};function uS(n){return n in xu&&(delete xu[n],!0)}const ZU={setImmediate(n){const t=KU++;return xu[t]=!0,Zm||(Zm=Promise.resolve()),Zm.then(()=>uS(t)&&n()),t},clearImmediate(n){uS(n)}},{setImmediate:QU,clearImmediate:XU}=ZU,ku={setImmediate(...n){const{delegate:t}=ku;return(t?.setImmediate||QU)(...n)},clearImmediate(n){const{delegate:t}=ku;return(t?.clearImmediate||XU)(n)},delegate:void 0};new class e$ extends lm{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class JU extends am{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=ku.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);const{actions:o}=t;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(ku.clearImmediate(e),t._scheduled=void 0)}});function dS(n,t=cm){return function n$(n){return qe((t,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};t.subscribe(Ve(e,c=>{i=!0,r=c,o||Lt(n(c)).subscribe(o=Ve(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>function r$(n=0,t,e=dH){let i=-1;return null!=t&&(i_(t)?e=t:i=t),new Te(r=>{let o=function i$(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}(n,t))}let hS=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new L,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Te(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(dS(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):N()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(gt(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Ii(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Iu(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(_(Q),_(ht),_(W,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qm=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new L,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(dS(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(_(ht),_(Q),_(W,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ba=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({}),n})(),fS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[Ma,Ba,Ma,Ba]}),n})();class Xm{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class es extends Xm{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Ru extends Xm{constructor(t,e,i,r){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class a$ extends Xm{constructor(t){super(),this.element=t instanceof ce?t.nativeElement:t}}class Ou{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof es?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ru?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof a$?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class l$ extends Ou{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector||He.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Ha=(()=>{class n extends Ou{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new ee,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(m(mr),m(jt),m(W))},n.\u0275dir=I({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[G]}),n})(),ja=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({}),n})();const pS=Z2();class c${constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=ot(-this._previousScrollPosition.left),t.style.top=ot(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.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,t.classList.remove("cdk-global-scrollblock"),pS&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),pS&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class u${constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class mS{enable(){}disable(){}attach(){}}function Jm(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function gS(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class d${constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Jm(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let h$=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new mS,this.close=s=>new u$(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new c$(this._viewportRuler,this._document),this.reposition=s=>new d$(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(_(hS),_(Qm),_(Q),_(W))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Fu{constructor(t){if(this.scrollStrategy=new mS,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class f${constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let _S=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(_(W))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),p$=(()=>{class n extends _S{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(_(W),_(Q,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),m$=(()=>{class n extends _S{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=kr(o)},this._clickListener=o=>{const s=kr(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(o)):d.next(o)}}}add(e){if(super.add(e),!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 e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(_(W),_(ht),_(Q,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pu=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||im()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}const i=this._document.createElement("div");i.classList.add(e),im()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(_(W),_(ht))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Ua{constructor(t,e,i,r,o,s,a,l,c,u=!1){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._backdropElement=null,this._backdropClick=new L,this._attachments=new L,this._detachments=new L,this._locationChanges=We.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new L,this._outsidePointerEvents=new L,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(je(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),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 e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=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._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config={...this._config,...t},this._updateElementSize()}setDirection(t){this._config={...this._config,direction:t},this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=ot(this._config.width),t.height=ot(this._config.height),t.minWidth=ot(this._config.minWidth),t.minHeight=ot(this._config.minHeight),t.maxWidth=ot(this._config.maxWidth),t.maxHeight=ot(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="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(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(t){if(this._animationsDisabled)return void this._disposeBackdrop(t);t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,e,i){const r=au(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Ne(Sn(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const yS="cdk-overlay-connected-position-bounding-box",g$=/([A-Za-z%]+)$/;class _${constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new L,this._resizeSubscription=We.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(yS),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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 t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,r,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?o.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleArea<u.visibleArea)&&(s={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(o.length){let a=null,l=-1;for(const c of o){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,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&&Lr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(yS),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e,i){let r,o;if("center"==i.originX)r=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?t.top+t.height/2:"top"==i.originY?t.top:t.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=bS(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,f=a+o.height-i.height,p=this._subtractOverflows(o.width,0-s,s+o.width-i.width),g=this._subtractOverflows(o.height,h,f),y=p*g;return{visibleArea:y,isCompletelyWithinViewport:o.width*o.height===y,fitsInViewportVertically:g===o.height,fitsInViewportHorizontally:p==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=vS(this._overlayRef.getConfig().minHeight),a=vS(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=bS(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:t.x<this._viewportMargin?o.left-i.left-t.x:0,d=r.height<=o.height?l||-a:t.y<this._viewportMargin?o.top-i.top-t.y:0,this._previousPushAmount={x:u,y:d},{x:t.x+u,y:t.y+d}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new f$(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let o,s,a,u,d,h;if("top"===e.overlayY)s=t.y,o=i.height-s+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,o=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-t.y+i.top,t.y),p=this._lastBoundingBoxSize.height;o=2*f,s=t.y-f,o>p&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-p/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-p/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!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=ot(i.height),r.top=ot(i.top),r.bottom=ot(i.bottom),r.width=ot(i.width),r.left=ot(i.left),r.right=ot(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=ot(o)),s&&(r.maxWidth=ot(s))}this._lastBoundingBoxSize=i,Lr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Lr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Lr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Lr(i,this._getExactOverlayY(e,t,u)),Lr(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=ot(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=ot(s.maxWidth):o&&(i.maxWidth="")),Lr(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=ot(o.y),r}_getExactOverlayX(t,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=ot(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:gS(t,i),isOriginOutsideView:Jm(t,i),isOverlayClipped:gS(e,i),isOverlayOutsideView:Jm(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?t.offsetX??this._offsetX:t.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&au(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof ce)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Lr(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function vS(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(g$);return e&&"px"!==e?null:parseFloat(t)}return n||null}function bS(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const CS="cdk-global-overlay-wrapper";class y${constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(CS),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=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),u=this._xPosition,d=this._xOffset,h="rtl"===this._overlayRef.getConfig().direction;let f="",p="",g="";l?g="flex-start":"center"===u?(g="center",h?p=d:f=d):h?"left"===u||"end"===u?(g="flex-end",f=d):("right"===u||"start"===u)&&(g="flex-start",p=d):"left"===u||"start"===u?(g="flex-start",f=d):("right"===u||"end"===u)&&(g="flex-end",p=d),t.position=this._cssPosition,t.marginLeft=l?"0":f,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":p,e.justifyContent=g,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(CS),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let v$=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new y$}flexibleConnectedTo(e){return new _$(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(_(Qm),_(W),_(ht),_(Pu))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),b$=0,Jt=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h,this._animationsModuleType=f}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new Fu(e);return s.direction=s.direction||this._directionality.value,new Ua(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+b$++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Po)),new l$(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(_(h$),_(Pu),_(mr),_(v$),_(p$),_(He),_(Q),_(W),_(Xi),_(Js),_(m$),_(pn,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();const C$=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],wS=new M("cdk-connected-overlay-scroll-strategy");let DS=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(m(ce))},n.\u0275dir=I({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),MS=(()=>{class n{constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=We.EMPTY,this._attachSubscription=We.EMPTY,this._detachSubscription=We.EMPTY,this._positionSubscription=We.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ee,this.positionChange=new ee,this.attach=new ee,this.detach=new ee,this.overlayKeydown=new ee,this.overlayOutsideClick=new ee,this._templatePortal=new Ru(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ee(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ee(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ee(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ee(e)}get push(){return this._push}set push(e){this._push=Ee(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=C$);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!ni(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Fu({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof DS?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(qD(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(m(Jt),m(fn),m(jt),m(wS),m(Xi,8))},n.\u0275dir=I({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ct]}),n})();const D$={provide:wS,deps:[Jt],useFactory:function w$(n){return()=>n.scrollStrategies.reposition()}};let ts=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[Jt,D$],imports:[Ma,ja,fS,fS]}),n})();class ES{}const Ri="*";function tr(n,t){return{type:7,name:n,definitions:t,options:{}}}function Cn(n,t=null){return{type:4,styles:t,timings:n}}function SS(n,t=null){return{type:3,steps:n,options:t}}function AS(n,t=null){return{type:2,steps:n,options:t}}function Le(n){return{type:6,styles:n,offset:null}}function wn(n,t,e){return{type:0,name:n,styles:t,options:e}}function en(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function eg(n=null){return{type:9,options:n}}function tg(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function TS(n){Promise.resolve().then(n)}class $a{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){TS(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class IS{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?TS(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function S$(n,t){if(1&n){const e=br();D(0,"div",2)(1,"button",3),te("click",function(){return Vi(e),Bi(Me().action())}),F(2),S()()}if(2&n){const e=Me();T(2),Mt(e.data.action)}}function A$(n,t){}const xS=new M("MatSnackBarData");class Nu{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const T$=Math.pow(2,31)-1;class ig{constructor(t,e){this._overlayRef=e,this._afterDismissed=new L,this._afterOpened=new L,this._onAction=new L,this._dismissedByAction=!1,this.containerInstance=t,t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,T$))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let I$=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(m(ig),m(xS))},n.\u0275cmp=ke({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(D(0,"span",0),F(1),S(),oe(2,S$,3,1,"div",1)),2&e&&(T(1),Mt(i.data.message),T(1),O("ngIf",i.hasAction))},dependencies:[Ei,Rr],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),n})();const x$={snackBarState:tr("state",[wn("void, hidden",Le({transform:"scale(0.8)",opacity:0})),wn("visible",Le({transform:"scale(1)",opacity:1})),en("* => visible",Cn("150ms cubic-bezier(0, 0, 0.2, 1)")),en("* => void, * => hidden",Cn("75ms cubic-bezier(0.4, 0.0, 1, 1)",Le({opacity:0})))])};let k$=(()=>{class n extends Ou{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new L,this._onExit=new L,this._onEnter=new L,this._animationState="void",this.attachDomPortal=a=>{this._assertNotAttached();const l=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),l},this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(je(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(m(Q),m(ce),m(Xt),m(ht),m(Nu))},n.\u0275dir=I({type:n,viewQuery:function(e,i){if(1&e&&Ln(Ha,7),2&e){let r;ve(r=be())&&(i._portalOutlet=r.first)}},features:[G]}),n})(),R$=(()=>{class n extends k${_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=mt(n)))(i||n)}}(),n.\u0275cmp=ke({type:n,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&Yl("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&Ql("@state",i._animationState)},features:[G],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(D(0,"div",0),oe(1,A$,0,0,"ng-template",1),S(),De(2,"div")),2&e&&(T(2),Fe("aria-live",i._live)("role",i._role))},dependencies:[Ha],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[x$.snackBarState]}}),n})(),rg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[ts,ja,Si,Cm,Ce,Ce]}),n})();const kS=new M("mat-snack-bar-default-options",{providedIn:"root",factory:function O$(){return new Nu}});let F$=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o={...this._defaultConfig,...r};return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=He.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Nu,useValue:i}]}),s=new es(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r={...new Nu,...this._defaultConfig,...i},o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new ig(s,o);if(e instanceof fn){const l=new Ru(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new es(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Ne(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Fu;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return He.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:ig,useValue:i},{provide:xS,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(_(Jt),_(pm),_(He),_(lu),_(n,12),_(kS))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),P$=(()=>{class n extends F${constructor(e,i,r,o,s,a){super(e,i,r,o,s,a),this.simpleSnackBarComponent=I$,this.snackBarContainerComponent=R$,this.handsetCssClass="mat-snack-bar-handset"}}return n.\u0275fac=function(e){return new(e||n)(_(Jt),_(pm),_(He),_(lu),_(n,12),_(kS))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:rg}),n})();function N$(n){return"Unknown error with status code "+n.status}let Lu=(()=>{class n{constructor(e){this.snackbar=e}success(e){this.snackbar.open(e,"close",{duration:3e3,panelClass:["mat-toolbar","mat-success"]})}error(e){this.snackbar.open(e,"close",{duration:3e3,panelClass:["mat-toolbar","mat-warn"]})}infoSnack(e,i){return i=i||N$,r=>r.pipe($e(()=>{e&&this.success(e)}),ei(o=>(this.error(i(o)),N())))}}return n.\u0275fac=function(e){return new(e||n)(_(P$))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const L$=["connectionContainer"],V$=["inputContainer"],B$=["label"];function H$(n,t){1&n&&(Bs(0),D(1,"div",14),De(2,"div",15)(3,"div",16)(4,"div",17),S(),D(5,"div",18),De(6,"div",15)(7,"div",16)(8,"div",17),S(),Hs())}function j$(n,t){if(1&n){const e=br();D(0,"div",19),te("cdkObserveContent",function(){return Vi(e),Bi(Me().updateOutlineGap())}),ct(1,1),S()}2&n&&O("cdkObserveContentDisabled","outline"!=Me().appearance)}function U$(n,t){if(1&n&&(Bs(0),ct(1,2),D(2,"span"),F(3),S(),Hs()),2&n){const e=Me(2);T(3),Mt(e._control.placeholder)}}function $$(n,t){1&n&&ct(0,3,["*ngSwitchCase","true"])}function z$(n,t){1&n&&(D(0,"span",23),F(1," *"),S())}function G$(n,t){if(1&n){const e=br();D(0,"label",20,21),te("cdkObserveContent",function(){return Vi(e),Bi(Me().updateOutlineGap())}),oe(2,U$,4,1,"ng-container",12),oe(3,$$,1,0,"ng-content",12),oe(4,z$,2,0,"span",22),S()}if(2&n){const e=Me();et("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),O("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Fe("for",e._control.id)("aria-owns",e._control.id),T(2),O("ngSwitchCase",!1),T(1),O("ngSwitchCase",!0),T(1),O("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function W$(n,t){1&n&&(D(0,"div",24),ct(1,4),S())}function q$(n,t){if(1&n&&(D(0,"div",25),De(1,"span",26),S()),2&n){const e=Me();T(1),et("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Y$(n,t){1&n&&(D(0,"div"),ct(1,5),S()),2&n&&O("@transitionMessages",Me()._subscriptAnimationState)}function K$(n,t){if(1&n&&(D(0,"div",30),F(1),S()),2&n){const e=Me(2);O("id",e._hintLabelId),T(1),Mt(e.hintLabel)}}function Z$(n,t){if(1&n&&(D(0,"div",27),oe(1,K$,2,2,"div",28),ct(2,6),De(3,"div",29),ct(4,7),S()),2&n){const e=Me();O("@transitionMessages",e._subscriptAnimationState),T(1),O("ngIf",e.hintLabel)}}const Q$=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],X$=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let J$=0;const RS=new M("MatError");let og=(()=>{class n{constructor(e,i){this.id="mat-error-"+J$++,e||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(hi("aria-live"),m(ce))},n.\u0275dir=I({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,i){2&e&&Fe("id",i.id)},inputs:{id:"id"},features:[fe([{provide:RS,useExisting:n}])]}),n})();const ez={transitionMessages:tr("transitionMessages",[wn("enter",Le({opacity:1,transform:"translateY(0%)"})),en("void => enter",[Le({opacity:0,transform:"translateY(-5px)"}),Cn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let za=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=I({type:n}),n})();const tz=new M("MatHint");let OS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=I({type:n,selectors:[["mat-label"]]}),n})(),nz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=I({type:n,selectors:[["mat-placeholder"]]}),n})();const iz=new M("MatPrefix"),FS=new M("MatSuffix");let sg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=I({type:n,selectors:[["","matSuffix",""]],features:[fe([{provide:FS,useExisting:n}])]}),n})(),PS=0;const oz=Ea(class{constructor(n){this._elementRef=n}},"primary"),sz=new M("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ag=new M("MatFormField");let Vu=(()=>{class n extends oz{constructor(e,i,r,o,s,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=o,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new L,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+PS++,this._labelId="mat-form-field-label-"+PS++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=o?.appearance||"legacy",o&&(this._hideRequiredMarker=Boolean(o.hideRequiredMarker),o.color&&(this.color=this.defaultColor=o.color))}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ee(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Jn(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ne(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ne(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Sn(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Jn(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Jn(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ne(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Iu(this._label.nativeElement,"transitionend").pipe(je(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",o=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=i.querySelectorAll(`${r}, ${o}`);for(let d=0;d<u.length;d++)u[d].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let s=0,a=0;const l=i.querySelectorAll(r),c=i.querySelectorAll(o);if(this._label&&this._label.nativeElement.children.length){const u=i.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const d=this._getStartEnd(u),h=e.children,f=this._getStartEnd(h[0].getBoundingClientRect());let p=0;for(let g=0;g<h.length;g++)p+=h[g].offsetWidth;s=Math.abs(f-d)-5,a=p>0?.75*p+10:0}for(let u=0;u<l.length;u++)l[u].style.width=`${s}px`;for(let u=0;u<c.length;u++)c[u].style.width=`${a}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return n.\u0275fac=function(e){return new(e||n)(m(ce),m(Xt),m(Xi,8),m(sz,8),m(ht),m(Q),m(pn,8))},n.\u0275cmp=ke({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(tt(r,za,5),tt(r,za,7),tt(r,OS,5),tt(r,OS,7),tt(r,nz,5),tt(r,RS,5),tt(r,tz,5),tt(r,iz,5),tt(r,FS,5)),2&e){let o;ve(o=be())&&(i._controlNonStatic=o.first),ve(o=be())&&(i._controlStatic=o.first),ve(o=be())&&(i._labelChildNonStatic=o.first),ve(o=be())&&(i._labelChildStatic=o.first),ve(o=be())&&(i._placeholderChild=o.first),ve(o=be())&&(i._errorChildren=o),ve(o=be())&&(i._hintChildren=o),ve(o=be())&&(i._prefixChildren=o),ve(o=be())&&(i._suffixChildren=o)}},viewQuery:function(e,i){if(1&e&&(Ln(L$,7),Ln(V$,5),Ln(B$,5)),2&e){let r;ve(r=be())&&(i._connectionContainerRef=r.first),ve(r=be())&&(i._inputContainerRef=r.first),ve(r=be())&&(i._label=r.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,i){2&e&&et("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[fe([{provide:ag,useExisting:n}]),G],ngContentSelectors:X$,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,i){1&e&&(bi(Q$),D(0,"div",0)(1,"div",1,2),te("click",function(o){return i._control.onContainerClick&&i._control.onContainerClick(o)}),oe(3,H$,9,0,"ng-container",3),oe(4,j$,2,1,"div",4),D(5,"div",5,6),ct(7),D(8,"span",7),oe(9,G$,5,16,"label",8),S()(),oe(10,W$,2,0,"div",9),S(),oe(11,q$,2,4,"div",10),D(12,"div",11),oe(13,Y$,2,1,"div",12),oe(14,Z$,5,2,"div",13),S()()),2&e&&(T(3),O("ngIf","outline"==i.appearance),T(1),O("ngIf",i._prefixChildren.length),T(5),O("ngIf",i._hasFloatingLabel()),T(1),O("ngIf",i._suffixChildren.length),T(1),O("ngIf","outline"!=i.appearance),T(1),O("ngSwitch",i._getDisplayedMessages()),T(1),O("ngSwitchCase","error"),T(1),O("ngSwitchCase","hint"))},dependencies:[Ei,na,lp,mH],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[ez.transitionMessages]},changeDetection:0}),n})(),Ga=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[Si,Ce,cE,Ce]}),n})();const LS=Wo({passive:!0});let az=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return $n;const i=Ii(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new L,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,LS),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,LS)}}),o}stopMonitoring(e){const i=Ii(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(_(ht),_(Q))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),VS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({}),n})();const lz=new M("MAT_INPUT_VALUE_ACCESSOR"),cz=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let uz=0;const dz=_m(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new L}});let Bu=(()=>{class n extends dz{constructor(e,i,r,o,s,a,l,c,u,d){super(a,o,s,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+uz++,this.focused=!1,this.stateChanges=new L,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(p=>eE().has(p)),this._iOSKeyupListener=p=>{const g=p.target;!g.value&&0===g.selectionStart&&0===g.selectionEnd&&(g.setSelectionRange(1,1),g.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ee(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Pt.required)??!1}set required(e){this._required=Ee(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&eE().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ee(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,i=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(i!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=i,i?r.setAttribute("placeholder",i):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){cz.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(m(ce),m(ht),m(jn,10),m(Qo,8),m(ki,8),m(Sa),m(lz,10),m(az),m(Q),m(ag,8))},n.\u0275dir=I({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&te("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Cr("disabled",i.disabled)("required",i.required),Fe("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),et("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[fe([{provide:za,useExisting:n}]),G,Ct]}),n})(),BS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[Sa],imports:[VS,Ga,Ce,VS,Ga]}),n})();function hz(n,t){}class Hu{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let HS=(()=>{class n extends Ou{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=nm(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=nm();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=nm())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(m(ce),m(fm),m(W,8),m(Hu),m(du),m(Q),m(Ua),m(Da))},n.\u0275cmp=ke({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&Ln(Ha,7),2&e){let r;ve(r=be())&&(i._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&Fe("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[G],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&oe(0,hz,0,0,"ng-template",0)},dependencies:[Ha],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class lg{constructor(t,e){this.overlayRef=t,this.config=e,this.closed=new L,this.disableClose=e.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!ni(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(t,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),i.next(t),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",e=""){return this.overlayRef.updateSize({width:t,height:e}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}}const jS=new M("DialogScrollStrategy"),fz=new M("DialogData"),pz=new M("DefaultDialogConfig"),gz={provide:jS,deps:[Jt],useFactory:function mz(n){return()=>n.scrollStrategies.block()}};let _z=0,US=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new L,this._afterOpenedAtThisLevel=new L,this._ariaHiddenElements=new Map,this.afterAllClosed=sa(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Jn(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,i){(i={...this._defaultOptions||new Hu,...i}).id=i.id||"cdk-dialog-"+_z++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new lg(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){cg(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){cg(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),cg(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Fu({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:Hu,useValue:r},{provide:lg,useValue:i},{provide:Ua,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=HS;const l=new es(a,r.viewContainerRef,He.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof fn){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new Ru(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new es(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,r,o){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:fz,useValue:e.data},{provide:lg,useValue:i}];return e.providers&&("function"==typeof e.providers?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(Xi,null,B.Optional))&&a.push({provide:Xi,useValue:{value:e.direction,change:N()}}),He.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(_(Jt),_(He),_(pz,8),_(n,12),_(Pu),_(jS))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();function cg(n,t){let e=n.length;for(;e--;)t(n[e])}let yz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[US,gz],imports:[ts,ja,EE,ja]}),n})();function vz(n,t){}const ns={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},bz={dialogContainer:tr("dialogContainer",[wn("void, exit",Le({opacity:0,transform:"scale(0.7)"})),wn("enter",Le({transform:"none"})),en("* => enter",SS([Cn("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Le({transform:"none",opacity:1})),tg("@*",eg(),{optional:!0})]),ns),en("* => void, * => exit",SS([Cn("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Le({opacity:0})),tg("@*",eg(),{optional:!0})]),ns)])};class ju{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ns.params.enterAnimationDuration,this.exitAnimationDuration=ns.params.exitAnimationDuration}}let Cz=(()=>{class n extends HS{constructor(e,i,r,o,s,a,l,c){super(e,i,r,o,s,a,l,c),this._animationStateChanged=new ee}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(m(ce),m(fm),m(W,8),m(ju),m(du),m(Q),m(Ua),m(Da))},n.\u0275cmp=ke({type:n,selectors:[["ng-component"]],features:[G],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),wz=(()=>{class n extends Cz{constructor(e,i,r,o,s,a,l,c,u){super(e,i,r,o,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?this._openAnimationDone(i):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ns.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ns.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(m(ce),m(fm),m(W,8),m(ju),m(du),m(Q),m(Ua),m(Xt),m(Da))},n.\u0275cmp=ke({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&Yl("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&(Cr("id",i._config.id),Fe("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Ql("@dialogContainer",i._getAnimationState()))},features:[G],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&oe(0,vz,0,0,"ng-template",0)},dependencies:[Ha],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[bz.dialogContainer]}}),n})();class $S{constructor(t,e,i){this._ref=t,this._containerInstance=i,this._afterOpened=new L,this._beforeClosed=new L,this._state=0,this.disableClose=e.disableClose,this.id=t.id,i._animationStateChanged.pipe(gt(r=>"opened"===r.state),je(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(gt(r=>"closed"===r.state),je(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Sn(this.backdropClick(),this.keydownEvents().pipe(gt(r=>27===r.keyCode&&!this.disableClose&&!ni(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Dz(n,t,e){n._closeInteractionType=t,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(gt(e=>"closing"===e.state),je(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(t){let e=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",e=""){return this._ref.updateSize(t,e),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const zS=new M("MatDialogData"),Mz=new M("mat-dialog-default-options"),GS=new M("mat-dialog-scroll-strategy"),Sz={provide:GS,deps:[Jt],useFactory:function Ez(n){return()=>n.scrollStrategies.block()}};let Az=0,Tz=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new L,this._afterOpenedAtThisLevel=new L,this._idPrefix="mat-dialog-",this.afterAllClosed=sa(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Jn(void 0))),this._scrollStrategy=a,this._dialog=i.get(US)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){let r;(i={...this._defaultOptions||new ju,...i}).id=i.id||`${this._idPrefix}${Az++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:ju,useValue:i},{provide:Hu,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,l)=>(r=new this._dialogRefConstructor(s,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){go()},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),WS=(()=>{class n extends Tz{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,$S,wz,zS,c)}}return n.\u0275fac=function(e){return new(e||n)(_(Jt),_(He),_(Js,8),_(Mz,8),_(GS),_(n,12),_(Pu),_(pn,8))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),ug=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=I({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),qS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[WS,Sz],imports:[yz,ts,ja,Ce,Ce]}),n})();function Iz(n,t){1&n&&(D(0,"mat-error"),F(1," Username is required "),S())}function xz(n,t){if(1&n&&(D(0,"mat-error"),F(1),S()),2&n){const e=Me();T(1),Nn(" Username must be at least ",null==e.usernameControl.errors?null:e.usernameControl.errors.minlength.requiredLength," characters ")}}function kz(n,t){1&n&&(D(0,"mat-error"),F(1," Password is required "),S())}function Rz(n,t){if(1&n&&(D(0,"mat-error"),F(1),S()),2&n){const e=Me();T(1),Nn(" Password must be at least ",null==e.passwordControl.errors?null:e.passwordControl.errors.minlength.requiredLength," characters ")}}let Oz=(()=>{class n{constructor(e,i,r){this.userService=e,this.router=i,this.snackbar=r,this.showPassword=!1,this.usernameControl=new bn("",[Pt.required,Pt.minLength(4)]),this.passwordControl=new bn("",[Pt.required,Pt.minLength(6)]),this.form=new Zo([this.usernameControl,this.passwordControl])}ngOnInit(){}login(){this.userService.login(this.usernameControl.value,this.passwordControl.value).pipe(this.snackbar.infoSnack("Logged in!",e=>401==e.status?"Incorrect credentials":`Unknown error: ${e.status}`)).subscribe({next:e=>{this.router.navigate(["/store"])}})}}return n.\u0275fac=function(e){return new(e||n)(m(Tu),m(rt),m(Lu))},n.\u0275cmp=ke({type:n,selectors:[["app-login-view"]],decls:25,vars:10,consts:[[1,"h-full","flex","flex-col","place-content-center","px-2","pb-8"],[1,"border","rounded-md","w-full","md:w-2/3","mx-auto","mb-5","px-4","py-4"],[1,"pb-4"],[3,"formGroup"],["mat-dialog-content",""],[1,"w-full"],["matInput","","placeholder","Username",3,"formControl"],[4,"ngIf"],["matInput","","placeholder","Password",3,"formControl","type"],["type","button","matSuffix","",3,"click"],[1,"flex","flex-row","place-content-evenly","pt-4"],["mat-flat-button","","color","accent",3,"disabled","click"],["mat-flat-button","","color","success","routerLink","/signup",3,"click"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"div",1)(2,"h1",2),F(3,"Login"),S(),D(4,"form",3)(5,"div",4)(6,"mat-form-field",5),De(7,"input",6),oe(8,Iz,2,0,"mat-error",7),oe(9,xz,2,1,"mat-error",7),S()(),D(10,"div",4)(11,"mat-form-field",5),De(12,"input",8),D(13,"button",9),te("click",function(){return i.showPassword=!i.showPassword}),D(14,"mat-icon"),F(15),S()(),oe(16,kz,2,0,"mat-error",7),oe(17,Rz,2,1,"mat-error",7),S()(),D(18,"div",10)(19,"button",11),te("click",function(o){return o.preventDefault(),i.login()}),F(20," Log in "),S(),D(21,"span"),F(22," Don't have an account yet? "),D(23,"button",12),te("click",function(o){return o.preventDefault()}),F(24," Sign up "),S()()()()()()),2&e&&(T(4),O("formGroup",i.form),T(3),O("formControl",i.usernameControl),T(1),O("ngIf",(null==i.usernameControl?null:i.usernameControl.invalid)&&(null==i.usernameControl.errors?null:i.usernameControl.errors.required)),T(1),O("ngIf",(null==i.usernameControl?null:i.usernameControl.invalid)&&(null==i.usernameControl.errors?null:i.usernameControl.errors.minlength)),T(3),O("formControl",i.passwordControl)("type",i.showPassword?"text":"password"),T(3),Mt(i.showPassword?"visibility_off":"visibility"),T(1),O("ngIf",(null==i.passwordControl?null:i.passwordControl.invalid)&&(null==i.passwordControl.errors?null:i.passwordControl.errors.required)),T(1),O("ngIf",(null==i.passwordControl?null:i.passwordControl.invalid)&&(null==i.passwordControl.errors?null:i.passwordControl.errors.minlength)),T(2),O("disabled",i.form.invalid))},dependencies:[Ei,Rr,yu,og,Vu,sg,Bu,ug,$o,La,Pr,ka,Ra,Xo,ki]}),n})();function Fz(n,t){1&n&&(D(0,"mat-error"),F(1," Username is required "),S())}function Pz(n,t){if(1&n&&(D(0,"mat-error"),F(1),S()),2&n){const e=Me();T(1),Nn(" Username must be at least ",null==e.usernameControl.errors?null:e.usernameControl.errors.minlength.requiredLength," characters ")}}function Nz(n,t){1&n&&(D(0,"mat-error"),F(1," Password is required "),S())}function Lz(n,t){if(1&n&&(D(0,"mat-error"),F(1),S()),2&n){const e=Me();T(1),Nn(" Password must be at least ",null==e.passwordControl.errors?null:e.passwordControl.errors.minlength.requiredLength," characters ")}}function Vz(n,t){1&n&&(D(0,"mat-error"),F(1," Password confirmation is required "),S())}function Bz(n,t){1&n&&(D(0,"mat-error"),F(1," Passwords do not correspond "),S())}let Hz=(()=>{class n{constructor(e,i,r){this.userService=e,this.router=i,this.snackbar=r,this.showPassword=!1,this.usernameControl=new bn("",[Pt.required,Pt.minLength(4)]),this.passwordControl=new bn("",[Pt.required,Pt.minLength(6)]),this.passwordCheckControl=new bn("",[Pt.required,this.checkPasswords.bind(this)]),this.form=new Zo([this.usernameControl,this.passwordControl,this.passwordCheckControl])}ngOnInit(){}signUp(){this.userService.signUp(this.usernameControl.value,this.passwordControl.value).pipe(this.snackbar.infoSnack("Signed up successfully",e=>500==e.status?"User is already registered":`Unknown error: ${e.status}`)).subscribe({next:()=>this.router.navigate(["/store"])})}checkPasswords(e){let i=this.passwordControl?.value,r=this.passwordCheckControl?.value;return i===r?null:{notSame:!0}}}return n.\u0275fac=function(e){return new(e||n)(m(Tu),m(rt),m(Lu))},n.\u0275cmp=ke({type:n,selectors:[["app-signup-view"]],decls:30,vars:15,consts:[[1,"h-full","flex","flex-col","place-content-center","px-2","pb-8"],[1,"border","rounded-md","w-full","md:w-2/3","mx-auto","mb-5","px-4","py-4"],[1,"pb-4"],[3,"formGroup"],["mat-dialog-content",""],[1,"w-full"],["matInput","","placeholder","Username",3,"formControl"],[4,"ngIf"],["matInput","","placeholder","Password",3,"formControl","type"],["matSuffix","",3,"click"],["matInput","","placeholder","Confirm password",3,"formControl","type"],[1,"flex","flex-row","place-content-evenly","pt-4"],["mat-flat-button","","color","success",3,"disabled","click"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"div",1)(2,"h1",2),F(3,"Sign Up"),S(),D(4,"form",3)(5,"div",4)(6,"mat-form-field",5),De(7,"input",6),oe(8,Fz,2,0,"mat-error",7),oe(9,Pz,2,1,"mat-error",7),S()(),D(10,"div",4)(11,"mat-form-field",5),De(12,"input",8),D(13,"button",9),te("click",function(){return i.showPassword=!i.showPassword}),D(14,"mat-icon"),F(15),S()(),oe(16,Nz,2,0,"mat-error",7),oe(17,Lz,2,1,"mat-error",7),S()(),D(18,"div",4)(19,"mat-form-field",5),De(20,"input",10),D(21,"button",9),te("click",function(){return i.showPassword=!i.showPassword}),D(22,"mat-icon"),F(23),S()(),oe(24,Vz,2,0,"mat-error",7),oe(25,Bz,2,0,"mat-error",7),S()(),D(26,"div",11)(27,"span")(28,"button",12),te("click",function(o){return o.preventDefault(),i.signUp()}),F(29," Sign up "),S()()()()()()),2&e&&(T(4),O("formGroup",i.form),T(3),O("formControl",i.usernameControl),T(1),O("ngIf",(null==i.usernameControl?null:i.usernameControl.invalid)&&(null==i.usernameControl.errors?null:i.usernameControl.errors.required)),T(1),O("ngIf",(null==i.usernameControl?null:i.usernameControl.invalid)&&(null==i.usernameControl.errors?null:i.usernameControl.errors.minlength)),T(3),O("formControl",i.passwordControl)("type",i.showPassword?"text":"password"),T(3),Mt(i.showPassword?"visibility_off":"visibility"),T(1),O("ngIf",(null==i.passwordControl?null:i.passwordControl.invalid)&&(null==i.passwordControl.errors?null:i.passwordControl.errors.required)),T(1),O("ngIf",(null==i.passwordControl?null:i.passwordControl.invalid)&&(null==i.passwordControl.errors?null:i.passwordControl.errors.minlength)),T(3),O("formControl",i.passwordCheckControl)("type",i.showPassword?"text":"password"),T(3),Mt(i.showPassword?"visibility_off":"visibility"),T(1),O("ngIf",(null==i.passwordCheckControl?null:i.passwordCheckControl.invalid)&&(null==i.passwordCheckControl.errors?null:i.passwordCheckControl.errors.required)),T(1),O("ngIf",(null==i.passwordCheckControl?null:i.passwordCheckControl.invalid)&&(null==i.passwordCheckControl.errors?null:i.passwordCheckControl.errors.notSame)),T(3),O("disabled",i.form.invalid))},dependencies:[Ei,Rr,yu,og,Vu,sg,Bu,ug,La,Pr,ka,Ra,Xo,ki]}),n})(),YS=(()=>{class n{constructor(e){this.http=e}getList(e){let i=(new ii).appendAll(e);return this.http.get("/lists",{params:i}).pipe(je(1))}getById(e){let i=(new ii).set("id",e);return this.http.get("/exploit",{params:i}).pipe(je(1))}create(e){return this.http.post("/exploit",e).pipe(je(1))}}return n.\u0275fac=function(e){return new(e||n)(_(Ia))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class KS{constructor(t=!1,e,i=!0,r){this._multiple=t,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new L,e&&e.length&&(t?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...t){this._verifyValueAssignment(t),t.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...t){this._verifyValueAssignment(t);const e=this.selected,i=new Set(t);t.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(o)).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();const e=this._hasQueuedChanges();return t&&this._emitChangeEvent(),e}isSelected(t){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,t))return!0;return!1}return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}const jz=["trigger"],Uz=["panel"];function $z(n,t){if(1&n&&(D(0,"span",8),F(1),S()),2&n){const e=Me();T(1),Mt(e.placeholder)}}function zz(n,t){if(1&n&&(D(0,"span",12),F(1),S()),2&n){const e=Me(2);T(1),Mt(e.triggerValue)}}function Gz(n,t){1&n&&ct(0,0,["*ngSwitchCase","true"])}function Wz(n,t){1&n&&(D(0,"span",9),oe(1,zz,2,1,"span",10),oe(2,Gz,1,0,"ng-content",11),S()),2&n&&(O("ngSwitch",!!Me().customTrigger),T(2),O("ngSwitchCase",!0))}function qz(n,t){if(1&n){const e=br();D(0,"div",13)(1,"div",14,15),te("@transformPanel.done",function(r){return Vi(e),Bi(Me()._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){return Vi(e),Bi(Me()._handleKeydown(r))}),ct(3,1),S()()}if(2&n){const e=Me();O("@transformPanelWrap",void 0),T(1),zb("mat-select-panel ",e._getPanelTheme(),""),Kl("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),O("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Fe("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const Yz=[[["mat-select-trigger"]],"*"],Kz=["mat-select-trigger","*"],ZS={transformPanelWrap:tr("transformPanelWrap",[en("* => void",tg("@transformPanel",[eg()],{optional:!0}))]),transformPanel:tr("transformPanel",[wn("void",Le({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),wn("showing",Le({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),wn("showing-multiple",Le({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),en("void => *",Cn("120ms cubic-bezier(0, 0, 0.2, 1)")),en("* => void",Cn("100ms 25ms linear",Le({opacity:0})))])};let QS=0;const JS=new M("mat-select-scroll-strategy"),Jz=new M("MAT_SELECT_CONFIG"),e3={provide:JS,deps:[Jt],useFactory:function Xz(n){return()=>n.scrollStrategies.reposition()}};class t3{constructor(t,e){this.source=t,this.value=e}}const n3=gm(IE(TE(_m(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r,this.stateChanges=new L}})))),r3=new M("MatSelectTrigger");let o3=(()=>{class n extends n3{constructor(e,i,r,o,s,a,l,c,u,d,h,f,p,g){super(s,o,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=p,this._defaultOptions=g,this._panelOpen=!1,this._compareWith=(y,v)=>y===v,this._uid="mat-select-"+QS++,this._triggerAriaLabelledBy=null,this._destroy=new L,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+QS++,this._panelDoneAnimatingStream=new L,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=sa(()=>{const y=this.options;return y?y.changes.pipe(Jn(y),yn(()=>Sn(...y.map(v=>v.onSelectionChange)))):this._ngZone.onStable.pipe(je(1),yn(()=>this.optionSelectionChanges))}),this.openedChange=new ee,this._openedStream=this.openedChange.pipe(gt(y=>y),$(()=>{})),this._closedStream=this.openedChange.pipe(gt(y=>!y),$(()=>{})),this.selectionChange=new ee,this.valueChange=new ee,this.ngControl&&(this.ngControl.valueAccessor=this),null!=g?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=g.typeaheadDebounceInterval),this._scrollStrategyFactory=f,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Pt.required)??!1}set required(e){this._required=Ee(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ee(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ee(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=wa(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new KS(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(aE(),Ne(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ne(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Jn(null),Ne(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!ni(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||ni(e))if(!s&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(je(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new wH(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ne(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ne(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Sn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ne(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Sn(...this.options.map(i=>i._stateChanges)).pipe(Ne(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(m(Qm),m(Xt),m(Q),m(Sa),m(ce),m(Xi,8),m(Qo,8),m(ki,8),m(ag,8),m(jn,10),hi("tabindex"),m(JS),m(pm),m(Jz,8))},n.\u0275dir=I({type:n,viewQuery:function(e,i){if(1&e&&(Ln(jz,5),Ln(Uz,5),Ln(MS,5)),2&e){let r;ve(r=be())&&(i.trigger=r.first),ve(r=be())&&(i.panel=r.first),ve(r=be())&&(i._overlayDir=r.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[G,Ct]}),n})(),s3=(()=>{class n extends o3{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,r){const o=this._getItemHeight();return Math.min(Math.max(0,o*e-i+o/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Ne(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(je(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=BE(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function sj(n,t,e,i){return n<e?n:n+t>e+i?Math.max(0,n-i+t):e}((e+i)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new t3(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),o=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}r||(s*=-1);const a=0-(e.left+s-(r?o:0)),l=e.right+s-i.width+(r?0:o);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const o=this._getItemHeight(),s=(o-this._triggerRect.height)/2,a=Math.floor(256/o);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*o:this._scrollTop===r?(e-(this._getItemCount()-a))*o+(o-(this._getItemCount()*o-256)%o):i-o/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,s=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>o?this._adjustPanelDown(a,o,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const o=Math.round(e-i);if(this._scrollTop+=o,this._offsetY+=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),s=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=BE(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=mt(n)))(i||n)}}(),n.\u0275cmp=ke({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(tt(r,r3,5),tt(r,VE,5),tt(r,LE,5)),2&e){let o;ve(o=be())&&(i.customTrigger=o.first),ve(o=be())&&(i.options=o),ve(o=be())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&te("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(Fe("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),et("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[fe([{provide:za,useExisting:n},{provide:NE,useExisting:n}]),G],ngContentSelectors:Kz,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(bi(Yz),D(0,"div",0,1),te("click",function(){return i.toggle()}),D(3,"div",2),oe(4,$z,2,1,"span",3),oe(5,Wz,3,2,"span",4),S(),D(6,"div",5),De(7,"div",6),S()(),oe(8,qz,4,14,"ng-template",7),te("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=uf(1);Fe("aria-owns",i.panelOpen?i.id+"-panel":null),T(3),O("ngSwitch",i.empty),Fe("id",i._valueId),T(1),O("ngSwitchCase",!0),T(1),O("ngSwitchCase",!1),T(3),O("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[sp,na,lp,dD,MS,DS],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[ZS.transformPanelWrap,ZS.transformPanel]},changeDetection:0}),n})(),eA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[e3],imports:[Si,ts,HE,Ce,Ba,Ga,HE,Ce]}),n})();function a3(n,t){1&n&&(D(0,"mat-error"),F(1," Name is required "),S())}function l3(n,t){1&n&&(D(0,"mat-error"),F(1," Content is required "),S())}let c3=(()=>{class n{constructor(e,i,r){this.exploitService=e,this.snackbar=i,this.dialogRef=r,this.nameControl=new bn("",[Pt.required]),this.contentControl=new bn("",[Pt.required]),this.publicControl=new bn(null,[Pt.required]),this.form=new Zo([this.nameControl,this.contentControl,this.publicControl])}ngOnInit(){}submit(){this.exploitService.create({title:this.nameControl.value,content:this.contentControl.value,pub:this.publicControl.value}).pipe(this.snackbar.infoSnack("Exploit added successfully")).subscribe({next:()=>this.dialogRef.close()})}}return n.\u0275fac=function(e){return new(e||n)(m(YS),m(Lu),m($S))},n.\u0275cmp=ke({type:n,selectors:[["app-add-exploit-dialog"]],decls:21,vars:10,consts:[[1,"pb-4"],[1,"",3,"formGroup"],["mat-dialog-content",""],[1,"w-full","mt-auto"],["matInput","","placeholder","Exploit name",3,"formControl"],[4,"ngIf"],[1,"w-full"],["matInput","","placeholder","Exploit content","rows","3",3,"formControl"],["placeholder","Public or Private?",3,"formControl","value"],[3,"value"],[1,"flex","flex-row","place-content-evenly","pt-4"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,i){1&e&&(D(0,"h1",0),F(1,"Add a new exploit"),S(),D(2,"form",1)(3,"div",2)(4,"mat-form-field",3),De(5,"input",4),oe(6,a3,2,0,"mat-error",5),S()(),D(7,"div",2)(8,"mat-form-field",6),De(9,"textarea",7),oe(10,l3,2,0,"mat-error",5),S()(),D(11,"div",2)(12,"mat-form-field",6)(13,"mat-select",8)(14,"mat-option",9),F(15,"Public"),S(),D(16,"mat-option",9),F(17,"Private"),S()()()(),D(18,"div",10)(19,"button",11),te("click",function(o){return o.preventDefault(),i.submit()}),F(20," Submit "),S()()()),2&e&&(T(2),O("formGroup",i.form),T(3),O("formControl",i.nameControl),T(1),O("ngIf",(null==i.nameControl?null:i.nameControl.invalid)&&(null==i.nameControl.errors?null:i.nameControl.errors.required)),T(3),O("formControl",i.contentControl),T(1),O("ngIf",(null==i.contentControl?null:i.contentControl.invalid)&&(null==i.contentControl.errors?null:i.contentControl.errors.required)),T(3),O("formControl",i.publicControl)("value",null),T(1),O("value",!0),T(2),O("value",!1),T(3),O("disabled",i.form.invalid))},dependencies:[Ei,Rr,og,Vu,Bu,ug,s3,VE,La,Pr,ka,Ra,Xo,ki]}),n})();const u3=["tooltip"],tA="tooltip-panel",nA=Wo({passive:!0}),iA=new M("mat-tooltip-scroll-strategy"),p3={provide:iA,deps:[Jt],useFactory:function f3(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},m3=new M("mat-tooltip-default-options",{providedIn:"root",factory:function g3(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let _3=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,f){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new L,this._scrollStrategy=u,this._document=f,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(Ne(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Ee(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=wa(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=wa(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ne(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,nA)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const i=this._createOverlay();this._detach(),this._portal=this._portal||new es(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=i.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Ne(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(Ne(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:i,panelClass:`${this._cssClassPrefix}-${tA}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ne(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ne(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ne(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!ni(r)&&(r.preventDefault(),r.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(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset({...r.main,...o.main}),this._addOffset({...r.fallback,...o.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!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&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(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 e=!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&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(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(),this._ngZone.onMicrotaskEmpty.pipe(je(1),Ne(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;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}-${tA}-`;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",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.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=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,nA)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){go()},n.\u0275dir=I({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),y3=(()=>{class n extends _3{constructor(e,i,r,o,s,a,l,c,u,d,h,f){super(e,i,r,o,s,a,l,c,u,d,h,f),this._tooltipComponent=b3}}return n.\u0275fac=function(e){return new(e||n)(m(Jt),m(ce),m(hS),m(jt),m(Q),m(ht),m(CH),m(Da),m(iA),m(Xi,8),m(m3,8),m(W))},n.\u0275dir=I({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[G]}),n})(),v3=(()=>{class n{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new L,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(m(Xt),m(pn,8))},n.\u0275dir=I({type:n}),n})(),b3=(()=>{class n extends v3{constructor(e,i,r){super(e,r),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(m(Xt),m(lu),m(pn,8))},n.\u0275cmp=ke({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&Ln(u3,7),2&e){let r;ve(r=be())&&(i._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&te("mouseleave",function(o){return i._handleMouseLeave(o)}),2&e&&Kl("zoom",i.isVisible()?1:null)},features:[G],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(D(0,"div",0,1),te("animationend",function(o){return i._handleAnimationEnd(o)}),ko(2,"async"),F(3),S()),2&e){let r;et("mat-tooltip-handset",null==(r=ic(2,4,i._isHandset))?null:r.matches),O("ngClass",i.tooltipClass),T(3),Mt(i.message)}},dependencies:[sp,cp],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),n})(),rA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[p3],imports:[EE,Si,ts,Ce,Ce,Ba]}),n})();const C3=["*"],oA=new M("MatChipRemove"),sA=new M("MatChipAvatar"),aA=new M("MatChipTrailingIcon");class w3{constructor(t){this._elementRef=t}}const D3=IE(Ea(gm(w3),"primary"),-1);let $u=(()=>{class n extends D3{constructor(e,i,r,o,s,a,l,c){super(e),this._ngZone=i,this._changeDetectorRef=s,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new L,this._onBlur=new L,this.selectionChange=new ee,this.destroyed=new ee,this.removed=new ee,this._addHostClassName(),this._chipRippleTarget=a.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new FE(this,i,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=o||{},this._animationsDisabled="NoopAnimations"===l,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const i=Ee(e);i!==this._selected&&(this._selected=i,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=Ee(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=Ee(e)}get removable(){return this._removable}set removable(e){this._removable=Ee(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",i=this._elementRef.nativeElement;i.hasAttribute(e)||i.tagName.toLowerCase()===e?i.classList.add(e):i.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(je(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return n.\u0275fac=function(e){return new(e||n)(m(ce),m(Q),m(ht),m(PE,8),m(Xt),m(W),m(pn,8),hi("tabindex"))},n.\u0275dir=I({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,i,r){if(1&e&&(tt(r,sA,5),tt(r,aA,5),tt(r,oA,5)),2&e){let o;ve(o=be())&&(i.avatar=o.first),ve(o=be())&&(i.trailingIcon=o.first),ve(o=be())&&(i.removeIcon=o.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&te("click",function(o){return i._handleClick(o)})("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i.focus()})("blur",function(){return i._blur()}),2&e&&(Fe("tabindex",i.disabled?null:i.tabIndex)("role",i.role)("disabled",i.disabled||null)("aria-disabled",i.disabled.toString())("aria-selected",i.ariaSelected),et("mat-chip-selected",i.selected)("mat-chip-with-avatar",i.avatar)("mat-chip-with-trailing-icon",i.trailingIcon||i.removeIcon)("mat-chip-disabled",i.disabled)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[G]}),n})();const lA=new M("mat-chips-default-options"),A3=_m(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new L}});let T3=0;class I3{constructor(t,e){this.source=t,this.value=e}}let cA=(()=>{class n extends A3{constructor(e,i,r,o,s,a,l){super(a,o,s,l),this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new L,this._uid="mat-chip-list-"+T3++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(c,u)=>c===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new ee,this.valueChange=new ee,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=Ee(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Pt.required)??!1}set required(e){this._required=Ee(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ee(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=Ee(e),this._syncChipsState()}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return Sn(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return Sn(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return Sn(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return Sn(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new DH(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Ne(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Ne(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Jn(null),Ne(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new KS(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const i=e.target;i&&i.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&e<this.chips.length}_setSelectionByValue(e,i=!0){if(this._clearSelection(),this.chips.forEach(r=>r.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,i)),this._sortValues();else{const r=this._selectValue(e,i);r&&i&&this._keyManager.setActiveItem(r)}}_selectValue(e,i=!0){const r=this.chips.find(o=>null!=o.value&&this._compareWith(o.value,e));return r&&(i?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(i=>{i!==e&&i.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let i=null;i=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.change.emit(new I3(this,i)),this.valueChange.emit(i),this._onChange(i),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(i=>{!this._selectionModel.isSelected(i)&&i.selected&&i.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&this._keyManager.updateActiveItem(i),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const i=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&i._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-chip"))return!0;i=i.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple,e.chipListSelectable=this._selectable})}}return n.\u0275fac=function(e){return new(e||n)(m(ce),m(Xt),m(Xi,8),m(Qo,8),m(ki,8),m(Sa),m(jn,10))},n.\u0275cmp=ke({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,i,r){if(1&e&&tt(r,$u,5),2&e){let o;ve(o=be())&&(i.chips=o)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,i){1&e&&te("focus",function(){return i.focus()})("blur",function(){return i._blur()})("keydown",function(o){return i._keydown(o)}),2&e&&(Cr("id",i._uid),Fe("tabindex",i.disabled?null:i._tabIndex)("aria-required",i.role?i.required:null)("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-multiselectable",i.multiple)("role",i.role)("aria-orientation",i.ariaOrientation),et("mat-chip-list-disabled",i.disabled)("mat-chip-list-invalid",i.errorState)("mat-chip-list-required",i.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[fe([{provide:za,useExisting:n}]),G],ngContentSelectors:C3,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,i){1&e&&(bi(),D(0,"div",0),ct(1),S())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),n})(),uA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[Sa,{provide:lA,useValue:{separatorKeyCodes:[13]}}],imports:[Ce]}),n})();function R3(n,t){if(1&n){const e=br();D(0,"div",15)(1,"mat-card",16),te("click",function(){const o=Vi(e).$implicit;return Bi(Me(2).openExploitDialog(o.id))}),D(2,"mat-card-title"),F(3),S(),D(4,"mat-card-footer",17)(5,"mat-icon"),F(6),S(),F(7),ko(8,"date"),S()()()}if(2&n){const e=t.$implicit,i=Me(2);T(3),Mt(e.title),T(3),Mt(e.pub?"lock_open":"lock"),T(1),Nn(" ",Df(8,3,i.getDate(e.created_at),"short")," ")}}function O3(n,t){if(1&n&&(D(0,"div")(1,"div",13),oe(2,R3,9,6,"div",14),ko(3,"async"),S()()),2&n){const e=Me();T(2),O("ngForOf",ic(3,1,e.exploits$))}}function F3(n,t){1&n&&(D(0,"h2"),F(1,"No exploits to show... For now"),S())}let P3=(()=>{class n{constructor(e,i,r,o,s,a){this.exploitService=e,this.userService=i,this.dialog=r,this.route=o,this.router=s,this.snackbar=a,this.searchInput=new bn(""),this.offsetNumber=new bn(null)}ngOnInit(){let e=this.route.snapshot.queryParams;this.searchInput.setValue(e.q||""),this.offsetNumber.setValue(e[0]||0),this.update(e)}update(e){this.exploits$=this.exploitService.getList(e).pipe(this.snackbar.infoSnack())}getDate(e){return e?new Date(e):null}addExploit(){this.dialog.open(c3,{width:"75%",maxWidth:"720px"})}get loggedIn(){return this.userService.loggedIn}openExploitDialog(e){this.exploitService.getById(e).pipe(this.snackbar.infoSnack("",i=>401==i.status?"You don't have access to this exploit":`Unknown error: ${i.status}`)).subscribe(i=>this.dialog.open(N3,{width:"75%",maxWidth:"720px",data:i}))}search(){const e={q:this.searchInput.value,o:this.offsetNumber.value};this.update(e),this.router.navigate(["/store"],{queryParams:e})}}return n.\u0275fac=function(e){return new(e||n)(m(YS),m(Tu),m(WS),m(Qi),m(rt),m(Lu))},n.\u0275cmp=ke({type:n,selectors:[["app-store-view"]],decls:22,vars:9,consts:[[1,"flex"],[1,"inline"],[1,"text-blue-600"],[1,"flex-auto"],[3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",3,"disabled","click"],[1,"w-2/3","pr-3"],["matInput","","placeholder","Search content",3,"formControl"],["matSuffix","",3,"click"],[1,"w-1/3","pl-3"],["matInput","","min","0","type","number","placeholder","Offset",3,"formControl","change"],[4,"ngIf","ngIfElse"],["loading",""],[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-4","gap-4","pt-8"],["class","py-2",4,"ngFor","ngForOf"],[1,"py-2"],[1,"py-3","cursor-pointer",3,"click"],[1,"text-right","pr-3","pb-3","text-slate-400"]],template:function(e,i){if(1&e&&(D(0,"div",0)(1,"h1",1),F(2," Our "),D(3,"code",2),F(4,"1337"),S(),F(5," export store "),S(),De(6,"span",3),D(7,"span",4)(8,"button",5),te("click",function(){return i.addExploit()}),F(9," Add a new exploit "),S()()(),D(10,"form")(11,"mat-form-field",6),De(12,"input",7),D(13,"button",8),te("click",function(o){return o.preventDefault(),i.search()}),D(14,"mat-icon"),F(15,"search"),S()()(),D(16,"mat-form-field",9)(17,"input",10),te("change",function(){return i.search()}),S()()(),oe(18,O3,4,3,"div",11),ko(19,"async"),oe(20,F3,2,0,"ng-template",null,12,ZC)),2&e){const r=uf(21);let o;T(7),O("matTooltip",i.loggedIn?"":"You need to be logged in to do that")("matTooltipDisabled",!1),T(1),O("disabled",!i.loggedIn),T(4),O("formControl",i.searchInput),T(5),O("formControl",i.offsetNumber),T(1),O("ngIf",(null==(o=ic(19,7,i.exploits$))?null:o.length)>0)("ngIfElse",r)}},dependencies:[lD,Ei,Rr,yu,o0,r0,Hj,Vu,sg,Bu,y3,La,Pr,jm,ka,Ra,qm,Xo,cp,up]}),n})(),N3=(()=>{class n{constructor(e){this.exploit=e}getDate(e){return e?new Date(e):null}}return n.\u0275fac=function(e){return new(e||n)(m(zS))},n.\u0275cmp=ke({type:n,selectors:[["ng-component"]],decls:14,vars:7,consts:[[1,"dialog-header","flex"],[1,"inline"],[1,"flex-1"],[1,"pb-2","border-b"],[1,"pt-4"]],template:function(e,i){1&e&&(D(0,"div")(1,"div",0)(2,"h3",1),F(3),S(),De(4,"span",2),D(5,"mat-chip-list")(6,"mat-chip"),F(7),S()()(),D(8,"div",3),F(9),ko(10,"date"),S(),D(11,"div",4)(12,"p"),F(13),S()()()),2&e&&(T(3),Mt(i.exploit.title),T(4),Nn(" ",i.exploit.pub?"Public":"Private"," "),T(2),Nn(" Created on ",Df(10,4,i.getDate(i.exploit.created_at),"medium")," "),T(4),Mt(i.exploit.content))},dependencies:[cA,$u,up]}),n})();const L3=[{path:"store",component:P3},{path:"signup",component:Hz},{path:"login",component:Oz},{path:"home",component:jj},{path:"**",redirectTo:"home"}];let V3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[tu.forRoot(L3),tu]}),n})();const B3=["*",[["mat-toolbar-row"]]],H3=["*","mat-toolbar-row"],j3=Ea(class{constructor(n){this._elementRef=n}});let U3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=I({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),$3=(()=>{class n extends j3{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(m(ce),m(ht),m(W))},n.\u0275cmp=ke({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&tt(r,U3,5),2&e){let o;ve(o=be())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&et("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[G],ngContentSelectors:H3,decls:2,vars:0,template:function(e,i){1&e&&(bi(B3),ct(0),ct(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.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}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),dA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[Ce,Ce]}),n})();function z3(n,t){1&n&&(D(0,"button",5),F(1," Login "),S())}function G3(n,t){if(1&n){const e=br();D(0,"button",6),te("click",function(){return Vi(e),Bi(Me().logout())}),F(1," Logout "),S()}}let W3=(()=>{class n{constructor(e){this.userService=e}ngOnInit(){}get loggedIn(){return this.userService.loggedIn}logout(){this.userService.logout()}}return n.\u0275fac=function(e){return new(e||n)(m(Tu))},n.\u0275cmp=ke({type:n,selectors:[["app-navbar"]],decls:12,vars:2,consts:[[1,"spacer"],["mat-button","","color","accent","routerLink","/home"],["mat-button","","color","accent","routerLink","/store"],["mat-button","","color","accent","routerLink","/login",4,"ngIf"],["mat-button","","color","warn",3,"click",4,"ngIf"],["mat-button","","color","accent","routerLink","/login"],["mat-button","","color","warn",3,"click"]],template:function(e,i){1&e&&(D(0,"mat-toolbar")(1,"span")(2,"code"),F(3,">_"),S(),F(4," OTX 0day Marketplace"),S(),De(5,"span",0),D(6,"button",1),F(7,"Home"),S(),D(8,"button",2),F(9,"Store"),S(),oe(10,z3,2,0,"button",3),oe(11,G3,2,0,"button",4),S()),2&e&&(T(10),O("ngIf",!i.loggedIn),T(1),O("ngIf",i.loggedIn))},dependencies:[Ei,Rr,$3,$o],styles:[".spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-toolbar[_ngcontent-%COMP%]{background-color:transparent!important}"]}),n})(),q3=(()=>{class n{constructor(){this.title="frontend"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ke({type:n,selectors:[["app-root"]],decls:5,vars:0,consts:[[1,"px-5","md:px-[10%]","pt-1","h-screen","flex","flex-col"],["id","navbar"],[1,"flex-1"]],template:function(e,i){1&e&&(D(0,"div",0)(1,"div",1),De(2,"app-navbar"),S(),D(3,"div",2),De(4,"router-outlet"),S()())},dependencies:[Hp,W3],styles:["#navbar[_ngcontent-%COMP%]{margin-bottom:2rem}"]}),n})();function hA(n){return new C(3e3,!1)}function T8(){return typeof window<"u"&&typeof window.document<"u"}function dg(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function nr(n){switch(n.length){case 0:return new $a;case 1:return n[0];default:return new IS(n)}}function fA(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,g)=>{let y=g,v=p;if("offset"!==g)switch(y=t.normalizePropertyName(y,s),v){case"!":v=r.get(g);break;case Ri:v=o.get(g);break;default:v=t.normalizeStyleValue(g,y,v,s)}f.set(y,v)}),h||a.push(f),c=f,l=d}),s.length)throw function g8(n){return new C(3502,!1)}();return a}function hg(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&fg(e,"start",n)));break;case"done":n.onDone(()=>i(e&&fg(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&fg(e,"destroy",n)))}}function fg(n,t,e){const o=pg(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function pg(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function tn(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function pA(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let mg=(n,t)=>!1,mA=(n,t,e)=>[],gA=null;function gg(n){const t=n.parentNode||n.host;return t===gA?null:t}(dg()||typeof Element<"u")&&(T8()?(gA=(()=>document.documentElement)(),mg=(n,t)=>{for(;t;){if(t===n)return!0;t=gg(t)}return!1}):mg=(n,t)=>n.contains(t),mA=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Vr=null,_A=!1;const yA=mg,vA=mA;let bA=(()=>{class n{validateStyleProperty(e){return function x8(n){Vr||(Vr=function k8(){return typeof document<"u"?document.body:null}()||{},_A=!!Vr.style&&"WebkitAppearance"in Vr.style);let t=!0;return Vr.style&&!function I8(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Vr.style,!t&&_A&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Vr.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return yA(e,i)}getParentElement(e){return gg(e)}query(e,i,r){return vA(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new $a(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),_g=(()=>{class n{}return n.NOOP=new bA,n})();const yg="ng-enter",zu="ng-leave",Gu="ng-trigger",Wu=".ng-trigger",wA="ng-animating",vg=".ng-animating";function Oi(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:bg(parseFloat(t[1]),t[2])}function bg(n,t){return"s"===t?1e3*n:n}function qu(n,t,e){return n.hasOwnProperty("duration")?n:function F8(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(hA()),{duration:0,delay:0,easing:""};r=bg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=bg(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function Y3(){return new C(3100,!1)}()),a=!0),o<0&&(t.push(function K3(){return new C(3101,!1)}()),a=!0),a&&t.splice(l,0,hA())}return{duration:r,delay:o,easing:s}}(n,t,e)}function qa(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function DA(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function ir(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function EA(n,t,e){return e?t+":"+e+";":""}function SA(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=EA(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=EA(0,V8(e),n.style[e]));n.setAttribute("style",t)}function oi(n,t,e){n.style&&(t.forEach((i,r)=>{const o=wg(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),dg()&&SA(n))}function Br(n,t){n.style&&(t.forEach((e,i)=>{const r=wg(i);n.style[r]=""}),dg()&&SA(n))}function Ya(n){return Array.isArray(n)?1==n.length?n[0]:AS(n):n}const Cg=new RegExp("{{\\s*(.+?)\\s*}}","g");function AA(n){let t=[];if("string"==typeof n){let e;for(;e=Cg.exec(n);)t.push(e[1]);Cg.lastIndex=0}return t}function Ka(n,t,e){const i=n.toString(),r=i.replace(Cg,(o,s)=>{let a=t[s];return null==a&&(e.push(function Q3(n){return new C(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Yu(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const L8=/-+([a-z0-9])/g;function wg(n){return n.replace(L8,(...t)=>t[1].toUpperCase())}function V8(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function nn(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function X3(n){return new C(3004,!1)}()}}function TA(n,t){return window.getComputedStyle(n)[t]}function z8(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function G8(n,t,e){if(":"==n[0]){const l=function W8(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(function h8(n){return new C(3016,!1)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function d8(n){return new C(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(IA(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(IA(s,r))}(i,e,t)):e.push(n),e}const Xu=new Set(["true","1"]),Ju=new Set(["false","0"]);function IA(n,t){const e=Xu.has(n)||Ju.has(n),i=Xu.has(t)||Ju.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?Xu.has(n):Ju.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Xu.has(t):Ju.has(t)),s&&a}}const q8=new RegExp("s*:selfs*,?","g");function Dg(n,t,e,i){return new Y8(n).build(t,e,i)}class Y8{constructor(t){this._driver=t}build(t,e,i){const r=new Q8(e);return this._resetContextStyleTimingState(r),nn(this,Ya(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function e8(){return new C(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function t8(){return new C(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{AA(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Yu(o.values()),e.errors.push(function n8(n,t){return new C(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=nn(this,Ya(t.animation),e);return{type:1,matchers:z8(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Hr(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>nn(this,i,e)),options:Hr(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=nn(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Hr(t.options)}}visitAnimate(t,e){const i=function J8(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Mg(qu(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Mg(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=qu(e,t);return Mg(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:Le({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Le(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Ri?i.push(a):e.errors.push(new C(3002,!1)):i.push(DA(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:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function r8(n,t,e,i,r){return new C(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function N8(n,t,e){const i=t.params||{},r=AA(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function Z3(n){return new C(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function o8(){return new C(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(v=>{const E=this._makeStyleAst(v,e);let b=null!=E.offset?E.offset:function X8(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(E.styles),x=0;return null!=b&&(o++,x=E.offset=b),l=l||x<0||x>1,a=a||x<c,c=x,s.push(x),E});l&&e.errors.push(function s8(){return new C(3012,!1)}()),a&&e.errors.push(function a8(){return new C(3200,!1)}());const d=t.steps.length;let h=0;o>0&&o<d?e.errors.push(function l8(){return new C(3202,!1)}()):0==o&&(h=1/(d-1));const f=d-1,p=e.currentTime,g=e.currentAnimateTimings,y=g.duration;return u.forEach((v,E)=>{const b=h>0?E==f?1:h*E:s[E],x=b*y;e.currentTime=p+g.delay+x,g.duration=x,this._validateStyleAst(v,e),v.offset=b,i.styles.push(v)}),i}visitReference(t,e){return{type:8,animation:nn(this,Ya(t.animation),e),options:Hr(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Hr(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Hr(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function K8(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(q8,"")),n=n.replace(/@\*/g,Wu).replace(/@\w+/g,e=>Wu+"-"+e.slice(1)).replace(/:animating/g,vg),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,tn(e.collectedStyles,e.currentQuerySelector,new Map);const a=nn(this,Ya(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Hr(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function c8(){return new C(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:qu(t.timings,e.errors,!0);return{type:12,animation:nn(this,Ya(t.animation),e),timings:i,options:null}}}class Q8{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Hr(n){return n?(n=qa(n)).params&&(n.params=function Z8(n){return n?qa(n):null}(n.params)):n={},n}function Mg(n,t,e){return{duration:n,delay:t,easing:e}}function Eg(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class ed{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const nG=new RegExp(":enter","g"),rG=new RegExp(":leave","g");function Sg(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new oG).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class oG{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new ed;const d=new Ag(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?Oi(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),nn(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let g=f.length-1;g>=0;g--){const y=f[g];if(y.element===e){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[Eg(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const r of t){const o=r?.delay;if(o){const s="number"==typeof o?o:Oi(Ka(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Oi(i.duration):null,a=null!=i.delay?Oi(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),nn(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=td);const s=Oi(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>nn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?Oi(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),nn(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return qu(e.params?Ka(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?Oi(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=td);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),nn(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;nn(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const td={};class Ag{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=td,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new nd(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Oi(i.duration)),null!=i.delay&&(r.delay=Oi(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Ka(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new Ag(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(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=td,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new sG(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(nG,"."+this._enterClassName)).replace(rG,"."+this._leaveClassName);let c=this._driver.query(this.element,t,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 u8(n){return new C(3014,!1)}()),a}}class nd{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new nd(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ri),this._currentKeyframe.set(e,Ri);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function aG(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Ri)}else ir(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=Ka(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ri),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=ir(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Ri&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?Yu(t.values()):[],s=e.size?Yu(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Eg(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class sG extends nd{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=ir(t[0]);l.set("offset",0),o.push(l);const c=ir(t[0]);c.set("offset",RA(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=ir(t[d]);const f=h.get("offset");h.set("offset",RA((e+f*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return Eg(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function RA(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class Tg{}const lG=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 cG extends Tg{normalizePropertyName(t,e){return wg(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(lG.has(e)&&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 J3(n,t){return new C(3005,!1)}())}return s+o}}function OA(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Ig={};class FA{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function uG(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Ig,p=this.buildStyles(i,a&&a.params||Ig,d),g=l&&l.params||Ig,y=this.buildStyles(r,g,d),v=new Set,E=new Map,b=new Map,x="void"===r,ie={params:dG(g,h),delay:this.ast.options?.delay},ue=u?[]:Sg(t,e,this.ast.animation,o,s,p,y,ie,c,d);let ze=0;if(ue.forEach(on=>{ze=Math.max(on.duration+on.delay,ze)}),d.length)return OA(e,this._triggerName,i,r,x,p,y,[],[],E,b,ze,d);ue.forEach(on=>{const sn=on.element,os=tn(E,sn,new Set);on.preStyleProps.forEach(Un=>os.add(Un));const Fi=tn(b,sn,new Set);on.postStyleProps.forEach(Un=>Fi.add(Un)),sn!==e&&v.add(sn)});const rn=Yu(v.values());return OA(e,this._triggerName,i,r,x,p,y,ue,rn,E,b,ze)}}function dG(n,t){const e=qa(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class hG{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=qa(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Ka(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class pG{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new hG(r.style,r.options&&r.options.params||{},i))}),PA(this.states,"true","1"),PA(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new FA(t,r,this.states))}),this.fallbackTransition=function mG(n,t,e){return new FA(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function PA(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const gG=new ed;class _G{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=Dg(this._driver,e,i,[]);if(i.length)throw function _8(n){return new C(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=fA(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=Sg(this._driver,e,o,yg,zu,new Map,new Map,i,gG,r),s.forEach(u=>{const d=tn(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function y8(){return new C(3300,!1)}()),s=[]),r.length)throw function v8(n){return new C(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Ri))})});const c=nr(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function b8(n){return new C(3301,!1)}();return e}listen(t,e,i,r){const o=pg(e,"","","");return hg(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);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(t)}}}const NA="ng-animate-queued",xg="ng-animate-disabled",wG=[],LA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},DG={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Dn="__ng_removed";class kg{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function AG(n){return n??null}(i?t.value:t),i){const o=qa(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Za="void",Rg=new kg(Za);class MG{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Mn(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function C8(n,t){return new C(3302,!1)}();if(null==i||0==i.length)throw function w8(n){return new C(3303,!1)}();if(!function TG(n){return"start"==n||"done"==n}(i))throw function D8(n,t){return new C(3400,!1)}();const o=tn(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=tn(this._engine.statesByElement,t,new Map);return a.has(e)||(Mn(t,Gu),Mn(t,Gu+"-"+e),a.set(e,Rg)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function M8(n){return new C(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new Og(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Mn(t,Gu),Mn(t,Gu+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new kg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Rg),c.value!==Za&&l.value===c.value){if(!function kG(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const o=e[r];if(!t.hasOwnProperty(o)||n[o]!==t[o])return!1}return!0}(l.params,c.params)){const g=[],y=o.matchStyles(l.value,l.params,g),v=o.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{Br(t,y),oi(t,v)})}return}const h=tn(this._engine.playersByElement,t,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let f=o.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Mn(t,NA),s.onStart(()=>{rs(t,NA)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(t);if(y){let v=y.indexOf(s);v>=0&&y.splice(v,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Wu,!0);i.forEach(r=>{if(r[Dn])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,Za,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&nr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.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)||Rg,u=new kg(Za),d=new Og(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[Dn];(!o||o===LA)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Mn(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];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=pg(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,hg(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.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(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class EG{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new MG(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(id(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!id(e))return;const o=e[Dn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Mn(t,xg)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),rs(t,xg))}removeNode(t,e,i,r){if(id(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[Dn]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return id(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,Wu,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,vg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return nr(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Dn];if(e&&e.setForRemoval){if(t[Dn]=LA,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(xg)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Mn(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?nr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function E8(n){return new C(3402,!1)}()}_flushAnimations(t,e){const i=new ed,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(P=>{u.add(P);const V=this.driver.query(P,".ng-animate-queued",!0);for(let U=0;U<V.length;U++)u.add(V[U])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=HA(h,this.collectedEnterElements),p=new Map;let g=0;f.forEach((P,V)=>{const U=yg+g++;p.set(V,U),P.forEach(pe=>Mn(pe,U))});const y=[],v=new Set,E=new Set;for(let P=0;P<this.collectedLeaveElements.length;P++){const V=this.collectedLeaveElements[P],U=V[Dn];U&&U.setForRemoval&&(y.push(V),v.add(V),U.hasAnimation?this.driver.query(V,".ng-star-inserted",!0).forEach(pe=>v.add(pe)):E.add(V))}const b=new Map,x=HA(h,Array.from(v));x.forEach((P,V)=>{const U=zu+g++;b.set(V,U),P.forEach(pe=>Mn(pe,U))}),t.push(()=>{f.forEach((P,V)=>{const U=p.get(V);P.forEach(pe=>rs(pe,U))}),x.forEach((P,V)=>{const U=b.get(V);P.forEach(pe=>rs(pe,U))}),y.forEach(P=>{this.processLeaveNode(P)})});const ie=[],ue=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(e).forEach(U=>{const pe=U.player,_t=U.element;if(ie.push(pe),this.collectedEnterElements.length){const At=_t[Dn];if(At&&At.setForMove){if(At.previousTriggersValues&&At.previousTriggersValues.has(U.triggerName)){const Ur=At.previousTriggersValues.get(U.triggerName),En=this.statesByElement.get(U.element);if(En&&En.has(U.triggerName)){const sd=En.get(U.triggerName);sd.value=Ur,En.set(U.triggerName,sd)}}return void pe.destroy()}}const si=!d||!this.driver.containsElement(d,_t),an=b.get(_t),rr=p.get(_t),Ge=this._buildInstruction(U,i,rr,an,si);if(Ge.errors&&Ge.errors.length)return void ue.push(Ge);if(si)return pe.onStart(()=>Br(_t,Ge.fromStyles)),pe.onDestroy(()=>oi(_t,Ge.toStyles)),void r.push(pe);if(U.isFallbackTransition)return pe.onStart(()=>Br(_t,Ge.fromStyles)),pe.onDestroy(()=>oi(_t,Ge.toStyles)),void r.push(pe);const eT=[];Ge.timelines.forEach(At=>{At.stretchStartingKeyframe=!0,this.disabledNodes.has(At.element)||eT.push(At)}),Ge.timelines=eT,i.append(_t,Ge.timelines),s.push({instruction:Ge,player:pe,element:_t}),Ge.queriedElements.forEach(At=>tn(a,At,[]).push(pe)),Ge.preStyleProps.forEach((At,Ur)=>{if(At.size){let En=l.get(Ur);En||l.set(Ur,En=new Set),At.forEach((sd,Ng)=>En.add(Ng))}}),Ge.postStyleProps.forEach((At,Ur)=>{let En=c.get(Ur);En||c.set(Ur,En=new Set),At.forEach((sd,Ng)=>En.add(Ng))})});if(ue.length){const P=[];ue.forEach(V=>{P.push(function S8(n,t){return new C(3505,!1)}())}),ie.forEach(V=>V.destroy()),this.reportError(P)}const ze=new Map,rn=new Map;s.forEach(P=>{const V=P.element;i.has(V)&&(rn.set(V,V),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,ze))}),r.forEach(P=>{const V=P.element;this._getPreviousPlayers(V,!1,P.namespaceId,P.triggerName,null).forEach(pe=>{tn(ze,V,[]).push(pe),pe.destroy()})});const on=y.filter(P=>UA(P,l,c)),sn=new Map;BA(sn,this.driver,E,c,Ri).forEach(P=>{UA(P,l,c)&&on.push(P)});const Fi=new Map;f.forEach((P,V)=>{BA(Fi,this.driver,new Set(P),l,"!")}),on.forEach(P=>{const V=sn.get(P),U=Fi.get(P);sn.set(P,new Map([...Array.from(V?.entries()??[]),...Array.from(U?.entries()??[])]))});const Un=[],ss=[],as={};s.forEach(P=>{const{element:V,player:U,instruction:pe}=P;if(i.has(V)){if(u.has(V))return U.onDestroy(()=>oi(V,pe.toStyles)),U.disabled=!0,U.overrideTotalTime(pe.totalTime),void r.push(U);let _t=as;if(rn.size>1){let an=V;const rr=[];for(;an=an.parentNode;){const Ge=rn.get(an);if(Ge){_t=Ge;break}rr.push(an)}rr.forEach(Ge=>rn.set(Ge,_t))}const si=this._buildAnimation(U.namespaceId,pe,ze,o,Fi,sn);if(U.setRealPlayer(si),_t===as)Un.push(U);else{const an=this.playersByElement.get(_t);an&&an.length&&(U.parentPlayer=nr(an)),r.push(U)}}else Br(V,pe.fromStyles),U.onDestroy(()=>oi(V,pe.toStyles)),ss.push(U),u.has(V)&&r.push(U)}),ss.forEach(P=>{const V=o.get(P.element);if(V&&V.length){const U=nr(V);P.setRealPlayer(U)}}),r.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P<y.length;P++){const V=y[P],U=V[Dn];if(rs(V,zu),U&&U.hasAnimation)continue;let pe=[];if(a.size){let si=a.get(V);si&&si.length&&pe.push(...si);let an=this.driver.query(V,vg,!0);for(let rr=0;rr<an.length;rr++){let Ge=a.get(an[rr]);Ge&&Ge.length&&pe.push(...Ge)}}const _t=pe.filter(si=>!si.destroyed);_t.length?IG(this,V,_t):this.processLeaveNode(V)}return y.length=0,Un.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();const V=this.players.indexOf(P);this.players.splice(V,1)}),P.play()}),Un}elementContainsData(t,e){let i=!1;const r=e[Dn];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==Za;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(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=tn(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Br(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const g=p.element;u.add(g);const y=g[Dn];if(y&&y.removedBeforeQueried)return new $a(p.duration,p.delay);const v=g!==l,E=function xG(n){const t=[];return jA(n,t),t}((i.get(g)||wG).map(ze=>ze.getRealPlayer())).filter(ze=>!!ze.element&&ze.element===g),b=o.get(g),x=s.get(g),ie=fA(0,this._normalizer,0,p.keyframes,b,x),ue=this._buildPlayer(p,ie,E);if(p.subTimeline&&r&&d.add(g),v){const ze=new Og(t,a,g);ze.setRealPlayer(ue),c.push(ze)}return ue});c.forEach(p=>{tn(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function SG(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Mn(p,wA));const f=nr(h);return f.onDestroy(()=>{u.forEach(p=>rs(p,wA)),oi(l,e.toStyles)}),d.forEach(p=>{tn(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new $a(t.duration,t.delay)}}class Og{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new $a,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>hg(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){tn(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function id(n){return n&&1===n.nodeType}function VA(n,t){const e=n.style.display;return n.style.display=t??"none",e}function BA(n,t,e,i,r){const o=[];e.forEach(l=>o.push(VA(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=t.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[Dn]=DG,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>VA(l,o[a++])),s}function HA(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),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=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function Mn(n,t){n.classList?.add(t)}function rs(n,t){n.classList?.remove(t)}function IG(n,t,e){nr(e).onDone(()=>n.processLeaveNode(t))}function jA(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof IS?jA(i.players,t):t.push(i)}}function UA(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(o=>r.add(o)):t.set(n,i),e.delete(n),!0}class rd{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new EG(t,e,i),this._timelineEngine=new _G(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=Dg(this._driver,o,l,[]);if(l.length)throw function m8(n,t){return new C(3404,!1)}();a=function fG(n,t,e){return new pG(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=pA(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=pA(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let OG=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&oi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(oi(this._element,this._initialStyles),this._endStyles&&(oi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Br(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Br(this._element,this._endStyles),this._endStyles=null),oi(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Fg(n){let t=null;return n.forEach((e,i)=>{(function FG(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class $A{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:TA(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class PG{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return yA(t,e)}getParentElement(t){return gg(t)}query(t,e,i){return vA(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(f=>f instanceof $A);(function B8(n,t){return 0===n||0===t})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,g)=>c.set(g,p))});let d=function P8(n){return n.length?n[0]instanceof Map?n:n.map(t=>DA(t)):[]}(e).map(f=>ir(f));d=function H8(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;o<t.length;o++){let s=t[o];r.forEach(a=>s.set(a,TA(n,a)))}}return t}(t,d,c);const h=function RG(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=Fg(t[0]),t.length>1&&(i=Fg(t[t.length-1]))):t instanceof Map&&(e=Fg(t)),e||i?new OG(n,e,i):null}(t,d);return new $A(t,d,l,h)}}let NG=(()=>{class n extends ES{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Tn.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?AS(e):e;return zA(this._renderer,null,i,"register",[r]),new LG(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(_(ks),_(W))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();class LG extends class M${}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new VG(this._id,t,e||{},this._renderer)}}class VG{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return zA(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function zA(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const GA="@.disabled";let BG=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new WA("",o,this.engine),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new HG(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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()}}return n.\u0275fac=function(e){return new(e||n)(_(ks),_(rd),_(Q))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})();class WA{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==GA?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class HG extends WA{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==GA?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function jG(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function UG(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}const qA=[{provide:ES,useClass:NG},{provide:Tg,useFactory:function zG(){return new cG}},{provide:rd,useClass:(()=>{class n extends rd{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(_(W),_(_g),_(Tg),_(Po))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})()},{provide:ks,useFactory:function GG(n,t,e){return new BG(n,t,e)},deps:[xc,rd,Q]}],Pg=[{provide:_g,useFactory:()=>new PG},{provide:pn,useValue:"BrowserAnimations"},...qA],YA=[{provide:_g,useClass:bA},{provide:pn,useValue:"NoopAnimations"},...qA];let WG=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?YA:Pg}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:Pg,imports:[PD]}),n})();const ZG={provide:new M("mat-menu-scroll-strategy"),deps:[Jt],useFactory:function KG(n){return()=>n.scrollStrategies.reposition()}};let ZA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[ZG],imports:[Si,Ce,bm,ts,Ba,Ce]}),n})(),XA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[xE,Ce,xE,Ce]}),n})(),JA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[Cm,ZA,dA,n0,s0,XA,Ga,BS,qS,eA,rA,uA,rg,Cm,ZA,dA,n0,s0,XA,Ga,BS,qS,eA,rA,uA,rg]}),n})(),JG=(()=>{class n{constructor(e){this.tokenExtractor=e}intercept(e,i){return e=e.clone({withCredentials:!0}),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(_(Tm))},n.\u0275prov=A({token:n,factory:n.\u0275fac}),n})(),e4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({providers:[{provide:Em,useClass:JG,multi:!0}],imports:[Si,JA,tu]}),n})(),t4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n}),n.\u0275inj=K({imports:[Si,JA,Ej,tu,VU]}),n})(),n4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=X({type:n,bootstrap:[q3]}),n.\u0275inj=K({imports:[PD,V3,WG,e4,t4]}),n})();(function BP(){Fw=!1})(),uV().bootstrapModule(n4).catch(n=>console.error(n))}},he=>{he(he.s=895)}]);