@duplicati/ngclient 0.0.96 → 0.0.98
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/assets/spk.woff2 +0 -0
- package/chunk-25TWFWOC.js +1 -0
- package/{chunk-G3YJXHRY.js → chunk-2X7AJBJY.js} +1 -1
- package/chunk-3CRLUTKZ.js +6 -0
- package/{chunk-WGIELPP6.js → chunk-3UY6NFJH.js} +1 -1
- package/chunk-3WHFK5U5.js +1 -0
- package/chunk-46YKZZQG.js +1 -0
- package/{chunk-76MUKWQP.js → chunk-5CB3EQEQ.js} +1 -1
- package/{chunk-CNWIFYHZ.js → chunk-5WXAGJAM.js} +1 -1
- package/chunk-64CRTZO6.js +1 -0
- package/{chunk-6EQS5NZL.js → chunk-6LVF5Q7U.js} +1 -1
- package/chunk-7I2OB6KM.js +1 -0
- package/{chunk-QX5XWUM2.js → chunk-AKURWKKM.js} +1 -1
- package/{chunk-CMXSHXAU.js → chunk-BCSA6WFY.js} +1 -1
- package/{chunk-27RULQ7Y.js → chunk-BGEONYDG.js} +1 -1
- package/{chunk-LHSJLKCF.js → chunk-BSJ6OMWB.js} +1 -1
- package/chunk-BUHABQCR.js +1 -0
- package/{chunk-WVKWOGDQ.js → chunk-C36EIFZ5.js} +1 -1
- package/chunk-C4WJIBJ4.js +1 -0
- package/{chunk-YIWL3QAP.js → chunk-E5PZ2WTR.js} +1 -1
- package/{chunk-3GK4TNUH.js → chunk-ERQAUCCL.js} +1 -1
- package/{chunk-NV2YMSSM.js → chunk-F2L6ATMF.js} +1 -1
- package/{chunk-VFJL5JPI.js → chunk-FXQBVRVU.js} +1 -1
- package/{chunk-W5YK2JJZ.js → chunk-FXYF7V3T.js} +1 -1
- package/chunk-FYKL2LOY.js +2 -0
- package/chunk-GY445E4I.js +1 -0
- package/{chunk-A6XFGG4U.js → chunk-H5SFF5D7.js} +1 -1
- package/chunk-HJXCC47N.js +6 -0
- package/{chunk-T2KQRNAJ.js → chunk-I5VNBLZK.js} +1 -1
- package/{chunk-YPQUTPBQ.js → chunk-I6XPZQ7N.js} +1 -1
- package/{chunk-UBZDIRFY.js → chunk-IN4ROBMK.js} +1 -1
- package/{chunk-XC6KYSRC.js → chunk-J242X4NN.js} +1 -1
- package/chunk-KA2H467C.js +1 -0
- package/chunk-KCEYQGRU.js +1 -0
- package/chunk-KW2XPLTZ.js +1 -0
- package/{chunk-QPO2N2OR.js → chunk-L7XUXGTC.js} +1 -1
- package/chunk-LDGR7NUE.js +1 -0
- package/chunk-LLNGOQQI.js +1 -0
- package/{chunk-WBNOGAKJ.js → chunk-NQYRWS7A.js} +1 -1
- package/{chunk-NB32XJ7B.js → chunk-OL234C52.js} +1 -1
- package/chunk-OLIPUVMA.js +1 -0
- package/chunk-ORIEYVVO.js +1 -0
- package/{chunk-MJUYFS7O.js → chunk-PQ6MLKHT.js} +1 -1
- package/{chunk-6LVGSIUU.js → chunk-PZY4BMZL.js} +1 -1
- package/chunk-QQKVF4B4.js +1 -0
- package/{chunk-CHZ7TMI7.js → chunk-QZEFXB74.js} +1 -1
- package/chunk-R2D3CVSD.js +1 -0
- package/chunk-RIM5NXPM.js +1 -0
- package/chunk-RKFABCKT.js +2 -0
- package/chunk-RNQH6BGW.js +1 -0
- package/chunk-RY7J7BHG.js +7 -0
- package/chunk-SBHSCERN.js +1 -0
- package/{chunk-IZOZII2D.js → chunk-SHATBKDA.js} +1 -1
- package/{chunk-HGERKLOF.js → chunk-TDXJNPMY.js} +1 -1
- package/{chunk-F5S33WHR.js → chunk-TGK3F3XP.js} +1 -1
- package/chunk-U7C24GJ2.js +1 -0
- package/{chunk-OS4AAJLB.js → chunk-UNV7VK4Z.js} +1 -1
- package/{chunk-4XPN5ZGE.js → chunk-VDB64BFB.js} +1 -1
- package/{chunk-LO4MUZS2.js → chunk-VGNOUHVL.js} +1 -1
- package/chunk-W4U2FPZX.js +1 -0
- package/chunk-W6TPRQIT.js +1 -0
- package/{chunk-IHYIT4I3.js → chunk-XA4UOPDI.js} +1 -1
- package/chunk-XQCRX6RA.js +2 -0
- package/chunk-YQ7U7A2N.js +1 -0
- package/{chunk-3YOT5OAB.js → chunk-Z2LU6ASK.js} +1 -1
- package/{chunk-MURCWMUG.js → chunk-Z5KSF3LW.js} +1 -1
- package/{chunk-UT45C7WK.js → chunk-ZDCJ72UD.js} +1 -1
- package/chunk-ZDMCLDW7.js +1 -0
- package/{chunk-IAVOZTCR.js → chunk-ZUX7IMN4.js} +1 -1
- package/chunk-ZV72G3X3.js +1 -0
- package/index.html +18 -2
- package/main-F254FFHF.js +1 -0
- package/package.json +1 -1
- package/styles-GQ3J35VN.css +1 -0
- package/chunk-3WEATDBM.js +0 -1
- package/chunk-3WKC2CFC.js +0 -1
- package/chunk-3XY4ZNIY.js +0 -1
- package/chunk-4ERW7ITN.js +0 -1
- package/chunk-57MYGQMW.js +0 -1
- package/chunk-5COOM7FC.js +0 -6
- package/chunk-5UL3RRQI.js +0 -2
- package/chunk-7EPQLKGD.js +0 -1
- package/chunk-7JZ5LA6R.js +0 -1
- package/chunk-ASQFBDFK.js +0 -1
- package/chunk-C2PMOZWR.js +0 -1
- package/chunk-CR2UB7UZ.js +0 -1
- package/chunk-FHW4WHNO.js +0 -1
- package/chunk-FJKXCOAH.js +0 -1
- package/chunk-GI6WORKU.js +0 -1
- package/chunk-L3T52MCL.js +0 -1
- package/chunk-LXEGFP53.js +0 -1
- package/chunk-MJI6X5KH.js +0 -1
- package/chunk-PTC4N7TU.js +0 -7
- package/chunk-PUSUA4U7.js +0 -1
- package/chunk-Q3FF4WG3.js +0 -1
- package/chunk-RUWWC6BD.js +0 -1
- package/chunk-TNK2MVSP.js +0 -1
- package/chunk-V6OHLKTK.js +0 -1
- package/chunk-WNWGY2FM.js +0 -1
- package/chunk-YDN2L342.js +0 -6
- package/chunk-ZCB4RYTS.js +0 -1
- package/chunk-ZTJALQGT.js +0 -1
- package/main-JSU2T7AW.js +0 -1
- package/styles-IOWRSZHV.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as xr}from"./chunk-G3YJXHRY.js";import{j as vt,n as _e}from"./chunk-3GK4TNUH.js";import{$ as _,$b as Tr,Ac as gt,B as ut,C as ee,Cb as Dr,D as Pe,E as H,Ec as Le,F as ct,G as or,I as sr,Ic as ke,K as ar,L as x,M as ur,N as S,O as w,Pa as vr,Pc as Er,R as b,Sb as Mr,T as cr,U as P,Ua as pt,V as lt,Va as j,W as ht,Wa as mr,X as g,Y as lr,_ as je,_b as Or,ab as yr,ac as Ur,b as er,ba as Ne,c as tr,cb as Rr,db as Sr,e as it,f as ot,fa as dt,fb as $e,g as V,ga as hr,h as M,ha as dr,ia as fr,j as k,ja as pr,jb as Cr,k as O,ka as te,kb as wr,l as d,m as de,mb as br,n as rr,nb as Ir,o as nr,p as m,pa as gr,q as xe,qa as ft,qb as Ar,r as T,s as st,t as ir,u as at,w as X,y as J,z as fe}from"./chunk-PTC4N7TU.js";import{a as l,b as I}from"./chunk-7CGTOI24.js";var p="primary",Oe=Symbol("RouteTitle"),Ct=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 ae(t){return new Ct(t)}function yn(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 o=0;o<n.length;o++){let s=n[o],u=t[o];if(s[0]===":")i[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function Rn(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!L(t[e],r[e]))return!1;return!0}function L(t,r){let e=t?wt(t):void 0,n=r?wt(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!qr(t[i],r[i]))return!1;return!0}function wt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function qr(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function Br(t){return t.length>0?t[t.length-1]:null}function W(t){return rr(t)?t:wr(t)?O(Promise.resolve(t)):d(t)}var Sn={exact:Hr,subset:Wr},Vr={exact:Cn,subset:wn,ignored:()=>!0};function Pr(t,r,e){return Sn[e.paths](t.root,r.root,e.matrixParams)&&Vr[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Cn(t,r){return L(t,r)}function Hr(t,r,e){if(!Q(t.segments,r.segments)||!qe(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!Hr(t.children[n],r.children[n],e))return!1;return!0}function wn(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>qr(t[e],r[e]))}function Wr(t,r,e){return Gr(t,r,r.segments,e)}function Gr(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!Q(i,e)||r.hasChildren()||!qe(i,e,n))}else if(t.segments.length===e.length){if(!Q(t.segments,e)||!qe(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!Wr(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Q(t.segments,i)||!qe(t.segments,i,n)||!t.children[p]?!1:Gr(t.children[p],r,o,n)}}function qe(t,r,e){return r.every((n,i)=>Vr[e](t[i].parameters,n.parameters))}var F=class{root;queryParams;fragment;_queryParamMap;constructor(r=new v([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){return An.serialize(this)}},v=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 Be(this)}},G=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=ae(this.parameters),this._parameterMap}toString(){return Kr(this)}};function bn(t,r){return Q(t,r)&&t.every((e,n)=>L(e.parameters,r[n].parameters))}function Q(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function In(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var Qt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>new Re,providedIn:"root"})}return t})(),Re=class{parse(r){let e=new It(r);return new F(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${pe(r.root,!0)}`,n=On(r.queryParams),i=typeof r.fragment=="string"?`#${Dn(r.fragment)}`:"";return`${e}${n}${i}`}},An=new Re;function Be(t){return t.segments.map(r=>Kr(r)).join("/")}function pe(t,r){if(!t.hasChildren())return Be(t);if(r){let e=t.children[p]?pe(t.children[p],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${pe(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=In(t,(n,i)=>i===p?[pe(t.children[p],!1)]:[`${i}:${pe(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${Be(t)}/${e[0]}`:`${Be(t)}/(${e.join("//")})`}}function Qr(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ze(t){return Qr(t).replace(/%3B/gi,";")}function Dn(t){return encodeURI(t)}function bt(t){return Qr(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ve(t){return decodeURIComponent(t)}function jr(t){return Ve(t.replace(/\+/g,"%20"))}function Kr(t){return`${bt(t.path)}${Mn(t.parameters)}`}function Mn(t){return Object.entries(t).map(([r,e])=>`;${bt(r)}=${bt(e)}`).join("")}function On(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 Tn=/^[^\/()?;#]+/;function mt(t){let r=t.match(Tn);return r?r[0]:""}var Un=/^[^\/()?;=#]+/;function En(t){let r=t.match(Un);return r?r[0]:""}var xn=/^[^=?&#]+/;function Pn(t){let r=t.match(xn);return r?r[0]:""}var jn=/^[^&#]+/;function Nn(t){let r=t.match(jn);return r?r[0]:""}var It=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let 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[p]=new v(r,e)),n}parseSegment(){let r=mt(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new G(Ve(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=En(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=mt(this.remaining);i&&(n=i,this.capture(n))}r[Ve(e)]=Ve(n)}parseQueryParam(r){let e=Pn(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=Nn(this.remaining);s&&(n=s,this.capture(n))}let i=jr(e),o=jr(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=mt(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new v([],s),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 w(4011,!1)}};function Zr(t){return t.segments.length>0?new v([],{[p]:t}):t}function Yr(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=Yr(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))r[s]=u;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new v(t.segments,r);return $n(e)}function $n(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new v(t.segments.concat(r.segments),r.children)}return t}function K(t){return t instanceof F}function Ln(t,r,e=null,n=null){let i=Xr(t);return Jr(i,r,e,n)}function Xr(t){let r;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new v(o.url,s);return o===t&&(r=u),u}let n=e(t.root),i=Zr(n);return r??i}function Jr(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return yt(i,i,i,e,n);let o=kn(r);if(o.toRoot())return yt(i,i,new v([],{}),e,n);let s=_n(o,i,t),u=s.processChildren?ve(s.segmentGroup,s.index,o.commands):tn(s.segmentGroup,s.index,o.commands);return yt(i,s.segmentGroup,u,e,n)}function He(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Se(t){return typeof t=="object"&&t!=null&&t.outlets}function yt(t,r,e,n,i){let o={};n&&Object.entries(n).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(h=>`${h}`):`${c}`});let s;t===r?s=e:s=en(t,r,e);let u=Zr(Yr(s));return new F(u,o,i)}function en(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=en(o,r,e)}),new v(t.segments,n)}var We=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&He(n[0]))throw new w(4003,!1);let i=n.find(Se);if(i&&i!==Br(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function kn(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new We(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new We(e,r,n)}var ie=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function _n(t,r,e){if(t.isAbsolute)return new ie(r,!0,0);if(!e)return new ie(r,!1,NaN);if(e.parent===null)return new ie(e,!0,0);let n=He(t.commands[0])?0:1,i=e.segments.length-1+n;return zn(e,i,t.numberOfDoubleDots)}function zn(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new ie(n,!1,i-o)}function Fn(t){return Se(t[0])?t[0].outlets:{[p]:t}}function tn(t,r,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return ve(t,r,e);let n=qn(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,n.pathIndex),{});return o.children[p]=new v(t.segments.slice(n.pathIndex),t.children),ve(o,0,i)}else return n.match&&i.length===0?new v(t.segments,{}):n.match&&!t.hasChildren()?At(t,r,e):n.match?ve(t,0,i):At(t,r,e)}function ve(t,r,e){if(e.length===0)return new v(t.segments,{});{let n=Fn(e),i={};if(Object.keys(n).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ve(t.children[p],r,e);return new v(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=tn(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function qn(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],u=e[n];if(Se(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(!$r(a,c,s))return o;n+=2}else{if(!$r(a,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function At(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(Se(o)){let a=Bn(o.outlets);return new v(n,a)}if(i===0&&He(e[0])){let a=t.segments[r];n.push(new G(a.path,Nr(e[0]))),i++;continue}let s=Se(o)?o.outlets[p]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&He(u)?(n.push(new G(s,Nr(u))),i+=2):(n.push(new G(s,{})),i++)}return new v(n,{})}function Bn(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=At(new v([],{}),0,n))}),r}function Nr(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function $r(t,r,e){return t==e.path&&L(r,e.parameters)}var me="imperative",R=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}(R||{}),U=class{id;url;constructor(r,e){this.id=r,this.url=e}},Ce=class extends U{type=R.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}')`}},q=class extends U{urlAfterRedirects;type=R.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},D=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(D||{}),Dt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Dt||{}),z=class extends U{reason;code;type=R.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Z=class extends U{reason;code;type=R.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},we=class extends U{error;target;type=R.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})`}},Ge=class extends U{urlAfterRedirects;state;type=R.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})`}},Mt=class extends U{urlAfterRedirects;state;type=R.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})`}},Ot=class extends U{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Tt=class extends U{urlAfterRedirects;state;type=R.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})`}},Ut=class extends U{urlAfterRedirects;state;type=R.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Et=class{route;type=R.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},xt=class{route;type=R.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Pt=class{snapshot;type=R.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jt=class{snapshot;type=R.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nt=class{snapshot;type=R.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$t=class{snapshot;type=R.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var be=class{},ue=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Vn(t,r){return t.providers&&!t._injector&&(t._injector=Rr(t.providers,r,`Route: ${t.path}`)),t._injector??r}function N(t){return t.outlet||p}function Hn(t,r){let e=t.filter(n=>N(n)===r);return e.push(...t.filter(n=>N(n)!==r)),e}function Te(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Lt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Te(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new et(this.rootInjector)}},et=(()=>{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 Lt(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(ht(je))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qe=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=_t(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return _t(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 _t(t,r){if(t===r.value)return[r];for(let e of r.children){let n=_t(t,e);if(n.length)return n.unshift(r),n}return[]}var A=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function ne(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var Ke=class extends Qe{snapshot;constructor(r,e){super(r),this.snapshot=e,Kt(this,r)}toString(){return this.snapshot.toString()}};function rn(t){let r=Wn(t),e=new M([new G("",{})]),n=new M({}),i=new M({}),o=new M({}),s=new M(""),u=new Y(e,n,o,s,i,p,t,r.root);return u.snapshot=r.root,new Ke(new A(u,[]),r)}function Wn(t){let r={},e={},n={},i="",o=new oe([],r,n,i,e,p,t,null,{});return new Ye("",new A(o,[]))}var Y=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,u,a){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[Oe]))??d(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(m(r=>ae(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(r=>ae(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ze(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:l(l({},r.params),t.params),data:l(l({},r.data),t.data),resolve:l(l(l(l({},t.data),r.data),i?.data),t._resolvedData)}:n={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&on(i)&&(n.resolve[Oe]=i.title),n}var oe=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Oe]}constructor(r,e,n,i,o,s,u,a,c){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ae(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae(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}')`}},Ye=class extends Qe{url;constructor(r,e){super(e),this.url=r,Kt(this,e)}toString(){return nn(this._root)}};function Kt(t,r){r.value._routerState=t,r.children.forEach(e=>Kt(t,e))}function nn(t){let r=t.children.length>0?` { ${t.children.map(nn).join(", ")} } `:"";return`${t.value}${r}`}function Rt(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,L(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),L(r.params,e.params)||t.paramsSubject.next(e.params),Rn(r.url,e.url)||t.urlSubject.next(e.url),L(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function zt(t,r){let e=L(t.params,r.params)&&bn(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||zt(t.parent,r.parent))}function on(t){return typeof t.title=="string"||t.title===null}var Gn=new P(""),Qn=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new te;deactivateEvents=new te;attachEvents=new te;detachEvents=new te;routerOutletData=gr(void 0);parentContexts=g(et);location=g(mr);changeDetector=g(Le);inputBinder=g(tt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new Ft(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ne]})}return t})(),Ft=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===Y?this.route:r===et?this.childContexts:r===Gn?this.outletData:this.parent.get(r,e)}},tt=new P(""),Lr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=xe([n.queryParams,n.params,n.data]).pipe(x(([o,s,u],a)=>(u=l(l(l({},o),s),u),a===0?d(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=Er(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of s.inputs)e.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})();function Kn(t,r,e){let n=Ie(t,r._root,e?e._root:void 0);return new Ke(n,r)}function Ie(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Zn(t,r,e);return new A(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(u=>Ie(t,u)),s}}let n=Yn(r.value),i=r.children.map(o=>Ie(t,o));return new A(n,i)}}function Zn(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Ie(t,n,i);return Ie(t,n)})}function Yn(t){return new Y(new M(t.url),new M(t.params),new M(t.queryParams),new M(t.fragment),new M(t.data),t.outlet,t.component,t)}var Ae=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},sn="ngNavigationCancelingError";function Xe(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=K(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=an(!1,D.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function an(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[sn]=!0,e.cancellationCode=r,e}function Xn(t){return un(t)&&K(t.url)}function un(t){return!!t&&t[sn]}var Jn=(t,r,e,n)=>m(i=>(new qt(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),qt=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),Rt(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ne(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ne(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:u})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ne(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=ne(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new $t(o.value.snapshot))}),r.children.length&&this.forwardEvent(new jt(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(Rt(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Rt(u.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Je=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},se=class{component;route;constructor(r,e){this.component=r,this.route=e}};function ei(t,r,e){let n=t._root,i=r?r._root:null;return ge(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 le(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!cr(t)?t:r.get(t):n}function ge(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ne(r);return t.children.forEach(s=>{ri(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>ye(u,e.getContext(s),i)),i}function ri(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=ni(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new Je(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ge(t,r,u?u.children:null,n,i):ge(t,r,e,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new se(u.outlet.component,s))}else s&&ye(r,u,i),i.canActivateChecks.push(new Je(n)),o.component?ge(t,null,u?u.children:null,n,i):ge(t,null,e,n,i);return i}function ni(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!Q(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Q(t.url,r.url)||!L(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zt(t,r)||!L(t.queryParams,r.queryParams);case"paramsChange":default:return!zt(t,r)}}function ye(t,r,e){let n=ne(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?ye(s,r.children.getContext(o),e):ye(s,null,e):ye(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new se(r.outlet.component,i)):e.canDeactivateChecks.push(new se(null,i)):e.canDeactivateChecks.push(new se(null,i))}function Ue(t){return typeof t=="function"}function ii(t){return typeof t=="boolean"}function oi(t){return t&&Ue(t.canLoad)}function si(t){return t&&Ue(t.canActivate)}function ai(t){return t&&Ue(t.canActivateChild)}function ui(t){return t&&Ue(t.canDeactivate)}function ci(t){return t&&Ue(t.canMatch)}function cn(t){return t instanceof nr||t?.name==="EmptyError"}var Fe=Symbol("INITIAL_VALUE");function ce(){return x(t=>xe(t.map(r=>r.pipe(ee(1),ar(Fe)))).pipe(m(r=>{for(let e of r)if(e!==!0){if(e===Fe)return Fe;if(e===!1||li(e))return e}return!0}),X(r=>r!==Fe),ee(1)))}function li(t){return K(t)||t instanceof Ae}function hi(t,r){return T(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?d(I(l({},e),{guardsResult:!0})):di(s,n,i,t).pipe(T(u=>u&&ii(u)?fi(n,o,t,r):d(u)),m(u=>I(l({},e),{guardsResult:u})))})}function di(t,r,e,n){return O(t).pipe(T(i=>yi(i.component,i.route,e,r,n)),H(i=>i!==!0,!0))}function fi(t,r,e,n){return O(r).pipe(fe(i=>ir(gi(i.route.parent,n),pi(i.route,n),mi(t,i.path,e),vi(t,i.route,e))),H(i=>i!==!0,!0))}function pi(t,r){return t!==null&&r&&r(new Nt(t)),d(!0)}function gi(t,r){return t!==null&&r&&r(new Pt(t)),d(!0)}function vi(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return d(!0);let i=n.map(o=>at(()=>{let s=Te(r)??e,u=le(o,s),a=si(u)?u.canActivate(r,t):_(s,()=>u(r,t));return W(a).pipe(H())}));return d(i).pipe(ce())}function mi(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>ti(s)).filter(s=>s!==null).map(s=>at(()=>{let u=s.guards.map(a=>{let c=Te(s.node)??e,h=le(a,c),f=ai(h)?h.canActivateChild(n,t):_(c,()=>h(n,t));return W(f).pipe(H())});return d(u).pipe(ce())}));return d(o).pipe(ce())}function yi(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return d(!0);let s=o.map(u=>{let a=Te(r)??i,c=le(u,a),h=ui(c)?c.canDeactivate(t,r,e,n):_(a,()=>c(t,r,e,n));return W(h).pipe(H())});return d(s).pipe(ce())}function Ri(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return d(!0);let o=i.map(s=>{let u=le(s,t),a=oi(u)?u.canLoad(r,e):_(t,()=>u(r,e));return W(a)});return d(o).pipe(ce(),ln(n))}function ln(t){return tr(S(r=>{if(typeof r!="boolean")throw Xe(t,r)}),m(r=>r===!0))}function Si(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return d(!0);let o=i.map(s=>{let u=le(s,t),a=ci(u)?u.canMatch(r,e):_(t,()=>u(r,e));return W(a)});return d(o).pipe(ce(),ln(n))}var De=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},Me=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function re(t){return de(new De(t))}function Ci(t){return de(new w(4e3,!1))}function wi(t){return de(an(!1,D.GuardRejected))}var Bt=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 d(n);if(i.numberOfChildren>1||!i.children[p])return Ci(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,e,n,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:h,url:f,outlet:y,params:$,data:C,title:B}=i,E=_(o,()=>u({params:$,data:C,queryParams:a,fragment:c,routeConfig:h,url:f,outlet:y,title:B}));if(E instanceof F)throw new Me(E);e=E}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new Me(s);return s}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new F(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);n[i]=e[u]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(r,a,n,i)}),new v(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},Vt={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function bi(t,r,e,n,i){let o=hn(t,r,e);return o.matched?(n=Vn(r,n),Si(n,r,e,i).pipe(m(s=>s===!0?o:l({},Vt)))):d(o)}function hn(t,r,e){if(r.path==="**")return Ii(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},Vt):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||yn)(e,t,r);if(!i)return l({},Vt);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Ii(t){return{matched:!0,parameters:t.length>0?Br(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function kr(t,r,e,n){return e.length>0&&Mi(t,e,n)?{segmentGroup:new v(r,Di(n,new v(e,t.children))),slicedSegments:[]}:e.length===0&&Oi(t,e,n)?{segmentGroup:new v(t.segments,Ai(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function Ai(t,r,e,n){let i={};for(let o of e)if(rt(t,r,o)&&!n[N(o)]){let s=new v([],{});i[N(o)]=s}return l(l({},n),i)}function Di(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&N(n)!==p){let i=new v([],{});e[N(n)]=i}return e}function Mi(t,r,e){return e.some(n=>rt(t,r,n)&&N(n)!==p)}function Oi(t,r,e){return e.some(n=>rt(t,r,n))}function rt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ti(t,r,e){return r.length===0&&!t.children[e]}var Ht=class{};function Ui(t,r,e,n,i,o,s="emptyOnly"){return new Wt(t,r,e,n,i,s,o).recognize()}var Ei=31,Wt=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,u){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.applyRedirects=new Bt(this.urlSerializer,this.urlTree)}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}recognize(){let r=kr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(m(({children:e,rootSnapshot:n})=>{let i=new A(n,e),o=new Ye("",i),s=Ln(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new oe([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,e).pipe(m(n=>({children:n,rootSnapshot:e})),J(n=>{if(n instanceof Me)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof De?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,o):this.processSegment(r,e,n,n.segments,i,!0,o).pipe(m(s=>s instanceof A?[s]:[]))}processChildren(r,e,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return O(o).pipe(fe(s=>{let u=n.children[s],a=Hn(e,s);return this.processSegmentGroup(r,a,u,s,i)}),sr((s,u)=>(s.push(...u),s)),ut(null),or(),T(s=>{if(s===null)return re(n);let u=dn(s);return xi(u),d(u)}))}processSegment(r,e,n,i,o,s,u){return O(e).pipe(fe(a=>this.processSegmentAgainstRoute(a._injector??r,e,a,n,i,o,s,u).pipe(J(c=>{if(c instanceof De)return d(null);throw c}))),H(a=>!!a),J(a=>{if(cn(a))return Ti(n,i,o)?d(new Ht):re(n);throw a}))}processSegmentAgainstRoute(r,e,n,i,o,s,u,a){return N(n)!==s&&(s===p||!rt(i,o,n))?re(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,o,s,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,a):re(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,u){let{matched:a,parameters:c,consumedSegments:h,positionalParamSegments:f,remainingSegments:y}=hn(e,i,o);if(!a)return re(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ei&&(this.allowRedirects=!1));let $=new oe(o,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,_r(i),N(i),i.component??i._loadedComponent??null,i,zr(i)),C=Ze($,u,this.paramsInheritanceStrategy);$.params=Object.freeze(C.params),$.data=Object.freeze(C.data);let B=this.applyRedirects.applyRedirectCommands(h,i.redirectTo,f,$,r);return this.applyRedirects.lineralizeSegments(i,B).pipe(T(E=>this.processSegment(r,n,e,E.concat(y),s,!1,u)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let u=bi(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),u.pipe(x(a=>a.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(x(({routes:c})=>{let h=n._loadedInjector??r,{parameters:f,consumedSegments:y,remainingSegments:$}=a,C=new oe(y,f,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,_r(n),N(n),n.component??n._loadedComponent??null,n,zr(n)),B=Ze(C,s,this.paramsInheritanceStrategy);C.params=Object.freeze(B.params),C.data=Object.freeze(B.data);let{segmentGroup:E,slicedSegments:he}=kr(e,y,$,c);if(he.length===0&&E.hasChildren())return this.processChildren(h,c,E,C).pipe(m(Ee=>new A(C,Ee)));if(c.length===0&&he.length===0)return d(new A(C,[]));let mn=N(n)===o;return this.processSegment(h,c,E,he,mn?p:o,!0,C).pipe(m(Ee=>new A(C,Ee instanceof A?[Ee]:[])))}))):re(e)))}getChildConfig(r,e,n){return e.children?d({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?d({routes:e._loadedRoutes,injector:e._loadedInjector}):Ri(r,e,n,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(r,e).pipe(S(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):wi(e))):d({routes:[],injector:r})}};function xi(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function Pi(t){let r=t.value.routeConfig;return r&&r.path===""}function dn(t){let r=[],e=new Set;for(let n of t){if(!Pi(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=dn(n.children);r.push(new A(n.value,i))}return r.filter(n=>!e.has(n))}function _r(t){return t.data||{}}function zr(t){return t.resolve||{}}function ji(t,r,e,n,i,o){return T(s=>Ui(t,r,e,n,s.extractedUrl,i,o).pipe(m(({state:u,tree:a})=>I(l({},s),{targetSnapshot:u,urlAfterRedirects:a}))))}function Ni(t,r){return T(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return d(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let c of fn(a))s.add(c);let u=0;return O(s).pipe(fe(a=>o.has(a)?$i(a,n,t,r):(a.data=Ze(a,a.parent,t).resolve,d(void 0))),S(()=>u++),ct(1),T(a=>u===s.size?d(e):k))})}function fn(t){let r=t.children.map(e=>fn(e)).flat();return[t,...r]}function $i(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!on(i)&&(o[Oe]=i.title),Li(o,t,r,n).pipe(m(s=>(t._resolvedData=s,t.data=Ze(t,t.parent,e).resolve,null)))}function Li(t,r,e,n){let i=wt(t);if(i.length===0)return d({});let o={};return O(i).pipe(T(s=>ki(t[s],r,e,n).pipe(H(),S(u=>{if(u instanceof Ae)throw Xe(new Re,u);o[s]=u}))),ct(1),m(()=>o),J(s=>cn(s)?k:de(s)))}function ki(t,r,e,n){let i=Te(r)??n,o=le(t,i),s=o.resolve?o.resolve(r,e):_(i,()=>o(r,e));return W(s)}function St(t){return x(r=>{let e=t(r);return e?O(e).pipe(m(()=>r)):d(r)})}var pn=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(e){return e.data[Oe]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(_i),providedIn:"root"})}return t})(),_i=(()=>{class t extends pn{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)(ht(xr))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Zt=new P("",{providedIn:"root",factory:()=>({})}),zi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Sr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&Dr(0,"router-outlet")},dependencies:[Qn],encapsulation:2})}return t})();function Yt(t){let r=t.children&&t.children.map(Yt),e=r?I(l({},t),{children:r}):l({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=zi),e}var Xt=new P(""),Fi=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(gt);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return d(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=W(e.loadComponent()).pipe(m(gn),S(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Pe(()=>{this.componentLoaders.delete(e)})),i=new ot(n,()=>new V).pipe(it());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return d({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=qi(n,this.compiler,e,this.onLoadEndListener).pipe(Pe(()=>{this.childrenLoaders.delete(n)})),s=new ot(o,()=>new V).pipe(it());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qi(t,r,e,n){return W(t.loadChildren()).pipe(m(gn),T(i=>i instanceof yr||Array.isArray(i)?d(i):O(r.compileModuleAsync(i))),m(i=>{n&&n(t);let o,s,u=!1;return Array.isArray(i)?(s=i,u=!0):(o=i.create(e).injector,s=o.get(Xt,[],{optional:!0,self:!0}).flat()),{routes:s.map(Yt),injector:o}}))}function Bi(t){return t&&typeof t=="object"&&"default"in t}function gn(t){return Bi(t)?t.default:t}var Jt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Vi),providedIn:"root"})}return t})(),Vi=(()=>{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=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hi=new P("");var Wi=new P(""),Gi=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new V;transitionAbortSubject=new V;configLoader=g(Fi);environmentInjector=g(je);destroyRef=g(fr);urlSerializer=g(Qt);rootContexts=g(et);location=g(_e);inputBindingEnabled=g(tt,{optional:!0})!==null;titleStrategy=g(pn);options=g(Zt,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(Jt);createViewTransition=g(Hi,{optional:!0});navigationErrorHandler=g(Wi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>d(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Et(i)),n=i=>this.events.next(new xt(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(I(l(l({},this.transitions.value),e),{id:n}))}setupNavigations(e,n,i){return this.transitions=new M({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:me,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),m(o=>I(l({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),x(o=>{let s=!1,u=!1;return d(o).pipe(x(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",D.SupersededByNewNavigation),k;this.currentTransition=o,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?I(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&h!=="reload"){let f="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.rawUrl),f,Dt.IgnoredSameUrlNavigation)),a.resolve(!1),k}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return d(a).pipe(x(f=>{let y=this.transitions?.getValue();return this.events.next(new Ce(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),y!==this.transitions?.getValue()?k:Promise.resolve(f)}),ji(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),S(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=I(l({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let y=new Ge(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:y,source:$,restoredState:C,extras:B}=a,E=new Ce(f,this.urlSerializer.serialize(y),$,C);this.events.next(E);let he=rn(this.rootComponentType).snapshot;return this.currentTransition=o=I(l({},a),{targetSnapshot:he,urlAfterRedirects:y,extras:I(l({},B),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,d(o)}else{let f="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.extractedUrl),f,Dt.IgnoredByUrlHandlingStrategy)),a.resolve(!1),k}}),S(a=>{let c=new Mt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=o=I(l({},a),{guards:ei(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),hi(this.environmentInjector,a=>this.events.next(a)),S(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Xe(this.urlSerializer,a.guardsResult);let c=new Ot(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,"",D.GuardRejected),!1)),St(a=>{if(a.guards.canActivateChecks.length)return d(a).pipe(S(c=>{let h=new Tt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),x(c=>{let h=!1;return d(c).pipe(Ni(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",D.NoDataFromResolver)}}))}),S(c=>{let h=new Ut(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),St(a=>{let c=h=>{let f=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(h.routeConfig).pipe(S(y=>{h.component=y}),m(()=>{})));for(let y of h.children)f.push(...c(y));return f};return xe(c(a.targetSnapshot.root)).pipe(ut(null),ee(1))}),St(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:a,targetSnapshot:c}=o,h=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return h?O(h).pipe(m(()=>o)):d(o)}),m(a=>{let c=Kn(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=I(l({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),S(()=>{this.events.next(new be)}),Jn(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ee(1),S({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),ur(this.transitionAbortSubject.pipe(S(a=>{throw a}))),Pe(()=>{!s&&!u&&this.cancelNavigationTransition(o,"",D.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(this.destroyed)return o.resolve(!1),k;if(u=!0,un(a))this.events.next(new z(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),Xn(a)?this.events.next(new ue(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let c=new we(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let h=_(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(h instanceof Ae){let{message:f,cancellationCode:y}=Xe(this.urlSerializer,h);this.events.next(new z(o.id,this.urlSerializer.serialize(o.extractedUrl),f,y)),this.events.next(new ue(h.redirectTo,h.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(h){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(h)}}return k}))}))}cancelNavigationTransition(e,n,i){let o=new z(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qi(t){return t!==me}var Ki=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Zi),providedIn:"root"})}return t})(),Gt=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Zi=(()=>{class t extends Gt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=dt(t)))(i||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Yi),providedIn:"root"})}return t})(),Yi=(()=>{class t extends vn{location=g(_e);urlSerializer=g(Qt);options=g(Zt,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=g(Jt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new F;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=rn(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){if(e instanceof Ce)this.stateMemento=this.createStateMemento();else if(e instanceof Z)this.rawUrlTree=n.initialUrl;else if(e instanceof Ge){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??i,n)}}else e instanceof be?(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(n.targetBrowserUrl??this.rawUrlTree,n)):e instanceof z&&(e.code===D.GuardRejected||e.code===D.NoDataFromResolver)?this.restoreHistory(n):e instanceof we?this.restoreHistory(n,!0):e instanceof q&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let i=e instanceof F?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let o=this.browserPageId,s=l(l({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(i,"",s)}else{let o=l(l({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??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=dt(t)))(i||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xi(t,r){t.events.pipe(X(e=>e instanceof q||e instanceof z||e instanceof we||e instanceof Z),m(e=>e instanceof q||e instanceof Z?0:(e instanceof z?e.code===D.Redirect||e.code===D.SupersededByNewNavigation:!1)?2:1),X(e=>e!==2),ee(1)).subscribe(()=>{r()})}var Ji={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},nt=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(Cr);stateManager=g(vn);options=g(Zt,{optional:!0})||{};pendingTasks=g(pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(Gi);urlSerializer=g(Qt);location=g(_e);urlHandlingStrategy=g(Jt);_events=new V;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(Ki);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(Xt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(tt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new er;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof z&&n.code!==D.Redirect&&n.code!==D.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof q)this.navigated=!0;else if(n instanceof ue){let s=n.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),a=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Qi(i.source)},s);this.scheduleNavigation(u,me,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ro(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),me,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",n)},0)})}navigateToSyncWithBrowser(e,n,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=l({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,n,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Yt),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(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:a}=n,c=a?this.currentUrlTree.fragment:s,h=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":h=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let y=i?i.snapshot:this.routerState.snapshot.root;f=Xr(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Jr(f,e,h,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=K(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,me,null,n)}navigate(e,n={skipLocationChange:!1}){return to(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=l({},Ji):n===!1?i=l({},eo):i=n,K(e))return Pr(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Pr(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((f,y)=>{u=f,a=y});let h=this.pendingTasks.add();return Xi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function to(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new w(4008,!1)}function ro(t){return!(t instanceof be)&&!(t instanceof ue)}var Fr=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new V;constructor(e,n,i,o,s,u){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof q&&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)):(K(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:vr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:K(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)(j(nt),j(Y),hr("tabindex"),j(pt),j(ft),j(vt))};static \u0275dir=$e({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Mr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Ar("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:[Ne]})}return t})(),Go=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new te;constructor(e,n,i,o,s){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof q&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(st()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(e).pipe(st()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=no(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,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)(j(nt),j(ft),j(pt),j(Le),j(Fr,8))};static \u0275dir=$e({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&Or(o,Fr,5),n&2){let s;Tr(s=Ur())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ne]})}return t})();function no(t){return!!t.paths}var io=new P("");function Qo(t,...r){return lr([{provide:Xt,multi:!0,useValue:t},[],{provide:Y,useFactory:oo,deps:[nt]},{provide:br,multi:!0,useFactory:ao},r.map(e=>e.\u0275providers)])}function oo(t){return t.routerState.root}function so(t,r){return{\u0275kind:t,\u0275providers:r}}function ao(){let t=g(dr);return r=>{let e=t.get(Ir);if(r!==e.components[0])return;let n=t.get(nt),i=t.get(uo);t.get(co)===1&&n.initialNavigation(),t.get(lo,null,lt.Optional)?.setUpPreloading(),t.get(io,null,lt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var uo=new P("",{factory:()=>new V}),co=new P("",{providedIn:"root",factory:()=>1});var lo=new P("");function Ko(){return so(8,[Lr,{provide:tt,useExisting:Lr}])}export{Y as a,Qn as b,nt as c,Fr as d,Go as e,Qo as f,Ko as g};
|
|
1
|
+
import{b as xr}from"./chunk-2X7AJBJY.js";import{j as vt,n as _e}from"./chunk-ERQAUCCL.js";import{$ as _,$b as Tr,Ac as gt,B as ut,C as ee,Cb as Dr,D as Pe,E as H,Ec as Le,F as ct,G as or,I as sr,Ic as ke,K as ar,L as x,M as ur,N as S,O as w,Pa as vr,Pc as Er,R as b,Sb as Mr,T as cr,U as P,V as lt,Va as pt,W as ht,Wa as j,X as g,Xa as mr,Y as lr,_ as je,_b as Or,ab as yr,ac as Ur,b as er,ba as Ne,c as tr,cb as Rr,db as Sr,e as it,f as ot,fa as dt,fb as $e,g as V,ga as hr,h as M,ha as dr,ia as fr,j as k,ja as pr,jb as Cr,k as O,ka as te,kb as wr,l as d,m as de,mb as br,n as rr,nb as Ir,o as nr,p as m,pa as gr,q as xe,qa as ft,qb as Ar,r as T,s as st,t as ir,u as at,w as X,y as J,z as fe}from"./chunk-RY7J7BHG.js";import{a as l,b as I}from"./chunk-7CGTOI24.js";var p="primary",Oe=Symbol("RouteTitle"),Ct=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 ae(t){return new Ct(t)}function yn(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 o=0;o<n.length;o++){let s=n[o],u=t[o];if(s[0]===":")i[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function Rn(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!L(t[e],r[e]))return!1;return!0}function L(t,r){let e=t?wt(t):void 0,n=r?wt(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!qr(t[i],r[i]))return!1;return!0}function wt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function qr(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function Br(t){return t.length>0?t[t.length-1]:null}function W(t){return rr(t)?t:wr(t)?O(Promise.resolve(t)):d(t)}var Sn={exact:Hr,subset:Wr},Vr={exact:Cn,subset:wn,ignored:()=>!0};function Pr(t,r,e){return Sn[e.paths](t.root,r.root,e.matrixParams)&&Vr[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Cn(t,r){return L(t,r)}function Hr(t,r,e){if(!Q(t.segments,r.segments)||!qe(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!Hr(t.children[n],r.children[n],e))return!1;return!0}function wn(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>qr(t[e],r[e]))}function Wr(t,r,e){return Gr(t,r,r.segments,e)}function Gr(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!Q(i,e)||r.hasChildren()||!qe(i,e,n))}else if(t.segments.length===e.length){if(!Q(t.segments,e)||!qe(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!Wr(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Q(t.segments,i)||!qe(t.segments,i,n)||!t.children[p]?!1:Gr(t.children[p],r,o,n)}}function qe(t,r,e){return r.every((n,i)=>Vr[e](t[i].parameters,n.parameters))}var F=class{root;queryParams;fragment;_queryParamMap;constructor(r=new v([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){return An.serialize(this)}},v=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 Be(this)}},G=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=ae(this.parameters),this._parameterMap}toString(){return Kr(this)}};function bn(t,r){return Q(t,r)&&t.every((e,n)=>L(e.parameters,r[n].parameters))}function Q(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function In(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var Qt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>new Re,providedIn:"root"})}return t})(),Re=class{parse(r){let e=new It(r);return new F(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${pe(r.root,!0)}`,n=On(r.queryParams),i=typeof r.fragment=="string"?`#${Dn(r.fragment)}`:"";return`${e}${n}${i}`}},An=new Re;function Be(t){return t.segments.map(r=>Kr(r)).join("/")}function pe(t,r){if(!t.hasChildren())return Be(t);if(r){let e=t.children[p]?pe(t.children[p],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${pe(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=In(t,(n,i)=>i===p?[pe(t.children[p],!1)]:[`${i}:${pe(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${Be(t)}/${e[0]}`:`${Be(t)}/(${e.join("//")})`}}function Qr(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ze(t){return Qr(t).replace(/%3B/gi,";")}function Dn(t){return encodeURI(t)}function bt(t){return Qr(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ve(t){return decodeURIComponent(t)}function jr(t){return Ve(t.replace(/\+/g,"%20"))}function Kr(t){return`${bt(t.path)}${Mn(t.parameters)}`}function Mn(t){return Object.entries(t).map(([r,e])=>`;${bt(r)}=${bt(e)}`).join("")}function On(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 Tn=/^[^\/()?;#]+/;function mt(t){let r=t.match(Tn);return r?r[0]:""}var Un=/^[^\/()?;=#]+/;function En(t){let r=t.match(Un);return r?r[0]:""}var xn=/^[^=?&#]+/;function Pn(t){let r=t.match(xn);return r?r[0]:""}var jn=/^[^&#]+/;function Nn(t){let r=t.match(jn);return r?r[0]:""}var It=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let 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[p]=new v(r,e)),n}parseSegment(){let r=mt(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new G(Ve(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=En(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=mt(this.remaining);i&&(n=i,this.capture(n))}r[Ve(e)]=Ve(n)}parseQueryParam(r){let e=Pn(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=Nn(this.remaining);s&&(n=s,this.capture(n))}let i=jr(e),o=jr(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=mt(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new v([],s),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 w(4011,!1)}};function Zr(t){return t.segments.length>0?new v([],{[p]:t}):t}function Yr(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=Yr(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))r[s]=u;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new v(t.segments,r);return $n(e)}function $n(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new v(t.segments.concat(r.segments),r.children)}return t}function K(t){return t instanceof F}function Ln(t,r,e=null,n=null){let i=Xr(t);return Jr(i,r,e,n)}function Xr(t){let r;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new v(o.url,s);return o===t&&(r=u),u}let n=e(t.root),i=Zr(n);return r??i}function Jr(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return yt(i,i,i,e,n);let o=kn(r);if(o.toRoot())return yt(i,i,new v([],{}),e,n);let s=_n(o,i,t),u=s.processChildren?ve(s.segmentGroup,s.index,o.commands):tn(s.segmentGroup,s.index,o.commands);return yt(i,s.segmentGroup,u,e,n)}function He(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Se(t){return typeof t=="object"&&t!=null&&t.outlets}function yt(t,r,e,n,i){let o={};n&&Object.entries(n).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(h=>`${h}`):`${c}`});let s;t===r?s=e:s=en(t,r,e);let u=Zr(Yr(s));return new F(u,o,i)}function en(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=en(o,r,e)}),new v(t.segments,n)}var We=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&He(n[0]))throw new w(4003,!1);let i=n.find(Se);if(i&&i!==Br(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function kn(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new We(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new We(e,r,n)}var ie=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function _n(t,r,e){if(t.isAbsolute)return new ie(r,!0,0);if(!e)return new ie(r,!1,NaN);if(e.parent===null)return new ie(e,!0,0);let n=He(t.commands[0])?0:1,i=e.segments.length-1+n;return zn(e,i,t.numberOfDoubleDots)}function zn(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new ie(n,!1,i-o)}function Fn(t){return Se(t[0])?t[0].outlets:{[p]:t}}function tn(t,r,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return ve(t,r,e);let n=qn(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,n.pathIndex),{});return o.children[p]=new v(t.segments.slice(n.pathIndex),t.children),ve(o,0,i)}else return n.match&&i.length===0?new v(t.segments,{}):n.match&&!t.hasChildren()?At(t,r,e):n.match?ve(t,0,i):At(t,r,e)}function ve(t,r,e){if(e.length===0)return new v(t.segments,{});{let n=Fn(e),i={};if(Object.keys(n).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ve(t.children[p],r,e);return new v(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=tn(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function qn(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],u=e[n];if(Se(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(!$r(a,c,s))return o;n+=2}else{if(!$r(a,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function At(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(Se(o)){let a=Bn(o.outlets);return new v(n,a)}if(i===0&&He(e[0])){let a=t.segments[r];n.push(new G(a.path,Nr(e[0]))),i++;continue}let s=Se(o)?o.outlets[p]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&He(u)?(n.push(new G(s,Nr(u))),i+=2):(n.push(new G(s,{})),i++)}return new v(n,{})}function Bn(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=At(new v([],{}),0,n))}),r}function Nr(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function $r(t,r,e){return t==e.path&&L(r,e.parameters)}var me="imperative",R=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}(R||{}),U=class{id;url;constructor(r,e){this.id=r,this.url=e}},Ce=class extends U{type=R.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}')`}},q=class extends U{urlAfterRedirects;type=R.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},D=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(D||{}),Dt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Dt||{}),z=class extends U{reason;code;type=R.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Z=class extends U{reason;code;type=R.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},we=class extends U{error;target;type=R.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})`}},Ge=class extends U{urlAfterRedirects;state;type=R.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})`}},Mt=class extends U{urlAfterRedirects;state;type=R.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})`}},Ot=class extends U{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Tt=class extends U{urlAfterRedirects;state;type=R.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})`}},Ut=class extends U{urlAfterRedirects;state;type=R.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Et=class{route;type=R.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},xt=class{route;type=R.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Pt=class{snapshot;type=R.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jt=class{snapshot;type=R.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nt=class{snapshot;type=R.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$t=class{snapshot;type=R.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var be=class{},ue=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Vn(t,r){return t.providers&&!t._injector&&(t._injector=Rr(t.providers,r,`Route: ${t.path}`)),t._injector??r}function N(t){return t.outlet||p}function Hn(t,r){let e=t.filter(n=>N(n)===r);return e.push(...t.filter(n=>N(n)!==r)),e}function Te(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Lt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Te(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new et(this.rootInjector)}},et=(()=>{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 Lt(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(ht(je))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qe=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=_t(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return _t(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 _t(t,r){if(t===r.value)return[r];for(let e of r.children){let n=_t(t,e);if(n.length)return n.unshift(r),n}return[]}var A=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function ne(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var Ke=class extends Qe{snapshot;constructor(r,e){super(r),this.snapshot=e,Kt(this,r)}toString(){return this.snapshot.toString()}};function rn(t){let r=Wn(t),e=new M([new G("",{})]),n=new M({}),i=new M({}),o=new M({}),s=new M(""),u=new Y(e,n,o,s,i,p,t,r.root);return u.snapshot=r.root,new Ke(new A(u,[]),r)}function Wn(t){let r={},e={},n={},i="",o=new oe([],r,n,i,e,p,t,null,{});return new Ye("",new A(o,[]))}var Y=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,u,a){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[Oe]))??d(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(m(r=>ae(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(r=>ae(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ze(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:l(l({},r.params),t.params),data:l(l({},r.data),t.data),resolve:l(l(l(l({},t.data),r.data),i?.data),t._resolvedData)}:n={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&on(i)&&(n.resolve[Oe]=i.title),n}var oe=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Oe]}constructor(r,e,n,i,o,s,u,a,c){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ae(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae(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}')`}},Ye=class extends Qe{url;constructor(r,e){super(e),this.url=r,Kt(this,e)}toString(){return nn(this._root)}};function Kt(t,r){r.value._routerState=t,r.children.forEach(e=>Kt(t,e))}function nn(t){let r=t.children.length>0?` { ${t.children.map(nn).join(", ")} } `:"";return`${t.value}${r}`}function Rt(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,L(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),L(r.params,e.params)||t.paramsSubject.next(e.params),Rn(r.url,e.url)||t.urlSubject.next(e.url),L(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function zt(t,r){let e=L(t.params,r.params)&&bn(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||zt(t.parent,r.parent))}function on(t){return typeof t.title=="string"||t.title===null}var Gn=new P(""),Qn=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new te;deactivateEvents=new te;attachEvents=new te;detachEvents=new te;routerOutletData=gr(void 0);parentContexts=g(et);location=g(mr);changeDetector=g(Le);inputBinder=g(tt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new Ft(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ne]})}return t})(),Ft=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===Y?this.route:r===et?this.childContexts:r===Gn?this.outletData:this.parent.get(r,e)}},tt=new P(""),Lr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=xe([n.queryParams,n.params,n.data]).pipe(x(([o,s,u],a)=>(u=l(l(l({},o),s),u),a===0?d(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=Er(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of s.inputs)e.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})();function Kn(t,r,e){let n=Ie(t,r._root,e?e._root:void 0);return new Ke(n,r)}function Ie(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Zn(t,r,e);return new A(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(u=>Ie(t,u)),s}}let n=Yn(r.value),i=r.children.map(o=>Ie(t,o));return new A(n,i)}}function Zn(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Ie(t,n,i);return Ie(t,n)})}function Yn(t){return new Y(new M(t.url),new M(t.params),new M(t.queryParams),new M(t.fragment),new M(t.data),t.outlet,t.component,t)}var Ae=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},sn="ngNavigationCancelingError";function Xe(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=K(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=an(!1,D.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function an(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[sn]=!0,e.cancellationCode=r,e}function Xn(t){return un(t)&&K(t.url)}function un(t){return!!t&&t[sn]}var Jn=(t,r,e,n)=>m(i=>(new qt(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),qt=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),Rt(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ne(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ne(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:u})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ne(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=ne(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new $t(o.value.snapshot))}),r.children.length&&this.forwardEvent(new jt(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(Rt(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Rt(u.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Je=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},se=class{component;route;constructor(r,e){this.component=r,this.route=e}};function ei(t,r,e){let n=t._root,i=r?r._root:null;return ge(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 le(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!cr(t)?t:r.get(t):n}function ge(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ne(r);return t.children.forEach(s=>{ri(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>ye(u,e.getContext(s),i)),i}function ri(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=ni(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new Je(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ge(t,r,u?u.children:null,n,i):ge(t,r,e,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new se(u.outlet.component,s))}else s&&ye(r,u,i),i.canActivateChecks.push(new Je(n)),o.component?ge(t,null,u?u.children:null,n,i):ge(t,null,e,n,i);return i}function ni(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!Q(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Q(t.url,r.url)||!L(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zt(t,r)||!L(t.queryParams,r.queryParams);case"paramsChange":default:return!zt(t,r)}}function ye(t,r,e){let n=ne(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?ye(s,r.children.getContext(o),e):ye(s,null,e):ye(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new se(r.outlet.component,i)):e.canDeactivateChecks.push(new se(null,i)):e.canDeactivateChecks.push(new se(null,i))}function Ue(t){return typeof t=="function"}function ii(t){return typeof t=="boolean"}function oi(t){return t&&Ue(t.canLoad)}function si(t){return t&&Ue(t.canActivate)}function ai(t){return t&&Ue(t.canActivateChild)}function ui(t){return t&&Ue(t.canDeactivate)}function ci(t){return t&&Ue(t.canMatch)}function cn(t){return t instanceof nr||t?.name==="EmptyError"}var Fe=Symbol("INITIAL_VALUE");function ce(){return x(t=>xe(t.map(r=>r.pipe(ee(1),ar(Fe)))).pipe(m(r=>{for(let e of r)if(e!==!0){if(e===Fe)return Fe;if(e===!1||li(e))return e}return!0}),X(r=>r!==Fe),ee(1)))}function li(t){return K(t)||t instanceof Ae}function hi(t,r){return T(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?d(I(l({},e),{guardsResult:!0})):di(s,n,i,t).pipe(T(u=>u&&ii(u)?fi(n,o,t,r):d(u)),m(u=>I(l({},e),{guardsResult:u})))})}function di(t,r,e,n){return O(t).pipe(T(i=>yi(i.component,i.route,e,r,n)),H(i=>i!==!0,!0))}function fi(t,r,e,n){return O(r).pipe(fe(i=>ir(gi(i.route.parent,n),pi(i.route,n),mi(t,i.path,e),vi(t,i.route,e))),H(i=>i!==!0,!0))}function pi(t,r){return t!==null&&r&&r(new Nt(t)),d(!0)}function gi(t,r){return t!==null&&r&&r(new Pt(t)),d(!0)}function vi(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return d(!0);let i=n.map(o=>at(()=>{let s=Te(r)??e,u=le(o,s),a=si(u)?u.canActivate(r,t):_(s,()=>u(r,t));return W(a).pipe(H())}));return d(i).pipe(ce())}function mi(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>ti(s)).filter(s=>s!==null).map(s=>at(()=>{let u=s.guards.map(a=>{let c=Te(s.node)??e,h=le(a,c),f=ai(h)?h.canActivateChild(n,t):_(c,()=>h(n,t));return W(f).pipe(H())});return d(u).pipe(ce())}));return d(o).pipe(ce())}function yi(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return d(!0);let s=o.map(u=>{let a=Te(r)??i,c=le(u,a),h=ui(c)?c.canDeactivate(t,r,e,n):_(a,()=>c(t,r,e,n));return W(h).pipe(H())});return d(s).pipe(ce())}function Ri(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return d(!0);let o=i.map(s=>{let u=le(s,t),a=oi(u)?u.canLoad(r,e):_(t,()=>u(r,e));return W(a)});return d(o).pipe(ce(),ln(n))}function ln(t){return tr(S(r=>{if(typeof r!="boolean")throw Xe(t,r)}),m(r=>r===!0))}function Si(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return d(!0);let o=i.map(s=>{let u=le(s,t),a=ci(u)?u.canMatch(r,e):_(t,()=>u(r,e));return W(a)});return d(o).pipe(ce(),ln(n))}var De=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},Me=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function re(t){return de(new De(t))}function Ci(t){return de(new w(4e3,!1))}function wi(t){return de(an(!1,D.GuardRejected))}var Bt=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 d(n);if(i.numberOfChildren>1||!i.children[p])return Ci(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,e,n,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:h,url:f,outlet:y,params:$,data:C,title:B}=i,E=_(o,()=>u({params:$,data:C,queryParams:a,fragment:c,routeConfig:h,url:f,outlet:y,title:B}));if(E instanceof F)throw new Me(E);e=E}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new Me(s);return s}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new F(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);n[i]=e[u]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(r,a,n,i)}),new v(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},Vt={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function bi(t,r,e,n,i){let o=hn(t,r,e);return o.matched?(n=Vn(r,n),Si(n,r,e,i).pipe(m(s=>s===!0?o:l({},Vt)))):d(o)}function hn(t,r,e){if(r.path==="**")return Ii(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},Vt):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||yn)(e,t,r);if(!i)return l({},Vt);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Ii(t){return{matched:!0,parameters:t.length>0?Br(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function kr(t,r,e,n){return e.length>0&&Mi(t,e,n)?{segmentGroup:new v(r,Di(n,new v(e,t.children))),slicedSegments:[]}:e.length===0&&Oi(t,e,n)?{segmentGroup:new v(t.segments,Ai(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function Ai(t,r,e,n){let i={};for(let o of e)if(rt(t,r,o)&&!n[N(o)]){let s=new v([],{});i[N(o)]=s}return l(l({},n),i)}function Di(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&N(n)!==p){let i=new v([],{});e[N(n)]=i}return e}function Mi(t,r,e){return e.some(n=>rt(t,r,n)&&N(n)!==p)}function Oi(t,r,e){return e.some(n=>rt(t,r,n))}function rt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ti(t,r,e){return r.length===0&&!t.children[e]}var Ht=class{};function Ui(t,r,e,n,i,o,s="emptyOnly"){return new Wt(t,r,e,n,i,s,o).recognize()}var Ei=31,Wt=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,u){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.applyRedirects=new Bt(this.urlSerializer,this.urlTree)}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}recognize(){let r=kr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(m(({children:e,rootSnapshot:n})=>{let i=new A(n,e),o=new Ye("",i),s=Ln(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new oe([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,e).pipe(m(n=>({children:n,rootSnapshot:e})),J(n=>{if(n instanceof Me)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof De?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,o):this.processSegment(r,e,n,n.segments,i,!0,o).pipe(m(s=>s instanceof A?[s]:[]))}processChildren(r,e,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return O(o).pipe(fe(s=>{let u=n.children[s],a=Hn(e,s);return this.processSegmentGroup(r,a,u,s,i)}),sr((s,u)=>(s.push(...u),s)),ut(null),or(),T(s=>{if(s===null)return re(n);let u=dn(s);return xi(u),d(u)}))}processSegment(r,e,n,i,o,s,u){return O(e).pipe(fe(a=>this.processSegmentAgainstRoute(a._injector??r,e,a,n,i,o,s,u).pipe(J(c=>{if(c instanceof De)return d(null);throw c}))),H(a=>!!a),J(a=>{if(cn(a))return Ti(n,i,o)?d(new Ht):re(n);throw a}))}processSegmentAgainstRoute(r,e,n,i,o,s,u,a){return N(n)!==s&&(s===p||!rt(i,o,n))?re(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,o,s,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,a):re(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,u){let{matched:a,parameters:c,consumedSegments:h,positionalParamSegments:f,remainingSegments:y}=hn(e,i,o);if(!a)return re(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ei&&(this.allowRedirects=!1));let $=new oe(o,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,_r(i),N(i),i.component??i._loadedComponent??null,i,zr(i)),C=Ze($,u,this.paramsInheritanceStrategy);$.params=Object.freeze(C.params),$.data=Object.freeze(C.data);let B=this.applyRedirects.applyRedirectCommands(h,i.redirectTo,f,$,r);return this.applyRedirects.lineralizeSegments(i,B).pipe(T(E=>this.processSegment(r,n,e,E.concat(y),s,!1,u)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let u=bi(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),u.pipe(x(a=>a.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(x(({routes:c})=>{let h=n._loadedInjector??r,{parameters:f,consumedSegments:y,remainingSegments:$}=a,C=new oe(y,f,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,_r(n),N(n),n.component??n._loadedComponent??null,n,zr(n)),B=Ze(C,s,this.paramsInheritanceStrategy);C.params=Object.freeze(B.params),C.data=Object.freeze(B.data);let{segmentGroup:E,slicedSegments:he}=kr(e,y,$,c);if(he.length===0&&E.hasChildren())return this.processChildren(h,c,E,C).pipe(m(Ee=>new A(C,Ee)));if(c.length===0&&he.length===0)return d(new A(C,[]));let mn=N(n)===o;return this.processSegment(h,c,E,he,mn?p:o,!0,C).pipe(m(Ee=>new A(C,Ee instanceof A?[Ee]:[])))}))):re(e)))}getChildConfig(r,e,n){return e.children?d({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?d({routes:e._loadedRoutes,injector:e._loadedInjector}):Ri(r,e,n,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(r,e).pipe(S(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):wi(e))):d({routes:[],injector:r})}};function xi(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function Pi(t){let r=t.value.routeConfig;return r&&r.path===""}function dn(t){let r=[],e=new Set;for(let n of t){if(!Pi(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=dn(n.children);r.push(new A(n.value,i))}return r.filter(n=>!e.has(n))}function _r(t){return t.data||{}}function zr(t){return t.resolve||{}}function ji(t,r,e,n,i,o){return T(s=>Ui(t,r,e,n,s.extractedUrl,i,o).pipe(m(({state:u,tree:a})=>I(l({},s),{targetSnapshot:u,urlAfterRedirects:a}))))}function Ni(t,r){return T(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return d(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let c of fn(a))s.add(c);let u=0;return O(s).pipe(fe(a=>o.has(a)?$i(a,n,t,r):(a.data=Ze(a,a.parent,t).resolve,d(void 0))),S(()=>u++),ct(1),T(a=>u===s.size?d(e):k))})}function fn(t){let r=t.children.map(e=>fn(e)).flat();return[t,...r]}function $i(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!on(i)&&(o[Oe]=i.title),Li(o,t,r,n).pipe(m(s=>(t._resolvedData=s,t.data=Ze(t,t.parent,e).resolve,null)))}function Li(t,r,e,n){let i=wt(t);if(i.length===0)return d({});let o={};return O(i).pipe(T(s=>ki(t[s],r,e,n).pipe(H(),S(u=>{if(u instanceof Ae)throw Xe(new Re,u);o[s]=u}))),ct(1),m(()=>o),J(s=>cn(s)?k:de(s)))}function ki(t,r,e,n){let i=Te(r)??n,o=le(t,i),s=o.resolve?o.resolve(r,e):_(i,()=>o(r,e));return W(s)}function St(t){return x(r=>{let e=t(r);return e?O(e).pipe(m(()=>r)):d(r)})}var pn=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(e){return e.data[Oe]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(_i),providedIn:"root"})}return t})(),_i=(()=>{class t extends pn{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)(ht(xr))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Zt=new P("",{providedIn:"root",factory:()=>({})}),zi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Sr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&Dr(0,"router-outlet")},dependencies:[Qn],encapsulation:2})}return t})();function Yt(t){let r=t.children&&t.children.map(Yt),e=r?I(l({},t),{children:r}):l({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=zi),e}var Xt=new P(""),Fi=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(gt);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return d(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=W(e.loadComponent()).pipe(m(gn),S(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Pe(()=>{this.componentLoaders.delete(e)})),i=new ot(n,()=>new V).pipe(it());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return d({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=qi(n,this.compiler,e,this.onLoadEndListener).pipe(Pe(()=>{this.childrenLoaders.delete(n)})),s=new ot(o,()=>new V).pipe(it());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qi(t,r,e,n){return W(t.loadChildren()).pipe(m(gn),T(i=>i instanceof yr||Array.isArray(i)?d(i):O(r.compileModuleAsync(i))),m(i=>{n&&n(t);let o,s,u=!1;return Array.isArray(i)?(s=i,u=!0):(o=i.create(e).injector,s=o.get(Xt,[],{optional:!0,self:!0}).flat()),{routes:s.map(Yt),injector:o}}))}function Bi(t){return t&&typeof t=="object"&&"default"in t}function gn(t){return Bi(t)?t.default:t}var Jt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Vi),providedIn:"root"})}return t})(),Vi=(()=>{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=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hi=new P("");var Wi=new P(""),Gi=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new V;transitionAbortSubject=new V;configLoader=g(Fi);environmentInjector=g(je);destroyRef=g(fr);urlSerializer=g(Qt);rootContexts=g(et);location=g(_e);inputBindingEnabled=g(tt,{optional:!0})!==null;titleStrategy=g(pn);options=g(Zt,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(Jt);createViewTransition=g(Hi,{optional:!0});navigationErrorHandler=g(Wi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>d(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Et(i)),n=i=>this.events.next(new xt(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(I(l(l({},this.transitions.value),e),{id:n}))}setupNavigations(e,n,i){return this.transitions=new M({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:me,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),m(o=>I(l({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),x(o=>{let s=!1,u=!1;return d(o).pipe(x(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",D.SupersededByNewNavigation),k;this.currentTransition=o,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?I(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&h!=="reload"){let f="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.rawUrl),f,Dt.IgnoredSameUrlNavigation)),a.resolve(!1),k}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return d(a).pipe(x(f=>{let y=this.transitions?.getValue();return this.events.next(new Ce(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),y!==this.transitions?.getValue()?k:Promise.resolve(f)}),ji(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),S(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=I(l({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let y=new Ge(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:y,source:$,restoredState:C,extras:B}=a,E=new Ce(f,this.urlSerializer.serialize(y),$,C);this.events.next(E);let he=rn(this.rootComponentType).snapshot;return this.currentTransition=o=I(l({},a),{targetSnapshot:he,urlAfterRedirects:y,extras:I(l({},B),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,d(o)}else{let f="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.extractedUrl),f,Dt.IgnoredByUrlHandlingStrategy)),a.resolve(!1),k}}),S(a=>{let c=new Mt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=o=I(l({},a),{guards:ei(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),hi(this.environmentInjector,a=>this.events.next(a)),S(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Xe(this.urlSerializer,a.guardsResult);let c=new Ot(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,"",D.GuardRejected),!1)),St(a=>{if(a.guards.canActivateChecks.length)return d(a).pipe(S(c=>{let h=new Tt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),x(c=>{let h=!1;return d(c).pipe(Ni(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",D.NoDataFromResolver)}}))}),S(c=>{let h=new Ut(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),St(a=>{let c=h=>{let f=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(h.routeConfig).pipe(S(y=>{h.component=y}),m(()=>{})));for(let y of h.children)f.push(...c(y));return f};return xe(c(a.targetSnapshot.root)).pipe(ut(null),ee(1))}),St(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:a,targetSnapshot:c}=o,h=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return h?O(h).pipe(m(()=>o)):d(o)}),m(a=>{let c=Kn(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=I(l({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),S(()=>{this.events.next(new be)}),Jn(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ee(1),S({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),ur(this.transitionAbortSubject.pipe(S(a=>{throw a}))),Pe(()=>{!s&&!u&&this.cancelNavigationTransition(o,"",D.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(this.destroyed)return o.resolve(!1),k;if(u=!0,un(a))this.events.next(new z(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),Xn(a)?this.events.next(new ue(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let c=new we(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let h=_(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(h instanceof Ae){let{message:f,cancellationCode:y}=Xe(this.urlSerializer,h);this.events.next(new z(o.id,this.urlSerializer.serialize(o.extractedUrl),f,y)),this.events.next(new ue(h.redirectTo,h.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(h){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(h)}}return k}))}))}cancelNavigationTransition(e,n,i){let o=new z(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qi(t){return t!==me}var Ki=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Zi),providedIn:"root"})}return t})(),Gt=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Zi=(()=>{class t extends Gt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=dt(t)))(i||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Yi),providedIn:"root"})}return t})(),Yi=(()=>{class t extends vn{location=g(_e);urlSerializer=g(Qt);options=g(Zt,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=g(Jt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new F;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=rn(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){if(e instanceof Ce)this.stateMemento=this.createStateMemento();else if(e instanceof Z)this.rawUrlTree=n.initialUrl;else if(e instanceof Ge){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??i,n)}}else e instanceof be?(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(n.targetBrowserUrl??this.rawUrlTree,n)):e instanceof z&&(e.code===D.GuardRejected||e.code===D.NoDataFromResolver)?this.restoreHistory(n):e instanceof we?this.restoreHistory(n,!0):e instanceof q&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let i=e instanceof F?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let o=this.browserPageId,s=l(l({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(i,"",s)}else{let o=l(l({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??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=dt(t)))(i||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xi(t,r){t.events.pipe(X(e=>e instanceof q||e instanceof z||e instanceof we||e instanceof Z),m(e=>e instanceof q||e instanceof Z?0:(e instanceof z?e.code===D.Redirect||e.code===D.SupersededByNewNavigation:!1)?2:1),X(e=>e!==2),ee(1)).subscribe(()=>{r()})}var Ji={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},nt=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(Cr);stateManager=g(vn);options=g(Zt,{optional:!0})||{};pendingTasks=g(pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(Gi);urlSerializer=g(Qt);location=g(_e);urlHandlingStrategy=g(Jt);_events=new V;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(Ki);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(Xt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(tt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new er;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof z&&n.code!==D.Redirect&&n.code!==D.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof q)this.navigated=!0;else if(n instanceof ue){let s=n.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),a=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Qi(i.source)},s);this.scheduleNavigation(u,me,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ro(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),me,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",n)},0)})}navigateToSyncWithBrowser(e,n,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=l({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,n,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Yt),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(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:a}=n,c=a?this.currentUrlTree.fragment:s,h=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":h=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let y=i?i.snapshot:this.routerState.snapshot.root;f=Xr(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Jr(f,e,h,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=K(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,me,null,n)}navigate(e,n={skipLocationChange:!1}){return to(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=l({},Ji):n===!1?i=l({},eo):i=n,K(e))return Pr(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Pr(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((f,y)=>{u=f,a=y});let h=this.pendingTasks.add();return Xi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function to(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new w(4008,!1)}function ro(t){return!(t instanceof be)&&!(t instanceof ue)}var Fr=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new V;constructor(e,n,i,o,s,u){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof q&&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)):(K(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:vr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:K(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)(j(nt),j(Y),hr("tabindex"),j(pt),j(ft),j(vt))};static \u0275dir=$e({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Mr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Ar("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:[Ne]})}return t})(),Go=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new te;constructor(e,n,i,o,s){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof q&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(st()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(e).pipe(st()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=no(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,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)(j(nt),j(ft),j(pt),j(Le),j(Fr,8))};static \u0275dir=$e({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&Or(o,Fr,5),n&2){let s;Tr(s=Ur())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ne]})}return t})();function no(t){return!!t.paths}var io=new P("");function Qo(t,...r){return lr([{provide:Xt,multi:!0,useValue:t},[],{provide:Y,useFactory:oo,deps:[nt]},{provide:br,multi:!0,useFactory:ao},r.map(e=>e.\u0275providers)])}function oo(t){return t.routerState.root}function so(t,r){return{\u0275kind:t,\u0275providers:r}}function ao(){let t=g(dr);return r=>{let e=t.get(Ir);if(r!==e.components[0])return;let n=t.get(nt),i=t.get(uo);t.get(co)===1&&n.initialNavigation(),t.get(lo,null,lt.Optional)?.setUpPreloading(),t.get(io,null,lt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var uo=new P("",{factory:()=>new V}),co=new P("",{providedIn:"root",factory:()=>1});var lo=new P("");function Ko(){return so(8,[Lr,{provide:tt,useExisting:Lr}])}export{q as a,Y as b,Qn as c,nt as d,Fr as e,Go as f,Qo as g,Ko as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as $}from"./chunk-
|
|
1
|
+
import{a as $}from"./chunk-F2L6ATMF.js";import{a as R}from"./chunk-5CB3EQEQ.js";import"./chunk-TGK3F3XP.js";import"./chunk-TDXJNPMY.js";import"./chunk-ZDCJ72UD.js";import"./chunk-AKURWKKM.js";import"./chunk-BSJ6OMWB.js";import"./chunk-W4U2FPZX.js";import{b as A,e as N}from"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import{a as B,g as O}from"./chunk-3WHFK5U5.js";import{b as k}from"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import"./chunk-QZEFXB74.js";import{Ab as F,Bb as a,Cb as r,Lc as M,Mb as _,Nb as c,Ob as u,Ra as i,Rb as T,Sb as I,X as m,db as C,fc as E,hc as L,ib as p,sa as l,wb as s,xb as f,yb as S,zb as g}from"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as a,d as b}from"./chunk-YQ7U7A2N.js";import"./chunk-J242X4NN.js";import"./chunk-F2L6ATMF.js";import"./chunk-Z2LU6ASK.js";import"./chunk-BCSA6WFY.js";import"./chunk-TGK3F3XP.js";import"./chunk-TDXJNPMY.js";import"./chunk-ZDCJ72UD.js";import"./chunk-AKURWKKM.js";import"./chunk-BSJ6OMWB.js";import"./chunk-W4U2FPZX.js";import"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import"./chunk-3WHFK5U5.js";import"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";export{a as createEncryptionForm,b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as _e}from"./chunk-3CRLUTKZ.js";import"./chunk-J242X4NN.js";import"./chunk-DNHLTHLR.js";import{a as oe}from"./chunk-F2L6ATMF.js";import"./chunk-KA2H467C.js";import"./chunk-Z2LU6ASK.js";import{a as Nt}from"./chunk-FXYF7V3T.js";import{a as J}from"./chunk-BCSA6WFY.js";import{a as Et}from"./chunk-I5VNBLZK.js";import"./chunk-UNV7VK4Z.js";import{a as ft}from"./chunk-5CB3EQEQ.js";import"./chunk-TGK3F3XP.js";import"./chunk-TDXJNPMY.js";import"./chunk-ZDCJ72UD.js";import"./chunk-AKURWKKM.js";import{c as Y,e as ee,f as pt,h as te,i as St,l as gt,n as Tt,o as ut,q as mt,r as Ct,s as ne,t as ie}from"./chunk-BSJ6OMWB.js";import{a as ot}from"./chunk-W4U2FPZX.js";import"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import{a as j,b as K,g as Q,k as st,l as Z,p as rt,q as lt,r as at,s as _t,y as dt,z as ct}from"./chunk-3WHFK5U5.js";import{b as A}from"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import"./chunk-QZEFXB74.js";import{Ab as i,Bb as o,Cb as M,D as R,Gb as O,Lc as k,Mb as B,Mc as L,Nb as H,Oa as Ke,Ob as l,Pb as le,Qb as ae,R as U,Ra as a,Rb as Ye,Sb as S,Tb as p,Wb as et,X as u,Ya as Qe,c as je,ca as m,cc as tt,da as C,db as w,dc as nt,fc as I,gc as W,hc as q,ib as E,kc as y,l as $,lc as G,mc as v,ob as Ze,pb as Je,qc as it,rb as N,rc as D,sa as d,tb as f,wb as T,y as b}from"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";var F=class s{#e=u(A);#i=oe(this.#e.getApiV1Serversettings());#t=d(void 0);serverSettings=k(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:t=>{this.#t.set(t)}})}withRefresh(){return je(R(()=>this.refreshServerSettings()))}static \u0275fac=function(e){return new(e||s)};static \u0275prov=U({token:s,factory:s.\u0275fac,providedIn:"root"})};var Pt=["formRef"],Ot=()=>[import("./chunk-QQKVF4B4.js").then(s=>s.OptionsListComponent)],Rt=()=>["--no-encryption","--exclude-files-attributes","--skip-files-larger-than","dblock-size","no-encryption"];function It(s,t){s&1&&(i(0,"spk-alert",3),l(1,1),o())}function yt(s,t){if(s&1){let e=O();i(0,"app-options-list",5),v("optionsChange",function(r){m(e);let c=p();return G(c.settings,r)||(c.settings=r),C(r)}),o()}if(s&2){let e=p();y("options",e.settings),N("hasFreeTextSettings",!0)("hiddenOptions",D(3,Rt))}}var Gt=["Bytes","KB","MB","GB","TB","PB"],X=class s{#e=u(_e);#i=u(F);#t=u(A);formRef=Qe.required("formRef");optionsForm=this.#e.optionsForm;settings=this.#e.settings;isSubmitting=d(!1);isLoadingOptions=d(!0);saved=d(!1);sizeOptions=d(Gt);lastRecievedServerSettings=d({});serverSettingsEffect=L(()=>{let t=this.#i.serverSettings();if(t===void 0)return;this.lastRecievedServerSettings.set(t),this.isLoadingOptions.set(!0);let e=Object.entries(t);e.forEach(([n,r],c)=>{if(n.startsWith("--")){let h=n.replace("--","");this.settings.update(g=>(g.some(P=>P.Name===h)||g.push({Name:h,Value:r}),g))}c===e.length-1&&this.isLoadingOptions.set(!1)})});submit(){this.isSubmitting.set(!0);let t=this.settings(),e=this.lastRecievedServerSettings(),n=t.map(g=>g.Name),c=Object.keys(e).filter(g=>!n.includes(g.replace("--",""))),h=t.reduce((g,P)=>(g[`--${P.Name}`]=P.Value,g),{});c.forEach(g=>{h[g]=null}),this.#t.patchApiV1Serversettings({requestBody:h}).pipe(R(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.#i.refreshServerSettings(),this.saved.set(!0),setTimeout(()=>{this.saved.set(!1)},3e3)}})}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,n){e&1&&tt(n.formRef,Pt,5),e&2&&nt()},features:[it([_e])],decls:8,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPK_ICON: Save settings `;let e;return e=$localize`Settings saved`,[t,e,[1,"actions"],[1,"success"],["spk-button","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings","hiddenOptions"]]},template:function(e,n){e&1&&(i(0,"div",2),E(1,It,2,0,"spk-alert",3),i(2,"button",4),S("click",function(){return n.submit()}),B(3,0),M(4,"spk-icon"),H(),o()(),E(5,yt,1,4),Ze(6,5,Ot)),e&2&&(a(),T(n.saved()?1:-1),a(),f("loader",n.isSubmitting()),a(4),Je(!n.isLoadingOptions()))},dependencies:[ie,Q,j,K],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var x=class s{#e=u(A);#i=u(J);repeatRegisterTimer=null;state=d("unknown");claimUrl=d(null);registerUrl=d("");status=k(()=>{let t=this.state();return t==="enabled"?"Remote control is enabled but not connected":t==="connected"?"Remote control is connected":t==="registering"?"Registering machine...":t==="registeringfaulted"?"Registration failed":t==="registered"?"Registered, waiting for accept":t==="disabled"?"Remote control is configured but not enabled":t==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=L(()=>{let t=this.#i.systemInfo();t&&this.registerUrl.set(t.RemoteControlRegistrationUrl??"")});#t(t){t.RegistrationUrl&&this.claimUrl.set(t.RegistrationUrl),t.IsConnected?this.state.set("connected"):t.IsEnabled?this.state.set("enabled"):t.CanEnable?this.state.set("disabled"):t.IsRegisteringFaulted?this.state.set("registeringfaulted"):t.IsRegistering?t.RegistrationUrl!=null&&t.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let e=this.state();this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),e==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),t.IsRegistering&&t.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(t){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})}deleteRemoteControl(){let t=this;confirm("Are you sure you want to delete the remote control registration?")&&t.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>t.#t(e),error:e=>t.#n(e)})}static \u0275fac=function(e){return new(e||s)};static \u0275prov=U({token:s,factory:s.\u0275fac,providedIn:"root"})};function At(s,t){if(s&1){let e=O();i(0,"spk-form-field",10)(1,"input",11),v("ngModelChange",function(r){m(e);let c=p(2);return G(c.registerUrl,r)||(c.registerUrl=r),C(r)}),o()(),i(2,"button",12),S("click",function(){m(e);let r=p(2);return C(r.register())}),l(3,0),o()}if(s&2){let e=p(2);a(),y("ngModel",e.registerUrl)}}function $t(s,t){if(s&1&&(i(0,"div",8)(1,"label"),l(2,1),o(),i(3,"a",13),I(4),o()()),s&2){let e=p(2);a(3),et("href",e.claimUrl(),Ke),a(),W(e.claimUrl())}}function bt(s,t){s&1&&(i(0,"div",8)(1,"label"),l(2,2),o()())}function wt(s,t){if(s&1){let e=O();i(0,"button",12),S("click",function(){m(e);let r=p(2);return C(r.cancel())}),l(1,3),o()}}function kt(s,t){if(s&1){let e=O();i(0,"button",12),S("click",function(){m(e);let r=p(2);return C(r.disable())}),l(1,4),o()}}function Lt(s,t){if(s&1){let e=O();i(0,"button",12),S("click",function(){m(e);let r=p(2);return C(r.enable())}),l(1,5),o(),i(2,"button",14),S("click",function(){m(e);let r=p(2);return C(r.delete())}),l(3,6),o()}}function Ft(s,t){if(s&1&&(i(0,"div",7),E(1,At,4,1)(2,$t,5,2,"div",8)(3,bt,3,0,"div",8)(4,wt,2,0,"button",9)(5,kt,2,0,"button",9)(6,Lt,4,0),o()),s&2){let e=p();a(),T(e.state()==="inactive"?1:-1),a(),T(e.state()==="registered"?2:-1),a(),T(e.state()==="registering"?3:-1),a(),T(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),a(),T(e.state()==="connected"||e.state()==="enabled"?5:-1),a(),T(e.state()==="disabled"?6:-1)}}var re=class s{#e=u(x);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let r;r=$localize`Cancel registration`;let c;c=$localize`Disable remote control`;let h;h=$localize`Enable remote control`;let g;return g=$localize`Delete remote control setup`,[t,e,n,r,c,h,g,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","error",3,"click"]]},template:function(e,n){e&1&&E(0,Ft,7,6,"div",7),e&2&&T(n.state()!=="unknown"?0:-1)},dependencies:[ne,Y,ee,te,Z],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var ht=()=>({standalone:!0});function xt(s,t){s&1&&(i(0,"spk-icon",75),I(1,"check"),o())}function Dt(s,t){s&1&&(i(0,"spk-icon",76),I(1,"prohibit"),o())}function Xt(s,t){if(s&1){let e=O();i(0,"button",80),S("click",function(){m(e);let r=p(2);return C(r.updatePassphrase())}),l(1,37),o()}if(s&2){let e=p(2);f("loader",e.isUpdating())}}function zt(s,t){if(s&1){let e=O();i(0,"spk-tooltip",79)(1,"button",81),S("click",function(){m(e);let r=p(2);return C(r.updatePassphrase())}),l(2,38),o()()}if(s&2){let e=p(2);a(),f("loader",e.isUpdating()),N("disabled",!0)}}function Vt(s,t){if(s&1){let e=O();i(0,"spk-form-field")(1,"label",71),l(2,34),o(),i(3,"input",72),v("ngModelChange",function(r){m(e);let c=p();return G(c.passphrase,r)||(c.passphrase=r),C(r)}),o()(),i(4,"spk-form-field")(5,"label",73),l(6,35),o(),i(7,"input",74),v("ngModelChange",function(r){m(e);let c=p();return G(c.repeatPassphrase,r)||(c.repeatPassphrase=r),C(r)}),o(),E(8,xt,2,0,"spk-icon",75)(9,Dt,2,0,"spk-icon",76),o(),i(10,"div",52)(11,"button",77),S("click",function(){m(e);let r=p();return C(r.cancelPasswordChange())}),l(12,36),o(),E(13,Xt,2,2,"button",78)(14,zt,3,3,"spk-tooltip",79),o()}if(s&2){let e=p();a(3),y("ngModel",e.passphrase),a(4),N("disabled",e.passphrase().length===0),y("ngModel",e.repeatPassphrase),a(),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),a(3),f("loader",e.isUpdating()),a(2),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function Ut(s,t){s&1&&(i(0,"spk-icon",82),I(1,"check"),o())}function Bt(s,t){if(s&1){let e=O();i(0,"div",52)(1,"button",77),S("click",function(){m(e);let r=p();return C(r.openPassphraseForm())}),l(2,39),o(),E(3,Ut,2,0,"spk-icon",82),o()}if(s&2){let e=p();a(3),T(e.passwordUpdated()?3:-1)}}function Ht(s,t){if(s&1){let e=O();i(0,"spk-form-field")(1,"label",83),l(2,40),o(),i(3,"textarea",84),v("ngModelChange",function(r){m(e);let c=p();return G(c.allowedHostnames,r)||(c.allowedHostnames=r),C(r)}),o()(),i(4,"spk-alert",85),l(5,41),o(),i(6,"button",80),S("click",function(){m(e);let r=p();return C(r.updateAllowedHostnames())}),l(7,42),o()}if(s&2){let e=p();a(3),y("ngModel",e.allowedHostnames),a(3),f("loader",e.updatingAllowedHosts())}}function Wt(s,t){s&1&&M(0,"spk-progress-bar",57)}function qt(s,t){if(s&1&&I(0),s&2){let e,n=p();q(" ",(e=n.sysinfo())==null?null:e.ServerVersion," ")}}function jt(s,t){s&1&&M(0,"spk-progress-bar",57)}function Kt(s,t){if(s&1&&I(0),s&2){let e=t.$implicit;q(" ",e.label," ")}}function Qt(s,t){if(s&1&&I(0),s&2){let e=t.$implicit;q(" ",e.label," ")}}var z=new Ct,Zt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Jt=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],Yt=[{value:"id",label:$localize`Backup ID`},{value:"name",label:$localize`Backup name`},{value:"lastrun",label:$localize`Last run time`},{value:"nextrun",label:$localize`Next run time`},{value:"schedule",label:$localize`Is scheduled`},{value:"backend",label:$localize`Destination type`},{value:"sourcesize",label:$localize`Source size`},{value:"destinationsize",label:$localize`Destination size`},{value:"duration",label:$localize`Duration`},{value:"-id",label:$localize`Backup ID (decending)`},{value:"-name",label:$localize`Backup name (decending)`},{value:"-lastrun",label:$localize`Last run time (decending)`},{value:"-nextrun",label:$localize`Next run time (decending)`},{value:"-schedule",label:$localize`Is scheduled (decending)`},{value:"-backend",label:$localize`Destination type (decending)`},{value:"-sourcesize",label:$localize`Source size (decending)`},{value:"-destinationsize",label:$localize`Destination size (decending)`},{value:"-duration",label:$localize`Duration (decending)`}],de=class s{#e=u(Et);#i=u(J);#t=u(A);#n=u(F);#r=u(x);#o=u(ot);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=d("list");previousLang=this.#s;langCtrl=d(this.#s);sortOrderCtrl=d("");remoteControlStatus=this.#r.status;settingsForm=z.group({pauseSettings:z.group({time:z.control(0),timeType:z.control("s")}),usageStatistics:z.control("")});updatingChannel=d(!1);updateChannel=d("");prevSortOrder=d("");updatingSortOrder=d(!1);setNewChannel(t){let e=this.updateChannel();this.updateChannel.set(t),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":t}}).pipe(this.#n.withRefresh(),R(()=>this.updatingChannel.set(!1)),b(()=>(this.updateChannel.set(e),$(null)))).subscribe()}allowRemoteAccess=d(!1);allowedHostnames=d("");loadedAllowedHostnames=d("");updatingRemoteAccess=d(!1);updatingAllowedHosts=d(!1);updateRemoteAccess(){let t=this.allowRemoteAccess(),e=!t;this.allowRemoteAccess.set(e),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(this.#n.withRefresh(),R(()=>this.updatingRemoteAccess.set(!1)),b(()=>(this.allowRemoteAccess.set(t),$(null)))).subscribe()}updateAllowedHostnames(){let t=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(this.#n.withRefresh(),R(()=>this.updatingAllowedHosts.set(!1)),b(()=>(this.allowedHostnames.set(t),$(null)))).subscribe()}updateSortOrder(t){let n=t[0]?.value??"";if(!n||n===""||n===this.prevSortOrder())return;let r=this.prevSortOrder();this.updatingSortOrder.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"backup-list-sort-order":n}}).pipe(this.#n.withRefresh(),R(()=>this.updatingSortOrder.set(!1)),b(()=>(this.sortOrderCtrl.set(r),$(null)))).subscribe()}updatingDisableTrayIconLogin=d(!1);disableTrayIconLogin=d(!1);saveDisableTrayIconLogin(){let t=this.disableTrayIconLogin(),e=!t;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(this.#n.withRefresh(),R(()=>this.updatingDisableTrayIconLogin.set(!1)),b(()=>(this.disableTrayIconLogin.set(t),$(null)))).subscribe()}showPassphraseForm=d(!1);isUpdating=d(!1);passphrase=d("");repeatPassphrase=d("");passwordUpdated=d(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(this.#n.withRefresh(),R(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}get pauseSettings(){return this.settingsForm.controls.pauseSettings}sortOptions=d(Yt);languageOptions=d(Nt);usageStatisticsOptions=d(Jt);timeTypeOptions=d(Zt);timeTypeSignal=oe(this.pauseSettings.controls.timeType.valueChanges);timeRange=k(()=>this.timeTypeSignal()==="h"?[0,24]:[0,60]);updateLocale(t){let n=t[0]?.value??"";!n||n===""||n===this.previousLang||(this.#o.setItem("locale",n),window.location.reload())}submit(){let t=this.pauseSettings.value,e=`${t.time}${t.timeType}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e}}).pipe(this.#n.withRefresh()).subscribe()}serverSettingsEffect=L(()=>{let t=this.#n.serverSettings();if(t===void 0)return;let e=t["startup-delay"],n=e.slice(-1),r=e.slice(0,-1),c=["s","m","h"];this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"]),this.prevSortOrder.set(t["backup-list-sort-order"]),this.sortOrderCtrl.set(this.prevSortOrder()),console.log(t["usage-reporter-level"]),queueMicrotask(()=>{this.settingsForm.patchValue({pauseSettings:{time:parseInt(r==""?"0":r),timeType:c.includes(n)?n:"s"},usageStatistics:t["usage-reporter-level"]??""})})});setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-settings"]],decls:144,vars:46,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize` Save changes `;let r;r=$localize`Remote access control`;let c;c=$localize`Color theme`;let h;h=$localize`Customize your application theme`;let g;g=$localize`Passwords`;let P;P=$localize`Change server passphrase`;let ce;ce=$localize`Language`;let pe;pe=$localize`Select a language for the platform`;let Se;Se=$localize`Allow remote access (requires restart)`;let ge;ge=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let Te;Te=$localize`Allow remote access`;let ue;ue=$localize`Prevent tray icon automatic log-in`;let me;me=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let Ce;Ce=$localize`Prevent tray icon automatic log-in`;let Ee;Ee=$localize`Backup list sort order`;let fe;fe=$localize`Choose the order to display backups on the starting page in`;let Ne;Ne=$localize`Update channel`;let Me;Me=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let he;he=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Pe;Pe=$localize`Stable`;let Oe;Oe=$localize`Official releases`;let Re;Re=$localize`Beta`;let Ie;Ie=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let ye;ye=$localize` Experimental `;let Ge;Ge=$localize`Specific builds for developers only. Not for use with important data.`;let ve;ve=$localize`Canary`;let Ae;Ae=$localize`Individual builds for developers only. Not for use with important data.`;let $e;$e=$localize`Pause after startup or hibernation`;let be;be=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let we;we=$localize`Usage statistics`;let V;V=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#131\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#131\uFFFD"}:CLOSE_LINK:${"[\uFFFD#132\uFFFD\uFFFD/#132\uFFFD|\uFFFD#133\uFFFD\uFFFD/#133\uFFFD]"}:LINE_BREAK:${"[\uFFFD#132\uFFFD\uFFFD/#132\uFFFD|\uFFFD#133\uFFFD\uFFFD/#133\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,V=Ye(V);let ke;ke=$localize`Advanced options`;let Le;Le=$localize`Enter new password`;let Fe;Fe=$localize`Repeat password`;let xe;xe=$localize`Password have to be filled and have to match`;let De;De=$localize`Passphrase`;let Xe;Xe=$localize`Repeat passphrase`;let ze;ze=$localize`Cancel`;let Ve;Ve=$localize` Update passphrase `;let Ue;Ue=$localize` Update passphrase `;let Be;Be=$localize`Change password`;let He;He=$localize`Allowed hostnames`;let We;We=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let qe;return qe=$localize` Update allowed hostnames `,[t,e,n,r,c,h,g,P,ce,pe,Se,ge,Te,ue,me,Ce,Ee,fe,Ne,Me,he,Pe,Oe,Re,Ie,ye,Ge,ve,Ae,$e,be,we,V,ke,De,Xe,ze,Ve,Ue,Be,He,We,qe,[1,"content"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"click","disabled"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"selectedOptionsChange","options","isClearable","inlineSearch"],["type","text",3,"ngModel","ngModelOptions"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"submit","formGroup"],["formGroupName","pauseSettings",1,"field-row"],[1,"raised","primary",3,"unit"],["type","range","formControlName","time",3,"min","max"],["label","label","value","value",3,"options","isClearable"],["type","text","formControlName","timeType"],["href","#"],["label","label","value","value",3,"options"],["type","text","formControlName","usageStatistics"],[1,"advanced-settings"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",Le,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",Fe,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",xe,1,"primary"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","",1,"raised","primary",3,"click","disabled"],[1,"spk-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"]]},template:function(e,n){if(e&1&&(M(0,"app-status-bar"),i(1,"div",43)(2,"header")(3,"div",44)(4,"h2"),l(5,0),o(),i(6,"p"),l(7,1),o()(),i(8,"button",45),S("click",function(){return n.submit()}),l(9,2),o()(),i(10,"section")(11,"div",46)(12,"h3"),l(13,3),o(),i(14,"p"),I(15),o()(),i(16,"div",47),M(17,"app-remote-control"),o()(),i(18,"section")(19,"div",46)(20,"h3"),l(21,4),o(),i(22,"p"),l(23,5),o()(),i(24,"div",47)(25,"div",48)(26,"img",49),S("click",function(){return n.setLightMode()}),o(),i(27,"img",50),S("click",function(){return n.setDarkMode()}),o()()()(),i(28,"section")(29,"div",46)(30,"h3"),l(31,6),o(),i(32,"p"),l(33,7),o()(),i(34,"div",51),E(35,Vt,15,7)(36,Bt,4,1,"div",52),o()(),i(37,"section")(38,"div",46)(39,"h3"),l(40,8),o(),i(41,"p"),l(42,9),o()(),i(43,"div",47)(44,"spk-select",53),S("selectedOptionsChange",function(c){return n.updateLocale(c)}),M(45,"input",54),o()()(),i(46,"section")(47,"div",46)(48,"h3"),l(49,10),o(),i(50,"p"),l(51,11),o()(),i(52,"div",55)(53,"spk-toggle",56),S("click",function(){return n.updateRemoteAccess()}),i(54,"label"),l(55,12),o()(),E(56,Ht,8,3),o()(),i(57,"section")(58,"div",46)(59,"h3"),l(60,13),o(),i(61,"p"),l(62,14),o()(),i(63,"div",47)(64,"spk-toggle",56),S("click",function(){return n.saveDisableTrayIconLogin()}),i(65,"label"),l(66,15),o()()()(),i(67,"section")(68,"div",46)(69,"h3"),l(70,16),o(),i(71,"p"),l(72,17),o(),E(73,Wt,1,0,"spk-progress-bar",57),o(),i(74,"div",47)(75,"spk-select",53),S("selectedOptionsChange",function(c){return n.updateSortOrder(c)}),M(76,"input",54),o()()(),i(77,"section")(78,"div",46)(79,"h3"),l(80,18),o(),i(81,"p"),E(82,qt,1,1),o(),E(83,jt,1,0,"spk-progress-bar",57),o(),i(84,"div",58)(85,"div",59),S("click",function(){return n.setNewChannel("")}),i(86,"spk-radio",60),l(87,19),o(),i(88,"p"),l(89,20),o()(),i(90,"div",59),S("click",function(){return n.setNewChannel("stable")}),i(91,"spk-radio",60),l(92,21),o(),i(93,"p"),l(94,22),o()(),i(95,"div",59),S("click",function(){return n.setNewChannel("beta")}),i(96,"spk-radio",60),l(97,23),o(),i(98,"p"),l(99,24),o()(),i(100,"div",59),S("click",function(){return n.setNewChannel("experimental")}),i(101,"spk-radio",60),l(102,25),o(),i(103,"p"),l(104,26),o()(),i(105,"div",59),S("click",function(){return n.setNewChannel("canary")}),i(106,"spk-radio",60),l(107,27),o(),i(108,"p"),l(109,28),o()()()()(),M(110,"spk-divider"),i(111,"form",61),S("submit",function(){return n.submit()}),i(112,"section")(113,"div",46)(114,"h3"),l(115,29),o(),i(116,"p"),l(117,30),o()(),i(118,"div",47)(119,"div",62)(120,"spk-range-slider",63),M(121,"input",64),o(),i(122,"spk-select",65),M(123,"input",66),E(124,Kt,1,1,"ng-template"),o()()()(),i(125,"section")(126,"div",46)(127,"h3"),l(128,31),o(),i(129,"p"),B(130,32),M(131,"a",67)(132,"br")(133,"br"),H(),o()(),i(134,"div",47)(135,"spk-select",68),M(136,"input",69),E(137,Qt,1,1,"ng-template"),o()()()(),i(138,"div",43)(139,"section")(140,"div",70)(141,"h3"),l(142,33),o(),M(143,"app-advanced-options-settings"),o()()()),e&2){let r,c,h,g;a(8),N("disabled",n.settingsForm.untouched),a(7),W(n.remoteControlStatus()),a(11),f("active",!n.isDarkMode()),a(),f("active",n.isDarkMode()),a(8),T(n.showPassphraseForm()?35:36),a(9),N("options",n.languageOptions())("isClearable",!1)("inlineSearch",!0),a(),N("ngModel",n.langCtrl())("ngModelOptions",D(44,ht)),a(8),f("active",n.allowRemoteAccess()),a(3),T(n.allowRemoteAccess()?56:-1),a(8),f("active",n.disableTrayIconLogin()),a(9),T(n.updatingSortOrder()?73:-1),a(2),N("options",n.sortOptions())("isClearable",!1)("inlineSearch",!0),a(),N("ngModel",n.sortOrderCtrl())("ngModelOptions",D(45,ht)),a(6),T(n.updateChannel()!==""&&((r=n.sysinfo())!=null&&r.ServerVersion)?82:-1),a(),T(n.updatingChannel()?83:-1),a(3),f("active",n.updateChannel()===""),a(),le((c=n.sysinfo())==null?null:c.DefaultUpdateChannel),ae(87),a(2),le((h=n.sysinfo())==null?null:h.ServerVersionType),ae(89),a(2),f("active",n.updateChannel()==="stable"),a(5),f("active",n.updateChannel()==="beta"),a(5),f("active",n.updateChannel()==="experimental"),a(5),f("active",n.updateChannel()==="canary"),a(5),N("formGroup",n.settingsForm),a(9),N("unit",(g=n.timeTypeSignal())!==null&&g!==void 0?g:""),a(),N("min",n.timeRange()[0])("max",n.timeRange()[1]),a(),N("options",n.timeTypeOptions())("isClearable",!1),a(13),N("options",n.usageStatisticsOptions())}},dependencies:[ne,St,Y,gt,ee,pt,te,ie,Tt,mt,ut,ft,re,X,Q,lt,at,rt,dt,ct,Z,j,st,K,_t],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}.advanced-settings[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:1rem}"],changeDetection:0})};export{de as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{c as P,e as v,f as L,i as w,n as V,q as x,r as X,t as U}from"./chunk-BSJ6OMWB.js";import{d as A,e as I}from"./chunk-NQYRWS7A.js";import"./chunk-2X7AJBJY.js";import{A as G,a as b,c as h,g as $,l as B}from"./chunk-3WHFK5U5.js";import{b as y}from"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import{Ab as i,Bb as r,Cb as _,D as g,L as T,Mb as C,Nb as O,Ob as f,Ra as F,Rb as k,Sb as m,X as u,db as R,fc as N,ib as S,rb as c,rc as M,sa as p,tb as D,wb as E}from"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";var j=()=>["/"];function z(l,e){l&1&&(i(0,"spk-form-field")(1,"label",11),f(2,2),r(),_(3,"input",12),r())}var a=new X,d=class l{#t=u(h);#e=u(y);#o=u(A);isRestoring=p(!1);isSecureFile=p(!1);importForm=a.group({config:a.control(""),cmdline:a.control(!1),importMetadata:a.control(!1),direct:a.control(!1),passphrase:a.control("")});selectedFile=p(null);onFileDropped(e){let t=e.target?.files?.item(0);if(t){let n=new FileReader;this.isSecureFile.set(t.type!=="application/json"),n.onload=this.#n.bind(this),n.readAsArrayBuffer(t)}}#n(e){let o=e.target?.result;this.importForm.patchValue({config:this.#r(o)})}#r(e){let o=new Uint8Array(e),t=o.byteLength,n="";for(let s=0;s<t;s++)n+=String.fromCharCode(o[s]);return btoa(n)}submit(){this.isRestoring.set(!0),this.#e.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(T(e=>{let t={Backup:e.data.Backup};return this.#e.postApiV1Backups({requestBody:t,temporary:!0})}),g(()=>this.isRestoring.set(!1))).subscribe({next:e=>{this.#o.navigate(["/restore-draft",e.ID])},error:e=>{this.#t.error(e.message)}})}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=R({type:l,selectors:[["app-restore-from-config"]],decls:16,vars:7,consts:()=>{let e;e=$localize` Restore from config ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SPK_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SPK_ICON: Restore ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,e=k(e);let o;o=$localize`Select a configuration file`;let t;return t=$localize`Passphrase`,[e,o,t,[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],["for","passphrase"],["type","password","formControlName","passphrase"]]},template:function(o,t){o&1&&(i(0,"header")(1,"h3"),C(2,0),i(3,"div",3)(4,"button",4),_(5,"spk-icon"),r(),i(6,"button",5),m("click",function(){return t.submit()}),_(7,"spk-icon"),r()(),O(),r()(),i(8,"form",6)(9,"spk-form-field",7),m("fileDropped",function(s){return t.onFileDropped(s)}),i(10,"label",8),f(11,1),r(),i(12,"input",9),m("change",function(s){return t.onFileDropped(s)}),r(),i(13,"spk-icon",10),N(14,"upload"),r()(),S(15,z,4,0,"spk-form-field"),r()),o&2&&(F(4),c("routerLink",M(6,j)),F(2),D("loader",t.isRestoring()),c("disabled",t.isRestoring()),F(2),c("formGroup",t.importForm),F(7),E(t.isSecureFile()?15:-1))},dependencies:[U,w,P,v,L,V,x,I,G,B,b,$],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as A}from"./chunk-
|
|
1
|
+
import{a as A}from"./chunk-F2L6ATMF.js";import{c as M}from"./chunk-2X7AJBJY.js";import{p as P}from"./chunk-3WHFK5U5.js";import{b as S}from"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import{Ab as i,Bb as r,Cb as _,D as p,Ob as C,Ra as c,X as o,db as g,fc as u,gc as E,ib as d,p as l,sa as m,wb as f}from"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";function G(t,e){t&1&&_(0,"spk-progress-bar",1)}var a=class t{#n=o(M);#e=o(S);isLoading=m(!0);generalInfo=A(this.#e.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements),p(()=>this.isLoading.set(!1))));static \u0275fac=function(n){return new(n||t)};static \u0275cmp=g({type:t,selectors:[["app-general"]],decls:6,vars:2,consts:()=>{let e;return e=$localize`General`,[e,[1,"indeterminate","primary"]]},template:function(n,s){n&1&&(d(0,G,1,0,"spk-progress-bar",1),i(1,"section")(2,"h3"),C(3,0),r(),i(4,"div"),u(5),r()()),n&2&&(f(s.isLoading()?0:-1),c(5),E(s.generalInfo()))},dependencies:[P],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-KA2H467C.js";import"./chunk-Z2LU6ASK.js";import"./chunk-BCSA6WFY.js";import"./chunk-BSJ6OMWB.js";import"./chunk-3WHFK5U5.js";import"./chunk-64CRTZO6.js";import"./chunk-VDB64BFB.js";import"./chunk-ERQAUCCL.js";import"./chunk-RY7J7BHG.js";import"./chunk-7CGTOI24.js";export{a as OptionsListComponent};
|