tds-truyen-network-site/front/dist/familySite1/main.2f6df5d029e719c0.js

1 line
297 KiB
JavaScript

"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{830:()=>{function le(e){return"function"==typeof e}function jo(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 ps=jo(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 $o(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class St{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(le(r))try{r()}catch(i){t=i instanceof ps?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 ps?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ps(t)}}add(t){var n;if(t&&t!==this)if(this.closed)dh(t);else{if(t instanceof St){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)&&$o(n,t)}remove(t){const{_finalizers:n}=this;n&&$o(n,t),t instanceof St&&t._removeParent(this)}}St.EMPTY=(()=>{const e=new St;return e.closed=!0,e})();const uh=St.EMPTY;function ch(e){return e instanceof St||e&&"closed"in e&&le(e.remove)&&le(e.add)&&le(e.unsubscribe)}function dh(e){le(e)?e():e.unsubscribe()}const sr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},gs={setTimeout(e,t,...n){const{delegate:r}=gs;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=gs;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function fh(e){gs.setTimeout(()=>{const{onUnhandledError:t}=sr;if(!t)throw e;t(e)})}function hh(){}const ME=Ol("C",void 0,void 0);function Ol(e,t,n){return{kind:e,value:t,error:n}}let ar=null;function ms(e){if(sr.useDeprecatedSynchronousErrorHandling){const t=!ar;if(t&&(ar={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=ar;if(ar=null,n)throw r}}else e()}class xl extends St{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ch(t)&&t.add(this)):this.destination=OE}static create(t,n,r){return new Bo(t,n,r)}next(t){this.isStopped?Fl(function IE(e){return Ol("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Fl(function SE(e){return Ol("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Fl(ME,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 AE=Function.prototype.bind;function Pl(e,t){return AE.call(e,t)}class NE{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ys(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ys(r)}else ys(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ys(n)}}}class Bo extends xl{constructor(t,n,r){let o;if(super(),le(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&sr.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Pl(t.next,i),error:t.error&&Pl(t.error,i),complete:t.complete&&Pl(t.complete,i)}):o=t}this.destination=new NE(o)}}function ys(e){sr.useDeprecatedSynchronousErrorHandling?function TE(e){sr.useDeprecatedSynchronousErrorHandling&&ar&&(ar.errorThrown=!0,ar.error=e)}(e):fh(e)}function Fl(e,t){const{onStoppedNotification:n}=sr;n&&gs.setTimeout(()=>n(e,t))}const OE={closed:!0,next:hh,error:function RE(e){throw e},complete:hh},kl="function"==typeof Symbol&&Symbol.observable||"@@observable";function lr(e){return e}function ph(e){return 0===e.length?lr:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let Ee=(()=>{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 FE(e){return e&&e instanceof xl||function PE(e){return e&&le(e.next)&&le(e.error)&&le(e.complete)}(e)&&ch(e)}(n)?n:new Bo(n,r,o);return ms(()=>{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=gh(r))((o,i)=>{const s=new Bo({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)}[kl](){return this}pipe(...n){return ph(n)(this)}toPromise(n){return new(n=gh(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function gh(e){var t;return null!==(t=e??sr.Promise)&&void 0!==t?t:Promise}const kE=jo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Cn=(()=>{class e extends Ee{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new mh(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new kE}next(n){ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ms(()=>{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(){ms(()=>{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?uh:(this.currentObservers=null,i.push(n),new St(()=>{this.currentObservers=null,$o(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new Ee;return n.source=this,n}}return e.create=(t,n)=>new mh(t,n),e})();class mh extends Cn{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:uh}}function yh(e){return le(e?.lift)}function $e(e){return t=>{if(yh(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 He(e,t,n,r,o){return new LE(e,t,n,r,o)}class LE extends xl{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 ee(e,t){return $e((n,r)=>{let o=0;n.subscribe(He(r,i=>{r.next(e.call(t,i,o++))}))})}function ur(e){return this instanceof ur?(this.v=e,this):new ur(e)}function $E(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 Ch(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 _h=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function wh(e){return le(e?.then)}function Eh(e){return le(e[kl])}function bh(e){return Symbol.asyncIterator&&le(e?.[Symbol.asyncIterator])}function Mh(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 Sh=function UE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ih(e){return le(e?.[Sh])}function Th(e){return function jE(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 ur?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 ur(n.read());if(o)return yield ur(void 0);yield yield ur(r)}}finally{n.releaseLock()}})}function Ah(e){return le(e?.getReader)}function It(e){if(e instanceof Ee)return e;if(null!=e){if(Eh(e))return function zE(e){return new Ee(t=>{const n=e[kl]();if(le(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(_h(e))return function GE(e){return new Ee(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(wh(e))return function WE(e){return new Ee(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,fh)})}(e);if(bh(e))return Nh(e);if(Ih(e))return function qE(e){return new Ee(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Ah(e))return function ZE(e){return Nh(Th(e))}(e)}throw Mh(e)}function Nh(e){return new Ee(t=>{(function YE(e,t){var n,r,o,i;return function VE(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=$E(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 _n(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 Be(e,t,n=1/0){return le(t)?Be((r,o)=>ee((i,s)=>t(r,i,o,s))(It(e(r,o))),n):("number"==typeof t&&(n=t),$e((r,o)=>function QE(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<r?p(m):l.push(m),p=m=>{i&&t.next(m),u++;let y=!1;It(n(m,c++)).subscribe(He(t,w=>{o?.(w),i?h(w):t.next(w)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;l.length&&u<r;){const w=l.shift();s?_n(t,s,()=>p(w)):p(w)}f()}catch(w){t.error(w)}}))};return e.subscribe(He(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function kr(e=1/0){return Be(lr,e)}const Xt=new Ee(e=>e.complete());function Vl(e){return e[e.length-1]}function Rh(e){return le(Vl(e))?e.pop():void 0}function Uo(e){return function KE(e){return e&&le(e.schedule)}(Vl(e))?e.pop():void 0}function Oh(e,t=0){return $e((n,r)=>{n.subscribe(He(r,o=>_n(r,e,()=>r.next(o),t),()=>_n(r,e,()=>r.complete(),t),o=>_n(r,e,()=>r.error(o),t)))})}function xh(e,t=0){return $e((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ph(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ee(n=>{_n(n,t,()=>{const r=e[Symbol.asyncIterator]();_n(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Oe(e,t){return t?function ib(e,t){if(null!=e){if(Eh(e))return function eb(e,t){return It(e).pipe(xh(t),Oh(t))}(e,t);if(_h(e))return function nb(e,t){return new Ee(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(wh(e))return function tb(e,t){return It(e).pipe(xh(t),Oh(t))}(e,t);if(bh(e))return Ph(e,t);if(Ih(e))return function rb(e,t){return new Ee(n=>{let r;return _n(n,t,()=>{r=e[Sh](),_n(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)}),()=>le(r?.return)&&r.return()})}(e,t);if(Ah(e))return function ob(e,t){return Ph(Th(e),t)}(e,t)}throw Mh(e)}(e,t):It(e)}function Hl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Bo({next:()=>{r.unsubscribe(),e()}});return It(t(...n)).subscribe(r)}function ie(e){for(let t in e)if(e[t]===ie)return t;throw Error("Could not find renamed property on target object.")}function jl(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function xe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(xe).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 $l(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const lb=ie({__forward_ref__:ie});function ue(e){return e.__forward_ref__=ue,e.toString=function(){return xe(this())},e}function j(e){return Bl(e)?e():e}function Bl(e){return"function"==typeof e&&e.hasOwnProperty(lb)&&e.__forward_ref__===ue}function Ul(e){return e&&!!e.\u0275providers}const Fh="https://g.co/ng/security#xss";class C extends Error{constructor(t,n){super(function zl(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function $(e){return"string"==typeof e?e:null==e?"":String(e)}function vs(e,t){throw new C(-201,!1)}function Tt(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 R(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function At(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ds(e){return kh(e,Cs)||kh(e,Vh)}function kh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Lh(e){return e&&(e.hasOwnProperty(Gl)||e.hasOwnProperty(mb))?e[Gl]:null}const Cs=ie({\u0275prov:ie}),Gl=ie({\u0275inj:ie}),Vh=ie({ngInjectableDef:ie}),mb=ie({ngInjectorDef:ie});var k=(()=>((k=k||{})[k.Default=0]="Default",k[k.Host=1]="Host",k[k.Self=2]="Self",k[k.SkipSelf=4]="SkipSelf",k[k.Optional=8]="Optional",k))();let Wl;function it(e){const t=Wl;return Wl=e,t}function jh(e,t,n){const r=Ds(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&k.Optional?null:void 0!==t?t:void vs(xe(e))}const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),zo={},ql="__NG_DI_FLAG__",_s="ngTempTokenPath",vb=/\n/gm,$h="__source";let Lr;function $n(e){const t=Lr;return Lr=e,t}function _b(e,t=k.Default){if(void 0===Lr)throw new C(-203,!1);return null===Lr?jh(e,void 0,t):Lr.get(e,t&k.Optional?null:void 0,t)}function T(e,t=k.Default){return(function Hh(){return Wl}()||_b)(j(e),t)}function A(e,t=k.Default){return T(e,ws(t))}function ws(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Zl(e){const t=[];for(let n=0;n<e.length;n++){const r=j(e[n]);if(Array.isArray(r)){if(0===r.length)throw new C(900,!1);let o,i=k.Default;for(let s=0;s<r.length;s++){const a=r[s],l=wb(a);"number"==typeof l?-1===l?o=a.token:i|=l:o=a}t.push(T(o,i))}else t.push(T(r))}return t}function Go(e,t){return e[ql]=t,e.prototype[ql]=t,e}function wb(e){return e[ql]}function wn(e){return{toString:e}.toString()}var Kt=(()=>((Kt=Kt||{})[Kt.OnPush=0]="OnPush",Kt[Kt.Default=1]="Default",Kt))(),yt=(()=>{return(e=yt||(yt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",yt;var e})();const En={},J=[],Es=ie({\u0275cmp:ie}),Yl=ie({\u0275dir:ie}),Ql=ie({\u0275pipe:ie}),Uh=ie({\u0275mod:ie}),bn=ie({\u0275fac:ie}),Wo=ie({__NG_ELEMENT_ID__:ie}),zh=ie({__NG_ENV_ID__:ie});function Gh(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 Xl(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{const i=o,s=n[++r];qh(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Wh(e){return 3===e||4===e||6===e}function qh(e){return 64===e.charCodeAt(0)}function qo(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||Zh(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function Zh(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}const Yh="ng-template";function Mb(e,t,n){let r=0,o=!0;for(;r<e.length;){let i=e[r++];if("string"==typeof i&&o){const s=e[r++];if(n&&"class"===i&&-1!==Gh(s.toLowerCase(),t,0))return!0}else{if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}"number"==typeof i&&(o=!1)}}return!1}function Qh(e){return 4===e.type&&e.value!==Yh}function Sb(e,t,n){return t===(4!==e.type||n?e.value:Yh)}function Ib(e,t,n){let r=4;const o=e.attrs||[],i=function Nb(e){for(let t=0;t<e.length;t++)if(Wh(e[t]))return t;return e.length}(o);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!Sb(e,l,n)||""===l&&1===t.length){if(Ft(r))return!1;s=!0}}else{const u=8&r?l:t[++a];if(8&r&&null!==e.attrs){if(!Mb(e.attrs,u,n)){if(Ft(r))return!1;s=!0}continue}const d=Tb(8&r?"class":l,o,Qh(e),n);if(-1===d){if(Ft(r))return!1;s=!0;continue}if(""!==u){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Gh(h,u,0)||2&r&&u!==f){if(Ft(r))return!1;s=!0}}}}else{if(!s&&!Ft(r)&&!Ft(l))return!1;if(s&&Ft(l))continue;s=!1,r=l|1&r}}return Ft(r)||s}function Ft(e){return 0==(1&e)}function Tb(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function Rb(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Xh(e,t,n=!1){for(let r=0;r<t.length;r++)if(Ib(e,t[r],n))return!0;return!1}function Kh(e,t){return e?":not("+t.trim()+")":t}function xb(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Ft(s)&&(t+=Kh(i,o),o=""),r=s,i=i||!Ft(r);n++}return""!==o&&(t+=Kh(i,o)),t}function kt(e){return wn(()=>{const t=ep(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||yt.Emulated,styles:e.styles||J,_:null,schemas:e.schemas||null,tView:null,id:""};tp(n);const r=e.dependencies;return n.directiveDefs=bs(r,!1),n.pipeDefs=bs(r,!0),n.id=function $b(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 Lb(e){return te(e)||We(e)}function Vb(e){return null!==e}function Lt(e){return wn(()=>({type:e.type,bootstrap:e.bootstrap||J,declarations:e.declarations||J,imports:e.imports||J,exports:e.exports||J,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Jh(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 H(e){return wn(()=>{const t=ep(e);return tp(t),t})}function st(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 te(e){return e[Es]||null}function We(e){return e[Yl]||null}function at(e){return e[Ql]||null}function vt(e,t){const n=e[Uh]||null;if(!n&&!0===t)throw new Error(`Type ${xe(e)} does not have '\u0275mod' property.`);return n}function ep(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||J,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Jh(e.inputs,t),outputs:Jh(e.outputs)}}function tp(e){e.features?.forEach(t=>t(e))}function bs(e,t){if(!e)return null;const n=t?at:Lb;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Vb)}const Pe=0,S=1,G=2,me=3,Vt=4,cr=5,qe=6,Hr=7,Ce=8,jr=9,dr=10,U=11,Zo=12,np=13,$r=14,Ie=15,Yo=16,Br=17,Jt=18,Qo=19,rp=20,Bn=21,Mn=22,Ms=23,Ss=24,Q=25,Kl=1,op=2,en=7,Is=8,Ur=9,Ue=11;function Dt(e){return Array.isArray(e)&&"object"==typeof e[Kl]}function lt(e){return Array.isArray(e)&&!0===e[Kl]}function Jl(e){return 0!=(4&e.flags)}function fr(e){return e.componentOffset>-1}function Ts(e){return 1==(1&e.flags)}function Ht(e){return!!e.template}function eu(e){return 0!=(512&e[G])}function hr(e,t){return e.hasOwnProperty(bn)?e[bn]:null}let Wb=ce.WeakRef??class Gb{constructor(t){this.ref=t}deref(){return this.ref}},Zb=0,tn=null,As=!1;function je(e){const t=tn;return tn=e,t}class up{constructor(){this.id=Zb++,this.ref=function qb(e){return new Wb(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=As;As=!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{As=t}}producerAccessed(){if(As)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 cp=null;const dp=()=>{};class Kb extends up{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 Jb{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Nt(){return fp}function fp(e){return e.type.prototype.ngOnChanges&&(e.setInput=tM),eM}function eM(){const e=pp(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 tM(e,t,n,r){const o=this.declaredInputs[n],i=pp(e)||function nM(e,t){return e[hp]=t}(e,{previous:En,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new Jb(l&&l.currentValue,t,a===En),e[r]=t}Nt.ngInherit=!0;const hp="__ngSimpleChanges__";function pp(e){return e[hp]||null}const nn=function(e,t,n){};function he(e){for(;Array.isArray(e);)e=e[Pe];return e}function Os(e,t){return he(t[e])}function ut(e,t){return he(t[e.index])}function yp(e,t){return e.data[t]}function ct(e,t){const n=t[e];return Dt(n)?n:n[Pe]}function xs(e){return 128==(128&e[G])}function Un(e,t){return null==t?null:e[t]}function vp(e){e[Br]=0}function lM(e){1024&e[G]||(e[G]|=1024,Cp(e,1))}function Dp(e){1024&e[G]&&(e[G]&=-1025,Cp(e,-1))}function Cp(e,t){let n=e[me];if(null===n)return;n[cr]+=t;let r=n;for(n=n[me];null!==n&&(1===t&&1===r[cr]||-1===t&&0===r[cr]);)n[cr]+=t,r=n,n=n[me]}const V={lFrame:Rp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ep(){return V.bindingsEnabled}function D(){return V.lFrame.lView}function K(){return V.lFrame.tView}function zn(e){return V.lFrame.contextLView=e,e[Ce]}function Gn(e){return V.lFrame.contextLView=null,e}function ze(){let e=bp();for(;null!==e&&64===e.type;)e=e.parent;return e}function bp(){return V.lFrame.currentTNode}function rn(e,t){const n=V.lFrame;n.currentTNode=e,n.isParent=t}function su(){return V.lFrame.isParent}function Ke(){const e=V.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wr(){return V.lFrame.bindingIndex++}function In(e){const t=V.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function CM(e,t){const n=V.lFrame;n.bindingIndex=n.bindingRootIndex=e,lu(t)}function lu(e){V.lFrame.currentDirectiveIndex=e}function Tp(){return V.lFrame.currentQueryIndex}function cu(e){V.lFrame.currentQueryIndex=e}function wM(e){const t=e[S];return 2===t.type?t.declTNode:1===t.type?e[qe]:null}function Ap(e,t,n){if(n&k.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&k.Host||(o=wM(i),null===o||(i=i[$r],10&o.type))););if(null===o)return!1;t=o,e=i}const r=V.lFrame=Np();return r.currentTNode=t,r.lView=e,!0}function du(e){const t=Np(),n=e[S];V.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Np(){const e=V.lFrame,t=null===e?null:e.child;return null===t?Rp(e):t}function Rp(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 Op(){const e=V.lFrame;return V.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const xp=Op;function fu(){const e=Op();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 Je(){return V.lFrame.selectedIndex}function pr(e){V.lFrame.selectedIndex=e}function ye(){const e=V.lFrame;return yp(e.tView,e.selectedIndex)}let Fp=!0;function Ps(){return Fp}function Wn(e){Fp=e}function Fs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),l&&(e.viewHooks??=[]).push(-n,l),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),null!=c&&(e.destroyHooks??=[]).push(n,c)}}function ks(e,t,n){kp(e,t,3,n)}function Ls(e,t,n,r){(3&e[G])===n&&kp(e,t,n,r)}function hu(e,t){let n=e[G];(3&n)===t&&(n&=4095,n+=1,e[G]=n)}function kp(e,t,n,r){const i=r??-1,s=t.length-1;let a=0;for(let l=void 0!==r?65535&e[Br]:0;l<s;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=r&&a>=r)break}else t[l]<0&&(e[Br]+=65536),(a<i||-1==i)&&(NM(e,n,t,l),e[Br]=(4294901760&e[Br])+l+2),l++}function Lp(e,t){nn(4,e,t);const n=je(null);try{t.call(e)}finally{je(n),nn(5,e,t)}}function NM(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[G]>>12<e[Br]>>16&&(3&e[G])===t&&(e[G]+=4096,Lp(a,i)):Lp(a,i)}const qr=-1;class Jo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Vp(e){return e!==qr}function Vs(e){return 32767&e}function Hs(e,t){let n=function PM(e){return e>>16}(e),r=t;for(;n>0;)r=r[$r],n--;return r}let gu=!0;function js(e){const t=gu;return gu=e,t}const Hp=255,jp=5;let FM=0;const on={};function $s(e,t){const n=$p(e,t);if(-1!==n)return n;const r=t[S];r.firstCreatePass&&(e.injectorIndex=t.length,mu(r.data,e),mu(t,null),mu(r.blueprint,null));const o=yu(e,t),i=e.injectorIndex;if(Vp(o)){const s=Vs(o),a=Hs(o,t),l=a[S].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function mu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function $p(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function yu(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=Zp(o),null===r)return qr;if(n++,o=o[$r],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return qr}function vu(e,t,n){!function kM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Wo)&&(r=n[Wo]),null==r&&(r=n[Wo]=FM++);const o=r&Hp;t.data[e+(o>>jp)]|=1<<o}(e,t,n)}function Bp(e,t,n){if(n&k.Optional||void 0!==e)return e;vs()}function Up(e,t,n,r){if(n&k.Optional&&void 0===r&&(r=null),!(n&(k.Self|k.Host))){const o=e[jr],i=it(void 0);try{return o?o.get(t,r,n&k.Optional):jh(t,r,n&k.Optional)}finally{it(i)}}return Bp(r,0,n)}function zp(e,t,n,r=k.Default,o){if(null!==e){if(2048&t[G]){const s=function $M(e,t,n,r,o){let i=e,s=t;for(;null!==i&&null!==s&&2048&s[G]&&!(512&s[G]);){const a=Gp(i,s,n,r|k.Self,on);if(a!==on)return a;let l=i.parent;if(!l){const u=s[rp];if(u){const c=u.get(n,on,r);if(c!==on)return c}l=Zp(s),s=s[$r]}i=l}return o}(e,t,n,r,on);if(s!==on)return s}const i=Gp(e,t,n,r,on);if(i!==on)return i}return Up(t,n,r,o)}function Gp(e,t,n,r,o){const i=function HM(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Wo)?e[Wo]:void 0;return"number"==typeof t?t>=0?t&Hp:jM:t}(n);if("function"==typeof i){if(!Ap(t,e,r))return r&k.Host?Bp(o,0,r):Up(t,n,r,o);try{const s=i(r);if(null!=s||r&k.Optional)return s;vs()}finally{xp()}}else if("number"==typeof i){let s=null,a=$p(e,t),l=qr,u=r&k.Host?t[Ie][qe]:null;for((-1===a||r&k.SkipSelf)&&(l=-1===a?yu(e,t):t[a+8],l!==qr&&qp(r,!1)?(s=t[S],a=Vs(l),t=Hs(l,t)):a=-1);-1!==a;){const c=t[S];if(Wp(i,a,c.data)){const d=VM(a,t,n,s,r,u);if(d!==on)return d}l=t[a+8],l!==qr&&qp(r,t[S].data[a+8]===u)&&Wp(i,a,t)?(s=c,a=Vs(l),t=Hs(l,t)):a=-1}}return o}function VM(e,t,n,r,o,i){const s=t[S],a=s.data[e+8],c=Bs(a,s,n,null==r?fr(a)&&gu:r!=s&&0!=(3&a.type),o&k.Host&&i===a);return null!==c?gr(t,s,c,a):on}function Bs(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<f;h++){const p=s[h];if(h<l&&n===p||h>=l&&p.type===n)return h}if(o){const h=s[l];if(h&&Ht(h)&&h.type===n)return l}return null}function gr(e,t,n,r){let o=e[n];const i=t.data;if(function RM(e){return e instanceof Jo}(o)){const s=o;s.resolving&&function ub(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-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():$(e)}(i[n]));const a=js(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?it(s.injectImpl):null;Ap(e,r,k.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function AM(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=fp(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&&it(l),js(a),s.resolving=!1,xp()}}return o}function Wp(e,t,n){return!!(n[t+(e>>jp)]&1<<e)}function qp(e,t){return!(e&k.Self||e&k.Host&&t)}class Zr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return zp(this._tNode,this._lView,t,ws(r),n)}}function jM(){return new Zr(ze(),D())}function Ge(e){return wn(()=>{const t=e.prototype.constructor,n=t[bn]||Du(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[bn]||Du(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Du(e){return Bl(e)?()=>{const t=Du(j(e));return t&&t()}:hr(e)}function Zp(e){const t=e[S],n=t.type;return 2===n?t.declTNode:1===n?e[qe]:null}const Qr="__parameters__";function Kr(e,t,n){return wn(()=>{const r=function Cu(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(Qr)?l[Qr]:Object.defineProperty(l,Qr,{value:[]})[Qr];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 ni(e,t){e.forEach(n=>Array.isArray(n)?ni(n,t):t(n))}function Qp(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 Ct(e,t,n){let r=Jr(e,t);return r>=0?e[1|r]=n:(r=~r,function WM(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 _u(e,t){const n=Jr(e,t);if(n>=0)return e[1|n]}function Jr(e,t){return function Xp(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}(e,t,1)}const Ws=Go(Kr("Optional"),8),qs=Go(Kr("SkipSelf"),4);function Qs(e){return 128==(128&e.flags)}var dt=(()=>((dt=dt||{})[dt.Important=1]="Important",dt[dt.DashCase=2]="DashCase",dt))();const Tu=new Map;let mS=0;const Nu="__ngContext__";function Ze(e,t){Dt(t)?(e[Nu]=t[Qo],function vS(e){Tu.set(e[Qo],e)}(t)):e[Nu]=t}let Ru;function Ou(e,t){return Ru(e,t)}function si(e){const t=e[me];return lt(t)?t[me]:t}function xu(e){return mg(e[Zo])}function Pu(e){return mg(e[Vt])}function mg(e){for(;null!==e&&!lt(e);)e=e[Vt];return e}function no(e,t,n,r,o){if(null!=r){let i,s=!1;lt(r)?i=r:Dt(r)&&(s=!0,r=r[Pe]);const a=he(r);0===e&&null!==n?null==o?_g(t,n,a):mr(t,n,a,o||null,!0):1===e&&null!==n?mr(t,n,a,o||null,!0):2===e?function na(e,t,n){const r=ea(e,t);r&&function LS(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function jS(e,t,n,r,o){const i=n[en];i!==he(n)&&no(t,e,r,i,o);for(let a=Ue;a<n.length;a++){const l=n[a];li(l[S],l,e,t,r,i)}}(t,e,i,n,o)}}function Js(e,t,n){return e.createElement(t,n)}function vg(e,t){const n=e[Ur],r=n.indexOf(t);Dp(t),n.splice(r,1)}function ku(e,t){if(e.length<=Ue)return;const n=Ue+t,r=e[n];if(r){const o=r[Yo];null!==o&&o!==e&&vg(o,r),t>0&&(e[n-1][Vt]=r[Vt]);const i=zs(e,Ue+t);!function AS(e,t){li(e,t,t[U],2,null,null),t[Pe]=null,t[qe]=null}(r[S],r);const s=i[Jt];null!==s&&s.detachView(i[S]),r[me]=null,r[Vt]=null,r[G]&=-129}return r}function Dg(e,t){if(!(256&t[G])){const n=t[U];t[Ms]?.destroy(),t[Ss]?.destroy(),n.destroyNode&&li(e,t,n,3,null,null),function OS(e){let t=e[Zo];if(!t)return Lu(e[S],e);for(;t;){let n=null;if(Dt(t))n=t[Zo];else{const r=t[Ue];r&&(n=r)}if(!n){for(;t&&!t[Vt]&&t!==e;)Dt(t)&&Lu(t[S],t),t=t[me];null===t&&(t=e),Dt(t)&&Lu(t[S],t),n=t&&t[Vt]}t=n}}(t)}}function Lu(e,t){if(!(256&t[G])){t[G]&=-129,t[G]|=256,function kS(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof Jo)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],l=i[s+1];nn(4,a,l);try{l.call(a)}finally{nn(5,a,l)}}else{nn(4,o,i);try{i.call(o)}finally{nn(5,o,i)}}}}}(e,t),function FS(e,t){const n=e.cleanup,r=t[Hr];if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+3];s>=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Hr]=null);const o=t[Bn];if(null!==o){for(let i=0;i<o.length;i++)(0,o[i])();t[Bn]=null}}(e,t),1===t[S].type&&t[U].destroy();const n=t[Yo];if(null!==n&&lt(t[me])){n!==t[me]&&vg(n,t);const r=t[Jt];null!==r&&r.detachView(e)}!function DS(e){Tu.delete(e[Qo])}(t)}}function Vu(e,t,n){return function Cg(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[Pe];{const{componentOffset:o}=r;if(o>-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===yt.None||i===yt.Emulated)return null}return ut(r,n)}}(e,t.parent,n)}function mr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function _g(e,t,n){e.appendChild(t,n)}function wg(e,t,n,r,o){null!==r?mr(e,t,n,r,o):_g(e,t,n)}function ea(e,t){return e.parentNode(t)}let Hu,Uu,oa,Mg=function bg(e,t,n){return 40&e.type?ut(e,n):null};function ta(e,t,n,r){const o=Vu(e,r,t),i=t[U],a=function Eg(e,t,n){return Mg(e,t,n)}(r.parent||t[qe],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;l<n.length;l++)wg(i,o,n[l],a,!1);else wg(i,o,n,a,!1);void 0!==Hu&&Hu(i,r,t,n,o)}function ai(e,t){if(null!==t){const n=t.type;if(3&n)return ut(t,e);if(4&n)return ju(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return ai(e,r);{const o=e[t.index];return lt(o)?ju(-1,o):he(o)}}if(32&n)return Ou(t,e)()||he(e[t.index]);{const r=Ig(e,t);return null!==r?Array.isArray(r)?r[0]:ai(si(e[Ie]),r):ai(e,t.next)}}return null}function Ig(e,t){return null!==t?e[Ie][qe].projection[t.projection]:null}function ju(e,t){const n=Ue+e+1;if(n<t.length){const r=t[n],o=r[S].firstChild;if(null!==o)return ai(r,o)}return t[en]}function $u(e,t,n,r,o,i,s){for(;null!=n;){const a=r[n.index],l=n.type;if(s&&0===t&&(a&&Ze(he(a),r),n.flags|=2),32!=(32&n.flags))if(8&l)$u(e,t,n.child,r,o,i,!1),no(t,e,o,a,i);else if(32&l){const u=Ou(n,r);let c;for(;c=u();)no(t,e,o,c,i);no(t,e,o,a,i)}else 16&l?Ag(e,t,r,n,o,i):no(t,e,o,a,i);n=s?n.projectionNext:n.next}}function li(e,t,n,r,o,i){$u(n,r,e.firstChild,t,o,i,!1)}function Ag(e,t,n,r,o,i){const s=n[Ie],l=s[qe].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)no(t,e,o,l[u],i);else{let u=l;const c=s[me];Qs(r)&&(u.flags|=128),$u(e,t,u,c,o,i,!0)}}function Ng(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Rg(e,t,n){const{mergedAttrs:r,classes:o,styles:i}=n;null!==r&&Xl(e,t,r),null!==o&&Ng(e,t,o),null!==i&&function BS(e,t,n){e.setAttribute(t,"style",n)}(e,t,i)}function Pg(e){return function zu(){if(void 0===oa&&(oa=null,ce.trustedTypes))try{oa=ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return oa}()?.createScriptURL(e)||e}class Fg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Fh})`}}function qn(e){return e instanceof Fg?e.changingThisBreaksApplicationSecurity:e}function ci(e,t){const n=function KS(e){return e instanceof Fg&&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 ${Fh})`)}return n===t}const nI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Te=(()=>((Te=Te||{})[Te.NONE=0]="NONE",Te[Te.HTML=1]="HTML",Te[Te.STYLE=2]="STYLE",Te[Te.SCRIPT=3]="SCRIPT",Te[Te.URL=4]="URL",Te[Te.RESOURCE_URL=5]="RESOURCE_URL",Te))();function Yu(e){const t=fi();return t?t.sanitize(Te.URL,e)||"":ci(e,"URL")?qn(e):function Gu(e){return(e=String(e)).match(nI)?e:"unsafe:"+e}($(e))}function Bg(e){const t=fi();if(t)return Pg(t.sanitize(Te.RESOURCE_URL,e)||"");if(ci(e,"ResourceURL"))return Pg(qn(e));throw new C(904,!1)}function fi(){const e=D();return e&&e[dr].sanitizer}class N{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=R({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const hi=new N("ENVIRONMENT_INITIALIZER"),zg=new N("INJECTOR",-1),Gg=new N("INJECTOR_DEF_TYPES");class Wg{get(t,n=zo){if(n===zo){const r=new Error(`NullInjectorError: No provider for ${xe(t)}!`);throw r.name="NullInjectorError",r}return n}}function gI(...e){return{\u0275providers:qg(0,e),\u0275fromNgModule:!0}}function qg(e,...t){const n=[],r=new Set;let o;return ni(t,i=>{const s=i;Xu(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Zg(o,n),n}function Zg(e,t){for(let n=0;n<e.length;n++){const{providers:o}=e[n];Ku(o,i=>{t.push(i)})}}function Xu(e,t,n,r){if(!(e=j(e)))return!1;let o=null,i=Lh(e);const s=!i&&te(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Lh(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)Xu(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{ni(i.imports,c=>{Xu(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&Zg(u,t)}if(!a){const u=hr(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:J},{provide:Gg,useValue:o,multi:!0},{provide:hi,useValue:()=>T(o),multi:!0})}const l=i.providers;null==l||a||Ku(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function Ku(e,t){for(let n of e)Ul(n)&&(n=n.\u0275providers),Array.isArray(n)?Ku(n,t):t(n)}const mI=ie({provide:String,useValue:ie});function Ju(e){return null!==e&&"object"==typeof e&&mI in e}function yr(e){return"function"==typeof e}const ec=new N("Set Injector scope."),sa={},vI={};let tc;function aa(){return void 0===tc&&(tc=new Wg),tc}class sn{}class nc 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,oc(t,s=>this.processProvider(s)),this.records.set(zg,oo(void 0,this)),o.has("environment")&&this.records.set(sn,oo(void 0,this));const i=this.records.get(ec);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Gg.multi,J,k.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=$n(this),r=it(void 0);try{return t()}finally{$n(n),it(r)}}get(t,n=zo,r=k.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(zh))return t[zh](this);r=ws(r);const o=$n(this),i=it(void 0);try{if(!(r&k.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function EI(e){return"function"==typeof e||"object"==typeof e&&e instanceof N}(t)&&Ds(t);a=l&&this.injectableDefInScope(l)?oo(rc(t),sa):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&k.Self?aa():this.parent).get(t,n=r&k.Optional&&n===zo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[_s]=s[_s]||[]).unshift(xe(t)),o)throw s;return function Eb(e,t,n,r){const o=e[_s];throw t[$h]&&o.unshift(t[$h]),e.message=function bb(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=xe(t);if(Array.isArray(t))o=t.map(xe).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):xe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(vb,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[_s]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{it(i),$n(o)}}resolveInjectorInitializers(){const t=$n(this),n=it(void 0);try{const r=this.get(hi.multi,J,k.Self);for(const o of r)o()}finally{$n(t),it(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(xe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=yr(t=j(t))?t:j(t&&t.provide);const r=function CI(e){return Ju(e)?oo(void 0,e.useValue):oo(Xg(e),sa)}(t);if(yr(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=oo(void 0,sa,!0),o.factory=()=>Zl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===sa&&(n.value=vI,n.value=n.factory()),"object"==typeof n.value&&n.value&&function wI(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=j(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 rc(e){const t=Ds(e),n=null!==t?t.factory:hr(e);if(null!==n)return n;if(e instanceof N)throw new C(204,!1);if(e instanceof Function)return function DI(e){const t=e.length;if(t>0)throw function ri(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?"),new C(204,!1);const n=function gb(e){return e&&(e[Cs]||e[Vh])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new C(204,!1)}function Xg(e,t,n){let r;if(yr(e)){const o=j(e);return hr(o)||rc(o)}if(Ju(e))r=()=>j(e.useValue);else if(function Qg(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Zl(e.deps||[]));else if(function Yg(e){return!(!e||!e.useExisting)}(e))r=()=>T(j(e.useExisting));else{const o=j(e&&(e.useClass||e.provide));if(!function _I(e){return!!e.deps}(e))return hr(o)||rc(o);r=()=>new o(...Zl(e.deps))}return r}function oo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function oc(e,t){for(const n of e)Array.isArray(n)?oc(n,t):n&&Ul(n)?oc(n.\u0275providers,t):t(n)}const la=new N("AppId",{providedIn:"root",factory:()=>bI}),bI="ng",Kg=new N("Platform Initializer"),vr=new N("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Jg=new N("CSP nonce",{providedIn:"root",factory:()=>function ui(){if(void 0!==Uu)return Uu;if(typeof document<"u")return document;throw new C(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let tm=(e,t)=>null;function nm(e,t){return tm(e,t)}class PI{}class im{}class kI{resolveComponentFactory(t){throw function FI(e){const t=Error(`No component factory found for ${xe(e)}.`);return t.ngComponent=e,t}(t)}}let ha=(()=>{class e{}return e.NULL=new kI,e})();function LI(){return io(ze(),D())}function io(e,t){return new _t(ut(e,t))}let _t=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=LI,e})();function VI(e){return e instanceof _t?e.nativeElement:e}class am{}let An=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function HI(){const e=D(),n=ct(ze().index,e);return(Dt(n)?n:e)[U]}(),e})(),jI=(()=>{class e{}return e.\u0275prov=R({token:e,providedIn:"root",factory:()=>null}),e})();class yi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const $I=new yi("16.0.1"),gc={};function vi(e){for(;e;){e[G]|=64;const t=si(e);if(eu(e)&&!t)return e;e=t}return null}function mc(e){return e.ngOriginalError}class Dr{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&&mc(t);for(;n&&mc(n);)n=mc(n);return n||null}}const cm=new N("",{providedIn:"root",factory:()=>!1});function Nn(e){return e instanceof Function?e():e}class hm extends up{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){vi(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 ga=null;function pm(){return ga??=new hm,ga}function gm(e,t){return e[t]??pm()}function mm(e,t){const n=pm();n.hasReadASignal&&(e[t]=ga,n.lView=e,ga=new hm)}const z={};function O(e){ym(K(),D(),Je()+e,!1)}function ym(e,t,n,r){if(!r)if(3==(3&t[G])){const i=e.preOrderCheckHooks;null!==i&&ks(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Ls(t,i,0,n)}pr(n)}function _m(e,t=null,n=null,r){const o=wm(e,t,n,r);return o.resolveInjectorInitializers(),o}function wm(e,t=null,n=null,r,o=new Set){const i=[n||J,gI(e)];return r=r||("object"==typeof e?void 0:xe(e)),new nc(i,t||aa(),r||null,o)}let an=(()=>{class e{static create(n,r){if(Array.isArray(n))return _m({name:""},r,n,"");{const o=n.name??"";return _m({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=zo,e.NULL=new Wg,e.\u0275prov=R({token:e,providedIn:"any",factory:()=>T(zg)}),e.__NG_ELEMENT_ID__=-1,e})();function v(e,t=k.Default){const n=D();return null===n?T(e,t):zp(ze(),n,j(e),t)}function ma(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[Pe]=o,d[G]=140|r,(null!==u||e&&2048&e[G])&&(d[G]|=2048),vp(d),d[me]=d[$r]=e,d[Ce]=n,d[dr]=s||e&&e[dr],d[U]=a||e&&e[U],d[jr]=l||e&&e[jr]||null,d[qe]=i,d[Qo]=function yS(){return mS++}(),d[Mn]=c,d[rp]=u,d[Ie]=2==t.type?e[Ie]:d,d}function ao(e,t,n,r,o){let i=e.data[t];if(null===i)i=function yc(e,t,n,r,o){const i=bp(),s=su(),l=e.data[t]=function u0(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Gr(){return null!==V.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 DM(){return V.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Ko(){const e=V.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return rn(i,!0),i}function Di(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function bm(e,t,n,r,o){const i=gm(t,Ms),s=Je(),a=2&r;try{if(pr(-1),a&&t.length>Q&&ym(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[Ms]&&mm(t,Ms),pr(s),nn(a?3:1,o)}}function vc(e,t,n){if(Jl(t)){const r=je(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}finally{je(r)}}}function Dc(e,t,n){Ep()&&(function m0(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;fr(n)&&function E0(e,t,n){const r=ut(t,e),s=ya(e,ma(e,Mm(n),null,n.onPush?64:16,r,t,null,e[dr].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=s}(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||$s(n,t),Ze(r,t);const s=n.initialInputs;for(let a=o;a<i;a++){const l=e.data[a],u=gr(t,e,a,n);Ze(u,t),null!==s&&b0(0,a-o,u,l,0,s),Ht(l)&&(ct(n.index,t)[Ce]=gr(t,e,a,n))}}(e,t,n,ut(n,t)),64==(64&n.flags)&&Nm(e,t,n))}function Cc(e,t,n=ut){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}function Mm(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=_c(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function _c(e,t,n,r,o,i,s,a,l,u,c){const d=Q+r,f=d+o,h=function n0(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:z);return n}(d,f),p="function"==typeof u?u():u;return h[S]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1,ssrId:c}}let Sm=e=>null;function Im(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Tm(n,t,o,i):r.hasOwnProperty(o)&&Tm(n,t,r[o],i)}return n}function Tm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function wt(e,t,n,r,o,i,s,a){const l=ut(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(Sc(e,n,c,r,o),fr(t)&&function f0(e,t){const n=ct(t,e);16&n[G]||(n[G]|=64)}(n,t.index)):3&t.type&&(r=function d0(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 wc(e,t,n,r){if(Ep()){const o=null===r?null:{"":-1},i=function v0(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i<n.length;i++){const s=n[i];if(Xh(t,s.selectors,!1))if(r||(r=[]),Ht(s))if(null!==s.findHostDirectiveDefs){const a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s),Ec(e,t,a.length)}else r.unshift(s),Ec(e,t,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return null===r?null:[r,o]}(e,n);let s,a;null===i?s=a=null:[s,a]=i,null!==s&&Am(e,t,n,s,o,a),o&&function D0(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new C(-301,!1);r.push(t[o],i)}}}(n,r,o)}n.mergedAttrs=qo(n.mergedAttrs,n.attrs)}function Am(e,t,n,r,o,i){for(let u=0;u<r.length;u++)vu($s(n,t),e,r[u].type);!function _0(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let u=0;u<r.length;u++){const c=r[u];c.providersResolver&&c.providersResolver(c)}let s=!1,a=!1,l=Di(e,t,r.length,null);for(let u=0;u<r.length;u++){const c=r[u];n.mergedAttrs=qo(n.mergedAttrs,c.hostAttrs),w0(e,n,t,l,c),C0(l,c,o),null!==c.contentQueries&&(n.flags|=4),(null!==c.hostBindings||null!==c.hostAttrs||0!==c.hostVars)&&(n.flags|=64);const d=c.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),l++}!function c0(e,t,n){const o=t.directiveEnd,i=e.data,s=t.attrs,a=[];let l=null,u=null;for(let c=t.directiveStart;c<o;c++){const d=i[c],f=n?n.get(d):null,p=f?f.outputs:null;l=Im(d.inputs,c,l,f?f.inputs:null),u=Im(d.outputs,c,u,p);const m=null===l||null===s||Qh(t)?null:M0(l,c,s);a.push(m)}null!==l&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=u}(e,n,i)}function Nm(e,t,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function _M(){return V.lFrame.currentDirectiveIndex}();try{pr(i);for(let a=r;a<o;a++){const l=e.data[a],u=t[a];lu(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&y0(l,u)}}finally{pr(-1),lu(s)}}function y0(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Ec(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function C0(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ht(t)&&(n[""]=e)}}function w0(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=hr(o.type)),s=new Jo(i,Ht(o),v);e.blueprint[r]=s,n[r]=s,function p0(e,t,n,r,o){const i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~t.index;(function g0(e){let t=e.length;for(;t>0;){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,Di(e,n,o.hostVars,z),o)}function ln(e,t,n,r,o,i){const s=ut(e,t);!function bc(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?$(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[U],s,i,e.value,n,r,o)}function b0(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a<s.length;)Rm(r,n,s[a++],s[a++],s[a++])}function Rm(e,t,n,r,o){const i=je(null);try{null!==e.setInput?e.setInput(t,o,n,r):t[r]=o}finally{je(i)}}function M0(e,t,n){let r=null,o=0;for(;o<n.length;){const i=n[o];if(0!==i)if(5!==i){if("number"==typeof i)break;if(e.hasOwnProperty(i)){null===r&&(r=[]);const s=e[i];for(let a=0;a<s.length;a+=2)if(s[a]===t){r.push(i,s[a+1],n[o+1]);break}}o+=2}else o+=2;else o+=4}return r}function Om(e,t,n,r){return[e,!0,!1,t,null,0,r,n,null,null,null]}function xm(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r+1];if(-1!==i){const s=e.data[i];cu(n[r]),s.contentQueries(2,t[i],i)}}}function ya(e,t){return e[Zo]?e[np][Vt]=t:e[Zo]=t,e[np]=t,t}function Mc(e,t,n){cu(0);const r=je(null);try{t(e,n)}finally{je(r)}}function Pm(e){return e[Hr]||(e[Hr]=[])}function Fm(e){return e.cleanup||(e.cleanup=[])}function Lm(e,t){const n=e[jr],r=n?n.get(Dr,null):null;r&&r.handleError(t)}function Sc(e,t,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++];Rm(e.data[s],t[s],r,a,o)}}function Rn(e,t,n){const r=Os(t,e);!function yg(e,t,n){e.setValue(t,n)}(e[U],r,n)}function S0(e,t){const n=ct(t,e),r=n[S];!function I0(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const o=n[Pe];null!==o&&null===n[Mn]&&(n[Mn]=nm(o,n[jr])),Ic(r,n,n[Ce])}function Ic(e,t,n){du(t);try{const r=e.viewQuery;null!==r&&Mc(1,r,n);const o=e.template;null!==o&&bm(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&xm(e,t),e.staticViewQueries&&Mc(2,e.viewQuery,n);const i=e.components;null!==i&&function T0(e,t){for(let n=0;n<t.length;n++)S0(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[G]&=-5,fu()}}let Vm=(()=>{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 Kb(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=R({token:e,providedIn:"root",factory:()=>new e}),e})();function va(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=$l(o,a):2==i&&(r=$l(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Ci(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(he(i)),lt(i)){for(let a=Ue;a<i.length;a++){const l=i[a],u=l[S].firstChild;null!==u&&Ci(l[S],l,u,r)}i[en]!==i[Pe]&&r.push(i[en])}const s=n.type;if(8&s)Ci(e,t,n.child,r);else if(32&s){const a=Ou(n,t);let l;for(;l=a();)r.push(l)}else if(16&s){const a=Ig(t,n);if(Array.isArray(a))r.push(...a);else{const l=si(t[Ie]);Ci(l[S],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Da(e,t,n,r=!0){const o=t[dr].rendererFactory;o.begin&&o.begin();try{Ca(e,t,e.template,n)}catch(s){throw r&&Lm(t,s),s}finally{o.end&&o.end(),t[dr].effectManager?.flush()}}function Ca(e,t,n,r){const o=t[G];if(256!=(256&o)){t[dr].effectManager?.flush(),du(t);try{vp(t),function Sp(e){return V.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&bm(e,t,n,2,r);const s=3==(3&o);if(s){const u=e.preOrderCheckHooks;null!==u&&ks(t,u,null)}else{const u=e.preOrderHooks;null!==u&&Ls(t,u,0,null),hu(t,0)}if(function P0(e){for(let t=xu(e);null!==t;t=Pu(t)){if(!t[op])continue;const n=t[Ur];for(let r=0;r<n.length;r++){lM(n[r])}}}(t),function x0(e){for(let t=xu(e);null!==t;t=Pu(t))for(let n=Ue;n<t.length;n++){const r=t[n],o=r[S];xs(r)&&Ca(o,r,o.template,r[Ce])}}(t),null!==e.contentQueries&&xm(e,t),s){const u=e.contentCheckHooks;null!==u&&ks(t,u)}else{const u=e.contentHooks;null!==u&&Ls(t,u,1),hu(t,1)}!function t0(e,t){const n=e.hostBindingOpCodes;if(null===n)return;const r=gm(t,Ss);try{for(let o=0;o<n.length;o++){const i=n[o];if(i<0)pr(~i);else{const s=i,a=n[++o],l=n[++o];CM(a,s),r.runInContext(l,2,t[s])}}}finally{null===t[Ss]&&mm(t,Ss),pr(-1)}}(e,t);const a=e.components;null!==a&&function k0(e,t){for(let n=0;n<t.length;n++)F0(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&Mc(2,l,r),s){const u=e.viewCheckHooks;null!==u&&ks(t,u)}else{const u=e.viewHooks;null!==u&&Ls(t,u,2),hu(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[G]&=-73,Dp(t)}finally{fu()}}}function F0(e,t){const n=ct(t,e);if(xs(n)){const r=n[S];80&n[G]?Ca(r,n,r.template,n[Ce]):n[cr]>0&&Tc(n)}}function Tc(e){for(let r=xu(e);null!==r;r=Pu(r))for(let o=Ue;o<r.length;o++){const i=r[o];if(xs(i))if(1024&i[G]){const s=i[S];Ca(s,i,s.template,i[Ce])}else i[cr]>0&&Tc(i)}const n=e[S].components;if(null!==n)for(let r=0;r<n.length;r++){const o=ct(n[r],e);xs(o)&&o[cr]>0&&Tc(o)}}class _i{get rootNodes(){const t=this._lView,n=t[S];return Ci(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ce]}set context(t){this._lView[Ce]=t}get destroyed(){return 256==(256&this._lView[G])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[me];if(lt(t)){const n=t[Is],r=n?n.indexOf(this):-1;r>-1&&(ku(t,r),zs(n,r))}this._attachedToViewContainer=!1}Dg(this._lView[S],this._lView)}onDestroy(t){!function _p(e,t){if(256==(256&e[G]))throw new C(911,!1);null===e[Bn]&&(e[Bn]=[]),e[Bn].push(t)}(this._lView,t)}markForCheck(){vi(this._cdRefInjectingView||this._lView)}detach(){this._lView[G]&=-129}reattach(){this._lView[G]|=128}detectChanges(){Da(this._lView[S],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function RS(e,t){li(e,t,t[U],2,null,null)}(this._lView[S],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class L0 extends _i{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Da(t[S],t,t[Ce],!1)}checkNoChanges(){}get context(){return null}}class Hm extends ha{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=te(t);return new wi(n,this.ngModule)}}function jm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class H0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ws(r);const o=this.injector.get(t,gc,r);return o!==gc||n===gc?o:this.parentInjector.get(t,n,r)}}class wi extends im{get inputs(){return jm(this.componentDef.inputs)}get outputs(){return jm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Pb(e){return e.map(xb).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 H0(t,i):t,a=s.get(am,null);if(null===a)throw new C(407,!1);const c={rendererFactory:a,sanitizer:s.get(jI,null),effectManager:s.get(Vm,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function r0(e,t,n,r){const i=r.get(cm,!1)||n===yt.ShadowDom,s=e.selectRootElement(t,i);return function o0(e){Sm(e)}(s),s}(d,r,this.componentDef.encapsulation,s):Js(d,f,function V0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,m=_c(0,null,null,1,0,null,null,null,null,null,null),y=ma(null,m,null,p,null,null,c,d,s,null,null);let w,g;du(y);try{const b=this.componentDef;let x,Z=null;b.findHostDirectiveDefs?(x=[],Z=new Map,b.findHostDirectiveDefs(b,x,Z),x.push(b)):x=[b];const fe=function $0(e,t){const n=e[S],r=Q;return e[r]=t,ao(n,r,2,"#host",null)}(y,h),Ho=function B0(e,t,n,r,o,i,s){const a=o[S];!function U0(e,t,n,r){for(const o of e)t.mergedAttrs=qo(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(va(t,t.mergedAttrs,!0),null!==n&&Rg(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=nm(t,o[jr]));const u=i.rendererFactory.createRenderer(t,n),c=ma(o,Mm(n),null,n.onPush?64:16,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&Ec(a,e,r.length-1),ya(o,c),o[e.index]=c}(fe,h,b,x,y,c,d);g=yp(m,Q),h&&function G0(e,t,n,r){if(r)Xl(e,n,["ng-version",$I.full]);else{const{attrs:o,classes:i}=function Fb(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!Ft(o))break;o=i}r++}return{attrs:t,classes:n}}(t.selectors[0]);o&&Xl(e,n,o),i&&i.length>0&&Ng(e,n,i.join(" "))}}(d,b,h,r),void 0!==n&&function W0(e,t,n){const r=e.projection=[];for(let o=0;o<t.length;o++){const i=n[o];r.push(null!=i?Array.from(i):null)}}(g,this.ngContentSelectors,n),w=function z0(e,t,n,r,o,i){const s=ze(),a=o[S],l=ut(s,o);Am(a,o,s,n,null,r);for(let c=0;c<n.length;c++)Ze(gr(o,a,s.directiveStart+c,s),o);Nm(a,o,s),l&&Ze(l,o);const u=gr(o,a,s.directiveStart+s.componentOffset,s);if(e[Ce]=o[Ce]=u,null!==i)for(const c of i)c(u,t);return vc(a,s,e),u}(Ho,b,x,Z,y,[q0]),Ic(m,y,null)}finally{fu()}return new j0(this.componentType,w,io(g,y),y,g)}}class j0 extends PI{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new L0(o),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let o;if(null!==r&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const i=this._rootLView;Sc(i[S],i,o,t,n),this.previousInputValues.set(t,n),vi(ct(this._tNode.index,i))}}get injector(){return new Zr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function q0(){const e=ze();Fs(D()[S],e)}function se(e){let t=function $m(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(Ht(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new C(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=Ac(e.inputs),s.declaredInputs=Ac(e.declaredInputs),s.outputs=Ac(e.outputs);const a=o.hostBindings;a&&X0(e,a);const l=o.viewQuery,u=o.contentQueries;if(l&&Y0(e,l),u&&Q0(e,u),jl(e.inputs,o.inputs),jl(e.declaredInputs,o.declaredInputs),jl(e.outputs,o.outputs),Ht(o)&&o.data.animation){const c=e.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s<i.length;s++){const a=i[s];a&&a.ngInherit&&a(e),a===se&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Z0(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=qo(o.hostAttrs,n=qo(n,o.hostAttrs))}}(r)}function Ac(e){return e===En?{}:e===J?[]:e}function Y0(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function Q0(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function X0(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function _a(e){return!!function Nc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function un(e,t,n){return e[t]=n}function Ye(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Cr(e,t,n,r){const o=Ye(e,t,n);return Ye(e,t+1,r)||o}function cn(e,t,n,r){const o=D();return Ye(o,Wr(),t)&&(K(),ln(ye(),o,e,t,n,r)),cn}function uo(e,t,n,r){return Ye(e,Wr(),n)?t+$(n)+r:z}function co(e,t,n,r,o,i){const a=Cr(e,function Sn(){return V.lFrame.bindingIndex}(),n,o);return In(2),a?t+$(n)+r+$(o)+i:z}function jt(e,t,n,r,o,i,s,a){const l=D(),u=K(),c=e+Q,d=u.firstCreatePass?function wT(e,t,n,r,o,i,s,a,l){const u=t.consts,c=ao(t,e,4,s||null,Un(u,a));wc(t,n,c,Un(u,l)),Fs(t,c);const d=c.tView=_c(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=ry(u,l,d,e);Ps()&&ta(u,l,f,d),Ze(f,l),ya(l,l[c]=Om(f,l,f,d)),Ts(d)&&Dc(u,l,d),null!=s&&Cc(l,d,a)}let ry=function oy(e,t,n,r){return Wn(!0),t[U].createComment("")};function X(e,t,n){const r=D();return Ye(r,Wr(),t)&&wt(K(),ye(),r,e,t,r[U],n,!1),X}function kc(e,t,n,r,o){const s=o?"class":"style";Sc(e,n,t.inputs[s],s,r)}function _(e,t,n,r){const o=D(),i=K(),s=Q+e,a=o[U],l=i.firstCreatePass?function IT(e,t,n,r,o,i){const s=t.consts,l=ao(t,e,2,r,Un(s,o));return wc(t,n,l,Un(s,i)),null!==l.attrs&&va(l,l.attrs,!1),null!==l.mergedAttrs&&va(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=iy(i,o,l,a,t,e);o[s]=u;const c=Ts(l);return rn(l,!0),Rg(a,u,l),32!=(32&l.flags)&&Ps()&&ta(i,o,u,l),0===function cM(){return V.lFrame.elementDepthCount}()&&Ze(u,o),function dM(){V.lFrame.elementDepthCount++}(),c&&(Dc(i,o,l),vc(i,l,o)),null!==r&&Cc(o,l),_}function E(){let e=ze();su()?function au(){V.lFrame.isParent=!1}():(e=e.parent,rn(e,!1));const t=e;(function hM(e){return V.skipHydrationRootTNode===e})(t)&&function yM(){V.skipHydrationRootTNode=null}(),function fM(){V.lFrame.elementDepthCount--}();const n=K();return n.firstCreatePass&&(Fs(n,e),Jl(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function OM(e){return 0!=(8&e.flags)}(t)&&kc(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function xM(e){return 0!=(16&e.flags)}(t)&&kc(n,t,D(),t.stylesWithoutHost,!1),E}function ke(e,t,n,r){return _(e,t,n,r),E(),ke}let iy=(e,t,n,r,o,i)=>(Wn(!0),Js(r,o,function Pp(){return V.lFrame.currentNamespace}()));function _r(){return D()}function Ii(e){return!!e&&"function"==typeof e.then}function ly(e){return!!e&&"function"==typeof e.subscribe}function B(e,t,n,r){const o=D(),i=K(),s=ze();return function cy(e,t,n,r,o,i,s){const a=Ts(r),u=e.firstCreatePass&&Fm(e),c=t[Ce],d=Pm(t);let f=!0;if(3&r.type||s){const m=ut(r,t),y=s?s(m):m,w=d.length,g=s?x=>s(he(x[r.index])):r.index;let b=null;if(!s&&a&&(b=function xT(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=t[Hr],l=o[i+2];return a.length>l?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=i,b.__ngLastListenerFn__=i,f=!1;else{i=fy(r,t,c,i,!1);const x=n.listen(y,o,i);d.push(i,x),u&&u.push(o,g,w,w+1)}}else i=fy(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 y=0;y<m;y+=2){const Z=t[p[y]][p[y+1]].subscribe(i),fe=d.length;d.push(i,Z),u&&u.push(o,r.index,fe,-(fe+1))}}}(i,o,o[U],s,e,t,r),B}function dy(e,t,n,r){try{return nn(6,t,n),!1!==n(r)}catch(o){return Lm(e,o),!1}finally{nn(7,t,n)}}function fy(e,t,n,r,o){return function i(s){if(s===Function)return r;vi(e.componentOffset>-1?ct(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 dn(e=1){return function EM(e){return(V.lFrame.contextLView=function bM(e,t){for(;e>0;)t=t[$r],e--;return t}(e,V.lFrame.contextLView))[Ce]}(e)}function Sa(e,t,n,r,o){const i=D(),s=uo(i,t,n,r);return s!==z&&wt(K(),ye(),i,e,s,i[U],o,!1),Sa}function Ia(e,t){return e<<17|t<<2}function Zn(e){return e>>17&32767}function Hc(e){return 2|e}function wr(e){return(131068&e)>>2}function jc(e,t){return-131069&e|t<<2}function $c(e){return 1|e}function wy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Zn(i):wr(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];BT(e[a],t)&&(l=!0,e[a+1]=r?$c(c):Hc(c)),a=r?Zn(c):wr(c)}l&&(e[n+1]=r?Hc(i):$c(i))}function BT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Jr(e,t)>=0}function Ta(e,t){return function $t(e,t,n,r){const o=D(),i=K(),s=In(2);i.firstUpdatePass&&function Ry(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Je()],s=function Ny(e,t){return t>=e.expandoStartIndex}(e,n);(function Fy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function XT(e,t,n,r){const o=function uu(e){const t=V.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=Ti(n=Bc(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Bc(o,e,t,n,r),null===i){let l=function KT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==wr(r))return e[Zn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=Bc(null,e,t,l[1],r),l=Ti(l,t.attrs,r),function JT(e,t,n,r){e[Zn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function eA(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++)r=Ti(r,e[i].hostAttrs,n);return Ti(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(o,i,t,r),function jT(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Zn(s),l=wr(s);e[r]=n;let c,u=!1;if(Array.isArray(n)?(c=n[1],(null===c||Jr(n,c)>0)&&(u=!0)):c=n,o)if(0!==l){const f=Zn(e[a+1]);e[r+1]=Ia(f,a),0!==f&&(e[f+1]=jc(e[f+1],r)),e[a+1]=function VT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Ia(a,0),0!==a&&(e[a+1]=jc(e[a+1],r)),a=r;else e[r+1]=Ia(l,0),0===a?a=r:e[l+1]=jc(e[l+1],r),l=r;u&&(e[r+1]=Hc(e[r+1])),wy(e,c,r,!0),wy(e,c,r,!1),function $T(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Jr(i,t)>=0&&(n[r+1]=$c(n[r+1]))}(t,c,e,r,i),s=Ia(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==z&&Ye(o,s,t)&&function xy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function HT(e){return 1==(1&e)}(u)?Py(l,t,n,o,wr(u),s):void 0;Aa(c)||(Aa(i)||function LT(e){return 2==(2&e)}(u)&&(i=Py(l,null,n,o,a,s)),function $S(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:dt.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=dt.Important),e.setStyle(n,r,o,i))}}(r,s,Os(Je(),n),o,i))}(i,i.data[Je()],o,o[U],e,o[s+1]=function oA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=xe(qn(e)))),e}(t,n),r,s)}(e,t,null,!0),Ta}function Bc(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=t[a],r=Ti(r,i.hostAttrs,o),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function Ti(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?o=s:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ct(e,s,!!n||t[++i]))}return void 0===e?null:e}function Py(e,t,n,r,o,i){const s=null===t;let a;for(;o>0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===z&&(f=d?J:void 0);let h=d?_u(f,r):c===r?f:void 0;if(u&&!Aa(h)&&(h=_u(l,r)),Aa(h)&&(a=h,s))return a;const p=e[o+1];o=s?Zn(p):wr(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=_u(l,r))}return a}function Aa(e){return void 0!==e}function M(e,t=""){const n=D(),r=K(),o=e+Q,i=r.firstCreatePass?ao(r,o,1,t,null):r.data[o],s=ky(r,n,i,t,e);n[o]=s,Ps()&&ta(r,n,s,i),rn(i,!1)}let ky=(e,t,n,r,o)=>(Wn(!0),function Ks(e,t){return e.createText(t)}(t[U],r));function et(e){return Et("",e,""),et}function Et(e,t,n){const r=D(),o=uo(r,e,t,n);return o!==z&&Rn(r,Je(),o),Et}function Uc(e,t,n,r,o){const i=D(),s=co(i,e,t,n,r,o);return s!==z&&Rn(i,Je(),s),Uc}const Er=void 0;var SA=["en",[["a","p"],["AM","PM"],Er],[["AM","PM"],Er,Er],[["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"]],Er,[["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"]],Er,[["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}",Er,"{1} 'at' {0}",Er],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function MA(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Do={};function tt(e){const t=function IA(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=nv(t);if(n)return n;const r=t.split("-")[0];if(n=nv(r),n)return n;if("en"===r)return SA;throw new C(701,!1)}function nv(e){return e in Do||(Do[e]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[e]),Do[e]}var I=(()=>((I=I||{})[I.LocaleId=0]="LocaleId",I[I.DayPeriodsFormat=1]="DayPeriodsFormat",I[I.DayPeriodsStandalone=2]="DayPeriodsStandalone",I[I.DaysFormat=3]="DaysFormat",I[I.DaysStandalone=4]="DaysStandalone",I[I.MonthsFormat=5]="MonthsFormat",I[I.MonthsStandalone=6]="MonthsStandalone",I[I.Eras=7]="Eras",I[I.FirstDayOfWeek=8]="FirstDayOfWeek",I[I.WeekendRange=9]="WeekendRange",I[I.DateFormat=10]="DateFormat",I[I.TimeFormat=11]="TimeFormat",I[I.DateTimeFormat=12]="DateTimeFormat",I[I.NumberSymbols=13]="NumberSymbols",I[I.NumberFormats=14]="NumberFormats",I[I.CurrencyCode=15]="CurrencyCode",I[I.CurrencySymbol=16]="CurrencySymbol",I[I.CurrencyName=17]="CurrencyName",I[I.Currencies=18]="Currencies",I[I.Directionality=19]="Directionality",I[I.PluralCase=20]="PluralCase",I[I.ExtraData=21]="ExtraData",I))();const Co="en-US";let rv=Co;function Wc(e,t,n,r,o){if(e=j(e),Array.isArray(e))for(let i=0;i<e.length;i++)Wc(e[i],t,n,r,o);else{const i=K(),s=D();let a=yr(e)?e:j(e.provide),l=Xg(e);const u=ze(),c=1048575&u.providerIndexes,d=u.directiveStart,f=u.providerIndexes>>20;if(yr(e)||!e.multi){const h=new Jo(l,o,v),p=Zc(a,t,o?c:c+f,d);-1===p?(vu($s(u,s),i,a),qc(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=Zc(a,t,c+f,d),p=Zc(a,t,c,c+f),y=p>=0&&n[p];if(o&&!y||!o&&!(h>=0&&n[h])){vu($s(u,s),i,a);const w=function bN(e,t,n,r,o){const i=new Jo(e,n,v);return i.multi=[],i.index=t,i.componentProviders=0,Tv(i,o,r&&!n),i}(o?EN:wN,n.length,o,r,l);!o&&y&&(n[p].providerFactory=w),qc(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(w),s.push(w)}else qc(i,e,h>-1?h:p,Tv(n[o?p:h],l,!o&&r));!o&&r&&y&&n[p].componentProviders++}}}function qc(e,t,n,r){const o=yr(t),i=function yI(e){return!!e.useClass}(t);if(o||i){const l=(i?j(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 Tv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Zc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function wN(e,t,n,r){return Yc(this.multi,[])}function EN(e,t,n,r){const o=this.multi;let i;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=gr(n,n[S],this.providerFactory.index,r);i=a.slice(0,s),Yc(o,i);for(let l=s;l<a.length;l++)i.push(a[l])}else i=[],Yc(o,i);return i}function Yc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function pe(e,t=[]){return n=>{n.providersResolver=(r,o)=>function _N(e,t,n){const r=K();if(r.firstCreatePass){const o=Ht(e);Wc(n,r.data,r.blueprint,o,!0),Wc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class _o{}class Av{}class Qc extends _o{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Hm(this);const o=vt(t);this._bootstrapComponents=Nn(o.bootstrap),this._r3Injector=wm(t,n,[{provide:_o,useValue:this},{provide:ha,useValue:this.componentFactoryResolver},...r],xe(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 Xc extends Av{constructor(t){super(),this.moduleType=t}create(t){return new Qc(this.moduleType,t,[])}}class Nv extends _o{constructor(t){super(),this.componentFactoryResolver=new Hm(this),this.instance=null;const n=new nc([...t.providers,{provide:_o,useValue:this},{provide:ha,useValue:this.componentFactoryResolver}],t.parent||aa(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Kc(e,t,n=null){return new Nv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let IN=(()=>{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=qg(0,n.type),o=r.length>0?Kc([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=R({token:e,providedIn:"environment",factory:()=>new e(T(sn))}),e})();function Rv(e){e.getStandaloneInjector=t=>t.get(IN).getOrCreateStandaloneInjector(e)}function ed(e,t,n){const r=Ke()+e,o=D();return o[r]===z?un(o,r,n?t.call(n):t()):function Ei(e,t){return e[t]}(o,r)}function Vv(e,t,n,r){return function Hv(e,t,n,r,o,i){const s=t+n;return Ye(e,s,o)?un(e,s+1,i?r.call(i,o):r(o)):Pi(e,s+1)}(D(),Ke(),e,t,n,r)}function Pi(e,t){const n=e[t];return n===z?void 0:n}function td(e,t){const n=K();let r;const o=e+Q;n.firstCreatePass?(r=function zN(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=hr(r.type)),s=it(v);try{const a=js(!1),l=i();return js(a),function MT(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{it(s)}}function nd(e,t,n,r){const o=e+Q,i=D(),s=function zr(e,t){return e[t]}(i,o);return function Fi(e,t){return e[S].data[t].pure}(i,o)?function jv(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)):Pi(e,a+2)}(i,Ke(),t,s.transform,n,r,s):s.transform(n,r)}function rd(e){return t=>{setTimeout(e,void 0,t)}}const we=class YN extends Cn{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=rd(i),o&&(o=rd(o)),s&&(s=rd(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof St&&t.add(a),a}};function QN(){return this._results[Symbol.iterator]()}class od{get changes(){return this._changes||(this._changes=new we)}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=od.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=QN)}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 Rt(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function zM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}(r._results,o,n))&&(r._results=o,r.length=o.length,r.last=o[this.length-1],r.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let On=(()=>{class e{}return e.__NG_ELEMENT_ID__=JN,e})();const XN=On,KN=class extends XN{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=ma(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[Yo]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Jt];return null!==a&&(i[Jt]=a.createEmbeddedView(o)),Ic(o,i,t),new _i(i)}};function JN(){return Pa(ze(),D())}function Pa(e,t){return 4&e.type?new KN(t,e,io(e,t)):null}let Ut=(()=>{class e{}return e.__NG_ELEMENT_ID__=sR,e})();function sR(){return Yv(ze(),D())}const aR=Ut,qv=class extends aR{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return io(this._hostTNode,this._hostLView)}get injector(){return new Zr(this._hostTNode,this._hostLView)}get parentInjector(){const t=yu(this._hostTNode,this._hostLView);if(Vp(t)){const n=Hs(t,this._hostLView),r=Vs(t);return new Zr(n[S].data[r+8],n)}return new Zr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Zv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ue}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 ti(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 wi(te(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const y=(s?u:this.parentInjector).get(sn,null);y&&(i=y)}te(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[S];if(function aM(e){return lt(e[me])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[me],c=new qv(u,u[qe],u[me]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function xS(e,t,n,r){const o=Ue+r,i=n.length;r>0&&(n[o-1][Vt]=t),r<i-Ue?(t[Vt]=n[o],Qp(n,Ue+r,t)):(n.push(t),t[Vt]=null),t[me]=n;const s=t[Yo];null!==s&&n!==s&&function PS(e,t){const n=e[Ur];t[Ie]!==t[me][me][Ie]&&(e[op]=!0),null===n?e[Ur]=[t]:n.push(t)}(s,t);const a=t[Jt];null!==a&&a.insertView(e),t[G]|=128}(i,o,a,s),!r){const l=ju(s,a),u=o[U],c=ea(u,a[en]);null!==c&&function NS(e,t,n,r,o,i){r[Pe]=o,r[qe]=t,li(e,r,n,1,o,i)}(i,a[qe],u,o,c,l)}return t.attachToViewContainerRef(),Qp(sd(a),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Zv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=ku(this._lContainer,n);r&&(zs(sd(this._lContainer),n),Dg(r[S],r))}detach(t){const n=this._adjustIndex(t,-1),r=ku(this._lContainer,n);return r&&null!=zs(sd(this._lContainer),n)?new _i(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Zv(e){return e[Is]}function sd(e){return e[Is]||(e[Is]=[])}function Yv(e,t){let n;const r=t[e.index];return lt(r)?n=r:(n=Om(r,t,null,e),t[e.index]=n,ya(t,n)),Qv(n,t,e,r),new qv(n,e,t)}let Qv=function Xv(e,t,n,r){if(e[en])return;let o;o=8&n.type?he(r):function lR(e,t){const n=e[U],r=n.createComment(""),o=ut(t,e);return mr(n,ea(n,o),r,function VS(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[en]=o};class ad{constructor(t){this.queryList=t,this.matches=null}clone(){return new ad(this.queryList)}setDirty(){this.queryList.setDirty()}}class ld{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){const s=n.getByIndex(i);o.push(this.queries[s.indexInDeclarationView].clone())}return new ld(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==rD(t,n).matches&&this.queries[n].setDirty()}}class Kv{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class ud{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const o=null!==n?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,null!==n?n.push(i):n=[i])}return null!==n?new ud(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class cd{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new cd(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const i=r[o];this.matchTNodeWithReadOption(t,n,dR(n,i)),this.matchTNodeWithReadOption(t,n,Bs(n,t,i,!1,!1))}else r===On?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Bs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===_t||o===Ut||o===On&&4&n.type)this.addMatch(n.index,-2);else{const i=Bs(n,t,o,!1,!1);null!==i&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function dR(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function hR(e,t,n,r){return-1===n?function fR(e,t){return 11&e.type?io(e,t):4&e.type?Pa(e,t):null}(t,e):-2===n?function pR(e,t,n){return n===_t?io(t,e):n===On?Pa(t,e):n===Ut?Yv(t,e):void 0}(e,t,r):gr(e,e[S],n,t)}function Jv(e,t,n,r){const o=t[Jt].queries[r];if(null===o.matches){const i=e.data,s=n.matches,a=[];for(let l=0;l<s.length;l+=2){const u=s[l];a.push(u<0?null:hR(t,i[u],s[l+1],n.metadata.read))}o.matches=a}return o.matches}function dd(e,t,n,r){const o=e.queries.getByIndex(n),i=o.matches;if(null!==i){const s=Jv(e,t,o,n);for(let a=0;a<i.length;a+=2){const l=i[a];if(l>0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=Ue;d<c.length;d++){const f=c[d];f[Yo]===f[me]&&dd(f[S],f,u,r)}if(null!==c[Ur]){const d=c[Ur];for(let f=0;f<d.length;f++){const h=d[f];dd(h[S],h,u,r)}}}}}return r}function ki(e){const t=D(),n=K(),r=Tp();cu(r+1);const o=rD(n,r);if(e.dirty&&function sM(e){return 4==(4&e[G])}(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const i=o.crossesNgTemplate?dd(n,t,r,[]):Jv(n,t,o,r);e.reset(i,VI),e.notifyOnChanges()}return!0}return!1}function Fa(e,t,n){const r=K();r.firstCreatePass&&(nD(r,new Kv(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),tD(r,D(),t)}function Li(){return function gR(e,t){return e[Jt].queries[t].queryList}(D(),Tp())}function tD(e,t,n){const r=new od(4==(4&n));(function l0(e,t,n,r){const o=Pm(t);o.push(n),e.firstCreatePass&&Fm(e).push(r,o.length-1)})(e,t,r,r.destroy),null===t[Jt]&&(t[Jt]=new ld),t[Jt].queries.push(new ad(r))}function nD(e,t,n){null===e.queries&&(e.queries=new ud),e.queries.track(new cd(t,n))}function rD(e,t){return e.queries.getByIndex(t)}const yd=new N("Application Initializer");let vd=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=A(yd,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Ii(i))n.push(i);else if(ly(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=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),CD=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const xn=new N("LocaleId",{providedIn:"root",factory:()=>A(xn,k.Optional|k.SkipSelf)||function VR(){return typeof $localize<"u"&&$localize.locale||Co}()});class jR{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let _D=(()=>{class e{compileModuleSync(n){return new Xc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Nn(vt(n).declarations).reduce((s,a)=>{const l=te(a);return l&&s.push(new wi(l)),s},[]);return new jR(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=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const UR=(()=>Promise.resolve(0))();function Dd(e){typeof Zone>"u"?UR.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function bD(...e){}class ge{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new we(!1),this.onMicrotaskEmpty=new we(!1),this.onStable=new we(!1),this.onError=new we(!1),typeof Zone>"u")throw new C(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 zR(){let e=ce.requestAnimationFrame,t=ce.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 qR(e){const t=()=>{!function WR(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ce,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,_d(e),e.isCheckStableRunning=!0,Cd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),_d(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return MD(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),SD(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return MD(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),SD(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,_d(e),Cd(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(!ge.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(ge.isInAngularZone())throw new C(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,GR,bD,bD);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 GR={};function Cd(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 _d(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function MD(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function SD(e){e._nesting--,Cd(e)}class ZR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new we,this.onMicrotaskEmpty=new we,this.onStable=new we,this.onError=new we}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 ID=new N("",{providedIn:"root",factory:TD});function TD(){const e=A(ge);let t=!0;return function sb(...e){const t=Uo(e),n=function JE(e,t){return"number"==typeof Vl(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?It(r[0]):kr(n)(Oe(r,t)):Xt}(new Ee(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new Ee(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ge.assertNotInAngularZone(),Dd(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ge.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function ab(e={}){const{connector:t=(()=>new Cn),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 $e((m,y)=>{u++,!d&&!c&&f();const w=l=l??t();y.add(()=>{u--,0===u&&!d&&!c&&(a=Hl(p,o))}),w.subscribe(y),!s&&u>0&&(s=new Bo({next:g=>w.next(g),error:g=>{d=!0,f(),a=Hl(h,n,g),w.error(g)},complete:()=>{c=!0,f(),a=Hl(h,r),w.complete()}}),It(m).subscribe(s))})(i)}}()))}const AD=new N(""),La=new N("");let bd,wd=(()=>{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,bd||(function YR(e){bd=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:()=>{ge.assertNotInAngularZone(),Dd(()=>{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())Dd(()=>{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)(T(ge),T(Ed),T(La))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})(),Ed=(()=>{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 bd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Yn=null;const ND=new N("AllowMultipleToken"),Md=new N("PlatformDestroyListeners"),Sd=new N("appBootstrapListener");class OD{constructor(t,n){this.name=t,this.token=n}}function PD(e,t,n=[]){const r=`Platform: ${t}`,o=new N(r);return(i=[])=>{let s=Id();if(!s||s.injector.get(ND,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function KR(e){if(Yn&&!Yn.get(ND,!1))throw new C(400,!1);(function RD(){!function Qb(e){cp=e}(()=>{throw new C(600,!1)})})(),Yn=e;const t=e.get(kD);(function xD(e){e.get(Kg,null)?.forEach(n=>n())})(e)}(function FD(e=[],t){return an.create({name:t,providers:[{provide:ec,useValue:"platform"},{provide:Md,useValue:new Set([()=>Yn=null])},...e]})}(a,r))}return function eO(e){const t=Id();if(!t)throw new C(401,!1);return t}()}}function Id(){return Yn?.get(kD)??null}let kD=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function tO(e="zone.js",t){return"noop"===e?new ZR:"zone.js"===e?new ge(t):e}(r?.ngZone,function LD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function SN(e,t,n){return new Qc(e,t,n)}(n.moduleType,this.injector,function BD(e){return[{provide:ge,useFactory:e},{provide:hi,multi:!0,useFactory:()=>{const t=A(rO,{optional:!0});return()=>t.initialize()}},{provide:$D,useFactory:nO},{provide:ID,useFactory:TD}]}(()=>o)),s=i.injector.get(Dr,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Va(this._modules,i),a.unsubscribe()})}),function VD(e,t,n){try{const r=n();return Ii(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(vd);return a.runInitializers(),a.donePromise.then(()=>(function ov(e){Tt(e,"Expected localeId to be defined"),"string"==typeof e&&(rv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(xn,Co)||Co),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=HD({},r);return function QR(e,t,n){const r=new Xc(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(bo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new C(-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 C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Md,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)(T(an))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function HD(e,t){return Array.isArray(t)?t.reduce(HD,e):{...e,...t}}let bo=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=A($D),this.componentTypes=[],this.components=[],this.isStable=A(ID),this._injector=A(sn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof im;if(!this._injector.get(vd).done)throw!o&&function Vr(e){const t=te(e)||We(e)||at(e);return null!==t&&t.standalone}(n),new C(405,!1);let s;s=o?n:this._injector.get(ha).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function XR(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(AD,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Va(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new C(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;Va(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Sd,[]);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),()=>Va(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(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=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Va(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $D=new N("",{providedIn:"root",factory:()=>A(Dr).handleError.bind(void 0)});function nO(){const e=A(ge),t=A(Dr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let rO=(()=>{class e{constructor(){this.zone=A(ge),this.applicationRef=A(bo)}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=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Ha=(()=>{class e{}return e.__NG_ELEMENT_ID__=iO,e})();function iO(e){return function sO(e,t,n){if(fr(e)&&!n){const r=ct(e.index,t);return new _i(r,r)}return 47&e.type?new _i(t[Ie],t):null}(ze(),D(),16==(16&e))}class WD{constructor(){}supports(t){return _a(t)}create(t){return new fO(t)}}const dO=(e,t)=>t;class fO{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||dO}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<ZD(r,o,i)?n:r,a=ZD(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)o++;else{i||(i=[]);const u=a-o,c=l-o;if(u!=c){for(let f=0;f<u;f++){const h=f<i.length?i[f]:i[f]=0,p=h+f;c<=p&&p<u&&(i[f]=h+1)}i[s.previousIndex]=c-u}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!_a(t))throw new C(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,i,s,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,s,a),r=!0),n=n._next}else o=0,function oT(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,a=>{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 hO(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 qD),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 qD),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 hO{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 pO{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 qD{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new pO,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 ZD(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function QD(){return new Ba([new WD])}let Ba=(()=>{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||QD()),deps:[[e,new qs,new Ws]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new C(901,!1)}}return e.\u0275prov=R({token:e,providedIn:"root",factory:QD}),e})();const DO=PD(null,"core",[]);let CO=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(T(bo))},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({}),e})(),rC=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=A(ge),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=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Mo(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Pd=null;function Qn(){return Pd}class OO{}const bt=new N("DocumentToken");let Fd=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return A(PO)},providedIn:"platform"}),e})();const xO=new N("Location Initialized");let PO=(()=>{class e extends Fd{constructor(){super(),this._doc=A(bt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qn().getBaseHref(this._doc)}onPopState(n){const r=Qn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Qn().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=R({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function kd(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 iC(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 Pn(e){return e&&"?"!==e[0]?"?"+e:e}let Xn=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return A(aC)},providedIn:"root"}),e})();const sC=new N("appBaseHref");let aC=(()=>{class e extends Xn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??A(bt).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 kd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Pn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Pn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Pn(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)(T(Fd),T(sC,8))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),lC=(()=>{class e extends Xn{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=kd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Pn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Pn(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)(T(Fd),T(sC,8))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})(),Ld=(()=>{class e{constructor(n){this._subject=new we,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function LO(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(iC(uC(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+Pn(r))}normalize(n){return e.stripTrailingSlash(function kO(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,uC(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+Pn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pn(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=Pn,e.joinWithSlash=kd,e.stripTrailingSlash=iC,e.\u0275fac=function(n){return new(n||e)(T(Xn))},e.\u0275prov=R({token:e,factory:function(){return function FO(){return new Ld(T(Xn))}()},providedIn:"root"}),e})();function uC(e){return e.replace(/\/index.html$/,"")}var be=(()=>((be=be||{})[be.Format=0]="Format",be[be.Standalone=1]="Standalone",be))(),Y=(()=>((Y=Y||{})[Y.Narrow=0]="Narrow",Y[Y.Abbreviated=1]="Abbreviated",Y[Y.Wide=2]="Wide",Y[Y.Short=3]="Short",Y))(),ve=(()=>((ve=ve||{})[ve.Short=0]="Short",ve[ve.Medium=1]="Medium",ve[ve.Long=2]="Long",ve[ve.Full=3]="Full",ve))(),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 za(e,t){return Pt(tt(e)[I.DateFormat],t)}function Ga(e,t){return Pt(tt(e)[I.TimeFormat],t)}function Wa(e,t){return Pt(tt(e)[I.DateTimeFormat],t)}function xt(e,t){const n=tt(e),r=n[I.NumberSymbols][t];if(typeof r>"u"){if(t===F.CurrencyDecimal)return n[I.NumberSymbols][F.Decimal];if(t===F.CurrencyGroup)return n[I.NumberSymbols][F.Group]}return r}function dC(e){if(!e[I.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[I.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Pt(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 Hd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const QO=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ji={},XO=/((?:[^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 Ve=(()=>((Ve=Ve||{})[Ve.Short=0]="Short",Ve[Ve.ShortGMT=1]="ShortGMT",Ve[Ve.Long=2]="Long",Ve[Ve.Extended=3]="Extended",Ve))(),L=(()=>((L=L||{})[L.FullYear=0]="FullYear",L[L.Month=1]="Month",L[L.Date=2]="Date",L[L.Hours=3]="Hours",L[L.Minutes=4]="Minutes",L[L.Seconds=5]="Seconds",L[L.FractionalSeconds=6]="FractionalSeconds",L[L.Day=7]="Day",L))(),q=(()=>((q=q||{})[q.DayPeriods=0]="DayPeriods",q[q.Days=1]="Days",q[q.Months=2]="Months",q[q.Eras=3]="Eras",q))();function KO(e,t,n,r){let o=function ax(e){if(pC(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 qa(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(QO))return function lx(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(!pC(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=XO.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=hC(r,l),o=function sx(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function ix(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(hC(t,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function ox(e){if($d[e])return $d[e];let t;switch(e){case"G":case"GG":case"GGG":t=de(q.Eras,Y.Abbreviated);break;case"GGGG":t=de(q.Eras,Y.Wide);break;case"GGGGG":t=de(q.Eras,Y.Narrow);break;case"y":t=Ne(L.FullYear,1,0,!1,!0);break;case"yy":t=Ne(L.FullYear,2,0,!0,!0);break;case"yyy":t=Ne(L.FullYear,3,0,!1,!0);break;case"yyyy":t=Ne(L.FullYear,4,0,!1,!0);break;case"Y":t=Xa(1);break;case"YY":t=Xa(2,!0);break;case"YYY":t=Xa(3);break;case"YYYY":t=Xa(4);break;case"M":case"L":t=Ne(L.Month,1,1);break;case"MM":case"LL":t=Ne(L.Month,2,1);break;case"MMM":t=de(q.Months,Y.Abbreviated);break;case"MMMM":t=de(q.Months,Y.Wide);break;case"MMMMM":t=de(q.Months,Y.Narrow);break;case"LLL":t=de(q.Months,Y.Abbreviated,be.Standalone);break;case"LLLL":t=de(q.Months,Y.Wide,be.Standalone);break;case"LLLLL":t=de(q.Months,Y.Narrow,be.Standalone);break;case"w":t=jd(1);break;case"ww":t=jd(2);break;case"W":t=jd(1,!0);break;case"d":t=Ne(L.Date,1);break;case"dd":t=Ne(L.Date,2);break;case"c":case"cc":t=Ne(L.Day,1);break;case"ccc":t=de(q.Days,Y.Abbreviated,be.Standalone);break;case"cccc":t=de(q.Days,Y.Wide,be.Standalone);break;case"ccccc":t=de(q.Days,Y.Narrow,be.Standalone);break;case"cccccc":t=de(q.Days,Y.Short,be.Standalone);break;case"E":case"EE":case"EEE":t=de(q.Days,Y.Abbreviated);break;case"EEEE":t=de(q.Days,Y.Wide);break;case"EEEEE":t=de(q.Days,Y.Narrow);break;case"EEEEEE":t=de(q.Days,Y.Short);break;case"a":case"aa":case"aaa":t=de(q.DayPeriods,Y.Abbreviated);break;case"aaaa":t=de(q.DayPeriods,Y.Wide);break;case"aaaaa":t=de(q.DayPeriods,Y.Narrow);break;case"b":case"bb":case"bbb":t=de(q.DayPeriods,Y.Abbreviated,be.Standalone,!0);break;case"bbbb":t=de(q.DayPeriods,Y.Wide,be.Standalone,!0);break;case"bbbbb":t=de(q.DayPeriods,Y.Narrow,be.Standalone,!0);break;case"B":case"BB":case"BBB":t=de(q.DayPeriods,Y.Abbreviated,be.Format,!0);break;case"BBBB":t=de(q.DayPeriods,Y.Wide,be.Format,!0);break;case"BBBBB":t=de(q.DayPeriods,Y.Narrow,be.Format,!0);break;case"h":t=Ne(L.Hours,1,-12);break;case"hh":t=Ne(L.Hours,2,-12);break;case"H":t=Ne(L.Hours,1);break;case"HH":t=Ne(L.Hours,2);break;case"m":t=Ne(L.Minutes,1);break;case"mm":t=Ne(L.Minutes,2);break;case"s":t=Ne(L.Seconds,1);break;case"ss":t=Ne(L.Seconds,2);break;case"S":t=Ne(L.FractionalSeconds,1);break;case"SS":t=Ne(L.FractionalSeconds,2);break;case"SSS":t=Ne(L.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ya(Ve.Short);break;case"ZZZZZ":t=Ya(Ve.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ya(Ve.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ya(Ve.Long);break;default:return null}return $d[e]=t,t}(c);u+=d?d(o,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function qa(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 VO(e){return tt(e)[I.LocaleId]}(e);if(ji[n]=ji[n]||{},ji[n][t])return ji[n][t];let r="";switch(t){case"shortDate":r=za(e,ve.Short);break;case"mediumDate":r=za(e,ve.Medium);break;case"longDate":r=za(e,ve.Long);break;case"fullDate":r=za(e,ve.Full);break;case"shortTime":r=Ga(e,ve.Short);break;case"mediumTime":r=Ga(e,ve.Medium);break;case"longTime":r=Ga(e,ve.Long);break;case"fullTime":r=Ga(e,ve.Full);break;case"short":const o=Fn(e,"shortTime"),i=Fn(e,"shortDate");r=Za(Wa(e,ve.Short),[o,i]);break;case"medium":const s=Fn(e,"mediumTime"),a=Fn(e,"mediumDate");r=Za(Wa(e,ve.Medium),[s,a]);break;case"long":const l=Fn(e,"longTime"),u=Fn(e,"longDate");r=Za(Wa(e,ve.Long),[l,u]);break;case"full":const c=Fn(e,"fullTime"),d=Fn(e,"fullDate");r=Za(Wa(e,ve.Full),[c,d])}return r&&(ji[n][t]=r),r}function Za(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.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function Ne(e,t,n=0,r=!1,o=!1){return function(i,s){let a=function ex(e,t){switch(e){case L.FullYear:return t.getFullYear();case L.Month:return t.getMonth();case L.Date:return t.getDate();case L.Hours:return t.getHours();case L.Minutes:return t.getMinutes();case L.Seconds:return t.getSeconds();case L.FractionalSeconds:return t.getMilliseconds();case L.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,i);if((n>0||a>-n)&&(a+=n),e===L.Hours)0===a&&-12===n&&(a=12);else if(e===L.FractionalSeconds)return function JO(e,t){return Gt(e,3).substring(0,t)}(a,t);const l=xt(s,F.MinusSign);return Gt(a,t,l,r,o)}}function de(e,t,n=be.Format,r=!1){return function(o,i){return function tx(e,t,n,r,o,i){switch(n){case q.Months:return function $O(e,t,n){const r=tt(e),i=Pt([r[I.MonthsFormat],r[I.MonthsStandalone]],t);return Pt(i,n)}(t,o,r)[e.getMonth()];case q.Days:return function jO(e,t,n){const r=tt(e),i=Pt([r[I.DaysFormat],r[I.DaysStandalone]],t);return Pt(i,n)}(t,o,r)[e.getDay()];case q.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function GO(e){const t=tt(e);return dC(t),(t[I.ExtraData][2]||[]).map(r=>"string"==typeof r?Hd(r):[Hd(r[0]),Hd(r[1])])}(t),c=function WO(e,t,n){const r=tt(e);dC(r);const i=Pt([r[I.ExtraData][0],r[I.ExtraData][1]],t)||[];return Pt(i,n)||[]}(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,m=s>=h.hours&&a>=h.minutes,y=s<p.hours||s===p.hours&&a<p.minutes;if(h.hours<p.hours){if(m&&y)return!0}else if(m||y)return!0}else if(f.hours===s&&f.minutes===a)return!0;return!1});if(-1!==d)return c[d]}return function HO(e,t,n){const r=tt(e),i=Pt([r[I.DayPeriodsFormat],r[I.DayPeriodsStandalone]],t);return Pt(i,n)}(t,o,r)[s<12?0:1];case q.Eras:return function BO(e,t){return Pt(tt(e)[I.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(o,i,e,t,n,r)}}function Ya(e){return function(t,n,r){const o=-1*r,i=xt(n,F.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Ve.Short:return(o>=0?"+":"")+Gt(s,2,i)+Gt(Math.abs(o%60),2,i);case Ve.ShortGMT:return"GMT"+(o>=0?"+":"")+Gt(s,1,i);case Ve.Long:return"GMT"+(o>=0?"+":"")+Gt(s,2,i)+":"+Gt(Math.abs(o%60),2,i);case Ve.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 nx=0,Qa=4;function fC(e){return qa(e.getFullYear(),e.getMonth(),e.getDate()+(Qa-e.getDay()))}function jd(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=fC(n),s=function rx(e){const t=qa(e,nx,1).getDay();return qa(e,0,1+(t<=Qa?Qa:Qa+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Gt(o,e,xt(r,F.MinusSign))}}function Xa(e,t=!1){return function(n,r){return Gt(fC(n).getFullYear(),e,xt(r,F.MinusSign),t)}}const $d={};function hC(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function pC(e){return e instanceof Date&&!isNaN(e.valueOf())}function vC(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}class wx{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 Kn=(()=>{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 wx(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),_C(a,o)}});for(let o=0,i=r.length;o<i;o++){const a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{_C(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(v(Ut),v(On),v(Ba))},e.\u0275dir=H({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function _C(e,t){e.context.$implicit=t.item}let Zd=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new Ex,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){wC("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){wC("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)(v(Ut),v(On))},e.\u0275dir=H({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class Ex{constructor(){this.$implicit=null,this.ngIf=null}}function wC(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${xe(t)}'.`)}const kx=new N("DATE_PIPE_DEFAULT_TIMEZONE"),Lx=new N("DATE_PIPE_DEFAULT_OPTIONS");let Xd=(()=>{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 KO(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 C(2100,!1)}()}}}return e.\u0275fac=function(n){return new(n||e)(v(xn,16),v(kx,24),v(Lx,24))},e.\u0275pipe=st({name:"date",type:e,pure:!0,standalone:!0}),e})(),qx=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({}),e})();function SC(e){return"server"===e}let Xx=(()=>{class e{}return e.\u0275prov=R({token:e,providedIn:"root",factory:()=>new Kx(T(bt),window)}),e})();class Kx{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 Jx(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=IC(this.window.history)||IC(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 IC(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class TC{}class SP extends OO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class nf extends SP{static makeCurrent(){!function RO(e){Pd||(Pd=e)}(new nf)}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 IP(){return Ui=Ui||document.querySelector("base"),Ui?Ui.getAttribute("href"):null}();return null==n?null:function TP(e){tl=tl||document.createElement("a"),tl.setAttribute("href",e);const t=tl.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Ui=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return vC(document.cookie,t)}}let tl,Ui=null,NP=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();const rf=new N("EventManagerPlugins");let xC=(()=>{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 C(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(T(rf),T(ge))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();class PC{constructor(t){this._doc=t}}const sf="ng-app-id";let FC=(()=>{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=SC(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[${sf}="${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(sf),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(sf,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)(T(bt),T(la),T(Jg,8),T(vr))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();const af={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/"},lf=/%COMP%/g,PP=new N("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function LC(e,t){return t.map(n=>n.replace(lf,e))}let VC=(()=>{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=SC(a),this.defaultRenderer=new uf(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===yt.ShadowDom&&(r={...r,encapsulation:yt.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof jC?o.applyToHost(n):o instanceof cf&&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 yt.Emulated:i=new jC(l,u,r,this.appId,c,s,a,d);break;case yt.ShadowDom:return new VP(l,u,n,r,s,a,this.nonce,d);default:i=new cf(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)(T(xC),T(FC),T(la),T(PP),T(bt),T(vr),T(ge),T(Jg))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();class uf{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(af[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(HC(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(HC(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 C(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=af[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=af[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&(dt.DashCase|dt.Important)?t.style.setProperty(n,r,o&dt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&dt.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=Qn().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 HC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class VP extends uf{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=LC(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 cf extends uf{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?LC(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 jC extends cf{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 FP(e){return"_ngcontent-%COMP%".replace(lf,e)}(u),this.hostAttr=function kP(e){return"_nghost-%COMP%".replace(lf,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 HP=(()=>{class e extends PC{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)(T(bt))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();const $C=["alt","control","meta","shift"],jP={"\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"},$P={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let BP=(()=>{class e extends PC{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(()=>Qn().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."),$C.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=jP[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"),$C.forEach(s=>{s!==o&&(0,$P[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)(T(bt))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();const WP=PD(DO,"browser",[{provide:vr,useValue:"browser"},{provide:Kg,useValue:function UP(){nf.makeCurrent()},multi:!0},{provide:bt,useFactory:function GP(){return function WS(e){Uu=e}(document),document},deps:[]}]),qP=new N(""),zC=[{provide:La,useClass:class AP{addToWindow(t){ce.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new C(5103,!1);return i},ce.getAllAngularTestabilities=()=>t.getAllTestabilities(),ce.getAllAngularRootElements=()=>t.getAllRootElements(),ce.frameworkStabilizers||(ce.frameworkStabilizers=[]),ce.frameworkStabilizers.push(r=>{const o=ce.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?Qn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:AD,useClass:wd,deps:[ge,Ed,La]},{provide:wd,useClass:wd,deps:[ge,Ed,La]}],GC=[{provide:ec,useValue:"root"},{provide:Dr,useFactory:function zP(){return new Dr},deps:[]},{provide:rf,useClass:HP,multi:!0,deps:[bt,ge,vr]},{provide:rf,useClass:BP,multi:!0,deps:[bt]},VC,FC,xC,{provide:am,useExisting:VC},{provide:TC,useClass:NP,deps:[]},[]];let ZP=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:la,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(T(qP,12))},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({providers:[...GC,...zC],imports:[qx,CO]}),e})(),WC=(()=>{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)(T(bt))},e.\u0275prov=R({token:e,factory:function(n){let r=null;return r=n?new n:function QP(){return new WC(T(bt))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:tF}=Array,{getPrototypeOf:nF,prototype:rF,keys:oF}=Object;function QC(e){if(1===e.length){const t=e[0];if(tF(t))return{args:t,keys:null};if(function iF(e){return e&&"object"==typeof e&&nF(e)===rF}(t)){const n=oF(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:sF}=Array;function XC(e){return ee(t=>function aF(e,t){return sF(t)?e(...t):e(t)}(e,t))}function KC(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let JC=(()=>{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)(v(An),v(_t))},e.\u0275dir=H({type:e}),e})(),Mr=(()=>{class e extends JC{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275dir=H({type:e,features:[se]}),e})();const pn=new N("NgValueAccessor"),uF={provide:pn,useExisting:ue(()=>ff),multi:!0};let ff=(()=>{class e extends Mr{writeValue(n){this.setProperty("checked",n)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275dir=H({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&B("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[pe([uF]),se]}),e})();const cF={provide:pn,useExisting:ue(()=>kn),multi:!0},fF=new N("CompositionEventMode");let kn=(()=>{class e extends JC{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function dF(){const e=Qn()?Qn().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)(v(An),v(_t),v(fF,8))},e.\u0275dir=H({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&&B("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:[pe([cF]),se]}),e})();const Qe=new N("NgValidators"),tr=new N("NgAsyncValidators");function u_(e){return null!=e}function c_(e){return Ii(e)?Oe(e):e}function d_(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function f_(e,t){return t.map(n=>n(e))}function h_(e){return e.map(t=>function pF(e){return!e.validate}(t)?t:n=>t.validate(n))}function hf(e){return null!=e?function p_(e){if(!e)return null;const t=e.filter(u_);return 0==t.length?null:function(n){return d_(f_(n,t))}}(h_(e)):null}function pf(e){return null!=e?function g_(e){if(!e)return null;const t=e.filter(u_);return 0==t.length?null:function(n){return function lF(...e){const t=Rh(e),{args:n,keys:r}=QC(e),o=new Ee(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<s;c++){let d=!1;It(n[c]).subscribe(He(i,f=>{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?KC(r,a):a),i.complete())}))}});return t?o.pipe(XC(t)):o}(f_(n,t).map(c_)).pipe(ee(d_))}}(h_(e)):null}function m_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function gf(e){return e?Array.isArray(e)?e:[e]:[]}function rl(e,t){return Array.isArray(e)?e.includes(t):e===t}function D_(e,t){const n=gf(t);return gf(e).forEach(o=>{rl(n,o)||n.push(o)}),n}function C_(e,t){return gf(t).filter(n=>!rl(e,n))}class __{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=hf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=pf(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 rt extends __{get formDirective(){return null}get path(){return null}}class nr extends __{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class w_{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 Sr=(()=>{class e extends w_{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(v(nr,2))},e.\u0275dir=H({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Ta("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:[se]}),e})(),E_=(()=>{class e extends w_{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(v(rt,10))},e.\u0275dir=H({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Ta("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:[se]}),e})();const zi="VALID",il="INVALID",So="PENDING",Gi="DISABLED";function vf(e){return(sl(e)?e.validators:e)||null}function Df(e,t){return(sl(t)?t.asyncValidators:e)||null}function sl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class I_{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===zi}get invalid(){return this.status===il}get pending(){return this.status==So}get disabled(){return this.status===Gi}get enabled(){return this.status!==Gi}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(D_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(D_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(C_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(C_(t,this._rawAsyncValidators))}hasValidator(t){return rl(this._rawValidators,t)}hasAsyncValidator(t){return rl(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=So,!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=Gi,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=zi,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===zi||this.status===So)&&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()?Gi:zi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=So,this._hasOwnPendingAsyncValidator=!0;const n=c_(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 we,this.statusChanges=new we}_calculateStatus(){return this._allControlsDisabled()?Gi:this.errors?il:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(So)?So:this._anyControlsHaveStatus(il)?il:zi}_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){sl(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 vF(e){return Array.isArray(e)?hf(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function DF(e){return Array.isArray(e)?pf(e):e||null}(this._rawAsyncValidators)}}class Cf extends I_{constructor(t,n,r){super(vf(n),Df(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 S_(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new C(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function M_(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new C(1e3,"");if(!r[n])throw new C(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 Io=new N("CallSetDisabledState",{providedIn:"root",factory:()=>al}),al="always";function Wi(e,t,n=al){_f(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function wF(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&T_(e,t)})}(e,t),function bF(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 EF(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&T_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function _F(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function cl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function _f(e,t){const n=function y_(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(m_(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function v_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(m_(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();cl(t._rawValidators,o),cl(t._rawAsyncValidators,o)}function T_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const AF={provide:rt,useExisting:ue(()=>fl)},qi=(()=>Promise.resolve())();let fl=(()=>{class e extends rt{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new we,this.form=new Cf({},hf(n),pf(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){qi.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Wi(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){qi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){qi.then(()=>{const r=this._findContainer(n.path),o=new Cf({});(function A_(e,t){_f(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){qi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){qi.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function N_(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)(v(Qe,10),v(tr,10),v(Io,8))},e.\u0275dir=H({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&B("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pe([AF]),se]}),e})();function R_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function O_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const x_=class extends I_{constructor(t=null,n,r){super(vf(n),Df(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}),sl(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=O_(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){R_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){R_(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){O_(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}},OF={provide:nr,useExisting:ue(()=>rr)},k_=(()=>Promise.resolve())();let rr=(()=>{class e extends nr{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new x_,this._registered=!1,this.name="",this.update=new we,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function bf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===kn?n=i:function IF(e){return Object.getPrototypeOf(e.constructor)===Mr}(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 Ef(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(){Wi(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){k_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&Mo(r);k_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function ll(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(v(rt,9),v(Qe,10),v(tr,10),v(pn,10),v(Ha,8),v(Io,8))},e.\u0275dir=H({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:[pe([OF]),se,Nt]}),e})(),L_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),H_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({}),e})(),n1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({imports:[H_]}),e})(),o1=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Io,useValue:n.callSetDisabledState??al}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({imports:[n1]}),e})();function P(...e){return Oe(e,Uo(e))}function To(e,t){return le(t)?Be(e,t,1):Be(e,1)}function Ln(e,t){return $e((n,r)=>{let o=0;n.subscribe(He(r,i=>e.call(t,i,o++)&&r.next(i)))})}function gn(e,t){return $e((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(He(r,l=>{o?.unsubscribe();let u=0;const c=i++;It(e(l,c)).subscribe(o=He(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class hl{}class Rf{}class Xe{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 Xe?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 Xe;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Xe?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 i1{encodeKey(t){return rw(t)}encodeValue(t){return rw(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const a1=/%(\d[a-f0-9])/gi,l1={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function rw(e){return encodeURIComponent(e).replace(a1,(t,n)=>l1[n]??t)}function pl(e){return`${e}`}class or{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new i1,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function s1(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(pl):[pl(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(pl(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(pl(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 u1{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 ow(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function iw(e){return typeof Blob<"u"&&e instanceof Blob}function sw(e){return typeof FormData<"u"&&e instanceof FormData}class Zi{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 c1(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 Xe),this.context||(this.context=new u1),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":a<n.length-1?"&":"")+s}}else this.params=new or,this.urlWithParams=n}serializeBody(){return null===this.body?null:ow(this.body)||iw(this.body)||sw(this.body)||function d1(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof or?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||sw(this.body)?null:iw(this.body)?this.body.type||null:ow(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof or?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){const n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=void 0!==t.body?t.body:this.body,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,u=t.params||this.params;const c=t.context??this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((d,f)=>d.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),u)),new Zi(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Re=(()=>((Re=Re||{})[Re.Sent=0]="Sent",Re[Re.UploadProgress=1]="UploadProgress",Re[Re.ResponseHeader=2]="ResponseHeader",Re[Re.DownloadProgress=3]="DownloadProgress",Re[Re.Response=4]="Response",Re[Re.User=5]="User",Re))();class Of{constructor(t,n=200,r="OK"){this.headers=t.headers||new Xe,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 xf extends Of{constructor(t={}){super(t),this.type=Re.ResponseHeader}clone(t={}){return new xf({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 Ao extends Of{constructor(t={}){super(t),this.type=Re.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ao({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 aw extends Of{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 Pf(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 Zi)i=n;else{let l,u;l=o.headers instanceof Xe?o.headers:new Xe(o.headers),o.params&&(u=o.params instanceof or?o.params:new or({fromObject:o.params})),i=new Zi(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=P(i).pipe(To(l=>this.handler.handle(l)));if(n instanceof Zi||"events"===o.observe)return s;const a=s.pipe(Ln(l=>l instanceof Ao));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ee(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(ee(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(ee(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ee(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,Pf(o,r))}post(n,r,o={}){return this.request("POST",n,Pf(o,r))}put(n,r,o={}){return this.request("PUT",n,Pf(o,r))}}return e.\u0275fac=function(n){return new(n||e)(T(hl))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();function lw(e,t){return t(e)}function f1(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const uw=new N(""),Yi=new N(""),cw=new N("");function p1(){let e=null;return(t,n)=>(null===e&&(e=(A(uw,{optional:!0})??[]).reduceRight(f1,lw)),e(t,n))}let dw=(()=>{class e extends hl{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(Yi),...this.injector.get(cw,[])]));this.chain=r.reduceRight((o,i)=>function h1(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),lw)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(T(Rf),T(sn))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();const v1=/^\)\]\}',?\n/;let hw=(()=>{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?Oe(r.\u0275loadImpl()):P(null)).pipe(gn(()=>new Ee(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,b)=>s.setRequestHeader(g,b.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",b=new Xe(s.getAllResponseHeaders()),x=function D1(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 xf({headers:b,status:s.status,statusText:g,url:x}),l},c=()=>{let{headers:g,status:b,statusText:x,url:Z}=u(),fe=null;204!==b&&(fe=typeof s.response>"u"?s.responseText:s.response),0===b&&(b=fe?200:0);let Ho=b>=200&&b<300;if("json"===n.responseType&&"string"==typeof fe){const SV=fe;fe=fe.replace(v1,"");try{fe=""!==fe?JSON.parse(fe):null}catch(IV){fe=SV,Ho&&(Ho=!1,fe={error:IV,text:fe})}}Ho?(i.next(new Ao({body:fe,headers:g,status:b,statusText:x,url:Z||void 0})),i.complete()):i.error(new aw({error:fe,headers:g,status:b,statusText:x,url:Z||void 0}))},d=g=>{const{url:b}=u(),x=new aw({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:b||void 0});i.error(x)};let f=!1;const h=g=>{f||(i.next(u()),f=!0);let b={type:Re.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(b.total=g.total),"text"===n.responseType&&s.responseText&&(b.partialText=s.responseText),i.next(b)},p=g=>{let b={type:Re.UploadProgress,loaded:g.loaded};g.lengthComputable&&(b.total=g.total),i.next(b)};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 y=()=>{m??=function _1(){const e=setTimeout(()=>{},C1);return()=>clearTimeout(e)}()},w=()=>{m?.()};return s.addEventListener("loadstart",y),s.addEventListener("loadend",w),s.send(a),i.next({type:Re.Sent}),()=>{s.removeEventListener("loadstart",y),s.removeEventListener("loadend",w),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)(T(TC))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();const C1=2147483647,Ff=new N("XSRF_ENABLED"),pw=new N("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),gw=new N("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class mw{}let b1=(()=>{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=vC(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(T(bt),T(vr),T(pw))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();function M1(e,t){const n=e.url.toLowerCase();if(!A(Ff)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=A(mw).getToken(),o=A(gw);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Se=(()=>((Se=Se||{})[Se.Interceptors=0]="Interceptors",Se[Se.LegacyInterceptors=1]="LegacyInterceptors",Se[Se.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Se[Se.NoXsrfProtection=3]="NoXsrfProtection",Se[Se.JsonpSupport=4]="JsonpSupport",Se[Se.RequestsMadeViaParent=5]="RequestsMadeViaParent",Se))();function No(e,t){return{\u0275kind:e,\u0275providers:t}}function S1(...e){const t=[Tr,hw,dw,{provide:hl,useExisting:dw},{provide:Rf,useExisting:hw},{provide:Yi,useValue:M1,multi:!0},{provide:Ff,useValue:!0},{provide:mw,useClass:b1}];for(const n of e)t.push(...n.\u0275providers);return function Qu(e){return{\u0275providers:e}}(t)}const yw=new N("LEGACY_INTERCEPTOR_FN");let T1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({providers:[S1(No(Se.LegacyInterceptors,[{provide:yw,useFactory:p1},{provide:Yi,useExisting:yw,multi:!0}]))]}),e})();function ne(e,t,n){const r=le(e)||t||n?{next:e,error:t,complete:n}:e;return r?$e((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(He(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)}))}):lr}function De(e){return $e((t,n)=>{let i,r=null,o=!1;r=t.subscribe(He(n,void 0,void 0,s=>{i=It(e(s,De(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 Nr=(()=>{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=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class mn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Xe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),P(n))}log(t){this.appMessageService.add(`ChatMessagesService: ${t}`)}getChatMessages(){return this.http.get(mn.REST_URL,this.httpOptions).pipe(ne(t=>this.log(`fetched ${t.length} messages`)),De(this.handleError("getChatMessages",[])))}addChatMessage(t,n){return this.http.post(mn.REST_URL,{author:t,text:n},this.httpOptions).pipe(ne(o=>this.log(`added message w/ id=${o.id}`)),De(this.handleError("addChatMessage")))}}mn.REST_URL=Ar_restServerUrl+"/api/chat",mn.\u0275fac=function(t){return new(t||mn)(T(Tr),T(Nr))},mn.\u0275prov=R({token:mn,factory:mn.\u0275fac,providedIn:"root"});class qt extends Cn{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 kf(...e){const t=Uo(e),n=Rh(e),{args:r,keys:o}=QC(e);if(0===r.length)return Oe([],t);const i=new Ee(function F1(e,t,n=lr){return r=>{vw(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l<o;l++)vw(t,()=>{const u=Oe(e[l],t);let c=!1;u.subscribe(He(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>KC(o,s):lr));return n?i.pipe(XC(n)):i}function vw(e,t,n){e?_n(n,e,t):t()}const gl=jo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Lf(...e){return function k1(){return kr(1)}()(Oe(e,Uo(e)))}function Dw(e){return new Ee(t=>{It(e()).subscribe(t)})}function Xi(e,t){const n=le(e)?e:()=>e,r=o=>o.error(n());return new Ee(t?o=>t.schedule(r,0,o):r)}function Vf(){return $e((e,t)=>{let n=null;e._refCount++;const r=He(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 Cw extends Ee{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,yh(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 St;const n=this.getSubject();t.add(this.source.subscribe(He(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=St.EMPTY)}return t}refCount(){return Vf()(this)}}function Ro(e){return e<=0?()=>Xt:$e((t,n)=>{let r=0;t.subscribe(He(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function ml(e){return $e((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function _w(e=V1){return $e((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function V1(){return new gl}function Rr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ln((o,i)=>e(o,i,r)):lr,Ro(1),n?ml(t):_w(()=>new gl))}function Hf(e){return e<=0?()=>Xt:$e((t,n)=>{let r=[];t.subscribe(He(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function jf(e){return $e((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const W="primary",Ki=Symbol("RouteTitle");class U1{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 Oo(e){return new U1(e)}function z1(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const o={};for(let i=0;i<r.length;i++){const s=r[i],a=e[i];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function yn(e,t){const n=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!ww(e[o],t[o]))return!1;return!0}function ww(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}return e===t}function Ew(e){return e.length>0?e[e.length-1]:null}function ir(e){return function P1(e){return!!e&&(e instanceof Ee||le(e.lift)&&le(e.subscribe))}(e)?e:Ii(e)?Oe(Promise.resolve(e)):P(e)}const W1={exact:function Sw(e,t,n){if(!Or(e.segments,t.segments)||!yl(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!Sw(e.children[r],t.children[r],n))return!1;return!0},subset:Iw},bw={exact:function q1(e,t){return yn(e,t)},subset:function Z1(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>ww(e[n],t[n]))},ignored:()=>!0};function Mw(e,t,n){return W1[n.paths](e.root,t.root,n.matrixParams)&&bw[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Iw(e,t,n){return Tw(e,t,t.segments,n)}function Tw(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Or(o,n)||t.hasChildren()||!yl(o,n,r))}if(e.segments.length===n.length){if(!Or(e.segments,n)||!yl(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!Iw(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!!(Or(e.segments,o)&&yl(e.segments,o,r)&&e.children[W])&&Tw(e.children[W],t,i,r)}}function yl(e,t,n){return t.every((r,o)=>bw[n](e[o].parameters,r.parameters))}class xo{constructor(t=new ae([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oo(this.queryParams)),this._queryParamMap}toString(){return X1.serialize(this)}}class ae{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 vl(this)}}class Ji{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Oo(this.parameters)),this._parameterMap}toString(){return Rw(this)}}function Or(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let es=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return new $f},providedIn:"root"}),e})();class $f{parse(t){const n=new lk(t);return new xo(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${ts(t.root,!0)}`,r=function ek(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Dl(n)}=${Dl(o)}`).join("&"):`${Dl(n)}=${Dl(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function K1(e){return encodeURI(e)}(t.fragment)}`:""}`}}const X1=new $f;function vl(e){return e.segments.map(t=>Rw(t)).join("/")}function ts(e,t){if(!e.hasChildren())return vl(e);if(t){const n=e.children[W]?ts(e.children[W],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==W&&r.push(`${o}:${ts(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function Q1(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===W&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==W&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===W?[ts(e.children[W],!1)]:[`${o}:${ts(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[W]?`${vl(e)}/${n[0]}`:`${vl(e)}/(${n.join("//")})`}}function Aw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dl(e){return Aw(e).replace(/%3B/gi,";")}function Bf(e){return Aw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cl(e){return decodeURIComponent(e)}function Nw(e){return Cl(e.replace(/\+/g,"%20"))}function Rw(e){return`${Bf(e.path)}${function J1(e){return Object.keys(e).map(t=>`;${Bf(t)}=${Bf(e[t])}`).join("")}(e.parameters)}`}const tk=/^[^\/()?;#]+/;function Uf(e){const t=e.match(tk);return t?t[0]:""}const nk=/^[^\/()?;=#]+/,ok=/^[^=?&#]+/,sk=/^[^&#]+/;class lk{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ae([],{}):new ae([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let 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[W]=new ae(t,n)),r}parseSegment(){const t=Uf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new Ji(Cl(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function rk(e){const t=e.match(nk);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Uf(this.remaining);o&&(r=o,this.capture(r))}t[Cl(n)]=Cl(r)}parseQueryParam(t){const n=function ik(e){const t=e.match(ok);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function ak(e){const t=e.match(sk);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Nw(n),i=Nw(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=Uf(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new C(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=W);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[W]:new ae([],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 C(4011,!1)}}function Ow(e){return e.segments.length>0?new ae([],{[W]:e}):e}function xw(e){const t={};for(const r of Object.keys(e.children)){const i=xw(e.children[r]);if(r===W&&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 uk(e){if(1===e.numberOfChildren&&e.children[W]){const t=e.children[W];return new ae(e.segments.concat(t.segments),t.children)}return e}(new ae(e.segments,t))}function xr(e){return e instanceof xo}function Pw(e){let t;const o=Ow(function n(i){const s={};for(const l of i.children){const u=n(l);s[l.outlet]=u}const a=new ae(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function Fw(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return zf(o,o,o,n,r);const i=function dk(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Lw(!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 Lw(n,t,r)}(t);if(i.toRoot())return zf(o,o,new ae([],{}),n,r);const s=function fk(e,t,n){if(e.isAbsolute)return new wl(t,!0,0);if(!n)return new wl(t,!1,NaN);if(null===n.parent)return new wl(n,!0,0);const r=_l(e.commands[0])?0:1;return function hk(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,!1);o=r.segments.length}return new wl(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?rs(s.segmentGroup,s.index,i.commands):Vw(s.segmentGroup,s.index,i.commands);return zf(o,s.segmentGroup,a,n,r)}function _l(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ns(e){return"object"==typeof e&&null!=e&&e.outlets}function zf(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:kw(e,t,n);const a=Ow(xw(s));return new xo(a,i,o)}function kw(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:kw(i,t,n)}),new ae(e.segments,r)}class Lw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&_l(r[0]))throw new C(4003,!1);const o=r.find(ns);if(o&&o!==Ew(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wl{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Vw(e,t,n){if(e||(e=new ae([],{})),0===e.segments.length&&e.hasChildren())return rs(e,t,n);const r=function gk(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;const s=e.segments[o],a=n[r];if(ns(a))break;const l=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!jw(l,u,s))return i;r+=2}else{if(!jw(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<e.segments.length){const i=new ae(e.segments.slice(0,r.pathIndex),{});return i.children[W]=new ae(e.segments.slice(r.pathIndex),e.children),rs(i,0,o)}return r.match&&0===o.length?new ae(e.segments,{}):r.match&&!e.hasChildren()?Gf(e,t,n):r.match?rs(e,0,o):Gf(e,t,n)}function rs(e,t,n){if(0===n.length)return new ae(e.segments,{});{const r=function pk(e){return ns(e[0])?e[0].outlets:{[W]:e}}(n),o={};if(!r[W]&&e.children[W]&&1===e.numberOfChildren&&0===e.children[W].segments.length){const i=rs(e.children[W],t,n);return new ae(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=Vw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ae(e.segments,o)}}function Gf(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o<n.length;){const i=n[o];if(ns(i)){const l=mk(i.outlets);return new ae(r,l)}if(0===o&&_l(n[0])){r.push(new Ji(e.segments[t].path,Hw(n[0]))),o++;continue}const s=ns(i)?i.outlets[W]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&_l(a)?(r.push(new Ji(s,Hw(a))),o+=2):(r.push(new Ji(s,{})),o++)}return new ae(r,{})}function mk(e){const t={};return Object.entries(e).forEach(([n,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=Gf(new ae([],{}),0,r))}),t}function Hw(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function jw(e,t,n){return e==n.path&&yn(t,n.parameters)}const os="imperative";class vn{constructor(t,n){this.id=t,this.url=n}}class Wf 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 El 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 is extends vn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class qf 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 yk 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 vk 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 Dk 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 Ck 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 _k 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 wk{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ek{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bk{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mk{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sk{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ik{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $w{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 Tk{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ss,this.attachRef=null}}let ss=(()=>{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 Tk,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=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Bw{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=Zf(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Zf(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Yf(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Yf(t,this._root).map(n=>n.value)}}function Zf(e,t){if(e===t.value)return t;for(const n of t.children){const r=Zf(e,n);if(r)return r}return null}function Yf(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Yf(e,n);if(r.length)return r.unshift(t),r}return[]}class Vn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function Po(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class Uw extends Bw{constructor(t,n){super(t),this.snapshot=n,Qf(this,t)}toString(){return this.snapshot.toString()}}function zw(e,t){const n=function Ak(e,t){const s=new bl([],{},{},"",{},W,t,null,{});return new Ww("",new Vn(s,[]))}(0,t),r=new qt([new Ji("",{})]),o=new qt({}),i=new qt({}),s=new qt({}),a=new qt(""),l=new Fr(r,o,s,a,i,W,t,n.root);return l.snapshot=n.root,new Uw(new Vn(l,[]),n)}class Fr{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(ee(u=>u[Ki]))??P(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(ee(t=>Oo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ee(t=>Oo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gw(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 Nk(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 bl{get title(){return this.data?.[Ki]}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=Oo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ww extends Bw{constructor(t,n){super(n),this.url=t,Qf(this,n)}toString(){return qw(this._root)}}function Qf(e,t){t.value._routerState=e,t.children.forEach(n=>Qf(e,n))}function qw(e){const t=e.children.length>0?` { ${e.children.map(qw).join(", ")} } `:"";return`${e.value}${t}`}function Xf(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 G1(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!yn(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.urlSubject.next(n.url),yn(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Kf(e,t){const n=yn(e.params,t.params)&&function Y1(e,t){return Or(e,t)&&e.every((n,r)=>yn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Kf(e.parent,t.parent))}let Jf=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=W,this.activateEvents=new we,this.deactivateEvents=new we,this.attachEvents=new we,this.detachEvents=new we,this.parentContexts=A(ss),this.location=A(Ut),this.changeDetector=A(Ha),this.environmentInjector=A(sn),this.inputBinder=A(Ml,{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 C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(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 C(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Rk(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=H({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Nt]}),e})();class Rk{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Fr?this.route:t===ss?this.childContexts:this.parent.get(t,n)}}const Ml=new N("");let Zw=(()=>{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=kf([r.queryParams,r.params,r.data]).pipe(gn(([i,s,a],l)=>(a={...i,...s,...a},0===l?P(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 NO(e){const t=te(e);if(!t)return null;const n=new wi(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=R({token:e,factory:e.\u0275fac}),e})();function as(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function xk(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return as(e,r,o);return as(e,r)})}(e,t,n);return new Vn(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=>as(e,a)),s}}const r=function Pk(e){return new Fr(new qt(e.url),new qt(e.params),new qt(e.queryParams),new qt(e.fragment),new qt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>as(e,i));return new Vn(r,o)}}const eh="ngNavigationCancelingError";function Yw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=xr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Qw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function Qw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[eh]=!0,r.cancellationCode=t,n&&(r.url=n),r}function Xw(e){return Kw(e)&&xr(e.url)}function Kw(e){return e&&e[eh]}let Jw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=kt({type:e,selectors:[["ng-component"]],standalone:!0,features:[Rv],decls:1,vars:0,template:function(n,r){1&n&&ke(0,"router-outlet")},dependencies:[Jf],encapsulation:2}),e})();function th(e){const t=e.children&&e.children.map(th),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==W&&(n.component=Jw),n}function Zt(e){return e.outlet||W}function ls(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 $k{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),Xf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=Po(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=Po(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=Po(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=Po(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Ik(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Mk(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(Xf(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),Xf(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=ls(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 eE{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Sl{constructor(t,n){this.component=t,this.route=n}}function Bk(e,t,n){const r=e._root;return us(r,t?t._root:null,n,[r.value])}function Fo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function pb(e){return null!==Ds(e)}(e)?t.get(e):e:r}function us(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Po(t);return e.children.forEach(s=>{(function zk(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 Gk(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Or(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Or(e.url,t.url)||!yn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kf(e,t)||!yn(e.queryParams,t.queryParams);default:return!Kf(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new eE(r)):(i.data=s.data,i._resolvedData=s._resolvedData),us(e,t,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Sl(a.outlet.component,s))}else s&&cs(t,a,o),o.canActivateChecks.push(new eE(r)),us(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])=>cs(a,n.getContext(s),o)),o}function cs(e,t,n){const r=Po(e),o=e.value;Object.entries(r).forEach(([i,s])=>{cs(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Sl(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function ds(e){return"function"==typeof e}function tE(e){return e instanceof gl||"EmptyError"===e?.name}const Il=Symbol("INITIAL_VALUE");function ko(){return gn(e=>kf(e.map(t=>t.pipe(Ro(1),function L1(...e){const t=Uo(e);return $e((n,r)=>{(t?Lf(e,n,t):Lf(e,n)).subscribe(r)})}(Il)))).pipe(ee(t=>{for(const n of t)if(!0!==n){if(n===Il)return Il;if(!1===n||n instanceof xo)return n}return!0}),Ln(t=>t!==Il),Ro(1)))}function nE(e){return function xE(...e){return ph(e)}(ne(t=>{if(xr(t))throw Yw(0,t)}),ee(t=>!0===t))}class Tl{constructor(t){this.segmentGroup=t||null}}class rE{constructor(t){this.urlTree=t}}function Lo(e){return Xi(new Tl(e))}function oE(e){return Xi(new rE(e))}class dL{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new C(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return P(r);if(o.numberOfChildren>1||!o.children[W])return Xi(new C(4e3,!1));o=o.children[W]}}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 xo(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 ae(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 C(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 nh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function fL(e,t,n,r,o){const i=rh(e,t,n);return i.matched?(r=function Fk(e,t){return e.providers&&!e._injector&&(e._injector=Kc(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function lL(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?P(o.map(s=>{const a=Fo(s,e);return ir(function Xk(e){return e&&ds(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(ko(),nE()):P(!0)}(r,t,n).pipe(ee(s=>!0===s?i:{...nh}))):P(i)}function rh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...nh}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||z1)(n,e,t);if(!o)return{...nh};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 iE(e,t,n,r){return n.length>0&&function gL(e,t,n){return n.some(r=>Al(e,t,r)&&Zt(r)!==W)}(e,n,r)?{segmentGroup:new ae(t,pL(r,new ae(n,e.children))),slicedSegments:[]}:0===n.length&&function mL(e,t,n){return n.some(r=>Al(e,t,r))}(e,n,r)?{segmentGroup:new ae(e.segments,hL(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ae(e.segments,e.children),slicedSegments:n}}function hL(e,t,n,r,o){const i={};for(const s of r)if(Al(e,n,s)&&!o[Zt(s)]){const a=new ae([],{});i[Zt(s)]=a}return{...o,...i}}function pL(e,t){const n={};n[W]=t;for(const r of e)if(""===r.path&&Zt(r)!==W){const o=new ae([],{});n[Zt(r)]=o}return n}function Al(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class CL{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 dL(this.urlSerializer,this.urlTree)}noMatchError(t){return new C(4002,!1)}recognize(){const t=iE(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,W).pipe(De(n=>{if(n instanceof rE)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof Tl?this.noMatchError(n):n}),ee(n=>{const r=new bl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},W,this.rootComponentType,null,{}),o=new Vn(r,n),i=new Ww("",o),s=function ck(e,t,n=null,r=null){return Fw(Pw(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,W).pipe(De(r=>{throw r instanceof Tl?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=Gw(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 Oe(o).pipe(To(i=>{const s=r.children[i],a=function Hk(e,t){const n=e.filter(r=>Zt(r)===t);return n.push(...e.filter(r=>Zt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function j1(e,t){return $e(function H1(e,t,n,r,o){return(i,s)=>{let a=n,l=t,u=0;i.subscribe(He(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)),ml(null),function $1(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ln((o,i)=>e(o,i,r)):lr,Hf(1),n?ml(t):_w(()=>new gl))}(),Be(i=>{if(null===i)return Lo(r);const s=sE(i);return function _L(e){e.sort((t,n)=>t.value.outlet===W?-1:n.value.outlet===W?1:t.value.outlet.localeCompare(n.value.outlet))}(s),P(s)}))}processSegment(t,n,r,o,i,s){return Oe(n).pipe(To(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(De(l=>{if(l instanceof Tl)return P(null);throw l}))),Rr(a=>!!a),De(a=>{if(tE(a))return function vL(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?P([]):Lo(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function yL(e,t,n,r){return!!(Zt(e)===r||r!==W&&Al(t,n,e))&&("**"===e.path||rh(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):Lo(o):Lo(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("/")?oE(i):this.applyRedirects.lineralizeSegments(r,i).pipe(Be(s=>{const a=new ae(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}=rh(n,o,i);if(!a)return Lo(n);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?oE(d):this.applyRedirects.lineralizeSegments(o,d).pipe(Be(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?Ew(o).parameters:{};a=P({snapshot:new bl(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,aE(r),Zt(r),r.component??r._loadedComponent??null,r,lE(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=fL(n,r,o,t).pipe(ee(({matched:l,consumedSegments:u,remainingSegments:c,parameters:d})=>l?{snapshot:new bl(u,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,aE(r),Zt(r),r.component??r._loadedComponent??null,r,lE(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(gn(l=>null===l?Lo(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}=iE(n,f,h,u);if(0===m.length&&p.hasChildren())return this.processChildren(c,u,p).pipe(ee(w=>null===w?null:[new Vn(d,w)]));if(0===u.length&&0===m.length)return P([new Vn(d,[])]);const y=Zt(r)===i;return this.processSegment(c,u,p,m,y?W:i,!0).pipe(ee(w=>[new Vn(d,w)]))}))))}getChildConfig(t,n,r){return n.children?P({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?P({routes:n._loadedRoutes,injector:n._loadedInjector}):function aL(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?P(!0):P(o.map(s=>{const a=Fo(s,e);return ir(function qk(e){return e&&ds(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(ko(),nE())}(t,n,r).pipe(Be(o=>o?this.configLoader.loadChildren(t,n).pipe(ne(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function cL(e){return Xi(Qw(!1,3))}())):P({routes:[],injector:t})}}function wL(e){const t=e.value.routeConfig;return t&&""===t.path}function sE(e){const t=[],n=new Set;for(const r of e){if(!wL(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=sE(r.children);t.push(new Vn(r.value,o))}return t.filter(r=>!n.has(r))}function aE(e){return e.data||{}}function lE(e){return e.resolve||{}}function uE(e){return"string"==typeof e.title||null===e.title}function oh(e){return gn(t=>{const n=e(t);return n?Oe(n).pipe(ee(()=>t)):P(t)})}const Vo=new N("ROUTES");let ih=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=A(_D)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return P(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=ir(n.loadComponent()).pipe(ee(cE),ne(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),jf(()=>{this.componentLoaders.delete(n)})),o=new Cw(r,()=>new Cn).pipe(Vf());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return P({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ee(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(a)?u=a:(l=a.create(n).injector,u=l.get(Vo,[],k.Self|k.Optional).flat()),{routes:u.map(th),injector:l}}),jf(()=>{this.childrenLoaders.delete(r)})),s=new Cw(i,()=>new Cn).pipe(Vf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return ir(n()).pipe(ee(cE),Be(r=>r instanceof Av||Array.isArray(r)?P(r):Oe(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function cE(e){return function AL(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Nl=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Cn,this.configLoader=A(ih),this.environmentInjector=A(sn),this.urlSerializer=A(es),this.rootContexts=A(ss),this.inputBindingEnabled=null!==A(Ml,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>P(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Ek(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new wk(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 qt({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:os,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ln(r=>0!==r.id),ee(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),gn(r=>{let o=!1,i=!1;return P(r).pipe(ne(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 is(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Xt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return dE(s.source)&&(n.browserUrlTree=s.extractedUrl),P(s).pipe(gn(c=>{const d=this.transitions?.getValue();return this.events.next(new Wf(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Xt:Promise.resolve(c)}),function EL(e,t,n,r,o,i){return Be(s=>function DL(e,t,n,r,o,i,s="emptyOnly"){return new CL(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(ee(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),ne(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 yk(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 Wf(c,this.urlSerializer.serialize(d),f,h);this.events.next(m);const y=zw(0,this.rootComponentType).snapshot;return P(r={...s,targetSnapshot:y,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new is(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Xt}}),ne(s=>{const a=new vk(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ee(s=>r={...s,guards:Bk(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Jk(e,t){return Be(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?P({...n,guardsResult:!0}):function eL(e,t,n,r){return Oe(e).pipe(Be(o=>function sL(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?P(i.map(a=>{const l=ls(t)??o,u=Fo(a,l);return ir(function Qk(e){return e&&ds(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(Rr())})).pipe(ko()):P(!0)}(o.component,o.route,n,t,r)),Rr(o=>!0!==o,!0))}(s,r,o,e).pipe(Be(a=>a&&function Wk(e){return"boolean"==typeof e}(a)?function tL(e,t,n,r){return Oe(t).pipe(To(o=>Lf(function rL(e,t){return null!==e&&t&&t(new bk(e)),P(!0)}(o.route.parent,r),function nL(e,t){return null!==e&&t&&t(new Sk(e)),P(!0)}(o.route,r),function iL(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function Uk(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=>Dw(()=>P(s.guards.map(l=>{const u=ls(s.node)??n,c=Fo(l,u);return ir(function Yk(e){return e&&ds(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(Rr())})).pipe(ko())));return P(i).pipe(ko())}(e,o.path,n),function oL(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return P(!0);const o=r.map(i=>Dw(()=>{const s=ls(t)??n,a=Fo(i,s);return ir(function Zk(e){return e&&ds(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(Rr())}));return P(o).pipe(ko())}(e,o.route,n))),Rr(o=>!0!==o,!0))}(r,i,e,t):P(a)),ee(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),ne(s=>{if(r.guardsResult=s.guardsResult,xr(s.guardsResult))throw Yw(0,s.guardsResult);const a=new Dk(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Ln(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),oh(s=>{if(s.guards.canActivateChecks.length)return P(s).pipe(ne(a=>{const l=new Ck(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),gn(a=>{let l=!1;return P(a).pipe(function bL(e,t){return Be(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return P(n);let i=0;return Oe(o).pipe(To(s=>function ML(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!uE(o)&&(i[Ki]=o.title),function SL(e,t,n,r){const o=function IL(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return P({});const i={};return Oe(o).pipe(Be(s=>function TL(e,t,n,r){const o=ls(t)??r,i=Fo(e,o);return ir(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(Rr(),ne(a=>{i[s]=a}))),Hf(1),function B1(e){return ee(()=>e)}(i),De(s=>tE(s)?Xt:Xi(s)))}(i,e,t,r).pipe(ee(s=>(e._resolvedData=s,e.data=Gw(e,n).resolve,o&&uE(o)&&(e.data[Ki]=o.title),null)))}(s.route,r,e,t)),ne(()=>i++),Hf(1),Be(s=>i===o.length?P(n):Xt))})}(n.paramsInheritanceStrategy,this.environmentInjector),ne({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),ne(a=>{const l=new _k(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),oh(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(ne(c=>{l.component=c}),ee(()=>{})));for(const c of l.children)u.push(...a(c));return u};return kf(a(s.targetSnapshot.root)).pipe(ml(),Ro(1))}),oh(()=>this.afterPreactivation()),ee(s=>{const a=function Ok(e,t,n){const r=as(e,t._root,n?n._root:void 0);return new Uw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),ne(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)=>ee(o=>(new $k(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Ro(1),ne({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}}),jf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),De(s=>{if(i=!0,Kw(s)){Xw(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new El(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),Xw(s)){const l=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||dE(r.source)};n.scheduleNavigation(l,os,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new qf(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 Xt}))}))}cancelNavigationTransition(n,r,o){const i=new El(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=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function dE(e){return e!==os}let fE=(()=>{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===W);return r}getResolvedTitleForRoute(n){return n.data[Ki]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return A(NL)},providedIn:"root"}),e})(),NL=(()=>{class e extends fE{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)(T(WC))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),RL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return A(xL)},providedIn:"root"}),e})();class OL{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let xL=(()=>{class e extends OL{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Rl=new N("",{providedIn:"root",factory:()=>({})});let PL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return A(FL)},providedIn:"root"}),e})(),FL=(()=>{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=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Mt=(()=>((Mt=Mt||{})[Mt.COMPLETE=0]="COMPLETE",Mt[Mt.FAILED=1]="FAILED",Mt[Mt.REDIRECTING=2]="REDIRECTING",Mt))();function hE(e,t){e.events.pipe(Ln(n=>n instanceof Pr||n instanceof El||n instanceof qf||n instanceof is),ee(n=>n instanceof Pr||n instanceof is?Mt.COMPLETE:n instanceof El&&(0===n.code||1===n.code)?Mt.REDIRECTING:Mt.FAILED),Ln(n=>n!==Mt.REDIRECTING),Ro(1)).subscribe(()=>{t()})}function kL(e){throw e}function LL(e,t,n){return t.parse("/")}const VL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},HL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ot=(()=>{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=A(CD),this.isNgZoneEnabled=!1,this.options=A(Rl,{optional:!0})||{},this.pendingTasks=A(rC),this.errorHandler=this.options.errorHandler||kL,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||LL,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=A(PL),this.routeReuseStrategy=A(RL),this.titleStrategy=A(fE),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=A(Vo,{optional:!0})?.flat()??[],this.navigationTransitions=A(Nl),this.urlSerializer=A(es),this.location=A(Ld),this.componentInputBindingEnabled=!!A(Ml,{optional:!0}),this.isNgZoneEnabled=A(ge)instanceof ge&&ge.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new xo,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=zw(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),os,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(th),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=Pw(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return Fw(d,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=xr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,os,null,r)}navigate(n,r={skipLocationChange:!1}){return function jL(e){for(let t=0;t<e.length;t++)if(null==e[t])throw new C(4008,!1)}(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let r;try{r=this.urlSerializer.parse(n)}catch(o){r=this.malformedUriErrorHandler(o,this.urlSerializer,n)}return r}isActive(n,r){let o;if(o=!0===r?{...VL}:!1===r?{...HL}:r,xr(n))return Mw(this.currentUrlTree,n,o);const i=this.parseUrl(n);return Mw(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.keys(n).reduce((r,o)=>{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 hE(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=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),fs=(()=>{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 Cn;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=Mo(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=Mo(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=Mo(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 Ug(e,t,n){return function pI(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Bg:Yu}(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)(v(ot),v(Fr),function Us(e){return function LM(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<r;){const i=n[o];if(Wh(i))break;if(0===i)o+=2;else if("number"==typeof i)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(i===t)return n[o+1];o+=2}}}return null}(ze(),e)}("tabindex"),v(An),v(_t),v(Xn))},e.\u0275dir=H({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,r){1&n&&B("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&cn("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[Nt]}),e})(),pE=(()=>{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 we,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Pr&&this.update()})}ngAfterContentInit(){P(this.links.changes,P(null)).pipe(kr()).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=Oe(n).pipe(kr()).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 $L(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)(v(ot),v(_t),v(An),v(Ha),v(fs,8))},e.\u0275dir=H({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&function eD(e,t,n,r){const o=K();if(o.firstCreatePass){const i=ze();nD(o,new Kv(t,n,r),i.index),function mR(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)}tD(o,D(),n)}(o,fs,5),2&n){let i;ki(i=Li())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Nt]}),e})();class gE{}let BL=(()=>{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(Ln(n=>n instanceof Pr),To(()=>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=Kc(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 Oe(o).pipe(kr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):P(null);const i=o.pipe(Be(s=>null===s?P(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Oe([i,this.loader.loadComponent(r)]).pipe(kr()):i})}}return e.\u0275fac=function(n){return new(n||e)(T(ot),T(_D),T(sn),T(gE),T(ih))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sh=new N("");let mE=(()=>{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 Wf?(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 is&&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 $w&&(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 $w(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function Em(){throw new Error("invalid")}()},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();function Hn(e,t){return{\u0275kind:e,\u0275providers:t}}function vE(){const e=A(an);return t=>{const n=e.get(bo);if(t!==n.components[0])return;const r=e.get(ot),o=e.get(DE);1===e.get(ah)&&r.initialNavigation(),e.get(CE,null,k.Optional)?.setUpPreloading(),e.get(sh,null,k.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const DE=new N("",{factory:()=>new Cn}),ah=new N("",{providedIn:"root",factory:()=>1}),CE=new N("");function WL(e){return Hn(0,[{provide:CE,useExisting:BL},{provide:gE,useExisting:e}])}const _E=new N("ROUTER_FORROOT_GUARD"),ZL=[Ld,{provide:es,useClass:$f},ot,ss,{provide:Fr,useFactory:function yE(e){return e.routerState.root},deps:[ot]},ih,[]];function YL(){return new OD("Router",ot)}let wE=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[ZL,[],{provide:Vo,multi:!0,useValue:n},{provide:_E,useFactory:JL,deps:[[ot,new Ws,new qs]]},{provide:Rl,useValue:r||{}},r?.useHash?{provide:Xn,useClass:lC}:{provide:Xn,useClass:aC},{provide:sh,useFactory:()=>{const e=A(Xx),t=A(ge),n=A(Rl),r=A(Nl),o=A(es);return n.scrollOffset&&e.setOffset(n.scrollOffset),new mE(o,r,e,t,n)}},r?.preloadingStrategy?WL(r.preloadingStrategy).\u0275providers:[],{provide:OD,multi:!0,useFactory:YL},r?.initialNavigation?eV(r):[],r?.bindToComponentInputs?Hn(8,[Zw,{provide:Ml,useExisting:Zw}]).\u0275providers:[],[{provide:EE,useFactory:vE},{provide:Sd,multi:!0,useExisting:EE}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Vo,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(T(_E,8))},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({}),e})();function JL(e){return"guarded"}function eV(e){return["disabled"===e.initialNavigation?Hn(3,[{provide:yd,multi:!0,useFactory:()=>{const t=A(ot);return()=>{t.setUpLocationChangeListener()}}},{provide:ah,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Hn(2,[{provide:ah,useValue:0},{provide:yd,multi:!0,deps:[an],useFactory:t=>{const n=t.get(xO,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(ot),i=t.get(DE);hE(o,()=>{r(!0)}),t.get(Nl).afterPreactivation=()=>(r(!0),i.closed?P(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const EE=new N("");class pt{constructor(t,n,r){this.http=t,this.router=n,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none"}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}authenticate(t){this.log(`Authenticating: ${t.username}`),this.credentials=t;const n=new Xe({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(pt.REST_URL,{headers:n}).pipe(ne(r=>this.authorizationRecieved(r)),De(this.handleError("authenticate")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(t){this.authenticated=!0;let n=t.authorities[0].authority;n=n.substring(n.indexOf("_")+1),this.authority=n,this.log(`Authenticated '${t.name}' as '${n}'`),console.log(`Authenticated as ${JSON.stringify(t)}`)}}pt.REST_URL=Ar_restServerUrl+"/api/user",pt.\u0275fac=function(t){return new(t||pt)(T(Tr),T(ot),T(Nr))},pt.\u0275prov=R({token:pt,factory:pt.\u0275fac,providedIn:"root"});const nV=["scrollMe"];function rV(e,t){if(1&e&&(_(0,"li")(1,"div",7)(2,"span",8),M(3),E(),_(4,"span",9),M(5),td(6,"date"),E(),_(7,"span",10),M(8),E()(),_(9,"span",11),M(10),E()()),2&e){const n=t.$implicit;O(3),et(n.id),O(2),et(nd(6,4,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),O(3),et(n.author),O(2),et(n.text)}}function oV(e,t){if(1&e){const n=_r();_(0,"ul",4,5),B("scroll",function(){return zn(n),Gn(dn().onScroll())}),jt(2,rV,11,7,"li",6),E()}if(2&e){const n=dn();O(2),X("ngForOf",n.messages)}}let lh=(()=>{class e{constructor(n,r){this.chatService=n,this.loginService=r,this.disableScrollDown=!1,this.messages=[],this.newMessage=""}getChatMessages(){this.chatService.getChatMessages().subscribe(n=>{this.messages=n,this.disableScrollDown=!1,this.scrollToBottom()})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe(()=>this.getChatMessages()),this.newMessage=""}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)(v(mn),v(pt))},e.\u0275cmp=kt({type:e,selectors:[["app-chat"]],viewQuery:function(n,r){if(1&n&&Fa(nV,5),2&n){let o;ki(o=Li())&&(r.myScrollContainer=o.first)}},decls:7,vars:2,consts:[["class","chat",3,"scroll",4,"ngIf"],[1,"input"],["id","message-text","placeholder","hello",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"chat",3,"scroll"],["scrollMe",""],[4,"ngFor","ngForOf"],[1,"message-title"],[1,"badge"],[1,"date"],[1,"author"],[1,"text"]],template:function(n,r){1&n&&(jt(0,oV,3,1,"ul",0),_(1,"div",1)(2,"input",2),B("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),E(),_(3,"button",3),B("click",function(){return r.sendMessage()}),M(4,"Send"),E(),_(5,"button",3),B("click",function(){return r.getChatMessages()}),M(6,"Reload"),E()()),2&n&&(X("ngIf",r.messages.length),O(2),X("ngModel",r.newMessage))},dependencies:[Kn,Zd,kn,Sr,rr,Xd],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 iV=["scrollMe"];function sV(e,t){if(1&e&&(_(0,"p"),M(1),E()),2&e){const n=t.$implicit;O(1),et(n)}}function aV(e,t){if(1&e){const n=_r();_(0,"div",1)(1,"div")(2,"button",2),B("click",function(){return zn(n),Gn(dn().appMessagesService.clear())}),M(3,"Clear messages"),E(),_(4,"h2"),M(5,"App messages"),E()(),_(6,"div",3,4),B("scroll",function(){return zn(n),Gn(dn().onScroll())}),jt(8,sV,2,1,"p",5),E()()}if(2&e){const n=dn();O(8),X("ngForOf",n.appMessagesService.messages)}}let lV=(()=>{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)(v(Nr))},e.\u0275cmp=kt({type:e,selectors:[["app-messages"]],viewQuery:function(n,r){if(1&n&&Fa(iV,5),2&n){let o;ki(o=Li())&&(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,aV,9,1,"div",0),2&n&&X("ngIf",r.appMessagesService.messages.length)},dependencies:[Kn,Zd],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 bE=function(){return{exact:!0}};let uV=(()=>{class e{constructor(n){this.loginService=n,this.title="Familie TDS",this.chatLoaded=!1,this.chatHidden=!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()}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,this.target.style.top=this.target.offsetTop-this.pos2+"px",this.target.style.left=this.target.offsetLeft-this.pos1+"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,this.target.style.top=this.target.offsetTop-this.pos2+"px",this.target.style.left=this.target.offsetLeft-this.pos1+"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)(v(pt))},e.\u0275cmp=kt({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&Fa(lh,5),2&n){let o;ki(o=Li())&&(r.chatComponent=o.first)}},decls:37,vars:10,consts:[["title","Dark theme on/off",3,"click"],[3,"hidden"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/login"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/todo"],["id","logout",3,"click"],["id","tools",3,"hidden"],["id","toolbar"],[3,"click"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],[1,"close-button",3,"click"],["id","chatcontent"],[1,"footer"]],template:function(n,r){1&n&&(_(0,"nav")(1,"button",0),B("click",function(){return r.toggleTheme()}),M(2,"\u2600"),E(),_(3,"span",1)(4,"h1"),M(5),E(),_(6,"a",2),M(7,"Home"),E(),_(8,"a",3),M(9,"Login"),E()(),_(10,"span",1)(11,"h1"),M(12),E(),_(13,"a",2),M(14,"Home"),E(),_(15,"a",4),M(16,"Checklists"),E(),_(17,"a",5),M(18,"Contacts"),E(),_(19,"a",6),M(20,"Todo"),E(),_(21,"a",7),B("click",function(){return r.logout()}),M(22,"Logout"),E()()(),_(23,"main"),ke(24,"router-outlet"),E(),_(25,"div",8)(26,"div",9)(27,"button",10),B("click",function(){return r.toggleChatHidden()}),M(28,"Open Chat"),E()(),_(29,"div",11)(30,"div",12),B("mousedown",function(i){return r.startMouseDragging(i)})("touchstart",function(i){return r.startTouchDragging(i)}),M(31,"Chat"),_(32,"button",13),B("click",function(){return r.toggleChatHidden()}),M(33,"\u2716"),E()(),_(34,"div",14),ke(35,"app-chat"),E()()(),ke(36,"app-messages",15)),2&n&&(O(3),X("hidden",r.isAuthenticated()),O(2),et(r.title),O(1),X("routerLinkActiveOptions",ed(8,bE)),O(4),X("hidden",!r.isAuthenticated()),O(2),et(r.username()),O(1),X("routerLinkActiveOptions",ed(9,bE)),O(12),X("hidden",!r.isAuthenticated()),O(4),X("hidden",r.isChatHidden()))},dependencies:[Jf,fs,pE,lV,lh],styles:["h1[_ngcontent-%COMP%]{margin:0;float:right;font-size:x-large}nav[_ngcontent-%COMP%]{display:block;background:#93c6f948 linear-gradient(80deg,rgb(132,168,205) 0%,rgb(167,205,243) 30%,rgba(0,0,0,0) 100%);border-bottom:1px solid #336699;padding:.5em}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.2rem .3rem;text-decoration:none;display:inline-block;color:#3d3d3d;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;float:right;margin-right:1em;font-size:large}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#toolbar[_ngcontent-%COMP%]{position:absolute;left:0;top:2.2em}#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 Yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Xe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),P(n))}log(t){this.appMessageService.add(`TodoService: ${t}`)}getTodos(){return this.http.get(Yt.REST_URL,this.httpOptions).pipe(ne(t=>this.log(`fetched ${t.length} todos`)),De(this.handleError("getTodos",[])))}addTodo(t){return this.http.post(Yt.REST_URL,{text:t},this.httpOptions).pipe(ne(r=>this.log(`added todo w/ id=${r.id}`)),De(this.handleError("addTodo")))}deleteTodo(t){return this.http.delete(`${Yt.REST_URL}/${t}`,this.httpOptions).pipe(ne(r=>this.log(`deleted todo id=${t}`)),De(this.handleError("deleteTodo")))}}function cV(e,t){if(1&e){const n=_r();_(0,"li")(1,"div",6)(2,"span",7),M(3),E(),_(4,"span",8),M(5),td(6,"date"),E(),_(7,"button",9),B("click",function(){const i=zn(n).$implicit;return Gn(dn().delete(i))}),M(8,"x"),E()(),_(9,"span",10),M(10),E()()}if(2&e){const n=t.$implicit;O(3),et(n.id),O(2),et(nd(6,3,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),O(5),et(n.text)}}Yt.REST_URL=Ar_restServerUrl+"/api/todos",Yt.\u0275fac=function(t){return new(t||Yt)(T(Tr),T(Nr))},Yt.\u0275prov=R({token:Yt,factory:Yt.\u0275fac,providedIn:"root"});let dV=(()=>{class e{constructor(n){this.todoService=n,this.todos=[],this.newTodo=""}getTodos(){this.todoService.getTodos().subscribe(n=>this.todos=n)}ngOnInit(){this.getTodos()}sendTodo(){this.todoService.addTodo(this.newTodo).subscribe(()=>this.getTodos()),this.newTodo=""}delete(n){this.todoService.deleteTodo(n.id).subscribe(()=>this.todos=this.todos.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)(v(Yt))},e.\u0275cmp=kt({type:e,selectors:[["app-todo"]],decls:13,vars:2,consts:[[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&&(_(0,"h2"),M(1,"Todos"),E(),_(2,"ol",0),jt(3,cV,11,6,"li",1),E(),_(4,"h2"),M(5,"New Todo:"),E(),_(6,"div",2)(7,"div")(8,"label",3),M(9,"Text:"),E(),_(10,"input",4),B("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),E(),_(11,"button",5),B("click",function(){return r.sendTodo()}),M(12,"Send"),E()()()),2&n&&(O(3),X("ngForOf",r.todos),O(7),X("ngModel",r.newTodo))},dependencies:[Kn,kn,Sr,rr,Xd],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 Dn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Xe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),P(n))}log(t){this.appMessageService.add(`NewsService: ${t}`)}getNewsPosts(){return this.http.get(Dn.REST_URL,this.httpOptions).pipe(ne(t=>this.log(`fetched ${t.length} news posts`)),De(this.handleError("getNews",[])))}addNewsPost(t,n){return this.http.post(Dn.REST_URL,{author:t,text:n},this.httpOptions).pipe(ne(o=>this.log(`added message w/ id=${o.id}`)),De(this.handleError("addNewsPost")))}}function fV(e,t){if(1&e&&(_(0,"p"),M(1),E()),2&e){const n=t.$implicit;O(1),et(n.text)}}Dn.REST_URL=Ar_restServerUrl+"/api/news",Dn.\u0275fac=function(t){return new(t||Dn)(T(Tr),T(Nr))},Dn.\u0275prov=R({token:Dn,factory:Dn.\u0275fac,providedIn:"root"});let hV=(()=>{class e{constructor(n,r){this.loginService=n,this.newsService=r,this.messages=[]}getNews(){this.loginService.isAuthenticated()&&this.newsService.getNewsPosts().subscribe(n=>this.messages=n)}ngOnInit(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}}return e.\u0275fac=function(n){return new(n||e)(v(pt),v(Dn))},e.\u0275cmp=kt({type:e,selectors:[["app-home"]],decls:9,vars:4,consts:[[3,"hidden"],[1,"context"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(_(0,"span",0)(1,"p"),M(2),E(),_(3,"h3"),M(4,"News"),E(),_(5,"div",1),jt(6,fV,2,1,"p",2),E()(),_(7,"p",0),M(8,"Welcome to our family site! Please login."),E()),2&n&&(X("hidden",!r.isAuthenticated()),O(2),Et("Welcome, ",r.username(),"!"),O(4),X("ngForOf",r.messages),O(1),X("hidden",r.isAuthenticated()))},dependencies:[Kn],styles:[".context[_ngcontent-%COMP%]{margin-left:1em}"]}),e})(),pV=(()=>{class e{constructor(n,r){this.app=n,this.router=r,this.error=!1,this.rememberme=!1,this.credentials={username:"",password:""}}ngOnInit(){this.credentials.username=localStorage.getItem("username"),this.credentials.password=localStorage.getItem("password"),this.credentials.username&&this.credentials.password&&this.login()}login(){return this.app.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.error=!0}}),!1}}return e.\u0275fac=function(n){return new(n||e)(v(pt),v(ot))},e.\u0275cmp=kt({type:e,selectors:[["app-login"]],decls:19,vars:4,consts:[[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&&(_(0,"h2"),M(1,"Login form"),E(),_(2,"p",0),M(3," There was a problem logging in. Please try again.\n"),E(),_(4,"form",1),B("submit",function(){return r.login()}),_(5,"div",2)(6,"label",3),M(7,"Username:"),E(),_(8,"input",4),B("ngModelChange",function(i){return r.credentials.username=i}),E()(),_(9,"div",2)(10,"label",5),M(11,"Password:"),E(),_(12,"input",6),B("ngModelChange",function(i){return r.credentials.password=i}),E()(),_(13,"div",2)(14,"label",7),M(15,"Remember me:"),E(),_(16,"input",8),B("ngModelChange",function(i){return r.rememberme=i}),E()(),_(17,"button",9),M(18,"Login"),E()()),2&n&&(O(2),X("hidden",!r.error),O(6),X("ngModel",r.credentials.username),O(4),X("ngModel",r.credentials.password),O(4),X("ngModel",r.rememberme))},dependencies:[L_,kn,ff,Sr,E_,rr,fl],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 hs=(e,t)=>{const n=A(pt),r=A(ot);return!!n.isAuthenticated()||r.parseUrl("/login")};class Qt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Xe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),P(n))}log(t){this.appMessageService.add(`TodoService: ${t}`)}getContacts(){return this.http.get(Qt.REST_URL,this.httpOptions).pipe(ne(t=>this.log(`fetched ${t.length} contacts`)),De(this.handleError("getContacts",[])))}addContact(t){return this.http.post(Qt.REST_URL,t,this.httpOptions).pipe(ne(n=>this.log(`added contact w/ id=${n.id}`)),De(this.handleError("addContact")))}deleteContact(t){return this.http.delete(`${Qt.REST_URL}/${t}`,this.httpOptions).pipe(ne(r=>this.log(`deleted contact id=${t}`)),De(this.handleError("deleteContact")))}}function gV(e,t){if(1&e){const n=_r();_(0,"li")(1,"div",18)(2,"span"),M(3),E(),_(4,"button",19),B("click",function(){const i=zn(n).$implicit;return Gn(dn().delete(i))}),M(5,"x"),E()(),_(6,"span",20),M(7),ke(8,"br"),M(9),ke(10,"br"),M(11),ke(12,"br"),M(13),ke(14,"br"),M(15),ke(16,"br"),M(17,"Website: "),_(18,"a",21),M(19),E(),ke(20,"br"),M(21),E()()}if(2&e){const n=t.$implicit;O(3),Uc("",n.firstName," ",n.lastName,""),O(4),Et("Firstname: ",n.firstName," "),O(2),Et("Lastname: ",n.lastName," "),O(2),Et("Telephone: ",n.telephone," "),O(2),Et("E-mail: ",n.email," "),O(2),Et("Address: ",n.address," "),O(3),Sa("href","https://",n.website,"",Yu),O(1),et(n.website),O(2),Et("Description: ",n.description,"")}}Qt.REST_URL=Ar_restServerUrl+"/api/contacts",Qt.\u0275fac=function(t){return new(t||Qt)(T(Tr),T(Nr))},Qt.\u0275prov=R({token:Qt,factory:Qt.\u0275fac,providedIn:"root"});let mV=(()=>{class e{constructor(n){this.contactsService=n,this.contacts=[],this.newContact={}}getContacts(){this.contactsService.getContacts().subscribe(n=>this.contacts=n)}ngOnInit(){this.getContacts()}sendContact(){this.contactsService.addContact(this.newContact).subscribe(()=>this.getContacts()),this.newContact={}}delete(n){this.contactsService.deleteContact(n.id).subscribe(()=>this.contacts=this.contacts.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)(v(Qt))},e.\u0275cmp=kt({type:e,selectors:[["app-contacts"]],decls:38,vars:8,consts:[[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"],["type","button","title","Delete contact",1,"delete",3,"click"],[1,"text"],["target","_blank",3,"href"]],template:function(n,r){1&n&&(_(0,"h2"),M(1,"Contacts"),E(),_(2,"ol",0),jt(3,gV,22,10,"li",1),E(),_(4,"h2"),M(5,"New Contact:"),E(),_(6,"div",2)(7,"div")(8,"label",3),M(9,"Firstname:"),E(),_(10,"input",4),B("ngModelChange",function(i){return r.newContact.firstName=i}),E(),ke(11,"br"),_(12,"label",5),M(13,"Lastname:"),E(),_(14,"input",6),B("ngModelChange",function(i){return r.newContact.lastName=i}),E(),ke(15,"br"),_(16,"label",7),M(17,"Telephone:"),E(),_(18,"input",8),B("ngModelChange",function(i){return r.newContact.telephone=i}),E(),ke(19,"br"),_(20,"label",9),M(21,"Email:"),E(),_(22,"input",10),B("ngModelChange",function(i){return r.newContact.email=i}),E(),ke(23,"br"),_(24,"label",11),M(25,"Website:"),E(),_(26,"input",12),B("ngModelChange",function(i){return r.newContact.website=i}),E(),ke(27,"br"),_(28,"label",13),M(29,"Address:"),E(),_(30,"input",14),B("ngModelChange",function(i){return r.newContact.address=i}),E(),ke(31,"br"),_(32,"label",15),M(33,"Description:"),E(),_(34,"input",16),B("ngModelChange",function(i){return r.newContact.description=i}),E(),ke(35,"br"),_(36,"button",17),B("click",function(){return r.sendContact()}),M(37,"Send"),E()()()),2&n&&(O(3),X("ngForOf",r.contacts),O(7),X("ngModel",r.newContact.firstName),O(4),X("ngModel",r.newContact.lastName),O(4),X("ngModel",r.newContact.telephone),O(4),X("ngModel",r.newContact.email),O(4),X("ngModel",r.newContact.website),O(4),X("ngModel",r.newContact.address),O(4),X("ngModel",r.newContact.description))},dependencies:[Kn,kn,Sr,rr]}),e})();class gt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Xe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),P(n))}log(t){this.appMessageService.add(`ChecklistsService: ${t}`)}getChecklists(){return this.http.get(gt.REST_URL,this.httpOptions).pipe(ne(t=>this.log(`fetched ${t.length} checklists`)),De(this.handleError("getChecklists",[])))}getChecklist(t){return this.http.get(`${gt.REST_URL}/${t}`,this.httpOptions).pipe(ne(n=>this.log(`fetched checklist ${n.id}`)),De(this.handleError("getChecklist",{})))}addChecklist(t){return this.http.post(gt.REST_URL,{name:t},this.httpOptions).pipe(ne(r=>this.log(`added todo w/ id=${r.id}`)),De(this.handleError("addChecklist")))}saveChecklist(t){return this.http.post(gt.REST_URL,t,this.httpOptions).pipe(ne(n=>this.log(`added todo w/ id=${n.id}`)),De(this.handleError("addChecklist")))}deleteChecklist(t){return this.http.delete(`${gt.REST_URL}/${t}`,this.httpOptions).pipe(ne(r=>this.log(`deleted checklist id=${t}`)),De(this.handleError("deleteChecklist")))}}function yV(e,t){if(1&e&&(_(0,"li"),M(1),E()),2&e){const n=t.$implicit;O(1),Et(" ",n," ")}}gt.REST_URL=Ar_restServerUrl+"/api/checklists",gt.\u0275fac=function(t){return new(t||gt)(T(Tr),T(Nr))},gt.\u0275prov=R({token:gt,factory:gt.\u0275fac,providedIn:"root"});const vV=function(e){return["/checklist",e]};function DV(e,t){if(1&e){const n=_r();_(0,"li")(1,"span",6)(2,"a",7),M(3),E(),_(4,"button",8),B("click",function(){const i=zn(n).$implicit;return Gn(dn().delete(i))}),M(5,"x"),E(),_(6,"ul",9),jt(7,yV,2,1,"li",1),E()()()}if(2&e){const n=t.$implicit;O(2),X("routerLink",Vv(3,vV,n.id)),O(1),et(n.name),O(4),X("ngForOf",n.checks)}}function _V(e,t){if(1&e){const n=_r();_(0,"li"),M(1),_(2,"button",5),B("click",function(){const i=zn(n).index;return Gn(dn().removeItem(i))}),M(3,"x"),E()()}if(2&e){const n=t.$implicit;O(1),Et("",n," ")}}const wV=[{path:"",component:hV,pathMatch:"full"},{path:"login",component:pV},{path:"chat",component:lh,canActivate:[hs]},{path:"todo",component:dV,canActivate:[hs]},{path:"contacts",component:mV,canActivate:[hs]},{path:"checklists",component:(()=>{class e{constructor(n){this.checklistsService=n,this.checklists=[],this.newChecklist=""}getChecklists(){this.checklistsService.getChecklists().subscribe(n=>this.checklists=n)}ngOnInit(){this.getChecklists()}sendChecklist(){this.checklistsService.addChecklist(this.newChecklist).subscribe(()=>this.getChecklists()),this.newChecklist=""}delete(n){this.checklistsService.deleteChecklist(n.id).subscribe(()=>this.checklists=this.checklists.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)(v(gt))},e.\u0275cmp=kt({type:e,selectors:[["app-checklists"]],decls:13,vars:2,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","name",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"text"],[3,"routerLink"],["type","button","title","Delete checklist",1,"delete",3,"click"],[1,"item-list"]],template:function(n,r){1&n&&(_(0,"h2"),M(1,"Checklists"),E(),_(2,"ol",0),jt(3,DV,8,5,"li",1),E(),_(4,"h2"),M(5,"New Checklist:"),E(),_(6,"div",2)(7,"div")(8,"label",3),M(9,"name:"),E(),_(10,"input",4),B("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),E(),_(11,"button",5),B("click",function(){return r.sendChecklist()}),M(12,"Send"),E()()()),2&n&&(O(3),X("ngForOf",r.checklists),O(7),X("ngModel",r.newChecklist))},dependencies:[Kn,kn,Sr,rr,fs]}),e})(),canActivate:[hs]},{path:"checklist/:id",component:(()=>{class e{constructor(n){this.checklistsService=n,this.route=A(Fr),this.checklistId=-1,this.checklist={},this.newItem="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.checklistsService.getChecklist(this.checklistId).subscribe(n=>this.checklist=n)}ngOnInit(){this.getChecklist()}addItem(){this.checklist.checks.push(this.newItem),this.newItem="",this.saveCheckList()}removeItem(n){this.checklist.checks[n]&&(this.checklist.checks.splice(n,1),this.saveCheckList())}saveCheckList(){this.checklistsService.saveChecklist(this.checklist).subscribe()}}return e.\u0275fac=function(n){return new(n||e)(v(gt))},e.\u0275cmp=kt({type:e,selectors:[["app-edit-checklist"]],decls:13,vars:3,consts:[[4,"ngFor","ngForOf"],[1,"input"],["for","input-item"],["id","input-item","placeholder","item",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(n,r){1&n&&(_(0,"h2"),M(1),E(),_(2,"ol"),jt(3,_V,4,1,"li",0),E(),_(4,"h2"),M(5,"add item:"),E(),_(6,"div",1)(7,"div")(8,"label",2),M(9,"item description:"),E(),_(10,"input",3),B("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),E(),_(11,"button",4),B("click",function(){return r.addItem()}),M(12,"Send"),E()()()),2&n&&(O(1),Et("Editing checklist: ",r.checklist.name,""),O(2),X("ngForOf",r.checklist.checks),O(7),X("ngModel",r.newItem))},dependencies:[Kn,kn,Sr,rr]}),e})(),canActivate:[hs]}];let EV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({imports:[wE.forRoot(wV),wE]}),e})(),bV=(()=>{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)(T(pt))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})(),MV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e,bootstrap:[uV]}),e.\u0275inj=At({providers:[{provide:uw,useClass:bV,multi:!0},{provide:Xn,useClass:lC}],imports:[ZP,o1,T1,EV]}),e})();WP().bootstrapModule(MV).catch(e=>console.error(e))}},le=>{le(le.s=830)}]);