homebridge-config-ui-x 5.0.0-beta.49 → 5.0.0-beta.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -1
- package/package.json +14 -14
- package/public/chunk-276OSEZQ.js +7 -0
- package/public/{chunk-MVBTQKIK.js → chunk-2WHZVNIL.js} +1 -1
- package/public/{chunk-HMCIUNTI.js → chunk-4ZL63DAS.js} +1 -1
- package/public/{chunk-P4G7R233.js → chunk-56RER65C.js} +1 -1
- package/public/chunk-5MSINJOP.js +1 -0
- package/public/{chunk-PPT7YV25.js → chunk-5ONHAKZR.js} +1 -1
- package/public/{chunk-5FAAGX6Q.js → chunk-5V64KILF.js} +1 -1
- package/public/{chunk-BRLQRDDE.js → chunk-6GXK647W.js} +1 -1
- package/public/{chunk-AYMOJATW.js → chunk-6MPSM5D6.js} +1 -1
- package/public/chunk-6RK4ITUO.js +1 -0
- package/public/chunk-75KPAY3Q.js +1 -0
- package/public/{chunk-JS6ONM73.js → chunk-AENRYLWF.js} +1 -1
- package/public/{chunk-Q5OOH5FM.js → chunk-AJYKZAH3.js} +1 -1
- package/public/{chunk-AL4B7SPR.js → chunk-AU2REXCU.js} +5 -5
- package/public/chunk-AZJVWGE5.js +1 -0
- package/public/chunk-BRK3WB3H.js +1 -0
- package/public/{chunk-COKV5KB2.js → chunk-BULYN7ZO.js} +1 -1
- package/public/{chunk-JMV6GJY6.js → chunk-DSIAGWN2.js} +1 -1
- package/public/{chunk-W7TUYK4G.js → chunk-F2FNCF5K.js} +1 -1
- package/public/chunk-G6ROSMJ3.js +1 -0
- package/public/{chunk-UJ4WWACD.js → chunk-GHKR2EZU.js} +1 -1
- package/public/{chunk-4TLWNUVF.js → chunk-GUS2LV3D.js} +1 -1
- package/public/{chunk-IFQZA7AR.js → chunk-H444L7G2.js} +1 -1
- package/public/{chunk-DODCDNCH.js → chunk-HG2QB6Y6.js} +1 -1
- package/public/{chunk-DZZJUIUB.js → chunk-HNFETLSU.js} +2 -2
- package/public/{chunk-6Z26BY4U.js → chunk-HPUZDM2V.js} +16 -16
- package/public/{chunk-3MS5T333.js → chunk-HRPNY45F.js} +1 -1
- package/public/{chunk-A36UOKQM.js → chunk-HYGERTMR.js} +2 -2
- package/public/{chunk-36QWIZI7.js → chunk-I7SLBIH6.js} +1 -1
- package/public/{chunk-RXVUWQQM.js → chunk-IEZLZCA6.js} +1 -1
- package/public/chunk-IH2OXT2T.js +1 -0
- package/public/{chunk-PUTZ5W4K.js → chunk-J77TCJAI.js} +1 -1
- package/public/chunk-JDXSF4VD.js +1 -0
- package/public/{chunk-RVYIQ5LE.js → chunk-JJFCKMHJ.js} +1 -1
- package/public/chunk-K7IKFAZN.js +1 -0
- package/public/chunk-KAFQN55U.js +1 -0
- package/public/{chunk-ZOFET4WQ.js → chunk-KAPE7X2V.js} +1 -1
- package/public/{chunk-M5C4PXJK.js → chunk-KQATISYN.js} +1 -1
- package/public/{chunk-CXFP5Z3Z.js → chunk-LMNTZZKY.js} +1 -1
- package/public/chunk-LZIWKREV.js +1 -0
- package/public/{chunk-R5YQXFDB.js → chunk-M2ZTMXK6.js} +1 -1
- package/public/chunk-MDBWULHP.js +1 -0
- package/public/chunk-MF3MK5NW.js +1 -0
- package/public/{chunk-Z2MYOFRS.js → chunk-MFNVTZHA.js} +1 -1
- package/public/{chunk-S6FGILT3.js → chunk-MNEDGYZ3.js} +1 -1
- package/public/{chunk-P33XPQJZ.js → chunk-MQWX6PSO.js} +1 -1
- package/public/chunk-NAMO762C.js +1 -0
- package/public/chunk-NF5SPN5X.js +1 -0
- package/public/chunk-NINDI35B.js +1 -0
- package/public/chunk-NYUJXXQS.js +1 -0
- package/public/chunk-O7H2IFCY.js +1 -0
- package/public/{chunk-7WVCMXZM.js → chunk-OKZF7N6P.js} +1 -1
- package/public/chunk-OO3HYTGF.js +1 -0
- package/public/{chunk-C7MCJ3HJ.js → chunk-OPWJCA7K.js} +1 -1
- package/public/{chunk-3BDQDK7Z.js → chunk-OQDRBWFU.js} +1 -1
- package/public/{chunk-6RXHLHWG.js → chunk-OR3OTNZX.js} +1 -1
- package/public/{chunk-3M4FKD4C.js → chunk-OU5BBEVP.js} +1 -1
- package/public/{chunk-QZAASX2P.js → chunk-OW57Y4JF.js} +1 -1
- package/public/{chunk-2RHVBUWQ.js → chunk-OXRKLTFO.js} +1 -1
- package/public/{chunk-Y4U2OZ54.js → chunk-P2G4VWRA.js} +1 -1
- package/public/chunk-PEIQT4KX.js +1 -0
- package/public/{chunk-6DI47FXW.js → chunk-PEPPIHCS.js} +1 -1
- package/public/{chunk-ASGWDNPK.js → chunk-PW5JY4GF.js} +1 -1
- package/public/{chunk-IGGAKDGB.js → chunk-QKWW5YEX.js} +1 -1
- package/public/chunk-QPC23WSW.js +1 -0
- package/public/{chunk-Z2XEI7AO.js → chunk-QR2MNMQY.js} +1 -1
- package/public/{chunk-YK66OZMP.js → chunk-R6O55HPN.js} +1 -1
- package/public/chunk-RDUPRTJ7.js +1 -0
- package/public/chunk-RIAD7LOL.js +1 -0
- package/public/{chunk-5EOKPNKK.js → chunk-SKJSWOOW.js} +1 -1
- package/public/{chunk-ROLRUBFP.js → chunk-TL73FN75.js} +1 -1
- package/public/{chunk-IJXZOFF2.js → chunk-TOHNQM4M.js} +1 -1
- package/public/chunk-UQTGLBZN.js +1 -0
- package/public/{chunk-JYTZL4JA.js → chunk-V5KD6NYE.js} +1 -1
- package/public/chunk-VOUY3YCM.js +1 -0
- package/public/{chunk-R3UJDRMY.js → chunk-XA36QX5R.js} +1 -1
- package/public/{chunk-LVTTA25W.js → chunk-XDJ55I6S.js} +1 -1
- package/public/{chunk-7G4JRXOV.js → chunk-XU7GHNFE.js} +1 -1
- package/public/chunk-XV7KL7UL.js +1 -0
- package/public/chunk-YIPVTR4W.js +1 -0
- package/public/{chunk-F3B373TU.js → chunk-YPVHF7R5.js} +1 -1
- package/public/{chunk-O4J5XPML.js → chunk-ZD564EAP.js} +1 -1
- package/public/{chunk-LWRSZZVK.js → chunk-ZLL4TMOU.js} +1 -1
- package/public/index.html +1 -1
- package/public/{main-KV6LSW6T.js → main-OCFNRSAL.js} +1 -1
- package/public/chunk-2DNEBY5E.js +0 -1
- package/public/chunk-3FYKWBX4.js +0 -1
- package/public/chunk-45EEWPPP.js +0 -1
- package/public/chunk-467DG7CQ.js +0 -1
- package/public/chunk-4Z3PKFSC.js +0 -1
- package/public/chunk-CTNJDNS2.js +0 -1
- package/public/chunk-CUJHL6GN.js +0 -1
- package/public/chunk-CZTEBDJ7.js +0 -1
- package/public/chunk-D3ALOR2J.js +0 -1
- package/public/chunk-EWBJKCV2.js +0 -1
- package/public/chunk-EWKRKJWP.js +0 -1
- package/public/chunk-FBYMGTFS.js +0 -1
- package/public/chunk-JDRGU6D5.js +0 -1
- package/public/chunk-JJBFROMM.js +0 -1
- package/public/chunk-JUGLUJ6M.js +0 -1
- package/public/chunk-KA7VEXYP.js +0 -1
- package/public/chunk-KSYVP6OJ.js +0 -1
- package/public/chunk-L4CXAWDO.js +0 -1
- package/public/chunk-LUOETQYT.js +0 -1
- package/public/chunk-MJNSII2N.js +0 -1
- package/public/chunk-MWYAZTLX.js +0 -1
- package/public/chunk-N5DHAEO2.js +0 -7
- package/public/chunk-QJYOQ4DI.js +0 -1
- package/public/chunk-S5GONVEN.js +0 -1
- package/public/chunk-SDKSMP3B.js +0 -1
- package/public/chunk-UX3DMSLN.js +0 -1
- package/public/chunk-X2TCWBWH.js +0 -1
- package/public/chunk-XKCVC7DK.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as Xr}from"./chunk-A36UOKQM.js";import{$ as N,A as Re,Aa as Dr,B as yr,Ba as Mr,C as yt,Ca as oe,Da as It,Dc as Ge,Eb as Lr,Fb as Ot,Fc as Qe,Ga as Or,Gb as kr,H as X,Ha as At,Hb as _r,Ib as zr,Ic as Ke,K as ne,L as ie,Mc as Wr,N as Rt,O as se,Qc as Gr,S as Ve,Sa as Tr,Sc as Qr,T as W,Tc as Ce,U as St,V as Rr,Vb as Fr,Vc as Kr,W as Sr,Wc as Zr,Xc as we,_ as Cr,a as h,aa as wr,ac as qr,b as M,ba as I,da as A,eb as Ur,ec as Br,ga as w,gc as Vr,ha as br,hc as Hr,i as pr,ia as Ir,j as gr,ja as T,ka as Ct,l as vt,la as G,lb as Dt,ld as Yr,m as mt,ma as p,mb as $,n as H,nb as Er,o as x,ob as xr,p as F,q as D,qa as Se,qb as Pr,r as f,ra as _,rb as Mt,s as ye,sb as jr,t as vr,ta as He,tb as Nr,u as mr,ub as We,x as R,xa as wt,y as Be,ya as Ar,z as O,za as bt,zb as $r}from"./chunk-N5DHAEO2.js";var g="primary",Ne=Symbol("RouteTitle"),Pt=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function de(t){return new Pt(t)}function Wn(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let i={};for(let s=0;s<n.length;s++){let o=n[s],u=t[s];if(o[0]===":")i[o.substring(1)]=u;else if(o!==u.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function Gn(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!z(t[e],r[e]))return!1;return!0}function z(t,r){let e=t?jt(t):void 0,n=r?jt(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let s=0;s<e.length;s++)if(i=e[s],!ln(t[i],r[i]))return!1;return!0}function jt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function ln(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,s)=>n[s]===i)}else return t===r}function hn(t){return t.length>0?t[t.length-1]:null}function Z(t){return vr(t)?t:Lr(t)?D(Promise.resolve(t)):f(t)}var Qn={exact:fn,subset:pn},dn={exact:Kn,subset:Zn,ignored:()=>!0};function Jr(t,r,e){return Qn[e.paths](t.root,r.root,e.matrixParams)&&dn[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Kn(t,r){return z(t,r)}function fn(t,r,e){if(!ee(t.segments,r.segments)||!Xe(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!fn(t.children[n],r.children[n],e))return!1;return!0}function Zn(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>ln(t[e],r[e]))}function pn(t,r,e){return gn(t,r,r.segments,e)}function gn(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ee(i,e)||r.hasChildren()||!Xe(i,e,n))}else if(t.segments.length===e.length){if(!ee(t.segments,e)||!Xe(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!pn(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!ee(t.segments,i)||!Xe(t.segments,i,n)||!t.children[g]?!1:gn(t.children[g],r,s,n)}}function Xe(t,r,e){return r.every((n,i)=>dn[e](t[i].parameters,n.parameters))}var B=class{root;queryParams;fragment;_queryParamMap;constructor(r=new y([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){var r;return(r=this._queryParamMap)!=null||(this._queryParamMap=de(this.queryParams)),this._queryParamMap}toString(){return Jn.serialize(this)}},y=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Je(this)}},J=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){var r;return(r=this._parameterMap)!=null||(this._parameterMap=de(this.parameters)),this._parameterMap}toString(){return mn(this)}};function Yn(t,r){return ee(t,r)&&t.every((e,n)=>z(e.parameters,r[n].parameters))}function ee(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function Xn(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===g&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==g&&(e=e.concat(r(i,n)))}),e}var $e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>new fe,providedIn:"root"})}return t})(),fe=class{parse(r){let e=new $t(r);return new B(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${be(r.root,!0)}`,n=ri(r.queryParams),i=typeof r.fragment=="string"?`#${ei(r.fragment)}`:"";return`${e}${n}${i}`}},Jn=new fe;function Je(t){return t.segments.map(r=>mn(r)).join("/")}function be(t,r){if(!t.hasChildren())return Je(t);if(r){let e=t.children[g]?be(t.children[g],!1):"",n=[];return Object.entries(t.children).forEach(([i,s])=>{i!==g&&n.push(`${i}:${be(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=Xn(t,(n,i)=>i===g?[be(t.children[g],!1)]:[`${i}:${be(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${Je(t)}/${e[0]}`:`${Je(t)}/(${e.join("//")})`}}function vn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ze(t){return vn(t).replace(/%3B/gi,";")}function ei(t){return encodeURI(t)}function Nt(t){return vn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function et(t){return decodeURIComponent(t)}function en(t){return et(t.replace(/\+/g,"%20"))}function mn(t){return`${Nt(t.path)}${ti(t.parameters)}`}function ti(t){return Object.entries(t).map(([r,e])=>`;${Nt(r)}=${Nt(e)}`).join("")}function ri(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Ze(e)}=${Ze(i)}`).join("&"):`${Ze(e)}=${Ze(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var ni=/^[^\/()?;#]+/;function Tt(t){let r=t.match(ni);return r?r[0]:""}var ii=/^[^\/()?;=#]+/;function si(t){let r=t.match(ii);return r?r[0]:""}var oi=/^[^=?&#]+/;function ai(t){let r=t.match(oi);return r?r[0]:""}var ui=/^[^&#]+/;function ci(t){let r=t.match(ui);return r?r[0]:""}var $t=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new y([],{}):new y([],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 e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[g]=new y(r,e)),n}parseSegment(){let r=Tt(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new A(4009,!1);return this.capture(r),new J(et(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=si(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=Tt(this.remaining);i&&(n=i,this.capture(n))}r[et(e)]=et(n)}parseQueryParam(r){let e=ai(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=ci(this.remaining);o&&(n=o,this.capture(n))}let i=en(e),s=en(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 e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Tt(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new A(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=g);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[g]:new y([],o),this.consumeOptional("//")}return e}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 A(4011,!1)}};function yn(t){return t.segments.length>0?new y([],{[g]:t}):t}function Rn(t){let r={};for(let[n,i]of Object.entries(t.children)){let s=Rn(i);if(n===g&&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 e=new y(t.segments,r);return li(e)}function li(t){if(t.numberOfChildren===1&&t.children[g]){let r=t.children[g];return new y(t.segments.concat(r.segments),r.children)}return t}function te(t){return t instanceof B}function hi(t,r,e=null,n=null){let i=Sn(t);return Cn(i,r,e,n)}function Sn(t){let r;function e(s){let o={};for(let a of s.children){let c=e(a);o[a.outlet]=c}let u=new y(s.url,o);return s===t&&(r=u),u}let n=e(t.root),i=yn(n);return r!=null?r:i}function Cn(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return Ut(i,i,i,e,n);let s=di(r);if(s.toRoot())return Ut(i,i,new y([],{}),e,n);let o=fi(s,i,t),u=o.processChildren?Ae(o.segmentGroup,o.index,s.commands):bn(o.segmentGroup,o.index,s.commands);return Ut(i,o.segmentGroup,u,e,n)}function tt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Oe(t){return typeof t=="object"&&t!=null&&t.outlets}function Ut(t,r,e,n,i){let s={};n&&Object.entries(n).forEach(([a,c])=>{s[a]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let o;t===r?o=e:o=wn(t,r,e);let u=yn(Rn(o));return new B(u,s,i)}function wn(t,r,e){let n={};return Object.entries(t.children).forEach(([i,s])=>{s===r?n[i]=e:n[i]=wn(s,r,e)}),new y(t.segments,n)}var rt=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&tt(n[0]))throw new A(4003,!1);let i=n.find(Oe);if(i&&i!==hn(n))throw new A(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function di(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new rt(!0,0,t);let r=0,e=!1,n=t.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===""?e=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,s]},[]);return new rt(e,r,n)}var ce=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function fi(t,r,e){if(t.isAbsolute)return new ce(r,!0,0);if(!e)return new ce(r,!1,NaN);if(e.parent===null)return new ce(e,!0,0);let n=tt(t.commands[0])?0:1,i=e.segments.length-1+n;return pi(e,i,t.numberOfDoubleDots)}function pi(t,r,e){let n=t,i=r,s=e;for(;s>i;){if(s-=i,n=n.parent,!n)throw new A(4005,!1);i=n.segments.length}return new ce(n,!1,i-s)}function gi(t){return Oe(t[0])?t[0].outlets:{[g]:t}}function bn(t,r,e){if(t!=null||(t=new y([],{})),t.segments.length===0&&t.hasChildren())return Ae(t,r,e);let n=vi(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let s=new y(t.segments.slice(0,n.pathIndex),{});return s.children[g]=new y(t.segments.slice(n.pathIndex),t.children),Ae(s,0,i)}else return n.match&&i.length===0?new y(t.segments,{}):n.match&&!t.hasChildren()?Lt(t,r,e):n.match?Ae(t,0,i):Lt(t,r,e)}function Ae(t,r,e){if(e.length===0)return new y(t.segments,{});{let n=gi(e),i={};if(Object.keys(n).some(s=>s!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let s=Ae(t.children[g],r,e);return new y(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=bn(t.children[s],r,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new y(t.segments,i)}}function vi(t,r,e){let n=0,i=r,s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return s;let o=t.segments[i],u=e[n];if(Oe(u))break;let a=`${u}`,c=n<e.length-1?e[n+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!rn(a,c,o))return s;n+=2}else{if(!rn(a,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Lt(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let s=e[i];if(Oe(s)){let a=mi(s.outlets);return new y(n,a)}if(i===0&&tt(e[0])){let a=t.segments[r];n.push(new J(a.path,tn(e[0]))),i++;continue}let o=Oe(s)?s.outlets[g]:`${s}`,u=i<e.length-1?e[i+1]:null;o&&u&&tt(u)?(n.push(new J(o,tn(u))),i+=2):(n.push(new J(o,{})),i++)}return new y(n,{})}function mi(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=Lt(new y([],{}),0,n))}),r}function tn(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function rn(t,r,e){return t==e.path&&z(r,e.parameters)}var De="imperative",S=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(S||{}),P=class{id;url;constructor(r,e){this.id=r,this.url=e}},pe=class extends P{type=S.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},k=class extends P{urlAfterRedirects;type=S.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},E=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(E||{}),nt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(nt||{}),q=class extends P{reason;code;type=S.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Q=class extends P{reason;code;type=S.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},Te=class extends P{error;target;type=S.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},it=class extends P{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kt=class extends P{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_t=class extends P{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(r,e,n,i,s){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},zt=class extends P{urlAfterRedirects;state;type=S.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ft=class extends P{urlAfterRedirects;state;type=S.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qt=class{route;type=S.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Bt=class{route;type=S.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Vt=class{snapshot;type=S.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ht=class{snapshot;type=S.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wt=class{snapshot;type=S.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gt=class{snapshot;type=S.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},st=class{routerEvent;position;anchor;type=S.Scroll;constructor(r,e,n){this.routerEvent=r,this.position=e,this.anchor=n}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},Ue=class{},ge=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function yi(t,r){var e;return t.providers&&!t._injector&&(t._injector=Mt(t.providers,r,`Route: ${t.path}`)),(e=t._injector)!=null?e:r}function L(t){return t.outlet||g}function Ri(t,r){let e=t.filter(n=>L(n)===r);return e.push(...t.filter(n=>L(n)!==r)),e}function Le(t){var r;if(!t)return null;if((r=t.routeConfig)!=null&&r._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let n=e.routeConfig;if(n!=null&&n._loadedInjector)return n._loadedInjector;if(n!=null&&n._injector)return n._injector}return null}var Qt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){var r,e;return(e=Le((r=this.route)==null?void 0:r.snapshot))!=null?e:this.rootInjector}constructor(r){this.rootInjector=r,this.children=new ke(this.rootInjector)}},ke=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Qt(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(G(Se))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ot=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Kt(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=Kt(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=Zt(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Zt(r,this._root).map(e=>e.value)}};function Kt(t,r){if(t===r.value)return r;for(let e of r.children){let n=Kt(t,e);if(n)return n}return null}function Zt(t,r){if(t===r.value)return[r];for(let e of r.children){let n=Zt(t,e);if(n.length)return n.unshift(r),n}return[]}var U=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function ue(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var at=class extends ot{snapshot;constructor(r,e){super(r),this.snapshot=e,sr(this,r)}toString(){return this.snapshot.toString()}};function In(t){let r=Si(t),e=new x([new J("",{})]),n=new x({}),i=new x({}),s=new x({}),o=new x(""),u=new re(e,n,s,o,i,g,t,r.root);return u.snapshot=r.root,new at(new U(u,[]),r)}function Si(t){let r={},e={},n={},i="",s=new le([],r,n,i,e,g,t,null,{});return new ct("",new U(s,[]))}var re=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,s,o,u,a){var c,l;this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=u,this._futureSnapshot=a,this.title=(l=(c=this.dataSubject)==null?void 0:c.pipe(R(v=>v[Ne])))!=null?l:f(void 0),this.url=r,this.params=e,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(){var r;return(r=this._paramMap)!=null||(this._paramMap=this.params.pipe(R(e=>de(e)))),this._paramMap}get queryParamMap(){var r;return(r=this._queryParamMap)!=null||(this._queryParamMap=this.queryParams.pipe(R(e=>de(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ut(t,r,e="emptyOnly"){var s,o;let n,{routeConfig:i}=t;return r!==null&&(e==="always"||(i==null?void 0:i.path)===""||!r.component&&!((s=r.routeConfig)!=null&&s.loadComponent))?n={params:h(h({},r.params),t.params),data:h(h({},r.data),t.data),resolve:h(h(h(h({},t.data),r.data),i==null?void 0:i.data),t._resolvedData)}:n={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),(o=t._resolvedData)!=null?o:{})},i&&Dn(i)&&(n.resolve[Ne]=i.title),n}var le=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){var r;return(r=this.data)==null?void 0:r[Ne]}constructor(r,e,n,i,s,o,u,a,c){this.url=r,this.params=e,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(){var r;return(r=this._paramMap)!=null||(this._paramMap=de(this.params)),this._paramMap}get queryParamMap(){var r;return(r=this._queryParamMap)!=null||(this._queryParamMap=de(this.queryParams)),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},ct=class extends ot{url;constructor(r,e){super(e),this.url=r,sr(this,e)}toString(){return An(this._root)}};function sr(t,r){r.value._routerState=t,r.children.forEach(e=>sr(t,e))}function An(t){let r=t.children.length>0?` { ${t.children.map(An).join(", ")} } `:"";return`${t.value}${r}`}function Et(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,z(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),z(r.params,e.params)||t.paramsSubject.next(e.params),Gn(r.url,e.url)||t.urlSubject.next(e.url),z(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Yt(t,r){let e=z(t.params,r.params)&&Yn(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||Yt(t.parent,r.parent))}function Dn(t){return typeof t.title=="string"||t.title===null}var Ci=new T(""),wi=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new oe;deactivateEvents=new oe;attachEvents=new oe;detachEvents=new oe;routerOutletData=Or(void 0);parentContexts=p(ke);location=p(xr);changeDetector=p(Qe);inputBinder=p(pt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){var e;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(e=this.inputBinder)==null||e.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){var n;return((n=this.parentContexts.getContext(e))==null?void 0:n.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e!=null&&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 A(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new A(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new A(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){var i;this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),(i=this.inputBinder)==null||i.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){var c;if(this.isActivated)throw new A(4013,!1);this._activatedRoute=e;let i=this.location,o=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new Xt(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(o,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),(c=this.inputBinder)==null||c.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=We({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[He]})}return t})(),Xt=class t{route;childContexts;parent;outletData;__ngOutletInjector(r){return new t(this.route,this.childContexts,r,this.outletData)}constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===re?this.route:r===ke?this.childContexts:r===Ci?this.outletData:this.parent.get(r,e)}},pt=new T(""),nn=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){var n;(n=this.outletDataSubscriptions.get(e))==null||n.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=Be([n.queryParams,n.params,n.data]).pipe(N(([s,o,u],a)=>(u=h(h(h({},s),o),u),a===0?f(u):Promise.resolve(u)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let o=Wr(n.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of o.inputs)e.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();function bi(t,r,e){let n=Ee(t,r._root,e?e._root:void 0);return new at(n,r)}function Ee(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Ii(t,r,e);return new U(n,i)}else{if(t.shouldAttach(r.value)){let s=t.retrieve(r.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=r.value,o.children=r.children.map(u=>Ee(t,u)),o}}let n=Ai(r.value),i=r.children.map(s=>Ee(t,s));return new U(n,i)}}function Ii(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Ee(t,n,i);return Ee(t,n)})}function Ai(t){return new re(new x(t.url),new x(t.params),new x(t.queryParams),new x(t.fragment),new x(t.data),t.outlet,t.component,t)}var xe=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},Mn="ngNavigationCancelingError";function lt(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=te(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=On(!1,E.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function On(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Mn]=!0,e.cancellationCode=r,e}function Di(t){return Tn(t)&&te(t.url)}function Tn(t){return!!t&&t[Mn]}var Mi=(t,r,e,n)=>R(i=>(new Jt(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),Jt=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,s){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),Et(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ue(e);r.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,e,n){let i=r.value,s=e?e.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(r,e,o.children)}else this.deactivateChildRoutes(r,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,s=ue(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,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,s=ue(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,e,n){let i=ue(e);r.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new Gt(s.value.snapshot))}),r.children.length&&this.forwardEvent(new Ht(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,s=e?e.value:null;if(Et(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,o.children)}else this.activateChildRoutes(r,e,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),Et(u.route.value),this.activateChildRoutes(r,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(r,null,o.children)}else this.activateChildRoutes(r,null,n)}},ht=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},he=class{component;route;constructor(r,e){this.component=r,this.route=e}};function Oi(t,r,e){let n=t._root,i=r?r._root:null;return Ie(n,i,e,[n.value])}function Ti(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function me(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Ir(t)?t:r.get(t):n}function Ie(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=ue(r);return t.children.forEach(o=>{Ui(o,s[o.value.outlet],e,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,u])=>Me(u,e.getContext(o),i)),i}function Ui(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=r?r.value:null,u=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=Ei(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new ht(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Ie(t,r,u?u.children:null,n,i):Ie(t,r,e,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new he(u.outlet.component,o))}else o&&Me(r,u,i),i.canActivateChecks.push(new ht(n)),s.component?Ie(t,null,u?u.children:null,n,i):Ie(t,null,e,n,i);return i}function Ei(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!ee(t.url,r.url);case"pathParamsOrQueryParamsChange":return!ee(t.url,r.url)||!z(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yt(t,r)||!z(t.queryParams,r.queryParams);case"paramsChange":default:return!Yt(t,r)}}function Me(t,r,e){let n=ue(t),i=t.value;Object.entries(n).forEach(([s,o])=>{i.component?r?Me(o,r.children.getContext(s),e):Me(o,null,e):Me(o,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new he(r.outlet.component,i)):e.canDeactivateChecks.push(new he(null,i)):e.canDeactivateChecks.push(new he(null,i))}function _e(t){return typeof t=="function"}function xi(t){return typeof t=="boolean"}function Pi(t){return t&&_e(t.canLoad)}function ji(t){return t&&_e(t.canActivate)}function Ni(t){return t&&_e(t.canActivateChild)}function $i(t){return t&&_e(t.canDeactivate)}function Li(t){return t&&_e(t.canMatch)}function Un(t){return t instanceof mr||(t==null?void 0:t.name)==="EmptyError"}var Ye=Symbol("INITIAL_VALUE");function ve(){return N(t=>Be(t.map(r=>r.pipe(se(1),Cr(Ye)))).pipe(R(r=>{for(let e of r)if(e!==!0){if(e===Ye)return Ye;if(e===!1||ki(e))return e}return!0}),X(r=>r!==Ye),se(1)))}function ki(t){return te(t)||t instanceof xe}function _i(t,r){return O(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?f(M(h({},e),{guardsResult:!0})):zi(o,n,i,t).pipe(O(u=>u&&xi(u)?Fi(n,s,t,r):f(u)),R(u=>M(h({},e),{guardsResult:u})))})}function zi(t,r,e,n){return D(t).pipe(O(i=>Wi(i.component,i.route,e,r,n)),W(i=>i!==!0,!0))}function Fi(t,r,e,n){return D(r).pipe(ie(i=>yr(Bi(i.route.parent,n),qi(i.route,n),Hi(t,i.path,e),Vi(t,i.route,e))),W(i=>i!==!0,!0))}function qi(t,r){return t!==null&&r&&r(new Wt(t)),f(!0)}function Bi(t,r){return t!==null&&r&&r(new Vt(t)),f(!0)}function Vi(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return f(!0);let i=n.map(s=>yt(()=>{var c;let o=(c=Le(r))!=null?c:e,u=me(s,o),a=ji(u)?u.canActivate(r,t):_(o,()=>u(r,t));return Z(a).pipe(W())}));return f(i).pipe(ve())}function Hi(t,r,e){let n=r[r.length-1],s=r.slice(0,r.length-1).reverse().map(o=>Ti(o)).filter(o=>o!==null).map(o=>yt(()=>{let u=o.guards.map(a=>{var d;let c=(d=Le(o.node))!=null?d:e,l=me(a,c),v=Ni(l)?l.canActivateChild(n,t):_(c,()=>l(n,t));return Z(v).pipe(W())});return f(u).pipe(ve())}));return f(s).pipe(ve())}function Wi(t,r,e,n,i){let s=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(u=>{var v;let a=(v=Le(r))!=null?v:i,c=me(u,a),l=$i(c)?c.canDeactivate(t,r,e,n):_(a,()=>c(t,r,e,n));return Z(l).pipe(W())});return f(o).pipe(ve())}function Gi(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return f(!0);let s=i.map(o=>{let u=me(o,t),a=Pi(u)?u.canLoad(r,e):_(t,()=>u(r,e));return Z(a)});return f(s).pipe(ve(),En(n))}function En(t){return gr(I(r=>{if(typeof r!="boolean")throw lt(t,r)}),R(r=>r===!0))}function Qi(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return f(!0);let s=i.map(o=>{let u=me(o,t),a=Li(u)?u.canMatch(r,e):_(t,()=>u(r,e));return Z(a)});return f(s).pipe(ve(),En(n))}var Pe=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},je=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function ae(t){return ye(new Pe(t))}function Ki(t){return ye(new A(4e3,!1))}function Zi(t){return ye(On(!1,E.GuardRejected))}var er=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return f(n);if(i.numberOfChildren>1||!i.children[g])return Ki(`${r.redirectTo}`);i=i.children[g]}}applyRedirectCommands(r,e,n,i,s){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:l,url:v,outlet:d,params:m,data:b,title:C}=i,j=_(s,()=>u({params:m,data:b,queryParams:a,fragment:c,routeConfig:l,url:v,outlet:d,title:C}));if(j instanceof B)throw new je(j);e=j}let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new je(o);return o}applyRedirectCreateUrlTree(r,e,n,i){let s=this.createSegmentGroup(r,e.root,n,i);return new B(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let u=s.substring(1);n[i]=e[u]}else n[i]=s}),n}createSegmentGroup(r,e,n,i){let s=this.createSegments(r,e.segments,n,i),o={};return Object.entries(e.children).forEach(([u,a])=>{o[u]=this.createSegmentGroup(r,a,n,i)}),new y(s,o)}createSegments(r,e,n,i){return e.map(s=>s.path[0]===":"?this.findPosParam(r,s,i):this.findOrReturn(s,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new A(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},tr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Yi(t,r,e,n,i){let s=xn(t,r,e);return s.matched?(n=yi(r,n),Qi(n,r,e,i).pipe(R(o=>o===!0?s:h({},tr)))):f(s)}function xn(t,r,e){var u,a;if(r.path==="**")return Xi(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},tr):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Wn)(e,t,r);if(!i)return h({},tr);let s={};Object.entries((u=i.posParams)!=null?u:{}).forEach(([c,l])=>{s[c]=l.path});let o=i.consumed.length>0?h(h({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:o,positionalParamSegments:(a=i.posParams)!=null?a:{}}}function Xi(t){return{matched:!0,parameters:t.length>0?hn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function sn(t,r,e,n){return e.length>0&&ts(t,e,n)?{segmentGroup:new y(r,es(n,new y(e,t.children))),slicedSegments:[]}:e.length===0&&rs(t,e,n)?{segmentGroup:new y(t.segments,Ji(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new y(t.segments,t.children),slicedSegments:e}}function Ji(t,r,e,n){let i={};for(let s of e)if(gt(t,r,s)&&!n[L(s)]){let o=new y([],{});i[L(s)]=o}return h(h({},n),i)}function es(t,r){let e={};e[g]=r;for(let n of t)if(n.path===""&&L(n)!==g){let i=new y([],{});e[L(n)]=i}return e}function ts(t,r,e){return e.some(n=>gt(t,r,n)&&L(n)!==g)}function rs(t,r,e){return e.some(n=>gt(t,r,n))}function gt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function ns(t,r,e){return r.length===0&&!t.children[e]}var rr=class{};function is(t,r,e,n,i,s,o="emptyOnly"){return new nr(t,r,e,n,i,o,s).recognize()}var ss=31,nr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,s,o,u){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=u,this.applyRedirects=new er(this.urlSerializer,this.urlTree)}noMatchError(r){return new A(4002,`'${r.segmentGroup}'`)}recognize(){let r=sn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(R(({children:e,rootSnapshot:n})=>{let i=new U(n,e),s=new ct("",i),o=hi(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(r){let e=new le([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,g,e).pipe(R(n=>({children:n,rootSnapshot:e})),ne(n=>{if(n instanceof je)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Pe?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,s):this.processSegment(r,e,n,n.segments,i,!0,s).pipe(R(o=>o instanceof U?[o]:[]))}processChildren(r,e,n,i){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return D(s).pipe(ie(o=>{let u=n.children[o],a=Ri(e,o);return this.processSegmentGroup(r,a,u,o,i)}),Sr((o,u)=>(o.push(...u),o)),Rt(null),Rr(),O(o=>{if(o===null)return ae(n);let u=Pn(o);return os(u),f(u)}))}processSegment(r,e,n,i,s,o,u){return D(e).pipe(ie(a=>{var c;return this.processSegmentAgainstRoute((c=a._injector)!=null?c:r,e,a,n,i,s,o,u).pipe(ne(l=>{if(l instanceof Pe)return f(null);throw l}))}),W(a=>!!a),ne(a=>{if(Un(a))return ns(n,i,s)?f(new rr):ae(n);throw a}))}processSegmentAgainstRoute(r,e,n,i,s,o,u,a){return L(n)!==o&&(o===g||!gt(i,s,n))?ae(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,s,o,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,s,o,a):ae(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,s,o,u){var j,V;let{matched:a,parameters:c,consumedSegments:l,positionalParamSegments:v,remainingSegments:d}=xn(e,i,s);if(!a)return ae(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ss&&(this.allowRedirects=!1));let m=new le(s,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,on(i),L(i),(V=(j=i.component)!=null?j:i._loadedComponent)!=null?V:null,i,an(i)),b=ut(m,u,this.paramsInheritanceStrategy);m.params=Object.freeze(b.params),m.data=Object.freeze(b.data);let C=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,v,m,r);return this.applyRedirects.lineralizeSegments(i,C).pipe(O(Y=>this.processSegment(r,n,e,Y.concat(d),o,!1,u)))}matchSegmentAgainstRoute(r,e,n,i,s,o){let u=Yi(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),u.pipe(N(a=>{var c;return a.matched?(r=(c=n._injector)!=null?c:r,this.getChildConfig(r,n,i).pipe(N(({routes:l})=>{var hr,dr,fr;let v=(hr=n._loadedInjector)!=null?hr:r,{parameters:d,consumedSegments:m,remainingSegments:b}=a,C=new le(m,d,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,on(n),L(n),(fr=(dr=n.component)!=null?dr:n._loadedComponent)!=null?fr:null,n,an(n)),j=ut(C,o,this.paramsInheritanceStrategy);C.params=Object.freeze(j.params),C.data=Object.freeze(j.data);let{segmentGroup:V,slicedSegments:Y}=sn(e,m,b,l);if(Y.length===0&&V.hasChildren())return this.processChildren(v,l,V,C).pipe(R(qe=>new U(C,qe)));if(l.length===0&&Y.length===0)return f(new U(C,[]));let Hn=L(n)===s;return this.processSegment(v,l,V,Y,Hn?g:s,!0,C).pipe(R(qe=>new U(C,qe instanceof U?[qe]:[])))}))):ae(e)}))}getChildConfig(r,e,n){return e.children?f({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):Gi(r,e,n,this.urlSerializer).pipe(O(i=>i?this.configLoader.loadChildren(r,e).pipe(I(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):Zi(e))):f({routes:[],injector:r})}};function os(t){t.sort((r,e)=>r.value.outlet===g?-1:e.value.outlet===g?1:r.value.outlet.localeCompare(e.value.outlet))}function as(t){let r=t.value.routeConfig;return r&&r.path===""}function Pn(t){let r=[],e=new Set;for(let n of t){if(!as(n)){r.push(n);continue}let i=r.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=Pn(n.children);r.push(new U(n.value,i))}return r.filter(n=>!e.has(n))}function on(t){return t.data||{}}function an(t){return t.resolve||{}}function us(t,r,e,n,i,s){return O(o=>is(t,r,e,n,o.extractedUrl,i,s).pipe(R(({state:u,tree:a})=>M(h({},o),{targetSnapshot:u,urlAfterRedirects:a}))))}function cs(t,r){return O(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);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 jn(a))o.add(c);let u=0;return D(o).pipe(ie(a=>s.has(a)?ls(a,n,t,r):(a.data=ut(a,a.parent,t).resolve,f(void 0))),I(()=>u++),St(1),O(a=>u===o.size?f(e):F))})}function jn(t){let r=t.children.map(e=>jn(e)).flat();return[t,...r]}function ls(t,r,e,n){let i=t.routeConfig,s=t._resolve;return(i==null?void 0:i.title)!==void 0&&!Dn(i)&&(s[Ne]=i.title),hs(s,t,r,n).pipe(R(o=>(t._resolvedData=o,t.data=ut(t,t.parent,e).resolve,null)))}function hs(t,r,e,n){let i=jt(t);if(i.length===0)return f({});let s={};return D(i).pipe(O(o=>ds(t[o],r,e,n).pipe(W(),I(u=>{if(u instanceof xe)throw lt(new fe,u);s[o]=u}))),St(1),R(()=>s),ne(o=>Un(o)?F:ye(o)))}function ds(t,r,e,n){var u;let i=(u=Le(r))!=null?u:n,s=me(t,i),o=s.resolve?s.resolve(r,e):_(i,()=>s(r,e));return Z(o)}function xt(t){return N(r=>{let e=t(r);return e?D(e).pipe(R(()=>r)):f(r)})}var Nn=(()=>{class t{buildTitle(e){var s;let n,i=e.root;for(;i!==void 0;)n=(s=this.getResolvedTitleForRoute(i))!=null?s:n,i=i.children.find(o=>o.outlet===g);return n}getResolvedTitleForRoute(e){return e.data[Ne]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>p(fs),providedIn:"root"})}return t})(),fs=(()=>{class t extends Nn{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(G(Xr))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ze=new T("",{providedIn:"root",factory:()=>({})}),ps=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=jr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&Fr(0,"router-outlet")},dependencies:[wi],encapsulation:2})}return t})();function or(t){let r=t.children&&t.children.map(or),e=r?M(h({},t),{children:r}):h({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=ps),e}var dt=new T(""),ar=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(Ge);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=Z(e.loadComponent()).pipe(R($n),I(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),Ve(()=>{this.componentLoaders.delete(e)})),i=new mt(n,()=>new H).pipe(vt());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=gs(n,this.compiler,e,this.onLoadEndListener).pipe(Ve(()=>{this.childrenLoaders.delete(n)})),o=new mt(s,()=>new H).pipe(vt());return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gs(t,r,e,n){return Z(t.loadChildren()).pipe(R($n),O(i=>i instanceof Pr||Array.isArray(i)?f(i):D(r.compileModuleAsync(i))),R(i=>{n&&n(t);let s,o,u=!1;return Array.isArray(i)?(o=i,u=!0):(s=i.create(e).injector,o=s.get(dt,[],{optional:!0,self:!0}).flat()),{routes:o.map(or),injector:s}}))}function vs(t){return t&&typeof t=="object"&&"default"in t}function $n(t){return vs(t)?t.default:t}var ur=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>p(ms),providedIn:"root"})}return t})(),ms=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ln=new T(""),kn=new T("");function ys(t,r,e){let n=t.get(kn),i=t.get(Gr);return t.get(It).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(),Rs(t))),{onViewTransitionCreated:a}=n;return a&&_(t,()=>a({transition:u,from:r,to:e})),o})}function Rs(t){return new Promise(r=>{Tr({read:()=>setTimeout(r)},{injector:t})})}var _n=new T(""),cr=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new H;transitionAbortSubject=new H;configLoader=p(ar);environmentInjector=p(Se);destroyRef=p(Dr);urlSerializer=p($e);rootContexts=p(ke);location=p(we);inputBindingEnabled=p(pt,{optional:!0})!==null;titleStrategy=p(Nn);options=p(ze,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(ur);createViewTransition=p(Ln,{optional:!0});navigationErrorHandler=p(_n,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new qt(i)),n=i=>this.events.next(new Bt(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){var e;(e=this.transitions)==null||e.complete()}handleNavigationRequest(e){var i;let n=++this.navigationId;(i=this.transitions)==null||i.next(M(h(h({},this.transitions.value),e),{id:n}))}setupNavigations(e,n,i){return this.transitions=new x({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:De,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(s=>s.id!==0),R(s=>M(h({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),N(s=>{let o=!1,u=!1;return f(s).pipe(N(a=>{var v;if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",E.SupersededByNewNavigation),F;this.currentTransition=s,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?M(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=(v=a.extras.onSameUrlNavigation)!=null?v:e.onSameUrlNavigation;if(!c&&l!=="reload"){let d="";return this.events.next(new Q(a.id,this.urlSerializer.serialize(a.rawUrl),d,nt.IgnoredSameUrlNavigation)),a.resolve(!1),F}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(N(d=>{var b,C;let m=(b=this.transitions)==null?void 0:b.getValue();return this.events.next(new pe(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),m!==((C=this.transitions)==null?void 0:C.getValue())?F:Promise.resolve(d)}),us(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),I(d=>{s.targetSnapshot=d.targetSnapshot,s.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=M(h({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let m=new it(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(m)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:m,source:b,restoredState:C,extras:j}=a,V=new pe(d,this.urlSerializer.serialize(m),b,C);this.events.next(V);let Y=In(this.rootComponentType).snapshot;return this.currentTransition=s=M(h({},a),{targetSnapshot:Y,urlAfterRedirects:m,extras:M(h({},j),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,f(s)}else{let d="";return this.events.next(new Q(a.id,this.urlSerializer.serialize(a.extractedUrl),d,nt.IgnoredByUrlHandlingStrategy)),a.resolve(!1),F}}),I(a=>{let c=new kt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),R(a=>(this.currentTransition=s=M(h({},a),{guards:Oi(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),_i(this.environmentInjector,a=>this.events.next(a)),I(a=>{if(s.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw lt(this.urlSerializer,a.guardsResult);let c=new _t(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),X(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",E.GuardRejected),!1)),xt(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(I(c=>{let l=new zt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),N(c=>{let l=!1;return f(c).pipe(cs(this.paramsInheritanceStrategy,this.environmentInjector),I({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",E.NoDataFromResolver)}}))}),I(c=>{let l=new Ft(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),xt(a=>{let c=l=>{var d;let v=[];(d=l.routeConfig)!=null&&d.loadComponent&&!l.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(l.routeConfig).pipe(I(m=>{l.component=m}),R(()=>{})));for(let m of l.children)v.push(...c(m));return v};return Be(c(a.targetSnapshot.root)).pipe(Rt(null),se(1))}),xt(()=>this.afterPreactivation()),N(()=>{var v;let{currentSnapshot:a,targetSnapshot:c}=s,l=(v=this.createViewTransition)==null?void 0:v.call(this,this.environmentInjector,a.root,c.root);return l?D(l).pipe(R(()=>s)):f(s)}),R(a=>{let c=bi(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=M(h({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),I(()=>{this.events.next(new Ue)}),Mi(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),se(1),I({next:a=>{var c;o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new k(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),(c=this.titleStrategy)==null||c.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),wr(this.transitionAbortSubject.pipe(I(a=>{throw a}))),Ve(()=>{var a;!o&&!u&&this.cancelNavigationTransition(s,"",E.SupersededByNewNavigation),((a=this.currentTransition)==null?void 0:a.id)===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ne(a=>{var c;if(this.destroyed)return s.resolve(!1),F;if(u=!0,Tn(a))this.events.next(new q(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),Di(a)?this.events.next(new ge(a.url,a.navigationBehaviorOptions)):s.resolve(!1);else{let l=new Te(s.id,this.urlSerializer.serialize(s.extractedUrl),a,(c=s.targetSnapshot)!=null?c:void 0);try{let v=_(this.environmentInjector,()=>{var d;return(d=this.navigationErrorHandler)==null?void 0:d.call(this,l)});if(v instanceof xe){let{message:d,cancellationCode:m}=lt(this.urlSerializer,v);this.events.next(new q(s.id,this.urlSerializer.serialize(s.extractedUrl),d,m)),this.events.next(new ge(v.redirectTo,v.navigationBehaviorOptions))}else throw this.events.next(l),a}catch(v){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(v)}}return F}))}))}cancelNavigationTransition(e,n,i){let s=new q(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){var e,n;return((e=this.currentTransition)==null?void 0:e.extractedUrl.toString())!==((n=this.currentTransition)==null?void 0:n.currentUrlTree.toString())}isUpdatedBrowserUrl(){var i,s,o,u;let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=(o=(i=this.currentNavigation)==null?void 0:i.targetBrowserUrl)!=null?o:(s=this.currentNavigation)==null?void 0:s.extractedUrl;return e.toString()!==(n==null?void 0:n.toString())&&!((u=this.currentNavigation)!=null&&u.extras.skipLocationChange)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ss(t){return t!==De}var Cs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>p(ws),providedIn:"root"})}return t})(),ir=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},ws=(()=>{class t extends ir{static \u0275fac=(()=>{let e;return function(i){return(e||(e=wt(t)))(i||t)}})();static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>p(bs),providedIn:"root"})}return t})(),bs=(()=>{class t extends zn{location=p(we);urlSerializer=p($e);options=p(ze,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=p(ur);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new B;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){var e,n;return this.canceledNavigationResolution!=="computed"?this.currentPageId:(n=(e=this.restoredState())==null?void 0:e.\u0275routerPageId)!=null?n:this.currentPageId}routerState=In(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&e(n.url,n.state)})}handleRouterEvent(e,n){var i,s;if(e instanceof pe)this.stateMemento=this.createStateMemento();else if(e instanceof Q)this.rawUrlTree=n.initialUrl;else if(e instanceof it){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl((i=n.targetBrowserUrl)!=null?i:o,n)}}else e instanceof Ue?(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((s=n.targetBrowserUrl)!=null?s:this.rawUrlTree,n)):e instanceof q&&(e.code===E.GuardRejected||e.code===E.NoDataFromResolver)?this.restoreHistory(n):e instanceof Te?this.restoreHistory(n,!0):e instanceof k&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let i=e instanceof B?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let s=this.browserPageId,o=h(h({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(i,"",o)}else{let s=h(h({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){var n;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,(n=e.finalUrl)!=null?n:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=wt(t)))(i||t)}})();static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Fn(t,r){t.events.pipe(X(e=>e instanceof k||e instanceof q||e instanceof Te||e instanceof Q),R(e=>e instanceof k||e instanceof Q?0:(e instanceof q?e.code===E.Redirect||e.code===E.SupersededByNewNavigation:!1)?2:1),X(e=>e!==2),se(1)).subscribe(()=>{r()})}var Is={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},As={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},K=(()=>{var r,e;class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p($r);stateManager=p(zn);options=p(ze,{optional:!0})||{};pendingTasks=p(Mr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(cr);urlSerializer=p($e);location=p(we);urlHandlingStrategy=p(ur);_events=new H;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(Cs);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(e=(r=p(dt,{optional:!0}))==null?void 0:r.flat())!=null?e:[];componentInputBindingEnabled=!!p(pt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}eventsSubscription=new pr;subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(s=>{try{let o=this.navigationTransitions.currentTransition,u=this.navigationTransitions.currentNavigation;if(o!==null&&u!==null){if(this.stateManager.handleRouterEvent(s,u),s instanceof q&&s.code!==E.Redirect&&s.code!==E.SupersededByNewNavigation)this.navigated=!0;else if(s instanceof k)this.navigated=!0;else if(s instanceof ge){let a=s.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(s.url,o.currentRawUrl),l=h({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Ss(o.source)},a);this.scheduleNavigation(c,De,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}Ms(s)&&this._events.next(s)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),De,this.stateManager.restoredState())}setUpLocationChangeListener(){var i;(i=this.nonRouterCurrentEntryChangeSubscription)!=null||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((s,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(s,"popstate",o)},0)}))}navigateToSyncWithBrowser(i,s,o){let u={replaceUrl:!0},a=o!=null&&o.navigationId?o:null;if(o){let l=h({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(u.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,s,a,u)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(or),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,s={}){let{relativeTo:o,queryParams:u,fragment:a,queryParamsHandling:c,preserveFragment:l}=s,v=l?this.currentUrlTree.fragment:a,d=null;switch(c!=null?c:this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),u);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=u||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let b=o?o.snapshot:this.routerState.snapshot.root;m=Sn(b)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),m=this.currentUrlTree.root}return Cn(m,i,d,v!=null?v:null)}navigateByUrl(i,s={skipLocationChange:!1}){let o=te(i)?i:this.parseUrl(i),u=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(u,De,null,s)}navigate(i,s={skipLocationChange:!1}){return Ds(i),this.navigateByUrl(this.createUrlTree(i,s),s)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,s){let o;if(s===!0?o=h({},Is):s===!1?o=h({},As):o=s,te(i))return Jr(this.currentUrlTree,i,o);let u=this.parseUrl(i);return Jr(this.currentUrlTree,u,o)}removeEmptyProps(i){return Object.entries(i).reduce((s,[o,u])=>(u!=null&&(s[o]=u),s),{})}scheduleNavigation(i,s,o,u,a){if(this.disposed)return Promise.resolve(!1);let c,l,v;a?(c=a.resolve,l=a.reject,v=a.promise):v=new Promise((m,b)=>{c=m,l=b});let d=this.pendingTasks.add();return Fn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:s,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:u,resolve:c,reject:l,promise:v,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),v.catch(m=>Promise.reject(m))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ds(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new A(4008,!1)}function Ms(t){return!(t instanceof Ue)&&!(t instanceof ge)}var un=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new H;constructor(e,n,i,s,o,u){var c;this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=u;let a=(c=o.nativeElement.tagName)==null?void 0:c.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof k&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(te(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,s,o){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==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(){var e;(e=this.subscription)==null||e.unsubscribe()}updateHref(){var i;let e=this.urlTree;this.href=e!==null&&this.locationStrategy?(i=this.locationStrategy)==null?void 0:i.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:Ur(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,s=this.el.nativeElement;n!==null?i.setAttribute(s,e,n):i.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:te(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)($(K),$(re),Ar("tabindex"),$(Dt),$(At),$(Ce))};static \u0275dir=We({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&qr("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),n&2&&zr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ke],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ke],replaceUrl:[2,"replaceUrl","replaceUrl",Ke],routerLink:"routerLink"},features:[He]})}return t})(),vo=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new oe;constructor(e,n,i,s,o){this.router=e,this.element=n,this.renderer=i,this.cdr=s,this.link=o,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof k&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(Re()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var n;(n=this.linkInputChangesSubscription)==null||n.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=D(e).pipe(Re()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),(e=this.linkInputChangesSubscription)==null||e.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=Os(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?e.isActive(s,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)($(K),$(At),$(Dt),$(Qe),$(un,8))};static \u0275dir=We({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,s){if(n&1&&Br(s,un,5),n&2){let o;Vr(o=Hr())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[He]})}return t})();function Os(t){return!!t.paths}var ft=class{};var Ts=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,i,s,o){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(X(e=>e instanceof k),ie(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){var s,o,u;let i=[];for(let a of n){a.providers&&!a._injector&&(a._injector=Mt(a.providers,e,`Route: ${a.path}`));let c=(s=a._injector)!=null?s:e,l=(o=a._loadedInjector)!=null?o:c;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&i.push(this.preloadConfig(c,a)),(a.children||a._loadedRoutes)&&i.push(this.processRoutes(l,(u=a.children)!=null?u:a._loadedRoutes))}return D(i).pipe(Re())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let i;n.loadChildren&&n.canLoad===void 0?i=this.loader.loadChildren(e,n):i=f(null);let s=i.pipe(O(o=>{var u;return o===null?f(void 0):(n._loadedRoutes=o.routes,n._loadedInjector=o.injector,this.processRoutes((u=o.injector)!=null?u:e,o.routes))}));if(n.loadComponent&&!n._loadedComponent){let o=this.loader.loadComponent(n);return D([s,o]).pipe(Re())}else return s})}static \u0275fac=function(n){return new(n||t)(G(K),G(Ge),G(Se),G(ft),G(ar))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qn=new T(""),Us=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,n,i,s,o={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=i,this.zone=s,this.options=o,o.scrollPositionRestoration||(o.scrollPositionRestoration="disabled"),o.anchorScrolling||(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(e=>{e instanceof pe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof k?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Q&&e.code===nt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof st&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new st(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){var e,n;(e=this.routerEventsSubscription)==null||e.unsubscribe(),(n=this.scrollEventsSubscription)==null||n.unsubscribe()}static \u0275fac=function(n){Er()};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();function Es(t){return t.routerState.root}function Fe(t,r){return{\u0275kind:t,\u0275providers:r}}function xs(){let t=p(bt);return r=>{var s,o;let e=t.get(_r);if(r!==e.components[0])return;let n=t.get(K),i=t.get(Bn);t.get(lr)===1&&n.initialNavigation(),(s=t.get(Vn,null,Ct.Optional))==null||s.setUpPreloading(),(o=t.get(qn,null,Ct.Optional))==null||o.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Bn=new T("",{factory:()=>new H}),lr=new T("",{providedIn:"root",factory:()=>1});function Ps(){return Fe(2,[{provide:lr,useValue:0},{provide:Ot,multi:!0,deps:[bt],useFactory:r=>{let e=r.get(Qr,Promise.resolve());return()=>e.then(()=>new Promise(n=>{let i=r.get(K),s=r.get(Bn);Fn(i,()=>{n(!0)}),r.get(cr).afterPreactivation=()=>(n(!0),s.closed?f(void 0):s),i.initialNavigation()}))}}])}function js(){return Fe(3,[{provide:Ot,multi:!0,useFactory:()=>{let r=p(K);return()=>{r.setUpLocationChangeListener()}}},{provide:lr,useValue:2}])}var Vn=new T("");function Ns(t){return Fe(0,[{provide:Vn,useExisting:Ts},{provide:ft,useExisting:t}])}function $s(){return Fe(8,[nn,{provide:pt,useExisting:nn}])}function Ls(t){let r=[{provide:Ln,useValue:ys},{provide:kn,useValue:h({skipNextTransition:!!(t!=null&&t.skipInitialTransition)},t)}];return Fe(9,r)}var ks=[we,{provide:$e,useClass:fe},K,ke,{provide:re,useFactory:Es,deps:[K]},ar,[]],mo=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[ks,[],{provide:dt,multi:!0,useValue:e},[],n!=null&&n.errorHandler?{provide:_n,useValue:n.errorHandler}:[],{provide:ze,useValue:n||{}},n!=null&&n.useHash?zs():Fs(),_s(),n!=null&&n.preloadingStrategy?Ns(n.preloadingStrategy).\u0275providers:[],n!=null&&n.initialNavigation?qs(n):[],n!=null&&n.bindToComponentInputs?$s().\u0275providers:[],n!=null&&n.enableViewTransitions?Ls().\u0275providers:[],Bs()]}}static forChild(e){return{ngModule:t,providers:[{provide:dt,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Nr({type:t});static \u0275inj=br({})}return t})();function _s(){return{provide:qn,useFactory:()=>{let t=p(Yr),r=p(It),e=p(ze),n=p(cr),i=p($e);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Us(i,n,t,r,e)}}}function zs(){return{provide:Ce,useClass:Zr}}function Fs(){return{provide:Ce,useClass:Kr}}function qs(t){return[t.initialNavigation==="disabled"?js().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Ps().\u0275providers:[]]}var cn=new T("");function Bs(){return[{provide:cn,useFactory:xs},{provide:kr,multi:!0,useExisting:cn}]}export{k as a,re as b,wi as c,K as d,un as e,vo as f,mo as g};
|
|
1
|
+
import{l as Xr}from"./chunk-HYGERTMR.js";import{$ as N,A as Re,Aa as Dr,Ab as $r,B as yr,Ba as Mr,C as yt,Ca as oe,Da as It,Ec as Ge,Fb as Lr,Ga as Or,Gb as Ot,Gc as Qe,H as X,Ha as At,Hb as kr,Ib as _r,Jb as zr,Jc as Ke,K as ne,L as ie,N as Rt,Nc as Wr,O as se,Rc as Gr,S as Ve,Sa as Tr,T as W,Tc as Qr,U as St,Uc as Ce,V as Rr,W as Sr,Wb as Fr,Wc as Kr,Xc as Zr,Yc as we,_ as Cr,a as h,aa as wr,b as M,ba as I,bc as qr,da as A,eb as Ur,fc as Br,ga as w,ha as br,hc as Vr,i as pr,ia as Ir,ic as Hr,j as gr,ja as T,ka as Ct,l as vt,la as G,lb as Dt,m as mt,ma as p,mb as $,md as Yr,n as H,nb as Er,o as x,ob as xr,p as F,q as D,qa as Se,r as f,ra as _,rb as Pr,s as ye,sb as Mt,t as vr,ta as He,tb as jr,u as mr,ub as Nr,vb as We,x as R,xa as wt,y as Be,ya as Ar,z as O,za as bt}from"./chunk-276OSEZQ.js";var g="primary",Ne=Symbol("RouteTitle"),Pt=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function de(t){return new Pt(t)}function Wn(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let i={};for(let s=0;s<n.length;s++){let o=n[s],u=t[s];if(o[0]===":")i[o.substring(1)]=u;else if(o!==u.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function Gn(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!z(t[e],r[e]))return!1;return!0}function z(t,r){let e=t?jt(t):void 0,n=r?jt(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let s=0;s<e.length;s++)if(i=e[s],!ln(t[i],r[i]))return!1;return!0}function jt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function ln(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,s)=>n[s]===i)}else return t===r}function hn(t){return t.length>0?t[t.length-1]:null}function Z(t){return vr(t)?t:Lr(t)?D(Promise.resolve(t)):f(t)}var Qn={exact:fn,subset:pn},dn={exact:Kn,subset:Zn,ignored:()=>!0};function Jr(t,r,e){return Qn[e.paths](t.root,r.root,e.matrixParams)&&dn[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Kn(t,r){return z(t,r)}function fn(t,r,e){if(!ee(t.segments,r.segments)||!Xe(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!fn(t.children[n],r.children[n],e))return!1;return!0}function Zn(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>ln(t[e],r[e]))}function pn(t,r,e){return gn(t,r,r.segments,e)}function gn(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ee(i,e)||r.hasChildren()||!Xe(i,e,n))}else if(t.segments.length===e.length){if(!ee(t.segments,e)||!Xe(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!pn(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!ee(t.segments,i)||!Xe(t.segments,i,n)||!t.children[g]?!1:gn(t.children[g],r,s,n)}}function Xe(t,r,e){return r.every((n,i)=>dn[e](t[i].parameters,n.parameters))}var B=class{root;queryParams;fragment;_queryParamMap;constructor(r=new y([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){var r;return(r=this._queryParamMap)!=null||(this._queryParamMap=de(this.queryParams)),this._queryParamMap}toString(){return Jn.serialize(this)}},y=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Je(this)}},J=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){var r;return(r=this._parameterMap)!=null||(this._parameterMap=de(this.parameters)),this._parameterMap}toString(){return mn(this)}};function Yn(t,r){return ee(t,r)&&t.every((e,n)=>z(e.parameters,r[n].parameters))}function ee(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function Xn(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===g&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==g&&(e=e.concat(r(i,n)))}),e}var $e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>new fe,providedIn:"root"})}return t})(),fe=class{parse(r){let e=new $t(r);return new B(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${be(r.root,!0)}`,n=ri(r.queryParams),i=typeof r.fragment=="string"?`#${ei(r.fragment)}`:"";return`${e}${n}${i}`}},Jn=new fe;function Je(t){return t.segments.map(r=>mn(r)).join("/")}function be(t,r){if(!t.hasChildren())return Je(t);if(r){let e=t.children[g]?be(t.children[g],!1):"",n=[];return Object.entries(t.children).forEach(([i,s])=>{i!==g&&n.push(`${i}:${be(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=Xn(t,(n,i)=>i===g?[be(t.children[g],!1)]:[`${i}:${be(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${Je(t)}/${e[0]}`:`${Je(t)}/(${e.join("//")})`}}function vn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ze(t){return vn(t).replace(/%3B/gi,";")}function ei(t){return encodeURI(t)}function Nt(t){return vn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function et(t){return decodeURIComponent(t)}function en(t){return et(t.replace(/\+/g,"%20"))}function mn(t){return`${Nt(t.path)}${ti(t.parameters)}`}function ti(t){return Object.entries(t).map(([r,e])=>`;${Nt(r)}=${Nt(e)}`).join("")}function ri(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Ze(e)}=${Ze(i)}`).join("&"):`${Ze(e)}=${Ze(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var ni=/^[^\/()?;#]+/;function Tt(t){let r=t.match(ni);return r?r[0]:""}var ii=/^[^\/()?;=#]+/;function si(t){let r=t.match(ii);return r?r[0]:""}var oi=/^[^=?&#]+/;function ai(t){let r=t.match(oi);return r?r[0]:""}var ui=/^[^&#]+/;function ci(t){let r=t.match(ui);return r?r[0]:""}var $t=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new y([],{}):new y([],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 e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[g]=new y(r,e)),n}parseSegment(){let r=Tt(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new A(4009,!1);return this.capture(r),new J(et(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=si(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=Tt(this.remaining);i&&(n=i,this.capture(n))}r[et(e)]=et(n)}parseQueryParam(r){let e=ai(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=ci(this.remaining);o&&(n=o,this.capture(n))}let i=en(e),s=en(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 e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Tt(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new A(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=g);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[g]:new y([],o),this.consumeOptional("//")}return e}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 A(4011,!1)}};function yn(t){return t.segments.length>0?new y([],{[g]:t}):t}function Rn(t){let r={};for(let[n,i]of Object.entries(t.children)){let s=Rn(i);if(n===g&&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 e=new y(t.segments,r);return li(e)}function li(t){if(t.numberOfChildren===1&&t.children[g]){let r=t.children[g];return new y(t.segments.concat(r.segments),r.children)}return t}function te(t){return t instanceof B}function hi(t,r,e=null,n=null){let i=Sn(t);return Cn(i,r,e,n)}function Sn(t){let r;function e(s){let o={};for(let a of s.children){let c=e(a);o[a.outlet]=c}let u=new y(s.url,o);return s===t&&(r=u),u}let n=e(t.root),i=yn(n);return r!=null?r:i}function Cn(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return Ut(i,i,i,e,n);let s=di(r);if(s.toRoot())return Ut(i,i,new y([],{}),e,n);let o=fi(s,i,t),u=o.processChildren?Ae(o.segmentGroup,o.index,s.commands):bn(o.segmentGroup,o.index,s.commands);return Ut(i,o.segmentGroup,u,e,n)}function tt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Oe(t){return typeof t=="object"&&t!=null&&t.outlets}function Ut(t,r,e,n,i){let s={};n&&Object.entries(n).forEach(([a,c])=>{s[a]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let o;t===r?o=e:o=wn(t,r,e);let u=yn(Rn(o));return new B(u,s,i)}function wn(t,r,e){let n={};return Object.entries(t.children).forEach(([i,s])=>{s===r?n[i]=e:n[i]=wn(s,r,e)}),new y(t.segments,n)}var rt=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&tt(n[0]))throw new A(4003,!1);let i=n.find(Oe);if(i&&i!==hn(n))throw new A(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function di(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new rt(!0,0,t);let r=0,e=!1,n=t.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===""?e=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,s]},[]);return new rt(e,r,n)}var ce=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function fi(t,r,e){if(t.isAbsolute)return new ce(r,!0,0);if(!e)return new ce(r,!1,NaN);if(e.parent===null)return new ce(e,!0,0);let n=tt(t.commands[0])?0:1,i=e.segments.length-1+n;return pi(e,i,t.numberOfDoubleDots)}function pi(t,r,e){let n=t,i=r,s=e;for(;s>i;){if(s-=i,n=n.parent,!n)throw new A(4005,!1);i=n.segments.length}return new ce(n,!1,i-s)}function gi(t){return Oe(t[0])?t[0].outlets:{[g]:t}}function bn(t,r,e){if(t!=null||(t=new y([],{})),t.segments.length===0&&t.hasChildren())return Ae(t,r,e);let n=vi(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let s=new y(t.segments.slice(0,n.pathIndex),{});return s.children[g]=new y(t.segments.slice(n.pathIndex),t.children),Ae(s,0,i)}else return n.match&&i.length===0?new y(t.segments,{}):n.match&&!t.hasChildren()?Lt(t,r,e):n.match?Ae(t,0,i):Lt(t,r,e)}function Ae(t,r,e){if(e.length===0)return new y(t.segments,{});{let n=gi(e),i={};if(Object.keys(n).some(s=>s!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let s=Ae(t.children[g],r,e);return new y(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=bn(t.children[s],r,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new y(t.segments,i)}}function vi(t,r,e){let n=0,i=r,s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return s;let o=t.segments[i],u=e[n];if(Oe(u))break;let a=`${u}`,c=n<e.length-1?e[n+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!rn(a,c,o))return s;n+=2}else{if(!rn(a,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Lt(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let s=e[i];if(Oe(s)){let a=mi(s.outlets);return new y(n,a)}if(i===0&&tt(e[0])){let a=t.segments[r];n.push(new J(a.path,tn(e[0]))),i++;continue}let o=Oe(s)?s.outlets[g]:`${s}`,u=i<e.length-1?e[i+1]:null;o&&u&&tt(u)?(n.push(new J(o,tn(u))),i+=2):(n.push(new J(o,{})),i++)}return new y(n,{})}function mi(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=Lt(new y([],{}),0,n))}),r}function tn(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function rn(t,r,e){return t==e.path&&z(r,e.parameters)}var De="imperative",S=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(S||{}),P=class{id;url;constructor(r,e){this.id=r,this.url=e}},pe=class extends P{type=S.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},k=class extends P{urlAfterRedirects;type=S.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},E=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(E||{}),nt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(nt||{}),q=class extends P{reason;code;type=S.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Q=class extends P{reason;code;type=S.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},Te=class extends P{error;target;type=S.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},it=class extends P{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kt=class extends P{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_t=class extends P{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(r,e,n,i,s){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},zt=class extends P{urlAfterRedirects;state;type=S.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ft=class extends P{urlAfterRedirects;state;type=S.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qt=class{route;type=S.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Bt=class{route;type=S.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Vt=class{snapshot;type=S.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ht=class{snapshot;type=S.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wt=class{snapshot;type=S.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gt=class{snapshot;type=S.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},st=class{routerEvent;position;anchor;type=S.Scroll;constructor(r,e,n){this.routerEvent=r,this.position=e,this.anchor=n}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},Ue=class{},ge=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function yi(t,r){var e;return t.providers&&!t._injector&&(t._injector=Mt(t.providers,r,`Route: ${t.path}`)),(e=t._injector)!=null?e:r}function L(t){return t.outlet||g}function Ri(t,r){let e=t.filter(n=>L(n)===r);return e.push(...t.filter(n=>L(n)!==r)),e}function Le(t){var r;if(!t)return null;if((r=t.routeConfig)!=null&&r._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let n=e.routeConfig;if(n!=null&&n._loadedInjector)return n._loadedInjector;if(n!=null&&n._injector)return n._injector}return null}var Qt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){var r,e;return(e=Le((r=this.route)==null?void 0:r.snapshot))!=null?e:this.rootInjector}constructor(r){this.rootInjector=r,this.children=new ke(this.rootInjector)}},ke=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Qt(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(G(Se))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ot=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Kt(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=Kt(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=Zt(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Zt(r,this._root).map(e=>e.value)}};function Kt(t,r){if(t===r.value)return r;for(let e of r.children){let n=Kt(t,e);if(n)return n}return null}function Zt(t,r){if(t===r.value)return[r];for(let e of r.children){let n=Zt(t,e);if(n.length)return n.unshift(r),n}return[]}var U=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function ue(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var at=class extends ot{snapshot;constructor(r,e){super(r),this.snapshot=e,sr(this,r)}toString(){return this.snapshot.toString()}};function In(t){let r=Si(t),e=new x([new J("",{})]),n=new x({}),i=new x({}),s=new x({}),o=new x(""),u=new re(e,n,s,o,i,g,t,r.root);return u.snapshot=r.root,new at(new U(u,[]),r)}function Si(t){let r={},e={},n={},i="",s=new le([],r,n,i,e,g,t,null,{});return new ct("",new U(s,[]))}var re=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,s,o,u,a){var c,l;this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=u,this._futureSnapshot=a,this.title=(l=(c=this.dataSubject)==null?void 0:c.pipe(R(v=>v[Ne])))!=null?l:f(void 0),this.url=r,this.params=e,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(){var r;return(r=this._paramMap)!=null||(this._paramMap=this.params.pipe(R(e=>de(e)))),this._paramMap}get queryParamMap(){var r;return(r=this._queryParamMap)!=null||(this._queryParamMap=this.queryParams.pipe(R(e=>de(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ut(t,r,e="emptyOnly"){var s,o;let n,{routeConfig:i}=t;return r!==null&&(e==="always"||(i==null?void 0:i.path)===""||!r.component&&!((s=r.routeConfig)!=null&&s.loadComponent))?n={params:h(h({},r.params),t.params),data:h(h({},r.data),t.data),resolve:h(h(h(h({},t.data),r.data),i==null?void 0:i.data),t._resolvedData)}:n={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),(o=t._resolvedData)!=null?o:{})},i&&Dn(i)&&(n.resolve[Ne]=i.title),n}var le=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){var r;return(r=this.data)==null?void 0:r[Ne]}constructor(r,e,n,i,s,o,u,a,c){this.url=r,this.params=e,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(){var r;return(r=this._paramMap)!=null||(this._paramMap=de(this.params)),this._paramMap}get queryParamMap(){var r;return(r=this._queryParamMap)!=null||(this._queryParamMap=de(this.queryParams)),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},ct=class extends ot{url;constructor(r,e){super(e),this.url=r,sr(this,e)}toString(){return An(this._root)}};function sr(t,r){r.value._routerState=t,r.children.forEach(e=>sr(t,e))}function An(t){let r=t.children.length>0?` { ${t.children.map(An).join(", ")} } `:"";return`${t.value}${r}`}function Et(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,z(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),z(r.params,e.params)||t.paramsSubject.next(e.params),Gn(r.url,e.url)||t.urlSubject.next(e.url),z(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Yt(t,r){let e=z(t.params,r.params)&&Yn(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||Yt(t.parent,r.parent))}function Dn(t){return typeof t.title=="string"||t.title===null}var Ci=new T(""),wi=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new oe;deactivateEvents=new oe;attachEvents=new oe;detachEvents=new oe;routerOutletData=Or(void 0);parentContexts=p(ke);location=p(xr);changeDetector=p(Qe);inputBinder=p(pt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){var e;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(e=this.inputBinder)==null||e.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){var n;return((n=this.parentContexts.getContext(e))==null?void 0:n.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e!=null&&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 A(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new A(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new A(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){var i;this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),(i=this.inputBinder)==null||i.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){var c;if(this.isActivated)throw new A(4013,!1);this._activatedRoute=e;let i=this.location,o=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new Xt(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(o,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),(c=this.inputBinder)==null||c.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=We({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[He]})}return t})(),Xt=class t{route;childContexts;parent;outletData;__ngOutletInjector(r){return new t(this.route,this.childContexts,r,this.outletData)}constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===re?this.route:r===ke?this.childContexts:r===Ci?this.outletData:this.parent.get(r,e)}},pt=new T(""),nn=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){var n;(n=this.outletDataSubscriptions.get(e))==null||n.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=Be([n.queryParams,n.params,n.data]).pipe(N(([s,o,u],a)=>(u=h(h(h({},s),o),u),a===0?f(u):Promise.resolve(u)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let o=Wr(n.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of o.inputs)e.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();function bi(t,r,e){let n=Ee(t,r._root,e?e._root:void 0);return new at(n,r)}function Ee(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Ii(t,r,e);return new U(n,i)}else{if(t.shouldAttach(r.value)){let s=t.retrieve(r.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=r.value,o.children=r.children.map(u=>Ee(t,u)),o}}let n=Ai(r.value),i=r.children.map(s=>Ee(t,s));return new U(n,i)}}function Ii(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Ee(t,n,i);return Ee(t,n)})}function Ai(t){return new re(new x(t.url),new x(t.params),new x(t.queryParams),new x(t.fragment),new x(t.data),t.outlet,t.component,t)}var xe=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},Mn="ngNavigationCancelingError";function lt(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=te(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=On(!1,E.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function On(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Mn]=!0,e.cancellationCode=r,e}function Di(t){return Tn(t)&&te(t.url)}function Tn(t){return!!t&&t[Mn]}var Mi=(t,r,e,n)=>R(i=>(new Jt(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),Jt=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,s){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),Et(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ue(e);r.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,e,n){let i=r.value,s=e?e.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(r,e,o.children)}else this.deactivateChildRoutes(r,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,s=ue(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,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,s=ue(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,e,n){let i=ue(e);r.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new Gt(s.value.snapshot))}),r.children.length&&this.forwardEvent(new Ht(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,s=e?e.value:null;if(Et(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,o.children)}else this.activateChildRoutes(r,e,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),Et(u.route.value),this.activateChildRoutes(r,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(r,null,o.children)}else this.activateChildRoutes(r,null,n)}},ht=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},he=class{component;route;constructor(r,e){this.component=r,this.route=e}};function Oi(t,r,e){let n=t._root,i=r?r._root:null;return Ie(n,i,e,[n.value])}function Ti(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function me(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Ir(t)?t:r.get(t):n}function Ie(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=ue(r);return t.children.forEach(o=>{Ui(o,s[o.value.outlet],e,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,u])=>Me(u,e.getContext(o),i)),i}function Ui(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=r?r.value:null,u=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=Ei(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new ht(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Ie(t,r,u?u.children:null,n,i):Ie(t,r,e,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new he(u.outlet.component,o))}else o&&Me(r,u,i),i.canActivateChecks.push(new ht(n)),s.component?Ie(t,null,u?u.children:null,n,i):Ie(t,null,e,n,i);return i}function Ei(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!ee(t.url,r.url);case"pathParamsOrQueryParamsChange":return!ee(t.url,r.url)||!z(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yt(t,r)||!z(t.queryParams,r.queryParams);case"paramsChange":default:return!Yt(t,r)}}function Me(t,r,e){let n=ue(t),i=t.value;Object.entries(n).forEach(([s,o])=>{i.component?r?Me(o,r.children.getContext(s),e):Me(o,null,e):Me(o,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new he(r.outlet.component,i)):e.canDeactivateChecks.push(new he(null,i)):e.canDeactivateChecks.push(new he(null,i))}function _e(t){return typeof t=="function"}function xi(t){return typeof t=="boolean"}function Pi(t){return t&&_e(t.canLoad)}function ji(t){return t&&_e(t.canActivate)}function Ni(t){return t&&_e(t.canActivateChild)}function $i(t){return t&&_e(t.canDeactivate)}function Li(t){return t&&_e(t.canMatch)}function Un(t){return t instanceof mr||(t==null?void 0:t.name)==="EmptyError"}var Ye=Symbol("INITIAL_VALUE");function ve(){return N(t=>Be(t.map(r=>r.pipe(se(1),Cr(Ye)))).pipe(R(r=>{for(let e of r)if(e!==!0){if(e===Ye)return Ye;if(e===!1||ki(e))return e}return!0}),X(r=>r!==Ye),se(1)))}function ki(t){return te(t)||t instanceof xe}function _i(t,r){return O(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?f(M(h({},e),{guardsResult:!0})):zi(o,n,i,t).pipe(O(u=>u&&xi(u)?Fi(n,s,t,r):f(u)),R(u=>M(h({},e),{guardsResult:u})))})}function zi(t,r,e,n){return D(t).pipe(O(i=>Wi(i.component,i.route,e,r,n)),W(i=>i!==!0,!0))}function Fi(t,r,e,n){return D(r).pipe(ie(i=>yr(Bi(i.route.parent,n),qi(i.route,n),Hi(t,i.path,e),Vi(t,i.route,e))),W(i=>i!==!0,!0))}function qi(t,r){return t!==null&&r&&r(new Wt(t)),f(!0)}function Bi(t,r){return t!==null&&r&&r(new Vt(t)),f(!0)}function Vi(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return f(!0);let i=n.map(s=>yt(()=>{var c;let o=(c=Le(r))!=null?c:e,u=me(s,o),a=ji(u)?u.canActivate(r,t):_(o,()=>u(r,t));return Z(a).pipe(W())}));return f(i).pipe(ve())}function Hi(t,r,e){let n=r[r.length-1],s=r.slice(0,r.length-1).reverse().map(o=>Ti(o)).filter(o=>o!==null).map(o=>yt(()=>{let u=o.guards.map(a=>{var d;let c=(d=Le(o.node))!=null?d:e,l=me(a,c),v=Ni(l)?l.canActivateChild(n,t):_(c,()=>l(n,t));return Z(v).pipe(W())});return f(u).pipe(ve())}));return f(s).pipe(ve())}function Wi(t,r,e,n,i){let s=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(u=>{var v;let a=(v=Le(r))!=null?v:i,c=me(u,a),l=$i(c)?c.canDeactivate(t,r,e,n):_(a,()=>c(t,r,e,n));return Z(l).pipe(W())});return f(o).pipe(ve())}function Gi(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return f(!0);let s=i.map(o=>{let u=me(o,t),a=Pi(u)?u.canLoad(r,e):_(t,()=>u(r,e));return Z(a)});return f(s).pipe(ve(),En(n))}function En(t){return gr(I(r=>{if(typeof r!="boolean")throw lt(t,r)}),R(r=>r===!0))}function Qi(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return f(!0);let s=i.map(o=>{let u=me(o,t),a=Li(u)?u.canMatch(r,e):_(t,()=>u(r,e));return Z(a)});return f(s).pipe(ve(),En(n))}var Pe=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},je=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function ae(t){return ye(new Pe(t))}function Ki(t){return ye(new A(4e3,!1))}function Zi(t){return ye(On(!1,E.GuardRejected))}var er=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return f(n);if(i.numberOfChildren>1||!i.children[g])return Ki(`${r.redirectTo}`);i=i.children[g]}}applyRedirectCommands(r,e,n,i,s){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:l,url:v,outlet:d,params:m,data:b,title:C}=i,j=_(s,()=>u({params:m,data:b,queryParams:a,fragment:c,routeConfig:l,url:v,outlet:d,title:C}));if(j instanceof B)throw new je(j);e=j}let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new je(o);return o}applyRedirectCreateUrlTree(r,e,n,i){let s=this.createSegmentGroup(r,e.root,n,i);return new B(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let u=s.substring(1);n[i]=e[u]}else n[i]=s}),n}createSegmentGroup(r,e,n,i){let s=this.createSegments(r,e.segments,n,i),o={};return Object.entries(e.children).forEach(([u,a])=>{o[u]=this.createSegmentGroup(r,a,n,i)}),new y(s,o)}createSegments(r,e,n,i){return e.map(s=>s.path[0]===":"?this.findPosParam(r,s,i):this.findOrReturn(s,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new A(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},tr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Yi(t,r,e,n,i){let s=xn(t,r,e);return s.matched?(n=yi(r,n),Qi(n,r,e,i).pipe(R(o=>o===!0?s:h({},tr)))):f(s)}function xn(t,r,e){var u,a;if(r.path==="**")return Xi(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},tr):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Wn)(e,t,r);if(!i)return h({},tr);let s={};Object.entries((u=i.posParams)!=null?u:{}).forEach(([c,l])=>{s[c]=l.path});let o=i.consumed.length>0?h(h({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:o,positionalParamSegments:(a=i.posParams)!=null?a:{}}}function Xi(t){return{matched:!0,parameters:t.length>0?hn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function sn(t,r,e,n){return e.length>0&&ts(t,e,n)?{segmentGroup:new y(r,es(n,new y(e,t.children))),slicedSegments:[]}:e.length===0&&rs(t,e,n)?{segmentGroup:new y(t.segments,Ji(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new y(t.segments,t.children),slicedSegments:e}}function Ji(t,r,e,n){let i={};for(let s of e)if(gt(t,r,s)&&!n[L(s)]){let o=new y([],{});i[L(s)]=o}return h(h({},n),i)}function es(t,r){let e={};e[g]=r;for(let n of t)if(n.path===""&&L(n)!==g){let i=new y([],{});e[L(n)]=i}return e}function ts(t,r,e){return e.some(n=>gt(t,r,n)&&L(n)!==g)}function rs(t,r,e){return e.some(n=>gt(t,r,n))}function gt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function ns(t,r,e){return r.length===0&&!t.children[e]}var rr=class{};function is(t,r,e,n,i,s,o="emptyOnly"){return new nr(t,r,e,n,i,o,s).recognize()}var ss=31,nr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,s,o,u){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=u,this.applyRedirects=new er(this.urlSerializer,this.urlTree)}noMatchError(r){return new A(4002,`'${r.segmentGroup}'`)}recognize(){let r=sn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(R(({children:e,rootSnapshot:n})=>{let i=new U(n,e),s=new ct("",i),o=hi(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(r){let e=new le([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,g,e).pipe(R(n=>({children:n,rootSnapshot:e})),ne(n=>{if(n instanceof je)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Pe?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,s):this.processSegment(r,e,n,n.segments,i,!0,s).pipe(R(o=>o instanceof U?[o]:[]))}processChildren(r,e,n,i){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return D(s).pipe(ie(o=>{let u=n.children[o],a=Ri(e,o);return this.processSegmentGroup(r,a,u,o,i)}),Sr((o,u)=>(o.push(...u),o)),Rt(null),Rr(),O(o=>{if(o===null)return ae(n);let u=Pn(o);return os(u),f(u)}))}processSegment(r,e,n,i,s,o,u){return D(e).pipe(ie(a=>{var c;return this.processSegmentAgainstRoute((c=a._injector)!=null?c:r,e,a,n,i,s,o,u).pipe(ne(l=>{if(l instanceof Pe)return f(null);throw l}))}),W(a=>!!a),ne(a=>{if(Un(a))return ns(n,i,s)?f(new rr):ae(n);throw a}))}processSegmentAgainstRoute(r,e,n,i,s,o,u,a){return L(n)!==o&&(o===g||!gt(i,s,n))?ae(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,s,o,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,s,o,a):ae(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,s,o,u){var j,V;let{matched:a,parameters:c,consumedSegments:l,positionalParamSegments:v,remainingSegments:d}=xn(e,i,s);if(!a)return ae(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ss&&(this.allowRedirects=!1));let m=new le(s,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,on(i),L(i),(V=(j=i.component)!=null?j:i._loadedComponent)!=null?V:null,i,an(i)),b=ut(m,u,this.paramsInheritanceStrategy);m.params=Object.freeze(b.params),m.data=Object.freeze(b.data);let C=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,v,m,r);return this.applyRedirects.lineralizeSegments(i,C).pipe(O(Y=>this.processSegment(r,n,e,Y.concat(d),o,!1,u)))}matchSegmentAgainstRoute(r,e,n,i,s,o){let u=Yi(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),u.pipe(N(a=>{var c;return a.matched?(r=(c=n._injector)!=null?c:r,this.getChildConfig(r,n,i).pipe(N(({routes:l})=>{var hr,dr,fr;let v=(hr=n._loadedInjector)!=null?hr:r,{parameters:d,consumedSegments:m,remainingSegments:b}=a,C=new le(m,d,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,on(n),L(n),(fr=(dr=n.component)!=null?dr:n._loadedComponent)!=null?fr:null,n,an(n)),j=ut(C,o,this.paramsInheritanceStrategy);C.params=Object.freeze(j.params),C.data=Object.freeze(j.data);let{segmentGroup:V,slicedSegments:Y}=sn(e,m,b,l);if(Y.length===0&&V.hasChildren())return this.processChildren(v,l,V,C).pipe(R(qe=>new U(C,qe)));if(l.length===0&&Y.length===0)return f(new U(C,[]));let Hn=L(n)===s;return this.processSegment(v,l,V,Y,Hn?g:s,!0,C).pipe(R(qe=>new U(C,qe instanceof U?[qe]:[])))}))):ae(e)}))}getChildConfig(r,e,n){return e.children?f({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):Gi(r,e,n,this.urlSerializer).pipe(O(i=>i?this.configLoader.loadChildren(r,e).pipe(I(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):Zi(e))):f({routes:[],injector:r})}};function os(t){t.sort((r,e)=>r.value.outlet===g?-1:e.value.outlet===g?1:r.value.outlet.localeCompare(e.value.outlet))}function as(t){let r=t.value.routeConfig;return r&&r.path===""}function Pn(t){let r=[],e=new Set;for(let n of t){if(!as(n)){r.push(n);continue}let i=r.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=Pn(n.children);r.push(new U(n.value,i))}return r.filter(n=>!e.has(n))}function on(t){return t.data||{}}function an(t){return t.resolve||{}}function us(t,r,e,n,i,s){return O(o=>is(t,r,e,n,o.extractedUrl,i,s).pipe(R(({state:u,tree:a})=>M(h({},o),{targetSnapshot:u,urlAfterRedirects:a}))))}function cs(t,r){return O(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);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 jn(a))o.add(c);let u=0;return D(o).pipe(ie(a=>s.has(a)?ls(a,n,t,r):(a.data=ut(a,a.parent,t).resolve,f(void 0))),I(()=>u++),St(1),O(a=>u===o.size?f(e):F))})}function jn(t){let r=t.children.map(e=>jn(e)).flat();return[t,...r]}function ls(t,r,e,n){let i=t.routeConfig,s=t._resolve;return(i==null?void 0:i.title)!==void 0&&!Dn(i)&&(s[Ne]=i.title),hs(s,t,r,n).pipe(R(o=>(t._resolvedData=o,t.data=ut(t,t.parent,e).resolve,null)))}function hs(t,r,e,n){let i=jt(t);if(i.length===0)return f({});let s={};return D(i).pipe(O(o=>ds(t[o],r,e,n).pipe(W(),I(u=>{if(u instanceof xe)throw lt(new fe,u);s[o]=u}))),St(1),R(()=>s),ne(o=>Un(o)?F:ye(o)))}function ds(t,r,e,n){var u;let i=(u=Le(r))!=null?u:n,s=me(t,i),o=s.resolve?s.resolve(r,e):_(i,()=>s(r,e));return Z(o)}function xt(t){return N(r=>{let e=t(r);return e?D(e).pipe(R(()=>r)):f(r)})}var Nn=(()=>{class t{buildTitle(e){var s;let n,i=e.root;for(;i!==void 0;)n=(s=this.getResolvedTitleForRoute(i))!=null?s:n,i=i.children.find(o=>o.outlet===g);return n}getResolvedTitleForRoute(e){return e.data[Ne]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>p(fs),providedIn:"root"})}return t})(),fs=(()=>{class t extends Nn{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(G(Xr))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ze=new T("",{providedIn:"root",factory:()=>({})}),ps=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=jr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&Fr(0,"router-outlet")},dependencies:[wi],encapsulation:2})}return t})();function or(t){let r=t.children&&t.children.map(or),e=r?M(h({},t),{children:r}):h({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=ps),e}var dt=new T(""),ar=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(Ge);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=Z(e.loadComponent()).pipe(R($n),I(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),Ve(()=>{this.componentLoaders.delete(e)})),i=new mt(n,()=>new H).pipe(vt());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=gs(n,this.compiler,e,this.onLoadEndListener).pipe(Ve(()=>{this.childrenLoaders.delete(n)})),o=new mt(s,()=>new H).pipe(vt());return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gs(t,r,e,n){return Z(t.loadChildren()).pipe(R($n),O(i=>i instanceof Pr||Array.isArray(i)?f(i):D(r.compileModuleAsync(i))),R(i=>{n&&n(t);let s,o,u=!1;return Array.isArray(i)?(o=i,u=!0):(s=i.create(e).injector,o=s.get(dt,[],{optional:!0,self:!0}).flat()),{routes:o.map(or),injector:s}}))}function vs(t){return t&&typeof t=="object"&&"default"in t}function $n(t){return vs(t)?t.default:t}var ur=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>p(ms),providedIn:"root"})}return t})(),ms=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ln=new T(""),kn=new T("");function ys(t,r,e){let n=t.get(kn),i=t.get(Gr);return t.get(It).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(),Rs(t))),{onViewTransitionCreated:a}=n;return a&&_(t,()=>a({transition:u,from:r,to:e})),o})}function Rs(t){return new Promise(r=>{Tr({read:()=>setTimeout(r)},{injector:t})})}var _n=new T(""),cr=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new H;transitionAbortSubject=new H;configLoader=p(ar);environmentInjector=p(Se);destroyRef=p(Dr);urlSerializer=p($e);rootContexts=p(ke);location=p(we);inputBindingEnabled=p(pt,{optional:!0})!==null;titleStrategy=p(Nn);options=p(ze,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(ur);createViewTransition=p(Ln,{optional:!0});navigationErrorHandler=p(_n,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new qt(i)),n=i=>this.events.next(new Bt(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){var e;(e=this.transitions)==null||e.complete()}handleNavigationRequest(e){var i;let n=++this.navigationId;(i=this.transitions)==null||i.next(M(h(h({},this.transitions.value),e),{id:n}))}setupNavigations(e,n,i){return this.transitions=new x({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:De,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(s=>s.id!==0),R(s=>M(h({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),N(s=>{let o=!1,u=!1;return f(s).pipe(N(a=>{var v;if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",E.SupersededByNewNavigation),F;this.currentTransition=s,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?M(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=(v=a.extras.onSameUrlNavigation)!=null?v:e.onSameUrlNavigation;if(!c&&l!=="reload"){let d="";return this.events.next(new Q(a.id,this.urlSerializer.serialize(a.rawUrl),d,nt.IgnoredSameUrlNavigation)),a.resolve(!1),F}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(N(d=>{var b,C;let m=(b=this.transitions)==null?void 0:b.getValue();return this.events.next(new pe(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),m!==((C=this.transitions)==null?void 0:C.getValue())?F:Promise.resolve(d)}),us(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),I(d=>{s.targetSnapshot=d.targetSnapshot,s.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=M(h({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let m=new it(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(m)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:m,source:b,restoredState:C,extras:j}=a,V=new pe(d,this.urlSerializer.serialize(m),b,C);this.events.next(V);let Y=In(this.rootComponentType).snapshot;return this.currentTransition=s=M(h({},a),{targetSnapshot:Y,urlAfterRedirects:m,extras:M(h({},j),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,f(s)}else{let d="";return this.events.next(new Q(a.id,this.urlSerializer.serialize(a.extractedUrl),d,nt.IgnoredByUrlHandlingStrategy)),a.resolve(!1),F}}),I(a=>{let c=new kt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),R(a=>(this.currentTransition=s=M(h({},a),{guards:Oi(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),_i(this.environmentInjector,a=>this.events.next(a)),I(a=>{if(s.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw lt(this.urlSerializer,a.guardsResult);let c=new _t(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),X(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",E.GuardRejected),!1)),xt(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(I(c=>{let l=new zt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),N(c=>{let l=!1;return f(c).pipe(cs(this.paramsInheritanceStrategy,this.environmentInjector),I({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",E.NoDataFromResolver)}}))}),I(c=>{let l=new Ft(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),xt(a=>{let c=l=>{var d;let v=[];(d=l.routeConfig)!=null&&d.loadComponent&&!l.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(l.routeConfig).pipe(I(m=>{l.component=m}),R(()=>{})));for(let m of l.children)v.push(...c(m));return v};return Be(c(a.targetSnapshot.root)).pipe(Rt(null),se(1))}),xt(()=>this.afterPreactivation()),N(()=>{var v;let{currentSnapshot:a,targetSnapshot:c}=s,l=(v=this.createViewTransition)==null?void 0:v.call(this,this.environmentInjector,a.root,c.root);return l?D(l).pipe(R(()=>s)):f(s)}),R(a=>{let c=bi(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=M(h({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),I(()=>{this.events.next(new Ue)}),Mi(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),se(1),I({next:a=>{var c;o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new k(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),(c=this.titleStrategy)==null||c.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),wr(this.transitionAbortSubject.pipe(I(a=>{throw a}))),Ve(()=>{var a;!o&&!u&&this.cancelNavigationTransition(s,"",E.SupersededByNewNavigation),((a=this.currentTransition)==null?void 0:a.id)===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ne(a=>{var c;if(this.destroyed)return s.resolve(!1),F;if(u=!0,Tn(a))this.events.next(new q(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),Di(a)?this.events.next(new ge(a.url,a.navigationBehaviorOptions)):s.resolve(!1);else{let l=new Te(s.id,this.urlSerializer.serialize(s.extractedUrl),a,(c=s.targetSnapshot)!=null?c:void 0);try{let v=_(this.environmentInjector,()=>{var d;return(d=this.navigationErrorHandler)==null?void 0:d.call(this,l)});if(v instanceof xe){let{message:d,cancellationCode:m}=lt(this.urlSerializer,v);this.events.next(new q(s.id,this.urlSerializer.serialize(s.extractedUrl),d,m)),this.events.next(new ge(v.redirectTo,v.navigationBehaviorOptions))}else throw this.events.next(l),a}catch(v){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(v)}}return F}))}))}cancelNavigationTransition(e,n,i){let s=new q(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){var e,n;return((e=this.currentTransition)==null?void 0:e.extractedUrl.toString())!==((n=this.currentTransition)==null?void 0:n.currentUrlTree.toString())}isUpdatedBrowserUrl(){var i,s,o,u;let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=(o=(i=this.currentNavigation)==null?void 0:i.targetBrowserUrl)!=null?o:(s=this.currentNavigation)==null?void 0:s.extractedUrl;return e.toString()!==(n==null?void 0:n.toString())&&!((u=this.currentNavigation)!=null&&u.extras.skipLocationChange)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ss(t){return t!==De}var Cs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>p(ws),providedIn:"root"})}return t})(),ir=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},ws=(()=>{class t extends ir{static \u0275fac=(()=>{let e;return function(i){return(e||(e=wt(t)))(i||t)}})();static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:()=>p(bs),providedIn:"root"})}return t})(),bs=(()=>{class t extends zn{location=p(we);urlSerializer=p($e);options=p(ze,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=p(ur);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new B;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){var e,n;return this.canceledNavigationResolution!=="computed"?this.currentPageId:(n=(e=this.restoredState())==null?void 0:e.\u0275routerPageId)!=null?n:this.currentPageId}routerState=In(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&e(n.url,n.state)})}handleRouterEvent(e,n){var i,s;if(e instanceof pe)this.stateMemento=this.createStateMemento();else if(e instanceof Q)this.rawUrlTree=n.initialUrl;else if(e instanceof it){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl((i=n.targetBrowserUrl)!=null?i:o,n)}}else e instanceof Ue?(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((s=n.targetBrowserUrl)!=null?s:this.rawUrlTree,n)):e instanceof q&&(e.code===E.GuardRejected||e.code===E.NoDataFromResolver)?this.restoreHistory(n):e instanceof Te?this.restoreHistory(n,!0):e instanceof k&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let i=e instanceof B?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let s=this.browserPageId,o=h(h({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(i,"",o)}else{let s=h(h({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){var n;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,(n=e.finalUrl)!=null?n:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=wt(t)))(i||t)}})();static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Fn(t,r){t.events.pipe(X(e=>e instanceof k||e instanceof q||e instanceof Te||e instanceof Q),R(e=>e instanceof k||e instanceof Q?0:(e instanceof q?e.code===E.Redirect||e.code===E.SupersededByNewNavigation:!1)?2:1),X(e=>e!==2),se(1)).subscribe(()=>{r()})}var Is={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},As={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},K=(()=>{var r,e;class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p($r);stateManager=p(zn);options=p(ze,{optional:!0})||{};pendingTasks=p(Mr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(cr);urlSerializer=p($e);location=p(we);urlHandlingStrategy=p(ur);_events=new H;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(Cs);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(e=(r=p(dt,{optional:!0}))==null?void 0:r.flat())!=null?e:[];componentInputBindingEnabled=!!p(pt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}eventsSubscription=new pr;subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(s=>{try{let o=this.navigationTransitions.currentTransition,u=this.navigationTransitions.currentNavigation;if(o!==null&&u!==null){if(this.stateManager.handleRouterEvent(s,u),s instanceof q&&s.code!==E.Redirect&&s.code!==E.SupersededByNewNavigation)this.navigated=!0;else if(s instanceof k)this.navigated=!0;else if(s instanceof ge){let a=s.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(s.url,o.currentRawUrl),l=h({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Ss(o.source)},a);this.scheduleNavigation(c,De,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}Ms(s)&&this._events.next(s)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),De,this.stateManager.restoredState())}setUpLocationChangeListener(){var i;(i=this.nonRouterCurrentEntryChangeSubscription)!=null||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((s,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(s,"popstate",o)},0)}))}navigateToSyncWithBrowser(i,s,o){let u={replaceUrl:!0},a=o!=null&&o.navigationId?o:null;if(o){let l=h({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(u.state=l)}let c=this.parseUrl(i);this.scheduleNavigation(c,s,a,u)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(or),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,s={}){let{relativeTo:o,queryParams:u,fragment:a,queryParamsHandling:c,preserveFragment:l}=s,v=l?this.currentUrlTree.fragment:a,d=null;switch(c!=null?c:this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),u);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=u||null}d!==null&&(d=this.removeEmptyProps(d));let m;try{let b=o?o.snapshot:this.routerState.snapshot.root;m=Sn(b)}catch{(typeof i[0]!="string"||i[0][0]!=="/")&&(i=[]),m=this.currentUrlTree.root}return Cn(m,i,d,v!=null?v:null)}navigateByUrl(i,s={skipLocationChange:!1}){let o=te(i)?i:this.parseUrl(i),u=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(u,De,null,s)}navigate(i,s={skipLocationChange:!1}){return Ds(i),this.navigateByUrl(this.createUrlTree(i,s),s)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,s){let o;if(s===!0?o=h({},Is):s===!1?o=h({},As):o=s,te(i))return Jr(this.currentUrlTree,i,o);let u=this.parseUrl(i);return Jr(this.currentUrlTree,u,o)}removeEmptyProps(i){return Object.entries(i).reduce((s,[o,u])=>(u!=null&&(s[o]=u),s),{})}scheduleNavigation(i,s,o,u,a){if(this.disposed)return Promise.resolve(!1);let c,l,v;a?(c=a.resolve,l=a.reject,v=a.promise):v=new Promise((m,b)=>{c=m,l=b});let d=this.pendingTasks.add();return Fn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:s,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:u,resolve:c,reject:l,promise:v,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),v.catch(m=>Promise.reject(m))}static \u0275fac=function(s){return new(s||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ds(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new A(4008,!1)}function Ms(t){return!(t instanceof Ue)&&!(t instanceof ge)}var un=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new H;constructor(e,n,i,s,o,u){var c;this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=u;let a=(c=o.nativeElement.tagName)==null?void 0:c.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof k&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(te(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,s,o){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==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(){var e;(e=this.subscription)==null||e.unsubscribe()}updateHref(){var i;let e=this.urlTree;this.href=e!==null&&this.locationStrategy?(i=this.locationStrategy)==null?void 0:i.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:Ur(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,s=this.el.nativeElement;n!==null?i.setAttribute(s,e,n):i.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:te(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)($(K),$(re),Ar("tabindex"),$(Dt),$(At),$(Ce))};static \u0275dir=We({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&qr("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),n&2&&zr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ke],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ke],replaceUrl:[2,"replaceUrl","replaceUrl",Ke],routerLink:"routerLink"},features:[He]})}return t})(),vo=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new oe;constructor(e,n,i,s,o){this.router=e,this.element=n,this.renderer=i,this.cdr=s,this.link=o,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof k&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(Re()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var n;(n=this.linkInputChangesSubscription)==null||n.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=D(e).pipe(Re()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){var e;this.routerEventsSubscription.unsubscribe(),(e=this.linkInputChangesSubscription)==null||e.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=Os(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?e.isActive(s,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)($(K),$(At),$(Dt),$(Qe),$(un,8))};static \u0275dir=We({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,s){if(n&1&&Br(s,un,5),n&2){let o;Vr(o=Hr())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[He]})}return t})();function Os(t){return!!t.paths}var ft=class{};var Ts=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,i,s,o){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(X(e=>e instanceof k),ie(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){var s,o,u;let i=[];for(let a of n){a.providers&&!a._injector&&(a._injector=Mt(a.providers,e,`Route: ${a.path}`));let c=(s=a._injector)!=null?s:e,l=(o=a._loadedInjector)!=null?o:c;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&i.push(this.preloadConfig(c,a)),(a.children||a._loadedRoutes)&&i.push(this.processRoutes(l,(u=a.children)!=null?u:a._loadedRoutes))}return D(i).pipe(Re())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let i;n.loadChildren&&n.canLoad===void 0?i=this.loader.loadChildren(e,n):i=f(null);let s=i.pipe(O(o=>{var u;return o===null?f(void 0):(n._loadedRoutes=o.routes,n._loadedInjector=o.injector,this.processRoutes((u=o.injector)!=null?u:e,o.routes))}));if(n.loadComponent&&!n._loadedComponent){let o=this.loader.loadComponent(n);return D([s,o]).pipe(Re())}else return s})}static \u0275fac=function(n){return new(n||t)(G(K),G(Ge),G(Se),G(ft),G(ar))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qn=new T(""),Us=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,n,i,s,o={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=i,this.zone=s,this.options=o,o.scrollPositionRestoration||(o.scrollPositionRestoration="disabled"),o.anchorScrolling||(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(e=>{e instanceof pe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof k?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Q&&e.code===nt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof st&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new st(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){var e,n;(e=this.routerEventsSubscription)==null||e.unsubscribe(),(n=this.scrollEventsSubscription)==null||n.unsubscribe()}static \u0275fac=function(n){Er()};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();function Es(t){return t.routerState.root}function Fe(t,r){return{\u0275kind:t,\u0275providers:r}}function xs(){let t=p(bt);return r=>{var s,o;let e=t.get(_r);if(r!==e.components[0])return;let n=t.get(K),i=t.get(Bn);t.get(lr)===1&&n.initialNavigation(),(s=t.get(Vn,null,Ct.Optional))==null||s.setUpPreloading(),(o=t.get(qn,null,Ct.Optional))==null||o.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Bn=new T("",{factory:()=>new H}),lr=new T("",{providedIn:"root",factory:()=>1});function Ps(){return Fe(2,[{provide:lr,useValue:0},{provide:Ot,multi:!0,deps:[bt],useFactory:r=>{let e=r.get(Qr,Promise.resolve());return()=>e.then(()=>new Promise(n=>{let i=r.get(K),s=r.get(Bn);Fn(i,()=>{n(!0)}),r.get(cr).afterPreactivation=()=>(n(!0),s.closed?f(void 0):s),i.initialNavigation()}))}}])}function js(){return Fe(3,[{provide:Ot,multi:!0,useFactory:()=>{let r=p(K);return()=>{r.setUpLocationChangeListener()}}},{provide:lr,useValue:2}])}var Vn=new T("");function Ns(t){return Fe(0,[{provide:Vn,useExisting:Ts},{provide:ft,useExisting:t}])}function $s(){return Fe(8,[nn,{provide:pt,useExisting:nn}])}function Ls(t){let r=[{provide:Ln,useValue:ys},{provide:kn,useValue:h({skipNextTransition:!!(t!=null&&t.skipInitialTransition)},t)}];return Fe(9,r)}var ks=[we,{provide:$e,useClass:fe},K,ke,{provide:re,useFactory:Es,deps:[K]},ar,[]],mo=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[ks,[],{provide:dt,multi:!0,useValue:e},[],n!=null&&n.errorHandler?{provide:_n,useValue:n.errorHandler}:[],{provide:ze,useValue:n||{}},n!=null&&n.useHash?zs():Fs(),_s(),n!=null&&n.preloadingStrategy?Ns(n.preloadingStrategy).\u0275providers:[],n!=null&&n.initialNavigation?qs(n):[],n!=null&&n.bindToComponentInputs?$s().\u0275providers:[],n!=null&&n.enableViewTransitions?Ls().\u0275providers:[],Bs()]}}static forChild(e){return{ngModule:t,providers:[{provide:dt,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Nr({type:t});static \u0275inj=br({})}return t})();function _s(){return{provide:qn,useFactory:()=>{let t=p(Yr),r=p(It),e=p(ze),n=p(cr),i=p($e);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Us(i,n,t,r,e)}}}function zs(){return{provide:Ce,useClass:Zr}}function Fs(){return{provide:Ce,useClass:Kr}}function qs(t){return[t.initialNavigation==="disabled"?js().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Ps().\u0275providers:[]]}var cn=new T("");function Bs(){return[{provide:cn,useFactory:xs},{provide:kr,multi:!0,useExisting:cn}]}export{k as a,re as b,wi as c,K as d,un as e,vo as f,mo as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as _,b as D}from"./chunk-
|
|
1
|
+
import{a as _,b as D}from"./chunk-2WHZVNIL.js";import{j as c,k as S}from"./chunk-5ONHAKZR.js";import{f as x}from"./chunk-HYGERTMR.js";import{C as v,Rc as I,g as O,ga as h,h as a,ha as E,ja as y,la as l,ma as f,r as p,ub as j,w as d,x as T,z as w}from"./chunk-276OSEZQ.js";var g=new y("JWT_OPTIONS"),m=(()=>{class r{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:{t+="==";break}case 3:{t+="=";break}default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}b64decode(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="";if(e=String(e).replace(/=+$/,""),e.length%4===1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let i=0,s,n,b=0;n=e.charAt(b++);~n&&(s=i%4?s*64+n:n,i++%4)?o+=String.fromCharCode(255&s>>(-2*i&6)):0)n=t.indexOf(n);return o}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._decodeToken(t)):this._decodeToken(e)}_decodeToken(e){if(!e||e==="")return null;let t=e.split(".");if(t.length!==3)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");let o=this.urlBase64Decode(t[1]);if(!o)throw new Error("Cannot decode the token.");return JSON.parse(o)}getTokenExpirationDate(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._getTokenExpirationDate(t)):this._getTokenExpirationDate(e)}_getTokenExpirationDate(e){let t;if(t=this.decodeToken(e),!t||!t.hasOwnProperty("exp"))return null;let o=new Date(0);return o.setUTCSeconds(t.exp),o}isTokenExpired(e=this.tokenGetter(),t){return e instanceof Promise?e.then(o=>this._isTokenExpired(o,t)):this._isTokenExpired(e,t)}_isTokenExpired(e,t){if(!e||e==="")return!0;let o=this.getTokenExpirationDate(e);return t=t||0,o===null?!1:!(o.valueOf()>new Date().valueOf()+t*1e3)}getAuthScheme(e,t){return typeof e=="function"?e(t):e}}return r.\u0275fac=function(e){return new(e||r)(l(g))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),$=r=>r instanceof Promise?v(()=>r):p(r),R=(()=>{class r{constructor(e,t,o){this.jwtHelper=t,this.document=o,this.standardPorts=["80","443"],this.tokenGetter=e.tokenGetter,this.headerName=e.headerName||"Authorization",this.authScheme=e.authScheme||e.authScheme===""?e.authScheme:"Bearer ",this.allowedDomains=e.allowedDomains||[],this.disallowedRoutes=e.disallowedRoutes||[],this.throwNoTokenError=e.throwNoTokenError||!1,this.skipWhenExpired=e.skipWhenExpired}isAllowedDomain(e){let t=new URL(e.url,this.document.location.origin);if(t.host===this.document.location.host)return!0;let o=`${t.hostname}${t.port&&!this.standardPorts.includes(t.port)?":"+t.port:""}`;return this.allowedDomains.findIndex(i=>typeof i=="string"?i===o:i instanceof RegExp?i.test(o):!1)>-1}isDisallowedRoute(e){let t=new URL(e.url,this.document.location.origin);return this.disallowedRoutes.findIndex(o=>{if(typeof o=="string"){let i=new URL(o,this.document.location.origin);return i.hostname===t.hostname&&i.pathname===t.pathname}return o instanceof RegExp?o.test(e.url):!1})>-1}handleInterception(e,t,o){let i=this.jwtHelper.getAuthScheme(this.authScheme,t);if(!e&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let s=p(!1);return this.skipWhenExpired&&(s=e?$(this.jwtHelper.isTokenExpired(e)):p(!0)),e?s.pipe(T(n=>n&&this.skipWhenExpired?t.clone():t.clone({setHeaders:{[this.headerName]:`${i}${e}`}})),w(n=>o.handle(n))):o.handle(t)}intercept(e,t){if(!this.isAllowedDomain(e)||this.isDisallowedRoute(e))return t.handle(e);let o=this.tokenGetter(e);return $(o).pipe(w(i=>this.handleInterception(i,e,t)))}}return r.\u0275fac=function(e){return new(e||r)(l(g),l(m),l(I))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),F=(()=>{class r{constructor(e){if(e)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(e){return{ngModule:r,providers:[{provide:x,useClass:R,multi:!0},e.jwtOptionsProvider||{provide:g,useValue:e.config},m]}}}return r.\u0275fac=function(e){return new(e||r)(l(r,12))},r.\u0275mod=j({type:r}),r.\u0275inj=E({}),r})();var k=O(_(),1);var q=(()=>{class r{$api=f(S);$jwtHelper=f(m);$settings=f(D);token;user={};logoutTimer;constructor(){this.loadToken()}login(e){return a(this,null,function*(){let t=yield d(this.$api.post("/auth/login",e));if(!this.validateToken(t.access_token))throw new Error("Invalid username or password.");window.localStorage.setItem(c.jwt.tokenKey,t.access_token),yield this.$settings.getAppSettings()})}noauth(){return a(this,null,function*(){let e=yield d(this.$api.post("/auth/noauth",{}));if(this.validateToken(e.access_token))window.localStorage.setItem(c.jwt.tokenKey,e.access_token),yield this.$settings.getAppSettings();else throw new Error("Invalid username or password.")})}logout(){this.user=null,this.token=null,window.localStorage.removeItem(c.jwt.tokenKey),window.location.reload()}loadToken(){return a(this,null,function*(){this.$settings.settingsLoaded||(yield d(this.$settings.onSettingsLoaded));let e=window.localStorage.getItem(c.jwt.tokenKey);e&&this.validateToken(e)})}validateToken(e){try{return this.$jwtHelper.isTokenExpired(e,this.$settings.serverTimeOffset)&&this.logout(),this.user=this.$jwtHelper.decodeToken(e),this.token=e,this.setLogoutTimer(),!0}catch{return window.localStorage.removeItem(c.jwt.tokenKey),this.token=null,!1}}checkToken(){return a(this,null,function*(){try{return yield d(this.$api.get("/auth/check"))}catch(e){e.status===401&&(console.error("Current token is not valid"),this.logout())}})}setLogoutTimer(){if(clearTimeout(this.logoutTimer),!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)){let t=(0,k.default)(this.$jwtHelper.getTokenExpirationDate(this.token)).diff((0,k.default)().add(this.$settings.serverTimeOffset,"s"),"millisecond");t<=2147483647&&(this.logoutTimer=setTimeout(()=>a(this,null,function*(){this.$settings.formAuth===!1?(yield this.noauth(),window.location.reload()):this.logout()}),t))}}isLoggedIn(){return this.$settings.env.instanceId!==this.user.instanceId?(console.error("Token does not match instance"),!1):this.user&&this.token&&!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})();export{m as a,F as b,q as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as N,B as x,C as D,D as W,E as I,F as j,G as O,H as q,I as B,J as G,K as R,L as U,M as V,N as z,O as E,P as J,Q as K,R as P,S as Q,e as f,f as a,g as s,h as C,i as d,j as c,k as u,l,m as g,n as M,o as y,p as h,q as v,r as S,s as b,t as w,u as A,v as F,w as k,x as T,y as H,z as L}from"./chunk-
|
|
1
|
+
import{A as N,B as x,C as D,D as W,E as I,F as j,G as O,H as q,I as B,J as G,K as R,L as U,M as V,N as z,O as E,P as J,Q as K,R as P,S as Q,e as f,f as a,g as s,h as C,i as d,j as c,k as u,l,m as g,n as M,o as y,p as h,q as v,r as S,s as b,t as w,u as A,v as F,w as k,x as T,y as H,z as L}from"./chunk-KQATISYN.js";import{b as X}from"./chunk-PW5JY4GF.js";import{q as i}from"./chunk-AU2REXCU.js";import{y as n,z as t}from"./chunk-LZIWKREV.js";import{c as p}from"./chunk-TOHNQM4M.js";import{ha as m,id as e,ub as r}from"./chunk-276OSEZQ.js";var fm=(()=>{class o{static \u0275fac=function(Y){return new(Y||o)};static \u0275mod=r({type:o});static \u0275inj=m({providers:[a],imports:[e,n,t,p.forChild(),s,i,X,Q,f,G,B,U,D,h,v,V,T,k,H,L,S,N,x,c,P,K,J,E,y,M,R,g,q,O,I,W,F,j,z,A,d,C,b,w,l,u]})}return o})();export{fm as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as I}from"./chunk-
|
|
1
|
+
import{e as I}from"./chunk-276OSEZQ.js";var j=I((k,m)=>{(function(g,l){typeof k=="object"&&typeof m=="object"?m.exports=l():typeof define=="function"&&define.amd?define([],l):typeof k=="object"?k.WebLinksAddon=l():g.WebLinksAddon=l()})(self,function(){return(()=>{"use strict";var g={6:(a,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.LinkComputer=r.WebLinkProvider=void 0;var s=function(){function o(n,i,e,t){t===void 0&&(t={}),this._terminal=n,this._regex=i,this._handler=e,this._options=t}return o.prototype.provideLinks=function(n,i){var e=p.computeLink(n,this._regex,this._terminal,this._handler);i(this._addCallbacks(e))},o.prototype._addCallbacks=function(n){var i=this;return n.map(function(e){return e.leave=i._options.leave,e.hover=function(t,u){if(i._options.hover){var c=e.range;i._options.hover(t,u,c)}},e})},o}();r.WebLinkProvider=s;var p=function(){function o(){}return o.computeLink=function(n,i,e,t){for(var u,c=new RegExp(i.source,(i.flags||"")+"g"),_=o._translateBufferLineToStringWithWrap(n-1,!1,e),d=_[0],f=_[1],v=-1,w=[];(u=c.exec(d))!==null;){var h=u[1];if(!h){console.log("match found without corresponding matchIndex");break}if(v=d.indexOf(h,v+1),c.lastIndex=v+h.length,v<0)break;for(var b=v+h.length,y=f+1;b>e.cols;)b-=e.cols,y++;for(var L=v+1,P=f+1;L>e.cols;)L-=e.cols,P++;var M={start:{x:L,y:P},end:{x:b,y}};w.push({range:M,text:h,activate:t})}return w},o._translateBufferLineToStringWithWrap=function(n,i,e){var t,u,c="";do{if(!(d=e.buffer.active.getLine(n)))break;d.isWrapped&&n--,u=d.isWrapped}while(u);var _=n;do{var d,f=e.buffer.active.getLine(n+1);if(t=!!f&&f.isWrapped,!(d=e.buffer.active.getLine(n)))break;c+=d.translateToString(!t&&i).substring(0,e.cols),n++}while(t);return[c,_]},o}();r.LinkComputer=p}},l={};function x(a){var r=l[a];if(r!==void 0)return r.exports;var s=l[a]={exports:{}};return g[a](s,s.exports,x),s.exports}var W={};return(()=>{var a=W;Object.defineProperty(a,"__esModule",{value:!0}),a.WebLinksAddon=void 0;var r=x(6),s=new RegExp(`(?:^|[^\\da-z\\.-]+)((https?:\\/\\/)((([\\da-z\\.-]+)\\.([a-z\\.]{2,18}))|((\\d{1,3}\\.){3}\\d{1,3})|(localhost))(:\\d{1,5})?((\\/[\\/\\w\\.\\-%~:+@]*)*([^:"'\\s]))?(\\?[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?(#[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&'*+,:;~\\=\\.\\-]*)?)($|[^\\/\\w\\.\\-%]+)`);function p(n,i){var e=window.open();if(e){try{e.opener=null}catch{}e.location.href=i}else console.warn("Opening link blocked as opener could not be cleared")}var o=function(){function n(i,e,t){i===void 0&&(i=p),e===void 0&&(e={}),t===void 0&&(t=!1),this._handler=i,this._options=e,this._useLinkProvider=t}return n.prototype.activate=function(i){if(this._terminal=i,this._useLinkProvider&&"registerLinkProvider"in this._terminal){var e=(t=this._options).urlRegex||s;this._linkProvider=this._terminal.registerLinkProvider(new r.WebLinkProvider(this._terminal,e,this._handler,t))}else{var t;(t=this._options).matchIndex=1,this._linkMatcherId=this._terminal.registerLinkMatcher(s,this._handler,t)}},n.prototype.dispose=function(){var i;this._linkMatcherId!==void 0&&this._terminal!==void 0&&this._terminal.deregisterLinkMatcher(this._linkMatcherId),(i=this._linkProvider)===null||i===void 0||i.dispose()},n}();a.WebLinksAddon=o})(),W})()})});export{j as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-H444L7G2.js";import"./chunk-4ZL63DAS.js";import"./chunk-XU7GHNFE.js";import{g as n}from"./chunk-OU5BBEVP.js";import"./chunk-OW57Y4JF.js";import"./chunk-2WHZVNIL.js";import"./chunk-5ONHAKZR.js";import"./chunk-HYGERTMR.js";import{c as m}from"./chunk-TOHNQM4M.js";import{ha as t,id as i,ub as r}from"./chunk-276OSEZQ.js";var d=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"restart-server",loadComponent:()=>import("./chunk-VOUY3YCM.js").then(o=>o.RestartLinuxComponent)},{path:"shutdown-server",loadComponent:()=>import("./chunk-KAFQN55U.js").then(o=>o.ShutdownLinuxComponent)}],u=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n.forChild(d),n]})}return o})();var g=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i,m.forChild(),u]})}return o})();export{g as LinuxModule};
|