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