@everymatrix/player-account-gaming-limits-popup-2 1.86.4 → 1.86.5
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
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var Pi = Object.defineProperty, wi = Object.defineProperties;
|
|
2
2
|
var Bi = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Lt = Object.getOwnPropertySymbols;
|
|
4
|
-
var Li = Object.prototype.hasOwnProperty,
|
|
5
|
-
var
|
|
4
|
+
var Li = Object.prototype.hasOwnProperty, Si = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var nt = (e, t, i) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, St = (e, t) => {
|
|
6
6
|
for (var i in t || (t = {}))
|
|
7
|
-
Li.call(t, i) &&
|
|
7
|
+
Li.call(t, i) && nt(e, i, t[i]);
|
|
8
8
|
if (Lt)
|
|
9
9
|
for (var i of Lt(t))
|
|
10
|
-
|
|
10
|
+
Si.call(t, i) && nt(e, i, t[i]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var Q = (e, t, i) => (
|
|
12
|
+
}, At = (e, t) => wi(e, Bi(t));
|
|
13
|
+
var Q = (e, t, i) => (nt(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
14
14
|
var It = (e, t, i) => new Promise((n, r) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
@@ -35,16 +35,16 @@ function Zt(e) {
|
|
|
35
35
|
function kt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function ce(e) {
|
|
39
39
|
e.forEach(Zt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function xt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function Yt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Ai(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
50
|
function Jt(e, ...t) {
|
|
@@ -65,7 +65,7 @@ function f(e, t) {
|
|
|
65
65
|
function ki(e, t, i) {
|
|
66
66
|
const n = Hi(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const r =
|
|
68
|
+
const r = b("style");
|
|
69
69
|
r.id = t, r.textContent = i, Ci(n, r);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -92,7 +92,7 @@ function T(e, t, i) {
|
|
|
92
92
|
function x(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function b(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
98
|
function Y(e) {
|
|
@@ -101,7 +101,7 @@ function Y(e) {
|
|
|
101
101
|
function L(e) {
|
|
102
102
|
return document.createTextNode(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function N() {
|
|
105
105
|
return L(" ");
|
|
106
106
|
}
|
|
107
107
|
function Z(e, t, i, n) {
|
|
@@ -116,17 +116,17 @@ function Qt(e) {
|
|
|
116
116
|
function Ni(e) {
|
|
117
117
|
return Array.from(e.childNodes);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function k(e, t) {
|
|
120
120
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
121
121
|
t);
|
|
122
122
|
}
|
|
123
123
|
function Ht(e, t) {
|
|
124
124
|
e.value = t == null ? "" : t;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Ce(e, t, i, n) {
|
|
127
127
|
i == null ? e.style.removeProperty(t) : e.style.setProperty(t, i, "");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function $e(e, t, i) {
|
|
130
130
|
e.classList.toggle(t, !!i);
|
|
131
131
|
}
|
|
132
132
|
function Oi(e) {
|
|
@@ -138,65 +138,65 @@ function Oi(e) {
|
|
|
138
138
|
}
|
|
139
139
|
), t;
|
|
140
140
|
}
|
|
141
|
-
let
|
|
142
|
-
function
|
|
143
|
-
|
|
141
|
+
let Oe;
|
|
142
|
+
function Ne(e) {
|
|
143
|
+
Oe = e;
|
|
144
144
|
}
|
|
145
145
|
function Mi() {
|
|
146
|
-
if (!
|
|
146
|
+
if (!Oe)
|
|
147
147
|
throw new Error("Function called outside component initialization");
|
|
148
|
-
return
|
|
148
|
+
return Oe;
|
|
149
149
|
}
|
|
150
150
|
function Di(e) {
|
|
151
151
|
Mi().$$.on_mount.push(e);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
154
|
-
let
|
|
153
|
+
const ye = [], ve = [];
|
|
154
|
+
let Ee = [];
|
|
155
155
|
const Ct = [], Ri = /* @__PURE__ */ Promise.resolve();
|
|
156
|
-
let
|
|
156
|
+
let ht = !1;
|
|
157
157
|
function Ui() {
|
|
158
|
-
|
|
158
|
+
ht || (ht = !0, Ri.then(te));
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
|
|
160
|
+
function ft(e) {
|
|
161
|
+
Ee.push(e);
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
let
|
|
163
|
+
const rt = /* @__PURE__ */ new Set();
|
|
164
|
+
let ge = 0;
|
|
165
165
|
function te() {
|
|
166
|
-
if (
|
|
166
|
+
if (ge !== 0)
|
|
167
167
|
return;
|
|
168
|
-
const e =
|
|
168
|
+
const e = Oe;
|
|
169
169
|
do {
|
|
170
170
|
try {
|
|
171
|
-
for (;
|
|
172
|
-
const t = ge
|
|
173
|
-
|
|
171
|
+
for (; ge < ye.length; ) {
|
|
172
|
+
const t = ye[ge];
|
|
173
|
+
ge++, Ne(t), ji(t.$$);
|
|
174
174
|
}
|
|
175
175
|
} catch (t) {
|
|
176
|
-
throw
|
|
176
|
+
throw ye.length = 0, ge = 0, t;
|
|
177
177
|
}
|
|
178
|
-
for (
|
|
179
|
-
|
|
180
|
-
for (let t = 0; t <
|
|
181
|
-
const i =
|
|
182
|
-
|
|
178
|
+
for (Ne(null), ye.length = 0, ge = 0; ve.length; )
|
|
179
|
+
ve.pop()();
|
|
180
|
+
for (let t = 0; t < Ee.length; t += 1) {
|
|
181
|
+
const i = Ee[t];
|
|
182
|
+
rt.has(i) || (rt.add(i), i());
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
} while (
|
|
184
|
+
Ee.length = 0;
|
|
185
|
+
} while (ye.length);
|
|
186
186
|
for (; Ct.length; )
|
|
187
187
|
Ct.pop()();
|
|
188
|
-
|
|
188
|
+
ht = !1, rt.clear(), Ne(e);
|
|
189
189
|
}
|
|
190
190
|
function ji(e) {
|
|
191
191
|
if (e.fragment !== null) {
|
|
192
|
-
e.update(),
|
|
192
|
+
e.update(), ce(e.before_update);
|
|
193
193
|
const t = e.dirty;
|
|
194
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
194
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ft);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
function Gi(e) {
|
|
198
198
|
const t = [], i = [];
|
|
199
|
-
|
|
199
|
+
Ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : i.push(n)), i.forEach((n) => n()), Ee = t;
|
|
200
200
|
}
|
|
201
201
|
const $i = /* @__PURE__ */ new Set();
|
|
202
202
|
function zi(e, t) {
|
|
@@ -204,21 +204,21 @@ function zi(e, t) {
|
|
|
204
204
|
}
|
|
205
205
|
function Fi(e, t, i) {
|
|
206
206
|
const { fragment: n, after_update: r } = e.$$;
|
|
207
|
-
n && n.m(t, i),
|
|
208
|
-
const o = e.$$.on_mount.map(Zt).filter(
|
|
209
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
210
|
-
}), r.forEach(
|
|
207
|
+
n && n.m(t, i), ft(() => {
|
|
208
|
+
const o = e.$$.on_mount.map(Zt).filter(xt);
|
|
209
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
|
|
210
|
+
}), r.forEach(ft);
|
|
211
211
|
}
|
|
212
212
|
function Vi(e, t) {
|
|
213
213
|
const i = e.$$;
|
|
214
|
-
i.fragment !== null && (Gi(i.after_update),
|
|
214
|
+
i.fragment !== null && (Gi(i.after_update), ce(i.on_destroy), i.fragment && i.fragment.d(t), i.on_destroy = i.fragment = null, i.ctx = []);
|
|
215
215
|
}
|
|
216
216
|
function Xi(e, t) {
|
|
217
|
-
e.$$.dirty[0] === -1 && (
|
|
217
|
+
e.$$.dirty[0] === -1 && (ye.push(e), Ui(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
218
218
|
}
|
|
219
219
|
function qi(e, t, i, n, r, o, a = null, s = [-1]) {
|
|
220
|
-
const u =
|
|
221
|
-
|
|
220
|
+
const u = Oe;
|
|
221
|
+
Ne(e);
|
|
222
222
|
const l = e.$$ = {
|
|
223
223
|
fragment: null,
|
|
224
224
|
ctx: [],
|
|
@@ -242,18 +242,18 @@ function qi(e, t, i, n, r, o, a = null, s = [-1]) {
|
|
|
242
242
|
};
|
|
243
243
|
a && a(l.root);
|
|
244
244
|
let c = !1;
|
|
245
|
-
if (l.ctx = i ? i(e, t.props || {}, (
|
|
246
|
-
const E = d.length ? d[0] :
|
|
247
|
-
return l.ctx && r(l.ctx[
|
|
248
|
-
}) : [], l.update(), c = !0,
|
|
245
|
+
if (l.ctx = i ? i(e, t.props || {}, (p, m, ...d) => {
|
|
246
|
+
const E = d.length ? d[0] : m;
|
|
247
|
+
return l.ctx && r(l.ctx[p], l.ctx[p] = E) && (!l.skip_bound && l.bound[p] && l.bound[p](E), c && Xi(e, p)), m;
|
|
248
|
+
}) : [], l.update(), c = !0, ce(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
249
249
|
if (t.hydrate) {
|
|
250
|
-
const
|
|
251
|
-
l.fragment && l.fragment.l(
|
|
250
|
+
const p = Ni(t.target);
|
|
251
|
+
l.fragment && l.fragment.l(p), p.forEach(x);
|
|
252
252
|
} else
|
|
253
253
|
l.fragment && l.fragment.c();
|
|
254
254
|
t.intro && zi(e.$$.fragment), Fi(e, t.target, t.anchor), te();
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
Ne(u);
|
|
257
257
|
}
|
|
258
258
|
let Kt;
|
|
259
259
|
typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
@@ -300,7 +300,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
300
300
|
let a;
|
|
301
301
|
return {
|
|
302
302
|
c: function() {
|
|
303
|
-
a =
|
|
303
|
+
a = b("slot"), o !== "default" && h(a, "name", o);
|
|
304
304
|
},
|
|
305
305
|
/**
|
|
306
306
|
* @param {HTMLElement} target
|
|
@@ -322,13 +322,13 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
322
322
|
o in n && (i[o] = [t(o)]);
|
|
323
323
|
for (const o of this.attributes) {
|
|
324
324
|
const a = this.$$g_p(o.name);
|
|
325
|
-
a in this.$$d || (this.$$d[a] =
|
|
325
|
+
a in this.$$d || (this.$$d[a] = Fe(a, o.value, this.$$p_d, "toProp"));
|
|
326
326
|
}
|
|
327
327
|
for (const o in this.$$p_d)
|
|
328
328
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
329
329
|
this.$$c = new this.$$ctor({
|
|
330
330
|
target: this.shadowRoot || this,
|
|
331
|
-
props: St(
|
|
331
|
+
props: At(St({}, this.$$d), {
|
|
332
332
|
$$slots: i,
|
|
333
333
|
$$scope: {
|
|
334
334
|
ctx: []
|
|
@@ -339,7 +339,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
339
339
|
this.$$r = !0;
|
|
340
340
|
for (const o in this.$$p_d)
|
|
341
341
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
342
|
-
const a =
|
|
342
|
+
const a = Fe(
|
|
343
343
|
o,
|
|
344
344
|
this.$$d[o],
|
|
345
345
|
this.$$p_d,
|
|
@@ -363,7 +363,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
363
363
|
// and setting attributes through setAttribute etc, this is helpful
|
|
364
364
|
attributeChangedCallback(t, i, n) {
|
|
365
365
|
var r;
|
|
366
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
366
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Fe(t, n, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [t]: this.$$d[t] }));
|
|
367
367
|
}
|
|
368
368
|
disconnectedCallback() {
|
|
369
369
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -376,7 +376,7 @@ typeof HTMLElement == "function" && (Kt = class extends HTMLElement {
|
|
|
376
376
|
) || t;
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
|
-
function
|
|
379
|
+
function Fe(e, t, i, n) {
|
|
380
380
|
var o;
|
|
381
381
|
const r = (o = i[e]) == null ? void 0 : o.type;
|
|
382
382
|
if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !i[e])
|
|
@@ -424,7 +424,7 @@ function Wi(e, t, i, n, r, o) {
|
|
|
424
424
|
},
|
|
425
425
|
set(u) {
|
|
426
426
|
var l;
|
|
427
|
-
u =
|
|
427
|
+
u = Fe(s, u, t), this.$$d[s] = u, (l = this.$$c) == null || l.$set({ [s]: u });
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
}), n.forEach((s) => {
|
|
@@ -467,7 +467,7 @@ class Zi {
|
|
|
467
467
|
* @returns {() => void}
|
|
468
468
|
*/
|
|
469
469
|
$on(t, i) {
|
|
470
|
-
if (!
|
|
470
|
+
if (!xt(i))
|
|
471
471
|
return ie;
|
|
472
472
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
473
473
|
return n.push(i), () => {
|
|
@@ -480,7 +480,7 @@ class Zi {
|
|
|
480
480
|
* @returns {void}
|
|
481
481
|
*/
|
|
482
482
|
$set(t) {
|
|
483
|
-
this.$$set && !
|
|
483
|
+
this.$$set && !Ai(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
const Yi = "4";
|
|
@@ -488,10 +488,10 @@ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @
|
|
|
488
488
|
const be = [];
|
|
489
489
|
function Ji(e, t) {
|
|
490
490
|
return {
|
|
491
|
-
subscribe:
|
|
491
|
+
subscribe: Ye(e, t).subscribe
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Ye(e, t = ie) {
|
|
495
495
|
let i;
|
|
496
496
|
const n = /* @__PURE__ */ new Set();
|
|
497
497
|
function r(s) {
|
|
@@ -517,7 +517,7 @@ function We(e, t = ie) {
|
|
|
517
517
|
}
|
|
518
518
|
return { set: r, update: o, subscribe: a };
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function we(e, t, i) {
|
|
521
521
|
const n = !Array.isArray(e), r = n ? [e] : e;
|
|
522
522
|
if (!r.every(Boolean))
|
|
523
523
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -525,26 +525,26 @@ function Pe(e, t, i) {
|
|
|
525
525
|
return Ji(i, (a, s) => {
|
|
526
526
|
let u = !1;
|
|
527
527
|
const l = [];
|
|
528
|
-
let c = 0,
|
|
529
|
-
const
|
|
528
|
+
let c = 0, p = ie;
|
|
529
|
+
const m = () => {
|
|
530
530
|
if (c)
|
|
531
531
|
return;
|
|
532
|
-
|
|
532
|
+
p();
|
|
533
533
|
const E = t(n ? l[0] : l, a, s);
|
|
534
|
-
o ? a(E) :
|
|
534
|
+
o ? a(E) : p = xt(E) ? E : ie;
|
|
535
535
|
}, d = r.map(
|
|
536
536
|
(E, _) => Jt(
|
|
537
537
|
E,
|
|
538
538
|
(y) => {
|
|
539
|
-
l[_] = y, c &= ~(1 << _), u &&
|
|
539
|
+
l[_] = y, c &= ~(1 << _), u && m();
|
|
540
540
|
},
|
|
541
541
|
() => {
|
|
542
542
|
c |= 1 << _;
|
|
543
543
|
}
|
|
544
544
|
)
|
|
545
545
|
);
|
|
546
|
-
return u = !0,
|
|
547
|
-
|
|
546
|
+
return u = !0, m(), function() {
|
|
547
|
+
ce(d), p(), u = !1;
|
|
548
548
|
};
|
|
549
549
|
});
|
|
550
550
|
}
|
|
@@ -568,19 +568,19 @@ function on(e) {
|
|
|
568
568
|
function sn(e) {
|
|
569
569
|
return Array.isArray(e) ? [] : {};
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
571
|
+
function Me(e, t) {
|
|
572
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? _e(sn(e), e, t) : e;
|
|
573
573
|
}
|
|
574
574
|
function an(e, t, i) {
|
|
575
575
|
return e.concat(t).map(function(n) {
|
|
576
|
-
return
|
|
576
|
+
return Me(n, i);
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
579
|
function ln(e, t) {
|
|
580
580
|
if (!t.customMerge)
|
|
581
|
-
return
|
|
581
|
+
return _e;
|
|
582
582
|
var i = t.customMerge(e);
|
|
583
|
-
return typeof i == "function" ? i :
|
|
583
|
+
return typeof i == "function" ? i : _e;
|
|
584
584
|
}
|
|
585
585
|
function un(e) {
|
|
586
586
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -603,65 +603,51 @@ function cn(e, t) {
|
|
|
603
603
|
function hn(e, t, i) {
|
|
604
604
|
var n = {};
|
|
605
605
|
return i.isMergeableObject(e) && Nt(e).forEach(function(r) {
|
|
606
|
-
n[r] =
|
|
606
|
+
n[r] = Me(e[r], i);
|
|
607
607
|
}), Nt(t).forEach(function(r) {
|
|
608
|
-
cn(e, r) || (ei(e, r) && i.isMergeableObject(t[r]) ? n[r] = ln(r, i)(e[r], t[r], i) : n[r] =
|
|
608
|
+
cn(e, r) || (ei(e, r) && i.isMergeableObject(t[r]) ? n[r] = ln(r, i)(e[r], t[r], i) : n[r] = Me(t[r], i));
|
|
609
609
|
}), n;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
i = i || {}, i.arrayMerge = i.arrayMerge || an, i.isMergeableObject = i.isMergeableObject || Ki, i.cloneUnlessOtherwiseSpecified =
|
|
611
|
+
function _e(e, t, i) {
|
|
612
|
+
i = i || {}, i.arrayMerge = i.arrayMerge || an, i.isMergeableObject = i.isMergeableObject || Ki, i.cloneUnlessOtherwiseSpecified = Me;
|
|
613
613
|
var n = Array.isArray(t), r = Array.isArray(e), o = n === r;
|
|
614
|
-
return o ? n ? i.arrayMerge(e, t, i) : hn(e, t, i) :
|
|
614
|
+
return o ? n ? i.arrayMerge(e, t, i) : hn(e, t, i) : Me(t, i);
|
|
615
615
|
}
|
|
616
|
-
|
|
616
|
+
_e.all = function(t, i) {
|
|
617
617
|
if (!Array.isArray(t))
|
|
618
618
|
throw new Error("first argument should be an array");
|
|
619
619
|
return t.reduce(function(n, r) {
|
|
620
|
-
return
|
|
620
|
+
return _e(n, r, i);
|
|
621
621
|
}, {});
|
|
622
622
|
};
|
|
623
|
-
var fn =
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
629
|
-
purpose with or without fee is hereby granted.
|
|
630
|
-
|
|
631
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
632
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
633
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
634
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
635
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
636
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
637
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
638
|
-
***************************************************************************** */
|
|
639
|
-
var ht = function(e, t) {
|
|
640
|
-
return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, n) {
|
|
623
|
+
var fn = _e, pn = fn;
|
|
624
|
+
const mn = /* @__PURE__ */ Qi(pn);
|
|
625
|
+
var pt = function(e, t) {
|
|
626
|
+
return pt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, n) {
|
|
641
627
|
i.__proto__ = n;
|
|
642
628
|
} || function(i, n) {
|
|
643
629
|
for (var r in n)
|
|
644
630
|
Object.prototype.hasOwnProperty.call(n, r) && (i[r] = n[r]);
|
|
645
|
-
},
|
|
631
|
+
}, pt(e, t);
|
|
646
632
|
};
|
|
647
|
-
function
|
|
633
|
+
function Je(e, t) {
|
|
648
634
|
if (typeof t != "function" && t !== null)
|
|
649
635
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
650
|
-
|
|
636
|
+
pt(e, t);
|
|
651
637
|
function i() {
|
|
652
638
|
this.constructor = e;
|
|
653
639
|
}
|
|
654
640
|
e.prototype = t === null ? Object.create(t) : (i.prototype = t.prototype, new i());
|
|
655
641
|
}
|
|
656
|
-
var
|
|
657
|
-
return
|
|
642
|
+
var se = function() {
|
|
643
|
+
return se = Object.assign || function(t) {
|
|
658
644
|
for (var i, n = 1, r = arguments.length; n < r; n++) {
|
|
659
645
|
i = arguments[n];
|
|
660
646
|
for (var o in i)
|
|
661
647
|
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
662
648
|
}
|
|
663
649
|
return t;
|
|
664
|
-
},
|
|
650
|
+
}, se.apply(this, arguments);
|
|
665
651
|
};
|
|
666
652
|
function dn(e, t) {
|
|
667
653
|
var i = {};
|
|
@@ -672,111 +658,119 @@ function dn(e, t) {
|
|
|
672
658
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (i[n[r]] = e[n[r]]);
|
|
673
659
|
return i;
|
|
674
660
|
}
|
|
675
|
-
function
|
|
676
|
-
if (arguments.length === 2)
|
|
661
|
+
function ot(e, t, i) {
|
|
662
|
+
if (i || arguments.length === 2)
|
|
677
663
|
for (var n = 0, r = t.length, o; n < r; n++)
|
|
678
664
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
679
|
-
return e.concat(o || t);
|
|
665
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
680
666
|
}
|
|
681
|
-
function
|
|
682
|
-
var i = t && t.cache ? t.cache :
|
|
667
|
+
function st(e, t) {
|
|
668
|
+
var i = t && t.cache ? t.cache : xn, n = t && t.serializer ? t.serializer : En, r = t && t.strategy ? t.strategy : yn;
|
|
683
669
|
return r(e, {
|
|
684
670
|
cache: i,
|
|
685
671
|
serializer: n
|
|
686
672
|
});
|
|
687
673
|
}
|
|
688
|
-
function
|
|
674
|
+
function gn(e) {
|
|
689
675
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
690
676
|
}
|
|
691
|
-
function
|
|
692
|
-
var r =
|
|
677
|
+
function bn(e, t, i, n) {
|
|
678
|
+
var r = gn(n) ? n : i(n), o = t.get(r);
|
|
693
679
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(r, o)), o;
|
|
694
680
|
}
|
|
695
|
-
function
|
|
681
|
+
function ti(e, t, i) {
|
|
696
682
|
var n = Array.prototype.slice.call(arguments, 3), r = i(n), o = t.get(r);
|
|
697
683
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(r, o)), o;
|
|
698
684
|
}
|
|
699
|
-
function
|
|
685
|
+
function ii(e, t, i, n, r) {
|
|
700
686
|
return i.bind(t, e, n, r);
|
|
701
687
|
}
|
|
702
|
-
function gn(e, t) {
|
|
703
|
-
var i = e.length === 1 ? ti : ii;
|
|
704
|
-
return _t(e, this, i, t.cache.create(), t.serializer);
|
|
705
|
-
}
|
|
706
688
|
function yn(e, t) {
|
|
707
|
-
|
|
689
|
+
var i = e.length === 1 ? bn : ti;
|
|
690
|
+
return ii(e, this, i, t.cache.create(), t.serializer);
|
|
708
691
|
}
|
|
709
692
|
function vn(e, t) {
|
|
710
|
-
return
|
|
693
|
+
return ii(e, this, ti, t.cache.create(), t.serializer);
|
|
711
694
|
}
|
|
712
695
|
var En = function() {
|
|
713
696
|
return JSON.stringify(arguments);
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
697
|
+
}, _n = (
|
|
698
|
+
/** @class */
|
|
699
|
+
function() {
|
|
700
|
+
function e() {
|
|
701
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
702
|
+
}
|
|
703
|
+
return e.prototype.get = function(t) {
|
|
704
|
+
return this.cache[t];
|
|
705
|
+
}, e.prototype.set = function(t, i) {
|
|
706
|
+
this.cache[t] = i;
|
|
707
|
+
}, e;
|
|
708
|
+
}()
|
|
709
|
+
), xn = {
|
|
725
710
|
create: function() {
|
|
726
|
-
return new
|
|
711
|
+
return new _n();
|
|
727
712
|
}
|
|
728
|
-
},
|
|
729
|
-
variadic:
|
|
730
|
-
|
|
731
|
-
|
|
713
|
+
}, at = {
|
|
714
|
+
variadic: vn
|
|
715
|
+
}, qe = function() {
|
|
716
|
+
return qe = Object.assign || function(t) {
|
|
717
|
+
for (var i, n = 1, r = arguments.length; n < r; n++) {
|
|
718
|
+
i = arguments[n];
|
|
719
|
+
for (var o in i)
|
|
720
|
+
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
721
|
+
}
|
|
722
|
+
return t;
|
|
723
|
+
}, qe.apply(this, arguments);
|
|
724
|
+
};
|
|
725
|
+
var B;
|
|
732
726
|
(function(e) {
|
|
733
727
|
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";
|
|
734
728
|
})(B || (B = {}));
|
|
735
|
-
var
|
|
729
|
+
var $;
|
|
736
730
|
(function(e) {
|
|
737
731
|
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";
|
|
738
|
-
})(
|
|
739
|
-
var
|
|
732
|
+
})($ || ($ = {}));
|
|
733
|
+
var xe;
|
|
740
734
|
(function(e) {
|
|
741
735
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
742
|
-
})(
|
|
736
|
+
})(xe || (xe = {}));
|
|
743
737
|
function Ot(e) {
|
|
744
|
-
return e.type ===
|
|
738
|
+
return e.type === $.literal;
|
|
745
739
|
}
|
|
746
|
-
function
|
|
747
|
-
return e.type ===
|
|
740
|
+
function Tn(e) {
|
|
741
|
+
return e.type === $.argument;
|
|
748
742
|
}
|
|
749
743
|
function ni(e) {
|
|
750
|
-
return e.type ===
|
|
744
|
+
return e.type === $.number;
|
|
751
745
|
}
|
|
752
746
|
function ri(e) {
|
|
753
|
-
return e.type ===
|
|
747
|
+
return e.type === $.date;
|
|
754
748
|
}
|
|
755
749
|
function oi(e) {
|
|
756
|
-
return e.type ===
|
|
750
|
+
return e.type === $.time;
|
|
757
751
|
}
|
|
758
752
|
function si(e) {
|
|
759
|
-
return e.type ===
|
|
753
|
+
return e.type === $.select;
|
|
760
754
|
}
|
|
761
755
|
function ai(e) {
|
|
762
|
-
return e.type ===
|
|
756
|
+
return e.type === $.plural;
|
|
763
757
|
}
|
|
764
|
-
function
|
|
765
|
-
return e.type ===
|
|
758
|
+
function Pn(e) {
|
|
759
|
+
return e.type === $.pound;
|
|
766
760
|
}
|
|
767
761
|
function li(e) {
|
|
768
|
-
return e.type ===
|
|
762
|
+
return e.type === $.tag;
|
|
769
763
|
}
|
|
770
764
|
function ui(e) {
|
|
771
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
765
|
+
return !!(e && typeof e == "object" && e.type === xe.number);
|
|
772
766
|
}
|
|
773
|
-
function
|
|
774
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
767
|
+
function mt(e) {
|
|
768
|
+
return !!(e && typeof e == "object" && e.type === xe.dateTime);
|
|
775
769
|
}
|
|
776
|
-
var ci = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
777
|
-
function
|
|
770
|
+
var ci = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[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;
|
|
771
|
+
function Bn(e) {
|
|
778
772
|
var t = {};
|
|
779
|
-
return e.replace(
|
|
773
|
+
return e.replace(wn, function(i) {
|
|
780
774
|
var n = i.length;
|
|
781
775
|
switch (i[0]) {
|
|
782
776
|
case "G":
|
|
@@ -865,19 +859,29 @@ function wn(e) {
|
|
|
865
859
|
return "";
|
|
866
860
|
}), t;
|
|
867
861
|
}
|
|
868
|
-
var
|
|
869
|
-
function
|
|
862
|
+
var V = function() {
|
|
863
|
+
return V = Object.assign || function(t) {
|
|
864
|
+
for (var i, n = 1, r = arguments.length; n < r; n++) {
|
|
865
|
+
i = arguments[n];
|
|
866
|
+
for (var o in i)
|
|
867
|
+
Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
|
|
868
|
+
}
|
|
869
|
+
return t;
|
|
870
|
+
}, V.apply(this, arguments);
|
|
871
|
+
};
|
|
872
|
+
var Ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
873
|
+
function Sn(e) {
|
|
870
874
|
if (e.length === 0)
|
|
871
875
|
throw new Error("Number skeleton cannot be empty");
|
|
872
|
-
for (var t = e.split(
|
|
873
|
-
return
|
|
876
|
+
for (var t = e.split(Ln).filter(function(m) {
|
|
877
|
+
return m.length > 0;
|
|
874
878
|
}), i = [], n = 0, r = t; n < r.length; n++) {
|
|
875
879
|
var o = r[n], a = o.split("/");
|
|
876
880
|
if (a.length === 0)
|
|
877
881
|
throw new Error("Invalid number skeleton");
|
|
878
882
|
for (var s = a[0], u = a.slice(1), l = 0, c = u; l < c.length; l++) {
|
|
879
|
-
var
|
|
880
|
-
if (
|
|
883
|
+
var p = c[l];
|
|
884
|
+
if (p.length === 0)
|
|
881
885
|
throw new Error("Invalid number skeleton");
|
|
882
886
|
}
|
|
883
887
|
i.push({ stem: s, options: u });
|
|
@@ -887,14 +891,14 @@ function Ln(e) {
|
|
|
887
891
|
function An(e) {
|
|
888
892
|
return e.replace(/^(.*?)-/, "");
|
|
889
893
|
}
|
|
890
|
-
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hi = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
894
|
+
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hi = /^(@+)?(\+|#+)?[rs]?$/g, In = /(\*)(0+)|(#+)(0+)|(0+)/g, fi = /^(0+)$/;
|
|
891
895
|
function Dt(e) {
|
|
892
896
|
var t = {};
|
|
893
897
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hi, function(i, n, r) {
|
|
894
898
|
return typeof r != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : r === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof r == "string" ? r.length : 0)), "";
|
|
895
899
|
}), t;
|
|
896
900
|
}
|
|
897
|
-
function
|
|
901
|
+
function pi(e) {
|
|
898
902
|
switch (e) {
|
|
899
903
|
case "sign-auto":
|
|
900
904
|
return {
|
|
@@ -934,7 +938,7 @@ function mi(e) {
|
|
|
934
938
|
};
|
|
935
939
|
}
|
|
936
940
|
}
|
|
937
|
-
function
|
|
941
|
+
function kn(e) {
|
|
938
942
|
var t;
|
|
939
943
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
940
944
|
notation: "engineering"
|
|
@@ -949,10 +953,10 @@ function In(e) {
|
|
|
949
953
|
return t;
|
|
950
954
|
}
|
|
951
955
|
function Rt(e) {
|
|
952
|
-
var t = {}, i =
|
|
956
|
+
var t = {}, i = pi(e);
|
|
953
957
|
return i || t;
|
|
954
958
|
}
|
|
955
|
-
function
|
|
959
|
+
function Hn(e) {
|
|
956
960
|
for (var t = {}, i = 0, n = e; i < n.length; i++) {
|
|
957
961
|
var r = n[i];
|
|
958
962
|
switch (r.stem) {
|
|
@@ -987,13 +991,13 @@ function kn(e) {
|
|
|
987
991
|
t.notation = "compact", t.compactDisplay = "long";
|
|
988
992
|
continue;
|
|
989
993
|
case "scientific":
|
|
990
|
-
t =
|
|
991
|
-
return
|
|
994
|
+
t = V(V(V({}, t), { notation: "scientific" }), r.options.reduce(function(u, l) {
|
|
995
|
+
return V(V({}, u), Rt(l));
|
|
992
996
|
}, {}));
|
|
993
997
|
continue;
|
|
994
998
|
case "engineering":
|
|
995
|
-
t =
|
|
996
|
-
return
|
|
999
|
+
t = V(V(V({}, t), { notation: "engineering" }), r.options.reduce(function(u, l) {
|
|
1000
|
+
return V(V({}, u), Rt(l));
|
|
997
1001
|
}, {}));
|
|
998
1002
|
continue;
|
|
999
1003
|
case "notation-simple":
|
|
@@ -1038,11 +1042,11 @@ function kn(e) {
|
|
|
1038
1042
|
case "integer-width":
|
|
1039
1043
|
if (r.options.length > 1)
|
|
1040
1044
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1041
|
-
r.options[0].replace(
|
|
1045
|
+
r.options[0].replace(In, function(u, l, c, p, m, d) {
|
|
1042
1046
|
if (l)
|
|
1043
1047
|
t.minimumIntegerDigits = c.length;
|
|
1044
1048
|
else {
|
|
1045
|
-
if (
|
|
1049
|
+
if (p && m)
|
|
1046
1050
|
throw new Error("We currently do not support maximum integer digits");
|
|
1047
1051
|
if (d)
|
|
1048
1052
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1058,25 +1062,25 @@ function kn(e) {
|
|
|
1058
1062
|
if (Mt.test(r.stem)) {
|
|
1059
1063
|
if (r.options.length > 1)
|
|
1060
1064
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1061
|
-
r.stem.replace(Mt, function(u, l, c,
|
|
1062
|
-
return c === "*" ? t.minimumFractionDigits = l.length :
|
|
1065
|
+
r.stem.replace(Mt, function(u, l, c, p, m, d) {
|
|
1066
|
+
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), "";
|
|
1063
1067
|
});
|
|
1064
1068
|
var o = r.options[0];
|
|
1065
|
-
o === "w" ? t =
|
|
1069
|
+
o === "w" ? t = V(V({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = V(V({}, t), Dt(o)));
|
|
1066
1070
|
continue;
|
|
1067
1071
|
}
|
|
1068
1072
|
if (hi.test(r.stem)) {
|
|
1069
|
-
t =
|
|
1073
|
+
t = V(V({}, t), Dt(r.stem));
|
|
1070
1074
|
continue;
|
|
1071
1075
|
}
|
|
1072
|
-
var a =
|
|
1073
|
-
a && (t =
|
|
1074
|
-
var s =
|
|
1075
|
-
s && (t =
|
|
1076
|
+
var a = pi(r.stem);
|
|
1077
|
+
a && (t = V(V({}, t), a));
|
|
1078
|
+
var s = kn(r.stem);
|
|
1079
|
+
s && (t = V(V({}, t), s));
|
|
1076
1080
|
}
|
|
1077
1081
|
return t;
|
|
1078
1082
|
}
|
|
1079
|
-
var
|
|
1083
|
+
var ze = {
|
|
1080
1084
|
"001": [
|
|
1081
1085
|
"H",
|
|
1082
1086
|
"h"
|
|
@@ -2491,13 +2495,13 @@ var $e = {
|
|
|
2491
2495
|
"h"
|
|
2492
2496
|
]
|
|
2493
2497
|
};
|
|
2494
|
-
function
|
|
2498
|
+
function Cn(e, t) {
|
|
2495
2499
|
for (var i = "", n = 0; n < e.length; n++) {
|
|
2496
2500
|
var r = e.charAt(n);
|
|
2497
2501
|
if (r === "j") {
|
|
2498
2502
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === r; )
|
|
2499
2503
|
o++, n++;
|
|
2500
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
|
2504
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Nn(t);
|
|
2501
2505
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2502
2506
|
i += u;
|
|
2503
2507
|
for (; a-- > 0; )
|
|
@@ -2507,7 +2511,7 @@ function Hn(e, t) {
|
|
|
2507
2511
|
}
|
|
2508
2512
|
return i;
|
|
2509
2513
|
}
|
|
2510
|
-
function
|
|
2514
|
+
function Nn(e) {
|
|
2511
2515
|
var t = e.hourCycle;
|
|
2512
2516
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2513
2517
|
e.hourCycles && // @ts-ignore
|
|
@@ -2526,23 +2530,23 @@ function Cn(e) {
|
|
|
2526
2530
|
}
|
|
2527
2531
|
var i = e.language, n;
|
|
2528
2532
|
i !== "root" && (n = e.maximize().region);
|
|
2529
|
-
var r =
|
|
2533
|
+
var r = ze[n || ""] || ze[i || ""] || ze["".concat(i, "-001")] || ze["001"];
|
|
2530
2534
|
return r[0];
|
|
2531
2535
|
}
|
|
2532
|
-
var
|
|
2533
|
-
function
|
|
2536
|
+
var lt, On = new RegExp("^".concat(ci.source, "*")), Mn = new RegExp("".concat(ci.source, "*$"));
|
|
2537
|
+
function A(e, t) {
|
|
2534
2538
|
return { start: e, end: t };
|
|
2535
2539
|
}
|
|
2536
|
-
var
|
|
2540
|
+
var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Rn = !!String.fromCodePoint, Un = !!Object.fromEntries, jn = !!String.prototype.codePointAt, Gn = !!String.prototype.trimStart, $n = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Fn = zn ? Number.isSafeInteger : function(e) {
|
|
2537
2541
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2538
|
-
},
|
|
2542
|
+
}, dt = !0;
|
|
2539
2543
|
try {
|
|
2540
|
-
var
|
|
2541
|
-
|
|
2544
|
+
var Vn = di("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2545
|
+
dt = ((lt = Vn.exec("a")) === null || lt === void 0 ? void 0 : lt[0]) === "a";
|
|
2542
2546
|
} catch (e) {
|
|
2543
|
-
|
|
2547
|
+
dt = !1;
|
|
2544
2548
|
}
|
|
2545
|
-
var Ut =
|
|
2549
|
+
var Ut = Dn ? (
|
|
2546
2550
|
// Native
|
|
2547
2551
|
function(t, i, n) {
|
|
2548
2552
|
return t.startsWith(i, n);
|
|
@@ -2552,7 +2556,7 @@ var Ut = Mn ? (
|
|
|
2552
2556
|
function(t, i, n) {
|
|
2553
2557
|
return t.slice(n, n + i.length) === i;
|
|
2554
2558
|
}
|
|
2555
|
-
),
|
|
2559
|
+
), gt = Rn ? String.fromCodePoint : (
|
|
2556
2560
|
// IE11
|
|
2557
2561
|
function() {
|
|
2558
2562
|
for (var t = [], i = 0; i < arguments.length; i++)
|
|
@@ -2566,7 +2570,7 @@ var Ut = Mn ? (
|
|
|
2566
2570
|
}
|
|
2567
2571
|
), jt = (
|
|
2568
2572
|
// native
|
|
2569
|
-
|
|
2573
|
+
Un ? Object.fromEntries : (
|
|
2570
2574
|
// Ponyfill
|
|
2571
2575
|
function(t) {
|
|
2572
2576
|
for (var i = {}, n = 0, r = t; n < r.length; n++) {
|
|
@@ -2576,7 +2580,7 @@ var Ut = Mn ? (
|
|
|
2576
2580
|
return i;
|
|
2577
2581
|
}
|
|
2578
2582
|
)
|
|
2579
|
-
),
|
|
2583
|
+
), mi = jn ? (
|
|
2580
2584
|
// Native
|
|
2581
2585
|
function(t, i) {
|
|
2582
2586
|
return t.codePointAt(i);
|
|
@@ -2590,7 +2594,7 @@ var Ut = Mn ? (
|
|
|
2590
2594
|
return r < 55296 || r > 56319 || i + 1 === n || (o = t.charCodeAt(i + 1)) < 56320 || o > 57343 ? r : (r - 55296 << 10) + (o - 56320) + 65536;
|
|
2591
2595
|
}
|
|
2592
2596
|
}
|
|
2593
|
-
),
|
|
2597
|
+
), Xn = Gn ? (
|
|
2594
2598
|
// Native
|
|
2595
2599
|
function(t) {
|
|
2596
2600
|
return t.trimStart();
|
|
@@ -2598,9 +2602,9 @@ var Ut = Mn ? (
|
|
|
2598
2602
|
) : (
|
|
2599
2603
|
// Ponyfill
|
|
2600
2604
|
function(t) {
|
|
2601
|
-
return t.replace(
|
|
2605
|
+
return t.replace(On, "");
|
|
2602
2606
|
}
|
|
2603
|
-
),
|
|
2607
|
+
), qn = $n ? (
|
|
2604
2608
|
// Native
|
|
2605
2609
|
function(t) {
|
|
2606
2610
|
return t.trimEnd();
|
|
@@ -2608,32 +2612,32 @@ var Ut = Mn ? (
|
|
|
2608
2612
|
) : (
|
|
2609
2613
|
// Ponyfill
|
|
2610
2614
|
function(t) {
|
|
2611
|
-
return t.replace(
|
|
2615
|
+
return t.replace(Mn, "");
|
|
2612
2616
|
}
|
|
2613
2617
|
);
|
|
2614
2618
|
function di(e, t) {
|
|
2615
2619
|
return new RegExp(e, t);
|
|
2616
2620
|
}
|
|
2617
|
-
var
|
|
2618
|
-
if (
|
|
2621
|
+
var bt;
|
|
2622
|
+
if (dt) {
|
|
2619
2623
|
var Gt = di("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2620
|
-
|
|
2624
|
+
bt = function(t, i) {
|
|
2621
2625
|
var n;
|
|
2622
2626
|
Gt.lastIndex = i;
|
|
2623
2627
|
var r = Gt.exec(t);
|
|
2624
2628
|
return (n = r[1]) !== null && n !== void 0 ? n : "";
|
|
2625
2629
|
};
|
|
2626
2630
|
} else
|
|
2627
|
-
|
|
2631
|
+
bt = function(t, i) {
|
|
2628
2632
|
for (var n = []; ; ) {
|
|
2629
|
-
var r =
|
|
2630
|
-
if (r === void 0 ||
|
|
2633
|
+
var r = mi(t, i);
|
|
2634
|
+
if (r === void 0 || gi(r) || Jn(r))
|
|
2631
2635
|
break;
|
|
2632
2636
|
n.push(r), i += r >= 65536 ? 2 : 1;
|
|
2633
2637
|
}
|
|
2634
|
-
return
|
|
2638
|
+
return gt.apply(void 0, n);
|
|
2635
2639
|
};
|
|
2636
|
-
var
|
|
2640
|
+
var Wn = (
|
|
2637
2641
|
/** @class */
|
|
2638
2642
|
function() {
|
|
2639
2643
|
function e(t, i) {
|
|
@@ -2657,14 +2661,14 @@ var qn = (
|
|
|
2657
2661
|
if (o === 35 && (i === "plural" || i === "selectordinal")) {
|
|
2658
2662
|
var s = this.clonePosition();
|
|
2659
2663
|
this.bump(), r.push({
|
|
2660
|
-
type:
|
|
2661
|
-
location:
|
|
2664
|
+
type: $.pound,
|
|
2665
|
+
location: A(s, this.clonePosition())
|
|
2662
2666
|
});
|
|
2663
2667
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2664
2668
|
if (n)
|
|
2665
2669
|
break;
|
|
2666
|
-
return this.error(B.UNMATCHED_CLOSING_TAG,
|
|
2667
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2670
|
+
return this.error(B.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
|
|
2671
|
+
} else if (o === 60 && !this.ignoreTag && yt(this.peek() || 0)) {
|
|
2668
2672
|
var a = this.parseTag(t, i);
|
|
2669
2673
|
if (a.err)
|
|
2670
2674
|
return a;
|
|
@@ -2685,9 +2689,9 @@ var qn = (
|
|
|
2685
2689
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2686
2690
|
return {
|
|
2687
2691
|
val: {
|
|
2688
|
-
type:
|
|
2692
|
+
type: $.literal,
|
|
2689
2693
|
value: "<".concat(r, "/>"),
|
|
2690
|
-
location:
|
|
2694
|
+
location: A(n, this.clonePosition())
|
|
2691
2695
|
},
|
|
2692
2696
|
err: null
|
|
2693
2697
|
};
|
|
@@ -2697,25 +2701,25 @@ var qn = (
|
|
|
2697
2701
|
return o;
|
|
2698
2702
|
var a = o.val, s = this.clonePosition();
|
|
2699
2703
|
if (this.bumpIf("</")) {
|
|
2700
|
-
if (this.isEOF() || !
|
|
2701
|
-
return this.error(B.INVALID_TAG,
|
|
2704
|
+
if (this.isEOF() || !yt(this.char()))
|
|
2705
|
+
return this.error(B.INVALID_TAG, A(s, this.clonePosition()));
|
|
2702
2706
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
2703
|
-
return r !== l ? this.error(B.UNMATCHED_CLOSING_TAG,
|
|
2707
|
+
return r !== l ? this.error(B.UNMATCHED_CLOSING_TAG, A(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2704
2708
|
val: {
|
|
2705
|
-
type:
|
|
2709
|
+
type: $.tag,
|
|
2706
2710
|
value: r,
|
|
2707
2711
|
children: a,
|
|
2708
|
-
location:
|
|
2712
|
+
location: A(n, this.clonePosition())
|
|
2709
2713
|
},
|
|
2710
2714
|
err: null
|
|
2711
|
-
} : this.error(B.INVALID_TAG,
|
|
2715
|
+
} : this.error(B.INVALID_TAG, A(s, this.clonePosition())));
|
|
2712
2716
|
} else
|
|
2713
|
-
return this.error(B.UNCLOSED_TAG,
|
|
2717
|
+
return this.error(B.UNCLOSED_TAG, A(n, this.clonePosition()));
|
|
2714
2718
|
} else
|
|
2715
|
-
return this.error(B.INVALID_TAG,
|
|
2719
|
+
return this.error(B.INVALID_TAG, A(n, this.clonePosition()));
|
|
2716
2720
|
}, e.prototype.parseTagName = function() {
|
|
2717
2721
|
var t = this.offset();
|
|
2718
|
-
for (this.bump(); !this.isEOF() &&
|
|
2722
|
+
for (this.bump(); !this.isEOF() && Yn(this.char()); )
|
|
2719
2723
|
this.bump();
|
|
2720
2724
|
return this.message.slice(t, this.offset());
|
|
2721
2725
|
}, e.prototype.parseLiteral = function(t, i) {
|
|
@@ -2737,14 +2741,14 @@ var qn = (
|
|
|
2737
2741
|
}
|
|
2738
2742
|
break;
|
|
2739
2743
|
}
|
|
2740
|
-
var u =
|
|
2744
|
+
var u = A(n, this.clonePosition());
|
|
2741
2745
|
return {
|
|
2742
|
-
val: { type:
|
|
2746
|
+
val: { type: $.literal, value: r, location: u },
|
|
2743
2747
|
err: null
|
|
2744
2748
|
};
|
|
2745
2749
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2746
2750
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2747
|
-
!
|
|
2751
|
+
!Zn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2748
2752
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2749
2753
|
if (this.isEOF() || this.char() !== 39)
|
|
2750
2754
|
return null;
|
|
@@ -2778,49 +2782,49 @@ var qn = (
|
|
|
2778
2782
|
i.push(n);
|
|
2779
2783
|
this.bump();
|
|
2780
2784
|
}
|
|
2781
|
-
return
|
|
2785
|
+
return gt.apply(void 0, i);
|
|
2782
2786
|
}, e.prototype.tryParseUnquoted = function(t, i) {
|
|
2783
2787
|
if (this.isEOF())
|
|
2784
2788
|
return null;
|
|
2785
2789
|
var n = this.char();
|
|
2786
|
-
return n === 60 || n === 123 || n === 35 && (i === "plural" || i === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2790
|
+
return n === 60 || n === 123 || n === 35 && (i === "plural" || i === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), gt(n));
|
|
2787
2791
|
}, e.prototype.parseArgument = function(t, i) {
|
|
2788
2792
|
var n = this.clonePosition();
|
|
2789
2793
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2790
|
-
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2794
|
+
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
|
|
2791
2795
|
if (this.char() === 125)
|
|
2792
|
-
return this.bump(), this.error(B.EMPTY_ARGUMENT,
|
|
2796
|
+
return this.bump(), this.error(B.EMPTY_ARGUMENT, A(n, this.clonePosition()));
|
|
2793
2797
|
var r = this.parseIdentifierIfPossible().value;
|
|
2794
2798
|
if (!r)
|
|
2795
|
-
return this.error(B.MALFORMED_ARGUMENT,
|
|
2799
|
+
return this.error(B.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
|
|
2796
2800
|
if (this.bumpSpace(), this.isEOF())
|
|
2797
|
-
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2801
|
+
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
|
|
2798
2802
|
switch (this.char()) {
|
|
2799
2803
|
case 125:
|
|
2800
2804
|
return this.bump(), {
|
|
2801
2805
|
val: {
|
|
2802
|
-
type:
|
|
2806
|
+
type: $.argument,
|
|
2803
2807
|
// value does not include the opening and closing braces.
|
|
2804
2808
|
value: r,
|
|
2805
|
-
location:
|
|
2809
|
+
location: A(n, this.clonePosition())
|
|
2806
2810
|
},
|
|
2807
2811
|
err: null
|
|
2808
2812
|
};
|
|
2809
2813
|
case 44:
|
|
2810
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2814
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition())) : this.parseArgumentOptions(t, i, r, n);
|
|
2811
2815
|
default:
|
|
2812
|
-
return this.error(B.MALFORMED_ARGUMENT,
|
|
2816
|
+
return this.error(B.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
|
|
2813
2817
|
}
|
|
2814
2818
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2815
|
-
var t = this.clonePosition(), i = this.offset(), n =
|
|
2819
|
+
var t = this.clonePosition(), i = this.offset(), n = bt(this.message, i), r = i + n.length;
|
|
2816
2820
|
this.bumpTo(r);
|
|
2817
|
-
var o = this.clonePosition(), a =
|
|
2821
|
+
var o = this.clonePosition(), a = A(t, o);
|
|
2818
2822
|
return { value: n, location: a };
|
|
2819
2823
|
}, e.prototype.parseArgumentOptions = function(t, i, n, r) {
|
|
2820
2824
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2821
2825
|
switch (s) {
|
|
2822
2826
|
case "":
|
|
2823
|
-
return this.error(B.EXPECT_ARGUMENT_TYPE,
|
|
2827
|
+
return this.error(B.EXPECT_ARGUMENT_TYPE, A(a, u));
|
|
2824
2828
|
case "number":
|
|
2825
2829
|
case "date":
|
|
2826
2830
|
case "time": {
|
|
@@ -2828,47 +2832,47 @@ var qn = (
|
|
|
2828
2832
|
var l = null;
|
|
2829
2833
|
if (this.bumpIf(",")) {
|
|
2830
2834
|
this.bumpSpace();
|
|
2831
|
-
var c = this.clonePosition(),
|
|
2832
|
-
if (
|
|
2833
|
-
return
|
|
2834
|
-
var
|
|
2835
|
-
if (
|
|
2836
|
-
return this.error(B.EXPECT_ARGUMENT_STYLE,
|
|
2837
|
-
var d =
|
|
2838
|
-
l = { style:
|
|
2835
|
+
var c = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
|
2836
|
+
if (p.err)
|
|
2837
|
+
return p;
|
|
2838
|
+
var m = qn(p.val);
|
|
2839
|
+
if (m.length === 0)
|
|
2840
|
+
return this.error(B.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
|
|
2841
|
+
var d = A(c, this.clonePosition());
|
|
2842
|
+
l = { style: m, styleLocation: d };
|
|
2839
2843
|
}
|
|
2840
2844
|
var E = this.tryParseArgumentClose(r);
|
|
2841
2845
|
if (E.err)
|
|
2842
2846
|
return E;
|
|
2843
|
-
var _ =
|
|
2847
|
+
var _ = A(r, this.clonePosition());
|
|
2844
2848
|
if (l && Ut(l == null ? void 0 : l.style, "::", 0)) {
|
|
2845
|
-
var y =
|
|
2849
|
+
var y = Xn(l.style.slice(2));
|
|
2846
2850
|
if (s === "number") {
|
|
2847
|
-
var
|
|
2848
|
-
return
|
|
2849
|
-
val: { type:
|
|
2851
|
+
var p = this.parseNumberSkeletonFromString(y, l.styleLocation);
|
|
2852
|
+
return p.err ? p : {
|
|
2853
|
+
val: { type: $.number, value: n, location: _, style: p.val },
|
|
2850
2854
|
err: null
|
|
2851
2855
|
};
|
|
2852
2856
|
} else {
|
|
2853
2857
|
if (y.length === 0)
|
|
2854
2858
|
return this.error(B.EXPECT_DATE_TIME_SKELETON, _);
|
|
2855
2859
|
var v = y;
|
|
2856
|
-
this.locale && (v =
|
|
2857
|
-
var
|
|
2858
|
-
type:
|
|
2860
|
+
this.locale && (v = Cn(y, this.locale));
|
|
2861
|
+
var m = {
|
|
2862
|
+
type: xe.dateTime,
|
|
2859
2863
|
pattern: v,
|
|
2860
2864
|
location: l.styleLocation,
|
|
2861
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2862
|
-
},
|
|
2865
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(v) : {}
|
|
2866
|
+
}, O = s === "date" ? $.date : $.time;
|
|
2863
2867
|
return {
|
|
2864
|
-
val: { type:
|
|
2868
|
+
val: { type: O, value: n, location: _, style: m },
|
|
2865
2869
|
err: null
|
|
2866
2870
|
};
|
|
2867
2871
|
}
|
|
2868
2872
|
}
|
|
2869
2873
|
return {
|
|
2870
2874
|
val: {
|
|
2871
|
-
type: s === "number" ?
|
|
2875
|
+
type: s === "number" ? $.number : s === "date" ? $.date : $.time,
|
|
2872
2876
|
value: n,
|
|
2873
2877
|
location: _,
|
|
2874
2878
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
@@ -2881,50 +2885,50 @@ var qn = (
|
|
|
2881
2885
|
case "select": {
|
|
2882
2886
|
var w = this.clonePosition();
|
|
2883
2887
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2884
|
-
return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2888
|
+
return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS, A(w, qe({}, w)));
|
|
2885
2889
|
this.bumpSpace();
|
|
2886
|
-
var
|
|
2887
|
-
if (s !== "select" &&
|
|
2890
|
+
var M = this.parseIdentifierIfPossible(), S = 0;
|
|
2891
|
+
if (s !== "select" && M.value === "offset") {
|
|
2888
2892
|
if (!this.bumpIf(":"))
|
|
2889
|
-
return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2893
|
+
return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
|
|
2890
2894
|
this.bumpSpace();
|
|
2891
|
-
var
|
|
2892
|
-
if (
|
|
2893
|
-
return
|
|
2894
|
-
this.bumpSpace(),
|
|
2895
|
+
var p = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2896
|
+
if (p.err)
|
|
2897
|
+
return p;
|
|
2898
|
+
this.bumpSpace(), M = this.parseIdentifierIfPossible(), S = p.val;
|
|
2895
2899
|
}
|
|
2896
|
-
var
|
|
2897
|
-
if (
|
|
2898
|
-
return
|
|
2900
|
+
var D = this.tryParsePluralOrSelectOptions(t, s, i, M);
|
|
2901
|
+
if (D.err)
|
|
2902
|
+
return D;
|
|
2899
2903
|
var E = this.tryParseArgumentClose(r);
|
|
2900
2904
|
if (E.err)
|
|
2901
2905
|
return E;
|
|
2902
|
-
var
|
|
2906
|
+
var z = A(r, this.clonePosition());
|
|
2903
2907
|
return s === "select" ? {
|
|
2904
2908
|
val: {
|
|
2905
|
-
type:
|
|
2909
|
+
type: $.select,
|
|
2906
2910
|
value: n,
|
|
2907
|
-
options: jt(
|
|
2908
|
-
location:
|
|
2911
|
+
options: jt(D.val),
|
|
2912
|
+
location: z
|
|
2909
2913
|
},
|
|
2910
2914
|
err: null
|
|
2911
2915
|
} : {
|
|
2912
2916
|
val: {
|
|
2913
|
-
type:
|
|
2917
|
+
type: $.plural,
|
|
2914
2918
|
value: n,
|
|
2915
|
-
options: jt(
|
|
2916
|
-
offset:
|
|
2919
|
+
options: jt(D.val),
|
|
2920
|
+
offset: S,
|
|
2917
2921
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2918
|
-
location:
|
|
2922
|
+
location: z
|
|
2919
2923
|
},
|
|
2920
2924
|
err: null
|
|
2921
2925
|
};
|
|
2922
2926
|
}
|
|
2923
2927
|
default:
|
|
2924
|
-
return this.error(B.INVALID_ARGUMENT_TYPE,
|
|
2928
|
+
return this.error(B.INVALID_ARGUMENT_TYPE, A(a, u));
|
|
2925
2929
|
}
|
|
2926
2930
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2927
|
-
return this.isEOF() || this.char() !== 125 ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2931
|
+
return this.isEOF() || this.char() !== 125 ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2928
2932
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2929
2933
|
for (var t = 0, i = this.clonePosition(); !this.isEOF(); ) {
|
|
2930
2934
|
var n = this.char();
|
|
@@ -2933,7 +2937,7 @@ var qn = (
|
|
|
2933
2937
|
this.bump();
|
|
2934
2938
|
var r = this.clonePosition();
|
|
2935
2939
|
if (!this.bumpUntil("'"))
|
|
2936
|
-
return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2940
|
+
return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, A(r, this.clonePosition()));
|
|
2937
2941
|
this.bump();
|
|
2938
2942
|
break;
|
|
2939
2943
|
}
|
|
@@ -2963,28 +2967,28 @@ var qn = (
|
|
|
2963
2967
|
}, e.prototype.parseNumberSkeletonFromString = function(t, i) {
|
|
2964
2968
|
var n = [];
|
|
2965
2969
|
try {
|
|
2966
|
-
n =
|
|
2970
|
+
n = Sn(t);
|
|
2967
2971
|
} catch (r) {
|
|
2968
2972
|
return this.error(B.INVALID_NUMBER_SKELETON, i);
|
|
2969
2973
|
}
|
|
2970
2974
|
return {
|
|
2971
2975
|
val: {
|
|
2972
|
-
type:
|
|
2976
|
+
type: xe.number,
|
|
2973
2977
|
tokens: n,
|
|
2974
2978
|
location: i,
|
|
2975
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2979
|
+
parsedOptions: this.shouldParseSkeletons ? Hn(n) : {}
|
|
2976
2980
|
},
|
|
2977
2981
|
err: null
|
|
2978
2982
|
};
|
|
2979
2983
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, i, n, r) {
|
|
2980
2984
|
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = r.value, c = r.location; ; ) {
|
|
2981
2985
|
if (l.length === 0) {
|
|
2982
|
-
var
|
|
2986
|
+
var p = this.clonePosition();
|
|
2983
2987
|
if (i !== "select" && this.bumpIf("=")) {
|
|
2984
|
-
var
|
|
2985
|
-
if (
|
|
2986
|
-
return
|
|
2987
|
-
c =
|
|
2988
|
+
var m = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR, B.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2989
|
+
if (m.err)
|
|
2990
|
+
return m;
|
|
2991
|
+
c = A(p, this.clonePosition()), l = this.message.slice(p.offset, this.offset());
|
|
2988
2992
|
} else
|
|
2989
2993
|
break;
|
|
2990
2994
|
}
|
|
@@ -2993,7 +2997,7 @@ var qn = (
|
|
|
2993
2997
|
l === "other" && (a = !0), this.bumpSpace();
|
|
2994
2998
|
var d = this.clonePosition();
|
|
2995
2999
|
if (!this.bumpIf("{"))
|
|
2996
|
-
return this.error(i === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3000
|
+
return this.error(i === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, A(this.clonePosition(), this.clonePosition()));
|
|
2997
3001
|
var E = this.parseMessage(t + 1, i, n);
|
|
2998
3002
|
if (E.err)
|
|
2999
3003
|
return E;
|
|
@@ -3004,11 +3008,11 @@ var qn = (
|
|
|
3004
3008
|
l,
|
|
3005
3009
|
{
|
|
3006
3010
|
value: E.val,
|
|
3007
|
-
location:
|
|
3011
|
+
location: A(d, this.clonePosition())
|
|
3008
3012
|
}
|
|
3009
3013
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
|
|
3010
3014
|
}
|
|
3011
|
-
return s.length === 0 ? this.error(i === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR : B.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3015
|
+
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 };
|
|
3012
3016
|
}, e.prototype.tryParseDecimalInteger = function(t, i) {
|
|
3013
3017
|
var n = 1, r = this.clonePosition();
|
|
3014
3018
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3019,8 +3023,8 @@ var qn = (
|
|
|
3019
3023
|
else
|
|
3020
3024
|
break;
|
|
3021
3025
|
}
|
|
3022
|
-
var u =
|
|
3023
|
-
return o ? (a *= n,
|
|
3026
|
+
var u = A(r, this.clonePosition());
|
|
3027
|
+
return o ? (a *= n, Fn(a) ? { val: a, err: null } : this.error(i, u)) : this.error(t, u);
|
|
3024
3028
|
}, e.prototype.offset = function() {
|
|
3025
3029
|
return this.position.offset;
|
|
3026
3030
|
}, e.prototype.isEOF = function() {
|
|
@@ -3035,7 +3039,7 @@ var qn = (
|
|
|
3035
3039
|
var t = this.position.offset;
|
|
3036
3040
|
if (t >= this.message.length)
|
|
3037
3041
|
throw Error("out of bound");
|
|
3038
|
-
var i =
|
|
3042
|
+
var i = mi(this.message, t);
|
|
3039
3043
|
if (i === void 0)
|
|
3040
3044
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3041
3045
|
return i;
|
|
@@ -3076,7 +3080,7 @@ var qn = (
|
|
|
3076
3080
|
break;
|
|
3077
3081
|
}
|
|
3078
3082
|
}, e.prototype.bumpSpace = function() {
|
|
3079
|
-
for (; !this.isEOF() &&
|
|
3083
|
+
for (; !this.isEOF() && gi(this.char()); )
|
|
3080
3084
|
this.bump();
|
|
3081
3085
|
}, e.prototype.peek = function() {
|
|
3082
3086
|
if (this.isEOF())
|
|
@@ -3086,47 +3090,47 @@ var qn = (
|
|
|
3086
3090
|
}, e;
|
|
3087
3091
|
}()
|
|
3088
3092
|
);
|
|
3089
|
-
function
|
|
3093
|
+
function yt(e) {
|
|
3090
3094
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3091
3095
|
}
|
|
3092
|
-
function Wn(e) {
|
|
3093
|
-
return bt(e) || e === 47;
|
|
3094
|
-
}
|
|
3095
3096
|
function Zn(e) {
|
|
3097
|
+
return yt(e) || e === 47;
|
|
3098
|
+
}
|
|
3099
|
+
function Yn(e) {
|
|
3096
3100
|
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;
|
|
3097
3101
|
}
|
|
3098
|
-
function
|
|
3102
|
+
function gi(e) {
|
|
3099
3103
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3100
3104
|
}
|
|
3101
|
-
function
|
|
3105
|
+
function Jn(e) {
|
|
3102
3106
|
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;
|
|
3103
3107
|
}
|
|
3104
|
-
function
|
|
3108
|
+
function vt(e) {
|
|
3105
3109
|
e.forEach(function(t) {
|
|
3106
3110
|
if (delete t.location, si(t) || ai(t))
|
|
3107
3111
|
for (var i in t.options)
|
|
3108
|
-
delete t.options[i].location,
|
|
3112
|
+
delete t.options[i].location, vt(t.options[i].value);
|
|
3109
3113
|
else
|
|
3110
|
-
ni(t) && ui(t.style) || (ri(t) || oi(t)) &&
|
|
3114
|
+
ni(t) && ui(t.style) || (ri(t) || oi(t)) && mt(t.style) ? delete t.style.location : li(t) && vt(t.children);
|
|
3111
3115
|
});
|
|
3112
3116
|
}
|
|
3113
|
-
function
|
|
3114
|
-
t === void 0 && (t = {}), t =
|
|
3115
|
-
var i = new
|
|
3117
|
+
function Qn(e, t) {
|
|
3118
|
+
t === void 0 && (t = {}), t = qe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3119
|
+
var i = new Wn(e, t).parse();
|
|
3116
3120
|
if (i.err) {
|
|
3117
3121
|
var n = SyntaxError(B[i.err.kind]);
|
|
3118
3122
|
throw n.location = i.err.location, n.originalMessage = i.err.message, n;
|
|
3119
3123
|
}
|
|
3120
|
-
return t != null && t.captureLocation ||
|
|
3124
|
+
return t != null && t.captureLocation || vt(i.val), i.val;
|
|
3121
3125
|
}
|
|
3122
|
-
var
|
|
3126
|
+
var Te;
|
|
3123
3127
|
(function(e) {
|
|
3124
3128
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3125
|
-
})(
|
|
3126
|
-
var
|
|
3129
|
+
})(Te || (Te = {}));
|
|
3130
|
+
var Qe = (
|
|
3127
3131
|
/** @class */
|
|
3128
3132
|
function(e) {
|
|
3129
|
-
|
|
3133
|
+
Je(t, e);
|
|
3130
3134
|
function t(i, n, r) {
|
|
3131
3135
|
var o = e.call(this, i) || this;
|
|
3132
3136
|
return o.code = n, o.originalMessage = r, o;
|
|
@@ -3138,44 +3142,44 @@ var Ye = (
|
|
|
3138
3142
|
), $t = (
|
|
3139
3143
|
/** @class */
|
|
3140
3144
|
function(e) {
|
|
3141
|
-
|
|
3145
|
+
Je(t, e);
|
|
3142
3146
|
function t(i, n, r, o) {
|
|
3143
|
-
return e.call(this, 'Invalid values for "'.concat(i, '": "').concat(n, '". Options are "').concat(Object.keys(r).join('", "'), '"'),
|
|
3147
|
+
return e.call(this, 'Invalid values for "'.concat(i, '": "').concat(n, '". Options are "').concat(Object.keys(r).join('", "'), '"'), Te.INVALID_VALUE, o) || this;
|
|
3144
3148
|
}
|
|
3145
3149
|
return t;
|
|
3146
|
-
}(
|
|
3147
|
-
),
|
|
3150
|
+
}(Qe)
|
|
3151
|
+
), Kn = (
|
|
3148
3152
|
/** @class */
|
|
3149
3153
|
function(e) {
|
|
3150
|
-
|
|
3154
|
+
Je(t, e);
|
|
3151
3155
|
function t(i, n, r) {
|
|
3152
|
-
return e.call(this, 'Value for "'.concat(i, '" must be of type ').concat(n),
|
|
3156
|
+
return e.call(this, 'Value for "'.concat(i, '" must be of type ').concat(n), Te.INVALID_VALUE, r) || this;
|
|
3153
3157
|
}
|
|
3154
3158
|
return t;
|
|
3155
|
-
}(
|
|
3156
|
-
),
|
|
3159
|
+
}(Qe)
|
|
3160
|
+
), er = (
|
|
3157
3161
|
/** @class */
|
|
3158
3162
|
function(e) {
|
|
3159
|
-
|
|
3163
|
+
Je(t, e);
|
|
3160
3164
|
function t(i, n) {
|
|
3161
|
-
return e.call(this, 'The intl string context variable "'.concat(i, '" was not provided to the string "').concat(n, '"'),
|
|
3165
|
+
return e.call(this, 'The intl string context variable "'.concat(i, '" was not provided to the string "').concat(n, '"'), Te.MISSING_VALUE, n) || this;
|
|
3162
3166
|
}
|
|
3163
3167
|
return t;
|
|
3164
|
-
}(
|
|
3168
|
+
}(Qe)
|
|
3165
3169
|
), W;
|
|
3166
3170
|
(function(e) {
|
|
3167
3171
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3168
3172
|
})(W || (W = {}));
|
|
3169
|
-
function
|
|
3173
|
+
function tr(e) {
|
|
3170
3174
|
return e.length < 2 ? e : e.reduce(function(t, i) {
|
|
3171
3175
|
var n = t[t.length - 1];
|
|
3172
3176
|
return !n || n.type !== W.literal || i.type !== W.literal ? t.push(i) : n.value += i.value, t;
|
|
3173
3177
|
}, []);
|
|
3174
3178
|
}
|
|
3175
|
-
function
|
|
3179
|
+
function ir(e) {
|
|
3176
3180
|
return typeof e == "function";
|
|
3177
3181
|
}
|
|
3178
|
-
function
|
|
3182
|
+
function Ve(e, t, i, n, r, o, a) {
|
|
3179
3183
|
if (e.length === 1 && Ot(e[0]))
|
|
3180
3184
|
return [
|
|
3181
3185
|
{
|
|
@@ -3192,98 +3196,98 @@ function Fe(e, t, i, n, r, o, a) {
|
|
|
3192
3196
|
});
|
|
3193
3197
|
continue;
|
|
3194
3198
|
}
|
|
3195
|
-
if (
|
|
3199
|
+
if (Pn(c)) {
|
|
3196
3200
|
typeof o == "number" && s.push({
|
|
3197
3201
|
type: W.literal,
|
|
3198
3202
|
value: i.getNumberFormat(t).format(o)
|
|
3199
3203
|
});
|
|
3200
3204
|
continue;
|
|
3201
3205
|
}
|
|
3202
|
-
var
|
|
3203
|
-
if (!(r &&
|
|
3204
|
-
throw new
|
|
3205
|
-
var
|
|
3206
|
-
if (
|
|
3207
|
-
(!
|
|
3208
|
-
type: typeof
|
|
3209
|
-
value:
|
|
3206
|
+
var p = c.value;
|
|
3207
|
+
if (!(r && p in r))
|
|
3208
|
+
throw new er(p, a);
|
|
3209
|
+
var m = r[p];
|
|
3210
|
+
if (Tn(c)) {
|
|
3211
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
3212
|
+
type: typeof m == "string" ? W.literal : W.object,
|
|
3213
|
+
value: m
|
|
3210
3214
|
});
|
|
3211
3215
|
continue;
|
|
3212
3216
|
}
|
|
3213
3217
|
if (ri(c)) {
|
|
3214
|
-
var d = typeof c.style == "string" ? n.date[c.style] :
|
|
3218
|
+
var d = typeof c.style == "string" ? n.date[c.style] : mt(c.style) ? c.style.parsedOptions : void 0;
|
|
3215
3219
|
s.push({
|
|
3216
3220
|
type: W.literal,
|
|
3217
|
-
value: i.getDateTimeFormat(t, d).format(
|
|
3221
|
+
value: i.getDateTimeFormat(t, d).format(m)
|
|
3218
3222
|
});
|
|
3219
3223
|
continue;
|
|
3220
3224
|
}
|
|
3221
3225
|
if (oi(c)) {
|
|
3222
|
-
var d = typeof c.style == "string" ? n.time[c.style] :
|
|
3226
|
+
var d = typeof c.style == "string" ? n.time[c.style] : mt(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3223
3227
|
s.push({
|
|
3224
3228
|
type: W.literal,
|
|
3225
|
-
value: i.getDateTimeFormat(t, d).format(
|
|
3229
|
+
value: i.getDateTimeFormat(t, d).format(m)
|
|
3226
3230
|
});
|
|
3227
3231
|
continue;
|
|
3228
3232
|
}
|
|
3229
3233
|
if (ni(c)) {
|
|
3230
3234
|
var d = typeof c.style == "string" ? n.number[c.style] : ui(c.style) ? c.style.parsedOptions : void 0;
|
|
3231
|
-
d && d.scale && (
|
|
3235
|
+
d && d.scale && (m = m * (d.scale || 1)), s.push({
|
|
3232
3236
|
type: W.literal,
|
|
3233
|
-
value: i.getNumberFormat(t, d).format(
|
|
3237
|
+
value: i.getNumberFormat(t, d).format(m)
|
|
3234
3238
|
});
|
|
3235
3239
|
continue;
|
|
3236
3240
|
}
|
|
3237
3241
|
if (li(c)) {
|
|
3238
3242
|
var E = c.children, _ = c.value, y = r[_];
|
|
3239
|
-
if (!
|
|
3240
|
-
throw new
|
|
3241
|
-
var v =
|
|
3242
|
-
return
|
|
3243
|
+
if (!ir(y))
|
|
3244
|
+
throw new Kn(_, "function", a);
|
|
3245
|
+
var v = Ve(E, t, i, n, r, o), O = y(v.map(function(S) {
|
|
3246
|
+
return S.value;
|
|
3243
3247
|
}));
|
|
3244
|
-
Array.isArray(
|
|
3248
|
+
Array.isArray(O) || (O = [O]), s.push.apply(s, O.map(function(S) {
|
|
3245
3249
|
return {
|
|
3246
|
-
type: typeof
|
|
3247
|
-
value:
|
|
3250
|
+
type: typeof S == "string" ? W.literal : W.object,
|
|
3251
|
+
value: S
|
|
3248
3252
|
};
|
|
3249
3253
|
}));
|
|
3250
3254
|
}
|
|
3251
3255
|
if (si(c)) {
|
|
3252
|
-
var w = c.options[
|
|
3256
|
+
var w = c.options[m] || c.options.other;
|
|
3253
3257
|
if (!w)
|
|
3254
|
-
throw new $t(c.value,
|
|
3255
|
-
s.push.apply(s,
|
|
3258
|
+
throw new $t(c.value, m, Object.keys(c.options), a);
|
|
3259
|
+
s.push.apply(s, Ve(w.value, t, i, n, r));
|
|
3256
3260
|
continue;
|
|
3257
3261
|
}
|
|
3258
3262
|
if (ai(c)) {
|
|
3259
|
-
var w = c.options["=".concat(
|
|
3263
|
+
var w = c.options["=".concat(m)];
|
|
3260
3264
|
if (!w) {
|
|
3261
3265
|
if (!Intl.PluralRules)
|
|
3262
|
-
throw new
|
|
3266
|
+
throw new Qe(`Intl.PluralRules is not available in this environment.
|
|
3263
3267
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3264
|
-
`,
|
|
3265
|
-
var
|
|
3266
|
-
w = c.options[
|
|
3268
|
+
`, Te.MISSING_INTL_API, a);
|
|
3269
|
+
var M = i.getPluralRules(t, { type: c.pluralType }).select(m - (c.offset || 0));
|
|
3270
|
+
w = c.options[M] || c.options.other;
|
|
3267
3271
|
}
|
|
3268
3272
|
if (!w)
|
|
3269
|
-
throw new $t(c.value,
|
|
3270
|
-
s.push.apply(s,
|
|
3273
|
+
throw new $t(c.value, m, Object.keys(c.options), a);
|
|
3274
|
+
s.push.apply(s, Ve(w.value, t, i, n, r, m - (c.offset || 0)));
|
|
3271
3275
|
continue;
|
|
3272
3276
|
}
|
|
3273
3277
|
}
|
|
3274
|
-
return
|
|
3278
|
+
return tr(s);
|
|
3275
3279
|
}
|
|
3276
|
-
function
|
|
3277
|
-
return t ?
|
|
3278
|
-
return i[n] =
|
|
3280
|
+
function nr(e, t) {
|
|
3281
|
+
return t ? se(se(se({}, e || {}), t || {}), Object.keys(e).reduce(function(i, n) {
|
|
3282
|
+
return i[n] = se(se({}, e[n]), t[n] || {}), i;
|
|
3279
3283
|
}, {})) : e;
|
|
3280
3284
|
}
|
|
3281
|
-
function
|
|
3285
|
+
function rr(e, t) {
|
|
3282
3286
|
return t ? Object.keys(e).reduce(function(i, n) {
|
|
3283
|
-
return i[n] =
|
|
3284
|
-
},
|
|
3287
|
+
return i[n] = nr(e[n], t[n]), i;
|
|
3288
|
+
}, se({}, e)) : e;
|
|
3285
3289
|
}
|
|
3286
|
-
function
|
|
3290
|
+
function ut(e) {
|
|
3287
3291
|
return {
|
|
3288
3292
|
create: function() {
|
|
3289
3293
|
return {
|
|
@@ -3297,39 +3301,39 @@ function at(e) {
|
|
|
3297
3301
|
}
|
|
3298
3302
|
};
|
|
3299
3303
|
}
|
|
3300
|
-
function
|
|
3304
|
+
function or(e) {
|
|
3301
3305
|
return e === void 0 && (e = {
|
|
3302
3306
|
number: {},
|
|
3303
3307
|
dateTime: {},
|
|
3304
3308
|
pluralRules: {}
|
|
3305
3309
|
}), {
|
|
3306
|
-
getNumberFormat:
|
|
3310
|
+
getNumberFormat: st(function() {
|
|
3307
3311
|
for (var t, i = [], n = 0; n < arguments.length; n++)
|
|
3308
3312
|
i[n] = arguments[n];
|
|
3309
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3313
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ot([void 0], i, !1)))();
|
|
3310
3314
|
}, {
|
|
3311
|
-
cache:
|
|
3312
|
-
strategy:
|
|
3315
|
+
cache: ut(e.number),
|
|
3316
|
+
strategy: at.variadic
|
|
3313
3317
|
}),
|
|
3314
|
-
getDateTimeFormat:
|
|
3318
|
+
getDateTimeFormat: st(function() {
|
|
3315
3319
|
for (var t, i = [], n = 0; n < arguments.length; n++)
|
|
3316
3320
|
i[n] = arguments[n];
|
|
3317
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3321
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ot([void 0], i, !1)))();
|
|
3318
3322
|
}, {
|
|
3319
|
-
cache:
|
|
3320
|
-
strategy:
|
|
3323
|
+
cache: ut(e.dateTime),
|
|
3324
|
+
strategy: at.variadic
|
|
3321
3325
|
}),
|
|
3322
|
-
getPluralRules:
|
|
3326
|
+
getPluralRules: st(function() {
|
|
3323
3327
|
for (var t, i = [], n = 0; n < arguments.length; n++)
|
|
3324
3328
|
i[n] = arguments[n];
|
|
3325
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3329
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ot([void 0], i, !1)))();
|
|
3326
3330
|
}, {
|
|
3327
|
-
cache:
|
|
3328
|
-
strategy:
|
|
3331
|
+
cache: ut(e.pluralRules),
|
|
3332
|
+
strategy: at.variadic
|
|
3329
3333
|
})
|
|
3330
3334
|
};
|
|
3331
3335
|
}
|
|
3332
|
-
var
|
|
3336
|
+
var sr = (
|
|
3333
3337
|
/** @class */
|
|
3334
3338
|
function() {
|
|
3335
3339
|
function e(t, i, n, r) {
|
|
@@ -3343,12 +3347,12 @@ var or = (
|
|
|
3343
3347
|
var l = o.formatToParts(u);
|
|
3344
3348
|
if (l.length === 1)
|
|
3345
3349
|
return l[0].value;
|
|
3346
|
-
var c = l.reduce(function(
|
|
3347
|
-
return !
|
|
3350
|
+
var c = l.reduce(function(p, m) {
|
|
3351
|
+
return !p.length || m.type !== W.literal || typeof p[p.length - 1] != "string" ? p.push(m.value) : p[p.length - 1] += m.value, p;
|
|
3348
3352
|
}, []);
|
|
3349
3353
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3350
3354
|
}, this.formatToParts = function(u) {
|
|
3351
|
-
return
|
|
3355
|
+
return Ve(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3352
3356
|
}, this.resolvedOptions = function() {
|
|
3353
3357
|
var u;
|
|
3354
3358
|
return {
|
|
@@ -3362,12 +3366,12 @@ var or = (
|
|
|
3362
3366
|
var a = r || {};
|
|
3363
3367
|
a.formatters;
|
|
3364
3368
|
var s = dn(a, ["formatters"]);
|
|
3365
|
-
this.ast = e.__parse(t,
|
|
3369
|
+
this.ast = e.__parse(t, se(se({}, s), { locale: this.resolvedLocale }));
|
|
3366
3370
|
} else
|
|
3367
3371
|
this.ast = t;
|
|
3368
3372
|
if (!Array.isArray(this.ast))
|
|
3369
3373
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3370
|
-
this.formats =
|
|
3374
|
+
this.formats = rr(e.formats, n), this.formatters = r && r.formatters || or(this.formatterCache);
|
|
3371
3375
|
}
|
|
3372
3376
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3373
3377
|
get: function() {
|
|
@@ -3380,7 +3384,7 @@ var or = (
|
|
|
3380
3384
|
var i = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3381
3385
|
return i.length > 0 ? new Intl.Locale(i[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3382
3386
|
}
|
|
3383
|
-
}, e.__parse =
|
|
3387
|
+
}, e.__parse = Qn, e.formats = {
|
|
3384
3388
|
number: {
|
|
3385
3389
|
integer: {
|
|
3386
3390
|
maximumFractionDigits: 0
|
|
@@ -3441,7 +3445,7 @@ var or = (
|
|
|
3441
3445
|
}, e;
|
|
3442
3446
|
}()
|
|
3443
3447
|
);
|
|
3444
|
-
function
|
|
3448
|
+
function ar(e, t) {
|
|
3445
3449
|
if (t == null)
|
|
3446
3450
|
return;
|
|
3447
3451
|
if (t in e)
|
|
@@ -3462,36 +3466,36 @@ function sr(e, t) {
|
|
|
3462
3466
|
n = void 0;
|
|
3463
3467
|
return n;
|
|
3464
3468
|
}
|
|
3465
|
-
const
|
|
3469
|
+
const ue = {}, lr = (e, t, i) => i && (t in ue || (ue[t] = {}), e in ue[t] || (ue[t][e] = i), i), bi = (e, t) => {
|
|
3466
3470
|
if (t == null)
|
|
3467
3471
|
return;
|
|
3468
|
-
if (t in
|
|
3469
|
-
return
|
|
3470
|
-
const i =
|
|
3472
|
+
if (t in ue && e in ue[t])
|
|
3473
|
+
return ue[t][e];
|
|
3474
|
+
const i = Ke(t);
|
|
3471
3475
|
for (let n = 0; n < i.length; n++) {
|
|
3472
|
-
const r = i[n], o =
|
|
3476
|
+
const r = i[n], o = cr(r, e);
|
|
3473
3477
|
if (o)
|
|
3474
|
-
return
|
|
3478
|
+
return lr(e, t, o);
|
|
3475
3479
|
}
|
|
3476
3480
|
};
|
|
3477
3481
|
let Tt;
|
|
3478
|
-
const
|
|
3479
|
-
function
|
|
3482
|
+
const Re = Ye({});
|
|
3483
|
+
function ur(e) {
|
|
3480
3484
|
return Tt[e] || null;
|
|
3481
3485
|
}
|
|
3482
3486
|
function yi(e) {
|
|
3483
3487
|
return e in Tt;
|
|
3484
3488
|
}
|
|
3485
|
-
function
|
|
3489
|
+
function cr(e, t) {
|
|
3486
3490
|
if (!yi(e))
|
|
3487
3491
|
return null;
|
|
3488
|
-
const i =
|
|
3489
|
-
return
|
|
3492
|
+
const i = ur(e);
|
|
3493
|
+
return ar(i, t);
|
|
3490
3494
|
}
|
|
3491
|
-
function
|
|
3495
|
+
function hr(e) {
|
|
3492
3496
|
if (e == null)
|
|
3493
3497
|
return;
|
|
3494
|
-
const t =
|
|
3498
|
+
const t = Ke(e);
|
|
3495
3499
|
for (let i = 0; i < t.length; i++) {
|
|
3496
3500
|
const n = t[i];
|
|
3497
3501
|
if (yi(n))
|
|
@@ -3499,28 +3503,28 @@ function cr(e) {
|
|
|
3499
3503
|
}
|
|
3500
3504
|
}
|
|
3501
3505
|
function vi(e, ...t) {
|
|
3502
|
-
delete
|
|
3506
|
+
delete ue[e], Re.update((i) => (i[e] = mn.all([i[e] || {}, ...t]), i));
|
|
3503
3507
|
}
|
|
3504
|
-
|
|
3505
|
-
[
|
|
3508
|
+
we(
|
|
3509
|
+
[Re],
|
|
3506
3510
|
([e]) => Object.keys(e)
|
|
3507
3511
|
);
|
|
3508
|
-
|
|
3509
|
-
const
|
|
3510
|
-
function
|
|
3511
|
-
|
|
3512
|
+
Re.subscribe((e) => Tt = e);
|
|
3513
|
+
const Xe = {};
|
|
3514
|
+
function fr(e, t) {
|
|
3515
|
+
Xe[e].delete(t), Xe[e].size === 0 && delete Xe[e];
|
|
3512
3516
|
}
|
|
3513
3517
|
function Ei(e) {
|
|
3514
|
-
return
|
|
3518
|
+
return Xe[e];
|
|
3515
3519
|
}
|
|
3516
|
-
function
|
|
3517
|
-
return
|
|
3520
|
+
function pr(e) {
|
|
3521
|
+
return Ke(e).map((t) => {
|
|
3518
3522
|
const i = Ei(t);
|
|
3519
3523
|
return [t, i ? [...i] : []];
|
|
3520
3524
|
}).filter(([, t]) => t.length > 0);
|
|
3521
3525
|
}
|
|
3522
|
-
function
|
|
3523
|
-
return e == null ? !1 :
|
|
3526
|
+
function Et(e) {
|
|
3527
|
+
return e == null ? !1 : Ke(e).some(
|
|
3524
3528
|
(t) => {
|
|
3525
3529
|
var i;
|
|
3526
3530
|
return (i = Ei(t)) == null ? void 0 : i.size;
|
|
@@ -3529,25 +3533,25 @@ function yt(e) {
|
|
|
3529
3533
|
}
|
|
3530
3534
|
function mr(e, t) {
|
|
3531
3535
|
return Promise.all(
|
|
3532
|
-
t.map((n) => (
|
|
3536
|
+
t.map((n) => (fr(e, n), n().then((r) => r.default || r)))
|
|
3533
3537
|
).then((n) => vi(e, ...n));
|
|
3534
3538
|
}
|
|
3535
|
-
const
|
|
3539
|
+
const He = {};
|
|
3536
3540
|
function _i(e) {
|
|
3537
|
-
if (!
|
|
3538
|
-
return e in
|
|
3539
|
-
const t =
|
|
3540
|
-
return
|
|
3541
|
+
if (!Et(e))
|
|
3542
|
+
return e in He ? He[e] : Promise.resolve();
|
|
3543
|
+
const t = pr(e);
|
|
3544
|
+
return He[e] = Promise.all(
|
|
3541
3545
|
t.map(
|
|
3542
3546
|
([i, n]) => mr(i, n)
|
|
3543
3547
|
)
|
|
3544
3548
|
).then(() => {
|
|
3545
|
-
if (
|
|
3549
|
+
if (Et(e))
|
|
3546
3550
|
return _i(e);
|
|
3547
|
-
delete
|
|
3548
|
-
}),
|
|
3551
|
+
delete He[e];
|
|
3552
|
+
}), He[e];
|
|
3549
3553
|
}
|
|
3550
|
-
const
|
|
3554
|
+
const dr = {
|
|
3551
3555
|
number: {
|
|
3552
3556
|
scientific: { notation: "scientific" },
|
|
3553
3557
|
engineering: { notation: "engineering" },
|
|
@@ -3576,176 +3580,176 @@ const pr = {
|
|
|
3576
3580
|
timeZoneName: "short"
|
|
3577
3581
|
}
|
|
3578
3582
|
}
|
|
3579
|
-
},
|
|
3583
|
+
}, gr = {
|
|
3580
3584
|
fallbackLocale: null,
|
|
3581
3585
|
loadingDelay: 200,
|
|
3582
|
-
formats:
|
|
3586
|
+
formats: dr,
|
|
3583
3587
|
warnOnMissingMessages: !0,
|
|
3584
3588
|
handleMissingMessage: void 0,
|
|
3585
3589
|
ignoreTag: !0
|
|
3586
|
-
}, br =
|
|
3587
|
-
function
|
|
3590
|
+
}, br = gr;
|
|
3591
|
+
function Pe() {
|
|
3588
3592
|
return br;
|
|
3589
3593
|
}
|
|
3590
|
-
const
|
|
3591
|
-
var
|
|
3594
|
+
const ct = Ye(!1);
|
|
3595
|
+
var yr = Object.defineProperty, vr = Object.defineProperties, Er = Object.getOwnPropertyDescriptors, zt = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, xr = Object.prototype.propertyIsEnumerable, Ft = (e, t, i) => t in e ? yr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, Tr = (e, t) => {
|
|
3592
3596
|
for (var i in t || (t = {}))
|
|
3593
|
-
|
|
3597
|
+
_r.call(t, i) && Ft(e, i, t[i]);
|
|
3594
3598
|
if (zt)
|
|
3595
3599
|
for (var i of zt(t))
|
|
3596
|
-
|
|
3600
|
+
xr.call(t, i) && Ft(e, i, t[i]);
|
|
3597
3601
|
return e;
|
|
3598
|
-
},
|
|
3599
|
-
let
|
|
3600
|
-
const
|
|
3602
|
+
}, Pr = (e, t) => vr(e, Er(t));
|
|
3603
|
+
let _t;
|
|
3604
|
+
const We = Ye(null);
|
|
3601
3605
|
function Vt(e) {
|
|
3602
3606
|
return e.split("-").map((t, i, n) => n.slice(0, i + 1).join("-")).reverse();
|
|
3603
3607
|
}
|
|
3604
|
-
function
|
|
3608
|
+
function Ke(e, t = Pe().fallbackLocale) {
|
|
3605
3609
|
const i = Vt(e);
|
|
3606
3610
|
return t ? [.../* @__PURE__ */ new Set([...i, ...Vt(t)])] : i;
|
|
3607
3611
|
}
|
|
3608
|
-
function
|
|
3609
|
-
return
|
|
3612
|
+
function fe() {
|
|
3613
|
+
return _t != null ? _t : void 0;
|
|
3610
3614
|
}
|
|
3611
|
-
|
|
3612
|
-
|
|
3615
|
+
We.subscribe((e) => {
|
|
3616
|
+
_t = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3613
3617
|
});
|
|
3614
|
-
const
|
|
3615
|
-
if (e &&
|
|
3616
|
-
const { loadingDelay: t } =
|
|
3618
|
+
const wr = (e) => {
|
|
3619
|
+
if (e && hr(e) && Et(e)) {
|
|
3620
|
+
const { loadingDelay: t } = Pe();
|
|
3617
3621
|
let i;
|
|
3618
|
-
return typeof window != "undefined" &&
|
|
3619
|
-
() =>
|
|
3622
|
+
return typeof window != "undefined" && fe() != null && t ? i = window.setTimeout(
|
|
3623
|
+
() => ct.set(!0),
|
|
3620
3624
|
t
|
|
3621
|
-
) :
|
|
3622
|
-
|
|
3625
|
+
) : ct.set(!0), _i(e).then(() => {
|
|
3626
|
+
We.set(e);
|
|
3623
3627
|
}).finally(() => {
|
|
3624
|
-
clearTimeout(i),
|
|
3628
|
+
clearTimeout(i), ct.set(!1);
|
|
3625
3629
|
});
|
|
3626
3630
|
}
|
|
3627
|
-
return
|
|
3628
|
-
},
|
|
3629
|
-
set:
|
|
3630
|
-
}),
|
|
3631
|
+
return We.set(e);
|
|
3632
|
+
}, Be = Pr(Tr({}, We), {
|
|
3633
|
+
set: wr
|
|
3634
|
+
}), et = (e) => {
|
|
3631
3635
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3632
3636
|
return (n) => {
|
|
3633
3637
|
const r = JSON.stringify(n);
|
|
3634
3638
|
return r in t ? t[r] : t[r] = e(n);
|
|
3635
3639
|
};
|
|
3636
3640
|
};
|
|
3637
|
-
var
|
|
3641
|
+
var Br = Object.defineProperty, Ze = Object.getOwnPropertySymbols, xi = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, Xt = (e, t, i) => t in e ? Br(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, Pt = (e, t) => {
|
|
3638
3642
|
for (var i in t || (t = {}))
|
|
3639
3643
|
xi.call(t, i) && Xt(e, i, t[i]);
|
|
3640
|
-
if (
|
|
3641
|
-
for (var i of
|
|
3644
|
+
if (Ze)
|
|
3645
|
+
for (var i of Ze(t))
|
|
3642
3646
|
Ti.call(t, i) && Xt(e, i, t[i]);
|
|
3643
3647
|
return e;
|
|
3644
|
-
},
|
|
3648
|
+
}, Le = (e, t) => {
|
|
3645
3649
|
var i = {};
|
|
3646
3650
|
for (var n in e)
|
|
3647
3651
|
xi.call(e, n) && t.indexOf(n) < 0 && (i[n] = e[n]);
|
|
3648
|
-
if (e != null &&
|
|
3649
|
-
for (var n of
|
|
3652
|
+
if (e != null && Ze)
|
|
3653
|
+
for (var n of Ze(e))
|
|
3650
3654
|
t.indexOf(n) < 0 && Ti.call(e, n) && (i[n] = e[n]);
|
|
3651
3655
|
return i;
|
|
3652
3656
|
};
|
|
3653
|
-
const
|
|
3654
|
-
const { formats: i } =
|
|
3657
|
+
const De = (e, t) => {
|
|
3658
|
+
const { formats: i } = Pe();
|
|
3655
3659
|
if (e in i && t in i[e])
|
|
3656
3660
|
return i[e][t];
|
|
3657
3661
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3658
|
-
},
|
|
3662
|
+
}, Lr = et(
|
|
3659
3663
|
(e) => {
|
|
3660
|
-
var t = e, { locale: i, format: n } = t, r =
|
|
3664
|
+
var t = e, { locale: i, format: n } = t, r = Le(t, ["locale", "format"]);
|
|
3661
3665
|
if (i == null)
|
|
3662
3666
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3663
|
-
return n && (r =
|
|
3667
|
+
return n && (r = De("number", n)), new Intl.NumberFormat(i, r);
|
|
3664
3668
|
}
|
|
3665
|
-
),
|
|
3669
|
+
), Sr = et(
|
|
3666
3670
|
(e) => {
|
|
3667
|
-
var t = e, { locale: i, format: n } = t, r =
|
|
3671
|
+
var t = e, { locale: i, format: n } = t, r = Le(t, ["locale", "format"]);
|
|
3668
3672
|
if (i == null)
|
|
3669
3673
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3670
|
-
return n ? r =
|
|
3674
|
+
return n ? r = De("date", n) : Object.keys(r).length === 0 && (r = De("date", "short")), new Intl.DateTimeFormat(i, r);
|
|
3671
3675
|
}
|
|
3672
|
-
), Ar =
|
|
3676
|
+
), Ar = et(
|
|
3673
3677
|
(e) => {
|
|
3674
|
-
var t = e, { locale: i, format: n } = t, r =
|
|
3678
|
+
var t = e, { locale: i, format: n } = t, r = Le(t, ["locale", "format"]);
|
|
3675
3679
|
if (i == null)
|
|
3676
3680
|
throw new Error(
|
|
3677
3681
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3678
3682
|
);
|
|
3679
|
-
return n ? r =
|
|
3683
|
+
return n ? r = De("time", n) : Object.keys(r).length === 0 && (r = De("time", "short")), new Intl.DateTimeFormat(i, r);
|
|
3680
3684
|
}
|
|
3681
|
-
),
|
|
3685
|
+
), Ir = (e = {}) => {
|
|
3682
3686
|
var t = e, {
|
|
3683
|
-
locale: i =
|
|
3684
|
-
} = t, n =
|
|
3687
|
+
locale: i = fe()
|
|
3688
|
+
} = t, n = Le(t, [
|
|
3685
3689
|
"locale"
|
|
3686
3690
|
]);
|
|
3687
|
-
return
|
|
3688
|
-
},
|
|
3691
|
+
return Lr(Pt({ locale: i }, n));
|
|
3692
|
+
}, kr = (e = {}) => {
|
|
3689
3693
|
var t = e, {
|
|
3690
|
-
locale: i =
|
|
3691
|
-
} = t, n =
|
|
3694
|
+
locale: i = fe()
|
|
3695
|
+
} = t, n = Le(t, [
|
|
3692
3696
|
"locale"
|
|
3693
3697
|
]);
|
|
3694
|
-
return
|
|
3695
|
-
},
|
|
3698
|
+
return Sr(Pt({ locale: i }, n));
|
|
3699
|
+
}, Hr = (e = {}) => {
|
|
3696
3700
|
var t = e, {
|
|
3697
|
-
locale: i =
|
|
3698
|
-
} = t, n =
|
|
3701
|
+
locale: i = fe()
|
|
3702
|
+
} = t, n = Le(t, [
|
|
3699
3703
|
"locale"
|
|
3700
3704
|
]);
|
|
3701
3705
|
return Ar(Pt({ locale: i }, n));
|
|
3702
|
-
},
|
|
3706
|
+
}, Cr = et(
|
|
3703
3707
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3704
|
-
(e, t =
|
|
3705
|
-
ignoreTag:
|
|
3708
|
+
(e, t = fe()) => new sr(e, t, Pe().formats, {
|
|
3709
|
+
ignoreTag: Pe().ignoreTag
|
|
3706
3710
|
})
|
|
3707
|
-
),
|
|
3711
|
+
), Nr = (e, t = {}) => {
|
|
3708
3712
|
var i, n, r, o;
|
|
3709
3713
|
let a = t;
|
|
3710
3714
|
typeof e == "object" && (a = e, e = a.id);
|
|
3711
3715
|
const {
|
|
3712
3716
|
values: s,
|
|
3713
|
-
locale: u =
|
|
3717
|
+
locale: u = fe(),
|
|
3714
3718
|
default: l
|
|
3715
3719
|
} = a;
|
|
3716
3720
|
if (u == null)
|
|
3717
3721
|
throw new Error(
|
|
3718
3722
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3719
3723
|
);
|
|
3720
|
-
let c =
|
|
3724
|
+
let c = bi(e, u);
|
|
3721
3725
|
if (!c)
|
|
3722
|
-
c = (o = (r = (n = (i =
|
|
3726
|
+
c = (o = (r = (n = (i = Pe()).handleMissingMessage) == null ? void 0 : n.call(i, { locale: u, id: e, defaultValue: l })) != null ? r : l) != null ? o : e;
|
|
3723
3727
|
else if (typeof c != "string")
|
|
3724
3728
|
return console.warn(
|
|
3725
3729
|
`[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.`
|
|
3726
3730
|
), c;
|
|
3727
3731
|
if (!s)
|
|
3728
3732
|
return c;
|
|
3729
|
-
let
|
|
3733
|
+
let p = c;
|
|
3730
3734
|
try {
|
|
3731
|
-
|
|
3732
|
-
} catch (
|
|
3733
|
-
|
|
3735
|
+
p = Cr(c, u).format(s);
|
|
3736
|
+
} catch (m) {
|
|
3737
|
+
m instanceof Error && console.warn(
|
|
3734
3738
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3735
|
-
|
|
3739
|
+
m.message
|
|
3736
3740
|
);
|
|
3737
3741
|
}
|
|
3738
|
-
return
|
|
3739
|
-
},
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3742
|
+
return p;
|
|
3743
|
+
}, Or = (e, t) => Hr(t).format(e), Mr = (e, t) => kr(t).format(e), Dr = (e, t) => Ir(t).format(e), Rr = (e, t = fe()) => bi(e, t), Ur = we([Be, Re], () => Nr);
|
|
3744
|
+
we([Be], () => Or);
|
|
3745
|
+
we([Be], () => Mr);
|
|
3746
|
+
we([Be], () => Dr);
|
|
3747
|
+
we([Be, Re], () => Rr);
|
|
3744
3748
|
function qt(e, t) {
|
|
3745
3749
|
vi(e, t);
|
|
3746
3750
|
}
|
|
3747
|
-
function
|
|
3748
|
-
|
|
3751
|
+
function jr(e) {
|
|
3752
|
+
Be.set(e);
|
|
3749
3753
|
}
|
|
3750
3754
|
const Wt = {
|
|
3751
3755
|
en: {
|
|
@@ -4008,13 +4012,13 @@ const Wt = {
|
|
|
4008
4012
|
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."
|
|
4009
4013
|
}
|
|
4010
4014
|
};
|
|
4011
|
-
function
|
|
4015
|
+
function Gr(e, t) {
|
|
4012
4016
|
if (e) {
|
|
4013
4017
|
const i = document.createElement("style");
|
|
4014
4018
|
i.innerHTML = t, e.appendChild(i);
|
|
4015
4019
|
}
|
|
4016
4020
|
}
|
|
4017
|
-
function
|
|
4021
|
+
function $r(e, t) {
|
|
4018
4022
|
if (!e || !t)
|
|
4019
4023
|
return;
|
|
4020
4024
|
const i = new URL(t);
|
|
@@ -4025,7 +4029,7 @@ function Gr(e, t) {
|
|
|
4025
4029
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4026
4030
|
});
|
|
4027
4031
|
}
|
|
4028
|
-
function
|
|
4032
|
+
function zr(e, t, i) {
|
|
4029
4033
|
if (window.emMessageBus) {
|
|
4030
4034
|
const n = document.createElement("style");
|
|
4031
4035
|
window.emMessageBus.subscribe(t, (r) => {
|
|
@@ -4033,42 +4037,42 @@ function $r(e, t, i) {
|
|
|
4033
4037
|
});
|
|
4034
4038
|
}
|
|
4035
4039
|
}
|
|
4036
|
-
function
|
|
4040
|
+
function Fr(e) {
|
|
4037
4041
|
ki(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)}');
|
|
4038
4042
|
}
|
|
4039
|
-
function
|
|
4043
|
+
function Vr(e) {
|
|
4040
4044
|
let t;
|
|
4041
4045
|
function i(o, a) {
|
|
4042
4046
|
if (
|
|
4043
4047
|
/*popupState*/
|
|
4044
4048
|
o[10] === "initial"
|
|
4045
4049
|
)
|
|
4046
|
-
return
|
|
4050
|
+
return Jr;
|
|
4047
4051
|
if (
|
|
4048
4052
|
/*popupState*/
|
|
4049
4053
|
o[10] === "successful"
|
|
4050
4054
|
)
|
|
4051
|
-
return
|
|
4055
|
+
return Yr;
|
|
4052
4056
|
if (
|
|
4053
4057
|
/*popupState*/
|
|
4054
4058
|
o[10] === "KYC"
|
|
4055
4059
|
)
|
|
4056
|
-
return
|
|
4060
|
+
return Zr;
|
|
4057
4061
|
if (
|
|
4058
4062
|
/*popupState*/
|
|
4059
4063
|
o[10] === "KYC2"
|
|
4060
4064
|
)
|
|
4061
|
-
return
|
|
4065
|
+
return Wr;
|
|
4062
4066
|
if (
|
|
4063
4067
|
/*popupState*/
|
|
4064
4068
|
o[10] === "error"
|
|
4065
4069
|
)
|
|
4066
|
-
return
|
|
4070
|
+
return qr;
|
|
4067
4071
|
}
|
|
4068
4072
|
let n = i(e), r = n && n(e);
|
|
4069
4073
|
return {
|
|
4070
4074
|
c() {
|
|
4071
|
-
t =
|
|
4075
|
+
t = b("div"), r && r.c(), h(t, "class", "InitialWrapper");
|
|
4072
4076
|
},
|
|
4073
4077
|
m(o, a) {
|
|
4074
4078
|
T(o, t, a), r && r.m(t, null);
|
|
@@ -4081,14 +4085,14 @@ function Fr(e) {
|
|
|
4081
4085
|
}
|
|
4082
4086
|
};
|
|
4083
4087
|
}
|
|
4084
|
-
function
|
|
4088
|
+
function Xr(e) {
|
|
4085
4089
|
let t, i = (
|
|
4086
4090
|
/*$_*/
|
|
4087
4091
|
e[12]("loading") + ""
|
|
4088
4092
|
), n;
|
|
4089
4093
|
return {
|
|
4090
4094
|
c() {
|
|
4091
|
-
t =
|
|
4095
|
+
t = b("p"), n = L(i);
|
|
4092
4096
|
},
|
|
4093
4097
|
m(r, o) {
|
|
4094
4098
|
T(r, t, o), f(t, n);
|
|
@@ -4096,31 +4100,31 @@ function Vr(e) {
|
|
|
4096
4100
|
p(r, o) {
|
|
4097
4101
|
o[0] & /*$_*/
|
|
4098
4102
|
4096 && i !== (i = /*$_*/
|
|
4099
|
-
r[12]("loading") + "") &&
|
|
4103
|
+
r[12]("loading") + "") && k(n, i);
|
|
4100
4104
|
},
|
|
4101
4105
|
d(r) {
|
|
4102
4106
|
r && x(t);
|
|
4103
4107
|
}
|
|
4104
4108
|
};
|
|
4105
4109
|
}
|
|
4106
|
-
function
|
|
4110
|
+
function qr(e) {
|
|
4107
4111
|
let t, i = (
|
|
4108
4112
|
/*$_*/
|
|
4109
4113
|
e[12]("depositError") + ""
|
|
4110
4114
|
), n, r, o, a, s, u = (
|
|
4111
4115
|
/*$_*/
|
|
4112
4116
|
e[12]("errorDescription") + ""
|
|
4113
|
-
), l, c,
|
|
4117
|
+
), l, c, p, m = (
|
|
4114
4118
|
/*$_*/
|
|
4115
4119
|
e[12]("closeButton") + ""
|
|
4116
4120
|
), d, E, _;
|
|
4117
4121
|
return {
|
|
4118
4122
|
c() {
|
|
4119
|
-
t =
|
|
4123
|
+
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");
|
|
4120
4124
|
},
|
|
4121
4125
|
m(y, v) {
|
|
4122
|
-
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,
|
|
4123
|
-
|
|
4126
|
+
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(
|
|
4127
|
+
p,
|
|
4124
4128
|
"click",
|
|
4125
4129
|
/*click_handler_10*/
|
|
4126
4130
|
e[37]
|
|
@@ -4129,43 +4133,43 @@ function Xr(e) {
|
|
|
4129
4133
|
p(y, v) {
|
|
4130
4134
|
v[0] & /*$_*/
|
|
4131
4135
|
4096 && i !== (i = /*$_*/
|
|
4132
|
-
y[12]("depositError") + "") &&
|
|
4136
|
+
y[12]("depositError") + "") && k(n, i), v[0] & /*$_*/
|
|
4133
4137
|
4096 && u !== (u = /*$_*/
|
|
4134
|
-
y[12]("errorDescription") + "") &&
|
|
4135
|
-
4096 &&
|
|
4136
|
-
y[12]("closeButton") + "") &&
|
|
4138
|
+
y[12]("errorDescription") + "") && k(l, u), v[0] & /*$_*/
|
|
4139
|
+
4096 && m !== (m = /*$_*/
|
|
4140
|
+
y[12]("closeButton") + "") && k(d, m);
|
|
4137
4141
|
},
|
|
4138
4142
|
d(y) {
|
|
4139
|
-
y && (x(t), x(r), x(o), x(a), x(s), x(c), x(
|
|
4143
|
+
y && (x(t), x(r), x(o), x(a), x(s), x(c), x(p)), E = !1, _();
|
|
4140
4144
|
}
|
|
4141
4145
|
};
|
|
4142
4146
|
}
|
|
4143
|
-
function
|
|
4147
|
+
function Wr(e) {
|
|
4144
4148
|
let t, i = (
|
|
4145
4149
|
/*$_*/
|
|
4146
4150
|
e[12]("docsRequired") + ""
|
|
4147
|
-
), n, r, o, a, s, u, l, c,
|
|
4151
|
+
), n, r, o, a, s, u, l, c, p, m = (
|
|
4148
4152
|
/*$_*/
|
|
4149
4153
|
e[12]("docsRequired") + ""
|
|
4150
4154
|
), d, E, _, y = (
|
|
4151
4155
|
/*$_*/
|
|
4152
4156
|
e[12]("kyc2") + ""
|
|
4153
|
-
), v,
|
|
4157
|
+
), v, O, w, M = (
|
|
4154
4158
|
/*$_*/
|
|
4155
4159
|
e[12]("kycButton") + ""
|
|
4156
|
-
),
|
|
4160
|
+
), S, D, z, H = (
|
|
4157
4161
|
/*$_*/
|
|
4158
4162
|
e[12]("closeButton") + ""
|
|
4159
|
-
),
|
|
4163
|
+
), R, G, X;
|
|
4160
4164
|
return {
|
|
4161
4165
|
c() {
|
|
4162
|
-
t =
|
|
4166
|
+
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
|
|
4163
4167
|
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
|
|
4164
4168
|
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
|
|
4165
|
-
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"),
|
|
4169
|
+
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"), Ce(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");
|
|
4166
4170
|
},
|
|
4167
|
-
m(P,
|
|
4168
|
-
T(P, t,
|
|
4171
|
+
m(P, U) {
|
|
4172
|
+
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 = [
|
|
4169
4173
|
Z(
|
|
4170
4174
|
w,
|
|
4171
4175
|
"click",
|
|
@@ -4173,68 +4177,68 @@ function qr(e) {
|
|
|
4173
4177
|
e[35]
|
|
4174
4178
|
),
|
|
4175
4179
|
Z(
|
|
4176
|
-
|
|
4180
|
+
z,
|
|
4177
4181
|
"click",
|
|
4178
4182
|
/*click_handler_9*/
|
|
4179
4183
|
e[36]
|
|
4180
4184
|
)
|
|
4181
|
-
],
|
|
4185
|
+
], G = !0);
|
|
4182
4186
|
},
|
|
4183
|
-
p(P,
|
|
4184
|
-
|
|
4187
|
+
p(P, U) {
|
|
4188
|
+
U[0] & /*$_*/
|
|
4185
4189
|
4096 && i !== (i = /*$_*/
|
|
4186
|
-
P[12]("docsRequired") + "") &&
|
|
4187
|
-
4096 &&
|
|
4188
|
-
P[12]("docsRequired") + "") &&
|
|
4190
|
+
P[12]("docsRequired") + "") && k(n, i), U[0] & /*$_*/
|
|
4191
|
+
4096 && m !== (m = /*$_*/
|
|
4192
|
+
P[12]("docsRequired") + "") && k(d, m), U[0] & /*$_*/
|
|
4189
4193
|
4096 && y !== (y = /*$_*/
|
|
4190
|
-
P[12]("kyc2") + "") &&
|
|
4191
|
-
4096 &&
|
|
4192
|
-
P[12]("kycButton") + "") &&
|
|
4193
|
-
4096 &&
|
|
4194
|
-
P[12]("closeButton") + "") &&
|
|
4194
|
+
P[12]("kyc2") + "") && k(v, y), U[0] & /*$_*/
|
|
4195
|
+
4096 && M !== (M = /*$_*/
|
|
4196
|
+
P[12]("kycButton") + "") && k(S, M), U[0] & /*$_*/
|
|
4197
|
+
4096 && H !== (H = /*$_*/
|
|
4198
|
+
P[12]("closeButton") + "") && k(R, H);
|
|
4195
4199
|
},
|
|
4196
4200
|
d(P) {
|
|
4197
|
-
P && (x(t), x(r), x(o), x(
|
|
4201
|
+
P && (x(t), x(r), x(o), x(O), x(w), x(D), x(z)), G = !1, ce(X);
|
|
4198
4202
|
}
|
|
4199
4203
|
};
|
|
4200
4204
|
}
|
|
4201
|
-
function
|
|
4205
|
+
function Zr(e) {
|
|
4202
4206
|
let t, i = (
|
|
4203
4207
|
/*$_*/
|
|
4204
4208
|
e[12]("depositLimit") + ""
|
|
4205
|
-
), n, r, o, a, s, u, l, c,
|
|
4209
|
+
), n, r, o, a, s, u, l, c, p, m = (
|
|
4206
4210
|
/*$_*/
|
|
4207
4211
|
e[12]("successful") + ""
|
|
4208
4212
|
), d, E, _, y = (
|
|
4209
4213
|
/*$_*/
|
|
4210
4214
|
e[12]("kyc1Part1") + ""
|
|
4211
|
-
), v,
|
|
4215
|
+
), v, O, w, M, S = (
|
|
4212
4216
|
/*$_*/
|
|
4213
4217
|
e[12]("kyc1Part2") + ""
|
|
4214
|
-
),
|
|
4218
|
+
), D, z, H, R = (
|
|
4215
4219
|
/*$_*/
|
|
4216
4220
|
e[12]("kycButton") + ""
|
|
4217
|
-
),
|
|
4221
|
+
), G, X, P, U = (
|
|
4218
4222
|
/*$_*/
|
|
4219
4223
|
e[12]("closeButton") + ""
|
|
4220
|
-
), ne, re,
|
|
4224
|
+
), ne, re, le;
|
|
4221
4225
|
return {
|
|
4222
4226
|
c() {
|
|
4223
|
-
t =
|
|
4227
|
+
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(
|
|
4224
4228
|
/*legislatorLimitValue*/
|
|
4225
4229
|
e[11]
|
|
4226
|
-
), w =
|
|
4230
|
+
), w = N(), M = L(
|
|
4227
4231
|
/*currency*/
|
|
4228
4232
|
e[0]
|
|
4229
|
-
),
|
|
4233
|
+
), D = L(S), z = N(), H = b("button"), G = L(R), X = N(), P = b("button"), ne = 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
|
|
4230
4234
|
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
|
|
4231
4235
|
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
|
|
4232
|
-
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"),
|
|
4236
|
+
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"), Ce(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");
|
|
4233
4237
|
},
|
|
4234
|
-
m(
|
|
4235
|
-
T(
|
|
4238
|
+
m(F, j) {
|
|
4239
|
+
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, ne), re || (le = [
|
|
4236
4240
|
Z(
|
|
4237
|
-
|
|
4241
|
+
H,
|
|
4238
4242
|
"click",
|
|
4239
4243
|
/*click_handler_6*/
|
|
4240
4244
|
e[33]
|
|
@@ -4247,75 +4251,75 @@ function Wr(e) {
|
|
|
4247
4251
|
)
|
|
4248
4252
|
], re = !0);
|
|
4249
4253
|
},
|
|
4250
|
-
p(
|
|
4251
|
-
|
|
4254
|
+
p(F, j) {
|
|
4255
|
+
j[0] & /*$_*/
|
|
4252
4256
|
4096 && i !== (i = /*$_*/
|
|
4253
|
-
|
|
4254
|
-
4096 &&
|
|
4255
|
-
|
|
4257
|
+
F[12]("depositLimit") + "") && k(n, i), j[0] & /*$_*/
|
|
4258
|
+
4096 && m !== (m = /*$_*/
|
|
4259
|
+
F[12]("successful") + "") && k(d, m), j[0] & /*$_*/
|
|
4256
4260
|
4096 && y !== (y = /*$_*/
|
|
4257
|
-
|
|
4258
|
-
2048 &&
|
|
4259
|
-
|
|
4261
|
+
F[12]("kyc1Part1") + "") && k(v, y), j[0] & /*legislatorLimitValue*/
|
|
4262
|
+
2048 && k(
|
|
4263
|
+
O,
|
|
4260
4264
|
/*legislatorLimitValue*/
|
|
4261
|
-
|
|
4262
|
-
),
|
|
4263
|
-
1 &&
|
|
4264
|
-
|
|
4265
|
+
F[11]
|
|
4266
|
+
), j[0] & /*currency*/
|
|
4267
|
+
1 && k(
|
|
4268
|
+
M,
|
|
4265
4269
|
/*currency*/
|
|
4266
|
-
|
|
4267
|
-
),
|
|
4268
|
-
4096 &&
|
|
4269
|
-
|
|
4270
|
+
F[0]
|
|
4271
|
+
), j[0] & /*$_*/
|
|
4272
|
+
4096 && S !== (S = /*$_*/
|
|
4273
|
+
F[12]("kyc1Part2") + "") && k(D, S), j[0] & /*$_*/
|
|
4274
|
+
4096 && R !== (R = /*$_*/
|
|
4275
|
+
F[12]("kycButton") + "") && k(G, R), j[0] & /*$_*/
|
|
4270
4276
|
4096 && U !== (U = /*$_*/
|
|
4271
|
-
|
|
4272
|
-
4096 && j !== (j = /*$_*/
|
|
4273
|
-
V[12]("closeButton") + "") && H(ne, j);
|
|
4277
|
+
F[12]("closeButton") + "") && k(ne, U);
|
|
4274
4278
|
},
|
|
4275
|
-
d(
|
|
4276
|
-
|
|
4279
|
+
d(F) {
|
|
4280
|
+
F && (x(t), x(r), x(o), x(z), x(H), x(X), x(P)), re = !1, ce(le);
|
|
4277
4281
|
}
|
|
4278
4282
|
};
|
|
4279
4283
|
}
|
|
4280
|
-
function
|
|
4284
|
+
function Yr(e) {
|
|
4281
4285
|
let t, i = (
|
|
4282
4286
|
/*$_*/
|
|
4283
4287
|
e[12]("depositLimit") + ""
|
|
4284
|
-
), n, r, o, a, s, u, l, c,
|
|
4288
|
+
), n, r, o, a, s, u, l, c, p, m, d, E, _ = (
|
|
4285
4289
|
/*$_*/
|
|
4286
4290
|
e[12]("successful") + ""
|
|
4287
|
-
), y, v,
|
|
4291
|
+
), y, v, O, w = (
|
|
4288
4292
|
/*$_*/
|
|
4289
4293
|
e[12]("successDescription") + ""
|
|
4290
|
-
),
|
|
4294
|
+
), M, S, D, z, H;
|
|
4291
4295
|
return {
|
|
4292
4296
|
c() {
|
|
4293
|
-
t =
|
|
4294
|
-
`),
|
|
4297
|
+
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}
|
|
4298
|
+
`), 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"), Ce(s, "shape-rendering", "geometricPrecision"), Ce(s, "text-rendering", "geometricPrecision"), Ce(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");
|
|
4295
4299
|
},
|
|
4296
|
-
m(
|
|
4297
|
-
T(
|
|
4298
|
-
|
|
4300
|
+
m(R, G) {
|
|
4301
|
+
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(
|
|
4302
|
+
D,
|
|
4299
4303
|
"click",
|
|
4300
4304
|
/*click_handler_5*/
|
|
4301
4305
|
e[32]
|
|
4302
|
-
),
|
|
4306
|
+
), z = !0);
|
|
4303
4307
|
},
|
|
4304
|
-
p(
|
|
4305
|
-
|
|
4308
|
+
p(R, G) {
|
|
4309
|
+
G[0] & /*$_*/
|
|
4306
4310
|
4096 && i !== (i = /*$_*/
|
|
4307
|
-
|
|
4311
|
+
R[12]("depositLimit") + "") && k(n, i), G[0] & /*$_*/
|
|
4308
4312
|
4096 && _ !== (_ = /*$_*/
|
|
4309
|
-
|
|
4313
|
+
R[12]("successful") + "") && k(y, _), G[0] & /*$_*/
|
|
4310
4314
|
4096 && w !== (w = /*$_*/
|
|
4311
|
-
|
|
4315
|
+
R[12]("successDescription") + "") && k(M, w);
|
|
4312
4316
|
},
|
|
4313
|
-
d(
|
|
4314
|
-
|
|
4317
|
+
d(R) {
|
|
4318
|
+
R && (x(t), x(r), x(o), x(S), x(D)), z = !1, H();
|
|
4315
4319
|
}
|
|
4316
4320
|
};
|
|
4317
4321
|
}
|
|
4318
|
-
function
|
|
4322
|
+
function Jr(e) {
|
|
4319
4323
|
let t, i = (
|
|
4320
4324
|
/*$_*/
|
|
4321
4325
|
e[12]("setLimit") + ""
|
|
@@ -4325,54 +4329,54 @@ function Yr(e) {
|
|
|
4325
4329
|
), s, u, l, c = (
|
|
4326
4330
|
/*$_*/
|
|
4327
4331
|
e[12]("lugasInfo1") + ""
|
|
4328
|
-
),
|
|
4332
|
+
), p, m, d, E = (
|
|
4329
4333
|
/*$_*/
|
|
4330
4334
|
e[12]("lugasInfo2") + ""
|
|
4331
|
-
), _, y, v,
|
|
4335
|
+
), _, y, v, O = (
|
|
4332
4336
|
/*$_*/
|
|
4333
4337
|
e[12]("keepCurrentLimit") + ""
|
|
4334
|
-
), w,
|
|
4338
|
+
), w, M, S, D = (
|
|
4335
4339
|
/*$_*/
|
|
4336
4340
|
e[12]("keepCurrentLimitButton") + ""
|
|
4337
|
-
),
|
|
4341
|
+
), z, H, R, G, X, P, U, ne, re = (
|
|
4338
4342
|
/*$_*/
|
|
4339
4343
|
e[12]("depositPeriod") + ""
|
|
4340
|
-
),
|
|
4344
|
+
), le, F, j, K, Ue, oe, pe = (
|
|
4341
4345
|
/*$_*/
|
|
4342
4346
|
e[12]("applyButton") + ""
|
|
4343
|
-
),
|
|
4347
|
+
), Se, Ae, J, me = (
|
|
4344
4348
|
/*$_*/
|
|
4345
4349
|
e[12]("TCpart1") + ""
|
|
4346
|
-
),
|
|
4350
|
+
), Ie, he, de = (
|
|
4347
4351
|
/*$_*/
|
|
4348
4352
|
e[12]("TClink") + ""
|
|
4349
|
-
),
|
|
4353
|
+
), ke, g, q = (
|
|
4350
4354
|
/*$_*/
|
|
4351
4355
|
e[12]("TCpart2") + ""
|
|
4352
|
-
),
|
|
4356
|
+
), ae, je, ee, Ge = (
|
|
4353
4357
|
/*$_*/
|
|
4354
4358
|
e[12]("PPlink") + ""
|
|
4355
|
-
),
|
|
4359
|
+
), tt, wt, it, Bt;
|
|
4356
4360
|
return {
|
|
4357
4361
|
c() {
|
|
4358
|
-
t =
|
|
4359
|
-
|
|
4362
|
+
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"), ne = b("span"), le = L(re), F = N(), j = b("div"), K = b("input"), Ue = N(), oe = b("button"), Se = L(pe), Ae = N(), J = b("p"), Ie = L(me), he = b("button"), ke = L(de), g = N(), ae = L(q), je = N(), ee = b("button"), tt = L(Ge), wt = 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"), $e(
|
|
4363
|
+
H,
|
|
4360
4364
|
"Extended",
|
|
4361
4365
|
/*extended*/
|
|
4362
4366
|
e[5]
|
|
4363
|
-
), h(
|
|
4367
|
+
), h(S, "class", "ExpandButton"), h(ne, "class", "DepositPeriodText"), h(U, "class", "DepositTextSection"), h(K, "type", "number"), h(K, "class", "DepositInput"), h(oe, "type", "submit"), h(oe, "class", "SubmitDepositButton PrimaryButtonStyle"), oe.disabled = !0, h(j, "class", "DepositInputSection"), h(P, "class", "SetLimitSection"), $e(
|
|
4364
4368
|
P,
|
|
4365
4369
|
"Hidden",
|
|
4366
4370
|
/*hidden*/
|
|
4367
4371
|
e[4]
|
|
4368
|
-
), h(
|
|
4372
|
+
), h(he, "class", "LinkButton"), h(ee, "class", "LinkButton"), h(J, "class", "TermsConditions");
|
|
4369
4373
|
},
|
|
4370
|
-
m(I,
|
|
4371
|
-
T(I, t,
|
|
4374
|
+
m(I, C) {
|
|
4375
|
+
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, ne), f(ne, le), f(P, F), f(P, j), f(j, K), Ht(
|
|
4372
4376
|
K,
|
|
4373
4377
|
/*inputAmount*/
|
|
4374
4378
|
e[6]
|
|
4375
|
-
), f(
|
|
4379
|
+
), f(j, Ue), f(j, oe), f(oe, Se), e[28](oe), T(I, Ae, C), T(I, J, C), f(J, Ie), f(J, he), f(he, ke), f(J, g), f(J, ae), f(J, je), f(J, ee), f(ee, tt), f(J, wt), it || (Bt = [
|
|
4376
4380
|
Z(
|
|
4377
4381
|
d,
|
|
4378
4382
|
"click",
|
|
@@ -4386,7 +4390,7 @@ function Yr(e) {
|
|
|
4386
4390
|
e[25]
|
|
4387
4391
|
),
|
|
4388
4392
|
Z(
|
|
4389
|
-
|
|
4393
|
+
S,
|
|
4390
4394
|
"click",
|
|
4391
4395
|
/*toggleNewLimitArea*/
|
|
4392
4396
|
e[13]
|
|
@@ -4410,7 +4414,7 @@ function Yr(e) {
|
|
|
4410
4414
|
e[29]
|
|
4411
4415
|
),
|
|
4412
4416
|
Z(
|
|
4413
|
-
|
|
4417
|
+
he,
|
|
4414
4418
|
"click",
|
|
4415
4419
|
/*click_handler_3*/
|
|
4416
4420
|
e[30]
|
|
@@ -4421,76 +4425,76 @@ function Yr(e) {
|
|
|
4421
4425
|
/*click_handler_4*/
|
|
4422
4426
|
e[31]
|
|
4423
4427
|
)
|
|
4424
|
-
],
|
|
4428
|
+
], it = !0);
|
|
4425
4429
|
},
|
|
4426
|
-
p(I,
|
|
4427
|
-
|
|
4430
|
+
p(I, C) {
|
|
4431
|
+
C[0] & /*$_*/
|
|
4428
4432
|
4096 && i !== (i = /*$_*/
|
|
4429
|
-
I[12]("setLimit") + "") &&
|
|
4433
|
+
I[12]("setLimit") + "") && k(n, i), C[0] & /*$_*/
|
|
4430
4434
|
4096 && a !== (a = /*$_*/
|
|
4431
|
-
I[12]("setLimitDescription") + "") &&
|
|
4435
|
+
I[12]("setLimitDescription") + "") && k(s, a), C[0] & /*$_*/
|
|
4432
4436
|
4096 && c !== (c = /*$_*/
|
|
4433
|
-
I[12]("lugasInfo1") + "") &&
|
|
4437
|
+
I[12]("lugasInfo1") + "") && k(p, c), C[0] & /*$_*/
|
|
4434
4438
|
4096 && E !== (E = /*$_*/
|
|
4435
|
-
I[12]("lugasInfo2") + "") &&
|
|
4436
|
-
4096 &&
|
|
4437
|
-
I[12]("keepCurrentLimit") + "") &&
|
|
4438
|
-
4096 &&
|
|
4439
|
-
I[12]("keepCurrentLimitButton") + "") &&
|
|
4440
|
-
32 &&
|
|
4441
|
-
|
|
4439
|
+
I[12]("lugasInfo2") + "") && k(_, E), C[0] & /*$_*/
|
|
4440
|
+
4096 && O !== (O = /*$_*/
|
|
4441
|
+
I[12]("keepCurrentLimit") + "") && k(w, O), C[0] & /*$_*/
|
|
4442
|
+
4096 && D !== (D = /*$_*/
|
|
4443
|
+
I[12]("keepCurrentLimitButton") + "") && k(z, D), C[0] & /*extended*/
|
|
4444
|
+
32 && $e(
|
|
4445
|
+
H,
|
|
4442
4446
|
"Extended",
|
|
4443
4447
|
/*extended*/
|
|
4444
4448
|
I[5]
|
|
4445
|
-
),
|
|
4449
|
+
), C[0] & /*$_*/
|
|
4446
4450
|
4096 && re !== (re = /*$_*/
|
|
4447
|
-
I[12]("depositPeriod") + "") &&
|
|
4451
|
+
I[12]("depositPeriod") + "") && k(le, re), C[0] & /*inputAmount*/
|
|
4448
4452
|
64 && Qt(K.value) !== /*inputAmount*/
|
|
4449
4453
|
I[6] && Ht(
|
|
4450
4454
|
K,
|
|
4451
4455
|
/*inputAmount*/
|
|
4452
4456
|
I[6]
|
|
4453
|
-
),
|
|
4454
|
-
4096 &&
|
|
4455
|
-
I[12]("applyButton") + "") &&
|
|
4456
|
-
16 &&
|
|
4457
|
+
), C[0] & /*$_*/
|
|
4458
|
+
4096 && pe !== (pe = /*$_*/
|
|
4459
|
+
I[12]("applyButton") + "") && k(Se, pe), C[0] & /*hidden*/
|
|
4460
|
+
16 && $e(
|
|
4457
4461
|
P,
|
|
4458
4462
|
"Hidden",
|
|
4459
4463
|
/*hidden*/
|
|
4460
4464
|
I[4]
|
|
4461
|
-
),
|
|
4465
|
+
), C[0] & /*$_*/
|
|
4462
4466
|
4096 && me !== (me = /*$_*/
|
|
4463
|
-
I[12]("TCpart1") + "") &&
|
|
4464
|
-
4096 &&
|
|
4465
|
-
I[12]("TClink") + "") &&
|
|
4467
|
+
I[12]("TCpart1") + "") && k(Ie, me), C[0] & /*$_*/
|
|
4468
|
+
4096 && de !== (de = /*$_*/
|
|
4469
|
+
I[12]("TClink") + "") && k(ke, de), C[0] & /*$_*/
|
|
4466
4470
|
4096 && q !== (q = /*$_*/
|
|
4467
|
-
I[12]("TCpart2") + "") &&
|
|
4468
|
-
4096 &&
|
|
4469
|
-
I[12]("PPlink") + "") &&
|
|
4471
|
+
I[12]("TCpart2") + "") && k(ae, q), C[0] & /*$_*/
|
|
4472
|
+
4096 && Ge !== (Ge = /*$_*/
|
|
4473
|
+
I[12]("PPlink") + "") && k(tt, Ge);
|
|
4470
4474
|
},
|
|
4471
4475
|
d(I) {
|
|
4472
|
-
I && (x(t), x(r), x(o), x(u), x(l), x(y), x(v), x(
|
|
4476
|
+
I && (x(t), x(r), x(o), x(u), x(l), x(y), x(v), x(M), x(S), x(X), x(P), x(Ae), x(J)), e[26](null), e[28](null), it = !1, ce(Bt);
|
|
4473
4477
|
}
|
|
4474
4478
|
};
|
|
4475
4479
|
}
|
|
4476
|
-
function
|
|
4480
|
+
function Qr(e) {
|
|
4477
4481
|
let t, i, n, r;
|
|
4478
4482
|
function o(u, l) {
|
|
4479
4483
|
if (
|
|
4480
4484
|
/*isLoading*/
|
|
4481
4485
|
u[7]
|
|
4482
4486
|
)
|
|
4483
|
-
return
|
|
4487
|
+
return Xr;
|
|
4484
4488
|
if (
|
|
4485
4489
|
/*lang*/
|
|
4486
4490
|
u[1]
|
|
4487
4491
|
)
|
|
4488
|
-
return
|
|
4492
|
+
return Vr;
|
|
4489
4493
|
}
|
|
4490
4494
|
let a = o(e), s = a && a(e);
|
|
4491
4495
|
return {
|
|
4492
4496
|
c() {
|
|
4493
|
-
t =
|
|
4497
|
+
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");
|
|
4494
4498
|
},
|
|
4495
4499
|
m(u, l) {
|
|
4496
4500
|
T(u, t, l), f(t, i), f(i, n), f(n, r), s && s.m(r, null), e[38](i), e[39](t);
|
|
@@ -4505,111 +4509,111 @@ function Jr(e) {
|
|
|
4505
4509
|
}
|
|
4506
4510
|
};
|
|
4507
4511
|
}
|
|
4508
|
-
function
|
|
4512
|
+
function Kr(e, t, i) {
|
|
4509
4513
|
let n;
|
|
4510
|
-
Ii(e,
|
|
4511
|
-
let { userid: r = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { currency: s = "" } = t, { lang: u = "" } = t, { translationurl: l = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl:
|
|
4512
|
-
const
|
|
4514
|
+
Ii(e, Ur, (g) => i(12, n = g));
|
|
4515
|
+
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;
|
|
4516
|
+
const z = () => {
|
|
4513
4517
|
fetch(l).then((q) => q.json()).then((q) => {
|
|
4514
|
-
Object.keys(q).forEach((
|
|
4515
|
-
qt(
|
|
4518
|
+
Object.keys(q).forEach((ae) => {
|
|
4519
|
+
qt(ae, q[ae]);
|
|
4516
4520
|
});
|
|
4517
4521
|
}).catch((q) => {
|
|
4518
4522
|
console.log(q);
|
|
4519
4523
|
});
|
|
4520
4524
|
};
|
|
4521
|
-
Object.keys(Wt).forEach((
|
|
4522
|
-
qt(
|
|
4525
|
+
Object.keys(Wt).forEach((g) => {
|
|
4526
|
+
qt(g, Wt[g]);
|
|
4523
4527
|
});
|
|
4524
|
-
const
|
|
4528
|
+
const H = () => {
|
|
4525
4529
|
i(5, y = !y), i(4, _ = !_);
|
|
4526
|
-
},
|
|
4527
|
-
|
|
4528
|
-
},
|
|
4530
|
+
}, R = () => {
|
|
4531
|
+
M.parentNode.removeChild(M);
|
|
4532
|
+
}, G = () => {
|
|
4529
4533
|
v > 999999999999999 && i(6, v = 999999999999999);
|
|
4530
4534
|
const q = v - Math.floor(v) === 0;
|
|
4531
4535
|
v > 0 && q ? w.removeAttribute("disabled") : w.setAttribute("disabled", "true");
|
|
4532
|
-
}, X = (
|
|
4533
|
-
switch (window.postMessage({ type:
|
|
4536
|
+
}, X = (g) => {
|
|
4537
|
+
switch (window.postMessage({ type: g }, window.location.href), g) {
|
|
4534
4538
|
case "closePopup":
|
|
4535
4539
|
case "uploadDocuments":
|
|
4536
|
-
|
|
4540
|
+
R();
|
|
4537
4541
|
break;
|
|
4538
4542
|
}
|
|
4539
|
-
}, P = (
|
|
4543
|
+
}, P = (g) => {
|
|
4540
4544
|
const q = new URL(`/v1/player/${r}/limit/lugas`, a);
|
|
4541
|
-
let
|
|
4542
|
-
i(7,
|
|
4543
|
-
let
|
|
4545
|
+
let ae = {};
|
|
4546
|
+
i(7, O = !0), ae = g === "custom" ? { amount: v } : {};
|
|
4547
|
+
let je = {
|
|
4544
4548
|
method: "POST",
|
|
4545
4549
|
headers: {
|
|
4546
4550
|
"X-SessionID": o,
|
|
4547
4551
|
"Content-Type": "application/json",
|
|
4548
4552
|
Accept: "application/json"
|
|
4549
4553
|
},
|
|
4550
|
-
body: JSON.stringify(
|
|
4554
|
+
body: JSON.stringify(ae)
|
|
4551
4555
|
};
|
|
4552
|
-
fetch(q.href,
|
|
4553
|
-
|
|
4556
|
+
fetch(q.href, je).then((ee) => ee.json()).then((ee) => {
|
|
4557
|
+
U(ee);
|
|
4554
4558
|
}).catch((ee) => {
|
|
4555
4559
|
console.log(ee);
|
|
4556
4560
|
}).finally(() => {
|
|
4557
|
-
i(7,
|
|
4561
|
+
i(7, O = !1);
|
|
4558
4562
|
});
|
|
4559
|
-
},
|
|
4560
|
-
if (
|
|
4561
|
-
switch (
|
|
4563
|
+
}, U = (g) => {
|
|
4564
|
+
if (g.hasOwnProperty("kycNeeded"))
|
|
4565
|
+
switch (g.popup) {
|
|
4562
4566
|
case 1:
|
|
4563
|
-
i(10,
|
|
4567
|
+
i(10, S = "KYC"), i(11, D = Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(g.operatorDepositLimitAmount));
|
|
4564
4568
|
break;
|
|
4565
4569
|
case 2:
|
|
4566
|
-
i(10,
|
|
4570
|
+
i(10, S = "successful");
|
|
4567
4571
|
break;
|
|
4568
4572
|
case 3:
|
|
4569
|
-
i(10,
|
|
4573
|
+
i(10, S = "KYC2");
|
|
4570
4574
|
break;
|
|
4571
4575
|
}
|
|
4572
4576
|
else
|
|
4573
|
-
i(10,
|
|
4577
|
+
i(10, S = "error");
|
|
4574
4578
|
}, ne = () => {
|
|
4575
|
-
|
|
4579
|
+
jr(u);
|
|
4576
4580
|
};
|
|
4577
4581
|
Di(() => () => {
|
|
4578
4582
|
});
|
|
4579
|
-
const re = () => X("lugasInformation"),
|
|
4580
|
-
function
|
|
4581
|
-
|
|
4582
|
-
E =
|
|
4583
|
+
const re = () => X("lugasInformation"), le = () => P("default");
|
|
4584
|
+
function F(g) {
|
|
4585
|
+
ve[g ? "unshift" : "push"](() => {
|
|
4586
|
+
E = g, i(3, E);
|
|
4583
4587
|
});
|
|
4584
4588
|
}
|
|
4585
|
-
function
|
|
4589
|
+
function j() {
|
|
4586
4590
|
v = Qt(this.value), i(6, v);
|
|
4587
4591
|
}
|
|
4588
|
-
function K(
|
|
4589
|
-
|
|
4590
|
-
w =
|
|
4592
|
+
function K(g) {
|
|
4593
|
+
ve[g ? "unshift" : "push"](() => {
|
|
4594
|
+
w = g, i(8, w);
|
|
4591
4595
|
});
|
|
4592
4596
|
}
|
|
4593
|
-
const
|
|
4594
|
-
function
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
+
const Ue = () => P("custom"), oe = () => X("termsConditions"), pe = () => X("privacyPolicy"), Se = () => X("closePopup"), Ae = () => X("uploadDocuments"), J = () => X("closePopup"), me = () => X("uploadDocuments"), Ie = () => X("closePopup"), he = () => X("closePopup");
|
|
4598
|
+
function de(g) {
|
|
4599
|
+
ve[g ? "unshift" : "push"](() => {
|
|
4600
|
+
M = g, i(9, M);
|
|
4597
4601
|
});
|
|
4598
4602
|
}
|
|
4599
|
-
function
|
|
4600
|
-
|
|
4601
|
-
d =
|
|
4603
|
+
function ke(g) {
|
|
4604
|
+
ve[g ? "unshift" : "push"](() => {
|
|
4605
|
+
d = g, i(2, d);
|
|
4602
4606
|
});
|
|
4603
4607
|
}
|
|
4604
|
-
return e.$$set = (
|
|
4605
|
-
"userid" in
|
|
4608
|
+
return e.$$set = (g) => {
|
|
4609
|
+
"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);
|
|
4606
4610
|
}, e.$$.update = () => {
|
|
4607
4611
|
e.$$.dirty[0] & /*lang*/
|
|
4608
4612
|
2 && u && ne(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4609
|
-
2097156 && c && d &&
|
|
4610
|
-
4194308 &&
|
|
4611
|
-
8388612 &&
|
|
4612
|
-
1048576 && l &&
|
|
4613
|
+
2097156 && c && d && Gr(d, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4614
|
+
4194308 && p && d && $r(d, p), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4615
|
+
8388612 && m && d && zr(d, `${m}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4616
|
+
1048576 && l && z();
|
|
4613
4617
|
}, [
|
|
4614
4618
|
s,
|
|
4615
4619
|
u,
|
|
@@ -4618,14 +4622,14 @@ function Qr(e, t, i) {
|
|
|
4618
4622
|
_,
|
|
4619
4623
|
y,
|
|
4620
4624
|
v,
|
|
4621
|
-
|
|
4625
|
+
O,
|
|
4622
4626
|
w,
|
|
4627
|
+
M,
|
|
4628
|
+
S,
|
|
4623
4629
|
D,
|
|
4624
|
-
A,
|
|
4625
|
-
R,
|
|
4626
4630
|
n,
|
|
4627
|
-
|
|
4628
|
-
|
|
4631
|
+
H,
|
|
4632
|
+
G,
|
|
4629
4633
|
X,
|
|
4630
4634
|
P,
|
|
4631
4635
|
r,
|
|
@@ -4633,33 +4637,33 @@ function Qr(e, t, i) {
|
|
|
4633
4637
|
a,
|
|
4634
4638
|
l,
|
|
4635
4639
|
c,
|
|
4636
|
-
m,
|
|
4637
4640
|
p,
|
|
4641
|
+
m,
|
|
4638
4642
|
re,
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4643
|
+
le,
|
|
4644
|
+
F,
|
|
4645
|
+
j,
|
|
4642
4646
|
K,
|
|
4643
|
-
|
|
4647
|
+
Ue,
|
|
4644
4648
|
oe,
|
|
4645
|
-
|
|
4646
|
-
|
|
4649
|
+
pe,
|
|
4650
|
+
Se,
|
|
4647
4651
|
Ae,
|
|
4648
4652
|
J,
|
|
4649
4653
|
me,
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
+
Ie,
|
|
4655
|
+
he,
|
|
4656
|
+
de,
|
|
4657
|
+
ke
|
|
4654
4658
|
];
|
|
4655
4659
|
}
|
|
4656
|
-
class
|
|
4660
|
+
class eo extends Zi {
|
|
4657
4661
|
constructor(t) {
|
|
4658
4662
|
super(), qi(
|
|
4659
4663
|
this,
|
|
4660
4664
|
t,
|
|
4665
|
+
Kr,
|
|
4661
4666
|
Qr,
|
|
4662
|
-
Jr,
|
|
4663
4667
|
Yt,
|
|
4664
4668
|
{
|
|
4665
4669
|
userid: 17,
|
|
@@ -4672,7 +4676,7 @@ class Kr extends Zi {
|
|
|
4672
4676
|
clientstylingurl: 22,
|
|
4673
4677
|
mbsource: 23
|
|
4674
4678
|
},
|
|
4675
|
-
|
|
4679
|
+
Fr,
|
|
4676
4680
|
[-1, -1]
|
|
4677
4681
|
);
|
|
4678
4682
|
}
|
|
@@ -4731,7 +4735,7 @@ class Kr extends Zi {
|
|
|
4731
4735
|
this.$$set({ mbsource: t }), te();
|
|
4732
4736
|
}
|
|
4733
4737
|
}
|
|
4734
|
-
Wi(
|
|
4738
|
+
Wi(eo, { userid: {}, session: {}, endpoint: {}, currency: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
4735
4739
|
export {
|
|
4736
|
-
|
|
4740
|
+
eo as default
|
|
4737
4741
|
};
|