From 6eaaf30177641d99c812be142f01b7cfeb625c92 Mon Sep 17 00:00:00 2001 From: kasaharu Date: Sat, 12 Aug 2023 04:12:44 +0000 Subject: [PATCH] Auto-generated commit [ci skip] Triggered by commit: https://github.com/kasaharu/angular-architecture/commit/73b5167aca46ebc2e3fde2cc3d358a621293d568 --- 404.html | 2 +- 625.56a9504825aa5f7b.js | 1 + 625.89ff3cccb4f94035.js | 1 - index.html | 2 +- main.b1623ec0b91b8660.js | 1 + main.db697040979b26fe.js | 1 - runtime.80849748c7e5ed39.js | 1 + runtime.9810a39b3e40fea8.js | 1 - 8 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 625.56a9504825aa5f7b.js delete mode 100644 625.89ff3cccb4f94035.js create mode 100644 main.b1623ec0b91b8660.js delete mode 100644 main.db697040979b26fe.js create mode 100644 runtime.80849748c7e5ed39.js delete mode 100644 runtime.9810a39b3e40fea8.js diff --git a/404.html b/404.html index f8e761aa..c1380e60 100644 --- a/404.html +++ b/404.html @@ -9,5 +9,5 @@ - + diff --git a/625.56a9504825aa5f7b.js b/625.56a9504825aa5f7b.js new file mode 100644 index 00000000..982807a5 --- /dev/null +++ b/625.56a9504825aa5f7b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkangular_architecture=self.webpackChunkangular_architecture||[]).push([[625],{722:(x,b,i)=>{i.d(b,{E:()=>o});var S=i(9862),m=i(9397),v=i(6306),I=i(2096),h=i(2029),f=i(3354);let o=(()=>{class l{constructor(a,p){this._http=a,this._messageService=p,this._heroesUrl="api/heroes",this.httpOptions={headers:new S.WM({"Content-Type":"application/json"})}}getHeroes(){return this._http.get(this._heroesUrl).pipe((0,m.b)(a=>this.log("fetched heroes")),(0,v.K)(this.handleError("getHeroes")))}getHero(a){return this._http.get(`${this._heroesUrl}/${a}`).pipe((0,m.b)(C=>this.log(`fetched hero id=${a}`)),(0,v.K)(this.handleError(`getHero id=${a}`)))}updateHero(a){return this._http.put(this._heroesUrl,a,this.httpOptions).pipe((0,m.b)(p=>this.log(`updated hero id=${a.id}`)),(0,v.K)(this.handleError("updateHero")))}addHero(a){return this._http.post(this._heroesUrl,a,this.httpOptions).pipe((0,m.b)(p=>this.log(`added hero w/ id=${p.id}`)),(0,v.K)(this.handleError("addHero")))}deleteHero(a){return this._http.delete(`${this._heroesUrl}/${a}`,this.httpOptions).pipe((0,m.b)(C=>this.log(`deleted hero id=${a}`)),(0,v.K)(this.handleError("deleteHero")))}searchHeroes(a){return a.trim()?this._http.get(`${this._heroesUrl}/?name=${a}`).pipe((0,m.b)(p=>this.log(`found heroes matching "${a}"`)),(0,v.K)(this.handleError("searchHeroes"))):(0,I.of)([])}log(a){this._messageService.add(`HeroService: ${a}`)}handleError(a){return p=>{throw console.error(p),new Error(`${a} failed: server returned code ${p.status} with body "${p.error}"`)}}}return l.\u0275fac=function(a){return new(a||l)(h.LFG(S.eN),h.LFG(f.e))},l.\u0275prov=h.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},4036:(x,b,i)=>{i.d(b,{z:()=>v});var S=i(6973),m=i(305);function v(I,h){const f="object"==typeof h;return new Promise((o,l)=>{const c=new m.Hp({next:a=>{o(a),c.unsubscribe()},error:l,complete:()=>{f?o(h.defaultValue):l(new S.K)}});I.subscribe(c)})}},1954:(x,b,i)=>{i.d(b,{o:()=>h});var S=i(7394);class m extends S.w0{constructor(o,l){super()}schedule(o,l=0){return this}}const v={setInterval(f,o,...l){const{delegate:c}=v;return c?.setInterval?c.setInterval(f,o,...l):setInterval(f,o,...l)},clearInterval(f){const{delegate:o}=v;return(o?.clearInterval||clearInterval)(f)},delegate:void 0};var I=i(9039);class h extends m{constructor(o,l){super(o,l),this.scheduler=o,this.work=l,this.pending=!1}schedule(o,l=0){var c;if(this.closed)return this;this.state=o;const a=this.id,p=this.scheduler;return null!=a&&(this.id=this.recycleAsyncId(p,a,l)),this.pending=!0,this.delay=l,this.id=null!==(c=this.id)&&void 0!==c?c:this.requestAsyncId(p,this.id,l),this}requestAsyncId(o,l,c=0){return v.setInterval(o.flush.bind(o,this),c)}recycleAsyncId(o,l,c=0){if(null!=c&&this.delay===c&&!1===this.pending)return l;null!=l&&v.clearInterval(l)}execute(o,l){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const c=this._execute(o,l);if(c)return c;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(o,l){let a,c=!1;try{this.work(o)}catch(p){c=!0,a=p||new Error("Scheduled action threw falsy error")}if(c)return this.unsubscribe(),a}unsubscribe(){if(!this.closed){const{id:o,scheduler:l}=this,{actions:c}=l;this.work=this.state=this.scheduler=null,this.pending=!1,(0,I.P)(c,this),null!=o&&(this.id=this.recycleAsyncId(l,o,null)),this.delay=null,super.unsubscribe()}}}},2631:(x,b,i)=>{i.d(b,{v:()=>v});var S=i(4552);class m{constructor(h,f=m.now){this.schedulerActionCtor=h,this.now=f}schedule(h,f=0,o){return new this.schedulerActionCtor(this,h).schedule(o,f)}}m.now=S.l.now;class v extends m{constructor(h,f=m.now){super(h,f),this.actions=[],this._active=!1}flush(h){const{actions:f}=this;if(this._active)return void f.push(h);let o;this._active=!0;do{if(o=h.execute(h.state,h.delay))break}while(h=f.shift());if(this._active=!1,o){for(;h=f.shift();)h.unsubscribe();throw o}}}},4552:(x,b,i)=>{i.d(b,{l:()=>S});const S={now:()=>(S.delegate||Date).now(),delegate:void 0}},9671:(x,b,i)=>{function S(v,I,h,f,o,l,c){try{var a=v[l](c),p=a.value}catch(C){return void h(C)}a.done?I(p):Promise.resolve(p).then(f,o)}function m(v){return function(){var I=this,h=arguments;return new Promise(function(f,o){var l=v.apply(I,h);function c(p){S(l,f,o,c,a,"next",p)}function a(p){S(l,f,o,c,a,"throw",p)}c(void 0)})}}i.d(b,{Z:()=>m})},9381:(x,b,i)=>{i.d(b,{m1:()=>Ve});var S=i(5592),m=i(7394),v=i(1954);let h,I=1;const f={};function o(r){return r in f&&(delete f[r],!0)}const l={setImmediate(r){const e=I++;return f[e]=!0,h||(h=Promise.resolve()),h.then(()=>o(e)&&r()),e},clearImmediate(r){o(r)}},{setImmediate:a,clearImmediate:p}=l,C={setImmediate(...r){const{delegate:e}=C;return(e?.setImmediate||a)(...r)},clearImmediate(r){const{delegate:e}=C;return(e?.clearImmediate||p)(r)},delegate:void 0};var W=i(2631);const L=new class oe extends W.v{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let s;e=e||n.shift();do{if(s=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,s){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw s}}}(class ie extends v.o{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e._scheduled||(e._scheduled=C.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,n=0){var s;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(e,t,n);const{actions:u}=e;null!=t&&(null===(s=u[u.length-1])||void 0===s?void 0:s.id)!==t&&(C.clearImmediate(t),e._scheduled=void 0)}});var K=i(8645),ue=i(4552);class O extends K.x{constructor(e=1/0,t=1/0,n=ue.l){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{isStopped:t,_buffer:n,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:d}=this;t||(n.push(e),!s&&n.push(u.now()+d)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:s}=this,u=s.slice();for(let d=0;d0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!=n&&n>0||null==n&&this.delay>0?super.requestAsyncId(e,t,n):(e.flush(this),0)}});var ce=i(6232),de=i(8504),he=i(5154),fe=i(2572),B=i(9360),T=i(8251),Q=i(4829),X=i(2420);function M(r){return(0,B.e)((e,t)=>{(0,Q.Xf)(r).subscribe((0,T.x)(t,()=>t.complete(),X.Z)),!t.closed&&e.subscribe(t)})}var pe=i(3093),Y=i(9397),ve=i(2737),ge=i(4564),Z=i(7398),ye=i(6306),Se=i(8180),be=i(3997),Ie=i(3020),w=i(2029);class Ae extends Error{constructor(e,t){super(function xe(r,e){return`NG0${Math.abs(r)}${e?": "+e:""}`}(e,t)),this.code=e}}function re(r,e){const t=!e?.manualCleanup;t&&!e?.injector&&(0,w.gHi)(re);const n=t?e?.injector?.get(w.ktI)??(0,w.f3M)(w.ktI):null;let s;s=(0,w.tdS)(e?.requireSync?{kind:0}:{kind:1,value:e?.initialValue});const u=r.subscribe({next:d=>s.set({kind:1,value:d}),error:d=>s.set({kind:2,error:d})});return n?.onDestroy(u.unsubscribe.bind(u)),(0,w.Flj)(()=>{const d=s();switch(d.kind){case 1:return d.value;case 2:throw d.error;case 0:throw new Ae(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}})}function F(r){return"function"==typeof r.ngrxOnStoreInit}function k(r){return"function"==typeof r.ngrxOnStateInit}globalThis;const je=new w.OlP("@ngrx/component-store Initial State");let Ve=(()=>{class r{constructor(t){this.destroySubject$=new O(1),this.destroy$=this.destroySubject$.asObservable(),this.stateSubject$=new O(1),this.isInitialized=!1,this.state$=this.select(n=>n),this.state=re(this.stateSubject$.pipe(M(this.destroy$)),{requireSync:!1,manualCleanup:!0}),this.\u0275hasProvider=!1,t&&this.initState(t),this.checkProviderForHooks()}ngOnDestroy(){this.stateSubject$.complete(),this.destroySubject$.next()}updater(t){return n=>{let u,s=!0;const y=((0,z.b)(n)?n:(0,_.of)(n)).pipe((0,pe.Q)(G),(0,Y.b)(()=>this.assertStateIsInitialized()),function me(...r){const e=(0,ge.jO)(r);return(0,B.e)((t,n)=>{const s=r.length,u=new Array(s);let d=r.map(()=>!1),y=!1;for(let g=0;g{u[g]=A,!y&&!d[g]&&(d[g]=!0,(y=d.every(ve.y))&&(d=null))},X.Z));t.subscribe((0,T.x)(n,g=>{if(y){const A=[g,...u];n.next(e?e(...A):A)}}))})}(this.stateSubject$),(0,Z.U)(([g,A])=>t(A,g)),(0,Y.b)(g=>this.stateSubject$.next(g)),(0,ye.K)(g=>s?(u=g,ce.E):(0,de._)(g)),M(this.destroy$)).subscribe();if(u)throw u;return s=!1,y}}initState(t){(0,he.x)([t],G).subscribe(n=>{this.isInitialized=!0,this.stateSubject$.next(n)})}setState(t){"function"!=typeof t?this.initState(t):this.updater(t)()}patchState(t){const n="function"==typeof t?t(this.get()):t;this.updater((s,u)=>({...s,...u}))(n)}get(t){let n;return this.assertStateIsInitialized(),this.stateSubject$.pipe((0,Se.q)(1)).subscribe(s=>{n=t?t(s):s}),n}select(...t){const{observablesOrSelectorsObject:n,projector:s,config:u}=function Ue(r){const e=Array.from(r);let n={debounce:!1,equal:(d,y)=>d===y};if(function He(r){return typeof r.debounce<"u"||typeof r.equal<"u"}(e[e.length-1])&&(n={...n,...e.pop()}),1===e.length&&"function"!=typeof e[0])return{observablesOrSelectorsObject:e[0],projector:void 0,config:n};const s=e.pop();return{observablesOrSelectorsObject:e,projector:s,config:n}}(t);return(function Fe(r,e){return Array.isArray(r)&&0===r.length&&e}(n,s)?this.stateSubject$:(0,fe.a)(n)).pipe(u.debounce?function Te(){return r=>new S.y(e=>{let t,n;const s=new m.w0;return s.add(r.subscribe({complete:()=>{t&&e.next(n),e.complete()},error:u=>{e.error(u)},next:u=>{n=u,t||(t=L.schedule(()=>{e.next(n),t=void 0}),s.add(t))}})),s})}():r=>r,s?(0,Z.U)(y=>n.length>0&&Array.isArray(y)?s(...y):s(y)):r=>r,(0,be.x)(u.equal),function we(r,e,t){let n,s=!1;return r&&"object"==typeof r?({bufferSize:n=1/0,windowTime:e=1/0,refCount:s=!1,scheduler:t}=r):n=r??1/0,(0,Ie.B)({connector:()=>new O(n,e,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}({refCount:!0,bufferSize:1}),M(this.destroy$))}selectSignal(...t){const n=[...t],s=(A,N)=>A===N,u="object"==typeof n[t.length-1]?{equal:n.pop().equal||s}:{equal:s},d=n.pop(),y=n;return(0,w.Flj)(0===y.length?()=>d(this.state()):()=>{const A=y.map(N=>N());return d(...A)},u)}effect(t){const n=new K.x;return t(n).pipe(M(this.destroy$)).subscribe(),s=>((0,z.b)(s)?s:(0,_.of)(s)).pipe(M(this.destroy$)).subscribe(d=>{n.next(d)})}checkProviderForHooks(){L.schedule(()=>{if((0,w.X6Q)()&&(F(this)||k(this))&&!this.\u0275hasProvider){const t=[F(this)?"OnStoreInit":"",k(this)?"OnStateInit":""].filter(n=>n);console.warn(`@ngrx/component-store: ${this.constructor.name} has the ${t.join(" and ")} lifecycle hook(s) implemented without being provided using the provideComponentStore(${this.constructor.name}) function. To resolve this, provide the component store via provideComponentStore(${this.constructor.name})`)}})}assertStateIsInitialized(){if(!this.isInitialized)throw new Error(`${this.constructor.name} has not been initialized yet. Please make sure it is initialized before updating/getting.`)}}return r.\u0275fac=function(t){return new(t||r)(w.LFG(je,8))},r.\u0275prov=w.Yz7({token:r,factory:r.\u0275fac}),r})()}}]); \ No newline at end of file diff --git a/625.89ff3cccb4f94035.js b/625.89ff3cccb4f94035.js deleted file mode 100644 index 9821f330..00000000 --- a/625.89ff3cccb4f94035.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkangular_architecture=self.webpackChunkangular_architecture||[]).push([[625],{722:(x,b,i)=>{i.d(b,{E:()=>o});var S=i(9862),m=i(9397),v=i(6306),I=i(2096),h=i(2029),f=i(3354);let o=(()=>{class a{constructor(l,p){this._http=l,this._messageService=p,this._heroesUrl="api/heroes",this.httpOptions={headers:new S.WM({"Content-Type":"application/json"})}}getHeroes(){return this._http.get(this._heroesUrl).pipe((0,m.b)(l=>this.log("fetched heroes")),(0,v.K)(this.handleError("getHeroes")))}getHero(l){return this._http.get(`${this._heroesUrl}/${l}`).pipe((0,m.b)(C=>this.log(`fetched hero id=${l}`)),(0,v.K)(this.handleError(`getHero id=${l}`)))}updateHero(l){return this._http.put(this._heroesUrl,l,this.httpOptions).pipe((0,m.b)(p=>this.log(`updated hero id=${l.id}`)),(0,v.K)(this.handleError("updateHero")))}addHero(l){return this._http.post(this._heroesUrl,l,this.httpOptions).pipe((0,m.b)(p=>this.log(`added hero w/ id=${p.id}`)),(0,v.K)(this.handleError("addHero")))}deleteHero(l){return this._http.delete(`${this._heroesUrl}/${l}`,this.httpOptions).pipe((0,m.b)(C=>this.log(`deleted hero id=${l}`)),(0,v.K)(this.handleError("deleteHero")))}searchHeroes(l){return l.trim()?this._http.get(`${this._heroesUrl}/?name=${l}`).pipe((0,m.b)(p=>this.log(`found heroes matching "${l}"`)),(0,v.K)(this.handleError("searchHeroes"))):(0,I.of)([])}log(l){this._messageService.add(`HeroService: ${l}`)}handleError(l){return p=>{throw console.error(p),new Error(`${l} failed: server returned code ${p.status} with body "${p.error}"`)}}}return a.\u0275fac=function(l){return new(l||a)(h.LFG(S.eN),h.LFG(f.e))},a.\u0275prov=h.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})()},4036:(x,b,i)=>{i.d(b,{z:()=>v});var S=i(6973),m=i(305);function v(I,h){const f="object"==typeof h;return new Promise((o,a)=>{const c=new m.Hp({next:l=>{o(l),c.unsubscribe()},error:a,complete:()=>{f?o(h.defaultValue):a(new S.K)}});I.subscribe(c)})}},1954:(x,b,i)=>{i.d(b,{o:()=>h});var S=i(7394);class m extends S.w0{constructor(o,a){super()}schedule(o,a=0){return this}}const v={setInterval(f,o,...a){const{delegate:c}=v;return c?.setInterval?c.setInterval(f,o,...a):setInterval(f,o,...a)},clearInterval(f){const{delegate:o}=v;return(o?.clearInterval||clearInterval)(f)},delegate:void 0};var I=i(9039);class h extends m{constructor(o,a){super(o,a),this.scheduler=o,this.work=a,this.pending=!1}schedule(o,a=0){var c;if(this.closed)return this;this.state=o;const l=this.id,p=this.scheduler;return null!=l&&(this.id=this.recycleAsyncId(p,l,a)),this.pending=!0,this.delay=a,this.id=null!==(c=this.id)&&void 0!==c?c:this.requestAsyncId(p,this.id,a),this}requestAsyncId(o,a,c=0){return v.setInterval(o.flush.bind(o,this),c)}recycleAsyncId(o,a,c=0){if(null!=c&&this.delay===c&&!1===this.pending)return a;null!=a&&v.clearInterval(a)}execute(o,a){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const c=this._execute(o,a);if(c)return c;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(o,a){let l,c=!1;try{this.work(o)}catch(p){c=!0,l=p||new Error("Scheduled action threw falsy error")}if(c)return this.unsubscribe(),l}unsubscribe(){if(!this.closed){const{id:o,scheduler:a}=this,{actions:c}=a;this.work=this.state=this.scheduler=null,this.pending=!1,(0,I.P)(c,this),null!=o&&(this.id=this.recycleAsyncId(a,o,null)),this.delay=null,super.unsubscribe()}}}},2631:(x,b,i)=>{i.d(b,{v:()=>v});var S=i(4552);class m{constructor(h,f=m.now){this.schedulerActionCtor=h,this.now=f}schedule(h,f=0,o){return new this.schedulerActionCtor(this,h).schedule(o,f)}}m.now=S.l.now;class v extends m{constructor(h,f=m.now){super(h,f),this.actions=[],this._active=!1}flush(h){const{actions:f}=this;if(this._active)return void f.push(h);let o;this._active=!0;do{if(o=h.execute(h.state,h.delay))break}while(h=f.shift());if(this._active=!1,o){for(;h=f.shift();)h.unsubscribe();throw o}}}},4552:(x,b,i)=>{i.d(b,{l:()=>S});const S={now:()=>(S.delegate||Date).now(),delegate:void 0}},9671:(x,b,i)=>{function S(v,I,h,f,o,a,c){try{var l=v[a](c),p=l.value}catch(C){return void h(C)}l.done?I(p):Promise.resolve(p).then(f,o)}function m(v){return function(){var I=this,h=arguments;return new Promise(function(f,o){var a=v.apply(I,h);function c(p){S(a,f,o,c,l,"next",p)}function l(p){S(a,f,o,c,l,"throw",p)}c(void 0)})}}i.d(b,{Z:()=>m})},9381:(x,b,i)=>{i.d(b,{m1:()=>Ve});var S=i(5592),m=i(7394),v=i(1954);let h,I=1;const f={};function o(r){return r in f&&(delete f[r],!0)}const a={setImmediate(r){const e=I++;return f[e]=!0,h||(h=Promise.resolve()),h.then(()=>o(e)&&r()),e},clearImmediate(r){o(r)}},{setImmediate:l,clearImmediate:p}=a,C={setImmediate(...r){const{delegate:e}=C;return(e?.setImmediate||l)(...r)},clearImmediate(r){const{delegate:e}=C;return(e?.clearImmediate||p)(r)},delegate:void 0};var N=i(2631);const L=new class oe extends N.v{flush(e){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let s;e=e||n.shift();do{if(s=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,s){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw s}}}(class ie extends v.o{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e._scheduled||(e._scheduled=C.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,t,n=0){var s;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(e,t,n);const{actions:u}=e;null!=t&&(null===(s=u[u.length-1])||void 0===s?void 0:s.id)!==t&&(C.clearImmediate(t),e._scheduled=void 0)}});var K=i(8645),ue=i(4552);class O extends K.x{constructor(e=1/0,t=1/0,n=ue.l){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){const{isStopped:t,_buffer:n,_infiniteTimeWindow:s,_timestampProvider:u,_windowTime:d}=this;t||(n.push(e),!s&&n.push(u.now()+d)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:s}=this,u=s.slice();for(let d=0;d0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!=n&&n>0||null==n&&this.delay>0?super.requestAsyncId(e,t,n):(e.flush(this),0)}});var ce=i(6232),de=i(8504),he=i(5154),fe=i(2572),B=i(9360),T=i(8251),Q=i(4829),X=i(2420);function M(r){return(0,B.e)((e,t)=>{(0,Q.Xf)(r).subscribe((0,T.x)(t,()=>t.complete(),X.Z)),!t.closed&&e.subscribe(t)})}var pe=i(3093),Y=i(9397),ve=i(2737),ge=i(4564),Z=i(7398),ye=i(6306),Se=i(8180),be=i(3997),Ie=i(3020),w=i(2029);class Ae extends Error{constructor(e,t){super(function xe(r,e){return`NG0${Math.abs(r)}${e?": "+e:""}`}(e,t)),this.code=e}}function re(r,e){const t=!e?.manualCleanup;t&&!e?.injector&&(0,w.gHi)(re);const n=t?e?.injector?.get(w.ktI)??(0,w.f3M)(w.ktI):null;let s;s=(0,w.tdS)(e?.requireSync?{kind:0}:{kind:1,value:e?.initialValue});const u=r.subscribe({next:d=>s.set({kind:1,value:d}),error:d=>s.set({kind:2,error:d})});return n?.onDestroy(u.unsubscribe.bind(u)),(0,w.Flj)(()=>{const d=s();switch(d.kind){case 1:return d.value;case 2:throw d.error;case 0:throw new Ae(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}})}function k(r){return"function"==typeof r.ngrxOnStoreInit}function F(r){return"function"==typeof r.ngrxOnStateInit}const je=new w.OlP("@ngrx/component-store Initial State");let Ve=(()=>{class r{constructor(t){this.destroySubject$=new O(1),this.destroy$=this.destroySubject$.asObservable(),this.stateSubject$=new O(1),this.isInitialized=!1,this.state$=this.select(n=>n),this.state=re(this.stateSubject$.pipe(M(this.destroy$)),{requireSync:!1,manualCleanup:!0}),this.\u0275hasProvider=!1,t&&this.initState(t),this.checkProviderForHooks()}ngOnDestroy(){this.stateSubject$.complete(),this.destroySubject$.next()}updater(t){return n=>{let u,s=!0;const y=((0,z.b)(n)?n:(0,G.of)(n)).pipe((0,pe.Q)(_),(0,Y.b)(()=>this.assertStateIsInitialized()),function me(...r){const e=(0,ge.jO)(r);return(0,B.e)((t,n)=>{const s=r.length,u=new Array(s);let d=r.map(()=>!1),y=!1;for(let g=0;g{u[g]=A,!y&&!d[g]&&(d[g]=!0,(y=d.every(ve.y))&&(d=null))},X.Z));t.subscribe((0,T.x)(n,g=>{if(y){const A=[g,...u];n.next(e?e(...A):A)}}))})}(this.stateSubject$),(0,Z.U)(([g,A])=>t(A,g)),(0,Y.b)(g=>this.stateSubject$.next(g)),(0,ye.K)(g=>s?(u=g,ce.E):(0,de._)(g)),M(this.destroy$)).subscribe();if(u)throw u;return s=!1,y}}initState(t){(0,he.x)([t],_).subscribe(n=>{this.isInitialized=!0,this.stateSubject$.next(n)})}setState(t){"function"!=typeof t?this.initState(t):this.updater(t)()}patchState(t){const n="function"==typeof t?t(this.get()):t;this.updater((s,u)=>({...s,...u}))(n)}get(t){let n;return this.assertStateIsInitialized(),this.stateSubject$.pipe((0,Se.q)(1)).subscribe(s=>{n=t?t(s):s}),n}select(...t){const{observablesOrSelectorsObject:n,projector:s,config:u}=function Ue(r){const e=Array.from(r);let n={debounce:!1,equal:(d,y)=>d===y};if(function He(r){return typeof r.debounce<"u"||typeof r.equal<"u"}(e[e.length-1])&&(n={...n,...e.pop()}),1===e.length&&"function"!=typeof e[0])return{observablesOrSelectorsObject:e[0],projector:void 0,config:n};const s=e.pop();return{observablesOrSelectorsObject:e,projector:s,config:n}}(t);return(function ke(r,e){return Array.isArray(r)&&0===r.length&&e}(n,s)?this.stateSubject$:(0,fe.a)(n)).pipe(u.debounce?function Te(){return r=>new S.y(e=>{let t,n;const s=new m.w0;return s.add(r.subscribe({complete:()=>{t&&e.next(n),e.complete()},error:u=>{e.error(u)},next:u=>{n=u,t||(t=L.schedule(()=>{e.next(n),t=void 0}),s.add(t))}})),s})}():r=>r,s?(0,Z.U)(y=>n.length>0&&Array.isArray(y)?s(...y):s(y)):r=>r,(0,be.x)(u.equal),function we(r,e,t){let n,s=!1;return r&&"object"==typeof r?({bufferSize:n=1/0,windowTime:e=1/0,refCount:s=!1,scheduler:t}=r):n=r??1/0,(0,Ie.B)({connector:()=>new O(n,e,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}({refCount:!0,bufferSize:1}),M(this.destroy$))}selectSignal(...t){const n=[...t],s=(A,W)=>A===W,u="object"==typeof n[t.length-1]?{equal:n.pop().equal||s}:{equal:s},d=n.pop(),y=n;return(0,w.Flj)(0===y.length?()=>d(this.state()):()=>{const A=y.map(W=>W());return d(...A)},u)}effect(t){const n=new K.x;return t(n).pipe(M(this.destroy$)).subscribe(),s=>((0,z.b)(s)?s:(0,G.of)(s)).pipe(M(this.destroy$)).subscribe(d=>{n.next(d)})}checkProviderForHooks(){L.schedule(()=>{if((0,w.X6Q)()&&(k(this)||F(this))&&!this.\u0275hasProvider){const t=[k(this)?"OnStoreInit":"",F(this)?"OnStateInit":""].filter(n=>n);console.warn(`@ngrx/component-store: ${this.constructor.name} has the ${t.join(" and ")} lifecycle hook(s) implemented without being provided using the provideComponentStore(${this.constructor.name}) function. To resolve this, provide the component store via provideComponentStore(${this.constructor.name})`)}})}assertStateIsInitialized(){if(!this.isInitialized)throw new Error(`${this.constructor.name} has not been initialized yet. Please make sure it is initialized before updating/getting.`)}}return r.\u0275fac=function(t){return new(t||r)(w.LFG(je,8))},r.\u0275prov=w.Yz7({token:r,factory:r.\u0275fac}),r})()}}]); \ No newline at end of file diff --git a/index.html b/index.html index f8e761aa..c1380e60 100644 --- a/index.html +++ b/index.html @@ -9,5 +9,5 @@ - + diff --git a/main.b1623ec0b91b8660.js b/main.b1623ec0b91b8660.js new file mode 100644 index 00000000..5d6d2570 --- /dev/null +++ b/main.b1623ec0b91b8660.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkangular_architecture=self.webpackChunkangular_architecture||[]).push([[179],{3354:(Pe,Z,C)=>{C.d(Z,{e:()=>T});var g=C(2029);let T=(()=>{class V{constructor(){this.messages=[]}add(j){this.messages.push(j)}clear(){this.messages=[]}}return V.\u0275fac=function(j){return new(j||V)},V.\u0275prov=g.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})()},9:(Pe,Z,C)=>{var g=C(9862),T=C(2029),V=C(6593),N=C(9085),j=C(5592),oe=C(5619),J=C(2664),de=C(2096),ue=C(1374),ee=C(6328),G=C(7398),te=C(6814);const he={100:{code:100,text:"Continue",description:'"The initial part of a request has been received and has not yet been rejected by the server."',spec_title:"RFC7231#6.2.1",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.2.1"},101:{code:101,text:"Switching Protocols",description:'"The server understands and is willing to comply with the client\'s request, via the Upgrade header field, for a change in the application protocol being used on this connection."',spec_title:"RFC7231#6.2.2",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.2.2"},200:{code:200,text:"OK",description:'"The request has succeeded."',spec_title:"RFC7231#6.3.1",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.1"},201:{code:201,text:"Created",description:'"The request has been fulfilled and has resulted in one or more new resources being created."',spec_title:"RFC7231#6.3.2",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.2"},202:{code:202,text:"Accepted",description:'"The request has been accepted for processing, but the processing has not been completed."',spec_title:"RFC7231#6.3.3",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.3"},203:{code:203,text:"Non-Authoritative Information",description:'"The request was successful but the enclosed payload has been modified from that of the origin server\'s 200 (OK) response by a transforming proxy."',spec_title:"RFC7231#6.3.4",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.4"},204:{code:204,text:"No Content",description:'"The server has successfully fulfilled the request and that there is no additional content to send in the response payload body."',spec_title:"RFC7231#6.3.5",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.5"},205:{code:205,text:"Reset Content",description:'"The server has fulfilled the request and desires that the user agent reset the "document view", which caused the request to be sent, to its original state as received from the origin server."',spec_title:"RFC7231#6.3.6",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.6"},206:{code:206,text:"Partial Content",description:'"The server is successfully fulfilling a range request for the target resource by transferring one or more parts of the selected representation that correspond to the satisfiable ranges found in the requests\'s Range header field."',spec_title:"RFC7233#4.1",spec_href:"https://tools.ietf.org/html/rfc7233#section-4.1"},300:{code:300,text:"Multiple Choices",description:'"The target resource has more than one representation, each with its own more specific identifier, and information about the alternatives is being provided so that the user (or user agent) can select a preferred representation by redirecting its request to one or more of those identifiers."',spec_title:"RFC7231#6.4.1",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.4.1"},301:{code:301,text:"Moved Permanently",description:'"The target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs."',spec_title:"RFC7231#6.4.2",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.4.2"},302:{code:302,text:"Found",description:'"The target resource resides temporarily under a different URI."',spec_title:"RFC7231#6.4.3",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.4.3"},303:{code:303,text:"See Other",description:'"The server is redirecting the user agent to a different resource, as indicated by a URI in the Location header field, that is intended to provide an indirect response to the original request."',spec_title:"RFC7231#6.4.4",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.4.4"},304:{code:304,text:"Not Modified",description:'"A conditional GET request has been received and would have resulted in a 200 (OK) response if it were not for the fact that the condition has evaluated to false."',spec_title:"RFC7232#4.1",spec_href:"https://tools.ietf.org/html/rfc7232#section-4.1"},305:{code:305,text:"Use Proxy",description:"*deprecated*",spec_title:"RFC7231#6.4.5",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.4.5"},307:{code:307,text:"Temporary Redirect",description:'"The target resource resides temporarily under a different URI and the user agent MUST NOT change the request method if it performs an automatic redirection to that URI."',spec_title:"RFC7231#6.4.7",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.4.7"},400:{code:400,text:"Bad Request",description:'"The server cannot or will not process the request because the received syntax is invalid, nonsensical, or exceeds some limitation on what the server is willing to process."',spec_title:"RFC7231#6.5.1",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.1"},401:{code:401,text:"Unauthorized",description:'"The request has not been applied because it lacks valid authentication credentials for the target resource."',spec_title:"RFC7235#6.3.1",spec_href:"https://tools.ietf.org/html/rfc7235#section-3.1"},402:{code:402,text:"Payment Required",description:"*reserved*",spec_title:"RFC7231#6.5.2",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.2"},403:{code:403,text:"Forbidden",description:'"The server understood the request but refuses to authorize it."',spec_title:"RFC7231#6.5.3",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.3"},404:{code:404,text:"Not Found",description:'"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists."',spec_title:"RFC7231#6.5.4",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.4"},405:{code:405,text:"Method Not Allowed",description:'"The method specified in the request-line is known by the origin server but not supported by the target resource."',spec_title:"RFC7231#6.5.5",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.5"},406:{code:406,text:"Not Acceptable",description:'"The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation."',spec_title:"RFC7231#6.5.6",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.6"},407:{code:407,text:"Proxy Authentication Required",description:'"The client needs to authenticate itself in order to use a proxy."',spec_title:"RFC7231#6.3.2",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.2"},408:{code:408,text:"Request Timeout",description:'"The server did not receive a complete request message within the time that it was prepared to wait."',spec_title:"RFC7231#6.5.7",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.7"},409:{code:409,text:"Conflict",description:'"The request could not be completed due to a conflict with the current state of the resource."',spec_title:"RFC7231#6.5.8",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.8"},410:{code:410,text:"Gone",description:'"Access to the target resource is no longer available at the origin server and that this condition is likely to be permanent."',spec_title:"RFC7231#6.5.9",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.9"},411:{code:411,text:"Length Required",description:'"The server refuses to accept the request without a defined Content-Length."',spec_title:"RFC7231#6.5.10",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.10"},412:{code:412,text:"Precondition Failed",description:'"One or more preconditions given in the request header fields evaluated to false when tested on the server."',spec_title:"RFC7232#4.2",spec_href:"https://tools.ietf.org/html/rfc7232#section-4.2"},413:{code:413,text:"Payload Too Large",description:'"The server is refusing to process a request because the request payload is larger than the server is willing or able to process."',spec_title:"RFC7231#6.5.11",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.11"},414:{code:414,text:"URI Too Long",description:'"The server is refusing to service the request because the request-target is longer than the server is willing to interpret."',spec_title:"RFC7231#6.5.12",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.12"},415:{code:415,text:"Unsupported Media Type",description:'"The origin server is refusing to service the request because the payload is in a format not supported by the target resource for this method."',spec_title:"RFC7231#6.5.13",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.13"},416:{code:416,text:"Range Not Satisfiable",description:'"None of the ranges in the request\'s Range header field overlap the current extent of the selected resource or that the set of ranges requested has been rejected due to invalid ranges or an excessive request of small or overlapping ranges."',spec_title:"RFC7233#4.4",spec_href:"https://tools.ietf.org/html/rfc7233#section-4.4"},417:{code:417,text:"Expectation Failed",description:'"The expectation given in the request\'s Expect header field could not be met by at least one of the inbound servers."',spec_title:"RFC7231#6.5.14",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.14"},418:{code:418,text:"I'm a teapot",description:'"1988 April Fools Joke. Returned by tea pots requested to brew coffee."',spec_title:"RFC 2324",spec_href:"https://tools.ietf.org/html/rfc2324"},426:{code:426,text:"Upgrade Required",description:'"The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol."',spec_title:"RFC7231#6.5.15",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.15"},500:{code:500,text:"Internal Server Error",description:'"The server encountered an unexpected condition that prevented it from fulfilling the request."',spec_title:"RFC7231#6.6.1",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.6.1"},501:{code:501,text:"Not Implemented",description:'"The server does not support the functionality required to fulfill the request."',spec_title:"RFC7231#6.6.2",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.6.2"},502:{code:502,text:"Bad Gateway",description:'"The server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request."',spec_title:"RFC7231#6.6.3",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.6.3"},503:{code:503,text:"Service Unavailable",description:'"The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay."',spec_title:"RFC7231#6.6.4",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.6.4"},504:{code:504,text:"Gateway Time-out",description:'"The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request."',spec_title:"RFC7231#6.6.5",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.6.5"},505:{code:505,text:"HTTP Version Not Supported",description:'"The server does not support, or refuses to support, the protocol version that was used in the request message."',spec_title:"RFC7231#6.6.6",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.6.6"},102:{code:102,text:"Processing",description:'"An interim response to inform the client that the server has accepted the complete request, but has not yet completed it."',spec_title:"RFC5218#10.1",spec_href:"https://tools.ietf.org/html/rfc2518#section-10.1"},207:{code:207,text:"Multi-Status",description:'"Status for multiple independent operations."',spec_title:"RFC5218#10.2",spec_href:"https://tools.ietf.org/html/rfc2518#section-10.2"},226:{code:226,text:"IM Used",description:'"The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance."',spec_title:"RFC3229#10.4.1",spec_href:"https://tools.ietf.org/html/rfc3229#section-10.4.1"},308:{code:308,text:"Permanent Redirect",description:'"The target resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. [...] This status code is similar to 301 Moved Permanently (Section 7.3.2 of rfc7231), except that it does not allow rewriting the request method from POST to GET."',spec_title:"RFC7238",spec_href:"https://tools.ietf.org/html/rfc7238"},422:{code:422,text:"Unprocessable Entity",description:'"The server understands the content type of the request entity (hence a 415(Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions."',spec_title:"RFC5218#10.3",spec_href:"https://tools.ietf.org/html/rfc2518#section-10.3"},423:{code:423,text:"Locked",description:'"The source or destination resource of a method is locked."',spec_title:"RFC5218#10.4",spec_href:"https://tools.ietf.org/html/rfc2518#section-10.4"},424:{code:424,text:"Failed Dependency",description:'"The method could not be performed on the resource because the requested action depended on another action and that action failed."',spec_title:"RFC5218#10.5",spec_href:"https://tools.ietf.org/html/rfc2518#section-10.5"},428:{code:428,text:"Precondition Required",description:'"The origin server requires the request to be conditional."',spec_title:"RFC6585#3",spec_href:"https://tools.ietf.org/html/rfc6585#section-3"},429:{code:429,text:"Too Many Requests",description:'"The user has sent too many requests in a given amount of time ("rate limiting")."',spec_title:"RFC6585#4",spec_href:"https://tools.ietf.org/html/rfc6585#section-4"},431:{code:431,text:"Request Header Fields Too Large",description:'"The server is unwilling to process the request because its header fields are too large."',spec_title:"RFC6585#5",spec_href:"https://tools.ietf.org/html/rfc6585#section-5"},451:{code:451,text:"Unavailable For Legal Reasons",description:'"The server is denying access to the resource in response to a legal demand."',spec_title:"draft-ietf-httpbis-legally-restricted-status",spec_href:"https://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status"},506:{code:506,text:"Variant Also Negotiates",description:'"The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process."',spec_title:"RFC2295#8.1",spec_href:"https://tools.ietf.org/html/rfc2295#section-8.1"},507:{code:507,text:"Insufficient Storage",description:'The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request."',spec_title:"RFC5218#10.6",spec_href:"https://tools.ietf.org/html/rfc2518#section-10.6"},511:{code:511,text:"Network Authentication Required",description:'"The client needs to authenticate to gain network access."',spec_title:"RFC6585#6",spec_href:"https://tools.ietf.org/html/rfc6585#section-6"}};class Ge{}class ct{}let Qe=(()=>{class H{constructor(O={}){Object.assign(this,{caseSensitiveSearch:!1,dataEncapsulation:!1,delay:500,delete404:!1,passThruUnknownUrl:!1,post204:!0,post409:!1,put204:!0,put404:!1,apiBase:void 0,host:void 0,rootPath:void 0},O)}}return H.\u0275fac=function(O){return new(O||H)(T.LFG(ct))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})();class pe{constructor(R,O={}){this.inMemDbService=R,this.config=new Qe,this.db={},this.requestInfoUtils=this.getRequestInfoUtils();const z=this.getLocation("/");this.config.host=z.host,this.config.rootPath=z.path,Object.assign(this.config,O)}get dbReady(){return this.dbReadySubject||(this.dbReadySubject=new oe.X(!1),this.resetDb()),this.dbReadySubject.asObservable().pipe((0,ue.P)(R=>R))}handleRequest(R){return this.dbReady.pipe((0,ee.b)(()=>this.handleRequest_(R)))}handleRequest_(R){const O=R.urlWithParams?R.urlWithParams:R.url,z=this.bind("parseRequestUrl"),ye=z&&z(O,this.requestInfoUtils)||this.parseRequestUrl(O),Ee=ye.collectionName,je=this.db[Ee],Fe={req:R,apiBase:ye.apiBase,collection:je,collectionName:Ee,headers:this.createHeaders({"Content-Type":"application/json"}),id:this.parseId(je,Ee,ye.id),method:this.getRequestMethod(R),query:ye.query,resourceUrl:ye.resourceUrl,url:O,utils:this.requestInfoUtils};let ve;if(/commands\/?$/i.test(Fe.apiBase))return this.commands(Fe);const lt=this.bind(Fe.method);if(lt){const ht=lt(Fe);if(ht)return ht}return this.db[Ee]?this.createResponse$(()=>this.collectionHandler(Fe)):this.config.passThruUnknownUrl?this.getPassThruBackend().handle(R):(ve=this.createErrorResponseOptions(O,404,`Collection '${Ee}' not found`),this.createResponse$(()=>ve))}addDelay(R){const O=this.config.delay;return 0===O?R:function _e(H,R){return new j.y(O=>{let z=!1,ye=!1;const Ee=H.subscribe(je=>{ye=!0,setTimeout(()=>{O.next(je),z&&O.complete()},R)},je=>setTimeout(()=>O.error(je),R),()=>{z=!0,ye||O.complete()});return()=>Ee.unsubscribe()})}(R,O||500)}applyQuery(R,O){const z=[],ye=this.config.caseSensitiveSearch?void 0:"i";O.forEach((je,Fe)=>{je.forEach(ve=>z.push({name:Fe,rx:new RegExp(decodeURI(ve),ye)}))});const Ee=z.length;return Ee?R.filter(je=>{let Fe=!0,ve=Ee;for(;Fe&&ve;){ve-=1;const lt=z[ve];Fe=lt.rx.test(je[lt.name])}return Fe}):R}bind(R){const O=this.inMemDbService[R];return O?O.bind(this.inMemDbService):void 0}bodify(R){return this.config.dataEncapsulation?{data:R}:R}clone(R){return JSON.parse(JSON.stringify(R))}collectionHandler(R){let O;switch(R.method){case"get":O=this.get(R);break;case"post":O=this.post(R);break;case"put":O=this.put(R);break;case"delete":O=this.delete(R);break;default:O=this.createErrorResponseOptions(R.url,405,"Method not allowed")}const z=this.bind("responseInterceptor");return z?z(O,R):O}commands(R){const O=R.collectionName.toLowerCase(),z=R.method;let ye={url:R.url};switch(O){case"resetdb":return ye.status=204,this.resetDb(R).pipe((0,ee.b)(()=>this.createResponse$(()=>ye,!1)));case"config":if("get"===z)ye.status=200,ye.body=this.clone(this.config);else{const Ee=this.getJsonBody(R.req);Object.assign(this.config,Ee),this.passThruBackend=void 0,ye.status=204}break;default:ye=this.createErrorResponseOptions(R.url,500,`Unknown command "${O}"`)}return this.createResponse$(()=>ye,!1)}createErrorResponseOptions(R,O,z){return{body:{error:`${z}`},url:R,headers:this.createHeaders({"Content-Type":"application/json"}),status:O}}createResponse$(R,O=!0){const z=this.createResponseOptions$(R);let ye=this.createResponse$fromResponseOptions$(z);return O?this.addDelay(ye):ye}createResponseOptions$(R){return new j.y(O=>{let z;try{z=R()}catch(Ee){z=this.createErrorResponseOptions("",500,`${Ee.message||Ee}`)}const ye=z.status;try{z.statusText=null!=ye?function He(H){return he[H+""].text||"Unknown Status"}(ye):void 0}catch{}return null!=ye&&function Ie(H){return H>=200&&H<300}(ye)?(O.next(z),O.complete()):O.error(z),()=>{}})}delete({collection:R,collectionName:O,headers:z,id:ye,url:Ee}){return null==ye?this.createErrorResponseOptions(Ee,404,`Missing "${O}" id`):{headers:z,status:this.removeById(R,ye)||!this.config.delete404?204:404}}findById(R,O){return R.find(z=>z.id===O)}genId(R,O){const z=this.bind("genId");if(z){const ye=z(R,O);if(null!=ye)return ye}return this.genIdDefault(R,O)}genIdDefault(R,O){if(!this.isCollectionIdNumeric(R,O))throw new Error(`Collection '${O}' id type is non-numeric or unknown. Can only generate numeric ids.`);let z=0;return R.reduce((ye,Ee)=>{z=Math.max(z,"number"==typeof Ee.id?Ee.id:z)},void 0),z+1}get({collection:R,collectionName:O,headers:z,id:ye,query:Ee,url:je}){let Fe=R;return null!=ye&&""!==ye?Fe=this.findById(R,ye):Ee&&(Fe=this.applyQuery(R,Ee)),Fe?{body:this.bodify(this.clone(Fe)),headers:z,status:200}:this.createErrorResponseOptions(je,404,`'${O}' with id='${ye}' not found`)}getLocation(R){if(!R.startsWith("http")){const O=typeof document>"u"?void 0:document,z=O?O.location.protocol+"//"+O.location.host:"http://fake";R=R.startsWith("/")?z+R:z+"/"+R}return function Y(H){const O=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(H),z={source:"",protocol:"",authority:"",userInfo:"",user:"",password:"",host:"",port:"",relative:"",path:"",directory:"",file:"",query:"",anchor:""},ye=Object.keys(z);let Ee=ye.length;for(;Ee--;)z[ye[Ee]]=O&&O[Ee]||"";return z}(R)}getPassThruBackend(){return this.passThruBackend?this.passThruBackend:this.passThruBackend=this.createPassThruBackend()}getRequestInfoUtils(){return{createResponse$:this.createResponse$.bind(this),findById:this.findById.bind(this),isCollectionIdNumeric:this.isCollectionIdNumeric.bind(this),getConfig:()=>this.config,getDb:()=>this.db,getJsonBody:this.getJsonBody.bind(this),getLocation:this.getLocation.bind(this),getPassThruBackend:this.getPassThruBackend.bind(this),parseRequestUrl:this.parseRequestUrl.bind(this)}}indexOf(R,O){return R.findIndex(z=>z.id===O)}parseId(R,O,z){if(!this.isCollectionIdNumeric(R,O))return z;const ye=parseFloat(z);return isNaN(ye)?z:ye}isCollectionIdNumeric(R,O){return!(!R||!R[0])&&"number"==typeof R[0].id}parseRequestUrl(R){try{const O=this.getLocation(R);let z=(this.config.rootPath||"").length,ye="";O.host!==this.config.host&&(z=1,ye=O.protocol+"//"+O.host+"/");const je=O.path.substring(z).split("/");let ve,Fe=0;null==this.config.apiBase?ve=je[Fe++]:(ve=function me(H){return H.replace(/\/$/,"")}(this.config.apiBase.trim()),Fe=ve?ve.split("/").length:0),ve+="/";let lt=je[Fe++];lt=lt&<.split(".")[0];return{apiBase:ve,collectionName:lt,id:je[Fe++],query:this.createQueryMap(O.query),resourceUrl:ye+ve+lt+"/"}}catch(O){throw new Error(`unable to parse url '${R}'; original error: ${O.message}`)}}post({collection:R,collectionName:O,headers:z,id:ye,req:Ee,resourceUrl:je,url:Fe}){const ve=this.clone(this.getJsonBody(Ee));if(null==ve.id)try{ve.id=ye||this.genId(R,O)}catch(Te){const Wt=Te.message||"";return/id type is non-numeric/.test(Wt)?this.createErrorResponseOptions(Fe,422,Wt):this.createErrorResponseOptions(Fe,500,`Failed to generate new id for '${O}'`)}if(ye&&ye!==ve.id)return this.createErrorResponseOptions(Fe,400,"Request id does not match item.id");const lt=this.indexOf(R,ye=ve.id),ht=this.bodify(ve);return-1===lt?(R.push(ve),z.set("Location",je+"/"+ye),{headers:z,body:ht,status:201}):this.config.post409?this.createErrorResponseOptions(Fe,409,`'${O}' item with id='${ye} exists and may not be updated with POST; use PUT instead.`):(R[lt]=ve,this.config.post204?{headers:z,status:204}:{headers:z,body:ht,status:200})}put({collection:R,collectionName:O,headers:z,id:ye,req:Ee,url:je}){const Fe=this.clone(this.getJsonBody(Ee));if(null==Fe.id)return this.createErrorResponseOptions(je,404,`Missing '${O}' id`);if(ye&&ye!==Fe.id)return this.createErrorResponseOptions(je,400,`Request for '${O}' id does not match item.id`);const ve=this.indexOf(R,ye=Fe.id),lt=this.bodify(Fe);return ve>-1?(R[ve]=Fe,this.config.put204?{headers:z,status:204}:{headers:z,body:lt,status:200}):this.config.put404?this.createErrorResponseOptions(je,404,`'${O}' item with id='${ye} not found and may not be created with PUT; use POST instead.`):(R.push(Fe),{headers:z,body:lt,status:201})}removeById(R,O){const z=this.indexOf(R,O);return z>-1&&(R.splice(z,1),!0)}resetDb(R){this.dbReadySubject&&this.dbReadySubject.next(!1);const O=this.inMemDbService.createDb(R);return(O instanceof j.y?O:"function"==typeof O.then?(0,J.D)(O):(0,de.of)(O)).pipe((0,ue.P)()).subscribe(ye=>{this.db=ye,this.dbReadySubject&&this.dbReadySubject.next(!0)}),this.dbReady}}let Ae=(()=>{class H extends pe{constructor(O,z,ye){super(O,z),this.xhrFactory=ye}handle(O){try{return this.handleRequest(O)}catch(z){const Ee=this.createErrorResponseOptions(O.url,500,`${z.message||z}`);return this.createResponse$(()=>Ee)}}getJsonBody(O){return O.body}getRequestMethod(O){return(O.method||"get").toLowerCase()}createHeaders(O){return new g.WM(O)}createQueryMap(O){const z=new Map;if(O){const ye=new g.LE({fromString:O});ye.keys().forEach(Ee=>z.set(Ee,ye.getAll(Ee)||[]))}return z}createResponse$fromResponseOptions$(O){return O.pipe((0,G.U)(z=>new g.Zn(z)))}createPassThruBackend(){try{return new g.AF(this.xhrFactory)}catch(O){throw O.message="Cannot create passThru404 backend; "+(O.message||""),O}}}return H.\u0275fac=function(O){return new(O||H)(T.LFG(Ge),T.LFG(Qe,8),T.LFG(te.JF))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})();function Ce(H,R,O){return new Ae(H,R,O)}let K=(()=>{class H{static forRoot(O,z){return{ngModule:H,providers:[{provide:Ge,useClass:O},{provide:Qe,useValue:z},{provide:g.jN,useFactory:Ce,deps:[Ge,Qe,te.JF]}]}}static forFeature(O,z){return H.forRoot(O,z)}}return H.\u0275fac=function(O){return new(O||H)},H.\u0275mod=T.oAB({type:H}),H.\u0275inj=T.cJS({}),H})(),Me=(()=>{class H{constructor(){this.title=""}}return H.\u0275fac=function(O){return new(O||H)},H.\u0275cmp=T.Xpm({type:H,selectors:[["app-header"]],inputs:{title:"title"},standalone:!0,features:[T.jDz],decls:2,vars:1,template:function(O,z){1&O&&(T.TgZ(0,"h1"),T._uU(1),T.qZA()),2&O&&(T.xp6(1),T.Oqu(z.title))},dependencies:[te.ez],styles:["h1[_ngcontent-%COMP%]{color:#264d73;font-size:2.5rem}"]}),H})();var We=C(3354);function _t(H,R){if(1&H&&(T.TgZ(0,"div"),T._uU(1),T.qZA()),2&H){const O=R.$implicit;T.xp6(1),T.Oqu(O)}}function Jt(H,R){if(1&H){const O=T.EpF();T.TgZ(0,"div")(1,"h2"),T._uU(2,"Messages"),T.qZA(),T.TgZ(3,"button",1),T.NdJ("click",function(){T.CHM(O);const ye=T.oxw();return T.KtG(ye.messageService.clear())}),T._uU(4,"Clear messages"),T.qZA(),T.YNc(5,_t,2,1,"div",2),T.qZA()}if(2&H){const O=T.oxw();T.xp6(5),T.Q6J("ngForOf",O.messageService.messages)}}let nn=(()=>{class H{constructor(O){this.messageService=O}}return H.\u0275fac=function(O){return new(O||H)(T.Y36(We.e))},H.\u0275cmp=T.Xpm({type:H,selectors:[["app-messages"]],standalone:!0,features:[T.jDz],decls:1,vars:1,consts:[[4,"ngIf"],["type","button",1,"clear",3,"click"],[4,"ngFor","ngForOf"]],template:function(O,z){1&O&&T.YNc(0,Jt,6,1,"div",0),2&O&&T.Q6J("ngIf",0!==z.messageService.messages.length)},dependencies:[te.O5,te.sg]}),H})(),B=(()=>{class H{constructor(){this.title="Tour of Heroes"}}return H.\u0275fac=function(O){return new(O||H)},H.\u0275cmp=T.Xpm({type:H,selectors:[["app-root"]],standalone:!0,features:[T.jDz],decls:8,vars:1,consts:[[3,"title"],["routerLink","/dashboard"],["routerLink","/heroes"]],template:function(O,z){1&O&&(T._UZ(0,"app-header",0),T.TgZ(1,"nav")(2,"a",1),T._uU(3,"Dashboard"),T.qZA(),T.TgZ(4,"a",2),T._uU(5,"Heroes"),T.qZA()(),T._UZ(6,"router-outlet")(7,"app-messages")),2&O&&T.Q6J("title",z.title)},dependencies:[N.rH,N.lC,Me,nn]}),H})(),W=(()=>{class H{createDb(){return{heroes:[{id:12,name:"Dr. Nice"},{id:13,name:"Bombasto"},{id:14,name:"Celeritas"},{id:15,name:"Magneta"},{id:16,name:"RubberMan"},{id:17,name:"Dynama"},{id:18,name:"Dr. IQ"},{id:19,name:"Magma"},{id:20,name:"Tornado"}]}}genId(O){return O.length>0?Math.max(...O.map(z=>z.id))+1:11}}return H.\u0275fac=function(O){return new(O||H)},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();const ne=[{path:"",redirectTo:"/dashboard",pathMatch:"full"},{path:"dashboard",loadChildren:()=>Promise.all([C.e(625),C.e(635)]).then(C.bind(C,4635))},{path:"detail",loadChildren:()=>Promise.all([C.e(625),C.e(59)]).then(C.bind(C,3059))},{path:"heroes",loadComponent:()=>Promise.all([C.e(625),C.e(116)]).then(C.bind(C,1116))}];(0,T.G48)(),(0,V.Cg)(B,{providers:[(0,N.bU)(ne),(0,g.h_)(),(0,T.RIp)(K.forRoot(W,{dataEncapsulation:!1}))]})},5619:(Pe,Z,C)=>{C.d(Z,{X:()=>T});var g=C(8645);class T extends g.x{constructor(N){super(),this._value=N}get value(){return this.getValue()}_subscribe(N){const j=super._subscribe(N);return!j.closed&&N.next(this._value),j}getValue(){const{hasError:N,thrownError:j,_value:oe}=this;if(N)throw j;return this._throwIfClosed(),oe}next(N){super.next(this._value=N)}}},5592:(Pe,Z,C)=>{C.d(Z,{y:()=>de});var g=C(305),T=C(7394),V=C(4850),N=C(8407),j=C(2653),oe=C(4674),J=C(1441);let de=(()=>{class te{constructor(Q){Q&&(this._subscribe=Q)}lift(Q){const he=new te;return he.source=this,he.operator=Q,he}subscribe(Q,he,He){const Ie=function G(te){return te&&te instanceof g.Lv||function ee(te){return te&&(0,oe.m)(te.next)&&(0,oe.m)(te.error)&&(0,oe.m)(te.complete)}(te)&&(0,T.Nn)(te)}(Q)?Q:new g.Hp(Q,he,He);return(0,J.x)(()=>{const{operator:Ge,source:ct}=this;Ie.add(Ge?Ge.call(Ie,ct):ct?this._subscribe(Ie):this._trySubscribe(Ie))}),Ie}_trySubscribe(Q){try{return this._subscribe(Q)}catch(he){Q.error(he)}}forEach(Q,he){return new(he=ue(he))((He,Ie)=>{const Ge=new g.Hp({next:ct=>{try{Q(ct)}catch(Qe){Ie(Qe),Ge.unsubscribe()}},error:Ie,complete:He});this.subscribe(Ge)})}_subscribe(Q){var he;return null===(he=this.source)||void 0===he?void 0:he.subscribe(Q)}[V.L](){return this}pipe(...Q){return(0,N.U)(Q)(this)}toPromise(Q){return new(Q=ue(Q))((he,He)=>{let Ie;this.subscribe(Ge=>Ie=Ge,Ge=>He(Ge),()=>he(Ie))})}}return te.create=_e=>new te(_e),te})();function ue(te){var _e;return null!==(_e=te??j.config.Promise)&&void 0!==_e?_e:Promise}},8645:(Pe,Z,C)=>{C.d(Z,{x:()=>J});var g=C(5592),T=C(7394);const N=(0,C(2306).d)(ue=>function(){ue(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var j=C(9039),oe=C(1441);let J=(()=>{class ue extends g.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const te=new de(this,this);return te.operator=G,te}_throwIfClosed(){if(this.closed)throw new N}next(G){(0,oe.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(G)}})}error(G){(0,oe.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:te}=this;for(;te.length;)te.shift().error(G)}})}complete(){(0,oe.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:te,isStopped:_e,observers:Q}=this;return te||_e?T.Lc:(this.currentObservers=null,Q.push(G),new T.w0(()=>{this.currentObservers=null,(0,j.P)(Q,G)}))}_checkFinalizedStatuses(G){const{hasError:te,thrownError:_e,isStopped:Q}=this;te?G.error(_e):Q&&G.complete()}asObservable(){const G=new g.y;return G.source=this,G}}return ue.create=(ee,G)=>new de(ee,G),ue})();class de extends J{constructor(ee,G){super(),this.destination=ee,this.source=G}next(ee){var G,te;null===(te=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===te||te.call(G,ee)}error(ee){var G,te;null===(te=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===te||te.call(G,ee)}complete(){var ee,G;null===(G=null===(ee=this.destination)||void 0===ee?void 0:ee.complete)||void 0===G||G.call(ee)}_subscribe(ee){var G,te;return null!==(te=null===(G=this.source)||void 0===G?void 0:G.subscribe(ee))&&void 0!==te?te:T.Lc}}},305:(Pe,Z,C)=>{C.d(Z,{Hp:()=>He,Lv:()=>te});var g=C(4674),T=C(7394),V=C(2653),N=C(3894),j=C(2420);const oe=ue("C",void 0,void 0);function ue(Y,me,pe){return{kind:Y,value:me,error:pe}}var ee=C(7599),G=C(1441);class te extends T.w0{constructor(me){super(),this.isStopped=!1,me?(this.destination=me,(0,T.Nn)(me)&&me.add(this)):this.destination=Qe}static create(me,pe,Ae){return new He(me,pe,Ae)}next(me){this.isStopped?ct(function de(Y){return ue("N",Y,void 0)}(me),this):this._next(me)}error(me){this.isStopped?ct(function J(Y){return ue("E",void 0,Y)}(me),this):(this.isStopped=!0,this._error(me))}complete(){this.isStopped?ct(oe,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(me){this.destination.next(me)}_error(me){try{this.destination.error(me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const _e=Function.prototype.bind;function Q(Y,me){return _e.call(Y,me)}class he{constructor(me){this.partialObserver=me}next(me){const{partialObserver:pe}=this;if(pe.next)try{pe.next(me)}catch(Ae){Ie(Ae)}}error(me){const{partialObserver:pe}=this;if(pe.error)try{pe.error(me)}catch(Ae){Ie(Ae)}else Ie(me)}complete(){const{partialObserver:me}=this;if(me.complete)try{me.complete()}catch(pe){Ie(pe)}}}class He extends te{constructor(me,pe,Ae){let Ce;if(super(),(0,g.m)(me)||!me)Ce={next:me??void 0,error:pe??void 0,complete:Ae??void 0};else{let K;this&&V.config.useDeprecatedNextContext?(K=Object.create(me),K.unsubscribe=()=>this.unsubscribe(),Ce={next:me.next&&Q(me.next,K),error:me.error&&Q(me.error,K),complete:me.complete&&Q(me.complete,K)}):Ce=me}this.destination=new he(Ce)}}function Ie(Y){V.config.useDeprecatedSynchronousErrorHandling?(0,G.O)(Y):(0,N.h)(Y)}function ct(Y,me){const{onStoppedNotification:pe}=V.config;pe&&ee.z.setTimeout(()=>pe(Y,me))}const Qe={closed:!0,next:j.Z,error:function Ge(Y){throw Y},complete:j.Z}},7394:(Pe,Z,C)=>{C.d(Z,{Lc:()=>oe,w0:()=>j,Nn:()=>J});var g=C(4674);const V=(0,C(2306).d)(ue=>function(G){ue(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((te,_e)=>`${_e+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var N=C(9039);class j{constructor(ee){this.initialTeardown=ee,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let ee;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const Q of G)Q.remove(this);else G.remove(this);const{initialTeardown:te}=this;if((0,g.m)(te))try{te()}catch(Q){ee=Q instanceof V?Q.errors:[Q]}const{_finalizers:_e}=this;if(_e){this._finalizers=null;for(const Q of _e)try{de(Q)}catch(he){ee=ee??[],he instanceof V?ee=[...ee,...he.errors]:ee.push(he)}}if(ee)throw new V(ee)}}add(ee){var G;if(ee&&ee!==this)if(this.closed)de(ee);else{if(ee instanceof j){if(ee.closed||ee._hasParent(this))return;ee._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(ee)}}_hasParent(ee){const{_parentage:G}=this;return G===ee||Array.isArray(G)&&G.includes(ee)}_addParent(ee){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(ee),G):G?[G,ee]:ee}_removeParent(ee){const{_parentage:G}=this;G===ee?this._parentage=null:Array.isArray(G)&&(0,N.P)(G,ee)}remove(ee){const{_finalizers:G}=this;G&&(0,N.P)(G,ee),ee instanceof j&&ee._removeParent(this)}}j.EMPTY=(()=>{const ue=new j;return ue.closed=!0,ue})();const oe=j.EMPTY;function J(ue){return ue instanceof j||ue&&"closed"in ue&&(0,g.m)(ue.remove)&&(0,g.m)(ue.add)&&(0,g.m)(ue.unsubscribe)}function de(ue){(0,g.m)(ue)?ue():ue.unsubscribe()}},2653:(Pe,Z,C)=>{C.d(Z,{config:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},2572:(Pe,Z,C)=>{C.d(Z,{a:()=>ee});var g=C(5592),T=C(7453),V=C(2664),N=C(2737),j=C(7400),oe=C(4564),J=C(2714),de=C(8251),ue=C(7103);function ee(..._e){const Q=(0,oe.yG)(_e),he=(0,oe.jO)(_e),{args:He,keys:Ie}=(0,T.D)(_e);if(0===He.length)return(0,V.D)([],Q);const Ge=new g.y(function G(_e,Q,he=N.y){return He=>{te(Q,()=>{const{length:Ie}=_e,Ge=new Array(Ie);let ct=Ie,Qe=Ie;for(let Y=0;Y{const me=(0,V.D)(_e[Y],Q);let pe=!1;me.subscribe((0,de.x)(He,Ae=>{Ge[Y]=Ae,pe||(pe=!0,Qe--),Qe||He.next(he(Ge.slice()))},()=>{--ct||He.complete()}))},He)},He)}}(He,Q,Ie?ct=>(0,J.n)(Ie,ct):N.y));return he?Ge.pipe((0,j.Z)(he)):Ge}function te(_e,Q,he){_e?(0,ue.f)(he,_e,Q):Q()}},6232:(Pe,Z,C)=>{C.d(Z,{E:()=>T});const T=new(C(5592).y)(j=>j.complete())},2664:(Pe,Z,C)=>{C.d(Z,{D:()=>V});var g=C(5154),T=C(4829);function V(N,j){return j?(0,g.x)(N,j):(0,T.Xf)(N)}},4829:(Pe,Z,C)=>{C.d(Z,{Xf:()=>_e});var g=C(5987),T=C(4266),V=C(4026),N=C(5592),j=C(8382),oe=C(5726),J=C(9853),de=C(3664),ue=C(541),ee=C(4674),G=C(3894),te=C(4850);function _e(Y){if(Y instanceof N.y)return Y;if(null!=Y){if((0,j.c)(Y))return function Q(Y){return new N.y(me=>{const pe=Y[te.L]();if((0,ee.m)(pe.subscribe))return pe.subscribe(me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Y);if((0,T.z)(Y))return function he(Y){return new N.y(me=>{for(let pe=0;pe{Y.then(pe=>{me.closed||(me.next(pe),me.complete())},pe=>me.error(pe)).then(null,G.h)})}(Y);if((0,oe.D)(Y))return Ge(Y);if((0,de.T)(Y))return function Ie(Y){return new N.y(me=>{for(const pe of Y)if(me.next(pe),me.closed)return;me.complete()})}(Y);if((0,ue.L)(Y))return function ct(Y){return Ge((0,ue.Q)(Y))}(Y)}throw(0,J.z)(Y)}function Ge(Y){return new N.y(me=>{(function Qe(Y,me){var pe,Ae,Ce,K;return(0,g.mG)(this,void 0,void 0,function*(){try{for(pe=(0,g.KL)(Y);!(Ae=yield pe.next()).done;)if(me.next(Ae.value),me.closed)return}catch(tt){Ce={error:tt}}finally{try{Ae&&!Ae.done&&(K=pe.return)&&(yield K.call(pe))}finally{if(Ce)throw Ce.error}}me.complete()})})(Y,me).catch(pe=>me.error(pe))})}},2096:(Pe,Z,C)=>{C.d(Z,{of:()=>V});var g=C(4564),T=C(2664);function V(...N){const j=(0,g.yG)(N);return(0,T.D)(N,j)}},8504:(Pe,Z,C)=>{C.d(Z,{_:()=>V});var g=C(5592),T=C(4674);function V(N,j){const oe=(0,T.m)(N)?N:()=>N,J=de=>de.error(oe());return new g.y(j?de=>j.schedule(J,0,de):J)}},8251:(Pe,Z,C)=>{C.d(Z,{x:()=>T});var g=C(305);function T(N,j,oe,J,de){return new V(N,j,oe,J,de)}class V extends g.Lv{constructor(j,oe,J,de,ue,ee){super(j),this.onFinalize=ue,this.shouldUnsubscribe=ee,this._next=oe?function(G){try{oe(G)}catch(te){j.error(te)}}:super._next,this._error=de?function(G){try{de(G)}catch(te){j.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=J?function(){try{J()}catch(G){j.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var j;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:oe}=this;super.unsubscribe(),!oe&&(null===(j=this.onFinalize)||void 0===j||j.call(this))}}}},6306:(Pe,Z,C)=>{C.d(Z,{K:()=>N});var g=C(4829),T=C(8251),V=C(9360);function N(j){return(0,V.e)((oe,J)=>{let ee,de=null,ue=!1;de=oe.subscribe((0,T.x)(J,void 0,void 0,G=>{ee=(0,g.Xf)(j(G,N(j)(oe))),de?(de.unsubscribe(),de=null,ee.subscribe(J)):ue=!0})),ue&&(de.unsubscribe(),de=null,ee.subscribe(J))})}},6328:(Pe,Z,C)=>{C.d(Z,{b:()=>V});var g=C(1631),T=C(4674);function V(N,j){return(0,T.m)(j)?(0,g.z)(N,j,1):(0,g.z)(N,1)}},3572:(Pe,Z,C)=>{C.d(Z,{d:()=>V});var g=C(9360),T=C(8251);function V(N){return(0,g.e)((j,oe)=>{let J=!1;j.subscribe((0,T.x)(oe,de=>{J=!0,oe.next(de)},()=>{J||oe.next(N),oe.complete()}))})}},3997:(Pe,Z,C)=>{C.d(Z,{x:()=>N});var g=C(2737),T=C(9360),V=C(8251);function N(oe,J=g.y){return oe=oe??j,(0,T.e)((de,ue)=>{let ee,G=!0;de.subscribe((0,V.x)(ue,te=>{const _e=J(te);(G||!oe(ee,_e))&&(G=!1,ee=_e,ue.next(te))}))})}function j(oe,J){return oe===J}},2181:(Pe,Z,C)=>{C.d(Z,{h:()=>V});var g=C(9360),T=C(8251);function V(N,j){return(0,g.e)((oe,J)=>{let de=0;oe.subscribe((0,T.x)(J,ue=>N.call(j,ue,de++)&&J.next(ue)))})}},4716:(Pe,Z,C)=>{C.d(Z,{x:()=>T});var g=C(9360);function T(V){return(0,g.e)((N,j)=>{try{N.subscribe(j)}finally{j.add(V)}})}},1374:(Pe,Z,C)=>{C.d(Z,{P:()=>J});var g=C(6973),T=C(2181),V=C(8180),N=C(3572),j=C(3026),oe=C(2737);function J(de,ue){const ee=arguments.length>=2;return G=>G.pipe(de?(0,T.h)((te,_e)=>de(te,_e,G)):oe.y,(0,V.q)(1),ee?(0,N.d)(ue):(0,j.T)(()=>new g.K))}},7398:(Pe,Z,C)=>{C.d(Z,{U:()=>V});var g=C(9360),T=C(8251);function V(N,j){return(0,g.e)((oe,J)=>{let de=0;oe.subscribe((0,T.x)(J,ue=>{J.next(N.call(j,ue,de++))}))})}},7537:(Pe,Z,C)=>{C.d(Z,{J:()=>V});var g=C(1631),T=C(2737);function V(N=1/0){return(0,g.z)(T.y,N)}},1631:(Pe,Z,C)=>{C.d(Z,{z:()=>de});var g=C(7398),T=C(4829),V=C(9360),N=C(7103),j=C(8251),J=C(4674);function de(ue,ee,G=1/0){return(0,J.m)(ee)?de((te,_e)=>(0,g.U)((Q,he)=>ee(te,Q,_e,he))((0,T.Xf)(ue(te,_e))),G):("number"==typeof ee&&(G=ee),(0,V.e)((te,_e)=>function oe(ue,ee,G,te,_e,Q,he,He){const Ie=[];let Ge=0,ct=0,Qe=!1;const Y=()=>{Qe&&!Ie.length&&!Ge&&ee.complete()},me=Ae=>Ge{Q&&ee.next(Ae),Ge++;let Ce=!1;(0,T.Xf)(G(Ae,ct++)).subscribe((0,j.x)(ee,K=>{_e?.(K),Q?me(K):ee.next(K)},()=>{Ce=!0},void 0,()=>{if(Ce)try{for(Ge--;Ie.length&&Gepe(K)):pe(K)}Y()}catch(K){ee.error(K)}}))};return ue.subscribe((0,j.x)(ee,me,()=>{Qe=!0,Y()})),()=>{He?.()}}(te,_e,ue,G)))}},3093:(Pe,Z,C)=>{C.d(Z,{Q:()=>N});var g=C(7103),T=C(9360),V=C(8251);function N(j,oe=0){return(0,T.e)((J,de)=>{J.subscribe((0,V.x)(de,ue=>(0,g.f)(de,j,()=>de.next(ue),oe),()=>(0,g.f)(de,j,()=>de.complete(),oe),ue=>(0,g.f)(de,j,()=>de.error(ue),oe)))})}},3020:(Pe,Z,C)=>{C.d(Z,{B:()=>j});var g=C(4829),T=C(8645),V=C(305),N=C(9360);function j(J={}){const{connector:de=(()=>new T.x),resetOnError:ue=!0,resetOnComplete:ee=!0,resetOnRefCountZero:G=!0}=J;return te=>{let _e,Q,he,He=0,Ie=!1,Ge=!1;const ct=()=>{Q?.unsubscribe(),Q=void 0},Qe=()=>{ct(),_e=he=void 0,Ie=Ge=!1},Y=()=>{const me=_e;Qe(),me?.unsubscribe()};return(0,N.e)((me,pe)=>{He++,!Ge&&!Ie&&ct();const Ae=he=he??de();pe.add(()=>{He--,0===He&&!Ge&&!Ie&&(Q=oe(Y,G))}),Ae.subscribe(pe),!_e&&He>0&&(_e=new V.Hp({next:Ce=>Ae.next(Ce),error:Ce=>{Ge=!0,ct(),Q=oe(Qe,ue,Ce),Ae.error(Ce)},complete:()=>{Ie=!0,ct(),Q=oe(Qe,ee),Ae.complete()}}),(0,g.Xf)(me).subscribe(_e))})(te)}}function oe(J,de,...ue){if(!0===de)return void J();if(!1===de)return;const ee=new V.Hp({next:()=>{ee.unsubscribe(),J()}});return(0,g.Xf)(de(...ue)).subscribe(ee)}},4664:(Pe,Z,C)=>{C.d(Z,{w:()=>N});var g=C(4829),T=C(9360),V=C(8251);function N(j,oe){return(0,T.e)((J,de)=>{let ue=null,ee=0,G=!1;const te=()=>G&&!ue&&de.complete();J.subscribe((0,V.x)(de,_e=>{ue?.unsubscribe();let Q=0;const he=ee++;(0,g.Xf)(j(_e,he)).subscribe(ue=(0,V.x)(de,He=>de.next(oe?oe(_e,He,he,Q++):He),()=>{ue=null,te()}))},()=>{G=!0,te()}))})}},8180:(Pe,Z,C)=>{C.d(Z,{q:()=>N});var g=C(6232),T=C(9360),V=C(8251);function N(j){return j<=0?()=>g.E:(0,T.e)((oe,J)=>{let de=0;oe.subscribe((0,V.x)(J,ue=>{++de<=j&&(J.next(ue),j<=de&&J.complete())}))})}},9397:(Pe,Z,C)=>{C.d(Z,{b:()=>j});var g=C(4674),T=C(9360),V=C(8251),N=C(2737);function j(oe,J,de){const ue=(0,g.m)(oe)||J||de?{next:oe,error:J,complete:de}:oe;return ue?(0,T.e)((ee,G)=>{var te;null===(te=ue.subscribe)||void 0===te||te.call(ue);let _e=!0;ee.subscribe((0,V.x)(G,Q=>{var he;null===(he=ue.next)||void 0===he||he.call(ue,Q),G.next(Q)},()=>{var Q;_e=!1,null===(Q=ue.complete)||void 0===Q||Q.call(ue),G.complete()},Q=>{var he;_e=!1,null===(he=ue.error)||void 0===he||he.call(ue,Q),G.error(Q)},()=>{var Q,he;_e&&(null===(Q=ue.unsubscribe)||void 0===Q||Q.call(ue)),null===(he=ue.finalize)||void 0===he||he.call(ue)}))}):N.y}},3026:(Pe,Z,C)=>{C.d(Z,{T:()=>N});var g=C(6973),T=C(9360),V=C(8251);function N(oe=j){return(0,T.e)((J,de)=>{let ue=!1;J.subscribe((0,V.x)(de,ee=>{ue=!0,de.next(ee)},()=>ue?de.complete():de.error(oe())))})}function j(){return new g.K}},5154:(Pe,Z,C)=>{C.d(Z,{x:()=>me});var g=C(4829),T=C(3093),V=C(9360);function N(pe,Ae=0){return(0,V.e)((Ce,K)=>{K.add(pe.schedule(()=>Ce.subscribe(K),Ae))})}var J=C(5592),ue=C(4971),ee=C(4674),G=C(7103);function _e(pe,Ae){if(!pe)throw new Error("Iterable cannot be null");return new J.y(Ce=>{(0,G.f)(Ce,Ae,()=>{const K=pe[Symbol.asyncIterator]();(0,G.f)(Ce,Ae,()=>{K.next().then(tt=>{tt.done?Ce.complete():Ce.next(tt.value)})},0,!0)})})}var Q=C(8382),he=C(4026),He=C(4266),Ie=C(3664),Ge=C(5726),ct=C(9853),Qe=C(541);function me(pe,Ae){if(null!=pe){if((0,Q.c)(pe))return function j(pe,Ae){return(0,g.Xf)(pe).pipe(N(Ae),(0,T.Q)(Ae))}(pe,Ae);if((0,He.z)(pe))return function de(pe,Ae){return new J.y(Ce=>{let K=0;return Ae.schedule(function(){K===pe.length?Ce.complete():(Ce.next(pe[K++]),Ce.closed||this.schedule())})})}(pe,Ae);if((0,he.t)(pe))return function oe(pe,Ae){return(0,g.Xf)(pe).pipe(N(Ae),(0,T.Q)(Ae))}(pe,Ae);if((0,Ge.D)(pe))return _e(pe,Ae);if((0,Ie.T)(pe))return function te(pe,Ae){return new J.y(Ce=>{let K;return(0,G.f)(Ce,Ae,()=>{K=pe[ue.h](),(0,G.f)(Ce,Ae,()=>{let tt,Me;try{({value:tt,done:Me}=K.next())}catch(We){return void Ce.error(We)}Me?Ce.complete():Ce.next(tt)},0,!0)}),()=>(0,ee.m)(K?.return)&&K.return()})}(pe,Ae);if((0,Qe.L)(pe))return function Y(pe,Ae){return _e((0,Qe.Q)(pe),Ae)}(pe,Ae)}throw(0,ct.z)(pe)}},7599:(Pe,Z,C)=>{C.d(Z,{z:()=>g});const g={setTimeout(T,V,...N){const{delegate:j}=g;return j?.setTimeout?j.setTimeout(T,V,...N):setTimeout(T,V,...N)},clearTimeout(T){const{delegate:V}=g;return(V?.clearTimeout||clearTimeout)(T)},delegate:void 0}},4971:(Pe,Z,C)=>{C.d(Z,{h:()=>T});const T=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(Pe,Z,C)=>{C.d(Z,{L:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(Pe,Z,C)=>{C.d(Z,{K:()=>T});const T=(0,C(2306).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},4564:(Pe,Z,C)=>{C.d(Z,{_6:()=>oe,jO:()=>N,yG:()=>j});var g=C(4674);function V(J){return J[J.length-1]}function N(J){return(0,g.m)(V(J))?J.pop():void 0}function j(J){return function T(J){return J&&(0,g.m)(J.schedule)}(V(J))?J.pop():void 0}function oe(J,de){return"number"==typeof V(J)?J.pop():de}},7453:(Pe,Z,C)=>{C.d(Z,{D:()=>j});const{isArray:g}=Array,{getPrototypeOf:T,prototype:V,keys:N}=Object;function j(J){if(1===J.length){const de=J[0];if(g(de))return{args:de,keys:null};if(function oe(J){return J&&"object"==typeof J&&T(J)===V}(de)){const ue=N(de);return{args:ue.map(ee=>de[ee]),keys:ue}}}return{args:J,keys:null}}},9039:(Pe,Z,C)=>{function g(T,V){if(T){const N=T.indexOf(V);0<=N&&T.splice(N,1)}}C.d(Z,{P:()=>g})},2306:(Pe,Z,C)=>{function g(T){const N=T(j=>{Error.call(j),j.stack=(new Error).stack});return N.prototype=Object.create(Error.prototype),N.prototype.constructor=N,N}C.d(Z,{d:()=>g})},2714:(Pe,Z,C)=>{function g(T,V){return T.reduce((N,j,oe)=>(N[j]=V[oe],N),{})}C.d(Z,{n:()=>g})},1441:(Pe,Z,C)=>{C.d(Z,{O:()=>N,x:()=>V});var g=C(2653);let T=null;function V(j){if(g.config.useDeprecatedSynchronousErrorHandling){const oe=!T;if(oe&&(T={errorThrown:!1,error:null}),j(),oe){const{errorThrown:J,error:de}=T;if(T=null,J)throw de}}else j()}function N(j){g.config.useDeprecatedSynchronousErrorHandling&&T&&(T.errorThrown=!0,T.error=j)}},7103:(Pe,Z,C)=>{function g(T,V,N,j=0,oe=!1){const J=V.schedule(function(){N(),oe?T.add(this.schedule(null,j)):this.unsubscribe()},j);if(T.add(J),!oe)return J}C.d(Z,{f:()=>g})},2737:(Pe,Z,C)=>{function g(T){return T}C.d(Z,{y:()=>g})},4266:(Pe,Z,C)=>{C.d(Z,{z:()=>g});const g=T=>T&&"number"==typeof T.length&&"function"!=typeof T},5726:(Pe,Z,C)=>{C.d(Z,{D:()=>T});var g=C(4674);function T(V){return Symbol.asyncIterator&&(0,g.m)(V?.[Symbol.asyncIterator])}},4674:(Pe,Z,C)=>{function g(T){return"function"==typeof T}C.d(Z,{m:()=>g})},8382:(Pe,Z,C)=>{C.d(Z,{c:()=>V});var g=C(4850),T=C(4674);function V(N){return(0,T.m)(N[g.L])}},3664:(Pe,Z,C)=>{C.d(Z,{T:()=>V});var g=C(4971),T=C(4674);function V(N){return(0,T.m)(N?.[g.h])}},7258:(Pe,Z,C)=>{C.d(Z,{b:()=>V});var g=C(5592),T=C(4674);function V(N){return!!N&&(N instanceof g.y||(0,T.m)(N.lift)&&(0,T.m)(N.subscribe))}},4026:(Pe,Z,C)=>{C.d(Z,{t:()=>T});var g=C(4674);function T(V){return(0,g.m)(V?.then)}},541:(Pe,Z,C)=>{C.d(Z,{L:()=>N,Q:()=>V});var g=C(5987),T=C(4674);function V(j){return(0,g.FC)(this,arguments,function*(){const J=j.getReader();try{for(;;){const{value:de,done:ue}=yield(0,g.qq)(J.read());if(ue)return yield(0,g.qq)(void 0);yield yield(0,g.qq)(de)}}finally{J.releaseLock()}})}function N(j){return(0,T.m)(j?.getReader)}},9360:(Pe,Z,C)=>{C.d(Z,{A:()=>T,e:()=>V});var g=C(4674);function T(N){return(0,g.m)(N?.lift)}function V(N){return j=>{if(T(j))return j.lift(function(oe){try{return N(oe,this)}catch(J){this.error(J)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(Pe,Z,C)=>{C.d(Z,{Z:()=>N});var g=C(7398);const{isArray:T}=Array;function N(j){return(0,g.U)(oe=>function V(j,oe){return T(oe)?j(...oe):j(oe)}(j,oe))}},2420:(Pe,Z,C)=>{function g(){}C.d(Z,{Z:()=>g})},8407:(Pe,Z,C)=>{C.d(Z,{U:()=>V,z:()=>T});var g=C(2737);function T(...N){return V(N)}function V(N){return 0===N.length?g.y:1===N.length?N[0]:function(oe){return N.reduce((J,de)=>de(J),oe)}}},3894:(Pe,Z,C)=>{C.d(Z,{h:()=>V});var g=C(2653),T=C(7599);function V(N){T.z.setTimeout(()=>{const{onUnhandledError:j}=g.config;if(!j)throw N;j(N)})}},9853:(Pe,Z,C)=>{function g(T){return new TypeError(`You provided ${null!==T&&"object"==typeof T?"an invalid object":`'${T}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(Z,{z:()=>g})},5987:(Pe,Z,C)=>{function te(B,W,ne,le){return new(ne||(ne=Promise))(function(R,O){function z(je){try{Ee(le.next(je))}catch(Fe){O(Fe)}}function ye(je){try{Ee(le.throw(je))}catch(Fe){O(Fe)}}function Ee(je){je.done?R(je.value):function H(R){return R instanceof ne?R:new ne(function(O){O(R)})}(je.value).then(z,ye)}Ee((le=le.apply(B,W||[])).next())})}function Y(B){return this instanceof Y?(this.v=B,this):new Y(B)}function me(B,W,ne){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var H,le=ne.apply(B,W||[]),R=[];return H={},O("next"),O("throw"),O("return"),H[Symbol.asyncIterator]=function(){return this},H;function O(ve){le[ve]&&(H[ve]=function(lt){return new Promise(function(ht,Te){R.push([ve,lt,ht,Te])>1||z(ve,lt)})})}function z(ve,lt){try{!function ye(ve){ve.value instanceof Y?Promise.resolve(ve.value.v).then(Ee,je):Fe(R[0][2],ve)}(le[ve](lt))}catch(ht){Fe(R[0][3],ht)}}function Ee(ve){z("next",ve)}function je(ve){z("throw",ve)}function Fe(ve,lt){ve(lt),R.shift(),R.length&&z(R[0][0],R[0][1])}}function Ae(B){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ne,W=B[Symbol.asyncIterator];return W?W.call(B):(B=function He(B){var W="function"==typeof Symbol&&Symbol.iterator,ne=W&&B[W],le=0;if(ne)return ne.call(B);if(B&&"number"==typeof B.length)return{next:function(){return B&&le>=B.length&&(B=void 0),{value:B&&B[le++],done:!B}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")}(B),ne={},le("next"),le("throw"),le("return"),ne[Symbol.asyncIterator]=function(){return this},ne);function le(R){ne[R]=B[R]&&function(O){return new Promise(function(z,ye){!function H(R,O,z,ye){Promise.resolve(ye).then(function(Ee){R({value:Ee,done:z})},O)}(z,ye,(O=B[R](O)).done,O.value)})}}}C.d(Z,{FC:()=>me,KL:()=>Ae,mG:()=>te,qq:()=>Y})},6814:(Pe,Z,C)=>{C.d(Z,{HT:()=>N,JF:()=>Kr,K0:()=>oe,Mx:()=>nr,O5:()=>Br,Ov:()=>Xo,PM:()=>Xn,S$:()=>_e,Ye:()=>Ie,bD:()=>en,ez:()=>Rt,gd:()=>oo,q:()=>V,sg:()=>qn,w_:()=>j});var g=C(2029);let T=null;function V(){return T}function N(l){T||(T=l)}class j{}const oe=new g.OlP("DocumentToken");let J=(()=>{class l{historyGo(p){throw new Error("Not implemented")}}return l.\u0275fac=function(p){return new(p||l)},l.\u0275prov=g.Yz7({token:l,factory:function(){return(0,g.f3M)(ue)},providedIn:"platform"}),l})(),ue=(()=>{class l extends J{constructor(){super(),this._doc=(0,g.f3M)(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(p){const E=V().getGlobalEventTarget(this._doc,"window");return E.addEventListener("popstate",p,!1),()=>E.removeEventListener("popstate",p)}onHashChange(p){const E=V().getGlobalEventTarget(this._doc,"window");return E.addEventListener("hashchange",p,!1),()=>E.removeEventListener("hashchange",p)}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(p){this._location.pathname=p}pushState(p,E,b){this._history.pushState(p,E,b)}replaceState(p,E,b){this._history.replaceState(p,E,b)}forward(){this._history.forward()}back(){this._history.back()}historyGo(p=0){this._history.go(p)}getState(){return this._history.state}}return l.\u0275fac=function(p){return new(p||l)},l.\u0275prov=g.Yz7({token:l,factory:function(){return new l},providedIn:"platform"}),l})();function ee(l,v){if(0==l.length)return v;if(0==v.length)return l;let p=0;return l.endsWith("/")&&p++,v.startsWith("/")&&p++,2==p?l+v.substring(1):1==p?l+v:l+"/"+v}function G(l){const v=l.match(/#|\?|$/),p=v&&v.index||l.length;return l.slice(0,p-("/"===l[p-1]?1:0))+l.slice(p)}function te(l){return l&&"?"!==l[0]?"?"+l:l}let _e=(()=>{class l{historyGo(p){throw new Error("Not implemented")}}return l.\u0275fac=function(p){return new(p||l)},l.\u0275prov=g.Yz7({token:l,factory:function(){return(0,g.f3M)(he)},providedIn:"root"}),l})();const Q=new g.OlP("appBaseHref");let he=(()=>{class l extends _e{constructor(p,E){super(),this._platformLocation=p,this._removeListenerFns=[],this._baseHref=E??this._platformLocation.getBaseHrefFromDOM()??(0,g.f3M)(oe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(p){this._removeListenerFns.push(this._platformLocation.onPopState(p),this._platformLocation.onHashChange(p))}getBaseHref(){return this._baseHref}prepareExternalUrl(p){return ee(this._baseHref,p)}path(p=!1){const E=this._platformLocation.pathname+te(this._platformLocation.search),b=this._platformLocation.hash;return b&&p?`${E}${b}`:E}pushState(p,E,b,$){const re=this.prepareExternalUrl(b+te($));this._platformLocation.pushState(p,E,re)}replaceState(p,E,b,$){const re=this.prepareExternalUrl(b+te($));this._platformLocation.replaceState(p,E,re)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(p=0){this._platformLocation.historyGo?.(p)}}return l.\u0275fac=function(p){return new(p||l)(g.LFG(J),g.LFG(Q,8))},l.\u0275prov=g.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})(),Ie=(()=>{class l{constructor(p){this._subject=new g.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=p;const E=this._locationStrategy.getBaseHref();this._basePath=function Y(l){if(new RegExp("^(https?:)?//").test(l)){const[,p]=l.split(/\/\/[^\/]+/);return p}return l}(G(Qe(E))),this._locationStrategy.onPopState(b=>{this._subject.emit({url:this.path(!0),pop:!0,state:b.state,type:b.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(p=!1){return this.normalize(this._locationStrategy.path(p))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(p,E=""){return this.path()==this.normalize(p+te(E))}normalize(p){return l.stripTrailingSlash(function ct(l,v){if(!l||!v.startsWith(l))return v;const p=v.substring(l.length);return""===p||["/",";","?","#"].includes(p[0])?p:v}(this._basePath,Qe(p)))}prepareExternalUrl(p){return p&&"/"!==p[0]&&(p="/"+p),this._locationStrategy.prepareExternalUrl(p)}go(p,E="",b=null){this._locationStrategy.pushState(b,"",p,E),this._notifyUrlChangeListeners(this.prepareExternalUrl(p+te(E)),b)}replaceState(p,E="",b=null){this._locationStrategy.replaceState(b,"",p,E),this._notifyUrlChangeListeners(this.prepareExternalUrl(p+te(E)),b)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(p=0){this._locationStrategy.historyGo?.(p)}onUrlChange(p){return this._urlChangeListeners.push(p),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(E=>{this._notifyUrlChangeListeners(E.url,E.state)})),()=>{const E=this._urlChangeListeners.indexOf(p);this._urlChangeListeners.splice(E,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(p="",E){this._urlChangeListeners.forEach(b=>b(p,E))}subscribe(p,E,b){return this._subject.subscribe({next:p,error:E,complete:b})}}return l.normalizeQueryParams=te,l.joinWithSlash=ee,l.stripTrailingSlash=G,l.\u0275fac=function(p){return new(p||l)(g.LFG(_e))},l.\u0275prov=g.Yz7({token:l,factory:function(){return function Ge(){return new Ie((0,g.LFG)(_e))}()},providedIn:"root"}),l})();function Qe(l){return l.replace(/\/index.html$/,"")}function nr(l,v){v=encodeURIComponent(v);for(const p of l.split(";")){const E=p.indexOf("="),[b,$]=-1==E?[p,""]:[p.slice(0,E),p.slice(E+1)];if(b.trim()===v)return decodeURIComponent($)}return null}class zt{constructor(v,p,E,b){this.$implicit=v,this.ngForOf=p,this.index=E,this.count=b}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 qn=(()=>{class l{set ngForOf(p){this._ngForOf=p,this._ngForOfDirty=!0}set ngForTrackBy(p){this._trackByFn=p}get ngForTrackBy(){return this._trackByFn}constructor(p,E,b){this._viewContainer=p,this._template=E,this._differs=b,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(p){p&&(this._template=p)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const p=this._ngForOf;!this._differ&&p&&(this._differ=this._differs.find(p).create(this.ngForTrackBy))}if(this._differ){const p=this._differ.diff(this._ngForOf);p&&this._applyChanges(p)}}_applyChanges(p){const E=this._viewContainer;p.forEachOperation((b,$,re)=>{if(null==b.previousIndex)E.createEmbeddedView(this._template,new zt(b.item,this._ngForOf,-1,-1),null===re?void 0:re);else if(null==re)E.remove(null===$?void 0:$);else if(null!==$){const Ne=E.get($);E.move(Ne,re),Tn(Ne,b)}});for(let b=0,$=E.length;b<$;b++){const Ne=E.get(b).context;Ne.index=b,Ne.count=$,Ne.ngForOf=this._ngForOf}p.forEachIdentityChange(b=>{Tn(E.get(b.currentIndex),b)})}static ngTemplateContextGuard(p,E){return!0}}return l.\u0275fac=function(p){return new(p||l)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36(g.ZZ4))},l.\u0275dir=g.lG2({type:l,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),l})();function Tn(l,v){l.context.$implicit=v.item}let Br=(()=>{class l{constructor(p,E){this._viewContainer=p,this._context=new Un,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=E}set ngIf(p){this._context.$implicit=this._context.ngIf=p,this._updateView()}set ngIfThen(p){wr("ngIfThen",p),this._thenTemplateRef=p,this._thenViewRef=null,this._updateView()}set ngIfElse(p){wr("ngIfElse",p),this._elseTemplateRef=p,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(p,E){return!0}}return l.\u0275fac=function(p){return new(p||l)(g.Y36(g.s_b),g.Y36(g.Rgc))},l.\u0275dir=g.lG2({type:l,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),l})();class Un{constructor(){this.$implicit=null,this.ngIf=null}}function wr(l,v){if(v&&!v.createEmbeddedView)throw new Error(`${l} must be a TemplateRef, but received '${(0,g.AaK)(v)}'.`)}function Rn(l,v){return new g.vHH(2100,!1)}class qi{createSubscription(v,p){return(0,g.rg0)(()=>v.subscribe({next:p,error:E=>{throw E}}))}dispose(v){(0,g.rg0)(()=>v.unsubscribe())}}class Zo{createSubscription(v,p){return v.then(p,E=>{throw E})}dispose(v){}}const ta=new Zo,na=new qi;let Xo=(()=>{class l{constructor(p){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=p}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(p){return this._obj?p!==this._obj?(this._dispose(),this.transform(p)):this._latestValue:(p&&this._subscribe(p),this._latestValue)}_subscribe(p){this._obj=p,this._strategy=this._selectStrategy(p),this._subscription=this._strategy.createSubscription(p,E=>this._updateLatestValue(p,E))}_selectStrategy(p){if((0,g.QGY)(p))return ta;if((0,g.F4k)(p))return na;throw Rn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(p,E){p===this._obj&&(this._latestValue=E,this._ref.markForCheck())}}return l.\u0275fac=function(p){return new(p||l)(g.Y36(g.sBO,16))},l.\u0275pipe=g.Yjl({name:"async",type:l,pure:!1,standalone:!0}),l})(),oo=(()=>{class l{transform(p){if(null==p)return null;if("string"!=typeof p)throw Rn();return p.toUpperCase()}}return l.\u0275fac=function(p){return new(p||l)},l.\u0275pipe=g.Yjl({name:"uppercase",type:l,pure:!0,standalone:!0}),l})(),Rt=(()=>{class l{}return l.\u0275fac=function(p){return new(p||l)},l.\u0275mod=g.oAB({type:l}),l.\u0275inj=g.cJS({}),l})();const en="browser",Gr="server";function Xn(l){return l===Gr}class Kr{}},9862:(Pe,Z,C)=>{C.d(Z,{AF:()=>st,LE:()=>Y,WM:()=>_e,Zn:()=>B,eN:()=>le,h_:()=>_r,jN:()=>te});var g=C(2029),T=C(2096),V=C(2664),N=C(5592),j=C(6328),oe=C(2181),J=C(7398),de=C(4716),ue=C(4664),ee=C(6814);class G{}class te{}class _e{constructor(M){this.normalizedNames=new Map,this.lazyUpdate=null,M?"string"==typeof M?this.lazyInit=()=>{this.headers=new Map,M.split("\n").forEach(A=>{const fe=A.indexOf(":");if(fe>0){const De=A.slice(0,fe),Se=De.toLowerCase(),we=A.slice(fe+1).trim();this.maybeSetNormalizedName(De,Se),this.headers.has(Se)?this.headers.get(Se).push(we):this.headers.set(Se,[we])}})}:typeof Headers<"u"&&M instanceof Headers?(this.headers=new Map,M.forEach((A,fe)=>{this.setHeaderEntries(fe,A)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(M).forEach(([A,fe])=>{this.setHeaderEntries(A,fe)})}:this.headers=new Map}has(M){return this.init(),this.headers.has(M.toLowerCase())}get(M){this.init();const A=this.headers.get(M.toLowerCase());return A&&A.length>0?A[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(M){return this.init(),this.headers.get(M.toLowerCase())||null}append(M,A){return this.clone({name:M,value:A,op:"a"})}set(M,A){return this.clone({name:M,value:A,op:"s"})}delete(M,A){return this.clone({name:M,value:A,op:"d"})}maybeSetNormalizedName(M,A){this.normalizedNames.has(A)||this.normalizedNames.set(A,M)}init(){this.lazyInit&&(this.lazyInit instanceof _e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(M=>this.applyUpdate(M)),this.lazyUpdate=null))}copyFrom(M){M.init(),Array.from(M.headers.keys()).forEach(A=>{this.headers.set(A,M.headers.get(A)),this.normalizedNames.set(A,M.normalizedNames.get(A))})}clone(M){const A=new _e;return A.lazyInit=this.lazyInit&&this.lazyInit instanceof _e?this.lazyInit:this,A.lazyUpdate=(this.lazyUpdate||[]).concat([M]),A}applyUpdate(M){const A=M.name.toLowerCase();switch(M.op){case"a":case"s":let fe=M.value;if("string"==typeof fe&&(fe=[fe]),0===fe.length)return;this.maybeSetNormalizedName(M.name,A);const De=("a"===M.op?this.headers.get(A):void 0)||[];De.push(...fe),this.headers.set(A,De);break;case"d":const Se=M.value;if(Se){let we=this.headers.get(A);if(!we)return;we=we.filter(Mt=>-1===Se.indexOf(Mt)),0===we.length?(this.headers.delete(A),this.normalizedNames.delete(A)):this.headers.set(A,we)}else this.headers.delete(A),this.normalizedNames.delete(A)}}setHeaderEntries(M,A){const fe=(Array.isArray(A)?A:[A]).map(Se=>Se.toString()),De=M.toLowerCase();this.headers.set(De,fe),this.maybeSetNormalizedName(M,De)}forEach(M){this.init(),Array.from(this.normalizedNames.keys()).forEach(A=>M(this.normalizedNames.get(A),this.headers.get(A)))}}class he{encodeKey(M){return ct(M)}encodeValue(M){return ct(M)}decodeKey(M){return decodeURIComponent(M)}decodeValue(M){return decodeURIComponent(M)}}const Ie=/%(\d[a-f0-9])/gi,Ge={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ct(L){return encodeURIComponent(L).replace(Ie,(M,A)=>Ge[A]??M)}function Qe(L){return`${L}`}class Y{constructor(M={}){if(this.updates=null,this.cloneFrom=null,this.encoder=M.encoder||new he,M.fromString){if(M.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function He(L,M){const A=new Map;return L.length>0&&L.replace(/^\?/,"").split("&").forEach(De=>{const Se=De.indexOf("="),[we,Mt]=-1==Se?[M.decodeKey(De),""]:[M.decodeKey(De.slice(0,Se)),M.decodeValue(De.slice(Se+1))],$e=A.get(we)||[];$e.push(Mt),A.set(we,$e)}),A}(M.fromString,this.encoder)}else M.fromObject?(this.map=new Map,Object.keys(M.fromObject).forEach(A=>{const fe=M.fromObject[A],De=Array.isArray(fe)?fe.map(Qe):[Qe(fe)];this.map.set(A,De)})):this.map=null}has(M){return this.init(),this.map.has(M)}get(M){this.init();const A=this.map.get(M);return A?A[0]:null}getAll(M){return this.init(),this.map.get(M)||null}keys(){return this.init(),Array.from(this.map.keys())}append(M,A){return this.clone({param:M,value:A,op:"a"})}appendAll(M){const A=[];return Object.keys(M).forEach(fe=>{const De=M[fe];Array.isArray(De)?De.forEach(Se=>{A.push({param:fe,value:Se,op:"a"})}):A.push({param:fe,value:De,op:"a"})}),this.clone(A)}set(M,A){return this.clone({param:M,value:A,op:"s"})}delete(M,A){return this.clone({param:M,value:A,op:"d"})}toString(){return this.init(),this.keys().map(M=>{const A=this.encoder.encodeKey(M);return this.map.get(M).map(fe=>A+"="+this.encoder.encodeValue(fe)).join("&")}).filter(M=>""!==M).join("&")}clone(M){const A=new Y({encoder:this.encoder});return A.cloneFrom=this.cloneFrom||this,A.updates=(this.updates||[]).concat(M),A}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(M=>this.map.set(M,this.cloneFrom.map.get(M))),this.updates.forEach(M=>{switch(M.op){case"a":case"s":const A=("a"===M.op?this.map.get(M.param):void 0)||[];A.push(Qe(M.value)),this.map.set(M.param,A);break;case"d":if(void 0===M.value){this.map.delete(M.param);break}{let fe=this.map.get(M.param)||[];const De=fe.indexOf(Qe(M.value));-1!==De&&fe.splice(De,1),fe.length>0?this.map.set(M.param,fe):this.map.delete(M.param)}}}),this.cloneFrom=this.updates=null)}}class pe{constructor(){this.map=new Map}set(M,A){return this.map.set(M,A),this}get(M){return this.map.has(M)||this.map.set(M,M.defaultValue()),this.map.get(M)}delete(M){return this.map.delete(M),this}has(M){return this.map.has(M)}keys(){return this.map.keys()}}function Ce(L){return typeof ArrayBuffer<"u"&&L instanceof ArrayBuffer}function K(L){return typeof Blob<"u"&&L instanceof Blob}function tt(L){return typeof FormData<"u"&&L instanceof FormData}class We{constructor(M,A,fe,De){let Se;if(this.url=A,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=M.toUpperCase(),function Ae(L){switch(L){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||De?(this.body=void 0!==fe?fe:null,Se=De):Se=fe,Se&&(this.reportProgress=!!Se.reportProgress,this.withCredentials=!!Se.withCredentials,Se.responseType&&(this.responseType=Se.responseType),Se.headers&&(this.headers=Se.headers),Se.context&&(this.context=Se.context),Se.params&&(this.params=Se.params)),this.headers||(this.headers=new _e),this.context||(this.context=new pe),this.params){const we=this.params.toString();if(0===we.length)this.urlWithParams=A;else{const Mt=A.indexOf("?");this.urlWithParams=A+(-1===Mt?"?":MtOt.set(qe,M.setHeaders[qe]),$e)),M.setParams&&(Ut=Object.keys(M.setParams).reduce((Ot,qe)=>Ot.set(qe,M.setParams[qe]),Ut)),new We(A,fe,Se,{params:Ut,headers:$e,context:$t,reportProgress:Mt,responseType:De,withCredentials:we})}}var _t=function(L){return L[L.Sent=0]="Sent",L[L.UploadProgress=1]="UploadProgress",L[L.ResponseHeader=2]="ResponseHeader",L[L.DownloadProgress=3]="DownloadProgress",L[L.Response=4]="Response",L[L.User=5]="User",L}(_t||{});class Jt{constructor(M,A=200,fe="OK"){this.headers=M.headers||new _e,this.status=void 0!==M.status?M.status:A,this.statusText=M.statusText||fe,this.url=M.url||null,this.ok=this.status>=200&&this.status<300}}class nn extends Jt{constructor(M={}){super(M),this.type=_t.ResponseHeader}clone(M={}){return new nn({headers:M.headers||this.headers,status:void 0!==M.status?M.status:this.status,statusText:M.statusText||this.statusText,url:M.url||this.url||void 0})}}class B extends Jt{constructor(M={}){super(M),this.type=_t.Response,this.body=void 0!==M.body?M.body:null}clone(M={}){return new B({body:void 0!==M.body?M.body:this.body,headers:M.headers||this.headers,status:void 0!==M.status?M.status:this.status,statusText:M.statusText||this.statusText,url:M.url||this.url||void 0})}}class W extends Jt{constructor(M){super(M,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${M.url||"(unknown url)"}`:`Http failure response for ${M.url||"(unknown url)"}: ${M.status} ${M.statusText}`,this.error=M.error||null}}function ne(L,M){return{body:M,headers:L.headers,context:L.context,observe:L.observe,params:L.params,reportProgress:L.reportProgress,responseType:L.responseType,withCredentials:L.withCredentials}}let le=(()=>{class L{constructor(A){this.handler=A}request(A,fe,De={}){let Se;if(A instanceof We)Se=A;else{let $e,Ut;$e=De.headers instanceof _e?De.headers:new _e(De.headers),De.params&&(Ut=De.params instanceof Y?De.params:new Y({fromObject:De.params})),Se=new We(A,fe,void 0!==De.body?De.body:null,{headers:$e,context:De.context,params:Ut,reportProgress:De.reportProgress,responseType:De.responseType||"json",withCredentials:De.withCredentials})}const we=(0,T.of)(Se).pipe((0,j.b)($e=>this.handler.handle($e)));if(A instanceof We||"events"===De.observe)return we;const Mt=we.pipe((0,oe.h)($e=>$e instanceof B));switch(De.observe||"body"){case"body":switch(Se.responseType){case"arraybuffer":return Mt.pipe((0,J.U)($e=>{if(null!==$e.body&&!($e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return $e.body}));case"blob":return Mt.pipe((0,J.U)($e=>{if(null!==$e.body&&!($e.body instanceof Blob))throw new Error("Response is not a Blob.");return $e.body}));case"text":return Mt.pipe((0,J.U)($e=>{if(null!==$e.body&&"string"!=typeof $e.body)throw new Error("Response is not a string.");return $e.body}));default:return Mt.pipe((0,J.U)($e=>$e.body))}case"response":return Mt;default:throw new Error(`Unreachable: unhandled observe type ${De.observe}}`)}}delete(A,fe={}){return this.request("DELETE",A,fe)}get(A,fe={}){return this.request("GET",A,fe)}head(A,fe={}){return this.request("HEAD",A,fe)}jsonp(A,fe){return this.request("JSONP",A,{params:(new Y).append(fe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(A,fe={}){return this.request("OPTIONS",A,fe)}patch(A,fe,De={}){return this.request("PATCH",A,ne(De,fe))}post(A,fe,De={}){return this.request("POST",A,ne(De,fe))}put(A,fe,De={}){return this.request("PUT",A,ne(De,fe))}}return L.\u0275fac=function(A){return new(A||L)(g.LFG(G))},L.\u0275prov=g.Yz7({token:L,factory:L.\u0275fac}),L})();function Fe(L,M){return M(L)}const Te=new g.OlP(""),Wt=new g.OlP("");let St=(()=>{class L extends G{constructor(A,fe){super(),this.backend=A,this.injector=fe,this.chain=null,this.pendingTasks=(0,g.f3M)(g.HDt)}handle(A){if(null===this.chain){const De=Array.from(new Set([...this.injector.get(Te),...this.injector.get(Wt,[])]));this.chain=De.reduceRight((Se,we)=>function lt(L,M,A){return(fe,De)=>A.runInContext(()=>M(fe,Se=>L(Se,De)))}(Se,we,this.injector),Fe)}const fe=this.pendingTasks.add();return this.chain(A,De=>this.backend.handle(De)).pipe((0,de.x)(()=>this.pendingTasks.remove(fe)))}}return L.\u0275fac=function(A){return new(A||L)(g.LFG(te),g.LFG(g.lqb))},L.\u0275prov=g.Yz7({token:L,factory:L.\u0275fac}),L})();const Ln=/^\)\]\}',?\n/;let st=(()=>{class L{constructor(A){this.xhrFactory=A}handle(A){if("JSONP"===A.method)throw new g.vHH(-2800,!1);const fe=this.xhrFactory;return(fe.\u0275loadImpl?(0,V.D)(fe.\u0275loadImpl()):(0,T.of)(null)).pipe((0,ue.w)(()=>new N.y(Se=>{const we=fe.build();if(we.open(A.method,A.urlWithParams),A.withCredentials&&(we.withCredentials=!0),A.headers.forEach((gt,Tt)=>we.setRequestHeader(gt,Tt.join(","))),A.headers.has("Accept")||we.setRequestHeader("Accept","application/json, text/plain, */*"),!A.headers.has("Content-Type")){const gt=A.detectContentTypeHeader();null!==gt&&we.setRequestHeader("Content-Type",gt)}if(A.responseType){const gt=A.responseType.toLowerCase();we.responseType="json"!==gt?gt:"text"}const Mt=A.serializeBody();let $e=null;const Ut=()=>{if(null!==$e)return $e;const gt=we.statusText||"OK",Tt=new _e(we.getAllResponseHeaders()),Vt=function Ve(L){return"responseURL"in L&&L.responseURL?L.responseURL:/^X-Request-URL:/m.test(L.getAllResponseHeaders())?L.getResponseHeader("X-Request-URL"):null}(we)||A.url;return $e=new nn({headers:Tt,status:we.status,statusText:gt,url:Vt}),$e},$t=()=>{let{headers:gt,status:Tt,statusText:Vt,url:jn}=Ut(),zt=null;204!==Tt&&(zt=typeof we.response>"u"?we.responseText:we.response),0===Tt&&(Tt=zt?200:0);let qn=Tt>=200&&Tt<300;if("json"===A.responseType&&"string"==typeof zt){const Tn=zt;zt=zt.replace(Ln,"");try{zt=""!==zt?JSON.parse(zt):null}catch(ln){zt=Tn,qn&&(qn=!1,zt={error:ln,text:zt})}}qn?(Se.next(new B({body:zt,headers:gt,status:Tt,statusText:Vt,url:jn||void 0})),Se.complete()):Se.error(new W({error:zt,headers:gt,status:Tt,statusText:Vt,url:jn||void 0}))},Ot=gt=>{const{url:Tt}=Ut(),Vt=new W({error:gt,status:we.status||0,statusText:we.statusText||"Unknown Error",url:Tt||void 0});Se.error(Vt)};let qe=!1;const nr=gt=>{qe||(Se.next(Ut()),qe=!0);let Tt={type:_t.DownloadProgress,loaded:gt.loaded};gt.lengthComputable&&(Tt.total=gt.total),"text"===A.responseType&&we.responseText&&(Tt.partialText=we.responseText),Se.next(Tt)},En=gt=>{let Tt={type:_t.UploadProgress,loaded:gt.loaded};gt.lengthComputable&&(Tt.total=gt.total),Se.next(Tt)};return we.addEventListener("load",$t),we.addEventListener("error",Ot),we.addEventListener("timeout",Ot),we.addEventListener("abort",Ot),A.reportProgress&&(we.addEventListener("progress",nr),null!==Mt&&we.upload&&we.upload.addEventListener("progress",En)),we.send(Mt),Se.next({type:_t.Sent}),()=>{we.removeEventListener("error",Ot),we.removeEventListener("abort",Ot),we.removeEventListener("load",$t),we.removeEventListener("timeout",Ot),A.reportProgress&&(we.removeEventListener("progress",nr),null!==Mt&&we.upload&&we.upload.removeEventListener("progress",En)),we.readyState!==we.DONE&&we.abort()}})))}}return L.\u0275fac=function(A){return new(A||L)(g.LFG(ee.JF))},L.\u0275prov=g.Yz7({token:L,factory:L.\u0275fac}),L})();const Ft=new g.OlP("XSRF_ENABLED"),mt=new g.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Ue=new g.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Er{}let Cr=(()=>{class L{constructor(A,fe,De){this.doc=A,this.platform=fe,this.cookieName=De,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const A=this.doc.cookie||"";return A!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,ee.Mx)(A,this.cookieName),this.lastCookieString=A),this.lastToken}}return L.\u0275fac=function(A){return new(A||L)(g.LFG(ee.K0),g.LFG(g.Lbi),g.LFG(mt))},L.\u0275prov=g.Yz7({token:L,factory:L.\u0275fac}),L})();function Kn(L,M){const A=L.url.toLowerCase();if(!(0,g.f3M)(Ft)||"GET"===L.method||"HEAD"===L.method||A.startsWith("http://")||A.startsWith("https://"))return M(L);const fe=(0,g.f3M)(Er).getToken(),De=(0,g.f3M)(Ue);return null!=fe&&!L.headers.has(De)&&(L=L.clone({headers:L.headers.set(De,fe)})),M(L)}function _r(...L){const M=[le,st,St,{provide:G,useExisting:St},{provide:te,useExisting:st},{provide:Te,useValue:Kn,multi:!0},{provide:Ft,useValue:!0},{provide:Er,useClass:Cr}];for(const A of L)M.push(...A.\u0275providers);return(0,g.MR2)(M)}},2029:(Pe,Z,C)=>{C.d(Z,{tb:()=>yd,AFp:()=>rh,z2F:()=>Gi,Ojb:()=>AD,sBO:()=>UI,Sil:()=>eI,EJc:()=>Xw,ktI:()=>As,Xts:()=>Ms,SBq:()=>Rs,lqb:()=>Fr,qLn:()=>Si,vpe:()=>Hr,XFs:()=>Ve,OlP:()=>Ct,zs3:()=>mr,ZZ4:()=>Id,aQg:()=>Md,soG:()=>Ou,YKP:()=>qg,h0i:()=>Go,R0b:()=>Fn,Lbi:()=>Jc,g9A:()=>oh,Qsj:()=>GD,FYo:()=>dh,JOm:()=>La,Rgc:()=>Ys,dDg:()=>MI,eoX:()=>rv,GfV:()=>fh,s_b:()=>Ru,ifc:()=>$t,gHi:()=>nu,VuI:()=>lM,Flj:()=>sa,MMx:()=>Xg,Lck:()=>P_,G48:()=>jI,Gpc:()=>Qe,RIp:()=>Xf,f3M:()=>M,X6Q:()=>kI,$WT:()=>Zn,MR2:()=>Wc,tdS:()=>ca,rg0:()=>la,c2e:()=>Gm,zSh:()=>qc,HDt:()=>Wm,wAp:()=>Bi,vHH:()=>K,lri:()=>tv,rWj:()=>nv,cg1:()=>$l,kL8:()=>Eg,dqk:()=>Ue,iPO:()=>OI,Z0I:()=>Dr,eJc:()=>sd,QGY:()=>xl,F4k:()=>Ip,RDi:()=>Qy,AaK:()=>Ie,qOj:()=>wl,Xq5:()=>rp,TTD:()=>v,_Bn:()=>Yg,jDz:()=>Qg,xp6:()=>Ah,uIk:()=>Ml,ekj:()=>Ul,Suo:()=>Im,Xpm:()=>Ir,lG2:()=>Do,Yz7:()=>wt,cJS:()=>gn,oAB:()=>An,Yjl:()=>Jo,Y36:()=>Ti,_UZ:()=>Nl,BQk:()=>yu,ynx:()=>vu,qZA:()=>mu,TgZ:()=>gu,EpF:()=>wp,n5z:()=>Kd,LFG:()=>It,$8M:()=>vc,NdJ:()=>Fl,CRH:()=>Mm,oxw:()=>Rp,ALo:()=>lm,lcZ:()=>dm,Q6J:()=>Ol,MGl:()=>Du,iGM:()=>wm,MAs:()=>Dp,KtG:()=>oc,CHM:()=>rc,P3R:()=>Yf,YNc:()=>mp,_uU:()=>Jp,Oqu:()=>Bl,hij:()=>_u});var g=C(8645),T=C(7394),V=C(5619),N=C(5592),j=C(7537),oe=C(4829),J=C(6232),de=C(4564),ue=C(2664),G=C(2096),te=C(3020),_e=C(4664),Q=C(3997);function he(e){for(let t in e)if(e[t]===he)return t;throw Error("Could not find renamed property on target object.")}function He(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ie(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ie).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 Ge(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ct=he({__forward_ref__:he});function Qe(e){return e.__forward_ref__=Qe,e.toString=function(){return Ie(this())},e}function Y(e){return me(e)?e():e}function me(e){return"function"==typeof e&&e.hasOwnProperty(ct)&&e.__forward_ref__===Qe}function pe(e){return e&&!!e.\u0275providers}const Ce="https://g.co/ng/security#xss";class K extends Error{constructor(t,n){super(function tt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Me(e){return"string"==typeof e?e:null==e?"":String(e)}function B(e,t){throw new K(-201,!1)}function ht(e,t){null==e&&function Te(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function wt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function gn(e){return{providers:e.providers||[],imports:e.imports||[]}}function ur(e){return Sn(e,it)||Sn(e,cr)}function Dr(e){return null!==ur(e)}function Sn(e,t){return e.hasOwnProperty(t)?e[t]:null}function Zt(e){return e&&(e.hasOwnProperty(nt)||e.hasOwnProperty(Ln))?e[nt]:null}const it=he({\u0275prov:he}),nt=he({\u0275inj:he}),cr=he({ngInjectableDef:he}),Ln=he({ngInjectorDef:he});var Ve=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Ve||{});let st;function Ft(){return st}function Xt(e){const t=st;return st=e,t}function mt(e,t,n){const r=ur(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Ve.Optional?null:void 0!==t?t:void B(Ie(e))}const Ue=globalThis,q={},x="__NG_DI_FLAG__",S="ngTempTokenPath",se=/\n/gm,Be="__source";let ft;function Dt(e){const t=ft;return ft=e,t}function mn(e,t=Ve.Default){if(void 0===ft)throw new K(-203,!1);return null===ft?mt(e,void 0,t):ft.get(e,t&Ve.Optional?null:void 0,t)}function It(e,t=Ve.Default){return(Ft()||mn)(Y(e),t)}function M(e,t=Ve.Default){return It(e,A(t))}function A(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function fe(e){const t=[];for(let n=0;nt){s=i-1;break}}}for(;ii?"":o[I+1].toLowerCase();const F=8&r?P:null;if(F&&-1!==qn(F,m,0)||2&r&&m!==P){if(Cn(r))return!1;s=!0}}}}else{if(!s&&!Cn(r)&&!Cn(f))return!1;if(s&&Cn(f))continue;s=!1,r=f|1&r}}return Cn(r)||s}function Cn(e){return 0==(1&e)}function Qs(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+u+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Cn(s)&&(t+=Zo(i,o),o=""),r=s,i=i||!Cn(r);n++}return""!==o&&(t+=Zo(i,o)),t}function Ir(e){return $e(()=>{const t=Vr(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ut.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||$t.Emulated,styles:e.styles||qe,_:null,schemas:e.schemas||null,tView:null,id:""};Eo(n);const r=e.dependencies;return n.directiveDefs=br(r,!1),n.pipeDefs=br(r,!0),n.id=function zr(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function vo(e){return rt(e)||Yt(e)}function oo(e){return null!==e}function An(e){return $e(()=>({type:e.type,bootstrap:e.bootstrap||qe,declarations:e.declarations||qe,imports:e.imports||qe,exports:e.exports||qe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function yo(e,t){if(null==e)return Ot;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 Do(e){return $e(()=>{const t=Vr(e);return Eo(t),t})}function Jo(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 rt(e){return e[nr]||null}function Yt(e){return e[En]||null}function rn(e){return e[gt]||null}function Zn(e){const t=rt(e)||Yt(e)||rn(e);return null!==t&&t.standalone}function dn(e,t){const n=e[Tt]||null;if(!n&&!0===t)throw new Error(`Type ${Ie(e)} does not have '\u0275mod' property.`);return n}function Vr(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,inputTransforms:null,inputConfig:e.inputs||Ot,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||qe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:yo(e.inputs,t),outputs:yo(e.outputs)}}function Eo(e){e.features?.forEach(t=>t(e))}function br(e,t){if(!e)return null;const n=t?rn:vo;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(oo)}const Pt=0,be=1,Ze=2,Rt=3,en=4,Gr=5,tn=6,rr=7,jt=8,Xn=9,Sr=10,Ye=11,Wr=12,Zi=13,io=14,Ht=15,_o=16,Kr=17,Qn=18,Tr=19,Xi=20,or=21,On=22,fn=23,dr=24,Je=25,wo=1,ei=2,Hn=7,Ar=9,Lt=11;function vn(e){return Array.isArray(e)&&"object"==typeof e[wo]}function hn(e){return Array.isArray(e)&&!0===e[wo]}function fr(e){return 0!=(4&e.flags)}function Pn(e){return e.componentOffset>-1}function Mo(e){return 1==(1&e.flags)}function Bn(e){return!!e.template}function bo(e){return 0!=(512&e[Ze])}function hr(e,t){return e.hasOwnProperty(Vt)?e[Vt]:null}const To=Symbol("SIGNAL");function ri(e,t,n={}){return t[To]=e,Object.assign(t,n)}function Ro(e,t){return(null===e||"object"!=typeof e)&&Object.is(e,t)}let uo=Ue.WeakRef??class ns{constructor(t){this.ref=t}deref(){return this.ref}},ia=0,Jn=null,Ao=!1;function Bt(e){const t=Jn;return Jn=e,t}class Oo{constructor(){this.id=ia++,this.ref=function rs(e){return new uo(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(null!=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=Ao;Ao=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();null!=o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{Ao=t}}producerAccessed(){if(Ao)throw new Error("");if(null===Jn)return;let t=Jn.producers.get(this.id);void 0===t?(t={consumerNode:Jn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Jn.trackingVersion},Jn.producers.set(this.id,t),this.consumers.set(Jn.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=Jn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Jn?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}function sa(e,t){const n=new os(e,t?.equal??Ro);return ri(n,n.signal.bind(n))}const Po=Symbol("UNSET"),oi=Symbol("COMPUTING"),co=Symbol("ERRORED");class os extends Oo{constructor(t,n){super(),this.computation=t,this.equal=n,this.value=Po,this.error=null,this.stale=!0,this.consumerAllowSignalWrites=!1}onConsumerDependencyMayHaveChanged(){this.stale||(this.stale=!0,this.producerMayHaveChanged())}onProducerUpdateValueVersion(){if(this.stale){if(this.value!==Po&&this.value!==oi&&!this.consumerPollProducersForChange())return void(this.stale=!1);this.recomputeValue()}}recomputeValue(){if(this.value===oi)throw new Error("Detected cycle in computations.");const t=this.value;this.value=oi,this.trackingVersion++;const n=Bt(this);let r;try{r=this.computation()}catch(o){r=co,this.error=o}finally{Bt(n)}this.stale=!1,t!==Po&&t!==co&&r!==co&&this.equal(t,r)?this.value=t:(this.value=r,this.valueVersion++)}signal(){if(this.onProducerUpdateValueVersion(),this.producerAccessed(),this.value===co)throw this.error;return this.value}}let aa=function is(){throw new Error};function No(){aa()}class ua extends Oo{constructor(t,n){super(),this.value=t,this.equal=n,this.consumerAllowSignalWrites=!1}onConsumerDependencyMayHaveChanged(){}onProducerUpdateValueVersion(){}set(t){this.producerUpdatesAllowed||No(),this.equal(this.value,t)||(this.value=t,this.valueVersion++,this.producerMayHaveChanged())}update(t){this.producerUpdatesAllowed||No(),this.set(t(this.value))}mutate(t){this.producerUpdatesAllowed||No(),t(this.value),this.valueVersion++,this.producerMayHaveChanged()}asReadonly(){return void 0===this.readonlySignal&&(this.readonlySignal=ri(this,()=>this.signal())),this.readonlySignal}signal(){return this.producerAccessed(),this.value}}function ca(e,t){const n=new ua(e,t?.equal??Ro);return ri(n,n.signal.bind(n),{set:n.set.bind(n),update:n.update.bind(n),mutate:n.mutate.bind(n),asReadonly:n.asReadonly.bind(n)})}function la(e){const t=Bt(null);try{return e()}finally{Bt(t)}}const as=()=>{};class Xr extends Oo{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=as,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=Bt(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=as,this.watch(this.registerOnCleanup)}finally{Bt(t)}}cleanup(){this.cleanupFn()}}class l{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function v(){return p}function p(e){return e.type.prototype.ngOnChanges&&(e.setInput=b),E}function E(){const e=re(this),t=e?.current;if(t){const n=e.previous;if(n===Ot)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function b(e,t,n,r){const o=this.declaredInputs[n],i=re(e)||function Ne(e,t){return e[$]=t}(e,{previous:Ot,current:null}),s=i.current||(i.current={}),u=i.previous,f=u[o];s[o]=new l(f&&f.currentValue,t,u===Ot),e[r]=t}v.ngInherit=!0;const $="__ngSimpleChanges__";function re(e){return e[$]||null}const at=function(e,t,n){};function ze(e){for(;Array.isArray(e);)e=e[Pt];return e}function on(e,t){return ze(t[e])}function Nt(e,t){return ze(t[e.index])}function _n(e,t){return e.data[t]}function wn(e,t){return e[t]}function Gt(e,t){const n=t[e];return vn(n)?n:n[Pt]}function Pr(e,t){return null==t?null:e[t]}function da(e){e[Kr]=0}function qu(e){1024&e[Ze]||(e[Ze]|=1024,Xu(e,1))}function Zu(e){1024&e[Ze]&&(e[Ze]&=-1025,Xu(e,-1))}function Xu(e,t){let n=e[Rt];if(null===n)return;n[Gr]+=t;let r=n;for(n=n[Rt];null!==n&&(1===t&&1===r[Gr]||-1===t&&0===r[Gr]);)n[Gr]+=t,r=n,n=n[Rt]}function fa(e,t){if(256==(256&e[Ze]))throw new K(911,!1);null===e[or]&&(e[or]=[]),e[or].push(t)}const Ke={lFrame:_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function ec(){return Ke.bindingsEnabled}function ae(){return Ke.lFrame.lView}function pt(){return Ke.lFrame.tView}function rc(e){return Ke.lFrame.contextLView=e,e[jt]}function oc(e){return Ke.lFrame.contextLView=null,e}function pn(){let e=ic();for(;null!==e&&64===e.type;)e=e.parent;return e}function ic(){return Ke.lFrame.currentTNode}function gr(e,t){const n=Ke.lFrame;n.currentTNode=e,n.isParent=t}function ma(){return Ke.lFrame.isParent}function va(){Ke.lFrame.isParent=!1}function Lo(){return Ke.lFrame.bindingIndex++}function Pd(e,t){const n=Ke.lFrame;n.bindingIndex=n.bindingRootIndex=e,ya(t)}function ya(e){Ke.lFrame.currentDirectiveIndex=e}function cc(){return Ke.lFrame.currentQueryIndex}function c(e){Ke.lFrame.currentQueryIndex=e}function d(e){const t=e[be];return 2===t.type?t.declTNode:1===t.type?e[tn]:null}function a(e,t,n){if(n&Ve.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&Ve.Host||(o=d(i),null===o||(i=i[io],10&o.type))););if(null===o)return!1;t=o,e=i}const r=Ke.lFrame=y();return r.currentTNode=t,r.lView=e,!0}function h(e){const t=y(),n=e[be];Ke.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function y(){const e=Ke.lFrame,t=null===e?null:e.child;return null===t?_(e):t}function _(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 w(){const e=Ke.lFrame;return Ke.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const k=w;function ce(){const e=w();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 et(){return Ke.lFrame.selectedIndex}function Qt(e){Ke.lFrame.selectedIndex=e}function xt(){const e=Ke.lFrame;return _n(e.tView,e.selectedIndex)}let Fd=!0;function Ea(){return Fd}function lo(e){Fd=e}function Ca(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[f]<0&&(e[Kr]+=65536),(u>13>16&&(3&e[Ze])===t&&(e[Ze]+=8192,kd(u,i)):kd(u,i)}const ui=-1;class ds{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function fc(e){return e!==ui}function fs(e){return 32767&e}function hs(e,t){let n=function kv(e){return e>>16}(e),r=t;for(;n>0;)r=r[io],n--;return r}let hc=!0;function Ia(e){const t=hc;return hc=e,t}const jd=255,Ud=5;let jv=0;const xr={};function Ma(e,t){const n=Hd(e,t);if(-1!==n)return n;const r=t[be];r.firstCreatePass&&(e.injectorIndex=t.length,pc(r.data,e),pc(t,null),pc(r.blueprint,null));const o=ba(e,t),i=e.injectorIndex;if(fc(o)){const s=fs(o),u=hs(o,t),f=u[be].data;for(let m=0;m<8;m++)t[i+m]=u[s+m]|f[s+m]}return t[i+8]=o,i}function pc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Hd(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ba(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=Yd(o),null===r)return ui;if(n++,o=o[io],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return ui}function gc(e,t,n){!function Uv(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(jn)&&(r=n[jn]),null==r&&(r=n[jn]=jv++);const o=r&jd;t.data[e+(o>>Ud)]|=1<=0?t&jd:zv:t}(n);if("function"==typeof i){if(!a(t,e,r))return r&Ve.Host?Bd(o,0,r):$d(t,n,r,o);try{let s;if(s=i(r),null!=s||r&Ve.Optional)return s;B()}finally{k()}}else if("number"==typeof i){let s=null,u=Hd(e,t),f=ui,m=r&Ve.Host?t[Ht][tn]:null;for((-1===u||r&Ve.SkipSelf)&&(f=-1===u?ba(e,t):t[u+8],f!==ui&&Wd(r,!1)?(s=t[be],u=fs(f),t=hs(f,t)):u=-1);-1!==u;){const D=t[be];if(Gd(i,u,D.data)){const I=Bv(u,t,n,s,r,m);if(I!==xr)return I}f=t[u+8],f!==ui&&Wd(r,t[be].data[u+8]===m)&&Gd(i,u,t)?(s=D,u=fs(f),t=hs(f,t)):u=-1}}return o}function Bv(e,t,n,r,o,i){const s=t[be],u=s.data[e+8],D=Sa(u,s,n,null==r?Pn(u)&&hc:r!=s&&0!=(3&u.type),o&Ve.Host&&i===u);return null!==D?Uo(t,s,D,u):xr}function Sa(e,t,n,r,o){const i=e.providerIndexes,s=t.data,u=1048575&i,f=e.directiveStart,D=i>>20,P=o?u+D:e.directiveEnd;for(let F=r?u:u+D;F=f&&X.type===n)return F}if(o){const F=s[f];if(F&&Bn(F)&&F.type===n)return f}return null}function Uo(e,t,n,r){let o=e[n];const i=t.data;if(function xv(e){return e instanceof ds}(o)){const s=o;s.resolving&&function _t(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new K(-200,`Circular dependency in DI detected for ${e}${n}`)}(function We(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Me(e)}(i[n]));const u=Ia(s.canSeeViewProviders);s.resolving=!0;const m=s.injectImpl?Xt(s.injectImpl):null;a(e,r,Ve.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Pv(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=p(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!==m&&Xt(m),Ia(u),s.resolving=!1,k()}}return o}function Gd(e,t,n){return!!(n[t+(e>>Ud)]&1<{const t=e.prototype.constructor,n=t[Vt]||mc(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[Vt]||mc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function mc(e){return me(e)?()=>{const t=mc(Y(e));return t&&t()}:hr(e)}function Yd(e){const t=e[be],n=t.type;return 2===n?t.declTNode:1===n?e[tn]:null}function vc(e){return function Hv(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{const r=function yc(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 u.annotation=s,u;function u(f,m,D){const I=f.hasOwnProperty(li)?f[li]:Object.defineProperty(f,li,{value:[]})[li];for(;I.length<=D;)I.push(null);return(I[D]=I[D]||[]).push(s),f}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function pi(e,t){e.forEach(n=>Array.isArray(n)?pi(n,t):t(n))}function Zd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ta(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function er(e,t,n){let r=gi(e,t);return r>=0?e[1|r]=n:(r=~r,function Qv(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 Dc(e,t){const n=gi(e,t);if(n>=0)return e[1|n]}function gi(e,t){return function Xd(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<|^->||--!>|)/,Cy="\u200b$1\u200b";const bc=new Map;let _y=0;const Tc="__ngContext__";function Mn(e,t){vn(t)?(e[Tc]=t[Tr],function Iy(e){bc.set(e[Tr],e)}(t)):e[Tc]=t}let Rc;function Ac(e,t){return Rc(e,t)}function Ds(e){const t=e[Rt];return hn(t)?t[Rt]:t}function Df(e){return Cf(e[Wr])}function Ef(e){return Cf(e[en])}function Cf(e){for(;null!==e&&!hn(e);)e=e[en];return e}function yi(e,t,n,r,o){if(null!=r){let i,s=!1;hn(r)?i=r:vn(r)&&(s=!0,r=r[Pt]);const u=ze(r);0===e&&null!==n?null==o?Mf(t,n,u):Ho(t,n,u,o||null,!0):1===e&&null!==n?Ho(t,n,u,o||null,!0):2===e?function $a(e,t,n){const r=Ha(e,t);r&&function Vy(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,u,s):3===e&&t.destroyNode(u),null!=i&&function Wy(e,t,n,r,o){const i=n[Hn];i!==ze(n)&&yi(t,e,r,i,o);for(let u=Lt;ut.replace(Ey,Cy))}(t))}function ja(e,t,n){return e.createElement(t,n)}function wf(e,t){const n=e[Ar],r=n.indexOf(t);Zu(t),n.splice(r,1)}function Ua(e,t){if(e.length<=Lt)return;const n=Lt+t,r=e[n];if(r){const o=r[_o];null!==o&&o!==e&&wf(o,r),t>0&&(e[n-1][en]=r[en]);const i=Ta(e,Lt+t);!function Fy(e,t){Cs(e,t,t[Ye],2,null,null),t[Pt]=null,t[tn]=null}(r[be],r);const s=i[Qn];null!==s&&s.detachView(i[be]),r[Rt]=null,r[en]=null,r[Ze]&=-129}return r}function Pc(e,t){if(!(256&t[Ze])){const n=t[Ye];t[fn]?.destroy(),t[dr]?.destroy(),n.destroyNode&&Cs(e,t,n,3,null,null),function jy(e){let t=e[Wr];if(!t)return Nc(e[be],e);for(;t;){let n=null;if(vn(t))n=t[Wr];else{const r=t[Lt];r&&(n=r)}if(!n){for(;t&&!t[en]&&t!==e;)vn(t)&&Nc(t[be],t),t=t[Rt];null===t&&(t=e),vn(t)&&Nc(t[be],t),n=t&&t[en]}t=n}}(t)}}function Nc(e,t){if(!(256&t[Ze])){t[Ze]&=-129,t[Ze]|=256,function $y(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[rr]=null);const o=t[or];if(null!==o){t[or]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===$t.None||i===$t.Emulated)return null}return Nt(r,n)}}(e,t.parent,n)}function Ho(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Mf(e,t,n){e.appendChild(t,n)}function bf(e,t,n,r,o){null!==r?Ho(e,t,n,r,o):Mf(e,t,n)}function Ha(e,t){return e.parentNode(t)}let Fc,Uc,za,Rf=function Tf(e,t,n){return 40&e.type?Nt(e,n):null};function Ba(e,t,n,r){const o=xc(e,r,t),i=t[Ye],u=function Sf(e,t,n){return Rf(e,t,n)}(r.parent||t[tn],r,t);if(null!=o)if(Array.isArray(n))for(let f=0;fe,createScript:e=>e,createScriptURL:e=>e})}catch{}return za}()?.createScriptURL(e)||e}class Uf{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ce})`}}function fo(e){return e instanceof Uf?e.changingThisBreaksApplicationSecurity:e}function _s(e,t){const n=function oD(e){return e instanceof Uf&&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 ${Ce})`)}return n===t}const uD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ci=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ci||{});function Wf(e){const t=Is();return t?t.sanitize(Ci.URL,e)||"":_s(e,"URL")?fo(e):function Bc(e){return(e=String(e)).match(uD)?e:"unsafe:"+e}(Me(e))}function Kf(e){const t=Is();if(t)return jf(t.sanitize(Ci.RESOURCE_URL,e)||"");if(_s(e,"ResourceURL"))return jf(fo(e));throw new K(904,!1)}function Yf(e,t,n){return function ED(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Kf:Wf}(t,n)(e)}function Is(){const e=ae();return e&&e[Sr].sanitizer}class Ct{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=wt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ms=new Ct("ENVIRONMENT_INITIALIZER"),qf=new Ct("INJECTOR",-1),Zf=new Ct("INJECTOR_DEF_TYPES");class Gc{get(t,n=q){if(n===q){const r=new Error(`NullInjectorError: No provider for ${Ie(t)}!`);throw r.name="NullInjectorError",r}return n}}function Wc(e){return{\u0275providers:e}}function Xf(...e){return{\u0275providers:Qf(0,e),\u0275fromNgModule:!0}}function Qf(e,...t){const n=[],r=new Set;let o;const i=s=>{n.push(s)};return pi(t,s=>{const u=s;Wa(u,i,[],r)&&(o||=[],o.push(u))}),void 0!==o&&Jf(o,i),n}function Jf(e,t){for(let n=0;n{t(i,r)})}}function Wa(e,t,n,r){if(!(e=Y(e)))return!1;let o=null,i=Zt(e);const s=!i&&rt(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const f=e.ngModule;if(i=Zt(f),!i)return!1;o=f}const u=r.has(o);if(s){if(u)return!1;if(r.add(o),s.dependencies){const f="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const m of f)Wa(m,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!u){let m;r.add(o);try{pi(i.imports,D=>{Wa(D,t,n,r)&&(m||=[],m.push(D))})}finally{}void 0!==m&&Jf(m,t)}if(!u){const m=hr(o)||(()=>new o);t({provide:o,useFactory:m,deps:qe},o),t({provide:Zf,useValue:o,multi:!0},o),t({provide:Ms,useValue:()=>It(o),multi:!0},o)}const f=i.providers;if(null!=f&&!u){const m=e;Kc(f,D=>{t(D,m)})}}}return o!==e&&void 0!==e.providers}function Kc(e,t){for(let n of e)pe(n)&&(n=n.\u0275providers),Array.isArray(n)?Kc(n,t):t(n)}const CD=he({provide:String,useValue:he});function Yc(e){return null!==e&&"object"==typeof e&&CD in e}function Bo(e){return"function"==typeof e}const qc=new Ct("Set Injector scope."),Ka={},wD={};let Zc;function Ya(){return void 0===Zc&&(Zc=new Gc),Zc}class Fr{}class qa extends Fr{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,Qc(t,s=>this.processProvider(s)),this.records.set(qf,_i(void 0,this)),o.has("environment")&&this.records.set(Fr,_i(void 0,this));const i=this.records.get(qc);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Zf.multi,qe,Ve.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Dt(this),r=Xt(void 0);try{return t()}finally{Dt(n),Xt(r)}}get(t,n=q,r=Ve.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(zt))return t[zt](this);r=A(r);const i=Dt(this),s=Xt(void 0);try{if(!(r&Ve.SkipSelf)){let f=this.records.get(t);if(void 0===f){const m=function TD(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ct}(t)&&ur(t);f=m&&this.injectableDefInScope(m)?_i(Xc(t),Ka):null,this.records.set(t,f)}if(null!=f)return this.hydrate(t,f)}return(r&Ve.Self?Ya():this.parent).get(t,n=r&Ve.Optional&&n===q?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[S]=u[S]||[]).unshift(Ie(t)),i)throw u;return function we(e,t,n,r){const o=e[S];throw t[Be]&&o.unshift(t[Be]),e.message=function Mt(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Ie(t);if(Array.isArray(t))o=t.map(Ie).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let u=t[s];i.push(s+":"+("string"==typeof u?JSON.stringify(u):Ie(u)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(se,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[S]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{Xt(s),Dt(i)}}resolveInjectorInitializers(){const t=Dt(this),n=Xt(void 0);try{const o=this.get(Ms.multi,qe,Ve.Self);for(const i of o)i()}finally{Dt(t),Xt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new K(205,!1)}processProvider(t){let n=Bo(t=Y(t))?t:Y(t&&t.provide);const r=function MD(e){return Yc(e)?_i(void 0,e.useValue):_i(nh(e),Ka)}(t);if(Bo(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=_i(void 0,Ka,!0),o.factory=()=>fe(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Ka&&(n.value=wD,n.value=n.factory()),"object"==typeof n.value&&n.value&&function SD(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=Y(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 Xc(e){const t=ur(e),n=null!==t?t.factory:hr(e);if(null!==n)return n;if(e instanceof Ct)throw new K(204,!1);if(e instanceof Function)return function ID(e){const t=e.length;if(t>0)throw function ms(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new K(204,!1)}function nh(e,t,n){let r;if(Bo(e)){const o=Y(e);return hr(o)||Xc(o)}if(Yc(e))r=()=>Y(e.useValue);else if(function th(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...fe(e.deps||[]));else if(function eh(e){return!(!e||!e.useExisting)}(e))r=()=>It(Y(e.useExisting));else{const o=Y(e&&(e.useClass||e.provide));if(!function bD(e){return!!e.deps}(e))return hr(o)||Xc(o);r=()=>new o(...fe(e.deps))}return r}function _i(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Qc(e,t){for(const n of e)Array.isArray(n)?Qc(n,t):n&&pe(n)?Qc(n.\u0275providers,t):t(n)}const rh=new Ct("AppId",{providedIn:"root",factory:()=>RD}),RD="ng",oh=new Ct("Platform Initializer"),Jc=new Ct("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),AD=new Ct("CSP nonce",{providedIn:"root",factory:()=>function Ei(){if(void 0!==Uc)return Uc;if(typeof document<"u")return document;throw new K(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let sh=(e,t,n)=>null;function sl(e,t,n=!1){return sh(e,t,n)}class HD{}class ch{}class $D{resolveComponentFactory(t){throw function BD(e){const t=Error(`No component factory found for ${Ie(e)}.`);return t.ngComponent=e,t}(t)}}let tu=(()=>{class e{}return e.NULL=new $D,e})();function VD(){return Ii(pn(),ae())}function Ii(e,t){return new Rs(Nt(e,t))}let Rs=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=VD,e})();function zD(e){return e instanceof Rs?e.nativeElement:e}class dh{}let GD=(()=>{class e{constructor(){this.destroyNode=null}}return e.__NG_ELEMENT_ID__=()=>function WD(){const e=ae(),n=Gt(pn().index,e);return(vn(n)?n:e)[Ye]}(),e})(),KD=(()=>{class e{}return e.\u0275prov=wt({token:e,providedIn:"root",factory:()=>null}),e})();class fh{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const YD=new fh("16.2.0"),cl={};function nu(e){if(!Ft()&&!function vt(){return ft}())throw new K(-203,!1)}function mh(e,t=null,n=null,r){const o=vh(e,t,n,r);return o.resolveInjectorInitializers(),o}function vh(e,t=null,n=null,r,o=new Set){const i=[n||qe,Xf(e)];return r=r||("object"==typeof e?void 0:Ie(e)),new qa(i,t||Ya(),r||null,o)}let mr=(()=>{class e{static create(n,r){if(Array.isArray(n))return mh({name:""},r,n,"");{const o=n.name??"";return mh({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=q,e.NULL=new Gc,e.\u0275prov=wt({token:e,providedIn:"any",factory:()=>It(qf)}),e.__NG_ELEMENT_ID__=-1,e})(),As=(()=>{class e{}return e.__NG_ELEMENT_ID__=tE,e.__NG_ENV_ID__=t=>t,e})();class eE extends As{constructor(t){super(),this._lView=t}onDestroy(t){return fa(this._lView,t),()=>function us(e,t){if(null===e[or])return;const n=e[or].indexOf(t);-1!==n&&e[or].splice(n,1)}(this._lView,t)}}function tE(){return new eE(ae())}function Jr(e){return e instanceof Function?e():e}let ll=(()=>{class e{constructor(){this.callbacks=new Set,this.deferredCallbacks=new Set,this.renderDepth=0,this.runningCallbacks=!1}begin(){if(this.runningCallbacks)throw new K(102,!1);this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth)try{this.runningCallbacks=!0;for(const n of this.callbacks)n.invoke()}finally{this.runningCallbacks=!1;for(const n of this.deferredCallbacks)this.callbacks.add(n);this.deferredCallbacks.clear()}}register(n){(this.runningCallbacks?this.deferredCallbacks:this.callbacks).add(n)}unregister(n){this.callbacks.delete(n),this.deferredCallbacks.delete(n)}ngOnDestroy(){this.callbacks.clear(),this.deferredCallbacks.clear()}}return e.\u0275prov=wt({token:e,providedIn:"root",factory:()=>new e}),e})();function Os(e){for(;e;){e[Ze]|=64;const t=Ds(e);if(bo(e)&&!t)return e;e=t}return null}function dl(e){return e.ngOriginalError}class Si{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&&dl(t);for(;n&&dl(n);)n=dl(n);return n||null}}const _h=new Ct("",{providedIn:"root",factory:()=>!1});class bh extends Oo{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){Os(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=Bt(this);this.trackingVersion++;try{t(n,r)}finally{Bt(o)}}destroy(){this.trackingVersion++}}let ou=null;function Sh(){return ou??=new bh,ou}function Th(e,t){return e[t]??Sh()}function Rh(e,t){const n=Sh();n.hasReadASignal&&(e[t]=ou,n.lView=e,ou=new bh)}const ot={};function Ah(e){Oh(pt(),ae(),et()+e,!1)}function Oh(e,t,n,r){if(!r)if(3==(3&t[Ze])){const i=e.preOrderCheckHooks;null!==i&&_a(t,i,n)}else{const i=e.preOrderHooks;null!==i&&wa(t,i,0,n)}Qt(n)}function Ti(e,t=Ve.Default){const n=ae();return null===n?It(e,t):Vd(pn(),n,Y(e),t)}function iu(e,t,n,r,o,i,s,u,f,m,D){const I=t.blueprint.slice();return I[Pt]=o,I[Ze]=140|r,(null!==m||e&&2048&e[Ze])&&(I[Ze]|=2048),da(I),I[Rt]=I[io]=e,I[jt]=n,I[Sr]=s||e&&e[Sr],I[Ye]=u||e&&e[Ye],I[Xn]=f||e&&e[Xn]||null,I[tn]=i,I[Tr]=function wy(){return _y++}(),I[On]=D,I[Xi]=m,I[Ht]=2==t.type?e[Ht]:I,I}function Ri(e,t,n,r,o){let i=e.data[t];if(null===i)i=function fl(e,t,n,r,o){const i=ic(),s=ma(),f=e.data[t]=function DE(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,u=0;return function Fo(){return null!==Ke.skipHydrationRootTNode}()&&(u|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:u,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=f),null!==i&&(s?null==i.child&&null!==f.parent&&(i.child=f):null===i.next&&(i.next=f,f.prev=i)),f}(e,t,n,r,o),function Od(){return Ke.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function si(){const e=Ke.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return gr(i,!0),i}function Ps(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;iJe&&Oh(e,t,Je,!1),at(u?2:0,o),u)i.runInContext(n,r,o);else{const m=Bt(null);try{n(r,o)}finally{Bt(m)}}}finally{u&&null===t[fn]&&Rh(t,fn),Qt(s),at(u?3:1,o)}}function hl(e,t,n){if(fr(t)){const r=Bt(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function Fh(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Lh(n,t,o,i):r.hasOwnProperty(o)&&Lh(n,t,r[o],i)}return n}function Lh(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function tr(e,t,n,r,o,i,s,u){const f=Nt(t,n);let D,m=t.inputs;!u&&null!=m&&(D=m[r])?(Cl(e,n,D,r,o),Pn(t)&&function _E(e,t){const n=Gt(t,e);16&n[Ze]||(n[Ze]|=64)}(n,t.index)):3&t.type&&(r=function CE(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(f,r,o))}function vl(e,t,n,r){if(ec()){const o=null===r?null:{"":-1},i=function TE(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(n,r,i)}}(e,t,r,Ps(e,n,o.hostVars,ot),o)}function Lr(e,t,n,r,o,i){const s=Nt(e,t);!function Dl(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const u=null==s?Me(i):s(i,r||"",o);e.setAttribute(t,o,u,n)}}(t[Ye],s,i,e.value,n,r,o)}function xE(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let u=0;u{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 Xr(n,m=>{this.all.has(m)&&this.queue.set(m,i)},o);let u;this.all.add(s),s.notify();const f=()=>{s.cleanup(),u?.(),this.all.delete(s),this.queue.delete(s)};return u=r?.onDestroy(f),{destroy:f}}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=wt({token:e,providedIn:"root",factory:()=>new e}),e})();function au(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0){Yh(e,1);const o=e[be].components;null!==o&&Zh(e,o,1)}}function Zh(e,t,n){for(let r=0;r-1&&(Ua(t,r),Ta(n,r))}this._attachedToViewContainer=!1}Pc(this._lView[be],this._lView)}onDestroy(t){fa(this._lView,t)}markForCheck(){Os(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ze]&=-129}reattach(){this._lView[Ze]|=128}detectChanges(){uu(this._lView[be],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ky(e,t){Cs(e,t,t[Ye],2,null,null)}(this._lView[be],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new K(902,!1);this._appRef=t}}class VE extends xs{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;uu(t[be],t,t[jt],!1)}checkNoChanges(){}get context(){return null}}class Xh extends tu{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=rt(t);return new Fs(n,this.ngModule)}}function Qh(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class GE{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=A(r);const o=this.injector.get(t,cl,r);return o!==cl||n===cl?o:this.parentInjector.get(t,n,r)}}class Fs extends ch{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=Qh(t.inputs);if(null!==n)for(const o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return Qh(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function na(e){return e.map(ta).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof Fr?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new GE(t,i):t,u=s.get(dh,null);if(null===u)throw new K(407,!1);const I={rendererFactory:u,sanitizer:s.get(KD,null),effectManager:s.get(Wh,null),afterRenderEventManager:s.get(ll,null)},P=u.createRenderer(null,this.componentDef),F=this.componentDef.selectors[0][0]||"div",X=r?function pE(e,t,n,r){const i=r.get(_h,!1)||n===$t.ShadowDom,s=e.selectRootElement(t,i);return function gE(e){xh(e)}(s),s}(P,r,this.componentDef.encapsulation,s):ja(P,F,function zE(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(F)),ke=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let ie=null;null!==X&&(ie=sl(X,s,!0));const Xe=ml(0,null,null,1,0,null,null,null,null,null,null),dt=iu(null,Xe,null,ke,null,null,I,P,s,null,ie);let bt,Gn;h(dt);try{const to=this.componentDef;let Wi,Sd=null;to.findHostDirectiveDefs?(Wi=[],Sd=new Map,to.findHostDirectiveDefs(to,Wi,Sd),Wi.push(to)):Wi=[to];const fM=function KE(e,t){const n=e[be],r=Je;return e[r]=t,Ri(n,r,2,"#host",null)}(dt,X),hM=function YE(e,t,n,r,o,i,s){const u=o[be];!function qE(e,t,n,r){for(const o of e)t.mergedAttrs=Un(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(au(t,t.mergedAttrs,!0),null!==n&&Ff(r,n,t))}(r,e,t,s);let f=null;null!==t&&(f=sl(t,o[Xn]));const m=i.rendererFactory.createRenderer(t,n);let D=16;n.signals?D=4096:n.onPush&&(D=64);const I=iu(o,Nh(n),null,D,o[e.index],e,i,m,null,null,f);return u.firstCreatePass&&yl(u,e,r.length-1),su(o,I),o[e.index]=I}(fM,X,to,Wi,dt,I,P);Gn=_n(Xe,Je),X&&function XE(e,t,n,r){if(r)Tn(e,n,["ng-version",YD.full]);else{const{attrs:o,classes:i}=function Xo(e){const t=[],n=[];let r=1,o=2;for(;r0&&xf(e,n,i.join(" "))}}(P,to,X,r),void 0!==n&&function QE(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Un(o.hostAttrs,n=Un(n,o.hostAttrs))}}(r)}function cu(e){return e===Ot?{}:e===qe?[]:e}function tC(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function nC(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function rC(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function rp(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const o=t[r];Array.isArray(o)&&o[2]&&(n[r]=o[2])}e.inputTransforms=n}function lu(e){return!!Il(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Il(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function bn(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ml(e,t,n,r){const o=ae();return bn(o,Lo(),t)&&(pt(),Lr(xt(),o,e,t,n,r)),Ml}function Oi(e,t,n,r){return bn(e,Lo(),n)?t+Me(n)+r:ot}function mp(e,t,n,r,o,i,s,u){const f=ae(),m=pt(),D=e+Je,I=m.firstCreatePass?function TC(e,t,n,r,o,i,s,u,f){const m=t.consts,D=Ri(t,e,4,s||null,Pr(m,u));vl(t,n,D,Pr(m,f)),Ca(t,D);const I=D.tView=ml(2,D,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,m,null);return null!==t.queries&&(t.queries.template(t,D),I.queries=t.queries.embeddedTView(D)),D}(D,m,f,t,n,r,o,i,s):m.data[D];gr(I,!1);const P=vp(m,f,I,e);Ea()&&Ba(m,f,P,I),Mn(P,f),su(f,f[D]=Hh(P,f,P,I)),Mo(I)&&pl(m,f,I),null!=s&&gl(f,I,u)}let vp=function yp(e,t,n,r){return lo(!0),t[Ye].createComment("")};function Dp(e){return wn(function Ad(){return Ke.lFrame.contextLView}(),Je+e)}function Ol(e,t,n){const r=ae();return bn(r,Lo(),t)&&tr(pt(),xt(),r,e,t,r[Ye],n,!1),Ol}function Pl(e,t,n,r,o){const s=o?"class":"style";Cl(e,n,t.inputs[s],s,r)}function gu(e,t,n,r){const o=ae(),i=pt(),s=Je+e,u=o[Ye],f=i.firstCreatePass?function PC(e,t,n,r,o,i){const s=t.consts,f=Ri(t,e,2,r,Pr(s,o));return vl(t,n,f,Pr(s,i)),null!==f.attrs&&au(f,f.attrs,!1),null!==f.mergedAttrs&&au(f,f.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,f),f}(s,i,o,t,n,r):i.data[s],m=Ep(i,o,f,u,t,e);o[s]=m;const D=Mo(f);return gr(f,!0),Ff(u,m,f),32!=(32&f.flags)&&Ea()&&Ba(i,o,m,f),0===function pr(){return Ke.lFrame.elementDepthCount}()&&Mn(m,o),function Ju(){Ke.lFrame.elementDepthCount++}(),D&&(pl(i,o,f),hl(i,f,o)),null!==r&&gl(o,f),gu}function mu(){let e=pn();ma()?va():(e=e.parent,gr(e,!1));const t=e;(function pa(e){return Ke.skipHydrationRootTNode===e})(t)&&function nc(){Ke.skipHydrationRootTNode=null}(),function Rd(){Ke.lFrame.elementDepthCount--}();const n=pt();return n.firstCreatePass&&(Ca(n,e),fr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Fv(e){return 0!=(8&e.flags)}(t)&&Pl(n,t,ae(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Lv(e){return 0!=(16&e.flags)}(t)&&Pl(n,t,ae(),t.stylesWithoutHost,!1),mu}function Nl(e,t,n,r){return gu(e,t,n,r),mu(),Nl}let Ep=(e,t,n,r,o,i)=>(lo(!0),ja(r,o,function xd(){return Ke.lFrame.currentNamespace}()));function vu(e,t,n){const r=ae(),o=pt(),i=e+Je,s=o.firstCreatePass?function FC(e,t,n,r,o){const i=t.consts,s=Pr(i,r),u=Ri(t,e,8,"ng-container",s);return null!==s&&au(u,s,!0),vl(t,n,u,Pr(i,o)),null!==t.queries&&t.queries.elementStart(t,u),u}(i,o,r,t,n):o.data[i];gr(s,!0);const u=_p(o,r,s,e);return r[i]=u,Ea()&&Ba(o,r,u,s),Mn(u,r),Mo(s)&&(pl(o,r,s),hl(o,s,r)),null!=n&&gl(r,s),vu}function yu(){let e=pn();const t=pt();return ma()?va():(e=e.parent,gr(e,!1)),t.firstCreatePass&&(Ca(t,e),fr(e)&&t.queries.elementEnd(e)),yu}let _p=(e,t,n,r)=>(lo(!0),Oc(t[Ye],""));function wp(){return ae()}function xl(e){return!!e&&"function"==typeof e.then}function Ip(e){return!!e&&"function"==typeof e.subscribe}function Fl(e,t,n,r){const o=ae(),i=pt(),s=pn();return function bp(e,t,n,r,o,i,s){const u=Mo(r),m=e.firstCreatePass&&Vh(e),D=t[jt],I=$h(t);let P=!0;if(3&r.type||s){const ge=Nt(r,t),Re=s?s(ge):ge,ke=I.length,ie=s?dt=>s(ze(dt[r.index])):r.index;let Xe=null;if(!s&&u&&(Xe=function jC(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;if?u[f]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==Xe)(Xe.__ngLastListenerFn__||Xe).__ngNextListenerFn__=i,Xe.__ngLastListenerFn__=i,P=!1;else{i=Tp(r,t,D,i,!1);const dt=n.listen(Re,o,i);I.push(i,dt),m&&m.push(o,ie,ke,ke+1)}}else i=Tp(r,t,D,i,!1);const F=r.outputs;let X;if(P&&null!==F&&(X=F[o])){const ge=X.length;if(ge)for(let Re=0;Re-1?Gt(e.index,t):t);let f=Sp(t,n,r,s),m=i.__ngNextListenerFn__;for(;m;)f=Sp(t,n,m,s)&&f,m=m.__ngNextListenerFn__;return o&&!1===f&&s.preventDefault(),f}}function Rp(e=1){return function xe(e){return(Ke.lFrame.contextLView=function Le(e,t){for(;e>0;)t=t[io],e--;return t}(e,Ke.lFrame.contextLView))[jt]}(e)}function Du(e,t,n,r,o){const i=ae(),s=Oi(i,t,n,r);return s!==ot&&tr(pt(),xt(),i,e,s,i[Ye],o,!1),Du}function Eu(e,t){return e<<17|t<<2}function ho(e){return e>>17&32767}function Ll(e){return 2|e}function Vo(e){return(131068&e)>>2}function kl(e,t){return-131069&e|t<<2}function jl(e){return 1|e}function Up(e,t,n,r,o){const i=e[n+1],s=null===t;let u=r?ho(i):Vo(i),f=!1;for(;0!==u&&(!1===f||s);){const D=e[u+1];KC(e[u],t)&&(f=!0,e[u+1]=r?jl(D):Ll(D)),u=r?ho(D):Vo(D)}f&&(e[n+1]=r?Ll(i):jl(i))}function KC(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&gi(e,t)>=0}function Ul(e,t){return function vr(e,t,n,r){const o=ae(),i=pt(),s=function ir(e){const t=Ke.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function Yp(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[et()],s=function Kp(e,t){return t>=e.expandoStartIndex}(e,n);(function Qp(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function n0(e,t,n,r){const o=function Da(e){const t=Ke.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=Hs(n=Hl(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Hl(o,e,t,n,r),null===i){let f=function r0(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Vo(r))return e[ho(r)]}(e,t,r);void 0!==f&&Array.isArray(f)&&(f=Hl(null,e,t,f[1],r),f=Hs(f,t.attrs,r),function o0(e,t,n,r){e[ho(n?t.classBindings:t.styleBindings)]=r}(e,t,r,f))}else i=function s0(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(m=!0)):D=n,o)if(0!==f){const P=ho(e[u+1]);e[r+1]=Eu(P,u),0!==P&&(e[P+1]=kl(e[P+1],r)),e[u+1]=function VC(e,t){return 131071&e|t<<17}(e[u+1],r)}else e[r+1]=Eu(u,0),0!==u&&(e[u+1]=kl(e[u+1],r)),u=r;else e[r+1]=Eu(f,0),0===u?u=r:e[f+1]=kl(e[f+1],r),f=r;m&&(e[r+1]=Ll(e[r+1])),Up(e,D,r,!0),Up(e,D,r,!1),function WC(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&gi(i,t)>=0&&(n[r+1]=jl(n[r+1]))}(t,D,e,r,i),s=Eu(u,f),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==ot&&bn(o,s,t)&&function Zp(e,t,n,r,o,i,s,u){if(!(3&t.type))return;const f=e.data,m=f[u+1],D=function zC(e){return 1==(1&e)}(m)?Xp(f,t,n,o,Vo(m),s):void 0;Cu(D)||(Cu(i)||function $C(e){return 2==(2&e)}(m)&&(i=Xp(f,null,n,o,u,s)),function Ky(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:La.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=La.Important),e.setStyle(n,r,o,i))}}(r,s,on(et(),n),o,i))}(i,i.data[et()],o,o[Ye],e,o[s+1]=function l0(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ie(fo(e)))),e}(t,n),r,s)}(e,t,null,!0),Ul}function Hl(e,t,n,r,o){let i=null;const s=n.directiveEnd;let u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u0;){const f=e[o],m=Array.isArray(f),D=m?f[1]:f,I=null===D;let P=n[o+1];P===ot&&(P=I?qe:void 0);let F=I?Dc(P,r):D===r?P:void 0;if(m&&!Cu(F)&&(F=Dc(f,r)),Cu(F)&&(u=F,s))return u;const X=e[o+1];o=s?ho(X):Vo(X)}if(null!==t){let f=i?t.residualClasses:t.residualStyles;null!=f&&(u=Dc(f,r))}return u}function Cu(e){return void 0!==e}function Jp(e,t=""){const n=ae(),r=pt(),o=e+Je,i=r.firstCreatePass?Ri(r,o,1,t,null):r.data[o],s=eg(r,n,i,t,e);n[o]=s,Ea()&&Ba(r,n,s,i),gr(i,!1)}let eg=(e,t,n,r,o)=>(lo(!0),function ka(e,t){return e.createText(t)}(t[Ye],r));function Bl(e){return _u("",e,""),Bl}function _u(e,t,n){const r=ae(),o=Oi(r,e,t,n);return o!==ot&&function eo(e,t,n){const r=on(t,e);!function _f(e,t,n){e.setValue(t,n)}(e[Ye],r,n)}(r,et(),o),_u}const zo=void 0;var P0=["en",[["a","p"],["AM","PM"],zo],[["AM","PM"],zo,zo],[["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"]],zo,[["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"]],zo,[["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}",zo,"{1} 'at' {0}",zo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function O0(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Hi={};function $l(e){const t=function N0(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Cg(t);if(n)return n;const r=t.split("-")[0];if(n=Cg(r),n)return n;if("en"===r)return P0;throw new K(701,!1)}function Eg(e){return $l(e)[Bi.PluralCase]}function Cg(e){return e in Hi||(Hi[e]=Ue.ng&&Ue.ng.common&&Ue.ng.common.locales&&Ue.ng.common.locales[e]),Hi[e]}var Bi=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Bi||{});const $i="en-US";let _g=$i;function Gl(e,t,n,r,o){if(e=Y(e),Array.isArray(e))for(let i=0;i>20;if(Bo(e)||!e.multi){const F=new ds(m,o,Ti),X=Kl(f,t,o?D:D+P,I);-1===X?(gc(Ma(u,s),i,f),Wl(i,e,t.length),t.push(f),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(F),s.push(F)):(n[X]=F,s[X]=F)}else{const F=Kl(f,t,D+P,I),X=Kl(f,t,D,D+P),Re=X>=0&&n[X];if(o&&!Re||!o&&!(F>=0&&n[F])){gc(Ma(u,s),i,f);const ke=function O_(e,t,n,r,o){const i=new ds(e,n,Ti);return i.multi=[],i.index=t,i.componentProviders=0,Kg(i,o,r&&!n),i}(o?A_:R_,n.length,o,r,m);!o&&Re&&(n[X].providerFactory=ke),Wl(i,e,t.length,0),t.push(f),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(ke),s.push(ke)}else Wl(i,e,F>-1?F:X,Kg(n[o?X:F],m,!o&&r));!o&&r&&Re&&n[X].componentProviders++}}}function Wl(e,t,n,r){const o=Bo(t),i=function _D(e){return!!e.useClass}(t);if(o||i){const f=(i?Y(t.useClass):t).prototype.ngOnDestroy;if(f){const m=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const D=m.indexOf(n);-1===D?m.push(n,[r,f]):m[D+1].push(r,f)}else m.push(n,f)}}}function Kg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Kl(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function T_(e,t,n){const r=pt();if(r.firstCreatePass){const o=Bn(e);Gl(n,r.data,r.blueprint,o,!0),Gl(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Go{}class qg{}function P_(e,t){return new ql(e,t??null,[])}class ql extends Go{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Xh(this);const o=dn(t);this._bootstrapComponents=Jr(o.bootstrap),this._r3Injector=vh(t,n,[{provide:Go,useValue:this},{provide:tu,useValue:this.componentFactoryResolver},...r],Ie(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 Zl extends qg{constructor(t){super(),this.moduleType=t}create(t){return new ql(this.moduleType,t,[])}}class Zg extends Go{constructor(t){super(),this.componentFactoryResolver=new Xh(this),this.instance=null;const n=new qa([...t.providers,{provide:Go,useValue:this},{provide:tu,useValue:this.componentFactoryResolver}],t.parent||Ya(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Xg(e,t,n=null){return new Zg({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let x_=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Qf(0,n.type),o=r.length>0?Xg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=wt({token:e,providedIn:"environment",factory:()=>new e(It(Fr))}),e})();function Qg(e){e.getStandaloneInjector=t=>t.get(x_).getOrCreateStandaloneInjector(e)}function im(e,t,n,r,o,i){const s=t+n;return bn(e,s,o)?function kr(e,t,n){return e[t]=n}(e,s+1,i?r.call(i,o):r(o)):function Ws(e,t){const n=e[t];return n===ot?void 0:n}(e,s+1)}function lm(e,t){const n=pt();let r;const o=e+Je;n.firstCreatePass?(r=function J_(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)),u=Xt(Ti);try{const f=Ia(!1),m=i();return Ia(f),function OC(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,ae(),o,m),m}finally{Xt(u)}}function dm(e,t,n){const r=e+Je,o=ae(),i=wn(o,r);return function Ks(e,t){return e[be].data[t].pure}(o,r)?im(o,function In(){const e=Ke.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),t,i.transform,n,i):i.transform(n)}function Ql(e){return t=>{setTimeout(e,void 0,t)}}const Hr=class ow extends g.x{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 f=t;o=f.next?.bind(f),i=f.error?.bind(f),s=f.complete?.bind(f)}this.__isAsync&&(i=Ql(i),o&&(o=Ql(o)),s&&(s=Ql(s)));const u=super.subscribe({next:o,error:i,complete:s});return t instanceof T.w0&&t.add(u),u}};function iw(){return this._results[Symbol.iterator]()}class Jl{get changes(){return this._changes||(this._changes=new Hr)}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=Jl.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=iw)}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 sr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Zv(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0&&(n[o-1][en]=t),r{class e{}return e.__NG_ELEMENT_ID__=lw,e})();const uw=Ys,cw=class extends uw{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)}createEmbeddedViewImpl(t,n,r){const o=function sw(e,t,n,r){const o=t.tView,u=iu(e,o,n,4096&e[Ze]?4096:16,null,t,null,null,null,r?.injector??null,r?.hydrationInfo??null);u[_o]=e[t.index];const m=e[Qn];return null!==m&&(u[Qn]=m.createEmbeddedView(o)),_l(o,u,n),u}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:r});return new xs(o)}};function lw(){return Su(pn(),ae())}function Su(e,t){return 4&e.type?new cw(t,e,Ii(e,t)):null}let Ru=(()=>{class e{}return e.__NG_ELEMENT_ID__=mw,e})();function mw(){return ym(pn(),ae())}const vw=Ru,mm=class extends vw{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ii(this._hostTNode,this._hostLView)}get injector(){return new Nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=ba(this._hostTNode,this._hostLView);if(fc(t)){const n=hs(t,this._hostLView),r=fs(t);return new Nn(n[be].data[r+8],n)}return new Nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=vm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Lt}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const u=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(u,o,false),u}createComponent(t,n,r,o,i){const s=t&&!function gs(e){return"function"==typeof e}(t);let u;if(s)u=n;else{const ge=n||{};u=ge.index,r=ge.injector,o=ge.projectableNodes,i=ge.environmentInjector||ge.ngModuleRef}const f=s?t:new Fs(rt(t)),m=r||this.parentInjector;if(!i&&null==f.ngModule){const Re=(s?m:this.parentInjector).get(Fr,null);Re&&(i=Re)}rt(f.componentType??{});const F=f.create(m,o,null,i);return this.insertImpl(F.hostView,u,false),F}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView;if(function ii(e){return hn(e[Rt])}(o)){const f=this.indexOf(t);if(-1!==f)this.detach(f);else{const m=o[Rt],D=new mm(m,m[tn],m[Rt]);D.detach(D.indexOf(t))}}const s=this._adjustIndex(n),u=this._lContainer;return aw(u,o,s,!r),t.attachToViewContainerRef(),Zd(ed(u),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=vm(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Ua(this._lContainer,n);r&&(Ta(ed(this._lContainer),n),Pc(r[be],r))}detach(t){const n=this._adjustIndex(t,-1),r=Ua(this._lContainer,n);return r&&null!=Ta(ed(this._lContainer),n)?new xs(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function vm(e){return e[8]}function ed(e){return e[8]||(e[8]=[])}function ym(e,t){let n;const r=t[e.index];return hn(r)?n=r:(n=Hh(r,t,null,e),t[e.index]=n,su(t,n)),Dm(n,t,e,r),new mm(n,e,t)}let Dm=function Em(e,t,n,r){if(e[Hn])return;let o;o=8&n.type?ze(r):function yw(e,t){const n=e[Ye],r=n.createComment(""),o=Nt(t,e);return Ho(n,Ha(n,o),r,function zy(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[Hn]=o};class td{constructor(t){this.queryList=t,this.matches=null}clone(){return new td(this.queryList)}setDirty(){this.queryList.setDirty()}}class nd{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;i0)r.push(s[u/2]);else{const m=i[u+1],D=t[-f];for(let I=Lt;I{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=M(qw,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(xl(i))n.push(i);else if(Ip(i)){const s=new Promise((u,f)=>{i.subscribe({complete:u,error:f})});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=wt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Gm=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=wt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Ou=new Ct("LocaleId",{providedIn:"root",factory:()=>M(Ou,Ve.Optional|Ve.SkipSelf)||function Zw(){return typeof $localize<"u"&&$localize.locale||$i}()}),Xw=new Ct("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Wm=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new V.X(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=wt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Jw{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let eI=(()=>{class e{compileModuleSync(n){return new Zl(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Jr(dn(n).declarations).reduce((s,u)=>{const f=rt(u);return f&&s.push(new Fs(f)),s},[]);return new Jw(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=wt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Zm(...e){}class Fn{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Hr(!1),this.onMicrotaskEmpty=new Hr(!1),this.onStable=new Hr(!1),this.onError=new Hr(!1),typeof Zone>"u")throw new K(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 EI(){const e="function"==typeof Ue.requestAnimationFrame;let t=Ue[e?"requestAnimationFrame":"setTimeout"],n=Ue[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function wI(e){const t=()=>{!function _I(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ue,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,gd(e),e.isCheckStableRunning=!0,pd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),gd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,u)=>{try{return Xm(e),n.invokeTask(o,i,s,u)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Qm(e)}},onInvoke:(n,r,o,i,s,u,f)=>{try{return Xm(e),n.invoke(o,i,s,u,f)}finally{e.shouldCoalesceRunChangeDetection&&t(),Qm(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,gd(e),pd(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(!Fn.isInAngularZone())throw new K(909,!1)}static assertNotInAngularZone(){if(Fn.isInAngularZone())throw new K(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,CI,Zm,Zm);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 CI={};function pd(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 gd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Xm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Qm(e){e._nesting--,pd(e)}const Jm=new Ct("",{providedIn:"root",factory:ev});function ev(){const e=M(Fn);let t=!0;return function ee(...e){const t=(0,de.yG)(e),n=(0,de._6)(e,1/0),r=e;return r.length?1===r.length?(0,oe.Xf)(r[0]):(0,j.J)(n)((0,ue.D)(r,t)):J.E}(new N.y(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new N.y(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{Fn.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{Fn.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe((0,te.B)()))}const tv=new Ct(""),nv=new Ct("");let md,MI=(()=>{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,md||(function bI(e){md=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:()=>{Fn.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let 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)(It(Fn),It(rv),It(nv))},e.\u0275prov=wt({token:e,factory:e.\u0275fac}),e})(),rv=(()=>{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 md?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=wt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),po=null;const vd=new Ct("PlatformDestroyListeners"),yd=new Ct("appBootstrapListener");function OI(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e,o=function AI(e=[]){if(po)return po;const t=function av(e=[],t){return mr.create({name:t,providers:[{provide:qc,useValue:"platform"},{provide:vd,useValue:new Set([()=>po=null])},...e]})}(e);return po=t,function iv(){!function ss(e){aa=e}(()=>{throw new K(600,!1)})}(),function sv(e){e.get(oh,null)?.forEach(n=>n())}(t),t}(r),i=[LI(),...n||[]],u=new Zg({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,f=u.get(Fn);return f.run(()=>{u.resolveInjectorInitializers();const m=u.get(Si,null);let D;f.runOutsideAngular(()=>{D=f.onError.subscribe({next:F=>{m.handleError(F)}})});const I=()=>u.destroy(),P=o.get(vd);return P.add(I),u.onDestroy(()=>{D.unsubscribe(),P.delete(I)}),function lv(e,t,n){try{const r=n();return xl(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(m,f,()=>{const F=u.get(dd);return F.runInitializers(),F.donePromise.then(()=>{!function wg(e){ht(e,"Expected localeId to be defined"),"string"==typeof e&&(_g=e.toLowerCase().replace(/_/g,"-"))}(u.get(Ou,$i)||$i);const ge=u.get(Gi);return void 0!==t&&ge.bootstrap(t),ge})})})}catch(t){return Promise.reject(t)}}let Gi=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=M(hv),this.zoneIsStable=M(Jm),this.componentTypes=[],this.components=[],this.isStable=M(Wm).hasPendingTasks.pipe((0,_e.w)(n=>n?(0,G.of)(!1):this.zoneIsStable),(0,Q.x)(),(0,te.B)()),this._injector=M(Fr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof ch;if(!this._injector.get(dd).done)throw!o&&Zn(n),new K(405,!1);let s;s=o?n:this._injector.get(tu).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const u=function TI(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Go),m=s.create(mr.NULL,[],r||s.selector,u),D=m.location.nativeElement,I=m.injector.get(tv,null);return I?.registerApplication(D),m.onDestroy(()=>{this.detachView(m.hostView),Nu(this.components,m),I?.unregisterApplication(D)}),this._loadComponent(m),m}tick(){if(this._runningTick)throw new K(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;Nu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(yd,[]);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),()=>Nu(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new K(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=wt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Nu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const hv=new Ct("",{providedIn:"root",factory:()=>M(Si).handleError.bind(void 0)});function xI(){const e=M(Fn),t=M(Si);return n=>e.runOutsideAngular(()=>t.handleError(n))}let FI=(()=>{class e{constructor(){this.zone=M(Fn),this.applicationRef=M(Gi)}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=wt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function pv(e){return[{provide:Fn,useFactory:e},{provide:Ms,multi:!0,useFactory:()=>{const t=M(FI,{optional:!0});return()=>t.initialize()}},{provide:hv,useFactory:xI},{provide:Jm,useFactory:ev}]}function LI(e){return Wc([[],pv(()=>new Fn(function cv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}(e)))])}function kI(){return!1}function jI(){}let UI=(()=>{class e{}return e.__NG_ELEMENT_ID__=HI,e})();function HI(e){return function BI(e,t,n){if(Pn(e)&&!n){const r=Gt(e.index,t);return new xs(r,r)}return 47&e.type?new xs(t[Ht],t):null}(pn(),ae(),16==(16&e))}class yv{constructor(){}supports(t){return lu(t)}create(t){return new KI(t)}}const WI=(e,t)=>t;class KI{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||WI}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,u),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,u,s,o)),Object.is(n.item,u)||this._addIdentityChange(n,u)):(n=this._mismatch(n,u,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 YI(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 Dv),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 Dv),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 YI{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 qI{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 Dv{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new qI,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 Ev(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new XI(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class XI{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function _v(){return new Id([new yv])}let Id=(()=>{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||_v()),deps:[[e,new _c,new Cc]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new K(901,!1)}}return e.\u0275prov=wt({token:e,providedIn:"root",factory:_v}),e})();function wv(){return new Md([new Cv])}let Md=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||wv()),deps:[[e,new _c,new Cc]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new K(901,!1)}}return e.\u0275prov=wt({token:e,providedIn:"root",factory:wv}),e})();function lM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},6593:(Pe,Z,C)=>{C.d(Z,{Cg:()=>O,Dx:()=>Dr});var g=C(2029),T=C(6814);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class N extends V{static makeCurrent(){(0,T.HT)(new N)}onAndCancel(x,S,U){return x.addEventListener(S,U),()=>{x.removeEventListener(S,U)}}dispatchEvent(x,S){x.dispatchEvent(S)}remove(x){x.parentNode&&x.parentNode.removeChild(x)}createElement(x,S){return(S=S||this.getDefaultDocument()).createElement(x)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(x){return x.nodeType===Node.ELEMENT_NODE}isShadowRoot(x){return x instanceof DocumentFragment}getGlobalEventTarget(x,S){return"window"===S?window:"document"===S?x:"body"===S?x.body:null}getBaseHref(x){const S=function oe(){return j=j||document.querySelector("base"),j?j.getAttribute("href"):null}();return null==S?null:function de(q){J=J||document.createElement("a"),J.setAttribute("href",q);const x=J.pathname;return"/"===x.charAt(0)?x:`/${x}`}(S)}resetBaseElement(){j=null}getUserAgent(){return window.navigator.userAgent}getCookie(x){return(0,T.Mx)(document.cookie,x)}}let J,j=null,ee=(()=>{class q{build(){return new XMLHttpRequest}}return q.\u0275fac=function(S){return new(S||q)},q.\u0275prov=g.Yz7({token:q,factory:q.\u0275fac}),q})();const G=new g.OlP("EventManagerPlugins");let te=(()=>{class q{constructor(S,U){this._zone=U,this._eventNameToPlugin=new Map,S.forEach(se=>{se.manager=this}),this._plugins=S.slice().reverse()}addEventListener(S,U,se){return this._findPluginFor(U).addEventListener(S,U,se)}getZone(){return this._zone}_findPluginFor(S){let U=this._eventNameToPlugin.get(S);if(U)return U;if(U=this._plugins.find(Oe=>Oe.supports(S)),!U)throw new g.vHH(5101,!1);return this._eventNameToPlugin.set(S,U),U}}return q.\u0275fac=function(S){return new(S||q)(g.LFG(G),g.LFG(g.R0b))},q.\u0275prov=g.Yz7({token:q,factory:q.\u0275fac}),q})();class _e{constructor(x){this._doc=x}}const Q="ng-app-id";let he=(()=>{class q{constructor(S,U,se,Oe={}){this.doc=S,this.appId=U,this.nonce=se,this.platformId=Oe,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,T.PM)(Oe),this.resetHostNodes()}addStyles(S){for(const U of S)1===this.changeUsageCount(U,1)&&this.onStyleAdded(U)}removeStyles(S){for(const U of S)this.changeUsageCount(U,-1)<=0&&this.onStyleRemoved(U)}ngOnDestroy(){const S=this.styleNodesInDOM;S&&(S.forEach(U=>U.remove()),S.clear());for(const U of this.getAllStyles())this.onStyleRemoved(U);this.resetHostNodes()}addHost(S){this.hostNodes.add(S);for(const U of this.getAllStyles())this.addStyleToHost(S,U)}removeHost(S){this.hostNodes.delete(S)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(S){for(const U of this.hostNodes)this.addStyleToHost(U,S)}onStyleRemoved(S){const U=this.styleRef;U.get(S)?.elements?.forEach(se=>se.remove()),U.delete(S)}collectServerRenderedStyles(){const S=this.doc.head?.querySelectorAll(`style[${Q}="${this.appId}"]`);if(S?.length){const U=new Map;return S.forEach(se=>{null!=se.textContent&&U.set(se.textContent,se)}),U}return null}changeUsageCount(S,U){const se=this.styleRef;if(se.has(S)){const Oe=se.get(S);return Oe.usage+=U,Oe.usage}return se.set(S,{usage:U,elements:[]}),U}getStyleElement(S,U){const se=this.styleNodesInDOM,Oe=se?.get(U);if(Oe?.parentNode===S)return se.delete(U),Oe.removeAttribute(Q),Oe;{const Be=this.doc.createElement("style");return this.nonce&&Be.setAttribute("nonce",this.nonce),Be.textContent=U,this.platformIsServer&&Be.setAttribute(Q,this.appId),Be}}addStyleToHost(S,U){const se=this.getStyleElement(S,U);S.appendChild(se);const Oe=this.styleRef,Be=Oe.get(U)?.elements;Be?Be.push(se):Oe.set(U,{elements:[se],usage:1})}resetHostNodes(){const S=this.hostNodes;S.clear(),S.add(this.doc.head)}}return q.\u0275fac=function(S){return new(S||q)(g.LFG(T.K0),g.LFG(g.AFp),g.LFG(g.Ojb,8),g.LFG(g.Lbi))},q.\u0275prov=g.Yz7({token:q,factory:q.\u0275fac}),q})();const He={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/"},Ie=/%COMP%/g,me=new g.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Ce(q,x){return x.map(S=>S.replace(Ie,q))}let K=(()=>{class q{constructor(S,U,se,Oe,Be,ft,vt,Dt=null){this.eventManager=S,this.sharedStylesHost=U,this.appId=se,this.removeStylesOnCompDestroy=Oe,this.doc=Be,this.platformId=ft,this.ngZone=vt,this.nonce=Dt,this.rendererByCompId=new Map,this.platformIsServer=(0,T.PM)(ft),this.defaultRenderer=new tt(S,Be,vt,this.platformIsServer)}createRenderer(S,U){if(!S||!U)return this.defaultRenderer;this.platformIsServer&&U.encapsulation===g.ifc.ShadowDom&&(U={...U,encapsulation:g.ifc.Emulated});const se=this.getOrCreateRenderer(S,U);return se instanceof B?se.applyToHost(S):se instanceof nn&&se.applyStyles(),se}getOrCreateRenderer(S,U){const se=this.rendererByCompId;let Oe=se.get(U.id);if(!Oe){const Be=this.doc,ft=this.ngZone,vt=this.eventManager,Dt=this.sharedStylesHost,mn=this.removeStylesOnCompDestroy,It=this.platformIsServer;switch(U.encapsulation){case g.ifc.Emulated:Oe=new B(vt,Dt,U,this.appId,mn,Be,ft,It);break;case g.ifc.ShadowDom:return new Jt(vt,Dt,S,U,Be,ft,this.nonce,It);default:Oe=new nn(vt,Dt,U,mn,Be,ft,It)}se.set(U.id,Oe)}return Oe}ngOnDestroy(){this.rendererByCompId.clear()}}return q.\u0275fac=function(S){return new(S||q)(g.LFG(te),g.LFG(he),g.LFG(g.AFp),g.LFG(me),g.LFG(T.K0),g.LFG(g.Lbi),g.LFG(g.R0b),g.LFG(g.Ojb))},q.\u0275prov=g.Yz7({token:q,factory:q.\u0275fac}),q})();class tt{constructor(x,S,U,se){this.eventManager=x,this.doc=S,this.ngZone=U,this.platformIsServer=se,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(x,S){return S?this.doc.createElementNS(He[S]||S,x):this.doc.createElement(x)}createComment(x){return this.doc.createComment(x)}createText(x){return this.doc.createTextNode(x)}appendChild(x,S){(_t(x)?x.content:x).appendChild(S)}insertBefore(x,S,U){x&&(_t(x)?x.content:x).insertBefore(S,U)}removeChild(x,S){x&&x.removeChild(S)}selectRootElement(x,S){let U="string"==typeof x?this.doc.querySelector(x):x;if(!U)throw new g.vHH(-5104,!1);return S||(U.textContent=""),U}parentNode(x){return x.parentNode}nextSibling(x){return x.nextSibling}setAttribute(x,S,U,se){if(se){S=se+":"+S;const Oe=He[se];Oe?x.setAttributeNS(Oe,S,U):x.setAttribute(S,U)}else x.setAttribute(S,U)}removeAttribute(x,S,U){if(U){const se=He[U];se?x.removeAttributeNS(se,S):x.removeAttribute(`${U}:${S}`)}else x.removeAttribute(S)}addClass(x,S){x.classList.add(S)}removeClass(x,S){x.classList.remove(S)}setStyle(x,S,U,se){se&(g.JOm.DashCase|g.JOm.Important)?x.style.setProperty(S,U,se&g.JOm.Important?"important":""):x.style[S]=U}removeStyle(x,S,U){U&g.JOm.DashCase?x.style.removeProperty(S):x.style[S]=""}setProperty(x,S,U){x[S]=U}setValue(x,S){x.nodeValue=S}listen(x,S,U){if("string"==typeof x&&!(x=(0,T.q)().getGlobalEventTarget(this.doc,x)))throw new Error(`Unsupported event target ${x} for event ${S}`);return this.eventManager.addEventListener(x,S,this.decoratePreventDefault(U))}decoratePreventDefault(x){return S=>{if("__ngUnwrap__"===S)return x;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>x(S)):x(S))&&S.preventDefault()}}}function _t(q){return"TEMPLATE"===q.tagName&&void 0!==q.content}class Jt extends tt{constructor(x,S,U,se,Oe,Be,ft,vt){super(x,Oe,Be,vt),this.sharedStylesHost=S,this.hostEl=U,this.shadowRoot=U.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Dt=Ce(se.id,se.styles);for(const mn of Dt){const It=document.createElement("style");ft&&It.setAttribute("nonce",ft),It.textContent=mn,this.shadowRoot.appendChild(It)}}nodeOrShadowRoot(x){return x===this.hostEl?this.shadowRoot:x}appendChild(x,S){return super.appendChild(this.nodeOrShadowRoot(x),S)}insertBefore(x,S,U){return super.insertBefore(this.nodeOrShadowRoot(x),S,U)}removeChild(x,S){return super.removeChild(this.nodeOrShadowRoot(x),S)}parentNode(x){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(x)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class nn extends tt{constructor(x,S,U,se,Oe,Be,ft,vt){super(x,Oe,Be,ft),this.sharedStylesHost=S,this.removeStylesOnCompDestroy=se,this.styles=vt?Ce(vt,U.styles):U.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class B extends nn{constructor(x,S,U,se,Oe,Be,ft,vt){const Dt=se+"-"+U.id;super(x,S,U,Oe,Be,ft,vt,Dt),this.contentAttr=function pe(q){return"_ngcontent-%COMP%".replace(Ie,q)}(Dt),this.hostAttr=function Ae(q){return"_nghost-%COMP%".replace(Ie,q)}(Dt)}applyToHost(x){this.applyStyles(),this.setAttribute(x,this.hostAttr,"")}createElement(x,S){const U=super.createElement(x,S);return super.setAttribute(U,this.contentAttr,""),U}}let W=(()=>{class q extends _e{constructor(S){super(S)}supports(S){return!0}addEventListener(S,U,se){return S.addEventListener(U,se,!1),()=>this.removeEventListener(S,U,se)}removeEventListener(S,U,se){return S.removeEventListener(U,se)}}return q.\u0275fac=function(S){return new(S||q)(g.LFG(T.K0))},q.\u0275prov=g.Yz7({token:q,factory:q.\u0275fac}),q})();const ne=["alt","control","meta","shift"],le={"\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"},H={alt:q=>q.altKey,control:q=>q.ctrlKey,meta:q=>q.metaKey,shift:q=>q.shiftKey};let R=(()=>{class q extends _e{constructor(S){super(S)}supports(S){return null!=q.parseEventName(S)}addEventListener(S,U,se){const Oe=q.parseEventName(U),Be=q.eventCallback(Oe.fullKey,se,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(S,Oe.domEventName,Be))}static parseEventName(S){const U=S.toLowerCase().split("."),se=U.shift();if(0===U.length||"keydown"!==se&&"keyup"!==se)return null;const Oe=q._normalizeKey(U.pop());let Be="",ft=U.indexOf("code");if(ft>-1&&(U.splice(ft,1),Be="code."),ne.forEach(Dt=>{const mn=U.indexOf(Dt);mn>-1&&(U.splice(mn,1),Be+=Dt+".")}),Be+=Oe,0!=U.length||0===Oe.length)return null;const vt={};return vt.domEventName=se,vt.fullKey=Be,vt}static matchEventFullKeyCode(S,U){let se=le[S.key]||S.key,Oe="";return U.indexOf("code.")>-1&&(se=S.code,Oe="code."),!(null==se||!se)&&(se=se.toLowerCase()," "===se?se="space":"."===se&&(se="dot"),ne.forEach(Be=>{Be!==se&&(0,H[Be])(S)&&(Oe+=Be+".")}),Oe+=se,Oe===U)}static eventCallback(S,U,se){return Oe=>{q.matchEventFullKeyCode(Oe,S)&&se.runGuarded(()=>U(Oe))}}static _normalizeKey(S){return"esc"===S?"escape":S}}return q.\u0275fac=function(S){return new(S||q)(g.LFG(T.K0))},q.\u0275prov=g.Yz7({token:q,factory:q.\u0275fac}),q})();function O(q,x){return(0,g.iPO)({rootComponent:q,...ye(x)})}function ye(q){return{appProviders:[...Wn,...q?.providers??[]],platformProviders:lt}}const lt=[{provide:g.Lbi,useValue:T.bD},{provide:g.g9A,useValue:function je(){N.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function ve(){return(0,g.RDi)(document),document},deps:[]}],Wn=[{provide:g.zSh,useValue:"root"},{provide:g.qLn,useFactory:function Fe(){return new g.qLn},deps:[]},{provide:G,useClass:W,multi:!0,deps:[T.K0,g.R0b,g.Lbi]},{provide:G,useClass:R,multi:!0,deps:[T.K0]},K,he,te,{provide:g.FYo,useExisting:K},{provide:T.JF,useClass:ee,deps:[]},[]];let Dr=(()=>{class q{constructor(S){this._doc=S}getTitle(){return this._doc.title}setTitle(S){this._doc.title=S||""}}return q.\u0275fac=function(S){return new(S||q)(g.LFG(T.K0))},q.\u0275prov=g.Yz7({token:q,factory:function(S){let U=null;return U=S?new S:function ur(){return new Dr((0,g.LFG)(T.K0))}(),U},providedIn:"root"}),q})();typeof window<"u"&&window},9085:(Pe,Z,C)=>{C.d(Z,{gz:()=>rt,rH:()=>ii,lC:()=>zr,bU:()=>ha});var g=C(2029),T=C(7258),V=C(2664),N=C(2096),j=C(5619),oe=C(6973),J=C(2572),de=C(7537),ee=C(4564);function G(...c){return function ue(){return(0,de.J)(1)}()((0,V.D)(c,(0,ee.yG)(c)))}var te=C(5592),_e=C(4829);function Q(c){return new te.y(d=>{(0,_e.Xf)(c()).subscribe(d)})}var he=C(8407),He=C(8504),Ie=C(6232),Ge=C(7394),ct=C(9360),Qe=C(8251);function Y(){return(0,ct.e)((c,d)=>{let a=null;c._refCount++;const h=(0,Qe.x)(d,void 0,void 0,void 0,()=>{if(!c||c._refCount<=0||0<--c._refCount)return void(a=null);const y=c._connection,_=a;a=null,y&&(!_||y===_)&&y.unsubscribe(),d.unsubscribe()});c.subscribe(h),h.closed||(a=c.connect())})}class me extends te.y{constructor(d,a){super(),this.source=d,this.subjectFactory=a,this._subject=null,this._refCount=0,this._connection=null,(0,ct.A)(d)&&(this.lift=d.lift)}_subscribe(d){return this.getSubject().subscribe(d)}getSubject(){const d=this._subject;return(!d||d.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:d}=this;this._subject=this._connection=null,d?.unsubscribe()}connect(){let d=this._connection;if(!d){d=this._connection=new Ge.w0;const a=this.getSubject();d.add(this.source.subscribe((0,Qe.x)(a,void 0,()=>{this._teardown(),a.complete()},h=>{this._teardown(),a.error(h)},()=>this._teardown()))),d.closed&&(this._connection=null,d=Ge.w0.EMPTY)}return d}refCount(){return Y()(this)}}var pe=C(8645),Ae=C(6814),Ce=C(7398),K=C(4664),tt=C(8180),We=C(2181),_t=C(1631),Jt=C(1374),nn=C(6328),B=C(9397),W=C(6306);var H=C(3572);function R(c){return c<=0?()=>Ie.E:(0,ct.e)((d,a)=>{let h=[];d.subscribe((0,Qe.x)(a,y=>{h.push(y),c{for(const y of h)a.next(y);a.complete()},void 0,()=>{h=null}))})}var O=C(3026),z=C(2737),je=C(4716),Fe=C(6593);const ve="primary",lt=Symbol("RouteTitle");class ht{constructor(d){this.params=d||{}}has(d){return Object.prototype.hasOwnProperty.call(this.params,d)}get(d){if(this.has(d)){const a=this.params[d];return Array.isArray(a)?a[0]:a}return null}getAll(d){if(this.has(d)){const a=this.params[d];return Array.isArray(a)?a:[a]}return[]}get keys(){return Object.keys(this.params)}}function Te(c){return new ht(c)}function Wt(c,d,a){const h=a.path.split("/");if(h.length>c.length||"full"===a.pathMatch&&(d.hasChildren()||h.lengthh[_]===y)}return c===d}function no(c){return c.length>0?c[c.length-1]:null}function gn(c){return(0,T.b)(c)?c:(0,g.QGY)(c)?(0,V.D)(Promise.resolve(c)):(0,N.of)(c)}const ur={exact:function Zt(c,d,a){if(!mt(c.segments,d.segments)||!Ln(c.segments,d.segments,a)||c.numberOfChildren!==d.numberOfChildren)return!1;for(const h in d.children)if(!c.children[h]||!Zt(c.children[h],d.children[h],a))return!1;return!0},subset:nt},Dr={exact:function yn(c,d){return St(c,d)},subset:function it(c,d){return Object.keys(d).length<=Object.keys(c).length&&Object.keys(d).every(a=>wt(c[a],d[a]))},ignored:()=>!0};function Sn(c,d,a){return ur[a.paths](c.root,d.root,a.matrixParams)&&Dr[a.queryParams](c.queryParams,d.queryParams)&&!("exact"===a.fragment&&c.fragment!==d.fragment)}function nt(c,d,a){return cr(c,d,d.segments,a)}function cr(c,d,a,h){if(c.segments.length>a.length){const y=c.segments.slice(0,a.length);return!(!mt(y,a)||d.hasChildren()||!Ln(y,a,h))}if(c.segments.length===a.length){if(!mt(c.segments,a)||!Ln(c.segments,a,h))return!1;for(const y in d.children)if(!c.children[y]||!nt(c.children[y],d.children[y],h))return!1;return!0}{const y=a.slice(0,c.segments.length),_=a.slice(c.segments.length);return!!(mt(c.segments,y)&&Ln(c.segments,y,h)&&c.children[ve])&&cr(c.children[ve],d,_,h)}}function Ln(c,d,a){return d.every((h,y)=>Dr[a](c[y].parameters,h.parameters))}class Ve{constructor(d=new st([],{}),a={},h=null){this.root=d,this.queryParams=a,this.fragment=h}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Te(this.queryParams)),this._queryParamMap}toString(){return Cr.serialize(this)}}class st{constructor(d,a){this.segments=d,this.children=a,this.parent=null,Object.values(a).forEach(h=>h.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Kn(this)}}class Ft{constructor(d,a){this.path=d,this.parameters=a}get parameterMap(){return this._parameterMap||(this._parameterMap=Te(this.parameters)),this._parameterMap}toString(){return ro(this)}}function mt(c,d){return c.length===d.length&&c.every((a,h)=>a.path===d[h].path)}let Ue=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:function(){return new Er},providedIn:"root"}),c})();class Er{parse(d){const a=new vt(d);return new Ve(a.parseRootSegment(),a.parseQueryParams(),a.parseFragment())}serialize(d){const a=`/${Dn(d.root,!0)}`,h=function Yo(c){const d=Object.keys(c).map(a=>{const h=c[a];return Array.isArray(h)?h.map(y=>`${Kt(a)}=${Kt(y)}`).join("&"):`${Kt(a)}=${Kt(h)}`}).filter(a=>!!a);return d.length?`?${d.join("&")}`:""}(d.queryParams);return`${a}${h}${"string"==typeof d.fragment?`#${function _r(c){return encodeURI(c)}(d.fragment)}`:""}`}}const Cr=new Er;function Kn(c){return c.segments.map(d=>ro(d)).join("/")}function Dn(c,d){if(!c.hasChildren())return Kn(c);if(d){const a=c.children[ve]?Dn(c.children[ve],!1):"",h=[];return Object.entries(c.children).forEach(([y,_])=>{y!==ve&&h.push(`${y}:${Dn(_,!1)}`)}),h.length>0?`${a}(${h.join("//")})`:a}{const a=function go(c,d){let a=[];return Object.entries(c.children).forEach(([h,y])=>{h===ve&&(a=a.concat(d(y,h)))}),Object.entries(c.children).forEach(([h,y])=>{h!==ve&&(a=a.concat(d(y,h)))}),a}(c,(h,y)=>y===ve?[Dn(c.children[ve],!1)]:[`${y}:${Dn(h,!1)}`]);return 1===Object.keys(c.children).length&&null!=c.children[ve]?`${Kn(c)}/${a[0]}`:`${Kn(c)}/(${a.join("//")})`}}function cn(c){return encodeURIComponent(c).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Kt(c){return cn(c).replace(/%3B/gi,";")}function kn(c){return cn(c).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Yn(c){return decodeURIComponent(c)}function mo(c){return Yn(c.replace(/\+/g,"%20"))}function ro(c){return`${kn(c.path)}${function Ko(c){return Object.keys(c).map(d=>`;${kn(d)}=${kn(c[d])}`).join("")}(c.parameters)}`}const q=/^[^\/()?;#]+/;function x(c){const d=c.match(q);return d?d[0]:""}const S=/^[^\/()?;=#]+/,se=/^[^=?&#]+/,Be=/^[^&#]+/;class vt{constructor(d){this.url=d,this.remaining=d}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new st([],{}):new st([],this.parseChildren())}parseQueryParams(){const d={};if(this.consumeOptional("?"))do{this.parseQueryParam(d)}while(this.consumeOptional("&"));return d}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const d=[];for(this.peekStartsWith("(")||d.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),d.push(this.parseSegment());let a={};this.peekStartsWith("/(")&&(this.capture("/"),a=this.parseParens(!0));let h={};return this.peekStartsWith("(")&&(h=this.parseParens(!1)),(d.length>0||Object.keys(a).length>0)&&(h[ve]=new st(d,a)),h}parseSegment(){const d=x(this.remaining);if(""===d&&this.peekStartsWith(";"))throw new g.vHH(4009,!1);return this.capture(d),new Ft(Yn(d),this.parseMatrixParams())}parseMatrixParams(){const d={};for(;this.consumeOptional(";");)this.parseParam(d);return d}parseParam(d){const a=function U(c){const d=c.match(S);return d?d[0]:""}(this.remaining);if(!a)return;this.capture(a);let h="";if(this.consumeOptional("=")){const y=x(this.remaining);y&&(h=y,this.capture(h))}d[Yn(a)]=Yn(h)}parseQueryParam(d){const a=function Oe(c){const d=c.match(se);return d?d[0]:""}(this.remaining);if(!a)return;this.capture(a);let h="";if(this.consumeOptional("=")){const w=function ft(c){const d=c.match(Be);return d?d[0]:""}(this.remaining);w&&(h=w,this.capture(h))}const y=mo(a),_=mo(h);if(d.hasOwnProperty(y)){let w=d[y];Array.isArray(w)||(w=[w],d[y]=w),w.push(_)}else d[y]=_}parseParens(d){const a={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const h=x(this.remaining),y=this.remaining[h.length];if("/"!==y&&")"!==y&&";"!==y)throw new g.vHH(4010,!1);let _;h.indexOf(":")>-1?(_=h.slice(0,h.indexOf(":")),this.capture(_),this.capture(":")):d&&(_=ve);const w=this.parseChildren();a[_]=1===Object.keys(w).length?w[ve]:new st([],w),this.consumeOptional("//")}return a}peekStartsWith(d){return this.remaining.startsWith(d)}consumeOptional(d){return!!this.peekStartsWith(d)&&(this.remaining=this.remaining.substring(d.length),!0)}capture(d){if(!this.consumeOptional(d))throw new g.vHH(4011,!1)}}function Dt(c){return c.segments.length>0?new st([],{[ve]:c}):c}function mn(c){const d={};for(const h of Object.keys(c.children)){const _=mn(c.children[h]);if(h===ve&&0===_.segments.length&&_.hasChildren())for(const[w,k]of Object.entries(_.children))d[w]=k;else(_.segments.length>0||_.hasChildren())&&(d[h]=_)}return function It(c){if(1===c.numberOfChildren&&c.children[ve]){const d=c.children[ve];return new st(c.segments.concat(d.segments),d.children)}return c}(new st(c.segments,d))}function L(c){return c instanceof Ve}function A(c){let d;const y=Dt(function a(_){const w={};for(const ce of _.children){const xe=a(ce);w[ce.outlet]=xe}const k=new st(_.url,w);return _===c&&(d=k),k}(c.root));return d??y}function fe(c,d,a,h){let y=c;for(;y.parent;)y=y.parent;if(0===d.length)return we(y,y,y,a,h);const _=function Ut(c){if("string"==typeof c[0]&&1===c.length&&"/"===c[0])return new $e(!0,0,c);let d=0,a=!1;const h=c.reduce((y,_,w)=>{if("object"==typeof _&&null!=_){if(_.outlets){const k={};return Object.entries(_.outlets).forEach(([ce,xe])=>{k[ce]="string"==typeof xe?xe.split("/"):xe}),[...y,{outlets:k}]}if(_.segmentPath)return[...y,_.segmentPath]}return"string"!=typeof _?[...y,_]:0===w?(_.split("/").forEach((k,ce)=>{0==ce&&"."===k||(0==ce&&""===k?a=!0:".."===k?d++:""!=k&&y.push(k))}),y):[...y,_]},[]);return new $e(a,d,h)}(d);if(_.toRoot())return we(y,y,new st([],{}),a,h);const w=function Ot(c,d,a){if(c.isAbsolute)return new $t(d,!0,0);if(!a)return new $t(d,!1,NaN);if(null===a.parent)return new $t(a,!0,0);const h=De(c.commands[0])?0:1;return function qe(c,d,a){let h=c,y=d,_=a;for(;_>y;){if(_-=y,h=h.parent,!h)throw new g.vHH(4005,!1);y=h.segments.length}return new $t(h,!1,y-_)}(a,a.segments.length-1+h,c.numberOfDoubleDots)}(_,y,c),k=w.processChildren?gt(w.segmentGroup,w.index,_.commands):En(w.segmentGroup,w.index,_.commands);return we(y,w.segmentGroup,k,a,h)}function De(c){return"object"==typeof c&&null!=c&&!c.outlets&&!c.segmentPath}function Se(c){return"object"==typeof c&&null!=c&&c.outlets}function we(c,d,a,h,y){let w,_={};h&&Object.entries(h).forEach(([ce,xe])=>{_[ce]=Array.isArray(xe)?xe.map(Le=>`${Le}`):`${xe}`}),w=c===d?a:Mt(c,d,a);const k=Dt(mn(w));return new Ve(k,_,y)}function Mt(c,d,a){const h={};return Object.entries(c.children).forEach(([y,_])=>{h[y]=_===d?a:Mt(_,d,a)}),new st(c.segments,h)}class $e{constructor(d,a,h){if(this.isAbsolute=d,this.numberOfDoubleDots=a,this.commands=h,d&&h.length>0&&De(h[0]))throw new g.vHH(4003,!1);const y=h.find(Se);if(y&&y!==no(h))throw new g.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class $t{constructor(d,a,h){this.segmentGroup=d,this.processChildren=a,this.index=h}}function En(c,d,a){if(c||(c=new st([],{})),0===c.segments.length&&c.hasChildren())return gt(c,d,a);const h=function Tt(c,d,a){let h=0,y=d;const _={match:!1,pathIndex:0,commandIndex:0};for(;y=a.length)return _;const w=c.segments[y],k=a[h];if(Se(k))break;const ce=`${k}`,xe=h0&&void 0===ce)break;if(ce&&xe&&"object"==typeof xe&&void 0===xe.outlets){if(!qn(ce,xe,w))return _;h+=2}else{if(!qn(ce,{},w))return _;h++}y++}return{match:!0,pathIndex:y,commandIndex:h}}(c,d,a),y=a.slice(h.commandIndex);if(h.match&&h.pathIndex{"string"==typeof w&&(w=[w]),null!==w&&(y[_]=En(c.children[_],d,w))}),Object.entries(c.children).forEach(([_,w])=>{void 0===h[_]&&(y[_]=w)}),new st(c.segments,y)}}function Vt(c,d,a){const h=c.segments.slice(0,d);let y=0;for(;y{"string"==typeof h&&(h=[h]),null!==h&&(d[a]=Vt(new st([],{}),0,h))}),d}function zt(c){const d={};return Object.entries(c).forEach(([a,h])=>d[a]=`${h}`),d}function qn(c,d,a){return c==a.path&&St(d,a.parameters)}const Tn="imperative";class ln{constructor(d,a){this.id=d,this.url=a}}class Br extends ln{constructor(d,a,h="imperative",y=null){super(d,a),this.type=0,this.navigationTrigger=h,this.restoredState=y}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Un extends ln{constructor(d,a,h){super(d,a),this.urlAfterRedirects=h,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class wr extends ln{constructor(d,a,h,y){super(d,a),this.reason=h,this.code=y,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class lr extends ln{constructor(d,a,h,y){super(d,a),this.reason=h,this.code=y,this.type=16}}class $r extends ln{constructor(d,a,h,y){super(d,a),this.error=h,this.target=y,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class qo extends ln{constructor(d,a,h,y){super(d,a),this.urlAfterRedirects=h,this.state=y,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ki extends ln{constructor(d,a,h,y){super(d,a),this.urlAfterRedirects=h,this.state=y,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xs extends ln{constructor(d,a,h,y,_){super(d,a),this.urlAfterRedirects=h,this.state=y,this.shouldActivate=_,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Cn extends ln{constructor(d,a,h,y){super(d,a),this.urlAfterRedirects=h,this.state=y,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qs extends ln{constructor(d,a,h,y){super(d,a),this.urlAfterRedirects=h,this.state=y,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yi{constructor(d){this.route=d,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Js{constructor(d){this.route=d,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ea{constructor(d){this.snapshot=d,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rn{constructor(d){this.snapshot=d,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qi{constructor(d){this.snapshot=d,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zo{constructor(d){this.snapshot=d,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xo{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ir,this.attachRef=null}}let Ir=(()=>{class c{constructor(){this.contexts=new Map}onChildOutletCreated(a,h){const y=this.getOrCreateContext(a);y.outlet=h,this.contexts.set(a,y)}onChildOutletDestroyed(a){const h=this.getContext(a);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let h=this.getContext(a);return h||(h=new Xo,this.contexts.set(a,h)),h}getContext(a){return this.contexts.get(a)||null}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();class Qo{constructor(d){this._root=d}get root(){return this._root.value}parent(d){const a=this.pathFromRoot(d);return a.length>1?a[a.length-2]:null}children(d){const a=vo(d,this._root);return a?a.children.map(h=>h.value):[]}firstChild(d){const a=vo(d,this._root);return a&&a.children.length>0?a.children[0].value:null}siblings(d){const a=oo(d,this._root);return a.length<2?[]:a[a.length-2].children.map(y=>y.value).filter(y=>y!==d)}pathFromRoot(d){return oo(d,this._root).map(a=>a.value)}}function vo(c,d){if(c===d.value)return d;for(const a of d.children){const h=vo(c,a);if(h)return h}return null}function oo(c,d){if(c===d.value)return[d];for(const a of d.children){const h=oo(c,a);if(h.length)return h.unshift(d),h}return[]}class An{constructor(d,a){this.value=d,this.children=a}toString(){return`TreeNode(${this.value})`}}function Mr(c){const d={};return c&&c.children.forEach(a=>d[a.value.outlet]=a),d}class yo extends Qo{constructor(d,a){super(d),this.snapshot=a,Vr(this,d)}toString(){return this.snapshot.toString()}}function Do(c,d){const a=function Jo(c,d){const w=new Zn([],{},{},"",{},ve,d,null,{});return new dn("",new An(w,[]))}(0,d),h=new j.X([new Ft("",{})]),y=new j.X({}),_=new j.X({}),w=new j.X({}),k=new j.X(""),ce=new rt(h,y,w,k,_,ve,d,a.root);return ce.snapshot=a.root,new yo(new An(ce,[]),a)}class rt{constructor(d,a,h,y,_,w,k,ce){this.urlSubject=d,this.paramsSubject=a,this.queryParamsSubject=h,this.fragmentSubject=y,this.dataSubject=_,this.outlet=w,this.component=k,this._futureSnapshot=ce,this.title=this.dataSubject?.pipe((0,Ce.U)(xe=>xe[lt]))??(0,N.of)(void 0),this.url=d,this.params=a,this.queryParams=h,this.fragment=y,this.data=_}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((0,Ce.U)(d=>Te(d)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ce.U)(d=>Te(d)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Yt(c,d="emptyOnly"){const a=c.pathFromRoot;let h=0;if("always"!==d)for(h=a.length-1;h>=1;){const y=a[h],_=a[h-1];if(y.routeConfig&&""===y.routeConfig.path)h--;else{if(_.component)break;h--}}return function rn(c){return c.reduce((d,a)=>({params:{...d.params,...a.params},data:{...d.data,...a.data},resolve:{...a.data,...d.resolve,...a.routeConfig?.data,...a._resolvedData}}),{params:{},data:{},resolve:{}})}(a.slice(h))}class Zn{get title(){return this.data?.[lt]}constructor(d,a,h,y,_,w,k,ce,xe){this.url=d,this.params=a,this.queryParams=h,this.fragment=y,this.data=_,this.outlet=w,this.component=k,this.routeConfig=ce,this._resolve=xe}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=Te(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Te(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(h=>h.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dn extends Qo{constructor(d,a){super(a),this.url=d,Vr(this,a)}toString(){return Eo(this._root)}}function Vr(c,d){d.value._routerState=c,d.children.forEach(a=>Vr(c,a))}function Eo(c){const d=c.children.length>0?` { ${c.children.map(Eo).join(", ")} } `:"";return`${c.value}${d}`}function br(c){if(c.snapshot){const d=c.snapshot,a=c._futureSnapshot;c.snapshot=a,St(d.queryParams,a.queryParams)||c.queryParamsSubject.next(a.queryParams),d.fragment!==a.fragment&&c.fragmentSubject.next(a.fragment),St(d.params,a.params)||c.paramsSubject.next(a.params),function Wn(c,d){if(c.length!==d.length)return!1;for(let a=0;aSt(a.parameters,d[h].parameters))}(c.url,d.url);return a&&!(!c.parent!=!d.parent)&&(!c.parent||Co(c.parent,d.parent))}let zr=(()=>{class c{constructor(){this.activated=null,this._activatedRoute=null,this.name=ve,this.activateEvents=new g.vpe,this.deactivateEvents=new g.vpe,this.attachEvents=new g.vpe,this.detachEvents=new g.vpe,this.parentContexts=(0,g.f3M)(Ir),this.location=(0,g.f3M)(g.s_b),this.changeDetector=(0,g.f3M)(g.sBO),this.environmentInjector=(0,g.f3M)(g.lqb),this.inputBinder=(0,g.f3M)(be,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(a){if(a.name){const{firstChange:h,previousValue:y}=a.name;if(h)return;this.isTrackedInParentContexts(y)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(y)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(a){return this.parentContexts.getContext(a)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const a=this.parentContexts.getContext(this.name);a?.route&&(a.attachRef?this.attach(a.attachRef,a.route):this.activateWith(a.route,a.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new g.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g.vHH(4012,!1);this.location.detach();const a=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(a.instance),a}attach(a,h){this.activated=a,this._activatedRoute=h,this.location.insert(a.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(a.instance)}deactivate(){if(this.activated){const a=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(a)}}activateWith(a,h){if(this.isActivated)throw new g.vHH(4013,!1);this._activatedRoute=a;const y=this.location,w=a.snapshot.component,k=this.parentContexts.getOrCreateContext(this.name).children,ce=new Pt(a,k,y.injector);this.activated=y.createComponent(w,{index:y.length,injector:ce,environmentInjector:h??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275dir=g.lG2({type:c,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[g.TTD]}),c})();class Pt{constructor(d,a,h){this.route=d,this.childContexts=a,this.parent=h}get(d,a){return d===rt?this.route:d===Ir?this.childContexts:this.parent.get(d,a)}}const be=new g.OlP("");function en(c,d,a){if(a&&c.shouldReuseRoute(d.value,a.value.snapshot)){const h=a.value;h._futureSnapshot=d.value;const y=function Gr(c,d,a){return d.children.map(h=>{for(const y of a.children)if(c.shouldReuseRoute(h.value,y.value.snapshot))return en(c,h,y);return en(c,h)})}(c,d,a);return new An(h,y)}{if(c.shouldAttach(d.value)){const _=c.retrieve(d.value);if(null!==_){const w=_.route;return w.value._futureSnapshot=d.value,w.children=d.children.map(k=>en(c,k)),w}}const h=function tn(c){return new rt(new j.X(c.url),new j.X(c.params),new j.X(c.queryParams),new j.X(c.fragment),new j.X(c.data),c.outlet,c.component,c)}(d.value),y=d.children.map(_=>en(c,_));return new An(h,y)}}const rr="ngNavigationCancelingError";function jt(c,d){const{redirectTo:a,navigationBehaviorOptions:h}=L(d)?{redirectTo:d,navigationBehaviorOptions:void 0}:d,y=Xn(!1,0,d);return y.url=a,y.navigationBehaviorOptions=h,y}function Xn(c,d,a){const h=new Error("NavigationCancelingError: "+(c||""));return h[rr]=!0,h.cancellationCode=d,a&&(h.url=a),h}function Sr(c){return Ye(c)&&L(c.url)}function Ye(c){return c&&c[rr]}let Wr=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=g.Xpm({type:c,selectors:[["ng-component"]],standalone:!0,features:[g.jDz],decls:1,vars:0,template:function(a,h){1&a&&g._UZ(0,"router-outlet")},dependencies:[zr],encapsulation:2}),c})();function On(c){const d=c.children&&c.children.map(On),a=d?{...c,children:d}:{...c};return!a.component&&!a.loadComponent&&(d||a.loadChildren)&&a.outlet&&a.outlet!==ve&&(a.component=Wr),a}function fn(c){return c.outlet||ve}function Je(c){if(!c)return null;if(c.routeConfig?._injector)return c.routeConfig._injector;for(let d=c.parent;d;d=d.parent){const a=d.routeConfig;if(a?._loadedInjector)return a._loadedInjector;if(a?._injector)return a._injector}return null}class ei{constructor(d,a,h,y,_){this.routeReuseStrategy=d,this.futureState=a,this.currState=h,this.forwardEvent=y,this.inputBindingEnabled=_}activate(d){const a=this.futureState._root,h=this.currState?this.currState._root:null;this.deactivateChildRoutes(a,h,d),br(this.futureState.root),this.activateChildRoutes(a,h,d)}deactivateChildRoutes(d,a,h){const y=Mr(a);d.children.forEach(_=>{const w=_.value.outlet;this.deactivateRoutes(_,y[w],h),delete y[w]}),Object.values(y).forEach(_=>{this.deactivateRouteAndItsChildren(_,h)})}deactivateRoutes(d,a,h){const y=d.value,_=a?a.value:null;if(y===_)if(y.component){const w=h.getContext(y.outlet);w&&this.deactivateChildRoutes(d,a,w.children)}else this.deactivateChildRoutes(d,a,h);else _&&this.deactivateRouteAndItsChildren(a,h)}deactivateRouteAndItsChildren(d,a){d.value.component&&this.routeReuseStrategy.shouldDetach(d.value.snapshot)?this.detachAndStoreRouteSubtree(d,a):this.deactivateRouteAndOutlet(d,a)}detachAndStoreRouteSubtree(d,a){const h=a.getContext(d.value.outlet),y=h&&d.value.component?h.children:a,_=Mr(d);for(const w of Object.keys(_))this.deactivateRouteAndItsChildren(_[w],y);if(h&&h.outlet){const w=h.outlet.detach(),k=h.children.onOutletDeactivated();this.routeReuseStrategy.store(d.value.snapshot,{componentRef:w,route:d,contexts:k})}}deactivateRouteAndOutlet(d,a){const h=a.getContext(d.value.outlet),y=h&&d.value.component?h.children:a,_=Mr(d);for(const w of Object.keys(_))this.deactivateRouteAndItsChildren(_[w],y);h&&(h.outlet&&(h.outlet.deactivate(),h.children.onOutletDeactivated()),h.attachRef=null,h.route=null)}activateChildRoutes(d,a,h){const y=Mr(a);d.children.forEach(_=>{this.activateRoutes(_,y[_.value.outlet],h),this.forwardEvent(new Zo(_.value.snapshot))}),d.children.length&&this.forwardEvent(new Rn(d.value.snapshot))}activateRoutes(d,a,h){const y=d.value,_=a?a.value:null;if(br(y),y===_)if(y.component){const w=h.getOrCreateContext(y.outlet);this.activateChildRoutes(d,a,w.children)}else this.activateChildRoutes(d,a,h);else if(y.component){const w=h.getOrCreateContext(y.outlet);if(this.routeReuseStrategy.shouldAttach(y.snapshot)){const k=this.routeReuseStrategy.retrieve(y.snapshot);this.routeReuseStrategy.store(y.snapshot,null),w.children.onOutletReAttached(k.contexts),w.attachRef=k.componentRef,w.route=k.route.value,w.outlet&&w.outlet.attach(k.componentRef,k.route.value),br(k.route.value),this.activateChildRoutes(d,null,w.children)}else{const k=Je(y.snapshot);w.attachRef=null,w.route=y,w.injector=k,w.outlet&&w.outlet.activateWith(y,w.injector),this.activateChildRoutes(d,null,w.children)}}else this.activateChildRoutes(d,null,h)}}class Hn{constructor(d){this.path=d,this.route=this.path[this.path.length-1]}}class Rr{constructor(d,a){this.component=d,this.route=a}}function Ar(c,d,a){const h=c._root;return Io(h,d?d._root:null,a,[h.value])}function Lt(c,d){const a=Symbol(),h=d.get(c,a);return h===a?"function"!=typeof c||(0,g.Z0I)(c)?d.get(c):c:h}function Io(c,d,a,h,y={canDeactivateChecks:[],canActivateChecks:[]}){const _=Mr(d);return c.children.forEach(w=>{(function vn(c,d,a,h,y={canDeactivateChecks:[],canActivateChecks:[]}){const _=c.value,w=d?d.value:null,k=a?a.getContext(c.value.outlet):null;if(w&&_.routeConfig===w.routeConfig){const ce=function hn(c,d,a){if("function"==typeof a)return a(c,d);switch(a){case"pathParamsChange":return!mt(c.url,d.url);case"pathParamsOrQueryParamsChange":return!mt(c.url,d.url)||!St(c.queryParams,d.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Co(c,d)||!St(c.queryParams,d.queryParams);default:return!Co(c,d)}}(w,_,_.routeConfig.runGuardsAndResolvers);ce?y.canActivateChecks.push(new Hn(h)):(_.data=w.data,_._resolvedData=w._resolvedData),Io(c,d,_.component?k?k.children:null:a,h,y),ce&&k&&k.outlet&&k.outlet.isActivated&&y.canDeactivateChecks.push(new Rr(k.outlet.component,w))}else w&&fr(d,k,y),y.canActivateChecks.push(new Hn(h)),Io(c,null,_.component?k?k.children:null:a,h,y)})(w,_[w.value.outlet],a,h.concat([w.value]),y),delete _[w.value.outlet]}),Object.entries(_).forEach(([w,k])=>fr(k,a.getContext(w),y)),y}function fr(c,d,a){const h=Mr(c),y=c.value;Object.entries(h).forEach(([_,w])=>{fr(w,y.component?d?d.children.getContext(_):null:d,a)}),a.canDeactivateChecks.push(new Rr(y.component&&d&&d.outlet&&d.outlet.isActivated?d.outlet.component:null,y))}function Pn(c){return"function"==typeof c}function ra(c){return c instanceof oe.K||"EmptyError"===c?.name}const ti=Symbol("INITIAL_VALUE");function so(){return(0,K.w)(c=>(0,J.a)(c.map(d=>d.pipe((0,tt.q)(1),function Me(...c){const d=(0,ee.yG)(c);return(0,ct.e)((a,h)=>{(d?G(c,a,d):G(c,a)).subscribe(h)})}(ti)))).pipe((0,Ce.U)(d=>{for(const a of d)if(!0!==a){if(a===ti)return ti;if(!1===a||a instanceof Ve)return a}return!0}),(0,We.h)(d=>d!==ti),(0,tt.q)(1)))}function So(c){return(0,he.z)((0,B.b)(d=>{if(L(d))throw jt(0,d)}),(0,Ce.U)(d=>!0===d))}class qr{constructor(d){this.segmentGroup=d||null}}class Zr{constructor(d){this.urlTree=d}}function ao(c){return(0,He._)(new qr(c))}function hr(c){return(0,He._)(new Zr(c))}class ri{constructor(d,a){this.urlSerializer=d,this.urlTree=a}noMatchError(d){return new g.vHH(4002,!1)}lineralizeSegments(d,a){let h=[],y=a.root;for(;;){if(h=h.concat(y.segments),0===y.numberOfChildren)return(0,N.of)(h);if(y.numberOfChildren>1||!y.children[ve])return(0,He._)(new g.vHH(4e3,!1));y=y.children[ve]}}applyRedirectCommands(d,a,h){return this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),d,h)}applyRedirectCreateUrlTree(d,a,h,y){const _=this.createSegmentGroup(d,a.root,h,y);return new Ve(_,this.createQueryParams(a.queryParams,this.urlTree.queryParams),a.fragment)}createQueryParams(d,a){const h={};return Object.entries(d).forEach(([y,_])=>{if("string"==typeof _&&_.startsWith(":")){const k=_.substring(1);h[y]=a[k]}else h[y]=_}),h}createSegmentGroup(d,a,h,y){const _=this.createSegments(d,a.segments,h,y);let w={};return Object.entries(a.children).forEach(([k,ce])=>{w[k]=this.createSegmentGroup(d,ce,h,y)}),new st(_,w)}createSegments(d,a,h,y){return a.map(_=>_.path.startsWith(":")?this.findPosParam(d,_,y):this.findOrReturn(_,h))}findPosParam(d,a,h){const y=h[a.path.substring(1)];if(!y)throw new g.vHH(4001,!1);return y}findOrReturn(d,a){let h=0;for(const y of a){if(y.path===d.path)return a.splice(h),y;h++}return d}}const Ro={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ns(c,d,a,h,y){const _=uo(c,d,a);return _.matched?(h=function Zi(c,d){return c.providers&&!c._injector&&(c._injector=(0,g.MMx)(c.providers,d,`Route: ${c.path}`)),c._injector??d}(d,h),function ni(c,d,a,h){const y=d.canMatch;if(!y||0===y.length)return(0,N.of)(!0);const _=y.map(w=>{const k=Lt(w,c);return gn(function ku(c){return c&&Pn(c.canMatch)}(k)?k.canMatch(d,a):c.runInContext(()=>k(d,a)))});return(0,N.of)(_).pipe(so(),So())}(h,d,a).pipe((0,Ce.U)(w=>!0===w?_:{...Ro}))):(0,N.of)(_)}function uo(c,d,a){if(""===d.path)return"full"===d.pathMatch&&(c.hasChildren()||a.length>0)?{...Ro}:{matched:!0,consumedSegments:[],remainingSegments:a,parameters:{},positionalParamSegments:{}};const y=(d.matcher||Wt)(a,c,d);if(!y)return{...Ro};const _={};Object.entries(y.posParams??{}).forEach(([k,ce])=>{_[k]=ce.path});const w=y.consumed.length>0?{..._,...y.consumed[y.consumed.length-1].parameters}:_;return{matched:!0,consumedSegments:y.consumed,remainingSegments:a.slice(y.consumed.length),parameters:w,positionalParamSegments:y.posParams??{}}}function rs(c,d,a,h){return a.length>0&&function Jn(c,d,a){return a.some(h=>Bt(c,d,h)&&fn(h)!==ve)}(c,a,h)?{segmentGroup:new st(d,ia(h,new st(a,c.children))),slicedSegments:[]}:0===a.length&&function Ao(c,d,a){return a.some(h=>Bt(c,d,h))}(c,a,h)?{segmentGroup:new st(c.segments,Wu(c,0,a,h,c.children)),slicedSegments:a}:{segmentGroup:new st(c.segments,c.children),slicedSegments:a}}function Wu(c,d,a,h,y){const _={};for(const w of h)if(Bt(c,a,w)&&!y[fn(w)]){const k=new st([],{});_[fn(w)]=k}return{...y,..._}}function ia(c,d){const a={};a[ve]=d;for(const h of c)if(""===h.path&&fn(h)!==ve){const y=new st([],{});a[fn(h)]=y}return a}function Bt(c,d,a){return(!(c.hasChildren()||d.length>0)||"full"!==a.pathMatch)&&""===a.path}class oi{constructor(d,a,h,y,_,w,k){this.injector=d,this.configLoader=a,this.rootComponentType=h,this.config=y,this.urlTree=_,this.paramsInheritanceStrategy=w,this.urlSerializer=k,this.allowRedirects=!0,this.applyRedirects=new ri(this.urlSerializer,this.urlTree)}noMatchError(d){return new g.vHH(4002,!1)}recognize(){const d=rs(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,d,ve).pipe((0,W.K)(a=>{if(a instanceof Zr)return this.allowRedirects=!1,this.urlTree=a.urlTree,this.match(a.urlTree);throw a instanceof qr?this.noMatchError(a):a}),(0,Ce.U)(a=>{const h=new Zn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ve,this.rootComponentType,null,{}),y=new An(h,a),_=new dn("",y),w=function M(c,d,a=null,h=null){return fe(A(c),d,a,h)}(h,[],this.urlTree.queryParams,this.urlTree.fragment);return w.queryParams=this.urlTree.queryParams,_.url=this.urlSerializer.serialize(w),this.inheritParamsAndData(_._root),{state:_,tree:w}}))}match(d){return this.processSegmentGroup(this.injector,this.config,d.root,ve).pipe((0,W.K)(h=>{throw h instanceof qr?this.noMatchError(h):h}))}inheritParamsAndData(d){const a=d.value,h=Yt(a,this.paramsInheritanceStrategy);a.params=Object.freeze(h.params),a.data=Object.freeze(h.data),d.children.forEach(y=>this.inheritParamsAndData(y))}processSegmentGroup(d,a,h,y){return 0===h.segments.length&&h.hasChildren()?this.processChildren(d,a,h):this.processSegment(d,a,h,h.segments,y,!0)}processChildren(d,a,h){const y=[];for(const _ of Object.keys(h.children))"primary"===_?y.unshift(_):y.push(_);return(0,V.D)(y).pipe((0,nn.b)(_=>{const w=h.children[_],k=function dr(c,d){const a=c.filter(h=>fn(h)===d);return a.push(...c.filter(h=>fn(h)!==d)),a}(a,_);return this.processSegmentGroup(d,k,w,_)}),function le(c,d){return(0,ct.e)(function ne(c,d,a,h,y){return(_,w)=>{let k=a,ce=d,xe=0;_.subscribe((0,Qe.x)(w,Le=>{const et=xe++;ce=k?c(ce,Le,et):(k=!0,Le),h&&w.next(ce)},y&&(()=>{k&&w.next(ce),w.complete()})))}}(c,d,arguments.length>=2,!0))}((_,w)=>(_.push(...w),_)),(0,H.d)(null),function ye(c,d){const a=arguments.length>=2;return h=>h.pipe(c?(0,We.h)((y,_)=>c(y,_,h)):z.y,R(1),a?(0,H.d)(d):(0,O.T)(()=>new oe.K))}(),(0,_t.z)(_=>{if(null===_)return ao(h);const w=is(_);return function co(c){c.sort((d,a)=>d.value.outlet===ve?-1:a.value.outlet===ve?1:d.value.outlet.localeCompare(a.value.outlet))}(w),(0,N.of)(w)}))}processSegment(d,a,h,y,_,w){return(0,V.D)(a).pipe((0,nn.b)(k=>this.processSegmentAgainstRoute(k._injector??d,a,k,h,y,_,w).pipe((0,W.K)(ce=>{if(ce instanceof qr)return(0,N.of)(null);throw ce}))),(0,Jt.P)(k=>!!k),(0,W.K)(k=>{if(ra(k))return function sa(c,d,a){return 0===d.length&&!c.children[a]}(h,y,_)?(0,N.of)([]):ao(h);throw k}))}processSegmentAgainstRoute(d,a,h,y,_,w,k){return function Oo(c,d,a,h){return!!(fn(c)===h||h!==ve&&Bt(d,a,c))&&("**"===c.path||uo(d,c,a).matched)}(h,y,_,w)?void 0===h.redirectTo?this.matchSegmentAgainstRoute(d,y,h,_,w,k):k&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(d,y,a,h,_,w):ao(y):ao(y)}expandSegmentAgainstRouteUsingRedirect(d,a,h,y,_,w){return"**"===y.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(d,h,y,w):this.expandRegularSegmentAgainstRouteUsingRedirect(d,a,h,y,_,w)}expandWildCardWithParamsAgainstRouteUsingRedirect(d,a,h,y){const _=this.applyRedirects.applyRedirectCommands([],h.redirectTo,{});return h.redirectTo.startsWith("/")?hr(_):this.applyRedirects.lineralizeSegments(h,_).pipe((0,_t.z)(w=>{const k=new st(w,{});return this.processSegment(d,a,k,w,y,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(d,a,h,y,_,w){const{matched:k,consumedSegments:ce,remainingSegments:xe,positionalParamSegments:Le}=uo(a,y,_);if(!k)return ao(a);const et=this.applyRedirects.applyRedirectCommands(ce,y.redirectTo,Le);return y.redirectTo.startsWith("/")?hr(et):this.applyRedirects.lineralizeSegments(y,et).pipe((0,_t.z)(Qt=>this.processSegment(d,h,a,Qt.concat(xe),w,!1)))}matchSegmentAgainstRoute(d,a,h,y,_,w){let k;if("**"===h.path){const ce=y.length>0?no(y).parameters:{},xe=new Zn(y,ce,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,No(h),fn(h),h.component??h._loadedComponent??null,h,ss(h));k=(0,N.of)({snapshot:xe,consumedSegments:[],remainingSegments:[]}),a.children={}}else k=ns(a,h,y,d).pipe((0,Ce.U)(({matched:ce,consumedSegments:xe,remainingSegments:Le,parameters:et})=>ce?{snapshot:new Zn(xe,et,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,No(h),fn(h),h.component??h._loadedComponent??null,h,ss(h)),consumedSegments:xe,remainingSegments:Le}:null));return k.pipe((0,K.w)(ce=>null===ce?ao(a):this.getChildConfig(d=h._injector??d,h,y).pipe((0,K.w)(({routes:xe})=>{const Le=h._loadedInjector??d,{snapshot:et,consumedSegments:Qt,remainingSegments:xt}=ce,{segmentGroup:ko,slicedSegments:jo}=rs(a,Qt,xt,xe);if(0===jo.length&&ko.hasChildren())return this.processChildren(Le,xe,ko).pipe((0,Ce.U)(ai=>null===ai?null:[new An(et,ai)]));if(0===xe.length&&0===jo.length)return(0,N.of)([new An(et,[])]);const ls=fn(h)===_;return this.processSegment(Le,xe,ko,jo,ls?ve:_,!0).pipe((0,Ce.U)(ai=>[new An(et,ai)]))}))))}getChildConfig(d,a,h){return a.children?(0,N.of)({routes:a.children,injector:d}):a.loadChildren?void 0!==a._loadedRoutes?(0,N.of)({routes:a._loadedRoutes,injector:a._loadedInjector}):function es(c,d,a,h){const y=d.canLoad;if(void 0===y||0===y.length)return(0,N.of)(!0);const _=y.map(w=>{const k=Lt(w,c);return gn(function Bn(c){return c&&Pn(c.canLoad)}(k)?k.canLoad(d,a):c.runInContext(()=>k(d,a)))});return(0,N.of)(_).pipe(so(),So())}(d,a,h).pipe((0,_t.z)(y=>y?this.configLoader.loadChildren(d,a).pipe((0,B.b)(_=>{a._loadedRoutes=_.routes,a._loadedInjector=_.injector})):function ts(c){return(0,He._)(Xn(!1,3))}())):(0,N.of)({routes:[],injector:d})}}function os(c){const d=c.value.routeConfig;return d&&""===d.path}function is(c){const d=[],a=new Set;for(const h of c){if(!os(h)){d.push(h);continue}const y=d.find(_=>h.value.routeConfig===_.value.routeConfig);void 0!==y?(y.children.push(...h.children),a.add(y)):d.push(h)}for(const h of a){const y=is(h.children);d.push(new An(h.value,y))}return d.filter(h=>!a.has(h))}function No(c){return c.data||{}}function ss(c){return c.resolve||{}}function Xr(c){return"string"==typeof c.title||null===c.title}function l(c){return(0,K.w)(d=>{const a=c(d);return a?(0,V.D)(a).pipe((0,Ce.U)(()=>d)):(0,N.of)(d)})}const v=new g.OlP("ROUTES");let p=(()=>{class c{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,g.f3M)(g.Sil)}loadComponent(a){if(this.componentLoaders.get(a))return this.componentLoaders.get(a);if(a._loadedComponent)return(0,N.of)(a._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(a);const h=gn(a.loadComponent()).pipe((0,Ce.U)(b),(0,B.b)(_=>{this.onLoadEndListener&&this.onLoadEndListener(a),a._loadedComponent=_}),(0,je.x)(()=>{this.componentLoaders.delete(a)})),y=new me(h,()=>new pe.x).pipe(Y());return this.componentLoaders.set(a,y),y}loadChildren(a,h){if(this.childrenLoaders.get(h))return this.childrenLoaders.get(h);if(h._loadedRoutes)return(0,N.of)({routes:h._loadedRoutes,injector:h._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(h);const _=this.loadModuleFactoryOrRoutes(h.loadChildren).pipe((0,Ce.U)(k=>{this.onLoadEndListener&&this.onLoadEndListener(h);let ce,xe;return Array.isArray(k)?xe=k:(ce=k.create(a).injector,xe=ce.get(v,[],g.XFs.Self|g.XFs.Optional).flat()),{routes:xe.map(On),injector:ce}}),(0,je.x)(()=>{this.childrenLoaders.delete(h)})),w=new me(_,()=>new pe.x).pipe(Y());return this.childrenLoaders.set(h,w),w}loadModuleFactoryOrRoutes(a){return gn(a()).pipe((0,Ce.U)(b),(0,_t.z)(h=>h instanceof g.YKP||Array.isArray(h)?(0,N.of)(h):(0,V.D)(this.compiler.compileModuleAsync(h))))}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();function b(c){return function E(c){return c&&"object"==typeof c&&"default"in c}(c)?c.default:c}let $=(()=>{class c{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new pe.x,this.configLoader=(0,g.f3M)(p),this.environmentInjector=(0,g.f3M)(g.lqb),this.urlSerializer=(0,g.f3M)(Ue),this.rootContexts=(0,g.f3M)(Ir),this.inputBindingEnabled=null!==(0,g.f3M)(be,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,N.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=y=>this.events.next(new Js(y)),this.configLoader.onLoadStartListener=y=>this.events.next(new Yi(y))}complete(){this.transitions?.complete()}handleNavigationRequest(a){const h=++this.navigationId;this.transitions?.next({...this.transitions.value,...a,id:h})}setupNavigations(a){return this.transitions=new j.X({id:0,currentUrlTree:a.currentUrlTree,currentRawUrl:a.currentUrlTree,extractedUrl:a.urlHandlingStrategy.extract(a.currentUrlTree),urlAfterRedirects:a.urlHandlingStrategy.extract(a.currentUrlTree),rawUrl:a.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Tn,restoredState:null,currentSnapshot:a.routerState.snapshot,targetSnapshot:null,currentRouterState:a.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,We.h)(h=>0!==h.id),(0,Ce.U)(h=>({...h,extractedUrl:a.urlHandlingStrategy.extract(h.rawUrl)})),(0,K.w)(h=>{let y=!1,_=!1;return(0,N.of)(h).pipe((0,B.b)(w=>{this.currentNavigation={id:w.id,initialUrl:w.rawUrl,extractedUrl:w.extractedUrl,trigger:w.source,extras:w.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,K.w)(w=>{const k=a.browserUrlTree.toString(),ce=!a.navigated||w.extractedUrl.toString()!==k||k!==a.currentUrlTree.toString();if(!ce&&"reload"!==(w.extras.onSameUrlNavigation??a.onSameUrlNavigation)){const Le="";return this.events.next(new lr(w.id,a.serializeUrl(h.rawUrl),Le,0)),a.rawUrlTree=w.rawUrl,w.resolve(null),Ie.E}if(a.urlHandlingStrategy.shouldProcessUrl(w.rawUrl))return re(w.source)&&(a.browserUrlTree=w.extractedUrl),(0,N.of)(w).pipe((0,K.w)(Le=>{const et=this.transitions?.getValue();return this.events.next(new Br(Le.id,this.urlSerializer.serialize(Le.extractedUrl),Le.source,Le.restoredState)),et!==this.transitions?.getValue()?Ie.E:Promise.resolve(Le)}),function xo(c,d,a,h,y,_){return(0,_t.z)(w=>function Po(c,d,a,h,y,_,w="emptyOnly"){return new oi(c,d,a,h,y,w,_).recognize()}(c,d,a,h,w.extractedUrl,y,_).pipe((0,Ce.U)(({state:k,tree:ce})=>({...w,targetSnapshot:k,urlAfterRedirects:ce}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,a.config,this.urlSerializer,a.paramsInheritanceStrategy),(0,B.b)(Le=>{if(h.targetSnapshot=Le.targetSnapshot,h.urlAfterRedirects=Le.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Le.urlAfterRedirects},"eager"===a.urlUpdateStrategy){if(!Le.extras.skipLocationChange){const Qt=a.urlHandlingStrategy.merge(Le.urlAfterRedirects,Le.rawUrl);a.setBrowserUrl(Qt,Le)}a.browserUrlTree=Le.urlAfterRedirects}const et=new qo(Le.id,this.urlSerializer.serialize(Le.extractedUrl),this.urlSerializer.serialize(Le.urlAfterRedirects),Le.targetSnapshot);this.events.next(et)}));if(ce&&a.urlHandlingStrategy.shouldProcessUrl(a.rawUrlTree)){const{id:Le,extractedUrl:et,source:Qt,restoredState:xt,extras:ko}=w,jo=new Br(Le,this.urlSerializer.serialize(et),Qt,xt);this.events.next(jo);const ls=Do(0,this.rootComponentType).snapshot;return h={...w,targetSnapshot:ls,urlAfterRedirects:et,extras:{...ko,skipLocationChange:!1,replaceUrl:!1}},(0,N.of)(h)}{const Le="";return this.events.next(new lr(w.id,a.serializeUrl(h.extractedUrl),Le,1)),a.rawUrlTree=w.rawUrl,w.resolve(null),Ie.E}}),(0,B.b)(w=>{const k=new Ki(w.id,this.urlSerializer.serialize(w.extractedUrl),this.urlSerializer.serialize(w.urlAfterRedirects),w.targetSnapshot);this.events.next(k)}),(0,Ce.U)(w=>h={...w,guards:Ar(w.targetSnapshot,w.currentSnapshot,this.rootContexts)}),function Uu(c,d){return(0,_t.z)(a=>{const{targetSnapshot:h,currentSnapshot:y,guards:{canActivateChecks:_,canDeactivateChecks:w}}=a;return 0===w.length&&0===_.length?(0,N.of)({...a,guardsResult:!0}):function Hu(c,d,a,h){return(0,V.D)(c).pipe((0,_t.z)(y=>function Gu(c,d,a,h,y){const _=d&&d.routeConfig?d.routeConfig.canDeactivate:null;if(!_||0===_.length)return(0,N.of)(!0);const w=_.map(k=>{const ce=Je(d)??y,xe=Lt(k,ce);return gn(function Ji(c){return c&&Pn(c.canDeactivate)}(xe)?xe.canDeactivate(c,d,a,h):ce.runInContext(()=>xe(c,d,a,h))).pipe((0,Jt.P)())});return(0,N.of)(w).pipe(so())}(y.component,y.route,a,d,h)),(0,Jt.P)(y=>!0!==y,!0))}(w,h,y,c).pipe((0,_t.z)(k=>k&&function Mo(c){return"boolean"==typeof c}(k)?function Bu(c,d,a,h){return(0,V.D)(d).pipe((0,nn.b)(y=>G(function oa(c,d){return null!==c&&d&&d(new ea(c)),(0,N.of)(!0)}(y.route.parent,h),function $u(c,d){return null!==c&&d&&d(new qi(c)),(0,N.of)(!0)}(y.route,h),function zu(c,d,a){const h=d[d.length-1],_=d.slice(0,d.length-1).reverse().map(w=>function Yr(c){const d=c.routeConfig?c.routeConfig.canActivateChild:null;return d&&0!==d.length?{node:c,guards:d}:null}(w)).filter(w=>null!==w).map(w=>Q(()=>{const k=w.guards.map(ce=>{const xe=Je(w.node)??a,Le=Lt(ce,xe);return gn(function Qi(c){return c&&Pn(c.canActivateChild)}(Le)?Le.canActivateChild(h,c):xe.runInContext(()=>Le(h,c))).pipe((0,Jt.P)())});return(0,N.of)(k).pipe(so())}));return(0,N.of)(_).pipe(so())}(c,y.path,a),function Vu(c,d,a){const h=d.routeConfig?d.routeConfig.canActivate:null;if(!h||0===h.length)return(0,N.of)(!0);const y=h.map(_=>Q(()=>{const w=Je(d)??a,k=Lt(_,w);return gn(function bo(c){return c&&Pn(c.canActivate)}(k)?k.canActivate(d,c):w.runInContext(()=>k(d,c))).pipe((0,Jt.P)())}));return(0,N.of)(y).pipe(so())}(c,y.route,a))),(0,Jt.P)(y=>!0!==y,!0))}(h,_,c,d):(0,N.of)(k)),(0,Ce.U)(k=>({...a,guardsResult:k})))})}(this.environmentInjector,w=>this.events.next(w)),(0,B.b)(w=>{if(h.guardsResult=w.guardsResult,L(w.guardsResult))throw jt(0,w.guardsResult);const k=new Xs(w.id,this.urlSerializer.serialize(w.extractedUrl),this.urlSerializer.serialize(w.urlAfterRedirects),w.targetSnapshot,!!w.guardsResult);this.events.next(k)}),(0,We.h)(w=>!!w.guardsResult||(a.restoreHistory(w),this.cancelNavigationTransition(w,"",3),!1)),l(w=>{if(w.guards.canActivateChecks.length)return(0,N.of)(w).pipe((0,B.b)(k=>{const ce=new Cn(k.id,this.urlSerializer.serialize(k.extractedUrl),this.urlSerializer.serialize(k.urlAfterRedirects),k.targetSnapshot);this.events.next(ce)}),(0,K.w)(k=>{let ce=!1;return(0,N.of)(k).pipe(function ua(c,d){return(0,_t.z)(a=>{const{targetSnapshot:h,guards:{canActivateChecks:y}}=a;if(!y.length)return(0,N.of)(a);let _=0;return(0,V.D)(y).pipe((0,nn.b)(w=>function ca(c,d,a,h){const y=c.routeConfig,_=c._resolve;return void 0!==y?.title&&!Xr(y)&&(_[lt]=y.title),function Ku(c,d,a,h){const y=function la(c){return[...Object.keys(c),...Object.getOwnPropertySymbols(c)]}(c);if(0===y.length)return(0,N.of)({});const _={};return(0,V.D)(y).pipe((0,_t.z)(w=>function as(c,d,a,h){const y=Je(d)??h,_=Lt(c,y);return gn(_.resolve?_.resolve(d,a):y.runInContext(()=>_(d,a)))}(c[w],d,a,h).pipe((0,Jt.P)(),(0,B.b)(k=>{_[w]=k}))),R(1),function Ee(c){return(0,Ce.U)(()=>c)}(_),(0,W.K)(w=>ra(w)?Ie.E:(0,He._)(w)))}(_,c,d,h).pipe((0,Ce.U)(w=>(c._resolvedData=w,c.data=Yt(c,a).resolve,y&&Xr(y)&&(c.data[lt]=y.title),null)))}(w.route,h,c,d)),(0,B.b)(()=>_++),R(1),(0,_t.z)(w=>_===y.length?(0,N.of)(a):Ie.E))})}(a.paramsInheritanceStrategy,this.environmentInjector),(0,B.b)({next:()=>ce=!0,complete:()=>{ce||(a.restoreHistory(k),this.cancelNavigationTransition(k,"",2))}}))}),(0,B.b)(k=>{const ce=new Qs(k.id,this.urlSerializer.serialize(k.extractedUrl),this.urlSerializer.serialize(k.urlAfterRedirects),k.targetSnapshot);this.events.next(ce)}))}),l(w=>{const k=ce=>{const xe=[];ce.routeConfig?.loadComponent&&!ce.routeConfig._loadedComponent&&xe.push(this.configLoader.loadComponent(ce.routeConfig).pipe((0,B.b)(Le=>{ce.component=Le}),(0,Ce.U)(()=>{})));for(const Le of ce.children)xe.push(...k(Le));return xe};return(0,J.a)(k(w.targetSnapshot.root)).pipe((0,H.d)(),(0,tt.q)(1))}),l(()=>this.afterPreactivation()),(0,Ce.U)(w=>{const k=function Rt(c,d,a){const h=en(c,d._root,a?a._root:void 0);return new yo(h,d)}(a.routeReuseStrategy,w.targetSnapshot,w.currentRouterState);return h={...w,targetRouterState:k}}),(0,B.b)(w=>{a.currentUrlTree=w.urlAfterRedirects,a.rawUrlTree=a.urlHandlingStrategy.merge(w.urlAfterRedirects,w.rawUrl),a.routerState=w.targetRouterState,"deferred"===a.urlUpdateStrategy&&(w.extras.skipLocationChange||a.setBrowserUrl(a.rawUrlTree,w),a.browserUrlTree=w.urlAfterRedirects)}),((c,d,a,h)=>(0,Ce.U)(y=>(new ei(d,y.targetRouterState,y.currentRouterState,a,h).activate(c),y)))(this.rootContexts,a.routeReuseStrategy,w=>this.events.next(w),this.inputBindingEnabled),(0,tt.q)(1),(0,B.b)({next:w=>{y=!0,this.lastSuccessfulNavigation=this.currentNavigation,a.navigated=!0,this.events.next(new Un(w.id,this.urlSerializer.serialize(w.extractedUrl),this.urlSerializer.serialize(a.currentUrlTree))),a.titleStrategy?.updateTitle(w.targetRouterState.snapshot),w.resolve(!0)},complete:()=>{y=!0}}),(0,je.x)(()=>{y||_||this.cancelNavigationTransition(h,"",1),this.currentNavigation?.id===h.id&&(this.currentNavigation=null)}),(0,W.K)(w=>{if(_=!0,Ye(w)){Sr(w)||(a.navigated=!0,a.restoreHistory(h,!0));const k=new wr(h.id,this.urlSerializer.serialize(h.extractedUrl),w.message,w.cancellationCode);if(this.events.next(k),Sr(w)){const ce=a.urlHandlingStrategy.merge(w.url,a.rawUrlTree),xe={skipLocationChange:h.extras.skipLocationChange,replaceUrl:"eager"===a.urlUpdateStrategy||re(h.source)};a.scheduleNavigation(ce,Tn,null,xe,{resolve:h.resolve,reject:h.reject,promise:h.promise})}else h.resolve(!1)}else{a.restoreHistory(h,!0);const k=new $r(h.id,this.urlSerializer.serialize(h.extractedUrl),w,h.targetSnapshot??void 0);this.events.next(k);try{h.resolve(a.errorHandler(w))}catch(ce){h.reject(ce)}}return Ie.E}))}))}cancelNavigationTransition(a,h,y){const _=new wr(a.id,this.urlSerializer.serialize(a.extractedUrl),h,y);this.events.next(_),a.resolve(!1)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();function re(c){return c!==Tn}let Ne=(()=>{class c{buildTitle(a){let h,y=a.root;for(;void 0!==y;)h=this.getResolvedTitleForRoute(y)??h,y=y.children.find(_=>_.outlet===ve);return h}getResolvedTitleForRoute(a){return a.data[lt]}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:function(){return(0,g.f3M)(yt)},providedIn:"root"}),c})(),yt=(()=>{class c extends Ne{constructor(a){super(),this.title=a}updateTitle(a){const h=this.buildTitle(a);void 0!==h&&this.title.setTitle(h)}}return c.\u0275fac=function(a){return new(a||c)(g.LFG(Fe.Dx))},c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),Et=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:function(){return(0,g.f3M)(ut)},providedIn:"root"}),c})();class at{shouldDetach(d){return!1}store(d,a){}shouldAttach(d){return!1}retrieve(d){return null}shouldReuseRoute(d,a){return d.routeConfig===a.routeConfig}}let ut=(()=>{class c extends at{}return c.\u0275fac=function(){let d;return function(h){return(d||(d=g.n5z(c)))(h||c)}}(),c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();const At=new g.OlP("",{providedIn:"root",factory:()=>({})});let ze=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:function(){return(0,g.f3M)(qt)},providedIn:"root"}),c})(),qt=(()=>{class c{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,h){return a}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();var on=function(c){return c[c.COMPLETE=0]="COMPLETE",c[c.FAILED=1]="FAILED",c[c.REDIRECTING=2]="REDIRECTING",c}(on||{});function Or(c){throw c}function _n(c,d,a){return d.parse("/")}const wn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let sn=(()=>{class c{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=(0,g.f3M)(g.c2e),this.isNgZoneEnabled=!1,this.options=(0,g.f3M)(At,{optional:!0})||{},this.pendingTasks=(0,g.f3M)(g.HDt),this.errorHandler=this.options.errorHandler||Or,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||_n,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,g.f3M)(ze),this.routeReuseStrategy=(0,g.f3M)(Et),this.titleStrategy=(0,g.f3M)(Ne),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=(0,g.f3M)(v,{optional:!0})?.flat()??[],this.navigationTransitions=(0,g.f3M)($),this.urlSerializer=(0,g.f3M)(Ue),this.location=(0,g.f3M)(Ae.Ye),this.componentInputBindingEnabled=!!(0,g.f3M)(be,{optional:!0}),this.isNgZoneEnabled=(0,g.f3M)(g.R0b)instanceof g.R0b&&g.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ve,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Do(0,null),this.navigationTransitions.setupNavigations(this).subscribe(a=>{this.lastSuccessfulId=a.id,this.currentPageId=this.browserPageId??0},a=>{this.console.warn(`Unhandled Navigation Error: ${a}`)})}resetRootComponentType(a){this.routerState.root.component=a,this.navigationTransitions.rootComponentType=a}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const a=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Tn,a)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(a=>{const h="popstate"===a.type?"popstate":"hashchange";"popstate"===h&&setTimeout(()=>{this.navigateToSyncWithBrowser(a.url,h,a.state)},0)}))}navigateToSyncWithBrowser(a,h,y){const _={replaceUrl:!0},w=y?.navigationId?y:null;if(y){const ce={...y};delete ce.navigationId,delete ce.\u0275routerPageId,0!==Object.keys(ce).length&&(_.state=ce)}const k=this.parseUrl(a);this.scheduleNavigation(k,h,w,_)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(a){this.config=a.map(On),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(a,h={}){const{relativeTo:y,queryParams:_,fragment:w,queryParamsHandling:k,preserveFragment:ce}=h,xe=ce?this.currentUrlTree.fragment:w;let et,Le=null;switch(k){case"merge":Le={...this.currentUrlTree.queryParams,..._};break;case"preserve":Le=this.currentUrlTree.queryParams;break;default:Le=_||null}null!==Le&&(Le=this.removeEmptyProps(Le));try{et=A(y?y.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof a[0]||!a[0].startsWith("/"))&&(a=[]),et=this.currentUrlTree.root}return fe(et,a,Le,xe??null)}navigateByUrl(a,h={skipLocationChange:!1}){const y=L(a)?a:this.parseUrl(a),_=this.urlHandlingStrategy.merge(y,this.rawUrlTree);return this.scheduleNavigation(_,Tn,null,h)}navigate(a,h={skipLocationChange:!1}){return function Yu(c){for(let d=0;d{const _=a[y];return null!=_&&(h[y]=_),h},{})}scheduleNavigation(a,h,y,_,w){if(this.disposed)return Promise.resolve(!1);let k,ce,xe;w?(k=w.resolve,ce=w.reject,xe=w.promise):xe=new Promise((et,Qt)=>{k=et,ce=Qt});const Le=this.pendingTasks.add();return function Nt(c,d){c.events.pipe((0,We.h)(a=>a instanceof Un||a instanceof wr||a instanceof $r||a instanceof lr),(0,Ce.U)(a=>a instanceof Un||a instanceof lr?on.COMPLETE:a instanceof wr&&(0===a.code||1===a.code)?on.REDIRECTING:on.FAILED),(0,We.h)(a=>a!==on.REDIRECTING),(0,tt.q)(1)).subscribe(()=>{d()})}(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Le))}),this.navigationTransitions.handleNavigationRequest({source:h,restoredState:y,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:a,extras:_,resolve:k,reject:ce,promise:xe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),xe.catch(et=>Promise.reject(et))}setBrowserUrl(a,h){const y=this.urlSerializer.serialize(a);if(this.location.isCurrentPathEqualTo(y)||h.extras.replaceUrl){const w={...h.extras.state,...this.generateNgRouterState(h.id,this.browserPageId)};this.location.replaceState(y,"",w)}else{const _={...h.extras.state,...this.generateNgRouterState(h.id,(this.browserPageId??0)+1)};this.location.go(y,"",_)}}restoreHistory(a,h=!1){if("computed"===this.canceledNavigationResolution){const _=this.currentPageId-(this.browserPageId??this.currentPageId);0!==_?this.location.historyGo(_):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===_&&(this.resetState(a),this.browserUrlTree=a.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(h&&this.resetState(a),this.resetUrlToCurrentUrlTree())}resetState(a){this.routerState=a.currentRouterState,this.currentUrlTree=a.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(a,h){return"computed"===this.canceledNavigationResolution?{navigationId:a,\u0275routerPageId:h}:{navigationId:a}}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),ii=(()=>{class c{constructor(a,h,y,_,w,k){this.router=a,this.route=h,this.tabIndexAttribute=y,this.renderer=_,this.el=w,this.locationStrategy=k,this.href=null,this.commands=null,this.onChanges=new pe.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const ce=w.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===ce||"area"===ce,this.isAnchorElement?this.subscription=a.events.subscribe(xe=>{xe instanceof Un&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(a){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",a)}ngOnChanges(a){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(a){null!=a?(this.commands=Array.isArray(a)?a:[a],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(a,h,y,_,w){return!!(null===this.urlTree||this.isAnchorElement&&(0!==a||h||y||_||w||"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 a=null===this.href?null:(0,g.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",a)}applyAttributeValue(a,h){const y=this.renderer,_=this.el.nativeElement;null!==h?y.setAttribute(_,a,h):y.removeAttribute(_,a)}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 c.\u0275fac=function(a){return new(a||c)(g.Y36(sn),g.Y36(rt),g.$8M("tabindex"),g.Y36(g.Qsj),g.Y36(g.SBq),g.Y36(Ae.S$))},c.\u0275dir=g.lG2({type:c,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(a,h){1&a&&g.NdJ("click",function(_){return h.onClick(_.button,_.ctrlKey,_.shiftKey,_.altKey,_.metaKey)}),2&a&&g.uIk("target",h.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",g.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",g.VuI],replaceUrl:["replaceUrl","replaceUrl",g.VuI],routerLink:"routerLink"},standalone:!0,features:[g.Xq5,g.TTD]}),c})();const us=new g.OlP("");function ha(c,...d){return(0,g.MR2)([{provide:v,multi:!0,useValue:c},[],{provide:rt,useFactory:Qu,deps:[sn]},{provide:g.tb,multi:!0,useFactory:pa},d.map(a=>a.\u0275providers)])}function Qu(c){return c.routerState.root}function pa(){const c=(0,g.f3M)(g.zs3);return d=>{const a=c.get(g.z2F);if(d!==a.components[0])return;const h=c.get(sn),y=c.get(ga);1===c.get(cs)&&h.initialNavigation(),c.get(pt,null,g.XFs.Optional)?.setUpPreloading(),c.get(us,null,g.XFs.Optional)?.init(),h.resetRootComponentType(a.componentTypes[0]),y.closed||(y.next(),y.complete(),y.unsubscribe())}}const ga=new g.OlP("",{factory:()=>new pe.x}),cs=new g.OlP("",{providedIn:"root",factory:()=>1}),pt=new g.OlP("")}},Pe=>{Pe(Pe.s=9)}]); \ No newline at end of file diff --git a/main.db697040979b26fe.js b/main.db697040979b26fe.js deleted file mode 100644 index 52e88af0..00000000 --- a/main.db697040979b26fe.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkangular_architecture=self.webpackChunkangular_architecture||[]).push([[179],{3354:(Oe,Z,C)=>{C.d(Z,{e:()=>R});var g=C(2029);let R=(()=>{class V{constructor(){this.messages=[]}add(H){this.messages.push(H)}clear(){this.messages=[]}}return V.\u0275fac=function(H){return new(H||V)},V.\u0275prov=g.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})()},9:(Oe,Z,C)=>{var g=C(9862),R=C(2029),V=C(6593),x=C(9085),H=C(5592),se=C(5619),ee=C(2664),fe=C(2096),ue=C(1374),ne=C(6328),G=C(7398),re=C(6814);const he={100:{code:100,text:"Continue",description:'"The initial part of a request has been received and has not yet been rejected by the server."',spec_title:"RFC7231#6.2.1",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.2.1"},101:{code:101,text:"Switching Protocols",description:'"The server understands and is willing to comply with the client\'s request, via the Upgrade header field, for a change in the application protocol being used on this connection."',spec_title:"RFC7231#6.2.2",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.2.2"},200:{code:200,text:"OK",description:'"The request has succeeded."',spec_title:"RFC7231#6.3.1",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.1"},201:{code:201,text:"Created",description:'"The request has been fulfilled and has resulted in one or more new resources being created."',spec_title:"RFC7231#6.3.2",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.2"},202:{code:202,text:"Accepted",description:'"The request has been accepted for processing, but the processing has not been completed."',spec_title:"RFC7231#6.3.3",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.3"},203:{code:203,text:"Non-Authoritative Information",description:'"The request was successful but the enclosed payload has been modified from that of the origin server\'s 200 (OK) response by a transforming proxy."',spec_title:"RFC7231#6.3.4",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.4"},204:{code:204,text:"No Content",description:'"The server has successfully fulfilled the request and that there is no additional content to send in the response payload body."',spec_title:"RFC7231#6.3.5",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.5"},205:{code:205,text:"Reset Content",description:'"The server has fulfilled the request and desires that the user agent reset the "document view", which caused the request to be sent, to its original state as received from the origin server."',spec_title:"RFC7231#6.3.6",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.6"},206:{code:206,text:"Partial Content",description:'"The server is successfully fulfilling a range request for the target resource by transferring one or more parts of the selected representation that correspond to the satisfiable ranges found in the requests\'s Range header field."',spec_title:"RFC7233#4.1",spec_href:"https://tools.ietf.org/html/rfc7233#section-4.1"},300:{code:300,text:"Multiple Choices",description:'"The target resource has more than one representation, each with its own more specific identifier, and information about the alternatives is being provided so that the user (or user agent) can select a preferred representation by redirecting its request to one or more of those identifiers."',spec_title:"RFC7231#6.4.1",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.4.1"},301:{code:301,text:"Moved Permanently",description:'"The target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs."',spec_title:"RFC7231#6.4.2",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.4.2"},302:{code:302,text:"Found",description:'"The target resource resides temporarily under a different URI."',spec_title:"RFC7231#6.4.3",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.4.3"},303:{code:303,text:"See Other",description:'"The server is redirecting the user agent to a different resource, as indicated by a URI in the Location header field, that is intended to provide an indirect response to the original request."',spec_title:"RFC7231#6.4.4",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.4.4"},304:{code:304,text:"Not Modified",description:'"A conditional GET request has been received and would have resulted in a 200 (OK) response if it were not for the fact that the condition has evaluated to false."',spec_title:"RFC7232#4.1",spec_href:"https://tools.ietf.org/html/rfc7232#section-4.1"},305:{code:305,text:"Use Proxy",description:"*deprecated*",spec_title:"RFC7231#6.4.5",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.4.5"},307:{code:307,text:"Temporary Redirect",description:'"The target resource resides temporarily under a different URI and the user agent MUST NOT change the request method if it performs an automatic redirection to that URI."',spec_title:"RFC7231#6.4.7",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.4.7"},400:{code:400,text:"Bad Request",description:'"The server cannot or will not process the request because the received syntax is invalid, nonsensical, or exceeds some limitation on what the server is willing to process."',spec_title:"RFC7231#6.5.1",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.1"},401:{code:401,text:"Unauthorized",description:'"The request has not been applied because it lacks valid authentication credentials for the target resource."',spec_title:"RFC7235#6.3.1",spec_href:"https://tools.ietf.org/html/rfc7235#section-3.1"},402:{code:402,text:"Payment Required",description:"*reserved*",spec_title:"RFC7231#6.5.2",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.2"},403:{code:403,text:"Forbidden",description:'"The server understood the request but refuses to authorize it."',spec_title:"RFC7231#6.5.3",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.3"},404:{code:404,text:"Not Found",description:'"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists."',spec_title:"RFC7231#6.5.4",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.4"},405:{code:405,text:"Method Not Allowed",description:'"The method specified in the request-line is known by the origin server but not supported by the target resource."',spec_title:"RFC7231#6.5.5",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.5"},406:{code:406,text:"Not Acceptable",description:'"The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation."',spec_title:"RFC7231#6.5.6",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.6"},407:{code:407,text:"Proxy Authentication Required",description:'"The client needs to authenticate itself in order to use a proxy."',spec_title:"RFC7231#6.3.2",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.3.2"},408:{code:408,text:"Request Timeout",description:'"The server did not receive a complete request message within the time that it was prepared to wait."',spec_title:"RFC7231#6.5.7",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.7"},409:{code:409,text:"Conflict",description:'"The request could not be completed due to a conflict with the current state of the resource."',spec_title:"RFC7231#6.5.8",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.8"},410:{code:410,text:"Gone",description:'"Access to the target resource is no longer available at the origin server and that this condition is likely to be permanent."',spec_title:"RFC7231#6.5.9",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.9"},411:{code:411,text:"Length Required",description:'"The server refuses to accept the request without a defined Content-Length."',spec_title:"RFC7231#6.5.10",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.10"},412:{code:412,text:"Precondition Failed",description:'"One or more preconditions given in the request header fields evaluated to false when tested on the server."',spec_title:"RFC7232#4.2",spec_href:"https://tools.ietf.org/html/rfc7232#section-4.2"},413:{code:413,text:"Payload Too Large",description:'"The server is refusing to process a request because the request payload is larger than the server is willing or able to process."',spec_title:"RFC7231#6.5.11",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.11"},414:{code:414,text:"URI Too Long",description:'"The server is refusing to service the request because the request-target is longer than the server is willing to interpret."',spec_title:"RFC7231#6.5.12",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.12"},415:{code:415,text:"Unsupported Media Type",description:'"The origin server is refusing to service the request because the payload is in a format not supported by the target resource for this method."',spec_title:"RFC7231#6.5.13",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.13"},416:{code:416,text:"Range Not Satisfiable",description:'"None of the ranges in the request\'s Range header field overlap the current extent of the selected resource or that the set of ranges requested has been rejected due to invalid ranges or an excessive request of small or overlapping ranges."',spec_title:"RFC7233#4.4",spec_href:"https://tools.ietf.org/html/rfc7233#section-4.4"},417:{code:417,text:"Expectation Failed",description:'"The expectation given in the request\'s Expect header field could not be met by at least one of the inbound servers."',spec_title:"RFC7231#6.5.14",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.14"},418:{code:418,text:"I'm a teapot",description:'"1988 April Fools Joke. Returned by tea pots requested to brew coffee."',spec_title:"RFC 2324",spec_href:"https://tools.ietf.org/html/rfc2324"},426:{code:426,text:"Upgrade Required",description:'"The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol."',spec_title:"RFC7231#6.5.15",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.5.15"},500:{code:500,text:"Internal Server Error",description:'"The server encountered an unexpected condition that prevented it from fulfilling the request."',spec_title:"RFC7231#6.6.1",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.6.1"},501:{code:501,text:"Not Implemented",description:'"The server does not support the functionality required to fulfill the request."',spec_title:"RFC7231#6.6.2",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.6.2"},502:{code:502,text:"Bad Gateway",description:'"The server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request."',spec_title:"RFC7231#6.6.3",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.6.3"},503:{code:503,text:"Service Unavailable",description:'"The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay."',spec_title:"RFC7231#6.6.4",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.6.4"},504:{code:504,text:"Gateway Time-out",description:'"The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request."',spec_title:"RFC7231#6.6.5",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.6.5"},505:{code:505,text:"HTTP Version Not Supported",description:'"The server does not support, or refuses to support, the protocol version that was used in the request message."',spec_title:"RFC7231#6.6.6",spec_href:"https://tools.ietf.org/html/rfc7231#section-6.6.6"},102:{code:102,text:"Processing",description:'"An interim response to inform the client that the server has accepted the complete request, but has not yet completed it."',spec_title:"RFC5218#10.1",spec_href:"https://tools.ietf.org/html/rfc2518#section-10.1"},207:{code:207,text:"Multi-Status",description:'"Status for multiple independent operations."',spec_title:"RFC5218#10.2",spec_href:"https://tools.ietf.org/html/rfc2518#section-10.2"},226:{code:226,text:"IM Used",description:'"The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance."',spec_title:"RFC3229#10.4.1",spec_href:"https://tools.ietf.org/html/rfc3229#section-10.4.1"},308:{code:308,text:"Permanent Redirect",description:'"The target resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. [...] This status code is similar to 301 Moved Permanently (Section 7.3.2 of rfc7231), except that it does not allow rewriting the request method from POST to GET."',spec_title:"RFC7238",spec_href:"https://tools.ietf.org/html/rfc7238"},422:{code:422,text:"Unprocessable Entity",description:'"The server understands the content type of the request entity (hence a 415(Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions."',spec_title:"RFC5218#10.3",spec_href:"https://tools.ietf.org/html/rfc2518#section-10.3"},423:{code:423,text:"Locked",description:'"The source or destination resource of a method is locked."',spec_title:"RFC5218#10.4",spec_href:"https://tools.ietf.org/html/rfc2518#section-10.4"},424:{code:424,text:"Failed Dependency",description:'"The method could not be performed on the resource because the requested action depended on another action and that action failed."',spec_title:"RFC5218#10.5",spec_href:"https://tools.ietf.org/html/rfc2518#section-10.5"},428:{code:428,text:"Precondition Required",description:'"The origin server requires the request to be conditional."',spec_title:"RFC6585#3",spec_href:"https://tools.ietf.org/html/rfc6585#section-3"},429:{code:429,text:"Too Many Requests",description:'"The user has sent too many requests in a given amount of time ("rate limiting")."',spec_title:"RFC6585#4",spec_href:"https://tools.ietf.org/html/rfc6585#section-4"},431:{code:431,text:"Request Header Fields Too Large",description:'"The server is unwilling to process the request because its header fields are too large."',spec_title:"RFC6585#5",spec_href:"https://tools.ietf.org/html/rfc6585#section-5"},451:{code:451,text:"Unavailable For Legal Reasons",description:'"The server is denying access to the resource in response to a legal demand."',spec_title:"draft-ietf-httpbis-legally-restricted-status",spec_href:"https://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status"},506:{code:506,text:"Variant Also Negotiates",description:'"The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process."',spec_title:"RFC2295#8.1",spec_href:"https://tools.ietf.org/html/rfc2295#section-8.1"},507:{code:507,text:"Insufficient Storage",description:'The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request."',spec_title:"RFC5218#10.6",spec_href:"https://tools.ietf.org/html/rfc2518#section-10.6"},511:{code:511,text:"Network Authentication Required",description:'"The client needs to authenticate to gain network access."',spec_title:"RFC6585#6",spec_href:"https://tools.ietf.org/html/rfc6585#section-6"}};class ze{}class rt{}let Xe=(()=>{class B{constructor(O={}){Object.assign(this,{caseSensitiveSearch:!1,dataEncapsulation:!1,delay:500,delete404:!1,passThruUnknownUrl:!1,post204:!0,post409:!1,put204:!0,put404:!1,apiBase:void 0,host:void 0,rootPath:void 0},O)}}return B.\u0275fac=function(O){return new(O||B)(R.LFG(rt))},B.\u0275prov=R.Yz7({token:B,factory:B.\u0275fac}),B})();class pe{constructor(A,O={}){this.inMemDbService=A,this.config=new Xe,this.db={},this.requestInfoUtils=this.getRequestInfoUtils();const z=this.getLocation("/");this.config.host=z.host,this.config.rootPath=z.path,Object.assign(this.config,O)}get dbReady(){return this.dbReadySubject||(this.dbReadySubject=new se.X(!1),this.resetDb()),this.dbReadySubject.asObservable().pipe((0,ue.P)(A=>A))}handleRequest(A){return this.dbReady.pipe((0,ne.b)(()=>this.handleRequest_(A)))}handleRequest_(A){const O=A.urlWithParams?A.urlWithParams:A.url,z=this.bind("parseRequestUrl"),ye=z&&z(O,this.requestInfoUtils)||this.parseRequestUrl(O),Ee=ye.collectionName,Be=this.db[Ee],ke={req:A,apiBase:ye.apiBase,collection:Be,collectionName:Ee,headers:this.createHeaders({"Content-Type":"application/json"}),id:this.parseId(Be,Ee,ye.id),method:this.getRequestMethod(A),query:ye.query,resourceUrl:ye.resourceUrl,url:O,utils:this.requestInfoUtils};let ve;if(/commands\/?$/i.test(ke.apiBase))return this.commands(ke);const it=this.bind(ke.method);if(it){const ut=it(ke);if(ut)return ut}return this.db[Ee]?this.createResponse$(()=>this.collectionHandler(ke)):this.config.passThruUnknownUrl?this.getPassThruBackend().handle(A):(ve=this.createErrorResponseOptions(O,404,`Collection '${Ee}' not found`),this.createResponse$(()=>ve))}addDelay(A){const O=this.config.delay;return 0===O?A:function _e(B,A){return new H.y(O=>{let z=!1,ye=!1;const Ee=B.subscribe(Be=>{ye=!0,setTimeout(()=>{O.next(Be),z&&O.complete()},A)},Be=>setTimeout(()=>O.error(Be),A),()=>{z=!0,ye||O.complete()});return()=>Ee.unsubscribe()})}(A,O||500)}applyQuery(A,O){const z=[],ye=this.config.caseSensitiveSearch?void 0:"i";O.forEach((Be,ke)=>{Be.forEach(ve=>z.push({name:ke,rx:new RegExp(decodeURI(ve),ye)}))});const Ee=z.length;return Ee?A.filter(Be=>{let ke=!0,ve=Ee;for(;ke&&ve;){ve-=1;const it=z[ve];ke=it.rx.test(Be[it.name])}return ke}):A}bind(A){const O=this.inMemDbService[A];return O?O.bind(this.inMemDbService):void 0}bodify(A){return this.config.dataEncapsulation?{data:A}:A}clone(A){return JSON.parse(JSON.stringify(A))}collectionHandler(A){let O;switch(A.method){case"get":O=this.get(A);break;case"post":O=this.post(A);break;case"put":O=this.put(A);break;case"delete":O=this.delete(A);break;default:O=this.createErrorResponseOptions(A.url,405,"Method not allowed")}const z=this.bind("responseInterceptor");return z?z(O,A):O}commands(A){const O=A.collectionName.toLowerCase(),z=A.method;let ye={url:A.url};switch(O){case"resetdb":return ye.status=204,this.resetDb(A).pipe((0,ne.b)(()=>this.createResponse$(()=>ye,!1)));case"config":if("get"===z)ye.status=200,ye.body=this.clone(this.config);else{const Ee=this.getJsonBody(A.req);Object.assign(this.config,Ee),this.passThruBackend=void 0,ye.status=204}break;default:ye=this.createErrorResponseOptions(A.url,500,`Unknown command "${O}"`)}return this.createResponse$(()=>ye,!1)}createErrorResponseOptions(A,O,z){return{body:{error:`${z}`},url:A,headers:this.createHeaders({"Content-Type":"application/json"}),status:O}}createResponse$(A,O=!0){const z=this.createResponseOptions$(A);let ye=this.createResponse$fromResponseOptions$(z);return O?this.addDelay(ye):ye}createResponseOptions$(A){return new H.y(O=>{let z;try{z=A()}catch(Ee){z=this.createErrorResponseOptions("",500,`${Ee.message||Ee}`)}const ye=z.status;try{z.statusText=null!=ye?function $e(B){return he[B+""].text||"Unknown Status"}(ye):void 0}catch{}return null!=ye&&function Me(B){return B>=200&&B<300}(ye)?(O.next(z),O.complete()):O.error(z),()=>{}})}delete({collection:A,collectionName:O,headers:z,id:ye,url:Ee}){return null==ye?this.createErrorResponseOptions(Ee,404,`Missing "${O}" id`):{headers:z,status:this.removeById(A,ye)||!this.config.delete404?204:404}}findById(A,O){return A.find(z=>z.id===O)}genId(A,O){const z=this.bind("genId");if(z){const ye=z(A,O);if(null!=ye)return ye}return this.genIdDefault(A,O)}genIdDefault(A,O){if(!this.isCollectionIdNumeric(A,O))throw new Error(`Collection '${O}' id type is non-numeric or unknown. Can only generate numeric ids.`);let z=0;return A.reduce((ye,Ee)=>{z=Math.max(z,"number"==typeof Ee.id?Ee.id:z)},void 0),z+1}get({collection:A,collectionName:O,headers:z,id:ye,query:Ee,url:Be}){let ke=A;return null!=ye&&""!==ye?ke=this.findById(A,ye):Ee&&(ke=this.applyQuery(A,Ee)),ke?{body:this.bodify(this.clone(ke)),headers:z,status:200}:this.createErrorResponseOptions(Be,404,`'${O}' with id='${ye}' not found`)}getLocation(A){if(!A.startsWith("http")){const O=typeof document>"u"?void 0:document,z=O?O.location.protocol+"//"+O.location.host:"http://fake";A=A.startsWith("/")?z+A:z+"/"+A}return function Y(B){const O=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(B),z={source:"",protocol:"",authority:"",userInfo:"",user:"",password:"",host:"",port:"",relative:"",path:"",directory:"",file:"",query:"",anchor:""},ye=Object.keys(z);let Ee=ye.length;for(;Ee--;)z[ye[Ee]]=O&&O[Ee]||"";return z}(A)}getPassThruBackend(){return this.passThruBackend?this.passThruBackend:this.passThruBackend=this.createPassThruBackend()}getRequestInfoUtils(){return{createResponse$:this.createResponse$.bind(this),findById:this.findById.bind(this),isCollectionIdNumeric:this.isCollectionIdNumeric.bind(this),getConfig:()=>this.config,getDb:()=>this.db,getJsonBody:this.getJsonBody.bind(this),getLocation:this.getLocation.bind(this),getPassThruBackend:this.getPassThruBackend.bind(this),parseRequestUrl:this.parseRequestUrl.bind(this)}}indexOf(A,O){return A.findIndex(z=>z.id===O)}parseId(A,O,z){if(!this.isCollectionIdNumeric(A,O))return z;const ye=parseFloat(z);return isNaN(ye)?z:ye}isCollectionIdNumeric(A,O){return!(!A||!A[0])&&"number"==typeof A[0].id}parseRequestUrl(A){try{const O=this.getLocation(A);let z=(this.config.rootPath||"").length,ye="";O.host!==this.config.host&&(z=1,ye=O.protocol+"//"+O.host+"/");const Be=O.path.substring(z).split("/");let ve,ke=0;null==this.config.apiBase?ve=Be[ke++]:(ve=function me(B){return B.replace(/\/$/,"")}(this.config.apiBase.trim()),ke=ve?ve.split("/").length:0),ve+="/";let it=Be[ke++];it=it&&it.split(".")[0];return{apiBase:ve,collectionName:it,id:Be[ke++],query:this.createQueryMap(O.query),resourceUrl:ye+ve+it+"/"}}catch(O){throw new Error(`unable to parse url '${A}'; original error: ${O.message}`)}}post({collection:A,collectionName:O,headers:z,id:ye,req:Ee,resourceUrl:Be,url:ke}){const ve=this.clone(this.getJsonBody(Ee));if(null==ve.id)try{ve.id=ye||this.genId(A,O)}catch(Ue){const $t=Ue.message||"";return/id type is non-numeric/.test($t)?this.createErrorResponseOptions(ke,422,$t):this.createErrorResponseOptions(ke,500,`Failed to generate new id for '${O}'`)}if(ye&&ye!==ve.id)return this.createErrorResponseOptions(ke,400,"Request id does not match item.id");const it=this.indexOf(A,ye=ve.id),ut=this.bodify(ve);return-1===it?(A.push(ve),z.set("Location",Be+"/"+ye),{headers:z,body:ut,status:201}):this.config.post409?this.createErrorResponseOptions(ke,409,`'${O}' item with id='${ye} exists and may not be updated with POST; use PUT instead.`):(A[it]=ve,this.config.post204?{headers:z,status:204}:{headers:z,body:ut,status:200})}put({collection:A,collectionName:O,headers:z,id:ye,req:Ee,url:Be}){const ke=this.clone(this.getJsonBody(Ee));if(null==ke.id)return this.createErrorResponseOptions(Be,404,`Missing '${O}' id`);if(ye&&ye!==ke.id)return this.createErrorResponseOptions(Be,400,`Request for '${O}' id does not match item.id`);const ve=this.indexOf(A,ye=ke.id),it=this.bodify(ke);return ve>-1?(A[ve]=ke,this.config.put204?{headers:z,status:204}:{headers:z,body:it,status:200}):this.config.put404?this.createErrorResponseOptions(Be,404,`'${O}' item with id='${ye} not found and may not be created with PUT; use POST instead.`):(A.push(ke),{headers:z,body:it,status:201})}removeById(A,O){const z=this.indexOf(A,O);return z>-1&&(A.splice(z,1),!0)}resetDb(A){this.dbReadySubject&&this.dbReadySubject.next(!1);const O=this.inMemDbService.createDb(A);return(O instanceof H.y?O:"function"==typeof O.then?(0,ee.D)(O):(0,fe.of)(O)).pipe((0,ue.P)()).subscribe(ye=>{this.db=ye,this.dbReadySubject&&this.dbReadySubject.next(!0)}),this.dbReady}}let Ae=(()=>{class B extends pe{constructor(O,z,ye){super(O,z),this.xhrFactory=ye}handle(O){try{return this.handleRequest(O)}catch(z){const Ee=this.createErrorResponseOptions(O.url,500,`${z.message||z}`);return this.createResponse$(()=>Ee)}}getJsonBody(O){return O.body}getRequestMethod(O){return(O.method||"get").toLowerCase()}createHeaders(O){return new g.WM(O)}createQueryMap(O){const z=new Map;if(O){const ye=new g.LE({fromString:O});ye.keys().forEach(Ee=>z.set(Ee,ye.getAll(Ee)||[]))}return z}createResponse$fromResponseOptions$(O){return O.pipe((0,G.U)(z=>new g.Zn(z)))}createPassThruBackend(){try{return new g.AF(this.xhrFactory)}catch(O){throw O.message="Cannot create passThru404 backend; "+(O.message||""),O}}}return B.\u0275fac=function(O){return new(O||B)(R.LFG(ze),R.LFG(Xe,8),R.LFG(re.JF))},B.\u0275prov=R.Yz7({token:B,factory:B.\u0275fac}),B})();function Ce(B,A,O){return new Ae(B,A,O)}let K=(()=>{class B{static forRoot(O,z){return{ngModule:B,providers:[{provide:ze,useClass:O},{provide:Xe,useValue:z},{provide:g.jN,useFactory:Ce,deps:[ze,Xe,re.JF]}]}}static forFeature(O,z){return B.forRoot(O,z)}}return B.\u0275fac=function(O){return new(O||B)},B.\u0275mod=R.oAB({type:B}),B.\u0275inj=R.cJS({}),B})(),Ie=(()=>{class B{constructor(){this.title=""}}return B.\u0275fac=function(O){return new(O||B)},B.\u0275cmp=R.Xpm({type:B,selectors:[["app-header"]],inputs:{title:"title"},standalone:!0,features:[R.jDz],decls:2,vars:1,template:function(O,z){1&O&&(R.TgZ(0,"h1"),R._uU(1),R.qZA()),2&O&&(R.xp6(1),R.Oqu(z.title))},dependencies:[re.ez],styles:["h1[_ngcontent-%COMP%]{color:#264d73;font-size:2.5rem}"]}),B})();var We=C(3354);function Ct(B,A){if(1&B&&(R.TgZ(0,"div"),R._uU(1),R.qZA()),2&B){const O=A.$implicit;R.xp6(1),R.Oqu(O)}}function Kt(B,A){if(1&B){const O=R.EpF();R.TgZ(0,"div")(1,"h2"),R._uU(2,"Messages"),R.qZA(),R.TgZ(3,"button",1),R.NdJ("click",function(){R.CHM(O);const ye=R.oxw();return R.KtG(ye.messageService.clear())}),R._uU(4,"Clear messages"),R.qZA(),R.YNc(5,Ct,2,1,"div",2),R.qZA()}if(2&B){const O=R.oxw();R.xp6(5),R.Q6J("ngForOf",O.messageService.messages)}}let Zt=(()=>{class B{constructor(O){this.messageService=O}}return B.\u0275fac=function(O){return new(O||B)(R.Y36(We.e))},B.\u0275cmp=R.Xpm({type:B,selectors:[["app-messages"]],standalone:!0,features:[R.jDz],decls:1,vars:1,consts:[[4,"ngIf"],["type","button",1,"clear",3,"click"],[4,"ngFor","ngForOf"]],template:function(O,z){1&O&&R.YNc(0,Kt,6,1,"div",0),2&O&&R.Q6J("ngIf",0!==z.messageService.messages.length)},dependencies:[re.O5,re.sg]}),B})(),j=(()=>{class B{constructor(){this.title="Tour of Heroes"}}return B.\u0275fac=function(O){return new(O||B)},B.\u0275cmp=R.Xpm({type:B,selectors:[["app-root"]],standalone:!0,features:[R.jDz],decls:8,vars:1,consts:[[3,"title"],["routerLink","/dashboard"],["routerLink","/heroes"]],template:function(O,z){1&O&&(R._UZ(0,"app-header",0),R.TgZ(1,"nav")(2,"a",1),R._uU(3,"Dashboard"),R.qZA(),R.TgZ(4,"a",2),R._uU(5,"Heroes"),R.qZA()(),R._UZ(6,"router-outlet")(7,"app-messages")),2&O&&R.Q6J("title",z.title)},dependencies:[x.rH,x.lC,Ie,Zt]}),B})(),W=(()=>{class B{createDb(){return{heroes:[{id:12,name:"Dr. Nice"},{id:13,name:"Bombasto"},{id:14,name:"Celeritas"},{id:15,name:"Magneta"},{id:16,name:"RubberMan"},{id:17,name:"Dynama"},{id:18,name:"Dr. IQ"},{id:19,name:"Magma"},{id:20,name:"Tornado"}]}}genId(O){return O.length>0?Math.max(...O.map(z=>z.id))+1:11}}return B.\u0275fac=function(O){return new(O||B)},B.\u0275prov=R.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();const oe=[{path:"",redirectTo:"/dashboard",pathMatch:"full"},{path:"dashboard",loadChildren:()=>Promise.all([C.e(625),C.e(635)]).then(C.bind(C,4635))},{path:"detail",loadChildren:()=>Promise.all([C.e(625),C.e(59)]).then(C.bind(C,3059))},{path:"heroes",loadComponent:()=>Promise.all([C.e(625),C.e(116)]).then(C.bind(C,1116))}];(0,R.G48)(),(0,V.Cg)(j,{providers:[(0,x.bU)(oe),(0,g.h_)(),(0,R.RIp)(K.forRoot(W,{dataEncapsulation:!1}))]})},5619:(Oe,Z,C)=>{C.d(Z,{X:()=>R});var g=C(8645);class R extends g.x{constructor(x){super(),this._value=x}get value(){return this.getValue()}_subscribe(x){const H=super._subscribe(x);return!H.closed&&x.next(this._value),H}getValue(){const{hasError:x,thrownError:H,_value:se}=this;if(x)throw H;return this._throwIfClosed(),se}next(x){super.next(this._value=x)}}},5592:(Oe,Z,C)=>{C.d(Z,{y:()=>fe});var g=C(305),R=C(7394),V=C(4850),x=C(8407),H=C(2653),se=C(4674),ee=C(1441);let fe=(()=>{class re{constructor(Q){Q&&(this._subscribe=Q)}lift(Q){const he=new re;return he.source=this,he.operator=Q,he}subscribe(Q,he,$e){const Me=function G(re){return re&&re instanceof g.Lv||function ne(re){return re&&(0,se.m)(re.next)&&(0,se.m)(re.error)&&(0,se.m)(re.complete)}(re)&&(0,R.Nn)(re)}(Q)?Q:new g.Hp(Q,he,$e);return(0,ee.x)(()=>{const{operator:ze,source:rt}=this;Me.add(ze?ze.call(Me,rt):rt?this._subscribe(Me):this._trySubscribe(Me))}),Me}_trySubscribe(Q){try{return this._subscribe(Q)}catch(he){Q.error(he)}}forEach(Q,he){return new(he=ue(he))(($e,Me)=>{const ze=new g.Hp({next:rt=>{try{Q(rt)}catch(Xe){Me(Xe),ze.unsubscribe()}},error:Me,complete:$e});this.subscribe(ze)})}_subscribe(Q){var he;return null===(he=this.source)||void 0===he?void 0:he.subscribe(Q)}[V.L](){return this}pipe(...Q){return(0,x.U)(Q)(this)}toPromise(Q){return new(Q=ue(Q))((he,$e)=>{let Me;this.subscribe(ze=>Me=ze,ze=>$e(ze),()=>he(Me))})}}return re.create=_e=>new re(_e),re})();function ue(re){var _e;return null!==(_e=re??H.config.Promise)&&void 0!==_e?_e:Promise}},8645:(Oe,Z,C)=>{C.d(Z,{x:()=>ee});var g=C(5592),R=C(7394);const x=(0,C(2306).d)(ue=>function(){ue(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var H=C(9039),se=C(1441);let ee=(()=>{class ue extends g.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const re=new fe(this,this);return re.operator=G,re}_throwIfClosed(){if(this.closed)throw new x}next(G){(0,se.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const re of this.currentObservers)re.next(G)}})}error(G){(0,se.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:re}=this;for(;re.length;)re.shift().error(G)}})}complete(){(0,se.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:re,isStopped:_e,observers:Q}=this;return re||_e?R.Lc:(this.currentObservers=null,Q.push(G),new R.w0(()=>{this.currentObservers=null,(0,H.P)(Q,G)}))}_checkFinalizedStatuses(G){const{hasError:re,thrownError:_e,isStopped:Q}=this;re?G.error(_e):Q&&G.complete()}asObservable(){const G=new g.y;return G.source=this,G}}return ue.create=(ne,G)=>new fe(ne,G),ue})();class fe extends ee{constructor(ne,G){super(),this.destination=ne,this.source=G}next(ne){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===re||re.call(G,ne)}error(ne){var G,re;null===(re=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===re||re.call(G,ne)}complete(){var ne,G;null===(G=null===(ne=this.destination)||void 0===ne?void 0:ne.complete)||void 0===G||G.call(ne)}_subscribe(ne){var G,re;return null!==(re=null===(G=this.source)||void 0===G?void 0:G.subscribe(ne))&&void 0!==re?re:R.Lc}}},305:(Oe,Z,C)=>{C.d(Z,{Hp:()=>$e,Lv:()=>re});var g=C(4674),R=C(7394),V=C(2653),x=C(3894),H=C(2420);const se=ue("C",void 0,void 0);function ue(Y,me,pe){return{kind:Y,value:me,error:pe}}var ne=C(7599),G=C(1441);class re extends R.w0{constructor(me){super(),this.isStopped=!1,me?(this.destination=me,(0,R.Nn)(me)&&me.add(this)):this.destination=Xe}static create(me,pe,Ae){return new $e(me,pe,Ae)}next(me){this.isStopped?rt(function fe(Y){return ue("N",Y,void 0)}(me),this):this._next(me)}error(me){this.isStopped?rt(function ee(Y){return ue("E",void 0,Y)}(me),this):(this.isStopped=!0,this._error(me))}complete(){this.isStopped?rt(se,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(me){this.destination.next(me)}_error(me){try{this.destination.error(me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const _e=Function.prototype.bind;function Q(Y,me){return _e.call(Y,me)}class he{constructor(me){this.partialObserver=me}next(me){const{partialObserver:pe}=this;if(pe.next)try{pe.next(me)}catch(Ae){Me(Ae)}}error(me){const{partialObserver:pe}=this;if(pe.error)try{pe.error(me)}catch(Ae){Me(Ae)}else Me(me)}complete(){const{partialObserver:me}=this;if(me.complete)try{me.complete()}catch(pe){Me(pe)}}}class $e extends re{constructor(me,pe,Ae){let Ce;if(super(),(0,g.m)(me)||!me)Ce={next:me??void 0,error:pe??void 0,complete:Ae??void 0};else{let K;this&&V.config.useDeprecatedNextContext?(K=Object.create(me),K.unsubscribe=()=>this.unsubscribe(),Ce={next:me.next&&Q(me.next,K),error:me.error&&Q(me.error,K),complete:me.complete&&Q(me.complete,K)}):Ce=me}this.destination=new he(Ce)}}function Me(Y){V.config.useDeprecatedSynchronousErrorHandling?(0,G.O)(Y):(0,x.h)(Y)}function rt(Y,me){const{onStoppedNotification:pe}=V.config;pe&&ne.z.setTimeout(()=>pe(Y,me))}const Xe={closed:!0,next:H.Z,error:function ze(Y){throw Y},complete:H.Z}},7394:(Oe,Z,C)=>{C.d(Z,{Lc:()=>se,w0:()=>H,Nn:()=>ee});var g=C(4674);const V=(0,C(2306).d)(ue=>function(G){ue(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((re,_e)=>`${_e+1}) ${re.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var x=C(9039);class H{constructor(ne){this.initialTeardown=ne,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let ne;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const Q of G)Q.remove(this);else G.remove(this);const{initialTeardown:re}=this;if((0,g.m)(re))try{re()}catch(Q){ne=Q instanceof V?Q.errors:[Q]}const{_finalizers:_e}=this;if(_e){this._finalizers=null;for(const Q of _e)try{fe(Q)}catch(he){ne=ne??[],he instanceof V?ne=[...ne,...he.errors]:ne.push(he)}}if(ne)throw new V(ne)}}add(ne){var G;if(ne&&ne!==this)if(this.closed)fe(ne);else{if(ne instanceof H){if(ne.closed||ne._hasParent(this))return;ne._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push(ne)}}_hasParent(ne){const{_parentage:G}=this;return G===ne||Array.isArray(G)&&G.includes(ne)}_addParent(ne){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push(ne),G):G?[G,ne]:ne}_removeParent(ne){const{_parentage:G}=this;G===ne?this._parentage=null:Array.isArray(G)&&(0,x.P)(G,ne)}remove(ne){const{_finalizers:G}=this;G&&(0,x.P)(G,ne),ne instanceof H&&ne._removeParent(this)}}H.EMPTY=(()=>{const ue=new H;return ue.closed=!0,ue})();const se=H.EMPTY;function ee(ue){return ue instanceof H||ue&&"closed"in ue&&(0,g.m)(ue.remove)&&(0,g.m)(ue.add)&&(0,g.m)(ue.unsubscribe)}function fe(ue){(0,g.m)(ue)?ue():ue.unsubscribe()}},2653:(Oe,Z,C)=>{C.d(Z,{config:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},2572:(Oe,Z,C)=>{C.d(Z,{a:()=>ne});var g=C(5592),R=C(7453),V=C(2664),x=C(2737),H=C(7400),se=C(4564),ee=C(2714),fe=C(8251),ue=C(7103);function ne(..._e){const Q=(0,se.yG)(_e),he=(0,se.jO)(_e),{args:$e,keys:Me}=(0,R.D)(_e);if(0===$e.length)return(0,V.D)([],Q);const ze=new g.y(function G(_e,Q,he=x.y){return $e=>{re(Q,()=>{const{length:Me}=_e,ze=new Array(Me);let rt=Me,Xe=Me;for(let Y=0;Y{const me=(0,V.D)(_e[Y],Q);let pe=!1;me.subscribe((0,fe.x)($e,Ae=>{ze[Y]=Ae,pe||(pe=!0,Xe--),Xe||$e.next(he(ze.slice()))},()=>{--rt||$e.complete()}))},$e)},$e)}}($e,Q,Me?rt=>(0,ee.n)(Me,rt):x.y));return he?ze.pipe((0,H.Z)(he)):ze}function re(_e,Q,he){_e?(0,ue.f)(he,_e,Q):Q()}},6232:(Oe,Z,C)=>{C.d(Z,{E:()=>R});const R=new(C(5592).y)(H=>H.complete())},2664:(Oe,Z,C)=>{C.d(Z,{D:()=>V});var g=C(5154),R=C(4829);function V(x,H){return H?(0,g.x)(x,H):(0,R.Xf)(x)}},4829:(Oe,Z,C)=>{C.d(Z,{Xf:()=>_e});var g=C(5987),R=C(4266),V=C(4026),x=C(5592),H=C(8382),se=C(5726),ee=C(9853),fe=C(3664),ue=C(541),ne=C(4674),G=C(3894),re=C(4850);function _e(Y){if(Y instanceof x.y)return Y;if(null!=Y){if((0,H.c)(Y))return function Q(Y){return new x.y(me=>{const pe=Y[re.L]();if((0,ne.m)(pe.subscribe))return pe.subscribe(me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Y);if((0,R.z)(Y))return function he(Y){return new x.y(me=>{for(let pe=0;pe{Y.then(pe=>{me.closed||(me.next(pe),me.complete())},pe=>me.error(pe)).then(null,G.h)})}(Y);if((0,se.D)(Y))return ze(Y);if((0,fe.T)(Y))return function Me(Y){return new x.y(me=>{for(const pe of Y)if(me.next(pe),me.closed)return;me.complete()})}(Y);if((0,ue.L)(Y))return function rt(Y){return ze((0,ue.Q)(Y))}(Y)}throw(0,ee.z)(Y)}function ze(Y){return new x.y(me=>{(function Xe(Y,me){var pe,Ae,Ce,K;return(0,g.mG)(this,void 0,void 0,function*(){try{for(pe=(0,g.KL)(Y);!(Ae=yield pe.next()).done;)if(me.next(Ae.value),me.closed)return}catch(Qe){Ce={error:Qe}}finally{try{Ae&&!Ae.done&&(K=pe.return)&&(yield K.call(pe))}finally{if(Ce)throw Ce.error}}me.complete()})})(Y,me).catch(pe=>me.error(pe))})}},2096:(Oe,Z,C)=>{C.d(Z,{of:()=>V});var g=C(4564),R=C(2664);function V(...x){const H=(0,g.yG)(x);return(0,R.D)(x,H)}},8504:(Oe,Z,C)=>{C.d(Z,{_:()=>V});var g=C(5592),R=C(4674);function V(x,H){const se=(0,R.m)(x)?x:()=>x,ee=fe=>fe.error(se());return new g.y(H?fe=>H.schedule(ee,0,fe):ee)}},8251:(Oe,Z,C)=>{C.d(Z,{x:()=>R});var g=C(305);function R(x,H,se,ee,fe){return new V(x,H,se,ee,fe)}class V extends g.Lv{constructor(H,se,ee,fe,ue,ne){super(H),this.onFinalize=ue,this.shouldUnsubscribe=ne,this._next=se?function(G){try{se(G)}catch(re){H.error(re)}}:super._next,this._error=fe?function(G){try{fe(G)}catch(re){H.error(re)}finally{this.unsubscribe()}}:super._error,this._complete=ee?function(){try{ee()}catch(G){H.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var H;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:se}=this;super.unsubscribe(),!se&&(null===(H=this.onFinalize)||void 0===H||H.call(this))}}}},6306:(Oe,Z,C)=>{C.d(Z,{K:()=>x});var g=C(4829),R=C(8251),V=C(9360);function x(H){return(0,V.e)((se,ee)=>{let ne,fe=null,ue=!1;fe=se.subscribe((0,R.x)(ee,void 0,void 0,G=>{ne=(0,g.Xf)(H(G,x(H)(se))),fe?(fe.unsubscribe(),fe=null,ne.subscribe(ee)):ue=!0})),ue&&(fe.unsubscribe(),fe=null,ne.subscribe(ee))})}},6328:(Oe,Z,C)=>{C.d(Z,{b:()=>V});var g=C(1631),R=C(4674);function V(x,H){return(0,R.m)(H)?(0,g.z)(x,H,1):(0,g.z)(x,1)}},3572:(Oe,Z,C)=>{C.d(Z,{d:()=>V});var g=C(9360),R=C(8251);function V(x){return(0,g.e)((H,se)=>{let ee=!1;H.subscribe((0,R.x)(se,fe=>{ee=!0,se.next(fe)},()=>{ee||se.next(x),se.complete()}))})}},3997:(Oe,Z,C)=>{C.d(Z,{x:()=>x});var g=C(2737),R=C(9360),V=C(8251);function x(se,ee=g.y){return se=se??H,(0,R.e)((fe,ue)=>{let ne,G=!0;fe.subscribe((0,V.x)(ue,re=>{const _e=ee(re);(G||!se(ne,_e))&&(G=!1,ne=_e,ue.next(re))}))})}function H(se,ee){return se===ee}},2181:(Oe,Z,C)=>{C.d(Z,{h:()=>V});var g=C(9360),R=C(8251);function V(x,H){return(0,g.e)((se,ee)=>{let fe=0;se.subscribe((0,R.x)(ee,ue=>x.call(H,ue,fe++)&&ee.next(ue)))})}},4716:(Oe,Z,C)=>{C.d(Z,{x:()=>R});var g=C(9360);function R(V){return(0,g.e)((x,H)=>{try{x.subscribe(H)}finally{H.add(V)}})}},1374:(Oe,Z,C)=>{C.d(Z,{P:()=>ee});var g=C(6973),R=C(2181),V=C(8180),x=C(3572),H=C(3026),se=C(2737);function ee(fe,ue){const ne=arguments.length>=2;return G=>G.pipe(fe?(0,R.h)((re,_e)=>fe(re,_e,G)):se.y,(0,V.q)(1),ne?(0,x.d)(ue):(0,H.T)(()=>new g.K))}},7398:(Oe,Z,C)=>{C.d(Z,{U:()=>V});var g=C(9360),R=C(8251);function V(x,H){return(0,g.e)((se,ee)=>{let fe=0;se.subscribe((0,R.x)(ee,ue=>{ee.next(x.call(H,ue,fe++))}))})}},7537:(Oe,Z,C)=>{C.d(Z,{J:()=>V});var g=C(1631),R=C(2737);function V(x=1/0){return(0,g.z)(R.y,x)}},1631:(Oe,Z,C)=>{C.d(Z,{z:()=>fe});var g=C(7398),R=C(4829),V=C(9360),x=C(7103),H=C(8251),ee=C(4674);function fe(ue,ne,G=1/0){return(0,ee.m)(ne)?fe((re,_e)=>(0,g.U)((Q,he)=>ne(re,Q,_e,he))((0,R.Xf)(ue(re,_e))),G):("number"==typeof ne&&(G=ne),(0,V.e)((re,_e)=>function se(ue,ne,G,re,_e,Q,he,$e){const Me=[];let ze=0,rt=0,Xe=!1;const Y=()=>{Xe&&!Me.length&&!ze&&ne.complete()},me=Ae=>ze{Q&&ne.next(Ae),ze++;let Ce=!1;(0,R.Xf)(G(Ae,rt++)).subscribe((0,H.x)(ne,K=>{_e?.(K),Q?me(K):ne.next(K)},()=>{Ce=!0},void 0,()=>{if(Ce)try{for(ze--;Me.length&&zepe(K)):pe(K)}Y()}catch(K){ne.error(K)}}))};return ue.subscribe((0,H.x)(ne,me,()=>{Xe=!0,Y()})),()=>{$e?.()}}(re,_e,ue,G)))}},3093:(Oe,Z,C)=>{C.d(Z,{Q:()=>x});var g=C(7103),R=C(9360),V=C(8251);function x(H,se=0){return(0,R.e)((ee,fe)=>{ee.subscribe((0,V.x)(fe,ue=>(0,g.f)(fe,H,()=>fe.next(ue),se),()=>(0,g.f)(fe,H,()=>fe.complete(),se),ue=>(0,g.f)(fe,H,()=>fe.error(ue),se)))})}},3020:(Oe,Z,C)=>{C.d(Z,{B:()=>H});var g=C(4829),R=C(8645),V=C(305),x=C(9360);function H(ee={}){const{connector:fe=(()=>new R.x),resetOnError:ue=!0,resetOnComplete:ne=!0,resetOnRefCountZero:G=!0}=ee;return re=>{let _e,Q,he,$e=0,Me=!1,ze=!1;const rt=()=>{Q?.unsubscribe(),Q=void 0},Xe=()=>{rt(),_e=he=void 0,Me=ze=!1},Y=()=>{const me=_e;Xe(),me?.unsubscribe()};return(0,x.e)((me,pe)=>{$e++,!ze&&!Me&&rt();const Ae=he=he??fe();pe.add(()=>{$e--,0===$e&&!ze&&!Me&&(Q=se(Y,G))}),Ae.subscribe(pe),!_e&&$e>0&&(_e=new V.Hp({next:Ce=>Ae.next(Ce),error:Ce=>{ze=!0,rt(),Q=se(Xe,ue,Ce),Ae.error(Ce)},complete:()=>{Me=!0,rt(),Q=se(Xe,ne),Ae.complete()}}),(0,g.Xf)(me).subscribe(_e))})(re)}}function se(ee,fe,...ue){if(!0===fe)return void ee();if(!1===fe)return;const ne=new V.Hp({next:()=>{ne.unsubscribe(),ee()}});return(0,g.Xf)(fe(...ue)).subscribe(ne)}},4664:(Oe,Z,C)=>{C.d(Z,{w:()=>x});var g=C(4829),R=C(9360),V=C(8251);function x(H,se){return(0,R.e)((ee,fe)=>{let ue=null,ne=0,G=!1;const re=()=>G&&!ue&&fe.complete();ee.subscribe((0,V.x)(fe,_e=>{ue?.unsubscribe();let Q=0;const he=ne++;(0,g.Xf)(H(_e,he)).subscribe(ue=(0,V.x)(fe,$e=>fe.next(se?se(_e,$e,he,Q++):$e),()=>{ue=null,re()}))},()=>{G=!0,re()}))})}},8180:(Oe,Z,C)=>{C.d(Z,{q:()=>x});var g=C(6232),R=C(9360),V=C(8251);function x(H){return H<=0?()=>g.E:(0,R.e)((se,ee)=>{let fe=0;se.subscribe((0,V.x)(ee,ue=>{++fe<=H&&(ee.next(ue),H<=fe&&ee.complete())}))})}},9397:(Oe,Z,C)=>{C.d(Z,{b:()=>H});var g=C(4674),R=C(9360),V=C(8251),x=C(2737);function H(se,ee,fe){const ue=(0,g.m)(se)||ee||fe?{next:se,error:ee,complete:fe}:se;return ue?(0,R.e)((ne,G)=>{var re;null===(re=ue.subscribe)||void 0===re||re.call(ue);let _e=!0;ne.subscribe((0,V.x)(G,Q=>{var he;null===(he=ue.next)||void 0===he||he.call(ue,Q),G.next(Q)},()=>{var Q;_e=!1,null===(Q=ue.complete)||void 0===Q||Q.call(ue),G.complete()},Q=>{var he;_e=!1,null===(he=ue.error)||void 0===he||he.call(ue,Q),G.error(Q)},()=>{var Q,he;_e&&(null===(Q=ue.unsubscribe)||void 0===Q||Q.call(ue)),null===(he=ue.finalize)||void 0===he||he.call(ue)}))}):x.y}},3026:(Oe,Z,C)=>{C.d(Z,{T:()=>x});var g=C(6973),R=C(9360),V=C(8251);function x(se=H){return(0,R.e)((ee,fe)=>{let ue=!1;ee.subscribe((0,V.x)(fe,ne=>{ue=!0,fe.next(ne)},()=>ue?fe.complete():fe.error(se())))})}function H(){return new g.K}},5154:(Oe,Z,C)=>{C.d(Z,{x:()=>me});var g=C(4829),R=C(3093),V=C(9360);function x(pe,Ae=0){return(0,V.e)((Ce,K)=>{K.add(pe.schedule(()=>Ce.subscribe(K),Ae))})}var ee=C(5592),ue=C(4971),ne=C(4674),G=C(7103);function _e(pe,Ae){if(!pe)throw new Error("Iterable cannot be null");return new ee.y(Ce=>{(0,G.f)(Ce,Ae,()=>{const K=pe[Symbol.asyncIterator]();(0,G.f)(Ce,Ae,()=>{K.next().then(Qe=>{Qe.done?Ce.complete():Ce.next(Qe.value)})},0,!0)})})}var Q=C(8382),he=C(4026),$e=C(4266),Me=C(3664),ze=C(5726),rt=C(9853),Xe=C(541);function me(pe,Ae){if(null!=pe){if((0,Q.c)(pe))return function H(pe,Ae){return(0,g.Xf)(pe).pipe(x(Ae),(0,R.Q)(Ae))}(pe,Ae);if((0,$e.z)(pe))return function fe(pe,Ae){return new ee.y(Ce=>{let K=0;return Ae.schedule(function(){K===pe.length?Ce.complete():(Ce.next(pe[K++]),Ce.closed||this.schedule())})})}(pe,Ae);if((0,he.t)(pe))return function se(pe,Ae){return(0,g.Xf)(pe).pipe(x(Ae),(0,R.Q)(Ae))}(pe,Ae);if((0,ze.D)(pe))return _e(pe,Ae);if((0,Me.T)(pe))return function re(pe,Ae){return new ee.y(Ce=>{let K;return(0,G.f)(Ce,Ae,()=>{K=pe[ue.h](),(0,G.f)(Ce,Ae,()=>{let Qe,Ie;try{({value:Qe,done:Ie}=K.next())}catch(We){return void Ce.error(We)}Ie?Ce.complete():Ce.next(Qe)},0,!0)}),()=>(0,ne.m)(K?.return)&&K.return()})}(pe,Ae);if((0,Xe.L)(pe))return function Y(pe,Ae){return _e((0,Xe.Q)(pe),Ae)}(pe,Ae)}throw(0,rt.z)(pe)}},7599:(Oe,Z,C)=>{C.d(Z,{z:()=>g});const g={setTimeout(R,V,...x){const{delegate:H}=g;return H?.setTimeout?H.setTimeout(R,V,...x):setTimeout(R,V,...x)},clearTimeout(R){const{delegate:V}=g;return(V?.clearTimeout||clearTimeout)(R)},delegate:void 0}},4971:(Oe,Z,C)=>{C.d(Z,{h:()=>R});const R=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(Oe,Z,C)=>{C.d(Z,{L:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(Oe,Z,C)=>{C.d(Z,{K:()=>R});const R=(0,C(2306).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},4564:(Oe,Z,C)=>{C.d(Z,{_6:()=>se,jO:()=>x,yG:()=>H});var g=C(4674);function V(ee){return ee[ee.length-1]}function x(ee){return(0,g.m)(V(ee))?ee.pop():void 0}function H(ee){return function R(ee){return ee&&(0,g.m)(ee.schedule)}(V(ee))?ee.pop():void 0}function se(ee,fe){return"number"==typeof V(ee)?ee.pop():fe}},7453:(Oe,Z,C)=>{C.d(Z,{D:()=>H});const{isArray:g}=Array,{getPrototypeOf:R,prototype:V,keys:x}=Object;function H(ee){if(1===ee.length){const fe=ee[0];if(g(fe))return{args:fe,keys:null};if(function se(ee){return ee&&"object"==typeof ee&&R(ee)===V}(fe)){const ue=x(fe);return{args:ue.map(ne=>fe[ne]),keys:ue}}}return{args:ee,keys:null}}},9039:(Oe,Z,C)=>{function g(R,V){if(R){const x=R.indexOf(V);0<=x&&R.splice(x,1)}}C.d(Z,{P:()=>g})},2306:(Oe,Z,C)=>{function g(R){const x=R(H=>{Error.call(H),H.stack=(new Error).stack});return x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x}C.d(Z,{d:()=>g})},2714:(Oe,Z,C)=>{function g(R,V){return R.reduce((x,H,se)=>(x[H]=V[se],x),{})}C.d(Z,{n:()=>g})},1441:(Oe,Z,C)=>{C.d(Z,{O:()=>x,x:()=>V});var g=C(2653);let R=null;function V(H){if(g.config.useDeprecatedSynchronousErrorHandling){const se=!R;if(se&&(R={errorThrown:!1,error:null}),H(),se){const{errorThrown:ee,error:fe}=R;if(R=null,ee)throw fe}}else H()}function x(H){g.config.useDeprecatedSynchronousErrorHandling&&R&&(R.errorThrown=!0,R.error=H)}},7103:(Oe,Z,C)=>{function g(R,V,x,H=0,se=!1){const ee=V.schedule(function(){x(),se?R.add(this.schedule(null,H)):this.unsubscribe()},H);if(R.add(ee),!se)return ee}C.d(Z,{f:()=>g})},2737:(Oe,Z,C)=>{function g(R){return R}C.d(Z,{y:()=>g})},4266:(Oe,Z,C)=>{C.d(Z,{z:()=>g});const g=R=>R&&"number"==typeof R.length&&"function"!=typeof R},5726:(Oe,Z,C)=>{C.d(Z,{D:()=>R});var g=C(4674);function R(V){return Symbol.asyncIterator&&(0,g.m)(V?.[Symbol.asyncIterator])}},4674:(Oe,Z,C)=>{function g(R){return"function"==typeof R}C.d(Z,{m:()=>g})},8382:(Oe,Z,C)=>{C.d(Z,{c:()=>V});var g=C(4850),R=C(4674);function V(x){return(0,R.m)(x[g.L])}},3664:(Oe,Z,C)=>{C.d(Z,{T:()=>V});var g=C(4971),R=C(4674);function V(x){return(0,R.m)(x?.[g.h])}},7258:(Oe,Z,C)=>{C.d(Z,{b:()=>V});var g=C(5592),R=C(4674);function V(x){return!!x&&(x instanceof g.y||(0,R.m)(x.lift)&&(0,R.m)(x.subscribe))}},4026:(Oe,Z,C)=>{C.d(Z,{t:()=>R});var g=C(4674);function R(V){return(0,g.m)(V?.then)}},541:(Oe,Z,C)=>{C.d(Z,{L:()=>x,Q:()=>V});var g=C(5987),R=C(4674);function V(H){return(0,g.FC)(this,arguments,function*(){const ee=H.getReader();try{for(;;){const{value:fe,done:ue}=yield(0,g.qq)(ee.read());if(ue)return yield(0,g.qq)(void 0);yield yield(0,g.qq)(fe)}}finally{ee.releaseLock()}})}function x(H){return(0,R.m)(H?.getReader)}},9360:(Oe,Z,C)=>{C.d(Z,{A:()=>R,e:()=>V});var g=C(4674);function R(x){return(0,g.m)(x?.lift)}function V(x){return H=>{if(R(H))return H.lift(function(se){try{return x(se,this)}catch(ee){this.error(ee)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(Oe,Z,C)=>{C.d(Z,{Z:()=>x});var g=C(7398);const{isArray:R}=Array;function x(H){return(0,g.U)(se=>function V(H,se){return R(se)?H(...se):H(se)}(H,se))}},2420:(Oe,Z,C)=>{function g(){}C.d(Z,{Z:()=>g})},8407:(Oe,Z,C)=>{C.d(Z,{U:()=>V,z:()=>R});var g=C(2737);function R(...x){return V(x)}function V(x){return 0===x.length?g.y:1===x.length?x[0]:function(se){return x.reduce((ee,fe)=>fe(ee),se)}}},3894:(Oe,Z,C)=>{C.d(Z,{h:()=>V});var g=C(2653),R=C(7599);function V(x){R.z.setTimeout(()=>{const{onUnhandledError:H}=g.config;if(!H)throw x;H(x)})}},9853:(Oe,Z,C)=>{function g(R){return new TypeError(`You provided ${null!==R&&"object"==typeof R?"an invalid object":`'${R}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(Z,{z:()=>g})},5987:(Oe,Z,C)=>{function re(j,W,oe,le){return new(oe||(oe=Promise))(function(A,O){function z(Be){try{Ee(le.next(Be))}catch(ke){O(ke)}}function ye(Be){try{Ee(le.throw(Be))}catch(ke){O(ke)}}function Ee(Be){Be.done?A(Be.value):function B(A){return A instanceof oe?A:new oe(function(O){O(A)})}(Be.value).then(z,ye)}Ee((le=le.apply(j,W||[])).next())})}function Y(j){return this instanceof Y?(this.v=j,this):new Y(j)}function me(j,W,oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var B,le=oe.apply(j,W||[]),A=[];return B={},O("next"),O("throw"),O("return"),B[Symbol.asyncIterator]=function(){return this},B;function O(ve){le[ve]&&(B[ve]=function(it){return new Promise(function(ut,Ue){A.push([ve,it,ut,Ue])>1||z(ve,it)})})}function z(ve,it){try{!function ye(ve){ve.value instanceof Y?Promise.resolve(ve.value.v).then(Ee,Be):ke(A[0][2],ve)}(le[ve](it))}catch(ut){ke(A[0][3],ut)}}function Ee(ve){z("next",ve)}function Be(ve){z("throw",ve)}function ke(ve,it){ve(it),A.shift(),A.length&&z(A[0][0],A[0][1])}}function Ae(j){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var oe,W=j[Symbol.asyncIterator];return W?W.call(j):(j=function $e(j){var W="function"==typeof Symbol&&Symbol.iterator,oe=W&&j[W],le=0;if(oe)return oe.call(j);if(j&&"number"==typeof j.length)return{next:function(){return j&&le>=j.length&&(j=void 0),{value:j&&j[le++],done:!j}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")}(j),oe={},le("next"),le("throw"),le("return"),oe[Symbol.asyncIterator]=function(){return this},oe);function le(A){oe[A]=j[A]&&function(O){return new Promise(function(z,ye){!function B(A,O,z,ye){Promise.resolve(ye).then(function(Ee){A({value:Ee,done:z})},O)}(z,ye,(O=j[A](O)).done,O.value)})}}}C.d(Z,{FC:()=>me,KL:()=>Ae,mG:()=>re,qq:()=>Y})},6814:(Oe,Z,C)=>{C.d(Z,{HT:()=>x,JF:()=>Bo,K0:()=>se,Mx:()=>Dr,O5:()=>Hr,Ov:()=>dt,PM:()=>_r,S$:()=>_e,Ye:()=>Me,bD:()=>Mn,ez:()=>ko,gd:()=>qt,q:()=>V,sg:()=>Wn,w_:()=>H});var g=C(2029);let R=null;function V(){return R}function x(u){R||(R=u)}class H{}const se=new g.OlP("DocumentToken");let ee=(()=>{class u{historyGo(p){throw new Error("Not implemented")}}return u.\u0275fac=function(p){return new(p||u)},u.\u0275prov=g.Yz7({token:u,factory:function(){return(0,g.f3M)(ue)},providedIn:"platform"}),u})(),ue=(()=>{class u extends ee{constructor(){super(),this._doc=(0,g.f3M)(se),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(p){const D=V().getGlobalEventTarget(this._doc,"window");return D.addEventListener("popstate",p,!1),()=>D.removeEventListener("popstate",p)}onHashChange(p){const D=V().getGlobalEventTarget(this._doc,"window");return D.addEventListener("hashchange",p,!1),()=>D.removeEventListener("hashchange",p)}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(p){this._location.pathname=p}pushState(p,D,I){this._history.pushState(p,D,I)}replaceState(p,D,I){this._history.replaceState(p,D,I)}forward(){this._history.forward()}back(){this._history.back()}historyGo(p=0){this._history.go(p)}getState(){return this._history.state}}return u.\u0275fac=function(p){return new(p||u)},u.\u0275prov=g.Yz7({token:u,factory:function(){return new u},providedIn:"platform"}),u})();function ne(u,v){if(0==u.length)return v;if(0==v.length)return u;let p=0;return u.endsWith("/")&&p++,v.startsWith("/")&&p++,2==p?u+v.substring(1):1==p?u+v:u+"/"+v}function G(u){const v=u.match(/#|\?|$/),p=v&&v.index||u.length;return u.slice(0,p-("/"===u[p-1]?1:0))+u.slice(p)}function re(u){return u&&"?"!==u[0]?"?"+u:u}let _e=(()=>{class u{historyGo(p){throw new Error("Not implemented")}}return u.\u0275fac=function(p){return new(p||u)},u.\u0275prov=g.Yz7({token:u,factory:function(){return(0,g.f3M)(he)},providedIn:"root"}),u})();const Q=new g.OlP("appBaseHref");let he=(()=>{class u extends _e{constructor(p,D){super(),this._platformLocation=p,this._removeListenerFns=[],this._baseHref=D??this._platformLocation.getBaseHrefFromDOM()??(0,g.f3M)(se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(p){this._removeListenerFns.push(this._platformLocation.onPopState(p),this._platformLocation.onHashChange(p))}getBaseHref(){return this._baseHref}prepareExternalUrl(p){return ne(this._baseHref,p)}path(p=!1){const D=this._platformLocation.pathname+re(this._platformLocation.search),I=this._platformLocation.hash;return I&&p?`${D}${I}`:D}pushState(p,D,I,$){const q=this.prepareExternalUrl(I+re($));this._platformLocation.pushState(p,D,q)}replaceState(p,D,I,$){const q=this.prepareExternalUrl(I+re($));this._platformLocation.replaceState(p,D,q)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(p=0){this._platformLocation.historyGo?.(p)}}return u.\u0275fac=function(p){return new(p||u)(g.LFG(ee),g.LFG(Q,8))},u.\u0275prov=g.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),Me=(()=>{class u{constructor(p){this._subject=new g.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=p;const D=this._locationStrategy.getBaseHref();this._basePath=function Y(u){if(new RegExp("^(https?:)?//").test(u)){const[,p]=u.split(/\/\/[^\/]+/);return p}return u}(G(Xe(D))),this._locationStrategy.onPopState(I=>{this._subject.emit({url:this.path(!0),pop:!0,state:I.state,type:I.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(p=!1){return this.normalize(this._locationStrategy.path(p))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(p,D=""){return this.path()==this.normalize(p+re(D))}normalize(p){return u.stripTrailingSlash(function rt(u,v){if(!u||!v.startsWith(u))return v;const p=v.substring(u.length);return""===p||["/",";","?","#"].includes(p[0])?p:v}(this._basePath,Xe(p)))}prepareExternalUrl(p){return p&&"/"!==p[0]&&(p="/"+p),this._locationStrategy.prepareExternalUrl(p)}go(p,D="",I=null){this._locationStrategy.pushState(I,"",p,D),this._notifyUrlChangeListeners(this.prepareExternalUrl(p+re(D)),I)}replaceState(p,D="",I=null){this._locationStrategy.replaceState(I,"",p,D),this._notifyUrlChangeListeners(this.prepareExternalUrl(p+re(D)),I)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(p=0){this._locationStrategy.historyGo?.(p)}onUrlChange(p){return this._urlChangeListeners.push(p),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(D=>{this._notifyUrlChangeListeners(D.url,D.state)})),()=>{const D=this._urlChangeListeners.indexOf(p);this._urlChangeListeners.splice(D,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(p="",D){this._urlChangeListeners.forEach(I=>I(p,D))}subscribe(p,D,I){return this._subject.subscribe({next:p,error:D,complete:I})}}return u.normalizeQueryParams=re,u.joinWithSlash=ne,u.stripTrailingSlash=G,u.\u0275fac=function(p){return new(p||u)(g.LFG(_e))},u.\u0275prov=g.Yz7({token:u,factory:function(){return function ze(){return new Me((0,g.LFG)(_e))}()},providedIn:"root"}),u})();function Xe(u){return u.replace(/\/index.html$/,"")}function Dr(u,v){v=encodeURIComponent(v);for(const p of u.split(";")){const D=p.indexOf("="),[I,$]=-1==D?[p,""]:[p.slice(0,D),p.slice(D+1)];if(I.trim()===v)return decodeURIComponent($)}return null}class zt{constructor(v,p,D,I){this.$implicit=v,this.ngForOf=p,this.index=D,this.count=I}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 Wn=(()=>{class u{set ngForOf(p){this._ngForOf=p,this._ngForOfDirty=!0}set ngForTrackBy(p){this._trackByFn=p}get ngForTrackBy(){return this._trackByFn}constructor(p,D,I){this._viewContainer=p,this._template=D,this._differs=I,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(p){p&&(this._template=p)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const p=this._ngForOf;!this._differ&&p&&(this._differ=this._differs.find(p).create(this.ngForTrackBy))}if(this._differ){const p=this._differ.diff(this._ngForOf);p&&this._applyChanges(p)}}_applyChanges(p){const D=this._viewContainer;p.forEachOperation((I,$,q)=>{if(null==I.previousIndex)D.createEmbeddedView(this._template,new zt(I.item,this._ngForOf,-1,-1),null===q?void 0:q);else if(null==q)D.remove(null===$?void 0:$);else if(null!==$){const Pe=D.get($);D.move(Pe,q),Bt(Pe,I)}});for(let I=0,$=D.length;I<$;I++){const Pe=D.get(I).context;Pe.index=I,Pe.count=$,Pe.ngForOf=this._ngForOf}p.forEachIdentityChange(I=>{Bt(D.get(I.currentIndex),I)})}static ngTemplateContextGuard(p,D){return!0}}return u.\u0275fac=function(p){return new(p||u)(g.Y36(g.s_b),g.Y36(g.Rgc),g.Y36(g.ZZ4))},u.\u0275dir=g.lG2({type:u,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),u})();function Bt(u,v){u.context.$implicit=v.item}let Hr=(()=>{class u{constructor(p,D){this._viewContainer=p,this._context=new Er,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=D}set ngIf(p){this._context.$implicit=this._context.ngIf=p,this._updateView()}set ngIfThen(p){Br("ngIfThen",p),this._thenTemplateRef=p,this._thenViewRef=null,this._updateView()}set ngIfElse(p){Br("ngIfElse",p),this._elseTemplateRef=p,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(p,D){return!0}}return u.\u0275fac=function(p){return new(p||u)(g.Y36(g.s_b),g.Y36(g.Rgc))},u.\u0275dir=g.lG2({type:u,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),u})();class Er{constructor(){this.$implicit=null,this.ngIf=null}}function Br(u,v){if(v&&!v.createEmbeddedView)throw new Error(`${u} must be a TemplateRef, but received '${(0,g.AaK)(v)}'.`)}function dn(u,v){return new g.vHH(2100,!1)}class Li{createSubscription(v,p){return(0,g.rg0)(()=>v.subscribe({next:p,error:D=>{throw D}}))}dispose(v){(0,g.rg0)(()=>v.unsubscribe())}}class Fo{createSubscription(v,p){return v.then(p,D=>{throw D})}dispose(v){}}const ki=new Fo,Ui=new Li;let dt=(()=>{class u{constructor(p){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=p}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(p){return this._obj?p!==this._obj?(this._dispose(),this.transform(p)):this._latestValue:(p&&this._subscribe(p),this._latestValue)}_subscribe(p){this._obj=p,this._strategy=this._selectStrategy(p),this._subscription=this._strategy.createSubscription(p,D=>this._updateLatestValue(p,D))}_selectStrategy(p){if((0,g.QGY)(p))return ki;if((0,g.F4k)(p))return Ui;throw dn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(p,D){p===this._obj&&(this._latestValue=D,this._ref.markForCheck())}}return u.\u0275fac=function(p){return new(p||u)(g.Y36(g.sBO,16))},u.\u0275pipe=g.Yjl({name:"async",type:u,pure:!1,standalone:!0}),u})(),qt=(()=>{class u{transform(p){if(null==p)return null;if("string"!=typeof p)throw dn();return p.toUpperCase()}}return u.\u0275fac=function(p){return new(p||u)},u.\u0275pipe=g.Yjl({name:"uppercase",type:u,pure:!0,standalone:!0}),u})(),ko=(()=>{class u{}return u.\u0275fac=function(p){return new(p||u)},u.\u0275mod=g.oAB({type:u}),u.\u0275inj=g.cJS({}),u})();const Mn="browser",Ft="server";function _r(u){return u===Ft}class Bo{}},9862:(Oe,Z,C)=>{C.d(Z,{AF:()=>nt,LE:()=>Y,WM:()=>_e,Zn:()=>j,eN:()=>le,h_:()=>yr,jN:()=>re});var g=C(2029),R=C(2096),V=C(2664),x=C(5592),H=C(6328),se=C(2181),ee=C(7398),fe=C(4716),ue=C(4664),ne=C(6814);class G{}class re{}class _e{constructor(S){this.normalizedNames=new Map,this.lazyUpdate=null,S?"string"==typeof S?this.lazyInit=()=>{this.headers=new Map,S.split("\n").forEach(T=>{const de=T.indexOf(":");if(de>0){const De=T.slice(0,de),be=De.toLowerCase(),we=T.slice(de+1).trim();this.maybeSetNormalizedName(De,be),this.headers.has(be)?this.headers.get(be).push(we):this.headers.set(be,[we])}})}:typeof Headers<"u"&&S instanceof Headers?(this.headers=new Map,S.forEach((T,de)=>{this.setHeaderEntries(de,T)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(S).forEach(([T,de])=>{this.setHeaderEntries(T,de)})}:this.headers=new Map}has(S){return this.init(),this.headers.has(S.toLowerCase())}get(S){this.init();const T=this.headers.get(S.toLowerCase());return T&&T.length>0?T[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(S){return this.init(),this.headers.get(S.toLowerCase())||null}append(S,T){return this.clone({name:S,value:T,op:"a"})}set(S,T){return this.clone({name:S,value:T,op:"s"})}delete(S,T){return this.clone({name:S,value:T,op:"d"})}maybeSetNormalizedName(S,T){this.normalizedNames.has(T)||this.normalizedNames.set(T,S)}init(){this.lazyInit&&(this.lazyInit instanceof _e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(S=>this.applyUpdate(S)),this.lazyUpdate=null))}copyFrom(S){S.init(),Array.from(S.headers.keys()).forEach(T=>{this.headers.set(T,S.headers.get(T)),this.normalizedNames.set(T,S.normalizedNames.get(T))})}clone(S){const T=new _e;return T.lazyInit=this.lazyInit&&this.lazyInit instanceof _e?this.lazyInit:this,T.lazyUpdate=(this.lazyUpdate||[]).concat([S]),T}applyUpdate(S){const T=S.name.toLowerCase();switch(S.op){case"a":case"s":let de=S.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(S.name,T);const De=("a"===S.op?this.headers.get(T):void 0)||[];De.push(...de),this.headers.set(T,De);break;case"d":const be=S.value;if(be){let we=this.headers.get(T);if(!we)return;we=we.filter(ct=>-1===be.indexOf(ct)),0===we.length?(this.headers.delete(T),this.normalizedNames.delete(T)):this.headers.set(T,we)}else this.headers.delete(T),this.normalizedNames.delete(T)}}setHeaderEntries(S,T){const de=(Array.isArray(T)?T:[T]).map(be=>be.toString()),De=S.toLowerCase();this.headers.set(De,de),this.maybeSetNormalizedName(S,De)}forEach(S){this.init(),Array.from(this.normalizedNames.keys()).forEach(T=>S(this.normalizedNames.get(T),this.headers.get(T)))}}class he{encodeKey(S){return rt(S)}encodeValue(S){return rt(S)}decodeKey(S){return decodeURIComponent(S)}decodeValue(S){return decodeURIComponent(S)}}const Me=/%(\d[a-f0-9])/gi,ze={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function rt(L){return encodeURIComponent(L).replace(Me,(S,T)=>ze[T]??S)}function Xe(L){return`${L}`}class Y{constructor(S={}){if(this.updates=null,this.cloneFrom=null,this.encoder=S.encoder||new he,S.fromString){if(S.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function $e(L,S){const T=new Map;return L.length>0&&L.replace(/^\?/,"").split("&").forEach(De=>{const be=De.indexOf("="),[we,ct]=-1==be?[S.decodeKey(De),""]:[S.decodeKey(De.slice(0,be)),S.decodeValue(De.slice(be+1))],Ge=T.get(we)||[];Ge.push(ct),T.set(we,Ge)}),T}(S.fromString,this.encoder)}else S.fromObject?(this.map=new Map,Object.keys(S.fromObject).forEach(T=>{const de=S.fromObject[T],De=Array.isArray(de)?de.map(Xe):[Xe(de)];this.map.set(T,De)})):this.map=null}has(S){return this.init(),this.map.has(S)}get(S){this.init();const T=this.map.get(S);return T?T[0]:null}getAll(S){return this.init(),this.map.get(S)||null}keys(){return this.init(),Array.from(this.map.keys())}append(S,T){return this.clone({param:S,value:T,op:"a"})}appendAll(S){const T=[];return Object.keys(S).forEach(de=>{const De=S[de];Array.isArray(De)?De.forEach(be=>{T.push({param:de,value:be,op:"a"})}):T.push({param:de,value:De,op:"a"})}),this.clone(T)}set(S,T){return this.clone({param:S,value:T,op:"s"})}delete(S,T){return this.clone({param:S,value:T,op:"d"})}toString(){return this.init(),this.keys().map(S=>{const T=this.encoder.encodeKey(S);return this.map.get(S).map(de=>T+"="+this.encoder.encodeValue(de)).join("&")}).filter(S=>""!==S).join("&")}clone(S){const T=new Y({encoder:this.encoder});return T.cloneFrom=this.cloneFrom||this,T.updates=(this.updates||[]).concat(S),T}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(S=>this.map.set(S,this.cloneFrom.map.get(S))),this.updates.forEach(S=>{switch(S.op){case"a":case"s":const T=("a"===S.op?this.map.get(S.param):void 0)||[];T.push(Xe(S.value)),this.map.set(S.param,T);break;case"d":if(void 0===S.value){this.map.delete(S.param);break}{let de=this.map.get(S.param)||[];const De=de.indexOf(Xe(S.value));-1!==De&&de.splice(De,1),de.length>0?this.map.set(S.param,de):this.map.delete(S.param)}}}),this.cloneFrom=this.updates=null)}}class pe{constructor(){this.map=new Map}set(S,T){return this.map.set(S,T),this}get(S){return this.map.has(S)||this.map.set(S,S.defaultValue()),this.map.get(S)}delete(S){return this.map.delete(S),this}has(S){return this.map.has(S)}keys(){return this.map.keys()}}function Ce(L){return typeof ArrayBuffer<"u"&&L instanceof ArrayBuffer}function K(L){return typeof Blob<"u"&&L instanceof Blob}function Qe(L){return typeof FormData<"u"&&L instanceof FormData}class We{constructor(S,T,de,De){let be;if(this.url=T,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=S.toUpperCase(),function Ae(L){switch(L){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||De?(this.body=void 0!==de?de:null,be=De):be=de,be&&(this.reportProgress=!!be.reportProgress,this.withCredentials=!!be.withCredentials,be.responseType&&(this.responseType=be.responseType),be.headers&&(this.headers=be.headers),be.context&&(this.context=be.context),be.params&&(this.params=be.params)),this.headers||(this.headers=new _e),this.context||(this.context=new pe),this.params){const we=this.params.toString();if(0===we.length)this.urlWithParams=T;else{const ct=T.indexOf("?");this.urlWithParams=T+(-1===ct?"?":ctYt.set(rn,S.setHeaders[rn]),Ge)),S.setParams&&(Vt=Object.keys(S.setParams).reduce((Yt,rn)=>Yt.set(rn,S.setParams[rn]),Vt)),new We(T,de,be,{params:Vt,headers:Ge,context:cn,reportProgress:ct,responseType:De,withCredentials:we})}}var Ct=function(L){return L[L.Sent=0]="Sent",L[L.UploadProgress=1]="UploadProgress",L[L.ResponseHeader=2]="ResponseHeader",L[L.DownloadProgress=3]="DownloadProgress",L[L.Response=4]="Response",L[L.User=5]="User",L}(Ct||{});class Kt{constructor(S,T=200,de="OK"){this.headers=S.headers||new _e,this.status=void 0!==S.status?S.status:T,this.statusText=S.statusText||de,this.url=S.url||null,this.ok=this.status>=200&&this.status<300}}class Zt extends Kt{constructor(S={}){super(S),this.type=Ct.ResponseHeader}clone(S={}){return new Zt({headers:S.headers||this.headers,status:void 0!==S.status?S.status:this.status,statusText:S.statusText||this.statusText,url:S.url||this.url||void 0})}}class j extends Kt{constructor(S={}){super(S),this.type=Ct.Response,this.body=void 0!==S.body?S.body:null}clone(S={}){return new j({body:void 0!==S.body?S.body:this.body,headers:S.headers||this.headers,status:void 0!==S.status?S.status:this.status,statusText:S.statusText||this.statusText,url:S.url||this.url||void 0})}}class W extends Kt{constructor(S){super(S,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${S.url||"(unknown url)"}`:`Http failure response for ${S.url||"(unknown url)"}: ${S.status} ${S.statusText}`,this.error=S.error||null}}function oe(L,S){return{body:S,headers:L.headers,context:L.context,observe:L.observe,params:L.params,reportProgress:L.reportProgress,responseType:L.responseType,withCredentials:L.withCredentials}}let le=(()=>{class L{constructor(T){this.handler=T}request(T,de,De={}){let be;if(T instanceof We)be=T;else{let Ge,Vt;Ge=De.headers instanceof _e?De.headers:new _e(De.headers),De.params&&(Vt=De.params instanceof Y?De.params:new Y({fromObject:De.params})),be=new We(T,de,void 0!==De.body?De.body:null,{headers:Ge,context:De.context,params:Vt,reportProgress:De.reportProgress,responseType:De.responseType||"json",withCredentials:De.withCredentials})}const we=(0,R.of)(be).pipe((0,H.b)(Ge=>this.handler.handle(Ge)));if(T instanceof We||"events"===De.observe)return we;const ct=we.pipe((0,se.h)(Ge=>Ge instanceof j));switch(De.observe||"body"){case"body":switch(be.responseType){case"arraybuffer":return ct.pipe((0,ee.U)(Ge=>{if(null!==Ge.body&&!(Ge.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ge.body}));case"blob":return ct.pipe((0,ee.U)(Ge=>{if(null!==Ge.body&&!(Ge.body instanceof Blob))throw new Error("Response is not a Blob.");return Ge.body}));case"text":return ct.pipe((0,ee.U)(Ge=>{if(null!==Ge.body&&"string"!=typeof Ge.body)throw new Error("Response is not a string.");return Ge.body}));default:return ct.pipe((0,ee.U)(Ge=>Ge.body))}case"response":return ct;default:throw new Error(`Unreachable: unhandled observe type ${De.observe}}`)}}delete(T,de={}){return this.request("DELETE",T,de)}get(T,de={}){return this.request("GET",T,de)}head(T,de={}){return this.request("HEAD",T,de)}jsonp(T,de){return this.request("JSONP",T,{params:(new Y).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(T,de={}){return this.request("OPTIONS",T,de)}patch(T,de,De={}){return this.request("PATCH",T,oe(De,de))}post(T,de,De={}){return this.request("POST",T,oe(De,de))}put(T,de,De={}){return this.request("PUT",T,oe(De,de))}}return L.\u0275fac=function(T){return new(T||L)(g.LFG(G))},L.\u0275prov=g.Yz7({token:L,factory:L.\u0275fac}),L})();function ke(L,S){return S(L)}const Ue=new g.OlP(""),$t=new g.OlP("");let St=(()=>{class L extends G{constructor(T,de){super(),this.backend=T,this.injector=de,this.chain=null,this.pendingTasks=(0,g.f3M)(g.HDt)}handle(T){if(null===this.chain){const De=Array.from(new Set([...this.injector.get(Ue),...this.injector.get($t,[])]));this.chain=De.reduceRight((be,we)=>function it(L,S,T){return(de,De)=>T.runInContext(()=>S(de,be=>L(be,De)))}(be,we,this.injector),ke)}const de=this.pendingTasks.add();return this.chain(T,De=>this.backend.handle(De)).pipe((0,fe.x)(()=>this.pendingTasks.remove(de)))}}return L.\u0275fac=function(T){return new(T||L)(g.LFG(re),g.LFG(g.lqb))},L.\u0275prov=g.Yz7({token:L,factory:L.\u0275fac}),L})();const Tn=/^\)\]\}',?\n/;let nt=(()=>{class L{constructor(T){this.xhrFactory=T}handle(T){if("JSONP"===T.method)throw new g.vHH(-2800,!1);const de=this.xhrFactory;return(de.\u0275loadImpl?(0,V.D)(de.\u0275loadImpl()):(0,R.of)(null)).pipe((0,ue.w)(()=>new x.y(be=>{const we=de.build();if(we.open(T.method,T.urlWithParams),T.withCredentials&&(we.withCredentials=!0),T.headers.forEach((gt,Rt)=>we.setRequestHeader(gt,Rt.join(","))),T.headers.has("Accept")||we.setRequestHeader("Accept","application/json, text/plain, */*"),!T.headers.has("Content-Type")){const gt=T.detectContentTypeHeader();null!==gt&&we.setRequestHeader("Content-Type",gt)}if(T.responseType){const gt=T.responseType.toLowerCase();we.responseType="json"!==gt?gt:"text"}const ct=T.serializeBody();let Ge=null;const Vt=()=>{if(null!==Ge)return Ge;const gt=we.statusText||"OK",Rt=new _e(we.getAllResponseHeaders()),wn=function Ve(L){return"responseURL"in L&&L.responseURL?L.responseURL:/^X-Request-URL:/m.test(L.getAllResponseHeaders())?L.getResponseHeader("X-Request-URL"):null}(we)||T.url;return Ge=new Zt({headers:Rt,status:we.status,statusText:gt,url:wn}),Ge},cn=()=>{let{headers:gt,status:Rt,statusText:wn,url:or}=Vt(),zt=null;204!==Rt&&(zt=typeof we.response>"u"?we.responseText:we.response),0===Rt&&(Rt=zt?200:0);let Wn=Rt>=200&&Rt<300;if("json"===T.responseType&&"string"==typeof zt){const Bt=zt;zt=zt.replace(Tn,"");try{zt=""!==zt?JSON.parse(zt):null}catch(ln){zt=Bt,Wn&&(Wn=!1,zt={error:ln,text:zt})}}Wn?(be.next(new j({body:zt,headers:gt,status:Rt,statusText:wn,url:or||void 0})),be.complete()):be.error(new W({error:zt,headers:gt,status:Rt,statusText:wn,url:or||void 0}))},Yt=gt=>{const{url:Rt}=Vt(),wn=new W({error:gt,status:we.status||0,statusText:we.statusText||"Unknown Error",url:Rt||void 0});be.error(wn)};let rn=!1;const Dr=gt=>{rn||(be.next(Vt()),rn=!0);let Rt={type:Ct.DownloadProgress,loaded:gt.loaded};gt.lengthComputable&&(Rt.total=gt.total),"text"===T.responseType&&we.responseText&&(Rt.partialText=we.responseText),be.next(Rt)},on=gt=>{let Rt={type:Ct.UploadProgress,loaded:gt.loaded};gt.lengthComputable&&(Rt.total=gt.total),be.next(Rt)};return we.addEventListener("load",cn),we.addEventListener("error",Yt),we.addEventListener("timeout",Yt),we.addEventListener("abort",Yt),T.reportProgress&&(we.addEventListener("progress",Dr),null!==ct&&we.upload&&we.upload.addEventListener("progress",on)),we.send(ct),be.next({type:Ct.Sent}),()=>{we.removeEventListener("error",Yt),we.removeEventListener("abort",Yt),we.removeEventListener("load",cn),we.removeEventListener("timeout",Yt),T.reportProgress&&(we.removeEventListener("progress",Dr),null!==ct&&we.upload&&we.upload.removeEventListener("progress",on)),we.readyState!==we.DONE&&we.abort()}})))}}return L.\u0275fac=function(T){return new(T||L)(g.LFG(ne.JF))},L.\u0275prov=g.Yz7({token:L,factory:L.\u0275fac}),L})();const Pt=new g.OlP("XSRF_ENABLED"),pt=new g.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),je=new g.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class gr{}let mr=(()=>{class L{constructor(T,de,De){this.doc=T,this.platform=de,this.cookieName=De,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const T=this.doc.cookie||"";return T!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,ne.Mx)(T,this.cookieName),this.lastCookieString=T),this.lastToken}}return L.\u0275fac=function(T){return new(T||L)(g.LFG(ne.K0),g.LFG(g.Lbi),g.LFG(pt))},L.\u0275prov=g.Yz7({token:L,factory:L.\u0275fac}),L})();function vr(L,S){const T=L.url.toLowerCase();if(!(0,g.f3M)(Pt)||"GET"===L.method||"HEAD"===L.method||T.startsWith("http://")||T.startsWith("https://"))return S(L);const de=(0,g.f3M)(gr).getToken(),De=(0,g.f3M)(je);return null!=de&&!L.headers.has(De)&&(L=L.clone({headers:L.headers.set(De,de)})),S(L)}function yr(...L){const S=[le,nt,St,{provide:G,useExisting:St},{provide:re,useExisting:nt},{provide:Ue,useValue:vr,multi:!0},{provide:Pt,useValue:!0},{provide:gr,useClass:mr}];for(const T of L)S.push(...T.\u0275providers);return(0,g.MR2)(S)}},2029:(Oe,Z,C)=>{C.d(Z,{tb:()=>Jl,AFp:()=>Hf,z2F:()=>Ni,Ojb:()=>aD,sBO:()=>Yw,Sil:()=>bw,EJc:()=>ww,ktI:()=>ol,Xts:()=>ms,SBq:()=>Ds,lqb:()=>To,qLn:()=>hi,vpe:()=>kr,XFs:()=>Ve,OlP:()=>Et,zs3:()=>uo,ZZ4:()=>id,aQg:()=>sd,soG:()=>fu,YKP:()=>Pg,h0i:()=>Ai,R0b:()=>Sn,Lbi:()=>xc,g9A:()=>Bf,Qsj:()=>CD,FYo:()=>Yf,JOm:()=>wa,Rgc:()=>ks,dDg:()=>xw,eoX:()=>Um,GfV:()=>qf,s_b:()=>lu,ifc:()=>L,gHi:()=>ch,VuI:()=>vM,Flj:()=>Wo,MMx:()=>xg,Lck:()=>i_,G48:()=>Kw,Gpc:()=>Xe,RIp:()=>Nf,f3M:()=>F,X6Q:()=>Ww,$WT:()=>Kn,MR2:()=>Ic,tdS:()=>Wi,rg0:()=>Ki,c2e:()=>Sm,zSh:()=>Rc,HDt:()=>Tm,wAp:()=>Ti,vHH:()=>K,lri:()=>Lm,rWj:()=>km,cg1:()=>Ml,kL8:()=>rg,dqk:()=>je,iPO:()=>Bw,Z0I:()=>pr,eJc:()=>Vl,QGY:()=>ml,F4k:()=>ap,RDi:()=>Ry,AaK:()=>Me,qOj:()=>il,Xq5:()=>Bh,TTD:()=>Eo,_Bn:()=>Og,jDz:()=>Fg,xp6:()=>ah,uIk:()=>al,ekj:()=>Cl,Suo:()=>sm,Xpm:()=>Fi,lG2:()=>ki,Yz7:()=>Tt,cJS:()=>an,oAB:()=>dn,Yjl:()=>Ui,Y36:()=>gi,_UZ:()=>gl,BQk:()=>eu,ynx:()=>Ja,qZA:()=>Qa,TgZ:()=>Xa,EpF:()=>sp,n5z:()=>Sd,LFG:()=>P,$8M:()=>Xu,NdJ:()=>vl,CRH:()=>am,oxw:()=>fp,ALo:()=>Kg,lcZ:()=>Yg,Q6J:()=>hl,MGl:()=>tu,iGM:()=>im,MAs:()=>np,KtG:()=>Fu,CHM:()=>xu,P3R:()=>Rf,YNc:()=>Jh,_uU:()=>Lp,Oqu:()=>wl,hij:()=>ou});var g=C(8645),R=C(7394),V=C(5619),x=C(5592),H=C(7537),se=C(4829),ee=C(6232),fe=C(4564),ue=C(2664),G=C(2096),re=C(3020),_e=C(4664),Q=C(3997);function he(e){for(let t in e)if(e[t]===he)return t;throw Error("Could not find renamed property on target object.")}function $e(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Me(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Me).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 ze(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const rt=he({__forward_ref__:he});function Xe(e){return e.__forward_ref__=Xe,e.toString=function(){return Me(this())},e}function Y(e){return me(e)?e():e}function me(e){return"function"==typeof e&&e.hasOwnProperty(rt)&&e.__forward_ref__===Xe}function pe(e){return e&&!!e.\u0275providers}const Ce="https://g.co/ng/security#xss";class K extends Error{constructor(t,n){super(function Qe(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Ie(e){return"string"==typeof e?e:null==e?"":String(e)}function j(e,t){throw new K(-201,!1)}function ut(e,t){null==e&&function Ue(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Tt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function an(e){return{providers:e.providers||[],imports:e.imports||[]}}function nr(e){return _n(e,tt)||_n(e,rr)}function pr(e){return null!==nr(e)}function _n(e,t){return e.hasOwnProperty(t)?e[t]:null}function Xt(e){return e&&(e.hasOwnProperty(Je)||e.hasOwnProperty(Tn))?e[Je]:null}const tt=he({\u0275prov:he}),Je=he({\u0275inj:he}),rr=he({ngInjectableDef:he}),Tn=he({ngInjectorDef:he});var Ve=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Ve||{});let nt;function Pt(){return nt}function Gt(e){const t=nt;return nt=e,t}function pt(e,t,n){const r=nr(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Ve.Optional?null:void 0!==t?t:void j(Me(e))}const je=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),nn={},Qt="__NG_DI_FLAG__",Ht="ngTempTokenPath",Gn=/\n/gm,Ur="__source";let An;function On(e){const t=An;return An=e,t}function X(e,t=Ve.Default){if(void 0===An)throw new K(-203,!1);return null===An?pt(e,void 0,t):An.get(e,t&Ve.Optional?null:void 0,t)}function P(e,t=Ve.Default){return(Pt()||X)(Y(e),t)}function F(e,t=Ve.Default){return P(e,ae(t))}function ae(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Te(e){const t=[];for(let n=0;nt){s=i-1;break}}}for(;ii?"":o[M+1].toLowerCase();const k=8&r?N:null;if(k&&-1!==cn(k,m,0)||2&r&&m!==N){if(Bt(r))return!1;s=!0}}}}else{if(!s&&!Bt(r)&&!Bt(f))return!1;if(s&&Bt(f))continue;s=!1,r=f|1&r}}return Bt(r)||s}function Bt(e){return 0==(1&e)}function ln(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+l+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Bt(s)&&(t+=No(i,o),o=""),r=s,i=i||!Bt(r);n++}return""!==o&&(t+=No(i,o)),t}function Fi(e){return xt(()=>{const t=Pn(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===un.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||L.Emulated,styles:e.styles||T,_:null,schemas:e.schemas||null,tView:null,id:""};ir(n);const r=e.dependencies;return n.directiveDefs=$r(r,!1),n.pipeDefs=$r(r,!0),n.id=function Hi(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function js(e){return dt(e)||kt(e)}function $s(e){return null!==e}function dn(e){return xt(()=>({type:e.type,bootstrap:e.bootstrap||T,declarations:e.declarations||T,imports:e.imports||T,exports:e.exports||T,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Fo(e,t){if(null==e)return S;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 ki(e){return xt(()=>{const t=Pn(e);return ir(t),t})}function Ui(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 dt(e){return e[de]||null}function kt(e){return e[De]||null}function Jt(e){return e[be]||null}function Kn(e){const t=dt(e)||kt(e)||Jt(e);return null!==t&&t.standalone}function qt(e,t){const n=e[we]||null;if(!n&&!0===t)throw new Error(`Type ${Me(e)} does not have '\u0275mod' property.`);return n}function Pn(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,inputTransforms:null,inputConfig:e.inputs||S,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||T,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Fo(e.inputs,t),outputs:Fo(e.outputs)}}function ir(e){e.features?.forEach(t=>t(e))}function $r(e,t){if(!e)return null;const n=t?Jt:js;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter($s)}const It=0,Re=1,Ye=2,_t=3,mn=4,Yn=5,Wt=6,qn=7,At=8,Nn=9,jn=10,Ke=11,Vr=12,ko=13,Mn=14,Ft=15,zr=16,Zn=17,xn=18,_r=19,Uo=20,Xn=21,$n=22,po=23,Ho=24,st=25,Bi=1,Bo=2,Qn=7,Gr=9,wt=11;function Ut(e){return Array.isArray(e)&&"object"==typeof e[Bi]}function fn(e){return Array.isArray(e)&&!0===e[Bi]}function jo(e){return 0!=(4&e.flags)}function ar(e){return e.componentOffset>-1}function Wr(e){return 1==(1&e.flags)}function hn(e){return!!e.template}function $o(e){return 0!=(512&e[Ye])}function ur(e,t){return e.hasOwnProperty(ct)?e[ct]:null}const Vi=Symbol("SIGNAL");function zo(e,t,n={}){return t[Vi]=e,Object.assign(t,n)}function go(e,t){return(null===e||"object"!=typeof e)&&Object.is(e,t)}let zi=je.WeakRef??class Go{constructor(t){this.ref=t}deref(){return this.ref}},Yr=0,Fn=null,qr=!1;function jt(e){const t=Fn;return Fn=e,t}class mo{constructor(){this.id=Yr++,this.ref=function br(e){return new zi(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(null!=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=qr;qr=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();null!=o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{qr=t}}producerAccessed(){if(qr)throw new Error("");if(null===Fn)return;let t=Fn.producers.get(this.id);void 0===t?(t={consumerNode:Fn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Fn.trackingVersion},Fn.producers.set(this.id,t),this.consumers.set(Fn.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=Fn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Fn?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}function Wo(e,t){const n=new Zs(e,t?.equal??go);return zo(n,n.signal.bind(n))}const vo=Symbol("UNSET"),Sr=Symbol("COMPUTING"),oo=Symbol("ERRORED");class Zs extends mo{constructor(t,n){super(),this.computation=t,this.equal=n,this.value=vo,this.error=null,this.stale=!0,this.consumerAllowSignalWrites=!1}onConsumerDependencyMayHaveChanged(){this.stale||(this.stale=!0,this.producerMayHaveChanged())}onProducerUpdateValueVersion(){if(this.stale){if(this.value!==vo&&this.value!==Sr&&!this.consumerPollProducersForChange())return void(this.stale=!1);this.recomputeValue()}}recomputeValue(){if(this.value===Sr)throw new Error("Detected cycle in computations.");const t=this.value;this.value=Sr,this.trackingVersion++;const n=jt(this);let r;try{r=this.computation()}catch(o){r=oo,this.error=o}finally{jt(n)}this.stale=!1,t!==vo&&t!==oo&&r!==oo&&this.equal(t,r)?this.value=t:(this.value=r,this.valueVersion++)}signal(){if(this.onProducerUpdateValueVersion(),this.producerAccessed(),this.value===oo)throw this.error;return this.value}}let Gi=function Xs(){throw new Error};function Ko(){Gi()}class Qs extends mo{constructor(t,n){super(),this.value=t,this.equal=n,this.consumerAllowSignalWrites=!1}onConsumerDependencyMayHaveChanged(){}onProducerUpdateValueVersion(){}set(t){this.producerUpdatesAllowed||Ko(),this.equal(this.value,t)||(this.value=t,this.valueVersion++,this.producerMayHaveChanged())}update(t){this.producerUpdatesAllowed||Ko(),this.set(t(this.value))}mutate(t){this.producerUpdatesAllowed||Ko(),t(this.value),this.valueVersion++,this.producerMayHaveChanged()}asReadonly(){return void 0===this.readonlySignal&&(this.readonlySignal=zo(this,()=>this.signal())),this.readonlySignal}signal(){return this.producerAccessed(),this.value}}function Wi(e,t){const n=new Qs(e,t?.equal??go);return zo(n,n.signal.bind(n),{set:n.set.bind(n),update:n.update.bind(n),mutate:n.mutate.bind(n),asReadonly:n.asReadonly.bind(n)})}function Ki(e){const t=jt(null);try{return e()}finally{jt(t)}}const Yo=()=>{};class Yi extends mo{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=Yo,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=jt(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=Yo,this.watch(this.registerOnCleanup)}finally{jt(t)}}cleanup(){this.cleanupFn()}}class Su{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Eo(){return qo}function qo(e){return e.type.prototype.ngOnChanges&&(e.setInput=ea),Js}function Js(){const e=Zi(this),t=e?.current;if(t){const n=e.previous;if(n===S)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ea(e,t,n,r){const o=this.declaredInputs[n],i=Zi(e)||function ta(e,t){return e[qi]=t}(e,{previous:S,current:null}),s=i.current||(i.current={}),l=i.previous,f=l[o];s[o]=new Su(f&&f.currentValue,t,l===S),e[r]=t}Eo.ngInherit=!0;const qi="__ngSimpleChanges__";function Zi(e){return e[qi]||null}const u=function(e,t,n){};function D(e){for(;Array.isArray(e);)e=e[It];return e}function $(e,t){return D(t[e])}function q(e,t){return D(t[e.index])}function Dt(e,t){return e.data[t]}function ft(e,t){return e[t]}function qe(e,t){const n=t[e];return Ut(n)?n:n[It]}function bt(e,t){return null==t?null:e[t]}function pn(e){e[Zn]=0}function Ln(e){1024&e[Ye]||(e[Ye]|=1024,vn(e,1))}function cr(e){1024&e[Ye]&&(e[Ye]&=-1025,vn(e,-1))}function vn(e,t){let n=e[_t];if(null===n)return;n[Yn]+=t;let r=n;for(n=n[_t];null!==n&&(1===t&&1===r[Yn]||-1===t&&0===r[Yn]);)n[Yn]+=t,r=n,n=n[_t]}function Jn(e,t){if(256==(256&e[Ye]))throw new K(911,!1);null===e[Xn]&&(e[Xn]=[]),e[Xn].push(t)}const Ne={lFrame:$u(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ou(){return Ne.bindingsEnabled}function te(){return Ne.lFrame.lView}function ht(){return Ne.lFrame.tView}function xu(e){return Ne.lFrame.contextLView=e,e[At]}function Fu(e){return Ne.lFrame.contextLView=null,e}function sn(){let e=Ji();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ji(){return Ne.lFrame.currentTNode}function kn(e,t){const n=Ne.lFrame;n.currentTNode=e,n.isParent=t}function es(){return Ne.lFrame.isParent}function ts(){Ne.lFrame.isParent=!1}function _o(){return Ne.lFrame.bindingIndex++}function fd(e,t){const n=Ne.lFrame;n.bindingIndex=n.bindingRootIndex=e,ia(t)}function ia(e){Ne.lFrame.currentDirectiveIndex=e}function Bu(){return Ne.lFrame.currentQueryIndex}function aa(e){Ne.lFrame.currentQueryIndex=e}function pd(e){const t=e[Re];return 2===t.type?t.declTNode:1===t.type?e[Wt]:null}function ns(e,t,n){if(n&Ve.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&Ve.Host||(o=pd(i),null===o||(i=i[Mn],10&o.type))););if(null===o)return!1;t=o,e=i}const r=Ne.lFrame=ju();return r.currentTNode=t,r.lView=e,!0}function ua(e){const t=ju(),n=e[Re];Ne.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ju(){const e=Ne.lFrame,t=null===e?null:e.child;return null===t?$u(e):t}function $u(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 Vu(){const e=Ne.lFrame;return Ne.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const zu=Vu;function ca(){const e=Vu();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 d(){return Ne.lFrame.selectedIndex}function a(e){Ne.lFrame.selectedIndex=e}function h(){const e=Ne.lFrame;return Dt(e.tView,e.selectedIndex)}let xe=!0;function Fe(){return xe}function at(e){xe=e}function so(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[f]<0&&(e[Zn]+=65536),(l>13>16&&(3&e[Ye])===t&&(e[Ye]+=8192,md(l,i)):md(l,i)}const Xo=-1;class rs{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function vd(e){return e!==Xo}function la(e){return 32767&e}function da(e,t){let n=function gv(e){return e>>16}(e),r=t;for(;n>0;)r=r[Mn],n--;return r}let Wu=!0;function fa(e){const t=Wu;return Wu=e,t}const yd=255,Dd=5;let mv=0;const Pr={};function ha(e,t){const n=Ed(e,t);if(-1!==n)return n;const r=t[Re];r.firstCreatePass&&(e.injectorIndex=t.length,Ku(r.data,e),Ku(t,null),Ku(r.blueprint,null));const o=Yu(e,t),i=e.injectorIndex;if(vd(o)){const s=la(o),l=da(o,t),f=l[Re].data;for(let m=0;m<8;m++)t[i+m]=l[s+m]|f[s+m]}return t[i+8]=o,i}function Ku(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ed(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=Td(o),null===r)return Xo;if(n++,o=o[Mn],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Xo}function qu(e,t,n){!function vv(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ge)&&(r=n[Ge]),null==r&&(r=n[Ge]=mv++);const o=r&yd;t.data[e+(o>>Dd)]|=1<=0?t&yd:Cv:t}(n);if("function"==typeof i){if(!ns(t,e,r))return r&Ve.Host?Cd(o,0,r):_d(t,n,r,o);try{const s=i(r);if(null!=s||r&Ve.Optional)return s;j()}finally{zu()}}else if("number"==typeof i){let s=null,l=Ed(e,t),f=Xo,m=r&Ve.Host?t[Ft][Wt]:null;for((-1===l||r&Ve.SkipSelf)&&(f=-1===l?Yu(e,t):t[l+8],f!==Xo&&bd(r,!1)?(s=t[Re],l=la(f),t=da(f,t)):l=-1);-1!==l;){const E=t[Re];if(Id(i,l,E.data)){const M=Dv(l,t,n,s,r,m);if(M!==Pr)return M}f=t[l+8],f!==Xo&&bd(r,t[Re].data[l+8]===m)&&Id(i,l,t)?(s=E,l=la(f),t=da(f,t)):l=-1}}return o}function Dv(e,t,n,r,o,i){const s=t[Re],l=s.data[e+8],E=pa(l,s,n,null==r?ar(l)&&Wu:r!=s&&0!=(3&l.type),o&Ve.Host&&i===l);return null!==E?Io(t,s,E,l):Pr}function pa(e,t,n,r,o){const i=e.providerIndexes,s=t.data,l=1048575&i,f=e.directiveStart,E=i>>20,N=o?l+E:e.directiveEnd;for(let k=r?l:l+E;k=f&&J.type===n)return k}if(o){const k=s[f];if(k&&hn(k)&&k.type===n)return f}return null}function Io(e,t,n,r){let o=e[n];const i=t.data;if(function fv(e){return e instanceof rs}(o)){const s=o;s.resolving&&function Ct(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new K(-200,`Circular dependency in DI detected for ${e}${n}`)}(function We(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ie(e)}(i[n]));const l=fa(s.canSeeViewProviders);s.resolving=!0;const f=s.injectImpl?Gt(s.injectImpl):null;ns(e,r,Ve.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function In(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=qo(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!==f&&Gt(f),fa(l),s.resolving=!1,zu()}}return o}function Id(e,t,n){return!!(n[t+(e>>Dd)]&1<{const t=e.prototype.constructor,n=t[ct]||Zu(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[ct]||Zu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Zu(e){return me(e)?()=>{const t=Zu(Y(e));return t&&t()}:ur(e)}function Td(e){const t=e[Re],n=t.type;return 2===n?t.declTNode:1===n?e[Wt]:null}function Xu(e){return function yv(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{const r=function Qu(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 l.annotation=s,l;function l(f,m,E){const M=f.hasOwnProperty(ei)?f[ei]:Object.defineProperty(f,ei,{value:[]})[ei];for(;M.length<=E;)M.push(null);return(M[E]=M[E]||[]).push(s),f}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function is(e,t){e.forEach(n=>Array.isArray(n)?is(n,t):t(n))}function Ad(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ga(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Vn(e,t,n){let r=oi(e,t);return r>=0?e[1|r]=n:(r=~r,function Rv(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 Ju(e,t){const n=oi(e,t);if(n>=0)return e[1|n]}function oi(e,t){return function Od(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<|^->||--!>|)/,Qv="\u200b$1\u200b";const sc=new Map;let Jv=0;const uc="__ngContext__";function Dn(e,t){Ut(t)?(e[uc]=t[_r],function ty(e){sc.set(e[_r],e)}(t)):e[uc]=t}let cc;function lc(e,t){return cc(e,t)}function cs(e){const t=e[_t];return fn(t)?t[_t]:t}function Xd(e){return Jd(e[Vr])}function Qd(e){return Jd(e[mn])}function Jd(e){for(;null!==e&&!fn(e);)e=e[mn];return e}function ai(e,t,n,r,o){if(null!=r){let i,s=!1;fn(r)?i=r:Ut(r)&&(s=!0,r=r[It]);const l=D(r);0===e&&null!==n?null==o?sf(t,n,l):bo(t,n,l,o||null,!0):1===e&&null!==n?bo(t,n,l,o||null,!0):2===e?function Ta(e,t,n){const r=ba(e,t);r&&function Ey(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,l,s):3===e&&t.destroyNode(l),null!=i&&function wy(e,t,n,r,o){const i=n[Qn];i!==D(n)&&ai(t,e,r,i,o);for(let l=wt;lt.replace(Xv,Qv))}(t))}function Ia(e,t,n){return e.createElement(t,n)}function tf(e,t){const n=e[Gr],r=n.indexOf(t);cr(t),n.splice(r,1)}function fc(e,t){if(e.length<=wt)return;const n=wt+t,r=e[n];if(r){const o=r[zr];null!==o&&o!==e&&tf(o,r),t>0&&(e[n-1][mn]=r[mn]);const i=ga(e,wt+t);!function fy(e,t){ds(e,t,t[Ke],2,null,null),t[It]=null,t[Wt]=null}(r[Re],r);const s=i[xn];null!==s&&s.detachView(i[Re]),r[_t]=null,r[mn]=null,r[Ye]&=-129}return r}function nf(e,t){if(!(256&t[Ye])){const n=t[Ke];t[po]?.destroy(),t[Ho]?.destroy(),n.destroyNode&&ds(e,t,n,3,null,null),function gy(e){let t=e[Vr];if(!t)return hc(e[Re],e);for(;t;){let n=null;if(Ut(t))n=t[Vr];else{const r=t[wt];r&&(n=r)}if(!n){for(;t&&!t[mn]&&t!==e;)Ut(t)&&hc(t[Re],t),t=t[_t];null===t&&(t=e),Ut(t)&&hc(t[Re],t),n=t&&t[mn]}t=n}}(t)}}function hc(e,t){if(!(256&t[Ye])){t[Ye]&=-129,t[Ye]|=256,function Dy(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[qn]=null);const o=t[Xn];if(null!==o){t[Xn]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===L.None||i===L.Emulated)return null}return q(r,n)}}(e,t.parent,n)}function bo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function sf(e,t,n){e.appendChild(t,n)}function af(e,t,n,r,o){null!==r?bo(e,t,n,r,o):sf(e,t,n)}function ba(e,t){return e.parentNode(t)}let gc,Dc,Aa,lf=function cf(e,t,n){return 40&e.type?q(e,n):null};function Sa(e,t,n,r){const o=pc(e,r,t),i=t[Ke],l=function uf(e,t,n){return lf(e,t,n)}(r.parent||t[Wt],r,t);if(null!=o)if(Array.isArray(n))for(let f=0;fe,createScript:e=>e,createScriptURL:e=>e})}catch{}return Aa}()?.createScriptURL(e)||e}class Ef{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ce})`}}function ao(e){return e instanceof Ef?e.changingThisBreaksApplicationSecurity:e}function hs(e,t){const n=function Fy(e){return e instanceof Ef&&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 ${Ce})`)}return n===t}const Hy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var ci=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(ci||{});function Sf(e){const t=gs();return t?t.sanitize(ci.URL,e)||"":hs(e,"URL")?ao(e):function Cc(e){return(e=String(e)).match(Hy)?e:"unsafe:"+e}(Ie(e))}function Tf(e){const t=gs();if(t)return Df(t.sanitize(ci.RESOURCE_URL,e)||"");if(hs(e,"ResourceURL"))return Df(ao(e));throw new K(904,!1)}function Rf(e,t,n){return function Xy(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Tf:Sf}(t,n)(e)}function gs(){const e=te();return e&&e[jn].sanitizer}class Et{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=Tt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const ms=new Et("ENVIRONMENT_INITIALIZER"),Af=new Et("INJECTOR",-1),Of=new Et("INJECTOR_DEF_TYPES");class Pf{get(t,n=nn){if(n===nn){const r=new Error(`NullInjectorError: No provider for ${Me(t)}!`);throw r.name="NullInjectorError",r}return n}}function Ic(e){return{\u0275providers:e}}function Nf(...e){return{\u0275providers:xf(0,e),\u0275fromNgModule:!0}}function xf(e,...t){const n=[],r=new Set;let o;return is(t,i=>{const s=i;bc(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Ff(o,n),n}function Ff(e,t){for(let n=0;n{t.push(i)})}}function bc(e,t,n,r){if(!(e=Y(e)))return!1;let o=null,i=Xt(e);const s=!i&&dt(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const f=e.ngModule;if(i=Xt(f),!i)return!1;o=f}const l=r.has(o);if(s){if(l)return!1;if(r.add(o),s.dependencies){const f="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const m of f)bc(m,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!l){let m;r.add(o);try{is(i.imports,E=>{bc(E,t,n,r)&&(m||=[],m.push(E))})}finally{}void 0!==m&&Ff(m,t)}if(!l){const m=ur(o)||(()=>new o);t.push({provide:o,useFactory:m,deps:T},{provide:Of,useValue:o,multi:!0},{provide:ms,useValue:()=>P(o),multi:!0})}const f=i.providers;null==f||l||Sc(f,E=>{t.push(E)})}}return o!==e&&void 0!==e.providers}function Sc(e,t){for(let n of e)pe(n)&&(n=n.\u0275providers),Array.isArray(n)?Sc(n,t):t(n)}const Qy=he({provide:String,useValue:he});function Tc(e){return null!==e&&"object"==typeof e&&Qy in e}function So(e){return"function"==typeof e}const Rc=new Et("Set Injector scope."),Pa={},eD={};let Ac;function Na(){return void 0===Ac&&(Ac=new Pf),Ac}class To{}class Oc extends To{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,Nc(t,s=>this.processProvider(s)),this.records.set(Af,li(void 0,this)),o.has("environment")&&this.records.set(To,li(void 0,this));const i=this.records.get(Rc);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Of.multi,T,Ve.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=On(this),r=Gt(void 0);try{return t()}finally{On(n),Gt(r)}}get(t,n=nn,r=Ve.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Vt))return t[Vt](this);r=ae(r);const o=On(this),i=Gt(void 0);try{if(!(r&Ve.SkipSelf)){let l=this.records.get(t);if(void 0===l){const f=function iD(e){return"function"==typeof e||"object"==typeof e&&e instanceof Et}(t)&&nr(t);l=f&&this.injectableDefInScope(f)?li(Pc(t),Pa):null,this.records.set(t,l)}if(null!=l)return this.hydrate(t,l)}return(r&Ve.Self?Na():this.parent).get(t,n=r&Ve.Optional&&n===nn?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Ht]=s[Ht]||[]).unshift(Me(t)),o)throw s;return function vt(e,t,n,r){const o=e[Ht];throw t[Ur]&&o.unshift(t[Ur]),e.message=function Nt(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Me(t);if(Array.isArray(t))o=t.map(Me).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let l=t[s];i.push(s+":"+("string"==typeof l?JSON.stringify(l):Me(l)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Gn,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Ht]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{Gt(i),On(o)}}resolveInjectorInitializers(){const t=On(this),n=Gt(void 0);try{const r=this.get(ms.multi,T,Ve.Self);for(const o of r)o()}finally{On(t),Gt(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Me(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new K(205,!1)}processProvider(t){let n=So(t=Y(t))?t:Y(t&&t.provide);const r=function nD(e){return Tc(e)?li(void 0,e.useValue):li(Uf(e),Pa)}(t);if(So(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=li(void 0,Pa,!0),o.factory=()=>Te(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Pa&&(n.value=eD,n.value=n.factory()),"object"==typeof n.value&&n.value&&function oD(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=Y(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 Pc(e){const t=nr(e),n=null!==t?t.factory:ur(e);if(null!==n)return n;if(e instanceof Et)throw new K(204,!1);if(e instanceof Function)return function tD(e){const t=e.length;if(t>0)throw function ss(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new K(204,!1)}function Uf(e,t,n){let r;if(So(e)){const o=Y(e);return ur(o)||Pc(o)}if(Tc(e))r=()=>Y(e.useValue);else if(function kf(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Te(e.deps||[]));else if(function Lf(e){return!(!e||!e.useExisting)}(e))r=()=>P(Y(e.useExisting));else{const o=Y(e&&(e.useClass||e.provide));if(!function rD(e){return!!e.deps}(e))return ur(o)||Pc(o);r=()=>new o(...Te(e.deps))}return r}function li(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Nc(e,t){for(const n of e)Array.isArray(n)?Nc(n,t):n&&pe(n)?Nc(n.\u0275providers,t):t(n)}const Hf=new Et("AppId",{providedIn:"root",factory:()=>sD}),sD="ng",Bf=new Et("Platform Initializer"),xc=new Et("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),aD=new Et("CSP nonce",{providedIn:"root",factory:()=>function fs(){if(void 0!==Dc)return Dc;if(typeof document<"u")return document;throw new K(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let $f=(e,t)=>null;function Vf(e,t){return $f(e,t)}class mD{}class Wf{}class yD{resolveComponentFactory(t){throw function vD(e){const t=Error(`No component factory found for ${Me(e)}.`);return t.ngComponent=e,t}(t)}}let Ua=(()=>{class e{}return e.NULL=new yD,e})();function DD(){return fi(sn(),te())}function fi(e,t){return new Ds(q(e,t))}let Ds=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=DD,e})();function ED(e){return e instanceof Ds?e.nativeElement:e}class Yf{}let CD=(()=>{class e{constructor(){this.destroyNode=null}}return e.__NG_ELEMENT_ID__=()=>function _D(){const e=te(),n=qe(sn().index,e);return(Ut(n)?n:e)[Ke]}(),e})(),wD=(()=>{class e{}return e.\u0275prov=Tt({token:e,providedIn:"root",factory:()=>null}),e})();class qf{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const MD=new qf("16.1.8"),Gc={};function Es(e){for(;e;){e[Ye]|=64;const t=cs(e);if($o(e)&&!t)return e;e=t}return null}function Wc(e){return e.ngOriginalError}class hi{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&&Wc(t);for(;n&&Wc(n);)n=Wc(n);return n||null}}const Qf=new Et("",{providedIn:"root",factory:()=>!1});function Qr(e){return e instanceof Function?e():e}class rh extends mo{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){Es(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=jt(this);this.trackingVersion++;try{t(n,r)}finally{jt(o)}}destroy(){this.trackingVersion++}}let Ba=null;function oh(){return Ba??=new rh,Ba}function ih(e,t){return e[t]??oh()}function sh(e,t){const n=oh();n.hasReadASignal&&(e[t]=Ba,n.lView=e,Ba=new rh)}const et={};function ah(e){uh(ht(),te(),d()+e,!1)}function uh(e,t,n,r){if(!r)if(3==(3&t[Ye])){const i=e.preOrderCheckHooks;null!==i&&Ar(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Or(t,i,0,n)}a(n)}function ch(e){if(!Pt()&&!function ho(){return An}())throw new K(-203,!1)}function hh(e,t=null,n=null,r){const o=ph(e,t,n,r);return o.resolveInjectorInitializers(),o}function ph(e,t=null,n=null,r,o=new Set){const i=[n||T,Nf(e)];return r=r||("object"==typeof e?void 0:Me(e)),new Oc(i,t||Na(),r||null,o)}let uo=(()=>{class e{static create(n,r){if(Array.isArray(n))return hh({name:""},r,n,"");{const o=n.name??"";return hh({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=nn,e.NULL=new Pf,e.\u0275prov=Tt({token:e,providedIn:"any",factory:()=>P(Af)}),e.__NG_ELEMENT_ID__=-1,e})();function gi(e,t=Ve.Default){const n=te();return null===n?P(e,t):wd(sn(),n,Y(e),t)}function ja(e,t,n,r,o,i,s,l,f,m,E){const M=t.blueprint.slice();return M[It]=o,M[Ye]=140|r,(null!==m||e&&2048&e[Ye])&&(M[Ye]|=2048),pn(M),M[_t]=M[Mn]=e,M[At]=n,M[jn]=s||e&&e[jn],M[Ke]=l||e&&e[Ke],M[Nn]=f||e&&e[Nn]||null,M[Wt]=i,M[_r]=function ey(){return Jv++}(),M[$n]=E,M[Uo]=m,M[Ft]=2==t.type?e[Ft]:M,M}function mi(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Kc(e,t,n,r,o){const i=Ji(),s=es(),f=e.data[t]=function GD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,l=0;return function Co(){return null!==Ne.skipHydrationRootTNode}()&&(l|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,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=f),null!==i&&(s?null==i.child&&null!==f.parent&&(i.child=f):null===i.next&&(i.next=f,f.prev=i)),f}(e,t,n,r,o),function dd(){return Ne.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function io(){const e=Ne.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return kn(i,!0),i}function Cs(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;ist&&uh(e,t,st,!1),u(l?2:0,o),l)i.runInContext(n,r,o);else{const m=jt(null);try{n(r,o)}finally{jt(m)}}}finally{l&&null===t[po]&&sh(t,po),a(s),u(l?3:1,o)}}function Yc(e,t,n){if(jo(t)){const r=jt(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function yh(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Dh(n,t,o,i):r.hasOwnProperty(o)&&Dh(n,t,r[o],i)}return n}function Dh(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function zn(e,t,n,r,o,i,s,l){const f=q(t,n);let E,m=t.inputs;!l&&null!=m&&(E=m[r])?(nl(e,n,E,r,o),ar(t)&&function YD(e,t){const n=qe(t,e);16&n[Ye]||(n[Ye]|=64)}(n,t.index)):3&t.type&&(r=function KD(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(f,r,o))}function Qc(e,t,n,r){if(Ou()){const o=null===r?null:{"":-1},i=function eE(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(n,r,i)}}(e,t,r,Cs(e,n,o.hostVars,et),o)}function Nr(e,t,n,r,o,i){const s=q(e,t);!function el(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const l=null==s?Ie(i):s(i,r||"",o);e.setAttribute(t,o,l,n)}}(t[Ke],s,i,e.value,n,r,o)}function sE(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let l=0;l{class e{}return e.__NG_ELEMENT_ID__=fE,e.__NG_ENV_ID__=t=>t,e})();class dE extends ol{constructor(t){super(),this._lView=t}onDestroy(t){return Jn(this._lView,t),()=>function lr(e,t){if(null===e[Xn])return;const n=e[Xn].indexOf(t);-1!==n&&e[Xn].splice(n,1)}(this._lView,t)}}function fE(){return new dE(te())}let Rh=(()=>{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 Yi(n,m=>{this.all.has(m)&&this.queue.set(m,i)},o);let l;this.all.add(s),s.notify();const f=()=>{s.cleanup(),l?.(),this.all.delete(s),this.queue.delete(s)};return l=r?.onDestroy(f),{destroy:f}}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=Tt({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;s0){Oh(e,1);const o=e[Re].components;null!==o&&Nh(e,o,1)}}function Nh(e,t,n){for(let r=0;r-1&&(fc(t,r),ga(n,r))}this._attachedToViewContainer=!1}nf(this._lView[Re],this._lView)}onDestroy(t){Jn(this._lView,t)}markForCheck(){Es(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ye]&=-129}reattach(){this._lView[Ye]|=128}detectChanges(){za(this._lView[Re],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function py(e,t){ds(e,t,t[Ke],2,null,null)}(this._lView[Re],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new K(902,!1);this._appRef=t}}class vE extends ws{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;za(t[Re],t,t[At],!1)}checkNoChanges(){}get context(){return null}}class xh extends Ua{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=dt(t);return new Ms(n,this.ngModule)}}function Fh(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class DE{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ae(r);const o=this.injector.get(t,Gc,r);return o!==Gc||n===Gc?o:this.parentInjector.get(t,n,r)}}class Ms extends Wf{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=Fh(t.inputs);if(null!==n)for(const o of r)n.hasOwnProperty(o.propName)&&(o.transform=n[o.propName]);return r}get outputs(){return Fh(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Hs(e){return e.map(xi).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof To?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new DE(t,i):t,l=s.get(Yf,null);if(null===l)throw new K(407,!1);const E={rendererFactory:l,sanitizer:s.get(wD,null),effectManager:s.get(Rh,null)},M=l.createRenderer(null,this.componentDef),N=this.componentDef.selectors[0][0]||"div",k=r?function BD(e,t,n,r){const i=r.get(Qf,!1)||n===L.ShadowDom,s=e.selectRootElement(t,i);return function jD(e){vh(e)}(s),s}(M,r,this.componentDef.encapsulation,s):Ia(M,N,function yE(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(N)),Se=this.componentDef.signals?4608:this.componentDef.onPush?576:528,Le=Xc(0,null,null,1,0,null,null,null,null,null,null),ie=ja(null,Le,null,Se,null,null,E,M,s,null,null);let Ze,lt;ua(ie);try{const mt=this.componentDef;let Cn,vu=null;mt.findHostDirectiveDefs?(Cn=[],vu=new Map,mt.findHostDirectiveDefs(mt,Cn,vu),Cn.push(mt)):Cn=[mt];const DM=function CE(e,t){const n=e[Re],r=st;return e[r]=t,mi(n,r,2,"#host",null)}(ie,k),EM=function _E(e,t,n,r,o,i,s){const l=o[Re];!function wE(e,t,n,r){for(const o of e)t.mergedAttrs=on(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Va(t,t.mergedAttrs,!0),null!==n&&mf(r,n,t))}(r,e,t,s);let f=null;null!==t&&(f=Vf(t,o[Nn]));const m=i.rendererFactory.createRenderer(t,n);let E=16;n.signals?E=4096:n.onPush&&(E=64);const M=ja(o,mh(n),null,E,o[e.index],e,i,m,null,null,f);return l.firstCreatePass&&Jc(l,e,r.length-1),$a(o,M),o[e.index]=M}(DM,k,mt,Cn,ie,E,M);lt=Dt(Le,st),k&&function IE(e,t,n,r){if(r)Yt(e,n,["ng-version",MD.full]);else{const{attrs:o,classes:i}=function xo(e){const t=[],n=[];let r=1,o=2;for(;r0&&gf(e,n,i.join(" "))}}(M,mt,k,r),void 0!==n&&function bE(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=on(o.hostAttrs,n=on(n,o.hostAttrs))}}(r)}function Ga(e){return e===S?{}:e===T?[]:e}function RE(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function AE(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function OE(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Bh(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const o=t[r];Array.isArray(o)&&o[2]&&(n[r]=o[2])}e.inputTransforms=n}function Wa(e){return!!sl(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function sl(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function En(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function al(e,t,n,r){const o=te();return En(o,_o(),t)&&(ht(),Nr(h(),o,e,t,n,r)),al}function yi(e,t,n,r){return En(e,_o(),n)?t+Ie(n)+r:et}function Jh(e,t,n,r,o,i,s,l){const f=te(),m=ht(),E=e+st,M=m.firstCreatePass?function nC(e,t,n,r,o,i,s,l,f){const m=t.consts,E=mi(t,e,4,s||null,bt(m,l));Qc(t,n,E,bt(m,f)),so(t,E);const M=E.tView=Xc(2,E,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,m,null);return null!==t.queries&&(t.queries.template(t,E),M.queries=t.queries.embeddedTView(E)),E}(E,m,f,t,n,r,o,i,s):m.data[E];kn(M,!1);const N=ep(m,f,M,e);Fe()&&Sa(m,f,N,M),Dn(N,f),$a(f,f[E]=wh(N,f,N,M)),Wr(M)&&qc(m,f,M),null!=s&&Zc(f,M,l)}let ep=function tp(e,t,n,r){return at(!0),t[Ke].createComment("")};function np(e){return ft(function ld(){return Ne.lFrame.contextLView}(),st+e)}function hl(e,t,n){const r=te();return En(r,_o(),t)&&zn(ht(),h(),r,e,t,r[Ke],n,!1),hl}function pl(e,t,n,r,o){const s=o?"class":"style";nl(e,n,t.inputs[s],s,r)}function Xa(e,t,n,r){const o=te(),i=ht(),s=st+e,l=o[Ke],f=i.firstCreatePass?function sC(e,t,n,r,o,i){const s=t.consts,f=mi(t,e,2,r,bt(s,o));return Qc(t,n,f,bt(s,i)),null!==f.attrs&&Va(f,f.attrs,!1),null!==f.mergedAttrs&&Va(f,f.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,f),f}(s,i,o,t,n,r):i.data[s],m=rp(i,o,f,l,t,e);o[s]=m;const E=Wr(f);return kn(f,!0),mf(l,m,f),32!=(32&f.flags)&&Fe()&&Sa(i,o,m,f),0===function Tu(){return Ne.lFrame.elementDepthCount}()&&Dn(m,o),function Ru(){Ne.lFrame.elementDepthCount++}(),E&&(qc(i,o,f),Yc(i,f,o)),null!==r&&Zc(o,f),Xa}function Qa(){let e=sn();es()?ts():(e=e.parent,kn(e,!1));const t=e;(function Pu(e){return Ne.skipHydrationRootTNode===e})(t)&&function oa(){Ne.skipHydrationRootTNode=null}(),function Au(){Ne.lFrame.elementDepthCount--}();const n=ht();return n.firstCreatePass&&(so(n,e),jo(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function hv(e){return 0!=(8&e.flags)}(t)&&pl(n,t,te(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function pv(e){return 0!=(16&e.flags)}(t)&&pl(n,t,te(),t.stylesWithoutHost,!1),Qa}function gl(e,t,n,r){return Xa(e,t,n,r),Qa(),gl}let rp=(e,t,n,r,o,i)=>(at(!0),Ia(r,o,function ce(){return Ne.lFrame.currentNamespace}()));function Ja(e,t,n){const r=te(),o=ht(),i=e+st,s=o.firstCreatePass?function cC(e,t,n,r,o){const i=t.consts,s=bt(i,r),l=mi(t,e,8,"ng-container",s);return null!==s&&Va(l,s,!0),Qc(t,n,l,bt(i,o)),null!==t.queries&&t.queries.elementStart(t,l),l}(i,o,r,t,n):o.data[i];kn(s,!0);const l=ip(o,r,s,e);return r[i]=l,Fe()&&Sa(o,r,l,s),Dn(l,r),Wr(s)&&(qc(o,r,s),Yc(o,s,r)),null!=n&&Zc(r,s),Ja}function eu(){let e=sn();const t=ht();return es()?ts():(e=e.parent,kn(e,!1)),t.firstCreatePass&&(so(t,e),jo(e)&&t.queries.elementEnd(e)),eu}let ip=(e,t,n,r)=>(at(!0),dc(t[Ke],""));function sp(){return te()}function ml(e){return!!e&&"function"==typeof e.then}function ap(e){return!!e&&"function"==typeof e.subscribe}function vl(e,t,n,r){const o=te(),i=ht(),s=sn();return function cp(e,t,n,r,o,i,s){const l=Wr(r),m=e.firstCreatePass&&bh(e),E=t[At],M=Ih(t);let N=!0;if(3&r.type||s){const ge=q(r,t),Se=s?s(ge):ge,Le=M.length,ie=s?lt=>s(D(lt[r.index])):r.index;let Ze=null;if(!s&&l&&(Ze=function fC(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;if?l[f]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==Ze)(Ze.__ngLastListenerFn__||Ze).__ngNextListenerFn__=i,Ze.__ngLastListenerFn__=i,N=!1;else{i=dp(r,t,E,i,!1);const lt=n.listen(Se,o,i);M.push(i,lt),m&&m.push(o,ie,Le,Le+1)}}else i=dp(r,t,E,i,!1);const k=r.outputs;let J;if(N&&null!==k&&(J=k[o])){const ge=J.length;if(ge)for(let Se=0;Se-1?qe(e.index,t):t);let f=lp(t,n,r,s),m=i.__ngNextListenerFn__;for(;m;)f=lp(t,n,m,s)&&f,m=m.__ngNextListenerFn__;return o&&!1===f&&s.preventDefault(),f}}function fp(e=1){return function gd(e){return(Ne.lFrame.contextLView=function c(e,t){for(;e>0;)t=t[Mn],e--;return t}(e,Ne.lFrame.contextLView))[At]}(e)}function tu(e,t,n,r,o){const i=te(),s=yi(i,t,n,r);return s!==et&&zn(ht(),h(),i,e,s,i[Ke],o,!1),tu}function nu(e,t){return e<<17|t<<2}function co(e){return e>>17&32767}function yl(e){return 2|e}function Ao(e){return(131068&e)>>2}function Dl(e,t){return-131069&e|t<<2}function El(e){return 1|e}function _p(e,t,n,r,o){const i=e[n+1],s=null===t;let l=r?co(i):Ao(i),f=!1;for(;0!==l&&(!1===f||s);){const E=e[l+1];CC(e[l],t)&&(f=!0,e[l+1]=r?El(E):yl(E)),l=r?co(E):Ao(E)}f&&(e[n+1]=r?yl(i):El(i))}function CC(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&oi(e,t)>=0}function Cl(e,t){return function dr(e,t,n,r){const o=te(),i=ht(),s=function Rr(e){const t=Ne.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function Op(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[d()],s=function Ap(e,t){return t>=e.expandoStartIndex}(e,n);(function Fp(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function AC(e,t,n,r){const o=function sa(e){const t=Ne.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=Rs(n=_l(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=_l(o,e,t,n,r),null===i){let f=function OC(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Ao(r))return e[co(r)]}(e,t,r);void 0!==f&&Array.isArray(f)&&(f=_l(null,e,t,f[1],r),f=Rs(f,t.attrs,r),function PC(e,t,n,r){e[co(n?t.classBindings:t.styleBindings)]=r}(e,t,r,f))}else i=function NC(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(m=!0)):E=n,o)if(0!==f){const N=co(e[l+1]);e[r+1]=nu(N,l),0!==N&&(e[N+1]=Dl(e[N+1],r)),e[l+1]=function vC(e,t){return 131071&e|t<<17}(e[l+1],r)}else e[r+1]=nu(l,0),0!==l&&(e[l+1]=Dl(e[l+1],r)),l=r;else e[r+1]=nu(f,0),0===l?l=r:e[f+1]=Dl(e[f+1],r),f=r;m&&(e[r+1]=yl(e[r+1])),_p(e,E,r,!0),_p(e,E,r,!1),function EC(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&oi(i,t)>=0&&(n[r+1]=El(n[r+1]))}(t,E,e,r,i),s=nu(l,f),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==et&&En(o,s,t)&&function Np(e,t,n,r,o,i,s,l){if(!(3&t.type))return;const f=e.data,m=f[l+1],E=function yC(e){return 1==(1&e)}(m)?xp(f,t,n,o,Ao(m),s):void 0;ru(E)||(ru(i)||function mC(e){return 2==(2&e)}(m)&&(i=xp(f,null,n,o,l,s)),function My(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:wa.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=wa.Important),e.setStyle(n,r,o,i))}}(r,s,$(d(),n),o,i))}(i,i.data[d()],o,o[Ke],e,o[s+1]=function kC(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Me(ao(e)))),e}(t,n),r,s)}(e,t,null,!0),Cl}function _l(e,t,n,r,o){let i=null;const s=n.directiveEnd;let l=n.directiveStylingLast;for(-1===l?l=n.directiveStart:l++;l0;){const f=e[o],m=Array.isArray(f),E=m?f[1]:f,M=null===E;let N=n[o+1];N===et&&(N=M?T:void 0);let k=M?Ju(N,r):E===r?N:void 0;if(m&&!ru(k)&&(k=Ju(f,r)),ru(k)&&(l=k,s))return l;const J=e[o+1];o=s?co(J):Ao(J)}if(null!==t){let f=i?t.residualClasses:t.residualStyles;null!=f&&(l=Ju(f,r))}return l}function ru(e){return void 0!==e}function Lp(e,t=""){const n=te(),r=ht(),o=e+st,i=r.firstCreatePass?mi(r,o,1,t,null):r.data[o],s=kp(r,n,i,t,e);n[o]=s,Fe()&&Sa(r,n,s,i),kn(i,!1)}let kp=(e,t,n,r,o)=>(at(!0),function Ma(e,t){return e.createText(t)}(t[Ke],r));function wl(e){return ou("",e,""),wl}function ou(e,t,n){const r=te(),o=yi(r,e,t,n);return o!==et&&function Jr(e,t,n){const r=$(t,e);!function ef(e,t,n){e.setValue(t,n)}(e[Ke],r,n)}(r,d(),o),ou}const Oo=void 0;var s0=["en",[["a","p"],["AM","PM"],Oo],[["AM","PM"],Oo,Oo],[["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"]],Oo,[["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"]],Oo,[["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}",Oo,"{1} 'at' {0}",Oo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function o0(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Si={};function Ml(e){const t=function a0(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=og(t);if(n)return n;const r=t.split("-")[0];if(n=og(r),n)return n;if("en"===r)return s0;throw new K(701,!1)}function rg(e){return Ml(e)[Ti.PluralCase]}function og(e){return e in Si||(Si[e]=je.ng&&je.ng.common&&je.ng.common.locales&&je.ng.common.locales[e]),Si[e]}var Ti=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Ti||{});const Ri="en-US";let ig=Ri;function Sl(e,t,n,r,o){if(e=Y(e),Array.isArray(e))for(let i=0;i>20;if(So(e)||!e.multi){const k=new rs(f,o,gi),J=Rl(l,t,o?E:E+N,M);-1===J?(qu(ha(m,s),i,l),Tl(i,e,t.length),t.push(l),m.directiveStart++,m.directiveEnd++,o&&(m.providerIndexes+=1048576),n.push(k),s.push(k)):(n[J]=k,s[J]=k)}else{const k=Rl(l,t,E+N,M),J=Rl(l,t,E,E+N),Se=J>=0&&n[J];if(o&&!Se||!o&&!(k>=0&&n[k])){qu(ha(m,s),i,l);const Le=function o_(e,t,n,r,o){const i=new rs(e,n,gi);return i.multi=[],i.index=t,i.componentProviders=0,Ag(i,o,r&&!n),i}(o?r_:n_,n.length,o,r,f);!o&&Se&&(n[J].providerFactory=Le),Tl(i,e,t.length,0),t.push(l),m.directiveStart++,m.directiveEnd++,o&&(m.providerIndexes+=1048576),n.push(Le),s.push(Le)}else Tl(i,e,k>-1?k:J,Ag(n[o?J:k],f,!o&&r));!o&&r&&Se&&n[J].componentProviders++}}}function Tl(e,t,n,r){const o=So(t),i=function Jy(e){return!!e.useClass}(t);if(o||i){const f=(i?Y(t.useClass):t).prototype.ngOnDestroy;if(f){const m=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const E=m.indexOf(n);-1===E?m.push(n,[r,f]):m[E+1].push(r,f)}else m.push(n,f)}}}function Ag(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Rl(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function t_(e,t,n){const r=ht();if(r.firstCreatePass){const o=hn(e);Sl(n,r.data,r.blueprint,o,!0),Sl(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Ai{}class Pg{}function i_(e,t){return new Ol(e,t??null,[])}class Ol extends Ai{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new xh(this);const o=qt(t);this._bootstrapComponents=Qr(o.bootstrap),this._r3Injector=ph(t,n,[{provide:Ai,useValue:this},{provide:Ua,useValue:this.componentFactoryResolver},...r],Me(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 Pl extends Pg{constructor(t){super(),this.moduleType=t}create(t){return new Ol(this.moduleType,t,[])}}class Ng extends Ai{constructor(t){super(),this.componentFactoryResolver=new xh(this),this.instance=null;const n=new Oc([...t.providers,{provide:Ai,useValue:this},{provide:Ua,useValue:this.componentFactoryResolver}],t.parent||Na(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function xg(e,t,n=null){return new Ng({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let a_=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=xf(0,n.type),o=r.length>0?xg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=Tt({token:e,providedIn:"environment",factory:()=>new e(P(To))}),e})();function Fg(e){e.getStandaloneInjector=t=>t.get(a_).getOrCreateStandaloneInjector(e)}function $g(e,t,n,r,o,i){const s=t+n;return En(e,s,o)?function xr(e,t,n){return e[t]=n}(e,s+1,i?r.call(i,o):r(o)):function Fs(e,t){const n=e[t];return n===et?void 0:n}(e,s+1)}function Kg(e,t){const n=ht();let r;const o=e+st;n.firstCreatePass?(r=function b_(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=ur(r.type)),s=Gt(gi);try{const l=fa(!1),f=i();return fa(l),function iC(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,te(),o,f),f}finally{Gt(s)}}function Yg(e,t,n){const r=e+st,o=te(),i=ft(o,r);return function Ls(e,t){return e[Re].data[t].pure}(o,r)?$g(o,function yn(){const e=Ne.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),t,i.transform,n,i):i.transform(n)}function xl(e){return t=>{setTimeout(e,void 0,t)}}const kr=class O_ extends g.x{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 f=t;o=f.next?.bind(f),i=f.error?.bind(f),s=f.complete?.bind(f)}this.__isAsync&&(i=xl(i),o&&(o=xl(o)),s&&(s=xl(s)));const l=super.subscribe({next:o,error:i,complete:s});return t instanceof R.w0&&t.add(l),l}};function P_(){return this._results[Symbol.iterator]()}class Fl{get changes(){return this._changes||(this._changes=new kr)}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=Fl.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=P_)}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 er(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Sv(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=F_,e})();const N_=ks,x_=class extends N_{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 s=this._declarationTContainer.tView,l=ja(this._declarationLView,s,t,4096&this._declarationLView[Ye]?4096:16,null,s.declTNode,null,null,null,n||null,r||null);l[zr]=this._declarationLView[this._declarationTContainer.index];const m=this._declarationLView[xn];return null!==m&&(l[xn]=m.createEmbeddedView(s)),rl(s,l,t),new ws(l)}};function F_(){return cu(sn(),te())}function cu(e,t){return 4&e.type?new x_(t,e,fi(e,t)):null}let lu=(()=>{class e{}return e.__NG_ELEMENT_ID__=$_,e})();function $_(){return em(sn(),te())}const V_=lu,Qg=class extends V_{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return fi(this._hostTNode,this._hostLView)}get injector(){return new Qo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Yu(this._hostTNode,this._hostLView);if(vd(t)){const n=da(t,this._hostLView),r=la(t);return new Qo(n[Re].data[r+8],n)}return new Qo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Jg(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-wt}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const l=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(l,o,false),l}createComponent(t,n,r,o,i){const s=t&&!function os(e){return"function"==typeof e}(t);let l;if(s)l=n;else{const ge=n||{};l=ge.index,r=ge.injector,o=ge.projectableNodes,i=ge.environmentInjector||ge.ngModuleRef}const f=s?t:new Ms(dt(t)),m=r||this.parentInjector;if(!i&&null==f.ngModule){const Se=(s?m:this.parentInjector).get(To,null);Se&&(i=Se)}dt(f.componentType??{});const k=f.create(m,o,null,i);return this.insertImpl(k.hostView,l,false),k}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[Re];if(function Mt(e){return fn(e[_t])}(o)){const f=this.indexOf(t);if(-1!==f)this.detach(f);else{const m=o[_t],E=new Qg(m,m[Wt],m[_t]);E.detach(E.indexOf(t))}}const s=this._adjustIndex(n),l=this._lContainer;if(function my(e,t,n,r){const o=wt+r,i=n.length;r>0&&(n[o-1][mn]=t),r0)r.push(s[l/2]);else{const m=i[l+1],E=t[-f];for(let M=wt;M{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=F(Cw,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(ml(i))n.push(i);else if(ap(i)){const s=new Promise((l,f)=>{i.subscribe({complete:l,error:f})});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=Tt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Sm=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Tt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const fu=new Et("LocaleId",{providedIn:"root",factory:()=>F(fu,Ve.Optional|Ve.SkipSelf)||function _w(){return typeof $localize<"u"&&$localize.locale||Ri}()}),ww=new Et("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Tm=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new V.X(!1)}add(){this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Tt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Iw{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let bw=(()=>{class e{compileModuleSync(n){return new Pl(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Qr(qt(n).declarations).reduce((s,l)=>{const f=dt(l);return f&&s.push(new Ms(f)),s},[]);return new Iw(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=Tt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Om(...e){}class Sn{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kr(!1),this.onMicrotaskEmpty=new kr(!1),this.onStable=new kr(!1),this.onError=new kr(!1),typeof Zone>"u")throw new K(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 Rw(){const e="function"==typeof je.requestAnimationFrame;let t=je[e?"requestAnimationFrame":"setTimeout"],n=je[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Pw(e){const t=()=>{!function Ow(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(je,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Zl(e),e.isCheckStableRunning=!0,ql(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Zl(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,l)=>{try{return Pm(e),n.invokeTask(o,i,s,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),Nm(e)}},onInvoke:(n,r,o,i,s,l,f)=>{try{return Pm(e),n.invoke(o,i,s,l,f)}finally{e.shouldCoalesceRunChangeDetection&&t(),Nm(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Zl(e),ql(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(!Sn.isInAngularZone())throw new K(909,!1)}static assertNotInAngularZone(){if(Sn.isInAngularZone())throw new K(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,Aw,Om,Om);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 Aw={};function ql(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 Zl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Pm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Nm(e){e._nesting--,ql(e)}const xm=new Et("",{providedIn:"root",factory:Fm});function Fm(){const e=F(Sn);let t=!0;return function ne(...e){const t=(0,fe.yG)(e),n=(0,fe._6)(e,1/0),r=e;return r.length?1===r.length?(0,se.Xf)(r[0]):(0,H.J)(n)((0,ue.D)(r,t)):ee.E}(new x.y(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new x.y(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{Sn.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{Sn.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe((0,re.B)()))}const Lm=new Et(""),km=new Et("");let Xl,xw=(()=>{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,Xl||(function Fw(e){Xl=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:()=>{Sn.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let 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)(P(Sn),P(Um),P(km))},e.\u0275prov=Tt({token:e,factory:e.\u0275fac}),e})(),Um=(()=>{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 Xl?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Tt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),lo=null;const Ql=new Et("PlatformDestroyListeners"),Jl=new Et("appBootstrapListener");function Bw(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e,o=function Hw(e=[]){if(lo)return lo;const t=function $m(e=[],t){return uo.create({name:t,providers:[{provide:Rc,useValue:"platform"},{provide:Ql,useValue:new Set([()=>lo=null])},...e]})}(e);return lo=t,function Bm(){!function yo(e){Gi=e}(()=>{throw new K(600,!1)})}(),function jm(e){e.get(Bf,null)?.forEach(n=>n())}(t),t}(r),i=[Gw(),...n||[]],l=new Ng({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,f=l.get(Sn);return f.run(()=>{l.resolveInjectorInitializers();const m=l.get(hi,null);let E;f.runOutsideAngular(()=>{E=f.onError.subscribe({next:k=>{m.handleError(k)}})});const M=()=>l.destroy(),N=o.get(Ql);return N.add(M),l.onDestroy(()=>{E.unsubscribe(),N.delete(M)}),function Gm(e,t,n){try{const r=n();return ml(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(m,f,()=>{const k=l.get(Yl);return k.runInitializers(),k.donePromise.then(()=>{!function sg(e){ut(e,"Expected localeId to be defined"),"string"==typeof e&&(ig=e.toLowerCase().replace(/_/g,"-"))}(l.get(fu,Ri)||Ri);const ge=l.get(Ni);return void 0!==t&&ge.bootstrap(t),ge})})})}catch(t){return Promise.reject(t)}}let Ni=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=F(Ym),this.zoneIsStable=F(xm),this.componentTypes=[],this.components=[],this.isStable=F(Tm).hasPendingTasks.pipe((0,_e.w)(n=>n?(0,G.of)(!1):this.zoneIsStable),(0,Q.x)(),(0,re.B)()),this._injector=F(To)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof Wf;if(!this._injector.get(Yl).done)throw!o&&Kn(n),new K(405,!1);let s;s=o?n:this._injector.get(Ua).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const l=function kw(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Ai),m=s.create(uo.NULL,[],r||s.selector,l),E=m.location.nativeElement,M=m.injector.get(Lm,null);return M?.registerApplication(E),m.onDestroy(()=>{this.detachView(m.hostView),hu(this.components,m),M?.unregisterApplication(E)}),this._loadComponent(m),m}tick(){if(this._runningTick)throw new K(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;hu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Jl,[]);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),()=>hu(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new K(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=Tt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function hu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ym=new Et("",{providedIn:"root",factory:()=>F(hi).handleError.bind(void 0)});function Vw(){const e=F(Sn),t=F(hi);return n=>e.runOutsideAngular(()=>t.handleError(n))}let zw=(()=>{class e{constructor(){this.zone=F(Sn),this.applicationRef=F(Ni)}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=Tt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function qm(e){return[{provide:Sn,useFactory:e},{provide:ms,multi:!0,useFactory:()=>{const t=F(zw,{optional:!0});return()=>t.initialize()}},{provide:Ym,useFactory:Vw},{provide:xm,useFactory:Fm}]}function Gw(e){return Ic([[],qm(()=>new Sn(function zm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}(e)))])}function Ww(){return!1}function Kw(){}let Yw=(()=>{class e{}return e.__NG_ELEMENT_ID__=qw,e})();function qw(e){return function Zw(e,t,n){if(ar(e)&&!n){const r=qe(e.index,t);return new ws(r,r)}return 47&e.type?new ws(t[Ft],t):null}(sn(),te(),16==(16&e))}class Jm{constructor(){}supports(t){return Wa(t)}create(t){return new nM(t)}}const tM=(e,t)=>t;class nM{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||tM}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,l),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,l,s,o)),Object.is(n.item,l)||this._addIdentityChange(n,l)):(n=this._mismatch(n,l,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 rM(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 ev),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 ev),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 rM{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 oM{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 ev{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new oM,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 tv(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new sM(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class sM{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function rv(){return new id([new Jm])}let id=(()=>{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||rv()),deps:[[e,new nc,new tc]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new K(901,!1)}}return e.\u0275prov=Tt({token:e,providedIn:"root",factory:rv}),e})();function ov(){return new sd([new nv])}let sd=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||ov()),deps:[[e,new nc,new tc]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new K(901,!1)}}return e.\u0275prov=Tt({token:e,providedIn:"root",factory:ov}),e})();function vM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},6593:(Oe,Z,C)=>{C.d(Z,{Cg:()=>O,Dx:()=>pr});var g=C(2029),R=C(6814);class V extends R.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class x extends V{static makeCurrent(){(0,R.HT)(new x)}onAndCancel(P,b,F){return P.addEventListener(b,F),()=>{P.removeEventListener(b,F)}}dispatchEvent(P,b){P.dispatchEvent(b)}remove(P){P.parentNode&&P.parentNode.removeChild(P)}createElement(P,b){return(b=b||this.getDefaultDocument()).createElement(P)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(P){return P.nodeType===Node.ELEMENT_NODE}isShadowRoot(P){return P instanceof DocumentFragment}getGlobalEventTarget(P,b){return"window"===b?window:"document"===b?P:"body"===b?P.body:null}getBaseHref(P){const b=function se(){return H=H||document.querySelector("base"),H?H.getAttribute("href"):null}();return null==b?null:function fe(X){ee=ee||document.createElement("a"),ee.setAttribute("href",X);const P=ee.pathname;return"/"===P.charAt(0)?P:`/${P}`}(b)}resetBaseElement(){H=null}getUserAgent(){return window.navigator.userAgent}getCookie(P){return(0,R.Mx)(document.cookie,P)}}let ee,H=null,ne=(()=>{class X{build(){return new XMLHttpRequest}}return X.\u0275fac=function(b){return new(b||X)},X.\u0275prov=g.Yz7({token:X,factory:X.\u0275fac}),X})();const G=new g.OlP("EventManagerPlugins");let re=(()=>{class X{constructor(b,F){this._zone=F,this._eventNameToPlugin=new Map,b.forEach(ae=>{ae.manager=this}),this._plugins=b.slice().reverse()}addEventListener(b,F,ae){return this._findPluginFor(F).addEventListener(b,F,ae)}getZone(){return this._zone}_findPluginFor(b){let F=this._eventNameToPlugin.get(b);if(F)return F;if(F=this._plugins.find(Te=>Te.supports(b)),!F)throw new g.vHH(5101,!1);return this._eventNameToPlugin.set(b,F),F}}return X.\u0275fac=function(b){return new(b||X)(g.LFG(G),g.LFG(g.R0b))},X.\u0275prov=g.Yz7({token:X,factory:X.\u0275fac}),X})();class _e{constructor(P){this._doc=P}}const Q="ng-app-id";let he=(()=>{class X{constructor(b,F,ae,Te={}){this.doc=b,this.appId=F,this.nonce=ae,this.platformId=Te,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,R.PM)(Te),this.resetHostNodes()}addStyles(b){for(const F of b)1===this.changeUsageCount(F,1)&&this.onStyleAdded(F)}removeStyles(b){for(const F of b)this.changeUsageCount(F,-1)<=0&&this.onStyleRemoved(F)}ngOnDestroy(){const b=this.styleNodesInDOM;b&&(b.forEach(F=>F.remove()),b.clear());for(const F of this.getAllStyles())this.onStyleRemoved(F);this.resetHostNodes()}addHost(b){this.hostNodes.add(b);for(const F of this.getAllStyles())this.addStyleToHost(b,F)}removeHost(b){this.hostNodes.delete(b)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(b){for(const F of this.hostNodes)this.addStyleToHost(F,b)}onStyleRemoved(b){const F=this.styleRef;F.get(b)?.elements?.forEach(ae=>ae.remove()),F.delete(b)}collectServerRenderedStyles(){const b=this.doc.head?.querySelectorAll(`style[${Q}="${this.appId}"]`);if(b?.length){const F=new Map;return b.forEach(ae=>{null!=ae.textContent&&F.set(ae.textContent,ae)}),F}return null}changeUsageCount(b,F){const ae=this.styleRef;if(ae.has(b)){const Te=ae.get(b);return Te.usage+=F,Te.usage}return ae.set(b,{usage:F,elements:[]}),F}getStyleElement(b,F){const ae=this.styleNodesInDOM,Te=ae?.get(F);if(Te?.parentNode===b)return ae.delete(F),Te.removeAttribute(Q),Te;{const He=this.doc.createElement("style");return this.nonce&&He.setAttribute("nonce",this.nonce),He.textContent=F,this.platformIsServer&&He.setAttribute(Q,this.appId),He}}addStyleToHost(b,F){const ae=this.getStyleElement(b,F);b.appendChild(ae);const Te=this.styleRef,He=Te.get(F)?.elements;He?He.push(ae):Te.set(F,{elements:[ae],usage:1})}resetHostNodes(){const b=this.hostNodes;b.clear(),b.add(this.doc.head)}}return X.\u0275fac=function(b){return new(b||X)(g.LFG(R.K0),g.LFG(g.AFp),g.LFG(g.Ojb,8),g.LFG(g.Lbi))},X.\u0275prov=g.Yz7({token:X,factory:X.\u0275fac}),X})();const $e={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/"},Me=/%COMP%/g,me=new g.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Ce(X,P){return P.map(b=>b.replace(Me,X))}let K=(()=>{class X{constructor(b,F,ae,Te,He,yt,vt,Nt=null){this.eventManager=b,this.sharedStylesHost=F,this.appId=ae,this.removeStylesOnCompDestroy=Te,this.doc=He,this.platformId=yt,this.ngZone=vt,this.nonce=Nt,this.rendererByCompId=new Map,this.platformIsServer=(0,R.PM)(yt),this.defaultRenderer=new Qe(b,He,vt,this.platformIsServer)}createRenderer(b,F){if(!b||!F)return this.defaultRenderer;this.platformIsServer&&F.encapsulation===g.ifc.ShadowDom&&(F={...F,encapsulation:g.ifc.Emulated});const ae=this.getOrCreateRenderer(b,F);return ae instanceof j?ae.applyToHost(b):ae instanceof Zt&&ae.applyStyles(),ae}getOrCreateRenderer(b,F){const ae=this.rendererByCompId;let Te=ae.get(F.id);if(!Te){const He=this.doc,yt=this.ngZone,vt=this.eventManager,Nt=this.sharedStylesHost,xt=this.removeStylesOnCompDestroy,un=this.platformIsServer;switch(F.encapsulation){case g.ifc.Emulated:Te=new j(vt,Nt,F,this.appId,xt,He,yt,un);break;case g.ifc.ShadowDom:return new Kt(vt,Nt,b,F,He,yt,this.nonce,un);default:Te=new Zt(vt,Nt,F,xt,He,yt,un)}ae.set(F.id,Te)}return Te}ngOnDestroy(){this.rendererByCompId.clear()}}return X.\u0275fac=function(b){return new(b||X)(g.LFG(re),g.LFG(he),g.LFG(g.AFp),g.LFG(me),g.LFG(R.K0),g.LFG(g.Lbi),g.LFG(g.R0b),g.LFG(g.Ojb))},X.\u0275prov=g.Yz7({token:X,factory:X.\u0275fac}),X})();class Qe{constructor(P,b,F,ae){this.eventManager=P,this.doc=b,this.ngZone=F,this.platformIsServer=ae,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(P,b){return b?this.doc.createElementNS($e[b]||b,P):this.doc.createElement(P)}createComment(P){return this.doc.createComment(P)}createText(P){return this.doc.createTextNode(P)}appendChild(P,b){(Ct(P)?P.content:P).appendChild(b)}insertBefore(P,b,F){P&&(Ct(P)?P.content:P).insertBefore(b,F)}removeChild(P,b){P&&P.removeChild(b)}selectRootElement(P,b){let F="string"==typeof P?this.doc.querySelector(P):P;if(!F)throw new g.vHH(-5104,!1);return b||(F.textContent=""),F}parentNode(P){return P.parentNode}nextSibling(P){return P.nextSibling}setAttribute(P,b,F,ae){if(ae){b=ae+":"+b;const Te=$e[ae];Te?P.setAttributeNS(Te,b,F):P.setAttribute(b,F)}else P.setAttribute(b,F)}removeAttribute(P,b,F){if(F){const ae=$e[F];ae?P.removeAttributeNS(ae,b):P.removeAttribute(`${F}:${b}`)}else P.removeAttribute(b)}addClass(P,b){P.classList.add(b)}removeClass(P,b){P.classList.remove(b)}setStyle(P,b,F,ae){ae&(g.JOm.DashCase|g.JOm.Important)?P.style.setProperty(b,F,ae&g.JOm.Important?"important":""):P.style[b]=F}removeStyle(P,b,F){F&g.JOm.DashCase?P.style.removeProperty(b):P.style[b]=""}setProperty(P,b,F){P[b]=F}setValue(P,b){P.nodeValue=b}listen(P,b,F){if("string"==typeof P&&!(P=(0,R.q)().getGlobalEventTarget(this.doc,P)))throw new Error(`Unsupported event target ${P} for event ${b}`);return this.eventManager.addEventListener(P,b,this.decoratePreventDefault(F))}decoratePreventDefault(P){return b=>{if("__ngUnwrap__"===b)return P;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>P(b)):P(b))&&b.preventDefault()}}}function Ct(X){return"TEMPLATE"===X.tagName&&void 0!==X.content}class Kt extends Qe{constructor(P,b,F,ae,Te,He,yt,vt){super(P,Te,He,vt),this.sharedStylesHost=b,this.hostEl=F,this.shadowRoot=F.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Nt=Ce(ae.id,ae.styles);for(const xt of Nt){const un=document.createElement("style");yt&&un.setAttribute("nonce",yt),un.textContent=xt,this.shadowRoot.appendChild(un)}}nodeOrShadowRoot(P){return P===this.hostEl?this.shadowRoot:P}appendChild(P,b){return super.appendChild(this.nodeOrShadowRoot(P),b)}insertBefore(P,b,F){return super.insertBefore(this.nodeOrShadowRoot(P),b,F)}removeChild(P,b){return super.removeChild(this.nodeOrShadowRoot(P),b)}parentNode(P){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(P)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Zt extends Qe{constructor(P,b,F,ae,Te,He,yt,vt){super(P,Te,He,yt),this.sharedStylesHost=b,this.removeStylesOnCompDestroy=ae,this.styles=vt?Ce(vt,F.styles):F.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class j extends Zt{constructor(P,b,F,ae,Te,He,yt,vt){const Nt=ae+"-"+F.id;super(P,b,F,Te,He,yt,vt,Nt),this.contentAttr=function pe(X){return"_ngcontent-%COMP%".replace(Me,X)}(Nt),this.hostAttr=function Ae(X){return"_nghost-%COMP%".replace(Me,X)}(Nt)}applyToHost(P){this.applyStyles(),this.setAttribute(P,this.hostAttr,"")}createElement(P,b){const F=super.createElement(P,b);return super.setAttribute(F,this.contentAttr,""),F}}let W=(()=>{class X extends _e{constructor(b){super(b)}supports(b){return!0}addEventListener(b,F,ae){return b.addEventListener(F,ae,!1),()=>this.removeEventListener(b,F,ae)}removeEventListener(b,F,ae){return b.removeEventListener(F,ae)}}return X.\u0275fac=function(b){return new(b||X)(g.LFG(R.K0))},X.\u0275prov=g.Yz7({token:X,factory:X.\u0275fac}),X})();const oe=["alt","control","meta","shift"],le={"\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"},B={alt:X=>X.altKey,control:X=>X.ctrlKey,meta:X=>X.metaKey,shift:X=>X.shiftKey};let A=(()=>{class X extends _e{constructor(b){super(b)}supports(b){return null!=X.parseEventName(b)}addEventListener(b,F,ae){const Te=X.parseEventName(F),He=X.eventCallback(Te.fullKey,ae,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,R.q)().onAndCancel(b,Te.domEventName,He))}static parseEventName(b){const F=b.toLowerCase().split("."),ae=F.shift();if(0===F.length||"keydown"!==ae&&"keyup"!==ae)return null;const Te=X._normalizeKey(F.pop());let He="",yt=F.indexOf("code");if(yt>-1&&(F.splice(yt,1),He="code."),oe.forEach(Nt=>{const xt=F.indexOf(Nt);xt>-1&&(F.splice(xt,1),He+=Nt+".")}),He+=Te,0!=F.length||0===Te.length)return null;const vt={};return vt.domEventName=ae,vt.fullKey=He,vt}static matchEventFullKeyCode(b,F){let ae=le[b.key]||b.key,Te="";return F.indexOf("code.")>-1&&(ae=b.code,Te="code."),!(null==ae||!ae)&&(ae=ae.toLowerCase()," "===ae?ae="space":"."===ae&&(ae="dot"),oe.forEach(He=>{He!==ae&&(0,B[He])(b)&&(Te+=He+".")}),Te+=ae,Te===F)}static eventCallback(b,F,ae){return Te=>{X.matchEventFullKeyCode(Te,b)&&ae.runGuarded(()=>F(Te))}}static _normalizeKey(b){return"esc"===b?"escape":b}}return X.\u0275fac=function(b){return new(b||X)(g.LFG(R.K0))},X.\u0275prov=g.Yz7({token:X,factory:X.\u0275fac}),X})();function O(X,P){return(0,g.iPO)({rootComponent:X,...ye(P)})}function ye(X){return{appProviders:[...Bn,...X?.providers??[]],platformProviders:it}}const it=[{provide:g.Lbi,useValue:R.bD},{provide:g.g9A,useValue:function Be(){x.makeCurrent()},multi:!0},{provide:R.K0,useFactory:function ve(){return(0,g.RDi)(document),document},deps:[]}],Bn=[{provide:g.zSh,useValue:"root"},{provide:g.qLn,useFactory:function ke(){return new g.qLn},deps:[]},{provide:G,useClass:W,multi:!0,deps:[R.K0,g.R0b,g.Lbi]},{provide:G,useClass:A,multi:!0,deps:[R.K0]},K,he,re,{provide:g.FYo,useExisting:K},{provide:R.JF,useClass:ne,deps:[]},[]];let pr=(()=>{class X{constructor(b){this._doc=b}getTitle(){return this._doc.title}setTitle(b){this._doc.title=b||""}}return X.\u0275fac=function(b){return new(b||X)(g.LFG(R.K0))},X.\u0275prov=g.Yz7({token:X,factory:function(b){let F=null;return F=b?new b:function nr(){return new pr((0,g.LFG)(R.K0))}(),F},providedIn:"root"}),X})();typeof window<"u"&&window},9085:(Oe,Z,C)=>{C.d(Z,{gz:()=>It,rH:()=>Xi,lC:()=>Nn,bU:()=>Nu});var g=C(2029),R=C(7258),V=C(2664),x=C(2096),H=C(5619),se=C(6973),ee=C(2572),fe=C(7537),ne=C(4564);function G(...c){return function ue(){return(0,fe.J)(1)}()((0,V.D)(c,(0,ne.yG)(c)))}var re=C(5592),_e=C(4829);function Q(c){return new re.y(d=>{(0,_e.Xf)(c()).subscribe(d)})}var he=C(8407),$e=C(8504),Me=C(6232),ze=C(7394),rt=C(9360),Xe=C(8251);function Y(){return(0,rt.e)((c,d)=>{let a=null;c._refCount++;const h=(0,Xe.x)(d,void 0,void 0,void 0,()=>{if(!c||c._refCount<=0||0<--c._refCount)return void(a=null);const y=c._connection,_=a;a=null,y&&(!_||y===_)&&y.unsubscribe(),d.unsubscribe()});c.subscribe(h),h.closed||(a=c.connect())})}class me extends re.y{constructor(d,a){super(),this.source=d,this.subjectFactory=a,this._subject=null,this._refCount=0,this._connection=null,(0,rt.A)(d)&&(this.lift=d.lift)}_subscribe(d){return this.getSubject().subscribe(d)}getSubject(){const d=this._subject;return(!d||d.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:d}=this;this._subject=this._connection=null,d?.unsubscribe()}connect(){let d=this._connection;if(!d){d=this._connection=new ze.w0;const a=this.getSubject();d.add(this.source.subscribe((0,Xe.x)(a,void 0,()=>{this._teardown(),a.complete()},h=>{this._teardown(),a.error(h)},()=>this._teardown()))),d.closed&&(this._connection=null,d=ze.w0.EMPTY)}return d}refCount(){return Y()(this)}}var pe=C(8645),Ae=C(6814),Ce=C(7398),K=C(4664),Qe=C(8180),We=C(2181),Ct=C(1631),Kt=C(1374),Zt=C(6328),j=C(9397),W=C(6306);var B=C(3572);function A(c){return c<=0?()=>Me.E:(0,rt.e)((d,a)=>{let h=[];d.subscribe((0,Xe.x)(a,y=>{h.push(y),c{for(const y of h)a.next(y);a.complete()},void 0,()=>{h=null}))})}var O=C(3026),z=C(2737),Be=C(4716),ke=C(6593);const ve="primary",it=Symbol("RouteTitle");class ut{constructor(d){this.params=d||{}}has(d){return Object.prototype.hasOwnProperty.call(this.params,d)}get(d){if(this.has(d)){const a=this.params[d];return Array.isArray(a)?a[0]:a}return null}getAll(d){if(this.has(d)){const a=this.params[d];return Array.isArray(a)?a:[a]}return[]}get keys(){return Object.keys(this.params)}}function Ue(c){return new ut(c)}function $t(c,d,a){const h=a.path.split("/");if(h.length>c.length||"full"===a.pathMatch&&(d.hasChildren()||h.lengthh[_]===y)}return c===d}function eo(c){return c.length>0?c[c.length-1]:null}function an(c){return(0,R.b)(c)?c:(0,g.QGY)(c)?(0,V.D)(Promise.resolve(c)):(0,x.of)(c)}const nr={exact:function Xt(c,d,a){if(!pt(c.segments,d.segments)||!Tn(c.segments,d.segments,a)||c.numberOfChildren!==d.numberOfChildren)return!1;for(const h in d.children)if(!c.children[h]||!Xt(c.children[h],d.children[h],a))return!1;return!0},subset:Je},pr={exact:function gn(c,d){return St(c,d)},subset:function tt(c,d){return Object.keys(d).length<=Object.keys(c).length&&Object.keys(d).every(a=>Tt(c[a],d[a]))},ignored:()=>!0};function _n(c,d,a){return nr[a.paths](c.root,d.root,a.matrixParams)&&pr[a.queryParams](c.queryParams,d.queryParams)&&!("exact"===a.fragment&&c.fragment!==d.fragment)}function Je(c,d,a){return rr(c,d,d.segments,a)}function rr(c,d,a,h){if(c.segments.length>a.length){const y=c.segments.slice(0,a.length);return!(!pt(y,a)||d.hasChildren()||!Tn(y,a,h))}if(c.segments.length===a.length){if(!pt(c.segments,a)||!Tn(c.segments,a,h))return!1;for(const y in d.children)if(!c.children[y]||!Je(c.children[y],d.children[y],h))return!1;return!0}{const y=a.slice(0,c.segments.length),_=a.slice(c.segments.length);return!!(pt(c.segments,y)&&Tn(c.segments,y,h)&&c.children[ve])&&rr(c.children[ve],d,_,h)}}function Tn(c,d,a){return d.every((h,y)=>pr[a](c[y].parameters,h.parameters))}class Ve{constructor(d=new nt([],{}),a={},h=null){this.root=d,this.queryParams=a,this.fragment=h}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ue(this.queryParams)),this._queryParamMap}toString(){return mr.serialize(this)}}class nt{constructor(d,a){this.segments=d,this.children=a,this.parent=null,Object.values(a).forEach(h=>h.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vr(this)}}class Pt{constructor(d,a){this.path=d,this.parameters=a}get parameterMap(){return this._parameterMap||(this._parameterMap=Ue(this.parameters)),this._parameterMap}toString(){return An(this)}}function pt(c,d){return c.length===d.length&&c.every((a,h)=>a.path===d[h].path)}let je=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:function(){return new gr},providedIn:"root"}),c})();class gr{parse(d){const a=new vt(d);return new Ve(a.parseRootSegment(),a.parseQueryParams(),a.parseFragment())}serialize(d){const a=`/${nn(d.root,!0)}`,h=function On(c){const d=Object.keys(c).map(a=>{const h=c[a];return Array.isArray(h)?h.map(y=>`${Ht(a)}=${Ht(y)}`).join("&"):`${Ht(a)}=${Ht(h)}`}).filter(a=>!!a);return d.length?`?${d.join("&")}`:""}(d.queryParams);return`${a}${h}${"string"==typeof d.fragment?`#${function yr(c){return encodeURI(c)}(d.fragment)}`:""}`}}const mr=new gr;function vr(c){return c.segments.map(d=>An(d)).join("/")}function nn(c,d){if(!c.hasChildren())return vr(c);if(d){const a=c.children[ve]?nn(c.children[ve],!1):"",h=[];return Object.entries(c.children).forEach(([y,_])=>{y!==ve&&h.push(`${y}:${nn(_,!1)}`)}),h.length>0?`${a}(${h.join("//")})`:a}{const a=function fo(c,d){let a=[];return Object.entries(c.children).forEach(([h,y])=>{h===ve&&(a=a.concat(d(y,h)))}),Object.entries(c.children).forEach(([h,y])=>{h!==ve&&(a=a.concat(d(y,h)))}),a}(c,(h,y)=>y===ve?[nn(c.children[ve],!1)]:[`${y}:${nn(h,!1)}`]);return 1===Object.keys(c.children).length&&null!=c.children[ve]?`${vr(c)}/${a[0]}`:`${vr(c)}/(${a.join("//")})`}}function Qt(c){return encodeURIComponent(c).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ht(c){return Qt(c).replace(/%3B/gi,";")}function Gn(c){return Qt(c).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Rn(c){return decodeURIComponent(c)}function Ur(c){return Rn(c.replace(/\+/g,"%20"))}function An(c){return`${Gn(c.path)}${function ho(c){return Object.keys(c).map(d=>`;${Gn(d)}=${Gn(c[d])}`).join("")}(c.parameters)}`}const X=/^[^\/()?;#]+/;function P(c){const d=c.match(X);return d?d[0]:""}const b=/^[^\/()?;=#]+/,ae=/^[^=?&#]+/,He=/^[^&#]+/;class vt{constructor(d){this.url=d,this.remaining=d}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new nt([],{}):new nt([],this.parseChildren())}parseQueryParams(){const d={};if(this.consumeOptional("?"))do{this.parseQueryParam(d)}while(this.consumeOptional("&"));return d}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const d=[];for(this.peekStartsWith("(")||d.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),d.push(this.parseSegment());let a={};this.peekStartsWith("/(")&&(this.capture("/"),a=this.parseParens(!0));let h={};return this.peekStartsWith("(")&&(h=this.parseParens(!1)),(d.length>0||Object.keys(a).length>0)&&(h[ve]=new nt(d,a)),h}parseSegment(){const d=P(this.remaining);if(""===d&&this.peekStartsWith(";"))throw new g.vHH(4009,!1);return this.capture(d),new Pt(Rn(d),this.parseMatrixParams())}parseMatrixParams(){const d={};for(;this.consumeOptional(";");)this.parseParam(d);return d}parseParam(d){const a=function F(c){const d=c.match(b);return d?d[0]:""}(this.remaining);if(!a)return;this.capture(a);let h="";if(this.consumeOptional("=")){const y=P(this.remaining);y&&(h=y,this.capture(h))}d[Rn(a)]=Rn(h)}parseQueryParam(d){const a=function Te(c){const d=c.match(ae);return d?d[0]:""}(this.remaining);if(!a)return;this.capture(a);let h="";if(this.consumeOptional("=")){const w=function yt(c){const d=c.match(He);return d?d[0]:""}(this.remaining);w&&(h=w,this.capture(h))}const y=Ur(a),_=Ur(h);if(d.hasOwnProperty(y)){let w=d[y];Array.isArray(w)||(w=[w],d[y]=w),w.push(_)}else d[y]=_}parseParens(d){const a={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const h=P(this.remaining),y=this.remaining[h.length];if("/"!==y&&")"!==y&&";"!==y)throw new g.vHH(4010,!1);let _;h.indexOf(":")>-1?(_=h.slice(0,h.indexOf(":")),this.capture(_),this.capture(":")):d&&(_=ve);const w=this.parseChildren();a[_]=1===Object.keys(w).length?w[ve]:new nt([],w),this.consumeOptional("//")}return a}peekStartsWith(d){return this.remaining.startsWith(d)}consumeOptional(d){return!!this.peekStartsWith(d)&&(this.remaining=this.remaining.substring(d.length),!0)}capture(d){if(!this.consumeOptional(d))throw new g.vHH(4011,!1)}}function Nt(c){return c.segments.length>0?new nt([],{[ve]:c}):c}function xt(c){const d={};for(const h of Object.keys(c.children)){const _=xt(c.children[h]);if(h===ve&&0===_.segments.length&&_.hasChildren())for(const[w,U]of Object.entries(_.children))d[w]=U;else(_.segments.length>0||_.hasChildren())&&(d[h]=_)}return function un(c){if(1===c.numberOfChildren&&c.children[ve]){const d=c.children[ve];return new nt(c.segments.concat(d.segments),d.children)}return c}(new nt(c.segments,d))}function L(c){return c instanceof Ve}function T(c){let d;const y=Nt(function a(_){const w={};for(const ce of _.children){const xe=a(ce);w[ce.outlet]=xe}const U=new nt(_.url,w);return _===c&&(d=U),U}(c.root));return d??y}function de(c,d,a,h){let y=c;for(;y.parent;)y=y.parent;if(0===d.length)return we(y,y,y,a,h);const _=function Vt(c){if("string"==typeof c[0]&&1===c.length&&"/"===c[0])return new Ge(!0,0,c);let d=0,a=!1;const h=c.reduce((y,_,w)=>{if("object"==typeof _&&null!=_){if(_.outlets){const U={};return Object.entries(_.outlets).forEach(([ce,xe])=>{U[ce]="string"==typeof xe?xe.split("/"):xe}),[...y,{outlets:U}]}if(_.segmentPath)return[...y,_.segmentPath]}return"string"!=typeof _?[...y,_]:0===w?(_.split("/").forEach((U,ce)=>{0==ce&&"."===U||(0==ce&&""===U?a=!0:".."===U?d++:""!=U&&y.push(U))}),y):[...y,_]},[]);return new Ge(a,d,h)}(d);if(_.toRoot())return we(y,y,new nt([],{}),a,h);const w=function Yt(c,d,a){if(c.isAbsolute)return new cn(d,!0,0);if(!a)return new cn(d,!1,NaN);if(null===a.parent)return new cn(a,!0,0);const h=De(c.commands[0])?0:1;return function rn(c,d,a){let h=c,y=d,_=a;for(;_>y;){if(_-=y,h=h.parent,!h)throw new g.vHH(4005,!1);y=h.segments.length}return new cn(h,!1,y-_)}(a,a.segments.length-1+h,c.numberOfDoubleDots)}(_,y,c),U=w.processChildren?gt(w.segmentGroup,w.index,_.commands):on(w.segmentGroup,w.index,_.commands);return we(y,w.segmentGroup,U,a,h)}function De(c){return"object"==typeof c&&null!=c&&!c.outlets&&!c.segmentPath}function be(c){return"object"==typeof c&&null!=c&&c.outlets}function we(c,d,a,h,y){let w,_={};h&&Object.entries(h).forEach(([ce,xe])=>{_[ce]=Array.isArray(xe)?xe.map(Fe=>`${Fe}`):`${xe}`}),w=c===d?a:ct(c,d,a);const U=Nt(xt(w));return new Ve(U,_,y)}function ct(c,d,a){const h={};return Object.entries(c.children).forEach(([y,_])=>{h[y]=_===d?a:ct(_,d,a)}),new nt(c.segments,h)}class Ge{constructor(d,a,h){if(this.isAbsolute=d,this.numberOfDoubleDots=a,this.commands=h,d&&h.length>0&&De(h[0]))throw new g.vHH(4003,!1);const y=h.find(be);if(y&&y!==eo(h))throw new g.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class cn{constructor(d,a,h){this.segmentGroup=d,this.processChildren=a,this.index=h}}function on(c,d,a){if(c||(c=new nt([],{})),0===c.segments.length&&c.hasChildren())return gt(c,d,a);const h=function Rt(c,d,a){let h=0,y=d;const _={match:!1,pathIndex:0,commandIndex:0};for(;y=a.length)return _;const w=c.segments[y],U=a[h];if(be(U))break;const ce=`${U}`,xe=h0&&void 0===ce)break;if(ce&&xe&&"object"==typeof xe&&void 0===xe.outlets){if(!Wn(ce,xe,w))return _;h+=2}else{if(!Wn(ce,{},w))return _;h++}y++}return{match:!0,pathIndex:y,commandIndex:h}}(c,d,a),y=a.slice(h.commandIndex);if(h.match&&h.pathIndex{"string"==typeof w&&(w=[w]),null!==w&&(y[_]=on(c.children[_],d,w))}),Object.entries(c.children).forEach(([_,w])=>{void 0===h[_]&&(y[_]=w)}),new nt(c.segments,y)}}function wn(c,d,a){const h=c.segments.slice(0,d);let y=0;for(;y{"string"==typeof h&&(h=[h]),null!==h&&(d[a]=wn(new nt([],{}),0,h))}),d}function zt(c){const d={};return Object.entries(c).forEach(([a,h])=>d[a]=`${h}`),d}function Wn(c,d,a){return c==a.path&&St(d,a.parameters)}const Bt="imperative";class ln{constructor(d,a){this.id=d,this.url=a}}class Hr extends ln{constructor(d,a,h="imperative",y=null){super(d,a),this.type=0,this.navigationTrigger=h,this.restoredState=y}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Er extends ln{constructor(d,a,h){super(d,a),this.urlAfterRedirects=h,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Br extends ln{constructor(d,a,h,y){super(d,a),this.reason=h,this.code=y,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Cr extends ln{constructor(d,a,h,y){super(d,a),this.reason=h,this.code=y,this.type=16}}class jr extends ln{constructor(d,a,h,y){super(d,a),this.error=h,this.target=y,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class No extends ln{constructor(d,a,h,y){super(d,a),this.urlAfterRedirects=h,this.state=y,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xi extends ln{constructor(d,a,h,y){super(d,a),this.urlAfterRedirects=h,this.state=y,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hs extends ln{constructor(d,a,h,y,_){super(d,a),this.urlAfterRedirects=h,this.state=y,this.shouldActivate=_,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xo extends ln{constructor(d,a,h,y){super(d,a),this.urlAfterRedirects=h,this.state=y,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fi extends ln{constructor(d,a,h,y){super(d,a),this.urlAfterRedirects=h,this.state=y,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bs{constructor(d){this.route=d,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class js{constructor(d){this.route=d,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $s{constructor(d){this.snapshot=d,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dn{constructor(d){this.snapshot=d,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Li{constructor(d){this.snapshot=d,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fo{constructor(d){this.snapshot=d,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dt{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new kt,this.attachRef=null}}let kt=(()=>{class c{constructor(){this.contexts=new Map}onChildOutletCreated(a,h){const y=this.getOrCreateContext(a);y.outlet=h,this.contexts.set(a,y)}onChildOutletDestroyed(a){const h=this.getContext(a);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let h=this.getContext(a);return h||(h=new dt,this.contexts.set(a,h)),h}getContext(a){return this.contexts.get(a)||null}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();class Jt{constructor(d){this._root=d}get root(){return this._root.value}parent(d){const a=this.pathFromRoot(d);return a.length>1?a[a.length-2]:null}children(d){const a=Kn(d,this._root);return a?a.children.map(h=>h.value):[]}firstChild(d){const a=Kn(d,this._root);return a&&a.children.length>0?a.children[0].value:null}siblings(d){const a=qt(d,this._root);return a.length<2?[]:a[a.length-2].children.map(y=>y.value).filter(y=>y!==d)}pathFromRoot(d){return qt(d,this._root).map(a=>a.value)}}function Kn(c,d){if(c===d.value)return d;for(const a of d.children){const h=Kn(c,a);if(h)return h}return null}function qt(c,d){if(c===d.value)return[d];for(const a of d.children){const h=qt(c,a);if(h.length)return h.unshift(d),h}return[]}class Pn{constructor(d,a){this.value=d,this.children=a}toString(){return`TreeNode(${this.value})`}}function ir(c){const d={};return c&&c.children.forEach(a=>d[a.value.outlet]=a),d}class $r extends Jt{constructor(d,a){super(d),this.snapshot=a,Yn(this,d)}toString(){return this.snapshot.toString()}}function Lo(c,d){const a=function Hi(c,d){const w=new _t([],{},{},"",{},ve,d,null,{});return new mn("",new Pn(w,[]))}(0,d),h=new H.X([new Pt("",{})]),y=new H.X({}),_=new H.X({}),w=new H.X({}),U=new H.X(""),ce=new It(h,y,w,U,_,ve,d,a.root);return ce.snapshot=a.root,new $r(new Pn(ce,[]),a)}class It{constructor(d,a,h,y,_,w,U,ce){this.urlSubject=d,this.paramsSubject=a,this.queryParamsSubject=h,this.fragmentSubject=y,this.dataSubject=_,this.outlet=w,this.component=U,this._futureSnapshot=ce,this.title=this.dataSubject?.pipe((0,Ce.U)(xe=>xe[it]))??(0,x.of)(void 0),this.url=d,this.params=a,this.queryParams=h,this.fragment=y,this.data=_}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((0,Ce.U)(d=>Ue(d)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ce.U)(d=>Ue(d)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Re(c,d="emptyOnly"){const a=c.pathFromRoot;let h=0;if("always"!==d)for(h=a.length-1;h>=1;){const y=a[h],_=a[h-1];if(y.routeConfig&&""===y.routeConfig.path)h--;else{if(_.component)break;h--}}return function Ye(c){return c.reduce((d,a)=>({params:{...d.params,...a.params},data:{...d.data,...a.data},resolve:{...a.data,...d.resolve,...a.routeConfig?.data,...a._resolvedData}}),{params:{},data:{},resolve:{}})}(a.slice(h))}class _t{get title(){return this.data?.[it]}constructor(d,a,h,y,_,w,U,ce,xe){this.url=d,this.params=a,this.queryParams=h,this.fragment=y,this.data=_,this.outlet=w,this.component=U,this.routeConfig=ce,this._resolve=xe}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=Ue(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ue(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(h=>h.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class mn extends Jt{constructor(d,a){super(a),this.url=d,Yn(this,a)}toString(){return Wt(this._root)}}function Yn(c,d){d.value._routerState=c,d.children.forEach(a=>Yn(c,a))}function Wt(c){const d=c.children.length>0?` { ${c.children.map(Wt).join(", ")} } `:"";return`${c.value}${d}`}function qn(c){if(c.snapshot){const d=c.snapshot,a=c._futureSnapshot;c.snapshot=a,St(d.queryParams,a.queryParams)||c.queryParamsSubject.next(a.queryParams),d.fragment!==a.fragment&&c.fragmentSubject.next(a.fragment),St(d.params,a.params)||c.paramsSubject.next(a.params),function Bn(c,d){if(c.length!==d.length)return!1;for(let a=0;aSt(a.parameters,d[h].parameters))}(c.url,d.url);return a&&!(!c.parent!=!d.parent)&&(!c.parent||At(c.parent,d.parent))}let Nn=(()=>{class c{constructor(){this.activated=null,this._activatedRoute=null,this.name=ve,this.activateEvents=new g.vpe,this.deactivateEvents=new g.vpe,this.attachEvents=new g.vpe,this.detachEvents=new g.vpe,this.parentContexts=(0,g.f3M)(kt),this.location=(0,g.f3M)(g.s_b),this.changeDetector=(0,g.f3M)(g.sBO),this.environmentInjector=(0,g.f3M)(g.lqb),this.inputBinder=(0,g.f3M)(Ke,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(a){if(a.name){const{firstChange:h,previousValue:y}=a.name;if(h)return;this.isTrackedInParentContexts(y)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(y)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(a){return this.parentContexts.getContext(a)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const a=this.parentContexts.getContext(this.name);a?.route&&(a.attachRef?this.attach(a.attachRef,a.route):this.activateWith(a.route,a.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new g.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g.vHH(4012,!1);this.location.detach();const a=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(a.instance),a}attach(a,h){this.activated=a,this._activatedRoute=h,this.location.insert(a.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(a.instance)}deactivate(){if(this.activated){const a=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(a)}}activateWith(a,h){if(this.isActivated)throw new g.vHH(4013,!1);this._activatedRoute=a;const y=this.location,w=a.snapshot.component,U=this.parentContexts.getOrCreateContext(this.name).children,ce=new jn(a,U,y.injector);this.activated=y.createComponent(w,{index:y.length,injector:ce,environmentInjector:h??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275dir=g.lG2({type:c,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[g.TTD]}),c})();class jn{constructor(d,a,h){this.route=d,this.childContexts=a,this.parent=h}get(d,a){return d===It?this.route:d===kt?this.childContexts:this.parent.get(d,a)}}const Ke=new g.OlP("");function Mn(c,d,a){if(a&&c.shouldReuseRoute(d.value,a.value.snapshot)){const h=a.value;h._futureSnapshot=d.value;const y=function Ft(c,d,a){return d.children.map(h=>{for(const y of a.children)if(c.shouldReuseRoute(h.value,y.value.snapshot))return Mn(c,h,y);return Mn(c,h)})}(c,d,a);return new Pn(h,y)}{if(c.shouldAttach(d.value)){const _=c.retrieve(d.value);if(null!==_){const w=_.route;return w.value._futureSnapshot=d.value,w.children=d.children.map(U=>Mn(c,U)),w}}const h=function zr(c){return new It(new H.X(c.url),new H.X(c.params),new H.X(c.queryParams),new H.X(c.fragment),new H.X(c.data),c.outlet,c.component,c)}(d.value),y=d.children.map(_=>Mn(c,_));return new Pn(h,y)}}const Zn="ngNavigationCancelingError";function xn(c,d){const{redirectTo:a,navigationBehaviorOptions:h}=L(d)?{redirectTo:d,navigationBehaviorOptions:void 0}:d,y=_r(!1,0,d);return y.url=a,y.navigationBehaviorOptions=h,y}function _r(c,d,a){const h=new Error("NavigationCancelingError: "+(c||""));return h[Zn]=!0,h.cancellationCode=d,a&&(h.url=a),h}function Uo(c){return Xn(c)&&L(c.url)}function Xn(c){return c&&c[Zn]}let $n=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275cmp=g.Xpm({type:c,selectors:[["ng-component"]],standalone:!0,features:[g.jDz],decls:1,vars:0,template:function(a,h){1&a&&g._UZ(0,"router-outlet")},dependencies:[Nn],encapsulation:2}),c})();function sr(c){const d=c.children&&c.children.map(sr),a=d?{...c,children:d}:{...c};return!a.component&&!a.loadComponent&&(d||a.loadChildren)&&a.outlet&&a.outlet!==ve&&(a.component=$n),a}function wt(c){return c.outlet||ve}function Ut(c){if(!c)return null;if(c.routeConfig?._injector)return c.routeConfig._injector;for(let d=c.parent;d;d=d.parent){const a=d.routeConfig;if(a?._loadedInjector)return a._loadedInjector;if(a?._injector)return a._injector}return null}class ar{constructor(d,a,h,y,_){this.routeReuseStrategy=d,this.futureState=a,this.currState=h,this.forwardEvent=y,this.inputBindingEnabled=_}activate(d){const a=this.futureState._root,h=this.currState?this.currState._root:null;this.deactivateChildRoutes(a,h,d),qn(this.futureState.root),this.activateChildRoutes(a,h,d)}deactivateChildRoutes(d,a,h){const y=ir(a);d.children.forEach(_=>{const w=_.value.outlet;this.deactivateRoutes(_,y[w],h),delete y[w]}),Object.values(y).forEach(_=>{this.deactivateRouteAndItsChildren(_,h)})}deactivateRoutes(d,a,h){const y=d.value,_=a?a.value:null;if(y===_)if(y.component){const w=h.getContext(y.outlet);w&&this.deactivateChildRoutes(d,a,w.children)}else this.deactivateChildRoutes(d,a,h);else _&&this.deactivateRouteAndItsChildren(a,h)}deactivateRouteAndItsChildren(d,a){d.value.component&&this.routeReuseStrategy.shouldDetach(d.value.snapshot)?this.detachAndStoreRouteSubtree(d,a):this.deactivateRouteAndOutlet(d,a)}detachAndStoreRouteSubtree(d,a){const h=a.getContext(d.value.outlet),y=h&&d.value.component?h.children:a,_=ir(d);for(const w of Object.keys(_))this.deactivateRouteAndItsChildren(_[w],y);if(h&&h.outlet){const w=h.outlet.detach(),U=h.children.onOutletDeactivated();this.routeReuseStrategy.store(d.value.snapshot,{componentRef:w,route:d,contexts:U})}}deactivateRouteAndOutlet(d,a){const h=a.getContext(d.value.outlet),y=h&&d.value.component?h.children:a,_=ir(d);for(const w of Object.keys(_))this.deactivateRouteAndItsChildren(_[w],y);h&&(h.outlet&&(h.outlet.deactivate(),h.children.onOutletDeactivated()),h.attachRef=null,h.route=null)}activateChildRoutes(d,a,h){const y=ir(a);d.children.forEach(_=>{this.activateRoutes(_,y[_.value.outlet],h),this.forwardEvent(new Fo(_.value.snapshot))}),d.children.length&&this.forwardEvent(new dn(d.value.snapshot))}activateRoutes(d,a,h){const y=d.value,_=a?a.value:null;if(qn(y),y===_)if(y.component){const w=h.getOrCreateContext(y.outlet);this.activateChildRoutes(d,a,w.children)}else this.activateChildRoutes(d,a,h);else if(y.component){const w=h.getOrCreateContext(y.outlet);if(this.routeReuseStrategy.shouldAttach(y.snapshot)){const U=this.routeReuseStrategy.retrieve(y.snapshot);this.routeReuseStrategy.store(y.snapshot,null),w.children.onOutletReAttached(U.contexts),w.attachRef=U.componentRef,w.route=U.route.value,w.outlet&&w.outlet.attach(U.componentRef,U.route.value),qn(U.route.value),this.activateChildRoutes(d,null,w.children)}else{const U=Ut(y.snapshot);w.attachRef=null,w.route=y,w.injector=U,w.outlet&&w.outlet.activateWith(y,w.injector),this.activateChildRoutes(d,null,w.children)}}else this.activateChildRoutes(d,null,h)}}class Wr{constructor(d){this.path=d,this.route=this.path[this.path.length-1]}}class hn{constructor(d,a){this.component=d,this.route=a}}function $o(c,d,a){const h=c._root;return to(h,d?d._root:null,a,[h.value])}function Mr(c,d){const a=Symbol(),h=d.get(c,a);return h===a?"function"!=typeof c||(0,g.Z0I)(c)?d.get(c):c:h}function to(c,d,a,h,y={canDeactivateChecks:[],canActivateChecks:[]}){const _=ir(d);return c.children.forEach(w=>{(function zs(c,d,a,h,y={canDeactivateChecks:[],canActivateChecks:[]}){const _=c.value,w=d?d.value:null,U=a?a.getContext(c.value.outlet):null;if(w&&_.routeConfig===w.routeConfig){const ce=function Gs(c,d,a){if("function"==typeof a)return a(c,d);switch(a){case"pathParamsChange":return!pt(c.url,d.url);case"pathParamsOrQueryParamsChange":return!pt(c.url,d.url)||!St(c.queryParams,d.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!At(c,d)||!St(c.queryParams,d.queryParams);default:return!At(c,d)}}(w,_,_.routeConfig.runGuardsAndResolvers);ce?y.canActivateChecks.push(new Wr(h)):(_.data=w.data,_._resolvedData=w._resolvedData),to(c,d,_.component?U?U.children:null:a,h,y),ce&&U&&U.outlet&&U.outlet.isActivated&&y.canDeactivateChecks.push(new hn(U.outlet.component,w))}else w&&no(d,U,y),y.canActivateChecks.push(new Wr(h)),to(c,null,_.component?U?U.children:null:a,h,y)})(w,_[w.value.outlet],a,h.concat([w.value]),y),delete _[w.value.outlet]}),Object.entries(_).forEach(([w,U])=>no(U,a.getContext(w),y)),y}function no(c,d,a){const h=ir(c),y=c.value;Object.entries(h).forEach(([_,w])=>{no(w,y.component?d?d.children.getContext(_):null:d,a)}),a.canDeactivateChecks.push(new hn(y.component&&d&&d.outlet&&d.outlet.isActivated?d.outlet.component:null,y))}function ro(c){return"function"==typeof c}function Lt(c){return c instanceof se.K||"EmptyError"===c?.name}const Vo=Symbol("INITIAL_VALUE");function Ir(){return(0,K.w)(c=>(0,ee.a)(c.map(d=>d.pipe((0,Qe.q)(1),function Ie(...c){const d=(0,ne.yG)(c);return(0,rt.e)((a,h)=>{(d?G(c,a,d):G(c,a)).subscribe(h)})}(Vo)))).pipe((0,Ce.U)(d=>{for(const a of d)if(!0!==a){if(a===Vo)return Vo;if(!1===a||a instanceof Ve)return a}return!0}),(0,We.h)(d=>d!==Vo),(0,Qe.q)(1)))}function Go(c){return(0,he.z)((0,j.b)(d=>{if(L(d))throw xn(0,d)}),(0,Ce.U)(d=>!0===d))}class br{constructor(d){this.segmentGroup=d||null}}class Kr{constructor(d){this.urlTree=d}}function Yr(c){return(0,$e._)(new br(c))}function Fn(c){return(0,$e._)(new Kr(c))}class mo{constructor(d,a){this.urlSerializer=d,this.urlTree=a}noMatchError(d){return new g.vHH(4002,!1)}lineralizeSegments(d,a){let h=[],y=a.root;for(;;){if(h=h.concat(y.segments),0===y.numberOfChildren)return(0,x.of)(h);if(y.numberOfChildren>1||!y.children[ve])return(0,$e._)(new g.vHH(4e3,!1));y=y.children[ve]}}applyRedirectCommands(d,a,h){return this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),d,h)}applyRedirectCreateUrlTree(d,a,h,y){const _=this.createSegmentGroup(d,a.root,h,y);return new Ve(_,this.createQueryParams(a.queryParams,this.urlTree.queryParams),a.fragment)}createQueryParams(d,a){const h={};return Object.entries(d).forEach(([y,_])=>{if("string"==typeof _&&_.startsWith(":")){const U=_.substring(1);h[y]=a[U]}else h[y]=_}),h}createSegmentGroup(d,a,h,y){const _=this.createSegments(d,a.segments,h,y);let w={};return Object.entries(a.children).forEach(([U,ce])=>{w[U]=this.createSegmentGroup(d,ce,h,y)}),new nt(_,w)}createSegments(d,a,h,y){return a.map(_=>_.path.startsWith(":")?this.findPosParam(d,_,y):this.findOrReturn(_,h))}findPosParam(d,a,h){const y=h[a.path.substring(1)];if(!y)throw new g.vHH(4001,!1);return y}findOrReturn(d,a){let h=0;for(const y of a){if(y.path===d.path)return a.splice(h),y;h++}return d}}const Wo={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vo(c,d,a,h,y){const _=Sr(c,d,a);return _.matched?(h=function po(c,d){return c.providers&&!c._injector&&(c._injector=(0,g.MMx)(c.providers,d,`Route: ${c.path}`)),c._injector??d}(d,h),function zi(c,d,a,h){const y=d.canMatch;if(!y||0===y.length)return(0,x.of)(!0);const _=y.map(w=>{const U=Mr(w,c);return an(function qs(c){return c&&ro(c.canMatch)}(U)?U.canMatch(d,a):c.runInContext(()=>U(d,a)))});return(0,x.of)(_).pipe(Ir(),Go())}(h,d,a).pipe((0,Ce.U)(w=>!0===w?_:{...Wo}))):(0,x.of)(_)}function Sr(c,d,a){if(""===d.path)return"full"===d.pathMatch&&(c.hasChildren()||a.length>0)?{...Wo}:{matched:!0,consumedSegments:[],remainingSegments:a,parameters:{},positionalParamSegments:{}};const y=(d.matcher||$t)(a,c,d);if(!y)return{...Wo};const _={};Object.entries(y.posParams??{}).forEach(([U,ce])=>{_[U]=ce.path});const w=y.consumed.length>0?{..._,...y.consumed[y.consumed.length-1].parameters}:_;return{matched:!0,consumedSegments:y.consumed,remainingSegments:a.slice(y.consumed.length),parameters:w,positionalParamSegments:y.posParams??{}}}function oo(c,d,a,h){return a.length>0&&function Gi(c,d,a){return a.some(h=>yo(c,d,h)&&wt(h)!==ve)}(c,a,h)?{segmentGroup:new nt(d,Xs(h,new nt(a,c.children))),slicedSegments:[]}:0===a.length&&function Ko(c,d,a){return a.some(h=>yo(c,d,h))}(c,a,h)?{segmentGroup:new nt(c.segments,Zs(c,0,a,h,c.children)),slicedSegments:a}:{segmentGroup:new nt(c.segments,c.children),slicedSegments:a}}function Zs(c,d,a,h,y){const _={};for(const w of h)if(yo(c,a,w)&&!y[wt(w)]){const U=new nt([],{});_[wt(w)]=U}return{...y,..._}}function Xs(c,d){const a={};a[ve]=d;for(const h of c)if(""===h.path&&wt(h)!==ve){const y=new nt([],{});a[wt(h)]=y}return a}function yo(c,d,a){return(!(c.hasChildren()||d.length>0)||"full"!==a.pathMatch)&&""===a.path}class bu{constructor(d,a,h,y,_,w,U){this.injector=d,this.configLoader=a,this.rootComponentType=h,this.config=y,this.urlTree=_,this.paramsInheritanceStrategy=w,this.urlSerializer=U,this.allowRedirects=!0,this.applyRedirects=new mo(this.urlSerializer,this.urlTree)}noMatchError(d){return new g.vHH(4002,!1)}recognize(){const d=oo(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,d,ve).pipe((0,W.K)(a=>{if(a instanceof Kr)return this.allowRedirects=!1,this.urlTree=a.urlTree,this.match(a.urlTree);throw a instanceof br?this.noMatchError(a):a}),(0,Ce.U)(a=>{const h=new _t([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ve,this.rootComponentType,null,{}),y=new Pn(h,a),_=new mn("",y),w=function S(c,d,a=null,h=null){return de(T(c),d,a,h)}(h,[],this.urlTree.queryParams,this.urlTree.fragment);return w.queryParams=this.urlTree.queryParams,_.url=this.urlSerializer.serialize(w),this.inheritParamsAndData(_._root),{state:_,tree:w}}))}match(d){return this.processSegmentGroup(this.injector,this.config,d.root,ve).pipe((0,W.K)(h=>{throw h instanceof br?this.noMatchError(h):h}))}inheritParamsAndData(d){const a=d.value,h=Re(a,this.paramsInheritanceStrategy);a.params=Object.freeze(h.params),a.data=Object.freeze(h.data),d.children.forEach(y=>this.inheritParamsAndData(y))}processSegmentGroup(d,a,h,y){return 0===h.segments.length&&h.hasChildren()?this.processChildren(d,a,h):this.processSegment(d,a,h,h.segments,y,!0)}processChildren(d,a,h){const y=[];for(const _ of Object.keys(h.children))"primary"===_?y.unshift(_):y.push(_);return(0,V.D)(y).pipe((0,Zt.b)(_=>{const w=h.children[_],U=function Vs(c,d){const a=c.filter(h=>wt(h)===d);return a.push(...c.filter(h=>wt(h)!==d)),a}(a,_);return this.processSegmentGroup(d,U,w,_)}),function le(c,d){return(0,rt.e)(function oe(c,d,a,h,y){return(_,w)=>{let U=a,ce=d,xe=0;_.subscribe((0,Xe.x)(w,Fe=>{const at=xe++;ce=U?c(ce,Fe,at):(U=!0,Fe),h&&w.next(ce)},y&&(()=>{U&&w.next(ce),w.complete()})))}}(c,d,arguments.length>=2,!0))}((_,w)=>(_.push(...w),_)),(0,B.d)(null),function ye(c,d){const a=arguments.length>=2;return h=>h.pipe(c?(0,We.h)((y,_)=>c(y,_,h)):z.y,A(1),a?(0,B.d)(d):(0,O.T)(()=>new se.K))}(),(0,Ct.z)(_=>{if(null===_)return Yr(h);const w=Yi(_);return function Ki(c){c.sort((d,a)=>d.value.outlet===ve?-1:a.value.outlet===ve?1:d.value.outlet.localeCompare(a.value.outlet))}(w),(0,x.of)(w)}))}processSegment(d,a,h,y,_,w){return(0,V.D)(a).pipe((0,Zt.b)(U=>this.processSegmentAgainstRoute(U._injector??d,a,U,h,y,_,w).pipe((0,W.K)(ce=>{if(ce instanceof br)return(0,x.of)(null);throw ce}))),(0,Kt.P)(U=>!!U),(0,W.K)(U=>{if(Lt(U))return function Qs(c,d,a){return 0===d.length&&!c.children[a]}(h,y,_)?(0,x.of)([]):Yr(h);throw U}))}processSegmentAgainstRoute(d,a,h,y,_,w,U){return function Do(c,d,a,h){return!!(wt(c)===h||h!==ve&&yo(d,a,c))&&("**"===c.path||Sr(d,c,a).matched)}(h,y,_,w)?void 0===h.redirectTo?this.matchSegmentAgainstRoute(d,y,h,_,w,U):U&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(d,y,a,h,_,w):Yr(y):Yr(y)}expandSegmentAgainstRouteUsingRedirect(d,a,h,y,_,w){return"**"===y.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(d,h,y,w):this.expandRegularSegmentAgainstRouteUsingRedirect(d,a,h,y,_,w)}expandWildCardWithParamsAgainstRouteUsingRedirect(d,a,h,y){const _=this.applyRedirects.applyRedirectCommands([],h.redirectTo,{});return h.redirectTo.startsWith("/")?Fn(_):this.applyRedirects.lineralizeSegments(h,_).pipe((0,Ct.z)(w=>{const U=new nt(w,{});return this.processSegment(d,a,U,w,y,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(d,a,h,y,_,w){const{matched:U,consumedSegments:ce,remainingSegments:xe,positionalParamSegments:Fe}=Sr(a,y,_);if(!U)return Yr(a);const at=this.applyRedirects.applyRedirectCommands(ce,y.redirectTo,Fe);return y.redirectTo.startsWith("/")?Fn(at):this.applyRedirects.lineralizeSegments(y,at).pipe((0,Ct.z)(In=>this.processSegment(d,h,a,In.concat(xe),w,!1)))}matchSegmentAgainstRoute(d,a,h,y,_,w){let U;if("**"===h.path){const ce=y.length>0?eo(y).parameters:{},xe=new _t(y,ce,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Eo(h),wt(h),h.component??h._loadedComponent??null,h,qo(h));U=(0,x.of)({snapshot:xe,consumedSegments:[],remainingSegments:[]}),a.children={}}else U=vo(a,h,y,d).pipe((0,Ce.U)(({matched:ce,consumedSegments:xe,remainingSegments:Fe,parameters:at})=>ce?{snapshot:new _t(xe,at,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Eo(h),wt(h),h.component??h._loadedComponent??null,h,qo(h)),consumedSegments:xe,remainingSegments:Fe}:null));return U.pipe((0,K.w)(ce=>null===ce?Yr(a):this.getChildConfig(d=h._injector??d,h,y).pipe((0,K.w)(({routes:xe})=>{const Fe=h._loadedInjector??d,{snapshot:at,consumedSegments:In,remainingSegments:so}=ce,{segmentGroup:Ar,slicedSegments:Or}=oo(a,In,so,xe);if(0===Or.length&&Ar.hasChildren())return this.processChildren(Fe,xe,Ar).pipe((0,Ce.U)(Mo=>null===Mo?null:[new Pn(at,Mo)]));if(0===xe.length&&0===Or.length)return(0,x.of)([new Pn(at,[])]);const wo=wt(h)===_;return this.processSegment(Fe,xe,Ar,Or,wo?ve:_,!0).pipe((0,Ce.U)(Mo=>[new Pn(at,Mo)]))}))))}getChildConfig(d,a,h){return a.children?(0,x.of)({routes:a.children,injector:d}):a.loadChildren?void 0!==a._loadedRoutes?(0,x.of)({routes:a._loadedRoutes,injector:a._loadedInjector}):function go(c,d,a,h){const y=d.canLoad;if(void 0===y||0===y.length)return(0,x.of)(!0);const _=y.map(w=>{const U=Mr(w,c);return an(function Du(c){return c&&ro(c.canLoad)}(U)?U.canLoad(d,a):c.runInContext(()=>U(d,a)))});return(0,x.of)(_).pipe(Ir(),Go())}(d,a,h).pipe((0,Ct.z)(y=>y?this.configLoader.loadChildren(d,a).pipe((0,j.b)(_=>{a._loadedRoutes=_.routes,a._loadedInjector=_.injector})):function jt(c){return(0,$e._)(_r(!1,3))}())):(0,x.of)({routes:[],injector:d})}}function Yo(c){const d=c.value.routeConfig;return d&&""===d.path}function Yi(c){const d=[],a=new Set;for(const h of c){if(!Yo(h)){d.push(h);continue}const y=d.find(_=>h.value.routeConfig===_.value.routeConfig);void 0!==y?(y.children.push(...h.children),a.add(y)):d.push(h)}for(const h of a){const y=Yi(h.children);d.push(new Pn(h.value,y))}return d.filter(h=>!a.has(h))}function Eo(c){return c.data||{}}function qo(c){return c.resolve||{}}function Zr(c){return"string"==typeof c.title||null===c.title}function u(c){return(0,K.w)(d=>{const a=c(d);return a?(0,V.D)(a).pipe((0,Ce.U)(()=>d)):(0,x.of)(d)})}const v=new g.OlP("ROUTES");let p=(()=>{class c{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,g.f3M)(g.Sil)}loadComponent(a){if(this.componentLoaders.get(a))return this.componentLoaders.get(a);if(a._loadedComponent)return(0,x.of)(a._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(a);const h=an(a.loadComponent()).pipe((0,Ce.U)(I),(0,j.b)(_=>{this.onLoadEndListener&&this.onLoadEndListener(a),a._loadedComponent=_}),(0,Be.x)(()=>{this.componentLoaders.delete(a)})),y=new me(h,()=>new pe.x).pipe(Y());return this.componentLoaders.set(a,y),y}loadChildren(a,h){if(this.childrenLoaders.get(h))return this.childrenLoaders.get(h);if(h._loadedRoutes)return(0,x.of)({routes:h._loadedRoutes,injector:h._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(h);const _=this.loadModuleFactoryOrRoutes(h.loadChildren).pipe((0,Ce.U)(U=>{this.onLoadEndListener&&this.onLoadEndListener(h);let ce,xe;return Array.isArray(U)?xe=U:(ce=U.create(a).injector,xe=ce.get(v,[],g.XFs.Self|g.XFs.Optional).flat()),{routes:xe.map(sr),injector:ce}}),(0,Be.x)(()=>{this.childrenLoaders.delete(h)})),w=new me(_,()=>new pe.x).pipe(Y());return this.childrenLoaders.set(h,w),w}loadModuleFactoryOrRoutes(a){return an(a()).pipe((0,Ce.U)(I),(0,Ct.z)(h=>h instanceof g.YKP||Array.isArray(h)?(0,x.of)(h):(0,V.D)(this.compiler.compileModuleAsync(h))))}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();function I(c){return function D(c){return c&&"object"==typeof c&&"default"in c}(c)?c.default:c}let $=(()=>{class c{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new pe.x,this.configLoader=(0,g.f3M)(p),this.environmentInjector=(0,g.f3M)(g.lqb),this.urlSerializer=(0,g.f3M)(je),this.rootContexts=(0,g.f3M)(kt),this.inputBindingEnabled=null!==(0,g.f3M)(Ke,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,x.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=y=>this.events.next(new js(y)),this.configLoader.onLoadStartListener=y=>this.events.next(new Bs(y))}complete(){this.transitions?.complete()}handleNavigationRequest(a){const h=++this.navigationId;this.transitions?.next({...this.transitions.value,...a,id:h})}setupNavigations(a){return this.transitions=new H.X({id:0,currentUrlTree:a.currentUrlTree,currentRawUrl:a.currentUrlTree,extractedUrl:a.urlHandlingStrategy.extract(a.currentUrlTree),urlAfterRedirects:a.urlHandlingStrategy.extract(a.currentUrlTree),rawUrl:a.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Bt,restoredState:null,currentSnapshot:a.routerState.snapshot,targetSnapshot:null,currentRouterState:a.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,We.h)(h=>0!==h.id),(0,Ce.U)(h=>({...h,extractedUrl:a.urlHandlingStrategy.extract(h.rawUrl)})),(0,K.w)(h=>{let y=!1,_=!1;return(0,x.of)(h).pipe((0,j.b)(w=>{this.currentNavigation={id:w.id,initialUrl:w.rawUrl,extractedUrl:w.extractedUrl,trigger:w.source,extras:w.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,K.w)(w=>{const U=a.browserUrlTree.toString(),ce=!a.navigated||w.extractedUrl.toString()!==U||U!==a.currentUrlTree.toString();if(!ce&&"reload"!==(w.extras.onSameUrlNavigation??a.onSameUrlNavigation)){const Fe="";return this.events.next(new Cr(w.id,a.serializeUrl(h.rawUrl),Fe,0)),a.rawUrlTree=w.rawUrl,w.resolve(null),Me.E}if(a.urlHandlingStrategy.shouldProcessUrl(w.rawUrl))return q(w.source)&&(a.browserUrlTree=w.extractedUrl),(0,x.of)(w).pipe((0,K.w)(Fe=>{const at=this.transitions?.getValue();return this.events.next(new Hr(Fe.id,this.urlSerializer.serialize(Fe.extractedUrl),Fe.source,Fe.restoredState)),at!==this.transitions?.getValue()?Me.E:Promise.resolve(Fe)}),function Js(c,d,a,h,y,_){return(0,Ct.z)(w=>function Wi(c,d,a,h,y,_,w="emptyOnly"){return new bu(c,d,a,h,y,w,_).recognize()}(c,d,a,h,w.extractedUrl,y,_).pipe((0,Ce.U)(({state:U,tree:ce})=>({...w,targetSnapshot:U,urlAfterRedirects:ce}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,a.config,this.urlSerializer,a.paramsInheritanceStrategy),(0,j.b)(Fe=>{if(h.targetSnapshot=Fe.targetSnapshot,h.urlAfterRedirects=Fe.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Fe.urlAfterRedirects},"eager"===a.urlUpdateStrategy){if(!Fe.extras.skipLocationChange){const In=a.urlHandlingStrategy.merge(Fe.urlAfterRedirects,Fe.rawUrl);a.setBrowserUrl(In,Fe)}a.browserUrlTree=Fe.urlAfterRedirects}const at=new No(Fe.id,this.urlSerializer.serialize(Fe.extractedUrl),this.urlSerializer.serialize(Fe.urlAfterRedirects),Fe.targetSnapshot);this.events.next(at)}));if(ce&&a.urlHandlingStrategy.shouldProcessUrl(a.rawUrlTree)){const{id:Fe,extractedUrl:at,source:In,restoredState:so,extras:Ar}=w,Or=new Hr(Fe,this.urlSerializer.serialize(at),In,so);this.events.next(Or);const wo=Lo(0,this.rootComponentType).snapshot;return h={...w,targetSnapshot:wo,urlAfterRedirects:at,extras:{...Ar,skipLocationChange:!1,replaceUrl:!1}},(0,x.of)(h)}{const Fe="";return this.events.next(new Cr(w.id,a.serializeUrl(h.extractedUrl),Fe,1)),a.rawUrlTree=w.rawUrl,w.resolve(null),Me.E}}),(0,j.b)(w=>{const U=new xi(w.id,this.urlSerializer.serialize(w.extractedUrl),this.urlSerializer.serialize(w.urlAfterRedirects),w.targetSnapshot);this.events.next(U)}),(0,Ce.U)(w=>h={...w,guards:$o(w.targetSnapshot,w.currentSnapshot,this.rootContexts)}),function $i(c,d){return(0,Ct.z)(a=>{const{targetSnapshot:h,currentSnapshot:y,guards:{canActivateChecks:_,canDeactivateChecks:w}}=a;return 0===w.length&&0===_.length?(0,x.of)({...a,guardsResult:!0}):function _u(c,d,a,h){return(0,V.D)(c).pipe((0,Ct.z)(y=>function zo(c,d,a,h,y){const _=d&&d.routeConfig?d.routeConfig.canDeactivate:null;if(!_||0===_.length)return(0,x.of)(!0);const w=_.map(U=>{const ce=Ut(d)??y,xe=Mr(U,ce);return an(function Ys(c){return c&&ro(c.canDeactivate)}(xe)?xe.canDeactivate(c,d,a,h):ce.runInContext(()=>xe(c,d,a,h))).pipe((0,Kt.P)())});return(0,x.of)(w).pipe(Ir())}(y.component,y.route,a,d,h)),(0,Kt.P)(y=>!0!==y,!0))}(w,h,y,c).pipe((0,Ct.z)(U=>U&&function Ws(c){return"boolean"==typeof c}(U)?function wu(c,d,a,h){return(0,V.D)(d).pipe((0,Zt.b)(y=>G(function ur(c,d){return null!==c&&d&&d(new $s(c)),(0,x.of)(!0)}(y.route.parent,h),function Mu(c,d){return null!==c&&d&&d(new Li(c)),(0,x.of)(!0)}(y.route,h),function Iu(c,d,a){const h=d[d.length-1],_=d.slice(0,d.length-1).reverse().map(w=>function ji(c){const d=c.routeConfig?c.routeConfig.canActivateChild:null;return d&&0!==d.length?{node:c,guards:d}:null}(w)).filter(w=>null!==w).map(w=>Q(()=>{const U=w.guards.map(ce=>{const xe=Ut(w.node)??a,Fe=Mr(ce,xe);return an(function Ks(c){return c&&ro(c.canActivateChild)}(Fe)?Fe.canActivateChild(h,c):xe.runInContext(()=>Fe(h,c))).pipe((0,Kt.P)())});return(0,x.of)(U).pipe(Ir())}));return(0,x.of)(_).pipe(Ir())}(c,y.path,a),function Vi(c,d,a){const h=d.routeConfig?d.routeConfig.canActivate:null;if(!h||0===h.length)return(0,x.of)(!0);const y=h.map(_=>Q(()=>{const w=Ut(d)??a,U=Mr(_,w);return an(function Eu(c){return c&&ro(c.canActivate)}(U)?U.canActivate(d,c):w.runInContext(()=>U(d,c))).pipe((0,Kt.P)())}));return(0,x.of)(y).pipe(Ir())}(c,y.route,a))),(0,Kt.P)(y=>!0!==y,!0))}(h,_,c,d):(0,x.of)(U)),(0,Ce.U)(U=>({...a,guardsResult:U})))})}(this.environmentInjector,w=>this.events.next(w)),(0,j.b)(w=>{if(h.guardsResult=w.guardsResult,L(w.guardsResult))throw xn(0,w.guardsResult);const U=new Hs(w.id,this.urlSerializer.serialize(w.extractedUrl),this.urlSerializer.serialize(w.urlAfterRedirects),w.targetSnapshot,!!w.guardsResult);this.events.next(U)}),(0,We.h)(w=>!!w.guardsResult||(a.restoreHistory(w),this.cancelNavigationTransition(w,"",3),!1)),u(w=>{if(w.guards.canActivateChecks.length)return(0,x.of)(w).pipe((0,j.b)(U=>{const ce=new xo(U.id,this.urlSerializer.serialize(U.extractedUrl),this.urlSerializer.serialize(U.urlAfterRedirects),U.targetSnapshot);this.events.next(ce)}),(0,K.w)(U=>{let ce=!1;return(0,x.of)(U).pipe(function ea(c,d){return(0,Ct.z)(a=>{const{targetSnapshot:h,guards:{canActivateChecks:y}}=a;if(!y.length)return(0,x.of)(a);let _=0;return(0,V.D)(y).pipe((0,Zt.b)(w=>function qi(c,d,a,h){const y=c.routeConfig,_=c._resolve;return void 0!==y?.title&&!Zr(y)&&(_[it]=y.title),function Zi(c,d,a,h){const y=function ta(c){return[...Object.keys(c),...Object.getOwnPropertySymbols(c)]}(c);if(0===y.length)return(0,x.of)({});const _={};return(0,V.D)(y).pipe((0,Ct.z)(w=>function Zo(c,d,a,h){const y=Ut(d)??h,_=Mr(c,y);return an(_.resolve?_.resolve(d,a):y.runInContext(()=>_(d,a)))}(c[w],d,a,h).pipe((0,Kt.P)(),(0,j.b)(U=>{_[w]=U}))),A(1),function Ee(c){return(0,Ce.U)(()=>c)}(_),(0,W.K)(w=>Lt(w)?Me.E:(0,$e._)(w)))}(_,c,d,h).pipe((0,Ce.U)(w=>(c._resolvedData=w,c.data=Re(c,a).resolve,y&&Zr(y)&&(c.data[it]=y.title),null)))}(w.route,h,c,d)),(0,j.b)(()=>_++),A(1),(0,Ct.z)(w=>_===y.length?(0,x.of)(a):Me.E))})}(a.paramsInheritanceStrategy,this.environmentInjector),(0,j.b)({next:()=>ce=!0,complete:()=>{ce||(a.restoreHistory(U),this.cancelNavigationTransition(U,"",2))}}))}),(0,j.b)(U=>{const ce=new Fi(U.id,this.urlSerializer.serialize(U.extractedUrl),this.urlSerializer.serialize(U.urlAfterRedirects),U.targetSnapshot);this.events.next(ce)}))}),u(w=>{const U=ce=>{const xe=[];ce.routeConfig?.loadComponent&&!ce.routeConfig._loadedComponent&&xe.push(this.configLoader.loadComponent(ce.routeConfig).pipe((0,j.b)(Fe=>{ce.component=Fe}),(0,Ce.U)(()=>{})));for(const Fe of ce.children)xe.push(...U(Fe));return xe};return(0,ee.a)(U(w.targetSnapshot.root)).pipe((0,B.d)(),(0,Qe.q)(1))}),u(()=>this.afterPreactivation()),(0,Ce.U)(w=>{const U=function ko(c,d,a){const h=Mn(c,d._root,a?a._root:void 0);return new $r(h,d)}(a.routeReuseStrategy,w.targetSnapshot,w.currentRouterState);return h={...w,targetRouterState:U}}),(0,j.b)(w=>{a.currentUrlTree=w.urlAfterRedirects,a.rawUrlTree=a.urlHandlingStrategy.merge(w.urlAfterRedirects,w.rawUrl),a.routerState=w.targetRouterState,"deferred"===a.urlUpdateStrategy&&(w.extras.skipLocationChange||a.setBrowserUrl(a.rawUrlTree,w),a.browserUrlTree=w.urlAfterRedirects)}),((c,d,a,h)=>(0,Ce.U)(y=>(new ar(d,y.targetRouterState,y.currentRouterState,a,h).activate(c),y)))(this.rootContexts,a.routeReuseStrategy,w=>this.events.next(w),this.inputBindingEnabled),(0,Qe.q)(1),(0,j.b)({next:w=>{y=!0,this.lastSuccessfulNavigation=this.currentNavigation,a.navigated=!0,this.events.next(new Er(w.id,this.urlSerializer.serialize(w.extractedUrl),this.urlSerializer.serialize(a.currentUrlTree))),a.titleStrategy?.updateTitle(w.targetRouterState.snapshot),w.resolve(!0)},complete:()=>{y=!0}}),(0,Be.x)(()=>{y||_||this.cancelNavigationTransition(h,"",1),this.currentNavigation?.id===h.id&&(this.currentNavigation=null)}),(0,W.K)(w=>{if(_=!0,Xn(w)){Uo(w)||(a.navigated=!0,a.restoreHistory(h,!0));const U=new Br(h.id,this.urlSerializer.serialize(h.extractedUrl),w.message,w.cancellationCode);if(this.events.next(U),Uo(w)){const ce=a.urlHandlingStrategy.merge(w.url,a.rawUrlTree),xe={skipLocationChange:h.extras.skipLocationChange,replaceUrl:"eager"===a.urlUpdateStrategy||q(h.source)};a.scheduleNavigation(ce,Bt,null,xe,{resolve:h.resolve,reject:h.reject,promise:h.promise})}else h.resolve(!1)}else{a.restoreHistory(h,!0);const U=new jr(h.id,this.urlSerializer.serialize(h.extractedUrl),w,h.targetSnapshot??void 0);this.events.next(U);try{h.resolve(a.errorHandler(w))}catch(ce){h.reject(ce)}}return Me.E}))}))}cancelNavigationTransition(a,h,y){const _=new Br(a.id,this.urlSerializer.serialize(a.extractedUrl),h,y);this.events.next(_),a.resolve(!1)}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();function q(c){return c!==Bt}let Pe=(()=>{class c{buildTitle(a){let h,y=a.root;for(;void 0!==y;)h=this.getResolvedTitleForRoute(y)??h,y=y.children.find(_=>_.outlet===ve);return h}getResolvedTitleForRoute(a){return a.data[it]}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:function(){return(0,g.f3M)(Dt)},providedIn:"root"}),c})(),Dt=(()=>{class c extends Pe{constructor(a){super(),this.title=a}updateTitle(a){const h=this.buildTitle(a);void 0!==h&&this.title.setTitle(h)}}return c.\u0275fac=function(a){return new(a||c)(g.LFG(ke.Dx))},c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),ft=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:function(){return(0,g.f3M)(ot)},providedIn:"root"}),c})();class qe{shouldDetach(d){return!1}store(d,a){}shouldAttach(d){return!1}retrieve(d){return null}shouldReuseRoute(d,a){return d.routeConfig===a.routeConfig}}let ot=(()=>{class c extends qe{}return c.\u0275fac=function(){let d;return function(h){return(d||(d=g.n5z(c)))(h||c)}}(),c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();const Ot=new g.OlP("",{providedIn:"root",factory:()=>({})});let Mt=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:function(){return(0,g.f3M)(bt)},providedIn:"root"}),c})(),bt=(()=>{class c{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,h){return a}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();var pn=function(c){return c[c.COMPLETE=0]="COMPLETE",c[c.FAILED=1]="FAILED",c[c.REDIRECTING=2]="REDIRECTING",c}(pn||{});function cr(c){throw c}function vn(c,d,a){return d.parse("/")}const Jn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},lr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ne=(()=>{class c{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=(0,g.f3M)(g.c2e),this.isNgZoneEnabled=!1,this.options=(0,g.f3M)(Ot,{optional:!0})||{},this.pendingTasks=(0,g.f3M)(g.HDt),this.errorHandler=this.options.errorHandler||cr,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||vn,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,g.f3M)(Mt),this.routeReuseStrategy=(0,g.f3M)(ft),this.titleStrategy=(0,g.f3M)(Pe),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=(0,g.f3M)(v,{optional:!0})?.flat()??[],this.navigationTransitions=(0,g.f3M)($),this.urlSerializer=(0,g.f3M)(je),this.location=(0,g.f3M)(Ae.Ye),this.componentInputBindingEnabled=!!(0,g.f3M)(Ke,{optional:!0}),this.isNgZoneEnabled=(0,g.f3M)(g.R0b)instanceof g.R0b&&g.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ve,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Lo(0,null),this.navigationTransitions.setupNavigations(this).subscribe(a=>{this.lastSuccessfulId=a.id,this.currentPageId=this.browserPageId??0},a=>{this.console.warn(`Unhandled Navigation Error: ${a}`)})}resetRootComponentType(a){this.routerState.root.component=a,this.navigationTransitions.rootComponentType=a}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const a=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Bt,a)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(a=>{const h="popstate"===a.type?"popstate":"hashchange";"popstate"===h&&setTimeout(()=>{this.navigateToSyncWithBrowser(a.url,h,a.state)},0)}))}navigateToSyncWithBrowser(a,h,y){const _={replaceUrl:!0},w=y?.navigationId?y:null;if(y){const ce={...y};delete ce.navigationId,delete ce.\u0275routerPageId,0!==Object.keys(ce).length&&(_.state=ce)}const U=this.parseUrl(a);this.scheduleNavigation(U,h,w,_)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(a){this.config=a.map(sr),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(a,h={}){const{relativeTo:y,queryParams:_,fragment:w,queryParamsHandling:U,preserveFragment:ce}=h,xe=ce?this.currentUrlTree.fragment:w;let at,Fe=null;switch(U){case"merge":Fe={...this.currentUrlTree.queryParams,..._};break;case"preserve":Fe=this.currentUrlTree.queryParams;break;default:Fe=_||null}null!==Fe&&(Fe=this.removeEmptyProps(Fe));try{at=T(y?y.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof a[0]||!a[0].startsWith("/"))&&(a=[]),at=this.currentUrlTree.root}return de(at,a,Fe,xe??null)}navigateByUrl(a,h={skipLocationChange:!1}){const y=L(a)?a:this.parseUrl(a),_=this.urlHandlingStrategy.merge(y,this.rawUrlTree);return this.scheduleNavigation(_,Bt,null,h)}navigate(a,h={skipLocationChange:!1}){return function na(c){for(let d=0;d{const _=a[y];return null!=_&&(h[y]=_),h},{})}scheduleNavigation(a,h,y,_,w){if(this.disposed)return Promise.resolve(!1);let U,ce,xe;w?(U=w.resolve,ce=w.reject,xe=w.promise):xe=new Promise((at,In)=>{U=at,ce=In});const Fe=this.pendingTasks.add();return function Ln(c,d){c.events.pipe((0,We.h)(a=>a instanceof Er||a instanceof Br||a instanceof jr||a instanceof Cr),(0,Ce.U)(a=>a instanceof Er||a instanceof Cr?pn.COMPLETE:a instanceof Br&&(0===a.code||1===a.code)?pn.REDIRECTING:pn.FAILED),(0,We.h)(a=>a!==pn.REDIRECTING),(0,Qe.q)(1)).subscribe(()=>{d()})}(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Fe))}),this.navigationTransitions.handleNavigationRequest({source:h,restoredState:y,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:a,extras:_,resolve:U,reject:ce,promise:xe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),xe.catch(at=>Promise.reject(at))}setBrowserUrl(a,h){const y=this.urlSerializer.serialize(a);if(this.location.isCurrentPathEqualTo(y)||h.extras.replaceUrl){const w={...h.extras.state,...this.generateNgRouterState(h.id,this.browserPageId)};this.location.replaceState(y,"",w)}else{const _={...h.extras.state,...this.generateNgRouterState(h.id,(this.browserPageId??0)+1)};this.location.go(y,"",_)}}restoreHistory(a,h=!1){if("computed"===this.canceledNavigationResolution){const _=this.currentPageId-(this.browserPageId??this.currentPageId);0!==_?this.location.historyGo(_):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===_&&(this.resetState(a),this.browserUrlTree=a.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(h&&this.resetState(a),this.resetUrlToCurrentUrlTree())}resetState(a){this.routerState=a.currentRouterState,this.currentUrlTree=a.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(a,h){return"computed"===this.canceledNavigationResolution?{navigationId:a,\u0275routerPageId:h}:{navigationId:a}}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=g.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),Xi=(()=>{class c{constructor(a,h,y,_,w,U){this.router=a,this.route=h,this.tabIndexAttribute=y,this.renderer=_,this.el=w,this.locationStrategy=U,this.href=null,this.commands=null,this.onChanges=new pe.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const ce=w.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===ce||"area"===ce,this.isAnchorElement?this.subscription=a.events.subscribe(xe=>{xe instanceof Er&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(a){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",a)}ngOnChanges(a){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(a){null!=a?(this.commands=Array.isArray(a)?a:[a],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(a,h,y,_,w){return!!(null===this.urlTree||this.isAnchorElement&&(0!==a||h||y||_||w||"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 a=null===this.href?null:(0,g.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",a)}applyAttributeValue(a,h){const y=this.renderer,_=this.el.nativeElement;null!==h?y.setAttribute(_,a,h):y.removeAttribute(_,a)}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 c.\u0275fac=function(a){return new(a||c)(g.Y36(Ne),g.Y36(It),g.$8M("tabindex"),g.Y36(g.Qsj),g.Y36(g.SBq),g.Y36(Ae.S$))},c.\u0275dir=g.lG2({type:c,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(a,h){1&a&&g.NdJ("click",function(_){return h.onClick(_.button,_.ctrlKey,_.shiftKey,_.altKey,_.metaKey)}),2&a&&g.uIk("target",h.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",g.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",g.VuI],replaceUrl:["replaceUrl","replaceUrl",g.VuI],routerLink:"routerLink"},standalone:!0,features:[g.Xq5,g.TTD]}),c})();const Qi=new g.OlP("");function Nu(c,...d){return(0,g.MR2)([{provide:v,multi:!0,useValue:c},[],{provide:It,useFactory:oa,deps:[Ne]},{provide:g.tb,multi:!0,useFactory:Ji},d.map(a=>a.\u0275providers)])}function oa(c){return c.routerState.root}function Ji(){const c=(0,g.f3M)(g.zs3);return d=>{const a=c.get(g.z2F);if(d!==a.components[0])return;const h=c.get(Ne),y=c.get(io);1===c.get(kn)&&h.initialNavigation(),c.get(Lu,null,g.XFs.Optional)?.setUpPreloading(),c.get(Qi,null,g.XFs.Optional)?.init(),h.resetRootComponentType(a.componentTypes[0]),y.closed||(y.next(),y.complete(),y.unsubscribe())}}const io=new g.OlP("",{factory:()=>new pe.x}),kn=new g.OlP("",{providedIn:"root",factory:()=>1}),Lu=new g.OlP("")}},Oe=>{Oe(Oe.s=9)}]); \ No newline at end of file diff --git a/runtime.80849748c7e5ed39.js b/runtime.80849748c7e5ed39.js new file mode 100644 index 00000000..0b382506 --- /dev/null +++ b/runtime.80849748c7e5ed39.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={exports:{}};return v[e](t,t.exports,r),t.exports}r.m=v,e=[],r.O=(n,t,u,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[f]))?t.splice(f--,1):(d=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,u,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{59:"9ae312b4d49a8cbd",116:"3219df5b8c822b78",625:"56a9504825aa5f7b",635:"dcbb3b4752d0f79d"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="angular-architecture:";r.l=(t,u,o,i)=>{if(e[t])e[t].push(u);else{var a,d;if(void 0!==o)for(var f=document.getElementsByTagName("script"),c=0;c{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),d&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(u,o)=>{var i=r.o(e,u)?e[u]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=u){var a=new Promise((l,s)=>i=e[u]=[l,s]);o.push(i[2]=a);var d=r.p+r.u(u),f=new Error;r.l(d,l=>{if(r.o(e,u)&&(0!==(i=e[u])&&(e[u]=void 0),i)){var s=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;f.message="Loading chunk "+u+" failed.\n("+s+": "+p+")",f.name="ChunkLoadError",f.type=s,f.request=p,i[1](f)}},"chunk-"+u,u)}else e[u]=0},r.O.j=u=>0===e[u];var n=(u,o)=>{var f,c,[i,a,d]=o,l=0;if(i.some(p=>0!==e[p])){for(f in a)r.o(a,f)&&(r.m[f]=a[f]);if(d)var s=d(r)}for(u&&u(o);l{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={exports:{}};return v[e](t,t.exports,r),t.exports}r.m=v,e=[],r.O=(n,t,u,f)=>{if(!t){var a=1/0;for(i=0;i=f)&&Object.keys(r.O).every(b=>r.O[b](t[o]))?t.splice(o--,1):(c=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[t,u,f]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{59:"9ae312b4d49a8cbd",116:"3219df5b8c822b78",625:"89ff3cccb4f94035",635:"dcbb3b4752d0f79d"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="angular-architecture:";r.l=(t,u,f,i)=>{if(e[t])e[t].push(u);else{var a,c;if(void 0!==f)for(var o=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(u,f)=>{var i=r.o(e,u)?e[u]:void 0;if(0!==i)if(i)f.push(i[2]);else if(666!=u){var a=new Promise((l,s)=>i=e[u]=[l,s]);f.push(i[2]=a);var c=r.p+r.u(u),o=new Error;r.l(c,l=>{if(r.o(e,u)&&(0!==(i=e[u])&&(e[u]=void 0),i)){var s=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;o.message="Loading chunk "+u+" failed.\n("+s+": "+p+")",o.name="ChunkLoadError",o.type=s,o.request=p,i[1](o)}},"chunk-"+u,u)}else e[u]=0},r.O.j=u=>0===e[u];var n=(u,f)=>{var o,d,[i,a,c]=f,l=0;if(i.some(p=>0!==e[p])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(c)var s=c(r)}for(u&&u(f);l