@everymatrix/player-account-gaming-limits-popup-2 1.86.4 → 1.86.6
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.
- package/components/{PlayerAccountGamingLimitsPopup2-l4Z65x4q.js → PlayerAccountGamingLimitsPopup2-CwinXA-j.js} +737 -733
- package/components/PlayerAccountGamingLimitsPopup2-D_kAGu6b.cjs +10 -0
- package/components/{PlayerAccountGamingLimitsPopup2-Dv2BBTn-.js → PlayerAccountGamingLimitsPopup2-bF0YcIxH.js} +735 -731
- package/es2015/player-account-gaming-limits-popup-2.cjs +1 -1
- package/es2015/player-account-gaming-limits-popup-2.js +1 -1
- package/esnext/player-account-gaming-limits-popup-2.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGamingLimitsPopup2-mQizhkln.cjs +0 -23
|
@@ -6,10 +6,10 @@ function zt(e) {
|
|
|
6
6
|
function wt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function ue(e) {
|
|
10
10
|
e.forEach(zt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Et(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function Ft(e, t) {
|
|
@@ -36,7 +36,7 @@ function f(e, t) {
|
|
|
36
36
|
function Ei(e, t, i) {
|
|
37
37
|
const n = _i(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const r =
|
|
39
|
+
const r = b("style");
|
|
40
40
|
r.id = t, r.textContent = i, xi(n, r);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -63,7 +63,7 @@ function T(e, t, i) {
|
|
|
63
63
|
function x(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function b(e) {
|
|
67
67
|
return document.createElement(e);
|
|
68
68
|
}
|
|
69
69
|
function Y(e) {
|
|
@@ -72,7 +72,7 @@ function Y(e) {
|
|
|
72
72
|
function L(e) {
|
|
73
73
|
return document.createTextNode(e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function N() {
|
|
76
76
|
return L(" ");
|
|
77
77
|
}
|
|
78
78
|
function Z(e, t, i, n) {
|
|
@@ -87,17 +87,17 @@ function Xt(e) {
|
|
|
87
87
|
function Ti(e) {
|
|
88
88
|
return Array.from(e.childNodes);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function k(e, t) {
|
|
91
91
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
92
92
|
t);
|
|
93
93
|
}
|
|
94
94
|
function Bt(e, t) {
|
|
95
95
|
e.value = t ?? "";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function He(e, t, i, n) {
|
|
98
98
|
i == null ? e.style.removeProperty(t) : e.style.setProperty(t, i, "");
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Ge(e, t, i) {
|
|
101
101
|
e.classList.toggle(t, !!i);
|
|
102
102
|
}
|
|
103
103
|
function Pi(e) {
|
|
@@ -109,65 +109,65 @@ function Pi(e) {
|
|
|
109
109
|
}
|
|
110
110
|
), t;
|
|
111
111
|
}
|
|
112
|
-
let
|
|
113
|
-
function
|
|
114
|
-
|
|
112
|
+
let Ne;
|
|
113
|
+
function Ce(e) {
|
|
114
|
+
Ne = e;
|
|
115
115
|
}
|
|
116
116
|
function wi() {
|
|
117
|
-
if (!
|
|
117
|
+
if (!Ne)
|
|
118
118
|
throw new Error("Function called outside component initialization");
|
|
119
|
-
return
|
|
119
|
+
return Ne;
|
|
120
120
|
}
|
|
121
121
|
function Bi(e) {
|
|
122
122
|
wi().$$.on_mount.push(e);
|
|
123
123
|
}
|
|
124
|
-
const be = [],
|
|
125
|
-
let
|
|
124
|
+
const be = [], ye = [];
|
|
125
|
+
let ve = [];
|
|
126
126
|
const Lt = [], Li = /* @__PURE__ */ Promise.resolve();
|
|
127
|
-
let
|
|
128
|
-
function
|
|
129
|
-
|
|
127
|
+
let ut = !1;
|
|
128
|
+
function Si() {
|
|
129
|
+
ut || (ut = !0, Li.then(ee));
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
131
|
+
function ct(e) {
|
|
132
|
+
ve.push(e);
|
|
133
133
|
}
|
|
134
|
-
const
|
|
135
|
-
let
|
|
134
|
+
const it = /* @__PURE__ */ new Set();
|
|
135
|
+
let de = 0;
|
|
136
136
|
function ee() {
|
|
137
|
-
if (
|
|
137
|
+
if (de !== 0)
|
|
138
138
|
return;
|
|
139
|
-
const e =
|
|
139
|
+
const e = Ne;
|
|
140
140
|
do {
|
|
141
141
|
try {
|
|
142
|
-
for (;
|
|
143
|
-
const t = be[
|
|
144
|
-
|
|
142
|
+
for (; de < be.length; ) {
|
|
143
|
+
const t = be[de];
|
|
144
|
+
de++, Ce(t), Ai(t.$$);
|
|
145
145
|
}
|
|
146
146
|
} catch (t) {
|
|
147
|
-
throw be.length = 0,
|
|
147
|
+
throw be.length = 0, de = 0, t;
|
|
148
148
|
}
|
|
149
|
-
for (
|
|
150
|
-
|
|
151
|
-
for (let t = 0; t <
|
|
152
|
-
const i =
|
|
153
|
-
|
|
149
|
+
for (Ce(null), be.length = 0, de = 0; ye.length; )
|
|
150
|
+
ye.pop()();
|
|
151
|
+
for (let t = 0; t < ve.length; t += 1) {
|
|
152
|
+
const i = ve[t];
|
|
153
|
+
it.has(i) || (it.add(i), i());
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
ve.length = 0;
|
|
156
156
|
} while (be.length);
|
|
157
157
|
for (; Lt.length; )
|
|
158
158
|
Lt.pop()();
|
|
159
|
-
|
|
159
|
+
ut = !1, it.clear(), Ce(e);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Ai(e) {
|
|
162
162
|
if (e.fragment !== null) {
|
|
163
|
-
e.update(),
|
|
163
|
+
e.update(), ue(e.before_update);
|
|
164
164
|
const t = e.dirty;
|
|
165
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
165
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ct);
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
function Ii(e) {
|
|
169
169
|
const t = [], i = [];
|
|
170
|
-
|
|
170
|
+
ve.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : i.push(n)), i.forEach((n) => n()), ve = t;
|
|
171
171
|
}
|
|
172
172
|
const ki = /* @__PURE__ */ new Set();
|
|
173
173
|
function Hi(e, t) {
|
|
@@ -175,21 +175,21 @@ function Hi(e, t) {
|
|
|
175
175
|
}
|
|
176
176
|
function Ci(e, t, i) {
|
|
177
177
|
const { fragment: n, after_update: r } = e.$$;
|
|
178
|
-
n && n.m(t, i),
|
|
179
|
-
const o = e.$$.on_mount.map(zt).filter(
|
|
180
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
181
|
-
}), r.forEach(
|
|
178
|
+
n && n.m(t, i), ct(() => {
|
|
179
|
+
const o = e.$$.on_mount.map(zt).filter(Et);
|
|
180
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
|
|
181
|
+
}), r.forEach(ct);
|
|
182
182
|
}
|
|
183
183
|
function Ni(e, t) {
|
|
184
184
|
const i = e.$$;
|
|
185
|
-
i.fragment !== null && (Ii(i.after_update),
|
|
185
|
+
i.fragment !== null && (Ii(i.after_update), ue(i.on_destroy), i.fragment && i.fragment.d(t), i.on_destroy = i.fragment = null, i.ctx = []);
|
|
186
186
|
}
|
|
187
187
|
function Oi(e, t) {
|
|
188
|
-
e.$$.dirty[0] === -1 && (be.push(e),
|
|
188
|
+
e.$$.dirty[0] === -1 && (be.push(e), Si(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
189
189
|
}
|
|
190
190
|
function Mi(e, t, i, n, r, o, a = null, s = [-1]) {
|
|
191
|
-
const u =
|
|
192
|
-
|
|
191
|
+
const u = Ne;
|
|
192
|
+
Ce(e);
|
|
193
193
|
const l = e.$$ = {
|
|
194
194
|
fragment: null,
|
|
195
195
|
ctx: [],
|
|
@@ -213,18 +213,18 @@ function Mi(e, t, i, n, r, o, a = null, s = [-1]) {
|
|
|
213
213
|
};
|
|
214
214
|
a && a(l.root);
|
|
215
215
|
let c = !1;
|
|
216
|
-
if (l.ctx = i ? i(e, t.props || {}, (
|
|
217
|
-
const E = d.length ? d[0] :
|
|
218
|
-
return l.ctx && r(l.ctx[
|
|
219
|
-
}) : [], l.update(), c = !0,
|
|
216
|
+
if (l.ctx = i ? i(e, t.props || {}, (p, m, ...d) => {
|
|
217
|
+
const E = d.length ? d[0] : m;
|
|
218
|
+
return l.ctx && r(l.ctx[p], l.ctx[p] = E) && (!l.skip_bound && l.bound[p] && l.bound[p](E), c && Oi(e, p)), m;
|
|
219
|
+
}) : [], l.update(), c = !0, ue(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
220
220
|
if (t.hydrate) {
|
|
221
|
-
const
|
|
222
|
-
l.fragment && l.fragment.l(
|
|
221
|
+
const p = Ti(t.target);
|
|
222
|
+
l.fragment && l.fragment.l(p), p.forEach(x);
|
|
223
223
|
} else
|
|
224
224
|
l.fragment && l.fragment.c();
|
|
225
225
|
t.intro && Hi(e.$$.fragment), Ci(e, t.target, t.anchor), ee();
|
|
226
226
|
}
|
|
227
|
-
|
|
227
|
+
Ce(u);
|
|
228
228
|
}
|
|
229
229
|
let qt;
|
|
230
230
|
typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
@@ -269,7 +269,7 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
269
269
|
let o;
|
|
270
270
|
return {
|
|
271
271
|
c: function() {
|
|
272
|
-
o =
|
|
272
|
+
o = b("slot"), r !== "default" && h(o, "name", r);
|
|
273
273
|
},
|
|
274
274
|
/**
|
|
275
275
|
* @param {HTMLElement} target
|
|
@@ -291,7 +291,7 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
291
291
|
r in i && (t[r] = [e(r)]);
|
|
292
292
|
for (const r of this.attributes) {
|
|
293
293
|
const o = this.$$g_p(r.name);
|
|
294
|
-
o in this.$$d || (this.$$d[o] =
|
|
294
|
+
o in this.$$d || (this.$$d[o] = ze(o, r.value, this.$$p_d, "toProp"));
|
|
295
295
|
}
|
|
296
296
|
for (const r in this.$$p_d)
|
|
297
297
|
!(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
|
|
@@ -309,7 +309,7 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
309
309
|
this.$$r = !0;
|
|
310
310
|
for (const r in this.$$p_d)
|
|
311
311
|
if (this.$$d[r] = this.$$c.$$.ctx[this.$$c.$$.props[r]], this.$$p_d[r].reflect) {
|
|
312
|
-
const o =
|
|
312
|
+
const o = ze(
|
|
313
313
|
r,
|
|
314
314
|
this.$$d[r],
|
|
315
315
|
this.$$p_d,
|
|
@@ -331,7 +331,7 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
331
331
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
332
332
|
// and setting attributes through setAttribute etc, this is helpful
|
|
333
333
|
attributeChangedCallback(e, t, i) {
|
|
334
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
334
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ze(e, i, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
335
335
|
}
|
|
336
336
|
disconnectedCallback() {
|
|
337
337
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -344,7 +344,7 @@ typeof HTMLElement == "function" && (qt = class extends HTMLElement {
|
|
|
344
344
|
) || e;
|
|
345
345
|
}
|
|
346
346
|
});
|
|
347
|
-
function
|
|
347
|
+
function ze(e, t, i, n) {
|
|
348
348
|
const r = i[e]?.type;
|
|
349
349
|
if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !i[e])
|
|
350
350
|
return t;
|
|
@@ -390,7 +390,7 @@ function Di(e, t, i, n, r, o) {
|
|
|
390
390
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
391
391
|
},
|
|
392
392
|
set(u) {
|
|
393
|
-
u =
|
|
393
|
+
u = ze(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
|
|
394
394
|
}
|
|
395
395
|
});
|
|
396
396
|
}), n.forEach((s) => {
|
|
@@ -430,7 +430,7 @@ class Ri {
|
|
|
430
430
|
* @returns {() => void}
|
|
431
431
|
*/
|
|
432
432
|
$on(t, i) {
|
|
433
|
-
if (!
|
|
433
|
+
if (!Et(i))
|
|
434
434
|
return te;
|
|
435
435
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
436
436
|
return n.push(i), () => {
|
|
@@ -448,24 +448,24 @@ class Ri {
|
|
|
448
448
|
}
|
|
449
449
|
const Ui = "4";
|
|
450
450
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ui);
|
|
451
|
-
const
|
|
451
|
+
const ge = [];
|
|
452
452
|
function ji(e, t) {
|
|
453
453
|
return {
|
|
454
|
-
subscribe:
|
|
454
|
+
subscribe: Ze(e, t).subscribe
|
|
455
455
|
};
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Ze(e, t = te) {
|
|
458
458
|
let i;
|
|
459
459
|
const n = /* @__PURE__ */ new Set();
|
|
460
460
|
function r(s) {
|
|
461
461
|
if (Ft(e, s) && (e = s, i)) {
|
|
462
|
-
const u = !
|
|
462
|
+
const u = !ge.length;
|
|
463
463
|
for (const l of n)
|
|
464
|
-
l[1](),
|
|
464
|
+
l[1](), ge.push(l, e);
|
|
465
465
|
if (u) {
|
|
466
|
-
for (let l = 0; l <
|
|
467
|
-
|
|
468
|
-
|
|
466
|
+
for (let l = 0; l < ge.length; l += 2)
|
|
467
|
+
ge[l][0](ge[l + 1]);
|
|
468
|
+
ge.length = 0;
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
}
|
|
@@ -480,7 +480,7 @@ function qe(e, t = te) {
|
|
|
480
480
|
}
|
|
481
481
|
return { set: r, update: o, subscribe: a };
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Pe(e, t, i) {
|
|
484
484
|
const n = !Array.isArray(e), r = n ? [e] : e;
|
|
485
485
|
if (!r.every(Boolean))
|
|
486
486
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -488,26 +488,26 @@ function Te(e, t, i) {
|
|
|
488
488
|
return ji(i, (a, s) => {
|
|
489
489
|
let u = !1;
|
|
490
490
|
const l = [];
|
|
491
|
-
let c = 0,
|
|
492
|
-
const
|
|
491
|
+
let c = 0, p = te;
|
|
492
|
+
const m = () => {
|
|
493
493
|
if (c)
|
|
494
494
|
return;
|
|
495
|
-
|
|
495
|
+
p();
|
|
496
496
|
const E = t(n ? l[0] : l, a, s);
|
|
497
|
-
o ? a(E) :
|
|
497
|
+
o ? a(E) : p = Et(E) ? E : te;
|
|
498
498
|
}, d = r.map(
|
|
499
499
|
(E, _) => Vt(
|
|
500
500
|
E,
|
|
501
501
|
(y) => {
|
|
502
|
-
l[_] = y, c &= ~(1 << _), u &&
|
|
502
|
+
l[_] = y, c &= ~(1 << _), u && m();
|
|
503
503
|
},
|
|
504
504
|
() => {
|
|
505
505
|
c |= 1 << _;
|
|
506
506
|
}
|
|
507
507
|
)
|
|
508
508
|
);
|
|
509
|
-
return u = !0,
|
|
510
|
-
|
|
509
|
+
return u = !0, m(), function() {
|
|
510
|
+
ue(d), p(), u = !1;
|
|
511
511
|
};
|
|
512
512
|
});
|
|
513
513
|
}
|
|
@@ -531,26 +531,26 @@ function qi(e) {
|
|
|
531
531
|
function Wi(e) {
|
|
532
532
|
return Array.isArray(e) ? [] : {};
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
534
|
+
function Oe(e, t) {
|
|
535
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ee(Wi(e), e, t) : e;
|
|
536
536
|
}
|
|
537
537
|
function Zi(e, t, i) {
|
|
538
538
|
return e.concat(t).map(function(n) {
|
|
539
|
-
return
|
|
539
|
+
return Oe(n, i);
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
542
|
function Yi(e, t) {
|
|
543
543
|
if (!t.customMerge)
|
|
544
|
-
return
|
|
544
|
+
return Ee;
|
|
545
545
|
var i = t.customMerge(e);
|
|
546
|
-
return typeof i == "function" ? i :
|
|
546
|
+
return typeof i == "function" ? i : Ee;
|
|
547
547
|
}
|
|
548
548
|
function Ji(e) {
|
|
549
549
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
550
550
|
return Object.propertyIsEnumerable.call(e, t);
|
|
551
551
|
}) : [];
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function St(e) {
|
|
554
554
|
return Object.keys(e).concat(Ji(e));
|
|
555
555
|
}
|
|
556
556
|
function Wt(e, t) {
|
|
@@ -565,66 +565,52 @@ function Qi(e, t) {
|
|
|
565
565
|
}
|
|
566
566
|
function Ki(e, t, i) {
|
|
567
567
|
var n = {};
|
|
568
|
-
return i.isMergeableObject(e) &&
|
|
569
|
-
n[r] =
|
|
570
|
-
}),
|
|
571
|
-
Qi(e, r) || (Wt(e, r) && i.isMergeableObject(t[r]) ? n[r] = Yi(r, i)(e[r], t[r], i) : n[r] =
|
|
568
|
+
return i.isMergeableObject(e) && St(e).forEach(function(r) {
|
|
569
|
+
n[r] = Oe(e[r], i);
|
|
570
|
+
}), St(t).forEach(function(r) {
|
|
571
|
+
Qi(e, r) || (Wt(e, r) && i.isMergeableObject(t[r]) ? n[r] = Yi(r, i)(e[r], t[r], i) : n[r] = Oe(t[r], i));
|
|
572
572
|
}), n;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
575
|
-
i = i || {}, i.arrayMerge = i.arrayMerge || Zi, i.isMergeableObject = i.isMergeableObject || $i, i.cloneUnlessOtherwiseSpecified =
|
|
574
|
+
function Ee(e, t, i) {
|
|
575
|
+
i = i || {}, i.arrayMerge = i.arrayMerge || Zi, i.isMergeableObject = i.isMergeableObject || $i, i.cloneUnlessOtherwiseSpecified = Oe;
|
|
576
576
|
var n = Array.isArray(t), r = Array.isArray(e), o = n === r;
|
|
577
|
-
return o ? n ? i.arrayMerge(e, t, i) : Ki(e, t, i) :
|
|
577
|
+
return o ? n ? i.arrayMerge(e, t, i) : Ki(e, t, i) : Oe(t, i);
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
Ee.all = function(t, i) {
|
|
580
580
|
if (!Array.isArray(t))
|
|
581
581
|
throw new Error("first argument should be an array");
|
|
582
582
|
return t.reduce(function(n, r) {
|
|
583
|
-
return
|
|
583
|
+
return Ee(n, r, i);
|
|
584
584
|
}, {});
|
|
585
585
|
};
|
|
586
|
-
var en =
|
|
586
|
+
var en = Ee, tn = en;
|
|
587
587
|
const nn = /* @__PURE__ */ Gi(tn);
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
592
|
-
purpose with or without fee is hereby granted.
|
|
593
|
-
|
|
594
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
595
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
596
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
597
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
598
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
599
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
600
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
601
|
-
***************************************************************************** */
|
|
602
|
-
var ut = function(e, t) {
|
|
603
|
-
return ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, n) {
|
|
588
|
+
var ht = function(e, t) {
|
|
589
|
+
return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, n) {
|
|
604
590
|
i.__proto__ = n;
|
|
605
591
|
} || function(i, n) {
|
|
606
592
|
for (var r in n)
|
|
607
593
|
Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
|
|
608
|
-
},
|
|
594
|
+
}, ht(e, t);
|
|
609
595
|
};
|
|
610
|
-
function
|
|
596
|
+
function Ye(e, t) {
|
|
611
597
|
if (typeof t != "function" && t !== null)
|
|
612
598
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
613
|
-
|
|
599
|
+
ht(e, t);
|
|
614
600
|
function i() {
|
|
615
601
|
this.constructor = e;
|
|
616
602
|
}
|
|
617
603
|
e.prototype = t === null ? Object.create(t) : (i.prototype = t.prototype, new i());
|
|
618
604
|
}
|
|
619
|
-
var
|
|
620
|
-
return
|
|
605
|
+
var oe = function() {
|
|
606
|
+
return oe = Object.assign || function(t) {
|
|
621
607
|
for (var i, n = 1, r = arguments.length; n < r; n++) {
|
|
622
608
|
i = arguments[n];
|
|
623
609
|
for (var o in i)
|
|
624
610
|
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
625
611
|
}
|
|
626
612
|
return t;
|
|
627
|
-
},
|
|
613
|
+
}, oe.apply(this, arguments);
|
|
628
614
|
};
|
|
629
615
|
function rn(e, t) {
|
|
630
616
|
var i = {};
|
|
@@ -635,14 +621,14 @@ function rn(e, t) {
|
|
|
635
621
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (i[n[r]] = e[n[r]]);
|
|
636
622
|
return i;
|
|
637
623
|
}
|
|
638
|
-
function
|
|
639
|
-
if (arguments.length === 2)
|
|
624
|
+
function nt(e, t, i) {
|
|
625
|
+
if (i || arguments.length === 2)
|
|
640
626
|
for (var n = 0, r = t.length, o; n < r; n++)
|
|
641
627
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
642
|
-
return e.concat(o || t);
|
|
628
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
643
629
|
}
|
|
644
|
-
function
|
|
645
|
-
var i = t && t.cache ? t.cache :
|
|
630
|
+
function rt(e, t) {
|
|
631
|
+
var i = t && t.cache ? t.cache : hn, n = t && t.serializer ? t.serializer : un, r = t && t.strategy ? t.strategy : an;
|
|
646
632
|
return r(e, {
|
|
647
633
|
cache: i,
|
|
648
634
|
serializer: n
|
|
@@ -651,93 +637,101 @@ function it(e, t) {
|
|
|
651
637
|
function on(e) {
|
|
652
638
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
653
639
|
}
|
|
654
|
-
function
|
|
640
|
+
function sn(e, t, i, n) {
|
|
655
641
|
var r = on(n) ? n : i(n), o = t.get(r);
|
|
656
642
|
return typeof o > "u" && (o = e.call(this, n), t.set(r, o)), o;
|
|
657
643
|
}
|
|
658
|
-
function
|
|
644
|
+
function Zt(e, t, i) {
|
|
659
645
|
var n = Array.prototype.slice.call(arguments, 3), r = i(n), o = t.get(r);
|
|
660
646
|
return typeof o > "u" && (o = e.apply(this, n), t.set(r, o)), o;
|
|
661
647
|
}
|
|
662
|
-
function
|
|
648
|
+
function Yt(e, t, i, n, r) {
|
|
663
649
|
return i.bind(t, e, n, r);
|
|
664
650
|
}
|
|
665
|
-
function sn(e, t) {
|
|
666
|
-
var i = e.length === 1 ? Zt : Yt;
|
|
667
|
-
return vt(e, this, i, t.cache.create(), t.serializer);
|
|
668
|
-
}
|
|
669
651
|
function an(e, t) {
|
|
670
|
-
|
|
652
|
+
var i = e.length === 1 ? sn : Zt;
|
|
653
|
+
return Yt(e, this, i, t.cache.create(), t.serializer);
|
|
671
654
|
}
|
|
672
655
|
function ln(e, t) {
|
|
673
|
-
return
|
|
656
|
+
return Yt(e, this, Zt, t.cache.create(), t.serializer);
|
|
674
657
|
}
|
|
675
658
|
var un = function() {
|
|
676
659
|
return JSON.stringify(arguments);
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
660
|
+
}, cn = (
|
|
661
|
+
/** @class */
|
|
662
|
+
function() {
|
|
663
|
+
function e() {
|
|
664
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
665
|
+
}
|
|
666
|
+
return e.prototype.get = function(t) {
|
|
667
|
+
return this.cache[t];
|
|
668
|
+
}, e.prototype.set = function(t, i) {
|
|
669
|
+
this.cache[t] = i;
|
|
670
|
+
}, e;
|
|
671
|
+
}()
|
|
672
|
+
), hn = {
|
|
688
673
|
create: function() {
|
|
689
|
-
return new
|
|
674
|
+
return new cn();
|
|
690
675
|
}
|
|
691
|
-
},
|
|
692
|
-
variadic:
|
|
693
|
-
|
|
694
|
-
|
|
676
|
+
}, ot = {
|
|
677
|
+
variadic: ln
|
|
678
|
+
}, Xe = function() {
|
|
679
|
+
return Xe = Object.assign || function(t) {
|
|
680
|
+
for (var i, n = 1, r = arguments.length; n < r; n++) {
|
|
681
|
+
i = arguments[n];
|
|
682
|
+
for (var o in i)
|
|
683
|
+
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
684
|
+
}
|
|
685
|
+
return t;
|
|
686
|
+
}, Xe.apply(this, arguments);
|
|
687
|
+
};
|
|
688
|
+
var B;
|
|
695
689
|
(function(e) {
|
|
696
690
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
697
691
|
})(B || (B = {}));
|
|
698
|
-
var
|
|
692
|
+
var $;
|
|
699
693
|
(function(e) {
|
|
700
694
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
701
|
-
})(
|
|
702
|
-
var
|
|
695
|
+
})($ || ($ = {}));
|
|
696
|
+
var _e;
|
|
703
697
|
(function(e) {
|
|
704
698
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
705
|
-
})(
|
|
706
|
-
function
|
|
707
|
-
return e.type ===
|
|
699
|
+
})(_e || (_e = {}));
|
|
700
|
+
function At(e) {
|
|
701
|
+
return e.type === $.literal;
|
|
708
702
|
}
|
|
709
|
-
function
|
|
710
|
-
return e.type ===
|
|
703
|
+
function fn(e) {
|
|
704
|
+
return e.type === $.argument;
|
|
711
705
|
}
|
|
712
706
|
function Jt(e) {
|
|
713
|
-
return e.type ===
|
|
707
|
+
return e.type === $.number;
|
|
714
708
|
}
|
|
715
709
|
function Qt(e) {
|
|
716
|
-
return e.type ===
|
|
710
|
+
return e.type === $.date;
|
|
717
711
|
}
|
|
718
712
|
function Kt(e) {
|
|
719
|
-
return e.type ===
|
|
713
|
+
return e.type === $.time;
|
|
720
714
|
}
|
|
721
715
|
function ei(e) {
|
|
722
|
-
return e.type ===
|
|
716
|
+
return e.type === $.select;
|
|
723
717
|
}
|
|
724
718
|
function ti(e) {
|
|
725
|
-
return e.type ===
|
|
719
|
+
return e.type === $.plural;
|
|
726
720
|
}
|
|
727
|
-
function
|
|
728
|
-
return e.type ===
|
|
721
|
+
function pn(e) {
|
|
722
|
+
return e.type === $.pound;
|
|
729
723
|
}
|
|
730
724
|
function ii(e) {
|
|
731
|
-
return e.type ===
|
|
725
|
+
return e.type === $.tag;
|
|
732
726
|
}
|
|
733
727
|
function ni(e) {
|
|
734
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
728
|
+
return !!(e && typeof e == "object" && e.type === _e.number);
|
|
735
729
|
}
|
|
736
|
-
function
|
|
737
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
730
|
+
function ft(e) {
|
|
731
|
+
return !!(e && typeof e == "object" && e.type === _e.dateTime);
|
|
738
732
|
}
|
|
739
733
|
var ri = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
740
|
-
function
|
|
734
|
+
function dn(e) {
|
|
741
735
|
var t = {};
|
|
742
736
|
return e.replace(mn, function(i) {
|
|
743
737
|
var n = i.length;
|
|
@@ -828,29 +822,39 @@ function pn(e) {
|
|
|
828
822
|
return "";
|
|
829
823
|
}), t;
|
|
830
824
|
}
|
|
831
|
-
var
|
|
825
|
+
var V = function() {
|
|
826
|
+
return V = Object.assign || function(t) {
|
|
827
|
+
for (var i, n = 1, r = arguments.length; n < r; n++) {
|
|
828
|
+
i = arguments[n];
|
|
829
|
+
for (var o in i)
|
|
830
|
+
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
831
|
+
}
|
|
832
|
+
return t;
|
|
833
|
+
}, V.apply(this, arguments);
|
|
834
|
+
};
|
|
835
|
+
var gn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
832
836
|
function bn(e) {
|
|
833
837
|
if (e.length === 0)
|
|
834
838
|
throw new Error("Number skeleton cannot be empty");
|
|
835
|
-
for (var t = e.split(
|
|
836
|
-
return
|
|
839
|
+
for (var t = e.split(gn).filter(function(m) {
|
|
840
|
+
return m.length > 0;
|
|
837
841
|
}), i = [], n = 0, r = t; n < r.length; n++) {
|
|
838
842
|
var o = r[n], a = o.split("/");
|
|
839
843
|
if (a.length === 0)
|
|
840
844
|
throw new Error("Invalid number skeleton");
|
|
841
845
|
for (var s = a[0], u = a.slice(1), l = 0, c = u; l < c.length; l++) {
|
|
842
|
-
var
|
|
843
|
-
if (
|
|
846
|
+
var p = c[l];
|
|
847
|
+
if (p.length === 0)
|
|
844
848
|
throw new Error("Invalid number skeleton");
|
|
845
849
|
}
|
|
846
850
|
i.push({ stem: s, options: u });
|
|
847
851
|
}
|
|
848
852
|
return i;
|
|
849
853
|
}
|
|
850
|
-
function
|
|
854
|
+
function yn(e) {
|
|
851
855
|
return e.replace(/^(.*?)-/, "");
|
|
852
856
|
}
|
|
853
|
-
var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, oi = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
857
|
+
var It = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, oi = /^(@+)?(\+|#+)?[rs]?$/g, vn = /(\*)(0+)|(#+)(0+)|(0+)/g, si = /^(0+)$/;
|
|
854
858
|
function kt(e) {
|
|
855
859
|
var t = {};
|
|
856
860
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(oi, function(i, n, r) {
|
|
@@ -897,7 +901,7 @@ function ai(e) {
|
|
|
897
901
|
};
|
|
898
902
|
}
|
|
899
903
|
}
|
|
900
|
-
function
|
|
904
|
+
function En(e) {
|
|
901
905
|
var t;
|
|
902
906
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
903
907
|
notation: "engineering"
|
|
@@ -915,7 +919,7 @@ function Ht(e) {
|
|
|
915
919
|
var t = {}, i = ai(e);
|
|
916
920
|
return i || t;
|
|
917
921
|
}
|
|
918
|
-
function
|
|
922
|
+
function _n(e) {
|
|
919
923
|
for (var t = {}, i = 0, n = e; i < n.length; i++) {
|
|
920
924
|
var r = n[i];
|
|
921
925
|
switch (r.stem) {
|
|
@@ -939,7 +943,7 @@ function En(e) {
|
|
|
939
943
|
continue;
|
|
940
944
|
case "measure-unit":
|
|
941
945
|
case "unit":
|
|
942
|
-
t.style = "unit", t.unit =
|
|
946
|
+
t.style = "unit", t.unit = yn(r.options[0]);
|
|
943
947
|
continue;
|
|
944
948
|
case "compact-short":
|
|
945
949
|
case "K":
|
|
@@ -950,13 +954,13 @@ function En(e) {
|
|
|
950
954
|
t.notation = "compact", t.compactDisplay = "long";
|
|
951
955
|
continue;
|
|
952
956
|
case "scientific":
|
|
953
|
-
t =
|
|
954
|
-
return
|
|
957
|
+
t = V(V(V({}, t), { notation: "scientific" }), r.options.reduce(function(u, l) {
|
|
958
|
+
return V(V({}, u), Ht(l));
|
|
955
959
|
}, {}));
|
|
956
960
|
continue;
|
|
957
961
|
case "engineering":
|
|
958
|
-
t =
|
|
959
|
-
return
|
|
962
|
+
t = V(V(V({}, t), { notation: "engineering" }), r.options.reduce(function(u, l) {
|
|
963
|
+
return V(V({}, u), Ht(l));
|
|
960
964
|
}, {}));
|
|
961
965
|
continue;
|
|
962
966
|
case "notation-simple":
|
|
@@ -1001,11 +1005,11 @@ function En(e) {
|
|
|
1001
1005
|
case "integer-width":
|
|
1002
1006
|
if (r.options.length > 1)
|
|
1003
1007
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1004
|
-
r.options[0].replace(
|
|
1008
|
+
r.options[0].replace(vn, function(u, l, c, p, m, d) {
|
|
1005
1009
|
if (l)
|
|
1006
1010
|
t.minimumIntegerDigits = c.length;
|
|
1007
1011
|
else {
|
|
1008
|
-
if (
|
|
1012
|
+
if (p && m)
|
|
1009
1013
|
throw new Error("We currently do not support maximum integer digits");
|
|
1010
1014
|
if (d)
|
|
1011
1015
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1021,25 +1025,25 @@ function En(e) {
|
|
|
1021
1025
|
if (It.test(r.stem)) {
|
|
1022
1026
|
if (r.options.length > 1)
|
|
1023
1027
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1024
|
-
r.stem.replace(It, function(u, l, c,
|
|
1025
|
-
return c === "*" ? t.minimumFractionDigits = l.length :
|
|
1028
|
+
r.stem.replace(It, function(u, l, c, p, m, d) {
|
|
1029
|
+
return c === "*" ? t.minimumFractionDigits = l.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1026
1030
|
});
|
|
1027
1031
|
var o = r.options[0];
|
|
1028
|
-
o === "w" ? t =
|
|
1032
|
+
o === "w" ? t = V(V({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = V(V({}, t), kt(o)));
|
|
1029
1033
|
continue;
|
|
1030
1034
|
}
|
|
1031
1035
|
if (oi.test(r.stem)) {
|
|
1032
|
-
t =
|
|
1036
|
+
t = V(V({}, t), kt(r.stem));
|
|
1033
1037
|
continue;
|
|
1034
1038
|
}
|
|
1035
1039
|
var a = ai(r.stem);
|
|
1036
|
-
a && (t =
|
|
1037
|
-
var s =
|
|
1038
|
-
s && (t =
|
|
1040
|
+
a && (t = V(V({}, t), a));
|
|
1041
|
+
var s = En(r.stem);
|
|
1042
|
+
s && (t = V(V({}, t), s));
|
|
1039
1043
|
}
|
|
1040
1044
|
return t;
|
|
1041
1045
|
}
|
|
1042
|
-
var
|
|
1046
|
+
var $e = {
|
|
1043
1047
|
"001": [
|
|
1044
1048
|
"H",
|
|
1045
1049
|
"h"
|
|
@@ -2454,13 +2458,13 @@ var Ge = {
|
|
|
2454
2458
|
"h"
|
|
2455
2459
|
]
|
|
2456
2460
|
};
|
|
2457
|
-
function
|
|
2461
|
+
function xn(e, t) {
|
|
2458
2462
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
2459
2463
|
var r = e.charAt(n);
|
|
2460
2464
|
if (r === "j") {
|
|
2461
2465
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === r; )
|
|
2462
2466
|
o++, n++;
|
|
2463
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
|
2467
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Tn(t);
|
|
2464
2468
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2465
2469
|
i += u;
|
|
2466
2470
|
for (; a-- > 0; )
|
|
@@ -2470,7 +2474,7 @@ function _n(e, t) {
|
|
|
2470
2474
|
}
|
|
2471
2475
|
return i;
|
|
2472
2476
|
}
|
|
2473
|
-
function
|
|
2477
|
+
function Tn(e) {
|
|
2474
2478
|
var t = e.hourCycle;
|
|
2475
2479
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2476
2480
|
e.hourCycles && // @ts-ignore
|
|
@@ -2489,23 +2493,23 @@ function xn(e) {
|
|
|
2489
2493
|
}
|
|
2490
2494
|
var i = e.language, n;
|
|
2491
2495
|
i !== "root" && (n = e.maximize().region);
|
|
2492
|
-
var r =
|
|
2496
|
+
var r = $e[n || ""] || $e[i || ""] || $e["".concat(i, "-001")] || $e["001"];
|
|
2493
2497
|
return r[0];
|
|
2494
2498
|
}
|
|
2495
|
-
var
|
|
2496
|
-
function
|
|
2499
|
+
var st, Pn = new RegExp("^".concat(ri.source, "*")), wn = new RegExp("".concat(ri.source, "*$"));
|
|
2500
|
+
function A(e, t) {
|
|
2497
2501
|
return { start: e, end: t };
|
|
2498
2502
|
}
|
|
2499
|
-
var
|
|
2503
|
+
var Bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ln = !!String.fromCodePoint, Sn = !!Object.fromEntries, An = !!String.prototype.codePointAt, In = !!String.prototype.trimStart, kn = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, Cn = Hn ? Number.isSafeInteger : function(e) {
|
|
2500
2504
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2501
|
-
},
|
|
2505
|
+
}, pt = !0;
|
|
2502
2506
|
try {
|
|
2503
|
-
var
|
|
2504
|
-
|
|
2507
|
+
var Nn = ui("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2508
|
+
pt = ((st = Nn.exec("a")) === null || st === void 0 ? void 0 : st[0]) === "a";
|
|
2505
2509
|
} catch {
|
|
2506
|
-
|
|
2510
|
+
pt = !1;
|
|
2507
2511
|
}
|
|
2508
|
-
var Ct =
|
|
2512
|
+
var Ct = Bn ? (
|
|
2509
2513
|
// Native
|
|
2510
2514
|
function(t, i, n) {
|
|
2511
2515
|
return t.startsWith(i, n);
|
|
@@ -2515,7 +2519,7 @@ var Ct = wn ? (
|
|
|
2515
2519
|
function(t, i, n) {
|
|
2516
2520
|
return t.slice(n, n + i.length) === i;
|
|
2517
2521
|
}
|
|
2518
|
-
),
|
|
2522
|
+
), mt = Ln ? String.fromCodePoint : (
|
|
2519
2523
|
// IE11
|
|
2520
2524
|
function() {
|
|
2521
2525
|
for (var t = [], i = 0; i < arguments.length; i++)
|
|
@@ -2529,7 +2533,7 @@ var Ct = wn ? (
|
|
|
2529
2533
|
}
|
|
2530
2534
|
), Nt = (
|
|
2531
2535
|
// native
|
|
2532
|
-
|
|
2536
|
+
Sn ? Object.fromEntries : (
|
|
2533
2537
|
// Ponyfill
|
|
2534
2538
|
function(t) {
|
|
2535
2539
|
for (var i = {}, n = 0, r = t; n < r.length; n++) {
|
|
@@ -2553,7 +2557,7 @@ var Ct = wn ? (
|
|
|
2553
2557
|
return r < 55296 || r > 56319 || i + 1 === n || (o = t.charCodeAt(i + 1)) < 56320 || o > 57343 ? r : (r - 55296 << 10) + (o - 56320) + 65536;
|
|
2554
2558
|
}
|
|
2555
2559
|
}
|
|
2556
|
-
),
|
|
2560
|
+
), On = In ? (
|
|
2557
2561
|
// Native
|
|
2558
2562
|
function(t) {
|
|
2559
2563
|
return t.trimStart();
|
|
@@ -2561,9 +2565,9 @@ var Ct = wn ? (
|
|
|
2561
2565
|
) : (
|
|
2562
2566
|
// Ponyfill
|
|
2563
2567
|
function(t) {
|
|
2564
|
-
return t.replace(
|
|
2568
|
+
return t.replace(Pn, "");
|
|
2565
2569
|
}
|
|
2566
|
-
),
|
|
2570
|
+
), Mn = kn ? (
|
|
2567
2571
|
// Native
|
|
2568
2572
|
function(t) {
|
|
2569
2573
|
return t.trimEnd();
|
|
@@ -2571,32 +2575,32 @@ var Ct = wn ? (
|
|
|
2571
2575
|
) : (
|
|
2572
2576
|
// Ponyfill
|
|
2573
2577
|
function(t) {
|
|
2574
|
-
return t.replace(
|
|
2578
|
+
return t.replace(wn, "");
|
|
2575
2579
|
}
|
|
2576
2580
|
);
|
|
2577
2581
|
function ui(e, t) {
|
|
2578
2582
|
return new RegExp(e, t);
|
|
2579
2583
|
}
|
|
2580
|
-
var
|
|
2581
|
-
if (
|
|
2584
|
+
var dt;
|
|
2585
|
+
if (pt) {
|
|
2582
2586
|
var Ot = ui("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2583
|
-
|
|
2587
|
+
dt = function(t, i) {
|
|
2584
2588
|
var n;
|
|
2585
2589
|
Ot.lastIndex = i;
|
|
2586
2590
|
var r = Ot.exec(t);
|
|
2587
2591
|
return (n = r[1]) !== null && n !== void 0 ? n : "";
|
|
2588
2592
|
};
|
|
2589
2593
|
} else
|
|
2590
|
-
|
|
2594
|
+
dt = function(t, i) {
|
|
2591
2595
|
for (var n = []; ; ) {
|
|
2592
2596
|
var r = li(t, i);
|
|
2593
|
-
if (r === void 0 || ci(r) ||
|
|
2597
|
+
if (r === void 0 || ci(r) || jn(r))
|
|
2594
2598
|
break;
|
|
2595
2599
|
n.push(r), i += r >= 65536 ? 2 : 1;
|
|
2596
2600
|
}
|
|
2597
|
-
return
|
|
2601
|
+
return mt.apply(void 0, n);
|
|
2598
2602
|
};
|
|
2599
|
-
var
|
|
2603
|
+
var Dn = (
|
|
2600
2604
|
/** @class */
|
|
2601
2605
|
function() {
|
|
2602
2606
|
function e(t, i) {
|
|
@@ -2620,14 +2624,14 @@ var Mn = (
|
|
|
2620
2624
|
if (o === 35 && (i === "plural" || i === "selectordinal")) {
|
|
2621
2625
|
var s = this.clonePosition();
|
|
2622
2626
|
this.bump(), r.push({
|
|
2623
|
-
type:
|
|
2624
|
-
location:
|
|
2627
|
+
type: $.pound,
|
|
2628
|
+
location: A(s, this.clonePosition())
|
|
2625
2629
|
});
|
|
2626
2630
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2627
2631
|
if (n)
|
|
2628
2632
|
break;
|
|
2629
|
-
return this.error(B.UNMATCHED_CLOSING_TAG,
|
|
2630
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2633
|
+
return this.error(B.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
|
|
2634
|
+
} else if (o === 60 && !this.ignoreTag && gt(this.peek() || 0)) {
|
|
2631
2635
|
var a = this.parseTag(t, i);
|
|
2632
2636
|
if (a.err)
|
|
2633
2637
|
return a;
|
|
@@ -2648,9 +2652,9 @@ var Mn = (
|
|
|
2648
2652
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2649
2653
|
return {
|
|
2650
2654
|
val: {
|
|
2651
|
-
type:
|
|
2655
|
+
type: $.literal,
|
|
2652
2656
|
value: "<".concat(r, "/>"),
|
|
2653
|
-
location:
|
|
2657
|
+
location: A(n, this.clonePosition())
|
|
2654
2658
|
},
|
|
2655
2659
|
err: null
|
|
2656
2660
|
};
|
|
@@ -2660,25 +2664,25 @@ var Mn = (
|
|
|
2660
2664
|
return o;
|
|
2661
2665
|
var a = o.val, s = this.clonePosition();
|
|
2662
2666
|
if (this.bumpIf("</")) {
|
|
2663
|
-
if (this.isEOF() || !
|
|
2664
|
-
return this.error(B.INVALID_TAG,
|
|
2667
|
+
if (this.isEOF() || !gt(this.char()))
|
|
2668
|
+
return this.error(B.INVALID_TAG, A(s, this.clonePosition()));
|
|
2665
2669
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
2666
|
-
return r !== l ? this.error(B.UNMATCHED_CLOSING_TAG,
|
|
2670
|
+
return r !== l ? this.error(B.UNMATCHED_CLOSING_TAG, A(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2667
2671
|
val: {
|
|
2668
|
-
type:
|
|
2672
|
+
type: $.tag,
|
|
2669
2673
|
value: r,
|
|
2670
2674
|
children: a,
|
|
2671
|
-
location:
|
|
2675
|
+
location: A(n, this.clonePosition())
|
|
2672
2676
|
},
|
|
2673
2677
|
err: null
|
|
2674
|
-
} : this.error(B.INVALID_TAG,
|
|
2678
|
+
} : this.error(B.INVALID_TAG, A(s, this.clonePosition())));
|
|
2675
2679
|
} else
|
|
2676
|
-
return this.error(B.UNCLOSED_TAG,
|
|
2680
|
+
return this.error(B.UNCLOSED_TAG, A(n, this.clonePosition()));
|
|
2677
2681
|
} else
|
|
2678
|
-
return this.error(B.INVALID_TAG,
|
|
2682
|
+
return this.error(B.INVALID_TAG, A(n, this.clonePosition()));
|
|
2679
2683
|
}, e.prototype.parseTagName = function() {
|
|
2680
2684
|
var t = this.offset();
|
|
2681
|
-
for (this.bump(); !this.isEOF() &&
|
|
2685
|
+
for (this.bump(); !this.isEOF() && Un(this.char()); )
|
|
2682
2686
|
this.bump();
|
|
2683
2687
|
return this.message.slice(t, this.offset());
|
|
2684
2688
|
}, e.prototype.parseLiteral = function(t, i) {
|
|
@@ -2700,14 +2704,14 @@ var Mn = (
|
|
|
2700
2704
|
}
|
|
2701
2705
|
break;
|
|
2702
2706
|
}
|
|
2703
|
-
var u =
|
|
2707
|
+
var u = A(n, this.clonePosition());
|
|
2704
2708
|
return {
|
|
2705
|
-
val: { type:
|
|
2709
|
+
val: { type: $.literal, value: r, location: u },
|
|
2706
2710
|
err: null
|
|
2707
2711
|
};
|
|
2708
2712
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2709
2713
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2710
|
-
!
|
|
2714
|
+
!Rn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2711
2715
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2712
2716
|
if (this.isEOF() || this.char() !== 39)
|
|
2713
2717
|
return null;
|
|
@@ -2741,49 +2745,49 @@ var Mn = (
|
|
|
2741
2745
|
i.push(n);
|
|
2742
2746
|
this.bump();
|
|
2743
2747
|
}
|
|
2744
|
-
return
|
|
2748
|
+
return mt.apply(void 0, i);
|
|
2745
2749
|
}, e.prototype.tryParseUnquoted = function(t, i) {
|
|
2746
2750
|
if (this.isEOF())
|
|
2747
2751
|
return null;
|
|
2748
2752
|
var n = this.char();
|
|
2749
|
-
return n === 60 || n === 123 || n === 35 && (i === "plural" || i === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2753
|
+
return n === 60 || n === 123 || n === 35 && (i === "plural" || i === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), mt(n));
|
|
2750
2754
|
}, e.prototype.parseArgument = function(t, i) {
|
|
2751
2755
|
var n = this.clonePosition();
|
|
2752
2756
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2753
|
-
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2757
|
+
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
|
|
2754
2758
|
if (this.char() === 125)
|
|
2755
|
-
return this.bump(), this.error(B.EMPTY_ARGUMENT,
|
|
2759
|
+
return this.bump(), this.error(B.EMPTY_ARGUMENT, A(n, this.clonePosition()));
|
|
2756
2760
|
var r = this.parseIdentifierIfPossible().value;
|
|
2757
2761
|
if (!r)
|
|
2758
|
-
return this.error(B.MALFORMED_ARGUMENT,
|
|
2762
|
+
return this.error(B.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
|
|
2759
2763
|
if (this.bumpSpace(), this.isEOF())
|
|
2760
|
-
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2764
|
+
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
|
|
2761
2765
|
switch (this.char()) {
|
|
2762
2766
|
case 125:
|
|
2763
2767
|
return this.bump(), {
|
|
2764
2768
|
val: {
|
|
2765
|
-
type:
|
|
2769
|
+
type: $.argument,
|
|
2766
2770
|
// value does not include the opening and closing braces.
|
|
2767
2771
|
value: r,
|
|
2768
|
-
location:
|
|
2772
|
+
location: A(n, this.clonePosition())
|
|
2769
2773
|
},
|
|
2770
2774
|
err: null
|
|
2771
2775
|
};
|
|
2772
2776
|
case 44:
|
|
2773
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2777
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition())) : this.parseArgumentOptions(t, i, r, n);
|
|
2774
2778
|
default:
|
|
2775
|
-
return this.error(B.MALFORMED_ARGUMENT,
|
|
2779
|
+
return this.error(B.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
|
|
2776
2780
|
}
|
|
2777
2781
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2778
|
-
var t = this.clonePosition(), i = this.offset(), n =
|
|
2782
|
+
var t = this.clonePosition(), i = this.offset(), n = dt(this.message, i), r = i + n.length;
|
|
2779
2783
|
this.bumpTo(r);
|
|
2780
|
-
var o = this.clonePosition(), a =
|
|
2784
|
+
var o = this.clonePosition(), a = A(t, o);
|
|
2781
2785
|
return { value: n, location: a };
|
|
2782
2786
|
}, e.prototype.parseArgumentOptions = function(t, i, n, r) {
|
|
2783
2787
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2784
2788
|
switch (s) {
|
|
2785
2789
|
case "":
|
|
2786
|
-
return this.error(B.EXPECT_ARGUMENT_TYPE,
|
|
2790
|
+
return this.error(B.EXPECT_ARGUMENT_TYPE, A(a, u));
|
|
2787
2791
|
case "number":
|
|
2788
2792
|
case "date":
|
|
2789
2793
|
case "time": {
|
|
@@ -2791,47 +2795,47 @@ var Mn = (
|
|
|
2791
2795
|
var l = null;
|
|
2792
2796
|
if (this.bumpIf(",")) {
|
|
2793
2797
|
this.bumpSpace();
|
|
2794
|
-
var c = this.clonePosition(),
|
|
2795
|
-
if (
|
|
2796
|
-
return
|
|
2797
|
-
var
|
|
2798
|
-
if (
|
|
2799
|
-
return this.error(B.EXPECT_ARGUMENT_STYLE,
|
|
2800
|
-
var d =
|
|
2801
|
-
l = { style:
|
|
2798
|
+
var c = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
|
2799
|
+
if (p.err)
|
|
2800
|
+
return p;
|
|
2801
|
+
var m = Mn(p.val);
|
|
2802
|
+
if (m.length === 0)
|
|
2803
|
+
return this.error(B.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
|
|
2804
|
+
var d = A(c, this.clonePosition());
|
|
2805
|
+
l = { style: m, styleLocation: d };
|
|
2802
2806
|
}
|
|
2803
2807
|
var E = this.tryParseArgumentClose(r);
|
|
2804
2808
|
if (E.err)
|
|
2805
2809
|
return E;
|
|
2806
|
-
var _ =
|
|
2810
|
+
var _ = A(r, this.clonePosition());
|
|
2807
2811
|
if (l && Ct(l?.style, "::", 0)) {
|
|
2808
|
-
var y =
|
|
2812
|
+
var y = On(l.style.slice(2));
|
|
2809
2813
|
if (s === "number") {
|
|
2810
|
-
var
|
|
2811
|
-
return
|
|
2812
|
-
val: { type:
|
|
2814
|
+
var p = this.parseNumberSkeletonFromString(y, l.styleLocation);
|
|
2815
|
+
return p.err ? p : {
|
|
2816
|
+
val: { type: $.number, value: n, location: _, style: p.val },
|
|
2813
2817
|
err: null
|
|
2814
2818
|
};
|
|
2815
2819
|
} else {
|
|
2816
2820
|
if (y.length === 0)
|
|
2817
2821
|
return this.error(B.EXPECT_DATE_TIME_SKELETON, _);
|
|
2818
2822
|
var v = y;
|
|
2819
|
-
this.locale && (v =
|
|
2820
|
-
var
|
|
2821
|
-
type:
|
|
2823
|
+
this.locale && (v = xn(y, this.locale));
|
|
2824
|
+
var m = {
|
|
2825
|
+
type: _e.dateTime,
|
|
2822
2826
|
pattern: v,
|
|
2823
2827
|
location: l.styleLocation,
|
|
2824
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2825
|
-
},
|
|
2828
|
+
parsedOptions: this.shouldParseSkeletons ? dn(v) : {}
|
|
2829
|
+
}, O = s === "date" ? $.date : $.time;
|
|
2826
2830
|
return {
|
|
2827
|
-
val: { type:
|
|
2831
|
+
val: { type: O, value: n, location: _, style: m },
|
|
2828
2832
|
err: null
|
|
2829
2833
|
};
|
|
2830
2834
|
}
|
|
2831
2835
|
}
|
|
2832
2836
|
return {
|
|
2833
2837
|
val: {
|
|
2834
|
-
type: s === "number" ?
|
|
2838
|
+
type: s === "number" ? $.number : s === "date" ? $.date : $.time,
|
|
2835
2839
|
value: n,
|
|
2836
2840
|
location: _,
|
|
2837
2841
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
@@ -2844,50 +2848,50 @@ var Mn = (
|
|
|
2844
2848
|
case "select": {
|
|
2845
2849
|
var w = this.clonePosition();
|
|
2846
2850
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2847
|
-
return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2851
|
+
return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS, A(w, Xe({}, w)));
|
|
2848
2852
|
this.bumpSpace();
|
|
2849
|
-
var
|
|
2850
|
-
if (s !== "select" &&
|
|
2853
|
+
var M = this.parseIdentifierIfPossible(), S = 0;
|
|
2854
|
+
if (s !== "select" && M.value === "offset") {
|
|
2851
2855
|
if (!this.bumpIf(":"))
|
|
2852
|
-
return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2856
|
+
return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
|
|
2853
2857
|
this.bumpSpace();
|
|
2854
|
-
var
|
|
2855
|
-
if (
|
|
2856
|
-
return
|
|
2857
|
-
this.bumpSpace(),
|
|
2858
|
+
var p = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2859
|
+
if (p.err)
|
|
2860
|
+
return p;
|
|
2861
|
+
this.bumpSpace(), M = this.parseIdentifierIfPossible(), S = p.val;
|
|
2858
2862
|
}
|
|
2859
|
-
var
|
|
2860
|
-
if (
|
|
2861
|
-
return
|
|
2863
|
+
var D = this.tryParsePluralOrSelectOptions(t, s, i, M);
|
|
2864
|
+
if (D.err)
|
|
2865
|
+
return D;
|
|
2862
2866
|
var E = this.tryParseArgumentClose(r);
|
|
2863
2867
|
if (E.err)
|
|
2864
2868
|
return E;
|
|
2865
|
-
var
|
|
2869
|
+
var z = A(r, this.clonePosition());
|
|
2866
2870
|
return s === "select" ? {
|
|
2867
2871
|
val: {
|
|
2868
|
-
type:
|
|
2872
|
+
type: $.select,
|
|
2869
2873
|
value: n,
|
|
2870
|
-
options: Nt(
|
|
2871
|
-
location:
|
|
2874
|
+
options: Nt(D.val),
|
|
2875
|
+
location: z
|
|
2872
2876
|
},
|
|
2873
2877
|
err: null
|
|
2874
2878
|
} : {
|
|
2875
2879
|
val: {
|
|
2876
|
-
type:
|
|
2880
|
+
type: $.plural,
|
|
2877
2881
|
value: n,
|
|
2878
|
-
options: Nt(
|
|
2879
|
-
offset:
|
|
2882
|
+
options: Nt(D.val),
|
|
2883
|
+
offset: S,
|
|
2880
2884
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2881
|
-
location:
|
|
2885
|
+
location: z
|
|
2882
2886
|
},
|
|
2883
2887
|
err: null
|
|
2884
2888
|
};
|
|
2885
2889
|
}
|
|
2886
2890
|
default:
|
|
2887
|
-
return this.error(B.INVALID_ARGUMENT_TYPE,
|
|
2891
|
+
return this.error(B.INVALID_ARGUMENT_TYPE, A(a, u));
|
|
2888
2892
|
}
|
|
2889
2893
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2890
|
-
return this.isEOF() || this.char() !== 125 ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2894
|
+
return this.isEOF() || this.char() !== 125 ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2891
2895
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2892
2896
|
for (var t = 0, i = this.clonePosition(); !this.isEOF(); ) {
|
|
2893
2897
|
var n = this.char();
|
|
@@ -2896,7 +2900,7 @@ var Mn = (
|
|
|
2896
2900
|
this.bump();
|
|
2897
2901
|
var r = this.clonePosition();
|
|
2898
2902
|
if (!this.bumpUntil("'"))
|
|
2899
|
-
return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2903
|
+
return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, A(r, this.clonePosition()));
|
|
2900
2904
|
this.bump();
|
|
2901
2905
|
break;
|
|
2902
2906
|
}
|
|
@@ -2932,22 +2936,22 @@ var Mn = (
|
|
|
2932
2936
|
}
|
|
2933
2937
|
return {
|
|
2934
2938
|
val: {
|
|
2935
|
-
type:
|
|
2939
|
+
type: _e.number,
|
|
2936
2940
|
tokens: n,
|
|
2937
2941
|
location: i,
|
|
2938
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2942
|
+
parsedOptions: this.shouldParseSkeletons ? _n(n) : {}
|
|
2939
2943
|
},
|
|
2940
2944
|
err: null
|
|
2941
2945
|
};
|
|
2942
2946
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, i, n, r) {
|
|
2943
2947
|
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = r.value, c = r.location; ; ) {
|
|
2944
2948
|
if (l.length === 0) {
|
|
2945
|
-
var
|
|
2949
|
+
var p = this.clonePosition();
|
|
2946
2950
|
if (i !== "select" && this.bumpIf("=")) {
|
|
2947
|
-
var
|
|
2948
|
-
if (
|
|
2949
|
-
return
|
|
2950
|
-
c =
|
|
2951
|
+
var m = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR, B.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2952
|
+
if (m.err)
|
|
2953
|
+
return m;
|
|
2954
|
+
c = A(p, this.clonePosition()), l = this.message.slice(p.offset, this.offset());
|
|
2951
2955
|
} else
|
|
2952
2956
|
break;
|
|
2953
2957
|
}
|
|
@@ -2956,7 +2960,7 @@ var Mn = (
|
|
|
2956
2960
|
l === "other" && (a = !0), this.bumpSpace();
|
|
2957
2961
|
var d = this.clonePosition();
|
|
2958
2962
|
if (!this.bumpIf("{"))
|
|
2959
|
-
return this.error(i === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2963
|
+
return this.error(i === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, A(this.clonePosition(), this.clonePosition()));
|
|
2960
2964
|
var E = this.parseMessage(t + 1, i, n);
|
|
2961
2965
|
if (E.err)
|
|
2962
2966
|
return E;
|
|
@@ -2967,11 +2971,11 @@ var Mn = (
|
|
|
2967
2971
|
l,
|
|
2968
2972
|
{
|
|
2969
2973
|
value: E.val,
|
|
2970
|
-
location:
|
|
2974
|
+
location: A(d, this.clonePosition())
|
|
2971
2975
|
}
|
|
2972
2976
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
|
|
2973
2977
|
}
|
|
2974
|
-
return s.length === 0 ? this.error(i === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR : B.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
2978
|
+
return s.length === 0 ? this.error(i === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR : B.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(B.MISSING_OTHER_CLAUSE, A(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2975
2979
|
}, e.prototype.tryParseDecimalInteger = function(t, i) {
|
|
2976
2980
|
var n = 1, r = this.clonePosition();
|
|
2977
2981
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2982,8 +2986,8 @@ var Mn = (
|
|
|
2982
2986
|
else
|
|
2983
2987
|
break;
|
|
2984
2988
|
}
|
|
2985
|
-
var u =
|
|
2986
|
-
return o ? (a *= n,
|
|
2989
|
+
var u = A(r, this.clonePosition());
|
|
2990
|
+
return o ? (a *= n, Cn(a) ? { val: a, err: null } : this.error(i, u)) : this.error(t, u);
|
|
2987
2991
|
}, e.prototype.offset = function() {
|
|
2988
2992
|
return this.position.offset;
|
|
2989
2993
|
}, e.prototype.isEOF = function() {
|
|
@@ -3049,47 +3053,47 @@ var Mn = (
|
|
|
3049
3053
|
}, e;
|
|
3050
3054
|
}()
|
|
3051
3055
|
);
|
|
3052
|
-
function
|
|
3056
|
+
function gt(e) {
|
|
3053
3057
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3054
3058
|
}
|
|
3055
|
-
function Dn(e) {
|
|
3056
|
-
return pt(e) || e === 47;
|
|
3057
|
-
}
|
|
3058
3059
|
function Rn(e) {
|
|
3060
|
+
return gt(e) || e === 47;
|
|
3061
|
+
}
|
|
3062
|
+
function Un(e) {
|
|
3059
3063
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3060
3064
|
}
|
|
3061
3065
|
function ci(e) {
|
|
3062
3066
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3063
3067
|
}
|
|
3064
|
-
function
|
|
3068
|
+
function jn(e) {
|
|
3065
3069
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3066
3070
|
}
|
|
3067
|
-
function
|
|
3071
|
+
function bt(e) {
|
|
3068
3072
|
e.forEach(function(t) {
|
|
3069
3073
|
if (delete t.location, ei(t) || ti(t))
|
|
3070
3074
|
for (var i in t.options)
|
|
3071
|
-
delete t.options[i].location,
|
|
3075
|
+
delete t.options[i].location, bt(t.options[i].value);
|
|
3072
3076
|
else
|
|
3073
|
-
Jt(t) && ni(t.style) || (Qt(t) || Kt(t)) &&
|
|
3077
|
+
Jt(t) && ni(t.style) || (Qt(t) || Kt(t)) && ft(t.style) ? delete t.style.location : ii(t) && bt(t.children);
|
|
3074
3078
|
});
|
|
3075
3079
|
}
|
|
3076
|
-
function
|
|
3077
|
-
t === void 0 && (t = {}), t =
|
|
3078
|
-
var i = new
|
|
3080
|
+
function Gn(e, t) {
|
|
3081
|
+
t === void 0 && (t = {}), t = Xe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3082
|
+
var i = new Dn(e, t).parse();
|
|
3079
3083
|
if (i.err) {
|
|
3080
3084
|
var n = SyntaxError(B[i.err.kind]);
|
|
3081
3085
|
throw n.location = i.err.location, n.originalMessage = i.err.message, n;
|
|
3082
3086
|
}
|
|
3083
|
-
return t?.captureLocation ||
|
|
3087
|
+
return t?.captureLocation || bt(i.val), i.val;
|
|
3084
3088
|
}
|
|
3085
|
-
var
|
|
3089
|
+
var xe;
|
|
3086
3090
|
(function(e) {
|
|
3087
3091
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3088
|
-
})(
|
|
3089
|
-
var
|
|
3092
|
+
})(xe || (xe = {}));
|
|
3093
|
+
var Je = (
|
|
3090
3094
|
/** @class */
|
|
3091
3095
|
function(e) {
|
|
3092
|
-
|
|
3096
|
+
Ye(t, e);
|
|
3093
3097
|
function t(i, n, r) {
|
|
3094
3098
|
var o = e.call(this, i) || this;
|
|
3095
3099
|
return o.code = n, o.originalMessage = r, o;
|
|
@@ -3101,45 +3105,45 @@ var Ze = (
|
|
|
3101
3105
|
), Mt = (
|
|
3102
3106
|
/** @class */
|
|
3103
3107
|
function(e) {
|
|
3104
|
-
|
|
3108
|
+
Ye(t, e);
|
|
3105
3109
|
function t(i, n, r, o) {
|
|
3106
|
-
return e.call(this, 'Invalid values for "'.concat(i, '": "').concat(n, '". Options are "').concat(Object.keys(r).join('", "'), '"'),
|
|
3110
|
+
return e.call(this, 'Invalid values for "'.concat(i, '": "').concat(n, '". Options are "').concat(Object.keys(r).join('", "'), '"'), xe.INVALID_VALUE, o) || this;
|
|
3107
3111
|
}
|
|
3108
3112
|
return t;
|
|
3109
|
-
}(
|
|
3110
|
-
),
|
|
3113
|
+
}(Je)
|
|
3114
|
+
), $n = (
|
|
3111
3115
|
/** @class */
|
|
3112
3116
|
function(e) {
|
|
3113
|
-
|
|
3117
|
+
Ye(t, e);
|
|
3114
3118
|
function t(i, n, r) {
|
|
3115
|
-
return e.call(this, 'Value for "'.concat(i, '" must be of type ').concat(n),
|
|
3119
|
+
return e.call(this, 'Value for "'.concat(i, '" must be of type ').concat(n), xe.INVALID_VALUE, r) || this;
|
|
3116
3120
|
}
|
|
3117
3121
|
return t;
|
|
3118
|
-
}(
|
|
3119
|
-
),
|
|
3122
|
+
}(Je)
|
|
3123
|
+
), zn = (
|
|
3120
3124
|
/** @class */
|
|
3121
3125
|
function(e) {
|
|
3122
|
-
|
|
3126
|
+
Ye(t, e);
|
|
3123
3127
|
function t(i, n) {
|
|
3124
|
-
return e.call(this, 'The intl string context variable "'.concat(i, '" was not provided to the string "').concat(n, '"'),
|
|
3128
|
+
return e.call(this, 'The intl string context variable "'.concat(i, '" was not provided to the string "').concat(n, '"'), xe.MISSING_VALUE, n) || this;
|
|
3125
3129
|
}
|
|
3126
3130
|
return t;
|
|
3127
|
-
}(
|
|
3131
|
+
}(Je)
|
|
3128
3132
|
), W;
|
|
3129
3133
|
(function(e) {
|
|
3130
3134
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3131
3135
|
})(W || (W = {}));
|
|
3132
|
-
function
|
|
3136
|
+
function Fn(e) {
|
|
3133
3137
|
return e.length < 2 ? e : e.reduce(function(t, i) {
|
|
3134
3138
|
var n = t[t.length - 1];
|
|
3135
3139
|
return !n || n.type !== W.literal || i.type !== W.literal ? t.push(i) : n.value += i.value, t;
|
|
3136
3140
|
}, []);
|
|
3137
3141
|
}
|
|
3138
|
-
function
|
|
3142
|
+
function Vn(e) {
|
|
3139
3143
|
return typeof e == "function";
|
|
3140
3144
|
}
|
|
3141
|
-
function
|
|
3142
|
-
if (e.length === 1 &&
|
|
3145
|
+
function Fe(e, t, i, n, r, o, a) {
|
|
3146
|
+
if (e.length === 1 && At(e[0]))
|
|
3143
3147
|
return [
|
|
3144
3148
|
{
|
|
3145
3149
|
type: W.literal,
|
|
@@ -3148,105 +3152,105 @@ function ze(e, t, i, n, r, o, a) {
|
|
|
3148
3152
|
];
|
|
3149
3153
|
for (var s = [], u = 0, l = e; u < l.length; u++) {
|
|
3150
3154
|
var c = l[u];
|
|
3151
|
-
if (
|
|
3155
|
+
if (At(c)) {
|
|
3152
3156
|
s.push({
|
|
3153
3157
|
type: W.literal,
|
|
3154
3158
|
value: c.value
|
|
3155
3159
|
});
|
|
3156
3160
|
continue;
|
|
3157
3161
|
}
|
|
3158
|
-
if (
|
|
3162
|
+
if (pn(c)) {
|
|
3159
3163
|
typeof o == "number" && s.push({
|
|
3160
3164
|
type: W.literal,
|
|
3161
3165
|
value: i.getNumberFormat(t).format(o)
|
|
3162
3166
|
});
|
|
3163
3167
|
continue;
|
|
3164
3168
|
}
|
|
3165
|
-
var
|
|
3166
|
-
if (!(r &&
|
|
3167
|
-
throw new
|
|
3168
|
-
var
|
|
3169
|
-
if (
|
|
3170
|
-
(!
|
|
3171
|
-
type: typeof
|
|
3172
|
-
value:
|
|
3169
|
+
var p = c.value;
|
|
3170
|
+
if (!(r && p in r))
|
|
3171
|
+
throw new zn(p, a);
|
|
3172
|
+
var m = r[p];
|
|
3173
|
+
if (fn(c)) {
|
|
3174
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
3175
|
+
type: typeof m == "string" ? W.literal : W.object,
|
|
3176
|
+
value: m
|
|
3173
3177
|
});
|
|
3174
3178
|
continue;
|
|
3175
3179
|
}
|
|
3176
3180
|
if (Qt(c)) {
|
|
3177
|
-
var d = typeof c.style == "string" ? n.date[c.style] :
|
|
3181
|
+
var d = typeof c.style == "string" ? n.date[c.style] : ft(c.style) ? c.style.parsedOptions : void 0;
|
|
3178
3182
|
s.push({
|
|
3179
3183
|
type: W.literal,
|
|
3180
|
-
value: i.getDateTimeFormat(t, d).format(
|
|
3184
|
+
value: i.getDateTimeFormat(t, d).format(m)
|
|
3181
3185
|
});
|
|
3182
3186
|
continue;
|
|
3183
3187
|
}
|
|
3184
3188
|
if (Kt(c)) {
|
|
3185
|
-
var d = typeof c.style == "string" ? n.time[c.style] :
|
|
3189
|
+
var d = typeof c.style == "string" ? n.time[c.style] : ft(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3186
3190
|
s.push({
|
|
3187
3191
|
type: W.literal,
|
|
3188
|
-
value: i.getDateTimeFormat(t, d).format(
|
|
3192
|
+
value: i.getDateTimeFormat(t, d).format(m)
|
|
3189
3193
|
});
|
|
3190
3194
|
continue;
|
|
3191
3195
|
}
|
|
3192
3196
|
if (Jt(c)) {
|
|
3193
3197
|
var d = typeof c.style == "string" ? n.number[c.style] : ni(c.style) ? c.style.parsedOptions : void 0;
|
|
3194
|
-
d && d.scale && (
|
|
3198
|
+
d && d.scale && (m = m * (d.scale || 1)), s.push({
|
|
3195
3199
|
type: W.literal,
|
|
3196
|
-
value: i.getNumberFormat(t, d).format(
|
|
3200
|
+
value: i.getNumberFormat(t, d).format(m)
|
|
3197
3201
|
});
|
|
3198
3202
|
continue;
|
|
3199
3203
|
}
|
|
3200
3204
|
if (ii(c)) {
|
|
3201
3205
|
var E = c.children, _ = c.value, y = r[_];
|
|
3202
|
-
if (!
|
|
3203
|
-
throw new
|
|
3204
|
-
var v =
|
|
3205
|
-
return
|
|
3206
|
+
if (!Vn(y))
|
|
3207
|
+
throw new $n(_, "function", a);
|
|
3208
|
+
var v = Fe(E, t, i, n, r, o), O = y(v.map(function(S) {
|
|
3209
|
+
return S.value;
|
|
3206
3210
|
}));
|
|
3207
|
-
Array.isArray(
|
|
3211
|
+
Array.isArray(O) || (O = [O]), s.push.apply(s, O.map(function(S) {
|
|
3208
3212
|
return {
|
|
3209
|
-
type: typeof
|
|
3210
|
-
value:
|
|
3213
|
+
type: typeof S == "string" ? W.literal : W.object,
|
|
3214
|
+
value: S
|
|
3211
3215
|
};
|
|
3212
3216
|
}));
|
|
3213
3217
|
}
|
|
3214
3218
|
if (ei(c)) {
|
|
3215
|
-
var w = c.options[
|
|
3219
|
+
var w = c.options[m] || c.options.other;
|
|
3216
3220
|
if (!w)
|
|
3217
|
-
throw new Mt(c.value,
|
|
3218
|
-
s.push.apply(s,
|
|
3221
|
+
throw new Mt(c.value, m, Object.keys(c.options), a);
|
|
3222
|
+
s.push.apply(s, Fe(w.value, t, i, n, r));
|
|
3219
3223
|
continue;
|
|
3220
3224
|
}
|
|
3221
3225
|
if (ti(c)) {
|
|
3222
|
-
var w = c.options["=".concat(
|
|
3226
|
+
var w = c.options["=".concat(m)];
|
|
3223
3227
|
if (!w) {
|
|
3224
3228
|
if (!Intl.PluralRules)
|
|
3225
|
-
throw new
|
|
3229
|
+
throw new Je(`Intl.PluralRules is not available in this environment.
|
|
3226
3230
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3227
|
-
`,
|
|
3228
|
-
var
|
|
3229
|
-
w = c.options[
|
|
3231
|
+
`, xe.MISSING_INTL_API, a);
|
|
3232
|
+
var M = i.getPluralRules(t, { type: c.pluralType }).select(m - (c.offset || 0));
|
|
3233
|
+
w = c.options[M] || c.options.other;
|
|
3230
3234
|
}
|
|
3231
3235
|
if (!w)
|
|
3232
|
-
throw new Mt(c.value,
|
|
3233
|
-
s.push.apply(s,
|
|
3236
|
+
throw new Mt(c.value, m, Object.keys(c.options), a);
|
|
3237
|
+
s.push.apply(s, Fe(w.value, t, i, n, r, m - (c.offset || 0)));
|
|
3234
3238
|
continue;
|
|
3235
3239
|
}
|
|
3236
3240
|
}
|
|
3237
|
-
return
|
|
3241
|
+
return Fn(s);
|
|
3238
3242
|
}
|
|
3239
|
-
function
|
|
3240
|
-
return t ?
|
|
3241
|
-
return i[n] =
|
|
3243
|
+
function Xn(e, t) {
|
|
3244
|
+
return t ? oe(oe(oe({}, e || {}), t || {}), Object.keys(e).reduce(function(i, n) {
|
|
3245
|
+
return i[n] = oe(oe({}, e[n]), t[n] || {}), i;
|
|
3242
3246
|
}, {})) : e;
|
|
3243
3247
|
}
|
|
3244
|
-
function
|
|
3248
|
+
function qn(e, t) {
|
|
3245
3249
|
return t ? Object.keys(e).reduce(function(i, n) {
|
|
3246
|
-
return i[n] =
|
|
3247
|
-
},
|
|
3250
|
+
return i[n] = Xn(e[n], t[n]), i;
|
|
3251
|
+
}, oe({}, e)) : e;
|
|
3248
3252
|
}
|
|
3249
|
-
function
|
|
3253
|
+
function at(e) {
|
|
3250
3254
|
return {
|
|
3251
3255
|
create: function() {
|
|
3252
3256
|
return {
|
|
@@ -3260,39 +3264,39 @@ function ot(e) {
|
|
|
3260
3264
|
}
|
|
3261
3265
|
};
|
|
3262
3266
|
}
|
|
3263
|
-
function
|
|
3267
|
+
function Wn(e) {
|
|
3264
3268
|
return e === void 0 && (e = {
|
|
3265
3269
|
number: {},
|
|
3266
3270
|
dateTime: {},
|
|
3267
3271
|
pluralRules: {}
|
|
3268
3272
|
}), {
|
|
3269
|
-
getNumberFormat:
|
|
3273
|
+
getNumberFormat: rt(function() {
|
|
3270
3274
|
for (var t, i = [], n = 0; n < arguments.length; n++)
|
|
3271
3275
|
i[n] = arguments[n];
|
|
3272
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3276
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, nt([void 0], i, !1)))();
|
|
3273
3277
|
}, {
|
|
3274
|
-
cache:
|
|
3275
|
-
strategy:
|
|
3278
|
+
cache: at(e.number),
|
|
3279
|
+
strategy: ot.variadic
|
|
3276
3280
|
}),
|
|
3277
|
-
getDateTimeFormat:
|
|
3281
|
+
getDateTimeFormat: rt(function() {
|
|
3278
3282
|
for (var t, i = [], n = 0; n < arguments.length; n++)
|
|
3279
3283
|
i[n] = arguments[n];
|
|
3280
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3284
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, nt([void 0], i, !1)))();
|
|
3281
3285
|
}, {
|
|
3282
|
-
cache:
|
|
3283
|
-
strategy:
|
|
3286
|
+
cache: at(e.dateTime),
|
|
3287
|
+
strategy: ot.variadic
|
|
3284
3288
|
}),
|
|
3285
|
-
getPluralRules:
|
|
3289
|
+
getPluralRules: rt(function() {
|
|
3286
3290
|
for (var t, i = [], n = 0; n < arguments.length; n++)
|
|
3287
3291
|
i[n] = arguments[n];
|
|
3288
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3292
|
+
return new ((t = Intl.PluralRules).bind.apply(t, nt([void 0], i, !1)))();
|
|
3289
3293
|
}, {
|
|
3290
|
-
cache:
|
|
3291
|
-
strategy:
|
|
3294
|
+
cache: at(e.pluralRules),
|
|
3295
|
+
strategy: ot.variadic
|
|
3292
3296
|
})
|
|
3293
3297
|
};
|
|
3294
3298
|
}
|
|
3295
|
-
var
|
|
3299
|
+
var Zn = (
|
|
3296
3300
|
/** @class */
|
|
3297
3301
|
function() {
|
|
3298
3302
|
function e(t, i, n, r) {
|
|
@@ -3306,12 +3310,12 @@ var Wn = (
|
|
|
3306
3310
|
var l = o.formatToParts(u);
|
|
3307
3311
|
if (l.length === 1)
|
|
3308
3312
|
return l[0].value;
|
|
3309
|
-
var c = l.reduce(function(
|
|
3310
|
-
return !
|
|
3313
|
+
var c = l.reduce(function(p, m) {
|
|
3314
|
+
return !p.length || m.type !== W.literal || typeof p[p.length - 1] != "string" ? p.push(m.value) : p[p.length - 1] += m.value, p;
|
|
3311
3315
|
}, []);
|
|
3312
3316
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3313
3317
|
}, this.formatToParts = function(u) {
|
|
3314
|
-
return
|
|
3318
|
+
return Fe(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3315
3319
|
}, this.resolvedOptions = function() {
|
|
3316
3320
|
var u;
|
|
3317
3321
|
return {
|
|
@@ -3325,12 +3329,12 @@ var Wn = (
|
|
|
3325
3329
|
var a = r || {};
|
|
3326
3330
|
a.formatters;
|
|
3327
3331
|
var s = rn(a, ["formatters"]);
|
|
3328
|
-
this.ast = e.__parse(t,
|
|
3332
|
+
this.ast = e.__parse(t, oe(oe({}, s), { locale: this.resolvedLocale }));
|
|
3329
3333
|
} else
|
|
3330
3334
|
this.ast = t;
|
|
3331
3335
|
if (!Array.isArray(this.ast))
|
|
3332
3336
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3333
|
-
this.formats =
|
|
3337
|
+
this.formats = qn(e.formats, n), this.formatters = r && r.formatters || Wn(this.formatterCache);
|
|
3334
3338
|
}
|
|
3335
3339
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3336
3340
|
get: function() {
|
|
@@ -3343,7 +3347,7 @@ var Wn = (
|
|
|
3343
3347
|
var i = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3344
3348
|
return i.length > 0 ? new Intl.Locale(i[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3345
3349
|
}
|
|
3346
|
-
}, e.__parse =
|
|
3350
|
+
}, e.__parse = Gn, e.formats = {
|
|
3347
3351
|
number: {
|
|
3348
3352
|
integer: {
|
|
3349
3353
|
maximumFractionDigits: 0
|
|
@@ -3404,7 +3408,7 @@ var Wn = (
|
|
|
3404
3408
|
}, e;
|
|
3405
3409
|
}()
|
|
3406
3410
|
);
|
|
3407
|
-
function
|
|
3411
|
+
function Yn(e, t) {
|
|
3408
3412
|
if (t == null)
|
|
3409
3413
|
return;
|
|
3410
3414
|
if (t in e)
|
|
@@ -3425,92 +3429,92 @@ function Zn(e, t) {
|
|
|
3425
3429
|
n = void 0;
|
|
3426
3430
|
return n;
|
|
3427
3431
|
}
|
|
3428
|
-
const
|
|
3432
|
+
const le = {}, Jn = (e, t, i) => i && (t in le || (le[t] = {}), e in le[t] || (le[t][e] = i), i), hi = (e, t) => {
|
|
3429
3433
|
if (t == null)
|
|
3430
3434
|
return;
|
|
3431
|
-
if (t in
|
|
3432
|
-
return
|
|
3433
|
-
const i =
|
|
3435
|
+
if (t in le && e in le[t])
|
|
3436
|
+
return le[t][e];
|
|
3437
|
+
const i = Qe(t);
|
|
3434
3438
|
for (let n = 0; n < i.length; n++) {
|
|
3435
|
-
const r = i[n], o =
|
|
3439
|
+
const r = i[n], o = Kn(r, e);
|
|
3436
3440
|
if (o)
|
|
3437
|
-
return
|
|
3441
|
+
return Jn(e, t, o);
|
|
3438
3442
|
}
|
|
3439
3443
|
};
|
|
3440
3444
|
let _t;
|
|
3441
|
-
const
|
|
3442
|
-
function
|
|
3445
|
+
const De = Ze({});
|
|
3446
|
+
function Qn(e) {
|
|
3443
3447
|
return _t[e] || null;
|
|
3444
3448
|
}
|
|
3445
3449
|
function fi(e) {
|
|
3446
3450
|
return e in _t;
|
|
3447
3451
|
}
|
|
3448
|
-
function
|
|
3452
|
+
function Kn(e, t) {
|
|
3449
3453
|
if (!fi(e))
|
|
3450
3454
|
return null;
|
|
3451
|
-
const i =
|
|
3452
|
-
return
|
|
3455
|
+
const i = Qn(e);
|
|
3456
|
+
return Yn(i, t);
|
|
3453
3457
|
}
|
|
3454
|
-
function
|
|
3458
|
+
function er(e) {
|
|
3455
3459
|
if (e == null)
|
|
3456
3460
|
return;
|
|
3457
|
-
const t =
|
|
3461
|
+
const t = Qe(e);
|
|
3458
3462
|
for (let i = 0; i < t.length; i++) {
|
|
3459
3463
|
const n = t[i];
|
|
3460
3464
|
if (fi(n))
|
|
3461
3465
|
return n;
|
|
3462
3466
|
}
|
|
3463
3467
|
}
|
|
3464
|
-
function
|
|
3465
|
-
delete
|
|
3468
|
+
function pi(e, ...t) {
|
|
3469
|
+
delete le[e], De.update((i) => (i[e] = nn.all([i[e] || {}, ...t]), i));
|
|
3466
3470
|
}
|
|
3467
|
-
|
|
3468
|
-
[
|
|
3471
|
+
Pe(
|
|
3472
|
+
[De],
|
|
3469
3473
|
([e]) => Object.keys(e)
|
|
3470
3474
|
);
|
|
3471
|
-
|
|
3472
|
-
const
|
|
3473
|
-
function
|
|
3474
|
-
|
|
3475
|
+
De.subscribe((e) => _t = e);
|
|
3476
|
+
const Ve = {};
|
|
3477
|
+
function tr(e, t) {
|
|
3478
|
+
Ve[e].delete(t), Ve[e].size === 0 && delete Ve[e];
|
|
3475
3479
|
}
|
|
3476
|
-
function
|
|
3477
|
-
return
|
|
3480
|
+
function mi(e) {
|
|
3481
|
+
return Ve[e];
|
|
3478
3482
|
}
|
|
3479
|
-
function
|
|
3480
|
-
return
|
|
3481
|
-
const i =
|
|
3483
|
+
function ir(e) {
|
|
3484
|
+
return Qe(e).map((t) => {
|
|
3485
|
+
const i = mi(t);
|
|
3482
3486
|
return [t, i ? [...i] : []];
|
|
3483
3487
|
}).filter(([, t]) => t.length > 0);
|
|
3484
3488
|
}
|
|
3485
|
-
function
|
|
3486
|
-
return e == null ? !1 :
|
|
3489
|
+
function yt(e) {
|
|
3490
|
+
return e == null ? !1 : Qe(e).some(
|
|
3487
3491
|
(t) => {
|
|
3488
3492
|
var i;
|
|
3489
|
-
return (i =
|
|
3493
|
+
return (i = mi(t)) == null ? void 0 : i.size;
|
|
3490
3494
|
}
|
|
3491
3495
|
);
|
|
3492
3496
|
}
|
|
3493
|
-
function
|
|
3497
|
+
function nr(e, t) {
|
|
3494
3498
|
return Promise.all(
|
|
3495
|
-
t.map((n) => (
|
|
3496
|
-
).then((n) =>
|
|
3499
|
+
t.map((n) => (tr(e, n), n().then((r) => r.default || r)))
|
|
3500
|
+
).then((n) => pi(e, ...n));
|
|
3497
3501
|
}
|
|
3498
|
-
const
|
|
3502
|
+
const ke = {};
|
|
3499
3503
|
function di(e) {
|
|
3500
|
-
if (!
|
|
3501
|
-
return e in
|
|
3502
|
-
const t =
|
|
3503
|
-
return
|
|
3504
|
+
if (!yt(e))
|
|
3505
|
+
return e in ke ? ke[e] : Promise.resolve();
|
|
3506
|
+
const t = ir(e);
|
|
3507
|
+
return ke[e] = Promise.all(
|
|
3504
3508
|
t.map(
|
|
3505
|
-
([i, n]) =>
|
|
3509
|
+
([i, n]) => nr(i, n)
|
|
3506
3510
|
)
|
|
3507
3511
|
).then(() => {
|
|
3508
|
-
if (
|
|
3512
|
+
if (yt(e))
|
|
3509
3513
|
return di(e);
|
|
3510
|
-
delete
|
|
3511
|
-
}),
|
|
3514
|
+
delete ke[e];
|
|
3515
|
+
}), ke[e];
|
|
3512
3516
|
}
|
|
3513
|
-
const
|
|
3517
|
+
const rr = {
|
|
3514
3518
|
number: {
|
|
3515
3519
|
scientific: { notation: "scientific" },
|
|
3516
3520
|
engineering: { notation: "engineering" },
|
|
@@ -3539,141 +3543,141 @@ const nr = {
|
|
|
3539
3543
|
timeZoneName: "short"
|
|
3540
3544
|
}
|
|
3541
3545
|
}
|
|
3542
|
-
},
|
|
3546
|
+
}, or = {
|
|
3543
3547
|
fallbackLocale: null,
|
|
3544
3548
|
loadingDelay: 200,
|
|
3545
|
-
formats:
|
|
3549
|
+
formats: rr,
|
|
3546
3550
|
warnOnMissingMessages: !0,
|
|
3547
3551
|
handleMissingMessage: void 0,
|
|
3548
3552
|
ignoreTag: !0
|
|
3549
|
-
},
|
|
3550
|
-
function
|
|
3551
|
-
return
|
|
3553
|
+
}, sr = or;
|
|
3554
|
+
function Te() {
|
|
3555
|
+
return sr;
|
|
3552
3556
|
}
|
|
3553
|
-
const
|
|
3554
|
-
var
|
|
3557
|
+
const lt = Ze(!1);
|
|
3558
|
+
var ar = Object.defineProperty, lr = Object.defineProperties, ur = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable, Rt = (e, t, i) => t in e ? ar(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, fr = (e, t) => {
|
|
3555
3559
|
for (var i in t || (t = {}))
|
|
3556
|
-
|
|
3560
|
+
cr.call(t, i) && Rt(e, i, t[i]);
|
|
3557
3561
|
if (Dt)
|
|
3558
3562
|
for (var i of Dt(t))
|
|
3559
|
-
|
|
3563
|
+
hr.call(t, i) && Rt(e, i, t[i]);
|
|
3560
3564
|
return e;
|
|
3561
|
-
},
|
|
3562
|
-
let
|
|
3563
|
-
const
|
|
3565
|
+
}, pr = (e, t) => lr(e, ur(t));
|
|
3566
|
+
let vt;
|
|
3567
|
+
const qe = Ze(null);
|
|
3564
3568
|
function Ut(e) {
|
|
3565
3569
|
return e.split("-").map((t, i, n) => n.slice(0, i + 1).join("-")).reverse();
|
|
3566
3570
|
}
|
|
3567
|
-
function
|
|
3571
|
+
function Qe(e, t = Te().fallbackLocale) {
|
|
3568
3572
|
const i = Ut(e);
|
|
3569
3573
|
return t ? [.../* @__PURE__ */ new Set([...i, ...Ut(t)])] : i;
|
|
3570
3574
|
}
|
|
3571
|
-
function
|
|
3572
|
-
return
|
|
3575
|
+
function he() {
|
|
3576
|
+
return vt ?? void 0;
|
|
3573
3577
|
}
|
|
3574
|
-
|
|
3575
|
-
|
|
3578
|
+
qe.subscribe((e) => {
|
|
3579
|
+
vt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3576
3580
|
});
|
|
3577
3581
|
const mr = (e) => {
|
|
3578
|
-
if (e &&
|
|
3579
|
-
const { loadingDelay: t } =
|
|
3582
|
+
if (e && er(e) && yt(e)) {
|
|
3583
|
+
const { loadingDelay: t } = Te();
|
|
3580
3584
|
let i;
|
|
3581
|
-
return typeof window < "u" &&
|
|
3582
|
-
() =>
|
|
3585
|
+
return typeof window < "u" && he() != null && t ? i = window.setTimeout(
|
|
3586
|
+
() => lt.set(!0),
|
|
3583
3587
|
t
|
|
3584
|
-
) :
|
|
3585
|
-
|
|
3588
|
+
) : lt.set(!0), di(e).then(() => {
|
|
3589
|
+
qe.set(e);
|
|
3586
3590
|
}).finally(() => {
|
|
3587
|
-
clearTimeout(i),
|
|
3591
|
+
clearTimeout(i), lt.set(!1);
|
|
3588
3592
|
});
|
|
3589
3593
|
}
|
|
3590
|
-
return
|
|
3591
|
-
},
|
|
3594
|
+
return qe.set(e);
|
|
3595
|
+
}, we = pr(fr({}, qe), {
|
|
3592
3596
|
set: mr
|
|
3593
|
-
}),
|
|
3597
|
+
}), Ke = (e) => {
|
|
3594
3598
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3595
3599
|
return (n) => {
|
|
3596
3600
|
const r = JSON.stringify(n);
|
|
3597
3601
|
return r in t ? t[r] : t[r] = e(n);
|
|
3598
3602
|
};
|
|
3599
3603
|
};
|
|
3600
|
-
var
|
|
3604
|
+
var dr = Object.defineProperty, We = Object.getOwnPropertySymbols, gi = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, jt = (e, t, i) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, xt = (e, t) => {
|
|
3601
3605
|
for (var i in t || (t = {}))
|
|
3602
|
-
|
|
3603
|
-
if (
|
|
3604
|
-
for (var i of
|
|
3605
|
-
|
|
3606
|
+
gi.call(t, i) && jt(e, i, t[i]);
|
|
3607
|
+
if (We)
|
|
3608
|
+
for (var i of We(t))
|
|
3609
|
+
bi.call(t, i) && jt(e, i, t[i]);
|
|
3606
3610
|
return e;
|
|
3607
|
-
},
|
|
3611
|
+
}, Be = (e, t) => {
|
|
3608
3612
|
var i = {};
|
|
3609
3613
|
for (var n in e)
|
|
3610
|
-
|
|
3611
|
-
if (e != null &&
|
|
3612
|
-
for (var n of
|
|
3613
|
-
t.indexOf(n) < 0 &&
|
|
3614
|
+
gi.call(e, n) && t.indexOf(n) < 0 && (i[n] = e[n]);
|
|
3615
|
+
if (e != null && We)
|
|
3616
|
+
for (var n of We(e))
|
|
3617
|
+
t.indexOf(n) < 0 && bi.call(e, n) && (i[n] = e[n]);
|
|
3614
3618
|
return i;
|
|
3615
3619
|
};
|
|
3616
|
-
const
|
|
3617
|
-
const { formats: i } =
|
|
3620
|
+
const Me = (e, t) => {
|
|
3621
|
+
const { formats: i } = Te();
|
|
3618
3622
|
if (e in i && t in i[e])
|
|
3619
3623
|
return i[e][t];
|
|
3620
3624
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3621
|
-
},
|
|
3625
|
+
}, gr = Ke(
|
|
3622
3626
|
(e) => {
|
|
3623
|
-
var t = e, { locale: i, format: n } = t, r =
|
|
3627
|
+
var t = e, { locale: i, format: n } = t, r = Be(t, ["locale", "format"]);
|
|
3624
3628
|
if (i == null)
|
|
3625
3629
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3626
|
-
return n && (r =
|
|
3630
|
+
return n && (r = Me("number", n)), new Intl.NumberFormat(i, r);
|
|
3627
3631
|
}
|
|
3628
|
-
), br =
|
|
3632
|
+
), br = Ke(
|
|
3629
3633
|
(e) => {
|
|
3630
|
-
var t = e, { locale: i, format: n } = t, r =
|
|
3634
|
+
var t = e, { locale: i, format: n } = t, r = Be(t, ["locale", "format"]);
|
|
3631
3635
|
if (i == null)
|
|
3632
3636
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3633
|
-
return n ? r =
|
|
3637
|
+
return n ? r = Me("date", n) : Object.keys(r).length === 0 && (r = Me("date", "short")), new Intl.DateTimeFormat(i, r);
|
|
3634
3638
|
}
|
|
3635
|
-
),
|
|
3639
|
+
), yr = Ke(
|
|
3636
3640
|
(e) => {
|
|
3637
|
-
var t = e, { locale: i, format: n } = t, r =
|
|
3641
|
+
var t = e, { locale: i, format: n } = t, r = Be(t, ["locale", "format"]);
|
|
3638
3642
|
if (i == null)
|
|
3639
3643
|
throw new Error(
|
|
3640
3644
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3641
3645
|
);
|
|
3642
|
-
return n ? r =
|
|
3646
|
+
return n ? r = Me("time", n) : Object.keys(r).length === 0 && (r = Me("time", "short")), new Intl.DateTimeFormat(i, r);
|
|
3643
3647
|
}
|
|
3644
|
-
),
|
|
3648
|
+
), vr = (e = {}) => {
|
|
3645
3649
|
var t = e, {
|
|
3646
|
-
locale: i =
|
|
3647
|
-
} = t, n =
|
|
3650
|
+
locale: i = he()
|
|
3651
|
+
} = t, n = Be(t, [
|
|
3648
3652
|
"locale"
|
|
3649
3653
|
]);
|
|
3650
|
-
return
|
|
3651
|
-
},
|
|
3654
|
+
return gr(xt({ locale: i }, n));
|
|
3655
|
+
}, Er = (e = {}) => {
|
|
3652
3656
|
var t = e, {
|
|
3653
|
-
locale: i =
|
|
3654
|
-
} = t, n =
|
|
3657
|
+
locale: i = he()
|
|
3658
|
+
} = t, n = Be(t, [
|
|
3655
3659
|
"locale"
|
|
3656
3660
|
]);
|
|
3657
3661
|
return br(xt({ locale: i }, n));
|
|
3658
|
-
},
|
|
3662
|
+
}, _r = (e = {}) => {
|
|
3659
3663
|
var t = e, {
|
|
3660
|
-
locale: i =
|
|
3661
|
-
} = t, n =
|
|
3664
|
+
locale: i = he()
|
|
3665
|
+
} = t, n = Be(t, [
|
|
3662
3666
|
"locale"
|
|
3663
3667
|
]);
|
|
3664
|
-
return
|
|
3665
|
-
},
|
|
3668
|
+
return yr(xt({ locale: i }, n));
|
|
3669
|
+
}, xr = Ke(
|
|
3666
3670
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3667
|
-
(e, t =
|
|
3668
|
-
ignoreTag:
|
|
3671
|
+
(e, t = he()) => new Zn(e, t, Te().formats, {
|
|
3672
|
+
ignoreTag: Te().ignoreTag
|
|
3669
3673
|
})
|
|
3670
|
-
),
|
|
3674
|
+
), Tr = (e, t = {}) => {
|
|
3671
3675
|
var i, n, r, o;
|
|
3672
3676
|
let a = t;
|
|
3673
3677
|
typeof e == "object" && (a = e, e = a.id);
|
|
3674
3678
|
const {
|
|
3675
3679
|
values: s,
|
|
3676
|
-
locale: u =
|
|
3680
|
+
locale: u = he(),
|
|
3677
3681
|
default: l
|
|
3678
3682
|
} = a;
|
|
3679
3683
|
if (u == null)
|
|
@@ -3682,33 +3686,33 @@ const Oe = (e, t) => {
|
|
|
3682
3686
|
);
|
|
3683
3687
|
let c = hi(e, u);
|
|
3684
3688
|
if (!c)
|
|
3685
|
-
c = (o = (r = (n = (i =
|
|
3689
|
+
c = (o = (r = (n = (i = Te()).handleMissingMessage) == null ? void 0 : n.call(i, { locale: u, id: e, defaultValue: l })) != null ? r : l) != null ? o : e;
|
|
3686
3690
|
else if (typeof c != "string")
|
|
3687
3691
|
return console.warn(
|
|
3688
3692
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3689
3693
|
), c;
|
|
3690
3694
|
if (!s)
|
|
3691
3695
|
return c;
|
|
3692
|
-
let
|
|
3696
|
+
let p = c;
|
|
3693
3697
|
try {
|
|
3694
|
-
|
|
3695
|
-
} catch (
|
|
3696
|
-
|
|
3698
|
+
p = xr(c, u).format(s);
|
|
3699
|
+
} catch (m) {
|
|
3700
|
+
m instanceof Error && console.warn(
|
|
3697
3701
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3698
|
-
|
|
3702
|
+
m.message
|
|
3699
3703
|
);
|
|
3700
3704
|
}
|
|
3701
|
-
return
|
|
3702
|
-
},
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3705
|
+
return p;
|
|
3706
|
+
}, Pr = (e, t) => _r(t).format(e), wr = (e, t) => Er(t).format(e), Br = (e, t) => vr(t).format(e), Lr = (e, t = he()) => hi(e, t), Sr = Pe([we, De], () => Tr);
|
|
3707
|
+
Pe([we], () => Pr);
|
|
3708
|
+
Pe([we], () => wr);
|
|
3709
|
+
Pe([we], () => Br);
|
|
3710
|
+
Pe([we, De], () => Lr);
|
|
3707
3711
|
function Gt(e, t) {
|
|
3708
|
-
|
|
3712
|
+
pi(e, t);
|
|
3709
3713
|
}
|
|
3710
3714
|
function Ar(e) {
|
|
3711
|
-
|
|
3715
|
+
we.set(e);
|
|
3712
3716
|
}
|
|
3713
3717
|
const $t = {
|
|
3714
3718
|
en: {
|
|
@@ -3971,13 +3975,13 @@ const $t = {
|
|
|
3971
3975
|
kyc2: "For the selected limit, we require documents that show your financial situation. Please upload your last payslip as well as a current bank statement, that shows the account balance as well as that you received the salary payment."
|
|
3972
3976
|
}
|
|
3973
3977
|
};
|
|
3974
|
-
function
|
|
3978
|
+
function Ir(e, t) {
|
|
3975
3979
|
if (e) {
|
|
3976
3980
|
const i = document.createElement("style");
|
|
3977
3981
|
i.innerHTML = t, e.appendChild(i);
|
|
3978
3982
|
}
|
|
3979
3983
|
}
|
|
3980
|
-
function
|
|
3984
|
+
function kr(e, t) {
|
|
3981
3985
|
if (!e || !t)
|
|
3982
3986
|
return;
|
|
3983
3987
|
const i = new URL(t);
|
|
@@ -3988,7 +3992,7 @@ function Ir(e, t) {
|
|
|
3988
3992
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3989
3993
|
});
|
|
3990
3994
|
}
|
|
3991
|
-
function
|
|
3995
|
+
function Hr(e, t, i) {
|
|
3992
3996
|
if (window.emMessageBus) {
|
|
3993
3997
|
const n = document.createElement("style");
|
|
3994
3998
|
window.emMessageBus.subscribe(t, (r) => {
|
|
@@ -3996,42 +4000,42 @@ function kr(e, t, i) {
|
|
|
3996
4000
|
});
|
|
3997
4001
|
}
|
|
3998
4002
|
}
|
|
3999
|
-
function
|
|
4003
|
+
function Cr(e) {
|
|
4000
4004
|
Ei(e, "svelte-1a4l86f", ':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:0.8rem}*,*::before,*::after{margin:0;padding:0;list-style:none;outline:none;box-sizing:border-box}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-popup-2{background:var(--emw--color-black, #000000);color:var(--emw--color-white, #000)}.Title{font-weight:800;font-size:18px}button{display:block;font-size:0.75rem;padding:12px 0;border:0;border-radius:2px;cursor:pointer}button.PrimaryButtonStyle{font-size:14px;color:#fff;background:rgb(122, 195, 23)}button.SecondaryButtonStyle{border:1px solid #999;color:#666;background:#fff}.LinkButton{display:inline;padding:0;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));text-decoration:underline;background-color:rgba(0, 0, 0, 0)}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center;margin:12px 0}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.Overlay{position:absolute;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center}.ModalContainer{position:fixed;top:30vh;width:320px;height:auto;padding:18px 14px;background:#fff;border-radius:4px}.InitialWrapper{display:flex;flex-direction:column;gap:12px}.AdditionalInformation{margin:10px 0;font-size:14px}.TermsConditions{font-size:12px}.ExpandButton{font-size:14px;background-color:var(--emw--color-white, #FFFFFF);border:0;padding:0;margin-top:-10px;color:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;cursor:pointer}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.LeftAlign{text-align:left;font-size:16px}.CenterAlign{text-align:center}.SetLimitSection{display:flex;flex-direction:column;gap:6px}.DepositTextSection{display:flex;justify-content:space-between}.DepositInputSection{height:32px;display:flex;gap:4px}.DepositInput{flex-grow:1;padding:0 6px}.SubmitDepositButton{flex-grow:1;font-size:0.75rem;padding:0}.SubmitDepositButton[disabled]{align-items:center;color:var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed;background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-300, #58586B)}.Hidden{display:none}.Extended{transform:rotate(180deg)}');
|
|
4001
4005
|
}
|
|
4002
|
-
function
|
|
4006
|
+
function Nr(e) {
|
|
4003
4007
|
let t;
|
|
4004
4008
|
function i(o, a) {
|
|
4005
4009
|
if (
|
|
4006
4010
|
/*popupState*/
|
|
4007
4011
|
o[10] === "initial"
|
|
4008
4012
|
)
|
|
4009
|
-
return
|
|
4013
|
+
return jr;
|
|
4010
4014
|
if (
|
|
4011
4015
|
/*popupState*/
|
|
4012
4016
|
o[10] === "successful"
|
|
4013
4017
|
)
|
|
4014
|
-
return
|
|
4018
|
+
return Ur;
|
|
4015
4019
|
if (
|
|
4016
4020
|
/*popupState*/
|
|
4017
4021
|
o[10] === "KYC"
|
|
4018
4022
|
)
|
|
4019
|
-
return
|
|
4023
|
+
return Rr;
|
|
4020
4024
|
if (
|
|
4021
4025
|
/*popupState*/
|
|
4022
4026
|
o[10] === "KYC2"
|
|
4023
4027
|
)
|
|
4024
|
-
return
|
|
4028
|
+
return Dr;
|
|
4025
4029
|
if (
|
|
4026
4030
|
/*popupState*/
|
|
4027
4031
|
o[10] === "error"
|
|
4028
4032
|
)
|
|
4029
|
-
return
|
|
4033
|
+
return Mr;
|
|
4030
4034
|
}
|
|
4031
4035
|
let n = i(e), r = n && n(e);
|
|
4032
4036
|
return {
|
|
4033
4037
|
c() {
|
|
4034
|
-
t =
|
|
4038
|
+
t = b("div"), r && r.c(), h(t, "class", "InitialWrapper");
|
|
4035
4039
|
},
|
|
4036
4040
|
m(o, a) {
|
|
4037
4041
|
T(o, t, a), r && r.m(t, null);
|
|
@@ -4044,14 +4048,14 @@ function Cr(e) {
|
|
|
4044
4048
|
}
|
|
4045
4049
|
};
|
|
4046
4050
|
}
|
|
4047
|
-
function
|
|
4051
|
+
function Or(e) {
|
|
4048
4052
|
let t, i = (
|
|
4049
4053
|
/*$_*/
|
|
4050
4054
|
e[12]("loading") + ""
|
|
4051
4055
|
), n;
|
|
4052
4056
|
return {
|
|
4053
4057
|
c() {
|
|
4054
|
-
t =
|
|
4058
|
+
t = b("p"), n = L(i);
|
|
4055
4059
|
},
|
|
4056
4060
|
m(r, o) {
|
|
4057
4061
|
T(r, t, o), f(t, n);
|
|
@@ -4059,31 +4063,31 @@ function Nr(e) {
|
|
|
4059
4063
|
p(r, o) {
|
|
4060
4064
|
o[0] & /*$_*/
|
|
4061
4065
|
4096 && i !== (i = /*$_*/
|
|
4062
|
-
r[12]("loading") + "") &&
|
|
4066
|
+
r[12]("loading") + "") && k(n, i);
|
|
4063
4067
|
},
|
|
4064
4068
|
d(r) {
|
|
4065
4069
|
r && x(t);
|
|
4066
4070
|
}
|
|
4067
4071
|
};
|
|
4068
4072
|
}
|
|
4069
|
-
function
|
|
4073
|
+
function Mr(e) {
|
|
4070
4074
|
let t, i = (
|
|
4071
4075
|
/*$_*/
|
|
4072
4076
|
e[12]("depositError") + ""
|
|
4073
4077
|
), n, r, o, a, s, u = (
|
|
4074
4078
|
/*$_*/
|
|
4075
4079
|
e[12]("errorDescription") + ""
|
|
4076
|
-
), l, c,
|
|
4080
|
+
), l, c, p, m = (
|
|
4077
4081
|
/*$_*/
|
|
4078
4082
|
e[12]("closeButton") + ""
|
|
4079
4083
|
), d, E, _;
|
|
4080
4084
|
return {
|
|
4081
4085
|
c() {
|
|
4082
|
-
t =
|
|
4086
|
+
t = b("p"), n = L(i), r = N(), o = b("div"), o.innerHTML = '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve"><metadata>Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata><g><path d="M500,100.9c220,0,399.1,179,399.1,399.1S720.1,899.1,500,899.1c-220.1,0-399.1-179-399.1-399.1C100.9,279.9,279.9,100.9,500,100.9 M500,10C229.4,10,10,229.4,10,500c0,270.6,219.4,490,490,490c270.6,0,490-219.4,490-490C990,229.4,770.6,10,500,10L500,10z"></path><path d="M658.7,734.5L272.2,348l75-75l386.4,386.4L658.7,734.5z"></path><path d="M347.2,734.5l-75-75L658.7,273l75,75L347.2,734.5z"></path></g></svg>', a = N(), s = b("p"), l = L(u), c = N(), p = b("button"), d = L(m), h(t, "class", "Title"), h(o, "class", "ResultIconWrapper"), h(s, "class", "Description CenterAlign"), h(p, "class", "ConfirmButton SecondaryButtonStyle");
|
|
4083
4087
|
},
|
|
4084
4088
|
m(y, v) {
|
|
4085
|
-
T(y, t, v), f(t, n), T(y, r, v), T(y, o, v), T(y, a, v), T(y, s, v), f(s, l), T(y, c, v), T(y,
|
|
4086
|
-
|
|
4089
|
+
T(y, t, v), f(t, n), T(y, r, v), T(y, o, v), T(y, a, v), T(y, s, v), f(s, l), T(y, c, v), T(y, p, v), f(p, d), E || (_ = Z(
|
|
4090
|
+
p,
|
|
4087
4091
|
"click",
|
|
4088
4092
|
/*click_handler_10*/
|
|
4089
4093
|
e[37]
|
|
@@ -4092,43 +4096,43 @@ function Or(e) {
|
|
|
4092
4096
|
p(y, v) {
|
|
4093
4097
|
v[0] & /*$_*/
|
|
4094
4098
|
4096 && i !== (i = /*$_*/
|
|
4095
|
-
y[12]("depositError") + "") &&
|
|
4099
|
+
y[12]("depositError") + "") && k(n, i), v[0] & /*$_*/
|
|
4096
4100
|
4096 && u !== (u = /*$_*/
|
|
4097
|
-
y[12]("errorDescription") + "") &&
|
|
4098
|
-
4096 &&
|
|
4099
|
-
y[12]("closeButton") + "") &&
|
|
4101
|
+
y[12]("errorDescription") + "") && k(l, u), v[0] & /*$_*/
|
|
4102
|
+
4096 && m !== (m = /*$_*/
|
|
4103
|
+
y[12]("closeButton") + "") && k(d, m);
|
|
4100
4104
|
},
|
|
4101
4105
|
d(y) {
|
|
4102
|
-
y && (x(t), x(r), x(o), x(a), x(s), x(c), x(
|
|
4106
|
+
y && (x(t), x(r), x(o), x(a), x(s), x(c), x(p)), E = !1, _();
|
|
4103
4107
|
}
|
|
4104
4108
|
};
|
|
4105
4109
|
}
|
|
4106
|
-
function
|
|
4110
|
+
function Dr(e) {
|
|
4107
4111
|
let t, i = (
|
|
4108
4112
|
/*$_*/
|
|
4109
4113
|
e[12]("docsRequired") + ""
|
|
4110
|
-
), n, r, o, a, s, u, l, c,
|
|
4114
|
+
), n, r, o, a, s, u, l, c, p, m = (
|
|
4111
4115
|
/*$_*/
|
|
4112
4116
|
e[12]("docsRequired") + ""
|
|
4113
4117
|
), d, E, _, y = (
|
|
4114
4118
|
/*$_*/
|
|
4115
4119
|
e[12]("kyc2") + ""
|
|
4116
|
-
), v,
|
|
4120
|
+
), v, O, w, M = (
|
|
4117
4121
|
/*$_*/
|
|
4118
4122
|
e[12]("kycButton") + ""
|
|
4119
|
-
),
|
|
4123
|
+
), S, D, z, H = (
|
|
4120
4124
|
/*$_*/
|
|
4121
4125
|
e[12]("closeButton") + ""
|
|
4122
|
-
),
|
|
4126
|
+
), R, G, X;
|
|
4123
4127
|
return {
|
|
4124
4128
|
c() {
|
|
4125
|
-
t =
|
|
4129
|
+
t = b("p"), n = L(i), r = N(), o = b("div"), a = b("div"), s = Y("svg"), u = Y("g"), l = Y("path"), c = N(), p = b("p"), d = L(m), E = N(), _ = b("p"), v = L(y), O = N(), w = b("button"), S = L(M), D = N(), z = b("button"), R = L(H), h(t, "class", "Title"), h(l, "id", "XMLID_6_"), h(l, "d", `M426.2,55h-99.8C318,23.3,290,0,255.5,0S193,23.3,184.7,55H84.9c-27,0-48.5,22.4-48.5,48.5v360
|
|
4126
4130
|
c0,27,22.4,48.5,48.5,48.5h342.3c27,0,48.5-22.4,48.5-48.5v-360C475.6,76.5,453.2,55,426.2,55z M255.5,55
|
|
4127
4131
|
c13.1,0,24.2,11.2,24.2,24.2s-11.2,24.2-24.2,24.2s-24.2-11.2-24.2-24.2S242.5,55,255.5,55z M429.9,467.2H81.1V100.7h45.7v82.1
|
|
4128
|
-
h256.5v-82.1H429v366.5H429.9z`), h(u, "id", "XMLID_1_"), h(s, "version", "1.1"), h(s, "id", "Layer_1"), h(s, "xmlns", "http://www.w3.org/2000/svg"), h(s, "xmlns:xlink", "http://www.w3.org/1999/xlink"), h(s, "x", "0px"), h(s, "y", "0px"), h(s, "viewBox", "0 0 512 512"),
|
|
4132
|
+
h256.5v-82.1H429v366.5H429.9z`), h(u, "id", "XMLID_1_"), h(s, "version", "1.1"), h(s, "id", "Layer_1"), h(s, "xmlns", "http://www.w3.org/2000/svg"), h(s, "xmlns:xlink", "http://www.w3.org/1999/xlink"), h(s, "x", "0px"), h(s, "y", "0px"), h(s, "viewBox", "0 0 512 512"), He(s, "enable-background", "new 0 0 512 512"), h(s, "xml:space", "preserve"), h(a, "class", "ResultIconWrapper"), h(_, "class", "Description CenterAlign"), h(o, "class", "DescriptionWrapper"), h(w, "class", "KycButton PrimaryButtonStyle"), h(z, "class", "ConfirmButton SecondaryButtonStyle");
|
|
4129
4133
|
},
|
|
4130
|
-
m(P,
|
|
4131
|
-
T(P, t,
|
|
4134
|
+
m(P, U) {
|
|
4135
|
+
T(P, t, U), f(t, n), T(P, r, U), T(P, o, U), f(o, a), f(a, s), f(s, u), f(u, l), f(a, c), f(a, p), f(p, d), f(o, E), f(o, _), f(_, v), T(P, O, U), T(P, w, U), f(w, S), T(P, D, U), T(P, z, U), f(z, R), G || (X = [
|
|
4132
4136
|
Z(
|
|
4133
4137
|
w,
|
|
4134
4138
|
"click",
|
|
@@ -4136,68 +4140,68 @@ function Mr(e) {
|
|
|
4136
4140
|
e[35]
|
|
4137
4141
|
),
|
|
4138
4142
|
Z(
|
|
4139
|
-
|
|
4143
|
+
z,
|
|
4140
4144
|
"click",
|
|
4141
4145
|
/*click_handler_9*/
|
|
4142
4146
|
e[36]
|
|
4143
4147
|
)
|
|
4144
|
-
],
|
|
4148
|
+
], G = !0);
|
|
4145
4149
|
},
|
|
4146
|
-
p(P,
|
|
4147
|
-
|
|
4150
|
+
p(P, U) {
|
|
4151
|
+
U[0] & /*$_*/
|
|
4148
4152
|
4096 && i !== (i = /*$_*/
|
|
4149
|
-
P[12]("docsRequired") + "") &&
|
|
4150
|
-
4096 &&
|
|
4151
|
-
P[12]("docsRequired") + "") &&
|
|
4153
|
+
P[12]("docsRequired") + "") && k(n, i), U[0] & /*$_*/
|
|
4154
|
+
4096 && m !== (m = /*$_*/
|
|
4155
|
+
P[12]("docsRequired") + "") && k(d, m), U[0] & /*$_*/
|
|
4152
4156
|
4096 && y !== (y = /*$_*/
|
|
4153
|
-
P[12]("kyc2") + "") &&
|
|
4154
|
-
4096 &&
|
|
4155
|
-
P[12]("kycButton") + "") &&
|
|
4156
|
-
4096 &&
|
|
4157
|
-
P[12]("closeButton") + "") &&
|
|
4157
|
+
P[12]("kyc2") + "") && k(v, y), U[0] & /*$_*/
|
|
4158
|
+
4096 && M !== (M = /*$_*/
|
|
4159
|
+
P[12]("kycButton") + "") && k(S, M), U[0] & /*$_*/
|
|
4160
|
+
4096 && H !== (H = /*$_*/
|
|
4161
|
+
P[12]("closeButton") + "") && k(R, H);
|
|
4158
4162
|
},
|
|
4159
4163
|
d(P) {
|
|
4160
|
-
P && (x(t), x(r), x(o), x(
|
|
4164
|
+
P && (x(t), x(r), x(o), x(O), x(w), x(D), x(z)), G = !1, ue(X);
|
|
4161
4165
|
}
|
|
4162
4166
|
};
|
|
4163
4167
|
}
|
|
4164
|
-
function
|
|
4168
|
+
function Rr(e) {
|
|
4165
4169
|
let t, i = (
|
|
4166
4170
|
/*$_*/
|
|
4167
4171
|
e[12]("depositLimit") + ""
|
|
4168
|
-
), n, r, o, a, s, u, l, c,
|
|
4172
|
+
), n, r, o, a, s, u, l, c, p, m = (
|
|
4169
4173
|
/*$_*/
|
|
4170
4174
|
e[12]("successful") + ""
|
|
4171
4175
|
), d, E, _, y = (
|
|
4172
4176
|
/*$_*/
|
|
4173
4177
|
e[12]("kyc1Part1") + ""
|
|
4174
|
-
), v,
|
|
4178
|
+
), v, O, w, M, S = (
|
|
4175
4179
|
/*$_*/
|
|
4176
4180
|
e[12]("kyc1Part2") + ""
|
|
4177
|
-
),
|
|
4181
|
+
), D, z, H, R = (
|
|
4178
4182
|
/*$_*/
|
|
4179
4183
|
e[12]("kycButton") + ""
|
|
4180
|
-
),
|
|
4184
|
+
), G, X, P, U = (
|
|
4181
4185
|
/*$_*/
|
|
4182
4186
|
e[12]("closeButton") + ""
|
|
4183
|
-
), ie, ne,
|
|
4187
|
+
), ie, ne, ae;
|
|
4184
4188
|
return {
|
|
4185
4189
|
c() {
|
|
4186
|
-
t =
|
|
4190
|
+
t = b("p"), n = L(i), r = N(), o = b("div"), a = b("div"), s = Y("svg"), u = Y("g"), l = Y("path"), c = N(), p = b("p"), d = L(m), E = N(), _ = b("p"), v = L(y), O = L(
|
|
4187
4191
|
/*legislatorLimitValue*/
|
|
4188
4192
|
e[11]
|
|
4189
|
-
), w =
|
|
4193
|
+
), w = N(), M = L(
|
|
4190
4194
|
/*currency*/
|
|
4191
4195
|
e[0]
|
|
4192
|
-
),
|
|
4196
|
+
), D = L(S), z = N(), H = b("button"), G = L(R), X = N(), P = b("button"), ie = L(U), h(t, "class", "Title"), h(l, "id", "XMLID_6_"), h(l, "d", `M426.2,55h-99.8C318,23.3,290,0,255.5,0S193,23.3,184.7,55H84.9c-27,0-48.5,22.4-48.5,48.5v360
|
|
4193
4197
|
c0,27,22.4,48.5,48.5,48.5h342.3c27,0,48.5-22.4,48.5-48.5v-360C475.6,76.5,453.2,55,426.2,55z M255.5,55
|
|
4194
4198
|
c13.1,0,24.2,11.2,24.2,24.2s-11.2,24.2-24.2,24.2s-24.2-11.2-24.2-24.2S242.5,55,255.5,55z M429.9,467.2H81.1V100.7h45.7v82.1
|
|
4195
|
-
h256.5v-82.1H429v366.5H429.9z`), h(u, "id", "XMLID_1_"), h(s, "version", "1.1"), h(s, "id", "Layer_1"), h(s, "xmlns", "http://www.w3.org/2000/svg"), h(s, "xmlns:xlink", "http://www.w3.org/1999/xlink"), h(s, "x", "0px"), h(s, "y", "0px"), h(s, "viewBox", "0 0 512 512"),
|
|
4199
|
+
h256.5v-82.1H429v366.5H429.9z`), h(u, "id", "XMLID_1_"), h(s, "version", "1.1"), h(s, "id", "Layer_1"), h(s, "xmlns", "http://www.w3.org/2000/svg"), h(s, "xmlns:xlink", "http://www.w3.org/1999/xlink"), h(s, "x", "0px"), h(s, "y", "0px"), h(s, "viewBox", "0 0 512 512"), He(s, "enable-background", "new 0 0 512 512"), h(s, "xml:space", "preserve"), h(a, "class", "ResultIconWrapper"), h(_, "class", "Description CenterAlign"), h(o, "class", "DescriptionWrapper"), h(H, "class", "KycButton PrimaryButtonStyle"), h(P, "class", "ConfirmButton SecondaryButtonStyle");
|
|
4196
4200
|
},
|
|
4197
|
-
m(
|
|
4198
|
-
T(
|
|
4201
|
+
m(F, j) {
|
|
4202
|
+
T(F, t, j), f(t, n), T(F, r, j), T(F, o, j), f(o, a), f(a, s), f(s, u), f(u, l), f(a, c), f(a, p), f(p, d), f(o, E), f(o, _), f(_, v), f(_, O), f(_, w), f(_, M), f(_, D), T(F, z, j), T(F, H, j), f(H, G), T(F, X, j), T(F, P, j), f(P, ie), ne || (ae = [
|
|
4199
4203
|
Z(
|
|
4200
|
-
|
|
4204
|
+
H,
|
|
4201
4205
|
"click",
|
|
4202
4206
|
/*click_handler_6*/
|
|
4203
4207
|
e[33]
|
|
@@ -4210,75 +4214,75 @@ function Dr(e) {
|
|
|
4210
4214
|
)
|
|
4211
4215
|
], ne = !0);
|
|
4212
4216
|
},
|
|
4213
|
-
p(
|
|
4214
|
-
|
|
4217
|
+
p(F, j) {
|
|
4218
|
+
j[0] & /*$_*/
|
|
4215
4219
|
4096 && i !== (i = /*$_*/
|
|
4216
|
-
|
|
4217
|
-
4096 &&
|
|
4218
|
-
|
|
4220
|
+
F[12]("depositLimit") + "") && k(n, i), j[0] & /*$_*/
|
|
4221
|
+
4096 && m !== (m = /*$_*/
|
|
4222
|
+
F[12]("successful") + "") && k(d, m), j[0] & /*$_*/
|
|
4219
4223
|
4096 && y !== (y = /*$_*/
|
|
4220
|
-
|
|
4221
|
-
2048 &&
|
|
4222
|
-
|
|
4224
|
+
F[12]("kyc1Part1") + "") && k(v, y), j[0] & /*legislatorLimitValue*/
|
|
4225
|
+
2048 && k(
|
|
4226
|
+
O,
|
|
4223
4227
|
/*legislatorLimitValue*/
|
|
4224
|
-
|
|
4225
|
-
),
|
|
4226
|
-
1 &&
|
|
4227
|
-
|
|
4228
|
+
F[11]
|
|
4229
|
+
), j[0] & /*currency*/
|
|
4230
|
+
1 && k(
|
|
4231
|
+
M,
|
|
4228
4232
|
/*currency*/
|
|
4229
|
-
|
|
4230
|
-
),
|
|
4231
|
-
4096 &&
|
|
4232
|
-
|
|
4233
|
+
F[0]
|
|
4234
|
+
), j[0] & /*$_*/
|
|
4235
|
+
4096 && S !== (S = /*$_*/
|
|
4236
|
+
F[12]("kyc1Part2") + "") && k(D, S), j[0] & /*$_*/
|
|
4237
|
+
4096 && R !== (R = /*$_*/
|
|
4238
|
+
F[12]("kycButton") + "") && k(G, R), j[0] & /*$_*/
|
|
4233
4239
|
4096 && U !== (U = /*$_*/
|
|
4234
|
-
|
|
4235
|
-
4096 && j !== (j = /*$_*/
|
|
4236
|
-
V[12]("closeButton") + "") && H(ie, j);
|
|
4240
|
+
F[12]("closeButton") + "") && k(ie, U);
|
|
4237
4241
|
},
|
|
4238
|
-
d(
|
|
4239
|
-
|
|
4242
|
+
d(F) {
|
|
4243
|
+
F && (x(t), x(r), x(o), x(z), x(H), x(X), x(P)), ne = !1, ue(ae);
|
|
4240
4244
|
}
|
|
4241
4245
|
};
|
|
4242
4246
|
}
|
|
4243
|
-
function
|
|
4247
|
+
function Ur(e) {
|
|
4244
4248
|
let t, i = (
|
|
4245
4249
|
/*$_*/
|
|
4246
4250
|
e[12]("depositLimit") + ""
|
|
4247
|
-
), n, r, o, a, s, u, l, c,
|
|
4251
|
+
), n, r, o, a, s, u, l, c, p, m, d, E, _ = (
|
|
4248
4252
|
/*$_*/
|
|
4249
4253
|
e[12]("successful") + ""
|
|
4250
|
-
), y, v,
|
|
4254
|
+
), y, v, O, w = (
|
|
4251
4255
|
/*$_*/
|
|
4252
4256
|
e[12]("successDescription") + ""
|
|
4253
|
-
),
|
|
4257
|
+
), M, S, D, z, H;
|
|
4254
4258
|
return {
|
|
4255
4259
|
c() {
|
|
4256
|
-
t =
|
|
4257
|
-
`),
|
|
4260
|
+
t = b("p"), n = L(i), r = N(), o = b("div"), a = b("div"), s = Y("svg"), u = Y("defs"), l = Y("style"), c = L(`.fil0 {fill:black;fill-rule:nonzero}
|
|
4261
|
+
`), p = Y("g"), m = Y("polygon"), d = N(), E = b("p"), y = L(_), v = N(), O = b("p"), M = L(w), S = N(), D = b("button"), D.textContent = "OK", h(t, "class", "Title"), h(l, "type", "text/css"), h(m, "class", "fil0"), h(m, "points", "0,38 10,25 36,47 78,0 90,11 37,69 "), h(s, "xmlns", "http://www.w3.org/2000/svg"), h(s, "xmlns:xlink", "http://www.w3.org/1999/xlink"), h(s, "xml:space", "preserve"), h(s, "version", "1.1"), He(s, "shape-rendering", "geometricPrecision"), He(s, "text-rendering", "geometricPrecision"), He(s, "image-rendering", "optimizeQuality"), h(s, "viewBox", "0 0 90 69"), h(s, "x", "0px"), h(s, "y", "0px"), h(s, "fill-rule", "evenodd"), h(s, "clip-rule", "evenodd"), h(a, "class", "ResultIconWrapper"), h(O, "class", "Description CenterAlign"), h(o, "class", "DescriptionWrapper"), h(D, "class", "ConfirmButton PrimaryButtonStyle");
|
|
4258
4262
|
},
|
|
4259
|
-
m(
|
|
4260
|
-
T(
|
|
4261
|
-
|
|
4263
|
+
m(R, G) {
|
|
4264
|
+
T(R, t, G), f(t, n), T(R, r, G), T(R, o, G), f(o, a), f(a, s), f(s, u), f(u, l), f(l, c), f(s, p), f(p, m), f(a, d), f(a, E), f(E, y), f(o, v), f(o, O), f(O, M), T(R, S, G), T(R, D, G), z || (H = Z(
|
|
4265
|
+
D,
|
|
4262
4266
|
"click",
|
|
4263
4267
|
/*click_handler_5*/
|
|
4264
4268
|
e[32]
|
|
4265
|
-
),
|
|
4269
|
+
), z = !0);
|
|
4266
4270
|
},
|
|
4267
|
-
p(
|
|
4268
|
-
|
|
4271
|
+
p(R, G) {
|
|
4272
|
+
G[0] & /*$_*/
|
|
4269
4273
|
4096 && i !== (i = /*$_*/
|
|
4270
|
-
|
|
4274
|
+
R[12]("depositLimit") + "") && k(n, i), G[0] & /*$_*/
|
|
4271
4275
|
4096 && _ !== (_ = /*$_*/
|
|
4272
|
-
|
|
4276
|
+
R[12]("successful") + "") && k(y, _), G[0] & /*$_*/
|
|
4273
4277
|
4096 && w !== (w = /*$_*/
|
|
4274
|
-
|
|
4278
|
+
R[12]("successDescription") + "") && k(M, w);
|
|
4275
4279
|
},
|
|
4276
|
-
d(
|
|
4277
|
-
|
|
4280
|
+
d(R) {
|
|
4281
|
+
R && (x(t), x(r), x(o), x(S), x(D)), z = !1, H();
|
|
4278
4282
|
}
|
|
4279
4283
|
};
|
|
4280
4284
|
}
|
|
4281
|
-
function
|
|
4285
|
+
function jr(e) {
|
|
4282
4286
|
let t, i = (
|
|
4283
4287
|
/*$_*/
|
|
4284
4288
|
e[12]("setLimit") + ""
|
|
@@ -4288,54 +4292,54 @@ function Ur(e) {
|
|
|
4288
4292
|
), s, u, l, c = (
|
|
4289
4293
|
/*$_*/
|
|
4290
4294
|
e[12]("lugasInfo1") + ""
|
|
4291
|
-
),
|
|
4295
|
+
), p, m, d, E = (
|
|
4292
4296
|
/*$_*/
|
|
4293
4297
|
e[12]("lugasInfo2") + ""
|
|
4294
|
-
), _, y, v,
|
|
4298
|
+
), _, y, v, O = (
|
|
4295
4299
|
/*$_*/
|
|
4296
4300
|
e[12]("keepCurrentLimit") + ""
|
|
4297
|
-
), w,
|
|
4301
|
+
), w, M, S, D = (
|
|
4298
4302
|
/*$_*/
|
|
4299
4303
|
e[12]("keepCurrentLimitButton") + ""
|
|
4300
|
-
),
|
|
4304
|
+
), z, H, R, G, X, P, U, ie, ne = (
|
|
4301
4305
|
/*$_*/
|
|
4302
4306
|
e[12]("depositPeriod") + ""
|
|
4303
|
-
),
|
|
4307
|
+
), ae, F, j, Q, Re, re, fe = (
|
|
4304
4308
|
/*$_*/
|
|
4305
4309
|
e[12]("applyButton") + ""
|
|
4306
|
-
),
|
|
4310
|
+
), Le, Se, J, pe = (
|
|
4307
4311
|
/*$_*/
|
|
4308
4312
|
e[12]("TCpart1") + ""
|
|
4309
|
-
), Ae,
|
|
4313
|
+
), Ae, ce, me = (
|
|
4310
4314
|
/*$_*/
|
|
4311
4315
|
e[12]("TClink") + ""
|
|
4312
|
-
),
|
|
4316
|
+
), Ie, g, q = (
|
|
4313
4317
|
/*$_*/
|
|
4314
4318
|
e[12]("TCpart2") + ""
|
|
4315
|
-
),
|
|
4319
|
+
), se, Ue, K, je = (
|
|
4316
4320
|
/*$_*/
|
|
4317
4321
|
e[12]("PPlink") + ""
|
|
4318
|
-
),
|
|
4322
|
+
), et, Tt, tt, Pt;
|
|
4319
4323
|
return {
|
|
4320
4324
|
c() {
|
|
4321
|
-
t =
|
|
4322
|
-
|
|
4325
|
+
t = b("p"), n = L(i), r = N(), o = b("p"), s = L(a), u = N(), l = b("p"), p = L(c), m = N(), d = b("button"), _ = L(E), y = N(), v = b("button"), w = L(O), M = N(), S = b("button"), z = L(D), H = Y("svg"), R = Y("path"), G = Y("path"), X = N(), P = b("div"), U = b("div"), ie = b("span"), ae = L(ne), F = N(), j = b("div"), Q = b("input"), Re = N(), re = b("button"), Le = L(fe), Se = N(), J = b("p"), Ae = L(pe), ce = b("button"), Ie = L(me), g = N(), se = L(q), Ue = N(), K = b("button"), et = L(je), Tt = L("."), h(t, "class", "Title"), h(o, "class", "Description LeftAlign"), h(d, "class", "LinkButton"), h(l, "class", "AdditionalInformation"), h(v, "class", "KeepCurrentButton PrimaryButtonStyle"), h(R, "d", "M10.5 15l7.5 7.5 7.5-7.5z"), h(G, "d", "M0 0h36v36h-36z"), h(G, "fill", "none"), h(H, "class", "ExpandArrow"), h(H, "xmlns", "http://www.w3.org/2000/svg"), h(H, "width", "36"), h(H, "height", "36"), h(H, "viewBox", "0 0 36 36"), h(H, "fill", "#999"), Ge(
|
|
4326
|
+
H,
|
|
4323
4327
|
"Extended",
|
|
4324
4328
|
/*extended*/
|
|
4325
4329
|
e[5]
|
|
4326
|
-
), h(
|
|
4330
|
+
), h(S, "class", "ExpandButton"), h(ie, "class", "DepositPeriodText"), h(U, "class", "DepositTextSection"), h(Q, "type", "number"), h(Q, "class", "DepositInput"), h(re, "type", "submit"), h(re, "class", "SubmitDepositButton PrimaryButtonStyle"), re.disabled = !0, h(j, "class", "DepositInputSection"), h(P, "class", "SetLimitSection"), Ge(
|
|
4327
4331
|
P,
|
|
4328
4332
|
"Hidden",
|
|
4329
4333
|
/*hidden*/
|
|
4330
4334
|
e[4]
|
|
4331
|
-
), h(
|
|
4335
|
+
), h(ce, "class", "LinkButton"), h(K, "class", "LinkButton"), h(J, "class", "TermsConditions");
|
|
4332
4336
|
},
|
|
4333
|
-
m(I,
|
|
4334
|
-
T(I, t,
|
|
4337
|
+
m(I, C) {
|
|
4338
|
+
T(I, t, C), f(t, n), T(I, r, C), T(I, o, C), f(o, s), T(I, u, C), T(I, l, C), f(l, p), f(l, m), f(l, d), f(d, _), T(I, y, C), T(I, v, C), f(v, w), T(I, M, C), T(I, S, C), f(S, z), f(S, H), f(H, R), f(H, G), e[26](H), T(I, X, C), T(I, P, C), f(P, U), f(U, ie), f(ie, ae), f(P, F), f(P, j), f(j, Q), Bt(
|
|
4335
4339
|
Q,
|
|
4336
4340
|
/*inputAmount*/
|
|
4337
4341
|
e[6]
|
|
4338
|
-
), f(
|
|
4342
|
+
), f(j, Re), f(j, re), f(re, Le), e[28](re), T(I, Se, C), T(I, J, C), f(J, Ae), f(J, ce), f(ce, Ie), f(J, g), f(J, se), f(J, Ue), f(J, K), f(K, et), f(J, Tt), tt || (Pt = [
|
|
4339
4343
|
Z(
|
|
4340
4344
|
d,
|
|
4341
4345
|
"click",
|
|
@@ -4349,7 +4353,7 @@ function Ur(e) {
|
|
|
4349
4353
|
e[25]
|
|
4350
4354
|
),
|
|
4351
4355
|
Z(
|
|
4352
|
-
|
|
4356
|
+
S,
|
|
4353
4357
|
"click",
|
|
4354
4358
|
/*toggleNewLimitArea*/
|
|
4355
4359
|
e[13]
|
|
@@ -4373,7 +4377,7 @@ function Ur(e) {
|
|
|
4373
4377
|
e[29]
|
|
4374
4378
|
),
|
|
4375
4379
|
Z(
|
|
4376
|
-
|
|
4380
|
+
ce,
|
|
4377
4381
|
"click",
|
|
4378
4382
|
/*click_handler_3*/
|
|
4379
4383
|
e[30]
|
|
@@ -4384,76 +4388,76 @@ function Ur(e) {
|
|
|
4384
4388
|
/*click_handler_4*/
|
|
4385
4389
|
e[31]
|
|
4386
4390
|
)
|
|
4387
|
-
],
|
|
4391
|
+
], tt = !0);
|
|
4388
4392
|
},
|
|
4389
|
-
p(I,
|
|
4390
|
-
|
|
4393
|
+
p(I, C) {
|
|
4394
|
+
C[0] & /*$_*/
|
|
4391
4395
|
4096 && i !== (i = /*$_*/
|
|
4392
|
-
I[12]("setLimit") + "") &&
|
|
4396
|
+
I[12]("setLimit") + "") && k(n, i), C[0] & /*$_*/
|
|
4393
4397
|
4096 && a !== (a = /*$_*/
|
|
4394
|
-
I[12]("setLimitDescription") + "") &&
|
|
4398
|
+
I[12]("setLimitDescription") + "") && k(s, a), C[0] & /*$_*/
|
|
4395
4399
|
4096 && c !== (c = /*$_*/
|
|
4396
|
-
I[12]("lugasInfo1") + "") &&
|
|
4400
|
+
I[12]("lugasInfo1") + "") && k(p, c), C[0] & /*$_*/
|
|
4397
4401
|
4096 && E !== (E = /*$_*/
|
|
4398
|
-
I[12]("lugasInfo2") + "") &&
|
|
4399
|
-
4096 &&
|
|
4400
|
-
I[12]("keepCurrentLimit") + "") &&
|
|
4401
|
-
4096 &&
|
|
4402
|
-
I[12]("keepCurrentLimitButton") + "") &&
|
|
4403
|
-
32 &&
|
|
4404
|
-
|
|
4402
|
+
I[12]("lugasInfo2") + "") && k(_, E), C[0] & /*$_*/
|
|
4403
|
+
4096 && O !== (O = /*$_*/
|
|
4404
|
+
I[12]("keepCurrentLimit") + "") && k(w, O), C[0] & /*$_*/
|
|
4405
|
+
4096 && D !== (D = /*$_*/
|
|
4406
|
+
I[12]("keepCurrentLimitButton") + "") && k(z, D), C[0] & /*extended*/
|
|
4407
|
+
32 && Ge(
|
|
4408
|
+
H,
|
|
4405
4409
|
"Extended",
|
|
4406
4410
|
/*extended*/
|
|
4407
4411
|
I[5]
|
|
4408
|
-
),
|
|
4412
|
+
), C[0] & /*$_*/
|
|
4409
4413
|
4096 && ne !== (ne = /*$_*/
|
|
4410
|
-
I[12]("depositPeriod") + "") &&
|
|
4414
|
+
I[12]("depositPeriod") + "") && k(ae, ne), C[0] & /*inputAmount*/
|
|
4411
4415
|
64 && Xt(Q.value) !== /*inputAmount*/
|
|
4412
4416
|
I[6] && Bt(
|
|
4413
4417
|
Q,
|
|
4414
4418
|
/*inputAmount*/
|
|
4415
4419
|
I[6]
|
|
4416
|
-
),
|
|
4417
|
-
4096 &&
|
|
4418
|
-
I[12]("applyButton") + "") &&
|
|
4419
|
-
16 &&
|
|
4420
|
+
), C[0] & /*$_*/
|
|
4421
|
+
4096 && fe !== (fe = /*$_*/
|
|
4422
|
+
I[12]("applyButton") + "") && k(Le, fe), C[0] & /*hidden*/
|
|
4423
|
+
16 && Ge(
|
|
4420
4424
|
P,
|
|
4421
4425
|
"Hidden",
|
|
4422
4426
|
/*hidden*/
|
|
4423
4427
|
I[4]
|
|
4424
|
-
),
|
|
4425
|
-
4096 &&
|
|
4426
|
-
I[12]("TCpart1") + "") &&
|
|
4428
|
+
), C[0] & /*$_*/
|
|
4429
|
+
4096 && pe !== (pe = /*$_*/
|
|
4430
|
+
I[12]("TCpart1") + "") && k(Ae, pe), C[0] & /*$_*/
|
|
4427
4431
|
4096 && me !== (me = /*$_*/
|
|
4428
|
-
I[12]("TClink") + "") &&
|
|
4432
|
+
I[12]("TClink") + "") && k(Ie, me), C[0] & /*$_*/
|
|
4429
4433
|
4096 && q !== (q = /*$_*/
|
|
4430
|
-
I[12]("TCpart2") + "") &&
|
|
4431
|
-
4096 &&
|
|
4432
|
-
I[12]("PPlink") + "") &&
|
|
4434
|
+
I[12]("TCpart2") + "") && k(se, q), C[0] & /*$_*/
|
|
4435
|
+
4096 && je !== (je = /*$_*/
|
|
4436
|
+
I[12]("PPlink") + "") && k(et, je);
|
|
4433
4437
|
},
|
|
4434
4438
|
d(I) {
|
|
4435
|
-
I && (x(t), x(r), x(o), x(u), x(l), x(y), x(v), x(
|
|
4439
|
+
I && (x(t), x(r), x(o), x(u), x(l), x(y), x(v), x(M), x(S), x(X), x(P), x(Se), x(J)), e[26](null), e[28](null), tt = !1, ue(Pt);
|
|
4436
4440
|
}
|
|
4437
4441
|
};
|
|
4438
4442
|
}
|
|
4439
|
-
function
|
|
4443
|
+
function Gr(e) {
|
|
4440
4444
|
let t, i, n, r;
|
|
4441
4445
|
function o(u, l) {
|
|
4442
4446
|
if (
|
|
4443
4447
|
/*isLoading*/
|
|
4444
4448
|
u[7]
|
|
4445
4449
|
)
|
|
4446
|
-
return
|
|
4450
|
+
return Or;
|
|
4447
4451
|
if (
|
|
4448
4452
|
/*lang*/
|
|
4449
4453
|
u[1]
|
|
4450
4454
|
)
|
|
4451
|
-
return
|
|
4455
|
+
return Nr;
|
|
4452
4456
|
}
|
|
4453
4457
|
let a = o(e), s = a && a(e);
|
|
4454
4458
|
return {
|
|
4455
4459
|
c() {
|
|
4456
|
-
t =
|
|
4460
|
+
t = b("div"), i = b("div"), n = b("div"), r = b("div"), s && s.c(), h(r, "class", "ModalContainer"), h(n, "class", "Overlay"), h(i, "class", "player-account-gaming-limits-popup-2");
|
|
4457
4461
|
},
|
|
4458
4462
|
m(u, l) {
|
|
4459
4463
|
T(u, t, l), f(t, i), f(i, n), f(n, r), s && s.m(r, null), e[38](i), e[39](t);
|
|
@@ -4468,111 +4472,111 @@ function jr(e) {
|
|
|
4468
4472
|
}
|
|
4469
4473
|
};
|
|
4470
4474
|
}
|
|
4471
|
-
function
|
|
4475
|
+
function $r(e, t, i) {
|
|
4472
4476
|
let n;
|
|
4473
|
-
vi(e,
|
|
4474
|
-
let { userid: r = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { currency: s = "" } = t, { lang: u = "" } = t, { translationurl: l = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl:
|
|
4475
|
-
const
|
|
4477
|
+
vi(e, Sr, (g) => i(12, n = g));
|
|
4478
|
+
let { userid: r = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { currency: s = "" } = t, { lang: u = "" } = t, { translationurl: l = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: p = "" } = t, { mbsource: m } = t, d, E, _ = !0, y = !1, v, O = !1, w, M, S = "initial", D;
|
|
4479
|
+
const z = () => {
|
|
4476
4480
|
fetch(l).then((q) => q.json()).then((q) => {
|
|
4477
|
-
Object.keys(q).forEach((
|
|
4478
|
-
Gt(
|
|
4481
|
+
Object.keys(q).forEach((se) => {
|
|
4482
|
+
Gt(se, q[se]);
|
|
4479
4483
|
});
|
|
4480
4484
|
}).catch((q) => {
|
|
4481
4485
|
console.log(q);
|
|
4482
4486
|
});
|
|
4483
4487
|
};
|
|
4484
|
-
Object.keys($t).forEach((
|
|
4485
|
-
Gt(
|
|
4488
|
+
Object.keys($t).forEach((g) => {
|
|
4489
|
+
Gt(g, $t[g]);
|
|
4486
4490
|
});
|
|
4487
|
-
const
|
|
4491
|
+
const H = () => {
|
|
4488
4492
|
i(5, y = !y), i(4, _ = !_);
|
|
4489
|
-
},
|
|
4490
|
-
|
|
4491
|
-
},
|
|
4493
|
+
}, R = () => {
|
|
4494
|
+
M.parentNode.removeChild(M);
|
|
4495
|
+
}, G = () => {
|
|
4492
4496
|
v > 999999999999999 && i(6, v = 999999999999999);
|
|
4493
4497
|
const q = v - Math.floor(v) === 0;
|
|
4494
4498
|
v > 0 && q ? w.removeAttribute("disabled") : w.setAttribute("disabled", "true");
|
|
4495
|
-
}, X = (
|
|
4496
|
-
switch (window.postMessage({ type:
|
|
4499
|
+
}, X = (g) => {
|
|
4500
|
+
switch (window.postMessage({ type: g }, window.location.href), g) {
|
|
4497
4501
|
case "closePopup":
|
|
4498
4502
|
case "uploadDocuments":
|
|
4499
|
-
|
|
4503
|
+
R();
|
|
4500
4504
|
break;
|
|
4501
4505
|
}
|
|
4502
|
-
}, P = (
|
|
4506
|
+
}, P = (g) => {
|
|
4503
4507
|
const q = new URL(`/v1/player/${r}/limit/lugas`, a);
|
|
4504
|
-
let
|
|
4505
|
-
i(7,
|
|
4506
|
-
let
|
|
4508
|
+
let se = {};
|
|
4509
|
+
i(7, O = !0), se = g === "custom" ? { amount: v } : {};
|
|
4510
|
+
let Ue = {
|
|
4507
4511
|
method: "POST",
|
|
4508
4512
|
headers: {
|
|
4509
4513
|
"X-SessionID": o,
|
|
4510
4514
|
"Content-Type": "application/json",
|
|
4511
4515
|
Accept: "application/json"
|
|
4512
4516
|
},
|
|
4513
|
-
body: JSON.stringify(
|
|
4517
|
+
body: JSON.stringify(se)
|
|
4514
4518
|
};
|
|
4515
|
-
fetch(q.href,
|
|
4516
|
-
|
|
4519
|
+
fetch(q.href, Ue).then((K) => K.json()).then((K) => {
|
|
4520
|
+
U(K);
|
|
4517
4521
|
}).catch((K) => {
|
|
4518
4522
|
console.log(K);
|
|
4519
4523
|
}).finally(() => {
|
|
4520
|
-
i(7,
|
|
4524
|
+
i(7, O = !1);
|
|
4521
4525
|
});
|
|
4522
|
-
},
|
|
4523
|
-
if (
|
|
4524
|
-
switch (
|
|
4526
|
+
}, U = (g) => {
|
|
4527
|
+
if (g.hasOwnProperty("kycNeeded"))
|
|
4528
|
+
switch (g.popup) {
|
|
4525
4529
|
case 1:
|
|
4526
|
-
i(10,
|
|
4530
|
+
i(10, S = "KYC"), i(11, D = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(g.operatorDepositLimitAmount));
|
|
4527
4531
|
break;
|
|
4528
4532
|
case 2:
|
|
4529
|
-
i(10,
|
|
4533
|
+
i(10, S = "successful");
|
|
4530
4534
|
break;
|
|
4531
4535
|
case 3:
|
|
4532
|
-
i(10,
|
|
4536
|
+
i(10, S = "KYC2");
|
|
4533
4537
|
break;
|
|
4534
4538
|
}
|
|
4535
4539
|
else
|
|
4536
|
-
i(10,
|
|
4540
|
+
i(10, S = "error");
|
|
4537
4541
|
}, ie = () => {
|
|
4538
4542
|
Ar(u);
|
|
4539
4543
|
};
|
|
4540
4544
|
Bi(() => () => {
|
|
4541
4545
|
});
|
|
4542
|
-
const ne = () => X("lugasInformation"),
|
|
4543
|
-
function
|
|
4544
|
-
|
|
4545
|
-
E =
|
|
4546
|
+
const ne = () => X("lugasInformation"), ae = () => P("default");
|
|
4547
|
+
function F(g) {
|
|
4548
|
+
ye[g ? "unshift" : "push"](() => {
|
|
4549
|
+
E = g, i(3, E);
|
|
4546
4550
|
});
|
|
4547
4551
|
}
|
|
4548
|
-
function
|
|
4552
|
+
function j() {
|
|
4549
4553
|
v = Xt(this.value), i(6, v);
|
|
4550
4554
|
}
|
|
4551
|
-
function Q(
|
|
4552
|
-
|
|
4553
|
-
w =
|
|
4555
|
+
function Q(g) {
|
|
4556
|
+
ye[g ? "unshift" : "push"](() => {
|
|
4557
|
+
w = g, i(8, w);
|
|
4554
4558
|
});
|
|
4555
4559
|
}
|
|
4556
|
-
const
|
|
4557
|
-
function me(
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
+
const Re = () => P("custom"), re = () => X("termsConditions"), fe = () => X("privacyPolicy"), Le = () => X("closePopup"), Se = () => X("uploadDocuments"), J = () => X("closePopup"), pe = () => X("uploadDocuments"), Ae = () => X("closePopup"), ce = () => X("closePopup");
|
|
4561
|
+
function me(g) {
|
|
4562
|
+
ye[g ? "unshift" : "push"](() => {
|
|
4563
|
+
M = g, i(9, M);
|
|
4560
4564
|
});
|
|
4561
4565
|
}
|
|
4562
|
-
function
|
|
4563
|
-
|
|
4564
|
-
d =
|
|
4566
|
+
function Ie(g) {
|
|
4567
|
+
ye[g ? "unshift" : "push"](() => {
|
|
4568
|
+
d = g, i(2, d);
|
|
4565
4569
|
});
|
|
4566
4570
|
}
|
|
4567
|
-
return e.$$set = (
|
|
4568
|
-
"userid" in
|
|
4571
|
+
return e.$$set = (g) => {
|
|
4572
|
+
"userid" in g && i(17, r = g.userid), "session" in g && i(18, o = g.session), "endpoint" in g && i(19, a = g.endpoint), "currency" in g && i(0, s = g.currency), "lang" in g && i(1, u = g.lang), "translationurl" in g && i(20, l = g.translationurl), "clientstyling" in g && i(21, c = g.clientstyling), "clientstylingurl" in g && i(22, p = g.clientstylingurl), "mbsource" in g && i(23, m = g.mbsource);
|
|
4569
4573
|
}, e.$$.update = () => {
|
|
4570
4574
|
e.$$.dirty[0] & /*lang*/
|
|
4571
4575
|
2 && u && ie(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4572
|
-
2097156 && c && d &&
|
|
4573
|
-
4194308 &&
|
|
4574
|
-
8388612 &&
|
|
4575
|
-
1048576 && l &&
|
|
4576
|
+
2097156 && c && d && Ir(d, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4577
|
+
4194308 && p && d && kr(d, p), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4578
|
+
8388612 && m && d && Hr(d, `${m}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4579
|
+
1048576 && l && z();
|
|
4576
4580
|
}, [
|
|
4577
4581
|
s,
|
|
4578
4582
|
u,
|
|
@@ -4581,14 +4585,14 @@ function Gr(e, t, i) {
|
|
|
4581
4585
|
_,
|
|
4582
4586
|
y,
|
|
4583
4587
|
v,
|
|
4584
|
-
|
|
4588
|
+
O,
|
|
4585
4589
|
w,
|
|
4590
|
+
M,
|
|
4591
|
+
S,
|
|
4586
4592
|
D,
|
|
4587
|
-
A,
|
|
4588
|
-
R,
|
|
4589
4593
|
n,
|
|
4590
|
-
|
|
4591
|
-
|
|
4594
|
+
H,
|
|
4595
|
+
G,
|
|
4592
4596
|
X,
|
|
4593
4597
|
P,
|
|
4594
4598
|
r,
|
|
@@ -4596,33 +4600,33 @@ function Gr(e, t, i) {
|
|
|
4596
4600
|
a,
|
|
4597
4601
|
l,
|
|
4598
4602
|
c,
|
|
4599
|
-
m,
|
|
4600
4603
|
p,
|
|
4604
|
+
m,
|
|
4601
4605
|
ne,
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4606
|
+
ae,
|
|
4607
|
+
F,
|
|
4608
|
+
j,
|
|
4605
4609
|
Q,
|
|
4606
|
-
|
|
4610
|
+
Re,
|
|
4607
4611
|
re,
|
|
4608
|
-
|
|
4609
|
-
Be,
|
|
4612
|
+
fe,
|
|
4610
4613
|
Le,
|
|
4614
|
+
Se,
|
|
4611
4615
|
J,
|
|
4612
|
-
|
|
4616
|
+
pe,
|
|
4613
4617
|
Ae,
|
|
4614
|
-
|
|
4618
|
+
ce,
|
|
4615
4619
|
me,
|
|
4616
|
-
|
|
4620
|
+
Ie
|
|
4617
4621
|
];
|
|
4618
4622
|
}
|
|
4619
|
-
class
|
|
4623
|
+
class zr extends Ri {
|
|
4620
4624
|
constructor(t) {
|
|
4621
4625
|
super(), Mi(
|
|
4622
4626
|
this,
|
|
4623
4627
|
t,
|
|
4628
|
+
$r,
|
|
4624
4629
|
Gr,
|
|
4625
|
-
jr,
|
|
4626
4630
|
Ft,
|
|
4627
4631
|
{
|
|
4628
4632
|
userid: 17,
|
|
@@ -4635,7 +4639,7 @@ class $r extends Ri {
|
|
|
4635
4639
|
clientstylingurl: 22,
|
|
4636
4640
|
mbsource: 23
|
|
4637
4641
|
},
|
|
4638
|
-
|
|
4642
|
+
Cr,
|
|
4639
4643
|
[-1, -1]
|
|
4640
4644
|
);
|
|
4641
4645
|
}
|
|
@@ -4694,7 +4698,7 @@ class $r extends Ri {
|
|
|
4694
4698
|
this.$$set({ mbsource: t }), ee();
|
|
4695
4699
|
}
|
|
4696
4700
|
}
|
|
4697
|
-
Di(
|
|
4701
|
+
Di(zr, { userid: {}, session: {}, endpoint: {}, currency: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
4698
4702
|
export {
|
|
4699
|
-
|
|
4703
|
+
zr as P
|
|
4700
4704
|
};
|