@skill-map/cli 0.20.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{$ as st,$b as ct,A as Gt,C as zn,Ca as Jn,D as U,Da as Xn,E as ve,F as j,Fa as er,G as w,Ga as tr,Gb as lr,H as qn,Ic as Sr,J as y,Ja as nr,K as Qt,L as Bn,Lc as Cr,M as O,Mc as Ir,N as ot,O as d,P as Vn,Q as J,Qb as cr,Qc as Tr,R as P,Rb as b,Sb as I,Tb as ur,Tc as rn,Ub as dr,V as Zt,Va as rr,Wb as le,X as K,Y as Wn,Z as se,_ as Yt,a as kn,ac as H,b as Un,ba as v,bc as me,c as tt,ca as at,cd as pt,d as oe,da as xe,dc as hr,dd as Er,e as L,ea as Le,eb as ir,f as _,fa as Kn,fc as pr,ga as Jt,gc as ut,h as M,i as g,j as jn,jb as or,k as Vt,ka as Gn,l as $n,lb as sr,mb as ar,n as E,o as Wt,oc as fr,p as V,q as Kt,qa as Xt,r as Fn,ra as A,s as nt,sa as lt,ta as Qn,u as W,ua as en,uc as gr,v as rt,va as Zn,w as it,wa as tn,wc as wr,x as ge,xa as ae,y as Hn,z as Y,za as Yn}from"./chunk-W3JLG7BI.js";import{D as X,M as Rr,a as _e,h as vr,i as mr,j as yr,m as z,p as nn,r as dt,s as br,u as ht}from"./chunk-3R7E3HPC.js";import{a as u,b as C}from"./chunk-Q7L6LLAK.js";var p="primary",Ze=Symbol("RouteTitle"),cn=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ue(t){return new cn(t)}function on(t,r,e){for(let n=0;n<t.length;n++){let i=t[n],o=r[n];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Lr(t,r,e){let n=e.path.split("/"),i=n.indexOf("**");if(i===-1){if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let l={},c=t.slice(0,n.length);return on(n,c,l)?{consumed:c,posParams:l}:null}if(i!==n.lastIndexOf("**"))return null;let o=n.slice(0,i),s=n.slice(i+1);if(o.length+s.length>t.length||e.pathMatch==="full"&&r.hasChildren()&&e.path!=="**")return null;let a={};return!on(o,t.slice(0,o.length),a)||!on(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function bt(t){return new Promise((r,e)=>{t.pipe(Y()).subscribe({next:n=>r(n),error:n=>e(n)})})}function Li(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!q(t[e],r[e]))return!1;return!0}function q(t,r){let e=t?un(t):void 0,n=r?un(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!_r(t[i],r[i]))return!1;return!0}function un(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function _r(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function _i(t){return t.length>0?t[t.length-1]:null}function pe(t){return Vt(t)?t:Xn(t)?M(Promise.resolve(t)):g(t)}function Pr(t){return Vt(t)?bt(t):Promise.resolve(t)}var Pi={exact:Ur,subset:jr},kr={exact:ki,subset:Ui,ignored:()=>!0},In={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Tn(t,r,e){let n=t instanceof D?t:r.parseUrl(t);return I(()=>dn(r.lastSuccessfulNavigation()?.finalUrl??new D,n,u(u({},Fe),e)))}function dn(t,r,e){return Pi[e.paths](t.root,r.root,e.matrixParams)&&kr[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function ki(t,r){return q(t,r)}function Ur(t,r,e){if(!ce(t.segments,r.segments)||!vt(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!Ur(t.children[n],r.children[n],e))return!1;return!0}function Ui(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>_r(t[e],r[e]))}function jr(t,r,e){return $r(t,r,r.segments,e)}function $r(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ce(i,e)||r.hasChildren()||!vt(i,e,n))}else if(t.segments.length===e.length){if(!ce(t.segments,e)||!vt(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!jr(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ce(t.segments,i)||!vt(t.segments,i,n)||!t.children[p]?!1:$r(t.children[p],r,o,n)}}function vt(t,r,e){return r.every((n,i)=>kr[e](t[i].parameters,n.parameters))}var D=class{root;queryParams;fragment;_queryParamMap;constructor(r=new m([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ue(this.queryParams),this._queryParamMap}toString(){return Fi.serialize(this)}},m=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return mt(this)}},ee=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=ue(this.parameters),this._parameterMap}toString(){return Hr(this)}};function ji(t,r){return ce(t,r)&&t.every((e,n)=>q(e.parameters,r[n].parameters))}function ce(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function $i(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var Ee=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>new te,providedIn:"root"})}return t})(),te=class{parse(r){let e=new pn(r);return new D(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${Pe(r.root,!0)}`,n=qi(r.queryParams),i=typeof r.fragment=="string"?`#${Hi(r.fragment)}`:"";return`${e}${n}${i}`}},Fi=new te;function mt(t){return t.segments.map(r=>Hr(r)).join("/")}function Pe(t,r){if(!t.hasChildren())return mt(t);if(r){let e=t.children[p]?Pe(t.children[p],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${Pe(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=$i(t,(n,i)=>i===p?[Pe(t.children[p],!1)]:[`${i}:${Pe(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${mt(t)}/${e[0]}`:`${mt(t)}/(${e.join("//")})`}}function Fr(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ft(t){return Fr(t).replace(/%3B/gi,";")}function Hi(t){return encodeURI(t)}function hn(t){return Fr(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yt(t){return decodeURIComponent(t)}function Or(t){return yt(t.replace(/\+/g,"%20"))}function Hr(t){return`${hn(t.path)}${zi(t.parameters)}`}function zi(t){return Object.entries(t).map(([r,e])=>`;${hn(r)}=${hn(e)}`).join("")}function qi(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${ft(e)}=${ft(i)}`).join("&"):`${ft(e)}=${ft(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Bi=/^[^\/()?;#]+/;function sn(t){let r=t.match(Bi);return r?r[0]:""}var Vi=/^[^\/()?;=#]+/;function Wi(t){let r=t.match(Vi);return r?r[0]:""}var Ki=/^[^=?&#]+/;function Gi(t){let r=t.match(Ki);return r?r[0]:""}var Qi=/^[^&#]+/;function Zi(t){let r=t.match(Qi);return r?r[0]:""}var pn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(r=0){if(r>50)throw new w(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,r));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,r)),(e.length>0||Object.keys(n).length>0)&&(i[p]=new m(e,n)),i}parseSegment(){let r=sn(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new ee(yt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=Wi(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=sn(this.remaining);i&&(n=i,this.capture(n))}r[yt(e)]=yt(n)}parseQueryParam(r){let e=Gi(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=Zi(this.remaining);s&&(n=s,this.capture(n))}let i=Or(e),o=Or(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=sn(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new w(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=p);let a=this.parseChildren(e+1);n[s??p]=Object.keys(a).length===1&&a[p]?a[p]:new m([],a),this.consumeOptional("//")}return n}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new w(4011,!1)}};function zr(t){return t.segments.length>0?new m([],{[p]:t}):t}function qr(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=qr(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new m(t.segments,r);return Yi(e)}function Yi(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new m(t.segments.concat(r.segments),r.children)}return t}function ne(t){return t instanceof D}function Br(t,r,e=null,n=null,i=new te){let o=Vr(t);return Wr(o,r,e,n,i)}function Vr(t){let r;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new m(o.url,s);return o===t&&(r=a),a}let n=e(t.root),i=zr(n);return r??i}function Wr(t,r,e,n,i){let o=t;for(;o.parent;)o=o.parent;if(r.length===0)return an(o,o,o,e,n,i);let s=Ji(r);if(s.toRoot())return an(o,o,new m([],{}),e,n,i);let a=Xi(s,o,t),l=a.processChildren?Ue(a.segmentGroup,a.index,s.commands):Gr(a.segmentGroup,a.index,s.commands);return an(o,a.segmentGroup,l,e,n,i)}function Rt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function He(t){return typeof t=="object"&&t!=null&&t.outlets}function Dr(t,r,e){t||="\u0275";let n=new D;return n.queryParams={[t]:r},e.parse(e.serialize(n)).queryParams[t]}function an(t,r,e,n,i,o){let s={};for(let[c,h]of Object.entries(n??{}))s[c]=Array.isArray(h)?h.map(f=>Dr(c,f,o)):Dr(c,h,o);let a;t===r?a=e:a=Kr(t,r,e);let l=zr(qr(a));return new D(l,s,i)}function Kr(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=Kr(o,r,e)}),new m(t.segments,n)}var wt=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&Rt(n[0]))throw new w(4003,!1);let i=n.find(He);if(i&&i!==_i(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ji(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new wt(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new wt(e,r,n)}var be=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function Xi(t,r,e){if(t.isAbsolute)return new be(r,!0,0);if(!e)return new be(r,!1,NaN);if(e.parent===null)return new be(e,!0,0);let n=Rt(t.commands[0])?0:1,i=e.segments.length-1+n;return eo(e,i,t.numberOfDoubleDots)}function eo(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new be(n,!1,i-o)}function to(t){return He(t[0])?t[0].outlets:{[p]:t}}function Gr(t,r,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return Ue(t,r,e);let n=no(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,n.pathIndex),{});return o.children[p]=new m(t.segments.slice(n.pathIndex),t.children),Ue(o,0,i)}else return n.match&&i.length===0?new m(t.segments,{}):n.match&&!t.hasChildren()?fn(t,r,e):n.match?Ue(t,0,i):fn(t,r,e)}function Ue(t,r,e){if(e.length===0)return new m(t.segments,{});{let n=to(e),i={};if(Object.keys(n).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=Ue(t.children[p],r,e);return new m(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Gr(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new m(t.segments,i)}}function no(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],a=e[n];if(He(a))break;let l=`${a}`,c=n<e.length-1?e[n+1]:null;if(i>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Ar(l,c,s))return o;n+=2}else{if(!Ar(l,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function fn(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(He(o)){let l=ro(o.outlets);return new m(n,l)}if(i===0&&Rt(e[0])){let l=t.segments[r];n.push(new ee(l.path,Mr(e[0]))),i++;continue}let s=He(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&Rt(a)?(n.push(new ee(s,Mr(a))),i+=2):(n.push(new ee(s,{})),i++)}return new m(n,{})}function ro(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=fn(new m([],{}),0,n))}),r}function Mr(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function Ar(t,r,e){return t==e.path&&q(r,e.parameters)}var je="imperative",S=(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})(S||{}),x=class{id;url;constructor(r,e){this.id=r,this.url=e}},de=class extends x{type=S.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},F=class extends x{urlAfterRedirects;type=S.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(T||{}),ze=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(ze||{}),k=class extends x{reason;code;type=S.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Qr(t){return t instanceof k&&(t.code===T.Redirect||t.code===T.SupersededByNewNavigation)}var Q=class extends x{reason;code;type=S.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},he=class extends x{error;target;type=S.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},qe=class extends x{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},St=class extends x{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ct=class extends x{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},It=class extends x{urlAfterRedirects;state;type=S.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tt=class extends x{urlAfterRedirects;state;type=S.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Et=class{route;type=S.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ot=class{route;type=S.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Dt=class{snapshot;type=S.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mt=class{snapshot;type=S.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At=class{snapshot;type=S.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nt=class{snapshot;type=S.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var we=class{},Be=class{},Se=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function io(t){return!(t instanceof we)&&!(t instanceof Se)&&!(t instanceof Be)}var xt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Oe(this.rootInjector)}},Oe=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new xt(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(ot(J))};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lt=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=gn(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=gn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=vn(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return vn(r,this._root).map(e=>e.value)}};function gn(t,r){if(t===r.value)return r;for(let e of r.children){let n=gn(t,e);if(n)return n}return null}function vn(t,r){if(t===r.value)return[r];for(let e of r.children){let n=vn(t,e);if(n.length)return n.unshift(r),n}return[]}var N=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function ye(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var Ve=class extends Lt{snapshot;constructor(r,e){super(r),this.snapshot=e,On(this,r)}toString(){return this.snapshot.toString()}};function Zr(t,r){let e=oo(t,r),n=new L([new ee("",{})]),i=new L({}),o=new L({}),s=new L({}),a=new L(""),l=new Z(n,i,s,a,o,p,t,e.root);return l.snapshot=e.root,new Ve(new N(l,[]),e)}function oo(t,r){let e={},n={},i={},s=new Ce([],e,i,"",n,p,t,null,{},r);return new We("",new N(s,[]))}var Z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,a,l){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(E(c=>c[Ze]))??g(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(E(r=>ue(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(E(r=>ue(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function En(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:u(u({},r.params),t.params),data:u(u({},r.data),t.data),resolve:u(u(u(u({},t.data),r.data),i?.data),t._resolvedData)}:n={params:u({},t.params),data:u({},t.data),resolve:u(u({},t.data),t._resolvedData??{})},i&&Jr(i)&&(n.resolve[Ze]=i.title),n}var Ce=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ze]}constructor(r,e,n,i,o,s,a,l,c,h){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c,this._environmentInjector=h}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??=ue(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ue(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},We=class extends Lt{url;constructor(r,e){super(e),this.url=r,On(this,e)}toString(){return Yr(this._root)}};function On(t,r){r.value._routerState=t,r.children.forEach(e=>On(t,e))}function Yr(t){let r=t.children.length>0?` { ${t.children.map(Yr).join(", ")} } `:"";return`${t.value}${r}`}function ln(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,q(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),q(r.params,e.params)||t.paramsSubject.next(e.params),Li(r.url,e.url)||t.urlSubject.next(e.url),q(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function mn(t,r){let e=q(t.params,r.params)&&ji(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||mn(t.parent,r.parent))}function Jr(t){return typeof t.title=="string"||t.title===null}var Xr=new O(""),Dn=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new se;deactivateEvents=new se;attachEvents=new se;detachEvents=new se;routerOutletData=le();parentContexts=d(Oe);location=d(lt);changeDetector=d(ct);inputBinder=d(Ye,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new 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 e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new yn(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ae({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[xe]})}return t})(),yn=class{route;childContexts;parent;outletData;constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===Z?this.route:r===Oe?this.childContexts:r===Xr?this.outletData:this.parent.get(r,e)}},Ye=new O(""),Mn=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=Wt([n.queryParams,n.params,n.data]).pipe(U(([o,s,a],l)=>(a=u(u(u({},o),s),a),l===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=hr(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})(),An=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Zn({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&rr(0,"router-outlet")},dependencies:[Dn],encapsulation:2})}return t})();function Nn(t){let r=t.children&&t.children.map(Nn),e=r?C(u({},t),{children:r}):u({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=An),e}function so(t,r,e){let n=Ke(t,r._root,e?e._root:void 0);return new Ve(n,r)}function Ke(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=ao(t,r,e);return new N(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>Ke(t,a)),s}}let n=lo(r.value),i=r.children.map(o=>Ke(t,o));return new N(n,i)}}function ao(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Ke(t,n,i);return Ke(t,n)})}function lo(t){return new Z(new L(t.url),new L(t.params),new L(t.queryParams),new L(t.fragment),new L(t.data),t.outlet,t.component,t)}var Ie=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},ei="ngNavigationCancelingError";function _t(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=ne(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=ti(!1,T.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function ti(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[ei]=!0,e.cancellationCode=r,e}function co(t){return ni(t)&&ne(t.url)}function ni(t){return!!t&&t[ei]}var bn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),ln(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ye(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ye(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ye(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=ye(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Nt(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Mt(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(ln(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),ln(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Pt=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},Re=class{component;route;constructor(r,e){this.component=r,this.route=e}};function uo(t,r,e){let n=t._root,i=r?r._root:null;return ke(n,i,e,[n.value])}function ho(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function De(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Bn(t)?t:r.get(t):n}function ke(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye(r);return t.children.forEach(s=>{po(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>$e(a,e.getContext(s),i)),i}function po(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=fo(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Pt(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ke(t,r,a?a.children:null,n,i):ke(t,r,e,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Re(a.outlet.component,s))}else s&&$e(r,a,i),i.canActivateChecks.push(new Pt(n)),o.component?ke(t,null,a?a.children:null,n,i):ke(t,null,e,n,i);return i}function fo(t,r,e){if(typeof e=="function")return P(r._environmentInjector,()=>e(t,r));switch(e){case"pathParamsChange":return!ce(t.url,r.url);case"pathParamsOrQueryParamsChange":return!ce(t.url,r.url)||!q(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mn(t,r)||!q(t.queryParams,r.queryParams);default:return!mn(t,r)}}function $e(t,r,e){let n=ye(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?$e(s,r.children.getContext(o),e):$e(s,null,e):$e(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new Re(r.outlet.component,i)):e.canDeactivateChecks.push(new Re(null,i)):e.canDeactivateChecks.push(new Re(null,i))}function Je(t){return typeof t=="function"}function go(t){return typeof t=="boolean"}function vo(t){return t&&Je(t.canLoad)}function mo(t){return t&&Je(t.canActivate)}function yo(t){return t&&Je(t.canActivateChild)}function bo(t){return t&&Je(t.canDeactivate)}function Ro(t){return t&&Je(t.canMatch)}function ri(t){return t instanceof $n||t?.name==="EmptyError"}var gt=Symbol("INITIAL_VALUE");function Te(){return U(t=>Wt(t.map(r=>r.pipe(ge(1),zn(gt)))).pipe(E(r=>{for(let e of r)if(e!==!0){if(e===gt)return gt;if(e===!1||wo(e))return e}return!0}),W(r=>r!==gt),ge(1)))}function wo(t){return ne(t)||t instanceof Ie}function ii(t){return t.aborted?g(void 0).pipe(ge(1)):new tt(r=>{let e=()=>{r.next(),r.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function oi(t){return ve(ii(t))}function So(t){return V(r=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?g(C(u({},r),{guardsResult:!0})):Co(o,e,n).pipe(V(s=>s&&go(s)?Io(e,i,t):g(s)),E(s=>C(u({},r),{guardsResult:s})))})}function Co(t,r,e){return M(t).pipe(V(n=>Mo(n.component,n.route,e,r)),Y(n=>n!==!0,!0))}function Io(t,r,e){return M(r).pipe(it(n=>Fn(Eo(n.route.parent,e),To(n.route,e),Do(t,n.path),Oo(t,n.route))),Y(n=>n!==!0,!0))}function To(t,r){return t!==null&&r&&r(new At(t)),g(!0)}function Eo(t,r){return t!==null&&r&&r(new Dt(t)),g(!0)}function Oo(t,r){let e=r.routeConfig?r.routeConfig.canActivate:null;if(!e||e.length===0)return g(!0);let n=e.map(i=>nt(()=>{let o=r._environmentInjector,s=De(i,o),a=mo(s)?s.canActivate(r,t):P(o,()=>s(r,t));return pe(a).pipe(Y())}));return g(n).pipe(Te())}function Do(t,r){let e=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(o=>ho(o)).filter(o=>o!==null).map(o=>nt(()=>{let s=o.guards.map(a=>{let l=o.node._environmentInjector,c=De(a,l),h=yo(c)?c.canActivateChild(e,t):P(l,()=>c(e,t));return pe(h).pipe(Y())});return g(s).pipe(Te())}));return g(i).pipe(Te())}function Mo(t,r,e,n){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=r._environmentInjector,l=De(s,a),c=bo(l)?l.canDeactivate(t,r,e,n):P(a,()=>l(t,r,e,n));return pe(c).pipe(Y())});return g(o).pipe(Te())}function Ao(t,r,e,n,i){let o=r.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let l=De(a,t),c=vo(l)?l.canLoad(r,e):P(t,()=>l(r,e)),h=pe(c);return i?h.pipe(oi(i)):h});return g(s).pipe(Te(),si(n))}function si(t){return Un(j(r=>{if(typeof r!="boolean")throw _t(t,r)}),E(r=>r===!0))}function No(t,r,e,n,i,o){let s=r.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(l=>{let c=De(l,t),h=Ro(c)?c.canMatch(r,e,i):P(t,()=>c(r,e,i));return pe(h).pipe(oi(o))});return g(a).pipe(Te(),si(n))}var G=class t extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,t.prototype)}},Ge=class t extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,t.prototype)}};function xo(t){throw new w(4e3,!1)}function Lo(t){throw ti(!1,T.GuardRejected)}var Rn=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}async lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return n;if(i.numberOfChildren>1||!i.children[p])throw xo(`${r.redirectTo}`);i=i.children[p]}}async applyRedirectCommands(r,e,n,i,o){let s=await _o(e,i,o);if(s instanceof D)throw new Ge(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]==="/")throw new Ge(a);return a}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new D(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=e[a]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(r,l,n,i)}),new m(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}};function _o(t,r,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return bt(pe(P(e,()=>n(r))))}function Po(t,r){return t.providers&&!t._injector&&(t._injector=en(t.providers,r,`Route: ${t.path}`)),t._injector??r}function $(t){return t.outlet||p}function ko(t,r){let e=t.filter(n=>$(n)===r);return e.push(...t.filter(n=>$(n)!==r)),e}var wn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ai(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Uo(t,r,e,n,i,o,s){let a=li(t,r,e);if(!a.matched)return g(a);let l=ai(o(a));return n=Po(r,n),No(n,r,e,i,l,s).pipe(E(c=>c===!0?a:u({},wn)))}function li(t,r,e){if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?u({},wn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Lr)(e,t,r);if(!i)return u({},wn);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?u(u({},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 Nr(t,r,e,n,i){return e.length>0&&Fo(t,e,n,i)?{segmentGroup:new m(r,$o(n,new m(e,t.children))),slicedSegments:[]}:e.length===0&&Ho(t,e,n)?{segmentGroup:new m(t.segments,jo(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function jo(t,r,e,n){let i={};for(let o of e)if(Ut(t,r,o)&&!n[$(o)]){let s=new m([],{});i[$(o)]=s}return u(u({},n),i)}function $o(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&$(n)!==p){let i=new m([],{});e[$(n)]=i}return e}function Fo(t,r,e,n){return e.some(i=>!Ut(t,r,i)||!($(i)!==p)?!1:!(n!==void 0&&$(i)===n))}function Ho(t,r,e){return e.some(n=>Ut(t,r,n))}function Ut(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function zo(t,r,e){return r.length===0&&!t.children[e]}var Sn=class{};async function qo(t,r,e,n,i,o,s="emptyOnly",a){return new Cn(t,r,e,n,i,s,o,a).recognize()}var Bo=31,Cn=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,a,l){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=l,this.applyRedirects=new Rn(this.urlSerializer,this.urlTree)}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}async recognize(){let r=Nr(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=await this.match(r),i=new N(n,e),o=new We("",i),s=Br(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(r){let e=new Ce([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,r,p,e),rootSnapshot:e}}catch(n){if(n instanceof Ge)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof G?this.noMatchError(n):n}}async processSegmentGroup(r,e,n,i,o){if(n.segments.length===0&&n.hasChildren())return this.processChildren(r,e,n,o);let s=await this.processSegment(r,e,n,n.segments,i,!0,o);return s instanceof N?[s]:[]}async processChildren(r,e,n,i){let o=[];for(let l of Object.keys(n.children))l==="primary"?o.unshift(l):o.push(l);let s=[];for(let l of o){let c=n.children[l],h=ko(e,l),f=await this.processSegmentGroup(r,h,c,l,i);s.push(...f)}let a=ci(s);return Vo(a),a}async processSegment(r,e,n,i,o,s,a){for(let l of e)try{return await this.processSegmentAgainstRoute(l._injector??r,e,l,n,i,o,s,a)}catch(c){if(c instanceof G||ri(c))continue;throw c}if(zo(n,i,o))return new Sn;throw new G(n)}async processSegmentAgainstRoute(r,e,n,i,o,s,a,l){if($(n)!==s&&(s===p||!Ut(i,o,n)))throw new G(i);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,i,n,o,s,l);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,l);throw new G(i)}async expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,a){let{matched:l,parameters:c,consumedSegments:h,positionalParamSegments:f,remainingSegments:R}=li(e,i,o);if(!l)throw new G(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Bo&&(this.allowRedirects=!1));let re=this.createSnapshot(r,i,o,c,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let B=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,f,ai(re),r),ie=await this.applyRedirects.lineralizeSegments(i,B);return this.processSegment(r,n,e,ie.concat(R),s,!1,a)}createSnapshot(r,e,n,i,o){let s=new Ce(n,i,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Ko(e),$(e),e.component??e._loadedComponent??null,e,Go(e),r),a=En(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(r,e,n,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=et=>this.createSnapshot(r,n,et.consumedSegments,et.parameters,s),l=await bt(Uo(e,n,i,r,this.urlSerializer,a,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new G(e);r=n._injector??r;let{routes:c}=await this.getChildConfig(r,n,i),h=n._loadedInjector??r,{parameters:f,consumedSegments:R,remainingSegments:re}=l,B=this.createSnapshot(r,n,R,f,s),{segmentGroup:ie,slicedSegments:Ae}=Nr(e,R,re,c,o);if(Ae.length===0&&ie.hasChildren()){let et=await this.processChildren(h,c,ie,B);return new N(B,et)}if(c.length===0&&Ae.length===0)return new N(B,[]);let Bt=$(n)===o,Ne=await this.processSegment(h,c,ie,Ae,Bt?p:o,!0,B);return new N(B,Ne instanceof N?[Ne]:[])}async getChildConfig(r,e,n){if(e.children)return{routes:e.children,injector:r};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(r).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await bt(Ao(r,e,n,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(r,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Lo(e)}return{routes:[],injector:r}}};function Vo(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function Wo(t){let r=t.value.routeConfig;return r&&r.path===""}function ci(t){let r=[],e=new Set;for(let n of t){if(!Wo(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=ci(n.children);r.push(new N(n.value,i))}return r.filter(n=>!e.has(n))}function Ko(t){return t.data||{}}function Go(t){return t.resolve||{}}function Qo(t,r,e,n,i,o,s){return V(async a=>{let{state:l,tree:c}=await qo(t,r,e,n,a.extractedUrl,i,o,s);return C(u({},a),{targetSnapshot:l,urlAfterRedirects:c})})}function Zo(t){return V(r=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=r;if(!n.length)return g(r);let i=new Set(n.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let l of ui(a))o.add(l);let s=0;return M(o).pipe(it(a=>i.has(a)?Yo(a,e,t):(a.data=En(a,a.parent,t).resolve,g(void 0))),j(()=>s++),Gt(1),V(a=>s===o.size?g(r):_))})}function ui(t){let r=t.children.map(e=>ui(e)).flat();return[t,...r]}function Yo(t,r,e){let n=t.routeConfig,i=t._resolve;return n?.title!==void 0&&!Jr(n)&&(i[Ze]=n.title),nt(()=>(t.data=En(t,t.parent,e).resolve,Jo(i,t,r).pipe(E(o=>(t._resolvedData=o,t.data=u(u({},t.data),o),null)))))}function Jo(t,r,e){let n=un(t);if(n.length===0)return g({});let i={};return M(n).pipe(V(o=>Xo(t[o],r,e).pipe(Y(),j(s=>{if(s instanceof Ie)throw _t(new te,s);i[o]=s}))),Gt(1),E(()=>i),rt(o=>ri(o)?_:jn(o)))}function Xo(t,r,e){let n=r._environmentInjector,i=De(t,n),o=i.resolve?i.resolve(r,e):P(n,()=>i(r,e));return pe(o)}function xr(t){return U(r=>{let e=t(r);return e?M(e).pipe(E(()=>r)):g(r)})}var xn=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(e){return e.data[Ze]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>d(di),providedIn:"root"})}return t})(),di=(()=>{class t extends xn{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(ot(gr))};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Me=new O("",{factory:()=>({})}),Xe=new O(""),hi=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(cr);async loadComponent(e,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await Pr(P(e,()=>n.loadComponent())),s=await gi(fi(o));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s,s}finally{this.componentLoaders.delete(n)}})();return this.componentLoaders.set(n,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await pi(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(n)}})();return this.childrenLoaders.set(n,i),i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();async function pi(t,r,e,n){let i=await Pr(P(e,()=>t.loadChildren())),o=await gi(fi(i)),s;o instanceof Qn||Array.isArray(o)?s=o:s=await r.compileModuleAsync(o),n&&n(t);let a,l,c=!1,h;return Array.isArray(s)?(l=s,c=!0):(a=s.create(e).injector,h=s,l=a.get(Xe,[],{optional:!0,self:!0}).flat()),{routes:l.map(Nn),injector:a,factory:h}}function es(t){return t&&typeof t=="object"&&"default"in t}function fi(t){return es(t)?t.default:t}async function gi(t){return t}var jt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>d(ts),providedIn:"root"})}return t})(),ts=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vi=new O("");var ns=()=>{},mi=new O(""),yi=(()=>{class t{currentNavigation=v(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=v(null);events=new oe;transitionAbortWithErrorSubject=new oe;configLoader=d(hi);environmentInjector=d(J);destroyRef=d(K);urlSerializer=d(Ee);rootContexts=d(Oe);location=d(ut);inputBindingEnabled=d(Ye,{optional:!0})!==null;titleStrategy=d(xn);options=d(Me,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(jt);createViewTransition=d(vi,{optional:!0});navigationErrorHandler=d(mi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Et(i)),n=i=>this.events.next(new Ot(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;b(()=>{this.transitions?.next(C(u({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new L(null),this.transitions.pipe(W(n=>n!==null),U(n=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===n.id;return g(n).pipe(U(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",T.SupersededByNewNavigation),_;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:l?C(u({},l),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&h!=="reload")return this.events.next(new Q(a.id,this.urlSerializer.serialize(a.rawUrl),"",ze.IgnoredSameUrlNavigation)),a.resolve(!1),_;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(U(f=>(this.events.next(new de(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?_:Promise.resolve(f))),Qo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),j(f=>{n.targetSnapshot=f.targetSnapshot,n.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(R=>(R.finalUrl=f.urlAfterRedirects,R)),this.events.next(new Be)}),U(f=>M(n.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(E(()=>f))),j(()=>{let f=new qe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:R,source:re,restoredState:B,extras:ie}=a,Ae=new de(f,this.urlSerializer.serialize(R),re,B);this.events.next(Ae);let Bt=Zr(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=C(u({},a),{targetSnapshot:Bt,urlAfterRedirects:R,extras:C(u({},ie),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Ne=>(Ne.finalUrl=R,Ne)),g(n)}else return this.events.next(new Q(a.id,this.urlSerializer.serialize(a.extractedUrl),"",ze.IgnoredByUrlHandlingStrategy)),a.resolve(!1),_}),E(a=>{let l=new St(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(l),this.currentTransition=n=C(u({},a),{guards:uo(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n}),So(a=>this.events.next(a)),U(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw _t(this.urlSerializer,a.guardsResult);let l=new Ct(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(l),!s())return _;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",T.GuardRejected),_;if(a.guards.canActivateChecks.length===0)return g(a);let c=new It(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(c),!s())return _;let h=!1;return g(a).pipe(Zo(this.paramsInheritanceStrategy),j({next:()=>{h=!0;let f=new Tt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)},complete:()=>{h||this.cancelNavigationTransition(a,"",T.NoDataFromResolver)}}))}),xr(a=>{let l=h=>{let f=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let R=h._environmentInjector;f.push(this.configLoader.loadComponent(R,h.routeConfig).then(re=>{h.component=re}))}for(let R of h.children)f.push(...l(R));return f},c=l(a.targetSnapshot.root);return c.length===0?g(a):M(Promise.all(c).then(()=>a))}),xr(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:a,targetSnapshot:l}=n,c=this.createViewTransition?.(this.environmentInjector,a.root,l.root);return c?M(c).pipe(E(()=>n)):g(n)}),ge(1),U(a=>{let l=so(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=n=a=C(u({},a),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new we);let c=n.beforeActivateHandler.deferredHandle;return c?M(c.then(()=>a)):g(a)}),j(a=>{new bn(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(l=>(l.abort=ns,l)),this.lastSuccessfulNavigation.set(b(this.currentNavigation)),this.events.next(new F(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),ve(ii(o.signal).pipe(W(()=>!i&&!n.targetRouterState),j(()=>{this.cancelNavigationTransition(n,o.signal.reason+"",T.Aborted)}))),j({complete:()=>{i=!0}}),ve(this.transitionAbortWithErrorSubject.pipe(j(a=>{throw a}))),Hn(()=>{o.abort(),i||this.cancelNavigationTransition(n,"",T.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),rt(a=>{if(i=!0,this.destroyed)return n.resolve(!1),_;if(ni(a))this.events.next(new k(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),co(a)?this.events.next(new Se(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let l=new he(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let c=P(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(c instanceof Ie){let{message:h,cancellationCode:f}=_t(this.urlSerializer,c);this.events.next(new k(n.id,this.urlSerializer.serialize(n.extractedUrl),h,f)),this.events.next(new Se(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(l),a}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return _}))}))}cancelNavigationTransition(e,n,i){let o=new k(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=b(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rs(t){return t!==je}var bi=new O("");var Ri=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>d(is),providedIn:"root"})}return t})(),kt=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}shouldDestroyInjector(r){return!0}},is=(()=>{class t extends kt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Le(t)))(i||t)}})();static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$t=(()=>{class t{urlSerializer=d(Ee);options=d(Me,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(ut);urlHandlingStrategy=d(jt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new D;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,s=i??o;return s instanceof D?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:i}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=e):this.rawUrlTree=i}routerState=Zr(null,d(J));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>d(os),providedIn:"root"})}return t})(),os=(()=>{class t extends $t{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof de?this.updateStateMemento():e instanceof Q?this.commitTransition(n):e instanceof qe?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof we?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof k&&!Qr(e)?this.restoreHistory(n):e instanceof he?this.restoreHistory(n,!0):e instanceof F&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:i}){let{replaceUrl:o,state:s}=n;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,l=u(u({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",l)}else{let a=u(u({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Le(t)))(i||t)}})();static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ln(t,r){t.events.pipe(W(e=>e instanceof F||e instanceof k||e instanceof he||e instanceof Q),E(e=>e instanceof F||e instanceof Q?0:(e instanceof k?e.code===T.Redirect||e.code===T.SupersededByNewNavigation:!1)?2:1),W(e=>e!==2),ge(1)).subscribe(()=>{r()})}var fe=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(Jn);stateManager=d($t);options=d(Me,{optional:!0})||{};pendingTasks=d(Wn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(yi);urlSerializer=d(Ee);location=d(ut);urlHandlingStrategy=d(jt);injector=d(J);_events=new oe;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(Ri);injectorCleanup=d(bi,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Xe,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Ye,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new kn;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=b(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof k&&n.code!==T.Redirect&&n.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof F)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof Se){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),l=u({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||rs(i.source)},s);this.scheduleNavigation(a,je,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}io(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),je,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,i,o)=>{this.navigateToSyncWithBrowser(e,i,n,o)})}navigateToSyncWithBrowser(e,n,i,o){let s=i?.navigationId?i:null;if(i){let l=u({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,n,s,o).catch(l=>{this.disposed||this.injector.get(st)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return b(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Nn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:s,h=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":h=u(u({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let R=i?i.snapshot:this.routerState.snapshot.root;f=Vr(R)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Wr(f,e,h,c??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let i=ne(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,je,null,n)}navigate(e,n={skipLocationChange:!1}){return ss(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(qn(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=u({},In):n===!1?i=u({},Fe):i=u(u({},Fe),n),ne(e))return dn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return dn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((f,R)=>{a=f,l=R});let h=this.pendingTasks.add();return Ln(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ss(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new w(4008,!1)}var ls=(()=>{class t{router=d(fe);stateManager=d($t);fragment=v("");queryParams=v({});path=v("");serializer=d(Ee);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof F&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new D(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ft=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=d(new dr("href"),{optional:!0});reactiveHref=ur(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return b(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return b(this._target)}_target=v(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return b(this._queryParams)}_queryParams=v(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return b(this._fragment)}_fragment=v(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return b(this._queryParamsHandling)}_queryParamsHandling=v(void 0);set state(e){this._state.set(e)}get state(){return b(this._state)}_state=v(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return b(this._info)}_info=v(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return b(this._relativeTo)}_relativeTo=v(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return b(this._preserveFragment)}_preserveFragment=v(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return b(this._skipLocationChange)}_skipLocationChange=v(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return b(this._replaceUrl)}_replaceUrl=v(!1);isAnchorElement;onChanges=new oe;applicationErrorHandler=d(st);options=d(Me,{optional:!0});reactiveRouterState=d(ls);constructor(e,n,i,o,s,a){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=v(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(ne(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}_urlTree=I(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:ne(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return b(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(A(fe),A(Z),Kn("tabindex"),A(Xt),A(Jt),A(pr))};static \u0275dir=ae({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&ir("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&nr("href",i.reactiveHref(),Gn)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",H],skipLocationChange:[2,"skipLocationChange","skipLocationChange",H],replaceUrl:[2,"replaceUrl","replaceUrl",H],routerLink:"routerLink"},features:[xe]})}return t})(),cs=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new se;link=d(Ft,{optional:!0});constructor(e,n,i,o){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof F&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(Kt()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=M(e).pipe(Kt()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=us(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?u({},In):u({},Fe);return i=>{let o=i.urlTree;return o?b(Tn(o,e,n)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(A(fe),A(Jt),A(Xt),A(ct))};static \u0275dir=ae({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&or(o,Ft,5),n&2){let s;sr(s=ar())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[xe]})}return t})();function us(t){let r=t;return!!(r.paths||r.matrixParams||r.queryParams||r.fragment)}var ds=new O("");function hs(t,...r){return Vn([{provide:Xe,multi:!0,useValue:t},[],{provide:Z,useFactory:ps},{provide:er,multi:!0,useFactory:gs},r.map(e=>e.\u0275providers)])}function ps(){return d(fe).routerState.root}function fs(t,r){return{\u0275kind:t,\u0275providers:r}}function gs(){let t=d(Zt);return r=>{let e=t.get(tr);if(r!==e.components[0])return;let n=t.get(fe),i=t.get(vs);t.get(ms)===1&&n.initialNavigation(),t.get(ys,null,{optional:!0})?.setUpPreloading(),t.get(ds,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var vs=new O("",{factory:()=>new oe}),ms=new O("",{factory:()=>1});var ys=new O("");function bs(){return fs(8,[Mn,{provide:Ye,useExisting:Mn}])}function wi(t){t||(t=d(K));let r=new tt(e=>{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(ve(r))}function Xa(t,r){let n=!r?.manualCleanup?r?.injector?.get(K)??d(K):null,i=Rs(r?.equal),o;r?.requireSync?o=v({kind:0},{equal:i}):o=v({kind:1,value:r?.initialValue},{equal:i});let s,a=t.subscribe({next:l=>o.set({kind:1,value:l}),error:l=>{o.set({kind:2,error:l}),s?.()},complete:()=>{s?.()}});if(r?.requireSync&&o().kind===0)throw new w(601,!1);return s=n?.onDestroy(a.unsubscribe.bind(a)),I(()=>{let l=o();switch(l.kind){case 1:return l.value;case 2:throw l.error;case 0:throw new w(601,!1)}},{equal:r?.equal})}function Rs(t=Object.is){return(r,e)=>r.kind===1&&e.kind===1&&t(r.value,e.value)}var Si=`
1
+ import{$ as st,A as Gt,C as zn,Ca as Jn,D as U,Da as Xn,E as ve,F as j,Fa as er,G as w,Ga as tr,Gb as lr,H as qn,J as y,Ja as nr,Jc as Sr,K as Qt,L as Bn,M as O,Mc as Cr,N as ot,Nc as Ir,O as d,P as Vn,Q as J,Qb as cr,R as P,Rb as b,Rc as Tr,Sb as I,Tb as ur,Ub as dr,Uc as rn,V as Zt,Va as rr,Wb as le,X as K,Y as Wn,Z as se,_ as Yt,a as kn,ac as ct,b as Un,ba as v,bc as H,c as tt,ca as at,cc as me,d as oe,da as xe,dd as pt,e as L,ea as Le,eb as ir,ec as hr,ed as Er,f as _,fa as Kn,ga as Jt,gc as pr,h as M,hc as ut,i as g,j as jn,jb as or,k as Vt,ka as Gn,l as $n,lb as sr,mb as ar,n as E,o as Wt,p as V,pc as fr,q as Kt,qa as Xt,r as Fn,ra as A,s as nt,sa as lt,ta as Qn,u as W,ua as en,v as rt,va as Zn,vc as gr,w as it,wa as tn,x as ge,xa as ae,xc as wr,y as Hn,z as Y,za as Yn}from"./chunk-ZSRIBCAW.js";import{D as X,M as Rr,a as _e,h as vr,i as mr,j as yr,m as z,p as nn,r as dt,s as br,u as ht}from"./chunk-3R7E3HPC.js";import{a as u,b as C}from"./chunk-Q7L6LLAK.js";var p="primary",Ze=Symbol("RouteTitle"),cn=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ue(t){return new cn(t)}function on(t,r,e){for(let n=0;n<t.length;n++){let i=t[n],o=r[n];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Lr(t,r,e){let n=e.path.split("/"),i=n.indexOf("**");if(i===-1){if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let l={},c=t.slice(0,n.length);return on(n,c,l)?{consumed:c,posParams:l}:null}if(i!==n.lastIndexOf("**"))return null;let o=n.slice(0,i),s=n.slice(i+1);if(o.length+s.length>t.length||e.pathMatch==="full"&&r.hasChildren()&&e.path!=="**")return null;let a={};return!on(o,t.slice(0,o.length),a)||!on(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function bt(t){return new Promise((r,e)=>{t.pipe(Y()).subscribe({next:n=>r(n),error:n=>e(n)})})}function Li(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!q(t[e],r[e]))return!1;return!0}function q(t,r){let e=t?un(t):void 0,n=r?un(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!_r(t[i],r[i]))return!1;return!0}function un(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function _r(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function _i(t){return t.length>0?t[t.length-1]:null}function pe(t){return Vt(t)?t:Xn(t)?M(Promise.resolve(t)):g(t)}function Pr(t){return Vt(t)?bt(t):Promise.resolve(t)}var Pi={exact:Ur,subset:jr},kr={exact:ki,subset:Ui,ignored:()=>!0},In={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Tn(t,r,e){let n=t instanceof D?t:r.parseUrl(t);return I(()=>dn(r.lastSuccessfulNavigation()?.finalUrl??new D,n,u(u({},Fe),e)))}function dn(t,r,e){return Pi[e.paths](t.root,r.root,e.matrixParams)&&kr[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function ki(t,r){return q(t,r)}function Ur(t,r,e){if(!ce(t.segments,r.segments)||!vt(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!Ur(t.children[n],r.children[n],e))return!1;return!0}function Ui(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>_r(t[e],r[e]))}function jr(t,r,e){return $r(t,r,r.segments,e)}function $r(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ce(i,e)||r.hasChildren()||!vt(i,e,n))}else if(t.segments.length===e.length){if(!ce(t.segments,e)||!vt(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!jr(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ce(t.segments,i)||!vt(t.segments,i,n)||!t.children[p]?!1:$r(t.children[p],r,o,n)}}function vt(t,r,e){return r.every((n,i)=>kr[e](t[i].parameters,n.parameters))}var D=class{root;queryParams;fragment;_queryParamMap;constructor(r=new m([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ue(this.queryParams),this._queryParamMap}toString(){return Fi.serialize(this)}},m=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return mt(this)}},ee=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=ue(this.parameters),this._parameterMap}toString(){return Hr(this)}};function ji(t,r){return ce(t,r)&&t.every((e,n)=>q(e.parameters,r[n].parameters))}function ce(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function $i(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var Ee=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>new te,providedIn:"root"})}return t})(),te=class{parse(r){let e=new pn(r);return new D(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${Pe(r.root,!0)}`,n=qi(r.queryParams),i=typeof r.fragment=="string"?`#${Hi(r.fragment)}`:"";return`${e}${n}${i}`}},Fi=new te;function mt(t){return t.segments.map(r=>Hr(r)).join("/")}function Pe(t,r){if(!t.hasChildren())return mt(t);if(r){let e=t.children[p]?Pe(t.children[p],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${Pe(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=$i(t,(n,i)=>i===p?[Pe(t.children[p],!1)]:[`${i}:${Pe(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${mt(t)}/${e[0]}`:`${mt(t)}/(${e.join("//")})`}}function Fr(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ft(t){return Fr(t).replace(/%3B/gi,";")}function Hi(t){return encodeURI(t)}function hn(t){return Fr(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yt(t){return decodeURIComponent(t)}function Or(t){return yt(t.replace(/\+/g,"%20"))}function Hr(t){return`${hn(t.path)}${zi(t.parameters)}`}function zi(t){return Object.entries(t).map(([r,e])=>`;${hn(r)}=${hn(e)}`).join("")}function qi(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${ft(e)}=${ft(i)}`).join("&"):`${ft(e)}=${ft(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Bi=/^[^\/()?;#]+/;function sn(t){let r=t.match(Bi);return r?r[0]:""}var Vi=/^[^\/()?;=#]+/;function Wi(t){let r=t.match(Vi);return r?r[0]:""}var Ki=/^[^=?&#]+/;function Gi(t){let r=t.match(Ki);return r?r[0]:""}var Qi=/^[^&#]+/;function Zi(t){let r=t.match(Qi);return r?r[0]:""}var pn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(r=0){if(r>50)throw new w(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,r));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,r)),(e.length>0||Object.keys(n).length>0)&&(i[p]=new m(e,n)),i}parseSegment(){let r=sn(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new ee(yt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=Wi(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=sn(this.remaining);i&&(n=i,this.capture(n))}r[yt(e)]=yt(n)}parseQueryParam(r){let e=Gi(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=Zi(this.remaining);s&&(n=s,this.capture(n))}let i=Or(e),o=Or(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=sn(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new w(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=p);let a=this.parseChildren(e+1);n[s??p]=Object.keys(a).length===1&&a[p]?a[p]:new m([],a),this.consumeOptional("//")}return n}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new w(4011,!1)}};function zr(t){return t.segments.length>0?new m([],{[p]:t}):t}function qr(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=qr(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new m(t.segments,r);return Yi(e)}function Yi(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new m(t.segments.concat(r.segments),r.children)}return t}function ne(t){return t instanceof D}function Br(t,r,e=null,n=null,i=new te){let o=Vr(t);return Wr(o,r,e,n,i)}function Vr(t){let r;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new m(o.url,s);return o===t&&(r=a),a}let n=e(t.root),i=zr(n);return r??i}function Wr(t,r,e,n,i){let o=t;for(;o.parent;)o=o.parent;if(r.length===0)return an(o,o,o,e,n,i);let s=Ji(r);if(s.toRoot())return an(o,o,new m([],{}),e,n,i);let a=Xi(s,o,t),l=a.processChildren?Ue(a.segmentGroup,a.index,s.commands):Gr(a.segmentGroup,a.index,s.commands);return an(o,a.segmentGroup,l,e,n,i)}function Rt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function He(t){return typeof t=="object"&&t!=null&&t.outlets}function Dr(t,r,e){t||="\u0275";let n=new D;return n.queryParams={[t]:r},e.parse(e.serialize(n)).queryParams[t]}function an(t,r,e,n,i,o){let s={};for(let[c,h]of Object.entries(n??{}))s[c]=Array.isArray(h)?h.map(f=>Dr(c,f,o)):Dr(c,h,o);let a;t===r?a=e:a=Kr(t,r,e);let l=zr(qr(a));return new D(l,s,i)}function Kr(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=Kr(o,r,e)}),new m(t.segments,n)}var wt=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&Rt(n[0]))throw new w(4003,!1);let i=n.find(He);if(i&&i!==_i(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ji(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new wt(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new wt(e,r,n)}var be=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function Xi(t,r,e){if(t.isAbsolute)return new be(r,!0,0);if(!e)return new be(r,!1,NaN);if(e.parent===null)return new be(e,!0,0);let n=Rt(t.commands[0])?0:1,i=e.segments.length-1+n;return eo(e,i,t.numberOfDoubleDots)}function eo(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new be(n,!1,i-o)}function to(t){return He(t[0])?t[0].outlets:{[p]:t}}function Gr(t,r,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return Ue(t,r,e);let n=no(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,n.pathIndex),{});return o.children[p]=new m(t.segments.slice(n.pathIndex),t.children),Ue(o,0,i)}else return n.match&&i.length===0?new m(t.segments,{}):n.match&&!t.hasChildren()?fn(t,r,e):n.match?Ue(t,0,i):fn(t,r,e)}function Ue(t,r,e){if(e.length===0)return new m(t.segments,{});{let n=to(e),i={};if(Object.keys(n).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=Ue(t.children[p],r,e);return new m(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Gr(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new m(t.segments,i)}}function no(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],a=e[n];if(He(a))break;let l=`${a}`,c=n<e.length-1?e[n+1]:null;if(i>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Ar(l,c,s))return o;n+=2}else{if(!Ar(l,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function fn(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(He(o)){let l=ro(o.outlets);return new m(n,l)}if(i===0&&Rt(e[0])){let l=t.segments[r];n.push(new ee(l.path,Mr(e[0]))),i++;continue}let s=He(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&Rt(a)?(n.push(new ee(s,Mr(a))),i+=2):(n.push(new ee(s,{})),i++)}return new m(n,{})}function ro(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=fn(new m([],{}),0,n))}),r}function Mr(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function Ar(t,r,e){return t==e.path&&q(r,e.parameters)}var je="imperative",S=(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})(S||{}),x=class{id;url;constructor(r,e){this.id=r,this.url=e}},de=class extends x{type=S.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},F=class extends x{urlAfterRedirects;type=S.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(T||{}),ze=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(ze||{}),k=class extends x{reason;code;type=S.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Qr(t){return t instanceof k&&(t.code===T.Redirect||t.code===T.SupersededByNewNavigation)}var Q=class extends x{reason;code;type=S.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},he=class extends x{error;target;type=S.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},qe=class extends x{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},St=class extends x{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ct=class extends x{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},It=class extends x{urlAfterRedirects;state;type=S.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tt=class extends x{urlAfterRedirects;state;type=S.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Et=class{route;type=S.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ot=class{route;type=S.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Dt=class{snapshot;type=S.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mt=class{snapshot;type=S.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At=class{snapshot;type=S.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nt=class{snapshot;type=S.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var we=class{},Be=class{},Se=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function io(t){return!(t instanceof we)&&!(t instanceof Se)&&!(t instanceof Be)}var xt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Oe(this.rootInjector)}},Oe=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new xt(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(ot(J))};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lt=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=gn(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=gn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=vn(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return vn(r,this._root).map(e=>e.value)}};function gn(t,r){if(t===r.value)return r;for(let e of r.children){let n=gn(t,e);if(n)return n}return null}function vn(t,r){if(t===r.value)return[r];for(let e of r.children){let n=vn(t,e);if(n.length)return n.unshift(r),n}return[]}var N=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function ye(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var Ve=class extends Lt{snapshot;constructor(r,e){super(r),this.snapshot=e,On(this,r)}toString(){return this.snapshot.toString()}};function Zr(t,r){let e=oo(t,r),n=new L([new ee("",{})]),i=new L({}),o=new L({}),s=new L({}),a=new L(""),l=new Z(n,i,s,a,o,p,t,e.root);return l.snapshot=e.root,new Ve(new N(l,[]),e)}function oo(t,r){let e={},n={},i={},s=new Ce([],e,i,"",n,p,t,null,{},r);return new We("",new N(s,[]))}var Z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,a,l){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(E(c=>c[Ze]))??g(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(E(r=>ue(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(E(r=>ue(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function En(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:u(u({},r.params),t.params),data:u(u({},r.data),t.data),resolve:u(u(u(u({},t.data),r.data),i?.data),t._resolvedData)}:n={params:u({},t.params),data:u({},t.data),resolve:u(u({},t.data),t._resolvedData??{})},i&&Jr(i)&&(n.resolve[Ze]=i.title),n}var Ce=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ze]}constructor(r,e,n,i,o,s,a,l,c,h){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c,this._environmentInjector=h}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??=ue(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ue(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},We=class extends Lt{url;constructor(r,e){super(e),this.url=r,On(this,e)}toString(){return Yr(this._root)}};function On(t,r){r.value._routerState=t,r.children.forEach(e=>On(t,e))}function Yr(t){let r=t.children.length>0?` { ${t.children.map(Yr).join(", ")} } `:"";return`${t.value}${r}`}function ln(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,q(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),q(r.params,e.params)||t.paramsSubject.next(e.params),Li(r.url,e.url)||t.urlSubject.next(e.url),q(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function mn(t,r){let e=q(t.params,r.params)&&ji(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||mn(t.parent,r.parent))}function Jr(t){return typeof t.title=="string"||t.title===null}var Xr=new O(""),Dn=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new se;deactivateEvents=new se;attachEvents=new se;detachEvents=new se;routerOutletData=le();parentContexts=d(Oe);location=d(lt);changeDetector=d(ct);inputBinder=d(Ye,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new 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 e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new yn(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=ae({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[xe]})}return t})(),yn=class{route;childContexts;parent;outletData;constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===Z?this.route:r===Oe?this.childContexts:r===Xr?this.outletData:this.parent.get(r,e)}},Ye=new O(""),Mn=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=Wt([n.queryParams,n.params,n.data]).pipe(U(([o,s,a],l)=>(a=u(u(u({},o),s),a),l===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=hr(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac})}return t})(),An=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Zn({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&rr(0,"router-outlet")},dependencies:[Dn],encapsulation:2})}return t})();function Nn(t){let r=t.children&&t.children.map(Nn),e=r?C(u({},t),{children:r}):u({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=An),e}function so(t,r,e){let n=Ke(t,r._root,e?e._root:void 0);return new Ve(n,r)}function Ke(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=ao(t,r,e);return new N(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>Ke(t,a)),s}}let n=lo(r.value),i=r.children.map(o=>Ke(t,o));return new N(n,i)}}function ao(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Ke(t,n,i);return Ke(t,n)})}function lo(t){return new Z(new L(t.url),new L(t.params),new L(t.queryParams),new L(t.fragment),new L(t.data),t.outlet,t.component,t)}var Ie=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},ei="ngNavigationCancelingError";function _t(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=ne(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=ti(!1,T.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function ti(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[ei]=!0,e.cancellationCode=r,e}function co(t){return ni(t)&&ne(t.url)}function ni(t){return!!t&&t[ei]}var bn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),ln(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ye(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ye(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ye(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=ye(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Nt(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Mt(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(ln(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),ln(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Pt=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},Re=class{component;route;constructor(r,e){this.component=r,this.route=e}};function uo(t,r,e){let n=t._root,i=r?r._root:null;return ke(n,i,e,[n.value])}function ho(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function De(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Bn(t)?t:r.get(t):n}function ke(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye(r);return t.children.forEach(s=>{po(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>$e(a,e.getContext(s),i)),i}function po(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=fo(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Pt(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ke(t,r,a?a.children:null,n,i):ke(t,r,e,n,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Re(a.outlet.component,s))}else s&&$e(r,a,i),i.canActivateChecks.push(new Pt(n)),o.component?ke(t,null,a?a.children:null,n,i):ke(t,null,e,n,i);return i}function fo(t,r,e){if(typeof e=="function")return P(r._environmentInjector,()=>e(t,r));switch(e){case"pathParamsChange":return!ce(t.url,r.url);case"pathParamsOrQueryParamsChange":return!ce(t.url,r.url)||!q(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mn(t,r)||!q(t.queryParams,r.queryParams);default:return!mn(t,r)}}function $e(t,r,e){let n=ye(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?$e(s,r.children.getContext(o),e):$e(s,null,e):$e(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new Re(r.outlet.component,i)):e.canDeactivateChecks.push(new Re(null,i)):e.canDeactivateChecks.push(new Re(null,i))}function Je(t){return typeof t=="function"}function go(t){return typeof t=="boolean"}function vo(t){return t&&Je(t.canLoad)}function mo(t){return t&&Je(t.canActivate)}function yo(t){return t&&Je(t.canActivateChild)}function bo(t){return t&&Je(t.canDeactivate)}function Ro(t){return t&&Je(t.canMatch)}function ri(t){return t instanceof $n||t?.name==="EmptyError"}var gt=Symbol("INITIAL_VALUE");function Te(){return U(t=>Wt(t.map(r=>r.pipe(ge(1),zn(gt)))).pipe(E(r=>{for(let e of r)if(e!==!0){if(e===gt)return gt;if(e===!1||wo(e))return e}return!0}),W(r=>r!==gt),ge(1)))}function wo(t){return ne(t)||t instanceof Ie}function ii(t){return t.aborted?g(void 0).pipe(ge(1)):new tt(r=>{let e=()=>{r.next(),r.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function oi(t){return ve(ii(t))}function So(t){return V(r=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?g(C(u({},r),{guardsResult:!0})):Co(o,e,n).pipe(V(s=>s&&go(s)?Io(e,i,t):g(s)),E(s=>C(u({},r),{guardsResult:s})))})}function Co(t,r,e){return M(t).pipe(V(n=>Mo(n.component,n.route,e,r)),Y(n=>n!==!0,!0))}function Io(t,r,e){return M(r).pipe(it(n=>Fn(Eo(n.route.parent,e),To(n.route,e),Do(t,n.path),Oo(t,n.route))),Y(n=>n!==!0,!0))}function To(t,r){return t!==null&&r&&r(new At(t)),g(!0)}function Eo(t,r){return t!==null&&r&&r(new Dt(t)),g(!0)}function Oo(t,r){let e=r.routeConfig?r.routeConfig.canActivate:null;if(!e||e.length===0)return g(!0);let n=e.map(i=>nt(()=>{let o=r._environmentInjector,s=De(i,o),a=mo(s)?s.canActivate(r,t):P(o,()=>s(r,t));return pe(a).pipe(Y())}));return g(n).pipe(Te())}function Do(t,r){let e=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(o=>ho(o)).filter(o=>o!==null).map(o=>nt(()=>{let s=o.guards.map(a=>{let l=o.node._environmentInjector,c=De(a,l),h=yo(c)?c.canActivateChild(e,t):P(l,()=>c(e,t));return pe(h).pipe(Y())});return g(s).pipe(Te())}));return g(i).pipe(Te())}function Mo(t,r,e,n){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=r._environmentInjector,l=De(s,a),c=bo(l)?l.canDeactivate(t,r,e,n):P(a,()=>l(t,r,e,n));return pe(c).pipe(Y())});return g(o).pipe(Te())}function Ao(t,r,e,n,i){let o=r.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let l=De(a,t),c=vo(l)?l.canLoad(r,e):P(t,()=>l(r,e)),h=pe(c);return i?h.pipe(oi(i)):h});return g(s).pipe(Te(),si(n))}function si(t){return Un(j(r=>{if(typeof r!="boolean")throw _t(t,r)}),E(r=>r===!0))}function No(t,r,e,n,i,o){let s=r.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(l=>{let c=De(l,t),h=Ro(c)?c.canMatch(r,e,i):P(t,()=>c(r,e,i));return pe(h).pipe(oi(o))});return g(a).pipe(Te(),si(n))}var G=class t extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,t.prototype)}},Ge=class t extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,t.prototype)}};function xo(t){throw new w(4e3,!1)}function Lo(t){throw ti(!1,T.GuardRejected)}var Rn=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}async lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return n;if(i.numberOfChildren>1||!i.children[p])throw xo(`${r.redirectTo}`);i=i.children[p]}}async applyRedirectCommands(r,e,n,i,o){let s=await _o(e,i,o);if(s instanceof D)throw new Ge(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]==="/")throw new Ge(a);return a}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new D(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=e[a]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(r,l,n,i)}),new m(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}};function _o(t,r,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return bt(pe(P(e,()=>n(r))))}function Po(t,r){return t.providers&&!t._injector&&(t._injector=en(t.providers,r,`Route: ${t.path}`)),t._injector??r}function $(t){return t.outlet||p}function ko(t,r){let e=t.filter(n=>$(n)===r);return e.push(...t.filter(n=>$(n)!==r)),e}var wn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ai(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Uo(t,r,e,n,i,o,s){let a=li(t,r,e);if(!a.matched)return g(a);let l=ai(o(a));return n=Po(r,n),No(n,r,e,i,l,s).pipe(E(c=>c===!0?a:u({},wn)))}function li(t,r,e){if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?u({},wn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Lr)(e,t,r);if(!i)return u({},wn);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?u(u({},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 Nr(t,r,e,n,i){return e.length>0&&Fo(t,e,n,i)?{segmentGroup:new m(r,$o(n,new m(e,t.children))),slicedSegments:[]}:e.length===0&&Ho(t,e,n)?{segmentGroup:new m(t.segments,jo(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function jo(t,r,e,n){let i={};for(let o of e)if(Ut(t,r,o)&&!n[$(o)]){let s=new m([],{});i[$(o)]=s}return u(u({},n),i)}function $o(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&$(n)!==p){let i=new m([],{});e[$(n)]=i}return e}function Fo(t,r,e,n){return e.some(i=>!Ut(t,r,i)||!($(i)!==p)?!1:!(n!==void 0&&$(i)===n))}function Ho(t,r,e){return e.some(n=>Ut(t,r,n))}function Ut(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function zo(t,r,e){return r.length===0&&!t.children[e]}var Sn=class{};async function qo(t,r,e,n,i,o,s="emptyOnly",a){return new Cn(t,r,e,n,i,s,o,a).recognize()}var Bo=31,Cn=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,a,l){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=l,this.applyRedirects=new Rn(this.urlSerializer,this.urlTree)}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}async recognize(){let r=Nr(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=await this.match(r),i=new N(n,e),o=new We("",i),s=Br(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(r){let e=new Ce([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,r,p,e),rootSnapshot:e}}catch(n){if(n instanceof Ge)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof G?this.noMatchError(n):n}}async processSegmentGroup(r,e,n,i,o){if(n.segments.length===0&&n.hasChildren())return this.processChildren(r,e,n,o);let s=await this.processSegment(r,e,n,n.segments,i,!0,o);return s instanceof N?[s]:[]}async processChildren(r,e,n,i){let o=[];for(let l of Object.keys(n.children))l==="primary"?o.unshift(l):o.push(l);let s=[];for(let l of o){let c=n.children[l],h=ko(e,l),f=await this.processSegmentGroup(r,h,c,l,i);s.push(...f)}let a=ci(s);return Vo(a),a}async processSegment(r,e,n,i,o,s,a){for(let l of e)try{return await this.processSegmentAgainstRoute(l._injector??r,e,l,n,i,o,s,a)}catch(c){if(c instanceof G||ri(c))continue;throw c}if(zo(n,i,o))return new Sn;throw new G(n)}async processSegmentAgainstRoute(r,e,n,i,o,s,a,l){if($(n)!==s&&(s===p||!Ut(i,o,n)))throw new G(i);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,i,n,o,s,l);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,l);throw new G(i)}async expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,a){let{matched:l,parameters:c,consumedSegments:h,positionalParamSegments:f,remainingSegments:R}=li(e,i,o);if(!l)throw new G(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Bo&&(this.allowRedirects=!1));let re=this.createSnapshot(r,i,o,c,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let B=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,f,ai(re),r),ie=await this.applyRedirects.lineralizeSegments(i,B);return this.processSegment(r,n,e,ie.concat(R),s,!1,a)}createSnapshot(r,e,n,i,o){let s=new Ce(n,i,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Ko(e),$(e),e.component??e._loadedComponent??null,e,Go(e),r),a=En(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(r,e,n,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=et=>this.createSnapshot(r,n,et.consumedSegments,et.parameters,s),l=await bt(Uo(e,n,i,r,this.urlSerializer,a,this.abortSignal));if(n.path==="**"&&(e.children={}),!l?.matched)throw new G(e);r=n._injector??r;let{routes:c}=await this.getChildConfig(r,n,i),h=n._loadedInjector??r,{parameters:f,consumedSegments:R,remainingSegments:re}=l,B=this.createSnapshot(r,n,R,f,s),{segmentGroup:ie,slicedSegments:Ae}=Nr(e,R,re,c,o);if(Ae.length===0&&ie.hasChildren()){let et=await this.processChildren(h,c,ie,B);return new N(B,et)}if(c.length===0&&Ae.length===0)return new N(B,[]);let Bt=$(n)===o,Ne=await this.processSegment(h,c,ie,Ae,Bt?p:o,!0,B);return new N(B,Ne instanceof N?[Ne]:[])}async getChildConfig(r,e,n){if(e.children)return{routes:e.children,injector:r};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(r).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await bt(Ao(r,e,n,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(r,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Lo(e)}return{routes:[],injector:r}}};function Vo(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function Wo(t){let r=t.value.routeConfig;return r&&r.path===""}function ci(t){let r=[],e=new Set;for(let n of t){if(!Wo(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=ci(n.children);r.push(new N(n.value,i))}return r.filter(n=>!e.has(n))}function Ko(t){return t.data||{}}function Go(t){return t.resolve||{}}function Qo(t,r,e,n,i,o,s){return V(async a=>{let{state:l,tree:c}=await qo(t,r,e,n,a.extractedUrl,i,o,s);return C(u({},a),{targetSnapshot:l,urlAfterRedirects:c})})}function Zo(t){return V(r=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=r;if(!n.length)return g(r);let i=new Set(n.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let l of ui(a))o.add(l);let s=0;return M(o).pipe(it(a=>i.has(a)?Yo(a,e,t):(a.data=En(a,a.parent,t).resolve,g(void 0))),j(()=>s++),Gt(1),V(a=>s===o.size?g(r):_))})}function ui(t){let r=t.children.map(e=>ui(e)).flat();return[t,...r]}function Yo(t,r,e){let n=t.routeConfig,i=t._resolve;return n?.title!==void 0&&!Jr(n)&&(i[Ze]=n.title),nt(()=>(t.data=En(t,t.parent,e).resolve,Jo(i,t,r).pipe(E(o=>(t._resolvedData=o,t.data=u(u({},t.data),o),null)))))}function Jo(t,r,e){let n=un(t);if(n.length===0)return g({});let i={};return M(n).pipe(V(o=>Xo(t[o],r,e).pipe(Y(),j(s=>{if(s instanceof Ie)throw _t(new te,s);i[o]=s}))),Gt(1),E(()=>i),rt(o=>ri(o)?_:jn(o)))}function Xo(t,r,e){let n=r._environmentInjector,i=De(t,n),o=i.resolve?i.resolve(r,e):P(n,()=>i(r,e));return pe(o)}function xr(t){return U(r=>{let e=t(r);return e?M(e).pipe(E(()=>r)):g(r)})}var xn=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(e){return e.data[Ze]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>d(di),providedIn:"root"})}return t})(),di=(()=>{class t extends xn{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(ot(gr))};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Me=new O("",{factory:()=>({})}),Xe=new O(""),hi=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(cr);async loadComponent(e,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await Pr(P(e,()=>n.loadComponent())),s=await gi(fi(o));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s,s}finally{this.componentLoaders.delete(n)}})();return this.componentLoaders.set(n,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await pi(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(n)}})();return this.childrenLoaders.set(n,i),i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();async function pi(t,r,e,n){let i=await Pr(P(e,()=>t.loadChildren())),o=await gi(fi(i)),s;o instanceof Qn||Array.isArray(o)?s=o:s=await r.compileModuleAsync(o),n&&n(t);let a,l,c=!1,h;return Array.isArray(s)?(l=s,c=!0):(a=s.create(e).injector,h=s,l=a.get(Xe,[],{optional:!0,self:!0}).flat()),{routes:l.map(Nn),injector:a,factory:h}}function es(t){return t&&typeof t=="object"&&"default"in t}function fi(t){return es(t)?t.default:t}async function gi(t){return t}var jt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>d(ts),providedIn:"root"})}return t})(),ts=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vi=new O("");var ns=()=>{},mi=new O(""),yi=(()=>{class t{currentNavigation=v(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=v(null);events=new oe;transitionAbortWithErrorSubject=new oe;configLoader=d(hi);environmentInjector=d(J);destroyRef=d(K);urlSerializer=d(Ee);rootContexts=d(Oe);location=d(ut);inputBindingEnabled=d(Ye,{optional:!0})!==null;titleStrategy=d(xn);options=d(Me,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(jt);createViewTransition=d(vi,{optional:!0});navigationErrorHandler=d(mi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Et(i)),n=i=>this.events.next(new Ot(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;b(()=>{this.transitions?.next(C(u({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new L(null),this.transitions.pipe(W(n=>n!==null),U(n=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===n.id;return g(n).pipe(U(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",T.SupersededByNewNavigation),_;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:l?C(u({},l),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&h!=="reload")return this.events.next(new Q(a.id,this.urlSerializer.serialize(a.rawUrl),"",ze.IgnoredSameUrlNavigation)),a.resolve(!1),_;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(U(f=>(this.events.next(new de(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?_:Promise.resolve(f))),Qo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),j(f=>{n.targetSnapshot=f.targetSnapshot,n.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(R=>(R.finalUrl=f.urlAfterRedirects,R)),this.events.next(new Be)}),U(f=>M(n.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(E(()=>f))),j(()=>{let f=new qe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:R,source:re,restoredState:B,extras:ie}=a,Ae=new de(f,this.urlSerializer.serialize(R),re,B);this.events.next(Ae);let Bt=Zr(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=C(u({},a),{targetSnapshot:Bt,urlAfterRedirects:R,extras:C(u({},ie),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Ne=>(Ne.finalUrl=R,Ne)),g(n)}else return this.events.next(new Q(a.id,this.urlSerializer.serialize(a.extractedUrl),"",ze.IgnoredByUrlHandlingStrategy)),a.resolve(!1),_}),E(a=>{let l=new St(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(l),this.currentTransition=n=C(u({},a),{guards:uo(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n}),So(a=>this.events.next(a)),U(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw _t(this.urlSerializer,a.guardsResult);let l=new Ct(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(l),!s())return _;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",T.GuardRejected),_;if(a.guards.canActivateChecks.length===0)return g(a);let c=new It(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(c),!s())return _;let h=!1;return g(a).pipe(Zo(this.paramsInheritanceStrategy),j({next:()=>{h=!0;let f=new Tt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)},complete:()=>{h||this.cancelNavigationTransition(a,"",T.NoDataFromResolver)}}))}),xr(a=>{let l=h=>{let f=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let R=h._environmentInjector;f.push(this.configLoader.loadComponent(R,h.routeConfig).then(re=>{h.component=re}))}for(let R of h.children)f.push(...l(R));return f},c=l(a.targetSnapshot.root);return c.length===0?g(a):M(Promise.all(c).then(()=>a))}),xr(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:a,targetSnapshot:l}=n,c=this.createViewTransition?.(this.environmentInjector,a.root,l.root);return c?M(c).pipe(E(()=>n)):g(n)}),ge(1),U(a=>{let l=so(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=n=a=C(u({},a),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new we);let c=n.beforeActivateHandler.deferredHandle;return c?M(c.then(()=>a)):g(a)}),j(a=>{new bn(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(l=>(l.abort=ns,l)),this.lastSuccessfulNavigation.set(b(this.currentNavigation)),this.events.next(new F(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),ve(ii(o.signal).pipe(W(()=>!i&&!n.targetRouterState),j(()=>{this.cancelNavigationTransition(n,o.signal.reason+"",T.Aborted)}))),j({complete:()=>{i=!0}}),ve(this.transitionAbortWithErrorSubject.pipe(j(a=>{throw a}))),Hn(()=>{o.abort(),i||this.cancelNavigationTransition(n,"",T.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),rt(a=>{if(i=!0,this.destroyed)return n.resolve(!1),_;if(ni(a))this.events.next(new k(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),co(a)?this.events.next(new Se(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let l=new he(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let c=P(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(c instanceof Ie){let{message:h,cancellationCode:f}=_t(this.urlSerializer,c);this.events.next(new k(n.id,this.urlSerializer.serialize(n.extractedUrl),h,f)),this.events.next(new Se(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(l),a}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return _}))}))}cancelNavigationTransition(e,n,i){let o=new k(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=b(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rs(t){return t!==je}var bi=new O("");var Ri=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>d(is),providedIn:"root"})}return t})(),kt=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}shouldDestroyInjector(r){return!0}},is=(()=>{class t extends kt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Le(t)))(i||t)}})();static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$t=(()=>{class t{urlSerializer=d(Ee);options=d(Me,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(ut);urlHandlingStrategy=d(jt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new D;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,s=i??o;return s instanceof D?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:i}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=e):this.rawUrlTree=i}routerState=Zr(null,d(J));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:()=>d(os),providedIn:"root"})}return t})(),os=(()=>{class t extends $t{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof de?this.updateStateMemento():e instanceof Q?this.commitTransition(n):e instanceof qe?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof we?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof k&&!Qr(e)?this.restoreHistory(n):e instanceof he?this.restoreHistory(n,!0):e instanceof F&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:i}){let{replaceUrl:o,state:s}=n;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,l=u(u({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",l)}else{let a=u(u({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Le(t)))(i||t)}})();static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ln(t,r){t.events.pipe(W(e=>e instanceof F||e instanceof k||e instanceof he||e instanceof Q),E(e=>e instanceof F||e instanceof Q?0:(e instanceof k?e.code===T.Redirect||e.code===T.SupersededByNewNavigation:!1)?2:1),W(e=>e!==2),ge(1)).subscribe(()=>{r()})}var fe=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(Jn);stateManager=d($t);options=d(Me,{optional:!0})||{};pendingTasks=d(Wn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(yi);urlSerializer=d(Ee);location=d(ut);urlHandlingStrategy=d(jt);injector=d(J);_events=new oe;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(Ri);injectorCleanup=d(bi,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Xe,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Ye,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new kn;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=b(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof k&&n.code!==T.Redirect&&n.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof F)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof Se){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),l=u({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||rs(i.source)},s);this.scheduleNavigation(a,je,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}io(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),je,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,i,o)=>{this.navigateToSyncWithBrowser(e,i,n,o)})}navigateToSyncWithBrowser(e,n,i,o){let s=i?.navigationId?i:null;if(i){let l=u({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,n,s,o).catch(l=>{this.disposed||this.injector.get(st)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return b(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Nn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:s,h=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":h=u(u({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let R=i?i.snapshot:this.routerState.snapshot.root;f=Vr(R)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Wr(f,e,h,c??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let i=ne(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,je,null,n)}navigate(e,n={skipLocationChange:!1}){return ss(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(qn(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=u({},In):n===!1?i=u({},Fe):i=u(u({},Fe),n),ne(e))return dn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return dn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((f,R)=>{a=f,l=R});let h=this.pendingTasks.add();return Ln(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ss(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new w(4008,!1)}var ls=(()=>{class t{router=d(fe);stateManager=d($t);fragment=v("");queryParams=v({});path=v("");serializer=d(Ee);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof F&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new D(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ft=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=d(new dr("href"),{optional:!0});reactiveHref=ur(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return b(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return b(this._target)}_target=v(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return b(this._queryParams)}_queryParams=v(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return b(this._fragment)}_fragment=v(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return b(this._queryParamsHandling)}_queryParamsHandling=v(void 0);set state(e){this._state.set(e)}get state(){return b(this._state)}_state=v(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return b(this._info)}_info=v(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return b(this._relativeTo)}_relativeTo=v(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return b(this._preserveFragment)}_preserveFragment=v(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return b(this._skipLocationChange)}_skipLocationChange=v(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return b(this._replaceUrl)}_replaceUrl=v(!1);isAnchorElement;onChanges=new oe;applicationErrorHandler=d(st);options=d(Me,{optional:!0});reactiveRouterState=d(ls);constructor(e,n,i,o,s,a){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=v(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(ne(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}_urlTree=I(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:ne(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return b(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(A(fe),A(Z),Kn("tabindex"),A(Xt),A(Jt),A(pr))};static \u0275dir=ae({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&ir("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&nr("href",i.reactiveHref(),Gn)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",H],skipLocationChange:[2,"skipLocationChange","skipLocationChange",H],replaceUrl:[2,"replaceUrl","replaceUrl",H],routerLink:"routerLink"},features:[xe]})}return t})(),cs=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new se;link=d(Ft,{optional:!0});constructor(e,n,i,o){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof F&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(Kt()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=M(e).pipe(Kt()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=us(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?u({},In):u({},Fe);return i=>{let o=i.urlTree;return o?b(Tn(o,e,n)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(A(fe),A(Jt),A(Xt),A(ct))};static \u0275dir=ae({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&or(o,Ft,5),n&2){let s;sr(s=ar())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[xe]})}return t})();function us(t){let r=t;return!!(r.paths||r.matrixParams||r.queryParams||r.fragment)}var ds=new O("");function hs(t,...r){return Vn([{provide:Xe,multi:!0,useValue:t},[],{provide:Z,useFactory:ps},{provide:er,multi:!0,useFactory:gs},r.map(e=>e.\u0275providers)])}function ps(){return d(fe).routerState.root}function fs(t,r){return{\u0275kind:t,\u0275providers:r}}function gs(){let t=d(Zt);return r=>{let e=t.get(tr);if(r!==e.components[0])return;let n=t.get(fe),i=t.get(vs);t.get(ms)===1&&n.initialNavigation(),t.get(ys,null,{optional:!0})?.setUpPreloading(),t.get(ds,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var vs=new O("",{factory:()=>new oe}),ms=new O("",{factory:()=>1});var ys=new O("");function bs(){return fs(8,[Mn,{provide:Ye,useExisting:Mn}])}function wi(t){t||(t=d(K));let r=new tt(e=>{if(t.destroyed){e.next();return}return t.onDestroy(e.next.bind(e))});return e=>e.pipe(ve(r))}function Xa(t,r){let n=!r?.manualCleanup?r?.injector?.get(K)??d(K):null,i=Rs(r?.equal),o;r?.requireSync?o=v({kind:0},{equal:i}):o=v({kind:1,value:r?.initialValue},{equal:i});let s,a=t.subscribe({next:l=>o.set({kind:1,value:l}),error:l=>{o.set({kind:2,error:l}),s?.()},complete:()=>{s?.()}});if(r?.requireSync&&o().kind===0)throw new w(601,!1);return s=n?.onDestroy(a.unsubscribe.bind(a)),I(()=>{let l=o();switch(l.kind){case 1:return l.value;case 2:throw l.error;case 0:throw new w(601,!1)}},{equal:r?.equal})}function Rs(t=Object.is){return(r,e)=>r.kind===1&&e.kind===1&&t(r.value,e.value)}var Si=`
2
2
  .p-tooltip {
3
3
  position: absolute;
4
4
  display: none;