PageSourceSearch

https://heylearning.net/en/chunk-D4FG3VWI.js

js heylearning.net collected 2026-10-09 04:39:20 UTC 73,845 bytes, 2 lines download raw bytes

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

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.