@duplicati/ngclient 0.0.49 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/{chunk-BDFM44OC.js → chunk-2CM5UOT4.js} +1 -1
  2. package/chunk-2JNOYYQN.js +1 -0
  3. package/chunk-2UNV5KQ7.js +1 -0
  4. package/chunk-3RFC4Q5V.js +6 -0
  5. package/chunk-4765QCNT.js +1 -0
  6. package/chunk-5CNGSXWF.js +1 -0
  7. package/chunk-5FSG4VRJ.js +1 -0
  8. package/{chunk-AYGRA5MA.js → chunk-6XZQG7L7.js} +1 -1
  9. package/chunk-7PE677UQ.js +1 -0
  10. package/{chunk-GH3U5NF5.js → chunk-AAWGVWT3.js} +1 -1
  11. package/chunk-B5F2IYXZ.js +1 -0
  12. package/{chunk-DFNGIWBA.js → chunk-BCTCP5YZ.js} +1 -1
  13. package/{chunk-QJZQNKYK.js → chunk-BI7LIYF6.js} +1 -1
  14. package/chunk-CKTCGJPR.js +1 -0
  15. package/chunk-DV7N4NYO.js +1 -0
  16. package/{chunk-K5R45UNO.js → chunk-FALW4SDX.js} +1 -1
  17. package/{chunk-IBZEQWFY.js → chunk-FFD5RG7J.js} +1 -1
  18. package/{chunk-NUXXITWB.js → chunk-FH6MENLO.js} +1 -1
  19. package/chunk-FJKXE3RZ.js +1 -0
  20. package/chunk-FNBPWR4X.js +1 -0
  21. package/chunk-GGTAHZ6F.js +1 -0
  22. package/chunk-IE4GYLKI.js +1 -0
  23. package/chunk-JRYVI7GA.js +1 -0
  24. package/{chunk-ARPRGK23.js → chunk-JWC6WDAE.js} +1 -1
  25. package/chunk-LDPVZ7HY.js +1 -0
  26. package/chunk-LQL7UFPH.js +1 -0
  27. package/{chunk-JIBWXS4Q.js → chunk-MJJYBD2L.js} +1 -1
  28. package/chunk-MWCNA7Y5.js +1 -0
  29. package/chunk-N23IUXUM.js +1 -0
  30. package/chunk-NHACGZPI.js +7 -0
  31. package/chunk-O2HHDV6M.js +1 -0
  32. package/{chunk-7SHJPVM2.js → chunk-O47LGUY4.js} +1 -1
  33. package/chunk-OJUBI3TM.js +1 -0
  34. package/{chunk-BWR2LHUK.js → chunk-OXHL644M.js} +1 -1
  35. package/{chunk-ER3G3TZW.js → chunk-OYSDTWXA.js} +1 -1
  36. package/{chunk-XPH3GUDU.js → chunk-PG6H3R6N.js} +2 -2
  37. package/chunk-PJIG2CDP.js +1 -0
  38. package/{chunk-UUC5AIWR.js → chunk-PSJAIBCQ.js} +1 -1
  39. package/chunk-QTTCN7A7.js +1 -0
  40. package/chunk-QVBSCQE5.js +1 -0
  41. package/{chunk-NN3K5WJK.js → chunk-QXNJFFEM.js} +1 -1
  42. package/{chunk-BV3HBNH3.js → chunk-R6C4MOOH.js} +1 -1
  43. package/{chunk-YEWPXKXM.js → chunk-TFD4HD6F.js} +1 -1
  44. package/chunk-TICM6BU7.js +1 -0
  45. package/{chunk-5522ZDTF.js → chunk-TYEKJAUH.js} +1 -1
  46. package/chunk-U4SEXW7F.js +1 -0
  47. package/{chunk-JQGZUGRK.js → chunk-U5DDVNLJ.js} +1 -1
  48. package/{chunk-FSY6N6QG.js → chunk-UMMURHDH.js} +1 -1
  49. package/{chunk-BNGZWBKC.js → chunk-VCPYNGOK.js} +1 -1
  50. package/chunk-VJJVFTK5.js +1 -0
  51. package/chunk-VOVR4GPX.js +1 -0
  52. package/chunk-WDHZG25P.js +1 -0
  53. package/{chunk-YF43IPBW.js → chunk-WMC5H5UV.js} +1 -1
  54. package/chunk-WVBAR46B.js +1 -0
  55. package/{chunk-65UFWL3O.js → chunk-X566VMXX.js} +1 -1
  56. package/{chunk-AC2LD55W.js → chunk-XCS7POXG.js} +1 -1
  57. package/chunk-XMM537S7.js +1 -0
  58. package/chunk-XO6YTY63.js +3 -0
  59. package/chunk-YK6SXMBM.js +1 -0
  60. package/chunk-YWZWJHRE.js +6 -0
  61. package/chunk-Z7UXXM2M.js +1 -0
  62. package/index.html +1 -1
  63. package/main-XHR6OEX7.js +1 -0
  64. package/package.json +1 -1
  65. package/chunk-3IE7QZ4D.js +0 -1
  66. package/chunk-4LNZXSGY.js +0 -1
  67. package/chunk-4WKXZKTC.js +0 -1
  68. package/chunk-7WQR24NO.js +0 -1
  69. package/chunk-AZAFLOEO.js +0 -1
  70. package/chunk-C3UW4NQE.js +0 -1
  71. package/chunk-CQKRBELO.js +0 -6
  72. package/chunk-CVLCJRED.js +0 -1
  73. package/chunk-ECTOKXR2.js +0 -1
  74. package/chunk-EFYF3ZYK.js +0 -1
  75. package/chunk-FBAABDBH.js +0 -1
  76. package/chunk-JEGJAUF7.js +0 -1
  77. package/chunk-K3OQZAY7.js +0 -1
  78. package/chunk-K4T3G5Q5.js +0 -1
  79. package/chunk-KF4RPRBP.js +0 -1
  80. package/chunk-LM6FM44S.js +0 -1
  81. package/chunk-MN2U4RJK.js +0 -1
  82. package/chunk-NDIOU4E2.js +0 -1
  83. package/chunk-NIFWUYP5.js +0 -1
  84. package/chunk-OAL3AILX.js +0 -1
  85. package/chunk-PH3BZGB3.js +0 -1
  86. package/chunk-Q4N2YSBN.js +0 -1
  87. package/chunk-RHX2BKJQ.js +0 -1
  88. package/chunk-SGDMX5AW.js +0 -1
  89. package/chunk-SGEYZII6.js +0 -1
  90. package/chunk-STY2S4SE.js +0 -1
  91. package/chunk-UYXZTHXX.js +0 -7
  92. package/chunk-V2LDKRBK.js +0 -1
  93. package/chunk-VGGIIK26.js +0 -1
  94. package/chunk-XC5IIBG3.js +0 -1
  95. package/chunk-XEK5PR4Q.js +0 -1
  96. package/chunk-ZTJNIIQ7.js +0 -1
  97. package/main-VN6Z3X2U.js +0 -1
package/chunk-7WQR24NO.js DELETED
@@ -1 +0,0 @@
1
- import{b as rn}from"./chunk-FSY6N6QG.js";import{Ea as xt,e as Jr,g as en,j as se,l as tn,m as Ut,n as Ae}from"./chunk-65UFWL3O.js";import{A as Rt,Ac as Ke,B as ie,Ba as jr,C as Rr,E as He,Ec as Ze,F as Q,G as wt,Gb as Wr,H as wr,I as br,Ic as Ye,K as Ir,L as P,M as Ar,N as R,O as b,Pa as Nr,Pc as Xr,R as C,S as Dr,Sa as j,T as Mr,Ta as Lr,U as A,V as bt,W as q,Wa as Mt,Wb as Gr,X as l,Xa as $r,Y as Tr,Z as Or,_ as Er,a as vr,aa as Ie,ba as k,bc as Qr,c as mr,cb as kr,cc as Kr,da as We,dc as Zr,e as yt,eb as Tt,f as Ct,fb as _r,g as W,gb as zr,h as E,ha as It,hb as Qe,ia as Ur,j as G,ja as At,k as I,kb as Fr,l as f,la as xr,m as we,ma as oe,mb as qr,n as yr,na as Ge,nb as Br,o as Cr,p as m,pb as Ot,q as Ve,qb as Et,r as M,ra as Pr,rb as Vr,s as be,sa as Dt,t as Sr,u as St,ub as Hr,w as X,y as J,z as ne,zc as Yr}from"./chunk-UYXZTHXX.js";import{a as h,b as D}from"./chunk-C6Q5SG76.js";var g="primary",_e=Symbol("RouteTitle"),$t=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function de(t){return new $t(t)}function Xn(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],u=t[o];if(s[0]===":")i[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function Jn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!_(t[e],n[e]))return!1;return!0}function _(t,n){let e=t?kt(t):void 0,r=n?kt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!gn(t[i],n[i]))return!1;return!0}function kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function gn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function vn(t){return t.length>0?t[t.length-1]:null}function Y(t){return yr(t)?t:Br(t)?I(Promise.resolve(t)):f(t)}var ei={exact:yn,subset:Cn},mn={exact:ti,subset:ri,ignored:()=>!0};function nn(t,n,e){return ei[e.paths](t.root,n.root,e.matrixParams)&&mn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function ti(t,n){return _(t,n)}function yn(t,n,e){if(!te(t.segments,n.segments)||!et(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!yn(t.children[r],n.children[r],e))return!1;return!0}function ri(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>gn(t[e],n[e]))}function Cn(t,n,e){return Sn(t,n,n.segments,e)}function Sn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!te(i,e)||n.hasChildren()||!et(i,e,r))}else if(t.segments.length===e.length){if(!te(t.segments,e)||!et(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!te(t.segments,i)||!et(t.segments,i,r)||!t.children[g]?!1:Sn(t.children[g],n,o,r)}}function et(t,n,e){return n.every((r,i)=>mn[e](t[i].parameters,r.parameters))}var V=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){return oi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return tt(this)}},ee=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=de(this.parameters),this._parameterMap}toString(){return wn(this)}};function ni(t,n){return te(t,n)&&t.every((e,r)=>_(e.parameters,n[r].parameters))}function te(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function ii(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g&&(e=e.concat(n(i,r)))}),e}var ye=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>new fe,providedIn:"root"})}return t})(),fe=class{parse(n){let e=new zt(n);return new V(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${De(n.root,!0)}`,r=ui(n.queryParams),i=typeof n.fragment=="string"?`#${si(n.fragment)}`:"";return`${e}${r}${i}`}},oi=new fe;function tt(t){return t.segments.map(n=>wn(n)).join("/")}function De(t,n){if(!t.hasChildren())return tt(t);if(n){let e=t.children[g]?De(t.children[g],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==g&&r.push(`${i}:${De(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=ii(t,(r,i)=>i===g?[De(t.children[g],!1)]:[`${i}:${De(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${tt(t)}/${e[0]}`:`${tt(t)}/(${e.join("//")})`}}function Rn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(t){return Rn(t).replace(/%3B/gi,";")}function si(t){return encodeURI(t)}function _t(t){return Rn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(t){return decodeURIComponent(t)}function on(t){return rt(t.replace(/\+/g,"%20"))}function wn(t){return`${_t(t.path)}${ai(t.parameters)}`}function ai(t){return Object.entries(t).map(([n,e])=>`;${_t(n)}=${_t(e)}`).join("")}function ui(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${Xe(e)}=${Xe(i)}`).join("&"):`${Xe(e)}=${Xe(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ci=/^[^\/()?;#]+/;function Pt(t){let n=t.match(ci);return n?n[0]:""}var li=/^[^\/()?;=#]+/;function hi(t){let n=t.match(li);return n?n[0]:""}var di=/^[^=?&#]+/;function fi(t){let n=t.match(di);return n?n[0]:""}var pi=/^[^&#]+/;function gi(t){let n=t.match(pi);return n?n[0]:""}var zt=class{url;remaining;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 e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[g]=new v(n,e)),r}parseSegment(){let n=Pt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new ee(rt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=hi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Pt(this.remaining);i&&(r=i,this.capture(r))}n[rt(e)]=rt(r)}parseQueryParam(n){let e=fi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=gi(this.remaining);s&&(r=s,this.capture(r))}let i=on(e),o=on(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Pt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=g);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[g]:new v([],s),this.consumeOptional("//")}return e}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 bn(t){return t.segments.length>0?new v([],{[g]:t}):t}function In(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=In(i);if(r===g&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))n[s]=u;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return vi(e)}function vi(t){if(t.numberOfChildren===1&&t.children[g]){let n=t.children[g];return new v(t.segments.concat(n.segments),n.children)}return t}function re(t){return t instanceof V}function mi(t,n,e=null,r=null){let i=An(t);return Dn(i,n,e,r)}function An(t){let n;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new v(o.url,s);return o===t&&(n=u),u}let r=e(t.root),i=bn(r);return n??i}function Dn(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return jt(i,i,i,e,r);let o=yi(n);if(o.toRoot())return jt(i,i,new v([],{}),e,r);let s=Ci(o,i,t),u=s.processChildren?Oe(s.segmentGroup,s.index,o.commands):Tn(s.segmentGroup,s.index,o.commands);return jt(i,s.segmentGroup,u,e,r)}function nt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xe(t){return typeof t=="object"&&t!=null&&t.outlets}function jt(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;t===n?s=e:s=Mn(t,n,e);let u=bn(In(s));return new V(u,o,i)}function Mn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Mn(o,n,e)}),new v(t.segments,r)}var it=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&nt(r[0]))throw new b(4003,!1);let i=r.find(xe);if(i&&i!==vn(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function yi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new it(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?n++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new it(e,n,r)}var ce=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Ci(t,n,e){if(t.isAbsolute)return new ce(n,!0,0);if(!e)return new ce(n,!1,NaN);if(e.parent===null)return new ce(e,!0,0);let r=nt(t.commands[0])?0:1,i=e.segments.length-1+r;return Si(e,i,t.numberOfDoubleDots)}function Si(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new ce(r,!1,i-o)}function Ri(t){return xe(t[0])?t[0].outlets:{[g]:t}}function Tn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return Oe(t,n,e);let r=wi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[g]=new v(t.segments.slice(r.pathIndex),t.children),Oe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Ft(t,n,e):r.match?Oe(t,0,i):Ft(t,n,e)}function Oe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=Ri(e),i={};if(Object.keys(r).some(o=>o!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let o=Oe(t.children[g],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Tn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function wi(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],u=e[r];if(xe(u))break;let a=`${u}`,c=r<e.length-1?e[r+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!an(a,c,s))return o;r+=2}else{if(!an(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Ft(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(xe(o)){let a=bi(o.outlets);return new v(r,a)}if(i===0&&nt(e[0])){let a=t.segments[n];r.push(new ee(a.path,sn(e[0]))),i++;continue}let s=xe(o)?o.outlets[g]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&nt(u)?(r.push(new ee(s,sn(u))),i+=2):(r.push(new ee(s,{})),i++)}return new v(r,{})}function bi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Ft(new v([],{}),0,r))}),n}function sn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function an(t,n,e){return t==e.path&&_(n,e.parameters)}var Ee="imperative",S=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(S||{}),U=class{id;url;constructor(n,e){this.id=n,this.url=e}},pe=class extends U{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},L=class extends U{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},O=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(O||{}),ot=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(ot||{}),B=class extends U{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},K=class extends U{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},Pe=class extends U{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},st=class extends U{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qt=class extends U{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bt=class extends U{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Vt=class extends U{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ht=class extends U{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wt=class{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Gt=class{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Qt=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Kt=class{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zt=class{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yt=class{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},at=class{routerEvent;position;anchor;type=S.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},je=class{},ge=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Ii(t,n){return t.providers&&!t._injector&&(t._injector=Tt(t.providers,n,`Route: ${t.path}`)),t._injector??n}function N(t){return t.outlet||g}function Ai(t,n){let e=t.filter(r=>N(r)===n);return e.push(...t.filter(r=>N(r)!==n)),e}function ze(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Xt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ze(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Fe(this.rootInjector)}},Fe=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Xt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(q(Ie))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ut=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Jt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Jt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(e=>e.value)}};function Jt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Jt(t,e);if(r)return r}return null}function er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=er(t,e);if(r.length)return r.unshift(n),r}return[]}var T=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ue(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ct=class extends ut{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n)}toString(){return this.snapshot.toString()}};function On(t){let n=Di(t),e=new E([new ee("",{})]),r=new E({}),i=new E({}),o=new E({}),s=new E(""),u=new Z(e,r,o,s,i,g,t,n.root);return u.snapshot=n.root,new ct(new T(u,[]),n)}function Di(t){let n={},e={},r={},i="",o=new le([],n,r,i,e,g,t,null,{});return new ht("",new T(o,[]))}var Z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,u,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[_e]))??f(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(m(n=>de(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(n=>de(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function lt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&Un(i)&&(r.resolve[_e]=i.title),r}var le=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[_e]}constructor(n,e,r,i,o,s,u,a,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=de(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=de(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ht=class extends ut{url;constructor(n,e){super(e),this.url=n,cr(this,e)}toString(){return En(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e))}function En(t){let n=t.children.length>0?` { ${t.children.map(En).join(", ")} } `:"";return`${t.value}${n}`}function Nt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,_(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),_(n.params,e.params)||t.paramsSubject.next(e.params),Jn(n.url,e.url)||t.urlSubject.next(e.url),_(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function tr(t,n){let e=_(t.params,n.params)&&ni(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function Un(t){return typeof t.title=="string"||t.title===null}var Mi=new A(""),Ti=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=g;activateEvents=new oe;deactivateEvents=new oe;attachEvents=new oe;detachEvents=new oe;routerOutletData=Pr(void 0);parentContexts=l(Fe);location=l($r);changeDetector=l(Ze);inputBinder=l(gt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new 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 e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new rr(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Qe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[We]})}return t})(),rr=class t{route;childContexts;parent;outletData;__ngOutletInjector(n){return new t(this.route,this.childContexts,n,this.outletData)}constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===Z?this.route:n===Fe?this.childContexts:n===Mi?this.outletData:this.parent.get(n,e)}},gt=new A(""),un=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ve([r.queryParams,r.params,r.data]).pipe(P(([o,s,u],a)=>(u=h(h(h({},o),s),u),a===0?f(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=Xr(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of s.inputs)e.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Oi(t,n,e){let r=Ne(t,n._root,e?e._root:void 0);return new ct(r,n)}function Ne(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Ei(t,n,e);return new T(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(u=>Ne(t,u)),s}}let r=Ui(n.value),i=n.children.map(o=>Ne(t,o));return new T(r,i)}}function Ei(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Ne(t,r,i);return Ne(t,r)})}function Ui(t){return new Z(new E(t.url),new E(t.params),new E(t.queryParams),new E(t.fragment),new E(t.data),t.outlet,t.component,t)}var Le=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function dt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=re(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Pn(!1,O.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Pn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=n,e}function xi(t){return jn(t)&&re(t.url)}function jn(t){return!!t&&t[xn]}var Pi=(t,n,e,r)=>m(i=>(new nr(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),nr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Nt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ue(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ue(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),u=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:u})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ue(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ue(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Yt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Kt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Nt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Nt(u.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},ft=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},he=class{component;route;constructor(n,e){this.component=n,this.route=e}};function ji(t,n,e){let r=t._root,i=n?n._root:null;return Me(r,i,e,[r.value])}function Ni(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ce(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Mr(t)?t:n.get(t):r}function Me(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ue(n);return t.children.forEach(s=>{Li(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>Ue(u,e.getContext(s),i)),i}function Li(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=$i(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new ft(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Me(t,n,u?u.children:null,r,i):Me(t,n,e,r,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new he(u.outlet.component,s))}else s&&Ue(n,u,i),i.canActivateChecks.push(new ft(r)),o.component?Me(t,null,u?u.children:null,r,i):Me(t,null,e,r,i);return i}function $i(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!te(t.url,n.url);case"pathParamsOrQueryParamsChange":return!te(t.url,n.url)||!_(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!_(t.queryParams,n.queryParams);case"paramsChange":default:return!tr(t,n)}}function Ue(t,n,e){let r=ue(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Ue(s,n.children.getContext(o),e):Ue(s,null,e):Ue(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new he(n.outlet.component,i)):e.canDeactivateChecks.push(new he(null,i)):e.canDeactivateChecks.push(new he(null,i))}function qe(t){return typeof t=="function"}function ki(t){return typeof t=="boolean"}function _i(t){return t&&qe(t.canLoad)}function zi(t){return t&&qe(t.canActivate)}function Fi(t){return t&&qe(t.canActivateChild)}function qi(t){return t&&qe(t.canDeactivate)}function Bi(t){return t&&qe(t.canMatch)}function Nn(t){return t instanceof Cr||t?.name==="EmptyError"}var Je=Symbol("INITIAL_VALUE");function ve(){return P(t=>Ve(t.map(n=>n.pipe(ie(1),Ir(Je)))).pipe(m(n=>{for(let e of n)if(e!==!0){if(e===Je)return Je;if(e===!1||Vi(e))return e}return!0}),X(n=>n!==Je),ie(1)))}function Vi(t){return re(t)||t instanceof Le}function Hi(t,n){return M(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(D(h({},e),{guardsResult:!0})):Wi(s,r,i,t).pipe(M(u=>u&&ki(u)?Gi(r,o,t,n):f(u)),m(u=>D(h({},e),{guardsResult:u})))})}function Wi(t,n,e,r){return I(t).pipe(M(i=>Xi(i.component,i.route,e,n,r)),Q(i=>i!==!0,!0))}function Gi(t,n,e,r){return I(n).pipe(ne(i=>Sr(Ki(i.route.parent,r),Qi(i.route,r),Yi(t,i.path,e),Zi(t,i.route,e))),Q(i=>i!==!0,!0))}function Qi(t,n){return t!==null&&n&&n(new Zt(t)),f(!0)}function Ki(t,n){return t!==null&&n&&n(new Qt(t)),f(!0)}function Zi(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let i=r.map(o=>St(()=>{let s=ze(n)??e,u=Ce(o,s),a=zi(u)?u.canActivate(n,t):k(s,()=>u(n,t));return Y(a).pipe(Q())}));return f(i).pipe(ve())}function Yi(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Ni(s)).filter(s=>s!==null).map(s=>St(()=>{let u=s.guards.map(a=>{let c=ze(s.node)??e,d=Ce(a,c),p=Fi(d)?d.canActivateChild(r,t):k(c,()=>d(r,t));return Y(p).pipe(Q())});return f(u).pipe(ve())}));return f(o).pipe(ve())}function Xi(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(u=>{let a=ze(n)??i,c=Ce(u,a),d=qi(c)?c.canDeactivate(t,n,e,r):k(a,()=>c(t,n,e,r));return Y(d).pipe(Q())});return f(s).pipe(ve())}function Ji(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let u=Ce(s,t),a=_i(u)?u.canLoad(n,e):k(t,()=>u(n,e));return Y(a)});return f(o).pipe(ve(),Ln(r))}function Ln(t){return mr(R(n=>{if(typeof n!="boolean")throw dt(t,n)}),m(n=>n===!0))}function eo(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let u=Ce(s,t),a=Bi(u)?u.canMatch(n,e):k(t,()=>u(n,e));return Y(a)});return f(o).pipe(ve(),Ln(r))}var $e=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},ke=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ae(t){return we(new $e(t))}function to(t){return we(new b(4e3,!1))}function ro(t){return we(Pn(!1,O.GuardRejected))}var ir=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return f(r);if(i.numberOfChildren>1||!i.children[g])return to(`${n.redirectTo}`);i=i.children[g]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,params:$,data:w,title:H}=i,x=k(o,()=>u({params:$,data:w,queryParams:a,fragment:c,routeConfig:d,url:p,outlet:y,title:H}));if(x instanceof V)throw new ke(x);e=x}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new ke(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new V(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);r[i]=e[u]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(n,a,r,i)}),new v(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new b(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function no(t,n,e,r,i){let o=$n(t,n,e);return o.matched?(r=Ii(n,r),eo(r,n,e,i).pipe(m(s=>s===!0?o:h({},or)))):f(o)}function $n(t,n,e){if(n.path==="**")return io(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Xn)(e,t,n);if(!i)return h({},or);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.path});let s=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function io(t){return{matched:!0,parameters:t.length>0?vn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function cn(t,n,e,r){return e.length>0&&ao(t,e,r)?{segmentGroup:new v(n,so(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&uo(t,e,r)?{segmentGroup:new v(t.segments,oo(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function oo(t,n,e,r){let i={};for(let o of e)if(vt(t,n,o)&&!r[N(o)]){let s=new v([],{});i[N(o)]=s}return h(h({},r),i)}function so(t,n){let e={};e[g]=n;for(let r of t)if(r.path===""&&N(r)!==g){let i=new v([],{});e[N(r)]=i}return e}function ao(t,n,e){return e.some(r=>vt(t,n,r)&&N(r)!==g)}function uo(t,n,e){return e.some(r=>vt(t,n,r))}function vt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function co(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};function lo(t,n,e,r,i,o,s="emptyOnly"){return new ar(t,n,e,r,i,s,o).recognize()}var ho=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,u){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}recognize(){let n=cn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(m(({children:e,rootSnapshot:r})=>{let i=new T(r,e),o=new ht("",i),s=mi(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new le([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),g,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,g,e).pipe(m(r=>({children:r,rootSnapshot:e})),J(r=>{if(r instanceof ke)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof $e?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(m(s=>s instanceof T?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return I(o).pipe(ne(s=>{let u=r.children[s],a=Ai(e,s);return this.processSegmentGroup(n,a,u,s,i)}),br((s,u)=>(s.push(...u),s)),Rt(null),wr(),M(s=>{if(s===null)return ae(r);let u=kn(s);return fo(u),f(u)}))}processSegment(n,e,r,i,o,s,u){return I(e).pipe(ne(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,i,o,s,u).pipe(J(c=>{if(c instanceof $e)return f(null);throw c}))),Q(a=>!!a),J(a=>{if(Nn(a))return co(r,i,o)?f(new sr):ae(r);throw a}))}processSegmentAgainstRoute(n,e,r,i,o,s,u,a){return N(r)!==s&&(s===g||!vt(i,o,r))?ae(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,a):ae(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,u){let{matched:a,parameters:c,consumedSegments:d,positionalParamSegments:p,remainingSegments:y}=$n(e,i,o);if(!a)return ae(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ho&&(this.allowRedirects=!1));let $=new le(o,c,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(i),N(i),i.component??i._loadedComponent??null,i,hn(i)),w=lt($,u,this.paramsInheritanceStrategy);$.params=Object.freeze(w.params),$.data=Object.freeze(w.data);let H=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,p,$,n);return this.applyRedirects.lineralizeSegments(i,H).pipe(M(x=>this.processSegment(n,r,e,x.concat(y),s,!1,u)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let u=no(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.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:$}=a,w=new le(y,p,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(r),N(r),r.component??r._loadedComponent??null,r,hn(r)),H=lt(w,s,this.paramsInheritanceStrategy);w.params=Object.freeze(H.params),w.data=Object.freeze(H.data);let{segmentGroup:x,slicedSegments:Re}=cn(e,y,$,c);if(Re.length===0&&x.hasChildren())return this.processChildren(d,c,x,w).pipe(m(Be=>new T(w,Be)));if(c.length===0&&Re.length===0)return f(new T(w,[]));let Yn=N(r)===o;return this.processSegment(d,c,x,Re,Yn?g:o,!0,w).pipe(m(Be=>new T(w,Be instanceof T?[Be]:[])))}))):ae(e)))}getChildConfig(n,e,r){return e.children?f({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):Ji(n,e,r,this.urlSerializer).pipe(M(i=>i?this.configLoader.loadChildren(n,e).pipe(R(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):ro(e))):f({routes:[],injector:n})}};function fo(t){t.sort((n,e)=>n.value.outlet===g?-1:e.value.outlet===g?1:n.value.outlet.localeCompare(e.value.outlet))}function po(t){let n=t.value.routeConfig;return n&&n.path===""}function kn(t){let n=[],e=new Set;for(let r of t){if(!po(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=kn(r.children);n.push(new T(r.value,i))}return n.filter(r=>!e.has(r))}function ln(t){return t.data||{}}function hn(t){return t.resolve||{}}function go(t,n,e,r,i,o){return M(s=>lo(t,n,e,r,s.extractedUrl,i,o).pipe(m(({state:u,tree:a})=>D(h({},s),{targetSnapshot:u,urlAfterRedirects:a}))))}function vo(t,n){return M(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let c of _n(a))s.add(c);let u=0;return I(s).pipe(ne(a=>o.has(a)?mo(a,r,t,n):(a.data=lt(a,a.parent,t).resolve,f(void 0))),R(()=>u++),wt(1),M(a=>u===s.size?f(e):G))})}function _n(t){let n=t.children.map(e=>_n(e)).flat();return[t,...n]}function mo(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Un(i)&&(o[_e]=i.title),yo(o,t,n,r).pipe(m(s=>(t._resolvedData=s,t.data=lt(t,t.parent,e).resolve,null)))}function yo(t,n,e,r){let i=kt(t);if(i.length===0)return f({});let o={};return I(i).pipe(M(s=>Co(t[s],n,e,r).pipe(Q(),R(u=>{if(u instanceof Le)throw dt(new fe,u);o[s]=u}))),wt(1),Rr(o),J(s=>Nn(s)?G:we(s)))}function Co(t,n,e,r){let i=ze(n)??r,o=Ce(t,i),s=o.resolve?o.resolve(n,e):k(i,()=>o(n,e));return Y(s)}function Lt(t){return P(n=>{let e=t(n);return e?I(e).pipe(m(()=>n)):f(n)})}var zn=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===g);return r}getResolvedTitleForRoute(e){return e.data[_e]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(So),providedIn:"root"})}return t})(),So=(()=>{class t extends zn{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(q(rn))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Se=new A("",{providedIn:"root",factory:()=>({})}),Ro=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=_r({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,i){r&1&&Wr(0,"router-outlet")},dependencies:[Ti],encapsulation:2})}return t})();function lr(t){let n=t.children&&t.children.map(lr),e=n?D(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=Ro),e}var me=new A(""),hr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Ke);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=Y(e.loadComponent()).pipe(m(Fn),R(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),He(()=>{this.componentLoaders.delete(e)})),i=new Ct(r,()=>new W).pipe(yt());return this.componentLoaders.set(e,i),i}loadChildren(e,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 o=wo(r,this.compiler,e,this.onLoadEndListener).pipe(He(()=>{this.childrenLoaders.delete(r)})),s=new Ct(o,()=>new W).pipe(yt());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wo(t,n,e,r){return Y(t.loadChildren()).pipe(m(Fn),M(i=>i instanceof kr||Array.isArray(i)?f(i):I(n.compileModuleAsync(i))),m(i=>{r&&r(t);let o,s,u=!1;return Array.isArray(i)?(s=i,u=!0):(o=i.create(e).injector,s=o.get(me,[],{optional:!0,self:!0}).flat()),{routes:s.map(lr),injector:o}}))}function bo(t){return t&&typeof t=="object"&&"default"in t}function Fn(t){return bo(t)?t.default:t}var dr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Io),providedIn:"root"})}return t})(),Io=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qn=new A(""),Bn=new A("");function Ao(t,n,e){let r=t.get(Bn),i=t.get(Jr);return t.get(Ge).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),u=i.startViewTransition(()=>(o(),Do(t))),{onViewTransitionCreated:a}=r;return a&&k(t,()=>a({transition:u,from:n,to:e})),s})}function Do(t){return new Promise(n=>{jr({read:()=>setTimeout(n)},{injector:t})})}var fr=new A(""),mt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new W;transitionAbortSubject=new W;configLoader=l(hr);environmentInjector=l(Ie);urlSerializer=l(ye);rootContexts=l(Fe);location=l(Ae);inputBindingEnabled=l(gt,{optional:!0})!==null;titleStrategy=l(zn);options=l(Se,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(dr);createViewTransition=l(qn,{optional:!0});navigationErrorHandler=l(fr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;constructor(){let e=i=>this.events.next(new Wt(i)),r=i=>this.events.next(new Gt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(D(h(h({},this.transitions.value),e),{id:r}))}setupNavigations(e,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:Ee,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),m(o=>D(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),P(o=>{let s=!1,u=!1;return f(o).pipe(P(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",O.SupersededByNewNavigation),G;this.currentTransition=o,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?D(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&d!=="reload"){let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.rawUrl),p,ot.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 pe(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),y!==this.transitions?.getValue()?G:Promise.resolve(p)}),go(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),R(p=>{o.targetSnapshot=p.targetSnapshot,o.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=D(h({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let y=new st(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:$,restoredState:w,extras:H}=a,x=new pe(p,this.urlSerializer.serialize(y),$,w);this.events.next(x);let Re=On(this.rootComponentType).snapshot;return this.currentTransition=o=D(h({},a),{targetSnapshot:Re,urlAfterRedirects:y,extras:D(h({},H),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,f(o)}else{let p="";return this.events.next(new K(a.id,this.urlSerializer.serialize(a.extractedUrl),p,ot.IgnoredByUrlHandlingStrategy)),a.resolve(!1),G}}),R(a=>{let c=new qt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=o=D(h({},a),{guards:ji(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),Hi(this.environmentInjector,a=>this.events.next(a)),R(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw dt(this.urlSerializer,a.guardsResult);let c=new Bt(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)),Lt(a=>{if(a.guards.canActivateChecks.length)return f(a).pipe(R(c=>{let d=new Vt(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(vo(this.paramsInheritanceStrategy,this.environmentInjector),R({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(c,"",O.NoDataFromResolver)}}))}),R(c=>{let d=new Ht(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}))}),Lt(a=>{let c=d=>{let p=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(d.routeConfig).pipe(R(y=>{d.component=y}),m(()=>{})));for(let y of d.children)p.push(...c(y));return p};return Ve(c(a.targetSnapshot.root)).pipe(Rt(null),ie(1))}),Lt(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:c}=o,d=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return d?I(d).pipe(m(()=>o)):f(o)}),m(a=>{let c=Oi(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=D(h({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),R(()=>{this.events.next(new je)}),Pi(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ie(1),R({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new L(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),Ar(this.transitionAbortSubject.pipe(R(a=>{throw a}))),He(()=>{!s&&!u&&this.cancelNavigationTransition(o,"",O.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(u=!0,jn(a))this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),xi(a)?this.events.next(new ge(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Pe(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let d=k(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof Le){let{message:p,cancellationCode:y}=dt(this.urlSerializer,d);this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),p,y)),this.events.next(new ge(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return G}))}))}cancelNavigationTransition(e,r,i){let o=new B(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Mo(t){return t!==Ee}var To=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Oo),providedIn:"root"})}return t})(),ur=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Oo=(()=>{class t extends ur{static \u0275fac=(()=>{let e;return function(i){return(e||(e=It(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:()=>l(Eo),providedIn:"root"})}return t})(),Eo=(()=>{class t extends Vn{location=l(Ae);urlSerializer=l(ye);options=l(Se,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=l(dr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new V;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=On(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof pe)this.stateMemento=this.createStateMemento();else if(e instanceof K)this.rawUrlTree=r.initialUrl;else if(e instanceof st){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else e instanceof je?(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)):e instanceof B&&(e.code===O.GuardRejected||e.code===O.NoDataFromResolver)?this.restoreHistory(r):e instanceof Pe?this.restoreHistory(r,!0):e instanceof L&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=e instanceof V?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=h(h({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=It(t)))(i||t)}})();static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Te=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Te||{});function Hn(t,n){t.events.pipe(X(e=>e instanceof L||e instanceof B||e instanceof Pe||e instanceof K),m(e=>e instanceof L||e instanceof K?Te.COMPLETE:(e instanceof B?e.code===O.Redirect||e.code===O.SupersededByNewNavigation:!1)?Te.REDIRECTING:Te.FAILED),X(e=>e!==Te.REDIRECTING),ie(1)).subscribe(()=>{n()})}var Uo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},z=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(qr);stateManager=l(Vn);options=l(Se,{optional:!0})||{};pendingTasks=l(xr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(mt);urlSerializer=l(ye);location=l(Ae);urlHandlingStrategy=l(dr);_events=new W;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(To);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(me,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(gt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new vr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof B&&r.code!==O.Redirect&&r.code!==O.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof L)this.navigated=!0;else if(r instanceof ge){let s=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"||Mo(i.source)},s);this.scheduleNavigation(u,Ee,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}jo(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ee,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=h({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(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(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:a}=r,c=a?this.currentUrlTree.fragment:s,d=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let p;try{let y=i?i.snapshot:this.routerState.snapshot.root;p=An(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),p=this.currentUrlTree.root}return Dn(p,e,d,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=re(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ee,null,r)}navigate(e,r={skipLocationChange:!1}){return Po(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=h({},Uo):r===!1?i=h({},xo):i=r,re(e))return nn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return nn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((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:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Po(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new b(4008,!1)}function jo(t){return!(t instanceof je)&&!(t instanceof ge)}var dn=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new W;constructor(e,r,i,o,s,u){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof L&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(re(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:Nr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:re(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(j(z),j(Z),Ur("tabindex"),j(Mt),j(Dt),j(se))};static \u0275dir=Qe({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Gr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Hr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ye],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ye],replaceUrl:[2,"replaceUrl","replaceUrl",Ye],routerLink:"routerLink"},features:[Fr,We]})}return t})(),ms=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new oe;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof L&&this.update()})}ngAfterContentInit(){f(this.links.changes,f(null)).pipe(be()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=I(e).pipe(be()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=No(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(j(z),j(Dt),j(Mt),j(Ze),j(dn,8))};static \u0275dir=Qe({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Qr(o,dn,5),r&2){let s;Kr(s=Zr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[We]})}return t})();function No(t){return!!t.paths}var pt=class{},ys=(()=>{class t{preload(e,r){return r().pipe(J(()=>f(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cs=(()=>{class t{preload(e,r){return f(null)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lo=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(X(e=>e instanceof L),ne(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Tt(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,u=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(u,o.children??o._loadedRoutes))}return I(i).pipe(be())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=f(null);let o=i.pipe(M(s=>s===null?f(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return I([o,s]).pipe(be())}else return o})}static \u0275fac=function(r){return new(r||t)(q(z),q(Ke),q(Ie),q(pt),q(hr))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=new A(""),Wn=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof pe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof L?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof K&&e.code===ot.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof at&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new at(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Lr()};static \u0275prov=C({token:t,factory:t.\u0275fac})}return t})();function Ss(t,...n){return Er([{provide:me,multi:!0,useValue:t},[],{provide:Z,useFactory:Gn,deps:[z]},{provide:Et,multi:!0,useFactory:Qn},n.map(e=>e.\u0275providers)])}function Gn(t){return t.routerState.root}function F(t,n){return{\u0275kind:t,\u0275providers:n}}function Rs(t){return[{provide:me,multi:!0,useValue:t},[]]}function ws(t={}){return F(4,[{provide:pr,useFactory:()=>{let e=l(xt),r=l(Ge),i=l(mt),o=l(ye);return new Wn(o,i,e,r,t)}}])}function Qn(){let t=l(At);return n=>{let e=t.get(Vr);if(n!==e.components[0])return;let r=t.get(z),i=t.get(Kn);t.get(gr)===1&&r.initialNavigation(),t.get(Zn,null,bt.Optional)?.setUpPreloading(),t.get(pr,null,bt.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Kn=new A("",{factory:()=>new W}),gr=new A("",{providedIn:"root",factory:()=>1});function $o(){return F(2,[{provide:gr,useValue:0},{provide:Ot,multi:!0,deps:[At],useFactory:n=>{let e=n.get(en,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(z),o=n.get(Kn);Hn(i,()=>{r(!0)}),n.get(mt).afterPreactivation=()=>(r(!0),o.closed?f(void 0):o),i.initialNavigation()}))}}])}function ko(){return F(3,[{provide:Ot,multi:!0,useFactory:()=>{let n=l(z);return()=>{n.setUpLocationChangeListener()}}},{provide:gr,useValue:2}])}function bs(){let t=[];return t=[],F(1,t)}var Zn=new A("");function _o(t){return F(0,[{provide:Zn,useExisting:Lo},{provide:pt,useExisting:t}])}function Is(t){return F(5,[{provide:Se,useValue:t}])}function As(){return F(6,[{provide:se,useClass:Ut}])}function Ds(t){return F(7,[{provide:fr,useValue:t}])}function zo(){return F(8,[un,{provide:gt,useExisting:un}])}function Fo(t){let n=[{provide:qn,useValue:Ao},{provide:Bn,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return F(9,n)}var fn=new A("ROUTER_FORROOT_GUARD"),qo=[Ae,{provide:ye,useClass:fe},z,Fe,{provide:Z,useFactory:Gn,deps:[z]},hr,[]],Ms=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[qo,[],{provide:me,multi:!0,useValue:e},{provide:fn,useFactory:Wo,deps:[[z,new Tr,new Or]]},r?.errorHandler?{provide:fr,useValue:r.errorHandler}:[],{provide:Se,useValue:r||{}},r?.useHash?Vo():Ho(),Bo(),r?.preloadingStrategy?_o(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Go(r):[],r?.bindToComponentInputs?zo().\u0275providers:[],r?.enableViewTransitions?Fo().\u0275providers:[],Qo()]}}static forChild(e){return{ngModule:t,providers:[{provide:me,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)(q(fn,8))};static \u0275mod=zr({type:t});static \u0275inj=Dr({})}return t})();function Bo(){return{provide:pr,useFactory:()=>{let t=l(xt),n=l(Ge),e=l(Se),r=l(mt),i=l(ye);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Wn(i,r,t,n,e)}}}function Vo(){return{provide:se,useClass:Ut}}function Ho(){return{provide:se,useClass:tn}}function Wo(t){return"guarded"}function Go(t){return[t.initialNavigation==="disabled"?ko().\u0275providers:[],t.initialNavigation==="enabledBlocking"?$o().\u0275providers:[]]}var pn=new A("");function Qo(){return[{provide:pn,useFactory:Qn},{provide:Et,multi:!0,useExisting:pn}]}function Ts(t){return t.map(n=>(...e)=>l(n).canMatch(...e))}function Os(t){return t.map(n=>(...e)=>l(n).canActivate(...e))}function Es(t){return t.map(n=>(...e)=>l(n).canActivateChild(...e))}function Us(t){return t.map(n=>(...e)=>l(n).canDeactivate(...e))}function xs(t){return(...n)=>l(t).resolve(...n)}var Ps=new Yr("19.0.4");export{g as a,de as b,Xn as c,V as d,v as e,ee as f,ye as g,fe as h,mi as i,S as j,U as k,pe as l,L as m,O as n,ot as o,B as p,K as q,Pe as r,st as s,qt as t,Bt as u,Vt as v,Ht as w,Wt as x,Gt as y,Qt as z,Kt as A,Zt as B,Yt as C,at as D,Xt as E,Fe as F,ct as G,Z as H,le as I,ht as J,Mi as K,Ti as L,Le as M,zn as N,So as O,Se as P,Ro as Q,me as R,wo as S,dr as T,To as U,ur as V,Hn as W,z as X,dn as Y,ms as Z,pt as _,ys as $,Cs as aa,Lo as ba,Ss as ca,Rs as da,ws as ea,$o as fa,ko as ga,bs as ha,_o as ia,Is as ja,As as ka,Ds as la,zo as ma,Fo as na,qo as oa,Ms as pa,pn as qa,Ts as ra,Os as sa,Es as ta,Us as ua,xs as va,Ps as wa};
package/chunk-AZAFLOEO.js DELETED
@@ -1 +0,0 @@
1
- import{a as xe}from"./chunk-FBAABDBH.js";import{a as we}from"./chunk-MN2U4RJK.js";import{a as K}from"./chunk-GH3U5NF5.js";import{a as z}from"./chunk-OAL3AILX.js";import"./chunk-5522ZDTF.js";import{a as ke}from"./chunk-BWR2LHUK.js";import"./chunk-7SHJPVM2.js";import{b as V,d as B,e as Re,g as W,h as Fe,j as he,l as Pe,m as Ie,o as ye,p as $e,q as j,r as Ge}from"./chunk-NN3K5WJK.js";import{a as Oe}from"./chunk-AC2LD55W.js";import{g as be,l as Ae,p as ve,q as De,r as Le}from"./chunk-IBZEQWFY.js";import{a as U}from"./chunk-UUC5AIWR.js";import"./chunk-JQGZUGRK.js";import"./chunk-QJZQNKYK.js";import"./chunk-65UFWL3O.js";import{Ab as N,Bb as y,Cb as $,Db as G,Eb as i,Fb as o,Gb as c,K as v,Kb as M,Kc as X,Mc as Me,Oa as Ce,Qb as O,R as ge,Ra as a,Rb as R,Sb as s,Tb as Q,Ub as Y,Vb as Ee,Wb as p,X as S,Xb as d,Za as E,_b as Ne,c as me,ea as g,fa as C,fb as D,ic as f,jc as b,kc as L,lb as H,mc as k,nc as w,oc as x,p as Te,rc as fe,vb as m,xb as J}from"./chunk-UYXZTHXX.js";import"./chunk-C6Q5SG76.js";var F=class l{#e=S(U);#i=S(z);repeatRegisterTimer=null;state=E("unknown");claimUrl=E(null);registerUrl=E("");status=X(()=>{let e=this.state();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=Me(()=>{let e=this.#i.systemInfo();e&&this.registerUrl.set(e.RemoteControlRegistrationUrl??"")});#t(e){e.RegistrationUrl&&this.claimUrl.set(e.RegistrationUrl),e.IsConnected?this.state.set("connected"):e.IsEnabled?this.state.set("enabled"):e.CanEnable?this.state.set("disabled"):e.IsRegisteringFaulted?this.state.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let t=this.state();console.log("currentState: ",t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n)})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>this.#t(e),error:e=>this.#n(e)})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>e.#t(t),error:t=>e.#n(t)})}static \u0275fac=function(t){return new(t||l)};static \u0275prov=ge({token:l,factory:l.\u0275fac,providedIn:"root"})};function We(l,e){if(l&1){let t=M();i(0,"spk-form-field",10)(1,"input",11),x("ngModelChange",function(r){g(t);let u=d(2);return w(u.registerUrl,r)||(u.registerUrl=r),C(r)}),o()(),i(2,"button",12),p("click",function(){g(t);let r=d(2);return C(r.register())}),s(3,0),o()}if(l&2){let t=d(2);a(),k("ngModel",t.registerUrl)}}function je(l,e){if(l&1&&(i(0,"div",8)(1,"label"),s(2,1),o(),i(3,"a",13),f(4),o()()),l&2){let t=d(2);a(3),Ne("href",t.claimUrl(),Ce),a(),b(t.claimUrl())}}function Ke(l,e){l&1&&(i(0,"div",8)(1,"label"),s(2,2),o()())}function qe(l,e){if(l&1){let t=M();i(0,"button",12),p("click",function(){g(t);let r=d(2);return C(r.cancel())}),s(1,3),o()}}function He(l,e){if(l&1){let t=M();i(0,"button",12),p("click",function(){g(t);let r=d(2);return C(r.disable())}),s(1,4),o()}}function Je(l,e){if(l&1){let t=M();i(0,"button",12),p("click",function(){g(t);let r=d(2);return C(r.enable())}),s(1,5),o(),i(2,"button",14),p("click",function(){g(t);let r=d(2);return C(r.delete())}),s(3,6),o()}}function Qe(l,e){if(l&1&&(i(0,"div",7),H(1,We,4,1)(2,je,5,2,"div",8)(3,Ke,3,0,"div",8)(4,qe,2,0,"button",9)(5,He,2,0,"button",9)(6,Je,4,0),o()),l&2){let t=d();a(),N(t.state()==="inactive"?1:-1),a(),N(t.state()==="registered"?2:-1),a(),N(t.state()==="registering"?3:-1),a(),N(t.state()==="registering"||t.state()==="registeringfaulted"||t.state()==="registered"?4:-1),a(),N(t.state()==="connected"||t.state()==="enabled"?5:-1),a(),N(t.state()==="disabled"?6:-1)}}var q=class l{#e=S(F);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=D({type:l,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let e;e=$localize`Register for remote control`;let t;t=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let r;r=$localize`Cancel registration`;let u;u=$localize`Disable remote control`;let P;P=$localize`Enable remote control`;let I;return I=$localize`Delete remote control setup`,[e,t,n,r,u,P,I,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"]]},template:function(t,n){t&1&&H(0,Qe,7,6,"div",7),t&2&&N(n.state()!=="unknown"?0:-1)},dependencies:[j,V,B,W,Ae],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var Ye=()=>({standalone:!0});function Ze(l,e){if(l&1&&(i(0,"spk-option",32),f(1),o()),l&2){let t=e.$implicit;m("value",t),a(),b(t)}}function et(l,e){if(l&1){let t=M();i(0,"spk-option",51),p("click",function(){let r=g(t).$implicit,u=d();return C(u.pauseSettings.controls.timeType.setValue(r.value))}),f(1),o()}if(l&2){let t=e.$implicit;m("value",t.value),a(),L(" ",t.label," ")}}function tt(l,e){if(l&1&&(i(0,"spk-option",32),f(1),o()),l&2){let t=e.$implicit;m("value",t.value),a(),L(" ",t.label," ")}}function nt(l,e){if(l&1&&(i(0,"spk-option",32),f(1),o()),l&2){let t=e.$implicit;m("value",t.value),a(),L(" ",t.label," ")}}var h=new $e,Ue=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],ze=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],Z=class l{#e=S(ke);#i=S(z);#t=S(U);#n=S(F);#o=S(Oe);#r=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=E("list");langCtrl=E(this.#r);remoteControlStatus=this.#n.status;settingsForm=h.group({pauseSettings:h.group({time:h.control(0),timeType:h.control("s")}),usageStatistics:h.control(""),updateChannel:h.control("")});get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=X(()=>{let e=this.langCtrl();return e?K.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):K});usageStatisticsOptions=E(ze);timeTypeOptions=E(Ue);timeOptions=xe([this.pauseSettings.controls.timeType.valueChanges.pipe(v("s")),this.pauseSettings.controls.time.valueChanges.pipe(v(null))],me(Te(([e,t])=>{let n=this.#l(e);return t!==null?n.filter(r=>r.toString().includes(t.toString())):n}),v([])));#l(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((n,r)=>r)}ngOnInit(){this.getServerSettings()}saveLocale(e){this.#o.setItem("locale",e),window.location.reload()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e,"update-channel":this.settingsForm.controls.updateChannel.value}}).subscribe({next:t=>{console.log("res",t)},error:t=>{console.error("err",t)}})}getServerSettings(){return this.#t.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"],n=t.slice(-1),r=t.slice(0,-1),u=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(r==""?"0":r),timeType:u.includes(n)?n:"s"},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(){let e=this;return()=>{let t=e.langCtrl();return t?K.find(n=>n.value===t)?.label??null:null}}typeDisplay(){let e=this;return()=>{let t=e.settingsForm.value.pauseSettings?.timeType;return t==null?null:Ue.find(n=>n.value===t)?.label??null}}usageDisplay(){let e=this;return()=>{let t=e.settingsForm.value.usageStatistics;return t==null?null:ze.find(n=>n.value===t)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=D({type:l,selectors:[["app-settings"]],decls:106,vars:17,consts:()=>{let e;e=$localize`Settings`;let t;t=$localize`Configure your backup settings.`;let n;n=$localize`Save changes`;let r;r=$localize`Remote access control`;let u;u=$localize`Pause after startup or hibernation`;let P;P=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let I;I=$localize`Color theme`;let T;T=$localize`Customize your application theme`;let ee;ee=$localize`Language`;let te;te=$localize`Select a language for the platform`;let ne;ne=$localize`Update channel`;let ie;ie=$localize`Update channel selection is not implemented yet.`;let oe;oe=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) ${"\uFFFD#65\uFFFD\uFFFD/#65\uFFFD"}:TAG_INPUT:`;let re;re=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let le;le=$localize` Stable ${"\uFFFD#71\uFFFD\uFFFD/#71\uFFFD"}:TAG_INPUT:`;let ae;ae=$localize`Official releases`;let se;se=$localize` Beta ${"\uFFFD#77\uFFFD\uFFFD/#77\uFFFD"}:TAG_INPUT:`;let _e;_e=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let ue;ue=$localize` Experimental ${"\uFFFD#83\uFFFD\uFFFD/#83\uFFFD"}:TAG_INPUT:`;let pe;pe=$localize`Specific builds for developers only. Not for use with important data.`;let ce;ce=$localize` Canary ${"\uFFFD#89\uFFFD\uFFFD/#89\uFFFD"}:TAG_INPUT:`;let de;de=$localize`Individual builds for developers only. Not for use with important data.`;let Se;Se=$localize`Usage statistics`;let A;return A=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#98\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#98\uFFFD"}:CLOSE_LINK:${"[\uFFFD#99\uFFFD\uFFFD/#99\uFFFD|\uFFFD#100\uFFFD\uFFFD/#100\uFFFD]"}:LINE_BREAK:${"[\uFFFD#99\uFFFD\uFFFD/#99\uFFFD|\uFFFD#100\uFFFD\uFFFD/#100\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,A=Ee(A),[e,t,n,r,u,P,I,T,ee,te,ne,ie,oe,re,le,ae,se,_e,ue,pe,ce,de,Se,A,[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary"],[1,"left"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"value"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"outlined","primary"],["type","radio","name","updateChannel","value","","formControlName","updateChannel"],["type","radio","name","updateChannel","value","stable","formControlName","updateChannel"],["type","radio","name","updateChannel","value","beta","formControlName","updateChannel"],["type","radio","name","updateChannel","value","experimental","formControlName","updateChannel"],["type","radio","name","updateChannel","value","canary","formControlName","updateChannel"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],[3,"click","value"]]},template:function(t,n){if(t&1&&(c(0,"app-status-bar"),i(1,"form",24),p("submit",function(){return n.submit()}),i(2,"header")(3,"div",25)(4,"h2"),s(5,0),o(),i(6,"p"),s(7,1),o()(),i(8,"button",26),s(9,2),o()(),i(10,"section")(11,"div",27)(12,"h3"),s(13,3),o(),i(14,"p"),f(15),o()(),i(16,"div",28),c(17,"app-remote-control"),o()(),i(18,"section")(19,"div",27)(20,"h3"),s(21,4),o(),i(22,"p"),s(23,5),o()(),i(24,"div",28)(25,"div",29)(26,"spk-select",30),c(27,"input",31),$(28,Ze,2,2,"spk-option",32,y),o(),i(30,"spk-select",33),c(31,"input",34),$(32,et,2,2,"spk-option",32,y),o()()()(),i(34,"section")(35,"div",27)(36,"h3"),s(37,6),o(),i(38,"p"),s(39,7),o()(),i(40,"div",28)(41,"div",35)(42,"img",36),p("click",function(){return n.setLightMode()}),o(),i(43,"img",37),p("click",function(){return n.setDarkMode()}),o()()()(),i(44,"section")(45,"div",27)(46,"h3"),s(47,8),o(),i(48,"p"),s(49,9),o()(),i(50,"div",28)(51,"spk-select",38),p("change",function(u){return n.saveLocale(u)}),i(52,"input",39),x("ngModelChange",function(u){return w(n.langCtrl,u)||(n.langCtrl=u),u}),o(),$(53,tt,2,2,"spk-option",32,y),o()()(),i(55,"section")(56,"div",27)(57,"h3"),s(58,10),o(),i(59,"p"),s(60,11),o()(),i(61,"div",40)(62,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("")}),i(63,"spk-radio",42),O(64,12),c(65,"input",43),R(),o(),i(66,"p"),s(67,13),o()(),i(68,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("stable")}),i(69,"spk-radio",42),O(70,14),c(71,"input",44),R(),o(),i(72,"p"),s(73,15),o()(),i(74,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("beta")}),i(75,"spk-radio",42),O(76,16),c(77,"input",45),R(),o(),i(78,"p"),s(79,17),o()(),i(80,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("experimental")}),i(81,"spk-radio",42),O(82,18),c(83,"input",46),R(),o(),i(84,"p"),s(85,19),o()(),i(86,"div",41),p("click",function(){return n.settingsForm.controls.updateChannel.setValue("canary")}),i(87,"spk-radio",42),O(88,20),c(89,"input",47),R(),o(),i(90,"p"),s(91,21),o()()()(),i(92,"section")(93,"div",27)(94,"h3"),s(95,22),o(),i(96,"p"),O(97,23),c(98,"a",48)(99,"br")(100,"br"),R(),o()(),i(101,"div",28)(102,"spk-select",49),c(103,"input",50),$(104,nt,2,2,"spk-option",32,y),o()()()()),t&2){let r,u;a(),m("formGroup",n.settingsForm),a(14),b(n.remoteControlStatus()),a(11),m("hideClearButton",!0),a(2),G(n.timeOptions()),a(2),m("displayFn",n.typeDisplay())("hideClearButton",!0),a(2),G(n.timeTypeOptions()),a(10),J("active",!n.isDarkMode()),a(),J("active",n.isDarkMode()),a(8),m("displayFn",n.languageDisplay())("hideClearButton",!0),a(),k("ngModel",n.langCtrl),m("ngModelOptions",fe(16,Ye)),a(),G(n.languageOptions()),a(12),Q((r=n.sysinfo())==null?null:r.DefaultUpdateChannel),Y(64),a(2),Q((u=n.sysinfo())==null?null:u.ServerVersionType),Y(67),a(35),m("displayFn",n.usageDisplay()),a(2),G(n.usageStatisticsOptions())}},dependencies:[j,Fe,V,he,B,Re,W,Ge,Pe,ye,Ie,we,q,De,be,ve,Le],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{Z as default};
package/chunk-C3UW4NQE.js DELETED
@@ -1 +0,0 @@
1
- import{a,b,c}from"./chunk-CQKRBELO.js";import"./chunk-VGGIIK26.js";import"./chunk-K5R45UNO.js";import"./chunk-DNHLTHLR.js";import"./chunk-OAL3AILX.js";import"./chunk-5522ZDTF.js";import"./chunk-NN3K5WJK.js";import"./chunk-IBZEQWFY.js";import"./chunk-UUC5AIWR.js";import"./chunk-7WQR24NO.js";import"./chunk-FSY6N6QG.js";import"./chunk-JQGZUGRK.js";import"./chunk-65UFWL3O.js";import"./chunk-UYXZTHXX.js";import"./chunk-C6Q5SG76.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
package/chunk-CQKRBELO.js DELETED
@@ -1,6 +0,0 @@
1
- import{a as Qe}from"./chunk-VGGIIK26.js";import{a as Ue}from"./chunk-K5R45UNO.js";import{a as Pt,b as Ht}from"./chunk-DNHLTHLR.js";import{a as mt}from"./chunk-OAL3AILX.js";import{b as Q}from"./chunk-5522ZDTF.js";import{a as Re,b as ae,c as Ee,d as se,e as ye,f as _t,g as Ut,h as Pe,i as be,k as ut,l as Ne,m as Ge,n as Bt,o as Ae,p as oe,q as dt,r as Oe}from"./chunk-NN3K5WJK.js";import{a as le,b as Ft,d as Kt,e as zt,g as Ve,i as gt,l as pe,n as Ct,o as Xt,q as ce,r as me,w as Le,x as qe}from"./chunk-IBZEQWFY.js";import{a as We}from"./chunk-UUC5AIWR.js";import{H as De,X as re}from"./chunk-7WQR24NO.js";import{c as Lt}from"./chunk-JQGZUGRK.js";import{ia as ct}from"./chunk-65UFWL3O.js";import{$b as q,Ab as g,Bb as I,Cb as M,Db as v,E as et,Eb as a,Fb as r,Gb as _,Hb as j,Ib as W,Jb as ze,Kb as O,Kc as K,Mc as pt,Qb as h,R as we,Ra as s,Rb as D,Sb as k,Tb as nt,Ub as ot,Vb as Ie,Wb as f,X as $,Xb as p,Za as A,_a as fe,_b as X,ac as z,ea as S,fa as T,fb as ne,fc as Se,gc as Te,hc as he,ic as m,ja as vt,jc as B,kc as V,lb as F,lc as yt,mc as wt,nc as Rt,oc as bt,p as Je,qa as tt,ra as st,rc as Gt,sc as Xe,tc as Vt,uc as it,vb as c,xb as $e,yc as lt}from"./chunk-UYXZTHXX.js";import{a as P,c as Mt}from"./chunk-C6Q5SG76.js";function nn(e,n){if(e&1&&(a(0,"p"),m(1),r()),e&2){let t=p();s(),B(t._data().message)}}var on={title:$localize`Are you sure?`,confirmText:$localize`Confirm`,cancelText:$localize`Cancel`},He=class e{data=st();_data=K(()=>P(P({},on),this.data()));closed=tt();close(n="confirm"){this.closed.emit(n==="confirm")}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=ne({type:e,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},decls:10,vars:4,consts:[["header",""],["content",""],["footer",""],["spk-button","",1,"",3,"click"],["spk-button","",1,"raised","primary",3,"click"]],template:function(t,o){t&1&&(a(0,"header",0)(1,"h3"),m(2),r()(),a(3,"div",1),F(4,nn,2,1,"p"),r(),a(5,"footer",2)(6,"button",3),f("click",function(){return o.close("cancel")}),m(7),r(),a(8,"button",4),f("click",function(){return o.close("confirm")}),m(9),r()()),t&2&&(s(2),B(o._data().title),s(2),g(o._data().message?4:-1),s(3),B(o._data().cancelText),s(2),B(o._data().confirmText))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};var ft=class e{fromString(n){if(!n)return null;let t=n.match(/(\d+)([smhDWMY])/);return t&&{value:parseInt(t[1]),unit:t[2]}}toString(n,t){return`${n}${t}`}static \u0275fac=function(t){return new(t||e)};static \u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"})};var xe=class e{#e=$(We);s3Providers=Q(this.getS3Config("Providers"));s3Regions=Q(this.getS3Config("Regions"));s3RegionHosts=Q(this.getS3Config("RegionHosts"));s3StorageClasses=Q(this.getS3Config("StorageClasses"));storjSatellites=Q(this.getStorjConfig("Satellites"));storjAuthenticationMethods=Q(this.getStorjConfig("AuthenticationMethods"));openstackProviders=Q(this.getOpenstackConfig("Providers"));openstackVersions=Q(this.getOpenstackConfig("Versions"));gcsLocations=Q(this.getGcsConfig("Locations"));gcsStorageClasses=Q(this.getGcsConfig("StorageClasses"));getS3Config(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-getconfig",requestBody:{"s3-config":n}}).pipe(Je(t=>this.#t(t)))}createS3IamUser(n,t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"CanCreateUser","s3-username":n,"s3-password":t}})}createS3PolicyIAM(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"GetPolicyDoc",path:n}})}getStorjConfig(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"storj-getconfig",requestBody:{"storj-config":n}}).pipe(Je(t=>this.#t(t)))}getOpenstackConfig(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"openstack-getconfig",requestBody:{"openstack-config":n}}).pipe(Je(t=>this.#t(t)))}getGcsConfig(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"gcs-getconfig",requestBody:{"gcs-config":n}}).pipe(Je(t=>this.#t(t)))}#t(n){return(n.Result&&typeof n.Result=="object"&&Object.entries(n.Result).map(([t,o])=>({key:t,value:o})))??[]}static \u0275fac=function(t){return new(t||e)};static \u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"})};function Be(e){return e==null?"":":"+e.toString()}function _e(e){return e==null?"":e.startsWith("/")?e:"/"+e}function R(e,n){let t={},o={};return n.searchParams.forEach((i,l)=>{Ke.find(u=>u.key===e)?.dynamicFields?.includes(l)?o[l]=decodeURIComponent(i):t[l]=decodeURIComponent(i)}),{advanced:t,dynamic:o}}function b(e,n=!1){let t=e.map(([i,l])=>`${i}=${l?encodeURIComponent(l.toString()):""}`).join("&");return t?(n?"":"?")+t:""}function St(e){let n=e.destinationType,t=Ke.find(o=>o.customKey===n||o.key===n);if(!t)throw new Error("Invalid destination type");return t?.mapper.to(e)??""}function Nt(e){let n=URL.canParse(e),t=e.split("://")[0],o="http://"+e.split("://")[1],i=new URL(o);if(!n)throw new Error("Invalid target path");return Ke.find(l=>l.customKey===t||l.key===t)?.mapper.from(t,i,e)}var E=new oe,Ke=[{key:"file",displayName:"File system",description:"Store backups on your local file system.",customFields:{path:{type:"FolderTree",name:"path",shortDescription:"File path",longDescription:"The path to store the backup",formElement:e=>E.control(e??"")}},mapper:{to:e=>{let n=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${e.custom.path}${n}`},from:(e,n,t)=>{let o=t.indexOf("file:///")===0,i=t.split(o?"///":"//")[1].substring(0,1)+n.hostname.substring(1);return P({destinationType:e,custom:{path:`${o?"/":""}${i}${n.pathname}`}},R(e,n))}}},{key:"ssh",displayName:"SSH",description:"Store backups in SSH.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"The server to connect to",formElement:e=>E.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"The port to connect to",formElement:e=>E.control(e??"",[Ee.required,Ee.max(65535)])},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:e=>E.control(e??"")}},dynamicFields:["auth-username"],advancedFields:[{type:"FileTree",name:"ssh-keyfile",accepts:".key,",shortDescription:"This is a path to a private key file locally on the machine",longDescription:"This is a path to a private key file locally on the machine"}],mapper:{to:e=>{let n=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:t,server:o,path:i}=e.custom;return`${e.destinationType}://${o+Be(t)+_e(i)+n}`},from:(e,n,t)=>P({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"s3",displayName:"S3 compatible bucket",description:"Store backups in any S3 compatible bucket.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:e=>E.control(e??"")},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"s3-server-name",shortDescription:"Server",type:"NonValidatedSelectableString",loadOptions:e=>e.get(xe).s3Providers},"use-ssl","auth-username","auth-password"],advancedFields:[{name:"s3-client",type:"Enumeration",options:["aws","minio"]},{name:"s3-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(xe).s3StorageClasses}],mapper:{to:e=>{let{bucket:n,path:t}=e.custom,o=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n+_e(t)+o}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.pathname,bucket:n.hostname}},R(e,n))}},{key:"gcs",displayName:"Google Cloud Storage",description:"Store backups in Google Cloud Storage.",oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"gcs-location",type:"NonValidatedSelectableString",loadOptions:e=>e.get(xe).gcsLocations},{name:"gcs-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(xe).gcsStorageClasses},"authid"],mapper:{to:e=>{let n=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${e.custom.path}${n}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"googledrive",displayName:"Google Drive",description:"Store backups in Google Drive.",oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:e=>E.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"azure",displayName:"Azure Blob Storage",description:"Store backups in Azure Blob Storage.",customFields:{path:{type:"String",name:"path",shortDescription:"Container name",longDescription:"Container name",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Account name"},{name:"auth-password",shortDescription:"Access key"}],mapper:{to:e=>{let n=e.custom.path,t=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"onedrivev2",displayName:"OneDrive",description:"Store backups in OneDrive.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"od4b",displayName:"OneDrive Business",description:"Store backups in OneDrive Business.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>E.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>E.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Account name"},{name:"auth-password",shortDescription:"Access key"}],mapper:{to:e=>{let n=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:t,server:o,path:i}=e.custom;return`${e.destinationType}://${o+Be(t)+_e(i)+n}`},from:(e,n,t)=>P({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"mssp",displayName:"Microsoft SharePoint",description:"Store backups in Microsoft SharePoint.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>E.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>E.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Account name"},{name:"auth-password",shortDescription:"Access key"}],mapper:{to:e=>{let n=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:t,server:o,path:i}=e.custom;return`${e.destinationType}://${o+Be(t)+_e(i)+n}`},from:(e,n,t)=>P({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"sharepoint",displayName:"Microsoft SharePoint v2",description:"Store backups in Microsoft SharePoint.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"dropbox",displayName:"Dropbox",description:"Store backups in Dropbox.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"box",displayName:"Box.com",description:"Store backups in Box.com.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"jottacloud",displayName:"Jottacloud",description:"Store backups in Jottacloud.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"b2",displayName:"B2 Cloud Storage",description:"Store backups in B2 Cloud Storage.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:e=>E.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path in the bucket",longDescription:"Path in the bucket",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Application ID"},{name:"auth-password",shortDescription:"Application Key"}],mapper:{to:e=>{let{bucket:n,path:t}=e.custom,o=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n+_e(t)+o}`},from:(e,n,t)=>P({destinationType:e,custom:{bucket:n.hostname,path:n.pathname}},R(e,n))}},{key:"e2",displayName:"IDrive e2",description:"Store backups in IDrive e2.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:e=>E.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path in the bucket",longDescription:"Path in the bucket",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Access ID"},{name:"auth-password",shortDescription:"Access Secret"}],mapper:{to:e=>{let{bucket:n,path:t}=e.custom,o=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n+_e(t)+o}`},from:(e,n,t)=>P({destinationType:e,custom:{bucket:n.hostname,path:n.pathname}},R(e,n))}},{key:"mega",displayName:"Mega.nz",description:"Store backups in Mega.nz.",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:e=>{let n=e.custom.path,t=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"msgroup",displayName:"Microsoft Office 365 Group",description:"Store backups in Microsoft Office 365 Group.",oauthField:"authid",customFields:{groupEmail:{type:"Email",name:"groupEmail",shortDescription:"Group email",longDescription:"Group email",formElement:e=>E.control(e??"",[Ee.email])},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"cloudfiles",displayName:"Rackspace CloudFiles",description:"Store backups in Rackspace CloudFiles.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>E.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>E.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:e=>{let n=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:t,server:o,path:i}=e.custom;return`${e.destinationType}://${o+Be(t)+_e(i)+n}`},from:(e,n,t)=>P({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"rclone",displayName:"Rclone",description:"Store backups in Rclone.",dynamicFields:[{name:"rclone-local-repository",shortDescription:"Local repository",defaultValue:""},{name:"rclone-remote-repository",shortDescription:"Remote repository",defaultValue:""},{name:"rclone-remote-path",shortDescription:"Path on remote repository",defaultValue:""}],mapper:{to:e=>{let n=e.dynamic["rclone-remote-repository"],t=e.dynamic["rclone-remote-path"],o=Object.entries(e.dynamic).filter(([l])=>!["rclone-remote-repository","rclone-remote-path"].includes(l)),i=b([...Object.entries(e.advanced),...o]);return`${e.destinationType}://${n}/${t+i}`},from:(e,n,t)=>{let{advanced:o,dynamic:i}=R(e,n);return P({destinationType:e,dynamic:P({"rclone-remote-repository":n.hostname,"rclone-remote-path":n.pathname},i)},o)}}},{key:"openstack",displayName:"OpenStack Object Storage",description:"Store backups in OpenStack Object Storage.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket",longDescription:"Bucket",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"openstack-authuri",shortDescription:"Auth URI",type:"Enumeration",loadOptions:e=>e.get(xe).openstackProviders},{name:"openstack-version",shortDescription:"Version",type:"Enumeration",loadOptions:e=>e.get(xe).openstackVersions},{name:"openstack-domain-name",shortDescription:"Domain name"},{name:"openstack-tenant-name",shortDescription:"Tenant name"},{name:"openstack-region",shortDescription:"Region"}],mapper:{to:e=>{let n=b([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{bucket:t}=e.custom;return`${e.destinationType}://${t+n}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.pathname,bucket:n.hostname}},R(e,n))}},{key:"webdav",displayName:"WebDAV",description:"Store backups in WebDAV.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>E.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>E.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"use-ssl",shortDescription:"Use SSL"},{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:e=>{let{port:n,server:t,path:o}=e.custom,i=e.dynamic["use-ssl"],l=b([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([u])=>u!=="use-ssl")]);return`${e.destinationType}${i?"s":""}://${t+Be(n)+_e(o)+l}`},from:(e,n,t)=>P({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"aftp",displayName:"FTP",description:"Store backups in FTP.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>E.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>E.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:e=>{let{port:n,server:t,path:o}=e.custom,i=b([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([l])=>l!=="use-ssl")]);return`${e.destinationType}://${t+Be(n)+_e(o)+i}`},from:(e,n,t)=>P({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"sia",displayName:"Sia Decentrilized Cloud",description:"Store backups in Sia Decentrilized Cloud.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>E.control(e??"")}},dynamicFields:["sia-targetpath","sia-password","sia-redundancy"],mapper:{to:e=>{let n=e.custom.server,t=e.dynamic["sia-targetpath"],o=b([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([i])=>i!=="sia-targetpath")]);return`${e.destinationType}://${n+_e(t)+o}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.pathname}},R(e,n))}},{key:"cos",displayName:"Tencent COS",description:"Store backups in Tencent COS.",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"cos-bucket",shortDescription:"Bucket",order:1},{name:"cos-region",shortDescription:"Region",order:2},{name:"cos-app-id",shortDescription:"COS App Id",order:3},{name:"cos-secret-id",shortDescription:"COS Secret Id",order:4},{name:"cos-secret-key",shortDescription:"COS Secret Key",order:5}],mapper:{to:e=>{let n=e.custom.path,t=b([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([o])=>o!=="cos-targetpath")]);return`${e.destinationType}://${n+t}`},from:(e,n,t)=>P({destinationType:e,custom:{path:n.pathname}},R(e,n))}},{key:"tahoe",displayName:"Tahoe LAFS",description:"Store backups in Tahoe LAFS.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>E.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>E.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>E.control(e??"")},username:{type:"String",name:"username",shortDescription:"Username",longDescription:"Username",formElement:e=>E.control(e??"")},password:{type:"Password",name:"password",shortDescription:"Password",longDescription:"Password",formElement:e=>E.control(e??"")}},dynamicFields:[{name:"use-ssl",shortDescription:"Use SSL"}],mapper:{to:e=>{let{port:n,server:t,path:o,username:i,password:l}=e.custom,u={"auth-username":i,"auth-password":l},N=e.dynamic["use-ssl"],w=b([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([y])=>y!=="use-ssl"),...Object.entries(u)]);return`${e.destinationType}${N?"s":""}://${t+Be(n)+_e(o)+w}`},from:(e,n,t)=>P({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"storj",customKey:"storjAccessGrant",displayName:"Storj Access Grant",description:"Store backups in Storj Access Grant.",dynamicFields:[{name:"storj-shared-access",shortDescription:"Access Grant"},{name:"storj-bucket",shortDescription:"Bucket"},{name:"storj-folder",shortDescription:"Path on server"}],mapper:{to:e=>`storj://storj.io/config?storj-auth-method=Access%20grant&storj-satellite=us1.storj.io%3A7777&storj-api-key&storj-secret&${b([...Object.entries(e.advanced),...Object.entries(e.dynamic)],!0)}`,from:(e,n,t)=>P({destinationType:e},R(e,n))}},{key:"storj",customKey:"storjApiKey",displayName:"Storj API Key",description:"Store backups in Storj API Key.",dynamicFields:[{name:"storj-satellite",shortDescription:"Satellite",type:"Enumeration",loadOptions:e=>e.get(xe).storjSatellites},{name:"storj-api-key",shortDescription:"API Key"},{name:"storj-secret",shortDescription:"Secret"},{name:"storj-bucket",shortDescription:"Bucket"},{name:"storj-folder",shortDescription:"Path on server"}],mapper:{to:e=>`storj://storj.io/config?storj-auth-method=API%20key&${b([...Object.entries(e.advanced),...Object.entries(e.dynamic)],!0)}`,from:(e,n,t)=>P({destinationType:e},R(e,n))}}];var jt=/[a-zA-Z0-9_\-\+\.!@#$%^&*?_~()-]/,Tt=class e{generate(n,t=jt){let o;do o=this.generatePassword(n,t);while(this.calculatePasswordStrength(o)<5);return o}generatePassword(n,t=jt){let o=this;return Array.apply(null,{length:n}).map(()=>{let i;for(;;)if(i=String.fromCharCode(o.#e()),t.test(i))return i},this).join("")}calculatePasswordStrength(n){let t=1;return n.length>=8&&t++,n.match(/[a-z]/)&&n.match(/[A-Z]/)&&t++,n.match(/\d+/)&&t++,n.match(/.[!,@,#,$,%,^,&,*,?,_,~,(,),-]/)&&t++,Math.min(t,5)}#e(){if(window.crypto&&window.crypto.getRandomValues){let n=new Uint8Array(1);return window.crypto.getRandomValues(n),n[0]}else if(window.msCrypto&&window.msCrypto.getRandomValues){let n=new Uint8Array(1);return window.msCrypto.getRandomValues(n),n[0]}else return Math.floor(Math.random()*256)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"})};var rn=["formRef"];function an(e,n){if(e&1&&(a(0,"spk-option",27),m(1),r()),e&2){let t=n.$implicit;c("value",t.Key),s(),B(t.DisplayName)}}function sn(e,n){if(e&1&&_(0,"spk-progress-bar",38),e&2){let t=p(3);$e("warn",t.calculatePasswordStrength()===1)("tertiary",t.calculatePasswordStrength()===2)("primary",t.calculatePasswordStrength()===4)("success",t.calculatePasswordStrength()===5),c("value",t.calculatePasswordStrength()*(100/5))}}function ln(e,n){e&1&&(a(0,"span",33),k(1,9),r())}function pn(e,n){e&1&&(h(0,7,1),_(1,"spk-icon"),D())}function cn(e,n){e&1&&(h(0,7,2),_(1,"spk-icon"),D())}function mn(e,n){e&1&&(h(0,10,1),_(1,"spk-icon",40),D())}function _n(e,n){e&1&&(h(0,10,2),_(1,"spk-icon"),D())}function un(e,n){if(e&1){let t=O();a(0,"button",39),f("click",function(){S(t);let i=p(3);return T(i.copyPassword())}),h(1,10),F(2,mn,2,0)(3,_n,2,0),D(),r()}if(e&2){let t=p(3);s(2),g(t.copiedPassword()?2:3)}}function dn(e,n){e&1&&(a(0,"spk-alert",37),k(1,11),r())}function Fn(e,n){if(e&1){let t=O();a(0,"div",28)(1,"spk-form-field")(2,"label",29),h(3,6),_(4,"sup"),D(),r(),_(5,"input",30),r(),F(6,sn,1,9,"spk-progress-bar",31),a(7,"spk-form-field"),_(8,"input",32),F(9,ln,2,0,"span",33),r(),a(10,"div",34)(11,"button",35),f("click",function(){S(t);let i=p(2);return T(i.showPassword.set(!i.showPassword()))}),h(12,7),F(13,pn,2,0)(14,cn,2,0),D(),r(),a(15,"button",35),f("click",function(){S(t);let i=p(2);return T(i.generatePassword())}),h(16,8),_(17,"spk-icon"),D(),r(),F(18,un,4,1,"button",36),r(),F(19,dn,2,0,"spk-alert",37),r()}if(e&2){let t=p(2);s(5),c("type",t.showPassword()?"text":"password"),s(),g(t.generalForm.value.password?6:-1),s(2),c("type",t.showPassword()?"text":"password"),s(),g(t.generalForm.value.repeatPassword&&t.generalForm.value.repeatPassword!==t.generalForm.value.password?9:-1),s(4),g(t.showPassword()?13:14),s(5),g(t.showCopyPassword()?18:-1),s(),g(t.generalForm.value.password&&t.generalForm.value.password===t.generalForm.value.repeatPassword?19:-1)}}function gn(e,n){if(e&1&&(a(0,"spk-select",24)(1,"label",25),k(2,5),r(),_(3,"input",26),M(4,an,2,2,"spk-option",27,I),r(),F(6,Fn,20,7,"div",28)),e&2){let t=p();c("displayFn",t.displayFn()),s(4),v(t.encryptionOptions()),s(2),g(t.encryptionFieldSignal()!==""?6:-1)}}function Cn(e,n){if(e&1&&(a(0,"button",22),h(1,12),_(2,"spk-icon"),D(),r()),e&2){let t=p();c("disabled",t.generalForm.invalid)}}function fn(e,n){if(e&1&&(a(0,"spk-tooltip",23)(1,"button",22),h(2,13),_(3,"spk-icon"),D(),r()()),e&2){let t=p();c("disabled",!(t.showCopyPassword()&&!t.copiedPassword())),s(),c("disabled",t.generalForm.invalid||t.showCopyPassword()&&!t.copiedPassword())}}var Ze=new oe,Wt=(e={name:"",description:"",encryption:"",password:"",repeatPassword:""})=>Ze.group({name:Ze.control(e.name,[Ee.required]),description:Ze.control(e.description),encryption:Ze.control(e.encryption,[Ht()]),password:Ze.control(e.password,[Pt(n=>n?.value.encryption!=="",[Ee.required])]),repeatPassword:Ze.control(e.repeatPassword,[Pt(n=>n?.value.encryption!=="",[Ee.required])])}),Ot={Key:"",DisplayName:"None"},At=class e{#e=$(re);#t=$(De);#o=$(Tt);#i=$(ue);#n=$(mt);formRef=fe.required("formRef");generalForm=this.#i.generalForm;generalFormSignal=this.#i.generalFormSignal;encryptionFieldSignal=this.#i.encryptionFieldSignal;encryptionOptions=this.#i.encryptionOptions;isNew=this.#i.isNew;showPassword=A(!1);copiedPassword=A(!1);showCopyPassword=A(!1);encryptionEffect=pt(()=>{this.encryptionFieldSignal()===""&&(this.copiedPassword.set(!1),this.showCopyPassword.set(!1))});calculatePasswordStrength=K(()=>{let t=this.generalFormSignal()?.password??"";return this.#o.calculatePasswordStrength(t)});ngOnInit(){this.formRef().nativeElement.focus()}exit(){this.#i.exit()}async copyPassword(){let n=this.generalForm.controls.password.value;await this.#r(n??""),this.copiedPassword.set(!0)}async#r(n){try{await navigator.clipboard.writeText(n)}catch{try{let o=document.createElement("textarea");o.value=n,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o)}catch(o){console.error("Failed to copy text: ",o)}}}displayFn(){let n=this.#n.systemInfo()?.EncryptionModules??[];return t=>{let o=[Ot,...n].find(i=>i.Key===t);return o?`${o.DisplayName}`:""}}generatePassword(){this.copiedPassword.set(!1);let n=this.#o.generate(16);this.generalForm.controls.password.setValue(n),this.generalForm.controls.repeatPassword.setValue(n),this.showCopyPassword.set(!0)}next(){this.#e.navigate(["destination"],{relativeTo:this.#t.parent})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=ne({type:e,selectors:[["app-general"]],viewQuery:function(t,o){t&1&&Se(o.formRef,rn,5),t&2&&Te()},decls:20,vars:3,consts:()=>{let n;n=$localize`Your backup name`;let t;t=$localize`Your backup description`;let o;o=$localize`General backup settings`;let i;i=$localize` Backup name ${"\uFFFD#7\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#7\uFFFD"}:CLOSE_SUPERSCRIPT:`;let l;l=$localize`Backup description`;let u;u=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_ICON: Exit `;let N;N=$localize`Encryption`;let w;w=$localize`Encryption`;let y;y=$localize`Password`;let Z;Z=$localize`Repeat password`;let J;J=$localize` Create a password ${"\uFFFD#4\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#4\uFFFD"}:CLOSE_SUPERSCRIPT:`;let L;L=$localize`${"\uFFFD*13:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:eye-slash${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: hide ${"\uFFFD/*13:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*14:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:eye${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: show ${"\uFFFD/*14:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,L=Ie(L);let ee;ee=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_ICON:password${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_ICON: Generate password `;let te;te=$localize`Passwords do not match`;let H;H=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copied password ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SPK_ICON_1:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copy password ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,H=Ie(H);let d;d=$localize` Tip: Be sure to save your password. If you loose it you will lose access to your backups. `;let C;C=$localize` Continue ${"\uFFFD#2\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let G;return G=$localize` Continue ${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],o,i,l,u,w,J,L,ee,te,H,d,C,G,["autocomplete","off",3,"submit","formGroup"],[1,"title-30"],["for","backupName"],["type","text","tabindex","1","placeholder",n,"formControlName","name"],["for","backupDescription"],["id","backupDescription","tabindex","2","placeholder",t,"formControlName","description"],[1,"form-actions"],["type","button","spk-button","",3,"click"],["spk-button","","type","submit",1,"raised","primary",3,"disabled"],["message","Remember to copy the password",1,"primary",3,"disabled"],[3,"displayFn"],["for","encryption"],["type","text","id","encryption","tabindex","3","placeholder",N,"formControlName","encryption"],[3,"value"],[1,"passwords"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder",y,"formControlName","password",3,"type"],[1,"raised",3,"warn","tertiary","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder",Z,"formControlName","repeatPassword",3,"type"],["error",""],[1,"password-actions"],["spk-button","","type","button",1,"small",3,"click"],["spk-button","","type","button",1,"small","copy"],["type","primary"],[1,"raised",3,"value"],["spk-button","","type","button",1,"small","copy",3,"click"],[1,"spk-success"]]},template:function(t,o){if(t&1){let i=O();a(0,"form",14,0),f("submit",function(){return S(i),T(o.next())}),a(2,"h3",15),k(3,1),r(),a(4,"spk-form-field")(5,"label",16),h(6,2),_(7,"sup"),D(),r(),_(8,"input",17),r(),a(9,"spk-form-field")(10,"label",18),k(11,3),r(),_(12,"textarea",19),r(),F(13,gn,7,2),a(14,"div",20)(15,"button",21),f("click",function(){return S(i),T(o.exit())}),h(16,4),_(17,"spk-icon"),D(),r(),F(18,Cn,3,1,"button",22)(19,fn,4,2,"spk-tooltip",23),r()()}t&2&&(c("formGroup",o.generalForm),s(13),g(o.isNew()?13:-1),s(5),g(o.encryptionFieldSignal()===""?18:19))},dependencies:[Oe,Pe,ae,se,ye,Ne,Ae,pe,me,Ve,le,ce,Xt,Ft,qe],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}sup[_ngcontent-%COMP%]{padding:0 .125rem;color:var(--warn-500)}.passwords[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.password-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.copy[_ngcontent-%COMP%] spk-icon.spk-success[_ngcontent-%COMP%]{color:var(--success-500)}"],changeDetection:0})};var Sn=["formRef"],Tn=(e,n)=>({index:e,formView:n,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),hn=e=>({$implicit:e});function Dn(e,n){if(e&1&&(a(0,"spk-option",17),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),B(t)}}function En(e,n){if(e&1&&(a(0,"spk-option",17),m(1),r()),e&2){let t=n.$implicit;c("value",t.value),s(),B(t.name)}}function yn(e,n){if(e&1){let t=O();h(0,7,1),a(1,"button",29,2),f("click",function(){let i=S(t).$implicit,l=p();return T(l.addNewOption(i))}),r(),D()}if(e&2){let t=n.$implicit;s(),nt(t.name),ot(0)}}function Pn(e,n){e&1&&ze(0)}function Nn(e,n){if(e&1&&F(0,Pn,1,0,"ng-container",30),e&2){let t=n.$implicit,o=n.$index;p();let i=he(35);c("ngTemplateOutlet",i)("ngTemplateOutletContext",Xe(5,hn,Vt(2,Tn,o,t)))}}function An(e,n){if(e&1&&(a(0,"spk-tooltip",40)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function On(e,n){if(e&1&&(a(0,"app-file-tree",33)(1,"label",39),m(2),F(3,An,3,1,"spk-tooltip",40),r(),_(4,"input",41),r()),e&2){let t,o=p().$implicit,i=p();c("startingPath",i.getFormFieldValue(0,o.formGroupName,o.formView.name))("accepts",o.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),q("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name)}}function kn(e,n){if(e&1&&(a(0,"spk-tooltip",40)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function xn(e,n){if(e&1&&(a(0,"app-file-tree",34)(1,"label",39),m(2),F(3,kn,3,1,"spk-tooltip",40),r(),_(4,"input",41),r()),e&2){let t,o=p().$implicit,i=p();c("startingPath",i.getFormFieldValue(0,o.formGroupName,o.formView.name)),s(),q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),q("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name)}}function $n(e,n){if(e&1&&(a(0,"spk-tooltip",40)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function In(e,n){e&1&&(a(0,"spk-icon",42),m(1,"link"),r())}function Mn(e,n){e&1&&(a(0,"spk-icon",42),m(1,"textbox"),r())}function vn(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",39),m(2),F(3,$n,3,1,"spk-tooltip",40),r(),_(4,"input",41),F(5,In,2,0,"spk-icon",42)(6,Mn,2,0,"spk-icon",42),r()),e&2){let t,o=p().$implicit;s(),q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),q("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name),s(),g(o.formView.type==="Path"?5:6)}}function wn(e,n){if(e&1){let t=O();a(0,"span",46),f("click",function(){S(t);let i=p(2).$implicit,l=p();return T(l.oauthStartTokenCreation(i.formViewType))}),m(1,"AuthID"),r()}}function Rn(e,n){e&1&&(a(0,"spk-icon",42),m(1,"password"),r())}function bn(e,n){if(e&1){let t=O();a(0,"spk-icon",47),f("click",function(){S(t);let i=p(2).$implicit;return T(i.formView.showPassword=!i.formView.showPassword)}),m(1," eye "),r()}}function Gn(e,n){if(e&1){let t=O();a(0,"spk-icon",47),f("click",function(){S(t);let i=p(2).$implicit;return T(i.formView.showPassword=!i.formView.showPassword)}),m(1," eye-slash "),r()}}function Vn(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",39),m(2),r(),_(3,"input",43),F(4,wn,2,0,"span",44)(5,Rn,2,0,"spk-icon",42)(6,bn,2,0,"spk-icon",45)(7,Gn,2,0,"spk-icon",45),r()),e&2){let t,o=p().$implicit;s(),q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),q("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name),c("type",o.formView.showPassword?"text":"password"),s(),g(o.oauthField===o.formView.name?4:5),s(2),g(o.formView.showPassword?6:7)}}function Ln(e,n){if(e&1&&(a(0,"spk-tooltip",40)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Un(e,n){if(e&1&&(a(0,"spk-option",17),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),B(t)}}function Bn(e,n){if(e&1&&(a(0,"spk-select")(1,"label",39),m(2),F(3,Ln,3,1,"spk-tooltip",40),r(),_(4,"input",48),M(5,Un,2,2,"spk-option",17,I),r()),e&2){let t,o=p().$implicit;s(),q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),q("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name),s(),v(o.formView.options)}}function Kn(e,n){if(e&1&&(a(0,"spk-tooltip",40)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function zn(e,n){if(e&1&&(a(0,"spk-option",17),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),B(t)}}function Xn(e,n){if(e&1&&(a(0,"div",35)(1,"label",39),m(2),F(3,Kn,3,1,"spk-tooltip",40),r(),a(4,"div",49)(5,"spk-form-field"),_(6,"input",50),a(7,"spk-icon",42),m(8,"resize"),r()(),a(9,"spk-select"),_(10,"label")(11,"input",51),M(12,zn,2,2,"spk-option",17,I),r()()()),e&2){let t,o=p().$implicit,i=p();c("formGroupName",o.formView.name),s(),q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(3),q("id","destination-",o.formGroupName,"-",o.index,""),s(6),v(i.sizeOptions())}}function Hn(e,n){if(e&1&&(a(0,"spk-tooltip",40)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function jn(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",39),m(2),F(3,Hn,3,1,"spk-tooltip",40),r(),_(4,"input",52),a(5,"spk-icon",42),m(6,"numpad"),r()()),e&2){let t,o=p().$implicit;s(),q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),q("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name)}}function Wn(e,n){if(e&1&&(a(0,"spk-tooltip",40)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function qn(e,n){if(e&1&&(a(0,"spk-toggle",36)(1,"label",39),m(2),F(3,Wn,3,1,"spk-tooltip",40),r(),_(4,"input",53),r()),e&2){let t,o=p().$implicit;s(),q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),q("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name)}}function Qn(e,n){if(e&1&&(a(0,"spk-tooltip",40)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Yn(e,n){e&1&&(a(0,"spk-option",55),m(1,"None"),r()),e&2&&c("value","None")}function Zn(e,n){if(e&1&&(a(0,"spk-option",17),m(1),_(2,"spk-checkbox",56),r()),e&2){let t=p().$implicit;c("value",t),s(),V(" ",t," ")}}function Jn(e,n){if(e&1&&F(0,Yn,2,1,"spk-option",55)(1,Zn,3,2,"spk-option",17),e&2){let t=n.$implicit;g(t==="None"?0:1)}}function eo(e,n){if(e&1&&(a(0,"spk-select",37)(1,"label",39),m(2),F(3,Qn,3,1,"spk-tooltip",40),r(),_(4,"input",54),M(5,Jn,2,1,null,null,I),r()),e&2){let t,o=p().$implicit;c("selectMultiple",!0),s(),q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),X("formControlName",o.formView.name),s(),v(o.formView.options)}}function to(e,n){if(e&1&&(a(0,"spk-tooltip",40)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function no(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",39),m(2),F(3,to,3,1,"spk-tooltip",40),r(),_(4,"input",41),r()),e&2){let t,o=p().$implicit;s(),q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),q("id","destination-",o.formGroupName,"-",o.index,""),X("formControlName",o.formView.name)}}function oo(e,n){if(e&1){let t=O();a(0,"div",31),j(1,32),F(2,On,5,14,"app-file-tree",33)(3,xn,5,10,"app-file-tree",34)(4,vn,7,10,"spk-form-field")(5,Vn,8,11,"spk-form-field")(6,Bn,7,9,"spk-select")(7,Xn,14,9,"div",35)(8,jn,7,9,"spk-form-field")(9,qn,5,9,"spk-toggle",36)(10,eo,7,7,"spk-select",37)(11,no,5,9,"spk-form-field"),W(),a(12,"button",38),f("click",function(){let i=S(t).$implicit,l=p();return T(l.removeFormView(i.formView,0))}),a(13,"spk-icon"),m(14,"x-circle"),r()()()}if(e&2){let t=n.$implicit;s(),c("formGroupName",t.formGroupName),s(),g(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="Size"?7:t.formView.type==="Integer"?8:t.formView.type==="Boolean"?9:t.formView.type==="Flags"?10:t.formView.type==="Timespan"?11:-1)}}var Me=new oe,io=["Bytes","KB","MB","GB","TB","PB"],ro=[{value:"",name:"Keep all backups"},{value:"time",name:"Delete backups that are older than"},{value:"versions",name:"Keep a specific number of backups"},{value:"smart",name:"Smart backup retention"},{value:"custom",name:"Custom backup retention"}],qt=(e={remoteVolumeSize:50,size:"MB",backupRetention:"",advancedOptions:[]})=>Me.group({remoteVolumeSize:Me.group({size:Me.control(e.remoteVolumeSize),unit:Me.control(e.size)}),backupRetention:Me.control(e.backupRetention),advancedOptions:Me.group({})}),kr=(e,n)=>Me.group({name:Me.control(e),value:Me.control(n)}),kt=class e{#e=$(ue);#t=$(re);#o=$(De);formRef=fe.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=this.#e.isSubmitting;sizeOptions=A(io);rentationOptions=A(ro);oauthStartTokenCreation(n){}getFormFieldValue(n,t,o){return this.optionsForm.controls.advancedOptions.controls[o].value}removeFormView(n,t){this.#e.removeOptionFromFormGroup(n)}addNewOption(n){this.#e.addOptionToFormGroup(n)}retentionOptionDisplayFn(){let n=this.rentationOptions();return t=>{let o=n.find(i=>i.value===t);return o?o.name:""}}displayFn(){let n=this.#e.advancedOptions();return t=>{let o=n.find(i=>i.name===t);return o?`${o.name}`:""}}goBack(){this.#t.navigate(["schedule"],{relativeTo:this.#o.parent})}submit(){this.#e.submit()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=ne({type:e,selectors:[["app-options"]],viewQuery:function(t,o){t&1&&Se(o.formRef,Sn,5),t&2&&Te()},decls:43,vars:5,consts:()=>{let n;n=$localize`Select an option...`;let t;t=$localize`Options`;let o;o=$localize`Remote volume size`;let i;i=$localize` The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. ${"\uFFFD#16\uFFFD"}:START_LINK:Read more${"\uFFFD/#16\uFFFD"}:CLOSE_LINK:`;let l;l=$localize`Backup retention`;let u;u=$localize` Advanced options ${"\uFFFD#26\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#27\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#28\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#27\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#29\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*31:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#27\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*31:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#29\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#26\uFFFD"}:CLOSE_TAG_SPK_MENU:`,u=Ie(u);let N;N=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#39\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let w;return w=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `,[["formRef",""],["fieldTemplate",""],["option",""],t,o,i,l,u,N,w,[3,"submit","formGroup"],[1,"title-30"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],["type","number","id","size","formControlName","size"],["type","text","placeholder",n,"formControlName","unit"],[3,"value"],["href","#",1,"spk-primary"],[3,"displayFn"],["type","text","formControlName","backupRetention"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"]]},template:function(t,o){if(t&1){let i=O();a(0,"form",10,0),f("submit",function(){return S(i),T(o.submit())}),a(2,"h3",11),k(3,3),r(),a(4,"div",12)(5,"div",13)(6,"spk-form-field")(7,"label",14),k(8,4),r(),_(9,"input",15),r(),a(10,"spk-select"),_(11,"input",16),M(12,Dn,2,2,"spk-option",17,I),r()(),a(14,"p"),h(15,5),_(16,"a",18),D(),r()(),a(17,"spk-select",19)(18,"label",14),k(19,6),r(),_(20,"input",20),M(21,En,2,2,"spk-option",17,I),r(),a(23,"app-toggle-card",21),j(24,22),h(25,7),a(26,"spk-menu")(27,"button",23),_(28,"spk-icon"),r(),j(29,24),M(30,yn,3,1,"button",25,I),W(),r(),D(),W(),M(32,Nn,1,7,"ng-container",null,I),r(),F(34,oo,15,2,"ng-template",null,1,lt),a(36,"div",26)(37,"button",27),f("click",function(){return S(i),T(o.goBack())}),h(38,8),_(39,"spk-icon"),D(),r(),a(40,"button",28),h(41,9),_(42,"spk-icon"),D(),r()()()}t&2&&(c("formGroup",o.optionsForm),s(12),v(o.sizeOptions()),s(5),c("displayFn",o.retentionOptionDisplayFn()),s(4),v(o.rentationOptions()),s(2),c("disallowToggle",!0),s(7),v(o.nonSelectedOptions()),s(2),v(o.selectedOptions()),s(8),$e("loader",o.isSubmitting()))},dependencies:[Oe,Pe,ae,be,Re,se,ye,Ne,Ae,Ge,ct,Ct,me,Ve,le,pe,Le,gt,ce,qe,Qe,Ue],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var ao=["formRef"];function so(e,n){if(e&1&&(a(0,"spk-option",38),m(1),r()),e&2){let t=n.$implicit;c("value",t.key),s(),B(t.label)}}function lo(e,n){if(e&1){let t=O();a(0,"div",26)(1,"spk-form-field")(2,"label",27),k(3,8),r(),a(4,"input",28,1),f("focus",function(){S(t);let i=he(5);return T(i.showPicker())}),r(),a(6,"spk-icon",29),m(7,"clock"),r()(),a(8,"spk-form-field"),_(9,"label",30),a(10,"input",31,2),f("focus",function(){S(t);let i=he(11);return T(i.showPicker())}),r(),a(12,"spk-icon",29),m(13,"calendar"),r()()(),j(14,32),a(15,"div",33)(16,"spk-form-field")(17,"label",34),k(18,9),r(),_(19,"input",35),r(),a(20,"spk-select",36),_(21,"input",37),M(22,so,2,2,"spk-option",38,I),r()(),a(24,"app-toggle-card",39),j(25,40),k(26,10),W(),a(27,"div",41)(28,"spk-toggle",21),h(29,11),_(30,"input",42),D(),r(),a(31,"spk-toggle",21),h(32,12),_(33,"input",43),D(),r(),a(34,"spk-toggle",21),h(35,13),_(36,"input",44),D(),r(),a(37,"spk-toggle",21),h(38,14),_(39,"input",45),D(),r(),a(40,"spk-toggle",21),h(41,15),_(42,"input",46),D(),r(),a(43,"spk-toggle",21),h(44,16),_(45,"input",47),D(),r(),a(46,"spk-toggle",21),h(47,17),_(48,"input",48),D(),r()()(),W()}if(e&2){let t=p();s(20),c("displayFn",t.displayFn),s(2),v(t.unitOptions),s(2),c("disallowToggle",!0)}}var Y=new oe,Qt=[{key:"s",label:$localize`Seconds`},{key:"m",label:$localize`Minutes`},{key:"h",label:$localize`Hours`},{key:"D",label:$localize`Days`},{key:"W",label:$localize`Weeks`},{key:"M",label:$localize`Months`},{key:"Y",label:$localize`Years`}],Yt=(e={autoRun:!1,nextTime:{time:"13:00",date:new Date().toISOString().split("T")[0]},runAgain:{repeatValue:1,repeatUnit:"D",allowedDays:{mon:!1,tue:!1,wed:!1,thu:!1,fri:!1,sat:!1,sun:!1}}})=>Y.group({autoRun:Y.control(e.autoRun),nextTime:Y.group({time:Y.control(e.nextTime.time),date:Y.control(e.nextTime.date)}),runAgain:Y.group({repeatValue:Y.control(e.runAgain.repeatValue),repeatUnit:Y.control(e.runAgain.repeatUnit),allowedDays:Y.group({mon:Y.control(e.runAgain.allowedDays.mon),tue:Y.control(e.runAgain.allowedDays.tue),wed:Y.control(e.runAgain.allowedDays.wed),thu:Y.control(e.runAgain.allowedDays.thu),fri:Y.control(e.runAgain.allowedDays.fri),sat:Y.control(e.runAgain.allowedDays.sat),sun:Y.control(e.runAgain.allowedDays.sun)})})}),xt=class e{#e=$(ue);#t=$(re);#o=$(De);formRef=fe.required("formRef");scheduleForm=this.#e.scheduleForm;scheduleFormSignal=this.#e.scheduleFormSignal;unitOptions=Qt;displayFn(n){let t=Qt.find(o=>o.key===n);return t?`${t.label}`:""}goBack(){this.#t.navigate(["source-data"],{relativeTo:this.#o.parent})}next(){this.#t.navigate(["options"],{relativeTo:this.#o.parent})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=ne({type:e,selectors:[["app-schedule"]],viewQuery:function(t,o){t&1&&Se(o.formRef,ao,5),t&2&&Te()},decls:18,vars:2,consts:()=>{let n;n=$localize`Schedule`;let t;t=$localize` Automatically run backups ${"\uFFFD#7\uFFFD\uFFFD/#7\uFFFD"}:TAG_INPUT:`;let o;o=$localize`If a date was missed, the job will run as soon as possible.`;let i;i=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let l;l=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let u;u=$localize`Next time`;let N;N=$localize`Run again every`;let w;w=$localize`Allowed days`;let y;y=$localize` Monday ${"\uFFFD#30\uFFFD\uFFFD/#30\uFFFD"}:TAG_INPUT:`;let Z;Z=$localize` Tuesday ${"\uFFFD#33\uFFFD\uFFFD/#33\uFFFD"}:TAG_INPUT:`;let J;J=$localize` Wednesday ${"\uFFFD#36\uFFFD\uFFFD/#36\uFFFD"}:TAG_INPUT:`;let L;L=$localize` Thursday ${"\uFFFD#39\uFFFD\uFFFD/#39\uFFFD"}:TAG_INPUT:`;let ee;ee=$localize` Friday ${"\uFFFD#42\uFFFD\uFFFD/#42\uFFFD"}:TAG_INPUT:`;let te;te=$localize` Saturday ${"\uFFFD#45\uFFFD\uFFFD/#45\uFFFD"}:TAG_INPUT:`;let H;return H=$localize` Sunday ${"\uFFFD#48\uFFFD\uFFFD/#48\uFFFD"}:TAG_INPUT:`,[["formRef",""],["timeRef",""],["dateRef",""],n,t,o,i,l,u,N,w,y,Z,J,L,ee,te,H,[3,"submit","formGroup"],[1,"title-30"],[1,"toggle-wrap"],[1,"raised","primary"],["type","checkbox","formControlName","autoRun"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["formGroupName","nextTime",1,"row-inputs"],["for","time"],["type","time","id","time","formControlName","time",3,"focus"],["suffix",""],["for","date"],["type","date","id","date","formControlName","date",3,"focus"],["formGroupName","runAgain"],[1,"row-inputs"],["for","repeatValue"],["type","number","id","repeatValue","formControlName","repeatValue"],[3,"displayFn"],["type","text","id","repeatUnit","formControlName","repeatUnit"],[3,"value"],["formGroupName","allowedDays",3,"disallowToggle"],["title",""],[1,"days-wrap"],["type","checkbox","formControlName","mon"],["type","checkbox","formControlName","tue"],["type","checkbox","formControlName","wed"],["type","checkbox","formControlName","thu"],["type","checkbox","formControlName","fri"],["type","checkbox","formControlName","sat"],["type","checkbox","formControlName","sun"]]},template:function(t,o){if(t&1){let i=O();a(0,"form",18,0),f("submit",function(){return S(i),T(o.next())}),a(2,"h3",19),k(3,3),r(),a(4,"div",20)(5,"spk-toggle",21),h(6,4),_(7,"input",22),D(),r(),a(8,"p"),k(9,5),r()(),F(10,lo,49,2),a(11,"div",23)(12,"button",24),f("click",function(){return S(i),T(o.goBack())}),h(13,6),_(14,"spk-icon"),D(),r(),a(15,"button",25),h(16,7),_(17,"spk-icon"),D(),r()()()}if(t&2){let i;c("formGroup",o.scheduleForm),s(10),g((i=o.scheduleFormSignal())!=null&&i.autoRun?10:-1)}},dependencies:[Oe,Pe,ae,be,Re,se,ye,Ne,Ae,Ge,pe,me,ce,Le,le,Ve,Ue],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.toggle-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.days-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function po(e,n){if(e&1&&(a(0,"spk-option",2),m(1),r()),e&2){let t=n.$implicit;c("value",t.value),s(),B(t.key)}}function co(e,n){if(e&1&&(a(0,"spk-option",2),m(1),r()),e&2){let t=n.$implicit;c("value",t.value),s(),B(t.key)}}function mo(e,n){if(e&1){let t=O();a(0,"spk-select",0)(1,"input",5),f("ngModelChange",function(i){S(t);let l=p(2);return T(l.updateStateExpression(i))}),r(),M(2,co,2,2,"spk-option",2,I),r()}if(e&2){let t,o=p(2);c("hideClearButton",!0)("displayFn",o.displayFn),s(),c("ngModel",(t=o.pathState())==null?null:t.expression),s(),v(o.fileGroupOptions())}}function _o(e,n){if(e&1){let t=O();a(0,"spk-form-field")(1,"input",5),f("ngModelChange",function(i){S(t);let l=p(2);return T(l.updateStateExpression(i))}),r()()}if(e&2){let t,o=p(2);s(),c("ngModel",(t=o.pathState())==null?null:t.expression)}}function uo(e,n){if(e&1){let t=O();a(0,"spk-select",0)(1,"input",1),f("ngModelChange",function(i){S(t);let l=p();return T(l.updateStateType(i))}),r(),M(2,po,2,2,"spk-option",2,I),r(),F(4,mo,4,3,"spk-select",0)(5,_o,2,1,"spk-form-field"),a(6,"div",3),f("click",function(){S(t);let i=p();return T(i.removeFilter())}),a(7,"spk-icon",4),m(8,"x-circle"),r()()}if(e&2){let t,o,i=p();c("hideClearButton",!0)("displayFn",i.displayFn),s(),c("ngModel",(t=i.pathState())==null?null:t.type),s(),v(i.expressionOptions()),s(2),g(((o=i.pathState())==null?null:o.type)==="-FileGroup"||((o=i.pathState())==null?null:o.type)==="+FileGroup"?4:5)}}var Zt=[{key:"Excludes folders where name contains",value:"-FolderNameIncludes"},{key:"Excludes folder",value:"-Folder"},{key:"Excludes files where name contains",value:"-FileNameIncludes"},{key:"Excludes file extension",value:"-Extension"},{key:"Excludes files where name matches regex",value:"-Regex"},{key:"Includes files where name matches regex",value:"+Regex"},{key:"Excludes file group",value:"-FileGroup"},{key:"Includes expression",value:"+Expression"},{key:"Excludes expression",value:"-Expression"}],Fo=[{key:"Applications",value:"Applications"},{key:"CacheFiles",value:"Cache Files"},{key:"TemporaryFiles",value:"Temporary Files"},{key:"OperatingSystem",value:"Operating System"},{key:"SystemFiles",value:"System Files"},{key:"DefaultExcludes",value:"Standard Excludes"}],ht=class e{path=st.required();pathChange=tt();remove=tt();expressionOptions=A(Zt);fileGroupOptions=A(Fo);pathState=A(null);typeState=K(()=>{let n=this.pathState();return n?n.type:null});pathEffect=pt(()=>{let n=this.path(),t=n.slice(1),o=n.startsWith("-")?"-":"+";return t.startsWith("/")&&t.endsWith("/")?this.pathState.set({type:`${o}Folder`,path:t,expression:t}):t.startsWith("*")&&t.endsWith("*/")?this.pathState.set({type:`${o}FolderNameIncludes`,path:t,expression:t.slice(1,-2)}):t.startsWith("[.*")&&t.endsWith("[^\\/]*]")?this.pathState.set({type:`${o}FileNameIncludes`,path:t,expression:t.slice(3,-7)}):t.startsWith("{")&&t.endsWith("}")?this.pathState.set({type:`${o}FileGroup`,path:t,expression:t.slice(1,-1)}):t.startsWith("[")&&t.endsWith("]")?this.pathState.set({type:`${o}Regex`,path:t,expression:t.slice(1,-1)}):t.startsWith("*.")?this.pathState.set({type:`${o}Extension`,path:t,expression:t.slice(2)}):this.pathState.set({type:`${o}Expression`,path:t,expression:t})});updateStateType(n){this.pathState.update(t=>(t.type=n,t.path=this.#t(t),t)),this.#e()}updateStateExpression(n){this.pathState.update(t=>(t.expression=n,t.path=this.#t(t),t)),this.#e()}#e(){setTimeout(()=>this.pathChange.emit(this.pathState().path))}#t(n){let t=n.type.slice(0,1),o=n.type.slice(1);if(o==="Folder"){let i=n.expression.endsWith("/"),l=n.expression.startsWith("/");return i&&l?`${t}${n.expression}`:i?`${t}${n.expression}/`:l?`${t}/${n.expression}`:`${t}/${n.expression}/`}return o==="FolderNameIncludes"?`${t}*${n.expression}*/`:o==="FileNameIncludes"?`${t}[.*${n.expression}[^\\/]*]`:o==="FileGroup"?`${t}{${n.expression}}`:o==="Regex"?`${t}[${n.expression}]`:o==="Extension"?`${t}*.${n.expression}`:`${t}${n.expression}`}removeFilter(){this.remove.emit()}displayFn(n){let t=Zt.find(o=>o.value===n);return t?t.key:""}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=ne({type:e,selectors:[["app-filter"]],inputs:{path:[1,"path"]},outputs:{pathChange:"pathChange",remove:"remove"},decls:1,vars:1,consts:()=>{let n;return n=$localize`Select an option...`,[[3,"hideClearButton","displayFn"],["type","text","placeholder",n,3,"ngModelChange","ngModel"],[3,"value"],[1,"filter-removal",3,"click"],[1,"spk-primary"],["type","text",3,"ngModelChange","ngModel"]]},template:function(t,o){t&1&&F(0,uo,9,4),t&2&&g(o.pathState()?0:-1)},dependencies:[dt,ae,se,Ut,me,ce,le,pe],styles:["[_nghost-%COMP%]{display:grid;grid-template-columns:13.125rem 1fr 1.875rem;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] spk-select[_ngcontent-%COMP%]{--miw: initial}[_nghost-%COMP%] .filter-removal[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;flex:0 0}"],changeDetection:0})};var go=["formRef"];function Co(e,n){if(e&1){let t=O();a(0,"app-filter",42),f("pathChange",function(i){let l=S(t).$index,u=p(2);return T(u.patchPathAt(i,l))})("remove",function(){let i=S(t).$index,l=p(2);return T(l.removePathAt(i))}),r()}if(e&2){let t=n.$implicit;c("path",t)}}function fo(e,n){if(e&1&&M(0,Co,1,1,"app-filter",41,I),e&2){let t=p();v(t.pathArray())}}function So(e,n){if(e&1&&(a(0,"spk-option",45),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),B(t)}}function To(e,n){if(e&1&&(a(0,"div",40)(1,"spk-form-field"),_(2,"input",43),r(),a(3,"spk-select"),_(4,"input",44),M(5,So,2,2,"spk-option",45,I),r()()),e&2){let t=p();s(5),v(t.sizeOptions())}}var ve=new oe,ho=["Bytes","KB","MB","GB","TB","PB"],Jt=(e={path:"",filters:[],excludes:{hidden:!1,system:!1,temporary:!1,filesLargerThan:null}})=>ve.group({path:ve.control(e.path),excludes:ve.group({hidden:ve.control(e.excludes.hidden),system:ve.control(e.excludes.system),temporary:ve.control(e.excludes.temporary),filesLargerThan:ve.group({size:ve.control(null),unit:ve.control(null)})})}),$t=class e{#e=$(ue);#t=$(re);#o=$(De);formRef=fe.required("formRef");sourceDataForm=this.#e.sourceDataForm;sourceDataFormSignal=this.#e.sourceDataFormSignal;newPathCtrl=new _t("");filesLargerThan=K(()=>this.sourceDataFormSignal()?.excludes?.filesLargerThan?.size!==null);sizeOptions=A(ho);pathSignal=Q(this.sourceDataForm.controls.path.valueChanges);pathArray=K(()=>this.pathSignal()?.split("\0").filter(n=>n.startsWith("-")||n.startsWith("+"))??[]);addFilter(n="-*"){let t=this.sourceDataForm.controls.path.value;this.sourceDataForm.controls.path.setValue(`${t}\0${n}`)}patchPathAt(n,t){let i=this.sourceDataForm.controls.path.value.split("\0").filter(u=>!u.startsWith("-")&&!u.startsWith("+")).join("\0"),l=this.pathArray().map((u,N)=>N===t?`${n}`:`${u}`).join("\0");this.sourceDataForm.controls.path.setValue(`${i}\0${l}`)}removePathAt(n){let o=this.sourceDataForm.controls.path.value.split("\0").filter(l=>!l.startsWith("-")&&!l.startsWith("+")).join("\0"),i=this.pathArray().filter((l,u)=>u!==n).join("\0");this.sourceDataForm.controls.path.setValue(`${o}\0${i}`)}getPath(){return this.sourceDataForm.value.path??null}toggleFilesLargerThan(){this.sourceDataForm.controls.excludes.value.filesLargerThan?.size===null?this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:50,unit:"MB"}):this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:null,unit:null})}addNewPath(){let n=this.sourceDataForm.controls.path.value;this.sourceDataForm.controls.path.setValue(`${n}\0${this.newPathCtrl.value}`),this.newPathCtrl.setValue("")}goBack(){this.#t.navigate(["destination"],{relativeTo:this.#o.parent})}next(){this.#t.navigate(["schedule"],{relativeTo:this.#o.parent})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=ne({type:e,selectors:[["app-source-data"]],viewQuery:function(t,o){t&1&&Se(o.formRef,go,5),t&2&&Te()},decls:55,vars:12,consts:()=>{let n;n=$localize`Path`;let t;t=$localize`Add a direct path`;let o;o=$localize`Hidden files`;let i;i=$localize`System files`;let l;l=$localize`Temporary files`;let u;u=$localize`Source Data`;let N;N=$localize`Folder path`;let w;w=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let y;y=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let Z;Z=$localize`Source Data`;let J;J=$localize`Add Path`;let L;L=$localize`Add a path directly from your machine.`;let ee;ee=$localize`Filters`;let te;te=$localize`Customize your filters.`;let H;H=$localize`Add filter`;let d;d=$localize`Exclude`;let C;C=$localize`Choose if there’s any files you want to exclude.`;let G;G=$localize` Hidden files ${"\uFFFD#45\uFFFD\uFFFD/#45\uFFFD"}:TAG_INPUT:`;let x;x=$localize` System files ${"\uFFFD#48\uFFFD\uFFFD/#48\uFFFD"}:TAG_INPUT:`;let ie;ie=$localize` Temporary files ${"\uFFFD#51\uFFFD\uFFFD/#51\uFFFD"}:TAG_INPUT:`;let ge;ge=$localize` Files larger than `;let de;return de=$localize`Select an option...`,[["formRef",""],u,N,w,y,Z,J,L,ee,te,H,d,C,G,x,ie,ge,[3,"submit","formGroup"],[1,"left"],[1,"title-30"],[1,"fill",3,"multiSelect","startingPath","showFiles"],["for","path"],["type","text","id","path","tabindex","4","placeholder",n,"formControlName","path"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[1,"right"],[3,"disallowToggle"],["title",""],["description",""],[1,"row-inputs"],["type","text","placeholder",t,3,"formControl"],["spk-button","","type","button",1,"raised","primary",3,"click"],["type","button","spk-button","","action","",3,"click"],["formGroupName","excludes",3,"disallowToggle"],[1,"raised","primary"],["type","checkbox","placeholder",o,"formControlName","hidden"],["type","checkbox","placeholder",i,"formControlName","system"],["type","checkbox","placeholder",l,"formControlName","temporary"],[1,"raised","primary",3,"click"],["formGroupName","filesLargerThan",1,"row-inputs"],[3,"path"],[3,"pathChange","remove","path"],["type","number","formControlName","size"],["type","text","formControlName","unit","placeholder",de],[3,"value"]]},template:function(t,o){if(t&1){let i=O();a(0,"form",17,0),f("submit",function(){return S(i),T(o.next())}),a(2,"div",18)(3,"h3",19),k(4,1),r(),a(5,"app-file-tree",20)(6,"label",21),k(7,2),r(),_(8,"input",22),r(),a(9,"div",23)(10,"button",24),f("click",function(){return S(i),T(o.goBack())}),h(11,3),_(12,"spk-icon"),D(),r(),a(13,"button",25),h(14,4),_(15,"spk-icon"),D(),r()()(),a(16,"div",26)(17,"h3",19),k(18,5),r(),a(19,"app-toggle-card",27),j(20,28),k(21,6),W(),a(22,"p",29),k(23,7),r(),a(24,"div",30)(25,"spk-form-field"),_(26,"input",31),r(),a(27,"button",32),f("click",function(){return S(i),T(o.addNewPath())}),a(28,"spk-icon"),m(29,"plus"),r()()()(),a(30,"app-toggle-card",27),j(31,28),k(32,8),W(),a(33,"p",29),k(34,9),r(),a(35,"button",33),f("click",function(){return S(i),T(o.addFilter())}),k(36,10),r(),F(37,fo,2,0),r(),a(38,"app-toggle-card",34),j(39,28),k(40,11),W(),a(41,"p",29),k(42,12),r(),a(43,"spk-toggle",35),h(44,13),_(45,"input",36),D(),r(),a(46,"spk-toggle",35),h(47,14),_(48,"input",37),D(),r(),a(49,"spk-toggle",35),h(50,15),_(51,"input",38),D(),r(),a(52,"spk-toggle",39),f("click",function(){return S(i),T(o.toggleFilesLargerThan())}),k(53,16),r(),F(54,To,7,0,"div",40),r()()()}if(t&2){let i;c("formGroup",o.sourceDataForm),s(5),c("multiSelect",!0)("startingPath",o.getPath())("showFiles",!0),s(14),c("disallowToggle",!0),s(7),c("formControl",o.newPathCtrl),s(4),c("disallowToggle",!0),s(7),g((i=o.pathSignal())!=null&&i.length?37:-1),s(),c("disallowToggle",!0),s(14),$e("active",o.filesLargerThan()),s(2),g(o.filesLargerThan()?54:-1)}},dependencies:[dt,Pe,ae,be,Re,se,ye,Oe,ut,Ne,Ae,Ge,pe,ce,le,Ve,me,Le,Qe,Ue,ht],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;flex:1 0;overflow:hidden}form[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;flex:1 0;overflow:hidden}.right[_ngcontent-%COMP%], .left[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:1.5rem}.left[_ngcontent-%COMP%]{padding:2.5rem;overflow:hidden;border-right:1px solid var(--base-level-40)}.right[_ngcontent-%COMP%]{padding:2.5rem 1.5rem;overflow:auto}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.row-inputs[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr min-content;gap:.5rem}"],changeDetection:0})};var Fe=new oe,ue=class e{#e=$(re);#t=$(mt);#o=$(We);#i=$(ft);generalForm=Wt();sourceDataForm=Jt();scheduleForm=Yt();destinationForm=en();optionsForm=qt();isDraft=A(!1);backupId=A(null);isSubmitting=A(!1);finishedLoading=A(!1);backupDefaults=A(null);isNew=K(()=>this.backupId()==="new");selectedOptions=A([]);selectedAdvancedFormPair=A([]);destinationFormPair=A({oauthField:null,custom:[],dynamic:[],advanced:[]});notSelectedAdvancedFormPair=K(()=>{let n=this.destinationFormPair()?.advanced??[],t=this.selectedAdvancedFormPair()??[];return n.filter(o=>t.findIndex(i=>i.name===o.name)===-1)});selectedHttpOptions=A([]);notSelectedHttpOptions=K(()=>{let n=this.httpOptions(),t=this.selectedHttpOptions()??[];return n.filter(o=>t.findIndex(i=>i.name===o.name)===-1)});sourceDataFormSignal=Q(this.sourceDataForm.valueChanges);destinationFormSignal=Q(this.destinationForm.valueChanges);generalFormSignal=Q(this.generalForm.valueChanges);encryptionFieldSignal=Q(this.generalForm.controls.encryption.valueChanges);scheduleFormSignal=Q(this.scheduleForm.valueChanges);destinationOptions=K(()=>this.#t.backendModules()??[]);httpOptions=K(()=>this.#t.systemInfo()?.GenericModules?.find(n=>n.Key==="http-options")?.Options?.map(this.#n)??[]);advancedOptions=K(()=>this.#t.systemInfo()?.Options?.map(this.#n)??[]);#n(n){return{name:n.Name,type:n.Type,shortDescription:n.ShortDescription??void 0,longDescription:n.LongDescription??void 0,options:n.ValidValues}}encryptionOptions=K(()=>{let n=this.#t.systemInfo()?.EncryptionModules??[];return[Ot,...n]});nonSelectedOptions=K(()=>this.advancedOptions().sort((n,t)=>n?.name&&t?.name?n?.name.localeCompare(t?.name):0).filter(n=>this.selectedOptions()?.findIndex(t=>t.name===n.name)===-1));addAdvancedFormPairByName(n,t,o){let i=this.notSelectedAdvancedFormPair().find(l=>l.name===n);i&&this.addAdvancedFormPair(i,t,o)}addHttpOptionByName(n,t,o){let i=this.notSelectedHttpOptions().find(l=>l.name===n);i&&this.addHttpOption(i,t,o)}addAdvancedFormPair(n,t,o){let i=this.destinationForm.controls.destinations.controls.at(t)?.controls.advanced,l=o??n.defaultValue;this.createFormField(i,n,l),this.selectedAdvancedFormPair.set([...this.selectedAdvancedFormPair(),n])}addHttpOption(n,t,o){let i=this.destinationForm.controls.destinations.controls.at(t)?.controls.advanced,l=o??n.defaultValue;this.createFormField(i,n,l),this.selectedHttpOptions.set([...this.selectedHttpOptions(),n])}removeAdvancedFormPair(n,t){this.destinationForm.controls.destinations.controls.at(t)?.controls.advanced.removeControl(n.name),this.selectedAdvancedFormPair().findIndex(i=>i.name===n.name)!==-1?this.selectedAdvancedFormPair.update(i=>(i=i.filter(l=>l.name!==n.name),i)):this.selectedHttpOptions.update(i=>(i=i.filter(l=>l.name!==n.name),i))}removeHttpOption(n,t){this.destinationForm.controls.destinations.controls.at(t)?.controls.advanced.removeControl(n.name),this.selectedHttpOptions.update(o=>(o=o.filter(i=>i.name!==n.name),o))}submit(){this.isSubmitting.set(!0);let n=this.#l(),t=this.backupId();t==="new"||!t||this.isDraft()?this.#o.postApiV1Backups({requestBody:n}).pipe(et(()=>this.isSubmitting.set(!1))).subscribe({next:o=>{console.log("submitted res",o),this.exit()},error:o=>{console.error("submitted error",o)}}):this.#o.putApiV1BackupById({id:t,requestBody:n}).pipe(et(()=>this.isSubmitting.set(!1))).subscribe({next:o=>{console.log("submitted res",o),this.exit()},error:o=>{console.error("submitted error",o)}})}exit(){this.#c(),this.#e.navigate(["/"])}updateFieldsFromTargetUrl(n){this.#r(),setTimeout(()=>{this.#s(n)})}#r(){this.destinationFormPair.set({oauthField:null,custom:[],dynamic:[],advanced:[]}),this.selectedAdvancedFormPair.set([]),this.selectedHttpOptions.set([]),this.destinationForm.controls.destinations.clear(),this.destinationForm.reset()}mapSourceDataToForm(n){let t=n.Sources??"",o=n.Filters?.map(y=>`${y.Include?"":"-"}${y.Expression}`)??[],i=n.Settings?.find(y=>y.Name==="--exclude-files-attributes")?.Value??"",l=n.Settings?.find(y=>y.Name==="--skip-files-larger-than")??null,u=l?.Value.replace(/[0-9]/g,"")??null,N=l?.Value.replace(/[^0-9]/g,"")??null,w={path:[...t,...o].join("\0"),excludes:{hiddenFiles:i.includes("hidden"),systemFiles:i.includes("system"),tempFiles:i.includes("temporary"),filesLargerThan:u&&N?{size:parseInt(N),unit:u.toUpperCase()}:null}};this.sourceDataForm.patchValue(w)}mapDestinationToForm(n){let t=n.TargetURL?Nt(n.TargetURL):null;t&&this.addDestinationFormGroup(t.destinationType,{custom:t.custom,dynamic:t.dynamic,advanced:t.advanced},!0)}#s(n){let t=Nt(n);t&&this.addDestinationFormGroup(t.destinationType,{custom:t.custom,dynamic:t.dynamic,advanced:t.advanced},!0)}mapGeneralToForm(n){let t=n.Settings?.find(l=>l.Name==="encryption-module"),o=t?.Value&&t.Value.length?t.Value:"",i={name:n.Name??"",description:n.Description??""};o&&o!==""&&(i.encryption=o),this.generalForm.patchValue(i)}mapScheduleToForm(n){if(!n){this.scheduleForm.patchValue({autoRun:!0});return}let t=this.#i.fromString(n.Repeat)??null,i={nextTime:this.#p(n.Time),runAgain:{repeatValue:t?.value??1,repeatUnit:t?.unit??"D",allowedDays:{mon:n.AllowedDays?.includes("mon")??!1,tue:n.AllowedDays?.includes("tue")??!1,wed:n.AllowedDays?.includes("wed")??!1,thu:n.AllowedDays?.includes("thu")??!1,fri:n.AllowedDays?.includes("fri")??!1,sat:n.AllowedDays?.includes("sat")??!1,sun:n.AllowedDays?.includes("sun")??!1}}};this.scheduleForm.patchValue(i)}mapOptionsToForms(n){let t=["--no-encryption","--exclude-files-attributes","--skip-files-larger-than"],o=this.advancedOptions();n.Settings?.forEach(i=>{if(i.Name==="encryption-module")return this.generalForm.controls.encryption.setValue(i.Value??"");if(!(i.Name&&t.includes(i.Name))){if(i.Name==="dblock-size"){let l=i.Value?.replace(/[^0-9]/g,""),u=i.Value?.replace(/[0-9]/g,"");return this.optionsForm.controls.remoteVolumeSize.setValue({size:l?parseInt(l):null,unit:u?u.toUpperCase():null})}if(i.Name&&i.Value){let l=o.find(u=>u.name===i.Name);if(!l)return;this.addOptionToFormGroup(l,i.Value)}}})}getCurrentTargetUrl(){return this.#a(this.destinationForm.controls.destinations)}#l(){let n=this.generalForm.value,t=this.optionsForm.value,o=this.scheduleForm.value,i=this.sourceDataForm.value,u=this.destinationForm.value.destinations?.length?this.#a(this.destinationForm.controls.destinations):[],N=null;o.runAgain?.repeatUnit&&o.runAgain?.repeatValue&&(N=this.#i.toString(o.runAgain.repeatValue,o.runAgain.repeatUnit));let w=o.runAgain?.allowedDays?Object.entries(o.runAgain?.allowedDays).filter(([d,C])=>C).map(([d,C])=>d):[],y=i.path?.split("\0")??[],Z=n.encryption===""?{Name:"--no-encryption",Value:"True"}:{Name:"encryption-module",Value:n.encryption??null},J=this.advancedOptions(),L=Object.entries(t.advancedOptions??{}).filter(([d,C])=>d&&C).map(([d,C])=>{let G=J.find(x=>x.name===d);return G?.type==="Size"?{Name:d,Value:`${C.size}${C.unit.toLowerCase()}`}:G?.type==="Integer"?{Name:d,Value:C.toString()}:G?.type==="Boolean"?{Name:d,Value:C.toString()}:{Name:d,Value:C}}),ee=[Z,...L],te=Object.entries(i.excludes??{}).filter(([d,C])=>C&&d!=="filesLargerThan").map(([d])=>d),H=i.excludes?.filesLargerThan;return te.length&&ee.push({Name:"--exclude-files-attributes",Value:te.join(",")}),H&&H.size!==null&&H.unit!==null&&ee.push({Name:"--skip-files-larger-than",Value:`${H.size}${H.unit}`}),{Backup:{Name:n.name,Description:n.description,TargetURL:u[0]??null,Sources:y.filter(d=>!d.startsWith("-")),Settings:ee,Filters:y.filter(d=>d.startsWith("-")).map((d,C)=>({Order:C,Include:!1,Expression:d.slice(1)}))},Schedule:o.autoRun?{Repeat:N,Time:o.nextTime?.date?new Date(`${o.nextTime.date}T${o.nextTime?.time||"00:00:00"}`).toISOString():null,AllowedDays:w}:null}}#a(n){return n.controls.map(t=>St(t.value))}#p(n){if(!n||n?.indexOf("T")===-1)return{time:n??"13:00"};let t=new Date(n),o={time:`${(""+t.getHours()).padStart(2,"0")}:${(""+t.getMinutes()).padStart(2,"0")}`};return n.indexOf("T")!==-1&&(o.date=t.toISOString().split("T")[0]),o}removeOptionFromFormGroup(n){let t=n.name;t&&(this.optionsForm.controls.advancedOptions.removeControl(t),this.selectedOptions.update(o=>(o=o.filter(i=>i.name!==t),o)))}addOptionToFormGroup(n,t){let o=this.optionsForm.controls.advancedOptions;this.createFormField(o,n,t??n.defaultValue),this.selectedOptions.update(i=>(i.push(n),i))}createFormField(n,t,o){if(t.type==="String"||t.type==="FileTree"||t.type==="FolderTree"||t.type==="Password"||t.type==="Enumeration"||t.type==="NonValidatedSelectableString"||t.type==="Path"){n.addControl(t.name,Fe.control(o));return}if(t.type==="Size"){let i=o.replace(/[0-9]/g,""),l=o.replace(/[^0-9]/g,"");n.addControl(t.name,Fe.group({size:Fe.control(l?parseInt(l):50),unit:Fe.control(i?i.toUpperCase():"MB")}));return}if(t.type==="Integer"){n.addControl(t.name,Fe.control(o?parseInt(o):0));return}if(t.type==="Boolean"){n.addControl(t.name,Fe.control(o==="true"));return}if(t.type==="Flags"){n.addControl(t.name,Fe.control(o??""));return}if(t.type==="Timespan"){n.addControl(t.name,Fe.control(o,[Ee.pattern(/([-+]?\d{1,3}[smhDWMY])+/)]));return}}addDestinationFormGroup(n,t,o=!1){let i=Ke.find(d=>d.customKey===n||d.key===n),l=i?.key,u=this.destinationOptions().find(d=>d.Key===l),N=this.httpOptions();if(!u||!u.Options)return;let w=i&&i.oauthField?i.oauthField:null,y=i&&i.customFields?i.customFields:{},Z=i&&i.dynamicFields?i.dynamicFields:[],J=i&&i.advancedFields?i.advancedFields:[],L=i&&i.ignoredAdvancedFields?i.ignoredAdvancedFields:[];this.destinationFormPair.set({oauthField:w,custom:[],dynamic:[],advanced:[]});let ee=Fe.group({}),te=Fe.group({}),H=Fe.group({});y&&Object.entries(y).forEach(([d,C],G)=>{let ge=C,{formElement:x}=ge,ie=Mt(ge,["formElement"]);ee.addControl(d,x(t?.custom[d])),this.destinationFormPair.update(de=>(de.custom.push(P({order:900+G},ie)),de))});for(let d=0;d<u.Options.length;d++){let C=u.Options[d];if(C.Deprecated)continue;let G=Z.find(x=>x===C.Name||x.name===C.Name);if(G){let x=G&&typeof G!="string",ie=x?G?.defaultValue??C.DefaultValue:C.DefaultValue,ge={name:C.Name,type:C.Type,shortDescription:C.ShortDescription??void 0,longDescription:C.LongDescription??void 0,options:C.ValidValues,order:900+d},de=x?P(P({},ge),G):ge,at=t?.dynamic[C.Name]??ie??C.DefaultValue;this.createFormField(te,de,at),this.destinationFormPair.update(je=>(je.dynamic.push(de),je))}else{if(L.find(Ce=>Ce===C.Name))continue;let ie=J.find(Ce=>Ce===C.Name||Ce.name===C.Name),ge=ie&&typeof ie!="string",de=t?.advanced[C.Name],U=de??C.DefaultValue,at={name:C.Name,type:C.Type,shortDescription:C.ShortDescription??void 0,longDescription:C.LongDescription??void 0,options:C.ValidValues,defaultValue:U,order:900+d},je=ge?P(P({},at),ie):at;o&&de&&(this.createFormField(H,je,U),this.selectedAdvancedFormPair.update(Ce=>(Ce.push(je),Ce))),this.destinationFormPair.update(Ce=>(Ce.advanced.push(je),Ce))}}for(let d=0;d<N.length;d++){let C=N[d],G=t?.advanced[C.name],x=G??C.defaultValue;o&&G&&(this.createFormField(H,C,x),this.selectedHttpOptions.update(ie=>(ie.push(C),ie)))}this.destinationFormPair.update(d=>({oauthField:d.oauthField,custom:d.custom.sort((C,G)=>C.order-G.order),dynamic:d.dynamic.sort((C,G)=>C.order-G.order),advanced:d.advanced.sort((C,G)=>C.order-G.order)})),this.destinationForm.controls.destinations.push(tn({key:i?.customKey??n,customGroup:ee,dynamicGroup:te,advancedGroup:H}))}#c(){this.generalForm.reset(),this.destinationForm.controls.destinations.clear(),this.destinationForm.reset(),this.sourceDataForm.reset(),this.scheduleForm.reset(),this.optionsForm.reset()}static \u0275fac=function(t){return new(t||e)};static \u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"})};var Do=["formRef"],Eo=(e,n,t,o)=>({index:e,formView:n,formGroupName:"custom",destinationType:t,oauthField:o}),Et=e=>({$implicit:e}),yo=(e,n,t,o)=>({index:e,formView:n,formGroupName:"dynamic",destinationType:t,oauthField:o}),Po=(e,n,t,o)=>({index:e,formView:n,formGroupName:"advanced",destinationType:t,oauthField:o}),No=(e,n,t,o)=>({index:e,formView:n,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:o}),Ao=()=>({maxWidth:"700px",width:"100%"});function Oo(e,n){e&1&&(h(0,2,2),_(1,"spk-icon"),D())}function ko(e,n){e&1&&k(0,2,3)}function xo(e,n){if(e&1){let t=O();h(0,2,1),a(1,"button",19),f("click",function(){S(t);let i=p();return T(i.testDestination())}),F(2,Oo,2,0)(3,ko,1,0),r(),D()}if(e&2){let t=p();s(),$e("success",t.successfulTest()),s(),g(t.successfulTest()?2:3)}}function $o(e,n){if(e&1){let t=O();a(0,"p",25),f("click",function(){S(t);let i=p();return T(i.removeDestinationFormGroup(i.destinationCount()-1))}),h(1,5),_(2,"span",26),D(),r()}}function Io(e,n){e&1&&(a(0,"p"),k(1,6),r())}function Mo(e,n){if(e&1){let t=O();a(0,"div",31),f("click",function(){let i=S(t).$implicit,l=p(2);return T(l.addDestinationFormGroup(i.key))}),a(1,"h3"),m(2),r(),a(3,"p"),m(4),r()()}if(e&2){let t=n.$implicit;s(2),B(t.displayName),s(2),B(t.description)}}function vo(e,n){if(e&1){let t=O();a(0,"button",32),f("click",function(){let i=S(t).$implicit,l=p(2);return T(l.addDestinationFormGroup(i.key))}),m(1),r()}if(e&2){let t=n.$implicit;s(),V(" ",t.displayName," ")}}function wo(e,n){if(e&1&&(a(0,"div",27),M(1,Mo,5,2,"div",28,I),r(),a(3,"spk-menu")(4,"button",29),k(5,7),r(),j(6,18),M(7,vo,2,1,"button",30,I),W(),r()),e&2){let t=p();s(),v(t.destinationTypeOptionsFocused()),s(6),v(t.destinationTypeOptionsNotFocused())}}function Ro(e,n){e&1&&ze(0)}function bo(e,n){if(e&1&&F(0,Ro,1,0,"ng-container",37),e&2){let t,o=n.$implicit,i=n.$index;p();let l=he(29),u=p();c("ngTemplateOutlet",l)("ngTemplateOutletContext",Xe(7,Et,it(2,Eo,i,o,(t=u.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,u.destinationFormPair().oauthField)))}}function Go(e,n){e&1&&ze(0)}function Vo(e,n){if(e&1&&F(0,Go,1,0,"ng-container",37),e&2){let t,o=n.$implicit,i=n.$index;p();let l=he(29),u=p();c("ngTemplateOutlet",l)("ngTemplateOutletContext",Xe(7,Et,it(2,yo,i,o,(t=u.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,u.destinationFormPair().oauthField)))}}function Lo(e,n){if(e&1){let t=O();h(0,8,1),a(1,"button",32),f("click",function(){let i=S(t).$implicit,l=p(2);return T(l.addAdvancedFormPair(i,0))}),r(),D()}if(e&2){let t=n.$implicit;s(),nt(t.name),ot(0)}}function Uo(e,n){e&1&&ze(0)}function Bo(e,n){if(e&1&&F(0,Uo,1,0,"ng-container",37),e&2){let t,o=n.$implicit,i=n.$index;p();let l=he(29),u=p();c("ngTemplateOutlet",l)("ngTemplateOutletContext",Xe(7,Et,it(2,Po,i,o,(t=u.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,u.destinationFormPair().oauthField)))}}function Ko(e,n){if(e&1){let t=O();h(0,9,1),a(1,"button",32),f("click",function(){let i=S(t).$implicit,l=p(2);return T(l.addHttpOption(i,0))}),r(),D()}if(e&2){let t=n.$implicit;s(),nt(t.name),ot(0)}}function zo(e,n){e&1&&ze(0)}function Xo(e,n){if(e&1&&F(0,zo,1,0,"ng-container",37),e&2){let t,o=n.$implicit,i=n.$index;p();let l=he(29),u=p();c("ngTemplateOutlet",l)("ngTemplateOutletContext",Xe(7,Et,it(2,No,i,o,(t=u.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,u.destinationFormPair().oauthField)))}}function Ho(e,n){if(e&1&&(a(0,"spk-tooltip",48)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function jo(e,n){if(e&1&&(a(0,"app-file-tree",40)(1,"label",47),m(2),F(3,Ho,3,1,"spk-tooltip",48),r(),_(4,"input",49),r()),e&2){let t,o=p().$implicit,i=p(2);c("startingPath",i.getFormFieldValue(0,o.formGroupName,o.formView.name))("accepts",o.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),z("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),z("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name)}}function Wo(e,n){if(e&1&&(a(0,"spk-tooltip",48)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function qo(e,n){if(e&1&&(a(0,"app-file-tree",41)(1,"label",47),m(2),F(3,Wo,3,1,"spk-tooltip",48),r(),_(4,"input",49),r()),e&2){let t,o=p().$implicit,i=p(2);c("startingPath",i.getFormFieldValue(0,o.formGroupName,o.formView.name)),s(),z("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),z("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name)}}function Qo(e,n){if(e&1&&(a(0,"spk-tooltip",48)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Yo(e,n){e&1&&(a(0,"spk-icon",51),m(1,"link"),r())}function Zo(e,n){e&1&&(a(0,"spk-icon",51),m(1,"envelope"),r())}function Jo(e,n){e&1&&(a(0,"spk-icon",51),m(1,"textbox"),r())}function ei(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",47),m(2),F(3,Qo,3,1,"spk-tooltip",48),r(),_(4,"input",50),F(5,Yo,2,0,"spk-icon",51)(6,Zo,2,0,"spk-icon",51)(7,Jo,2,0,"spk-icon",51),r()),e&2){let t,o=p().$implicit;s(),z("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),z("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name),c("type",o.formView.type==="Email"?"email":"text"),s(),g(o.formView.type==="Path"?5:o.formView.type==="Email"?6:7)}}function ti(e,n){if(e&1){let t=O();a(0,"span",55),f("click",function(){S(t);let i=p(2).$implicit,l=p(2);return T(l.oauthStartTokenCreation(i.destinationType))}),m(1,"AuthID"),r()}}function ni(e,n){e&1&&(a(0,"spk-icon",51),m(1,"password"),r())}function oi(e,n){if(e&1){let t=O();a(0,"spk-icon",56),f("click",function(){S(t);let i=p(2).$implicit;return T(i.formView.showPassword=!i.formView.showPassword)}),m(1," eye "),r()}}function ii(e,n){if(e&1){let t=O();a(0,"spk-icon",56),f("click",function(){S(t);let i=p(2).$implicit;return T(i.formView.showPassword=!i.formView.showPassword)}),m(1," eye-slash "),r()}}function ri(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",47),m(2),r(),_(3,"input",52),F(4,ti,2,0,"span",53)(5,ni,2,0,"spk-icon",51)(6,oi,2,0,"spk-icon",54)(7,ii,2,0,"spk-icon",54),r()),e&2){let t,o=p().$implicit;s(),z("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),z("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name),c("type",o.formView.showPassword?"text":"password"),s(),g(o.oauthField===o.formView.name?4:5),s(2),g(o.formView.showPassword?6:7)}}function ai(e,n){if(e&1&&(a(0,"spk-tooltip",48)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function si(e,n){if(e&1&&(a(0,"spk-option",57),m(1),r()),e&2){let t=n.$implicit;c("value",t.value),s(),yt(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function li(e,n){if(e&1&&M(0,si,2,3,"spk-option",57,I),e&2){let t=p(2).$implicit,o=p(2);v(t.formView.loadOptions(o.injector)())}}function pi(e,n){if(e&1&&(a(0,"spk-option",57),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),B(t)}}function ci(e,n){if(e&1&&M(0,pi,2,2,"spk-option",57,I),e&2){let t=p(2).$implicit;v(t.formView.options)}}function mi(e,n){if(e&1&&(a(0,"spk-select",42)(1,"label",47),m(2),F(3,ai,3,1,"spk-tooltip",48),r(),_(4,"input",49),F(5,li,2,0)(6,ci,2,0),r()),e&2){let t,o=p().$implicit;c("hideClearButton",!0),s(),z("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),z("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name),s(),g(o.formView.loadOptions?5:-1),s(),g(o.formView.options?6:-1)}}function _i(e,n){if(e&1&&(a(0,"spk-tooltip",48)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function ui(e,n){if(e&1&&(a(0,"spk-option",57),m(1),r()),e&2){let t=n.$implicit;c("value",t.value),s(),yt(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function di(e,n){if(e&1&&M(0,ui,2,3,"spk-option",57,I),e&2){let t=p(2).$implicit,o=p(2);v(t.formView.loadOptions(o.injector)())}}function Fi(e,n){if(e&1&&(a(0,"spk-option",57),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),B(t)}}function gi(e,n){if(e&1&&M(0,Fi,2,2,"spk-option",57,I),e&2){let t=p(2).$implicit;v(t.formView.options)}}function Ci(e,n){if(e&1&&(a(0,"spk-select",43)(1,"label",47),m(2),F(3,_i,3,1,"spk-tooltip",48),r(),_(4,"input",58),F(5,di,2,0)(6,gi,2,0),r()),e&2){let t,o=p().$implicit;c("isFreeText",!0),s(),z("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),z("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name),s(),g(o.formView.loadOptions?5:-1),s(),g(o.formView.options?6:-1)}}function fi(e,n){if(e&1&&(a(0,"spk-tooltip",48)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Si(e,n){if(e&1&&(a(0,"spk-option",57),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),B(t)}}function Ti(e,n){if(e&1&&(a(0,"div",44)(1,"label",47),m(2),F(3,fi,3,1,"spk-tooltip",48),r(),a(4,"div",59)(5,"spk-form-field"),_(6,"input",60),a(7,"spk-icon",51),m(8,"resize"),r()(),a(9,"spk-select"),_(10,"label")(11,"input",61),M(12,Si,2,2,"spk-option",57,I),r()()()),e&2){let t,o=p().$implicit,i=p(2);c("formGroupName",o.formView.name),s(),z("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(3),z("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(6),v(i.sizeOptions())}}function hi(e,n){if(e&1&&(a(0,"spk-tooltip",48)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Di(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",47),m(2),F(3,hi,3,1,"spk-tooltip",48),r(),_(4,"input",62),a(5,"spk-icon",51),m(6,"numpad"),r()()),e&2){let t,o=p().$implicit;s(),z("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),z("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name)}}function Ei(e,n){if(e&1&&(a(0,"spk-tooltip",48)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function yi(e,n){if(e&1&&(a(0,"spk-toggle",45)(1,"label",47),m(2),F(3,Ei,3,1,"spk-tooltip",48),r(),_(4,"input",63),r()),e&2){let t,o=p().$implicit;s(),z("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),z("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name)}}function Pi(e,n){if(e&1&&(a(0,"spk-tooltip",48)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Ni(e,n){e&1&&(a(0,"spk-option",65),m(1,"None"),r()),e&2&&c("value","None")}function Ai(e,n){if(e&1&&(a(0,"spk-option",57),m(1),_(2,"spk-checkbox",66),r()),e&2){let t=p().$implicit;c("value",t),s(),V(" ",t," ")}}function Oi(e,n){if(e&1&&F(0,Ni,2,1,"spk-option",65)(1,Ai,3,2,"spk-option",57),e&2){let t=n.$implicit;g(t==="None"?0:1)}}function ki(e,n){if(e&1&&(a(0,"spk-select",46)(1,"label",47),m(2),F(3,Pi,3,1,"spk-tooltip",48),r(),_(4,"input",64),M(5,Oi,2,1,null,null,I),r()),e&2){let t,o=p().$implicit;c("selectMultiple",!0),s(),z("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),X("formControlName",o.formView.name),s(),v(o.formView.options)}}function xi(e,n){if(e&1&&(a(0,"spk-tooltip",48)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function $i(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",47),m(2),F(3,xi,3,1,"spk-tooltip",48),r(),_(4,"input",49),r()),e&2){let t,o=p().$implicit;s(),z("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),g(o.formView.longDescription?3:-1),s(),z("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),X("formControlName",o.formView.name)}}function Ii(e,n){if(e&1){let t=O();a(0,"button",67),f("click",function(){S(t);let i=p().$implicit,l=p(2);return T(l.removeFormView(i.formView,0))}),a(1,"spk-icon"),m(2,"x-circle"),r()()}}function Mi(e,n){if(e&1&&(a(0,"div",38),j(1,39),F(2,jo,5,16,"app-file-tree",40)(3,qo,5,12,"app-file-tree",41)(4,ei,8,13,"spk-form-field")(5,ri,8,13,"spk-form-field")(6,mi,7,14,"spk-select",42)(7,Ci,7,14,"spk-select",43)(8,Ti,14,11,"div",44)(9,Di,7,11,"spk-form-field")(10,yi,5,11,"spk-toggle",45)(11,ki,7,8,"spk-select",46)(12,$i,5,11,"spk-form-field"),W(),F(13,Ii,3,0,"button",29),r()),e&2){let t=n.$implicit;$e("single-field",t.formGroupName!=="advanced"),s(),c("formGroupName",t.formGroupName),s(),g(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),s(11),g(t.formGroupName==="advanced"?13:-1)}}function vi(e,n){if(e&1&&(j(0,20)(1,33),M(2,bo,1,9,"ng-container",null,I),M(4,Vo,1,9,"ng-container",null,I),a(6,"app-toggle-card",34),j(7,35),h(8,8),a(9,"spk-menu")(10,"button",36),_(11,"spk-icon"),r(),j(12,18),M(13,Lo,2,1,"button",30,I),W(),r(),D(),W(),M(15,Bo,1,9,"ng-container",null,I),r(),a(17,"app-toggle-card",34),j(18,35),h(19,9),a(20,"spk-menu")(21,"button",36),_(22,"spk-icon"),r(),j(23,18),M(24,Ko,2,1,"button",30,I),W(),r(),D(),W(),M(26,Xo,1,9,"ng-container",null,I),r(),F(28,Mi,14,5,"ng-template",null,1,lt),W()()),e&2){let t=p();s(2),v(t.destinationFormPair().custom),s(2),v(t.destinationFormPair().dynamic),s(2),c("disallowToggle",!0),s(4),c("disabled",t.notSelectedAdvancedFormPair().length===0),s(3),v(t.notSelectedAdvancedFormPair()),s(2),v(t.selectedAdvancedFormPair()),s(2),c("disallowToggle",!0),s(4),c("disabled",t.notSelectedHttpOptions().length===0),s(3),v(t.notSelectedHttpOptions()),s(2),v(t.selectedHttpOptions())}}function wi(e,n){if(e&1){let t=O();a(0,"spk-dialog",68),bt("isOpenChange",function(i){S(t);let l=p();return Rt(l.targetUrlDialogOpen,i)||(l.targetUrlDialogOpen=i),T(i)}),a(1,"header",69)(2,"h2"),k(3,10),r(),a(4,"spk-alert",70),k(5,11),r()(),a(6,"div",71)(7,"spk-form-field"),_(8,"textarea",72),r()(),a(9,"footer",73)(10,"button",22),f("click",function(){S(t);let i=p();return T(i.closeTargetUrlDialog(!1))}),m(11,"Cancel"),r(),a(12,"button",74),f("click",function(){S(t);let i=p();return T(i.closeTargetUrlDialog(!0))}),h(13,12),_(14,"spk-icon"),D(),r()()()}if(e&2){let t=p();wt("isOpen",t.targetUrlDialogOpen),c("options",Gt(3,Ao)),s(8),c("formControl",t.targetUrlCtrl)}}var Ri=["Bytes","KB","MB","GB","TB","PB"],Dt=new oe,en=(e={destinations:[]})=>Dt.group({destinations:Dt.array(e.destinations)}),tn=({key:e,customGroup:n,dynamicGroup:t,advancedGroup:o})=>Dt.group({destinationType:Dt.control(e),custom:n,dynamic:t,advanced:o}),It=class e{#e=$(re);#t=$(De);#o=$(Lt);#i=$(We);#n=$(ue);#r=$(zt);injector=$(vt);formRef=fe.required("formRef");destinationForm=this.#n.destinationForm;destinationFormPair=this.#n.destinationFormPair;selectedAdvancedFormPair=this.#n.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#n.notSelectedAdvancedFormPair;selectedHttpOptions=this.#n.selectedHttpOptions;notSelectedHttpOptions=this.#n.notSelectedHttpOptions;destinationOptions=this.#n.destinationOptions;destinationFormSignal=this.#n.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=A(Ri);successfulTest=A(!1);destinationTypeOptionsInFocus=A(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=A(Ke.map(n=>({key:n.customKey??n.key,customKey:n.customKey??null,displayName:n.displayName,description:n.description})));destinationTypeOptionsFocused=K(()=>{let n=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return n.map(o=>t.find(i=>i.key===o))});destinationTypeOptionsNotFocused=K(()=>{let n=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(o=>!n.includes(o.key))});getFormFieldValue(n,t,o){return((this.destinationForm.controls.destinations.controls?.[n]).controls?.[t]).controls[o].value}addDestinationFormGroup(n){this.#n.addDestinationFormGroup(n)}addAdvancedFormPair(n,t){this.#n.addAdvancedFormPair(n,t)}removeFormView(n,t){this.#n.removeAdvancedFormPair(n,t)}addHttpOption(n,t){this.#n.addHttpOption(n,t)}targetUrl=K(()=>this.#n.getCurrentTargetUrl()[0]);targetUrlCtrl=new _t;targetUrlInitial=A(null);targetUrlDialogOpen=A(!1);openTargetUrlDialog(){let t=this.#n.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(n=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,o=this.targetUrlInitial();!n||t===o||this.#n.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(n=0){let o=this.#n.getCurrentTargetUrl()[n];o&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:o}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:i=>{let l=i.error.error.Error;if(l==="missing-folder"&&this.#r.open(He,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:u=>{u&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:o}}).subscribe()}}),l.startsWith("incorrect-cert:")){let u=l.split("incorrect-cert:")[1];this.#r.open(He,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
2
- If this is a self-signed certificate, you can choose to trust this certificate.
3
- The server reported the certificate hash: ${u}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:N=>{N&&this.#n.addHttpOptionByName("accept-specified-ssl-hash",u)}})}if(l.startsWith("incorrect-host-key:")){let u=l.split('incorrect-host-key:"')[1].split('",')[0],N=l.split('accepted-host-key:"')[1].split('",')[0];N?this.#r.open(He,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
4
- otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
5
- Do you want to REPLACE your CURRENT host key ${N}
6
- with the REPORTED host key: ${u}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:w=>{w&&this.#n.addAdvancedFormPairByName("ssh-fingerprint",n,u)}}):this.#r.open(He,{maxWidth:"500px",data:{title:$localize`Approve host key?`,message:$localize`No certificate was specified, please verify that the reported host key is correct: ${u}`,confirmText:"Approve",cancelText:"Cancel"},closed:w=>{w&&this.#n.addAdvancedFormPairByName("ssh-fingerprint",n,u)}})}}})}mapToTargetUrl(n){return St(n.value)}removeDestinationFormGroup(n){this.destinationForm.controls.destinations.removeAt(n)}displayFn(n){let t=this.destinationOptions().find(o=>o.Key===n);return t?`${t.DisplayName}`:""}goBack(){this.#e.navigate(["general"],{relativeTo:this.#t.parent})}next(){this.#e.navigate(["source-data"],{relativeTo:this.#t.parent})}#s=A("https://duplicati-oauth-handler.appspot.com/").asReadonly();#l=A(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#a=A(!1);#p=A(null);keyCreation(){}oauthStartTokenCreation(n){this.#a.set(!0);let t=450,o=600,i=this.#s()+"?type="+n+"&token="+this.#l(),l=screen.width/2-t/2,u=screen.height/2-o/2,N=window.open(i,"_blank","height="+o+",width="+t+",menubar=0,status=0,titlebar=0,toolbar=0,left="+l+",top="+u);N?.addEventListener("blur",w=>{console.log("event blur",w)}),N?.addEventListener("beforeunload",w=>{console.log("event beforeunload",w),this.#o.get(this.#s()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#l()}}).pipe(et(()=>this.#a.set(!1))).subscribe({next:y=>{console.log("res",y),y?.authid&&this.#p.set(y.authid)}})})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=ne({type:e,selectors:[["app-destination"]],viewQuery:function(t,o){t&1&&Se(o.formRef,Do,5),t&2&&Te()},decls:25,vars:6,consts:()=>{let n;n=$localize` Backup destination ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"\uFFFD*6:1\uFFFD"}:START_BLOCK_IF_1:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON:${"\uFFFD*2:2\uFFFD"}:START_BLOCK_IF: Connected ${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*3:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*3:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:dots-three-vertical${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:link${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,n=Ie(n);let t;t=$localize`${"\uFFFD#20\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let o;o=$localize`${"\uFFFD#23\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#23\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize` Want to select another destination? ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let l;l=$localize`More destinations are coming soon.`;let u;u=$localize`Other destinations`;let N;N=$localize` Advanced options ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#10\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#12\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*14:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*14:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_MENU:`,N=Ie(N);let w;w=$localize` Http options ${"\uFFFD#20\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#21\uFFFD"}:START_TAG_BUTTON: Add http option ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#23\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*25:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*25:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#23\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SPK_MENU:`,w=Ie(w);let y;y=$localize`Edit target URL`;let Z;Z=$localize` Be careful, this will overwrite everything you have in your destination. `;let J;return J=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["fieldTemplate",""],n,t,o,i,l,u,N,w,y,Z,J,[3,"submit","formGroup"],[1,"title-30"],[1,"actions"],["spk-button","","type","button",1,"small",3,"success"],["spk-button","","type","button",1,"small"],["menu",""],["spk-button","","type","button",1,"small",3,"click"],["formArrayName","destinations"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"isOpen","options"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile"],["spk-button","","type","button",1,"outlined"],["item","","type","button"],[1,"tile",3,"click"],["item","","type","button",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[3,"hideClearButton"],[3,"isFreeText"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],[3,"type","id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],[3,"value"],["type","search",3,"id","formControlName"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"warning"],["content",""],["id","targetUrl","autocomplete","off",3,"formControl"],["footer",""],["spk-button","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,o){if(t&1){let i=O();a(0,"form",13,0),f("submit",function(){return S(i),T(o.next())}),a(2,"header")(3,"h3",14),h(4,2),a(5,"div",15),F(6,xo,4,3,"button",16),a(7,"spk-menu")(8,"button",17),_(9,"spk-icon"),r(),j(10,18),a(11,"button",19),f("click",function(){return S(i),T(o.openTargetUrlDialog())}),_(12,"spk-icon"),r(),W(),r()(),D(),r(),F(13,$o,3,0,"p")(14,Io,2,0,"p"),r(),F(15,wo,9,0)(16,vi,30,4,"ng-container",20),a(17,"div",21)(18,"button",22),f("click",function(){return S(i),T(o.goBack())}),h(19,3),_(20,"spk-icon"),D(),r(),a(21,"button",23),h(22,4),_(23,"spk-icon"),D(),r()()(),F(24,wi,15,4,"spk-dialog",24)}if(t&2){let i;c("formGroup",o.destinationForm),s(6),g(o.destinationCount()>0?6:-1),s(7),g(o.destinationCount()>0?13:14),s(2),g(o.destinationCount()===0?15:-1),s(),g(!((i=o.destinationFormSignal())==null||i.destinations==null)&&i.destinations.length?16:-1),s(8),g(o.targetUrlDialogOpen()?24:-1)}},dependencies:[Oe,Pe,ae,be,Re,se,ye,ut,Ne,Ae,Ge,Bt,ct,pe,me,Ct,gt,ce,le,Le,qe,Kt,Ft,Ue,Qe],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] spk-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;gap:.5rem;align-items:flex-end}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1);background-color:var(--base-level-20);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{en as a,tn as b,It as c,Wt as d,Ot as e,At as f,qt as g,kr as h,kt as i,Yt as j,xt as k,Jt as l,$t as m,ue as n};