@duplicati/ngclient 0.0.19 → 0.0.21

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.
Files changed (57) hide show
  1. package/{chunk-RIQNVCIL.js → chunk-24SCDXOT.js} +1 -1
  2. package/{chunk-EYBBW4ID.js → chunk-3ZII4VBA.js} +1 -1
  3. package/{chunk-DE7MHNNM.js → chunk-4I2FZHFA.js} +1 -1
  4. package/{chunk-VLWUJXM4.js → chunk-4UMXA6ZN.js} +1 -1
  5. package/{chunk-PY26LA4W.js → chunk-5P5MCIGV.js} +1 -1
  6. package/chunk-5XTTHY4J.js +1 -0
  7. package/{chunk-SHLX3F4G.js → chunk-6FMOBX4W.js} +1 -1
  8. package/{chunk-CZTXCP6Y.js → chunk-72GO2ZEM.js} +1 -1
  9. package/{chunk-CTPVCKDU.js → chunk-AE4UH7UP.js} +1 -1
  10. package/{chunk-IGECPMHY.js → chunk-APGFOGYB.js} +1 -1
  11. package/chunk-AT2YMZPR.js +1 -0
  12. package/chunk-BGMX7SZ6.js +1 -0
  13. package/chunk-CBPKRHET.js +1 -0
  14. package/{chunk-2VM3Z6G6.js → chunk-D3SNAEYH.js} +1 -1
  15. package/{chunk-YL6USNFS.js → chunk-DUEP5NWI.js} +1 -1
  16. package/{chunk-DFNMN5CZ.js → chunk-EC4YV54D.js} +1 -1
  17. package/{chunk-RODVNO2L.js → chunk-EE44D7EI.js} +1 -1
  18. package/{chunk-SGVVLQ22.js → chunk-ETZPVGXX.js} +1 -1
  19. package/{chunk-6DRN2RKF.js → chunk-HAGEM2KU.js} +1 -1
  20. package/{chunk-V2UAC7MF.js → chunk-HK24NYRP.js} +1 -1
  21. package/{chunk-Y7U5EP7T.js → chunk-HQEL6ET4.js} +1 -1
  22. package/{chunk-4UKPKNC6.js → chunk-I62MTURC.js} +1 -1
  23. package/{chunk-GSP4D4JM.js → chunk-ICX4A35N.js} +1 -1
  24. package/{chunk-RNBIMN7E.js → chunk-KOIUHATU.js} +1 -1
  25. package/chunk-M6XAG6QD.js +1 -0
  26. package/{chunk-AN53EBZI.js → chunk-NN4VOZJP.js} +1 -1
  27. package/chunk-NUWA7AOR.js +8 -0
  28. package/{chunk-C7JVFVNG.js → chunk-OLR3NLBF.js} +1 -1
  29. package/chunk-PB775LH4.js +1 -0
  30. package/{chunk-VWLF6BH7.js → chunk-PJY2UW7Y.js} +1 -1
  31. package/{chunk-QX7KUJGE.js → chunk-QILG6324.js} +1 -1
  32. package/{chunk-AAWW7ZXJ.js → chunk-S4TH7BUT.js} +1 -1
  33. package/{chunk-NQ2MPIB6.js → chunk-SCOHUUYQ.js} +1 -1
  34. package/{chunk-OUSJF6ZB.js → chunk-THXSJ5EB.js} +1 -1
  35. package/{chunk-IPONHS64.js → chunk-VCWCJ6GK.js} +1 -1
  36. package/chunk-VLYQWE2X.js +1 -0
  37. package/{chunk-ZNDBPUVN.js → chunk-WIE3F2D2.js} +1 -1
  38. package/chunk-XG5WW7WW.js +1 -0
  39. package/{chunk-VIVSHAAZ.js → chunk-XWP5J7FY.js} +1 -1
  40. package/{chunk-YPNP3GF5.js → chunk-XX4XT5RQ.js} +1 -1
  41. package/{chunk-AM4UDAZB.js → chunk-ZCCVAPLP.js} +1 -1
  42. package/{chunk-BX543SH4.js → chunk-ZHM55NRD.js} +1 -1
  43. package/chunk-ZMHOWC7A.js +1 -0
  44. package/index.html +1 -1
  45. package/main-WNZU6MTP.js +1 -0
  46. package/package.json +1 -1
  47. package/chunk-4WBYIJ5H.js +0 -1
  48. package/chunk-6EXVTV2W.js +0 -1
  49. package/chunk-6T7HOYTW.js +0 -1
  50. package/chunk-F2BE3CLI.js +0 -1
  51. package/chunk-FKB7BVQE.js +0 -8
  52. package/chunk-H63BMAXL.js +0 -1
  53. package/chunk-JNR6OW5L.js +0 -1
  54. package/chunk-L2WWHQPN.js +0 -1
  55. package/chunk-RPSHZTVR.js +0 -1
  56. package/chunk-WNQNTT5I.js +0 -1
  57. package/main-CJNFWE4Y.js +0 -1
@@ -1 +1 @@
1
- import{b as Nr}from"./chunk-L2WWHQPN.js";import{$b as kt,A as tt,B as or,D as Nt,E as H,F as le,G as ar,H as ur,I as cr,J as x,Ja as mr,K as lr,L as R,M as w,Ma as P,Mb as Tr,O as b,Oa as ge,Pa as yr,Q as hr,R as $,S as he,T as de,U as g,Vb as Or,W as dr,Wa as Cr,Wb as Er,Xa as Rr,Xb as Ur,Y as jt,Ya as Sr,Yb as xr,Zb as ve,_ as fr,_a as wr,a as er,aa as $t,ba as k,bc as _t,c as rr,da as Lt,e as se,f as oe,fc as Pr,g as B,h as D,ha as fe,ia as pr,j as V,ja as gr,k as T,kb as br,kc as me,l as f,la as vr,lc as zt,m as dt,ma as et,n as nr,o as ir,p as m,pb as Ir,q as Pt,r as O,ra as pe,s as ae,t as sr,u as ue,w as X,wb as Ar,x as J,xb as Mr,y as ft,yb as Dr,z as ce}from"./chunk-FKB7BVQE.js";import{a as l,b as I}from"./chunk-7CGTOI24.js";var p="primary",Ot=Symbol("RouteTitle"),we=class{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function at(e){return new we(e)}function Rn(e,r,t){let n=t.path.split("/");if(n.length>e.length||t.pathMatch==="full"&&(r.hasChildren()||n.length<e.length))return null;let i={};for(let s=0;s<n.length;s++){let o=n[s],u=e[s];if(o[0]===":")i[o.substring(1)]=u;else if(o!==u.path)return null}return{consumed:e.slice(0,n.length),posParams:i}}function Sn(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!L(e[t],r[t]))return!1;return!0}function L(e,r){let t=e?be(e):void 0,n=r?be(r):void 0;if(!t||!n||t.length!=n.length)return!1;let i;for(let s=0;s<t.length;s++)if(i=t[s],!Vr(e[i],r[i]))return!1;return!0}function be(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Vr(e,r){if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;let t=[...e].sort(),n=[...r].sort();return t.every((i,s)=>n[s]===i)}else return e===r}function Hr(e){return e.length>0?e[e.length-1]:null}function W(e){return nr(e)?e:Er(e)?T(Promise.resolve(e)):f(e)}var wn={exact:Gr,subset:Qr},Wr={exact:bn,subset:In,ignored:()=>!0};function jr(e,r,t){return wn[t.paths](e.root,r.root,t.matrixParams)&&Wr[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function bn(e,r){return L(e,r)}function Gr(e,r,t){if(!Q(e.segments,r.segments)||!Bt(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!Gr(e.children[n],r.children[n],t))return!1;return!0}function In(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>Vr(e[t],r[t]))}function Qr(e,r,t){return Kr(e,r,r.segments,t)}function Kr(e,r,t,n){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!Q(i,t)||r.hasChildren()||!Bt(i,t,n))}else if(e.segments.length===t.length){if(!Q(e.segments,t)||!Bt(e.segments,t,n))return!1;for(let i in r.children)if(!e.children[i]||!Qr(e.children[i],r.children[i],n))return!1;return!0}else{let i=t.slice(0,e.segments.length),s=t.slice(e.segments.length);return!Q(e.segments,i)||!Bt(e.segments,i,n)||!e.children[p]?!1:Kr(e.children[p],r,s,n)}}function Bt(e,r,t){return r.every((n,i)=>Wr[t](e[i].parameters,n.parameters))}var z=class{constructor(r=new v([],{}),t={},n=null){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=at(this.queryParams),this._queryParamMap}toString(){return Dn.serialize(this)}},v=class{constructor(r,t){this.segments=r,this.children=t,this.parent=null,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vt(this)}},G=class{constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=at(this.parameters),this._parameterMap}toString(){return Yr(this)}};function An(e,r){return Q(e,r)&&e.every((t,n)=>L(t.parameters,r[n].parameters))}function Q(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function Mn(e,r){let t=[];return Object.entries(e.children).forEach(([n,i])=>{n===p&&(t=t.concat(r(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==p&&(t=t.concat(r(i,n)))}),t}var Ke=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>new Rt,providedIn:"root"})}}return e})(),Rt=class{parse(r){let t=new Ae(r);return new z(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${pt(r.root,!0)}`,n=En(r.queryParams),i=typeof r.fragment=="string"?`#${Tn(r.fragment)}`:"";return`${t}${n}${i}`}},Dn=new Rt;function Vt(e){return e.segments.map(r=>Yr(r)).join("/")}function pt(e,r){if(!e.hasChildren())return Vt(e);if(r){let t=e.children[p]?pt(e.children[p],!1):"",n=[];return Object.entries(e.children).forEach(([i,s])=>{i!==p&&n.push(`${i}:${pt(s,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=Mn(e,(n,i)=>i===p?[pt(e.children[p],!1)]:[`${i}:${pt(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[p]!=null?`${Vt(e)}/${t[0]}`:`${Vt(e)}/(${t.join("//")})`}}function Zr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ft(e){return Zr(e).replace(/%3B/gi,";")}function Tn(e){return encodeURI(e)}function Ie(e){return Zr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ht(e){return decodeURIComponent(e)}function $r(e){return Ht(e.replace(/\+/g,"%20"))}function Yr(e){return`${Ie(e.path)}${On(e.parameters)}`}function On(e){return Object.entries(e).map(([r,t])=>`;${Ie(r)}=${Ie(t)}`).join("")}function En(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(i=>`${Ft(t)}=${Ft(i)}`).join("&"):`${Ft(t)}=${Ft(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var Un=/^[^\/()?;#]+/;function ye(e){let r=e.match(Un);return r?r[0]:""}var xn=/^[^\/()?;=#]+/;function Pn(e){let r=e.match(xn);return r?r[0]:""}var Nn=/^[^=?&#]+/;function jn(e){let r=e.match(Nn);return r?r[0]:""}var $n=/^[^&#]+/;function Ln(e){let r=e.match($n);return r?r[0]:""}var Ae=class{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(t).length>0)&&(n[p]=new v(r,t)),n}parseSegment(){let r=ye(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new G(Ht(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=Pn(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=ye(this.remaining);i&&(n=i,this.capture(n))}r[Ht(t)]=Ht(n)}parseQueryParam(r){let t=jn(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let o=Ln(this.remaining);o&&(n=o,this.capture(n))}let i=$r(t),s=$r(n);if(r.hasOwnProperty(i)){let o=r[i];Array.isArray(o)||(o=[o],r[i]=o),o.push(s)}else r[i]=s}parseParens(r){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=ye(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=p);let o=this.parseChildren();t[s]=Object.keys(o).length===1?o[p]:new v([],o),this.consumeOptional("//")}return t}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new w(4011,!1)}};function Xr(e){return e.segments.length>0?new v([],{[p]:e}):e}function Jr(e){let r={};for(let[n,i]of Object.entries(e.children)){let s=Jr(i);if(n===p&&s.segments.length===0&&s.hasChildren())for(let[o,u]of Object.entries(s.children))r[o]=u;else(s.segments.length>0||s.hasChildren())&&(r[n]=s)}let t=new v(e.segments,r);return kn(t)}function kn(e){if(e.numberOfChildren===1&&e.children[p]){let r=e.children[p];return new v(e.segments.concat(r.segments),r.children)}return e}function K(e){return e instanceof z}function _n(e,r,t=null,n=null){let i=tn(e);return en(i,r,t,n)}function tn(e){let r;function t(s){let o={};for(let a of s.children){let c=t(a);o[a.outlet]=c}let u=new v(s.url,o);return s===e&&(r=u),u}let n=t(e.root),i=Xr(n);return r??i}function en(e,r,t,n){let i=e;for(;i.parent;)i=i.parent;if(r.length===0)return Ce(i,i,i,t,n);let s=zn(r);if(s.toRoot())return Ce(i,i,new v([],{}),t,n);let o=Fn(s,i,e),u=o.processChildren?mt(o.segmentGroup,o.index,s.commands):nn(o.segmentGroup,o.index,s.commands);return Ce(i,o.segmentGroup,u,t,n)}function Wt(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function St(e){return typeof e=="object"&&e!=null&&e.outlets}function Ce(e,r,t,n,i){let s={};n&&Object.entries(n).forEach(([a,c])=>{s[a]=Array.isArray(c)?c.map(h=>`${h}`):`${c}`});let o;e===r?o=t:o=rn(e,r,t);let u=Xr(Jr(o));return new z(u,s,i)}function rn(e,r,t){let n={};return Object.entries(e.children).forEach(([i,s])=>{s===r?n[i]=t:n[i]=rn(s,r,t)}),new v(e.segments,n)}var Gt=class{constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&Wt(n[0]))throw new w(4003,!1);let i=n.find(St);if(i&&i!==Hr(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function zn(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Gt(!0,0,e);let r=0,t=!1,n=e.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let u={};return Object.entries(s.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?t=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,s]},[]);return new Gt(t,r,n)}var it=class{constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function Fn(e,r,t){if(e.isAbsolute)return new it(r,!0,0);if(!t)return new it(r,!1,NaN);if(t.parent===null)return new it(t,!0,0);let n=Wt(e.commands[0])?0:1,i=t.segments.length-1+n;return qn(t,i,e.numberOfDoubleDots)}function qn(e,r,t){let n=e,i=r,s=t;for(;s>i;){if(s-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new it(n,!1,i-s)}function Bn(e){return St(e[0])?e[0].outlets:{[p]:e}}function nn(e,r,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return mt(e,r,t);let n=Vn(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let s=new v(e.segments.slice(0,n.pathIndex),{});return s.children[p]=new v(e.segments.slice(n.pathIndex),e.children),mt(s,0,i)}else return n.match&&i.length===0?new v(e.segments,{}):n.match&&!e.hasChildren()?Me(e,r,t):n.match?mt(e,0,i):Me(e,r,t)}function mt(e,r,t){if(t.length===0)return new v(e.segments,{});{let n=Bn(t),i={};if(Object.keys(n).some(s=>s!==p)&&e.children[p]&&e.numberOfChildren===1&&e.children[p].segments.length===0){let s=mt(e.children[p],r,t);return new v(e.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=nn(e.children[s],r,o))}),Object.entries(e.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new v(e.segments,i)}}function Vn(e,r,t){let n=0,i=r,s={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=t.length)return s;let o=e.segments[i],u=t[n];if(St(u))break;let a=`${u}`,c=n<t.length-1?t[n+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!kr(a,c,o))return s;n+=2}else{if(!kr(a,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Me(e,r,t){let n=e.segments.slice(0,r),i=0;for(;i<t.length;){let s=t[i];if(St(s)){let a=Hn(s.outlets);return new v(n,a)}if(i===0&&Wt(t[0])){let a=e.segments[r];n.push(new G(a.path,Lr(t[0]))),i++;continue}let o=St(s)?s.outlets[p]:`${s}`,u=i<t.length-1?t[i+1]:null;o&&u&&Wt(u)?(n.push(new G(o,Lr(u))),i+=2):(n.push(new G(o,{})),i++)}return new v(n,{})}function Hn(e){let r={};return Object.entries(e).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[t]=Me(new v([],{}),0,n))}),r}function Lr(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function kr(e,r,t){return e==t.path&&L(r,t.parameters)}var yt="imperative",C=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(C||{}),E=class{constructor(r,t){this.id=r,this.url=t}},wt=class extends E{constructor(r,t,n="imperative",i=null){super(r,t),this.type=C.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},F=class extends E{constructor(r,t,n){super(r,t),this.urlAfterRedirects=n,this.type=C.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},M=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(M||{}),De=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(De||{}),_=class extends E{constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i,this.type=C.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Z=class extends E{constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i,this.type=C.NavigationSkipped}},bt=class extends E{constructor(r,t,n,i){super(r,t),this.error=n,this.target=i,this.type=C.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Qt=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Te=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Oe=class extends E{constructor(r,t,n,i,s){super(r,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s,this.type=C.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ee=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ue=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xe=class{constructor(r){this.route=r,this.type=C.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Pe=class{constructor(r){this.route=r,this.type=C.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ne=class{constructor(r){this.snapshot=r,this.type=C.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},je=class{constructor(r){this.snapshot=r,this.type=C.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$e=class{constructor(r){this.snapshot=r,this.type=C.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Le=class{constructor(r){this.snapshot=r,this.type=C.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var It=class{},ut=class{constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function Wn(e,r){return e.providers&&!e._injector&&(e._injector=Sr(e.providers,r,`Route: ${e.path}`)),e._injector??r}function N(e){return e.outlet||p}function Gn(e,r){let t=e.filter(n=>N(n)===r);return t.push(...e.filter(n=>N(n)!==r)),t}function Et(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let r=e.parent;r;r=r.parent){let t=r.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var ke=class{get injector(){return Et(this.route?.snapshot)??this.rootInjector}set injector(r){}constructor(r){this.rootInjector=r,this.outlet=null,this.route=null,this.children=new ee(this.rootInjector),this.attachRef=null}},ee=(()=>{class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,n){let i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new ke(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static{this.\u0275fac=function(n){return new(n||e)(de($t))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Kt=class{constructor(r){this._root=r}get root(){return this._root.value}parent(r){let t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){let t=_e(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){let t=_e(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){let t=ze(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return ze(r,this._root).map(t=>t.value)}};function _e(e,r){if(e===r.value)return r;for(let t of r.children){let n=_e(e,t);if(n)return n}return null}function ze(e,r){if(e===r.value)return[r];for(let t of r.children){let n=ze(e,t);if(n.length)return n.unshift(r),n}return[]}var A=class{constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function nt(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Zt=class extends Kt{constructor(r,t){super(r),this.snapshot=t,Ze(this,r)}toString(){return this.snapshot.toString()}};function sn(e){let r=Qn(e),t=new D([new G("",{})]),n=new D({}),i=new D({}),s=new D({}),o=new D(""),u=new Y(t,n,s,o,i,p,e,r.root);return u.snapshot=r.root,new Zt(new A(u,[]),r)}function Qn(e){let r={},t={},n={},i="",s=new st([],r,n,i,t,p,e,null,{});return new Xt("",new A(s,[]))}var Y=class{constructor(r,t,n,i,s,o,u,a){this.urlSubject=r,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[Ot]))??f(void 0),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(m(r=>at(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(r=>at(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Yt(e,r,t="emptyOnly"){let n,{routeConfig:i}=e;return r!==null&&(t==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:l(l({},r.params),e.params),data:l(l({},r.data),e.data),resolve:l(l(l(l({},e.data),r.data),i?.data),e._resolvedData)}:n={params:l({},e.params),data:l({},e.data),resolve:l(l({},e.data),e._resolvedData??{})},i&&an(i)&&(n.resolve[Ot]=i.title),n}var st=class{get title(){return this.data?.[Ot]}constructor(r,t,n,i,s,o,u,a,c){this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=u,this.routeConfig=a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=at(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=at(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${t}')`}},Xt=class extends Kt{constructor(r,t){super(t),this.url=r,Ze(this,t)}toString(){return on(this._root)}};function Ze(e,r){r.value._routerState=e,r.children.forEach(t=>Ze(e,t))}function on(e){let r=e.children.length>0?` { ${e.children.map(on).join(", ")} } `:"";return`${e.value}${r}`}function Re(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,L(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),L(r.params,t.params)||e.paramsSubject.next(t.params),Sn(r.url,t.url)||e.urlSubject.next(t.url),L(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Fe(e,r){let t=L(e.params,r.params)&&An(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||Fe(e.parent,r.parent))}function an(e){return typeof e.title=="string"||e.title===null}var Kn=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=p,this.activateEvents=new et,this.deactivateEvents=new et,this.attachEvents=new et,this.detachEvents=new et,this.parentContexts=g(ee),this.location=g(yr),this.changeDetector=g(kt),this.inputBinder=g(re,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:i}=t.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=t;let i=this.location,o=t.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new qe(t,u,i.injector);this.activated=i.createComponent(o,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=jt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Lt]})}}return e})(),qe=class e{__ngOutletInjector(r){return new e(this.route,this.childContexts,r)}constructor(r,t,n){this.route=r,this.childContexts=t,this.parent=n}get(r,t){return r===Y?this.route:r===ee?this.childContexts:this.parent.get(r,t)}},re=new $(""),_r=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,i=Pt([n.queryParams,n.params,n.data]).pipe(x(([s,o,u],a)=>(u=l(l(l({},s),o),u),a===0?f(u):Promise.resolve(u)))).subscribe(s=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let o=Pr(n.component);if(!o){this.unsubscribeFromRouteData(t);return}for(let{templateName:u}of o.inputs)t.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(t,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})();function Zn(e,r,t){let n=At(e,r._root,t?t._root:void 0);return new Zt(n,r)}function At(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let i=Yn(e,r,t);return new A(n,i)}else{if(e.shouldAttach(r.value)){let s=e.retrieve(r.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=r.value,o.children=r.children.map(u=>At(e,u)),o}}let n=Xn(r.value),i=r.children.map(s=>At(e,s));return new A(n,i)}}function Yn(e,r,t){return r.children.map(n=>{for(let i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return At(e,n,i);return At(e,n)})}function Xn(e){return new Y(new D(e.url),new D(e.params),new D(e.queryParams),new D(e.fragment),new D(e.data),e.outlet,e.component,e)}var Mt=class{constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},un="ngNavigationCancelingError";function Jt(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=K(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=cn(!1,M.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function cn(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[un]=!0,t.cancellationCode=r,t}function Jn(e){return ln(e)&&K(e.url)}function ln(e){return!!e&&e[un]}var ti=(e,r,t,n)=>m(i=>(new Be(r,i.targetRouterState,i.currentRouterState,t,n).activate(e),i)),Be=class{constructor(r,t,n,i,s){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(r){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),Re(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){let i=nt(t);r.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],n),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(r,t,n){let i=r.value,s=t?t.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(r,t,o.children)}else this.deactivateChildRoutes(r,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(r,t){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,t):this.deactivateRouteAndOutlet(r,t)}detachAndStoreRouteSubtree(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,s=nt(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(n&&n.outlet){let o=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:o,route:r,contexts:u})}}deactivateRouteAndOutlet(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,s=nt(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,t,n){let i=nt(t);r.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new Le(s.value.snapshot))}),r.children.length&&this.forwardEvent(new je(r.value.snapshot))}activateRoutes(r,t,n){let i=r.value,s=t?t.value:null;if(Re(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,t,o.children)}else this.activateChildRoutes(r,t,n);else if(i.component){let o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(u.contexts),o.attachRef=u.componentRef,o.route=u.route.value,o.outlet&&o.outlet.attach(u.componentRef,u.route.value),Re(u.route.value),this.activateChildRoutes(r,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(r,null,o.children)}else this.activateChildRoutes(r,null,n)}},te=class{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},ot=class{constructor(r,t){this.component=r,this.route=t}};function ei(e,r,t){let n=e._root,i=r?r._root:null;return gt(n,i,t,[n.value])}function ri(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function lt(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!hr(e)?e:r.get(e):n}function gt(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=nt(r);return e.children.forEach(o=>{ni(o,s[o.value.outlet],t,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,u])=>Ct(u,t.getContext(o),i)),i}function ni(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=r?r.value:null,u=t?t.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=ii(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new te(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?gt(e,r,u?u.children:null,n,i):gt(e,r,t,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new ot(u.outlet.component,o))}else o&&Ct(r,u,i),i.canActivateChecks.push(new te(n)),s.component?gt(e,null,u?u.children:null,n,i):gt(e,null,t,n,i);return i}function ii(e,r,t){if(typeof t=="function")return t(e,r);switch(t){case"pathParamsChange":return!Q(e.url,r.url);case"pathParamsOrQueryParamsChange":return!Q(e.url,r.url)||!L(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fe(e,r)||!L(e.queryParams,r.queryParams);case"paramsChange":default:return!Fe(e,r)}}function Ct(e,r,t){let n=nt(e),i=e.value;Object.entries(n).forEach(([s,o])=>{i.component?r?Ct(o,r.children.getContext(s),t):Ct(o,null,t):Ct(o,r,t)}),i.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new ot(r.outlet.component,i)):t.canDeactivateChecks.push(new ot(null,i)):t.canDeactivateChecks.push(new ot(null,i))}function Ut(e){return typeof e=="function"}function si(e){return typeof e=="boolean"}function oi(e){return e&&Ut(e.canLoad)}function ai(e){return e&&Ut(e.canActivate)}function ui(e){return e&&Ut(e.canActivateChild)}function ci(e){return e&&Ut(e.canDeactivate)}function li(e){return e&&Ut(e.canMatch)}function hn(e){return e instanceof ir||e?.name==="EmptyError"}var qt=Symbol("INITIAL_VALUE");function ct(){return x(e=>Pt(e.map(r=>r.pipe(tt(1),cr(qt)))).pipe(m(r=>{for(let t of r)if(t!==!0){if(t===qt)return qt;if(t===!1||hi(t))return t}return!0}),X(r=>r!==qt),tt(1)))}function hi(e){return K(e)||e instanceof Mt}function di(e,r){return O(t=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=t;return o.length===0&&s.length===0?f(I(l({},t),{guardsResult:!0})):fi(o,n,i,e).pipe(O(u=>u&&si(u)?pi(n,s,e,r):f(u)),m(u=>I(l({},t),{guardsResult:u})))})}function fi(e,r,t,n){return T(e).pipe(O(i=>Ci(i.component,i.route,t,r,n)),H(i=>i!==!0,!0))}function pi(e,r,t,n){return T(r).pipe(ft(i=>sr(vi(i.route.parent,n),gi(i.route,n),yi(e,i.path,t),mi(e,i.route,t))),H(i=>i!==!0,!0))}function gi(e,r){return e!==null&&r&&r(new $e(e)),f(!0)}function vi(e,r){return e!==null&&r&&r(new Ne(e)),f(!0)}function mi(e,r,t){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return f(!0);let i=n.map(s=>ue(()=>{let o=Et(r)??t,u=lt(s,o),a=ai(u)?u.canActivate(r,e):k(o,()=>u(r,e));return W(a).pipe(H())}));return f(i).pipe(ct())}function yi(e,r,t){let n=r[r.length-1],s=r.slice(0,r.length-1).reverse().map(o=>ri(o)).filter(o=>o!==null).map(o=>ue(()=>{let u=o.guards.map(a=>{let c=Et(o.node)??t,h=lt(a,c),d=ui(h)?h.canActivateChild(n,e):k(c,()=>h(n,e));return W(d).pipe(H())});return f(u).pipe(ct())}));return f(s).pipe(ct())}function Ci(e,r,t,n,i){let s=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(u=>{let a=Et(r)??i,c=lt(u,a),h=ci(c)?c.canDeactivate(e,r,t,n):k(a,()=>c(e,r,t,n));return W(h).pipe(H())});return f(o).pipe(ct())}function Ri(e,r,t,n){let i=r.canLoad;if(i===void 0||i.length===0)return f(!0);let s=i.map(o=>{let u=lt(o,e),a=oi(u)?u.canLoad(r,t):k(e,()=>u(r,t));return W(a)});return f(s).pipe(ct(),dn(n))}function dn(e){return rr(R(r=>{if(typeof r!="boolean")throw Jt(e,r)}),m(r=>r===!0))}function Si(e,r,t,n){let i=r.canMatch;if(!i||i.length===0)return f(!0);let s=i.map(o=>{let u=lt(o,e),a=li(u)?u.canMatch(r,t):k(e,()=>u(r,t));return W(a)});return f(s).pipe(ct(),dn(n))}var Dt=class{constructor(r){this.segmentGroup=r||null}},Tt=class extends Error{constructor(r){super(),this.urlTree=r}};function rt(e){return dt(new Dt(e))}function wi(e){return dt(new w(4e3,!1))}function bi(e){return dt(cn(!1,M.GuardRejected))}var Ve=class{constructor(r,t){this.urlSerializer=r,this.urlTree=t}lineralizeSegments(r,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return f(n);if(i.numberOfChildren>1||!i.children[p])return wi(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,t,n,i,s){if(typeof t!="string"){let u=t,{queryParams:a,fragment:c,routeConfig:h,url:d,outlet:y,params:j,data:S,title:q}=i,U=k(s,()=>u({params:j,data:S,queryParams:a,fragment:c,routeConfig:h,url:d,outlet:y,title:q}));if(U instanceof z)throw new Tt(U);t=U}let o=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),r,n);if(t[0]==="/")throw new Tt(o);return o}applyRedirectCreateUrlTree(r,t,n,i){let s=this.createSegmentGroup(r,t.root,n,i);return new z(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){let n={};return Object.entries(r).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let u=s.substring(1);n[i]=t[u]}else n[i]=s}),n}createSegmentGroup(r,t,n,i){let s=this.createSegments(r,t.segments,n,i),o={};return Object.entries(t.children).forEach(([u,a])=>{o[u]=this.createSegmentGroup(r,a,n,i)}),new v(s,o)}createSegments(r,t,n,i){return t.map(s=>s.path[0]===":"?this.findPosParam(r,s,i):this.findOrReturn(s,n))}findPosParam(r,t,n){let i=n[t.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(r,t){let n=0;for(let i of t){if(i.path===r.path)return t.splice(n),i;n++}return r}},He={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ii(e,r,t,n,i){let s=fn(e,r,t);return s.matched?(n=Wn(r,n),Si(n,r,t,i).pipe(m(o=>o===!0?s:l({},He)))):f(s)}function fn(e,r,t){if(r.path==="**")return Ai(t);if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?l({},He):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Rn)(t,e,r);if(!i)return l({},He);let s={};Object.entries(i.posParams??{}).forEach(([u,a])=>{s[u]=a.path});let o=i.consumed.length>0?l(l({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function Ai(e){return{matched:!0,parameters:e.length>0?Hr(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function zr(e,r,t,n){return t.length>0&&Ti(e,t,n)?{segmentGroup:new v(r,Di(n,new v(t,e.children))),slicedSegments:[]}:t.length===0&&Oi(e,t,n)?{segmentGroup:new v(e.segments,Mi(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function Mi(e,r,t,n){let i={};for(let s of t)if(ne(e,r,s)&&!n[N(s)]){let o=new v([],{});i[N(s)]=o}return l(l({},n),i)}function Di(e,r){let t={};t[p]=r;for(let n of e)if(n.path===""&&N(n)!==p){let i=new v([],{});t[N(n)]=i}return t}function Ti(e,r,t){return t.some(n=>ne(e,r,n)&&N(n)!==p)}function Oi(e,r,t){return t.some(n=>ne(e,r,n))}function ne(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function Ei(e,r,t){return r.length===0&&!e.children[t]}var We=class{};function Ui(e,r,t,n,i,s,o="emptyOnly"){return new Ge(e,r,t,n,i,o,s).recognize()}var xi=31,Ge=class{constructor(r,t,n,i,s,o,u){this.injector=r,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=u,this.applyRedirects=new Ve(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}recognize(){let r=zr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(m(({children:t,rootSnapshot:n})=>{let i=new A(n,t),s=new Xt("",i),o=_n(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(r){let t=new st([],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,t).pipe(m(n=>({children:n,rootSnapshot:t})),J(n=>{if(n instanceof Tt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Dt?this.noMatchError(n):n}))}processSegmentGroup(r,t,n,i,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,t,n,s):this.processSegment(r,t,n,n.segments,i,!0,s).pipe(m(o=>o instanceof A?[o]:[]))}processChildren(r,t,n,i){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return T(s).pipe(ft(o=>{let u=n.children[o],a=Gn(t,o);return this.processSegmentGroup(r,a,u,o,i)}),ur((o,u)=>(o.push(...u),o)),ce(null),ar(),O(o=>{if(o===null)return rt(n);let u=pn(o);return Pi(u),f(u)}))}processSegment(r,t,n,i,s,o,u){return T(t).pipe(ft(a=>this.processSegmentAgainstRoute(a._injector??r,t,a,n,i,s,o,u).pipe(J(c=>{if(c instanceof Dt)return f(null);throw c}))),H(a=>!!a),J(a=>{if(hn(a))return Ei(n,i,s)?f(new We):rt(n);throw a}))}processSegmentAgainstRoute(r,t,n,i,s,o,u,a){return N(n)!==o&&(o===p||!ne(i,s,n))?rt(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,s,o,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,t,n,s,o,a):rt(i)}expandSegmentAgainstRouteUsingRedirect(r,t,n,i,s,o,u){let{matched:a,parameters:c,consumedSegments:h,positionalParamSegments:d,remainingSegments:y}=fn(t,i,s);if(!a)return rt(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xi&&(this.allowRedirects=!1));let j=new st(s,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Fr(i),N(i),i.component??i._loadedComponent??null,i,qr(i)),S=Yt(j,u,this.paramsInheritanceStrategy);j.params=Object.freeze(S.params),j.data=Object.freeze(S.data);let q=this.applyRedirects.applyRedirectCommands(h,i.redirectTo,d,j,r);return this.applyRedirects.lineralizeSegments(i,q).pipe(O(U=>this.processSegment(r,n,t,U.concat(y),o,!1,u)))}matchSegmentAgainstRoute(r,t,n,i,s,o){let u=Ii(t,n,i,r,this.urlSerializer);return n.path==="**"&&(t.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:d,consumedSegments:y,remainingSegments:j}=a,S=new st(y,d,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Fr(n),N(n),n.component??n._loadedComponent??null,n,qr(n)),q=Yt(S,o,this.paramsInheritanceStrategy);S.params=Object.freeze(q.params),S.data=Object.freeze(q.data);let{segmentGroup:U,slicedSegments:ht}=zr(t,y,j,c);if(ht.length===0&&U.hasChildren())return this.processChildren(h,c,U,S).pipe(m(xt=>new A(S,xt)));if(c.length===0&&ht.length===0)return f(new A(S,[]));let Cn=N(n)===s;return this.processSegment(h,c,U,ht,Cn?p:s,!0,S).pipe(m(xt=>new A(S,xt instanceof A?[xt]:[])))}))):rt(t)))}getChildConfig(r,t,n){return t.children?f({routes:t.children,injector:r}):t.loadChildren?t._loadedRoutes!==void 0?f({routes:t._loadedRoutes,injector:t._loadedInjector}):Ri(r,t,n,this.urlSerializer).pipe(O(i=>i?this.configLoader.loadChildren(r,t).pipe(R(s=>{t._loadedRoutes=s.routes,t._loadedInjector=s.injector})):bi(t))):f({routes:[],injector:r})}};function Pi(e){e.sort((r,t)=>r.value.outlet===p?-1:t.value.outlet===p?1:r.value.outlet.localeCompare(t.value.outlet))}function Ni(e){let r=e.value.routeConfig;return r&&r.path===""}function pn(e){let r=[],t=new Set;for(let n of e){if(!Ni(n)){r.push(n);continue}let i=r.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):r.push(n)}for(let n of t){let i=pn(n.children);r.push(new A(n.value,i))}return r.filter(n=>!t.has(n))}function Fr(e){return e.data||{}}function qr(e){return e.resolve||{}}function ji(e,r,t,n,i,s){return O(o=>Ui(e,r,t,n,o.extractedUrl,i,s).pipe(m(({state:u,tree:a})=>I(l({},o),{targetSnapshot:u,urlAfterRedirects:a}))))}function $i(e,r){return O(t=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=t;if(!i.length)return f(t);let s=new Set(i.map(a=>a.route)),o=new Set;for(let a of s)if(!o.has(a))for(let c of gn(a))o.add(c);let u=0;return T(o).pipe(ft(a=>s.has(a)?Li(a,n,e,r):(a.data=Yt(a,a.parent,e).resolve,f(void 0))),R(()=>u++),le(1),O(a=>u===o.size?f(t):V))})}function gn(e){let r=e.children.map(t=>gn(t)).flat();return[e,...r]}function Li(e,r,t,n){let i=e.routeConfig,s=e._resolve;return i?.title!==void 0&&!an(i)&&(s[Ot]=i.title),ki(s,e,r,n).pipe(m(o=>(e._resolvedData=o,e.data=Yt(e,e.parent,t).resolve,null)))}function ki(e,r,t,n){let i=be(e);if(i.length===0)return f({});let s={};return T(i).pipe(O(o=>_i(e[o],r,t,n).pipe(H(),R(u=>{if(u instanceof Mt)throw Jt(new Rt,u);s[o]=u}))),le(1),or(s),J(o=>hn(o)?V:dt(o)))}function _i(e,r,t,n){let i=Et(r)??n,s=lt(e,i),o=s.resolve?s.resolve(r,t):k(i,()=>s(r,t));return W(o)}function Se(e){return x(r=>{let t=e(r);return t?T(t).pipe(m(()=>r)):f(r)})}var vn=(()=>{class e{buildTitle(t){let n,i=t.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(s=>s.outlet===p);return n}getResolvedTitleForRoute(t){return t.data[Ot]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(zi),providedIn:"root"})}}return e})(),zi=(()=>{class e extends vn{constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static{this.\u0275fac=function(n){return new(n||e)(de(Nr))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ye=new $("",{providedIn:"root",factory:()=>({})}),Fi=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=dr({type:e,selectors:[["ng-component"]],standalone:!0,features:[Tr],decls:1,vars:0,template:function(n,i){n&1&&br(0,"router-outlet")},dependencies:[Kn],encapsulation:2})}}return e})();function Xe(e){let r=e.children&&e.children.map(Xe),t=r?I(l({},e),{children:r}):l({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==p&&(t.component=Fi),t}var Je=new $(""),qi=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(ve)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return f(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=W(t.loadComponent()).pipe(m(mn),R(s=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s}),Nt(()=>{this.componentLoaders.delete(t)})),i=new oe(n,()=>new B).pipe(se());return this.componentLoaders.set(t,i),i}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=Bi(n,this.compiler,t,this.onLoadEndListener).pipe(Nt(()=>{this.childrenLoaders.delete(n)})),o=new oe(s,()=>new B).pipe(se());return this.childrenLoaders.set(n,o),o}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Bi(e,r,t,n){return W(e.loadChildren()).pipe(m(mn),O(i=>i instanceof Rr||Array.isArray(i)?f(i):T(r.compileModuleAsync(i))),m(i=>{n&&n(e);let s,o,u=!1;return Array.isArray(i)?(o=i,u=!0):(s=i.create(t).injector,o=s.get(Je,[],{optional:!0,self:!0}).flat()),{routes:o.map(Xe),injector:s}}))}function Vi(e){return e&&typeof e=="object"&&"default"in e}function mn(e){return Vi(e)?e.default:e}var tr=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(Hi),providedIn:"root"})}}return e})(),Hi=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Wi=new $("");var Gi=new $(""),Qi=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new B,this.transitionAbortSubject=new B,this.configLoader=g(qi),this.environmentInjector=g($t),this.urlSerializer=g(Ke),this.rootContexts=g(ee),this.location=g(zt),this.inputBindingEnabled=g(re,{optional:!0})!==null,this.titleStrategy=g(vn),this.options=g(Ye,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(tr),this.createViewTransition=g(Wi,{optional:!0}),this.navigationErrorHandler=g(Gi,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let t=i=>this.events.next(new xe(i)),n=i=>this.events.next(new Pe(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;this.transitions?.next(I(l(l({},this.transitions.value),t),{id:n}))}setupNavigations(t,n,i){return this.transitions=new D({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:yt,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(s=>s.id!==0),m(s=>I(l({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),x(s=>{let o=!1,u=!1;return f(s).pipe(x(a=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",M.SupersededByNewNavigation),V;this.currentTransition=s,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?I(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!c&&h!=="reload"){let d="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.rawUrl),d,De.IgnoredSameUrlNavigation)),a.resolve(!1),V}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(x(d=>{let y=this.transitions?.getValue();return this.events.next(new wt(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),y!==this.transitions?.getValue()?V:Promise.resolve(d)}),ji(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),R(d=>{s.targetSnapshot=d.targetSnapshot,s.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=I(l({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let y=new Qt(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:y,source:j,restoredState:S,extras:q}=a,U=new wt(d,this.urlSerializer.serialize(y),j,S);this.events.next(U);let ht=sn(this.rootComponentType).snapshot;return this.currentTransition=s=I(l({},a),{targetSnapshot:ht,urlAfterRedirects:y,extras:I(l({},q),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,f(s)}else{let d="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.extractedUrl),d,De.IgnoredByUrlHandlingStrategy)),a.resolve(!1),V}}),R(a=>{let c=new Te(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=s=I(l({},a),{guards:ei(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),di(this.environmentInjector,a=>this.events.next(a)),R(a=>{if(s.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Jt(this.urlSerializer,a.guardsResult);let c=new Oe(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,"",M.GuardRejected),!1)),Se(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(R(c=>{let h=new Ee(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),x(c=>{let h=!1;return f(c).pipe($i(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",M.NoDataFromResolver)}}))}),R(c=>{let h=new Ue(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),Se(a=>{let c=h=>{let d=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(h.routeConfig).pipe(R(y=>{h.component=y}),m(()=>{})));for(let y of h.children)d.push(...c(y));return d};return Pt(c(a.targetSnapshot.root)).pipe(ce(null),tt(1))}),Se(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:a,targetSnapshot:c}=s,h=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return h?T(h).pipe(m(()=>s)):f(s)}),m(a=>{let c=Zn(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=I(l({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),R(()=>{this.events.next(new It)}),ti(this.rootContexts,t.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),tt(1),R({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new F(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),lr(this.transitionAbortSubject.pipe(R(a=>{throw a}))),Nt(()=>{!o&&!u&&this.cancelNavigationTransition(s,"",M.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(u=!0,ln(a))this.events.next(new _(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),Jn(a)?this.events.next(new ut(a.url,a.navigationBehaviorOptions)):s.resolve(!1);else{let c=new bt(s.id,this.urlSerializer.serialize(s.extractedUrl),a,s.targetSnapshot??void 0);try{let h=k(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(h instanceof Mt){let{message:d,cancellationCode:y}=Jt(this.urlSerializer,h);this.events.next(new _(s.id,this.urlSerializer.serialize(s.extractedUrl),d,y)),this.events.next(new ut(h.redirectTo,h.navigationBehaviorOptions))}else{this.events.next(c);let d=t.errorHandler(a);s.resolve(!!d)}}catch(h){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(h)}}return V}))}))}cancelNavigationTransition(t,n,i){let s=new _(t.id,this.urlSerializer.serialize(t.extractedUrl),n,i);this.events.next(s),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ki(e){return e!==yt}var Zi=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(Yi),providedIn:"root"})}}return e})(),Qe=class{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}},Yi=(()=>{class e extends Qe{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=fe(e)))(i||e)}})()}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),yn=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(Xi),providedIn:"root"})}}return e})(),Xi=(()=>{class e extends yn{constructor(){super(...arguments),this.location=g(zt),this.urlSerializer=g(Ke),this.options=g(Ye,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(tr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new z,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=sn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&t(n.url,n.state)})}handleRouterEvent(t,n){if(t instanceof wt)this.stateMemento=this.createStateMemento();else if(t instanceof Z)this.rawUrlTree=n.initialUrl;else if(t instanceof Qt){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??i,n)}}else t instanceof It?(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)):t instanceof _&&(t.code===M.GuardRejected||t.code===M.NoDataFromResolver)?this.restoreHistory(n):t instanceof bt?this.restoreHistory(n,!0):t instanceof F&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,n){let i=t instanceof z?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let s=this.browserPageId,o=l(l({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(i,"",o)}else{let s=l(l({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===t.finalUrl&&s===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=fe(e)))(i||e)}})()}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vt=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(vt||{});function Ji(e,r){e.events.pipe(X(t=>t instanceof F||t instanceof _||t instanceof bt||t instanceof Z),m(t=>t instanceof F||t instanceof Z?vt.COMPLETE:(t instanceof _?t.code===M.Redirect||t.code===M.SupersededByNewNavigation:!1)?vt.REDIRECTING:vt.FAILED),X(t=>t!==vt.REDIRECTING),tt(1)).subscribe(()=>{r()})}function ts(e){throw e}var es={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},rs={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ie=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(Or),this.stateManager=g(yn),this.options=g(Ye,{optional:!0})||{},this.pendingTasks=g(vr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(Qi),this.urlSerializer=g(Ke),this.location=g(zt),this.urlHandlingStrategy=g(tr),this._events=new B,this.errorHandler=this.options.errorHandler||ts,this.navigated=!1,this.routeReuseStrategy=g(Zi),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(Je,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(re,{optional:!0}),this.eventsSubscription=new er,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(n,s),n instanceof _&&n.code!==M.Redirect&&n.code!==M.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof F)this.navigated=!0;else if(n instanceof ut){let o=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"||Ki(i.source)},o);this.scheduleNavigation(u,yt,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}is(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),yt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",n)},0)})}navigateToSyncWithBrowser(t,n,i){let s={replaceUrl:!0},o=i?.navigationId?i:null;if(i){let a=l({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(s.state=a)}let u=this.parseUrl(t);this.scheduleNavigation(u,n,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Xe),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:u,preserveFragment:a}=n,c=a?this.currentUrlTree.fragment:o,h=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":h=l(l({},this.currentUrlTree.queryParams),s);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=s||null}h!==null&&(h=this.removeEmptyProps(h));let d;try{let y=i?i.snapshot:this.routerState.snapshot.root;d=tn(y)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),d=this.currentUrlTree.root}return en(d,t,h,c??null)}navigateByUrl(t,n={skipLocationChange:!1}){let i=K(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,yt,null,n)}navigate(t,n={skipLocationChange:!1}){return ns(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=l({},es):n===!1?i=l({},rs):i=n,K(t))return jr(this.currentUrlTree,t,i);let s=this.parseUrl(t);return jr(this.currentUrlTree,s,i)}removeEmptyProps(t){return Object.entries(t).reduce((n,[i,s])=>(s!=null&&(n[i]=s),n),{})}scheduleNavigation(t,n,i,s,o){if(this.disposed)return Promise.resolve(!1);let u,a,c;o?(u=o.resolve,a=o.reject,c=o.promise):c=new Promise((d,y)=>{u=d,a=y});let h=this.pendingTasks.add();return Ji(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:s,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ns(e){for(let r=0;r<e.length;r++)if(e[r]==null)throw new w(4008,!1)}function is(e){return!(e instanceof It)&&!(e instanceof ut)}var Br=(()=>{class e{constructor(t,n,i,s,o,u){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=u,this.href=null,this.onChanges=new B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let a=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof F&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(K(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,i,s,o){let u=this.urlTree;if(u===null||this.isAnchorElement&&(t!==0||n||i||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let n=this.href===null?null:mr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(t,n){let i=this.renderer,s=this.el.nativeElement;n!==null?i.setAttribute(s,t,n):i.removeAttribute(s,t)}get urlTree(){return this.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{this.\u0275fac=function(n){return new(n||e)(P(ie),P(Y),pr("tabindex"),P(ge),P(pe),P(me))}}static{this.\u0275dir=jt({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Ir("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),n&2&&wr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",_t],skipLocationChange:[2,"skipLocationChange","skipLocationChange",_t],replaceUrl:[2,"replaceUrl","replaceUrl",_t],routerLink:"routerLink"},standalone:!0,features:[Cr,Lt]})}}return e})(),Qs=(()=>{class e{get isActive(){return this._isActive}constructor(t,n,i,s,o){this.router=t,this.element=n,this.renderer=i,this.cdr=s,this.link=o,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new et,this.routerEventsSubscription=t.events.subscribe(u=>{u instanceof F&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(ae()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=T(t).pipe(ae()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(t){let n=Array.isArray(t)?t:t.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(n=>{t?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),t&&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!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let n=ss(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?t.isActive(s,n):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static{this.\u0275fac=function(n){return new(n||e)(P(ie),P(pe),P(ge),P(kt),P(Br,8))}}static{this.\u0275dir=jt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,s){if(n&1&&Ar(s,Br,5),n&2){let o;Mr(o=Dr())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Lt]})}}return e})();function ss(e){return!!e.paths}var os=new $("");function Ks(e,...r){return fr([{provide:Je,multi:!0,useValue:e},[],{provide:Y,useFactory:as,deps:[ie]},{provide:Ur,multi:!0,useFactory:cs},r.map(t=>t.\u0275providers)])}function as(e){return e.routerState.root}function us(e,r){return{\u0275kind:e,\u0275providers:r}}function cs(){let e=g(gr);return r=>{let t=e.get(xr);if(r!==t.components[0])return;let n=e.get(ie),i=e.get(ls);e.get(hs)===1&&n.initialNavigation(),e.get(ds,null,he.Optional)?.setUpPreloading(),e.get(os,null,he.Optional)?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ls=new $("",{factory:()=>new B}),hs=new $("",{providedIn:"root",factory:()=>1});var ds=new $("");function Zs(){return us(8,[_r,{provide:re,useExisting:_r}])}export{Y as a,Kn as b,ie as c,Br as d,Qs as e,Ks as f,Zs as g};
1
+ import{b as Nr}from"./chunk-XG5WW7WW.js";import{$ as fr,$a as wr,A as tt,B as or,D as Nt,E as H,F as le,G as ar,H as ur,J as cr,K as x,Ka as mr,L as lr,M as R,N as w,Na as P,Nb as Tr,P as b,Pa as ge,Qa as yr,R as hr,S as $,T as he,U as de,V as g,Wb as Or,X as dr,Xa as Cr,Xb as Er,Ya as Rr,Yb as Ur,Z as jt,Za as Sr,Zb as xr,_b as ve,a as er,ac as kt,ba as $t,c as rr,ca as k,cc as _t,e as se,ea as Lt,f as oe,g as B,gc as Pr,h as D,ia as fe,j as V,ja as pr,k as T,ka as gr,l as f,lb as br,lc as me,m as dt,ma as vr,mc as zt,n as nr,na as et,o as ir,p as m,q as Pt,qb as Ir,r as O,s as ae,sa as pe,t as sr,u as ue,w as X,x as J,xb as Ar,y as ft,yb as Mr,z as ce,zb as Dr}from"./chunk-NUWA7AOR.js";import{a as l,b as I}from"./chunk-7CGTOI24.js";var p="primary",Ot=Symbol("RouteTitle"),we=class{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function at(e){return new we(e)}function Rn(e,r,t){let n=t.path.split("/");if(n.length>e.length||t.pathMatch==="full"&&(r.hasChildren()||n.length<e.length))return null;let i={};for(let s=0;s<n.length;s++){let o=n[s],u=e[s];if(o[0]===":")i[o.substring(1)]=u;else if(o!==u.path)return null}return{consumed:e.slice(0,n.length),posParams:i}}function Sn(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!L(e[t],r[t]))return!1;return!0}function L(e,r){let t=e?be(e):void 0,n=r?be(r):void 0;if(!t||!n||t.length!=n.length)return!1;let i;for(let s=0;s<t.length;s++)if(i=t[s],!Vr(e[i],r[i]))return!1;return!0}function be(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Vr(e,r){if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;let t=[...e].sort(),n=[...r].sort();return t.every((i,s)=>n[s]===i)}else return e===r}function Hr(e){return e.length>0?e[e.length-1]:null}function W(e){return nr(e)?e:Er(e)?T(Promise.resolve(e)):f(e)}var wn={exact:Gr,subset:Qr},Wr={exact:bn,subset:In,ignored:()=>!0};function jr(e,r,t){return wn[t.paths](e.root,r.root,t.matrixParams)&&Wr[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function bn(e,r){return L(e,r)}function Gr(e,r,t){if(!Q(e.segments,r.segments)||!Bt(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!Gr(e.children[n],r.children[n],t))return!1;return!0}function In(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>Vr(e[t],r[t]))}function Qr(e,r,t){return Kr(e,r,r.segments,t)}function Kr(e,r,t,n){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!Q(i,t)||r.hasChildren()||!Bt(i,t,n))}else if(e.segments.length===t.length){if(!Q(e.segments,t)||!Bt(e.segments,t,n))return!1;for(let i in r.children)if(!e.children[i]||!Qr(e.children[i],r.children[i],n))return!1;return!0}else{let i=t.slice(0,e.segments.length),s=t.slice(e.segments.length);return!Q(e.segments,i)||!Bt(e.segments,i,n)||!e.children[p]?!1:Kr(e.children[p],r,s,n)}}function Bt(e,r,t){return r.every((n,i)=>Wr[t](e[i].parameters,n.parameters))}var z=class{constructor(r=new v([],{}),t={},n=null){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=at(this.queryParams),this._queryParamMap}toString(){return Dn.serialize(this)}},v=class{constructor(r,t){this.segments=r,this.children=t,this.parent=null,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vt(this)}},G=class{constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=at(this.parameters),this._parameterMap}toString(){return Yr(this)}};function An(e,r){return Q(e,r)&&e.every((t,n)=>L(t.parameters,r[n].parameters))}function Q(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function Mn(e,r){let t=[];return Object.entries(e.children).forEach(([n,i])=>{n===p&&(t=t.concat(r(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==p&&(t=t.concat(r(i,n)))}),t}var Ke=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>new Rt,providedIn:"root"})}}return e})(),Rt=class{parse(r){let t=new Ae(r);return new z(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${pt(r.root,!0)}`,n=En(r.queryParams),i=typeof r.fragment=="string"?`#${Tn(r.fragment)}`:"";return`${t}${n}${i}`}},Dn=new Rt;function Vt(e){return e.segments.map(r=>Yr(r)).join("/")}function pt(e,r){if(!e.hasChildren())return Vt(e);if(r){let t=e.children[p]?pt(e.children[p],!1):"",n=[];return Object.entries(e.children).forEach(([i,s])=>{i!==p&&n.push(`${i}:${pt(s,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=Mn(e,(n,i)=>i===p?[pt(e.children[p],!1)]:[`${i}:${pt(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[p]!=null?`${Vt(e)}/${t[0]}`:`${Vt(e)}/(${t.join("//")})`}}function Zr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ft(e){return Zr(e).replace(/%3B/gi,";")}function Tn(e){return encodeURI(e)}function Ie(e){return Zr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ht(e){return decodeURIComponent(e)}function $r(e){return Ht(e.replace(/\+/g,"%20"))}function Yr(e){return`${Ie(e.path)}${On(e.parameters)}`}function On(e){return Object.entries(e).map(([r,t])=>`;${Ie(r)}=${Ie(t)}`).join("")}function En(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(i=>`${Ft(t)}=${Ft(i)}`).join("&"):`${Ft(t)}=${Ft(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var Un=/^[^\/()?;#]+/;function ye(e){let r=e.match(Un);return r?r[0]:""}var xn=/^[^\/()?;=#]+/;function Pn(e){let r=e.match(xn);return r?r[0]:""}var Nn=/^[^=?&#]+/;function jn(e){let r=e.match(Nn);return r?r[0]:""}var $n=/^[^&#]+/;function Ln(e){let r=e.match($n);return r?r[0]:""}var Ae=class{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(t).length>0)&&(n[p]=new v(r,t)),n}parseSegment(){let r=ye(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new G(Ht(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=Pn(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=ye(this.remaining);i&&(n=i,this.capture(n))}r[Ht(t)]=Ht(n)}parseQueryParam(r){let t=jn(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let o=Ln(this.remaining);o&&(n=o,this.capture(n))}let i=$r(t),s=$r(n);if(r.hasOwnProperty(i)){let o=r[i];Array.isArray(o)||(o=[o],r[i]=o),o.push(s)}else r[i]=s}parseParens(r){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=ye(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=p);let o=this.parseChildren();t[s]=Object.keys(o).length===1?o[p]:new v([],o),this.consumeOptional("//")}return t}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new w(4011,!1)}};function Xr(e){return e.segments.length>0?new v([],{[p]:e}):e}function Jr(e){let r={};for(let[n,i]of Object.entries(e.children)){let s=Jr(i);if(n===p&&s.segments.length===0&&s.hasChildren())for(let[o,u]of Object.entries(s.children))r[o]=u;else(s.segments.length>0||s.hasChildren())&&(r[n]=s)}let t=new v(e.segments,r);return kn(t)}function kn(e){if(e.numberOfChildren===1&&e.children[p]){let r=e.children[p];return new v(e.segments.concat(r.segments),r.children)}return e}function K(e){return e instanceof z}function _n(e,r,t=null,n=null){let i=tn(e);return en(i,r,t,n)}function tn(e){let r;function t(s){let o={};for(let a of s.children){let c=t(a);o[a.outlet]=c}let u=new v(s.url,o);return s===e&&(r=u),u}let n=t(e.root),i=Xr(n);return r??i}function en(e,r,t,n){let i=e;for(;i.parent;)i=i.parent;if(r.length===0)return Ce(i,i,i,t,n);let s=zn(r);if(s.toRoot())return Ce(i,i,new v([],{}),t,n);let o=Fn(s,i,e),u=o.processChildren?mt(o.segmentGroup,o.index,s.commands):nn(o.segmentGroup,o.index,s.commands);return Ce(i,o.segmentGroup,u,t,n)}function Wt(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function St(e){return typeof e=="object"&&e!=null&&e.outlets}function Ce(e,r,t,n,i){let s={};n&&Object.entries(n).forEach(([a,c])=>{s[a]=Array.isArray(c)?c.map(h=>`${h}`):`${c}`});let o;e===r?o=t:o=rn(e,r,t);let u=Xr(Jr(o));return new z(u,s,i)}function rn(e,r,t){let n={};return Object.entries(e.children).forEach(([i,s])=>{s===r?n[i]=t:n[i]=rn(s,r,t)}),new v(e.segments,n)}var Gt=class{constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&Wt(n[0]))throw new w(4003,!1);let i=n.find(St);if(i&&i!==Hr(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function zn(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Gt(!0,0,e);let r=0,t=!1,n=e.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let u={};return Object.entries(s.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?t=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,s]},[]);return new Gt(t,r,n)}var it=class{constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function Fn(e,r,t){if(e.isAbsolute)return new it(r,!0,0);if(!t)return new it(r,!1,NaN);if(t.parent===null)return new it(t,!0,0);let n=Wt(e.commands[0])?0:1,i=t.segments.length-1+n;return qn(t,i,e.numberOfDoubleDots)}function qn(e,r,t){let n=e,i=r,s=t;for(;s>i;){if(s-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new it(n,!1,i-s)}function Bn(e){return St(e[0])?e[0].outlets:{[p]:e}}function nn(e,r,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return mt(e,r,t);let n=Vn(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let s=new v(e.segments.slice(0,n.pathIndex),{});return s.children[p]=new v(e.segments.slice(n.pathIndex),e.children),mt(s,0,i)}else return n.match&&i.length===0?new v(e.segments,{}):n.match&&!e.hasChildren()?Me(e,r,t):n.match?mt(e,0,i):Me(e,r,t)}function mt(e,r,t){if(t.length===0)return new v(e.segments,{});{let n=Bn(t),i={};if(Object.keys(n).some(s=>s!==p)&&e.children[p]&&e.numberOfChildren===1&&e.children[p].segments.length===0){let s=mt(e.children[p],r,t);return new v(e.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=nn(e.children[s],r,o))}),Object.entries(e.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new v(e.segments,i)}}function Vn(e,r,t){let n=0,i=r,s={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=t.length)return s;let o=e.segments[i],u=t[n];if(St(u))break;let a=`${u}`,c=n<t.length-1?t[n+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!kr(a,c,o))return s;n+=2}else{if(!kr(a,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Me(e,r,t){let n=e.segments.slice(0,r),i=0;for(;i<t.length;){let s=t[i];if(St(s)){let a=Hn(s.outlets);return new v(n,a)}if(i===0&&Wt(t[0])){let a=e.segments[r];n.push(new G(a.path,Lr(t[0]))),i++;continue}let o=St(s)?s.outlets[p]:`${s}`,u=i<t.length-1?t[i+1]:null;o&&u&&Wt(u)?(n.push(new G(o,Lr(u))),i+=2):(n.push(new G(o,{})),i++)}return new v(n,{})}function Hn(e){let r={};return Object.entries(e).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[t]=Me(new v([],{}),0,n))}),r}function Lr(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function kr(e,r,t){return e==t.path&&L(r,t.parameters)}var yt="imperative",C=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(C||{}),E=class{constructor(r,t){this.id=r,this.url=t}},wt=class extends E{constructor(r,t,n="imperative",i=null){super(r,t),this.type=C.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},F=class extends E{constructor(r,t,n){super(r,t),this.urlAfterRedirects=n,this.type=C.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},M=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(M||{}),De=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(De||{}),_=class extends E{constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i,this.type=C.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Z=class extends E{constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i,this.type=C.NavigationSkipped}},bt=class extends E{constructor(r,t,n,i){super(r,t),this.error=n,this.target=i,this.type=C.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Qt=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Te=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Oe=class extends E{constructor(r,t,n,i,s){super(r,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s,this.type=C.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ee=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ue=class extends E{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=C.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xe=class{constructor(r){this.route=r,this.type=C.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Pe=class{constructor(r){this.route=r,this.type=C.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ne=class{constructor(r){this.snapshot=r,this.type=C.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},je=class{constructor(r){this.snapshot=r,this.type=C.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$e=class{constructor(r){this.snapshot=r,this.type=C.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Le=class{constructor(r){this.snapshot=r,this.type=C.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var It=class{},ut=class{constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function Wn(e,r){return e.providers&&!e._injector&&(e._injector=Sr(e.providers,r,`Route: ${e.path}`)),e._injector??r}function N(e){return e.outlet||p}function Gn(e,r){let t=e.filter(n=>N(n)===r);return t.push(...e.filter(n=>N(n)!==r)),t}function Et(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let r=e.parent;r;r=r.parent){let t=r.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var ke=class{get injector(){return Et(this.route?.snapshot)??this.rootInjector}set injector(r){}constructor(r){this.rootInjector=r,this.outlet=null,this.route=null,this.children=new ee(this.rootInjector),this.attachRef=null}},ee=(()=>{class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,n){let i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new ke(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static{this.\u0275fac=function(n){return new(n||e)(de($t))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Kt=class{constructor(r){this._root=r}get root(){return this._root.value}parent(r){let t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){let t=_e(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){let t=_e(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){let t=ze(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return ze(r,this._root).map(t=>t.value)}};function _e(e,r){if(e===r.value)return r;for(let t of r.children){let n=_e(e,t);if(n)return n}return null}function ze(e,r){if(e===r.value)return[r];for(let t of r.children){let n=ze(e,t);if(n.length)return n.unshift(r),n}return[]}var A=class{constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function nt(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Zt=class extends Kt{constructor(r,t){super(r),this.snapshot=t,Ze(this,r)}toString(){return this.snapshot.toString()}};function sn(e){let r=Qn(e),t=new D([new G("",{})]),n=new D({}),i=new D({}),s=new D({}),o=new D(""),u=new Y(t,n,s,o,i,p,e,r.root);return u.snapshot=r.root,new Zt(new A(u,[]),r)}function Qn(e){let r={},t={},n={},i="",s=new st([],r,n,i,t,p,e,null,{});return new Xt("",new A(s,[]))}var Y=class{constructor(r,t,n,i,s,o,u,a){this.urlSubject=r,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[Ot]))??f(void 0),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(m(r=>at(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(r=>at(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Yt(e,r,t="emptyOnly"){let n,{routeConfig:i}=e;return r!==null&&(t==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:l(l({},r.params),e.params),data:l(l({},r.data),e.data),resolve:l(l(l(l({},e.data),r.data),i?.data),e._resolvedData)}:n={params:l({},e.params),data:l({},e.data),resolve:l(l({},e.data),e._resolvedData??{})},i&&an(i)&&(n.resolve[Ot]=i.title),n}var st=class{get title(){return this.data?.[Ot]}constructor(r,t,n,i,s,o,u,a,c){this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=u,this.routeConfig=a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=at(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=at(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${t}')`}},Xt=class extends Kt{constructor(r,t){super(t),this.url=r,Ze(this,t)}toString(){return on(this._root)}};function Ze(e,r){r.value._routerState=e,r.children.forEach(t=>Ze(e,t))}function on(e){let r=e.children.length>0?` { ${e.children.map(on).join(", ")} } `:"";return`${e.value}${r}`}function Re(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,L(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),L(r.params,t.params)||e.paramsSubject.next(t.params),Sn(r.url,t.url)||e.urlSubject.next(t.url),L(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Fe(e,r){let t=L(e.params,r.params)&&An(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||Fe(e.parent,r.parent))}function an(e){return typeof e.title=="string"||e.title===null}var Kn=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=p,this.activateEvents=new et,this.deactivateEvents=new et,this.attachEvents=new et,this.detachEvents=new et,this.parentContexts=g(ee),this.location=g(yr),this.changeDetector=g(kt),this.inputBinder=g(re,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:i}=t.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=t;let i=this.location,o=t.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new qe(t,u,i.injector);this.activated=i.createComponent(o,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=jt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Lt]})}}return e})(),qe=class e{__ngOutletInjector(r){return new e(this.route,this.childContexts,r)}constructor(r,t,n){this.route=r,this.childContexts=t,this.parent=n}get(r,t){return r===Y?this.route:r===ee?this.childContexts:this.parent.get(r,t)}},re=new $(""),_r=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,i=Pt([n.queryParams,n.params,n.data]).pipe(x(([s,o,u],a)=>(u=l(l(l({},s),o),u),a===0?f(u):Promise.resolve(u)))).subscribe(s=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let o=Pr(n.component);if(!o){this.unsubscribeFromRouteData(t);return}for(let{templateName:u}of o.inputs)t.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(t,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})();function Zn(e,r,t){let n=At(e,r._root,t?t._root:void 0);return new Zt(n,r)}function At(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let i=Yn(e,r,t);return new A(n,i)}else{if(e.shouldAttach(r.value)){let s=e.retrieve(r.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=r.value,o.children=r.children.map(u=>At(e,u)),o}}let n=Xn(r.value),i=r.children.map(s=>At(e,s));return new A(n,i)}}function Yn(e,r,t){return r.children.map(n=>{for(let i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return At(e,n,i);return At(e,n)})}function Xn(e){return new Y(new D(e.url),new D(e.params),new D(e.queryParams),new D(e.fragment),new D(e.data),e.outlet,e.component,e)}var Mt=class{constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},un="ngNavigationCancelingError";function Jt(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=K(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=cn(!1,M.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function cn(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[un]=!0,t.cancellationCode=r,t}function Jn(e){return ln(e)&&K(e.url)}function ln(e){return!!e&&e[un]}var ti=(e,r,t,n)=>m(i=>(new Be(r,i.targetRouterState,i.currentRouterState,t,n).activate(e),i)),Be=class{constructor(r,t,n,i,s){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(r){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),Re(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){let i=nt(t);r.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],n),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(r,t,n){let i=r.value,s=t?t.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(r,t,o.children)}else this.deactivateChildRoutes(r,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(r,t){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,t):this.deactivateRouteAndOutlet(r,t)}detachAndStoreRouteSubtree(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,s=nt(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(n&&n.outlet){let o=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:o,route:r,contexts:u})}}deactivateRouteAndOutlet(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,s=nt(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,t,n){let i=nt(t);r.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new Le(s.value.snapshot))}),r.children.length&&this.forwardEvent(new je(r.value.snapshot))}activateRoutes(r,t,n){let i=r.value,s=t?t.value:null;if(Re(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,t,o.children)}else this.activateChildRoutes(r,t,n);else if(i.component){let o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(u.contexts),o.attachRef=u.componentRef,o.route=u.route.value,o.outlet&&o.outlet.attach(u.componentRef,u.route.value),Re(u.route.value),this.activateChildRoutes(r,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(r,null,o.children)}else this.activateChildRoutes(r,null,n)}},te=class{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},ot=class{constructor(r,t){this.component=r,this.route=t}};function ei(e,r,t){let n=e._root,i=r?r._root:null;return gt(n,i,t,[n.value])}function ri(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function lt(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!hr(e)?e:r.get(e):n}function gt(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=nt(r);return e.children.forEach(o=>{ni(o,s[o.value.outlet],t,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,u])=>Ct(u,t.getContext(o),i)),i}function ni(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=r?r.value:null,u=t?t.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=ii(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new te(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?gt(e,r,u?u.children:null,n,i):gt(e,r,t,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new ot(u.outlet.component,o))}else o&&Ct(r,u,i),i.canActivateChecks.push(new te(n)),s.component?gt(e,null,u?u.children:null,n,i):gt(e,null,t,n,i);return i}function ii(e,r,t){if(typeof t=="function")return t(e,r);switch(t){case"pathParamsChange":return!Q(e.url,r.url);case"pathParamsOrQueryParamsChange":return!Q(e.url,r.url)||!L(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Fe(e,r)||!L(e.queryParams,r.queryParams);case"paramsChange":default:return!Fe(e,r)}}function Ct(e,r,t){let n=nt(e),i=e.value;Object.entries(n).forEach(([s,o])=>{i.component?r?Ct(o,r.children.getContext(s),t):Ct(o,null,t):Ct(o,r,t)}),i.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new ot(r.outlet.component,i)):t.canDeactivateChecks.push(new ot(null,i)):t.canDeactivateChecks.push(new ot(null,i))}function Ut(e){return typeof e=="function"}function si(e){return typeof e=="boolean"}function oi(e){return e&&Ut(e.canLoad)}function ai(e){return e&&Ut(e.canActivate)}function ui(e){return e&&Ut(e.canActivateChild)}function ci(e){return e&&Ut(e.canDeactivate)}function li(e){return e&&Ut(e.canMatch)}function hn(e){return e instanceof ir||e?.name==="EmptyError"}var qt=Symbol("INITIAL_VALUE");function ct(){return x(e=>Pt(e.map(r=>r.pipe(tt(1),cr(qt)))).pipe(m(r=>{for(let t of r)if(t!==!0){if(t===qt)return qt;if(t===!1||hi(t))return t}return!0}),X(r=>r!==qt),tt(1)))}function hi(e){return K(e)||e instanceof Mt}function di(e,r){return O(t=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=t;return o.length===0&&s.length===0?f(I(l({},t),{guardsResult:!0})):fi(o,n,i,e).pipe(O(u=>u&&si(u)?pi(n,s,e,r):f(u)),m(u=>I(l({},t),{guardsResult:u})))})}function fi(e,r,t,n){return T(e).pipe(O(i=>Ci(i.component,i.route,t,r,n)),H(i=>i!==!0,!0))}function pi(e,r,t,n){return T(r).pipe(ft(i=>sr(vi(i.route.parent,n),gi(i.route,n),yi(e,i.path,t),mi(e,i.route,t))),H(i=>i!==!0,!0))}function gi(e,r){return e!==null&&r&&r(new $e(e)),f(!0)}function vi(e,r){return e!==null&&r&&r(new Ne(e)),f(!0)}function mi(e,r,t){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return f(!0);let i=n.map(s=>ue(()=>{let o=Et(r)??t,u=lt(s,o),a=ai(u)?u.canActivate(r,e):k(o,()=>u(r,e));return W(a).pipe(H())}));return f(i).pipe(ct())}function yi(e,r,t){let n=r[r.length-1],s=r.slice(0,r.length-1).reverse().map(o=>ri(o)).filter(o=>o!==null).map(o=>ue(()=>{let u=o.guards.map(a=>{let c=Et(o.node)??t,h=lt(a,c),d=ui(h)?h.canActivateChild(n,e):k(c,()=>h(n,e));return W(d).pipe(H())});return f(u).pipe(ct())}));return f(s).pipe(ct())}function Ci(e,r,t,n,i){let s=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(u=>{let a=Et(r)??i,c=lt(u,a),h=ci(c)?c.canDeactivate(e,r,t,n):k(a,()=>c(e,r,t,n));return W(h).pipe(H())});return f(o).pipe(ct())}function Ri(e,r,t,n){let i=r.canLoad;if(i===void 0||i.length===0)return f(!0);let s=i.map(o=>{let u=lt(o,e),a=oi(u)?u.canLoad(r,t):k(e,()=>u(r,t));return W(a)});return f(s).pipe(ct(),dn(n))}function dn(e){return rr(R(r=>{if(typeof r!="boolean")throw Jt(e,r)}),m(r=>r===!0))}function Si(e,r,t,n){let i=r.canMatch;if(!i||i.length===0)return f(!0);let s=i.map(o=>{let u=lt(o,e),a=li(u)?u.canMatch(r,t):k(e,()=>u(r,t));return W(a)});return f(s).pipe(ct(),dn(n))}var Dt=class{constructor(r){this.segmentGroup=r||null}},Tt=class extends Error{constructor(r){super(),this.urlTree=r}};function rt(e){return dt(new Dt(e))}function wi(e){return dt(new w(4e3,!1))}function bi(e){return dt(cn(!1,M.GuardRejected))}var Ve=class{constructor(r,t){this.urlSerializer=r,this.urlTree=t}lineralizeSegments(r,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return f(n);if(i.numberOfChildren>1||!i.children[p])return wi(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,t,n,i,s){if(typeof t!="string"){let u=t,{queryParams:a,fragment:c,routeConfig:h,url:d,outlet:y,params:j,data:S,title:q}=i,U=k(s,()=>u({params:j,data:S,queryParams:a,fragment:c,routeConfig:h,url:d,outlet:y,title:q}));if(U instanceof z)throw new Tt(U);t=U}let o=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),r,n);if(t[0]==="/")throw new Tt(o);return o}applyRedirectCreateUrlTree(r,t,n,i){let s=this.createSegmentGroup(r,t.root,n,i);return new z(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){let n={};return Object.entries(r).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let u=s.substring(1);n[i]=t[u]}else n[i]=s}),n}createSegmentGroup(r,t,n,i){let s=this.createSegments(r,t.segments,n,i),o={};return Object.entries(t.children).forEach(([u,a])=>{o[u]=this.createSegmentGroup(r,a,n,i)}),new v(s,o)}createSegments(r,t,n,i){return t.map(s=>s.path[0]===":"?this.findPosParam(r,s,i):this.findOrReturn(s,n))}findPosParam(r,t,n){let i=n[t.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(r,t){let n=0;for(let i of t){if(i.path===r.path)return t.splice(n),i;n++}return r}},He={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ii(e,r,t,n,i){let s=fn(e,r,t);return s.matched?(n=Wn(r,n),Si(n,r,t,i).pipe(m(o=>o===!0?s:l({},He)))):f(s)}function fn(e,r,t){if(r.path==="**")return Ai(t);if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?l({},He):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Rn)(t,e,r);if(!i)return l({},He);let s={};Object.entries(i.posParams??{}).forEach(([u,a])=>{s[u]=a.path});let o=i.consumed.length>0?l(l({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function Ai(e){return{matched:!0,parameters:e.length>0?Hr(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function zr(e,r,t,n){return t.length>0&&Ti(e,t,n)?{segmentGroup:new v(r,Di(n,new v(t,e.children))),slicedSegments:[]}:t.length===0&&Oi(e,t,n)?{segmentGroup:new v(e.segments,Mi(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function Mi(e,r,t,n){let i={};for(let s of t)if(ne(e,r,s)&&!n[N(s)]){let o=new v([],{});i[N(s)]=o}return l(l({},n),i)}function Di(e,r){let t={};t[p]=r;for(let n of e)if(n.path===""&&N(n)!==p){let i=new v([],{});t[N(n)]=i}return t}function Ti(e,r,t){return t.some(n=>ne(e,r,n)&&N(n)!==p)}function Oi(e,r,t){return t.some(n=>ne(e,r,n))}function ne(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function Ei(e,r,t){return r.length===0&&!e.children[t]}var We=class{};function Ui(e,r,t,n,i,s,o="emptyOnly"){return new Ge(e,r,t,n,i,o,s).recognize()}var xi=31,Ge=class{constructor(r,t,n,i,s,o,u){this.injector=r,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=u,this.applyRedirects=new Ve(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}recognize(){let r=zr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(m(({children:t,rootSnapshot:n})=>{let i=new A(n,t),s=new Xt("",i),o=_n(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(r){let t=new st([],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,t).pipe(m(n=>({children:n,rootSnapshot:t})),J(n=>{if(n instanceof Tt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Dt?this.noMatchError(n):n}))}processSegmentGroup(r,t,n,i,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,t,n,s):this.processSegment(r,t,n,n.segments,i,!0,s).pipe(m(o=>o instanceof A?[o]:[]))}processChildren(r,t,n,i){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return T(s).pipe(ft(o=>{let u=n.children[o],a=Gn(t,o);return this.processSegmentGroup(r,a,u,o,i)}),ur((o,u)=>(o.push(...u),o)),ce(null),ar(),O(o=>{if(o===null)return rt(n);let u=pn(o);return Pi(u),f(u)}))}processSegment(r,t,n,i,s,o,u){return T(t).pipe(ft(a=>this.processSegmentAgainstRoute(a._injector??r,t,a,n,i,s,o,u).pipe(J(c=>{if(c instanceof Dt)return f(null);throw c}))),H(a=>!!a),J(a=>{if(hn(a))return Ei(n,i,s)?f(new We):rt(n);throw a}))}processSegmentAgainstRoute(r,t,n,i,s,o,u,a){return N(n)!==o&&(o===p||!ne(i,s,n))?rt(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,s,o,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,t,n,s,o,a):rt(i)}expandSegmentAgainstRouteUsingRedirect(r,t,n,i,s,o,u){let{matched:a,parameters:c,consumedSegments:h,positionalParamSegments:d,remainingSegments:y}=fn(t,i,s);if(!a)return rt(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xi&&(this.allowRedirects=!1));let j=new st(s,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Fr(i),N(i),i.component??i._loadedComponent??null,i,qr(i)),S=Yt(j,u,this.paramsInheritanceStrategy);j.params=Object.freeze(S.params),j.data=Object.freeze(S.data);let q=this.applyRedirects.applyRedirectCommands(h,i.redirectTo,d,j,r);return this.applyRedirects.lineralizeSegments(i,q).pipe(O(U=>this.processSegment(r,n,t,U.concat(y),o,!1,u)))}matchSegmentAgainstRoute(r,t,n,i,s,o){let u=Ii(t,n,i,r,this.urlSerializer);return n.path==="**"&&(t.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:d,consumedSegments:y,remainingSegments:j}=a,S=new st(y,d,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Fr(n),N(n),n.component??n._loadedComponent??null,n,qr(n)),q=Yt(S,o,this.paramsInheritanceStrategy);S.params=Object.freeze(q.params),S.data=Object.freeze(q.data);let{segmentGroup:U,slicedSegments:ht}=zr(t,y,j,c);if(ht.length===0&&U.hasChildren())return this.processChildren(h,c,U,S).pipe(m(xt=>new A(S,xt)));if(c.length===0&&ht.length===0)return f(new A(S,[]));let Cn=N(n)===s;return this.processSegment(h,c,U,ht,Cn?p:s,!0,S).pipe(m(xt=>new A(S,xt instanceof A?[xt]:[])))}))):rt(t)))}getChildConfig(r,t,n){return t.children?f({routes:t.children,injector:r}):t.loadChildren?t._loadedRoutes!==void 0?f({routes:t._loadedRoutes,injector:t._loadedInjector}):Ri(r,t,n,this.urlSerializer).pipe(O(i=>i?this.configLoader.loadChildren(r,t).pipe(R(s=>{t._loadedRoutes=s.routes,t._loadedInjector=s.injector})):bi(t))):f({routes:[],injector:r})}};function Pi(e){e.sort((r,t)=>r.value.outlet===p?-1:t.value.outlet===p?1:r.value.outlet.localeCompare(t.value.outlet))}function Ni(e){let r=e.value.routeConfig;return r&&r.path===""}function pn(e){let r=[],t=new Set;for(let n of e){if(!Ni(n)){r.push(n);continue}let i=r.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):r.push(n)}for(let n of t){let i=pn(n.children);r.push(new A(n.value,i))}return r.filter(n=>!t.has(n))}function Fr(e){return e.data||{}}function qr(e){return e.resolve||{}}function ji(e,r,t,n,i,s){return O(o=>Ui(e,r,t,n,o.extractedUrl,i,s).pipe(m(({state:u,tree:a})=>I(l({},o),{targetSnapshot:u,urlAfterRedirects:a}))))}function $i(e,r){return O(t=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=t;if(!i.length)return f(t);let s=new Set(i.map(a=>a.route)),o=new Set;for(let a of s)if(!o.has(a))for(let c of gn(a))o.add(c);let u=0;return T(o).pipe(ft(a=>s.has(a)?Li(a,n,e,r):(a.data=Yt(a,a.parent,e).resolve,f(void 0))),R(()=>u++),le(1),O(a=>u===o.size?f(t):V))})}function gn(e){let r=e.children.map(t=>gn(t)).flat();return[e,...r]}function Li(e,r,t,n){let i=e.routeConfig,s=e._resolve;return i?.title!==void 0&&!an(i)&&(s[Ot]=i.title),ki(s,e,r,n).pipe(m(o=>(e._resolvedData=o,e.data=Yt(e,e.parent,t).resolve,null)))}function ki(e,r,t,n){let i=be(e);if(i.length===0)return f({});let s={};return T(i).pipe(O(o=>_i(e[o],r,t,n).pipe(H(),R(u=>{if(u instanceof Mt)throw Jt(new Rt,u);s[o]=u}))),le(1),or(s),J(o=>hn(o)?V:dt(o)))}function _i(e,r,t,n){let i=Et(r)??n,s=lt(e,i),o=s.resolve?s.resolve(r,t):k(i,()=>s(r,t));return W(o)}function Se(e){return x(r=>{let t=e(r);return t?T(t).pipe(m(()=>r)):f(r)})}var vn=(()=>{class e{buildTitle(t){let n,i=t.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(s=>s.outlet===p);return n}getResolvedTitleForRoute(t){return t.data[Ot]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(zi),providedIn:"root"})}}return e})(),zi=(()=>{class e extends vn{constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static{this.\u0275fac=function(n){return new(n||e)(de(Nr))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ye=new $("",{providedIn:"root",factory:()=>({})}),Fi=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=dr({type:e,selectors:[["ng-component"]],standalone:!0,features:[Tr],decls:1,vars:0,template:function(n,i){n&1&&br(0,"router-outlet")},dependencies:[Kn],encapsulation:2})}}return e})();function Xe(e){let r=e.children&&e.children.map(Xe),t=r?I(l({},e),{children:r}):l({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==p&&(t.component=Fi),t}var Je=new $(""),qi=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(ve)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return f(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let n=W(t.loadComponent()).pipe(m(mn),R(s=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s}),Nt(()=>{this.componentLoaders.delete(t)})),i=new oe(n,()=>new B).pipe(se());return this.componentLoaders.set(t,i),i}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=Bi(n,this.compiler,t,this.onLoadEndListener).pipe(Nt(()=>{this.childrenLoaders.delete(n)})),o=new oe(s,()=>new B).pipe(se());return this.childrenLoaders.set(n,o),o}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Bi(e,r,t,n){return W(e.loadChildren()).pipe(m(mn),O(i=>i instanceof Rr||Array.isArray(i)?f(i):T(r.compileModuleAsync(i))),m(i=>{n&&n(e);let s,o,u=!1;return Array.isArray(i)?(o=i,u=!0):(s=i.create(t).injector,o=s.get(Je,[],{optional:!0,self:!0}).flat()),{routes:o.map(Xe),injector:s}}))}function Vi(e){return e&&typeof e=="object"&&"default"in e}function mn(e){return Vi(e)?e.default:e}var tr=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(Hi),providedIn:"root"})}}return e})(),Hi=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Wi=new $("");var Gi=new $(""),Qi=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new B,this.transitionAbortSubject=new B,this.configLoader=g(qi),this.environmentInjector=g($t),this.urlSerializer=g(Ke),this.rootContexts=g(ee),this.location=g(zt),this.inputBindingEnabled=g(re,{optional:!0})!==null,this.titleStrategy=g(vn),this.options=g(Ye,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(tr),this.createViewTransition=g(Wi,{optional:!0}),this.navigationErrorHandler=g(Gi,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let t=i=>this.events.next(new xe(i)),n=i=>this.events.next(new Pe(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;this.transitions?.next(I(l(l({},this.transitions.value),t),{id:n}))}setupNavigations(t,n,i){return this.transitions=new D({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:yt,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(s=>s.id!==0),m(s=>I(l({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),x(s=>{let o=!1,u=!1;return f(s).pipe(x(a=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",M.SupersededByNewNavigation),V;this.currentTransition=s,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?I(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!c&&h!=="reload"){let d="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.rawUrl),d,De.IgnoredSameUrlNavigation)),a.resolve(!1),V}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(x(d=>{let y=this.transitions?.getValue();return this.events.next(new wt(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),y!==this.transitions?.getValue()?V:Promise.resolve(d)}),ji(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),R(d=>{s.targetSnapshot=d.targetSnapshot,s.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=I(l({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let y=new Qt(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:y,source:j,restoredState:S,extras:q}=a,U=new wt(d,this.urlSerializer.serialize(y),j,S);this.events.next(U);let ht=sn(this.rootComponentType).snapshot;return this.currentTransition=s=I(l({},a),{targetSnapshot:ht,urlAfterRedirects:y,extras:I(l({},q),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,f(s)}else{let d="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.extractedUrl),d,De.IgnoredByUrlHandlingStrategy)),a.resolve(!1),V}}),R(a=>{let c=new Te(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=s=I(l({},a),{guards:ei(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),di(this.environmentInjector,a=>this.events.next(a)),R(a=>{if(s.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Jt(this.urlSerializer,a.guardsResult);let c=new Oe(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,"",M.GuardRejected),!1)),Se(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(R(c=>{let h=new Ee(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),x(c=>{let h=!1;return f(c).pipe($i(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",M.NoDataFromResolver)}}))}),R(c=>{let h=new Ue(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),Se(a=>{let c=h=>{let d=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(h.routeConfig).pipe(R(y=>{h.component=y}),m(()=>{})));for(let y of h.children)d.push(...c(y));return d};return Pt(c(a.targetSnapshot.root)).pipe(ce(null),tt(1))}),Se(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:a,targetSnapshot:c}=s,h=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return h?T(h).pipe(m(()=>s)):f(s)}),m(a=>{let c=Zn(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=I(l({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),R(()=>{this.events.next(new It)}),ti(this.rootContexts,t.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),tt(1),R({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new F(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),lr(this.transitionAbortSubject.pipe(R(a=>{throw a}))),Nt(()=>{!o&&!u&&this.cancelNavigationTransition(s,"",M.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(u=!0,ln(a))this.events.next(new _(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),Jn(a)?this.events.next(new ut(a.url,a.navigationBehaviorOptions)):s.resolve(!1);else{let c=new bt(s.id,this.urlSerializer.serialize(s.extractedUrl),a,s.targetSnapshot??void 0);try{let h=k(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(h instanceof Mt){let{message:d,cancellationCode:y}=Jt(this.urlSerializer,h);this.events.next(new _(s.id,this.urlSerializer.serialize(s.extractedUrl),d,y)),this.events.next(new ut(h.redirectTo,h.navigationBehaviorOptions))}else{this.events.next(c);let d=t.errorHandler(a);s.resolve(!!d)}}catch(h){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(h)}}return V}))}))}cancelNavigationTransition(t,n,i){let s=new _(t.id,this.urlSerializer.serialize(t.extractedUrl),n,i);this.events.next(s),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ki(e){return e!==yt}var Zi=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(Yi),providedIn:"root"})}}return e})(),Qe=class{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}},Yi=(()=>{class e extends Qe{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=fe(e)))(i||e)}})()}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),yn=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:()=>g(Xi),providedIn:"root"})}}return e})(),Xi=(()=>{class e extends yn{constructor(){super(...arguments),this.location=g(zt),this.urlSerializer=g(Ke),this.options=g(Ye,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(tr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new z,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=sn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&t(n.url,n.state)})}handleRouterEvent(t,n){if(t instanceof wt)this.stateMemento=this.createStateMemento();else if(t instanceof Z)this.rawUrlTree=n.initialUrl;else if(t instanceof Qt){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??i,n)}}else t instanceof It?(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)):t instanceof _&&(t.code===M.GuardRejected||t.code===M.NoDataFromResolver)?this.restoreHistory(n):t instanceof bt?this.restoreHistory(n,!0):t instanceof F&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,n){let i=t instanceof z?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let s=this.browserPageId,o=l(l({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(i,"",o)}else{let s=l(l({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===t.finalUrl&&s===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=fe(e)))(i||e)}})()}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vt=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(vt||{});function Ji(e,r){e.events.pipe(X(t=>t instanceof F||t instanceof _||t instanceof bt||t instanceof Z),m(t=>t instanceof F||t instanceof Z?vt.COMPLETE:(t instanceof _?t.code===M.Redirect||t.code===M.SupersededByNewNavigation:!1)?vt.REDIRECTING:vt.FAILED),X(t=>t!==vt.REDIRECTING),tt(1)).subscribe(()=>{r()})}function ts(e){throw e}var es={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},rs={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ie=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(Or),this.stateManager=g(yn),this.options=g(Ye,{optional:!0})||{},this.pendingTasks=g(vr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(Qi),this.urlSerializer=g(Ke),this.location=g(zt),this.urlHandlingStrategy=g(tr),this._events=new B,this.errorHandler=this.options.errorHandler||ts,this.navigated=!1,this.routeReuseStrategy=g(Zi),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(Je,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(re,{optional:!0}),this.eventsSubscription=new er,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(n,s),n instanceof _&&n.code!==M.Redirect&&n.code!==M.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof F)this.navigated=!0;else if(n instanceof ut){let o=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"||Ki(i.source)},o);this.scheduleNavigation(u,yt,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}is(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),yt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",n)},0)})}navigateToSyncWithBrowser(t,n,i){let s={replaceUrl:!0},o=i?.navigationId?i:null;if(i){let a=l({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(s.state=a)}let u=this.parseUrl(t);this.scheduleNavigation(u,n,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Xe),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:u,preserveFragment:a}=n,c=a?this.currentUrlTree.fragment:o,h=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":h=l(l({},this.currentUrlTree.queryParams),s);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=s||null}h!==null&&(h=this.removeEmptyProps(h));let d;try{let y=i?i.snapshot:this.routerState.snapshot.root;d=tn(y)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),d=this.currentUrlTree.root}return en(d,t,h,c??null)}navigateByUrl(t,n={skipLocationChange:!1}){let i=K(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,yt,null,n)}navigate(t,n={skipLocationChange:!1}){return ns(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=l({},es):n===!1?i=l({},rs):i=n,K(t))return jr(this.currentUrlTree,t,i);let s=this.parseUrl(t);return jr(this.currentUrlTree,s,i)}removeEmptyProps(t){return Object.entries(t).reduce((n,[i,s])=>(s!=null&&(n[i]=s),n),{})}scheduleNavigation(t,n,i,s,o){if(this.disposed)return Promise.resolve(!1);let u,a,c;o?(u=o.resolve,a=o.reject,c=o.promise):c=new Promise((d,y)=>{u=d,a=y});let h=this.pendingTasks.add();return Ji(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:s,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ns(e){for(let r=0;r<e.length;r++)if(e[r]==null)throw new w(4008,!1)}function is(e){return!(e instanceof It)&&!(e instanceof ut)}var Br=(()=>{class e{constructor(t,n,i,s,o,u){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=u,this.href=null,this.onChanges=new B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let a=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof F&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(K(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,i,s,o){let u=this.urlTree;if(u===null||this.isAnchorElement&&(t!==0||n||i||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let n=this.href===null?null:mr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(t,n){let i=this.renderer,s=this.el.nativeElement;n!==null?i.setAttribute(s,t,n):i.removeAttribute(s,t)}get urlTree(){return this.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{this.\u0275fac=function(n){return new(n||e)(P(ie),P(Y),pr("tabindex"),P(ge),P(pe),P(me))}}static{this.\u0275dir=jt({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Ir("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),n&2&&wr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",_t],skipLocationChange:[2,"skipLocationChange","skipLocationChange",_t],replaceUrl:[2,"replaceUrl","replaceUrl",_t],routerLink:"routerLink"},standalone:!0,features:[Cr,Lt]})}}return e})(),Qs=(()=>{class e{get isActive(){return this._isActive}constructor(t,n,i,s,o){this.router=t,this.element=n,this.renderer=i,this.cdr=s,this.link=o,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new et,this.routerEventsSubscription=t.events.subscribe(u=>{u instanceof F&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(ae()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=T(t).pipe(ae()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(t){let n=Array.isArray(t)?t:t.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(n=>{t?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),t&&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!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let n=ss(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?t.isActive(s,n):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static{this.\u0275fac=function(n){return new(n||e)(P(ie),P(pe),P(ge),P(kt),P(Br,8))}}static{this.\u0275dir=jt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,s){if(n&1&&Ar(s,Br,5),n&2){let o;Mr(o=Dr())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Lt]})}}return e})();function ss(e){return!!e.paths}var os=new $("");function Ks(e,...r){return fr([{provide:Je,multi:!0,useValue:e},[],{provide:Y,useFactory:as,deps:[ie]},{provide:Ur,multi:!0,useFactory:cs},r.map(t=>t.\u0275providers)])}function as(e){return e.routerState.root}function us(e,r){return{\u0275kind:e,\u0275providers:r}}function cs(){let e=g(gr);return r=>{let t=e.get(xr);if(r!==t.components[0])return;let n=e.get(ie),i=e.get(ls);e.get(hs)===1&&n.initialNavigation(),e.get(ds,null,he.Optional)?.setUpPreloading(),e.get(os,null,he.Optional)?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ls=new $("",{factory:()=>new B}),hs=new $("",{providedIn:"root",factory:()=>1});var ds=new $("");function Zs(){return us(8,[_r,{provide:re,useExisting:_r}])}export{Y as a,Kn as b,ie as c,Br as d,Qs as e,Ks as f,Zs as g};
@@ -0,0 +1 @@
1
+ import{d as a,e as b,f as c}from"./chunk-S4TH7BUT.js";import"./chunk-KOIUHATU.js";import"./chunk-NN4VOZJP.js";import"./chunk-DNHLTHLR.js";import"./chunk-ZHM55NRD.js";import"./chunk-4I2FZHFA.js";import"./chunk-ICX4A35N.js";import"./chunk-3ZII4VBA.js";import"./chunk-APGFOGYB.js";import"./chunk-XG5WW7WW.js";import"./chunk-5P5MCIGV.js";import"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
@@ -0,0 +1 @@
1
+ import{j as a,k as b}from"./chunk-S4TH7BUT.js";import"./chunk-KOIUHATU.js";import"./chunk-NN4VOZJP.js";import"./chunk-DNHLTHLR.js";import"./chunk-ZHM55NRD.js";import"./chunk-4I2FZHFA.js";import"./chunk-ICX4A35N.js";import"./chunk-3ZII4VBA.js";import"./chunk-APGFOGYB.js";import"./chunk-XG5WW7WW.js";import"./chunk-5P5MCIGV.js";import"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";export{a as createScheduleForm,b as default};
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-OLR3NLBF.js";import"./chunk-6FMOBX4W.js";import"./chunk-KOIUHATU.js";import"./chunk-ZHM55NRD.js";import"./chunk-4I2FZHFA.js";import"./chunk-3ZII4VBA.js";import"./chunk-APGFOGYB.js";import"./chunk-XG5WW7WW.js";import"./chunk-5P5MCIGV.js";import"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";export{a as createRestoreOptionsForm,b as default};
@@ -1 +1 @@
1
- import{b}from"./chunk-BX543SH4.js";import{a as u}from"./chunk-PY26LA4W.js";import{Db as n,Eb as l,La as p,Mb as c,Rb as m,Sb as d,U as a,W as s,ib as t,jb as i,pc as f}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";var r=class o{#e=a(u);licenses=b(this.#e.getApiV1Licenses());static \u0275fac=function(e){return new(e||o)};static \u0275cmp=s({type:o,selectors:[["app-libraries"]],standalone:!0,features:[c],decls:5,vars:3,template:function(e,C){e&1&&(t(0,"h3"),n(1,"Libraries"),i(),t(2,"pre"),n(3),m(4,"json"),i()),e&2&&(p(3),l(d(4,1,C.licenses())))},dependencies:[f],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{r as default};
1
+ import{b}from"./chunk-ZHM55NRD.js";import{a as u}from"./chunk-5P5MCIGV.js";import{Eb as n,Fb as l,Ma as p,Nb as c,Sb as m,Tb as d,V as a,X as s,jb as t,kb as i,qc as f}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";var r=class o{#e=a(u);licenses=b(this.#e.getApiV1Licenses());static \u0275fac=function(e){return new(e||o)};static \u0275cmp=s({type:o,selectors:[["app-libraries"]],standalone:!0,features:[c],decls:5,vars:3,template:function(e,C){e&1&&(t(0,"h3"),n(1,"Libraries"),i(),t(2,"pre"),n(3),m(4,"json"),i()),e&2&&(p(3),l(d(4,1,C.licenses())))},dependencies:[f],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{r as default};
@@ -1 +1 @@
1
- import{a as N}from"./chunk-QX7KUJGE.js";import{a as M}from"./chunk-GSP4D4JM.js";import{l as L}from"./chunk-EYBBW4ID.js";import{a as V,b as O}from"./chunk-PY26LA4W.js";import{$a as x,D as S,Db as p,Gb as k,J as D,La as u,Mb as A,O as I,Ra as i,Rb as E,Sb as R,U as r,W as y,Z as C,Za as _,cc as c,eb as T,ec as v,ib as l,jb as o,kb as w,l as b,p as B,qb as h}from"./chunk-FKB7BVQE.js";import{a as f,b as g}from"./chunk-7CGTOI24.js";var m=class a{#t=r(N);transform(e,...t){return this.#t(e).fromNow()}static \u0275fac=function(t){return new(t||a)};static \u0275pipe=C({name:"appRelativeTime",type:a,pure:!0,standalone:!0})};var d=class a{#t=1e3;#d=r(O);#o=r(V);#n=r(M);#e=i(!1);#i=i(!1);#u=i(this.#t);#p=i(null);#r=i(!1);#s=i(!1);#a=i(null);#f=i(!1);statusData=this.#p.asReadonly();serverState=c(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let s=t.Item1?this.#n.getBackupById(t.Item1):null;return g(f({},t),{backup:s})}),e):null});isFetching=this.#i.asReadonly();#l=null;#g=v(()=>{let e=this.#e(),t=this.#u();if(!e||!t||t<this.#t){this.#l&&window.clearInterval(this.#l);return}this.#l=window.setInterval(()=>{this.#m()},t)});start(){this.#r.set(!0),this.#c()}stop(){this.#r.set(!1)}startPollingProgress(){this.#m(),this.#e.set(!0)}stopPollingProgress(){this.#e.set(!1)}setProgressStatePollingInterval(e){if(e<this.#t){console.error(`Polling interval must be at least ${this.#t}ms`);return}this.#u.set(e)}serverStateEffect=v(()=>{if(this.#f()){this.stopPollingProgress();return}!this.#s()&&this.#r()?setTimeout(()=>{this.startPollingProgress(),this.#c()},1e3):this.stopPollingProgress()},{allowSignalWrites:!0});#c(){if(this.#s())return;this.#s.set(!0);let e=this.#a()?.LastEventID,t=e==null?{}:{lastEventId:e,longpoll:!0,duration:"299s"};this.#o.getApiV1Serverstate(t).pipe(S(()=>this.#s.set(!1))).subscribe({next:s=>{this.#a()?.LastDataUpdateID!==s.LastDataUpdateID&&this.#n.getBackups(),this.#a.set(s)}})}#m(){this.#i.set(!0),this.#d.getApiV1Progressstate().pipe(D(e=>{let t=e.TaskID??null;return t===null?b(e):this.#o.getApiV1TaskByTaskid({taskid:t}).pipe(B(s=>g(f({},e),{task:s??null})))}),S(()=>this.#i.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,s=e.BackupID??null;if(t!==null&&s!==null){let n=this.#n.getBackupById(s);e.backup=n}e.task?.Status==="Completed"?this.#e.set(!1):this.#e.set(!0),this.#p.set(e)},error:e=>{e.status===404&&this.#e.set(!1)}})}static \u0275fac=function(t){return new(t||a)};static \u0275prov=I({token:a,factory:a.\u0275fac,providedIn:"root"})};function G(a,e){if(a&1&&(l(0,"div",2),p(1),o(),w(2,"spk-progress-bar",3)),a&2){let t,s,n=h();u(),k("",(t=n.statusData())==null||t.task==null?null:t.task.Status," - ",(t=n.statusData())==null||t.backup==null||t.backup.Backup==null?null:t.backup.Backup.Name,""),u(),x("value",(s=n.statusData())!=null&&s.OverallProgress?((s=n.statusData())==null?null:s.OverallProgress)*100:3)}}function F(a,e){if(a&1&&(l(0,"div",2),p(1),E(2,"appRelativeTime"),o()),a&2){let t,s=h();u(),k("",(t=s.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",R(2,2,s.nextBackup().time),"")}}function J(a,e){a&1&&(l(0,"div",2),p(1,"No scheduled tasks"),o())}function U(a,e){a&1&&(l(0,"div",2),p(1,"Loading..."),o())}var P=class a{#t=r(d);statusData=this.#t.statusData;serverState=this.#t.serverState;nextBackup=c(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));ngOnInit(){this.#t.start()}ngOnDestroy(){this.#t.stop()}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=y({type:a,selectors:[["app-status-bar"]],standalone:!0,features:[A],decls:6,vars:1,consts:[[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"raised","primary",3,"value"]],template:function(t,s){if(t&1&&(l(0,"div",0)(1,"div",1),_(2,G,3,3)(3,F,3,4,"div",2)(4,J,2,0,"div",2)(5,U,2,0,"div",2),o()()),t&2){let n;u(2),T(!((n=s.statusData())==null||n.task==null)&&n.task.Status&&((n=s.statusData())==null||n.task==null?null:n.task.Status)!=="Completed"?2:s.nextBackup()?3:!s.statusData()||((n=s.statusData())==null||n.task==null?null:n.task.Status)==="Completed"?4:5)}},dependencies:[L,m],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{P as a};
1
+ import{a as N}from"./chunk-QILG6324.js";import{a as M}from"./chunk-ICX4A35N.js";import{l as L}from"./chunk-3ZII4VBA.js";import{a as V,b as O}from"./chunk-5P5MCIGV.js";import{D as S,Eb as p,Hb as k,K as D,Ma as u,Nb as A,P as I,Sa as i,Sb as E,Tb as R,V as r,X as y,_ as C,_a as _,ab as x,dc as c,fb as T,fc as v,jb as l,kb as o,l as b,lb as w,p as B,rb as h}from"./chunk-NUWA7AOR.js";import{a as f,b as g}from"./chunk-7CGTOI24.js";var m=class a{#t=r(N);transform(e,...t){return this.#t(e).fromNow()}static \u0275fac=function(t){return new(t||a)};static \u0275pipe=C({name:"appRelativeTime",type:a,pure:!0,standalone:!0})};var d=class a{#t=1e3;#d=r(O);#o=r(V);#n=r(M);#e=i(!1);#i=i(!1);#u=i(this.#t);#p=i(null);#r=i(!1);#s=i(!1);#a=i(null);#f=i(!1);statusData=this.#p.asReadonly();serverState=c(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let s=t.Item1?this.#n.getBackupById(t.Item1):null;return g(f({},t),{backup:s})}),e):null});isFetching=this.#i.asReadonly();#l=null;#g=v(()=>{let e=this.#e(),t=this.#u();if(!e||!t||t<this.#t){this.#l&&window.clearInterval(this.#l);return}this.#l=window.setInterval(()=>{this.#m()},t)});start(){this.#r.set(!0),this.#c()}stop(){this.#r.set(!1)}startPollingProgress(){this.#m(),this.#e.set(!0)}stopPollingProgress(){this.#e.set(!1)}setProgressStatePollingInterval(e){if(e<this.#t){console.error(`Polling interval must be at least ${this.#t}ms`);return}this.#u.set(e)}serverStateEffect=v(()=>{if(this.#f()){this.stopPollingProgress();return}!this.#s()&&this.#r()?setTimeout(()=>{this.startPollingProgress(),this.#c()},1e3):this.stopPollingProgress()},{allowSignalWrites:!0});#c(){if(this.#s())return;this.#s.set(!0);let e=this.#a()?.LastEventID,t=e==null?{}:{lastEventId:e,longpoll:!0,duration:"299s"};this.#o.getApiV1Serverstate(t).pipe(S(()=>this.#s.set(!1))).subscribe({next:s=>{this.#a()?.LastDataUpdateID!==s.LastDataUpdateID&&this.#n.getBackups(),this.#a.set(s)}})}#m(){this.#i.set(!0),this.#d.getApiV1Progressstate().pipe(D(e=>{let t=e.TaskID??null;return t===null?b(e):this.#o.getApiV1TaskByTaskid({taskid:t}).pipe(B(s=>g(f({},e),{task:s??null})))}),S(()=>this.#i.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,s=e.BackupID??null;if(t!==null&&s!==null){let n=this.#n.getBackupById(s);e.backup=n}e.task?.Status==="Completed"?this.#e.set(!1):this.#e.set(!0),this.#p.set(e)},error:e=>{e.status===404&&this.#e.set(!1)}})}static \u0275fac=function(t){return new(t||a)};static \u0275prov=I({token:a,factory:a.\u0275fac,providedIn:"root"})};function G(a,e){if(a&1&&(l(0,"div",2),p(1),o(),w(2,"spk-progress-bar",3)),a&2){let t,s,n=h();u(),k("",(t=n.statusData())==null||t.task==null?null:t.task.Status," - ",(t=n.statusData())==null||t.backup==null||t.backup.Backup==null?null:t.backup.Backup.Name,""),u(),x("value",(s=n.statusData())!=null&&s.OverallProgress?((s=n.statusData())==null?null:s.OverallProgress)*100:3)}}function F(a,e){if(a&1&&(l(0,"div",2),p(1),E(2,"appRelativeTime"),o()),a&2){let t,s=h();u(),k("",(t=s.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",R(2,2,s.nextBackup().time),"")}}function J(a,e){a&1&&(l(0,"div",2),p(1,"No scheduled tasks"),o())}function U(a,e){a&1&&(l(0,"div",2),p(1,"Loading..."),o())}var P=class a{#t=r(d);statusData=this.#t.statusData;serverState=this.#t.serverState;nextBackup=c(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));ngOnInit(){this.#t.start()}ngOnDestroy(){this.#t.stop()}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=y({type:a,selectors:[["app-status-bar"]],standalone:!0,features:[A],decls:6,vars:1,consts:[[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"raised","primary",3,"value"]],template:function(t,s){if(t&1&&(l(0,"div",0)(1,"div",1),_(2,G,3,3)(3,F,3,4,"div",2)(4,J,2,0,"div",2)(5,U,2,0,"div",2),o()()),t&2){let n;u(2),T(!((n=s.statusData())==null||n.task==null)&&n.task.Status&&((n=s.statusData())==null||n.task==null?null:n.task.Status)!=="Completed"?2:s.nextBackup()?3:!s.statusData()||((n=s.statusData())==null||n.task==null?null:n.task.Status)==="Completed"?4:5)}},dependencies:[L,m],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{P as a};
@@ -1 +1 @@
1
- import{b as S}from"./chunk-BX543SH4.js";import{a as h}from"./chunk-PY26LA4W.js";import{Db as p,Eb as d,La as n,Mb as f,Rb as u,Sb as C,U as s,W as l,fb as c,gb as m,hb as g,ib as i,jb as a,pc as v}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";function L(t,o){if(t&1&&(i(0,"pre",0),p(1),u(2,"json"),a()),t&2){let e=o.$implicit;n(),d(C(2,1,e))}}var r=class t{#e=s(h);logs=S(this.#e.getApiV1LogdataLog());static \u0275fac=function(e){return new(e||t)};static \u0275cmp=l({type:t,selectors:[["app-logs"]],standalone:!0,features:[f],decls:4,vars:0,consts:[[2,"white-space","wrap"]],template:function(e,y){e&1&&(i(0,"h3"),p(1,"Logs"),a(),m(2,L,3,3,"pre",0,c)),e&2&&(n(2),g(y.logs()))},dependencies:[v],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{r as default};
1
+ import{b as S}from"./chunk-ZHM55NRD.js";import{a as h}from"./chunk-5P5MCIGV.js";import{Eb as p,Fb as d,Ma as n,Nb as f,Sb as u,Tb as C,V as s,X as l,gb as c,hb as m,ib as g,jb as i,kb as a,qc as v}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";function L(t,o){if(t&1&&(i(0,"pre",0),p(1),u(2,"json"),a()),t&2){let e=o.$implicit;n(),d(C(2,1,e))}}var r=class t{#e=s(h);logs=S(this.#e.getApiV1LogdataLog());static \u0275fac=function(e){return new(e||t)};static \u0275cmp=l({type:t,selectors:[["app-logs"]],standalone:!0,features:[f],decls:4,vars:0,consts:[[2,"white-space","wrap"]],template:function(e,y){e&1&&(i(0,"h3"),p(1,"Logs"),a(),m(2,L,3,3,"pre",0,c)),e&2&&(n(2),g(y.logs()))},dependencies:[v],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{r as default};
@@ -1 +1 @@
1
- import{e as S}from"./chunk-C7JVFVNG.js";import"./chunk-SHLX3F4G.js";import"./chunk-RNBIMN7E.js";import"./chunk-BX543SH4.js";import"./chunk-DE7MHNNM.js";import{m as C,q as v}from"./chunk-EYBBW4ID.js";import{a as f,b as k,d as w,e as g}from"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import{$a as a,Db as p,La as s,Mb as d,Ob as l,U as r,W as u,ib as o,jb as n,kb as i}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";var F=e=>["/restore-flow",e,"select-files"],R=e=>["/restore-flow",e,"options"],c=class e{#t=r(f);#e=r(S);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=u({type:e,selectors:[["app-restore-flow"]],standalone:!0,features:[d],decls:9,vars:6,consts:[["step","","routerLinkActive","active",3,"routerLink"]],template:function(t,m){t&1&&(o(0,"spk-stepper")(1,"div",0),i(2,"spk-radio"),p(3," Select files "),n(),o(4,"div",0),i(5,"spk-radio"),p(6," Options "),n()(),o(7,"section"),i(8,"router-outlet"),n()),t&2&&(s(),a("routerLink",l(2,F,m.backupId())),s(3),a("routerLink",l(4,R,m.backupId())))},dependencies:[v,C,k,w,g],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{c as default};
1
+ import{e as S}from"./chunk-OLR3NLBF.js";import"./chunk-6FMOBX4W.js";import"./chunk-KOIUHATU.js";import"./chunk-ZHM55NRD.js";import"./chunk-4I2FZHFA.js";import{m as C,q as v}from"./chunk-3ZII4VBA.js";import{a as f,b as k,d as w,e as g}from"./chunk-APGFOGYB.js";import"./chunk-XG5WW7WW.js";import"./chunk-5P5MCIGV.js";import{Eb as p,Ma as s,Nb as d,Pb as l,V as r,X as u,ab as a,jb as o,kb as n,lb as i}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";var F=e=>["/restore-flow",e,"select-files"],R=e=>["/restore-flow",e,"options"],c=class e{#t=r(f);#e=r(S);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=u({type:e,selectors:[["app-restore-flow"]],standalone:!0,features:[d],decls:9,vars:6,consts:[["step","","routerLinkActive","active",3,"routerLink"]],template:function(t,m){t&1&&(o(0,"spk-stepper")(1,"div",0),i(2,"spk-radio"),p(3," Select files "),n(),o(4,"div",0),i(5,"spk-radio"),p(6," Options "),n()(),o(7,"section"),i(8,"router-outlet"),n()),t&2&&(s(),a("routerLink",l(2,F,m.backupId())),s(3),a("routerLink",l(4,R,m.backupId())))},dependencies:[v,C,k,w,g],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{c as default};
@@ -1 +1 @@
1
- import{a}from"./chunk-AM4UDAZB.js";import{O as s,Ra as e,U as i,ec as r}from"./chunk-FKB7BVQE.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
1
+ import{a}from"./chunk-ZCCVAPLP.js";import{P as s,Sa as e,V as i,fc as r}from"./chunk-NUWA7AOR.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
@@ -1 +1 @@
1
- import{a as Y}from"./chunk-YL6USNFS.js";import{a as J}from"./chunk-QX7KUJGE.js";import{a as R}from"./chunk-GSP4D4JM.js";import{a as $,e as A,f as V,h as z,k as j}from"./chunk-EYBBW4ID.js";import{d as N}from"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import{$a as m,Db as e,Fb as u,La as p,Mb as D,Nb as B,Ob as S,Rb as M,Sb as I,Tb as H,U as _,W as v,Z as y,Za as s,ea as f,eb as d,fa as g,fb as P,gb as O,hb as E,ib as a,jb as o,kb as x,lb as F,mb as w,ob as T,oc as L,pb as b,qb as c}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";var C=class t{#t=_(J);transform(l,...n){if(!l)return"";let i=l.split(".")[0],r=parseInt(i.split(":")[0])??0,k=parseInt(i.split(":")[1])??0,q=parseInt(i.split(":")[2])??0;return this.#t.duration({hours:r,minutes:k,seconds:q}).humanize()}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=y({name:"durationFormat",type:t,pure:!0,standalone:!0})};var K=()=>["/add-backup"],Q=()=>["/restore"],U=t=>["/backup",t],W=t=>["/backup",t,"export"];function X(t,l){if(t&1&&(e(0),M(1,"durationFormat")),t&2){let n=c().$implicit;u(" - (took ",I(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDuration),") ")}}function Z(t,l){t&1&&e(0," N/A ")}function tt(t,l){if(t&1&&e(0),t&2){let n=c().$implicit;u(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceSizeString," ")}}function et(t,l){t&1&&e(0," N/A ")}function nt(t,l){if(t&1&&e(0),t&2){let n=c().$implicit;u(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetSizeString," ")}}function it(t,l){t&1&&e(0," N/A ")}function at(t,l){if(t&1&&(a(0,"spk-chip",9),e(1),o()),t&2){let n=c().$implicit;p(),u("",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount," Version")}}function ot(t,l){t&1&&(a(0,"spk-chip",10),e(1,"No version yet"),o())}function lt(t,l){if(t&1){let n=T();a(0,"div",8)(1,"div",3)(2,"h3"),e(3),a(4,"spk-icon"),e(5,"database"),o()(),a(6,"p")(7,"span"),e(8,"Last successful backup:"),o(),e(9),M(10,"date"),s(11,X,2,3)(12,Z,1,0),o(),a(13,"p")(14,"span"),e(15,"Source:"),o(),s(16,tt,1,1)(17,et,1,0),o(),a(18,"p")(19,"span"),e(20,"Destination:"),o(),s(21,nt,1,1)(22,it,1,0),o()(),s(23,at,2,1,"spk-chip",9)(24,ot,2,0,"spk-chip",10),a(25,"div",11)(26,"button",12),b("click",function(){let r=f(n).$implicit,k=c(2);return g(k.startBackup(r.Backup==null?null:r.Backup.ID))}),a(27,"spk-icon"),e(28,"play-circle"),o(),e(29," Start "),o(),a(30,"button",13)(31,"spk-icon"),e(32,"pencil-simple"),o()(),a(33,"spk-menu",14)(34,"button",4)(35,"spk-icon"),e(36,"dots-three-vertical"),o()(),F(37,15),a(38,"button",16,0),e(40," Export "),a(41,"spk-icon"),e(42,"export"),o()(),a(43,"button",17,0),b("click",function(){let r=f(n).$implicit,k=c(2);return g(k.deleteBackup(r.Backup==null?null:r.Backup.ID))}),e(45," Delete "),a(46,"spk-icon"),e(47,"x-circle"),o()(),w(),o()()()}if(t&2){let n,i=l.$implicit;p(3),u(" ",(n=i.Backup==null?null:i.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"," "),p(6),u(" ",H(10,9,i.Backup==null||i.Backup.Metadata==null?null:i.Backup.Metadata.LastBackupDate,"short")," "),p(2),d(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.LastBackupDuration?11:12),p(5),d(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.SourceSizeString?16:17),p(5),d(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.TargetSizeString?21:22),p(2),d(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.BackupListCount?23:24),p(7),m("routerLink",S(12,U,i.Backup==null?null:i.Backup.ID)),p(3),m("right",!0),p(5),m("routerLink",S(14,W,i.Backup==null?null:i.Backup.ID))}}function pt(t,l){if(t&1&&O(0,lt,48,16,"div",8,P),t&2){let n=c();E(n.backups())}}function ct(t,l){t&1&&e(0," No backups founds ")}var h=class t{#t=_(R);backups=this.#t.backups;backupsLoading=this.#t.backupsLoading;ngOnInit(){this.#t.getBackups(!0)}startBackup(l){this.#t.startBackup(l)}deleteBackup(l){l&&window.confirm("Are you sure you want to delete this backup?")&&this.#t.deleteBackup(l)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=v({type:t,selectors:[["app-home"]],standalone:!0,features:[D],decls:31,vars:5,consts:[["option",""],[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["spk-button","",3,"routerLink"],[3,"right"],["menu",""],[3,"routerLink"],[3,"click"]],template:function(n,i){n&1&&(x(0,"app-status-bar"),a(1,"section")(2,"header")(3,"spk-card",1),x(4,"img",2),a(5,"div",3)(6,"h3"),e(7,"Backups"),o(),a(8,"p"),e(9,"Backups are stored in the cloud and can be restored at any time."),o()(),a(10,"button",4),e(11," Add "),a(12,"spk-icon"),e(13,"plus"),o()()(),a(14,"spk-card",1),x(15,"img",5),a(16,"div",3)(17,"h3"),e(18,"Restores"),o(),a(19,"p"),e(20,"Restores are stored in the cloud and can be restored at any time."),o()(),a(21,"button",4),e(22," Start "),a(23,"spk-icon"),e(24,"arrow-right"),o()()()(),a(25,"div",6)(26,"h2"),e(27,"My backups"),o(),a(28,"div",7),s(29,pt,2,0)(30,ct,1,0),o()()()),n&2&&(p(3),m("routerLink",B(3,K)),p(11),m("routerLink",B(4,Q)),p(15),d(i.backups().length?29:30))},dependencies:[N,Y,V,A,$,z,j,L,C],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{h as default};
1
+ import{a as Y}from"./chunk-DUEP5NWI.js";import{a as J}from"./chunk-QILG6324.js";import{a as R}from"./chunk-ICX4A35N.js";import{a as $,e as A,f as V,h as z,k as j}from"./chunk-3ZII4VBA.js";import{d as N}from"./chunk-APGFOGYB.js";import"./chunk-XG5WW7WW.js";import"./chunk-5P5MCIGV.js";import{Eb as e,Gb as u,Ma as p,Nb as D,Ob as B,Pb as S,Sb as M,Tb as I,Ub as H,V as _,X as v,_ as y,_a as s,ab as m,fa as f,fb as d,ga as g,gb as P,hb as O,ib as E,jb as a,kb as o,lb as x,mb as F,nb as w,pb as T,pc as L,qb as b,rb as c}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";var C=class t{#t=_(J);transform(l,...n){if(!l)return"";let i=l.split(".")[0],r=parseInt(i.split(":")[0])??0,k=parseInt(i.split(":")[1])??0,q=parseInt(i.split(":")[2])??0;return this.#t.duration({hours:r,minutes:k,seconds:q}).humanize()}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=y({name:"durationFormat",type:t,pure:!0,standalone:!0})};var K=()=>["/add-backup"],Q=()=>["/restore"],U=t=>["/backup",t],W=t=>["/backup",t,"export"];function X(t,l){if(t&1&&(e(0),M(1,"durationFormat")),t&2){let n=c().$implicit;u(" - (took ",I(1,1,n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.LastBackupDuration),") ")}}function Z(t,l){t&1&&e(0," N/A ")}function tt(t,l){if(t&1&&e(0),t&2){let n=c().$implicit;u(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceSizeString," ")}}function et(t,l){t&1&&e(0," N/A ")}function nt(t,l){if(t&1&&e(0),t&2){let n=c().$implicit;u(" ",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.TargetSizeString," ")}}function it(t,l){t&1&&e(0," N/A ")}function at(t,l){if(t&1&&(a(0,"spk-chip",9),e(1),o()),t&2){let n=c().$implicit;p(),u("",n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount," Version")}}function ot(t,l){t&1&&(a(0,"spk-chip",10),e(1,"No version yet"),o())}function lt(t,l){if(t&1){let n=T();a(0,"div",8)(1,"div",3)(2,"h3"),e(3),a(4,"spk-icon"),e(5,"database"),o()(),a(6,"p")(7,"span"),e(8,"Last successful backup:"),o(),e(9),M(10,"date"),s(11,X,2,3)(12,Z,1,0),o(),a(13,"p")(14,"span"),e(15,"Source:"),o(),s(16,tt,1,1)(17,et,1,0),o(),a(18,"p")(19,"span"),e(20,"Destination:"),o(),s(21,nt,1,1)(22,it,1,0),o()(),s(23,at,2,1,"spk-chip",9)(24,ot,2,0,"spk-chip",10),a(25,"div",11)(26,"button",12),b("click",function(){let r=f(n).$implicit,k=c(2);return g(k.startBackup(r.Backup==null?null:r.Backup.ID))}),a(27,"spk-icon"),e(28,"play-circle"),o(),e(29," Start "),o(),a(30,"button",13)(31,"spk-icon"),e(32,"pencil-simple"),o()(),a(33,"spk-menu",14)(34,"button",4)(35,"spk-icon"),e(36,"dots-three-vertical"),o()(),F(37,15),a(38,"button",16,0),e(40," Export "),a(41,"spk-icon"),e(42,"export"),o()(),a(43,"button",17,0),b("click",function(){let r=f(n).$implicit,k=c(2);return g(k.deleteBackup(r.Backup==null?null:r.Backup.ID))}),e(45," Delete "),a(46,"spk-icon"),e(47,"x-circle"),o()(),w(),o()()()}if(t&2){let n,i=l.$implicit;p(3),u(" ",(n=i.Backup==null?null:i.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"," "),p(6),u(" ",H(10,9,i.Backup==null||i.Backup.Metadata==null?null:i.Backup.Metadata.LastBackupDate,"short")," "),p(2),d(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.LastBackupDuration?11:12),p(5),d(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.SourceSizeString?16:17),p(5),d(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.TargetSizeString?21:22),p(2),d(!(i.Backup==null||i.Backup.Metadata==null)&&i.Backup.Metadata.BackupListCount?23:24),p(7),m("routerLink",S(12,U,i.Backup==null?null:i.Backup.ID)),p(3),m("right",!0),p(5),m("routerLink",S(14,W,i.Backup==null?null:i.Backup.ID))}}function pt(t,l){if(t&1&&O(0,lt,48,16,"div",8,P),t&2){let n=c();E(n.backups())}}function ct(t,l){t&1&&e(0," No backups founds ")}var h=class t{#t=_(R);backups=this.#t.backups;backupsLoading=this.#t.backupsLoading;ngOnInit(){this.#t.getBackups(!0)}startBackup(l){this.#t.startBackup(l)}deleteBackup(l){l&&window.confirm("Are you sure you want to delete this backup?")&&this.#t.deleteBackup(l)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=v({type:t,selectors:[["app-home"]],standalone:!0,features:[D],decls:31,vars:5,consts:[["option",""],[1,"type-a",3,"routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button",""],["src","assets/images/restore.png","alt","","width","48px"],[1,"content"],[1,"backups"],[1,"backup"],[1,"simple","success"],[1,"simple"],[1,"actions"],["spk-button","",3,"click"],["spk-button","",3,"routerLink"],[3,"right"],["menu",""],[3,"routerLink"],[3,"click"]],template:function(n,i){n&1&&(x(0,"app-status-bar"),a(1,"section")(2,"header")(3,"spk-card",1),x(4,"img",2),a(5,"div",3)(6,"h3"),e(7,"Backups"),o(),a(8,"p"),e(9,"Backups are stored in the cloud and can be restored at any time."),o()(),a(10,"button",4),e(11," Add "),a(12,"spk-icon"),e(13,"plus"),o()()(),a(14,"spk-card",1),x(15,"img",5),a(16,"div",3)(17,"h3"),e(18,"Restores"),o(),a(19,"p"),e(20,"Restores are stored in the cloud and can be restored at any time."),o()(),a(21,"button",4),e(22," Start "),a(23,"spk-icon"),e(24,"arrow-right"),o()()()(),a(25,"div",6)(26,"h2"),e(27,"My backups"),o(),a(28,"div",7),s(29,pt,2,0)(30,ct,1,0),o()()()),n&2&&(p(3),m("routerLink",B(3,K)),p(11),m("routerLink",B(4,Q)),p(15),d(i.backups().length?29:30))},dependencies:[N,Y,V,A,$,z,j,L,C],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem 0}header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;padding:0 2rem;gap:1rem}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem;gap:1rem}.backups[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-level-70)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{h as default};
@@ -1 +1 @@
1
- import{a as f}from"./chunk-YL6USNFS.js";import"./chunk-QX7KUJGE.js";import"./chunk-GSP4D4JM.js";import{a as u,e as g,f as k}from"./chunk-EYBBW4ID.js";import{d as l}from"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import{$a as p,Db as t,La as o,Mb as s,Nb as r,W as d,ib as e,jb as n,kb as a}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";var b=()=>["/backup/new"],x=()=>["/backup/import"],c=class m{static \u0275fac=function(i){return new(i||m)};static \u0275cmp=d({type:m,selectors:[["app-add-backup"]],standalone:!0,features:[s],decls:25,vars:4,consts:[[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]],template:function(i,S){i&1&&(a(0,"app-status-bar"),e(1,"section")(2,"h2"),t(3,"Add a new backup"),n(),e(4,"div",0)(5,"spk-card",1),a(6,"img",2),e(7,"h3"),t(8,"New backup"),n(),e(9,"p"),t(10,"Configure a new backup. Choose your destination, source data and schedule."),n(),e(11,"button",3),t(12," Add a new backup "),e(13,"spk-icon"),t(14,"plus"),n()()(),e(15,"spk-card",1),a(16,"img",2),e(17,"h3"),t(18,"Import from file"),n(),e(19,"p"),t(20,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod."),n(),e(21,"button",3),t(22," Import from file "),e(23,"spk-icon"),t(24,"upload-simple"),n()()()()()),i&2&&(o(11),p("routerLink",r(2,b)),o(10),p("routerLink",r(3,x)))},dependencies:[f,g,k,u,l],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{c as default};
1
+ import{a as f}from"./chunk-DUEP5NWI.js";import"./chunk-QILG6324.js";import"./chunk-ICX4A35N.js";import{a as u,e as g,f as k}from"./chunk-3ZII4VBA.js";import{d as l}from"./chunk-APGFOGYB.js";import"./chunk-XG5WW7WW.js";import"./chunk-5P5MCIGV.js";import{Eb as t,Ma as o,Nb as s,Ob as r,X as d,ab as p,jb as e,kb as n,lb as a}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";var b=()=>["/backup/new"],x=()=>["/backup/import"],c=class m{static \u0275fac=function(i){return new(i||m)};static \u0275cmp=d({type:m,selectors:[["app-add-backup"]],standalone:!0,features:[s],decls:25,vars:4,consts:[[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]],template:function(i,S){i&1&&(a(0,"app-status-bar"),e(1,"section")(2,"h2"),t(3,"Add a new backup"),n(),e(4,"div",0)(5,"spk-card",1),a(6,"img",2),e(7,"h3"),t(8,"New backup"),n(),e(9,"p"),t(10,"Configure a new backup. Choose your destination, source data and schedule."),n(),e(11,"button",3),t(12," Add a new backup "),e(13,"spk-icon"),t(14,"plus"),n()()(),e(15,"spk-card",1),a(16,"img",2),e(17,"h3"),t(18,"Import from file"),n(),e(19,"p"),t(20,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod."),n(),e(21,"button",3),t(22," Import from file "),e(23,"spk-icon"),t(24,"upload-simple"),n()()()()()),i&2&&(o(11),p("routerLink",r(2,b)),o(10),p("routerLink",r(3,x)))},dependencies:[f,g,k,u,l],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{c as default};
@@ -1 +1 @@
1
- import{a as y}from"./chunk-4UKPKNC6.js";import"./chunk-AM4UDAZB.js";import{b as v,c as S,d as w,e as F,f as L,i as _,l as N,o as k,q as x}from"./chunk-DE7MHNNM.js";import{a as D,e as M,i as P}from"./chunk-EYBBW4ID.js";import{c as b}from"./chunk-IGECPMHY.js";import"./chunk-L2WWHQPN.js";import"./chunk-PY26LA4W.js";import{$a as g,D as m,Db as s,La as u,Mb as h,Ra as c,U as i,W as p,bb as d,ib as e,jb as r,kb as f,pb as C}from"./chunk-FKB7BVQE.js";import"./chunk-7CGTOI24.js";var G=new k,a=class l{#e=i(b);#t=i(y);isLoading=c(!1);loginForm=G.group({pass:G.control("",S.required)});submit(){let t=this.loginForm.value.pass;t&&(this.isLoading.set(!0),this.#t.login(t).pipe(m(()=>this.isLoading.set(!1))).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=p({type:l,selectors:[["app-login"]],standalone:!0,features:[h],decls:8,vars:3,consts:[[3,"submit","formGroup"],[1,"login-row"],["type","password","autocomplete","current-password","placeholder","Enter your password","tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]],template:function(o,n){o&1&&(e(0,"form",0),C("submit",function(){return n.submit()}),e(1,"div",1)(2,"spk-form-field"),f(3,"input",2),r(),e(4,"button",3),s(5," Login "),e(6,"spk-icon"),s(7,"arrow-right"),r()()()()),o&2&&(g("formGroup",n.loginForm),u(4),d("loader",n.isLoading()))},dependencies:[x,L,v,w,F,_,N,P,D,M],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{a as default};
1
+ import{a as y}from"./chunk-I62MTURC.js";import"./chunk-ZCCVAPLP.js";import{b as v,c as S,d as w,e as F,f as L,i as _,l as N,o as k,q as x}from"./chunk-4I2FZHFA.js";import{a as D,e as M,i as P}from"./chunk-3ZII4VBA.js";import{c as b}from"./chunk-APGFOGYB.js";import"./chunk-XG5WW7WW.js";import"./chunk-5P5MCIGV.js";import{D as m,Eb as s,Ma as u,Nb as h,Sa as c,V as i,X as p,ab as g,cb as d,jb as e,kb as r,lb as f,qb as C}from"./chunk-NUWA7AOR.js";import"./chunk-7CGTOI24.js";var G=new k,a=class l{#e=i(b);#t=i(y);isLoading=c(!1);loginForm=G.group({pass:G.control("",S.required)});submit(){let t=this.loginForm.value.pass;t&&(this.isLoading.set(!0),this.#t.login(t).pipe(m(()=>this.isLoading.set(!1))).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=p({type:l,selectors:[["app-login"]],standalone:!0,features:[h],decls:8,vars:3,consts:[[3,"submit","formGroup"],[1,"login-row"],["type","password","autocomplete","current-password","placeholder","Enter your password","tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]],template:function(o,n){o&1&&(e(0,"form",0),C("submit",function(){return n.submit()}),e(1,"div",1)(2,"spk-form-field"),f(3,"input",2),r(),e(4,"button",3),s(5," Login "),e(6,"spk-icon"),s(7,"arrow-right"),r()()()()),o&2&&(g("formGroup",n.loginForm),u(4),d("loader",n.isLoading()))},dependencies:[x,L,v,w,F,_,N,P,D,M],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{a as default};
@@ -1 +1 @@
1
- import{a as c}from"./chunk-AM4UDAZB.js";import{c as h}from"./chunk-IGECPMHY.js";import{a as u}from"./chunk-PY26LA4W.js";import{A as t,L as i,O as l,Ra as n,U as s,ec as a}from"./chunk-FKB7BVQE.js";var m=class r{#t=s(c);#i=s(h);#s=s(u);#e=n(this.#t.getItemParsed("token")??null);#r=n(this.#t.getItemParsed("tokenSetTime")??null);tokenSetTime=this.#r.asReadonly();token=this.#e.asReadonly();#o=a(()=>{if(!this.#e()){this.#t.clearAll(),this.#i.navigate(["/login"]);return}let e=Date.now();this.#t.setItemParsed("tokenSetTime",e),this.#t.setItemParsed("token",this.#e()),this.#r.set(this.#e()?e:null)},{allowSignalWrites:!0});login(e="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:!0}}).pipe(t(1),i(o=>this.#e.set(o.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(t(1),i(e=>this.#e.set(e.AccessToken??null)))}logout(){this.#s.postApiV1AuthRefreshLogout().pipe(t(1),i(e=>{this.#e.set(null),this.#t.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:e=>{this.#e.set(null),this.#t.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(o){return new(o||r)};static \u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})};export{m as a};
1
+ import{a as c}from"./chunk-ZCCVAPLP.js";import{c as h}from"./chunk-APGFOGYB.js";import{a as u}from"./chunk-5P5MCIGV.js";import{A as t,M as i,P as l,Sa as n,V as s,fc as a}from"./chunk-NUWA7AOR.js";var m=class r{#t=s(c);#i=s(h);#s=s(u);#e=n(this.#t.getItemParsed("token")??null);#r=n(this.#t.getItemParsed("tokenSetTime")??null);tokenSetTime=this.#r.asReadonly();token=this.#e.asReadonly();#o=a(()=>{if(!this.#e()){this.#t.clearAll(),this.#i.navigate(["/login"]);return}let e=Date.now();this.#t.setItemParsed("tokenSetTime",e),this.#t.setItemParsed("token",this.#e()),this.#r.set(this.#e()?e:null)},{allowSignalWrites:!0});login(e="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:!0}}).pipe(t(1),i(o=>this.#e.set(o.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(t(1),i(e=>this.#e.set(e.AccessToken??null)))}logout(){this.#s.postApiV1AuthRefreshLogout().pipe(t(1),i(e=>{this.#e.set(null),this.#t.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:e=>{this.#e.set(null),this.#t.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(o){return new(o||r)};static \u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})};export{m as a};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-PY26LA4W.js";import{A as s,D as i,O as p,Ra as a,U as c}from"./chunk-FKB7BVQE.js";var n=class r{#e=c(u);#a=null;#t=a([]);#r=a([]);#s=a(!1);backups=this.#r.asReadonly();backupsLoading=this.#s.asReadonly();draftBackups=this.#t.asReadonly();addDraftBackup(e){let t=crypto.randomUUID();return this.#t.set([...this.#t(),{id:t,data:e}]),t}removeDraftBackupById(e){this.#t.set(this.#t().filter(t=>t.id!==e))}getBackupById(e){return this.#r().find(t=>t.Backup?.ID===e)??null}getBackups(e=!1){this.#a&&Date.now()-this.#a<100||(this.#a=Date.now(),this.#s.set(!0),this.#e.getApiV1Backups().pipe(s(1),i(()=>this.#s.set(!1))).subscribe({next:t=>{this.#r.set(t)},error:t=>{console.error(t)}}))}startBackup(e){this.#e.postApiV1BackupByIdStart({id:e}).subscribe({next:()=>{this.getBackups()}})}deleteBackup(e){this.#e.deleteApiV1BackupById({id:e}).subscribe({next:()=>{this.getBackups()}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=p({token:r,factory:r.\u0275fac,providedIn:"root"})};export{n as a};
1
+ import{a as u}from"./chunk-5P5MCIGV.js";import{A as s,D as i,P as p,Sa as a,V as c}from"./chunk-NUWA7AOR.js";var n=class r{#e=c(u);#a=null;#t=a([]);#r=a([]);#s=a(!1);backups=this.#r.asReadonly();backupsLoading=this.#s.asReadonly();draftBackups=this.#t.asReadonly();addDraftBackup(e){let t=crypto.randomUUID();return this.#t.set([...this.#t(),{id:t,data:e}]),t}removeDraftBackupById(e){this.#t.set(this.#t().filter(t=>t.id!==e))}getBackupById(e){return this.#r().find(t=>t.Backup?.ID===e)??null}getBackups(e=!1){this.#a&&Date.now()-this.#a<100||(this.#a=Date.now(),this.#s.set(!0),this.#e.getApiV1Backups().pipe(s(1),i(()=>this.#s.set(!1))).subscribe({next:t=>{this.#r.set(t)},error:t=>{console.error(t)}}))}startBackup(e){this.#e.postApiV1BackupByIdStart({id:e}).subscribe({next:()=>{this.getBackups()}})}deleteBackup(e){this.#e.deleteApiV1BackupById({id:e}).subscribe({next:()=>{this.getBackups()}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=p({token:r,factory:r.\u0275fac,providedIn:"root"})};export{n as a};