@everymatrix/player-account-controller 1.68.0 → 1.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/components/{PlayerAccountController-BGIYoCkD.js → PlayerAccountController-Bj-XgQJE.js} +9 -9
  2. package/components/{PlayerAccountController-BckipwcO.js → PlayerAccountController-CvlVSeuD.js} +9 -9
  3. package/components/{PlayerAccountController-DCe0-Np2.cjs → PlayerAccountController-DOYR_ETm.cjs} +1 -1
  4. package/components/{PlayerAccountGamingLimits-BF1Dd_Yw.js → PlayerAccountGamingLimits-B0QALjVi.js} +1 -1
  5. package/components/{PlayerAccountGamingLimits-DZBzKFyv.cjs → PlayerAccountGamingLimits-BIXEO8qU.cjs} +1 -1
  6. package/components/{PlayerAccountGamingLimits-BKHRQo_P.js → PlayerAccountGamingLimits-C11On8aq.js} +1 -1
  7. package/components/PlayerAccountGamingLimitsGroupEdit-C40tSY9Z.js +4792 -0
  8. package/components/PlayerAccountGamingLimitsGroupEdit-CoayAtf0.js +4792 -0
  9. package/components/PlayerAccountGamingLimitsGroupEdit-Crtmu06d.cjs +2 -0
  10. package/components/{PlayerAccountGamingLimitsInfoCard-DWbZBNtU.cjs → PlayerAccountGamingLimitsInfoCard-COS0sgRr.cjs} +1 -1
  11. package/components/{PlayerAccountGamingLimitsInfoCard-BlMfsPqJ.js → PlayerAccountGamingLimitsInfoCard-D5Vpi7Gd.js} +2 -2
  12. package/components/{PlayerAccountGamingLimitsInfoCard-BqsEfU1b.js → PlayerAccountGamingLimitsInfoCard-blI001Nx.js} +2 -2
  13. package/components/PlayerAccountGeneralConfirmationModal-DHEkFez0.cjs +1 -0
  14. package/components/{PlayerAccountGeneralConfirmationModal-lHX_vmhB.js → PlayerAccountGeneralConfirmationModal-DbBEBukz.js} +114 -119
  15. package/components/{PlayerAccountGeneralConfirmationModal-DQ7Oklqf.js → PlayerAccountGeneralConfirmationModal-DzZ3ym_J.js} +114 -119
  16. package/components/{PlayerAccountProductRestriction-BDO7zmmM.js → PlayerAccountProductRestriction-BXXflOCi.js} +268 -283
  17. package/components/{PlayerAccountProductRestriction-D-EBC7dz.js → PlayerAccountProductRestriction-f6Ihr4uI.js} +268 -283
  18. package/components/{PlayerAccountProductRestriction-BK1qKxhK.cjs → PlayerAccountProductRestriction-uj_BwdJ0.cjs} +37 -37
  19. package/components/{PlayerAccountSelfExclusion-DNhGD82-.js → PlayerAccountSelfExclusion-B3xDcZXs.js} +2 -2
  20. package/components/{PlayerAccountSelfExclusion-CBfJvzsw.cjs → PlayerAccountSelfExclusion-NoFOWnwy.cjs} +1 -1
  21. package/components/{PlayerAccountSelfExclusion-B1UJulje.js → PlayerAccountSelfExclusion-tzK5a7dq.js} +2 -2
  22. package/components/{PlayerAccountTimeout-C7TRf46n.js → PlayerAccountTimeout-DFM9IiTT.js} +2 -2
  23. package/components/{PlayerAccountTimeout-Cs6kPeQE.cjs → PlayerAccountTimeout-HZrAxL_1.cjs} +1 -1
  24. package/components/{PlayerAccountTimeout-CajByu4y.js → PlayerAccountTimeout-b0Nl9gfs.js} +2 -2
  25. package/components/{PlayerAccountTransactionsHistory-BaakM7i6.js → PlayerAccountTransactionsHistory-B_kH0Hjt.js} +2 -2
  26. package/components/{PlayerAccountTransactionsHistory-DlxuOGYF.js → PlayerAccountTransactionsHistory-DoyCBIgA.js} +2 -2
  27. package/components/{PlayerAccountTransactionsHistory-CXUQytDG.cjs → PlayerAccountTransactionsHistory-PIw_RR0i.cjs} +1 -1
  28. package/components/{PlayerActiveBonuses-DRc-ZvO7.js → PlayerActiveBonuses-CSDz-kWg.js} +489 -459
  29. package/components/{PlayerActiveBonuses-BbX2ugwN.js → PlayerActiveBonuses-CrOQdlJB.js} +492 -462
  30. package/components/PlayerActiveBonuses-wlP0A00N.cjs +1 -0
  31. package/components/PlayerBonusCard-BBQEU4zs.cjs +1 -0
  32. package/components/{PlayerBonusCard-CXbETnCF.js → PlayerBonusCard-Ca4GQeMu.js} +207 -191
  33. package/components/{PlayerBonusCard-6xOKi384.js → PlayerBonusCard-qHJ-z21x.js} +207 -191
  34. package/components/PlayerBonusHistory-2blkOHr3.js +1051 -0
  35. package/components/PlayerBonusHistory-ChzkBbAH.js +1040 -0
  36. package/components/PlayerBonusHistory-D2uJLN_3.cjs +1 -0
  37. package/components/PlayerGamingHistory-8wco0drZ.js +1016 -0
  38. package/components/{PlayerGamingHistory-BmwyIBJN.js → PlayerGamingHistory-CRFPc2yB.js} +472 -456
  39. package/components/PlayerGamingHistory-D5C8zTFo.cjs +1 -0
  40. package/es2015/player-account-controller.cjs +1 -1
  41. package/es2015/player-account-controller.js +1 -1
  42. package/esnext/player-account-controller.js +1 -1
  43. package/package.json +1 -1
  44. package/stencil/{index-7c5e707a-C9R6jYpt.js → index-7c5e707a-2AC9SnQ7.js} +1 -1
  45. package/stencil/{index-7c5e707a-DvxqcEpc.js → index-7c5e707a-BM4sfR0h.js} +1 -1
  46. package/stencil/{index-7c5e707a-ESX_oqGB.cjs → index-7c5e707a-Cw-c3Bke.cjs} +1 -1
  47. package/stencil/user-transaction-history-7_yFZr3w.js +1645 -0
  48. package/stencil/user-transaction-history-DZZT2rYX.cjs +1 -0
  49. package/stencil/user-transaction-history-Dpd_aKdj.js +1621 -0
  50. package/components/PlayerAccountGamingLimitsGroupEdit-B7O4IGQB.js +0 -2891
  51. package/components/PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs +0 -1
  52. package/components/PlayerAccountGamingLimitsGroupEdit-DlaRG8Hg.js +0 -2891
  53. package/components/PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs +0 -1
  54. package/components/PlayerActiveBonuses-Bc5S3wl_.cjs +0 -1
  55. package/components/PlayerBonusCard-BNNcjGWn.cjs +0 -1
  56. package/components/PlayerBonusHistory-DrdkliDU.cjs +0 -1
  57. package/components/PlayerBonusHistory-MuL66Q-z.js +0 -985
  58. package/components/PlayerBonusHistory-bApDQYer.js +0 -986
  59. package/components/PlayerGamingHistory-AV5mZQlk.js +0 -975
  60. package/components/PlayerGamingHistory-BDzbgOBi.cjs +0 -1
  61. package/stencil/user-transaction-history-BAK7MHHa.js +0 -374
  62. package/stencil/user-transaction-history-DhQ6RqNc.js +0 -350
  63. package/stencil/user-transaction-history-DiRXpfbN.cjs +0 -1
@@ -0,0 +1,4792 @@
1
+ import { a as Kt, $ as Zt, S as $t, i as er, s as tr, f as be, b as rr, n as nt, d as I, r as Qe, c as oe, e as De, o as b, g as q, h as f, l as ke, N as ir, j as D, k as Q, v as he, m as K, p as nr, q as ar, u as or, O as Ue, P as Je, Q as sr, R as He, w as ur, F as Ke, T as at, U as Ze, V as Oe, W as lr, x as cr, y as mr, z as dr, A as fr, B as vr } from "./GeneralLogout-CYE3twI-.js";
2
+ if (typeof window != "undefined") {
3
+ let n = function(r) {
4
+ return function(...t) {
5
+ try {
6
+ return r.apply(this, t);
7
+ } catch (i) {
8
+ if (i instanceof DOMException && i.message.includes("has already been used with this registry") || i.message.includes("Cannot define multiple custom elements with the same tag name"))
9
+ return !1;
10
+ throw i;
11
+ }
12
+ };
13
+ };
14
+ customElements.define = n(customElements.define), import("./PlayerAccountModal-Co5a_OZZ.js").then(({ default: r }) => {
15
+ !customElements.get("player-account-modal") && customElements.define("player-account-modal", r.element);
16
+ });
17
+ }
18
+ function Me(n) {
19
+ "@babel/helpers - typeof";
20
+ return Me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
21
+ return typeof r;
22
+ } : function(r) {
23
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
24
+ }, Me(n);
25
+ }
26
+ function se(n) {
27
+ if (n === null || n === !0 || n === !1)
28
+ return NaN;
29
+ var r = Number(n);
30
+ return isNaN(r) ? r : r < 0 ? Math.ceil(r) : Math.floor(r);
31
+ }
32
+ function j(n, r) {
33
+ if (r.length < n)
34
+ throw new TypeError(n + " argument" + (n > 1 ? "s" : "") + " required, but only " + r.length + " present");
35
+ }
36
+ function ie(n) {
37
+ j(1, arguments);
38
+ var r = Object.prototype.toString.call(n);
39
+ return n instanceof Date || Me(n) === "object" && r === "[object Date]" ? new Date(n.getTime()) : typeof n == "number" || r === "[object Number]" ? new Date(n) : ((typeof n == "string" || r === "[object String]") && typeof console != "undefined" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
40
+ }
41
+ function pr(n, r) {
42
+ j(2, arguments);
43
+ var t = ie(n), i = se(r);
44
+ return isNaN(i) ? /* @__PURE__ */ new Date(NaN) : (i && t.setDate(t.getDate() + i), t);
45
+ }
46
+ function hr(n, r) {
47
+ j(2, arguments);
48
+ var t = ie(n), i = se(r);
49
+ if (isNaN(i))
50
+ return /* @__PURE__ */ new Date(NaN);
51
+ if (!i)
52
+ return t;
53
+ var e = t.getDate(), o = new Date(t.getTime());
54
+ o.setMonth(t.getMonth() + i + 1, 0);
55
+ var a = o.getDate();
56
+ return e >= a ? o : (t.setFullYear(o.getFullYear(), o.getMonth(), e), t);
57
+ }
58
+ function gr(n, r) {
59
+ j(2, arguments);
60
+ var t = ie(n).getTime(), i = se(r);
61
+ return new Date(t + i);
62
+ }
63
+ var wr = {};
64
+ function We() {
65
+ return wr;
66
+ }
67
+ function Pt(n) {
68
+ var r = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
69
+ return r.setUTCFullYear(n.getFullYear()), n.getTime() - r.getTime();
70
+ }
71
+ function _n(n) {
72
+ j(1, arguments);
73
+ var r = ie(n);
74
+ return r.setHours(0, 0, 0, 0), r;
75
+ }
76
+ var yr = 6e4, br = 36e5, Tr = 1e3;
77
+ function Lr(n) {
78
+ return j(1, arguments), n instanceof Date || Me(n) === "object" && Object.prototype.toString.call(n) === "[object Date]";
79
+ }
80
+ function kr(n) {
81
+ if (j(1, arguments), !Lr(n) && typeof n != "number")
82
+ return !1;
83
+ var r = ie(n);
84
+ return !isNaN(Number(r));
85
+ }
86
+ function Dn(n) {
87
+ j(1, arguments);
88
+ var r = ie(n);
89
+ return r.setHours(23, 59, 59, 999), r;
90
+ }
91
+ function Ot(n, r) {
92
+ j(2, arguments);
93
+ var t = se(r);
94
+ return gr(n, -t);
95
+ }
96
+ var Cr = 864e5;
97
+ function _r(n) {
98
+ j(1, arguments);
99
+ var r = ie(n), t = r.getTime();
100
+ r.setUTCMonth(0, 1), r.setUTCHours(0, 0, 0, 0);
101
+ var i = r.getTime(), e = t - i;
102
+ return Math.floor(e / Cr) + 1;
103
+ }
104
+ function Ne(n) {
105
+ j(1, arguments);
106
+ var r = 1, t = ie(n), i = t.getUTCDay(), e = (i < r ? 7 : 0) + i - r;
107
+ return t.setUTCDate(t.getUTCDate() - e), t.setUTCHours(0, 0, 0, 0), t;
108
+ }
109
+ function At(n) {
110
+ j(1, arguments);
111
+ var r = ie(n), t = r.getUTCFullYear(), i = /* @__PURE__ */ new Date(0);
112
+ i.setUTCFullYear(t + 1, 0, 4), i.setUTCHours(0, 0, 0, 0);
113
+ var e = Ne(i), o = /* @__PURE__ */ new Date(0);
114
+ o.setUTCFullYear(t, 0, 4), o.setUTCHours(0, 0, 0, 0);
115
+ var a = Ne(o);
116
+ return r.getTime() >= e.getTime() ? t + 1 : r.getTime() >= a.getTime() ? t : t - 1;
117
+ }
118
+ function Dr(n) {
119
+ j(1, arguments);
120
+ var r = At(n), t = /* @__PURE__ */ new Date(0);
121
+ t.setUTCFullYear(r, 0, 4), t.setUTCHours(0, 0, 0, 0);
122
+ var i = Ne(t);
123
+ return i;
124
+ }
125
+ var Mr = 6048e5;
126
+ function xt(n) {
127
+ j(1, arguments);
128
+ var r = ie(n), t = Ne(r).getTime() - Dr(r).getTime();
129
+ return Math.round(t / Mr) + 1;
130
+ }
131
+ function Ae(n, r) {
132
+ var t, i, e, o, a, s, u, l;
133
+ j(1, arguments);
134
+ var m = We(), y = se((t = (i = (e = (o = r == null ? void 0 : r.weekStartsOn) !== null && o !== void 0 ? o : r == null || (a = r.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && e !== void 0 ? e : m.weekStartsOn) !== null && i !== void 0 ? i : (u = m.locale) === null || u === void 0 || (l = u.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && t !== void 0 ? t : 0);
135
+ if (!(y >= 0 && y <= 6))
136
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
137
+ var w = ie(n), p = w.getUTCDay(), P = (p < y ? 7 : 0) + p - y;
138
+ return w.setUTCDate(w.getUTCDate() - P), w.setUTCHours(0, 0, 0, 0), w;
139
+ }
140
+ function $e(n, r) {
141
+ var t, i, e, o, a, s, u, l;
142
+ j(1, arguments);
143
+ var m = ie(n), y = m.getUTCFullYear(), w = We(), p = se((t = (i = (e = (o = r == null ? void 0 : r.firstWeekContainsDate) !== null && o !== void 0 ? o : r == null || (a = r.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && e !== void 0 ? e : w.firstWeekContainsDate) !== null && i !== void 0 ? i : (u = w.locale) === null || u === void 0 || (l = u.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
144
+ if (!(p >= 1 && p <= 7))
145
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
146
+ var P = /* @__PURE__ */ new Date(0);
147
+ P.setUTCFullYear(y + 1, 0, p), P.setUTCHours(0, 0, 0, 0);
148
+ var h = Ae(P, r), g = /* @__PURE__ */ new Date(0);
149
+ g.setUTCFullYear(y, 0, p), g.setUTCHours(0, 0, 0, 0);
150
+ var k = Ae(g, r);
151
+ return m.getTime() >= h.getTime() ? y + 1 : m.getTime() >= k.getTime() ? y : y - 1;
152
+ }
153
+ function Er(n, r) {
154
+ var t, i, e, o, a, s, u, l;
155
+ j(1, arguments);
156
+ var m = We(), y = se((t = (i = (e = (o = r == null ? void 0 : r.firstWeekContainsDate) !== null && o !== void 0 ? o : r == null || (a = r.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && e !== void 0 ? e : m.firstWeekContainsDate) !== null && i !== void 0 ? i : (u = m.locale) === null || u === void 0 || (l = u.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), w = $e(n, r), p = /* @__PURE__ */ new Date(0);
157
+ p.setUTCFullYear(w, 0, y), p.setUTCHours(0, 0, 0, 0);
158
+ var P = Ae(p, r);
159
+ return P;
160
+ }
161
+ var Pr = 6048e5;
162
+ function Ut(n, r) {
163
+ j(1, arguments);
164
+ var t = ie(n), i = Ae(t, r).getTime() - Er(t, r).getTime();
165
+ return Math.round(i / Pr) + 1;
166
+ }
167
+ function Y(n, r) {
168
+ for (var t = n < 0 ? "-" : "", i = Math.abs(n).toString(); i.length < r; )
169
+ i = "0" + i;
170
+ return t + i;
171
+ }
172
+ var Ee = {
173
+ // Year
174
+ y: function(r, t) {
175
+ var i = r.getUTCFullYear(), e = i > 0 ? i : 1 - i;
176
+ return Y(t === "yy" ? e % 100 : e, t.length);
177
+ },
178
+ // Month
179
+ M: function(r, t) {
180
+ var i = r.getUTCMonth();
181
+ return t === "M" ? String(i + 1) : Y(i + 1, 2);
182
+ },
183
+ // Day of the month
184
+ d: function(r, t) {
185
+ return Y(r.getUTCDate(), t.length);
186
+ },
187
+ // AM or PM
188
+ a: function(r, t) {
189
+ var i = r.getUTCHours() / 12 >= 1 ? "pm" : "am";
190
+ switch (t) {
191
+ case "a":
192
+ case "aa":
193
+ return i.toUpperCase();
194
+ case "aaa":
195
+ return i;
196
+ case "aaaaa":
197
+ return i[0];
198
+ case "aaaa":
199
+ default:
200
+ return i === "am" ? "a.m." : "p.m.";
201
+ }
202
+ },
203
+ // Hour [1-12]
204
+ h: function(r, t) {
205
+ return Y(r.getUTCHours() % 12 || 12, t.length);
206
+ },
207
+ // Hour [0-23]
208
+ H: function(r, t) {
209
+ return Y(r.getUTCHours(), t.length);
210
+ },
211
+ // Minute
212
+ m: function(r, t) {
213
+ return Y(r.getUTCMinutes(), t.length);
214
+ },
215
+ // Second
216
+ s: function(r, t) {
217
+ return Y(r.getUTCSeconds(), t.length);
218
+ },
219
+ // Fraction of second
220
+ S: function(r, t) {
221
+ var i = t.length, e = r.getUTCMilliseconds(), o = Math.floor(e * Math.pow(10, i - 3));
222
+ return Y(o, t.length);
223
+ }
224
+ }, xe = {
225
+ midnight: "midnight",
226
+ noon: "noon",
227
+ morning: "morning",
228
+ afternoon: "afternoon",
229
+ evening: "evening",
230
+ night: "night"
231
+ }, Or = {
232
+ // Era
233
+ G: function(r, t, i) {
234
+ var e = r.getUTCFullYear() > 0 ? 1 : 0;
235
+ switch (t) {
236
+ case "G":
237
+ case "GG":
238
+ case "GGG":
239
+ return i.era(e, {
240
+ width: "abbreviated"
241
+ });
242
+ case "GGGGG":
243
+ return i.era(e, {
244
+ width: "narrow"
245
+ });
246
+ case "GGGG":
247
+ default:
248
+ return i.era(e, {
249
+ width: "wide"
250
+ });
251
+ }
252
+ },
253
+ // Year
254
+ y: function(r, t, i) {
255
+ if (t === "yo") {
256
+ var e = r.getUTCFullYear(), o = e > 0 ? e : 1 - e;
257
+ return i.ordinalNumber(o, {
258
+ unit: "year"
259
+ });
260
+ }
261
+ return Ee.y(r, t);
262
+ },
263
+ // Local week-numbering year
264
+ Y: function(r, t, i, e) {
265
+ var o = $e(r, e), a = o > 0 ? o : 1 - o;
266
+ if (t === "YY") {
267
+ var s = a % 100;
268
+ return Y(s, 2);
269
+ }
270
+ return t === "Yo" ? i.ordinalNumber(a, {
271
+ unit: "year"
272
+ }) : Y(a, t.length);
273
+ },
274
+ // ISO week-numbering year
275
+ R: function(r, t) {
276
+ var i = At(r);
277
+ return Y(i, t.length);
278
+ },
279
+ // Extended year. This is a single number designating the year of this calendar system.
280
+ // The main difference between `y` and `u` localizers are B.C. years:
281
+ // | Year | `y` | `u` |
282
+ // |------|-----|-----|
283
+ // | AC 1 | 1 | 1 |
284
+ // | BC 1 | 1 | 0 |
285
+ // | BC 2 | 2 | -1 |
286
+ // Also `yy` always returns the last two digits of a year,
287
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
288
+ u: function(r, t) {
289
+ var i = r.getUTCFullYear();
290
+ return Y(i, t.length);
291
+ },
292
+ // Quarter
293
+ Q: function(r, t, i) {
294
+ var e = Math.ceil((r.getUTCMonth() + 1) / 3);
295
+ switch (t) {
296
+ case "Q":
297
+ return String(e);
298
+ case "QQ":
299
+ return Y(e, 2);
300
+ case "Qo":
301
+ return i.ordinalNumber(e, {
302
+ unit: "quarter"
303
+ });
304
+ case "QQQ":
305
+ return i.quarter(e, {
306
+ width: "abbreviated",
307
+ context: "formatting"
308
+ });
309
+ case "QQQQQ":
310
+ return i.quarter(e, {
311
+ width: "narrow",
312
+ context: "formatting"
313
+ });
314
+ case "QQQQ":
315
+ default:
316
+ return i.quarter(e, {
317
+ width: "wide",
318
+ context: "formatting"
319
+ });
320
+ }
321
+ },
322
+ // Stand-alone quarter
323
+ q: function(r, t, i) {
324
+ var e = Math.ceil((r.getUTCMonth() + 1) / 3);
325
+ switch (t) {
326
+ case "q":
327
+ return String(e);
328
+ case "qq":
329
+ return Y(e, 2);
330
+ case "qo":
331
+ return i.ordinalNumber(e, {
332
+ unit: "quarter"
333
+ });
334
+ case "qqq":
335
+ return i.quarter(e, {
336
+ width: "abbreviated",
337
+ context: "standalone"
338
+ });
339
+ case "qqqqq":
340
+ return i.quarter(e, {
341
+ width: "narrow",
342
+ context: "standalone"
343
+ });
344
+ case "qqqq":
345
+ default:
346
+ return i.quarter(e, {
347
+ width: "wide",
348
+ context: "standalone"
349
+ });
350
+ }
351
+ },
352
+ // Month
353
+ M: function(r, t, i) {
354
+ var e = r.getUTCMonth();
355
+ switch (t) {
356
+ case "M":
357
+ case "MM":
358
+ return Ee.M(r, t);
359
+ case "Mo":
360
+ return i.ordinalNumber(e + 1, {
361
+ unit: "month"
362
+ });
363
+ case "MMM":
364
+ return i.month(e, {
365
+ width: "abbreviated",
366
+ context: "formatting"
367
+ });
368
+ case "MMMMM":
369
+ return i.month(e, {
370
+ width: "narrow",
371
+ context: "formatting"
372
+ });
373
+ case "MMMM":
374
+ default:
375
+ return i.month(e, {
376
+ width: "wide",
377
+ context: "formatting"
378
+ });
379
+ }
380
+ },
381
+ // Stand-alone month
382
+ L: function(r, t, i) {
383
+ var e = r.getUTCMonth();
384
+ switch (t) {
385
+ case "L":
386
+ return String(e + 1);
387
+ case "LL":
388
+ return Y(e + 1, 2);
389
+ case "Lo":
390
+ return i.ordinalNumber(e + 1, {
391
+ unit: "month"
392
+ });
393
+ case "LLL":
394
+ return i.month(e, {
395
+ width: "abbreviated",
396
+ context: "standalone"
397
+ });
398
+ case "LLLLL":
399
+ return i.month(e, {
400
+ width: "narrow",
401
+ context: "standalone"
402
+ });
403
+ case "LLLL":
404
+ default:
405
+ return i.month(e, {
406
+ width: "wide",
407
+ context: "standalone"
408
+ });
409
+ }
410
+ },
411
+ // Local week of year
412
+ w: function(r, t, i, e) {
413
+ var o = Ut(r, e);
414
+ return t === "wo" ? i.ordinalNumber(o, {
415
+ unit: "week"
416
+ }) : Y(o, t.length);
417
+ },
418
+ // ISO week of year
419
+ I: function(r, t, i) {
420
+ var e = xt(r);
421
+ return t === "Io" ? i.ordinalNumber(e, {
422
+ unit: "week"
423
+ }) : Y(e, t.length);
424
+ },
425
+ // Day of the month
426
+ d: function(r, t, i) {
427
+ return t === "do" ? i.ordinalNumber(r.getUTCDate(), {
428
+ unit: "date"
429
+ }) : Ee.d(r, t);
430
+ },
431
+ // Day of year
432
+ D: function(r, t, i) {
433
+ var e = _r(r);
434
+ return t === "Do" ? i.ordinalNumber(e, {
435
+ unit: "dayOfYear"
436
+ }) : Y(e, t.length);
437
+ },
438
+ // Day of week
439
+ E: function(r, t, i) {
440
+ var e = r.getUTCDay();
441
+ switch (t) {
442
+ case "E":
443
+ case "EE":
444
+ case "EEE":
445
+ return i.day(e, {
446
+ width: "abbreviated",
447
+ context: "formatting"
448
+ });
449
+ case "EEEEE":
450
+ return i.day(e, {
451
+ width: "narrow",
452
+ context: "formatting"
453
+ });
454
+ case "EEEEEE":
455
+ return i.day(e, {
456
+ width: "short",
457
+ context: "formatting"
458
+ });
459
+ case "EEEE":
460
+ default:
461
+ return i.day(e, {
462
+ width: "wide",
463
+ context: "formatting"
464
+ });
465
+ }
466
+ },
467
+ // Local day of week
468
+ e: function(r, t, i, e) {
469
+ var o = r.getUTCDay(), a = (o - e.weekStartsOn + 8) % 7 || 7;
470
+ switch (t) {
471
+ case "e":
472
+ return String(a);
473
+ case "ee":
474
+ return Y(a, 2);
475
+ case "eo":
476
+ return i.ordinalNumber(a, {
477
+ unit: "day"
478
+ });
479
+ case "eee":
480
+ return i.day(o, {
481
+ width: "abbreviated",
482
+ context: "formatting"
483
+ });
484
+ case "eeeee":
485
+ return i.day(o, {
486
+ width: "narrow",
487
+ context: "formatting"
488
+ });
489
+ case "eeeeee":
490
+ return i.day(o, {
491
+ width: "short",
492
+ context: "formatting"
493
+ });
494
+ case "eeee":
495
+ default:
496
+ return i.day(o, {
497
+ width: "wide",
498
+ context: "formatting"
499
+ });
500
+ }
501
+ },
502
+ // Stand-alone local day of week
503
+ c: function(r, t, i, e) {
504
+ var o = r.getUTCDay(), a = (o - e.weekStartsOn + 8) % 7 || 7;
505
+ switch (t) {
506
+ case "c":
507
+ return String(a);
508
+ case "cc":
509
+ return Y(a, t.length);
510
+ case "co":
511
+ return i.ordinalNumber(a, {
512
+ unit: "day"
513
+ });
514
+ case "ccc":
515
+ return i.day(o, {
516
+ width: "abbreviated",
517
+ context: "standalone"
518
+ });
519
+ case "ccccc":
520
+ return i.day(o, {
521
+ width: "narrow",
522
+ context: "standalone"
523
+ });
524
+ case "cccccc":
525
+ return i.day(o, {
526
+ width: "short",
527
+ context: "standalone"
528
+ });
529
+ case "cccc":
530
+ default:
531
+ return i.day(o, {
532
+ width: "wide",
533
+ context: "standalone"
534
+ });
535
+ }
536
+ },
537
+ // ISO day of week
538
+ i: function(r, t, i) {
539
+ var e = r.getUTCDay(), o = e === 0 ? 7 : e;
540
+ switch (t) {
541
+ case "i":
542
+ return String(o);
543
+ case "ii":
544
+ return Y(o, t.length);
545
+ case "io":
546
+ return i.ordinalNumber(o, {
547
+ unit: "day"
548
+ });
549
+ case "iii":
550
+ return i.day(e, {
551
+ width: "abbreviated",
552
+ context: "formatting"
553
+ });
554
+ case "iiiii":
555
+ return i.day(e, {
556
+ width: "narrow",
557
+ context: "formatting"
558
+ });
559
+ case "iiiiii":
560
+ return i.day(e, {
561
+ width: "short",
562
+ context: "formatting"
563
+ });
564
+ case "iiii":
565
+ default:
566
+ return i.day(e, {
567
+ width: "wide",
568
+ context: "formatting"
569
+ });
570
+ }
571
+ },
572
+ // AM or PM
573
+ a: function(r, t, i) {
574
+ var e = r.getUTCHours(), o = e / 12 >= 1 ? "pm" : "am";
575
+ switch (t) {
576
+ case "a":
577
+ case "aa":
578
+ return i.dayPeriod(o, {
579
+ width: "abbreviated",
580
+ context: "formatting"
581
+ });
582
+ case "aaa":
583
+ return i.dayPeriod(o, {
584
+ width: "abbreviated",
585
+ context: "formatting"
586
+ }).toLowerCase();
587
+ case "aaaaa":
588
+ return i.dayPeriod(o, {
589
+ width: "narrow",
590
+ context: "formatting"
591
+ });
592
+ case "aaaa":
593
+ default:
594
+ return i.dayPeriod(o, {
595
+ width: "wide",
596
+ context: "formatting"
597
+ });
598
+ }
599
+ },
600
+ // AM, PM, midnight, noon
601
+ b: function(r, t, i) {
602
+ var e = r.getUTCHours(), o;
603
+ switch (e === 12 ? o = xe.noon : e === 0 ? o = xe.midnight : o = e / 12 >= 1 ? "pm" : "am", t) {
604
+ case "b":
605
+ case "bb":
606
+ return i.dayPeriod(o, {
607
+ width: "abbreviated",
608
+ context: "formatting"
609
+ });
610
+ case "bbb":
611
+ return i.dayPeriod(o, {
612
+ width: "abbreviated",
613
+ context: "formatting"
614
+ }).toLowerCase();
615
+ case "bbbbb":
616
+ return i.dayPeriod(o, {
617
+ width: "narrow",
618
+ context: "formatting"
619
+ });
620
+ case "bbbb":
621
+ default:
622
+ return i.dayPeriod(o, {
623
+ width: "wide",
624
+ context: "formatting"
625
+ });
626
+ }
627
+ },
628
+ // in the morning, in the afternoon, in the evening, at night
629
+ B: function(r, t, i) {
630
+ var e = r.getUTCHours(), o;
631
+ switch (e >= 17 ? o = xe.evening : e >= 12 ? o = xe.afternoon : e >= 4 ? o = xe.morning : o = xe.night, t) {
632
+ case "B":
633
+ case "BB":
634
+ case "BBB":
635
+ return i.dayPeriod(o, {
636
+ width: "abbreviated",
637
+ context: "formatting"
638
+ });
639
+ case "BBBBB":
640
+ return i.dayPeriod(o, {
641
+ width: "narrow",
642
+ context: "formatting"
643
+ });
644
+ case "BBBB":
645
+ default:
646
+ return i.dayPeriod(o, {
647
+ width: "wide",
648
+ context: "formatting"
649
+ });
650
+ }
651
+ },
652
+ // Hour [1-12]
653
+ h: function(r, t, i) {
654
+ if (t === "ho") {
655
+ var e = r.getUTCHours() % 12;
656
+ return e === 0 && (e = 12), i.ordinalNumber(e, {
657
+ unit: "hour"
658
+ });
659
+ }
660
+ return Ee.h(r, t);
661
+ },
662
+ // Hour [0-23]
663
+ H: function(r, t, i) {
664
+ return t === "Ho" ? i.ordinalNumber(r.getUTCHours(), {
665
+ unit: "hour"
666
+ }) : Ee.H(r, t);
667
+ },
668
+ // Hour [0-11]
669
+ K: function(r, t, i) {
670
+ var e = r.getUTCHours() % 12;
671
+ return t === "Ko" ? i.ordinalNumber(e, {
672
+ unit: "hour"
673
+ }) : Y(e, t.length);
674
+ },
675
+ // Hour [1-24]
676
+ k: function(r, t, i) {
677
+ var e = r.getUTCHours();
678
+ return e === 0 && (e = 24), t === "ko" ? i.ordinalNumber(e, {
679
+ unit: "hour"
680
+ }) : Y(e, t.length);
681
+ },
682
+ // Minute
683
+ m: function(r, t, i) {
684
+ return t === "mo" ? i.ordinalNumber(r.getUTCMinutes(), {
685
+ unit: "minute"
686
+ }) : Ee.m(r, t);
687
+ },
688
+ // Second
689
+ s: function(r, t, i) {
690
+ return t === "so" ? i.ordinalNumber(r.getUTCSeconds(), {
691
+ unit: "second"
692
+ }) : Ee.s(r, t);
693
+ },
694
+ // Fraction of second
695
+ S: function(r, t) {
696
+ return Ee.S(r, t);
697
+ },
698
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
699
+ X: function(r, t, i, e) {
700
+ var o = e._originalDate || r, a = o.getTimezoneOffset();
701
+ if (a === 0)
702
+ return "Z";
703
+ switch (t) {
704
+ case "X":
705
+ return st(a);
706
+ case "XXXX":
707
+ case "XX":
708
+ return Pe(a);
709
+ case "XXXXX":
710
+ case "XXX":
711
+ default:
712
+ return Pe(a, ":");
713
+ }
714
+ },
715
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
716
+ x: function(r, t, i, e) {
717
+ var o = e._originalDate || r, a = o.getTimezoneOffset();
718
+ switch (t) {
719
+ case "x":
720
+ return st(a);
721
+ case "xxxx":
722
+ case "xx":
723
+ return Pe(a);
724
+ case "xxxxx":
725
+ case "xxx":
726
+ default:
727
+ return Pe(a, ":");
728
+ }
729
+ },
730
+ // Timezone (GMT)
731
+ O: function(r, t, i, e) {
732
+ var o = e._originalDate || r, a = o.getTimezoneOffset();
733
+ switch (t) {
734
+ case "O":
735
+ case "OO":
736
+ case "OOO":
737
+ return "GMT" + ot(a, ":");
738
+ case "OOOO":
739
+ default:
740
+ return "GMT" + Pe(a, ":");
741
+ }
742
+ },
743
+ // Timezone (specific non-location)
744
+ z: function(r, t, i, e) {
745
+ var o = e._originalDate || r, a = o.getTimezoneOffset();
746
+ switch (t) {
747
+ case "z":
748
+ case "zz":
749
+ case "zzz":
750
+ return "GMT" + ot(a, ":");
751
+ case "zzzz":
752
+ default:
753
+ return "GMT" + Pe(a, ":");
754
+ }
755
+ },
756
+ // Seconds timestamp
757
+ t: function(r, t, i, e) {
758
+ var o = e._originalDate || r, a = Math.floor(o.getTime() / 1e3);
759
+ return Y(a, t.length);
760
+ },
761
+ // Milliseconds timestamp
762
+ T: function(r, t, i, e) {
763
+ var o = e._originalDate || r, a = o.getTime();
764
+ return Y(a, t.length);
765
+ }
766
+ };
767
+ function ot(n, r) {
768
+ var t = n > 0 ? "-" : "+", i = Math.abs(n), e = Math.floor(i / 60), o = i % 60;
769
+ if (o === 0)
770
+ return t + String(e);
771
+ var a = r;
772
+ return t + String(e) + a + Y(o, 2);
773
+ }
774
+ function st(n, r) {
775
+ if (n % 60 === 0) {
776
+ var t = n > 0 ? "-" : "+";
777
+ return t + Y(Math.abs(n) / 60, 2);
778
+ }
779
+ return Pe(n, r);
780
+ }
781
+ function Pe(n, r) {
782
+ var t = r || "", i = n > 0 ? "-" : "+", e = Math.abs(n), o = Y(Math.floor(e / 60), 2), a = Y(e % 60, 2);
783
+ return i + o + t + a;
784
+ }
785
+ var ut = function(r, t) {
786
+ switch (r) {
787
+ case "P":
788
+ return t.date({
789
+ width: "short"
790
+ });
791
+ case "PP":
792
+ return t.date({
793
+ width: "medium"
794
+ });
795
+ case "PPP":
796
+ return t.date({
797
+ width: "long"
798
+ });
799
+ case "PPPP":
800
+ default:
801
+ return t.date({
802
+ width: "full"
803
+ });
804
+ }
805
+ }, Nt = function(r, t) {
806
+ switch (r) {
807
+ case "p":
808
+ return t.time({
809
+ width: "short"
810
+ });
811
+ case "pp":
812
+ return t.time({
813
+ width: "medium"
814
+ });
815
+ case "ppp":
816
+ return t.time({
817
+ width: "long"
818
+ });
819
+ case "pppp":
820
+ default:
821
+ return t.time({
822
+ width: "full"
823
+ });
824
+ }
825
+ }, Ar = function(r, t) {
826
+ var i = r.match(/(P+)(p+)?/) || [], e = i[1], o = i[2];
827
+ if (!o)
828
+ return ut(r, t);
829
+ var a;
830
+ switch (e) {
831
+ case "P":
832
+ a = t.dateTime({
833
+ width: "short"
834
+ });
835
+ break;
836
+ case "PP":
837
+ a = t.dateTime({
838
+ width: "medium"
839
+ });
840
+ break;
841
+ case "PPP":
842
+ a = t.dateTime({
843
+ width: "long"
844
+ });
845
+ break;
846
+ case "PPPP":
847
+ default:
848
+ a = t.dateTime({
849
+ width: "full"
850
+ });
851
+ break;
852
+ }
853
+ return a.replace("{{date}}", ut(e, t)).replace("{{time}}", Nt(o, t));
854
+ }, Ve = {
855
+ p: Nt,
856
+ P: Ar
857
+ }, xr = ["D", "DD"], Ur = ["YY", "YYYY"];
858
+ function Wt(n) {
859
+ return xr.indexOf(n) !== -1;
860
+ }
861
+ function Yt(n) {
862
+ return Ur.indexOf(n) !== -1;
863
+ }
864
+ function Fe(n, r, t) {
865
+ if (n === "YYYY")
866
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(r, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
867
+ if (n === "YY")
868
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(r, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
869
+ if (n === "D")
870
+ throw new RangeError("Use `d` instead of `D` (in `".concat(r, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
871
+ if (n === "DD")
872
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(r, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
873
+ }
874
+ var Nr = {
875
+ lessThanXSeconds: {
876
+ one: "less than a second",
877
+ other: "less than {{count}} seconds"
878
+ },
879
+ xSeconds: {
880
+ one: "1 second",
881
+ other: "{{count}} seconds"
882
+ },
883
+ halfAMinute: "half a minute",
884
+ lessThanXMinutes: {
885
+ one: "less than a minute",
886
+ other: "less than {{count}} minutes"
887
+ },
888
+ xMinutes: {
889
+ one: "1 minute",
890
+ other: "{{count}} minutes"
891
+ },
892
+ aboutXHours: {
893
+ one: "about 1 hour",
894
+ other: "about {{count}} hours"
895
+ },
896
+ xHours: {
897
+ one: "1 hour",
898
+ other: "{{count}} hours"
899
+ },
900
+ xDays: {
901
+ one: "1 day",
902
+ other: "{{count}} days"
903
+ },
904
+ aboutXWeeks: {
905
+ one: "about 1 week",
906
+ other: "about {{count}} weeks"
907
+ },
908
+ xWeeks: {
909
+ one: "1 week",
910
+ other: "{{count}} weeks"
911
+ },
912
+ aboutXMonths: {
913
+ one: "about 1 month",
914
+ other: "about {{count}} months"
915
+ },
916
+ xMonths: {
917
+ one: "1 month",
918
+ other: "{{count}} months"
919
+ },
920
+ aboutXYears: {
921
+ one: "about 1 year",
922
+ other: "about {{count}} years"
923
+ },
924
+ xYears: {
925
+ one: "1 year",
926
+ other: "{{count}} years"
927
+ },
928
+ overXYears: {
929
+ one: "over 1 year",
930
+ other: "over {{count}} years"
931
+ },
932
+ almostXYears: {
933
+ one: "almost 1 year",
934
+ other: "almost {{count}} years"
935
+ }
936
+ }, Wr = function(r, t, i) {
937
+ var e, o = Nr[r];
938
+ return typeof o == "string" ? e = o : t === 1 ? e = o.one : e = o.other.replace("{{count}}", t.toString()), i != null && i.addSuffix ? i.comparison && i.comparison > 0 ? "in " + e : e + " ago" : e;
939
+ };
940
+ function ze(n) {
941
+ return function() {
942
+ var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = r.width ? String(r.width) : n.defaultWidth, i = n.formats[t] || n.formats[n.defaultWidth];
943
+ return i;
944
+ };
945
+ }
946
+ var Yr = {
947
+ full: "EEEE, MMMM do, y",
948
+ long: "MMMM do, y",
949
+ medium: "MMM d, y",
950
+ short: "MM/dd/yyyy"
951
+ }, Ir = {
952
+ full: "h:mm:ss a zzzz",
953
+ long: "h:mm:ss a z",
954
+ medium: "h:mm:ss a",
955
+ short: "h:mm a"
956
+ }, qr = {
957
+ full: "{{date}} 'at' {{time}}",
958
+ long: "{{date}} 'at' {{time}}",
959
+ medium: "{{date}}, {{time}}",
960
+ short: "{{date}}, {{time}}"
961
+ }, Br = {
962
+ date: ze({
963
+ formats: Yr,
964
+ defaultWidth: "full"
965
+ }),
966
+ time: ze({
967
+ formats: Ir,
968
+ defaultWidth: "full"
969
+ }),
970
+ dateTime: ze({
971
+ formats: qr,
972
+ defaultWidth: "full"
973
+ })
974
+ }, Hr = {
975
+ lastWeek: "'last' eeee 'at' p",
976
+ yesterday: "'yesterday at' p",
977
+ today: "'today at' p",
978
+ tomorrow: "'tomorrow at' p",
979
+ nextWeek: "eeee 'at' p",
980
+ other: "P"
981
+ }, Fr = function(r, t, i, e) {
982
+ return Hr[r];
983
+ };
984
+ function Ie(n) {
985
+ return function(r, t) {
986
+ var i = t != null && t.context ? String(t.context) : "standalone", e;
987
+ if (i === "formatting" && n.formattingValues) {
988
+ var o = n.defaultFormattingWidth || n.defaultWidth, a = t != null && t.width ? String(t.width) : o;
989
+ e = n.formattingValues[a] || n.formattingValues[o];
990
+ } else {
991
+ var s = n.defaultWidth, u = t != null && t.width ? String(t.width) : n.defaultWidth;
992
+ e = n.values[u] || n.values[s];
993
+ }
994
+ var l = n.argumentCallback ? n.argumentCallback(r) : r;
995
+ return e[l];
996
+ };
997
+ }
998
+ var jr = {
999
+ narrow: ["B", "A"],
1000
+ abbreviated: ["BC", "AD"],
1001
+ wide: ["Before Christ", "Anno Domini"]
1002
+ }, Sr = {
1003
+ narrow: ["1", "2", "3", "4"],
1004
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1005
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
1006
+ }, Rr = {
1007
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
1008
+ abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
1009
+ wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
1010
+ }, Qr = {
1011
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
1012
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
1013
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1014
+ wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
1015
+ }, Gr = {
1016
+ narrow: {
1017
+ am: "a",
1018
+ pm: "p",
1019
+ midnight: "mi",
1020
+ noon: "n",
1021
+ morning: "morning",
1022
+ afternoon: "afternoon",
1023
+ evening: "evening",
1024
+ night: "night"
1025
+ },
1026
+ abbreviated: {
1027
+ am: "AM",
1028
+ pm: "PM",
1029
+ midnight: "midnight",
1030
+ noon: "noon",
1031
+ morning: "morning",
1032
+ afternoon: "afternoon",
1033
+ evening: "evening",
1034
+ night: "night"
1035
+ },
1036
+ wide: {
1037
+ am: "a.m.",
1038
+ pm: "p.m.",
1039
+ midnight: "midnight",
1040
+ noon: "noon",
1041
+ morning: "morning",
1042
+ afternoon: "afternoon",
1043
+ evening: "evening",
1044
+ night: "night"
1045
+ }
1046
+ }, zr = {
1047
+ narrow: {
1048
+ am: "a",
1049
+ pm: "p",
1050
+ midnight: "mi",
1051
+ noon: "n",
1052
+ morning: "in the morning",
1053
+ afternoon: "in the afternoon",
1054
+ evening: "in the evening",
1055
+ night: "at night"
1056
+ },
1057
+ abbreviated: {
1058
+ am: "AM",
1059
+ pm: "PM",
1060
+ midnight: "midnight",
1061
+ noon: "noon",
1062
+ morning: "in the morning",
1063
+ afternoon: "in the afternoon",
1064
+ evening: "in the evening",
1065
+ night: "at night"
1066
+ },
1067
+ wide: {
1068
+ am: "a.m.",
1069
+ pm: "p.m.",
1070
+ midnight: "midnight",
1071
+ noon: "noon",
1072
+ morning: "in the morning",
1073
+ afternoon: "in the afternoon",
1074
+ evening: "in the evening",
1075
+ night: "at night"
1076
+ }
1077
+ }, Vr = function(r, t) {
1078
+ var i = Number(r), e = i % 100;
1079
+ if (e > 20 || e < 10)
1080
+ switch (e % 10) {
1081
+ case 1:
1082
+ return i + "st";
1083
+ case 2:
1084
+ return i + "nd";
1085
+ case 3:
1086
+ return i + "rd";
1087
+ }
1088
+ return i + "th";
1089
+ }, Xr = {
1090
+ ordinalNumber: Vr,
1091
+ era: Ie({
1092
+ values: jr,
1093
+ defaultWidth: "wide"
1094
+ }),
1095
+ quarter: Ie({
1096
+ values: Sr,
1097
+ defaultWidth: "wide",
1098
+ argumentCallback: function(r) {
1099
+ return r - 1;
1100
+ }
1101
+ }),
1102
+ month: Ie({
1103
+ values: Rr,
1104
+ defaultWidth: "wide"
1105
+ }),
1106
+ day: Ie({
1107
+ values: Qr,
1108
+ defaultWidth: "wide"
1109
+ }),
1110
+ dayPeriod: Ie({
1111
+ values: Gr,
1112
+ defaultWidth: "wide",
1113
+ formattingValues: zr,
1114
+ defaultFormattingWidth: "wide"
1115
+ })
1116
+ };
1117
+ function qe(n) {
1118
+ return function(r) {
1119
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = t.width, e = i && n.matchPatterns[i] || n.matchPatterns[n.defaultMatchWidth], o = r.match(e);
1120
+ if (!o)
1121
+ return null;
1122
+ var a = o[0], s = i && n.parsePatterns[i] || n.parsePatterns[n.defaultParseWidth], u = Array.isArray(s) ? Kr(s, function(y) {
1123
+ return y.test(a);
1124
+ }) : Jr(s, function(y) {
1125
+ return y.test(a);
1126
+ }), l;
1127
+ l = n.valueCallback ? n.valueCallback(u) : u, l = t.valueCallback ? t.valueCallback(l) : l;
1128
+ var m = r.slice(a.length);
1129
+ return {
1130
+ value: l,
1131
+ rest: m
1132
+ };
1133
+ };
1134
+ }
1135
+ function Jr(n, r) {
1136
+ for (var t in n)
1137
+ if (n.hasOwnProperty(t) && r(n[t]))
1138
+ return t;
1139
+ }
1140
+ function Kr(n, r) {
1141
+ for (var t = 0; t < n.length; t++)
1142
+ if (r(n[t]))
1143
+ return t;
1144
+ }
1145
+ function Zr(n) {
1146
+ return function(r) {
1147
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = r.match(n.matchPattern);
1148
+ if (!i)
1149
+ return null;
1150
+ var e = i[0], o = r.match(n.parsePattern);
1151
+ if (!o)
1152
+ return null;
1153
+ var a = n.valueCallback ? n.valueCallback(o[0]) : o[0];
1154
+ a = t.valueCallback ? t.valueCallback(a) : a;
1155
+ var s = r.slice(e.length);
1156
+ return {
1157
+ value: a,
1158
+ rest: s
1159
+ };
1160
+ };
1161
+ }
1162
+ var $r = /^(\d+)(th|st|nd|rd)?/i, ei = /\d+/i, ti = {
1163
+ narrow: /^(b|a)/i,
1164
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1165
+ wide: /^(before christ|before common era|anno domini|common era)/i
1166
+ }, ri = {
1167
+ any: [/^b/i, /^(a|c)/i]
1168
+ }, ii = {
1169
+ narrow: /^[1234]/i,
1170
+ abbreviated: /^q[1234]/i,
1171
+ wide: /^[1234](th|st|nd|rd)? quarter/i
1172
+ }, ni = {
1173
+ any: [/1/i, /2/i, /3/i, /4/i]
1174
+ }, ai = {
1175
+ narrow: /^[jfmasond]/i,
1176
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1177
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1178
+ }, oi = {
1179
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
1180
+ any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
1181
+ }, si = {
1182
+ narrow: /^[smtwf]/i,
1183
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1184
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1185
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1186
+ }, ui = {
1187
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1188
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1189
+ }, li = {
1190
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1191
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1192
+ }, ci = {
1193
+ any: {
1194
+ am: /^a/i,
1195
+ pm: /^p/i,
1196
+ midnight: /^mi/i,
1197
+ noon: /^no/i,
1198
+ morning: /morning/i,
1199
+ afternoon: /afternoon/i,
1200
+ evening: /evening/i,
1201
+ night: /night/i
1202
+ }
1203
+ }, mi = {
1204
+ ordinalNumber: Zr({
1205
+ matchPattern: $r,
1206
+ parsePattern: ei,
1207
+ valueCallback: function(r) {
1208
+ return parseInt(r, 10);
1209
+ }
1210
+ }),
1211
+ era: qe({
1212
+ matchPatterns: ti,
1213
+ defaultMatchWidth: "wide",
1214
+ parsePatterns: ri,
1215
+ defaultParseWidth: "any"
1216
+ }),
1217
+ quarter: qe({
1218
+ matchPatterns: ii,
1219
+ defaultMatchWidth: "wide",
1220
+ parsePatterns: ni,
1221
+ defaultParseWidth: "any",
1222
+ valueCallback: function(r) {
1223
+ return r + 1;
1224
+ }
1225
+ }),
1226
+ month: qe({
1227
+ matchPatterns: ai,
1228
+ defaultMatchWidth: "wide",
1229
+ parsePatterns: oi,
1230
+ defaultParseWidth: "any"
1231
+ }),
1232
+ day: qe({
1233
+ matchPatterns: si,
1234
+ defaultMatchWidth: "wide",
1235
+ parsePatterns: ui,
1236
+ defaultParseWidth: "any"
1237
+ }),
1238
+ dayPeriod: qe({
1239
+ matchPatterns: li,
1240
+ defaultMatchWidth: "any",
1241
+ parsePatterns: ci,
1242
+ defaultParseWidth: "any"
1243
+ })
1244
+ }, It = {
1245
+ code: "en-US",
1246
+ formatDistance: Wr,
1247
+ formatLong: Br,
1248
+ formatRelative: Fr,
1249
+ localize: Xr,
1250
+ match: mi,
1251
+ options: {
1252
+ weekStartsOn: 0,
1253
+ firstWeekContainsDate: 1
1254
+ }
1255
+ }, di = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fi = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, vi = /^'([^]*?)'?$/, pi = /''/g, hi = /[a-zA-Z]/;
1256
+ function je(n, r, t) {
1257
+ var i, e, o, a, s, u, l, m, y, w, p, P, h, g;
1258
+ j(2, arguments);
1259
+ var k = String(r), L = We(), _ = (i = (e = void 0) !== null && e !== void 0 ? e : L.locale) !== null && i !== void 0 ? i : It, G = se((o = (a = (s = (u = void 0) !== null && u !== void 0 ? u : void 0) !== null && s !== void 0 ? s : L.firstWeekContainsDate) !== null && a !== void 0 ? a : (l = L.locale) === null || l === void 0 || (m = l.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
1260
+ if (!(G >= 1 && G <= 7))
1261
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1262
+ var z = se((y = (w = (p = (P = void 0) !== null && P !== void 0 ? P : void 0) !== null && p !== void 0 ? p : L.weekStartsOn) !== null && w !== void 0 ? w : (h = L.locale) === null || h === void 0 || (g = h.options) === null || g === void 0 ? void 0 : g.weekStartsOn) !== null && y !== void 0 ? y : 0);
1263
+ if (!(z >= 0 && z <= 6))
1264
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1265
+ if (!_.localize)
1266
+ throw new RangeError("locale must contain localize property");
1267
+ if (!_.formatLong)
1268
+ throw new RangeError("locale must contain formatLong property");
1269
+ var B = ie(n);
1270
+ if (!kr(B))
1271
+ throw new RangeError("Invalid time value");
1272
+ var ce = Pt(B), N = Ot(B, ce), $ = {
1273
+ firstWeekContainsDate: G,
1274
+ weekStartsOn: z,
1275
+ locale: _,
1276
+ _originalDate: B
1277
+ }, ue = k.match(fi).map(function(H) {
1278
+ var X = H[0];
1279
+ if (X === "p" || X === "P") {
1280
+ var le = Ve[X];
1281
+ return le(H, _.formatLong);
1282
+ }
1283
+ return H;
1284
+ }).join("").match(di).map(function(H) {
1285
+ if (H === "''")
1286
+ return "'";
1287
+ var X = H[0];
1288
+ if (X === "'")
1289
+ return gi(H);
1290
+ var le = Or[X];
1291
+ if (le)
1292
+ return Yt(H) && Fe(H, r, String(n)), Wt(H) && Fe(H, r, String(n)), le(N, H, _.localize, $);
1293
+ if (X.match(hi))
1294
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + X + "`");
1295
+ return H;
1296
+ }).join("");
1297
+ return ue;
1298
+ }
1299
+ function gi(n) {
1300
+ var r = n.match(vi);
1301
+ return r ? r[1].replace(pi, "'") : n;
1302
+ }
1303
+ function wi(n, r) {
1304
+ if (n == null)
1305
+ throw new TypeError("assign requires that input parameter not be null or undefined");
1306
+ for (var t in r)
1307
+ Object.prototype.hasOwnProperty.call(r, t) && (n[t] = r[t]);
1308
+ return n;
1309
+ }
1310
+ function Mn(n) {
1311
+ return j(1, arguments), ie(n).getFullYear();
1312
+ }
1313
+ function lt(n, r) {
1314
+ (r == null || r > n.length) && (r = n.length);
1315
+ for (var t = 0, i = Array(r); t < r; t++)
1316
+ i[t] = n[t];
1317
+ return i;
1318
+ }
1319
+ function yi(n, r) {
1320
+ if (n) {
1321
+ if (typeof n == "string")
1322
+ return lt(n, r);
1323
+ var t = {}.toString.call(n).slice(8, -1);
1324
+ return t === "Object" && n.constructor && (t = n.constructor.name), t === "Map" || t === "Set" ? Array.from(n) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? lt(n, r) : void 0;
1325
+ }
1326
+ }
1327
+ function ct(n, r) {
1328
+ var t = typeof Symbol != "undefined" && n[Symbol.iterator] || n["@@iterator"];
1329
+ if (!t) {
1330
+ if (Array.isArray(n) || (t = yi(n)) || r) {
1331
+ t && (n = t);
1332
+ var i = 0, e = function() {
1333
+ };
1334
+ return {
1335
+ s: e,
1336
+ n: function() {
1337
+ return i >= n.length ? {
1338
+ done: !0
1339
+ } : {
1340
+ done: !1,
1341
+ value: n[i++]
1342
+ };
1343
+ },
1344
+ e: function(l) {
1345
+ throw l;
1346
+ },
1347
+ f: e
1348
+ };
1349
+ }
1350
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1351
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1352
+ }
1353
+ var o, a = !0, s = !1;
1354
+ return {
1355
+ s: function() {
1356
+ t = t.call(n);
1357
+ },
1358
+ n: function() {
1359
+ var l = t.next();
1360
+ return a = l.done, l;
1361
+ },
1362
+ e: function(l) {
1363
+ s = !0, o = l;
1364
+ },
1365
+ f: function() {
1366
+ try {
1367
+ a || t.return == null || t.return();
1368
+ } finally {
1369
+ if (s)
1370
+ throw o;
1371
+ }
1372
+ }
1373
+ };
1374
+ }
1375
+ function v(n) {
1376
+ if (n === void 0)
1377
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1378
+ return n;
1379
+ }
1380
+ function Xe(n, r) {
1381
+ return Xe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, i) {
1382
+ return t.__proto__ = i, t;
1383
+ }, Xe(n, r);
1384
+ }
1385
+ function O(n, r) {
1386
+ if (typeof r != "function" && r !== null)
1387
+ throw new TypeError("Super expression must either be null or a function");
1388
+ n.prototype = Object.create(r && r.prototype, {
1389
+ constructor: {
1390
+ value: n,
1391
+ writable: !0,
1392
+ configurable: !0
1393
+ }
1394
+ }), Object.defineProperty(n, "prototype", {
1395
+ writable: !1
1396
+ }), r && Xe(n, r);
1397
+ }
1398
+ function Se(n) {
1399
+ return Se = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
1400
+ return r.__proto__ || Object.getPrototypeOf(r);
1401
+ }, Se(n);
1402
+ }
1403
+ function qt() {
1404
+ try {
1405
+ var n = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1406
+ }));
1407
+ } catch (r) {
1408
+ }
1409
+ return (qt = function() {
1410
+ return !!n;
1411
+ })();
1412
+ }
1413
+ function bi(n, r) {
1414
+ if (r && (Me(r) == "object" || typeof r == "function"))
1415
+ return r;
1416
+ if (r !== void 0)
1417
+ throw new TypeError("Derived constructors may only return object or undefined");
1418
+ return v(n);
1419
+ }
1420
+ function A(n) {
1421
+ var r = qt();
1422
+ return function() {
1423
+ var t, i = Se(n);
1424
+ if (r) {
1425
+ var e = Se(this).constructor;
1426
+ t = Reflect.construct(i, arguments, e);
1427
+ } else
1428
+ t = i.apply(this, arguments);
1429
+ return bi(this, t);
1430
+ };
1431
+ }
1432
+ function M(n, r) {
1433
+ if (!(n instanceof r))
1434
+ throw new TypeError("Cannot call a class as a function");
1435
+ }
1436
+ function Ti(n, r) {
1437
+ if (Me(n) != "object" || !n)
1438
+ return n;
1439
+ var t = n[Symbol.toPrimitive];
1440
+ if (t !== void 0) {
1441
+ var i = t.call(n, r);
1442
+ if (Me(i) != "object")
1443
+ return i;
1444
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1445
+ }
1446
+ return (r === "string" ? String : Number)(n);
1447
+ }
1448
+ function Bt(n) {
1449
+ var r = Ti(n, "string");
1450
+ return Me(r) == "symbol" ? r : r + "";
1451
+ }
1452
+ function Li(n, r) {
1453
+ for (var t = 0; t < r.length; t++) {
1454
+ var i = r[t];
1455
+ i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(n, Bt(i.key), i);
1456
+ }
1457
+ }
1458
+ function E(n, r, t) {
1459
+ return r && Li(n.prototype, r), Object.defineProperty(n, "prototype", {
1460
+ writable: !1
1461
+ }), n;
1462
+ }
1463
+ function d(n, r, t) {
1464
+ return (r = Bt(r)) in n ? Object.defineProperty(n, r, {
1465
+ value: t,
1466
+ enumerable: !0,
1467
+ configurable: !0,
1468
+ writable: !0
1469
+ }) : n[r] = t, n;
1470
+ }
1471
+ var ki = 10, Ht = /* @__PURE__ */ function() {
1472
+ function n() {
1473
+ M(this, n), d(this, "priority", void 0), d(this, "subPriority", 0);
1474
+ }
1475
+ return E(n, [{
1476
+ key: "validate",
1477
+ value: function(t, i) {
1478
+ return !0;
1479
+ }
1480
+ }]), n;
1481
+ }(), Ci = /* @__PURE__ */ function(n) {
1482
+ O(t, n);
1483
+ var r = A(t);
1484
+ function t(i, e, o, a, s) {
1485
+ var u;
1486
+ return M(this, t), u = r.call(this), u.value = i, u.validateValue = e, u.setValue = o, u.priority = a, s && (u.subPriority = s), u;
1487
+ }
1488
+ return E(t, [{
1489
+ key: "validate",
1490
+ value: function(e, o) {
1491
+ return this.validateValue(e, this.value, o);
1492
+ }
1493
+ }, {
1494
+ key: "set",
1495
+ value: function(e, o, a) {
1496
+ return this.setValue(e, o, this.value, a);
1497
+ }
1498
+ }]), t;
1499
+ }(Ht), _i = /* @__PURE__ */ function(n) {
1500
+ O(t, n);
1501
+ var r = A(t);
1502
+ function t() {
1503
+ var i;
1504
+ M(this, t);
1505
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
1506
+ o[a] = arguments[a];
1507
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", ki), d(v(i), "subPriority", -1), i;
1508
+ }
1509
+ return E(t, [{
1510
+ key: "set",
1511
+ value: function(e, o) {
1512
+ if (o.timestampIsSet)
1513
+ return e;
1514
+ var a = /* @__PURE__ */ new Date(0);
1515
+ return a.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), a.setHours(e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), e.getUTCMilliseconds()), a;
1516
+ }
1517
+ }]), t;
1518
+ }(Ht), U = /* @__PURE__ */ function() {
1519
+ function n() {
1520
+ M(this, n), d(this, "incompatibleTokens", void 0), d(this, "priority", void 0), d(this, "subPriority", void 0);
1521
+ }
1522
+ return E(n, [{
1523
+ key: "run",
1524
+ value: function(t, i, e, o) {
1525
+ var a = this.parse(t, i, e, o);
1526
+ return a ? {
1527
+ setter: new Ci(a.value, this.validate, this.set, this.priority, this.subPriority),
1528
+ rest: a.rest
1529
+ } : null;
1530
+ }
1531
+ }, {
1532
+ key: "validate",
1533
+ value: function(t, i, e) {
1534
+ return !0;
1535
+ }
1536
+ }]), n;
1537
+ }(), Di = /* @__PURE__ */ function(n) {
1538
+ O(t, n);
1539
+ var r = A(t);
1540
+ function t() {
1541
+ var i;
1542
+ M(this, t);
1543
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
1544
+ o[a] = arguments[a];
1545
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 140), d(v(i), "incompatibleTokens", ["R", "u", "t", "T"]), i;
1546
+ }
1547
+ return E(t, [{
1548
+ key: "parse",
1549
+ value: function(e, o, a) {
1550
+ switch (o) {
1551
+ case "G":
1552
+ case "GG":
1553
+ case "GGG":
1554
+ return a.era(e, {
1555
+ width: "abbreviated"
1556
+ }) || a.era(e, {
1557
+ width: "narrow"
1558
+ });
1559
+ case "GGGGG":
1560
+ return a.era(e, {
1561
+ width: "narrow"
1562
+ });
1563
+ case "GGGG":
1564
+ default:
1565
+ return a.era(e, {
1566
+ width: "wide"
1567
+ }) || a.era(e, {
1568
+ width: "abbreviated"
1569
+ }) || a.era(e, {
1570
+ width: "narrow"
1571
+ });
1572
+ }
1573
+ }
1574
+ }, {
1575
+ key: "set",
1576
+ value: function(e, o, a) {
1577
+ return o.era = a, e.setUTCFullYear(a, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1578
+ }
1579
+ }]), t;
1580
+ }(U), te = {
1581
+ month: /^(1[0-2]|0?\d)/,
1582
+ // 0 to 12
1583
+ date: /^(3[0-1]|[0-2]?\d)/,
1584
+ // 0 to 31
1585
+ dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
1586
+ // 0 to 366
1587
+ week: /^(5[0-3]|[0-4]?\d)/,
1588
+ // 0 to 53
1589
+ hour23h: /^(2[0-3]|[0-1]?\d)/,
1590
+ // 0 to 23
1591
+ hour24h: /^(2[0-4]|[0-1]?\d)/,
1592
+ // 0 to 24
1593
+ hour11h: /^(1[0-1]|0?\d)/,
1594
+ // 0 to 11
1595
+ hour12h: /^(1[0-2]|0?\d)/,
1596
+ // 0 to 12
1597
+ minute: /^[0-5]?\d/,
1598
+ // 0 to 59
1599
+ second: /^[0-5]?\d/,
1600
+ // 0 to 59
1601
+ singleDigit: /^\d/,
1602
+ // 0 to 9
1603
+ twoDigits: /^\d{1,2}/,
1604
+ // 0 to 99
1605
+ threeDigits: /^\d{1,3}/,
1606
+ // 0 to 999
1607
+ fourDigits: /^\d{1,4}/,
1608
+ // 0 to 9999
1609
+ anyDigitsSigned: /^-?\d+/,
1610
+ singleDigitSigned: /^-?\d/,
1611
+ // 0 to 9, -0 to -9
1612
+ twoDigitsSigned: /^-?\d{1,2}/,
1613
+ // 0 to 99, -0 to -99
1614
+ threeDigitsSigned: /^-?\d{1,3}/,
1615
+ // 0 to 999, -0 to -999
1616
+ fourDigitsSigned: /^-?\d{1,4}/
1617
+ // 0 to 9999, -0 to -9999
1618
+ }, Te = {
1619
+ basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
1620
+ basic: /^([+-])(\d{2})(\d{2})|Z/,
1621
+ basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
1622
+ extended: /^([+-])(\d{2}):(\d{2})|Z/,
1623
+ extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
1624
+ };
1625
+ function re(n, r) {
1626
+ return n && {
1627
+ value: r(n.value),
1628
+ rest: n.rest
1629
+ };
1630
+ }
1631
+ function V(n, r) {
1632
+ var t = r.match(n);
1633
+ return t ? {
1634
+ value: parseInt(t[0], 10),
1635
+ rest: r.slice(t[0].length)
1636
+ } : null;
1637
+ }
1638
+ function Le(n, r) {
1639
+ var t = r.match(n);
1640
+ if (!t)
1641
+ return null;
1642
+ if (t[0] === "Z")
1643
+ return {
1644
+ value: 0,
1645
+ rest: r.slice(1)
1646
+ };
1647
+ var i = t[1] === "+" ? 1 : -1, e = t[2] ? parseInt(t[2], 10) : 0, o = t[3] ? parseInt(t[3], 10) : 0, a = t[5] ? parseInt(t[5], 10) : 0;
1648
+ return {
1649
+ value: i * (e * br + o * yr + a * Tr),
1650
+ rest: r.slice(t[0].length)
1651
+ };
1652
+ }
1653
+ function Ft(n) {
1654
+ return V(te.anyDigitsSigned, n);
1655
+ }
1656
+ function Z(n, r) {
1657
+ switch (n) {
1658
+ case 1:
1659
+ return V(te.singleDigit, r);
1660
+ case 2:
1661
+ return V(te.twoDigits, r);
1662
+ case 3:
1663
+ return V(te.threeDigits, r);
1664
+ case 4:
1665
+ return V(te.fourDigits, r);
1666
+ default:
1667
+ return V(new RegExp("^\\d{1," + n + "}"), r);
1668
+ }
1669
+ }
1670
+ function Re(n, r) {
1671
+ switch (n) {
1672
+ case 1:
1673
+ return V(te.singleDigitSigned, r);
1674
+ case 2:
1675
+ return V(te.twoDigitsSigned, r);
1676
+ case 3:
1677
+ return V(te.threeDigitsSigned, r);
1678
+ case 4:
1679
+ return V(te.fourDigitsSigned, r);
1680
+ default:
1681
+ return V(new RegExp("^-?\\d{1," + n + "}"), r);
1682
+ }
1683
+ }
1684
+ function et(n) {
1685
+ switch (n) {
1686
+ case "morning":
1687
+ return 4;
1688
+ case "evening":
1689
+ return 17;
1690
+ case "pm":
1691
+ case "noon":
1692
+ case "afternoon":
1693
+ return 12;
1694
+ case "am":
1695
+ case "midnight":
1696
+ case "night":
1697
+ default:
1698
+ return 0;
1699
+ }
1700
+ }
1701
+ function jt(n, r) {
1702
+ var t = r > 0, i = t ? r : 1 - r, e;
1703
+ if (i <= 50)
1704
+ e = n || 100;
1705
+ else {
1706
+ var o = i + 50, a = Math.floor(o / 100) * 100, s = n >= o % 100;
1707
+ e = n + a - (s ? 100 : 0);
1708
+ }
1709
+ return t ? e : 1 - e;
1710
+ }
1711
+ function St(n) {
1712
+ return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
1713
+ }
1714
+ var Mi = /* @__PURE__ */ function(n) {
1715
+ O(t, n);
1716
+ var r = A(t);
1717
+ function t() {
1718
+ var i;
1719
+ M(this, t);
1720
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
1721
+ o[a] = arguments[a];
1722
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 130), d(v(i), "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]), i;
1723
+ }
1724
+ return E(t, [{
1725
+ key: "parse",
1726
+ value: function(e, o, a) {
1727
+ var s = function(l) {
1728
+ return {
1729
+ year: l,
1730
+ isTwoDigitYear: o === "yy"
1731
+ };
1732
+ };
1733
+ switch (o) {
1734
+ case "y":
1735
+ return re(Z(4, e), s);
1736
+ case "yo":
1737
+ return re(a.ordinalNumber(e, {
1738
+ unit: "year"
1739
+ }), s);
1740
+ default:
1741
+ return re(Z(o.length, e), s);
1742
+ }
1743
+ }
1744
+ }, {
1745
+ key: "validate",
1746
+ value: function(e, o) {
1747
+ return o.isTwoDigitYear || o.year > 0;
1748
+ }
1749
+ }, {
1750
+ key: "set",
1751
+ value: function(e, o, a) {
1752
+ var s = e.getUTCFullYear();
1753
+ if (a.isTwoDigitYear) {
1754
+ var u = jt(a.year, s);
1755
+ return e.setUTCFullYear(u, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1756
+ }
1757
+ var l = !("era" in o) || o.era === 1 ? a.year : 1 - a.year;
1758
+ return e.setUTCFullYear(l, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1759
+ }
1760
+ }]), t;
1761
+ }(U), Ei = /* @__PURE__ */ function(n) {
1762
+ O(t, n);
1763
+ var r = A(t);
1764
+ function t() {
1765
+ var i;
1766
+ M(this, t);
1767
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
1768
+ o[a] = arguments[a];
1769
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 130), d(v(i), "incompatibleTokens", ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]), i;
1770
+ }
1771
+ return E(t, [{
1772
+ key: "parse",
1773
+ value: function(e, o, a) {
1774
+ var s = function(l) {
1775
+ return {
1776
+ year: l,
1777
+ isTwoDigitYear: o === "YY"
1778
+ };
1779
+ };
1780
+ switch (o) {
1781
+ case "Y":
1782
+ return re(Z(4, e), s);
1783
+ case "Yo":
1784
+ return re(a.ordinalNumber(e, {
1785
+ unit: "year"
1786
+ }), s);
1787
+ default:
1788
+ return re(Z(o.length, e), s);
1789
+ }
1790
+ }
1791
+ }, {
1792
+ key: "validate",
1793
+ value: function(e, o) {
1794
+ return o.isTwoDigitYear || o.year > 0;
1795
+ }
1796
+ }, {
1797
+ key: "set",
1798
+ value: function(e, o, a, s) {
1799
+ var u = $e(e, s);
1800
+ if (a.isTwoDigitYear) {
1801
+ var l = jt(a.year, u);
1802
+ return e.setUTCFullYear(l, 0, s.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), Ae(e, s);
1803
+ }
1804
+ var m = !("era" in o) || o.era === 1 ? a.year : 1 - a.year;
1805
+ return e.setUTCFullYear(m, 0, s.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), Ae(e, s);
1806
+ }
1807
+ }]), t;
1808
+ }(U), Pi = /* @__PURE__ */ function(n) {
1809
+ O(t, n);
1810
+ var r = A(t);
1811
+ function t() {
1812
+ var i;
1813
+ M(this, t);
1814
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
1815
+ o[a] = arguments[a];
1816
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 130), d(v(i), "incompatibleTokens", ["G", "y", "Y", "u", "Q", "q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), i;
1817
+ }
1818
+ return E(t, [{
1819
+ key: "parse",
1820
+ value: function(e, o) {
1821
+ return Re(o === "R" ? 4 : o.length, e);
1822
+ }
1823
+ }, {
1824
+ key: "set",
1825
+ value: function(e, o, a) {
1826
+ var s = /* @__PURE__ */ new Date(0);
1827
+ return s.setUTCFullYear(a, 0, 4), s.setUTCHours(0, 0, 0, 0), Ne(s);
1828
+ }
1829
+ }]), t;
1830
+ }(U), Oi = /* @__PURE__ */ function(n) {
1831
+ O(t, n);
1832
+ var r = A(t);
1833
+ function t() {
1834
+ var i;
1835
+ M(this, t);
1836
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
1837
+ o[a] = arguments[a];
1838
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 130), d(v(i), "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]), i;
1839
+ }
1840
+ return E(t, [{
1841
+ key: "parse",
1842
+ value: function(e, o) {
1843
+ return Re(o === "u" ? 4 : o.length, e);
1844
+ }
1845
+ }, {
1846
+ key: "set",
1847
+ value: function(e, o, a) {
1848
+ return e.setUTCFullYear(a, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1849
+ }
1850
+ }]), t;
1851
+ }(U), Ai = /* @__PURE__ */ function(n) {
1852
+ O(t, n);
1853
+ var r = A(t);
1854
+ function t() {
1855
+ var i;
1856
+ M(this, t);
1857
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
1858
+ o[a] = arguments[a];
1859
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 120), d(v(i), "incompatibleTokens", ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), i;
1860
+ }
1861
+ return E(t, [{
1862
+ key: "parse",
1863
+ value: function(e, o, a) {
1864
+ switch (o) {
1865
+ case "Q":
1866
+ case "QQ":
1867
+ return Z(o.length, e);
1868
+ case "Qo":
1869
+ return a.ordinalNumber(e, {
1870
+ unit: "quarter"
1871
+ });
1872
+ case "QQQ":
1873
+ return a.quarter(e, {
1874
+ width: "abbreviated",
1875
+ context: "formatting"
1876
+ }) || a.quarter(e, {
1877
+ width: "narrow",
1878
+ context: "formatting"
1879
+ });
1880
+ case "QQQQQ":
1881
+ return a.quarter(e, {
1882
+ width: "narrow",
1883
+ context: "formatting"
1884
+ });
1885
+ case "QQQQ":
1886
+ default:
1887
+ return a.quarter(e, {
1888
+ width: "wide",
1889
+ context: "formatting"
1890
+ }) || a.quarter(e, {
1891
+ width: "abbreviated",
1892
+ context: "formatting"
1893
+ }) || a.quarter(e, {
1894
+ width: "narrow",
1895
+ context: "formatting"
1896
+ });
1897
+ }
1898
+ }
1899
+ }, {
1900
+ key: "validate",
1901
+ value: function(e, o) {
1902
+ return o >= 1 && o <= 4;
1903
+ }
1904
+ }, {
1905
+ key: "set",
1906
+ value: function(e, o, a) {
1907
+ return e.setUTCMonth((a - 1) * 3, 1), e.setUTCHours(0, 0, 0, 0), e;
1908
+ }
1909
+ }]), t;
1910
+ }(U), xi = /* @__PURE__ */ function(n) {
1911
+ O(t, n);
1912
+ var r = A(t);
1913
+ function t() {
1914
+ var i;
1915
+ M(this, t);
1916
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
1917
+ o[a] = arguments[a];
1918
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 120), d(v(i), "incompatibleTokens", ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), i;
1919
+ }
1920
+ return E(t, [{
1921
+ key: "parse",
1922
+ value: function(e, o, a) {
1923
+ switch (o) {
1924
+ case "q":
1925
+ case "qq":
1926
+ return Z(o.length, e);
1927
+ case "qo":
1928
+ return a.ordinalNumber(e, {
1929
+ unit: "quarter"
1930
+ });
1931
+ case "qqq":
1932
+ return a.quarter(e, {
1933
+ width: "abbreviated",
1934
+ context: "standalone"
1935
+ }) || a.quarter(e, {
1936
+ width: "narrow",
1937
+ context: "standalone"
1938
+ });
1939
+ case "qqqqq":
1940
+ return a.quarter(e, {
1941
+ width: "narrow",
1942
+ context: "standalone"
1943
+ });
1944
+ case "qqqq":
1945
+ default:
1946
+ return a.quarter(e, {
1947
+ width: "wide",
1948
+ context: "standalone"
1949
+ }) || a.quarter(e, {
1950
+ width: "abbreviated",
1951
+ context: "standalone"
1952
+ }) || a.quarter(e, {
1953
+ width: "narrow",
1954
+ context: "standalone"
1955
+ });
1956
+ }
1957
+ }
1958
+ }, {
1959
+ key: "validate",
1960
+ value: function(e, o) {
1961
+ return o >= 1 && o <= 4;
1962
+ }
1963
+ }, {
1964
+ key: "set",
1965
+ value: function(e, o, a) {
1966
+ return e.setUTCMonth((a - 1) * 3, 1), e.setUTCHours(0, 0, 0, 0), e;
1967
+ }
1968
+ }]), t;
1969
+ }(U), Ui = /* @__PURE__ */ function(n) {
1970
+ O(t, n);
1971
+ var r = A(t);
1972
+ function t() {
1973
+ var i;
1974
+ M(this, t);
1975
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
1976
+ o[a] = arguments[a];
1977
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "incompatibleTokens", ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]), d(v(i), "priority", 110), i;
1978
+ }
1979
+ return E(t, [{
1980
+ key: "parse",
1981
+ value: function(e, o, a) {
1982
+ var s = function(l) {
1983
+ return l - 1;
1984
+ };
1985
+ switch (o) {
1986
+ case "M":
1987
+ return re(V(te.month, e), s);
1988
+ case "MM":
1989
+ return re(Z(2, e), s);
1990
+ case "Mo":
1991
+ return re(a.ordinalNumber(e, {
1992
+ unit: "month"
1993
+ }), s);
1994
+ case "MMM":
1995
+ return a.month(e, {
1996
+ width: "abbreviated",
1997
+ context: "formatting"
1998
+ }) || a.month(e, {
1999
+ width: "narrow",
2000
+ context: "formatting"
2001
+ });
2002
+ case "MMMMM":
2003
+ return a.month(e, {
2004
+ width: "narrow",
2005
+ context: "formatting"
2006
+ });
2007
+ case "MMMM":
2008
+ default:
2009
+ return a.month(e, {
2010
+ width: "wide",
2011
+ context: "formatting"
2012
+ }) || a.month(e, {
2013
+ width: "abbreviated",
2014
+ context: "formatting"
2015
+ }) || a.month(e, {
2016
+ width: "narrow",
2017
+ context: "formatting"
2018
+ });
2019
+ }
2020
+ }
2021
+ }, {
2022
+ key: "validate",
2023
+ value: function(e, o) {
2024
+ return o >= 0 && o <= 11;
2025
+ }
2026
+ }, {
2027
+ key: "set",
2028
+ value: function(e, o, a) {
2029
+ return e.setUTCMonth(a, 1), e.setUTCHours(0, 0, 0, 0), e;
2030
+ }
2031
+ }]), t;
2032
+ }(U), Ni = /* @__PURE__ */ function(n) {
2033
+ O(t, n);
2034
+ var r = A(t);
2035
+ function t() {
2036
+ var i;
2037
+ M(this, t);
2038
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2039
+ o[a] = arguments[a];
2040
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 110), d(v(i), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]), i;
2041
+ }
2042
+ return E(t, [{
2043
+ key: "parse",
2044
+ value: function(e, o, a) {
2045
+ var s = function(l) {
2046
+ return l - 1;
2047
+ };
2048
+ switch (o) {
2049
+ case "L":
2050
+ return re(V(te.month, e), s);
2051
+ case "LL":
2052
+ return re(Z(2, e), s);
2053
+ case "Lo":
2054
+ return re(a.ordinalNumber(e, {
2055
+ unit: "month"
2056
+ }), s);
2057
+ case "LLL":
2058
+ return a.month(e, {
2059
+ width: "abbreviated",
2060
+ context: "standalone"
2061
+ }) || a.month(e, {
2062
+ width: "narrow",
2063
+ context: "standalone"
2064
+ });
2065
+ case "LLLLL":
2066
+ return a.month(e, {
2067
+ width: "narrow",
2068
+ context: "standalone"
2069
+ });
2070
+ case "LLLL":
2071
+ default:
2072
+ return a.month(e, {
2073
+ width: "wide",
2074
+ context: "standalone"
2075
+ }) || a.month(e, {
2076
+ width: "abbreviated",
2077
+ context: "standalone"
2078
+ }) || a.month(e, {
2079
+ width: "narrow",
2080
+ context: "standalone"
2081
+ });
2082
+ }
2083
+ }
2084
+ }, {
2085
+ key: "validate",
2086
+ value: function(e, o) {
2087
+ return o >= 0 && o <= 11;
2088
+ }
2089
+ }, {
2090
+ key: "set",
2091
+ value: function(e, o, a) {
2092
+ return e.setUTCMonth(a, 1), e.setUTCHours(0, 0, 0, 0), e;
2093
+ }
2094
+ }]), t;
2095
+ }(U);
2096
+ function Wi(n, r, t) {
2097
+ j(2, arguments);
2098
+ var i = ie(n), e = se(r), o = Ut(i, t) - e;
2099
+ return i.setUTCDate(i.getUTCDate() - o * 7), i;
2100
+ }
2101
+ var Yi = /* @__PURE__ */ function(n) {
2102
+ O(t, n);
2103
+ var r = A(t);
2104
+ function t() {
2105
+ var i;
2106
+ M(this, t);
2107
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2108
+ o[a] = arguments[a];
2109
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 100), d(v(i), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]), i;
2110
+ }
2111
+ return E(t, [{
2112
+ key: "parse",
2113
+ value: function(e, o, a) {
2114
+ switch (o) {
2115
+ case "w":
2116
+ return V(te.week, e);
2117
+ case "wo":
2118
+ return a.ordinalNumber(e, {
2119
+ unit: "week"
2120
+ });
2121
+ default:
2122
+ return Z(o.length, e);
2123
+ }
2124
+ }
2125
+ }, {
2126
+ key: "validate",
2127
+ value: function(e, o) {
2128
+ return o >= 1 && o <= 53;
2129
+ }
2130
+ }, {
2131
+ key: "set",
2132
+ value: function(e, o, a, s) {
2133
+ return Ae(Wi(e, a, s), s);
2134
+ }
2135
+ }]), t;
2136
+ }(U);
2137
+ function Ii(n, r) {
2138
+ j(2, arguments);
2139
+ var t = ie(n), i = se(r), e = xt(t) - i;
2140
+ return t.setUTCDate(t.getUTCDate() - e * 7), t;
2141
+ }
2142
+ var qi = /* @__PURE__ */ function(n) {
2143
+ O(t, n);
2144
+ var r = A(t);
2145
+ function t() {
2146
+ var i;
2147
+ M(this, t);
2148
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2149
+ o[a] = arguments[a];
2150
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 100), d(v(i), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), i;
2151
+ }
2152
+ return E(t, [{
2153
+ key: "parse",
2154
+ value: function(e, o, a) {
2155
+ switch (o) {
2156
+ case "I":
2157
+ return V(te.week, e);
2158
+ case "Io":
2159
+ return a.ordinalNumber(e, {
2160
+ unit: "week"
2161
+ });
2162
+ default:
2163
+ return Z(o.length, e);
2164
+ }
2165
+ }
2166
+ }, {
2167
+ key: "validate",
2168
+ value: function(e, o) {
2169
+ return o >= 1 && o <= 53;
2170
+ }
2171
+ }, {
2172
+ key: "set",
2173
+ value: function(e, o, a) {
2174
+ return Ne(Ii(e, a));
2175
+ }
2176
+ }]), t;
2177
+ }(U), Bi = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Hi = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Fi = /* @__PURE__ */ function(n) {
2178
+ O(t, n);
2179
+ var r = A(t);
2180
+ function t() {
2181
+ var i;
2182
+ M(this, t);
2183
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2184
+ o[a] = arguments[a];
2185
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 90), d(v(i), "subPriority", 1), d(v(i), "incompatibleTokens", ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]), i;
2186
+ }
2187
+ return E(t, [{
2188
+ key: "parse",
2189
+ value: function(e, o, a) {
2190
+ switch (o) {
2191
+ case "d":
2192
+ return V(te.date, e);
2193
+ case "do":
2194
+ return a.ordinalNumber(e, {
2195
+ unit: "date"
2196
+ });
2197
+ default:
2198
+ return Z(o.length, e);
2199
+ }
2200
+ }
2201
+ }, {
2202
+ key: "validate",
2203
+ value: function(e, o) {
2204
+ var a = e.getUTCFullYear(), s = St(a), u = e.getUTCMonth();
2205
+ return s ? o >= 1 && o <= Hi[u] : o >= 1 && o <= Bi[u];
2206
+ }
2207
+ }, {
2208
+ key: "set",
2209
+ value: function(e, o, a) {
2210
+ return e.setUTCDate(a), e.setUTCHours(0, 0, 0, 0), e;
2211
+ }
2212
+ }]), t;
2213
+ }(U), ji = /* @__PURE__ */ function(n) {
2214
+ O(t, n);
2215
+ var r = A(t);
2216
+ function t() {
2217
+ var i;
2218
+ M(this, t);
2219
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2220
+ o[a] = arguments[a];
2221
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 90), d(v(i), "subpriority", 1), d(v(i), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "L", "w", "I", "d", "E", "i", "e", "c", "t", "T"]), i;
2222
+ }
2223
+ return E(t, [{
2224
+ key: "parse",
2225
+ value: function(e, o, a) {
2226
+ switch (o) {
2227
+ case "D":
2228
+ case "DD":
2229
+ return V(te.dayOfYear, e);
2230
+ case "Do":
2231
+ return a.ordinalNumber(e, {
2232
+ unit: "date"
2233
+ });
2234
+ default:
2235
+ return Z(o.length, e);
2236
+ }
2237
+ }
2238
+ }, {
2239
+ key: "validate",
2240
+ value: function(e, o) {
2241
+ var a = e.getUTCFullYear(), s = St(a);
2242
+ return s ? o >= 1 && o <= 366 : o >= 1 && o <= 365;
2243
+ }
2244
+ }, {
2245
+ key: "set",
2246
+ value: function(e, o, a) {
2247
+ return e.setUTCMonth(0, a), e.setUTCHours(0, 0, 0, 0), e;
2248
+ }
2249
+ }]), t;
2250
+ }(U);
2251
+ function tt(n, r, t) {
2252
+ var i, e, o, a, s, u, l, m;
2253
+ j(2, arguments);
2254
+ var y = We(), w = se((i = (e = (o = (a = t == null ? void 0 : t.weekStartsOn) !== null && a !== void 0 ? a : t == null || (s = t.locale) === null || s === void 0 || (u = s.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && o !== void 0 ? o : y.weekStartsOn) !== null && e !== void 0 ? e : (l = y.locale) === null || l === void 0 || (m = l.options) === null || m === void 0 ? void 0 : m.weekStartsOn) !== null && i !== void 0 ? i : 0);
2255
+ if (!(w >= 0 && w <= 6))
2256
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2257
+ var p = ie(n), P = se(r), h = p.getUTCDay(), g = P % 7, k = (g + 7) % 7, L = (k < w ? 7 : 0) + P - h;
2258
+ return p.setUTCDate(p.getUTCDate() + L), p;
2259
+ }
2260
+ var Si = /* @__PURE__ */ function(n) {
2261
+ O(t, n);
2262
+ var r = A(t);
2263
+ function t() {
2264
+ var i;
2265
+ M(this, t);
2266
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2267
+ o[a] = arguments[a];
2268
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 90), d(v(i), "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]), i;
2269
+ }
2270
+ return E(t, [{
2271
+ key: "parse",
2272
+ value: function(e, o, a) {
2273
+ switch (o) {
2274
+ case "E":
2275
+ case "EE":
2276
+ case "EEE":
2277
+ return a.day(e, {
2278
+ width: "abbreviated",
2279
+ context: "formatting"
2280
+ }) || a.day(e, {
2281
+ width: "short",
2282
+ context: "formatting"
2283
+ }) || a.day(e, {
2284
+ width: "narrow",
2285
+ context: "formatting"
2286
+ });
2287
+ case "EEEEE":
2288
+ return a.day(e, {
2289
+ width: "narrow",
2290
+ context: "formatting"
2291
+ });
2292
+ case "EEEEEE":
2293
+ return a.day(e, {
2294
+ width: "short",
2295
+ context: "formatting"
2296
+ }) || a.day(e, {
2297
+ width: "narrow",
2298
+ context: "formatting"
2299
+ });
2300
+ case "EEEE":
2301
+ default:
2302
+ return a.day(e, {
2303
+ width: "wide",
2304
+ context: "formatting"
2305
+ }) || a.day(e, {
2306
+ width: "abbreviated",
2307
+ context: "formatting"
2308
+ }) || a.day(e, {
2309
+ width: "short",
2310
+ context: "formatting"
2311
+ }) || a.day(e, {
2312
+ width: "narrow",
2313
+ context: "formatting"
2314
+ });
2315
+ }
2316
+ }
2317
+ }, {
2318
+ key: "validate",
2319
+ value: function(e, o) {
2320
+ return o >= 0 && o <= 6;
2321
+ }
2322
+ }, {
2323
+ key: "set",
2324
+ value: function(e, o, a, s) {
2325
+ return e = tt(e, a, s), e.setUTCHours(0, 0, 0, 0), e;
2326
+ }
2327
+ }]), t;
2328
+ }(U), Ri = /* @__PURE__ */ function(n) {
2329
+ O(t, n);
2330
+ var r = A(t);
2331
+ function t() {
2332
+ var i;
2333
+ M(this, t);
2334
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2335
+ o[a] = arguments[a];
2336
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 90), d(v(i), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "c", "t", "T"]), i;
2337
+ }
2338
+ return E(t, [{
2339
+ key: "parse",
2340
+ value: function(e, o, a, s) {
2341
+ var u = function(m) {
2342
+ var y = Math.floor((m - 1) / 7) * 7;
2343
+ return (m + s.weekStartsOn + 6) % 7 + y;
2344
+ };
2345
+ switch (o) {
2346
+ case "e":
2347
+ case "ee":
2348
+ return re(Z(o.length, e), u);
2349
+ case "eo":
2350
+ return re(a.ordinalNumber(e, {
2351
+ unit: "day"
2352
+ }), u);
2353
+ case "eee":
2354
+ return a.day(e, {
2355
+ width: "abbreviated",
2356
+ context: "formatting"
2357
+ }) || a.day(e, {
2358
+ width: "short",
2359
+ context: "formatting"
2360
+ }) || a.day(e, {
2361
+ width: "narrow",
2362
+ context: "formatting"
2363
+ });
2364
+ case "eeeee":
2365
+ return a.day(e, {
2366
+ width: "narrow",
2367
+ context: "formatting"
2368
+ });
2369
+ case "eeeeee":
2370
+ return a.day(e, {
2371
+ width: "short",
2372
+ context: "formatting"
2373
+ }) || a.day(e, {
2374
+ width: "narrow",
2375
+ context: "formatting"
2376
+ });
2377
+ case "eeee":
2378
+ default:
2379
+ return a.day(e, {
2380
+ width: "wide",
2381
+ context: "formatting"
2382
+ }) || a.day(e, {
2383
+ width: "abbreviated",
2384
+ context: "formatting"
2385
+ }) || a.day(e, {
2386
+ width: "short",
2387
+ context: "formatting"
2388
+ }) || a.day(e, {
2389
+ width: "narrow",
2390
+ context: "formatting"
2391
+ });
2392
+ }
2393
+ }
2394
+ }, {
2395
+ key: "validate",
2396
+ value: function(e, o) {
2397
+ return o >= 0 && o <= 6;
2398
+ }
2399
+ }, {
2400
+ key: "set",
2401
+ value: function(e, o, a, s) {
2402
+ return e = tt(e, a, s), e.setUTCHours(0, 0, 0, 0), e;
2403
+ }
2404
+ }]), t;
2405
+ }(U), Qi = /* @__PURE__ */ function(n) {
2406
+ O(t, n);
2407
+ var r = A(t);
2408
+ function t() {
2409
+ var i;
2410
+ M(this, t);
2411
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2412
+ o[a] = arguments[a];
2413
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 90), d(v(i), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "e", "t", "T"]), i;
2414
+ }
2415
+ return E(t, [{
2416
+ key: "parse",
2417
+ value: function(e, o, a, s) {
2418
+ var u = function(m) {
2419
+ var y = Math.floor((m - 1) / 7) * 7;
2420
+ return (m + s.weekStartsOn + 6) % 7 + y;
2421
+ };
2422
+ switch (o) {
2423
+ case "c":
2424
+ case "cc":
2425
+ return re(Z(o.length, e), u);
2426
+ case "co":
2427
+ return re(a.ordinalNumber(e, {
2428
+ unit: "day"
2429
+ }), u);
2430
+ case "ccc":
2431
+ return a.day(e, {
2432
+ width: "abbreviated",
2433
+ context: "standalone"
2434
+ }) || a.day(e, {
2435
+ width: "short",
2436
+ context: "standalone"
2437
+ }) || a.day(e, {
2438
+ width: "narrow",
2439
+ context: "standalone"
2440
+ });
2441
+ case "ccccc":
2442
+ return a.day(e, {
2443
+ width: "narrow",
2444
+ context: "standalone"
2445
+ });
2446
+ case "cccccc":
2447
+ return a.day(e, {
2448
+ width: "short",
2449
+ context: "standalone"
2450
+ }) || a.day(e, {
2451
+ width: "narrow",
2452
+ context: "standalone"
2453
+ });
2454
+ case "cccc":
2455
+ default:
2456
+ return a.day(e, {
2457
+ width: "wide",
2458
+ context: "standalone"
2459
+ }) || a.day(e, {
2460
+ width: "abbreviated",
2461
+ context: "standalone"
2462
+ }) || a.day(e, {
2463
+ width: "short",
2464
+ context: "standalone"
2465
+ }) || a.day(e, {
2466
+ width: "narrow",
2467
+ context: "standalone"
2468
+ });
2469
+ }
2470
+ }
2471
+ }, {
2472
+ key: "validate",
2473
+ value: function(e, o) {
2474
+ return o >= 0 && o <= 6;
2475
+ }
2476
+ }, {
2477
+ key: "set",
2478
+ value: function(e, o, a, s) {
2479
+ return e = tt(e, a, s), e.setUTCHours(0, 0, 0, 0), e;
2480
+ }
2481
+ }]), t;
2482
+ }(U);
2483
+ function Gi(n, r) {
2484
+ j(2, arguments);
2485
+ var t = se(r);
2486
+ t % 7 === 0 && (t = t - 7);
2487
+ var i = 1, e = ie(n), o = e.getUTCDay(), a = t % 7, s = (a + 7) % 7, u = (s < i ? 7 : 0) + t - o;
2488
+ return e.setUTCDate(e.getUTCDate() + u), e;
2489
+ }
2490
+ var zi = /* @__PURE__ */ function(n) {
2491
+ O(t, n);
2492
+ var r = A(t);
2493
+ function t() {
2494
+ var i;
2495
+ M(this, t);
2496
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2497
+ o[a] = arguments[a];
2498
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 90), d(v(i), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "E", "e", "c", "t", "T"]), i;
2499
+ }
2500
+ return E(t, [{
2501
+ key: "parse",
2502
+ value: function(e, o, a) {
2503
+ var s = function(l) {
2504
+ return l === 0 ? 7 : l;
2505
+ };
2506
+ switch (o) {
2507
+ case "i":
2508
+ case "ii":
2509
+ return Z(o.length, e);
2510
+ case "io":
2511
+ return a.ordinalNumber(e, {
2512
+ unit: "day"
2513
+ });
2514
+ case "iii":
2515
+ return re(a.day(e, {
2516
+ width: "abbreviated",
2517
+ context: "formatting"
2518
+ }) || a.day(e, {
2519
+ width: "short",
2520
+ context: "formatting"
2521
+ }) || a.day(e, {
2522
+ width: "narrow",
2523
+ context: "formatting"
2524
+ }), s);
2525
+ case "iiiii":
2526
+ return re(a.day(e, {
2527
+ width: "narrow",
2528
+ context: "formatting"
2529
+ }), s);
2530
+ case "iiiiii":
2531
+ return re(a.day(e, {
2532
+ width: "short",
2533
+ context: "formatting"
2534
+ }) || a.day(e, {
2535
+ width: "narrow",
2536
+ context: "formatting"
2537
+ }), s);
2538
+ case "iiii":
2539
+ default:
2540
+ return re(a.day(e, {
2541
+ width: "wide",
2542
+ context: "formatting"
2543
+ }) || a.day(e, {
2544
+ width: "abbreviated",
2545
+ context: "formatting"
2546
+ }) || a.day(e, {
2547
+ width: "short",
2548
+ context: "formatting"
2549
+ }) || a.day(e, {
2550
+ width: "narrow",
2551
+ context: "formatting"
2552
+ }), s);
2553
+ }
2554
+ }
2555
+ }, {
2556
+ key: "validate",
2557
+ value: function(e, o) {
2558
+ return o >= 1 && o <= 7;
2559
+ }
2560
+ }, {
2561
+ key: "set",
2562
+ value: function(e, o, a) {
2563
+ return e = Gi(e, a), e.setUTCHours(0, 0, 0, 0), e;
2564
+ }
2565
+ }]), t;
2566
+ }(U), Vi = /* @__PURE__ */ function(n) {
2567
+ O(t, n);
2568
+ var r = A(t);
2569
+ function t() {
2570
+ var i;
2571
+ M(this, t);
2572
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2573
+ o[a] = arguments[a];
2574
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 80), d(v(i), "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]), i;
2575
+ }
2576
+ return E(t, [{
2577
+ key: "parse",
2578
+ value: function(e, o, a) {
2579
+ switch (o) {
2580
+ case "a":
2581
+ case "aa":
2582
+ case "aaa":
2583
+ return a.dayPeriod(e, {
2584
+ width: "abbreviated",
2585
+ context: "formatting"
2586
+ }) || a.dayPeriod(e, {
2587
+ width: "narrow",
2588
+ context: "formatting"
2589
+ });
2590
+ case "aaaaa":
2591
+ return a.dayPeriod(e, {
2592
+ width: "narrow",
2593
+ context: "formatting"
2594
+ });
2595
+ case "aaaa":
2596
+ default:
2597
+ return a.dayPeriod(e, {
2598
+ width: "wide",
2599
+ context: "formatting"
2600
+ }) || a.dayPeriod(e, {
2601
+ width: "abbreviated",
2602
+ context: "formatting"
2603
+ }) || a.dayPeriod(e, {
2604
+ width: "narrow",
2605
+ context: "formatting"
2606
+ });
2607
+ }
2608
+ }
2609
+ }, {
2610
+ key: "set",
2611
+ value: function(e, o, a) {
2612
+ return e.setUTCHours(et(a), 0, 0, 0), e;
2613
+ }
2614
+ }]), t;
2615
+ }(U), Xi = /* @__PURE__ */ function(n) {
2616
+ O(t, n);
2617
+ var r = A(t);
2618
+ function t() {
2619
+ var i;
2620
+ M(this, t);
2621
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2622
+ o[a] = arguments[a];
2623
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 80), d(v(i), "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]), i;
2624
+ }
2625
+ return E(t, [{
2626
+ key: "parse",
2627
+ value: function(e, o, a) {
2628
+ switch (o) {
2629
+ case "b":
2630
+ case "bb":
2631
+ case "bbb":
2632
+ return a.dayPeriod(e, {
2633
+ width: "abbreviated",
2634
+ context: "formatting"
2635
+ }) || a.dayPeriod(e, {
2636
+ width: "narrow",
2637
+ context: "formatting"
2638
+ });
2639
+ case "bbbbb":
2640
+ return a.dayPeriod(e, {
2641
+ width: "narrow",
2642
+ context: "formatting"
2643
+ });
2644
+ case "bbbb":
2645
+ default:
2646
+ return a.dayPeriod(e, {
2647
+ width: "wide",
2648
+ context: "formatting"
2649
+ }) || a.dayPeriod(e, {
2650
+ width: "abbreviated",
2651
+ context: "formatting"
2652
+ }) || a.dayPeriod(e, {
2653
+ width: "narrow",
2654
+ context: "formatting"
2655
+ });
2656
+ }
2657
+ }
2658
+ }, {
2659
+ key: "set",
2660
+ value: function(e, o, a) {
2661
+ return e.setUTCHours(et(a), 0, 0, 0), e;
2662
+ }
2663
+ }]), t;
2664
+ }(U), Ji = /* @__PURE__ */ function(n) {
2665
+ O(t, n);
2666
+ var r = A(t);
2667
+ function t() {
2668
+ var i;
2669
+ M(this, t);
2670
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2671
+ o[a] = arguments[a];
2672
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 80), d(v(i), "incompatibleTokens", ["a", "b", "t", "T"]), i;
2673
+ }
2674
+ return E(t, [{
2675
+ key: "parse",
2676
+ value: function(e, o, a) {
2677
+ switch (o) {
2678
+ case "B":
2679
+ case "BB":
2680
+ case "BBB":
2681
+ return a.dayPeriod(e, {
2682
+ width: "abbreviated",
2683
+ context: "formatting"
2684
+ }) || a.dayPeriod(e, {
2685
+ width: "narrow",
2686
+ context: "formatting"
2687
+ });
2688
+ case "BBBBB":
2689
+ return a.dayPeriod(e, {
2690
+ width: "narrow",
2691
+ context: "formatting"
2692
+ });
2693
+ case "BBBB":
2694
+ default:
2695
+ return a.dayPeriod(e, {
2696
+ width: "wide",
2697
+ context: "formatting"
2698
+ }) || a.dayPeriod(e, {
2699
+ width: "abbreviated",
2700
+ context: "formatting"
2701
+ }) || a.dayPeriod(e, {
2702
+ width: "narrow",
2703
+ context: "formatting"
2704
+ });
2705
+ }
2706
+ }
2707
+ }, {
2708
+ key: "set",
2709
+ value: function(e, o, a) {
2710
+ return e.setUTCHours(et(a), 0, 0, 0), e;
2711
+ }
2712
+ }]), t;
2713
+ }(U), Ki = /* @__PURE__ */ function(n) {
2714
+ O(t, n);
2715
+ var r = A(t);
2716
+ function t() {
2717
+ var i;
2718
+ M(this, t);
2719
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2720
+ o[a] = arguments[a];
2721
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 70), d(v(i), "incompatibleTokens", ["H", "K", "k", "t", "T"]), i;
2722
+ }
2723
+ return E(t, [{
2724
+ key: "parse",
2725
+ value: function(e, o, a) {
2726
+ switch (o) {
2727
+ case "h":
2728
+ return V(te.hour12h, e);
2729
+ case "ho":
2730
+ return a.ordinalNumber(e, {
2731
+ unit: "hour"
2732
+ });
2733
+ default:
2734
+ return Z(o.length, e);
2735
+ }
2736
+ }
2737
+ }, {
2738
+ key: "validate",
2739
+ value: function(e, o) {
2740
+ return o >= 1 && o <= 12;
2741
+ }
2742
+ }, {
2743
+ key: "set",
2744
+ value: function(e, o, a) {
2745
+ var s = e.getUTCHours() >= 12;
2746
+ return s && a < 12 ? e.setUTCHours(a + 12, 0, 0, 0) : !s && a === 12 ? e.setUTCHours(0, 0, 0, 0) : e.setUTCHours(a, 0, 0, 0), e;
2747
+ }
2748
+ }]), t;
2749
+ }(U), Zi = /* @__PURE__ */ function(n) {
2750
+ O(t, n);
2751
+ var r = A(t);
2752
+ function t() {
2753
+ var i;
2754
+ M(this, t);
2755
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2756
+ o[a] = arguments[a];
2757
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 70), d(v(i), "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]), i;
2758
+ }
2759
+ return E(t, [{
2760
+ key: "parse",
2761
+ value: function(e, o, a) {
2762
+ switch (o) {
2763
+ case "H":
2764
+ return V(te.hour23h, e);
2765
+ case "Ho":
2766
+ return a.ordinalNumber(e, {
2767
+ unit: "hour"
2768
+ });
2769
+ default:
2770
+ return Z(o.length, e);
2771
+ }
2772
+ }
2773
+ }, {
2774
+ key: "validate",
2775
+ value: function(e, o) {
2776
+ return o >= 0 && o <= 23;
2777
+ }
2778
+ }, {
2779
+ key: "set",
2780
+ value: function(e, o, a) {
2781
+ return e.setUTCHours(a, 0, 0, 0), e;
2782
+ }
2783
+ }]), t;
2784
+ }(U), $i = /* @__PURE__ */ function(n) {
2785
+ O(t, n);
2786
+ var r = A(t);
2787
+ function t() {
2788
+ var i;
2789
+ M(this, t);
2790
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2791
+ o[a] = arguments[a];
2792
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 70), d(v(i), "incompatibleTokens", ["h", "H", "k", "t", "T"]), i;
2793
+ }
2794
+ return E(t, [{
2795
+ key: "parse",
2796
+ value: function(e, o, a) {
2797
+ switch (o) {
2798
+ case "K":
2799
+ return V(te.hour11h, e);
2800
+ case "Ko":
2801
+ return a.ordinalNumber(e, {
2802
+ unit: "hour"
2803
+ });
2804
+ default:
2805
+ return Z(o.length, e);
2806
+ }
2807
+ }
2808
+ }, {
2809
+ key: "validate",
2810
+ value: function(e, o) {
2811
+ return o >= 0 && o <= 11;
2812
+ }
2813
+ }, {
2814
+ key: "set",
2815
+ value: function(e, o, a) {
2816
+ var s = e.getUTCHours() >= 12;
2817
+ return s && a < 12 ? e.setUTCHours(a + 12, 0, 0, 0) : e.setUTCHours(a, 0, 0, 0), e;
2818
+ }
2819
+ }]), t;
2820
+ }(U), en = /* @__PURE__ */ function(n) {
2821
+ O(t, n);
2822
+ var r = A(t);
2823
+ function t() {
2824
+ var i;
2825
+ M(this, t);
2826
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2827
+ o[a] = arguments[a];
2828
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 70), d(v(i), "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]), i;
2829
+ }
2830
+ return E(t, [{
2831
+ key: "parse",
2832
+ value: function(e, o, a) {
2833
+ switch (o) {
2834
+ case "k":
2835
+ return V(te.hour24h, e);
2836
+ case "ko":
2837
+ return a.ordinalNumber(e, {
2838
+ unit: "hour"
2839
+ });
2840
+ default:
2841
+ return Z(o.length, e);
2842
+ }
2843
+ }
2844
+ }, {
2845
+ key: "validate",
2846
+ value: function(e, o) {
2847
+ return o >= 1 && o <= 24;
2848
+ }
2849
+ }, {
2850
+ key: "set",
2851
+ value: function(e, o, a) {
2852
+ var s = a <= 24 ? a % 24 : a;
2853
+ return e.setUTCHours(s, 0, 0, 0), e;
2854
+ }
2855
+ }]), t;
2856
+ }(U), tn = /* @__PURE__ */ function(n) {
2857
+ O(t, n);
2858
+ var r = A(t);
2859
+ function t() {
2860
+ var i;
2861
+ M(this, t);
2862
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2863
+ o[a] = arguments[a];
2864
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 60), d(v(i), "incompatibleTokens", ["t", "T"]), i;
2865
+ }
2866
+ return E(t, [{
2867
+ key: "parse",
2868
+ value: function(e, o, a) {
2869
+ switch (o) {
2870
+ case "m":
2871
+ return V(te.minute, e);
2872
+ case "mo":
2873
+ return a.ordinalNumber(e, {
2874
+ unit: "minute"
2875
+ });
2876
+ default:
2877
+ return Z(o.length, e);
2878
+ }
2879
+ }
2880
+ }, {
2881
+ key: "validate",
2882
+ value: function(e, o) {
2883
+ return o >= 0 && o <= 59;
2884
+ }
2885
+ }, {
2886
+ key: "set",
2887
+ value: function(e, o, a) {
2888
+ return e.setUTCMinutes(a, 0, 0), e;
2889
+ }
2890
+ }]), t;
2891
+ }(U), rn = /* @__PURE__ */ function(n) {
2892
+ O(t, n);
2893
+ var r = A(t);
2894
+ function t() {
2895
+ var i;
2896
+ M(this, t);
2897
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2898
+ o[a] = arguments[a];
2899
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 50), d(v(i), "incompatibleTokens", ["t", "T"]), i;
2900
+ }
2901
+ return E(t, [{
2902
+ key: "parse",
2903
+ value: function(e, o, a) {
2904
+ switch (o) {
2905
+ case "s":
2906
+ return V(te.second, e);
2907
+ case "so":
2908
+ return a.ordinalNumber(e, {
2909
+ unit: "second"
2910
+ });
2911
+ default:
2912
+ return Z(o.length, e);
2913
+ }
2914
+ }
2915
+ }, {
2916
+ key: "validate",
2917
+ value: function(e, o) {
2918
+ return o >= 0 && o <= 59;
2919
+ }
2920
+ }, {
2921
+ key: "set",
2922
+ value: function(e, o, a) {
2923
+ return e.setUTCSeconds(a, 0), e;
2924
+ }
2925
+ }]), t;
2926
+ }(U), nn = /* @__PURE__ */ function(n) {
2927
+ O(t, n);
2928
+ var r = A(t);
2929
+ function t() {
2930
+ var i;
2931
+ M(this, t);
2932
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2933
+ o[a] = arguments[a];
2934
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 30), d(v(i), "incompatibleTokens", ["t", "T"]), i;
2935
+ }
2936
+ return E(t, [{
2937
+ key: "parse",
2938
+ value: function(e, o) {
2939
+ var a = function(u) {
2940
+ return Math.floor(u * Math.pow(10, -o.length + 3));
2941
+ };
2942
+ return re(Z(o.length, e), a);
2943
+ }
2944
+ }, {
2945
+ key: "set",
2946
+ value: function(e, o, a) {
2947
+ return e.setUTCMilliseconds(a), e;
2948
+ }
2949
+ }]), t;
2950
+ }(U), an = /* @__PURE__ */ function(n) {
2951
+ O(t, n);
2952
+ var r = A(t);
2953
+ function t() {
2954
+ var i;
2955
+ M(this, t);
2956
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2957
+ o[a] = arguments[a];
2958
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 10), d(v(i), "incompatibleTokens", ["t", "T", "x"]), i;
2959
+ }
2960
+ return E(t, [{
2961
+ key: "parse",
2962
+ value: function(e, o) {
2963
+ switch (o) {
2964
+ case "X":
2965
+ return Le(Te.basicOptionalMinutes, e);
2966
+ case "XX":
2967
+ return Le(Te.basic, e);
2968
+ case "XXXX":
2969
+ return Le(Te.basicOptionalSeconds, e);
2970
+ case "XXXXX":
2971
+ return Le(Te.extendedOptionalSeconds, e);
2972
+ case "XXX":
2973
+ default:
2974
+ return Le(Te.extended, e);
2975
+ }
2976
+ }
2977
+ }, {
2978
+ key: "set",
2979
+ value: function(e, o, a) {
2980
+ return o.timestampIsSet ? e : new Date(e.getTime() - a);
2981
+ }
2982
+ }]), t;
2983
+ }(U), on = /* @__PURE__ */ function(n) {
2984
+ O(t, n);
2985
+ var r = A(t);
2986
+ function t() {
2987
+ var i;
2988
+ M(this, t);
2989
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
2990
+ o[a] = arguments[a];
2991
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 10), d(v(i), "incompatibleTokens", ["t", "T", "X"]), i;
2992
+ }
2993
+ return E(t, [{
2994
+ key: "parse",
2995
+ value: function(e, o) {
2996
+ switch (o) {
2997
+ case "x":
2998
+ return Le(Te.basicOptionalMinutes, e);
2999
+ case "xx":
3000
+ return Le(Te.basic, e);
3001
+ case "xxxx":
3002
+ return Le(Te.basicOptionalSeconds, e);
3003
+ case "xxxxx":
3004
+ return Le(Te.extendedOptionalSeconds, e);
3005
+ case "xxx":
3006
+ default:
3007
+ return Le(Te.extended, e);
3008
+ }
3009
+ }
3010
+ }, {
3011
+ key: "set",
3012
+ value: function(e, o, a) {
3013
+ return o.timestampIsSet ? e : new Date(e.getTime() - a);
3014
+ }
3015
+ }]), t;
3016
+ }(U), sn = /* @__PURE__ */ function(n) {
3017
+ O(t, n);
3018
+ var r = A(t);
3019
+ function t() {
3020
+ var i;
3021
+ M(this, t);
3022
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
3023
+ o[a] = arguments[a];
3024
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 40), d(v(i), "incompatibleTokens", "*"), i;
3025
+ }
3026
+ return E(t, [{
3027
+ key: "parse",
3028
+ value: function(e) {
3029
+ return Ft(e);
3030
+ }
3031
+ }, {
3032
+ key: "set",
3033
+ value: function(e, o, a) {
3034
+ return [new Date(a * 1e3), {
3035
+ timestampIsSet: !0
3036
+ }];
3037
+ }
3038
+ }]), t;
3039
+ }(U), un = /* @__PURE__ */ function(n) {
3040
+ O(t, n);
3041
+ var r = A(t);
3042
+ function t() {
3043
+ var i;
3044
+ M(this, t);
3045
+ for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
3046
+ o[a] = arguments[a];
3047
+ return i = r.call.apply(r, [this].concat(o)), d(v(i), "priority", 20), d(v(i), "incompatibleTokens", "*"), i;
3048
+ }
3049
+ return E(t, [{
3050
+ key: "parse",
3051
+ value: function(e) {
3052
+ return Ft(e);
3053
+ }
3054
+ }, {
3055
+ key: "set",
3056
+ value: function(e, o, a) {
3057
+ return [new Date(a), {
3058
+ timestampIsSet: !0
3059
+ }];
3060
+ }
3061
+ }]), t;
3062
+ }(U), ln = {
3063
+ G: new Di(),
3064
+ y: new Mi(),
3065
+ Y: new Ei(),
3066
+ R: new Pi(),
3067
+ u: new Oi(),
3068
+ Q: new Ai(),
3069
+ q: new xi(),
3070
+ M: new Ui(),
3071
+ L: new Ni(),
3072
+ w: new Yi(),
3073
+ I: new qi(),
3074
+ d: new Fi(),
3075
+ D: new ji(),
3076
+ E: new Si(),
3077
+ e: new Ri(),
3078
+ c: new Qi(),
3079
+ i: new zi(),
3080
+ a: new Vi(),
3081
+ b: new Xi(),
3082
+ B: new Ji(),
3083
+ h: new Ki(),
3084
+ H: new Zi(),
3085
+ K: new $i(),
3086
+ k: new en(),
3087
+ m: new tn(),
3088
+ s: new rn(),
3089
+ S: new nn(),
3090
+ X: new an(),
3091
+ x: new on(),
3092
+ t: new sn(),
3093
+ T: new un()
3094
+ }, cn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, mn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, dn = /^'([^]*?)'?$/, fn = /''/g, vn = /\S/, pn = /[a-zA-Z]/;
3095
+ function En(n, r, t, i) {
3096
+ var e, o, a, s, u, l, m, y, w, p, P, h, g, k;
3097
+ j(3, arguments);
3098
+ var L = String(n), _ = String(r), G = We(), z = (e = (o = void 0) !== null && o !== void 0 ? o : G.locale) !== null && e !== void 0 ? e : It;
3099
+ if (!z.match)
3100
+ throw new RangeError("locale must contain match property");
3101
+ var B = se((a = (s = (u = (l = void 0) !== null && l !== void 0 ? l : void 0) !== null && u !== void 0 ? u : G.firstWeekContainsDate) !== null && s !== void 0 ? s : (m = G.locale) === null || m === void 0 || (y = m.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
3102
+ if (!(B >= 1 && B <= 7))
3103
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
3104
+ var ce = se((w = (p = (P = (h = void 0) !== null && h !== void 0 ? h : void 0) !== null && P !== void 0 ? P : G.weekStartsOn) !== null && p !== void 0 ? p : (g = G.locale) === null || g === void 0 || (k = g.options) === null || k === void 0 ? void 0 : k.weekStartsOn) !== null && w !== void 0 ? w : 0);
3105
+ if (!(ce >= 0 && ce <= 6))
3106
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
3107
+ if (_ === "")
3108
+ return L === "" ? ie(t) : /* @__PURE__ */ new Date(NaN);
3109
+ var N = {
3110
+ firstWeekContainsDate: B,
3111
+ weekStartsOn: ce,
3112
+ locale: z
3113
+ }, $ = [new _i()], ue = _.match(mn).map(function(F) {
3114
+ var C = F[0];
3115
+ if (C in Ve) {
3116
+ var W = Ve[C];
3117
+ return W(F, z.formatLong);
3118
+ }
3119
+ return F;
3120
+ }).join("").match(cn), H = [], X = ct(ue), le;
3121
+ try {
3122
+ var S = function() {
3123
+ var C = le.value;
3124
+ !(i != null && i.useAdditionalWeekYearTokens) && Yt(C) && Fe(C, _, n), !(i != null && i.useAdditionalDayOfYearTokens) && Wt(C) && Fe(C, _, n);
3125
+ var W = C[0], ee = ln[W];
3126
+ if (ee) {
3127
+ var x = ee.incompatibleTokens;
3128
+ if (Array.isArray(x)) {
3129
+ var R = H.find(function(Be) {
3130
+ return x.includes(Be.token) || Be.token === W;
3131
+ });
3132
+ if (R)
3133
+ throw new RangeError("The format string mustn't contain `".concat(R.fullToken, "` and `").concat(C, "` at the same time"));
3134
+ } else if (ee.incompatibleTokens === "*" && H.length > 0)
3135
+ throw new RangeError("The format string mustn't contain `".concat(C, "` and any other token at the same time"));
3136
+ H.push({
3137
+ token: W,
3138
+ fullToken: C
3139
+ });
3140
+ var Ye = ee.run(L, C, z.match, N);
3141
+ if (!Ye)
3142
+ return {
3143
+ v: /* @__PURE__ */ new Date(NaN)
3144
+ };
3145
+ $.push(Ye.setter), L = Ye.rest;
3146
+ } else {
3147
+ if (W.match(pn))
3148
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + W + "`");
3149
+ if (C === "''" ? C = "'" : W === "'" && (C = hn(C)), L.indexOf(C) === 0)
3150
+ L = L.slice(C.length);
3151
+ else
3152
+ return {
3153
+ v: /* @__PURE__ */ new Date(NaN)
3154
+ };
3155
+ }
3156
+ };
3157
+ for (X.s(); !(le = X.n()).done; ) {
3158
+ var ge = S();
3159
+ if (Me(ge) === "object")
3160
+ return ge.v;
3161
+ }
3162
+ } catch (F) {
3163
+ X.e(F);
3164
+ } finally {
3165
+ X.f();
3166
+ }
3167
+ if (L.length > 0 && vn.test(L))
3168
+ return /* @__PURE__ */ new Date(NaN);
3169
+ var Ce = $.map(function(F) {
3170
+ return F.priority;
3171
+ }).sort(function(F, C) {
3172
+ return C - F;
3173
+ }).filter(function(F, C, W) {
3174
+ return W.indexOf(F) === C;
3175
+ }).map(function(F) {
3176
+ return $.filter(function(C) {
3177
+ return C.priority === F;
3178
+ }).sort(function(C, W) {
3179
+ return W.subPriority - C.subPriority;
3180
+ });
3181
+ }).map(function(F) {
3182
+ return F[0];
3183
+ }), J = ie(t);
3184
+ if (isNaN(J.getTime()))
3185
+ return /* @__PURE__ */ new Date(NaN);
3186
+ var me = Ot(J, Pt(J)), _e = {}, ve = ct(Ce), de;
3187
+ try {
3188
+ for (ve.s(); !(de = ve.n()).done; ) {
3189
+ var ye = de.value;
3190
+ if (!ye.validate(me, N))
3191
+ return /* @__PURE__ */ new Date(NaN);
3192
+ var pe = ye.set(me, _e, N);
3193
+ Array.isArray(pe) ? (me = pe[0], wi(_e, pe[1])) : me = pe;
3194
+ }
3195
+ } catch (F) {
3196
+ ve.e(F);
3197
+ } finally {
3198
+ ve.f();
3199
+ }
3200
+ return me;
3201
+ }
3202
+ function hn(n) {
3203
+ return n.match(dn)[1].replace(fn, "'");
3204
+ }
3205
+ function Pn(n, r) {
3206
+ j(2, arguments);
3207
+ var t = se(r);
3208
+ return pr(n, -t);
3209
+ }
3210
+ function On(n, r) {
3211
+ j(2, arguments);
3212
+ var t = se(r);
3213
+ return hr(n, -t);
3214
+ }
3215
+ if (typeof window != "undefined") {
3216
+ let n = function(r) {
3217
+ return function(...t) {
3218
+ try {
3219
+ return r.apply(this, t);
3220
+ } catch (i) {
3221
+ if (i instanceof DOMException && i.message.includes("has already been used with this registry") || i.message.includes("Cannot define multiple custom elements with the same tag name"))
3222
+ return !1;
3223
+ throw i;
3224
+ }
3225
+ };
3226
+ };
3227
+ customElements.define = n(customElements.define), import("./PlayerAccountGamingLimitsPopup-Dz9ROowj.js").then(({ default: r }) => {
3228
+ !customElements.get("player-account-gaming-limits-popup") && customElements.define("player-account-gaming-limits-popup", r.element);
3229
+ });
3230
+ }
3231
+ function mt(n, r) {
3232
+ Kt(n, r);
3233
+ }
3234
+ function gn(n) {
3235
+ Zt.set(n);
3236
+ }
3237
+ const dt = {
3238
+ en: {
3239
+ back: "Back to Gaming Limits",
3240
+ limit: "Limit",
3241
+ amount: "Amount",
3242
+ noLimit: "No limit",
3243
+ changeLimitsText: "Are you sure you want to change the {limit}s?",
3244
+ success: "Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",
3245
+ remove: "You have requested to remove this limit. This will be applied on",
3246
+ invalidInputMessageLimit: "The amount needs to be between 1 and 99,999,999.",
3247
+ invalidInputMessageTime: "The time amount needs to be greater than {minTime} and below {maxTime} minutes.",
3248
+ expirationDate: "Expiration Date:",
3249
+ save: "Save",
3250
+ changedLimitTextBefore: "Your limit has been changed or increased:",
3251
+ changedLimitTextAfter: "You will have to wait for the expiration date for your new limit to take effect.",
3252
+ daily: "Daily",
3253
+ weekly: "Weekly",
3254
+ monthly: "Monthly",
3255
+ depositLimit: "Deposit Limit",
3256
+ timeLimit: "Time Limit",
3257
+ wageringLimit: "Wagering Limit",
3258
+ lossLimit: "Loss Limit"
3259
+ },
3260
+ "zh-hk": {
3261
+ back: "返回游戲限制",
3262
+ limit: "限制",
3263
+ amount: "數量",
3264
+ noLimit: "沒有限制t",
3265
+ changeLimitsText: "您確定要更改 {limit} 嗎?",
3266
+ success: "您的遊戲限制已成功設置。",
3267
+ remove: "您已請求取消此限制。 這將應用於",
3268
+ invalidInputMessageLimit: "金額需要在 0 到 99,999,999 之間",
3269
+ invalidInputMessageTime: "時間量需要大於 {minTime} 且低於 {maxTime} 分鐘",
3270
+ expirationDate: "截止日期:",
3271
+ save: "節省",
3272
+ changedLimitTextBefore: "您的限額已更改或增加:",
3273
+ changedLimitTextAfter: "您必須等待到期日期才能使新限制生效",
3274
+ daily: "日常的",
3275
+ weekly: "每周",
3276
+ monthly: "月刊",
3277
+ depositLimit: "存款限额",
3278
+ timeLimit: "时限",
3279
+ wageringLimit: "投注限额",
3280
+ lossLimit: "损失限额"
3281
+ },
3282
+ fr: {
3283
+ back: "Retour aux limites de jeu",
3284
+ daily: "Quotidiennement",
3285
+ weekly: "Hebdomadaire",
3286
+ monthly: "Mensuel",
3287
+ limit: "Limite",
3288
+ amount: "Montant",
3289
+ noLimit: "Aucune limite",
3290
+ changeLimitsText: "Etes-vous sûr de vouloir changer les {limit}s??",
3291
+ success: "Vos limites de jeu ont été respectées.",
3292
+ remove: "Vous avez demandé à ce que cette limite soit supprimée,elle sera appliquée",
3293
+ invalidInputMessageLimit: "Le montant doit être compris entre 1 et 99,999,999.",
3294
+ invalidInputMessageTime: "La durée doit être supérieure au {minTime} et inférieur au {maxTime} minutes .",
3295
+ expirationDate: "Date d'expiration:",
3296
+ save: "Sauvez",
3297
+ changedLimitTextBefore: "Votre limit a été modifiée ou augmentée:",
3298
+ changedLimitTextAfter: "Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet",
3299
+ depositLimit: "Limite de dépôt",
3300
+ timeLimit: "Limite de temps",
3301
+ wageringLimit: "Limite de mise",
3302
+ lossLimit: "Limite de perte"
3303
+ },
3304
+ ro: {
3305
+ back: "Înapoi la limite de joc",
3306
+ limit: "Limită",
3307
+ amount: "Sumă",
3308
+ noLimit: "Fără Limită",
3309
+ changeLimitsText: "Ești sigur că vrei să modifici {limit}?",
3310
+ success: "Limitele tale de joc au fost configurate cu success.",
3311
+ remove: "Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei",
3312
+ invalidInputMessageLimit: "Trebuie să setezi o sumă intre 1 și 99,999,999.",
3313
+ invalidInputMessageTime: "Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute",
3314
+ expirationDate: "Dată Expirare:",
3315
+ save: "Salvează",
3316
+ changedLimitTextBefore: "Limita ta a fost schimbată sau a crescut:",
3317
+ changedLimitTextAfter: ". Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",
3318
+ daily: "Zilnic",
3319
+ weekly: "Săptămânal",
3320
+ monthly: "Lunar",
3321
+ depositLimit: "Limită de depunere",
3322
+ timeLimit: "Limită de timp",
3323
+ wageringLimit: "Limită de pariere",
3324
+ lossLimit: "Limite de pierdere"
3325
+ },
3326
+ es: {
3327
+ back: "Regresa a límites de juego",
3328
+ limit: "Límite",
3329
+ amount: "Monto",
3330
+ noLimit: "Sin Límite",
3331
+ changeLimitsText: "Esta seguro que desea cambiar los {limit}es?",
3332
+ success: "Limite actualizado satisfactoriamente",
3333
+ remove: "Ha solicitado retirar este limite. Esto será aplicado",
3334
+ invalidInputMessageLimit: "El monto debe ser entre 1 y 99",
3335
+ invalidInputMessageTime: "La cantidad de tiempo debe ser superior a {minTime} y por debajo de {maxTime} minutos.",
3336
+ expirationDate: "Fecha de expiración:",
3337
+ save: "Guardar",
3338
+ changedLimitTextBefore: "Tú limite ha sido cambiado o incrementado:",
3339
+ changedLimitTextAfter: "Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia.",
3340
+ daily: "Diario",
3341
+ weekly: "Semanal",
3342
+ monthly: "Mensual",
3343
+ depositLimit: "Límite de depósito",
3344
+ timeLimit: "Límite de tiempo",
3345
+ wageringLimit: "Límite de apuestas",
3346
+ lossLimit: "Límite de pérdida"
3347
+ },
3348
+ pt: {
3349
+ back: "Voltar para Limites de jogos",
3350
+ limit: "Limite",
3351
+ amount: "Montante",
3352
+ noLimit: "Sem limite",
3353
+ changeLimitsText: "Tem certeza de que deseja alterar os {limite}s?",
3354
+ success: "Seus limites de jogo foram definidos com sucesso.",
3355
+ remove: "Você solicitou a remoção deste limite. Isso será aplicado em",
3356
+ invalidInputMessageLimit: "O valor precisa estar entre 1 e 99.999.999",
3357
+ invalidInputMessageTime: "A quantidade de tempo precisa ser maior que {1} e menor que {99999999} minutos",
3358
+ expirationDate: "Data de Validade",
3359
+ save: "Guardar",
3360
+ changedLimitTextBefore: "Seu limite foi alterado ou aumentado:",
3361
+ changedLimitTextAfter: "Você terá que aguardar a data de expiração para que seu novo limite entre em vigor",
3362
+ daily: "Diariamente",
3363
+ weekly: "Semanalmente",
3364
+ monthly: "Mensalmente",
3365
+ depositLimit: "Limite de Depósito",
3366
+ timeLimit: "Limite de Tempo",
3367
+ wageringLimit: "Limite de Apostas",
3368
+ lossLimit: "Limite de Perda"
3369
+ },
3370
+ hr: {
3371
+ back: "Povratak na ograničenja igranja",
3372
+ limit: "Limit",
3373
+ amount: "Iznos",
3374
+ noLimit: "Nema ograničenja",
3375
+ changeLimitsText: "Jeste li sigurni da želite promijeniti {limit}e?",
3376
+ success: "Uspješno",
3377
+ remove: "Zatražili ste uklanjanje ovog ograničenja. Ovo će se primijeniti na",
3378
+ invalidInputMessageLimit: "Iznos mora biti između 1 i 99",
3379
+ invalidInputMessageTime: "Vremenski iznos mora biti veći od {minTime} i manji od {maxTime} minuta.",
3380
+ expirationDate: "Datum isteka:",
3381
+ save: "Spremi",
3382
+ changedLimitTextBefore: "Vaše ograničenje je promijenjeno ili povećano:",
3383
+ changedLimitTextAfter: "Morat ćete pričekati datum isteka da bi vaše novo ograničenje stupilo na snagu.",
3384
+ daily: "Dnevno",
3385
+ weekly: "Tjedno",
3386
+ monthly: "Mjesečno",
3387
+ depositLimit: "Ograničenje uplate",
3388
+ timeLimit: "Vremensko ograničenje",
3389
+ wageringLimit: "Ograničenje igranja",
3390
+ lossLimit: "Ograničenje gubitka"
3391
+ },
3392
+ "pt-br": {
3393
+ back: "Retornar aos limites do jogo",
3394
+ limit: "Limite",
3395
+ amount: "Quantidade",
3396
+ noLimit: "Sem limite",
3397
+ changeLimitsText: "Tem certeza de que deseja alterar o(s) limite(s)?",
3398
+ success: "A operação bem-sucedida lorem Ipsum é simplesmente um texto fictício da indústria de impressão e composição tipográfica.",
3399
+ remove: "Você solicitou a remoção deste limite. Isto será aplicado a partir de",
3400
+ invalidInputMessageLimit: "A Quantia deve estar entre 1 e 99",
3401
+ invalidInputMessageTime: "A quantidade de tempo precisa ser maior que {minTime} e menor que {maxTime} minutos.",
3402
+ expirationDate: "Data de expiração:",
3403
+ save: "Manter",
3404
+ changedLimitTextBefore: "Seu limite de tempo foi alterado ou aumentado:",
3405
+ changedLimitTextAfter: "Você deve aguardar a data de expiração para que seu novo limite entre em vigor.",
3406
+ daily: "Diário",
3407
+ weekly: "Semanalmente",
3408
+ monthly: "Por mês",
3409
+ depositLimit: "Limite de depósito",
3410
+ timeLimit: "Limite de tempo",
3411
+ wageringLimit: "Limite de aposta",
3412
+ lossLimit: "Limite de perda"
3413
+ },
3414
+ "es-mx": {
3415
+ back: "Regresar a límites de juego",
3416
+ limit: "Límite",
3417
+ amount: "Monto",
3418
+ noLimit: "Sin límite",
3419
+ changeLimitsText: "¿Está seguro que quiere cambiar el/los límite(s)?",
3420
+ success: "Operación exitosa lorem Ipsum is simply dummy text of the printing and typesetting industry.",
3421
+ remove: "Ha solicitado remover este límite. Esto se aplicará a partir de",
3422
+ invalidInputMessageLimit: "El monto debe ser entre 1 y 99,999,999",
3423
+ invalidInputMessageTime: "El monto de tiempo necesita ser mayor a {minTime} y menor a {maxTime} minutos.",
3424
+ expirationDate: "Fecha de expiración:",
3425
+ save: "Guardar",
3426
+ changedLimitTextBefore: "Tú límite de tiempo ha sido cambiado o aumentado:",
3427
+ changedLimitTextAfter: "Tiene que esperar a la fecha de expiración para que su nuevo límite entre en efecto.",
3428
+ daily: "Diario",
3429
+ weekly: "Semanal",
3430
+ monthly: "Mensual",
3431
+ depositLimit: "Límite de depósito",
3432
+ timeLimit: "Límite de tiempo",
3433
+ wageringLimit: "Límite de apuesta",
3434
+ lossLimit: "Límite de pérdida"
3435
+ },
3436
+ tr: {
3437
+ back: "Oyun Sınırlarına Geri Dön",
3438
+ limit: "Sınır",
3439
+ amount: "Miktar",
3440
+ noLimit: "Limit yok",
3441
+ changeLimitsText: "{limit}'leri değiştirmek istediğinizden emin misiniz?",
3442
+ success: "Başarı lorem Ipsum, basım ve dizgi endüstrisinin sahte metnidir.",
3443
+ remove: "Bu sınırın kaldırılmasını talep ettiniz. Bu şu tarihte uygulanacaktır:",
3444
+ invalidInputMessageLimit: "Tutarın 1 ile 99.999.999 arasında olması gerekir.",
3445
+ invalidInputMessageTime: "Süre miktarının {minTime} değerinden büyük ve {maxTime} dakikanın altında olması gerekir.",
3446
+ expirationDate: "Son kullanma tarihi:",
3447
+ save: "Kaydetmek",
3448
+ changedLimitTextBefore: "Limitiniz değiştirildi veya artırıldı:",
3449
+ changedLimitTextAfter: "Yeni limitinizin geçerlilik kazanması için son kullanma tarihini beklemeniz gerekecektir.",
3450
+ daily: "Günlük",
3451
+ weekly: "Haftalık",
3452
+ monthly: "Aylık",
3453
+ depositLimit: "Para Yatırma Limiti",
3454
+ timeLimit: "Zaman sınırı",
3455
+ wageringLimit: "Bahis Limiti",
3456
+ lossLimit: "Kayıp Limiti"
3457
+ },
3458
+ "en-us": {
3459
+ back: "Back to Gaming Limits",
3460
+ limit: "Limit",
3461
+ amount: "Amount",
3462
+ noLimit: "No limit",
3463
+ changeLimitsText: "Are you sure you want to change the {limit}s?",
3464
+ success: "Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",
3465
+ remove: "You have requested to remove this limit. This will be applied on",
3466
+ invalidInputMessageLimit: "The amount needs to be between 1 and 99,999,999.",
3467
+ invalidInputMessageTime: "The time amount needs to be greater than {minTime} and below {maxTime} minutes.",
3468
+ expirationDate: "Expiration Date:",
3469
+ save: "Save",
3470
+ changedLimitTextBefore: "Your limit has been changed or increased:",
3471
+ changedLimitTextAfter: "You will have to wait for the expiration date for your new limit to take effect.",
3472
+ daily: "Daily",
3473
+ weekly: "Weekly",
3474
+ monthly: "Monthly",
3475
+ depositLimit: "Deposit Limit",
3476
+ timeLimit: "Time Limit",
3477
+ wageringLimit: "Wagering Limit",
3478
+ lossLimit: "Loss Limit"
3479
+ }
3480
+ };
3481
+ if (typeof window != "undefined") {
3482
+ let n = function(r) {
3483
+ return function(...t) {
3484
+ try {
3485
+ return r.apply(this, t);
3486
+ } catch (i) {
3487
+ if (i instanceof DOMException && i.message.includes("has already been used with this registry") || i.message.includes("Cannot define multiple custom elements with the same tag name"))
3488
+ return !1;
3489
+ throw i;
3490
+ }
3491
+ };
3492
+ };
3493
+ customElements.define = n(customElements.define), import("./PlayerAccountGamingLimitsConfirmationModal-57Q5qtf8.js").then(
3494
+ ({ default: r }) => {
3495
+ !customElements.get("player-account-gaming-limits-confirmation-modal") && customElements.define(
3496
+ "player-account-gaming-limits-confirmation-modal",
3497
+ r.element
3498
+ );
3499
+ }
3500
+ );
3501
+ }
3502
+ function wn(n) {
3503
+ rr(n, "svelte-5vl9hz", ".MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditBackButton{display:inline-block;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:26px;font-weight:300;cursor:pointer;margin-bottom:30px}.AccountEditBackButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emw--color-gray-300, #58586B);background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emw--color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emw--color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emw--color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emw--color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #FD2839));font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}");
3504
+ }
3505
+ function ft(n, r, t) {
3506
+ const i = n.slice();
3507
+ return i[56] = r[t], i[57] = r, i[58] = t, i;
3508
+ }
3509
+ function vt(n, r, t) {
3510
+ const i = n.slice();
3511
+ return i[59] = r[t], i;
3512
+ }
3513
+ function pt(n, r, t) {
3514
+ const i = n.slice();
3515
+ return i[56] = r[t], i[58] = t, i;
3516
+ }
3517
+ function yn(n) {
3518
+ let r, t, i, e, o, a, s, u, l, m, y = (
3519
+ /*$_*/
3520
+ n[18]("back") + ""
3521
+ ), w, p, P;
3522
+ return {
3523
+ c() {
3524
+ r = D("div"), t = he("svg"), i = he("defs"), e = he("style"), o = K(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = he("g"), s = he("g"), u = he("path"), l = Q(), m = D("h2"), w = K(y), b(u, "class", "aaa"), b(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), b(u, "transform", "translate(15 15) rotate(180)"), b(s, "transform", "translate(20 158)"), b(a, "transform", "translate(-20 -158)"), b(t, "xmlns", "http://www.w3.org/2000/svg"), b(t, "width", "15"), b(t, "height", "15"), b(t, "viewBox", "0 0 15 15"), b(m, "class", "MyAccountCategoryTitleMobile"), b(r, "class", "MenuReturnButton");
3525
+ },
3526
+ m(h, g) {
3527
+ q(h, r, g), f(r, t), f(t, i), f(i, e), f(e, o), f(t, a), f(a, s), f(s, u), f(r, l), f(r, m), f(m, w), p || (P = ke(
3528
+ r,
3529
+ "click",
3530
+ /*switchToLimitsGroupView*/
3531
+ n[22]
3532
+ ), p = !0);
3533
+ },
3534
+ p(h, g) {
3535
+ g[0] & /*$_*/
3536
+ 262144 && y !== (y = /*$_*/
3537
+ h[18]("back") + "") && oe(w, y);
3538
+ },
3539
+ d(h) {
3540
+ h && I(r), p = !1, P();
3541
+ }
3542
+ };
3543
+ }
3544
+ function ht(n) {
3545
+ let r, t, i = (
3546
+ /*$_*/
3547
+ n[18]("success") + ""
3548
+ ), e;
3549
+ return {
3550
+ c() {
3551
+ r = D("div"), t = D("p"), e = K(i), b(r, "class", "AccountEditLimitSuccessfulChangeContainer");
3552
+ },
3553
+ m(o, a) {
3554
+ q(o, r, a), f(r, t), f(t, e);
3555
+ },
3556
+ p(o, a) {
3557
+ a[0] & /*$_*/
3558
+ 262144 && i !== (i = /*$_*/
3559
+ o[18]("success") + "") && oe(e, i);
3560
+ },
3561
+ d(o) {
3562
+ o && I(r);
3563
+ }
3564
+ };
3565
+ }
3566
+ function gt(n) {
3567
+ let r, t = Ue(
3568
+ /*limitsUpdateData*/
3569
+ n[14]
3570
+ ), i = [];
3571
+ for (let e = 0; e < t.length; e += 1)
3572
+ i[e] = yt(pt(n, t, e));
3573
+ return {
3574
+ c() {
3575
+ r = D("div");
3576
+ for (let e = 0; e < i.length; e += 1)
3577
+ i[e].c();
3578
+ b(r, "class", "AccountEditLimitSuccessfulChangeContainer");
3579
+ },
3580
+ m(e, o) {
3581
+ q(e, r, o);
3582
+ for (let a = 0; a < i.length; a += 1)
3583
+ i[a] && i[a].m(r, null);
3584
+ },
3585
+ p(e, o) {
3586
+ if (o[0] & /*limitsUpdateData, $_, storedData*/
3587
+ 409600) {
3588
+ t = Ue(
3589
+ /*limitsUpdateData*/
3590
+ e[14]
3591
+ );
3592
+ let a;
3593
+ for (a = 0; a < t.length; a += 1) {
3594
+ const s = pt(e, t, a);
3595
+ i[a] ? i[a].p(s, o) : (i[a] = yt(s), i[a].c(), i[a].m(r, null));
3596
+ }
3597
+ for (; a < i.length; a += 1)
3598
+ i[a].d(1);
3599
+ i.length = t.length;
3600
+ }
3601
+ },
3602
+ d(e) {
3603
+ e && I(r), Je(i, e);
3604
+ }
3605
+ };
3606
+ }
3607
+ function wt(n) {
3608
+ let r, t = (
3609
+ /*$_*/
3610
+ n[18]("remove") + ""
3611
+ ), i, e, o = (
3612
+ /*selectData*/
3613
+ (n[56].expiryDate ? je(new Date(
3614
+ /*selectData*/
3615
+ n[56].expiryDate
3616
+ ), "d/M/yyyy - h:mm a") : "N/A") + ""
3617
+ ), a;
3618
+ return {
3619
+ c() {
3620
+ r = D("p"), i = K(t), e = Q(), a = K(o);
3621
+ },
3622
+ m(s, u) {
3623
+ q(s, r, u), f(r, i), f(r, e), f(r, a);
3624
+ },
3625
+ p(s, u) {
3626
+ u[0] & /*$_*/
3627
+ 262144 && t !== (t = /*$_*/
3628
+ s[18]("remove") + "") && oe(i, t), u[0] & /*limitsUpdateData*/
3629
+ 16384 && o !== (o = /*selectData*/
3630
+ (s[56].expiryDate ? je(new Date(
3631
+ /*selectData*/
3632
+ s[56].expiryDate
3633
+ ), "d/M/yyyy - h:mm a") : "N/A") + "") && oe(a, o);
3634
+ },
3635
+ d(s) {
3636
+ s && I(r);
3637
+ }
3638
+ };
3639
+ }
3640
+ function yt(n) {
3641
+ let r, t = (
3642
+ /*selectData*/
3643
+ n[56].period == /*storedData*/
3644
+ n[17][
3645
+ /*index*/
3646
+ n[58]
3647
+ ].period && wt(n)
3648
+ );
3649
+ return {
3650
+ c() {
3651
+ t && t.c(), r = Ke();
3652
+ },
3653
+ m(i, e) {
3654
+ t && t.m(i, e), q(i, r, e);
3655
+ },
3656
+ p(i, e) {
3657
+ /*selectData*/
3658
+ i[56].period == /*storedData*/
3659
+ i[17][
3660
+ /*index*/
3661
+ i[58]
3662
+ ].period ? t ? t.p(i, e) : (t = wt(i), t.c(), t.m(r.parentNode, r)) : t && (t.d(1), t = null);
3663
+ },
3664
+ d(i) {
3665
+ i && I(r), t && t.d(i);
3666
+ }
3667
+ };
3668
+ }
3669
+ function bt(n) {
3670
+ let r, t, i = Ue(
3671
+ /*limitsUpdateData*/
3672
+ n[14]
3673
+ ), e = [];
3674
+ for (let o = 0; o < i.length; o += 1)
3675
+ e[o] = Et(ft(n, i, o));
3676
+ return {
3677
+ c() {
3678
+ r = D("div"), t = D("div");
3679
+ for (let o = 0; o < e.length; o += 1)
3680
+ e[o].c();
3681
+ b(t, "class", "AccountEditLimitsContainer"), b(r, "class", "AccountEditContent");
3682
+ },
3683
+ m(o, a) {
3684
+ q(o, r, a), f(r, t);
3685
+ for (let s = 0; s < e.length; s += 1)
3686
+ e[s] && e[s].m(t, null);
3687
+ },
3688
+ p(o, a) {
3689
+ if (a[0] & /*$_, limitsUpdateData, currency, invalidIndexes, storedData, checkUserInputAmount, updatedLimitValues, limitname, minTimeValue, maxTimeValue, isMobile, limitPredefinedData*/
3690
+ 18836560) {
3691
+ i = Ue(
3692
+ /*limitsUpdateData*/
3693
+ o[14]
3694
+ );
3695
+ let s;
3696
+ for (s = 0; s < i.length; s += 1) {
3697
+ const u = ft(o, i, s);
3698
+ e[s] ? e[s].p(u, a) : (e[s] = Et(u), e[s].c(), e[s].m(t, null));
3699
+ }
3700
+ for (; s < e.length; s += 1)
3701
+ e[s].d(1);
3702
+ e.length = i.length;
3703
+ }
3704
+ },
3705
+ d(o) {
3706
+ o && I(r), Je(e, o);
3707
+ }
3708
+ };
3709
+ }
3710
+ function Tt(n) {
3711
+ let r, t, i = (
3712
+ /*$_*/
3713
+ n[18]("noLimit") + ""
3714
+ ), e, o, a, s, u, l, m, y, w = Ue(
3715
+ /*limitPredefinedData*/
3716
+ n[20].get(
3717
+ /*limitname*/
3718
+ n[6]
3719
+ )[
3720
+ /*index*/
3721
+ n[58]
3722
+ ].values
3723
+ ), p = [];
3724
+ for (let k = 0; k < w.length; k += 1)
3725
+ p[k] = kt(vt(n, w, k));
3726
+ function P() {
3727
+ n[30].call(
3728
+ r,
3729
+ /*index*/
3730
+ n[58]
3731
+ );
3732
+ }
3733
+ let h = (
3734
+ /*storedData*/
3735
+ n[17][
3736
+ /*index*/
3737
+ n[58]
3738
+ ].amount === "Custom" && Ct(n)
3739
+ ), g = (
3740
+ /*selectData*/
3741
+ n[56].isModified === !0 && Mt(n)
3742
+ );
3743
+ return {
3744
+ c() {
3745
+ r = D("select"), t = D("option"), e = K(i);
3746
+ for (let k = 0; k < p.length; k += 1)
3747
+ p[k].c();
3748
+ a = Q(), s = D("div"), h && h.c(), u = Q(), g && g.c(), l = Ke(), t.__value = "", Oe(t, t.__value), t.disabled = !0, t.selected = !0, t.hidden = !0, b(r, "class", "AccountEditField " + /*isMobile*/
3749
+ (n[19] ? "TimeoutSelectMobile" : "")), r.disabled = o = /*selectData*/
3750
+ n[56].isModified === !0, /*storedData*/
3751
+ n[17][
3752
+ /*index*/
3753
+ n[58]
3754
+ ].amount === void 0 && lr(P), b(s, "class", "AccountEditLimitsInputContainer");
3755
+ },
3756
+ m(k, L) {
3757
+ q(k, r, L), f(r, t), f(t, e);
3758
+ for (let _ = 0; _ < p.length; _ += 1)
3759
+ p[_] && p[_].m(r, null);
3760
+ at(
3761
+ r,
3762
+ /*storedData*/
3763
+ n[17][
3764
+ /*index*/
3765
+ n[58]
3766
+ ].amount,
3767
+ !0
3768
+ ), q(k, a, L), q(k, s, L), h && h.m(s, null), q(k, u, L), g && g.m(k, L), q(k, l, L), m || (y = [
3769
+ ke(r, "change", P),
3770
+ ke(r, "change", function() {
3771
+ Ze(
3772
+ /*checkUserInputAmount*/
3773
+ n[24](
3774
+ /*storedData*/
3775
+ n[17][
3776
+ /*index*/
3777
+ n[58]
3778
+ ],
3779
+ /*index*/
3780
+ n[58],
3781
+ !1,
3782
+ /*updatedLimitValues*/
3783
+ n[16]
3784
+ )
3785
+ ) && n[24](
3786
+ /*storedData*/
3787
+ n[17][
3788
+ /*index*/
3789
+ n[58]
3790
+ ],
3791
+ /*index*/
3792
+ n[58],
3793
+ !1,
3794
+ /*updatedLimitValues*/
3795
+ n[16]
3796
+ ).apply(this, arguments);
3797
+ })
3798
+ ], m = !0);
3799
+ },
3800
+ p(k, L) {
3801
+ if (n = k, L[0] & /*$_*/
3802
+ 262144 && i !== (i = /*$_*/
3803
+ n[18]("noLimit") + "") && oe(e, i), L[0] & /*limitPredefinedData, limitname, currency*/
3804
+ 1048656) {
3805
+ w = Ue(
3806
+ /*limitPredefinedData*/
3807
+ n[20].get(
3808
+ /*limitname*/
3809
+ n[6]
3810
+ )[
3811
+ /*index*/
3812
+ n[58]
3813
+ ].values
3814
+ );
3815
+ let _;
3816
+ for (_ = 0; _ < w.length; _ += 1) {
3817
+ const G = vt(n, w, _);
3818
+ p[_] ? p[_].p(G, L) : (p[_] = kt(G), p[_].c(), p[_].m(r, null));
3819
+ }
3820
+ for (; _ < p.length; _ += 1)
3821
+ p[_].d(1);
3822
+ p.length = w.length;
3823
+ }
3824
+ L[0] & /*limitsUpdateData*/
3825
+ 16384 && o !== (o = /*selectData*/
3826
+ n[56].isModified === !0) && (r.disabled = o), L[0] & /*storedData, limitPredefinedData, limitname*/
3827
+ 1179712 && at(
3828
+ r,
3829
+ /*storedData*/
3830
+ n[17][
3831
+ /*index*/
3832
+ n[58]
3833
+ ].amount
3834
+ ), /*storedData*/
3835
+ n[17][
3836
+ /*index*/
3837
+ n[58]
3838
+ ].amount === "Custom" ? h ? h.p(n, L) : (h = Ct(n), h.c(), h.m(s, null)) : h && (h.d(1), h = null), /*selectData*/
3839
+ n[56].isModified === !0 ? g ? g.p(n, L) : (g = Mt(n), g.c(), g.m(l.parentNode, l)) : g && (g.d(1), g = null);
3840
+ },
3841
+ d(k) {
3842
+ k && (I(r), I(a), I(s), I(u), I(l)), Je(p, k), h && h.d(), g && g.d(k), m = !1, Qe(y);
3843
+ }
3844
+ };
3845
+ }
3846
+ function Lt(n) {
3847
+ let r = (
3848
+ /*limitname*/
3849
+ (n[6] !== "Time Limit" ? (
3850
+ /*currency*/
3851
+ n[4]
3852
+ ) : " minutes") + ""
3853
+ ), t;
3854
+ return {
3855
+ c() {
3856
+ t = K(r);
3857
+ },
3858
+ m(i, e) {
3859
+ q(i, t, e);
3860
+ },
3861
+ p(i, e) {
3862
+ e[0] & /*limitname, currency*/
3863
+ 80 && r !== (r = /*limitname*/
3864
+ (i[6] !== "Time Limit" ? (
3865
+ /*currency*/
3866
+ i[4]
3867
+ ) : " minutes") + "") && oe(t, r);
3868
+ },
3869
+ d(i) {
3870
+ i && I(t);
3871
+ }
3872
+ };
3873
+ }
3874
+ function kt(n) {
3875
+ let r, t = (
3876
+ /*predefinedData*/
3877
+ n[59] + ""
3878
+ ), i, e, o, a, s = (
3879
+ /*predefinedData*/
3880
+ n[59] !== "No limit" && /*predefinedData*/
3881
+ n[59] !== "Custom" && Lt(n)
3882
+ );
3883
+ return {
3884
+ c() {
3885
+ r = D("option"), i = K(t), e = Q(), s && s.c(), o = Q(), r.__value = a = /*predefinedData*/
3886
+ n[59], Oe(r, r.__value);
3887
+ },
3888
+ m(u, l) {
3889
+ q(u, r, l), f(r, i), f(r, e), s && s.m(r, null), f(r, o);
3890
+ },
3891
+ p(u, l) {
3892
+ l[0] & /*limitname*/
3893
+ 64 && t !== (t = /*predefinedData*/
3894
+ u[59] + "") && oe(i, t), /*predefinedData*/
3895
+ u[59] !== "No limit" && /*predefinedData*/
3896
+ u[59] !== "Custom" ? s ? s.p(u, l) : (s = Lt(u), s.c(), s.m(r, o)) : s && (s.d(1), s = null), l[0] & /*limitname*/
3897
+ 64 && a !== (a = /*predefinedData*/
3898
+ u[59]) && (r.__value = a, Oe(r, r.__value));
3899
+ },
3900
+ d(u) {
3901
+ u && I(r), s && s.d();
3902
+ }
3903
+ };
3904
+ }
3905
+ function Ct(n) {
3906
+ let r;
3907
+ function t(o, a) {
3908
+ return (
3909
+ /*limitname*/
3910
+ o[6] !== "Time Limit" ? Tn : bn
3911
+ );
3912
+ }
3913
+ let i = t(n), e = i(n);
3914
+ return {
3915
+ c() {
3916
+ e.c(), r = Ke();
3917
+ },
3918
+ m(o, a) {
3919
+ e.m(o, a), q(o, r, a);
3920
+ },
3921
+ p(o, a) {
3922
+ i === (i = t(o)) && e ? e.p(o, a) : (e.d(1), e = i(o), e && (e.c(), e.m(r.parentNode, r)));
3923
+ },
3924
+ d(o) {
3925
+ o && I(r), e.d(o);
3926
+ }
3927
+ };
3928
+ }
3929
+ function bn(n) {
3930
+ let r, t, i, e, o, a;
3931
+ function s() {
3932
+ n[32].call(
3933
+ r,
3934
+ /*index*/
3935
+ n[58]
3936
+ );
3937
+ }
3938
+ let u = (
3939
+ /*invalidIndexes*/
3940
+ n[13][
3941
+ /*index*/
3942
+ n[58]
3943
+ ] == 1 && _t(n)
3944
+ );
3945
+ return {
3946
+ c() {
3947
+ r = D("input"), i = Q(), e = D("p"), u && u.c(), b(r, "type", "number"), b(r, "class", "AccountEditField AccountEditFieldCustom"), r.disabled = t = /*selectData*/
3948
+ n[56].isModified === !0, b(e, "class", "AccountEditWarningText");
3949
+ },
3950
+ m(l, m) {
3951
+ q(l, r, m), Oe(
3952
+ r,
3953
+ /*storedData*/
3954
+ n[17][
3955
+ /*index*/
3956
+ n[58]
3957
+ ].value
3958
+ ), q(l, i, m), q(l, e, m), u && u.m(e, null), o || (a = [
3959
+ ke(r, "keyup", function() {
3960
+ Ze(
3961
+ /*checkUserInputAmount*/
3962
+ n[24](
3963
+ /*storedData*/
3964
+ n[17][
3965
+ /*index*/
3966
+ n[58]
3967
+ ],
3968
+ /*index*/
3969
+ n[58],
3970
+ !0,
3971
+ /*updatedLimitValues*/
3972
+ n[16]
3973
+ )
3974
+ ) && n[24](
3975
+ /*storedData*/
3976
+ n[17][
3977
+ /*index*/
3978
+ n[58]
3979
+ ],
3980
+ /*index*/
3981
+ n[58],
3982
+ !0,
3983
+ /*updatedLimitValues*/
3984
+ n[16]
3985
+ ).apply(this, arguments);
3986
+ }),
3987
+ ke(r, "input", s)
3988
+ ], o = !0);
3989
+ },
3990
+ p(l, m) {
3991
+ n = l, m[0] & /*limitsUpdateData*/
3992
+ 16384 && t !== (t = /*selectData*/
3993
+ n[56].isModified === !0) && (r.disabled = t), m[0] & /*storedData, limitPredefinedData, limitname*/
3994
+ 1179712 && He(r.value) !== /*storedData*/
3995
+ n[17][
3996
+ /*index*/
3997
+ n[58]
3998
+ ].value && Oe(
3999
+ r,
4000
+ /*storedData*/
4001
+ n[17][
4002
+ /*index*/
4003
+ n[58]
4004
+ ].value
4005
+ ), /*invalidIndexes*/
4006
+ n[13][
4007
+ /*index*/
4008
+ n[58]
4009
+ ] == 1 ? u ? u.p(n, m) : (u = _t(n), u.c(), u.m(e, null)) : u && (u.d(1), u = null);
4010
+ },
4011
+ d(l) {
4012
+ l && (I(r), I(i), I(e)), u && u.d(), o = !1, Qe(a);
4013
+ }
4014
+ };
4015
+ }
4016
+ function Tn(n) {
4017
+ let r, t, i, e, o, a;
4018
+ function s() {
4019
+ n[31].call(
4020
+ r,
4021
+ /*index*/
4022
+ n[58]
4023
+ );
4024
+ }
4025
+ let u = (
4026
+ /*invalidIndexes*/
4027
+ n[13][
4028
+ /*index*/
4029
+ n[58]
4030
+ ] == 1 && Dt(n)
4031
+ );
4032
+ return {
4033
+ c() {
4034
+ r = D("input"), i = Q(), e = D("p"), u && u.c(), b(r, "type", "number"), b(r, "class", "AccountEditField AccountEditFieldCustom"), r.disabled = t = /*selectData*/
4035
+ n[56].isModified === !0, b(e, "class", "AccountEditWarningText");
4036
+ },
4037
+ m(l, m) {
4038
+ q(l, r, m), Oe(
4039
+ r,
4040
+ /*storedData*/
4041
+ n[17][
4042
+ /*index*/
4043
+ n[58]
4044
+ ].value
4045
+ ), q(l, i, m), q(l, e, m), u && u.m(e, null), o || (a = [
4046
+ ke(r, "keyup", function() {
4047
+ Ze(
4048
+ /*checkUserInputAmount*/
4049
+ n[24](
4050
+ /*storedData*/
4051
+ n[17][
4052
+ /*index*/
4053
+ n[58]
4054
+ ],
4055
+ /*index*/
4056
+ n[58],
4057
+ !1,
4058
+ /*updatedLimitValues*/
4059
+ n[16]
4060
+ )
4061
+ ) && n[24](
4062
+ /*storedData*/
4063
+ n[17][
4064
+ /*index*/
4065
+ n[58]
4066
+ ],
4067
+ /*index*/
4068
+ n[58],
4069
+ !1,
4070
+ /*updatedLimitValues*/
4071
+ n[16]
4072
+ ).apply(this, arguments);
4073
+ }),
4074
+ ke(r, "input", s)
4075
+ ], o = !0);
4076
+ },
4077
+ p(l, m) {
4078
+ n = l, m[0] & /*limitsUpdateData*/
4079
+ 16384 && t !== (t = /*selectData*/
4080
+ n[56].isModified === !0) && (r.disabled = t), m[0] & /*storedData, limitPredefinedData, limitname*/
4081
+ 1179712 && He(r.value) !== /*storedData*/
4082
+ n[17][
4083
+ /*index*/
4084
+ n[58]
4085
+ ].value && Oe(
4086
+ r,
4087
+ /*storedData*/
4088
+ n[17][
4089
+ /*index*/
4090
+ n[58]
4091
+ ].value
4092
+ ), /*invalidIndexes*/
4093
+ n[13][
4094
+ /*index*/
4095
+ n[58]
4096
+ ] == 1 ? u ? u.p(n, m) : (u = Dt(n), u.c(), u.m(e, null)) : u && (u.d(1), u = null);
4097
+ },
4098
+ d(l) {
4099
+ l && (I(r), I(i), I(e)), u && u.d(), o = !1, Qe(a);
4100
+ }
4101
+ };
4102
+ }
4103
+ function _t(n) {
4104
+ let r, t = (
4105
+ /*$_*/
4106
+ n[18]("invalidInputMessageTime", {
4107
+ values: {
4108
+ minTime: (
4109
+ /*minTimeValue*/
4110
+ n[10]
4111
+ ),
4112
+ maxTime: (
4113
+ /*maxTimeValue*/
4114
+ n[11]
4115
+ )
4116
+ }
4117
+ }) + ""
4118
+ ), i;
4119
+ return {
4120
+ c() {
4121
+ r = D("p"), i = K(t), b(r, "class", "InvalidInput");
4122
+ },
4123
+ m(e, o) {
4124
+ q(e, r, o), f(r, i);
4125
+ },
4126
+ p(e, o) {
4127
+ o[0] & /*$_, minTimeValue, maxTimeValue*/
4128
+ 265216 && t !== (t = /*$_*/
4129
+ e[18]("invalidInputMessageTime", {
4130
+ values: {
4131
+ minTime: (
4132
+ /*minTimeValue*/
4133
+ e[10]
4134
+ ),
4135
+ maxTime: (
4136
+ /*maxTimeValue*/
4137
+ e[11]
4138
+ )
4139
+ }
4140
+ }) + "") && oe(i, t);
4141
+ },
4142
+ d(e) {
4143
+ e && I(r);
4144
+ }
4145
+ };
4146
+ }
4147
+ function Dt(n) {
4148
+ let r, t = (
4149
+ /*$_*/
4150
+ n[18]("invalidInputMessageLimit") + ""
4151
+ ), i;
4152
+ return {
4153
+ c() {
4154
+ r = D("p"), i = K(t), b(r, "class", "InvalidInput");
4155
+ },
4156
+ m(e, o) {
4157
+ q(e, r, o), f(r, i);
4158
+ },
4159
+ p(e, o) {
4160
+ o[0] & /*$_*/
4161
+ 262144 && t !== (t = /*$_*/
4162
+ e[18]("invalidInputMessageLimit") + "") && oe(i, t);
4163
+ },
4164
+ d(e) {
4165
+ e && I(r);
4166
+ }
4167
+ };
4168
+ }
4169
+ function Mt(n) {
4170
+ let r, t = (
4171
+ /*$_*/
4172
+ n[18]("expirationDate") + ""
4173
+ ), i, e, o, a = (
4174
+ /*selectData*/
4175
+ (n[56].expiryDate ? je(new Date(
4176
+ /*selectData*/
4177
+ n[56].expiryDate
4178
+ ), "d/M/yyyy - h:mm a") : "N/A") + ""
4179
+ ), s, u, l, m, y, w, p = (
4180
+ /*$_*/
4181
+ n[18]("changedLimitTextBefore") + ""
4182
+ ), P, h, g = (
4183
+ /*selectData*/
4184
+ (n[56].updateAmount > 0 ? (
4185
+ /*selectData*/
4186
+ n[56].updateAmount
4187
+ ) : 0) + ""
4188
+ ), k, L, _ = (
4189
+ /*selectData*/
4190
+ (n[56].minutes !== void 0 ? " minutes" : (
4191
+ /*currency*/
4192
+ n[4]
4193
+ )) + ""
4194
+ ), G, z, B = (
4195
+ /*$_*/
4196
+ n[18]("changedLimitTextAfter") + ""
4197
+ ), ce;
4198
+ return {
4199
+ c() {
4200
+ r = D("p"), i = K(t), e = Q(), o = D("span"), s = K(a), u = Q(), l = D("div"), m = D("p"), y = D("span"), y.textContent = "i", w = D("span"), P = K(p), h = Q(), k = K(g), L = Q(), G = K(_), z = K(". "), ce = K(B), b(r, "class", "AccountEditLimitsExpiryDate"), b(y, "class", "AccountEditLimitChangePeriodIcon"), b(l, "class", "AccountEditLimitsPeriodChangeContainer");
4201
+ },
4202
+ m(N, $) {
4203
+ q(N, r, $), f(r, i), f(r, e), f(r, o), f(o, s), q(N, u, $), q(N, l, $), f(l, m), f(m, y), f(m, w), f(w, P), f(w, h), f(w, k), f(w, L), f(w, G), f(w, z), f(w, ce);
4204
+ },
4205
+ p(N, $) {
4206
+ $[0] & /*$_*/
4207
+ 262144 && t !== (t = /*$_*/
4208
+ N[18]("expirationDate") + "") && oe(i, t), $[0] & /*limitsUpdateData*/
4209
+ 16384 && a !== (a = /*selectData*/
4210
+ (N[56].expiryDate ? je(new Date(
4211
+ /*selectData*/
4212
+ N[56].expiryDate
4213
+ ), "d/M/yyyy - h:mm a") : "N/A") + "") && oe(s, a), $[0] & /*$_*/
4214
+ 262144 && p !== (p = /*$_*/
4215
+ N[18]("changedLimitTextBefore") + "") && oe(P, p), $[0] & /*limitsUpdateData*/
4216
+ 16384 && g !== (g = /*selectData*/
4217
+ (N[56].updateAmount > 0 ? (
4218
+ /*selectData*/
4219
+ N[56].updateAmount
4220
+ ) : 0) + "") && oe(k, g), $[0] & /*limitsUpdateData, currency*/
4221
+ 16400 && _ !== (_ = /*selectData*/
4222
+ (N[56].minutes !== void 0 ? " minutes" : (
4223
+ /*currency*/
4224
+ N[4]
4225
+ )) + "") && oe(G, _), $[0] & /*$_*/
4226
+ 262144 && B !== (B = /*$_*/
4227
+ N[18]("changedLimitTextAfter") + "") && oe(ce, B);
4228
+ },
4229
+ d(N) {
4230
+ N && (I(r), I(u), I(l));
4231
+ }
4232
+ };
4233
+ }
4234
+ function Et(n) {
4235
+ let r, t, i = (
4236
+ /*$_*/
4237
+ n[18]("" + /*selectData*/
4238
+ n[56].period.charAt(0).toLowerCase() + /*selectData*/
4239
+ n[56].period.substring(1)) + ""
4240
+ ), e, o, a, s = (
4241
+ /*selectData*/
4242
+ n[56].period == /*storedData*/
4243
+ n[17][
4244
+ /*index*/
4245
+ n[58]
4246
+ ].period && Tt(n)
4247
+ );
4248
+ return {
4249
+ c() {
4250
+ r = D("div"), t = D("p"), e = K(i), o = Q(), s && s.c(), a = Q(), b(t, "class", "AccountEditLimitsTitle"), b(r, "class", "AccountEditLimitsBox");
4251
+ },
4252
+ m(u, l) {
4253
+ q(u, r, l), f(r, t), f(t, e), f(r, o), s && s.m(r, null), f(r, a);
4254
+ },
4255
+ p(u, l) {
4256
+ l[0] & /*$_, limitsUpdateData*/
4257
+ 278528 && i !== (i = /*$_*/
4258
+ u[18]("" + /*selectData*/
4259
+ u[56].period.charAt(0).toLowerCase() + /*selectData*/
4260
+ u[56].period.substring(1)) + "") && oe(e, i), /*selectData*/
4261
+ u[56].period == /*storedData*/
4262
+ u[17][
4263
+ /*index*/
4264
+ u[58]
4265
+ ].period ? s ? s.p(u, l) : (s = Tt(u), s.c(), s.m(r, a)) : s && (s.d(1), s = null);
4266
+ },
4267
+ d(u) {
4268
+ u && I(r), s && s.d();
4269
+ }
4270
+ };
4271
+ }
4272
+ function Ln(n) {
4273
+ let r, t, i, e, o, a, s, u, l, m, y, w, p = (
4274
+ /*$_*/
4275
+ n[18]("back") + ""
4276
+ ), P, h, g, k, L = (
4277
+ /*limitsdata*/
4278
+ (n[1] ? (
4279
+ /*limitNameTitle*/
4280
+ n[9]
4281
+ ) : "") + ""
4282
+ ), _, G, z, B, ce, N, $, ue, H, X, le, S, ge = (
4283
+ /*$_*/
4284
+ n[18]("save") + ""
4285
+ ), Ce, J, me, _e, ve, de, ye, pe, F = (
4286
+ /*isMobile*/
4287
+ n[19] && yn(n)
4288
+ ), C = (
4289
+ /*showsuccessnotification*/
4290
+ n[2] && ht(n)
4291
+ ), W = (
4292
+ /*showdeletenotification*/
4293
+ n[3] && gt(n)
4294
+ ), ee = (
4295
+ /*showLimits*/
4296
+ n[8] && bt(n)
4297
+ );
4298
+ return {
4299
+ c() {
4300
+ r = D("div"), F && F.c(), t = Q(), i = D("div"), e = he("svg"), o = he("defs"), a = he("style"), s = K(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), u = he("g"), l = he("g"), m = he("path"), y = Q(), w = D("h2"), P = K(p), h = Q(), g = D("div"), k = D("h6"), _ = K(L), G = Q(), z = D("div"), B = D("span"), B.textContent = "i", ce = Q(), N = D("player-account-gaming-limits-popup"), $ = Q(), C && C.c(), ue = Q(), W && W.c(), H = Q(), ee && ee.c(), X = Q(), le = D("div"), S = D("button"), Ce = K(ge), _e = Q(), ve = D("player-account-modal"), de = D("player-account-gaming-limits-confirmation-modal"), b(m, "class", "aaa"), b(m, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), b(m, "transform", "translate(15 15) rotate(180)"), b(l, "transform", "translate(20 158)"), b(u, "transform", "translate(-20 -158)"), b(e, "xmlns", "http://www.w3.org/2000/svg"), b(e, "width", "20"), b(e, "height", "20"), b(e, "viewBox", "0 0 15 15"), b(w, "class", "MyAccountCategoryTitle " + /*isMobile*/
4301
+ (n[19] ? "MyAccountCategoryTitleNone" : "")), b(i, "class", "MenuReturnButton " + /*isMobile*/
4302
+ (n[19] ? "MyAccountCategoryTitleNone" : "")), b(B, "class", "AccountEditLimitsIcon"), De(
4303
+ N,
4304
+ "showpopup",
4305
+ /*showPopup*/
4306
+ n[7]
4307
+ ), De(
4308
+ N,
4309
+ "lang",
4310
+ /*lang*/
4311
+ n[0]
4312
+ ), b(z, "class", "AccountEditLimitsIconWrapper"), b(g, "class", "AccountEditLimitsHeader"), b(S, "class", J = "AccountEditLimitsSaveButton " + /*hasDifferences*/
4313
+ (n[15] ? "" : "AccountEditLimitsButtonDisabled")), S.disabled = me = !/*hasDifferences*/
4314
+ n[15], b(le, "class", "AccountEditLimitsControlArea"), b(r, "class", "AccountEditLimitsWrapper " + /*isMobile*/
4315
+ (n[19] ? "AccountEditLimitsMobileWrapper" : "")), De(
4316
+ de,
4317
+ "modaltext",
4318
+ /*changeLimitsText*/
4319
+ n[12]
4320
+ ), De(de, "modalsource", "groupEdit"), De(
4321
+ de,
4322
+ "lang",
4323
+ /*lang*/
4324
+ n[0]
4325
+ );
4326
+ },
4327
+ m(x, R) {
4328
+ q(x, r, R), F && F.m(r, null), f(r, t), f(r, i), f(i, e), f(e, o), f(o, a), f(a, s), f(e, u), f(u, l), f(l, m), f(i, y), f(i, w), f(w, P), f(r, h), f(r, g), f(g, k), f(k, _), f(g, G), f(g, z), f(z, B), f(z, ce), f(z, N), f(r, $), C && C.m(r, null), f(r, ue), W && W.m(r, null), f(r, H), ee && ee.m(r, null), f(r, X), f(r, le), f(le, S), f(S, Ce), n[34](r), q(x, _e, R), q(x, ve, R), f(ve, de), ye || (pe = [
4329
+ ke(
4330
+ i,
4331
+ "click",
4332
+ /*switchToLimitsGroupView*/
4333
+ n[22]
4334
+ ),
4335
+ ke(B, "click", ir(
4336
+ /*openInfoPopup*/
4337
+ n[21]
4338
+ )),
4339
+ ke(
4340
+ S,
4341
+ "click",
4342
+ /*click_handler*/
4343
+ n[33]
4344
+ )
4345
+ ], ye = !0);
4346
+ },
4347
+ p(x, R) {
4348
+ /*isMobile*/
4349
+ x[19] && F.p(x, R), R[0] & /*$_*/
4350
+ 262144 && p !== (p = /*$_*/
4351
+ x[18]("back") + "") && oe(P, p), R[0] & /*limitsdata, limitNameTitle*/
4352
+ 514 && L !== (L = /*limitsdata*/
4353
+ (x[1] ? (
4354
+ /*limitNameTitle*/
4355
+ x[9]
4356
+ ) : "") + "") && oe(_, L), R[0] & /*showPopup*/
4357
+ 128 && De(
4358
+ N,
4359
+ "showpopup",
4360
+ /*showPopup*/
4361
+ x[7]
4362
+ ), R[0] & /*lang*/
4363
+ 1 && De(
4364
+ N,
4365
+ "lang",
4366
+ /*lang*/
4367
+ x[0]
4368
+ ), /*showsuccessnotification*/
4369
+ x[2] ? C ? C.p(x, R) : (C = ht(x), C.c(), C.m(r, ue)) : C && (C.d(1), C = null), /*showdeletenotification*/
4370
+ x[3] ? W ? W.p(x, R) : (W = gt(x), W.c(), W.m(r, H)) : W && (W.d(1), W = null), /*showLimits*/
4371
+ x[8] ? ee ? ee.p(x, R) : (ee = bt(x), ee.c(), ee.m(r, X)) : ee && (ee.d(1), ee = null), R[0] & /*$_*/
4372
+ 262144 && ge !== (ge = /*$_*/
4373
+ x[18]("save") + "") && oe(Ce, ge), R[0] & /*hasDifferences*/
4374
+ 32768 && J !== (J = "AccountEditLimitsSaveButton " + /*hasDifferences*/
4375
+ (x[15] ? "" : "AccountEditLimitsButtonDisabled")) && b(S, "class", J), R[0] & /*hasDifferences*/
4376
+ 32768 && me !== (me = !/*hasDifferences*/
4377
+ x[15]) && (S.disabled = me), R[0] & /*changeLimitsText*/
4378
+ 4096 && De(
4379
+ de,
4380
+ "modaltext",
4381
+ /*changeLimitsText*/
4382
+ x[12]
4383
+ ), R[0] & /*lang*/
4384
+ 1 && De(
4385
+ de,
4386
+ "lang",
4387
+ /*lang*/
4388
+ x[0]
4389
+ );
4390
+ },
4391
+ i: nt,
4392
+ o: nt,
4393
+ d(x) {
4394
+ x && (I(r), I(_e), I(ve)), F && F.d(), C && C.d(), W && W.d(), ee && ee.d(), n[34](null), ye = !1, Qe(pe);
4395
+ }
4396
+ };
4397
+ }
4398
+ function kn(n, r, t) {
4399
+ let i;
4400
+ nr(n, vr, (c) => t(18, i = c));
4401
+ let { limitsdata: e = [] } = r, { showsuccessnotification: o = !1 } = r, { showdeletenotification: a = !1 } = r, { currency: s = "" } = r, { lang: u = "en" } = r, { separatelimits: l = "true" } = r, { clientstyling: m = "" } = r, { clientstylingurl: y = "" } = r, { mbsource: w } = r, { translationurl: p = "" } = r;
4402
+ const P = () => {
4403
+ fetch(p).then((T) => T.json()).then((T) => {
4404
+ Object.keys(T).forEach((ne) => {
4405
+ mt(ne, T[ne]);
4406
+ });
4407
+ }).catch((T) => {
4408
+ console.log(T);
4409
+ });
4410
+ };
4411
+ Object.keys(dt).forEach((c) => {
4412
+ mt(c, dt[c]);
4413
+ });
4414
+ let h, g, k = !1, L = !1, _ = "", G = !1, z = 0, B = 0, ce = "", N = window.navigator.userAgent, $ = ar(N) !== "PC", ue = new Array(3).fill(0), H = {}, X = [], le = [], S = !1, ge = [];
4415
+ const Ce = {
4416
+ amount: /^[0-9]{0,8}$/,
4417
+ time: /^[1-9]\d*$/
4418
+ };
4419
+ let J = [
4420
+ {
4421
+ period: "Daily",
4422
+ amount: "No limit",
4423
+ value: 0
4424
+ },
4425
+ {
4426
+ period: "Weekly",
4427
+ amount: "No limit",
4428
+ value: 0
4429
+ },
4430
+ {
4431
+ period: "Monthly",
4432
+ amount: "No limit",
4433
+ value: 0
4434
+ }
4435
+ ], me = [
4436
+ {
4437
+ period: "Daily",
4438
+ values: ["10000", "20000", "50000", "No limit", "Custom"]
4439
+ },
4440
+ {
4441
+ period: "Weekly",
4442
+ values: ["10000", "50000", "100000", "No limit", "Custom"]
4443
+ },
4444
+ {
4445
+ period: "Monthly",
4446
+ values: ["50000", "100000", "200000", "No limit", "Custom"]
4447
+ }
4448
+ ], _e = [
4449
+ {
4450
+ period: "Daily",
4451
+ values: ["5000", "7000", "10000", "No limit", "Custom"]
4452
+ },
4453
+ {
4454
+ period: "Weekly",
4455
+ values: ["25000", "50000", "100000", "No limit", "Custom"]
4456
+ },
4457
+ {
4458
+ period: "Monthly",
4459
+ values: ["125000", "175000", "200000", "No limit", "Custom"]
4460
+ }
4461
+ ], ve = [
4462
+ {
4463
+ period: "Daily",
4464
+ values: ["5000", "7000", "10000", "No limit", "Custom"]
4465
+ },
4466
+ {
4467
+ period: "Weekly",
4468
+ values: ["25000", "50000", "100000", "No limit", "Custom"]
4469
+ },
4470
+ {
4471
+ period: "Monthly",
4472
+ values: ["125000", "175000", "200000", "No limit", "Custom"]
4473
+ }
4474
+ ], de = [
4475
+ {
4476
+ period: "Daily",
4477
+ values: ["500", "1000", "1430", "No limit", "Custom"]
4478
+ },
4479
+ {
4480
+ period: "Weekly",
4481
+ values: ["5000", "7000", "10000", "No limit", "Custom"]
4482
+ },
4483
+ {
4484
+ period: "Monthly",
4485
+ values: ["20000", "30000", "43000", "No limit", "Custom"]
4486
+ }
4487
+ ];
4488
+ const ye = /* @__PURE__ */ new Map([
4489
+ ["Deposit Limit", "depositLimits"],
4490
+ ["Time Limit", "cumulativeSessionLimits"],
4491
+ ["Wagering Limit", "wageringLimits"],
4492
+ ["Loss Limit", "lossLimits"]
4493
+ ]), pe = /* @__PURE__ */ new Map([
4494
+ ["Deposit Limit", me],
4495
+ ["Time Limit", de],
4496
+ ["Wagering Limit", _e],
4497
+ ["Loss Limit", ve]
4498
+ ]), F = () => {
4499
+ t(7, k = !0);
4500
+ }, C = () => {
4501
+ window.postMessage({ type: "PlayerAccountBackToLimitsView" }, window.location.href);
4502
+ }, W = () => {
4503
+ window.postMessage({ type: "ShowLimitsConfirmationModal" }, window.location.href);
4504
+ }, ee = () => {
4505
+ if (G) {
4506
+ h === "Time Limit" ? J.forEach((T) => {
4507
+ if (l == "true") {
4508
+ if (T.value != 0) {
4509
+ let ne = { period: T.period, minutes: T.value };
4510
+ X.push(ne);
4511
+ }
4512
+ } else
4513
+ H.forEach((ne) => {
4514
+ ne.period === T.period && (ne.minutes = T.value);
4515
+ });
4516
+ }) : J.forEach((T) => {
4517
+ if (l == "true") {
4518
+ if (T.value != 0) {
4519
+ let ne = {
4520
+ period: T.period,
4521
+ amount: T.value,
4522
+ currency: s
4523
+ };
4524
+ X.push(ne);
4525
+ }
4526
+ } else
4527
+ H.forEach((ne) => {
4528
+ ne.period === T.period && (ne.amount = T.value, ne.currency = s);
4529
+ });
4530
+ });
4531
+ let c = {};
4532
+ l == "true" ? c = {
4533
+ [ye.get(h)]: [...X]
4534
+ } : c = {
4535
+ [ye.get(h)]: [...H]
4536
+ }, X.length = 0, window.postMessage(
4537
+ {
4538
+ type: "PlayerAccountGamingLimitsUpdate",
4539
+ payload: c,
4540
+ limitsCategory: ye.get(h)
4541
+ },
4542
+ window.location.href
4543
+ ), t(15, S = !1);
4544
+ }
4545
+ }, x = (c, T, ne, ae) => {
4546
+ switch (c.amount) {
4547
+ case "Custom":
4548
+ if (h == "Time Limit")
4549
+ if (t(10, z = 60), c.period === "Daily" ? t(11, B = 1440) : c.period == "Weekly" ? t(11, B = 10080) : t(11, B = 43200), c.value && Ce.time.test(c.value) && c.value > z && c.value <= B) {
4550
+ t(13, ue[T] = 0, ue);
4551
+ let fe = ae[T];
4552
+ c.period == fe.period && c.value == fe.amount ? (t(15, S = !1), R(c, ae)) : t(15, S = !0);
4553
+ } else
4554
+ t(13, ue[T] = 1, ue), t(15, S = !1);
4555
+ else
4556
+ c.value && Ce.amount.test(c.value) ? (t(13, ue[T] = 0, ue), c.period == ae[T].period && c.value == ae[T].amount ? (t(15, S = !!S), R(c, ae)) : t(15, S = !0), l != "true" && J.forEach((fe) => {
4557
+ fe.value == 0 && t(15, S = !1);
4558
+ })) : (t(13, ue[T] = 1, ue), t(15, S = !1));
4559
+ break;
4560
+ default:
4561
+ c.period == ae[T].period ? (R(c, ae), t(15, S = c.value != ae[T].amount)) : t(15, S = !0), J.forEach((fe) => {
4562
+ (fe.value == 0 && l != "true" || fe.amount == "Custom" && !Ce.amount.test(fe.value.toString())) && t(15, S = !1);
4563
+ });
4564
+ break;
4565
+ }
4566
+ }, R = (c, T) => {
4567
+ let ne = JSON.parse(JSON.stringify(T));
4568
+ J.forEach((ae) => {
4569
+ ne.forEach((fe) => {
4570
+ ae.period == c.period && (ae.amount !== "Custom" && ae.amount !== "No limit" ? ae.value = JSON.parse(ae.amount) : ae.amount === "No limit" && (ae.value = 0)), fe.period === ae.period && (fe.amount = ae.value);
4571
+ });
4572
+ });
4573
+ }, Ye = (c, T, ne, ae) => {
4574
+ let fe = c.values;
4575
+ !T.amount || T.amount === "No limit" ? ne.forEach((we) => {
4576
+ we.period === T.period && (we.amount = T.amount, we.value = 0);
4577
+ }) : fe.includes(JSON.stringify(T.amount)) ? ne.forEach((we) => {
4578
+ we.period === T.period && (we.amount = JSON.stringify(T.amount), we.value = T.amount);
4579
+ }) : ne.forEach((we) => {
4580
+ we.period === T.period && (we.amount = "Custom", we.value = T.amount);
4581
+ });
4582
+ }, Be = (c) => {
4583
+ le.forEach((T) => {
4584
+ c.period === T.period && (h === "Time Limit" && (t(10, z = 60), c.period === "Daily" ? t(11, B = 1440) : c.period == "Weekly" ? t(11, B = 10080) : t(11, B = 43200)), T.values.indexOf(c.amount) > -1 && (c.amount === "No limit" ? c.amount = 0 : c.amount = JSON.parse(c.amount)));
4585
+ });
4586
+ }, Qt = () => {
4587
+ ge.forEach((c) => {
4588
+ Be(c);
4589
+ }), H.forEach((c) => {
4590
+ le.forEach((T) => {
4591
+ c.period === T.period && Ye(T, c, J);
4592
+ });
4593
+ });
4594
+ }, rt = () => {
4595
+ let c = "";
4596
+ c = h === "Time Limit" ? "time limit" : h === "Deposit Limit" ? "deposit limit" : h === "Wagering Limit" ? "wagering limit" : "loss limit", t(12, ce = i("changeLimitsText", { values: { limit: c } }));
4597
+ }, Ge = () => {
4598
+ gn(u), rt(), t(16, ge = JSON.parse(JSON.stringify(e))), t(14, H = JSON.parse(JSON.stringify(e))), le = h === "Wagering Limit" ? _e : h === "Loss Limit" ? ve : h === "Deposit Limit" ? me : h === "Time Limit" ? de : [], Qt();
4599
+ }, it = (c) => {
4600
+ if (c.data)
4601
+ switch (c.data.type) {
4602
+ case "LanguageChanged":
4603
+ t(0, u = c.data.lang), rt();
4604
+ break;
4605
+ case "EditPlayerLimit":
4606
+ t(
4607
+ 6,
4608
+ h = c.data.name
4609
+ ), t(9, _ = i(h.charAt(0).toLowerCase() + h.substring(1).replace(/\s/g, ""))), Ge(), t(8, L = !0);
4610
+ break;
4611
+ case "ClosePlayerAccountGamingLimitsPopup":
4612
+ t(7, k = !1);
4613
+ break;
4614
+ case "GamingLimitsConfirmChanges":
4615
+ G = !0, ee();
4616
+ break;
4617
+ case "CancelGamingLimitsChanges":
4618
+ t(8, L = !1), setTimeout(
4619
+ () => {
4620
+ t(8, L = !0);
4621
+ },
4622
+ 10
4623
+ ), Ge(), t(15, S = !1), G = !1;
4624
+ break;
4625
+ }
4626
+ };
4627
+ or(() => (window.addEventListener("message", it, !1), () => {
4628
+ window.removeEventListener("message", it);
4629
+ }));
4630
+ function Gt(c) {
4631
+ J[c].amount = sr(this), t(17, J), t(20, pe), t(6, h);
4632
+ }
4633
+ function zt(c) {
4634
+ J[c].value = He(this.value), t(17, J), t(20, pe), t(6, h);
4635
+ }
4636
+ function Vt(c) {
4637
+ J[c].value = He(this.value), t(17, J), t(20, pe), t(6, h);
4638
+ }
4639
+ const Xt = () => W();
4640
+ function Jt(c) {
4641
+ ur[c ? "unshift" : "push"](() => {
4642
+ g = c, t(5, g);
4643
+ });
4644
+ }
4645
+ return n.$$set = (c) => {
4646
+ "limitsdata" in c && t(1, e = c.limitsdata), "showsuccessnotification" in c && t(2, o = c.showsuccessnotification), "showdeletenotification" in c && t(3, a = c.showdeletenotification), "currency" in c && t(4, s = c.currency), "lang" in c && t(0, u = c.lang), "separatelimits" in c && t(25, l = c.separatelimits), "clientstyling" in c && t(26, m = c.clientstyling), "clientstylingurl" in c && t(27, y = c.clientstylingurl), "mbsource" in c && t(28, w = c.mbsource), "translationurl" in c && t(29, p = c.translationurl);
4647
+ }, n.$$.update = () => {
4648
+ n.$$.dirty[0] & /*showsuccessnotification, showdeletenotification*/
4649
+ 12 && o && a && Ge(), n.$$.dirty[0] & /*limitsdata, lang*/
4650
+ 3, n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4651
+ 67108896 && m && g && cr(g, m), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4652
+ 134217760 && y && g && mr(g, y), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
4653
+ 268435488 && w && g && dr(g, `${w}.Style`), n.$$.dirty[0] & /*translationurl*/
4654
+ 536870912 && p && P();
4655
+ }, [
4656
+ u,
4657
+ e,
4658
+ o,
4659
+ a,
4660
+ s,
4661
+ g,
4662
+ h,
4663
+ k,
4664
+ L,
4665
+ _,
4666
+ z,
4667
+ B,
4668
+ ce,
4669
+ ue,
4670
+ H,
4671
+ S,
4672
+ ge,
4673
+ J,
4674
+ i,
4675
+ $,
4676
+ pe,
4677
+ F,
4678
+ C,
4679
+ W,
4680
+ x,
4681
+ l,
4682
+ m,
4683
+ y,
4684
+ w,
4685
+ p,
4686
+ Gt,
4687
+ zt,
4688
+ Vt,
4689
+ Xt,
4690
+ Jt
4691
+ ];
4692
+ }
4693
+ class Rt extends $t {
4694
+ constructor(r) {
4695
+ super(), er(
4696
+ this,
4697
+ r,
4698
+ kn,
4699
+ Ln,
4700
+ tr,
4701
+ {
4702
+ limitsdata: 1,
4703
+ showsuccessnotification: 2,
4704
+ showdeletenotification: 3,
4705
+ currency: 4,
4706
+ lang: 0,
4707
+ separatelimits: 25,
4708
+ clientstyling: 26,
4709
+ clientstylingurl: 27,
4710
+ mbsource: 28,
4711
+ translationurl: 29
4712
+ },
4713
+ wn,
4714
+ [-1, -1, -1]
4715
+ );
4716
+ }
4717
+ get limitsdata() {
4718
+ return this.$$.ctx[1];
4719
+ }
4720
+ set limitsdata(r) {
4721
+ this.$$set({ limitsdata: r }), be();
4722
+ }
4723
+ get showsuccessnotification() {
4724
+ return this.$$.ctx[2];
4725
+ }
4726
+ set showsuccessnotification(r) {
4727
+ this.$$set({ showsuccessnotification: r }), be();
4728
+ }
4729
+ get showdeletenotification() {
4730
+ return this.$$.ctx[3];
4731
+ }
4732
+ set showdeletenotification(r) {
4733
+ this.$$set({ showdeletenotification: r }), be();
4734
+ }
4735
+ get currency() {
4736
+ return this.$$.ctx[4];
4737
+ }
4738
+ set currency(r) {
4739
+ this.$$set({ currency: r }), be();
4740
+ }
4741
+ get lang() {
4742
+ return this.$$.ctx[0];
4743
+ }
4744
+ set lang(r) {
4745
+ this.$$set({ lang: r }), be();
4746
+ }
4747
+ get separatelimits() {
4748
+ return this.$$.ctx[25];
4749
+ }
4750
+ set separatelimits(r) {
4751
+ this.$$set({ separatelimits: r }), be();
4752
+ }
4753
+ get clientstyling() {
4754
+ return this.$$.ctx[26];
4755
+ }
4756
+ set clientstyling(r) {
4757
+ this.$$set({ clientstyling: r }), be();
4758
+ }
4759
+ get clientstylingurl() {
4760
+ return this.$$.ctx[27];
4761
+ }
4762
+ set clientstylingurl(r) {
4763
+ this.$$set({ clientstylingurl: r }), be();
4764
+ }
4765
+ get mbsource() {
4766
+ return this.$$.ctx[28];
4767
+ }
4768
+ set mbsource(r) {
4769
+ this.$$set({ mbsource: r }), be();
4770
+ }
4771
+ get translationurl() {
4772
+ return this.$$.ctx[29];
4773
+ }
4774
+ set translationurl(r) {
4775
+ this.$$set({ translationurl: r }), be();
4776
+ }
4777
+ }
4778
+ fr(Rt, { limitsdata: {}, showsuccessnotification: { type: "Boolean" }, showdeletenotification: { type: "Boolean" }, currency: {}, lang: {}, separatelimits: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
4779
+ const An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4780
+ __proto__: null,
4781
+ default: Rt
4782
+ }, Symbol.toStringTag, { value: "Module" }));
4783
+ export {
4784
+ An as P,
4785
+ _n as a,
4786
+ Pn as b,
4787
+ Dn as e,
4788
+ je as f,
4789
+ Mn as g,
4790
+ En as p,
4791
+ On as s
4792
+ };