1import{$ as e,$n as t,$r as n,Ar as r,B as i,Br as a,Dr as o,Dt as s,E as c,Er as l,F as u,I as d,Ir as f,It as p,J as m,Jr as h,Kr as g,L as ee,Lr as _,Mt as te,N as v,Nt as ne,Or as y,Ot as re,Pr as ie,Q as ae,Qn as b,Qr as oe,Qt as se,R as ce,Rr as x,Tt as le,U as ue,Ur as de,Wr as S,X as fe,Xr as C,Yr as pe,Zr as me,Zt as he,_r as w,_t as ge,ai as _e,b as ve,bt as ye,ci as T,cr as E,ct as be,dt as xe,er as Se,f as Ce,fr as D,ft as we,gt as Te,hr as Ee,ht as De,ii as Oe,ir as O,it as k,jr as ke,k as Ae,lt as je,mn as Me,mt as Ne,ni as Pe,nr as Fe,nt as Ie,or as Le,pr as Re,pt as ze,qr as Be,ri as Ve,rr as He,rt as Ue,si as We,sn as Ge,sr as Ke,st as qe,tr as Je,ur as Ye,ut as Xe,vr as Ze,vt as Qe,x as $e,xr as A,xt as et,yr as j,yt as tt,z as nt,zr as rt}from"./jsverse-transloco-DdNDrIr-.js";import{n as it,t as at}from"./finalize-CJQ7t_v9.js";import{S as ot,c as st,n as ct,s as lt,v as ut,x as dt,y as ft}from"./common-9wck4GeI.js";function pt(){return C(function(e,t){var n=null;e._refCount++;var r=h(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){n=null;return}var r=e._connection,i=n;n=null,r&&(!i||r===i)&&r.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var mt=function(e){_e(t,e);function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,pe(t)&&(r.lift=t.lift),r}return t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,e?.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new Pe;var n=this.getSubject();t.add(this.source.subscribe(h(n,void 0,function(){e._teardown(),n.complete()},function(t){e._teardown(),n.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=Pe.EMPTY)}return t},t.prototype.refCount=function(){return pt()(this)},t}(me);function ht(e,t){var n=Oe(e)?e:function(){return e},r=function(e){return e.error(n())};return new me(t?function(e){return t.schedule(r,0,e)}:r)}var gt=Ve(function(e){return function(){e(this),this.name=`EmptyError`,this.message=`no elements in sequence`}});function _t(e,t,n,r,i,o,s,c){var l=[],u=0,d=0,f=!1,p=function(){f&&!l.length&&!u&&t.complete()},m=function(e){return u<r?g(e):l.push(e)},g=function(e){o&&t.next(e),u++;var c=!1;a(n(e,d++)).subscribe(h(t,function(e){i?.(e),o?m(e):t.next(e)},function(){c=!0},void 0,function(){if(c)try{u--;for(var e=function(){var e=l.shift();s?rt(t,s,function(){return g(e)}):g(e)};l.length&&u<r;)e();p()}catch(e){t.error(e)}}))};return e.subscribe(h(t,m,function(){f=!0,p()})),function(){c?.()}}function M(e,t,n){return n===void 0&&(n=1/0),Oe(t)?M(function(n,r){return f(function(e,i){return t(n,e,r,i)})(a(e(n,r)))},n):(typeof t==`number`&&(n=t),C(function(t,r){return _t(t,r,e,n)}))}function vt(e){return e===void 0&&(e=1/0),M(n,e)}function yt(){return vt(1)}function bt(){var e=[...arguments];return yt()(x(e,de(e)))}function xt(e){return new me(function(t){a(e()).subscribe(t)})}function N(e,t){return C(function(n,r){var i=0;n.subscribe(h(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}function St(e,t,n,r,i){return function(a,o){var s=n,c=t,l=0;a.subscribe(h(o,function(t){var n=l++;c=s?e(c,t,n):(s=!0,t),r&&o.next(c)},i&&(function(){s&&o.next(c),o.complete()})))}}function P(e,t){return Oe(t)?M(e,t,1):M(e,1)}function Ct(e){return C(function(t,n){var r=!1;t.subscribe(h(n,function(e){r=!0,n.next(e)},function(){r||n.next(e),n.complete()}))})}function wt(e){return e===void 0&&(e=Tt),C(function(t,n){var r=!1;t.subscribe(h(n,function(e){r=!0,n.next(e)},function(){return r?n.complete():n.error(e())}))})}function Tt(){return new gt}function F(e,t){var i=arguments.length>=2;return function(a){return a.pipe(e?N(function(t,n){return e(t,n,a)}):n,r(1),i?Ct(t):wt(function(){return new gt}))}}function Et(e){return e<=0?function(){return S}:C(function(t,n){var r=[];t.subscribe(h(n,function(t){r.push(t),e<r.length&&r.shift()},function(){var e,t;try{for(var i=We(r),a=i.next();!a.done;a=i.next()){var o=a.value;n.next(o)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}n.complete()},void 0,function(){r=null}))})}function Dt(e,t){var r=arguments.length>=2;return function(i){return i.pipe(e?N(function(t,n){return e(t,n,i)}):n,Et(1),r?Ct(t):wt(function(){return new gt}))}}function Ot(e,t){return C(St(e,t,arguments.length>=2,!0))}function kt(){var e=[...arguments],t=de(e);return C(function(n,r){(t?bt(e,n,t):bt(e,n)).subscribe(r)})}var At=class{constructor(e){T(this,`_doc`,void 0),T(this,`manager`,void 0),this._doc=e}},jt=(()=>{var e;class t extends At{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n,r){return e.addEventListener(t,n,r),()=>this.removeEventListener(e,t,n,r)}removeEventListener(e,t,n,r){return e.removeEventListener(t,n,r)}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(b))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac})),t})(),Mt=new O(``),Nt=(()=>{var e;class t{constructor(e,t){T(this,`_zone`,void 0),T(this,`_plugins`,void 0),T(this,`_eventNameToPlugin`,new Map),this._zone=t,e.forEach(e
1=>{e.manager=this}),this._plugins=e.filter(e=>!(e instanceof jt)).slice().reverse();let n=e.find(e=>e instanceof jt);n&&this._plugins.push(n)}addEventListener(e,t,n,r){return this._findPluginFor(t).addEventListener(e,t,n,r)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(t=>t.supports(e)),!t)throw new E(5101,!1);return this._eventNameToPlugin.set(e,t),t}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(Mt),A(fe))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac})),t})(),Pt=`ng-app-id`;function Ft(e){for(let t of e)t.remove()}function It(e,t){let n=t.createElement(`style`);return n.textContent=e,n}function Lt(e,t,n,r){let i=e.head?.querySelectorAll(`style[${Pt}="${t}"],link[${Pt}="${t}"]`);if(i)for(let e of i)e.removeAttribute(Pt),e instanceof HTMLLinkElement?r.set(e.href.slice(e.href.lastIndexOf(`/`)+1),{usage:0,elements:[e]}):e.textContent&&n.set(e.textContent,{usage:0,elements:[e]})}function Rt(e,t){let n=t.createElement(`link`);return n.setAttribute(`rel`,`stylesheet`),n.setAttribute(`href`,e),n}var zt=(()=>{var e;class t{constructor(e,t,n,r={}){T(this,`doc`,void 0),T(this,`appId`,void 0),T(this,`nonce`,void 0),T(this,`inline`,new Map),T(this,`external`,new Map),T(this,`hosts`,new Set),this.doc=e,this.appId=t,this.nonce=n,Lt(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let t of e)this.addUsage(t,this.inline,It);t?.forEach(e=>this.addUsage(e,this.external,Rt))}removeStyles(e,t){for(let t of e)this.removeUsage(t,this.inline);t?.forEach(e=>this.removeUsage(e,this.external))}addUsage(e,t,n){let r=t.get(e);r?r.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(t=>this.addElement(t,n(e,this.doc)))})}removeUsage(e,t){let n=t.get(e);n&&(n.usage--,n.usage<=0&&(Ft(n.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Ft(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:n}]of this.inline)n.push(this.addElement(e,It(t,this.doc)));for(let[t,{elements:n}]of this.external)n.push(this.addElement(e,Rt(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute(`nonce`,this.nonce),e.appendChild(t)}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(b),A(d),A(ce,8),A(ae))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac})),t})(),Bt={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/Math/MathML`},Vt=/%COMP%/g,Ht=`%COMP%`,Ut=`_nghost-${Ht}`,Wt=`_ngcontent-${Ht}`,Gt=!0,Kt=new O(``,{providedIn:`root`,factory:()=>Gt});function qt(e){return Wt.replace(Vt,e)}function Jt(e){return Ut.replace(Vt,e)}function Yt(e,t){return t.map(t=>t.replace(Vt,e))}var Xt=(()=>{var e;class t{constructor(e,t,n,r,i,a,o,s=null,c=null){T(this,`eventManager`,void 0),T(this,`sharedStylesHost`,void 0),T(this,`appId`,void 0),T(this,`removeStylesOnCompDestroy`,void 0),T(this,`doc`,void 0),T(this,`platformId`,void 0),T(this,`ngZone`,void 0),T(this,`nonce`,void 0),T(this,`tracingService`,void 0),T(this,`rendererByCompId`,new Map),T(this,`defaultRenderer`,void 0),T(this,`platformIsServer`,void 0),this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=r,this.doc=i,this.platformId=a,this.ngZone=o,this.nonce=s,this.tracingService=c,this.platformIsServer=!1,this.defaultRenderer=new Zt(e,i,o,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let n=this.getOrCreateRenderer(e,t);return n instanceof tn?n.applyToHost(e):n instanceof en&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,r=n.get(t.id);if(!r){let i=this.doc,a=this.ngZone,o=this.eventManager,s=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,l=this.platformIsServer,u=this.tracingService;switch(t.encapsulation){case Xe.Emulated:r=new tn(o,s,t,this.appId,c,i,a,l,u);break;case Xe.ShadowDom:return new $t(o,s,e,t,i,a,this.nonce,l,u);default:r=new en(o,s,t,c,i,a,l,u);break}n.set(t.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(Nt),A(zt),A(d),A(Kt),A(b),A(ae),A(fe),A(ce),A(qe,8))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac})),t})(),Zt=class{constructor(e,t,n,r,i){T(this,`eventManager`,void 0),T(this,`doc`,void 0),T(this,`ngZone`,void 0),T(this,`platformIsServer`,void 0),T(this,`tracingService`,void 0),T(this,`data`,Object.create(null)),T(this,`throwOnSyntheticProps`,!0),T(this,`destroyNode`,null),this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}createElement(e,t){return t?this.doc.createElementNS(Bt[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(Qt(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(Qt(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e==`string`?this.doc.querySelector(e):e;if(!n)throw new E(-5104,!1);return t||(n.textContent=``),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+`:`+t;let i=Bt[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=Bt[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(Ue.DashCase|Ue.Important)?e.style.setProperty(t,n,r&Ue.Important?`important`:``):e.style[t]=n}removeStyle(e,t,n){n&Ue.DashCase?e.style.removeProperty(t):e.style[t]=``}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e==`string`&&(e=dt().getGlobalEventTarget(this.doc,e),!e))throw new E(5102,!1);let i=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t===`__ngUnwrap__`)return e;e(t)===!1&&t.preventDefault()}}};function Qt(e){return e.tagName===`TEMPLATE`&&e.content!==void 0}var $t=class extends Zt{constructor(e,t,n,r,i,a,o,s,c){super(e,i,a,s,c),T(this,`sharedStylesHost`,void 0),T(this,`hostEl`,void 0),T(this,`shadowRoot`,void 0),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:`open`}),this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=Yt(r.id,l);for(let e of l){let t=document.createElement(`style`);o&&t.setAttribute(`nonce`,o),t.textContent=e,this.shadowRoot.appendChild(t)}let u=r.getExternalStyles?.();if(u)for(let e of u){let t=Rt(e,i);o&&t.setAttribute(`nonce`,o),this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},en=class extends Zt{constructor(e,t,n,r,i,a,o,s,c){super(e,i,a,o,s),T(this,`sharedStylesHost`,void 0),T(this,`removeStylesOnCompDestroy`,void 0),T(this,`styles`,void 0),T(this,`styleUrls`,void 0),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let l=n.styles;this.styles=c?Yt(c,l):l,this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Ne.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},tn=class extends en{constructor(e,t,n,r,i,a,o,s,c){let l=r+`-`+n.id;super(e,t,n,i,a,o,s,c,l),T(this,`contentAttr`,void 0),T(this,`hostAttr`,void 0),this.contentAttr=qt(l),this.hostAttr=Jt(l)}
1applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,``)}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,``),n}},nn=class e extends ut{constructor(...e){super(...e),T(this,`supportsDOMEvents`,!0)}static makeCurrent(){ot(new e)}onAndCancel(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.remove()}createElement(e,t){return t=t||this.getDefaultDocument(),t.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument(`fakeTitle`)}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return t===`window`?window:t===`document`?e:t===`body`?e.body:null}getBaseHref(e){let t=an();return t==null?null:on(t)}resetBaseElement(){rn=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return st(document.cookie,e)}},rn=null;function an(){return rn=rn||document.head.querySelector(`base`),rn?rn.getAttribute(`href`):null}function on(e){return new URL(e,document.baseURI).pathname}var sn=(()=>{var e;class t{build(){return new XMLHttpRequest}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac})),t})(),cn=[`alt`,`control`,`meta`,`shift`],ln={"\b":`Backspace`," ":`Tab`,"�":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`},un={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},dn=(()=>{var e;class t extends At{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,r,i){let a=t.parseEventName(n),o=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>dt().onAndCancel(e,a.domEventName,o,i))}static parseEventName(e){let n=e.toLowerCase().split(`.`),r=n.shift();if(n.length===0||!(r===`keydown`||r===`keyup`))return null;let i=t._normalizeKey(n.pop()),a=``,o=n.indexOf(`code`);if(o>-1&&(n.splice(o,1),a=`code.`),cn.forEach(e=>{let t=n.indexOf(e);t>-1&&(n.splice(t,1),a+=e+`.`)}),a+=i,n.length!=0||i.length===0)return null;let s={};return s.domEventName=r,s.fullKey=a,s}static matchEventFullKeyCode(e,t){let n=ln[e.key]||e.key,r=``;return t.indexOf(`code.`)>-1&&(n=e.code,r=`code.`),n==null||!n?!1:(n=n.toLowerCase(),n===` `?n=`space`:n===`.`&&(n=`dot`),
1cn.forEach(t=>{if(t!==n){let n=un[t];n(e)&&(r+=t+`.`)}}),r+=n,r===t)}static eventCallback(e,n,r){return i=>{t.matchEventFullKeyCode(i,e)&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){return e===`esc`?`escape`:e}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(b))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac})),t})();function fn(e,t,n){return $e({rootComponent:e,platformRef:n?.platformRef,...pn(t)})}function pn(e){return{appProviders:[...vn,...e?.providers??[]],platformProviders:_n}}function mn(){nn.makeCurrent()}function hn(){return new Je}function gn(){return te(document),document}var _n=[{provide:ae,useValue:ct},{provide:e,useValue:mn,multi:!0},{provide:b,useFactory:gn}],vn=[{provide:Fe,useValue:`root`},{provide:Je,useFactory:hn},{provide:Mt,useClass:jt,multi:!0,deps:[b]},{provide:Mt,useClass:dn,multi:!0,deps:[b]},Xt,zt,Nt,{provide:Ie,useExisting:Xt},{provide:lt,useClass:sn},[]],yn=class{},bn=class{},I=class e{constructor(e){T(this,`headers`,void 0),T(this,`normalizedNames`,new Map),T(this,`lazyInit`,void 0),T(this,`lazyUpdate`,null),e?typeof e==`string`?this.lazyInit=()=>{this.headers=new Map,e.split(` 2`).forEach(e=>{let t=e.indexOf(`:`);if(t>0){let n=e.slice(0,t),r=e.slice(t+1).trim();this.addHeaderEntry(n,r)}})}:typeof Headers<`u`&&e instanceof Headers?(this.headers=new Map,e.forEach((e,t)=>{this.addHeaderEntry(t,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([e,t])=>{this.setHeaderEntries(e,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:`a`})}set(e,t){return this.clone({name:e,value:t,op:`s`})}delete(e,t){return this.clone({name:e,value:t,op:`d`})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(e){let t=e.name.toLowerCase();switch(e.op){case`a`:case`s`:let n=e.value;if(typeof n==`string`&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,t);let r=(e.op===`a`?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case`d`:let i=e.value;if(!i)this.headers.delete(t),this.normalizedNames.delete(t);else{let e=this.headers.get(t);if(!e)return;e=e.filter(e=>i.indexOf(e)===-1),e.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}break}}addHeaderEntry(e,t){let n=e.toLowerCase();this.maybeSetNormalizedName(e,n),this.headers.has(n)?this.headers.get(n).push(t):this.headers.set(n,[t])}setHeaderEntries(e,t){let n=(Array.isArray(t)?t:[t]).map(e=>e.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}},xn=class{encodeKey(e){return Tn(e)}encodeValue(e){return Tn(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Sn(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,``).split(`&`).forEach(e=>{let r=e.indexOf(`=`),[i,a]=r==-1?[t.decodeKey(e),``]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],o=n.get(i)||[];o.push(a),n.set(i,o)}),n}var Cn=/%(\d[a-f0-9])/gi,wn={40:`@`,"3A":`:`,24:`$`,"2C":`,`,"3B":`;`,"3D":`=`,"3F":`?`,"2F":`/`};function Tn(e){return encodeURIComponent(e).replace(Cn,(e,t)=>wn[t]??e)}function En(e){return`${e}`}var L=class e{constructor(e={}){if(T(this,`map`,void 0),T(this,`encoder`,void 0),T(this,`updates`,null),T(this,`cloneFrom`,null),this.encoder=e.encoder||new xn,e.fromString){if(e.fromObject)throw new E(2805,!1);this.map=Sn(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{let n=e.fromObject[t],r=Array.isArray(n)?n.map(En):[En(n)];this.map.set(t,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}
2keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:`a`})}appendAll(e){let t=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(e=>{t.push({param:n,value:e,op:`a`})}):t.push({param:n,value:r,op:`a`})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:`s`})}delete(e,t){return this.clone({param:e,value:t,op:`d`})}toString(){return this.init(),this.keys().map(e=>{let t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+`=`+this.encoder.encodeValue(e)).join(`&`)}).filter(e=>e!==``).join(`&`)}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case`a`:case`s`:let t=(e.op===`a`?this.map.get(e.param):void 0)||[];t.push(En(e.value)),this.map.set(e.param,t);break;case`d`:if(e.value!==void 0){let t=this.map.get(e.param)||[],n=t.indexOf(En(e.value));n!==-1&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}},Dn=class{constructor(){T(this,`map`,new Map)}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function On(e){switch(e){case`DELETE`:case`GET`:case`HEAD`:case`OPTIONS`:case`JSONP`:return!1;default:return!0}}function kn(e){return typeof ArrayBuffer<`u`&&e instanceof ArrayBuffer}function An(e){return typeof Blob<`u`&&e instanceof Blob}function jn(e){return typeof FormData<`u`&&e instanceof FormData}function Mn(e){return typeof URLSearchParams<`u`&&e instanceof URLSearchParams}var Nn=`Content-Type`,Pn=`Accept`,Fn=`X-Request-URL`,In=`text/plain`,Ln=`application/json`,Rn=`${Ln}, ${In}, */*`,zn=class e{constructor(e,t,n,r){T(this,`url`,void 0),T(this,`body`,null),T(this,`headers`,void 0),T(this,`context`,void 0),T(this,`reportProgress`,!1),T(this,`withCredentials`,!1),T(this,`credentials`,void 0),T(this,`keepalive`,!1),T(this,`cache`,void 0),T(this,`priority`,void 0),T(this,`mode`,void 0),T(this,`redirect`,void 0),T(this,`referrer`,void 0),T(this,`integrity`,void 0),T(this,`responseType`,`json`),T(this,`method`,void 0),T(this,`params`,void 0),T(this,`urlWithParams`,void 0),T(this,`transferCache`,void 0),T(this,`timeout`,void 0),this.url=t,this.method=e.toUpperCase();let i;if(On(this.method)||r?(this.body=n===void 0?null:n,i=r):i=n,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout==`number`){if(i.timeout<1||!Number.isInteger(i.timeout))throw new E(2822,``);this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer&&(this.referrer=i.referrer),this.transferCache=i.transferCache}if(this.headers??(this.headers=new I),this.context??(this.context=new Dn),!this.params)this.params=new L,this.urlWithParams=t;else{let e=this.params.toString();if(e.length===0)this.urlWithParams=t;else{let n=t.indexOf(`?`);this.urlWithParams=t+(n===-1?`?`:n<t.length-1?`&`:``)+e}}}serializeBody(){return this.body===null?null:typeof this.body==`string`||kn(this.body)||An(this.body)||jn(this.body)||Mn(this.body)?this.body:this.body instanceof L?this.body.toString():typeof this.body==`object`||typeof this.body==`boolean`||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||jn(this.body)?null:An(this.body)?this.body.type||null:kn(this.body)?null:typeof this.body==`string`?In:this.body instanceof L?`application/x-www-form-urlencoded;charset=UTF-8`:typeof this.body==`object`||typeof this.body==`number`||typeof this.body==`boolean`?Ln:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,a=t.keepalive??this.keepalive,o=t.priority||this.priority,s=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,d=t.referrer||this.referrer,f=t.integrity||this.integrity,p=t.transferCache??this.transferCache,m=t.timeout??this.timeout,h=t.body===void 0?this.body:t.body,g=t.withCredentials??this.withCredentials,ee=t.reportProgress??this.reportProgress,_=t.headers||this.headers,te=t.params||this.params,v=t.context??this.context;return t.setHeaders!==void 0&&(_=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),_)),t.setParams&&(te=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),te)),new e(n,r,h,{params:te,headers:_,context:v,reportProgress:ee,responseType:i,withCredentials:g,transferCache:p,keepalive:a,cache:s,priority:o,timeout:m,mode:c,redirect:l,credentials:u,referrer:d,integrity:f})}}
2,R=function(e){return e[e.Sent=0]=`Sent`,e[e.UploadProgress=1]=`UploadProgress`,e[e.ResponseHeader=2]=`ResponseHeader`,e[e.DownloadProgress=3]=`DownloadProgress`,e[e.Response=4]=`Response`,e[e.User=5]=`User`,e}(R||{}),Bn=class{constructor(e,t=200,n=`OK`){T(this,`headers`,void 0),T(this,`status`,void 0),T(this,`statusText`,void 0),T(this,`url`,void 0),T(this,`ok`,void 0),T(this,`type`,void 0),T(this,`redirected`,void 0),this.headers=e.headers||new I,this.status=e.status===void 0?t:e.status,this.statusText=e.statusText||n,this.url=e.url||null,this.redirected=e.redirected,this.ok=this.status>=200&&this.status<300}},Vn=class e extends Bn{constructor(e={}){super(e),T(this,`type`,R.ResponseHeader)}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status===void 0?this.status:t.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Hn=class e extends Bn{constructor(e={}){super(e),T(this,`body`,void 0),T(this,`type`,R.Response),this.body=e.body===void 0?null:e.body}clone(t={}){return new e({body:t.body===void 0?this.body:t.body,headers:t.headers||this.headers,status:t.status===void 0?this.status:t.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},z=class extends Bn{constructor(e){super(e,0,`Unknown Error`),T(this,`name`,`HttpErrorResponse`),T(this,`message`,void 0),T(this,`error`,void 0),T(this,`ok`,!1),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||`(unknown url)`}`:this.message=`Http failure response for ${e.url||`(unknown url)`}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Un=200,Wn=204;function Gn(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer}}var Kn=(()=>{var e;class t{constructor(e){T(this,`handler`,void 0),this.handler=e}request(e,t,n={}){let r;if(e instanceof zn)r=e;else{let i;i=n.headers instanceof I?n.headers:new I(n.headers);let a;n.params&&(a=n.params instanceof L?n.params:new L({fromObject:n.params})),r=new zn(e,t,n.body===void 0?null:n.body,{headers:i,context:n.context,params:a,reportProgress:n.reportProgress,responseType:n.responseType||`json`,withCredentials:n.withCredentials,transferCache:n.transferCache,keepalive:n.keepalive,priority:n.priority,cache:n.cache,mode:n.mode,redirect:n.redirect,credentials:n.credentials,referrer:n.referrer,integrity:n.integrity,timeout:n.timeout})}let i=_(r).pipe(P(e=>this.handler.handle(e)));if(e instanceof zn||n.observe===`events`)return i;let a=i.pipe(N(e=>e instanceof Hn));switch(n.observe||`body`){case`body`:switch(r.responseType){case`arraybuffer`:return a.pipe(f(e=>{if(e.body!==null&&!(e.body instanceof ArrayBuffer))throw new E(2806,!1);return e.body}));case`blob`:return a.pipe(f(e=>{if(e.body!==null&&!(e.body instanceof Blob))throw new E(2807,!1);return e.body}));case`text`:return a.pipe(f(e=>{if(e.body!==null&&typeof e.body!=`string`)throw new E(2808,!1);return e.body}));default:return a.pipe(f(e=>e.body))}case`response`:return a;default:throw new E(2809,!1)}}delete(e,t={}){return this.request(`DELETE`,e,t)}get(e,t={}){return this.request(`GET`,e,t)}head(e,t={}){return this.request(`HEAD`,e,t)}jsonp(e,t){return this.request(`JSONP`,e,{params:new L().append(t,`JSONP_CALLBACK`),observe:`body`,responseType:`json`})}options(e,t={}){return this.request(`OPTIONS`,e,t)}patch(e,t,n={}){return this.request(`PATCH`,e,Gn(n,t))}post(e,t,n={}){return this.request(`POST`,e,Gn(n,t))}put(e,t,n={}){return this.request(`PUT`,e,Gn(n,t))}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(yn))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac})),t})(),qn=/^\)\]\}',?\n/;function Jn(e){if(e.url)return e.url;let t=Fn.toLocaleLowerCase();return e.headers.get(t)}var Yn=new O(``),Xn=(()=>{var e;class n{constructor(){T(this,`fetchImpl`,D(Zn,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e))),T(this,`ngZone`,D(fe)),T(this,`destroyRef`,D(t))}handle(e){return new me(t=>{let n=new AbortController;this.doRequest(e,n.signal,t).then(Qn,e=>t.error(new z({error:e})));let r;return e.timeout&&(r=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{n.signal.aborted||n.abort(new DOMException(`signal timed out`,`TimeoutError`))},e.timeout))),()=>{r!==void 0&&clearTimeout(r),n.abort()}})}async doRequest(e,t,n){let r=this.createRequestInit(e),i;try{let a=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,{signal:t,...r}));$n(a),n.next({type:R.Sent}),i=await a}catch(t){n.error(new z({error:t,status:t.status??0,statusText:t.statusText,url:e.urlWithParams,headers:t.headers}));return}let a=new I(i.headers),o=i.statusText,s=Jn(i)??e.urlWithParams,c=i.status,l=null;if(e.reportProgress&&n.next(new Vn({headers:a,status:c,statusText:o,url:s})),i.body){let t=i.headers.get(`content-length`),r=[],a=i.body.getReader(),o=0,s,u,d=typeof Zone<`u`&&Zone.current,f=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await a.cancel(),f=!0;break}let{done:i,value:c}=await a.read();if(i)break;if(r.push(c),o+=c.length,e.reportProgress){u=e.responseType===`text`?(u??``)+(s??(s=new TextDecoder)).decode(c,{stream:!0}):void 0;let r=()=>n.next({type:R.DownloadProgress,total:t?+t:void 0,loaded:o,partialText:u});d?d.run(r):r()}}}),f){n.complete();return}let p=this.concatChunks(r,o);try{let t=i.headers.get(Nn)??``;l=this.parseBody(e,p,t,c)}catch(t){n.error(new z({error:t,headers:new I(i.headers),status:i.status,statusText:i.statusText,url:Jn(i)??e.urlWithParams}));return}}c===0&&(c=l?Un:0);let u=c>=200&&c<300,d=i.redirected;u?(n.next(new Hn({body:l,headers:a,status:c,statusText:o,url:s,redirected:d})),n.complete()):n.error(new z({error:l,headers:a,status:c,statusText:o,url:s,redirected:d}))}parseBody(e,t,n,r){switch(e.responseType){case`json`:let e=new TextDecoder().decode(t).replace(qn,``);if(e===``)return null;try{return JSON.parse(e)}catch(t){if(r<200||r>=300)return e;throw t}case`text`:return new TextDecoder().decode(t);case`blob`:return new Blob([t],{type:n});case`arraybuffer`:return t.buffer}}createRequestInit(e){let t={},n;if(n=e.credentials,e.withCredentials&&(n=`include`),e.headers.forEac
2h((e,n)=>t[e]=n.join(`,`)),e.headers.has(Pn)||(t[Pn]=Rn),!e.headers.has(Nn)){let n=e.detectContentTypeHeader();n!==null&&(t[Nn]=n)}return{body:e.serializeBody(),method:e.method,headers:t,credentials:n,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}}concatChunks(e,t){let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}}return e=n,T(n,`ɵfac`,function(t){return new(t||e)}),T(n,`ɵprov`,j({token:e,factory:e.ɵfac})),n})(),Zn=class{};function Qn(){}function $n(e){e.then(Qn,Qn)}function er(e,t){return t(e)}function tr(e,t){return(n,r)=>t.intercept(n,{handle:t=>e(t,r)})}function nr(e,t,n){return(r,i)=>w(n,()=>t(r,t=>e(t,i)))}var rr=new O(``),ir=new O(``),ar=new O(``),or=new O(``,{providedIn:`root`,factory:()=>!0});function sr(){let e=null;return(t,n)=>{e===null&&(e=(D(rr,{optional:!0})??[]).reduceRight(tr,er));let r=D(Le);if(D(or)){let i=r.add();return e(t,n).pipe(at(i))}else return e(t,n)}}var cr=(()=>{var e;class t extends yn{constructor(e,t){super(),T(this,`backend`,void 0),T(this,`injector`,void 0),T(this,`chain`,null),T(this,`pendingTasks`,D(Le)),T(this,`contributeToStability`,D(or)),this.backend=e,this.injector=t}handle(e){if(this.chain===null&&(this.chain=Array.from(new Set([...this.injector.get(ir),...this.injector.get(ar,[])])).reduceRight((e,t)=>nr(e,t,this.injector),er)),this.contributeToStability){let t=this.pendingTasks.add();return this.chain(e,e=>this.backend.handle(e)).pipe(at(t))}else return this.chain(e,e=>this.backend.handle(e))}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(bn),A(Se))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac})),t})(),lr=/^\)\]\}',?\n/,ur=RegExp(`^${Fn}:`,`m`);function dr(e){return`responseURL`in e&&e.responseURL?e.responseURL:ur.test(e.getAllResponseHeaders())?e.getResponseHeader(Fn):null}var fr=(()=>{var e;class t{constructor(e){T(this,`xhrFactory`,void 0),this.xhrFactory=e}handle(e){if(e.method===`JSONP`)throw new E(-2800,!1);let t=this.xhrFactory;return _(null).pipe(y(()=>new me(n=>{let r=t.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((e,t)=>r.setRequestHeader(e,t.join(`,`))),e.headers.has(Pn)||r.setRequestHeader(Pn,Rn),!e.headers.has(Nn)){let t=e.detectContentTypeHeader();t!==null&&r.setRequestHeader(Nn,t)}if(e.timeout&&(r.timeout=e.timeout),e.responseType){let t=e.responseType.toLowerCase();r.responseType=t===`json`?`text`:t}let i=e.serializeBody(),a=null,o=()=>{if(a!==null)return a;let t=r.statusText||`OK`,n=new I(r.getAllResponseHeaders()),i=dr(r)||e.url;return a=new Vn({headers:n,status:r.status,statusText:t,url:i}),a},s=()=>{let{headers:t,status:i,statusText:a,url:s}=o(),c=null;i!==Wn&&(c=r.response===void 0?r.responseText:r.response),i===0&&(i=c?Un:0);let l=i>=200&&i<300;if(e.responseType===`json`&&typeof c==`string`){let e=c;c=c.replace(lr,``);try{c=c===``?null:JSON.parse(c)}catch(t){c=e,l&&(l=!1,c={error:t,text:c})}}l?(n.next(new Hn({body:c,headers:t,status:i,statusText:a,url:s||void 0})),n.complete()):n.error(new z({error:c,headers:t,status:i,statusText:a,url:s||void 0}))},c=e=>{let{url:t}=o(),i=new z({error:e,status:r.status||0,statusText:r.statusText||`Unknown Error`,url:t||void 0});n.error(i)},l=c;e.timeout&&(l=e=>{let{url:t}=o(),i=new z({error:new DOMException(`Request timed out`,`TimeoutError`),status:r.status||0,statusText:r.statusText||`Request timeout`,url:t||void 0});n.error(i)});let u=!1,d=t=>{u||(n.next(o()),u=!0);let i={type:R.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.responseType===`text`&&r.responseText&&(i.partialText=r.responseText),n.next(i)},f=e=>{let t={type:R.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return r.addEventListener(`load`,s),r.addEventListener(`error`,c),r.addEventListener(`timeout`,l),r.addEventListener(`abort`,c),e.reportProgress&&(r.addEventListener(`progress`,d),i!==null&&r.upload&&r.upload.addEventListener(`progress`,f)),r.send(i),n.next({type:R.Sent}),()=>{r.removeEventListener(`error`,c),r.removeEventListener(`abort`,c),r.removeEventListener(`load`,s),r.removeEventListener(`timeout`,l),e.reportProgress&&(r.removeEventListener(`progress`,d),i!==null&&r.upload&&r.upload.removeEventListener(`progress`,f)),r.readyState!==r.DONE&&r.abort()}})))}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(lt))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac})),t}
2)(),pr=new O(``),mr=`XSRF-TOKEN`,hr=new O(``,{providedIn:`root`,factory:()=>mr}),gr=`X-XSRF-TOKEN`,_r=new O(``,{providedIn:`root`,factory:()=>gr}),vr=class{},yr=(()=>{var e;class t{constructor(e,t){T(this,`doc`,void 0),T(this,`cookieName`,void 0),T(this,`lastCookieString`,``),T(this,`lastToken`,null),T(this,`parseCount`,0),this.doc=e,this.cookieName=t}getToken(){let e=this.doc.cookie||``;return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=st(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(b),A(hr))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac})),t})();function br(e,t){let n=e.url.toLowerCase();if(!D(pr)||e.method===`GET`||e.method===`HEAD`||n.startsWith(`http://`)||n.startsWith(`https://`))return t(e);let r=D(vr).getToken(),i=D(_r);return r!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var xr=function(e){return e[e.Interceptors=0]=`Interceptors`,e[e.LegacyInterceptors=1]=`LegacyInterceptors`,e[e.CustomXsrfConfiguration=2]=`CustomXsrfConfiguration`,e[e.NoXsrfProtection=3]=`NoXsrfProtection`,e[e.JsonpSupport=4]=`JsonpSupport`,e[e.RequestsMadeViaParent=5]=`RequestsMadeViaParent`,e[e.Fetch=6]=`Fetch`,e}(xr||{});function Sr(e,t){return{ɵkind:e,ɵproviders:t}}function Cr(...e){let t=[Kn,fr,cr,{provide:yn,useExisting:cr},{provide:bn,useFactory:()=>D(Yn,{optional:!0})??D(fr)},{provide:ir,useValue:br,multi:!0},{provide:pr,useValue:!0},{provide:vr,useClass:yr}];for(let n of e)t.push(...n.ɵproviders);return Ee(t)}function wr(e){return Sr(xr.Interceptors,e.map(e=>({provide:ir,useValue:e,multi:!0})))}var Tr=new O(``);function Er(){return Sr(xr.LegacyInterceptors,[{provide:Tr,useFactory:sr},{provide:ir,useExisting:Tr,multi:!0}])}function Dr(){return Sr(xr.Fetch,[Xn,{provide:Yn,useExisting:Xn},{provide:bn,useExisting:Xn}])}var Or=new O(``),kr=`b`,Ar=`h`,jr=`s`,Mr=`st`,Nr=`u`,Pr=`rt`,Fr=new O(``),Ir=[`GET`,`HEAD`];function Lr(e,t){let{isCacheActive:n,...r}=D(Fr),{transferCache:i,method:a}=e;if(!n||i===!1||a===`POST`&&!r.includePostRequests&&!i||a!==`POST`&&!Ir.includes(a)||!r.includeRequestsWithAuthHeaders&&Rr(e)||r.filter?.(e)===!1)return t(e);let o=D(be);if(D(Or,{optional:!0}))throw new E(2803,!1);let s=e.url,c=Br(e,s),l=o.get(c,null);if(r.includeHeaders,typeof i==`object`&&i.includeHeaders&&i.includeHeaders,l){let{[kr]:e,[Pr]:t,[Ar]:n,[jr]:r,[Mr]:i,[Nr]:a}=l,o=e;switch(t){case`arraybuffer`:o=new TextEncoder().encode(e).buffer;break;case`blob`:o=new Blob([e]);break}let s=new I(n);return _(new Hn({body:o,headers:s,status:r,statusText:i,url:a}))}return t(e)}function Rr(e){return e.headers.has(`authorization`)||e.headers.has(`proxy-authorization`)}function zr(e){return[...e.keys()].sort().map(t=>`${t}=${e.getAll(t)}`).join(`&`)}function Br(e,t){let{params:n,method:r,responseType:i}=e,a=zr(n),o=e.serializeBody();return o instanceof URLSearchParams?o=zr(o):typeof o!=`string`&&(o=``),s(Vr([r,i,t,o,a].join(`|`)))}function Vr(e){let t=0;for(let n of e)t=Math.imul(31,t)+n.charCodeAt(0)<<0;return t+=2147483648,t.toString()}function Hr(e){return[{provide:Fr,useFactory:()=>(re(`NgHttpTransferCache`),{isCacheActive:!0,...e})},{provide:ar,useValue:Lr,multi:!0},{provide:u,multi:!0,useFactory:()=>{let e=D(ee),t=D(Fr);return()=>{e.whenStable().then(()=>{t.isCacheActive=!1})}}}]}var Ur=(()=>{var e;class t{constructor(e){T(this,`_doc`,void 0),T(this,`_dom`,void 0),this._doc=e,this._dom=dt()}addTag(e,t=!1){return e?this._getOrCreateElement(e,t):null}addTags(e,t=!1){return e?e.reduce((e,n)=>(n&&e.push(this._getOrCreateElement(n,t)),e),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let t=this._doc.querySelectorAll(`meta[${e}]`);return t?[].slice.call(t):[]}updateTag(e,t){if(!e)return null;t=t||this._parseSelector(e);let n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,t=!1){if(!t){let t=this._parseSelector(e),n=this.getTags(t).filter(t=>this._containsAttributes(e,t))[0];if(n!==void 0)return n}let n=this._dom.createElement(`meta`);return this._setMetaElementAttributes(e,n),this._doc.getElementsByTagName(`head`)[0].appendChild(n),n}_setMetaElementAttributes(e,t){return Object.keys(e).forEach(n=>t.setAttribute(this._getMetaKeyMap(n),e[n])),t}_parseSelector(e){let t=e.name?`name`:`property`;return`${t}="${e[t]}"`}_containsAttributes(e,t){return Object.keys(e).every(n=>t.getAttribute(this._getMetaKeyMap(n))===e[n])}_getMetaKeyMap(e){return Wr[e]||e}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(b))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac,providedIn:`root`})),t})(),Wr={httpEquiv:`http-equiv`},Gr=(()=>{var e;class t{constructor(e){T(this,`_doc`,void 0),this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||``}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(b))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac,providedIn:`root`})),t})(),Kr=(()=>{var e;class t{}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵprov`,j({token:e,factory:function(t){let n=null;return n=t?new(t||e):A(qr),n},providedIn:`root`})),t})(),qr=(()=>{var e;class t extends Kr{constructor(e){super(),T(this,`_doc`,void 0),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case k.NONE:return t;case k.HTML:return De(t,`HTML`)?ne(t):xe(this._doc,String(t)).toString();case k.STYLE:return De(t,`Style`)?ne(t):t;case k.SCRIPT:if(De(t,`Script`))return ne(t);throw new E(5200,!1);case k.URL:return De(t,`URL`)?ne(t):we(String(t));case k.RESOURCE_URL:if(De(t,`ResourceURL`))return ne(t);throw new E(5201,!1);default:throw new E(5202,!1)}}bypassSecurityTrustHtml(e){return Te(e)}bypassSecurityTrustStyle(e){return tt(e)}bypassSecurityTrustScript(e){return Qe(e)}bypassSecurityTrustUrl(e){return ye(e)}bypassSecurityTrustResourceUrl(e){return ge(e)}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(b))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac,providedIn:`root`})),t})(),Jr=function(e){return e[e.NoHttpTransferCache=0]=`NoHttpTransferCache`,e[e.HttpTransferCacheOptions=1]=`HttpTransferCacheOptions`,e[e.I18nSupport=2]=`I18nSupport`,e[e.EventReplay=3]=`EventReplay`,e[e.IncrementalHydration=4]=`IncrementalHydration`,e}(Jr||{});function Yr(...e){let t=[],n=new Set;for(let{ɵproviders:r,ɵkind:i}of e)n.add(i),r.length&&t.push(r);let r=n.has(Jr.HttpTransferCacheOptions);return Ee([[],[],Ae(),n.has(Jr.NoHttpTransferCache)||r?[]:Hr({}),t])}var B=`primary`,Xr=Symbol(`RouteTitle`),Zr=class{constructor(e){T(this,`params`,void 0),this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){let t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function V(e){return new Zr(e)}function Qr(e,t,n){let r=n.path.split(`/`);if(r.length>e.length||n.pathMatch===`full`&&(t.hasChildren()||r.length<e.length))return null;let i={};for(let t=0;t<r.length;t++){let n=r[t],a=e[t];if(n[0]===`:`)i[n.substring(1)]=a;else if(n!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function $r(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!H(e[n],t[n]))return!1;return!0}function H(e,t){let n=e?ei(e):void 0,r=t?ei(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let r=0;r<n.length;r++)if(i=n[r],!ti(e[i],t[i]))return!1;return!0}function ei(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function ti(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((e,t)=>r[t]===e)}else return e===t}function ni(e){return e.length>0?e[e.length-1]:null}function U(e){return it(e)?e:le(e)?x(Promise.resolve(e)):_(e)}var ri={exact:si,subset:li},ii={exact:oi,subset:ci,ignored:()=>!0};function ai(e,t,n){return ri[n.paths](e.root,t.root,n.matrixParams)&&ii[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment===`exact`&&e.fragment!==t.fragment)}function oi(e,t){return H(e,t)}function si(e,t,n){if(!K(e.segments,t.segments)||!di(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!si(e.children[r],t.children[r],n))return!1;return!0}function ci(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>ti(e[n],t[n]))}
2function li(e,t,n){return ui(e,t,t.segments,n)}function ui(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!K(i,n)||t.hasChildren()||!di(i,n,r))}else if(e.segments.length===n.length){if(!K(e.segments,n)||!di(e.segments,n,r))return!1;for(let n in t.children)if(!e.children[n]||!li(e.children[n],t.children[n],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),a=n.slice(e.segments.length);return!K(e.segments,i)||!di(e.segments,i,r)||!e.children.primary?!1:ui(e.children[B],t,a,r)}}function di(e,t,n){return t.every((t,r)=>ii[n](e[r].parameters,t.parameters))}var W=class{constructor(e=new G([],{}),t={},n=null){T(this,`root`,void 0),T(this,`queryParams`,void 0),T(this,`fragment`,void 0),T(this,`_queryParamMap`,void 0),this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=V(this.queryParams)),this._queryParamMap}toString(){return _i.serialize(this)}},G=class{constructor(e,t){T(this,`segments`,void 0),T(this,`children`,void 0),T(this,`parent`,null),this.segments=e,this.children=t,Object.values(t).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vi(this)}},fi=class{constructor(e,t){T(this,`path`,void 0),T(this,`parameters`,void 0),T(this,`_parameterMap`,void 0),this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap??(this._parameterMap=V(this.parameters)),this._parameterMap}toString(){return Ei(this)}};function pi(e,t){return K(e,t)&&e.every((e,n)=>H(e.parameters,t[n].parameters))}function K(e,t){return e.length===t.length?e.every((e,n)=>e.path===t[n].path):!1}function mi(e,t){let n=[];return Object.entries(e.children).forEach(([e,r])=>{e===`primary`&&(n=n.concat(t(r,e)))}),Object.entries(e.children).forEach(([e,r])=>{e!==`primary`&&(n=n.concat(t(r,e)))}),n}var hi=(()=>{var e;class t{}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵprov`,j({token:e,factory:()=>new gi,providedIn:`root`})),t})(),gi=class{parse(e){let t=new Li(e);return new W(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`${`/${yi(e.root,!0)}`}${Oi(e.queryParams)}${typeof e.fragment==`string`?`#${Si(e.fragment)}`:``}`}},_i=new gi;function vi(e){return e.segments.map(e=>Ei(e)).join(`/`)}function yi(e,t){if(!e.hasChildren())return vi(e);if(t){let t=e.children.primary?yi(e.children[B],!1):``,n=[];return Object.entries(e.children).forEach(([e,t])=>{e!==`primary`&&n.push(`${e}:${yi(t,!1)}`)}),n.length>0?`${t}(${n.join(`//`)})`:t}else{let t=mi(e,(t,n)=>n===`primary`?[yi(e.children[B],!1)]:[`${n}:${yi(t,!1)}`]);return Object.keys(e.children).length===1&&e.children.primary!=null?`${vi(e)}/${t[0]}`:`${vi(e)}/(${t.join(`//`)})`}}function bi(e){return encodeURIComponent(e).replace(/%40/g,`@`).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`)}function xi(e){return bi(e).replace(/%3B/gi,`;`)}function Si(e){return encodeURI(e)}function Ci(e){return bi(e).replace(/\(/g,`%28`).replace(/\)/g,`%29`).replace(/%26/gi,`&`)}function wi(e){return decodeURIComponent(e)}function Ti(e){return wi(e.replace(/\+/g,`%20`))}function Ei(e){return`${Ci(e.path)}${Di(e.parameters)}`}function Di(e){return Object.entries(e).map(([e,t])=>`;${Ci(e)}=${Ci(t)}`).join(``)}function Oi(e){let t=Object.entries(e).map(([e,t])=>Array.isArray(t)?t.map(t=>`${xi(e)}=${xi(t)}`).join(`&`):`${xi(e)}=${xi(t)}`).filter(e=>e);return t.length?`?${t.join(`&`)}`:``}var ki=/^[^\/()?;#]+/;function Ai(e){let t=e.match(ki);return t?t[0]:``}var ji=/^[^\/()?;=#]+/;function Mi(e){let t=e.match(ji);return t?t[0]:``}var Ni=/^[^=?&#]+/;function Pi(e){let t=e.match(Ni);return t?t[0]:``}var Fi=/^[^&#]+/;function Ii(e){let t=e.match(Fi);return t?t[0]:``}var Li=class{constructor(e){T(this,`url`,void 0),T(this,`remaining`,void 0),this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional(`/`),this.remaining===``||this.peekStartsWith(`?`)||this.peekStartsWith(`#`)?new G([],{}):new G([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional(`?`))do this.parseQueryParam(e);while(this.consumeOptional(`&`));return e}
2parseFragment(){return this.consumeOptional(`#`)?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining===``)return{};this.consumeOptional(`/`);let e=[];for(this.peekStartsWith(`(`)||e.push(this.parseSegment());this.peekStartsWith(`/`)&&!this.peekStartsWith(`//`)&&!this.peekStartsWith(`/(`);)this.capture(`/`),e.push(this.parseSegment());let t={};this.peekStartsWith(`/(`)&&(this.capture(`/`),t=this.parseParens(!0));let n={};return this.peekStartsWith(`(`)&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[B]=new G(e,t)),n}parseSegment(){let e=Ai(this.remaining);if(e===``&&this.peekStartsWith(`;`))throw new E(4009,!1);return this.capture(e),new fi(wi(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(`;`);)this.parseParam(e);return e}parseParam(e){let t=Mi(this.remaining);if(!t)return;this.capture(t);let n=``;if(this.consumeOptional(`=`)){let e=Ai(this.remaining);e&&(n=e,this.capture(n))}e[wi(t)]=wi(n)}parseQueryParam(e){let t=Pi(this.remaining);if(!t)return;this.capture(t);let n=``;if(this.consumeOptional(`=`)){let e=Ii(this.remaining);e&&(n=e,this.capture(n))}let r=Ti(t),i=Ti(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(i)}else e[r]=i}parseParens(e){let t={};for(this.capture(`(`);!this.consumeOptional(`)`)&&this.remaining.length>0;){let n=Ai(this.remaining),r=this.remaining[n.length];if(r!==`/`&&r!==`)`&&r!==`;`)throw new E(4010,!1);let i;n.indexOf(`:`)>-1?(i=n.slice(0,n.indexOf(`:`)),this.capture(i),this.capture(`:`)):e&&(i=B);let a=this.parseChildren();t[i??`primary`]=Object.keys(a).length===1&&a.primary?a[B]:new G([],a),this.consumeOptional(`//`)}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new E(4011,!1)}};function Ri(e){return e.segments.length>0?new G([],{[B]:e}):e}function zi(e){let t={};for(let[n,r]of Object.entries(e.children)){let e=zi(r);if(n===`primary`&&e.segments.length===0&&e.hasChildren())for(let[n,r]of Object.entries(e.children))t[n]=r;else (e.segments.length>0||e.hasChildren())&&(t[n]=e)}return Bi(new G(e.segments,t))}function Bi(e){if(e.numberOfChildren===1&&e.children.primary){let t=e.children[B];return new G(e.segments.concat(t.segments),t.children)}return e}function Vi(e){return e instanceof W}function Hi(e,t,n=null,r=null){return Wi(Ui(e),t,n,r)}function Ui(e){let t;function n(r){let i={};for(let e of r.children){let t=n(e);i[e.outlet]=t}let a=new G(r.url,i);return r===e&&(t=a),a}let r=Ri(n(e.root));return t??r}function Wi(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return qi(i,i,i,n,r);let a=Xi(t);if(a.toRoot())return qi(i,i,new G([],{}),n,r);let o=Qi(a,i,e),s=o.processChildren?na(o.segmentGroup,o.index,a.commands):ta(o.segmentGroup,o.index,a.commands);return qi(i,o.segmentGroup,s,n,r)}function Gi(e){return typeof e==`object`&&!!e&&!e.outlets&&!e.segmentPath}function Ki(e){return typeof e==`object`&&!!e&&e.outlets}function qi(e,t,n,r,i){let a={};r&&Object.entries(r).forEach(([e,t])=>{a[e]=Array.isArray(t)?t.map(e=>`${e}`):`${t}`});let o;return o=e===t?n:Ji(e,t,n),new W(Ri(zi(o)),a,i)}function Ji(e,t,n){let r={};return Object.entries(e.children).forEach(([e,i])=>{i===t?r[e]=n:r[e]=Ji(i,t,n)}),new G(e.segments,r)}var Yi=class{constructor(e,t,n){if(T(this,`isAbsolute`,void 0),T(this,`numberOfDoubleDots`,void 0),T(this,`commands`,void 0),this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Gi(n[0]))throw new E(4003,!1);let r=n.find(Ki);if(r&&r!==ni(n))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]==`/`}};function Xi(e){if(typeof e[0]==`string`&&e.length===1&&e[0]===`/`)return new Yi(!0,0,e);let t=0,n=!1,r=e.reduce((e,r,i)=>{if(typeof r==`object`&&r){if(r.outlets){let t={};return Object.entries(r.outlets).forEach(([e,n])=>{t[e]=typeof n==`string`?n.split(`/`):n}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return typeof r==`string`&&i===0?(r.split(`/`).forEach((r,i)=>{i==0&&r===`.`||(i==0&&r===``?n=!0:r===`..`?t++:r!=``&&e.push(r))}),e):[...e,r]},[]);return new Yi(n,t,r)}var Zi=class{constructor(e,t,n){T(this,`segmentGroup`,void 0),T(this,`processChildren`,void 0),T(this,`index`,void 0),this.segmentGroup=e,this.processChildren=t,this.index=n}};function Qi(e,t,n){if(e.isAbsolute)return new Zi(t,!0,0);if(!n)return new Zi(t,!1,NaN);if(n.parent===null)return new Zi(n,!0,0);let r=Gi(e.commands[0])?0:1;return $i(n,n.segments.length-1+r,e.numberOfDoubleDots)}function $i(e,t,n){let r=e,i=t,a=n;for(;a>i;){if(a-=i,r=r.parent,!r)throw new E(4005,!1);i=r.segments.length}return new Zi(r,!1,i-a)}function ea(e){return Ki(e[0])?e[0].outlets:{[B]:e}}function ta(e,t,n){if(e??(e=new G([],{})),e.segments.length===0&&e.hasChildren())return na(e,t,n);let r=ra(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let t=new G(e.segments.slice(0,r.pathIndex),{});return t.children[B]=new G(e.segments.slice(r.pathIndex),e.children),na(t,0,i)}else if(r.match&&i.length===0)return new G(e.segments,{});else if(r.match&&!e.hasChildren())return ia(e,t,n);else if(r.match)return na(e,0,i);else return ia(e,t,n)}function na(e,t,n){if(n.length===0)return new G(e.segments,{});{let r=ea(n),i={};if(Object.keys(r).some(e=>e!==`primary`)&&e.children.primary&&e.numberOfChildren===1&&e.children.primary.segments.length===0){let r=na(e.children[B],t,n);return new G(e.segments,r.children)}return Object.entries(r).forEach(([n,r])=>{typeof r==`string`&&(r=[r]),r!==null&&(i[n]=ta(e.children[n],t,r))}
2),Object.entries(e.children).forEach(([e,t])=>{r[e]===void 0&&(i[e]=t)}),new G(e.segments,i)}}function ra(e,t,n){let r=0,i=t,a={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return a;let t=e.segments[i],o=n[r];if(Ki(o))break;let s=`${o}`,c=r<n.length-1?n[r+1]:null;if(i>0&&s===void 0)break;if(s&&c&&typeof c==`object`&&c.outlets===void 0){if(!sa(s,c,t))return a;r+=2}else{if(!sa(s,{},t))return a;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function ia(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i<n.length;){let a=n[i];if(Ki(a))return new G(r,aa(a.outlets));if(i===0&&Gi(n[0])){let a=e.segments[t];r.push(new fi(a.path,oa(n[0]))),i++;continue}let o=Ki(a)?a.outlets[B]:`${a}`,s=i<n.length-1?n[i+1]:null;o&&s&&Gi(s)?(r.push(new fi(o,oa(s))),i+=2):(r.push(new fi(o,{})),i++)}return new G(r,{})}function aa(e){let t={};return Object.entries(e).forEach(([e,n])=>{typeof n==`string`&&(n=[n]),n!==null&&(t[e]=ia(new G([],{}),0,n))}),t}function oa(e){let t={};return Object.entries(e).forEach(([e,n])=>t[e]=`${n}`),t}function sa(e,t,n){return e==n.path&&H(t,n.parameters)}var ca=`imperative`,q=function(e){return e[e.NavigationStart=0]=`NavigationStart`,e[e.NavigationEnd=1]=`NavigationEnd`,e[e.NavigationCancel=2]=`NavigationCancel`,e[e.NavigationError=3]=`NavigationError`,e[e.RoutesRecognized=4]=`RoutesRecognized`,e[e.ResolveStart=5]=`ResolveStart`,e[e.ResolveEnd=6]=`ResolveEnd`,e[e.GuardsCheckStart=7]=`GuardsCheckStart`,e[e.GuardsCheckEnd=8]=`GuardsCheckEnd`,e[e.RouteConfigLoadStart=9]=`RouteConfigLoadStart`,e[e.RouteConfigLoadEnd=10]=`RouteConfigLoadEnd`,e[e.ChildActivationStart=11]=`ChildActivationStart`,e[e.ChildActivationEnd=12]=`ChildActivationEnd`,e[e.ActivationStart=13]=`ActivationStart`,e[e.ActivationEnd=14]=`ActivationEnd`,e[e.Scroll=15]=`Scroll`,e[e.NavigationSkipped=16]=`NavigationSkipped`,e}(q||{}),J=class{constructor(e,t){T(this,`id`,void 0),T(this,`url`,void 0),this.id=e,this.url=t}},la=class extends J{constructor(e,t,n=`imperative`,r=null){super(e,t),T(this,`type`,q.NavigationStart),T(this,`navigationTrigger`,void 0),T(this,`restoredState`,void 0),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ua=class extends J{constructor(e,t,n){super(e,t),T(this,`urlAfterRedirects`,void 0),T(this,`type`,q.NavigationEnd),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Y=function(e){return e[e.Redirect=0]=`Redirect`,e[e.SupersededByNewNavigation=1]=`SupersededByNewNavigation`,e[e.NoDataFromResolver=2]=`NoDataFromResolver`,e[e.GuardRejected=3]=`GuardRejected`,e[e.Aborted=4]=`Aborted`,e}(Y||{}),da=function(e){return e[e.IgnoredSameUrlNavigation=0]=`IgnoredSameUrlNavigation`,e[e.IgnoredByUrlHandlingStrategy=1]=`IgnoredByUrlHandlingStrategy`,e}(da||{}),X=class extends J{constructor(e,t,n,r){super(e,t),T(this,`reason`,void 0),T(this,`code`,void 0),T(this,`type`,q.NavigationCancel),this.reason=n,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},fa=class extends J{constructor(e,t,n,r){super(e,t),T(this,`reason`,void 0),T(this,`code`,void 0),T(this,`type`,q.NavigationSkipped),this.reason=n,this.code=r}},pa=class extends J{constructor(e,t,n,r){super(e,t),T(this,`error`,void 0),T(this,`target`,void 0),T(this,`type`,q.NavigationError),this.error=n,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ma=class extends J{constructor(e,t,n,r){super(e,t),T(this,`urlAfterRedirects`,void 0),T(this,`state`,void 0),T(this,`type`,q.RoutesRecognized),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ha=class extends J{constructor(e,t,n,r){super(e,t),T(this,`urlAfterRedirects`,void 0),T(this,`state`,void 0),T(this,`type`,q.GuardsCheckStart),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ga=class extends J{constructor(e,t,n,r,i){super(e,t),T(this,`urlAfterRedirects`,void 0),T(this,`state`,void 0),T(this,`shouldActivate`,void 0),T(this,`type`,q.GuardsCheckEnd),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},_a=class extends J{constructor(e,t,n,r){super(e,t),T(this,`urlAfterRedirects`,void 0),T(this,`state`,void 0),T(this,`type`,q.ResolveStart),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},va=class extends J{constructor(e,t,n,r){super(e,t),T(this,`urlAfterRedirects`,void 0),T(this,`state`,void 0),T(this,`type`,q.ResolveEnd),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ya=class{constructor(e){T(this,`route`,void 0),T(this,`type`,q.RouteConfigLoadStart),this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ba=class{constructor(e){T(this,`route`,void 0),T(this,`type`,q.RouteConfigLoadEnd),this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},xa=class{constructor(e){T(this,`snapshot`,void 0),T(this,`type`,q.ChildActivationStart),this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}},Sa=class{constructor(e){T(this,`snapshot`,void 0),T(this,`type`,q.ChildActivationEnd),this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}},Ca=class{constructor(e){T(this,`snapshot`,void 0),T(this,`type`,q.ActivationStart),this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}},wa=class{constructor(e){T(this,`snapshot`,void 0),T(this,`type`,q.ActivationEnd),this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}},Ta=class{constructor(e,t,n){T(this,`routerEvent`,void 0),T(this,`position`,void 0),T(this,`anchor`,void 0),T(this,`type`,q.Scroll),this.routerEvent=e,this.position=t,this.anchor=n}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Ea=class{},Da=class{constructor(e,t){T(this,`url`,void 0),T(this,`navigationBehaviorOptions`,void 0),this.url=e,this.navigationBehaviorOptions=t}};function Oa(e){return!(e instanceof Ea)&&!(e instanceof Da)}function ka(e,t){return e.providers&&!e._injector&&(e._injector=et(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Z(e){return e.outlet||`primary`}function Aa(e,t){let n=e.filter(e=>Z(e)===t);return n.push(...e.filter(e=>Z(e)!==t)),n}function ja(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Ma=class{get injector(){return ja(this.route?.snapshot)??this.rootInjector}constructor(e){T(this,`rootInjector`,void 0),T(this,`outlet`,null),T(this,`route`,null),T(this,`children`,void 0),T(this,`attachRef`,null),this.rootInjector=e,this.children=new Na(this.rootInjector)}},Na=(()=>{var e;class t{constructor(e){T(this,`rootInjector`,void 0),T(this,`contexts`,new Map),this.rootInjector=e}onChildOutletCreated(e,t){let n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Ma(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(Se))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac,providedIn:`root`})),t})(),Pa=class{constructor(e){T(this,`_root`,void 0),this._root=e}get root(){return this._root.value}
2parent(e){let t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){let t=Fa(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){let t=Fa(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){let t=Ia(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Ia(e,this._root).map(e=>e.value)}};function Fa(e,t){if(e===t.value)return t;for(let n of t.children){let t=Fa(e,n);if(t)return t}return null}function Ia(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Ia(e,n);if(r.length)return r.unshift(t),r}return[]}var Q=class{constructor(e,t){T(this,`value`,void 0),T(this,`children`,void 0),this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}};function La(e){let t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}var Ra=class extends Pa{constructor(e,t){super(e),T(this,`snapshot`,void 0),this.snapshot=t,Ga(this,e)}toString(){return this.snapshot.toString()}};function za(e){let t=Ba(e),n=new g([new fi(``,{})]),r=new g({}),i=new g({}),a=new Va(n,r,new g({}),new g(``),i,B,e,t.root);return a.snapshot=t.root,new Ra(new Q(a,[]),t)}function Ba(e){return new Wa(``,new Q(new Ua([],{},{},``,{},B,e,null,{}),[]))}var Va=class{constructor(e,t,n,r,i,a,o,s){T(this,`urlSubject`,void 0),T(this,`paramsSubject`,void 0),T(this,`queryParamsSubject`,void 0),T(this,`fragmentSubject`,void 0),T(this,`dataSubject`,void 0),T(this,`outlet`,void 0),T(this,`component`,void 0),T(this,`snapshot`,void 0),T(this,`_futureSnapshot`,void 0),T(this,`_routerState`,void 0),T(this,`_paramMap`,void 0),T(this,`_queryParamMap`,void 0),T(this,`title`,void 0),T(this,`url`,void 0),T(this,`params`,void 0),T(this,`queryParams`,void 0),T(this,`fragment`,void 0),T(this,`data`,void 0),this.urlSubject=e,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=i,this.outlet=a,this.component=o,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(f(e=>e[Xr]))??_(void 0),this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??(this._paramMap=this.params.pipe(f(e=>V(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=this.queryParams.pipe(f(e=>V(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ha(e,t,n=`emptyOnly`){let r,{routeConfig:i}=e;return r=t!==null&&(n===`always`||i?.path===``||!t.component&&!t.routeConfig?.loadComponent)?{params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.data,...i?.data,...e._resolvedData}}:{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}},i&&Ya(i)&&(r.resolve[Xr]=i.title),r}var Ua=class{get title(){return this.data?.[Xr]}constructor(e,t,n,r,i,a,o,s,c){T(this,`url`,void 0),T(this,`params`,void 0),T(this,`queryParams`,void 0),T(this,`fragment`,void 0),T(this,`data`,void 0),T(this,`outlet`,void 0),T(this,`component`,void 0),T(this,`routeConfig`,void 0),T(this,`_resolve`,void 0),T(this,`_resolvedData`,void 0),T(this,`_routerState`,void 0),T(this,`_paramMap`,void 0),T(this,`_queryParamMap`,void 0),this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=a,this.component=o,this.routeConfig=s,this._resolve=c}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=V(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=V(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join(`/`)}', path:'${this.routeConfig?this.routeConfig.path:``}')`}},Wa=class extends Pa{constructor(e,t){super(t),T(this,`url`,void 0),this.url=e,Ga(this,t)}toString(){return Ka(this._root)}};
2function Ga(e,t){t.value._routerState=e,t.children.forEach(t=>Ga(e,t))}function Ka(e){let t=e.children.length>0?` { ${e.children.map(Ka).join(`, `)} } `:``;return`${e.value}${t}`}function qa(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,H(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),H(t.params,n.params)||e.paramsSubject.next(n.params),$r(t.url,n.url)||e.urlSubject.next(n.url),H(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Ja(e,t){let n=H(e.params,t.params)&&pi(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Ja(e.parent,t.parent))}function Ya(e){return typeof e.title==`string`||e.title===null}var Xa=new O(``),Za=(()=>{var e;class t{constructor(){T(this,`activated`,null),T(this,`_activatedRoute`,null),T(this,`name`,B),T(this,`activateEvents`,new ue),T(this,`deactivateEvents`,new ue),T(this,`attachEvents`,new ue),T(this,`detachEvents`,new ue),T(this,`routerOutletData`,ve()),T(this,`parentContexts`,D(Na)),T(this,`location`,D(je)),T(this,`changeDetector`,D(Ce)),T(this,`inputBinder`,D($a,{optional:!0})),T(this,`supportsBindingToComponentInputs`,!0)}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:n}=e.name;if(t)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new E(4013,!1);this._activatedRoute=e;let n=this.location,r=e.snapshot.component,i=this.parentContexts.getOrCreateContext(this.name).children,a=new Qa(e,i,n.injector,this.routerOutletData);this.activated=n.createComponent(r,{index:n.length,injector:a,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵdir`,se({type:e,selectors:[[`router-outlet`]],inputs:{name:`name`,routerOutletData:[1,`routerOutletData`]},outputs:{activateEvents:`activate`,deactivateEvents:`deactivate`,attachEvents:`attach`,detachEvents:`detach`},exportAs:[`outlet`],features:[p]})),t})(),Qa=class{constructor(e,t,n,r){T(this,`route`,void 0),T(this,`childContexts`,void 0),T(this,`parent`,void 0),T(this,`outletData`,void 0),this.route=e,this.childContexts=t,this.parent=n,this.outletData=r}get(e,t){return e===Va?this.route:e===Na?this.childContexts:e===Xa?this.outletData:this.parent.get(e,t)}},$a=new O(``),eo=(()=>{var e;class t{constructor(){T(this,`outletDataSubscriptions`,new Map)}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:t}=e,n=ie([t.queryParams,t.params,t.data]).pipe(y(([e,t,n],r)=>
2(n={...e,...t,...n},r===0?_(n):Promise.resolve(n)))).subscribe(n=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(e);return}let r=c(t.component);if(!r){this.unsubscribeFromRouteData(e);return}for(let{templateName:t}of r.inputs)e.activatedComponentRef.setInput(t,n[t])});this.outletDataSubscriptions.set(e,n)}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac})),t})(),to=(()=>{var e;class t{}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵcmp`,he({type:e,selectors:[[`ng-component`]],exportAs:[`emptyRouterOutlet`],decls:1,vars:0,template:function(e,t){e&1&&Ge(0,`router-outlet`)},dependencies:[Za],encapsulation:2})),t})();function no(e){let t=e.children&&e.children.map(no),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==`primary`&&(n.component=to),n}function ro(e,t,n){return new Ra(io(e,t._root,n?n._root:void 0),t)}function io(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;return r._futureSnapshot=t.value,new Q(r,ao(e,t,n))}else{if(e.shouldAttach(t.value)){let n=e.retrieve(t.value);if(n!==null){let r=n.route;return r.value._futureSnapshot=t.value,r.children=t.children.map(t=>io(e,t)),r}}return new Q(oo(t.value),t.children.map(t=>io(e,t)))}}function ao(e,t,n){return t.children.map(t=>{for(let r of n.children)if(e.shouldReuseRoute(t.value,r.value.snapshot))return io(e,t,r);return io(e,t)})}function oo(e){return new Va(new g(e.url),new g(e.params),new g(e.queryParams),new g(e.fragment),new g(e.data),e.outlet,e.component,e)}var so=class{constructor(e,t){T(this,`redirectTo`,void 0),T(this,`navigationBehaviorOptions`,void 0),this.redirectTo=e,this.navigationBehaviorOptions=t}},co=`ngNavigationCancelingError`;function lo(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Vi(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=uo(!1,Y.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function uo(e,t){let n=Error(`NavigationCancelingError: ${e||``}`);return n[co]=!0,n.cancellationCode=t,n}function fo(e){return po(e)&&Vi(e.url)}function po(e){return!!e&&e[co]}var mo=(e,t,n,r)=>f(i=>(new ho(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),ho=class{constructor(e,t,n,r,i){T(this,`routeReuseStrategy`,void 0),T(this,`futureState`,void 0),T(this,`currState`,void 0),T(this,`forwardEvent`,void 0),T(this,`inputBindingEnabled`,void 0),this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=i}activate(e){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),qa(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){let r=La(t);e.children.forEach(e=>{let t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),Object.values(r).forEach(e=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){let r=e.value,i=t?t.value:null;if(r===i)if(r.component){let i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){let n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,i=La(e);for(let e of Object.values(i))this.deactivateRouteAndItsChildren(e,r);if(n&&n.outlet){let t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){let n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,i=La(e);for(let e of Object.values(i))this.deactivateRouteAndItsChildren(e,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,t,n){let r=La(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new wa(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Sa(e.value.snapshot))}
2activateRoutes(e,t,n){let r=e.value,i=t?t.value:null;if(qa(r),r===i)if(r.component){let i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(r.component){let t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let n=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(n.contexts),t.attachRef=n.componentRef,t.route=n.route.value,t.outlet&&t.outlet.attach(n.componentRef,n.route.value),qa(n.route.value),this.activateChildRoutes(e,null,t.children)}else t.attachRef=null,t.route=r,t.outlet&&t.outlet.activateWith(r,t.injector),this.activateChildRoutes(e,null,t.children)}else this.activateChildRoutes(e,null,n)}},go=class{constructor(e){T(this,`path`,void 0),T(this,`route`,void 0),this.path=e,this.route=this.path[this.path.length-1]}},_o=class{constructor(e,t){T(this,`component`,void 0),T(this,`route`,void 0),this.component=e,this.route=t}};function vo(e,t,n){let r=e._root;return xo(r,t?t._root:null,n,[r.value])}function yo(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function bo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e==`function`&&!Re(e)?e:t.get(e):r}function xo(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let a=La(t);return e.children.forEach(e=>{So(e,a[e.value.outlet],n,r.concat([e.value]),i),delete a[e.value.outlet]}),Object.entries(a).forEach(([e,t])=>wo(t,n.getContext(e),i)),i}function So(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let a=e.value,o=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){let c=Co(o,a,a.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new go(r)):(a.data=o.data,a._resolvedData=o._resolvedData),a.component?xo(e,t,s?s.children:null,r,i):xo(e,t,n,r,i),c&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new _o(s.outlet.component,o))}else o&&wo(t,s,i),i.canActivateChecks.push(new go(r)),a.component?xo(e,null,s?s.children:null,r,i):xo(e,null,n,r,i);return i}function Co(e,t,n){if(typeof n==`function`)return n(e,t);switch(n){case`pathParamsChange`:return!K(e.url,t.url);case`pathParamsOrQueryParamsChange`:return!K(e.url,t.url)||!H(e.queryParams,t.queryParams);case`always`:return!0;case`paramsOrQueryParamsChange`:return!Ja(e,t)||!H(e.queryParams,t.queryParams);default:return!Ja(e,t)}}function wo(e,t,n){let r=La(e),i=e.value;Object.entries(r).forEach(([e,r])=>{i.component?t?wo(r,t.children.getContext(e),n):wo(r,null,n):wo(r,t,n)}),i.component&&t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new _o(t.outlet.component,i)):n.canDeactivateChecks.push(new _o(null,i))}function To(e){return typeof e==`function`}function Eo(e){return typeof e==`boolean`}function Do(e){return e&&To(e.canLoad)}function Oo(e){return e&&To(e.canActivate)}function ko(e){return e&&To(e.canActivateChild)}function Ao(e){return e&&To(e.canDeactivate)}function jo(e){return e&&To(e.canMatch)}function Mo(e){return e instanceof gt||e?.name===`EmptyError`}var No=Symbol(`INITIAL_VALUE`);function Po(){return y(e=>ie(e.map(e=>e.pipe(r(1),kt(No)))).pipe(f(e=>{for(let t of e)if(t===!0)continue;else if(t===No)return No;else if(t===!1||Fo(t))return t;return!0}),N(e=>e!==No),r(1)))}function Fo(e){return Vi(e)||e instanceof so}function Io(e,t){return M(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:a,canDeactivateChecks:o}}=n;return o.length===0&&a.length===0?_({...n,guardsResult:!0}):Lo(o,r,i,e).pipe(M(n=>n&&Eo(n)?Ro(r,a,e,t):_(n)),f(e=>({...n,guardsResult:e})))})}function Lo(e,t,n,r){return x(e).pipe(M(e=>Uo(e.component,e.route,n,t,r)),F(e=>e!==!0,!0))}function Ro(e,t,n,r){return x(t).pipe(P(t=>bt(Bo(t.route.parent,r),zo(t.route,r),Ho(e,t.path,n),Vo(e,t.route,n))),F(e=>e!==!0,!0))}function zo(e,t){return e!==null&&t&&t(new Ca(e)),_(!0)}function Bo(e,t){return e!==null&&t&&t(new xa(e)),_(!0)}function Vo(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;return!r||r.length===0?_(!0):_(r.map(r=>xt(()=>{let i=ja(t)??n,a=bo(r,i);return U(Oo(a)?a.canActivate(t,e):w(i,()=>a(t,e))).pipe(F())}))).pipe(Po())}
2function Ho(e,t,n){let r=t[t.length-1];return _(t.slice(0,t.length-1).reverse().map(e=>yo(e)).filter(e=>e!==null).map(t=>xt(()=>_(t.guards.map(i=>{let a=ja(t.node)??n,o=bo(i,a);return U(ko(o)?o.canActivateChild(r,e):w(a,()=>o(r,e))).pipe(F())})).pipe(Po())))).pipe(Po())}function Uo(e,t,n,r,i){let a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return!a||a.length===0?_(!0):_(a.map(a=>{let o=ja(t)??i,s=bo(a,o);return U(Ao(s)?s.canDeactivate(e,t,n,r):w(o,()=>s(e,t,n,r))).pipe(F())})).pipe(Po())}function Wo(e,t,n,r){let i=t.canLoad;return i===void 0||i.length===0?_(!0):_(i.map(r=>{let i=bo(r,e);return U(Do(i)?i.canLoad(t,n):w(e,()=>i(t,n)))})).pipe(Po(),Go(r))}function Go(e){return oe(l(t=>{if(typeof t!=`boolean`)throw lo(e,t)}),f(e=>e===!0))}function Ko(e,t,n,r){let i=t.canMatch;return!i||i.length===0?_(!0):_(i.map(r=>{let i=bo(r,e);return U(jo(i)?i.canMatch(t,n):w(e,()=>i(t,n)))})).pipe(Po(),Go(r))}var qo=class{constructor(e){T(this,`segmentGroup`,void 0),this.segmentGroup=e||null}},Jo=class extends Error{constructor(e){super(),T(this,`urlTree`,void 0),this.urlTree=e}};function $(e){return ht(new qo(e))}function Yo(e){return ht(new E(4e3,!1))}function Xo(e){return ht(uo(!1,Y.GuardRejected))}var Zo=class{constructor(e,t){T(this,`urlSerializer`,void 0),T(this,`urlTree`,void 0),this.urlSerializer=e,this.urlTree=t}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return _(n);if(r.numberOfChildren>1||!r.children.primary)return Yo(`${e.redirectTo}`);r=r.children[B]}}applyRedirectCommands(e,t,n,r,i){return Qo(t,r,i).pipe(f(t=>{if(t instanceof W)throw new Jo(t);let r=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,n);if(t[0]===`/`)throw new Jo(r);return r}))}applyRedirectCreateUrlTree(e,t,n,r){return new W(this.createSegmentGroup(e,t.root,n,r),this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){let n={};return Object.entries(e).forEach(([e,r])=>{typeof r==`string`&&r[0]===`:`?n[e]=t[r.substring(1)]:n[e]=r}),n}createSegmentGroup(e,t,n,r){let i=this.createSegments(e,t.segments,n,r),a={};return Object.entries(t.children).forEach(([t,i])=>{a[t]=this.createSegmentGroup(e,i,n,r)}),new G(i,a)}createSegments(e,t,n,r){return t.map(t=>t.path[0]===`:`?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){let r=n[t.path.substring(1)];if(!r)throw new E(4001,!1);return r}findOrReturn(e,t){let n=0;for(let r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}};function Qo(e,t,n){if(typeof e==`string`)return _(e);let r=e,{queryParams:i,fragment:a,routeConfig:o,url:s,outlet:c,params:l,data:u,title:d}=t;return U(w(n,()=>r({params:l,data:u,queryParams:i,fragment:a,routeConfig:o,url:s,outlet:c,title:d})))}var $o={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function es(e,t,n,r,i){let a=ts(e,t,n);return a.matched?(r=ka(t,r),Ko(r,t,n,i).pipe(f(e=>e===!0?a:{...$o}))):_(a)}function ts(e,t,n){if(t.path===`**`)return ns(n);if(t.path===``)return t.pathMatch===`full`&&(e.hasChildren()||n.length>0)?{...$o}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let r=(t.matcher||Qr)(n,e,t);if(!r)return{...$o};let i={};Object.entries(r.posParams??{}).forEach(([e,t])=>{i[e]=t.path});let a=r.consumed.length>0?{...i,...r.consumed[r.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:r.consumed,remainingSegments:n.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function ns(e){return{matched:!0,parameters:e.length>0?ni(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function rs(e,t,n,r){return n.length>0&&os(e,n,r)?{segmentGroup:new G(t,as(r,new G(n,e.children))),slicedSegments:[]}:n.length===0&&ss(e,n,r)?{segmentGroup:new G(e.segments,is(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new G(e.segments,e.children),slicedSegments:n}}function is(e,t,n,r){let i={};for(let a of n)if(cs(e,t,a)&&!r[Z(a)]){let e=new G([],{});i[Z(a)]=e}return{...r,...i}}function as(e,t){let n={};n[B]=t;
2for(let t of e)if(t.path===``&&Z(t)!==`primary`){let e=new G([],{});n[Z(t)]=e}return n}function os(e,t,n){return n.some(n=>cs(e,t,n)&&Z(n)!==`primary`)}function ss(e,t,n){return n.some(n=>cs(e,t,n))}function cs(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch===`full`?!1:n.path===``}function ls(e,t,n){return t.length===0&&!e.children[n]}var us=class{};function ds(e,t,n,r,i,a,o=`emptyOnly`){return new ps(e,t,n,r,i,o,a).recognize()}var fs=31,ps=class{constructor(e,t,n,r,i,a,o){T(this,`injector`,void 0),T(this,`configLoader`,void 0),T(this,`rootComponentType`,void 0),T(this,`config`,void 0),T(this,`urlTree`,void 0),T(this,`paramsInheritanceStrategy`,void 0),T(this,`urlSerializer`,void 0),T(this,`applyRedirects`,void 0),T(this,`absoluteRedirectCount`,0),T(this,`allowRedirects`,!0),this.injector=e,this.configLoader=t,this.rootComponentType=n,this.config=r,this.urlTree=i,this.paramsInheritanceStrategy=a,this.urlSerializer=o,this.applyRedirects=new Zo(this.urlSerializer,this.urlTree)}noMatchError(e){return new E(4002,`'${e.segmentGroup}'`)}recognize(){let e=rs(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(f(({children:e,rootSnapshot:t})=>{let n=new Wa(``,new Q(t,e)),r=Hi(t,[],this.urlTree.queryParams,this.urlTree.fragment);return r.queryParams=this.urlTree.queryParams,n.url=this.urlSerializer.serialize(r),{state:n,tree:r}}))}match(e){let t=new Ua([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),B,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,B,t).pipe(f(e=>({children:e,rootSnapshot:t})),ke(e=>{if(e instanceof Jo)return this.urlTree=e.urlTree,this.match(e.urlTree.root);throw e instanceof qo?this.noMatchError(e):e}))}processSegmentGroup(e,t,n,r,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,t,n,i):this.processSegment(e,t,n,n.segments,r,!0,i).pipe(f(e=>e instanceof Q?[e]:[]))}processChildren(e,t,n,r){let i=[];for(let e of Object.keys(n.children))e===`primary`?i.unshift(e):i.push(e);return x(i).pipe(P(i=>{let a=n.children[i],o=Aa(t,i);return this.processSegmentGroup(e,o,a,i,r)}),Ot((e,t)=>(e.push(...t),e)),Ct(null),Dt(),M(e=>{if(e===null)return $(n);let t=gs(e);return ms(t),_(t)}))}processSegment(e,t,n,r,i,a,o){return x(t).pipe(P(s=>this.processSegmentAgainstRoute(s._injector??e,t,s,n,r,i,a,o).pipe(ke(e=>{if(e instanceof qo)return _(null);throw e}))),F(e=>!!e),ke(e=>{if(Mo(e))return ls(n,r,i)?_(new us):$(n);throw e}))}processSegmentAgainstRoute(e,t,n,r,i,a,o,s){return Z(n)!==a&&(a===`primary`||!cs(r,i,n))?$(r):n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,i,a,s):this.allowRedirects&&o?this.expandSegmentAgainstRouteUsingRedirect(e,r,t,n,i,a,s):$(r)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,a,o){let{matched:s,parameters:c,consumedSegments:l,positionalParamSegments:u,remainingSegments:d}=ts(t,r,i);if(!s)return $(t);typeof r.redirectTo==`string`&&r.redirectTo[0]===`/`&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>fs&&(this.allowRedirects=!1));let f=new Ua(i,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,_s(r),Z(r),r.component??r._loadedComponent??null,r,vs(r)),p=Ha(f,o,this.paramsInheritanceStrategy);return f.params=Object.freeze(p.params),f.data=Object.freeze(p.data),this.applyRedirects.applyRedirectCommands(l,r.redirectTo,u,f,e).pipe(y(e=>this.applyRedirects.lineralizeSegments(r,e)),M(r=>this.processSegment(e,n,t,r.concat(d),a,!1,o)))}matchSegmentAgainstRoute(e,t,n,r,i,a){let o=es(t,n,r,e,this.urlSerializer);return n.path===`**`&&(t.children={}),o.pipe(y(o=>o.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(y(({routes:r})=>{let s=n._loadedInjector??e,{parameters:c,consumedSegments:l,remainingSegments:u}=o,d=new Ua(l,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,_s(n),Z(n),n.component??n._loadedComponent??null,n,vs(n)),p=Ha(d,a,this.paramsInheritanceStrategy);d.params=Object.freeze(p.params),d.data=Object.freeze(p.data);let{segmentGroup:m,slicedSegments:h}=rs(t,l,u,r);if(h.length===0&&m.hasChildren())return this.processChildren(s,r,m,d).pipe(f(e=>new Q(d,e)));if(r.length===0&&h.length===0)return _(new Q(d,[]));let g=Z(n)===i;return this.processSegment(s,r,m,h,g?B:i,!0,d).pipe(f(e=>new Q(d,e instanceof Q?[e]:[])))}))):$(t)))}getChildConfig(e,t,n){return t.children?_({routes:t.children,injector:e}):t.loadChildren?t._loadedRoutes===void 0?Wo(e,t,n,this.urlSerializer).pipe(M(n=>n?this.configLoader.loadChildren(e,t).pipe(l(e=>{t._loadedRoutes=e.routes,t._loadedInjector=e.injector})):Xo(t))):_({routes:t._loadedRoutes,injector:t._loadedInjector}):_({routes:[],injector:e})}};function ms(e){e.sort((e,t)=>
2e.value.outlet===`primary`?-1:t.value.outlet===`primary`?1:e.value.outlet.localeCompare(t.value.outlet))}function hs(e){let t=e.value.routeConfig;return t&&t.path===``}function gs(e){let t=[],n=new Set;for(let r of e){if(!hs(r)){t.push(r);continue}let e=t.find(e=>r.value.routeConfig===e.value.routeConfig);e===void 0?t.push(r):(e.children.push(...r.children),n.add(e))}for(let e of n){let n=gs(e.children);t.push(new Q(e.value,n))}return t.filter(e=>!n.has(e))}function _s(e){return e.data||{}}function vs(e){return e.resolve||{}}function ys(e,t,n,r,i,a){return M(o=>ds(e,t,n,r,o.extractedUrl,i,a).pipe(f(({state:e,tree:t})=>({...o,targetSnapshot:e,urlAfterRedirects:t}))))}function bs(e,t){return M(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return _(n);let a=new Set(i.map(e=>e.route)),o=new Set;for(let e of a)if(!o.has(e))for(let t of xs(e))o.add(t);let s=0;return x(o).pipe(P(n=>a.has(n)?Ss(n,r,e,t):(n.data=Ha(n,n.parent,e).resolve,_(void 0))),l(()=>s++),Et(1),M(e=>s===o.size?_(n):S))})}function xs(e){return[e,...e.children.map(e=>xs(e)).flat()]}function Ss(e,t,n,r){let i=e.routeConfig,a=e._resolve;return i?.title!==void 0&&!Ya(i)&&(a[Xr]=i.title),xt(()=>(e.data=Ha(e,e.parent,n).resolve,Cs(a,e,t,r).pipe(f(t=>(e._resolvedData=t,e.data={...e.data,...t},null)))))}function Cs(e,t,n,r){let i=ei(e);if(i.length===0)return _({});let a={};return x(i).pipe(M(i=>ws(e[i],t,n,r).pipe(F(),l(e=>{if(e instanceof so)throw lo(new gi,e);a[i]=e}))),Et(1),f(()=>a),ke(e=>Mo(e)?S:ht(e)))}function ws(e,t,n,r){let i=ja(t)??r,a=bo(e,i);return U(a.resolve?a.resolve(t,n):w(i,()=>a(t,n)))}function Ts(e){return y(t=>{let n=e(t);return n?x(n).pipe(f(()=>t)):_(t)})}var Es=(()=>{var e;class t{buildTitle(e){let t,n=e.root;for(;n!==void 0;)t=this.getResolvedTitleForRoute(n)??t,n=n.children.find(e=>e.outlet===B);return t}getResolvedTitleForRoute(e){return e.data[Xr]}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵprov`,j({token:e,factory:()=>D(Ds),providedIn:`root`})),t})(),Ds=(()=>{var e;class t extends Es{constructor(e){super(),T(this,`title`,void 0),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)(A(Gr))}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac,providedIn:`root`})),t})(),Os=new O(``,{providedIn:`root`,factory:()=>({})}),ks=new O(``),As=(()=>{var e;class t{constructor(){T(this,`componentLoaders`,new WeakMap),T(this,`childrenLoaders`,new WeakMap),T(this,`onLoadStartListener`,void 0),T(this,`onLoadEndListener`,void 0),T(this,`compiler`,D(nt))}loadComponent(e,t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return _(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=new mt(U(w(e,()=>t.loadComponent())).pipe(f(Ns),y(Ps),l(e=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=e}),at(()=>{this.componentLoaders.delete(t)})),()=>new Be).pipe(pt());return this.componentLoaders.set(t,n),n}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return _({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let n=new mt(js(t,this.compiler,e,this.onLoadEndListener).pipe(at(()=>{this.childrenLoaders.delete(t)})),()=>new Be).pipe(pt());return this.childrenLoaders.set(t,n),n}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac,providedIn:`root`})),t})();function js(e,t,n,r){return U(w(n,()=>e.loadChildren())).pipe(f(Ns),y(Ps),M(e=>e instanceof m||Array.isArray(e)?_(e):x(t.compileModuleAsync(e))),f(t=>{r&&r(e);let i,a;return Array.isArray(t)?a=t:(i=t.create(n).injector,a=i.get(ks,[],{optional:!0,self:!0}).flat()),{routes:a.map(no),injector:i}}))}function Ms(e){return e&&typeof e==`object`&&`default`in e}function Ns(e){return Ms(e)?e.default:e}function Ps(e){return _(e)}var Fs=(()=>{var e;class t{}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵprov`,j({token:e,factory:()=>D(Is),providedIn:`root`})),t})(),Is=(()=>{var e;class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac,providedIn:`root`})),t})(),Ls=new O(``),Rs=new O(``);function zs(e,t,n){let r=e.get(Rs),i=e.get(b);
2if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(e=>setTimeout(e));let a,o=new Promise(e=>{a=e}),s=i.startViewTransition(()=>(a(),Bs(e)));s.ready.catch(e=>{});let{onViewTransitionCreated:c}=r;return c&&w(e,()=>c({transition:s,from:t,to:n})),o}function Bs(e){return new Promise(t=>{ze({read:()=>setTimeout(t)},{injector:e})})}var Vs=new O(``),Hs=(()=>{var e;class n{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){T(this,`currentNavigation`,Ze(null,{equal:()=>!1})),T(this,`currentTransition`,null),T(this,`lastSuccessfulNavigation`,null),T(this,`events`,new Be),T(this,`transitionAbortWithErrorSubject`,new Be),T(this,`configLoader`,D(As)),T(this,`environmentInjector`,D(Se)),T(this,`destroyRef`,D(t)),T(this,`urlSerializer`,D(hi)),T(this,`rootContexts`,D(Na)),T(this,`location`,D(ft)),T(this,`inputBindingEnabled`,D($a,{optional:!0})!==null),T(this,`titleStrategy`,D(Es)),T(this,`options`,D(Os,{optional:!0})||{}),T(this,`paramsInheritanceStrategy`,this.options.paramsInheritanceStrategy||`emptyOnly`),T(this,`urlHandlingStrategy`,D(Fs)),T(this,`createViewTransition`,D(Ls,{optional:!0})),T(this,`navigationErrorHandler`,D(Vs,{optional:!0})),T(this,`navigationId`,0),T(this,`transitions`,void 0),T(this,`afterPreactivation`,()=>_(void 0)),T(this,`rootComponentType`,null),T(this,`destroyed`,!1);let e=e=>this.events.next(new ya(e)),n=e=>this.events.next(new ba(e));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;v(()=>{this.transitions?.next({...e,extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:t})})}setupNavigations(e){return this.transitions=new g(null),this.transitions.pipe(N(e=>e!==null),y(t=>{let n=!1;return _(t).pipe(y(n=>{if(this.navigationId>t.id)return this.cancelNavigationTransition(t,``,Y.SupersededByNewNavigation),S;this.currentTransition=t,this.currentNavigation.set({id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,targetBrowserUrl:typeof n.extras.browserUrl==`string`?this.urlSerializer.parse(n.extras.browserUrl):n.extras.browserUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null,abort:()=>n.abortController.abort()});let r=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),i=n.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!r&&i!==`reload`)return this.events.next(new fa(n.id,this.urlSerializer.serialize(n.rawUrl),``,da.IgnoredSameUrlNavigation)),n.resolve(!1),S;if(this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return _(n).pipe(y(e=>(this.events.next(new la(e.id,this.urlSerializer.serialize(e.extractedUrl),e.source,e.restoredState)),e.id===this.navigationId?Promise.resolve(e):S)),ys(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),l(e=>{t.targetSnapshot=e.targetSnapshot,t.urlAfterRedirects=e.urlAfterRedirects,this.currentNavigation.update(t=>(t.finalUrl=e.urlAfterRedirects,t));let n=new ma(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);this.events.next(n)}));if(r&&this.urlHandlingStrategy.shouldProcessUrl(n.currentRawUrl)){let{id:e,extractedUrl:r,source:i,restoredState:a,extras:o}=n,s=new la(e,this.urlSerializer.serialize(r),i,a);this.events.next(s);let c=za(this.rootComponentType).snapshot;return this.currentTransition=t={...n,targetSnapshot:c,urlAfterRedirects:r,extras:{...o,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.update(e=>(e.finalUrl=r,e)),_(t)}else return this.events.next(new fa(n.id,this.urlSerializer.serialize(n.extractedUrl),``,da.IgnoredByUrlHandlingStrategy)),n.resolve(!1),S}),l(e=>{let t=new ha(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);this.events.next(t)}),f(e=>(this.currentTransition=t={...e,guards:vo(e.targetSnapshot,e.currentSnapshot,this.rootContexts)},t)),Io(this.environmentInjector,e=>this.events.next(e)),l(e=>{if(t.guardsResult=e.guardsResult,e.guardsResult&&typeof e.guardsResult!=`boolean`)throw lo(this.urlSerializer,e.guardsResult);let n=new ga(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.events.next(n)}),N(e=>e.guardsResult?!0:(this.cancelNavigationTransition(e,``,Y.GuardRejected),!1)),Ts(e=>{if(e.guards.canActivateChecks.length!==0)return _(e).pipe(l(e=>{let t=new _a(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);this.events.next(t)}),y(e=>{let t=!1;return _(e).pipe(bs(this.paramsInheritanceStrategy,this.environmentInjector),l({next:()=>t=!0,complete:()=>
2{t||this.cancelNavigationTransition(e,``,Y.NoDataFromResolver)}}))}),l(e=>{let t=new va(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);this.events.next(t)}))}),Ts(e=>{let t=e=>{let n=[];if(e.routeConfig?.loadComponent){let t=ja(e)??this.environmentInjector;n.push(this.configLoader.loadComponent(t,e.routeConfig).pipe(l(t=>{e.component=t}),f(()=>void 0)))}for(let r of e.children)n.push(...t(r));return n};return ie(t(e.targetSnapshot.root)).pipe(Ct(null),r(1))}),Ts(()=>this.afterPreactivation()),y(()=>{let{currentSnapshot:e,targetSnapshot:n}=t,r=this.createViewTransition?.(this.environmentInjector,e.root,n.root);return r?x(r).pipe(f(()=>t)):_(t)}),f(n=>{let r=ro(e.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return this.currentTransition=t={...n,targetRouterState:r},this.currentNavigation.update(e=>(e.targetRouterState=r,e)),t}),l(()=>{this.events.next(new Ea)}),mo(this.rootContexts,e.routeReuseStrategy,e=>this.events.next(e),this.inputBindingEnabled),r(1),o(new me(e=>{let n=t.abortController.signal,r=()=>e.next();return n.addEventListener(`abort`,r),()=>n.removeEventListener(`abort`,r)}).pipe(N(()=>!n&&!t.targetRouterState),l(()=>{this.cancelNavigationTransition(t,t.abortController.signal.reason+``,Y.Aborted)}))),l({next:e=>{n=!0,this.lastSuccessfulNavigation=v(this.currentNavigation),this.events.next(new ua(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects))),this.titleStrategy?.updateTitle(e.targetRouterState.snapshot),e.resolve(!0)},complete:()=>{n=!0}}),o(this.transitionAbortWithErrorSubject.pipe(l(e=>{throw e}))),at(()=>{n||this.cancelNavigationTransition(t,``,Y.SupersededByNewNavigation),this.currentTransition?.id===t.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ke(e=>{if(this.destroyed)return t.resolve(!1),S;if(n=!0,po(e))this.events.next(new X(t.id,this.urlSerializer.serialize(t.extractedUrl),e.message,e.cancellationCode)),fo(e)?this.events.next(new Da(e.url,e.navigationBehaviorOptions)):t.resolve(!1);else{let n=new pa(t.id,this.urlSerializer.serialize(t.extractedUrl),e,t.targetSnapshot??void 0);try{let r=w(this.environmentInjector,()=>this.navigationErrorHandler?.(n));if(r instanceof so){let{message:e,cancellationCode:n}=lo(this.urlSerializer,r);this.events.next(new X(t.id,this.urlSerializer.serialize(t.extractedUrl),e,n)),this.events.next(new Da(r.redirectTo,r.navigationBehaviorOptions))}else throw this.events.next(n),e}catch(e){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(e)}}return S}))}))}cancelNavigationTransition(e,t,n){let r=new X(e.id,this.urlSerializer.serialize(e.extractedUrl),t,n);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=v(this.currentNavigation),n=t?.targetBrowserUrl??t?.extractedUrl;return e.toString()!==n?.toString()&&!t?.extras.skipLocationChange}}return e=n,T(n,`ɵfac`,function(t){return new(t||e)}),T(n,`ɵprov`,j({token:e,factory:e.ɵfac,providedIn:`root`})),n})();function Us(e){return e!==ca}var Ws=(()=>{var e;class t{}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵprov`,j({token:e,factory:()=>D(Ks),providedIn:`root`})),t})(),Gs=class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}},Ks=(()=>{var e;class t extends Gs{}return e=t,T(t,`ɵfac`,(()=>{let t;return function(n){return(t||(t=Me(e)))(n||e)}})()),T(t,`ɵprov`,j({token:e,factory:e.ɵfac,providedIn:`root`})),t})(),qs=(()=>{var e;class t{constructor(){T(this,`urlSerializer`,D(hi)),T(this,`options`,D(Os,{optional:!0})||{}),T(this,`canceledNavigationResolution`,this.options.canceledNavigationResolution||`replace`),T(this,`location`,D(ft)),T(this,`urlHandlingStrategy`,D(Fs)),T(this,`urlUpdateStrategy`,this.options.urlUpdateStrategy||`deferred`),T(this,`currentUrlTree`,new W),T(this,`rawUrlTree`,this.currentUrlTree),T(this,`routerState`,za(null)),T(this,`stateMemento`,this.createStateMemento())}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:t,targetBrowserUrl:n}){let r=e===void 0?t:this.urlHandlingStrategy.merge(e,t),i=n??r;return i instanceof W?this.urlSerializer.serialize(i):i}commitTransition({targetRouterState:e,finalUrl:t,initialUrl:n}){t&&e?(this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(t,n),this.routerState=e):this.rawUrlTree=n}getRouterState(){return this.routerState}updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵprov`,j({token:e,factory:()=>D(Js),providedIn:`root`})),t})(),Js=(()=>{var e;class t extends qs{constructor(...e){super(...e),T(this,`currentPageId`,0),T(this,`lastSuccessfulId`,-1)}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution===`computed`?this.restoredState()?.ɵrouterPageId??this.currentPageId:this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type===`popstate`&&setTimeout(()=>{e(t.url,t.state,`popstate`)})})}handleRouterEvent(e,t){e instanceof la?this.updateStateMemento():e instanceof fa?this.commitTransition(t):e instanceof ma?this.urlUpdateStrategy===`eager`&&(t.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof Ea?(this.commitTransition(t),this.urlUpdateStrategy===`deferred`&&!t.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof X&&e.code!==Y.SupersededByNewNavigation&&e.code!==Y.Redirect?this.restoreHistory(t):e instanceof pa?this.restoreHistory(t,!0):e instanceof ua&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:t,id:n}){let{replaceUrl:r,state:i}=t;if(this.location.isCurrentPathEqualTo(e)||r){let t=this.browserPageId,r={...i,...this.generateNgRouterState(n,t)};this.location.replaceState(e,``,r)}else{let t={...i,...this.generateNgRouterState(n,this.browserPageId+1)};this.location.go(e,``,t)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution===`computed`){let t=this.browserPageId,n=this.currentPageId-t;n===0?this.getCurrentUrlTree()===e.finalUrl&&n===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree()):this.location.historyGo(n)}else this.canceledNavigationResolution===`replace`&&(t&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),``,this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution===`computed`?{navigationId:e,ɵrouterPageId:t}:{navigationId:e}}}return e=t,T(t,`ɵfac`,(()=>{let t;return function(n){return(t||(t=Me(e)))(n||e)}})()),T(t,`ɵprov`,j({token:e,factory:e.ɵfac,providedIn:`root`})),t})();function Ys(e,t){e.events.pipe(N(e=>e instanceof ua||e instanceof X||e instanceof pa||e instanceof fa),f(e=>e instanceof ua||e instanceof fa?0:e instanceof X&&(e.code===Y.Redirect||e.code===Y.SupersededByNewNavigation)?2:1),N(e=>e!==2),r(1)).subscribe(()=>{t()})}var Xs={paths:`exact`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`exact`},Zs={paths:`subset`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`subset`},Qs=(()=>{var e;class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){T(this,`disposed`,!1),T(this,`nonRouterCurrentEntryChangeSubscription`,void 0),T(this,`console`,D(i)),T(this,`stateManager`,D(qs)),T(this,`options`,D(Os,{optional:!0})||{}),T(this,`pendingTasks`,D(Ke)),T(this,`urlUpdateStrategy`,this.options.urlUpdateStrategy||`deferred`),T(this,`navigationTransitions`,D(Hs)),T(this,`urlSerializer`,D(hi)),T(this,`location`,D(ft)),T(this,`urlHandlingStrategy`,D(Fs)),T(this,`injector`,D(Se)),T(this,`_events`,new Be),T(this,`navigated`,!1),T(this,`routeReuseStrategy`,D(Ws)),T(this,`onSameUrlNavigation`,this.options.onSameUrlNavigation||`ignore`),T(this,`config`,D(ks,{optional:!0})?.flat()??[]),T(this,`componentInputBindingEnabled`,!!D($a,{optional:!0})),T(this,`currentNavigation`,this.navigationTransitions.currentNavigation.asReadonly()),T(this,`eventsSubscription`,new Pe),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(e=>{try{let t=this.navigationTransitions.currentTransition,n=v(this.navigationTransitions.currentNavigation);if(t!==null&&n!==null){if(this.stateManager.handleRouterEvent(e,n),e instanceof X&&e.code!==Y.Redirect&&e.code!==Y.SupersededByNewNavigation)this.navigated=!0;else if(e instanceof ua)this.navigated=!0;else if(e instanceof Da){let n=e.navigationBehaviorOptions,r=this.urlHandlingStrategy.merge(e.url,t.currentRawUrl),i={browserUrl:t.extras.browserUrl,info:t.extras.info,skipLocationChange:t.extras.skipLocationChange,replaceUrl:t.extras.replaceUrl||this.urlUpdateStrategy===`eager`||Us(t.source),...n};this.scheduleNavigation(r,ca,null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})}}Oa(e)&&this._events.next(e)}catch(e){this.navigationTransitions.transitionAbortWithErrorSubject.next(e)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ca,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t,n
2)=>{this.navigateToSyncWithBrowser(e,n,t)}))}navigateToSyncWithBrowser(e,t,n){let r={replaceUrl:!0},i=n?.navigationId?n:null;if(n){let e={...n};delete e.navigationId,delete e.ɵrouterPageId,Object.keys(e).length!==0&&(r.state=e)}let a=this.parseUrl(e);this.scheduleNavigation(a,t,i,r).catch(e=>{this.disposed||this.injector.get(He)(e)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return v(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(no),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){let{relativeTo:n,queryParams:r,fragment:i,queryParamsHandling:a,preserveFragment:o}=t,s=o?this.currentUrlTree.fragment:i,c=null;switch(a??this.options.defaultQueryParamsHandling){case`merge`:c={...this.currentUrlTree.queryParams,...r};break;case`preserve`:c=this.currentUrlTree.queryParams;break;default:c=r||null}c!==null&&(c=this.removeEmptyProps(c));let l;try{l=Ui(n?n.snapshot:this.routerState.snapshot.root)}catch{(typeof e[0]!=`string`||e[0][0]!==`/`)&&(e=[]),l=this.currentUrlTree.root}return Wi(l,e,c,s??null)}navigateByUrl(e,t={skipLocationChange:!1}){let n=Vi(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,ca,null,t)}navigate(e,t={skipLocationChange:!1}){return $s(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Ye(4018,!1)),this.urlSerializer.parse(`/`)}}isActive(e,t){let n;if(n=t===!0?{...Xs}:t===!1?{...Zs}:t,Vi(e))return ai(this.currentUrlTree,e,n);let r=this.parseUrl(e);return ai(this.currentUrlTree,r,n)}removeEmptyProps(e){return Object.entries(e).reduce((e,[t,n])=>(n!=null&&(e[t]=n),e),{})}scheduleNavigation(e,t,n,r,i){if(this.disposed)return Promise.resolve(!1);let a,o,s;i?(a=i.resolve,o=i.reject,s=i.promise):s=new Promise((e,t)=>{a=e,o=t});let c=this.pendingTasks.add();return Ys(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:a,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(e=>Promise.reject(e))}}return e=t,T(t,`ɵfac`,function(t){return new(t||e)}),T(t,`ɵprov`,j({token:e,factory:e.ɵfac,providedIn:`root`})),t})();function $s(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new E(4008,!1)}export{wr as A,vt as B,Gr as C,Hn as D,I as E,P as F,gt as H,St as I,N as L,fn as M,kt as N,Cr as O,F as P,xt as R,Ur as S,Kn as T,M as V,W as _,ua as a,Vi as b,la as c,ks as d,eo as f,hi as g,Ta as h,$a as i,Er as j,Dr as k,Hs as l,Za as m,Ls as n,fa as o,Qs as p,ca as r,da as s,Va as t,Os as u,Rs as v,Yr as w,Kr as x,zs as y,bt as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.