@duplicati/ngclient 0.0.24 → 0.0.26

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 (96) hide show
  1. package/chunk-26IRMVIY.js +2 -0
  2. package/chunk-2PUTRWRI.js +1 -0
  3. package/chunk-2SYB6ABM.js +1 -0
  4. package/chunk-47O5BYLZ.js +1 -0
  5. package/chunk-4Y76KESB.js +2 -0
  6. package/chunk-5X5UJ7CP.js +1 -0
  7. package/chunk-6TFXXYVK.js +1 -0
  8. package/chunk-7O44NQO3.js +1 -0
  9. package/{chunk-MJCUB3L3.js → chunk-AIQQJSGP.js} +1 -1
  10. package/chunk-B7SRENJI.js +1 -0
  11. package/chunk-BR45PK72.js +1 -0
  12. package/{chunk-NAZLO3UY.js → chunk-BVTTY2FQ.js} +1 -1
  13. package/chunk-C4S5PKAB.js +1 -0
  14. package/chunk-C5O62M3L.js +6 -0
  15. package/chunk-CGWELGPM.js +1 -0
  16. package/{chunk-3XQGPHYU.js → chunk-D2HTMQIW.js} +1 -1
  17. package/chunk-DESW2TCQ.js +1 -0
  18. package/chunk-DOGZZDWG.js +1 -0
  19. package/chunk-EPVXOSHI.js +1 -0
  20. package/chunk-FAAAWY76.js +1 -0
  21. package/chunk-FWNXTY54.js +1 -0
  22. package/chunk-GAJ43GZE.js +1 -0
  23. package/chunk-GWGOC52B.js +1 -0
  24. package/chunk-HH2EA6LF.js +1 -0
  25. package/chunk-KZLQWBL3.js +1 -0
  26. package/chunk-L7M2MTRL.js +1 -0
  27. package/chunk-LUAN4O53.js +1 -0
  28. package/chunk-MFLGWG77.js +1 -0
  29. package/chunk-MHCUWVA2.js +1 -0
  30. package/chunk-MSQ7LZTH.js +1 -0
  31. package/chunk-PD6257G7.js +1 -0
  32. package/chunk-QL753AWG.js +1 -0
  33. package/chunk-QNP3LI3Y.js +1 -0
  34. package/chunk-RJDP2FPE.js +7 -0
  35. package/chunk-RMZR2OAY.js +1 -0
  36. package/chunk-SDVRKDZS.js +1 -0
  37. package/{chunk-Z3RCJ5NZ.js → chunk-T6ENXWPD.js} +1 -1
  38. package/chunk-TLFDZKKI.js +1 -0
  39. package/chunk-UGZKHGQT.js +1 -0
  40. package/chunk-UMY3Y7LR.js +1 -0
  41. package/chunk-UPIWGO32.js +1 -0
  42. package/chunk-UVZO552H.js +1 -0
  43. package/chunk-VAAI6C2V.js +1 -0
  44. package/chunk-VJACGH6X.js +1 -0
  45. package/chunk-WHYVZMAC.js +1 -0
  46. package/chunk-WV3AOW4R.js +1 -0
  47. package/chunk-ZAREJJZA.js +1 -0
  48. package/chunk-ZVT4YXH5.js +1 -0
  49. package/index.html +3 -3
  50. package/main-HBZS5ADV.js +1 -0
  51. package/package.json +1 -1
  52. package/styles-JDUV6AV5.css +1 -0
  53. package/chunk-2653SOTQ.js +0 -1
  54. package/chunk-2EGLLTER.js +0 -1
  55. package/chunk-2MDIWOW5.js +0 -1
  56. package/chunk-3UHRO33D.js +0 -1
  57. package/chunk-4C6SJEAP.js +0 -1
  58. package/chunk-4HGECFGT.js +0 -1
  59. package/chunk-4JYRDCTW.js +0 -1
  60. package/chunk-4NLCRQLQ.js +0 -1
  61. package/chunk-637GTPYL.js +0 -1
  62. package/chunk-67JGZ4NF.js +0 -7
  63. package/chunk-AEQ7QJXE.js +0 -1
  64. package/chunk-BTF6XTSM.js +0 -1
  65. package/chunk-C3SI6ECZ.js +0 -1
  66. package/chunk-CESPRUJX.js +0 -1
  67. package/chunk-CUYURNCB.js +0 -1
  68. package/chunk-EOYIT7GV.js +0 -2
  69. package/chunk-GO7CLBZY.js +0 -1
  70. package/chunk-GTGXQQJJ.js +0 -1
  71. package/chunk-HJUBM7Q5.js +0 -1
  72. package/chunk-JE2I63Y6.js +0 -2
  73. package/chunk-JRKR54DW.js +0 -1
  74. package/chunk-KJQLPHGM.js +0 -1
  75. package/chunk-KV674FA2.js +0 -1
  76. package/chunk-NAPR7ILQ.js +0 -1
  77. package/chunk-NILUA3YB.js +0 -1
  78. package/chunk-NVZUM7FG.js +0 -1
  79. package/chunk-NYFN2CT6.js +0 -6
  80. package/chunk-OSB5J6SK.js +0 -1
  81. package/chunk-P6347OTT.js +0 -1
  82. package/chunk-RHGRQONA.js +0 -1
  83. package/chunk-RNJMBZB7.js +0 -1
  84. package/chunk-SGZGAY7X.js +0 -1
  85. package/chunk-SRW3NRX3.js +0 -1
  86. package/chunk-SRX3KYGO.js +0 -1
  87. package/chunk-T2ZGAXWS.js +0 -1
  88. package/chunk-TNE7LVPH.js +0 -1
  89. package/chunk-VA5L4XPW.js +0 -1
  90. package/chunk-VJDUCP4Z.js +0 -1
  91. package/chunk-VXKI3RQB.js +0 -1
  92. package/chunk-X2IPCPJN.js +0 -1
  93. package/chunk-YBWO6L26.js +0 -1
  94. package/chunk-ZLOKN5SO.js +0 -1
  95. package/main-WZ7WTPZS.js +0 -1
  96. package/styles-LL6J7JBI.css +0 -1
package/chunk-JE2I63Y6.js DELETED
@@ -1,2 +0,0 @@
1
- import{Ab as E,Ba as te,F as ze,M as Ve,P as ee,R as b,Sa as Z,U as S,W as A,Wa as He,X as C,ba as Ge,ca as we,d as ye,da as Ye,fa as We,ga as Ze,ia as Ke,k as Ue,l as Ee,mc as qe,p as W,qa as Xe,ra as Je,sa as Fe,w as $e,z as je,zb as I}from"./chunk-67JGZ4NF.js";import{a as me}from"./chunk-7CGTOI24.js";var rt=null;function Ce(){return rt}function Dr(e){rt??=e}var Qe=class{};var K=new S(""),_e=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:()=>C(_t),providedIn:"platform"})}}return e})(),pr=new S(""),_t=(()=>{class e extends _e{constructor(){super(),this._doc=C(K),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ce().getBaseHref(this._doc)}onPopState(t){let r=Ce().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){let r=Ce().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Ie(e,n){if(e.length==0)return n;if(n.length==0)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,t==2?e+n.substring(1):t==1?e+n:e+"/"+n}function et(e){let n=e.match(/#|\?|$/),t=n&&n.index||e.length,r=t-(e[t-1]==="/"?1:0);return e.slice(0,r)+e.slice(t)}function L(e){return e&&e[0]!=="?"?"?"+e:e}var he=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:()=>C(It),providedIn:"root"})}}return e})(),it=new S(""),It=(()=>{class e extends he{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??C(K).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ie(this._baseHref,t)}path(t=!1){let r=this._platformLocation.pathname+L(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(r){return new(r||e)(A(_e),A(it,8))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),mr=(()=>{class e extends he{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(t){let r=Ie(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,i,o){let s=this.prepareExternalUrl(i+L(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(r){return new(r||e)(A(_e),A(it,8))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),Rt=(()=>{class e{constructor(t){this._subject=new Je,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;let r=this._locationStrategy.getBaseHref();this._basePath=Ot(et(tt(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+L(r))}normalize(t){return e.stripTrailingSlash(Pt(this._basePath,tt(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r,complete:i})}static{this.normalizeQueryParams=L}static{this.joinWithSlash=Ie}static{this.stripTrailingSlash=et}static{this.\u0275fac=function(r){return new(r||e)(A(he))}}static{this.\u0275prov=b({token:e,factory:()=>Mt(),providedIn:"root"})}}return e})();function Mt(){return new Rt(A(he))}function Pt(e,n){if(!e||!n.startsWith(e))return n;let t=n.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:n}function tt(e){return e.replace(/\/index.html$/,"")}function Ot(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var v=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(v||{}),f=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(f||{}),T=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(T||{}),x={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Lt(e){return I(e)[E.LocaleId]}function Nt(e,n,t){let r=I(e),i=[r[E.DayPeriodsFormat],r[E.DayPeriodsStandalone]],o=R(i,n);return R(o,t)}function Bt(e,n,t){let r=I(e),i=[r[E.DaysFormat],r[E.DaysStandalone]],o=R(i,n);return R(o,t)}function kt(e,n,t){let r=I(e),i=[r[E.MonthsFormat],r[E.MonthsStandalone]],o=R(i,n);return R(o,t)}function xt(e,n){let r=I(e)[E.Eras];return R(r,n)}function ne(e,n){let t=I(e);return R(t[E.DateFormat],n)}function re(e,n){let t=I(e);return R(t[E.TimeFormat],n)}function ie(e,n){let r=I(e)[E.DateTimeFormat];return R(r,n)}function fe(e,n){let t=I(e),r=t[E.NumberSymbols][n];if(typeof r>"u"){if(n===x.CurrencyDecimal)return t[E.NumberSymbols][x.Decimal];if(n===x.CurrencyGroup)return t[E.NumberSymbols][x.Group]}return r}function st(e){if(!e[E.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[E.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ut(e){let n=I(e);return st(n),(n[E.ExtraData][2]||[]).map(r=>typeof r=="string"?Ae(r):[Ae(r[0]),Ae(r[1])])}function $t(e,n,t){let r=I(e);st(r);let i=[r[E.ExtraData][0],r[E.ExtraData][1]],o=R(i,n)||[];return R(o,t)||[]}function R(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Ae(e){let[n,t]=e.split(":");return{hours:+n,minutes:+t}}var jt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,se={},zt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,N=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(N||{}),l=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(l||{}),c=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(c||{});function Vt(e,n,t,r){let i=qt(e);n=O(t,n)||n;let s=[],u;for(;n;)if(u=zt.exec(n),u){s=s.concat(u.slice(1));let D=s.pop();if(!D)break;n=D}else{s.push(n);break}let a=i.getTimezoneOffset();r&&(a=at(r,a),i=Ht(i,r,!0));let p="";return s.forEach(D=>{let y=Xt(D);p+=y?y(i,t,a):D==="''"?"'":D.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),p}function le(e,n,t){let r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function O(e,n){let t=Lt(e);if(se[t]??={},se[t][n])return se[t][n];let r="";switch(n){case"shortDate":r=ne(e,T.Short);break;case"mediumDate":r=ne(e,T.Medium);break;case"longDate":r=ne(e,T.Long);break;case"fullDate":r=ne(e,T.Full);break;case"shortTime":r=re(e,T.Short);break;case"mediumTime":r=re(e,T.Medium);break;case"longTime":r=re(e,T.Long);break;case"fullTime":r=re(e,T.Full);break;case"short":let i=O(e,"shortTime"),o=O(e,"shortDate");r=oe(ie(e,T.Short),[i,o]);break;case"medium":let s=O(e,"mediumTime"),u=O(e,"mediumDate");r=oe(ie(e,T.Medium),[s,u]);break;case"long":let a=O(e,"longTime"),p=O(e,"longDate");r=oe(ie(e,T.Long),[a,p]);break;case"full":let D=O(e,"fullTime"),y=O(e,"fullDate");r=oe(ie(e,T.Full),[D,y]);break}return r&&(se[t][n]=r),r}function oe(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return n!=null&&r in n?n[r]:t})),e}function M(e,n,t="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,o=t));let s=String(e);for(;s.length<n;)s="0"+s;return r&&(s=s.slice(s.length-n)),o+s}function Gt(e,n){return M(e,3).substring(0,n)}function w(e,n,t=0,r=!1,i=!1){return function(o,s){let u=Yt(e,o);if((t>0||u>-t)&&(u+=t),e===l.Hours)u===0&&t===-12&&(u=12);else if(e===l.FractionalSeconds)return Gt(u,n);let a=fe(s,x.MinusSign);return M(u,n,a,r,i)}}function Yt(e,n){switch(e){case l.FullYear:return n.getFullYear();case l.Month:return n.getMonth();case l.Date:return n.getDate();case l.Hours:return n.getHours();case l.Minutes:return n.getMinutes();case l.Seconds:return n.getSeconds();case l.FractionalSeconds:return n.getMilliseconds();case l.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function g(e,n,t=v.Format,r=!1){return function(i,o){return Wt(i,o,e,n,t,r)}}function Wt(e,n,t,r,i,o){switch(t){case c.Months:return kt(n,i,r)[e.getMonth()];case c.Days:return Bt(n,i,r)[e.getDay()];case c.DayPeriods:let s=e.getHours(),u=e.getMinutes();if(o){let p=Ut(n),D=$t(n,i,r),y=p.findIndex(_=>{if(Array.isArray(_)){let[m,P]=_,d=s>=m.hours&&u>=m.minutes,h=s<P.hours||s===P.hours&&u<P.minutes;if(m.hours<P.hours){if(d&&h)return!0}else if(d||h)return!0}else if(_.hours===s&&_.minutes===u)return!0;return!1});if(y!==-1)return D[y]}return Nt(n,i,r)[s<12?0:1];case c.Eras:return xt(n,r)[e.getFullYear()<=0?0:1];default:let a=t;throw new Error(`unexpected translation type ${a}`)}}function ae(e){return function(n,t,r){let i=-1*r,o=fe(t,x.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case N.Short:return(i>=0?"+":"")+M(s,2,o)+M(Math.abs(i%60),2,o);case N.ShortGMT:return"GMT"+(i>=0?"+":"")+M(s,1,o);case N.Long:return"GMT"+(i>=0?"+":"")+M(s,2,o)+":"+M(Math.abs(i%60),2,o);case N.Extended:return r===0?"Z":(i>=0?"+":"")+M(s,2,o)+":"+M(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}var Zt=0,ce=4;function Kt(e){let n=le(e,Zt,1).getDay();return le(e,0,1+(n<=ce?ce:ce+7)-n)}function ot(e){let n=e.getDay(),t=n===0?-3:ce-n;return le(e.getFullYear(),e.getMonth(),e.getDate()+t)}function be(e,n=!1){return function(t,r){let i;if(n){let o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();i=1+Math.floor((s+o)/7)}else{let o=ot(t),s=Kt(o.getFullYear()),u=o.getTime()-s.getTime();i=1+Math.round(u/6048e5)}return M(i,e,fe(r,x.MinusSign))}}function ue(e,n=!1){return function(t,r){let o=ot(t).getFullYear();return M(o,e,fe(r,x.MinusSign),n)}}var ve={};function Xt(e){if(ve[e])return ve[e];let n;switch(e){case"G":case"GG":case"GGG":n=g(c.Eras,f.Abbreviated);break;case"GGGG":n=g(c.Eras,f.Wide);break;case"GGGGG":n=g(c.Eras,f.Narrow);break;case"y":n=w(l.FullYear,1,0,!1,!0);break;case"yy":n=w(l.FullYear,2,0,!0,!0);break;case"yyy":n=w(l.FullYear,3,0,!1,!0);break;case"yyyy":n=w(l.FullYear,4,0,!1,!0);break;case"Y":n=ue(1);break;case"YY":n=ue(2,!0);break;case"YYY":n=ue(3);break;case"YYYY":n=ue(4);break;case"M":case"L":n=w(l.Month,1,1);break;case"MM":case"LL":n=w(l.Month,2,1);break;case"MMM":n=g(c.Months,f.Abbreviated);break;case"MMMM":n=g(c.Months,f.Wide);break;case"MMMMM":n=g(c.Months,f.Narrow);break;case"LLL":n=g(c.Months,f.Abbreviated,v.Standalone);break;case"LLLL":n=g(c.Months,f.Wide,v.Standalone);break;case"LLLLL":n=g(c.Months,f.Narrow,v.Standalone);break;case"w":n=be(1);break;case"ww":n=be(2);break;case"W":n=be(1,!0);break;case"d":n=w(l.Date,1);break;case"dd":n=w(l.Date,2);break;case"c":case"cc":n=w(l.Day,1);break;case"ccc":n=g(c.Days,f.Abbreviated,v.Standalone);break;case"cccc":n=g(c.Days,f.Wide,v.Standalone);break;case"ccccc":n=g(c.Days,f.Narrow,v.Standalone);break;case"cccccc":n=g(c.Days,f.Short,v.Standalone);break;case"E":case"EE":case"EEE":n=g(c.Days,f.Abbreviated);break;case"EEEE":n=g(c.Days,f.Wide);break;case"EEEEE":n=g(c.Days,f.Narrow);break;case"EEEEEE":n=g(c.Days,f.Short);break;case"a":case"aa":case"aaa":n=g(c.DayPeriods,f.Abbreviated);break;case"aaaa":n=g(c.DayPeriods,f.Wide);break;case"aaaaa":n=g(c.DayPeriods,f.Narrow);break;case"b":case"bb":case"bbb":n=g(c.DayPeriods,f.Abbreviated,v.Standalone,!0);break;case"bbbb":n=g(c.DayPeriods,f.Wide,v.Standalone,!0);break;case"bbbbb":n=g(c.DayPeriods,f.Narrow,v.Standalone,!0);break;case"B":case"BB":case"BBB":n=g(c.DayPeriods,f.Abbreviated,v.Format,!0);break;case"BBBB":n=g(c.DayPeriods,f.Wide,v.Format,!0);break;case"BBBBB":n=g(c.DayPeriods,f.Narrow,v.Format,!0);break;case"h":n=w(l.Hours,1,-12);break;case"hh":n=w(l.Hours,2,-12);break;case"H":n=w(l.Hours,1);break;case"HH":n=w(l.Hours,2);break;case"m":n=w(l.Minutes,1);break;case"mm":n=w(l.Minutes,2);break;case"s":n=w(l.Seconds,1);break;case"ss":n=w(l.Seconds,2);break;case"S":n=w(l.FractionalSeconds,1);break;case"SS":n=w(l.FractionalSeconds,2);break;case"SSS":n=w(l.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=ae(N.Short);break;case"ZZZZZ":n=ae(N.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=ae(N.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=ae(N.Long);break;default:return null}return ve[e]=n,n}function at(e,n){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function Jt(e,n){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+n),e}function Ht(e,n,t){let r=t?-1:1,i=e.getTimezoneOffset(),o=at(n,i);return Jt(e,r*(o-i))}function qt(e){if(nt(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,o=1,s=1]=e.split("-").map(u=>+u);return le(i,o-1,s)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(jt))return Qt(r)}let n=new Date(e);if(!nt(n))throw new Error(`Unable to convert "${e}" into a date`);return n}function Qt(e){let n=new Date(0),t=0,r=0,i=e[8]?n.setUTCFullYear:n.setFullYear,o=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-t,u=Number(e[5]||0)-r,a=Number(e[6]||0),p=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return o.call(n,s,u,a,p),n}function nt(e){return e instanceof Date&&!isNaN(e.valueOf())}function ut(e,n){n=encodeURIComponent(n);for(let t of e.split(";")){let r=t.indexOf("="),[i,o]=r==-1?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}var yr=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static{this.\u0275fac=function(r){return new(r||e)(Z(He))}}static{this.\u0275dir=Ge({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Ke]})}}return e})();function en(e,n){return new ee(2100,!1)}var tn="mediumDate",nn=new S(""),rn=new S(""),Er=(()=>{class e{constructor(t,r,i){this.locale=t,this.defaultTimezone=r,this.defaultOptions=i}transform(t,r,i,o){if(t==null||t===""||t!==t)return null;try{let s=r??this.defaultOptions?.dateFormat??tn,u=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Vt(t,s,o||this.locale,u)}catch(s){throw en(e,s.message)}}static{this.\u0275fac=function(r){return new(r||e)(Z(qe,16),Z(nn,24),Z(rn,24))}}static{this.\u0275pipe=we({name:"date",type:e,pure:!0,standalone:!0})}}return e})();var wr=(()=>{class e{transform(t){return JSON.stringify(t,null,2)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275pipe=we({name:"json",type:e,pure:!1,standalone:!0})}}return e})();var sn="browser",on="server";function an(e){return e===sn}function un(e){return e===on}var Fr=(()=>{class e{static{this.\u0275prov=b({token:e,providedIn:"root",factory:()=>an(C(te))?new Se(C(K),window):new Te})}}return e})(),Se=class{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let t=cn(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function cn(e,n){let t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}var Te=class{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}},de=class{};var J=class{},H=class{},B=class e{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
2
- `).forEach(t=>{let r=t.indexOf(":");if(r>0){let i=t.slice(0,r),o=i.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){let t=new e;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){let t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,t);let i=(n.op==="a"?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":let o=n.value;if(!o)this.headers.delete(t),this.normalizedNames.delete(t);else{let s=this.headers.get(t);if(!s)return;s=s.filter(u=>o.indexOf(u)===-1),s.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}break}}setHeaderEntries(n,t){let r=(Array.isArray(t)?t:[t]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}};var Me=class{encodeKey(n){return ct(n)}encodeValue(n){return ct(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function dn(e,n){let t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,u]=o==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],a=t.get(s)||[];a.push(u),t.set(s,a)}),t}var hn=/%(\d[a-f0-9])/gi,fn={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ct(e){return encodeURIComponent(e).replace(hn,(n,t)=>fn[t]??n)}function ge(e){return`${e}`}var $=class e{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Me,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=dn(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{let r=n.fromObject[t],i=Array.isArray(r)?r.map(ge):[ge(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){let t=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(o=>{t.push({param:r,value:o,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let t=new e({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let t=(n.op==="a"?this.map.get(n.param):void 0)||[];t.push(ge(n.value)),this.map.set(n.param,t);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(ge(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Pe=class{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function gn(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function lt(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function dt(e){return typeof Blob<"u"&&e instanceof Blob}function ht(e){return typeof FormData<"u"&&e instanceof FormData}function Dn(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var X=class e{constructor(n,t,r,i){this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase();let o;if(gn(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new B,this.context??=new Pe,!this.params)this.params=new $,this.urlWithParams=t;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=t;else{let u=t.indexOf("?"),a=u===-1?"?":u<t.length-1?"&":"";this.urlWithParams=t+a+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||lt(this.body)||dt(this.body)||ht(this.body)||Dn(this.body)?this.body:this.body instanceof $?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||ht(this.body)?null:dt(this.body)?this.body.type||null:lt(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof $?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(n={}){let t=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,o=n.transferCache??this.transferCache,s=n.body!==void 0?n.body:this.body,u=n.withCredentials??this.withCredentials,a=n.reportProgress??this.reportProgress,p=n.headers||this.headers,D=n.params||this.params,y=n.context??this.context;return n.setHeaders!==void 0&&(p=Object.keys(n.setHeaders).reduce((_,m)=>_.set(m,n.setHeaders[m]),p)),n.setParams&&(D=Object.keys(n.setParams).reduce((_,m)=>_.set(m,n.setParams[m]),D)),new e(t,r,s,{params:D,headers:p,context:y,reportProgress:a,responseType:i,withCredentials:u,transferCache:o})}},j=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(j||{}),q=class{constructor(n,t=200,r="OK"){this.headers=n.headers||new B,this.status=n.status!==void 0?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},De=class e extends q{constructor(n={}){super(n),this.type=j.ResponseHeader}clone(n={}){return new e({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Q=class e extends q{constructor(n={}){super(n),this.type=j.Response,this.body=n.body!==void 0?n.body:null}clone(n={}){return new e({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},U=class extends q{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},pt=200,pn=204;function Re(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var mn=(()=>{class e{constructor(t){this.handler=t}request(t,r,i={}){let o;if(t instanceof X)o=t;else{let a;i.headers instanceof B?a=i.headers:a=new B(i.headers);let p;i.params&&(i.params instanceof $?p=i.params:p=new $({fromObject:i.params})),o=new X(t,r,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:p,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=Ee(o).pipe(je(a=>this.handler.handle(a)));if(t instanceof X||i.observe==="events")return s;let u=s.pipe($e(a=>a instanceof Q));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return u.pipe(W(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return u.pipe(W(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return u.pipe(W(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return u.pipe(W(a=>a.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new $().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,Re(i,r))}post(t,r,i={}){return this.request("POST",t,Re(i,r))}put(t,r,i={}){return this.request("PUT",t,Re(i,r))}static{this.\u0275fac=function(r){return new(r||e)(A(J))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),yn=/^\)\]\}',?\n/,En="X-Request-URL";function ft(e){if(e.url)return e.url;let n=En.toLocaleLowerCase();return e.headers.get(n)}var Oe=(()=>{class e{constructor(){this.fetchImpl=C(Le,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t)),this.ngZone=C(Fe)}handle(t){return new ye(r=>{let i=new AbortController;return this.doRequest(t,i.signal,r).then(Ne,o=>r.error(new U({error:o}))),()=>i.abort()})}async doRequest(t,r,i){let o=this.createRequestInit(t),s;try{let m=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,me({signal:r},o)));wn(m),i.next({type:j.Sent}),s=await m}catch(m){i.error(new U({error:m,status:m.status??0,statusText:m.statusText,url:t.urlWithParams,headers:m.headers}));return}let u=new B(s.headers),a=s.statusText,p=ft(s)??t.urlWithParams,D=s.status,y=null;if(t.reportProgress&&i.next(new De({headers:u,status:D,statusText:a,url:p})),s.body){let m=s.headers.get("content-length"),P=[],d=s.body.getReader(),h=0,k,V,F=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:z,value:Y}=await d.read();if(z)break;if(P.push(Y),h+=Y.length,t.reportProgress){V=t.responseType==="text"?(V??"")+(k??=new TextDecoder).decode(Y,{stream:!0}):void 0;let xe=()=>i.next({type:j.DownloadProgress,total:m?+m:void 0,loaded:h,partialText:V});F?F.run(xe):xe()}}});let G=this.concatChunks(P,h);try{let z=s.headers.get("Content-Type")??"";y=this.parseBody(t,G,z)}catch(z){i.error(new U({error:z,headers:new B(s.headers),status:s.status,statusText:s.statusText,url:ft(s)??t.urlWithParams}));return}}D===0&&(D=y?pt:0),D>=200&&D<300?(i.next(new Q({body:y,headers:u,status:D,statusText:a,url:p})),i.complete()):i.error(new U({error:y,headers:u,status:D,statusText:a,url:p}))}parseBody(t,r,i){switch(t.responseType){case"json":let o=new TextDecoder().decode(r).replace(yn,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(t){let r={},i=t.withCredentials?"include":void 0;if(t.headers.forEach((o,s)=>r[o]=s.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){let o=t.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:i}}concatChunks(t,r){let i=new Uint8Array(r),o=0;for(let s of t)i.set(s,o),o+=s.length;return i}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),Le=class{};function Ne(){}function wn(e){e.then(Ne,Ne)}function Fn(e,n){return n(e)}function Cn(e,n,t){return(r,i)=>Ze(t,()=>n(r,o=>e(o,i)))}var Be=new S(""),An=new S(""),bn=new S("",{providedIn:"root",factory:()=>!0});var gt=(()=>{class e extends J{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=C(Xe),this.contributeToStability=C(bn)}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Be),...this.injector.get(An,[])]));this.chain=r.reduceRight((i,o)=>Cn(i,o,this.injector),Fn)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(ze(()=>this.pendingTasks.remove(r)))}else return this.chain(t,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(A(H),A(We))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})();var vn=/^\)\]\}',?\n/;function Sn(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Dt=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new ee(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Ue(r.\u0275loadImpl()):Ee(null)).pipe(Ve(()=>new ye(o=>{let s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((d,h)=>s.setRequestHeader(d,h.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let d=t.detectContentTypeHeader();d!==null&&s.setRequestHeader("Content-Type",d)}if(t.responseType){let d=t.responseType.toLowerCase();s.responseType=d!=="json"?d:"text"}let u=t.serializeBody(),a=null,p=()=>{if(a!==null)return a;let d=s.statusText||"OK",h=new B(s.getAllResponseHeaders()),k=Sn(s)||t.url;return a=new De({headers:h,status:s.status,statusText:d,url:k}),a},D=()=>{let{headers:d,status:h,statusText:k,url:V}=p(),F=null;h!==pn&&(F=typeof s.response>"u"?s.responseText:s.response),h===0&&(h=F?pt:0);let G=h>=200&&h<300;if(t.responseType==="json"&&typeof F=="string"){let z=F;F=F.replace(vn,"");try{F=F!==""?JSON.parse(F):null}catch(Y){F=z,G&&(G=!1,F={error:Y,text:F})}}G?(o.next(new Q({body:F,headers:d,status:h,statusText:k,url:V||void 0})),o.complete()):o.error(new U({error:F,headers:d,status:h,statusText:k,url:V||void 0}))},y=d=>{let{url:h}=p(),k=new U({error:d,status:s.status||0,statusText:s.statusText||"Unknown Error",url:h||void 0});o.error(k)},_=!1,m=d=>{_||(o.next(p()),_=!0);let h={type:j.DownloadProgress,loaded:d.loaded};d.lengthComputable&&(h.total=d.total),t.responseType==="text"&&s.responseText&&(h.partialText=s.responseText),o.next(h)},P=d=>{let h={type:j.UploadProgress,loaded:d.loaded};d.lengthComputable&&(h.total=d.total),o.next(h)};return s.addEventListener("load",D),s.addEventListener("error",y),s.addEventListener("timeout",y),s.addEventListener("abort",y),t.reportProgress&&(s.addEventListener("progress",m),u!==null&&s.upload&&s.upload.addEventListener("progress",P)),s.send(u),o.next({type:j.Sent}),()=>{s.removeEventListener("error",y),s.removeEventListener("abort",y),s.removeEventListener("load",D),s.removeEventListener("timeout",y),t.reportProgress&&(s.removeEventListener("progress",m),u!==null&&s.upload&&s.upload.removeEventListener("progress",P)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(A(de))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})(),mt=new S(""),Tn="XSRF-TOKEN",_n=new S("",{providedIn:"root",factory:()=>Tn}),In="X-XSRF-TOKEN",Rn=new S("",{providedIn:"root",factory:()=>In}),pe=class{},Mn=(()=>{class e{constructor(t,r,i){this.doc=t,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=ut(t,this.cookieName),this.lastCookieString=t),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(A(K),A(te),A(_n))}}static{this.\u0275prov=b({token:e,factory:e.\u0275fac})}}return e})();function Pn(e,n){let t=e.url.toLowerCase();if(!C(mt)||e.method==="GET"||e.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return n(e);let r=C(pe).getToken(),i=C(Rn);return r!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var ke=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(ke||{});function yt(e,n){return{\u0275kind:e,\u0275providers:n}}function xr(...e){let n=[mn,Dt,gt,{provide:J,useExisting:gt},{provide:H,useFactory:()=>C(Oe,{optional:!0})??C(Dt)},{provide:Be,useValue:Pn,multi:!0},{provide:mt,useValue:!0},{provide:pe,useClass:Mn}];for(let t of e)n.push(...t.\u0275providers);return Ye(n)}function Ur(e){return yt(ke.Interceptors,e.map(n=>({provide:Be,useValue:n,multi:!0})))}function $r(){return yt(ke.Fetch,[Oe,{provide:H,useExisting:Oe}])}export{Ce as a,Dr as b,Qe as c,K as d,pr as e,he as f,It as g,mr as h,Rt as i,ut as j,yr as k,Er as l,wr as m,sn as n,an as o,un as p,Fr as q,de as r,B as s,Q as t,mn as u,xr as v,Ur as w,$r as x};
package/chunk-JRKR54DW.js DELETED
@@ -1 +0,0 @@
1
- import{a as me}from"./chunk-3XQGPHYU.js";import{b as se}from"./chunk-CUYURNCB.js";import{a as $}from"./chunk-SRX3KYGO.js";import{a as le}from"./chunk-Z3RCJ5NZ.js";import{b as W,d as q,e as z,g as j,i as H,k as J,l as K,n as Q,o as X,p as Y,q as Z,r as ee,s as te}from"./chunk-VXKI3RQB.js";import"./chunk-OSB5J6SK.js";import{a as ae}from"./chunk-KJQLPHGM.js";import"./chunk-2EGLLTER.js";import{a as L}from"./chunk-NAZLO3UY.js";import{g as ne,k as ie,o as oe,q as re}from"./chunk-3UHRO33D.js";import"./chunk-JE2I63Y6.js";import"./chunk-MJCUB3L3.js";import{$ as I,Bb as m,Cb as c,Fb as N,L as v,Oa as D,Pb as r,Qb as E,Ra as s,Rb as b,X as y,Xb as A,Ya as h,c as F,eb as O,ja as u,jb as S,ka as d,lb as M,ob as C,p as U,pb as x,qb as T,qc as G,rb as k,sb as n,sc as B,tb as o,ub as p,vb as R,wb as w,yb as _}from"./chunk-67JGZ4NF.js";import"./chunk-7CGTOI24.js";function ue(a,e){if(a&1){let t=_();n(0,"spk-form-field",28),p(1,"input",29),o(),n(2,"button",30),m("click",function(){u(t);let l=c(2);return d(l.beginRemoteRegistration())}),r(3," Register for remote control "),o()}}function de(a,e){if(a&1&&(n(0,"div",26)(1,"label"),r(2,"Machine is now registered, open this link to add it to your account:"),o(),n(3,"a",31),r(4),o()()),a&2){let t=c(2);s(3),N("href",t.remoteControlClaimUrl(),D),s(),E(t.remoteControlClaimUrl())}}function ge(a,e){a&1&&(n(0,"div",26)(1,"label"),r(2,"Registering, please wait..."),o()())}function Ce(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.cancelRemoteRegistration())}),r(1," Cancel registration "),o()}}function _e(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.disableRemoteControl())}),r(1," Disable remote control "),o()}}function fe(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.enableRemoteControl())}),r(1," Enable remote control "),o(),n(2,"button",32),m("click",function(){u(t);let l=c(2);return d(l.deleteRemoteControl())}),r(3," Delete remote control setup "),o()}}function Se(a,e){if(a&1&&(n(0,"div",5),O(1,ue,4,0)(2,de,5,2,"div",26)(3,ge,3,0,"div",26)(4,Ce,2,0,"button",27)(5,_e,2,0,"button",27)(6,fe,4,0),o()),a&2){let t=c();s(),C(t.remoteControlState()==="inactive"?1:-1),s(),C(t.remoteControlState()==="registered"?2:-1),s(),C(t.remoteControlState()==="registering"?3:-1),s(),C(t.remoteControlState()==="registering"||t.remoteControlState()==="registeringfaulted"||t.remoteControlState()==="registered"?4:-1),s(),C(t.remoteControlState()==="connected"||t.remoteControlState()==="enabled"?5:-1),s(),C(t.remoteControlState()==="disabled"?6:-1)}}function he(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.timeType.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}function be(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.time.setValue(l))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t),s(),E(t)}}function ve(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.settingsForm.controls.usageStatistics.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}var f=new Z,pe=[{value:"s",label:"Seconds"},{value:"m",label:"Minutes"},{value:"h",label:"Hours"}],V=[{value:"en",label:"English"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"es",label:"Spanish"},{value:"it",label:"Italian"}],ce=[{value:"",label:"System default (information)"},{value:"information",label:"Usage statistics, warnings, errors, and crashes"},{value:"warning",label:"Warnings, errors and crashes"},{value:"error",label:"Errors and crashes"},{value:"crash",label:"Crashes only"},{value:"none",label:"None / disabled"}],P=class a{#i=y(le);#o=y($);#e=y(L);sysinfo=this.#o.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=h("list");settingsForm=f.group({pauseSettings:f.group({time:f.control(0),timeType:f.control("s")}),language:f.control("en"),usageStatistics:f.control(""),updateChannel:f.control(""),remoteControlRegisterUrl:f.control("")});remoteControlState=h("unknown");remoteControlClaimUrl=h(null);sysInfoEffect=B(()=>{this.settingsForm.controls.remoteControlRegisterUrl.patchValue(this.sysinfo()?.RemoteControlRegistrationUrl??"")},{allowSignalWrites:!0});get pauseSettings(){return this.settingsForm.controls.pauseSettings}langSignal=se(this.settingsForm.controls.language.valueChanges);timeTypeOptions=h(pe);timeOptions=me([this.pauseSettings.controls.timeType.valueChanges.pipe(v("s")),this.pauseSettings.controls.time.valueChanges.pipe(v(null))],F(U(([e,t])=>{let i=this.#r(e);return t!==null?i.filter(l=>l.toString().includes(t.toString())):i}),v([])));languageOptions=G(()=>this.langSignal()?V.filter(e=>e.value===this.langSignal()):V);usageStatisticsOptions=h(ce);ngOnInit(){this.refreshRemoteControlStatus(),this.getServerSettings()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#e.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.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(t.substring(0,t.length-1)==""?"0":t.substring(0,t.length-1)),timeType:t.substring(-1)===""?"s":t.substring(-1)},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(e){return e?V.find(t=>t.value===e)?.label??null:null}typeDisplay(e){return e==null?null:pe.find(t=>t.value===e)?.label??null}usageDisplay(e){return typeof e!="string"?null:ce.find(t=>t.value===e)?.label??null}setDarkMode(){this.#i.setDarkMode()}setLightMode(){this.#i.setLightMode()}#r(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((i,l)=>l)}repeatRegisterTimer=null;#t(e){e.RegistrationUrl&&this.remoteControlClaimUrl.set(e.RegistrationUrl),console.log(e),e.IsConnected?this.remoteControlState.set("connected"):e.IsEnabled?this.remoteControlState.set("enabled"):e.CanEnable?this.remoteControlState.set("disabled"):e.IsRegisteringFaulted?this.remoteControlState.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.remoteControlState.set("registered"):this.remoteControlState.set("registering"):this.remoteControlState.set("inactive");let t=this.remoteControlState();console.log(t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:i=>{this.#t(i)}})}#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.remoteControlState.set("registering");let e=this.settingsForm.controls.remoteControlRegisterUrl.value;this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:e}}).subscribe({next:t=>{this.#t(t)},error:t=>{this.#n(t)}})}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)}})}getRemoteControlStatusText(){let e=this.remoteControlState();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"}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=I({type:a,selectors:[["app-settings"]],standalone:!0,features:[A],decls:100,vars:11,consts:[[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary"],[1,"left"],[1,"right","remote-control"],[1,"field-row"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"displayValue"],["type","text","formControlName","timeType"],["options",""],[3,"value"],["type","search","formControlName","time"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","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","#"],["type","text","formControlName","usageStatistics"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl","formControlName","remoteControlRegisterUrl"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"],[3,"click","value"]],template:function(t,i){if(t&1&&(p(0,"app-status-bar"),n(1,"form",0),m("submit",function(){return i.submit()}),n(2,"header")(3,"div",1)(4,"h2"),r(5,"Settings"),o(),n(6,"p"),r(7,"Configure your backup settings."),o()(),n(8,"button",2),r(9,"Save changes"),o()(),n(10,"section")(11,"div",3)(12,"h3"),r(13,"Remote access control"),o(),n(14,"p"),r(15),o()(),n(16,"div",4),O(17,Se,7,6,"div",5),o()(),n(18,"section")(19,"div",3)(20,"h3"),r(21,"Pause after startup or hibernation"),o(),n(22,"p"),r(23," 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. "),o()(),n(24,"div",6)(25,"div",7)(26,"spk-select",8),p(27,"input",9),R(28,10),T(29,he,2,2,"option",11,x),w(),o(),n(31,"spk-select"),p(32,"input",12),R(33,10),T(34,be,2,2,"option",11,x),w(),o()()()(),n(36,"section")(37,"div",3)(38,"h3"),r(39,"Color theme"),o(),n(40,"p"),r(41,"Customize your application theme"),o()(),n(42,"div",6)(43,"div",13)(44,"img",14),m("click",function(){return i.setLightMode()}),o(),n(45,"img",15),m("click",function(){return i.setDarkMode()}),o()()()(),n(46,"section")(47,"div",3)(48,"h3"),r(49,"Update channel"),o(),n(50,"p"),r(51,"Update channel selection is not implemented yet."),o()(),n(52,"div",16)(53,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("")}),n(54,"spk-radio",18),r(55),p(56,"input",19),o(),n(57,"p"),r(58),o()(),n(59,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("stable")}),n(60,"spk-radio",18),r(61," Stable "),p(62,"input",20),o(),n(63,"p"),r(64,"Official releases"),o()(),n(65,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("beta")}),n(66,"spk-radio",18),r(67," Beta "),p(68,"input",21),o(),n(69,"p"),r(70," 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. "),o()(),n(71,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("experimental")}),n(72,"spk-radio",18),r(73," Experimental "),p(74,"input",22),o(),n(75,"p"),r(76,"Specific builds for developers only. Not for use with important data."),o()(),n(77,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("canary")}),n(78,"spk-radio",18),r(79," Canary "),p(80,"input",23),o(),n(81,"p"),r(82,"Individual builds for developers only. Not for use with important data."),o()()()(),n(83,"section")(84,"div",3)(85,"h3"),r(86,"Usage statistics"),o(),n(87,"p"),r(88," Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate "),n(89,"a",24),r(90,"public usage statistics."),o(),p(91,"br")(92,"br"),r(93," 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. "),o()(),n(94,"div",6)(95,"spk-select",8),p(96,"input",25),R(97,10),T(98,ve,2,2,"option",11,x),w(),o()()()()),t&2){let l,g;s(),S("formGroup",i.settingsForm),s(14),E(i.getRemoteControlStatusText()),s(2),C(i.remoteControlState()!=="unknown"?17:-1),s(9),S("displayValue",i.typeDisplay(i.settingsForm.value.pauseSettings==null?null:i.settingsForm.value.pauseSettings.timeType)),s(3),k(i.timeTypeOptions()),s(5),k(i.timeOptions()),s(10),M("active",!i.isDarkMode()),s(),M("active",i.isDarkMode()),s(10),b(" Default (",(l=i.sysinfo())==null?null:l.DefaultUpdateChannel,") "),s(3),b("Same as the base install version: ",(g=i.sysinfo())==null?null:g.ServerVersionType,""),s(37),S("displayValue",i.usageDisplay(i.settingsForm.controls.usageStatistics.value)),s(3),k(i.usageStatisticsOptions())}},dependencies:[ee,j,X,Y,W,H,q,z,te,J,Q,K,ae,ne,oe,ie,re],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}.remote-control[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}"],changeDetection:0})};export{P as default};
package/chunk-KJQLPHGM.js DELETED
@@ -1 +0,0 @@
1
- import{a as M}from"./chunk-2EGLLTER.js";import{a as V,b as O}from"./chunk-NAZLO3UY.js";import{n as L}from"./chunk-3UHRO33D.js";import{a as N}from"./chunk-MJCUB3L3.js";import{$ as y,Cb as h,F as S,M as D,Pb as p,R as I,Ra as u,Sb as k,X as r,Xb as A,Ya as i,ac as E,bc as R,ca as C,eb as _,jb as x,l as b,ob as T,p as B,qc as c,sb as l,sc as v,tb as o,ub as w}from"./chunk-67JGZ4NF.js";import{a as f,b as g}from"./chunk-7CGTOI24.js";var m=class a{#t=r(N);transform(e,...t){return this.#t(e).fromNow()}static \u0275fac=function(t){return new(t||a)};static \u0275pipe=C({name:"appRelativeTime",type:a,pure:!0,standalone:!0})};var d=class a{#t=1e3;#d=r(O);#o=r(V);#n=r(M);#e=i(!1);#i=i(!1);#u=i(this.#t);#p=i(null);#r=i(!1);#s=i(!1);#a=i(null);#f=i(!1);statusData=this.#p.asReadonly();serverState=c(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let s=t.Item1?this.#n.getBackupById(t.Item1):null;return g(f({},t),{backup:s})}),e):null});isFetching=this.#i.asReadonly();#l=null;#g=v(()=>{let e=this.#e(),t=this.#u();if(!e||!t||t<this.#t){this.#l&&window.clearInterval(this.#l);return}this.#l=window.setInterval(()=>{this.#m()},t)});start(){this.#r.set(!0),this.#c()}stop(){this.#r.set(!1)}startPollingProgress(){this.#m(),this.#e.set(!0)}stopPollingProgress(){this.#e.set(!1)}setProgressStatePollingInterval(e){if(e<this.#t){console.error(`Polling interval must be at least ${this.#t}ms`);return}this.#u.set(e)}serverStateEffect=v(()=>{if(this.#f()){this.stopPollingProgress();return}!this.#s()&&this.#r()?setTimeout(()=>{this.startPollingProgress(),this.#c()},1e3):this.stopPollingProgress()},{allowSignalWrites:!0});#c(){if(this.#s())return;this.#s.set(!0);let e=this.#a()?.LastEventID,t=e==null?{}:{lastEventId:e,longpoll:!0,duration:"299s"};this.#o.getApiV1Serverstate(t).pipe(S(()=>this.#s.set(!1))).subscribe({next:s=>{this.#a()?.LastDataUpdateID!==s.LastDataUpdateID&&this.#n.getBackups(),this.#a.set(s)}})}#m(){this.#i.set(!0),this.#d.getApiV1Progressstate().pipe(D(e=>{let t=e.TaskID??null;return t===null?b(e):this.#o.getApiV1TaskByTaskid({taskid:t}).pipe(B(s=>g(f({},e),{task:s??null})))}),S(()=>this.#i.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,s=e.BackupID??null;if(t!==null&&s!==null){let n=this.#n.getBackupById(s);e.backup=n}e.task?.Status==="Completed"?this.#e.set(!1):this.#e.set(!0),this.#p.set(e)},error:e=>{e.status===404&&this.#e.set(!1)}})}static \u0275fac=function(t){return new(t||a)};static \u0275prov=I({token:a,factory:a.\u0275fac,providedIn:"root"})};function G(a,e){if(a&1&&(l(0,"div",2),p(1),o(),w(2,"spk-progress-bar",3)),a&2){let t,s,n=h();u(),k("",(t=n.statusData())==null||t.task==null?null:t.task.Status," - ",(t=n.statusData())==null||t.backup==null||t.backup.Backup==null?null:t.backup.Backup.Name,""),u(),x("value",(s=n.statusData())!=null&&s.OverallProgress?((s=n.statusData())==null?null:s.OverallProgress)*100:3)}}function F(a,e){if(a&1&&(l(0,"div",2),p(1),E(2,"appRelativeTime"),o()),a&2){let t,s=h();u(),k("",(t=s.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",R(2,2,s.nextBackup().time),"")}}function J(a,e){a&1&&(l(0,"div",2),p(1,"No scheduled tasks"),o())}function U(a,e){a&1&&(l(0,"div",2),p(1,"Loading..."),o())}var P=class a{#t=r(d);statusData=this.#t.statusData;serverState=this.#t.serverState;nextBackup=c(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));ngOnInit(){this.#t.start()}ngOnDestroy(){this.#t.stop()}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=y({type:a,selectors:[["app-status-bar"]],standalone:!0,features:[A],decls:6,vars:1,consts:[[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"raised","primary",3,"value"]],template:function(t,s){if(t&1&&(l(0,"div",0)(1,"div",1),_(2,G,3,3)(3,F,3,4,"div",2)(4,J,2,0,"div",2)(5,U,2,0,"div",2),o()()),t&2){let n;u(2),T(!((n=s.statusData())==null||n.task==null)&&n.task.Status&&((n=s.statusData())==null||n.task==null?null:n.task.Status)!=="Completed"?2:s.nextBackup()?3:!s.statusData()||((n=s.statusData())==null||n.task==null?null:n.task.Status)==="Completed"?4:5)}},dependencies:[L,m],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{P as a};
package/chunk-KV674FA2.js DELETED
@@ -1 +0,0 @@
1
- import{a as b,b as J}from"./chunk-DNHLTHLR.js";import{b as W}from"./chunk-CUYURNCB.js";import{a as R,b as j,c as x,d as M,e as O,g as A,k as I,n as L,q as V,s as $}from"./chunk-VXKI3RQB.js";import{a as Q}from"./chunk-2EGLLTER.js";import{a as D}from"./chunk-NAZLO3UY.js";import{a as G,f as U,g as q,k as z,t as H}from"./chunk-3UHRO33D.js";import{H as P,W as T,X as N}from"./chunk-X2IPCPJN.js";import"./chunk-2MDIWOW5.js";import{u as B}from"./chunk-JE2I63Y6.js";import{$ as C,Bb as f,F as g,M as w,Pb as i,Ra as p,Sb as v,X as s,Xb as _,Ya as d,Yb as F,eb as S,jb as k,lb as u,ob as E,qc as h,sb as r,tb as n,ub as l}from"./chunk-67JGZ4NF.js";import"./chunk-7CGTOI24.js";var Y=()=>["/"];function Z(c,e){c&1&&(r(0,"spk-form-field")(1,"label",9),i(2,"Password"),n(),l(3,"input",10),n(),r(4,"spk-form-field")(5,"label",11),i(6,"Repeat password"),n(),l(7,"input",12),n())}var m=new V,y=class c{#t=s(D);#e=s(P);#o=s(T);#n=s(B);#i=s(Q);isExporting=d(!1);exportType=d("file");exportedCmd=d(null);exportForm=m.group({exportPasswords:m.control(!0),encryption:m.control(!1,[x.required,J()]),password:m.control("",[b(e=>e?.value.encryption,[x.required])]),repeatPassword:m.control("",[b(e=>e?.value.encryption,[x.required])])});exportFormSignal=W(this.exportForm.valueChanges);encryptionFieldSignal=h(()=>this.exportFormSignal()?.encryption??!1);activeBackup=h(()=>this.#i.backups().find(e=>e.Backup?.ID===this.#e.snapshot.params.id));submit(){this.isExporting.set(!0),this.exportType()==="file"?this.#t.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(w(e=>{let a=o=>{let t=Object.entries(o);return t?"?"+t.map(([K,X])=>`${K}=${X}`).join("&"):""};return this.#n.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${a({exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0,token:e.Token})}`,{responseType:"blob"})}),g(()=>this.isExporting.set(!1))).subscribe({next:e=>{let o=this.activeBackup()?.Backup?.Name??"Backup",t=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(e,`${o}.${t}`),this.#o.navigate(["/"])},error:e=>{console.log("err",e)}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(g(()=>this.isExporting.set(!1))).subscribe({next:e=>{console.log("res",e),this.exportedCmd.set(e.Command??null)},error:e=>{console.log("err",e)}})}downloadFile(e,a){let o=window.URL.createObjectURL(e),t=document.createElement("a");t.href=o,t.download=a,t.click(),window.URL.revokeObjectURL(o)}static \u0275fac=function(a){return new(a||c)};static \u0275cmp=C({type:c,selectors:[["app-export"]],standalone:!0,features:[_],decls:31,vars:12,consts:[[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["spk-button","",1,"raised","primary",3,"click"],["autocomplete","off",3,"formGroup"],["type","button",3,"click"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],["type","checkbox","formControlName","encryption"],["for","password"],["type","password","id","password","formControlName","password"],["for","repeatPassword"],["type","password","id","repeatPassword","formControlName","repeatPassword"]],template:function(a,o){if(a&1&&(r(0,"header")(1,"h3"),i(2," Export backup configuration "),r(3,"div",0)(4,"button",1)(5,"spk-icon"),i(6,"arrow-left"),n(),i(7," Back "),n(),r(8,"button",2),f("click",function(){return o.submit()}),r(9,"spk-icon"),i(10,"export"),n(),i(11," Export "),n()()(),r(12,"p"),i(13),n()(),r(14,"form",3)(15,"spk-button-group")(16,"button",4),f("click",function(){return o.exportType.set("cmd")}),r(17,"spk-icon"),i(18,"terminal-window"),n(),i(19," As command line "),n(),r(20,"button",4),f("click",function(){return o.exportType.set("file")}),r(21,"spk-icon"),i(22,"file"),n(),i(23," To file "),n()(),r(24,"spk-toggle",5),i(25," Export passwords "),l(26,"input",6),n(),r(27,"spk-toggle",7),i(28," Encrypt file "),l(29,"input",8),n(),S(30,Z,8,0),n()),a&2){let t;p(4),k("routerLink",F(11,Y)),p(4),u("loading",o.isExporting()),p(5),v("#",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.ID,": ",(t=o.activeBackup())==null||t.Backup==null?null:t.Backup.Name,""),p(),k("formGroup",o.exportForm),p(2),u("active",o.exportType()==="cmd"),p(4),u("active",o.exportType()==="file"),p(10),E(o.encryptionFieldSignal()?30:-1)}},dependencies:[$,A,j,R,M,O,I,L,N,U,H,G,z,q],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{y as default};