@everymatrix/player-account-balance-modal-nd 1.84.0 → 1.84.2
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-DSSEFyLG.js → PlayerAccountBalanceModalNd-4oW5u8Ml.js} +1054 -1054
- package/components/PlayerAccountBalanceModalNd-ByOqNjcv.cjs +24 -0
- package/components/{PlayerAccountBalanceModalNd-DdzjJ4xT.js → PlayerAccountBalanceModalNd-D_n2-ofG.js} +1065 -1065
- 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-DmmxW9ey.cjs +0 -24
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function ye() {
|
|
2
2
|
}
|
|
3
3
|
function Vr(e) {
|
|
4
4
|
return e();
|
|
@@ -22,7 +22,7 @@ function zr(e, ...t) {
|
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return ye;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -30,14 +30,14 @@ function zr(e, ...t) {
|
|
|
30
30
|
function Hn(e, t, r) {
|
|
31
31
|
e.$$.on_destroy.push(zr(t, r));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function M(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
36
|
function On(e, t, r) {
|
|
37
37
|
const n = Ln(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
|
-
const i =
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = V("style");
|
|
40
|
+
i.id = t, i.textContent = r, Rn(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
function Ln(e) {
|
|
@@ -50,48 +50,48 @@ function Ln(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function Rn(e, t) {
|
|
54
|
+
return M(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Ee(e, t, r) {
|
|
61
61
|
e.insertBefore(t, r || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ve(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
66
|
function Wr(e, t) {
|
|
67
67
|
for (let r = 0; r < e.length; r += 1)
|
|
68
68
|
e[r] && e[r].d(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function V(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
73
|
function dr(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Oe(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function Be() {
|
|
80
|
+
return Oe(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function Mn() {
|
|
83
|
+
return Oe("");
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function it(e, t, r, n) {
|
|
86
86
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
87
87
|
}
|
|
88
88
|
function L(e, t, r) {
|
|
89
89
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Pn(e) {
|
|
92
92
|
return Array.from(e.childNodes);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Ie(e, t) {
|
|
95
95
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
96
96
|
t);
|
|
97
97
|
}
|
|
@@ -104,14 +104,14 @@ function Nn(e) {
|
|
|
104
104
|
}
|
|
105
105
|
), t;
|
|
106
106
|
}
|
|
107
|
-
let
|
|
108
|
-
function
|
|
109
|
-
|
|
107
|
+
let ot;
|
|
108
|
+
function nt(e) {
|
|
109
|
+
ot = e;
|
|
110
110
|
}
|
|
111
111
|
function In() {
|
|
112
|
-
if (!
|
|
112
|
+
if (!ot)
|
|
113
113
|
throw new Error("Function called outside component initialization");
|
|
114
|
-
return
|
|
114
|
+
return ot;
|
|
115
115
|
}
|
|
116
116
|
function Dn(e) {
|
|
117
117
|
In().$$.on_mount.push(e);
|
|
@@ -121,27 +121,27 @@ let je = [];
|
|
|
121
121
|
const pr = [], Un = /* @__PURE__ */ Promise.resolve();
|
|
122
122
|
let Vt = !1;
|
|
123
123
|
function Fn() {
|
|
124
|
-
Vt || (Vt = !0, Un.then(
|
|
124
|
+
Vt || (Vt = !0, Un.then(Y));
|
|
125
125
|
}
|
|
126
126
|
function Xt(e) {
|
|
127
127
|
je.push(e);
|
|
128
128
|
}
|
|
129
129
|
const Nt = /* @__PURE__ */ new Set();
|
|
130
130
|
let Fe = 0;
|
|
131
|
-
function
|
|
131
|
+
function Y() {
|
|
132
132
|
if (Fe !== 0)
|
|
133
133
|
return;
|
|
134
|
-
const e =
|
|
134
|
+
const e = ot;
|
|
135
135
|
do {
|
|
136
136
|
try {
|
|
137
137
|
for (; Fe < ke.length; ) {
|
|
138
138
|
const t = ke[Fe];
|
|
139
|
-
Fe++,
|
|
139
|
+
Fe++, nt(t), Gn(t.$$);
|
|
140
140
|
}
|
|
141
141
|
} catch (t) {
|
|
142
142
|
throw ke.length = 0, Fe = 0, t;
|
|
143
143
|
}
|
|
144
|
-
for (
|
|
144
|
+
for (nt(null), ke.length = 0, Fe = 0; $t.length; )
|
|
145
145
|
$t.pop()();
|
|
146
146
|
for (let t = 0; t < je.length; t += 1) {
|
|
147
147
|
const r = je[t];
|
|
@@ -151,7 +151,7 @@ function Q() {
|
|
|
151
151
|
} while (ke.length);
|
|
152
152
|
for (; pr.length; )
|
|
153
153
|
pr.pop()();
|
|
154
|
-
Vt = !1, Nt.clear(),
|
|
154
|
+
Vt = !1, Nt.clear(), nt(e);
|
|
155
155
|
}
|
|
156
156
|
function Gn(e) {
|
|
157
157
|
if (e.fragment !== null) {
|
|
@@ -168,7 +168,7 @@ const jn = /* @__PURE__ */ new Set();
|
|
|
168
168
|
function $n(e, t) {
|
|
169
169
|
e && e.i && (jn.delete(e), e.i(t));
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function vt(e) {
|
|
172
172
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
173
173
|
}
|
|
174
174
|
function Vn(e, t, r) {
|
|
@@ -186,14 +186,14 @@ function zn(e, t) {
|
|
|
186
186
|
e.$$.dirty[0] === -1 && (ke.push(e), Fn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
187
187
|
}
|
|
188
188
|
function Wn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
189
|
-
const l =
|
|
190
|
-
|
|
189
|
+
const l = ot;
|
|
190
|
+
nt(e);
|
|
191
191
|
const u = e.$$ = {
|
|
192
192
|
fragment: null,
|
|
193
193
|
ctx: [],
|
|
194
194
|
// state
|
|
195
195
|
props: o,
|
|
196
|
-
update:
|
|
196
|
+
update: ye,
|
|
197
197
|
not_equal: i,
|
|
198
198
|
bound: fr(),
|
|
199
199
|
// lifecycle
|
|
@@ -211,18 +211,18 @@ function Wn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
211
211
|
};
|
|
212
212
|
s && s(u.root);
|
|
213
213
|
let f = !1;
|
|
214
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
215
|
-
const
|
|
216
|
-
return u.ctx && i(u.ctx[
|
|
214
|
+
if (u.ctx = r ? r(e, t.props || {}, (b, d, ..._) => {
|
|
215
|
+
const x = _.length ? _[0] : d;
|
|
216
|
+
return u.ctx && i(u.ctx[b], u.ctx[b] = x) && (!u.skip_bound && u.bound[b] && u.bound[b](x), f && zn(e, b)), d;
|
|
217
217
|
}) : [], u.update(), f = !0, We(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
218
218
|
if (t.hydrate) {
|
|
219
|
-
const
|
|
220
|
-
u.fragment && u.fragment.l(
|
|
219
|
+
const b = Pn(t.target);
|
|
220
|
+
u.fragment && u.fragment.l(b), b.forEach(ve);
|
|
221
221
|
} else
|
|
222
222
|
u.fragment && u.fragment.c();
|
|
223
|
-
t.intro && $n(e.$$.fragment), Vn(e, t.target, t.anchor),
|
|
223
|
+
t.intro && $n(e.$$.fragment), Vn(e, t.target, t.anchor), Y();
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
nt(l);
|
|
226
226
|
}
|
|
227
227
|
let Zr;
|
|
228
228
|
typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
|
|
@@ -267,17 +267,17 @@ typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
|
|
|
267
267
|
let o;
|
|
268
268
|
return {
|
|
269
269
|
c: function() {
|
|
270
|
-
o =
|
|
270
|
+
o = V("slot"), i !== "default" && L(o, "name", i);
|
|
271
271
|
},
|
|
272
272
|
/**
|
|
273
273
|
* @param {HTMLElement} target
|
|
274
274
|
* @param {HTMLElement} [anchor]
|
|
275
275
|
*/
|
|
276
276
|
m: function(l, u) {
|
|
277
|
-
|
|
277
|
+
Ee(l, o, u);
|
|
278
278
|
},
|
|
279
279
|
d: function(l) {
|
|
280
|
-
l &&
|
|
280
|
+
l && ve(o);
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
283
|
};
|
|
@@ -289,7 +289,7 @@ typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
|
|
|
289
289
|
i in r && (t[i] = [e(i)]);
|
|
290
290
|
for (const i of this.attributes) {
|
|
291
291
|
const o = this.$$g_p(i.name);
|
|
292
|
-
o in this.$$d || (this.$$d[o] =
|
|
292
|
+
o in this.$$d || (this.$$d[o] = mt(o, i.value, this.$$p_d, "toProp"));
|
|
293
293
|
}
|
|
294
294
|
for (const i in this.$$p_d)
|
|
295
295
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -307,7 +307,7 @@ typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
|
|
|
307
307
|
this.$$r = !0;
|
|
308
308
|
for (const i in this.$$p_d)
|
|
309
309
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
310
|
-
const o =
|
|
310
|
+
const o = mt(
|
|
311
311
|
i,
|
|
312
312
|
this.$$d[i],
|
|
313
313
|
this.$$p_d,
|
|
@@ -329,7 +329,7 @@ typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
|
|
|
329
329
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
330
330
|
// and setting attributes through setAttribute etc, this is helpful
|
|
331
331
|
attributeChangedCallback(e, t, r) {
|
|
332
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
332
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = mt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
333
333
|
}
|
|
334
334
|
disconnectedCallback() {
|
|
335
335
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -342,7 +342,7 @@ typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
|
|
|
342
342
|
) || e;
|
|
343
343
|
}
|
|
344
344
|
});
|
|
345
|
-
function
|
|
345
|
+
function mt(e, t, r, n) {
|
|
346
346
|
const i = r[e]?.type;
|
|
347
347
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
348
348
|
return t;
|
|
@@ -388,7 +388,7 @@ function Zn(e, t, r, n, i, o) {
|
|
|
388
388
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
389
389
|
},
|
|
390
390
|
set(l) {
|
|
391
|
-
l =
|
|
391
|
+
l = mt(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
394
|
}), n.forEach((a) => {
|
|
@@ -419,7 +419,7 @@ class qn {
|
|
|
419
419
|
$$set = void 0;
|
|
420
420
|
/** @returns {void} */
|
|
421
421
|
$destroy() {
|
|
422
|
-
Xn(this, 1), this.$destroy =
|
|
422
|
+
Xn(this, 1), this.$destroy = ye;
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
425
425
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -429,7 +429,7 @@ class qn {
|
|
|
429
429
|
*/
|
|
430
430
|
$on(t, r) {
|
|
431
431
|
if (!ur(r))
|
|
432
|
-
return
|
|
432
|
+
return ye;
|
|
433
433
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
434
434
|
return n.push(r), () => {
|
|
435
435
|
const i = n.indexOf(r);
|
|
@@ -472,10 +472,10 @@ function Kn(e, t, r) {
|
|
|
472
472
|
const Ge = [];
|
|
473
473
|
function ei(e, t) {
|
|
474
474
|
return {
|
|
475
|
-
subscribe:
|
|
475
|
+
subscribe: wt(e, t).subscribe
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function wt(e, t = ye) {
|
|
479
479
|
let r;
|
|
480
480
|
const n = /* @__PURE__ */ new Set();
|
|
481
481
|
function i(a) {
|
|
@@ -493,9 +493,9 @@ function xt(e, t = pe) {
|
|
|
493
493
|
function o(a) {
|
|
494
494
|
i(a(e));
|
|
495
495
|
}
|
|
496
|
-
function s(a, l =
|
|
496
|
+
function s(a, l = ye) {
|
|
497
497
|
const u = [a, l];
|
|
498
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
498
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || ye), a(e), () => {
|
|
499
499
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
500
500
|
};
|
|
501
501
|
}
|
|
@@ -509,26 +509,26 @@ function Ze(e, t, r) {
|
|
|
509
509
|
return ei(r, (s, a) => {
|
|
510
510
|
let l = !1;
|
|
511
511
|
const u = [];
|
|
512
|
-
let f = 0,
|
|
513
|
-
const
|
|
512
|
+
let f = 0, b = ye;
|
|
513
|
+
const d = () => {
|
|
514
514
|
if (f)
|
|
515
515
|
return;
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
o ? s(
|
|
519
|
-
},
|
|
520
|
-
(
|
|
521
|
-
|
|
522
|
-
(
|
|
523
|
-
u[
|
|
516
|
+
b();
|
|
517
|
+
const x = t(n ? u[0] : u, s, a);
|
|
518
|
+
o ? s(x) : b = ur(x) ? x : ye;
|
|
519
|
+
}, _ = i.map(
|
|
520
|
+
(x, A) => zr(
|
|
521
|
+
x,
|
|
522
|
+
(Q) => {
|
|
523
|
+
u[A] = Q, f &= ~(1 << A), l && d();
|
|
524
524
|
},
|
|
525
525
|
() => {
|
|
526
|
-
f |= 1 <<
|
|
526
|
+
f |= 1 << A;
|
|
527
527
|
}
|
|
528
528
|
)
|
|
529
529
|
);
|
|
530
|
-
return l = !0,
|
|
531
|
-
We(
|
|
530
|
+
return l = !0, d(), function() {
|
|
531
|
+
We(_), b(), l = !1;
|
|
532
532
|
};
|
|
533
533
|
});
|
|
534
534
|
}
|
|
@@ -553,12 +553,12 @@ function ui(e) {
|
|
|
553
553
|
function li(e) {
|
|
554
554
|
return Array.isArray(e) ? [] : {};
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function at(e, t) {
|
|
557
557
|
return t.clone !== !1 && t.isMergeableObject(e) ? $e(li(e), e, t) : e;
|
|
558
558
|
}
|
|
559
559
|
function ci(e, t, r) {
|
|
560
560
|
return e.concat(t).map(function(n) {
|
|
561
|
-
return
|
|
561
|
+
return at(n, r);
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
564
|
function hi(e, t) {
|
|
@@ -588,15 +588,15 @@ function di(e, t) {
|
|
|
588
588
|
function pi(e, t, r) {
|
|
589
589
|
var n = {};
|
|
590
590
|
return r.isMergeableObject(e) && mr(e).forEach(function(i) {
|
|
591
|
-
n[i] =
|
|
591
|
+
n[i] = at(e[i], r);
|
|
592
592
|
}), mr(t).forEach(function(i) {
|
|
593
|
-
di(e, i) || (qr(e, i) && r.isMergeableObject(t[i]) ? n[i] = hi(i, r)(e[i], t[i], r) : n[i] =
|
|
593
|
+
di(e, i) || (qr(e, i) && r.isMergeableObject(t[i]) ? n[i] = hi(i, r)(e[i], t[i], r) : n[i] = at(t[i], r));
|
|
594
594
|
}), n;
|
|
595
595
|
}
|
|
596
596
|
function $e(e, t, r) {
|
|
597
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || ci, r.isMergeableObject = r.isMergeableObject || ni, r.cloneUnlessOtherwiseSpecified =
|
|
597
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ci, r.isMergeableObject = r.isMergeableObject || ni, r.cloneUnlessOtherwiseSpecified = at;
|
|
598
598
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
599
|
-
return o ? n ? r.arrayMerge(e, t, r) : pi(e, t, r) :
|
|
599
|
+
return o ? n ? r.arrayMerge(e, t, r) : pi(e, t, r) : at(t, r);
|
|
600
600
|
}
|
|
601
601
|
$e.all = function(t, r) {
|
|
602
602
|
if (!Array.isArray(t))
|
|
@@ -615,7 +615,7 @@ var zt = function(e, t) {
|
|
|
615
615
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
616
616
|
}, zt(e, t);
|
|
617
617
|
};
|
|
618
|
-
function
|
|
618
|
+
function St(e, t) {
|
|
619
619
|
if (typeof t != "function" && t !== null)
|
|
620
620
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
621
621
|
zt(e, t);
|
|
@@ -624,15 +624,15 @@ function wt(e, t) {
|
|
|
624
624
|
}
|
|
625
625
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
return
|
|
627
|
+
var Se = function() {
|
|
628
|
+
return Se = Object.assign || function(t) {
|
|
629
629
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
630
630
|
r = arguments[n];
|
|
631
631
|
for (var o in r)
|
|
632
632
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
633
633
|
}
|
|
634
634
|
return t;
|
|
635
|
-
},
|
|
635
|
+
}, Se.apply(this, arguments);
|
|
636
636
|
};
|
|
637
637
|
function yi(e, t) {
|
|
638
638
|
var r = {};
|
|
@@ -697,54 +697,54 @@ var wi = function() {
|
|
|
697
697
|
}
|
|
698
698
|
}, Ut = {
|
|
699
699
|
variadic: xi
|
|
700
|
-
},
|
|
701
|
-
return
|
|
700
|
+
}, _t = function() {
|
|
701
|
+
return _t = Object.assign || function(t) {
|
|
702
702
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
703
703
|
r = arguments[n];
|
|
704
704
|
for (var o in r)
|
|
705
705
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
706
706
|
}
|
|
707
707
|
return t;
|
|
708
|
-
},
|
|
708
|
+
}, _t.apply(this, arguments);
|
|
709
709
|
};
|
|
710
710
|
var O;
|
|
711
711
|
(function(e) {
|
|
712
712
|
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";
|
|
713
713
|
})(O || (O = {}));
|
|
714
|
-
var
|
|
714
|
+
var $;
|
|
715
715
|
(function(e) {
|
|
716
716
|
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";
|
|
717
|
-
})(
|
|
717
|
+
})($ || ($ = {}));
|
|
718
718
|
var Ve;
|
|
719
719
|
(function(e) {
|
|
720
720
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
721
721
|
})(Ve || (Ve = {}));
|
|
722
722
|
function br(e) {
|
|
723
|
-
return e.type ===
|
|
723
|
+
return e.type === $.literal;
|
|
724
724
|
}
|
|
725
725
|
function Ti(e) {
|
|
726
|
-
return e.type ===
|
|
726
|
+
return e.type === $.argument;
|
|
727
727
|
}
|
|
728
728
|
function Jr(e) {
|
|
729
|
-
return e.type ===
|
|
729
|
+
return e.type === $.number;
|
|
730
730
|
}
|
|
731
731
|
function Kr(e) {
|
|
732
|
-
return e.type ===
|
|
732
|
+
return e.type === $.date;
|
|
733
733
|
}
|
|
734
734
|
function en(e) {
|
|
735
|
-
return e.type ===
|
|
735
|
+
return e.type === $.time;
|
|
736
736
|
}
|
|
737
737
|
function tn(e) {
|
|
738
|
-
return e.type ===
|
|
738
|
+
return e.type === $.select;
|
|
739
739
|
}
|
|
740
740
|
function rn(e) {
|
|
741
|
-
return e.type ===
|
|
741
|
+
return e.type === $.plural;
|
|
742
742
|
}
|
|
743
743
|
function Ai(e) {
|
|
744
|
-
return e.type ===
|
|
744
|
+
return e.type === $.pound;
|
|
745
745
|
}
|
|
746
746
|
function nn(e) {
|
|
747
|
-
return e.type ===
|
|
747
|
+
return e.type === $.tag;
|
|
748
748
|
}
|
|
749
749
|
function on(e) {
|
|
750
750
|
return !!(e && typeof e == "object" && e.type === Ve.number);
|
|
@@ -858,25 +858,25 @@ var Oi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
|
858
858
|
function Li(e) {
|
|
859
859
|
if (e.length === 0)
|
|
860
860
|
throw new Error("Number skeleton cannot be empty");
|
|
861
|
-
for (var t = e.split(Oi).filter(function(
|
|
862
|
-
return
|
|
861
|
+
for (var t = e.split(Oi).filter(function(d) {
|
|
862
|
+
return d.length > 0;
|
|
863
863
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
864
864
|
var o = i[n], s = o.split("/");
|
|
865
865
|
if (s.length === 0)
|
|
866
866
|
throw new Error("Invalid number skeleton");
|
|
867
867
|
for (var a = s[0], l = s.slice(1), u = 0, f = l; u < f.length; u++) {
|
|
868
|
-
var
|
|
869
|
-
if (
|
|
868
|
+
var b = f[u];
|
|
869
|
+
if (b.length === 0)
|
|
870
870
|
throw new Error("Invalid number skeleton");
|
|
871
871
|
}
|
|
872
872
|
r.push({ stem: a, options: l });
|
|
873
873
|
}
|
|
874
874
|
return r;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function Ri(e) {
|
|
877
877
|
return e.replace(/^(.*?)-/, "");
|
|
878
878
|
}
|
|
879
|
-
var gr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, sn = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
879
|
+
var gr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, sn = /^(@+)?(\+|#+)?[rs]?$/g, Mi = /(\*)(0+)|(#+)(0+)|(0+)/g, un = /^(0+)$/;
|
|
880
880
|
function yr(e) {
|
|
881
881
|
var t = {};
|
|
882
882
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(sn, function(r, n, i) {
|
|
@@ -923,7 +923,7 @@ function ln(e) {
|
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function Pi(e) {
|
|
927
927
|
var t;
|
|
928
928
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
929
929
|
notation: "engineering"
|
|
@@ -965,7 +965,7 @@ function Ni(e) {
|
|
|
965
965
|
continue;
|
|
966
966
|
case "measure-unit":
|
|
967
967
|
case "unit":
|
|
968
|
-
t.style = "unit", t.unit =
|
|
968
|
+
t.style = "unit", t.unit = Ri(i.options[0]);
|
|
969
969
|
continue;
|
|
970
970
|
case "compact-short":
|
|
971
971
|
case "K":
|
|
@@ -1027,13 +1027,13 @@ function Ni(e) {
|
|
|
1027
1027
|
case "integer-width":
|
|
1028
1028
|
if (i.options.length > 1)
|
|
1029
1029
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1030
|
-
i.options[0].replace(
|
|
1030
|
+
i.options[0].replace(Mi, function(l, u, f, b, d, _) {
|
|
1031
1031
|
if (u)
|
|
1032
1032
|
t.minimumIntegerDigits = f.length;
|
|
1033
1033
|
else {
|
|
1034
|
-
if (
|
|
1034
|
+
if (b && d)
|
|
1035
1035
|
throw new Error("We currently do not support maximum integer digits");
|
|
1036
|
-
if (
|
|
1036
|
+
if (_)
|
|
1037
1037
|
throw new Error("We currently do not support exact integer digits");
|
|
1038
1038
|
}
|
|
1039
1039
|
return "";
|
|
@@ -1047,8 +1047,8 @@ function Ni(e) {
|
|
|
1047
1047
|
if (gr.test(i.stem)) {
|
|
1048
1048
|
if (i.options.length > 1)
|
|
1049
1049
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1050
|
-
i.stem.replace(gr, function(l, u, f,
|
|
1051
|
-
return f === "*" ? t.minimumFractionDigits = u.length :
|
|
1050
|
+
i.stem.replace(gr, function(l, u, f, b, d, _) {
|
|
1051
|
+
return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : d && _ ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1052
1052
|
});
|
|
1053
1053
|
var o = i.options[0];
|
|
1054
1054
|
o === "w" ? t = W(W({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = W(W({}, t), yr(o)));
|
|
@@ -1060,12 +1060,12 @@ function Ni(e) {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
var s = ln(i.stem);
|
|
1062
1062
|
s && (t = W(W({}, t), s));
|
|
1063
|
-
var a =
|
|
1063
|
+
var a = Pi(i.stem);
|
|
1064
1064
|
a && (t = W(W({}, t), a));
|
|
1065
1065
|
}
|
|
1066
1066
|
return t;
|
|
1067
1067
|
}
|
|
1068
|
-
var
|
|
1068
|
+
var dt = {
|
|
1069
1069
|
"001": [
|
|
1070
1070
|
"H",
|
|
1071
1071
|
"h"
|
|
@@ -2515,11 +2515,11 @@ function Di(e) {
|
|
|
2515
2515
|
}
|
|
2516
2516
|
var r = e.language, n;
|
|
2517
2517
|
r !== "root" && (n = e.maximize().region);
|
|
2518
|
-
var i =
|
|
2518
|
+
var i = dt[n || ""] || dt[r || ""] || dt["".concat(r, "-001")] || dt["001"];
|
|
2519
2519
|
return i[0];
|
|
2520
2520
|
}
|
|
2521
2521
|
var Ft, Ui = new RegExp("^".concat(an.source, "*")), Fi = new RegExp("".concat(an.source, "*$"));
|
|
2522
|
-
function
|
|
2522
|
+
function R(e, t) {
|
|
2523
2523
|
return { start: e, end: t };
|
|
2524
2524
|
}
|
|
2525
2525
|
var Gi = !!String.prototype.startsWith && "_a".startsWith("a", 1), ki = !!String.fromCodePoint, ji = !!Object.fromEntries, $i = !!String.prototype.codePointAt, Vi = !!String.prototype.trimStart, Xi = !!String.prototype.trimEnd, zi = !!Number.isSafeInteger, Wi = zi ? Number.isSafeInteger : function(e) {
|
|
@@ -2646,13 +2646,13 @@ var Qi = (
|
|
|
2646
2646
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2647
2647
|
var a = this.clonePosition();
|
|
2648
2648
|
this.bump(), i.push({
|
|
2649
|
-
type:
|
|
2650
|
-
location:
|
|
2649
|
+
type: $.pound,
|
|
2650
|
+
location: R(a, this.clonePosition())
|
|
2651
2651
|
});
|
|
2652
2652
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2653
2653
|
if (n)
|
|
2654
2654
|
break;
|
|
2655
|
-
return this.error(O.UNMATCHED_CLOSING_TAG,
|
|
2655
|
+
return this.error(O.UNMATCHED_CLOSING_TAG, R(this.clonePosition(), this.clonePosition()));
|
|
2656
2656
|
} else if (o === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
|
|
2657
2657
|
var s = this.parseTag(t, r);
|
|
2658
2658
|
if (s.err)
|
|
@@ -2674,9 +2674,9 @@ var Qi = (
|
|
|
2674
2674
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2675
2675
|
return {
|
|
2676
2676
|
val: {
|
|
2677
|
-
type:
|
|
2677
|
+
type: $.literal,
|
|
2678
2678
|
value: "<".concat(i, "/>"),
|
|
2679
|
-
location:
|
|
2679
|
+
location: R(n, this.clonePosition())
|
|
2680
2680
|
},
|
|
2681
2681
|
err: null
|
|
2682
2682
|
};
|
|
@@ -2687,21 +2687,21 @@ var Qi = (
|
|
|
2687
2687
|
var s = o.val, a = this.clonePosition();
|
|
2688
2688
|
if (this.bumpIf("</")) {
|
|
2689
2689
|
if (this.isEOF() || !Qt(this.char()))
|
|
2690
|
-
return this.error(O.INVALID_TAG,
|
|
2690
|
+
return this.error(O.INVALID_TAG, R(a, this.clonePosition()));
|
|
2691
2691
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2692
|
-
return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG,
|
|
2692
|
+
return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, R(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2693
2693
|
val: {
|
|
2694
|
-
type:
|
|
2694
|
+
type: $.tag,
|
|
2695
2695
|
value: i,
|
|
2696
2696
|
children: s,
|
|
2697
|
-
location:
|
|
2697
|
+
location: R(n, this.clonePosition())
|
|
2698
2698
|
},
|
|
2699
2699
|
err: null
|
|
2700
|
-
} : this.error(O.INVALID_TAG,
|
|
2700
|
+
} : this.error(O.INVALID_TAG, R(a, this.clonePosition())));
|
|
2701
2701
|
} else
|
|
2702
|
-
return this.error(O.UNCLOSED_TAG,
|
|
2702
|
+
return this.error(O.UNCLOSED_TAG, R(n, this.clonePosition()));
|
|
2703
2703
|
} else
|
|
2704
|
-
return this.error(O.INVALID_TAG,
|
|
2704
|
+
return this.error(O.INVALID_TAG, R(n, this.clonePosition()));
|
|
2705
2705
|
}, e.prototype.parseTagName = function() {
|
|
2706
2706
|
var t = this.offset();
|
|
2707
2707
|
for (this.bump(); !this.isEOF() && Ki(this.char()); )
|
|
@@ -2726,9 +2726,9 @@ var Qi = (
|
|
|
2726
2726
|
}
|
|
2727
2727
|
break;
|
|
2728
2728
|
}
|
|
2729
|
-
var l =
|
|
2729
|
+
var l = R(n, this.clonePosition());
|
|
2730
2730
|
return {
|
|
2731
|
-
val: { type:
|
|
2731
|
+
val: { type: $.literal, value: i, location: l },
|
|
2732
2732
|
err: null
|
|
2733
2733
|
};
|
|
2734
2734
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2776,40 +2776,40 @@ var Qi = (
|
|
|
2776
2776
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2777
2777
|
var n = this.clonePosition();
|
|
2778
2778
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2779
|
-
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2779
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, R(n, this.clonePosition()));
|
|
2780
2780
|
if (this.char() === 125)
|
|
2781
|
-
return this.bump(), this.error(O.EMPTY_ARGUMENT,
|
|
2781
|
+
return this.bump(), this.error(O.EMPTY_ARGUMENT, R(n, this.clonePosition()));
|
|
2782
2782
|
var i = this.parseIdentifierIfPossible().value;
|
|
2783
2783
|
if (!i)
|
|
2784
|
-
return this.error(O.MALFORMED_ARGUMENT,
|
|
2784
|
+
return this.error(O.MALFORMED_ARGUMENT, R(n, this.clonePosition()));
|
|
2785
2785
|
if (this.bumpSpace(), this.isEOF())
|
|
2786
|
-
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2786
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, R(n, this.clonePosition()));
|
|
2787
2787
|
switch (this.char()) {
|
|
2788
2788
|
case 125:
|
|
2789
2789
|
return this.bump(), {
|
|
2790
2790
|
val: {
|
|
2791
|
-
type:
|
|
2791
|
+
type: $.argument,
|
|
2792
2792
|
// value does not include the opening and closing braces.
|
|
2793
2793
|
value: i,
|
|
2794
|
-
location:
|
|
2794
|
+
location: R(n, this.clonePosition())
|
|
2795
2795
|
},
|
|
2796
2796
|
err: null
|
|
2797
2797
|
};
|
|
2798
2798
|
case 44:
|
|
2799
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2799
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, R(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2800
2800
|
default:
|
|
2801
|
-
return this.error(O.MALFORMED_ARGUMENT,
|
|
2801
|
+
return this.error(O.MALFORMED_ARGUMENT, R(n, this.clonePosition()));
|
|
2802
2802
|
}
|
|
2803
2803
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2804
2804
|
var t = this.clonePosition(), r = this.offset(), n = Yt(this.message, r), i = r + n.length;
|
|
2805
2805
|
this.bumpTo(i);
|
|
2806
|
-
var o = this.clonePosition(), s =
|
|
2806
|
+
var o = this.clonePosition(), s = R(t, o);
|
|
2807
2807
|
return { value: n, location: s };
|
|
2808
2808
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2809
2809
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2810
2810
|
switch (a) {
|
|
2811
2811
|
case "":
|
|
2812
|
-
return this.error(O.EXPECT_ARGUMENT_TYPE,
|
|
2812
|
+
return this.error(O.EXPECT_ARGUMENT_TYPE, R(s, l));
|
|
2813
2813
|
case "number":
|
|
2814
2814
|
case "date":
|
|
2815
2815
|
case "time": {
|
|
@@ -2817,49 +2817,49 @@ var Qi = (
|
|
|
2817
2817
|
var u = null;
|
|
2818
2818
|
if (this.bumpIf(",")) {
|
|
2819
2819
|
this.bumpSpace();
|
|
2820
|
-
var f = this.clonePosition(),
|
|
2821
|
-
if (
|
|
2822
|
-
return
|
|
2823
|
-
var
|
|
2824
|
-
if (
|
|
2825
|
-
return this.error(O.EXPECT_ARGUMENT_STYLE,
|
|
2826
|
-
var
|
|
2827
|
-
u = { style:
|
|
2820
|
+
var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
|
|
2821
|
+
if (b.err)
|
|
2822
|
+
return b;
|
|
2823
|
+
var d = Yi(b.val);
|
|
2824
|
+
if (d.length === 0)
|
|
2825
|
+
return this.error(O.EXPECT_ARGUMENT_STYLE, R(this.clonePosition(), this.clonePosition()));
|
|
2826
|
+
var _ = R(f, this.clonePosition());
|
|
2827
|
+
u = { style: d, styleLocation: _ };
|
|
2828
2828
|
}
|
|
2829
|
-
var
|
|
2830
|
-
if (
|
|
2831
|
-
return
|
|
2832
|
-
var
|
|
2829
|
+
var x = this.tryParseArgumentClose(i);
|
|
2830
|
+
if (x.err)
|
|
2831
|
+
return x;
|
|
2832
|
+
var A = R(i, this.clonePosition());
|
|
2833
2833
|
if (u && _r(u?.style, "::", 0)) {
|
|
2834
|
-
var
|
|
2834
|
+
var Q = qi(u.style.slice(2));
|
|
2835
2835
|
if (a === "number") {
|
|
2836
|
-
var
|
|
2837
|
-
return
|
|
2838
|
-
val: { type:
|
|
2836
|
+
var b = this.parseNumberSkeletonFromString(Q, u.styleLocation);
|
|
2837
|
+
return b.err ? b : {
|
|
2838
|
+
val: { type: $.number, value: n, location: A, style: b.val },
|
|
2839
2839
|
err: null
|
|
2840
2840
|
};
|
|
2841
2841
|
} else {
|
|
2842
|
-
if (
|
|
2843
|
-
return this.error(O.EXPECT_DATE_TIME_SKELETON,
|
|
2844
|
-
var
|
|
2845
|
-
this.locale && (
|
|
2846
|
-
var
|
|
2842
|
+
if (Q.length === 0)
|
|
2843
|
+
return this.error(O.EXPECT_DATE_TIME_SKELETON, A);
|
|
2844
|
+
var ne = Q;
|
|
2845
|
+
this.locale && (ne = Ii(Q, this.locale));
|
|
2846
|
+
var d = {
|
|
2847
2847
|
type: Ve.dateTime,
|
|
2848
|
-
pattern:
|
|
2848
|
+
pattern: ne,
|
|
2849
2849
|
location: u.styleLocation,
|
|
2850
|
-
parsedOptions: this.shouldParseSkeletons ? Hi(
|
|
2851
|
-
},
|
|
2850
|
+
parsedOptions: this.shouldParseSkeletons ? Hi(ne) : {}
|
|
2851
|
+
}, oe = a === "date" ? $.date : $.time;
|
|
2852
2852
|
return {
|
|
2853
|
-
val: { type:
|
|
2853
|
+
val: { type: oe, value: n, location: A, style: d },
|
|
2854
2854
|
err: null
|
|
2855
2855
|
};
|
|
2856
2856
|
}
|
|
2857
2857
|
}
|
|
2858
2858
|
return {
|
|
2859
2859
|
val: {
|
|
2860
|
-
type: a === "number" ?
|
|
2860
|
+
type: a === "number" ? $.number : a === "date" ? $.date : $.time,
|
|
2861
2861
|
value: n,
|
|
2862
|
-
location:
|
|
2862
|
+
location: A,
|
|
2863
2863
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2864
2864
|
},
|
|
2865
2865
|
err: null
|
|
@@ -2868,52 +2868,52 @@ var Qi = (
|
|
|
2868
2868
|
case "plural":
|
|
2869
2869
|
case "selectordinal":
|
|
2870
2870
|
case "select": {
|
|
2871
|
-
var
|
|
2871
|
+
var I = this.clonePosition();
|
|
2872
2872
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2873
|
-
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2873
|
+
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, R(I, _t({}, I)));
|
|
2874
2874
|
this.bumpSpace();
|
|
2875
|
-
var
|
|
2876
|
-
if (a !== "select" &&
|
|
2875
|
+
var j = this.parseIdentifierIfPossible(), Z = 0;
|
|
2876
|
+
if (a !== "select" && j.value === "offset") {
|
|
2877
2877
|
if (!this.bumpIf(":"))
|
|
2878
|
-
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2878
|
+
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R(this.clonePosition(), this.clonePosition()));
|
|
2879
2879
|
this.bumpSpace();
|
|
2880
|
-
var
|
|
2881
|
-
if (
|
|
2882
|
-
return
|
|
2883
|
-
this.bumpSpace(),
|
|
2880
|
+
var b = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2881
|
+
if (b.err)
|
|
2882
|
+
return b;
|
|
2883
|
+
this.bumpSpace(), j = this.parseIdentifierIfPossible(), Z = b.val;
|
|
2884
2884
|
}
|
|
2885
|
-
var
|
|
2886
|
-
if (
|
|
2887
|
-
return
|
|
2888
|
-
var
|
|
2889
|
-
if (
|
|
2890
|
-
return
|
|
2891
|
-
var
|
|
2885
|
+
var ie = this.tryParsePluralOrSelectOptions(t, a, r, j);
|
|
2886
|
+
if (ie.err)
|
|
2887
|
+
return ie;
|
|
2888
|
+
var x = this.tryParseArgumentClose(i);
|
|
2889
|
+
if (x.err)
|
|
2890
|
+
return x;
|
|
2891
|
+
var K = R(i, this.clonePosition());
|
|
2892
2892
|
return a === "select" ? {
|
|
2893
2893
|
val: {
|
|
2894
|
-
type:
|
|
2894
|
+
type: $.select,
|
|
2895
2895
|
value: n,
|
|
2896
|
-
options: Er(
|
|
2897
|
-
location:
|
|
2896
|
+
options: Er(ie.val),
|
|
2897
|
+
location: K
|
|
2898
2898
|
},
|
|
2899
2899
|
err: null
|
|
2900
2900
|
} : {
|
|
2901
2901
|
val: {
|
|
2902
|
-
type:
|
|
2902
|
+
type: $.plural,
|
|
2903
2903
|
value: n,
|
|
2904
|
-
options: Er(
|
|
2905
|
-
offset:
|
|
2904
|
+
options: Er(ie.val),
|
|
2905
|
+
offset: Z,
|
|
2906
2906
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2907
|
-
location:
|
|
2907
|
+
location: K
|
|
2908
2908
|
},
|
|
2909
2909
|
err: null
|
|
2910
2910
|
};
|
|
2911
2911
|
}
|
|
2912
2912
|
default:
|
|
2913
|
-
return this.error(O.INVALID_ARGUMENT_TYPE,
|
|
2913
|
+
return this.error(O.INVALID_ARGUMENT_TYPE, R(s, l));
|
|
2914
2914
|
}
|
|
2915
2915
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2916
|
-
return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2916
|
+
return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, R(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2917
2917
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2918
2918
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2919
2919
|
var n = this.char();
|
|
@@ -2922,7 +2922,7 @@ var Qi = (
|
|
|
2922
2922
|
this.bump();
|
|
2923
2923
|
var i = this.clonePosition();
|
|
2924
2924
|
if (!this.bumpUntil("'"))
|
|
2925
|
-
return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2925
|
+
return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, R(i, this.clonePosition()));
|
|
2926
2926
|
this.bump();
|
|
2927
2927
|
break;
|
|
2928
2928
|
}
|
|
@@ -2968,36 +2968,36 @@ var Qi = (
|
|
|
2968
2968
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2969
2969
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
|
|
2970
2970
|
if (u.length === 0) {
|
|
2971
|
-
var
|
|
2971
|
+
var b = this.clonePosition();
|
|
2972
2972
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2973
|
-
var
|
|
2974
|
-
if (
|
|
2975
|
-
return
|
|
2976
|
-
f =
|
|
2973
|
+
var d = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2974
|
+
if (d.err)
|
|
2975
|
+
return d;
|
|
2976
|
+
f = R(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
|
|
2977
2977
|
} else
|
|
2978
2978
|
break;
|
|
2979
2979
|
}
|
|
2980
2980
|
if (l.has(u))
|
|
2981
2981
|
return this.error(r === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
2982
2982
|
u === "other" && (s = !0), this.bumpSpace();
|
|
2983
|
-
var
|
|
2983
|
+
var _ = this.clonePosition();
|
|
2984
2984
|
if (!this.bumpIf("{"))
|
|
2985
|
-
return this.error(r === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2986
|
-
var
|
|
2987
|
-
if (
|
|
2988
|
-
return
|
|
2989
|
-
var
|
|
2990
|
-
if (
|
|
2991
|
-
return
|
|
2985
|
+
return this.error(r === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, R(this.clonePosition(), this.clonePosition()));
|
|
2986
|
+
var x = this.parseMessage(t + 1, r, n);
|
|
2987
|
+
if (x.err)
|
|
2988
|
+
return x;
|
|
2989
|
+
var A = this.tryParseArgumentClose(_);
|
|
2990
|
+
if (A.err)
|
|
2991
|
+
return A;
|
|
2992
2992
|
a.push([
|
|
2993
2993
|
u,
|
|
2994
2994
|
{
|
|
2995
|
-
value:
|
|
2996
|
-
location:
|
|
2995
|
+
value: x.val,
|
|
2996
|
+
location: R(_, this.clonePosition())
|
|
2997
2997
|
}
|
|
2998
2998
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
|
|
2999
2999
|
}
|
|
3000
|
-
return a.length === 0 ? this.error(r === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3000
|
+
return a.length === 0 ? this.error(r === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, R(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(O.MISSING_OTHER_CLAUSE, R(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3001
3001
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3002
3002
|
var n = 1, i = this.clonePosition();
|
|
3003
3003
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3008,7 +3008,7 @@ var Qi = (
|
|
|
3008
3008
|
else
|
|
3009
3009
|
break;
|
|
3010
3010
|
}
|
|
3011
|
-
var l =
|
|
3011
|
+
var l = R(i, this.clonePosition());
|
|
3012
3012
|
return o ? (s *= n, Wi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3013
3013
|
}, e.prototype.offset = function() {
|
|
3014
3014
|
return this.position.offset;
|
|
@@ -3100,7 +3100,7 @@ function Jt(e) {
|
|
|
3100
3100
|
});
|
|
3101
3101
|
}
|
|
3102
3102
|
function to(e, t) {
|
|
3103
|
-
t === void 0 && (t = {}), t =
|
|
3103
|
+
t === void 0 && (t = {}), t = _t({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3104
3104
|
var r = new Qi(e, t).parse();
|
|
3105
3105
|
if (r.err) {
|
|
3106
3106
|
var n = SyntaxError(O[r.err.kind]);
|
|
@@ -3112,10 +3112,10 @@ var Xe;
|
|
|
3112
3112
|
(function(e) {
|
|
3113
3113
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3114
3114
|
})(Xe || (Xe = {}));
|
|
3115
|
-
var
|
|
3115
|
+
var Bt = (
|
|
3116
3116
|
/** @class */
|
|
3117
3117
|
function(e) {
|
|
3118
|
-
|
|
3118
|
+
St(t, e);
|
|
3119
3119
|
function t(r, n, i) {
|
|
3120
3120
|
var o = e.call(this, r) || this;
|
|
3121
3121
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3127,48 +3127,48 @@ var St = (
|
|
|
3127
3127
|
), wr = (
|
|
3128
3128
|
/** @class */
|
|
3129
3129
|
function(e) {
|
|
3130
|
-
|
|
3130
|
+
St(t, e);
|
|
3131
3131
|
function t(r, n, i, o) {
|
|
3132
3132
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Xe.INVALID_VALUE, o) || this;
|
|
3133
3133
|
}
|
|
3134
3134
|
return t;
|
|
3135
|
-
}(
|
|
3135
|
+
}(Bt)
|
|
3136
3136
|
), ro = (
|
|
3137
3137
|
/** @class */
|
|
3138
3138
|
function(e) {
|
|
3139
|
-
|
|
3139
|
+
St(t, e);
|
|
3140
3140
|
function t(r, n, i) {
|
|
3141
3141
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Xe.INVALID_VALUE, i) || this;
|
|
3142
3142
|
}
|
|
3143
3143
|
return t;
|
|
3144
|
-
}(
|
|
3144
|
+
}(Bt)
|
|
3145
3145
|
), no = (
|
|
3146
3146
|
/** @class */
|
|
3147
3147
|
function(e) {
|
|
3148
|
-
|
|
3148
|
+
St(t, e);
|
|
3149
3149
|
function t(r, n) {
|
|
3150
3150
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Xe.MISSING_VALUE, n) || this;
|
|
3151
3151
|
}
|
|
3152
3152
|
return t;
|
|
3153
|
-
}(
|
|
3154
|
-
),
|
|
3153
|
+
}(Bt)
|
|
3154
|
+
), le;
|
|
3155
3155
|
(function(e) {
|
|
3156
3156
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3157
|
-
})(
|
|
3157
|
+
})(le || (le = {}));
|
|
3158
3158
|
function io(e) {
|
|
3159
3159
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3160
3160
|
var n = t[t.length - 1];
|
|
3161
|
-
return !n || n.type !==
|
|
3161
|
+
return !n || n.type !== le.literal || r.type !== le.literal ? t.push(r) : n.value += r.value, t;
|
|
3162
3162
|
}, []);
|
|
3163
3163
|
}
|
|
3164
3164
|
function oo(e) {
|
|
3165
3165
|
return typeof e == "function";
|
|
3166
3166
|
}
|
|
3167
|
-
function
|
|
3167
|
+
function bt(e, t, r, n, i, o, s) {
|
|
3168
3168
|
if (e.length === 1 && br(e[0]))
|
|
3169
3169
|
return [
|
|
3170
3170
|
{
|
|
3171
|
-
type:
|
|
3171
|
+
type: le.literal,
|
|
3172
3172
|
value: e[0].value
|
|
3173
3173
|
}
|
|
3174
3174
|
];
|
|
@@ -3176,101 +3176,101 @@ function mt(e, t, r, n, i, o, s) {
|
|
|
3176
3176
|
var f = u[l];
|
|
3177
3177
|
if (br(f)) {
|
|
3178
3178
|
a.push({
|
|
3179
|
-
type:
|
|
3179
|
+
type: le.literal,
|
|
3180
3180
|
value: f.value
|
|
3181
3181
|
});
|
|
3182
3182
|
continue;
|
|
3183
3183
|
}
|
|
3184
3184
|
if (Ai(f)) {
|
|
3185
3185
|
typeof o == "number" && a.push({
|
|
3186
|
-
type:
|
|
3186
|
+
type: le.literal,
|
|
3187
3187
|
value: r.getNumberFormat(t).format(o)
|
|
3188
3188
|
});
|
|
3189
3189
|
continue;
|
|
3190
3190
|
}
|
|
3191
|
-
var
|
|
3192
|
-
if (!(i &&
|
|
3193
|
-
throw new no(
|
|
3194
|
-
var
|
|
3191
|
+
var b = f.value;
|
|
3192
|
+
if (!(i && b in i))
|
|
3193
|
+
throw new no(b, s);
|
|
3194
|
+
var d = i[b];
|
|
3195
3195
|
if (Ti(f)) {
|
|
3196
|
-
(!
|
|
3197
|
-
type: typeof
|
|
3198
|
-
value:
|
|
3196
|
+
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3197
|
+
type: typeof d == "string" ? le.literal : le.object,
|
|
3198
|
+
value: d
|
|
3199
3199
|
});
|
|
3200
3200
|
continue;
|
|
3201
3201
|
}
|
|
3202
3202
|
if (Kr(f)) {
|
|
3203
|
-
var
|
|
3203
|
+
var _ = typeof f.style == "string" ? n.date[f.style] : Wt(f.style) ? f.style.parsedOptions : void 0;
|
|
3204
3204
|
a.push({
|
|
3205
|
-
type:
|
|
3206
|
-
value: r.getDateTimeFormat(t,
|
|
3205
|
+
type: le.literal,
|
|
3206
|
+
value: r.getDateTimeFormat(t, _).format(d)
|
|
3207
3207
|
});
|
|
3208
3208
|
continue;
|
|
3209
3209
|
}
|
|
3210
3210
|
if (en(f)) {
|
|
3211
|
-
var
|
|
3211
|
+
var _ = typeof f.style == "string" ? n.time[f.style] : Wt(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
3212
3212
|
a.push({
|
|
3213
|
-
type:
|
|
3214
|
-
value: r.getDateTimeFormat(t,
|
|
3213
|
+
type: le.literal,
|
|
3214
|
+
value: r.getDateTimeFormat(t, _).format(d)
|
|
3215
3215
|
});
|
|
3216
3216
|
continue;
|
|
3217
3217
|
}
|
|
3218
3218
|
if (Jr(f)) {
|
|
3219
|
-
var
|
|
3220
|
-
|
|
3221
|
-
type:
|
|
3222
|
-
value: r.getNumberFormat(t,
|
|
3219
|
+
var _ = typeof f.style == "string" ? n.number[f.style] : on(f.style) ? f.style.parsedOptions : void 0;
|
|
3220
|
+
_ && _.scale && (d = d * (_.scale || 1)), a.push({
|
|
3221
|
+
type: le.literal,
|
|
3222
|
+
value: r.getNumberFormat(t, _).format(d)
|
|
3223
3223
|
});
|
|
3224
3224
|
continue;
|
|
3225
3225
|
}
|
|
3226
3226
|
if (nn(f)) {
|
|
3227
|
-
var
|
|
3228
|
-
if (!oo(
|
|
3229
|
-
throw new ro(
|
|
3230
|
-
var
|
|
3231
|
-
return
|
|
3227
|
+
var x = f.children, A = f.value, Q = i[A];
|
|
3228
|
+
if (!oo(Q))
|
|
3229
|
+
throw new ro(A, "function", s);
|
|
3230
|
+
var ne = bt(x, t, r, n, i, o), oe = Q(ne.map(function(Z) {
|
|
3231
|
+
return Z.value;
|
|
3232
3232
|
}));
|
|
3233
|
-
Array.isArray(
|
|
3233
|
+
Array.isArray(oe) || (oe = [oe]), a.push.apply(a, oe.map(function(Z) {
|
|
3234
3234
|
return {
|
|
3235
|
-
type: typeof
|
|
3236
|
-
value:
|
|
3235
|
+
type: typeof Z == "string" ? le.literal : le.object,
|
|
3236
|
+
value: Z
|
|
3237
3237
|
};
|
|
3238
3238
|
}));
|
|
3239
3239
|
}
|
|
3240
3240
|
if (tn(f)) {
|
|
3241
|
-
var
|
|
3242
|
-
if (!
|
|
3243
|
-
throw new wr(f.value,
|
|
3244
|
-
a.push.apply(a,
|
|
3241
|
+
var I = f.options[d] || f.options.other;
|
|
3242
|
+
if (!I)
|
|
3243
|
+
throw new wr(f.value, d, Object.keys(f.options), s);
|
|
3244
|
+
a.push.apply(a, bt(I.value, t, r, n, i));
|
|
3245
3245
|
continue;
|
|
3246
3246
|
}
|
|
3247
3247
|
if (rn(f)) {
|
|
3248
|
-
var
|
|
3249
|
-
if (!
|
|
3248
|
+
var I = f.options["=".concat(d)];
|
|
3249
|
+
if (!I) {
|
|
3250
3250
|
if (!Intl.PluralRules)
|
|
3251
|
-
throw new
|
|
3251
|
+
throw new Bt(`Intl.PluralRules is not available in this environment.
|
|
3252
3252
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3253
3253
|
`, Xe.MISSING_INTL_API, s);
|
|
3254
|
-
var
|
|
3255
|
-
|
|
3254
|
+
var j = r.getPluralRules(t, { type: f.pluralType }).select(d - (f.offset || 0));
|
|
3255
|
+
I = f.options[j] || f.options.other;
|
|
3256
3256
|
}
|
|
3257
|
-
if (!
|
|
3258
|
-
throw new wr(f.value,
|
|
3259
|
-
a.push.apply(a,
|
|
3257
|
+
if (!I)
|
|
3258
|
+
throw new wr(f.value, d, Object.keys(f.options), s);
|
|
3259
|
+
a.push.apply(a, bt(I.value, t, r, n, i, d - (f.offset || 0)));
|
|
3260
3260
|
continue;
|
|
3261
3261
|
}
|
|
3262
3262
|
}
|
|
3263
3263
|
return io(a);
|
|
3264
3264
|
}
|
|
3265
3265
|
function ao(e, t) {
|
|
3266
|
-
return t ?
|
|
3267
|
-
return r[n] =
|
|
3266
|
+
return t ? Se(Se(Se({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3267
|
+
return r[n] = Se(Se({}, e[n]), t[n] || {}), r;
|
|
3268
3268
|
}, {})) : e;
|
|
3269
3269
|
}
|
|
3270
3270
|
function so(e, t) {
|
|
3271
3271
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3272
3272
|
return r[n] = ao(e[n], t[n]), r;
|
|
3273
|
-
},
|
|
3273
|
+
}, Se({}, e)) : e;
|
|
3274
3274
|
}
|
|
3275
3275
|
function Gt(e) {
|
|
3276
3276
|
return {
|
|
@@ -3332,12 +3332,12 @@ var lo = (
|
|
|
3332
3332
|
var u = o.formatToParts(l);
|
|
3333
3333
|
if (u.length === 1)
|
|
3334
3334
|
return u[0].value;
|
|
3335
|
-
var f = u.reduce(function(
|
|
3336
|
-
return !
|
|
3335
|
+
var f = u.reduce(function(b, d) {
|
|
3336
|
+
return !b.length || d.type !== le.literal || typeof b[b.length - 1] != "string" ? b.push(d.value) : b[b.length - 1] += d.value, b;
|
|
3337
3337
|
}, []);
|
|
3338
3338
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3339
3339
|
}, this.formatToParts = function(l) {
|
|
3340
|
-
return
|
|
3340
|
+
return bt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3341
3341
|
}, this.resolvedOptions = function() {
|
|
3342
3342
|
var l;
|
|
3343
3343
|
return {
|
|
@@ -3351,7 +3351,7 @@ var lo = (
|
|
|
3351
3351
|
var s = i || {};
|
|
3352
3352
|
s.formatters;
|
|
3353
3353
|
var a = yi(s, ["formatters"]);
|
|
3354
|
-
this.ast = e.__parse(t,
|
|
3354
|
+
this.ast = e.__parse(t, Se(Se({}, a), { locale: this.resolvedLocale }));
|
|
3355
3355
|
} else
|
|
3356
3356
|
this.ast = t;
|
|
3357
3357
|
if (!Array.isArray(this.ast))
|
|
@@ -3451,12 +3451,12 @@ function co(e, t) {
|
|
|
3451
3451
|
n = void 0;
|
|
3452
3452
|
return n;
|
|
3453
3453
|
}
|
|
3454
|
-
const
|
|
3454
|
+
const Re = {}, ho = (e, t, r) => r && (t in Re || (Re[t] = {}), e in Re[t] || (Re[t][e] = r), r), dn = (e, t) => {
|
|
3455
3455
|
if (t == null)
|
|
3456
3456
|
return;
|
|
3457
|
-
if (t in
|
|
3458
|
-
return
|
|
3459
|
-
const r =
|
|
3457
|
+
if (t in Re && e in Re[t])
|
|
3458
|
+
return Re[t][e];
|
|
3459
|
+
const r = Tt(t);
|
|
3460
3460
|
for (let n = 0; n < r.length; n++) {
|
|
3461
3461
|
const i = r[n], o = po(i, e);
|
|
3462
3462
|
if (o)
|
|
@@ -3464,7 +3464,7 @@ const Le = {}, ho = (e, t, r) => r && (t in Le || (Le[t] = {}), e in Le[t] || (L
|
|
|
3464
3464
|
}
|
|
3465
3465
|
};
|
|
3466
3466
|
let lr;
|
|
3467
|
-
const
|
|
3467
|
+
const ut = wt({});
|
|
3468
3468
|
function fo(e) {
|
|
3469
3469
|
return lr[e] || null;
|
|
3470
3470
|
}
|
|
@@ -3480,7 +3480,7 @@ function po(e, t) {
|
|
|
3480
3480
|
function mo(e) {
|
|
3481
3481
|
if (e == null)
|
|
3482
3482
|
return;
|
|
3483
|
-
const t =
|
|
3483
|
+
const t = Tt(e);
|
|
3484
3484
|
for (let r = 0; r < t.length; r++) {
|
|
3485
3485
|
const n = t[r];
|
|
3486
3486
|
if (pn(n))
|
|
@@ -3488,28 +3488,28 @@ function mo(e) {
|
|
|
3488
3488
|
}
|
|
3489
3489
|
}
|
|
3490
3490
|
function mn(e, ...t) {
|
|
3491
|
-
delete
|
|
3491
|
+
delete Re[e], ut.update((r) => (r[e] = gi.all([r[e] || {}, ...t]), r));
|
|
3492
3492
|
}
|
|
3493
3493
|
Ze(
|
|
3494
|
-
[
|
|
3494
|
+
[ut],
|
|
3495
3495
|
([e]) => Object.keys(e)
|
|
3496
3496
|
);
|
|
3497
|
-
|
|
3498
|
-
const
|
|
3497
|
+
ut.subscribe((e) => lr = e);
|
|
3498
|
+
const gt = {};
|
|
3499
3499
|
function bo(e, t) {
|
|
3500
|
-
|
|
3500
|
+
gt[e].delete(t), gt[e].size === 0 && delete gt[e];
|
|
3501
3501
|
}
|
|
3502
3502
|
function bn(e) {
|
|
3503
|
-
return
|
|
3503
|
+
return gt[e];
|
|
3504
3504
|
}
|
|
3505
3505
|
function go(e) {
|
|
3506
|
-
return
|
|
3506
|
+
return Tt(e).map((t) => {
|
|
3507
3507
|
const r = bn(t);
|
|
3508
3508
|
return [t, r ? [...r] : []];
|
|
3509
3509
|
}).filter(([, t]) => t.length > 0);
|
|
3510
3510
|
}
|
|
3511
3511
|
function Kt(e) {
|
|
3512
|
-
return e == null ? !1 :
|
|
3512
|
+
return e == null ? !1 : Tt(e).some(
|
|
3513
3513
|
(t) => {
|
|
3514
3514
|
var r;
|
|
3515
3515
|
return (r = bn(t)) == null ? void 0 : r.size;
|
|
@@ -3521,20 +3521,20 @@ function yo(e, t) {
|
|
|
3521
3521
|
t.map((n) => (bo(e, n), n().then((i) => i.default || i)))
|
|
3522
3522
|
).then((n) => mn(e, ...n));
|
|
3523
3523
|
}
|
|
3524
|
-
const
|
|
3524
|
+
const rt = {};
|
|
3525
3525
|
function gn(e) {
|
|
3526
3526
|
if (!Kt(e))
|
|
3527
|
-
return e in
|
|
3527
|
+
return e in rt ? rt[e] : Promise.resolve();
|
|
3528
3528
|
const t = go(e);
|
|
3529
|
-
return
|
|
3529
|
+
return rt[e] = Promise.all(
|
|
3530
3530
|
t.map(
|
|
3531
3531
|
([r, n]) => yo(r, n)
|
|
3532
3532
|
)
|
|
3533
3533
|
).then(() => {
|
|
3534
3534
|
if (Kt(e))
|
|
3535
3535
|
return gn(e);
|
|
3536
|
-
delete
|
|
3537
|
-
}),
|
|
3536
|
+
delete rt[e];
|
|
3537
|
+
}), rt[e];
|
|
3538
3538
|
}
|
|
3539
3539
|
const vo = {
|
|
3540
3540
|
number: {
|
|
@@ -3576,7 +3576,7 @@ const vo = {
|
|
|
3576
3576
|
function ze() {
|
|
3577
3577
|
return Eo;
|
|
3578
3578
|
}
|
|
3579
|
-
const kt =
|
|
3579
|
+
const kt = wt(!1);
|
|
3580
3580
|
var xo = Object.defineProperty, wo = Object.defineProperties, So = Object.getOwnPropertyDescriptors, Sr = Object.getOwnPropertySymbols, Bo = Object.prototype.hasOwnProperty, To = Object.prototype.propertyIsEnumerable, Br = (e, t, r) => t in e ? xo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ao = (e, t) => {
|
|
3581
3581
|
for (var r in t || (t = {}))
|
|
3582
3582
|
Bo.call(t, r) && Br(e, r, t[r]);
|
|
@@ -3586,111 +3586,111 @@ var xo = Object.defineProperty, wo = Object.defineProperties, So = Object.getOwn
|
|
|
3586
3586
|
return e;
|
|
3587
3587
|
}, Co = (e, t) => wo(e, So(t));
|
|
3588
3588
|
let er;
|
|
3589
|
-
const
|
|
3589
|
+
const Et = wt(null);
|
|
3590
3590
|
function Tr(e) {
|
|
3591
3591
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3592
3592
|
}
|
|
3593
|
-
function
|
|
3593
|
+
function Tt(e, t = ze().fallbackLocale) {
|
|
3594
3594
|
const r = Tr(e);
|
|
3595
3595
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Tr(t)])] : r;
|
|
3596
3596
|
}
|
|
3597
|
-
function
|
|
3597
|
+
function De() {
|
|
3598
3598
|
return er ?? void 0;
|
|
3599
3599
|
}
|
|
3600
|
-
|
|
3600
|
+
Et.subscribe((e) => {
|
|
3601
3601
|
er = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3602
3602
|
});
|
|
3603
3603
|
const Ho = (e) => {
|
|
3604
3604
|
if (e && mo(e) && Kt(e)) {
|
|
3605
3605
|
const { loadingDelay: t } = ze();
|
|
3606
3606
|
let r;
|
|
3607
|
-
return typeof window < "u" &&
|
|
3607
|
+
return typeof window < "u" && De() != null && t ? r = window.setTimeout(
|
|
3608
3608
|
() => kt.set(!0),
|
|
3609
3609
|
t
|
|
3610
3610
|
) : kt.set(!0), gn(e).then(() => {
|
|
3611
|
-
|
|
3611
|
+
Et.set(e);
|
|
3612
3612
|
}).finally(() => {
|
|
3613
3613
|
clearTimeout(r), kt.set(!1);
|
|
3614
3614
|
});
|
|
3615
3615
|
}
|
|
3616
|
-
return
|
|
3617
|
-
}, qe = Co(Ao({},
|
|
3616
|
+
return Et.set(e);
|
|
3617
|
+
}, qe = Co(Ao({}, Et), {
|
|
3618
3618
|
set: Ho
|
|
3619
|
-
}),
|
|
3619
|
+
}), At = (e) => {
|
|
3620
3620
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3621
3621
|
return (n) => {
|
|
3622
3622
|
const i = JSON.stringify(n);
|
|
3623
3623
|
return i in t ? t[i] : t[i] = e(n);
|
|
3624
3624
|
};
|
|
3625
3625
|
};
|
|
3626
|
-
var Oo = Object.defineProperty,
|
|
3626
|
+
var Oo = Object.defineProperty, xt = Object.getOwnPropertySymbols, yn = Object.prototype.hasOwnProperty, vn = Object.prototype.propertyIsEnumerable, Ar = (e, t, r) => t in e ? Oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, cr = (e, t) => {
|
|
3627
3627
|
for (var r in t || (t = {}))
|
|
3628
3628
|
yn.call(t, r) && Ar(e, r, t[r]);
|
|
3629
|
-
if (
|
|
3630
|
-
for (var r of
|
|
3629
|
+
if (xt)
|
|
3630
|
+
for (var r of xt(t))
|
|
3631
3631
|
vn.call(t, r) && Ar(e, r, t[r]);
|
|
3632
3632
|
return e;
|
|
3633
3633
|
}, Ye = (e, t) => {
|
|
3634
3634
|
var r = {};
|
|
3635
3635
|
for (var n in e)
|
|
3636
3636
|
yn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3637
|
-
if (e != null &&
|
|
3638
|
-
for (var n of
|
|
3637
|
+
if (e != null && xt)
|
|
3638
|
+
for (var n of xt(e))
|
|
3639
3639
|
t.indexOf(n) < 0 && vn.call(e, n) && (r[n] = e[n]);
|
|
3640
3640
|
return r;
|
|
3641
3641
|
};
|
|
3642
|
-
const
|
|
3642
|
+
const st = (e, t) => {
|
|
3643
3643
|
const { formats: r } = ze();
|
|
3644
3644
|
if (e in r && t in r[e])
|
|
3645
3645
|
return r[e][t];
|
|
3646
3646
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3647
|
-
}, Lo =
|
|
3647
|
+
}, Lo = At(
|
|
3648
3648
|
(e) => {
|
|
3649
3649
|
var t = e, { locale: r, format: n } = t, i = Ye(t, ["locale", "format"]);
|
|
3650
3650
|
if (r == null)
|
|
3651
3651
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3652
|
-
return n && (i =
|
|
3652
|
+
return n && (i = st("number", n)), new Intl.NumberFormat(r, i);
|
|
3653
3653
|
}
|
|
3654
|
-
),
|
|
3654
|
+
), Ro = At(
|
|
3655
3655
|
(e) => {
|
|
3656
3656
|
var t = e, { locale: r, format: n } = t, i = Ye(t, ["locale", "format"]);
|
|
3657
3657
|
if (r == null)
|
|
3658
3658
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3659
|
-
return n ? i =
|
|
3659
|
+
return n ? i = st("date", n) : Object.keys(i).length === 0 && (i = st("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3660
3660
|
}
|
|
3661
|
-
),
|
|
3661
|
+
), Mo = At(
|
|
3662
3662
|
(e) => {
|
|
3663
3663
|
var t = e, { locale: r, format: n } = t, i = Ye(t, ["locale", "format"]);
|
|
3664
3664
|
if (r == null)
|
|
3665
3665
|
throw new Error(
|
|
3666
3666
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3667
3667
|
);
|
|
3668
|
-
return n ? i =
|
|
3668
|
+
return n ? i = st("time", n) : Object.keys(i).length === 0 && (i = st("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3669
3669
|
}
|
|
3670
|
-
),
|
|
3670
|
+
), Po = (e = {}) => {
|
|
3671
3671
|
var t = e, {
|
|
3672
|
-
locale: r =
|
|
3672
|
+
locale: r = De()
|
|
3673
3673
|
} = t, n = Ye(t, [
|
|
3674
3674
|
"locale"
|
|
3675
3675
|
]);
|
|
3676
3676
|
return Lo(cr({ locale: r }, n));
|
|
3677
3677
|
}, No = (e = {}) => {
|
|
3678
3678
|
var t = e, {
|
|
3679
|
-
locale: r =
|
|
3679
|
+
locale: r = De()
|
|
3680
3680
|
} = t, n = Ye(t, [
|
|
3681
3681
|
"locale"
|
|
3682
3682
|
]);
|
|
3683
|
-
return
|
|
3683
|
+
return Ro(cr({ locale: r }, n));
|
|
3684
3684
|
}, Io = (e = {}) => {
|
|
3685
3685
|
var t = e, {
|
|
3686
|
-
locale: r =
|
|
3686
|
+
locale: r = De()
|
|
3687
3687
|
} = t, n = Ye(t, [
|
|
3688
3688
|
"locale"
|
|
3689
3689
|
]);
|
|
3690
|
-
return
|
|
3691
|
-
}, Do =
|
|
3690
|
+
return Mo(cr({ locale: r }, n));
|
|
3691
|
+
}, Do = At(
|
|
3692
3692
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3693
|
-
(e, t =
|
|
3693
|
+
(e, t = De()) => new lo(e, t, ze().formats, {
|
|
3694
3694
|
ignoreTag: ze().ignoreTag
|
|
3695
3695
|
})
|
|
3696
3696
|
), Uo = (e, t = {}) => {
|
|
@@ -3699,7 +3699,7 @@ const at = (e, t) => {
|
|
|
3699
3699
|
typeof e == "object" && (s = e, e = s.id);
|
|
3700
3700
|
const {
|
|
3701
3701
|
values: a,
|
|
3702
|
-
locale: l =
|
|
3702
|
+
locale: l = De(),
|
|
3703
3703
|
default: u
|
|
3704
3704
|
} = s;
|
|
3705
3705
|
if (l == null)
|
|
@@ -3715,21 +3715,21 @@ const at = (e, t) => {
|
|
|
3715
3715
|
), f;
|
|
3716
3716
|
if (!a)
|
|
3717
3717
|
return f;
|
|
3718
|
-
let
|
|
3718
|
+
let b = f;
|
|
3719
3719
|
try {
|
|
3720
|
-
|
|
3721
|
-
} catch (
|
|
3722
|
-
|
|
3720
|
+
b = Do(f, l).format(a);
|
|
3721
|
+
} catch (d) {
|
|
3722
|
+
d instanceof Error && console.warn(
|
|
3723
3723
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3724
|
-
|
|
3724
|
+
d.message
|
|
3725
3725
|
);
|
|
3726
3726
|
}
|
|
3727
|
-
return
|
|
3728
|
-
}, Fo = (e, t) => Io(t).format(e), Go = (e, t) => No(t).format(e), ko = (e, t) =>
|
|
3727
|
+
return b;
|
|
3728
|
+
}, Fo = (e, t) => Io(t).format(e), Go = (e, t) => No(t).format(e), ko = (e, t) => Po(t).format(e), jo = (e, t = De()) => dn(e, t), $o = Ze([qe, ut], () => Uo);
|
|
3729
3729
|
Ze([qe], () => Fo);
|
|
3730
3730
|
Ze([qe], () => Go);
|
|
3731
3731
|
Ze([qe], () => ko);
|
|
3732
|
-
Ze([qe,
|
|
3732
|
+
Ze([qe, ut], () => jo);
|
|
3733
3733
|
function Cr(e, t) {
|
|
3734
3734
|
mn(e, t);
|
|
3735
3735
|
}
|
|
@@ -3962,35 +3962,35 @@ var tr = { exports: {} };
|
|
|
3962
3962
|
*/
|
|
3963
3963
|
(function(e, t) {
|
|
3964
3964
|
(function(r) {
|
|
3965
|
-
var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, l = r.EventSource, u = r.document, f = r.Promise,
|
|
3966
|
-
if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(
|
|
3965
|
+
var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, l = r.EventSource, u = r.document, f = r.Promise, b = r.fetch, d = r.Response, _ = r.TextDecoder, x = r.TextEncoder, A = r.AbortController;
|
|
3966
|
+
if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(c) {
|
|
3967
3967
|
u.readyState = "complete";
|
|
3968
3968
|
}, !1)), o == null && a != null && (o = function() {
|
|
3969
3969
|
return new a("Microsoft.XMLHTTP");
|
|
3970
|
-
}), Object.create == null && (Object.create = function(
|
|
3971
|
-
function
|
|
3970
|
+
}), Object.create == null && (Object.create = function(c) {
|
|
3971
|
+
function g() {
|
|
3972
3972
|
}
|
|
3973
|
-
return
|
|
3973
|
+
return g.prototype = c, new g();
|
|
3974
3974
|
}), Date.now || (Date.now = function() {
|
|
3975
3975
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3976
|
-
}),
|
|
3977
|
-
var
|
|
3978
|
-
|
|
3979
|
-
var
|
|
3980
|
-
return
|
|
3981
|
-
var
|
|
3982
|
-
return
|
|
3983
|
-
status:
|
|
3984
|
-
statusText:
|
|
3985
|
-
headers:
|
|
3976
|
+
}), A == null) {
|
|
3977
|
+
var Q = b;
|
|
3978
|
+
b = function(c, g) {
|
|
3979
|
+
var E = g.signal;
|
|
3980
|
+
return Q(c, { headers: g.headers, credentials: g.credentials, cache: g.cache }).then(function(m) {
|
|
3981
|
+
var T = m.body.getReader();
|
|
3982
|
+
return E._reader = T, E._aborted && E._reader.cancel(), {
|
|
3983
|
+
status: m.status,
|
|
3984
|
+
statusText: m.statusText,
|
|
3985
|
+
headers: m.headers,
|
|
3986
3986
|
body: {
|
|
3987
3987
|
getReader: function() {
|
|
3988
|
-
return
|
|
3988
|
+
return T;
|
|
3989
3989
|
}
|
|
3990
3990
|
}
|
|
3991
3991
|
};
|
|
3992
3992
|
});
|
|
3993
|
-
},
|
|
3993
|
+
}, A = function() {
|
|
3994
3994
|
this.signal = {
|
|
3995
3995
|
_reader: null,
|
|
3996
3996
|
_aborted: !1
|
|
@@ -3999,403 +3999,403 @@ var tr = { exports: {} };
|
|
|
3999
3999
|
};
|
|
4000
4000
|
};
|
|
4001
4001
|
}
|
|
4002
|
-
function
|
|
4002
|
+
function ne() {
|
|
4003
4003
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
4004
4004
|
}
|
|
4005
|
-
|
|
4006
|
-
function
|
|
4007
|
-
if (
|
|
4008
|
-
return
|
|
4009
|
-
if (
|
|
4010
|
-
return
|
|
4011
|
-
if (
|
|
4012
|
-
return
|
|
4005
|
+
ne.prototype.decode = function(c) {
|
|
4006
|
+
function g(D, h, p) {
|
|
4007
|
+
if (p === 1)
|
|
4008
|
+
return D >= 128 >> h && D << h <= 2047;
|
|
4009
|
+
if (p === 2)
|
|
4010
|
+
return D >= 2048 >> h && D << h <= 55295 || D >= 57344 >> h && D << h <= 65535;
|
|
4011
|
+
if (p === 3)
|
|
4012
|
+
return D >= 65536 >> h && D << h <= 1114111;
|
|
4013
4013
|
throw new Error();
|
|
4014
4014
|
}
|
|
4015
|
-
function
|
|
4016
|
-
if (
|
|
4017
|
-
return
|
|
4018
|
-
if (
|
|
4019
|
-
return
|
|
4020
|
-
if (
|
|
4015
|
+
function E(D, h) {
|
|
4016
|
+
if (D === 6 * 1)
|
|
4017
|
+
return h >> 6 > 15 ? 3 : h > 31 ? 2 : 1;
|
|
4018
|
+
if (D === 6 * 2)
|
|
4019
|
+
return h > 15 ? 3 : 2;
|
|
4020
|
+
if (D === 6 * 3)
|
|
4021
4021
|
return 3;
|
|
4022
4022
|
throw new Error();
|
|
4023
4023
|
}
|
|
4024
|
-
for (var
|
|
4025
|
-
var
|
|
4026
|
-
|
|
4024
|
+
for (var m = 65533, T = "", w = this.bitsNeeded, C = this.codePoint, G = 0; G < c.length; G += 1) {
|
|
4025
|
+
var H = c[G];
|
|
4026
|
+
w !== 0 && (H < 128 || H > 191 || !g(C << 6 | H & 63, w - 6, E(w, C))) && (w = 0, C = m, T += String.fromCharCode(C)), w === 0 ? (H >= 0 && H <= 127 ? (w = 0, C = H) : H >= 192 && H <= 223 ? (w = 6 * 1, C = H & 31) : H >= 224 && H <= 239 ? (w = 6 * 2, C = H & 15) : H >= 240 && H <= 247 ? (w = 6 * 3, C = H & 7) : (w = 0, C = m), w !== 0 && !g(C, w, E(w, C)) && (w = 0, C = m)) : (w -= 6, C = C << 6 | H & 63), w === 0 && (C <= 65535 ? T += String.fromCharCode(C) : (T += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), T += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
|
|
4027
4027
|
}
|
|
4028
|
-
return this.bitsNeeded =
|
|
4028
|
+
return this.bitsNeeded = w, this.codePoint = C, T;
|
|
4029
4029
|
};
|
|
4030
|
-
var
|
|
4030
|
+
var oe = function() {
|
|
4031
4031
|
try {
|
|
4032
|
-
return new
|
|
4033
|
-
} catch (
|
|
4034
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
4032
|
+
return new _().decode(new x().encode("test"), { stream: !0 }) === "test";
|
|
4033
|
+
} catch (c) {
|
|
4034
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + c);
|
|
4035
4035
|
}
|
|
4036
4036
|
return !1;
|
|
4037
4037
|
};
|
|
4038
|
-
(
|
|
4039
|
-
var
|
|
4038
|
+
(_ == null || x == null || !oe()) && (_ = ne);
|
|
4039
|
+
var I = function() {
|
|
4040
4040
|
};
|
|
4041
|
-
function
|
|
4042
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
4041
|
+
function j(c) {
|
|
4042
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = I, this.onload = I, this.onerror = I, this.onreadystatechange = I, this._contentType = "", this._xhr = c, this._sendTimeout = 0, this._abort = I;
|
|
4043
4043
|
}
|
|
4044
|
-
|
|
4044
|
+
j.prototype.open = function(c, g) {
|
|
4045
4045
|
this._abort(!0);
|
|
4046
|
-
var
|
|
4047
|
-
this._abort = function(
|
|
4048
|
-
|
|
4046
|
+
var E = this, m = this._xhr, T = 1, w = 0;
|
|
4047
|
+
this._abort = function(p) {
|
|
4048
|
+
E._sendTimeout !== 0 && (i(E._sendTimeout), E._sendTimeout = 0), (T === 1 || T === 2 || T === 3) && (T = 4, m.onload = I, m.onerror = I, m.onabort = I, m.onprogress = I, m.onreadystatechange = I, m.abort(), w !== 0 && (i(w), w = 0), p || (E.readyState = 4, E.onabort(null), E.onreadystatechange())), T = 0;
|
|
4049
4049
|
};
|
|
4050
4050
|
var C = function() {
|
|
4051
|
-
if (
|
|
4052
|
-
var
|
|
4053
|
-
if ("contentType" in
|
|
4054
|
-
|
|
4051
|
+
if (T === 1) {
|
|
4052
|
+
var p = 0, y = "", S = void 0;
|
|
4053
|
+
if ("contentType" in m)
|
|
4054
|
+
p = 200, y = "OK", S = m.contentType;
|
|
4055
4055
|
else
|
|
4056
4056
|
try {
|
|
4057
|
-
|
|
4057
|
+
p = m.status, y = m.statusText, S = m.getResponseHeader("Content-Type");
|
|
4058
4058
|
} catch {
|
|
4059
|
-
|
|
4059
|
+
p = 0, y = "", S = void 0;
|
|
4060
4060
|
}
|
|
4061
|
-
|
|
4061
|
+
p !== 0 && (T = 2, E.readyState = 2, E.status = p, E.statusText = y, E._contentType = S, E.onreadystatechange());
|
|
4062
4062
|
}
|
|
4063
4063
|
}, G = function() {
|
|
4064
|
-
if (C(),
|
|
4065
|
-
|
|
4066
|
-
var
|
|
4064
|
+
if (C(), T === 2 || T === 3) {
|
|
4065
|
+
T = 3;
|
|
4066
|
+
var p = "";
|
|
4067
4067
|
try {
|
|
4068
|
-
|
|
4068
|
+
p = m.responseText;
|
|
4069
4069
|
} catch {
|
|
4070
4070
|
}
|
|
4071
|
-
|
|
4071
|
+
E.readyState = 3, E.responseText = p, E.onprogress();
|
|
4072
4072
|
}
|
|
4073
|
-
},
|
|
4074
|
-
if ((
|
|
4075
|
-
preventDefault:
|
|
4076
|
-
}), G(),
|
|
4077
|
-
if (
|
|
4078
|
-
|
|
4079
|
-
else if (
|
|
4080
|
-
|
|
4081
|
-
else if (
|
|
4082
|
-
|
|
4073
|
+
}, H = function(p, y) {
|
|
4074
|
+
if ((y == null || y.preventDefault == null) && (y = {
|
|
4075
|
+
preventDefault: I
|
|
4076
|
+
}), G(), T === 1 || T === 2 || T === 3) {
|
|
4077
|
+
if (T = 4, w !== 0 && (i(w), w = 0), E.readyState = 4, p === "load")
|
|
4078
|
+
E.onload(y);
|
|
4079
|
+
else if (p === "error")
|
|
4080
|
+
E.onerror(y);
|
|
4081
|
+
else if (p === "abort")
|
|
4082
|
+
E.onabort(y);
|
|
4083
4083
|
else
|
|
4084
4084
|
throw new TypeError();
|
|
4085
|
-
|
|
4085
|
+
E.onreadystatechange();
|
|
4086
4086
|
}
|
|
4087
|
-
},
|
|
4088
|
-
|
|
4089
|
-
},
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
}, 500),
|
|
4087
|
+
}, D = function(p) {
|
|
4088
|
+
m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && H(m.responseText === "" ? "error" : "load", p) : m.readyState === 3 ? "onprogress" in m || G() : m.readyState === 2 && C());
|
|
4089
|
+
}, h = function() {
|
|
4090
|
+
w = n(function() {
|
|
4091
|
+
h();
|
|
4092
|
+
}, 500), m.readyState === 3 && G();
|
|
4093
4093
|
};
|
|
4094
|
-
"onload" in
|
|
4095
|
-
|
|
4096
|
-
}), "onerror" in
|
|
4097
|
-
|
|
4098
|
-
}), "onabort" in
|
|
4099
|
-
|
|
4100
|
-
}), "onprogress" in
|
|
4101
|
-
|
|
4102
|
-
}), ("contentType" in
|
|
4103
|
-
|
|
4094
|
+
"onload" in m && (m.onload = function(p) {
|
|
4095
|
+
H("load", p);
|
|
4096
|
+
}), "onerror" in m && (m.onerror = function(p) {
|
|
4097
|
+
H("error", p);
|
|
4098
|
+
}), "onabort" in m && (m.onabort = function(p) {
|
|
4099
|
+
H("abort", p);
|
|
4100
|
+
}), "onprogress" in m && (m.onprogress = G), "onreadystatechange" in m && (m.onreadystatechange = function(p) {
|
|
4101
|
+
D(p);
|
|
4102
|
+
}), ("contentType" in m || !("ontimeout" in o.prototype)) && (g += (g.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(c, g, !0), "readyState" in m && (w = n(function() {
|
|
4103
|
+
h();
|
|
4104
4104
|
}, 0));
|
|
4105
|
-
},
|
|
4105
|
+
}, j.prototype.abort = function() {
|
|
4106
4106
|
this._abort(!1);
|
|
4107
|
-
},
|
|
4107
|
+
}, j.prototype.getResponseHeader = function(c) {
|
|
4108
4108
|
return this._contentType;
|
|
4109
|
-
},
|
|
4110
|
-
var
|
|
4111
|
-
"setRequestHeader" in
|
|
4112
|
-
},
|
|
4109
|
+
}, j.prototype.setRequestHeader = function(c, g) {
|
|
4110
|
+
var E = this._xhr;
|
|
4111
|
+
"setRequestHeader" in E && E.setRequestHeader(c, g);
|
|
4112
|
+
}, j.prototype.getAllResponseHeaders = function() {
|
|
4113
4113
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4114
|
-
},
|
|
4114
|
+
}, j.prototype.send = function() {
|
|
4115
4115
|
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4116
|
-
var
|
|
4117
|
-
|
|
4118
|
-
|
|
4116
|
+
var c = this;
|
|
4117
|
+
c._sendTimeout = n(function() {
|
|
4118
|
+
c._sendTimeout = 0, c.send();
|
|
4119
4119
|
}, 4);
|
|
4120
4120
|
return;
|
|
4121
4121
|
}
|
|
4122
|
-
var
|
|
4123
|
-
"withCredentials" in
|
|
4122
|
+
var g = this._xhr;
|
|
4123
|
+
"withCredentials" in g && (g.withCredentials = this.withCredentials);
|
|
4124
4124
|
try {
|
|
4125
|
-
|
|
4126
|
-
} catch (
|
|
4127
|
-
throw
|
|
4125
|
+
g.send(void 0);
|
|
4126
|
+
} catch (E) {
|
|
4127
|
+
throw E;
|
|
4128
4128
|
}
|
|
4129
4129
|
};
|
|
4130
|
-
function
|
|
4131
|
-
return
|
|
4132
|
-
return String.fromCharCode(
|
|
4130
|
+
function Z(c) {
|
|
4131
|
+
return c.replace(/[A-Z]/g, function(g) {
|
|
4132
|
+
return String.fromCharCode(g.charCodeAt(0) + 32);
|
|
4133
4133
|
});
|
|
4134
4134
|
}
|
|
4135
|
-
function
|
|
4136
|
-
for (var
|
|
4137
|
-
`),
|
|
4138
|
-
var
|
|
4139
|
-
|
|
4135
|
+
function ie(c) {
|
|
4136
|
+
for (var g = /* @__PURE__ */ Object.create(null), E = c.split(`\r
|
|
4137
|
+
`), m = 0; m < E.length; m += 1) {
|
|
4138
|
+
var T = E[m], w = T.split(": "), C = w.shift(), G = w.join(": ");
|
|
4139
|
+
g[Z(C)] = G;
|
|
4140
4140
|
}
|
|
4141
|
-
this._map =
|
|
4141
|
+
this._map = g;
|
|
4142
4142
|
}
|
|
4143
|
-
|
|
4144
|
-
return this._map[
|
|
4143
|
+
ie.prototype.get = function(c) {
|
|
4144
|
+
return this._map[Z(c)];
|
|
4145
4145
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4146
|
-
function
|
|
4146
|
+
function K() {
|
|
4147
4147
|
}
|
|
4148
|
-
|
|
4149
|
-
|
|
4148
|
+
K.prototype.open = function(c, g, E, m, T, w, C) {
|
|
4149
|
+
c.open("GET", T);
|
|
4150
4150
|
var G = 0;
|
|
4151
|
-
|
|
4152
|
-
var
|
|
4153
|
-
G +=
|
|
4154
|
-
},
|
|
4155
|
-
|
|
4156
|
-
},
|
|
4157
|
-
|
|
4158
|
-
},
|
|
4159
|
-
|
|
4160
|
-
},
|
|
4161
|
-
if (
|
|
4162
|
-
var
|
|
4163
|
-
|
|
4151
|
+
c.onprogress = function() {
|
|
4152
|
+
var D = c.responseText, h = D.slice(G);
|
|
4153
|
+
G += h.length, E(h);
|
|
4154
|
+
}, c.onerror = function(D) {
|
|
4155
|
+
D.preventDefault(), m(new Error("NetworkError"));
|
|
4156
|
+
}, c.onload = function() {
|
|
4157
|
+
m(null);
|
|
4158
|
+
}, c.onabort = function() {
|
|
4159
|
+
m(null);
|
|
4160
|
+
}, c.onreadystatechange = function() {
|
|
4161
|
+
if (c.readyState === o.HEADERS_RECEIVED) {
|
|
4162
|
+
var D = c.status, h = c.statusText, p = c.getResponseHeader("Content-Type"), y = c.getAllResponseHeaders();
|
|
4163
|
+
g(D, h, p, new ie(y));
|
|
4164
4164
|
}
|
|
4165
|
-
},
|
|
4166
|
-
for (var
|
|
4167
|
-
Object.prototype.hasOwnProperty.call(C,
|
|
4168
|
-
return
|
|
4165
|
+
}, c.withCredentials = w;
|
|
4166
|
+
for (var H in C)
|
|
4167
|
+
Object.prototype.hasOwnProperty.call(C, H) && c.setRequestHeader(H, C[H]);
|
|
4168
|
+
return c.send(), c;
|
|
4169
4169
|
};
|
|
4170
|
-
function
|
|
4171
|
-
this._headers =
|
|
4170
|
+
function te(c) {
|
|
4171
|
+
this._headers = c;
|
|
4172
4172
|
}
|
|
4173
|
-
|
|
4174
|
-
return this._headers.get(
|
|
4173
|
+
te.prototype.get = function(c) {
|
|
4174
|
+
return this._headers.get(c);
|
|
4175
4175
|
};
|
|
4176
|
-
function
|
|
4176
|
+
function X() {
|
|
4177
4177
|
}
|
|
4178
|
-
|
|
4179
|
-
var G = null,
|
|
4180
|
-
return
|
|
4178
|
+
X.prototype.open = function(c, g, E, m, T, w, C) {
|
|
4179
|
+
var G = null, H = new A(), D = H.signal, h = new _();
|
|
4180
|
+
return b(T, {
|
|
4181
4181
|
headers: C,
|
|
4182
|
-
credentials:
|
|
4183
|
-
signal:
|
|
4182
|
+
credentials: w ? "include" : "same-origin",
|
|
4183
|
+
signal: D,
|
|
4184
4184
|
cache: "no-store"
|
|
4185
|
-
}).then(function(
|
|
4186
|
-
return G =
|
|
4187
|
-
var
|
|
4188
|
-
G.read().then(function(
|
|
4189
|
-
if (
|
|
4190
|
-
|
|
4185
|
+
}).then(function(p) {
|
|
4186
|
+
return G = p.body.getReader(), g(p.status, p.statusText, p.headers.get("Content-Type"), new te(p.headers)), new f(function(y, S) {
|
|
4187
|
+
var U = function() {
|
|
4188
|
+
G.read().then(function(N) {
|
|
4189
|
+
if (N.done)
|
|
4190
|
+
y(void 0);
|
|
4191
4191
|
else {
|
|
4192
|
-
var
|
|
4193
|
-
|
|
4192
|
+
var B = h.decode(N.value, { stream: !0 });
|
|
4193
|
+
E(B), U();
|
|
4194
4194
|
}
|
|
4195
|
-
}).catch(function(
|
|
4196
|
-
|
|
4195
|
+
}).catch(function(N) {
|
|
4196
|
+
S(N);
|
|
4197
4197
|
});
|
|
4198
4198
|
};
|
|
4199
|
-
|
|
4199
|
+
U();
|
|
4200
4200
|
});
|
|
4201
|
-
}).catch(function(
|
|
4202
|
-
if (
|
|
4203
|
-
return
|
|
4204
|
-
}).then(function(
|
|
4205
|
-
|
|
4201
|
+
}).catch(function(p) {
|
|
4202
|
+
if (p.name !== "AbortError")
|
|
4203
|
+
return p;
|
|
4204
|
+
}).then(function(p) {
|
|
4205
|
+
m(p);
|
|
4206
4206
|
}), {
|
|
4207
4207
|
abort: function() {
|
|
4208
|
-
G?.cancel(),
|
|
4208
|
+
G?.cancel(), H.abort();
|
|
4209
4209
|
}
|
|
4210
4210
|
};
|
|
4211
4211
|
};
|
|
4212
|
-
function
|
|
4212
|
+
function F() {
|
|
4213
4213
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4214
4214
|
}
|
|
4215
|
-
function
|
|
4215
|
+
function P(c) {
|
|
4216
4216
|
n(function() {
|
|
4217
|
-
throw
|
|
4217
|
+
throw c;
|
|
4218
4218
|
}, 0);
|
|
4219
4219
|
}
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
var
|
|
4223
|
-
if (
|
|
4224
|
-
for (var
|
|
4225
|
-
var
|
|
4220
|
+
F.prototype.dispatchEvent = function(c) {
|
|
4221
|
+
c.target = this;
|
|
4222
|
+
var g = this._listeners[c.type];
|
|
4223
|
+
if (g != null)
|
|
4224
|
+
for (var E = g.length, m = 0; m < E; m += 1) {
|
|
4225
|
+
var T = g[m];
|
|
4226
4226
|
try {
|
|
4227
|
-
typeof
|
|
4228
|
-
} catch (
|
|
4229
|
-
|
|
4227
|
+
typeof T.handleEvent == "function" ? T.handleEvent(c) : T.call(this, c);
|
|
4228
|
+
} catch (w) {
|
|
4229
|
+
P(w);
|
|
4230
4230
|
}
|
|
4231
4231
|
}
|
|
4232
|
-
},
|
|
4233
|
-
|
|
4234
|
-
var
|
|
4235
|
-
|
|
4236
|
-
for (var
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
},
|
|
4240
|
-
|
|
4241
|
-
var
|
|
4242
|
-
if (
|
|
4243
|
-
for (var
|
|
4244
|
-
|
|
4245
|
-
|
|
4232
|
+
}, F.prototype.addEventListener = function(c, g) {
|
|
4233
|
+
c = String(c);
|
|
4234
|
+
var E = this._listeners, m = E[c];
|
|
4235
|
+
m == null && (m = [], E[c] = m);
|
|
4236
|
+
for (var T = !1, w = 0; w < m.length; w += 1)
|
|
4237
|
+
m[w] === g && (T = !0);
|
|
4238
|
+
T || m.push(g);
|
|
4239
|
+
}, F.prototype.removeEventListener = function(c, g) {
|
|
4240
|
+
c = String(c);
|
|
4241
|
+
var E = this._listeners, m = E[c];
|
|
4242
|
+
if (m != null) {
|
|
4243
|
+
for (var T = [], w = 0; w < m.length; w += 1)
|
|
4244
|
+
m[w] !== g && T.push(m[w]);
|
|
4245
|
+
T.length === 0 ? delete E[c] : E[c] = T;
|
|
4246
4246
|
}
|
|
4247
4247
|
};
|
|
4248
|
-
function
|
|
4249
|
-
this.type =
|
|
4248
|
+
function q(c) {
|
|
4249
|
+
this.type = c, this.target = void 0;
|
|
4250
4250
|
}
|
|
4251
|
-
function
|
|
4252
|
-
|
|
4251
|
+
function z(c, g) {
|
|
4252
|
+
q.call(this, c), this.data = g.data, this.lastEventId = g.lastEventId;
|
|
4253
4253
|
}
|
|
4254
|
-
|
|
4255
|
-
function
|
|
4256
|
-
|
|
4254
|
+
z.prototype = Object.create(q.prototype);
|
|
4255
|
+
function fe(c, g) {
|
|
4256
|
+
q.call(this, c), this.status = g.status, this.statusText = g.statusText, this.headers = g.headers;
|
|
4257
4257
|
}
|
|
4258
|
-
|
|
4259
|
-
function
|
|
4260
|
-
|
|
4258
|
+
fe.prototype = Object.create(q.prototype);
|
|
4259
|
+
function Te(c, g) {
|
|
4260
|
+
q.call(this, c), this.error = g.error;
|
|
4261
4261
|
}
|
|
4262
|
-
|
|
4263
|
-
var
|
|
4264
|
-
var
|
|
4265
|
-
return
|
|
4266
|
-
},
|
|
4267
|
-
return Math.min(Math.max(
|
|
4268
|
-
},
|
|
4262
|
+
Te.prototype = Object.create(q.prototype);
|
|
4263
|
+
var be = -1, ce = 0, v = 1, _e = 2, Qe = -1, ae = 0, Me = 1, ct = 2, Ht = 3, Ot = /^text\/event\-stream(;.*)?$/i, Je = 1e3, ht = 18e6, Ke = function(c, g) {
|
|
4264
|
+
var E = c == null ? g : parseInt(c, 10);
|
|
4265
|
+
return E !== E && (E = g), Pe(E);
|
|
4266
|
+
}, Pe = function(c) {
|
|
4267
|
+
return Math.min(Math.max(c, Je), ht);
|
|
4268
|
+
}, Ae = function(c, g, E) {
|
|
4269
4269
|
try {
|
|
4270
|
-
typeof
|
|
4271
|
-
} catch (
|
|
4272
|
-
|
|
4270
|
+
typeof g == "function" && g.call(c, E);
|
|
4271
|
+
} catch (m) {
|
|
4272
|
+
P(m);
|
|
4273
4273
|
}
|
|
4274
4274
|
};
|
|
4275
|
-
function
|
|
4276
|
-
|
|
4275
|
+
function de(c, g) {
|
|
4276
|
+
F.call(this), g = g || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Rt(this, c, g);
|
|
4277
4277
|
}
|
|
4278
|
-
function
|
|
4278
|
+
function et() {
|
|
4279
4279
|
return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
|
|
4280
4280
|
}
|
|
4281
|
-
var Lt =
|
|
4282
|
-
function
|
|
4283
|
-
|
|
4284
|
-
var
|
|
4285
|
-
if (
|
|
4286
|
-
if (
|
|
4287
|
-
|
|
4288
|
-
var
|
|
4289
|
-
status:
|
|
4281
|
+
var Lt = b != null && d != null && "body" in d.prototype;
|
|
4282
|
+
function Rt(c, g, E) {
|
|
4283
|
+
g = String(g);
|
|
4284
|
+
var m = !!E.withCredentials, T = E.lastEventIdQueryParameterName || "lastEventId", w = Pe(1e3), C = Ke(E.heartbeatTimeout, 45e3), G = "", H = w, D = !1, h = 0, p = E.headers || {}, y = E.Transport, S = Lt && y == null ? void 0 : new j(y != null ? new y() : et()), U = y != null && typeof y != "string" ? new y() : S == null ? new X() : new K(), N = void 0, B = 0, k = be, he = "", xe = "", ge = "", we = "", se = ae, Mt = 0, Ne = 0, Tn = function(ee, J, pe, me) {
|
|
4285
|
+
if (k === ce)
|
|
4286
|
+
if (ee === 200 && pe != null && Ot.test(pe)) {
|
|
4287
|
+
k = v, D = Date.now(), H = w, c.readyState = v;
|
|
4288
|
+
var ue = new fe("open", {
|
|
4289
|
+
status: ee,
|
|
4290
4290
|
statusText: J,
|
|
4291
|
-
headers:
|
|
4291
|
+
headers: me
|
|
4292
4292
|
});
|
|
4293
|
-
|
|
4293
|
+
c.dispatchEvent(ue), Ae(c, c.onopen, ue);
|
|
4294
4294
|
} else {
|
|
4295
|
-
var
|
|
4296
|
-
|
|
4297
|
-
var
|
|
4298
|
-
status:
|
|
4295
|
+
var re = "";
|
|
4296
|
+
ee !== 200 ? (J && (J = J.replace(/\s+/g, " ")), re = "EventSource's response has a status " + ee + " " + J + " that is not 200. Aborting the connection.") : re = "EventSource's response has a Content-Type specifying an unsupported type: " + (pe == null ? "-" : pe.replace(/\s+/g, " ")) + ". Aborting the connection.", Pt();
|
|
4297
|
+
var ue = new fe("error", {
|
|
4298
|
+
status: ee,
|
|
4299
4299
|
statusText: J,
|
|
4300
|
-
headers:
|
|
4300
|
+
headers: me
|
|
4301
4301
|
});
|
|
4302
|
-
|
|
4302
|
+
c.dispatchEvent(ue), Ae(c, c.onerror, ue), console.error(re);
|
|
4303
4303
|
}
|
|
4304
|
-
}, An = function(
|
|
4305
|
-
if (
|
|
4306
|
-
for (var J = -1,
|
|
4307
|
-
var
|
|
4308
|
-
(
|
|
4304
|
+
}, An = function(ee) {
|
|
4305
|
+
if (k === v) {
|
|
4306
|
+
for (var J = -1, pe = 0; pe < ee.length; pe += 1) {
|
|
4307
|
+
var me = ee.charCodeAt(pe);
|
|
4308
|
+
(me === 10 || me === 13) && (J = pe);
|
|
4309
4309
|
}
|
|
4310
|
-
var
|
|
4311
|
-
|
|
4312
|
-
for (var
|
|
4313
|
-
var
|
|
4314
|
-
if (
|
|
4315
|
-
|
|
4316
|
-
else if (
|
|
4317
|
-
if (
|
|
4318
|
-
|
|
4319
|
-
var
|
|
4320
|
-
|
|
4321
|
-
`,
|
|
4322
|
-
|
|
4310
|
+
var ue = (J !== -1 ? we : "") + ee.slice(0, J + 1);
|
|
4311
|
+
we = (J === -1 ? we : "") + ee.slice(J + 1), ee !== "" && (D = Date.now(), h += ee.length);
|
|
4312
|
+
for (var re = 0; re < ue.length; re += 1) {
|
|
4313
|
+
var me = ue.charCodeAt(re);
|
|
4314
|
+
if (se === Qe && me === 10)
|
|
4315
|
+
se = ae;
|
|
4316
|
+
else if (se === Qe && (se = ae), me === 13 || me === 10) {
|
|
4317
|
+
if (se !== ae) {
|
|
4318
|
+
se === Me && (Ne = re + 1);
|
|
4319
|
+
var Ce = ue.slice(Mt, Ne - 1), He = ue.slice(Ne + (Ne < re && ue.charCodeAt(Ne) === 32 ? 1 : 0), re);
|
|
4320
|
+
Ce === "data" ? (he += `
|
|
4321
|
+
`, he += He) : Ce === "id" ? xe = He : Ce === "event" ? ge = He : Ce === "retry" ? (w = Ke(He, w), H = w) : Ce === "heartbeatTimeout" && (C = Ke(He, C), B !== 0 && (i(B), B = n(function() {
|
|
4322
|
+
tt();
|
|
4323
4323
|
}, C)));
|
|
4324
4324
|
}
|
|
4325
|
-
if (
|
|
4326
|
-
if (
|
|
4327
|
-
G =
|
|
4328
|
-
var Ue = new
|
|
4329
|
-
data:
|
|
4330
|
-
lastEventId:
|
|
4325
|
+
if (se === ae) {
|
|
4326
|
+
if (he !== "") {
|
|
4327
|
+
G = xe, ge === "" && (ge = "message");
|
|
4328
|
+
var Ue = new z(ge, {
|
|
4329
|
+
data: he.slice(1),
|
|
4330
|
+
lastEventId: xe
|
|
4331
4331
|
});
|
|
4332
|
-
if (
|
|
4332
|
+
if (c.dispatchEvent(Ue), ge === "open" ? Ae(c, c.onopen, Ue) : ge === "message" ? Ae(c, c.onmessage, Ue) : ge === "error" && Ae(c, c.onerror, Ue), k === _e)
|
|
4333
4333
|
return;
|
|
4334
4334
|
}
|
|
4335
|
-
|
|
4335
|
+
he = "", ge = "";
|
|
4336
4336
|
}
|
|
4337
|
-
|
|
4337
|
+
se = me === 13 ? Qe : ae;
|
|
4338
4338
|
} else
|
|
4339
|
-
|
|
4339
|
+
se === ae && (Mt = re, se = Me), se === Me ? me === 58 && (Ne = re + 1, se = ct) : se === ct && (se = Ht);
|
|
4340
4340
|
}
|
|
4341
4341
|
}
|
|
4342
|
-
}, hr = function(
|
|
4343
|
-
if (
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
},
|
|
4347
|
-
var J = new
|
|
4348
|
-
|
|
4342
|
+
}, hr = function(ee) {
|
|
4343
|
+
if (k === v || k === ce) {
|
|
4344
|
+
k = be, B !== 0 && (i(B), B = 0), B = n(function() {
|
|
4345
|
+
tt();
|
|
4346
|
+
}, H), H = Pe(Math.min(w * 16, H * 2)), c.readyState = ce;
|
|
4347
|
+
var J = new Te("error", { error: ee });
|
|
4348
|
+
c.dispatchEvent(J), Ae(c, c.onerror, J), ee != null && console.error(ee);
|
|
4349
4349
|
}
|
|
4350
|
-
},
|
|
4351
|
-
|
|
4352
|
-
},
|
|
4353
|
-
if (
|
|
4354
|
-
if (!
|
|
4355
|
-
hr(new Error("No activity within " + C + " milliseconds. " + (
|
|
4350
|
+
}, Pt = function() {
|
|
4351
|
+
k = _e, N != null && (N.abort(), N = void 0), B !== 0 && (i(B), B = 0), c.readyState = _e;
|
|
4352
|
+
}, tt = function() {
|
|
4353
|
+
if (B = 0, k !== be) {
|
|
4354
|
+
if (!D && N != null)
|
|
4355
|
+
hr(new Error("No activity within " + C + " milliseconds. " + (k === ce ? "No response received." : h + " chars received.") + " Reconnecting.")), N != null && (N.abort(), N = void 0);
|
|
4356
4356
|
else {
|
|
4357
|
-
var
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
},
|
|
4357
|
+
var ee = Math.max((D || Date.now()) + C - Date.now(), 1);
|
|
4358
|
+
D = !1, B = n(function() {
|
|
4359
|
+
tt();
|
|
4360
|
+
}, ee);
|
|
4361
4361
|
}
|
|
4362
4362
|
return;
|
|
4363
4363
|
}
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
}, C),
|
|
4367
|
-
var J =
|
|
4368
|
-
if (
|
|
4369
|
-
var
|
|
4370
|
-
J =
|
|
4371
|
-
return Ue ===
|
|
4372
|
-
}), J += (
|
|
4364
|
+
D = !1, h = 0, B = n(function() {
|
|
4365
|
+
tt();
|
|
4366
|
+
}, C), k = ce, he = "", ge = "", xe = G, we = "", Mt = 0, Ne = 0, se = ae;
|
|
4367
|
+
var J = g;
|
|
4368
|
+
if (g.slice(0, 5) !== "data:" && g.slice(0, 5) !== "blob:" && G !== "") {
|
|
4369
|
+
var pe = g.indexOf("?");
|
|
4370
|
+
J = pe === -1 ? g : g.slice(0, pe + 1) + g.slice(pe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(He, Ue) {
|
|
4371
|
+
return Ue === T ? "" : He;
|
|
4372
|
+
}), J += (g.indexOf("?") === -1 ? "?" : "&") + T + "=" + encodeURIComponent(G);
|
|
4373
4373
|
}
|
|
4374
|
-
var
|
|
4375
|
-
|
|
4376
|
-
var
|
|
4377
|
-
if (
|
|
4378
|
-
for (var
|
|
4379
|
-
Object.prototype.hasOwnProperty.call(
|
|
4374
|
+
var me = c.withCredentials, ue = {};
|
|
4375
|
+
ue.Accept = "text/event-stream";
|
|
4376
|
+
var re = c.headers;
|
|
4377
|
+
if (re != null)
|
|
4378
|
+
for (var Ce in re)
|
|
4379
|
+
Object.prototype.hasOwnProperty.call(re, Ce) && (ue[Ce] = re[Ce]);
|
|
4380
4380
|
try {
|
|
4381
|
-
|
|
4382
|
-
} catch (
|
|
4383
|
-
throw
|
|
4381
|
+
N = U.open(S, Tn, An, hr, J, me, ue);
|
|
4382
|
+
} catch (He) {
|
|
4383
|
+
throw Pt(), He;
|
|
4384
4384
|
}
|
|
4385
4385
|
};
|
|
4386
|
-
|
|
4386
|
+
c.url = g, c.readyState = ce, c.withCredentials = m, c.headers = p, c._close = Pt, tt();
|
|
4387
4387
|
}
|
|
4388
|
-
|
|
4388
|
+
de.prototype = Object.create(F.prototype), de.prototype.CONNECTING = ce, de.prototype.OPEN = v, de.prototype.CLOSED = _e, de.prototype.close = function() {
|
|
4389
4389
|
this._close();
|
|
4390
|
-
},
|
|
4391
|
-
var
|
|
4392
|
-
o != null && (l == null || !("withCredentials" in l.prototype)) && (
|
|
4390
|
+
}, de.CONNECTING = ce, de.OPEN = v, de.CLOSED = _e, de.prototype.withCredentials = void 0;
|
|
4391
|
+
var ft = l;
|
|
4392
|
+
o != null && (l == null || !("withCredentials" in l.prototype)) && (ft = de), function(c) {
|
|
4393
4393
|
{
|
|
4394
|
-
var
|
|
4395
|
-
|
|
4394
|
+
var g = c(t);
|
|
4395
|
+
g !== void 0 && (e.exports = g);
|
|
4396
4396
|
}
|
|
4397
|
-
}(function(
|
|
4398
|
-
|
|
4397
|
+
}(function(c) {
|
|
4398
|
+
c.EventSourcePolyfill = de, c.NativeEventSource = l, c.EventSource = ft;
|
|
4399
4399
|
});
|
|
4400
4400
|
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ti : globalThis);
|
|
4401
4401
|
})(tr, tr.exports);
|
|
@@ -4422,7 +4422,7 @@ var rr = function(e, t) {
|
|
|
4422
4422
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
4423
4423
|
}, rr(e, t);
|
|
4424
4424
|
};
|
|
4425
|
-
function
|
|
4425
|
+
function lt(e, t) {
|
|
4426
4426
|
if (typeof t != "function" && t !== null)
|
|
4427
4427
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
4428
4428
|
rr(e, t);
|
|
@@ -4469,7 +4469,7 @@ function or(e, t, r) {
|
|
|
4469
4469
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
4470
4470
|
return e.concat(o || t);
|
|
4471
4471
|
}
|
|
4472
|
-
function
|
|
4472
|
+
function Le(e) {
|
|
4473
4473
|
return typeof e == "function";
|
|
4474
4474
|
}
|
|
4475
4475
|
function _n(e) {
|
|
@@ -4493,7 +4493,7 @@ function ar(e, t) {
|
|
|
4493
4493
|
0 <= r && e.splice(r, 1);
|
|
4494
4494
|
}
|
|
4495
4495
|
}
|
|
4496
|
-
var
|
|
4496
|
+
var Ct = function() {
|
|
4497
4497
|
function e(t) {
|
|
4498
4498
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
4499
4499
|
}
|
|
@@ -4509,8 +4509,8 @@ var At = function() {
|
|
|
4509
4509
|
var u = l.value;
|
|
4510
4510
|
u.remove(this);
|
|
4511
4511
|
}
|
|
4512
|
-
} catch (
|
|
4513
|
-
t = { error:
|
|
4512
|
+
} catch (A) {
|
|
4513
|
+
t = { error: A };
|
|
4514
4514
|
} finally {
|
|
4515
4515
|
try {
|
|
4516
4516
|
l && !l.done && (r = a.return) && r.call(a);
|
|
@@ -4522,29 +4522,29 @@ var At = function() {
|
|
|
4522
4522
|
else
|
|
4523
4523
|
s.remove(this);
|
|
4524
4524
|
var f = this.initialTeardown;
|
|
4525
|
-
if (
|
|
4525
|
+
if (Le(f))
|
|
4526
4526
|
try {
|
|
4527
4527
|
f();
|
|
4528
|
-
} catch (
|
|
4529
|
-
o =
|
|
4528
|
+
} catch (A) {
|
|
4529
|
+
o = A instanceof jt ? A.errors : [A];
|
|
4530
4530
|
}
|
|
4531
|
-
var
|
|
4532
|
-
if (
|
|
4531
|
+
var b = this._finalizers;
|
|
4532
|
+
if (b) {
|
|
4533
4533
|
this._finalizers = null;
|
|
4534
4534
|
try {
|
|
4535
|
-
for (var
|
|
4536
|
-
var
|
|
4535
|
+
for (var d = nr(b), _ = d.next(); !_.done; _ = d.next()) {
|
|
4536
|
+
var x = _.value;
|
|
4537
4537
|
try {
|
|
4538
|
-
Or(
|
|
4539
|
-
} catch (
|
|
4540
|
-
o = o ?? [],
|
|
4538
|
+
Or(x);
|
|
4539
|
+
} catch (A) {
|
|
4540
|
+
o = o ?? [], A instanceof jt ? o = or(or([], ir(o)), ir(A.errors)) : o.push(A);
|
|
4541
4541
|
}
|
|
4542
4542
|
}
|
|
4543
|
-
} catch (
|
|
4544
|
-
n = { error:
|
|
4543
|
+
} catch (A) {
|
|
4544
|
+
n = { error: A };
|
|
4545
4545
|
} finally {
|
|
4546
4546
|
try {
|
|
4547
|
-
|
|
4547
|
+
_ && !_.done && (i = d.return) && i.call(d);
|
|
4548
4548
|
} finally {
|
|
4549
4549
|
if (n)
|
|
4550
4550
|
throw n.error;
|
|
@@ -4583,12 +4583,12 @@ var At = function() {
|
|
|
4583
4583
|
var t = new e();
|
|
4584
4584
|
return t.closed = !0, t;
|
|
4585
4585
|
}(), e;
|
|
4586
|
-
}(), En =
|
|
4586
|
+
}(), En = Ct.EMPTY;
|
|
4587
4587
|
function xn(e) {
|
|
4588
|
-
return e instanceof
|
|
4588
|
+
return e instanceof Ct || e && "closed" in e && Le(e.remove) && Le(e.add) && Le(e.unsubscribe);
|
|
4589
4589
|
}
|
|
4590
4590
|
function Or(e) {
|
|
4591
|
-
|
|
4591
|
+
Le(e) ? e() : e.unsubscribe();
|
|
4592
4592
|
}
|
|
4593
4593
|
var zo = {
|
|
4594
4594
|
Promise: void 0
|
|
@@ -4610,11 +4610,11 @@ function Zo(e) {
|
|
|
4610
4610
|
}
|
|
4611
4611
|
function Lr() {
|
|
4612
4612
|
}
|
|
4613
|
-
function
|
|
4613
|
+
function yt(e) {
|
|
4614
4614
|
e();
|
|
4615
4615
|
}
|
|
4616
4616
|
var wn = function(e) {
|
|
4617
|
-
|
|
4617
|
+
lt(t, e);
|
|
4618
4618
|
function t(r) {
|
|
4619
4619
|
var n = e.call(this) || this;
|
|
4620
4620
|
return n.isStopped = !1, r ? (n.destination = r, xn(r) && r.add(n)) : n.destination = Qo, n;
|
|
@@ -4644,7 +4644,7 @@ var wn = function(e) {
|
|
|
4644
4644
|
this.unsubscribe();
|
|
4645
4645
|
}
|
|
4646
4646
|
}, t;
|
|
4647
|
-
}(
|
|
4647
|
+
}(Ct), qo = function() {
|
|
4648
4648
|
function e(t) {
|
|
4649
4649
|
this.partialObserver = t;
|
|
4650
4650
|
}
|
|
@@ -4654,7 +4654,7 @@ var wn = function(e) {
|
|
|
4654
4654
|
try {
|
|
4655
4655
|
r.next(t);
|
|
4656
4656
|
} catch (n) {
|
|
4657
|
-
|
|
4657
|
+
pt(n);
|
|
4658
4658
|
}
|
|
4659
4659
|
}, e.prototype.error = function(t) {
|
|
4660
4660
|
var r = this.partialObserver;
|
|
@@ -4662,24 +4662,24 @@ var wn = function(e) {
|
|
|
4662
4662
|
try {
|
|
4663
4663
|
r.error(t);
|
|
4664
4664
|
} catch (n) {
|
|
4665
|
-
|
|
4665
|
+
pt(n);
|
|
4666
4666
|
}
|
|
4667
4667
|
else
|
|
4668
|
-
|
|
4668
|
+
pt(t);
|
|
4669
4669
|
}, e.prototype.complete = function() {
|
|
4670
4670
|
var t = this.partialObserver;
|
|
4671
4671
|
if (t.complete)
|
|
4672
4672
|
try {
|
|
4673
4673
|
t.complete();
|
|
4674
4674
|
} catch (r) {
|
|
4675
|
-
|
|
4675
|
+
pt(r);
|
|
4676
4676
|
}
|
|
4677
4677
|
}, e;
|
|
4678
4678
|
}(), sr = function(e) {
|
|
4679
|
-
|
|
4679
|
+
lt(t, e);
|
|
4680
4680
|
function t(r, n, i) {
|
|
4681
4681
|
var o = e.call(this) || this, s;
|
|
4682
|
-
return
|
|
4682
|
+
return Le(r) || !r ? s = {
|
|
4683
4683
|
next: r ?? void 0,
|
|
4684
4684
|
error: n ?? void 0,
|
|
4685
4685
|
complete: i ?? void 0
|
|
@@ -4687,7 +4687,7 @@ var wn = function(e) {
|
|
|
4687
4687
|
}
|
|
4688
4688
|
return t;
|
|
4689
4689
|
}(wn);
|
|
4690
|
-
function
|
|
4690
|
+
function pt(e) {
|
|
4691
4691
|
Zo(e);
|
|
4692
4692
|
}
|
|
4693
4693
|
function Yo(e) {
|
|
@@ -4711,7 +4711,7 @@ function ea(e) {
|
|
|
4711
4711
|
}, r);
|
|
4712
4712
|
};
|
|
4713
4713
|
}
|
|
4714
|
-
var
|
|
4714
|
+
var Rr = function() {
|
|
4715
4715
|
function e(t) {
|
|
4716
4716
|
t && (this._subscribe = t);
|
|
4717
4717
|
}
|
|
@@ -4720,7 +4720,7 @@ var Mr = function() {
|
|
|
4720
4720
|
return r.source = this, r.operator = t, r;
|
|
4721
4721
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
4722
4722
|
var i = this, o = ra(t) ? t : new sr(t, r, n);
|
|
4723
|
-
return
|
|
4723
|
+
return yt(function() {
|
|
4724
4724
|
var s = i, a = s.operator, l = s.source;
|
|
4725
4725
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
4726
4726
|
}), o;
|
|
@@ -4732,7 +4732,7 @@ var Mr = function() {
|
|
|
4732
4732
|
}
|
|
4733
4733
|
}, e.prototype.forEach = function(t, r) {
|
|
4734
4734
|
var n = this;
|
|
4735
|
-
return r =
|
|
4735
|
+
return r = Mr(r), new r(function(i, o) {
|
|
4736
4736
|
var s = new sr({
|
|
4737
4737
|
next: function(a) {
|
|
4738
4738
|
try {
|
|
@@ -4757,7 +4757,7 @@ var Mr = function() {
|
|
|
4757
4757
|
return ea(t)(this);
|
|
4758
4758
|
}, e.prototype.toPromise = function(t) {
|
|
4759
4759
|
var r = this;
|
|
4760
|
-
return t =
|
|
4760
|
+
return t = Mr(t), new t(function(n, i) {
|
|
4761
4761
|
var o;
|
|
4762
4762
|
r.subscribe(function(s) {
|
|
4763
4763
|
return o = s;
|
|
@@ -4771,12 +4771,12 @@ var Mr = function() {
|
|
|
4771
4771
|
return new e(t);
|
|
4772
4772
|
}, e;
|
|
4773
4773
|
}();
|
|
4774
|
-
function
|
|
4774
|
+
function Mr(e) {
|
|
4775
4775
|
var t;
|
|
4776
4776
|
return (t = e ?? zo.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4777
4777
|
}
|
|
4778
4778
|
function ta(e) {
|
|
4779
|
-
return e &&
|
|
4779
|
+
return e && Le(e.next) && Le(e.error) && Le(e.complete);
|
|
4780
4780
|
}
|
|
4781
4781
|
function ra(e) {
|
|
4782
4782
|
return e && e instanceof wn || ta(e) && xn(e);
|
|
@@ -4786,20 +4786,20 @@ var na = _n(function(e) {
|
|
|
4786
4786
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4787
4787
|
};
|
|
4788
4788
|
}), Sn = function(e) {
|
|
4789
|
-
|
|
4789
|
+
lt(t, e);
|
|
4790
4790
|
function t() {
|
|
4791
4791
|
var r = e.call(this) || this;
|
|
4792
4792
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
4793
4793
|
}
|
|
4794
4794
|
return t.prototype.lift = function(r) {
|
|
4795
|
-
var n = new
|
|
4795
|
+
var n = new Pr(this, this);
|
|
4796
4796
|
return n.operator = r, n;
|
|
4797
4797
|
}, t.prototype._throwIfClosed = function() {
|
|
4798
4798
|
if (this.closed)
|
|
4799
4799
|
throw new na();
|
|
4800
4800
|
}, t.prototype.next = function(r) {
|
|
4801
4801
|
var n = this;
|
|
4802
|
-
|
|
4802
|
+
yt(function() {
|
|
4803
4803
|
var i, o;
|
|
4804
4804
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
4805
4805
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
@@ -4822,7 +4822,7 @@ var na = _n(function(e) {
|
|
|
4822
4822
|
});
|
|
4823
4823
|
}, t.prototype.error = function(r) {
|
|
4824
4824
|
var n = this;
|
|
4825
|
-
|
|
4825
|
+
yt(function() {
|
|
4826
4826
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
4827
4827
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
4828
4828
|
for (var i = n.observers; i.length; )
|
|
@@ -4831,7 +4831,7 @@ var na = _n(function(e) {
|
|
|
4831
4831
|
});
|
|
4832
4832
|
}, t.prototype.complete = function() {
|
|
4833
4833
|
var r = this;
|
|
4834
|
-
|
|
4834
|
+
yt(function() {
|
|
4835
4835
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4836
4836
|
r.isStopped = !0;
|
|
4837
4837
|
for (var n = r.observers; n.length; )
|
|
@@ -4853,20 +4853,20 @@ var na = _n(function(e) {
|
|
|
4853
4853
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
4854
4854
|
}, t.prototype._innerSubscribe = function(r) {
|
|
4855
4855
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
4856
|
-
return o || s ? En : (this.currentObservers = null, a.push(r), new
|
|
4856
|
+
return o || s ? En : (this.currentObservers = null, a.push(r), new Ct(function() {
|
|
4857
4857
|
n.currentObservers = null, ar(a, r);
|
|
4858
4858
|
}));
|
|
4859
4859
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
4860
4860
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
4861
4861
|
i ? r.error(o) : s && r.complete();
|
|
4862
4862
|
}, t.prototype.asObservable = function() {
|
|
4863
|
-
var r = new
|
|
4863
|
+
var r = new Rr();
|
|
4864
4864
|
return r.source = this, r;
|
|
4865
4865
|
}, t.create = function(r, n) {
|
|
4866
|
-
return new
|
|
4866
|
+
return new Pr(r, n);
|
|
4867
4867
|
}, t;
|
|
4868
|
-
}(
|
|
4869
|
-
|
|
4868
|
+
}(Rr), Pr = function(e) {
|
|
4869
|
+
lt(t, e);
|
|
4870
4870
|
function t(r, n) {
|
|
4871
4871
|
var i = e.call(this) || this;
|
|
4872
4872
|
return i.destination = r, i.source = n, i;
|
|
@@ -4890,7 +4890,7 @@ var na = _n(function(e) {
|
|
|
4890
4890
|
},
|
|
4891
4891
|
delegate: void 0
|
|
4892
4892
|
}, ia = function(e) {
|
|
4893
|
-
|
|
4893
|
+
lt(t, e);
|
|
4894
4894
|
function t(r, n, i) {
|
|
4895
4895
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Bn);
|
|
4896
4896
|
var o = e.call(this) || this;
|
|
@@ -4927,55 +4927,39 @@ function sa(e) {
|
|
|
4927
4927
|
}
|
|
4928
4928
|
function Dr(e, t, r) {
|
|
4929
4929
|
const n = e.slice();
|
|
4930
|
-
return n[
|
|
4930
|
+
return n[60] = t[r], n;
|
|
4931
4931
|
}
|
|
4932
4932
|
function Ur(e, t, r) {
|
|
4933
4933
|
const n = e.slice();
|
|
4934
|
-
return n[
|
|
4934
|
+
return n[63] = t[r], n;
|
|
4935
4935
|
}
|
|
4936
4936
|
function ua(e) {
|
|
4937
|
-
let t, r, n = (
|
|
4938
|
-
/*balances*/
|
|
4939
|
-
(e[2].Total ? (
|
|
4940
|
-
/*formatBalance*/
|
|
4941
|
-
e[9](
|
|
4942
|
-
/*balances*/
|
|
4943
|
-
e[2].Total[0].amount
|
|
4944
|
-
)
|
|
4945
|
-
) : "0") + ""
|
|
4946
|
-
), i, o, s, a, l, u, f, m, p, w, _ = (
|
|
4937
|
+
let t, r, n, i, o, s, a, l, u, f, b, d = (
|
|
4947
4938
|
/*showBalance*/
|
|
4948
4939
|
e[5] && Fr(e)
|
|
4949
4940
|
);
|
|
4950
4941
|
return {
|
|
4951
4942
|
c() {
|
|
4952
|
-
t =
|
|
4943
|
+
t = V("button"), r = V("p"), r.textContent = `${/*renderPrimaryBalance*/
|
|
4944
|
+
e[12]()}`, n = Be(), i = V("span"), o = dr("svg"), s = dr("path"), l = Be(), d && d.c(), u = Mn(), L(s, "id", "arrow"), L(s, "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"), L(s, "transform", "translate(-274.511 -441.088)"), L(s, "fill", "#d1d1d1"), L(o, "xmlns", "http://www.w3.org/2000/svg"), L(o, "width", "14"), L(o, "height", "6.835"), L(o, "viewBox", "0 0 14 6.835"), L(i, "class", a = /*isModalDisplayed*/
|
|
4953
4945
|
e[4] ? "TriangleActive" : "TriangleInactive"), L(t, "class", "BalanceValue");
|
|
4954
4946
|
},
|
|
4955
|
-
m(
|
|
4956
|
-
|
|
4947
|
+
m(_, x) {
|
|
4948
|
+
Ee(_, t, x), M(t, r), M(t, n), M(t, i), M(i, o), M(o, s), Ee(_, l, x), d && d.m(_, x), Ee(_, u, x), f || (b = it(
|
|
4957
4949
|
t,
|
|
4958
4950
|
"click",
|
|
4959
4951
|
/*click_handler*/
|
|
4960
|
-
e[
|
|
4961
|
-
),
|
|
4952
|
+
e[31]
|
|
4953
|
+
), f = !0);
|
|
4962
4954
|
},
|
|
4963
|
-
p(
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
S[9](
|
|
4969
|
-
/*balances*/
|
|
4970
|
-
S[2].Total[0].amount
|
|
4971
|
-
)
|
|
4972
|
-
) : "0") + "") && Me(i, n), I[0] & /*isModalDisplayed*/
|
|
4973
|
-
16 && u !== (u = /*isModalDisplayed*/
|
|
4974
|
-
S[4] ? "TriangleActive" : "TriangleInactive") && L(s, "class", u), /*showBalance*/
|
|
4975
|
-
S[5] ? _ ? _.p(S, I) : (_ = Fr(S), _.c(), _.m(m.parentNode, m)) : _ && (_.d(1), _ = null);
|
|
4955
|
+
p(_, x) {
|
|
4956
|
+
x[0] & /*isModalDisplayed*/
|
|
4957
|
+
16 && a !== (a = /*isModalDisplayed*/
|
|
4958
|
+
_[4] ? "TriangleActive" : "TriangleInactive") && L(i, "class", a), /*showBalance*/
|
|
4959
|
+
_[5] ? d ? d.p(_, x) : (d = Fr(_), d.c(), d.m(u.parentNode, u)) : d && (d.d(1), d = null);
|
|
4976
4960
|
},
|
|
4977
|
-
d(
|
|
4978
|
-
|
|
4961
|
+
d(_) {
|
|
4962
|
+
_ && (ve(t), ve(l), ve(u)), d && d.d(_), f = !1, b();
|
|
4979
4963
|
}
|
|
4980
4964
|
};
|
|
4981
4965
|
}
|
|
@@ -4986,18 +4970,18 @@ function la(e) {
|
|
|
4986
4970
|
), n;
|
|
4987
4971
|
return {
|
|
4988
4972
|
c() {
|
|
4989
|
-
t =
|
|
4973
|
+
t = V("p"), n = Oe(r), L(t, "class", "Loading");
|
|
4990
4974
|
},
|
|
4991
4975
|
m(i, o) {
|
|
4992
|
-
|
|
4976
|
+
Ee(i, t, o), M(t, n);
|
|
4993
4977
|
},
|
|
4994
4978
|
p(i, o) {
|
|
4995
4979
|
o[0] & /*$_*/
|
|
4996
4980
|
128 && r !== (r = /*$_*/
|
|
4997
|
-
i[7]("Loading") + "") &&
|
|
4981
|
+
i[7]("Loading") + "") && Ie(n, r);
|
|
4998
4982
|
},
|
|
4999
4983
|
d(i) {
|
|
5000
|
-
i &&
|
|
4984
|
+
i && ve(t);
|
|
5001
4985
|
}
|
|
5002
4986
|
};
|
|
5003
4987
|
}
|
|
@@ -5005,82 +4989,82 @@ function Fr(e) {
|
|
|
5005
4989
|
let t, r, n, i, o, s, a, l, u = (
|
|
5006
4990
|
/*$_*/
|
|
5007
4991
|
e[7]("Title") + ""
|
|
5008
|
-
), f,
|
|
4992
|
+
), f, b, d, _, x, A, Q = (
|
|
5009
4993
|
/*$_*/
|
|
5010
4994
|
e[7]("DepositButton") + ""
|
|
5011
|
-
),
|
|
4995
|
+
), ne, oe, I, j, Z, ie, K, te = vt(Object.keys(
|
|
5012
4996
|
/*balances*/
|
|
5013
4997
|
e[2]
|
|
5014
|
-
)),
|
|
5015
|
-
for (let
|
|
5016
|
-
|
|
5017
|
-
let
|
|
4998
|
+
)), X = [];
|
|
4999
|
+
for (let P = 0; P < te.length; P += 1)
|
|
5000
|
+
X[P] = kr(Dr(e, te, P));
|
|
5001
|
+
let F = (
|
|
5018
5002
|
/*balancelimitsbutton*/
|
|
5019
5003
|
e[0] === "true" && jr(e)
|
|
5020
5004
|
);
|
|
5021
5005
|
return {
|
|
5022
5006
|
c() {
|
|
5023
|
-
t =
|
|
5024
|
-
for (let
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
(e[4] ? "Open" : "")), L(l, "class", "BalanceModalTitle"), L(a, "class", "BalanceModalHeader"), L(
|
|
5028
|
-
(e[4] ? "Open" : "")), L(o, "class",
|
|
5029
|
-
(e[4] ? "Open" : "")), L(t, "class",
|
|
5007
|
+
t = V("div"), r = V("button"), i = Be(), o = V("div"), s = V("div"), a = V("div"), l = V("p"), f = Oe(u), b = Be(), d = V("div");
|
|
5008
|
+
for (let P = 0; P < X.length; P += 1)
|
|
5009
|
+
X[P].c();
|
|
5010
|
+
_ = Be(), x = V("div"), A = V("button"), ne = Oe(Q), oe = Be(), F && F.c(), L(r, "class", n = "BalanceModalClose " + /*isModalDisplayed*/
|
|
5011
|
+
(e[4] ? "Open" : "")), L(l, "class", "BalanceModalTitle"), L(a, "class", "BalanceModalHeader"), L(d, "class", "BalanceModalBody"), L(A, "class", "BalanceModalAction DepositButton"), L(x, "class", "BalanceModalFooter"), L(s, "class", I = "ModalContent " + /*isModalDisplayed*/
|
|
5012
|
+
(e[4] ? "Open" : "")), L(o, "class", j = "BalanceModal " + /*isModalDisplayed*/
|
|
5013
|
+
(e[4] ? "Open" : "")), L(t, "class", Z = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
5030
5014
|
(e[4] ? "Open" : ""));
|
|
5031
5015
|
},
|
|
5032
|
-
m(
|
|
5033
|
-
|
|
5034
|
-
for (let
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5016
|
+
m(P, q) {
|
|
5017
|
+
Ee(P, t, q), M(t, r), M(t, i), M(t, o), M(o, s), M(s, a), M(a, l), M(l, f), M(s, b), M(s, d);
|
|
5018
|
+
for (let z = 0; z < X.length; z += 1)
|
|
5019
|
+
X[z] && X[z].m(d, null);
|
|
5020
|
+
M(s, _), M(s, x), M(x, A), M(A, ne), M(x, oe), F && F.m(x, null), ie || (K = [
|
|
5021
|
+
it(
|
|
5038
5022
|
r,
|
|
5039
5023
|
"click",
|
|
5040
5024
|
/*click_handler_1*/
|
|
5041
|
-
e[
|
|
5025
|
+
e[32]
|
|
5042
5026
|
),
|
|
5043
|
-
|
|
5044
|
-
|
|
5027
|
+
it(
|
|
5028
|
+
A,
|
|
5045
5029
|
"click",
|
|
5046
5030
|
/*click_handler_2*/
|
|
5047
|
-
e[
|
|
5031
|
+
e[33]
|
|
5048
5032
|
)
|
|
5049
|
-
],
|
|
5033
|
+
], ie = !0);
|
|
5050
5034
|
},
|
|
5051
|
-
p(
|
|
5052
|
-
if (
|
|
5035
|
+
p(P, q) {
|
|
5036
|
+
if (q[0] & /*isModalDisplayed*/
|
|
5053
5037
|
16 && n !== (n = "BalanceModalClose " + /*isModalDisplayed*/
|
|
5054
|
-
(
|
|
5038
|
+
(P[4] ? "Open" : "")) && L(r, "class", n), q[0] & /*$_*/
|
|
5055
5039
|
128 && u !== (u = /*$_*/
|
|
5056
|
-
|
|
5040
|
+
P[7]("Title") + "") && Ie(f, u), q[0] & /*balances, formatBalance, getProductType, $_*/
|
|
5057
5041
|
2692) {
|
|
5058
|
-
|
|
5042
|
+
te = vt(Object.keys(
|
|
5059
5043
|
/*balances*/
|
|
5060
|
-
|
|
5044
|
+
P[2]
|
|
5061
5045
|
));
|
|
5062
|
-
let
|
|
5063
|
-
for (
|
|
5064
|
-
const
|
|
5065
|
-
|
|
5046
|
+
let z;
|
|
5047
|
+
for (z = 0; z < te.length; z += 1) {
|
|
5048
|
+
const fe = Dr(P, te, z);
|
|
5049
|
+
X[z] ? X[z].p(fe, q) : (X[z] = kr(fe), X[z].c(), X[z].m(d, null));
|
|
5066
5050
|
}
|
|
5067
|
-
for (;
|
|
5068
|
-
|
|
5069
|
-
|
|
5051
|
+
for (; z < X.length; z += 1)
|
|
5052
|
+
X[z].d(1);
|
|
5053
|
+
X.length = te.length;
|
|
5070
5054
|
}
|
|
5071
|
-
|
|
5072
|
-
128 &&
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
16 &&
|
|
5076
|
-
(
|
|
5077
|
-
16 &&
|
|
5078
|
-
(
|
|
5079
|
-
16 &&
|
|
5080
|
-
(
|
|
5055
|
+
q[0] & /*$_*/
|
|
5056
|
+
128 && Q !== (Q = /*$_*/
|
|
5057
|
+
P[7]("DepositButton") + "") && Ie(ne, Q), /*balancelimitsbutton*/
|
|
5058
|
+
P[0] === "true" ? F ? F.p(P, q) : (F = jr(P), F.c(), F.m(x, null)) : F && (F.d(1), F = null), q[0] & /*isModalDisplayed*/
|
|
5059
|
+
16 && I !== (I = "ModalContent " + /*isModalDisplayed*/
|
|
5060
|
+
(P[4] ? "Open" : "")) && L(s, "class", I), q[0] & /*isModalDisplayed*/
|
|
5061
|
+
16 && j !== (j = "BalanceModal " + /*isModalDisplayed*/
|
|
5062
|
+
(P[4] ? "Open" : "")) && L(o, "class", j), q[0] & /*isModalDisplayed*/
|
|
5063
|
+
16 && Z !== (Z = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
5064
|
+
(P[4] ? "Open" : "")) && L(t, "class", Z);
|
|
5081
5065
|
},
|
|
5082
|
-
d(
|
|
5083
|
-
|
|
5066
|
+
d(P) {
|
|
5067
|
+
P && ve(t), Wr(X, P), F && F.d(), ie = !1, We(K);
|
|
5084
5068
|
}
|
|
5085
5069
|
};
|
|
5086
5070
|
}
|
|
@@ -5089,82 +5073,82 @@ function Gr(e) {
|
|
|
5089
5073
|
/*$_*/
|
|
5090
5074
|
e[7](
|
|
5091
5075
|
/*k*/
|
|
5092
|
-
e[
|
|
5076
|
+
e[60]
|
|
5093
5077
|
) + ""
|
|
5094
5078
|
), i, o, s = (
|
|
5095
5079
|
/*getProductType*/
|
|
5096
5080
|
e[11](
|
|
5097
5081
|
/*balance*/
|
|
5098
|
-
e[
|
|
5082
|
+
e[63]
|
|
5099
5083
|
) + ""
|
|
5100
|
-
), a, l, u, f,
|
|
5084
|
+
), a, l, u, f, b = (
|
|
5101
5085
|
/*formatBalance*/
|
|
5102
5086
|
e[9](
|
|
5103
5087
|
/*balance*/
|
|
5104
|
-
e[
|
|
5088
|
+
e[63].amount
|
|
5105
5089
|
) + ""
|
|
5106
|
-
),
|
|
5090
|
+
), d;
|
|
5107
5091
|
return {
|
|
5108
5092
|
c() {
|
|
5109
|
-
t =
|
|
5093
|
+
t = V("div"), r = V("p"), i = Oe(n), o = Be(), a = Oe(s), l = Be(), u = V("p"), f = V("span"), d = Oe(b), L(r, "class", "BalanceModalText"), L(f, "class", "BalanceModalAmount"), L(u, "class", "BalanceModalValue"), L(t, "class", "BalanceModalRowLine");
|
|
5110
5094
|
},
|
|
5111
|
-
m(
|
|
5112
|
-
|
|
5095
|
+
m(_, x) {
|
|
5096
|
+
Ee(_, t, x), M(t, r), M(r, i), M(r, o), M(r, a), M(t, l), M(t, u), M(u, f), M(f, d);
|
|
5113
5097
|
},
|
|
5114
|
-
p(
|
|
5115
|
-
|
|
5098
|
+
p(_, x) {
|
|
5099
|
+
x[0] & /*$_, balances*/
|
|
5116
5100
|
132 && n !== (n = /*$_*/
|
|
5117
|
-
|
|
5101
|
+
_[7](
|
|
5118
5102
|
/*k*/
|
|
5119
|
-
|
|
5120
|
-
) + "") &&
|
|
5103
|
+
_[60]
|
|
5104
|
+
) + "") && Ie(i, n), x[0] & /*balances*/
|
|
5121
5105
|
4 && s !== (s = /*getProductType*/
|
|
5122
|
-
|
|
5106
|
+
_[11](
|
|
5123
5107
|
/*balance*/
|
|
5124
|
-
|
|
5125
|
-
) + "") &&
|
|
5126
|
-
4 &&
|
|
5127
|
-
|
|
5108
|
+
_[63]
|
|
5109
|
+
) + "") && Ie(a, s), x[0] & /*balances*/
|
|
5110
|
+
4 && b !== (b = /*formatBalance*/
|
|
5111
|
+
_[9](
|
|
5128
5112
|
/*balance*/
|
|
5129
|
-
|
|
5130
|
-
) + "") &&
|
|
5113
|
+
_[63].amount
|
|
5114
|
+
) + "") && Ie(d, b);
|
|
5131
5115
|
},
|
|
5132
|
-
d(
|
|
5133
|
-
|
|
5116
|
+
d(_) {
|
|
5117
|
+
_ && ve(t);
|
|
5134
5118
|
}
|
|
5135
5119
|
};
|
|
5136
5120
|
}
|
|
5137
5121
|
function kr(e) {
|
|
5138
|
-
let t, r, n =
|
|
5122
|
+
let t, r, n = vt(
|
|
5139
5123
|
/*balances*/
|
|
5140
5124
|
e[2][
|
|
5141
5125
|
/*k*/
|
|
5142
|
-
e[
|
|
5126
|
+
e[60]
|
|
5143
5127
|
]
|
|
5144
5128
|
), i = [];
|
|
5145
5129
|
for (let o = 0; o < n.length; o += 1)
|
|
5146
5130
|
i[o] = Gr(Ur(e, n, o));
|
|
5147
5131
|
return {
|
|
5148
5132
|
c() {
|
|
5149
|
-
t =
|
|
5133
|
+
t = V("div");
|
|
5150
5134
|
for (let o = 0; o < i.length; o += 1)
|
|
5151
5135
|
i[o].c();
|
|
5152
|
-
r =
|
|
5136
|
+
r = Be(), L(t, "class", "BalanceModalRowBoth");
|
|
5153
5137
|
},
|
|
5154
5138
|
m(o, s) {
|
|
5155
|
-
|
|
5139
|
+
Ee(o, t, s);
|
|
5156
5140
|
for (let a = 0; a < i.length; a += 1)
|
|
5157
5141
|
i[a] && i[a].m(t, null);
|
|
5158
|
-
|
|
5142
|
+
M(t, r);
|
|
5159
5143
|
},
|
|
5160
5144
|
p(o, s) {
|
|
5161
5145
|
if (s[0] & /*formatBalance, balances, getProductType, $_*/
|
|
5162
5146
|
2692) {
|
|
5163
|
-
n =
|
|
5147
|
+
n = vt(
|
|
5164
5148
|
/*balances*/
|
|
5165
5149
|
o[2][
|
|
5166
5150
|
/*k*/
|
|
5167
|
-
o[
|
|
5151
|
+
o[60]
|
|
5168
5152
|
]
|
|
5169
5153
|
);
|
|
5170
5154
|
let a;
|
|
@@ -5178,7 +5162,7 @@ function kr(e) {
|
|
|
5178
5162
|
}
|
|
5179
5163
|
},
|
|
5180
5164
|
d(o) {
|
|
5181
|
-
o &&
|
|
5165
|
+
o && ve(t), Wr(i, o);
|
|
5182
5166
|
}
|
|
5183
5167
|
};
|
|
5184
5168
|
}
|
|
@@ -5189,23 +5173,23 @@ function jr(e) {
|
|
|
5189
5173
|
), n, i, o;
|
|
5190
5174
|
return {
|
|
5191
5175
|
c() {
|
|
5192
|
-
t =
|
|
5176
|
+
t = V("button"), n = Oe(r), L(t, "class", "BalanceModalAction LimitsButton");
|
|
5193
5177
|
},
|
|
5194
5178
|
m(s, a) {
|
|
5195
|
-
|
|
5179
|
+
Ee(s, t, a), M(t, n), i || (o = it(
|
|
5196
5180
|
t,
|
|
5197
5181
|
"click",
|
|
5198
5182
|
/*click_handler_3*/
|
|
5199
|
-
e[
|
|
5183
|
+
e[34]
|
|
5200
5184
|
), i = !0);
|
|
5201
5185
|
},
|
|
5202
5186
|
p(s, a) {
|
|
5203
5187
|
a[0] & /*$_*/
|
|
5204
5188
|
128 && r !== (r = /*$_*/
|
|
5205
|
-
s[7]("LimitsButton") + "") &&
|
|
5189
|
+
s[7]("LimitsButton") + "") && Ie(n, r);
|
|
5206
5190
|
},
|
|
5207
5191
|
d(s) {
|
|
5208
|
-
s &&
|
|
5192
|
+
s && ve(t), i = !1, o();
|
|
5209
5193
|
}
|
|
5210
5194
|
};
|
|
5211
5195
|
}
|
|
@@ -5213,19 +5197,19 @@ function $r(e) {
|
|
|
5213
5197
|
let t, r, n;
|
|
5214
5198
|
return {
|
|
5215
5199
|
c() {
|
|
5216
|
-
t =
|
|
5200
|
+
t = V("button"), L(t, "class", "ShowBalanceModalOverlay");
|
|
5217
5201
|
},
|
|
5218
5202
|
m(i, o) {
|
|
5219
|
-
|
|
5203
|
+
Ee(i, t, o), r || (n = it(
|
|
5220
5204
|
t,
|
|
5221
5205
|
"click",
|
|
5222
5206
|
/*click_handler_4*/
|
|
5223
|
-
e[
|
|
5207
|
+
e[35]
|
|
5224
5208
|
), r = !0);
|
|
5225
5209
|
},
|
|
5226
|
-
p:
|
|
5210
|
+
p: ye,
|
|
5227
5211
|
d(i) {
|
|
5228
|
-
i &&
|
|
5212
|
+
i && ve(t), r = !1, n();
|
|
5229
5213
|
}
|
|
5230
5214
|
};
|
|
5231
5215
|
}
|
|
@@ -5243,11 +5227,11 @@ function ca(e) {
|
|
|
5243
5227
|
);
|
|
5244
5228
|
return {
|
|
5245
5229
|
c() {
|
|
5246
|
-
t =
|
|
5230
|
+
t = V("div"), r = V("div"), a.c(), i = Be(), l && l.c(), L(r, "class", n = "ShowBalance " + /*mobileView*/
|
|
5247
5231
|
(e[6] ? "Mobile" : ""));
|
|
5248
5232
|
},
|
|
5249
5233
|
m(u, f) {
|
|
5250
|
-
|
|
5234
|
+
Ee(u, t, f), M(t, r), a.m(r, null), M(t, i), l && l.m(t, null), e[36](t);
|
|
5251
5235
|
},
|
|
5252
5236
|
p(u, f) {
|
|
5253
5237
|
s === (s = o(u)) && a ? a.p(u, f) : (a.d(1), a = s(u), a && (a.c(), a.m(r, null))), f[0] & /*mobileView*/
|
|
@@ -5255,23 +5239,23 @@ function ca(e) {
|
|
|
5255
5239
|
(u[6] ? "Mobile" : "")) && L(r, "class", n), /*showBalance*/
|
|
5256
5240
|
u[5] ? l ? l.p(u, f) : (l = $r(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
|
|
5257
5241
|
},
|
|
5258
|
-
i:
|
|
5259
|
-
o:
|
|
5242
|
+
i: ye,
|
|
5243
|
+
o: ye,
|
|
5260
5244
|
d(u) {
|
|
5261
|
-
u &&
|
|
5245
|
+
u && ve(t), a.d(), l && l.d(), e[36](null);
|
|
5262
5246
|
}
|
|
5263
5247
|
};
|
|
5264
5248
|
}
|
|
5265
5249
|
function ha(e, t, r) {
|
|
5266
5250
|
let n;
|
|
5267
|
-
Hn(e, $o, (
|
|
5268
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl:
|
|
5269
|
-
const
|
|
5270
|
-
fetch(
|
|
5251
|
+
Hn(e, $o, (h) => r(7, n = h));
|
|
5252
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: d = "gm16" } = t, { displaybalanceoption: _ = "All" } = t, { totalcalculationmode: x = "totalCashAmount" } = t, { primarybalancemode: A } = t, { balancelimitsbutton: Q = "false" } = t, { hideproducttype: ne = "" } = t, { currencylocale: oe = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: j = "2" } = t, { minimumfractiondigits: Z = "0" } = t, { customdisplayformat: ie = "" } = t, K, te = !0, X = !1, F = !1, P = !1, q = !1, z = window.navigator.userAgent, fe, Te = "", be = [], ce;
|
|
5253
|
+
const v = {}, _e = ["totalCashAmount", "totalRealAmount"], Qe = () => {
|
|
5254
|
+
fetch(b).then((h) => h.json()).then((h) => Object.keys(h).forEach((p) => Cr(p, h[p]))).catch((h) => console.log(h));
|
|
5271
5255
|
};
|
|
5272
|
-
Object.keys(Hr).forEach((
|
|
5273
|
-
const
|
|
5274
|
-
switch (
|
|
5256
|
+
Object.keys(Hr).forEach((h) => Cr(h, Hr[h]));
|
|
5257
|
+
const ae = (h) => {
|
|
5258
|
+
switch (h) {
|
|
5275
5259
|
case "balance":
|
|
5276
5260
|
window.postMessage(
|
|
5277
5261
|
{
|
|
@@ -5279,10 +5263,10 @@ function ha(e, t, r) {
|
|
|
5279
5263
|
status: "open"
|
|
5280
5264
|
},
|
|
5281
5265
|
window.location.href
|
|
5282
|
-
), r(5,
|
|
5266
|
+
), r(5, P = !0), setTimeout(() => r(4, X = !0), 150);
|
|
5283
5267
|
break;
|
|
5284
5268
|
case "closebalance":
|
|
5285
|
-
r(4,
|
|
5269
|
+
r(4, X = !1), window.postMessage(
|
|
5286
5270
|
{
|
|
5287
5271
|
type: "BalanceModalStatus",
|
|
5288
5272
|
status: "close"
|
|
@@ -5290,113 +5274,113 @@ function ha(e, t, r) {
|
|
|
5290
5274
|
window.location.href
|
|
5291
5275
|
), setTimeout(
|
|
5292
5276
|
() => {
|
|
5293
|
-
r(5,
|
|
5277
|
+
r(5, P = !1);
|
|
5294
5278
|
},
|
|
5295
5279
|
150
|
|
5296
5280
|
);
|
|
5297
5281
|
break;
|
|
5298
5282
|
}
|
|
5299
|
-
},
|
|
5300
|
-
if (
|
|
5301
|
-
return
|
|
5302
|
-
const
|
|
5283
|
+
}, Me = (h) => {
|
|
5284
|
+
if (ie)
|
|
5285
|
+
return ct(h);
|
|
5286
|
+
const p = oe || a, y = {
|
|
5303
5287
|
style: "currency",
|
|
5304
|
-
currency:
|
|
5288
|
+
currency: Te,
|
|
5305
5289
|
useGrouping: !0,
|
|
5306
|
-
currencyDisplay:
|
|
5307
|
-
maximumFractionDigits:
|
|
5308
|
-
minimumFractionDigits:
|
|
5290
|
+
currencyDisplay: I || "code",
|
|
5291
|
+
maximumFractionDigits: j === "" || isNaN(Number(j)) ? 2 : Number(j),
|
|
5292
|
+
minimumFractionDigits: Z === "" || isNaN(Number(Z)) ? 0 : Number(Z)
|
|
5309
5293
|
};
|
|
5310
|
-
return new Intl.NumberFormat(
|
|
5311
|
-
},
|
|
5312
|
-
const
|
|
5313
|
-
let
|
|
5314
|
-
for (const
|
|
5315
|
-
switch (
|
|
5294
|
+
return new Intl.NumberFormat(p, y).format(h);
|
|
5295
|
+
}, ct = (h) => {
|
|
5296
|
+
const p = [];
|
|
5297
|
+
let y = "";
|
|
5298
|
+
for (const S of ie)
|
|
5299
|
+
switch (S) {
|
|
5316
5300
|
default:
|
|
5317
|
-
|
|
5301
|
+
y += S;
|
|
5318
5302
|
break;
|
|
5319
5303
|
case "{":
|
|
5320
|
-
|
|
5304
|
+
y && p.push(y), y = "";
|
|
5321
5305
|
break;
|
|
5322
5306
|
case "}":
|
|
5323
|
-
const [
|
|
5324
|
-
if (
|
|
5325
|
-
|
|
5326
|
-
else if (
|
|
5327
|
-
let
|
|
5328
|
-
|
|
5329
|
-
let [
|
|
5330
|
-
|
|
5331
|
-
for (let
|
|
5332
|
-
(
|
|
5333
|
-
|
|
5307
|
+
const [U, N] = y.split("|");
|
|
5308
|
+
if (y = "", U.toLowerCase() === "currency")
|
|
5309
|
+
y = Te;
|
|
5310
|
+
else if (U.toLowerCase() === "amount") {
|
|
5311
|
+
let B = ",", k = ".", he = 2;
|
|
5312
|
+
N && (N[0] !== " " && (B = N[0]), N[1] !== " " && (k = N[1]), N[2] !== " " && !isNaN(Number(N[2])) && (he = Number(N[2])));
|
|
5313
|
+
let [xe, ge] = String(Math.floor(h * 10 ** he) / 10 ** he).split(".");
|
|
5314
|
+
y += xe[0];
|
|
5315
|
+
for (let we = 1; we < xe.length; ++we)
|
|
5316
|
+
(xe.length - we) % 3 === 0 ? y += B + xe[we] : y += xe[we];
|
|
5317
|
+
ge && (y += k + ge);
|
|
5334
5318
|
}
|
|
5335
|
-
|
|
5319
|
+
y && p.push(y), y = "";
|
|
5336
5320
|
break;
|
|
5337
5321
|
}
|
|
5338
|
-
return
|
|
5339
|
-
},
|
|
5340
|
-
r(3,
|
|
5341
|
-
const
|
|
5322
|
+
return p.push(y), p.join("");
|
|
5323
|
+
}, Ht = async () => {
|
|
5324
|
+
r(3, te = !0);
|
|
5325
|
+
const h = new URL(`${s}/v1/player/${i}/account`);
|
|
5342
5326
|
try {
|
|
5343
|
-
const
|
|
5327
|
+
const p = await fetch(h, {
|
|
5344
5328
|
method: "GET",
|
|
5345
5329
|
headers: { "X-SessionID": o }
|
|
5346
|
-
}),
|
|
5347
|
-
if (
|
|
5348
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href), be =
|
|
5330
|
+
}), y = await p.json();
|
|
5331
|
+
if (p.ok)
|
|
5332
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), be = y.items, Te = be.find((S) => S.displayName === "Casino")?.currency, r(2, v.Total = [{ amount: y.totalAmount[Te] }], v), r(
|
|
5349
5333
|
2,
|
|
5350
|
-
|
|
5334
|
+
v.Real = [
|
|
5351
5335
|
{
|
|
5352
|
-
amount: be.find((
|
|
5336
|
+
amount: be.find((S) => S.displayName === "Casino")?.balanceAmount
|
|
5353
5337
|
}
|
|
5354
5338
|
],
|
|
5355
|
-
|
|
5339
|
+
v
|
|
5356
5340
|
), r(
|
|
5357
5341
|
2,
|
|
5358
|
-
|
|
5342
|
+
v.Bonus = [
|
|
5359
5343
|
{
|
|
5360
|
-
amount: be.find((
|
|
5344
|
+
amount: be.find((S) => S.displayName === "UBS")?.balanceAmount
|
|
5361
5345
|
}
|
|
5362
5346
|
],
|
|
5363
|
-
|
|
5347
|
+
v
|
|
5364
5348
|
);
|
|
5365
5349
|
else
|
|
5366
5350
|
throw new Error("Failed to fetch balance data !");
|
|
5367
|
-
} catch (
|
|
5368
|
-
console.log("Balance error: ",
|
|
5351
|
+
} catch (p) {
|
|
5352
|
+
console.log("Balance error: ", p);
|
|
5369
5353
|
} finally {
|
|
5370
|
-
r(3,
|
|
5354
|
+
r(3, te = !1);
|
|
5371
5355
|
}
|
|
5372
|
-
},
|
|
5373
|
-
r(3,
|
|
5374
|
-
const
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
const
|
|
5378
|
-
if (
|
|
5379
|
-
|
|
5356
|
+
}, Ot = () => {
|
|
5357
|
+
r(3, te = !0);
|
|
5358
|
+
const h = new URL(`${s}/v2/player/${i}/balance`), p = new Headers();
|
|
5359
|
+
p.append("X-SessionID", o), fetch(h, { method: "GET", headers: p }).then((S) => S.json()).then((S) => {
|
|
5360
|
+
S[x] || r(13, x = _e[0]);
|
|
5361
|
+
const U = S.items.find((B) => B.type === "Real" && B.walletAccountType === "Ordinary");
|
|
5362
|
+
if (Te = U.currency, F = !!U.productType, r(2, v.Total = [{ amount: 0 }], v), r(2, v.Real = [], v), r(2, v.Bonus = [], v), r(2, v.Credit = [], v), !F) {
|
|
5363
|
+
ce = {
|
|
5380
5364
|
lastOrdinaryAfterAmount: 0,
|
|
5381
5365
|
showCreditLineAfterAmount: !1
|
|
5382
|
-
}, r(2,
|
|
5383
|
-
for (const
|
|
5384
|
-
switch (
|
|
5366
|
+
}, r(2, v.Total[0].amount = S[x][Te], v);
|
|
5367
|
+
for (const B of S.items)
|
|
5368
|
+
switch (B.type) {
|
|
5385
5369
|
case "Bonus":
|
|
5386
|
-
|
|
5370
|
+
v.Bonus.length === 0 ? v.Bonus.push({ amount: B.amount }) : r(2, v.Bonus[0].amount += B.amount, v);
|
|
5387
5371
|
break;
|
|
5388
5372
|
case "Real":
|
|
5389
|
-
if (
|
|
5373
|
+
if (B.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: B.creditLine }), x === "totalRealAmount")
|
|
5390
5374
|
continue;
|
|
5391
|
-
|
|
5375
|
+
v.Real.length === 0 ? v.Real.push({ amount: B.amount }) : r(2, v.Real[0].amount += B.amount, v);
|
|
5392
5376
|
break;
|
|
5393
5377
|
}
|
|
5394
|
-
for (const [
|
|
5395
|
-
|
|
5396
|
-
r(3,
|
|
5378
|
+
for (const [B, k] of Object.entries(v))
|
|
5379
|
+
k.length < 1 && delete v[B];
|
|
5380
|
+
r(3, te = !1);
|
|
5397
5381
|
return;
|
|
5398
5382
|
}
|
|
5399
|
-
|
|
5383
|
+
ce = {
|
|
5400
5384
|
Casino: {
|
|
5401
5385
|
lastOrdinaryAfterAmount: 0,
|
|
5402
5386
|
showCreditLineAfterAmount: !1
|
|
@@ -5406,124 +5390,124 @@ function ha(e, t, r) {
|
|
|
5406
5390
|
showCreditLineAfterAmount: !1
|
|
5407
5391
|
}
|
|
5408
5392
|
};
|
|
5409
|
-
let
|
|
5410
|
-
|
|
5411
|
-
for (const
|
|
5412
|
-
let
|
|
5413
|
-
switch (
|
|
5393
|
+
let N = S.items;
|
|
5394
|
+
_ && _ !== "All" && (N = S.items.filter((B) => B.productType === _));
|
|
5395
|
+
for (const B of N) {
|
|
5396
|
+
let k;
|
|
5397
|
+
switch (B.type) {
|
|
5414
5398
|
case "Bonus":
|
|
5415
|
-
|
|
5416
|
-
amount:
|
|
5417
|
-
productType:
|
|
5399
|
+
k = v.Bonus.findIndex((he) => he.productType === B.productType), k > 0 ? r(2, v.Bonus[k].amount += B.amount, v) : v.Bonus.push({
|
|
5400
|
+
amount: B.amount,
|
|
5401
|
+
productType: B.productType
|
|
5418
5402
|
});
|
|
5419
5403
|
break;
|
|
5420
5404
|
case "Real":
|
|
5421
|
-
|
|
5422
|
-
amount:
|
|
5423
|
-
productType:
|
|
5424
|
-
}),
|
|
5425
|
-
amount:
|
|
5426
|
-
productType:
|
|
5405
|
+
B.creditLine && v.Credit.push({
|
|
5406
|
+
amount: B.creditLine,
|
|
5407
|
+
productType: B.productType
|
|
5408
|
+
}), k = v.Real.findIndex((he) => he.productType === B.productType), k > 0 ? r(2, v.Real[k].amount += B.amount, v) : v.Real.push({
|
|
5409
|
+
amount: B.amount,
|
|
5410
|
+
productType: B.productType
|
|
5427
5411
|
});
|
|
5428
5412
|
break;
|
|
5429
5413
|
}
|
|
5430
5414
|
}
|
|
5431
|
-
|
|
5432
|
-
for (const [
|
|
5433
|
-
|
|
5434
|
-
window.postMessage({ type: "playerBalanceInfo", balance:
|
|
5435
|
-
}).catch((
|
|
5436
|
-
throw r(3,
|
|
5415
|
+
Ae();
|
|
5416
|
+
for (const [B, k] of Object.entries(v))
|
|
5417
|
+
k.length < 1 && delete v[B];
|
|
5418
|
+
window.postMessage({ type: "playerBalanceInfo", balance: S }, window.location.href), r(3, te = !1);
|
|
5419
|
+
}).catch((S) => {
|
|
5420
|
+
throw r(3, te = !1), console.log("Balance fetch error", S), new Error("Failed to fetch balance data!");
|
|
5437
5421
|
});
|
|
5438
5422
|
}, Je = () => {
|
|
5439
|
-
if (
|
|
5423
|
+
if (fe && fe.close(), o.length < 1)
|
|
5440
5424
|
return;
|
|
5441
|
-
let
|
|
5442
|
-
switch (
|
|
5425
|
+
let h, p;
|
|
5426
|
+
switch (d) {
|
|
5443
5427
|
case "gm16":
|
|
5444
|
-
|
|
5428
|
+
h = new URL(`${s}/v2/player/${i}/information/updates`), p = (U) => de(U);
|
|
5445
5429
|
break;
|
|
5446
5430
|
case "gmcore":
|
|
5447
|
-
|
|
5431
|
+
h = new URL(`${s}/v1/player/${i}/balance/updates`), p = (U) => Ke(U);
|
|
5448
5432
|
break;
|
|
5449
5433
|
}
|
|
5450
|
-
const
|
|
5434
|
+
const y = {
|
|
5451
5435
|
accept: "text/event-stream",
|
|
5452
5436
|
"X-SessionId": o
|
|
5453
|
-
},
|
|
5454
|
-
|
|
5455
|
-
},
|
|
5456
|
-
let
|
|
5437
|
+
}, S = new Xo.EventSourcePolyfill(h, { headers: y });
|
|
5438
|
+
fe = S, S.addEventListener("message", p);
|
|
5439
|
+
}, ht = (h) => {
|
|
5440
|
+
let p;
|
|
5457
5441
|
try {
|
|
5458
|
-
|
|
5459
|
-
} catch (
|
|
5460
|
-
console.log("Balance stream failed: ",
|
|
5442
|
+
p = JSON.parse(h);
|
|
5443
|
+
} catch (y) {
|
|
5444
|
+
console.log("Balance stream failed: ", y);
|
|
5461
5445
|
return;
|
|
5462
5446
|
}
|
|
5463
|
-
return
|
|
5464
|
-
},
|
|
5465
|
-
const
|
|
5466
|
-
if (!
|
|
5447
|
+
return p;
|
|
5448
|
+
}, Ke = (h) => {
|
|
5449
|
+
const p = ht(h.data);
|
|
5450
|
+
if (!p) {
|
|
5467
5451
|
Je();
|
|
5468
5452
|
return;
|
|
5469
5453
|
}
|
|
5470
|
-
let
|
|
5471
|
-
const
|
|
5472
|
-
be = be.map((
|
|
5473
|
-
...
|
|
5474
|
-
balanceAmount:
|
|
5475
|
-
}),
|
|
5476
|
-
},
|
|
5477
|
-
let
|
|
5478
|
-
switch (
|
|
5454
|
+
let y = "0";
|
|
5455
|
+
const S = p.balanceChange;
|
|
5456
|
+
be = be.map((U) => (S && S[U.id] && (U = {
|
|
5457
|
+
...U,
|
|
5458
|
+
balanceAmount: S[U.id].afterAmount
|
|
5459
|
+
}), y = (parseFloat(U?.balanceAmount) + parseFloat(y)).toString(), U)), r(2, v.Real = [{ amount: be[0]?.balanceAmount }], v), r(2, v.Bonus = [{ amount: be[1]?.balanceAmount }], v), r(2, v.Total = [{ amount: Number(y) }], v);
|
|
5460
|
+
}, Pe = (h, p, y) => {
|
|
5461
|
+
let S = null;
|
|
5462
|
+
switch (y.walletAccountType) {
|
|
5479
5463
|
case "Ordinary":
|
|
5480
|
-
(
|
|
5464
|
+
(y.afterAmount !== y.affectedAmount || p.lastOrdinaryAfterAmount === 0) && (p.lastOrdinaryAfterAmount = y.afterAmount, p.showCreditLineAfterAmount || (S = y.afterAmount));
|
|
5481
5465
|
break;
|
|
5482
5466
|
case "CreditLine":
|
|
5483
|
-
|
|
5467
|
+
y.afterAmount !== 0 ? (S = y.afterAmount, p.showCreditLineAfterAmount = !0) : (S = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
|
|
5484
5468
|
break;
|
|
5485
5469
|
default:
|
|
5486
|
-
|
|
5470
|
+
S = y.afterAmount;
|
|
5487
5471
|
}
|
|
5488
|
-
return
|
|
5489
|
-
},
|
|
5490
|
-
switch (
|
|
5472
|
+
return S === null ? h : S;
|
|
5473
|
+
}, Ae = () => {
|
|
5474
|
+
switch (x) {
|
|
5491
5475
|
case "totalCashAmount":
|
|
5492
|
-
let
|
|
5493
|
-
for (const
|
|
5494
|
-
for (const
|
|
5495
|
-
|
|
5496
|
-
r(2,
|
|
5476
|
+
let h = 0;
|
|
5477
|
+
for (const y of ["Real", "Bonus"])
|
|
5478
|
+
for (const S of v[y])
|
|
5479
|
+
h += Math.max(S.amount, 0);
|
|
5480
|
+
r(2, v.Total[0].amount = h, v);
|
|
5497
5481
|
break;
|
|
5498
5482
|
case "totalRealAmount":
|
|
5499
|
-
if (!
|
|
5483
|
+
if (!F)
|
|
5500
5484
|
return;
|
|
5501
|
-
let
|
|
5502
|
-
for (const
|
|
5503
|
-
|
|
5504
|
-
r(2,
|
|
5485
|
+
let p = 0;
|
|
5486
|
+
for (const y of v.Real)
|
|
5487
|
+
p += y.amount;
|
|
5488
|
+
r(2, v.Total[0].amount = p, v);
|
|
5505
5489
|
}
|
|
5506
|
-
},
|
|
5507
|
-
const
|
|
5508
|
-
if (!
|
|
5490
|
+
}, de = (h) => {
|
|
5491
|
+
const p = ht(h.data);
|
|
5492
|
+
if (!p) {
|
|
5509
5493
|
Je();
|
|
5510
5494
|
return;
|
|
5511
5495
|
}
|
|
5512
|
-
if (
|
|
5496
|
+
if (Lt(p?.type) || p.type !== "BALANCE_UPDATE_V2")
|
|
5513
5497
|
return;
|
|
5514
|
-
const
|
|
5515
|
-
for (const [
|
|
5516
|
-
if (
|
|
5517
|
-
for (const
|
|
5518
|
-
if (!
|
|
5519
|
-
|
|
5498
|
+
const y = p.body.balanceChange;
|
|
5499
|
+
for (const [S, U] of Object.entries(y))
|
|
5500
|
+
if (x === "totalRealAmount" && S === "Real" && !F && r(2, v.Total[0].amount = Pe(v.Total[0].amount, ce, U), v), !!v[S])
|
|
5501
|
+
for (const N of v[S]) {
|
|
5502
|
+
if (!F) {
|
|
5503
|
+
N.amount = S === "Real" ? Pe(N.amount, ce, U) : U.afterAmount;
|
|
5520
5504
|
continue;
|
|
5521
5505
|
}
|
|
5522
|
-
|
|
5506
|
+
U.productType === N.productType && (N.amount = S === "Real" ? Pe(N.amount, ce[N.productType], U) : U.afterAmount);
|
|
5523
5507
|
}
|
|
5524
|
-
|
|
5525
|
-
},
|
|
5526
|
-
switch (
|
|
5508
|
+
Ae();
|
|
5509
|
+
}, et = (h) => {
|
|
5510
|
+
switch (ae("closebalance"), h) {
|
|
5527
5511
|
case "deposit":
|
|
5528
5512
|
window.postMessage({ type: "GoToDeposit" }, window.location.href);
|
|
5529
5513
|
break;
|
|
@@ -5532,69 +5516,77 @@ function ha(e, t, r) {
|
|
|
5532
5516
|
break;
|
|
5533
5517
|
}
|
|
5534
5518
|
typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5535
|
-
},
|
|
5536
|
-
|
|
5537
|
-
},
|
|
5538
|
-
switch (Vo(a),
|
|
5519
|
+
}, Lt = (h) => h === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Rt = () => {
|
|
5520
|
+
_e.includes(x) || (console.error(`Unsupported value ('${x}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`), r(13, x = _e[0]));
|
|
5521
|
+
}, ft = () => {
|
|
5522
|
+
switch (Vo(a), Rt(), d) {
|
|
5539
5523
|
case "gmcore":
|
|
5540
|
-
|
|
5524
|
+
Ht();
|
|
5541
5525
|
break;
|
|
5542
5526
|
case "gm16":
|
|
5543
|
-
|
|
5527
|
+
Ot();
|
|
5544
5528
|
break;
|
|
5545
5529
|
default:
|
|
5546
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
5530
|
+
throw Error(`Invalid apiversion attribute: ${d}`);
|
|
5547
5531
|
}
|
|
5548
|
-
},
|
|
5549
|
-
const { data: { type:
|
|
5550
|
-
switch (
|
|
5532
|
+
}, c = (h) => {
|
|
5533
|
+
const { data: { type: p } = {} } = h || {};
|
|
5534
|
+
switch (p) {
|
|
5551
5535
|
case "LogoutSuccessfull":
|
|
5552
|
-
|
|
5536
|
+
fe.close();
|
|
5553
5537
|
break;
|
|
5554
5538
|
case "CloseBalance":
|
|
5555
|
-
|
|
5539
|
+
ae("closebalance");
|
|
5556
5540
|
break;
|
|
5557
5541
|
}
|
|
5558
|
-
},
|
|
5542
|
+
}, g = () => {
|
|
5559
5543
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5560
|
-
},
|
|
5561
|
-
const
|
|
5562
|
-
return !
|
|
5544
|
+
}, E = (h) => {
|
|
5545
|
+
const p = ne.split(",").map((y) => y.trim());
|
|
5546
|
+
return !h.productType || p.includes(h.productType) ? "" : n(h.productType);
|
|
5547
|
+
}, m = () => {
|
|
5548
|
+
switch (A) {
|
|
5549
|
+
case "Real":
|
|
5550
|
+
return v.Real ? Me(v.Real[0].amount) : "0";
|
|
5551
|
+
default:
|
|
5552
|
+
return v.Total ? Me(v.Total[0].amount) : "0";
|
|
5553
|
+
}
|
|
5563
5554
|
};
|
|
5564
|
-
Dn(() => (window.addEventListener("message",
|
|
5565
|
-
window.removeEventListener("message",
|
|
5555
|
+
Dn(() => (window.addEventListener("message", c, !1), r(6, q = aa(z)), () => {
|
|
5556
|
+
window.removeEventListener("message", c), fe && fe.close();
|
|
5566
5557
|
}));
|
|
5567
|
-
const
|
|
5568
|
-
function
|
|
5569
|
-
$t[
|
|
5570
|
-
|
|
5558
|
+
const T = () => ae("balance"), w = () => ae("closebalance"), C = () => et("deposit"), G = () => et("limits"), H = () => ae("closebalance");
|
|
5559
|
+
function D(h) {
|
|
5560
|
+
$t[h ? "unshift" : "push"](() => {
|
|
5561
|
+
K = h, r(1, K);
|
|
5571
5562
|
});
|
|
5572
5563
|
}
|
|
5573
|
-
return e.$$set = (
|
|
5574
|
-
"userid" in
|
|
5564
|
+
return e.$$set = (h) => {
|
|
5565
|
+
"userid" in h && r(14, i = h.userid), "session" in h && r(15, o = h.session), "endpoint" in h && r(16, s = h.endpoint), "lang" in h && r(17, a = h.lang), "mbsource" in h && r(18, l = h.mbsource), "clientstyling" in h && r(19, u = h.clientstyling), "clientstylingurl" in h && r(20, f = h.clientstylingurl), "translationurl" in h && r(21, b = h.translationurl), "gmversion" in h && r(22, d = h.gmversion), "displaybalanceoption" in h && r(23, _ = h.displaybalanceoption), "totalcalculationmode" in h && r(13, x = h.totalcalculationmode), "primarybalancemode" in h && r(24, A = h.primarybalancemode), "balancelimitsbutton" in h && r(0, Q = h.balancelimitsbutton), "hideproducttype" in h && r(25, ne = h.hideproducttype), "currencylocale" in h && r(26, oe = h.currencylocale), "currencydisplay" in h && r(27, I = h.currencydisplay), "maximumfractiondigits" in h && r(28, j = h.maximumfractiondigits), "minimumfractiondigits" in h && r(29, Z = h.minimumfractiondigits), "customdisplayformat" in h && r(30, ie = h.customdisplayformat);
|
|
5575
5566
|
}, e.$$.update = () => {
|
|
5576
5567
|
e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
4 &&
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5568
|
+
12828672 && s && i && o && a && d && _ && ft(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5569
|
+
4308992 && s && i && o && d && Je(), e.$$.dirty[0] & /*translationurl*/
|
|
5570
|
+
2097152 && b && Qe(), e.$$.dirty[0] & /*balances*/
|
|
5571
|
+
4 && v.Total && g(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5572
|
+
524290 && u && K && Qn(K, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5573
|
+
1048578 && f && K && Jn(K, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5574
|
+
262146 && l && K && Kn(K, `${l}.Style`);
|
|
5584
5575
|
}, [
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5576
|
+
Q,
|
|
5577
|
+
K,
|
|
5578
|
+
v,
|
|
5579
|
+
te,
|
|
5580
|
+
X,
|
|
5581
|
+
P,
|
|
5582
|
+
q,
|
|
5592
5583
|
n,
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5584
|
+
ae,
|
|
5585
|
+
Me,
|
|
5586
|
+
et,
|
|
5587
|
+
E,
|
|
5588
|
+
m,
|
|
5589
|
+
x,
|
|
5598
5590
|
i,
|
|
5599
5591
|
o,
|
|
5600
5592
|
s,
|
|
@@ -5602,21 +5594,22 @@ function ha(e, t, r) {
|
|
|
5602
5594
|
l,
|
|
5603
5595
|
u,
|
|
5604
5596
|
f,
|
|
5605
|
-
m,
|
|
5606
|
-
p,
|
|
5607
|
-
w,
|
|
5608
|
-
I,
|
|
5609
|
-
re,
|
|
5610
|
-
ie,
|
|
5611
|
-
R,
|
|
5612
|
-
k,
|
|
5613
|
-
q,
|
|
5614
|
-
x,
|
|
5615
5597
|
b,
|
|
5598
|
+
d,
|
|
5599
|
+
_,
|
|
5616
5600
|
A,
|
|
5617
|
-
|
|
5601
|
+
ne,
|
|
5602
|
+
oe,
|
|
5603
|
+
I,
|
|
5604
|
+
j,
|
|
5605
|
+
Z,
|
|
5606
|
+
ie,
|
|
5607
|
+
T,
|
|
5608
|
+
w,
|
|
5618
5609
|
C,
|
|
5619
|
-
G
|
|
5610
|
+
G,
|
|
5611
|
+
H,
|
|
5612
|
+
D
|
|
5620
5613
|
];
|
|
5621
5614
|
}
|
|
5622
5615
|
class fa extends qn {
|
|
@@ -5628,139 +5621,146 @@ class fa extends qn {
|
|
|
5628
5621
|
ca,
|
|
5629
5622
|
Xr,
|
|
5630
5623
|
{
|
|
5631
|
-
userid:
|
|
5632
|
-
session:
|
|
5633
|
-
endpoint:
|
|
5634
|
-
lang:
|
|
5635
|
-
mbsource:
|
|
5636
|
-
clientstyling:
|
|
5637
|
-
clientstylingurl:
|
|
5638
|
-
translationurl:
|
|
5639
|
-
gmversion:
|
|
5640
|
-
displaybalanceoption:
|
|
5641
|
-
totalcalculationmode:
|
|
5624
|
+
userid: 14,
|
|
5625
|
+
session: 15,
|
|
5626
|
+
endpoint: 16,
|
|
5627
|
+
lang: 17,
|
|
5628
|
+
mbsource: 18,
|
|
5629
|
+
clientstyling: 19,
|
|
5630
|
+
clientstylingurl: 20,
|
|
5631
|
+
translationurl: 21,
|
|
5632
|
+
gmversion: 22,
|
|
5633
|
+
displaybalanceoption: 23,
|
|
5634
|
+
totalcalculationmode: 13,
|
|
5635
|
+
primarybalancemode: 24,
|
|
5642
5636
|
balancelimitsbutton: 0,
|
|
5643
|
-
hideproducttype:
|
|
5644
|
-
currencylocale:
|
|
5645
|
-
currencydisplay:
|
|
5646
|
-
maximumfractiondigits:
|
|
5647
|
-
minimumfractiondigits:
|
|
5648
|
-
customdisplayformat:
|
|
5637
|
+
hideproducttype: 25,
|
|
5638
|
+
currencylocale: 26,
|
|
5639
|
+
currencydisplay: 27,
|
|
5640
|
+
maximumfractiondigits: 28,
|
|
5641
|
+
minimumfractiondigits: 29,
|
|
5642
|
+
customdisplayformat: 30
|
|
5649
5643
|
},
|
|
5650
5644
|
sa,
|
|
5651
5645
|
[-1, -1, -1]
|
|
5652
5646
|
);
|
|
5653
5647
|
}
|
|
5654
5648
|
get userid() {
|
|
5655
|
-
return this.$$.ctx[
|
|
5649
|
+
return this.$$.ctx[14];
|
|
5656
5650
|
}
|
|
5657
5651
|
set userid(t) {
|
|
5658
|
-
this.$$set({ userid: t }),
|
|
5652
|
+
this.$$set({ userid: t }), Y();
|
|
5659
5653
|
}
|
|
5660
5654
|
get session() {
|
|
5661
|
-
return this.$$.ctx[
|
|
5655
|
+
return this.$$.ctx[15];
|
|
5662
5656
|
}
|
|
5663
5657
|
set session(t) {
|
|
5664
|
-
this.$$set({ session: t }),
|
|
5658
|
+
this.$$set({ session: t }), Y();
|
|
5665
5659
|
}
|
|
5666
5660
|
get endpoint() {
|
|
5667
|
-
return this.$$.ctx[
|
|
5661
|
+
return this.$$.ctx[16];
|
|
5668
5662
|
}
|
|
5669
5663
|
set endpoint(t) {
|
|
5670
|
-
this.$$set({ endpoint: t }),
|
|
5664
|
+
this.$$set({ endpoint: t }), Y();
|
|
5671
5665
|
}
|
|
5672
5666
|
get lang() {
|
|
5673
|
-
return this.$$.ctx[
|
|
5667
|
+
return this.$$.ctx[17];
|
|
5674
5668
|
}
|
|
5675
5669
|
set lang(t) {
|
|
5676
|
-
this.$$set({ lang: t }),
|
|
5670
|
+
this.$$set({ lang: t }), Y();
|
|
5677
5671
|
}
|
|
5678
5672
|
get mbsource() {
|
|
5679
|
-
return this.$$.ctx[
|
|
5673
|
+
return this.$$.ctx[18];
|
|
5680
5674
|
}
|
|
5681
5675
|
set mbsource(t) {
|
|
5682
|
-
this.$$set({ mbsource: t }),
|
|
5676
|
+
this.$$set({ mbsource: t }), Y();
|
|
5683
5677
|
}
|
|
5684
5678
|
get clientstyling() {
|
|
5685
|
-
return this.$$.ctx[
|
|
5679
|
+
return this.$$.ctx[19];
|
|
5686
5680
|
}
|
|
5687
5681
|
set clientstyling(t) {
|
|
5688
|
-
this.$$set({ clientstyling: t }),
|
|
5682
|
+
this.$$set({ clientstyling: t }), Y();
|
|
5689
5683
|
}
|
|
5690
5684
|
get clientstylingurl() {
|
|
5691
|
-
return this.$$.ctx[
|
|
5685
|
+
return this.$$.ctx[20];
|
|
5692
5686
|
}
|
|
5693
5687
|
set clientstylingurl(t) {
|
|
5694
|
-
this.$$set({ clientstylingurl: t }),
|
|
5688
|
+
this.$$set({ clientstylingurl: t }), Y();
|
|
5695
5689
|
}
|
|
5696
5690
|
get translationurl() {
|
|
5697
|
-
return this.$$.ctx[
|
|
5691
|
+
return this.$$.ctx[21];
|
|
5698
5692
|
}
|
|
5699
5693
|
set translationurl(t) {
|
|
5700
|
-
this.$$set({ translationurl: t }),
|
|
5694
|
+
this.$$set({ translationurl: t }), Y();
|
|
5701
5695
|
}
|
|
5702
5696
|
get gmversion() {
|
|
5703
|
-
return this.$$.ctx[
|
|
5697
|
+
return this.$$.ctx[22];
|
|
5704
5698
|
}
|
|
5705
5699
|
set gmversion(t) {
|
|
5706
|
-
this.$$set({ gmversion: t }),
|
|
5700
|
+
this.$$set({ gmversion: t }), Y();
|
|
5707
5701
|
}
|
|
5708
5702
|
get displaybalanceoption() {
|
|
5709
|
-
return this.$$.ctx[
|
|
5703
|
+
return this.$$.ctx[23];
|
|
5710
5704
|
}
|
|
5711
5705
|
set displaybalanceoption(t) {
|
|
5712
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5706
|
+
this.$$set({ displaybalanceoption: t }), Y();
|
|
5713
5707
|
}
|
|
5714
5708
|
get totalcalculationmode() {
|
|
5715
|
-
return this.$$.ctx[
|
|
5709
|
+
return this.$$.ctx[13];
|
|
5716
5710
|
}
|
|
5717
5711
|
set totalcalculationmode(t) {
|
|
5718
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5712
|
+
this.$$set({ totalcalculationmode: t }), Y();
|
|
5713
|
+
}
|
|
5714
|
+
get primarybalancemode() {
|
|
5715
|
+
return this.$$.ctx[24];
|
|
5716
|
+
}
|
|
5717
|
+
set primarybalancemode(t) {
|
|
5718
|
+
this.$$set({ primarybalancemode: t }), Y();
|
|
5719
5719
|
}
|
|
5720
5720
|
get balancelimitsbutton() {
|
|
5721
5721
|
return this.$$.ctx[0];
|
|
5722
5722
|
}
|
|
5723
5723
|
set balancelimitsbutton(t) {
|
|
5724
|
-
this.$$set({ balancelimitsbutton: t }),
|
|
5724
|
+
this.$$set({ balancelimitsbutton: t }), Y();
|
|
5725
5725
|
}
|
|
5726
5726
|
get hideproducttype() {
|
|
5727
|
-
return this.$$.ctx[
|
|
5727
|
+
return this.$$.ctx[25];
|
|
5728
5728
|
}
|
|
5729
5729
|
set hideproducttype(t) {
|
|
5730
|
-
this.$$set({ hideproducttype: t }),
|
|
5730
|
+
this.$$set({ hideproducttype: t }), Y();
|
|
5731
5731
|
}
|
|
5732
5732
|
get currencylocale() {
|
|
5733
|
-
return this.$$.ctx[
|
|
5733
|
+
return this.$$.ctx[26];
|
|
5734
5734
|
}
|
|
5735
5735
|
set currencylocale(t) {
|
|
5736
|
-
this.$$set({ currencylocale: t }),
|
|
5736
|
+
this.$$set({ currencylocale: t }), Y();
|
|
5737
5737
|
}
|
|
5738
5738
|
get currencydisplay() {
|
|
5739
|
-
return this.$$.ctx[
|
|
5739
|
+
return this.$$.ctx[27];
|
|
5740
5740
|
}
|
|
5741
5741
|
set currencydisplay(t) {
|
|
5742
|
-
this.$$set({ currencydisplay: t }),
|
|
5742
|
+
this.$$set({ currencydisplay: t }), Y();
|
|
5743
5743
|
}
|
|
5744
5744
|
get maximumfractiondigits() {
|
|
5745
|
-
return this.$$.ctx[
|
|
5745
|
+
return this.$$.ctx[28];
|
|
5746
5746
|
}
|
|
5747
5747
|
set maximumfractiondigits(t) {
|
|
5748
|
-
this.$$set({ maximumfractiondigits: t }),
|
|
5748
|
+
this.$$set({ maximumfractiondigits: t }), Y();
|
|
5749
5749
|
}
|
|
5750
5750
|
get minimumfractiondigits() {
|
|
5751
|
-
return this.$$.ctx[
|
|
5751
|
+
return this.$$.ctx[29];
|
|
5752
5752
|
}
|
|
5753
5753
|
set minimumfractiondigits(t) {
|
|
5754
|
-
this.$$set({ minimumfractiondigits: t }),
|
|
5754
|
+
this.$$set({ minimumfractiondigits: t }), Y();
|
|
5755
5755
|
}
|
|
5756
5756
|
get customdisplayformat() {
|
|
5757
|
-
return this.$$.ctx[
|
|
5757
|
+
return this.$$.ctx[30];
|
|
5758
5758
|
}
|
|
5759
5759
|
set customdisplayformat(t) {
|
|
5760
|
-
this.$$set({ customdisplayformat: t }),
|
|
5760
|
+
this.$$set({ customdisplayformat: t }), Y();
|
|
5761
5761
|
}
|
|
5762
5762
|
}
|
|
5763
|
-
Zn(fa, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, balancelimitsbutton: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
|
|
5763
|
+
Zn(fa, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, primarybalancemode: {}, balancelimitsbutton: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
|
|
5764
5764
|
export {
|
|
5765
5765
|
fa as P
|
|
5766
5766
|
};
|