(self.webpackChunklot_web_ui=self.webpackChunklot_web_ui||[]).push([[179],{823:(Sd,Id,V)=>{"use strict";function De(t){return"function"==typeof t}function Le(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Or=Le(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Ge(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class ft{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;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:n}=this;if(De(n))try{n()}catch(o){i=o instanceof Or?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Pr(o)}catch(a){i=i??[],a instanceof Or?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Or(i)}}add(i){var e;if(i&&i!==this)if(this.closed)Pr(i);else{if(i instanceof ft){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(i)}}_hasParent(i){const{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){const{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&Ge(e,i)}remove(i){const{_finalizers:e}=this;e&&Ge(e,i),i instanceof ft&&i._removeParent(this)}}ft.EMPTY=(()=>{const t=new ft;return t.closed=!0,t})();const Se=ft.EMPTY;function gl(t){return t instanceof ft||t&&"closed"in t&&De(t.remove)&&De(t.add)&&De(t.unsubscribe)}function Pr(t){De(t)?t():t.unsubscribe()}const qe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},xi={setTimeout(t,i,...e){const{delegate:n}=xi;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=xi;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Is(t){xi.setTimeout(()=>{const{onUnhandledError:i}=qe;if(!i)throw t;i(t)})}function kn(){}const st=As("C",void 0,void 0);function As(t,i,e){return{kind:t,value:i,error:e}}let zt=null;function Fr(t){if(qe.useDeprecatedSynchronousErrorHandling){const i=!zt;if(i&&(zt={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=zt;if(zt=null,e)throw n}}else t()}class Eo extends ft{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,gl(i)&&i.add(this)):this.destination=En}static create(i,e,n){return new Nr(i,e,n)}next(i){this.isStopped?vl(function Af(t){return As("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?vl(function Ad(t){return As("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?vl(st,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Td=Function.prototype.bind;function Rs(t,i){return Td.call(t,i)}class _l{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){jt(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){jt(n)}else jt(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){jt(e)}}}class Nr extends Eo{constructor(i,e,n){let r;if(super(),De(i)||!i)r={next:i??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&qe.useDeprecatedNextContext?(o=Object.create(i),o.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&Rs(i.next,o),error:i.error&&Rs(i.error,o),complete:i.complete&&Rs(i.complete,o)}):r=i}this.destination=new _l(r)}}function jt(t){qe.useDeprecatedSynchronousErrorHandling?function Ts(t){qe.useDeprecatedSynchronousErrorHandling&&zt&&(zt.errorThrown=!0,zt.error=t)}(t):Is(t)}function vl(t,i){const{onStoppedNotification:e}=qe;e&&xi.setTimeout(()=>e(t,i))}const En={closed:!0,next:kn,error:function Li(t){throw t},complete:kn},bl="function"==typeof Symbol&&Symbol.observable||"@@observable";function Dt(t){return t}function de(t){return 0===t.length?Dt:1===t.length?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}let Xe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,r){const o=function ui(t){return t&&t instanceof Eo||function pt(t){return t&&De(t.next)&&De(t.error)&&De(t.complete)}(t)&&gl(t)}(e)?e:new Nr(e,n,r);return Fr(()=>{const{operator:a,source:l}=this;o.add(a?a.call(o,l):l?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=le(n))((r,o)=>{const a=new Nr({next:l=>{try{e(l)}catch(d){o(d),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[bl](){return this}pipe(...e){return de(e)(this)}toPromise(e){return new(e=le(e))((n,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>n(o))})}}return t.create=i=>new t(i),t})();function le(t){var i;return null!==(i=t??qe.Promise)&&void 0!==i?i:Promise}const hi=Le(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let W=(()=>{class t extends Xe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new Be(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new hi}next(e){Fr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){Fr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){Fr(()=>{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:n,isStopped:r,observers:o}=this;return n||r?Se:(this.currentObservers=null,o.push(e),new ft(()=>{this.currentObservers=null,Ge(o,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){const e=new Xe;return e.source=this,e}}return t.create=(i,e)=>new Be(i,e),t})();class Be extends W{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,i)}error(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,i)}complete(){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===e||e.call(i)}_subscribe(i){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(i))&&void 0!==n?n:Se}}function Me(t){return De(t?.lift)}function Ve(t){return i=>{if(Me(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ne(t,i,e,n,r){return new Rd(t,i,e,n,r)}class Rd extends Eo{constructor(i,e,n,r,o,a){super(i),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(l){try{e(l)}catch(d){i.error(d)}}:super._next,this._error=r?function(l){try{r(l)}catch(d){i.error(d)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function fe(t,i){return Ve((e,n)=>{let r=0;e.subscribe(Ne(n,o=>{n.next(t.call(i,o,r++))}))})}function Sn(t){return this instanceof Sn?(this.v=t,this):new Sn(t)}function Os(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=function Ro(t){var i="function"==typeof Symbol&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(a){return new Promise(function(l,d){!function r(o,a,l,d){Promise.resolve(d).then(function(h){o({value:h,done:l})},a)}(l,d,(a=t[o](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Ml=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Wd(t){return De(t?.then)}function Gd(t){return De(t[bl])}function Ps(t){return Symbol.asyncIterator&&De(t?.[Symbol.asyncIterator])}function qd(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Zd=function zf(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Yd(t){return De(t?.[Zd])}function Wi(t){return function Vd(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=e.apply(t,i||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(_){n[_]&&(r[_]=function(b){return new Promise(function(x,C){o.push([_,b,x,C])>1||l(_,b)})})}function l(_,b){try{!function d(_){_.value instanceof Sn?Promise.resolve(_.value.v).then(h,f):p(o[0][2],_)}(n[_](b))}catch(x){p(o[0][3],x)}}function h(_){l("next",_)}function f(_){l("throw",_)}function p(_,b){_(b),o.shift(),o.length&&l(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:r}=yield Sn(e.read());if(r)return yield Sn(void 0);yield yield Sn(n)}}finally{e.releaseLock()}})}function Z(t){return De(t?.getReader)}function Yt(t){if(t instanceof Xe)return t;if(null!=t){if(Gd(t))return function Xd(t){return new Xe(i=>{const e=t[bl]();if(De(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Ml(t))return function Kd(t){return new Xe(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Is)})}(t);if(Ps(t))return El(t);if(Yd(t))return function kl(t){return new Xe(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(Z(t))return function Lr(t){return El(Wi(t))}(t)}throw qd(t)}function El(t){return new Xe(i=>{(function Jd(t,i){var e,n,r,o;return function wl(t,i,e,n){return new(e||(e=Promise))(function(o,a){function l(f){try{h(n.next(f))}catch(p){a(p)}}function d(f){try{h(n.throw(f))}catch(p){a(p)}}function h(f){f.done?o(f.value):function r(o){return o instanceof e?o:new e(function(a){a(o)})}(f.value).then(l,d)}h((n=n.apply(t,i||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Os(t);!(n=yield e.next()).done;)if(i.next(n.value),i.closed)return}catch(a){r={error:a}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}i.complete()})})(t,i).catch(e=>i.error(e))})}function In(t,i,e,n=0,r=!1){const o=i.schedule(function(){e(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}function Tt(t,i,e=1/0){return De(i)?Tt((n,r)=>fe((o,a)=>i(n,o,r,a))(Yt(t(n,r))),e):("number"==typeof i&&(e=i),Ve((n,r)=>function jf(t,i,e,n,r,o,a,l){const d=[];let h=0,f=0,p=!1;const _=()=>{p&&!d.length&&!h&&i.complete()},b=C=>h{o&&i.next(C),h++;let M=!1;Yt(e(C,f++)).subscribe(Ne(i,R=>{r?.(R),o?b(R):i.next(R)},()=>{M=!0},void 0,()=>{if(M)try{for(h--;d.length&&hx(R)):x(R)}_()}catch(R){i.error(R)}}))};return t.subscribe(Ne(i,b,()=>{p=!0,_()})),()=>{l?.()}}(n,r,t,e)))}function Br(t=1/0){return Tt(Dt,t)}const Gi=new Xe(t=>t.complete());function eu(t){return t&&De(t.schedule)}function Sl(t){return t[t.length-1]}function Po(t){return eu(Sl(t))?t.pop():void 0}function Ns(t,i=0){return Ve((e,n)=>{e.subscribe(Ne(n,r=>In(n,t,()=>n.next(r),i),()=>In(n,t,()=>n.complete(),i),r=>In(n,t,()=>n.error(r),i)))})}function Vr(t,i=0){return Ve((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function at(t,i){if(!t)throw new Error("Iterable cannot be null");return new Xe(e=>{In(e,i,()=>{const n=t[Symbol.asyncIterator]();In(e,i,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function lt(t,i){return i?function zr(t,i){if(null!=t){if(Gd(t))return function iu(t,i){return Yt(t).pipe(Vr(i),Ns(i))}(t,i);if(Ml(t))return function Fo(t,i){return new Xe(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(Wd(t))return function nu(t,i){return Yt(t).pipe(Vr(i),Ns(i))}(t,i);if(Ps(t))return at(t,i);if(Yd(t))return function Te(t,i){return new Xe(e=>{let n;return In(e,i,()=>{n=t[Zd](),In(e,i,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(a){return void e.error(a)}o?e.complete():e.next(r)},0,!0)}),()=>De(n?.return)&&n.return()})}(t,i);if(Z(t))return function Ls(t,i){return at(Wi(t),i)}(t,i)}throw qd(t)}(t,i):Yt(t)}function jr(...t){const i=Po(t),e=function Hf(t,i){return"number"==typeof Sl(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Yt(n[0]):Br(e)(lt(n,i)):Gi}class K extends W{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}}function z(...t){return lt(t,Po(t))}function No(t={}){const{connector:i=(()=>new W),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,l,d,h=0,f=!1,p=!1;const _=()=>{l?.unsubscribe(),l=void 0},b=()=>{_(),a=d=void 0,f=p=!1},x=()=>{const C=a;b(),C?.unsubscribe()};return Ve((C,M)=>{h++,!p&&!f&&_();const R=d=d??i();M.add(()=>{h--,0===h&&!p&&!f&&(l=Hr(x,r))}),R.subscribe(M),!a&&h>0&&(a=new Nr({next:E=>R.next(E),error:E=>{p=!0,_(),l=Hr(b,e,E),R.error(E)},complete:()=>{f=!0,_(),l=Hr(b,n),R.complete()}}),Yt(C).subscribe(a))})(o)}}function Hr(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new Nr({next:()=>{n.unsubscribe(),t()}});return Yt(i(...e)).subscribe(n)}function yt(t,i){return Ve((e,n)=>{let r=null,o=0,a=!1;const l=()=>a&&!r&&n.complete();e.subscribe(Ne(n,d=>{r?.unsubscribe();let h=0;const f=o++;Yt(t(d,f)).subscribe(r=Ne(n,p=>n.next(i?i(d,p,f,h++):p),()=>{r=null,l()}))},()=>{a=!0,l()}))})}function ru(t,i=Dt){return t=t??Bs,Ve((e,n)=>{let r,o=!0;e.subscribe(Ne(n,a=>{const l=i(a);(o||!t(r,l))&&(o=!1,r=l,n.next(a))}))})}function Bs(t,i){return t===i}function ke(t){for(let i in t)if(t[i]===ke)return i;throw Error("Could not find renamed property on target object.")}function gt(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function tt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(tt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function lr(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const Lo=ke({__forward_ref__:ke});function Ie(t){return t.__forward_ref__=Ie,t.toString=function(){return tt(this())},t}function J(t){return Bo(t)?t():t}function Bo(t){return"function"==typeof t&&t.hasOwnProperty(Lo)&&t.__forward_ref__===Ie}function Vo(t){return t&&!!t.\u0275providers}class I extends Error{constructor(i,e){super(function cr(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}(i,e)),this.code=i}}function se(t){return"string"==typeof t?t:null==t?"":String(t)}function We(t,i){throw new I(-201,!1)}function fi(t,i){null==t&&function ne(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function N(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Y(t){return{providers:t.providers||[],imports:t.imports||[]}}function Hs(t){return cu(t,$s)||cu(t,uu)}function cu(t,i){return t.hasOwnProperty(i)?t[i]:null}function Us(t){return t&&(t.hasOwnProperty(zo)||t.hasOwnProperty(dn))?t[zo]:null}const $s=ke({\u0275prov:ke}),zo=ke({\u0275inj:ke}),uu=ke({ngInjectableDef:ke}),dn=ke({ngInjectorDef:ke});var xe=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(xe||{});let Ws;function ti(t){const i=Ws;return Ws=t,i}function Rl(t,i,e){const n=Hs(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&xe.Optional?null:void 0!==i?i:void We(tt(t))}const Ke=globalThis;class T{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=N({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Gr={},Pl="__NG_DI_FLAG__",qr="ngTempTokenPath",Kf=/\n/gm,Nl="__source";let Zr;function Ci(t){const i=Zr;return Zr=t,i}function Jf(t,i=xe.Default){if(void 0===Zr)throw new I(-203,!1);return null===Zr?Rl(t,void 0,i):Zr.get(t,i&xe.Optional?null:void 0,i)}function k(t,i=xe.Default){return(function An(){return Ws}()||Jf)(J(t),i)}function j(t,i=xe.Default){return k(t,Zs(i))}function Zs(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function dr(t){const i=[];for(let e=0;ei){a=o-1;break}}}for(;oo?"":r[p+1].toLowerCase();const b=8&n?_:null;if(b&&-1!==Ho(b,h,0)||2&n&&h!==_){if(Yi(n))return!1;a=!0}}}}else{if(!a&&!Yi(n)&&!Yi(d))return!1;if(a&&Yi(d))continue;a=!1,n=d|1&n}}return Yi(n)||a}function Yi(t){return 0==(1&t)}function _u(t,i,e,n){if(null===i)return-1;let r=0;if(n||!e){let o=!1;for(;r-1)for(e++;e0?'="'+l+'"':"")+"]"}else 8&n?r+="."+a:4&n&&(r+=" "+a);else""!==r&&!Yi(a)&&(i+=bu(o,r),r=""),n=a,o=o||!Yi(n);e++}return""!==r&&(i+=bu(o,r)),i}function it(t){return Bi(()=>{const i=Cu(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Xs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||pi.Emulated,styles:t.styles||ge,_:null,schemas:t.schemas||null,tView:null,id:""};zl(e);const n=t.dependencies;return e.directiveDefs=qo(n,!1),e.pipeDefs=qo(n,!0),e.id=function Mu(t){let i=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const r of e)i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}(e),e})}function xu(t){return Ee(t)||Mt(t)}function wu(t){return null!==t}function X(t){return Bi(()=>({type:t.type,bootstrap:t.bootstrap||ge,declarations:t.declarations||ge,imports:t.imports||ge,exports:t.exports||ge,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Vl(t,i){if(null==t)return un;const e={};for(const n in t)if(t.hasOwnProperty(n)){let r=t[n],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=n,i&&(i[r]=o)}return e}function O(t){return Bi(()=>{const i=Cu(t);return zl(i),i})}function Ee(t){return t[Ks]||null}function Mt(t){return t[Hn]||null}function It(t){return t[Ll]||null}function gi(t,i){const e=t[hn]||null;if(!e&&!0===i)throw new Error(`Type ${tt(t)} does not have '\u0275mod' property.`);return e}function Cu(t){const i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:t.inputs||un,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||ge,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Vl(t.inputs,i),outputs:Vl(t.outputs)}}function zl(t){t.features?.forEach(i=>i(t))}function qo(t,i){if(!t)return null;const e=i?It:xu;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(wu)}const _t=0,H=1,ce=2,nt=3,Xi=4,s=5,c=6,u=7,m=8,g=9,v=10,y=11,D=12,S=13,P=14,B=15,Q=16,ue=17,ct=18,bt=19,Di=20,xt=21,_i=22,Zo=23,Yo=24,we=25,jl=1,Hl=2,ze=7,Qr=9,Ht=11;function ii(t){return Array.isArray(t)&&"object"==typeof t[jl]}function ni(t){return Array.isArray(t)&&!0===t[jl]}function sp(t){return 0!=(4&t.flags)}function Ko(t){return t.componentOffset>-1}function Eu(t){return 1==(1&t.flags)}function Rn(t){return!!t.template}function ap(t){return 0!=(512&t[ce])}function Qo(t,i){return t.hasOwnProperty(Vi)?t[Vi]:null}let ri=null,Su=!1;function fn(t){const i=ri;return ri=t,i}const Ry={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Py(t){if(!Ul(t)||t.dirty){if(!t.producerMustRecompute(t)&&!Ly(t))return void(t.dirty=!1);t.producerRecomputeValue(t),t.dirty=!1}}function Ny(t){t.dirty=!0,function Fy(t){if(void 0===t.liveConsumerNode)return;const i=Su;Su=!0;try{for(const e of t.liveConsumerNode)e.dirty||Ny(e)}finally{Su=i}}(t),t.consumerMarkedDirty?.(t)}function cp(t){return t&&(t.nextProducerIndex=0),fn(t)}function dp(t,i){if(fn(i),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(Ul(t))for(let e=t.nextProducerIndex;et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Ly(t){ia(t);for(let i=0;i0}function ia(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let jy=null;const Wy=()=>{},VT=(()=>({...Ry,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:Wy}))();class zT{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function oi(){return Gy}function Gy(t){return t.type.prototype.ngOnChanges&&(t.setInput=HT),jT}function jT(){const t=Zy(this),i=t?.current;if(i){const e=t.previous;if(e===un)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function HT(t,i,e,n){const r=this.declaredInputs[e],o=Zy(t)||function UT(t,i){return t[qy]=i}(t,{previous:un,current:null}),a=o.current||(o.current={}),l=o.previous,d=l[r];a[r]=new zT(d&&d.currentValue,i,l===un),t[n]=i}oi.ngInherit=!0;const qy="__ngSimpleChanges__";function Zy(t){return t[qy]||null}const $n=function(t,i,e){};function dt(t){for(;Array.isArray(t);)t=t[_t];return t}function zi(t,i){return dt(i[t.index])}function Ky(t,i){return t.data[i]}function Ki(t,i){const e=i[t];return ii(e)?e:e[_t]}function eo(t,i){return null==i?null:t[i]}function Qy(t){t[ue]=0}function YT(t){1024&t[ce]||(t[ce]|=1024,ex(t,1))}function Jy(t){1024&t[ce]&&(t[ce]&=-1025,ex(t,-1))}function ex(t,i){let e=t[nt];if(null===e)return;e[s]+=i;let n=e;for(e=e[nt];null!==e&&(1===i&&1===n[s]||-1===i&&0===n[s]);)e[s]+=i,n=e,e=e[nt]}const ae={lFrame:ux(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function nx(){return ae.bindingsEnabled}function F(){return ae.lFrame.lView}function Oe(){return ae.lFrame.tView}function si(){let t=rx();for(;null!==t&&64===t.type;)t=t.parent;return t}function rx(){return ae.lFrame.currentTNode}function Wn(t,i){const e=ae.lFrame;e.currentTNode=t,e.isParent=i}function pp(){return ae.lFrame.isParent}function oa(){return ae.lFrame.bindingIndex++}function cR(t,i){const e=ae.lFrame;e.bindingIndex=e.bindingRootIndex=t,_p(i)}function _p(t){ae.lFrame.currentDirectiveIndex=t}function lx(){return ae.lFrame.currentQueryIndex}function bp(t){ae.lFrame.currentQueryIndex=t}function uR(t){const i=t[H];return 2===i.type?i.declTNode:1===i.type?t[c]:null}function cx(t,i,e){if(e&xe.SkipSelf){let r=i,o=t;for(;!(r=r.parent,null!==r||e&xe.Host||(r=uR(o),null===r||(o=o[P],10&r.type))););if(null===r)return!1;i=r,t=o}const n=ae.lFrame=dx();return n.currentTNode=i,n.lView=t,!0}function yp(t){const i=dx(),e=t[H];ae.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function dx(){const t=ae.lFrame,i=null===t?null:t.child;return null===i?ux(t):i}function ux(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function hx(){const t=ae.lFrame;return ae.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const mx=hx;function xp(){const t=hx();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ki(){return ae.lFrame.selectedIndex}function Jo(t){ae.lFrame.selectedIndex=t}function wt(){const t=ae.lFrame;return Ky(t.tView,t.selectedIndex)}let px=!0;function Tu(){return px}function to(t){px=t}function Ru(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[d]<0&&(t[ue]+=65536),(l>13>16&&(3&t[ce])===i&&(t[ce]+=8192,_x(l,o)):_x(l,o)}const sa=-1;class Wl{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function kp(t){return t!==sa}function Gl(t){return 32767&t}function ql(t,i){let e=function xR(t){return t>>16}(t),n=i;for(;e>0;)n=n[P],e--;return n}let Ep=!0;function Fu(t){const i=Ep;return Ep=t,i}const vx=255,bx=5;let wR=0;const Gn={};function Nu(t,i){const e=yx(t,i);if(-1!==e)return e;const n=i[H];n.firstCreatePass&&(t.injectorIndex=i.length,Sp(n.data,t),Sp(i,null),Sp(n.blueprint,null));const r=Lu(t,i),o=t.injectorIndex;if(kp(r)){const a=Gl(r),l=ql(r,i),d=l[H].data;for(let h=0;h<8;h++)i[o+h]=l[a+h]|d[a+h]}return i[o+8]=r,o}function Sp(t,i){t.push(0,0,0,0,0,0,0,0,i)}function yx(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function Lu(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;null!==r;){if(n=Ex(r),null===n)return sa;if(e++,r=r[P],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return sa}function Ip(t,i,e){!function CR(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(Xr)&&(n=e[Xr]),null==n&&(n=e[Xr]=wR++);const r=n&vx;i.data[t+(r>>bx)]|=1<=0?i&vx:SR:i}(e);if("function"==typeof o){if(!cx(i,t,n))return n&xe.Host?xx(r,0,n):wx(i,e,n,r);try{let a;if(a=o(n),null!=a||n&xe.Optional)return a;We()}finally{mx()}}else if("number"==typeof o){let a=null,l=yx(t,i),d=sa,h=n&xe.Host?i[B][c]:null;for((-1===l||n&xe.SkipSelf)&&(d=-1===l?Lu(t,i):i[l+8],d!==sa&&kx(n,!1)?(a=i[H],l=Gl(d),i=ql(d,i)):l=-1);-1!==l;){const f=i[H];if(Mx(o,l,f.data)){const p=MR(l,i,e,a,n,h);if(p!==Gn)return p}d=i[l+8],d!==sa&&kx(n,i[H].data[l+8]===h)&&Mx(o,l,i)?(a=f,l=Gl(d),i=ql(d,i)):l=-1}}return r}function MR(t,i,e,n,r,o){const a=i[H],l=a.data[t+8],f=Bu(l,a,e,null==n?Ko(l)&&Ep:n!=a&&0!=(3&l.type),r&xe.Host&&o===l);return null!==f?es(i,a,f,l):Gn}function Bu(t,i,e,n,r){const o=t.providerIndexes,a=i.data,l=1048575&o,d=t.directiveStart,f=o>>20,_=r?l+f:t.directiveEnd;for(let b=n?l:l+f;b<_;b++){const x=a[b];if(b=d&&x.type===e)return b}if(r){const b=a[d];if(b&&Rn(b)&&b.type===e)return d}return null}function es(t,i,e,n){let r=t[e];const o=i.data;if(function vR(t){return t instanceof Wl}(r)){const a=r;a.resolving&&function Uf(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new I(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Re(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():se(t)}(o[e]));const l=Fu(a.canSeeViewProviders);a.resolving=!0;const h=a.injectImpl?ti(a.injectImpl):null;cx(t,n,xe.Default);try{r=t[e]=a.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&function gR(t,i,e){const{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=i.type.prototype;if(n){const a=Gy(i);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}(e,o[e],i)}finally{null!==h&&ti(h),Fu(l),a.resolving=!1,mx()}}return r}function Mx(t,i,e){return!!(e[i+(t>>bx)]&1<{const i=Ap(J(t));return i&&i()}:Qo(t)}function Ex(t){const i=t[H],e=i.type;return 2===e?i.declTNode:1===e?t[c]:null}const la="__parameters__";function da(t,i,e){return Bi(()=>{const n=function Tp(t){return function(...e){if(t){const n=t(...e);for(const r in n)this[r]=n[r]}}}(i);function r(...o){if(this instanceof r)return n.apply(this,o),this;const a=new r(...o);return l.annotation=a,l;function l(d,h,f){const p=d.hasOwnProperty(la)?d[la]:Object.defineProperty(d,la,{value:[]})[la];for(;p.length<=f;)p.push(null);return(p[f]=p[f]||[]).push(a),d}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}function ha(t,i){t.forEach(e=>Array.isArray(e)?ha(e,i):i(e))}function Ix(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Vu(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function Qi(t,i,e){let n=ma(t,i);return n>=0?t[1|n]=e:(n=~n,function NR(t,i,e,n){let r=t.length;if(r==i)t.push(e,n);else if(1===r)t.push(n,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>i;)t[r]=t[r-2],r--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function Rp(t,i){const e=ma(t,i);if(e>=0)return t[1|e]}function ma(t,i){return function Ax(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){const o=n+(r-n>>1),a=t[o<i?r=o:n=o+1}return~(r<0&&(t[e-1][Xi]=n[Xi]);const o=Vu(t,Ht+i);!function y1(t,i){tc(t,i,i[y],2,null,null),i[_t]=null,i[c]=null}(n[H],n);const a=o[ct];null!==a&&a.detachView(o[H]),n[nt]=null,n[Xi]=null,n[ce]&=-129}return n}function Up(t,i){if(!(256&i[ce])){const e=i[y];i[Zo]&&By(i[Zo]),i[Yo]&&By(i[Yo]),e.destroyNode&&tc(t,i,e,3,null,null),function C1(t){let i=t[D];if(!i)return $p(t[H],t);for(;i;){let e=null;if(ii(i))e=i[D];else{const n=i[Ht];n&&(e=n)}if(!e){for(;i&&!i[Xi]&&i!==t;)ii(i)&&$p(i[H],i),i=i[nt];null===i&&(i=t),ii(i)&&$p(i[H],i),e=i&&i[Xi]}i=e}}(i)}}function $p(t,i){if(!(256&i[ce])){i[ce]&=-129,i[ce]|=256,function E1(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[a]():n[-a].unsubscribe(),o+=2}else e[o].call(n[e[o+1]]);null!==n&&(i[u]=null);const r=i[xt];if(null!==r){i[xt]=null;for(let o=0;o-1){const{encapsulation:o}=t.data[n.directiveStart+r];if(o===pi.None||o===pi.Emulated)return null}return zi(n,e)}}(t,i.parent,e)}function ts(t,i,e,n,r){t.insertBefore(i,e,n,r)}function n0(t,i,e){t.appendChild(i,e)}function r0(t,i,e,n,r){null!==n?ts(t,i,e,n,r):n0(t,i,e)}function Xu(t,i){return t.parentNode(i)}let Gp,Xp,a0=function s0(t,i,e){return 40&t.type?zi(t,e):null};function Ku(t,i,e,n){const r=Wp(t,n,i),o=i[y],l=function o0(t,i,e){return a0(t,i,e)}(n.parent||i[c],n,i);if(null!=r)if(Array.isArray(e))for(let d=0;d{e.push(a)};return ha(i,a=>{const l=a;nh(l,o,[],n)&&(r||=[],r.push(l))}),void 0!==r&&T0(r,o),e}function T0(t,i){for(let e=0;e{i(o,n)})}}function nh(t,i,e,n){if(!(t=J(t)))return!1;let r=null,o=Us(t);const a=!o&&Ee(t);if(o||a){if(a&&!a.standalone)return!1;r=t}else{const d=t.ngModule;if(o=Us(d),!o)return!1;r=d}const l=n.has(r);if(a){if(l)return!1;if(n.add(r),a.dependencies){const d="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const h of d)nh(h,i,e,n)}}else{if(!o)return!1;{if(null!=o.imports&&!l){let h;n.add(r);try{ha(o.imports,f=>{nh(f,i,e,n)&&(h||=[],h.push(f))})}finally{}void 0!==h&&T0(h,i)}if(!l){const h=Qo(r)||(()=>new r);i({provide:r,useFactory:h,deps:ge},r),i({provide:S0,useValue:r,multi:!0},r),i({provide:rc,useValue:()=>k(r),multi:!0},r)}const d=o.providers;if(null!=d&&!l){const h=t;ig(d,f=>{i(f,h)})}}}return r!==t&&void 0!==t.providers}function ig(t,i){for(let e of t)Vo(e)&&(e=e.\u0275providers),Array.isArray(e)?ig(e,i):i(e)}const uO=ke({provide:String,useValue:ke});function ng(t){return null!==t&&"object"==typeof t&&uO in t}function ns(t){return"function"==typeof t}const rg=new T("Set Injector scope."),rh={},mO={};let og;function oh(){return void 0===og&&(og=new tg),og}class _n{}class ba extends _n{get destroyed(){return this._destroyed}constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ag(i,a=>this.processProvider(a)),this.records.set(E0,ya(void 0,this)),r.has("environment")&&this.records.set(_n,ya(void 0,this));const o=this.records.get(rg);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(S0.multi,ge,xe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of i)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const e=Ci(this),n=ti(void 0);try{return i()}finally{Ci(e),ti(n)}}get(i,e=Gr,n=xe.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(Qs))return i[Qs](this);n=Zs(n);const o=Ci(this),a=ti(void 0);try{if(!(n&xe.SkipSelf)){let d=this.records.get(i);if(void 0===d){const h=function vO(t){return"function"==typeof t||"object"==typeof t&&t instanceof T}(i)&&Hs(i);d=h&&this.injectableDefInScope(h)?ya(sg(i),rh):null,this.records.set(i,d)}if(null!=d)return this.hydrate(i,d)}return(n&xe.Self?oh():this.parent).get(i,e=n&xe.Optional&&e===Gr?null:e)}catch(l){if("NullInjectorError"===l.name){if((l[qr]=l[qr]||[]).unshift(tt(i)),o)throw l;return function ep(t,i,e,n){const r=t[qr];throw i[Nl]&&r.unshift(i[Nl]),t.message=function jn(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=tt(i);if(Array.isArray(i))r=i.map(tt).join(" -> ");else if("object"==typeof i){let o=[];for(let a in i)if(i.hasOwnProperty(a)){let l=i[a];o.push(a+":"+("string"==typeof l?JSON.stringify(l):tt(l)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(Kf,"\n ")}`}("\n"+t.message,r,e,n),t.ngTokenPath=r,t[qr]=null,t}(l,i,"R3InjectorError",this.source)}throw l}finally{ti(a),Ci(o)}}resolveInjectorInitializers(){const i=Ci(this),e=ti(void 0);try{const r=this.get(rc.multi,ge,xe.Self);for(const o of r)o()}finally{Ci(i),ti(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(tt(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(i){let e=ns(i=J(i))?i:J(i&&i.provide);const n=function pO(t){return ng(t)?ya(void 0,t.useValue):ya(function P0(t,i,e){let n;if(ns(t)){const r=J(t);return Qo(r)||sg(r)}if(ng(t))n=()=>J(t.useValue);else if(function O0(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...dr(t.deps||[]));else if(function R0(t){return!(!t||!t.useExisting)}(t))n=()=>k(J(t.useExisting));else{const r=J(t&&(t.useClass||t.provide));if(!function gO(t){return!!t.deps}(t))return Qo(r)||sg(r);n=()=>new r(...dr(t.deps))}return n}(t),rh)}(i);if(ns(i)||!0!==i.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=ya(void 0,rh,!0),r.factory=()=>dr(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===rh&&(e.value=mO,e.value=e.factory()),"object"==typeof e.value&&e.value&&function _O(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=J(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){const e=this._onDestroyHooks.indexOf(i);-1!==e&&this._onDestroyHooks.splice(e,1)}}function sg(t){const i=Hs(t),e=null!==i?i.factory:Qo(t);if(null!==e)return e;if(t instanceof T)throw new I(204,!1);if(t instanceof Function)return function fO(t){const i=t.length;if(i>0)throw function Xl(t,i){const e=[];for(let n=0;ne.factory(t):()=>new t}(t);throw new I(204,!1)}function ya(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function ag(t,i){for(const e of t)Array.isArray(e)?ag(e,i):e&&Vo(e)?ag(e.\u0275providers,i):i(e)}const sh=new T("AppId",{providedIn:"root",factory:()=>bO}),bO="ng",F0=new T("Platform Initializer"),rs=new T("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),_r=new T("AnimationModuleType"),lg=new T("CSP nonce",{providedIn:"root",factory:()=>function va(){if(void 0!==Xp)return Xp;if(typeof document<"u")return document;throw new I(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let N0=(t,i,e)=>null;function gg(t,i,e=!1){return N0(t,i,e)}class IO{}class V0{}class TO{resolveComponentFactory(i){throw function AO(t){const i=Error(`No component factory found for ${tt(t)}.`);return i.ngComponent=t,i}(i)}}let Ca=(()=>{class t{static#e=this.NULL=new TO}return t})();function RO(){return Da(si(),F())}function Da(t,i){return new _e(zi(t,i))}let _e=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=RO}return t})();function OO(t){return t instanceof _e?t.nativeElement:t}class ac{}let FO=(()=>{class t{static#e=this.\u0275prov=N({token:t,providedIn:"root",factory:()=>null})}return t})();class os{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const NO=new os("16.2.12"),bg={};function $0(t,i=null,e=null,n){const r=W0(t,i,e,n);return r.resolveInjectorInitializers(),r}function W0(t,i=null,e=null,n,r=new Set){const o=[e||ge,dO(t)];return n=n||("object"==typeof t?void 0:tt(t)),new ba(o,i||oh(),n||null,r)}let Ot=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=Gr;static#t=this.NULL=new tg;static create(e,n){if(Array.isArray(e))return $0({name:""},n,e,"");{const r=e.name??"";return $0({name:r},e.parent,e.providers,r)}}static#i=this.\u0275prov=N({token:t,providedIn:"any",factory:()=>k(E0)});static#n=this.__NG_ELEMENT_ID__=-1}return t})();function xg(t){return t.ngOriginalError}class On{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&xg(i);for(;e&&xg(e);)e=xg(e);return e||null}}function Cg(t){return i=>{setTimeout(t,void 0,i)}}const Pe=class UO extends W{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let r=i,o=e||(()=>null),a=n;if(i&&"object"==typeof i){const d=i;r=d.next?.bind(d),o=d.error?.bind(d),a=d.complete?.bind(d)}this.__isAsync&&(o=Cg(o),r&&(r=Cg(r)),a&&(a=Cg(a)));const l=super.subscribe({next:r,error:o,complete:a});return i instanceof ft&&i.add(l),l}};function q0(...t){}class re{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pe(!1),this.onMicrotaskEmpty=new Pe(!1),this.onStable=new Pe(!1),this.onError=new Pe(!1),typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function $O(){const t="function"==typeof Ke.requestAnimationFrame;let i=Ke[t?"requestAnimationFrame":"setTimeout"],e=Ke[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&e){const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function qO(t){const i=()=>{!function GO(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ke,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Mg(t),t.isCheckStableRunning=!0,Dg(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Mg(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,o,a,l)=>{if(function YO(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(l))return e.invokeTask(r,o,a,l);try{return Z0(t),e.invokeTask(r,o,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&i(),Y0(t)}},onInvoke:(e,n,r,o,a,l,d)=>{try{return Z0(t),e.invoke(r,o,a,l,d)}finally{t.shouldCoalesceRunChangeDetection&&i(),Y0(t)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Mg(t),Dg(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!re.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(re.isInAngularZone())throw new I(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,i,WO,q0,q0);try{return o.runTask(a,e,n)}finally{o.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const WO={};function Dg(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Mg(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Z0(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Y0(t){t._nesting--,Dg(t)}class ZO{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pe,this.onMicrotaskEmpty=new Pe,this.onStable=new Pe,this.onError=new Pe}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,r){return i.apply(e,n)}}const X0=new T("",{providedIn:"root",factory:K0});function K0(){const t=j(re);let i=!0;return jr(new Xe(r=>{i=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{r.next(i),r.complete()})}),new Xe(r=>{let o;t.runOutsideAngular(()=>{o=t.onStable.subscribe(()=>{re.assertNotInAngularZone(),queueMicrotask(()=>{!i&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(i=!0,r.next(!0))})})});const a=t.onUnstable.subscribe(()=>{re.assertInAngularZone(),i&&(i=!1,t.runOutsideAngular(()=>{r.next(!1)}))});return()=>{o.unsubscribe(),a.unsubscribe()}}).pipe(No()))}function br(t){return t instanceof Function?t():t}let kg=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})();function lc(t){for(;t;){t[ce]|=64;const i=Jl(t);if(ap(t)&&!i)return t;t=i}return null}const iw=new T("",{providedIn:"root",factory:()=>!1});let mh=null;function sw(t,i){return t[i]??cw()}function aw(t,i){const e=cw();e.producerNode?.length&&(t[i]=mh,e.lView=t,mh=lw())}const oP={...Ry,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{lc(t.lView)},lView:null};function lw(){return Object.create(oP)}function cw(){return mh??=lw(),mh}const me={};function w(t,i=xe.Default){const e=F();return null===e?k(t,i):Cx(si(),e,J(t),i)}function cc(){throw new Error("invalid")}function fh(t,i,e,n,r,o,a,l,d,h,f){const p=i.blueprint.slice();return p[_t]=r,p[ce]=140|n,(null!==h||t&&2048&t[ce])&&(p[ce]|=2048),Qy(p),p[nt]=p[P]=t,p[m]=e,p[v]=a||t&&t[v],p[y]=l||t&&t[y],p[g]=d||t&&t[g]||null,p[c]=o,p[bt]=function l1(){return a1++}(),p[_i]=f,p[Di]=h,p[B]=2==i.type?t[B]:p,p}function Ea(t,i,e,n,r){let o=t.data[i];if(null===o)o=function Eg(t,i,e,n,r){const o=rx(),a=pp(),d=t.data[i]=function mP(t,i,e,n,r,o){let a=i?i.injectorIndex:-1,l=0;return function ra(){return null!==ae.skipHydrationRootTNode}()&&(l|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,e,i,n,r);return null===t.firstChild&&(t.firstChild=d),null!==o&&(a?null==o.child&&null!==d.parent&&(o.child=d):null===o.next&&(o.next=d,d.prev=o)),d}(t,i,e,n,r),function lR(){return ae.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=e,o.value=n,o.attrs=r;const a=function $l(){const t=ae.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}();o.injectorIndex=null===a?-1:a.injectorIndex}return Wn(o,!0),o}function dc(t,i,e,n){if(0===e)return-1;const r=i.length;for(let o=0;owe&&function dw(t,i,e,n){if(!n)if(3==(3&i[ce])){const o=t.preOrderCheckHooks;null!==o&&Ou(i,o,e)}else{const o=t.preOrderHooks;null!==o&&Pu(i,o,0,e)}Jo(e)}(t,i,we,!1),$n(l?2:0,r);const h=l?o:null,f=cp(h);try{null!==h&&(h.dirty=!1),e(n,r)}finally{dp(h,f)}}finally{l&&null===i[Zo]&&aw(i,Zo),Jo(a),$n(l?3:1,r)}}function Sg(t,i,e){if(sp(i)){const n=fn(null);try{const o=i.directiveEnd;for(let a=i.directiveStart;anull;function fw(t,i,e,n){for(let r in t)if(t.hasOwnProperty(r)){e=null===e?{}:e;const o=t[r];null===n?pw(e,i,r,o):n.hasOwnProperty(r)&&pw(e,i,n[r],o)}return e}function pw(t,i,e,n){t.hasOwnProperty(e)?t[e].push(i,n):t[e]=[i,n]}function Rg(t,i,e,n){if(nx()){const r=null===n?null:{"":-1},o=function wP(t,i){const e=t.directiveRegistry;let n=null,r=null;if(e)for(let o=0;o0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(e,n,o)}}(t,i,n,dc(t,e,r.hostVars,me),r)}function Yn(t,i,e,n,r,o){const a=zi(t,i);!function Pg(t,i,e,n,r,o,a){if(null==o)t.removeAttribute(i,r,e);else{const l=null==a?se(o):a(o,n||"",r);t.setAttribute(i,r,l,e)}}(i[y],a,o,t.value,e,n,r)}function SP(t,i,e,n,r,o){const a=o[i];if(null!==a)for(let l=0;l{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,n,r){const o=typeof Zone>"u"?null:Zone.current,a=function BT(t,i,e){const n=Object.create(VT);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=i;const r=a=>{n.cleanupFn=a};return n.ref={notify:()=>Ny(n),run:()=>{if(n.dirty=!1,n.hasRun&&!Ly(n))return;n.hasRun=!0;const a=cp(n);try{n.cleanupFn(),n.cleanupFn=Wy,n.fn(r)}finally{dp(n,a)}},cleanup:()=>n.cleanupFn()},n.ref}(e,h=>{this.all.has(h)&&this.queue.set(h,o)},r);let l;this.all.add(a),a.notify();const d=()=>{a.cleanup(),l?.(),this.all.delete(a),this.queue.delete(a)};return l=n?.onDestroy(d),{destroy:d}}flush(){if(0!==this.queue.size)for(const[e,n]of this.queue)this.queue.delete(e),n?n.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=N({token:t,providedIn:"root",factory:()=>new t})}return t})();function gh(t,i,e){let n=e?t.styles:null,r=e?t.classes:null,o=0;if(null!==i)for(let a=0;a0){Sw(t,1);const r=e.components;null!==r&&Aw(t,r,1)}}function Aw(t,i,e){for(let n=0;n-1&&(Yu(i,n),Vu(e,n))}this._attachedToViewContainer=!1}Up(this._lView[H],this._lView)}onDestroy(i){!function tx(t,i){if(256==(256&t[ce]))throw new I(911,!1);null===t[xt]&&(t[xt]=[]),t[xt].push(i)}(this._lView,i)}markForCheck(){lc(this._cdRefInjectingView||this._lView)}detach(){this._lView[ce]&=-129}reattach(){this._lView[ce]|=128}detectChanges(){_h(this._lView[H],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function w1(t,i){tc(t,i,i[y],2,null,null)}(this._lView[H],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=i}}class LP extends hc{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;_h(i[H],i,i[m],!1)}checkNoChanges(){}get context(){return null}}class Tw extends Ca{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Ee(i);return new mc(e,this.ngModule)}}function Rw(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class VP{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=Zs(n);const r=this.injector.get(i,bg,n);return r!==bg||e===bg?r:this.parentInjector.get(i,e,n)}}class mc extends V0{get inputs(){const i=this.componentDef,e=i.inputTransforms,n=Rw(i.inputs);if(null!==e)for(const r of n)e.hasOwnProperty(r.propName)&&(r.transform=e[r.propName]);return n}get outputs(){return Rw(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function rp(t){return t.map(yu).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,r){let o=(r=r||this.ngModule)instanceof _n?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new VP(i,o):i,l=a.get(ac,null);if(null===l)throw new I(407,!1);const p={rendererFactory:l,sanitizer:a.get(FO,null),effectManager:a.get(Mw,null),afterRenderEventManager:a.get(kg,null)},_=l.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",x=n?function lP(t,i,e,n){const o=n.get(iw,!1)||e===pi.ShadowDom,a=t.selectRootElement(i,o);return function cP(t){mw(t)}(a),a}(_,n,this.componentDef.encapsulation,a):Zu(_,b,function BP(t){const i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(b)),R=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let E=null;null!==x&&(E=gg(x,a,!0));const U=Tg(0,null,null,1,0,null,null,null,null,null,null),G=fh(null,U,null,R,null,null,p,_,a,null,E);let he,et;yp(G);try{const mt=this.componentDef;let di,an=null;mt.findHostDirectiveDefs?(di=[],an=new Map,mt.findHostDirectiveDefs(mt,di,an),di.push(mt)):di=[mt];const zn=function jP(t,i){const e=t[H],n=we;return t[n]=i,Ea(e,n,2,"#host",null)}(G,x),Sf=function HP(t,i,e,n,r,o,a){const l=r[H];!function UP(t,i,e,n){for(const r of t)i.mergedAttrs=Un(i.mergedAttrs,r.hostAttrs);null!==i.mergedAttrs&&(gh(i,i.mergedAttrs,!0),null!==e&&m0(n,e,i))}(n,t,i,a);let d=null;null!==i&&(d=gg(i,r[g]));const h=o.rendererFactory.createRenderer(i,e);let f=16;e.signals?f=4096:e.onPush&&(f=64);const p=fh(r,hw(e),null,f,r[t.index],t,o,h,null,null,d);return l.firstCreatePass&&Og(l,t,n.length-1),ph(r,p),r[t.index]=p}(zn,x,mt,di,G,p,_);et=Ky(U,we),x&&function WP(t,i,e,n){if(n)Uo(t,e,["ng-version",NO.full]);else{const{attrs:r,classes:o}=function Go(t){const i=[],e=[];let n=1,r=2;for(;n0&&h0(t,e,o.join(" "))}}(_,mt,x,n),void 0!==e&&function GP(t,i,e){const n=t.projection=[];for(let r=0;r=0;n--){const r=t[n];r.hostVars=i+=r.hostVars,r.hostAttrs=Un(r.hostAttrs,e=Un(e,r.hostAttrs))}}(n)}function vh(t){return t===un?{}:t===ge?[]:t}function YP(t,i){const e=t.viewQuery;t.viewQuery=e?(n,r)=>{i(n,r),e(n,r)}:i}function XP(t,i){const e=t.contentQueries;t.contentQueries=e?(n,r,o)=>{i(n,r,o),e(n,r,o)}:i}function KP(t,i){const e=t.hostBindings;t.hostBindings=e?(n,r)=>{i(n,r),e(n,r)}:i}function bi(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function Ft(t,i,e,n){const r=F();return bi(r,oa(),i)&&(Oe(),Yn(wt(),r,t,i,e,n)),Ft}function kt(t,i,e,n,r,o,a,l){const d=F(),h=Oe(),f=t+we,p=h.firstCreatePass?function wF(t,i,e,n,r,o,a,l,d){const h=i.consts,f=Ea(i,t,4,a||null,eo(h,l));Rg(i,e,f,eo(h,d)),Ru(i,f);const p=f.tView=Tg(2,f,n,r,o,i.directiveRegistry,i.pipeRegistry,null,i.schemas,h,null);return null!==i.queries&&(i.queries.template(i,f),p.queries=i.queries.embeddedTView(f)),f}(f,h,d,i,e,n,r,o,a):h.data[f];Wn(p,!1);const _=Xw(h,d,p,t);Tu()&&Ku(h,d,_,p),vi(_,d),ph(d,d[f]=bw(_,d,_,p)),Eu(p)&&Ig(h,d,p),null!=a&&Ag(d,p,l)}let Xw=function Kw(t,i,e,n){return to(!0),i[y].createComment("")};function $g(t,i,e,n,r){const a=r?"class":"style";Ng(t,e,i.inputs[a],a,n)}function Qe(t,i,e,n){const r=F(),o=Oe(),a=we+t,l=r[y],d=o.firstCreatePass?function kF(t,i,e,n,r,o){const a=i.consts,d=Ea(i,t,2,n,eo(a,r));return Rg(i,e,d,eo(a,o)),null!==d.attrs&&gh(d,d.attrs,!1),null!==d.mergedAttrs&&gh(d,d.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,d),d}(a,o,r,i,e,n):o.data[a],h=Qw(o,r,d,l,i,t);r[a]=h;const f=Eu(d);return Wn(d,!0),m0(l,h,d),32!=(32&d.flags)&&Tu()&&Ku(o,r,h,d),0===function KT(){return ae.lFrame.elementDepthCount}()&&vi(h,r),function QT(){ae.lFrame.elementDepthCount++}(),f&&(Ig(o,r,d),Sg(o,d,r)),null!==n&&Ag(r,d),Qe}function vt(){let t=si();pp()?function gp(){ae.lFrame.isParent=!1}():(t=t.parent,Wn(t,!1));const i=t;(function eR(t){return ae.skipHydrationRootTNode===t})(i)&&function rR(){ae.skipHydrationRootTNode=null}(),function JT(){ae.lFrame.elementDepthCount--}();const e=Oe();return e.firstCreatePass&&(Ru(e,t),sp(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function bR(t){return 0!=(8&t.flags)}(i)&&$g(e,i,F(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function yR(t){return 0!=(16&t.flags)}(i)&&$g(e,i,F(),i.stylesWithoutHost,!1),vt}function Si(t,i,e,n){return Qe(t,i,e,n),vt(),Si}let Qw=(t,i,e,n,r,o)=>(to(!0),Zu(n,r,function fx(){return ae.lFrame.currentNamespace}()));function yc(t){return!!t&&"function"==typeof t.then}function eC(t){return!!t&&"function"==typeof t.subscribe}function Dh(t,i){return t<<17|i<<2}function oo(t){return t>>17&32767}function Gg(t){return 2|t}function as(t){return(131068&t)>>2}function qg(t,i){return-131069&t|i<<2}function Zg(t){return 1|t}function fC(t,i,e,n,r){const o=t[e+1],a=null===i;let l=n?oo(o):as(o),d=!1;for(;0!==l&&(!1===d||a);){const f=t[l+1];zF(t[l],i)&&(d=!0,t[l+1]=n?Zg(f):Gg(f)),l=n?oo(f):as(f)}d&&(t[e+1]=n?Gg(o):Zg(o))}function zF(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&ma(t,i)>=0}function Kt(t,i){return function Pn(t,i,e,n){const r=F(),o=Oe(),a=function pr(t){const i=ae.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}(2);o.firstUpdatePass&&function wC(t,i,e,n){const r=t.data;if(null===r[e+1]){const o=r[ki()],a=function xC(t,i){return i>=t.expandoStartIndex}(t,e);(function kC(t,i){return 0!=(t.flags&(i?8:16))})(o,n)&&null===i&&!a&&(i=!1),i=function YF(t,i,e,n){const r=function vp(t){const i=ae.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let o=n?i.residualClasses:i.residualStyles;if(null===r)0===(n?i.classBindings:i.styleBindings)&&(e=xc(e=Yg(null,t,i,e,n),i.attrs,n),o=null);else{const a=i.directiveStylingLast;if(-1===a||t[a]!==r)if(e=Yg(r,t,i,e,n),null===o){let d=function XF(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==as(n))return t[oo(n)]}(t,i,n);void 0!==d&&Array.isArray(d)&&(d=Yg(null,t,i,d[1],n),d=xc(d,i.attrs,n),function KF(t,i,e,n){t[oo(e?i.classBindings:i.styleBindings)]=n}(t,i,n,d))}else o=function QF(t,i,e){let n;const r=i.directiveEnd;for(let o=1+i.directiveStylingLast;o0)&&(h=!0)):f=e,r)if(0!==d){const _=oo(t[l+1]);t[n+1]=Dh(_,l),0!==_&&(t[_+1]=qg(t[_+1],n)),t[l+1]=function NF(t,i){return 131071&t|i<<17}(t[l+1],n)}else t[n+1]=Dh(l,0),0!==l&&(t[l+1]=qg(t[l+1],n)),l=n;else t[n+1]=Dh(d,0),0===l?l=n:t[d+1]=qg(t[d+1],n),d=n;h&&(t[n+1]=Gg(t[n+1])),fC(t,f,n,!0),fC(t,f,n,!1),function VF(t,i,e,n,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof i&&ma(o,i)>=0&&(e[n+1]=Zg(e[n+1]))}(i,f,t,n,o),a=Dh(l,d),o?i.classBindings=a:i.styleBindings=a}(r,o,i,e,a,n)}}(o,t,a,n),i!==me&&bi(r,a,i)&&function DC(t,i,e,n,r,o,a,l){if(!(3&i.type))return;const d=t.data,h=d[l+1],f=function LF(t){return 1==(1&t)}(h)?MC(d,i,e,r,as(h),a):void 0;Mh(f)||(Mh(o)||function FF(t){return 2==(2&t)}(h)&&(o=MC(d,null,e,r,l,a)),function R1(t,i,e,n,r){if(i)r?t.addClass(e,n):t.removeClass(e,n);else{let o=-1===n.indexOf("-")?void 0:no.DashCase;null==r?t.removeStyle(e,n,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=no.Important),t.setStyle(e,n,r,o))}}(n,a,function Au(t,i){return dt(i[t])}(ki(),e),r,o))}(o,o.data[ki()],r,r[y],t,r[a+1]=function iN(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=tt(function Ji(t){return t instanceof is?t.changingThisBreaksApplicationSecurity:t}(t)))),t}(i,e),n,a)}(t,i,null,!0),Kt}function Yg(t,i,e,n,r){let o=null;const a=e.directiveEnd;let l=e.directiveStylingLast;for(-1===l?l=e.directiveStart:l++;l0;){const d=t[r],h=Array.isArray(d),f=h?d[1]:d,p=null===f;let _=e[r+1];_===me&&(_=p?ge:void 0);let b=p?Rp(_,n):f===n?_:void 0;if(h&&!Mh(b)&&(b=Rp(d,n)),Mh(b)&&(l=b,a))return l;const x=t[r+1];r=a?oo(x):as(x)}if(null!==i){let d=o?i.residualClasses:i.residualStyles;null!=d&&(l=Rp(d,n))}return l}function Mh(t){return void 0!==t}function Cc(t,i,e){const n=F();return bi(n,oa(),i)&&function en(t,i,e,n,r,o,a,l){const d=zi(i,e);let f,h=i.inputs;!l&&null!=h&&(f=h[n])?(Ng(t,e,f,n,r),Ko(i)&&function gP(t,i){const e=Ki(i,t);16&e[ce]||(e[ce]|=64)}(e,i.index)):3&i.type&&(n=function pP(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),r=null!=a?a(r,i.value||"",n):r,o.setProperty(d,n,r))}(Oe(),wt(),n,t,i,n[y],e,!0),Cc}const za="en-US";let YC=za;class ds{}class xD{}class i_ extends ds{constructor(i,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Tw(this);const r=gi(i);this._bootstrapComponents=br(r.bootstrap),this._r3Injector=W0(i,e,[{provide:ds,useValue:this},{provide:Ca,useValue:this.componentFactoryResolver},...n],tt(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class n_ extends xD{constructor(i){super(),this.moduleType=i}create(i){return new i_(this.moduleType,i,[])}}class wD extends ds{constructor(i){super(),this.componentFactoryResolver=new Tw(this),this.instance=null;const e=new ba([...i.providers,{provide:ds,useValue:this},{provide:Ca,useValue:this.componentFactoryResolver}],i.parent||oh(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function r_(t,i,e=null){return new wD({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}let kL=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const n=A0(0,e.type),r=n.length>0?r_([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=N({token:t,providedIn:"environment",factory:()=>new t(k(_n))})}return t})();function CD(t){t.getStandaloneInjector=i=>i.get(kL).getOrCreateStandaloneInjector(t)}function QL(){return this._results[Symbol.iterator]()}class Tc{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new Pe)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Tc.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=QL)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const r=function pn(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function PR(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n0&&(e[r-1][Xi]=i),n{class t{static#e=this.__NG_ELEMENT_ID__=r2}return t})();const t2=qt,n2=class extends t2{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){const r=function JL(t,i,e,n){const r=i.tView,l=fh(t,r,e,4096&t[ce]?4096:16,null,i,null,null,null,n?.injector??null,n?.hydrationInfo??null);l[Q]=t[i.index];const h=t[ct];return null!==h&&(l[ct]=h.createEmbeddedView(r)),Lg(r,l,e),l}(this._declarationLView,this._declarationTContainer,i,{injector:e,hydrationInfo:n});return new hc(r)}};function r2(){return Ah(si(),F())}function Ah(t,i){return 4&t.type?new n2(i,t,Da(t,i)):null}let Zt=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=d2}return t})();function d2(){return jD(si(),F())}const u2=Zt,VD=class extends u2{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Da(this._hostTNode,this._hostLView)}get injector(){return new Ei(this._hostTNode,this._hostLView)}get parentInjector(){const i=Lu(this._hostTNode,this._hostLView);if(kp(i)){const e=ql(i,this._hostLView),n=Gl(i);return new Ei(e[H].data[n+8],e)}return new Ei(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=zD(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-Ht}createEmbeddedView(i,e,n){let r,o;"number"==typeof n?r=n:null!=n&&(r=n.index,o=n.injector);const l=i.createEmbeddedViewImpl(e||{},o,null);return this.insertImpl(l,r,false),l}createComponent(i,e,n,r,o){const a=i&&!function Yl(t){return"function"==typeof t}(i);let l;if(a)l=e;else{const C=e||{};l=C.index,n=C.injector,r=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef}const d=a?i:new mc(Ee(i)),h=n||this.parentInjector;if(!o&&null==d.ngModule){const M=(a?h:this.parentInjector).get(_n,null);M&&(o=M)}Ee(d.componentType??{});const b=d.create(h,r,null,o);return this.insertImpl(b.hostView,l,false),b}insert(i,e){return this.insertImpl(i,e,!1)}insertImpl(i,e,n){const r=i._lView;if(function ZT(t){return ni(t[nt])}(r)){const d=this.indexOf(i);if(-1!==d)this.detach(d);else{const h=r[nt],f=new VD(h,h[c],h[nt]);f.detach(f.indexOf(i))}}const a=this._adjustIndex(e),l=this._lContainer;return e2(l,r,a,!n),i.attachToViewContainerRef(),Ix(s_(l),a,i),i}move(i,e){return this.insert(i,e)}indexOf(i){const e=zD(this._lContainer);return null!==e?e.indexOf(i):-1}remove(i){const e=this._adjustIndex(i,-1),n=Yu(this._lContainer,e);n&&(Vu(s_(this._lContainer),e),Up(n[H],n))}detach(i){const e=this._adjustIndex(i,-1),n=Yu(this._lContainer,e);return n&&null!=Vu(s_(this._lContainer),e)?new hc(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function zD(t){return t[8]}function s_(t){return t[8]||(t[8]=[])}function jD(t,i){let e;const n=i[t.index];return ni(n)?e=n:(e=bw(n,i,null,t),i[t.index]=e,ph(i,e)),HD(e,i,t,n),new VD(e,t,i)}let HD=function UD(t,i,e,n){if(t[ze])return;let r;r=8&e.type?dt(n):function h2(t,i){const e=t[y],n=e.createComment(""),r=zi(i,t);return ts(e,Xu(e,r),n,function I1(t,i){return t.nextSibling(i)}(e,r),!1),n}(i,e),t[ze]=r};class a_{constructor(i){this.queryList=i,this.matches=null}clone(){return new a_(this.queryList)}setDirty(){this.queryList.setDirty()}}class l_{constructor(i=[]){this.queries=i}createEmbeddedView(i){const e=i.queries;if(null!==e){const n=null!==i.contentQueries?i.contentQueries[0]:e.length,r=[];for(let o=0;o0)n.push(a[l/2]);else{const h=o[l+1],f=i[-d];for(let p=Ht;p{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=j(__,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const o=r();if(yc(o))e.push(o);else if(eC(o)){const a=new Promise((l,d)=>{o.subscribe({complete:l,error:d})});e.push(a)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(r=>{this.reject(r)}),0===e.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uM=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const Jn=new T("LocaleId",{providedIn:"root",factory:()=>j(Jn,xe.Optional|xe.SkipSelf)||function j2(){return typeof $localize<"u"&&$localize.locale||za}()});let hM=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new K(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class $2{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let mM=(()=>{class t{compileModuleSync(e){return new n_(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),o=br(gi(e).declarations).reduce((a,l)=>{const d=Ee(l);return d&&a.push(new mc(d)),a},[]);return new $2(n,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const _M=new T(""),Fh=new T("");let C_,x_=(()=>{class t{constructor(e,n,r){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,C_||(function hB(t){C_=t}(r),r.addToWindow(n)),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:()=>{re.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{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(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.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,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,n,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,n,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,r){return[]}static#e=this.\u0275fac=function(n){return new(n||t)(k(re),k(w_),k(Fh))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),w_=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}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,n=!0){return C_?.findTestabilityInTree(this,e,n)??null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),so=null;const vM=new T("AllowMultipleToken"),D_=new T("PlatformDestroyListeners"),M_=new T("appBootstrapListener");class yM{constructor(i,e){this.name=i,this.token=e}}function wM(t,i,e=[]){const n=`Platform: ${i}`,r=new T(n);return(o=[])=>{let a=k_();if(!a||a.injector.get(vM,!1)){const l=[...e,...o,{provide:r,useValue:!0}];t?t(l):function pB(t){if(so&&!so.get(vM,!1))throw new I(400,!1);(function bM(){!function OT(t){jy=t}(()=>{throw new I(600,!1)})})(),so=t;const i=t.get(DM);(function xM(t){t.get(F0,null)?.forEach(e=>e())})(t)}(function CM(t=[],i){return Ot.create({name:i,providers:[{provide:rg,useValue:"platform"},{provide:D_,useValue:new Set([()=>so=null])},...t]})}(l,n))}return function _B(t){const i=k_();if(!i)throw new I(401,!1);return i}()}}function k_(){return so?.get(DM)??null}let DM=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const r=function vB(t="zone.js",i){return"noop"===t?new ZO:"zone.js"===t?new re(i):t}(n?.ngZone,function MM(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return r.run(()=>{const o=function ML(t,i,e){return new i_(t,i,e)}(e.moduleType,this.injector,function AM(t){return[{provide:re,useFactory:t},{provide:rc,multi:!0,useFactory:()=>{const i=j(yB,{optional:!0});return()=>i.initialize()}},{provide:IM,useFactory:bB},{provide:X0,useFactory:K0}]}(()=>r)),a=o.injector.get(On,null);return r.runOutsideAngular(()=>{const l=r.onError.subscribe({next:d=>{a.handleError(d)}});o.onDestroy(()=>{Nh(this._modules,o),l.unsubscribe()})}),function kM(t,i,e){try{const n=e();return yc(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(a,r,()=>{const l=o.injector.get(v_);return l.runInitializers(),l.donePromise.then(()=>(function XC(t){fi(t,"Expected localeId to be defined"),"string"==typeof t&&(YC=t.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Jn,za)||za),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,n=[]){const r=EM({},n);return function mB(t,i,e){const n=new n_(e);return Promise.resolve(n)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const n=e.injector.get(ao);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new I(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new I(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(D_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(n){return new(n||t)(k(Ot))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function EM(t,i){return Array.isArray(i)?i.reduce(EM,t):{...t,...i}}let ao=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=j(IM),this.zoneIsStable=j(X0),this.componentTypes=[],this.components=[],this.isStable=j(hM).hasPendingTasks.pipe(yt(e=>e?z(!1):this.zoneIsStable),ru(),No()),this._injector=j(_n)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const r=e instanceof V0;if(!this._injector.get(v_).done)throw!r&&function hr(t){const i=Ee(t)||Mt(t)||It(t);return null!==i&&i.standalone}(e),new I(405,!1);let a;a=r?e:this._injector.get(Ca).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const l=function fB(t){return t.isBoundToModule}(a)?void 0:this._injector.get(ds),h=a.create(Ot.NULL,[],n||a.selector,l),f=h.location.nativeElement,p=h.injector.get(_M,null);return p?.registerApplication(f),h.onDestroy(()=>{this.detachView(h.hostView),Nh(this.components,h),p?.unregisterApplication(f)}),this._loadComponent(h),h}tick(){if(this._runningTick)throw new I(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;Nh(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(M_,[]);n.push(...this._bootstrapListeners),n.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Nh(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new I(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nh(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const IM=new T("",{providedIn:"root",factory:()=>j(On).handleError.bind(void 0)});function bB(){const t=j(re),i=j(On);return e=>t.runOutsideAngular(()=>i.handleError(e))}let yB=(()=>{class t{constructor(){this.zone=j(re),this.applicationRef=j(ao)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let lo=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=wB}return t})();function wB(t){return function CB(t,i,e){if(Ko(t)&&!e){const n=Ki(t.index,i);return new hc(n,n)}return 47&t.type?new hc(i[B],i):null}(si(),F(),16==(16&t))}const NB=wM(null,"core",[]);let LB=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(n){return new(n||t)(k(ao))};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({})}return t})(),R_=null;function co(){return R_}class KB{}const Ce=new T("DocumentToken");let O_=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:function(){return j(JB)},providedIn:"platform"})}return t})();const QB=new T("Location Initialized");let JB=(()=>{class t extends O_{constructor(){super(),this._doc=j(Ce),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return co().getBaseHref(this._doc)}onPopState(e){const n=co().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=co().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.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,n,r){this._history.pushState(e,n,r)}replaceState(e,n,r){this._history.replaceState(e,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function P_(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function ZM(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function wr(t){return t&&"?"!==t[0]?"?"+t:t}let hs=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:function(){return j(XM)},providedIn:"root"})}return t})();const YM=new T("appBaseHref");let XM=(()=>{class t extends hs{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??j(Ce).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 P_(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+wr(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${n}${r}`:n}pushState(e,n,r,o){const a=this.prepareExternalUrl(r+wr(o));this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){const a=this.prepareExternalUrl(r+wr(o));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(k(O_),k(YM,8))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),eV=(()=>{class t extends hs{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}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 n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=P_(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,r,o){let a=this.prepareExternalUrl(r+wr(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,n,a)}replaceState(e,n,r,o){let a=this.prepareExternalUrl(r+wr(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(k(O_),k(YM,8))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),Fc=(()=>{class t{constructor(e){this._subject=new Pe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function nV(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(ZM(KM(n))),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,n=""){return this.path()==this.normalize(e+wr(n))}normalize(e){return t.stripTrailingSlash(function iV(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,KM(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",r=null){this._locationStrategy.pushState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+wr(n)),r)}replaceState(e,n="",r=null){this._locationStrategy.replaceState(r,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+wr(n)),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(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(r=>r(e,n))}subscribe(e,n,r){return this._subject.subscribe({next:e,error:n,complete:r})}static#e=this.normalizeQueryParams=wr;static#t=this.joinWithSlash=P_;static#i=this.stripTrailingSlash=ZM;static#n=this.\u0275fac=function(n){return new(n||t)(k(hs))};static#r=this.\u0275prov=N({token:t,factory:function(){return function tV(){return new Fc(k(hs))}()},providedIn:"root"})}return t})();function KM(t){return t.replace(/\/index.html$/,"")}let Oi=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({})}return t})();const fk="browser";function pk(t){return"server"===t}let Cz=(()=>{class t{static#e=this.\u0275prov=N({token:t,providedIn:"root",factory:()=>new Dz(k(Ce),window)})}return t})();class Dz{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function Mz(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const o=r.shadowRoot;if(o){const a=o.getElementById(i)||o.querySelector(`[name="${i}"]`);if(a)return a}r=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.supportsScrolling()&&(this.window.history.scrollRestoration=i)}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Yz extends KB{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class K_ extends Yz{static makeCurrent(){!function XB(t){R_||(R_=t)}(new K_)}onAndCancel(i,e,n){return i.addEventListener(e,n),()=>{i.removeEventListener(e,n)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function Xz(){return Vc=Vc||document.querySelector("base"),Vc?Vc.getAttribute("href"):null}();return null==e?null:function Kz(t){Qh=Qh||document.createElement("a"),Qh.setAttribute("href",t);const i=Qh.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){Vc=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return function jV(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[r,o]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===i)return decodeURIComponent(o)}return null}(document.cookie,i)}}let Qh,Vc=null,Jz=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})();const Q_=new T("EventManagerPlugins");let yk=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,r){return this._findPluginFor(n).addEventListener(e,n,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new I(5101,!1);return this._eventNameToPlugin.set(e,n),n}static#e=this.\u0275fac=function(n){return new(n||t)(k(Q_),k(re))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})();class xk{constructor(i){this._doc=i}}const J_="ng-app-id";let wk=(()=>{class t{constructor(e,n,r,o={}){this.doc=e,this.appId=n,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=pk(o),this.resetHostNodes()}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.elements?.forEach(r=>r.remove()),n.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${J_}="${this.appId}"]`);if(e?.length){const n=new Map;return e.forEach(r=>{null!=r.textContent&&n.set(r.textContent,r)}),n}return null}changeUsageCount(e,n){const r=this.styleRef;if(r.has(e)){const o=r.get(e);return o.usage+=n,o.usage}return r.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){const r=this.styleNodesInDOM,o=r?.get(n);if(o?.parentNode===e)return r.delete(n),o.removeAttribute(J_),o;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=n,this.platformIsServer&&a.setAttribute(J_,this.appId),a}}addStyleToHost(e,n){const r=this.getStyleElement(e,n);e.appendChild(r);const o=this.styleRef,a=o.get(n)?.elements;a?a.push(r):o.set(n,{elements:[r],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||t)(k(Ce),k(sh),k(lg,8),k(rs))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})();const ev={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/"},tv=/%COMP%/g,nj=new T("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Dk(t,i){return i.map(e=>e.replace(tv,t))}let iv=(()=>{class t{constructor(e,n,r,o,a,l,d,h=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=l,this.ngZone=d,this.nonce=h,this.rendererByCompId=new Map,this.platformIsServer=pk(l),this.defaultRenderer=new nv(e,a,d,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===pi.ShadowDom&&(n={...n,encapsulation:pi.Emulated});const r=this.getOrCreateRenderer(e,n);return r instanceof kk?r.applyToHost(e):r instanceof rv&&r.applyStyles(),r}getOrCreateRenderer(e,n){const r=this.rendererByCompId;let o=r.get(n.id);if(!o){const a=this.doc,l=this.ngZone,d=this.eventManager,h=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(n.encapsulation){case pi.Emulated:o=new kk(d,h,n,this.appId,f,a,l,p);break;case pi.ShadowDom:return new aj(d,h,e,n,a,l,this.nonce,p);default:o=new rv(d,h,n,f,a,l,p)}r.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||t)(k(yk),k(wk),k(sh),k(nj),k(Ce),k(rs),k(re),k(lg))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})();class nv{constructor(i,e,n,r){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?this.doc.createElementNS(ev[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(Mk(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(Mk(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?this.doc.querySelector(i):i;if(!n)throw new I(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,r){if(r){e=r+":"+e;const o=ev[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const r=ev[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(no.DashCase|no.Important)?i.style.setProperty(e,n,r&no.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&no.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){if("string"==typeof i&&!(i=co().getGlobalEventTarget(this.doc,i)))throw new Error(`Unsupported event target ${i} for event ${e}`);return this.eventManager.addEventListener(i,e,this.decoratePreventDefault(n))}decoratePreventDefault(i){return e=>{if("__ngUnwrap__"===e)return i;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))&&e.preventDefault()}}}function Mk(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class aj extends nv{constructor(i,e,n,r,o,a,l,d){super(i,o,a,d),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const h=Dk(r.id,r.styles);for(const f of h){const p=document.createElement("style");l&&p.setAttribute("nonce",l),p.textContent=f,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class rv extends nv{constructor(i,e,n,r,o,a,l,d){super(i,o,a,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=d?Dk(d,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class kk extends rv{constructor(i,e,n,r,o,a,l,d){const h=r+"-"+n.id;super(i,e,n,o,a,l,d,h),this.contentAttr=function rj(t){return"_ngcontent-%COMP%".replace(tv,t)}(h),this.hostAttr=function oj(t){return"_nghost-%COMP%".replace(tv,t)}(h)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let lj=(()=>{class t extends xk{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,r){return e.addEventListener(n,r,!1),()=>this.removeEventListener(e,n,r)}removeEventListener(e,n,r){return e.removeEventListener(n,r)}static#e=this.\u0275fac=function(n){return new(n||t)(k(Ce))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})();const Ek=["alt","control","meta","shift"],cj={"\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"},dj={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let uj=(()=>{class t extends xk{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const o=t.parseEventName(n),a=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>co().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(n.pop());let a="",l=n.indexOf("code");if(l>-1&&(n.splice(l,1),a="code."),Ek.forEach(h=>{const f=n.indexOf(h);f>-1&&(n.splice(f,1),a+=h+".")}),a+=o,0!=n.length||0===o.length)return null;const d={};return d.domEventName=r,d.fullKey=a,d}static matchEventFullKeyCode(e,n){let r=cj[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Ek.forEach(a=>{a!==r&&(0,dj[a])(e)&&(o+=a+".")}),o+=r,o===n)}static eventCallback(e,n,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(n){return new(n||t)(k(Ce))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})();const pj=wM(NB,"browser",[{provide:rs,useValue:fk},{provide:F0,useValue:function hj(){K_.makeCurrent()},multi:!0},{provide:Ce,useFactory:function fj(){return function L1(t){Xp=t}(document),document},deps:[]}]),gj=new T(""),Ak=[{provide:Fh,useClass:class Qz{addToWindow(i){Ke.getAngularTestability=(n,r=!0)=>{const o=i.findTestabilityInTree(n,r);if(null==o)throw new I(5103,!1);return o},Ke.getAllAngularTestabilities=()=>i.getAllTestabilities(),Ke.getAllAngularRootElements=()=>i.getAllRootElements(),Ke.frameworkStabilizers||(Ke.frameworkStabilizers=[]),Ke.frameworkStabilizers.push(n=>{const r=Ke.getAllAngularTestabilities();let o=r.length,a=!1;const l=function(d){a=a||d,o--,0==o&&n(a)};r.forEach(d=>{d.whenStable(l)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?co().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:_M,useClass:x_,deps:[re,w_,Fh]},{provide:x_,useClass:x_,deps:[re,w_,Fh]}],Tk=[{provide:rg,useValue:"root"},{provide:On,useFactory:function mj(){return new On},deps:[]},{provide:Q_,useClass:lj,multi:!0,deps:[Ce,re,rs]},{provide:Q_,useClass:uj,multi:!0,deps:[Ce]},iv,wk,yk,{provide:ac,useExisting:iv},{provide:class kz{},useClass:Jz,deps:[]},[]];let Rk=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:sh,useValue:e.appId}]}}static#e=this.\u0275fac=function(n){return new(n||t)(k(gj,12))};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[...Tk,...Ak],imports:[Oi,LB]})}return t})(),Ok=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(n){return new(n||t)(k(Ce))};static#t=this.\u0275prov=N({token:t,factory:function(n){let r=null;return r=n?new n:function vj(){return new Ok(k(Ce))}(),r},providedIn:"root"})}return t})();typeof window<"u"&&window;const{isArray:Cj}=Array,{getPrototypeOf:Dj,prototype:Mj,keys:kj}=Object;const{isArray:Sj}=Array;function av(t){return fe(i=>function Ij(t,i){return Sj(i)?t(...i):t(i)}(t,i))}function em(...t){const i=Po(t),e=function tu(t){return De(Sl(t))?t.pop():void 0}(t),{args:n,keys:r}=function Bk(t){if(1===t.length){const i=t[0];if(Cj(i))return{args:i,keys:null};if(function Ej(t){return t&&"object"==typeof t&&Dj(t)===Mj}(i)){const e=kj(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}(t);if(0===n.length)return lt([],i);const o=new Xe(function Aj(t,i,e=Dt){return n=>{zk(i,()=>{const{length:r}=t,o=new Array(r);let a=r,l=r;for(let d=0;d{const h=lt(t[d],i);let f=!1;h.subscribe(Ne(n,p=>{o[d]=p,f||(f=!0,l--),l||n.next(e(o.slice()))},()=>{--a||n.complete()}))},n)},n)}}(n,i,r?a=>function Vk(t,i){return t.reduce((e,n,r)=>(e[n]=i[r],e),{})}(r,a):Dt));return e?o.pipe(av(e)):o}function zk(t,i,e){t?In(e,t,i):i()}const tm=Le(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function im(...t){return function Tj(){return Br(1)}()(lt(t,Po(t)))}function nm(t){return new Xe(i=>{Yt(t()).subscribe(i)})}function Wa(t,i){const e=De(t)?t:()=>t,n=r=>r.error(e());return new Xe(i?r=>i.schedule(n,0,r):n)}function lv(){return Ve((t,i)=>{let e=null;t._refCount++;const n=Ne(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class cv extends Xe{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Me(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new ft;const e=this.getSubject();i.add(this.source.subscribe(Ne(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=ft.EMPTY)}return i}refCount(){return lv()(this)}}function $i(t){return t<=0?()=>Gi:Ve((i,e)=>{let n=0;i.subscribe(Ne(e,r=>{++n<=t&&(e.next(r),t<=n&&e.complete())}))})}function rm(...t){const i=Po(t);return Ve((e,n)=>{(i?im(t,e,i):im(t,e)).subscribe(n)})}function ci(t,i){return Ve((e,n)=>{let r=0;e.subscribe(Ne(n,o=>t.call(i,o,r++)&&n.next(o)))})}function om(t){return Ve((i,e)=>{let n=!1;i.subscribe(Ne(e,r=>{n=!0,e.next(r)},()=>{n||e.next(t),e.complete()}))})}function jk(t=Rj){return Ve((i,e)=>{let n=!1;i.subscribe(Ne(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(t())))})}function Rj(){return new tm}function ms(t,i){const e=arguments.length>=2;return n=>n.pipe(t?ci((r,o)=>t(r,o,n)):Dt,$i(1),e?om(i):jk(()=>new tm))}function Ga(t,i){return De(i)?Tt(t,i,1):Tt(t,1)}function Bt(t,i,e){const n=De(t)||i||e?{next:t,error:i,complete:e}:t;return n?Ve((r,o)=>{var a;null===(a=n.subscribe)||void 0===a||a.call(n);let l=!0;r.subscribe(Ne(o,d=>{var h;null===(h=n.next)||void 0===h||h.call(n,d),o.next(d)},()=>{var d;l=!1,null===(d=n.complete)||void 0===d||d.call(n),o.complete()},d=>{var h;l=!1,null===(h=n.error)||void 0===h||h.call(n,d),o.error(d)},()=>{var d,h;l&&(null===(d=n.unsubscribe)||void 0===d||d.call(n)),null===(h=n.finalize)||void 0===h||h.call(n)}))}):Dt}function ho(t){return Ve((i,e)=>{let o,n=null,r=!1;n=i.subscribe(Ne(e,void 0,void 0,a=>{o=Yt(t(a,ho(t)(i))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function dv(t){return t<=0?()=>Gi:Ve((i,e)=>{let n=[];i.subscribe(Ne(e,r=>{n.push(r),t{for(const r of n)e.next(r);e.complete()},void 0,()=>{n=null}))})}function sm(t){return Ve((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function Pi(t){return Ve((i,e)=>{Yt(t).subscribe(Ne(e,()=>e.complete(),kn)),!e.closed&&i.subscribe(e)})}const ve="primary",zc=Symbol("RouteTitle");class Lj{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function qa(t){return new Lj(t)}function Bj(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.lengthn[o]===r)}return t===i}function Uk(t){return t.length>0?t[t.length-1]:null}function mo(t){return function Jh(t){return!!t&&(t instanceof Xe||De(t.lift)&&De(t.subscribe))}(t)?t:yc(t)?lt(Promise.resolve(t)):z(t)}const zj={exact:function Gk(t,i,e){if(!fs(t.segments,i.segments)||!am(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!Gk(t.children[n],i.children[n],e))return!1;return!0},subset:qk},$k={exact:function jj(t,i){return er(t,i)},subset:function Hj(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>Hk(t[e],i[e]))},ignored:()=>!0};function Wk(t,i,e){return zj[e.paths](t.root,i.root,e.matrixParams)&&$k[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function qk(t,i,e){return Zk(t,i,i.segments,e)}function Zk(t,i,e,n){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!fs(r,e)||i.hasChildren()||!am(r,e,n))}if(t.segments.length===e.length){if(!fs(t.segments,e)||!am(t.segments,e,n))return!1;for(const r in i.children)if(!t.children[r]||!qk(t.children[r],i.children[r],n))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(fs(t.segments,r)&&am(t.segments,r,n)&&t.children[ve])&&Zk(t.children[ve],i,o,n)}}function am(t,i,e){return i.every((n,r)=>$k[e](t[r].parameters,n.parameters))}class Za{constructor(i=new Ze([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=qa(this.queryParams)),this._queryParamMap}toString(){return Wj.serialize(this)}}class Ze{constructor(i,e){this.segments=i,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return lm(this)}}class jc{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=qa(this.parameters)),this._parameterMap}toString(){return Kk(this)}}function fs(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let Hc=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:function(){return new uv},providedIn:"root"})}return t})();class uv{parse(i){const e=new iH(i);return new Za(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${Uc(i.root,!0)}`,n=function Zj(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(r=>`${cm(e)}=${cm(r)}`).join("&"):`${cm(e)}=${cm(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function Gj(t){return encodeURI(t)}(i.fragment)}`:""}`}}const Wj=new uv;function lm(t){return t.segments.map(i=>Kk(i)).join("/")}function Uc(t,i){if(!t.hasChildren())return lm(t);if(i){const e=t.children[ve]?Uc(t.children[ve],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==ve&&n.push(`${r}:${Uc(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function $j(t,i){let e=[];return Object.entries(t.children).forEach(([n,r])=>{n===ve&&(e=e.concat(i(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==ve&&(e=e.concat(i(r,n)))}),e}(t,(n,r)=>r===ve?[Uc(t.children[ve],!1)]:[`${r}:${Uc(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[ve]?`${lm(t)}/${e[0]}`:`${lm(t)}/(${e.join("//")})`}}function Yk(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function cm(t){return Yk(t).replace(/%3B/gi,";")}function hv(t){return Yk(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dm(t){return decodeURIComponent(t)}function Xk(t){return dm(t.replace(/\+/g,"%20"))}function Kk(t){return`${hv(t.path)}${function qj(t){return Object.keys(t).map(i=>`;${hv(i)}=${hv(t[i])}`).join("")}(t.parameters)}`}const Yj=/^[^\/()?;#]+/;function mv(t){const i=t.match(Yj);return i?i[0]:""}const Xj=/^[^\/()?;=#]+/,Qj=/^[^=?&#]+/,eH=/^[^&#]+/;class iH{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ze([],{}):new Ze([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[ve]=new Ze(i,e)),n}parseSegment(){const i=mv(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(i),new jc(dm(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=function Kj(t){const i=t.match(Xj);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=mv(this.remaining);r&&(n=r,this.capture(n))}i[dm(e)]=dm(n)}parseQueryParam(i){const e=function Jj(t){const i=t.match(Qj);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const a=function tH(t){const i=t.match(eH);return i?i[0]:""}(this.remaining);a&&(n=a,this.capture(n))}const r=Xk(e),o=Xk(n);if(i.hasOwnProperty(r)){let a=i[r];Array.isArray(a)||(a=[a],i[r]=a),a.push(o)}else i[r]=o}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=mv(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new I(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):i&&(o=ve);const a=this.parseChildren();e[o]=1===Object.keys(a).length?a[ve]:new Ze([],a),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new I(4011,!1)}}function Qk(t){return t.segments.length>0?new Ze([],{[ve]:t}):t}function Jk(t){const i={};for(const n of Object.keys(t.children)){const o=Jk(t.children[n]);if(n===ve&&0===o.segments.length&&o.hasChildren())for(const[a,l]of Object.entries(o.children))i[a]=l;else(o.segments.length>0||o.hasChildren())&&(i[n]=o)}return function nH(t){if(1===t.numberOfChildren&&t.children[ve]){const i=t.children[ve];return new Ze(t.segments.concat(i.segments),i.children)}return t}(new Ze(t.segments,i))}function ps(t){return t instanceof Za}function eE(t){let i;const r=Qk(function e(o){const a={};for(const d of o.children){const h=e(d);a[d.outlet]=h}const l=new Ze(o.url,a);return o===t&&(i=l),l}(t.root));return i??r}function tE(t,i,e,n){let r=t;for(;r.parent;)r=r.parent;if(0===i.length)return fv(r,r,r,e,n);const o=function oH(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new nE(!0,0,t);let i=0,e=!1;const n=t.reduce((r,o,a)=>{if("object"==typeof o&&null!=o){if(o.outlets){const l={};return Object.entries(o.outlets).forEach(([d,h])=>{l[d]="string"==typeof h?h.split("/"):h}),[...r,{outlets:l}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===a?(o.split("/").forEach((l,d)=>{0==d&&"."===l||(0==d&&""===l?e=!0:".."===l?i++:""!=l&&r.push(l))}),r):[...r,o]},[]);return new nE(e,i,n)}(i);if(o.toRoot())return fv(r,r,new Ze([],{}),e,n);const a=function sH(t,i,e){if(t.isAbsolute)return new hm(i,!0,0);if(!e)return new hm(i,!1,NaN);if(null===e.parent)return new hm(e,!0,0);const n=um(t.commands[0])?0:1;return function aH(t,i,e){let n=t,r=i,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new I(4005,!1);r=n.segments.length}return new hm(n,!1,r-o)}(e,e.segments.length-1+n,t.numberOfDoubleDots)}(o,r,t),l=a.processChildren?Wc(a.segmentGroup,a.index,o.commands):rE(a.segmentGroup,a.index,o.commands);return fv(r,a.segmentGroup,l,e,n)}function um(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function $c(t){return"object"==typeof t&&null!=t&&t.outlets}function fv(t,i,e,n,r){let a,o={};n&&Object.entries(n).forEach(([d,h])=>{o[d]=Array.isArray(h)?h.map(f=>`${f}`):`${h}`}),a=t===i?e:iE(t,i,e);const l=Qk(Jk(a));return new Za(l,o,r)}function iE(t,i,e){const n={};return Object.entries(t.children).forEach(([r,o])=>{n[r]=o===i?e:iE(o,i,e)}),new Ze(t.segments,n)}class nE{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&um(n[0]))throw new I(4003,!1);const r=n.find($c);if(r&&r!==Uk(n))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class hm{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function rE(t,i,e){if(t||(t=new Ze([],{})),0===t.segments.length&&t.hasChildren())return Wc(t,i,e);const n=function cH(t,i,e){let n=0,r=i;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const a=t.segments[r],l=e[n];if($c(l))break;const d=`${l}`,h=n0&&void 0===d)break;if(d&&h&&"object"==typeof h&&void 0===h.outlets){if(!sE(d,h,a))return o;n+=2}else{if(!sE(d,{},a))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}(t,i,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndexo!==ve)&&t.children[ve]&&1===t.numberOfChildren&&0===t.children[ve].segments.length){const o=Wc(t.children[ve],i,e);return new Ze(t.segments,o.children)}return Object.entries(n).forEach(([o,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(r[o]=rE(t.children[o],i,a))}),Object.entries(t.children).forEach(([o,a])=>{void 0===n[o]&&(r[o]=a)}),new Ze(t.segments,r)}}function pv(t,i,e){const n=t.segments.slice(0,i);let r=0;for(;r{"string"==typeof n&&(n=[n]),null!==n&&(i[e]=pv(new Ze([],{}),0,n))}),i}function oE(t){const i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function sE(t,i,e){return t==e.path&&er(i,e.parameters)}const Gc="imperative";class tr{constructor(i,e){this.id=i,this.url=e}}class mm extends tr{constructor(i,e,n="imperative",r=null){super(i,e),this.type=0,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class fo extends tr{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class qc extends tr{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ya extends tr{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=16}}class fm extends tr{constructor(i,e,n,r){super(i,e),this.error=n,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aE extends tr{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uH extends tr{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hH extends tr{constructor(i,e,n,r,o){super(i,e),this.urlAfterRedirects=n,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 mH extends tr{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fH extends tr{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pH{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class gH{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _H{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vH{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bH{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yH{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lE{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class gv{}class _v{constructor(i){this.url=i}}class xH{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Zc,this.attachRef=null}}let Zc=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new xH,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class cE{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=vv(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=vv(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=bv(i,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==i)}pathFromRoot(i){return bv(i,this._root).map(e=>e.value)}}function vv(t,i){if(t===i.value)return i;for(const e of i.children){const n=vv(t,e);if(n)return n}return null}function bv(t,i){if(t===i.value)return[i];for(const e of i.children){const n=bv(t,e);if(n.length)return n.unshift(i),n}return[]}class Mr{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function Xa(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class dE extends cE{constructor(i,e){super(i),this.snapshot=e,yv(this,i)}toString(){return this.snapshot.toString()}}function uE(t,i){const e=function wH(t,i){const a=new pm([],{},{},"",{},ve,i,null,{});return new mE("",new Mr(a,[]))}(0,i),n=new K([new jc("",{})]),r=new K({}),o=new K({}),a=new K({}),l=new K(""),d=new Ka(n,r,a,l,o,ve,i,e.root);return d.snapshot=e.root,new dE(new Mr(d,[]),e)}class Ka{constructor(i,e,n,r,o,a,l,d){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=l,this._futureSnapshot=d,this.title=this.dataSubject?.pipe(fe(h=>h[zc]))??z(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(fe(i=>qa(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(fe(i=>qa(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function hE(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const r=e[n],o=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return function CH(t){return t.reduce((i,e)=>({params:{...i.params,...e.params},data:{...i.data,...e.data},resolve:{...e.data,...i.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class pm{get title(){return this.data?.[zc]}constructor(i,e,n,r,o,a,l,d,h){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=a,this.component=l,this.routeConfig=d,this._resolve=h}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=qa(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=qa(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class mE extends cE{constructor(i,e){super(e),this.url=i,yv(this,e)}toString(){return fE(this._root)}}function yv(t,i){i.value._routerState=t,i.children.forEach(e=>yv(t,e))}function fE(t){const i=t.children.length>0?` { ${t.children.map(fE).join(", ")} } `:"";return`${t.value}${i}`}function xv(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,er(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),er(i.params,e.params)||t.paramsSubject.next(e.params),function Vj(t,i){if(t.length!==i.length)return!1;for(let e=0;eer(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||wv(t.parent,i.parent))}let pE=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=ve,this.activateEvents=new Pe,this.deactivateEvents=new Pe,this.attachEvents=new Pe,this.detachEvents=new Pe,this.parentContexts=j(Zc),this.location=j(Zt),this.changeDetector=j(lo),this.environmentInjector=j(_n),this.inputBinder=j(gm,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:r}=e.name;if(n)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),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,n){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=e;const r=this.location,a=e.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,d=new DH(e,l,r.injector);this.activated=r.createComponent(a,{index:r.length,injector:d,environmentInjector:n??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=O({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[oi]})}return t})();class DH{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===Ka?this.route:i===Zc?this.childContexts:this.parent.get(i,e)}}const gm=new T("");let gE=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:n}=e,r=em([n.queryParams,n.params,n.data]).pipe(yt(([o,a,l],d)=>(l={...o,...a,...l},0===d?z(l):Promise.resolve(l)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||null===n.component)return void this.unsubscribeFromRouteData(e);const a=function YB(t){const i=Ee(t);if(!i)return null;const e=new mc(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}(n.component);if(a)for(const{templateName:l}of a.inputs)e.activatedComponentRef.setInput(l,o[l]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,r)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function Yc(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const r=function kH(t,i,e){return i.children.map(n=>{for(const r of e.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return Yc(t,n,r);return Yc(t,n)})}(t,i,e);return new Mr(n,r)}{if(t.shouldAttach(i.value)){const o=t.retrieve(i.value);if(null!==o){const a=o.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(l=>Yc(t,l)),a}}const n=function EH(t){return new Ka(new K(t.url),new K(t.params),new K(t.queryParams),new K(t.fragment),new K(t.data),t.outlet,t.component,t)}(i.value),r=i.children.map(o=>Yc(t,o));return new Mr(n,r)}}const Cv="ngNavigationCancelingError";function _E(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=ps(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=vE(!1,0,i);return r.url=e,r.navigationBehaviorOptions=n,r}function vE(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[Cv]=!0,n.cancellationCode=i,e&&(n.url=e),n}function bE(t){return t&&t[Cv]}let yE=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=it({type:t,selectors:[["ng-component"]],standalone:!0,features:[CD],decls:1,vars:0,template:function(n,r){1&n&&Si(0,"router-outlet")},dependencies:[pE],encapsulation:2})}return t})();function Dv(t){const i=t.children&&t.children.map(Dv),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==ve&&(e.component=yE),e}function Bn(t){return t.outlet||ve}function Xc(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class FH{constructor(i,e,n,r,o){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),xv(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const r=Xa(e);i.children.forEach(o=>{const a=o.value.outlet;this.deactivateRoutes(o,r[a],n),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(i,e,n){const r=i.value,o=e?e.value:null;if(r===o)if(r.component){const a=n.getContext(r.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=Xa(i);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);if(n&&n.outlet){const a=n.outlet.detach(),l=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:l})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=Xa(i);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){const r=Xa(e);i.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new yH(o.value.snapshot))}),i.children.length&&this.forwardEvent(new vH(i.value.snapshot))}activateRoutes(i,e,n){const r=i.value,o=e?e.value:null;if(xv(r),r===o)if(r.component){const a=n.getOrCreateContext(r.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(r.component){const a=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const l=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(l.contexts),a.attachRef=l.componentRef,a.route=l.route.value,a.outlet&&a.outlet.attach(l.componentRef,l.route.value),xv(l.route.value),this.activateChildRoutes(i,null,a.children)}else{const l=Xc(r.snapshot);a.attachRef=null,a.route=r,a.injector=l,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(i,null,a.children)}}else this.activateChildRoutes(i,null,n)}}class xE{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class _m{constructor(i,e){this.component=i,this.route=e}}function NH(t,i,e){const n=t._root;return Kc(n,i?i._root:null,e,[n.value])}function Qa(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function Tl(t){return null!==Hs(t)}(t)?i.get(t):t:n}function Kc(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Xa(i);return t.children.forEach(a=>{(function BH(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=i?i.value:null,l=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const d=function VH(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!fs(t.url,i.url);case"pathParamsOrQueryParamsChange":return!fs(t.url,i.url)||!er(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!wv(t,i)||!er(t.queryParams,i.queryParams);default:return!wv(t,i)}}(a,o,o.routeConfig.runGuardsAndResolvers);d?r.canActivateChecks.push(new xE(n)):(o.data=a.data,o._resolvedData=a._resolvedData),Kc(t,i,o.component?l?l.children:null:e,n,r),d&&l&&l.outlet&&l.outlet.isActivated&&r.canDeactivateChecks.push(new _m(l.outlet.component,a))}else a&&Qc(i,l,r),r.canActivateChecks.push(new xE(n)),Kc(t,null,o.component?l?l.children:null:e,n,r)})(a,o[a.value.outlet],e,n.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,l])=>Qc(l,e.getContext(a),r)),r}function Qc(t,i,e){const n=Xa(t),r=t.value;Object.entries(n).forEach(([o,a])=>{Qc(a,r.component?i?i.children.getContext(o):null:i,e)}),e.canDeactivateChecks.push(new _m(r.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,r))}function Jc(t){return"function"==typeof t}function wE(t){return t instanceof tm||"EmptyError"===t?.name}const vm=Symbol("INITIAL_VALUE");function Ja(){return yt(t=>em(t.map(i=>i.pipe($i(1),rm(vm)))).pipe(fe(i=>{for(const e of i)if(!0!==e){if(e===vm)return vm;if(!1===e||e instanceof Za)return e}return!0}),ci(i=>i!==vm),$i(1)))}function CE(t){return function So(...t){return de(t)}(Bt(i=>{if(ps(i))throw _E(0,i)}),fe(i=>!0===i))}class bm{constructor(i){this.segmentGroup=i||null}}class DE{constructor(i){this.urlTree=i}}function el(t){return Wa(new bm(t))}function ME(t){return Wa(new DE(t))}class s3{constructor(i,e){this.urlSerializer=i,this.urlTree=e}noMatchError(i){return new I(4002,!1)}lineralizeSegments(i,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return z(n);if(r.numberOfChildren>1||!r.children[ve])return Wa(new I(4e3,!1));r=r.children[ve]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreateUrlTree(i,e,n,r){const o=this.createSegmentGroup(i,e.root,n,r);return new Za(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return Object.entries(i).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const l=o.substring(1);n[r]=e[l]}else n[r]=o}),n}createSegmentGroup(i,e,n,r){const o=this.createSegments(i,e.segments,n,r);let a={};return Object.entries(e.children).forEach(([l,d])=>{a[l]=this.createSegmentGroup(i,d,n,r)}),new Ze(o,a)}createSegments(i,e,n,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(i,o,r):this.findOrReturn(o,n))}findPosParam(i,e,n){const r=n[e.path.substring(1)];if(!r)throw new I(4001,!1);return r}findOrReturn(i,e){let n=0;for(const r of e){if(r.path===i.path)return e.splice(n),r;n++}return i}}const Mv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function a3(t,i,e,n,r){const o=kv(t,i,e);return o.matched?(n=function IH(t,i){return t.providers&&!t._injector&&(t._injector=r_(t.providers,i,`Route: ${t.path}`)),t._injector??i}(i,n),function n3(t,i,e,n){const r=i.canMatch;return r&&0!==r.length?z(r.map(a=>{const l=Qa(a,t);return mo(function WH(t){return t&&Jc(t.canMatch)}(l)?l.canMatch(i,e):t.runInContext(()=>l(i,e)))})).pipe(Ja(),CE()):z(!0)}(n,i,e).pipe(fe(a=>!0===a?o:{...Mv}))):z(o)}function kv(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...Mv}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(i.matcher||Bj)(e,t,i);if(!r)return{...Mv};const o={};Object.entries(r.posParams??{}).forEach(([l,d])=>{o[l]=d.path});const a=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:a,positionalParamSegments:r.posParams??{}}}function kE(t,i,e,n){return e.length>0&&function d3(t,i,e){return e.some(n=>ym(t,i,n)&&Bn(n)!==ve)}(t,e,n)?{segmentGroup:new Ze(i,c3(n,new Ze(e,t.children))),slicedSegments:[]}:0===e.length&&function u3(t,i,e){return e.some(n=>ym(t,i,n))}(t,e,n)?{segmentGroup:new Ze(t.segments,l3(t,0,e,n,t.children)),slicedSegments:e}:{segmentGroup:new Ze(t.segments,t.children),slicedSegments:e}}function l3(t,i,e,n,r){const o={};for(const a of n)if(ym(t,e,a)&&!r[Bn(a)]){const l=new Ze([],{});o[Bn(a)]=l}return{...r,...o}}function c3(t,i){const e={};e[ve]=i;for(const n of t)if(""===n.path&&Bn(n)!==ve){const r=new Ze([],{});e[Bn(n)]=r}return e}function ym(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}class p3{constructor(i,e,n,r,o,a,l){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=l,this.allowRedirects=!0,this.applyRedirects=new s3(this.urlSerializer,this.urlTree)}noMatchError(i){return new I(4002,!1)}recognize(){const i=kE(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,ve).pipe(ho(e=>{if(e instanceof DE)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof bm?this.noMatchError(e):e}),fe(e=>{const n=new pm([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ve,this.rootComponentType,null,{}),r=new Mr(n,e),o=new mE("",r),a=function rH(t,i,e=null,n=null){return tE(eE(t),i,e,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(o._root),{state:o,tree:a}}))}match(i){return this.processSegmentGroup(this.injector,this.config,i.root,ve).pipe(ho(n=>{throw n instanceof bm?this.noMatchError(n):n}))}inheritParamsAndData(i){const e=i.value,n=hE(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(i,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,r,!0)}processChildren(i,e,n){const r=[];for(const o of Object.keys(n.children))"primary"===o?r.unshift(o):r.push(o);return lt(r).pipe(Ga(o=>{const a=n.children[o],l=function OH(t,i){const e=t.filter(n=>Bn(n)===i);return e.push(...t.filter(n=>Bn(n)!==i)),e}(e,o);return this.processSegmentGroup(i,l,a,o)}),function Pj(t,i){return Ve(function Oj(t,i,e,n,r){return(o,a)=>{let l=e,d=i,h=0;o.subscribe(Ne(a,f=>{const p=h++;d=l?t(d,f,p):(l=!0,f),n&&a.next(d)},r&&(()=>{l&&a.next(d),a.complete()})))}}(t,i,arguments.length>=2,!0))}((o,a)=>(o.push(...a),o)),om(null),function Fj(t,i){const e=arguments.length>=2;return n=>n.pipe(t?ci((r,o)=>t(r,o,n)):Dt,dv(1),e?om(i):jk(()=>new tm))}(),Tt(o=>{if(null===o)return el(n);const a=EE(o);return function g3(t){t.sort((i,e)=>i.value.outlet===ve?-1:e.value.outlet===ve?1:i.value.outlet.localeCompare(e.value.outlet))}(a),z(a)}))}processSegment(i,e,n,r,o,a){return lt(e).pipe(Ga(l=>this.processSegmentAgainstRoute(l._injector??i,e,l,n,r,o,a).pipe(ho(d=>{if(d instanceof bm)return z(null);throw d}))),ms(l=>!!l),ho(l=>{if(wE(l))return function m3(t,i,e){return 0===i.length&&!t.children[e]}(n,r,o)?z([]):el(n);throw l}))}processSegmentAgainstRoute(i,e,n,r,o,a,l){return function h3(t,i,e,n){return!!(Bn(t)===n||n!==ve&&ym(i,e,t))&&("**"===t.path||kv(i,t,e).matched)}(n,r,o,a)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(i,r,n,o,a,l):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,r,e,n,o,a):el(r):el(r)}expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,r){const o=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ME(o):this.applyRedirects.lineralizeSegments(n,o).pipe(Tt(a=>{const l=new Ze(a,{});return this.processSegment(i,e,l,a,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,r,o,a){const{matched:l,consumedSegments:d,remainingSegments:h,positionalParamSegments:f}=kv(e,r,o);if(!l)return el(e);const p=this.applyRedirects.applyRedirectCommands(d,r.redirectTo,f);return r.redirectTo.startsWith("/")?ME(p):this.applyRedirects.lineralizeSegments(r,p).pipe(Tt(_=>this.processSegment(i,n,e,_.concat(h),a,!1)))}matchSegmentAgainstRoute(i,e,n,r,o,a){let l;if("**"===n.path){const d=r.length>0?Uk(r).parameters:{};l=z({snapshot:new pm(r,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SE(n),Bn(n),n.component??n._loadedComponent??null,n,IE(n)),consumedSegments:[],remainingSegments:[]}),e.children={}}else l=a3(e,n,r,i).pipe(fe(({matched:d,consumedSegments:h,remainingSegments:f,parameters:p})=>d?{snapshot:new pm(h,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SE(n),Bn(n),n.component??n._loadedComponent??null,n,IE(n)),consumedSegments:h,remainingSegments:f}:null));return l.pipe(yt(d=>null===d?el(e):this.getChildConfig(i=n._injector??i,n,r).pipe(yt(({routes:h})=>{const f=n._loadedInjector??i,{snapshot:p,consumedSegments:_,remainingSegments:b}=d,{segmentGroup:x,slicedSegments:C}=kE(e,_,b,h);if(0===C.length&&x.hasChildren())return this.processChildren(f,h,x).pipe(fe(R=>null===R?null:[new Mr(p,R)]));if(0===h.length&&0===C.length)return z([new Mr(p,[])]);const M=Bn(n)===o;return this.processSegment(f,h,x,C,M?ve:o,!0).pipe(fe(R=>[new Mr(p,R)]))}))))}getChildConfig(i,e,n){return e.children?z({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?z({routes:e._loadedRoutes,injector:e._loadedInjector}):function t3(t,i,e,n){const r=i.canLoad;return void 0===r||0===r.length?z(!0):z(r.map(a=>{const l=Qa(a,t);return mo(function jH(t){return t&&Jc(t.canLoad)}(l)?l.canLoad(i,e):t.runInContext(()=>l(i,e)))})).pipe(Ja(),CE())}(i,e,n).pipe(Tt(r=>r?this.configLoader.loadChildren(i,e).pipe(Bt(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function o3(t){return Wa(vE(!1,3))}())):z({routes:[],injector:i})}}function _3(t){const i=t.value.routeConfig;return i&&""===i.path}function EE(t){const i=[],e=new Set;for(const n of t){if(!_3(n)){i.push(n);continue}const r=i.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...n.children),e.add(r)):i.push(n)}for(const n of e){const r=EE(n.children);i.push(new Mr(n.value,r))}return i.filter(n=>!e.has(n))}function SE(t){return t.data||{}}function IE(t){return t.resolve||{}}function AE(t){return"string"==typeof t.title||null===t.title}function Ev(t){return yt(i=>{const e=t(i);return e?lt(e).pipe(fe(()=>i)):z(i)})}const tl=new T("ROUTES");let Sv=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=j(mM)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return z(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=mo(e.loadComponent()).pipe(fe(TE),Bt(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),sm(()=>{this.componentLoaders.delete(e)})),r=new cv(n,()=>new W).pipe(lv());return this.componentLoaders.set(e,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return z({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const o=function D3(t,i,e,n){return mo(t.loadChildren()).pipe(fe(TE),Tt(r=>r instanceof xD||Array.isArray(r)?z(r):lt(i.compileModuleAsync(r))),fe(r=>{n&&n(t);let o,a,l=!1;return Array.isArray(r)?(a=r,!0):(o=r.create(e).injector,a=o.get(tl,[],{optional:!0,self:!0}).flat()),{routes:a.map(Dv),injector:o}}))}(n,this.compiler,e,this.onLoadEndListener).pipe(sm(()=>{this.childrenLoaders.delete(n)})),a=new cv(o,()=>new W).pipe(lv());return this.childrenLoaders.set(n,a),a}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function TE(t){return function M3(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let xm=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new W,this.transitionAbortSubject=new W,this.configLoader=j(Sv),this.environmentInjector=j(_n),this.urlSerializer=j(Hc),this.rootContexts=j(Zc),this.inputBindingEnabled=null!==j(gm,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>z(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new gH(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new pH(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e,n,r){return this.transitions=new K({id:0,currentUrlTree:n,currentRawUrl:n,currentBrowserUrl:n,extractedUrl:e.urlHandlingStrategy.extract(n),urlAfterRedirects:e.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Gc,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ci(o=>0!==o.id),fe(o=>({...o,extractedUrl:e.urlHandlingStrategy.extract(o.rawUrl)})),yt(o=>{this.currentTransition=o;let a=!1,l=!1;return z(o).pipe(Bt(d=>{this.currentNavigation={id:d.id,initialUrl:d.rawUrl,extractedUrl:d.extractedUrl,trigger:d.source,extras:d.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),yt(d=>{const h=d.currentBrowserUrl.toString(),f=!e.navigated||d.extractedUrl.toString()!==h||h!==d.currentUrlTree.toString();if(!f&&"reload"!==(d.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const _="";return this.events.next(new Ya(d.id,this.urlSerializer.serialize(d.rawUrl),_,0)),d.resolve(null),Gi}if(e.urlHandlingStrategy.shouldProcessUrl(d.rawUrl))return z(d).pipe(yt(_=>{const b=this.transitions?.getValue();return this.events.next(new mm(_.id,this.urlSerializer.serialize(_.extractedUrl),_.source,_.restoredState)),b!==this.transitions?.getValue()?Gi:Promise.resolve(_)}),function v3(t,i,e,n,r,o){return Tt(a=>function f3(t,i,e,n,r,o,a="emptyOnly"){return new p3(t,i,e,n,r,a,o).recognize()}(t,i,e,n,a.extractedUrl,r,o).pipe(fe(({state:l,tree:d})=>({...a,targetSnapshot:l,urlAfterRedirects:d}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Bt(_=>{o.targetSnapshot=_.targetSnapshot,o.urlAfterRedirects=_.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:_.urlAfterRedirects};const b=new aE(_.id,this.urlSerializer.serialize(_.extractedUrl),this.urlSerializer.serialize(_.urlAfterRedirects),_.targetSnapshot);this.events.next(b)}));if(f&&e.urlHandlingStrategy.shouldProcessUrl(d.currentRawUrl)){const{id:_,extractedUrl:b,source:x,restoredState:C,extras:M}=d,R=new mm(_,this.urlSerializer.serialize(b),x,C);this.events.next(R);const E=uE(0,this.rootComponentType).snapshot;return this.currentTransition=o={...d,targetSnapshot:E,urlAfterRedirects:b,extras:{...M,skipLocationChange:!1,replaceUrl:!1}},z(o)}{const _="";return this.events.next(new Ya(d.id,this.urlSerializer.serialize(d.extractedUrl),_,1)),d.resolve(null),Gi}}),Bt(d=>{const h=new uH(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}),fe(d=>(this.currentTransition=o={...d,guards:NH(d.targetSnapshot,d.currentSnapshot,this.rootContexts)},o)),function qH(t,i){return Tt(e=>{const{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return 0===a.length&&0===o.length?z({...e,guardsResult:!0}):function ZH(t,i,e,n){return lt(t).pipe(Tt(r=>function e3(t,i,e,n,r){const o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return o&&0!==o.length?z(o.map(l=>{const d=Xc(i)??r,h=Qa(l,d);return mo(function $H(t){return t&&Jc(t.canDeactivate)}(h)?h.canDeactivate(t,i,e,n):d.runInContext(()=>h(t,i,e,n))).pipe(ms())})).pipe(Ja()):z(!0)}(r.component,r.route,e,i,n)),ms(r=>!0!==r,!0))}(a,n,r,t).pipe(Tt(l=>l&&function zH(t){return"boolean"==typeof t}(l)?function YH(t,i,e,n){return lt(i).pipe(Ga(r=>im(function KH(t,i){return null!==t&&i&&i(new _H(t)),z(!0)}(r.route.parent,n),function XH(t,i){return null!==t&&i&&i(new bH(t)),z(!0)}(r.route,n),function JH(t,i,e){const n=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(a=>function LH(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(a)).filter(a=>null!==a).map(a=>nm(()=>z(a.guards.map(d=>{const h=Xc(a.node)??e,f=Qa(d,h);return mo(function UH(t){return t&&Jc(t.canActivateChild)}(f)?f.canActivateChild(n,t):h.runInContext(()=>f(n,t))).pipe(ms())})).pipe(Ja())));return z(o).pipe(Ja())}(t,r.path,e),function QH(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return z(!0);const r=n.map(o=>nm(()=>{const a=Xc(i)??e,l=Qa(o,a);return mo(function HH(t){return t&&Jc(t.canActivate)}(l)?l.canActivate(i,t):a.runInContext(()=>l(i,t))).pipe(ms())}));return z(r).pipe(Ja())}(t,r.route,e))),ms(r=>!0!==r,!0))}(n,o,t,i):z(l)),fe(l=>({...e,guardsResult:l})))})}(this.environmentInjector,d=>this.events.next(d)),Bt(d=>{if(o.guardsResult=d.guardsResult,ps(d.guardsResult))throw _E(0,d.guardsResult);const h=new hH(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot,!!d.guardsResult);this.events.next(h)}),ci(d=>!!d.guardsResult||(this.cancelNavigationTransition(d,"",3),!1)),Ev(d=>{if(d.guards.canActivateChecks.length)return z(d).pipe(Bt(h=>{const f=new mH(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}),yt(h=>{let f=!1;return z(h).pipe(function b3(t,i){return Tt(e=>{const{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return z(e);let o=0;return lt(r).pipe(Ga(a=>function y3(t,i,e,n){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!AE(r)&&(o[zc]=r.title),function x3(t,i,e,n){const r=function w3(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return z({});const o={};return lt(r).pipe(Tt(a=>function C3(t,i,e,n){const r=Xc(i)??n,o=Qa(t,r);return mo(o.resolve?o.resolve(i,e):r.runInContext(()=>o(i,e)))}(t[a],i,e,n).pipe(ms(),Bt(l=>{o[a]=l}))),dv(1),function Nj(t){return fe(()=>t)}(o),ho(a=>wE(a)?Gi:Wa(a)))}(o,t,i,n).pipe(fe(a=>(t._resolvedData=a,t.data=hE(t,e).resolve,r&&AE(r)&&(t.data[zc]=r.title),null)))}(a.route,n,t,i)),Bt(()=>o++),dv(1),Tt(a=>o===r.length?z(e):Gi))})}(e.paramsInheritanceStrategy,this.environmentInjector),Bt({next:()=>f=!0,complete:()=>{f||this.cancelNavigationTransition(h,"",2)}}))}),Bt(h=>{const f=new fH(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}))}),Ev(d=>{const h=f=>{const p=[];f.routeConfig?.loadComponent&&!f.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(f.routeConfig).pipe(Bt(_=>{f.component=_}),fe(()=>{})));for(const _ of f.children)p.push(...h(_));return p};return em(h(d.targetSnapshot.root)).pipe(om(),$i(1))}),Ev(()=>this.afterPreactivation()),fe(d=>{const h=function MH(t,i,e){const n=Yc(t,i._root,e?e._root:void 0);return new dE(n,i)}(e.routeReuseStrategy,d.targetSnapshot,d.currentRouterState);return this.currentTransition=o={...d,targetRouterState:h},o}),Bt(()=>{this.events.next(new gv)}),((t,i,e,n)=>fe(r=>(new FH(i,r.targetRouterState,r.currentRouterState,e,n).activate(t),r)))(this.rootContexts,e.routeReuseStrategy,d=>this.events.next(d),this.inputBindingEnabled),$i(1),Bt({next:d=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new fo(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects))),e.titleStrategy?.updateTitle(d.targetRouterState.snapshot),d.resolve(!0)},complete:()=>{a=!0}}),Pi(this.transitionAbortSubject.pipe(Bt(d=>{throw d}))),sm(()=>{a||l||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),ho(d=>{if(l=!0,bE(d))this.events.next(new qc(o.id,this.urlSerializer.serialize(o.extractedUrl),d.message,d.cancellationCode)),function SH(t){return bE(t)&&ps(t.url)}(d)?this.events.next(new _v(d.url)):o.resolve(!1);else{this.events.next(new fm(o.id,this.urlSerializer.serialize(o.extractedUrl),d,o.targetSnapshot??void 0));try{o.resolve(e.errorHandler(d))}catch(h){o.reject(h)}}return Gi}))}))}cancelNavigationTransition(e,n,r){const o=new qc(e.id,this.urlSerializer.serialize(e.extractedUrl),n,r);this.events.next(o),e.resolve(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function RE(t){return t!==Gc}let OE=(()=>{class t{buildTitle(e){let n,r=e.root;for(;void 0!==r;)n=this.getResolvedTitleForRoute(r)??n,r=r.children.find(o=>o.outlet===ve);return n}getResolvedTitleForRoute(e){return e.data[zc]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:function(){return j(k3)},providedIn:"root"})}return t})(),k3=(()=>{class t extends OE{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}static#e=this.\u0275fac=function(n){return new(n||t)(k(Ok))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),E3=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:function(){return j(I3)},providedIn:"root"})}return t})();class S3{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let I3=(()=>{class t extends S3{static#e=this.\u0275fac=function(){let e;return function(r){return(e||(e=function be(t){return Bi(()=>{const i=t.prototype.constructor,e=i[Vi]||Ap(i),n=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){const o=r[Vi]||Ap(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}(t)))(r||t)}}();static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const wm=new T("",{providedIn:"root",factory:()=>({})});let A3=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:function(){return j(T3)},providedIn:"root"})}return t})(),T3=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ed=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ed||{});function PE(t,i){t.events.pipe(ci(e=>e instanceof fo||e instanceof qc||e instanceof fm||e instanceof Ya),fe(e=>e instanceof fo||e instanceof Ya?ed.COMPLETE:e instanceof qc&&(0===e.code||1===e.code)?ed.REDIRECTING:ed.FAILED),ci(e=>e!==ed.REDIRECTING),$i(1)).subscribe(()=>{i()})}function R3(t){throw t}function O3(t,i,e){return i.parse("/")}const P3={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},F3={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Cn=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=j(uM),this.isNgZoneEnabled=!1,this._events=new W,this.options=j(wm,{optional:!0})||{},this.pendingTasks=j(hM),this.errorHandler=this.options.errorHandler||R3,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||O3,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=j(A3),this.routeReuseStrategy=j(E3),this.titleStrategy=j(OE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=j(tl,{optional:!0})?.flat()??[],this.navigationTransitions=j(xm),this.urlSerializer=j(Hc),this.location=j(Fc),this.componentInputBindingEnabled=!!j(gm,{optional:!0}),this.eventsSubscription=new ft,this.isNgZoneEnabled=j(re)instanceof re&&re.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Za,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=uE(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(n=>{try{const{currentTransition:r}=this.navigationTransitions;if(null===r)return void(FE(n)&&this._events.next(n));if(n instanceof mm)RE(r.source)&&(this.browserUrlTree=r.extractedUrl);else if(n instanceof Ya)this.rawUrlTree=r.rawUrl;else if(n instanceof aE){if("eager"===this.urlUpdateStrategy){if(!r.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(r.urlAfterRedirects,r.rawUrl);this.setBrowserUrl(o,r)}this.browserUrlTree=r.urlAfterRedirects}}else if(n instanceof gv)this.currentUrlTree=r.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(r.urlAfterRedirects,r.rawUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r),this.browserUrlTree=r.urlAfterRedirects);else if(n instanceof qc)0!==n.code&&1!==n.code&&(this.navigated=!0),(3===n.code||2===n.code)&&this.restoreHistory(r);else if(n instanceof _v){const o=this.urlHandlingStrategy.merge(n.url,r.currentRawUrl),a={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||RE(r.source)};this.scheduleNavigation(o,Gc,null,a,{resolve:r.resolve,reject:r.reject,promise:r.promise})}n instanceof fm&&this.restoreHistory(r,!0),n instanceof fo&&(this.navigated=!0),FE(n)&&this._events.next(n)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Gc,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,r){const o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){const d={...r};delete d.navigationId,delete d.\u0275routerPageId,0!==Object.keys(d).length&&(o.state=d)}const l=this.parseUrl(e);this.scheduleNavigation(l,n,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Dv),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){const{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:l,preserveFragment:d}=n,h=d?this.currentUrlTree.fragment:a;let p,f=null;switch(l){case"merge":f={...this.currentUrlTree.queryParams,...o};break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=o||null}null!==f&&(f=this.removeEmptyProps(f));try{p=eE(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),p=this.currentUrlTree.root}return tE(p,e,f,h??null)}navigateByUrl(e,n={skipLocationChange:!1}){const r=ps(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Gc,null,n)}navigate(e,n={skipLocationChange:!1}){return function N3(t){for(let i=0;i{const o=e[r];return null!=o&&(n[r]=o),n},{})}scheduleNavigation(e,n,r,o,a){if(this.disposed)return Promise.resolve(!1);let l,d,h;a?(l=a.resolve,d=a.reject,h=a.promise):h=new Promise((p,_)=>{l=p,d=_});const f=this.pendingTasks.add();return PE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:e,extras:o,resolve:l,reject:d,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(p=>Promise.reject(p))}setBrowserUrl(e,n){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||n.extras.replaceUrl){const a={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(r,"",a)}else{const o={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&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))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function FE(t){return!(t instanceof gv||t instanceof _v)}class NE{}let V3=(()=>{class t{constructor(e,n,r,o,a){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ci(e=>e instanceof fo),Ga(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const r=[];for(const o of n){o.providers&&!o._injector&&(o._injector=r_(o.providers,e,`Route: ${o.path}`));const a=o._injector??e,l=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(l,o.children??o._loadedRoutes))}return lt(r).pipe(Br())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let r;r=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):z(null);const o=r.pipe(Tt(a=>null===a?z(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return n.loadComponent&&!n._loadedComponent?lt([o,this.loader.loadComponent(n)]).pipe(Br()):o})}static#e=this.\u0275fac=function(n){return new(n||t)(k(Cn),k(mM),k(_n),k(NE),k(Sv))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Av=new T("");let LE=(()=>{class t{constructor(e,n,r,o,a={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=r,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof mm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof fo?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Ya&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof lE&&(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,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new lE(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){cc()};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function kr(t,i){return{\u0275kind:t,\u0275providers:i}}function VE(){const t=j(Ot);return i=>{const e=t.get(ao);if(i!==e.components[0])return;const n=t.get(Cn),r=t.get(zE);1===t.get(Tv)&&n.initialNavigation(),t.get(jE,null,xe.Optional)?.setUpPreloading(),t.get(Av,null,xe.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const zE=new T("",{factory:()=>new W}),Tv=new T("",{providedIn:"root",factory:()=>1}),jE=new T("");function U3(t){return kr(0,[{provide:jE,useExisting:V3},{provide:NE,useExisting:t}])}const HE=new T("ROUTER_FORROOT_GUARD"),W3=[Fc,{provide:Hc,useClass:uv},Cn,Zc,{provide:Ka,useFactory:function BE(t){return t.routerState.root},deps:[Cn]},Sv,[]];function G3(){return new yM("Router",Cn)}let Rv=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[W3,[],{provide:tl,multi:!0,useValue:e},{provide:HE,useFactory:X3,deps:[[Cn,new gn,new qn]]},{provide:wm,useValue:n||{}},n?.useHash?{provide:hs,useClass:eV}:{provide:hs,useClass:XM},{provide:Av,useFactory:()=>{const t=j(Cz),i=j(re),e=j(wm),n=j(xm),r=j(Hc);return e.scrollOffset&&t.setOffset(e.scrollOffset),new LE(r,n,t,i,e)}},n?.preloadingStrategy?U3(n.preloadingStrategy).\u0275providers:[],{provide:yM,multi:!0,useFactory:G3},n?.initialNavigation?K3(n):[],n?.bindToComponentInputs?kr(8,[gE,{provide:gm,useExisting:gE}]).\u0275providers:[],[{provide:UE,useFactory:VE},{provide:M_,multi:!0,useExisting:UE}]]}}static forChild(e){return{ngModule:t,providers:[{provide:tl,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(n){return new(n||t)(k(HE,8))};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({})}return t})();function X3(t){return"guarded"}function K3(t){return["disabled"===t.initialNavigation?kr(3,[{provide:__,multi:!0,useFactory:()=>{const i=j(Cn);return()=>{i.setUpLocationChangeListener()}}},{provide:Tv,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?kr(2,[{provide:Tv,useValue:0},{provide:__,multi:!0,deps:[Ot],useFactory:i=>{const e=i.get(QB,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const r=i.get(Cn),o=i.get(zE);PE(r,()=>{n(!0)}),i.get(xm).afterPreactivation=()=>(n(!0),o.closed?z(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const UE=new T(""),J3=[];let e4=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[Rv.forRoot(J3),Rv]})}return t})();var il=V(433);let $E=(()=>{class t{constructor(){this.houseIcon=il.icon({iconUrl:"../../../../assets/images/icon.png",iconSize:[38,48],shadowSize:[50,64]}),this.fireIcon=il.icon({iconUrl:"../../../../assets/images/fire.gif",iconSize:[38,48]})}ngOnInit(){}ngAfterViewInit(){this.initMap()}initMap(){if(document.getElementById("map")){this.map=il.map("map",{center:[10.8494,106.7537],zoom:12}),il.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:18,minZoom:3,attribution:'© OpenStreetMap'}).addTo(this.map);let r='
Vinhome qu\u1eadn 9
\n Xem chi ti\u1ebft',o='
T\u1ecda \u0111\u1ed9: 10.8661\xb0 N, 106.8029\xb0 E
\n
Th\u1eddi gian c\u1ea3nh b\xe1o: 23:23:00
\n Xem chi ti\u1ebft';il.marker([10.8356,106.83],{icon:this.houseIcon}).addTo(this.map).bindPopup(r),il.marker([10.8661,106.8029],{icon:this.fireIcon}).addTo(this.map).bindPopup(o)}else console.error("Map container not found")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=it({type:t,selectors:[["app-map"]],decls:3,vars:0,consts:[[1,"map-container"],[1,"map-frame"],["id","map"]],template:function(n,r){1&n&&(Qe(0,"div",0)(1,"div",1),Si(2,"div",2),vt()())},styles:[".map-container[_ngcontent-%COMP%]{position:absolute;inset:0;margin:30px}.map-frame[_ngcontent-%COMP%]{border:2px solid black;height:100%}#map[_ngcontent-%COMP%]{height:100%}"]})}return t})(),t4=(()=>{class t{constructor(){this.title="Iot-web-ui"}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=it({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(n,r){1&n&&Si(0,"app-map")},dependencies:[$E]})}return t})();class WE{}class n4{}const Er="*";function qE(t,i=null){return{type:2,steps:t,options:i}}function ie(t){return{type:6,styles:t,offset:null}}class td{constructor(i=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=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class ZE{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++n==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,l)=>Math.max(a,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}function YE(t){return new I(3e3,!1)}function po(t){switch(t.length){case 0:return new td;case 1:return t[0];default:return new ZE(t)}}function XE(t,i,e=new Map,n=new Map){const r=[],o=[];let a=-1,l=null;if(i.forEach(d=>{const h=d.get("offset"),f=h==a,p=f&&l||new Map;d.forEach((_,b)=>{let x=b,C=_;if("offset"!==b)switch(x=t.normalizePropertyName(x,r),C){case"!":C=e.get(b);break;case Er:C=n.get(b);break;default:C=t.normalizeStyleValue(b,x,C,r)}p.set(x,C)}),f||o.push(p),l=p,a=h}),r.length)throw function k4(t){return new I(3502,!1)}();return o}function Pv(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&Fv(e,"start",t)));break;case"done":t.onDone(()=>n(e&&Fv(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&Fv(e,"destroy",t)))}}function Fv(t,i,e){const o=Nv(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(o._data=a),o}function Nv(t,i,e,n,r="",o=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!a}}function rn(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function KE(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}const B4=(()=>typeof document>"u"?null:document.documentElement)();function Lv(t){const i=t.parentNode||t.host||null;return i===B4?null:i}let gs=null,QE=!1;function JE(t,i){for(;i;){if(i===t)return!0;i=Lv(i)}return!1}function eS(t,i,e){if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]}let tS=(()=>{class t{validateStyleProperty(e){return function z4(t){gs||(gs=function j4(){return typeof document<"u"?document.body:null}()||{},QE=!!gs.style&&"WebkitAppearance"in gs.style);let i=!0;return gs.style&&!function V4(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in gs.style,!i&&QE&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in gs.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return JE(e,n)}getParentElement(e){return Lv(e)}query(e,n,r){return eS(e,n,r)}computeStyle(e,n,r){return r||""}animate(e,n,r,o,a,l=[],d){return new td(r,o)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),Bv=(()=>{class t{static#e=this.NOOP=new tS}return t})();const H4=1e3,Vv="ng-enter",Mm="ng-leave",km="ng-trigger",Em=".ng-trigger",nS="ng-animating",zv=".ng-animating";function Sr(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:jv(parseFloat(i[1]),i[2])}function jv(t,i){return"s"===i?t*H4:t}function Sm(t,i,e){return t.hasOwnProperty("duration")?t:function $4(t,i,e){let r,o=0,a="";if("string"==typeof t){const l=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return i.push(YE()),{duration:0,delay:0,easing:""};r=jv(parseFloat(l[1]),l[2]);const d=l[3];null!=d&&(o=jv(parseFloat(d),l[4]));const h=l[5];h&&(a=h)}else r=t;if(!e){let l=!1,d=i.length;r<0&&(i.push(function r4(){return new I(3100,!1)}()),l=!0),o<0&&(i.push(function o4(){return new I(3101,!1)}()),l=!0),l&&i.splice(d,0,YE())}return{duration:r,delay:o,easing:a}}(t,i,e)}function id(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function rS(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function go(t,i=new Map,e){if(e)for(let[n,r]of e)i.set(n,r);for(let[n,r]of t)i.set(n,r);return i}function ir(t,i,e){i.forEach((n,r)=>{const o=Uv(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=n})}function _s(t,i){i.forEach((e,n)=>{const r=Uv(n);t.style[r]=""})}function nd(t){return Array.isArray(t)?1==t.length?t[0]:qE(t):t}const Hv=new RegExp("{{\\s*(.+?)\\s*}}","g");function sS(t){let i=[];if("string"==typeof t){let e;for(;e=Hv.exec(t);)i.push(e[1]);Hv.lastIndex=0}return i}function rd(t,i,e){const n=t.toString(),r=n.replace(Hv,(o,a)=>{let l=i[a];return null==l&&(e.push(function a4(t){return new I(3003,!1)}()),l=""),l.toString()});return r==n?t:r}function Im(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const q4=/-+([a-z0-9])/g;function Uv(t){return t.replace(q4,(...i)=>i[1].toUpperCase())}function on(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function l4(t){return new I(3004,!1)}()}}function aS(t,i){return window.getComputedStyle(t)[i]}const Am="*";function X4(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function K4(t,i,e){if(":"==t[0]){const d=function Q4(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof d)return void i.push(d);t=d}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function x4(t){return new I(3015,!1)}()),i;const r=n[1],o=n[2],a=n[3];i.push(lS(r,a));"<"==o[0]&&!(r==Am&&a==Am)&&i.push(lS(a,r))}(n,e,i)):e.push(t),e}const Tm=new Set(["true","1"]),Rm=new Set(["false","0"]);function lS(t,i){const e=Tm.has(t)||Rm.has(t),n=Tm.has(i)||Rm.has(i);return(r,o)=>{let a=t==Am||t==r,l=i==Am||i==o;return!a&&e&&"boolean"==typeof r&&(a=r?Tm.has(t):Rm.has(t)),!l&&n&&"boolean"==typeof o&&(l=o?Tm.has(i):Rm.has(i)),a&&l}}const J4=new RegExp("s*:selfs*,?","g");function $v(t,i,e,n){return new eU(t).build(i,e,n)}class eU{constructor(i){this._driver=i}build(i,e,n){const r=new nU(e);return this._resetContextStyleTimingState(r),on(this,nd(i),r)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,r=e.depCount=0;const o=[],a=[];return"@"==i.name.charAt(0)&&e.errors.push(function d4(){return new I(3006,!1)}()),i.definitions.forEach(l=>{if(this._resetContextStyleTimingState(e),0==l.type){const d=l,h=d.name;h.toString().split(/\s*,\s*/).forEach(f=>{d.name=f,o.push(this.visitState(d,e))}),d.name=h}else if(1==l.type){const d=this.visitTransition(l,e);n+=d.queryCount,r+=d.depCount,a.push(d)}else e.errors.push(function u4(){return new I(3007,!1)}())}),{type:7,name:i.name,states:o,transitions:a,queryCount:n,depCount:r,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),r=i.options&&i.options.params||null;if(n.containsDynamicStyles){const o=new Set,a=r||{};n.styles.forEach(l=>{l instanceof Map&&l.forEach(d=>{sS(d).forEach(h=>{a.hasOwnProperty(h)||o.add(h)})})}),o.size&&(Im(o.values()),e.errors.push(function h4(t,i){return new I(3008,!1)}()))}return{type:0,name:i.name,style:n,options:r?{params:r}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=on(this,nd(i.animation),e);return{type:1,matchers:X4(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:vs(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>on(this,n,e)),options:vs(i.options)}}visitGroup(i,e){const n=e.currentTime;let r=0;const o=i.steps.map(a=>{e.currentTime=n;const l=on(this,a,e);return r=Math.max(r,e.currentTime),l});return e.currentTime=r,{type:3,steps:o,options:vs(i.options)}}visitAnimate(i,e){const n=function oU(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Wv(Sm(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Wv(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Sm(e,i);return Wv(r.duration,r.delay,r.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let r,o=i.styles?i.styles:ie({});if(5==o.type)r=this.visitKeyframes(o,e);else{let a=i.styles,l=!1;if(!a){l=!0;const h={};n.easing&&(h.easing=n.easing),a=ie(h)}e.currentTime+=n.duration+n.delay;const d=this.visitStyle(a,e);d.isEmptyStep=l,r=d}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let l of r)"string"==typeof l?l===Er?n.push(l):e.errors.push(new I(3002,!1)):n.push(rS(l));let o=!1,a=null;return n.forEach(l=>{if(l instanceof Map&&(l.has("easing")&&(a=l.get("easing"),l.delete("easing")),!o))for(let d of l.values())if(d.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:n,easing:a,offset:i.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),i.styles.forEach(a=>{"string"!=typeof a&&a.forEach((l,d)=>{const h=e.collectedStyles.get(e.currentQuerySelector),f=h.get(d);let p=!0;f&&(o!=r&&o>=f.startTime&&r<=f.endTime&&(e.errors.push(function f4(t,i,e,n,r){return new I(3010,!1)}()),p=!1),o=f.startTime),p&&h.set(d,{startTime:o,endTime:r}),e.options&&function G4(t,i,e){const n=i.params||{},r=sS(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(function s4(t){return new I(3001,!1)}())})}(l,e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function p4(){return new I(3011,!1)}()),n;let o=0;const a=[];let l=!1,d=!1,h=0;const f=i.steps.map(R=>{const E=this._makeStyleAst(R,e);let U=null!=E.offset?E.offset:function rU(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}(E.styles),G=0;return null!=U&&(o++,G=E.offset=U),d=d||G<0||G>1,l=l||G0&&o{const U=_>0?E==b?1:_*E:a[E],G=U*M;e.currentTime=x+C.delay+G,C.duration=G,this._validateStyleAst(R,e),R.offset=U,n.styles.push(R)}),n}visitReference(i,e){return{type:8,animation:on(this,nd(i.animation),e),options:vs(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:vs(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:vs(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;const[o,a]=function tU(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(J4,"")),t=t.replace(/@\*/g,Em).replace(/@\w+/g,e=>Em+"-"+e.slice(1)).replace(/:animating/g,zv),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+o:o,rn(e.collectedStyles,e.currentQuerySelector,new Map);const l=on(this,nd(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:l,originalSelector:i.selector,options:vs(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function b4(){return new I(3013,!1)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Sm(i.timings,e.errors,!0);return{type:12,animation:on(this,nd(i.animation),e),timings:n,options:null}}}class nU{constructor(i){this.errors=i,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 vs(t){return t?(t=id(t)).params&&(t.params=function iU(t){return t?id(t):null}(t.params)):t={},t}function Wv(t,i,e){return{duration:t,delay:i,easing:e}}function Gv(t,i,e,n,r,o,a=null,l=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:l}}class Om{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const lU=new RegExp(":enter","g"),dU=new RegExp(":leave","g");function qv(t,i,e,n,r,o=new Map,a=new Map,l,d,h=[]){return(new uU).buildKeyframes(t,i,e,n,r,o,a,l,d,h)}class uU{buildKeyframes(i,e,n,r,o,a,l,d,h,f=[]){h=h||new Om;const p=new Zv(i,e,h,r,o,f,[]);p.options=d;const _=d.delay?Sr(d.delay):0;p.currentTimeline.delayNextStep(_),p.currentTimeline.setStyles([a],null,p.errors,d),on(this,n,p);const b=p.timelines.filter(x=>x.containsAnimation());if(b.length&&l.size){let x;for(let C=b.length-1;C>=0;C--){const M=b[C];if(M.element===e){x=M;break}}x&&!x.allowOnlyTimelineStyles()&&x.setStyles([l],null,p.errors,d)}return b.length?b.map(x=>x.buildKeyframes()):[Gv(e,[],[],[],0,_,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const r=e.createSubContext(i.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(const r of i){const o=r?.delay;if(o){const a="number"==typeof o?o:Sr(rd(o,r?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let o=e.currentTimeline.currentTime;const a=null!=n.duration?Sr(n.duration):null,l=null!=n.delay?Sr(n.delay):null;return 0!==a&&i.forEach(d=>{const h=e.appendInstructionToTimeline(d,a,l);o=Math.max(o,h.duration+h.delay)}),o}visitReference(i,e){e.updateOptions(i.options,!0),on(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let r=e;const o=i.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=Pm);const a=Sr(o.delay);r.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>on(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let r=e.currentTimeline.currentTime;const o=i.options&&i.options.delay?Sr(i.options.delay):0;i.steps.forEach(a=>{const l=e.createSubContext(i.options);o&&l.delayNextStep(o),on(this,a,l),r=Math.max(r,l.currentTimeline.currentTime),n.push(l.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return Sm(e.params?rd(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const o=i.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();const o=r&&r.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(o):n.setStyles(i.styles,o,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,l=e.createSubContext().currentTimeline;l.easing=n.easing,i.styles.forEach(d=>{l.forwardTime((d.offset||0)*o),l.setStyles(d.styles,d.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(r+o),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,r=i.options||{},o=r.delay?Sr(r.delay):0;o&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Pm);let a=n;const l=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=l.length;let d=null;l.forEach((h,f)=>{e.currentQueryIndex=f;const p=e.createSubContext(i.options,h);o&&p.delayNextStep(o),h===e.element&&(d=p.currentTimeline),on(this,i.animation,p),p.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,p.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),d&&(e.currentTimeline.mergeTimelineCollectedStyles(d),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,r=e.currentTimeline,o=i.timings,a=Math.abs(o.duration),l=a*(e.currentQueryTotal-1);let d=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":d=l-d;break;case"full":d=n.currentStaggerTime}const f=e.currentTimeline;d&&f.delayNextStep(d);const p=f.currentTime;on(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=r.currentTime-p+(r.startTime-n.currentTimeline.startTime)}}const Pm={};class Zv{constructor(i,e,n,r,o,a,l,d){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Pm,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=d||new Fm(this._driver,e,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let r=this.options;null!=n.duration&&(r.duration=Sr(n.duration)),null!=n.delay&&(r.delay=Sr(n.delay));const o=n.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(l=>{(!e||!a.hasOwnProperty(l))&&(a[l]=rd(o[l],a,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return i}createSubContext(i=null,e,n){const r=e||this.element,o=new Zv(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(i),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(i){return this.previousNode=Pm,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const r={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},o=new hU(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,r,o,a){let l=[];if(r&&l.push(this.element),i.length>0){i=(i=i.replace(lU,"."+this._enterClassName)).replace(dU,"."+this._leaveClassName);let h=this._driver.query(this.element,i,1!=n);0!==n&&(h=n<0?h.slice(h.length+n,h.length):h.slice(0,n)),l.push(...h)}return!o&&0==l.length&&a.push(function y4(t){return new I(3014,!1)}()),l}}class Fm{constructor(i,e,n,r){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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(i){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new Fm(this._driver,i,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(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Er),this._currentKeyframe.set(e,Er);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},a=function mU(t,i){const e=new Map;let n;return t.forEach(r=>{if("*"===r){n=n||i.keys();for(let o of n)e.set(o,Er)}else go(r,e)}),e}(i,this._globalTimelineStyles);for(let[l,d]of a){const h=rd(d,o,n);this._pendingStyles.set(l,h),this._localTimelineStyles.has(l)||this._backFill.set(l,this._globalTimelineStyles.get(l)??Er),this._updateStyle(l,h)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{const r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((l,d)=>{const h=go(l,new Map,this._backFill);h.forEach((f,p)=>{"!"===f?i.add(p):f===Er&&e.add(p)}),n||h.set("offset",d/this.duration),r.push(h)});const o=i.size?Im(i.values()):[],a=e.size?Im(e.values()):[];if(n){const l=r[0],d=new Map(l);l.set("offset",0),d.set("offset",1),r=[l,d]}return Gv(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}class hU extends Fm{constructor(i,e,n,r,o,a,l=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=l,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],a=n+e,l=e/a,d=go(i[0]);d.set("offset",0),o.push(d);const h=go(i[0]);h.set("offset",uS(l)),o.push(h);const f=i.length-1;for(let p=1;p<=f;p++){let _=go(i[p]);const b=_.get("offset");_.set("offset",uS((e+b*n)/a)),o.push(_)}n=a,e=0,r="",i=o}return Gv(this.element,i,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function uS(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class Yv{}const fU=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 pU extends Yv{normalizePropertyName(i,e){return Uv(i)}normalizeStyleValue(i,e,n,r){let o="";const a=n.toString().trim();if(fU.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const l=n.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&r.push(function c4(t,i){return new I(3005,!1)}())}return a+o}}function hS(t,i,e,n,r,o,a,l,d,h,f,p,_){return{type:0,element:t,triggerName:i,isRemovalTransition:r,fromState:e,fromStyles:o,toState:n,toStyles:a,timelines:l,queriedElements:d,preStyleProps:h,postStyleProps:f,totalTime:p,errors:_}}const Xv={};class mS{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,r){return function gU(t,i,e,n,r){return t.some(o=>o(i,e,n,r))}(this.ast.matchers,i,e,n,r)}buildStyles(i,e,n){let r=this._stateStyles.get("*");return void 0!==i&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(e,n):new Map}build(i,e,n,r,o,a,l,d,h,f){const p=[],_=this.ast.options&&this.ast.options.params||Xv,x=this.buildStyles(n,l&&l.params||Xv,p),C=d&&d.params||Xv,M=this.buildStyles(r,C,p),R=new Set,E=new Map,U=new Map,G="void"===r,he={params:_U(C,_),delay:this.ast.options?.delay},et=f?[]:qv(i,e,this.ast.animation,o,a,x,M,he,h,p);let mt=0;if(et.forEach(an=>{mt=Math.max(an.duration+an.delay,mt)}),p.length)return hS(e,this._triggerName,n,r,G,x,M,[],[],E,U,mt,p);et.forEach(an=>{const zn=an.element,Sf=rn(E,zn,new Set);an.preStyleProps.forEach(Es=>Sf.add(Es));const Ed=rn(U,zn,new Set);an.postStyleProps.forEach(Es=>Ed.add(Es)),zn!==e&&R.add(zn)});const di=Im(R.values());return hS(e,this._triggerName,n,r,G,x,M,et,di,E,U,mt)}}function _U(t,i){const e=id(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class vU{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,r=id(this.defaultParams);return Object.keys(i).forEach(o=>{const a=i[o];null!==a&&(r[o]=a)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,l)=>{a&&(a=rd(a,r,e));const d=this.normalizer.normalizePropertyName(l,e);a=this.normalizer.normalizeStyleValue(l,d,a,e),n.set(l,a)})}),n}}class yU{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new vU(r.style,r.options&&r.options.params||{},n))}),fS(this.states,"true","1"),fS(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new mS(i,r,this.states))}),this.fallbackTransition=function xU(t,i,e){return new mS(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,l)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,r){return this.transitionFactories.find(a=>a.match(i,e,n,r))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function fS(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}const wU=new Om;class CU{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){const n=[],o=$v(this._driver,e,n,[]);if(n.length)throw function E4(t){return new I(3503,!1)}();this._animations.set(i,o)}_buildPlayer(i,e,n){const r=i.element,o=XE(this._normalizer,i.keyframes,e,n);return this._driver.animate(r,o,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const r=[],o=this._animations.get(i);let a;const l=new Map;if(o?(a=qv(this._driver,e,o,Vv,Mm,new Map,new Map,n,wU,r),a.forEach(f=>{const p=rn(l,f.element,new Map);f.postStyleProps.forEach(_=>p.set(_,null))})):(r.push(function S4(){return new I(3300,!1)}()),a=[]),r.length)throw function I4(t){return new I(3504,!1)}();l.forEach((f,p)=>{f.forEach((_,b)=>{f.set(b,this._driver.computeStyle(p,b,Er))})});const h=po(a.map(f=>{const p=l.get(f.element);return this._buildPlayer(f,new Map,p)}));return this._playersById.set(i,h),h.onDestroy(()=>this.destroy(i)),this.players.push(h),h}destroy(i){const e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById.get(i);if(!e)throw function A4(t){return new I(3301,!1)}();return e}listen(i,e,n,r){const o=Nv(e,"","","");return Pv(this._getPlayer(i),n,o,r),()=>{}}command(i,e,n,r){if("register"==n)return void this.register(i,r[0]);if("create"==n)return void this.create(i,e,r[0]||{});const o=this._getPlayer(i);switch(n){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(i)}}}const pS="ng-animate-queued",Kv="ng-animate-disabled",SU=[],gS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},IU={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vn="__ng_removed";class Qv{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function OU(t){return t??null}(n?i.value:i),n){const o=id(i);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(r=>{null==n[r]&&(n[r]=e[r])})}}}const od="void",Jv=new Qv(od);class AU{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Dn(e,this._hostClassName)}listen(i,e,n,r){if(!this._triggers.has(e))throw function T4(t,i){return new I(3302,!1)}();if(null==n||0==n.length)throw function R4(t){return new I(3303,!1)}();if(!function PU(t){return"start"==t||"done"==t}(n))throw function O4(t,i){return new I(3400,!1)}();const o=rn(this._elementListeners,i,[]),a={name:e,phase:n,callback:r};o.push(a);const l=rn(this._engine.statesByElement,i,new Map);return l.has(e)||(Dn(i,km),Dn(i,km+"-"+e),l.set(e,Jv)),()=>{this._engine.afterFlush(()=>{const d=o.indexOf(a);d>=0&&o.splice(d,1),this._triggers.has(e)||l.delete(e)})}}register(i,e){return!this._triggers.has(i)&&(this._triggers.set(i,e),!0)}_getTrigger(i){const e=this._triggers.get(i);if(!e)throw function P4(t){return new I(3401,!1)}();return e}trigger(i,e,n,r=!0){const o=this._getTrigger(e),a=new eb(this.id,e,i);let l=this._engine.statesByElement.get(i);l||(Dn(i,km),Dn(i,km+"-"+e),this._engine.statesByElement.set(i,l=new Map));let d=l.get(e);const h=new Qv(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&d&&h.absorbOptions(d.options),l.set(e,h),d||(d=Jv),h.value!==od&&d.value===h.value){if(!function LU(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let r=0;r{_s(i,M),ir(i,R)})}return}const _=rn(this._engine.playersByElement,i,[]);_.forEach(C=>{C.namespaceId==this.id&&C.triggerName==e&&C.queued&&C.destroy()});let b=o.matchTransition(d.value,h.value,i,h.params),x=!1;if(!b){if(!r)return;b=o.fallbackTransition,x=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:b,fromState:d,toState:h,player:a,isFallbackTransition:x}),x||(Dn(i,pS),a.onStart(()=>{rl(i,pS)})),a.onDone(()=>{let C=this.players.indexOf(a);C>=0&&this.players.splice(C,1);const M=this._engine.playersByElement.get(i);if(M){let R=M.indexOf(a);R>=0&&M.splice(R,1)}}),this.players.push(a),_.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,Em,!0);n.forEach(r=>{if(r[Vn])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(i,e,n,r){const o=this._engine.statesByElement.get(i),a=new Map;if(o){const l=[];if(o.forEach((d,h)=>{if(a.set(h,d.value),this._triggers.has(h)){const f=this.trigger(i,h,od,r);f&&l.push(f)}}),l.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&po(l).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const r=new Set;e.forEach(o=>{const a=o.name;if(r.has(a))return;r.add(a);const d=this._triggers.get(a).fallbackTransition,h=n.get(a)||Jv,f=new Qv(od),p=new eb(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:d,fromState:h,toState:f,player:p,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let r=!1;if(n.totalAnimations){const o=n.players.length?n.playersByQueriedElement.get(i):[];if(o&&o.length)r=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(i),r)n.markElementAsRemoved(this.id,i,!1,e);else{const o=i[Vn];(!o||o===gS)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Dn(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,a=this._elementListeners.get(o);a&&a.forEach(l=>{if(l.name==n.triggerName){const d=Nv(o,n.triggerName,n.fromState.value,n.toState.value);d._data=i,Pv(n.player,l.phase,d,l.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{const o=n.transition.ast.depCount,a=r.transition.ast.depCount;return 0==o||0==a?o-a:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}}class TU{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new AU(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,l=this.driver.getParentElement(e);for(;l;){const d=r.get(l);if(d){const h=n.indexOf(d);n.splice(h+1,0,i),a=!0;break}l=this.driver.getParentElement(l)}a||n.unshift(i)}else n.push(i);return r.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let r=this._namespaceLookup[i];r&&r.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);const r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n)for(let r of n.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(i,e,n,r){if(Nm(e)){const o=this._fetchNamespace(i);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(i,e,n,r){if(!Nm(e))return;const o=e[Vn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){const a=this._fetchNamespace(i);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Dn(i,Kv)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),rl(i,Kv))}removeNode(i,e,n){if(Nm(e)){const r=i?this._fetchNamespace(i):null;r?r.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);const o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,r,o){this.collectedLeaveElements.push(e),e[Vn]={namespaceId:i,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(i,e,n,r,o){return Nm(e)?this._fetchNamespace(i).listen(e,n,r,o):()=>{}}_buildInstruction(i,e,n,r,o){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,r,i.fromState.options,i.toState.options,e,o)}destroyInnerAnimations(i){let e=this.driver.query(i,Em,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,zv,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return po(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Vn];if(e&&e.setForRemoval){if(i[Vn]=gS,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(Kv)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?po(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(i){throw function F4(t){return new I(3402,!1)}()}_flushAnimations(i,e){const n=new Om,r=[],o=new Map,a=[],l=new Map,d=new Map,h=new Map,f=new Set;this.disabledNodes.forEach(q=>{f.add(q);const te=this.driver.query(q,".ng-animate-queued",!0);for(let oe=0;oe{const oe=Vv+C++;x.set(te,oe),q.forEach(Fe=>Dn(Fe,oe))});const M=[],R=new Set,E=new Set;for(let q=0;qR.add(Fe)):E.add(te))}const U=new Map,G=bS(_,Array.from(R));G.forEach((q,te)=>{const oe=Mm+C++;U.set(te,oe),q.forEach(Fe=>Dn(Fe,oe))}),i.push(()=>{b.forEach((q,te)=>{const oe=x.get(te);q.forEach(Fe=>rl(Fe,oe))}),G.forEach((q,te)=>{const oe=U.get(te);q.forEach(Fe=>rl(Fe,oe))}),M.forEach(q=>{this.processLeaveNode(q)})});const he=[],et=[];for(let q=this._namespaceList.length-1;q>=0;q--)this._namespaceList[q].drainQueuedTransitions(e).forEach(oe=>{const Fe=oe.player,ei=oe.element;if(he.push(Fe),this.collectedEnterElements.length){const yi=ei[Vn];if(yi&&yi.setForMove){if(yi.previousTriggersValues&&yi.previousTriggersValues.has(oe.triggerName)){const Ss=yi.previousTriggersValues.get(oe.triggerName),Mn=this.statesByElement.get(oe.element);if(Mn&&Mn.has(oe.triggerName)){const If=Mn.get(oe.triggerName);If.value=Ss,Mn.set(oe.triggerName,If)}}return void Fe.destroy()}}const ar=!p||!this.driver.containsElement(p,ei),ln=U.get(ei),ko=x.get(ei),Ct=this._buildInstruction(oe,n,ko,ln,ar);if(Ct.errors&&Ct.errors.length)return void et.push(Ct);if(ar)return Fe.onStart(()=>_s(ei,Ct.fromStyles)),Fe.onDestroy(()=>ir(ei,Ct.toStyles)),void r.push(Fe);if(oe.isFallbackTransition)return Fe.onStart(()=>_s(ei,Ct.fromStyles)),Fe.onDestroy(()=>ir(ei,Ct.toStyles)),void r.push(Fe);const kT=[];Ct.timelines.forEach(yi=>{yi.stretchStartingKeyframe=!0,this.disabledNodes.has(yi.element)||kT.push(yi)}),Ct.timelines=kT,n.append(ei,Ct.timelines),a.push({instruction:Ct,player:Fe,element:ei}),Ct.queriedElements.forEach(yi=>rn(l,yi,[]).push(Fe)),Ct.preStyleProps.forEach((yi,Ss)=>{if(yi.size){let Mn=d.get(Ss);Mn||d.set(Ss,Mn=new Set),yi.forEach((If,Dy)=>Mn.add(Dy))}}),Ct.postStyleProps.forEach((yi,Ss)=>{let Mn=h.get(Ss);Mn||h.set(Ss,Mn=new Set),yi.forEach((If,Dy)=>Mn.add(Dy))})});if(et.length){const q=[];et.forEach(te=>{q.push(function N4(t,i){return new I(3505,!1)}())}),he.forEach(te=>te.destroy()),this.reportError(q)}const mt=new Map,di=new Map;a.forEach(q=>{const te=q.element;n.has(te)&&(di.set(te,te),this._beforeAnimationBuild(q.player.namespaceId,q.instruction,mt))}),r.forEach(q=>{const te=q.element;this._getPreviousPlayers(te,!1,q.namespaceId,q.triggerName,null).forEach(Fe=>{rn(mt,te,[]).push(Fe),Fe.destroy()})});const an=M.filter(q=>xS(q,d,h)),zn=new Map;vS(zn,this.driver,E,h,Er).forEach(q=>{xS(q,d,h)&&an.push(q)});const Ed=new Map;b.forEach((q,te)=>{vS(Ed,this.driver,new Set(q),d,"!")}),an.forEach(q=>{const te=zn.get(q),oe=Ed.get(q);zn.set(q,new Map([...te?.entries()??[],...oe?.entries()??[]]))});const Es=[],DT=[],MT={};a.forEach(q=>{const{element:te,player:oe,instruction:Fe}=q;if(n.has(te)){if(f.has(te))return oe.onDestroy(()=>ir(te,Fe.toStyles)),oe.disabled=!0,oe.overrideTotalTime(Fe.totalTime),void r.push(oe);let ei=MT;if(di.size>1){let ln=te;const ko=[];for(;ln=ln.parentNode;){const Ct=di.get(ln);if(Ct){ei=Ct;break}ko.push(ln)}ko.forEach(Ct=>di.set(Ct,ei))}const ar=this._buildAnimation(oe.namespaceId,Fe,mt,o,Ed,zn);if(oe.setRealPlayer(ar),ei===MT)Es.push(oe);else{const ln=this.playersByElement.get(ei);ln&&ln.length&&(oe.parentPlayer=po(ln)),r.push(oe)}}else _s(te,Fe.fromStyles),oe.onDestroy(()=>ir(te,Fe.toStyles)),DT.push(oe),f.has(te)&&r.push(oe)}),DT.forEach(q=>{const te=o.get(q.element);if(te&&te.length){const oe=po(te);q.setRealPlayer(oe)}}),r.forEach(q=>{q.parentPlayer?q.syncPlayerEvents(q.parentPlayer):q.destroy()});for(let q=0;q!ar.destroyed);ei.length?FU(this,te,ei):this.processLeaveNode(te)}return M.length=0,Es.forEach(q=>{this.players.push(q),q.onDone(()=>{q.destroy();const te=this.players.indexOf(q);this.players.splice(te,1)}),q.play()}),Es}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,r,o){let a=[];if(e){const l=this.playersByQueriedElement.get(i);l&&(a=l)}else{const l=this.playersByElement.get(i);if(l){const d=!o||o==od;l.forEach(h=>{h.queued||!d&&h.triggerName!=r||a.push(h)})}}return(n||r)&&(a=a.filter(l=>!(n&&n!=l.namespaceId||r&&r!=l.triggerName))),a}_beforeAnimationBuild(i,e,n){const o=e.element,a=e.isRemovalTransition?void 0:i,l=e.isRemovalTransition?void 0:e.triggerName;for(const d of e.timelines){const h=d.element,f=h!==o,p=rn(n,h,[]);this._getPreviousPlayers(h,f,a,l,e.toState).forEach(b=>{const x=b.getRealPlayer();x.beforeDestroy&&x.beforeDestroy(),b.destroy(),p.push(b)})}_s(o,e.fromStyles)}_buildAnimation(i,e,n,r,o,a){const l=e.triggerName,d=e.element,h=[],f=new Set,p=new Set,_=e.timelines.map(x=>{const C=x.element;f.add(C);const M=C[Vn];if(M&&M.removedBeforeQueried)return new td(x.duration,x.delay);const R=C!==d,E=function NU(t){const i=[];return yS(t,i),i}((n.get(C)||SU).map(mt=>mt.getRealPlayer())).filter(mt=>!!mt.element&&mt.element===C),U=o.get(C),G=a.get(C),he=XE(this._normalizer,x.keyframes,U,G),et=this._buildPlayer(x,he,E);if(x.subTimeline&&r&&p.add(C),R){const mt=new eb(i,l,C);mt.setRealPlayer(et),h.push(mt)}return et});h.forEach(x=>{rn(this.playersByQueriedElement,x.element,[]).push(x),x.onDone(()=>function RU(t,i,e){let n=t.get(i);if(n){if(n.length){const r=n.indexOf(e);n.splice(r,1)}0==n.length&&t.delete(i)}return n}(this.playersByQueriedElement,x.element,x))}),f.forEach(x=>Dn(x,nS));const b=po(_);return b.onDestroy(()=>{f.forEach(x=>rl(x,nS)),ir(d,e.toStyles)}),p.forEach(x=>{rn(r,x,[]).push(b)}),b}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new td(i.duration,i.delay)}}class eb{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new td,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>Pv(i,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){rn(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function Nm(t){return t&&1===t.nodeType}function _S(t,i){const e=t.style.display;return t.style.display=i??"none",e}function vS(t,i,e,n,r){const o=[];e.forEach(d=>o.push(_S(d)));const a=[];n.forEach((d,h)=>{const f=new Map;d.forEach(p=>{const _=i.computeStyle(h,p,r);f.set(p,_),(!_||0==_.length)&&(h[Vn]=IU,a.push(h))}),t.set(h,f)});let l=0;return e.forEach(d=>_S(d,o[l++])),a}function bS(t,i){const e=new Map;if(t.forEach(l=>e.set(l,[])),0==i.length)return e;const r=new Set(i),o=new Map;function a(l){if(!l)return 1;let d=o.get(l);if(d)return d;const h=l.parentNode;return d=e.has(h)?h:r.has(h)?1:a(h),o.set(l,d),d}return i.forEach(l=>{const d=a(l);1!==d&&e.get(d).push(l)}),e}function Dn(t,i){t.classList?.add(i)}function rl(t,i){t.classList?.remove(i)}function FU(t,i,e){po(e).onDone(()=>t.processLeaveNode(i))}function yS(t,i){for(let e=0;er.add(o)):i.set(t,n),e.delete(t),!0}class Lm{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new TU(i,e,n),this._timelineEngine=new CU(i,e,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(i,e,n,r,o){const a=i+"-"+r;let l=this._triggerCache[a];if(!l){const d=[],f=$v(this._driver,o,d,[]);if(d.length)throw function M4(t,i){return new I(3404,!1)}();l=function bU(t,i,e){return new yU(t,i,e)}(r,f,this._normalizer),this._triggerCache[a]=l}this._transitionEngine.registerTrigger(e,r,l)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,r){this._transitionEngine.insertNode(i,e,n,r)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,r){if("@"==n.charAt(0)){const[o,a]=KE(n);this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(i,e,n,r)}listen(i,e,n,r,o){if("@"==n.charAt(0)){const[a,l]=KE(n);return this._timelineEngine.listen(a,e,l,o)}return this._transitionEngine.listen(i,e,n,r,o)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}}let VU=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ir(this._element,this._initialStyles),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(_s(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(_s(this._element,this._endStyles),this._endStyles=null),ir(this._element,this._initialStyles),this._state=3)}}return t})();function tb(t){let i=null;return t.forEach((e,n)=>{(function zU(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class wS{constructor(i,e,n,r){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),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(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{"offset"!==r&&i.set(r,this._finished?n:aS(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class jU{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return JE(i,e)}getParentElement(i){return Lv(i)}query(i,e,n){return eS(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,r,o,a=[]){const d={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(d.easing=o);const h=new Map,f=a.filter(b=>b instanceof wS);(function Z4(t,i){return 0===t||0===i})(n,r)&&f.forEach(b=>{b.currentSnapshot.forEach((x,C)=>h.set(C,x))});let p=function W4(t){return t.length?t[0]instanceof Map?t:t.map(i=>rS(i)):[]}(e).map(b=>go(b));p=function Y4(t,i,e){if(e.size&&i.length){let n=i[0],r=[];if(e.forEach((o,a)=>{n.has(a)||r.push(a),n.set(a,o)}),r.length)for(let o=1;oa.set(l,aS(t,l)))}}return i}(i,p,h);const _=function BU(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=tb(i[0]),i.length>1&&(n=tb(i[i.length-1]))):i instanceof Map&&(e=tb(i)),e||n?new VU(t,e,n):null}(i,p);return new wS(i,p,d,_)}}let HU=(()=>{class t extends WE{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:pi.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?qE(e):e;return CS(this._renderer,null,n,"register",[r]),new UU(n,this._renderer)}static#e=this.\u0275fac=function(n){return new(n||t)(k(ac),k(Ce))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})();class UU extends n4{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new $U(this._id,i,e||{},this._renderer)}}class $U{constructor(i,e,n,r){this.id=i,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return CS(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}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(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function CS(t,i,e,n,r){return t.setProperty(i,`@@${e}:${n}`,r)}const DS="@.disabled";let WU=(()=>{class t{constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(o,a)=>{const l=a?.parentNode(o);l&&a.removeChild(l,o)}}createRenderer(e,n){const o=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let f=this._rendererCache.get(o);return f||(f=new MS("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,f)),f}const a=n.id,l=n.id+"-"+this._currentId;this._currentId++,this.engine.register(l,e);const d=f=>{Array.isArray(f)?f.forEach(d):this.engine.registerTrigger(a,l,e,f.name,f)};return n.data.animation.forEach(d),new GU(this,l,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){e>=0&&en(r)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[a,l]=o;a(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,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()}static#e=this.\u0275fac=function(n){return new(n||t)(k(ac),k(Lm),k(re))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})();class MS{constructor(i,e,n,r){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,r=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,r)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,r){this.delegate.setAttribute(i,e,n,r)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,r){this.delegate.setStyle(i,e,n,r)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==DS?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class GU extends MS{constructor(i,e,n,r,o){super(e,n,r,o),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==DS?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const r=function qU(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let o=e.slice(1),a="";return"@"!=o.charAt(0)&&([o,a]=function ZU(t){const i=t.indexOf(".");return[t.substring(0,i),t.slice(i+1)]}(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{this.factory.scheduleListenerCallback(l._data||-1,n,l)})}return this.delegate.listen(i,e,n)}}const kS=[{provide:WE,useClass:HU},{provide:Yv,useFactory:function XU(){return new pU}},{provide:Lm,useClass:(()=>{class t extends Lm{constructor(e,n,r,o){super(e.body,n,r)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||t)(k(Ce),k(Bv),k(Yv),k(ao))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})()},{provide:ac,useFactory:function KU(t,i,e){return new WU(t,i,e)},deps:[iv,Lm,re]}],ib=[{provide:Bv,useFactory:()=>new jU},{provide:_r,useValue:"BrowserAnimations"},...kS],ES=[{provide:Bv,useClass:tS},{provide:_r,useValue:"NoopAnimations"},...kS];let nb,QU=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?ES:ib}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:ib,imports:[Rk]})}return t})();try{nb=typeof Intl<"u"&&Intl.v8BreakIterator}catch{nb=!1}let sd,bs,rb,Fi=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function wz(t){return t===fk}(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&&!nb)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(n){return new(n||t)(k(rs))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function nr(t){return function JU(){if(null==sd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>sd=!0}))}finally{sd=sd||!1}return sd}()?t:!!t.capture}function e$(){if(null==bs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return bs=!1,bs;if("scrollBehavior"in document.documentElement.style)bs=!0;else{const t=Element.prototype.scrollTo;bs=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return bs}function zm(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function _o(t){return t.composedPath?t.composedPath()[0]:t.target}function ob(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function sl(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class x$ extends ft{constructor(i,e){super()}schedule(i,e=0){return this}}const jm={setInterval(t,i,...e){const{delegate:n}=jm;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=jm;return(i?.clearInterval||clearInterval)(t)},delegate:void 0};class sb extends x${constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;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!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(o,this.id,e),this}requestAsyncId(i,e,n=0){return jm.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&jm.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let r,n=!1;try{this.work(i)}catch(o){n=!0,r=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Ge(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}const RS={now:()=>(RS.delegate||Date).now(),delegate:void 0};class ad{constructor(i,e=ad.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}ad.now=RS.now;class ab extends ad{constructor(i,e=ad.now){super(i,e),this.actions=[],this._active=!1}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let n;this._active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}const lb=new ab(sb),w$=lb;function OS(t){return ci((i,e)=>t<=e)}function vo(t,i=0){return function C$(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):i}function Hm(t){return Array.isArray(t)?t:[t]}function Vt(t){return null==t?"":"string"==typeof t?t:`${t}px`}function ys(t){return t instanceof _e?t.nativeElement:t}let PS=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),db=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[PS]})}return t})();const FS=new Set;let xs,k$=(()=>{class t{constructor(e,n){this._platform=e,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):S$}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function E$(t,i){if(!FS.has(t))try{xs||(xs=document.createElement("style"),i&&(xs.nonce=i),xs.setAttribute("type","text/css"),document.head.appendChild(xs)),xs.sheet&&(xs.sheet.insertRule(`@media ${t} {body{ }}`,0),FS.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(n){return new(n||t)(k(Fi),k(lg,8))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function S$(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let I$=(()=>{class t{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new W}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return NS(Hm(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=em(NS(Hm(e)).map(a=>this._registerQuery(a).observable));return o=im(o.pipe($i(1)),o.pipe(OS(1),function cb(t,i=lb){return Ve((e,n)=>{let r=null,o=null,a=null;const l=()=>{if(r){r.unsubscribe(),r=null;const h=o;o=null,n.next(h)}};function d(){const h=a+t,f=i.now();if(f{o=h,a=i.now(),r||(r=i.schedule(d,t),n.add(r))},()=>{l(),n.complete()},void 0,()=>{o=r=null}))})}(0))),o.pipe(fe(a=>{const l={matches:!1,breakpoints:{}};return a.forEach(({matches:d,query:h})=>{l.matches=l.matches||d,l.breakpoints[h]=d}),l}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const n=this._mediaMatcher.matchMedia(e),o={observable:new Xe(a=>{const l=d=>this._zone.run(()=>a.next(d));return n.addListener(l),()=>{n.removeListener(l)}}).pipe(rm(n),fe(({matches:a})=>({query:e,matches:a})),Pi(this._destroySubject)),mql:n};return this._queries.set(e,o),o}static#e=this.\u0275fac=function(n){return new(n||t)(k(k$),k(re))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function NS(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}let Um=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function F$(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const n=function P$(t){try{return t.frameElement}catch{return null}}(function U$(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(n&&(-1===zS(n)||!this.isVisible(n)))return!1;let r=e.nodeName.toLowerCase(),o=zS(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function j$(t){let i=t.nodeName.toLowerCase(),e="input"===i&&t.type;return"text"===e||"password"===e||"select"===i||"textarea"===i}(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,n){return function H$(t){return!function L$(t){return function V$(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function N$(t){let i=t.nodeName.toLowerCase();return"input"===i||"select"===i||"button"===i||"textarea"===i}(t)||function B$(t){return function z$(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||VS(t))}(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(n){return new(n||t)(k(Fi))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function VS(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let i=t.getAttribute("tabindex");return!(!i||isNaN(parseInt(i,10)))}function zS(t){if(!VS(t))return null;const i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}class $${get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}constructor(i,e,n,r,o=!1){this._element=i,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){const e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return"start"==i?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){const e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){const e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;const e=i.children;for(let n=0;n=0;n--){const r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}_createAnchor(){const i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._ngZone.isStable?i():this._ngZone.onStable.pipe($i(1)).subscribe(i)}}let ub=(()=>{class t{constructor(e,n,r){this._checker=e,this._ngZone=n,this._document=r}create(e,n=!1){return new $$(e,this._checker,this._ngZone,this._document,n)}static#e=this.\u0275fac=function(n){return new(n||t)(k(Um),k(re),k(Ce))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jS(t){return 0===t.buttons||0===t.detail}function HS(t){const i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!i||-1!==i.identifier||null!=i.radiusX&&1!==i.radiusX||null!=i.radiusY&&1!==i.radiusY)}const W$=new T("cdk-input-modality-detector-options"),G$={ignoreKeys:[18,17,224,91,16]},al=nr({passive:!0,capture:!0});let q$=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,n,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new K(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=_o(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(jS(a)?"keyboard":"mouse"),this._mostRecentTarget=_o(a))},this._onTouchstart=a=>{HS(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=_o(a))},this._options={...G$,...o},this.modalityDetected=this._modality.pipe(OS(1)),this.modalityChanged=this.modalityDetected.pipe(ru()),e.isBrowser&&n.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,al),r.addEventListener("mousedown",this._onMousedown,al),r.addEventListener("touchstart",this._onTouchstart,al)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,al),document.removeEventListener("mousedown",this._onMousedown,al),document.removeEventListener("touchstart",this._onTouchstart,al))}static#e=this.\u0275fac=function(n){return new(n||t)(k(Fi),k(re),k(Ce),k(W$,8))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Y$=new T("cdk-focus-monitor-default-options"),$m=nr({passive:!0,capture:!0});let hb=(()=>{class t{constructor(e,n,r,o,a){this._ngZone=e,this._platform=n,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 W,this._rootNodeFocusAndBlurListener=l=>{for(let h=_o(l);h;h=h.parentElement)"focus"===l.type?this._onFocus(l,h):this._onBlur(l,h)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(e,n=!1){const r=ys(e);if(!this._platform.isBrowser||1!==r.nodeType)return z();const o=function i$(t){if(function t$(){if(null==rb){const t=typeof document<"u"?document.head:null;rb=!(!t||!t.createShadowRoot&&!t.attachShadow)}return rb}()){const i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return n&&(a.checkChildren=!0),a.subject;const l={checkChildren:n,subject:new W,rootNode:o};return this._elementInfo.set(r,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(e){const n=ys(e),r=this._elementInfo.get(n);r&&(r.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(r))}focusVia(e,n,r){const o=ys(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([l,d])=>this._originChanged(l,n,d)):(this._setOrigin(n),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_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,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused","touch"===n),e.classList.toggle("cdk-keyboard-focused","keyboard"===n),e.classList.toggle("cdk-mouse-focused","mouse"===n),e.classList.toggle("cdk-program-focused","program"===n)}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&n,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,n){const r=this._elementInfo.get(n),o=_o(e);!r||!r.checkChildren&&n!==o||this._originChanged(n,this._getFocusOrigin(o),r)}_onBlur(e,n){const r=this._elementInfo.get(n);!r||r.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(r,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const n=e.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,$m),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,$m)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Pi(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){const r=this._rootNodeFocusListenerCount.get(n);r>1?this._rootNodeFocusListenerCount.set(n,r-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$m),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$m),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,r){this._setClasses(e,n),this._emitOrigin(r,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){const n=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&n.push([o,r])}),n}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:n,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!n||n===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let a=0;a{class t{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=j(I$).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 n=this._document.defaultView||window,r=n&&n.getComputedStyle?n.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(mb,$S,WS),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?e.add(mb,$S):2===n&&e.add(mb,WS)}}static#e=this.\u0275fac=function(n){return new(n||t)(k(Fi),k(Ce))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wm=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(n){return new(n||t)(k(GS))};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[db]})}return t})();const X$=new T("cdk-dir-doc",{providedIn:"root",factory:function K$(){return j(Ce)}}),Q$=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let ld=(()=>{class t{constructor(e){this.value="ltr",this.change=new Pe,e&&(this.value=function J$(t){const i=t?.toLowerCase()||"";return"auto"===i&&typeof navigator<"u"&&navigator?.language?Q$.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(n){return new(n||t)(k(X$,8))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),cd=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({})}return t})();const r5=new T("mat-sanity-checks",{providedIn:"root",factory:function n5(){return!0}});let ye=(()=>{class t{constructor(e,n,r){this._sanityChecks=n,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!ob()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(n){return new(n||t)(k(GS),k(r5,8),k(Ce))};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[cd,cd]})}return t})();const a5=new T("MAT_DATE_LOCALE",{providedIn:"root",factory:function l5(){return j(Jn)}});class rr{constructor(){this._localeChanges=new W,this.localeChanges=this._localeChanges}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return null==i||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),r=this.isValid(e);return n&&r?!this.compareDate(i,e):n==r}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}}const fb=new T("mat-date-formats"),c5=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function pb(t,i){const e=Array(t);for(let n=0;n{class t extends rr{constructor(e,n){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return pb(12,r=>this._format(n,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return pb(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){const n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return pb(7,r=>this._format(n,new Date(2017,0,r+1)))}getYearName(e){const n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,r){let o=this._createDateWithOverflow(e,n,r);return o.getMonth(),o}today(){return new Date}parse(e,n){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...n,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,12*n)}addCalendarMonths(e,n){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+n)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(c5.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,n,r){const o=new Date;return o.setFullYear(e,n,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,n){const r=new Date;return r.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),r.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(r)}static#e=this.\u0275fac=function(n){return new(n||t)(k(a5,8),k(Fi))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})();const u5={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let h5=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[{provide:rr,useClass:d5}]})}return t})(),m5=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[{provide:fb,useValue:u5}],imports:[h5]})}return t})();const KS=nr({passive:!0,capture:!0});class p5{constructor(){this._events=new Map,this._delegateEventHandler=i=>{const e=_o(i);e&&this._events.get(i.type)?.forEach((n,r)=>{(r===e||r.contains(e))&&n.forEach(o=>o.handleEvent(i))})}}addHandler(i,e,n,r){const o=this._events.get(e);if(o){const a=o.get(n);a?a.add(r):o.set(n,new Set([r]))}else this._events.set(e,new Map([[n,new Set([r])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,KS)})}removeHandler(i,e,n){const r=this._events.get(i);if(!r)return;const o=r.get(e);o&&(o.delete(n),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,KS)))}}class ud{static#e=this._eventManager=new p5;constructor(i,e,n,r){this._target=i,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ys(n))}fadeInRipple(i,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...QS,...n.animation},a=n.radius||function _5(t,i,e){const n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+r*r)}(i,e,r),l=i-r.left,d=e-r.top,h=o.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=l-a+"px",f.style.top=d-a+"px",f.style.height=2*a+"px",f.style.width=2*a+"px",null!=n.color&&(f.style.backgroundColor=n.color),f.style.transitionDuration=`${h}ms`,this._containerElement.appendChild(f);const p=window.getComputedStyle(f),b=p.transitionDuration,x="none"===p.transitionProperty||"0s"===b||"0s, 0s"===b||0===r.width&&0===r.height,C=new f5(this,f,n,x);f.style.transform="scale3d(1, 1, 1)",C.state=0,n.persistent||(this._mostRecentTransientRipple=C);return!x&&(h||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const R=()=>this._finishRippleTransition(C),E=()=>this._destroyRipple(C);f.addEventListener("transitionend",R),f.addEventListener("transitioncancel",E)}),this._activeRipples.set(C,null),(x||!h)&&this._finishRippleTransition(C),C}fadeOutRipple(i){if(2===i.state||3===i.state)return;const e=i.element,n={...QS,...i.config.animation};e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=2,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){const e=ys(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,eI.forEach(n=>{ud._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){"mousedown"===i.type?this._onMousedown(i):"touchstart"===i.type?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{tI.forEach(e=>{this._triggerElement.addEventListener(e,this,JS)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){0===i.state?this._startFadeOutTransition(i):2===i.state&&this._destroyRipple(i)}_startFadeOutTransition(i){const e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=1,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){const e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=3,null!==e&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel)),i.element.remove()}_onMousedown(i){const e=jS(i),n=this._lastTouchStartEvent&&Date.now(){!i.config.persistent&&(1===i.state||i.config.terminateOnPointerUp&&0===i.state)&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const i=this._triggerElement;i&&(eI.forEach(e=>ud._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&tI.forEach(e=>i.removeEventListener(e,this,JS)))}}let hd=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[ye,ye]})}return t})(),nI=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[ye]})}return t})(),rI=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[hd,Oi,ye,nI]})}return t})(),X5=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[ye,ye]})}return t})(),r8=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[ye,Oi,ye]})}return t})(),CI=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[ye,ye]})}return t})();const cl=new T("CallSetDisabledState",{providedIn:"root",factory:()=>rf}),rf="always";let mA=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({})}return t})(),n6=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[mA]})}return t})(),o6=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:cl,useValue:e.callSetDisabledState??rf}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[n6]})}return t})(),F6=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[db,Oi,ye,hd,nI,CI]})}return t})(),N6=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({})}return t})();class Gb{attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;null!=i&&(this._attachedHost=null,i.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(i){this._attachedHost=i}}class qb extends Gb{constructor(i,e,n,r,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=o}}class PA extends Gb{constructor(i,e,n,r){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}}class L6 extends Gb{constructor(i){super(),this.element=i instanceof _e?i.nativeElement:i}}class Zb{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(i){return i instanceof qb?(this._attachedPortal=i,this.attachComponentPortal(i)):i instanceof PA?(this._attachedPortal=i,this.attachTemplatePortal(i)):this.attachDomPortal&&i instanceof L6?(this._attachedPortal=i,this.attachDomPortal(i)):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(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class B6 extends Zb{constructor(i,e,n,r,o){super(),this.outletElement=i,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=a=>{const l=a.element,d=this._document.createComment("dom-portal");l.parentNode.insertBefore(d,l),this.outletElement.appendChild(l),this._attachedPortal=a,super.setDisposeFn(()=>{d.parentNode&&d.parentNode.replaceChild(l,d)})},this._document=o}attachComponentPortal(i){const n=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);let r;return i.viewContainerRef?(r=i.viewContainerRef.createComponent(n,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector,i.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(i.injector||this._defaultInjector||Ot.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=i,r}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(n);-1!==r&&e.remove(r)}),this._attachedPortal=i,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}}let Yb=(()=>{class t extends Zb{constructor(e,n,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new Pe,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=n.createComponent(o,n.length,e.injector||n.injector,e.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static#e=this.\u0275fac=function(n){return new(n||t)(w(Ca),w(Zt),w(Ce))};static#t=this.\u0275dir=O({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[$]})}return t})(),dl=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({})}return t})(),V6=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[Oi,ye,N6,dl]})}return t})(),z6=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({})}return t})(),Xb=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[ye,Oi,db,ye]})}return t})(),Y6=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[ye,Xb,Xb,z6,ye]})}return t})(),Kb=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[ye,hd,ye]})}return t})();const Q6=["addListener","removeListener"],J6=["addEventListener","removeEventListener"],eW=["on","off"];function Qb(t,i,e,n){if(De(e)&&(n=e,e=void 0),n)return Qb(t,i,e).pipe(av(n));const[r,o]=function nW(t){return De(t.addEventListener)&&De(t.removeEventListener)}(t)?J6.map(a=>l=>t[a](i,l,e)):function tW(t){return De(t.addListener)&&De(t.removeListener)}(t)?Q6.map(NA(t,i)):function iW(t){return De(t.on)&&De(t.off)}(t)?eW.map(NA(t,i)):[];if(!r&&Ml(t))return Tt(a=>Qb(a,i,e))(Yt(t));if(!r)throw new TypeError("Invalid event target");return new Xe(a=>{const l=(...d)=>a.next(1o(l)})}function NA(t,i){return e=>n=>t[e](i,n)}const xd={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=xd;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);const r=i(o=>{e=void 0,t(o)});return new ft(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:i}=xd;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:i}=xd;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};new class oW extends ab{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;i=i||n.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}}(class rW extends sb{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=xd.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:o}=i;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(xd.cancelAnimationFrame(e),i._scheduled=void 0)}});let Jb,aW=1;const df={};function LA(t){return t in df&&(delete df[t],!0)}const lW={setImmediate(t){const i=aW++;return df[i]=!0,Jb||(Jb=Promise.resolve()),Jb.then(()=>LA(i)&&t()),i},clearImmediate(t){LA(t)}},{setImmediate:cW,clearImmediate:dW}=lW,uf={setImmediate(...t){const{delegate:i}=uf;return(i?.setImmediate||cW)(...t)},clearImmediate(t){const{delegate:i}=uf;return(i?.clearImmediate||dW)(t)},delegate:void 0};new class hW extends ab{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;i=i||n.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}}(class uW extends sb{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=uf.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:o}=i;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(uf.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}});function BA(t,i=lb){return function fW(t){return Ve((i,e)=>{let n=!1,r=null,o=null,a=!1;const l=()=>{if(o?.unsubscribe(),o=null,n){n=!1;const h=r;r=null,e.next(h)}a&&e.complete()},d=()=>{o=null,a&&e.complete()};i.subscribe(Ne(e,h=>{n=!0,r=h,o||Yt(t(h)).subscribe(o=Ne(e,l,d))},()=>{a=!0,(!n||!o||o.closed)&&e.complete()}))})}(()=>function gW(t=0,i,e=w$){let n=-1;return null!=i&&(eu(i)?e=i:n=i),new Xe(r=>{let o=function pW(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=n?this.schedule(void 0,n):r.complete())},o)})}(t,i))}let vW=(()=>{class t{constructor(e,n,r){this._ngZone=e,this._platform=n,this._scrolled=new W,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 n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Xe(n=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(BA(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):z()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(ci(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&n.push(o)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let r=ys(n),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Qb(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(n){return new(n||t)(k(re),k(Fi),k(Ce,8))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ey=(()=>{class t{constructor(e,n,r){this._platform=e,this._change=new W,this._changeListener=o=>{this._change.next(o)},this._document=r,n.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:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(BA(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}}static#e=this.\u0275fac=function(n){return new(n||t)(k(Fi),k(re),k(Ce,8))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Do=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({})}return t})(),ty=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[cd,Do,cd,Do]})}return t})(),xW=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[Oi,ye,Do,Do,ye]})}return t})(),wW=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[ye,ye]})}return t})(),NW=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[ty]})}return t})(),WW=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[ye,NW,ye]})}return t})();const YA=e$();class qW{constructor(i,e){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Vt(-this._previousScrollPosition.left),i.style.top=Vt(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,n=i.style,r=this._document.body.style,o=n.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),YA&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),YA&&(n.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}}class ZW{constructor(i,e,n,r){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef=i}enable(){if(this._scrollSubscription)return;const i=this._scrollDispatcher.scrolled(0).pipe(ci(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class XA{enable(){}disable(){}attach(){}}function hy(t,i){return i.some(e=>t.bottome.bottom||t.righte.right)}function KA(t,i){return i.some(e=>t.tope.bottom||t.lefte.right)}class YW{constructor(i,e,n,r){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(i){this._overlayRef=i}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:n,height:r}=this._viewportRuler.getViewportSize();hy(e,[{width:n,height:r,bottom:r,right:n,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 XW=(()=>{class t{constructor(e,n,r,o){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=()=>new XA,this.close=a=>new ZW(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new qW(this._viewportRuler,this._document),this.reposition=a=>new YW(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}static#e=this.\u0275fac=function(n){return new(n||t)(k(vW),k(ey),k(re),k(Ce))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class QA{constructor(i){if(this.scrollStrategy=new XA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const e=Object.keys(i);for(const n of e)void 0!==i[n]&&(this[n]=i[n])}}}class KW{constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}}let JA=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(n){return new(n||t)(k(Ce))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),QW=(()=>{class t extends JA{constructor(e,n){super(e),this._ngZone=n,this._keydownListener=r=>{const o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){const l=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(r)):l.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(k(Ce),k(re,8))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),JW=(()=>{class t extends JA{constructor(e,n,r){super(e),this._platform=n,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=_o(o)},this._clickListener=o=>{const a=_o(o),l="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const d=this._attachedOverlays.slice();for(let h=d.length-1;h>-1;h--){const f=d[h];if(f._outsidePointerEvents.observers.length<1||!f.hasAttached())continue;if(f.overlayElement.contains(a)||f.overlayElement.contains(l))break;const p=f._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>p.next(o)):p.next(o)}}}add(e){if(super.add(e),!this._isAttached){const n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.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)}static#e=this.\u0275fac=function(n){return new(n||t)(k(Ce),k(Fi),k(re,8))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xf=(()=>{class t{constructor(e,n){this._platform=n,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||ob()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(p),this._backdropTransitionendHandler=p=>{this._disposeBackdrop(p.target)},this._keydownEvents=new W,this._outsidePointerEvents=new W,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(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe($i(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 i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){const i=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,i&&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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config={...this._config,...i},this._updateElementSize()}setDirection(i){this._config={...this._config,direction:i},this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){const i=this._config.direction;return i?"string"==typeof i?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const i=this._pane.style;i.width=Vt(this._config.width),i.height=Vt(this._config.height),i.minWidth=Vt(this._config.minWidth),i.minHeight=Vt(this._config.minHeight),i.maxWidth=Vt(this._config.maxWidth),i.maxHeight=Vt(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){const i="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(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const i=this._backdropElement;if(i){if(this._animationsDisabled)return void this._disposeBackdrop(i);i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,e,n){const r=Hm(e||[]).filter(o=>!!o);r.length&&(n?i.classList.add(...r):i.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe(Pi(jr(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()),i.unsubscribe())})})}_disposeScrollStrategy(){const i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const eT="cdk-overlay-connected-position-bounding-box",eG=/([A-Za-z%]+)$/;class tG{get positions(){return this._preferredPositions}constructor(i,e,n,r,o){this._viewportRuler=e,this._document=n,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 W,this._resizeSubscription=ft.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}attach(i){this._validatePositions(),i.hostElement.classList.add(eT),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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 i=this._originRect,e=this._overlayRect,n=this._viewportRect,r=this._containerRect,o=[];let a;for(let l of this._preferredPositions){let d=this._getOriginPoint(i,r,l),h=this._getOverlayPoint(d,e,l),f=this._getOverlayFit(h,e,n,l);if(f.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,d);this._canFitWithFlexibleDimensions(f,h,n)?o.push({position:l,origin:d,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(d,l)}):(!a||a.overlayFit.visibleAread&&(d=f,l=h)}return this._isPushed=!1,void this._applyPosition(l.position,l.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ks(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(eT),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const i=this._lastPosition;if(i){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,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,-1===i.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,n){let r,o;if("center"==n.originX)r=i.left+i.width/2;else{const a=this._isRtl()?i.right:i.left,l=this._isRtl()?i.left:i.right;r="start"==n.originX?a:l}return e.left<0&&(r-=e.left),o="center"==n.originY?i.top+i.height/2:"top"==n.originY?i.top:i.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(i,e,n){let r,o;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:i.x+r,y:i.y+o}}_getOverlayFit(i,e,n,r){const o=iT(e);let{x:a,y:l}=i,d=this._getOffset(r,"x"),h=this._getOffset(r,"y");d&&(a+=d),h&&(l+=h);let _=0-l,b=l+o.height-n.height,x=this._subtractOverflows(o.width,0-a,a+o.width-n.width),C=this._subtractOverflows(o.height,_,b),M=x*C;return{visibleArea:M,isCompletelyWithinViewport:o.width*o.height===M,fitsInViewportVertically:C===o.height,fitsInViewportHorizontally:x==o.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,o=n.right-e.x,a=tT(this._overlayRef.getConfig().minHeight),l=tT(this._overlayRef.getConfig().minWidth);return(i.fitsInViewportVertically||null!=a&&a<=r)&&(i.fitsInViewportHorizontally||null!=l&&l<=o)}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const r=iT(e),o=this._viewportRect,a=Math.max(i.x+r.width-o.width,0),l=Math.max(i.y+r.height-o.height,0),d=Math.max(o.top-n.top-i.y,0),h=Math.max(o.left-n.left-i.x,0);let f=0,p=0;return f=r.width<=o.width?h||-a:i.xx&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-x/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)_=n.width-i.x+this._viewportMargin,f=i.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)p=i.x,f=n.right-i.x;else{const b=Math.min(n.right-i.x+n.left,i.x),x=this._lastBoundingBoxSize.width;f=2*b,p=i.x-b,f>x&&!this._isInitialRender&&!this._growAfterOpen&&(p=i.x-x/2)}return{top:a,left:p,bottom:l,right:_,width:f,height:o}}_setBoundingBoxStyles(i,e){const n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.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,a=this._overlayRef.getConfig().maxWidth;r.height=Vt(n.height),r.top=Vt(n.top),r.bottom=Vt(n.bottom),r.width=Vt(n.width),r.left=Vt(n.left),r.right=Vt(n.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=Vt(o)),a&&(r.maxWidth=Vt(a))}this._lastBoundingBoxSize=n,ks(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ks(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ks(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){const n={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){const f=this._viewportRuler.getViewportScrollPosition();ks(n,this._getExactOverlayY(e,i,f)),ks(n,this._getExactOverlayX(e,i,f))}else n.position="static";let l="",d=this._getOffset(e,"x"),h=this._getOffset(e,"y");d&&(l+=`translateX(${d}px) `),h&&(l+=`translateY(${h}px)`),n.transform=l.trim(),a.maxHeight&&(r?n.maxHeight=Vt(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(r?n.maxWidth=Vt(a.maxWidth):o&&(n.maxWidth="")),ks(this._pane.style,n)}_getExactOverlayY(i,e,n){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"bottom"===i.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Vt(o.y),r}_getExactOverlayX(i,e,n){let a,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),a=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===a?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Vt(o.x),r}_getScrollVisibility(){const i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:KA(i,n),isOriginOutsideView:hy(i,n),isOverlayClipped:KA(e,n),isOverlayOutsideView:hy(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,r)=>n-Math.max(r,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return"x"===e?null==i.offsetX?this._offsetX:i.offsetX:null==i.offsetY?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Hm(i).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof _e)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}}function ks(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function tT(t){if("number"!=typeof t&&null!=t){const[i,e]=t.split(eG);return e&&"px"!==e?null:parseFloat(i)}return t||null}function iT(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const nT="cdk-global-overlay-wrapper";class iG{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){const e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(nT),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:l}=n,d=!("100%"!==r&&"100vw"!==r||a&&"100%"!==a&&"100vw"!==a),h=!("100%"!==o&&"100vh"!==o||l&&"100%"!==l&&"100vh"!==l),f=this._xPosition,p=this._xOffset,_="rtl"===this._overlayRef.getConfig().direction;let b="",x="",C="";d?C="flex-start":"center"===f?(C="center",_?x=p:b=p):_?"left"===f||"end"===f?(C="flex-end",b=p):("right"===f||"start"===f)&&(C="flex-start",x=p):"left"===f||"start"===f?(C="flex-start",b=p):("right"===f||"end"===f)&&(C="flex-end",x=p),i.position=this._cssPosition,i.marginLeft=d?"0":b,i.marginTop=h?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=d?"0":x,e.justifyContent=C,e.alignItems=h?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(nT),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let nG=(()=>{class t{constructor(e,n,r,o){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o}global(){return new iG}flexibleConnectedTo(e){return new tG(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(n){return new(n||t)(k(ey),k(Ce),k(Fi),k(xf))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rG=0,or=(()=>{class t{constructor(e,n,r,o,a,l,d,h,f,p,_,b){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=l,this._ngZone=d,this._document=h,this._directionality=f,this._location=p,this._outsideClickDispatcher=_,this._animationsModuleType=b}create(e){const n=this._createHostElement(),r=this._createPaneElement(n),o=this._createPortalOutlet(r),a=new QA(e);return a.direction=a.direction||this._directionality.value,new Dd(o,n,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const n=this._document.createElement("div");return n.id="cdk-overlay-"+rG++,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ao)),new B6(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(n){return new(n||t)(k(XW),k(xf),k(Ca),k(nG),k(QW),k(Ot),k(re),k(Ce),k(ld),k(Fc),k(JW),k(_r,8))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const aG={provide:new T("cdk-connected-overlay-scroll-strategy"),deps:[or],useFactory:function sG(t){return()=>t.scrollStrategies.reposition()}};let fl=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[or,aG],imports:[cd,dl,ty,ty]})}return t})();const hG={provide:new T("mat-select-scroll-strategy"),deps:[or],useFactory:function uG(t){return()=>t.scrollStrategies.reposition()}};let rT=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[hG],imports:[Oi,fl,rI,ye,Do,Xb,rI,ye]})}return t})();const gG={provide:new T("mat-tooltip-scroll-strategy"),deps:[or],useFactory:function pG(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}};let oT=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[gG],imports:[Wm,Oi,fl,ye,ye,Do]})}return t})(),my=(()=>{class t{constructor(){this.changes=new W,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,n,r)=>{if(0==r||0==n)return`0 of ${r}`;const o=e*n;return`${o+1} \u2013 ${o<(r=Math.max(r,0))?Math.min(o+n,r):o+n} of ${r}`}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const wG={provide:my,deps:[[new gn,new qn,my]],useFactory:function xG(t){return t||new my}};let CG=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[wG],imports:[Oi,Kb,rT,oT]})}return t})();const EG={provide:new T("mat-menu-scroll-strategy"),deps:[or],useFactory:function kG(t){return()=>t.scrollStrategies.reposition()}};let SG=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[EG],imports:[Oi,hd,ye,fl,Do,ye]})}return t})(),fy=(()=>{class t{constructor(){this.changes=new W}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const AG={provide:fy,deps:[[new gn,new qn,fy]],useFactory:function IG(t){return t||new fy}};let TG=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[AG],imports:[Oi,ye]})}return t})(),cT=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({})}return t})(),$G=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[ye,hd,cT,ye,cT]})}return t})();function WG(t,i){}class wf{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let dT=(()=>{class t extends Zb{constructor(e,n,r,o,a,l,d,h){super(),this._elementRef=e,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=a,this._ngZone=l,this._overlayRef=d,this._focusMonitor=h,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=f=>{this._portalOutlet.hasAttached();const p=this._portalOutlet.attachDomPortal(f);return this._contentAttached(),p},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){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(n)}_focusByCssSelector(e,n){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,n)}_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(n=>{n||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 n=null;if("string"==typeof e?n=this._document.querySelector(e):"boolean"==typeof e?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&"function"==typeof n.focus){const r=zm(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,n=zm();return e===n||e.contains(n)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=zm())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(n){return new(n||t)(w(_e),w(ub),w(Ce,8),w(wf),w(Um),w(re),w(Dd),w(hb))};static#t=this.\u0275cmp=it({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(1&n&&Ai(Yb,7),2&n){let o;je(o=function He(){return function b2(t,i){return t[ct].queries[i].queryList}(F(),lx())}())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){2&n&&Ft("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[$],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){1&n&&kt(0,WG,0,0,"ng-template",0)},dependencies:[Yb],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})();class py{constructor(i,e){this.overlayRef=i,this.config=e,this.closed=new W,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{27===n.keyCode&&!this.disableClose&&!sl(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(i,e){if(this.containerInstance){const n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}}const uT=new T("DialogScrollStrategy"),GG=new T("DialogData"),qG=new T("DefaultDialogConfig"),YG={provide:uT,deps:[or],useFactory:function ZG(t){return()=>t.scrollStrategies.block()}};let XG=0,hT=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,n,r,o,a,l){this._overlay=e,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new W,this._afterOpenedAtThisLevel=new W,this._ariaHiddenElements=new Map,this.afterAllClosed=nm(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(rm(void 0))),this._scrollStrategy=l}open(e,n){(n={...this._defaultOptions||new wf,...n}).id=n.id||"cdk-dialog-"+XG++,n.id&&this.getDialogById(n.id);const o=this._getOverlayConfig(n),a=this._overlay.create(o),l=new py(a,n),d=this._attachContainer(a,l,n);return l.containerInstance=d,this._attachDialogContent(e,l,d,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){gy(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){gy(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),gy(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const n=new QA({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&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,r){const o=r.injector||r.viewContainerRef?.injector,a=[{provide:wf,useValue:r},{provide:py,useValue:n},{provide:Dd,useValue:e}];let l;r.container?"function"==typeof r.container?l=r.container:(l=r.container.type,a.push(...r.container.providers(r))):l=dT;const d=new qb(l,r.viewContainerRef,Ot.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(d).instance}_attachDialogContent(e,n,r,o){if(e instanceof qt){const a=this._createInjector(o,n,r,void 0);let l={$implicit:o.data,dialogRef:n};o.templateContext&&(l={...l,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new PA(e,null,l,a))}else{const a=this._createInjector(o,n,r,this._injector),l=r.attachComponentPortal(new qb(e,o.viewContainerRef,a,o.componentFactoryResolver));n.componentRef=l,n.componentInstance=l.instance}}_createInjector(e,n,r,o){const a=e.injector||e.viewContainerRef?.injector,l=[{provide:GG,useValue:e.data},{provide:py,useValue:n}];return e.providers&&("function"==typeof e.providers?l.push(...e.providers(n,e,r)):l.push(...e.providers)),e.direction&&(!a||!a.get(ld,null,{optional:!0}))&&l.push({provide:ld,useValue:{value:e.direction,change:z()}}),Ot.create({parent:a||o,providers:l})}_removeOpenDialog(e,n){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const n=e.parentElement.children;for(let r=n.length-1;r>-1;r--){const o=n[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}static#e=this.\u0275fac=function(n){return new(n||t)(k(or),k(Ot),k(qG,8),k(t,12),k(xf),k(uT))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function gy(t,i){let e=t.length;for(;e--;)i(t[e])}let KG=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[hT,YG],imports:[fl,dl,Wm,dl]})}return t})();function QG(t,i){}class Cf{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}}const _y="mdc-dialog--open",mT="mdc-dialog--opening",fT="mdc-dialog--closing";let tq=(()=>{class t extends dT{constructor(e,n,r,o,a,l,d,h){super(e,n,r,o,a,l,d,h),this._animationStateChanged=new Pe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}static#e=this.\u0275fac=function(n){return new(n||t)(w(_e),w(ub),w(Ce,8),w(Cf),w(Um),w(re),w(Dd),w(hb))};static#t=this.\u0275cmp=it({type:t,selectors:[["ng-component"]],features:[$],decls:0,vars:0,template:function(n,r){},encapsulation:2})}return t})();const pT="--mat-dialog-transition-duration";function gT(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?vo(t.substring(0,t.length-2)):t.endsWith("s")?1e3*vo(t.substring(0,t.length-1)):"0"===t?0:null}let iq=(()=>{class t extends tq{constructor(e,n,r,o,a,l,d,h,f){super(e,n,r,o,a,l,d,f),this._animationMode=h,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?gT(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?gT(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(pT,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(mT,_y)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(_y),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(_y),this._animationsEnabled?(this._hostElement.style.setProperty(pT,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(fT)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(mT,fT)}_waitForAnimationToComplete(e,n){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})}static#e=this.\u0275fac=function(n){return new(n||t)(w(_e),w(ub),w(Ce,8),w(Cf),w(Um),w(re),w(Dd),w(_r,8),w(hb))};static#t=this.\u0275cmp=it({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(n,r){2&n&&(Cc("id",r._config.id),Ft("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),Kt("_mat-animation-noopable",!r._animationsEnabled))},features:[$],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,r){1&n&&(Qe(0,"div",0)(1,"div",1),kt(2,QG,0,0,"ng-template",2),vt()())},dependencies:[Yb],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return t})();class nq{constructor(i,e,n){this._ref=i,this._containerInstance=n,this._afterOpened=new W,this._beforeClosed=new W,this._state=0,this.disableClose=e.disableClose,this.id=i.id,n._animationStateChanged.pipe(ci(r=>"opened"===r.state),$i(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(ci(r=>"closed"===r.state),$i(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),jr(this.backdropClick(),this.keydownEvents().pipe(ci(r=>27===r.keyCode&&!this.disableClose&&!sl(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function rq(t,i,e){t._closeInteractionType=i,t.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(ci(e=>"closing"===e.state),$i(1)).subscribe(e=>{this._beforeClosed.next(i),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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const oq=new T("MatMdcDialogData"),sq=new T("mat-mdc-dialog-default-options"),_T=new T("mat-mdc-dialog-scroll-strategy"),lq={provide:_T,deps:[or],useFactory:function aq(t){return()=>t.scrollStrategies.block()}};let cq=0,dq=(()=>{class t{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}constructor(e,n,r,o,a,l,d,h,f,p){this._overlay=e,this._defaultOptions=r,this._parentDialog=o,this._dialogRefConstructor=d,this._dialogContainerType=h,this._dialogDataToken=f,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new W,this._afterOpenedAtThisLevel=new W,this._idPrefix="mat-dialog-",this.dialogConfigClass=Cf,this.afterAllClosed=nm(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(rm(void 0))),this._scrollStrategy=l,this._dialog=n.get(hT)}open(e,n){let r;(n={...this._defaultOptions||new Cf,...n}).id=n.id||`${this._idPrefix}${cq++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...n,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:wf,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(a,l,d)=>(r=new this._dialogRefConstructor(a,n,d),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static#e=this.\u0275fac=function(n){cc()};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),uq=(()=>{class t extends dq{constructor(e,n,r,o,a,l,d,h){super(e,n,o,l,d,a,nq,iq,oq,h),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(n){return new(n||t)(k(or),k(Ot),k(Fc,8),k(sq,8),k(_T),k(t,12),k(xf),k(_r,8))};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),hq=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[uq,lq],imports:[KG,fl,dl,ye,ye]})}return t})(),pq=(()=>{class t{constructor(){this.changes=new W,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Mq={provide:new T("mat-datepicker-scroll-strategy"),deps:[or],useFactory:function Dq(t){return()=>t.scrollStrategies.reposition()}};let Rq=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({providers:[pq,Mq],imports:[Oi,Kb,fl,Wm,dl,ye,Do]})}return t})(),Oq=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[Wm,ye,ye]})}return t})(),Bq=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({})}return t})(),$q=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[Bq,ye,ye]})}return t})(),Wq=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({})}return t})(),Gq=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[r8,X5,CI,F6,V6,Y6,Kb,xW,wW,WW,CG,SG,TG,hq,o6,rT,Rq,m5,$G,oT,Oq,$q,Wq]})}return t})(),CT=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[Oi,Gq,Rv]})}return t})(),qq=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t});static#i=this.\u0275inj=Y({imports:[Oi,CT,CT]})}return t})(),Zq=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=X({type:t,bootstrap:[t4]});static#i=this.\u0275inj=Y({imports:[Rk,e4,QU,qq]})}return t})();pj().bootstrapModule(Zq).catch(t=>console.error(t))},433:function(Sd,Id){!function(V){"use strict";function Le(s){var c,u,m,g;for(u=1,m=arguments.length;u"u")&&L&&L.Mixin){s=zt(s)?s:[s];for(var c=0;c0?Math.floor(s):Math.ceil(s)};function le(s,c,u){return s instanceof de?s:zt(s)?new de(s[0],s[1]):null==s?s:"object"==typeof s&&"x"in s&&"y"in s?new de(s.x,s.y):new de(s,c,u)}function pt(s,c){if(s)for(var u=c?[s,c]:s,m=0,g=u.length;m=this.min.x&&u.x<=this.max.x&&c.y>=this.min.y&&u.y<=this.max.y},intersects:function(s){s=ui(s);var c=this.min,u=this.max,m=s.min,g=s.max;return g.x>=c.x&&m.x<=u.x&&g.y>=c.y&&m.y<=u.y},overlaps:function(s){s=ui(s);var c=this.min,u=this.max,m=s.min,g=s.max;return g.x>c.x&&m.xc.y&&m.y=c.lat&&g.lat<=u.lat&&m.lng>=c.lng&&g.lng<=u.lng},intersects:function(s){s=W(s);var c=this._southWest,u=this._northEast,m=s.getSouthWest(),g=s.getNorthEast();return g.lat>=c.lat&&m.lat<=u.lat&&g.lng>=c.lng&&m.lng<=u.lng},overlaps:function(s){s=W(s);var c=this._southWest,u=this._northEast,m=s.getSouthWest(),g=s.getNorthEast();return g.lat>c.lat&&m.latc.lng&&m.lng1,Wd=function(){var s=!1;try{var c=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassiveEventSupport",qe,c),window.removeEventListener("testPassiveEventSupport",qe,c)}catch{}return s}(),Gd=!!document.createElement("canvas").getContext,Ps=!(!document.createElementNS||!Od("svg").createSVGRect),qd=!!Ps&&function(){var s=document.createElement("div");return s.innerHTML="","http://www.w3.org/2000/svg"===(s.firstChild&&s.firstChild.namespaceURI)}(),zf=!Ps&&function(){try{var s=document.createElement("div");s.innerHTML='';var c=s.firstChild;return c.style.behavior="url(#default#VML)",c&&"object"==typeof c.adj}catch{return!1}}();function Wi(s){return navigator.userAgent.toLowerCase().indexOf(s)>=0}var Z={ie:yl,ielt9:My,edge:Rf,webkit:xl,android:wl,android23:Nd,androidStock:Of,opera:Ro,chrome:Dl,gecko:Ld,safari:Pf,phantom:Bd,opera12:Sn,win:Vd,ie3d:zd,webkit3d:Os,gecko3d:jd,any3d:Ff,mobile:Oo,mobileWebkit:Nf,mobileWebkit3d:Lf,msPointer:Hd,pointer:Ud,touch:Bf,touchNative:$d,mobileOpera:Vf,mobileGecko:ky,retina:Ml,passiveEvents:Wd,canvas:Gd,svg:Ps,vml:zf,inlineSvg:qd,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Yt=Z.msPointer?"MSPointerDown":"pointerdown",Xd=Z.msPointer?"MSPointerMove":"pointermove",Kd=Z.msPointer?"MSPointerUp":"pointerup",Qd=Z.msPointer?"MSPointerCancel":"pointercancel",kl={touchstart:Yt,touchmove:Xd,touchend:Kd,touchcancel:Qd},El={touchstart:function eu(s,c){c.MSPOINTER_TYPE_TOUCH&&c.pointerType===c.MSPOINTER_TYPE_TOUCH&&Xt(c),Fs(s,c)},touchmove:Fs,touchend:Fs,touchcancel:Fs},Lr={},Jd=!1;function In(s,c,u){return"touchstart"===c&&function Ey(){Jd||(document.addEventListener(Yt,Tt,!0),document.addEventListener(Xd,Br,!0),document.addEventListener(Kd,Gi,!0),document.addEventListener(Qd,Gi,!0),Jd=!0)}(),El[c]?(u=El[c].bind(this,u),s.addEventListener(kl[c],u,!1),u):(console.warn("wrong event specified:",c),qe)}function Tt(s){Lr[s.pointerId]=s}function Br(s){Lr[s.pointerId]&&(Lr[s.pointerId]=s)}function Gi(s){delete Lr[s.pointerId]}function Fs(s,c){if(c.pointerType!==(c.MSPOINTER_TYPE_MOUSE||"mouse")){for(var u in c.touches=[],Lr)c.touches.push(Lr[u]);c.changedTouches=[c],s(c)}}var tu=200;var lr,Lo,Ie,Il,Vs,Ns=Bs(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Vr=Bs(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),iu="webkitTransition"===Vr||"OTransition"===Vr?Vr+"End":"transitionend";function nu(s){return"string"==typeof s?document.getElementById(s):s}function Fo(s,c){var u=s.style[c]||s.currentStyle&&s.currentStyle[c];if((!u||"auto"===u)&&document.defaultView){var m=document.defaultView.getComputedStyle(s,null);u=m?m[c]:null}return"auto"===u?null:u}function Te(s,c,u){var m=document.createElement(s);return m.className=c||"",u&&u.appendChild(m),m}function at(s){var c=s.parentNode;c&&c.removeChild(s)}function Ls(s){for(;s.firstChild;)s.removeChild(s.firstChild)}function zr(s){var c=s.parentNode;c&&c.lastChild!==s&&c.appendChild(s)}function lt(s){var c=s.parentNode;c&&c.firstChild!==s&&c.insertBefore(s,c.firstChild)}function jr(s,c){if(void 0!==s.classList)return s.classList.contains(c);var u=Hr(s);return u.length>0&&new RegExp("(^|\\s)"+c+"(\\s|$)").test(u)}function K(s,c){if(void 0!==s.classList)for(var u=kn(c),m=0,g=u.length;m0?2*window.devicePixelRatio:1;function Gf(s){return Z.edge?s.wheelDeltaY/2:s.deltaY&&0===s.deltaMode?-s.deltaY/Wf:s.deltaY&&1===s.deltaMode?20*-s.deltaY:s.deltaY&&2===s.deltaMode?60*-s.deltaY:s.deltaX||s.deltaZ?0:s.wheelDelta?(s.wheelDeltaY||s.wheelDelta)/2:s.detail&&Math.abs(s.detail)<32765?20*-s.detail:s.detail?s.detail/-32765*60:0}function fi(s,c){var u=c.relatedTarget;if(!u)return!0;try{for(;u&&u!==s;)u=u.parentNode}catch{return!1}return u!==s}var ne={__proto__:null,on:pe,off:We,stopPropagation:wi,disableScrollPropagation:au,disableClickPropagation:zs,preventDefault:Xt,stop:Ur,getPropagationPath:lu,getMousePosition:$f,getWheelDelta:Gf,isExternalTarget:fi,addListener:pe,removeListener:We},qf=So.extend({run:function(s,c,u,m){this.stop(),this._el=s,this._inProgress=!0,this._duration=u||.25,this._easeOutPower=1/Math.max(m||.5,.2),this._startPos=tt(s),this._offset=c.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=jt(this._animate,this),this._step()},_step:function(s){var c=+new Date-this._startTime,u=1e3*this._duration;cthis.options.maxZoom)?this.setZoom(s):this},panInsideBounds:function(s,c){this._enforcingBounds=!0;var u=this.getCenter(),m=this._limitCenter(u,this._zoom,W(s));return u.equals(m)||this.panTo(m,c),this._enforcingBounds=!1,this},panInside:function(s,c){var u=le((c=c||{}).paddingTopLeft||c.padding||[0,0]),m=le(c.paddingBottomRight||c.padding||[0,0]),g=this.project(this.getCenter()),v=this.project(s),y=this.getPixelBounds(),D=ui([y.min.add(u),y.max.subtract(m)]),S=D.getSize();if(!D.contains(v)){this._enforcingBounds=!0;var P=v.subtract(D.getCenter()),B=D.extend(v).getSize().subtract(S);g.x+=P.x<0?-B.x:B.x,g.y+=P.y<0?-B.y:B.y,this.panTo(this.unproject(g),c),this._enforcingBounds=!1}return this},invalidateSize:function(s){if(!this._loaded)return this;s=Le({animate:!1,pan:!0},!0===s?{animate:!0}:s);var c=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var u=this.getSize(),m=c.divideBy(2).round(),g=u.divideBy(2).round(),v=m.subtract(g);return v.x||v.y?(s.animate&&s.pan?this.panBy(v):(s.pan&&this._rawPanBy(v),this.fire("move"),s.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(Ge(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:c,newSize:u})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(s){if(s=this._locateOptions=Le({timeout:1e4,watch:!1},s),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var c=Ge(this._handleGeolocationResponse,this),u=Ge(this._handleGeolocationError,this);return s.watch?this._locationWatchId=navigator.geolocation.watchPosition(c,u,s):navigator.geolocation.getCurrentPosition(c,u,s),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(s){if(this._container._leaflet_id){var c=s.code,u=s.message||(1===c?"permission denied":2===c?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:c,message:"Geolocation error: "+u+"."})}},_handleGeolocationResponse:function(s){if(this._container._leaflet_id){var m=new Be(s.coords.latitude,s.coords.longitude),g=m.toBounds(2*s.coords.accuracy),v=this._locateOptions;if(v.setView){var y=this.getBoundsZoom(g);this.setView(m,v.maxZoom?Math.min(y,v.maxZoom):y)}var D={latlng:m,bounds:g,timestamp:s.timestamp};for(var S in s.coords)"number"==typeof s.coords[S]&&(D[S]=s.coords[S]);this.fire("locationfound",D)}},addHandler:function(s,c){if(!c)return this;var u=this[s]=new c(this);return this._handlers.push(u),this.options[s]&&u.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}var s;for(s in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),at(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Li(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[s].remove();for(s in this._panes)at(this._panes[s]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(s,c){var m=Te("div","leaflet-pane"+(s?" leaflet-"+s.replace("Pane","")+"-pane":""),c||this._mapPane);return s&&(this._panes[s]=m),m},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var s=this.getPixelBounds();return new hi(this.unproject(s.getBottomLeft()),this.unproject(s.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(s,c,u){s=W(s),u=le(u||[0,0]);var m=this.getZoom()||0,g=this.getMinZoom(),v=this.getMaxZoom(),y=s.getNorthWest(),D=s.getSouthEast(),S=this.getSize().subtract(u),P=ui(this.project(D,m),this.project(y,m)).getSize(),B=Z.any3d?this.options.zoomSnap:1,Q=S.x/P.x,ue=S.y/P.y,ct=c?Math.max(Q,ue):Math.min(Q,ue);return m=this.getScaleZoom(ct,m),B&&(m=Math.round(m/(B/100))*(B/100),m=c?Math.ceil(m/B)*B:Math.floor(m/B)*B),Math.max(g,Math.min(v,m))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new de(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(s,c){var u=this._getTopLeftPoint(s,c);return new pt(u,u.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(s){return this.options.crs.getProjectedBounds(void 0===s?this.getZoom():s)},getPane:function(s){return"string"==typeof s?this._panes[s]:s},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(s,c){var u=this.options.crs;return c=void 0===c?this._zoom:c,u.scale(s)/u.scale(c)},getScaleZoom:function(s,c){var u=this.options.crs,m=u.zoom(s*u.scale(c=void 0===c?this._zoom:c));return isNaN(m)?1/0:m},project:function(s,c){return c=void 0===c?this._zoom:c,this.options.crs.latLngToPoint(Me(s),c)},unproject:function(s,c){return c=void 0===c?this._zoom:c,this.options.crs.pointToLatLng(le(s),c)},layerPointToLatLng:function(s){var c=le(s).add(this.getPixelOrigin());return this.unproject(c)},latLngToLayerPoint:function(s){return this.project(Me(s))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(s){return this.options.crs.wrapLatLng(Me(s))},wrapLatLngBounds:function(s){return this.options.crs.wrapLatLngBounds(W(s))},distance:function(s,c){return this.options.crs.distance(Me(s),Me(c))},containerPointToLayerPoint:function(s){return le(s).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(s){return le(s).add(this._getMapPanePos())},containerPointToLatLng:function(s){var c=this.containerPointToLayerPoint(le(s));return this.layerPointToLatLng(c)},latLngToContainerPoint:function(s){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Me(s)))},mouseEventToContainerPoint:function(s){return $f(s,this._container)},mouseEventToLayerPoint:function(s){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(s))},mouseEventToLatLng:function(s){return this.layerPointToLatLng(this.mouseEventToLayerPoint(s))},_initContainer:function(s){var c=this._container=nu(s);if(!c)throw new Error("Map container not found.");if(c._leaflet_id)throw new Error("Map container is already initialized.");pe(c,"scroll",this._onScroll,this),this._containerId=Se(c)},_initLayout:function(){var s=this._container;this._fadeAnimated=this.options.fadeAnimation&&Z.any3d,K(s,"leaflet-container"+(Z.touch?" leaflet-touch":"")+(Z.retina?" leaflet-retina":"")+(Z.ielt9?" leaflet-oldie":"")+(Z.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var c=Fo(s,"position");"absolute"!==c&&"relative"!==c&&"fixed"!==c&&"sticky"!==c&&(s.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var s=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),gt(this._mapPane,new de(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(K(s.markerPane,"leaflet-zoom-hide"),K(s.shadowPane,"leaflet-zoom-hide"))},_resetView:function(s,c,u){gt(this._mapPane,new de(0,0));var m=!this._loaded;this._loaded=!0,c=this._limitZoom(c),this.fire("viewprereset");var g=this._zoom!==c;this._moveStart(g,u)._move(s,c)._moveEnd(g),this.fire("viewreset"),m&&this.fire("load")},_moveStart:function(s,c){return s&&this.fire("zoomstart"),c||this.fire("movestart"),this},_move:function(s,c,u,m){void 0===c&&(c=this._zoom);var g=this._zoom!==c;return this._zoom=c,this._lastCenter=s,this._pixelOrigin=this._getNewPixelOrigin(s),m?u&&u.pinch&&this.fire("zoom",u):((g||u&&u.pinch)&&this.fire("zoom",u),this.fire("move",u)),this},_moveEnd:function(s){return s&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Li(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(s){gt(this._mapPane,this._getMapPanePos().subtract(s))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(s){this._targets={},this._targets[Se(this._container)]=this;var c=s?We:pe;c(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&c(window,"resize",this._onResize,this),Z.any3d&&this.options.transform3DLimit&&(s?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Li(this._resizeRequest),this._resizeRequest=jt(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var s=this._getMapPanePos();Math.max(Math.abs(s.x),Math.abs(s.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(s,c){for(var m,u=[],g="mouseout"===c||"mouseover"===c,v=s.target||s.srcElement,y=!1;v;){if((m=this._targets[Se(v)])&&("click"===c||"preclick"===c)&&this._draggableMoved(m)){y=!0;break}if(m&&m.listens(c,!0)&&(g&&!fi(v,s)||(u.push(m),g))||v===this._container)break;v=v.parentNode}return!u.length&&!y&&!g&&this.listens(c,!0)&&(u=[this]),u},_isClickDisabled:function(s){for(;s&&s!==this._container;){if(s._leaflet_disable_click)return!0;s=s.parentNode}},_handleDOMEvent:function(s){var c=s.target||s.srcElement;if(!(!this._loaded||c._leaflet_disable_events||"click"===s.type&&this._isClickDisabled(c))){var u=s.type;"mousedown"===u&&I(c),this._fireDOMEvent(s,u)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(s,c,u){if("click"===s.type){var m=Le({},s);m.type="preclick",this._fireDOMEvent(m,m.type,u)}var g=this._findEventTargets(s,c);if(u){for(var v=[],y=0;y0?Math.round(s-c)/2:Math.max(0,Math.ceil(s))-Math.max(0,Math.floor(c))},_limitZoom:function(s){var c=this.getMinZoom(),u=this.getMaxZoom(),m=Z.any3d?this.options.zoomSnap:1;return m&&(s=Math.round(s/m)*m),Math.max(c,Math.min(u,s))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){z(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(s,c){var u=this._getCenterOffset(s)._trunc();return!(!0!==(c&&c.animate)&&!this.getSize().contains(u)||(this.panBy(u,c),0))},_createAnimProxy:function(){var s=this._proxy=Te("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(s),this.on("zoomanim",function(c){var u=Ns,m=this._proxy.style[u];ke(this._proxy,this.project(c.center,c.zoom),this.getZoomScale(c.zoom,1)),m===this._proxy.style[u]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){at(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var s=this.getCenter(),c=this.getZoom();ke(this._proxy,this.project(s,c),this.getZoomScale(c,1))},_catchTransitionEnd:function(s){this._animatingZoom&&s.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(s,c,u){if(this._animatingZoom)return!0;if(u=u||{},!this._zoomAnimated||!1===u.animate||this._nothingToAnimate()||Math.abs(c-this._zoom)>this.options.zoomAnimationThreshold)return!1;var m=this.getZoomScale(c),g=this._getCenterOffset(s)._divideBy(1-1/m);return!(!0!==u.animate&&!this.getSize().contains(g)||(jt(function(){this._moveStart(!0,u.noMoveStart||!1)._animateZoom(s,c,!0)},this),0))},_animateZoom:function(s,c,u,m){this._mapPane&&(u&&(this._animatingZoom=!0,this._animateToCenter=s,this._animateToZoom=c,K(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:s,zoom:c,noUpdate:m}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(Ge(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&z(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});var N=En.extend({options:{position:"topright"},initialize:function(s){st(this,s)},getPosition:function(){return this.options.position},setPosition:function(s){var c=this._map;return c&&c.removeControl(this),this.options.position=s,c&&c.addControl(this),this},getContainer:function(){return this._container},addTo:function(s){this.remove(),this._map=s;var c=this._container=this.onAdd(s),u=this.getPosition(),m=s._controlCorners[u];return K(c,"leaflet-control"),-1!==u.indexOf("bottom")?m.insertBefore(c,m.firstChild):m.appendChild(c),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(at(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(s){this._map&&s&&s.screenX>0&&s.screenY>0&&this._map.getContainer().focus()}}),js=function(s){return new N(s)};Ae.include({addControl:function(s){return s.addTo(this),this},removeControl:function(s){return s.remove(),this},_initControlPos:function(){var s=this._controlCorners={},c="leaflet-",u=this._controlContainer=Te("div",c+"control-container",this._container);function m(g,v){s[g+v]=Te("div",c+g+" "+c+v,u)}m("top","left"),m("top","right"),m("bottom","left"),m("bottom","right")},_clearControlPos:function(){for(var s in this._controlCorners)at(this._controlCorners[s]);at(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Y=N.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(s,c,u,m){return u1)?"":"none"),this._separator.style.display=c&&s?"":"none",this},_onLayerChange:function(s){this._handlingClick||this._update();var c=this._getLayer(Se(s.target)),u=c.overlay?"add"===s.type?"overlayadd":"overlayremove":"add"===s.type?"baselayerchange":null;u&&this._map.fire(u,c)},_createRadioElement:function(s,c){var u='",m=document.createElement("div");return m.innerHTML=u,m.firstChild},_addItem:function(s){var m,c=document.createElement("label"),u=this._map.hasLayer(s.layer);s.overlay?((m=document.createElement("input")).type="checkbox",m.className="leaflet-control-layers-selector",m.defaultChecked=u):m=this._createRadioElement("leaflet-base-layers_"+Se(this),u),this._layerControlInputs.push(m),m.layerId=Se(s.layer),pe(m,"click",this._onInputClick,this);var g=document.createElement("span");g.innerHTML=" "+s.name;var v=document.createElement("span");return c.appendChild(v),v.appendChild(m),v.appendChild(g),(s.overlay?this._overlaysList:this._baseLayersList).appendChild(c),this._checkDisabledLayers(),c},_onInputClick:function(){if(!this._preventClick){var c,u,s=this._layerControlInputs,m=[],g=[];this._handlingClick=!0;for(var v=s.length-1;v>=0;v--)u=this._getLayer((c=s[v]).layerId).layer,c.checked?m.push(u):c.checked||g.push(u);for(v=0;v=0;g--)u=this._getLayer((c=s[g]).layerId).layer,c.disabled=void 0!==u.options.minZoom&&mu.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var s=this._section;this._preventClick=!0,pe(s,"click",Xt),this.expand();var c=this;setTimeout(function(){We(s,"click",Xt),c._preventClick=!1})}}),Tl=N.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(s){var c="leaflet-control-zoom",u=Te("div",c+" leaflet-bar"),m=this.options;return this._zoomInButton=this._createButton(m.zoomInText,m.zoomInTitle,c+"-in",u,this._zoomIn),this._zoomOutButton=this._createButton(m.zoomOutText,m.zoomOutTitle,c+"-out",u,this._zoomOut),this._updateDisabled(),s.on("zoomend zoomlevelschange",this._updateDisabled,this),u},onRemove:function(s){s.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(s){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(s.shiftKey?3:1))},_createButton:function(s,c,u,m,g){var v=Te("a",u,m);return v.innerHTML=s,v.href="#",v.title=c,v.setAttribute("role","button"),v.setAttribute("aria-label",c),zs(v),pe(v,"click",Ur),pe(v,"click",g,this),pe(v,"click",this._refocusOnMap,this),v},_updateDisabled:function(){var s=this._map,c="leaflet-disabled";z(this._zoomInButton,c),z(this._zoomOutButton,c),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||s._zoom===s.getMinZoom())&&(K(this._zoomOutButton,c),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||s._zoom===s.getMaxZoom())&&(K(this._zoomInButton,c),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ae.mergeOptions({zoomControl:!0}),Ae.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Tl,this.addControl(this.zoomControl))});var du=N.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(s){var c="leaflet-control-scale",u=Te("div",c),m=this.options;return this._addScales(m,c+"-line",u),s.on(m.updateWhenIdle?"moveend":"move",this._update,this),s.whenReady(this._update,this),u},onRemove:function(s){s.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(s,c,u){s.metric&&(this._mScale=Te("div",c,u)),s.imperial&&(this._iScale=Te("div",c,u))},_update:function(){var s=this._map,c=s.getSize().y/2,u=s.distance(s.containerPointToLatLng([0,c]),s.containerPointToLatLng([this.options.maxWidth,c]));this._updateScales(u)},_updateScales:function(s){this.options.metric&&s&&this._updateMetric(s),this.options.imperial&&s&&this._updateImperial(s)},_updateMetric:function(s){var c=this._getRoundNum(s);this._updateScale(this._mScale,c<1e3?c+" m":c/1e3+" km",c/s)},_updateImperial:function(s){var u,m,g,c=3.2808399*s;c>5280?(m=this._getRoundNum(u=c/5280),this._updateScale(this._iScale,m+" mi",m/u)):(g=this._getRoundNum(c),this._updateScale(this._iScale,g+" ft",g/c))},_updateScale:function(s,c,u){s.style.width=Math.round(this.options.maxWidth*u)+"px",s.innerHTML=c},_getRoundNum:function(s){var c=Math.pow(10,(Math.floor(s)+"").length-1),u=s/c;return c*(u>=10?10:u>=5?5:u>=3?3:u>=2?2:1)}}),zo=N.extend({options:{position:"bottomright",prefix:''+(Z.inlineSvg?' ':"")+"Leaflet"},initialize:function(s){st(this,s),this._attributions={}},onAdd:function(s){for(var c in s.attributionControl=this,this._container=Te("div","leaflet-control-attribution"),zs(this._container),s._layers)s._layers[c].getAttribution&&this.addAttribution(s._layers[c].getAttribution());return this._update(),s.on("layeradd",this._addAttribution,this),this._container},onRemove:function(s){s.off("layeradd",this._addAttribution,this)},_addAttribution:function(s){s.layer.getAttribution&&(this.addAttribution(s.layer.getAttribution()),s.layer.once("remove",function(){this.removeAttribution(s.layer.getAttribution())},this))},setPrefix:function(s){return this.options.prefix=s,this._update(),this},addAttribution:function(s){return s?(this._attributions[s]||(this._attributions[s]=0),this._attributions[s]++,this._update(),this):this},removeAttribution:function(s){return s?(this._attributions[s]&&(this._attributions[s]--,this._update()),this):this},_update:function(){if(this._map){var s=[];for(var c in this._attributions)this._attributions[c]&&s.push(c);var u=[];this.options.prefix&&u.push(this.options.prefix),s.length&&u.push(s.join(", ")),this._container.innerHTML=u.join(' ')}}});Ae.mergeOptions({attributionControl:!0}),Ae.addInitHook(function(){this.options.attributionControl&&(new zo).addTo(this)});N.Layers=Y,N.Zoom=Tl,N.Scale=du,N.Attribution=zo,js.layers=function(s,c,u){return new Y(s,c,u)},js.zoom=function(s){return new Tl(s)},js.scale=function(s){return new du(s)},js.attribution=function(s){return new zo(s)};var dn=En.extend({initialize:function(s){this._map=s},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});dn.addTo=function(s,c){return s.addHandler(c,this),this};var xe={Events:Dt},Ws=Z.touch?"touchstart mousedown":"mousedown",An=So.extend({options:{clickTolerance:3},initialize:function(s,c,u,m){st(this,m),this._element=s,this._dragStartTarget=c||s,this._preventOutline=u},enable:function(){this._enabled||(pe(this._dragStartTarget,Ws,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(An._dragging===this&&this.finishDrag(!0),We(this._dragStartTarget,Ws,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(s){if(this._enabled&&(this._moved=!1,!jr(this._element,"leaflet-zoom-anim"))){if(s.touches&&1!==s.touches.length)return void(An._dragging===this&&this.finishDrag());if(!(An._dragging||s.shiftKey||1!==s.which&&1!==s.button&&!s.touches||(An._dragging=this,this._preventOutline&&I(this._element),Bo(),lr(),this._moving))){this.fire("down");var c=s.touches?s.touches[0]:s,u=se(this._element);this._startPoint=new de(c.clientX,c.clientY),this._startPos=tt(this._element),this._parentScale=Re(u);var m="mousedown"===s.type;pe(document,m?"mousemove":"touchmove",this._onMove,this),pe(document,m?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(s){if(this._enabled){if(s.touches&&s.touches.length>1)return void(this._moved=!0);var c=s.touches&&1===s.touches.length?s.touches[0]:s,u=new de(c.clientX,c.clientY)._subtract(this._startPoint);!u.x&&!u.y||Math.abs(u.x)+Math.abs(u.y)c&&(u.push(s[m]),g=m);return gv&&(y=D,v=S);v>u&&(c[y]=1,jo(s,c,u,m,y),jo(s,c,u,y,g))}function fu(s,c,u,m,g){var D,S,P,v=m?Gs:Wr(s,u),y=Wr(c,u);for(Gs=y;;){if(!(v|y))return[s,c];if(v&y)return!1;P=Wr(S=$r(s,c,D=v||y,u,g),u),D===v?(s=S,v=P):(c=S,y=P)}}function $r(s,c,u,m,g){var P,B,v=c.x-s.x,y=c.y-s.y,D=m.min,S=m.max;return 8&u?(P=s.x+v*(S.y-s.y)/y,B=S.y):4&u?(P=s.x+v*(D.y-s.y)/y,B=D.y):2&u?(P=S.x,B=s.y+y*(S.x-s.x)/v):1&u&&(P=D.x,B=s.y+y*(D.x-s.x)/v),new de(P,B,g)}function Wr(s,c){var u=0;return s.xc.max.x&&(u|=2),s.yc.max.y&&(u|=8),u}function Iy(s,c){var u=c.x-s.x,m=c.y-s.y;return u*u+m*m}function qs(s,c,u,m){var P,g=c.x,v=c.y,y=u.x-g,D=u.y-v,S=y*y+D*D;return S>0&&((P=((s.x-g)*y+(s.y-v)*D)/S)>1?(g=u.x,v=u.y):P>0&&(g+=y*P,v+=D*P)),y=s.x-g,D=s.y-v,m?y*y+D*D:new de(g,v)}function qi(s){return!zt(s[0])||"object"!=typeof s[0][0]&&typeof s[0][0]<"u"}function Xf(s){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),qi(s)}function Gr(s,c){var u,m,g,v,y,D,S,P;if(!s||0===s.length)throw new Error("latlngs not passed");qi(s)||(console.warn("latlngs are not flat! Only the first ring will be used"),s=s[0]);var B=Me([0,0]),Q=W(s);Q.getNorthWest().distanceTo(Q.getSouthWest())*Q.getNorthEast().distanceTo(Q.getNorthWest())<1700&&(B=hu(s));var ct=s.length,bt=[];for(u=0;um){P=[D.x-(S=(v-m)/g)*(D.x-y.x),D.y-S*(D.y-y.y)];break}var xt=c.unproject(le(P));return Me([xt.lat+B.lat,xt.lng+B.lng])}var Pl={__proto__:null,simplify:Zf,pointToSegmentDistance:Yf,closestPointOnSegment:function T(s,c,u){return qs(s,c,u)},clipSegment:fu,_getEdgeIntersection:$r,_getBitCode:Wr,_sqClosestPointOnSegment:qs,isFlat:qi,_flat:Xf,polylineCenter:Gr},qr={project:function(s){return new de(s.lng,s.lat)},unproject:function(s){return new Be(s.y,s.x)},bounds:new pt([-180,-90],[180,90])},Fl={R:6378137,R_MINOR:6356752.314245179,bounds:new pt([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(s){var c=Math.PI/180,u=this.R,m=s.lat*c,g=this.R_MINOR/u,v=Math.sqrt(1-g*g),y=v*Math.sin(m),D=Math.tan(Math.PI/4-m/2)/Math.pow((1-y)/(1+y),v/2);return m=-u*Math.log(Math.max(D,1e-10)),new de(s.lng*c*u,m)},unproject:function(s){for(var P,c=180/Math.PI,u=this.R,m=this.R_MINOR/u,g=Math.sqrt(1-m*m),v=Math.exp(-s.y/u),y=Math.PI/2-2*Math.atan(v),D=0,S=.1;D<15&&Math.abs(S)>1e-7;D++)P=g*Math.sin(y),P=Math.pow((1-P)/(1+P),g/2),y+=S=Math.PI/2-2*Math.atan(v*P)-y;return new Be(y*c,s.x*c/u)}},Kf={__proto__:null,LonLat:qr,Mercator:Fl,SphericalMercator:fe},Qf=Le({},Ne,{code:"EPSG:3395",projection:Fl,transformation:function(){var s=.5/(Math.PI*Fl.R);return Ao(s,.5,-s,.5)}()}),Nl=Le({},Ne,{code:"EPSG:4326",projection:qr,transformation:Ao(1/180,1,-1/180,.5)}),Zr=Le({},Ve,{projection:qr,transformation:Ao(1,0,-1,0),scale:function(s){return Math.pow(2,s)},zoom:function(s){return Math.log(s)/Math.LN2},distance:function(s,c){var u=c.lng-s.lng,m=c.lat-s.lat;return Math.sqrt(u*u+m*m)},infinite:!0});Ve.Earth=Ne,Ve.EPSG3395=Qf,Ve.EPSG3857=To,Ve.EPSG900913=Tf,Ve.EPSG4326=Nl,Ve.Simple=Zr;var Zi=So.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(s){return s.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(s){return s&&s.removeLayer(this),this},getPane:function(s){return this._map.getPane(s?this.options[s]||s:this.options.pane)},addInteractiveTarget:function(s){return this._map._targets[Se(s)]=this,this},removeInteractiveTarget:function(s){return delete this._map._targets[Se(s)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(s){var c=s.target;if(c.hasLayer(this)){if(this._map=c,this._zoomAnimated=c._zoomAnimated,this.getEvents){var u=this.getEvents();c.on(u,this),this.once("remove",function(){c.off(u,this)},this)}this.onAdd(c),this.fire("add"),c.fire("layeradd",{layer:this})}}});Ae.include({addLayer:function(s){if(!s._layerAdd)throw new Error("The provided object is not a Layer.");var c=Se(s);return this._layers[c]||(this._layers[c]=s,s._mapToAdd=this,s.beforeAdd&&s.beforeAdd(this),this.whenReady(s._layerAdd,s)),this},removeLayer:function(s){var c=Se(s);return this._layers[c]?(this._loaded&&s.onRemove(this),delete this._layers[c],this._loaded&&(this.fire("layerremove",{layer:s}),s.fire("remove")),s._map=s._mapToAdd=null,this):this},hasLayer:function(s){return Se(s)in this._layers},eachLayer:function(s,c){for(var u in this._layers)s.call(c,this._layers[u]);return this},_addLayers:function(s){for(var c=0,u=(s=s?zt(s)?s:[s]:[]).length;cthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&c[0]instanceof Be&&c[0].equals(c[u-1])&&c.pop(),c},_setLatLngs:function(s){ge.prototype._setLatLngs.call(this,s),qi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return qi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var s=this._renderer._bounds,c=this.options.weight,u=new de(c,c);if(s=new pt(s.min.subtract(u),s.max.add(u)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(s)){if(this.options.noClip)return void(this._parts=this._rings);for(var v,m=0,g=this._rings.length;ms.y!=(g=u[D]).y>s.y&&s.x<(g.x-m.x)*(s.y-m.y)/(g.y-m.y)+m.x&&(c=!c);return c||ge.prototype._containsPoint.call(this,s,!0)}});var hn=k.extend({initialize:function(s,c){st(this,c),this._layers={},s&&this.addData(s)},addData:function(s){var u,m,g,c=zt(s)?s:s.features;if(c){for(u=0,m=c.length;u0&&g.push(g[0].slice()),g}function ur(s,c){return s.feature?Le({},s.feature,{geometry:c}):Un(c)}function Un(s){return"Feature"===s.type||"FeatureCollection"===s.type?s:{type:"Feature",properties:{},geometry:s}}var Js={toGeoJSON:function(s){return ur(this,{type:"Point",coordinates:Uo(this.getLatLng(),s)})}};function Bl(s,c){return new hn(s,c)}Ys.include(Js),pi.include(Js),Bi.include(Js),ge.include({toGeoJSON:function(s){var c=!qi(this._latlngs);return ur(this,{type:(c?"Multi":"")+"LineString",coordinates:$o(this._latlngs,c?1:0,!1,s)})}}),Hn.include({toGeoJSON:function(s){var c=!qi(this._latlngs),u=c&&!qi(this._latlngs[0]),m=$o(this._latlngs,u?2:c?1:0,!0,s);return c||(m=[m]),ur(this,{type:(u?"Multi":"")+"Polygon",coordinates:m})}}),Ci.include({toMultiPoint:function(s){var c=[];return this.eachLayer(function(u){c.push(u.toGeoJSON(s).geometry.coordinates)}),ur(this,{type:"MultiPoint",coordinates:c})},toGeoJSON:function(s){var c=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===c)return this.toMultiPoint(s);var u="GeometryCollection"===c,m=[];return this.eachLayer(function(g){if(g.toGeoJSON){var v=g.toGeoJSON(s);if(u)m.push(v.geometry);else{var y=Un(v);"FeatureCollection"===y.type?m.push.apply(m,y.features):m.push(y)}}}),u?ur(this,{geometries:m,type:"GeometryCollection"}):{type:"FeatureCollection",features:m}}});var tp=Bl,Wo=Zi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(s,c,u){this._url=s,this._bounds=W(c),st(this,u)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(K(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){at(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(s){return this.options.opacity=s,this._image&&this._updateOpacity(),this},setStyle:function(s){return s.opacity&&this.setOpacity(s.opacity),this},bringToFront:function(){return this._map&&zr(this._image),this},bringToBack:function(){return this._map&<(this._image),this},setUrl:function(s){return this._url=s,this._image&&(this._image.src=s),this},setBounds:function(s){return this._bounds=W(s),this._map&&this._reset(),this},getEvents:function(){var s={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(s.zoomanim=this._animateZoom),s},setZIndex:function(s){return this.options.zIndex=s,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var s="IMG"===this._url.tagName,c=this._image=s?this._url:Te("img");K(c,"leaflet-image-layer"),this._zoomAnimated&&K(c,"leaflet-zoom-animated"),this.options.className&&K(c,this.options.className),c.onselectstart=qe,c.onmousemove=qe,c.onload=Ge(this.fire,this,"load"),c.onerror=Ge(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(c.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),s?this._url=c.src:(c.src=this._url,c.alt=this.options.alt)},_animateZoom:function(s){var c=this._map.getZoomScale(s.zoom),u=this._map._latLngBoundsToNewLayerBounds(this._bounds,s.zoom,s.center).min;ke(this._image,u,c)},_reset:function(){var s=this._image,c=new pt(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),u=c.getSize();gt(s,c.min),s.style.width=u.x+"px",s.style.height=u.y+"px"},_updateOpacity:function(){yt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var s=this.options.errorOverlayUrl;s&&this._url!==s&&(this._url=s,this._image.src=s)},getCenter:function(){return this._bounds.getCenter()}}),gu=Wo.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var s="VIDEO"===this._url.tagName,c=this._image=s?this._url:Te("video");if(K(c,"leaflet-image-layer"),this._zoomAnimated&&K(c,"leaflet-zoom-animated"),this.options.className&&K(c,this.options.className),c.onselectstart=qe,c.onmousemove=qe,c.onloadeddata=Ge(this.fire,this,"load"),s){for(var u=c.getElementsByTagName("source"),m=[],g=0;g0?m:[c.src]}else{zt(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(c.style,"objectFit")&&(c.style.objectFit="fill"),c.autoplay=!!this.options.autoplay,c.loop=!!this.options.loop,c.muted=!!this.options.muted,c.playsInline=!!this.options.playsInline;for(var v=0;vg?(c.height=g+"px",K(s,v)):z(s,v),this._containerWidth=this._container.offsetWidth},_animateZoom:function(s){var c=this._map._latLngToNewLayerPoint(this._latlng,s.zoom,s.center),u=this._getAnchor();gt(this._container,c.add(u))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)return void(this._autopanning=!1);var s=this._map,c=parseInt(Fo(this._container,"marginBottom"),10)||0,u=this._container.offsetHeight+c,m=this._containerWidth,g=new de(this._containerLeft,-u-this._containerBottom);g._add(tt(this._container));var v=s.layerPointToContainerPoint(g),y=le(this.options.autoPanPadding),D=le(this.options.autoPanPaddingTopLeft||y),S=le(this.options.autoPanPaddingBottomRight||y),P=s.getSize(),B=0,Q=0;v.x+m+S.x>P.x&&(B=v.x+m-P.x+S.x),v.x-B-D.x<0&&(B=v.x-D.x),v.y+u+S.y>P.y&&(Q=v.y+u-P.y+S.y),v.y-Q-D.y<0&&(Q=v.y-D.y),(B||Q)&&(this.options.keepInView&&(this._autopanning=!0),s.fire("autopanstart").panBy([B,Q]))}},_getAnchor:function(){return le(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ae.mergeOptions({closePopupOnClick:!0}),Ae.include({openPopup:function(s,c,u){return this._initOverlay(ea,s,c,u).openOn(this),this},closePopup:function(s){return(s=arguments.length?s:this._popup)&&s.close(),this}}),Zi.include({bindPopup:function(s,c){return this._popup=this._initOverlay(ea,this._popup,s,c),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(s){return this._popup&&(this instanceof k||(this._popup._source=this),this._popup._prepareOpen(s||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(s){return this._popup&&this._popup.setContent(s),this},getPopup:function(){return this._popup},_openPopup:function(s){if(this._popup&&this._map){Ur(s);var c=s.layer||s.target;if(this._popup._source===c&&!(c instanceof jn))return void(this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(s.latlng));this._popup._source=c,this.openPopup(s.latlng)}},_movePopup:function(s){this._popup.setLatLng(s.latlng)},_onKeyPress:function(s){13===s.originalEvent.keyCode&&this._openPopup(s)}});var ta=mn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(s){mn.prototype.onAdd.call(this,s),this.setOpacity(this.options.opacity),s.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(s){mn.prototype.onRemove.call(this,s),s.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var s=mn.prototype.getEvents.call(this);return this.options.permanent||(s.preclick=this.close),s},_initLayout:function(){this._contentNode=this._container=Te("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+Se(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(s){var c,u,m=this._map,g=this._container,v=m.latLngToContainerPoint(m.getCenter()),y=m.layerPointToContainerPoint(s),D=this.options.direction,S=g.offsetWidth,P=g.offsetHeight,B=le(this.options.offset),Q=this._getAnchor();"top"===D?(c=S/2,u=P):"bottom"===D?(c=S/2,u=0):"center"===D?(c=S/2,u=P/2):"right"===D?(c=0,u=P/2):"left"===D?(c=S,u=P/2):y.xthis.options.maxZoom||um&&this._retainParent(g,v,y,m))},_retainChildren:function(s,c,u,m){for(var g=2*s;g<2*s+2;g++)for(var v=2*c;v<2*c+2;v++){var y=new de(g,v);y.z=u+1;var D=this._tileCoordsToKey(y),S=this._tiles[D];S&&S.active?S.retain=!0:(S&&S.loaded&&(S.retain=!0),u+1this.options.maxZoom||void 0!==this.options.minZoom&&g1)return void this._setView(s,u);for(var Q=g.min.y;Q<=g.max.y;Q++)for(var ue=g.min.x;ue<=g.max.x;ue++){var ct=new de(ue,Q);if(ct.z=this._tileZoom,this._isValidTile(ct)){var bt=this._tiles[this._tileCoordsToKey(ct)];bt?bt.current=!0:y.push(ct)}}if(y.sort(function(xt,_i){return xt.distanceTo(v)-_i.distanceTo(v)}),0!==y.length){this._loading||(this._loading=!0,this.fire("loading"));var Di=document.createDocumentFragment();for(ue=0;ueu.max.x)||!c.wrapLat&&(s.yu.max.y))return!1}if(!this.options.bounds)return!0;var m=this._tileCoordsToBounds(s);return W(this.options.bounds).overlaps(m)},_keyToBounds:function(s){return this._tileCoordsToBounds(this._keyToTileCoords(s))},_tileCoordsToNwSe:function(s){var c=this._map,u=this.getTileSize(),m=s.scaleBy(u),g=m.add(u);return[c.unproject(m,s.z),c.unproject(g,s.z)]},_tileCoordsToBounds:function(s){var c=this._tileCoordsToNwSe(s),u=new hi(c[0],c[1]);return this.options.noWrap||(u=this._map.wrapLatLngBounds(u)),u},_tileCoordsToKey:function(s){return s.x+":"+s.y+":"+s.z},_keyToTileCoords:function(s){var c=s.split(":"),u=new de(+c[0],+c[1]);return u.z=+c[2],u},_removeTile:function(s){var c=this._tiles[s];c&&(at(c.el),delete this._tiles[s],this.fire("tileunload",{tile:c.el,coords:this._keyToTileCoords(s)}))},_initTile:function(s){K(s,"leaflet-tile");var c=this.getTileSize();s.style.width=c.x+"px",s.style.height=c.y+"px",s.onselectstart=qe,s.onmousemove=qe,Z.ielt9&&this.options.opacity<1&&yt(s,this.options.opacity)},_addTile:function(s,c){var u=this._getTilePos(s),m=this._tileCoordsToKey(s),g=this.createTile(this._wrapCoords(s),Ge(this._tileReady,this,s));this._initTile(g),this.createTile.length<2&&jt(Ge(this._tileReady,this,s,null,g)),gt(g,u),this._tiles[m]={el:g,coords:s,current:!0},c.appendChild(g),this.fire("tileloadstart",{tile:g,coords:s})},_tileReady:function(s,c,u){c&&this.fire("tileerror",{error:c,tile:u,coords:s});var m=this._tileCoordsToKey(s);(u=this._tiles[m])&&(u.loaded=+new Date,this._map._fadeAnimated?(yt(u.el,0),Li(this._fadeFrame),this._fadeFrame=jt(this._updateOpacity,this)):(u.active=!0,this._pruneTiles()),c||(K(u.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:u.el,coords:s})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Z.ielt9||!this._map._fadeAnimated?jt(this._pruneTiles,this):setTimeout(Ge(this._pruneTiles,this),250)))},_getTilePos:function(s){return s.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(s){var c=new de(this._wrapX?Pr(s.x,this._wrapX):s.x,this._wrapY?Pr(s.y,this._wrapY):s.y);return c.z=s.z,c},_pxBoundsToTileRange:function(s){var c=this.getTileSize();return new pt(s.min.unscaleBy(c).floor(),s.max.unscaleBy(c).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var s in this._tiles)if(!this._tiles[s].loaded)return!1;return!0}});var Kr=Go.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(s,c){this._url=s,(c=st(this,c)).detectRetina&&Z.retina&&c.maxZoom>0?(c.tileSize=Math.floor(c.tileSize/2),c.zoomReverse?(c.zoomOffset--,c.minZoom=Math.min(c.maxZoom,c.minZoom+1)):(c.zoomOffset++,c.maxZoom=Math.max(c.minZoom,c.maxZoom-1)),c.minZoom=Math.max(0,c.minZoom)):c.zoomReverse?c.minZoom=Math.min(c.maxZoom,c.minZoom):c.maxZoom=Math.max(c.minZoom,c.maxZoom),"string"==typeof c.subdomains&&(c.subdomains=c.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(s,c){return this._url===s&&void 0===c&&(c=!0),this._url=s,c||this.redraw(),this},createTile:function(s,c){var u=document.createElement("img");return pe(u,"load",Ge(this._tileOnLoad,this,c,u)),pe(u,"error",Ge(this._tileOnError,this,c,u)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(u.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(u.referrerPolicy=this.options.referrerPolicy),u.alt="",u.src=this.getTileUrl(s),u},getTileUrl:function(s){var c={r:Z.retina?"@2x":"",s:this._getSubdomain(s),x:s.x,y:s.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var u=this._globalTileRange.max.y-s.y;this.options.tms&&(c.y=u),c["-y"]=u}return As(this._url,Le(c,this.options))},_tileOnLoad:function(s,c){Z.ielt9?setTimeout(Ge(s,this,null,c),0):s(null,c)},_tileOnError:function(s,c,u){var m=this.options.errorTileUrl;m&&c.getAttribute("src")!==m&&(c.src=m),s(u,c)},_onTileRemove:function(s){s.tile.onload=null},_getZoomForUrl:function(){var s=this._tileZoom;return this.options.zoomReverse&&(s=this.options.maxZoom-s),s+this.options.zoomOffset},_getSubdomain:function(s){var c=Math.abs(s.x+s.y)%this.options.subdomains.length;return this.options.subdomains[c]},_abortLoading:function(){var s,c;for(s in this._tiles)if(this._tiles[s].coords.z!==this._tileZoom&&((c=this._tiles[s].el).onload=qe,c.onerror=qe,!c.complete)){c.src=Ts;var u=this._tiles[s].coords;at(c),delete this._tiles[s],this.fire("tileabort",{tile:c,coords:u})}},_removeTile:function(s){var c=this._tiles[s];if(c)return c.el.setAttribute("src",Ts),Go.prototype._removeTile.call(this,s)},_tileReady:function(s,c,u){if(this._map&&(!u||u.getAttribute("src")!==Ts))return Go.prototype._tileReady.call(this,s,c,u)}});function xu(s,c){return new Kr(s,c)}var wu=Kr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(s,c){this._url=s;var u=Le({},this.defaultWmsParams);for(var m in c)m in this.options||(u[m]=c[m]);var g=(c=st(this,c)).detectRetina&&Z.retina?2:1,v=this.getTileSize();u.width=v.x*g,u.height=v.y*g,this.wmsParams=u},onAdd:function(s){this._crs=this.options.crs||s.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[this._wmsVersion>=1.3?"crs":"srs"]=this._crs.code,Kr.prototype.onAdd.call(this,s)},getTileUrl:function(s){var c=this._tileCoordsToNwSe(s),u=this._crs,m=ui(u.project(c[0]),u.project(c[1])),g=m.min,v=m.max,y=(this._wmsVersion>=1.3&&this._crs===Nl?[g.y,g.x,v.y,v.x]:[g.x,g.y,v.x,v.y]).join(","),D=Kr.prototype.getTileUrl.call(this,s);return D+Ad(this.wmsParams,D,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+y},setParams:function(s,c){return Le(this.wmsParams,s),c||this.redraw(),this}});Kr.WMS=wu,xu.wms=function X(s,c){return new wu(s,c)};var Tn=Zi.extend({options:{padding:.1},initialize:function(s){st(this,s),Se(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),K(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var s={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(s.zoomanim=this._onAnimZoom),s},_onAnimZoom:function(s){this._updateTransform(s.center,s.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(s,c){var u=this._map.getZoomScale(c,this._zoom),m=this._map.getSize().multiplyBy(.5+this.options.padding),g=this._map.project(this._center,c),v=m.multiplyBy(-u).add(g).subtract(this._map._getNewPixelOrigin(s,c));Z.any3d?ke(this._container,v,u):gt(this._container,v)},_reset:function(){for(var s in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[s]._reset()},_onZoomEnd:function(){for(var s in this._layers)this._layers[s]._project()},_updatePaths:function(){for(var s in this._layers)this._layers[s]._update()},_update:function(){var s=this.options.padding,c=this._map.getSize(),u=this._map.containerPointToLayerPoint(c.multiplyBy(-s)).round();this._bounds=new pt(u,u.add(c.multiplyBy(1+2*s)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Vl=Tn.extend({options:{tolerance:0},getEvents:function(){var s=Tn.prototype.getEvents.call(this);return s.viewprereset=this._onViewPreReset,s},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Tn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var s=this._container=document.createElement("canvas");pe(s,"mousemove",this._onMouseMove,this),pe(s,"click dblclick mousedown mouseup contextmenu",this._onClick,this),pe(s,"mouseout",this._handleMouseOut,this),s._leaflet_disable_events=!0,this._ctx=s.getContext("2d")},_destroyContainer:function(){Li(this._redrawRequest),delete this._ctx,at(this._container),We(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var c in this._redrawBounds=null,this._layers)this._layers[c]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Tn.prototype._update.call(this);var s=this._bounds,c=this._container,u=s.getSize(),m=Z.retina?2:1;gt(c,s.min),c.width=m*u.x,c.height=m*u.y,c.style.width=u.x+"px",c.style.height=u.y+"px",Z.retina&&this._ctx.scale(2,2),this._ctx.translate(-s.min.x,-s.min.y),this.fire("update")}},_reset:function(){Tn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(s){this._updateDashArray(s),this._layers[Se(s)]=s;var c=s._order={layer:s,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=c),this._drawLast=c,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(s){this._requestRedraw(s)},_removePath:function(s){var c=s._order,u=c.next,m=c.prev;u?u.prev=m:this._drawLast=m,m?m.next=u:this._drawFirst=u,delete s._order,delete this._layers[Se(s)],this._requestRedraw(s)},_updatePath:function(s){this._extendRedrawBounds(s),s._project(),s._update(),this._requestRedraw(s)},_updateStyle:function(s){this._updateDashArray(s),this._requestRedraw(s)},_updateDashArray:function(s){if("string"==typeof s.options.dashArray){var m,g,c=s.options.dashArray.split(/[, ]+/),u=[];for(g=0;g')}}catch{}return function(s){return document.createElement("<"+s+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ee={_initContainer:function(){this._container=Te("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Tn.prototype._update.call(this),this.fire("update"))},_initPath:function(s){var c=s._container=Rt("shape");K(c,"leaflet-vml-shape "+(this.options.className||"")),c.coordsize="1 1",s._path=Rt("path"),c.appendChild(s._path),this._updateStyle(s),this._layers[Se(s)]=s},_addPath:function(s){var c=s._container;this._container.appendChild(c),s.options.interactive&&s.addInteractiveTarget(c)},_removePath:function(s){var c=s._container;at(c),s.removeInteractiveTarget(c),delete this._layers[Se(s)]},_updateStyle:function(s){var c=s._stroke,u=s._fill,m=s.options,g=s._container;g.stroked=!!m.stroke,g.filled=!!m.fill,m.stroke?(c||(c=s._stroke=Rt("stroke")),g.appendChild(c),c.weight=m.weight+"px",c.color=m.color,c.opacity=m.opacity,c.dashStyle=m.dashArray?zt(m.dashArray)?m.dashArray.join(" "):m.dashArray.replace(/( *, *)/g," "):"",c.endcap=m.lineCap.replace("butt","flat"),c.joinstyle=m.lineJoin):c&&(g.removeChild(c),s._stroke=null),m.fill?(u||(u=s._fill=Rt("fill")),g.appendChild(u),u.color=m.fillColor||m.color,u.opacity=m.fillOpacity):u&&(g.removeChild(u),s._fill=null)},_updateCircle:function(s){var c=s._point.round(),u=Math.round(s._radius),m=Math.round(s._radiusY||u);this._setPath(s,s._empty()?"M0 0":"AL "+c.x+","+c.y+" "+u+","+m+" 0,23592600")},_setPath:function(s,c){s._path.v=c},_bringToFront:function(s){zr(s._container)},_bringToBack:function(s){lt(s._container)}},Mt=Z.vml?Rt:Od,It=Tn.extend({_initContainer:function(){this._container=Mt("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Mt("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){at(this._container),We(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Tn.prototype._update.call(this);var s=this._bounds,c=s.getSize(),u=this._container;(!this._svgSize||!this._svgSize.equals(c))&&(this._svgSize=c,u.setAttribute("width",c.x),u.setAttribute("height",c.y)),gt(u,s.min),u.setAttribute("viewBox",[s.min.x,s.min.y,c.x,c.y].join(" ")),this.fire("update")}},_initPath:function(s){var c=s._path=Mt("path");s.options.className&&K(c,s.options.className),s.options.interactive&&K(c,"leaflet-interactive"),this._updateStyle(s),this._layers[Se(s)]=s},_addPath:function(s){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(s._path),s.addInteractiveTarget(s._path)},_removePath:function(s){at(s._path),s.removeInteractiveTarget(s._path),delete this._layers[Se(s)]},_updatePath:function(s){s._project(),s._update()},_updateStyle:function(s){var c=s._path,u=s.options;c&&(u.stroke?(c.setAttribute("stroke",u.color),c.setAttribute("stroke-opacity",u.opacity),c.setAttribute("stroke-width",u.weight),c.setAttribute("stroke-linecap",u.lineCap),c.setAttribute("stroke-linejoin",u.lineJoin),u.dashArray?c.setAttribute("stroke-dasharray",u.dashArray):c.removeAttribute("stroke-dasharray"),u.dashOffset?c.setAttribute("stroke-dashoffset",u.dashOffset):c.removeAttribute("stroke-dashoffset")):c.setAttribute("stroke","none"),u.fill?(c.setAttribute("fill",u.fillColor||u.color),c.setAttribute("fill-opacity",u.fillOpacity),c.setAttribute("fill-rule",u.fillRule||"evenodd")):c.setAttribute("fill","none"))},_updatePoly:function(s,c){this._setPath(s,Pd(s._parts,c))},_updateCircle:function(s){var c=s._point,u=Math.max(Math.round(s._radius),1),g="a"+u+","+(Math.max(Math.round(s._radiusY),1)||u)+" 0 1,0 ",v=s._empty()?"M0 0":"M"+(c.x-u)+","+c.y+g+2*u+",0 "+g+2*-u+",0 ";this._setPath(s,v)},_setPath:function(s,c){s._path.setAttribute("d",c)},_bringToFront:function(s){zr(s._path)},_bringToBack:function(s){lt(s._path)}});function hr(s){return Z.svg||Z.vml?new It(s):null}Z.vml&&It.include(Ee),Ae.include({getRenderer:function(s){var c=s.options.renderer||this._getPaneRenderer(s.options.pane)||this.options.renderer||this._renderer;return c||(c=this._renderer=this._createRenderer()),this.hasLayer(c)||this.addLayer(c),c},_getPaneRenderer:function(s){if("overlayPane"===s||void 0===s)return!1;var c=this._paneRenderers[s];return void 0===c&&(c=this._createRenderer({pane:s}),this._paneRenderers[s]=c),c},_createRenderer:function(s){return this.options.preferCanvas&&O(s)||hr(s)}});var gi=Hn.extend({initialize:function(s,c){Hn.prototype.initialize.call(this,this._boundsToLatLngs(s),c)},setBounds:function(s){return this.setLatLngs(this._boundsToLatLngs(s))},_boundsToLatLngs:function(s){return[(s=W(s)).getSouthWest(),s.getNorthWest(),s.getNorthEast(),s.getSouthEast()]}});It.create=Mt,It.pointsToPath=Pd,hn.geometryToLayer=Vi,hn.coordsToLatLng=Qs,hn.coordsToLatLngs=Ho,hn.latLngToCoords=Uo,hn.latLngsToCoords=$o,hn.getFeature=ur,hn.asFeature=Un,Ae.mergeOptions({boxZoom:!0});var zl=dn.extend({initialize:function(s){this._map=s,this._container=s._container,this._pane=s._panes.overlayPane,this._resetStateTimeout=0,s.on("unload",this._destroy,this)},addHooks:function(){pe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){We(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){at(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(s){if(!s.shiftKey||1!==s.which&&1!==s.button)return!1;this._clearDeferredResetState(),this._resetState(),lr(),Bo(),this._startPoint=this._map.mouseEventToContainerPoint(s),pe(document,{contextmenu:Ur,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(s){this._moved||(this._moved=!0,this._box=Te("div","leaflet-zoom-box",this._container),K(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(s);var c=new pt(this._point,this._startPoint),u=c.getSize();gt(this._box,c.min),this._box.style.width=u.x+"px",this._box.style.height=u.y+"px"},_finish:function(){this._moved&&(at(this._box),z(this._container,"leaflet-crosshair")),Lo(),Vo(),We(document,{contextmenu:Ur,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(s){if((1===s.which||1===s.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(Ge(this._resetState,this),0);var c=new hi(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(c).fire("boxzoomend",{boxZoomBounds:c})}},_onKeyDown:function(s){27===s.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ae.addInitHook("addHandler","boxZoom",zl),Ae.mergeOptions({doubleClickZoom:!0});var qo=dn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(s){var c=this._map,u=c.getZoom(),m=c.options.zoomDelta,g=s.originalEvent.shiftKey?u-m:u+m;"center"===c.options.doubleClickZoom?c.setZoom(g):c.setZoomAround(s.containerPoint,g)}});Ae.addInitHook("addHandler","doubleClickZoom",qo),Ae.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Du=dn.extend({addHooks:function(){if(!this._draggable){var s=this._map;this._draggable=new An(s._mapPane,s._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),s.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),s.on("zoomend",this._onZoomEnd,this),s.whenReady(this._onZoomEnd,this))}K(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){z(this._map._container,"leaflet-grab"),z(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var s=this._map;if(s._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var c=W(this._map.options.maxBounds);this._offsetLimit=ui(this._map.latLngToContainerPoint(c.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(c.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;s.fire("movestart").fire("dragstart"),s.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(s){if(this._map.options.inertia){var c=this._lastTime=+new Date,u=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(u),this._times.push(c),this._prunePositions(c)}this._map.fire("move",s).fire("drag",s)},_prunePositions:function(s){for(;this._positions.length>1&&s-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var s=this._map.getSize().divideBy(2),c=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=c.subtract(s).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(s,c){return s-(s-c)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var s=this._draggable._newPos.subtract(this._draggable._startPos),c=this._offsetLimit;s.xc.max.x&&(s.x=this._viscousLimit(s.x,c.max.x)),s.y>c.max.y&&(s.y=this._viscousLimit(s.y,c.max.y)),this._draggable._newPos=this._draggable._startPos.add(s)}},_onPreDragWrap:function(){var s=this._worldWidth,c=Math.round(s/2),u=this._initialWorldOffset,m=this._draggable._newPos.x,g=(m-c+u)%s+c-u,v=(m+c+u)%s-c-u,y=Math.abs(g+u)0?v:-v))-c;this._delta=0,this._startTime=null,y&&("center"===s.options.scrollWheelZoom?s.setZoom(c+y):s.setZoomAround(this._lastMousePos,c+y))}});Ae.addInitHook("addHandler","scrollWheelZoom",_t);Ae.mergeOptions({tapHold:Z.touchNative&&Z.safari&&Z.mobile,tapTolerance:15});var ce=dn.extend({addHooks:function(){pe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){We(this._map._container,"touchstart",this._onDown,this)},_onDown:function(s){if(clearTimeout(this._holdTimeout),1===s.touches.length){var c=s.touches[0];this._startPos=this._newPos=new de(c.clientX,c.clientY),this._holdTimeout=setTimeout(Ge(function(){this._cancel(),this._isTapValid()&&(pe(document,"touchend",Xt),pe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",c))},this),600),pe(document,"touchend touchcancel contextmenu",this._cancel,this),pe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function s(){We(document,"touchend",Xt),We(document,"touchend touchcancel",s)},_cancel:function(){clearTimeout(this._holdTimeout),We(document,"touchend touchcancel contextmenu",this._cancel,this),We(document,"touchmove",this._onMove,this)},_onMove:function(s){var c=s.touches[0];this._newPos=new de(c.clientX,c.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(s,c){var u=new MouseEvent(s,{bubbles:!0,cancelable:!0,view:window,screenX:c.screenX,screenY:c.screenY,clientX:c.clientX,clientY:c.clientY});u._simulated=!0,c.target.dispatchEvent(u)}});Ae.addInitHook("addHandler","tapHold",ce),Ae.mergeOptions({touchZoom:Z.touch,bounceAtZoomLimits:!0});var nt=dn.extend({addHooks:function(){K(this._map._container,"leaflet-touch-zoom"),pe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){z(this._map._container,"leaflet-touch-zoom"),We(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(s){var c=this._map;if(s.touches&&2===s.touches.length&&!c._animatingZoom&&!this._zooming){var u=c.mouseEventToContainerPoint(s.touches[0]),m=c.mouseEventToContainerPoint(s.touches[1]);this._centerPoint=c.getSize()._divideBy(2),this._startLatLng=c.containerPointToLatLng(this._centerPoint),"center"!==c.options.touchZoom&&(this._pinchStartLatLng=c.containerPointToLatLng(u.add(m)._divideBy(2))),this._startDist=u.distanceTo(m),this._startZoom=c.getZoom(),this._moved=!1,this._zooming=!0,c._stop(),pe(document,"touchmove",this._onTouchMove,this),pe(document,"touchend touchcancel",this._onTouchEnd,this),Xt(s)}},_onTouchMove:function(s){if(s.touches&&2===s.touches.length&&this._zooming){var c=this._map,u=c.mouseEventToContainerPoint(s.touches[0]),m=c.mouseEventToContainerPoint(s.touches[1]),g=u.distanceTo(m)/this._startDist;if(this._zoom=c.getScaleZoom(g,this._startZoom),!c.options.bounceAtZoomLimits&&(this._zoomc.getMaxZoom()&&g>1)&&(this._zoom=c._limitZoom(this._zoom)),"center"===c.options.touchZoom){if(this._center=this._startLatLng,1===g)return}else{var v=u._add(m)._divideBy(2)._subtract(this._centerPoint);if(1===g&&0===v.x&&0===v.y)return;this._center=c.unproject(c.project(this._pinchStartLatLng,this._zoom).subtract(v),this._zoom)}this._moved||(c._moveStart(!0,!1),this._moved=!0),Li(this._animRequest);var y=Ge(c._move,c,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=jt(y,this,!0),Xt(s)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,Li(this._animRequest),We(document,"touchmove",this._onTouchMove,this),We(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});Ae.addInitHook("addHandler","touchZoom",nt),Ae.BoxZoom=zl,Ae.DoubleClickZoom=qo,Ae.Drag=Du,Ae.Keyboard=Mu,Ae.ScrollWheelZoom=_t,Ae.TapHold=ce,Ae.TouchZoom=nt,V.Bounds=pt,V.Browser=Z,V.CRS=Ve,V.Canvas=Vl,V.Circle=pi,V.CircleMarker=Bi,V.Class=En,V.Control=N,V.DivIcon=yu,V.DivOverlay=mn,V.DomEvent=ne,V.DomUtil=Uf,V.Draggable=An,V.Evented=So,V.FeatureGroup=k,V.GeoJSON=hn,V.GridLayer=Go,V.Handler=dn,V.Icon=j,V.ImageOverlay=Wo,V.LatLng=Be,V.LatLngBounds=hi,V.Layer=Zi,V.LayerGroup=Ci,V.LineUtil=Pl,V.Map=Ae,V.Marker=Ys,V.Mixin=xe,V.Path=jn,V.Point=de,V.PolyUtil=Ke,V.Polygon=Hn,V.Polyline=ge,V.Popup=ea,V.PosAnimation=qf,V.Projection=Kf,V.Rectangle=gi,V.Renderer=Tn,V.SVG=It,V.SVGOverlay=_u,V.TileLayer=Kr,V.Tooltip=ta,V.Transformation=Io,V.Util=vl,V.VideoOverlay=gu,V.bind=Ge,V.bounds=ui,V.canvas=O,V.circle=function un(s,c,u){return new pi(s,c,u)},V.circleMarker=function Xs(s,c){return new Bi(s,c)},V.control=js,V.divIcon=function rp(s){return new yu(s)},V.extend=Le,V.featureGroup=function(s,c){return new k(s,c)},V.geoJSON=Bl,V.geoJson=tp,V.gridLayer=function it(s){return new Go(s)},V.icon=function Zs(s){return new j(s)},V.imageOverlay=function(s,c,u){return new Wo(s,c,u)},V.latLng=Me,V.latLngBounds=W,V.layerGroup=function(s,c){return new Ci(s,c)},V.map=function Sy(s,c){return new Ae(s,c)},V.marker=function ep(s,c){return new Ys(s,c)},V.point=le,V.polygon=function Ll(s,c){return new Hn(s,c)},V.polyline=function Ks(s,c){return new ge(s,c)},V.popup=function(s,c){return new ea(s,c)},V.rectangle=function Cu(s,c){return new gi(s,c)},V.setOptions=st,V.stamp=Se,V.svg=hr,V.svgOverlay=function vu(s,c,u){return new _u(s,c,u)},V.tileLayer=xu,V.tooltip=function(s,c){return new ta(s,c)},V.transformation=Ao,V.version="1.9.4",V.videoOverlay=function Yi(s,c,u){return new gu(s,c,u)};var Xi=window.L;V.noConflict=function(){return window.L=Xi,this},window.L=V}(Id)}},Sd=>{Sd(Sd.s=823)}]);