PageSourceSearch

https://my.yallo.ch/v1/chunk-WEWWh7Ug.js

js yallo.ch collected 2026-10-01 14:10:11 UTC 86,639 bytes, 2 lines download raw bytes

1import{n as s,t as r}from"./chunk-DxqKAYlM.js";import{$ as Iw,$r as qg,A as Fg,Ai as ze$1,At as Oy,Br as nr$1,C as EI,Ci as ws,Dt as Og,Er as ku,Fn as _,Fr as ml,Gn as bi$1,Gt as Rt$1,Hr as ny,It as QC,Jn as cr$1,Lr as my,M as Fs,Mt as Pe,Nt as Pj,Or as lT,P as Fy,Pr as mg,Q as It$1,Rt as Qe$1,T as Ee$1,Tr as kr,Wr as oe,Xt as Sc,Z as Ir$1,Zn as dd,_ as CE,a as $u,ci as si$1,cr as fe$1,ei as qm,er as dy,et as Iy,fi as tT,gn as Vo$1,hr as hy,ht as M$1,i as $l,it as Je,ji as zu,jn as Yy,jr as lo$1,kt as Om,m as Bl,mi as to$1,mn as Vg,ni as rT,nt as JC,o as $v,on as Ub,ot as Jt,pi as te$1,pn as Ve$1,pr as gy,pt as Le,qn as ci$1,qt as S$1,r as $j,rn as Tn$1,si as sT,st as K$1,t as $b,ti as qu,tr as e_,tt as J,u as Am,ui as sr$1,ur as ge,v as Cp,wi as xj,wr as ko$1,x as DI,xt as Nj,yi as w,yn as WT,yr as jj,yt as Ne$1,z as Gu,zr as no$1,zt as Qg}from"./chunk-DO1nHkHA.js";import{I as ue,M as oa,R as xn$1,b as Yr,c as Hr,d as Ln$1,n as $u$1}from"./chunk-DKHLp3vL.js";var g=`primary`;var Qe=Symbol(`RouteTitle`);var ar=class{params;constructor(n){this.params=n||{}}has(n){return Object.hasOwn(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function de(t){return new ar(t)}function rr(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===`:`)e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Tn(t,n,e){let r=e.path.split(`/`),i=r.indexOf(`**`);if(i===-1){if(r.length>t.length||e.pathMatch===`full`&&(n.hasChildren()||r.length<t.length))return null;let a={},u=t.slice(0,r.length);return rr(r,u,a)?{consumed:u,posParams:a}:null}if(i!==r.lastIndexOf(`**`))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>t.length||e.pathMatch===`full`&&n.hasChildren()&&e.path!==`**`)return null;let c={};return!rr(o,t.slice(0,o.length),c)||!rr(s,t.slice(t.length-s.length),c)?null:{consumed:t,posParams:c}}function pt(t){return new Promise((n,e)=>{t.pipe(hy()).subscribe({next:r=>n(r),error:r=>e(r)})})}function Mi(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!B(t[e],n[e]))return!1;return!0}function B(t,n){let e=t?cr(t):void 0,r=n?cr(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Nn(t[i],n[i]))return!1;return!0}function cr(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Nn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Ti(t){return t.length>0?t[t.length-1]:null}function fe(t){return my(t)?t:Bl(t)?Le(Promise.resolve(t)):ny(t)}function _n(t){return my(t)?pt(t):Promise.resolve(t)}var Ni={exact:Un,subset:On};var Dn={exact:_i,subset:Di,ignored:()=>!0};var br={paths:`exact`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`exact`};var Ce={paths:`subset`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`subset`};function Ir(t,n,e){let r$1=t instanceof M?t:n.parseUrl(t);return JC(()=>ur(n.lastSuccessfulNavigation()?.finalUrl??new M,r$1,r(r({},Ce),e)))}function ur(t,n,e){return Ni[e.paths](t.root,n.root,e.matrixParams)&&Dn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment===`exact`&&t.fragment!==n.fragment)}function _i(t,n){return B(t,n)}function Un(t,n,e){if(!le(t.segments,n.segments)||!dt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Un(t.children[r],n.children[r],e))return!1;return!0}function Di(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Nn(t[e],n[e]))}function On(t,n,e){return Pn(t,n,n.segments,e)}function Pn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!le(i,e)||n.hasChildren()||!dt(i,e,r))}else if(t.segments.length===e.length){if(!le(t.segments,e)||!dt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!On(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);
1return!le(t.segments,i)||!dt(t.segments,i,r)||!t.children[`primary`]?!1:Pn(t.children[g],n,o,r)}}function dt(t,n,e){return n.every((r,i)=>Dn[e](t[i].parameters,r.parameters))}var M=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){return Pi.serialize(this)}};var m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ht(this)}};var ee=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=de(this.parameters),this._parameterMap}toString(){return jn(this)}};function Ui(t,n){return le(t,n)&&t.every((e,r)=>B(e.parameters,n[r].parameters))}function le(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function Oi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===`primary`&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==`primary`&&(e=e.concat(n(i,r)))}),e}var ie=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=to$1({token:t,factory:()=>new K})}return t})();var K=class{parse(n){let e=new dr(n);return new M(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){return`${`/${xe(n.root,!0)}`}${xi(n.queryParams)}${typeof n.fragment==`string`?`#${Li(n.fragment)}`:``}`}};var Pi=new K;function ht(t){return t.segments.map(n=>jn(n)).join(`/`)}function xe(t,n){if(!t.hasChildren())return ht(t);if(n){let e=t.children[`primary`]?xe(t.children[g],!1):``,r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==`primary`&&r.push(`${i}:${xe(o,!1)}`)}),r.length>0?`${e}(${r.join(`//`)})`:e}else{let e=Oi(t,(r,i)=>i===`primary`?[xe(t.children[g],!1)]:[`${i}:${xe(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[`primary`]!=null?`${ht(t)}/${e[0]}`:`${ht(t)}/(${e.join(`//`)})`}}function Ln(t){return encodeURIComponent(t).replace(/%40/g,`@`).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`)}function ut(t){return Ln(t).replace(/%3B/gi,`;`)}function Li(t){return encodeURI(t)}function lr(t){return Ln(t).replace(/\(/g,`%28`).replace(/\)/g,`%29`).replace(/%26/gi,`&`)}function ft(t){return decodeURIComponent(t)}function wn(t){return ft(t.replace(/\+/g,`%20`))}function jn(t){return`${lr(t.path)}${ji(t.parameters)}`}function ji(t){return Object.entries(t).map(([n,e])=>`;${lr(n)}=${lr(e)}`).join(``)}function xi(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${ut(e)}=${ut(i)}`).join(`&`):`${ut(e)}=${ut(r)}`).filter(e=>e);return n.length?`?${n.join(`&`)}`:``}var nr=1073741824;function gt(t,n,e){Number(n)>=32&&!Object.hasOwn(t,nr)&&(t[nr]=e,delete t[nr]),t[n]=e}var ki=/^[^\/()?;#]+/;function ir(t){let n=t.match(ki);return n?n[0]:``}var $i=/^[^\/()?;=#]+/;function zi(t){let n=t.match($i);return n?n[0]:``}var qi=/^[^=?&#]+/;function Fi(t){let n=t.match(qi);return n?n[0]:``}var Hi=/^[^&#]+/;function Bi(t){let n=t.match(Hi);return n?n[0]:``}var dr=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional(`/`););return this.remaining===``||this.peekStartsWith(`?`)||this.peekStartsWith(`#`)?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional(`?`))do this.parseQueryParam(n);while(this.consumeOptional(`&`));return n}parseFragment(){return this.consumeOptional(`#`)?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new _(4010,!1);if(this.remaining===``)return{};this.consumeOptional(`/`);let e=[];for(this.peekStartsWith(`(`)||e.push(this.parseSegment());this.peekStartsWith(`/`)&&!this.peekStartsWith(`//`)&&!this.peekStartsWith(`/(`);)this.capture(`/`),e.push(this.parseSegment());let r={};this.peekStartsWith(`/(`)&&(this.capture(`/`),r=this.parseParens(!0,n));let i={};return this.peekStartsWith(`(`)&&(i=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(i[`primary`]=new m(e,r)),i}parseSegment(){let n=ir(this.remaining);if(n===``&&this.peekStartsWith(`;`))throw new _(4009,!1);return this.capture(n),new ee(ft(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(`;`);)this.parseParam(n);return n}parseParam(n){let e=zi(this.remaining);if(!e)return;this.capture(e);let r=``;if(this.consumeOptional(`=`)){let i=ir(this.remaining);i&&(r=i,this.capture(r))}gt(n,ft(e),ft(r))}parseQueryParam(n){let e=Fi(this.remaining);if(!e)return;this.capture(e);let r=``;if(this.consumeOptional(`=`)){let s=Bi(this.remaining);s&&(r=s,this.capture(r))}let i=wn(e),o=wn(r);if(Object.hasOwn(n,i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n,e){let r=Object.create(null);for(this.capture(`(`);!this.consumeOptional(`)`)&&this.remaining.length>0;){let i=ir(this.remaining),o=this.remaining[i.length];if(o!==`/`&&o!==`)`&&o!==`;`)throw new _(4010,!1);let s;i.indexOf(`:`)>-1?(s=i.slice(0,i.indexOf(`:`)),this.capture(s),this.capture(`:`)):n&&(s=`primary`);let c=this.parseChildren(e+1),a=Object.keys(c).length===1&&c[`primary`]?c[g]:new m([],c);gt(r,s??`primary`,a),this.consumeOptional(`//`)}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new _(4011,!1)}};function xn(t){return t.segments.length>
10?new m([],{[g]:t}):t}function kn(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=kn(i);if(r===`primary`&&o.segments.length===0&&o.hasChildren())for(let[s,c]of Object.entries(o.children))gt(n,s,c);else(o.segments.length>0||o.hasChildren())&&gt(n,r,o)}return Vi(new m(t.segments,n))}function Vi(t){if(t.numberOfChildren===1&&t.children[`primary`]){let n=t.children[g];return new m(t.segments.concat(n.segments),n.children)}return t}function te(t){return t instanceof M}function $n(t,n,e=null,r=null,i=new K){return qn(zn(t),n,e,r,i)}function zn(t){let n;function e(o){let s={};for(let a of o.children){let u=e(a);s[a.outlet]=u}let c=new m(o.url,s);return o===t&&(n=c),c}let i=xn(e(t.root));return n??i}function qn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return or(o,o,o,e,r,i);let s=Gi(n);if(s.toRoot())return or(o,o,new m([],{}),e,r,i);let c=Wi(s,o,t),a=c.processChildren?$e(c.segmentGroup,c.index,s.commands):Hn(c.segmentGroup,c.index,s.commands);return or(o,c.segmentGroup,a,e,r,i)}function vt(t){return typeof t==`object`&&t!=null&&!t.outlets&&!t.segmentPath}function qe(t){return typeof t==`object`&&t!=null&&t.outlets}function bn(t,n,e){t||=`ɵ`;let r=new M;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function or(t,n,e,r,i,o){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(v=>bn(u,v,o)):bn(u,l,o);let c;t===n?c=e:c=Fn(t,n,e);return new M(xn(kn(c)),s,i)}function Fn(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Fn(o,n,e)}),new m(t.segments,r)}var mt=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&vt(r[0]))throw new _(4003,!1);let i=r.find(qe);if(i&&i!==Ti(r))throw new _(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]==`/`}};function Gi(t){if(typeof t[0]==`string`&&t.length===1&&t[0]===`/`)return new mt(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o==`object`&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([a,u])=>{c[a]=typeof u==`string`?u.split(`/`):u}),[...i,{outlets:c}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!=`string`?[...i,o]:s===0?(o.split(`/`).forEach((c,a)=>{a==0&&c===`.`||(a==0&&c===``?e=!0:c===`..`?n++:c!=``&&i.push(c))}),i):[...i,o]},[]);return new mt(e,n,r)}var ye=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Wi(t,n,e){if(t.isAbsolute)return new ye(n,!0,0);if(!e)return new ye(n,!1,NaN);if(e.parent===null)return new ye(e,!0,0);let r=vt(t.commands[0])?0:1;return Qi(e,e.segments.length-1+r,t.numberOfDoubleDots)}function Qi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new _(4005,!1);i=r.segments.length}return new ye(r,!1,i-o)}function Ki(t){return qe(t[0])?t[0].outlets:{[g]:t}}function Hn(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return $e(t,n,e);let r=Yi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[g]=new m(t.segments.slice(r.pathIndex),t.children),$e(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?hr(t,n,e):r.match?$e(t,0,i):hr(t,n,e)}function $e(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=Ki(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==`primary`)&&t.children[`primary`]&&t.numberOfChildren===1&&t.children[`primary`].segments.length===0){let o=$e(t.children[g],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s==`string`&&(s=[s]),s!==null&&(i[o]=Hn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new m(t.segments,i)}}function Yi(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],c=e[r];if(qe(c))break;let a=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&a===void 0)break;if(a&&u&&typeof u==`object`&&u.outlets===void 0){if(!En(a,u,s))return o;r+=2}else{if(!En(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function hr(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(qe(o))return new m(r,Zi(o.outlets));if(i===0&&vt(e[0])){let a=t.segments[n];r.push(new ee(a.path,In(e[0]))),i++;continue}let s=qe(o)?o.outlets[g]:`${o}`,c=i<e.length-1?e[i+1]:null;s&&c&&vt(c)?(r.push(new ee(s,In(c))),i+=2):(r.push(new ee(s,{})),i++)}return new m(r,{})}function Zi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r==`string`&&(r=[r]),r!==null&&(n[e]=hr(new m([],{}),0,r))}),n}function In(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function En(t,n,e){return t==e.path&&B(n,e.parameters)}var Re=`imperative`;var 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||{});var U=class{id;url;constructor(n,e){this.id=n,this.url=e}};var re=class extends U{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r=`imperative`,i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}};var O=class extends U{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}};var E=(function(t){return t[t.Redirect=0]=`Redirect`,t[t.SupersededByNewNavigation=1]=`SupersededByNewNavigation`,t[t.NoDataFromRe
1solver=2]=`NoDataFromResolver`,t[t.GuardRejected=3]=`GuardRejected`,t[t.Aborted=4]=`Aborted`,t})(E||{});var we=(function(t){return t[t.IgnoredSameUrlNavigation=0]=`IgnoredSameUrlNavigation`,t[t.IgnoredByUrlHandlingStrategy=1]=`IgnoredByUrlHandlingStrategy`,t})(we||{});var x=class extends U{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Bn(t){return t instanceof x&&(t.code===E.Redirect||t.code===E.SupersededByNewNavigation)}var V=class extends U{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}};var he=class extends U{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}};var Fe=class extends U{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var yt=class extends U{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var Rt=class extends U{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}};var St=class extends U{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var Ct=class extends U{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var wt=class{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}};var bt=class{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}};var It=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var Et=class{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var At=class{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var Mt=class{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var be=class{routerEvent;position;anchor;scrollBehavior;type=S.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}};var Ie=class{};var He=class{};var Ee=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Ji(t){return!(t instanceof Ie)&&!(t instanceof Ee)&&!(t instanceof He)}var Tt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ne(this.rootInjector)}resetChildren(){this.children=new ne(this.rootInjector)}};var ne=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Tt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static ɵfac=function(r){return new(r||t)(Ve$1(ge))};static ɵprov=K$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var Nt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}
1parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=fr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=fr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=pr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return pr(n,this._root).map(e=>e.value)}};function fr(t,n){if(t===n.value)return n;for(let e of n.children){let r=fr(t,e);if(r)return r}return null}function pr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=pr(t,e);if(r.length)return r.unshift(n),r}return[]}var D=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function me(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Be=class extends Nt{snapshot;constructor(n,e){super(n),this.snapshot=e,Ar(this,n)}toString(){return this.snapshot.toString()}};function Vn(t,n){let e=Xi(t,n),r=new sr$1([new ee(``,{})]),i=new sr$1({}),o=new sr$1({}),a=new G(r,i,new sr$1({}),new sr$1(``),o,g,t,e.root);return a.snapshot=e.root,new Be(new D(a,[]),e)}function Xi(t,n){return new Ve(``,new D(new Ae([],{},{},``,{},g,t,null,{},n),[]))}var G=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;resources;_localInjector;pending;paramsSignal;queryParamsSignal;paramMapSignal;queryParamMapSignal;fragmentSignal;dataSignal;constructor(n,e,r,i,o,s,c,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=c,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(Pe(u=>u[Qe]))??ny(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Pe(n=>de(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Pe(n=>de(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}_setPending(n){this._futureSnapshot=n,this.pending?.set(!0)}};var eo=`always`;function Er(t,n,e){let r$2,{routeConfig:i}=t;return n!==null&&(e===`always`||i?.path===``||!n.component&&!n.routeConfig?.loadComponent)?r$2={params:r(r({},n.params),t.params),data:r(r({},n.data),t.data),resolve:r(r(r(r({},t.data),n.data),i?.data),t._resolvedData)}:r$2={params:r({},t.params),data:r({},t.data),resolve:r(r({},t.data),t._resolvedData??{})},i&&Wn(i)&&(r$2.resolve[Qe]=i.title),r$2}var Ae=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;resources;get title(){return this.data?.[Qe]}constructor(n,e,r,i,o,s,c,a,u,l){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=c,this.routeConfig=a,this._resolve=u,this._environmentInjector=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=de(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join(`/`)}', path:'${this.routeConfig?this.routeConfig.path:``}')`}};var Ve=class extends Nt{url;constructor(n,e){super(e),this.url=n,Ar(this,e)}toString(){return Gn(this._root)}};
1function Ar(t,n){n.value._routerState=t,n.children.forEach(e=>Ar(t,e))}function Gn(t){let n=t.children.length>0?` { ${t.children.map(Gn).join(`, `)} } `:``;return`${t.value}${n}`}function sr(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,B(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),B(n.params,e.params)||t.paramsSubject.next(e.params),Mi(n.url,e.url)||t.urlSubject.next(e.url),B(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function gr(t,n){let e=B(t.params,n.params)&&Ui(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||gr(t.parent,n.parent))}function Wn(t){return typeof t.title==`string`||t.title===null}var Qn=new M$1(``);var Mr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new Je;deactivateEvents=new Je;attachEvents=new Je;detachEvents=new Je;routerOutletData=xj();parentContexts=w(ne);location=w(ws);changeDetector=w(Pj);inputBinder=w(Ke,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new _(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new _(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new _(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new _(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,a=new vr(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.activateEvents.emit(this.activated.instance)}static ɵfac=function(r){return new(r||t)};static ɵdir=sT({type:t,selectors:[[`router-outlet`]],inputs:{name:`name`,routerOutletData:[1,`routerOutletData`]},outputs:{activateEvents:`activate`,deactivateEvents:`deactivate`,attachEvents:`attach`,detachEvents:`detach`},exportAs:[`outlet`],features:[$v]})}return t})();var vr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===G?this.route:n===ne?this.childContexts:n===Qn?this.outletData:this.parent.get(n,e)}};var Ke=new M$1(``);var Kn=(()=>{class t{options;feature;outletDataSubscriptions=new Map;outletSeenKeys=new Map;outletEffects=new Map;constructor(e,r=null){this.options=e,this.feature=r,this.options.queryParams??=!0}bindActivatedRouteToOutletComponent(e,r){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e,r)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e),this.outletEffects.get(e)?.forEach(r=>r.destroy()),this.outletEffects.delete(e)}subscribeToRouteData(e,r$3){let{activatedRoute:i}=e,o=[],s=[];if(this.feature?.createResourceOutletBindingEffects&&e.activatedComponentRef){let{handledKeys:a,createdEffects:u}=this.feature.createResourceOutletBindingEffects(e.activatedComponentRef,i,r$3);o.push(...u),s=a}o.length>0&&this.outletEffects.set(e,o);let c=dy([this.options.queryParams?i.queryParams:ny({}),i.params,i.data]).pipe(Gu(([a,u,l],v)=>(l=r(r(r(r({},a),u),l),i.resources||{}),v===0?ny(l):Promise.resolve(l)))).subscribe(a=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let u=$j(i.component);if(!u){this.unsubscribeFromRouteData(e);return}let l=this.outletSeenKeys.get(e);l||(l=new Set,this.outletSeenKeys.set(e,l));for(let f of Object.keys(a))l.add(f);let v=this.options.unmatchedInputBehavior??`alwaysUndefined`;for(let{templateName:f}of u.inputs){if(s.includes(f))continue;let R=a[f];(R!==void 0||v===`alwaysUndefined`||l.has(f))&&e.activatedComponentRef.setInput(f,R)}});this.outletDataSubscriptions.set(e,c)}static ɵfac=function(r){Iw()};static ɵprov=K$1({token:t,factory:t.ɵfac})}return t})();var Tr=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵcmp=tT({type:t,selectors:[[`ng-component`]],exportAs:[`emptyRouterOutlet`],decls:1,vars:0,template:function(r,i){r&1&&Vg
1(0,`router-outlet`)},dependencies:[Mr],encapsulation:2,changeDetection:1})}return t})();function Nr(t){let n=t.children&&t.children.map(Nr),e=n?s(r({},t),{children:n}):r({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==`primary`&&(e.component=Tr),e}function to(t,n,e){let r=new Set;return{newlyCreatedRoutes:r,state:new Be(Ge(t,n._root,e?e._root:void 0,r),n)}}function Ge(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._setPending(n.value);return new D(i,ro(t,n,e,r))}else{if(t.shouldAttach(n.value)){let s=t.retrieve(n.value);if(s!==null){let c=s.route;return c.value._setPending(n.value),c.children=n.children.map(a=>Ge(t,a,void 0,r)),c}}let i=no(n.value);i._setPending(n.value),r.add(i);return new D(i,n.children.map(s=>Ge(t,s,void 0,r)))}}function ro(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Ge(t,i,o,r);return Ge(t,i,void 0,r)})}function no(t){return new G(new sr$1(t.url),new sr$1(t.params),new sr$1(t.queryParams),new sr$1(t.fragment),new sr$1(t.data),t.outlet,t.component,t)}var Me=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}};var Yn=`ngNavigationCancelingError`;function _t(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=te(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Zn(!1,E.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Zn(t,n){let e=new Error(`NavigationCancelingError: ${t||``}`);return e[Yn]=!0,e.cancellationCode=n,e}function io(t){return Jn(t)&&te(t.url)}function Jn(t){return!!t&&t[Yn]}var mr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),sr(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=me(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=me(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),c=r.children.contexts;r.resetChildren(),this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:c})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=me(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy()}activateChildRoutes(n,e,r){let i=me(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Mt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Et(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(sr(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(c.contexts),s.attachRef=c.componentRef,s.route=c.route.value,s.outlet&&s.outlet.attach(c.componentRef,c.route.value),sr(c.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}};var Dt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}};var Se=class{component;route;constructor(n,e){this.component=n,this.route=e}};function oo(t,n,e){let r=t._root;return ke(r,n?n._root:null,e,[r.value])}function so(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ne(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t==`function`&&!Yy(t)?t:n.get(t):r}function ke(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=me(n);
1return t.children.forEach(s=>{ao(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,c])=>ze(c,e.getContext(s),e,i)),i}function ao(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=co(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new Dt(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ke(t,n,c?c.children:null,r,i):ke(t,n,e,r,i),a&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Se(c.outlet.component,s))}else s&&ze(n,c,e,i),i.canActivateChecks.push(new Dt(r)),o.component?ke(t,null,c?c.children:null,r,i):ke(t,null,e,r,i);return i}function co(t,n,e){if(typeof e==`function`)return ci$1(n._environmentInjector,()=>e(t,n));switch(e){case`pathParamsChange`:return!le(t.url,n.url);case`pathParamsOrQueryParamsChange`:return!le(t.url,n.url)||!B(t.queryParams,n.queryParams);case`always`:return!0;case`paramsOrQueryParamsChange`:return!gr(t,n)||!B(t.queryParams,n.queryParams);default:return!gr(t,n)}}function ze(t,n,e,r){let i=me(t),o=t.value;Object.entries(i).forEach(([s,c])=>{o.component?n?ze(c,n.children.getContext(s),n.children,r):ze(c,null,null,r):ze(c,e?e.getContext(s):null,e,r)}),o.component?n&&n.outlet&&n.outlet.isActivated?r.canDeactivateChecks.push(new Se(n.outlet.component,o)):r.canDeactivateChecks.push(new Se(null,o)):r.canDeactivateChecks.push(new Se(null,o))}function Ye(t){return typeof t==`function`}function uo(t){return typeof t==`boolean`}function lo(t){return t&&Ye(t.canLoad)}function ho(t){return t&&Ye(t.canActivate)}function fo(t){return t&&Ye(t.canActivateChild)}function po(t){return t&&Ye(t.canDeactivate)}function go(t){return t&&Ye(t.canMatch)}function Xn(t){return t instanceof ze$1||t?.name===`EmptyError`}var lt=Symbol(`INITIAL_VALUE`);function Te(){return Gu(t=>dy(t.map(n=>n.pipe(ko$1(1),qu(lt)))).pipe(Pe(n=>{for(let e of n)if(e!==!0){if(e===lt)return lt;if(e===!1||vo(e))return e}return!0}),Tn$1(n=>n!==lt),ko$1(1)))}function vo(t){return te(t)||t instanceof Me}function ei(t){return t.aborted?ny(void 0).pipe(ko$1(1)):new S$1(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener(`abort`,e),()=>t.removeEventListener(`abort`,e)})}function ti(t){return zu(ei(t))}function mo(t){return Qe$1(n=>{let{targetSnapshot:e,currentSnapshot:r$4,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?ny(s(r({},n),{guardsResult:!0})):yo(o,e,r$4).pipe(Qe$1(s=>s&&uo(s)?Ro(e,i,t):ny(s)),Pe(s$1=>s(r({},n),{guardsResult:s$1})))})}function yo(t,n,e){return Le(t).pipe(Qe$1(r=>Io(r.component,r.route,e,n)),hy(r=>r!==!0,!0))}function Ro(t,n,e){return Le(n).pipe(Oy(r=>Vo$1(Co(r.route.parent,e),So(r.route,e),bo(t,r.path),wo(t,r.route))),hy(r=>r!==!0,!0))}function So(t,n){return t!==null&&n&&n(new At(t)),ny(!0)}function Co(t,n){return t!==null&&n&&n(new It(t)),ny(!0)}function wo(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return ny(!0);return ny(e.map(i=>Iy(()=>{let o=n._environmentInjector,s=Ne(i,o);return fe(ho(s)?s.canActivate(n,t):ci$1(o,()=>s(n,t))).pipe(hy())}))).pipe(Te())}function bo(t,n){let e=n[n.length-1];return ny(n.slice(0,n.length-1).reverse().map(o=>so(o)).filter(o=>o!==null).map(o=>Iy(()=>{return ny(o.guards.map(c=>{let a=o.node._environmentInjector,u=Ne(c,a);return fe(fo(u)?u.canActivateChild(e,t):ci$1(a,()=>u(e,t))).pipe(hy())})).pipe(Te())}))).pipe(Te())}function Io(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return ny(!0);return ny(i.map(s=>{let c=n._environmentInjector,a=Ne(s,c);return fe(po(a)?a.canDeactivate(t,n,e,r):ci$1(c,()=>a(t,n,e,r))).pipe(hy())})).pipe(Te())}function Eo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return ny(!0);return ny(o.map(c=>{let a=Ne(c,t),l=fe(lo(a)?a.canLoad(n,e):ci$1(t,()=>a(n,e)));return i?l.pipe(ti(i)):l})).pipe(Te(),ri(r))}function ri(t){return qm(ku(n=>{if(typeof n!=`boolean`)throw _t(t,n)}),Pe(n=>n===!0))}function Ao(t,n,e,r,i,o){let s=n.canMatch;if(!s||s.length===0)return ny(!0);return ny(s.map(a=>{let u=Ne(a,t);return fe(go(u)?u.canMatch(n,e,i):ci$1(t,()=>u(n,e,i))).pipe(ti(o))})).pipe(Te(),ri(r))}
1var Q=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}};var We=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function Mo(t){throw new _(4e3,!1)}function To(t){throw Zn(!1,E.GuardRejected)}var yr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}async lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[`primary`])throw Mo(`${n.redirectTo}`);i=i.children[g]}}async applyRedirectCommands(n,e,r,i,o){let s=await No(e,i,o);if(s instanceof M)throw new We(s);let c=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]===`/`)throw new We(c);return c}applyRedirectCreateUrlTree(n,e,r,i){return new M(this.createSegmentGroup(n,e.root,r,i),this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o==`string`&&o[0]===`:`){let c=o.substring(1);r[i]=e[c]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s=Object.create(null);return Object.entries(e.children).forEach(([c,a])=>{s[c]=this.createSegmentGroup(n,a,r,i)}),new m(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===`:`?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new _(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function No(t,n,e){if(typeof t==`string`)return Promise.resolve(t);let r=t;return pt(fe(ci$1(e,()=>r(n))))}function _o(t,n){return t.providers&&!t._injector&&(t._injector=$l(t.providers,n,`Route: ${t.path}`)),t._injector??n}function z(t){return t.outlet||`primary`}function Do(t,n){let e=t.filter(r=>z(r)===n);return e.push(...t.filter(r=>z(r)!==n)),e}var Rr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ni(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,n,e,r$5,i,o,s){let c=ii(t,n,e);if(!c.matched)return ny(c);let a=ni(o(c));return r$5=_o(n,r$5),Ao(r$5,n,e,i,a,s).pipe(Pe(u=>u===!0?c:r({},Rr)))}function ii(t,n,e){if(n.path===``)return n.pathMatch===`full`&&(t.hasChildren()||e.length>0)?r({},Rr):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Tn)(e,t,n);if(!i)return r({},Rr);let o={};Object.entries(i.posParams??{}).forEach(([c,a])=>{o[c]=a.path});let s=i.consumed.length>0?r(r({},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 An(t,n,e,r,i){return e.length>0&&Lo(t,e,r,i)?{segmentGroup:new m(n,Po(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&jo(t,e,r)?{segmentGroup:new m(t.segments,Oo(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function Oo(t,n,e,r$6){let i={};for(let o of e)if(Ot(t,n,o)&&!r$6[z(o)]){let s=new m([],{});i[z(o)]=s}return r(r({},r$6),i)}function Po(t,n){let e={};e[g]=n;for(let r of t)if(r.path===``&&z(r)!==`primary`){let i=new m([],{});e[z(r)]=i}return e}function Lo(t,n,e,r){return e.some(i=>!Ot(t,n,i)||!(z(i)!==`primary`)?!1:!(r!==void 0&&z(i)===r))}function jo(t,n,e){return e.some(r=>Ot(t,n,r))}function Ot(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch===`full`?!1:e.path===``}function xo(t,n,e){return n.length===0&&!t.children[e]}var Sr=class{};async function ko(t,n,e,r,i,o,s,c){return new Cr(t,n,e,r,i,s,o,c).recognize()}var $o=31;var Cr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,c,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer
1=c,this.abortSignal=a,this.applyRedirects=new yr(this.urlSerializer,this.urlTree)}noMatchError(n){return new _(4002,`'${n.segmentGroup}'`)}async recognize(){let n=An(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),o=new Ve(``,new D(r,e)),s=$n(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(n){let e=new Ae([],Object.freeze({}),Object.freeze(r({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,n,g,e),rootSnapshot:e}}catch(r){if(r instanceof We)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Q?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let s=await this.processSegment(n,e,r,r.segments,i,!0,o);return s instanceof D?[s]:[]}async processChildren(n,e,r,i){let o=[];for(let a of Object.keys(r.children))a===`primary`?o.unshift(a):o.push(a);let s=[];for(let a of o){let u=r.children[a],l=Do(e,a),v=await this.processSegmentGroup(n,l,u,a,i);s.push(...v)}let c=oi(s);return zo(c),c}async processSegment(n,e,r,i,o,s,c){for(let a of e)try{return await this.processSegmentAgainstRoute(a._injector??n,e,a,r,i,o,s,c)}catch(u){if(u instanceof Q||Xn(u))continue;throw u}if(xo(r,i,o))return new Sr;throw new Q(r)}async processSegmentAgainstRoute(n,e,r,i,o,s,c,a){if(z(r)!==s&&(s===`primary`||!Ot(i,o,r)))throw new Q(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,a);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,a);throw new Q(i)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,c){let{matched:a,parameters:u,consumedSegments:l,positionalParamSegments:v,remainingSegments:f}=ii(e,i,o);if(!a)throw new Q(e);typeof i.redirectTo==`string`&&i.redirectTo[0]===`/`&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>$o&&(this.allowRedirects=!1));let R=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let k=await this.applyRedirects.applyRedirectCommands(l,i.redirectTo,v,ni(R),n),oe=await this.applyRedirects.lineralizeSegments(i,k);return this.processSegment(n,r,e,oe.concat(f),s,!1,c)}createSnapshot(n,e,r$7,i,o){let s=new Ae(r$7,i,Object.freeze(r({},this.urlTree.queryParams)),this.urlTree.fragment,Fo(e),z(e),e.component??e._loadedComponent??null,e,Ho(e),n),c=Er(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(c.params),s.data=Object.freeze(c.data),s}async matchSegmentAgainstRoute(n,e,r,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=se=>this.createSnapshot(n,r,se.consumedSegments,se.parameters,s),a=await pt(Uo(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path===`**`&&(e.children={}),!a?.matched)throw new Q(e);n=r._injector??n;let{routes:u}=await this.getChildConfig(n,r,i),l=r._loadedInjector??n,{parameters:v,consumedSegments:f,remainingSegments:R}=a,k=this.createSnapshot(n,r,f,v,s),{segmentGroup:oe,slicedSegments:De}=An(e,f,R,u,o);if(De.length===0&&oe.hasChildren())return new D(k,await this.processChildren(l,u,oe,k));if(u.length===0&&De.length===0)return new D(k,[]);let zt=z(r)===o,Je=await this.processSegment(l,u,oe,De,zt?g:o,!0,k);return new D(k,Je instanceof D?[Je]:[])}async getChildConfig(n,e,r){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await pt(Eo(n,e,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw To(e)}return{routes:[],injector:n}}};function zo(t){t.sort((n,e)=>n.value.outlet===`primary`?-1:e.value.outlet===`primary`?1:n.value.outlet.localeCompare(e.value.outlet))}function qo(t){let n=t.value.routeConfig;return n&&n.path===``}function oi(t){let n=[],e=new Set;for(let r of t){if(!qo(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=oi(r.children);n.push(new D(r.value,i))}return n.filter(r=>!e.has(r))}function Fo(t){return t.data||{}}function Ho(t){return t.resolve||{}}function Bo(t,n,e,r$8,i,o,s$2){return Qe$1(async c=>{let{state:a,tree:u}=await ko(t,n,e,r$8,c.extractedUrl,i,o,s$2);return s(r({},c),{targetSnapshot:a,urlAfterRedirects:u})})}function Vo(t){return Qe$1(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return ny(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let a of si(c))o.add(a);let s=0;return Le(o).pipe(Oy(c=>i.has(c)?Go(c,e,t):(c.data=Er(c,c.parent,t).resolve,ny(void 0))),ku(()=>s++),Fy(1),Qe$1(c=>s===o.size?ny(n):Rt$1))})}function si(t){return[t,...t.children.map(e=>si(e)).flat()]}function Go(t,n,e){let r$9=t.routeConfig,i=t._resolve;return r$9?.title!==void 0&&!Wn(r$9)&&(i[Qe]=r$9.title),Iy(()=>(t.data=Er(t,t.parent,e).resolve,Wo(i,t,n).pipe(Pe(o=>(t._resolvedData=o,t.data=r(r({},t.data),o),null)))))}function Wo(t,n,e){let r=cr(t);if(r.length===0)return ny({});let i={};return Le(r).pipe(Qe$1(o=>Qo(t[o],n,e).pipe(hy(),ku(s=>{if(s instanceof Me)throw _t(new K,s);i[o]=s}))),Fy(1),Pe(()=>i),Fs(o=>Xn(o)?Rt$1:gy(o)))}function Qo(t,n,e){let r=n._environmentInjector,i=Ne(t,r);return fe(i.resolve?i.resolve(n,e):ci$1(r,()=>i(n,e)))}var _r=new M$1(``);function wr(t){return Gu(n=>{let e=t(n);return e?Le(e).pipe(Pe(()=>n)):ny(n)})}var Dr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===g);return r}getResolvedTitleForRoute(e){return e.data[Qe]}static ɵfac=function(r){return new(r||t)};static ɵprov=to$1({token:t,factory:()=>w(ai)})}return t})();var ai=(()=>{class t extends Dr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static ɵfac=function(r){return new(r||t)(Ve$1($u$1))};static ɵprov=K$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var Y=new M$1(``,{factory:()=>({})});var pe=new M$1(``);var Pt=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=w(QC);async loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let s=await ui(Nj(await _n(ci$1(e,()=>r.loadComponent()))));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await ci(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,i),i}static ɵfac=function(r){return new(r||t)};static ɵprov=to$1({token:t,factory:t.ɵfac})}return t})();async function ci(t,n,e,r){let o=await ui(Nj(await _n(ci$1(e,()=>t.loadChildren())))),s;o instanceof mg||Array.isArray(o)?s=o:s=await n.compileModuleAsync(o),r&&r(t);let c,a,l;return Array.isArray(s)?a=s:(c=s.create(e).injector,l=s,a=c.get(pe,[],{optional:!0,self:!0}).flat()),{routes:a.map(Nr),injector:c,factory:l}}async function ui(t){return t}var Lt=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=to$1({token:t,factory:()=>w(Ko)})}return t})();var Ko=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static ɵfac=function(r){return new(r||t)};static ɵprov=to$1({token:t,factory:t.ɵfac})}return t})();var Ur=new M$1(``);var Or=new M$1(``);function li(t,n,e,r){let i=t.get(Or),o=t.get(kr);if(r){i.skipNextTransition=!1;return}if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(l=>setTimeout(l));let s,c=new Promise(l=>{s=l}),a=o.startViewTransition(()=>(s(),Yo(t)));a.updateCallbackDone.catch(l=>{}),a.ready.catch(l=>{}),a.finished.catch(l=>{});let{onViewTransitionCreated:u}=i;return u&&ci$1(t,()=>u({transition:a,from:n,to:e})),c}function Yo(t){return new Promise(n=>{ml({read:()=>setTimeout(n)},{injector:t})})}var Zo=()=>{};var Pr=new M$1(``);var jt=(()=>{class t{currentNavigation=bi$1(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=bi$1(null);events=new te$1;
1transitionAbortWithErrorSubject=new te$1;configLoader=w(Pt);environmentInjector=w(ge);destroyRef=w(Ne$1);urlSerializer=w(ie);rootContexts=w(ne);location=w(xn$1);inputBindingEnabled=w(Ke,{optional:!0})!==null;titleStrategy=w(Dr);options=w(Y,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||eo;urlHandlingStrategy=w(Lt);createViewTransition=w(Ur,{optional:!0});navigationErrorHandler=w(Pr,{optional:!0});routerResourcesFeature=w(_r,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>ny(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new wt(i)),r=i=>this.events.next(new bt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r$10=++this.navigationId;Am(()=>{this.transitions?.next(s(r({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r$10,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new sr$1(null),this.transitions.pipe(Tn$1(r=>r!==null),Gu(r$11=>{let i=!0,o=!1,s$3=new AbortController,c=()=>!o&&this.currentTransition?.id===r$11.id;return ny(r$11).pipe(Gu(a=>{if(this.navigationId>r$11.id)return this.cancelNavigationTransition(r$11,``,E.SupersededByNewNavigation),Rt$1;this.currentTransition=r$11;let u=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:u?s(r({},u),{previousNavigation:null}):null,abort:()=>s$3.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&v!==`reload`)return this.events.next(new V(a.id,this.urlSerializer.serialize(a.rawUrl),``,we.IgnoredSameUrlNavigation)),a.resolve(!1),Rt$1;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return ny(a).pipe(Gu(f=>(this.events.next(new re(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?Rt$1:Promise.resolve(f))),Bo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,s$3.signal),ku(f=>{r$11.targetSnapshot=f.targetSnapshot,r$11.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(R=>(R.finalUrl=f.urlAfterRedirects,R)),this.events.next(new He)}),Gu(f=>Le(r$11.routesRecognizeHandler.deferredHandle??ny(void 0)).pipe(Pe(()=>f))),ku(()=>{let f=new Fe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:R,source:k,restoredState:oe,extras:De}=a,zt=new re(f,this.urlSerializer.serialize(R),k,oe);this.events.next(zt);let Je=Vn(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r$11=s(r({},a),{targetSnapshot:Je,urlAfterRedirects:R,extras:s(r({},De),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(se=>(se.finalUrl=R,se)),ny(r$11)}else return this.events.next(new V(a.id,this.urlSerializer.serialize(a.extractedUrl),``,we.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Rt$1}),Pe(a=>{let u=new yt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(u),this.currentTransition=r$11=s(r({},a),{guards:oo(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r$11}),mo(a=>this.events.next(a)),Gu(a=>{if(r$11.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!=`boolean`)throw _t(this.urlSerializer,a.guardsResult);
1let u=new Rt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(u),!c())return Rt$1;if(!a.guardsResult)return this.cancelNavigationTransition(a,``,E.GuardRejected),Rt$1;if(a.guards.canActivateChecks.length===0)return ny(a);let l=new St(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(l),!c())return Rt$1;let v=!1;return ny(a).pipe(Vo(this.paramsInheritanceStrategy),ku({next:()=>{v=!0;let f=new Ct(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)},complete:()=>{v||this.cancelNavigationTransition(a,``,E.NoDataFromResolver)}}))}),wr(a=>{let u=v=>{let f=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let R=v._environmentInjector;f.push(this.configLoader.loadComponent(R,v.routeConfig).then(k=>{v.component=k}))}for(let R of v.children)f.push(...u(R));return f},l=u(a.targetSnapshot.root);return l.length===0?ny(a):Le(Promise.all(l).then(()=>a))}),Gu(a=>{let{newlyCreatedRoutes:u,state:l}=to(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=r$11=a=s(r({},a),{targetRouterState:l,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=l,v)),ny(a)}),this.routerResourcesFeature?.setupAndRunResources(s$3.signal)??(a=>a),wr(()=>this.afterPreactivation()),Gu(()=>{let{currentSnapshot:a,targetSnapshot:u}=r$11,l=this.createViewTransition?.(this.environmentInjector,a.root,u.root,r$11.hasUAVisualTransition);return l?Le(l).pipe(Pe(()=>r$11)):ny(r$11)}),ko$1(1),Gu(a=>{i=!1,this.events.next(new Ie);let u=r$11.beforeActivateHandler.deferredHandle;return u?Le(u.then(()=>a)):ny(a)}),ku(a=>{new mr(e.routeReuseStrategy,r$11.targetRouterState,r$11.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),a.newlyCreatedRoutes?.clear(),c()&&(di(a.targetRouterState),o=!0,this.currentNavigation.update(u=>(u.abort=Zo,u)),this.lastSuccessfulNavigation.set(Am(this.currentNavigation)),this.events.next(new O(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),zu(ei(s$3.signal).pipe(Tn$1(()=>!o&&i),ku(()=>{this.cancelNavigationTransition(r$11,s$3.signal.reason+``,E.Aborted)}))),ku({complete:()=>{o=!0}}),zu(this.transitionAbortWithErrorSubject.pipe(ku(a=>{throw a}))),$u(()=>{s$3.abort(),o||this.cancelNavigationTransition(r$11,``,E.SupersededByNewNavigation),this.currentTransition?.id===r$11.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Fs(a=>{if(o=!0,Mn(r$11),this.destroyed)return r$11.resolve(!1),Rt$1;if(Jn(a))this.events.next(new x(r$11.id,this.urlSerializer.serialize(r$11.extractedUrl),a.message,a.cancellationCode)),io(a)?this.events.next(new Ee(a.url,a.navigationBehaviorOptions)):r$11.resolve(!1);else{let u=new he(r$11.id,this.urlSerializer.serialize(r$11.extractedUrl),a,r$11.targetSnapshot??void 0);try{let l=ci$1(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Me){let{message:v,cancellationCode:f}=_t(this.urlSerializer,l);this.events.next(new x(r$11.id,this.urlSerializer.serialize(r$11.extractedUrl),v,f)),this.events.next(new Ee(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(u),a}catch(l){this.options.resolveNavigationPromiseOnError?r$11.resolve(!1):r$11.reject(l)}}return Rt$1}))}))}cancelNavigationTransition(e,r,i){Mn(e);let o=new x(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Am(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static ɵfac=function(r){return new(r||t)};static ɵprov=to$1({token:t,factory:t.ɵfac})}return t})();function Jo(t){return t!==Re}function Mn(t){for(let n of t.newlyCreatedRoutes??[])n._localInjector?.destroy(),n._localInjector=void 0;di(t.targetRouterState)}function di(t){if(!t)return;let n=e=>
1{e.value.pending?.set(!1),e.children.forEach(n)};n(t._root)}var hi=new M$1(``);var fi=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=to$1({token:t,factory:()=>w(Xo)})}return t})();var Ut=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}};var Xo=(()=>{class t extends Ut{static ɵfac=function(r){return new(r||t)};static ɵprov=to$1({token:t,factory:t.ɵfac})}return t})();var xt=(()=>{class t{urlSerializer=w(ie);options=w(Y,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||`replace`;location=w(xn$1);urlHandlingStrategy=w(Lt);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;currentUrlTree=new M;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof M?this.urlSerializer.serialize(s):s}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{ɵrouterUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=Vn(null,w(ge));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 ɵfac=function(r){return new(r||t)};static ɵprov=to$1({token:t,factory:()=>w(es)})}return t})();var es=(()=>{class t extends xt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!==`computed`?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type===`popstate`&&setTimeout(()=>{e(r.url,r.state,`popstate`,{replaceUrl:!0},r.hasUAVisualTransition)})})}handleRouterEvent(e,r){e instanceof re?this.updateStateMemento():e instanceof V?this.commitTransition(r):e instanceof Fe?this.urlUpdateStrategy===`eager`&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie?(this.commitTransition(r),this.urlUpdateStrategy===`deferred`&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof x&&!Bn(e)?this.restoreHistory(r):e instanceof he?this.restoreHistory(r,!0):e instanceof O&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r$12){let{extras:i,id:o}=r$12,{replaceUrl:s,state:c}=i;
1if(this.location.isCurrentPathEqualTo(e)||s){let a=this.browserPageId,u=r(r({},c),this.generateNgRouterState(o,a,r$12));this.location.replaceState(e,``,u)}else{let a=r(r({},c),this.generateNgRouterState(o,this.browserPageId+1,r$12));this.location.go(e,``,a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution===`computed`){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution===`replace`&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),``,this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r$13,i){return this.canceledNavigationResolution===`computed`?r({navigationId:e,ɵrouterPageId:r$13},this.routerUrlState(i)):r({navigationId:e},this.routerUrlState(i))}static ɵfac=function(r){return new(r||t)};static ɵprov=to$1({token:t,factory:t.ɵfac})}return t})();function kt(t,n){t.events.pipe(Tn$1(e=>e instanceof O||e instanceof x||e instanceof he||e instanceof V),Pe(e=>e instanceof O||e instanceof V?0:(e instanceof x?e.code===E.Redirect||e.code===E.SupersededByNewNavigation:!1)?2:1),Tn$1(e=>e!==2),ko$1(1)).subscribe(()=>{n()})}var q=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=w(WT);stateManager=w(xt);options=w(Y,{optional:!0})||{};pendingTasks=w(It$1);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;navigationTransitions=w(jt);urlSerializer=w(ie);location=w(xn$1);urlHandlingStrategy=w(Lt);injector=w(ge);_events=new te$1;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=w(fi);injectorCleanup=w(hi,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||`ignore`;config=w(pe,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!w(Ke,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new J;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r$14=>{try{let i=this.navigationTransitions.currentTransition,o=Am(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r$14,o),r$14 instanceof x&&r$14.code!==E.Redirect&&r$14.code!==E.SupersededByNewNavigation)this.navigated=!0;else if(r$14 instanceof O)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r$14 instanceof Ee){let s=r$14.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r$14.url,i.currentRawUrl),a=r({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy===`eager`||Jo(i.source)},s);this.scheduleNavigation(c,Re,null,a,i.hasUAVisualTransition,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Ji(r$14)&&this._events.next(r$14)}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),Re,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o,s)=>{this.navigateToSyncWithBrowser(e,i,r,o,s)})}navigateToSyncWithBrowser(e,r$15,i,o,s$4){let c=i?.navigationId?i:null,a=i?.ɵrouterUrl??e;if(i?.ɵrouterUrl&&(o=s(r({},o),{browserUrl:e})),i){let l=r({},i);delete l.navigationId,delete l.ɵrouterPageId,delete l.ɵrouterUrl,Object.keys(l).length!==0&&(o.state=l)}let u=this.parseUrl(a);this.scheduleNavigation(u,r$15,c,o,s$4).catch(l=>{this.disposed||this.injector.get(Jt)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Am(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Nr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r$16={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:c,preserveFragment:a}=r$16,u=a?this.currentUrlTree.fragment:s,l=null;switch(c??this.options.defaultQueryParamsHandling){case`merge`:l=r(r({},this.currentUrlTree.queryParams),o);break;case`preserve`:l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let v;try{v=zn(i?i.snapshot:this.routerState.snapshot.root)}catch{(typeof e[0]!=`string`||e[0][0]!==`/`)&&(e=[]),v=this.currentUrlTree.root}return qn(v,e,l,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=te(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Re,null,r)}navigate(e,r={skipLocationChange:!1}){return ts(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Ir$1(4018,!1)),this.urlSerializer.parse(`/`)}}isActive(e,r$17){let i;if(r$17===!0?i=r({},br):r$17===!1?i=r({},Ce):i=r(r({},Ce),r$17),te(e))return ur(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ur(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s,c){if(this.disposed)return Promise.resolve(!1);let a,u,l;c?(a=c.resolve,u=c.reject,l=c.promise):l=new Promise((f,R)=>{a=f,u=R});let v=this.pendingTasks.add();return kt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,hasUAVisualTransition:s,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
1),l.catch(Promise.reject.bind(Promise))}static ɵfac=function(r){return new(r||t)};static ɵprov=to$1({token:t,factory:t.ɵfac})}return t})();function ts(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new _(4008,!1)}var rs=(()=>{class t{router=w(q);stateManager=w(xt);fragment=bi$1(``);queryParams=bi$1({});path=bi$1(``);serializer=w(ie);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof O&&this.updateState()})}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new M(r)))}static ɵfac=function(r){return new(r||t)};static ɵprov=to$1({token:t,factory:t.ɵfac})}return t})();var $t=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=w(new Om(`href`),{optional:!0});reactiveHref=e_(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Am(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return Am(this._target)}_target=bi$1(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return Am(this._queryParams)}_queryParams=bi$1(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return Am(this._fragment)}_fragment=bi$1(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return Am(this._queryParamsHandling)}_queryParamsHandling=bi$1(void 0);set state(e){this._state.set(e)}get state(){return Am(this._state)}_state=bi$1(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return Am(this._info)}_info=bi$1(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return Am(this._relativeTo)}_relativeTo=bi$1(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return Am(this._preserveFragment)}_preserveFragment=bi$1(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return Am(this._skipLocationChange)}_skipLocationChange=bi$1(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return Am(this._replaceUrl)}_replaceUrl=bi$1(!1);browserUrl=xj(void 0);isAnchorElement;onChanges=new te$1;applicationErrorHandler=w(Jt);options=w(Y,{optional:!0});reactiveRouterState=w(rs);constructor(e,r,i,o,s,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=c;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a===`a`||a===`area`||!!(typeof customElements==`object`&&customElements.get(a)?.observedAttributes?.includes?.(`href`))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue(`tabindex`,e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=bi$1(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl(`0`))}onClick(e,r$18,i,o,s){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r$18||i||o||s||typeof this.target==`string`&&this.target!=`_self`))return!0;let a=this.browserUrl(),u=r({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},a!==void 0&&{browserUrl:a});return this.router.navigateByUrl(c,u)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}_urlTree=JC(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i===`preserve`||i===`merge`;(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:te(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return Am(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??``:null}static ɵfac=function(r){return new(r||t)(lo$1(q),lo$1(G),Cp(`tabindex`),lo$1(Sc),lo$1(no$1),lo$1(ue))};static ɵdir=sT({type:t,selectors:[[``,`routerLink`,``]],hostVars:2,hostBindings:function(r,i){r&1&&qg(`click`,function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Fg(`href`,i.reactiveHref(),CE)(`target`,i._target())},inputs:{target:`target`,queryParams:`queryParams`,fragment:`fragment`,queryParamsHandling:`queryParamsHandling`,state:`state`,info:`info`,relativeTo:`relativeTo`,preserveFragment:[2,`preserveFragment`,`preserveFragment`,jj],skipLocationChange:[2,`skipLocationChange`,`skipLocationChange`,jj],replaceUrl:[2,`replaceUrl`,`replaceUrl`,jj],browserUrl:[1,`browserUrl`],routerLink:`routerLink`},features:[$v]})}return t})();var ns=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new Je;link=w($t,{optional:!0});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof O&&this.update()})}ngAfterContentInit(){ny(this.links.changes,ny(null)).pipe(cr$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Le(e).pipe(cr$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){if(e==null){this.classes=[];return}let r=Array.isArray(e)?e:e.split(` `);this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||this.routerLinkActiveOptions===null&&!this._isActive||queueMicrotask(()=>{let e=this.hasActiveLinks();
1this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,`aria-current`,this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,`aria-current`),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r$19=this.routerLinkActiveOptions;if(r$19===null)return()=>!1;let i;return r$19===void 0?i=r({},Ce):is(r$19)?i=r$19:r$19.exact??!1?i=r({},br):i=r({},Ce),o=>{let s=o.urlTree;return s?Am(Ir(s,e,i)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static ɵfac=function(r){return new(r||t)(lo$1(q),lo$1(no$1),lo$1(Sc),lo$1(Pj))};static ɵdir=sT({type:t,selectors:[[``,`routerLinkActive`,``]],contentQueries:function(r,i,o){if(r&1&&Qg(o,$t,5),r&2){let s;$b(s=Ub())&&(i.links=s)}},inputs:{routerLinkActiveOptions:`routerLinkActiveOptions`,ariaCurrentWhenActive:`ariaCurrentWhenActive`,routerLinkActive:`routerLinkActive`},outputs:{isActiveChange:`isActiveChange`},exportAs:[`routerLinkActive`],features:[$v]})}return t})();function is(t){let n=t;return!!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ze=class{};var pi=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Tn$1(e=>e instanceof O),Oy(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=$l(o.providers,e,``));let s=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(s).injector);let c=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes))}return Le(i).pipe(cr$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return ny(null);let i;r.loadChildren&&r.canLoad===void 0?i=Le(this.loader.loadChildren(e,r)):i=ny(null);let o=i.pipe(Qe$1(s=>s===null?ny(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent)return Le([o,this.loader.loadComponent(e,r)]).pipe(cr$1());else return o})}static ɵfac=function(r){return new(r||t)(Ve$1(q),Ve$1(ge),Ve$1(Ze),Ve$1(Pt))};static ɵprov=K$1({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var gi=new M$1(``);var os=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Re;restoredId=0;store={};isHydrating=w(EI,{optional:!0})??!1;urlSerializer=w(ie);zone=w(oe);viewportScroller=w(oa);transitions=w(jt);constructor(e){this.options=e,this.options.scrollPositionRestoration||=`disabled`,this.options.anchorScrolling||=`disabled`,this.isHydrating&&w(nr$1).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!==`disabled`&&this.viewportScroller.setHistoryScrollRestoration(`manual`),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof re?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof O?
1(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof V&&e.code===we.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof be)||e.scrollBehavior===`manual`)return;let r={behavior:`instant`};e.position?this.options.scrollPositionRestoration===`top`?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration===`enabled`&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling===`enabled`?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!==`disabled`&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=Am(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(async()=>{await new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<`u`&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new be(e,this.lastSource===`popstate`?this.store[this.restoredId]:null,r,i))})})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static ɵfac=function(r){Iw()};static ɵprov=K$1({token:t,factory:t.ɵfac})}return t})();function ss(t,...n){return si$1([{provide:pe,multi:!0,useValue:t},{provide:G,useFactory:vi},{provide:Og,multi:!0,useFactory:mi},n.map(e=>e.ɵproviders)])}function vi(){return w(q).routerState.root}function _e(t,n){return{ɵkind:t,ɵproviders:n}}function mi(){let t=w(Ee$1);return n=>{let e=t.get(nr$1);if(n!==e.components[0])return;let r=t.get(q),i=t.get(yi);t.get(jr)===1&&r.initialNavigation(),t.get(Ci,null,{optional:!0})?.setUpPreloading(),t.get(gi,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var yi=new M$1(``,{factory:()=>new te$1});var jr=new M$1(``,{factory:()=>1});function Ri(){return _e(2,[{provide:DI,useValue:!0},{provide:jr,useValue:0},lT(()=>{let n=w(Ee$1);return n.get(Hr,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(q),o=n.get(yi);kt(i,()=>{r(!0)}),n.get(jt).afterPreactivation=()=>(r(!0),o.closed?ny(void 0):o),i.initialNavigation()}))})])}function Si(){return _e(3,[lT(()=>{w(q).setUpLocationChangeListener()}),{provide:jr,useValue:2}])}var Ci=new M$1(``);function wi(t){return _e(0,[{provide:Ci,useExisting:pi},{provide:Ze,useExisting:t}])}function as(t){return _e(5,[{provide:Y,useValue:t}])}function bi(t={}){return _e(8,[{provide:Ke,useFactory:()=>new Kn(t,w(_r,{optional:!0}))}])}function Ii(t){fe$1(`NgRouterViewTransitions`);return _e(9,[{provide:Ur,useValue:li},{provide:Or,useValue:r({skipNextTransition:!!t?.skipInitialTransition},t)}])}var Ei=[xn$1,{provide:ie,useClass:K},q,ne,{provide:G,useFactory:vi},Pt];var cs=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[Ei,[],{provide:pe,multi:!0,useValue:e},[],r?.errorHandler?{provide:Pr,useValue:r.errorHandler}:[],{provide:Y,useValue:r||{}},r?.useHash?ls():ds(),us(),r?.preloadingStrategy?wi(r.preloadingStrategy).ɵproviders:[],r?.initialNavigation?hs(r):[],r?.bindToComponentInputs?bi(typeof r.bindToComponentInputs==`object`?r.bindToComponentInputs:{}).ɵproviders:[],r?.enableViewTransitions?Ii().ɵproviders:[],fs()]}}static forChild(e){return{ngModule:t,providers:[{provide:pe,multi:!0,useValue:e}]}}static ɵfac=function(r){return new(r||t)};static ɵmod=rT({type:t});static ɵinj=dd({})}return t})();function us(){return{provide:gi,useFactory:()=>{let t=w(oa),n=w(Y);return n.scrollOffset&&t.setOffset(n.scrollOffset),new os(n)}}}function ls(){return{provide:ue,useClass:Yr}}function ds(){return{provide:ue,useClass:Ln$1}}function hs(t){return[t.initialNavigation===`disabled`?Si().ɵproviders:[],t.initialNavigation===`enabledBlocking`?Ri().ɵproviders:[]]}var Lr=new M$1(``);function fs(){return[{provide:Lr,useFactory:mi},{provide:Og,multi:!0,useExisting:Lr}]}export{x as _,Mr as a,bi as c,he as d,ie as f,ss as g,re as h,Ir as i,cs as l,q as m,Ct as n,O as o,ns as p,G as r,as as s,$t as t,g as u};
2//# debugId=a5a10a7f-3b4f-568a-82e8-85b1ef66645d

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.