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