import{f as Nr}from"./chunk-3JAJZ4ZR.js";import{d as $r,e as fe,f as jt}from"./chunk-ZEDFMZ3B.js";import{$a as U,A as Z,C as K,D as lt,F as oe,G as Y,H as sr,Ib as Ar,Jb as Dr,K as Et,L as k,M as ae,N as or,O as ar,Qb as Mr,S as ur,Sa as vr,Sb as Tr,T as x,Tb as Er,U as cr,Va as le,W as R,X as w,Xa as he,Zb as Or,_ as b,a as h,aa as lr,b as I,ba as ue,bb as $t,ca as P,cb as X,d as tr,da as hr,db as ht,e as er,ea as p,eb as mr,ec as Ur,fc as de,g as ee,ga as Ot,gb as Cr,gc as xr,h as re,ha as dr,hb as yr,hc as Pr,i as L,ib as Rr,j as D,ja as Ut,jb as Sr,kb as wr,l as B,la as xt,lc as Nt,m as M,mb as br,n as d,o as ct,p as rr,q as nr,qa as ce,r as C,ra as fr,s as ne,t as T,u as ie,ua as pr,v as ir,w as se,xa as Pt,ya as z,yb as Ir,za as gr}from"./chunk-PEWEDMBK.js";var f="primary",Dt=Symbol("RouteTitle"),Ce=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function nt(e){return new Ce(e)}function Rn(e,t,i){let r=i.path.split("/");if(r.length>e.length||i.pathMatch==="full"&&(t.hasChildren()||r.lengthr[s]===n)}else return e===t}function Vr(e){return e.length>0?e[e.length-1]:null}function q(e){return rr(e)?e:Ar(e)?M(Promise.resolve(e)):d(e)}var wn={exact:Hr,subset:Wr},Br={exact:bn,subset:In,ignored:()=>!0};function jr(e,t,i){return wn[i.paths](e.root,t.root,i.matrixParams)&&Br[i.queryParams](e.queryParams,t.queryParams)&&!(i.fragment==="exact"&&e.fragment!==t.fragment)}function bn(e,t){return $(e,t)}function Hr(e,t,i){if(!W(e.segments,t.segments)||!zt(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Hr(e.children[r],t.children[r],i))return!1;return!0}function In(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>qr(e[i],t[i]))}function Wr(e,t,i){return Gr(e,t,t.segments,i)}function Gr(e,t,i,r){if(e.segments.length>i.length){let n=e.segments.slice(0,i.length);return!(!W(n,i)||t.hasChildren()||!zt(n,i,r))}else if(e.segments.length===i.length){if(!W(e.segments,i)||!zt(e.segments,i,r))return!1;for(let n in t.children)if(!e.children[n]||!Wr(e.children[n],t.children[n],r))return!1;return!0}else{let n=i.slice(0,e.segments.length),s=i.slice(e.segments.length);return!W(e.segments,n)||!zt(e.segments,n,r)||!e.children[f]?!1:Gr(e.children[f],t,s,r)}}function zt(e,t,i){return t.every((r,n)=>Br[i](e[n].parameters,r.parameters))}var F=class{constructor(t=new m([],{}),i={},r=null){this.root=t,this.queryParams=i,this.fragment=r}get queryParamMap(){return this._queryParamMap??=nt(this.queryParams),this._queryParamMap}toString(){return Mn.serialize(this)}},m=class{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ft(this)}},H=class{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap??=nt(this.parameters),this._parameterMap}toString(){return Zr(this)}};function An(e,t){return W(e,t)&&e.every((i,r)=>$(i.parameters,t[r].parameters))}function W(e,t){return e.length!==t.length?!1:e.every((i,r)=>i.path===t[r].path)}function Dn(e,t){let i=[];return Object.entries(e.children).forEach(([r,n])=>{r===f&&(i=i.concat(t(n,r)))}),Object.entries(e.children).forEach(([r,n])=>{r!==f&&(i=i.concat(t(n,r)))}),i}var He=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=b({token:t,factory:()=>new qt,providedIn:"root"});let e=t;return e})(),qt=class{parse(t){let i=new Se(t);return new F(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){let i=`/${dt(t.root,!0)}`,r=On(t.queryParams),n=typeof t.fragment=="string"?`#${Tn(t.fragment)}`:"";return`${i}${r}${n}`}},Mn=new qt;function Ft(e){return e.segments.map(t=>Zr(t)).join("/")}function dt(e,t){if(!e.hasChildren())return Ft(e);if(t){let i=e.children[f]?dt(e.children[f],!1):"",r=[];return Object.entries(e.children).forEach(([n,s])=>{n!==f&&r.push(`${n}:${dt(s,!1)}`)}),r.length>0?`${i}(${r.join("//")})`:i}else{let i=Dn(e,(r,n)=>n===f?[dt(e.children[f],!1)]:[`${n}:${dt(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[f]!=null?`${Ft(e)}/${i[0]}`:`${Ft(e)}/(${i.join("//")})`}}function Qr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lt(e){return Qr(e).replace(/%3B/gi,";")}function Tn(e){return encodeURI(e)}function Re(e){return Qr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _t(e){return decodeURIComponent(e)}function Lr(e){return _t(e.replace(/\+/g,"%20"))}function Zr(e){return`${Re(e.path)}${En(e.parameters)}`}function En(e){return Object.entries(e).map(([t,i])=>`;${Re(t)}=${Re(i)}`).join("")}function On(e){let t=Object.entries(e).map(([i,r])=>Array.isArray(r)?r.map(n=>`${Lt(i)}=${Lt(n)}`).join("&"):`${Lt(i)}=${Lt(r)}`).filter(i=>i);return t.length?`?${t.join("&")}`:""}var Un=/^[^\/()?;#]+/;function pe(e){let t=e.match(Un);return t?t[0]:""}var xn=/^[^\/()?;=#]+/;function Pn(e){let t=e.match(xn);return t?t[0]:""}var $n=/^[^=?&#]+/;function Nn(e){let t=e.match($n);return t?t[0]:""}var jn=/^[^&#]+/;function Ln(e){let t=e.match(jn);return t?t[0]:""}var Se=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(r[f]=new m(t,i)),r}parseSegment(){let t=pe(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new H(_t(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let i=Pn(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let n=pe(this.remaining);n&&(r=n,this.capture(r))}t[_t(i)]=_t(r)}parseQueryParam(t){let i=Nn(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let o=Ln(this.remaining);o&&(r=o,this.capture(r))}let n=Lr(i),s=Lr(r);if(t.hasOwnProperty(n)){let o=t[n];Array.isArray(o)||(o=[o],t[n]=o),o.push(s)}else t[n]=s}parseParens(t){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=pe(this.remaining),n=this.remaining[r.length];if(n!=="/"&&n!==")"&&n!==";")throw new w(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=f);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[f]:new m([],o),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new w(4011,!1)}};function Kr(e){return e.segments.length>0?new m([],{[f]:e}):e}function Yr(e){let t={};for(let[r,n]of Object.entries(e.children)){let s=Yr(n);if(r===f&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))t[o]=a;else(s.segments.length>0||s.hasChildren())&&(t[r]=s)}let i=new m(e.segments,t);return kn(i)}function kn(e){if(e.numberOfChildren===1&&e.children[f]){let t=e.children[f];return new m(e.segments.concat(t.segments),t.children)}return e}function it(e){return e instanceof F}function zn(e,t,i=null,r=null){let n=Xr(e);return Jr(n,t,i,r)}function Xr(e){let t;function i(s){let o={};for(let c of s.children){let u=i(c);o[c.outlet]=u}let a=new m(s.url,o);return s===e&&(t=a),a}let r=i(e.root),n=Kr(r);return t??n}function Jr(e,t,i,r){let n=e;for(;n.parent;)n=n.parent;if(t.length===0)return ge(n,n,n,i,r);let s=Fn(t);if(s.toRoot())return ge(n,n,new m([],{}),i,r);let o=_n(s,n,e),a=o.processChildren?gt(o.segmentGroup,o.index,s.commands):en(o.segmentGroup,o.index,s.commands);return ge(n,o.segmentGroup,a,i,r)}function Vt(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ct(e){return typeof e=="object"&&e!=null&&e.outlets}function ge(e,t,i,r,n){let s={};r&&Object.entries(r).forEach(([c,u])=>{s[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;e===t?o=i:o=tn(e,t,i);let a=Kr(Yr(o));return new F(a,s,n)}function tn(e,t,i){let r={};return Object.entries(e.children).forEach(([n,s])=>{s===t?r[n]=i:r[n]=tn(s,t,i)}),new m(e.segments,r)}var Bt=class{constructor(t,i,r){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=r,t&&r.length>0&&Vt(r[0]))throw new w(4003,!1);let n=r.find(Ct);if(n&&n!==Vr(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Fn(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Bt(!0,0,e);let t=0,i=!1,r=e.reduce((n,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...n,{outlets:a}]}if(s.segmentPath)return[...n,s.segmentPath]}return typeof s!="string"?[...n,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?t++:a!=""&&n.push(a))}),n):[...n,s]},[]);return new Bt(i,t,r)}var et=class{constructor(t,i,r){this.segmentGroup=t,this.processChildren=i,this.index=r}};function _n(e,t,i){if(e.isAbsolute)return new et(t,!0,0);if(!i)return new et(t,!1,NaN);if(i.parent===null)return new et(i,!0,0);let r=Vt(e.commands[0])?0:1,n=i.segments.length-1+r;return qn(i,n,e.numberOfDoubleDots)}function qn(e,t,i){let r=e,n=t,s=i;for(;s>n;){if(s-=n,r=r.parent,!r)throw new w(4005,!1);n=r.segments.length}return new et(r,!1,n-s)}function Vn(e){return Ct(e[0])?e[0].outlets:{[f]:e}}function en(e,t,i){if(e??=new m([],{}),e.segments.length===0&&e.hasChildren())return gt(e,t,i);let r=Bn(e,t,i),n=i.slice(r.commandIndex);if(r.match&&r.pathIndexs!==f)&&e.children[f]&&e.numberOfChildren===1&&e.children[f].segments.length===0){let s=gt(e.children[f],t,i);return new m(e.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(n[s]=en(e.children[s],t,o))}),Object.entries(e.children).forEach(([s,o])=>{r[s]===void 0&&(n[s]=o)}),new m(e.segments,n)}}function Bn(e,t,i){let r=0,n=t,s={match:!1,pathIndex:0,commandIndex:0};for(;n=i.length)return s;let o=e.segments[n],a=i[r];if(Ct(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!zr(c,u,o))return s;r+=2}else{if(!zr(c,{},o))return s;r++}n++}return{match:!0,pathIndex:n,commandIndex:r}}function we(e,t,i){let r=e.segments.slice(0,t),n=0;for(;n{typeof r=="string"&&(r=[r]),r!==null&&(t[i]=we(new m([],{}),0,r))}),t}function kr(e){let t={};return Object.entries(e).forEach(([i,r])=>t[i]=`${r}`),t}function zr(e,t,i){return e==i.path&&$(t,i.parameters)}var vt="imperative",S=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(S||{}),O=class{constructor(t,i){this.id=t,this.url=i}},yt=class extends O{constructor(t,i,r="imperative",n=null){super(t,i),this.type=S.NavigationStart,this.navigationTrigger=r,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},j=class extends O{constructor(t,i,r){super(t,i),this.urlAfterRedirects=r,this.type=S.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},E=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(E||{}),be=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(be||{}),_=class extends O{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=S.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},G=class extends O{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=S.NavigationSkipped}},Rt=class extends O{constructor(t,i,r,n){super(t,i),this.error=r,this.target=n,this.type=S.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ht=class extends O{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=S.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ie=class extends O{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=S.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ae=class extends O{constructor(t,i,r,n,s){super(t,i),this.urlAfterRedirects=r,this.state=n,this.shouldActivate=s,this.type=S.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},De=class extends O{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=S.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Me=class extends O{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=S.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Te=class{constructor(t){this.route=t,this.type=S.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ee=class{constructor(t){this.route=t,this.type=S.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Oe=class{constructor(t){this.snapshot=t,this.type=S.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ue=class{constructor(t){this.snapshot=t,this.type=S.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xe=class{constructor(t){this.snapshot=t,this.type=S.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pe=class{constructor(t){this.snapshot=t,this.type=S.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var St=class{},wt=class{constructor(t){this.url=t}};var $e=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Yt,this.attachRef=null}},Yt=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(r,n){let s=this.getOrCreateContext(r);s.outlet=n,this.contexts.set(r,s)}onChildOutletDestroyed(r){let n=this.getContext(r);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let n=this.getContext(r);return n||(n=new $e,this.contexts.set(r,n)),n}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Wt=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){let i=Ne(t,this._root);return i?i.children.map(r=>r.value):[]}firstChild(t){let i=Ne(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){let i=je(t,this._root);return i.length<2?[]:i[i.length-2].children.map(n=>n.value).filter(n=>n!==t)}pathFromRoot(t){return je(t,this._root).map(i=>i.value)}};function Ne(e,t){if(e===t.value)return t;for(let i of t.children){let r=Ne(e,i);if(r)return r}return null}function je(e,t){if(e===t.value)return[t];for(let i of t.children){let r=je(e,i);if(r.length)return r.unshift(t),r}return[]}var A=class{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}};function tt(e){let t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}var Gt=class extends Wt{constructor(t,i){super(t),this.snapshot=i,Ge(this,t)}toString(){return this.snapshot.toString()}};function rn(e){let t=Wn(e),i=new D([new H("",{})]),r=new D({}),n=new D({}),s=new D({}),o=new D(""),a=new Q(i,r,s,o,n,f,e,t.root);return a.snapshot=t.root,new Gt(new A(a,[]),t)}function Wn(e){let t={},i={},r={},n="",s=new bt([],t,r,n,i,f,e,null,{});return new Qt("",new A(s,[]))}var Q=class{constructor(t,i,r,n,s,o,a,c){this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=r,this.fragmentSubject=n,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(C(u=>u[Dt]))??d(void 0),this.url=t,this.params=i,this.queryParams=r,this.fragment=n,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(C(t=>nt(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(t=>nt(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function We(e,t,i="emptyOnly"){let r,{routeConfig:n}=e;return t!==null&&(i==="always"||n?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:h(h({},t.params),e.params),data:h(h({},t.data),e.data),resolve:h(h(h(h({},e.data),t.data),n?.data),e._resolvedData)}:r={params:h({},e.params),data:h({},e.data),resolve:h(h({},e.data),e._resolvedData??{})},n&&sn(n)&&(r.resolve[Dt]=n.title),r}var bt=class{get title(){return this.data?.[Dt]}constructor(t,i,r,n,s,o,a,c,u){this.url=t,this.params=i,this.queryParams=r,this.fragment=n,this.data=s,this.outlet=o,this.component=a,this.routeConfig=c,this._resolve=u}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??=nt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=nt(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${i}')`}},Qt=class extends Wt{constructor(t,i){super(i),this.url=t,Ge(this,i)}toString(){return nn(this._root)}};function Ge(e,t){t.value._routerState=e,t.children.forEach(i=>Ge(e,i))}function nn(e){let t=e.children.length>0?` { ${e.children.map(nn).join(", ")} } `:"";return`${e.value}${t}`}function ve(e){if(e.snapshot){let t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,$(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),$(t.params,i.params)||e.paramsSubject.next(i.params),Sn(t.url,i.url)||e.urlSubject.next(i.url),$(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Le(e,t){let i=$(e.params,t.params)&&An(e.url,t.url),r=!e.parent!=!t.parent;return i&&!r&&(!e.parent||Le(e.parent,t.parent))}function sn(e){return typeof e.title=="string"||e.title===null}var Gn=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=f,this.activateEvents=new X,this.deactivateEvents=new X,this.attachEvents=new X,this.detachEvents=new X,this.parentContexts=p(Yt),this.location=p(yr),this.changeDetector=p($t),this.environmentInjector=p(Pt),this.inputBinder=p(Qe,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:n,previousValue:s}=r.name;if(n)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){return this.parentContexts.getContext(r)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r?.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,n){this.activated=r,this._activatedRoute=n,this.location.insert(r.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=r;let s=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new ke(r,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:u,environmentInjector:n??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=Ut({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[xt]});let e=t;return e})(),ke=class{constructor(t,i,r){this.route=t,this.childContexts=i,this.parent=r}get(t,i){return t===Q?this.route:t===Yt?this.childContexts:this.parent.get(t,i)}},Qe=new P("");function Qn(e,t,i){let r=It(e,t._root,i?i._root:void 0);return new Gt(r,t)}function It(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){let r=i.value;r._futureSnapshot=t.value;let n=Zn(e,t,i);return new A(r,n)}else{if(e.shouldAttach(t.value)){let s=e.retrieve(t.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>It(e,a)),o}}let r=Kn(t.value),n=t.children.map(s=>It(e,s));return new A(r,n)}}function Zn(e,t,i){return t.children.map(r=>{for(let n of i.children)if(e.shouldReuseRoute(r.value,n.value.snapshot))return It(e,r,n);return It(e,r)})}function Kn(e){return new Q(new D(e.url),new D(e.params),new D(e.queryParams),new D(e.fragment),new D(e.data),e.outlet,e.component,e)}var on="ngNavigationCancelingError";function an(e,t){let{redirectTo:i,navigationBehaviorOptions:r}=it(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,n=un(!1,E.Redirect);return n.url=i,n.navigationBehaviorOptions=r,n}function un(e,t){let i=new Error(`NavigationCancelingError: ${e||""}`);return i[on]=!0,i.cancellationCode=t,i}function Yn(e){return cn(e)&&it(e.url)}function cn(e){return!!e&&e[on]}var Xn=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=dr({type:t,selectors:[["ng-component"]],standalone:!0,features:[Or],decls:1,vars:0,template:function(n,s){n&1&&Ir(0,"router-outlet")},dependencies:[Gn],encapsulation:2});let e=t;return e})();function Jn(e,t){return e.providers&&!e._injector&&(e._injector=Sr(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Ze(e){let t=e.children&&e.children.map(Ze),i=t?I(h({},e),{children:t}):h({},e);return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==f&&(i.component=Xn),i}function N(e){return e.outlet||f}function ti(e,t){let i=e.filter(r=>N(r)===t);return i.push(...e.filter(r=>N(r)!==t)),i}function Mt(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let i=t.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var ei=(e,t,i,r)=>C(n=>(new ze(t,n.targetRouterState,n.currentRouterState,i,r).activate(e),n)),ze=class{constructor(t,i,r,n,s){this.routeReuseStrategy=t,this.futureState=i,this.currState=r,this.forwardEvent=n,this.inputBindingEnabled=s}activate(t){let i=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,r,t),ve(this.futureState.root),this.activateChildRoutes(i,r,t)}deactivateChildRoutes(t,i,r){let n=tt(i);t.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,n[o],r),delete n[o]}),Object.values(n).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(n===s)if(n.component){let o=r.getContext(n.outlet);o&&this.deactivateChildRoutes(t,i,o.children)}else this.deactivateChildRoutes(t,i,r);else s&&this.deactivateRouteAndItsChildren(i,r)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=tt(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);if(r&&r.outlet){let o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=tt(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,i,r){let n=tt(i);t.children.forEach(s=>{this.activateRoutes(s,n[s.value.outlet],r),this.forwardEvent(new Pe(s.value.snapshot))}),t.children.length&&this.forwardEvent(new Ue(t.value.snapshot))}activateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(ve(n),n===s)if(n.component){let o=r.getOrCreateContext(n.outlet);this.activateChildRoutes(t,i,o.children)}else this.activateChildRoutes(t,i,r);else if(n.component){let o=r.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),ve(a.route.value),this.activateChildRoutes(t,null,o.children)}else{let a=Mt(n.snapshot);o.attachRef=null,o.route=n,o.injector=a,o.outlet&&o.outlet.activateWith(n,o.injector),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,r)}},Zt=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},rt=class{constructor(t,i){this.component=t,this.route=i}};function ri(e,t,i){let r=e._root,n=t?t._root:null;return ft(r,n,i,[r.value])}function ni(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function ot(e,t){let i=Symbol(),r=t.get(e,i);return r===i?typeof e=="function"&&!lr(e)?e:t.get(e):r}function ft(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=tt(t);return e.children.forEach(o=>{ii(o,s[o.value.outlet],i,r.concat([o.value]),n),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>mt(a,i.getContext(o),n)),n}function ii(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=t?t.value:null,a=i?i.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=si(o,s,s.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new Zt(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?ft(e,t,a?a.children:null,r,n):ft(e,t,i,r,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new rt(a.outlet.component,o))}else o&&mt(t,a,n),n.canActivateChecks.push(new Zt(r)),s.component?ft(e,null,a?a.children:null,r,n):ft(e,null,i,r,n);return n}function si(e,t,i){if(typeof i=="function")return i(e,t);switch(i){case"pathParamsChange":return!W(e.url,t.url);case"pathParamsOrQueryParamsChange":return!W(e.url,t.url)||!$(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Le(e,t)||!$(e.queryParams,t.queryParams);case"paramsChange":default:return!Le(e,t)}}function mt(e,t,i){let r=tt(e),n=e.value;Object.entries(r).forEach(([s,o])=>{n.component?t?mt(o,t.children.getContext(s),i):mt(o,null,i):mt(o,t,i)}),n.component?t&&t.outlet&&t.outlet.isActivated?i.canDeactivateChecks.push(new rt(t.outlet.component,n)):i.canDeactivateChecks.push(new rt(null,n)):i.canDeactivateChecks.push(new rt(null,n))}function Tt(e){return typeof e=="function"}function oi(e){return typeof e=="boolean"}function ai(e){return e&&Tt(e.canLoad)}function ui(e){return e&&Tt(e.canActivate)}function ci(e){return e&&Tt(e.canActivateChild)}function li(e){return e&&Tt(e.canDeactivate)}function hi(e){return e&&Tt(e.canMatch)}function ln(e){return e instanceof nr||e?.name==="EmptyError"}var kt=Symbol("INITIAL_VALUE");function st(){return x(e=>ne(e.map(t=>t.pipe(Y(1),ur(kt)))).pipe(C(t=>{for(let i of t)if(i!==!0){if(i===kt)return kt;if(i===!1||i instanceof F)return i}return!0}),Z(t=>t!==kt),Y(1)))}function di(e,t){return T(i=>{let{targetSnapshot:r,currentSnapshot:n,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?d(I(h({},i),{guardsResult:!0})):fi(o,r,n,e).pipe(T(a=>a&&oi(a)?pi(r,s,e,t):d(a)),C(a=>I(h({},i),{guardsResult:a})))})}function fi(e,t,i,r){return M(e).pipe(T(n=>yi(n.component,n.route,i,t,r)),k(n=>n!==!0,!0))}function pi(e,t,i,r){return M(t).pipe(lt(n=>ir(vi(n.route.parent,r),gi(n.route,r),Ci(e,n.path,i),mi(e,n.route,i))),k(n=>n!==!0,!0))}function gi(e,t){return e!==null&&t&&t(new xe(e)),d(!0)}function vi(e,t){return e!==null&&t&&t(new Oe(e)),d(!0)}function mi(e,t,i){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return d(!0);let n=r.map(s=>se(()=>{let o=Mt(t)??i,a=ot(s,o),c=ui(a)?a.canActivate(t,e):z(o,()=>a(t,e));return q(c).pipe(k())}));return d(n).pipe(st())}function Ci(e,t,i){let r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>ni(o)).filter(o=>o!==null).map(o=>se(()=>{let a=o.guards.map(c=>{let u=Mt(o.node)??i,l=ot(c,u),v=ci(l)?l.canActivateChild(r,e):z(u,()=>l(r,e));return q(v).pipe(k())});return d(a).pipe(st())}));return d(s).pipe(st())}function yi(e,t,i,r,n){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return d(!0);let o=s.map(a=>{let c=Mt(t)??n,u=ot(a,c),l=li(u)?u.canDeactivate(e,t,i,r):z(c,()=>u(e,t,i,r));return q(l).pipe(k())});return d(o).pipe(st())}function Ri(e,t,i,r){let n=t.canLoad;if(n===void 0||n.length===0)return d(!0);let s=n.map(o=>{let a=ot(o,e),c=ai(a)?a.canLoad(t,i):z(e,()=>a(t,i));return q(c)});return d(s).pipe(st(),hn(r))}function hn(e){return er(R(t=>{if(it(t))throw an(e,t)}),C(t=>t===!0))}function Si(e,t,i,r){let n=t.canMatch;if(!n||n.length===0)return d(!0);let s=n.map(o=>{let a=ot(o,e),c=hi(a)?a.canMatch(t,i):z(e,()=>a(t,i));return q(c)});return d(s).pipe(st(),hn(r))}var At=class{constructor(t){this.segmentGroup=t||null}},Kt=class extends Error{constructor(t){super(),this.urlTree=t}};function J(e){return ct(new At(e))}function wi(e){return ct(new w(4e3,!1))}function bi(e){return ct(un(!1,E.GuardRejected))}var Fe=class{constructor(t,i){this.urlSerializer=t,this.urlTree=i}lineralizeSegments(t,i){let r=[],n=i.root;for(;;){if(r=r.concat(n.segments),n.numberOfChildren===0)return d(r);if(n.numberOfChildren>1||!n.children[f])return wi(t.redirectTo);n=n.children[f]}}applyRedirectCommands(t,i,r){let n=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,r);if(i.startsWith("/"))throw new Kt(n);return n}applyRedirectCreateUrlTree(t,i,r,n){let s=this.createSegmentGroup(t,i.root,r,n);return new F(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){let r={};return Object.entries(t).forEach(([n,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);r[n]=i[a]}else r[n]=s}),r}createSegmentGroup(t,i,r,n){let s=this.createSegments(t,i.segments,r,n),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(t,c,r,n)}),new m(s,o)}createSegments(t,i,r,n){return i.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,n):this.findOrReturn(s,r))}findPosParam(t,i,r){let n=r[i.path.substring(1)];if(!n)throw new w(4001,!1);return n}findOrReturn(t,i){let r=0;for(let n of i){if(n.path===t.path)return i.splice(r),n;r++}return t}},_e={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ii(e,t,i,r,n){let s=Ke(e,t,i);return s.matched?(r=Jn(t,r),Si(r,t,i,n).pipe(C(o=>o===!0?s:h({},_e)))):d(s)}function Ke(e,t,i){if(t.path==="**")return Ai(i);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||i.length>0)?h({},_e):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let n=(t.matcher||Rn)(i,e,t);if(!n)return h({},_e);let s={};Object.entries(n.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=n.consumed.length>0?h(h({},s),n.consumed[n.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:n.consumed,remainingSegments:i.slice(n.consumed.length),parameters:o,positionalParamSegments:n.posParams??{}}}function Ai(e){return{matched:!0,parameters:e.length>0?Vr(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Fr(e,t,i,r){return i.length>0&&Ti(e,i,r)?{segmentGroup:new m(t,Mi(r,new m(i,e.children))),slicedSegments:[]}:i.length===0&&Ei(e,i,r)?{segmentGroup:new m(e.segments,Di(e,i,r,e.children)),slicedSegments:i}:{segmentGroup:new m(e.segments,e.children),slicedSegments:i}}function Di(e,t,i,r){let n={};for(let s of i)if(Xt(e,t,s)&&!r[N(s)]){let o=new m([],{});n[N(s)]=o}return h(h({},r),n)}function Mi(e,t){let i={};i[f]=t;for(let r of e)if(r.path===""&&N(r)!==f){let n=new m([],{});i[N(r)]=n}return i}function Ti(e,t,i){return i.some(r=>Xt(e,t,r)&&N(r)!==f)}function Ei(e,t,i){return i.some(r=>Xt(e,t,r))}function Xt(e,t,i){return(e.hasChildren()||t.length>0)&&i.pathMatch==="full"?!1:i.path===""}function Oi(e,t,i,r){return N(e)!==r&&(r===f||!Xt(t,i,e))?!1:Ke(t,e,i).matched}function Ui(e,t,i){return t.length===0&&!e.children[i]}var qe=class{};function xi(e,t,i,r,n,s,o="emptyOnly"){return new Ve(e,t,i,r,n,o,s).recognize()}var Pi=31,Ve=class{constructor(t,i,r,n,s,o,a){this.injector=t,this.configLoader=i,this.rootComponentType=r,this.config=n,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new Fe(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new w(4002,`'${t.segmentGroup}'`)}recognize(){let t=Fr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(C(i=>{let r=new bt([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},f,this.rootComponentType,null,{}),n=new A(r,i),s=new Qt("",n),o=zn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,f).pipe(K(r=>{if(r instanceof Kt)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof At?this.noMatchError(r):r}))}inheritParamsAndData(t,i){let r=t.value,n=We(r,i,this.paramsInheritanceStrategy);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach(s=>this.inheritParamsAndData(s,r))}processSegmentGroup(t,i,r,n){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,i,r):this.processSegment(t,i,r,r.segments,n,!0).pipe(C(s=>s instanceof A?[s]:[]))}processChildren(t,i,r){let n=[];for(let s of Object.keys(r.children))s==="primary"?n.unshift(s):n.push(s);return M(n).pipe(lt(s=>{let o=r.children[s],a=ti(i,s);return this.processSegmentGroup(t,a,o,s)}),ar((s,o)=>(s.push(...o),s)),oe(null),or(),T(s=>{if(s===null)return J(r);let o=dn(s);return $i(o),d(o)}))}processSegment(t,i,r,n,s,o){return M(i).pipe(lt(a=>this.processSegmentAgainstRoute(a._injector??t,i,a,r,n,s,o).pipe(K(c=>{if(c instanceof At)return d(null);throw c}))),k(a=>!!a),K(a=>{if(ln(a))return Ui(r,n,s)?d(new qe):J(r);throw a}))}processSegmentAgainstRoute(t,i,r,n,s,o,a){return Oi(r,n,s,o)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,n,r,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,n,i,r,s,o):J(n):J(n)}expandSegmentAgainstRouteUsingRedirect(t,i,r,n,s,o){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=Ke(i,n,s);if(!a)return J(i);n.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Pi&&(this.allowRedirects=!1));let v=this.applyRedirects.applyRedirectCommands(c,n.redirectTo,u);return this.applyRedirects.lineralizeSegments(n,v).pipe(T(g=>this.processSegment(t,r,i,g.concat(l),o,!1)))}matchSegmentAgainstRoute(t,i,r,n,s){let o=Ii(i,r,n,t,this.urlSerializer);return r.path==="**"&&(i.children={}),o.pipe(x(a=>a.matched?(t=r._injector??t,this.getChildConfig(t,r,n).pipe(x(({routes:c})=>{let u=r._loadedInjector??t,{consumedSegments:l,remainingSegments:v,parameters:g}=a,y=new bt(l,g,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ji(r),N(r),r.component??r._loadedComponent??null,r,Li(r)),{segmentGroup:at,slicedSegments:ut}=Fr(i,l,v,c);if(ut.length===0&&at.hasChildren())return this.processChildren(u,c,at).pipe(C(V=>V===null?null:new A(y,V)));if(c.length===0&&ut.length===0)return d(new A(y,[]));let te=N(r)===s;return this.processSegment(u,c,at,ut,te?f:s,!0).pipe(C(V=>new A(y,V instanceof A?[V]:[])))}))):J(i)))}getChildConfig(t,i,r){return i.children?d({routes:i.children,injector:t}):i.loadChildren?i._loadedRoutes!==void 0?d({routes:i._loadedRoutes,injector:i._loadedInjector}):Ri(t,i,r,this.urlSerializer).pipe(T(n=>n?this.configLoader.loadChildren(t,i).pipe(R(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):bi(i))):d({routes:[],injector:t})}};function $i(e){e.sort((t,i)=>t.value.outlet===f?-1:i.value.outlet===f?1:t.value.outlet.localeCompare(i.value.outlet))}function Ni(e){let t=e.value.routeConfig;return t&&t.path===""}function dn(e){let t=[],i=new Set;for(let r of e){if(!Ni(r)){t.push(r);continue}let n=t.find(s=>r.value.routeConfig===s.value.routeConfig);n!==void 0?(n.children.push(...r.children),i.add(n)):t.push(r)}for(let r of i){let n=dn(r.children);t.push(new A(r.value,n))}return t.filter(r=>!i.has(r))}function ji(e){return e.data||{}}function Li(e){return e.resolve||{}}function ki(e,t,i,r,n,s){return T(o=>xi(e,t,i,r,o.extractedUrl,n,s).pipe(C(({state:a,tree:c})=>I(h({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function zi(e,t){return T(i=>{let{targetSnapshot:r,guards:{canActivateChecks:n}}=i;if(!n.length)return d(i);let s=new Set(n.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let u of fn(c))o.add(u);let a=0;return M(o).pipe(lt(c=>s.has(c)?Fi(c,r,e,t):(c.data=We(c,c.parent,e).resolve,d(void 0))),R(()=>a++),ae(1),T(c=>a===o.size?d(i):B))})}function fn(e){let t=e.children.map(i=>fn(i)).flat();return[e,...t]}function Fi(e,t,i,r){let n=e.routeConfig,s=e._resolve;return n?.title!==void 0&&!sn(n)&&(s[Dt]=n.title),_i(s,e,t,r).pipe(C(o=>(e._resolvedData=o,e.data=We(e,e.parent,i).resolve,null)))}function _i(e,t,i,r){let n=ye(e);if(n.length===0)return d({});let s={};return M(n).pipe(T(o=>qi(e[o],t,i,r).pipe(k(),R(a=>{s[o]=a}))),ae(1),sr(s),K(o=>ln(o)?B:ct(o)))}function qi(e,t,i,r){let n=Mt(t)??r,s=ot(e,n),o=s.resolve?s.resolve(t,i):z(n,()=>s(t,i));return q(o)}function me(e){return x(t=>{let i=e(t);return i?M(i).pipe(C(()=>t)):d(t)})}var pn=(()=>{let t=class t{buildTitle(r){let n,s=r.root;for(;s!==void 0;)n=this.getResolvedTitleForRoute(s)??n,s=s.children.find(o=>o.outlet===f);return n}getResolvedTitleForRoute(r){return r.data[Dt]}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=b({token:t,factory:()=>p(Vi),providedIn:"root"});let e=t;return e})(),Vi=(()=>{let t=class t extends pn{constructor(r){super(),this.title=r}updateTitle(r){let n=this.buildTitle(r);n!==void 0&&this.title.setTitle(n)}};t.\u0275fac=function(n){return new(n||t)(hr(Nr))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ye=new P("",{providedIn:"root",factory:()=>({})}),Xe=new P(""),Bi=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(de)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return d(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let n=q(r.loadComponent()).pipe(C(gn),R(o=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=o}),Et(()=>{this.componentLoaders.delete(r)})),s=new re(n,()=>new L).pipe(ee());return this.componentLoaders.set(r,s),s}loadChildren(r,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return d({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=Hi(n,this.compiler,r,this.onLoadEndListener).pipe(Et(()=>{this.childrenLoaders.delete(n)})),a=new re(o,()=>new L).pipe(ee());return this.childrenLoaders.set(n,a),a}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Hi(e,t,i,r){return q(e.loadChildren()).pipe(C(gn),T(n=>n instanceof Rr||Array.isArray(n)?d(n):M(t.compileModuleAsync(n))),C(n=>{r&&r(e);let s,o,a=!1;return Array.isArray(n)?(o=n,a=!0):(s=n.create(i).injector,o=s.get(Xe,[],{optional:!0,self:!0}).flat()),{routes:o.map(Ze),injector:s}}))}function Wi(e){return e&&typeof e=="object"&&"default"in e}function gn(e){return Wi(e)?e.default:e}var Je=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=b({token:t,factory:()=>p(Gi),providedIn:"root"});let e=t;return e})(),Gi=(()=>{let t=class t{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,n){return r}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),vn=new P(""),mn=new P("");function Qi(e,t,i){let r=e.get(mn),n=e.get($r);return e.get(ht).runOutsideAngular(()=>{if(!n.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,Promise.resolve();let s,o=new Promise(u=>{s=u}),a=n.startViewTransition(()=>(s(),Zi(e))),{onViewTransitionCreated:c}=r;return c&&z(e,()=>c({transition:a,from:t,to:i})),o})}function Zi(e){return new Promise(t=>{mr(t,{injector:e})})}var Ki=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new L,this.transitionAbortSubject=new L,this.configLoader=p(Bi),this.environmentInjector=p(Pt),this.urlSerializer=p(He),this.rootContexts=p(Yt),this.location=p(jt),this.inputBindingEnabled=p(Qe,{optional:!0})!==null,this.titleStrategy=p(pn),this.options=p(Ye,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Je),this.createViewTransition=p(vn,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>d(void 0),this.rootComponentType=null;let r=s=>this.events.next(new Te(s)),n=s=>this.events.next(new Ee(s));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=r}complete(){this.transitions?.complete()}handleNavigationRequest(r){let n=++this.navigationId;this.transitions?.next(I(h(h({},this.transitions.value),r),{id:n}))}setupNavigations(r,n,s){return this.transitions=new D({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:vt,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Z(o=>o.id!==0),C(o=>I(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),x(o=>{this.currentTransition=o;let a=!1,c=!1;return d(o).pipe(R(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?I(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),x(u=>{let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=u.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!l&&v!=="reload"){let g="";return this.events.next(new G(u.id,this.urlSerializer.serialize(u.rawUrl),g,be.IgnoredSameUrlNavigation)),u.resolve(null),B}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return d(u).pipe(x(g=>{let y=this.transitions?.getValue();return this.events.next(new yt(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),y!==this.transitions?.getValue()?B:Promise.resolve(g)}),ki(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),R(g=>{o.targetSnapshot=g.targetSnapshot,o.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation=I(h({},this.currentNavigation),{finalUrl:g.urlAfterRedirects});let y=new Ht(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(y)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:g,extractedUrl:y,source:at,restoredState:ut,extras:te}=u,V=new yt(g,this.urlSerializer.serialize(y),at,ut);this.events.next(V);let yn=rn(this.rootComponentType).snapshot;return this.currentTransition=o=I(h({},u),{targetSnapshot:yn,urlAfterRedirects:y,extras:I(h({},te),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,d(o)}else{let g="";return this.events.next(new G(u.id,this.urlSerializer.serialize(u.extractedUrl),g,be.IgnoredByUrlHandlingStrategy)),u.resolve(null),B}}),R(u=>{let l=new Ie(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),C(u=>(this.currentTransition=o=I(h({},u),{guards:ri(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),di(this.environmentInjector,u=>this.events.next(u)),R(u=>{if(o.guardsResult=u.guardsResult,it(u.guardsResult))throw an(this.urlSerializer,u.guardsResult);let l=new Ae(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),Z(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",E.GuardRejected),!1)),me(u=>{if(u.guards.canActivateChecks.length)return d(u).pipe(R(l=>{let v=new De(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(v)}),x(l=>{let v=!1;return d(l).pipe(zi(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>v=!0,complete:()=>{v||this.cancelNavigationTransition(l,"",E.NoDataFromResolver)}}))}),R(l=>{let v=new Me(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(v)}))}),me(u=>{let l=v=>{let g=[];v.routeConfig?.loadComponent&&!v.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(v.routeConfig).pipe(R(y=>{v.component=y}),C(()=>{})));for(let y of v.children)g.push(...l(y));return g};return ne(l(u.targetSnapshot.root)).pipe(oe(null),Y(1))}),me(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:u,targetSnapshot:l}=o,v=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return v?M(v).pipe(C(()=>o)):d(o)}),C(u=>{let l=Qn(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=I(h({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),R(()=>{this.events.next(new St)}),ei(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Y(1),R({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new j(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),cr(this.transitionAbortSubject.pipe(R(u=>{throw u}))),Et(()=>{!a&&!c&&this.cancelNavigationTransition(o,"",E.SupersededByNewNavigation),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),K(u=>{if(c=!0,cn(u))this.events.next(new _(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),Yn(u)?this.events.next(new wt(u.url)):o.resolve(!1);else{this.events.next(new Rt(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0));try{o.resolve(r.errorHandler(u))}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return B}))}))}cancelNavigationTransition(r,n,s){let o=new _(r.id,this.urlSerializer.serialize(r.extractedUrl),n,s);this.events.next(o),r.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Yi(e){return e!==vt}var Xi=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=b({token:t,factory:()=>p(Ji),providedIn:"root"});let e=t;return e})(),Be=class{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}},Ji=(()=>{let t=class t extends Be{};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=ce(t)))(s||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Cn=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=b({token:t,factory:()=>p(ts),providedIn:"root"});let e=t;return e})(),ts=(()=>{let t=class t extends Cn{constructor(){super(...arguments),this.location=p(jt),this.urlSerializer=p(He),this.options=p(Ye,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Je),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new F,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=rn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(n=>{n.type==="popstate"&&r(n.url,n.state)})}handleRouterEvent(r,n){if(r instanceof yt)this.stateMemento=this.createStateMemento();else if(r instanceof G)this.rawUrlTree=n.initialUrl;else if(r instanceof Ht){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(s,n)}}else r instanceof St?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n))):r instanceof _&&(r.code===E.GuardRejected||r.code===E.NoDataFromResolver)?this.restoreHistory(n):r instanceof Rt?this.restoreHistory(n,!0):r instanceof j&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,n){let s=this.urlSerializer.serialize(r);if(this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl){let o=this.browserPageId,a=h(h({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(s,"",a)}else{let o=h(h({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(r,n=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===r.finalUrl&&o===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,n){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:n}:{navigationId:r}}};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=ce(t)))(s||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),pt=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(pt||{});function es(e,t){e.events.pipe(Z(i=>i instanceof j||i instanceof _||i instanceof Rt||i instanceof G),C(i=>i instanceof j||i instanceof G?pt.COMPLETE:(i instanceof _?i.code===E.Redirect||i.code===E.SupersededByNewNavigation:!1)?pt.REDIRECTING:pt.FAILED),Z(i=>i!==pt.REDIRECTING),Y(1)).subscribe(()=>{t()})}function rs(e){throw e}var ns={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},is={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Jt=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=p(Ur),this.stateManager=p(Cn),this.options=p(Ye,{optional:!0})||{},this.pendingTasks=p(wr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(Ki),this.urlSerializer=p(He),this.location=p(jt),this.urlHandlingStrategy=p(Je),this._events=new L,this.errorHandler=this.options.errorHandler||rs,this.navigated=!1,this.routeReuseStrategy=p(Xi),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(Xe,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Qe,{optional:!0}),this.eventsSubscription=new tr,this.isNgZoneEnabled=p(ht)instanceof ht&&ht.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:r=>{this.console.warn(r)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(n=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof _&&n.code!==E.Redirect&&n.code!==E.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof j)this.navigated=!0;else if(n instanceof wt){let a=this.urlHandlingStrategy.merge(n.url,s.currentRawUrl),c={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Yi(s.source)};this.scheduleNavigation(a,vt,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}os(n)&&this._events.next(n)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),vt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",n)},0)})}navigateToSyncWithBrowser(r,n,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let u=h({},s);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(r);this.scheduleNavigation(c,n,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(Ze),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(r,n={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:u}=n,l=u?this.currentUrlTree.fragment:a,v=null;switch(c){case"merge":v=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=o||null}v!==null&&(v=this.removeEmptyProps(v));let g;try{let y=s?s.snapshot:this.routerState.snapshot.root;g=Xr(y)}catch{(typeof r[0]!="string"||!r[0].startsWith("/"))&&(r=[]),g=this.currentUrlTree.root}return Jr(g,r,v,l??null)}navigateByUrl(r,n={skipLocationChange:!1}){let s=it(r)?r:this.parseUrl(r),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,vt,null,n)}navigate(r,n={skipLocationChange:!1}){return ss(r),this.navigateByUrl(this.createUrlTree(r,n),n)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,n){let s;if(n===!0?s=h({},ns):n===!1?s=h({},is):s=n,it(r))return jr(this.currentUrlTree,r,s);let o=this.parseUrl(r);return jr(this.currentUrlTree,o,s)}removeEmptyProps(r){return Object.entries(r).reduce((n,[s,o])=>(o!=null&&(n[s]=o),n),{})}scheduleNavigation(r,n,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((g,y)=>{c=g,u=y});let v=this.pendingTasks.add();return es(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:o,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(g=>Promise.reject(g))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ss(e){for(let t=0;t{let t=class t{constructor(r,n,s,o,a,c){this.router=r,this.route=n,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=c,this.href=null,this.commands=null,this.onChanges=new L,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=r.events.subscribe(l=>{l instanceof j&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(r){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",r)}ngOnChanges(r){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(r){r!=null?(this.commands=Array.isArray(r)?r:[r],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(r,n,s,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(r!==0||n||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let r=this.urlTree;this.href=r!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(r)):null;let n=this.href===null?null:vr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(r,n){let s=this.renderer,o=this.el.nativeElement;n!==null?s.setAttribute(o,r,n):s.removeAttribute(o,r)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};t.\u0275fac=function(n){return new(n||t)(U(Jt),U(Q),fr("tabindex"),U(he),U(le),U(fe))},t.\u0275dir=Ut({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,s){n&1&&Dr("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&br("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Ot.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Nt],skipLocationChange:[Ot.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Nt],replaceUrl:[Ot.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Nt],routerLink:"routerLink"},standalone:!0,features:[Cr,xt]});let e=t;return e})(),Qs=(()=>{let t=class t{get isActive(){return this._isActive}constructor(r,n,s,o,a){this.router=r,this.element=n,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new X,this.routerEventsSubscription=r.events.subscribe(c=>{c instanceof j&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(ie()).subscribe(r=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let r=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=M(r).pipe(ie()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(r){let n=Array.isArray(r)?r:r.split(" ");this.classes=n.filter(s=>!!s)}ngOnChanges(r){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let r=this.hasActiveLinks();this._isActive!==r&&(this._isActive=r,this.cdr.markForCheck(),this.classes.forEach(n=>{r?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),r&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(r))})}isLinkActive(r){let n=as(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?r.isActive(o,n):!1}}hasActiveLinks(){let r=this.isLinkActive(this.router);return this.link&&r(this.link)||this.links.some(r)}};t.\u0275fac=function(n){return new(n||t)(U(Jt),U(le),U(he),U($t),U(_r,8))},t.\u0275dir=Ut({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,s,o){if(n&1&&Mr(o,_r,5),n&2){let a;Tr(a=Er())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[xt]});let e=t;return e})();function as(e){return!!e.paths}var us=new P("");function Zs(e,...t){return pr([{provide:Xe,multi:!0,useValue:e},[],{provide:Q,useFactory:cs,deps:[Jt]},{provide:xr,multi:!0,useFactory:hs},t.map(i=>i.\u0275providers)])}function cs(e){return e.routerState.root}function ls(e,t){return{\u0275kind:e,\u0275providers:t}}function hs(){let e=p(gr);return t=>{let i=e.get(Pr);if(t!==i.components[0])return;let r=e.get(Jt),n=e.get(ds);e.get(fs)===1&&r.initialNavigation(),e.get(ps,null,ue.Optional)?.setUpPreloading(),e.get(us,null,ue.Optional)?.init(),r.resetRootComponentType(i.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var ds=new P("",{factory:()=>new L}),fs=new P("",{providedIn:"root",factory:()=>1});var ps=new P("");function Ks(e){let t=[{provide:vn,useValue:Qi},{provide:mn,useValue:h({skipNextTransition:!!e?.skipInitialTransition},e)}];return ls(9,t)}export{j as a,Q as b,Gn as c,Jt as d,_r as e,Qs as f,Zs as g,Ks as h};