@duplicati/ngclient 0.0.24 → 0.0.25

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 (63) hide show
  1. package/chunk-2TLPGRQA.js +1 -0
  2. package/chunk-2WWTJWN7.js +1 -0
  3. package/{chunk-NVZUM7FG.js → chunk-43IGTI7W.js} +1 -1
  4. package/{chunk-RHGRQONA.js → chunk-4X4FROQQ.js} +1 -1
  5. package/{chunk-GO7CLBZY.js → chunk-56SGMJT3.js} +1 -1
  6. package/{chunk-MJCUB3L3.js → chunk-647BVHNL.js} +1 -1
  7. package/{chunk-OSB5J6SK.js → chunk-67F45CIQ.js} +1 -1
  8. package/{chunk-SRW3NRX3.js → chunk-6SKK76PT.js} +1 -1
  9. package/{chunk-NYFN2CT6.js → chunk-7TGAK2FS.js} +1 -1
  10. package/{chunk-NAPR7ILQ.js → chunk-7UN5GSLX.js} +1 -1
  11. package/chunk-ANRVMVA2.js +7 -0
  12. package/{chunk-CESPRUJX.js → chunk-B7BKD6BW.js} +1 -1
  13. package/{chunk-T2ZGAXWS.js → chunk-CYXH6TL7.js} +1 -1
  14. package/chunk-D4OIIBBT.js +1 -0
  15. package/chunk-D5XBMU7U.js +1 -0
  16. package/{chunk-GTGXQQJJ.js → chunk-DC5NQO2Y.js} +1 -1
  17. package/{chunk-NAZLO3UY.js → chunk-E6PE2QMZ.js} +1 -1
  18. package/chunk-EF6PZOYI.js +1 -0
  19. package/chunk-EUKWBJHZ.js +1 -0
  20. package/{chunk-4C6SJEAP.js → chunk-JBKTYIJI.js} +1 -1
  21. package/{chunk-CUYURNCB.js → chunk-KJNFJK32.js} +1 -1
  22. package/{chunk-Z3RCJ5NZ.js → chunk-KM4HDQ4D.js} +1 -1
  23. package/chunk-KMTWZOSJ.js +1 -0
  24. package/chunk-KOPVATUY.js +1 -0
  25. package/{chunk-P6347OTT.js → chunk-KOXLMQOL.js} +1 -1
  26. package/{chunk-2653SOTQ.js → chunk-LKYD5PU5.js} +1 -1
  27. package/chunk-LSSI4MGJ.js +1 -0
  28. package/{chunk-637GTPYL.js → chunk-MW756ZMH.js} +1 -1
  29. package/{chunk-KJQLPHGM.js → chunk-ND2MJYUF.js} +1 -1
  30. package/chunk-NNYK7AHA.js +1 -0
  31. package/{chunk-JRKR54DW.js → chunk-OGV5E7WV.js} +1 -1
  32. package/{chunk-YBWO6L26.js → chunk-OLXQO3ZT.js} +1 -1
  33. package/{chunk-EOYIT7GV.js → chunk-OUZOHOAK.js} +1 -1
  34. package/{chunk-VJDUCP4Z.js → chunk-OYOFQEI3.js} +1 -1
  35. package/chunk-PBQATFTG.js +1 -0
  36. package/chunk-QM3Q3TUI.js +1 -0
  37. package/{chunk-3XQGPHYU.js → chunk-QQ7JWBVZ.js} +1 -1
  38. package/{chunk-AEQ7QJXE.js → chunk-RH4RL6FL.js} +1 -1
  39. package/{chunk-SRX3KYGO.js → chunk-RPNE5OZL.js} +1 -1
  40. package/{chunk-JE2I63Y6.js → chunk-TUN6QDZQ.js} +1 -1
  41. package/{chunk-KV674FA2.js → chunk-UAAHGB26.js} +1 -1
  42. package/{chunk-TNE7LVPH.js → chunk-UXD4TQLV.js} +1 -1
  43. package/{chunk-2MDIWOW5.js → chunk-WCMY57ZO.js} +1 -1
  44. package/{chunk-HJUBM7Q5.js → chunk-WVXHNI46.js} +1 -1
  45. package/{chunk-4JYRDCTW.js → chunk-XCCXG27R.js} +1 -1
  46. package/chunk-ZO7IMOR6.js +1 -0
  47. package/index.html +1 -1
  48. package/{main-WZ7WTPZS.js → main-B5HGTFQ3.js} +1 -1
  49. package/package.json +1 -1
  50. package/chunk-2EGLLTER.js +0 -1
  51. package/chunk-3UHRO33D.js +0 -1
  52. package/chunk-4HGECFGT.js +0 -1
  53. package/chunk-4NLCRQLQ.js +0 -1
  54. package/chunk-67JGZ4NF.js +0 -7
  55. package/chunk-BTF6XTSM.js +0 -1
  56. package/chunk-C3SI6ECZ.js +0 -1
  57. package/chunk-NILUA3YB.js +0 -1
  58. package/chunk-RNJMBZB7.js +0 -1
  59. package/chunk-SGZGAY7X.js +0 -1
  60. package/chunk-VA5L4XPW.js +0 -1
  61. package/chunk-VXKI3RQB.js +0 -1
  62. package/chunk-X2IPCPJN.js +0 -1
  63. package/chunk-ZLOKN5SO.js +0 -1
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-E6PE2QMZ.js";import{B as a,E as i,N as r,Q as u,W as n,Xa as s}from"./chunk-ANRVMVA2.js";var l=class p{#s=n(o);#p=null;#t=s([]);#e=s([]);#a=s(!1);#i=s(!1);#r=s(null);backups=this.#e.asReadonly();backupsLoading=this.#a.asReadonly();startingBackup=this.#i.asReadonly();deletingBackup=this.#r.asReadonly();draftBackups=this.#t.asReadonly();addDraftBackup(t){let e=crypto.randomUUID();return this.#t.set([...this.#t(),{id:e,data:t}]),e}removeDraftBackupById(t){this.#t.set(this.#t().filter(e=>e.id!==t))}getBackupById(t){return this.#e().find(e=>e.Backup?.ID===t)??null}getBackups(t=!1){let e=this.#p,c=Date.now(),k=e&&c-e<15*60*1e3;!1||!t&&k&&this.#e().length||(this.#p=c,this.#a.set(!0),this.#s.getApiV1Backups().pipe(a(1),r(B=>this.#e.set(B)),i(()=>this.#a.set(!1))).subscribe())}startBackup(t){this.#i.set(!0),this.#s.postApiV1BackupByIdStart({id:t}).pipe(a(1),r(()=>this.getBackups()),i(()=>this.#i.set(!1))).subscribe()}deleteBackup(t){this.#r.set(t),this.#s.deleteApiV1BackupById({id:t}).pipe(a(1),r(()=>this.getBackups()),i(()=>this.#r.set(null))).subscribe()}static \u0275fac=function(e){return new(e||p)};static \u0275prov=u({token:p,factory:p.\u0275fac,providedIn:"root"})};export{l as a};
@@ -0,0 +1 @@
1
+ import{b as en}from"./chunk-WCMY57ZO.js";import{d as Xr,e as Jr,f as ot,g as tn,h as Ue,i as At,q as xe}from"./chunk-TUN6QDZQ.js";import{$ as Er,A as Se,Ab as qr,B as it,C as Rr,E as Ht,F as Q,G as we,H as Sr,Hb as Br,I as wr,Ib as Vr,Jb as Hr,K as br,L as P,M as Ir,N as S,O as b,Oa as Nr,Q as C,R as Ar,Ra as N,S as Mr,Sa as jr,T as D,U as be,Ua as De,V as q,Va as $r,W as l,Wb as Wr,X as Dr,Y as Tr,_ as Or,a as gr,aa as Wt,ab as Lr,bb as kr,c as vr,ca as Ur,cb as Te,dc as Gr,e as ye,ea as It,eb as _r,ec as Qr,f as Ce,fa as k,fc as Kr,g as W,gc as Oe,h as E,ha as Gt,hb as zr,hc as Ee,ic as Zr,j as G,jc as Kt,k as I,l as f,la as Ie,m as wt,ma as xr,mc as Zt,n as mr,na as Ae,o as yr,oc as Yt,p as m,pa as Pr,q as Vt,qa as st,r as M,ra as Qt,s as bt,t as Cr,tb as Fr,tc as Yr,u as Re,w as X,wa as Me,y as J,z as nt}from"./chunk-ANRVMVA2.js";import{a as h,b as A}from"./chunk-7CGTOI24.js";var g="primary",_t=Symbol("RouteTitle"),Le=class{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function dt(e){return new Le(e)}function Xn(e,n,t){let r=t.path.split("/");if(r.length>e.length||t.pathMatch==="full"&&(n.hasChildren()||r.length<e.length))return null;let i={};for(let s=0;s<r.length;s++){let o=r[s],u=e[s];if(o[0]===":")i[o.substring(1)]=u;else if(o!==u.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function Jn(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!_(e[t],n[t]))return!1;return!0}function _(e,n){let t=e?ke(e):void 0,r=n?ke(n):void 0;if(!t||!r||t.length!=r.length)return!1;let i;for(let s=0;s<t.length;s++)if(i=t[s],!pn(e[i],n[i]))return!1;return!0}function ke(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function pn(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;let t=[...e].sort(),r=[...n].sort();return t.every((i,s)=>r[s]===i)}else return e===n}function gn(e){return e.length>0?e[e.length-1]:null}function Y(e){return mr(e)?e:Kr(e)?I(Promise.resolve(e)):f(e)}var ti={exact:mn,subset:yn},vn={exact:ei,subset:ri,ignored:()=>!0};function rn(e,n,t){return ti[t.paths](e.root,n.root,t.matrixParams)&&vn[t.queryParams](e.queryParams,n.queryParams)&&!(t.fragment==="exact"&&e.fragment!==n.fragment)}function ei(e,n){return _(e,n)}function mn(e,n,t){if(!et(e.segments,n.segments)||!te(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!e.children[r]||!mn(e.children[r],n.children[r],t))return!1;return!0}function ri(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>pn(e[t],n[t]))}function yn(e,n,t){return Cn(e,n,n.segments,t)}function Cn(e,n,t,r){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!et(i,t)||n.hasChildren()||!te(i,t,r))}else if(e.segments.length===t.length){if(!et(e.segments,t)||!te(e.segments,t,r))return!1;for(let i in n.children)if(!e.children[i]||!yn(e.children[i],n.children[i],r))return!1;return!0}else{let i=t.slice(0,e.segments.length),s=t.slice(e.segments.length);return!et(e.segments,i)||!te(e.segments,i,r)||!e.children[g]?!1:Cn(e.children[g],n,s,r)}}function te(e,n,t){return n.every((r,i)=>vn[t](e[i].parameters,r.parameters))}var V=class{constructor(n=new v([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=dt(this.queryParams),this._queryParamMap}toString(){return si.serialize(this)}},v=class{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ee(this)}},tt=class{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=dt(this.parameters),this._parameterMap}toString(){return Sn(this)}};function ni(e,n){return et(e,n)&&e.every((t,r)=>_(t.parameters,n[r].parameters))}function et(e,n){return e.length!==n.length?!1:e.every((t,r)=>t.path===n[r].path)}function ii(e,n){let t=[];return Object.entries(e.children).forEach(([r,i])=>{r===g&&(t=t.concat(n(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==g&&(t=t.concat(n(i,r)))}),t}var yt=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>new ft,providedIn:"root"})}}return e})(),ft=class{parse(n){let t=new ze(n);return new V(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){let t=`/${Mt(n.root,!0)}`,r=ui(n.queryParams),i=typeof n.fragment=="string"?`#${oi(n.fragment)}`:"";return`${t}${r}${i}`}},si=new ft;function ee(e){return e.segments.map(n=>Sn(n)).join("/")}function Mt(e,n){if(!e.hasChildren())return ee(e);if(n){let t=e.children[g]?Mt(e.children[g],!1):"",r=[];return Object.entries(e.children).forEach(([i,s])=>{i!==g&&r.push(`${i}:${Mt(s,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}else{let t=ii(e,(r,i)=>i===g?[Mt(e.children[g],!1)]:[`${i}:${Mt(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[g]!=null?`${ee(e)}/${t[0]}`:`${ee(e)}/(${t.join("//")})`}}function Rn(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xt(e){return Rn(e).replace(/%3B/gi,";")}function oi(e){return encodeURI(e)}function _e(e){return Rn(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function re(e){return decodeURIComponent(e)}function nn(e){return re(e.replace(/\+/g,"%20"))}function Sn(e){return`${_e(e.path)}${ai(e.parameters)}`}function ai(e){return Object.entries(e).map(([n,t])=>`;${_e(n)}=${_e(t)}`).join("")}function ui(e){let n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(i=>`${Xt(t)}=${Xt(i)}`).join("&"):`${Xt(t)}=${Xt(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}var ci=/^[^\/()?;#]+/;function Pe(e){let n=e.match(ci);return n?n[0]:""}var li=/^[^\/()?;=#]+/;function hi(e){let n=e.match(li);return n?n[0]:""}var di=/^[^=?&#]+/;function fi(e){let n=e.match(di);return n?n[0]:""}var pi=/^[^&#]+/;function gi(e){let n=e.match(pi);return n?n[0]:""}var ze=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[g]=new v(n,t)),r}parseSegment(){let n=Pe(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new tt(re(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let t=hi(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let i=Pe(this.remaining);i&&(r=i,this.capture(r))}n[re(t)]=re(r)}parseQueryParam(n){let t=fi(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let o=gi(this.remaining);o&&(r=o,this.capture(r))}let i=nn(t),s=nn(r);if(n.hasOwnProperty(i)){let o=n[i];Array.isArray(o)||(o=[o],n[i]=o),o.push(s)}else n[i]=s}parseParens(n){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Pe(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=g);let o=this.parseChildren();t[s]=Object.keys(o).length===1?o[g]:new v([],o),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new b(4011,!1)}};function wn(e){return e.segments.length>0?new v([],{[g]:e}):e}function bn(e){let n={};for(let[r,i]of Object.entries(e.children)){let s=bn(i);if(r===g&&s.segments.length===0&&s.hasChildren())for(let[o,u]of Object.entries(s.children))n[o]=u;else(s.segments.length>0||s.hasChildren())&&(n[r]=s)}let t=new v(e.segments,n);return vi(t)}function vi(e){if(e.numberOfChildren===1&&e.children[g]){let n=e.children[g];return new v(e.segments.concat(n.segments),n.children)}return e}function rt(e){return e instanceof V}function mi(e,n,t=null,r=null){let i=In(e);return An(i,n,t,r)}function In(e){let n;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&&(n=u),u}let r=t(e.root),i=wn(r);return n??i}function An(e,n,t,r){let i=e;for(;i.parent;)i=i.parent;if(n.length===0)return Ne(i,i,i,t,r);let s=yi(n);if(s.toRoot())return Ne(i,i,new v([],{}),t,r);let o=Ci(s,i,e),u=o.processChildren?Ot(o.segmentGroup,o.index,s.commands):Dn(o.segmentGroup,o.index,s.commands);return Ne(i,o.segmentGroup,u,t,r)}function ne(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function xt(e){return typeof e=="object"&&e!=null&&e.outlets}function Ne(e,n,t,r,i){let s={};r&&Object.entries(r).forEach(([a,c])=>{s[a]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let o;e===n?o=t:o=Mn(e,n,t);let u=wn(bn(o));return new V(u,s,i)}function Mn(e,n,t){let r={};return Object.entries(e.children).forEach(([i,s])=>{s===n?r[i]=t:r[i]=Mn(s,n,t)}),new v(e.segments,r)}var ie=class{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&ne(r[0]))throw new b(4003,!1);let i=r.find(xt);if(i&&i!==gn(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function yi(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ie(!0,0,e);let n=0,t=!1,r=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===".."?n++:u!=""&&i.push(u))}),i):[...i,s]},[]);return new ie(t,n,r)}var ct=class{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}};function Ci(e,n,t){if(e.isAbsolute)return new ct(n,!0,0);if(!t)return new ct(n,!1,NaN);if(t.parent===null)return new ct(t,!0,0);let r=ne(e.commands[0])?0:1,i=t.segments.length-1+r;return Ri(t,i,e.numberOfDoubleDots)}function Ri(e,n,t){let r=e,i=n,s=t;for(;s>i;){if(s-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new ct(r,!1,i-s)}function Si(e){return xt(e[0])?e[0].outlets:{[g]:e}}function Dn(e,n,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return Ot(e,n,t);let r=wi(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let s=new v(e.segments.slice(0,r.pathIndex),{});return s.children[g]=new v(e.segments.slice(r.pathIndex),e.children),Ot(s,0,i)}else return r.match&&i.length===0?new v(e.segments,{}):r.match&&!e.hasChildren()?Fe(e,n,t):r.match?Ot(e,0,i):Fe(e,n,t)}function Ot(e,n,t){if(t.length===0)return new v(e.segments,{});{let r=Si(t),i={};if(Object.keys(r).some(s=>s!==g)&&e.children[g]&&e.numberOfChildren===1&&e.children[g].segments.length===0){let s=Ot(e.children[g],n,t);return new v(e.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=Dn(e.children[s],n,o))}),Object.entries(e.children).forEach(([s,o])=>{r[s]===void 0&&(i[s]=o)}),new v(e.segments,i)}}function wi(e,n,t){let r=0,i=n,s={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=t.length)return s;let o=e.segments[i],u=t[r];if(xt(u))break;let a=`${u}`,c=r<t.length-1?t[r+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!on(a,c,o))return s;r+=2}else{if(!on(a,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Fe(e,n,t){let r=e.segments.slice(0,n),i=0;for(;i<t.length;){let s=t[i];if(xt(s)){let a=bi(s.outlets);return new v(r,a)}if(i===0&&ne(t[0])){let a=e.segments[n];r.push(new tt(a.path,sn(t[0]))),i++;continue}let o=xt(s)?s.outlets[g]:`${s}`,u=i<t.length-1?t[i+1]:null;o&&u&&ne(u)?(r.push(new tt(o,sn(u))),i+=2):(r.push(new tt(o,{})),i++)}return new v(r,{})}function bi(e){let n={};return Object.entries(e).forEach(([t,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[t]=Fe(new v([],{}),0,r))}),n}function sn(e){let n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function on(e,n,t){return e==t.path&&_(n,t.parameters)}var Et="imperative",R=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}(R||{}),U=class{constructor(n,t){this.id=n,this.url=t}},pt=class extends U{constructor(n,t,r="imperative",i=null){super(n,t),this.type=R.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},$=class extends U{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=R.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},O=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(O||{}),se=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(se||{}),B=class extends U{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=R.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},K=class extends U{constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i,this.type=R.NavigationSkipped}},Pt=class extends U{constructor(n,t,r,i){super(n,t),this.error=r,this.target=i,this.type=R.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},oe=class extends U{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=R.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qe=class extends U{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=R.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Be=class extends U{constructor(n,t,r,i,s){super(n,t),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s,this.type=R.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ve=class extends U{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=R.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},He=class extends U{constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i,this.type=R.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},We=class{constructor(n){this.route=n,this.type=R.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ge=class{constructor(n){this.route=n,this.type=R.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Qe=class{constructor(n){this.snapshot=n,this.type=R.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ke=class{constructor(n){this.snapshot=n,this.type=R.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ze=class{constructor(n){this.snapshot=n,this.type=R.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ye=class{constructor(n){this.snapshot=n,this.type=R.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ae=class{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=R.Scroll}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Nt=class{},gt=class{constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}};function Ii(e,n){return e.providers&&!e._injector&&(e._injector=Te(e.providers,n,`Route: ${e.path}`)),e._injector??n}function j(e){return e.outlet||g}function Ai(e,n){let t=e.filter(r=>j(r)===n);return t.push(...e.filter(r=>j(r)!==n)),t}function zt(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){let t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var Xe=class{get injector(){return zt(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new Ft(this.rootInjector),this.attachRef=null}},Ft=(()=>{class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,r){let i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new Xe(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static{this.\u0275fac=function(r){return new(r||e)(q(It))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ue=class{constructor(n){this._root=n}get root(){return this._root.value}parent(n){let t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){let t=Je(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){let t=Je(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){let t=tr(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return tr(n,this._root).map(t=>t.value)}};function Je(e,n){if(e===n.value)return n;for(let t of n.children){let r=Je(e,t);if(r)return r}return null}function tr(e,n){if(e===n.value)return[n];for(let t of n.children){let r=tr(e,t);if(r.length)return r.unshift(n),r}return[]}var T=class{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}};function ut(e){let n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}var ce=class extends ue{constructor(n,t){super(n),this.snapshot=t,cr(this,n)}toString(){return this.snapshot.toString()}};function Tn(e){let n=Mi(e),t=new E([new tt("",{})]),r=new E({}),i=new E({}),s=new E({}),o=new E(""),u=new Z(t,r,s,o,i,g,e,n.root);return u.snapshot=n.root,new ce(new T(u,[]),n)}function Mi(e){let n={},t={},r={},i="",s=new lt([],n,r,i,t,g,e,null,{});return new he("",new T(s,[]))}var Z=class{constructor(n,t,r,i,s,o,u,a){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[_t]))??f(void 0),this.url=n,this.params=t,this.queryParams=r,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(n=>dt(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(n=>dt(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function le(e,n,t="emptyOnly"){let r,{routeConfig:i}=e;return n!==null&&(t==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:h(h({},n.params),e.params),data:h(h({},n.data),e.data),resolve:h(h(h(h({},e.data),n.data),i?.data),e._resolvedData)}:r={params:h({},e.params),data:h({},e.data),resolve:h(h({},e.data),e._resolvedData??{})},i&&En(i)&&(r.resolve[_t]=i.title),r}var lt=class{get title(){return this.data?.[_t]}constructor(n,t,r,i,s,o,u,a,c){this.url=n,this.params=t,this.queryParams=r,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??=dt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=dt(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${t}')`}},he=class extends ue{constructor(n,t){super(t),this.url=n,cr(this,t)}toString(){return On(this._root)}};function cr(e,n){n.value._routerState=e,n.children.forEach(t=>cr(e,t))}function On(e){let n=e.children.length>0?` { ${e.children.map(On).join(", ")} } `:"";return`${e.value}${n}`}function je(e){if(e.snapshot){let n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,_(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),_(n.params,t.params)||e.paramsSubject.next(t.params),Jn(n.url,t.url)||e.urlSubject.next(t.url),_(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function er(e,n){let t=_(e.params,n.params)&&ni(e.url,n.url),r=!e.parent!=!n.parent;return t&&!r&&(!e.parent||er(e.parent,n.parent))}function En(e){return typeof e.title=="string"||e.title===null}var Di=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=g,this.activateEvents=new st,this.deactivateEvents=new st,this.attachEvents=new st,this.detachEvents=new st,this.parentContexts=l(Ft),this.location=l($r),this.changeDetector=l(Zt),this.inputBinder=l(ge,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:i}=t.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,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,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=t;let i=this.location,o=t.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new rr(t,u,i.injector);this.activated=i.createComponent(o,{index:i.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Wt({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Gt]})}}return e})(),rr=class e{__ngOutletInjector(n){return new e(this.route,this.childContexts,n)}constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===Z?this.route:n===Ft?this.childContexts:this.parent.get(n,t)}},ge=new D(""),an=(()=>{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:r}=t,i=Vt([r.queryParams,r.params,r.data]).pipe(P(([s,o,u],a)=>(u=h(h(h({},s),o),u),a===0?f(u):Promise.resolve(u)))).subscribe(s=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let o=Yr(r.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(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})();function Ti(e,n,t){let r=jt(e,n._root,t?t._root:void 0);return new ce(r,n)}function jt(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){let r=t.value;r._futureSnapshot=n.value;let i=Oi(e,n,t);return new T(r,i)}else{if(e.shouldAttach(n.value)){let s=e.retrieve(n.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(u=>jt(e,u)),o}}let r=Ei(n.value),i=n.children.map(s=>jt(e,s));return new T(r,i)}}function Oi(e,n,t){return n.children.map(r=>{for(let i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return jt(e,r,i);return jt(e,r)})}function Ei(e){return new Z(new E(e.url),new E(e.params),new E(e.queryParams),new E(e.fragment),new E(e.data),e.outlet,e.component,e)}var $t=class{constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}},Un="ngNavigationCancelingError";function de(e,n){let{redirectTo:t,navigationBehaviorOptions:r}=rt(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=xn(!1,O.Redirect);return i.url=t,i.navigationBehaviorOptions=r,i}function xn(e,n){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[Un]=!0,t.cancellationCode=n,t}function Ui(e){return Pn(e)&&rt(e.url)}function Pn(e){return!!e&&e[Un]}var xi=(e,n,t,r)=>m(i=>(new nr(n,i.targetRouterState,i.currentRouterState,t,r).activate(e),i)),nr=class{constructor(n,t,r,i,s){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=s}activate(n){let t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),je(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){let i=ut(t);n.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(n,t,r){let i=n.value,s=t?t.value:null;if(i===s)if(i.component){let o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(n,t,o.children)}else this.deactivateChildRoutes(n,t,r);else s&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,s=ut(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(r&&r.outlet){let o=r.outlet.detach(),u=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:u})}}deactivateRouteAndOutlet(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,s=ut(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){let i=ut(t);n.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new Ye(s.value.snapshot))}),n.children.length&&this.forwardEvent(new Ke(n.value.snapshot))}activateRoutes(n,t,r){let i=n.value,s=t?t.value:null;if(je(i),i===s)if(i.component){let o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,o.children)}else this.activateChildRoutes(n,t,r);else if(i.component){let o=r.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),je(u.route.value),this.activateChildRoutes(n,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(n,null,o.children)}else this.activateChildRoutes(n,null,r)}},fe=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ht=class{constructor(n,t){this.component=n,this.route=t}};function Pi(e,n,t){let r=e._root,i=n?n._root:null;return Dt(r,i,t,[r.value])}function Ni(e){let n=e.routeConfig?e.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:e,guards:n}}function Ct(e,n){let t=Symbol(),r=n.get(e,t);return r===t?typeof e=="function"&&!Mr(e)?e:n.get(e):r}function Dt(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=ut(n);return e.children.forEach(o=>{ji(o,s[o.value.outlet],t,r.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,u])=>Ut(u,t.getContext(o),i)),i}function ji(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=n?n.value:null,u=t?t.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=$i(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new fe(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Dt(e,n,u?u.children:null,r,i):Dt(e,n,t,r,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new ht(u.outlet.component,o))}else o&&Ut(n,u,i),i.canActivateChecks.push(new fe(r)),s.component?Dt(e,null,u?u.children:null,r,i):Dt(e,null,t,r,i);return i}function $i(e,n,t){if(typeof t=="function")return t(e,n);switch(t){case"pathParamsChange":return!et(e.url,n.url);case"pathParamsOrQueryParamsChange":return!et(e.url,n.url)||!_(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!er(e,n)||!_(e.queryParams,n.queryParams);case"paramsChange":default:return!er(e,n)}}function Ut(e,n,t){let r=ut(e),i=e.value;Object.entries(r).forEach(([s,o])=>{i.component?n?Ut(o,n.children.getContext(s),t):Ut(o,null,t):Ut(o,n,t)}),i.component?n&&n.outlet&&n.outlet.isActivated?t.canDeactivateChecks.push(new ht(n.outlet.component,i)):t.canDeactivateChecks.push(new ht(null,i)):t.canDeactivateChecks.push(new ht(null,i))}function qt(e){return typeof e=="function"}function Li(e){return typeof e=="boolean"}function ki(e){return e&&qt(e.canLoad)}function _i(e){return e&&qt(e.canActivate)}function zi(e){return e&&qt(e.canActivateChild)}function Fi(e){return e&&qt(e.canDeactivate)}function qi(e){return e&&qt(e.canMatch)}function Nn(e){return e instanceof yr||e?.name==="EmptyError"}var Jt=Symbol("INITIAL_VALUE");function vt(){return P(e=>Vt(e.map(n=>n.pipe(it(1),br(Jt)))).pipe(m(n=>{for(let t of n)if(t!==!0){if(t===Jt)return Jt;if(t===!1||Bi(t))return t}return!0}),X(n=>n!==Jt),it(1)))}function Bi(e){return rt(e)||e instanceof $t}function Vi(e,n){return M(t=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=t;return o.length===0&&s.length===0?f(A(h({},t),{guardsResult:!0})):Hi(o,r,i,e).pipe(M(u=>u&&Li(u)?Wi(r,s,e,n):f(u)),m(u=>A(h({},t),{guardsResult:u})))})}function Hi(e,n,t,r){return I(e).pipe(M(i=>Yi(i.component,i.route,t,n,r)),Q(i=>i!==!0,!0))}function Wi(e,n,t,r){return I(n).pipe(nt(i=>Cr(Qi(i.route.parent,r),Gi(i.route,r),Zi(e,i.path,t),Ki(e,i.route,t))),Q(i=>i!==!0,!0))}function Gi(e,n){return e!==null&&n&&n(new Ze(e)),f(!0)}function Qi(e,n){return e!==null&&n&&n(new Qe(e)),f(!0)}function Ki(e,n,t){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let i=r.map(s=>Re(()=>{let o=zt(n)??t,u=Ct(s,o),a=_i(u)?u.canActivate(n,e):k(o,()=>u(n,e));return Y(a).pipe(Q())}));return f(i).pipe(vt())}function Zi(e,n,t){let r=n[n.length-1],s=n.slice(0,n.length-1).reverse().map(o=>Ni(o)).filter(o=>o!==null).map(o=>Re(()=>{let u=o.guards.map(a=>{let c=zt(o.node)??t,d=Ct(a,c),p=zi(d)?d.canActivateChild(r,e):k(c,()=>d(r,e));return Y(p).pipe(Q())});return f(u).pipe(vt())}));return f(s).pipe(vt())}function Yi(e,n,t,r,i){let s=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let o=s.map(u=>{let a=zt(n)??i,c=Ct(u,a),d=Fi(c)?c.canDeactivate(e,n,t,r):k(a,()=>c(e,n,t,r));return Y(d).pipe(Q())});return f(o).pipe(vt())}function Xi(e,n,t,r){let i=n.canLoad;if(i===void 0||i.length===0)return f(!0);let s=i.map(o=>{let u=Ct(o,e),a=ki(u)?u.canLoad(n,t):k(e,()=>u(n,t));return Y(a)});return f(s).pipe(vt(),jn(r))}function jn(e){return vr(S(n=>{if(typeof n!="boolean")throw de(e,n)}),m(n=>n===!0))}function Ji(e,n,t,r){let i=n.canMatch;if(!i||i.length===0)return f(!0);let s=i.map(o=>{let u=Ct(o,e),a=qi(u)?u.canMatch(n,t):k(e,()=>u(n,t));return Y(a)});return f(s).pipe(vt(),jn(r))}var Lt=class{constructor(n){this.segmentGroup=n||null}},kt=class extends Error{constructor(n){super(),this.urlTree=n}};function at(e){return wt(new Lt(e))}function ts(e){return wt(new b(4e3,!1))}function es(e){return wt(xn(!1,O.GuardRejected))}var ir=class{constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return f(r);if(i.numberOfChildren>1||!i.children[g])return ts(`${n.redirectTo}`);i=i.children[g]}}applyRedirectCommands(n,t,r,i,s){if(typeof t!="string"){let u=t,{queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,params:L,data:w,title:H}=i,x=k(s,()=>u({params:L,data:w,queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,title:H}));if(x instanceof V)throw new kt(x);t=x}let o=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r);if(t[0]==="/")throw new kt(o);return o}applyRedirectCreateUrlTree(n,t,r,i){let s=this.createSegmentGroup(n,t.root,r,i);return new V(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){let r={};return Object.entries(n).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let u=s.substring(1);r[i]=t[u]}else r[i]=s}),r}createSegmentGroup(n,t,r,i){let s=this.createSegments(n,t.segments,r,i),o={};return Object.entries(t.children).forEach(([u,a])=>{o[u]=this.createSegmentGroup(n,a,r,i)}),new v(s,o)}createSegments(n,t,r,i){return t.map(s=>s.path[0]===":"?this.findPosParam(n,s,i):this.findOrReturn(s,r))}findPosParam(n,t,r){let i=r[t.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(n,t){let r=0;for(let i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}},sr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function rs(e,n,t,r,i){let s=$n(e,n,t);return s.matched?(r=Ii(n,r),Ji(r,n,t,i).pipe(m(o=>o===!0?s:h({},sr)))):f(s)}function $n(e,n,t){if(n.path==="**")return ns(t);if(n.path==="")return n.pathMatch==="full"&&(e.hasChildren()||t.length>0)?h({},sr):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Xn)(t,e,n);if(!i)return h({},sr);let s={};Object.entries(i.posParams??{}).forEach(([u,a])=>{s[u]=a.path});let o=i.consumed.length>0?h(h({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function ns(e){return{matched:!0,parameters:e.length>0?gn(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function un(e,n,t,r){return t.length>0&&os(e,t,r)?{segmentGroup:new v(n,ss(r,new v(t,e.children))),slicedSegments:[]}:t.length===0&&as(e,t,r)?{segmentGroup:new v(e.segments,is(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function is(e,n,t,r){let i={};for(let s of t)if(ve(e,n,s)&&!r[j(s)]){let o=new v([],{});i[j(s)]=o}return h(h({},r),i)}function ss(e,n){let t={};t[g]=n;for(let r of e)if(r.path===""&&j(r)!==g){let i=new v([],{});t[j(r)]=i}return t}function os(e,n,t){return t.some(r=>ve(e,n,r)&&j(r)!==g)}function as(e,n,t){return t.some(r=>ve(e,n,r))}function ve(e,n,t){return(e.hasChildren()||n.length>0)&&t.pathMatch==="full"?!1:t.path===""}function us(e,n,t){return n.length===0&&!e.children[t]}var or=class{};function cs(e,n,t,r,i,s,o="emptyOnly"){return new ar(e,n,t,r,i,o,s).recognize()}var ls=31,ar=class{constructor(n,t,r,i,s,o,u){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=u,this.applyRedirects=new ir(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){let n=un(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(({children:t,rootSnapshot:r})=>{let i=new T(r,t),s=new he("",i),o=mi(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(n){let t=new lt([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,g,t).pipe(m(r=>({children:r,rootSnapshot:t})),J(r=>{if(r instanceof kt)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Lt?this.noMatchError(r):r}))}processSegmentGroup(n,t,r,i,s){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,t,r,s):this.processSegment(n,t,r,r.segments,i,!0,s).pipe(m(o=>o instanceof T?[o]:[]))}processChildren(n,t,r,i){let s=[];for(let o of Object.keys(r.children))o==="primary"?s.unshift(o):s.push(o);return I(s).pipe(nt(o=>{let u=r.children[o],a=Ai(t,o);return this.processSegmentGroup(n,a,u,o,i)}),wr((o,u)=>(o.push(...u),o)),Se(null),Sr(),M(o=>{if(o===null)return at(r);let u=Ln(o);return hs(u),f(u)}))}processSegment(n,t,r,i,s,o,u){return I(t).pipe(nt(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,r,i,s,o,u).pipe(J(c=>{if(c instanceof Lt)return f(null);throw c}))),Q(a=>!!a),J(a=>{if(Nn(a))return us(r,i,s)?f(new or):at(r);throw a}))}processSegmentAgainstRoute(n,t,r,i,s,o,u,a){return j(r)!==o&&(o===g||!ve(i,s,r))?at(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,s,o,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(n,i,t,r,s,o,a):at(i)}expandSegmentAgainstRouteUsingRedirect(n,t,r,i,s,o,u){let{matched:a,parameters:c,consumedSegments:d,positionalParamSegments:p,remainingSegments:y}=$n(t,i,s);if(!a)return at(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ls&&(this.allowRedirects=!1));let L=new lt(s,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,cn(i),j(i),i.component??i._loadedComponent??null,i,ln(i)),w=le(L,u,this.paramsInheritanceStrategy);L.params=Object.freeze(w.params),L.data=Object.freeze(w.data);let H=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,L,n);return this.applyRedirects.lineralizeSegments(i,H).pipe(M(x=>this.processSegment(n,r,t,x.concat(y),o,!1,u)))}matchSegmentAgainstRoute(n,t,r,i,s,o){let u=rs(t,r,i,n,this.urlSerializer);return r.path==="**"&&(t.children={}),u.pipe(P(a=>a.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(P(({routes:c})=>{let d=r._loadedInjector??n,{parameters:p,consumedSegments:y,remainingSegments:L}=a,w=new lt(y,p,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,cn(r),j(r),r.component??r._loadedComponent??null,r,ln(r)),H=le(w,o,this.paramsInheritanceStrategy);w.params=Object.freeze(H.params),w.data=Object.freeze(H.data);let{segmentGroup:x,slicedSegments:St}=un(t,y,L,c);if(St.length===0&&x.hasChildren())return this.processChildren(d,c,x,w).pipe(m(Bt=>new T(w,Bt)));if(c.length===0&&St.length===0)return f(new T(w,[]));let Yn=j(r)===s;return this.processSegment(d,c,x,St,Yn?g:s,!0,w).pipe(m(Bt=>new T(w,Bt instanceof T?[Bt]:[])))}))):at(t)))}getChildConfig(n,t,r){return t.children?f({routes:t.children,injector:n}):t.loadChildren?t._loadedRoutes!==void 0?f({routes:t._loadedRoutes,injector:t._loadedInjector}):Xi(n,t,r,this.urlSerializer).pipe(M(i=>i?this.configLoader.loadChildren(n,t).pipe(S(s=>{t._loadedRoutes=s.routes,t._loadedInjector=s.injector})):es(t))):f({routes:[],injector:n})}};function hs(e){e.sort((n,t)=>n.value.outlet===g?-1:t.value.outlet===g?1:n.value.outlet.localeCompare(t.value.outlet))}function ds(e){let n=e.value.routeConfig;return n&&n.path===""}function Ln(e){let n=[],t=new Set;for(let r of e){if(!ds(r)){n.push(r);continue}let i=n.find(s=>r.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...r.children),t.add(i)):n.push(r)}for(let r of t){let i=Ln(r.children);n.push(new T(r.value,i))}return n.filter(r=>!t.has(r))}function cn(e){return e.data||{}}function ln(e){return e.resolve||{}}function fs(e,n,t,r,i,s){return M(o=>cs(e,n,t,r,o.extractedUrl,i,s).pipe(m(({state:u,tree:a})=>A(h({},o),{targetSnapshot:u,urlAfterRedirects:a}))))}function ps(e,n){return M(t=>{let{targetSnapshot:r,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 kn(a))o.add(c);let u=0;return I(o).pipe(nt(a=>s.has(a)?gs(a,r,e,n):(a.data=le(a,a.parent,e).resolve,f(void 0))),S(()=>u++),we(1),M(a=>u===o.size?f(t):G))})}function kn(e){let n=e.children.map(t=>kn(t)).flat();return[e,...n]}function gs(e,n,t,r){let i=e.routeConfig,s=e._resolve;return i?.title!==void 0&&!En(i)&&(s[_t]=i.title),vs(s,e,n,r).pipe(m(o=>(e._resolvedData=o,e.data=le(e,e.parent,t).resolve,null)))}function vs(e,n,t,r){let i=ke(e);if(i.length===0)return f({});let s={};return I(i).pipe(M(o=>ms(e[o],n,t,r).pipe(Q(),S(u=>{if(u instanceof $t)throw de(new ft,u);s[o]=u}))),we(1),Rr(s),J(o=>Nn(o)?G:wt(o)))}function ms(e,n,t,r){let i=zt(n)??r,s=Ct(e,i),o=s.resolve?s.resolve(n,t):k(i,()=>s(n,t));return Y(o)}function $e(e){return P(n=>{let t=e(n);return t?I(t).pipe(m(()=>n)):f(n)})}var _n=(()=>{class e{buildTitle(t){let r,i=t.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(s=>s.outlet===g);return r}getResolvedTitleForRoute(t){return t.data[_t]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>l(ys),providedIn:"root"})}}return e})(),ys=(()=>{class e extends _n{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(q(en))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Rt=new D("",{providedIn:"root",factory:()=>({})}),Cs=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Or({type:e,selectors:[["ng-component"]],standalone:!0,features:[Wr],decls:1,vars:0,template:function(r,i){r&1&&Fr(0,"router-outlet")},dependencies:[Di],encapsulation:2})}}return e})();function lr(e){let n=e.children&&e.children.map(lr),t=n?A(h({},e),{children:n}):h({},e);return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==g&&(t.component=Cs),t}var mt=new D(""),hr=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=l(Kt)}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 r=Y(t.loadComponent()).pipe(m(zn),S(s=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s}),Ht(()=>{this.componentLoaders.delete(t)})),i=new Ce(r,()=>new W).pipe(ye());return this.componentLoaders.set(t,i),i}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=Rs(r,this.compiler,t,this.onLoadEndListener).pipe(Ht(()=>{this.childrenLoaders.delete(r)})),o=new Ce(s,()=>new W).pipe(ye());return this.childrenLoaders.set(r,o),o}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Rs(e,n,t,r){return Y(e.loadChildren()).pipe(m(zn),M(i=>i instanceof kr||Array.isArray(i)?f(i):I(n.compileModuleAsync(i))),m(i=>{r&&r(e);let s,o,u=!1;return Array.isArray(i)?(o=i,u=!0):(s=i.create(t).injector,o=s.get(mt,[],{optional:!0,self:!0}).flat()),{routes:o.map(lr),injector:s}}))}function Ss(e){return e&&typeof e=="object"&&"default"in e}function zn(e){return Ss(e)?e.default:e}var dr=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>l(ws),providedIn:"root"})}}return e})(),ws=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Fn=new D(""),qn=new D("");function bs(e,n,t){let r=e.get(qn),i=e.get(Xr);return e.get(Qt).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let s,o=new Promise(c=>{s=c}),u=i.startViewTransition(()=>(s(),Is(e))),{onViewTransitionCreated:a}=r;return a&&k(e,()=>a({transition:u,from:n,to:t})),o})}function Is(e){return new Promise(n=>{_r({read:()=>setTimeout(n)},{injector:e})})}var Bn=new D(""),me=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new W,this.transitionAbortSubject=new W,this.configLoader=l(hr),this.environmentInjector=l(It),this.urlSerializer=l(yt),this.rootContexts=l(Ft),this.location=l(At),this.inputBindingEnabled=l(ge,{optional:!0})!==null,this.titleStrategy=l(_n),this.options=l(Rt,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=l(dr),this.createViewTransition=l(Fn,{optional:!0}),this.navigationErrorHandler=l(Bn,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let t=i=>this.events.next(new We(i)),r=i=>this.events.next(new Ge(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(A(h(h({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,i){return this.transitions=new E({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Et,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=>A(h({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),P(s=>{let o=!1,u=!1;return f(s).pipe(P(a=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",O.SupersededByNewNavigation),G;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?A(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!c&&d!=="reload"){let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.rawUrl),p,se.IgnoredSameUrlNavigation)),a.resolve(!1),G}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return f(a).pipe(P(p=>{let y=this.transitions?.getValue();return this.events.next(new pt(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),y!==this.transitions?.getValue()?G:Promise.resolve(p)}),fs(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),S(p=>{s.targetSnapshot=p.targetSnapshot,s.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=A(h({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let y=new oe(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:y,source:L,restoredState:w,extras:H}=a,x=new pt(p,this.urlSerializer.serialize(y),L,w);this.events.next(x);let St=Tn(this.rootComponentType).snapshot;return this.currentTransition=s=A(h({},a),{targetSnapshot:St,urlAfterRedirects:y,extras:A(h({},H),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,f(s)}else{let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.extractedUrl),p,se.IgnoredByUrlHandlingStrategy)),a.resolve(!1),G}}),S(a=>{let c=new qe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=s=A(h({},a),{guards:Pi(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),Vi(this.environmentInjector,a=>this.events.next(a)),S(a=>{if(s.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw de(this.urlSerializer,a.guardsResult);let c=new Be(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,"",O.GuardRejected),!1)),$e(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(S(c=>{let d=new Ve(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),P(c=>{let d=!1;return f(c).pipe(ps(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",O.NoDataFromResolver)}}))}),S(c=>{let d=new He(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),$e(a=>{let c=d=>{let p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(S(y=>{d.component=y}),m(()=>{})));for(let y of d.children)p.push(...c(y));return p};return Vt(c(a.targetSnapshot.root)).pipe(Se(null),it(1))}),$e(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:c}=s,d=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return d?I(d).pipe(m(()=>s)):f(s)}),m(a=>{let c=Ti(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=A(h({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,s}),S(()=>{this.events.next(new Nt)}),xi(this.rootContexts,t.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),it(1),S({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new $(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),Ir(this.transitionAbortSubject.pipe(S(a=>{throw a}))),Ht(()=>{!o&&!u&&this.cancelNavigationTransition(s,"",O.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(u=!0,Pn(a))this.events.next(new B(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),Ui(a)?this.events.next(new gt(a.url,a.navigationBehaviorOptions)):s.resolve(!1);else{let c=new Pt(s.id,this.urlSerializer.serialize(s.extractedUrl),a,s.targetSnapshot??void 0);try{let d=k(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof $t){let{message:p,cancellationCode:y}=de(this.urlSerializer,d);this.events.next(new B(s.id,this.urlSerializer.serialize(s.extractedUrl),p,y)),this.events.next(new gt(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(c);let p=t.errorHandler(a);s.resolve(!!p)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return G}))}))}cancelNavigationTransition(t,r,i){let s=new B(t.id,this.urlSerializer.serialize(t.extractedUrl),r,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))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function As(e){return e!==Et}var Ms=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>l(Ds),providedIn:"root"})}}return e})(),ur=class{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}},Ds=(()=>{class e extends ur{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Ie(e)))(i||e)}})()}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Vn=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>l(Ts),providedIn:"root"})}}return e})(),Ts=(()=>{class e extends Vn{constructor(){super(...arguments),this.location=l(At),this.urlSerializer=l(yt),this.options=l(Rt,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=l(dr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new V,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Tn(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(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof pt)this.stateMemento=this.createStateMemento();else if(t instanceof K)this.rawUrlTree=r.initialUrl;else if(t instanceof oe){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else t instanceof Nt?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):t instanceof B&&(t.code===O.GuardRejected||t.code===O.NoDataFromResolver)?this.restoreHistory(r):t instanceof Pt?this.restoreHistory(r,!0):t instanceof $&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let i=t instanceof V?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let s=this.browserPageId,o=h(h({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(i,"",o)}else{let s=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(t,r=!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"&&(r&&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,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=Ie(e)))(i||e)}})()}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Tt=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Tt||{});function Hn(e,n){e.events.pipe(X(t=>t instanceof $||t instanceof B||t instanceof Pt||t instanceof K),m(t=>t instanceof $||t instanceof K?Tt.COMPLETE:(t instanceof B?t.code===O.Redirect||t.code===O.SupersededByNewNavigation:!1)?Tt.REDIRECTING:Tt.FAILED),X(t=>t!==Tt.REDIRECTING),it(1)).subscribe(()=>{n()})}function Os(e){throw e}var Es={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Us={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},z=(()=>{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=l(Qr),this.stateManager=l(Vn),this.options=l(Rt,{optional:!0})||{},this.pendingTasks=l(Pr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=l(me),this.urlSerializer=l(yt),this.location=l(At),this.urlHandlingStrategy=l(dr),this._events=new W,this.errorHandler=this.options.errorHandler||Os,this.navigated=!1,this.routeReuseStrategy=l(Ms),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=l(mt,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!l(ge,{optional:!0}),this.eventsSubscription=new gr,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(r=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof B&&r.code!==O.Redirect&&r.code!==O.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof $)this.navigated=!0;else if(r instanceof gt){let o=r.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),a=h({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||As(i.source)},o);this.scheduleNavigation(u,Et,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Ps(r)&&this._events.next(r)}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),Et,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)})}navigateToSyncWithBrowser(t,r,i){let s={replaceUrl:!0},o=i?.navigationId?i:null;if(i){let a=h({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(s.state=a)}let u=this.parseUrl(t);this.scheduleNavigation(u,r,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(lr),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,r={}){let{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:u,preserveFragment:a}=r,c=a?this.currentUrlTree.fragment:o,d=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let y=i?i.snapshot:this.routerState.snapshot.root;p=In(y)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),p=this.currentUrlTree.root}return An(p,t,d,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){let i=rt(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Et,null,r)}navigate(t,r={skipLocationChange:!1}){return xs(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let i;if(r===!0?i=h({},Es):r===!1?i=h({},Us):i=r,rt(t))return rn(this.currentUrlTree,t,i);let s=this.parseUrl(t);return rn(this.currentUrlTree,s,i)}removeEmptyProps(t){return Object.entries(t).reduce((r,[i,s])=>(s!=null&&(r[i]=s),r),{})}scheduleNavigation(t,r,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((p,y)=>{u=p,a=y});let d=this.pendingTasks.add();return Hn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,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(p=>Promise.reject(p))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function xs(e){for(let n=0;n<e.length;n++)if(e[n]==null)throw new b(4008,!1)}function Ps(e){return!(e instanceof Nt)&&!(e instanceof gt)}var hn=(()=>{class e{constructor(t,r,i,s,o,u){this.router=t,this.route=r,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=u,this.href=null,this.onChanges=new W,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 $&&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)):(rt(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,r,i,s,o){let u=this.urlTree;if(u===null||this.isAnchorElement&&(t!==0||r||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 r=this.href===null?null:Nr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(t,r){let i=this.renderer,s=this.el.nativeElement;r!==null?i.setAttribute(s,t,r):i.removeAttribute(s,t)}get urlTree(){return this.routerLinkInput===null?null:rt(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(r){return new(r||e)(N(z),N(Z),xr("tabindex"),N(De),N(Me),N(ot))}}static{this.\u0275dir=Wt({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&qr("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),r&2&&zr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Yt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Yt],replaceUrl:[2,"replaceUrl","replaceUrl",Yt],routerLink:"routerLink"},standalone:!0,features:[Lr,Gt]})}}return e})(),vo=(()=>{class e{get isActive(){return this._isActive}constructor(t,r,i,s,o){this.router=t,this.element=r,this.renderer=i,this.cdr=s,this.link=o,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new st,this.routerEventsSubscription=t.events.subscribe(u=>{u instanceof $&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(bt()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=I(t).pipe(bt()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){let r=Array.isArray(t)?t:t.split(" ");this.classes=r.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(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),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 r=Ns(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?t.isActive(s,r):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static{this.\u0275fac=function(r){return new(r||e)(N(z),N(Me),N(De),N(Zt),N(hn,8))}}static{this.\u0275dir=Wt({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,s){if(r&1&&Br(s,hn,5),r&2){let o;Vr(o=Hr())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Gt]})}}return e})();function Ns(e){return!!e.paths}var pe=class{},mo=(()=>{class e{preload(t,r){return r().pipe(J(()=>f(null)))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),yo=(()=>{class e{preload(t,r){return f(null)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),js=(()=>{class e{constructor(t,r,i,s,o){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(X(t=>t instanceof $),nt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){let i=[];for(let s of r){s.providers&&!s._injector&&(s._injector=Te(s.providers,t,`Route: ${s.path}`));let o=s._injector??t,u=s._loadedInjector??o;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(o,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(u,s.children??s._loadedRoutes))}return I(i).pipe(bt())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(t,r):i=f(null);let s=i.pipe(M(o=>o===null?f(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes(o.injector??t,o.routes))));if(r.loadComponent&&!r._loadedComponent){let o=this.loader.loadComponent(r);return I([s,o]).pipe(bt())}else return s})}static{this.\u0275fac=function(r){return new(r||e)(q(z),q(Kt),q(It),q(pe),q(hr))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),fr=new D(""),Wn=(()=>{class e{constructor(t,r,i,s,o={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=i,this.zone=s,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration||="disabled",o.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof pt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof $?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof K&&t.code===se.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof ae&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ae(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){jr()}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})();function Co(e,...n){return Ur([{provide:mt,multi:!0,useValue:e},[],{provide:Z,useFactory:Gn,deps:[z]},{provide:Ee,multi:!0,useFactory:Qn},n.map(t=>t.\u0275providers)])}function Gn(e){return e.routerState.root}function F(e,n){return{\u0275kind:e,\u0275providers:n}}function Ro(e){return[{provide:mt,multi:!0,useValue:e},[]]}function So(e={}){return F(4,[{provide:fr,useFactory:()=>{let t=l(xe),r=l(Qt),i=l(me),s=l(yt);return new Wn(s,i,t,r,e)}}])}function Qn(){let e=l(Ae);return n=>{let t=e.get(Zr);if(n!==t.components[0])return;let r=e.get(z),i=e.get(Kn);e.get(pr)===1&&r.initialNavigation(),e.get(Zn,null,be.Optional)?.setUpPreloading(),e.get(fr,null,be.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Kn=new D("",{factory:()=>new W}),pr=new D("",{providedIn:"root",factory:()=>1});function $s(){return F(2,[{provide:pr,useValue:0},{provide:Oe,multi:!0,deps:[Ae],useFactory:n=>{let t=n.get(Jr,Promise.resolve());return()=>t.then(()=>new Promise(r=>{let i=n.get(z),s=n.get(Kn);Hn(i,()=>{r(!0)}),n.get(me).afterPreactivation=()=>(r(!0),s.closed?f(void 0):s),i.initialNavigation()}))}}])}function Ls(){return F(3,[{provide:Oe,multi:!0,useFactory:()=>{let n=l(z);return()=>{n.setUpLocationChangeListener()}}},{provide:pr,useValue:2}])}function wo(){let e=[];return e=[],F(1,e)}var Zn=new D("");function ks(e){return F(0,[{provide:Zn,useExisting:js},{provide:pe,useExisting:e}])}function bo(e){return F(5,[{provide:Rt,useValue:e}])}function Io(){return F(6,[{provide:ot,useClass:Ue}])}function Ao(e){return F(7,[{provide:Bn,useValue:e}])}function _s(){return F(8,[an,{provide:ge,useExisting:an}])}function zs(e){let n=[{provide:Fn,useValue:bs},{provide:qn,useValue:h({skipNextTransition:!!e?.skipInitialTransition},e)}];return F(9,n)}var dn=new D("ROUTER_FORROOT_GUARD"),Fs=[At,{provide:yt,useClass:ft},z,Ft,{provide:Z,useFactory:Gn,deps:[z]},hr,[]],Mo=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[Fs,[],{provide:mt,multi:!0,useValue:t},{provide:dn,useFactory:Hs,deps:[[z,new Dr,new Tr]]},{provide:Rt,useValue:r||{}},r?.useHash?Bs():Vs(),qs(),r?.preloadingStrategy?ks(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Ws(r):[],r?.bindToComponentInputs?_s().\u0275providers:[],r?.enableViewTransitions?zs().\u0275providers:[],Gs()]}}static forChild(t){return{ngModule:e,providers:[{provide:mt,multi:!0,useValue:t}]}}static{this.\u0275fac=function(r){return new(r||e)(q(dn,8))}}static{this.\u0275mod=Er({type:e})}static{this.\u0275inj=Ar({})}}return e})();function qs(){return{provide:fr,useFactory:()=>{let e=l(xe),n=l(Qt),t=l(Rt),r=l(me),i=l(yt);return t.scrollOffset&&e.setOffset(t.scrollOffset),new Wn(i,r,e,n,t)}}}function Bs(){return{provide:ot,useClass:Ue}}function Vs(){return{provide:ot,useClass:tn}}function Hs(e){return"guarded"}function Ws(e){return[e.initialNavigation==="disabled"?Ls().\u0275providers:[],e.initialNavigation==="enabledBlocking"?$s().\u0275providers:[]]}var fn=new D("");function Gs(){return[{provide:fn,useFactory:Qn},{provide:Ee,multi:!0,useExisting:fn}]}function Do(e){return e.map(n=>(...t)=>l(n).canMatch(...t))}function To(e){return e.map(n=>(...t)=>l(n).canActivate(...t))}function Oo(e){return e.map(n=>(...t)=>l(n).canActivateChild(...t))}function Eo(e){return e.map(n=>(...t)=>l(n).canDeactivate(...t))}function Uo(e){return(...n)=>l(e).resolve(...n)}var xo=new Gr("18.2.7");export{g as a,dt as b,Xn as c,V as d,v as e,tt as f,yt as g,ft as h,mi as i,R as j,U as k,pt as l,$ as m,O as n,se as o,B as p,K as q,Pt as r,oe as s,qe as t,Be as u,Ve as v,He as w,We as x,Ge as y,Qe as z,Ke as A,Ze as B,Ye as C,ae as D,Xe as E,Ft as F,ce as G,Z as H,lt as I,he as J,Di as K,$t as L,_n as M,ys as N,Rt as O,Cs as P,mt as Q,Rs as R,dr as S,Ms as T,ur as U,Hn as V,z as W,hn as X,vo as Y,pe as Z,mo as _,yo as $,js as aa,Co as ba,Ro as ca,So as da,$s as ea,Ls as fa,wo as ga,ks as ha,bo as ia,Io as ja,Ao as ka,_s as la,zs as ma,Fs as na,Mo as oa,fn as pa,Do as qa,To as ra,Oo as sa,Eo as ta,Uo as ua,xo as va};
@@ -1 +1 @@
1
- import{a as f}from"./chunk-KJQLPHGM.js";import"./chunk-2EGLLTER.js";import"./chunk-NAZLO3UY.js";import{a as u,g,h as k}from"./chunk-3UHRO33D.js";import{X as l}from"./chunk-X2IPCPJN.js";import"./chunk-2MDIWOW5.js";import"./chunk-JE2I63Y6.js";import"./chunk-MJCUB3L3.js";import{$ as d,Pb as t,Ra as o,Xb as s,Yb as r,jb as p,sb as e,tb as n,ub as a}from"./chunk-67JGZ4NF.js";import"./chunk-7CGTOI24.js";var C=()=>["/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,y){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,"Import backup configuration from a file. During import you can adjust the setings."),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,C)),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-ND2MJYUF.js";import"./chunk-2TLPGRQA.js";import"./chunk-E6PE2QMZ.js";import{a as u,g,h as k}from"./chunk-EF6PZOYI.js";import{X as l}from"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import"./chunk-647BVHNL.js";import{Ob as t,Qa as o,Wb as s,Xb as r,_ as d,ib as p,rb as e,sb as n,tb as a}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var C=()=>["/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,y){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,"Import backup configuration from a file. During import you can adjust the setings."),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,C)),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,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,la,m,ma,n,na,o,oa,p,pa,q,qa,r,ra,s,sa,t,ta,u,ua,v,va,w,x,y,z}from"./chunk-X2IPCPJN.js";import"./chunk-2MDIWOW5.js";import"./chunk-JE2I63Y6.js";import"./chunk-67JGZ4NF.js";import"./chunk-7CGTOI24.js";export{H as ActivatedRoute,I as ActivatedRouteSnapshot,C as ActivationEnd,B as ActivationStart,U as BaseRouteReuseStrategy,A as ChildActivationEnd,z as ChildActivationStart,F as ChildrenOutletContexts,N as DefaultTitleStrategy,h as DefaultUrlSerializer,j as EventType,u as GuardsCheckEnd,t as GuardsCheckStart,p as NavigationCancel,n as NavigationCancellationCode,m as NavigationEnd,r as NavigationError,q as NavigationSkipped,o as NavigationSkippedCode,l as NavigationStart,$ as NoPreloading,E as OutletContext,a as PRIMARY_OUTLET,_ as PreloadAllModules,Z as PreloadingStrategy,O as ROUTER_CONFIGURATION,pa as ROUTER_INITIALIZER,Q as ROUTES,L as RedirectCommand,w as ResolveEnd,v as ResolveStart,y as RouteConfigLoadEnd,x as RouteConfigLoadStart,T as RouteReuseStrategy,W as Router,k as RouterEvent,X as RouterLink,Y as RouterLinkActive,X as RouterLinkWithHref,oa as RouterModule,K as RouterOutlet,aa as RouterPreloader,G as RouterState,J as RouterStateSnapshot,s as RoutesRecognized,D as Scroll,M as TitleStrategy,S as UrlHandlingStrategy,f as UrlSegment,e as UrlSegmentGroup,g as UrlSerializer,d as UrlTree,va as VERSION,b as convertToParamMap,i as createUrlTreeFromSnapshot,c as defaultUrlMatcher,ra as mapToCanActivate,sa as mapToCanActivateChild,ta as mapToCanDeactivate,qa as mapToCanMatch,ua as mapToResolve,ba as provideRouter,ca as provideRoutes,la as withComponentInputBinding,ga as withDebugTracing,fa as withDisabledInitialNavigation,ea as withEnabledBlockingInitialNavigation,ja as withHashLocation,da as withInMemoryScrolling,ka as withNavigationErrorHandler,ha as withPreloading,ia as withRouterConfig,ma as withViewTransitions,P as \u0275EmptyOutletComponent,na as \u0275ROUTER_PROVIDERS,V as \u0275afterNextNavigation,R as \u0275loadChildren};
1
+ import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,la,m,ma,n,na,o,oa,p,pa,q,qa,r,ra,s,sa,t,ta,u,ua,v,va,w,x,y,z}from"./chunk-2WWTJWN7.js";import"./chunk-WCMY57ZO.js";import"./chunk-TUN6QDZQ.js";import"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";export{H as ActivatedRoute,I as ActivatedRouteSnapshot,C as ActivationEnd,B as ActivationStart,U as BaseRouteReuseStrategy,A as ChildActivationEnd,z as ChildActivationStart,F as ChildrenOutletContexts,N as DefaultTitleStrategy,h as DefaultUrlSerializer,j as EventType,u as GuardsCheckEnd,t as GuardsCheckStart,p as NavigationCancel,n as NavigationCancellationCode,m as NavigationEnd,r as NavigationError,q as NavigationSkipped,o as NavigationSkippedCode,l as NavigationStart,$ as NoPreloading,E as OutletContext,a as PRIMARY_OUTLET,_ as PreloadAllModules,Z as PreloadingStrategy,O as ROUTER_CONFIGURATION,pa as ROUTER_INITIALIZER,Q as ROUTES,L as RedirectCommand,w as ResolveEnd,v as ResolveStart,y as RouteConfigLoadEnd,x as RouteConfigLoadStart,T as RouteReuseStrategy,W as Router,k as RouterEvent,X as RouterLink,Y as RouterLinkActive,X as RouterLinkWithHref,oa as RouterModule,K as RouterOutlet,aa as RouterPreloader,G as RouterState,J as RouterStateSnapshot,s as RoutesRecognized,D as Scroll,M as TitleStrategy,S as UrlHandlingStrategy,f as UrlSegment,e as UrlSegmentGroup,g as UrlSerializer,d as UrlTree,va as VERSION,b as convertToParamMap,i as createUrlTreeFromSnapshot,c as defaultUrlMatcher,ra as mapToCanActivate,sa as mapToCanActivateChild,ta as mapToCanDeactivate,qa as mapToCanMatch,ua as mapToResolve,ba as provideRouter,ca as provideRoutes,la as withComponentInputBinding,ga as withDebugTracing,fa as withDisabledInitialNavigation,ea as withEnabledBlockingInitialNavigation,ja as withHashLocation,da as withInMemoryScrolling,ka as withNavigationErrorHandler,ha as withPreloading,ia as withRouterConfig,ma as withViewTransitions,P as \u0275EmptyOutletComponent,na as \u0275ROUTER_PROVIDERS,V as \u0275afterNextNavigation,R as \u0275loadChildren};
@@ -1 +1 @@
1
- import{a as L}from"./chunk-KJQLPHGM.js";import{a as I}from"./chunk-2EGLLTER.js";import{a as y}from"./chunk-NAZLO3UY.js";import{a as M,g as R,h as O,n as P}from"./chunk-3UHRO33D.js";import"./chunk-JE2I63Y6.js";import"./chunk-MJCUB3L3.js";import{$ as f,Cb as m,Pb as r,Ra as l,Rb as h,Sb as b,X as s,Xb as v,Zb as D,eb as u,gb as k,hb as _,jb as g,ob as C,pb as x,qb as S,rb as B,sb as a,tb as p,ub as c}from"./chunk-67JGZ4NF.js";import"./chunk-7CGTOI24.js";var w=()=>[O,R,M,import("./chunk-RHGRQONA.js").then(e=>e.RouterLink)],T=e=>["/restore-flow",e];function E(e,o){if(e&1&&(a(0,"spk-card",0),c(1,"img",1),a(2,"div",2)(3,"h3"),r(4),p(),a(5,"p"),r(6),p()(),a(7,"button",3),r(8," Restore "),a(9,"spk-icon"),r(10,"arrow-right"),p()()()),e&2){let t,i,n=o.$implicit;l(4),h("Restore ",(t=n.Backup==null?null:n.Backup.Name)!==null&&t!==void 0?t:"Backup name missing",""),l(2),b(" ",(i=n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceSizeString)!==null&&i!==void 0?i:"-"," / ",(i=n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount)!==null&&i!==void 0?i:"-"," "),l(),g("routerLink",D(4,T,n.Backup==null?null:n.Backup.ID))}}function F(e,o){if(e&1&&S(0,E,11,6,"spk-card",0,x),e&2){let t=m(2);B(t.backups())}}function N(e,o){e&1&&r(0," No backups founds ")}function A(e,o){if(e&1&&u(0,F,2,0)(1,N,1,0),e&2){let t=m();C(t.backups().length?0:1)}}function W(e,o){e&1&&(a(0,"div",4),c(1,"spk-progress-bar",5),a(2,"div",2)(3,"h3"),r(4,"Loading backups..."),p()()())}var d=class e{#e=s(I);#t=s(y);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(o){this.#t.postApiV1BackupByIdRestore({id:o.Backup?.ID,requestBody:{}})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=f({type:e,selectors:[["app-restore"]],standalone:!0,features:[v],decls:8,vars:1,consts:[[1,"type-a"],["src","assets/images/folder.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],[1,"loading-list"],[1,"indeterminate","primary"]],template:function(t,i){t&1&&(c(0,"app-status-bar"),a(1,"section")(2,"h2"),r(3,"Where do you want to restore from?"),p(),u(4,A,2,1)(5,W,5,0),k(6,4,w,null,5),p()),t&2&&(l(6),_(!i.backupsLoading()))},dependencies:[L,P],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{d as default};
1
+ import{a as L}from"./chunk-ND2MJYUF.js";import{a as I}from"./chunk-2TLPGRQA.js";import{a as y}from"./chunk-E6PE2QMZ.js";import{a as M,g as R,h as O,n as P}from"./chunk-EF6PZOYI.js";import"./chunk-TUN6QDZQ.js";import"./chunk-647BVHNL.js";import{Bb as m,Ob as r,Qa as l,Qb as h,Rb as b,W as s,Wb as v,Yb as D,_ as f,db as u,fb as k,gb as _,ib as g,nb as C,ob as x,pb as S,qb as B,rb as a,sb as p,tb as c}from"./chunk-ANRVMVA2.js";import"./chunk-7CGTOI24.js";var w=()=>[O,R,M,import("./chunk-4X4FROQQ.js").then(e=>e.RouterLink)],T=e=>["/restore-flow",e];function E(e,o){if(e&1&&(a(0,"spk-card",0),c(1,"img",1),a(2,"div",2)(3,"h3"),r(4),p(),a(5,"p"),r(6),p()(),a(7,"button",3),r(8," Restore "),a(9,"spk-icon"),r(10,"arrow-right"),p()()()),e&2){let t,i,n=o.$implicit;l(4),h("Restore ",(t=n.Backup==null?null:n.Backup.Name)!==null&&t!==void 0?t:"Backup name missing",""),l(2),b(" ",(i=n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.SourceSizeString)!==null&&i!==void 0?i:"-"," / ",(i=n.Backup==null||n.Backup.Metadata==null?null:n.Backup.Metadata.BackupListCount)!==null&&i!==void 0?i:"-"," "),l(),g("routerLink",D(4,T,n.Backup==null?null:n.Backup.ID))}}function F(e,o){if(e&1&&S(0,E,11,6,"spk-card",0,x),e&2){let t=m(2);B(t.backups())}}function N(e,o){e&1&&r(0," No backups founds ")}function A(e,o){if(e&1&&u(0,F,2,0)(1,N,1,0),e&2){let t=m();C(t.backups().length?0:1)}}function W(e,o){e&1&&(a(0,"div",4),c(1,"spk-progress-bar",5),a(2,"div",2)(3,"h3"),r(4,"Loading backups..."),p()()())}var d=class e{#e=s(I);#t=s(y);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(o){this.#t.postApiV1BackupByIdRestore({id:o.Backup?.ID,requestBody:{}})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=f({type:e,selectors:[["app-restore"]],standalone:!0,features:[v],decls:8,vars:1,consts:[[1,"type-a"],["src","assets/images/folder.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],[1,"loading-list"],[1,"indeterminate","primary"]],template:function(t,i){t&1&&(c(0,"app-status-bar"),a(1,"section")(2,"h2"),r(3,"Where do you want to restore from?"),p(),u(4,A,2,1)(5,W,5,0),k(6,4,w,null,5),p()),t&2&&(l(6),_(!i.backupsLoading()))},dependencies:[L,P],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{d as default};
@@ -1 +1 @@
1
- import{U as it}from"./chunk-67JGZ4NF.js";var at=60,ot=at*60,ut=ot*24,yt=ut*7,_=1e3,Y=at*_,x=ot*_,H=ut*_,z=yt*_,b="millisecond",g="second",E="minute",N="hour",y="day",k="week",S="month",V="quarter",p="year",w="date",ct="YYYY-MM-DDTHH:mm:ssZ",tt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var et=function(t,r,e){var s=String(t);return!s||s.length>=r?t:""+Array(r+1-s.length).join(e)+t},pt=function(t){var r=-t.utcOffset(),e=Math.abs(r),s=Math.floor(e/60),n=e%60;return(r<=0?"+":"-")+et(s,2,"0")+":"+et(n,2,"0")},_t=function u(t,r){if(t.date()<r.date())return-u(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),s=t.clone().add(e,S),n=r-s<0,i=t.clone().add(e+(n?-1:1),S);return+(-(e+(r-s)/(n?s-i:i-s))||0)},Ot=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},It=function(t){var r={M:S,y:p,w:k,d:y,D:w,h:N,m:E,s:g,ms:b,Q:V};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},gt=function(t){return t===void 0},dt={s:et,z:pt,m:_t,a:Ot,p:It,u:gt};var P="en",U={};U[P]=ht;var lt="$isDayjsObject",st=function(t){return t instanceof B||!!(t&&t[lt])},X=function u(t,r,e){var s;if(!t)return P;if(typeof t=="string"){var n=t.toLowerCase();U[n]&&(s=n),r&&(U[n]=r,s=n);var i=t.split("-");if(!s&&i.length>1)return u(i[0])}else{var a=t.name;U[a]=t,s=a}return!e&&s&&(P=s),s||!e&&P},v=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new B(e)},Et=function(t,r){return v(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},h=dt;h.l=X;h.i=st;h.w=Et;var Nt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(h.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var s=r.match(ft);if(s){var n=s[2]-1||0,i=(s[7]||"0").substring(0,3);return e?new Date(Date.UTC(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)):new Date(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)}}return new Date(r)},B=function(){function u(r){this.$L=X(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[lt]=!0}var t=u.prototype;return t.parse=function(e){this.$d=Nt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return h},t.isValid=function(){return this.$d.toString()!==tt},t.isSame=function(e,s){var n=v(e);return this.startOf(s)<=n&&n<=this.endOf(s)},t.isAfter=function(e,s){return v(e)<this.startOf(s)},t.isBefore=function(e,s){return this.endOf(s)<v(e)},t.$g=function(e,s,n){return h.u(e)?this[s]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,s){var n=this,i=h.u(s)?!0:s,a=h.p(e),o=function(I,m){var l=h.w(n.$u?Date.UTC(n.$y,m,I):new Date(n.$y,m,I),n);return i?l:l.endOf(y)},c=function(I,m){var l=[0,0,0,0],D=[23,59,59,999];return h.w(n.toDate()[I].apply(n.toDate("s"),(i?l:D).slice(m)),n)},f=this.$W,$=this.$M,d=this.$D,M="set"+(this.$u?"UTC":"");switch(a){case p:return i?o(1,0):o(31,11);case S:return i?o(1,$):o(0,$+1);case k:{var C=this.$locale().weekStart||0,L=(f<C?f+7:f)-C;return o(i?d-L:d+(6-L),$)}case y:case w:return c(M+"Hours",0);case N:return c(M+"Minutes",1);case E:return c(M+"Seconds",2);case g:return c(M+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,s){var n,i=h.p(e),a="set"+(this.$u?"UTC":""),o=(n={},n[y]=a+"Date",n[w]=a+"Date",n[S]=a+"Month",n[p]=a+"FullYear",n[N]=a+"Hours",n[E]=a+"Minutes",n[g]=a+"Seconds",n[b]=a+"Milliseconds",n)[i],c=i===y?this.$D+(s-this.$W):s;if(i===S||i===p){var f=this.clone().set(w,1);f.$d[o](c),f.init(),this.$d=f.set(w,Math.min(this.$D,f.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},t.set=function(e,s){return this.clone().$set(e,s)},t.get=function(e){return this[h.p(e)]()},t.add=function(e,s){var n=this,i;e=Number(e);var a=h.p(s),o=function(d){var M=v(n);return h.w(M.date(M.date()+Math.round(d*e)),n)};if(a===S)return this.set(S,this.$M+e);if(a===p)return this.set(p,this.$y+e);if(a===y)return o(1);if(a===k)return o(7);var c=(i={},i[E]=Y,i[N]=x,i[g]=_,i)[a]||1,f=this.$d.getTime()+e*c;return h.w(f,this)},t.subtract=function(e,s){return this.add(e*-1,s)},t.format=function(e){var s=this,n=this.$locale();if(!this.isValid())return n.invalidDate||tt;var i=e||ct,a=h.z(this),o=this.$H,c=this.$m,f=this.$M,$=n.weekdays,d=n.months,M=n.meridiem,C=function(l,D,T,W){return l&&(l[D]||l(s,i))||T[D].slice(0,W)},L=function(l){return h.s(o%12||12,l,"0")},O=M||function(m,l,D){var T=m<12?"AM":"PM";return D?T.toLowerCase():T},I=function(l){switch(l){case"YY":return String(s.$y).slice(-2);case"YYYY":return h.s(s.$y,4,"0");case"M":return f+1;case"MM":return h.s(f+1,2,"0");case"MMM":return C(n.monthsShort,f,d,3);case"MMMM":return C(d,f);case"D":return s.$D;case"DD":return h.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return C(n.weekdaysMin,s.$W,$,2);case"ddd":return C(n.weekdaysShort,s.$W,$,3);case"dddd":return $[s.$W];case"H":return String(o);case"HH":return h.s(o,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return h.s(c,2,"0");case"s":return String(s.$s);case"ss":return h.s(s.$s,2,"0");case"SSS":return h.s(s.$ms,3,"0");case"Z":return a;default:break}return null};return i.replace(Z,function(m,l){return l||I(m)||a.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,s,n){var i=this,a=h.p(s),o=v(e),c=(o.utcOffset()-this.utcOffset())*Y,f=this-o,$=function(){return h.m(i,o)},d;switch(a){case p:d=$()/12;break;case S:d=$();break;case V:d=$()/3;break;case k:d=(f-c)/z;break;case y:d=(f-c)/H;break;case N:d=f/x;break;case E:d=f/Y;break;case g:d=f/_;break;default:d=f;break}return n?d:h.a(d)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return U[this.$L]},t.locale=function(e,s){if(!e)return this.$L;var n=this.clone(),i=X(e,s,!0);return i&&(n.$L=i),n},t.clone=function(){return h.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),vt=B.prototype;v.prototype=vt;[["$ms",b],["$s",g],["$m",E],["$H",N],["$W",y],["$M",S],["$y",p],["$D",w]].forEach(function(u){vt[u[1]]=function(t){return this.$g(t,u[0],u[1])}});v.extend=function(u,t){return u.$i||(u(t,B,v),u.$i=!0),v};v.locale=X;v.isDayjs=st;v.unix=function(u){return v(u*1e3)};v.en=U[P];v.Ls=U;v.p={};var K=v;var q=H*365,nt=q/12,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,j={years:q,months:nt,days:H,hours:x,minutes:Y,seconds:_,milliseconds:1,weeks:z},Q=function(t){return t instanceof St},mt,A,G=function(t,r,e){return new St(t,e,r.$l)},J=function(t){return A.p(t)+"s"},Mt=function(t){return t<0},F=function(t){return Mt(t)?Math.ceil(t):Math.floor(t)},Lt=function(t){return Math.abs(t)},R=function(t,r){return t?Mt(t)?{negative:!0,format:""+Lt(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},St=function(){function u(r,e,s){var n=this;if(this.$d={},this.$l=s,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return G(r*j[J(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(c){n.$d[J(c)]=r[c]}),this.calMilliseconds(),this;if(typeof r=="string"){var i=r.match(At);if(i){var a=i.slice(2),o=a.map(function(c){return c!=null?Number(c):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var t=u.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(s,n){return s+(e.$d[n]||0)*j[n]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=F(e/q),e%=q,this.$d.months=F(e/nt),e%=nt,this.$d.days=F(e/H),e%=H,this.$d.hours=F(e/x),e%=x,this.$d.minutes=F(e/Y),e%=Y,this.$d.seconds=F(e/_),e%=_,this.$d.milliseconds=e},t.toISOString=function(){var e=R(this.$d.years,"Y"),s=R(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=this.$d.weeks*7);var i=R(n,"D"),a=R(this.$d.hours,"H"),o=R(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(c*1e3)/1e3);var f=R(c,"S"),$=e.negative||s.negative||i.negative||a.negative||o.negative||f.negative,d=a.format||o.format||f.format?"T":"",M=$?"-":"",C=M+"P"+e.format+s.format+i.format+d+a.format+o.format+f.format;return C==="P"||C==="-P"?"P0D":C},t.toJSON=function(){return this.toISOString()},t.format=function(e){var s=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:A.s(this.$d.years,2,"0"),YYYY:A.s(this.$d.years,4,"0"),M:this.$d.months,MM:A.s(this.$d.months,2,"0"),D:this.$d.days,DD:A.s(this.$d.days,2,"0"),H:this.$d.hours,HH:A.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:A.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:A.s(this.$d.seconds,2,"0"),SSS:A.s(this.$d.milliseconds,3,"0")};return s.replace(Z,function(i,a){return a||String(n[i])})},t.as=function(e){return this.$ms/j[J(e)]},t.get=function(e){var s=this.$ms,n=J(e);return n==="milliseconds"?s%=1e3:n==="weeks"?s=F(s/j[n]):s=this.$d[n],s||0},t.add=function(e,s,n){var i;return s?i=e*j[J(s)]:Q(e)?i=e.$ms:i=G(e,this).$ms,G(this.$ms+i*(n?-1:1),this)},t.subtract=function(e,s){return this.add(e,s,!0)},t.locale=function(e){var s=this.clone();return s.$l=e,s},t.clone=function(){return G(this.$ms,this)},t.humanize=function(e){return mt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},u}(),$t=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Ct=function(u,t,r){mt=r,A=r().$utils(),r.duration=function(n,i){var a=r.locale();return G(n,{$l:a},i)},r.isDuration=Q;var e=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(n,i){return Q(n)?$t(this,n,1):e.bind(this)(n,i)},t.prototype.subtract=function(n,i){return Q(n)?$t(this,n,-1):s.bind(this)(n,i)}};var Dt=function(u,t,r){u=u||{};var e=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=s,e.fromToBase=function(a,o,c,f,$){for(var d=c.$locale().relativeTime||s,M=u.thresholds||[{l:"s",r:44,d:g},{l:"m",r:89},{l:"mm",r:44,d:E},{l:"h",r:89},{l:"hh",r:21,d:N},{l:"d",r:35},{l:"dd",r:25,d:y},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:p}],C=M.length,L,O,I,m=0;m<C;m+=1){var l=M[m];l.d&&(L=f?r(a).diff(c,l.d,!0):c.diff(a,l.d,!0));var D=(u.rounding||Math.round)(Math.abs(L));if(I=L>0,D<=l.r||!l.r){D<=1&&m>0&&(l=M[m-1]);var T=d[l.l];$&&(D=$(""+D)),typeof T=="string"?O=T.replace("%d",D):O=T(D,o,l.l,I);break}}if(o)return O;var W=I?d.future:d.past;return typeof W=="function"?W(O):W.replace("%s",O)};function n(a,o,c,f){return e.fromToBase(a,o,c,f)}e.to=function(a,o){return n(a,o,this,!0)},e.from=function(a,o){return n(a,o,this)};var i=function(o){return o.$u?r.utc():r()};e.toNow=function(a){return this.to(i(this),a)},e.fromNow=function(a){return this.from(i(this),a)}};var Tt=new it("Dayjs"),Gt={provide:Tt,useFactory:()=>(K.extend(Dt),K.extend(Ct),K)};export{Tt as a,Gt as b};
1
+ import{T as it}from"./chunk-ANRVMVA2.js";var at=60,ot=at*60,ut=ot*24,yt=ut*7,_=1e3,Y=at*_,x=ot*_,H=ut*_,z=yt*_,b="millisecond",g="second",E="minute",N="hour",y="day",k="week",S="month",V="quarter",p="year",w="date",ct="YYYY-MM-DDTHH:mm:ssZ",tt="Invalid Date",ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ht={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}};var et=function(t,r,e){var s=String(t);return!s||s.length>=r?t:""+Array(r+1-s.length).join(e)+t},pt=function(t){var r=-t.utcOffset(),e=Math.abs(r),s=Math.floor(e/60),n=e%60;return(r<=0?"+":"-")+et(s,2,"0")+":"+et(n,2,"0")},_t=function u(t,r){if(t.date()<r.date())return-u(r,t);var e=(r.year()-t.year())*12+(r.month()-t.month()),s=t.clone().add(e,S),n=r-s<0,i=t.clone().add(e+(n?-1:1),S);return+(-(e+(r-s)/(n?s-i:i-s))||0)},Ot=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},It=function(t){var r={M:S,y:p,w:k,d:y,D:w,h:N,m:E,s:g,ms:b,Q:V};return r[t]||String(t||"").toLowerCase().replace(/s$/,"")},gt=function(t){return t===void 0},dt={s:et,z:pt,m:_t,a:Ot,p:It,u:gt};var P="en",U={};U[P]=ht;var lt="$isDayjsObject",st=function(t){return t instanceof B||!!(t&&t[lt])},X=function u(t,r,e){var s;if(!t)return P;if(typeof t=="string"){var n=t.toLowerCase();U[n]&&(s=n),r&&(U[n]=r,s=n);var i=t.split("-");if(!s&&i.length>1)return u(i[0])}else{var a=t.name;U[a]=t,s=a}return!e&&s&&(P=s),s||!e&&P},v=function(t,r){if(st(t))return t.clone();var e=typeof r=="object"?r:{};return e.date=t,e.args=arguments,new B(e)},Et=function(t,r){return v(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})},h=dt;h.l=X;h.i=st;h.w=Et;var Nt=function(t){var r=t.date,e=t.utc;if(r===null)return new Date(NaN);if(h.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var s=r.match(ft);if(s){var n=s[2]-1||0,i=(s[7]||"0").substring(0,3);return e?new Date(Date.UTC(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)):new Date(s[1],n,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)}}return new Date(r)},B=function(){function u(r){this.$L=X(r.locale,null,!0),this.parse(r),this.$x=this.$x||r.x||{},this[lt]=!0}var t=u.prototype;return t.parse=function(e){this.$d=Nt(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return h},t.isValid=function(){return this.$d.toString()!==tt},t.isSame=function(e,s){var n=v(e);return this.startOf(s)<=n&&n<=this.endOf(s)},t.isAfter=function(e,s){return v(e)<this.startOf(s)},t.isBefore=function(e,s){return this.endOf(s)<v(e)},t.$g=function(e,s,n){return h.u(e)?this[s]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,s){var n=this,i=h.u(s)?!0:s,a=h.p(e),o=function(I,m){var l=h.w(n.$u?Date.UTC(n.$y,m,I):new Date(n.$y,m,I),n);return i?l:l.endOf(y)},c=function(I,m){var l=[0,0,0,0],D=[23,59,59,999];return h.w(n.toDate()[I].apply(n.toDate("s"),(i?l:D).slice(m)),n)},f=this.$W,$=this.$M,d=this.$D,M="set"+(this.$u?"UTC":"");switch(a){case p:return i?o(1,0):o(31,11);case S:return i?o(1,$):o(0,$+1);case k:{var C=this.$locale().weekStart||0,L=(f<C?f+7:f)-C;return o(i?d-L:d+(6-L),$)}case y:case w:return c(M+"Hours",0);case N:return c(M+"Minutes",1);case E:return c(M+"Seconds",2);case g:return c(M+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,s){var n,i=h.p(e),a="set"+(this.$u?"UTC":""),o=(n={},n[y]=a+"Date",n[w]=a+"Date",n[S]=a+"Month",n[p]=a+"FullYear",n[N]=a+"Hours",n[E]=a+"Minutes",n[g]=a+"Seconds",n[b]=a+"Milliseconds",n)[i],c=i===y?this.$D+(s-this.$W):s;if(i===S||i===p){var f=this.clone().set(w,1);f.$d[o](c),f.init(),this.$d=f.set(w,Math.min(this.$D,f.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},t.set=function(e,s){return this.clone().$set(e,s)},t.get=function(e){return this[h.p(e)]()},t.add=function(e,s){var n=this,i;e=Number(e);var a=h.p(s),o=function(d){var M=v(n);return h.w(M.date(M.date()+Math.round(d*e)),n)};if(a===S)return this.set(S,this.$M+e);if(a===p)return this.set(p,this.$y+e);if(a===y)return o(1);if(a===k)return o(7);var c=(i={},i[E]=Y,i[N]=x,i[g]=_,i)[a]||1,f=this.$d.getTime()+e*c;return h.w(f,this)},t.subtract=function(e,s){return this.add(e*-1,s)},t.format=function(e){var s=this,n=this.$locale();if(!this.isValid())return n.invalidDate||tt;var i=e||ct,a=h.z(this),o=this.$H,c=this.$m,f=this.$M,$=n.weekdays,d=n.months,M=n.meridiem,C=function(l,D,T,W){return l&&(l[D]||l(s,i))||T[D].slice(0,W)},L=function(l){return h.s(o%12||12,l,"0")},O=M||function(m,l,D){var T=m<12?"AM":"PM";return D?T.toLowerCase():T},I=function(l){switch(l){case"YY":return String(s.$y).slice(-2);case"YYYY":return h.s(s.$y,4,"0");case"M":return f+1;case"MM":return h.s(f+1,2,"0");case"MMM":return C(n.monthsShort,f,d,3);case"MMMM":return C(d,f);case"D":return s.$D;case"DD":return h.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return C(n.weekdaysMin,s.$W,$,2);case"ddd":return C(n.weekdaysShort,s.$W,$,3);case"dddd":return $[s.$W];case"H":return String(o);case"HH":return h.s(o,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return h.s(c,2,"0");case"s":return String(s.$s);case"ss":return h.s(s.$s,2,"0");case"SSS":return h.s(s.$ms,3,"0");case"Z":return a;default:break}return null};return i.replace(Z,function(m,l){return l||I(m)||a.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(e,s,n){var i=this,a=h.p(s),o=v(e),c=(o.utcOffset()-this.utcOffset())*Y,f=this-o,$=function(){return h.m(i,o)},d;switch(a){case p:d=$()/12;break;case S:d=$();break;case V:d=$()/3;break;case k:d=(f-c)/z;break;case y:d=(f-c)/H;break;case N:d=f/x;break;case E:d=f/Y;break;case g:d=f/_;break;default:d=f;break}return n?d:h.a(d)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return U[this.$L]},t.locale=function(e,s){if(!e)return this.$L;var n=this.clone(),i=X(e,s,!0);return i&&(n.$L=i),n},t.clone=function(){return h.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),vt=B.prototype;v.prototype=vt;[["$ms",b],["$s",g],["$m",E],["$H",N],["$W",y],["$M",S],["$y",p],["$D",w]].forEach(function(u){vt[u[1]]=function(t){return this.$g(t,u[0],u[1])}});v.extend=function(u,t){return u.$i||(u(t,B,v),u.$i=!0),v};v.locale=X;v.isDayjs=st;v.unix=function(u){return v(u*1e3)};v.en=U[P];v.Ls=U;v.p={};var K=v;var q=H*365,nt=q/12,At=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,j={years:q,months:nt,days:H,hours:x,minutes:Y,seconds:_,milliseconds:1,weeks:z},Q=function(t){return t instanceof St},mt,A,G=function(t,r,e){return new St(t,e,r.$l)},J=function(t){return A.p(t)+"s"},Mt=function(t){return t<0},F=function(t){return Mt(t)?Math.ceil(t):Math.floor(t)},Lt=function(t){return Math.abs(t)},R=function(t,r){return t?Mt(t)?{negative:!0,format:""+Lt(t)+r}:{negative:!1,format:""+t+r}:{negative:!1,format:""}},St=function(){function u(r,e,s){var n=this;if(this.$d={},this.$l=s,r===void 0&&(this.$ms=0,this.parseFromMilliseconds()),e)return G(r*j[J(e)],this);if(typeof r=="number")return this.$ms=r,this.parseFromMilliseconds(),this;if(typeof r=="object")return Object.keys(r).forEach(function(c){n.$d[J(c)]=r[c]}),this.calMilliseconds(),this;if(typeof r=="string"){var i=r.match(At);if(i){var a=i.slice(2),o=a.map(function(c){return c!=null?Number(c):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var t=u.prototype;return t.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(s,n){return s+(e.$d[n]||0)*j[n]},0)},t.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=F(e/q),e%=q,this.$d.months=F(e/nt),e%=nt,this.$d.days=F(e/H),e%=H,this.$d.hours=F(e/x),e%=x,this.$d.minutes=F(e/Y),e%=Y,this.$d.seconds=F(e/_),e%=_,this.$d.milliseconds=e},t.toISOString=function(){var e=R(this.$d.years,"Y"),s=R(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=this.$d.weeks*7);var i=R(n,"D"),a=R(this.$d.hours,"H"),o=R(this.$d.minutes,"M"),c=this.$d.seconds||0;this.$d.milliseconds&&(c+=this.$d.milliseconds/1e3,c=Math.round(c*1e3)/1e3);var f=R(c,"S"),$=e.negative||s.negative||i.negative||a.negative||o.negative||f.negative,d=a.format||o.format||f.format?"T":"",M=$?"-":"",C=M+"P"+e.format+s.format+i.format+d+a.format+o.format+f.format;return C==="P"||C==="-P"?"P0D":C},t.toJSON=function(){return this.toISOString()},t.format=function(e){var s=e||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:A.s(this.$d.years,2,"0"),YYYY:A.s(this.$d.years,4,"0"),M:this.$d.months,MM:A.s(this.$d.months,2,"0"),D:this.$d.days,DD:A.s(this.$d.days,2,"0"),H:this.$d.hours,HH:A.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:A.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:A.s(this.$d.seconds,2,"0"),SSS:A.s(this.$d.milliseconds,3,"0")};return s.replace(Z,function(i,a){return a||String(n[i])})},t.as=function(e){return this.$ms/j[J(e)]},t.get=function(e){var s=this.$ms,n=J(e);return n==="milliseconds"?s%=1e3:n==="weeks"?s=F(s/j[n]):s=this.$d[n],s||0},t.add=function(e,s,n){var i;return s?i=e*j[J(s)]:Q(e)?i=e.$ms:i=G(e,this).$ms,G(this.$ms+i*(n?-1:1),this)},t.subtract=function(e,s){return this.add(e,s,!0)},t.locale=function(e){var s=this.clone();return s.$l=e,s},t.clone=function(){return G(this.$ms,this)},t.humanize=function(e){return mt().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},u}(),$t=function(t,r,e){return t.add(r.years()*e,"y").add(r.months()*e,"M").add(r.days()*e,"d").add(r.hours()*e,"h").add(r.minutes()*e,"m").add(r.seconds()*e,"s").add(r.milliseconds()*e,"ms")},Ct=function(u,t,r){mt=r,A=r().$utils(),r.duration=function(n,i){var a=r.locale();return G(n,{$l:a},i)},r.isDuration=Q;var e=t.prototype.add,s=t.prototype.subtract;t.prototype.add=function(n,i){return Q(n)?$t(this,n,1):e.bind(this)(n,i)},t.prototype.subtract=function(n,i){return Q(n)?$t(this,n,-1):s.bind(this)(n,i)}};var Dt=function(u,t,r){u=u||{};var e=t.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};r.en.relativeTime=s,e.fromToBase=function(a,o,c,f,$){for(var d=c.$locale().relativeTime||s,M=u.thresholds||[{l:"s",r:44,d:g},{l:"m",r:89},{l:"mm",r:44,d:E},{l:"h",r:89},{l:"hh",r:21,d:N},{l:"d",r:35},{l:"dd",r:25,d:y},{l:"M",r:45},{l:"MM",r:10,d:S},{l:"y",r:17},{l:"yy",d:p}],C=M.length,L,O,I,m=0;m<C;m+=1){var l=M[m];l.d&&(L=f?r(a).diff(c,l.d,!0):c.diff(a,l.d,!0));var D=(u.rounding||Math.round)(Math.abs(L));if(I=L>0,D<=l.r||!l.r){D<=1&&m>0&&(l=M[m-1]);var T=d[l.l];$&&(D=$(""+D)),typeof T=="string"?O=T.replace("%d",D):O=T(D,o,l.l,I);break}}if(o)return O;var W=I?d.future:d.past;return typeof W=="function"?W(O):W.replace("%s",O)};function n(a,o,c,f){return e.fromToBase(a,o,c,f)}e.to=function(a,o){return n(a,o,this,!0)},e.from=function(a,o){return n(a,o,this)};var i=function(o){return o.$u?r.utc():r()};e.toNow=function(a){return this.to(i(this),a)},e.fromNow=function(a){return this.from(i(this),a)}};var Tt=new it("Dayjs"),Gt={provide:Tt,useFactory:()=>(K.extend(Dt),K.extend(Ct),K)};export{Tt as a,Gt as b};
@@ -1 +1 @@
1
- import{o as s,p as r}from"./chunk-JE2I63Y6.js";import{Ba as o,R as l,X as a}from"./chunk-67JGZ4NF.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)t.startsWith(this.STORAGE_VERSION)||localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
1
+ import{o as s,p as r}from"./chunk-TUN6QDZQ.js";import{Aa as o,Q as l,W as a}from"./chunk-ANRVMVA2.js";var n=class i{platformId=a(o);STORAGE_VERSION="v1";APP_NAME="duplicati";getItemParsed(t,e=!1){return r(this.platformId)?null:JSON.parse(localStorage.getItem(`${this.STORAGE_VERSION}:${e?"presist-duplicati":this.APP_NAME}:${t}`)??"null")}setItemParsed(t,e,m=!1){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${m?"presist-duplicati":this.APP_NAME}:${t}`,JSON.stringify(e))}get length(){return s(this.platformId)?localStorage.length:0}getItem(t){return r(this.platformId)?null:localStorage.getItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)??null}setItem(t,e){if(!r(this.platformId))return localStorage.setItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`,e)}removeItem(t){r(this.platformId)||localStorage.removeItem(`${this.STORAGE_VERSION}:${this.APP_NAME}:${t}`)}clearAllNotCurrentVersion(){if(!r(this.platformId))for(var t in localStorage)t.startsWith(this.STORAGE_VERSION)||localStorage.removeItem(t)}clearAll(){r(this.platformId)||localStorage.clear()}clear(){if(!r(this.platformId))for(var t in localStorage)t.includes(this.APP_NAME)&&!t.includes(`presist-${this.APP_NAME}`)&&localStorage.removeItem(t)}key(t){return r(this.platformId)?null:localStorage.key(t)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=l({token:i,factory:i.\u0275fac})};export{n as a};
@@ -1 +1 @@
1
- import{a as m}from"./chunk-OSB5J6SK.js";import{a as c}from"./chunk-NAZLO3UY.js";import{W as u}from"./chunk-X2IPCPJN.js";import{B as e,F as l,O as i,R as a,X as s,Ya as o,sc as h}from"./chunk-67JGZ4NF.js";var p=class r{#e=s(m);#i=s(u);#s=s(c);#t=o(this.#e.getItemParsed("token")??null);#r=o(this.#e.getItemParsed("tokenSetTime")??null);#o=o(!1);tokenSetTime=this.#r.asReadonly();token=this.#t.asReadonly();isLoggingOut=this.#o.asReadonly();#n=h(()=>{if(!this.#t()){this.#e.clearAll(),this.#i.navigate(["/login"]);return}let t=Date.now();this.#e.setItemParsed("tokenSetTime",t),this.#e.setItemParsed("token",this.#t()),this.#r.set(this.#t()?t:null)},{allowSignalWrites:!0});login(t="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:t,RememberMe:!0}}).pipe(e(1),i(n=>this.#t.set(n.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(e(1),i(t=>this.#t.set(t.AccessToken??null)))}logout(){this.#o.set(!0),this.#s.postApiV1AuthRefreshLogout().pipe(e(1),l(()=>this.#o.set(!1)),i(t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(n){return new(n||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};
1
+ import{a as m}from"./chunk-67F45CIQ.js";import{a as c}from"./chunk-E6PE2QMZ.js";import{W as u}from"./chunk-2WWTJWN7.js";import{B as e,E as l,N as i,Q as a,W as s,Xa as o,rc as h}from"./chunk-ANRVMVA2.js";var p=class r{#e=s(m);#i=s(u);#s=s(c);#t=o(this.#e.getItemParsed("token")??null);#r=o(this.#e.getItemParsed("tokenSetTime")??null);#o=o(!1);tokenSetTime=this.#r.asReadonly();token=this.#t.asReadonly();isLoggingOut=this.#o.asReadonly();#n=h(()=>{if(!this.#t()){this.#e.clearAll(),this.#i.navigate(["/login"]);return}let t=Date.now();this.#e.setItemParsed("tokenSetTime",t),this.#e.setItemParsed("token",this.#t()),this.#r.set(this.#t()?t:null)},{allowSignalWrites:!0});login(t="helloworld"){return this.#s.postApiV1AuthLogin({requestBody:{Password:t,RememberMe:!0}}).pipe(e(1),i(n=>this.#t.set(n.AccessToken??null)))}refreshToken(){return this.#s.postApiV1AuthRefresh().pipe(e(1),i(t=>this.#t.set(t.AccessToken??null)))}logout(){this.#o.set(!0),this.#s.postApiV1AuthRefreshLogout().pipe(e(1),l(()=>this.#o.set(!1)),i(t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])})).subscribe({error:t=>{this.#t.set(null),this.#e.clearAll(),this.#i.navigate(["/login"])}})}static \u0275fac=function(n){return new(n||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};