@everymatrix/player-account-balance-modal-nd 1.54.12 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountBalanceModalNd-BZ43yp7H.cjs +15 -0
- package/components/{PlayerAccountBalanceModalNd-BAeICRDi.js → PlayerAccountBalanceModalNd-C2GEz49a.js} +365 -363
- package/components/{PlayerAccountBalanceModalNd-BHCiKY4G.js → PlayerAccountBalanceModalNd-EF5v83ww.js} +606 -604
- package/es2015/player-account-balance-modal-nd.cjs +1 -1
- package/es2015/player-account-balance-modal-nd.js +1 -1
- package/esnext/player-account-balance-modal-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-DpL_C3Ey.cjs +0 -15
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function se() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Cn(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function rn() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function $e(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(Cn);
|
|
11
11
|
}
|
|
12
12
|
function Qt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Hn(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function or(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function On(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const r of t)
|
|
24
24
|
r(void 0);
|
|
@@ -27,20 +27,20 @@ function Cn(e, ...t) {
|
|
|
27
27
|
const n = e.subscribe(...t);
|
|
28
28
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function sr(e, t, n) {
|
|
31
|
+
e.$$.on_destroy.push(On(t, n));
|
|
32
32
|
}
|
|
33
33
|
function C(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const r =
|
|
36
|
+
function lr(e, t, n) {
|
|
37
|
+
const r = ur(e);
|
|
38
38
|
if (!r.getElementById(t)) {
|
|
39
39
|
const i = $("style");
|
|
40
|
-
i.id = t, i.textContent = n,
|
|
40
|
+
i.id = t, i.textContent = n, cr(r, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ur(e) {
|
|
44
44
|
if (!e) return document;
|
|
45
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
46
|
return t && /** @type {ShadowRoot} */
|
|
@@ -49,7 +49,7 @@ function sr(e) {
|
|
|
49
49
|
t
|
|
50
50
|
) : e.ownerDocument;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function cr(e, t) {
|
|
53
53
|
return C(
|
|
54
54
|
/** @type {Document} */
|
|
55
55
|
e.head || e,
|
|
@@ -62,14 +62,14 @@ function me(e, t, n) {
|
|
|
62
62
|
function he(e) {
|
|
63
63
|
e.parentNode && e.parentNode.removeChild(e);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Rn(e, t) {
|
|
66
66
|
for (let n = 0; n < e.length; n += 1)
|
|
67
67
|
e[n] && e[n].d(t);
|
|
68
68
|
}
|
|
69
69
|
function $(e) {
|
|
70
70
|
return document.createElement(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function an(e) {
|
|
73
73
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
74
74
|
}
|
|
75
75
|
function ce(e) {
|
|
@@ -78,7 +78,7 @@ function ce(e) {
|
|
|
78
78
|
function fe() {
|
|
79
79
|
return ce(" ");
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function hr() {
|
|
82
82
|
return ce("");
|
|
83
83
|
}
|
|
84
84
|
function dt(e, t, n, r) {
|
|
@@ -87,14 +87,14 @@ function dt(e, t, n, r) {
|
|
|
87
87
|
function M(e, t, n) {
|
|
88
88
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function fr(e) {
|
|
91
91
|
return Array.from(e.childNodes);
|
|
92
92
|
}
|
|
93
93
|
function _e(e, t) {
|
|
94
94
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
95
95
|
t);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function dr(e) {
|
|
98
98
|
const t = {};
|
|
99
99
|
return e.childNodes.forEach(
|
|
100
100
|
/** @param {Element} node */
|
|
@@ -107,19 +107,19 @@ let Ke;
|
|
|
107
107
|
function Ye(e) {
|
|
108
108
|
Ke = e;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function pr() {
|
|
111
111
|
if (!Ke) throw new Error("Function called outside component initialization");
|
|
112
112
|
return Ke;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
114
|
+
function mr(e) {
|
|
115
|
+
pr().$$.on_mount.push(e);
|
|
116
116
|
}
|
|
117
117
|
const Ie = [], Dt = [];
|
|
118
118
|
let Pe = [];
|
|
119
|
-
const
|
|
119
|
+
const on = [], gr = /* @__PURE__ */ Promise.resolve();
|
|
120
120
|
let Ut = !1;
|
|
121
|
-
function
|
|
122
|
-
Ut || (Ut = !0,
|
|
121
|
+
function br() {
|
|
122
|
+
Ut || (Ut = !0, gr.then(Q));
|
|
123
123
|
}
|
|
124
124
|
function Ft(e) {
|
|
125
125
|
Pe.push(e);
|
|
@@ -134,7 +134,7 @@ function Q() {
|
|
|
134
134
|
try {
|
|
135
135
|
for (; Me < Ie.length; ) {
|
|
136
136
|
const t = Ie[Me];
|
|
137
|
-
Me++, Ye(t),
|
|
137
|
+
Me++, Ye(t), yr(t.$$);
|
|
138
138
|
}
|
|
139
139
|
} catch (t) {
|
|
140
140
|
throw Ie.length = 0, Me = 0, t;
|
|
@@ -146,43 +146,43 @@ function Q() {
|
|
|
146
146
|
}
|
|
147
147
|
Pe.length = 0;
|
|
148
148
|
} while (Ie.length);
|
|
149
|
-
for (;
|
|
150
|
-
|
|
149
|
+
for (; on.length; )
|
|
150
|
+
on.pop()();
|
|
151
151
|
Ut = !1, Ot.clear(), Ye(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function yr(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
155
|
e.update(), $e(e.before_update);
|
|
156
156
|
const t = e.dirty;
|
|
157
157
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ft);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function vr(e) {
|
|
161
161
|
const t = [], n = [];
|
|
162
162
|
Pe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Pe = t;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
function
|
|
166
|
-
e && e.i && (
|
|
164
|
+
const Er = /* @__PURE__ */ new Set();
|
|
165
|
+
function xr(e, t) {
|
|
166
|
+
e && e.i && (Er.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
168
|
function pt(e) {
|
|
169
169
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function _r(e, t, n) {
|
|
172
172
|
const { fragment: r, after_update: i } = e.$$;
|
|
173
173
|
r && r.m(t, n), Ft(() => {
|
|
174
|
-
const a = e.$$.on_mount.map(
|
|
174
|
+
const a = e.$$.on_mount.map(Cn).filter(Qt);
|
|
175
175
|
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : $e(a), e.$$.on_mount = [];
|
|
176
176
|
}), i.forEach(Ft);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Br(e, t) {
|
|
179
179
|
const n = e.$$;
|
|
180
|
-
n.fragment !== null && (
|
|
180
|
+
n.fragment !== null && (vr(n.after_update), $e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
e.$$.dirty[0] === -1 && (Ie.push(e),
|
|
182
|
+
function Tr(e, t) {
|
|
183
|
+
e.$$.dirty[0] === -1 && (Ie.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function wr(e, t, n, r, i, a, l = null, s = [-1]) {
|
|
186
186
|
const h = Ke;
|
|
187
187
|
Ye(e);
|
|
188
188
|
const u = e.$$ = {
|
|
@@ -192,7 +192,7 @@ function Br(e, t, n, r, i, a, l = null, s = [-1]) {
|
|
|
192
192
|
props: a,
|
|
193
193
|
update: se,
|
|
194
194
|
not_equal: i,
|
|
195
|
-
bound:
|
|
195
|
+
bound: rn(),
|
|
196
196
|
// lifecycle
|
|
197
197
|
on_mount: [],
|
|
198
198
|
on_destroy: [],
|
|
@@ -201,7 +201,7 @@ function Br(e, t, n, r, i, a, l = null, s = [-1]) {
|
|
|
201
201
|
after_update: [],
|
|
202
202
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
203
203
|
// everything else
|
|
204
|
-
callbacks:
|
|
204
|
+
callbacks: rn(),
|
|
205
205
|
dirty: s,
|
|
206
206
|
skip_bound: !1,
|
|
207
207
|
root: t.target || h.$$.root
|
|
@@ -210,19 +210,19 @@ function Br(e, t, n, r, i, a, l = null, s = [-1]) {
|
|
|
210
210
|
let d = !1;
|
|
211
211
|
if (u.ctx = n ? n(e, t.props || {}, (b, y, ...B) => {
|
|
212
212
|
const x = B.length ? B[0] : y;
|
|
213
|
-
return u.ctx && i(u.ctx[b], u.ctx[b] = x) && (!u.skip_bound && u.bound[b] && u.bound[b](x), d &&
|
|
213
|
+
return u.ctx && i(u.ctx[b], u.ctx[b] = x) && (!u.skip_bound && u.bound[b] && u.bound[b](x), d && Tr(e, b)), y;
|
|
214
214
|
}) : [], u.update(), d = !0, $e(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
215
215
|
if (t.hydrate) {
|
|
216
|
-
const b =
|
|
216
|
+
const b = fr(t.target);
|
|
217
217
|
u.fragment && u.fragment.l(b), b.forEach(he);
|
|
218
218
|
} else
|
|
219
219
|
u.fragment && u.fragment.c();
|
|
220
|
-
t.intro &&
|
|
220
|
+
t.intro && xr(e.$$.fragment), _r(e, t.target, t.anchor), Q();
|
|
221
221
|
}
|
|
222
222
|
Ye(h);
|
|
223
223
|
}
|
|
224
|
-
let
|
|
225
|
-
typeof HTMLElement == "function" && (
|
|
224
|
+
let Ln;
|
|
225
|
+
typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
|
|
226
226
|
/** The Svelte component constructor */
|
|
227
227
|
$$ctor;
|
|
228
228
|
/** Slots */
|
|
@@ -281,7 +281,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
281
281
|
};
|
|
282
282
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
283
283
|
return;
|
|
284
|
-
const t = {}, n =
|
|
284
|
+
const t = {}, n = dr(this);
|
|
285
285
|
for (const i of this.$$s)
|
|
286
286
|
i in n && (t[i] = [e(i)]);
|
|
287
287
|
for (const i of this.attributes) {
|
|
@@ -368,8 +368,8 @@ function ut(e, t, n, r) {
|
|
|
368
368
|
return t;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
let l = class extends
|
|
371
|
+
function Sr(e, t, n, r, i, a) {
|
|
372
|
+
let l = class extends Ln {
|
|
373
373
|
constructor() {
|
|
374
374
|
super(e, n, i), this.$$p_d = t;
|
|
375
375
|
}
|
|
@@ -397,7 +397,7 @@ function Tr(e, t, n, r, i, a) {
|
|
|
397
397
|
}), e.element = /** @type {any} */
|
|
398
398
|
l, l;
|
|
399
399
|
}
|
|
400
|
-
class
|
|
400
|
+
class Ar {
|
|
401
401
|
/**
|
|
402
402
|
* ### PRIVATE API
|
|
403
403
|
*
|
|
@@ -416,7 +416,7 @@ class wr {
|
|
|
416
416
|
$$set = void 0;
|
|
417
417
|
/** @returns {void} */
|
|
418
418
|
$destroy() {
|
|
419
|
-
|
|
419
|
+
Br(this, 1), this.$destroy = se;
|
|
420
420
|
}
|
|
421
421
|
/**
|
|
422
422
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -438,13 +438,13 @@ class wr {
|
|
|
438
438
|
* @returns {void}
|
|
439
439
|
*/
|
|
440
440
|
$set(t) {
|
|
441
|
-
this.$$set && !
|
|
441
|
+
this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
const
|
|
445
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
444
|
+
const Cr = "4";
|
|
445
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
|
|
446
446
|
const Ne = [];
|
|
447
|
-
function
|
|
447
|
+
function Hr(e, t) {
|
|
448
448
|
return {
|
|
449
449
|
subscribe: bt(e, t).subscribe
|
|
450
450
|
};
|
|
@@ -453,7 +453,7 @@ function bt(e, t = se) {
|
|
|
453
453
|
let n;
|
|
454
454
|
const r = /* @__PURE__ */ new Set();
|
|
455
455
|
function i(s) {
|
|
456
|
-
if (
|
|
456
|
+
if (Hn(e, s) && (e = s, n)) {
|
|
457
457
|
const h = !Ne.length;
|
|
458
458
|
for (const u of r)
|
|
459
459
|
u[1](), Ne.push(u, e);
|
|
@@ -480,7 +480,7 @@ function ke(e, t, n) {
|
|
|
480
480
|
if (!i.every(Boolean))
|
|
481
481
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
482
482
|
const a = t.length < 2;
|
|
483
|
-
return
|
|
483
|
+
return Hr(n, (l, s) => {
|
|
484
484
|
let h = !1;
|
|
485
485
|
const u = [];
|
|
486
486
|
let d = 0, b = se;
|
|
@@ -491,7 +491,7 @@ function ke(e, t, n) {
|
|
|
491
491
|
const x = t(r ? u[0] : u, l, s);
|
|
492
492
|
a ? l(x) : b = Qt(x) ? x : se;
|
|
493
493
|
}, B = i.map(
|
|
494
|
-
(x, H) =>
|
|
494
|
+
(x, H) => On(
|
|
495
495
|
x,
|
|
496
496
|
(_) => {
|
|
497
497
|
u[H] = _, d &= ~(1 << H), h && y();
|
|
@@ -506,71 +506,71 @@ function ke(e, t, n) {
|
|
|
506
506
|
};
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
var
|
|
510
|
-
function
|
|
509
|
+
var Or = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
510
|
+
function Rr(e) {
|
|
511
511
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
512
512
|
}
|
|
513
|
-
var
|
|
514
|
-
return
|
|
513
|
+
var Lr = function(t) {
|
|
514
|
+
return Mr(t) && !Nr(t);
|
|
515
515
|
};
|
|
516
|
-
function
|
|
516
|
+
function Mr(e) {
|
|
517
517
|
return !!e && typeof e == "object";
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Nr(e) {
|
|
520
520
|
var t = Object.prototype.toString.call(e);
|
|
521
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
521
|
+
return t === "[object RegExp]" || t === "[object Date]" || Dr(e);
|
|
522
522
|
}
|
|
523
|
-
var
|
|
524
|
-
function
|
|
525
|
-
return e.$$typeof ===
|
|
523
|
+
var Ir = typeof Symbol == "function" && Symbol.for, Pr = Ir ? Symbol.for("react.element") : 60103;
|
|
524
|
+
function Dr(e) {
|
|
525
|
+
return e.$$typeof === Pr;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Ur(e) {
|
|
528
528
|
return Array.isArray(e) ? [] : {};
|
|
529
529
|
}
|
|
530
530
|
function et(e, t) {
|
|
531
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? De(
|
|
531
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? De(Ur(e), e, t) : e;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Fr(e, t, n) {
|
|
534
534
|
return e.concat(t).map(function(r) {
|
|
535
535
|
return et(r, n);
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Gr(e, t) {
|
|
539
539
|
if (!t.customMerge)
|
|
540
540
|
return De;
|
|
541
541
|
var n = t.customMerge(e);
|
|
542
542
|
return typeof n == "function" ? n : De;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function $r(e) {
|
|
545
545
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
546
546
|
return Object.propertyIsEnumerable.call(e, t);
|
|
547
547
|
}) : [];
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
return Object.keys(e).concat(
|
|
549
|
+
function sn(e) {
|
|
550
|
+
return Object.keys(e).concat($r(e));
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Mn(e, t) {
|
|
553
553
|
try {
|
|
554
554
|
return t in e;
|
|
555
555
|
} catch {
|
|
556
556
|
return !1;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
560
|
-
return
|
|
559
|
+
function kr(e, t) {
|
|
560
|
+
return Mn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function jr(e, t, n) {
|
|
563
563
|
var r = {};
|
|
564
|
-
return n.isMergeableObject(e) &&
|
|
564
|
+
return n.isMergeableObject(e) && sn(e).forEach(function(i) {
|
|
565
565
|
r[i] = et(e[i], n);
|
|
566
|
-
}),
|
|
567
|
-
|
|
566
|
+
}), sn(t).forEach(function(i) {
|
|
567
|
+
kr(e, i) || (Mn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Gr(i, n)(e[i], t[i], n) : r[i] = et(t[i], n));
|
|
568
568
|
}), r;
|
|
569
569
|
}
|
|
570
570
|
function De(e, t, n) {
|
|
571
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
571
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Fr, n.isMergeableObject = n.isMergeableObject || Lr, n.cloneUnlessOtherwiseSpecified = et;
|
|
572
572
|
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
573
|
-
return a ? r ? n.arrayMerge(e, t, n) :
|
|
573
|
+
return a ? r ? n.arrayMerge(e, t, n) : jr(e, t, n) : et(t, n);
|
|
574
574
|
}
|
|
575
575
|
De.all = function(t, n) {
|
|
576
576
|
if (!Array.isArray(t))
|
|
@@ -579,8 +579,8 @@ De.all = function(t, n) {
|
|
|
579
579
|
return De(r, i, n);
|
|
580
580
|
}, {});
|
|
581
581
|
};
|
|
582
|
-
var
|
|
583
|
-
const
|
|
582
|
+
var Vr = De, Xr = Vr;
|
|
583
|
+
const zr = /* @__PURE__ */ Rr(Xr);
|
|
584
584
|
var Gt = function(e, t) {
|
|
585
585
|
return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
586
586
|
n.__proto__ = r;
|
|
@@ -606,7 +606,7 @@ var I = function() {
|
|
|
606
606
|
return t;
|
|
607
607
|
}, I.apply(this, arguments);
|
|
608
608
|
};
|
|
609
|
-
function
|
|
609
|
+
function Wr(e, t) {
|
|
610
610
|
var n = {};
|
|
611
611
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
612
612
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -620,53 +620,55 @@ function Rt(e, t, n) {
|
|
|
620
620
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
621
621
|
}
|
|
622
622
|
function Lt(e, t) {
|
|
623
|
-
var n = t && t.cache ? t.cache :
|
|
623
|
+
var n = t && t.cache ? t.cache : Kr, r = t && t.serializer ? t.serializer : Yr, i = t && t.strategy ? t.strategy : qr;
|
|
624
624
|
return i(e, {
|
|
625
625
|
cache: n,
|
|
626
626
|
serializer: r
|
|
627
627
|
});
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Zr(e) {
|
|
630
630
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
631
631
|
}
|
|
632
|
-
function
|
|
633
|
-
var i =
|
|
632
|
+
function Nn(e, t, n, r) {
|
|
633
|
+
var i = Zr(r) ? r : n(r), a = t.get(i);
|
|
634
634
|
return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function In(e, t, n) {
|
|
637
637
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
638
638
|
return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function Jt(e, t, n, r, i) {
|
|
641
641
|
return n.bind(t, e, r, i);
|
|
642
642
|
}
|
|
643
|
-
function Zr(e, t) {
|
|
644
|
-
var n = e.length === 1 ? Wr : Ln;
|
|
645
|
-
return Mn(e, this, n, t.cache.create(), t.serializer);
|
|
646
|
-
}
|
|
647
643
|
function qr(e, t) {
|
|
648
|
-
|
|
644
|
+
var n = e.length === 1 ? Nn : In;
|
|
645
|
+
return Jt(e, this, n, t.cache.create(), t.serializer);
|
|
646
|
+
}
|
|
647
|
+
function Qr(e, t) {
|
|
648
|
+
return Jt(e, this, In, t.cache.create(), t.serializer);
|
|
649
|
+
}
|
|
650
|
+
function Jr(e, t) {
|
|
651
|
+
return Jt(e, this, Nn, t.cache.create(), t.serializer);
|
|
649
652
|
}
|
|
650
|
-
var
|
|
653
|
+
var Yr = function() {
|
|
651
654
|
return JSON.stringify(arguments);
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
}()
|
|
664
|
-
), Yr = {
|
|
655
|
+
};
|
|
656
|
+
function Yt() {
|
|
657
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
658
|
+
}
|
|
659
|
+
Yt.prototype.get = function(e) {
|
|
660
|
+
return this.cache[e];
|
|
661
|
+
};
|
|
662
|
+
Yt.prototype.set = function(e, t) {
|
|
663
|
+
this.cache[e] = t;
|
|
664
|
+
};
|
|
665
|
+
var Kr = {
|
|
665
666
|
create: function() {
|
|
666
|
-
return new
|
|
667
|
+
return new Yt();
|
|
667
668
|
}
|
|
668
669
|
}, Mt = {
|
|
669
|
-
variadic:
|
|
670
|
+
variadic: Qr,
|
|
671
|
+
monadic: Jr
|
|
670
672
|
}, R;
|
|
671
673
|
(function(e) {
|
|
672
674
|
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";
|
|
@@ -679,43 +681,43 @@ var Ue;
|
|
|
679
681
|
(function(e) {
|
|
680
682
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
681
683
|
})(Ue || (Ue = {}));
|
|
682
|
-
function
|
|
684
|
+
function ln(e) {
|
|
683
685
|
return e.type === G.literal;
|
|
684
686
|
}
|
|
685
|
-
function
|
|
687
|
+
function ei(e) {
|
|
686
688
|
return e.type === G.argument;
|
|
687
689
|
}
|
|
688
|
-
function
|
|
690
|
+
function Pn(e) {
|
|
689
691
|
return e.type === G.number;
|
|
690
692
|
}
|
|
691
|
-
function
|
|
693
|
+
function Dn(e) {
|
|
692
694
|
return e.type === G.date;
|
|
693
695
|
}
|
|
694
|
-
function
|
|
696
|
+
function Un(e) {
|
|
695
697
|
return e.type === G.time;
|
|
696
698
|
}
|
|
697
|
-
function
|
|
699
|
+
function Fn(e) {
|
|
698
700
|
return e.type === G.select;
|
|
699
701
|
}
|
|
700
|
-
function
|
|
702
|
+
function Gn(e) {
|
|
701
703
|
return e.type === G.plural;
|
|
702
704
|
}
|
|
703
|
-
function
|
|
705
|
+
function ti(e) {
|
|
704
706
|
return e.type === G.pound;
|
|
705
707
|
}
|
|
706
|
-
function
|
|
708
|
+
function $n(e) {
|
|
707
709
|
return e.type === G.tag;
|
|
708
710
|
}
|
|
709
|
-
function
|
|
711
|
+
function kn(e) {
|
|
710
712
|
return !!(e && typeof e == "object" && e.type === Ue.number);
|
|
711
713
|
}
|
|
712
714
|
function $t(e) {
|
|
713
715
|
return !!(e && typeof e == "object" && e.type === Ue.dateTime);
|
|
714
716
|
}
|
|
715
|
-
var
|
|
716
|
-
function
|
|
717
|
+
var jn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ni = /(?:[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;
|
|
718
|
+
function ri(e) {
|
|
717
719
|
var t = {};
|
|
718
|
-
return e.replace(
|
|
720
|
+
return e.replace(ni, function(n) {
|
|
719
721
|
var r = n.length;
|
|
720
722
|
switch (n[0]) {
|
|
721
723
|
case "G":
|
|
@@ -804,11 +806,11 @@ function ni(e) {
|
|
|
804
806
|
return "";
|
|
805
807
|
}), t;
|
|
806
808
|
}
|
|
807
|
-
var
|
|
808
|
-
function
|
|
809
|
+
var ii = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
810
|
+
function ai(e) {
|
|
809
811
|
if (e.length === 0)
|
|
810
812
|
throw new Error("Number skeleton cannot be empty");
|
|
811
|
-
for (var t = e.split(
|
|
813
|
+
for (var t = e.split(ii).filter(function(y) {
|
|
812
814
|
return y.length > 0;
|
|
813
815
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
814
816
|
var a = i[r], l = a.split("/");
|
|
@@ -823,17 +825,17 @@ function ii(e) {
|
|
|
823
825
|
}
|
|
824
826
|
return n;
|
|
825
827
|
}
|
|
826
|
-
function
|
|
828
|
+
function oi(e) {
|
|
827
829
|
return e.replace(/^(.*?)-/, "");
|
|
828
830
|
}
|
|
829
|
-
var
|
|
830
|
-
function
|
|
831
|
+
var un = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vn = /^(@+)?(\+|#+)?[rs]?$/g, si = /(\*)(0+)|(#+)(0+)|(0+)/g, Xn = /^(0+)$/;
|
|
832
|
+
function cn(e) {
|
|
831
833
|
var t = {};
|
|
832
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
834
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vn, function(n, r, i) {
|
|
833
835
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
834
836
|
}), t;
|
|
835
837
|
}
|
|
836
|
-
function
|
|
838
|
+
function zn(e) {
|
|
837
839
|
switch (e) {
|
|
838
840
|
case "sign-auto":
|
|
839
841
|
return {
|
|
@@ -873,7 +875,7 @@ function Vn(e) {
|
|
|
873
875
|
};
|
|
874
876
|
}
|
|
875
877
|
}
|
|
876
|
-
function
|
|
878
|
+
function li(e) {
|
|
877
879
|
var t;
|
|
878
880
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
879
881
|
notation: "engineering"
|
|
@@ -881,17 +883,17 @@ function si(e) {
|
|
|
881
883
|
notation: "scientific"
|
|
882
884
|
}, e = e.slice(1)), t) {
|
|
883
885
|
var n = e.slice(0, 2);
|
|
884
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
886
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xn.test(e))
|
|
885
887
|
throw new Error("Malformed concise eng/scientific notation");
|
|
886
888
|
t.minimumIntegerDigits = e.length;
|
|
887
889
|
}
|
|
888
890
|
return t;
|
|
889
891
|
}
|
|
890
|
-
function
|
|
891
|
-
var t = {}, n =
|
|
892
|
+
function hn(e) {
|
|
893
|
+
var t = {}, n = zn(e);
|
|
892
894
|
return n || t;
|
|
893
895
|
}
|
|
894
|
-
function
|
|
896
|
+
function ui(e) {
|
|
895
897
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
896
898
|
var i = r[n];
|
|
897
899
|
switch (i.stem) {
|
|
@@ -915,7 +917,7 @@ function li(e) {
|
|
|
915
917
|
continue;
|
|
916
918
|
case "measure-unit":
|
|
917
919
|
case "unit":
|
|
918
|
-
t.style = "unit", t.unit =
|
|
920
|
+
t.style = "unit", t.unit = oi(i.options[0]);
|
|
919
921
|
continue;
|
|
920
922
|
case "compact-short":
|
|
921
923
|
case "K":
|
|
@@ -927,12 +929,12 @@ function li(e) {
|
|
|
927
929
|
continue;
|
|
928
930
|
case "scientific":
|
|
929
931
|
t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
930
|
-
return I(I({}, h),
|
|
932
|
+
return I(I({}, h), hn(u));
|
|
931
933
|
}, {}));
|
|
932
934
|
continue;
|
|
933
935
|
case "engineering":
|
|
934
936
|
t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
935
|
-
return I(I({}, h),
|
|
937
|
+
return I(I({}, h), hn(u));
|
|
936
938
|
}, {}));
|
|
937
939
|
continue;
|
|
938
940
|
case "notation-simple":
|
|
@@ -977,7 +979,7 @@ function li(e) {
|
|
|
977
979
|
case "integer-width":
|
|
978
980
|
if (i.options.length > 1)
|
|
979
981
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
980
|
-
i.options[0].replace(
|
|
982
|
+
i.options[0].replace(si, function(h, u, d, b, y, B) {
|
|
981
983
|
if (u)
|
|
982
984
|
t.minimumIntegerDigits = d.length;
|
|
983
985
|
else {
|
|
@@ -990,27 +992,27 @@ function li(e) {
|
|
|
990
992
|
});
|
|
991
993
|
continue;
|
|
992
994
|
}
|
|
993
|
-
if (
|
|
995
|
+
if (Xn.test(i.stem)) {
|
|
994
996
|
t.minimumIntegerDigits = i.stem.length;
|
|
995
997
|
continue;
|
|
996
998
|
}
|
|
997
|
-
if (
|
|
999
|
+
if (un.test(i.stem)) {
|
|
998
1000
|
if (i.options.length > 1)
|
|
999
1001
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1000
|
-
i.stem.replace(
|
|
1002
|
+
i.stem.replace(un, function(h, u, d, b, y, B) {
|
|
1001
1003
|
return d === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : y && B ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + B.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1002
1004
|
});
|
|
1003
1005
|
var a = i.options[0];
|
|
1004
|
-
a === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = I(I({}, t),
|
|
1006
|
+
a === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = I(I({}, t), cn(a)));
|
|
1005
1007
|
continue;
|
|
1006
1008
|
}
|
|
1007
|
-
if (
|
|
1008
|
-
t = I(I({}, t),
|
|
1009
|
+
if (Vn.test(i.stem)) {
|
|
1010
|
+
t = I(I({}, t), cn(i.stem));
|
|
1009
1011
|
continue;
|
|
1010
1012
|
}
|
|
1011
|
-
var l =
|
|
1013
|
+
var l = zn(i.stem);
|
|
1012
1014
|
l && (t = I(I({}, t), l));
|
|
1013
|
-
var s =
|
|
1015
|
+
var s = li(i.stem);
|
|
1014
1016
|
s && (t = I(I({}, t), s));
|
|
1015
1017
|
}
|
|
1016
1018
|
return t;
|
|
@@ -2430,13 +2432,13 @@ var lt = {
|
|
|
2430
2432
|
"h"
|
|
2431
2433
|
]
|
|
2432
2434
|
};
|
|
2433
|
-
function
|
|
2435
|
+
function ci(e, t) {
|
|
2434
2436
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2435
2437
|
var i = e.charAt(r);
|
|
2436
2438
|
if (i === "j") {
|
|
2437
2439
|
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2438
2440
|
a++, r++;
|
|
2439
|
-
var l = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), h = "a", u =
|
|
2441
|
+
var l = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), h = "a", u = hi(t);
|
|
2440
2442
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2441
2443
|
n += h;
|
|
2442
2444
|
for (; l-- > 0; )
|
|
@@ -2445,7 +2447,7 @@ function ui(e, t) {
|
|
|
2445
2447
|
}
|
|
2446
2448
|
return n;
|
|
2447
2449
|
}
|
|
2448
|
-
function
|
|
2450
|
+
function hi(e) {
|
|
2449
2451
|
var t = e.hourCycle;
|
|
2450
2452
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2451
2453
|
e.hourCycles && // @ts-ignore
|
|
@@ -2467,20 +2469,20 @@ function ci(e) {
|
|
|
2467
2469
|
var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
|
|
2468
2470
|
return i[0];
|
|
2469
2471
|
}
|
|
2470
|
-
var Nt,
|
|
2472
|
+
var Nt, fi = new RegExp("^".concat(jn.source, "*")), di = new RegExp("".concat(jn.source, "*$"));
|
|
2471
2473
|
function L(e, t) {
|
|
2472
2474
|
return { start: e, end: t };
|
|
2473
2475
|
}
|
|
2474
|
-
var
|
|
2476
|
+
var pi = !!String.prototype.startsWith && "_a".startsWith("a", 1), mi = !!String.fromCodePoint, gi = !!Object.fromEntries, bi = !!String.prototype.codePointAt, yi = !!String.prototype.trimStart, vi = !!String.prototype.trimEnd, Ei = !!Number.isSafeInteger, xi = Ei ? Number.isSafeInteger : function(e) {
|
|
2475
2477
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2476
2478
|
}, kt = !0;
|
|
2477
2479
|
try {
|
|
2478
|
-
var
|
|
2479
|
-
kt = ((Nt =
|
|
2480
|
+
var _i = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2481
|
+
kt = ((Nt = _i.exec("a")) === null || Nt === void 0 ? void 0 : Nt[0]) === "a";
|
|
2480
2482
|
} catch {
|
|
2481
2483
|
kt = !1;
|
|
2482
2484
|
}
|
|
2483
|
-
var
|
|
2485
|
+
var fn = pi ? (
|
|
2484
2486
|
// Native
|
|
2485
2487
|
function(t, n, r) {
|
|
2486
2488
|
return t.startsWith(n, r);
|
|
@@ -2490,7 +2492,7 @@ var cn = di ? (
|
|
|
2490
2492
|
function(t, n, r) {
|
|
2491
2493
|
return t.slice(r, r + n.length) === n;
|
|
2492
2494
|
}
|
|
2493
|
-
), jt =
|
|
2495
|
+
), jt = mi ? String.fromCodePoint : (
|
|
2494
2496
|
// IE11
|
|
2495
2497
|
function() {
|
|
2496
2498
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2502,9 +2504,9 @@ var cn = di ? (
|
|
|
2502
2504
|
}
|
|
2503
2505
|
return r;
|
|
2504
2506
|
}
|
|
2505
|
-
),
|
|
2507
|
+
), dn = (
|
|
2506
2508
|
// native
|
|
2507
|
-
|
|
2509
|
+
gi ? Object.fromEntries : (
|
|
2508
2510
|
// Ponyfill
|
|
2509
2511
|
function(t) {
|
|
2510
2512
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2514,7 +2516,7 @@ var cn = di ? (
|
|
|
2514
2516
|
return n;
|
|
2515
2517
|
}
|
|
2516
2518
|
)
|
|
2517
|
-
),
|
|
2519
|
+
), Wn = bi ? (
|
|
2518
2520
|
// Native
|
|
2519
2521
|
function(t, n) {
|
|
2520
2522
|
return t.codePointAt(n);
|
|
@@ -2528,7 +2530,7 @@ var cn = di ? (
|
|
|
2528
2530
|
return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2529
2531
|
}
|
|
2530
2532
|
}
|
|
2531
|
-
),
|
|
2533
|
+
), Bi = yi ? (
|
|
2532
2534
|
// Native
|
|
2533
2535
|
function(t) {
|
|
2534
2536
|
return t.trimStart();
|
|
@@ -2536,9 +2538,9 @@ var cn = di ? (
|
|
|
2536
2538
|
) : (
|
|
2537
2539
|
// Ponyfill
|
|
2538
2540
|
function(t) {
|
|
2539
|
-
return t.replace(
|
|
2541
|
+
return t.replace(fi, "");
|
|
2540
2542
|
}
|
|
2541
|
-
),
|
|
2543
|
+
), Ti = vi ? (
|
|
2542
2544
|
// Native
|
|
2543
2545
|
function(t) {
|
|
2544
2546
|
return t.trimEnd();
|
|
@@ -2546,32 +2548,32 @@ var cn = di ? (
|
|
|
2546
2548
|
) : (
|
|
2547
2549
|
// Ponyfill
|
|
2548
2550
|
function(t) {
|
|
2549
|
-
return t.replace(
|
|
2551
|
+
return t.replace(di, "");
|
|
2550
2552
|
}
|
|
2551
2553
|
);
|
|
2552
|
-
function
|
|
2554
|
+
function Zn(e, t) {
|
|
2553
2555
|
return new RegExp(e, t);
|
|
2554
2556
|
}
|
|
2555
2557
|
var Vt;
|
|
2556
2558
|
if (kt) {
|
|
2557
|
-
var
|
|
2559
|
+
var pn = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2558
2560
|
Vt = function(t, n) {
|
|
2559
2561
|
var r;
|
|
2560
|
-
|
|
2561
|
-
var i =
|
|
2562
|
+
pn.lastIndex = n;
|
|
2563
|
+
var i = pn.exec(t);
|
|
2562
2564
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2563
2565
|
};
|
|
2564
2566
|
} else
|
|
2565
2567
|
Vt = function(t, n) {
|
|
2566
2568
|
for (var r = []; ; ) {
|
|
2567
|
-
var i =
|
|
2568
|
-
if (i === void 0 ||
|
|
2569
|
+
var i = Wn(t, n);
|
|
2570
|
+
if (i === void 0 || qn(i) || Ci(i))
|
|
2569
2571
|
break;
|
|
2570
2572
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2571
2573
|
}
|
|
2572
2574
|
return jt.apply(void 0, r);
|
|
2573
2575
|
};
|
|
2574
|
-
var
|
|
2576
|
+
var wi = (
|
|
2575
2577
|
/** @class */
|
|
2576
2578
|
function() {
|
|
2577
2579
|
function e(t, n) {
|
|
@@ -2653,7 +2655,7 @@ var Ti = (
|
|
|
2653
2655
|
return this.error(R.INVALID_TAG, L(r, this.clonePosition()));
|
|
2654
2656
|
}, e.prototype.parseTagName = function() {
|
|
2655
2657
|
var t = this.offset();
|
|
2656
|
-
for (this.bump(); !this.isEOF() &&
|
|
2658
|
+
for (this.bump(); !this.isEOF() && Ai(this.char()); )
|
|
2657
2659
|
this.bump();
|
|
2658
2660
|
return this.message.slice(t, this.offset());
|
|
2659
2661
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2682,7 +2684,7 @@ var Ti = (
|
|
|
2682
2684
|
};
|
|
2683
2685
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2684
2686
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2685
|
-
!
|
|
2687
|
+
!Si(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2686
2688
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2687
2689
|
if (this.isEOF() || this.char() !== 39)
|
|
2688
2690
|
return null;
|
|
@@ -2769,7 +2771,7 @@ var Ti = (
|
|
|
2769
2771
|
var d = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
|
|
2770
2772
|
if (b.err)
|
|
2771
2773
|
return b;
|
|
2772
|
-
var y =
|
|
2774
|
+
var y = Ti(b.val);
|
|
2773
2775
|
if (y.length === 0)
|
|
2774
2776
|
return this.error(R.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2775
2777
|
var B = L(d, this.clonePosition());
|
|
@@ -2779,8 +2781,8 @@ var Ti = (
|
|
|
2779
2781
|
if (x.err)
|
|
2780
2782
|
return x;
|
|
2781
2783
|
var H = L(i, this.clonePosition());
|
|
2782
|
-
if (u &&
|
|
2783
|
-
var _ =
|
|
2784
|
+
if (u && fn(u?.style, "::", 0)) {
|
|
2785
|
+
var _ = Bi(u.style.slice(2));
|
|
2784
2786
|
if (s === "number") {
|
|
2785
2787
|
var b = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
2786
2788
|
return b.err ? b : {
|
|
@@ -2791,12 +2793,12 @@ var Ti = (
|
|
|
2791
2793
|
if (_.length === 0)
|
|
2792
2794
|
return this.error(R.EXPECT_DATE_TIME_SKELETON, H);
|
|
2793
2795
|
var A = _;
|
|
2794
|
-
this.locale && (A =
|
|
2796
|
+
this.locale && (A = ci(_, this.locale));
|
|
2795
2797
|
var y = {
|
|
2796
2798
|
type: Ue.dateTime,
|
|
2797
2799
|
pattern: A,
|
|
2798
2800
|
location: u.styleLocation,
|
|
2799
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2801
|
+
parsedOptions: this.shouldParseSkeletons ? ri(A) : {}
|
|
2800
2802
|
}, P = s === "date" ? G.date : G.time;
|
|
2801
2803
|
return {
|
|
2802
2804
|
val: { type: P, value: r, location: H, style: y },
|
|
@@ -2842,7 +2844,7 @@ var Ti = (
|
|
|
2842
2844
|
val: {
|
|
2843
2845
|
type: G.select,
|
|
2844
2846
|
value: r,
|
|
2845
|
-
options:
|
|
2847
|
+
options: dn(ne.val),
|
|
2846
2848
|
location: W
|
|
2847
2849
|
},
|
|
2848
2850
|
err: null
|
|
@@ -2850,7 +2852,7 @@ var Ti = (
|
|
|
2850
2852
|
val: {
|
|
2851
2853
|
type: G.plural,
|
|
2852
2854
|
value: r,
|
|
2853
|
-
options:
|
|
2855
|
+
options: dn(ne.val),
|
|
2854
2856
|
offset: X,
|
|
2855
2857
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2856
2858
|
location: W
|
|
@@ -2901,7 +2903,7 @@ var Ti = (
|
|
|
2901
2903
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2902
2904
|
var r = [];
|
|
2903
2905
|
try {
|
|
2904
|
-
r =
|
|
2906
|
+
r = ai(t);
|
|
2905
2907
|
} catch {
|
|
2906
2908
|
return this.error(R.INVALID_NUMBER_SKELETON, n);
|
|
2907
2909
|
}
|
|
@@ -2910,7 +2912,7 @@ var Ti = (
|
|
|
2910
2912
|
type: Ue.number,
|
|
2911
2913
|
tokens: r,
|
|
2912
2914
|
location: n,
|
|
2913
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2915
|
+
parsedOptions: this.shouldParseSkeletons ? ui(r) : {}
|
|
2914
2916
|
},
|
|
2915
2917
|
err: null
|
|
2916
2918
|
};
|
|
@@ -2958,7 +2960,7 @@ var Ti = (
|
|
|
2958
2960
|
break;
|
|
2959
2961
|
}
|
|
2960
2962
|
var h = L(i, this.clonePosition());
|
|
2961
|
-
return a ? (l *= r,
|
|
2963
|
+
return a ? (l *= r, xi(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
|
|
2962
2964
|
}, e.prototype.offset = function() {
|
|
2963
2965
|
return this.position.offset;
|
|
2964
2966
|
}, e.prototype.isEOF = function() {
|
|
@@ -2973,7 +2975,7 @@ var Ti = (
|
|
|
2973
2975
|
var t = this.position.offset;
|
|
2974
2976
|
if (t >= this.message.length)
|
|
2975
2977
|
throw Error("out of bound");
|
|
2976
|
-
var n =
|
|
2978
|
+
var n = Wn(this.message, t);
|
|
2977
2979
|
if (n === void 0)
|
|
2978
2980
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2979
2981
|
return n;
|
|
@@ -2992,7 +2994,7 @@ var Ti = (
|
|
|
2992
2994
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
2993
2995
|
}
|
|
2994
2996
|
}, e.prototype.bumpIf = function(t) {
|
|
2995
|
-
if (
|
|
2997
|
+
if (fn(this.message, t, this.offset())) {
|
|
2996
2998
|
for (var n = 0; n < t.length; n++)
|
|
2997
2999
|
this.bump();
|
|
2998
3000
|
return !0;
|
|
@@ -3014,7 +3016,7 @@ var Ti = (
|
|
|
3014
3016
|
break;
|
|
3015
3017
|
}
|
|
3016
3018
|
}, e.prototype.bumpSpace = function() {
|
|
3017
|
-
for (; !this.isEOF() &&
|
|
3019
|
+
for (; !this.isEOF() && qn(this.char()); )
|
|
3018
3020
|
this.bump();
|
|
3019
3021
|
}, e.prototype.peek = function() {
|
|
3020
3022
|
if (this.isEOF())
|
|
@@ -3027,29 +3029,29 @@ var Ti = (
|
|
|
3027
3029
|
function Xt(e) {
|
|
3028
3030
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3029
3031
|
}
|
|
3030
|
-
function
|
|
3032
|
+
function Si(e) {
|
|
3031
3033
|
return Xt(e) || e === 47;
|
|
3032
3034
|
}
|
|
3033
|
-
function
|
|
3035
|
+
function Ai(e) {
|
|
3034
3036
|
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;
|
|
3035
3037
|
}
|
|
3036
|
-
function
|
|
3038
|
+
function qn(e) {
|
|
3037
3039
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3038
3040
|
}
|
|
3039
|
-
function
|
|
3041
|
+
function Ci(e) {
|
|
3040
3042
|
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;
|
|
3041
3043
|
}
|
|
3042
3044
|
function zt(e) {
|
|
3043
3045
|
e.forEach(function(t) {
|
|
3044
|
-
if (delete t.location,
|
|
3046
|
+
if (delete t.location, Fn(t) || Gn(t))
|
|
3045
3047
|
for (var n in t.options)
|
|
3046
3048
|
delete t.options[n].location, zt(t.options[n].value);
|
|
3047
|
-
else
|
|
3049
|
+
else Pn(t) && kn(t.style) || (Dn(t) || Un(t)) && $t(t.style) ? delete t.style.location : $n(t) && zt(t.children);
|
|
3048
3050
|
});
|
|
3049
3051
|
}
|
|
3050
|
-
function
|
|
3052
|
+
function Hi(e, t) {
|
|
3051
3053
|
t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3052
|
-
var n = new
|
|
3054
|
+
var n = new wi(e, t).parse();
|
|
3053
3055
|
if (n.err) {
|
|
3054
3056
|
var r = SyntaxError(R[n.err.kind]);
|
|
3055
3057
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
@@ -3072,7 +3074,7 @@ var vt = (
|
|
|
3072
3074
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3073
3075
|
}, t;
|
|
3074
3076
|
}(Error)
|
|
3075
|
-
),
|
|
3077
|
+
), mn = (
|
|
3076
3078
|
/** @class */
|
|
3077
3079
|
function(e) {
|
|
3078
3080
|
yt(t, e);
|
|
@@ -3081,7 +3083,7 @@ var vt = (
|
|
|
3081
3083
|
}
|
|
3082
3084
|
return t;
|
|
3083
3085
|
}(vt)
|
|
3084
|
-
),
|
|
3086
|
+
), Oi = (
|
|
3085
3087
|
/** @class */
|
|
3086
3088
|
function(e) {
|
|
3087
3089
|
yt(t, e);
|
|
@@ -3090,7 +3092,7 @@ var vt = (
|
|
|
3090
3092
|
}
|
|
3091
3093
|
return t;
|
|
3092
3094
|
}(vt)
|
|
3093
|
-
),
|
|
3095
|
+
), Ri = (
|
|
3094
3096
|
/** @class */
|
|
3095
3097
|
function(e) {
|
|
3096
3098
|
yt(t, e);
|
|
@@ -3103,17 +3105,17 @@ var vt = (
|
|
|
3103
3105
|
(function(e) {
|
|
3104
3106
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3105
3107
|
})(te || (te = {}));
|
|
3106
|
-
function
|
|
3108
|
+
function Li(e) {
|
|
3107
3109
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3108
3110
|
var r = t[t.length - 1];
|
|
3109
3111
|
return !r || r.type !== te.literal || n.type !== te.literal ? t.push(n) : r.value += n.value, t;
|
|
3110
3112
|
}, []);
|
|
3111
3113
|
}
|
|
3112
|
-
function
|
|
3114
|
+
function Mi(e) {
|
|
3113
3115
|
return typeof e == "function";
|
|
3114
3116
|
}
|
|
3115
3117
|
function ct(e, t, n, r, i, a, l) {
|
|
3116
|
-
if (e.length === 1 &&
|
|
3118
|
+
if (e.length === 1 && ln(e[0]))
|
|
3117
3119
|
return [
|
|
3118
3120
|
{
|
|
3119
3121
|
type: te.literal,
|
|
@@ -3122,14 +3124,14 @@ function ct(e, t, n, r, i, a, l) {
|
|
|
3122
3124
|
];
|
|
3123
3125
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3124
3126
|
var d = u[h];
|
|
3125
|
-
if (
|
|
3127
|
+
if (ln(d)) {
|
|
3126
3128
|
s.push({
|
|
3127
3129
|
type: te.literal,
|
|
3128
3130
|
value: d.value
|
|
3129
3131
|
});
|
|
3130
3132
|
continue;
|
|
3131
3133
|
}
|
|
3132
|
-
if (
|
|
3134
|
+
if (ti(d)) {
|
|
3133
3135
|
typeof a == "number" && s.push({
|
|
3134
3136
|
type: te.literal,
|
|
3135
3137
|
value: n.getNumberFormat(t).format(a)
|
|
@@ -3138,16 +3140,16 @@ function ct(e, t, n, r, i, a, l) {
|
|
|
3138
3140
|
}
|
|
3139
3141
|
var b = d.value;
|
|
3140
3142
|
if (!(i && b in i))
|
|
3141
|
-
throw new
|
|
3143
|
+
throw new Ri(b, l);
|
|
3142
3144
|
var y = i[b];
|
|
3143
|
-
if (
|
|
3145
|
+
if (ei(d)) {
|
|
3144
3146
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), s.push({
|
|
3145
3147
|
type: typeof y == "string" ? te.literal : te.object,
|
|
3146
3148
|
value: y
|
|
3147
3149
|
});
|
|
3148
3150
|
continue;
|
|
3149
3151
|
}
|
|
3150
|
-
if (
|
|
3152
|
+
if (Dn(d)) {
|
|
3151
3153
|
var B = typeof d.style == "string" ? r.date[d.style] : $t(d.style) ? d.style.parsedOptions : void 0;
|
|
3152
3154
|
s.push({
|
|
3153
3155
|
type: te.literal,
|
|
@@ -3155,7 +3157,7 @@ function ct(e, t, n, r, i, a, l) {
|
|
|
3155
3157
|
});
|
|
3156
3158
|
continue;
|
|
3157
3159
|
}
|
|
3158
|
-
if (
|
|
3160
|
+
if (Un(d)) {
|
|
3159
3161
|
var B = typeof d.style == "string" ? r.time[d.style] : $t(d.style) ? d.style.parsedOptions : r.time.medium;
|
|
3160
3162
|
s.push({
|
|
3161
3163
|
type: te.literal,
|
|
@@ -3163,18 +3165,18 @@ function ct(e, t, n, r, i, a, l) {
|
|
|
3163
3165
|
});
|
|
3164
3166
|
continue;
|
|
3165
3167
|
}
|
|
3166
|
-
if (
|
|
3167
|
-
var B = typeof d.style == "string" ? r.number[d.style] :
|
|
3168
|
+
if (Pn(d)) {
|
|
3169
|
+
var B = typeof d.style == "string" ? r.number[d.style] : kn(d.style) ? d.style.parsedOptions : void 0;
|
|
3168
3170
|
B && B.scale && (y = y * (B.scale || 1)), s.push({
|
|
3169
3171
|
type: te.literal,
|
|
3170
3172
|
value: n.getNumberFormat(t, B).format(y)
|
|
3171
3173
|
});
|
|
3172
3174
|
continue;
|
|
3173
3175
|
}
|
|
3174
|
-
if (
|
|
3176
|
+
if ($n(d)) {
|
|
3175
3177
|
var x = d.children, H = d.value, _ = i[H];
|
|
3176
|
-
if (!
|
|
3177
|
-
throw new
|
|
3178
|
+
if (!Mi(_))
|
|
3179
|
+
throw new Oi(H, "function", l);
|
|
3178
3180
|
var A = ct(x, t, n, r, i, a), P = _(A.map(function(X) {
|
|
3179
3181
|
return X.value;
|
|
3180
3182
|
}));
|
|
@@ -3185,14 +3187,14 @@ function ct(e, t, n, r, i, a, l) {
|
|
|
3185
3187
|
};
|
|
3186
3188
|
}));
|
|
3187
3189
|
}
|
|
3188
|
-
if (
|
|
3190
|
+
if (Fn(d)) {
|
|
3189
3191
|
var O = d.options[y] || d.options.other;
|
|
3190
3192
|
if (!O)
|
|
3191
|
-
throw new
|
|
3193
|
+
throw new mn(d.value, y, Object.keys(d.options), l);
|
|
3192
3194
|
s.push.apply(s, ct(O.value, t, n, r, i));
|
|
3193
3195
|
continue;
|
|
3194
3196
|
}
|
|
3195
|
-
if (
|
|
3197
|
+
if (Gn(d)) {
|
|
3196
3198
|
var O = d.options["=".concat(y)];
|
|
3197
3199
|
if (!O) {
|
|
3198
3200
|
if (!Intl.PluralRules)
|
|
@@ -3203,21 +3205,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3203
3205
|
O = d.options[j] || d.options.other;
|
|
3204
3206
|
}
|
|
3205
3207
|
if (!O)
|
|
3206
|
-
throw new
|
|
3208
|
+
throw new mn(d.value, y, Object.keys(d.options), l);
|
|
3207
3209
|
s.push.apply(s, ct(O.value, t, n, r, i, y - (d.offset || 0)));
|
|
3208
3210
|
continue;
|
|
3209
3211
|
}
|
|
3210
3212
|
}
|
|
3211
|
-
return
|
|
3213
|
+
return Li(s);
|
|
3212
3214
|
}
|
|
3213
|
-
function
|
|
3215
|
+
function Ni(e, t) {
|
|
3214
3216
|
return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3215
3217
|
return n[r] = I(I({}, e[r]), t[r] || {}), n;
|
|
3216
3218
|
}, {})) : e;
|
|
3217
3219
|
}
|
|
3218
|
-
function
|
|
3220
|
+
function Ii(e, t) {
|
|
3219
3221
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3220
|
-
return n[r] =
|
|
3222
|
+
return n[r] = Ni(e[r], t[r]), n;
|
|
3221
3223
|
}, I({}, e)) : e;
|
|
3222
3224
|
}
|
|
3223
3225
|
function It(e) {
|
|
@@ -3234,7 +3236,7 @@ function It(e) {
|
|
|
3234
3236
|
}
|
|
3235
3237
|
};
|
|
3236
3238
|
}
|
|
3237
|
-
function
|
|
3239
|
+
function Pi(e) {
|
|
3238
3240
|
return e === void 0 && (e = {
|
|
3239
3241
|
number: {},
|
|
3240
3242
|
dateTime: {},
|
|
@@ -3266,7 +3268,7 @@ function Ii(e) {
|
|
|
3266
3268
|
})
|
|
3267
3269
|
};
|
|
3268
3270
|
}
|
|
3269
|
-
var
|
|
3271
|
+
var Di = (
|
|
3270
3272
|
/** @class */
|
|
3271
3273
|
function() {
|
|
3272
3274
|
function e(t, n, r, i) {
|
|
@@ -3298,13 +3300,13 @@ var Pi = (
|
|
|
3298
3300
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3299
3301
|
var l = i || {};
|
|
3300
3302
|
l.formatters;
|
|
3301
|
-
var s =
|
|
3303
|
+
var s = Wr(l, ["formatters"]);
|
|
3302
3304
|
this.ast = e.__parse(t, I(I({}, s), { locale: this.resolvedLocale }));
|
|
3303
3305
|
} else
|
|
3304
3306
|
this.ast = t;
|
|
3305
3307
|
if (!Array.isArray(this.ast))
|
|
3306
3308
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3307
|
-
this.formats =
|
|
3309
|
+
this.formats = Ii(e.formats, r), this.formatters = i && i.formatters || Pi(this.formatterCache);
|
|
3308
3310
|
}
|
|
3309
3311
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3310
3312
|
get: function() {
|
|
@@ -3317,7 +3319,7 @@ var Pi = (
|
|
|
3317
3319
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3318
3320
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3319
3321
|
}
|
|
3320
|
-
}, e.__parse =
|
|
3322
|
+
}, e.__parse = Hi, e.formats = {
|
|
3321
3323
|
number: {
|
|
3322
3324
|
integer: {
|
|
3323
3325
|
maximumFractionDigits: 0
|
|
@@ -3378,7 +3380,7 @@ var Pi = (
|
|
|
3378
3380
|
}, e;
|
|
3379
3381
|
}()
|
|
3380
3382
|
);
|
|
3381
|
-
function
|
|
3383
|
+
function Ui(e, t) {
|
|
3382
3384
|
if (t == null)
|
|
3383
3385
|
return;
|
|
3384
3386
|
if (t in e)
|
|
@@ -3399,60 +3401,60 @@ function Di(e, t) {
|
|
|
3399
3401
|
r = void 0;
|
|
3400
3402
|
return r;
|
|
3401
3403
|
}
|
|
3402
|
-
const we = {},
|
|
3404
|
+
const we = {}, Fi = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), Qn = (e, t) => {
|
|
3403
3405
|
if (t == null)
|
|
3404
3406
|
return;
|
|
3405
3407
|
if (t in we && e in we[t])
|
|
3406
3408
|
return we[t][e];
|
|
3407
3409
|
const n = Et(t);
|
|
3408
3410
|
for (let r = 0; r < n.length; r++) {
|
|
3409
|
-
const i = n[r], a =
|
|
3411
|
+
const i = n[r], a = $i(i, e);
|
|
3410
3412
|
if (a)
|
|
3411
|
-
return
|
|
3413
|
+
return Fi(e, t, a);
|
|
3412
3414
|
}
|
|
3413
3415
|
};
|
|
3414
|
-
let
|
|
3416
|
+
let Kt;
|
|
3415
3417
|
const nt = bt({});
|
|
3416
|
-
function
|
|
3417
|
-
return
|
|
3418
|
+
function Gi(e) {
|
|
3419
|
+
return Kt[e] || null;
|
|
3418
3420
|
}
|
|
3419
|
-
function
|
|
3420
|
-
return e in
|
|
3421
|
+
function Jn(e) {
|
|
3422
|
+
return e in Kt;
|
|
3421
3423
|
}
|
|
3422
|
-
function
|
|
3423
|
-
if (!
|
|
3424
|
+
function $i(e, t) {
|
|
3425
|
+
if (!Jn(e))
|
|
3424
3426
|
return null;
|
|
3425
|
-
const n =
|
|
3426
|
-
return
|
|
3427
|
+
const n = Gi(e);
|
|
3428
|
+
return Ui(n, t);
|
|
3427
3429
|
}
|
|
3428
|
-
function
|
|
3430
|
+
function ki(e) {
|
|
3429
3431
|
if (e == null)
|
|
3430
3432
|
return;
|
|
3431
3433
|
const t = Et(e);
|
|
3432
3434
|
for (let n = 0; n < t.length; n++) {
|
|
3433
3435
|
const r = t[n];
|
|
3434
|
-
if (
|
|
3436
|
+
if (Jn(r))
|
|
3435
3437
|
return r;
|
|
3436
3438
|
}
|
|
3437
3439
|
}
|
|
3438
|
-
function
|
|
3439
|
-
delete we[e], nt.update((n) => (n[e] =
|
|
3440
|
+
function Yn(e, ...t) {
|
|
3441
|
+
delete we[e], nt.update((n) => (n[e] = zr.all([n[e] || {}, ...t]), n));
|
|
3440
3442
|
}
|
|
3441
3443
|
ke(
|
|
3442
3444
|
[nt],
|
|
3443
3445
|
([e]) => Object.keys(e)
|
|
3444
3446
|
);
|
|
3445
|
-
nt.subscribe((e) =>
|
|
3447
|
+
nt.subscribe((e) => Kt = e);
|
|
3446
3448
|
const ht = {};
|
|
3447
|
-
function
|
|
3449
|
+
function ji(e, t) {
|
|
3448
3450
|
ht[e].delete(t), ht[e].size === 0 && delete ht[e];
|
|
3449
3451
|
}
|
|
3450
|
-
function
|
|
3452
|
+
function Kn(e) {
|
|
3451
3453
|
return ht[e];
|
|
3452
3454
|
}
|
|
3453
|
-
function
|
|
3455
|
+
function Vi(e) {
|
|
3454
3456
|
return Et(e).map((t) => {
|
|
3455
|
-
const n =
|
|
3457
|
+
const n = Kn(t);
|
|
3456
3458
|
return [t, n ? [...n] : []];
|
|
3457
3459
|
}).filter(([, t]) => t.length > 0);
|
|
3458
3460
|
}
|
|
@@ -3460,31 +3462,31 @@ function Wt(e) {
|
|
|
3460
3462
|
return e == null ? !1 : Et(e).some(
|
|
3461
3463
|
(t) => {
|
|
3462
3464
|
var n;
|
|
3463
|
-
return (n =
|
|
3465
|
+
return (n = Kn(t)) == null ? void 0 : n.size;
|
|
3464
3466
|
}
|
|
3465
3467
|
);
|
|
3466
3468
|
}
|
|
3467
|
-
function
|
|
3469
|
+
function Xi(e, t) {
|
|
3468
3470
|
return Promise.all(
|
|
3469
|
-
t.map((r) => (
|
|
3470
|
-
).then((r) =>
|
|
3471
|
+
t.map((r) => (ji(e, r), r().then((i) => i.default || i)))
|
|
3472
|
+
).then((r) => Yn(e, ...r));
|
|
3471
3473
|
}
|
|
3472
3474
|
const Je = {};
|
|
3473
|
-
function
|
|
3475
|
+
function er(e) {
|
|
3474
3476
|
if (!Wt(e))
|
|
3475
3477
|
return e in Je ? Je[e] : Promise.resolve();
|
|
3476
|
-
const t =
|
|
3478
|
+
const t = Vi(e);
|
|
3477
3479
|
return Je[e] = Promise.all(
|
|
3478
3480
|
t.map(
|
|
3479
|
-
([n, r]) =>
|
|
3481
|
+
([n, r]) => Xi(n, r)
|
|
3480
3482
|
)
|
|
3481
3483
|
).then(() => {
|
|
3482
3484
|
if (Wt(e))
|
|
3483
|
-
return
|
|
3485
|
+
return er(e);
|
|
3484
3486
|
delete Je[e];
|
|
3485
3487
|
}), Je[e];
|
|
3486
3488
|
}
|
|
3487
|
-
const
|
|
3489
|
+
const zi = {
|
|
3488
3490
|
number: {
|
|
3489
3491
|
scientific: { notation: "scientific" },
|
|
3490
3492
|
engineering: { notation: "engineering" },
|
|
@@ -3513,34 +3515,34 @@ const Xi = {
|
|
|
3513
3515
|
timeZoneName: "short"
|
|
3514
3516
|
}
|
|
3515
3517
|
}
|
|
3516
|
-
},
|
|
3518
|
+
}, Wi = {
|
|
3517
3519
|
fallbackLocale: null,
|
|
3518
3520
|
loadingDelay: 200,
|
|
3519
|
-
formats:
|
|
3521
|
+
formats: zi,
|
|
3520
3522
|
warnOnMissingMessages: !0,
|
|
3521
3523
|
handleMissingMessage: void 0,
|
|
3522
3524
|
ignoreTag: !0
|
|
3523
|
-
},
|
|
3525
|
+
}, Zi = Wi;
|
|
3524
3526
|
function Ge() {
|
|
3525
|
-
return
|
|
3527
|
+
return Zi;
|
|
3526
3528
|
}
|
|
3527
3529
|
const Pt = bt(!1);
|
|
3528
|
-
var
|
|
3530
|
+
var qi = Object.defineProperty, Qi = Object.defineProperties, Ji = Object.getOwnPropertyDescriptors, gn = Object.getOwnPropertySymbols, Yi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ea = (e, t) => {
|
|
3529
3531
|
for (var n in t || (t = {}))
|
|
3530
|
-
|
|
3531
|
-
if (
|
|
3532
|
-
for (var n of
|
|
3533
|
-
|
|
3532
|
+
Yi.call(t, n) && bn(e, n, t[n]);
|
|
3533
|
+
if (gn)
|
|
3534
|
+
for (var n of gn(t))
|
|
3535
|
+
Ki.call(t, n) && bn(e, n, t[n]);
|
|
3534
3536
|
return e;
|
|
3535
|
-
},
|
|
3537
|
+
}, ta = (e, t) => Qi(e, Ji(t));
|
|
3536
3538
|
let Zt;
|
|
3537
3539
|
const mt = bt(null);
|
|
3538
|
-
function
|
|
3540
|
+
function yn(e) {
|
|
3539
3541
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3540
3542
|
}
|
|
3541
3543
|
function Et(e, t = Ge().fallbackLocale) {
|
|
3542
|
-
const n =
|
|
3543
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3544
|
+
const n = yn(e);
|
|
3545
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...yn(t)])] : n;
|
|
3544
3546
|
}
|
|
3545
3547
|
function Ce() {
|
|
3546
3548
|
return Zt ?? void 0;
|
|
@@ -3548,22 +3550,22 @@ function Ce() {
|
|
|
3548
3550
|
mt.subscribe((e) => {
|
|
3549
3551
|
Zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3550
3552
|
});
|
|
3551
|
-
const
|
|
3552
|
-
if (e &&
|
|
3553
|
+
const na = (e) => {
|
|
3554
|
+
if (e && ki(e) && Wt(e)) {
|
|
3553
3555
|
const { loadingDelay: t } = Ge();
|
|
3554
3556
|
let n;
|
|
3555
3557
|
return typeof window < "u" && Ce() != null && t ? n = window.setTimeout(
|
|
3556
3558
|
() => Pt.set(!0),
|
|
3557
3559
|
t
|
|
3558
|
-
) : Pt.set(!0),
|
|
3560
|
+
) : Pt.set(!0), er(e).then(() => {
|
|
3559
3561
|
mt.set(e);
|
|
3560
3562
|
}).finally(() => {
|
|
3561
3563
|
clearTimeout(n), Pt.set(!1);
|
|
3562
3564
|
});
|
|
3563
3565
|
}
|
|
3564
3566
|
return mt.set(e);
|
|
3565
|
-
}, je = ea(
|
|
3566
|
-
set:
|
|
3567
|
+
}, je = ta(ea({}, mt), {
|
|
3568
|
+
set: na
|
|
3567
3569
|
}), xt = (e) => {
|
|
3568
3570
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3569
3571
|
return (r) => {
|
|
@@ -3571,20 +3573,20 @@ const ta = (e) => {
|
|
|
3571
3573
|
return i in t ? t[i] : t[i] = e(r);
|
|
3572
3574
|
};
|
|
3573
3575
|
};
|
|
3574
|
-
var
|
|
3576
|
+
var ra = Object.defineProperty, gt = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, vn = (e, t, n) => t in e ? ra(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, en = (e, t) => {
|
|
3575
3577
|
for (var n in t || (t = {}))
|
|
3576
|
-
|
|
3578
|
+
tr.call(t, n) && vn(e, n, t[n]);
|
|
3577
3579
|
if (gt)
|
|
3578
3580
|
for (var n of gt(t))
|
|
3579
|
-
|
|
3581
|
+
nr.call(t, n) && vn(e, n, t[n]);
|
|
3580
3582
|
return e;
|
|
3581
3583
|
}, Ve = (e, t) => {
|
|
3582
3584
|
var n = {};
|
|
3583
3585
|
for (var r in e)
|
|
3584
|
-
|
|
3586
|
+
tr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3585
3587
|
if (e != null && gt)
|
|
3586
3588
|
for (var r of gt(e))
|
|
3587
|
-
t.indexOf(r) < 0 &&
|
|
3589
|
+
t.indexOf(r) < 0 && nr.call(e, r) && (n[r] = e[r]);
|
|
3588
3590
|
return n;
|
|
3589
3591
|
};
|
|
3590
3592
|
const tt = (e, t) => {
|
|
@@ -3592,21 +3594,21 @@ const tt = (e, t) => {
|
|
|
3592
3594
|
if (e in n && t in n[e])
|
|
3593
3595
|
return n[e][t];
|
|
3594
3596
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3595
|
-
},
|
|
3597
|
+
}, ia = xt(
|
|
3596
3598
|
(e) => {
|
|
3597
3599
|
var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
|
|
3598
3600
|
if (n == null)
|
|
3599
3601
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3600
3602
|
return r && (i = tt("number", r)), new Intl.NumberFormat(n, i);
|
|
3601
3603
|
}
|
|
3602
|
-
),
|
|
3604
|
+
), aa = xt(
|
|
3603
3605
|
(e) => {
|
|
3604
3606
|
var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
|
|
3605
3607
|
if (n == null)
|
|
3606
3608
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3607
3609
|
return r ? i = tt("date", r) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3608
3610
|
}
|
|
3609
|
-
),
|
|
3611
|
+
), oa = xt(
|
|
3610
3612
|
(e) => {
|
|
3611
3613
|
var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
|
|
3612
3614
|
if (n == null)
|
|
@@ -3615,33 +3617,33 @@ const tt = (e, t) => {
|
|
|
3615
3617
|
);
|
|
3616
3618
|
return r ? i = tt("time", r) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3617
3619
|
}
|
|
3618
|
-
),
|
|
3620
|
+
), sa = (e = {}) => {
|
|
3619
3621
|
var t = e, {
|
|
3620
3622
|
locale: n = Ce()
|
|
3621
3623
|
} = t, r = Ve(t, [
|
|
3622
3624
|
"locale"
|
|
3623
3625
|
]);
|
|
3624
|
-
return
|
|
3625
|
-
},
|
|
3626
|
+
return ia(en({ locale: n }, r));
|
|
3627
|
+
}, la = (e = {}) => {
|
|
3626
3628
|
var t = e, {
|
|
3627
3629
|
locale: n = Ce()
|
|
3628
3630
|
} = t, r = Ve(t, [
|
|
3629
3631
|
"locale"
|
|
3630
3632
|
]);
|
|
3631
|
-
return
|
|
3632
|
-
},
|
|
3633
|
+
return aa(en({ locale: n }, r));
|
|
3634
|
+
}, ua = (e = {}) => {
|
|
3633
3635
|
var t = e, {
|
|
3634
3636
|
locale: n = Ce()
|
|
3635
3637
|
} = t, r = Ve(t, [
|
|
3636
3638
|
"locale"
|
|
3637
3639
|
]);
|
|
3638
|
-
return
|
|
3639
|
-
},
|
|
3640
|
+
return oa(en({ locale: n }, r));
|
|
3641
|
+
}, ca = xt(
|
|
3640
3642
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3641
|
-
(e, t = Ce()) => new
|
|
3643
|
+
(e, t = Ce()) => new Di(e, t, Ge().formats, {
|
|
3642
3644
|
ignoreTag: Ge().ignoreTag
|
|
3643
3645
|
})
|
|
3644
|
-
),
|
|
3646
|
+
), ha = (e, t = {}) => {
|
|
3645
3647
|
var n, r, i, a;
|
|
3646
3648
|
let l = t;
|
|
3647
3649
|
typeof e == "object" && (l = e, e = l.id);
|
|
@@ -3654,7 +3656,7 @@ const tt = (e, t) => {
|
|
|
3654
3656
|
throw new Error(
|
|
3655
3657
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3656
3658
|
);
|
|
3657
|
-
let d =
|
|
3659
|
+
let d = Qn(e, h);
|
|
3658
3660
|
if (!d)
|
|
3659
3661
|
d = (a = (i = (r = (n = Ge()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
|
|
3660
3662
|
else if (typeof d != "string")
|
|
@@ -3665,7 +3667,7 @@ const tt = (e, t) => {
|
|
|
3665
3667
|
return d;
|
|
3666
3668
|
let b = d;
|
|
3667
3669
|
try {
|
|
3668
|
-
b =
|
|
3670
|
+
b = ca(d, h).format(s);
|
|
3669
3671
|
} catch (y) {
|
|
3670
3672
|
y instanceof Error && console.warn(
|
|
3671
3673
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3673,18 +3675,18 @@ const tt = (e, t) => {
|
|
|
3673
3675
|
);
|
|
3674
3676
|
}
|
|
3675
3677
|
return b;
|
|
3676
|
-
},
|
|
3677
|
-
ke([je], () => ha);
|
|
3678
|
+
}, fa = (e, t) => ua(t).format(e), da = (e, t) => la(t).format(e), pa = (e, t) => sa(t).format(e), ma = (e, t = Ce()) => Qn(e, t), ga = ke([je, nt], () => ha);
|
|
3678
3679
|
ke([je], () => fa);
|
|
3679
3680
|
ke([je], () => da);
|
|
3680
|
-
ke([je
|
|
3681
|
-
|
|
3682
|
-
|
|
3681
|
+
ke([je], () => pa);
|
|
3682
|
+
ke([je, nt], () => ma);
|
|
3683
|
+
function En(e, t) {
|
|
3684
|
+
Yn(e, t);
|
|
3683
3685
|
}
|
|
3684
|
-
function
|
|
3686
|
+
function ba(e) {
|
|
3685
3687
|
je.set(e);
|
|
3686
3688
|
}
|
|
3687
|
-
const
|
|
3689
|
+
const xn = {
|
|
3688
3690
|
en: {
|
|
3689
3691
|
Title: "Your Balance",
|
|
3690
3692
|
Total: "Total Balance",
|
|
@@ -4211,7 +4213,7 @@ var qt = { exports: {} };
|
|
|
4211
4213
|
var St = b != null && y != null && "body" in y.prototype;
|
|
4212
4214
|
function At(c, o, p) {
|
|
4213
4215
|
o = String(o);
|
|
4214
|
-
var f = !!p.withCredentials, m = p.lastEventIdQueryParameterName || "lastEventId", v = Ze(1e3), T = Oe(p.heartbeatTimeout, 45e3), E = "", w = v, N = !1, F = 0, S = p.headers || {}, k = p.Transport, ye = St && k == null ? void 0 : new j(k != null ? new k() : wt()), qe = k != null && typeof k != "string" ? new k() : ye == null ? new D() : new W(), ie = void 0, Y = 0, le = ze, Re = "", ot = "", ve = "", st = "", K = pe, Ct = 0, Ae = 0,
|
|
4216
|
+
var f = !!p.withCredentials, m = p.lastEventIdQueryParameterName || "lastEventId", v = Ze(1e3), T = Oe(p.heartbeatTimeout, 45e3), E = "", w = v, N = !1, F = 0, S = p.headers || {}, k = p.Transport, ye = St && k == null ? void 0 : new j(k != null ? new k() : wt()), qe = k != null && typeof k != "string" ? new k() : ye == null ? new D() : new W(), ie = void 0, Y = 0, le = ze, Re = "", ot = "", ve = "", st = "", K = pe, Ct = 0, Ae = 0, ir = function(Z, z, ae, oe) {
|
|
4215
4217
|
if (le === de)
|
|
4216
4218
|
if (Z === 200 && ae != null && it.test(ae)) {
|
|
4217
4219
|
le = Be, N = Date.now(), w = v, c.readyState = Be;
|
|
@@ -4231,7 +4233,7 @@ var qt = { exports: {} };
|
|
|
4231
4233
|
});
|
|
4232
4234
|
c.dispatchEvent(ee), Te(c, c.onerror, ee), console.error(q);
|
|
4233
4235
|
}
|
|
4234
|
-
},
|
|
4236
|
+
}, ar = function(Z) {
|
|
4235
4237
|
if (le === Be) {
|
|
4236
4238
|
for (var z = -1, ae = 0; ae < Z.length; ae += 1) {
|
|
4237
4239
|
var oe = Z.charCodeAt(ae);
|
|
@@ -4269,7 +4271,7 @@ var qt = { exports: {} };
|
|
|
4269
4271
|
K === pe && (Ct = q, K = Se), K === Se ? oe === 58 && (Ae = q + 1, K = We) : K === We && (K = _t);
|
|
4270
4272
|
}
|
|
4271
4273
|
}
|
|
4272
|
-
},
|
|
4274
|
+
}, nn = function(Z) {
|
|
4273
4275
|
if (le === Be || le === de) {
|
|
4274
4276
|
le = ze, Y !== 0 && (i(Y), Y = 0), Y = r(function() {
|
|
4275
4277
|
Qe();
|
|
@@ -4282,7 +4284,7 @@ var qt = { exports: {} };
|
|
|
4282
4284
|
}, Qe = function() {
|
|
4283
4285
|
if (Y = 0, le !== ze) {
|
|
4284
4286
|
if (!N && ie != null)
|
|
4285
|
-
|
|
4287
|
+
nn(new Error("No activity within " + T + " milliseconds. " + (le === de ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
|
|
4286
4288
|
else {
|
|
4287
4289
|
var Z = Math.max((N || Date.now()) + T - Date.now(), 1);
|
|
4288
4290
|
N = !1, Y = r(function() {
|
|
@@ -4308,7 +4310,7 @@ var qt = { exports: {} };
|
|
|
4308
4310
|
for (var Ee in q)
|
|
4309
4311
|
Object.prototype.hasOwnProperty.call(q, Ee) && (ee[Ee] = q[Ee]);
|
|
4310
4312
|
try {
|
|
4311
|
-
ie = qe.open(ye,
|
|
4313
|
+
ie = qe.open(ye, ir, ar, nn, z, oe, ee);
|
|
4312
4314
|
} catch (xe) {
|
|
4313
4315
|
throw Ht(), xe;
|
|
4314
4316
|
}
|
|
@@ -4327,9 +4329,9 @@ var qt = { exports: {} };
|
|
|
4327
4329
|
}(function(c) {
|
|
4328
4330
|
c.EventSourcePolyfill = re, c.NativeEventSource = h, c.EventSource = at;
|
|
4329
4331
|
});
|
|
4330
|
-
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self :
|
|
4332
|
+
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Or : globalThis);
|
|
4331
4333
|
})(qt, qt.exports);
|
|
4332
|
-
var
|
|
4334
|
+
var ya = qt.exports;
|
|
4333
4335
|
/*!
|
|
4334
4336
|
* currency.js - v2.0.4
|
|
4335
4337
|
* http://scurker.github.io/currency.js
|
|
@@ -4337,7 +4339,7 @@ var ba = qt.exports;
|
|
|
4337
4339
|
* Copyright (c) 2021 Jason Wilson
|
|
4338
4340
|
* Released under MIT license
|
|
4339
4341
|
*/
|
|
4340
|
-
var
|
|
4342
|
+
var va = {
|
|
4341
4343
|
symbol: "$",
|
|
4342
4344
|
separator: ",",
|
|
4343
4345
|
decimal: ".",
|
|
@@ -4345,24 +4347,24 @@ var ya = {
|
|
|
4345
4347
|
precision: 2,
|
|
4346
4348
|
pattern: "!#",
|
|
4347
4349
|
negativePattern: "-!#",
|
|
4348
|
-
format:
|
|
4350
|
+
format: Ba,
|
|
4349
4351
|
fromCents: !1
|
|
4350
|
-
},
|
|
4352
|
+
}, rr = function(t) {
|
|
4351
4353
|
return Math.round(t);
|
|
4352
|
-
},
|
|
4354
|
+
}, tn = function(t) {
|
|
4353
4355
|
return Math.pow(10, t);
|
|
4354
|
-
},
|
|
4355
|
-
return
|
|
4356
|
-
},
|
|
4356
|
+
}, Ea = function(t, n) {
|
|
4357
|
+
return rr(t / n) * n;
|
|
4358
|
+
}, xa = /(\d)(?=(\d{3})+\b)/g, _a = /(\d)(?=(\d\d)+\d\b)/g;
|
|
4357
4359
|
function ue(e, t) {
|
|
4358
4360
|
var n = this;
|
|
4359
4361
|
if (!(n instanceof ue))
|
|
4360
4362
|
return new ue(e, t);
|
|
4361
|
-
var r = Object.assign({},
|
|
4362
|
-
n.intValue = a, n.value = a / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups =
|
|
4363
|
+
var r = Object.assign({}, va, t), i = tn(r.precision), a = ft(e, r);
|
|
4364
|
+
n.intValue = a, n.value = a / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = _a : r.groups = xa, this.s = r, this.p = i;
|
|
4363
4365
|
}
|
|
4364
4366
|
function ft(e, t) {
|
|
4365
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, a = t.errorOnInvalid, l = t.precision, s = t.fromCents, h =
|
|
4367
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, a = t.errorOnInvalid, l = t.precision, s = t.fromCents, h = tn(l), u = typeof e == "number", d = e instanceof ue;
|
|
4366
4368
|
if (d && s)
|
|
4367
4369
|
return e.intValue;
|
|
4368
4370
|
if (u || d)
|
|
@@ -4375,9 +4377,9 @@ function ft(e, t) {
|
|
|
4375
4377
|
throw Error("Invalid Input");
|
|
4376
4378
|
r = 0;
|
|
4377
4379
|
}
|
|
4378
|
-
return s || (r *= h, r = r.toFixed(4)), n ?
|
|
4380
|
+
return s || (r *= h, r = r.toFixed(4)), n ? rr(r) : r;
|
|
4379
4381
|
}
|
|
4380
|
-
function
|
|
4382
|
+
function Ba(e, t) {
|
|
4381
4383
|
var n = t.pattern, r = t.negativePattern, i = t.symbol, a = t.separator, l = t.decimal, s = t.groups, h = ("" + e).replace(/^-/, "").split("."), u = h[0], d = h[1];
|
|
4382
4384
|
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + a) + (d ? l + d : ""));
|
|
4383
4385
|
}
|
|
@@ -4407,7 +4409,7 @@ ue.prototype = {
|
|
|
4407
4409
|
*/
|
|
4408
4410
|
multiply: function(t) {
|
|
4409
4411
|
var n = this.intValue, r = this.s;
|
|
4410
|
-
return ue((n *= t) / (r.fromCents ? 1 :
|
|
4412
|
+
return ue((n *= t) / (r.fromCents ? 1 : tn(r.precision)), r);
|
|
4411
4413
|
},
|
|
4412
4414
|
/**
|
|
4413
4415
|
* Divides value.
|
|
@@ -4461,7 +4463,7 @@ ue.prototype = {
|
|
|
4461
4463
|
*/
|
|
4462
4464
|
toString: function() {
|
|
4463
4465
|
var t = this.intValue, n = this.p, r = this.s;
|
|
4464
|
-
return
|
|
4466
|
+
return Ea(t / n, r.increment).toFixed(r.precision);
|
|
4465
4467
|
},
|
|
4466
4468
|
/**
|
|
4467
4469
|
* Value for JSON serialization.
|
|
@@ -4471,18 +4473,18 @@ ue.prototype = {
|
|
|
4471
4473
|
return this.value;
|
|
4472
4474
|
}
|
|
4473
4475
|
};
|
|
4474
|
-
function
|
|
4475
|
-
|
|
4476
|
+
function Ta(e) {
|
|
4477
|
+
lr(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
4476
4478
|
}
|
|
4477
|
-
function
|
|
4479
|
+
function _n(e, t, n) {
|
|
4478
4480
|
const r = e.slice();
|
|
4479
4481
|
return r[50] = t[n], r;
|
|
4480
4482
|
}
|
|
4481
|
-
function
|
|
4483
|
+
function Bn(e, t, n) {
|
|
4482
4484
|
const r = e.slice();
|
|
4483
4485
|
return r[53] = t[n], r;
|
|
4484
4486
|
}
|
|
4485
|
-
function
|
|
4487
|
+
function wa(e) {
|
|
4486
4488
|
let t, n, r = (
|
|
4487
4489
|
/*balances*/
|
|
4488
4490
|
(e[1].Total ? (
|
|
@@ -4494,14 +4496,14 @@ function Ta(e) {
|
|
|
4494
4496
|
) : "0") + ""
|
|
4495
4497
|
), i, a, l, s, h, u, d, b, y, B, x, H, _ = (
|
|
4496
4498
|
/*showBalance*/
|
|
4497
|
-
e[4] &&
|
|
4499
|
+
e[4] && Tn(e)
|
|
4498
4500
|
);
|
|
4499
4501
|
return {
|
|
4500
4502
|
c() {
|
|
4501
4503
|
t = $("div"), n = $("p"), i = ce(r), a = fe(), l = ce(
|
|
4502
4504
|
/*currency*/
|
|
4503
4505
|
e[5]
|
|
4504
|
-
), s = fe(), h = $("span"), u =
|
|
4506
|
+
), s = fe(), h = $("span"), u = an("svg"), d = an("path"), y = fe(), _ && _.c(), B = hr(), M(d, "id", "arrow"), M(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(d, "transform", "translate(-274.511 -441.088)"), M(d, "fill", "#d1d1d1"), M(u, "xmlns", "http://www.w3.org/2000/svg"), M(u, "width", "14"), M(u, "height", "6.835"), M(u, "viewBox", "0 0 14 6.835"), M(h, "class", b = /*modalOpened*/
|
|
4505
4507
|
e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
|
|
4506
4508
|
},
|
|
4507
4509
|
m(A, P) {
|
|
@@ -4529,14 +4531,14 @@ function Ta(e) {
|
|
|
4529
4531
|
), P[0] & /*modalOpened*/
|
|
4530
4532
|
8 && b !== (b = /*modalOpened*/
|
|
4531
4533
|
A[3] ? "TriangleActive" : "TriangleInactive") && M(h, "class", b), /*showBalance*/
|
|
4532
|
-
A[4] ? _ ? _.p(A, P) : (_ =
|
|
4534
|
+
A[4] ? _ ? _.p(A, P) : (_ = Tn(A), _.c(), _.m(B.parentNode, B)) : _ && (_.d(1), _ = null);
|
|
4533
4535
|
},
|
|
4534
4536
|
d(A) {
|
|
4535
4537
|
A && (he(t), he(y), he(B)), _ && _.d(A), x = !1, H();
|
|
4536
4538
|
}
|
|
4537
4539
|
};
|
|
4538
4540
|
}
|
|
4539
|
-
function
|
|
4541
|
+
function Sa(e) {
|
|
4540
4542
|
let t, n = (
|
|
4541
4543
|
/*$_*/
|
|
4542
4544
|
e[6]("Loading") + ""
|
|
@@ -4558,7 +4560,7 @@ function wa(e) {
|
|
|
4558
4560
|
}
|
|
4559
4561
|
};
|
|
4560
4562
|
}
|
|
4561
|
-
function
|
|
4563
|
+
function Tn(e) {
|
|
4562
4564
|
let t, n, r, i, a, l, s, h, u = (
|
|
4563
4565
|
/*$_*/
|
|
4564
4566
|
e[6]("Title") + ""
|
|
@@ -4570,7 +4572,7 @@ function _n(e) {
|
|
|
4570
4572
|
e[1]
|
|
4571
4573
|
)), U = [];
|
|
4572
4574
|
for (let D = 0; D < W.length; D += 1)
|
|
4573
|
-
U[D] =
|
|
4575
|
+
U[D] = Sn(_n(e, W, D));
|
|
4574
4576
|
return {
|
|
4575
4577
|
c() {
|
|
4576
4578
|
t = $("div"), n = $("div"), i = fe(), a = $("div"), l = $("div"), s = $("div"), h = $("p"), d = ce(u), b = fe(), y = $("div");
|
|
@@ -4614,8 +4616,8 @@ function _n(e) {
|
|
|
4614
4616
|
));
|
|
4615
4617
|
let g;
|
|
4616
4618
|
for (g = 0; g < W.length; g += 1) {
|
|
4617
|
-
const J =
|
|
4618
|
-
U[g] ? U[g].p(J, V) : (U[g] =
|
|
4619
|
+
const J = _n(D, W, g);
|
|
4620
|
+
U[g] ? U[g].p(J, V) : (U[g] = Sn(J), U[g].c(), U[g].m(y, null));
|
|
4619
4621
|
}
|
|
4620
4622
|
for (; g < U.length; g += 1)
|
|
4621
4623
|
U[g].d(1);
|
|
@@ -4632,11 +4634,11 @@ function _n(e) {
|
|
|
4632
4634
|
(D[3] ? "Open" : "")) && M(t, "class", j);
|
|
4633
4635
|
},
|
|
4634
4636
|
d(D) {
|
|
4635
|
-
D && he(t),
|
|
4637
|
+
D && he(t), Rn(U, D), X = !1, $e(ne);
|
|
4636
4638
|
}
|
|
4637
4639
|
};
|
|
4638
4640
|
}
|
|
4639
|
-
function
|
|
4641
|
+
function wn(e) {
|
|
4640
4642
|
let t, n, r = (
|
|
4641
4643
|
/*$_*/
|
|
4642
4644
|
e[6](
|
|
@@ -4706,7 +4708,7 @@ function Bn(e) {
|
|
|
4706
4708
|
}
|
|
4707
4709
|
};
|
|
4708
4710
|
}
|
|
4709
|
-
function
|
|
4711
|
+
function Sn(e) {
|
|
4710
4712
|
let t, n, r = pt(
|
|
4711
4713
|
/*balances*/
|
|
4712
4714
|
e[1][
|
|
@@ -4715,7 +4717,7 @@ function Tn(e) {
|
|
|
4715
4717
|
]
|
|
4716
4718
|
), i = [];
|
|
4717
4719
|
for (let a = 0; a < r.length; a += 1)
|
|
4718
|
-
i[a] = Bn(
|
|
4720
|
+
i[a] = wn(Bn(e, r, a));
|
|
4719
4721
|
return {
|
|
4720
4722
|
c() {
|
|
4721
4723
|
t = $("div");
|
|
@@ -4741,8 +4743,8 @@ function Tn(e) {
|
|
|
4741
4743
|
);
|
|
4742
4744
|
let s;
|
|
4743
4745
|
for (s = 0; s < r.length; s += 1) {
|
|
4744
|
-
const h =
|
|
4745
|
-
i[s] ? i[s].p(h, l) : (i[s] =
|
|
4746
|
+
const h = Bn(a, r, s);
|
|
4747
|
+
i[s] ? i[s].p(h, l) : (i[s] = wn(h), i[s].c(), i[s].m(t, n));
|
|
4746
4748
|
}
|
|
4747
4749
|
for (; s < i.length; s += 1)
|
|
4748
4750
|
i[s].d(1);
|
|
@@ -4750,11 +4752,11 @@ function Tn(e) {
|
|
|
4750
4752
|
}
|
|
4751
4753
|
},
|
|
4752
4754
|
d(a) {
|
|
4753
|
-
a && he(t),
|
|
4755
|
+
a && he(t), Rn(i, a);
|
|
4754
4756
|
}
|
|
4755
4757
|
};
|
|
4756
4758
|
}
|
|
4757
|
-
function
|
|
4759
|
+
function An(e) {
|
|
4758
4760
|
let t, n, r;
|
|
4759
4761
|
return {
|
|
4760
4762
|
c() {
|
|
@@ -4774,17 +4776,17 @@ function wn(e) {
|
|
|
4774
4776
|
}
|
|
4775
4777
|
};
|
|
4776
4778
|
}
|
|
4777
|
-
function
|
|
4779
|
+
function Aa(e) {
|
|
4778
4780
|
let t, n, r;
|
|
4779
4781
|
function i(h, u) {
|
|
4780
4782
|
return (
|
|
4781
4783
|
/*isLoading*/
|
|
4782
|
-
h[2] ?
|
|
4784
|
+
h[2] ? Sa : wa
|
|
4783
4785
|
);
|
|
4784
4786
|
}
|
|
4785
4787
|
let a = i(e), l = a(e), s = (
|
|
4786
4788
|
/*showBalance*/
|
|
4787
|
-
e[4] &&
|
|
4789
|
+
e[4] && An(e)
|
|
4788
4790
|
);
|
|
4789
4791
|
return {
|
|
4790
4792
|
c() {
|
|
@@ -4795,7 +4797,7 @@ function Sa(e) {
|
|
|
4795
4797
|
},
|
|
4796
4798
|
p(h, u) {
|
|
4797
4799
|
a === (a = i(h)) && l ? l.p(h, u) : (l.d(1), l = a(h), l && (l.c(), l.m(n, null))), /*showBalance*/
|
|
4798
|
-
h[4] ? s ? s.p(h, u) : (s =
|
|
4800
|
+
h[4] ? s ? s.p(h, u) : (s = An(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4799
4801
|
},
|
|
4800
4802
|
i: se,
|
|
4801
4803
|
o: se,
|
|
@@ -4804,14 +4806,14 @@ function Sa(e) {
|
|
|
4804
4806
|
}
|
|
4805
4807
|
};
|
|
4806
4808
|
}
|
|
4807
|
-
function
|
|
4809
|
+
function Ca(e, t, n) {
|
|
4808
4810
|
let r;
|
|
4809
|
-
|
|
4811
|
+
sr(e, ga, (o) => n(6, r = o));
|
|
4810
4812
|
let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: d = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: x = "totalCashAmount" } = t, { currencyseparator: H = "" } = t, { currencydecimal: _ = "" } = t, { currencyprecision: A = "" } = t, P, O, j, X, ne = !1, W = "", U = [], D, V = !1;
|
|
4811
4813
|
const g = {}, J = ["totalCashAmount", "totalRealAmount"], rt = () => {
|
|
4812
|
-
fetch(d).then((o) => o.json()).then((o) => Object.keys(o).forEach((p) =>
|
|
4814
|
+
fetch(d).then((o) => o.json()).then((o) => Object.keys(o).forEach((p) => En(p, o[p]))).catch((o) => console.log(o));
|
|
4813
4815
|
};
|
|
4814
|
-
Object.keys(
|
|
4816
|
+
Object.keys(xn).forEach((o) => En(o, xn[o]));
|
|
4815
4817
|
const ge = (o) => {
|
|
4816
4818
|
switch (o) {
|
|
4817
4819
|
case "balance":
|
|
@@ -4963,7 +4965,7 @@ function Aa(e, t, n) {
|
|
|
4963
4965
|
const f = {
|
|
4964
4966
|
accept: "text/event-stream",
|
|
4965
4967
|
"X-SessionId": a
|
|
4966
|
-
}, m = new
|
|
4968
|
+
}, m = new ya.EventSourcePolyfill(o, { headers: f });
|
|
4967
4969
|
X = m, m.addEventListener("message", p);
|
|
4968
4970
|
}, He = (o) => {
|
|
4969
4971
|
let p;
|
|
@@ -5039,7 +5041,7 @@ function Aa(e, t, n) {
|
|
|
5039
5041
|
}, Bt = () => {
|
|
5040
5042
|
J.includes(x) || (console.error(`Unsupported value ('${x}') for totalcalculationmode parameter. Only the following values are supported ${J}. Using default value ('${J[0]}').`), n(10, x = J[0]));
|
|
5041
5043
|
}, Tt = () => {
|
|
5042
|
-
switch (
|
|
5044
|
+
switch (ba(s), Bt(), y) {
|
|
5043
5045
|
case "gmcore":
|
|
5044
5046
|
de();
|
|
5045
5047
|
break;
|
|
@@ -5065,7 +5067,7 @@ function Aa(e, t, n) {
|
|
|
5065
5067
|
}, re = () => {
|
|
5066
5068
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5067
5069
|
};
|
|
5068
|
-
|
|
5070
|
+
mr(() => (window.addEventListener("message", Oe, !1), () => {
|
|
5069
5071
|
window.removeEventListener("message", Oe), X && X.close();
|
|
5070
5072
|
}));
|
|
5071
5073
|
const wt = () => ge("balance"), St = () => ge("closebalance"), At = () => it(), at = () => ge("closeBalance");
|
|
@@ -5117,14 +5119,14 @@ function Aa(e, t, n) {
|
|
|
5117
5119
|
c
|
|
5118
5120
|
];
|
|
5119
5121
|
}
|
|
5120
|
-
class
|
|
5122
|
+
class Ha extends Ar {
|
|
5121
5123
|
constructor(t) {
|
|
5122
|
-
super(),
|
|
5124
|
+
super(), wr(
|
|
5123
5125
|
this,
|
|
5124
5126
|
t,
|
|
5127
|
+
Ca,
|
|
5125
5128
|
Aa,
|
|
5126
|
-
|
|
5127
|
-
An,
|
|
5129
|
+
Hn,
|
|
5128
5130
|
{
|
|
5129
5131
|
userid: 11,
|
|
5130
5132
|
session: 12,
|
|
@@ -5141,7 +5143,7 @@ class Ca extends wr {
|
|
|
5141
5143
|
currencydecimal: 22,
|
|
5142
5144
|
currencyprecision: 23
|
|
5143
5145
|
},
|
|
5144
|
-
|
|
5146
|
+
Ta,
|
|
5145
5147
|
[-1, -1]
|
|
5146
5148
|
);
|
|
5147
5149
|
}
|
|
@@ -5230,7 +5232,7 @@ class Ca extends wr {
|
|
|
5230
5232
|
this.$$set({ currencyprecision: t }), Q();
|
|
5231
5233
|
}
|
|
5232
5234
|
}
|
|
5233
|
-
|
|
5235
|
+
Sr(Ha, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
|
5234
5236
|
export {
|
|
5235
|
-
|
|
5237
|
+
Ha as P
|
|
5236
5238
|
};
|