Files
2026-07-07 18:38:36 +05:30

3 lines
112 KiB
JavaScript

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