@duplicati/ngclient 0.0.124 → 0.0.131

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 (212) hide show
  1. package/assets/spk.woff2 +0 -0
  2. package/chunk-3IRKJXHE.js +6 -0
  3. package/chunk-3KIPRGE2.js +1 -0
  4. package/chunk-3PYBMCOB.js +1 -0
  5. package/chunk-4D2NUH5S.js +1 -0
  6. package/chunk-5PEBIF7G.js +1 -0
  7. package/chunk-5ZODA7EN.js +1 -0
  8. package/{chunk-XUPWJEL7.js → chunk-76QLZQIX.js} +1 -1
  9. package/chunk-7LEXBIXG.js +1 -0
  10. package/{chunk-VZBWK3XF.js → chunk-ABF3SFY5.js} +1 -1
  11. package/chunk-AGU2PEL5.js +1 -0
  12. package/{chunk-6EWRKJSC.js → chunk-B5FKLIHW.js} +1 -1
  13. package/chunk-BISTLAYK.js +1 -0
  14. package/chunk-CPQOWCF6.js +2 -0
  15. package/chunk-CTRHZCKS.js +1 -0
  16. package/chunk-CYLI6ZJ3.js +1 -0
  17. package/chunk-D6CQCWWK.js +1 -0
  18. package/chunk-DDV32SDB.js +1 -0
  19. package/chunk-DM2VSIZA.js +1 -0
  20. package/chunk-E4Z6XEMU.js +1 -0
  21. package/chunk-EKZRKTLM.js +1 -0
  22. package/chunk-EUDKD2JW.js +1 -0
  23. package/{chunk-OQPUBCLB.js → chunk-F74MXVWD.js} +1 -1
  24. package/chunk-FLMFEFKM.js +1 -0
  25. package/chunk-FO4W6SOP.js +1 -0
  26. package/chunk-FPLBURO5.js +1 -0
  27. package/chunk-FWVOVJCG.js +2 -0
  28. package/chunk-FWZV4DTQ.js +2 -0
  29. package/chunk-GGT3NXAX.js +1 -0
  30. package/chunk-GU7U3EFF.js +1 -0
  31. package/chunk-GW37Y5Z7.js +1 -0
  32. package/{chunk-S75WBVE3.js → chunk-HWCTRSCV.js} +1 -1
  33. package/chunk-IAE5MH6W.js +1 -0
  34. package/{chunk-DLJSVAM2.js → chunk-JWFYA3TO.js} +1 -1
  35. package/{chunk-4V45XF67.js → chunk-K5AQUIEE.js} +1 -1
  36. package/{chunk-KPH4ZAFT.js → chunk-K5P3KNHL.js} +1 -1
  37. package/chunk-K6EZTPNQ.js +7 -0
  38. package/chunk-KA4H3PM5.js +1 -0
  39. package/chunk-KQAO2YHR.js +1 -0
  40. package/chunk-KU6D4KVX.js +1 -0
  41. package/{chunk-GQGMGFDX.js → chunk-KV7SEZ24.js} +1 -1
  42. package/chunk-LPSXYSH2.js +1 -0
  43. package/{chunk-QUOBR5MG.js → chunk-LQ2PCH6Q.js} +1 -1
  44. package/chunk-LXOONGVP.js +1 -0
  45. package/chunk-LZGUK3CQ.js +2 -0
  46. package/chunk-MHALSLG3.js +1 -0
  47. package/chunk-MXNLMTFY.js +1 -0
  48. package/{chunk-HIW2CN45.js → chunk-N334RUEQ.js} +1 -1
  49. package/chunk-OMZ3W4RW.js +1 -0
  50. package/{chunk-6DNRCK5D.js → chunk-P45GAY6A.js} +1 -1
  51. package/chunk-P4ZYFRD3.js +1 -0
  52. package/chunk-Q3ILJYED.js +1 -0
  53. package/{chunk-ED7PHXLX.js → chunk-Q5QHAGHB.js} +1 -1
  54. package/chunk-R3TWV35H.js +4 -0
  55. package/chunk-R43ZLOB3.js +1 -0
  56. package/chunk-RFBJR3ZC.js +1 -0
  57. package/chunk-RVLLX2SW.js +1 -0
  58. package/chunk-RZWJA6W3.js +3 -0
  59. package/chunk-TOP2X7ZJ.js +1 -0
  60. package/chunk-TUOSYDUU.js +1 -0
  61. package/chunk-U4OAPG74.js +2 -0
  62. package/chunk-UFZFKKK7.js +1 -0
  63. package/chunk-UHRBTTCA.js +1 -0
  64. package/chunk-UIC4BWTY.js +1 -0
  65. package/chunk-UUG7G5LZ.js +1 -0
  66. package/chunk-UVLJAD66.js +1 -0
  67. package/chunk-UYWLCW5G.js +1 -0
  68. package/chunk-VKD4Y3YQ.js +1 -0
  69. package/chunk-VNYGRDVP.js +1 -0
  70. package/chunk-W2XSKJJ5.js +1 -0
  71. package/chunk-WIDMAJIO.js +1 -0
  72. package/{chunk-M5RL4LRX.js → chunk-WIJ3HW7I.js} +1 -1
  73. package/chunk-WWHML7QK.js +56 -0
  74. package/chunk-WY2KPAVB.js +1 -0
  75. package/chunk-XD26KCAE.js +1 -0
  76. package/chunk-XHQO75TB.js +1 -0
  77. package/chunk-XOZRQBBW.js +1 -0
  78. package/chunk-YBFTPRR5.js +1 -0
  79. package/chunk-YFRT24NZ.js +1 -0
  80. package/chunk-YXIITZFM.js +1 -0
  81. package/{chunk-TCEYGZ6D.js → chunk-Z24H5QI5.js} +2 -2
  82. package/chunk-Z2VKXGKY.js +1 -0
  83. package/chunk-ZE5QAS4M.js +1 -0
  84. package/index.html +2 -2
  85. package/locale/messages.cs.json +4 -2
  86. package/locale/messages.da.json +5 -2
  87. package/locale/messages.de.json +48 -8
  88. package/locale/messages.en_GB.json +4 -2
  89. package/locale/messages.es.json +4 -2
  90. package/locale/messages.fi.json +7 -2
  91. package/locale/messages.fr.json +7 -2
  92. package/locale/messages.hu.json +6 -2
  93. package/locale/messages.it.json +32 -21
  94. package/locale/messages.ja_JP.json +8 -2
  95. package/locale/messages.nl_NL.json +53 -21
  96. package/locale/messages.pl.json +9 -2
  97. package/locale/messages.pt.json +8 -2
  98. package/locale/messages.pt_BR.json +10 -3
  99. package/locale/messages.ru.json +8 -2
  100. package/locale/messages.sr_RS.json +9 -2
  101. package/locale/messages.sv_SE.json +9 -2
  102. package/locale/messages.zh_CN.json +376 -48
  103. package/locale/messages.zh_TW.json +9 -2
  104. package/main-JMFOP3Z7.js +1 -0
  105. package/package.json +1 -1
  106. package/polyfills-COBLRUJG.js +1 -0
  107. package/{styles-P2AEFLUS.css → styles-ORRIWQJ5.css} +1 -1
  108. package/chunk-25II37TZ.js +0 -1
  109. package/chunk-2CXHZS6X.js +0 -1
  110. package/chunk-3UPH6V5C.js +0 -1
  111. package/chunk-43BIRTPL.js +0 -1
  112. package/chunk-4DR45FFH.js +0 -2
  113. package/chunk-4KE2I7OA.js +0 -7
  114. package/chunk-5C7A7QU6.js +0 -1
  115. package/chunk-65U4B3NQ.js +0 -2
  116. package/chunk-65ZYAFPI.js +0 -1
  117. package/chunk-6LCXRM3A.js +0 -1
  118. package/chunk-6V7W7EKR.js +0 -1
  119. package/chunk-7733YRW4.js +0 -1
  120. package/chunk-7BATQNXR.js +0 -1
  121. package/chunk-7CGTOI24.js +0 -1
  122. package/chunk-7V4TPS4B.js +0 -1
  123. package/chunk-ABANCAM5.js +0 -1
  124. package/chunk-BLKMQJR5.js +0 -1
  125. package/chunk-BTZEFBCF.js +0 -1
  126. package/chunk-CZDE5P4F.js +0 -1
  127. package/chunk-DYTQQHMA.js +0 -1
  128. package/chunk-EBXJGPRA.js +0 -1
  129. package/chunk-EPDVUHOD.js +0 -1
  130. package/chunk-ERHGJIOQ.js +0 -2
  131. package/chunk-ESAGJOZZ.js +0 -1
  132. package/chunk-FP6LM56A.js +0 -1
  133. package/chunk-FQ55IACT.js +0 -1
  134. package/chunk-FSKPPAVO.js +0 -1
  135. package/chunk-FWQNZX5S.js +0 -1
  136. package/chunk-GUKBMCIX.js +0 -1
  137. package/chunk-IVGY6D4N.js +0 -56
  138. package/chunk-J52HAQJB.js +0 -1
  139. package/chunk-KAFLAM3J.js +0 -1
  140. package/chunk-LUKUBN2Z.js +0 -1
  141. package/chunk-N5FH4YAX.js +0 -2
  142. package/chunk-O7TLFEOP.js +0 -1
  143. package/chunk-OAWADV5X.js +0 -1
  144. package/chunk-ONV552SH.js +0 -1
  145. package/chunk-PDODLSPH.js +0 -1
  146. package/chunk-PSVKQSIF.js +0 -1
  147. package/chunk-QMFHJSCY.js +0 -1
  148. package/chunk-QXUYK52Y.js +0 -1
  149. package/chunk-RODUXVVT.js +0 -1
  150. package/chunk-S5G6POQS.js +0 -1
  151. package/chunk-SIHNMW2E.js +0 -1
  152. package/chunk-SPAJFGWZ.js +0 -1
  153. package/chunk-SX2OA5DO.js +0 -1
  154. package/chunk-T5WAKBP3.js +0 -1
  155. package/chunk-T7QZL5YJ.js +0 -2
  156. package/chunk-TH7CWIA2.js +0 -1
  157. package/chunk-U4XTHU5I.js +0 -1
  158. package/chunk-U7YVVKGQ.js +0 -1
  159. package/chunk-UEYPJIJG.js +0 -1
  160. package/chunk-UI4M5G5W.js +0 -1
  161. package/chunk-URJQR7VG.js +0 -1
  162. package/chunk-V7XW25LT.js +0 -1
  163. package/chunk-VPTXHYYV.js +0 -6
  164. package/chunk-VTTBYFSH.js +0 -1
  165. package/chunk-VYAA7G37.js +0 -1
  166. package/chunk-W66AXGSW.js +0 -1
  167. package/chunk-WOTGLW6Y.js +0 -4
  168. package/chunk-WRKRV6RQ.js +0 -1
  169. package/chunk-XATCN7MB.js +0 -1
  170. package/chunk-XHPURHO2.js +0 -1
  171. package/chunk-YUZKJZ22.js +0 -1
  172. package/chunk-YZDNOP4R.js +0 -1
  173. package/chunk-Z2TE5POZ.js +0 -1
  174. package/chunk-ZMLGDPCK.js +0 -3
  175. package/locale/angular/cs.mjs +0 -21
  176. package/locale/angular/da.mjs +0 -17
  177. package/locale/angular/de.mjs +0 -17
  178. package/locale/angular/en-GB.mjs +0 -17
  179. package/locale/angular/es.mjs +0 -19
  180. package/locale/angular/extra/cs.mjs +0 -11
  181. package/locale/angular/extra/da.mjs +0 -11
  182. package/locale/angular/extra/de.mjs +0 -11
  183. package/locale/angular/extra/en-GB.mjs +0 -11
  184. package/locale/angular/extra/es.mjs +0 -11
  185. package/locale/angular/extra/fi.mjs +0 -11
  186. package/locale/angular/extra/fr.mjs +0 -11
  187. package/locale/angular/extra/hu.mjs +0 -11
  188. package/locale/angular/extra/it.mjs +0 -11
  189. package/locale/angular/extra/ja.mjs +0 -11
  190. package/locale/angular/extra/nl.mjs +0 -11
  191. package/locale/angular/extra/pl.mjs +0 -11
  192. package/locale/angular/extra/pt.mjs +0 -11
  193. package/locale/angular/extra/ru.mjs +0 -11
  194. package/locale/angular/extra/sr.mjs +0 -11
  195. package/locale/angular/extra/sv.mjs +0 -11
  196. package/locale/angular/extra/zh-Hans.mjs +0 -11
  197. package/locale/angular/extra/zh-Hant.mjs +0 -11
  198. package/locale/angular/fi.mjs +0 -17
  199. package/locale/angular/fr.mjs +0 -19
  200. package/locale/angular/hu.mjs +0 -17
  201. package/locale/angular/it.mjs +0 -19
  202. package/locale/angular/ja.mjs +0 -15
  203. package/locale/angular/nl.mjs +0 -17
  204. package/locale/angular/pl.mjs +0 -21
  205. package/locale/angular/pt.mjs +0 -19
  206. package/locale/angular/ru.mjs +0 -21
  207. package/locale/angular/sr.mjs +0 -19
  208. package/locale/angular/sv.mjs +0 -17
  209. package/locale/angular/zh-Hans.mjs +0 -15
  210. package/locale/angular/zh-Hant.mjs +0 -15
  211. package/main-JBXUJPKQ.js +0 -1
  212. package/polyfills-6QHLTIIN.js +0 -1
@@ -1 +1 @@
1
- import{W as pe}from"./chunk-4KE2I7OA.js";var ve=60,ye=ve*60,Le=ye*24,St=Le*7,g=1e3,I=ve*g,x=ye*g,F=Le*g,ee=St*g,q="millisecond",j="second",O="minute",b="hour",S="day",W="week",v="month",te="quarter",D="year",z="date",Se="YYYY-MM-DDTHH:mm:ssZ",de="Invalid Date",De=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,re=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ae={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var me=function(e,t,r){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(r)+e},Dt=function(e){var t=-e.utcOffset(),r=Math.abs(t),a=Math.floor(r/60),s=r%60;return(t<=0?"+":"-")+me(a,2,"0")+":"+me(s,2,"0")},kt=function n(e,t){if(e.date()<t.date())return-n(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(r,v),s=t-a<0,i=e.clone().add(r+(s?-1:1),v);return+(-(r+(t-a)/(s?a-i:i-a))||0)},gt=function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},Ht=function(e){var t={M:v,y:D,w:W,d:S,D:z,h:b,m:O,s:j,ms:q,Q:te};return t[e]||String(e||"").toLowerCase().replace(/s$/,"")},$t=function(e){return e===void 0},ke={s:me,z:Dt,m:kt,a:gt,p:Ht,u:$t};var V="en",J={};J[V]=ae;var ge="$isDayjsObject",le=function(e){return e instanceof se||!!(e&&e[ge])},ne=function n(e,t,r){var a;if(!e)return V;if(typeof e=="string"){var s=e.toLowerCase();J[s]&&(a=s),t&&(J[s]=t,a=s);var i=e.split("-");if(!a&&i.length>1)return n(i[0])}else{var o=e.name;J[o]=e,a=o}return!r&&a&&(V=a),a||!r&&V},h=function(e,t){if(le(e))return e.clone();var r=typeof t=="object"?t:{};return r.date=e,r.args=arguments,new se(r)},Tt=function(e,t){return h(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},l=ke;l.l=ne;l.i=le;l.w=Tt;var Ct=function(e){var t=e.date,r=e.utc;if(t===null)return new Date(NaN);if(l.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var a=t.match(De);if(a){var s=a[2]-1||0,i=(a[7]||"0").substring(0,3);return r?new Date(Date.UTC(a[1],s,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)):new Date(a[1],s,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)}}return new Date(t)},se=function(){function n(t){this.$L=ne(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[ge]=!0}var e=n.prototype;return e.parse=function(r){this.$d=Ct(r),this.init()},e.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},e.$utils=function(){return l},e.isValid=function(){return this.$d.toString()!==de},e.isSame=function(r,a){var s=h(r);return this.startOf(a)<=s&&s<=this.endOf(a)},e.isAfter=function(r,a){return h(r)<this.startOf(a)},e.isBefore=function(r,a){return this.endOf(a)<h(r)},e.$g=function(r,a,s){return l.u(r)?this[a]:this.set(s,r)},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(r,a){var s=this,i=l.u(a)?!0:a,o=l.p(r),_=function(w,Y){var c=l.w(s.$u?Date.UTC(s.$y,Y,w):new Date(s.$y,Y,w),s);return i?c:c.endOf(S)},u=function(w,Y){var c=[0,0,0,0],L=[23,59,59,999];return l.w(s.toDate()[w].apply(s.toDate("s"),(i?c:L).slice(Y)),s)},m=this.$W,f=this.$M,M=this.$D,p="set"+(this.$u?"UTC":"");switch(o){case D:return i?_(1,0):_(31,11);case v:return i?_(1,f):_(0,f+1);case W:{var y=this.$locale().weekStart||0,N=(m<y?m+7:m)-y;return _(i?M-N:M+(6-N),f)}case S:case z:return u(p+"Hours",0);case b:return u(p+"Minutes",1);case O:return u(p+"Seconds",2);case j:return u(p+"Milliseconds",3);default:return this.clone()}},e.endOf=function(r){return this.startOf(r,!1)},e.$set=function(r,a){var s,i=l.p(r),o="set"+(this.$u?"UTC":""),_=(s={},s[S]=o+"Date",s[z]=o+"Date",s[v]=o+"Month",s[D]=o+"FullYear",s[b]=o+"Hours",s[O]=o+"Minutes",s[j]=o+"Seconds",s[q]=o+"Milliseconds",s)[i],u=i===S?this.$D+(a-this.$W):a;if(i===v||i===D){var m=this.clone().set(z,1);m.$d[_](u),m.init(),this.$d=m.set(z,Math.min(this.$D,m.daysInMonth())).$d}else _&&this.$d[_](u);return this.init(),this},e.set=function(r,a){return this.clone().$set(r,a)},e.get=function(r){return this[l.p(r)]()},e.add=function(r,a){var s=this,i;r=Number(r);var o=l.p(a),_=function(M){var p=h(s);return l.w(p.date(p.date()+Math.round(M*r)),s)};if(o===v)return this.set(v,this.$M+r);if(o===D)return this.set(D,this.$y+r);if(o===S)return _(1);if(o===W)return _(7);var u=(i={},i[O]=I,i[b]=x,i[j]=g,i)[o]||1,m=this.$d.getTime()+r*u;return l.w(m,this)},e.subtract=function(r,a){return this.add(r*-1,a)},e.format=function(r){var a=this,s=this.$locale();if(!this.isValid())return s.invalidDate||de;var i=r||Se,o=l.z(this),_=this.$H,u=this.$m,m=this.$M,f=s.weekdays,M=s.months,p=s.meridiem,y=function(c,L,E,B){return c&&(c[L]||c(a,i))||E[L].slice(0,B)},N=function(c){return l.s(_%12||12,c,"0")},C=p||function(Y,c,L){var E=Y<12?"AM":"PM";return L?E.toLowerCase():E},w=function(c){switch(c){case"YY":return String(a.$y).slice(-2);case"YYYY":return l.s(a.$y,4,"0");case"M":return m+1;case"MM":return l.s(m+1,2,"0");case"MMM":return y(s.monthsShort,m,M,3);case"MMMM":return y(M,m);case"D":return a.$D;case"DD":return l.s(a.$D,2,"0");case"d":return String(a.$W);case"dd":return y(s.weekdaysMin,a.$W,f,2);case"ddd":return y(s.weekdaysShort,a.$W,f,3);case"dddd":return f[a.$W];case"H":return String(_);case"HH":return l.s(_,2,"0");case"h":return N(1);case"hh":return N(2);case"a":return C(_,u,!0);case"A":return C(_,u,!1);case"m":return String(u);case"mm":return l.s(u,2,"0");case"s":return String(a.$s);case"ss":return l.s(a.$s,2,"0");case"SSS":return l.s(a.$ms,3,"0");case"Z":return o;default:break}return null};return i.replace(re,function(Y,c){return c||w(Y)||o.replace(":","")})},e.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},e.diff=function(r,a,s){var i=this,o=l.p(a),_=h(r),u=(_.utcOffset()-this.utcOffset())*I,m=this-_,f=function(){return l.m(i,_)},M;switch(o){case D:M=f()/12;break;case v:M=f();break;case te:M=f()/3;break;case W:M=(m-u)/ee;break;case S:M=(m-u)/F;break;case b:M=m/x;break;case O:M=m/I;break;case j:M=m/g;break;default:M=m;break}return s?M:l.a(M)},e.daysInMonth=function(){return this.endOf(v).$D},e.$locale=function(){return J[this.$L]},e.locale=function(r,a){if(!r)return this.$L;var s=this.clone(),i=ne(r,a,!0);return i&&(s.$L=i),s},e.clone=function(){return l.w(this.$d,this)},e.toDate=function(){return new Date(this.valueOf())},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toISOString=function(){return this.$d.toISOString()},e.toString=function(){return this.$d.toUTCString()},n}(),He=se.prototype;h.prototype=He;[["$ms",q],["$s",j],["$m",O],["$H",b],["$W",S],["$M",v],["$y",D],["$D",z]].forEach(function(n){He[n[1]]=function(e){return this.$g(e,n[0],n[1])}});h.extend=function(n,e){return n.$i||(n(e,se,h),n.$i=!0),h};h.locale=ne;h.isDayjs=le;h.unix=function(n){return h(n*1e3)};h.en=J[V];h.Ls=J;h.p={};var d=h;var oe=F*365,Me=oe/12,wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,Z={years:oe,months:Me,days:F,hours:x,minutes:I,seconds:g,milliseconds:1,weeks:ee},ie=function(e){return e instanceof we},Te,A,Q=function(e,t,r){return new we(e,r,t.$l)},X=function(e){return A.p(e)+"s"},Ce=function(e){return e<0},U=function(e){return Ce(e)?Math.ceil(e):Math.floor(e)},jt=function(e){return Math.abs(e)},R=function(e,t){return e?Ce(e)?{negative:!0,format:""+jt(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},we=function(){function n(t,r,a){var s=this;if(this.$d={},this.$l=a,t===void 0&&(this.$ms=0,this.parseFromMilliseconds()),r)return Q(t*Z[X(r)],this);if(typeof t=="number")return this.$ms=t,this.parseFromMilliseconds(),this;if(typeof t=="object")return Object.keys(t).forEach(function(u){s.$d[X(u)]=t[u]}),this.calMilliseconds(),this;if(typeof t=="string"){var i=t.match(wt);if(i){var o=i.slice(2),_=o.map(function(u){return u!=null?Number(u):0});return this.$d.years=_[0],this.$d.months=_[1],this.$d.weeks=_[2],this.$d.days=_[3],this.$d.hours=_[4],this.$d.minutes=_[5],this.$d.seconds=_[6],this.calMilliseconds(),this}}return this}var e=n.prototype;return e.calMilliseconds=function(){var r=this;this.$ms=Object.keys(this.$d).reduce(function(a,s){return a+(r.$d[s]||0)*Z[s]},0)},e.parseFromMilliseconds=function(){var r=this.$ms;this.$d.years=U(r/oe),r%=oe,this.$d.months=U(r/Me),r%=Me,this.$d.days=U(r/F),r%=F,this.$d.hours=U(r/x),r%=x,this.$d.minutes=U(r/I),r%=I,this.$d.seconds=U(r/g),r%=g,this.$d.milliseconds=r},e.toISOString=function(){var r=R(this.$d.years,"Y"),a=R(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=this.$d.weeks*7);var i=R(s,"D"),o=R(this.$d.hours,"H"),_=R(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(u*1e3)/1e3);var m=R(u,"S"),f=r.negative||a.negative||i.negative||o.negative||_.negative||m.negative,M=o.format||_.format||m.format?"T":"",p=f?"-":"",y=p+"P"+r.format+a.format+i.format+M+o.format+_.format+m.format;return y==="P"||y==="-P"?"P0D":y},e.toJSON=function(){return this.toISOString()},e.format=function(r){var a=r||"YYYY-MM-DDTHH:mm:ss",s={Y:this.$d.years,YY:A.s(this.$d.years,2,"0"),YYYY:A.s(this.$d.years,4,"0"),M:this.$d.months,MM:A.s(this.$d.months,2,"0"),D:this.$d.days,DD:A.s(this.$d.days,2,"0"),H:this.$d.hours,HH:A.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:A.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:A.s(this.$d.seconds,2,"0"),SSS:A.s(this.$d.milliseconds,3,"0")};return a.replace(re,function(i,o){return o||String(s[i])})},e.as=function(r){return this.$ms/Z[X(r)]},e.get=function(r){var a=this.$ms,s=X(r);return s==="milliseconds"?a%=1e3:s==="weeks"?a=U(a/Z[s]):a=this.$d[s],a||0},e.add=function(r,a,s){var i;return a?i=r*Z[X(a)]:ie(r)?i=r.$ms:i=Q(r,this).$ms,Q(this.$ms+i*(s?-1:1),this)},e.subtract=function(r,a){return this.add(r,a,!0)},e.locale=function(r){var a=this.clone();return a.$l=r,a},e.clone=function(){return Q(this.$ms,this)},e.humanize=function(r){return Te().add(this.$ms,"ms").locale(this.$l).fromNow(!r)},e.valueOf=function(){return this.asMilliseconds()},e.milliseconds=function(){return this.get("milliseconds")},e.asMilliseconds=function(){return this.as("milliseconds")},e.seconds=function(){return this.get("seconds")},e.asSeconds=function(){return this.as("seconds")},e.minutes=function(){return this.get("minutes")},e.asMinutes=function(){return this.as("minutes")},e.hours=function(){return this.get("hours")},e.asHours=function(){return this.as("hours")},e.days=function(){return this.get("days")},e.asDays=function(){return this.as("days")},e.weeks=function(){return this.get("weeks")},e.asWeeks=function(){return this.as("weeks")},e.months=function(){return this.get("months")},e.asMonths=function(){return this.as("months")},e.years=function(){return this.get("years")},e.asYears=function(){return this.as("years")},n}(),$e=function(e,t,r){return e.add(t.years()*r,"y").add(t.months()*r,"M").add(t.days()*r,"d").add(t.hours()*r,"h").add(t.minutes()*r,"m").add(t.seconds()*r,"s").add(t.milliseconds()*r,"ms")},je=function(n,e,t){Te=t,A=t().$utils(),t.duration=function(s,i){var o=t.locale();return Q(s,{$l:o},i)},t.isDuration=ie;var r=e.prototype.add,a=e.prototype.subtract;e.prototype.add=function(s,i){return ie(s)?$e(this,s,1):r.bind(this)(s,i)},e.prototype.subtract=function(s,i){return ie(s)?$e(this,s,-1):a.bind(this)(s,i)}};var Oe=function(n,e,t){n=n||{};var r=e.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};t.en.relativeTime=a,r.fromToBase=function(o,_,u,m,f){for(var M=u.$locale().relativeTime||a,p=n.thresholds||[{l:"s",r:44,d:j},{l:"m",r:89},{l:"mm",r:44,d:O},{l:"h",r:89},{l:"hh",r:21,d:b},{l:"d",r:35},{l:"dd",r:25,d:S},{l:"M",r:45},{l:"MM",r:10,d:v},{l:"y",r:17},{l:"yy",d:D}],y=p.length,N,C,w,Y=0;Y<y;Y+=1){var c=p[Y];c.d&&(N=m?t(o).diff(u,c.d,!0):u.diff(o,c.d,!0));var L=(n.rounding||Math.round)(Math.abs(N));if(w=N>0,L<=c.r||!c.r){L<=1&&Y>0&&(c=p[Y-1]);var E=M[c.l];f&&(L=f(""+L)),typeof E=="string"?C=E.replace("%d",L):C=E(L,_,c.l,w);break}}if(_)return C;var B=w?M.future:M.past;return typeof B=="function"?B(C):B.replace("%s",C)};function s(o,_,u,m){return r.fromToBase(o,_,u,m)}r.to=function(o,_){return s(o,_,this,!0)},r.from=function(o,_){return s(o,_,this)};var i=function(_){return _.$u?t.utc():t()};r.toNow=function(o){return this.to(i(this),o)},r.fromNow=function(o){return this.from(i(this),o)}};function K(n){return n>1&&n<5&&~~(n/10)!==1}function H(n,e,t,r){var a=n+" ";switch(t){case"s":return e||r?"p\xE1r sekund":"p\xE1r sekundami";case"m":return e?"minuta":r?"minutu":"minutou";case"mm":return e||r?a+(K(n)?"minuty":"minut"):a+"minutami";case"h":return e?"hodina":r?"hodinu":"hodinou";case"hh":return e||r?a+(K(n)?"hodiny":"hodin"):a+"hodinami";case"d":return e||r?"den":"dnem";case"dd":return e||r?a+(K(n)?"dny":"dn\xED"):a+"dny";case"M":return e||r?"m\u011Bs\xEDc":"m\u011Bs\xEDcem";case"MM":return e||r?a+(K(n)?"m\u011Bs\xEDce":"m\u011Bs\xEDc\u016F"):a+"m\u011Bs\xEDci";case"y":return e||r?"rok":"rokem";case"yy":return e||r?a+(K(n)?"roky":"let"):a+"lety"}}var be={name:"cs",weekdays:"ned\u011Ble_pond\u011Bl\xED_\xFAter\xFD_st\u0159eda_\u010Dtvrtek_p\xE1tek_sobota".split("_"),weekdaysShort:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),weekdaysMin:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),months:"leden_\xFAnor_b\u0159ezen_duben_kv\u011Bten_\u010Derven_\u010Dervenec_srpen_z\xE1\u0159\xED_\u0159\xEDjen_listopad_prosinec".split("_"),monthsShort:"led_\xFAno_b\u0159e_dub_kv\u011B_\u010Dvn_\u010Dvc_srp_z\xE1\u0159_\u0159\xEDj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:H,m:H,mm:H,h:H,hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H}};d.locale(be,null,!0);var Ae=be;var Ne={name:"da",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8n._man._tirs._ons._tors._fre._l\xF8r.".split("_"),weekdaysMin:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"}};d.locale(Ne,null,!0);var Ee=Ne;var Ot={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function $(n,e,t){var r=Ot[t];return Array.isArray(r)&&(r=r[e?0:1]),r.replace("%d",n)}var Ie={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:$,m:$,mm:$,h:$,hh:$,d:$,dd:$,M:$,MM:$,y:$,yy:$}};d.locale(Ie,null,!0);var ze=Ie;var xe={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};d.locale(xe,null,!0);var Fe=xe;var Je={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},ordinal:function(e){return e+"\xBA"}};d.locale(Je,null,!0);var Ue=Je;function T(n,e,t,r){var a={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"p\xE4iv\xE4",dd:"%d p\xE4iv\xE4\xE4",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_nelj\xE4_viisi_kuusi_seitsem\xE4n_kahdeksan_yhdeks\xE4n".split("_")},s={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"p\xE4iv\xE4n",dd:"%d p\xE4iv\xE4n",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_nelj\xE4n_viiden_kuuden_seitsem\xE4n_kahdeksan_yhdeks\xE4n".split("_")},i=r&&!e?s:a,o=i[t];return n<10?o.replace("%d",i.numbers[n]):o.replace("%d",n)}var We={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xE4kuu_hein\xE4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xE4_hein\xE4_elo_syys_loka_marras_joulu".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s p\xE4\xE4st\xE4",past:"%s sitten",s:T,m:T,mm:T,h:T,hh:T,d:T,dd:T,M:T,MM:T,y:T,yy:T},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};d.locale(We,null,!0);var Re=We;var Pe={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){var t=e===1?"er":"";return""+e+t}};d.locale(Pe,null,!0);var Ge=Pe;var Be={name:"hu",weekdays:"vas\xE1rnap_h\xE9tf\u0151_kedd_szerda_cs\xFCt\xF6rt\xF6k_p\xE9ntek_szombat".split("_"),weekdaysShort:"vas_h\xE9t_kedd_sze_cs\xFCt_p\xE9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"janu\xE1r_febru\xE1r_m\xE1rcius_\xE1prilis_m\xE1jus_j\xFAnius_j\xFAlius_augusztus_szeptember_okt\xF3ber_november_december".split("_"),monthsShort:"jan_feb_m\xE1rc_\xE1pr_m\xE1j_j\xFAn_j\xFAl_aug_szept_okt_nov_dec".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s m\xFAlva",past:"%s",s:function(e,t,r,a){return"n\xE9h\xE1ny m\xE1sodperc"+(a||t?"":"e")},m:function(e,t,r,a){return"egy perc"+(a||t?"":"e")},mm:function(e,t,r,a){return e+" perc"+(a||t?"":"e")},h:function(e,t,r,a){return"egy "+(a||t?"\xF3ra":"\xF3r\xE1ja")},hh:function(e,t,r,a){return e+" "+(a||t?"\xF3ra":"\xF3r\xE1ja")},d:function(e,t,r,a){return"egy "+(a||t?"nap":"napja")},dd:function(e,t,r,a){return e+" "+(a||t?"nap":"napja")},M:function(e,t,r,a){return"egy "+(a||t?"h\xF3nap":"h\xF3napja")},MM:function(e,t,r,a){return e+" "+(a||t?"h\xF3nap":"h\xF3napja")},y:function(e,t,r,a){return"egy "+(a||t?"\xE9v":"\xE9ve")},yy:function(e,t,r,a){return e+" "+(a||t?"\xE9v":"\xE9ve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};d.locale(Be,null,!0);var qe=Be;var Ve={name:"it",weekdays:"domenica_luned\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"\xBA"}};d.locale(Ve,null,!0);var Ze=Ve;var Xe={name:"ja",weekdays:"\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"),weekdaysShort:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),weekdaysMin:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e){return e+"\u65E5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5(ddd) HH:mm"},meridiem:function(e){return e<12?"\u5348\u524D":"\u5348\u5F8C"},relativeTime:{future:"%s\u5F8C",past:"%s\u524D",s:"\u6570\u79D2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65E5",dd:"%d\u65E5",M:"1\u30F6\u6708",MM:"%d\u30F6\u6708",y:"1\u5E74",yy:"%d\u5E74"}};d.locale(Xe,null,!0);var Qe=Xe;var Ke={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return"["+e+(e===1||e===8||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};d.locale(Ke,null,!0);var et=Ke;function _e(n){return n%10<5&&n%10>1&&~~(n/10)%10!==1}function P(n,e,t){var r=n+" ";switch(t){case"m":return e?"minuta":"minut\u0119";case"mm":return r+(_e(n)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return r+(_e(n)?"godziny":"godzin");case"MM":return r+(_e(n)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(_e(n)?"lata":"lat")}}var tt="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_"),rt="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"),bt=/D MMMM/,ce=function(e,t){return bt.test(t)?tt[e.month()]:rt[e.month()]};ce.s=rt;ce.f=tt;var at={name:"pl",weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015Br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015Ar_Cz_Pt_So".split("_"),months:ce,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:P,mm:P,h:P,hh:P,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:P,y:"rok",yy:P},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};d.locale(at,null,!0);var nt=at;var st={name:"pt",weekdays:"domingo_segunda-feira_ter\xE7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xE1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_Sa".split("_"),months:"janeiro_fevereiro_mar\xE7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"\xBA"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xE0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xE0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xE1 %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xEAs",MM:"%d meses",y:"um ano",yy:"%d anos"}};d.locale(st,null,!0);var he=st;var it="\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"),ot="\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_"),_t="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),dt="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),ut=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function At(n,e){var t=n.split("_");return e%10===1&&e%100!==11?t[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?t[1]:t[2]}function G(n,e,t){var r={mm:e?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"};return t==="m"?e?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":n+" "+At(r[t],+n)}var fe=function(e,t){return ut.test(t)?it[e.month()]:ot[e.month()]};fe.s=ot;fe.f=it;var Ye=function(e,t){return ut.test(t)?_t[e.month()]:dt[e.month()]};Ye.s=dt;Ye.f=_t;var mt={name:"ru",weekdays:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u0432\u0441\u043A_\u043F\u043D\u0434_\u0432\u0442\u0440_\u0441\u0440\u0434_\u0447\u0442\u0432_\u043F\u0442\u043D_\u0441\u0431\u0442".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),months:fe,monthsShort:Ye,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",m:G,mm:G,h:"\u0447\u0430\u0441",hh:G,d:"\u0434\u0435\u043D\u044C",dd:G,M:"\u043C\u0435\u0441\u044F\u0446",MM:G,y:"\u0433\u043E\u0434",yy:G},ordinal:function(e){return e},meridiem:function(e){return e<4?"\u043D\u043E\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"}};d.locale(mt,null,!0);var lt=mt;var k={words:{m:["jedan minut","jednog minuta"],mm:["%d minut","%d minuta","%d minuta"],h:["jedan sat","jednog sata"],hh:["%d sat","%d sata","%d sati"],d:["jedan dan","jednog dana"],dd:["%d dan","%d dana","%d dana"],M:["jedan mesec","jednog meseca"],MM:["%d mesec","%d meseca","%d meseci"],y:["jednu godinu","jedne godine"],yy:["%d godinu","%d godine","%d godina"]},correctGrammarCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},relativeTimeFormatter:function(e,t,r,a){var s=k.words[r];if(r.length===1)return r==="y"&&t?"jedna godina":a||t?s[0]:s[1];var i=k.correctGrammarCase(e,s);return r==="yy"&&t&&i==="%d godinu"?e+" godina":i.replace("%d",e)}},Mt={name:"sr",weekdays:"Nedelja_Ponedeljak_Utorak_Sreda_\u010Cetvrtak_Petak_Subota".split("_"),weekdaysShort:"Ned._Pon._Uto._Sre._\u010Cet._Pet._Sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010De_pe_su".split("_"),months:"Januar_Februar_Mart_April_Maj_Jun_Jul_Avgust_Septembar_Oktobar_Novembar_Decembar".split("_"),monthsShort:"Jan._Feb._Mar._Apr._Maj_Jun_Jul_Avg._Sep._Okt._Nov._Dec.".split("_"),weekStart:1,relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:k.relativeTimeFormatter,mm:k.relativeTimeFormatter,h:k.relativeTimeFormatter,hh:k.relativeTimeFormatter,d:k.relativeTimeFormatter,dd:k.relativeTimeFormatter,M:k.relativeTimeFormatter,MM:k.relativeTimeFormatter,y:k.relativeTimeFormatter,yy:k.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};d.locale(Mt,null,!0);var ct=Mt;var ht={name:"sv",weekdays:"s\xF6ndag_m\xE5ndag_tisdag_onsdag_torsdag_fredag_l\xF6rdag".split("_"),weekdaysShort:"s\xF6n_m\xE5n_tis_ons_tor_fre_l\xF6r".split("_"),weekdaysMin:"s\xF6_m\xE5_ti_on_to_fr_l\xF6".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){var t=e%10,r=t===1||t===2?"a":"e";return"["+e+r+"]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},relativeTime:{future:"om %s",past:"f\xF6r %s sedan",s:"n\xE5gra sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xE5nad",MM:"%d m\xE5nader",y:"ett \xE5r",yy:"%d \xE5r"}};d.locale(ht,null,!0);var ft=ht;var Yt={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){switch(t){case"W":return e+"\u5468";default:return e+"\u65E5"}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,t){var r=e*100+t;return r<600?"\u51CC\u6668":r<900?"\u65E9\u4E0A":r<1100?"\u4E0A\u5348":r<1300?"\u4E2D\u5348":r<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};d.locale(Yt,null,!0);var pt=Yt;var vt={name:"zh-tw",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){switch(t){case"W":return e+"\u9031";default:return e+"\u65E5"}},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524D",s:"\u5E7E\u79D2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5C0F\u6642",hh:"%d \u5C0F\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500B\u6708",MM:"%d \u500B\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,t){var r=e*100+t;return r<600?"\u51CC\u6668":r<900?"\u65E9\u4E0A":r<1100?"\u4E0A\u5348":r<1300?"\u4E2D\u5348":r<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};d.locale(vt,null,!0);var yt=vt;var Lt={"en-US":ae,"en-GB":Fe,cs:Ae,da:Ee,de:ze,es:Ue,fi:Re,fr:Ge,hu:qe,it:Ze,"ja-JP":Qe,"nl-NL":et,pl:nt,pt:he,"pt-BR":he,ru:lt,"sr-RS":ct,"sv-SE":ft,"zh-CN":pt,"zh-TW":yt};var Nt=new pe("Dayjs"),Qr={provide:Nt,useFactory:()=>{let e=(localStorage.getItem("v1:duplicati:locale")??"en-US").split("-")[0];return d.extend(Oe),d.extend(je),d.locale(Lt[e]),d}};export{Nt as a,Qr as b};
1
+ import{V as pe}from"./chunk-K6EZTPNQ.js";var ve=60,ye=ve*60,Le=ye*24,St=Le*7,g=1e3,I=ve*g,x=ye*g,F=Le*g,ee=St*g,q="millisecond",j="second",O="minute",b="hour",S="day",W="week",v="month",te="quarter",D="year",z="date",Se="YYYY-MM-DDTHH:mm:ssZ",de="Invalid Date",De=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,re=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ae={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var me=function(e,t,r){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(r)+e},Dt=function(e){var t=-e.utcOffset(),r=Math.abs(t),a=Math.floor(r/60),s=r%60;return(t<=0?"+":"-")+me(a,2,"0")+":"+me(s,2,"0")},kt=function n(e,t){if(e.date()<t.date())return-n(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(r,v),s=t-a<0,i=e.clone().add(r+(s?-1:1),v);return+(-(r+(t-a)/(s?a-i:i-a))||0)},gt=function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},Ht=function(e){var t={M:v,y:D,w:W,d:S,D:z,h:b,m:O,s:j,ms:q,Q:te};return t[e]||String(e||"").toLowerCase().replace(/s$/,"")},$t=function(e){return e===void 0},ke={s:me,z:Dt,m:kt,a:gt,p:Ht,u:$t};var V="en",J={};J[V]=ae;var ge="$isDayjsObject",le=function(e){return e instanceof se||!!(e&&e[ge])},ne=function n(e,t,r){var a;if(!e)return V;if(typeof e=="string"){var s=e.toLowerCase();J[s]&&(a=s),t&&(J[s]=t,a=s);var i=e.split("-");if(!a&&i.length>1)return n(i[0])}else{var o=e.name;J[o]=e,a=o}return!r&&a&&(V=a),a||!r&&V},h=function(e,t){if(le(e))return e.clone();var r=typeof t=="object"?t:{};return r.date=e,r.args=arguments,new se(r)},Tt=function(e,t){return h(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},l=ke;l.l=ne;l.i=le;l.w=Tt;var Ct=function(e){var t=e.date,r=e.utc;if(t===null)return new Date(NaN);if(l.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var a=t.match(De);if(a){var s=a[2]-1||0,i=(a[7]||"0").substring(0,3);return r?new Date(Date.UTC(a[1],s,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)):new Date(a[1],s,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)}}return new Date(t)},se=function(){function n(t){this.$L=ne(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[ge]=!0}var e=n.prototype;return e.parse=function(r){this.$d=Ct(r),this.init()},e.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},e.$utils=function(){return l},e.isValid=function(){return this.$d.toString()!==de},e.isSame=function(r,a){var s=h(r);return this.startOf(a)<=s&&s<=this.endOf(a)},e.isAfter=function(r,a){return h(r)<this.startOf(a)},e.isBefore=function(r,a){return this.endOf(a)<h(r)},e.$g=function(r,a,s){return l.u(r)?this[a]:this.set(s,r)},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(r,a){var s=this,i=l.u(a)?!0:a,o=l.p(r),_=function(w,Y){var c=l.w(s.$u?Date.UTC(s.$y,Y,w):new Date(s.$y,Y,w),s);return i?c:c.endOf(S)},u=function(w,Y){var c=[0,0,0,0],L=[23,59,59,999];return l.w(s.toDate()[w].apply(s.toDate("s"),(i?c:L).slice(Y)),s)},m=this.$W,f=this.$M,M=this.$D,p="set"+(this.$u?"UTC":"");switch(o){case D:return i?_(1,0):_(31,11);case v:return i?_(1,f):_(0,f+1);case W:{var y=this.$locale().weekStart||0,N=(m<y?m+7:m)-y;return _(i?M-N:M+(6-N),f)}case S:case z:return u(p+"Hours",0);case b:return u(p+"Minutes",1);case O:return u(p+"Seconds",2);case j:return u(p+"Milliseconds",3);default:return this.clone()}},e.endOf=function(r){return this.startOf(r,!1)},e.$set=function(r,a){var s,i=l.p(r),o="set"+(this.$u?"UTC":""),_=(s={},s[S]=o+"Date",s[z]=o+"Date",s[v]=o+"Month",s[D]=o+"FullYear",s[b]=o+"Hours",s[O]=o+"Minutes",s[j]=o+"Seconds",s[q]=o+"Milliseconds",s)[i],u=i===S?this.$D+(a-this.$W):a;if(i===v||i===D){var m=this.clone().set(z,1);m.$d[_](u),m.init(),this.$d=m.set(z,Math.min(this.$D,m.daysInMonth())).$d}else _&&this.$d[_](u);return this.init(),this},e.set=function(r,a){return this.clone().$set(r,a)},e.get=function(r){return this[l.p(r)]()},e.add=function(r,a){var s=this,i;r=Number(r);var o=l.p(a),_=function(M){var p=h(s);return l.w(p.date(p.date()+Math.round(M*r)),s)};if(o===v)return this.set(v,this.$M+r);if(o===D)return this.set(D,this.$y+r);if(o===S)return _(1);if(o===W)return _(7);var u=(i={},i[O]=I,i[b]=x,i[j]=g,i)[o]||1,m=this.$d.getTime()+r*u;return l.w(m,this)},e.subtract=function(r,a){return this.add(r*-1,a)},e.format=function(r){var a=this,s=this.$locale();if(!this.isValid())return s.invalidDate||de;var i=r||Se,o=l.z(this),_=this.$H,u=this.$m,m=this.$M,f=s.weekdays,M=s.months,p=s.meridiem,y=function(c,L,E,B){return c&&(c[L]||c(a,i))||E[L].slice(0,B)},N=function(c){return l.s(_%12||12,c,"0")},C=p||function(Y,c,L){var E=Y<12?"AM":"PM";return L?E.toLowerCase():E},w=function(c){switch(c){case"YY":return String(a.$y).slice(-2);case"YYYY":return l.s(a.$y,4,"0");case"M":return m+1;case"MM":return l.s(m+1,2,"0");case"MMM":return y(s.monthsShort,m,M,3);case"MMMM":return y(M,m);case"D":return a.$D;case"DD":return l.s(a.$D,2,"0");case"d":return String(a.$W);case"dd":return y(s.weekdaysMin,a.$W,f,2);case"ddd":return y(s.weekdaysShort,a.$W,f,3);case"dddd":return f[a.$W];case"H":return String(_);case"HH":return l.s(_,2,"0");case"h":return N(1);case"hh":return N(2);case"a":return C(_,u,!0);case"A":return C(_,u,!1);case"m":return String(u);case"mm":return l.s(u,2,"0");case"s":return String(a.$s);case"ss":return l.s(a.$s,2,"0");case"SSS":return l.s(a.$ms,3,"0");case"Z":return o;default:break}return null};return i.replace(re,function(Y,c){return c||w(Y)||o.replace(":","")})},e.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},e.diff=function(r,a,s){var i=this,o=l.p(a),_=h(r),u=(_.utcOffset()-this.utcOffset())*I,m=this-_,f=function(){return l.m(i,_)},M;switch(o){case D:M=f()/12;break;case v:M=f();break;case te:M=f()/3;break;case W:M=(m-u)/ee;break;case S:M=(m-u)/F;break;case b:M=m/x;break;case O:M=m/I;break;case j:M=m/g;break;default:M=m;break}return s?M:l.a(M)},e.daysInMonth=function(){return this.endOf(v).$D},e.$locale=function(){return J[this.$L]},e.locale=function(r,a){if(!r)return this.$L;var s=this.clone(),i=ne(r,a,!0);return i&&(s.$L=i),s},e.clone=function(){return l.w(this.$d,this)},e.toDate=function(){return new Date(this.valueOf())},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toISOString=function(){return this.$d.toISOString()},e.toString=function(){return this.$d.toUTCString()},n}(),He=se.prototype;h.prototype=He;[["$ms",q],["$s",j],["$m",O],["$H",b],["$W",S],["$M",v],["$y",D],["$D",z]].forEach(function(n){He[n[1]]=function(e){return this.$g(e,n[0],n[1])}});h.extend=function(n,e){return n.$i||(n(e,se,h),n.$i=!0),h};h.locale=ne;h.isDayjs=le;h.unix=function(n){return h(n*1e3)};h.en=J[V];h.Ls=J;h.p={};var d=h;var oe=F*365,Me=oe/12,wt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,Z={years:oe,months:Me,days:F,hours:x,minutes:I,seconds:g,milliseconds:1,weeks:ee},ie=function(e){return e instanceof we},Te,A,Q=function(e,t,r){return new we(e,r,t.$l)},X=function(e){return A.p(e)+"s"},Ce=function(e){return e<0},U=function(e){return Ce(e)?Math.ceil(e):Math.floor(e)},jt=function(e){return Math.abs(e)},R=function(e,t){return e?Ce(e)?{negative:!0,format:""+jt(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},we=function(){function n(t,r,a){var s=this;if(this.$d={},this.$l=a,t===void 0&&(this.$ms=0,this.parseFromMilliseconds()),r)return Q(t*Z[X(r)],this);if(typeof t=="number")return this.$ms=t,this.parseFromMilliseconds(),this;if(typeof t=="object")return Object.keys(t).forEach(function(u){s.$d[X(u)]=t[u]}),this.calMilliseconds(),this;if(typeof t=="string"){var i=t.match(wt);if(i){var o=i.slice(2),_=o.map(function(u){return u!=null?Number(u):0});return this.$d.years=_[0],this.$d.months=_[1],this.$d.weeks=_[2],this.$d.days=_[3],this.$d.hours=_[4],this.$d.minutes=_[5],this.$d.seconds=_[6],this.calMilliseconds(),this}}return this}var e=n.prototype;return e.calMilliseconds=function(){var r=this;this.$ms=Object.keys(this.$d).reduce(function(a,s){return a+(r.$d[s]||0)*Z[s]},0)},e.parseFromMilliseconds=function(){var r=this.$ms;this.$d.years=U(r/oe),r%=oe,this.$d.months=U(r/Me),r%=Me,this.$d.days=U(r/F),r%=F,this.$d.hours=U(r/x),r%=x,this.$d.minutes=U(r/I),r%=I,this.$d.seconds=U(r/g),r%=g,this.$d.milliseconds=r},e.toISOString=function(){var r=R(this.$d.years,"Y"),a=R(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=this.$d.weeks*7);var i=R(s,"D"),o=R(this.$d.hours,"H"),_=R(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(u*1e3)/1e3);var m=R(u,"S"),f=r.negative||a.negative||i.negative||o.negative||_.negative||m.negative,M=o.format||_.format||m.format?"T":"",p=f?"-":"",y=p+"P"+r.format+a.format+i.format+M+o.format+_.format+m.format;return y==="P"||y==="-P"?"P0D":y},e.toJSON=function(){return this.toISOString()},e.format=function(r){var a=r||"YYYY-MM-DDTHH:mm:ss",s={Y:this.$d.years,YY:A.s(this.$d.years,2,"0"),YYYY:A.s(this.$d.years,4,"0"),M:this.$d.months,MM:A.s(this.$d.months,2,"0"),D:this.$d.days,DD:A.s(this.$d.days,2,"0"),H:this.$d.hours,HH:A.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:A.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:A.s(this.$d.seconds,2,"0"),SSS:A.s(this.$d.milliseconds,3,"0")};return a.replace(re,function(i,o){return o||String(s[i])})},e.as=function(r){return this.$ms/Z[X(r)]},e.get=function(r){var a=this.$ms,s=X(r);return s==="milliseconds"?a%=1e3:s==="weeks"?a=U(a/Z[s]):a=this.$d[s],a||0},e.add=function(r,a,s){var i;return a?i=r*Z[X(a)]:ie(r)?i=r.$ms:i=Q(r,this).$ms,Q(this.$ms+i*(s?-1:1),this)},e.subtract=function(r,a){return this.add(r,a,!0)},e.locale=function(r){var a=this.clone();return a.$l=r,a},e.clone=function(){return Q(this.$ms,this)},e.humanize=function(r){return Te().add(this.$ms,"ms").locale(this.$l).fromNow(!r)},e.valueOf=function(){return this.asMilliseconds()},e.milliseconds=function(){return this.get("milliseconds")},e.asMilliseconds=function(){return this.as("milliseconds")},e.seconds=function(){return this.get("seconds")},e.asSeconds=function(){return this.as("seconds")},e.minutes=function(){return this.get("minutes")},e.asMinutes=function(){return this.as("minutes")},e.hours=function(){return this.get("hours")},e.asHours=function(){return this.as("hours")},e.days=function(){return this.get("days")},e.asDays=function(){return this.as("days")},e.weeks=function(){return this.get("weeks")},e.asWeeks=function(){return this.as("weeks")},e.months=function(){return this.get("months")},e.asMonths=function(){return this.as("months")},e.years=function(){return this.get("years")},e.asYears=function(){return this.as("years")},n}(),$e=function(e,t,r){return e.add(t.years()*r,"y").add(t.months()*r,"M").add(t.days()*r,"d").add(t.hours()*r,"h").add(t.minutes()*r,"m").add(t.seconds()*r,"s").add(t.milliseconds()*r,"ms")},je=function(n,e,t){Te=t,A=t().$utils(),t.duration=function(s,i){var o=t.locale();return Q(s,{$l:o},i)},t.isDuration=ie;var r=e.prototype.add,a=e.prototype.subtract;e.prototype.add=function(s,i){return ie(s)?$e(this,s,1):r.bind(this)(s,i)},e.prototype.subtract=function(s,i){return ie(s)?$e(this,s,-1):a.bind(this)(s,i)}};var Oe=function(n,e,t){n=n||{};var r=e.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};t.en.relativeTime=a,r.fromToBase=function(o,_,u,m,f){for(var M=u.$locale().relativeTime||a,p=n.thresholds||[{l:"s",r:44,d:j},{l:"m",r:89},{l:"mm",r:44,d:O},{l:"h",r:89},{l:"hh",r:21,d:b},{l:"d",r:35},{l:"dd",r:25,d:S},{l:"M",r:45},{l:"MM",r:10,d:v},{l:"y",r:17},{l:"yy",d:D}],y=p.length,N,C,w,Y=0;Y<y;Y+=1){var c=p[Y];c.d&&(N=m?t(o).diff(u,c.d,!0):u.diff(o,c.d,!0));var L=(n.rounding||Math.round)(Math.abs(N));if(w=N>0,L<=c.r||!c.r){L<=1&&Y>0&&(c=p[Y-1]);var E=M[c.l];f&&(L=f(""+L)),typeof E=="string"?C=E.replace("%d",L):C=E(L,_,c.l,w);break}}if(_)return C;var B=w?M.future:M.past;return typeof B=="function"?B(C):B.replace("%s",C)};function s(o,_,u,m){return r.fromToBase(o,_,u,m)}r.to=function(o,_){return s(o,_,this,!0)},r.from=function(o,_){return s(o,_,this)};var i=function(_){return _.$u?t.utc():t()};r.toNow=function(o){return this.to(i(this),o)},r.fromNow=function(o){return this.from(i(this),o)}};function K(n){return n>1&&n<5&&~~(n/10)!==1}function H(n,e,t,r){var a=n+" ";switch(t){case"s":return e||r?"p\xE1r sekund":"p\xE1r sekundami";case"m":return e?"minuta":r?"minutu":"minutou";case"mm":return e||r?a+(K(n)?"minuty":"minut"):a+"minutami";case"h":return e?"hodina":r?"hodinu":"hodinou";case"hh":return e||r?a+(K(n)?"hodiny":"hodin"):a+"hodinami";case"d":return e||r?"den":"dnem";case"dd":return e||r?a+(K(n)?"dny":"dn\xED"):a+"dny";case"M":return e||r?"m\u011Bs\xEDc":"m\u011Bs\xEDcem";case"MM":return e||r?a+(K(n)?"m\u011Bs\xEDce":"m\u011Bs\xEDc\u016F"):a+"m\u011Bs\xEDci";case"y":return e||r?"rok":"rokem";case"yy":return e||r?a+(K(n)?"roky":"let"):a+"lety"}}var be={name:"cs",weekdays:"ned\u011Ble_pond\u011Bl\xED_\xFAter\xFD_st\u0159eda_\u010Dtvrtek_p\xE1tek_sobota".split("_"),weekdaysShort:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),weekdaysMin:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),months:"leden_\xFAnor_b\u0159ezen_duben_kv\u011Bten_\u010Derven_\u010Dervenec_srpen_z\xE1\u0159\xED_\u0159\xEDjen_listopad_prosinec".split("_"),monthsShort:"led_\xFAno_b\u0159e_dub_kv\u011B_\u010Dvn_\u010Dvc_srp_z\xE1\u0159_\u0159\xEDj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:H,m:H,mm:H,h:H,hh:H,d:H,dd:H,M:H,MM:H,y:H,yy:H}};d.locale(be,null,!0);var Ae=be;var Ne={name:"da",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8n._man._tirs._ons._tors._fre._l\xF8r.".split("_"),weekdaysMin:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"}};d.locale(Ne,null,!0);var Ee=Ne;var Ot={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function $(n,e,t){var r=Ot[t];return Array.isArray(r)&&(r=r[e?0:1]),r.replace("%d",n)}var Ie={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:$,m:$,mm:$,h:$,hh:$,d:$,dd:$,M:$,MM:$,y:$,yy:$}};d.locale(Ie,null,!0);var ze=Ie;var xe={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};d.locale(xe,null,!0);var Fe=xe;var Je={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},ordinal:function(e){return e+"\xBA"}};d.locale(Je,null,!0);var Ue=Je;function T(n,e,t,r){var a={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"p\xE4iv\xE4",dd:"%d p\xE4iv\xE4\xE4",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_nelj\xE4_viisi_kuusi_seitsem\xE4n_kahdeksan_yhdeks\xE4n".split("_")},s={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"p\xE4iv\xE4n",dd:"%d p\xE4iv\xE4n",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_nelj\xE4n_viiden_kuuden_seitsem\xE4n_kahdeksan_yhdeks\xE4n".split("_")},i=r&&!e?s:a,o=i[t];return n<10?o.replace("%d",i.numbers[n]):o.replace("%d",n)}var We={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xE4kuu_hein\xE4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xE4_hein\xE4_elo_syys_loka_marras_joulu".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s p\xE4\xE4st\xE4",past:"%s sitten",s:T,m:T,mm:T,h:T,hh:T,d:T,dd:T,M:T,MM:T,y:T,yy:T},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};d.locale(We,null,!0);var Re=We;var Pe={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){var t=e===1?"er":"";return""+e+t}};d.locale(Pe,null,!0);var Ge=Pe;var Be={name:"hu",weekdays:"vas\xE1rnap_h\xE9tf\u0151_kedd_szerda_cs\xFCt\xF6rt\xF6k_p\xE9ntek_szombat".split("_"),weekdaysShort:"vas_h\xE9t_kedd_sze_cs\xFCt_p\xE9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"janu\xE1r_febru\xE1r_m\xE1rcius_\xE1prilis_m\xE1jus_j\xFAnius_j\xFAlius_augusztus_szeptember_okt\xF3ber_november_december".split("_"),monthsShort:"jan_feb_m\xE1rc_\xE1pr_m\xE1j_j\xFAn_j\xFAl_aug_szept_okt_nov_dec".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s m\xFAlva",past:"%s",s:function(e,t,r,a){return"n\xE9h\xE1ny m\xE1sodperc"+(a||t?"":"e")},m:function(e,t,r,a){return"egy perc"+(a||t?"":"e")},mm:function(e,t,r,a){return e+" perc"+(a||t?"":"e")},h:function(e,t,r,a){return"egy "+(a||t?"\xF3ra":"\xF3r\xE1ja")},hh:function(e,t,r,a){return e+" "+(a||t?"\xF3ra":"\xF3r\xE1ja")},d:function(e,t,r,a){return"egy "+(a||t?"nap":"napja")},dd:function(e,t,r,a){return e+" "+(a||t?"nap":"napja")},M:function(e,t,r,a){return"egy "+(a||t?"h\xF3nap":"h\xF3napja")},MM:function(e,t,r,a){return e+" "+(a||t?"h\xF3nap":"h\xF3napja")},y:function(e,t,r,a){return"egy "+(a||t?"\xE9v":"\xE9ve")},yy:function(e,t,r,a){return e+" "+(a||t?"\xE9v":"\xE9ve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};d.locale(Be,null,!0);var qe=Be;var Ve={name:"it",weekdays:"domenica_luned\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"\xBA"}};d.locale(Ve,null,!0);var Ze=Ve;var Xe={name:"ja",weekdays:"\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"),weekdaysShort:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),weekdaysMin:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e){return e+"\u65E5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5(ddd) HH:mm"},meridiem:function(e){return e<12?"\u5348\u524D":"\u5348\u5F8C"},relativeTime:{future:"%s\u5F8C",past:"%s\u524D",s:"\u6570\u79D2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65E5",dd:"%d\u65E5",M:"1\u30F6\u6708",MM:"%d\u30F6\u6708",y:"1\u5E74",yy:"%d\u5E74"}};d.locale(Xe,null,!0);var Qe=Xe;var Ke={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return"["+e+(e===1||e===8||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};d.locale(Ke,null,!0);var et=Ke;function _e(n){return n%10<5&&n%10>1&&~~(n/10)%10!==1}function P(n,e,t){var r=n+" ";switch(t){case"m":return e?"minuta":"minut\u0119";case"mm":return r+(_e(n)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return r+(_e(n)?"godziny":"godzin");case"MM":return r+(_e(n)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(_e(n)?"lata":"lat")}}var tt="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_"),rt="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"),bt=/D MMMM/,ce=function(e,t){return bt.test(t)?tt[e.month()]:rt[e.month()]};ce.s=rt;ce.f=tt;var at={name:"pl",weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015Br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015Ar_Cz_Pt_So".split("_"),months:ce,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:P,mm:P,h:P,hh:P,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:P,y:"rok",yy:P},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};d.locale(at,null,!0);var nt=at;var st={name:"pt",weekdays:"domingo_segunda-feira_ter\xE7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xE1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_Sa".split("_"),months:"janeiro_fevereiro_mar\xE7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"\xBA"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xE0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xE0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xE1 %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xEAs",MM:"%d meses",y:"um ano",yy:"%d anos"}};d.locale(st,null,!0);var he=st;var it="\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"),ot="\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_"),_t="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),dt="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),ut=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function At(n,e){var t=n.split("_");return e%10===1&&e%100!==11?t[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?t[1]:t[2]}function G(n,e,t){var r={mm:e?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"};return t==="m"?e?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":n+" "+At(r[t],+n)}var fe=function(e,t){return ut.test(t)?it[e.month()]:ot[e.month()]};fe.s=ot;fe.f=it;var Ye=function(e,t){return ut.test(t)?_t[e.month()]:dt[e.month()]};Ye.s=dt;Ye.f=_t;var mt={name:"ru",weekdays:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u0432\u0441\u043A_\u043F\u043D\u0434_\u0432\u0442\u0440_\u0441\u0440\u0434_\u0447\u0442\u0432_\u043F\u0442\u043D_\u0441\u0431\u0442".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),months:fe,monthsShort:Ye,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",m:G,mm:G,h:"\u0447\u0430\u0441",hh:G,d:"\u0434\u0435\u043D\u044C",dd:G,M:"\u043C\u0435\u0441\u044F\u0446",MM:G,y:"\u0433\u043E\u0434",yy:G},ordinal:function(e){return e},meridiem:function(e){return e<4?"\u043D\u043E\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"}};d.locale(mt,null,!0);var lt=mt;var k={words:{m:["jedan minut","jednog minuta"],mm:["%d minut","%d minuta","%d minuta"],h:["jedan sat","jednog sata"],hh:["%d sat","%d sata","%d sati"],d:["jedan dan","jednog dana"],dd:["%d dan","%d dana","%d dana"],M:["jedan mesec","jednog meseca"],MM:["%d mesec","%d meseca","%d meseci"],y:["jednu godinu","jedne godine"],yy:["%d godinu","%d godine","%d godina"]},correctGrammarCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},relativeTimeFormatter:function(e,t,r,a){var s=k.words[r];if(r.length===1)return r==="y"&&t?"jedna godina":a||t?s[0]:s[1];var i=k.correctGrammarCase(e,s);return r==="yy"&&t&&i==="%d godinu"?e+" godina":i.replace("%d",e)}},Mt={name:"sr",weekdays:"Nedelja_Ponedeljak_Utorak_Sreda_\u010Cetvrtak_Petak_Subota".split("_"),weekdaysShort:"Ned._Pon._Uto._Sre._\u010Cet._Pet._Sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010De_pe_su".split("_"),months:"Januar_Februar_Mart_April_Maj_Jun_Jul_Avgust_Septembar_Oktobar_Novembar_Decembar".split("_"),monthsShort:"Jan._Feb._Mar._Apr._Maj_Jun_Jul_Avg._Sep._Okt._Nov._Dec.".split("_"),weekStart:1,relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:k.relativeTimeFormatter,mm:k.relativeTimeFormatter,h:k.relativeTimeFormatter,hh:k.relativeTimeFormatter,d:k.relativeTimeFormatter,dd:k.relativeTimeFormatter,M:k.relativeTimeFormatter,MM:k.relativeTimeFormatter,y:k.relativeTimeFormatter,yy:k.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};d.locale(Mt,null,!0);var ct=Mt;var ht={name:"sv",weekdays:"s\xF6ndag_m\xE5ndag_tisdag_onsdag_torsdag_fredag_l\xF6rdag".split("_"),weekdaysShort:"s\xF6n_m\xE5n_tis_ons_tor_fre_l\xF6r".split("_"),weekdaysMin:"s\xF6_m\xE5_ti_on_to_fr_l\xF6".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){var t=e%10,r=t===1||t===2?"a":"e";return"["+e+r+"]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},relativeTime:{future:"om %s",past:"f\xF6r %s sedan",s:"n\xE5gra sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xE5nad",MM:"%d m\xE5nader",y:"ett \xE5r",yy:"%d \xE5r"}};d.locale(ht,null,!0);var ft=ht;var Yt={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){switch(t){case"W":return e+"\u5468";default:return e+"\u65E5"}},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,t){var r=e*100+t;return r<600?"\u51CC\u6668":r<900?"\u65E9\u4E0A":r<1100?"\u4E0A\u5348":r<1300?"\u4E2D\u5348":r<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};d.locale(Yt,null,!0);var pt=Yt;var vt={name:"zh-tw",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){switch(t){case"W":return e+"\u9031";default:return e+"\u65E5"}},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524D",s:"\u5E7E\u79D2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5C0F\u6642",hh:"%d \u5C0F\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500B\u6708",MM:"%d \u500B\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,t){var r=e*100+t;return r<600?"\u51CC\u6668":r<900?"\u65E9\u4E0A":r<1100?"\u4E0A\u5348":r<1300?"\u4E2D\u5348":r<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};d.locale(vt,null,!0);var yt=vt;var Lt={"en-US":ae,"en-GB":Fe,cs:Ae,da:Ee,de:ze,es:Ue,fi:Re,fr:Ge,hu:qe,it:Ze,"ja-JP":Qe,"nl-NL":et,pl:nt,pt:he,"pt-BR":he,ru:lt,"sr-RS":ct,"sv-SE":ft,"zh-CN":pt,"zh-TW":yt};var Nt=new pe("Dayjs"),Qr={provide:Nt,useFactory:()=>{let e=(localStorage.getItem("v1:duplicati:locale")??"en-US").split("-")[0];return d.extend(Oe),d.extend(je),d.locale(Lt[e]),d}};export{Nt as a,Qr as b};
@@ -0,0 +1 @@
1
+ import{a as he}from"./chunk-Q3ILJYED.js";import{a as Ke}from"./chunk-WIJ3HW7I.js";import{a as be,b as se}from"./chunk-WY2KPAVB.js";import"./chunk-4D2NUH5S.js";import{a as Be}from"./chunk-XD26KCAE.js";import"./chunk-KQAO2YHR.js";import"./chunk-3PYBMCOB.js";import"./chunk-RHW5QVAY.js";import"./chunk-FPLBURO5.js";import{a as re}from"./chunk-JWFYA3TO.js";import"./chunk-3KIPRGE2.js";import"./chunk-UVLJAD66.js";import{b as Ie,e as ke}from"./chunk-7LEXBIXG.js";import"./chunk-P4ZYFRD3.js";import{a as W,g as ae,j as ye,k as xe,p as le,y as ve}from"./chunk-MHALSLG3.js";import{h as _e}from"./chunk-FWVOVJCG.js";import"./chunk-KV7SEZ24.js";import{la as V,oa as oe}from"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import{a as pe}from"./chunk-F74MXVWD.js";import"./chunk-LQ2PCH6Q.js";import{Bb as h,Gc as fe,Hb as L,Ib as A,Jb as _,Kb as p,Lb as d,Mb as $,Mc as ie,Nb as f,Oa as o,Ob as F,X as x,_a as X,_b as I,ba as D,bc as u,ca as R,cc as K,dc as N,fc as De,jc as Re,kc as $e,la as M,lc as z,pb as C,qb as m,r as U,rb as v,sb as B,tb as b,ub as w,vb as i,vc as c,wb as t,wc as E,xb as s,xc as S,yb as P,zb as G}from"./chunk-K6EZTPNQ.js";import{a as te}from"./chunk-EUDKD2JW.js";function we(n,a){n&1&&s(0,"spk-progress-bar",31)}function ze(n,a){n&1&&s(0,"div",34)}function Ve(n,a){n&1&&s(0,"div",35)}function We(n,a){n&1&&s(0,"div",36)}function je(n,a){if(n&1&&u(0),n&2){let e=F().$implicit;N(" (",e.data==null?null:e.data.WarningsActualLength," warnings) ")}}function Je(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),L(2,15),s(3,"spk-icon"),i(4,"div",46),s(5,"spk-icon",39),t(),A(),t(),i(6,"div",47)(7,"p"),_(8,16),c(9,"date"),t(),i(10,"p"),_(11,17),c(12,"date"),t(),i(13,"p"),_(14,18),c(15,"durationFormat"),t(),i(16,"p"),_(17,19),t(),s(18,"spk-divider"),i(19,"p"),_(20,20),t(),i(21,"p"),_(22,21),t()()(),i(23,"details",45)(24,"summary")(25,"spk-icon"),u(26,"file-archive"),t(),u(27," Compression phase "),i(28,"div",46)(29,"spk-icon",39),u(30,"caret-down"),t()()(),i(31,"div",47)(32,"p"),_(33,22),c(34,"date"),t(),i(35,"p"),_(36,23),c(37,"date"),t(),i(38,"p"),_(39,24),c(40,"durationFormat"),t(),s(41,"spk-divider"),i(42,"p"),_(43,25),c(44,"bytes"),t(),i(45,"p"),_(46,26),c(47,"bytes"),t(),i(48,"p"),_(49,27),c(50,"bytes"),t(),s(51,"spk-divider"),i(52,"p"),_(53,28),t(),i(54,"p"),_(55,29),t()()()),n&2){let e=F(2).$implicit;o(9),p(S(9,17,e.data==null||e.data.TestResults==null?null:e.data.TestResults.BeginTime,"medium")),d(8),o(3),p(S(12,20,e.data==null||e.data.TestResults==null?null:e.data.TestResults.EndTime,"medium")),d(11),o(3),p(E(15,23,e.data==null||e.data.TestResults==null?null:e.data.TestResults.Duration)),d(14),o(2),p(e.data==null||e.data.TestResults==null?null:e.data.TestResults.VerificationsActualLength),d(17),o(3),p(e.data==null||e.data.TestResults==null?null:e.data.TestResults.WarningsActualLength),d(20),o(2),p(e.data==null||e.data.TestResults==null?null:e.data.TestResults.ErrorsActualLength),d(22),o(12),p(S(34,25,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.BeginTime,"medium")),d(33),o(3),p(S(37,28,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.EndTime,"medium")),d(36),o(3),p(E(40,31,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.Duration)),d(39),o(4),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileCount)(E(44,33,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileSize)),d(43),o(3),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileCount)(E(47,35,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileSize)),d(46),o(3),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileCount)(E(50,37,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileSize)),d(49),o(3),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.WarningsActualLength),d(53),o(2),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.ErrorsActualLength),d(55)}}function qe(n,a){if(n&1&&(i(0,"code"),u(1),c(2,"json"),t()),n&2){let e=a.$implicit;o(),K(E(2,1,e))}}function He(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),L(2,30),s(3,"spk-icon"),i(4,"div",46),s(5,"spk-icon",39),t(),A(),t(),i(6,"div",47),B(7,qe,3,3,"code",null,v),t()()),n&2){let e=F(2).$implicit;o(5),p(e.data.VerificationsActualLength),d(2),o(2),b(e.data.Verifications)}}function Qe(n,a){if(n&1&&(i(0,"code"),u(1),c(2,"json"),t()),n&2){let e=a.$implicit;o(),K(E(2,1,e))}}function Ye(n,a){n&1&&(i(0,"p"),u(1,"No errors"),t())}function Ze(n,a){if(n&1&&(i(0,"code"),u(1),c(2,"json"),t()),n&2){let e=a.$implicit;o(),K(E(2,1,e))}}function en(n,a){if(n&1&&(i(0,"section",40)(1,"app-toggle-card",41),P(2,42),i(3,"h3"),_(4,0),t(),G(),P(5,43),i(6,"p"),_(7,1),c(8,"date"),t(),i(9,"p"),_(10,2),c(11,"date"),t(),i(12,"p"),_(13,3),c(14,"durationFormat"),t(),G(),t(),i(15,"app-toggle-card",41),P(16,42),i(17,"h3"),_(18,4),t(),G(),P(19,43),i(20,"p"),_(21,5),c(22,"bytes"),t(),i(23,"p"),_(24,6),c(25,"bytes"),t(),i(26,"p"),_(27,7),c(28,"bytes"),t(),i(29,"p"),_(30,8),c(31,"bytes"),t(),i(32,"p"),_(33,9),t(),i(34,"p"),_(35,10),t(),i(36,"p"),_(37,11),t(),G(),t(),i(38,"div",44),s(39,"spk-divider"),C(40,Je,56,39),C(41,He,9,1,"details",45),i(42,"details",45)(43,"summary"),L(44,12),s(45,"spk-icon"),i(46,"div",46),s(47,"spk-icon",39),t(),A(),t(),i(48,"div",47),B(49,Qe,3,3,"code",null,v),t()(),i(51,"details",45)(52,"summary"),L(53,13),s(54,"spk-icon"),i(55,"div",46),s(56,"spk-icon",39),t(),A(),t(),i(57,"div",47),C(58,Ye,2,0,"p"),B(59,Ze,3,3,"code",null,v),t()(),s(61,"spk-divider"),i(62,"details")(63,"summary"),L(64,14),s(65,"spk-icon"),i(66,"div",46),s(67,"spk-icon",39),t(),A(),t(),i(68,"code")(69,"button",48),u(70,"Copy"),t(),u(71),c(72,"json"),t()()()()),n&2){let e=F().$implicit;o(),w("disallowToggle",!0),o(7),p(S(8,22,e.data==null?null:e.data.BeginTime,"medium")),d(7),o(3),p(S(11,25,e.data==null?null:e.data.EndTime,"medium")),d(10),o(3),p(E(14,28,e.data==null?null:e.data.Duration)),d(13),o(),w("disallowToggle",!0),o(7),p(e.data==null?null:e.data.ExaminedFiles)(E(22,30,e.data==null?null:e.data.SizeOfExaminedFiles)),d(21),o(3),p(e.data==null?null:e.data.OpenedFiles)(E(25,32,e.data==null?null:e.data.SizeOfOpenedFiles)),d(24),o(3),p(e.data==null?null:e.data.AddedFiles)(E(28,34,e.data==null?null:e.data.SizeOfAddedFiles)),d(27),o(3),p(e.data==null?null:e.data.ModifiedFiles)(E(31,36,e.data==null?null:e.data.SizeOfModifiedFiles)),d(30),o(2),p(e.data==null?null:e.data.DeletedFiles),d(33),o(2),p(e.data==null?null:e.data.TooLargeFiles),d(35),o(2),p(e.data==null?null:e.data.FilesWithError),d(37),o(3),m((e.data==null?null:e.data.MainOperation)==="Backup"?40:-1),o(),m((e.data==null?null:e.data.MainOperation)==="Test"?41:-1),o(6),p(e.data==null?null:e.data.WarningsActualLength),d(44),o(2),b(e.data==null?null:e.data.Warnings),o(7),p(e.data==null?null:e.data.ErrorsActualLength),d(53),o(2),m((e.data==null||e.data.Errors==null?null:e.data.Errors.length)===0?58:-1),o(),b(e.data==null?null:e.data.Errors),o(12),N(" ",E(72,38,e.data)," ")}}function nn(n,a){if(n&1){let e=h();i(0,"article",32)(1,"header",33),f("click",function(){let g=D(e).$implicit,O=F();return R(O.toggleOpenEntry(g.id))}),C(2,ze,1,0,"div",34)(3,Ve,1,0,"div",35)(4,We,1,0,"div",36),i(5,"h3"),u(6),c(7,"date"),t(),i(8,"p"),u(9),C(10,je,1,1),t(),s(11,"div",37),i(12,"div",38)(13,"spk-icon",39),u(14,"caret-down"),t()()(),C(15,en,73,40,"section",40),t()}if(n&2){let e=a.$implicit,l=F();o(2),m(e.data!=null&&e.data.ErrorsActualLength&&(e.data==null?null:e.data.ErrorsActualLength)>0?2:e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?3:4),o(4),K(S(7,7,e.timestamp,"medium")),o(3),N(" ",e.data==null?null:e.data.MainOperation," "),o(),m(e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?10:-1),o(3),I("open",e.id===l.openEntry()),o(2),m(e.id===l.openEntry()?15:-1)}}var de=class n{#e=x(_e);backupId=ie.required();openEntry=M(null);pagination=M({offset:0,pagesize:100});resource=se({params:()=>te({id:this.backupId()},this.pagination()),stream:({params:a})=>this.#e.getApiV1BackupByIdLog({id:a.id,pagesize:100}).pipe(U(e=>e.map(l=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,type:l.Type,data:JSON.parse(l.Message),exception:JSON.stringify(l.Exception)==="{}"?null:l.Exception}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=X({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let a;a=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let l;l=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let g;g=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let O;O=$localize`Source files`;let k;k=$localize`Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let y;y=$localize`Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let j;j=$localize`Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let J;J=$localize`Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let q;q=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let H;H=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let T;T=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#46\uFFFD"}:START_TAG_DIV:${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_DIV:`,T=$(T);let Y;Y=$localize`${"\uFFFD#54\uFFFD"}:START_TAG_SPK_ICON:warning${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#55\uFFFD"}:START_TAG_DIV:${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#55\uFFFD"}:CLOSE_TAG_DIV:`,Y=$(Y);let Z;Z=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:notepad${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON: Complete log ${"\uFFFD#66\uFFFD"}:START_TAG_DIV:${"\uFFFD#67\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#66\uFFFD"}:CLOSE_TAG_DIV:`,Z=$(Z);let ee;ee=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ee=$(ee);let Fe;Fe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ge;ge=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ee;Ee=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ce;Ce=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let me;me=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Oe;Oe=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Te;Te=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Le;Le=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ae;Ae=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Se;Se=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Pe;Pe=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ge;Ge=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ne;Ne=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ne;return ne=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ne=$(ne),[a,e,l,g,O,k,y,j,J,q,H,Q,T,Y,Z,ee,Fe,ge,Ee,Ce,me,Oe,Te,Le,Ae,Se,Pe,Ge,Ne,Me,ne,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disallowToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],[1,"actions"],[1,"content"],["spk-button","",1,"small"]]},template:function(e,l){e&1&&(C(0,we,1,0,"spk-progress-bar",31),B(1,nn,16,10,"article",32,v)),e&2&&(m(l.resource.isLoading()?0:-1),o(),b(l.resource.value()))},dependencies:[Ke,xe,le,ae,W,re,V,pe,oe],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-3)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[open][_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-500);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-500)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-500)}"],changeDetection:0})};function tn(n,a){n&1&&s(0,"spk-progress-bar",1)}function on(n,a){n&1&&(L(0,0,1),s(1,"spk-icon"),A())}function an(n,a){n&1&&(L(0,0,2),s(1,"spk-icon"),A())}function ln(n,a){if(n&1){let e=h();i(0,"section",6)(1,"button",7),f("click",function(){D(e);let g=F(),O=g.$implicit,k=g.$index,y=F();return R(y.copyToClipboard(O.data,k))}),L(2,0),C(3,on,2,0)(4,an,2,0),A(),t(),i(5,"code"),u(6),c(7,"json"),t()()}if(n&2){let e=F(),l=e.$implicit,g=e.$index,O=F();o(),I("success",O.copiedFromIndex()===g),o(2),m(O.copiedFromIndex()===g?3:4),o(3),K(E(7,4,l.data))}}function _n(n,a){if(n&1){let e=h();i(0,"article",2)(1,"header",3),f("click",function(){let g=D(e).$implicit,O=F();return R(O.toggleOpenEntry(g.id))}),i(2,"h3"),u(3),c(4,"date"),t(),i(5,"div",4)(6,"spk-icon",5),u(7,"caret-down"),t()()(),C(8,ln,8,6,"section",6),t()}if(n&2){let e=a.$implicit,l=F();o(3),De("",S(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path),o(3),I("open",e.id===l.openEntry()),o(2),m(e.id===l.openEntry()?8:-1)}}var ce=class n{#e=x(_e);backupId=ie.required();openEntry=M(null);pagination=M({offset:0,pagesize:100});copiedFromIndex=M(null);resource=se({params:()=>te({id:this.backupId()},this.pagination()),stream:({params:a})=>this.#e.getApiV1BackupByIdRemotelog({id:a.id,pagesize:100}).pipe(U(e=>e.map((l,g)=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,operation:l.Operation,path:l.Path,data:typeof l.Data=="string"?JSON.parse(l.Data):null}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}copyToClipboard(a,e){let l=JSON.stringify(a,null,2);navigator.clipboard.writeText(l),this.copiedFromIndex.set(e),setTimeout(()=>{this.copiedFromIndex.set(null)},3e3)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=X({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let a;return a=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copied ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copy to clipboard ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,a=$(a),[a,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"],["spk-button","",1,"small",3,"click"]]},template:function(e,l){e&1&&(C(0,tn,1,0,"spk-progress-bar",1),B(1,_n,9,9,"article",2,v)),e&2&&(m(l.resource.isLoading()?0:-1),o(),b(l.resource.value()))},dependencies:[oe,le,W,V],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem;position:relative}.log-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:2rem;right:2rem;background:transparent}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}"],changeDetection:0})};function rn(n,a){if(n&1&&(u(0," - "),P(1),_(2,6),G(),u(3),c(4,"durationFormat")),n&2){F(2);let e=z(6);o(3),N(" ",E(4,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.LastBackupDuration)," ")}}function sn(n,a){n&1&&(P(0),_(1,7),G())}function pn(n,a){if(n&1&&(u(0),c(1,"bytes")),n&2){F(2);let e=z(6);N(" ",E(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.SourceFilesSize)," ")}}function dn(n,a){n&1&&(P(0),_(1,8),G())}function cn(n,a){if(n&1&&(u(0),c(1,"bytes")),n&2){F(2);let e=z(6);N(" ",E(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.TargetFilesSize)," ")}}function un(n,a){n&1&&(P(0),_(1,9),G())}function Fn(n,a){if(n&1&&(i(0,"spk-chip",19),_(1,10),t()),n&2){F(2);let e=z(6);o(),p(e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.BackupListCount),d(1)}}function gn(n,a){n&1&&(i(0,"spk-chip",20),_(1,11),t())}function En(n,a){if(n&1&&(i(0,"div",14)(1,"div",18)(2,"h3"),u(3),i(4,"spk-icon"),u(5,"database"),t()(),i(6,"p")(7,"span"),_(8,3),t(),u(9),c(10,"date"),C(11,rn,5,3)(12,sn,2,0,"ng-container"),t(),i(13,"p")(14,"span"),_(15,4),t(),C(16,pn,2,3)(17,dn,2,0,"ng-container"),t(),i(18,"p")(19,"span"),_(20,5),t(),C(21,cn,2,3)(22,un,2,0,"ng-container"),t()(),C(23,Fn,2,1,"spk-chip",19)(24,gn,2,0,"spk-chip",20),t()),n&2){let e=F(),l=z(6);o(3),N(" ",(l.Backup==null?null:l.Backup.Name)??e.MISSING_BACKUP_NAME," "),o(6),N(" ",S(10,6,l.Backup==null||l.Backup.Metadata==null?null:l.Backup.Metadata.LastBackupDate,"short")," "),o(2),m(!(l.Backup==null||l.Backup.Metadata==null)&&l.Backup.Metadata.LastBackupDuration?11:12),o(5),m(!(l.Backup==null||l.Backup.Metadata==null)&&l.Backup.Metadata.SourceFilesSize?16:17),o(5),m(!(l.Backup==null||l.Backup.Metadata==null)&&l.Backup.Metadata.TargetFilesSize?21:22),o(2),m(!(l.Backup==null||l.Backup.Metadata==null)&&l.Backup.Metadata.BackupListCount?23:24)}}function Cn(n,a){if(n&1&&s(0,"app-general-log",17),n&2){let e=F();w("backupId",e.backupId())}}function mn(n,a){if(n&1&&s(0,"app-remote-log",17),n&2){let e=F();w("backupId",e.backupId())}}var ue=class n{#e=x(Ie);#n=x(Be);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=M("general");backupId=be(this.#e.params.pipe(U(a=>a.id)));backup=fe(()=>{let a=this.backupId();return a?this.#n.getBackupById(a):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=X({type:n,selectors:[["app-log"]],decls:15,vars:8,consts:()=>{let a;a=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`General`;let l;l=$localize` Destination `;let g;g=$localize`Last successful backup:`;let O;O=$localize`Source:`;let k;k=$localize`Destination:`;let y;y=$localize`took`;let j;j=$localize`N/A`;let J;J=$localize`N/A`;let q;q=$localize`N/A`;let H;H=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[a,e,l,g,O,k,y,j,J,q,H,Q,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"backup"],[1,"primary"],["tab","",3,"click"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,l){if(e&1){let g=h();s(0,"app-status-bar"),i(1,"section")(2,"div",12)(3,"button",13),L(4,0),s(5,"spk-icon"),A(),t()(),Re(6),C(7,En,25,9,"div",14),i(8,"spk-tabs",15)(9,"button",16),f("click",function(){return D(g),R(l.activeTab.set("general"))}),_(10,1),t(),i(11,"button",16),f("click",function(){return D(g),R(l.activeTab.set("destination"))}),_(12,2),t()(),C(13,Cn,1,1,"app-general-log",17),C(14,mn,1,1,"app-remote-log",17),t()}if(e&2){o(6);let g=$e(l.backup());o(),m(g?7:-1),o(2),I("active",l.activeTab()==="general"),o(2),I("active",l.activeTab()==="destination"),o(2),m(l.activeTab()==="general"?13:-1),o(),m(l.activeTab()==="destination"?14:-1)}},dependencies:[ve,de,ce,ke,re,pe,V,he,W,ae,ye],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}spk-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}"],changeDetection:0})};export{ue as default};
@@ -0,0 +1,2 @@
1
+ import{a as V}from"./chunk-76QLZQIX.js";import{a as A,n as R,x as F}from"./chunk-MHALSLG3.js";import{la as N}from"./chunk-VKD4Y3YQ.js";import{Bb as k,Hc as x,Jb as m,Mc as C,Nb as w,Oa as l,Ob as r,X as E,Zb as G,_a as h,_b as v,ba as O,bc as s,ca as I,cc as L,dc as d,la as M,pb as p,qb as g,rb as u,sb as S,tb as f,ub as T,vb as o,vc as y,wb as i,xb as P,xc as $}from"./chunk-K6EZTPNQ.js";function B(n,t){n&1&&(o(0,"div",4),m(1,0),i())}function D(n,t){if(n&1&&(o(0,"li"),s(1),i()),n&2){let e=t.$implicit;l(),L(e)}}function U(n,t){if(n&1&&(o(0,"code")(1,"ol",15),S(2,D,2,1,"li",null,u),i()()),n&2){let e=r(2).$implicit,a=r(2);l(2),f(a.breakIntoLines(e.Exception))}}function X(n,t){if(n&1&&(o(0,"li"),s(1),i()),n&2){let e=t.$implicit;l(),L(e)}}function z(n,t){if(n&1&&(o(0,"code")(1,"ol",15),S(2,X,2,1,"li",null,u),i()()),n&2){let e=r(2).$implicit,a=r(2);l(2),f(a.breakIntoLines(e.Message))}}function W(n,t){if(n&1&&(o(0,"tr")(1,"td",12)(2,"spk-list",13)(3,"div",14),s(4),i(),o(5,"div",14),s(6),i(),o(7,"div",14),s(8),i(),o(9,"div",14),s(10),i(),o(11,"div",14),s(12),i()(),p(13,U,4,0,"code"),p(14,z,4,0,"code"),i()()),n&2){let e=r().$implicit;l(4),d("ID: ",e.ID),l(2),d("Type: ",e.Type),l(2),d("Tag: ",e.Tag),l(2),d("TaskID: ",e.TaskID),l(2),d("MessageID: ",e.MessageID),l(),g(e.Exception?13:-1),l(),g(e.Message?14:-1)}}function j(n,t){if(n&1){let e=k();o(0,"tr",10),w("click",function(){let _=O(e).$index,c=r(2);return I(c.toggleRow(_))}),o(1,"td"),s(2),y(3,"date"),i(),o(4,"td"),s(5),i(),o(6,"td",8)(7,"button",11)(8,"spk-icon"),s(9,"caret-down"),i()()()(),p(10,W,15,7,"tr")}if(n&2){let e=t.$implicit,a=t.$index,_=r(2);l(2),L($(3,5,e.When,"MMM dd. hh:mm")),l(3),L(_.subStringMessage(e.Message)),l(2),v("rotated-icon",a===_.openRowIndex()),l(3),g(a===_.openRowIndex()?10:-1)}}function H(n,t){if(n&1&&(o(0,"spk-table",6)(1,"tr",7)(2,"th"),m(3,1),i(),o(4,"th"),m(5,2),i(),P(6,"th",8),i(),S(7,j,11,8,null,null,u),o(9,"div",9),m(10,3),i()()),n&2){let e=r();G("grid-template-columns","auto 1fr auto"),v("type-b",e.asSimpleList()),T("data",e.logs())("loading",e.logsLoading()),l(7),f(e.logs())}}var b=class n{#e=E(V);whenFilter=C();backupIdFilter=C();asSimpleList=C();polling=C();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=x(()=>{let t=this.polling()??!1;this.#e.isPolling.set(t)});openRowIndex=M(null);whenEffect=x(()=>{let t=this.whenFilter()??null;this.#e.setWhenFilter(t),this.#e.logLevel.set(t?"Verbose":"Disabled")});backupIdEffect=x(()=>{let t=this.backupIdFilter()??null;this.#e.setBackupIdFilter(t),this.#e.logLevel.set(t?"Verbose":"Disabled")});toggleRow(t){this.openRowIndex.set(t===this.openRowIndex()?null:t)}breakIntoLines(t){return t?t.split(`
2
+ `):[]}subStringMessage(t){return t?t.substring(0,80)+"...":""}ngOnDestroy(){this.#e.destroy()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=h({type:n,selectors:[["app-logs-live"]],hostVars:2,hostBindings:function(e,a){e&2&&v("simple-list",a.asSimpleList())},inputs:{whenFilter:[1,"whenFilter"],backupIdFilter:[1,"backupIdFilter"],asSimpleList:[1,"asSimpleList"],polling:[1,"polling"]},decls:2,vars:1,consts:()=>{let t;t=$localize`Live logs are disabled`;let e;e=$localize`When`;let a;a=$localize`Message`;let _;return _=$localize`No data available`,[t,e,a,_,[1,"live-view-disabled"],[3,"type-b","data","loading","grid-template-columns"],[3,"data","loading"],["table-header",""],[1,"sticky-end"],["table-no-rows",""],[3,"click"],["spk-button","","type","button",1,"outlined","small"],[1,"expanded-cell"],[1,"primary"],["item",""],[1,"line-numbers-ol"]]},template:function(e,a){e&1&&p(0,B,2,0,"div",4)(1,H,11,6,"spk-table",5),e&2&&g(a.logLevel()==="Disabled"?0:1)},dependencies:[F,A,R,N],styles:["[_nghost-%COMP%]{display:block}.simple-list[_nghost-%COMP%] spk-table[_ngcontent-%COMP%]{--table-td-bg: var(--base-2);height:100%}.live-view-disabled[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:18.75rem;width:100%;background-color:var(--base-2);border:1px solid var(--base-3);border-radius:var(--shape-2);font:var(--paragraph-20)}.expanded-cell[_ngcontent-%COMP%]{height:auto;grid-column:1/-1;white-space:pre-wrap;display:flex;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}spk-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre;max-width:100%}"],changeDetection:0})};export{b as a};
@@ -0,0 +1 @@
1
+ import{ea as dt}from"./chunk-VKD4Y3YQ.js";import{$b as at,Ab as ge,Bb as ee,Ec as Be,Gc as H,Hc as N,Lc as ce,Mc as b,Na as tt,Nb as B,Nc as ie,Oa as O,Ob as w,Oc as ct,Pb as L,Pc as U,Qa as Ce,Qb as D,Rc as pt,S as be,Sa as Ie,Ua as it,V as Je,Vb as ot,Wb as te,X as j,Xb as se,Xc as We,Yb as rt,Zb as G,_ as Ze,_a as P,_b as z,a as Ke,aa as et,ab as _e,ac as oe,ba as A,bc as V,ca as F,cc as Ae,db as me,dc as ae,ec as Se,fa as Ee,gc as Fe,ha as Te,hc as He,ic as Le,jc as lt,ka as Me,kc as le,la as I,lb as nt,lc as K,ob as st,pb as W,qb as q,ra as Q,rb as Ve,rc as je,sb as Re,sc as ye,tb as Pe,ub as re,vb as _,wb as S,xb as Z}from"./chunk-K6EZTPNQ.js";import{a as ne,b as pe,c as Ge,d as u,e as E,f as M,g as x}from"./chunk-EUDKD2JW.js";var Y=["*"],wt=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Ot=["[icon]","[title]","*","[content]"];function bt(t,e){t&1&&(_(0,"spk-icon",3),V(1,"info"),S())}function Et(t,e){t&1&&(_(0,"spk-icon",3),V(1,"info"),S())}function Tt(t,e){t&1&&(_(0,"spk-icon",3),V(1,"warning"),S())}function Mt(t,e){t&1&&(_(0,"spk-icon",3),V(1,"warning-octagon"),S())}function It(t,e){t&1&&(_(0,"spk-icon",3),V(1,"check-circle"),S())}function Vt(t,e){t&1&&(_(0,"spk-icon",3),V(1,"question"),S())}function Rt(t,e){if(t&1){let o=ee();_(0,"spk-icon",7),B("click",function(){A(o);let n=w();return F(n.removeAlert())}),V(1,"plus"),S()}}var Pt=["dialogRef"];function At(t,e){if(t&1){let o=ee();_(0,"div",4),B("click",function(){A(o);let n=w();return F(n.isOpen.set(!1))}),S()}}var Ft=["spk-button",""];var Ht=["triggerRef"],Lt=["popoverRef"],jt=[[["","trigger",""]],"*"],Bt=["[trigger]","*"];var Wt=()=>({closeOnButton:!1,closeOnEsc:!0});var qt=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],zt=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],ut=["input"],Nt=[[["label"]]],Ut=["label"];function $t(t,e){if(t&1&&(_(0,"div",3),V(1),S()),t&2){let o=w();O(),Ae(o.files()[0].name)}}function Qt(t,e){if(t&1&&(_(0,"div",3),V(1),S()),t&2){let o=w();O(),ae("",o.files().length," files selected")}}function Yt(t,e){if(t&1&&(_(0,"div",4),V(1),S()),t&2){let o=w();O(),Ae(o.filesOver()?o.overlayText():o.placeholder())}}var Xt=["optionsRef"],Gt=["*",[["","menu",""]]],Kt=["*","[menu]"];function Jt(t,e){t&1&&(_(0,"spk-icon",5),V(1,"caret-down"),S())}var Zt=[[["label"]],[["input","type","range"]]],ei=["label","input[type=range]"],ti=["optionsWrap"],ii=[[["label"]],[["input"]],[["textarea"]]],ni=["label","input","textarea"],si=()=>({closeOnButton:!1,closeOnEsc:!1}),Qe=t=>({$implicit:t});function oi(t,e){if(t&1&&V(0),t&2){let o=w();ae(" ",o.inputValue()," ")}}function ri(t,e){t&1&&ge(0)}function ai(t,e){if(t&1&&me(0,ri,1,0,"ng-container",13),t&2){let o=w(3).$implicit;w(2);let i=K(2);re("ngTemplateOutlet",i)("ngTemplateOutletContext",ye(2,Qe,o))}}function li(t,e){if(t&1&&V(0),t&2){let o=w(3).$implicit,i=w(2);ae(" ",i.getLabel(o)," ")}}function ci(t,e){if(t&1){let o=ee();_(0,"spk-chip",11),W(1,ai,1,4,"ng-container")(2,li,1,1),_(3,"spk-icon",12),B("click",function(n){A(o);let s=w(2).$index,h=w(2);return F(h.removeSelectedOptionByIndex(n,s))}),V(4,"x-bold"),S()()}if(t&2){let o=w(4),i=K(2);oe(o.selectClasses()),O(),q(i?1:2)}}function pi(t,e){t&1&&ge(0)}function di(t,e){if(t&1&&me(0,pi,1,0,"ng-container",13),t&2){let o=w(4).$implicit;w(2);let i=K(2);re("ngTemplateOutlet",i)("ngTemplateOutletContext",ye(2,Qe,o))}}function ui(t,e){if(t&1&&V(0),t&2){let o=w(4).$implicit,i=w(2);ae(" ",i.getLabel(o)," ")}}function hi(t,e){if(t&1&&W(0,di,1,4,"ng-container")(1,ui,1,1),t&2){w(5);let o=K(2);q(o?0:1)}}function fi(t,e){if(t&1&&W(0,hi,2,1),t&2){w(4);let o=K(5);q(o?-1:0)}}function mi(t,e){if(t&1&&W(0,ci,5,3,"spk-chip",10)(1,fi,1,1),t&2){w(3);let o=K(4);q(o?0:1)}}function gi(t,e){if(t&1&&W(0,mi,2,1),t&2){let o=e.$implicit;q(o?0:-1)}}function vi(t,e){if(t&1&&Re(0,gi,1,1,null,null,Ve),t&2){w();let o=K(1);Pe(o)}}function Ci(t,e){t&1&&ge(0)}function _i(t,e){if(t&1&&me(0,Ci,1,0,"ng-container",14),t&2){w(2);let o=K(0);re("ngTemplateOutlet",o)}}function Si(t,e){if(t&1&&V(0),t&2){let o=w(2);ae(" ",o.placeholderText()??""," ")}}function yi(t,e){if(t&1&&W(0,_i,1,1,"ng-container")(1,Si,1,1),t&2){w();let o=K(0);q(o?0:1)}}function ki(t,e){t&1&&(_(0,"spk-icon",6),V(1,"caret-down"),S())}function xi(t,e){t&1&&Z(0,"spk-spinner",7)}function Di(t,e){t&1&&(_(0,"spk-icon",6),V(1,"list-magnifying-glass"),S())}function wi(t,e){t&1&&(_(0,"spk-icon",6),V(1,"magnifying-glass"),S())}function Oi(t,e){if(t&1){let o=ee();_(0,"spk-icon",15),B("click",function(n){A(o);let s=w();return F(s.clear(n))}),V(1,"x-bold"),S()}}function bi(t,e){t&1&&(_(0,"spk-icon",6),V(1,"caret-down"),S())}function Ei(t,e){t&1&&(_(0,"spk-icon",6),V(1,"caret-up"),S())}function Ti(t,e){if(t&1&&Z(0,"spk-checkbox"),t&2){let o=w().$index,i=w();oe(i.selectClasses()),z("active",i.isSelected(o))}}function Mi(t,e){t&1&&ge(0)}function Ii(t,e){if(t&1&&me(0,Mi,1,0,"ng-container",13),t&2){let o=w().$implicit;w();let i=K(3);re("ngTemplateOutlet",i)("ngTemplateOutletContext",ye(2,Qe,o))}}function Vi(t,e){if(t&1&&V(0),t&2){let o=w().$implicit,i=w();ae(" ",i.getLabel(o)," ")}}function Ri(t,e){if(t&1){let o=ee();_(0,"li",16),B("click",function(){let n=A(o).$index,s=w();return F(s.toggleOptionByIndex(n))}),W(1,Ti,1,4,"spk-checkbox",17),W(2,Ii,1,4,"ng-container")(3,Vi,1,1),S()}if(t&2){let o=e.$index,i=w(),n=K(3);z("selected",i.isSelected(o))("focused",o===i.focusedOptionIndex()),O(),q(i.selectMultiple()?1:-1),O(),q(n?2:3)}}var Pi=["dragImageElement"],Ai=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],Fi=["[sidenav]","[sidenav-closed-topbar]","*"];function Hi(t,e){t&1&&Z(0,"div",1,0)}function Li(t,e){if(t&1){let o=ee();_(0,"div",7),B("drop",function(n){A(o);let s=w();return F(s.drop(n))})("dragover",function(n){A(o);let s=w();return F(s.dragOver(n))})("dragenter",function(){A(o);let n=w();return F(n.dragEnter())})("dragleave",function(){A(o);let n=w();return F(n.dragLeave())}),S()}}function ji(t,e){if(t&1){let o=ee();_(0,"div",8),B("dragstart",function(n){A(o);let s=w();return F(s.dragStart(n))})("dragend",function(n){A(o);let s=w();return F(s.dragEnd(n))})("drag",function(n){A(o);let s=w();return F(s.drag(n))})("touchstart",function(n){A(o);let s=w();return F(s.touchStart(n))})("touchmove",function(n){A(o);let s=w();return F(s.touchMove(n))})("touchend",function(n){A(o);let s=w();return F(s.touchEnd(n))})("touchcancel",function(n){A(o);let s=w();return F(s.touchCancel(n))}),S()}}var Bi=["thead"],Wi=[[["","table-header",""]],"*",[["","table-no-rows",""]]],qi=["[table-header]","*","[table-no-rows]"];function zi(t,e){t&1&&Z(0,"spk-progress-bar",1)}function Ni(t,e){t&1&&(_(0,"div",2),D(1,2),S())}var Ui=[[["","title",""]],"*"],$i=["[title]","*"];function Qi(t,e){t&1&&V(0,"Title")}function Yi(t,e){t&1&&(_(0,"spk-icon",1),V(1,"caret-down"),S())}var qe=["bold","thin","light","fill"],ue=(()=>{var e;let o=class o{constructor(){E(this,e,j(Q))}get currentClass(){let n=u(this,e).nativeElement.innerText;for(let s=0;s<qe.length;s++)if(n.endsWith(qe[s]))return qe[s];return""}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=P({type:o,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(s,h){s&2&&oe(h.currentClass)},ngContentSelectors:Y,decls:1,vars:0,template:function(s,h){s&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=o;return t})(),bn=(()=>{let e=class e{constructor(){this._el=j(Q),this.alertService=b(null),this.id=b(null),this.alertClasses=H(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Ot,decls:17,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(n,s){if(n&1&&(L(wt),_(0,"div",1)(1,"div",2,0),D(3),S(),_(4,"div",2),W(5,bt,2,0,"spk-icon",3)(6,Et,2,0,"spk-icon",3)(7,Tt,2,0,"spk-icon",3)(8,Mt,2,0,"spk-icon",3)(9,It,2,0,"spk-icon",3)(10,Vt,2,0,"spk-icon",3),S(),_(11,"div",4),D(12,1),D(13,2),S(),W(14,Rt,2,0,"spk-icon",5),_(15,"div",6),D(16,3),S()()),n&2){let h=rt(2);O(),G("display",h.children.length?"block":"none");let m=s.alertClasses();O(4),q(m.includes("primary")?5:m.includes("accent")?6:m.includes("warn")?7:m.includes("error")?8:m.includes("success")?9:10),O(9),q(s.id()?14:-1)}},dependencies:[ue],encapsulation:2,changeDetection:0});let t=e;return t})();function Ye(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var En=(()=>{let e=class e{constructor(){this.alertHistory=I([]),this.alertHistoryIsOpen=I(!1),this.alertHistoryIsHidden=I(!0)}error(i){this.addAlert({type:"error",title:i??"An error occured"})}success(i){this.addAlert({type:"success",title:i})}question(i){this.addAlert({type:"question",title:i})}warning(i){this.addAlert({type:"warn",title:i})}info(i){this.addAlert({type:"primary",title:i})}addAlert(i){let n=Ye();this.alertHistory.update(s=>[pe(ne({},i),{isOpen:!0,animateIn:!0,animateOut:!1,id:n}),...s]),setTimeout(()=>{this.alertHistory.update(s=>s.map(h=>pe(ne({},h),{animateIn:h.id===n?!1:h.animateIn})))},40),setTimeout(()=>{this.hideAlert(n)},2500)}removeAlert(i){this.alertHistory.update(n=>n.map(s=>pe(ne({},s),{animateOut:s.id===i?!1:s.animateOut}))),setTimeout(()=>{this.alertHistory.update(n=>n.filter(s=>s.id!==i))},300)}hideAlert(i){this.alertHistory.update(n=>n.map(s=>pe(ne({},s),{isOpen:s.id===i?!1:s.isOpen})))}setHidden(i){this.alertHistoryIsHidden.set(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=be({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Oe=new Je("Sparkle UI Config"),Xi={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},Gi=(()=>{var e;let o=class o{constructor(){E(this,e);M(this,e,j(Oe,{optional:!0})),this.dialogRef=ie("dialogRef"),this.isOpen=U(!1),this.options=b(),this.closed=ce(),this.defaultOptionMerge=H(()=>ne(pe(ne({},Xi),{class:u(this,e)?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=N(()=>{let n=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(n?.showModal(),n?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",s=>{s.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&s.preventDefault(),s.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),n?.close())})}ngOnDestroy(){this.abortController?.abort()}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=P({type:o,selectors:[["spk-dialog"]],viewQuery:function(s,h){s&1&&te(h.dialogRef,Pt,5),s&2&&se()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Y,decls:5,vars:11,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(s,h){if(s&1&&(L(),_(0,"dialog",1,0)(2,"div",2),D(3),S(),W(4,At,1,0,"div",3),S()),s&2){let m=h.defaultOptionMerge();oe(m.class),G("width",m.width??"")("max-width",m.maxWidth??"")("max-height",m.maxHeight??"")("height",m.height??""),O(4),q(h.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0});let t=o;return t})(),Tn=(()=>{var e,o,i,ht,ve;let h=class h{constructor(){E(this,i);E(this,e);E(this,o);M(this,e,document.querySelector("body")),M(this,o,j(nt)),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}open(p,r){let d=u(this,o).injector,g=x(this,i,ht).call(this),k=r||{},{data:v,closed:a}=k,l=Ge(k,["data","closed"]);this.compRef&&x(this,i,ve).call(this),this.insertedCompRef=We(p,{environmentInjector:d}),this.compRef=We(Gi,{hostElement:g,environmentInjector:d,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let c=this.insertedCompRef.instance?.data,f=this.insertedCompRef.instance?.closed;if(v){if(Me(c))this.insertedCompRef.setInput("data",v);else if(!Me(c))throw new Error("data is not an input signal on the passed component")}f instanceof Be&&(this.closedFieldSub=f.subscribe((...T)=>{a?.(...T),x(this,i,ve).call(this)})),u(this,o).attachView(this.insertedCompRef.hostView),u(this,o).attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",l),this.compRef.instance.closed.subscribe(()=>C());let y=this;function C(){var T;f&&f instanceof Be?f.emit(!1):a?.(void 0),x(T=y,i,ve).call(T)}return{component:this.insertedCompRef.instance,close:C}}ngOnDestroy(){x(this,i,ve).call(this)}};e=new WeakMap,o=new WeakMap,i=new WeakSet,ht=function(){let p=document.createElement("spk-dialog-ref");return p.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||u(this,e).append(p),document.getElementById("spk-dialog-ref")},ve=function(){this.insertedCompRef&&(u(this,o).detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(u(this,o).detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())},h.\u0275fac=function(r){return new(r||h)},h.\u0275prov=be({token:h,factory:h.\u0275fac,providedIn:"root"});let t=h;return t})(),Mn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-button-group"]],ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),Ki=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["","spk-button",""]],attrs:Ft,ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),In=(()=>{var e;let o=class o{constructor(){E(this,e);M(this,e,j(Oe,{optional:!0})),this.class=I(u(this,e)?.cardType??"default")}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=P({type:o,selectors:[["spk-card"]],hostVars:2,hostBindings:function(s,h){s&2&&oe(h.class())},ngContentSelectors:Y,decls:1,vars:0,template:function(s,h){s&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=o;return t})(),Ji=(()=>{var e;let o=class o{constructor(){E(this,e,j(Q))}onClick(){u(this,e).nativeElement.querySelector("input")&&u(this,e).nativeElement.querySelector("input").focus()}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=P({type:o,selectors:[["spk-checkbox"]],hostBindings:function(s,h){s&1&&B("click",function(){return h.onClick()})},ngContentSelectors:Y,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(s,h){s&1&&(L(),_(0,"div",0)(1,"spk-icon",1),V(2,"check"),S(),_(3,"spk-icon",2),V(4,"minus"),S()(),D(5))},dependencies:[ue],encapsulation:2,changeDetection:0});let t=o;return t})(),Zi=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-chip"]],ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})();var en=["scroll","auto"],tn={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},ft=(()=>{var e,o,i,mt,ke;let h=class h{constructor(){E(this,i);E(this,e);E(this,o);M(this,e,j(pt)),M(this,o,4),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=b(!1),this.right=b(!1),this.markForCheck=b(null),this._above=I(this.above()),this._right=I(this.right()),this.disableOpenByClick=b(!1),this.isOpen=U(!1),this.options=b(),this.closed=ce(),this.defaultOptionMerge=H(()=>ne(ne({},tn),this.options())),this.triggerRef=ie.required("triggerRef"),this.popoverRef=ie.required("popoverRef"),this.id=I("--"+Ye()),this.menuStyle=I(null),this.openAbort=null,this.openEffect=N(()=>{let p=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let d={signal:this.openAbort?.signal};p?.showPopover(),document.addEventListener("keydown",g=>{g.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&g.preventDefault(),g.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},d),setTimeout(()=>{x(this,i,mt).call(this,this.popoverRef()?.nativeElement).addEventListener("scroll",()=>x(this,i,ke).call(this),d),window.addEventListener("resize",()=>x(this,i,ke).call(this),d),x(this,i,ke).call(this)})}else p.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=N(()=>{this.markForCheck()&&u(this,e).markForCheck()})}toggleIsOpen(p){p.preventDefault(),p.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(p){p.stopPropagation(),p.preventDefault(),this.isOpen.set(!1)}};e=new WeakMap,o=new WeakMap,i=new WeakSet,mt=function(p){let r=p.parentElement;for(;r;){if(en.indexOf(window.getComputedStyle(r).overflowY)>-1&&r.scrollHeight>r.clientHeight)return r;r=r.parentElement}return document.documentElement},ke=function(){let p=this.triggerRef()?.nativeElement.getBoundingClientRect(),r=this.popoverRef()?.nativeElement.getBoundingClientRect(),d=p.left,g=p.bottom,v=d,a=g+u(this,o),l=v+r.width>window.innerWidth,c=a+r.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(c),this._right.set(l);else{if(v=d,a=g+u(this,o),c){let y=p.top-r.height-u(this,o);y<0||(a=y)}l&&(v=p.right-r.width,v<0&&(v=0));let f={left:v+"px",top:a+"px"};this.menuStyle.set(f)}},h.\u0275fac=function(r){return new(r||h)},h.\u0275cmp=P({type:h,selectors:[["spk-popover"]],viewQuery:function(r,d){r&1&&(te(d.triggerRef,Ht,5),te(d.popoverRef,Lt,5)),r&2&&se(2)},hostVars:4,hostBindings:function(r,d){r&2&&z("above",d._above())("right",d._right())},inputs:{above:[1,"above"],right:[1,"right"],markForCheck:[1,"markForCheck"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Bt,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(r,d){if(r&1){let g=ee();L(jt),_(0,"div",2,0),B("click",function(a){return A(g),F(d.toggleIsOpen(a))}),_(2,"div",3),D(3),S(),_(4,"button",4),V(5,"Open popover"),S()(),_(6,"div",5,1)(8,"div",6),B("click",function(a){return A(g),F(d.isOpen()&&d.eventClose(a))}),S(),D(9,1),S()}r&2&&(G("anchor-name",d.id()),O(6),at(d.menuStyle()),G("position-anchor",d.id()))},dependencies:[Ki],encapsulation:2,changeDetection:0});let t=h;return t})();var Vn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-divider"]],ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),Xe=(()=>{var e;let o=class o{constructor(){E(this,e,j(Q))}onClick(){u(this,e).nativeElement.querySelector("input")&&u(this,e).nativeElement.querySelector("input").focus(),u(this,e).nativeElement.querySelector("textarea")&&u(this,e).nativeElement.querySelector("textarea").focus()}ngOnInit(){let n=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=u(this,e).nativeElement.querySelector("textarea");if(!n&&s!==null){let p=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},r=function(){window.setTimeout(p,0)};var h=p,m=r;s.addEventListener("change",p),s.addEventListener("cut",r),s.addEventListener("paste",r),s.addEventListener("drop",r),s.addEventListener("keydown",r),s.focus(),s.select(),p()}}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=P({type:o,selectors:[["spk-form-field"]],hostBindings:function(s,h){s&1&&B("click",function(){return h.onClick()})},ngContentSelectors:zt,decls:15,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(s,h){s&1&&(L(qt),D(0),_(1,"div",0)(2,"div",1),D(3,1),D(4,2),S(),D(5,3),D(6,4),_(7,"div",2),D(8,5),D(9,6),S()(),_(10,"div",3)(11,"div",4),D(12,7),S(),_(13,"div",5),D(14,8),S()())},encapsulation:2,changeDetection:0});let t=o;return t})(),Rn=(()=>{let e=class e{constructor(){this._el=j(Q),this.inputRef=ie.required("input"),this.filesOver=I(!1),this.multiple=b(),this.accept=b(null),this.placeholder=U("Click or drag files here"),this.overlayText=b("Drop files here"),this.files=U([]),this.fileUploadClasses=H(()=>this._el.nativeElement.classList.toString()),this.inputEffect=N(()=>{let i=this.inputRef().nativeElement;i&&(i.placeholder&&this.placeholder.set(i.placeholder),i.addEventListener("dragover",n=>{n.preventDefault(),this.filesOver.set(!0)}),i.addEventListener("dragleave",n=>{n.preventDefault(),this.filesOver.set(!1)}),i.addEventListener("drop",n=>{n.preventDefault(),this.filesOver.set(!1);let s=n.dataTransfer?.files;s&&s.length>0&&(this.handleFileUpload(Array.from(s)),i.files=s)}),i.addEventListener("change",n=>{n.preventDefault(),this.handleFileUpload(Array.from(n.target.files))}))})}handleFileUpload(i){this.multiple()?this.files.update(n=>[...n,...i]):this.files.set(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-file-upload"]],viewQuery:function(n,s){n&1&&te(s.inputRef,ut,5),n&2&&se()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:Ut,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(n,s){n&1&&(L(Nt),_(0,"spk-form-field"),D(1,0,["ngProjectAs","label",5,["label"]]),_(2,"div",2,0),W(4,$t,2,1,"div",3)(5,Qt,2,1,"div",3)(6,Yt,2,1,"div",4),Z(7,"input",5,1)(9,"div",6),S(),_(10,"spk-icon",7),V(11,"upload-simple"),S()()),n&2&&(oe(s.fileUploadClasses()),O(4),q(s.files().length===1?4:s.files().length>1?5:6),O(3),st("multiple",s.multiple())("accept",s.accept()),O(2),z("files-over",s.filesOver()))},dependencies:[Xe,ue],encapsulation:2,changeDetection:0});let t=e;return t})(),Pn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-list"]],ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})();function gt(t,e){let o=e?.injector||(et(gt),j(Ee)),{debounce:i=0,initialValue:n=void 0,transform:s=C=>C,compare:h=(C,k)=>C===k,forceType:m=void 0,returnPreviousValue:p=!0}=e||{},r=I(n),d=o.get(Te),g=H(()=>{let C=t()?.nativeElement;if(C instanceof HTMLInputElement||C instanceof HTMLTextAreaElement)return f(C)}),v=!1,a,l=null;return N(()=>{let C=g();if(!C)return r.set(p&&a?s(a):void 0);n!==void 0&&C.value===""?r.set(n):C.value!==""&&c();let k=T=>{l!==null&&clearTimeout(l),l=setTimeout(()=>{l=null,c()},i)};C.addEventListener("input",k),C.addEventListener("inputValueChanged",k),d.onDestroy(()=>{C.removeEventListener("input",k),C.removeEventListener("inputValueChanged",k),l!==null&&clearTimeout(l)})},{injector:o}),N(()=>{let C=g();if(!C)return;let k=r()??"",T=k==null?"":String(k);C.value!==T&&(a=T,C.value=T,C.dispatchEvent(new Event("input")))},{injector:o}),r;function c(){if(!v){v=!0;try{let C=g();if(!C)return;let k=C.value,T=m?y(k,m):s(k);a=k,h(r(),T)||r.set(T)}finally{v=!1}}}function f(C){return Object.defineProperty(C,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(C),"value").get.call(this)},set(k){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(C),"value").set.call(this,k);let R=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:k}});return this.dispatchEvent(R),k}}),C}function y(C,k){switch(k){case"string":return C.toString();case"number":let T=Number(C);return isNaN(T)?void 0:T;case"boolean":return C.toLowerCase()==="true"?!0:C.toLowerCase()==="false"?!1:void 0;default:return C}}}function vt(t,e){let o=j(Ee),i=o.get(Te),n=I([]),s=null,h=null,m=(r,d)=>{h&&h.disconnect();let g=Array.from(r.nativeElement.querySelectorAll(d.join(",")));n.set(g),h=new MutationObserver(v=>{requestAnimationFrame(()=>{let a=Array.from(r.nativeElement.querySelectorAll(d.join(",")));n.set(a)})}),h.observe(r.nativeElement,{childList:!0,subtree:!0}),i.onDestroy(()=>p())};s=N(()=>{let r=typeof t=="function"&&t[Ke]?t():t,d=typeof e=="function"?e():e;r&&d?.length>0?m(r,d):(n.set([]),h&&(h.disconnect(),h=null))},{injector:o});function p(){s&&s.destroy(),h&&h.disconnect()}return{signal:n.asReadonly(),destroy:p}}var An=(()=>{var e,o,Ct,ze;let s=class s{constructor(){E(this,o);E(this,e);M(this,e,j(Ie)),this.above=b(!1),this.right=b(!1),this.openIndicator=b(!1),this.disabled=b(!1),this.customOptionElementSelectors=b(["button"]),this.keepClickedOptionActive=b(!1),this.closeOnClick=b(!0),this.isOpen=U(!1),this.closed=ce(),this.searchable=b(!1),this.activeOptionIndex=I(-1),this.inputRef=ie("input"),this.optionsRef=ie("optionsRef"),this.options=vt(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=H(()=>this.options.signal().filter(m=>!m.disabled)),this.inputValue=gt(this.inputRef),this.abortController=null,this.optionsEffect=N(()=>{if(!this.isOpen())return;this.abortController&&(this.abortController.abort(),this.abortController=null),this.abortController=new AbortController;let m=this.inputRef()?.nativeElement;m&&(queueMicrotask(()=>m.focus()),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",r=>{let d=r.target,g=this.activeElements();if(!g.length){let a=this.optionsEl();this.activeElements.set(a),g=a}let v=g.findIndex(a=>a===d);v>-1&&(this.activeOptionIndex.set(v),m.focus())}),m.addEventListener("keydown",p=>{let r=this.activeOptionIndex();p.key==="ArrowDown"?(p.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(r))):p.key==="ArrowUp"?(p.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(r))):p.key==="Enter"?(p.preventDefault(),r>-1&&(this.activeElements()[r].click(),queueMicrotask(()=>this.close("active")))):p.key==="Tab"&&(p.preventDefault(),this.close("closed"))},{signal:this.abortController.signal}))}),this._lastElementList=[],this.activeElements=I([]),this.lastInputValue="",this.inputValueEffect=N(()=>{if(!this.searchable())return;let p=(this.inputValue()??"").toLowerCase();if(x(this,o,ze).call(this),!p||p==="")return;let r=this._lastElementList.length&&p.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=p;for(let d=0;d<r.length;d++){let g=r[d],v=g.textContent?.toLowerCase()||"",a=x(this,o,Ct).call(this,v,p);g.value=a}r=r.filter(d=>d.value>0).sort((d,g)=>g.value-d.value);for(let d=0;d<r.length;d++)u(this,e).setStyle(r[d],"order",d);this.activeElements.set(r),this._lastElementList=r}),this.activeOptionIndexEffect=N(()=>{let m=this.activeElements(),p=this.activeOptionIndex();for(let r=0;r<m.length;r++)m[r].classList.remove("active");p>-1&&(m[p].scrollIntoView({block:"center"}),m[p].classList.add("active"))})}nextActiveIndex(m){let p=this.activeElements();if(!p.length){let d=this.optionsEl();this.activeElements.set(d),p=d}if(m===-1||m===p.length-1)return 0;let r=m+1;return p[r].disabled?this.nextActiveIndex(r):r}prevActiveIndex(m){let p=this.activeElements();if(!p.length){let d=this.optionsEl();this.activeElements.set(d),p=d}if(m===0||m===-1)return p.length-1;let r=m-1;return p[r].disabled?this.prevActiveIndex(r):r}close(m="closed",p){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||m==="closed")&&x(this,o,ze).call(this),this.isOpen.set(!1),this.closed.emit(m==="active"))}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}};e=new WeakMap,o=new WeakSet,Ct=function(m,p){if(!p)return 0;let r=0,d=-1,g=0,v=!0;for(let a=0;a<p.length;a++){let l=p[a];if(m.length>d+1&&m[d+1]===l)r+=a===0?100:150,d++,g++;else{let c=m.indexOf(l,d+1);if(a>0&&(v=!1),c===-1)return 0;r+=100,d=c,g++}}return v&&p.length===g&&(r+=1e3),r+=g*20,r},ze=function(){this.activeOptionIndex.set(-1);let m=this.optionsEl();for(let p=0;p<m.length;p++)m[p].classList.remove("active")},s.\u0275fac=function(p){return new(p||s)},s.\u0275cmp=P({type:s,selectors:[["spk-menu"]],viewQuery:function(p,r){p&1&&(te(r.inputRef,ut,5),te(r.optionsRef,Xt,5)),p&2&&se(2)},hostVars:4,hostBindings:function(p,r){p&2&&z("disabled",r.disabled())("has-search",r.searchable())},inputs:{above:[1,"above"],right:[1,"right"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Kt,decls:12,vars:13,consts:[["formFieldWrapper",""],["input",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(p,r){if(p&1){let d=ee();L(Gt),_(0,"spk-popover",3,0),Le("isOpenChange",function(v){return A(d),He(r.isOpen,v)||(r.isOpen=v),F(v)}),B("closed",function(){return A(d),F(r.close("fromPopover"))}),_(2,"div",4),B("click",function(){return A(d),F(!r.disabled()&&r.isOpen.set(!0))}),D(3),W(4,Jt,2,0,"spk-icon",5),S(),_(5,"div",6)(6,"spk-form-field",7),Z(7,"input",8,1),S()(),_(9,"div",9,2),B("click",function(){return A(d),F(r.close("active"))}),D(11,1),S()()}p&2&&(Fe("isOpen",r.isOpen),re("disableOpenByClick",!0)("above",r.above())("right",r.right())("options",je(12,Wt)),O(2),z("is-open",r.isOpen()),O(2),q(r.openIndicator()?4:-1),O(2),z("hidden",r.searchable()===!1),O(3),z("searching",r.searchable()&&r.inputValue()!==""))},dependencies:[ft,Xe,ue],encapsulation:2,changeDetection:0});let t=s;return t})(),nn=(()=>{let e=class e{constructor(){this.value=b(void 0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(n,s){n&1&&Z(0,"div",0),n&2&&G("width",s.value(),"%")},encapsulation:2,changeDetection:0});let t=e;return t})(),Fn=(()=>{var e;let o=class o{constructor(){E(this,e,j(Q))}onClick(){u(this,e).nativeElement.querySelector("input")&&u(this,e).nativeElement.querySelector("input").focus()}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=P({type:o,selectors:[["spk-radio"]],hostBindings:function(s,h){s&1&&B("click",function(){return h.onClick()})},ngContentSelectors:Y,decls:2,vars:0,consts:[[1,"radio"]],template:function(s,h){s&1&&(L(),Z(0,"div",0),D(1))},encapsulation:2,changeDetection:0});let t=o;return t})(),Hn=(()=>{var e,o,i,n,s,Ne,_t,St,yt;let d=class d{constructor(){E(this,s);E(this,e);E(this,o);E(this,i);E(this,n);M(this,e,j(Q)),M(this,o,null),M(this,i,null),M(this,n,0),this.alwaysShowThumb=b(!1),this.unit=b(""),this.value=U(u(this,n)),this.inputState=I({min:0,max:100,step:1}),this.valuePercentage=H(()=>{let{min:v,max:a}=this.inputState(),l=this.value()??v;if(isNaN(l))return 0;let c=a-v;if(c===0)return 0;let f=(l-v)/c*100;return Math.max(0,Math.min(100,f))}),this.trackFilledPercentage=H(()=>this.valuePercentage()),this.thumbPositionPercentage=H(()=>this.valuePercentage()),this.syncModelToInputEffect=N(()=>{let v=this.value();if(u(this,i)){let a=parseFloat(u(this,i).value);(isNaN(a)||String(a)!==String(v))&&(u(this,i).value=String(v))}})}get hasInputElement(){return!!u(this,i)}ngAfterViewInit(){M(this,i,u(this,e).nativeElement.querySelector('input[type="range"]')),u(this,i)?(x(this,s,yt).call(this,u(this,i)),u(this,i).oninput=()=>{this.setNewInputValue(u(this,i).value)},u(this,i).addEventListener("inputValueChanged",v=>{this.setNewInputValue(v.detail.value)}),queueMicrotask(()=>x(this,s,Ne).call(this,!0)),x(this,s,_t).call(this)):console.error('SparkleRangeSliderComponent: No <input type="range"> element found projected inside.')}setNewInputValue(v){let a=parseFloat(v??"0");if(!isNaN(a)){let{min:l,max:c}=this.inputState();this.value.set(Math.max(l,Math.min(c,a)))}}trackEvent(v){if(!u(this,i)||u(this,i).readOnly||u(this,i).disabled){v.preventDefault(),v.stopPropagation();return}if(v.target===u(this,i)||v.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let l=v.currentTarget.getBoundingClientRect(),c=v.clientX-l.left,f=l.width,{min:y,max:C,step:k}=this.inputState(),T=C-y;if(f>0&&T!==0&&k>0){let $=(c/f*T+y-y)/k,J=y+Math.round($)*k,he=x(this,s,St).call(this,k);J=parseFloat(J.toFixed(he));let fe=Math.max(y,Math.min(C,J));this.value.set(fe)}}ngOnDestroy(){u(this,o)&&u(this,o).disconnect(),u(this,i)&&(u(this,i).oninput=null)}};e=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,s=new WeakSet,Ne=function(v=!1){if(!u(this,i))return;let a=parseFloat(u(this,i).min??"0")??0,l=parseFloat(u(this,i).max??"100")??100,c=u(this,i).step,f=1;if(c&&c.toLowerCase()!=="any"){let C=parseFloat(c);!isNaN(C)&&C>0&&(f=C)}this.inputState.set({min:a,max:l,step:f});let y=parseFloat(u(this,i).value??String(a))??a;if(v&&this.value()!==u(this,n)){let C=this.value(),k=Math.max(a,Math.min(l,C));y!==k&&(u(this,i).value=String(k)),C!==k&&this.value.set(k)}else{let C=Math.max(a,Math.min(l,y));this.value()!==C&&this.value.set(C)}},_t=function(){if(!u(this,i)||typeof MutationObserver>"u")return;let v=["min","max","step","value","readonly","disabled"];M(this,o,new MutationObserver(a=>{let l=!1;for(let c of a)if(c.type==="attributes"&&v.includes(c.attributeName??"")){l=!0;break}l&&x(this,s,Ne).call(this,!1)})),u(this,o).observe(u(this,i),{attributes:!0})},St=function(v){if(isNaN(v)||Math.floor(v)===v)return 0;let l=v.toString().split(".")[1];return l?l.length:0},yt=function(v){Object.defineProperty(v,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").get.call(this)},set(a){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").set.call(this,a);let c=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:a}});return this.dispatchEvent(c),a}})},d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=P({type:d,selectors:[["spk-range-slider"]],hostVars:2,hostBindings:function(a,l){a&2&&z("has-input",l.hasInputElement)},inputs:{alwaysShowThumb:[1,"alwaysShowThumb"],unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:ei,decls:15,vars:12,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(a,l){a&1&&(L(Zt),_(0,"div",0),D(1),S(),_(2,"div",1)(3,"div",2),V(4),S(),_(5,"div",3),B("click",function(f){return l.trackEvent(f)}),D(6,1),_(7,"div",4),Z(8,"div",5),S(),_(9,"div",6)(10,"div",7)(11,"div",8),V(12),S()()()(),_(13,"div",9),V(14),S()()),a&2&&(O(4),Se("",l.inputState().min,"",l.unit()),O(4),G("width",l.trackFilledPercentage(),"%"),O(),G("left",l.thumbPositionPercentage(),"%"),O(),z("always-show",l.alwaysShowThumb()),O(2),Se("",l.value(),"",l.unit()),O(2),Se("",l.inputState().max,"",l.unit()))},encapsulation:2,changeDetection:0});let t=d;return t})(),sn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(n,s){},encapsulation:2,changeDetection:0});let t=e;return t})(),Ln=(()=>{var e,o,i,Ue,s,$e,X,kt,xt,Dt;let g=class g{constructor(){E(this,i);E(this,e);E(this,o);E(this,s);M(this,e,j(Q)),this.value=b(),this.label=b(),this.asFreeText=b(!1),this.placeholder=b(),this.readonly=U(!1),this.disabled=U(!1),this.lazySearch=b(!1),this.inlineSearch=b(!1),this.asText=b(!1),this.isClearable=b(!0),this.selectMultiple=b(!1),this.optionTemplate=b(null),this.selectedOptionTemplate=b(null),this.placeholderTemplate=b(null),this.isOpen=U(!1),this.isLoading=U(!1),this.options=U([]),this.selectedOptions=U([]),this.cleared=ce(),this.inlineTemplate=ct(Ce),this.optionsWrapRef=ie.required("optionsWrap"),this.inputRefInput=I(null),M(this,o,typeof MutationObserver<"u"&&new MutationObserver(a=>{for(var l of a)l&&(l.target.nodeName==="INPUT"||l.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new Q(l.target)),u(this,o).disconnect())})),this.inputValue=I(""),this.prevInputValue=I(null),this.focusedOptionIndex=I(-1),this._isClearable=H(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=H(()=>u(this,e).nativeElement.classList.toString()),this.stretch=H(()=>this.selectClasses().includes("stretch")),this.placeholderText=H(()=>{let a=this.placeholder(),l=this.inputRefEl();return a||l?.placeholder||null}),this.selectedOptionValues=H(()=>{let a=this.selectedOptions(),l=this.value();return l?a.map(c=>x(this,i,X).call(this,c,l)):a}),this.filteredOptions=H(()=>{let a=this.options()||[],l=this.label(),c=this.value(),f=this.inlineSearch(),y=this.inputValue().toLowerCase(),C=x(this,i,xt).call(this,y);if(a.length<=0)return[];if(!f||y==="")return a;let T=a.filter(R=>{let $=l?(x(this,i,X).call(this,R,l)??"").toString().toLowerCase():(R??"").toString().toLowerCase(),J=((c?x(this,i,X).call(this,R,c):R)??"").toString().toLowerCase(),he=C.test($),fe=C.test(J);return he||fe}).map(R=>{let $=l?(x(this,i,X).call(this,R,l)??"").toString().toLowerCase():(R??"").toString().toLowerCase(),J=((c?x(this,i,X).call(this,R,c):R)??"").toString().toLowerCase(),he=x(this,i,Ue).call(this,$,y),fe=x(this,i,Ue).call(this,J,y);return{item:R,score:Math.max(he,fe)}});return T.sort((R,$)=>$.score-R.score),T.map(R=>R.item)}),this.inputRefEl=H(()=>{let a=this.inputRefInput();if(a===null)return;let l=a?a.nativeElement:null;return l?(l.autocomplete="off",x(this,i,kt).call(this,l),l.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&l.addEventListener("input",c=>{let f=c.target.value,y=this.inputValue();f!==y&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(f),this.updateInputElValue())}),l.addEventListener("inputValueChanged",c=>{let f=c.detail.value,y=this.inputValue();if(f!==y){if(f===""){this.clear();return}this.setSelectedOptionsFromValue(f),this.setInputValueFromSelectedOptions(),x(this,i,$e).call(this)}}),l):(console.warn("<spk-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.openAbortController=null,this.isOpenEffect=N(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let l=this.inputRefEl();if(!l)return;l.addEventListener("keydown",c=>{if((c.key==="Escape"||c.key==="Tab")&&(c.preventDefault(),this.close()),(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),c.key==="ArrowDown"){c.preventDefault();let f=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(f>this.filteredOptions().length-1?0:f)}if(c.key==="ArrowUp"){c.preventDefault();let f=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(f<0?this.filteredOptions().length-1:f)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=N(()=>{let a=this.inputValue();this._inputValue=a}),this.inputRefElEffect=N(()=>{let a=this.inputRefEl();a&&a.value!==this._inputValue&&(this.disabled.set(a.disabled),this.setSelectedOptionsFromValue(a.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=H(()=>{let a=this.selectedOptions();return this.label()?a.map(c=>this.getLabel(c)).join(", "):a.join(", ")}),this.inputState=H(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=H(()=>this.inlineSearch()||this.lazySearch()),M(this,s,N(()=>{if(this.selectMultiple()&&this.hasSearch())return;let a=this.selectedOptions(),l=this.value(),c=a.map(f=>l?x(this,i,X).call(this,f,l):f).join(",");this.inputValue.set(c)}))}ngOnInit(){this.setInitInput()}setInitInput(){let a=u(this,e).nativeElement.querySelector("input");if(a){this.inputRefInput.set(new Q(a));return}let l=u(this,e).nativeElement.querySelector("textarea");if(l){this.inputRefInput.set(new Q(l));return}typeof MutationObserver<"u"&&u(this,o).observe(u(this,e).nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(a){let l=this.options()||[],c=this.value(),f=this.selectMultiple(),y=a.toString().split(",");if(y.length===0){this.selectedOptions.set([]);return}let C=f?y:[y[0]],k=l.filter(T=>{let R=c?x(this,i,X).call(this,T,c)?.toString():T?.toString();return R&&C.includes(R)});this.selectedOptions.set(f?k:[k[0]])}setInputValueFromSelectedOptions(){let a=this.selectedOptions(),l=this.value();if(a.length===0){this.inputValue.set(""),this.updateInputElValue();return}let c=a.map(f=>l?x(this,i,X).call(this,f,l):f).join(",");this.inputValue.set(c),this.updateInputElValue()}getLabel(a){let l=this.label();return l?x(this,i,X).call(this,a,l):a}toggleOptionByIndex(a,l){let c=this.filteredOptions()[a];if(this.asFreeText()&&a===-1||!c){this.close();return}l&&l.stopPropagation();let f=this.selectMultiple(),y=this._isClearable(),C=this.value(),k=this.selectedOptionValues(),T=C?x(this,i,X).call(this,c,C):c;this.prevInputValue.set(null),this.selectedOptions.update(R=>{let $=k.indexOf(T);if($>-1){let J=[...R.slice(0,$),...R.slice($+1)];return y||J.length>0?J:R}else return this.focusedOptionIndex.set(a),f?[...R,c]:[c]}),f?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),f&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(a,l){a.stopPropagation(),this.selectedOptions.update(c=>[...c.slice(0,l),...c.slice(l+1)]),this.setInputValueFromSelectedOptions()}isSelected(a){let l=this.value(),c=this.filteredOptions()[a],f=l?x(this,i,X).call(this,c,l):c;return this.selectedOptionValues().indexOf(f)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||x(this,i,$e).call(this))}close(){this.isOpen.set(!1);let a=this.prevInputValue();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&a&&(this.inputValue.set(a),this.setInputValueFromSelectedOptions()),this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(a){a?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let a=this.inputRefEl(),l=this.inputValue();a&&(a.value=l,a.dispatchEvent(new Event("input")))}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&u(this,o).disconnect()}};e=new WeakMap,o=new WeakMap,i=new WeakSet,Ue=function(a,l){if(!l)return 0;let c=0,f=-1,y=0,C=!0;for(let k=0;k<l.length;k++){let T=l[k];if(a.length>f+1&&a[f+1]===T)c+=k===0?100:150,f++,y++;else{let R=a.indexOf(T,f+1);if(k>0&&(C=!1),R===-1)return 0;c+=100,f=R,y++}}return C&&l.length===y&&(c+=1e3),c+=y*20,c},s=new WeakMap,$e=function(){let a=this.selectedOptionValues()[0],l=this.value();if(a){let c=this.filteredOptions().findIndex(f=>l?x(this,i,X).call(this,f,l)===a:f===a);this.focusedOptionIndex.set(c)}else this.focusedOptionIndex.set(-1)},X=function(a,l){return l.split(".").reduce((c,f)=>c?.[f],a)},kt=function(a){Object.defineProperty(a,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").get.call(this)},set(l){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").set.call(this,l);let f=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:l}});return this.dispatchEvent(f),l}})},xt=function(a){let l=(a??"").toLowerCase(),c="^";for(let f of l)c+=".*"+x(this,i,Dt).call(this,f);return c+=".*$",new RegExp(c,"i")},Dt=function(a){return a.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")},g.\u0275fac=function(l){return new(l||g)},g.\u0275cmp=P({type:g,selectors:[["spk-select"]],contentQueries:function(l,c,f){l&1&&ot(f,c.inlineTemplate,Ce,5),l&2&&se()},viewQuery:function(l,c){l&1&&te(c.optionsWrapRef,ti,5),l&2&&se()},hostVars:2,hostBindings:function(l,c){l&2&&z("multiple",c.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:ni,decls:28,vars:22,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(l,c){if(l&1){let f=ee();L(ii),lt(0)(1)(2)(3)(4)(5),_(6,"spk-popover",2,0),Le("isOpenChange",function(C){return A(f),He(c.isOpen,C)||(c.isOpen=C),F(C)}),B("closed",function(){return A(f),F(c.close())}),_(8,"spk-form-field",3),B("click",function(){return A(f),F(c.open())}),D(9,0,["ngProjectAs","label",5,["label"]]),_(10,"div",4)(11,"div",5),W(12,oi,1,1)(13,vi,2,0)(14,yi,2,1),D(15,1),D(16,2),S()(),W(17,ki,2,0,"spk-icon",6)(18,xi,1,0,"spk-spinner",7)(19,Di,2,0,"spk-icon",6)(20,wi,2,0,"spk-icon",6)(21,Oi,2,0,"spk-icon",6)(22,bi,2,0,"spk-icon",6)(23,Ei,2,0,"spk-icon",6),S(),_(24,"div",8,1),Re(26,Ri,4,6,"li",9,Ve),S()()}if(l&2){le(c.placeholderTemplate());let f=c.optionTemplate(),y=c.selectedOptionTemplate(),C=c.inlineTemplate();O();let k=le(c.selectedOptions()),T=c.inputState();O(),le(y||f||C),O(),le(f||C),O();let R=le(!c.asText()&&c.selectMultiple());O();let $=le(c.isOpen()&&c.hasSearch()&&(R||c.inputValue().length>0));O(),Fe("isOpen",c.isOpen),re("disableOpenByClick",!0)("options",je(21,si)),O(2),z("stretch",c.stretch())("autosize",c.selectMultiple())("readonly",c.readonly()||c.disabled()),O(2),z("show-search-text",$),O(),z("is-selected",T==="selected"),O(),q(c.asFreeText()&&c.inputValue().length>0&&!c.isOpen()?12:k.length>0?13:$?-1:14),O(5),q(T==="closed"?17:T==="loading"?18:T==="open-searching"?19:T==="searching"?20:T==="selected"&&c._isClearable()?21:T==="selected"&&!c._isClearable()?22:23),O(9),Pe(c.filteredOptions())}},dependencies:[dt,ft,Xe,ue,Ji,sn,Zi],encapsulation:2,changeDetection:0});let t=g;return t})(),jn=(()=>{var e,o,i,xe,De;let h=class h{constructor(){E(this,i);E(this,e);E(this,o);M(this,e,j(Oe,{optional:!0})),M(this,o,I(u(this,e)?.sidenavType)),this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=b(!1),this.isOpen=U(!1),this.type=b(void 0),this._type=H(()=>this.type()?this.type():u(this,e)?.sidenavType),this.dragImageElement=ie.required("dragImageElement"),this.dragIsEnding=I(!1),this.dragIsOnScreen=I(!0),this.isDragging=I(!1),this.dragPositionX=I(0),this.dragActualPositionX=H(()=>{let p=this.dragPositionX(),r=.32;return p>this.openWidthTreshold?this.openWidthTreshold+(p-this.openWidthTreshold)*r:p}),this.draggingStyle=H(()=>this._type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=N(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(p){p.stopPropagation(),x(this,i,xe).call(this,p.clientX)}dragEnd(p){(p.clientX<0||!this.dragIsOnScreen())&&x(this,i,xe).call(this,0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(p){p.preventDefault(),x(this,i,De).call(this,p)}dragStart(p){p.stopPropagation(),this.isDragging.set(!0),x(this,i,De).call(this,p)}drag(p){p.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(p.clientX)}),x(this,i,De).call(this,p)}touchStart(p){p.stopPropagation(),this.isDragging.set(!0)}touchMove(p){p.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(p.touches[0].clientX)})}touchEnd(p){p.stopPropagation(),x(this,i,xe).call(this,p.changedTouches[0].clientX)}touchCancel(p){p.stopPropagation(),this.isDragging.set(!1)}};e=new WeakMap,o=new WeakMap,i=new WeakSet,xe=function(p){this.isDragging.set(!1),p<=0?this.isOpen.set(!1):p>this.openWidthTreshold?this.isOpen.set(!0):p<this.openWidthTreshold&&(!this.isOpen()&&p<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))},De=function(p){p.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)},h.\u0275fac=function(r){return new(r||h)},h.\u0275cmp=P({type:h,selectors:[["spk-sidenav"]],viewQuery:function(r,d){r&1&&te(d.dragImageElement,Pi,5),r&2&&se()},hostVars:8,hostBindings:function(r,d){r&2&&(oe(d._type()),z("open",d.isOpen())("closed",!d.isOpen())("is-dragging",d.isDragging()))},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:Fi,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(r,d){r&1&&(L(Ai),W(0,Hi,2,0,"div",1),W(1,Li,1,0,"div",2),_(2,"div",3),D(3),S(),_(4,"div",4),W(5,ji,1,0,"div",5),_(6,"div",6),D(7,1),S(),_(8,"main"),D(9,2),S()()),r&2&&(q(d.type()==="overlay"?0:-1),O(),q(d.type()==="overlay"&&d.isDragging()?1:-1),O(3),G("transform",d.draggingStyle()),O(),q(d.type()==="overlay"&&!d.disableDrag()?5:-1))},encapsulation:2,changeDetection:0});let t=h;return t})();var Bn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-stepper"]],ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})();var Wn=(()=>{var e;let o=class o{constructor(){E(this,e);M(this,e,j(on)),this.spkSort=b(),this.sortAsc=H(()=>{let n=u(this,e).sortByColumn(),s=this.spkSort();return!n||!s?!1:n===s}),this.sortDesc=H(()=>{let n=u(this,e).sortByColumn(),s=this.spkSort();return!n||!s?!1:n===`-${s}`})}toggleSort(){let n=this.spkSort();n&&u(this,e).toggleSort(n)}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275dir=_e({type:o,selectors:[["","spkSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(s,h){s&1&&B("mousedown",function(){return h.toggleSort()}),s&2&&z("sort-asc",h.sortAsc())("sort-desc",h.sortDesc())},inputs:{spkSort:[1,"spkSort"]}});let t=o;return t})();var de=1.5,on=(()=>{var e,o,i,n,s,we;let m=class m{constructor(){E(this,s);E(this,e);E(this,o);E(this,i);E(this,n);M(this,e,j(Q)),M(this,o,j(Oe,{optional:!0})),this.loading=b(!1),this.data=b([]),this.dataChange=ce(),this.sortByColumn=U(null),this.thead=ie("thead"),this.columns=vt(this.thead,["TH"]),this.class=I(u(this,o)?.tableType??"default"),this.resizing=I(!1),this.sizeTrigger=I(!0),M(this,i,null),M(this,n,I(!1)),this.scrollXState=I(-1),this.scrollYState=I(-1),this.canScrollX=I(!1),this.canScrollY=I(!1),this.columnSizes=H(()=>{this.sizeTrigger();let r=this.columns.signal();return r.reduce((d,g,v)=>{let a=g,l=v===r.length-1;return a.dataset.size?`${d} ${a.dataset.size}`:a.classList.contains("sticky")||a.classList.contains("sticky-end")?`${d} min-content`:l?`${d} 1fr`:`${d} 1fr`},"")}),this.e=N(()=>{let r=this.sortByColumn();if(r===null)return u(this,n).call(this)||(M(this,i,this.data()),u(this,n).set(!0)),this.dataChange.emit(structuredClone(u(this,i)));let d=r.startsWith("-")?r.slice(1):r,g=r.startsWith("-"),v=this.data().sort((a,l)=>{let c=a[d],f=l[d],y=0;return typeof c=="number"&&typeof f=="number"&&(y=c-f),c instanceof Date&&f instanceof Date&&(y=c.getTime()-f.getTime()),typeof c=="string"&&typeof f=="string"&&(y=c.localeCompare(f,void 0,{sensitivity:"base"})),g?-y:y});this.dataChange.emit(v)})}updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){x(this,s,we).call(this)}onResize(r){x(this,s,we).call(this)}ngAfterViewInit(){queueMicrotask(()=>x(this,s,we).call(this))}toggleSort(r){let d=this.sortByColumn(),g=d===r?`-${r}`:d===`-${r}`?null:r;this.sortByColumn.set(g)}};e=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,s=new WeakSet,we=function(){let r=u(this,e).nativeElement,d=-1,g=-1,v=r.scrollWidth>r.clientWidth+de;if(v){let l=r.scrollLeft<=de;r.scrollWidth-(r.scrollLeft+r.clientWidth)<de?d=1:l||(d=0)}this.scrollXState.set(d),this.canScrollX.set(v);let a=r.scrollHeight>r.clientHeight+de;if(a){let l=r.scrollTop<=de;r.scrollHeight-(r.scrollTop+r.clientHeight)<de?g=1:l||(g=0)}this.scrollYState.set(g),this.canScrollY.set(a)},m.\u0275fac=function(d){return new(d||m)},m.\u0275cmp=P({type:m,selectors:[["spk-table"]],viewQuery:function(d,g){d&1&&te(g.thead,Bi,5),d&2&&se()},hostVars:18,hostBindings:function(d,g){d&1&&B("scroll",function(){return g.onScroll()})("resize",function(a){return g.onResize(a)},tt),d&2&&(oe(g.class()),G("grid-template-columns",g.columnSizes()),z("resizing",g.resizing())("can-scroll-x",g.canScrollX())("can-scroll-y",g.canScrollY())("scrolled-x",g.scrollXState()>=0)("scrolled-x-end",g.scrollXState()===1)("scrolled-y",g.scrollYState()>=0)("scrolled-y-end",g.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:qi,decls:7,vars:2,consts:[["thead",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(d,g){d&1&&(L(Wi),_(0,"thead",null,0),D(2),W(3,zi,1,0,"spk-progress-bar",1),S(),_(4,"tbody"),D(5,1),S(),W(6,Ni,2,0,"div",2)),d&2&&(O(3),q(g.loading()?3:-1),O(3),q(g.loading()?-1:6))},dependencies:[nn],encapsulation:2,changeDetection:0});let t=m;return t})(),qn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-tabs"]],ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),zn=(()=>{let e=class e{constructor(){this.isActive=U(!1),this.disallowToggle=b(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-toggle-card"]],hostVars:2,hostBindings:function(n,s){n&2&&z("active",s.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:$i,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(n,s){n&1&&(L(Ui),_(0,"h3",0),B("click",function(){return s.disallowToggle()||s.toggle()}),D(1,0,null,Qi,1,0),W(3,Yi,2,0,"spk-icon",1),S(),_(4,"div",2)(5,"div",3),D(6,1),S()()),n&2&&(O(3),q(s.disallowToggle()?-1:3))},dependencies:[ue],encapsulation:2,changeDetection:0});let t=e;return t})(),Nn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-toggle"]],ngContentSelectors:Y,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(n,s){n&1&&(L(),_(0,"div",0),Z(1,"div",1),S(),D(2))},encapsulation:2,changeDetection:0});let t=e;return t})();var Un=(()=>{let e=class e{constructor(){this.filesOver=I(!1),this.filesDropped=ce()}onDragOver(i){i.preventDefault(),i.stopPropagation(),this.filesOver.set(!0)}onDragLeave(i){i.preventDefault(),i.stopPropagation(),this.filesOver.set(!1)}ondrop(i){i.preventDefault(),i.stopPropagation(),this.filesOver.set(!1);let n=i.dataTransfer?.files;n&&n.length>0&&this.filesDropped.emit(n)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_e({type:e,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(n,s){n&1&&B("dragover",function(m){return s.onDragOver(m)})("dragleave",function(m){return s.onDragLeave(m)})("drop",function(m){return s.ondrop(m)}),n&2&&z("filesover",s.filesOver())},outputs:{filesDropped:"filesDropped"}});let t=e;return t})();var rn=(()=>{let e=class e{constructor(){this.positionAnchorName=b.required()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["sparkle-tooltip-wrapper"]],hostVars:2,hostBindings:function(n,s){n&2&&G("position-anchor",s.positionAnchorName())},inputs:{positionAnchorName:[1,"positionAnchorName"]},ngContentSelectors:Y,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(n,s){n&1&&(L(),_(0,"div",0),D(1),S())},encapsulation:2});let t=e;return t})(),$n=(()=>{var e,o,i,n,s,h;let m=class m{constructor(){E(this,e);E(this,o);E(this,i);E(this,n);E(this,s);E(this,h);this.spkTooltip=b.required(),M(this,e,j(Q)),M(this,o,j(it)),M(this,i,j(Ze)),M(this,n,j(Ie)),M(this,s,null),M(this,h,null),this.anchorName=I(`--${Ye()}`),this.manageWrapperEffect=N(()=>{let r=this.spkTooltip();if(this.cleanupTooltip(),r){let d;typeof r=="string"?d=[u(this,n).createText(r)]:r instanceof Ce?(M(this,h,r.createEmbeddedView(null)),u(this,h).detectChanges(),d=u(this,h).rootNodes):d=[],d.length>0&&(M(this,s,u(this,o).createComponent(rn,{environmentInjector:u(this,i),projectableNodes:[d]})),u(this,s).setInput("positionAnchorName",this.anchorName()),u(this,s).changeDetectorRef.detectChanges())}})}onClick(r){let d=u(this,e).nativeElement;(d.hasAttribute("disabled")||d.hasAttribute("readonly"))&&(r.preventDefault(),r.stopPropagation())}cleanupTooltip(){u(this,s)&&(u(this,s).destroy(),M(this,s,null)),u(this,h)&&(u(this,h).destroy(),M(this,h,null))}ngOnDestroy(){this.cleanupTooltip()}};e=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,s=new WeakMap,h=new WeakMap,m.\u0275fac=function(d){return new(d||m)},m.\u0275dir=_e({type:m,selectors:[["","spkTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:2,hostBindings:function(d,g){d&1&&B("click",function(a){return g.onClick(a)}),d&2&&G("anchor-name",g.anchorName())},inputs:{spkTooltip:[1,"spkTooltip"]}});let t=m;return t})();export{ue as a,bn as b,En as c,Gi as d,Tn as e,Mn as f,Ki as g,In as h,Ji as i,Zi as j,Vn as k,Xe as l,Rn as m,Pn as n,An as o,nn as p,Fn as q,Hn as r,sn as s,Ln as t,jn as u,Bn as v,Wn as w,on as x,qn as y,zn as z,Nn as A,Un as B,$n as C};
@@ -0,0 +1 @@
1
+ import{a as D}from"./chunk-WY2KPAVB.js";import{a as R}from"./chunk-KQAO2YHR.js";import"./chunk-FPLBURO5.js";import"./chunk-UVLJAD66.js";import"./chunk-7LEXBIXG.js";import"./chunk-P4ZYFRD3.js";import{a as F,g as U,p as w}from"./chunk-MHALSLG3.js";import{h as L}from"./chunk-FWVOVJCG.js";import"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import{Bb as S,F as d,Gc as O,Jb as E,Kb as x,La as T,Lb as M,Nb as k,Oa as l,Ob as _,X as m,_a as G,_b as P,ba as u,bc as s,ca as g,cc as b,la as C,pb as p,qb as c,r as A,ub as N,vb as a,wb as o,xb as f}from"./chunk-K6EZTPNQ.js";import"./chunk-EUDKD2JW.js";function y(n,i){n&1&&f(0,"spk-progress-bar",2)}function V(n,i){if(n&1&&(a(0,"a",6)(1,"spk-icon"),s(2,"download"),o(),s(3," Download update "),o()),n&2){let e,t=_(2);N("href",(e=t.serverState())==null?null:e.UpdateDownloadLink,T)}}function $(n,i){if(n&1){let e=S();a(0,"button",5),k("click",function(){u(e);let r=_();return g(r.checkForUpdates())}),s(1,"Check for updates"),o(),p(2,V,4,1,"a",6)}if(n&2){let e,t=_();P("loader",t.checkingForUpdates()),l(2),c((e=t.serverState())!=null&&e.UpdateDownloadLink?2:-1)}}function I(n,i){if(n&1){let e=S();a(0,"button",5),k("click",function(){u(e);let r=_();return g(r.checkForUpdates())}),s(1,"Checking for updates \u2026"),o()}}function B(n,i){n&1&&f(0,"spk-progress-bar",2)}var h=class n{#e=m(L);#t=m(R);isLoading=C(!0);checkingForUpdates=C(!1);serverState=this.#t.serverState;duplicatiVersion=O(()=>this.#t.serverState()?.UpdatedVersion);generalInfo=D(this.#e.getApiV1Acknowledgements().pipe(A(i=>i.Acknowledgements),d(()=>this.isLoading.set(!1))));checkForUpdates(){this.checkingForUpdates.set(!0),this.#e.postApiV1UpdatesCheck().pipe(d(()=>this.checkingForUpdates.set(!1))).subscribe()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=G({type:n,selectors:[["app-general"]],decls:12,vars:5,consts:()=>{let i;i=$localize`General`;let e;return e=$localize`You're running Duplicati with - ${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[i,e,[1,"indeterminate","primary"],[1,"actions"],["spk-button",""],["spk-button","",3,"click"],["spk-button","","target","_blank",1,"primary","raised",3,"href"]]},template:function(e,t){if(e&1&&(p(0,y,1,0,"spk-progress-bar",2),a(1,"section")(2,"h3"),E(3,0),o(),a(4,"p"),E(5,1),o(),a(6,"div",3),p(7,$,3,3)(8,I,2,0,"button",4),p(9,B,1,0,"spk-progress-bar",2),o(),a(10,"div"),s(11),o()()),e&2){let r,v;c(t.isLoading()?0:-1),l(5),x(t.duplicatiVersion()),M(5),l(2),c(((r=t.serverState())==null?null:r.UpdaterState)==="Waiting"?7:((r=t.serverState())==null?null:r.UpdaterState)==="Checking"?8:-1),l(2),c(((v=t.serverState())==null?null:v.UpdaterState)==="Downloading"?9:-1),l(2),b(t.generalInfo())}},dependencies:[w,U,F],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{h as default};