diff --git a/front/dist/familySite1/index.html b/front/dist/familySite1/index.html index bb17977..4255635 100644 --- a/front/dist/familySite1/index.html +++ b/front/dist/familySite1/index.html @@ -4,11 +4,11 @@ - + - + \ No newline at end of file diff --git a/front/dist/familySite1/main.1e45fa39bca035df.js b/front/dist/familySite1/main.1e45fa39bca035df.js deleted file mode 100644 index d5efb0a..0000000 --- a/front/dist/familySite1/main.1e45fa39bca035df.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{830:()=>{function ue(e){return"function"==typeof e}function Uo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const vs=Uo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function zo(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class It{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ue(r))try{r()}catch(i){t=i instanceof vs?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Dh(i)}catch(s){t=t??[],s instanceof vs?t=[...t,...s.errors]:t.push(s)}}if(t)throw new vs(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Dh(t);else{if(t instanceof It){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&zo(n,t)}remove(t){const{_finalizers:n}=this;n&&zo(n,t),t instanceof It&&t._removeParent(this)}}It.EMPTY=(()=>{const e=new It;return e.closed=!0,e})();const Ch=It.EMPTY;function _h(e){return e instanceof It||e&&"closed"in e&&ue(e.remove)&&ue(e.add)&&ue(e.unsubscribe)}function Dh(e){ue(e)?e():e.unsubscribe()}const ir={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Cs={setTimeout(e,t,...n){const{delegate:r}=Cs;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Cs;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function wh(e){Cs.setTimeout(()=>{const{onUnhandledError:t}=ir;if(!t)throw e;t(e)})}function Eh(){}const Uw=Bl("C",void 0,void 0);function Bl(e,t,n){return{kind:e,value:t,error:n}}let sr=null;function _s(e){if(ir.useDeprecatedSynchronousErrorHandling){const t=!sr;if(t&&(sr={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=sr;if(sr=null,n)throw r}}else e()}class Ul extends It{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,_h(t)&&t.add(this)):this.destination=Xw}static create(t,n,r){return new Go(t,n,r)}next(t){this.isStopped?Gl(function Gw(e){return Bl("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Gl(function zw(e){return Bl("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Gl(Uw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const qw=Function.prototype.bind;function zl(e,t){return qw.call(e,t)}class Zw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ds(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ds(r)}else Ds(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ds(n)}}}class Go extends Ul{constructor(t,n,r){let o;if(super(),ue(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ir.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&zl(t.next,i),error:t.error&&zl(t.error,i),complete:t.complete&&zl(t.complete,i)}):o=t}this.destination=new Zw(o)}}function Ds(e){ir.useDeprecatedSynchronousErrorHandling?function Ww(e){ir.useDeprecatedSynchronousErrorHandling&&sr&&(sr.errorThrown=!0,sr.error=e)}(e):wh(e)}function Gl(e,t){const{onStoppedNotification:n}=ir;n&&Cs.setTimeout(()=>n(e,t))}const Xw={closed:!0,next:Eh,error:function Yw(e){throw e},complete:Eh},Wl="function"==typeof Symbol&&Symbol.observable||"@@observable";function ar(e){return e}function bh(e){return 0===e.length?ar:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let Me=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function Jw(e){return e&&e instanceof Ul||function Kw(e){return e&&ue(e.next)&&ue(e.error)&&ue(e.complete)}(e)&&_h(e)}(n)?n:new Go(n,r,o);return _s(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Mh(r))((o,i)=>{const s=new Go({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Wl](){return this}pipe(...n){return bh(n)(this)}toPromise(n){return new(n=Mh(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Mh(e){var t;return null!==(t=e??ir.Promise)&&void 0!==t?t:Promise}const e1=Uo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let _n=(()=>{class e extends Me{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Sh(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new e1}next(n){_s(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){_s(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){_s(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Ch:(this.currentObservers=null,i.push(n),new It(()=>{this.currentObservers=null,zo(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new Me;return n.source=this,n}}return e.create=(t,n)=>new Sh(t,n),e})();class Sh extends _n{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Ch}}function Ih(e){return ue(e?.lift)}function Ue(e){return t=>{if(Ih(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(e,t,n,r,o){return new t1(e,t,n,r,o)}class t1 extends Ul{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function te(e,t){return Ue((n,r)=>{let o=0;n.subscribe($e(r,i=>{r.next(e.call(t,i,o++))}))})}function lr(e){return this instanceof lr?(this.v=e,this):new lr(e)}function i1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Nh(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}const Rh=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Oh(e){return ue(e?.then)}function Ph(e){return ue(e[Wl])}function xh(e){return Symbol.asyncIterator&&ue(e?.[Symbol.asyncIterator])}function Fh(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const kh=function a1(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Lh(e){return ue(e?.[kh])}function Vh(e){return function o1(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof lr?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield lr(n.read());if(o)return yield lr(void 0);yield yield lr(r)}}finally{n.releaseLock()}})}function Hh(e){return ue(e?.getReader)}function Tt(e){if(e instanceof Me)return e;if(null!=e){if(Ph(e))return function l1(e){return new Me(t=>{const n=e[Wl]();if(ue(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Rh(e))return function u1(e){return new Me(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,wh)})}(e);if(xh(e))return $h(e);if(Lh(e))return function d1(e){return new Me(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Hh(e))return function f1(e){return $h(Vh(e))}(e)}throw Fh(e)}function $h(e){return new Me(t=>{(function h1(e,t){var n,r,o,i;return function n1(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=i1(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Dn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ze(e,t,n=1/0){return ue(t)?ze((r,o)=>te((i,s)=>t(r,i,o,s))(Tt(e(r,o))),n):("number"==typeof t&&(n=t),Ue((r,o)=>function p1(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=m=>u{i&&t.next(m),u++;let C=!1;Tt(n(m,c++)).subscribe($e(t,b=>{o?.(b),i?h(b):t.next(b)},()=>{C=!0},void 0,()=>{if(C)try{for(u--;l.length&&up(b)):p(b)}f()}catch(b){t.error(b)}}))};return e.subscribe($e(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function Fr(e=1/0){return ze(ar,e)}const Qt=new Me(e=>e.complete());function Zl(e){return e[e.length-1]}function jh(e){return ue(Zl(e))?e.pop():void 0}function Wo(e){return function m1(e){return e&&ue(e.schedule)}(Zl(e))?e.pop():void 0}function Bh(e,t=0){return Ue((n,r)=>{n.subscribe($e(r,o=>Dn(r,e,()=>r.next(o),t),()=>Dn(r,e,()=>r.complete(),t),o=>Dn(r,e,()=>r.error(o),t)))})}function Uh(e,t=0){return Ue((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function zh(e,t){if(!e)throw new Error("Iterable cannot be null");return new Me(n=>{Dn(n,t,()=>{const r=e[Symbol.asyncIterator]();Dn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function xe(e,t){return t?function E1(e,t){if(null!=e){if(Ph(e))return function v1(e,t){return Tt(e).pipe(Uh(t),Bh(t))}(e,t);if(Rh(e))return function _1(e,t){return new Me(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Oh(e))return function C1(e,t){return Tt(e).pipe(Uh(t),Bh(t))}(e,t);if(xh(e))return zh(e,t);if(Lh(e))return function D1(e,t){return new Me(n=>{let r;return Dn(n,t,()=>{r=e[kh](),Dn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ue(r?.return)&&r.return()})}(e,t);if(Hh(e))return function w1(e,t){return zh(Vh(e),t)}(e,t)}throw Fh(e)}(e,t):Tt(e)}function Yl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Go({next:()=>{r.unsubscribe(),e()}});return Tt(t(...n)).subscribe(r)}function se(e){for(let t in e)if(e[t]===se)return t;throw Error("Could not find renamed property on target object.")}function Xl(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Fe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Fe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ql(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const S1=se({__forward_ref__:se});function ce(e){return e.__forward_ref__=ce,e.toString=function(){return Fe(this())},e}function B(e){return Kl(e)?e():e}function Kl(e){return"function"==typeof e&&e.hasOwnProperty(S1)&&e.__forward_ref__===ce}function Jl(e){return e&&!!e.\u0275providers}const Gh="https://g.co/ng/security#xss";class E extends Error{constructor(t,n){super(function eu(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function U(e){return"string"==typeof e?e:null==e?"":String(e)}function ws(e,t){throw new E(-201,!1)}function At(e,t){null==e&&function oe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function O(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Es(e){return Wh(e,bs)||Wh(e,Zh)}function Wh(e,t){return e.hasOwnProperty(t)?e[t]:null}function qh(e){return e&&(e.hasOwnProperty(tu)||e.hasOwnProperty(x1))?e[tu]:null}const bs=se({\u0275prov:se}),tu=se({\u0275inj:se}),Zh=se({ngInjectableDef:se}),x1=se({ngInjectorDef:se});var V=(()=>((V=V||{})[V.Default=0]="Default",V[V.Host=1]="Host",V[V.Self=2]="Self",V[V.SkipSelf=4]="SkipSelf",V[V.Optional=8]="Optional",V))();let nu;function at(e){const t=nu;return nu=e,t}function Xh(e,t,n){const r=Es(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&V.Optional?null:void 0!==t?t:void ws(Fe(e))}const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),qo={},ru="__NG_DI_FLAG__",Ms="ngTempTokenPath",k1=/\n/gm,Qh="__source";let kr;function Un(e){const t=kr;return kr=e,t}function H1(e,t=V.Default){if(void 0===kr)throw new E(-203,!1);return null===kr?Xh(e,void 0,t):kr.get(e,t&V.Optional?null:void 0,t)}function N(e,t=V.Default){return(function Yh(){return nu}()||H1)(B(e),t)}function I(e,t=V.Default){return N(e,Ss(t))}function Ss(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ou(e){const t=[];for(let n=0;n((Kt=Kt||{})[Kt.OnPush=0]="OnPush",Kt[Kt.Default=1]="Default",Kt))(),Ct=(()=>{return(e=Ct||(Ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ct;var e})();const En={},ee=[],Is=se({\u0275cmp:se}),iu=se({\u0275dir:se}),su=se({\u0275pipe:se}),Jh=se({\u0275mod:se}),bn=se({\u0275fac:se}),Yo=se({__NG_ELEMENT_ID__:se}),ep=se({__NG_ENV_ID__:se});function tp(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function au(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==tp(h,u,0)||2&r&&u!==f){if(Lt(r))return!1;s=!0}}}}else{if(!s&&!Lt(r)&&!Lt(l))return!1;if(s&&Lt(l))continue;s=!1,r=l|1&r}}return Lt(r)||s}function Lt(e){return 0==(1&e)}function W1(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Lt(s)&&(t+=lp(i,o),o=""),r=s,i=i||!Lt(r);n++}return""!==o&&(t+=lp(i,o)),t}function Rt(e){return wn(()=>{const t=cp(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Kt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||ee,_:null,schemas:e.schemas||null,tView:null,id:""};dp(n);const r=e.dependencies;return n.directiveDefs=Ts(r,!1),n.pipeDefs=Ts(r,!0),n.id=function iE(e){let t=0;const n=JSON.stringify([e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.exportAs,e.inputs,e.outputs,Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery]);for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function tE(e){return ne(e)||Xe(e)}function nE(e){return null!==e}function Vt(e){return wn(()=>({type:e.type,bootstrap:e.bootstrap||ee,declarations:e.declarations||ee,imports:e.imports||ee,exports:e.exports||ee,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function up(e,t){if(null==e)return En;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function j(e){return wn(()=>{const t=cp(e);return dp(t),t})}function lt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ne(e){return e[Is]||null}function Xe(e){return e[iu]||null}function ut(e){return e[su]||null}function _t(e,t){const n=e[Jh]||null;if(!n&&!0===t)throw new Error(`Type ${Fe(e)} does not have '\u0275mod' property.`);return n}function cp(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||ee,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:up(e.inputs,t),outputs:up(e.outputs)}}function dp(e){e.features?.forEach(t=>t(e))}function Ts(e,t){if(!e)return null;const n=t?ut:tE;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(nE)}const ke=0,T=1,W=2,Ce=3,Ht=4,ur=5,Qe=6,Vr=7,we=8,Hr=9,cr=10,z=11,Qo=12,fp=13,$r=14,Ae=15,Ko=16,jr=17,Jt=18,Jo=19,hp=20,zn=21,Mn=22,As=23,Ns=24,Q=25,lu=1,pp=2,en=7,Rs=8,Br=9,Ge=11;function Dt(e){return Array.isArray(e)&&"object"==typeof e[lu]}function ct(e){return Array.isArray(e)&&!0===e[lu]}function uu(e){return 0!=(4&e.flags)}function dr(e){return e.componentOffset>-1}function Os(e){return 1==(1&e.flags)}function $t(e){return!!e.template}function cu(e){return 0!=(512&e[W])}function fr(e,t){return e.hasOwnProperty(bn)?e[bn]:null}let cE=de.WeakRef??class uE{constructor(t){this.ref=t}deref(){return this.ref}},fE=0,tn=null,Ps=!1;function je(e){const t=tn;return tn=e,t}class Cp{constructor(){this.id=fE++,this.ref=function dE(e){return new cE(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=Ps;Ps=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{Ps=t}}producerAccessed(){if(Ps)throw new Error("");if(null===tn)return;let t=tn.producers.get(this.id);void 0===t?(t={consumerNode:tn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:tn.trackingVersion},tn.producers.set(this.id,t),this.consumers.set(tn.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=tn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==tn?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let _p=null;const Dp=()=>{};class mE extends Cp{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=Dp,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=je(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=Dp,this.watch(this.registerOnCleanup)}finally{je(t)}}cleanup(){this.cleanupFn()}}class yE{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ot(){return wp}function wp(e){return e.type.prototype.ngOnChanges&&(e.setInput=CE),vE}function vE(){const e=bp(this),t=e?.current;if(t){const n=e.previous;if(n===En)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function CE(e,t,n,r){const o=this.declaredInputs[n],i=bp(e)||function _E(e,t){return e[Ep]=t}(e,{previous:En,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new yE(l&&l.currentValue,t,a===En),e[r]=t}Ot.ngInherit=!0;const Ep="__ngSimpleChanges__";function bp(e){return e[Ep]||null}const nn=function(e,t,n){};function ge(e){for(;Array.isArray(e);)e=e[ke];return e}function ks(e,t){return ge(t[e])}function dt(e,t){return ge(t[e.index])}function Ip(e,t){return e.data[t]}function ft(e,t){const n=t[e];return Dt(n)?n:n[ke]}function Ls(e){return 128==(128&e[W])}function Gn(e,t){return null==t?null:e[t]}function Tp(e){e[jr]=0}function SE(e){1024&e[W]||(e[W]|=1024,Np(e,1))}function Ap(e){1024&e[W]&&(e[W]&=-1025,Np(e,-1))}function Np(e,t){let n=e[Ce];if(null===n)return;n[ur]+=t;let r=n;for(n=n[Ce];null!==n&&(1===t&&1===r[ur]||-1===t&&0===r[ur]);)n[ur]+=t,r=n,n=n[Ce]}const $={lFrame:jp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Pp(){return $.bindingsEnabled}function D(){return $.lFrame.lView}function K(){return $.lFrame.tView}function ti(e){return $.lFrame.contextLView=e,e[we]}function ni(e){return $.lFrame.contextLView=null,e}function We(){let e=xp();for(;null!==e&&64===e.type;)e=e.parent;return e}function xp(){return $.lFrame.currentTNode}function rn(e,t){const n=$.lFrame;n.currentTNode=e,n.isParent=t}function mu(){return $.lFrame.isParent}function nt(){const e=$.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Gr(){return $.lFrame.bindingIndex++}function In(e){const t=$.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function VE(e,t){const n=$.lFrame;n.bindingIndex=n.bindingRootIndex=e,vu(t)}function vu(e){$.lFrame.currentDirectiveIndex=e}function Vp(){return $.lFrame.currentQueryIndex}function _u(e){$.lFrame.currentQueryIndex=e}function $E(e){const t=e[T];return 2===t.type?t.declTNode:1===t.type?e[Qe]:null}function Hp(e,t,n){if(n&V.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&V.Host||(o=$E(i),null===o||(i=i[$r],10&o.type))););if(null===o)return!1;t=o,e=i}const r=$.lFrame=$p();return r.currentTNode=t,r.lView=e,!0}function Du(e){const t=$p(),n=e[T];$.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function $p(){const e=$.lFrame,t=null===e?null:e.child;return null===t?jp(e):t}function jp(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Bp(){const e=$.lFrame;return $.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Up=Bp;function wu(){const e=Bp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function rt(){return $.lFrame.selectedIndex}function hr(e){$.lFrame.selectedIndex=e}function _e(){const e=$.lFrame;return Ip(e.tView,e.selectedIndex)}let Gp=!0;function Vs(){return Gp}function Wn(e){Gp=e}function Hs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[jr]+=65536),(a>12>16&&(3&e[W])===t&&(e[W]+=4096,qp(a,i)):qp(a,i)}const Wr=-1;class oi{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Zp(e){return e!==Wr}function Bs(e){return 32767&e}function Us(e,t){let n=function KE(e){return e>>16}(e),r=t;for(;n>0;)r=r[$r],n--;return r}let Mu=!0;function zs(e){const t=Mu;return Mu=e,t}const Yp=255,Xp=5;let JE=0;const on={};function Gs(e,t){const n=Qp(e,t);if(-1!==n)return n;const r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,Su(r.data,e),Su(t,null),Su(r.blueprint,null));const o=Iu(e,t),i=e.injectorIndex;if(Zp(o)){const s=Bs(o),a=Us(o,t),l=a[T].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function Su(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Qp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Iu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=og(o),null===r)return Wr;if(n++,o=o[$r],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Wr}function Tu(e,t,n){!function eb(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Yo)&&(r=n[Yo]),null==r&&(r=n[Yo]=JE++);const o=r&Yp;t.data[e+(o>>Xp)]|=1<=0?t&Yp:ob:t}(n);if("function"==typeof i){if(!Hp(t,e,r))return r&V.Host?Kp(o,0,r):Jp(t,n,r,o);try{const s=i(r);if(null!=s||r&V.Optional)return s;ws()}finally{Up()}}else if("number"==typeof i){let s=null,a=Qp(e,t),l=Wr,u=r&V.Host?t[Ae][Qe]:null;for((-1===a||r&V.SkipSelf)&&(l=-1===a?Iu(e,t):t[a+8],l!==Wr&&rg(r,!1)?(s=t[T],a=Bs(l),t=Us(l,t)):a=-1);-1!==a;){const c=t[T];if(ng(i,a,c.data)){const d=nb(a,t,n,s,r,u);if(d!==on)return d}l=t[a+8],l!==Wr&&rg(r,t[T].data[a+8]===u)&&ng(i,a,t)?(s=c,a=Bs(l),t=Us(l,t)):a=-1}}return o}function nb(e,t,n,r,o,i){const s=t[T],a=s.data[e+8],c=Ws(a,s,n,null==r?dr(a)&&Mu:r!=s&&0!=(3&a.type),o&V.Host&&i===a);return null!==c?pr(t,s,c,a):on}function Ws(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(o){const h=s[l];if(h&&$t(h)&&h.type===n)return l}return null}function pr(e,t,n,r){let o=e[n];const i=t.data;if(function YE(e){return e instanceof oi}(o)){const s=o;s.resolving&&function I1(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new E(-200,`Circular dependency in DI detected for ${e}${n}`)}(function re(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():U(e)}(i[n]));const a=zs(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?at(s.injectImpl):null;Hp(e,r,V.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function qE(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=wp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&at(l),zs(a),s.resolving=!1,Up()}}return o}function ng(e,t,n){return!!(n[t+(e>>Xp)]&1<{const t=e.prototype.constructor,n=t[bn]||Au(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[bn]||Au(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Au(e){return Kl(e)?()=>{const t=Au(B(e));return t&&t()}:fr(e)}function og(e){const t=e[T],n=t.type;return 2===n?t.declTNode:1===n?e[Qe]:null}const Yr="__parameters__";function Qr(e,t,n){return wn(()=>{const r=function Nu(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(Yr)?l[Yr]:Object.defineProperty(l,Yr,{value:[]})[Yr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function ai(e,t){e.forEach(n=>Array.isArray(n)?ai(n,t):t(n))}function sg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Zs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function wt(e,t,n){let r=Kr(e,t);return r>=0?e[1|r]=n:(r=~r,function cb(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Ru(e,t){const n=Kr(e,t);if(n>=0)return e[1|n]}function Kr(e,t){return function ag(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((ht=ht||{})[ht.Important=1]="Important",ht[ht.DashCase=2]="DashCase",ht))();const Vu=new Map;let xb=0;const $u="__ngContext__";function Ke(e,t){Dt(t)?(e[$u]=t[Jo],function kb(e){Vu.set(e[Jo],e)}(t)):e[$u]=t}let ju;function Bu(e,t){return ju(e,t)}function di(e){const t=e[Ce];return ct(t)?t[Ce]:t}function Uu(e){return Sg(e[Qo])}function zu(e){return Sg(e[Ht])}function Sg(e){for(;null!==e&&!ct(e);)e=e[Ht];return e}function to(e,t,n,r,o){if(null!=r){let i,s=!1;ct(r)?i=r:Dt(r)&&(s=!0,r=r[ke]);const a=ge(r);0===e&&null!==n?null==o?Rg(t,n,a):gr(t,n,a,o||null,!0):1===e&&null!==n?gr(t,n,a,o||null,!0):2===e?function sa(e,t,n){const r=oa(e,t);r&&function tM(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function oM(e,t,n,r,o){const i=n[en];i!==ge(n)&&to(t,e,r,i,o);for(let a=Ge;a0&&(e[n-1][Ht]=r[Ht]);const i=Zs(e,Ge+t);!function qb(e,t){hi(e,t,t[z],2,null,null),t[ke]=null,t[Qe]=null}(r[T],r);const s=i[Jt];null!==s&&s.detachView(i[T]),r[Ce]=null,r[Ht]=null,r[W]&=-129}return r}function Ag(e,t){if(!(256&t[W])){const n=t[z];t[As]?.destroy(),t[Ns]?.destroy(),n.destroyNode&&hi(e,t,n,3,null,null),function Xb(e){let t=e[Qo];if(!t)return qu(e[T],e);for(;t;){let n=null;if(Dt(t))n=t[Qo];else{const r=t[Ge];r&&(n=r)}if(!n){for(;t&&!t[Ht]&&t!==e;)Dt(t)&&qu(t[T],t),t=t[Ce];null===t&&(t=e),Dt(t)&&qu(t[T],t),n=t&&t[Ht]}t=n}}(t)}}function qu(e,t){if(!(256&t[W])){t[W]&=-129,t[W]|=256,function eM(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Vr]=null);const o=t[zn];if(null!==o){for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ct.None||i===Ct.Emulated)return null}return dt(r,n)}}(e,t.parent,n)}function gr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Rg(e,t,n){e.appendChild(t,n)}function Og(e,t,n,r,o){null!==r?gr(e,t,n,r,o):Rg(e,t,n)}function oa(e,t){return e.parentNode(t)}let Yu,Ju,la,Fg=function xg(e,t,n){return 40&e.type?dt(e,n):null};function ia(e,t,n,r){const o=Zu(e,r,t),i=t[z],a=function Pg(e,t,n){return Fg(e,t,n)}(r.parent||t[Qe],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return la}()?.createScriptURL(e)||e}class Gg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Gh})`}}function qn(e){return e instanceof Gg?e.changingThisBreaksApplicationSecurity:e}function gi(e,t){const n=function mM(e){return e instanceof Gg&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Gh})`)}return n===t}const _M=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ne=(()=>((Ne=Ne||{})[Ne.NONE=0]="NONE",Ne[Ne.HTML=1]="HTML",Ne[Ne.STYLE=2]="STYLE",Ne[Ne.SCRIPT=3]="SCRIPT",Ne[Ne.URL=4]="URL",Ne[Ne.RESOURCE_URL=5]="RESOURCE_URL",Ne))();function ic(e){const t=yi();return t?t.sanitize(Ne.URL,e)||"":gi(e,"URL")?qn(e):function tc(e){return(e=String(e)).match(_M)?e:"unsafe:"+e}(U(e))}function Kg(e){const t=yi();if(t)return zg(t.sanitize(Ne.RESOURCE_URL,e)||"");if(gi(e,"ResourceURL"))return zg(qn(e));throw new E(904,!1)}function yi(){const e=D();return e&&e[cr].sanitizer}class R{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=O({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const vi=new R("ENVIRONMENT_INITIALIZER"),em=new R("INJECTOR",-1),tm=new R("INJECTOR_DEF_TYPES");class nm{get(t,n=qo){if(n===qo){const r=new Error(`NullInjectorError: No provider for ${Fe(t)}!`);throw r.name="NullInjectorError",r}return n}}function PM(...e){return{\u0275providers:rm(0,e),\u0275fromNgModule:!0}}function rm(e,...t){const n=[],r=new Set;let o;return ai(t,i=>{const s=i;ac(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&om(o,n),n}function om(e,t){for(let n=0;n{t.push(i)})}}function ac(e,t,n,r){if(!(e=B(e)))return!1;let o=null,i=qh(e);const s=!i&&ne(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=qh(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)ac(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{ai(i.imports,c=>{ac(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&om(u,t)}if(!a){const u=fr(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:ee},{provide:tm,useValue:o,multi:!0},{provide:vi,useValue:()=>N(o),multi:!0})}const l=i.providers;null==l||a||lc(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function lc(e,t){for(let n of e)Jl(n)&&(n=n.\u0275providers),Array.isArray(n)?lc(n,t):t(n)}const xM=se({provide:String,useValue:se});function uc(e){return null!==e&&"object"==typeof e&&xM in e}function mr(e){return"function"==typeof e}const cc=new R("Set Injector scope."),ca={},kM={};let dc;function da(){return void 0===dc&&(dc=new nm),dc}class sn{}class fc extends sn{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pc(t,s=>this.processProvider(s)),this.records.set(em,ro(void 0,this)),o.has("environment")&&this.records.set(sn,ro(void 0,this));const i=this.records.get(cc);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(tm.multi,ee,V.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Un(this),r=at(void 0);try{return t()}finally{Un(n),at(r)}}get(t,n=qo,r=V.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ep))return t[ep](this);r=Ss(r);const o=Un(this),i=at(void 0);try{if(!(r&V.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function jM(e){return"function"==typeof e||"object"==typeof e&&e instanceof R}(t)&&Es(t);a=l&&this.injectableDefInScope(l)?ro(hc(t),ca):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&V.Self?da():this.parent).get(t,n=r&V.Optional&&n===qo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Ms]=s[Ms]||[]).unshift(Fe(t)),o)throw s;return function j1(e,t,n,r){const o=e[Ms];throw t[Qh]&&o.unshift(t[Qh]),e.message=function B1(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Fe(t);if(Array.isArray(t))o=t.map(Fe).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Fe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(k1,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Ms]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{at(i),Un(o)}}resolveInjectorInitializers(){const t=Un(this),n=at(void 0);try{const r=this.get(vi.multi,ee,V.Self);for(const o of r)o()}finally{Un(t),at(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Fe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(t){let n=mr(t=B(t))?t:B(t&&t.provide);const r=function VM(e){return uc(e)?ro(void 0,e.useValue):ro(am(e),ca)}(t);if(mr(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=ro(void 0,ca,!0),o.factory=()=>ou(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===ca&&(n.value=kM,n.value=n.factory()),"object"==typeof n.value&&n.value&&function $M(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=B(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function hc(e){const t=Es(e),n=null!==t?t.factory:fr(e);if(null!==n)return n;if(e instanceof R)throw new E(204,!1);if(e instanceof Function)return function LM(e){const t=e.length;if(t>0)throw function li(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new E(204,!1)}function am(e,t,n){let r;if(mr(e)){const o=B(e);return fr(o)||hc(o)}if(uc(e))r=()=>B(e.useValue);else if(function sm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ou(e.deps||[]));else if(function im(e){return!(!e||!e.useExisting)}(e))r=()=>N(B(e.useExisting));else{const o=B(e&&(e.useClass||e.provide));if(!function HM(e){return!!e.deps}(e))return fr(o)||hc(o);r=()=>new o(...ou(e.deps))}return r}function ro(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function pc(e,t){for(const n of e)Array.isArray(n)?pc(n,t):n&&Jl(n)?pc(n.\u0275providers,t):t(n)}const fa=new R("AppId",{providedIn:"root",factory:()=>BM}),BM="ng",lm=new R("Platform Initializer"),yr=new R("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),um=new R("CSP nonce",{providedIn:"root",factory:()=>function pi(){if(void 0!==Ju)return Ju;if(typeof document<"u")return document;throw new E(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let dm=(e,t)=>null;function fm(e,t){return dm(e,t)}class KM{}class gm{}class eS{resolveComponentFactory(t){throw function JM(e){const t=Error(`No component factory found for ${Fe(e)}.`);return t.ngComponent=e,t}(t)}}let ya=(()=>{class e{}return e.NULL=new eS,e})();function tS(){return oo(We(),D())}function oo(e,t){return new Et(dt(e,t))}let Et=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=tS,e})();function nS(e){return e instanceof Et?e.nativeElement:e}class ym{}let An=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function rS(){const e=D(),n=ft(We().index,e);return(Dt(n)?n:e)[z]}(),e})(),oS=(()=>{class e{}return e.\u0275prov=O({token:e,providedIn:"root",factory:()=>null}),e})();class wi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const iS=new wi("16.0.1"),Mc={};function Ei(e){for(;e;){e[W]|=64;const t=di(e);if(cu(e)&&!t)return e;e=t}return null}function Sc(e){return e.ngOriginalError}class vr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Sc(t);for(;n&&Sc(n);)n=Sc(n);return n||null}}const _m=new R("",{providedIn:"root",factory:()=>!1});function Nn(e){return e instanceof Function?e():e}class Em extends Cp{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){Ei(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=je(this);this.trackingVersion++;try{t(n,r)}finally{je(o)}}destroy(){this.trackingVersion++}}let Ca=null;function bm(){return Ca??=new Em,Ca}function Mm(e,t){return e[t]??bm()}function Sm(e,t){const n=bm();n.hasReadASignal&&(e[t]=Ca,n.lView=e,Ca=new Em)}const G={};function M(e){Im(K(),D(),rt()+e,!1)}function Im(e,t,n,r){if(!r)if(3==(3&t[W])){const i=e.preOrderCheckHooks;null!==i&&$s(t,i,n)}else{const i=e.preOrderHooks;null!==i&&js(t,i,0,n)}hr(n)}function Rm(e,t=null,n=null,r){const o=Om(e,t,n,r);return o.resolveInjectorInitializers(),o}function Om(e,t=null,n=null,r,o=new Set){const i=[n||ee,PM(e)];return r=r||("object"==typeof e?void 0:Fe(e)),new fc(i,t||da(),r||null,o)}let an=(()=>{class e{static create(n,r){if(Array.isArray(n))return Rm({name:""},r,n,"");{const o=n.name??"";return Rm({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=qo,e.NULL=new nm,e.\u0275prov=O({token:e,providedIn:"any",factory:()=>N(em)}),e.__NG_ELEMENT_ID__=-1,e})();function _(e,t=V.Default){const n=D();return null===n?N(e,t):eg(We(),n,B(e),t)}function _a(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[ke]=o,d[W]=140|r,(null!==u||e&&2048&e[W])&&(d[W]|=2048),Tp(d),d[Ce]=d[$r]=e,d[we]=n,d[cr]=s||e&&e[cr],d[z]=a||e&&e[z],d[Hr]=l||e&&e[Hr]||null,d[Qe]=i,d[Jo]=function Fb(){return xb++}(),d[Mn]=c,d[hp]=u,d[Ae]=2==t.type?e[Ae]:d,d}function so(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Ic(e,t,n,r,o){const i=xp(),s=mu(),l=e.data[t]=function SS(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function zr(){return null!==$.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(e,t,n,r,o),function LE(){return $.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function ri(){const e=$.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return rn(i,!0),i}function bi(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;iQ&&Im(e,t,Q,!1),nn(a?2:0,o),a)i.runInContext(n,r,o);else{const u=je(null);try{n(r,o)}finally{je(u)}}}finally{a&&null===t[As]&&Sm(t,As),hr(s),nn(a?3:1,o)}}function Tc(e,t,n){if(uu(t)){const r=je(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function Lm(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Vm(n,t,o,i):r.hasOwnProperty(o)&&Vm(n,t,r[o],i)}return n}function Vm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function bt(e,t,n,r,o,i,s,a){const l=dt(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(kc(e,n,c,r,o),dr(t)&&function AS(e,t){const n=ft(t,e);16&n[W]||(n[W]|=64)}(n,t.index)):3&t.type&&(r=function TS(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(l,r,o))}function Oc(e,t,n,r){if(Pp()){const o=null===r?null:{"":-1},i=function FS(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,bi(e,n,o.hostVars,G),o)}function ln(e,t,n,r,o,i){const s=dt(e,t);!function xc(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?U(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[z],s,i,e.value,n,r,o)}function jS(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new mE(n,u=>{this.all.has(u)&&this.queue.set(u,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=O({token:e,providedIn:"root",factory:()=>new e}),e})();function wa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&Vc(n)}}function Vc(e){for(let r=Uu(e);null!==r;r=zu(r))for(let o=Ge;o0&&Vc(i)}const n=e[T].components;if(null!==n)for(let r=0;r0&&Vc(o)}}class Si{get rootNodes(){const t=this._lView,n=t[T];return Mi(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[we]}set context(t){this._lView[we]=t}get destroyed(){return 256==(256&this._lView[W])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[Ce];if(ct(t)){const n=t[Rs],r=n?n.indexOf(this):-1;r>-1&&(Wu(t,r),Zs(n,r))}this._attachedToViewContainer=!1}Ag(this._lView[T],this._lView)}onDestroy(t){!function Rp(e,t){if(256==(256&e[W]))throw new E(911,!1);null===e[zn]&&(e[zn]=[]),e[zn].push(t)}(this._lView,t)}markForCheck(){Ei(this._cdRefInjectingView||this._lView)}detach(){this._lView[W]&=-129}reattach(){this._lView[W]|=128}detectChanges(){Ea(this._lView[T],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Yb(e,t){hi(e,t,t[z],2,null,null)}(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=t}}class eI extends Si{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Ea(t[T],t,t[we],!1)}checkNoChanges(){}get context(){return null}}class Ym extends ya{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ne(t);return new Ii(n,this.ngModule)}}function Xm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class nI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ss(r);const o=this.injector.get(t,Mc,r);return o!==Mc||n===Mc?o:this.parentInjector.get(t,n,r)}}class Ii extends gm{get inputs(){return Xm(this.componentDef.inputs)}get outputs(){return Xm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function K1(e){return e.map(Q1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof sn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new nI(t,i):t,a=s.get(ym,null);if(null===a)throw new E(407,!1);const c={rendererFactory:a,sanitizer:s.get(oS,null),effectManager:s.get(Zm,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function DS(e,t,n,r){const i=r.get(_m,!1)||n===Ct.ShadowDom,s=e.selectRootElement(t,i);return function wS(e){km(e)}(s),s}(d,r,this.componentDef.encapsulation,s):ra(d,f,function tI(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,m=Rc(0,null,null,1,0,null,null,null,null,null,null),C=_a(null,m,null,p,null,null,c,d,s,null,null);let b,g;Du(C);try{const S=this.componentDef;let F,Y=null;S.findHostDirectiveDefs?(F=[],Y=new Map,S.findHostDirectiveDefs(S,F,Y),F.push(S)):F=[S];const pe=function oI(e,t){const n=e[T],r=Q;return e[r]=t,so(n,r,2,"#host",null)}(C,h),Bo=function iI(e,t,n,r,o,i,s){const a=o[T];!function sI(e,t,n,r){for(const o of e)t.mergedAttrs=Xo(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(wa(t,t.mergedAttrs,!0),null!==n&&jg(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=fm(t,o[Hr]));const u=i.rendererFactory.createRenderer(t,n),c=_a(o,Fm(n),null,n.onPush?64:16,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&Pc(a,e,r.length-1),Da(o,c),o[e.index]=c}(pe,h,S,F,C,c,d);g=Ip(m,Q),h&&function lI(e,t,n,r){if(r)au(e,n,["ng-version",iS.full]);else{const{attrs:o,classes:i}=function J1(e){const t=[],n=[];let r=1,o=2;for(;r0&&$g(e,n,i.join(" "))}}(d,S,h,r),void 0!==n&&function uI(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Xo(o.hostAttrs,n=Xo(n,o.hostAttrs))}}(r)}function Hc(e){return e===En?{}:e===ee?[]:e}function fI(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function hI(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function pI(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Ma(e){return!!$c(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function $c(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function un(e,t,n){return e[t]=n}function Je(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Cr(e,t,n,r){const o=Je(e,t,n);return Je(e,t+1,r)||o}function cn(e,t,n,r){const o=D();return Je(o,Gr(),t)&&(K(),ln(_e(),o,e,t,n,r)),cn}function lo(e,t,n,r){return Je(e,Gr(),n)?t+U(n)+r:G}function uo(e,t,n,r,o,i){const a=Cr(e,function Sn(){return $.lFrame.bindingIndex}(),n,o);return In(2),a?t+U(n)+r+U(o)+i:G}function On(e,t,n,r,o,i,s,a){const l=D(),u=K(),c=e+Q,d=u.firstCreatePass?function HI(e,t,n,r,o,i,s,a,l){const u=t.consts,c=so(t,e,4,s||null,Gn(u,a));Oc(t,n,c,Gn(u,l)),Hs(t,c);const d=c.tView=Rc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];rn(d,!1);const f=hy(u,l,d,e);Vs()&&ia(u,l,f,d),Ke(f,l),Da(l,l[c]=Bm(f,l,f,d)),Os(d)&&Ac(u,l,d),null!=s&&Nc(l,d,a)}let hy=function py(e,t,n,r){return Wn(!0),t[z].createComment("")};function x(e,t,n){const r=D();return Je(r,Gr(),t)&&bt(K(),_e(),r,e,t,r[z],n,!1),x}function Wc(e,t,n,r,o){const s=o?"class":"style";kc(e,n,t.inputs[s],s,r)}function y(e,t,n,r){const o=D(),i=K(),s=Q+e,a=o[z],l=i.firstCreatePass?function zI(e,t,n,r,o,i){const s=t.consts,l=so(t,e,2,r,Gn(s,o));return Oc(t,n,l,Gn(s,i)),null!==l.attrs&&wa(l,l.attrs,!1),null!==l.mergedAttrs&&wa(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=gy(i,o,l,a,t,e);o[s]=u;const c=Os(l);return rn(l,!0),jg(a,u,l),32!=(32&l.flags)&&Vs()&&ia(i,o,u,l),0===function TE(){return $.lFrame.elementDepthCount}()&&Ke(u,o),function AE(){$.lFrame.elementDepthCount++}(),c&&(Ac(i,o,l),Tc(i,l,o)),null!==r&&Nc(o,l),y}function v(){let e=We();mu()?function yu(){$.lFrame.isParent=!1}():(e=e.parent,rn(e,!1));const t=e;(function RE(e){return $.skipHydrationRootTNode===e})(t)&&function FE(){$.skipHydrationRootTNode=null}(),function NE(){$.lFrame.elementDepthCount--}();const n=K();return n.firstCreatePass&&(Hs(n,e),uu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function XE(e){return 0!=(8&e.flags)}(t)&&Wc(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function QE(e){return 0!=(16&e.flags)}(t)&&Wc(n,t,D(),t.stylesWithoutHost,!1),v}function ie(e,t,n,r){return y(e,t,n,r),v(),ie}let gy=(e,t,n,r,o,i)=>(Wn(!0),ra(r,o,function zp(){return $.lFrame.currentNamespace}()));function Yc(){return D()}function Oi(e){return!!e&&"function"==typeof e.then}function vy(e){return!!e&&"function"==typeof e.subscribe}function P(e,t,n,r){const o=D(),i=K(),s=We();return function _y(e,t,n,r,o,i,s){const a=Os(r),u=e.firstCreatePass&&Gm(e),c=t[we],d=zm(t);let f=!0;if(3&r.type||s){const m=dt(r,t),C=s?s(m):m,b=d.length,g=s?F=>s(ge(F[r.index])):r.index;let S=null;if(!s&&a&&(S=function XI(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,f=!1;else{i=wy(r,t,c,i,!1);const F=n.listen(C,o,i);d.push(i,F),u&&u.push(o,g,b,b+1)}}else i=wy(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const m=p.length;if(m)for(let C=0;C-1?ft(e.index,t):t);let l=Dy(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=Dy(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Pi(e=1){return function jE(e){return($.lFrame.contextLView=function BE(e,t){for(;e>0;)t=t[$r],e--;return t}(e,$.lFrame.contextLView))[we]}(e)}function Na(e,t,n,r,o){const i=D(),s=lo(i,t,n,r);return s!==G&&bt(K(),_e(),i,e,s,i[z],o,!1),Na}function Ra(e,t){return e<<17|t<<2}function Zn(e){return e>>17&32767}function Xc(e){return 2|e}function _r(e){return(131068&e)>>2}function Qc(e,t){return-131069&e|t<<2}function Kc(e){return 1|e}function Oy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Zn(i):_r(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];iT(e[a],t)&&(l=!0,e[a+1]=r?Kc(c):Xc(c)),a=r?Zn(c):_r(c)}l&&(e[n+1]=r?Xc(i):Kc(i))}function iT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Kr(e,t)>=0}function Oa(e,t){return function jt(e,t,n,r){const o=D(),i=K(),s=In(2);i.firstUpdatePass&&function jy(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[rt()],s=function $y(e,t){return t>=e.expandoStartIndex}(e,n);(function Gy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function pT(e,t,n,r){const o=function Cu(e){const t=$.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=xi(n=Jc(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Jc(o,e,t,n,r),null===i){let l=function gT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==_r(r))return e[Zn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=Jc(null,e,t,l[1],r),l=xi(l,t.attrs,r),function mT(e,t,n,r){e[Zn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function yT(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)):c=n,o)if(0!==l){const f=Zn(e[a+1]);e[r+1]=Ra(f,a),0!==f&&(e[f+1]=Qc(e[f+1],r)),e[a+1]=function tT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Ra(a,0),0!==a&&(e[a+1]=Qc(e[a+1],r)),a=r;else e[r+1]=Ra(l,0),0===a?a=r:e[l+1]=Qc(e[l+1],r),l=r;u&&(e[r+1]=Xc(e[r+1])),Oy(e,c,r,!0),Oy(e,c,r,!1),function oT(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Kr(i,t)>=0&&(n[r+1]=Kc(n[r+1]))}(t,c,e,r,i),s=Ra(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==G&&Je(o,s,t)&&function Uy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function nT(e){return 1==(1&e)}(u)?zy(l,t,n,o,_r(u),s):void 0;Pa(c)||(Pa(i)||function eT(e){return 2==(2&e)}(u)&&(i=zy(l,null,n,o,a,s)),function iM(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:ht.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=ht.Important),e.setStyle(n,r,o,i))}}(r,s,ks(rt(),n),o,i))}(i,i.data[rt()],o,o[z],e,o[s+1]=function DT(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Fe(qn(e)))),e}(t,n),r,s)}(e,t,null,!0),Oa}function Jc(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===G&&(f=d?ee:void 0);let h=d?Ru(f,r):c===r?f:void 0;if(u&&!Pa(h)&&(h=Ru(l,r)),Pa(h)&&(a=h,s))return a;const p=e[o+1];o=s?Zn(p):_r(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=Ru(l,r))}return a}function Pa(e){return void 0!==e}function w(e,t=""){const n=D(),r=K(),o=e+Q,i=r.firstCreatePass?so(r,o,1,t,null):r.data[o],s=Wy(r,n,i,t,e);n[o]=s,Vs()&&ia(r,n,s,i),rn(i,!1)}let Wy=(e,t,n,r,o)=>(Wn(!0),function na(e,t){return e.createText(t)}(t[z],r));function me(e){return Ze("",e,""),me}function Ze(e,t,n){const r=D(),o=lo(r,e,t,n);return o!==G&&Rn(r,rt(),o),Ze}function xa(e,t,n,r,o){const i=D(),s=uo(i,e,t,n,r,o);return s!==G&&Rn(i,rt(),s),xa}const Dr=void 0;var UT=["en",[["a","p"],["AM","PM"],Dr],[["AM","PM"],Dr,Dr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Dr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Dr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Dr,"{1} 'at' {0}",Dr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function BT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let vo={};function ot(e){const t=function zT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=fv(t);if(n)return n;const r=t.split("-")[0];if(n=fv(r),n)return n;if("en"===r)return UT;throw new E(701,!1)}function fv(e){return e in vo||(vo[e]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[e]),vo[e]}var A=(()=>((A=A||{})[A.LocaleId=0]="LocaleId",A[A.DayPeriodsFormat=1]="DayPeriodsFormat",A[A.DayPeriodsStandalone=2]="DayPeriodsStandalone",A[A.DaysFormat=3]="DaysFormat",A[A.DaysStandalone=4]="DaysStandalone",A[A.MonthsFormat=5]="MonthsFormat",A[A.MonthsStandalone=6]="MonthsStandalone",A[A.Eras=7]="Eras",A[A.FirstDayOfWeek=8]="FirstDayOfWeek",A[A.WeekendRange=9]="WeekendRange",A[A.DateFormat=10]="DateFormat",A[A.TimeFormat=11]="TimeFormat",A[A.DateTimeFormat=12]="DateTimeFormat",A[A.NumberSymbols=13]="NumberSymbols",A[A.NumberFormats=14]="NumberFormats",A[A.CurrencyCode=15]="CurrencyCode",A[A.CurrencySymbol=16]="CurrencySymbol",A[A.CurrencyName=17]="CurrencyName",A[A.Currencies=18]="Currencies",A[A.Directionality=19]="Directionality",A[A.PluralCase=20]="PluralCase",A[A.ExtraData=21]="ExtraData",A))();const Co="en-US";let hv=Co;function nd(e,t,n,r,o){if(e=B(e),Array.isArray(e))for(let i=0;i>20;if(mr(e)||!e.multi){const h=new oi(l,o,_),p=od(a,t,o?c:c+f,d);-1===p?(Tu(Gs(u,s),i,a),rd(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=od(a,t,c+f,d),p=od(a,t,c,c+f),C=p>=0&&n[p];if(o&&!C||!o&&!(h>=0&&n[h])){Tu(Gs(u,s),i,a);const b=function jA(e,t,n,r,o){const i=new oi(e,n,_);return i.multi=[],i.index=t,i.componentProviders=0,Vv(i,o,r&&!n),i}(o?$A:HA,n.length,o,r,l);!o&&C&&(n[p].providerFactory=b),rd(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(b),s.push(b)}else rd(i,e,h>-1?h:p,Vv(n[o?p:h],l,!o&&r));!o&&r&&C&&n[p].componentProviders++}}}function rd(e,t,n,r){const o=mr(t),i=function FM(e){return!!e.useClass}(t);if(o||i){const l=(i?B(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function Vv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function od(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function VA(e,t,n){const r=K();if(r.firstCreatePass){const o=$t(e);nd(n,r.data,r.blueprint,o,!0),nd(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class _o{}class Hv{}class sd extends _o{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ym(this);const o=_t(t);this._bootstrapComponents=Nn(o.bootstrap),this._r3Injector=Om(t,n,[{provide:_o,useValue:this},{provide:ya,useValue:this.componentFactoryResolver},...r],Fe(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ad extends Hv{constructor(t){super(),this.moduleType=t}create(t){return new sd(this.moduleType,t,[])}}class $v extends _o{constructor(t){super(),this.componentFactoryResolver=new Ym(this),this.instance=null;const n=new fc([...t.providers,{provide:_o,useValue:this},{provide:ya,useValue:this.componentFactoryResolver}],t.parent||da(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function ld(e,t,n=null){return new $v({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let zA=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=rm(0,n.type),o=r.length>0?ld([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=O({token:e,providedIn:"environment",factory:()=>new e(N(sn))}),e})();function jv(e){e.getStandaloneInjector=t=>t.get(zA).getOrCreateStandaloneInjector(e)}function cd(e,t,n){const r=nt()+e,o=D();return o[r]===G?un(o,r,n?t.call(n):t()):function Ti(e,t){return e[t]}(o,r)}function Ha(e,t,n,r){return function Zv(e,t,n,r,o,i){const s=t+n;return Je(e,s,o)?un(e,s+1,i?r.call(i,o):r(o)):$i(e,s+1)}(D(),nt(),e,t,n,r)}function $i(e,t){const n=e[t];return n===G?void 0:n}function wr(e,t){const n=K();let r;const o=e+Q;n.firstCreatePass?(r=function a2(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=fr(r.type)),s=at(_);try{const a=zs(!1),l=i();return zs(a),function BI(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,D(),o,l),l}finally{at(s)}}function Er(e,t,n,r){const o=e+Q,i=D(),s=function Ur(e,t){return e[t]}(i,o);return function ji(e,t){return e[T].data[t].pure}(i,o)?function Yv(e,t,n,r,o,i,s){const a=t+n;return Cr(e,a,o,i)?un(e,a+2,s?r.call(s,o,i):r(o,i)):$i(e,a+2)}(i,nt(),t,s.transform,n,r,s):s.transform(n,r)}function dd(e){return t=>{setTimeout(e,void 0,t)}}const be=class f2 extends _n{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=dd(i),o&&(o=dd(o)),s&&(s=dd(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof It&&t.add(a),a}};function h2(){return this._results[Symbol.iterator]()}class fd{get changes(){return this._changes||(this._changes=new be)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=fd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=h2)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function Pt(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function lb(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=m2,e})();const p2=Pn,g2=class extends p2{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const o=this._declarationTContainer.tView,i=_a(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[Ko]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Jt];return null!==a&&(i[Jt]=a.createEmbeddedView(o)),Lc(o,i,t),new Si(i)}};function m2(){return $a(We(),D())}function $a(e,t){return 4&e.type?new g2(t,e,oo(e,t)):null}let Ut=(()=>{class e{}return e.__NG_ELEMENT_ID__=E2,e})();function E2(){return oC(We(),D())}const b2=Ut,nC=class extends b2{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return oo(this._hostTNode,this._hostLView)}get injector(){return new qr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Iu(this._hostTNode,this._hostLView);if(Zp(t)){const n=Us(t,this._hostLView),r=Bs(t);return new qr(n[T].data[r+8],n)}return new qr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=rC(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ge}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function si(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}const l=s?t:new Ii(ne(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const C=(s?u:this.parentInjector).get(sn,null);C&&(i=C)}ne(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[T];if(function ME(e){return ct(e[Ce])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[Ce],c=new nC(u,u[Qe],u[Ce]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function Qb(e,t,n,r){const o=Ge+r,i=n.length;r>0&&(n[o-1][Ht]=t),r0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=Ge;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=I(Sd,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Oi(i))n.push(i);else if(vy(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),AC=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const xn=new R("LocaleId",{providedIn:"root",factory:()=>I(xn,V.Optional|V.SkipSelf)||function tN(){return typeof $localize<"u"&&$localize.locale||Co}()});class rN{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let NC=(()=>{class e{compileModuleSync(n){return new ad(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Nn(_t(n).declarations).reduce((s,a)=>{const l=ne(a);return l&&s.push(new Ii(l)),s},[]);return new rN(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sN=(()=>Promise.resolve(0))();function Td(e){typeof Zone>"u"?sN.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function PC(...e){}class ve{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new be(!1),this.onMicrotaskEmpty=new be(!1),this.onStable=new be(!1),this.onError=new be(!1),typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function aN(){let e=de.requestAnimationFrame,t=de.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function cN(e){const t=()=>{!function uN(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(de,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Nd(e),e.isCheckStableRunning=!0,Ad(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Nd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return xC(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),FC(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return xC(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),FC(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Nd(e),Ad(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ve.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(ve.isInAngularZone())throw new E(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,lN,PC,PC);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const lN={};function Ad(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Nd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function xC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function FC(e){e._nesting--,Ad(e)}class dN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new be,this.onMicrotaskEmpty=new be,this.onStable=new be,this.onError=new be}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const kC=new R("",{providedIn:"root",factory:LC});function LC(){const e=I(ve);let t=!0;return function b1(...e){const t=Wo(e),n=function y1(e,t){return"number"==typeof Zl(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Tt(r[0]):Fr(n)(xe(r,t)):Qt}(new Me(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new Me(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ve.assertNotInAngularZone(),Td(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ve.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function M1(e={}){const{connector:t=(()=>new _n),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return Ue((m,C)=>{u++,!d&&!c&&f();const b=l=l??t();C.add(()=>{u--,0===u&&!d&&!c&&(a=Yl(p,o))}),b.subscribe(C),!s&&u>0&&(s=new Go({next:g=>b.next(g),error:g=>{d=!0,f(),a=Yl(h,n,g),b.error(g)},complete:()=>{c=!0,f(),a=Yl(h,r),b.complete()}}),Tt(m).subscribe(s))})(i)}}()))}const VC=new R(""),za=new R("");let Pd,Rd=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Pd||(function fN(e){Pd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.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:()=>{ve.assertNotInAngularZone(),Td(()=>{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())Td(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(N(ve),N(Od),N(za))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Od=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Pd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Yn=null;const HC=new R("AllowMultipleToken"),xd=new R("PlatformDestroyListeners"),Fd=new R("appBootstrapListener");class jC{constructor(t,n){this.name=t,this.token=n}}function UC(e,t,n=[]){const r=`Platform: ${t}`,o=new R(r);return(i=[])=>{let s=kd();if(!s||s.injector.get(HC,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function gN(e){if(Yn&&!Yn.get(HC,!1))throw new E(400,!1);(function $C(){!function pE(e){_p=e}(()=>{throw new E(600,!1)})})(),Yn=e;const t=e.get(GC);(function BC(e){e.get(lm,null)?.forEach(n=>n())})(e)}(function zC(e=[],t){return an.create({name:t,providers:[{provide:cc,useValue:"platform"},{provide:xd,useValue:new Set([()=>Yn=null])},...e]})}(a,r))}return function yN(e){const t=kd();if(!t)throw new E(401,!1);return t}()}}function kd(){return Yn?.get(GC)??null}let GC=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function vN(e="zone.js",t){return"noop"===e?new dN:"zone.js"===e?new ve(t):e}(r?.ngZone,function WC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function UA(e,t,n){return new sd(e,t,n)}(n.moduleType,this.injector,function QC(e){return[{provide:ve,useFactory:e},{provide:vi,multi:!0,useFactory:()=>{const t=I(_N,{optional:!0});return()=>t.initialize()}},{provide:XC,useFactory:CN},{provide:kC,useFactory:LC}]}(()=>o)),s=i.injector.get(vr,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Ga(this._modules,i),a.unsubscribe()})}),function qC(e,t,n){try{const r=n();return Oi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Id);return a.runInitializers(),a.donePromise.then(()=>(function pv(e){At(e,"Expected localeId to be defined"),"string"==typeof e&&(hv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(xn,Co)||Co),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=ZC({},r);return function hN(e,t,n){const r=new ad(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Eo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new E(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(xd,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(N(an))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function ZC(e,t){return Array.isArray(t)?t.reduce(ZC,e):{...e,...t}}let Eo=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=I(XC),this.componentTypes=[],this.components=[],this.isStable=I(kC),this._injector=I(sn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof gm;if(!this._injector.get(Id).done)throw!o&&function Lr(e){const t=ne(e)||Xe(e)||ut(e);return null!==t&&t.standalone}(n),new E(405,!1);let s;s=o?n:this._injector.get(ya).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function pN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(_o),u=s.create(an.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(VC,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Ga(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new E(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ga(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Fd,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ga(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new E(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ga(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const XC=new R("",{providedIn:"root",factory:()=>I(vr).handleError.bind(void 0)});function CN(){const e=I(ve),t=I(vr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let _N=(()=>{class e{constructor(){this.zone=I(ve),this.applicationRef=I(Eo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Wa=(()=>{class e{}return e.__NG_ELEMENT_ID__=wN,e})();function wN(e){return function EN(e,t,n){if(dr(e)&&!n){const r=ft(e.index,t);return new Si(r,r)}return 47&e.type?new Si(t[Ae],t):null}(We(),D(),16==(16&e))}class t_{constructor(){}supports(t){return Ma(t)}create(t){return new AN(t)}}const TN=(e,t)=>t;class AN{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||TN}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new NN(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new n_),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new n_),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class NN{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class RN{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class n_{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new RN,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function r_(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new PN(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class PN{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function i_(){return new Ya([new t_])}let Ya=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||i_()),deps:[[e,new Qs,new Xs]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new E(901,!1)}}return e.\u0275prov=O({token:e,providedIn:"root",factory:i_}),e})();function s_(){return new Ui([new o_])}let Ui=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||s_()),deps:[[e,new Qs,new Xs]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new E(901,!1)}}return e.\u0275prov=O({token:e,providedIn:"root",factory:s_}),e})();const kN=UC(null,"core",[]);let LN=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(N(Eo))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})(),f_=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=I(ve),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(n=>{this.resolve=n})})}add(){if(this.completed)return-1;const n=this.taskId++;return this.collection.add(n),n}remove(n){this.completed||(this.collection.delete(n),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function bo(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Ud=null;function Xn(){return Ud}class YN{}const Mt=new R("DocumentToken");let zd=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return I(QN)},providedIn:"platform"}),e})();const XN=new R("Location Initialized");let QN=(()=>{class e extends zd{constructor(){super(),this._doc=I(Mt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Xn().getBaseHref(this._doc)}onPopState(n){const r=Xn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Xn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function Gd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function p_(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Fn(e){return e&&"?"!==e[0]?"?"+e:e}let Qn=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return I(m_)},providedIn:"root"}),e})();const g_=new R("appBaseHref");let m_=(()=>{class e extends Qn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(Mt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Gd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Fn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Fn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Fn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(N(zd),N(g_,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),y_=(()=>{class e extends Qn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Gd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Fn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Fn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(N(zd),N(g_,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Wd=(()=>{class e{constructor(n){this._subject=new be,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function eR(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(p_(v_(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Fn(r))}normalize(n){return e.stripTrailingSlash(function JN(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,v_(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Fn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Fn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=Fn,e.joinWithSlash=Gd,e.stripTrailingSlash=p_,e.\u0275fac=function(n){return new(n||e)(N(Qn))},e.\u0275prov=O({token:e,factory:function(){return function KN(){return new Wd(N(Qn))}()},providedIn:"root"}),e})();function v_(e){return e.replace(/\/index.html$/,"")}var Se=(()=>((Se=Se||{})[Se.Format=0]="Format",Se[Se.Standalone=1]="Standalone",Se))(),X=(()=>((X=X||{})[X.Narrow=0]="Narrow",X[X.Abbreviated=1]="Abbreviated",X[X.Wide=2]="Wide",X[X.Short=3]="Short",X))(),De=(()=>((De=De||{})[De.Short=0]="Short",De[De.Medium=1]="Medium",De[De.Long=2]="Long",De[De.Full=3]="Full",De))(),L=(()=>((L=L||{})[L.Decimal=0]="Decimal",L[L.Group=1]="Group",L[L.List=2]="List",L[L.PercentSign=3]="PercentSign",L[L.PlusSign=4]="PlusSign",L[L.MinusSign=5]="MinusSign",L[L.Exponential=6]="Exponential",L[L.SuperscriptingExponent=7]="SuperscriptingExponent",L[L.PerMille=8]="PerMille",L[L.Infinity=9]="Infinity",L[L.NaN=10]="NaN",L[L.TimeSeparator=11]="TimeSeparator",L[L.CurrencyDecimal=12]="CurrencyDecimal",L[L.CurrencyGroup=13]="CurrencyGroup",L))();function Qa(e,t){return kt(ot(e)[A.DateFormat],t)}function Ka(e,t){return kt(ot(e)[A.TimeFormat],t)}function Ja(e,t){return kt(ot(e)[A.DateTimeFormat],t)}function Ft(e,t){const n=ot(e),r=n[A.NumberSymbols][t];if(typeof r>"u"){if(t===L.CurrencyDecimal)return n[A.NumberSymbols][L.Decimal];if(t===L.CurrencyGroup)return n[A.NumberSymbols][L.Group]}return r}function __(e){if(!e[A.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[A.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function kt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Zd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const hR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,zi={},pR=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var He=(()=>((He=He||{})[He.Short=0]="Short",He[He.ShortGMT=1]="ShortGMT",He[He.Long=2]="Long",He[He.Extended=3]="Extended",He))(),H=(()=>((H=H||{})[H.FullYear=0]="FullYear",H[H.Month=1]="Month",H[H.Date=2]="Date",H[H.Hours=3]="Hours",H[H.Minutes=4]="Minutes",H[H.Seconds=5]="Seconds",H[H.FractionalSeconds=6]="FractionalSeconds",H[H.Day=7]="Day",H))(),Z=(()=>((Z=Z||{})[Z.DayPeriods=0]="DayPeriods",Z[Z.Days=1]="Days",Z[Z.Months=2]="Months",Z[Z.Eras=3]="Eras",Z))();function gR(e,t,n,r){let o=function bR(e){if(E_(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return el(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(hR))return function MR(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,l,u),t}(r)}const t=new Date(e);if(!E_(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=kn(n,t)||t;let a,s=[];for(;t;){if(a=pR.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let l=o.getTimezoneOffset();r&&(l=w_(r,l),o=function ER(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function wR(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(w_(t,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function DR(e){if(Xd[e])return Xd[e];let t;switch(e){case"G":case"GG":case"GGG":t=fe(Z.Eras,X.Abbreviated);break;case"GGGG":t=fe(Z.Eras,X.Wide);break;case"GGGGG":t=fe(Z.Eras,X.Narrow);break;case"y":t=Oe(H.FullYear,1,0,!1,!0);break;case"yy":t=Oe(H.FullYear,2,0,!0,!0);break;case"yyy":t=Oe(H.FullYear,3,0,!1,!0);break;case"yyyy":t=Oe(H.FullYear,4,0,!1,!0);break;case"Y":t=ol(1);break;case"YY":t=ol(2,!0);break;case"YYY":t=ol(3);break;case"YYYY":t=ol(4);break;case"M":case"L":t=Oe(H.Month,1,1);break;case"MM":case"LL":t=Oe(H.Month,2,1);break;case"MMM":t=fe(Z.Months,X.Abbreviated);break;case"MMMM":t=fe(Z.Months,X.Wide);break;case"MMMMM":t=fe(Z.Months,X.Narrow);break;case"LLL":t=fe(Z.Months,X.Abbreviated,Se.Standalone);break;case"LLLL":t=fe(Z.Months,X.Wide,Se.Standalone);break;case"LLLLL":t=fe(Z.Months,X.Narrow,Se.Standalone);break;case"w":t=Yd(1);break;case"ww":t=Yd(2);break;case"W":t=Yd(1,!0);break;case"d":t=Oe(H.Date,1);break;case"dd":t=Oe(H.Date,2);break;case"c":case"cc":t=Oe(H.Day,1);break;case"ccc":t=fe(Z.Days,X.Abbreviated,Se.Standalone);break;case"cccc":t=fe(Z.Days,X.Wide,Se.Standalone);break;case"ccccc":t=fe(Z.Days,X.Narrow,Se.Standalone);break;case"cccccc":t=fe(Z.Days,X.Short,Se.Standalone);break;case"E":case"EE":case"EEE":t=fe(Z.Days,X.Abbreviated);break;case"EEEE":t=fe(Z.Days,X.Wide);break;case"EEEEE":t=fe(Z.Days,X.Narrow);break;case"EEEEEE":t=fe(Z.Days,X.Short);break;case"a":case"aa":case"aaa":t=fe(Z.DayPeriods,X.Abbreviated);break;case"aaaa":t=fe(Z.DayPeriods,X.Wide);break;case"aaaaa":t=fe(Z.DayPeriods,X.Narrow);break;case"b":case"bb":case"bbb":t=fe(Z.DayPeriods,X.Abbreviated,Se.Standalone,!0);break;case"bbbb":t=fe(Z.DayPeriods,X.Wide,Se.Standalone,!0);break;case"bbbbb":t=fe(Z.DayPeriods,X.Narrow,Se.Standalone,!0);break;case"B":case"BB":case"BBB":t=fe(Z.DayPeriods,X.Abbreviated,Se.Format,!0);break;case"BBBB":t=fe(Z.DayPeriods,X.Wide,Se.Format,!0);break;case"BBBBB":t=fe(Z.DayPeriods,X.Narrow,Se.Format,!0);break;case"h":t=Oe(H.Hours,1,-12);break;case"hh":t=Oe(H.Hours,2,-12);break;case"H":t=Oe(H.Hours,1);break;case"HH":t=Oe(H.Hours,2);break;case"m":t=Oe(H.Minutes,1);break;case"mm":t=Oe(H.Minutes,2);break;case"s":t=Oe(H.Seconds,1);break;case"ss":t=Oe(H.Seconds,2);break;case"S":t=Oe(H.FractionalSeconds,1);break;case"SS":t=Oe(H.FractionalSeconds,2);break;case"SSS":t=Oe(H.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=nl(He.Short);break;case"ZZZZZ":t=nl(He.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=nl(He.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=nl(He.Long);break;default:return null}return Xd[e]=t,t}(c);u+=d?d(o,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function el(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function kn(e,t){const n=function tR(e){return ot(e)[A.LocaleId]}(e);if(zi[n]=zi[n]||{},zi[n][t])return zi[n][t];let r="";switch(t){case"shortDate":r=Qa(e,De.Short);break;case"mediumDate":r=Qa(e,De.Medium);break;case"longDate":r=Qa(e,De.Long);break;case"fullDate":r=Qa(e,De.Full);break;case"shortTime":r=Ka(e,De.Short);break;case"mediumTime":r=Ka(e,De.Medium);break;case"longTime":r=Ka(e,De.Long);break;case"fullTime":r=Ka(e,De.Full);break;case"short":const o=kn(e,"shortTime"),i=kn(e,"shortDate");r=tl(Ja(e,De.Short),[o,i]);break;case"medium":const s=kn(e,"mediumTime"),a=kn(e,"mediumDate");r=tl(Ja(e,De.Medium),[s,a]);break;case"long":const l=kn(e,"longTime"),u=kn(e,"longDate");r=tl(Ja(e,De.Long),[l,u]);break;case"full":const c=kn(e,"fullTime"),d=kn(e,"fullDate");r=tl(Ja(e,De.Full),[c,d])}return r&&(zi[n][t]=r),r}function tl(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return null!=t&&r in t?t[r]:n})),e}function Gt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===H.Hours)0===a&&-12===n&&(a=12);else if(e===H.FractionalSeconds)return function mR(e,t){return Gt(e,3).substring(0,t)}(a,t);const l=Ft(s,L.MinusSign);return Gt(a,t,l,r,o)}}function fe(e,t,n=Se.Format,r=!1){return function(o,i){return function vR(e,t,n,r,o,i){switch(n){case Z.Months:return function oR(e,t,n){const r=ot(e),i=kt([r[A.MonthsFormat],r[A.MonthsStandalone]],t);return kt(i,n)}(t,o,r)[e.getMonth()];case Z.Days:return function rR(e,t,n){const r=ot(e),i=kt([r[A.DaysFormat],r[A.DaysStandalone]],t);return kt(i,n)}(t,o,r)[e.getDay()];case Z.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function lR(e){const t=ot(e);return __(t),(t[A.ExtraData][2]||[]).map(r=>"string"==typeof r?Zd(r):[Zd(r[0]),Zd(r[1])])}(t),c=function uR(e,t,n){const r=ot(e);__(r);const i=kt([r[A.ExtraData][0],r[A.ExtraData][1]],t)||[];return kt(i,n)||[]}(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,m=s>=h.hours&&a>=h.minutes,C=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case He.Short:return(o>=0?"+":"")+Gt(s,2,i)+Gt(Math.abs(o%60),2,i);case He.ShortGMT:return"GMT"+(o>=0?"+":"")+Gt(s,1,i);case He.Long:return"GMT"+(o>=0?"+":"")+Gt(s,2,i)+":"+Gt(Math.abs(o%60),2,i);case He.Extended:return 0===r?"Z":(o>=0?"+":"")+Gt(s,2,i)+":"+Gt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const CR=0,rl=4;function D_(e){return el(e.getFullYear(),e.getMonth(),e.getDate()+(rl-e.getDay()))}function Yd(e,t=!1){return function(n,r){let o;if(t){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=D_(n),s=function _R(e){const t=el(e,CR,1).getDay();return el(e,0,1+(t<=rl?rl:rl+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Gt(o,e,Ft(r,L.MinusSign))}}function ol(e,t=!1){return function(n,r){return Gt(D_(n).getFullYear(),e,Ft(r,L.MinusSign),t)}}const Xd={};function w_(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function E_(e){return e instanceof Date&&!isNaN(e.valueOf())}function I_(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}const nf=/\s+/,T_=[];let A_=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this.initialClasses=T_,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(nf):T_}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(nf):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const o=this.stateMap.get(n);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){(n=n.trim()).length>0&&n.split(nf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(n){return new(n||e)(_(Ya),_(Ui),_(Et),_(An))},e.\u0275dir=j({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class VR{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Mr=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new VR(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),R_(a,o)}});for(let o=0,i=r.length;o{R_(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(_(Ut),_(Pn),_(Ya))},e.\u0275dir=j({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function R_(e,t){e.context.$implicit=t.item}let O_=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new HR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){P_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){P_("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(_(Ut),_(Pn))},e.\u0275dir=j({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class HR{constructor(){this.$implicit=null,this.ngIf=null}}function P_(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Fe(t)}'.`)}const KR=new R("DATE_PIPE_DEFAULT_TIMEZONE"),JR=new R("DATE_PIPE_DEFAULT_OPTIONS");let Wi=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(null==n||""===n||n!=n)return null;try{return gR(n,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function Wt(e,t){return new E(2100,!1)}()}}}return e.\u0275fac=function(n){return new(n||e)(_(xn,16),_(KR,24),_(JR,24))},e.\u0275pipe=lt({name:"date",type:e,pure:!0,standalone:!0}),e})(),u3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})();function L_(e){return"server"===e}let h3=(()=>{class e{}return e.\u0275prov=O({token:e,providedIn:"root",factory:()=>new p3(N(Mt),window)}),e})();class p3{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function g3(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=V_(this.window.history)||V_(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function V_(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class H_{}class B3 extends YN{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class df extends B3{static makeCurrent(){!function ZN(e){Ud||(Ud=e)}(new df)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function U3(){return Zi=Zi||document.querySelector("base"),Zi?Zi.getAttribute("href"):null}();return null==n?null:function z3(e){ll=ll||document.createElement("a"),ll.setAttribute("href",e);const t=ll.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Zi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return I_(document.cookie,t)}}let ll,Zi=null,W3=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const ff=new R("EventManagerPlugins");let z_=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(N(ff),N(ve))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();class G_{constructor(t){this._doc=t}}const hf="ng-app-id";let W_=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=L_(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${hf}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(hf),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(hf,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(N(Mt),N(fa),N(um,8),N(yr))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const pf={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/"},gf=/%COMP%/g,X3=new R("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Z_(e,t){return t.map(n=>n.replace(gf,e))}let Y_=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=L_(a),this.defaultRenderer=new mf(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ct.ShadowDom&&(r={...r,encapsulation:Ct.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof Q_?o.applyToHost(n):o instanceof yf&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case Ct.Emulated:i=new Q_(l,u,r,this.appId,c,s,a,d);break;case Ct.ShadowDom:return new eO(l,u,n,r,s,a,this.nonce,d);default:i=new yf(l,u,r,c,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return e.\u0275fac=function(n){return new(n||e)(N(z_),N(W_),N(fa),N(X3),N(Mt),N(yr),N(ve),N(um))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();class mf{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(pf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(X_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(X_(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new E(5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=pf[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=pf[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ht.DashCase|ht.Important)?t.style.setProperty(n,r,o&ht.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ht.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Xn().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&(n.preventDefault(),n.returnValue=!1)}}}function X_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class eO extends mf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=Z_(o.id,o.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class yf extends mf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?Z_(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class Q_ extends yf{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function Q3(e){return"_ngcontent-%COMP%".replace(gf,e)}(u),this.hostAttr=function K3(e){return"_nghost-%COMP%".replace(gf,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let tO=(()=>{class e extends G_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(N(Mt))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const K_=["alt","control","meta","shift"],nO={"\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"},rO={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let oO=(()=>{class e extends G_{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),K_.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=nO[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),K_.forEach(s=>{s!==o&&(0,rO[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(N(Mt))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const lO=UC(kN,"browser",[{provide:yr,useValue:"browser"},{provide:lm,useValue:function iO(){df.makeCurrent()},multi:!0},{provide:Mt,useFactory:function aO(){return function cM(e){Ju=e}(document),document},deps:[]}]),uO=new R(""),tD=[{provide:za,useClass:class G3{addToWindow(t){de.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new E(5103,!1);return i},de.getAllAngularTestabilities=()=>t.getAllTestabilities(),de.getAllAngularRootElements=()=>t.getAllRootElements(),de.frameworkStabilizers||(de.frameworkStabilizers=[]),de.frameworkStabilizers.push(r=>{const o=de.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Xn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:VC,useClass:Rd,deps:[ve,Od,za]},{provide:Rd,useClass:Rd,deps:[ve,Od,za]}],nD=[{provide:cc,useValue:"root"},{provide:vr,useFactory:function sO(){return new vr},deps:[]},{provide:ff,useClass:tO,multi:!0,deps:[Mt,ve,yr]},{provide:ff,useClass:oO,multi:!0,deps:[Mt]},Y_,W_,z_,{provide:ym,useExisting:Y_},{provide:H_,useClass:W3,deps:[]},[]];let cO=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:fa,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(N(uO,12))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({providers:[...nD,...tD],imports:[u3,LN]}),e})(),rD=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(N(Mt))},e.\u0275prov=O({token:e,factory:function(n){let r=null;return r=n?new n:function fO(){return new rD(N(Mt))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:yO}=Array,{getPrototypeOf:vO,prototype:CO,keys:_O}=Object;function aD(e){if(1===e.length){const t=e[0];if(yO(t))return{args:t,keys:null};if(function DO(e){return e&&"object"==typeof e&&vO(e)===CO}(t)){const n=_O(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:wO}=Array;function lD(e){return te(t=>function EO(e,t){return wO(t)?e(...t):e(t)}(e,t))}function uD(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let cD=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(_(An),_(Et))},e.\u0275dir=j({type:e}),e})(),Sr=(()=>{class e extends cD{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=qe(e)))(r||e)}}(),e.\u0275dir=j({type:e,features:[ae]}),e})();const hn=new R("NgValueAccessor"),MO={provide:hn,useExisting:ce(()=>ul),multi:!0};let ul=(()=>{class e extends Sr{writeValue(n){this.setProperty("checked",n)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=qe(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&P("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[ye([MO]),ae]}),e})();const SO={provide:hn,useExisting:ce(()=>qt),multi:!0},TO=new R("CompositionEventMode");let qt=(()=>{class e extends cD{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function IO(){const e=Xn()?Xn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(_(An),_(Et),_(TO,8))},e.\u0275dir=j({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&P("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[ye([SO]),ae]}),e})();const et=new R("NgValidators"),er=new R("NgAsyncValidators");function _D(e){return null!=e}function DD(e){return Oi(e)?xe(e):e}function wD(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function ED(e,t){return t.map(n=>n(e))}function bD(e){return e.map(t=>function NO(e){return!e.validate}(t)?t:n=>t.validate(n))}function Cf(e){return null!=e?function MD(e){if(!e)return null;const t=e.filter(_D);return 0==t.length?null:function(n){return wD(ED(n,t))}}(bD(e)):null}function _f(e){return null!=e?function SD(e){if(!e)return null;const t=e.filter(_D);return 0==t.length?null:function(n){return function bO(...e){const t=jh(e),{args:n,keys:r}=aD(e),o=new Me(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?uD(r,a):a),i.complete())}))}});return t?o.pipe(lD(t)):o}(ED(n,t).map(DD)).pipe(te(wD))}}(bD(e)):null}function ID(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Df(e){return e?Array.isArray(e)?e:[e]:[]}function dl(e,t){return Array.isArray(e)?e.includes(t):e===t}function ND(e,t){const n=Df(t);return Df(e).forEach(o=>{dl(n,o)||n.push(o)}),n}function RD(e,t){return Df(t).filter(n=>!dl(e,n))}class OD{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Cf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=_f(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class st extends OD{get formDirective(){return null}get path(){return null}}class tr extends OD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class PD{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ln=(()=>{class e extends PD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(_(tr,2))},e.\u0275dir=j({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Oa("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[ae]}),e})(),xD=(()=>{class e extends PD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(_(st,10))},e.\u0275dir=j({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Oa("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[ae]}),e})();const Yi="VALID",hl="INVALID",Mo="PENDING",Xi="DISABLED";function bf(e){return(pl(e)?e.validators:e)||null}function Mf(e,t){return(pl(t)?t.asyncValidators:e)||null}function pl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class VD{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Yi}get invalid(){return this.status===hl}get pending(){return this.status==Mo}get disabled(){return this.status===Xi}get enabled(){return this.status!==Xi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ND(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ND(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(RD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(RD(t,this._rawAsyncValidators))}hasValidator(t){return dl(this._rawValidators,t)}hasAsyncValidator(t){return dl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Mo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Xi,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Yi,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yi||this.status===Mo)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xi:Yi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Mo,this._hasOwnPendingAsyncValidator=!0;const n=DD(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new be,this.statusChanges=new be}_calculateStatus(){return this._allControlsDisabled()?Xi:this.errors?hl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mo)?Mo:this._anyControlsHaveStatus(hl)?hl:Yi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){pl(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function xO(e){return Array.isArray(e)?Cf(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function FO(e){return Array.isArray(e)?_f(e):e||null}(this._rawAsyncValidators)}}class Sf extends VD{constructor(t,n,r){super(bf(n),Mf(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function LD(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new E(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function kD(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new E(1e3,"");if(!r[n])throw new E(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const So=new R("CallSetDisabledState",{providedIn:"root",factory:()=>gl}),gl="always";function Qi(e,t,n=gl){If(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function VO(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&HD(e,t)})}(e,t),function $O(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function HO(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&HD(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function LO(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function vl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function If(e,t){const n=function TD(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(ID(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function AD(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(ID(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();vl(t._rawValidators,o),vl(t._rawAsyncValidators,o)}function HD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const GO={provide:st,useExisting:ce(()=>_l)},Ki=(()=>Promise.resolve())();let _l=(()=>{class e extends st{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new be,this.form=new Sf({},Cf(n),_f(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Ki.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Qi(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Ki.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Ki.then(()=>{const r=this._findContainer(n.path),o=new Sf({});(function $D(e,t){If(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Ki.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Ki.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function jD(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(_(et,10),_(er,10),_(So,8))},e.\u0275dir=j({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&P("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([GO]),ae]}),e})();function BD(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function UD(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const zD=class extends VD{constructor(t=null,n,r){super(bf(n),Mf(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pl(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=UD(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){BD(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){BD(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){UD(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},ZO={provide:tr,useExisting:ce(()=>pn)},qD=(()=>Promise.resolve())();let pn=(()=>{class e extends tr{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new zD,this._registered=!1,this.name="",this.update=new be,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Nf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===qt?n=i:function UO(e){return Object.getPrototypeOf(e.constructor)===Sr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Af(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Qi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){qD.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&bo(r);qD.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function ml(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(_(st,9),_(et,10),_(er,10),_(hn,10),_(Wa,8),_(So,8))},e.\u0275dir=j({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ye([ZO]),ae,Ot]}),e})(),ZD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),XD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})(),vP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({imports:[XD]}),e})(),_P=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:So,useValue:n.callSetDisabledState??gl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({imports:[vP]}),e})();function k(...e){return xe(e,Wo(e))}function Io(e,t){return ue(t)?ze(e,t,1):ze(e,1)}function Vn(e,t){return Ue((n,r)=>{let o=0;n.subscribe($e(r,i=>e.call(t,i,o++)&&r.next(i)))})}function gn(e,t){return Ue((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe($e(r,l=>{o?.unsubscribe();let u=0;const c=i++;Tt(e(l,c)).subscribe(o=$e(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class Dl{}class Lf{}class Ye{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ye?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Ye;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Ye?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class DP{encodeKey(t){return g0(t)}encodeValue(t){return g0(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const EP=/%(\d[a-f0-9])/gi,bP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function g0(e){return encodeURIComponent(e).replace(EP,(t,n)=>bP[n]??t)}function wl(e){return`${e}`}class nr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new DP,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function wP(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(wl):[wl(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new nr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(wl(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(wl(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class MP{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function m0(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function y0(e){return typeof Blob<"u"&&e instanceof Blob}function v0(e){return typeof FormData<"u"&&e instanceof FormData}class Ji{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function SP(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new Ye),this.context||(this.context=new MP),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),u)),new Ji(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Pe=(()=>((Pe=Pe||{})[Pe.Sent=0]="Sent",Pe[Pe.UploadProgress=1]="UploadProgress",Pe[Pe.ResponseHeader=2]="ResponseHeader",Pe[Pe.DownloadProgress=3]="DownloadProgress",Pe[Pe.Response=4]="Response",Pe[Pe.User=5]="User",Pe))();class Vf{constructor(t,n=200,r="OK"){this.headers=t.headers||new Ye,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Hf extends Vf{constructor(t={}){super(t),this.type=Pe.ResponseHeader}clone(t={}){return new Hf({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class To extends Vf{constructor(t={}){super(t),this.type=Pe.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new To({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C0 extends Vf{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function $f(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Tr=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Ji)i=n;else{let l,u;l=o.headers instanceof Ye?o.headers:new Ye(o.headers),o.params&&(u=o.params instanceof nr?o.params:new nr({fromObject:o.params})),i=new Ji(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=k(i).pipe(Io(l=>this.handler.handle(l)));if(n instanceof Ji||"events"===o.observe)return s;const a=s.pipe(Vn(l=>l instanceof To));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(te(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(te(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(te(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(te(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new nr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,$f(o,r))}post(n,r,o={}){return this.request("POST",n,$f(o,r))}put(n,r,o={}){return this.request("PUT",n,$f(o,r))}}return e.\u0275fac=function(n){return new(n||e)(N(Dl))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function _0(e,t){return t(e)}function TP(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const D0=new R(""),es=new R(""),w0=new R("");function NP(){let e=null;return(t,n)=>(null===e&&(e=(I(D0,{optional:!0})??[]).reduceRight(TP,_0)),e(t,n))}let E0=(()=>{class e extends Dl{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(es),...this.injector.get(w0,[])]));this.chain=r.reduceRight((o,i)=>function AP(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),_0)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(N(Lf),N(sn))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const xP=/^\)\]\}',?\n/;let M0=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?xe(r.\u0275loadImpl()):k(null)).pipe(gn(()=>new Me(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,S)=>s.setRequestHeader(g,S.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=n.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const g=s.statusText||"OK",S=new Ye(s.getAllResponseHeaders()),F=function FP(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return l=new Hf({headers:S,status:s.status,statusText:g,url:F}),l},c=()=>{let{headers:g,status:S,statusText:F,url:Y}=u(),pe=null;204!==S&&(pe=typeof s.response>"u"?s.responseText:s.response),0===S&&(S=pe?200:0);let Bo=S>=200&&S<300;if("json"===n.responseType&&"string"==typeof pe){const Yk=pe;pe=pe.replace(xP,"");try{pe=""!==pe?JSON.parse(pe):null}catch(Xk){pe=Yk,Bo&&(Bo=!1,pe={error:Xk,text:pe})}}Bo?(i.next(new To({body:pe,headers:g,status:S,statusText:F,url:Y||void 0})),i.complete()):i.error(new C0({error:pe,headers:g,status:S,statusText:F,url:Y||void 0}))},d=g=>{const{url:S}=u(),F=new C0({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:S||void 0});i.error(F)};let f=!1;const h=g=>{f||(i.next(u()),f=!0);let S={type:Pe.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(S.total=g.total),"text"===n.responseType&&s.responseText&&(S.partialText=s.responseText),i.next(S)},p=g=>{let S={type:Pe.UploadProgress,loaded:g.loaded};g.lengthComputable&&(S.total=g.total),i.next(S)};let m;s.addEventListener("load",c),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p));const C=()=>{m??=function LP(){const e=setTimeout(()=>{},kP);return()=>clearTimeout(e)}()},b=()=>{m?.()};return s.addEventListener("loadstart",C),s.addEventListener("loadend",b),s.send(a),i.next({type:Pe.Sent}),()=>{s.removeEventListener("loadstart",C),s.removeEventListener("loadend",b),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),m?.(),n.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}}return e.\u0275fac=function(n){return new(n||e)(N(H_))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const kP=2147483647,jf=new R("XSRF_ENABLED"),S0=new R("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),I0=new R("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class T0{}let $P=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=I_(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(N(Mt),N(yr),N(S0))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function jP(e,t){const n=e.url.toLowerCase();if(!I(jf)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=I(T0).getToken(),o=I(I0);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Te=(()=>((Te=Te||{})[Te.Interceptors=0]="Interceptors",Te[Te.LegacyInterceptors=1]="LegacyInterceptors",Te[Te.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Te[Te.NoXsrfProtection=3]="NoXsrfProtection",Te[Te.JsonpSupport=4]="JsonpSupport",Te[Te.RequestsMadeViaParent=5]="RequestsMadeViaParent",Te))();function Ao(e,t){return{\u0275kind:e,\u0275providers:t}}function BP(...e){const t=[Tr,M0,E0,{provide:Dl,useExisting:E0},{provide:Lf,useExisting:M0},{provide:es,useValue:jP,multi:!0},{provide:jf,useValue:!0},{provide:T0,useClass:$P}];for(const n of e)t.push(...n.\u0275providers);return function sc(e){return{\u0275providers:e}}(t)}const A0=new R("LEGACY_INTERCEPTOR_FN");let zP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({providers:[BP(Ao(Te.LegacyInterceptors,[{provide:A0,useFactory:NP},{provide:es,useExisting:A0,multi:!0}]))]}),e})();function J(e,t,n){const r=ue(e)||t||n?{next:e,error:t,complete:n}:e;return r?Ue((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe($e(i,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),i.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):ar}function he(e){return Ue((t,n)=>{let i,r=null,o=!1;r=t.subscribe($e(n,void 0,void 0,s=>{i=Tt(e(s,he(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}const Ar_restServerUrl="https://tds.truyen.network";let No=(()=>{class e{constructor(){this.messages=[]}add(n){this.messages.push((new Date).toLocaleTimeString()+") "+n)}clear(){this.messages=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class mn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),k(n))}log(t){this.appMessageService.add(`ChatMessagesService: ${t}`)}getChatMessages(){return this.http.get(mn.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} messages`)),he(this.handleError("getChatMessages",[])))}addChatMessage(t,n){return this.http.post(mn.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),he(this.handleError("addChatMessage")))}}mn.REST_URL=Ar_restServerUrl+"/api/chat",mn.\u0275fac=function(t){return new(t||mn)(N(Tr),N(No))},mn.\u0275prov=O({token:mn,factory:mn.\u0275fac,providedIn:"root"});const Ro="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Bf=Array.from({length:64},(e,t)=>t),El=e=>Array(e).fill(-1),rr=[...El(46),0,1,...Bf.slice(54,64),...El(7),...Bf.slice(2,28),...El(6),...Bf.slice(28,54),...El(5)],N0=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],R0=[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946,1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055,3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504,976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],O0=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892],Uf=(e,t)=>{if(t<=0||t>e.length)throw Error(`Illegal len: ${t}`);let r,o,n=0;const i=[];for(;n>2&63]),r=(3&r)<<4,n>=t){i.push(Ro[63&r]);break}if(o=255&e[n++],r|=o>>4&15,i.push(Ro[63&r]),r=(15&o)<<2,n>=t){i.push(Ro[63&r]);break}o=255&e[n++],r|=o>>6&3,i.push(Ro[63&r]),i.push(Ro[63&o])}return i.join("")},bl="object"==typeof process&&"edge"===process.env.NEXT_RUNTIME?setTimeout:"function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:setTimeout,ns=(e,t,n,r)=>{let o,i=e[t],s=e[t+1];return i^=n[0],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[1],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[2],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[3],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[4],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[5],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[6],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[7],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[8],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[9],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[10],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[11],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[12],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[13],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[14],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[15],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[16],e[t]=s^n[17],e[t+1]=i,e},Oo=(e,t)=>{let n=0;for(let r=0;r<4;++r)n=n<<8|255&e[t],t=(t+1)%e.length;return{key:n,offp:t}},P0=(e,t,n)=>{const r=t.length,o=n.length;let a,i=0,s=[0,0];for(let l=0;l{const i=O0.slice(),s=i.length;if(n<4||n>31){const f=new Error(`Illegal number of rounds (4-31): ${n}`);if(!1===r)return Promise.reject(f);throw f}if(16!==t.length){const f=new Error(`Illegal salt length: ${t.length} != 16`);if(!1===r)return Promise.reject(f);throw f}n=1<>>0;let a,l,c,u=0;Int32Array?(a=new Int32Array(N0),l=new Int32Array(R0)):(a=N0.slice(),l=R0.slice()),((e,t,n,r)=>{const o=n.length,i=r.length;let l,s=0,a=[0,0];for(let u=0;u{if(o&&o(u/n),!(u>1;c++)ns(i,c<<1,a,l);const f=[];for(u=0;u>24&255)>>>0),f.push((i[u]>>16&255)>>>0),f.push((i[u]>>8&255)>>>0),f.push((255&i[u])>>>0);return!1===r?Promise.resolve(f):f}{const f=Date.now();for(;u100)););}if(!1===r)return new Promise(f=>bl(()=>{d().then(f)}))};if(!1===r)return d();{let f;for(;;)if(typeof(f=d())<"u")return f||[]}},zf=(e=10)=>{if("number"!=typeof e)throw Error("Illegal arguments: "+typeof e);e<4?e=4:e>31&&(e=31);const t=[];return t.push("$2a$"),e<10&&t.push("0"),t.push(e.toString()),t.push("$"),t.push(Uf((e=>{try{let t;t=typeof window<"u"?window.crypto??window.msCrypto:globalThis.crypto;const n=new Uint32Array(16);return t?.getRandomValues(n),Array.from(n)}catch{throw Error("WebCryptoAPI is not available")}})(),16)),t.join("")};const F0=(e,t=10)=>{if("number"==typeof t&&(t=zf(t)),"string"!=typeof e||"string"!=typeof t)throw Error("Illegal arguments: "+typeof e+", "+typeof t);return function Gf(e,t,n,r){if("string"!=typeof e||"string"!=typeof t){const h=new Error("Invalid string / salt: Not a string");if(!1===n)return Promise.reject(h);throw h}let o,i;if("$"!==t.charAt(0)||"2"!==t.charAt(1)){const h=new Error("Invalid salt version: "+t.substring(0,2));if(!1===n)return Promise.reject(h);throw h}if("$"===t.charAt(2))o="\0",i=3;else{if(o=t.charAt(2),"a"!==o&&"b"!==o&&"y"!==o||"$"!==t.charAt(3)){const h=Error("Invalid salt revision: "+t.substring(2,4));if(!1===n)return Promise.reject(h);throw h}i=4}if(t.charAt(i+2)>"$"){const h=new Error("Missing salt rounds");if(!1===n)return Promise.reject(h);throw h}const l=10*parseInt(t.substring(i,i+1),10)+parseInt(t.substring(i+1,i+2),10),u=t.substring(i+3,i+25),c=(e=>{const t=[];let n=0;return((e,t)=>{((e,t)=>{let n,r=null;for(;null!==(n=null!==r?r:e());)n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n);null!==r&&t(r)})(e,function(n){((e,t)=>{let n=null;for("number"==typeof e&&(n=e,e=()=>null);null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(n>>6&31|192),t(63&n|128)):n<65536?(t(n>>12&15|224),t(n>>6&63|128),t(63&n|128)):(t(n>>18&7|240),t(n>>12&63|128),t(n>>6&63|128),t(63&n|128)),n=null})(n,t)})})(()=>n>=e.length?null:e.charCodeAt(n++),r=>{t.push(r)}),t})(e+=o>="a"?"\0":""),d=((e,t)=>{const n=e.length;let i,s,a,l,u,c,r=0,o=0;const d=[];for(;r>>0,u|=(48&s)>>4,d.push(String.fromCharCode(u)),++o>=16||r>=n)||(c=e.charCodeAt(r++),a=c>>0,u|=(60&a)>>2,d.push(String.fromCharCode(u)),++o>=16||r>=n)));)c=e.charCodeAt(r++),l=c>>0,u|=l,d.push(String.fromCharCode(u)),++o;return d.map(f=>f.charCodeAt(0))})(u),f=h=>{const p=[];return p.push("$2"),o>="a"&&p.push(o),p.push("$"),l<10&&p.push("0"),p.push(l.toString()),p.push("$"),p.push(Uf(d,d.length)),p.push(Uf(h,4*O0.length-1)),p.join("")};return!1===n?x0(c,d,l,!1,r).then(h=>f(h)):f(x0(c,d,l,!0,r))}(e,t,!0)};class Zt extends _n{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Wf(...e){const t=Wo(e),n=jh(e),{args:r,keys:o}=aD(e);if(0===r.length)return xe([],t);const i=new Me(function sx(e,t,n=ar){return r=>{k0(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=xe(e[l],t);let c=!1;u.subscribe($e(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>uD(o,s):ar));return n?i.pipe(lD(n)):i}function k0(e,t,n){e?Dn(n,e,t):t()}const Ml=Uo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function qf(...e){return function ax(){return Fr(1)}()(xe(e,Wo(e)))}function L0(e){return new Me(t=>{Tt(e()).subscribe(t)})}function rs(e,t){const n=ue(e)?e:()=>e,r=o=>o.error(n());return new Me(t?o=>t.schedule(r,0,o):r)}function Zf(){return Ue((e,t)=>{let n=null;e._refCount++;const r=$e(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class V0 extends Me{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ih(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new It;const n=this.getSubject();t.add(this.source.subscribe($e(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=It.EMPTY)}return t}refCount(){return Zf()(this)}}function Po(e){return e<=0?()=>Qt:Ue((t,n)=>{let r=0;t.subscribe($e(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Sl(e){return Ue((t,n)=>{let r=!1;t.subscribe($e(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function H0(e=ux){return Ue((t,n)=>{let r=!1;t.subscribe($e(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function ux(){return new Ml}function Nr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Vn((o,i)=>e(o,i,r)):ar,Po(1),n?Sl(t):H0(()=>new Ml))}function Yf(e){return e<=0?()=>Qt:Ue((t,n)=>{let r=[];t.subscribe($e(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Xf(e){return Ue((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const q="primary",os=Symbol("RouteTitle");class px{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function xo(e){return new px(e)}function gx(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function j0(e){return e.length>0?e[e.length-1]:null}function or(e){return function ix(e){return!!e&&(e instanceof Me||ue(e.lift)&&ue(e.subscribe))}(e)?e:Oi(e)?xe(Promise.resolve(e)):k(e)}const yx={exact:function z0(e,t,n){if(!Rr(e.segments,t.segments)||!Il(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!z0(e.children[r],t.children[r],n))return!1;return!0},subset:G0},B0={exact:function vx(e,t){return yn(e,t)},subset:function Cx(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>$0(e[n],t[n]))},ignored:()=>!0};function U0(e,t,n){return yx[n.paths](e.root,t.root,n.matrixParams)&&B0[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function G0(e,t,n){return W0(e,t,t.segments,n)}function W0(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Rr(o,n)||t.hasChildren()||!Il(o,n,r))}if(e.segments.length===n.length){if(!Rr(e.segments,n)||!Il(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!G0(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Rr(e.segments,o)&&Il(e.segments,o,r)&&e.children[q])&&W0(e.children[q],t,i,r)}}function Il(e,t,n){return t.every((r,o)=>B0[n](e[o].parameters,r.parameters))}class Fo{constructor(t=new le([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xo(this.queryParams)),this._queryParamMap}toString(){return wx.serialize(this)}}class le{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Tl(this)}}class is{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=xo(this.parameters)),this._parameterMap}toString(){return Y0(this)}}function Rr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let ss=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return new Qf},providedIn:"root"}),e})();class Qf{parse(t){const n=new Px(t);return new Fo(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${as(t.root,!0)}`,r=function Mx(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Al(n)}=${Al(o)}`).join("&"):`${Al(n)}=${Al(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function Ex(e){return encodeURI(e)}(t.fragment)}`:""}`}}const wx=new Qf;function Tl(e){return e.segments.map(t=>Y0(t)).join("/")}function as(e,t){if(!e.hasChildren())return Tl(e);if(t){const n=e.children[q]?as(e.children[q],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==q&&r.push(`${o}:${as(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function Dx(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===q&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==q&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===q?[as(e.children[q],!1)]:[`${o}:${as(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[q]?`${Tl(e)}/${n[0]}`:`${Tl(e)}/(${n.join("//")})`}}function q0(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Al(e){return q0(e).replace(/%3B/gi,";")}function Kf(e){return q0(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Nl(e){return decodeURIComponent(e)}function Z0(e){return Nl(e.replace(/\+/g,"%20"))}function Y0(e){return`${Kf(e.path)}${function bx(e){return Object.keys(e).map(t=>`;${Kf(t)}=${Kf(e[t])}`).join("")}(e.parameters)}`}const Sx=/^[^\/()?;#]+/;function Jf(e){const t=e.match(Sx);return t?t[0]:""}const Ix=/^[^\/()?;=#]+/,Ax=/^[^=?&#]+/,Rx=/^[^&#]+/;class Px{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new le([],{}):new le([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[q]=new le(t,n)),r}parseSegment(){const t=Jf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(t),new is(Nl(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function Tx(e){const t=e.match(Ix);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Jf(this.remaining);o&&(r=o,this.capture(r))}t[Nl(n)]=Nl(r)}parseQueryParam(t){const n=function Nx(e){const t=e.match(Ax);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function Ox(e){const t=e.match(Rx);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Z0(n),i=Z0(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Jf(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new E(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=q);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[q]:new le([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new E(4011,!1)}}function X0(e){return e.segments.length>0?new le([],{[q]:e}):e}function Q0(e){const t={};for(const r of Object.keys(e.children)){const i=Q0(e.children[r]);if(r===q&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function xx(e){if(1===e.numberOfChildren&&e.children[q]){const t=e.children[q];return new le(e.segments.concat(t.segments),t.children)}return e}(new le(e.segments,t))}function Or(e){return e instanceof Fo}function K0(e){let t;const o=X0(function n(i){const s={};for(const l of i.children){const u=n(l);s[l.outlet]=u}const a=new le(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function J0(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return eh(o,o,o,n,r);const i=function kx(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new tw(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([l,u])=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new tw(n,t,r)}(t);if(i.toRoot())return eh(o,o,new le([],{}),n,r);const s=function Lx(e,t,n){if(e.isAbsolute)return new Ol(t,!0,0);if(!n)return new Ol(t,!1,NaN);if(null===n.parent)return new Ol(n,!0,0);const r=Rl(e.commands[0])?0:1;return function Vx(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new E(4005,!1);o=r.segments.length}return new Ol(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?us(s.segmentGroup,s.index,i.commands):nw(s.segmentGroup,s.index,i.commands);return eh(o,s.segmentGroup,a,n,r)}function Rl(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ls(e){return"object"==typeof e&&null!=e&&e.outlets}function eh(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:ew(e,t,n);const a=X0(Q0(s));return new Fo(a,i,o)}function ew(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:ew(i,t,n)}),new le(e.segments,r)}class tw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Rl(r[0]))throw new E(4003,!1);const o=r.find(ls);if(o&&o!==j0(r))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ol{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function nw(e,t,n){if(e||(e=new le([],{})),0===e.segments.length&&e.hasChildren())return us(e,t,n);const r=function $x(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(ls(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!ow(l,u,s))return i;r+=2}else{if(!ow(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=nw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new le(e.segments,o)}}function th(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=th(new le([],{}),0,r))}),t}function rw(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function ow(e,t,n){return e==n.path&&yn(t,n.parameters)}const cs="imperative";class vn{constructor(t,n){this.id=t,this.url=n}}class nh extends vn{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Pr extends vn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pl extends vn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ds extends vn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class rh extends vn{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Bx extends vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ux extends vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zx extends vn{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Gx extends vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wx extends vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qx{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Zx{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Yx{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xx{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qx{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kx{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iw{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Jx{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new fs,this.attachRef=null}}let fs=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Jx,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class sw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=oh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=oh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=ih(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return ih(t,this._root).map(n=>n.value)}}function oh(e,t){if(e===t.value)return t;for(const n of t.children){const r=oh(e,n);if(r)return r}return null}function ih(e,t){if(e===t.value)return[t];for(const n of t.children){const r=ih(e,n);if(r.length)return r.unshift(t),r}return[]}class Hn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function ko(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class aw extends sw{constructor(t,n){super(t),this.snapshot=n,sh(this,t)}toString(){return this.snapshot.toString()}}function lw(e,t){const n=function eF(e,t){const s=new xl([],{},{},"",{},q,t,null,{});return new cw("",new Hn(s,[]))}(0,t),r=new Zt([new is("",{})]),o=new Zt({}),i=new Zt({}),s=new Zt({}),a=new Zt(""),l=new $n(r,o,s,a,i,q,t,n.root);return l.snapshot=n.root,new aw(new Hn(l,[]),n)}class $n{constructor(t,n,r,o,i,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(te(u=>u[os]))??k(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}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(te(t=>xo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(te(t=>xo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function uw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function tF(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class xl{get title(){return this.data?.[os]}constructor(t,n,r,o,i,s,a,l,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=u}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=xo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class cw extends sw{constructor(t,n){super(n),this.url=t,sh(this,n)}toString(){return dw(this._root)}}function sh(e,t){t.value._routerState=e,t.children.forEach(n=>sh(e,n))}function dw(e){const t=e.children.length>0?` { ${e.children.map(dw).join(", ")} } `:"";return`${e.value}${t}`}function ah(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,yn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),yn(t.params,n.params)||e.paramsSubject.next(n.params),function mx(e,t){if(e.length!==t.length)return!1;for(let n=0;nyn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||lh(e.parent,t.parent))}let uh=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=q,this.activateEvents=new be,this.deactivateEvents=new be,this.attachEvents=new be,this.detachEvents=new be,this.parentContexts=I(fs),this.location=I(Ut),this.changeDetector=I(Wa),this.environmentInjector=I(sn),this.inputBinder=I(Fl,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new E(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new nF(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ot]}),e})();class nF{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===$n?this.route:t===fs?this.childContexts:this.parent.get(t,n)}}const Fl=new R("");let fw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=Wf([r.queryParams,r.params,r.data]).pipe(gn(([i,s,a],l)=>(a={...i,...s,...a},0===l?k(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function qN(e){const t=ne(e);if(!t)return null;const n=new Ii(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function hs(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function oF(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return hs(e,r,o);return hs(e,r)})}(e,t,n);return new Hn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>hs(e,a)),s}}const r=function iF(e){return new $n(new Zt(e.url),new Zt(e.params),new Zt(e.queryParams),new Zt(e.fragment),new Zt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>hs(e,i));return new Hn(r,o)}}const ch="ngNavigationCancelingError";function hw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Or(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=pw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function pw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[ch]=!0,r.cancellationCode=t,n&&(r.url=n),r}function gw(e){return mw(e)&&Or(e.url)}function mw(e){return e&&e[ch]}let yw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Rt({type:e,selectors:[["ng-component"]],standalone:!0,features:[jv],decls:1,vars:0,template:function(n,r){1&n&&ie(0,"router-outlet")},dependencies:[uh],encapsulation:2}),e})();function dh(e){const t=e.children&&e.children.map(dh),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==q&&(n.component=yw),n}function Yt(e){return e.outlet||q}function ps(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class fF{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),ah(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=ko(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=ko(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=ko(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const o=ko(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Kx(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Xx(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(ah(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),ah(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=ps(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class vw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class kl{constructor(t,n){this.component=t,this.route=n}}function hF(e,t,n){const r=e._root;return gs(r,t?t._root:null,n,[r.value])}function Lo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function O1(e){return null!==Es(e)}(e)?t.get(e):e:r}function gs(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=ko(t);return e.children.forEach(s=>{(function gF(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function mF(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Rr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Rr(e.url,t.url)||!yn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lh(e,t)||!yn(e.queryParams,t.queryParams);default:return!lh(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new vw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),gs(e,t,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new kl(a.outlet.component,s))}else s&&ms(t,a,o),o.canActivateChecks.push(new vw(r)),gs(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ms(a,n.getContext(s),o)),o}function ms(e,t,n){const r=ko(e),o=e.value;Object.entries(r).forEach(([i,s])=>{ms(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new kl(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function ys(e){return"function"==typeof e}function Cw(e){return e instanceof Ml||"EmptyError"===e?.name}const Ll=Symbol("INITIAL_VALUE");function Vo(){return gn(e=>Wf(e.map(t=>t.pipe(Po(1),function lx(...e){const t=Wo(e);return Ue((n,r)=>{(t?qf(e,n,t):qf(e,n)).subscribe(r)})}(Ll)))).pipe(te(t=>{for(const n of t)if(!0!==n){if(n===Ll)return Ll;if(!1===n||n instanceof Fo)return n}return!0}),Vn(t=>t!==Ll),Po(1)))}function _w(e){return function Qw(...e){return bh(e)}(J(t=>{if(Or(t))throw hw(0,t)}),te(t=>!0===t))}class Vl{constructor(t){this.segmentGroup=t||null}}class Dw{constructor(t){this.urlTree=t}}function Ho(e){return rs(new Vl(e))}function ww(e){return rs(new Dw(e))}class kF{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new E(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return k(r);if(o.numberOfChildren>1||!o.children[q])return rs(new E(4e3,!1));o=o.children[q]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Fo(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,o)}),new le(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new E(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const fh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function LF(e,t,n,r,o){const i=hh(e,t,n);return i.matched?(r=function sF(e,t){return e.providers&&!e._injector&&(e._injector=ld(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function PF(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?k(o.map(s=>{const a=Lo(s,e);return or(function wF(e){return e&&ys(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(Vo(),_w()):k(!0)}(r,t,n).pipe(te(s=>!0===s?i:{...fh}))):k(i)}function hh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...fh}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||gx)(n,e,t);if(!o)return{...fh};const i={};Object.entries(o.posParams??{}).forEach(([a,l])=>{i[a]=l.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Ew(e,t,n,r){return n.length>0&&function $F(e,t,n){return n.some(r=>Hl(e,t,r)&&Yt(r)!==q)}(e,n,r)?{segmentGroup:new le(t,HF(r,new le(n,e.children))),slicedSegments:[]}:0===n.length&&function jF(e,t,n){return n.some(r=>Hl(e,t,r))}(e,n,r)?{segmentGroup:new le(e.segments,VF(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new le(e.segments,e.children),slicedSegments:n}}function VF(e,t,n,r,o){const i={};for(const s of r)if(Hl(e,n,s)&&!o[Yt(s)]){const a=new le([],{});i[Yt(s)]=a}return{...o,...i}}function HF(e,t){const n={};n[q]=t;for(const r of e)if(""===r.path&&Yt(r)!==q){const o=new le([],{});n[Yt(r)]=o}return n}function Hl(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class GF{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new kF(this.urlSerializer,this.urlTree)}noMatchError(t){return new E(4002,!1)}recognize(){const t=Ew(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,q).pipe(he(n=>{if(n instanceof Dw)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof Vl?this.noMatchError(n):n}),te(n=>{const r=new xl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},q,this.rootComponentType,null,{}),o=new Hn(r,n),i=new cw("",o),s=function Fx(e,t,n=null,r=null){return J0(K0(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,q).pipe(he(r=>{throw r instanceof Vl?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=uw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0)}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return xe(o).pipe(Io(i=>{const s=r.children[i],a=function cF(e,t){const n=e.filter(r=>Yt(r)===t);return n.push(...e.filter(r=>Yt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function dx(e,t){return Ue(function cx(e,t,n,r,o){return(i,s)=>{let a=n,l=t,u=0;i.subscribe($e(s,c=>{const d=u++;l=a?e(l,c,d):(a=!0,c),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(e,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),Sl(null),function fx(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Vn((o,i)=>e(o,i,r)):ar,Yf(1),n?Sl(t):H0(()=>new Ml))}(),ze(i=>{if(null===i)return Ho(r);const s=bw(i);return function WF(e){e.sort((t,n)=>t.value.outlet===q?-1:n.value.outlet===q?1:t.value.outlet.localeCompare(n.value.outlet))}(s),k(s)}))}processSegment(t,n,r,o,i,s){return xe(n).pipe(Io(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(he(l=>{if(l instanceof Vl)return k(null);throw l}))),Nr(a=>!!a),he(a=>{if(Cw(a))return function UF(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?k([]):Ho(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function BF(e,t,n,r){return!!(Yt(e)===r||r!==q&&Hl(t,n,e))&&("**"===e.path||hh(t,e,n).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):Ho(o):Ho(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?ww(i):this.applyRedirects.lineralizeSegments(r,i).pipe(ze(s=>{const a=new le(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=hh(n,o,i);if(!a)return Ho(n);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?ww(d):this.applyRedirects.lineralizeSegments(o,d).pipe(ze(f=>this.processSegment(t,r,n,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?j0(o).parameters:{};a=k({snapshot:new xl(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Mw(r),Yt(r),r.component??r._loadedComponent??null,r,Sw(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=LF(n,r,o,t).pipe(te(({matched:l,consumedSegments:u,remainingSegments:c,parameters:d})=>l?{snapshot:new xl(u,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Mw(r),Yt(r),r.component??r._loadedComponent??null,r,Sw(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(gn(l=>null===l?Ho(n):this.getChildConfig(t=r._injector??t,r,o).pipe(gn(({routes:u})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:p,slicedSegments:m}=Ew(n,f,h,u);if(0===m.length&&p.hasChildren())return this.processChildren(c,u,p).pipe(te(b=>null===b?null:[new Hn(d,b)]));if(0===u.length&&0===m.length)return k([new Hn(d,[])]);const C=Yt(r)===i;return this.processSegment(c,u,p,m,C?q:i,!0).pipe(te(b=>[new Hn(d,b)]))}))))}getChildConfig(t,n,r){return n.children?k({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?k({routes:n._loadedRoutes,injector:n._loadedInjector}):function OF(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?k(!0):k(o.map(s=>{const a=Lo(s,e);return or(function vF(e){return e&&ys(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(Vo(),_w())}(t,n,r).pipe(ze(o=>o?this.configLoader.loadChildren(t,n).pipe(J(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function FF(e){return rs(pw(!1,3))}())):k({routes:[],injector:t})}}function qF(e){const t=e.value.routeConfig;return t&&""===t.path}function bw(e){const t=[],n=new Set;for(const r of e){if(!qF(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=bw(r.children);t.push(new Hn(r.value,o))}return t.filter(r=>!n.has(r))}function Mw(e){return e.data||{}}function Sw(e){return e.resolve||{}}function Iw(e){return"string"==typeof e.title||null===e.title}function ph(e){return gn(t=>{const n=e(t);return n?xe(n).pipe(te(()=>t)):k(t)})}const $o=new R("ROUTES");let gh=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=I(NC)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return k(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=or(n.loadComponent()).pipe(te(Tw),J(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Xf(()=>{this.componentLoaders.delete(n)})),o=new V0(r,()=>new _n).pipe(Zf());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return k({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(te(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(a)?u=a:(l=a.create(n).injector,u=l.get($o,[],V.Self|V.Optional).flat()),{routes:u.map(dh),injector:l}}),Xf(()=>{this.childrenLoaders.delete(r)})),s=new V0(i,()=>new _n).pipe(Zf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return or(n()).pipe(te(Tw),ze(r=>r instanceof Hv||Array.isArray(r)?k(r):xe(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Tw(e){return function ek(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let $l=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new _n,this.configLoader=I(gh),this.environmentInjector=I(sn),this.urlSerializer=I(ss),this.rootContexts=I(fs),this.inputBindingEnabled=null!==I(Fl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>k(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Zx(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new qx(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new Zt({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:cs,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Vn(r=>0!==r.id),te(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),gn(r=>{let o=!1,i=!1;return k(r).pipe(J(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),gn(s=>{const a=n.browserUrlTree.toString(),l=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new ds(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Qt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Aw(s.source)&&(n.browserUrlTree=s.extractedUrl),k(s).pipe(gn(c=>{const d=this.transitions?.getValue();return this.events.next(new nh(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Qt:Promise.resolve(c)}),function ZF(e,t,n,r,o,i){return ze(s=>function zF(e,t,n,r,o,i,s="emptyOnly"){return new GF(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(te(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),J(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new Bx(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,m=new nh(c,this.urlSerializer.serialize(d),f,h);this.events.next(m);const C=lw(0,this.rootComponentType).snapshot;return k(r={...s,targetSnapshot:C,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new ds(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Qt}}),J(s=>{const a=new Ux(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),te(s=>r={...s,guards:hF(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function bF(e,t){return ze(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?k({...n,guardsResult:!0}):function MF(e,t,n,r){return xe(e).pipe(ze(o=>function RF(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?k(i.map(a=>{const l=ps(t)??o,u=Lo(a,l);return or(function DF(e){return e&&ys(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(Nr())})).pipe(Vo()):k(!0)}(o.component,o.route,n,t,r)),Nr(o=>!0!==o,!0))}(s,r,o,e).pipe(ze(a=>a&&function yF(e){return"boolean"==typeof e}(a)?function SF(e,t,n,r){return xe(t).pipe(Io(o=>qf(function TF(e,t){return null!==e&&t&&t(new Yx(e)),k(!0)}(o.route.parent,r),function IF(e,t){return null!==e&&t&&t(new Qx(e)),k(!0)}(o.route,r),function NF(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function pF(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>L0(()=>k(s.guards.map(l=>{const u=ps(s.node)??n,c=Lo(l,u);return or(function _F(e){return e&&ys(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(Nr())})).pipe(Vo())));return k(i).pipe(Vo())}(e,o.path,n),function AF(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return k(!0);const o=r.map(i=>L0(()=>{const s=ps(t)??n,a=Lo(i,s);return or(function CF(e){return e&&ys(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(Nr())}));return k(o).pipe(Vo())}(e,o.route,n))),Nr(o=>!0!==o,!0))}(r,i,e,t):k(a)),te(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),J(s=>{if(r.guardsResult=s.guardsResult,Or(s.guardsResult))throw hw(0,s.guardsResult);const a=new zx(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Vn(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),ph(s=>{if(s.guards.canActivateChecks.length)return k(s).pipe(J(a=>{const l=new Gx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),gn(a=>{let l=!1;return k(a).pipe(function YF(e,t){return ze(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return k(n);let i=0;return xe(o).pipe(Io(s=>function XF(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!Iw(o)&&(i[os]=o.title),function QF(e,t,n,r){const o=function KF(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return k({});const i={};return xe(o).pipe(ze(s=>function JF(e,t,n,r){const o=ps(t)??r,i=Lo(e,o);return or(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(Nr(),J(a=>{i[s]=a}))),Yf(1),function hx(e){return te(()=>e)}(i),he(s=>Cw(s)?Qt:rs(s)))}(i,e,t,r).pipe(te(s=>(e._resolvedData=s,e.data=uw(e,n).resolve,o&&Iw(o)&&(e.data[os]=o.title),null)))}(s.route,r,e,t)),J(()=>i++),Yf(1),ze(s=>i===o.length?k(n):Qt))})}(n.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),J(a=>{const l=new Wx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),ph(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(J(c=>{l.component=c}),te(()=>{})));for(const c of l.children)u.push(...a(c));return u};return Wf(a(s.targetSnapshot.root)).pipe(Sl(),Po(1))}),ph(()=>this.afterPreactivation()),te(s=>{const a=function rF(e,t,n){const r=hs(e,t._root,n?n._root:void 0);return new aw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),J(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n,r)=>te(o=>(new fF(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Po(1),J({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new Pr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Xf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),he(s=>{if(i=!0,mw(s)){gw(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new Pl(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),gw(s)){const l=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||Aw(r.source)};n.scheduleNavigation(l,cs,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new rh(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(l){r.reject(l)}}return Qt}))}))}cancelNavigationTransition(n,r,o){const i=new Pl(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Aw(e){return e!==cs}let Nw=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===q);return r}getResolvedTitleForRoute(n){return n.data[os]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return I(tk)},providedIn:"root"}),e})(),tk=(()=>{class e extends Nw{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(N(rD))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),nk=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return I(ok)},providedIn:"root"}),e})();class rk{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let ok=(()=>{class e extends rk{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=qe(e)))(r||e)}}(),e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const jl=new R("",{providedIn:"root",factory:()=>({})});let ik=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return I(sk)},providedIn:"root"}),e})(),sk=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var St=(()=>((St=St||{})[St.COMPLETE=0]="COMPLETE",St[St.FAILED=1]="FAILED",St[St.REDIRECTING=2]="REDIRECTING",St))();function Rw(e,t){e.events.pipe(Vn(n=>n instanceof Pr||n instanceof Pl||n instanceof rh||n instanceof ds),te(n=>n instanceof Pr||n instanceof ds?St.COMPLETE:n instanceof Pl&&(0===n.code||1===n.code)?St.REDIRECTING:St.FAILED),Vn(n=>n!==St.REDIRECTING),Po(1)).subscribe(()=>{t()})}function ak(e){throw e}function lk(e,t,n){return t.parse("/")}const uk={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ck={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Be=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=I(AC),this.isNgZoneEnabled=!1,this.options=I(jl,{optional:!0})||{},this.pendingTasks=I(f_),this.errorHandler=this.options.errorHandler||ak,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||lk,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=I(ik),this.routeReuseStrategy=I(nk),this.titleStrategy=I(Nw),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=I($o,{optional:!0})?.flat()??[],this.navigationTransitions=I($l),this.urlSerializer=I(ss),this.location=I(Wd),this.componentInputBindingEnabled=!!I(Fl,{optional:!0}),this.isNgZoneEnabled=I(ve)instanceof ve&&ve.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Fo,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),cs,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(dh),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}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s;let d,c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}null!==c&&(c=this.removeEmptyProps(c));try{d=K0(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return J0(d,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Or(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,cs,null,r)}navigate(n,r={skipLocationChange:!1}){return function dk(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,l=f});const c=this.pendingTasks.add();return Rw(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),jo=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new _n;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Pr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(n){this._preserveFragment=bo(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=bo(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=bo(n)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const n=null===this.href?null:function Jg(e,t,n){return function OM(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Kg:ic}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(n){return new(n||e)(_(Be),_($n),function qs(e){return function tb(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new be,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Pr&&this.update()})}ngAfterContentInit(){k(this.links.changes,k(null)).pipe(Fr()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=xe(n).pipe(Fr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){const r=function fk(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}}return e.\u0275fac=function(n){return new(n||e)(_(Be),_(Et),_(An),_(Wa),_(jo,8))},e.\u0275dir=j({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&function uC(e,t,n,r){const o=K();if(o.firstCreatePass){const i=We();dC(o,new aC(t,n,r),i.index),function P2(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}cC(o,D(),n)}(o,jo,5),2&n){let i;ja(i=Ba())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ot]}),e})();class Pw{}let hk=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Vn(n=>n instanceof Pr),Io(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=ld(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return xe(o).pipe(Fr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):k(null);const i=o.pipe(ze(s=>null===s?k(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?xe([i,this.loader.loadComponent(r)]).pipe(Fr()):i})}}return e.\u0275fac=function(n){return new(n||e)(N(Be),N(NC),N(sn),N(Pw),N(gh))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const mh=new R("");let xw=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof nh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Pr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof ds&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof iw&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new iw(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function Pm(){throw new Error("invalid")}()},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function jn(e,t){return{\u0275kind:e,\u0275providers:t}}function kw(){const e=I(an);return t=>{const n=e.get(Eo);if(t!==n.components[0])return;const r=e.get(Be),o=e.get(Lw);1===e.get(yh)&&r.initialNavigation(),e.get(Vw,null,V.Optional)?.setUpPreloading(),e.get(mh,null,V.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const Lw=new R("",{factory:()=>new _n}),yh=new R("",{providedIn:"root",factory:()=>1}),Vw=new R("");function yk(e){return jn(0,[{provide:Vw,useExisting:hk},{provide:Pw,useExisting:e}])}const Hw=new R("ROUTER_FORROOT_GUARD"),Ck=[Wd,{provide:ss,useClass:Qf},Be,fs,{provide:$n,useFactory:function Fw(e){return e.routerState.root},deps:[Be]},gh,[]];function _k(){return new jC("Router",Be)}let $w=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[Ck,[],{provide:$o,multi:!0,useValue:n},{provide:Hw,useFactory:bk,deps:[[Be,new Xs,new Qs]]},{provide:jl,useValue:r||{}},r?.useHash?{provide:Qn,useClass:y_}:{provide:Qn,useClass:m_},{provide:mh,useFactory:()=>{const e=I(h3),t=I(ve),n=I(jl),r=I($l),o=I(ss);return n.scrollOffset&&e.setOffset(n.scrollOffset),new xw(o,r,e,t,n)}},r?.preloadingStrategy?yk(r.preloadingStrategy).\u0275providers:[],{provide:jC,multi:!0,useFactory:_k},r?.initialNavigation?Mk(r):[],r?.bindToComponentInputs?jn(8,[fw,{provide:Fl,useExisting:fw}]).\u0275providers:[],[{provide:jw,useFactory:kw},{provide:Fd,multi:!0,useExisting:jw}]]}}static forChild(n){return{ngModule:e,providers:[{provide:$o,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(N(Hw,8))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})();function bk(e){return"guarded"}function Mk(e){return["disabled"===e.initialNavigation?jn(3,[{provide:Sd,multi:!0,useFactory:()=>{const t=I(Be);return()=>{t.setUpLocationChangeListener()}}},{provide:yh,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?jn(2,[{provide:yh,useValue:0},{provide:Sd,multi:!0,deps:[an],useFactory:t=>{const n=t.get(XN,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(Be),i=t.get(Lw);Rw(o,()=>{r(!0)}),t.get($l).afterPreactivation=()=>(r(!0),i.closed?k(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const jw=new R("");class tt{constructor(t,n,r){this.http=t,this.router=n,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none",this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),r)}log(t){this.appMessageService.add(`LoginService: ${t}`)}isAuthenticated(){return this.authenticated}getAuthorizationToken(){return`Basic ${window.btoa(this.credentials.username+":"+this.credentials.password)}`}getUsername(){return this.credentials.username}getAuthority(){return this.authority}authenticate(t){this.log(`Authenticating: ${t.username}`),this.credentials=t;const n=new Ye({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(tt.REST_URL,{headers:n}).pipe(J(r=>this.authorizationRecieved(r)),he(this.handleError("authenticate")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(t){if(this.authenticated=!0,console.log(t),t.authorities){let n=t.authorities[0].authority;n=n.substring(n.indexOf("_")+1),this.authority=n}this.log(`Authenticated '${t.name}' as '${this.authority}'`),console.log(`Authenticated as ${JSON.stringify(t)}`)}changePassword(t){this.log("Changing password.");const n=zf(10),r=F0(t,n);let o={};return o.username=this.credentials.username,o.password=r,this.http.post(tt.REST_URL,o,this.httpOptions).pipe(J(i=>this.authorizationRecieved(i)),he(this.handleError("changePassword")))}}tt.REST_URL=Ar_restServerUrl+"/api/user",tt.\u0275fac=function(t){return new(t||tt)(N(Tr),N(Be),N(No))},tt.\u0275prov=O({token:tt,factory:tt.\u0275fac,providedIn:"root"});const Ik=["scrollMe"];function Tk(e,t){if(1&e&&(y(0,"li")(1,"div",8)(2,"span",9),w(3),v(),y(4,"span",10),w(5),wr(6,"date"),v(),y(7,"span",11),w(8),v()(),y(9,"span",12),w(10),v()()),2&e){const n=t.$implicit;M(3),me(n.id),M(2),me(Er(6,4,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),M(3),me(n.author),M(2),me(n.text)}}function Ak(e,t){if(1&e&&(y(0,"ul",5,6),On(2,Tk,11,7,"li",7),v()),2&e){const n=Pi();M(2),x("ngForOf",n.messages)}}let vh=(()=>{class e{constructor(n,r){this.chatService=n,this.loginService=r,this.disableScrollDown=!1,this.messages=[],this.newMessage="",this.message=""}getChatMessages(){this.message="Loading chat ...",this.chatService.getChatMessages().subscribe({next:n=>{this.messages=n,this.scrollToBottom(),this.message="Loaded chat."},error:n=>this.message=`Error loading chat: ${n}`})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.message="Sending message ...",this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe({next:n=>{this.messages.push(n),this.message="Send OK.",this.disableScrollDown=!1,this.scrollToBottom()},error:n=>this.message=`Error loading chat: ${n}`}),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(_(mn),_(tt))},e.\u0275cmp=Rt({type:e,selectors:[["app-chat"]],viewQuery:function(n,r){if(1&n&&_d(Ik,5),2&n){let o;ja(o=Ba())&&(r.myScrollContainer=o.first)}},decls:9,vars:4,consts:[[3,"hidden"],["class","chat",4,"ngIf"],[1,"input"],["id","message-text","placeholder","hello",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"chat"],["scrollMe",""],[4,"ngFor","ngForOf"],[1,"message-title"],[1,"badge"],[1,"date"],[1,"author"],[1,"text"]],template:function(n,r){1&n&&(y(0,"span",0),w(1),v(),On(2,Ak,3,1,"ul",1),y(3,"div",2)(4,"input",3),P("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),v(),y(5,"button",4),P("click",function(){return r.sendMessage()}),w(6,"Send"),v(),y(7,"button",4),P("click",function(){return r.getChatMessages()}),w(8,"Reload"),v()()),2&n&&(x("hidden",""===r.message),M(1),me(r.message),M(1),x("ngIf",r.messages.length),M(2),x("ngModel",r.newMessage))},dependencies:[Mr,O_,qt,Ln,pn,Wi],styles:[".chat[_ngcontent-%COMP%]{margin:0;list-style-type:none;padding:.1em;max-height:20em;overflow:auto}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin:.1em;padding:0;border-radius:4px;border:solid 1px darkblue}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e688}.message-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.message-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061}.author[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#a0b0b1;border-radius:0 0 2px}.chat[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;padding-right:.2em}"]}),e})();const Bw=function(){return{exact:!0}};let Nk=(()=>{class e{constructor(n){this.loginService=n,this.title="Familie TDS",this.chatLoaded=!1,this.chatHidden=!0,this.linksHidden=!0,this.profileHidden=!0,this.pos1=0,this.pos2=0,this.pos3=0,this.pos4=0,this.target=null}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}logout(){localStorage.setItem("username",""),localStorage.setItem("password",""),this.loginService.logout()}toggleLinks(){this.linksHidden=!this.linksHidden,this.profileHidden=!0}isLinksHidden(){return this.linksHidden}toggleProfile(){this.profileHidden=!this.profileHidden,this.linksHidden=!0}isProfileHidden(){return this.profileHidden}toggleChatHidden(){this.chatHidden=!this.chatHidden,!this.chatHidden&&!this.chatLoaded&&(this.chatComponent.getChatMessages(),this.chatLoaded=!0)}isChatHidden(){return this.chatHidden}startMouseDragging(n){0===n.button&&(n.preventDefault(),this.pos3=n.clientX,this.pos4=n.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.clientX,this.pos2=this.pos4-n.clientY,this.pos3=n.clientX,this.pos4=n.clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),this.target.style.left=o+"px"}endMouseDrag(){document.onmouseup=null,document.onmousemove=null,this.target=null}startTouchDragging(n){n.preventDefault(),this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.targetTouches[0].clientX,this.pos2=this.pos4-n.targetTouches[0].clientY,this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),this.target.style.left=o+"px"}endTouchDrag(){document.ontouchend=null,document.ontouchmove=null,this.target=null}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}setTheme(n){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(n),localStorage.setItem("theme",n)}detectTheme(){const n=localStorage.getItem("theme");"theme-dark"!==n&&"theme-light"!==n?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(n)}ngOnInit(){this.detectTheme()}}return e.\u0275fac=function(n){return new(n||e)(_(tt))},e.\u0275cmp=Rt({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&_d(vh,5),2&n){let o;ja(o=Ba())&&(r.chatComponent=o.first)}},decls:45,vars:12,consts:[[3,"hidden"],["id","toggle-links",1,"big",3,"click"],["id","toggle-profile",1,"big","float-right",3,"click"],["id","links",3,"hidden"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/todo"],["id","profile",1,"float-right",3,"hidden"],[3,"click"],["title","Dark theme on/off",3,"click"],["routerLinkActive","active-link","routerLink","/profile"],["id","logout",3,"click"],[1,"float-right"],["routerLinkActive","active-link","routerLink","/login"],["id","tools",3,"hidden"],["id","toolbar"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],[1,"close-button",3,"click"],["id","chatcontent"]],template:function(n,r){1&n&&(y(0,"nav")(1,"span",0)(2,"a",1),P("click",function(){return r.toggleLinks()}),w(3,"\u2261"),v(),y(4,"a",2),P("click",function(){return r.toggleProfile()}),w(5),v(),y(6,"div")(7,"div",3)(8,"a",4),w(9,"Home"),v(),y(10,"a",5),w(11,"Checklists"),v(),y(12,"a",6),w(13,"Contacts"),v(),y(14,"a",7),w(15,"Todo"),v()(),y(16,"div",8)(17,"button",9),P("click",function(){return r.toggleChatHidden()}),w(18,"Toggle Chat"),v(),y(19,"button",10),P("click",function(){return r.toggleTheme()}),w(20,"\u2600 Theme"),v(),y(21,"a",11),w(22,"Profile"),v(),y(23,"a",12),P("click",function(){return r.logout()}),w(24,"Logout"),v()()()(),y(25,"span",0)(26,"h1",13),w(27),v(),y(28,"a",4),w(29,"Home"),v(),y(30,"a",14),w(31,"Login"),v()()(),y(32,"div",15)(33,"div",16)(34,"button",9),P("click",function(){return r.toggleChatHidden()}),w(35,"Toggle Chat"),v()(),y(36,"div",17)(37,"div",18),P("mousedown",function(i){return r.startMouseDragging(i)})("touchstart",function(i){return r.startTouchDragging(i)}),w(38," Chat"),y(39,"button",19),P("click",function(){return r.toggleChatHidden()}),w(40,"\u2716"),v()(),y(41,"div",20),ie(42,"app-chat"),v()()(),y(43,"main"),ie(44,"router-outlet"),v()),2&n&&(M(1),x("hidden",!r.isAuthenticated()),M(4),me(r.username()),M(2),x("hidden",r.isLinksHidden()),M(1),x("routerLinkActiveOptions",cd(10,Bw)),M(8),x("hidden",r.isProfileHidden()),M(9),x("hidden",r.isAuthenticated()),M(2),me(r.title),M(1),x("routerLinkActiveOptions",cd(11,Bw)),M(4),x("hidden",!r.isAuthenticated()),M(4),x("hidden",r.isChatHidden()))},dependencies:[uh,jo,Ow,vh],styles:["#toggle-links[_ngcontent-%COMP%]{padding:.2em .5em}#toggle-profile[_ngcontent-%COMP%]{color:unset}.big[_ngcontent-%COMP%]{font-size:x-large}.float-right[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%]{display:block;background:#93c6f948 linear-gradient(80deg,rgb(132,168,205) 05%,rgb(145,185,224) 30%,rgba(0,0,0,0) 100%);border-bottom:1px solid #336699;padding:.4em}nav[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:.2rem;padding:.2rem .3rem;text-decoration:none;text-shadow:2px 2px 2px #40404080;display:inline-block;border-radius:2px}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;background-color:#42545c;-webkit-text-decoration:underline #93c6f9;text-decoration:underline #93c6f9}.active-link[_ngcontent-%COMP%]{background-color:#00000048}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#toolbar[_ngcontent-%COMP%]{margin-top:-.4em;margin-bottom:-.4em;margin-left:.2em}#toolbar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{border:1px solid #40404080}#chatwindow[_ngcontent-%COMP%]{border:1px solid black;z-index:9990;background:#f0f0f080;border-radius:2px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:3px 3px 3px #0006;position:fixed;top:5em;left:5em}#chattitlebar[_ngcontent-%COMP%]{border-bottom:1px solid black;padding:2px;background:#d0d0d080;cursor:grab}#chatcontent[_ngcontent-%COMP%]{padding:2px}.close-button[_ngcontent-%COMP%]{padding:0 4px;margin:0;float:right}"]}),e})();class Xt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),k(n))}log(t){this.appMessageService.add(`TodoService: ${t}`)}getTodos(){return this.http.get(Xt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} todos`)),he(this.handleError("getTodos",[])))}addTodo(t){return this.http.post(Xt.REST_URL,{text:t},this.httpOptions).pipe(J(r=>this.log(`added todo w/ id=${r.id}`)),he(this.handleError("addTodo")))}deleteTodo(t){return this.http.delete(`${Xt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted todo id=${t}`)),he(this.handleError("deleteTodo")))}}function Rk(e,t){if(1&e){const n=Yc();y(0,"li")(1,"div",7)(2,"span",8),w(3),v(),y(4,"span",9),w(5),wr(6,"date"),v(),y(7,"button",10),P("click",function(){const i=ti(n).$implicit;return ni(Pi().delete(i))}),w(8,"x"),v()(),y(9,"span",11),w(10),v()()}if(2&e){const n=t.$implicit;M(3),me(n.id),M(2),me(Er(6,3,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),M(5),me(n.text)}}Xt.REST_URL=Ar_restServerUrl+"/api/todos",Xt.\u0275fac=function(t){return new(t||Xt)(N(Tr),N(No))},Xt.\u0275prov=O({token:Xt,factory:Xt.\u0275fac,providedIn:"root"});let Ok=(()=>{class e{constructor(n){this.todoService=n,this.todos=[],this.newTodo="",this.message=""}getTodos(){this.message="Loading todos ...",this.todoService.getTodos().subscribe({next:n=>{this.todos=n,this.message=0==n.length?"Nothing to do!":""},error:n=>this.message=`Error while loggin in: ${n}`})}ngOnInit(){this.getTodos()}sendTodo(){this.message="Adding todo ...",this.todoService.addTodo(this.newTodo).subscribe({next:n=>{this.todos.push(n),this.newTodo="",this.message="Added todo."},error:n=>this.message=`Error while adding todo: ${n}`})}delete(n){this.message="Removing todo ...",this.todoService.deleteTodo(n.id).subscribe({next:()=>{this.todos=this.todos.filter(r=>r!==n),this.message="Removed todo."},error:r=>this.message=`Error while removing todo: ${r}`})}}return e.\u0275fac=function(n){return new(n||e)(_(Xt))},e.\u0275cmp=Rt({type:e,selectors:[["app-todo"]],decls:15,vars:4,consts:[[3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-text"],["id","input-text","placeholder","text",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"element-title"],[1,"badge"],[1,"date"],["type","button","title","Delete todo",1,"delete",3,"click"],[1,"text"]],template:function(n,r){1&n&&(y(0,"h2"),w(1,"Todos"),v(),y(2,"p",0),w(3),v(),y(4,"ol",1),On(5,Rk,11,6,"li",2),v(),y(6,"h2"),w(7,"New Todo:"),v(),y(8,"div",3)(9,"div")(10,"label",4),w(11,"Text:"),v(),y(12,"input",5),P("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),v(),y(13,"button",6),P("click",function(){return r.sendTodo()}),w(14,"Send"),v()()()),2&n&&(M(2),x("hidden",""===r.message),M(1),me(r.message),M(2),x("ngForOf",r.todos),M(7),x("ngModel",r.newTodo))},dependencies:[Mr,qt,Ln,pn,Wi],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]}),e})();class Cn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),k(n))}log(t){this.appMessageService.add(`NewsService: ${t}`)}getNewsPosts(){return this.http.get(Cn.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} news posts`)),he(this.handleError("getNews",[])))}addNewsPost(t,n){return this.http.post(Cn.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),he(this.handleError("addNewsPost")))}}function Pk(e,t){if(1&e&&(y(0,"p"),w(1),v()),2&e){const n=t.$implicit;M(1),me(n.text)}}Cn.REST_URL=Ar_restServerUrl+"/api/news",Cn.\u0275fac=function(t){return new(t||Cn)(N(Tr),N(No))},Cn.\u0275prov=O({token:Cn,factory:Cn.\u0275fac,providedIn:"root"});let xk=(()=>{class e{constructor(n,r){this.loginService=n,this.newsService=r,this.messages=[],this.message=""}getNews(){this.loginService.isAuthenticated()&&(this.message="Loading news messages ...",this.newsService.getNewsPosts().subscribe({next:n=>{this.messages=n,this.message=""},error:n=>this.message=`Error while loading news: ${n}`}))}ngOnInit(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}}return e.\u0275fac=function(n){return new(n||e)(_(tt),_(Cn))},e.\u0275cmp=Rt({type:e,selectors:[["app-home"]],decls:11,vars:6,consts:[[3,"hidden"],[1,"context"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(y(0,"span",0)(1,"p"),w(2),v(),y(3,"h3"),w(4,"News"),v(),y(5,"p",0),w(6),v(),y(7,"div",1),On(8,Pk,2,1,"p",2),v()(),y(9,"p",0),w(10,"Welcome to our family site! Please login."),v()),2&n&&(x("hidden",!r.isAuthenticated()),M(2),Ze("Welcome, ",r.username(),"!"),M(3),x("hidden",""===r.message),M(1),me(r.message),M(2),x("ngForOf",r.messages),M(1),x("hidden",r.isAuthenticated()))},dependencies:[Mr],styles:[".context[_ngcontent-%COMP%]{padding-left:1em;border:1px solid darkgrey}"]}),e})(),Fk=(()=>{class e{constructor(n,r){this.loginService=n,this.router=r,this.error=!1,this.rememberme=!1,this.credentials={username:"",password:""},this.message="",this.checkPreviousLogin()}checkPreviousLogin(){this.credentials.username=localStorage.getItem("username"),this.credentials.password=localStorage.getItem("password"),this.credentials.username&&this.credentials.password&&this.login()}login(){return this.message="Loggin in ...",this.loginService.authenticate(this.credentials).subscribe({next:()=>{this.rememberme&&(localStorage.setItem("username",this.credentials.username),localStorage.setItem("password",this.credentials.password)),this.router.navigateByUrl("/").then(n=>{})},error:n=>{console.log("Login failed",n),this.message=`Error while loggin in: ${n}`,this.error=!0}}),!1}}return e.\u0275fac=function(n){return new(n||e)(_(tt),_(Be))},e.\u0275cmp=Rt({type:e,selectors:[["app-login"]],decls:21,vars:6,consts:[[3,"hidden"],[1,"alert",3,"hidden"],["role","form",3,"submit"],[1,"form-group"],["for","username"],["type","text","id","username","name","username","placeholder","username",1,"form-control",3,"ngModel","ngModelChange"],["for","password"],["type","password","id","password","name","password","placeholder","password",1,"form-control",3,"ngModel","ngModelChange"],["for","rememberme"],["type","checkbox","id","rememberme","name","rememberme",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary"]],template:function(n,r){1&n&&(y(0,"h2"),w(1,"Login form"),v(),y(2,"p",0),w(3),v(),y(4,"p",1),w(5," There was a problem logging in. Please try again.\n"),v(),y(6,"form",2),P("submit",function(){return r.login()}),y(7,"div",3)(8,"label",4),w(9,"Username:"),v(),y(10,"input",5),P("ngModelChange",function(i){return r.credentials.username=i}),v()(),y(11,"div",3)(12,"label",6),w(13,"Password:"),v(),y(14,"input",7),P("ngModelChange",function(i){return r.credentials.password=i}),v()(),y(15,"div",3)(16,"label",8),w(17,"Remember me:"),v(),y(18,"input",9),P("ngModelChange",function(i){return r.rememberme=i}),v()(),y(19,"button",10),w(20,"Login"),v()()),2&n&&(M(2),x("hidden",""===r.message),M(1),me(r.message),M(1),x("hidden",!r.error),M(6),x("ngModel",r.credentials.username),M(4),x("ngModel",r.credentials.password),M(4),x("ngModel",r.rememberme))},dependencies:[ZD,qt,ul,Ln,xD,pn,_l],styles:[".form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:8em;padding-right:.2em}.form-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0 0 .2em}.alert[_ngcontent-%COMP%]{color:red}button[_ngcontent-%COMP%]{border:revert}"]}),e})();const xr=(e,t)=>{const n=I(tt),r=I(Be);return!!n.isAuthenticated()||r.parseUrl("/login")};class mt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),k(n))}log(t){this.appMessageService.add(`ContactService: ${t}`)}getContacts(){return this.http.get(mt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} contacts`)),he(this.handleError("getContacts",[])))}getContact(t){return this.http.get(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched Contact ${n.id}`)),he(this.handleError("getContact",{})))}addContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added contact w/ id=${n.id}`)),he(this.handleError("addContact")))}saveContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`saved contact w/ id=${n.id}`)),he(this.handleError("addContact")))}deleteContact(t){return this.http.delete(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted contact id=${t}`)),he(this.handleError("deleteContact")))}}mt.REST_URL=Ar_restServerUrl+"/api/contacts",mt.\u0275fac=function(t){return new(t||mt)(N(Tr),N(No))},mt.\u0275prov=O({token:mt,factory:mt.\u0275fac,providedIn:"root"});const kk=function(e){return["/contact",e]};function Lk(e,t){if(1&e&&(y(0,"li")(1,"div",19)(2,"span")(3,"a",20),w(4),v()()(),y(5,"span",21),w(6),ie(7,"br"),w(8),ie(9,"br"),w(10),ie(11,"br"),w(12,"Website: "),y(13,"a",22),w(14),v(),ie(15,"br"),w(16),v()()),2&e){const n=t.$implicit;M(3),x("routerLink",Ha(9,kk,n.id)),M(1),xa("",n.firstName," ",n.lastName,""),M(2),Ze(" Telephone: ",n.telephone," "),M(2),Ze("E-mail: ",n.email," "),M(2),Ze("Address: ",n.address," "),M(3),Na("href","https://",n.website,"",ic),M(1),me(n.website),M(2),Ze("Description: ",n.description,"")}}let Vk=(()=>{class e{constructor(n){this.contactsService=n,this.contacts=[],this.newContact={},this.message=""}getContacts(){this.message="Loading contacts ...",this.contactsService.getContacts().subscribe({next:n=>{this.contacts=n,this.message=n.length?"":"No contacts in database."},error:n=>this.message=`Error while loading contacts: ${n}`})}ngOnInit(){this.getContacts()}sendContact(){this.message="Adding contact ...",this.contactsService.addContact(this.newContact).subscribe({next:n=>{this.contacts.push(n),this.message="Added contact."},error:n=>this.message=`Error while adding contact: ${n}`}),this.newContact={}}}return e.\u0275fac=function(n){return new(n||e)(_(mt))},e.\u0275cmp=Rt({type:e,selectors:[["app-contacts"]],decls:40,vars:10,consts:[[3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"],[1,"element-title"],[3,"routerLink"],[1,"text"],["target","_blank",3,"href"]],template:function(n,r){1&n&&(y(0,"h2"),w(1,"Contacts:"),v(),y(2,"p",0),w(3),v(),y(4,"ol",1),On(5,Lk,17,11,"li",2),v(),y(6,"h2"),w(7,"New Contact:"),v(),y(8,"div",3)(9,"div")(10,"label",4),w(11,"Firstname:"),v(),y(12,"input",5),P("ngModelChange",function(i){return r.newContact.firstName=i}),v(),ie(13,"br"),y(14,"label",6),w(15,"Lastname:"),v(),y(16,"input",7),P("ngModelChange",function(i){return r.newContact.lastName=i}),v(),ie(17,"br"),y(18,"label",8),w(19,"Telephone:"),v(),y(20,"input",9),P("ngModelChange",function(i){return r.newContact.telephone=i}),v(),ie(21,"br"),y(22,"label",10),w(23,"Email:"),v(),y(24,"input",11),P("ngModelChange",function(i){return r.newContact.email=i}),v(),ie(25,"br"),y(26,"label",12),w(27,"Website:"),v(),y(28,"input",13),P("ngModelChange",function(i){return r.newContact.website=i}),v(),ie(29,"br"),y(30,"label",14),w(31,"Address:"),v(),y(32,"input",15),P("ngModelChange",function(i){return r.newContact.address=i}),v(),ie(33,"br"),y(34,"label",16),w(35,"Description:"),v(),y(36,"input",17),P("ngModelChange",function(i){return r.newContact.description=i}),v(),ie(37,"br"),y(38,"button",18),P("click",function(){return r.sendContact()}),w(39,"Send"),v()()()),2&n&&(M(2),x("hidden",""===r.message),M(1),me(r.message),M(2),x("ngForOf",r.contacts),M(7),x("ngModel",r.newContact.firstName),M(4),x("ngModel",r.newContact.lastName),M(4),x("ngModel",r.newContact.telephone),M(4),x("ngModel",r.newContact.email),M(4),x("ngModel",r.newContact.website),M(4),x("ngModel",r.newContact.address),M(4),x("ngModel",r.newContact.description))},dependencies:[Mr,qt,Ln,pn,jo],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}"]}),e})();class yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),k(n))}log(t){this.appMessageService.add(`ChecklistService: ${t}`)}getChecklists(){return this.http.get(yt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} checklists`)),he(this.handleError("getChecklists",[])))}getChecklist(t){return this.http.get(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched checklist ${n.id}`)),he(this.handleError("getChecklist",{})))}addChecklist(t){return this.http.post(yt.REST_URL,{name:t},this.httpOptions).pipe(J(r=>this.log(`added checklist w/ id=${r.id}`)),he(this.handleError("addChecklist")))}saveChecklist(t){return this.http.post(yt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`saved checklist w/ id=${n.id}`)),he(this.handleError("addChecklist")))}deleteChecklist(t){return this.http.delete(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted checklist id=${t}`)),he(this.handleError("deleteChecklist")))}}yt.REST_URL=Ar_restServerUrl+"/api/checklists",yt.\u0275fac=function(t){return new(t||yt)(N(Tr),N(No))},yt.\u0275prov=O({token:yt,factory:yt.\u0275fac,providedIn:"root"});const Hk=function(e){return{strikethrough:e}};function $k(e,t){if(1&e&&(y(0,"li",11),w(1),v()),2&e){const n=t.$implicit;x("ngClass",Ha(2,Hk,!0===n.checked)),M(1),Ze(" ",n.text," ")}}const jk=function(e){return["/checklist",e]};function Bk(e,t){if(1&e&&(y(0,"li")(1,"span",7)(2,"a",8),w(3),v(),y(4,"ul",9),On(5,$k,2,4,"li",10),v()()()),2&e){const n=t.$implicit;M(2),x("routerLink",Ha(3,jk,n.id)),M(1),me(n.name),M(2),x("ngForOf",n.checks)}}let Uk=(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I($n),this.checklists=[],this.newChecklist="",this.message=""}getChecklists(){this.message="Loading checklists ...",this.checklistService.getChecklists().subscribe({next:n=>{this.checklists=n,this.message=n.length?"":"No checklist in database."},error:n=>this.message=`Error while loading checklists: ${n}`})}ngOnInit(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.message="Creating checklist ...",this.checklistService.addChecklist(this.newChecklist).subscribe({next:n=>this.router.navigate(["/checklist/",n.id]),error:n=>this.message=`Error while creating checklist: ${n}`}))}}return e.\u0275fac=function(n){return new(n||e)(_(yt),_(Be))},e.\u0275cmp=Rt({type:e,selectors:[["app-checklists"]],decls:15,vars:4,consts:[[3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"text"],[3,"routerLink"],[1,"item-list"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(n,r){1&n&&(y(0,"h2"),w(1,"Checklists"),v(),y(2,"p",0),w(3),v(),y(4,"ol",1),On(5,Bk,6,5,"li",2),v(),y(6,"h2"),w(7,"New Checklist:"),v(),y(8,"div",3)(9,"div")(10,"label",4),w(11,"name:"),v(),y(12,"input",5),P("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),v(),y(13,"button",6),P("click",function(){return r.sendChecklist()}),w(14,"Send"),v()()()),2&n&&(M(2),x("hidden",""===r.message),M(1),me(r.message),M(2),x("ngForOf",r.checklists),M(7),x("ngModel",r.newChecklist))},dependencies:[A_,Mr,qt,Ln,pn,jo],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.strikethrough[_ngcontent-%COMP%]{text-decoration:line-through}"]}),e})();function zk(e,t){if(1&e){const n=Yc();y(0,"li")(1,"input",9),P("ngModelChange",function(o){return ni(ti(n).$implicit.checked=o)})("change",function(){return ti(n),ni(Pi().saveCheckList())}),v(),y(2,"label"),w(3),v(),y(4,"button",10),P("click",function(){const i=ti(n).index;return ni(Pi().removeItem(i))}),w(5,"x"),v()()}if(2&e){const n=t.$implicit;M(1),x("ngModel",n.checked),M(2),me(n.text)}}const Gk=[{path:"",component:xk,pathMatch:"full"},{path:"login",component:Fk},{path:"profile",component:(()=>{class e{constructor(n){this.loginService=n,this.newPassword1="",this.newPassword2="",this.message=""}username(){return this.loginService.getUsername()}saveProfile(){this.newPassword1==this.newPassword2?(this.message="Updating password ...",this.loginService.changePassword(this.newPassword1).subscribe({next:()=>{this.message="Password changed",this.loginService.authenticate({username:this.loginService.getUsername(),password:this.newPassword1}).subscribe()},error:n=>this.message=`Error while updating password: ${n}`})):this.message="Passwords do not match!"}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}}return e.\u0275fac=function(n){return new(n||e)(_(tt))},e.\u0275cmp=Rt({type:e,selectors:[["app-profile"]],decls:22,vars:6,consts:[[3,"hidden"],["title","Dark theme on/off",3,"click"],[1,"input"],["for","input-newPassword1"],["type","password","id","input-newPassword1","placeholder","new password",3,"ngModel","ngModelChange"],["for","input-newPassword2"],["type","password","id","input-newPassword2","placeholder","new password",3,"ngModel","ngModelChange"],[3,"click"]],template:function(n,r){1&n&&(y(0,"h1"),w(1),v(),y(2,"p",0),w(3),v(),y(4,"button",1),P("click",function(){return r.toggleTheme()}),w(5,"\u2600 Theme"),v(),y(6,"h2"),w(7,"Change password:"),v(),y(8,"div",2)(9,"div")(10,"label",3),w(11,"New password:"),v(),y(12,"input",4),P("ngModelChange",function(i){return r.newPassword1=i}),v(),ie(13,"br"),y(14,"label",5),w(15,"Repeat new password:"),v(),y(16,"input",6),P("ngModelChange",function(i){return r.newPassword2=i}),v(),ie(17,"br"),y(18,"button",7),P("click",function(){return r.saveProfile()}),w(19,"Save"),v(),y(20,"span"),w(21),v()()()),2&n&&(M(1),Ze("Profile of: ",r.username(),""),M(1),x("hidden",""===r.message),M(1),me(r.message),M(9),x("ngModel",r.newPassword1),M(4),x("ngModel",r.newPassword2),M(5),me(r.message))},dependencies:[qt,Ln,pn]}),e})(),canActivate:[xr]},{path:"chat",component:vh,canActivate:[xr]},{path:"todo",component:Ok,canActivate:[xr]},{path:"contacts",component:Vk,canActivate:[xr]},{path:"contact/:id",component:(()=>{class e{constructor(n,r){this.contactsService=n,this.router=r,this.route=I($n),this.contactId=-1,this.contact={},this.message="",this.contactId=Number(this.route.snapshot.params.id)}getChecklist(){this.message="Loading contact ...",this.contactsService.getContact(this.contactId).subscribe({next:n=>{this.contact=n,this.message=""},error:n=>this.message=`Error while loading contact: ${n}`})}ngOnInit(){this.getChecklist()}saveContact(){this.message="Updating contact ...",this.contactsService.saveContact(this.contact).subscribe({next:n=>{this.contact=n,this.message="Updated contact."},error:n=>this.message=`Error while updating contact: ${n}`})}deleteContact(){this.message="Deleting contact ...",this.contactsService.deleteContact(this.contactId).subscribe({next:()=>this.router.navigateByUrl("/contacts"),error:n=>this.message=`Error while deleting contact: ${n}`})}}return e.\u0275fac=function(n){return new(n||e)(_(mt),_(Be))},e.\u0275cmp=Rt({type:e,selectors:[["app-edit-contact"]],decls:48,vars:20,consts:[[3,"hidden"],["type","button","title","Delete contact",1,"delete",3,"click"],[1,"input"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"]],template:function(n,r){1&n&&(y(0,"h2"),w(1),v(),y(2,"p",0),w(3),v(),y(4,"p"),w(5),y(6,"button",1),P("click",function(){return r.deleteContact()}),w(7,"Delete contact"),v(),ie(8,"br"),w(9),wr(10,"date"),ie(11,"br"),w(12),wr(13,"date"),v(),ie(14,"p"),y(15,"h3"),w(16,"Details:"),v(),y(17,"div",2)(18,"label",3),w(19,"Firstname:"),v(),y(20,"input",4),P("ngModelChange",function(i){return r.contact.firstName=i}),v(),ie(21,"br"),y(22,"label",5),w(23,"Lastname:"),v(),y(24,"input",6),P("ngModelChange",function(i){return r.contact.lastName=i}),v(),ie(25,"br"),y(26,"label",7),w(27,"Telephone:"),v(),y(28,"input",8),P("ngModelChange",function(i){return r.contact.telephone=i}),v(),ie(29,"br"),y(30,"label",9),w(31,"Email:"),v(),y(32,"input",10),P("ngModelChange",function(i){return r.contact.email=i}),v(),ie(33,"br"),y(34,"label",11),w(35,"Website:"),v(),y(36,"input",12),P("ngModelChange",function(i){return r.contact.website=i}),v(),ie(37,"br"),y(38,"label",13),w(39,"Address:"),v(),y(40,"input",14),P("ngModelChange",function(i){return r.contact.address=i}),v(),ie(41,"br"),y(42,"label",15),w(43,"Description:"),v(),y(44,"input",16),P("ngModelChange",function(i){return r.contact.description=i}),v(),ie(45,"br"),y(46,"button",17),P("click",function(){return r.saveContact()}),w(47,"Save"),v()()),2&n&&(M(1),xa("Editing contact: ",r.contact.firstName," ",r.contact.lastName,""),M(1),x("hidden",""===r.message),M(1),me(r.message),M(2),Ze("Id: ",r.contact.id," "),M(4),Ze("Created on: ",Er(10,14,r.contact.dateCreated,"dd-MM-yyyy HH:mm:ss")," "),M(3),Ze("Updated on: ",Er(13,17,r.contact.dateUpdated,"dd-MM-yyyy HH:mm:ss"),"\n"),M(8),x("ngModel",r.contact.firstName),M(4),x("ngModel",r.contact.lastName),M(4),x("ngModel",r.contact.telephone),M(4),x("ngModel",r.contact.email),M(4),x("ngModel",r.contact.website),M(4),x("ngModel",r.contact.address),M(4),x("ngModel",r.contact.description))},dependencies:[qt,Ln,pn,Wi],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),canActivate:[xr]},{path:"checklists",component:Uk,canActivate:[xr]},{path:"checklist/:id",component:(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I($n),this.checklistId=-1,this.checklist={},this.newItem="",this.message="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.message="Loading checklist ...",this.checklistService.getChecklist(this.checklistId).subscribe({next:n=>{this.checklist=n,this.message=""},error:n=>this.message=`Error while getting checklists: ${n}`})}ngOnInit(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push({text:this.newItem,checklist_id:this.checklist.id}),this.newItem="",this.saveCheckList())}removeItem(n){(this.checklist.checks[n].text||""===this.checklist.checks[n].text)&&(this.checklist.checks.splice(n,1),this.saveCheckList())}saveCheckList(){this.message="Updating checklist ...",this.checklistService.saveChecklist(this.checklist).subscribe({next:n=>{this.checklist=n,this.message="Saved checklist."},error:n=>this.message=`Error while saving checklist: ${n}`})}deleteChecklist(){this.message="Removing checklist ...",this.checklistService.deleteChecklist(this.checklistId).subscribe({next:()=>{this.router.navigateByUrl("/checklists")},error:n=>this.message=`Error while deleting checklist: ${n}`})}}return e.\u0275fac=function(n){return new(n||e)(_(yt),_(Be))},e.\u0275cmp=Rt({type:e,selectors:[["app-edit-checklist"]],decls:36,vars:15,consts:[[3,"hidden"],["type","button","title","Delete checklist",1,"delete",3,"click"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-item"],["id","input-item","placeholder","Remember x",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],["for","input-checklist-name"],["id","input-checklist-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],["type","checkbox",3,"ngModel","ngModelChange","change"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(n,r){1&n&&(y(0,"h2"),w(1),v(),y(2,"p",0),w(3),v(),y(4,"p"),w(5),y(6,"button",1),P("click",function(){return r.deleteChecklist()}),w(7,"Delete checklist"),v(),ie(8,"br"),w(9),wr(10,"date"),ie(11,"br"),w(12),wr(13,"date"),v(),y(14,"h3"),w(15,"Items:"),v(),y(16,"ol"),On(17,zk,6,2,"li",2),v(),y(18,"h2"),w(19,"add item:"),v(),y(20,"div",3)(21,"div")(22,"label",4),w(23,"item:"),v(),y(24,"input",5),P("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),v(),y(25,"button",6),P("click",function(){return r.addItem()}),w(26,"Add"),v()()(),y(27,"h2"),w(28,"change checklist name:"),v(),y(29,"div",3)(30,"div")(31,"label",7),w(32,"newName:"),v(),y(33,"input",8),P("ngModelChange",function(i){return r.checklist.name=i})("keydown.enter",function(){return r.saveCheckList()}),v(),y(34,"button",6),P("click",function(){return r.saveCheckList()}),w(35,"Save"),v()()()),2&n&&(M(1),Ze("Editing checklist: ",r.checklist.name,""),M(1),x("hidden",""===r.message),M(1),me(r.message),M(2),Ze("Id: ",r.checklist.id," "),M(4),Ze("Created on: ",Er(10,9,r.checklist.dateCreated,"dd-MM-yyyy HH:mm:ss")," "),M(3),Ze("Updated on: ",Er(13,12,r.checklist.dateUpdated,"dd-MM-yyyy HH:mm:ss"),"\n"),M(5),x("ngForOf",r.checklist.checks),M(7),x("ngModel",r.newItem),M(9),x("ngModel",r.checklist.name))},dependencies:[Mr,qt,ul,Ln,pn,Wi],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080;margin-left:2em}"]}),e})(),canActivate:[xr]}];let Wk=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({imports:[$w.forRoot(Gk),$w]}),e})(),qk=(()=>{class e{constructor(n){this.auth=n}intercept(n,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=n.clone({headers:n.headers.set("Authorization",o)});return r.handle(i)}return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(N(tt))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Zk=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e,bootstrap:[Nk]}),e.\u0275inj=Nt({providers:[{provide:D0,useClass:qk,multi:!0},{provide:Qn,useClass:y_}],imports:[cO,_P,zP,Wk]}),e})();lO().bootstrapModule(Zk).catch(e=>console.error(e))}},ue=>{ue(ue.s=830)}]); \ No newline at end of file diff --git a/front/dist/familySite1/main.dc9fadbede7cca5c.js b/front/dist/familySite1/main.dc9fadbede7cca5c.js new file mode 100644 index 0000000..bbaad80 --- /dev/null +++ b/front/dist/familySite1/main.dc9fadbede7cca5c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{332:()=>{function ce(e){return"function"==typeof e}function Wo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const _s=Wo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function qo(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Tt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ce(r))try{r()}catch(i){t=i instanceof _s?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{wh(i)}catch(s){t=t??[],s instanceof _s?t=[...t,...s.errors]:t.push(s)}}if(t)throw new _s(t)}}add(t){var n;if(t&&t!==this)if(this.closed)wh(t);else{if(t instanceof Tt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&qo(n,t)}remove(t){const{_finalizers:n}=this;n&&qo(n,t),t instanceof Tt&&t._removeParent(this)}}Tt.EMPTY=(()=>{const e=new Tt;return e.closed=!0,e})();const _h=Tt.EMPTY;function Dh(e){return e instanceof Tt||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function wh(e){ce(e)?e():e.unsubscribe()}const ar={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ds={setTimeout(e,t,...n){const{delegate:r}=Ds;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Ds;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Eh(e){Ds.setTimeout(()=>{const{onUnhandledError:t}=ar;if(!t)throw e;t(e)})}function Mh(){}const Uw=zl("C",void 0,void 0);function zl(e,t,n){return{kind:e,value:t,error:n}}let lr=null;function ws(e){if(ar.useDeprecatedSynchronousErrorHandling){const t=!lr;if(t&&(lr={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=lr;if(lr=null,n)throw r}}else e()}class Gl extends Tt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Dh(t)&&t.add(this)):this.destination=Qw}static create(t,n,r){return new Zo(t,n,r)}next(t){this.isStopped?ql(function Gw(e){return zl("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?ql(function zw(e){return zl("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ql(Uw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const qw=Function.prototype.bind;function Wl(e,t){return qw.call(e,t)}class Zw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Es(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Es(r)}else Es(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Es(n)}}}class Zo extends Gl{constructor(t,n,r){let o;if(super(),ce(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ar.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Wl(t.next,i),error:t.error&&Wl(t.error,i),complete:t.complete&&Wl(t.complete,i)}):o=t}this.destination=new Zw(o)}}function Es(e){ar.useDeprecatedSynchronousErrorHandling?function Ww(e){ar.useDeprecatedSynchronousErrorHandling&&lr&&(lr.errorThrown=!0,lr.error=e)}(e):Eh(e)}function ql(e,t){const{onStoppedNotification:n}=ar;n&&Ds.setTimeout(()=>n(e,t))}const Qw={closed:!0,next:Mh,error:function Yw(e){throw e},complete:Mh},Zl="function"==typeof Symbol&&Symbol.observable||"@@observable";function ur(e){return e}function bh(e){return 0===e.length?ur:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let be=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function Jw(e){return e&&e instanceof Gl||function Kw(e){return e&&ce(e.next)&&ce(e.error)&&ce(e.complete)}(e)&&Dh(e)}(n)?n:new Zo(n,r,o);return ws(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Sh(r))((o,i)=>{const s=new Zo({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Zl](){return this}pipe(...n){return bh(n)(this)}toPromise(n){return new(n=Sh(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Sh(e){var t;return null!==(t=e??ar.Promise)&&void 0!==t?t:Promise}const e1=Wo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Dn=(()=>{class e extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Ih(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new e1}next(n){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?_h:(this.currentObservers=null,i.push(n),new Tt(()=>{this.currentObservers=null,qo(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new be;return n.source=this,n}}return e.create=(t,n)=>new Ih(t,n),e})();class Ih extends Dn{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:_h}}function Th(e){return ce(e?.lift)}function Ue(e){return t=>{if(Th(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(e,t,n,r,o){return new t1(e,t,n,r,o)}class t1 extends Gl{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ne(e,t){return Ue((n,r)=>{let o=0;n.subscribe($e(r,i=>{r.next(e.call(t,i,o++))}))})}function cr(e){return this instanceof cr?(this.v=e,this):new cr(e)}function i1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Rh(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}const Oh=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Ph(e){return ce(e?.then)}function xh(e){return ce(e[Zl])}function kh(e){return Symbol.asyncIterator&&ce(e?.[Symbol.asyncIterator])}function Fh(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Lh=function a1(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Vh(e){return ce(e?.[Lh])}function Hh(e){return function o1(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,v){i.push([f,h,p,v])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof cr?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield cr(n.read());if(o)return yield cr(void 0);yield yield cr(r)}}finally{n.releaseLock()}})}function $h(e){return ce(e?.getReader)}function At(e){if(e instanceof be)return e;if(null!=e){if(xh(e))return function l1(e){return new be(t=>{const n=e[Zl]();if(ce(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Oh(e))return function u1(e){return new be(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Eh)})}(e);if(kh(e))return jh(e);if(Vh(e))return function d1(e){return new be(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if($h(e))return function f1(e){return jh(Hh(e))}(e)}throw Fh(e)}function jh(e){return new be(t=>{(function h1(e,t){var n,r,o,i;return function n1(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=i1(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function wn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ze(e,t,n=1/0){return ce(t)?ze((r,o)=>ne((i,s)=>t(r,i,o,s))(At(e(r,o))),n):("number"==typeof t&&(n=t),Ue((r,o)=>function p1(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=v=>u{i&&t.next(v),u++;let D=!1;At(n(v,c++)).subscribe($e(t,b=>{o?.(b),i?h(b):t.next(b)},()=>{D=!0},void 0,()=>{if(D)try{for(u--;l.length&&up(b)):p(b)}f()}catch(b){t.error(b)}}))};return e.subscribe($e(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function Hr(e=1/0){return ze(ur,e)}const Kt=new be(e=>e.complete());function Ql(e){return e[e.length-1]}function Bh(e){return ce(Ql(e))?e.pop():void 0}function Yo(e){return function m1(e){return e&&ce(e.schedule)}(Ql(e))?e.pop():void 0}function Uh(e,t=0){return Ue((n,r)=>{n.subscribe($e(r,o=>wn(r,e,()=>r.next(o),t),()=>wn(r,e,()=>r.complete(),t),o=>wn(r,e,()=>r.error(o),t)))})}function zh(e,t=0){return Ue((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Gh(e,t){if(!e)throw new Error("Iterable cannot be null");return new be(n=>{wn(n,t,()=>{const r=e[Symbol.asyncIterator]();wn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function xe(e,t){return t?function E1(e,t){if(null!=e){if(xh(e))return function v1(e,t){return At(e).pipe(zh(t),Uh(t))}(e,t);if(Oh(e))return function _1(e,t){return new be(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Ph(e))return function C1(e,t){return At(e).pipe(zh(t),Uh(t))}(e,t);if(kh(e))return Gh(e,t);if(Vh(e))return function D1(e,t){return new be(n=>{let r;return wn(n,t,()=>{r=e[Lh](),wn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ce(r?.return)&&r.return()})}(e,t);if($h(e))return function w1(e,t){return Gh(Hh(e),t)}(e,t)}throw Fh(e)}(e,t):At(e)}function Xl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Zo({next:()=>{r.unsubscribe(),e()}});return At(t(...n)).subscribe(r)}function ae(e){for(let t in e)if(e[t]===ae)return t;throw Error("Could not find renamed property on target object.")}function Kl(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ke(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ke).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Jl(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const S1=ae({__forward_ref__:ae});function de(e){return e.__forward_ref__=de,e.toString=function(){return ke(this())},e}function B(e){return eu(e)?e():e}function eu(e){return"function"==typeof e&&e.hasOwnProperty(S1)&&e.__forward_ref__===de}function tu(e){return e&&!!e.\u0275providers}const Wh="https://g.co/ng/security#xss";class M extends Error{constructor(t,n){super(function nu(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function U(e){return"string"==typeof e?e:null==e?"":String(e)}function Ms(e,t){throw new M(-201,!1)}function Nt(e,t){null==e&&function se(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Rt(e){return{providers:e.providers||[],imports:e.imports||[]}}function bs(e){return qh(e,Ss)||qh(e,Yh)}function qh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Zh(e){return e&&(e.hasOwnProperty(ru)||e.hasOwnProperty(x1))?e[ru]:null}const Ss=ae({\u0275prov:ae}),ru=ae({\u0275inj:ae}),Yh=ae({ngInjectableDef:ae}),x1=ae({ngInjectorDef:ae});var L=(()=>((L=L||{})[L.Default=0]="Default",L[L.Host=1]="Host",L[L.Self=2]="Self",L[L.SkipSelf=4]="SkipSelf",L[L.Optional=8]="Optional",L))();let ou;function at(e){const t=ou;return ou=e,t}function Xh(e,t,n){const r=bs(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&L.Optional?null:void 0!==t?t:void Ms(ke(e))}const fe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Qo={},iu="__NG_DI_FLAG__",Is="ngTempTokenPath",F1=/\n/gm,Kh="__source";let $r;function Un(e){const t=$r;return $r=e,t}function H1(e,t=L.Default){if(void 0===$r)throw new M(-203,!1);return null===$r?Xh(e,void 0,t):$r.get(e,t&L.Optional?null:void 0,t)}function N(e,t=L.Default){return(function Qh(){return ou}()||H1)(B(e),t)}function I(e,t=L.Default){return N(e,Ts(t))}function Ts(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function su(e){const t=[];for(let n=0;n((Jt=Jt||{})[Jt.OnPush=0]="OnPush",Jt[Jt.Default=1]="Default",Jt))(),Ct=(()=>{return(e=Ct||(Ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ct;var e})();const Mn={},te=[],As=ae({\u0275cmp:ae}),au=ae({\u0275dir:ae}),lu=ae({\u0275pipe:ae}),ep=ae({\u0275mod:ae}),bn=ae({\u0275fac:ae}),Ko=ae({__NG_ELEMENT_ID__:ae}),tp=ae({__NG_ENV_ID__:ae});function np(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function uu(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==np(h,u,0)||2&r&&u!==f){if(Lt(r))return!1;s=!0}}}}else{if(!s&&!Lt(r)&&!Lt(l))return!1;if(s&&Lt(l))continue;s=!1,r=l|1&r}}return Lt(r)||s}function Lt(e){return 0==(1&e)}function W1(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Lt(s)&&(t+=up(i,o),o=""),r=s,i=i||!Lt(r);n++}return""!==o&&(t+=up(i,o)),t}function _t(e){return En(()=>{const t=dp(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Jt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||te,_:null,schemas:e.schemas||null,tView:null,id:""};fp(n);const r=e.dependencies;return n.directiveDefs=Ns(r,!1),n.pipeDefs=Ns(r,!0),n.id=function iE(e){let t=0;const n=JSON.stringify([e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.exportAs,e.inputs,e.outputs,Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery]);for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function tE(e){return re(e)||Qe(e)}function nE(e){return null!==e}function Vt(e){return En(()=>({type:e.type,bootstrap:e.bootstrap||te,declarations:e.declarations||te,imports:e.imports||te,exports:e.exports||te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function cp(e,t){if(null==e)return Mn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function $(e){return En(()=>{const t=dp(e);return fp(t),t})}function lt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function re(e){return e[As]||null}function Qe(e){return e[au]||null}function ut(e){return e[lu]||null}function Dt(e,t){const n=e[ep]||null;if(!n&&!0===t)throw new Error(`Type ${ke(e)} does not have '\u0275mod' property.`);return n}function dp(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:cp(e.inputs,t),outputs:cp(e.outputs)}}function fp(e){e.features?.forEach(t=>t(e))}function Ns(e,t){if(!e)return null;const n=t?ut:tE;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(nE)}const Fe=0,T=1,W=2,Ce=3,Ht=4,dr=5,Xe=6,Br=7,we=8,Ur=9,fr=10,z=11,ei=12,hp=13,zr=14,Ae=15,ti=16,Gr=17,en=18,ni=19,pp=20,zn=21,Sn=22,Rs=23,Os=24,X=25,cu=1,gp=2,tn=7,Ps=8,Wr=9,Ge=11;function wt(e){return Array.isArray(e)&&"object"==typeof e[cu]}function ct(e){return Array.isArray(e)&&!0===e[cu]}function du(e){return 0!=(4&e.flags)}function hr(e){return e.componentOffset>-1}function xs(e){return 1==(1&e.flags)}function $t(e){return!!e.template}function fu(e){return 0!=(512&e[W])}function pr(e,t){return e.hasOwnProperty(bn)?e[bn]:null}let cE=fe.WeakRef??class uE{constructor(t){this.ref=t}deref(){return this.ref}},fE=0,nn=null,ks=!1;function je(e){const t=nn;return nn=e,t}class _p{constructor(){this.id=fE++,this.ref=function dE(e){return new cE(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=ks;ks=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{ks=t}}producerAccessed(){if(ks)throw new Error("");if(null===nn)return;let t=nn.producers.get(this.id);void 0===t?(t={consumerNode:nn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:nn.trackingVersion},nn.producers.set(this.id,t),this.consumers.set(nn.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=nn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==nn?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let Dp=null;const wp=()=>{};class mE extends _p{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=wp,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=je(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=wp,this.watch(this.registerOnCleanup)}finally{je(t)}}cleanup(){this.cleanupFn()}}class yE{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ot(){return Ep}function Ep(e){return e.type.prototype.ngOnChanges&&(e.setInput=CE),vE}function vE(){const e=bp(this),t=e?.current;if(t){const n=e.previous;if(n===Mn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function CE(e,t,n,r){const o=this.declaredInputs[n],i=bp(e)||function _E(e,t){return e[Mp]=t}(e,{previous:Mn,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new yE(l&&l.currentValue,t,a===Mn),e[r]=t}Ot.ngInherit=!0;const Mp="__ngSimpleChanges__";function bp(e){return e[Mp]||null}const rn=function(e,t,n){};function me(e){for(;Array.isArray(e);)e=e[Fe];return e}function Vs(e,t){return me(t[e])}function dt(e,t){return me(t[e.index])}function Tp(e,t){return e.data[t]}function ft(e,t){const n=t[e];return wt(n)?n:n[Fe]}function Hs(e){return 128==(128&e[W])}function Gn(e,t){return null==t?null:e[t]}function Ap(e){e[Gr]=0}function SE(e){1024&e[W]||(e[W]|=1024,Rp(e,1))}function Np(e){1024&e[W]&&(e[W]&=-1025,Rp(e,-1))}function Rp(e,t){let n=e[Ce];if(null===n)return;n[dr]+=t;let r=n;for(n=n[Ce];null!==n&&(1===t&&1===r[dr]||-1===t&&0===r[dr]);)n[dr]+=t,r=n,n=n[Ce]}const H={lFrame:Bp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function xp(){return H.bindingsEnabled}function E(){return H.lFrame.lView}function K(){return H.lFrame.tView}function gr(e){return H.lFrame.contextLView=e,e[we]}function mr(e){return H.lFrame.contextLView=null,e}function We(){let e=kp();for(;null!==e&&64===e.type;)e=e.parent;return e}function kp(){return H.lFrame.currentTNode}function on(e,t){const n=H.lFrame;n.currentTNode=e,n.isParent=t}function vu(){return H.lFrame.isParent}function nt(){const e=H.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Yr(){return H.lFrame.bindingIndex++}function Tn(e){const t=H.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function VE(e,t){const n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,_u(t)}function _u(e){H.lFrame.currentDirectiveIndex=e}function Hp(){return H.lFrame.currentQueryIndex}function wu(e){H.lFrame.currentQueryIndex=e}function $E(e){const t=e[T];return 2===t.type?t.declTNode:1===t.type?e[Xe]:null}function $p(e,t,n){if(n&L.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&L.Host||(o=$E(i),null===o||(i=i[zr],10&o.type))););if(null===o)return!1;t=o,e=i}const r=H.lFrame=jp();return r.currentTNode=t,r.lView=e,!0}function Eu(e){const t=jp(),n=e[T];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function jp(){const e=H.lFrame,t=null===e?null:e.child;return null===t?Bp(e):t}function Bp(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Up(){const e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const zp=Up;function Mu(){const e=Up();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function rt(){return H.lFrame.selectedIndex}function yr(e){H.lFrame.selectedIndex=e}function _e(){const e=H.lFrame;return Tp(e.tView,e.selectedIndex)}let Wp=!0;function $s(){return Wp}function Wn(e){Wp=e}function js(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[Gr]+=65536),(a>12>16&&(3&e[W])===t&&(e[W]+=4096,Zp(a,i)):Zp(a,i)}const Qr=-1;class ii{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Yp(e){return e!==Qr}function zs(e){return 32767&e}function Gs(e,t){let n=function KE(e){return e>>16}(e),r=t;for(;n>0;)r=r[zr],n--;return r}let Iu=!0;function Ws(e){const t=Iu;return Iu=e,t}const Qp=255,Xp=5;let JE=0;const sn={};function qs(e,t){const n=Kp(e,t);if(-1!==n)return n;const r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,Tu(r.data,e),Tu(t,null),Tu(r.blueprint,null));const o=Au(e,t),i=e.injectorIndex;if(Yp(o)){const s=zs(o),a=Gs(o,t),l=a[T].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function Tu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Kp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Au(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=ig(o),null===r)return Qr;if(n++,o=o[zr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Qr}function Nu(e,t,n){!function eM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ko)&&(r=n[Ko]),null==r&&(r=n[Ko]=JE++);const o=r&Qp;t.data[e+(o>>Xp)]|=1<=0?t&Qp:oM:t}(n);if("function"==typeof i){if(!$p(t,e,r))return r&L.Host?Jp(o,0,r):eg(t,n,r,o);try{const s=i(r);if(null!=s||r&L.Optional)return s;Ms()}finally{zp()}}else if("number"==typeof i){let s=null,a=Kp(e,t),l=Qr,u=r&L.Host?t[Ae][Xe]:null;for((-1===a||r&L.SkipSelf)&&(l=-1===a?Au(e,t):t[a+8],l!==Qr&&og(r,!1)?(s=t[T],a=zs(l),t=Gs(l,t)):a=-1);-1!==a;){const c=t[T];if(rg(i,a,c.data)){const d=nM(a,t,n,s,r,u);if(d!==sn)return d}l=t[a+8],l!==Qr&&og(r,t[T].data[a+8]===u)&&rg(i,a,t)?(s=c,a=zs(l),t=Gs(l,t)):a=-1}}return o}function nM(e,t,n,r,o,i){const s=t[T],a=s.data[e+8],c=Zs(a,s,n,null==r?hr(a)&&Iu:r!=s&&0!=(3&a.type),o&L.Host&&i===a);return null!==c?vr(t,s,c,a):sn}function Zs(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(o){const h=s[l];if(h&&$t(h)&&h.type===n)return l}return null}function vr(e,t,n,r){let o=e[n];const i=t.data;if(function YE(e){return e instanceof ii}(o)){const s=o;s.resolving&&function I1(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,`Circular dependency in DI detected for ${e}${n}`)}(function ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():U(e)}(i[n]));const a=Ws(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?at(s.injectImpl):null;$p(e,r,L.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function qE(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Ep(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&at(l),Ws(a),s.resolving=!1,zp()}}return o}function rg(e,t,n){return!!(n[t+(e>>Xp)]&1<{const t=e.prototype.constructor,n=t[bn]||Ru(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[bn]||Ru(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ru(e){return eu(e)?()=>{const t=Ru(B(e));return t&&t()}:pr(e)}function ig(e){const t=e[T],n=t.type;return 2===n?t.declTNode:1===n?e[Xe]:null}const Jr="__parameters__";function to(e,t,n){return En(()=>{const r=function Ou(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(Jr)?l[Jr]:Object.defineProperty(l,Jr,{value:[]})[Jr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function li(e,t){e.forEach(n=>Array.isArray(n)?li(n,t):t(n))}function ag(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Qs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Et(e,t,n){let r=no(e,t);return r>=0?e[1|r]=n:(r=~r,function cM(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Pu(e,t){const n=no(e,t);if(n>=0)return e[1|n]}function no(e,t){return function lg(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((ht=ht||{})[ht.Important=1]="Important",ht[ht.DashCase=2]="DashCase",ht))();const $u=new Map;let xM=0;const Bu="__ngContext__";function Ke(e,t){wt(t)?(e[Bu]=t[ni],function FM(e){$u.set(e[ni],e)}(t)):e[Bu]=t}let Uu;function zu(e,t){return Uu(e,t)}function fi(e){const t=e[Ce];return ct(t)?t[Ce]:t}function Gu(e){return Ig(e[ei])}function Wu(e){return Ig(e[Ht])}function Ig(e){for(;null!==e&&!ct(e);)e=e[Ht];return e}function io(e,t,n,r,o){if(null!=r){let i,s=!1;ct(r)?i=r:wt(r)&&(s=!0,r=r[Fe]);const a=me(r);0===e&&null!==n?null==o?Og(t,n,a):Cr(t,n,a,o||null,!0):1===e&&null!==n?Cr(t,n,a,o||null,!0):2===e?function la(e,t,n){const r=sa(e,t);r&&function tb(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function ob(e,t,n,r,o){const i=n[tn];i!==me(n)&&io(t,e,r,i,o);for(let a=Ge;a0&&(e[n-1][Ht]=r[Ht]);const i=Qs(e,Ge+t);!function qM(e,t){pi(e,t,t[z],2,null,null),t[Fe]=null,t[Xe]=null}(r[T],r);const s=i[en];null!==s&&s.detachView(i[T]),r[Ce]=null,r[Ht]=null,r[W]&=-129}return r}function Ng(e,t){if(!(256&t[W])){const n=t[z];t[Rs]?.destroy(),t[Os]?.destroy(),n.destroyNode&&pi(e,t,n,3,null,null),function QM(e){let t=e[ei];if(!t)return Yu(e[T],e);for(;t;){let n=null;if(wt(t))n=t[ei];else{const r=t[Ge];r&&(n=r)}if(!n){for(;t&&!t[Ht]&&t!==e;)wt(t)&&Yu(t[T],t),t=t[Ce];null===t&&(t=e),wt(t)&&Yu(t[T],t),n=t&&t[Ht]}t=n}}(t)}}function Yu(e,t){if(!(256&t[W])){t[W]&=-129,t[W]|=256,function eb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Br]=null);const o=t[zn];if(null!==o){for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ct.None||i===Ct.Emulated)return null}return dt(r,n)}}(e,t.parent,n)}function Cr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Og(e,t,n){e.appendChild(t,n)}function Pg(e,t,n,r,o){null!==r?Cr(e,t,n,r,o):Og(e,t,n)}function sa(e,t){return e.parentNode(t)}let Xu,tc,ca,Fg=function kg(e,t,n){return 40&e.type?dt(e,n):null};function aa(e,t,n,r){const o=Qu(e,r,t),i=t[z],a=function xg(e,t,n){return Fg(e,t,n)}(r.parent||t[Xe],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return ca}()?.createScriptURL(e)||e}class Wg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Wh})`}}function qn(e){return e instanceof Wg?e.changingThisBreaksApplicationSecurity:e}function mi(e,t){const n=function mb(e){return e instanceof Wg&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Wh})`)}return n===t}const _b=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ne=(()=>((Ne=Ne||{})[Ne.NONE=0]="NONE",Ne[Ne.HTML=1]="HTML",Ne[Ne.STYLE=2]="STYLE",Ne[Ne.SCRIPT=3]="SCRIPT",Ne[Ne.URL=4]="URL",Ne[Ne.RESOURCE_URL=5]="RESOURCE_URL",Ne))();function ac(e){const t=vi();return t?t.sanitize(Ne.URL,e)||"":mi(e,"URL")?qn(e):function rc(e){return(e=String(e)).match(_b)?e:"unsafe:"+e}(U(e))}function Jg(e){const t=vi();if(t)return Gg(t.sanitize(Ne.RESOURCE_URL,e)||"");if(mi(e,"ResourceURL"))return Gg(qn(e));throw new M(904,!1)}function vi(){const e=E();return e&&e[fr].sanitizer}class O{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ci=new O("ENVIRONMENT_INITIALIZER"),tm=new O("INJECTOR",-1),nm=new O("INJECTOR_DEF_TYPES");class rm{get(t,n=Qo){if(n===Qo){const r=new Error(`NullInjectorError: No provider for ${ke(t)}!`);throw r.name="NullInjectorError",r}return n}}function Pb(...e){return{\u0275providers:om(0,e),\u0275fromNgModule:!0}}function om(e,...t){const n=[],r=new Set;let o;return li(t,i=>{const s=i;uc(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&im(o,n),n}function im(e,t){for(let n=0;n{t.push(i)})}}function uc(e,t,n,r){if(!(e=B(e)))return!1;let o=null,i=Zh(e);const s=!i&&re(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Zh(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)uc(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{li(i.imports,c=>{uc(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&im(u,t)}if(!a){const u=pr(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:te},{provide:nm,useValue:o,multi:!0},{provide:Ci,useValue:()=>N(o),multi:!0})}const l=i.providers;null==l||a||cc(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function cc(e,t){for(let n of e)tu(n)&&(n=n.\u0275providers),Array.isArray(n)?cc(n,t):t(n)}const xb=ae({provide:String,useValue:ae});function dc(e){return null!==e&&"object"==typeof e&&xb in e}function _r(e){return"function"==typeof e}const fc=new O("Set Injector scope."),fa={},Fb={};let hc;function ha(){return void 0===hc&&(hc=new rm),hc}class an{}class pc extends an{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,mc(t,s=>this.processProvider(s)),this.records.set(tm,ao(void 0,this)),o.has("environment")&&this.records.set(an,ao(void 0,this));const i=this.records.get(fc);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(nm.multi,te,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Un(this),r=at(void 0);try{return t()}finally{Un(n),at(r)}}get(t,n=Qo,r=L.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(tp))return t[tp](this);r=Ts(r);const o=Un(this),i=at(void 0);try{if(!(r&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function jb(e){return"function"==typeof e||"object"==typeof e&&e instanceof O}(t)&&bs(t);a=l&&this.injectableDefInScope(l)?ao(gc(t),fa):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&L.Self?ha():this.parent).get(t,n=r&L.Optional&&n===Qo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Is]=s[Is]||[]).unshift(ke(t)),o)throw s;return function j1(e,t,n,r){const o=e[Is];throw t[Kh]&&o.unshift(t[Kh]),e.message=function B1(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=ke(t);if(Array.isArray(t))o=t.map(ke).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):ke(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(F1,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Is]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{at(i),Un(o)}}resolveInjectorInitializers(){const t=Un(this),n=at(void 0);try{const r=this.get(Ci.multi,te,L.Self);for(const o of r)o()}finally{Un(t),at(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ke(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){let n=_r(t=B(t))?t:B(t&&t.provide);const r=function Vb(e){return dc(e)?ao(void 0,e.useValue):ao(lm(e),fa)}(t);if(_r(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=ao(void 0,fa,!0),o.factory=()=>su(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===fa&&(n.value=Fb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function $b(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=B(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function gc(e){const t=bs(e),n=null!==t?t.factory:pr(e);if(null!==n)return n;if(e instanceof O)throw new M(204,!1);if(e instanceof Function)return function Lb(e){const t=e.length;if(t>0)throw function ui(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new M(204,!1)}function lm(e,t,n){let r;if(_r(e)){const o=B(e);return pr(o)||gc(o)}if(dc(e))r=()=>B(e.useValue);else if(function am(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...su(e.deps||[]));else if(function sm(e){return!(!e||!e.useExisting)}(e))r=()=>N(B(e.useExisting));else{const o=B(e&&(e.useClass||e.provide));if(!function Hb(e){return!!e.deps}(e))return pr(o)||gc(o);r=()=>new o(...su(e.deps))}return r}function ao(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function mc(e,t){for(const n of e)Array.isArray(n)?mc(n,t):n&&tu(n)?mc(n.\u0275providers,t):t(n)}const pa=new O("AppId",{providedIn:"root",factory:()=>Bb}),Bb="ng",um=new O("Platform Initializer"),Dr=new O("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),cm=new O("CSP nonce",{providedIn:"root",factory:()=>function gi(){if(void 0!==tc)return tc;if(typeof document<"u")return document;throw new M(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let fm=(e,t)=>null;function hm(e,t){return fm(e,t)}class Kb{}class mm{}class eS{resolveComponentFactory(t){throw function Jb(e){const t=Error(`No component factory found for ${ke(e)}.`);return t.ngComponent=e,t}(t)}}let Ca=(()=>{class e{}return e.NULL=new eS,e})();function tS(){return lo(We(),E())}function lo(e,t){return new Mt(dt(e,t))}let Mt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=tS,e})();function nS(e){return e instanceof Mt?e.nativeElement:e}class vm{}let Nn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function rS(){const e=E(),n=ft(We().index,e);return(wt(n)?n:e)[z]}(),e})(),oS=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>null}),e})();class Ei{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const iS=new Ei("16.0.1"),Ic={};function Mi(e){for(;e;){e[W]|=64;const t=fi(e);if(fu(e)&&!t)return e;e=t}return null}function Tc(e){return e.ngOriginalError}class wr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Tc(t);for(;n&&Tc(n);)n=Tc(n);return n||null}}const Dm=new O("",{providedIn:"root",factory:()=>!1});function Rn(e){return e instanceof Function?e():e}class Mm extends _p{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){Mi(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=je(this);this.trackingVersion++;try{t(n,r)}finally{je(o)}}destroy(){this.trackingVersion++}}let Da=null;function bm(){return Da??=new Mm,Da}function Sm(e,t){return e[t]??bm()}function Im(e,t){const n=bm();n.hasReadASignal&&(e[t]=Da,n.lView=e,Da=new Mm)}const G={};function w(e){Tm(K(),E(),rt()+e,!1)}function Tm(e,t,n,r){if(!r)if(3==(3&t[W])){const i=e.preOrderCheckHooks;null!==i&&Bs(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Us(t,i,0,n)}yr(n)}function Om(e,t=null,n=null,r){const o=Pm(e,t,n,r);return o.resolveInjectorInitializers(),o}function Pm(e,t=null,n=null,r,o=new Set){const i=[n||te,Pb(e)];return r=r||("object"==typeof e?void 0:ke(e)),new pc(i,t||ha(),r||null,o)}let ln=(()=>{class e{static create(n,r){if(Array.isArray(n))return Om({name:""},r,n,"");{const o=n.name??"";return Om({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Qo,e.NULL=new rm,e.\u0275prov=x({token:e,providedIn:"any",factory:()=>N(tm)}),e.__NG_ELEMENT_ID__=-1,e})();function _(e,t=L.Default){const n=E();return null===n?N(e,t):tg(We(),n,B(e),t)}function wa(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[Fe]=o,d[W]=140|r,(null!==u||e&&2048&e[W])&&(d[W]|=2048),Ap(d),d[Ce]=d[zr]=e,d[we]=n,d[fr]=s||e&&e[fr],d[z]=a||e&&e[z],d[Ur]=l||e&&e[Ur]||null,d[Xe]=i,d[ni]=function kM(){return xM++}(),d[Sn]=c,d[pp]=u,d[Ae]=2==t.type?e[Ae]:d,d}function co(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Ac(e,t,n,r,o){const i=kp(),s=vu(),l=e.data[t]=function SS(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Zr(){return null!==H.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(e,t,n,r,o),function LE(){return H.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function oi(){const e=H.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return on(i,!0),i}function bi(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;iX&&Tm(e,t,X,!1),rn(a?2:0,o),a)i.runInContext(n,r,o);else{const u=je(null);try{n(r,o)}finally{je(u)}}}finally{a&&null===t[Rs]&&Im(t,Rs),yr(s),rn(a?3:1,o)}}function Nc(e,t,n){if(du(t)){const r=je(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function Vm(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Hm(n,t,o,i):r.hasOwnProperty(o)&&Hm(n,t,r[o],i)}return n}function Hm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function bt(e,t,n,r,o,i,s,a){const l=dt(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(Vc(e,n,c,r,o),hr(t)&&function AS(e,t){const n=ft(t,e);16&n[W]||(n[W]|=64)}(n,t.index)):3&t.type&&(r=function TS(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(l,r,o))}function xc(e,t,n,r){if(xp()){const o=null===r?null:{"":-1},i=function kS(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,bi(e,n,o.hostVars,G),o)}function un(e,t,n,r,o,i){const s=dt(e,t);!function Fc(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?U(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[z],s,i,e.value,n,r,o)}function jS(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new mE(n,u=>{this.all.has(u)&&this.queue.set(u,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e}),e})();function Ma(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&$c(n)}}function $c(e){for(let r=Gu(e);null!==r;r=Wu(r))for(let o=Ge;o0&&$c(i)}const n=e[T].components;if(null!==n)for(let r=0;r0&&$c(o)}}class Ii{get rootNodes(){const t=this._lView,n=t[T];return Si(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[we]}set context(t){this._lView[we]=t}get destroyed(){return 256==(256&this._lView[W])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[Ce];if(ct(t)){const n=t[Ps],r=n?n.indexOf(this):-1;r>-1&&(Zu(t,r),Qs(n,r))}this._attachedToViewContainer=!1}Ng(this._lView[T],this._lView)}onDestroy(t){!function Op(e,t){if(256==(256&e[W]))throw new M(911,!1);null===e[zn]&&(e[zn]=[]),e[zn].push(t)}(this._lView,t)}markForCheck(){Mi(this._cdRefInjectingView||this._lView)}detach(){this._lView[W]&=-129}reattach(){this._lView[W]|=128}detectChanges(){ba(this._lView[T],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function YM(e,t){pi(e,t,t[z],2,null,null)}(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t}}class eI extends Ii{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;ba(t[T],t,t[we],!1)}checkNoChanges(){}get context(){return null}}class Qm extends Ca{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=re(t);return new Ti(n,this.ngModule)}}function Xm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class nI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ts(r);const o=this.injector.get(t,Ic,r);return o!==Ic||n===Ic?o:this.parentInjector.get(t,n,r)}}class Ti extends mm{get inputs(){return Xm(this.componentDef.inputs)}get outputs(){return Xm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function K1(e){return e.map(X1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof an?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new nI(t,i):t,a=s.get(vm,null);if(null===a)throw new M(407,!1);const c={rendererFactory:a,sanitizer:s.get(oS,null),effectManager:s.get(Ym,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function DS(e,t,n,r){const i=r.get(Dm,!1)||n===Ct.ShadowDom,s=e.selectRootElement(t,i);return function wS(e){Lm(e)}(s),s}(d,r,this.componentDef.encapsulation,s):ia(d,f,function tI(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,v=Pc(0,null,null,1,0,null,null,null,null,null,null),D=wa(null,v,null,p,null,null,c,d,s,null,null);let b,g;Eu(D);try{const S=this.componentDef;let k,Y=null;S.findHostDirectiveDefs?(k=[],Y=new Map,S.findHostDirectiveDefs(S,k,Y),k.push(S)):k=[S];const ge=function oI(e,t){const n=e[T],r=X;return e[r]=t,co(n,r,2,"#host",null)}(D,h),Go=function iI(e,t,n,r,o,i,s){const a=o[T];!function sI(e,t,n,r){for(const o of e)t.mergedAttrs=Jo(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Ma(t,t.mergedAttrs,!0),null!==n&&Bg(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=hm(t,o[Ur]));const u=i.rendererFactory.createRenderer(t,n),c=wa(o,Fm(n),null,n.onPush?64:16,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&kc(a,e,r.length-1),Ea(o,c),o[e.index]=c}(ge,h,S,k,D,c,d);g=Tp(v,X),h&&function lI(e,t,n,r){if(r)uu(e,n,["ng-version",iS.full]);else{const{attrs:o,classes:i}=function J1(e){const t=[],n=[];let r=1,o=2;for(;r0&&jg(e,n,i.join(" "))}}(d,S,h,r),void 0!==n&&function uI(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Jo(o.hostAttrs,n=Jo(n,o.hostAttrs))}}(r)}function jc(e){return e===Mn?{}:e===te?[]:e}function fI(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function hI(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function pI(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Ia(e){return!!Bc(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Bc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function cn(e,t,n){return e[t]=n}function Je(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Er(e,t,n,r){const o=Je(e,t,n);return Je(e,t+1,r)||o}function dn(e,t,n,r){const o=E();return Je(o,Yr(),t)&&(K(),un(_e(),o,e,t,n,r)),dn}function ho(e,t,n,r){return Je(e,Yr(),n)?t+U(n)+r:G}function po(e,t,n,r,o,i){const a=Er(e,function In(){return H.lFrame.bindingIndex}(),n,o);return Tn(2),a?t+U(n)+r+U(o)+i:G}function jt(e,t,n,r,o,i,s,a){const l=E(),u=K(),c=e+X,d=u.firstCreatePass?function HI(e,t,n,r,o,i,s,a,l){const u=t.consts,c=co(t,e,4,s||null,Gn(u,a));xc(t,n,c,Gn(u,l)),js(t,c);const d=c.tView=Pc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];on(d,!1);const f=py(u,l,d,e);$s()&&aa(u,l,f,d),Ke(f,l),Ea(l,l[c]=Um(f,l,f,d)),xs(d)&&Rc(u,l,d),null!=s&&Oc(l,d,a)}let py=function gy(e,t,n,r){return Wn(!0),t[z].createComment("")};function R(e,t,n){const r=E();return Je(r,Yr(),t)&&bt(K(),_e(),r,e,t,r[z],n,!1),R}function Zc(e,t,n,r,o){const s=o?"class":"style";Vc(e,n,t.inputs[s],s,r)}function m(e,t,n,r){const o=E(),i=K(),s=X+e,a=o[z],l=i.firstCreatePass?function zI(e,t,n,r,o,i){const s=t.consts,l=co(t,e,2,r,Gn(s,o));return xc(t,n,l,Gn(s,i)),null!==l.attrs&&Ma(l,l.attrs,!1),null!==l.mergedAttrs&&Ma(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=my(i,o,l,a,t,e);o[s]=u;const c=xs(l);return on(l,!0),Bg(a,u,l),32!=(32&l.flags)&&$s()&&aa(i,o,u,l),0===function TE(){return H.lFrame.elementDepthCount}()&&Ke(u,o),function AE(){H.lFrame.elementDepthCount++}(),c&&(Rc(i,o,l),Nc(i,l,o)),null!==r&&Oc(o,l),m}function y(){let e=We();vu()?function Cu(){H.lFrame.isParent=!1}():(e=e.parent,on(e,!1));const t=e;(function RE(e){return H.skipHydrationRootTNode===e})(t)&&function kE(){H.skipHydrationRootTNode=null}(),function NE(){H.lFrame.elementDepthCount--}();const n=K();return n.firstCreatePass&&(js(n,e),du(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function QE(e){return 0!=(8&e.flags)}(t)&&Zc(n,t,E(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function XE(e){return 0!=(16&e.flags)}(t)&&Zc(n,t,E(),t.stylesWithoutHost,!1),y}function oe(e,t,n,r){return m(e,t,n,r),y(),oe}let my=(e,t,n,r,o,i)=>(Wn(!0),ia(r,o,function Gp(){return H.lFrame.currentNamespace}()));function Oa(){return E()}function Pi(e){return!!e&&"function"==typeof e.then}function Cy(e){return!!e&&"function"==typeof e.subscribe}function P(e,t,n,r){const o=E(),i=K(),s=We();return function Dy(e,t,n,r,o,i,s){const a=xs(r),u=e.firstCreatePass&&Wm(e),c=t[we],d=Gm(t);let f=!0;if(3&r.type||s){const v=dt(r,t),D=s?s(v):v,b=d.length,g=s?k=>s(me(k[r.index])):r.index;let S=null;if(!s&&a&&(S=function QI(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,f=!1;else{i=Ey(r,t,c,i,!1);const k=n.listen(D,o,i);d.push(i,k),u&&u.push(o,g,b,b+1)}}else i=Ey(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const v=p.length;if(v)for(let D=0;D-1?ft(e.index,t):t);let l=wy(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=wy(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Zn(e=1){return function jE(e){return(H.lFrame.contextLView=function BE(e,t){for(;e>0;)t=t[zr],e--;return t}(e,H.lFrame.contextLView))[we]}(e)}function Pa(e,t,n,r,o){const i=E(),s=ho(i,t,n,r);return s!==G&&bt(K(),_e(),i,e,s,i[z],o,!1),Pa}function xa(e,t){return e<<17|t<<2}function Yn(e){return e>>17&32767}function Xc(e){return 2|e}function Mr(e){return(131068&e)>>2}function Kc(e,t){return-131069&e|t<<2}function Jc(e){return 1|e}function Py(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Yn(i):Mr(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];iT(e[a],t)&&(l=!0,e[a+1]=r?Jc(c):Xc(c)),a=r?Yn(c):Mr(c)}l&&(e[n+1]=r?Xc(i):Jc(i))}function iT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&no(e,t)>=0}function ka(e,t){return function Bt(e,t,n,r){const o=E(),i=K(),s=Tn(2);i.firstUpdatePass&&function By(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[rt()],s=function jy(e,t){return t>=e.expandoStartIndex}(e,n);(function Wy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function pT(e,t,n,r){const o=function Du(e){const t=H.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=xi(n=ed(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=ed(o,e,t,n,r),null===i){let l=function gT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Mr(r))return e[Yn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=ed(null,e,t,l[1],r),l=xi(l,t.attrs,r),function mT(e,t,n,r){e[Yn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function yT(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)):c=n,o)if(0!==l){const f=Yn(e[a+1]);e[r+1]=xa(f,a),0!==f&&(e[f+1]=Kc(e[f+1],r)),e[a+1]=function tT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=xa(a,0),0!==a&&(e[a+1]=Kc(e[a+1],r)),a=r;else e[r+1]=xa(l,0),0===a?a=r:e[l+1]=Kc(e[l+1],r),l=r;u&&(e[r+1]=Xc(e[r+1])),Py(e,c,r,!0),Py(e,c,r,!1),function oT(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&no(i,t)>=0&&(n[r+1]=Jc(n[r+1]))}(t,c,e,r,i),s=xa(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==G&&Je(o,s,t)&&function zy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function nT(e){return 1==(1&e)}(u)?Gy(l,t,n,o,Mr(u),s):void 0;Fa(c)||(Fa(i)||function eT(e){return 2==(2&e)}(u)&&(i=Gy(l,null,n,o,a,s)),function ib(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:ht.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=ht.Important),e.setStyle(n,r,o,i))}}(r,s,Vs(rt(),n),o,i))}(i,i.data[rt()],o,o[z],e,o[s+1]=function DT(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ke(qn(e)))),e}(t,n),r,s)}(e,t,null,!0),ka}function ed(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===G&&(f=d?te:void 0);let h=d?Pu(f,r):c===r?f:void 0;if(u&&!Fa(h)&&(h=Pu(l,r)),Fa(h)&&(a=h,s))return a;const p=e[o+1];o=s?Yn(p):Mr(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=Pu(l,r))}return a}function Fa(e){return void 0!==e}function C(e,t=""){const n=E(),r=K(),o=e+X,i=r.firstCreatePass?co(r,o,1,t,null):r.data[o],s=qy(r,n,i,t,e);n[o]=s,$s()&&aa(r,n,s,i),on(i,!1)}let qy=(e,t,n,r,o)=>(Wn(!0),function oa(e,t){return e.createText(t)}(t[z],r));function J(e){return Ze("",e,""),J}function Ze(e,t,n){const r=E(),o=ho(r,e,t,n);return o!==G&&On(r,rt(),o),Ze}function La(e,t,n,r,o){const i=E(),s=po(i,e,t,n,r,o);return s!==G&&On(i,rt(),s),La}const br=void 0;var UT=["en",[["a","p"],["AM","PM"],br],[["AM","PM"],br,br],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],br,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],br,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",br,"{1} 'at' {0}",br],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function BT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let wo={};function ot(e){const t=function zT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=hv(t);if(n)return n;const r=t.split("-")[0];if(n=hv(r),n)return n;if("en"===r)return UT;throw new M(701,!1)}function hv(e){return e in wo||(wo[e]=fe.ng&&fe.ng.common&&fe.ng.common.locales&&fe.ng.common.locales[e]),wo[e]}var A=(()=>((A=A||{})[A.LocaleId=0]="LocaleId",A[A.DayPeriodsFormat=1]="DayPeriodsFormat",A[A.DayPeriodsStandalone=2]="DayPeriodsStandalone",A[A.DaysFormat=3]="DaysFormat",A[A.DaysStandalone=4]="DaysStandalone",A[A.MonthsFormat=5]="MonthsFormat",A[A.MonthsStandalone=6]="MonthsStandalone",A[A.Eras=7]="Eras",A[A.FirstDayOfWeek=8]="FirstDayOfWeek",A[A.WeekendRange=9]="WeekendRange",A[A.DateFormat=10]="DateFormat",A[A.TimeFormat=11]="TimeFormat",A[A.DateTimeFormat=12]="DateTimeFormat",A[A.NumberSymbols=13]="NumberSymbols",A[A.NumberFormats=14]="NumberFormats",A[A.CurrencyCode=15]="CurrencyCode",A[A.CurrencySymbol=16]="CurrencySymbol",A[A.CurrencyName=17]="CurrencyName",A[A.Currencies=18]="Currencies",A[A.Directionality=19]="Directionality",A[A.PluralCase=20]="PluralCase",A[A.ExtraData=21]="ExtraData",A))();const Eo="en-US";let pv=Eo;function rd(e,t,n,r,o){if(e=B(e),Array.isArray(e))for(let i=0;i>20;if(_r(e)||!e.multi){const h=new ii(l,o,_),p=id(a,t,o?c:c+f,d);-1===p?(Nu(qs(u,s),i,a),od(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=id(a,t,c+f,d),p=id(a,t,c,c+f),D=p>=0&&n[p];if(o&&!D||!o&&!(h>=0&&n[h])){Nu(qs(u,s),i,a);const b=function jA(e,t,n,r,o){const i=new ii(e,n,_);return i.multi=[],i.index=t,i.componentProviders=0,Hv(i,o,r&&!n),i}(o?$A:HA,n.length,o,r,l);!o&&D&&(n[p].providerFactory=b),od(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(b),s.push(b)}else od(i,e,h>-1?h:p,Hv(n[o?p:h],l,!o&&r));!o&&r&&D&&n[p].componentProviders++}}}function od(e,t,n,r){const o=_r(t),i=function kb(e){return!!e.useClass}(t);if(o||i){const l=(i?B(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function Hv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function id(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function VA(e,t,n){const r=K();if(r.firstCreatePass){const o=$t(e);rd(n,r.data,r.blueprint,o,!0),rd(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Mo{}class $v{}class ad extends Mo{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Qm(this);const o=Dt(t);this._bootstrapComponents=Rn(o.bootstrap),this._r3Injector=Pm(t,n,[{provide:Mo,useValue:this},{provide:Ca,useValue:this.componentFactoryResolver},...r],ke(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ld extends $v{constructor(t){super(),this.moduleType=t}create(t){return new ad(this.moduleType,t,[])}}class jv extends Mo{constructor(t){super(),this.componentFactoryResolver=new Qm(this),this.instance=null;const n=new pc([...t.providers,{provide:Mo,useValue:this},{provide:Ca,useValue:this.componentFactoryResolver}],t.parent||ha(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function ud(e,t,n=null){return new jv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let zA=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=om(0,n.type),o=r.length>0?ud([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=x({token:e,providedIn:"environment",factory:()=>new e(N(an))}),e})();function Bv(e){e.getStandaloneInjector=t=>t.get(zA).getOrCreateStandaloneInjector(e)}function dd(e,t,n){const r=nt()+e,o=E();return o[r]===G?cn(o,r,n?t.call(n):t()):function Ai(e,t){return e[t]}(o,r)}function Ba(e,t,n,r){return function Yv(e,t,n,r,o,i){const s=t+n;return Je(e,s,o)?cn(e,s+1,i?r.call(i,o):r(o)):$i(e,s+1)}(E(),nt(),e,t,n,r)}function $i(e,t){const n=e[t];return n===G?void 0:n}function Sr(e,t){const n=K();let r;const o=e+X;n.firstCreatePass?(r=function a2(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=pr(r.type)),s=at(_);try{const a=Ws(!1),l=i();return Ws(a),function BI(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,E(),o,l),l}finally{at(s)}}function Ir(e,t,n,r){const o=e+X,i=E(),s=function qr(e,t){return e[t]}(i,o);return function ji(e,t){return e[T].data[t].pure}(i,o)?function Qv(e,t,n,r,o,i,s){const a=t+n;return Er(e,a,o,i)?cn(e,a+2,s?r.call(s,o,i):r(o,i)):$i(e,a+2)}(i,nt(),t,s.transform,n,r,s):s.transform(n,r)}function fd(e){return t=>{setTimeout(e,void 0,t)}}const Me=class f2 extends Dn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=fd(i),o&&(o=fd(o)),s&&(s=fd(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof Tt&&t.add(a),a}};function h2(){return this._results[Symbol.iterator]()}class hd{get changes(){return this._changes||(this._changes=new Me)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=hd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=h2)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function Pt(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function lM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=m2,e})();const p2=Pn,g2=class extends p2{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const o=this._declarationTContainer.tView,i=wa(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[ti]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[en];return null!==a&&(i[en]=a.createEmbeddedView(o)),Hc(o,i,t),new Ii(i)}};function m2(){return Ua(We(),E())}function Ua(e,t){return 4&e.type?new g2(t,e,lo(e,t)):null}let zt=(()=>{class e{}return e.__NG_ELEMENT_ID__=E2,e})();function E2(){return iC(We(),E())}const M2=zt,rC=class extends M2{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return lo(this._hostTNode,this._hostLView)}get injector(){return new Xr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Au(this._hostTNode,this._hostLView);if(Yp(t)){const n=Gs(t,this._hostLView),r=zs(t);return new Xr(n[T].data[r+8],n)}return new Xr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=oC(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ge}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function ai(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const v=n||{};a=v.index,r=v.injector,o=v.projectableNodes,i=v.environmentInjector||v.ngModuleRef}const l=s?t:new Ti(re(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const D=(s?u:this.parentInjector).get(an,null);D&&(i=D)}re(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[T];if(function bE(e){return ct(e[Ce])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[Ce],c=new rC(u,u[Xe],u[Ce]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function XM(e,t,n,r){const o=Ge+r,i=n.length;r>0&&(n[o-1][Ht]=t),r0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=Ge;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=I(Sd,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Pi(i))n.push(i);else if(Cy(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),NC=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const xn=new O("LocaleId",{providedIn:"root",factory:()=>I(xn,L.Optional|L.SkipSelf)||function tN(){return typeof $localize<"u"&&$localize.locale||Eo}()});class rN{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let RC=(()=>{class e{compileModuleSync(n){return new ld(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Rn(Dt(n).declarations).reduce((s,a)=>{const l=re(a);return l&&s.push(new Ti(l)),s},[]);return new rN(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sN=(()=>Promise.resolve(0))();function Td(e){typeof Zone>"u"?sN.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function xC(...e){}class ve{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Me(!1),this.onMicrotaskEmpty=new Me(!1),this.onStable=new Me(!1),this.onError=new Me(!1),typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function aN(){let e=fe.requestAnimationFrame,t=fe.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function cN(e){const t=()=>{!function uN(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(fe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Nd(e),e.isCheckStableRunning=!0,Ad(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Nd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return kC(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),FC(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return kC(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),FC(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Nd(e),Ad(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ve.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(ve.isInAngularZone())throw new M(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,lN,xC,xC);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const lN={};function Ad(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Nd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function kC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function FC(e){e._nesting--,Ad(e)}class dN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Me,this.onMicrotaskEmpty=new Me,this.onStable=new Me,this.onError=new Me}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const LC=new O("",{providedIn:"root",factory:VC});function VC(){const e=I(ve);let t=!0;return function M1(...e){const t=Yo(e),n=function y1(e,t){return"number"==typeof Ql(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?At(r[0]):Hr(n)(xe(r,t)):Kt}(new be(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new be(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ve.assertNotInAngularZone(),Td(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ve.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function b1(e={}){const{connector:t=(()=>new Dn),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},p=()=>{const v=s;h(),v?.unsubscribe()};return Ue((v,D)=>{u++,!d&&!c&&f();const b=l=l??t();D.add(()=>{u--,0===u&&!d&&!c&&(a=Xl(p,o))}),b.subscribe(D),!s&&u>0&&(s=new Zo({next:g=>b.next(g),error:g=>{d=!0,f(),a=Xl(h,n,g),b.error(g)},complete:()=>{c=!0,f(),a=Xl(h,r),b.complete()}}),At(v).subscribe(s))})(i)}}()))}const HC=new O(""),Wa=new O("");let Pd,Rd=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Pd||(function fN(e){Pd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.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:()=>{ve.assertNotInAngularZone(),Td(()=>{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())Td(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(N(ve),N(Od),N(Wa))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Od=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Pd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Qn=null;const $C=new O("AllowMultipleToken"),xd=new O("PlatformDestroyListeners"),kd=new O("appBootstrapListener");class BC{constructor(t,n){this.name=t,this.token=n}}function zC(e,t,n=[]){const r=`Platform: ${t}`,o=new O(r);return(i=[])=>{let s=Fd();if(!s||s.injector.get($C,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function gN(e){if(Qn&&!Qn.get($C,!1))throw new M(400,!1);(function jC(){!function pE(e){Dp=e}(()=>{throw new M(600,!1)})})(),Qn=e;const t=e.get(WC);(function UC(e){e.get(um,null)?.forEach(n=>n())})(e)}(function GC(e=[],t){return ln.create({name:t,providers:[{provide:fc,useValue:"platform"},{provide:xd,useValue:new Set([()=>Qn=null])},...e]})}(a,r))}return function yN(e){const t=Fd();if(!t)throw new M(401,!1);return t}()}}function Fd(){return Qn?.get(WC)??null}let WC=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function vN(e="zone.js",t){return"noop"===e?new dN:"zone.js"===e?new ve(t):e}(r?.ngZone,function qC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function UA(e,t,n){return new ad(e,t,n)}(n.moduleType,this.injector,function KC(e){return[{provide:ve,useFactory:e},{provide:Ci,multi:!0,useFactory:()=>{const t=I(_N,{optional:!0});return()=>t.initialize()}},{provide:XC,useFactory:CN},{provide:LC,useFactory:VC}]}(()=>o)),s=i.injector.get(wr,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{qa(this._modules,i),a.unsubscribe()})}),function ZC(e,t,n){try{const r=n();return Pi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Id);return a.runInitializers(),a.donePromise.then(()=>(function gv(e){Nt(e,"Expected localeId to be defined"),"string"==typeof e&&(pv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(xn,Eo)||Eo),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=YC({},r);return function hN(e,t,n){const r=new ld(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Io);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new M(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new M(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(xd,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(N(ln))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function YC(e,t){return Array.isArray(t)?t.reduce(YC,e):{...e,...t}}let Io=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=I(XC),this.componentTypes=[],this.components=[],this.isStable=I(LC),this._injector=I(an)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof mm;if(!this._injector.get(Id).done)throw!o&&function jr(e){const t=re(e)||Qe(e)||ut(e);return null!==t&&t.standalone}(n),new M(405,!1);let s;s=o?n:this._injector.get(Ca).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function pN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Mo),u=s.create(ln.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(HC,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),qa(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new M(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;qa(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(kd,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>qa(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new M(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function qa(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const XC=new O("",{providedIn:"root",factory:()=>I(wr).handleError.bind(void 0)});function CN(){const e=I(ve),t=I(wr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let _N=(()=>{class e{constructor(){this.zone=I(ve),this.applicationRef=I(Io)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Za=(()=>{class e{}return e.__NG_ELEMENT_ID__=wN,e})();function wN(e){return function EN(e,t,n){if(hr(e)&&!n){const r=ft(e.index,t);return new Ii(r,r)}return 47&e.type?new Ii(t[Ae],t):null}(We(),E(),16==(16&e))}class n_{constructor(){}supports(t){return Ia(t)}create(t){return new AN(t)}}const TN=(e,t)=>t;class AN{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||TN}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new NN(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new r_),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new r_),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class NN{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class RN{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class r_{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new RN,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function o_(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new PN(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class PN{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function s_(){return new Xa([new n_])}let Xa=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||s_()),deps:[[e,new Js,new Ks]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new M(901,!1)}}return e.\u0275prov=x({token:e,providedIn:"root",factory:s_}),e})();function a_(){return new Gi([new i_])}let Gi=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||a_()),deps:[[e,new Js,new Ks]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new M(901,!1)}}return e.\u0275prov=x({token:e,providedIn:"root",factory:a_}),e})();const FN=zC(null,"core",[]);let LN=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(N(Io))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({}),e})(),h_=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=I(ve),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(n=>{this.resolve=n})})}add(){if(this.completed)return-1;const n=this.taskId++;return this.collection.add(n),n}remove(n){this.completed||(this.collection.delete(n),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function To(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Ud=null;function Xn(){return Ud}class YN{}const St=new O("DocumentToken");let zd=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(XN)},providedIn:"platform"}),e})();const QN=new O("Location Initialized");let XN=(()=>{class e extends zd{constructor(){super(),this._doc=I(St),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Xn().getBaseHref(this._doc)}onPopState(n){const r=Xn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Xn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function Gd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function g_(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function kn(e){return e&&"?"!==e[0]?"?"+e:e}let Kn=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(y_)},providedIn:"root"}),e})();const m_=new O("appBaseHref");let y_=(()=>{class e extends Kn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(St).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Gd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+kn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+kn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+kn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(N(zd),N(m_,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),v_=(()=>{class e extends Kn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Gd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+kn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+kn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(N(zd),N(m_,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Wd=(()=>{class e{constructor(n){this._subject=new Me,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function eR(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(g_(C_(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+kn(r))}normalize(n){return e.stripTrailingSlash(function JN(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,C_(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+kn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+kn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=kn,e.joinWithSlash=Gd,e.stripTrailingSlash=g_,e.\u0275fac=function(n){return new(n||e)(N(Kn))},e.\u0275prov=x({token:e,factory:function(){return function KN(){return new Wd(N(Kn))}()},providedIn:"root"}),e})();function C_(e){return e.replace(/\/index.html$/,"")}var Se=(()=>((Se=Se||{})[Se.Format=0]="Format",Se[Se.Standalone=1]="Standalone",Se))(),Q=(()=>((Q=Q||{})[Q.Narrow=0]="Narrow",Q[Q.Abbreviated=1]="Abbreviated",Q[Q.Wide=2]="Wide",Q[Q.Short=3]="Short",Q))(),De=(()=>((De=De||{})[De.Short=0]="Short",De[De.Medium=1]="Medium",De[De.Long=2]="Long",De[De.Full=3]="Full",De))(),F=(()=>((F=F||{})[F.Decimal=0]="Decimal",F[F.Group=1]="Group",F[F.List=2]="List",F[F.PercentSign=3]="PercentSign",F[F.PlusSign=4]="PlusSign",F[F.MinusSign=5]="MinusSign",F[F.Exponential=6]="Exponential",F[F.SuperscriptingExponent=7]="SuperscriptingExponent",F[F.PerMille=8]="PerMille",F[F.Infinity=9]="Infinity",F[F.NaN=10]="NaN",F[F.TimeSeparator=11]="TimeSeparator",F[F.CurrencyDecimal=12]="CurrencyDecimal",F[F.CurrencyGroup=13]="CurrencyGroup",F))();function Ja(e,t){return Ft(ot(e)[A.DateFormat],t)}function el(e,t){return Ft(ot(e)[A.TimeFormat],t)}function tl(e,t){return Ft(ot(e)[A.DateTimeFormat],t)}function kt(e,t){const n=ot(e),r=n[A.NumberSymbols][t];if(typeof r>"u"){if(t===F.CurrencyDecimal)return n[A.NumberSymbols][F.Decimal];if(t===F.CurrencyGroup)return n[A.NumberSymbols][F.Group]}return r}function D_(e){if(!e[A.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[A.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ft(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Zd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const hR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Wi={},pR=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var He=(()=>((He=He||{})[He.Short=0]="Short",He[He.ShortGMT=1]="ShortGMT",He[He.Long=2]="Long",He[He.Extended=3]="Extended",He))(),V=(()=>((V=V||{})[V.FullYear=0]="FullYear",V[V.Month=1]="Month",V[V.Date=2]="Date",V[V.Hours=3]="Hours",V[V.Minutes=4]="Minutes",V[V.Seconds=5]="Seconds",V[V.FractionalSeconds=6]="FractionalSeconds",V[V.Day=7]="Day",V))(),Z=(()=>((Z=Z||{})[Z.DayPeriods=0]="DayPeriods",Z[Z.Days=1]="Days",Z[Z.Months=2]="Months",Z[Z.Eras=3]="Eras",Z))();function gR(e,t,n,r){let o=function MR(e){if(M_(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return nl(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(hR))return function bR(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,l,u),t}(r)}const t=new Date(e);if(!M_(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Fn(n,t)||t;let a,s=[];for(;t;){if(a=pR.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let l=o.getTimezoneOffset();r&&(l=E_(r,l),o=function ER(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function wR(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(E_(t,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function DR(e){if(Qd[e])return Qd[e];let t;switch(e){case"G":case"GG":case"GGG":t=he(Z.Eras,Q.Abbreviated);break;case"GGGG":t=he(Z.Eras,Q.Wide);break;case"GGGGG":t=he(Z.Eras,Q.Narrow);break;case"y":t=Oe(V.FullYear,1,0,!1,!0);break;case"yy":t=Oe(V.FullYear,2,0,!0,!0);break;case"yyy":t=Oe(V.FullYear,3,0,!1,!0);break;case"yyyy":t=Oe(V.FullYear,4,0,!1,!0);break;case"Y":t=sl(1);break;case"YY":t=sl(2,!0);break;case"YYY":t=sl(3);break;case"YYYY":t=sl(4);break;case"M":case"L":t=Oe(V.Month,1,1);break;case"MM":case"LL":t=Oe(V.Month,2,1);break;case"MMM":t=he(Z.Months,Q.Abbreviated);break;case"MMMM":t=he(Z.Months,Q.Wide);break;case"MMMMM":t=he(Z.Months,Q.Narrow);break;case"LLL":t=he(Z.Months,Q.Abbreviated,Se.Standalone);break;case"LLLL":t=he(Z.Months,Q.Wide,Se.Standalone);break;case"LLLLL":t=he(Z.Months,Q.Narrow,Se.Standalone);break;case"w":t=Yd(1);break;case"ww":t=Yd(2);break;case"W":t=Yd(1,!0);break;case"d":t=Oe(V.Date,1);break;case"dd":t=Oe(V.Date,2);break;case"c":case"cc":t=Oe(V.Day,1);break;case"ccc":t=he(Z.Days,Q.Abbreviated,Se.Standalone);break;case"cccc":t=he(Z.Days,Q.Wide,Se.Standalone);break;case"ccccc":t=he(Z.Days,Q.Narrow,Se.Standalone);break;case"cccccc":t=he(Z.Days,Q.Short,Se.Standalone);break;case"E":case"EE":case"EEE":t=he(Z.Days,Q.Abbreviated);break;case"EEEE":t=he(Z.Days,Q.Wide);break;case"EEEEE":t=he(Z.Days,Q.Narrow);break;case"EEEEEE":t=he(Z.Days,Q.Short);break;case"a":case"aa":case"aaa":t=he(Z.DayPeriods,Q.Abbreviated);break;case"aaaa":t=he(Z.DayPeriods,Q.Wide);break;case"aaaaa":t=he(Z.DayPeriods,Q.Narrow);break;case"b":case"bb":case"bbb":t=he(Z.DayPeriods,Q.Abbreviated,Se.Standalone,!0);break;case"bbbb":t=he(Z.DayPeriods,Q.Wide,Se.Standalone,!0);break;case"bbbbb":t=he(Z.DayPeriods,Q.Narrow,Se.Standalone,!0);break;case"B":case"BB":case"BBB":t=he(Z.DayPeriods,Q.Abbreviated,Se.Format,!0);break;case"BBBB":t=he(Z.DayPeriods,Q.Wide,Se.Format,!0);break;case"BBBBB":t=he(Z.DayPeriods,Q.Narrow,Se.Format,!0);break;case"h":t=Oe(V.Hours,1,-12);break;case"hh":t=Oe(V.Hours,2,-12);break;case"H":t=Oe(V.Hours,1);break;case"HH":t=Oe(V.Hours,2);break;case"m":t=Oe(V.Minutes,1);break;case"mm":t=Oe(V.Minutes,2);break;case"s":t=Oe(V.Seconds,1);break;case"ss":t=Oe(V.Seconds,2);break;case"S":t=Oe(V.FractionalSeconds,1);break;case"SS":t=Oe(V.FractionalSeconds,2);break;case"SSS":t=Oe(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ol(He.Short);break;case"ZZZZZ":t=ol(He.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ol(He.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ol(He.Long);break;default:return null}return Qd[e]=t,t}(c);u+=d?d(o,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function nl(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Fn(e,t){const n=function tR(e){return ot(e)[A.LocaleId]}(e);if(Wi[n]=Wi[n]||{},Wi[n][t])return Wi[n][t];let r="";switch(t){case"shortDate":r=Ja(e,De.Short);break;case"mediumDate":r=Ja(e,De.Medium);break;case"longDate":r=Ja(e,De.Long);break;case"fullDate":r=Ja(e,De.Full);break;case"shortTime":r=el(e,De.Short);break;case"mediumTime":r=el(e,De.Medium);break;case"longTime":r=el(e,De.Long);break;case"fullTime":r=el(e,De.Full);break;case"short":const o=Fn(e,"shortTime"),i=Fn(e,"shortDate");r=rl(tl(e,De.Short),[o,i]);break;case"medium":const s=Fn(e,"mediumTime"),a=Fn(e,"mediumDate");r=rl(tl(e,De.Medium),[s,a]);break;case"long":const l=Fn(e,"longTime"),u=Fn(e,"longDate");r=rl(tl(e,De.Long),[l,u]);break;case"full":const c=Fn(e,"fullTime"),d=Fn(e,"fullDate");r=rl(tl(e,De.Full),[c,d])}return r&&(Wi[n][t]=r),r}function rl(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return null!=t&&r in t?t[r]:n})),e}function Wt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===V.Hours)0===a&&-12===n&&(a=12);else if(e===V.FractionalSeconds)return function mR(e,t){return Wt(e,3).substring(0,t)}(a,t);const l=kt(s,F.MinusSign);return Wt(a,t,l,r,o)}}function he(e,t,n=Se.Format,r=!1){return function(o,i){return function vR(e,t,n,r,o,i){switch(n){case Z.Months:return function oR(e,t,n){const r=ot(e),i=Ft([r[A.MonthsFormat],r[A.MonthsStandalone]],t);return Ft(i,n)}(t,o,r)[e.getMonth()];case Z.Days:return function rR(e,t,n){const r=ot(e),i=Ft([r[A.DaysFormat],r[A.DaysStandalone]],t);return Ft(i,n)}(t,o,r)[e.getDay()];case Z.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function lR(e){const t=ot(e);return D_(t),(t[A.ExtraData][2]||[]).map(r=>"string"==typeof r?Zd(r):[Zd(r[0]),Zd(r[1])])}(t),c=function uR(e,t,n){const r=ot(e);D_(r);const i=Ft([r[A.ExtraData][0],r[A.ExtraData][1]],t)||[];return Ft(i,n)||[]}(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,v=s>=h.hours&&a>=h.minutes,D=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case He.Short:return(o>=0?"+":"")+Wt(s,2,i)+Wt(Math.abs(o%60),2,i);case He.ShortGMT:return"GMT"+(o>=0?"+":"")+Wt(s,1,i);case He.Long:return"GMT"+(o>=0?"+":"")+Wt(s,2,i)+":"+Wt(Math.abs(o%60),2,i);case He.Extended:return 0===r?"Z":(o>=0?"+":"")+Wt(s,2,i)+":"+Wt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const CR=0,il=4;function w_(e){return nl(e.getFullYear(),e.getMonth(),e.getDate()+(il-e.getDay()))}function Yd(e,t=!1){return function(n,r){let o;if(t){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=w_(n),s=function _R(e){const t=nl(e,CR,1).getDay();return nl(e,0,1+(t<=il?il:il+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Wt(o,e,kt(r,F.MinusSign))}}function sl(e,t=!1){return function(n,r){return Wt(w_(n).getFullYear(),e,kt(r,F.MinusSign),t)}}const Qd={};function E_(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function M_(e){return e instanceof Date&&!isNaN(e.valueOf())}function T_(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}const nf=/\s+/,A_=[];let N_=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this.initialClasses=A_,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(nf):A_}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(nf):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const o=this.stateMap.get(n);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){(n=n.trim()).length>0&&n.split(nf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(n){return new(n||e)(_(Xa),_(Gi),_(Mt),_(Nn))},e.\u0275dir=$({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class VR{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Jn=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new VR(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),O_(a,o)}});for(let o=0,i=r.length;o{O_(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(_(zt),_(Pn),_(Xa))},e.\u0275dir=$({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function O_(e,t){e.context.$implicit=t.item}let rf=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new HR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){P_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){P_("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(_(zt),_(Pn))},e.\u0275dir=$({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class HR{constructor(){this.$implicit=null,this.ngIf=null}}function P_(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ke(t)}'.`)}const KR=new O("DATE_PIPE_DEFAULT_TIMEZONE"),JR=new O("DATE_PIPE_DEFAULT_OPTIONS");let Zi=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(null==n||""===n||n!=n)return null;try{return gR(n,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function qt(e,t){return new M(2100,!1)}()}}}return e.\u0275fac=function(n){return new(n||e)(_(xn,16),_(KR,24),_(JR,24))},e.\u0275pipe=lt({name:"date",type:e,pure:!0,standalone:!0}),e})(),u3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({}),e})();function L_(e){return"server"===e}let h3=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new p3(N(St),window)}),e})();class p3{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function g3(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=V_(this.window.history)||V_(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function V_(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class H_{}class B3 extends YN{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ff extends B3{static makeCurrent(){!function ZN(e){Ud||(Ud=e)}(new ff)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function U3(){return Qi=Qi||document.querySelector("base"),Qi?Qi.getAttribute("href"):null}();return null==n?null:function z3(e){cl=cl||document.createElement("a"),cl.setAttribute("href",e);const t=cl.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Qi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return T_(document.cookie,t)}}let cl,Qi=null,W3=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const hf=new O("EventManagerPlugins");let z_=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(N(hf),N(ve))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class G_{constructor(t){this._doc=t}}const pf="ng-app-id";let W_=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=L_(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${pf}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(pf),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(pf,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(N(St),N(pa),N(cm,8),N(Dr))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const gf={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/"},mf=/%COMP%/g,Q3=new O("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Z_(e,t){return t.map(n=>n.replace(mf,e))}let Y_=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=L_(a),this.defaultRenderer=new yf(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ct.ShadowDom&&(r={...r,encapsulation:Ct.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof X_?o.applyToHost(n):o instanceof vf&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case Ct.Emulated:i=new X_(l,u,r,this.appId,c,s,a,d);break;case Ct.ShadowDom:return new eO(l,u,n,r,s,a,this.nonce,d);default:i=new vf(l,u,r,c,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return e.\u0275fac=function(n){return new(n||e)(N(z_),N(W_),N(pa),N(Q3),N(St),N(Dr),N(ve),N(cm))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class yf{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(gf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Q_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Q_(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new M(5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=gf[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=gf[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ht.DashCase|ht.Important)?t.style.setProperty(n,r,o&ht.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ht.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Xn().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&(n.preventDefault(),n.returnValue=!1)}}}function Q_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class eO extends yf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=Z_(o.id,o.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class vf extends yf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?Z_(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class X_ extends vf{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function X3(e){return"_ngcontent-%COMP%".replace(mf,e)}(u),this.hostAttr=function K3(e){return"_nghost-%COMP%".replace(mf,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let tO=(()=>{class e extends G_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(N(St))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const K_=["alt","control","meta","shift"],nO={"\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"},rO={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let oO=(()=>{class e extends G_{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),K_.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=nO[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),K_.forEach(s=>{s!==o&&(0,rO[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(N(St))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const lO=zC(FN,"browser",[{provide:Dr,useValue:"browser"},{provide:um,useValue:function iO(){ff.makeCurrent()},multi:!0},{provide:St,useFactory:function aO(){return function cb(e){tc=e}(document),document},deps:[]}]),uO=new O(""),tD=[{provide:Wa,useClass:class G3{addToWindow(t){fe.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new M(5103,!1);return i},fe.getAllAngularTestabilities=()=>t.getAllTestabilities(),fe.getAllAngularRootElements=()=>t.getAllRootElements(),fe.frameworkStabilizers||(fe.frameworkStabilizers=[]),fe.frameworkStabilizers.push(r=>{const o=fe.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Xn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:HC,useClass:Rd,deps:[ve,Od,Wa]},{provide:Rd,useClass:Rd,deps:[ve,Od,Wa]}],nD=[{provide:fc,useValue:"root"},{provide:wr,useFactory:function sO(){return new wr},deps:[]},{provide:hf,useClass:tO,multi:!0,deps:[St,ve,Dr]},{provide:hf,useClass:oO,multi:!0,deps:[St]},Y_,W_,z_,{provide:vm,useExisting:Y_},{provide:H_,useClass:W3,deps:[]},[]];let cO=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:pa,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(N(uO,12))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({providers:[...nD,...tD],imports:[u3,LN]}),e})(),rD=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(N(St))},e.\u0275prov=x({token:e,factory:function(n){let r=null;return r=n?new n:function fO(){return new rD(N(St))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:yO}=Array,{getPrototypeOf:vO,prototype:CO,keys:_O}=Object;function aD(e){if(1===e.length){const t=e[0];if(yO(t))return{args:t,keys:null};if(function DO(e){return e&&"object"==typeof e&&vO(e)===CO}(t)){const n=_O(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:wO}=Array;function lD(e){return ne(t=>function EO(e,t){return wO(t)?e(...t):e(t)}(e,t))}function uD(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let cD=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(_(Nn),_(Mt))},e.\u0275dir=$({type:e}),e})(),Ar=(()=>{class e extends cD{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=qe(e)))(r||e)}}(),e.\u0275dir=$({type:e,features:[le]}),e})();const pn=new O("NgValueAccessor"),bO={provide:pn,useExisting:de(()=>dl),multi:!0};let dl=(()=>{class e extends Ar{writeValue(n){this.setProperty("checked",n)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=qe(e)))(r||e)}}(),e.\u0275dir=$({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&P("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[ye([bO]),le]}),e})();const SO={provide:pn,useExisting:de(()=>Zt),multi:!0},TO=new O("CompositionEventMode");let Zt=(()=>{class e extends cD{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function IO(){const e=Xn()?Xn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(_(Nn),_(Mt),_(TO,8))},e.\u0275dir=$({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&P("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[ye([SO]),le]}),e})();const et=new O("NgValidators"),nr=new O("NgAsyncValidators");function _D(e){return null!=e}function DD(e){return Pi(e)?xe(e):e}function wD(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function ED(e,t){return t.map(n=>n(e))}function MD(e){return e.map(t=>function NO(e){return!e.validate}(t)?t:n=>t.validate(n))}function _f(e){return null!=e?function bD(e){if(!e)return null;const t=e.filter(_D);return 0==t.length?null:function(n){return wD(ED(n,t))}}(MD(e)):null}function Df(e){return null!=e?function SD(e){if(!e)return null;const t=e.filter(_D);return 0==t.length?null:function(n){return function MO(...e){const t=Bh(e),{args:n,keys:r}=aD(e),o=new be(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?uD(r,a):a),i.complete())}))}});return t?o.pipe(lD(t)):o}(ED(n,t).map(DD)).pipe(ne(wD))}}(MD(e)):null}function ID(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function wf(e){return e?Array.isArray(e)?e:[e]:[]}function hl(e,t){return Array.isArray(e)?e.includes(t):e===t}function ND(e,t){const n=wf(t);return wf(e).forEach(o=>{hl(n,o)||n.push(o)}),n}function RD(e,t){return wf(t).filter(n=>!hl(e,n))}class OD{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=_f(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Df(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class st extends OD{get formDirective(){return null}get path(){return null}}class rr extends OD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class PD{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ln=(()=>{class e extends PD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(_(rr,2))},e.\u0275dir=$({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&ka("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[le]}),e})(),xD=(()=>{class e extends PD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(_(st,10))},e.\u0275dir=$({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&ka("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[le]}),e})();const Xi="VALID",gl="INVALID",Ao="PENDING",Ki="DISABLED";function bf(e){return(ml(e)?e.validators:e)||null}function Sf(e,t){return(ml(t)?t.asyncValidators:e)||null}function ml(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class VD{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Xi}get invalid(){return this.status===gl}get pending(){return this.status==Ao}get disabled(){return this.status===Ki}get enabled(){return this.status!==Ki}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ND(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ND(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(RD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(RD(t,this._rawAsyncValidators))}hasValidator(t){return hl(this._rawValidators,t)}hasAsyncValidator(t){return hl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ao,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Ki,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Xi,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xi||this.status===Ao)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ki:Xi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ao,this._hasOwnPendingAsyncValidator=!0;const n=DD(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?Ki:this.errors?gl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ao)?Ao:this._anyControlsHaveStatus(gl)?gl:Xi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ml(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function xO(e){return Array.isArray(e)?_f(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function kO(e){return Array.isArray(e)?Df(e):e||null}(this._rawAsyncValidators)}}class If extends VD{constructor(t,n,r){super(bf(n),Sf(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function LD(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new M(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function FD(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new M(1e3,"");if(!r[n])throw new M(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const No=new O("CallSetDisabledState",{providedIn:"root",factory:()=>yl}),yl="always";function Ji(e,t,n=yl){Tf(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function VO(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&HD(e,t)})}(e,t),function $O(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function HO(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&HD(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function LO(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function _l(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Tf(e,t){const n=function TD(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(ID(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function AD(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(ID(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();_l(t._rawValidators,o),_l(t._rawAsyncValidators,o)}function HD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const GO={provide:st,useExisting:de(()=>wl)},es=(()=>Promise.resolve())();let wl=(()=>{class e extends st{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Me,this.form=new If({},_f(n),Df(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){es.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Ji(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){es.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){es.then(()=>{const r=this._findContainer(n.path),o=new If({});(function $D(e,t){Tf(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){es.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){es.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function jD(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(_(et,10),_(nr,10),_(No,8))},e.\u0275dir=$({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&P("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([GO]),le]}),e})();function BD(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function UD(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const zD=class extends VD{constructor(t=null,n,r){super(bf(n),Sf(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ml(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=UD(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){BD(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){BD(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){UD(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},ZO={provide:rr,useExisting:de(()=>gn)},qD=(()=>Promise.resolve())();let gn=(()=>{class e extends rr{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new zD,this._registered=!1,this.name="",this.update=new Me,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Rf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Zt?n=i:function UO(e){return Object.getPrototypeOf(e.constructor)===Ar}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Nf(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ji(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){qD.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&To(r);qD.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function vl(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(_(st,9),_(et,10),_(nr,10),_(pn,10),_(Za,8),_(No,8))},e.\u0275dir=$({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ye([ZO]),le,Ot]}),e})(),ZD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=$({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),QD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({}),e})(),vP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({imports:[QD]}),e})(),_P=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:No,useValue:n.callSetDisabledState??yl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({imports:[vP]}),e})();function j(...e){return xe(e,Yo(e))}function Ro(e,t){return ce(t)?ze(e,t,1):ze(e,1)}function Vn(e,t){return Ue((n,r)=>{let o=0;n.subscribe($e(r,i=>e.call(t,i,o++)&&r.next(i)))})}function mn(e,t){return Ue((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe($e(r,l=>{o?.unsubscribe();let u=0;const c=i++;At(e(l,c)).subscribe(o=$e(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class El{}class Vf{}class Ye{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ye?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Ye;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Ye?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class DP{encodeKey(t){return g0(t)}encodeValue(t){return g0(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const EP=/%(\d[a-f0-9])/gi,MP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function g0(e){return encodeURIComponent(e).replace(EP,(t,n)=>MP[n]??t)}function Ml(e){return`${e}`}class or{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new DP,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function wP(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(Ml):[Ml(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new or({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(Ml(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(Ml(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class bP{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function m0(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function y0(e){return typeof Blob<"u"&&e instanceof Blob}function v0(e){return typeof FormData<"u"&&e instanceof FormData}class ts{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function SP(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new Ye),this.context||(this.context=new bP),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),u)),new ts(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Pe=(()=>((Pe=Pe||{})[Pe.Sent=0]="Sent",Pe[Pe.UploadProgress=1]="UploadProgress",Pe[Pe.ResponseHeader=2]="ResponseHeader",Pe[Pe.DownloadProgress=3]="DownloadProgress",Pe[Pe.Response=4]="Response",Pe[Pe.User=5]="User",Pe))();class Hf{constructor(t,n=200,r="OK"){this.headers=t.headers||new Ye,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class $f extends Hf{constructor(t={}){super(t),this.type=Pe.ResponseHeader}clone(t={}){return new $f({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Oo extends Hf{constructor(t={}){super(t),this.type=Pe.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Oo({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C0 extends Hf{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function jf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Rr=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof ts)i=n;else{let l,u;l=o.headers instanceof Ye?o.headers:new Ye(o.headers),o.params&&(u=o.params instanceof or?o.params:new or({fromObject:o.params})),i=new ts(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=j(i).pipe(Ro(l=>this.handler.handle(l)));if(n instanceof ts||"events"===o.observe)return s;const a=s.pipe(Vn(l=>l instanceof Oo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ne(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ne(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ne(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ne(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new or).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,jf(o,r))}post(n,r,o={}){return this.request("POST",n,jf(o,r))}put(n,r,o={}){return this.request("PUT",n,jf(o,r))}}return e.\u0275fac=function(n){return new(n||e)(N(El))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function _0(e,t){return t(e)}function TP(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const D0=new O(""),ns=new O(""),w0=new O("");function NP(){let e=null;return(t,n)=>(null===e&&(e=(I(D0,{optional:!0})??[]).reduceRight(TP,_0)),e(t,n))}let E0=(()=>{class e extends El{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(ns),...this.injector.get(w0,[])]));this.chain=r.reduceRight((o,i)=>function AP(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),_0)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(N(Vf),N(an))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const xP=/^\)\]\}',?\n/;let b0=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?xe(r.\u0275loadImpl()):j(null)).pipe(mn(()=>new be(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,S)=>s.setRequestHeader(g,S.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=n.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const g=s.statusText||"OK",S=new Ye(s.getAllResponseHeaders()),k=function kP(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return l=new $f({headers:S,status:s.status,statusText:g,url:k}),l},c=()=>{let{headers:g,status:S,statusText:k,url:Y}=u(),ge=null;204!==S&&(ge=typeof s.response>"u"?s.responseText:s.response),0===S&&(S=ge?200:0);let Go=S>=200&&S<300;if("json"===n.responseType&&"string"==typeof ge){const JF=ge;ge=ge.replace(xP,"");try{ge=""!==ge?JSON.parse(ge):null}catch(e4){ge=JF,Go&&(Go=!1,ge={error:e4,text:ge})}}Go?(i.next(new Oo({body:ge,headers:g,status:S,statusText:k,url:Y||void 0})),i.complete()):i.error(new C0({error:ge,headers:g,status:S,statusText:k,url:Y||void 0}))},d=g=>{const{url:S}=u(),k=new C0({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:S||void 0});i.error(k)};let f=!1;const h=g=>{f||(i.next(u()),f=!0);let S={type:Pe.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(S.total=g.total),"text"===n.responseType&&s.responseText&&(S.partialText=s.responseText),i.next(S)},p=g=>{let S={type:Pe.UploadProgress,loaded:g.loaded};g.lengthComputable&&(S.total=g.total),i.next(S)};let v;s.addEventListener("load",c),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p));const D=()=>{v??=function LP(){const e=setTimeout(()=>{},FP);return()=>clearTimeout(e)}()},b=()=>{v?.()};return s.addEventListener("loadstart",D),s.addEventListener("loadend",b),s.send(a),i.next({type:Pe.Sent}),()=>{s.removeEventListener("loadstart",D),s.removeEventListener("loadend",b),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),v?.(),n.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}}return e.\u0275fac=function(n){return new(n||e)(N(H_))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const FP=2147483647,Bf=new O("XSRF_ENABLED"),S0=new O("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),I0=new O("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class T0{}let $P=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=T_(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(N(St),N(Dr),N(S0))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function jP(e,t){const n=e.url.toLowerCase();if(!I(Bf)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=I(T0).getToken(),o=I(I0);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Te=(()=>((Te=Te||{})[Te.Interceptors=0]="Interceptors",Te[Te.LegacyInterceptors=1]="LegacyInterceptors",Te[Te.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Te[Te.NoXsrfProtection=3]="NoXsrfProtection",Te[Te.JsonpSupport=4]="JsonpSupport",Te[Te.RequestsMadeViaParent=5]="RequestsMadeViaParent",Te))();function Po(e,t){return{\u0275kind:e,\u0275providers:t}}function BP(...e){const t=[Rr,b0,E0,{provide:El,useExisting:E0},{provide:Vf,useExisting:b0},{provide:ns,useValue:jP,multi:!0},{provide:Bf,useValue:!0},{provide:T0,useClass:$P}];for(const n of e)t.push(...n.\u0275providers);return function lc(e){return{\u0275providers:e}}(t)}const A0=new O("LEGACY_INTERCEPTOR_FN");let zP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({providers:[BP(Po(Te.LegacyInterceptors,[{provide:A0,useFactory:NP},{provide:ns,useExisting:A0,multi:!0}]))]}),e})();function ee(e,t,n){const r=ce(e)||t||n?{next:e,error:t,complete:n}:e;return r?Ue((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe($e(i,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),i.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):ur}function pe(e){return Ue((t,n)=>{let i,r=null,o=!1;r=t.subscribe($e(n,void 0,void 0,s=>{i=At(e(s,pe(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}const Or_restServerUrl="https://tds.truyen.network";let Pr=(()=>{class e{constructor(){this.messages=[]}add(n){this.messages.push((new Date).toLocaleTimeString()+") "+n)}clear(){this.messages=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class yn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`ChatMessagesService: ${t}`)}getChatMessages(){return this.http.get(yn.REST_URL,this.httpOptions).pipe(ee(t=>this.log(`fetched ${t.length} messages`)),pe(this.handleError("getChatMessages",[])))}addChatMessage(t,n){return this.http.post(yn.REST_URL,{author:t,text:n},this.httpOptions).pipe(ee(o=>this.log(`added message w/ id=${o.id}`)),pe(this.handleError("addChatMessage")))}}yn.REST_URL=Or_restServerUrl+"/api/chat",yn.\u0275fac=function(t){return new(t||yn)(N(Rr),N(Pr))},yn.\u0275prov=x({token:yn,factory:yn.\u0275fac,providedIn:"root"});const xo="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Uf=Array.from({length:64},(e,t)=>t),bl=e=>Array(e).fill(-1),ir=[...bl(46),0,1,...Uf.slice(54,64),...bl(7),...Uf.slice(2,28),...bl(6),...Uf.slice(28,54),...bl(5)],N0=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],R0=[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946,1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055,3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504,976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],O0=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892],zf=(e,t)=>{if(t<=0||t>e.length)throw Error(`Illegal len: ${t}`);let r,o,n=0;const i=[];for(;n>2&63]),r=(3&r)<<4,n>=t){i.push(xo[63&r]);break}if(o=255&e[n++],r|=o>>4&15,i.push(xo[63&r]),r=(15&o)<<2,n>=t){i.push(xo[63&r]);break}o=255&e[n++],r|=o>>6&3,i.push(xo[63&r]),i.push(xo[63&o])}return i.join("")},Sl="object"==typeof process&&"edge"===process.env.NEXT_RUNTIME?setTimeout:"function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:setTimeout,os=(e,t,n,r)=>{let o,i=e[t],s=e[t+1];return i^=n[0],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[1],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[2],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[3],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[4],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[5],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[6],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[7],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[8],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[9],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[10],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[11],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[12],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[13],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[14],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[15],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[16],e[t]=s^n[17],e[t+1]=i,e},ko=(e,t)=>{let n=0;for(let r=0;r<4;++r)n=n<<8|255&e[t],t=(t+1)%e.length;return{key:n,offp:t}},P0=(e,t,n)=>{const r=t.length,o=n.length;let a,i=0,s=[0,0];for(let l=0;l{const i=O0.slice(),s=i.length;if(n<4||n>31){const f=new Error(`Illegal number of rounds (4-31): ${n}`);if(!1===r)return Promise.reject(f);throw f}if(16!==t.length){const f=new Error(`Illegal salt length: ${t.length} != 16`);if(!1===r)return Promise.reject(f);throw f}n=1<>>0;let a,l,c,u=0;Int32Array?(a=new Int32Array(N0),l=new Int32Array(R0)):(a=N0.slice(),l=R0.slice()),((e,t,n,r)=>{const o=n.length,i=r.length;let l,s=0,a=[0,0];for(let u=0;u{if(o&&o(u/n),!(u>1;c++)os(i,c<<1,a,l);const f=[];for(u=0;u>24&255)>>>0),f.push((i[u]>>16&255)>>>0),f.push((i[u]>>8&255)>>>0),f.push((255&i[u])>>>0);return!1===r?Promise.resolve(f):f}{const f=Date.now();for(;u100)););}if(!1===r)return new Promise(f=>Sl(()=>{d().then(f)}))};if(!1===r)return d();{let f;for(;;)if(typeof(f=d())<"u")return f||[]}},Gf=(e=10)=>{if("number"!=typeof e)throw Error("Illegal arguments: "+typeof e);e<4?e=4:e>31&&(e=31);const t=[];return t.push("$2a$"),e<10&&t.push("0"),t.push(e.toString()),t.push("$"),t.push(zf((e=>{try{let t;t=typeof window<"u"?window.crypto??window.msCrypto:globalThis.crypto;const n=new Uint32Array(16);return t?.getRandomValues(n),Array.from(n)}catch{throw Error("WebCryptoAPI is not available")}})(),16)),t.join("")};const k0=(e,t=10)=>{if("number"==typeof t&&(t=Gf(t)),"string"!=typeof e||"string"!=typeof t)throw Error("Illegal arguments: "+typeof e+", "+typeof t);return function Wf(e,t,n,r){if("string"!=typeof e||"string"!=typeof t){const h=new Error("Invalid string / salt: Not a string");if(!1===n)return Promise.reject(h);throw h}let o,i;if("$"!==t.charAt(0)||"2"!==t.charAt(1)){const h=new Error("Invalid salt version: "+t.substring(0,2));if(!1===n)return Promise.reject(h);throw h}if("$"===t.charAt(2))o="\0",i=3;else{if(o=t.charAt(2),"a"!==o&&"b"!==o&&"y"!==o||"$"!==t.charAt(3)){const h=Error("Invalid salt revision: "+t.substring(2,4));if(!1===n)return Promise.reject(h);throw h}i=4}if(t.charAt(i+2)>"$"){const h=new Error("Missing salt rounds");if(!1===n)return Promise.reject(h);throw h}const l=10*parseInt(t.substring(i,i+1),10)+parseInt(t.substring(i+1,i+2),10),u=t.substring(i+3,i+25),c=(e=>{const t=[];let n=0;return((e,t)=>{((e,t)=>{let n,r=null;for(;null!==(n=null!==r?r:e());)n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n);null!==r&&t(r)})(e,function(n){((e,t)=>{let n=null;for("number"==typeof e&&(n=e,e=()=>null);null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(n>>6&31|192),t(63&n|128)):n<65536?(t(n>>12&15|224),t(n>>6&63|128),t(63&n|128)):(t(n>>18&7|240),t(n>>12&63|128),t(n>>6&63|128),t(63&n|128)),n=null})(n,t)})})(()=>n>=e.length?null:e.charCodeAt(n++),r=>{t.push(r)}),t})(e+=o>="a"?"\0":""),d=((e,t)=>{const n=e.length;let i,s,a,l,u,c,r=0,o=0;const d=[];for(;r>>0,u|=(48&s)>>4,d.push(String.fromCharCode(u)),++o>=16||r>=n)||(c=e.charCodeAt(r++),a=c>>0,u|=(60&a)>>2,d.push(String.fromCharCode(u)),++o>=16||r>=n)));)c=e.charCodeAt(r++),l=c>>0,u|=l,d.push(String.fromCharCode(u)),++o;return d.map(f=>f.charCodeAt(0))})(u),f=h=>{const p=[];return p.push("$2"),o>="a"&&p.push(o),p.push("$"),l<10&&p.push("0"),p.push(l.toString()),p.push("$"),p.push(zf(d,d.length)),p.push(zf(h,4*O0.length-1)),p.join("")};return!1===n?x0(c,d,l,!1,r).then(h=>f(h)):f(x0(c,d,l,!0,r))}(e,t,!0)};class Yt extends Dn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function qf(...e){const t=Yo(e),n=Bh(e),{args:r,keys:o}=aD(e);if(0===r.length)return xe([],t);const i=new be(function sx(e,t,n=ur){return r=>{F0(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=xe(e[l],t);let c=!1;u.subscribe($e(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>uD(o,s):ur));return n?i.pipe(lD(n)):i}function F0(e,t,n){e?wn(n,e,t):t()}const Il=Wo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Zf(...e){return function ax(){return Hr(1)}()(xe(e,Yo(e)))}function L0(e){return new be(t=>{At(e()).subscribe(t)})}function is(e,t){const n=ce(e)?e:()=>e,r=o=>o.error(n());return new be(t?o=>t.schedule(r,0,o):r)}function Yf(){return Ue((e,t)=>{let n=null;e._refCount++;const r=$e(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class V0 extends be{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Th(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Tt;const n=this.getSubject();t.add(this.source.subscribe($e(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Tt.EMPTY)}return t}refCount(){return Yf()(this)}}function Fo(e){return e<=0?()=>Kt:Ue((t,n)=>{let r=0;t.subscribe($e(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Tl(e){return Ue((t,n)=>{let r=!1;t.subscribe($e(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function H0(e=ux){return Ue((t,n)=>{let r=!1;t.subscribe($e(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function ux(){return new Il}function xr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Vn((o,i)=>e(o,i,r)):ur,Fo(1),n?Tl(t):H0(()=>new Il))}function Qf(e){return e<=0?()=>Kt:Ue((t,n)=>{let r=[];t.subscribe($e(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Xf(e){return Ue((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const q="primary",ss=Symbol("RouteTitle");class px{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Lo(e){return new px(e)}function gx(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function j0(e){return e.length>0?e[e.length-1]:null}function sr(e){return function ix(e){return!!e&&(e instanceof be||ce(e.lift)&&ce(e.subscribe))}(e)?e:Pi(e)?xe(Promise.resolve(e)):j(e)}const yx={exact:function z0(e,t,n){if(!kr(e.segments,t.segments)||!Al(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!z0(e.children[r],t.children[r],n))return!1;return!0},subset:G0},B0={exact:function vx(e,t){return vn(e,t)},subset:function Cx(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>$0(e[n],t[n]))},ignored:()=>!0};function U0(e,t,n){return yx[n.paths](e.root,t.root,n.matrixParams)&&B0[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function G0(e,t,n){return W0(e,t,t.segments,n)}function W0(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!kr(o,n)||t.hasChildren()||!Al(o,n,r))}if(e.segments.length===n.length){if(!kr(e.segments,n)||!Al(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!G0(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(kr(e.segments,o)&&Al(e.segments,o,r)&&e.children[q])&&W0(e.children[q],t,i,r)}}function Al(e,t,n){return t.every((r,o)=>B0[n](e[o].parameters,r.parameters))}class Vo{constructor(t=new ue([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lo(this.queryParams)),this._queryParamMap}toString(){return wx.serialize(this)}}class ue{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Nl(this)}}class as{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Lo(this.parameters)),this._parameterMap}toString(){return Y0(this)}}function kr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let ls=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return new Kf},providedIn:"root"}),e})();class Kf{parse(t){const n=new Px(t);return new Vo(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${us(t.root,!0)}`,r=function bx(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Rl(n)}=${Rl(o)}`).join("&"):`${Rl(n)}=${Rl(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function Ex(e){return encodeURI(e)}(t.fragment)}`:""}`}}const wx=new Kf;function Nl(e){return e.segments.map(t=>Y0(t)).join("/")}function us(e,t){if(!e.hasChildren())return Nl(e);if(t){const n=e.children[q]?us(e.children[q],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==q&&r.push(`${o}:${us(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function Dx(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===q&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==q&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===q?[us(e.children[q],!1)]:[`${o}:${us(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[q]?`${Nl(e)}/${n[0]}`:`${Nl(e)}/(${n.join("//")})`}}function q0(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rl(e){return q0(e).replace(/%3B/gi,";")}function Jf(e){return q0(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ol(e){return decodeURIComponent(e)}function Z0(e){return Ol(e.replace(/\+/g,"%20"))}function Y0(e){return`${Jf(e.path)}${function Mx(e){return Object.keys(e).map(t=>`;${Jf(t)}=${Jf(e[t])}`).join("")}(e.parameters)}`}const Sx=/^[^\/()?;#]+/;function eh(e){const t=e.match(Sx);return t?t[0]:""}const Ix=/^[^\/()?;=#]+/,Ax=/^[^=?&#]+/,Rx=/^[^&#]+/;class Px{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ue([],{}):new ue([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[q]=new ue(t,n)),r}parseSegment(){const t=eh(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(t),new as(Ol(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function Tx(e){const t=e.match(Ix);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=eh(this.remaining);o&&(r=o,this.capture(r))}t[Ol(n)]=Ol(r)}parseQueryParam(t){const n=function Nx(e){const t=e.match(Ax);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function Ox(e){const t=e.match(Rx);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Z0(n),i=Z0(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=eh(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new M(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=q);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[q]:new ue([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new M(4011,!1)}}function Q0(e){return e.segments.length>0?new ue([],{[q]:e}):e}function X0(e){const t={};for(const r of Object.keys(e.children)){const i=X0(e.children[r]);if(r===q&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function xx(e){if(1===e.numberOfChildren&&e.children[q]){const t=e.children[q];return new ue(e.segments.concat(t.segments),t.children)}return e}(new ue(e.segments,t))}function Fr(e){return e instanceof Vo}function K0(e){let t;const o=Q0(function n(i){const s={};for(const l of i.children){const u=n(l);s[l.outlet]=u}const a=new ue(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function J0(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return th(o,o,o,n,r);const i=function Fx(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new tw(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([l,u])=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new tw(n,t,r)}(t);if(i.toRoot())return th(o,o,new ue([],{}),n,r);const s=function Lx(e,t,n){if(e.isAbsolute)return new xl(t,!0,0);if(!n)return new xl(t,!1,NaN);if(null===n.parent)return new xl(n,!0,0);const r=Pl(e.commands[0])?0:1;return function Vx(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new M(4005,!1);o=r.segments.length}return new xl(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?ds(s.segmentGroup,s.index,i.commands):nw(s.segmentGroup,s.index,i.commands);return th(o,s.segmentGroup,a,n,r)}function Pl(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function cs(e){return"object"==typeof e&&null!=e&&e.outlets}function th(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:ew(e,t,n);const a=Q0(X0(s));return new Vo(a,i,o)}function ew(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:ew(i,t,n)}),new ue(e.segments,r)}class tw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Pl(r[0]))throw new M(4003,!1);const o=r.find(cs);if(o&&o!==j0(r))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xl{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function nw(e,t,n){if(e||(e=new ue([],{})),0===e.segments.length&&e.hasChildren())return ds(e,t,n);const r=function $x(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(cs(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!ow(l,u,s))return i;r+=2}else{if(!ow(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=nw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ue(e.segments,o)}}function nh(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=nh(new ue([],{}),0,r))}),t}function rw(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function ow(e,t,n){return e==n.path&&vn(t,n.parameters)}const fs="imperative";class Cn{constructor(t,n){this.id=t,this.url=n}}class rh extends Cn{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Lr extends Cn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class kl extends Cn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class hs extends Cn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class oh extends Cn{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Bx extends Cn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ux extends Cn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zx extends Cn{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Gx extends Cn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wx extends Cn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qx{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Zx{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Yx{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qx{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xx{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kx{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iw{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Jx{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ps,this.attachRef=null}}let ps=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Jx,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class sw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=ih(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=ih(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=sh(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return sh(t,this._root).map(n=>n.value)}}function ih(e,t){if(e===t.value)return t;for(const n of t.children){const r=ih(e,n);if(r)return r}return null}function sh(e,t){if(e===t.value)return[t];for(const n of t.children){const r=sh(e,n);if(r.length)return r.unshift(t),r}return[]}class Hn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function Ho(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class aw extends sw{constructor(t,n){super(t),this.snapshot=n,ah(this,t)}toString(){return this.snapshot.toString()}}function lw(e,t){const n=function ek(e,t){const s=new Fl([],{},{},"",{},q,t,null,{});return new cw("",new Hn(s,[]))}(0,t),r=new Yt([new as("",{})]),o=new Yt({}),i=new Yt({}),s=new Yt({}),a=new Yt(""),l=new $n(r,o,s,a,i,q,t,n.root);return l.snapshot=n.root,new aw(new Hn(l,[]),n)}class $n{constructor(t,n,r,o,i,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ne(u=>u[ss]))??j(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}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(ne(t=>Lo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ne(t=>Lo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function uw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function tk(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Fl{get title(){return this.data?.[ss]}constructor(t,n,r,o,i,s,a,l,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Lo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class cw extends sw{constructor(t,n){super(n),this.url=t,ah(this,n)}toString(){return dw(this._root)}}function ah(e,t){t.value._routerState=e,t.children.forEach(n=>ah(e,n))}function dw(e){const t=e.children.length>0?` { ${e.children.map(dw).join(", ")} } `:"";return`${e.value}${t}`}function lh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,vn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),vn(t.params,n.params)||e.paramsSubject.next(n.params),function mx(e,t){if(e.length!==t.length)return!1;for(let n=0;nvn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||uh(e.parent,t.parent))}let ch=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=q,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.parentContexts=I(ps),this.location=I(zt),this.changeDetector=I(Za),this.environmentInjector=I(an),this.inputBinder=I(Ll,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new M(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new nk(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=$({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ot]}),e})();class nk{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===$n?this.route:t===ps?this.childContexts:this.parent.get(t,n)}}const Ll=new O("");let fw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=qf([r.queryParams,r.params,r.data]).pipe(mn(([i,s,a],l)=>(a={...i,...s,...a},0===l?j(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function qN(e){const t=re(e);if(!t)return null;const n=new Ti(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function gs(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function ok(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return gs(e,r,o);return gs(e,r)})}(e,t,n);return new Hn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>gs(e,a)),s}}const r=function ik(e){return new $n(new Yt(e.url),new Yt(e.params),new Yt(e.queryParams),new Yt(e.fragment),new Yt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>gs(e,i));return new Hn(r,o)}}const dh="ngNavigationCancelingError";function hw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Fr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=pw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function pw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[dh]=!0,r.cancellationCode=t,n&&(r.url=n),r}function gw(e){return mw(e)&&Fr(e.url)}function mw(e){return e&&e[dh]}let yw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-component"]],standalone:!0,features:[Bv],decls:1,vars:0,template:function(n,r){1&n&&oe(0,"router-outlet")},dependencies:[ch],encapsulation:2}),e})();function fh(e){const t=e.children&&e.children.map(fh),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==q&&(n.component=yw),n}function Qt(e){return e.outlet||q}function ms(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class fk{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),lh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=Ho(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Ho(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Ho(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const o=Ho(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Kx(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Qx(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(lh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),lh(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=ms(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class vw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Vl{constructor(t,n){this.component=t,this.route=n}}function hk(e,t,n){const r=e._root;return ys(r,t?t._root:null,n,[r.value])}function $o(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function O1(e){return null!==bs(e)}(e)?t.get(e):e:r}function ys(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Ho(t);return e.children.forEach(s=>{(function gk(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function mk(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!kr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!kr(e.url,t.url)||!vn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!uh(e,t)||!vn(e.queryParams,t.queryParams);default:return!uh(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new vw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),ys(e,t,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Vl(a.outlet.component,s))}else s&&vs(t,a,o),o.canActivateChecks.push(new vw(r)),ys(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>vs(a,n.getContext(s),o)),o}function vs(e,t,n){const r=Ho(e),o=e.value;Object.entries(r).forEach(([i,s])=>{vs(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Vl(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function Cs(e){return"function"==typeof e}function Cw(e){return e instanceof Il||"EmptyError"===e?.name}const Hl=Symbol("INITIAL_VALUE");function jo(){return mn(e=>qf(e.map(t=>t.pipe(Fo(1),function lx(...e){const t=Yo(e);return Ue((n,r)=>{(t?Zf(e,n,t):Zf(e,n)).subscribe(r)})}(Hl)))).pipe(ne(t=>{for(const n of t)if(!0!==n){if(n===Hl)return Hl;if(!1===n||n instanceof Vo)return n}return!0}),Vn(t=>t!==Hl),Fo(1)))}function _w(e){return function Xw(...e){return bh(e)}(ee(t=>{if(Fr(t))throw hw(0,t)}),ne(t=>!0===t))}class $l{constructor(t){this.segmentGroup=t||null}}class Dw{constructor(t){this.urlTree=t}}function Bo(e){return is(new $l(e))}function ww(e){return is(new Dw(e))}class Fk{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new M(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return j(r);if(o.numberOfChildren>1||!o.children[q])return is(new M(4e3,!1));o=o.children[q]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Vo(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,o)}),new ue(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new M(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const hh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Lk(e,t,n,r,o){const i=ph(e,t,n);return i.matched?(r=function sk(e,t){return e.providers&&!e._injector&&(e._injector=ud(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function Pk(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?j(o.map(s=>{const a=$o(s,e);return sr(function wk(e){return e&&Cs(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(jo(),_w()):j(!0)}(r,t,n).pipe(ne(s=>!0===s?i:{...hh}))):j(i)}function ph(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...hh}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||gx)(n,e,t);if(!o)return{...hh};const i={};Object.entries(o.posParams??{}).forEach(([a,l])=>{i[a]=l.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Ew(e,t,n,r){return n.length>0&&function $k(e,t,n){return n.some(r=>jl(e,t,r)&&Qt(r)!==q)}(e,n,r)?{segmentGroup:new ue(t,Hk(r,new ue(n,e.children))),slicedSegments:[]}:0===n.length&&function jk(e,t,n){return n.some(r=>jl(e,t,r))}(e,n,r)?{segmentGroup:new ue(e.segments,Vk(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ue(e.segments,e.children),slicedSegments:n}}function Vk(e,t,n,r,o){const i={};for(const s of r)if(jl(e,n,s)&&!o[Qt(s)]){const a=new ue([],{});i[Qt(s)]=a}return{...o,...i}}function Hk(e,t){const n={};n[q]=t;for(const r of e)if(""===r.path&&Qt(r)!==q){const o=new ue([],{});n[Qt(r)]=o}return n}function jl(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class Gk{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new Fk(this.urlSerializer,this.urlTree)}noMatchError(t){return new M(4002,!1)}recognize(){const t=Ew(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,q).pipe(pe(n=>{if(n instanceof Dw)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof $l?this.noMatchError(n):n}),ne(n=>{const r=new Fl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},q,this.rootComponentType,null,{}),o=new Hn(r,n),i=new cw("",o),s=function kx(e,t,n=null,r=null){return J0(K0(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,q).pipe(pe(r=>{throw r instanceof $l?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=uw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0)}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return xe(o).pipe(Ro(i=>{const s=r.children[i],a=function ck(e,t){const n=e.filter(r=>Qt(r)===t);return n.push(...e.filter(r=>Qt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function dx(e,t){return Ue(function cx(e,t,n,r,o){return(i,s)=>{let a=n,l=t,u=0;i.subscribe($e(s,c=>{const d=u++;l=a?e(l,c,d):(a=!0,c),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(e,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),Tl(null),function fx(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Vn((o,i)=>e(o,i,r)):ur,Qf(1),n?Tl(t):H0(()=>new Il))}(),ze(i=>{if(null===i)return Bo(r);const s=Mw(i);return function Wk(e){e.sort((t,n)=>t.value.outlet===q?-1:n.value.outlet===q?1:t.value.outlet.localeCompare(n.value.outlet))}(s),j(s)}))}processSegment(t,n,r,o,i,s){return xe(n).pipe(Ro(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(pe(l=>{if(l instanceof $l)return j(null);throw l}))),xr(a=>!!a),pe(a=>{if(Cw(a))return function Uk(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?j([]):Bo(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function Bk(e,t,n,r){return!!(Qt(e)===r||r!==q&&jl(t,n,e))&&("**"===e.path||ph(t,e,n).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):Bo(o):Bo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?ww(i):this.applyRedirects.lineralizeSegments(r,i).pipe(ze(s=>{const a=new ue(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=ph(n,o,i);if(!a)return Bo(n);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?ww(d):this.applyRedirects.lineralizeSegments(o,d).pipe(ze(f=>this.processSegment(t,r,n,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?j0(o).parameters:{};a=j({snapshot:new Fl(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bw(r),Qt(r),r.component??r._loadedComponent??null,r,Sw(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=Lk(n,r,o,t).pipe(ne(({matched:l,consumedSegments:u,remainingSegments:c,parameters:d})=>l?{snapshot:new Fl(u,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bw(r),Qt(r),r.component??r._loadedComponent??null,r,Sw(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(mn(l=>null===l?Bo(n):this.getChildConfig(t=r._injector??t,r,o).pipe(mn(({routes:u})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:p,slicedSegments:v}=Ew(n,f,h,u);if(0===v.length&&p.hasChildren())return this.processChildren(c,u,p).pipe(ne(b=>null===b?null:[new Hn(d,b)]));if(0===u.length&&0===v.length)return j([new Hn(d,[])]);const D=Qt(r)===i;return this.processSegment(c,u,p,v,D?q:i,!0).pipe(ne(b=>[new Hn(d,b)]))}))))}getChildConfig(t,n,r){return n.children?j({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?j({routes:n._loadedRoutes,injector:n._loadedInjector}):function Ok(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?j(!0):j(o.map(s=>{const a=$o(s,e);return sr(function vk(e){return e&&Cs(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(jo(),_w())}(t,n,r).pipe(ze(o=>o?this.configLoader.loadChildren(t,n).pipe(ee(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function kk(e){return is(pw(!1,3))}())):j({routes:[],injector:t})}}function qk(e){const t=e.value.routeConfig;return t&&""===t.path}function Mw(e){const t=[],n=new Set;for(const r of e){if(!qk(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=Mw(r.children);t.push(new Hn(r.value,o))}return t.filter(r=>!n.has(r))}function bw(e){return e.data||{}}function Sw(e){return e.resolve||{}}function Iw(e){return"string"==typeof e.title||null===e.title}function gh(e){return mn(t=>{const n=e(t);return n?xe(n).pipe(ne(()=>t)):j(t)})}const Uo=new O("ROUTES");let mh=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=I(RC)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return j(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=sr(n.loadComponent()).pipe(ne(Tw),ee(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Xf(()=>{this.componentLoaders.delete(n)})),o=new V0(r,()=>new Dn).pipe(Yf());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return j({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ne(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(a)?u=a:(l=a.create(n).injector,u=l.get(Uo,[],L.Self|L.Optional).flat()),{routes:u.map(fh),injector:l}}),Xf(()=>{this.childrenLoaders.delete(r)})),s=new V0(i,()=>new Dn).pipe(Yf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return sr(n()).pipe(ne(Tw),ze(r=>r instanceof $v||Array.isArray(r)?j(r):xe(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Tw(e){return function eF(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Bl=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Dn,this.configLoader=I(mh),this.environmentInjector=I(an),this.urlSerializer=I(ls),this.rootContexts=I(ps),this.inputBindingEnabled=null!==I(Ll,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>j(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Zx(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new qx(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new Yt({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:fs,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Vn(r=>0!==r.id),ne(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),mn(r=>{let o=!1,i=!1;return j(r).pipe(ee(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),mn(s=>{const a=n.browserUrlTree.toString(),l=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new hs(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Kt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Aw(s.source)&&(n.browserUrlTree=s.extractedUrl),j(s).pipe(mn(c=>{const d=this.transitions?.getValue();return this.events.next(new rh(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Kt:Promise.resolve(c)}),function Zk(e,t,n,r,o,i){return ze(s=>function zk(e,t,n,r,o,i,s="emptyOnly"){return new Gk(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(ne(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),ee(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new Bx(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,v=new rh(c,this.urlSerializer.serialize(d),f,h);this.events.next(v);const D=lw(0,this.rootComponentType).snapshot;return j(r={...s,targetSnapshot:D,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new hs(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Kt}}),ee(s=>{const a=new Ux(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ne(s=>r={...s,guards:hk(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Mk(e,t){return ze(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?j({...n,guardsResult:!0}):function bk(e,t,n,r){return xe(e).pipe(ze(o=>function Rk(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?j(i.map(a=>{const l=ms(t)??o,u=$o(a,l);return sr(function Dk(e){return e&&Cs(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(xr())})).pipe(jo()):j(!0)}(o.component,o.route,n,t,r)),xr(o=>!0!==o,!0))}(s,r,o,e).pipe(ze(a=>a&&function yk(e){return"boolean"==typeof e}(a)?function Sk(e,t,n,r){return xe(t).pipe(Ro(o=>Zf(function Tk(e,t){return null!==e&&t&&t(new Yx(e)),j(!0)}(o.route.parent,r),function Ik(e,t){return null!==e&&t&&t(new Xx(e)),j(!0)}(o.route,r),function Nk(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function pk(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>L0(()=>j(s.guards.map(l=>{const u=ms(s.node)??n,c=$o(l,u);return sr(function _k(e){return e&&Cs(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(xr())})).pipe(jo())));return j(i).pipe(jo())}(e,o.path,n),function Ak(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return j(!0);const o=r.map(i=>L0(()=>{const s=ms(t)??n,a=$o(i,s);return sr(function Ck(e){return e&&Cs(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(xr())}));return j(o).pipe(jo())}(e,o.route,n))),xr(o=>!0!==o,!0))}(r,i,e,t):j(a)),ne(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),ee(s=>{if(r.guardsResult=s.guardsResult,Fr(s.guardsResult))throw hw(0,s.guardsResult);const a=new zx(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Vn(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),gh(s=>{if(s.guards.canActivateChecks.length)return j(s).pipe(ee(a=>{const l=new Gx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),mn(a=>{let l=!1;return j(a).pipe(function Yk(e,t){return ze(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return j(n);let i=0;return xe(o).pipe(Ro(s=>function Qk(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!Iw(o)&&(i[ss]=o.title),function Xk(e,t,n,r){const o=function Kk(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return j({});const i={};return xe(o).pipe(ze(s=>function Jk(e,t,n,r){const o=ms(t)??r,i=$o(e,o);return sr(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(xr(),ee(a=>{i[s]=a}))),Qf(1),function hx(e){return ne(()=>e)}(i),pe(s=>Cw(s)?Kt:is(s)))}(i,e,t,r).pipe(ne(s=>(e._resolvedData=s,e.data=uw(e,n).resolve,o&&Iw(o)&&(e.data[ss]=o.title),null)))}(s.route,r,e,t)),ee(()=>i++),Qf(1),ze(s=>i===o.length?j(n):Kt))})}(n.paramsInheritanceStrategy,this.environmentInjector),ee({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),ee(a=>{const l=new Wx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),gh(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(ee(c=>{l.component=c}),ne(()=>{})));for(const c of l.children)u.push(...a(c));return u};return qf(a(s.targetSnapshot.root)).pipe(Tl(),Fo(1))}),gh(()=>this.afterPreactivation()),ne(s=>{const a=function rk(e,t,n){const r=gs(e,t._root,n?n._root:void 0);return new aw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),ee(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n,r)=>ne(o=>(new fk(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Fo(1),ee({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new Lr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Xf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),pe(s=>{if(i=!0,mw(s)){gw(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new kl(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),gw(s)){const l=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||Aw(r.source)};n.scheduleNavigation(l,fs,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new oh(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(l){r.reject(l)}}return Kt}))}))}cancelNavigationTransition(n,r,o){const i=new kl(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Aw(e){return e!==fs}let Nw=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===q);return r}getResolvedTitleForRoute(n){return n.data[ss]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(tF)},providedIn:"root"}),e})(),tF=(()=>{class e extends Nw{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(N(rD))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),nF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(oF)},providedIn:"root"}),e})();class rF{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let oF=(()=>{class e extends rF{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=qe(e)))(r||e)}}(),e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ul=new O("",{providedIn:"root",factory:()=>({})});let iF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(sF)},providedIn:"root"}),e})(),sF=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var It=(()=>((It=It||{})[It.COMPLETE=0]="COMPLETE",It[It.FAILED=1]="FAILED",It[It.REDIRECTING=2]="REDIRECTING",It))();function Rw(e,t){e.events.pipe(Vn(n=>n instanceof Lr||n instanceof kl||n instanceof oh||n instanceof hs),ne(n=>n instanceof Lr||n instanceof hs?It.COMPLETE:n instanceof kl&&(0===n.code||1===n.code)?It.REDIRECTING:It.FAILED),Vn(n=>n!==It.REDIRECTING),Fo(1)).subscribe(()=>{t()})}function aF(e){throw e}function lF(e,t,n){return t.parse("/")}const uF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},cF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Be=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=I(NC),this.isNgZoneEnabled=!1,this.options=I(Ul,{optional:!0})||{},this.pendingTasks=I(h_),this.errorHandler=this.options.errorHandler||aF,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||lF,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=I(iF),this.routeReuseStrategy=I(nF),this.titleStrategy=I(Nw),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=I(Uo,{optional:!0})?.flat()??[],this.navigationTransitions=I(Bl),this.urlSerializer=I(ls),this.location=I(Wd),this.componentInputBindingEnabled=!!I(Ll,{optional:!0}),this.isNgZoneEnabled=I(ve)instanceof ve&&ve.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Vo,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),fs,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(fh),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}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s;let d,c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}null!==c&&(c=this.removeEmptyProps(c));try{d=K0(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return J0(d,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Fr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,fs,null,r)}navigate(n,r={skipLocationChange:!1}){return function dF(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,l=f});const c=this.pendingTasks.add();return Rw(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),zo=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Dn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Lr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(n){this._preserveFragment=To(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=To(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=To(n)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const n=null===this.href?null:function em(e,t,n){return function Ob(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Jg:ac}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(n){return new(n||e)(_(Be),_($n),function Ys(e){return function tM(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Me,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Lr&&this.update()})}ngAfterContentInit(){j(this.links.changes,j(null)).pipe(Hr()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=xe(n).pipe(Hr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){const r=function fF(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}}return e.\u0275fac=function(n){return new(n||e)(_(Be),_(Mt),_(Nn),_(Za),_(zo,8))},e.\u0275dir=$({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&function cC(e,t,n,r){const o=K();if(o.firstCreatePass){const i=We();fC(o,new lC(t,n,r),i.index),function P2(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}dC(o,E(),n)}(o,zo,5),2&n){let i;Bi(i=Ui())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ot]}),e})();class Pw{}let hF=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Vn(n=>n instanceof Lr),Ro(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=ud(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return xe(o).pipe(Hr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):j(null);const i=o.pipe(ze(s=>null===s?j(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?xe([i,this.loader.loadComponent(r)]).pipe(Hr()):i})}}return e.\u0275fac=function(n){return new(n||e)(N(Be),N(RC),N(an),N(Pw),N(mh))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const yh=new O("");let xw=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof rh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Lr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof hs&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof iw&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new iw(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function xm(){throw new Error("invalid")}()},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function jn(e,t){return{\u0275kind:e,\u0275providers:t}}function Fw(){const e=I(ln);return t=>{const n=e.get(Io);if(t!==n.components[0])return;const r=e.get(Be),o=e.get(Lw);1===e.get(vh)&&r.initialNavigation(),e.get(Vw,null,L.Optional)?.setUpPreloading(),e.get(yh,null,L.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const Lw=new O("",{factory:()=>new Dn}),vh=new O("",{providedIn:"root",factory:()=>1}),Vw=new O("");function yF(e){return jn(0,[{provide:Vw,useExisting:hF},{provide:Pw,useExisting:e}])}const Hw=new O("ROUTER_FORROOT_GUARD"),CF=[Wd,{provide:ls,useClass:Kf},Be,ps,{provide:$n,useFactory:function kw(e){return e.routerState.root},deps:[Be]},mh,[]];function _F(){return new BC("Router",Be)}let $w=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[CF,[],{provide:Uo,multi:!0,useValue:n},{provide:Hw,useFactory:MF,deps:[[Be,new Ks,new Js]]},{provide:Ul,useValue:r||{}},r?.useHash?{provide:Kn,useClass:v_}:{provide:Kn,useClass:y_},{provide:yh,useFactory:()=>{const e=I(h3),t=I(ve),n=I(Ul),r=I(Bl),o=I(ls);return n.scrollOffset&&e.setOffset(n.scrollOffset),new xw(o,r,e,t,n)}},r?.preloadingStrategy?yF(r.preloadingStrategy).\u0275providers:[],{provide:BC,multi:!0,useFactory:_F},r?.initialNavigation?bF(r):[],r?.bindToComponentInputs?jn(8,[fw,{provide:Ll,useExisting:fw}]).\u0275providers:[],[{provide:jw,useFactory:Fw},{provide:kd,multi:!0,useExisting:jw}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Uo,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(N(Hw,8))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({}),e})();function MF(e){return"guarded"}function bF(e){return["disabled"===e.initialNavigation?jn(3,[{provide:Sd,multi:!0,useFactory:()=>{const t=I(Be);return()=>{t.setUpLocationChangeListener()}}},{provide:vh,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?jn(2,[{provide:vh,useValue:0},{provide:Sd,multi:!0,deps:[ln],useFactory:t=>{const n=t.get(QN,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(Be),i=t.get(Lw);Rw(o,()=>{r(!0)}),t.get(Bl).afterPreactivation=()=>(r(!0),i.closed?j(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const jw=new O("");class tt{constructor(t,n,r){this.http=t,this.router=n,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none",this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`LoginService: ${t}`)}isAuthenticated(){return this.authenticated}getAuthorizationToken(){return`Basic ${window.btoa(this.credentials.username+":"+this.credentials.password)}`}getUsername(){return this.credentials.username}getAuthority(){return this.authority}authenticate(t){this.log(`Authenticating: ${t.username}`),this.credentials=t;const n=new Ye({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(tt.REST_URL,{headers:n}).pipe(ee(r=>this.authorizationRecieved(r)),pe(this.handleError("authenticating user")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(t){if(this.authenticated=!0,t.authorities){let n=t.authorities[0].authority;n=n.substring(n.indexOf("_")+1),this.authority=n}this.log(`Authenticated '${t.name}' as '${this.authority}'`)}changePassword(t){this.log("Changing password.");const n=Gf(10),r=k0(t,n);let o={};return o.username=this.credentials.username,o.password=r,this.http.post(tt.REST_URL,o,this.httpOptions).pipe(ee(i=>this.authorizationRecieved(i)),pe(this.handleError("changePassword")))}}tt.REST_URL=Or_restServerUrl+"/api/user",tt.\u0275fac=function(t){return new(t||tt)(N(Rr),N(Be),N(Pr))},tt.\u0275prov=x({token:tt,factory:tt.\u0275fac,providedIn:"root"});const IF=["scrollMe"];function TF(e,t){if(1&e&&(m(0,"li")(1,"div",9)(2,"span",10),C(3),y(),m(4,"span",11),C(5),Sr(6,"date"),y(),m(7,"span",12),C(8),y()(),m(9,"span",13),C(10),y()()),2&e){const n=t.$implicit;w(3),J(n.id),w(2),J(Ir(6,4,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),w(3),J(n.author),w(2),J(n.text)}}function AF(e,t){if(1&e&&(m(0,"ul",6,7),jt(2,TF,11,7,"li",8),y()),2&e){const n=Zn();w(2),R("ngForOf",n.chatMessages)}}let Ch=(()=>{class e{constructor(n,r){this.chatService=n,this.loginService=r,this.disableScrollDown=!1,this.chatMessages=[],this.newMessage="",this.serviceMessage="",this.errorMessage=""}getChatMessages(){this.serviceMessage="Loading chat ...",this.chatService.getChatMessages().subscribe({next:n=>{this.chatMessages=n,this.scrollToBottom(),this.serviceMessage="Loaded chat."},error:n=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${n.message}`}})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.serviceMessage="Sending message ...",this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe({next:n=>{this.chatMessages.push(n),this.serviceMessage="Send OK.",this.disableScrollDown=!1,this.scrollToBottom()},error:n=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${n.message}`}}),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(_(yn),_(tt))},e.\u0275cmp=_t({type:e,selectors:[["app-chat"]],viewQuery:function(n,r){if(1&n&&za(IF,5),2&n){let o;Bi(o=Ui())&&(r.myScrollContainer=o.first)}},decls:11,vars:6,consts:[[1,"servicemessage",3,"hidden"],[1,"alert","servicemessage",3,"hidden"],["class","chat",4,"ngIf"],[1,"input"],["id","message-text","placeholder","hello",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"chat"],["scrollMe",""],[4,"ngFor","ngForOf"],[1,"message-title"],[1,"badge"],[1,"date"],[1,"author"],[1,"text"]],template:function(n,r){1&n&&(m(0,"p",0),C(1),y(),m(2,"p",1),C(3),y(),jt(4,AF,3,1,"ul",2),m(5,"div",3)(6,"input",4),P("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),y(),m(7,"button",5),P("click",function(){return r.sendMessage()}),C(8,"Send"),y(),m(9,"button",5),P("click",function(){return r.getChatMessages()}),C(10,"Reload"),y()()),2&n&&(R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(1),R("ngIf",r.chatMessages.length),w(2),R("ngModel",r.newMessage))},dependencies:[Jn,rf,Zt,Ln,gn,Zi],styles:[".chat[_ngcontent-%COMP%]{margin:0;list-style-type:none;padding:.1em;max-height:20em;overflow:auto}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin:.1em;padding:0;border-radius:4px;border:solid 1px darkblue}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e688}.servicemessage[_ngcontent-%COMP%]{margin:0}.message-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.message-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061}.author[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#a0b0b1;border-radius:0 0 2px}.chat[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;padding-right:.2em}"]}),e})();const NF=["scrollMe"];function RF(e,t){if(1&e&&(m(0,"p"),C(1),y()),2&e){const n=t.$implicit;w(1),J(n)}}function OF(e,t){if(1&e){const n=Oa();m(0,"div",1)(1,"div")(2,"button",2),P("click",function(){return gr(n),mr(Zn().appMessagesService.clear())}),C(3,"Clear messages"),y(),m(4,"h2"),C(5,"App messages"),y()(),m(6,"div",3,4),P("scroll",function(){return gr(n),mr(Zn().onScroll())}),jt(8,RF,2,1,"p",5),y()()}if(2&e){const n=Zn();w(8),R("ngForOf",n.appMessagesService.messages)}}let PF=(()=>{class e{constructor(n){this.appMessagesService=n,this.disableScrollDown=!1}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let n=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&n.scrollHeight-n.scrollTop===n.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(_(Pr))},e.\u0275cmp=_t({type:e,selectors:[["app-messages"]],viewQuery:function(n,r){if(1&n&&za(NF,5),2&n){let o;Bi(o=Ui())&&(r.myScrollContainer=o.first)}},decls:1,vars:1,consts:[["class","app-messages",4,"ngIf"],[1,"app-messages"],["type","button",1,"clear",3,"click"],[1,"output",3,"scroll"],["scrollMe",""],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&jt(0,OF,9,1,"div",0),2&n&&R("ngIf",r.appMessagesService.messages.length)},dependencies:[Jn,rf],styles:[".app-messages[_ngcontent-%COMP%]{font-size:small;color:#888;padding:.2em}.app-messages[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:right}h2[_ngcontent-%COMP%]{display:inline-block}.clear[_ngcontent-%COMP%]{margin:.4em}.output[_ngcontent-%COMP%]{border:2px solid #c0c0c0;min-height:4.5em;max-height:4.5em;margin:0 0 2px;padding:2px 4px;overflow-y:scroll;font-family:Monospace,Incosolata,Courier;font-size:12px;width:unset}.output[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 .1em}"]}),e})();const Bw=function(){return{exact:!0}};let xF=(()=>{class e{constructor(n){this.loginService=n,this.title="Familie TDS",this.chatLoaded=!1,this.chatHidden=!0,this.linksHidden=!0,this.profileHidden=!0,this.pos1=0,this.pos2=0,this.pos3=0,this.pos4=0,this.target=null}isAppMessagesHidden(){return!(this.loginService.isAuthenticated()&&"ADMIN"===this.loginService.getAuthority())}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}logout(){localStorage.setItem("username",""),localStorage.setItem("password",""),this.loginService.logout()}toggleLinks(){this.linksHidden=!this.linksHidden,this.profileHidden=!0}isLinksHidden(){return this.linksHidden}toggleProfile(){this.profileHidden=!this.profileHidden,this.linksHidden=!0}isProfileHidden(){return this.profileHidden}toggleChatHidden(){this.chatHidden=!this.chatHidden,!this.chatHidden&&!this.chatLoaded&&(this.chatComponent.getChatMessages(),this.chatLoaded=!0)}isChatHidden(){return this.chatHidden}startMouseDragging(n){0===n.button&&(n.preventDefault(),this.pos3=n.clientX,this.pos4=n.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.clientX,this.pos2=this.pos4-n.clientY,this.pos3=n.clientX,this.pos4=n.clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),this.target.style.left=o+"px"}endMouseDrag(){document.onmouseup=null,document.onmousemove=null,this.target=null}startTouchDragging(n){n.preventDefault(),this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.targetTouches[0].clientX,this.pos2=this.pos4-n.targetTouches[0].clientY,this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),this.target.style.left=o+"px"}endTouchDrag(){document.ontouchend=null,document.ontouchmove=null,this.target=null}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}setTheme(n){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(n),localStorage.setItem("theme",n)}detectTheme(){const n=localStorage.getItem("theme");"theme-dark"!==n&&"theme-light"!==n?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(n)}ngOnInit(){this.detectTheme()}}return e.\u0275fac=function(n){return new(n||e)(_(tt))},e.\u0275cmp=_t({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&za(Ch,5),2&n){let o;Bi(o=Ui())&&(r.chatComponent=o.first)}},decls:46,vars:13,consts:[[3,"hidden"],["id","toggle-links",1,"big",3,"click"],["id","toggle-profile",1,"big","float-right",3,"click"],["id","links",3,"hidden"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/todo"],["id","profile",1,"float-right",3,"hidden"],[3,"click"],["title","Dark theme on/off",3,"click"],["routerLinkActive","active-link","routerLink","/profile"],["id","logout",3,"click"],[1,"float-right"],["routerLinkActive","active-link","routerLink","/login"],["id","tools",3,"hidden"],["id","toolbar"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],[1,"close-button",3,"click"],["id","chatcontent"],[1,"footer",3,"hidden"]],template:function(n,r){1&n&&(m(0,"nav")(1,"span",0)(2,"a",1),P("click",function(){return r.toggleLinks()}),C(3,"\u2261"),y(),m(4,"a",2),P("click",function(){return r.toggleProfile()}),C(5),y(),m(6,"div")(7,"div",3)(8,"a",4),C(9,"Home"),y(),m(10,"a",5),C(11,"Checklists"),y(),m(12,"a",6),C(13,"Contacts"),y(),m(14,"a",7),C(15,"Todo"),y()(),m(16,"div",8)(17,"button",9),P("click",function(){return r.toggleChatHidden()}),C(18,"Toggle Chat"),y(),m(19,"button",10),P("click",function(){return r.toggleTheme()}),C(20,"\u2600 Theme"),y(),m(21,"a",11),C(22,"Profile"),y(),m(23,"a",12),P("click",function(){return r.logout()}),C(24,"Logout"),y()()()(),m(25,"span",0)(26,"h1",13),C(27),y(),m(28,"a",4),C(29,"Home"),y(),m(30,"a",14),C(31,"Login"),y()()(),m(32,"div",15)(33,"div",16)(34,"button",9),P("click",function(){return r.toggleChatHidden()}),C(35,"Toggle Chat"),y()(),m(36,"div",17)(37,"div",18),P("mousedown",function(i){return r.startMouseDragging(i)})("touchstart",function(i){return r.startTouchDragging(i)}),C(38," Chat"),m(39,"button",19),P("click",function(){return r.toggleChatHidden()}),C(40,"\u2716"),y()(),m(41,"div",20),oe(42,"app-chat"),y()()(),m(43,"main"),oe(44,"router-outlet"),y(),oe(45,"app-messages",21)),2&n&&(w(1),R("hidden",!r.isAuthenticated()),w(4),J(r.username()),w(2),R("hidden",r.isLinksHidden()),w(1),R("routerLinkActiveOptions",dd(11,Bw)),w(8),R("hidden",r.isProfileHidden()),w(9),R("hidden",r.isAuthenticated()),w(2),J(r.title),w(1),R("routerLinkActiveOptions",dd(12,Bw)),w(4),R("hidden",!r.isAuthenticated()),w(4),R("hidden",r.isChatHidden()),w(9),R("hidden",r.isAppMessagesHidden()))},dependencies:[ch,zo,Ow,PF,Ch],styles:["#toggle-links[_ngcontent-%COMP%]{padding:.2em .5em}#toggle-profile[_ngcontent-%COMP%]{color:unset}.big[_ngcontent-%COMP%]{font-size:x-large}.float-right[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%]{display:block;background:#93c6f948 linear-gradient(80deg,rgb(132,168,205) 05%,rgb(145,185,224) 30%,rgba(0,0,0,0) 100%);border-bottom:1px solid #336699;padding:.4em}nav[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:.2rem;padding:.2rem .3rem;text-decoration:none;text-shadow:2px 2px 2px #40404080;display:inline-block;border-radius:2px}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;background-color:#42545c;-webkit-text-decoration:underline #93c6f9;text-decoration:underline #93c6f9}.active-link[_ngcontent-%COMP%]{background-color:#00000048}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#toolbar[_ngcontent-%COMP%]{margin-top:-.4em;margin-bottom:-.4em;margin-left:.2em}#toolbar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{border:1px solid #40404080}#chatwindow[_ngcontent-%COMP%]{border:1px solid black;z-index:9990;background:#f0f0f080;border-radius:2px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:3px 3px 3px #0006;position:fixed;top:5em;left:5em}#chattitlebar[_ngcontent-%COMP%]{border-bottom:1px solid black;padding:2px;background:#d0d0d080;cursor:grab}#chatcontent[_ngcontent-%COMP%]{padding:2px}.close-button[_ngcontent-%COMP%]{padding:0 4px;margin:0;float:right}"]}),e})();class Xt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`TodoService: ${t}`)}getTodos(){return this.http.get(Xt.REST_URL,this.httpOptions).pipe(ee(t=>this.log(`fetched ${t.length} todos`)),pe(this.handleError("getTodos",[])))}addTodo(t){return this.http.post(Xt.REST_URL,{text:t},this.httpOptions).pipe(ee(r=>this.log(`added todo w/ id=${r.id}`)),pe(this.handleError("addTodo")))}deleteTodo(t){return this.http.delete(`${Xt.REST_URL}/${t}`,this.httpOptions).pipe(ee(r=>this.log(`deleted todo id=${t}`)),pe(this.handleError("deleteTodo")))}}function kF(e,t){if(1&e){const n=Oa();m(0,"li")(1,"div",8)(2,"span",9),C(3),y(),m(4,"span",10),C(5),Sr(6,"date"),y(),m(7,"button",11),P("click",function(){const i=gr(n).$implicit;return mr(Zn().delete(i))}),C(8,"x"),y()(),m(9,"span",12),C(10),y()()}if(2&e){const n=t.$implicit;w(3),J(n.id),w(2),J(Ir(6,3,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),w(5),J(n.text)}}Xt.REST_URL=Or_restServerUrl+"/api/todos",Xt.\u0275fac=function(t){return new(t||Xt)(N(Rr),N(Pr))},Xt.\u0275prov=x({token:Xt,factory:Xt.\u0275fac,providedIn:"root"});let FF=(()=>{class e{constructor(n){this.todoService=n,this.todos=[],this.newTodo="",this.serviceMessage="",this.errorMessage=""}getTodos(){this.serviceMessage="Loading todos ...",this.todoService.getTodos().subscribe({next:n=>{this.todos=n,this.serviceMessage=0==n.length?"Nothing to do!":""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading todos: ${n.message}`}})}ngOnInit(){this.getTodos()}sendTodo(){this.serviceMessage="Adding todo ...",this.todoService.addTodo(this.newTodo).subscribe({next:n=>{this.todos.push(n),this.newTodo="",this.serviceMessage="Added todo."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding todo: ${n.message}`}})}delete(n){this.serviceMessage="Removing todo ...",this.todoService.deleteTodo(n.id).subscribe({next:()=>{this.todos=this.todos.filter(r=>r!==n),this.serviceMessage="Removed todo."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing todo: ${r.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(_(Xt))},e.\u0275cmp=_t({type:e,selectors:[["app-todo"]],decls:17,vars:6,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-text"],["id","input-text","placeholder","text",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"element-title"],[1,"badge"],[1,"date"],["type","button","title","Delete todo",1,"delete",3,"click"],[1,"text"]],template:function(n,r){1&n&&(m(0,"h2"),C(1,"Todos"),y(),m(2,"p",0),C(3),y(),m(4,"p",1),C(5),y(),m(6,"ol",2),jt(7,kF,11,6,"li",3),y(),m(8,"h2"),C(9,"New Todo:"),y(),m(10,"div",4)(11,"div")(12,"label",5),C(13,"Text:"),y(),m(14,"input",6),P("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),y(),m(15,"button",7),P("click",function(){return r.sendTodo()}),C(16,"Send"),y()()()),2&n&&(w(2),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(2),R("ngForOf",r.todos),w(7),R("ngModel",r.newTodo))},dependencies:[Jn,Zt,Ln,gn,Zi],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]}),e})();class _n{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`NewsService: ${t}`)}getNewsPosts(){return this.http.get(_n.REST_URL,this.httpOptions).pipe(ee(t=>this.log(`fetched ${t.length} news posts`)),pe(this.handleError("getNews",[])))}addNewsPost(t,n){return this.http.post(_n.REST_URL,{author:t,text:n},this.httpOptions).pipe(ee(o=>this.log(`added message w/ id=${o.id}`)),pe(this.handleError("addNewsPost")))}}function LF(e,t){if(1&e&&(m(0,"p"),C(1),y()),2&e){const n=t.$implicit;w(1),J(n.text)}}_n.REST_URL=Or_restServerUrl+"/api/news",_n.\u0275fac=function(t){return new(t||_n)(N(Rr),N(Pr))},_n.\u0275prov=x({token:_n,factory:_n.\u0275fac,providedIn:"root"});let VF=(()=>{class e{constructor(n,r){this.loginService=n,this.newsService=r,this.newsMessages=[],this.serviceMessage="",this.errorMessage=""}getNews(){this.loginService.isAuthenticated()&&(this.serviceMessage="Loading news messages ...",this.newsService.getNewsPosts().subscribe({next:n=>{this.newsMessages=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading news: ${n.message}`}}))}ngOnInit(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}}return e.\u0275fac=function(n){return new(n||e)(_(tt),_(_n))},e.\u0275cmp=_t({type:e,selectors:[["app-home"]],decls:13,vars:8,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"context"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(m(0,"span",0)(1,"p"),C(2),y(),m(3,"h3"),C(4,"News"),y(),m(5,"p",0),C(6),y(),m(7,"p",1),C(8),y(),m(9,"div",2),jt(10,LF,2,1,"p",3),y()(),m(11,"p",0),C(12,"Welcome to our family site! Please login."),y()),2&n&&(R("hidden",!r.isAuthenticated()),w(2),Ze("Welcome, ",r.username(),"!"),w(3),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(2),R("ngForOf",r.newsMessages),w(1),R("hidden",r.isAuthenticated()))},dependencies:[Jn],styles:[".context[_ngcontent-%COMP%]{padding-left:1em;border:1px solid darkgrey}"]}),e})(),HF=(()=>{class e{constructor(n,r){this.loginService=n,this.router=r,this.rememberme=!1,this.credentials={username:"",password:""},this.serviceMessage="",this.errorMessage="",this.checkPreviousLogin()}checkPreviousLogin(){this.credentials.username=localStorage.getItem("username"),this.credentials.password=localStorage.getItem("password"),this.credentials.username&&this.credentials.password&&this.login()}login(){if(""!==this.credentials.username&&""!==this.credentials.password)return this.serviceMessage="Loggin in ...",this.loginService.authenticate(this.credentials).subscribe({next:()=>{this.rememberme&&(localStorage.setItem("username",this.credentials.username),localStorage.setItem("password",this.credentials.password)),this.router.navigateByUrl("/").then(n=>{})},error:n=>{console.log("Login failed",n),this.errorMessage=`Login failed: ${n.message}`,this.serviceMessage=""}}),!1;this.errorMessage="Login failed: Username and password required."}}return e.\u0275fac=function(n){return new(n||e)(_(tt),_(Be))},e.\u0275cmp=_t({type:e,selectors:[["app-login"]],decls:21,vars:7,consts:[[3,"hidden"],[1,"alert",3,"hidden"],["role","form",3,"submit"],[1,"form-group"],["for","username"],["type","text","id","username","name","username","placeholder","username",1,"form-control",3,"ngModel","ngModelChange"],["for","password"],["type","password","id","password","name","password","placeholder","password",1,"form-control",3,"ngModel","ngModelChange"],["for","rememberme"],["type","checkbox","id","rememberme","name","rememberme",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary"]],template:function(n,r){1&n&&(m(0,"h2"),C(1,"Login form"),y(),m(2,"p",0),C(3),y(),m(4,"p",1),C(5),y(),m(6,"form",2),P("submit",function(){return r.login()}),m(7,"div",3)(8,"label",4),C(9,"Username:"),y(),m(10,"input",5),P("ngModelChange",function(i){return r.credentials.username=i}),y()(),m(11,"div",3)(12,"label",6),C(13,"Password:"),y(),m(14,"input",7),P("ngModelChange",function(i){return r.credentials.password=i}),y()(),m(15,"div",3)(16,"label",8),C(17,"Remember me:"),y(),m(18,"input",9),P("ngModelChange",function(i){return r.rememberme=i}),y()(),m(19,"button",10),C(20,"Login"),y()()),2&n&&(w(2),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(5),R("ngModel",r.credentials.username),w(4),R("ngModel",r.credentials.password),w(4),R("ngModel",r.rememberme))},dependencies:[ZD,Zt,dl,Ln,xD,gn,wl],styles:[".form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:8em;padding-right:.2em}.form-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0 0 .2em}button[_ngcontent-%COMP%]{border:revert}"]}),e})();const Vr=(e,t)=>{const n=I(tt),r=I(Be);return!!n.isAuthenticated()||r.parseUrl("/login")};class mt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`ContactService: ${t}`)}getContacts(){return this.http.get(mt.REST_URL,this.httpOptions).pipe(ee(t=>this.log(`fetched ${t.length} contacts`)),pe(this.handleError("getContacts",[])))}getContact(t){return this.http.get(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(ee(n=>this.log(`fetched Contact ${n.id}`)),pe(this.handleError("getContact",{})))}addContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(ee(n=>this.log(`added contact w/ id=${n.id}`)),pe(this.handleError("addContact")))}saveContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(ee(n=>this.log(`saved contact w/ id=${n.id}`)),pe(this.handleError("addContact")))}deleteContact(t){return this.http.delete(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(ee(r=>this.log(`deleted contact id=${t}`)),pe(this.handleError("deleteContact")))}}mt.REST_URL=Or_restServerUrl+"/api/contacts",mt.\u0275fac=function(t){return new(t||mt)(N(Rr),N(Pr))},mt.\u0275prov=x({token:mt,factory:mt.\u0275fac,providedIn:"root"});const $F=function(e){return["/contact",e]};function jF(e,t){if(1&e&&(m(0,"li")(1,"div",20)(2,"span")(3,"a",21),C(4),y()()(),m(5,"span",22),C(6),oe(7,"br"),C(8),oe(9,"br"),C(10),oe(11,"br"),C(12,"Website: "),m(13,"a",23),C(14),y(),oe(15,"br"),C(16),y()()),2&e){const n=t.$implicit;w(3),R("routerLink",Ba(9,$F,n.id)),w(1),La("",n.firstName," ",n.lastName,""),w(2),Ze(" Telephone: ",n.telephone," "),w(2),Ze("E-mail: ",n.email," "),w(2),Ze("Address: ",n.address," "),w(3),Pa("href","https://",n.website,"",ac),w(1),J(n.website),w(2),Ze("Description: ",n.description,"")}}let BF=(()=>{class e{constructor(n){this.contactsService=n,this.contacts=[],this.newContact={},this.serviceMessage="",this.errorMessage=""}getContacts(){this.serviceMessage="Loading contacts ...",this.contactsService.getContacts().subscribe({next:n=>{this.contacts=n,this.serviceMessage=n.length?"":"No contacts in database."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading contacts: ${n.message}`}})}ngOnInit(){this.getContacts()}sendContact(){this.serviceMessage="Adding contact ...",this.contactsService.addContact(this.newContact).subscribe({next:n=>{this.contacts.push(n),this.serviceMessage="Added contact."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding contact: ${n.message}`}}),this.newContact={}}}return e.\u0275fac=function(n){return new(n||e)(_(mt))},e.\u0275cmp=_t({type:e,selectors:[["app-contacts"]],decls:42,vars:12,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"],[1,"element-title"],[3,"routerLink"],[1,"text"],["target","_blank",3,"href"]],template:function(n,r){1&n&&(m(0,"h2"),C(1,"Contacts:"),y(),m(2,"p",0),C(3),y(),m(4,"p",1),C(5),y(),m(6,"ol",2),jt(7,jF,17,11,"li",3),y(),m(8,"h2"),C(9,"New Contact:"),y(),m(10,"div",4)(11,"div")(12,"label",5),C(13,"Firstname:"),y(),m(14,"input",6),P("ngModelChange",function(i){return r.newContact.firstName=i}),y(),oe(15,"br"),m(16,"label",7),C(17,"Lastname:"),y(),m(18,"input",8),P("ngModelChange",function(i){return r.newContact.lastName=i}),y(),oe(19,"br"),m(20,"label",9),C(21,"Telephone:"),y(),m(22,"input",10),P("ngModelChange",function(i){return r.newContact.telephone=i}),y(),oe(23,"br"),m(24,"label",11),C(25,"Email:"),y(),m(26,"input",12),P("ngModelChange",function(i){return r.newContact.email=i}),y(),oe(27,"br"),m(28,"label",13),C(29,"Website:"),y(),m(30,"input",14),P("ngModelChange",function(i){return r.newContact.website=i}),y(),oe(31,"br"),m(32,"label",15),C(33,"Address:"),y(),m(34,"input",16),P("ngModelChange",function(i){return r.newContact.address=i}),y(),oe(35,"br"),m(36,"label",17),C(37,"Description:"),y(),m(38,"input",18),P("ngModelChange",function(i){return r.newContact.description=i}),y(),oe(39,"br"),m(40,"button",19),P("click",function(){return r.sendContact()}),C(41,"Send"),y()()()),2&n&&(w(2),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(2),R("ngForOf",r.contacts),w(7),R("ngModel",r.newContact.firstName),w(4),R("ngModel",r.newContact.lastName),w(4),R("ngModel",r.newContact.telephone),w(4),R("ngModel",r.newContact.email),w(4),R("ngModel",r.newContact.website),w(4),R("ngModel",r.newContact.address),w(4),R("ngModel",r.newContact.description))},dependencies:[Jn,Zt,Ln,gn,zo],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}"]}),e})();class yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation"){return n=>{throw this.log(`${t} failed: response status = ${n.status} statusText = ${n.statusText}`),0===n.status&&!1===n.ok?new Error("Could not reach API, check your internet connection."):(console.error(n),new Error(`${t} failed: status = ${n.status}`,{cause:n}))}}log(t){this.appMessageService.add(`ChecklistService: ${t}`)}getChecklists(){return this.http.get(yt.REST_URL,this.httpOptions).pipe(ee(t=>this.log(`fetched ${t.length} checklists`)),pe(this.handleError("getChecklists")))}getChecklist(t){return this.http.get(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(ee(n=>this.log(`fetched checklist ${n.id}`)),pe(this.handleError("getChecklist")))}addChecklist(t){return this.http.post(yt.REST_URL,{name:t},this.httpOptions).pipe(ee(r=>this.log(`added checklist w/ id=${r.id}`)),pe(this.handleError("addChecklist")))}saveChecklist(t){return this.http.post(yt.REST_URL,t,this.httpOptions).pipe(ee(n=>this.log(`saved checklist w/ id=${n.id}`)),pe(this.handleError("addChecklist")))}deleteChecklist(t){return this.http.delete(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(ee(r=>this.log(`deleted checklist id=${t}`)),pe(this.handleError("deleteChecklist")))}}yt.REST_URL=Or_restServerUrl+"/api/checklists",yt.\u0275fac=function(t){return new(t||yt)(N(Rr),N(Pr))},yt.\u0275prov=x({token:yt,factory:yt.\u0275fac,providedIn:"root"});const UF=function(e){return{strikethrough:e}};function zF(e,t){if(1&e&&(m(0,"li",12),C(1),y()),2&e){const n=t.$implicit;R("ngClass",Ba(2,UF,!0===n.checked)),w(1),Ze(" ",n.text," ")}}const GF=function(e){return["/checklist",e]};function WF(e,t){if(1&e&&(m(0,"li")(1,"span",8)(2,"a",9),C(3),y(),m(4,"ul",10),jt(5,zF,2,4,"li",11),y()()()),2&e){const n=t.$implicit;w(2),R("routerLink",Ba(3,GF,n.id)),w(1),J(n.name),w(2),R("ngForOf",n.checks)}}let qF=(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I($n),this.checklists=[],this.newChecklist="",this.serviceMessage="",this.errorMessage=""}getChecklists(){this.serviceMessage="Loading checklists ...",this.checklistService.getChecklists().subscribe({next:n=>{this.checklists=n,this.serviceMessage=n.length?"":"No checklist in database."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading checklists: ${n.message}`}})}ngOnInit(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.serviceMessage="Creating checklist ...",this.checklistService.addChecklist(this.newChecklist).subscribe({next:n=>this.router.navigate(["/checklist/",n.id]),error:n=>{this.serviceMessage="",this.errorMessage=`Error while creating checklists: ${n.message}`}}))}}return e.\u0275fac=function(n){return new(n||e)(_(yt),_(Be))},e.\u0275cmp=_t({type:e,selectors:[["app-checklists"]],decls:17,vars:6,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"text"],[3,"routerLink"],[1,"item-list"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(n,r){1&n&&(m(0,"h2"),C(1,"Checklists"),y(),m(2,"p",0),C(3),y(),m(4,"p",1),C(5),y(),m(6,"ol",2),jt(7,WF,6,5,"li",3),y(),m(8,"h2"),C(9,"New Checklist:"),y(),m(10,"div",4)(11,"div")(12,"label",5),C(13,"name:"),y(),m(14,"input",6),P("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),y(),m(15,"button",7),P("click",function(){return r.sendChecklist()}),C(16,"Send"),y()()()),2&n&&(w(2),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(2),R("ngForOf",r.checklists),w(7),R("ngModel",r.newChecklist))},dependencies:[N_,Jn,Zt,Ln,gn,zo],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.strikethrough[_ngcontent-%COMP%]{text-decoration:line-through}"]}),e})();function ZF(e,t){if(1&e){const n=Oa();m(0,"li")(1,"input",10),P("ngModelChange",function(o){return mr(gr(n).$implicit.checked=o)})("change",function(){return gr(n),mr(Zn().saveCheckList())}),y(),m(2,"label"),C(3),y(),m(4,"button",11),P("click",function(){const i=gr(n).index;return mr(Zn().removeItem(i))}),C(5,"x"),y()()}if(2&e){const n=t.$implicit;w(1),R("ngModel",n.checked),w(2),J(n.text)}}const YF=[{path:"",component:VF,pathMatch:"full"},{path:"login",component:HF},{path:"profile",component:(()=>{class e{constructor(n){this.loginService=n,this.newPassword1="",this.newPassword2="",this.serviceMessage="",this.errorMessage=""}username(){return this.loginService.getUsername()}saveProfile(){this.newPassword1==this.newPassword2?(this.serviceMessage="Updating password ...",this.loginService.changePassword(this.newPassword1).subscribe({next:()=>{this.serviceMessage="Password changed",this.loginService.authenticate({username:this.loginService.getUsername(),password:this.newPassword1}).subscribe()},error:n=>{this.serviceMessage="",this.errorMessage=`Error while updating password: ${n.message}`}})):this.serviceMessage="Passwords do not match!"}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}}return e.\u0275fac=function(n){return new(n||e)(_(tt))},e.\u0275cmp=_t({type:e,selectors:[["app-profile"]],decls:22,vars:7,consts:[["title","Dark theme on/off",3,"click"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"input"],["for","input-newPassword1"],["type","password","id","input-newPassword1","placeholder","new password",3,"ngModel","ngModelChange"],["for","input-newPassword2"],["type","password","id","input-newPassword2","placeholder","new password",3,"ngModel","ngModelChange"],[3,"click"]],template:function(n,r){1&n&&(m(0,"h1"),C(1),y(),m(2,"button",0),P("click",function(){return r.toggleTheme()}),C(3,"\u2600 Theme"),y(),m(4,"h2"),C(5,"Change password:"),y(),m(6,"p",1),C(7),y(),m(8,"p",2),C(9),y(),m(10,"div",3)(11,"div")(12,"label",4),C(13,"New password:"),y(),m(14,"input",5),P("ngModelChange",function(i){return r.newPassword1=i}),y(),oe(15,"br"),m(16,"label",6),C(17,"Repeat new password:"),y(),m(18,"input",7),P("ngModelChange",function(i){return r.newPassword2=i}),y(),oe(19,"br"),m(20,"button",8),P("click",function(){return r.saveProfile()}),C(21,"Save"),y()()()),2&n&&(w(1),Ze("Profile of: ",r.username(),""),w(5),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(5),R("ngModel",r.newPassword1),w(4),R("ngModel",r.newPassword2))},dependencies:[Zt,Ln,gn]}),e})(),canActivate:[Vr]},{path:"chat",component:Ch,canActivate:[Vr]},{path:"todo",component:FF,canActivate:[Vr]},{path:"contacts",component:BF,canActivate:[Vr]},{path:"contact/:id",component:(()=>{class e{constructor(n,r){this.contactsService=n,this.router=r,this.route=I($n),this.contactId=-1,this.contact={},this.serviceMessage="",this.errorMessage="",this.contactId=Number(this.route.snapshot.params.id)}getChecklist(){this.serviceMessage="Loading contact ...",this.contactsService.getContact(this.contactId).subscribe({next:n=>{this.contact=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading contact: ${n.message}`}})}ngOnInit(){this.getChecklist()}saveContact(){this.serviceMessage="Updating contact ...",this.contactsService.saveContact(this.contact).subscribe({next:n=>{this.contact=n,this.serviceMessage="Updated contact."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while updating contact: ${n.message}`}})}deleteContact(){this.serviceMessage="Deleting contact ...",this.contactsService.deleteContact(this.contactId).subscribe({next:()=>this.router.navigateByUrl("/contacts"),error:n=>{this.serviceMessage="",this.errorMessage=`Error while deleting contact: ${n.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(_(mt),_(Be))},e.\u0275cmp=_t({type:e,selectors:[["app-edit-contact"]],decls:50,vars:22,consts:[[3,"hidden"],[1,"alert",3,"hidden"],["type","button","title","Delete contact",1,"delete",3,"click"],[1,"input"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"]],template:function(n,r){1&n&&(m(0,"h2"),C(1),y(),m(2,"p",0),C(3),y(),m(4,"p",1),C(5),y(),m(6,"p"),C(7),m(8,"button",2),P("click",function(){return r.deleteContact()}),C(9,"Delete contact"),y(),oe(10,"br"),C(11),Sr(12,"date"),oe(13,"br"),C(14),Sr(15,"date"),y(),oe(16,"p"),m(17,"h3"),C(18,"Details:"),y(),m(19,"div",3)(20,"label",4),C(21,"Firstname:"),y(),m(22,"input",5),P("ngModelChange",function(i){return r.contact.firstName=i}),y(),oe(23,"br"),m(24,"label",6),C(25,"Lastname:"),y(),m(26,"input",7),P("ngModelChange",function(i){return r.contact.lastName=i}),y(),oe(27,"br"),m(28,"label",8),C(29,"Telephone:"),y(),m(30,"input",9),P("ngModelChange",function(i){return r.contact.telephone=i}),y(),oe(31,"br"),m(32,"label",10),C(33,"Email:"),y(),m(34,"input",11),P("ngModelChange",function(i){return r.contact.email=i}),y(),oe(35,"br"),m(36,"label",12),C(37,"Website:"),y(),m(38,"input",13),P("ngModelChange",function(i){return r.contact.website=i}),y(),oe(39,"br"),m(40,"label",14),C(41,"Address:"),y(),m(42,"input",15),P("ngModelChange",function(i){return r.contact.address=i}),y(),oe(43,"br"),m(44,"label",16),C(45,"Description:"),y(),m(46,"input",17),P("ngModelChange",function(i){return r.contact.description=i}),y(),oe(47,"br"),m(48,"button",18),P("click",function(){return r.saveContact()}),C(49,"Save"),y()()),2&n&&(w(1),La("Editing contact: ",r.contact.firstName," ",r.contact.lastName,""),w(1),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(2),Ze("Id: ",r.contact.id," "),w(4),Ze("Created on: ",Ir(12,16,r.contact.dateCreated,"dd-MM-yyyy HH:mm:ss")," "),w(3),Ze("Updated on: ",Ir(15,19,r.contact.dateUpdated,"dd-MM-yyyy HH:mm:ss"),"\n"),w(8),R("ngModel",r.contact.firstName),w(4),R("ngModel",r.contact.lastName),w(4),R("ngModel",r.contact.telephone),w(4),R("ngModel",r.contact.email),w(4),R("ngModel",r.contact.website),w(4),R("ngModel",r.contact.address),w(4),R("ngModel",r.contact.description))},dependencies:[Zt,Ln,gn,Zi],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),canActivate:[Vr]},{path:"checklists",component:qF,canActivate:[Vr]},{path:"checklist/:id",component:(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I($n),this.checklistId=-1,this.checklist={},this.newItem="",this.serviceMessage="",this.errorMessage="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.serviceMessage="Loading checklist ...",this.checklistService.getChecklist(this.checklistId).subscribe({next:n=>{this.checklist=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while getting checklists: ${n.message}`}})}ngOnInit(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push({text:this.newItem,checklist_id:this.checklist.id}),this.newItem="",this.saveCheckList())}removeItem(n){(this.checklist.checks[n].text||""===this.checklist.checks[n].text)&&(this.checklist.checks.splice(n,1),this.saveCheckList())}saveCheckList(){this.serviceMessage="Updating checklist ...",this.checklistService.saveChecklist(this.checklist).subscribe({next:n=>{this.checklist=n,this.serviceMessage="Saved checklist."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while saving checklists: ${n.message}`}})}deleteChecklist(){this.serviceMessage="Removing checklist ...",this.checklistService.deleteChecklist(this.checklistId).subscribe({next:()=>{this.router.navigateByUrl("/checklists")},error:n=>{this.serviceMessage="",this.errorMessage=`Error while deleting checklists: ${n.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(_(yt),_(Be))},e.\u0275cmp=_t({type:e,selectors:[["app-edit-checklist"]],decls:38,vars:17,consts:[[3,"hidden"],[1,"alert",3,"hidden"],["type","button","title","Delete checklist",1,"delete",3,"click"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-item"],["id","input-item","placeholder","Remember x",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],["for","input-checklist-name"],["id","input-checklist-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],["type","checkbox",3,"ngModel","ngModelChange","change"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(n,r){1&n&&(m(0,"h2"),C(1),y(),m(2,"p",0),C(3),y(),m(4,"p",1),C(5),y(),m(6,"p"),C(7),m(8,"button",2),P("click",function(){return r.deleteChecklist()}),C(9,"Delete checklist"),y(),oe(10,"br"),C(11),Sr(12,"date"),oe(13,"br"),C(14),Sr(15,"date"),y(),m(16,"h3"),C(17,"Items:"),y(),m(18,"ol"),jt(19,ZF,6,2,"li",3),y(),m(20,"h2"),C(21,"add item:"),y(),m(22,"div",4)(23,"div")(24,"label",5),C(25,"item:"),y(),m(26,"input",6),P("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),y(),m(27,"button",7),P("click",function(){return r.addItem()}),C(28,"Add"),y()()(),m(29,"h2"),C(30,"change checklist name:"),y(),m(31,"div",4)(32,"div")(33,"label",8),C(34,"newName:"),y(),m(35,"input",9),P("ngModelChange",function(i){return r.checklist.name=i})("keydown.enter",function(){return r.saveCheckList()}),y(),m(36,"button",7),P("click",function(){return r.saveCheckList()}),C(37,"Save"),y()()()),2&n&&(w(1),Ze("Editing checklist: ",r.checklist.name,""),w(1),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(2),Ze("Id: ",r.checklist.id," "),w(4),Ze("Created on: ",Ir(12,11,r.checklist.dateCreated,"dd-MM-yyyy HH:mm:ss")," "),w(3),Ze("Updated on: ",Ir(15,14,r.checklist.dateUpdated,"dd-MM-yyyy HH:mm:ss"),"\n"),w(5),R("ngForOf",r.checklist.checks),w(7),R("ngModel",r.newItem),w(9),R("ngModel",r.checklist.name))},dependencies:[Jn,Zt,dl,Ln,gn,Zi],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080;margin-left:2em}"]}),e})(),canActivate:[Vr]}];let QF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({imports:[$w.forRoot(YF),$w]}),e})(),XF=(()=>{class e{constructor(n){this.auth=n}intercept(n,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=n.clone({headers:n.headers.set("Authorization",o)});return r.handle(i)}return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(N(tt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),KF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e,bootstrap:[xF]}),e.\u0275inj=Rt({providers:[{provide:D0,useClass:XF,multi:!0},{provide:Kn,useClass:v_}],imports:[cO,_P,zP,QF]}),e})();lO().bootstrapModule(KF).catch(e=>console.error(e))}},ce=>{ce(ce.s=332)}]); \ No newline at end of file diff --git a/front/dist/familySite1/styles.83e6cb3ba28cd7b4.css b/front/dist/familySite1/styles.9d88ca8b65c2ed98.css similarity index 77% rename from front/dist/familySite1/styles.83e6cb3ba28cd7b4.css rename to front/dist/familySite1/styles.9d88ca8b65c2ed98.css index b4fdb26..b6c381c 100644 --- a/front/dist/familySite1/styles.83e6cb3ba28cd7b4.css +++ b/front/dist/familySite1/styles.9d88ca8b65c2ed98.css @@ -1 +1 @@ -*{font-family:Arial,Helvetica,sans-serif}html,body{height:100%;margin:0}app-root{height:100%;display:flex;flex-direction:column}main{margin:1em auto;width:90%}h2,h3{font-weight:lighter;margin:.4em 0}body,button{font-family:Cambria,Georgia,serif}button{border:none;border-radius:4px;cursor:pointer;padding:.2rem .4rem;margin-right:.2rem}.footer{margin-top:auto}.theme-dark{color-scheme:light dark} +*{font-family:Arial,Helvetica,sans-serif}html,body{height:100%;margin:0}app-root{height:100%;display:flex;flex-direction:column}main{margin:1em auto;width:90%}h2,h3{font-weight:lighter;margin:.4em 0}body,button{font-family:Cambria,Georgia,serif}button{border:none;border-radius:4px;cursor:pointer;padding:.2rem .4rem;margin-right:.2rem}.alert{color:red}.footer{margin-top:auto}.theme-dark{color-scheme:light dark}