@everymatrix/player-account-balance-modal-nd 1.45.0 → 1.45.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-CnCePOQm.js → PlayerAccountBalanceModalNd-BYeEkSFi.js} +615 -615
- package/components/{PlayerAccountBalanceModalNd-CzQub_oD.cjs → PlayerAccountBalanceModalNd-C25MCX2M.cjs} +6 -6
- package/es2015/player-account-balance-modal-nd.cjs +1 -1
- package/es2015/player-account-balance-modal-nd.js +1 -1
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var fr = Object.defineProperty, dr = Object.defineProperties;
|
|
2
2
|
var pr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var un = Object.getOwnPropertySymbols;
|
|
4
|
-
var mr = Object.prototype.hasOwnProperty,
|
|
4
|
+
var mr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var Rt = (e, t, n) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Mt = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
7
|
mr.call(t, n) && Rt(e, n, t[n]);
|
|
8
8
|
if (un)
|
|
9
9
|
for (var n of un(t))
|
|
10
|
-
|
|
10
|
+
gr.call(t, n) && Rt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Nt = (e, t) => dr(e, pr(t));
|
|
13
13
|
var le = (e, t, n) => Rt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
@@ -44,7 +44,7 @@ function tn(e) {
|
|
|
44
44
|
function Pn(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function br(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
50
|
function Ln(e, ...t) {
|
|
@@ -56,7 +56,7 @@ function Ln(e, ...t) {
|
|
|
56
56
|
const n = e.subscribe(...t);
|
|
57
57
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function vr(e, t, n) {
|
|
60
60
|
e.$$.on_destroy.push(Ln(t, n));
|
|
61
61
|
}
|
|
62
62
|
function C(e, t) {
|
|
@@ -65,8 +65,8 @@ function C(e, t) {
|
|
|
65
65
|
function yr(e, t, n) {
|
|
66
66
|
const r = Er(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = n,
|
|
68
|
+
const i = W("style");
|
|
69
|
+
i.id = t, i.textContent = n, xr(r, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
function Er(e) {
|
|
@@ -78,14 +78,14 @@ function Er(e) {
|
|
|
78
78
|
t
|
|
79
79
|
) : e.ownerDocument;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function xr(e, t) {
|
|
82
82
|
return C(
|
|
83
83
|
/** @type {Document} */
|
|
84
84
|
e.head || e,
|
|
85
85
|
t
|
|
86
86
|
), t.sheet;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function je(e, t, n) {
|
|
89
89
|
e.insertBefore(t, n || null);
|
|
90
90
|
}
|
|
91
91
|
function Ce(e) {
|
|
@@ -95,32 +95,32 @@ function Dn(e, t) {
|
|
|
95
95
|
for (let n = 0; n < e.length; n += 1)
|
|
96
96
|
e[n] && e[n].d(t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function W(e) {
|
|
99
99
|
return document.createElement(e);
|
|
100
100
|
}
|
|
101
101
|
function cn(e) {
|
|
102
102
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function _e(e) {
|
|
105
105
|
return document.createTextNode(e);
|
|
106
106
|
}
|
|
107
107
|
function de() {
|
|
108
|
-
return
|
|
108
|
+
return _e(" ");
|
|
109
109
|
}
|
|
110
110
|
function mt(e, t, n, r) {
|
|
111
111
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function P(e, t, n) {
|
|
114
114
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function _r(e) {
|
|
117
117
|
return Array.from(e.childNodes);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function we(e, t) {
|
|
120
120
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
121
121
|
t);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Tr(e) {
|
|
124
124
|
const t = {};
|
|
125
125
|
return e.childNodes.forEach(
|
|
126
126
|
/** @param {Element} node */
|
|
@@ -133,21 +133,21 @@ let tt;
|
|
|
133
133
|
function et(e) {
|
|
134
134
|
tt = e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Br() {
|
|
137
137
|
if (!tt) throw new Error("Function called outside component initialization");
|
|
138
138
|
return tt;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
140
|
+
function wr(e) {
|
|
141
|
+
Br().$$.on_mount.push(e);
|
|
142
142
|
}
|
|
143
|
-
const Pe = [],
|
|
143
|
+
const Pe = [], jt = [];
|
|
144
144
|
let Le = [];
|
|
145
145
|
const fn = [], Sr = /* @__PURE__ */ Promise.resolve();
|
|
146
|
-
let
|
|
146
|
+
let Vt = !1;
|
|
147
147
|
function Ar() {
|
|
148
|
-
|
|
148
|
+
Vt || (Vt = !0, Sr.then(Y));
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function kt(e) {
|
|
151
151
|
Le.push(e);
|
|
152
152
|
}
|
|
153
153
|
const Pt = /* @__PURE__ */ new Set();
|
|
@@ -165,7 +165,7 @@ function Y() {
|
|
|
165
165
|
} catch (t) {
|
|
166
166
|
throw Pe.length = 0, Ne = 0, t;
|
|
167
167
|
}
|
|
168
|
-
for (et(null), Pe.length = 0, Ne = 0;
|
|
168
|
+
for (et(null), Pe.length = 0, Ne = 0; jt.length; ) jt.pop()();
|
|
169
169
|
for (let t = 0; t < Le.length; t += 1) {
|
|
170
170
|
const n = Le[t];
|
|
171
171
|
Pt.has(n) || (Pt.add(n), n());
|
|
@@ -174,13 +174,13 @@ function Y() {
|
|
|
174
174
|
} while (Pe.length);
|
|
175
175
|
for (; fn.length; )
|
|
176
176
|
fn.pop()();
|
|
177
|
-
|
|
177
|
+
Vt = !1, Pt.clear(), et(e);
|
|
178
178
|
}
|
|
179
179
|
function Cr(e) {
|
|
180
180
|
if (e.fragment !== null) {
|
|
181
181
|
e.update(), $e(e.before_update);
|
|
182
182
|
const t = e.dirty;
|
|
183
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
183
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(kt);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
function Hr(e) {
|
|
@@ -191,15 +191,15 @@ const Or = /* @__PURE__ */ new Set();
|
|
|
191
191
|
function Rr(e, t) {
|
|
192
192
|
e && e.i && (Or.delete(e), e.i(t));
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function gt(e) {
|
|
195
195
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
196
196
|
}
|
|
197
197
|
function Mr(e, t, n) {
|
|
198
198
|
const { fragment: r, after_update: i } = e.$$;
|
|
199
|
-
r && r.m(t, n),
|
|
199
|
+
r && r.m(t, n), kt(() => {
|
|
200
200
|
const o = e.$$.on_mount.map(In).filter(tn);
|
|
201
201
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : $e(o), e.$$.on_mount = [];
|
|
202
|
-
}), i.forEach(
|
|
202
|
+
}), i.forEach(kt);
|
|
203
203
|
}
|
|
204
204
|
function Nr(e, t) {
|
|
205
205
|
const n = e.$$;
|
|
@@ -234,13 +234,13 @@ function Pr(e, t, n, r, i, o, s = null, l = [-1]) {
|
|
|
234
234
|
};
|
|
235
235
|
s && s(u.root);
|
|
236
236
|
let c = !1;
|
|
237
|
-
if (u.ctx = n ? n(e, t.props || {}, (
|
|
238
|
-
const
|
|
239
|
-
return u.ctx && i(u.ctx[
|
|
237
|
+
if (u.ctx = n ? n(e, t.props || {}, (g, b, ..._) => {
|
|
238
|
+
const T = _.length ? _[0] : b;
|
|
239
|
+
return u.ctx && i(u.ctx[g], u.ctx[g] = T) && (!u.skip_bound && u.bound[g] && u.bound[g](T), c && Ir(e, g)), b;
|
|
240
240
|
}) : [], u.update(), c = !0, $e(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
241
241
|
if (t.hydrate) {
|
|
242
|
-
const
|
|
243
|
-
u.fragment && u.fragment.l(
|
|
242
|
+
const g = _r(t.target);
|
|
243
|
+
u.fragment && u.fragment.l(g), g.forEach(Ce);
|
|
244
244
|
} else
|
|
245
245
|
u.fragment && u.fragment.c();
|
|
246
246
|
t.intro && Rr(e.$$.fragment), Mr(e, t.target, t.anchor), Y();
|
|
@@ -292,14 +292,14 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
|
292
292
|
let s;
|
|
293
293
|
return {
|
|
294
294
|
c: function() {
|
|
295
|
-
s =
|
|
295
|
+
s = W("slot"), o !== "default" && P(s, "name", o);
|
|
296
296
|
},
|
|
297
297
|
/**
|
|
298
298
|
* @param {HTMLElement} target
|
|
299
299
|
* @param {HTMLElement} [anchor]
|
|
300
300
|
*/
|
|
301
301
|
m: function(u, c) {
|
|
302
|
-
|
|
302
|
+
je(u, s, c);
|
|
303
303
|
},
|
|
304
304
|
d: function(u) {
|
|
305
305
|
u && Ce(s);
|
|
@@ -309,7 +309,7 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
|
309
309
|
};
|
|
310
310
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
311
311
|
return;
|
|
312
|
-
const n = {}, r =
|
|
312
|
+
const n = {}, r = Tr(this);
|
|
313
313
|
for (const o of this.$$s)
|
|
314
314
|
o in r && (n[o] = [t(o)]);
|
|
315
315
|
for (const o of this.attributes) {
|
|
@@ -472,7 +472,7 @@ class Dr {
|
|
|
472
472
|
* @returns {void}
|
|
473
473
|
*/
|
|
474
474
|
$set(t) {
|
|
475
|
-
this.$$set && !
|
|
475
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
const Ur = "4";
|
|
@@ -509,7 +509,7 @@ function yt(e, t = ue) {
|
|
|
509
509
|
}
|
|
510
510
|
return { set: i, update: o, subscribe: s };
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Ve(e, t, n) {
|
|
513
513
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
514
514
|
if (!i.every(Boolean))
|
|
515
515
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -517,26 +517,26 @@ function je(e, t, n) {
|
|
|
517
517
|
return Fr(n, (s, l) => {
|
|
518
518
|
let h = !1;
|
|
519
519
|
const u = [];
|
|
520
|
-
let c = 0,
|
|
521
|
-
const
|
|
520
|
+
let c = 0, g = ue;
|
|
521
|
+
const b = () => {
|
|
522
522
|
if (c)
|
|
523
523
|
return;
|
|
524
|
-
|
|
525
|
-
const
|
|
526
|
-
o ? s(
|
|
527
|
-
},
|
|
528
|
-
(
|
|
529
|
-
|
|
524
|
+
g();
|
|
525
|
+
const T = t(r ? u[0] : u, s, l);
|
|
526
|
+
o ? s(T) : g = tn(T) ? T : ue;
|
|
527
|
+
}, _ = i.map(
|
|
528
|
+
(T, O) => Ln(
|
|
529
|
+
T,
|
|
530
530
|
(A) => {
|
|
531
|
-
u[
|
|
531
|
+
u[O] = A, c &= ~(1 << O), h && b();
|
|
532
532
|
},
|
|
533
533
|
() => {
|
|
534
|
-
c |= 1 <<
|
|
534
|
+
c |= 1 << O;
|
|
535
535
|
}
|
|
536
536
|
)
|
|
537
537
|
);
|
|
538
|
-
return h = !0,
|
|
539
|
-
$e(
|
|
538
|
+
return h = !0, b(), function() {
|
|
539
|
+
$e(_), g(), h = !1;
|
|
540
540
|
};
|
|
541
541
|
});
|
|
542
542
|
}
|
|
@@ -544,27 +544,27 @@ var Gr = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
544
544
|
function $r(e) {
|
|
545
545
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
546
546
|
}
|
|
547
|
-
var
|
|
548
|
-
return
|
|
547
|
+
var jr = function(t) {
|
|
548
|
+
return Vr(t) && !kr(t);
|
|
549
549
|
};
|
|
550
|
-
function
|
|
550
|
+
function Vr(e) {
|
|
551
551
|
return !!e && typeof e == "object";
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function kr(e) {
|
|
554
554
|
var t = Object.prototype.toString.call(e);
|
|
555
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
556
|
-
}
|
|
557
|
-
var kr = typeof Symbol == "function" && Symbol.for, Xr = kr ? Symbol.for("react.element") : 60103;
|
|
558
|
-
function zr(e) {
|
|
559
|
-
return e.$$typeof === Xr;
|
|
555
|
+
return t === "[object RegExp]" || t === "[object Date]" || Wr(e);
|
|
560
556
|
}
|
|
557
|
+
var Xr = typeof Symbol == "function" && Symbol.for, zr = Xr ? Symbol.for("react.element") : 60103;
|
|
561
558
|
function Wr(e) {
|
|
559
|
+
return e.$$typeof === zr;
|
|
560
|
+
}
|
|
561
|
+
function Zr(e) {
|
|
562
562
|
return Array.isArray(e) ? [] : {};
|
|
563
563
|
}
|
|
564
564
|
function nt(e, t) {
|
|
565
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? De(
|
|
565
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? De(Zr(e), e, t) : e;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function qr(e, t, n) {
|
|
568
568
|
return e.concat(t).map(function(r) {
|
|
569
569
|
return nt(r, n);
|
|
570
570
|
});
|
|
@@ -602,7 +602,7 @@ function Kr(e, t, n) {
|
|
|
602
602
|
}), r;
|
|
603
603
|
}
|
|
604
604
|
function De(e, t, n) {
|
|
605
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
605
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || qr, n.isMergeableObject = n.isMergeableObject || jr, n.cloneUnlessOtherwiseSpecified = nt;
|
|
606
606
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
607
607
|
return o ? r ? n.arrayMerge(e, t, n) : Kr(e, t, n) : nt(t, n);
|
|
608
608
|
}
|
|
@@ -615,17 +615,17 @@ De.all = function(t, n) {
|
|
|
615
615
|
};
|
|
616
616
|
var ei = De, ti = ei;
|
|
617
617
|
const ni = /* @__PURE__ */ $r(ti);
|
|
618
|
-
var
|
|
619
|
-
return
|
|
618
|
+
var Xt = function(e, t) {
|
|
619
|
+
return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
620
620
|
n.__proto__ = r;
|
|
621
621
|
} || function(n, r) {
|
|
622
622
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
623
|
-
},
|
|
623
|
+
}, Xt(e, t);
|
|
624
624
|
};
|
|
625
625
|
function Et(e, t) {
|
|
626
626
|
if (typeof t != "function" && t !== null)
|
|
627
627
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
628
|
-
|
|
628
|
+
Xt(e, t);
|
|
629
629
|
function n() {
|
|
630
630
|
this.constructor = e;
|
|
631
631
|
}
|
|
@@ -653,52 +653,52 @@ function Lt(e, t, n) {
|
|
|
653
653
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
654
654
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
655
655
|
}
|
|
656
|
-
var
|
|
656
|
+
var R;
|
|
657
657
|
(function(e) {
|
|
658
658
|
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";
|
|
659
|
-
})(
|
|
660
|
-
var
|
|
659
|
+
})(R || (R = {}));
|
|
660
|
+
var k;
|
|
661
661
|
(function(e) {
|
|
662
662
|
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";
|
|
663
|
-
})(
|
|
663
|
+
})(k || (k = {}));
|
|
664
664
|
var Ue;
|
|
665
665
|
(function(e) {
|
|
666
666
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
667
667
|
})(Ue || (Ue = {}));
|
|
668
668
|
function pn(e) {
|
|
669
|
-
return e.type ===
|
|
669
|
+
return e.type === k.literal;
|
|
670
670
|
}
|
|
671
671
|
function ii(e) {
|
|
672
|
-
return e.type ===
|
|
672
|
+
return e.type === k.argument;
|
|
673
673
|
}
|
|
674
674
|
function Gn(e) {
|
|
675
|
-
return e.type ===
|
|
675
|
+
return e.type === k.number;
|
|
676
676
|
}
|
|
677
677
|
function $n(e) {
|
|
678
|
-
return e.type ===
|
|
679
|
-
}
|
|
680
|
-
function qn(e) {
|
|
681
|
-
return e.type === V.time;
|
|
678
|
+
return e.type === k.date;
|
|
682
679
|
}
|
|
683
680
|
function jn(e) {
|
|
684
|
-
return e.type ===
|
|
681
|
+
return e.type === k.time;
|
|
685
682
|
}
|
|
686
683
|
function Vn(e) {
|
|
687
|
-
return e.type ===
|
|
688
|
-
}
|
|
689
|
-
function oi(e) {
|
|
690
|
-
return e.type === V.pound;
|
|
684
|
+
return e.type === k.select;
|
|
691
685
|
}
|
|
692
686
|
function kn(e) {
|
|
693
|
-
return e.type ===
|
|
687
|
+
return e.type === k.plural;
|
|
688
|
+
}
|
|
689
|
+
function oi(e) {
|
|
690
|
+
return e.type === k.pound;
|
|
694
691
|
}
|
|
695
692
|
function Xn(e) {
|
|
693
|
+
return e.type === k.tag;
|
|
694
|
+
}
|
|
695
|
+
function zn(e) {
|
|
696
696
|
return !!(e && typeof e == "object" && e.type === Ue.number);
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function zt(e) {
|
|
699
699
|
return !!(e && typeof e == "object" && e.type === Ue.dateTime);
|
|
700
700
|
}
|
|
701
|
-
var
|
|
701
|
+
var Wn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ai = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
702
702
|
function si(e) {
|
|
703
703
|
var t = {};
|
|
704
704
|
return e.replace(ai, function(n) {
|
|
@@ -794,15 +794,15 @@ var li = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
|
794
794
|
function ui(e) {
|
|
795
795
|
if (e.length === 0)
|
|
796
796
|
throw new Error("Number skeleton cannot be empty");
|
|
797
|
-
for (var t = e.split(li).filter(function(
|
|
798
|
-
return
|
|
797
|
+
for (var t = e.split(li).filter(function(b) {
|
|
798
|
+
return b.length > 0;
|
|
799
799
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
800
800
|
var o = i[r], s = o.split("/");
|
|
801
801
|
if (s.length === 0)
|
|
802
802
|
throw new Error("Invalid number skeleton");
|
|
803
803
|
for (var l = s[0], h = s.slice(1), u = 0, c = h; u < c.length; u++) {
|
|
804
|
-
var
|
|
805
|
-
if (
|
|
804
|
+
var g = c[u];
|
|
805
|
+
if (g.length === 0)
|
|
806
806
|
throw new Error("Invalid number skeleton");
|
|
807
807
|
}
|
|
808
808
|
n.push({ stem: l, options: h });
|
|
@@ -812,10 +812,10 @@ function ui(e) {
|
|
|
812
812
|
function hi(e) {
|
|
813
813
|
return e.replace(/^(.*?)-/, "");
|
|
814
814
|
}
|
|
815
|
-
var mn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
816
|
-
function
|
|
815
|
+
var mn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zn = /^(@+)?(\+|#+)?[rs]?$/g, ci = /(\*)(0+)|(#+)(0+)|(0+)/g, qn = /^(0+)$/;
|
|
816
|
+
function gn(e) {
|
|
817
817
|
var t = {};
|
|
818
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
818
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zn, function(n, r, i) {
|
|
819
819
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
820
820
|
}), t;
|
|
821
821
|
}
|
|
@@ -867,13 +867,13 @@ function fi(e) {
|
|
|
867
867
|
notation: "scientific"
|
|
868
868
|
}, e = e.slice(1)), t) {
|
|
869
869
|
var n = e.slice(0, 2);
|
|
870
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
870
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qn.test(e))
|
|
871
871
|
throw new Error("Malformed concise eng/scientific notation");
|
|
872
872
|
t.minimumIntegerDigits = e.length;
|
|
873
873
|
}
|
|
874
874
|
return t;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function bn(e) {
|
|
877
877
|
var t = {}, n = Jn(e);
|
|
878
878
|
return n || t;
|
|
879
879
|
}
|
|
@@ -913,12 +913,12 @@ function di(e) {
|
|
|
913
913
|
continue;
|
|
914
914
|
case "scientific":
|
|
915
915
|
t = L(L(L({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
916
|
-
return L(L({}, h),
|
|
916
|
+
return L(L({}, h), bn(u));
|
|
917
917
|
}, {}));
|
|
918
918
|
continue;
|
|
919
919
|
case "engineering":
|
|
920
920
|
t = L(L(L({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
921
|
-
return L(L({}, h),
|
|
921
|
+
return L(L({}, h), bn(u));
|
|
922
922
|
}, {}));
|
|
923
923
|
continue;
|
|
924
924
|
case "notation-simple":
|
|
@@ -963,35 +963,35 @@ function di(e) {
|
|
|
963
963
|
case "integer-width":
|
|
964
964
|
if (i.options.length > 1)
|
|
965
965
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
966
|
-
i.options[0].replace(ci, function(h, u, c,
|
|
966
|
+
i.options[0].replace(ci, function(h, u, c, g, b, _) {
|
|
967
967
|
if (u)
|
|
968
968
|
t.minimumIntegerDigits = c.length;
|
|
969
969
|
else {
|
|
970
|
-
if (
|
|
970
|
+
if (g && b)
|
|
971
971
|
throw new Error("We currently do not support maximum integer digits");
|
|
972
|
-
if (
|
|
972
|
+
if (_)
|
|
973
973
|
throw new Error("We currently do not support exact integer digits");
|
|
974
974
|
}
|
|
975
975
|
return "";
|
|
976
976
|
});
|
|
977
977
|
continue;
|
|
978
978
|
}
|
|
979
|
-
if (
|
|
979
|
+
if (qn.test(i.stem)) {
|
|
980
980
|
t.minimumIntegerDigits = i.stem.length;
|
|
981
981
|
continue;
|
|
982
982
|
}
|
|
983
983
|
if (mn.test(i.stem)) {
|
|
984
984
|
if (i.options.length > 1)
|
|
985
985
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
986
|
-
i.stem.replace(mn, function(h, u, c,
|
|
987
|
-
return c === "*" ? t.minimumFractionDigits = u.length :
|
|
986
|
+
i.stem.replace(mn, function(h, u, c, g, b, _) {
|
|
987
|
+
return c === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
988
988
|
});
|
|
989
989
|
var o = i.options[0];
|
|
990
|
-
o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t),
|
|
990
|
+
o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t), gn(o)));
|
|
991
991
|
continue;
|
|
992
992
|
}
|
|
993
|
-
if (
|
|
994
|
-
t = L(L({}, t),
|
|
993
|
+
if (Zn.test(i.stem)) {
|
|
994
|
+
t = L(L({}, t), gn(i.stem));
|
|
995
995
|
continue;
|
|
996
996
|
}
|
|
997
997
|
var s = Jn(i.stem);
|
|
@@ -2447,20 +2447,20 @@ function mi(e) {
|
|
|
2447
2447
|
var i = ht[r || ""] || ht[n || ""] || ht["".concat(n, "-001")] || ht["001"];
|
|
2448
2448
|
return i[0];
|
|
2449
2449
|
}
|
|
2450
|
-
var Dt,
|
|
2451
|
-
function
|
|
2450
|
+
var Dt, gi = new RegExp("^".concat(Wn.source, "*")), bi = new RegExp("".concat(Wn.source, "*$"));
|
|
2451
|
+
function N(e, t) {
|
|
2452
2452
|
return { start: e, end: t };
|
|
2453
2453
|
}
|
|
2454
|
-
var
|
|
2454
|
+
var vi = !!String.prototype.startsWith && "_a".startsWith("a", 1), yi = !!String.fromCodePoint, Ei = !!Object.fromEntries, xi = !!String.prototype.codePointAt, _i = !!String.prototype.trimStart, Ti = !!String.prototype.trimEnd, Bi = !!Number.isSafeInteger, wi = Bi ? Number.isSafeInteger : function(e) {
|
|
2455
2455
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2456
|
-
},
|
|
2456
|
+
}, Wt = !0;
|
|
2457
2457
|
try {
|
|
2458
2458
|
var Si = Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2459
|
-
|
|
2459
|
+
Wt = ((Dt = Si.exec("a")) === null || Dt === void 0 ? void 0 : Dt[0]) === "a";
|
|
2460
2460
|
} catch (e) {
|
|
2461
|
-
|
|
2461
|
+
Wt = !1;
|
|
2462
2462
|
}
|
|
2463
|
-
var
|
|
2463
|
+
var vn = vi ? (
|
|
2464
2464
|
// Native
|
|
2465
2465
|
function(t, n, r) {
|
|
2466
2466
|
return t.startsWith(n, r);
|
|
@@ -2470,7 +2470,7 @@ var bn = bi ? (
|
|
|
2470
2470
|
function(t, n, r) {
|
|
2471
2471
|
return t.slice(r, r + n.length) === n;
|
|
2472
2472
|
}
|
|
2473
|
-
),
|
|
2473
|
+
), Zt = yi ? String.fromCodePoint : (
|
|
2474
2474
|
// IE11
|
|
2475
2475
|
function() {
|
|
2476
2476
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2494,7 +2494,7 @@ var bn = bi ? (
|
|
|
2494
2494
|
return n;
|
|
2495
2495
|
}
|
|
2496
2496
|
)
|
|
2497
|
-
), Qn =
|
|
2497
|
+
), Qn = xi ? (
|
|
2498
2498
|
// Native
|
|
2499
2499
|
function(t, n) {
|
|
2500
2500
|
return t.codePointAt(n);
|
|
@@ -2508,7 +2508,7 @@ var bn = bi ? (
|
|
|
2508
2508
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
2511
|
-
), Ai =
|
|
2511
|
+
), Ai = _i ? (
|
|
2512
2512
|
// Native
|
|
2513
2513
|
function(t) {
|
|
2514
2514
|
return t.trimStart();
|
|
@@ -2516,9 +2516,9 @@ var bn = bi ? (
|
|
|
2516
2516
|
) : (
|
|
2517
2517
|
// Ponyfill
|
|
2518
2518
|
function(t) {
|
|
2519
|
-
return t.replace(
|
|
2519
|
+
return t.replace(gi, "");
|
|
2520
2520
|
}
|
|
2521
|
-
), Ci =
|
|
2521
|
+
), Ci = Ti ? (
|
|
2522
2522
|
// Native
|
|
2523
2523
|
function(t) {
|
|
2524
2524
|
return t.trimEnd();
|
|
@@ -2526,30 +2526,30 @@ var bn = bi ? (
|
|
|
2526
2526
|
) : (
|
|
2527
2527
|
// Ponyfill
|
|
2528
2528
|
function(t) {
|
|
2529
|
-
return t.replace(
|
|
2529
|
+
return t.replace(bi, "");
|
|
2530
2530
|
}
|
|
2531
2531
|
);
|
|
2532
2532
|
function Yn(e, t) {
|
|
2533
2533
|
return new RegExp(e, t);
|
|
2534
2534
|
}
|
|
2535
|
-
var
|
|
2536
|
-
if (
|
|
2535
|
+
var qt;
|
|
2536
|
+
if (Wt) {
|
|
2537
2537
|
var En = Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2538
|
-
|
|
2538
|
+
qt = function(t, n) {
|
|
2539
2539
|
var r;
|
|
2540
2540
|
En.lastIndex = n;
|
|
2541
2541
|
var i = En.exec(t);
|
|
2542
2542
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2543
2543
|
};
|
|
2544
2544
|
} else
|
|
2545
|
-
|
|
2545
|
+
qt = function(t, n) {
|
|
2546
2546
|
for (var r = []; ; ) {
|
|
2547
2547
|
var i = Qn(t, n);
|
|
2548
2548
|
if (i === void 0 || Kn(i) || Mi(i))
|
|
2549
2549
|
break;
|
|
2550
2550
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2551
2551
|
}
|
|
2552
|
-
return
|
|
2552
|
+
return Zt.apply(void 0, r);
|
|
2553
2553
|
};
|
|
2554
2554
|
var Hi = (
|
|
2555
2555
|
/** @class */
|
|
@@ -2575,13 +2575,13 @@ var Hi = (
|
|
|
2575
2575
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2576
2576
|
var l = this.clonePosition();
|
|
2577
2577
|
this.bump(), i.push({
|
|
2578
|
-
type:
|
|
2579
|
-
location:
|
|
2578
|
+
type: k.pound,
|
|
2579
|
+
location: N(l, this.clonePosition())
|
|
2580
2580
|
});
|
|
2581
2581
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2582
2582
|
if (r)
|
|
2583
2583
|
break;
|
|
2584
|
-
return this.error(
|
|
2584
|
+
return this.error(R.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
2585
2585
|
} else if (o === 60 && !this.ignoreTag && Jt(this.peek() || 0)) {
|
|
2586
2586
|
var s = this.parseTag(t, n);
|
|
2587
2587
|
if (s.err)
|
|
@@ -2603,9 +2603,9 @@ var Hi = (
|
|
|
2603
2603
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2604
2604
|
return {
|
|
2605
2605
|
val: {
|
|
2606
|
-
type:
|
|
2606
|
+
type: k.literal,
|
|
2607
2607
|
value: "<".concat(i, "/>"),
|
|
2608
|
-
location:
|
|
2608
|
+
location: N(r, this.clonePosition())
|
|
2609
2609
|
},
|
|
2610
2610
|
err: null
|
|
2611
2611
|
};
|
|
@@ -2616,21 +2616,21 @@ var Hi = (
|
|
|
2616
2616
|
var s = o.val, l = this.clonePosition();
|
|
2617
2617
|
if (this.bumpIf("</")) {
|
|
2618
2618
|
if (this.isEOF() || !Jt(this.char()))
|
|
2619
|
-
return this.error(
|
|
2619
|
+
return this.error(R.INVALID_TAG, N(l, this.clonePosition()));
|
|
2620
2620
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2621
|
-
return i !== u ? this.error(
|
|
2621
|
+
return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, N(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2622
2622
|
val: {
|
|
2623
|
-
type:
|
|
2623
|
+
type: k.tag,
|
|
2624
2624
|
value: i,
|
|
2625
2625
|
children: s,
|
|
2626
|
-
location:
|
|
2626
|
+
location: N(r, this.clonePosition())
|
|
2627
2627
|
},
|
|
2628
2628
|
err: null
|
|
2629
|
-
} : this.error(
|
|
2629
|
+
} : this.error(R.INVALID_TAG, N(l, this.clonePosition())));
|
|
2630
2630
|
} else
|
|
2631
|
-
return this.error(
|
|
2631
|
+
return this.error(R.UNCLOSED_TAG, N(r, this.clonePosition()));
|
|
2632
2632
|
} else
|
|
2633
|
-
return this.error(
|
|
2633
|
+
return this.error(R.INVALID_TAG, N(r, this.clonePosition()));
|
|
2634
2634
|
}, e.prototype.parseTagName = function() {
|
|
2635
2635
|
var t = this.offset();
|
|
2636
2636
|
for (this.bump(); !this.isEOF() && Ri(this.char()); )
|
|
@@ -2655,9 +2655,9 @@ var Hi = (
|
|
|
2655
2655
|
}
|
|
2656
2656
|
break;
|
|
2657
2657
|
}
|
|
2658
|
-
var h =
|
|
2658
|
+
var h = N(r, this.clonePosition());
|
|
2659
2659
|
return {
|
|
2660
|
-
val: { type:
|
|
2660
|
+
val: { type: k.literal, value: i, location: h },
|
|
2661
2661
|
err: null
|
|
2662
2662
|
};
|
|
2663
2663
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2696,49 +2696,49 @@ var Hi = (
|
|
|
2696
2696
|
n.push(r);
|
|
2697
2697
|
this.bump();
|
|
2698
2698
|
}
|
|
2699
|
-
return
|
|
2699
|
+
return Zt.apply(void 0, n);
|
|
2700
2700
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2701
2701
|
if (this.isEOF())
|
|
2702
2702
|
return null;
|
|
2703
2703
|
var r = this.char();
|
|
2704
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2704
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Zt(r));
|
|
2705
2705
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2706
2706
|
var r = this.clonePosition();
|
|
2707
2707
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2708
|
-
return this.error(
|
|
2708
|
+
return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(r, this.clonePosition()));
|
|
2709
2709
|
if (this.char() === 125)
|
|
2710
|
-
return this.bump(), this.error(
|
|
2710
|
+
return this.bump(), this.error(R.EMPTY_ARGUMENT, N(r, this.clonePosition()));
|
|
2711
2711
|
var i = this.parseIdentifierIfPossible().value;
|
|
2712
2712
|
if (!i)
|
|
2713
|
-
return this.error(
|
|
2713
|
+
return this.error(R.MALFORMED_ARGUMENT, N(r, this.clonePosition()));
|
|
2714
2714
|
if (this.bumpSpace(), this.isEOF())
|
|
2715
|
-
return this.error(
|
|
2715
|
+
return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(r, this.clonePosition()));
|
|
2716
2716
|
switch (this.char()) {
|
|
2717
2717
|
case 125:
|
|
2718
2718
|
return this.bump(), {
|
|
2719
2719
|
val: {
|
|
2720
|
-
type:
|
|
2720
|
+
type: k.argument,
|
|
2721
2721
|
// value does not include the opening and closing braces.
|
|
2722
2722
|
value: i,
|
|
2723
|
-
location:
|
|
2723
|
+
location: N(r, this.clonePosition())
|
|
2724
2724
|
},
|
|
2725
2725
|
err: null
|
|
2726
2726
|
};
|
|
2727
2727
|
case 44:
|
|
2728
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2728
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2729
2729
|
default:
|
|
2730
|
-
return this.error(
|
|
2730
|
+
return this.error(R.MALFORMED_ARGUMENT, N(r, this.clonePosition()));
|
|
2731
2731
|
}
|
|
2732
2732
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2733
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2733
|
+
var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
|
|
2734
2734
|
this.bumpTo(i);
|
|
2735
|
-
var o = this.clonePosition(), s =
|
|
2735
|
+
var o = this.clonePosition(), s = N(t, o);
|
|
2736
2736
|
return { value: r, location: s };
|
|
2737
2737
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2738
2738
|
var o, s = this.clonePosition(), l = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2739
2739
|
switch (l) {
|
|
2740
2740
|
case "":
|
|
2741
|
-
return this.error(
|
|
2741
|
+
return this.error(R.EXPECT_ARGUMENT_TYPE, N(s, h));
|
|
2742
2742
|
case "number":
|
|
2743
2743
|
case "date":
|
|
2744
2744
|
case "time": {
|
|
@@ -2746,49 +2746,49 @@ var Hi = (
|
|
|
2746
2746
|
var u = null;
|
|
2747
2747
|
if (this.bumpIf(",")) {
|
|
2748
2748
|
this.bumpSpace();
|
|
2749
|
-
var c = this.clonePosition(),
|
|
2750
|
-
if (
|
|
2751
|
-
return
|
|
2752
|
-
var
|
|
2753
|
-
if (
|
|
2754
|
-
return this.error(
|
|
2755
|
-
var
|
|
2756
|
-
u = { style:
|
|
2749
|
+
var c = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
|
|
2750
|
+
if (g.err)
|
|
2751
|
+
return g;
|
|
2752
|
+
var b = Ci(g.val);
|
|
2753
|
+
if (b.length === 0)
|
|
2754
|
+
return this.error(R.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
|
|
2755
|
+
var _ = N(c, this.clonePosition());
|
|
2756
|
+
u = { style: b, styleLocation: _ };
|
|
2757
2757
|
}
|
|
2758
|
-
var
|
|
2759
|
-
if (
|
|
2760
|
-
return
|
|
2761
|
-
var
|
|
2762
|
-
if (u &&
|
|
2758
|
+
var T = this.tryParseArgumentClose(i);
|
|
2759
|
+
if (T.err)
|
|
2760
|
+
return T;
|
|
2761
|
+
var O = N(i, this.clonePosition());
|
|
2762
|
+
if (u && vn(u == null ? void 0 : u.style, "::", 0)) {
|
|
2763
2763
|
var A = Ai(u.style.slice(2));
|
|
2764
2764
|
if (l === "number") {
|
|
2765
|
-
var
|
|
2766
|
-
return
|
|
2767
|
-
val: { type:
|
|
2765
|
+
var g = this.parseNumberSkeletonFromString(A, u.styleLocation);
|
|
2766
|
+
return g.err ? g : {
|
|
2767
|
+
val: { type: k.number, value: r, location: O, style: g.val },
|
|
2768
2768
|
err: null
|
|
2769
2769
|
};
|
|
2770
2770
|
} else {
|
|
2771
2771
|
if (A.length === 0)
|
|
2772
|
-
return this.error(
|
|
2772
|
+
return this.error(R.EXPECT_DATE_TIME_SKELETON, O);
|
|
2773
2773
|
var G = A;
|
|
2774
2774
|
this.locale && (G = pi(A, this.locale));
|
|
2775
|
-
var
|
|
2775
|
+
var b = {
|
|
2776
2776
|
type: Ue.dateTime,
|
|
2777
2777
|
pattern: G,
|
|
2778
2778
|
location: u.styleLocation,
|
|
2779
2779
|
parsedOptions: this.shouldParseSkeletons ? si(G) : {}
|
|
2780
|
-
}, D = l === "date" ?
|
|
2780
|
+
}, D = l === "date" ? k.date : k.time;
|
|
2781
2781
|
return {
|
|
2782
|
-
val: { type: D, value: r, location:
|
|
2782
|
+
val: { type: D, value: r, location: O, style: b },
|
|
2783
2783
|
err: null
|
|
2784
2784
|
};
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
2787
2787
|
return {
|
|
2788
2788
|
val: {
|
|
2789
|
-
type: l === "number" ?
|
|
2789
|
+
type: l === "number" ? k.number : l === "date" ? k.date : k.time,
|
|
2790
2790
|
value: r,
|
|
2791
|
-
location:
|
|
2791
|
+
location: O,
|
|
2792
2792
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2793
2793
|
},
|
|
2794
2794
|
err: null
|
|
@@ -2799,28 +2799,28 @@ var Hi = (
|
|
|
2799
2799
|
case "select": {
|
|
2800
2800
|
var E = this.clonePosition();
|
|
2801
2801
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2802
|
-
return this.error(
|
|
2802
|
+
return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, N(E, L({}, E)));
|
|
2803
2803
|
this.bumpSpace();
|
|
2804
2804
|
var S = this.parseIdentifierIfPossible(), U = 0;
|
|
2805
2805
|
if (l !== "select" && S.value === "offset") {
|
|
2806
2806
|
if (!this.bumpIf(":"))
|
|
2807
|
-
return this.error(
|
|
2807
|
+
return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
|
|
2808
2808
|
this.bumpSpace();
|
|
2809
|
-
var
|
|
2810
|
-
if (
|
|
2811
|
-
return
|
|
2812
|
-
this.bumpSpace(), S = this.parseIdentifierIfPossible(), U =
|
|
2809
|
+
var g = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2810
|
+
if (g.err)
|
|
2811
|
+
return g;
|
|
2812
|
+
this.bumpSpace(), S = this.parseIdentifierIfPossible(), U = g.val;
|
|
2813
2813
|
}
|
|
2814
2814
|
var re = this.tryParsePluralOrSelectOptions(t, l, n, S);
|
|
2815
2815
|
if (re.err)
|
|
2816
2816
|
return re;
|
|
2817
|
-
var
|
|
2818
|
-
if (
|
|
2819
|
-
return
|
|
2820
|
-
var Q =
|
|
2817
|
+
var T = this.tryParseArgumentClose(i);
|
|
2818
|
+
if (T.err)
|
|
2819
|
+
return T;
|
|
2820
|
+
var Q = N(i, this.clonePosition());
|
|
2821
2821
|
return l === "select" ? {
|
|
2822
2822
|
val: {
|
|
2823
|
-
type:
|
|
2823
|
+
type: k.select,
|
|
2824
2824
|
value: r,
|
|
2825
2825
|
options: yn(re.val),
|
|
2826
2826
|
location: Q
|
|
@@ -2828,7 +2828,7 @@ var Hi = (
|
|
|
2828
2828
|
err: null
|
|
2829
2829
|
} : {
|
|
2830
2830
|
val: {
|
|
2831
|
-
type:
|
|
2831
|
+
type: k.plural,
|
|
2832
2832
|
value: r,
|
|
2833
2833
|
options: yn(re.val),
|
|
2834
2834
|
offset: U,
|
|
@@ -2839,10 +2839,10 @@ var Hi = (
|
|
|
2839
2839
|
};
|
|
2840
2840
|
}
|
|
2841
2841
|
default:
|
|
2842
|
-
return this.error(
|
|
2842
|
+
return this.error(R.INVALID_ARGUMENT_TYPE, N(s, h));
|
|
2843
2843
|
}
|
|
2844
2844
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2845
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2845
|
+
return this.isEOF() || this.char() !== 125 ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2846
2846
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2847
2847
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2848
2848
|
var r = this.char();
|
|
@@ -2851,7 +2851,7 @@ var Hi = (
|
|
|
2851
2851
|
this.bump();
|
|
2852
2852
|
var i = this.clonePosition();
|
|
2853
2853
|
if (!this.bumpUntil("'"))
|
|
2854
|
-
return this.error(
|
|
2854
|
+
return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, N(i, this.clonePosition()));
|
|
2855
2855
|
this.bump();
|
|
2856
2856
|
break;
|
|
2857
2857
|
}
|
|
@@ -2883,7 +2883,7 @@ var Hi = (
|
|
|
2883
2883
|
try {
|
|
2884
2884
|
r = ui(t);
|
|
2885
2885
|
} catch (i) {
|
|
2886
|
-
return this.error(
|
|
2886
|
+
return this.error(R.INVALID_NUMBER_SKELETON, n);
|
|
2887
2887
|
}
|
|
2888
2888
|
return {
|
|
2889
2889
|
val: {
|
|
@@ -2897,36 +2897,36 @@ var Hi = (
|
|
|
2897
2897
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2898
2898
|
for (var o, s = !1, l = [], h = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
|
|
2899
2899
|
if (u.length === 0) {
|
|
2900
|
-
var
|
|
2900
|
+
var g = this.clonePosition();
|
|
2901
2901
|
if (n !== "select" && this.bumpIf("=")) {
|
|
2902
|
-
var
|
|
2903
|
-
if (
|
|
2904
|
-
return
|
|
2905
|
-
c =
|
|
2902
|
+
var b = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR, R.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2903
|
+
if (b.err)
|
|
2904
|
+
return b;
|
|
2905
|
+
c = N(g, this.clonePosition()), u = this.message.slice(g.offset, this.offset());
|
|
2906
2906
|
} else
|
|
2907
2907
|
break;
|
|
2908
2908
|
}
|
|
2909
2909
|
if (h.has(u))
|
|
2910
|
-
return this.error(n === "select" ?
|
|
2910
|
+
return this.error(n === "select" ? R.DUPLICATE_SELECT_ARGUMENT_SELECTOR : R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
2911
2911
|
u === "other" && (s = !0), this.bumpSpace();
|
|
2912
|
-
var
|
|
2912
|
+
var _ = this.clonePosition();
|
|
2913
2913
|
if (!this.bumpIf("{"))
|
|
2914
|
-
return this.error(n === "select" ?
|
|
2915
|
-
var
|
|
2916
|
-
if (
|
|
2917
|
-
return
|
|
2918
|
-
var
|
|
2919
|
-
if (
|
|
2920
|
-
return
|
|
2914
|
+
return this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
|
|
2915
|
+
var T = this.parseMessage(t + 1, n, r);
|
|
2916
|
+
if (T.err)
|
|
2917
|
+
return T;
|
|
2918
|
+
var O = this.tryParseArgumentClose(_);
|
|
2919
|
+
if (O.err)
|
|
2920
|
+
return O;
|
|
2921
2921
|
l.push([
|
|
2922
2922
|
u,
|
|
2923
2923
|
{
|
|
2924
|
-
value:
|
|
2925
|
-
location:
|
|
2924
|
+
value: T.val,
|
|
2925
|
+
location: N(_, this.clonePosition())
|
|
2926
2926
|
}
|
|
2927
2927
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
|
|
2928
2928
|
}
|
|
2929
|
-
return l.length === 0 ? this.error(n === "select" ?
|
|
2929
|
+
return l.length === 0 ? this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(R.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: l, err: null };
|
|
2930
2930
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
2931
2931
|
var r = 1, i = this.clonePosition();
|
|
2932
2932
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
@@ -2937,8 +2937,8 @@ var Hi = (
|
|
|
2937
2937
|
else
|
|
2938
2938
|
break;
|
|
2939
2939
|
}
|
|
2940
|
-
var h =
|
|
2941
|
-
return o ? (s *= r,
|
|
2940
|
+
var h = N(i, this.clonePosition());
|
|
2941
|
+
return o ? (s *= r, wi(s) ? { val: s, err: null } : this.error(n, h)) : this.error(t, h);
|
|
2942
2942
|
}, e.prototype.offset = function() {
|
|
2943
2943
|
return this.position.offset;
|
|
2944
2944
|
}, e.prototype.isEOF = function() {
|
|
@@ -2972,7 +2972,7 @@ var Hi = (
|
|
|
2972
2972
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
2973
2973
|
}
|
|
2974
2974
|
}, e.prototype.bumpIf = function(t) {
|
|
2975
|
-
if (
|
|
2975
|
+
if (vn(this.message, t, this.offset())) {
|
|
2976
2976
|
for (var n = 0; n < t.length; n++)
|
|
2977
2977
|
this.bump();
|
|
2978
2978
|
return !0;
|
|
@@ -3021,17 +3021,17 @@ function Mi(e) {
|
|
|
3021
3021
|
}
|
|
3022
3022
|
function Qt(e) {
|
|
3023
3023
|
e.forEach(function(t) {
|
|
3024
|
-
if (delete t.location,
|
|
3024
|
+
if (delete t.location, Vn(t) || kn(t))
|
|
3025
3025
|
for (var n in t.options)
|
|
3026
3026
|
delete t.options[n].location, Qt(t.options[n].value);
|
|
3027
|
-
else Gn(t) &&
|
|
3027
|
+
else Gn(t) && zn(t.style) || ($n(t) || jn(t)) && zt(t.style) ? delete t.style.location : Xn(t) && Qt(t.children);
|
|
3028
3028
|
});
|
|
3029
3029
|
}
|
|
3030
3030
|
function Ni(e, t) {
|
|
3031
3031
|
t === void 0 && (t = {}), t = L({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3032
3032
|
var n = new Hi(e, t).parse();
|
|
3033
3033
|
if (n.err) {
|
|
3034
|
-
var r = SyntaxError(
|
|
3034
|
+
var r = SyntaxError(R[n.err.kind]);
|
|
3035
3035
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3036
3036
|
}
|
|
3037
3037
|
return t != null && t.captureLocation || Qt(n.val), n.val;
|
|
@@ -3090,7 +3090,7 @@ var Fi = {
|
|
|
3090
3090
|
(function(e) {
|
|
3091
3091
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3092
3092
|
})(Fe || (Fe = {}));
|
|
3093
|
-
var
|
|
3093
|
+
var xt = (
|
|
3094
3094
|
/** @class */
|
|
3095
3095
|
function(e) {
|
|
3096
3096
|
Et(t, e);
|
|
@@ -3102,7 +3102,7 @@ var wt = (
|
|
|
3102
3102
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3103
3103
|
}, t;
|
|
3104
3104
|
}(Error)
|
|
3105
|
-
),
|
|
3105
|
+
), xn = (
|
|
3106
3106
|
/** @class */
|
|
3107
3107
|
function(e) {
|
|
3108
3108
|
Et(t, e);
|
|
@@ -3110,7 +3110,7 @@ var wt = (
|
|
|
3110
3110
|
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Fe.INVALID_VALUE, o) || this;
|
|
3111
3111
|
}
|
|
3112
3112
|
return t;
|
|
3113
|
-
}(
|
|
3113
|
+
}(xt)
|
|
3114
3114
|
), Gi = (
|
|
3115
3115
|
/** @class */
|
|
3116
3116
|
function(e) {
|
|
@@ -3119,7 +3119,7 @@ var wt = (
|
|
|
3119
3119
|
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Fe.INVALID_VALUE, i) || this;
|
|
3120
3120
|
}
|
|
3121
3121
|
return t;
|
|
3122
|
-
}(
|
|
3122
|
+
}(xt)
|
|
3123
3123
|
), $i = (
|
|
3124
3124
|
/** @class */
|
|
3125
3125
|
function(e) {
|
|
@@ -3128,18 +3128,18 @@ var wt = (
|
|
|
3128
3128
|
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Fe.MISSING_VALUE, r) || this;
|
|
3129
3129
|
}
|
|
3130
3130
|
return t;
|
|
3131
|
-
}(
|
|
3131
|
+
}(xt)
|
|
3132
3132
|
), ne;
|
|
3133
3133
|
(function(e) {
|
|
3134
3134
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3135
3135
|
})(ne || (ne = {}));
|
|
3136
|
-
function
|
|
3136
|
+
function ji(e) {
|
|
3137
3137
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3138
3138
|
var r = t[t.length - 1];
|
|
3139
3139
|
return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
|
|
3140
3140
|
}, []);
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3142
|
+
function Vi(e) {
|
|
3143
3143
|
return typeof e == "function";
|
|
3144
3144
|
}
|
|
3145
3145
|
function ft(e, t, n, r, i, o, s) {
|
|
@@ -3166,46 +3166,46 @@ function ft(e, t, n, r, i, o, s) {
|
|
|
3166
3166
|
});
|
|
3167
3167
|
continue;
|
|
3168
3168
|
}
|
|
3169
|
-
var
|
|
3170
|
-
if (!(i &&
|
|
3171
|
-
throw new $i(
|
|
3172
|
-
var
|
|
3169
|
+
var g = c.value;
|
|
3170
|
+
if (!(i && g in i))
|
|
3171
|
+
throw new $i(g, s);
|
|
3172
|
+
var b = i[g];
|
|
3173
3173
|
if (ii(c)) {
|
|
3174
|
-
(!
|
|
3175
|
-
type: typeof
|
|
3176
|
-
value:
|
|
3174
|
+
(!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), l.push({
|
|
3175
|
+
type: typeof b == "string" ? ne.literal : ne.object,
|
|
3176
|
+
value: b
|
|
3177
3177
|
});
|
|
3178
3178
|
continue;
|
|
3179
3179
|
}
|
|
3180
3180
|
if ($n(c)) {
|
|
3181
|
-
var
|
|
3181
|
+
var _ = typeof c.style == "string" ? r.date[c.style] : zt(c.style) ? c.style.parsedOptions : void 0;
|
|
3182
3182
|
l.push({
|
|
3183
3183
|
type: ne.literal,
|
|
3184
|
-
value: n.getDateTimeFormat(t,
|
|
3184
|
+
value: n.getDateTimeFormat(t, _).format(b)
|
|
3185
3185
|
});
|
|
3186
3186
|
continue;
|
|
3187
3187
|
}
|
|
3188
|
-
if (
|
|
3189
|
-
var
|
|
3188
|
+
if (jn(c)) {
|
|
3189
|
+
var _ = typeof c.style == "string" ? r.time[c.style] : zt(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3190
3190
|
l.push({
|
|
3191
3191
|
type: ne.literal,
|
|
3192
|
-
value: n.getDateTimeFormat(t,
|
|
3192
|
+
value: n.getDateTimeFormat(t, _).format(b)
|
|
3193
3193
|
});
|
|
3194
3194
|
continue;
|
|
3195
3195
|
}
|
|
3196
3196
|
if (Gn(c)) {
|
|
3197
|
-
var
|
|
3198
|
-
|
|
3197
|
+
var _ = typeof c.style == "string" ? r.number[c.style] : zn(c.style) ? c.style.parsedOptions : void 0;
|
|
3198
|
+
_ && _.scale && (b = b * (_.scale || 1)), l.push({
|
|
3199
3199
|
type: ne.literal,
|
|
3200
|
-
value: n.getNumberFormat(t,
|
|
3200
|
+
value: n.getNumberFormat(t, _).format(b)
|
|
3201
3201
|
});
|
|
3202
3202
|
continue;
|
|
3203
3203
|
}
|
|
3204
|
-
if (
|
|
3205
|
-
var
|
|
3206
|
-
if (!
|
|
3207
|
-
throw new Gi(
|
|
3208
|
-
var G = ft(
|
|
3204
|
+
if (Xn(c)) {
|
|
3205
|
+
var T = c.children, O = c.value, A = i[O];
|
|
3206
|
+
if (!Vi(A))
|
|
3207
|
+
throw new Gi(O, "function", s);
|
|
3208
|
+
var G = ft(T, t, n, r, i, o), D = A(G.map(function(U) {
|
|
3209
3209
|
return U.value;
|
|
3210
3210
|
}));
|
|
3211
3211
|
Array.isArray(D) || (D = [D]), l.push.apply(l, D.map(function(U) {
|
|
@@ -3215,39 +3215,39 @@ function ft(e, t, n, r, i, o, s) {
|
|
|
3215
3215
|
};
|
|
3216
3216
|
}));
|
|
3217
3217
|
}
|
|
3218
|
-
if (
|
|
3219
|
-
var E = c.options[
|
|
3218
|
+
if (Vn(c)) {
|
|
3219
|
+
var E = c.options[b] || c.options.other;
|
|
3220
3220
|
if (!E)
|
|
3221
|
-
throw new
|
|
3221
|
+
throw new xn(c.value, b, Object.keys(c.options), s);
|
|
3222
3222
|
l.push.apply(l, ft(E.value, t, n, r, i));
|
|
3223
3223
|
continue;
|
|
3224
3224
|
}
|
|
3225
|
-
if (
|
|
3226
|
-
var E = c.options["=".concat(
|
|
3225
|
+
if (kn(c)) {
|
|
3226
|
+
var E = c.options["=".concat(b)];
|
|
3227
3227
|
if (!E) {
|
|
3228
3228
|
if (!Intl.PluralRules)
|
|
3229
|
-
throw new
|
|
3229
|
+
throw new xt(`Intl.PluralRules is not available in this environment.
|
|
3230
3230
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3231
3231
|
`, Fe.MISSING_INTL_API, s);
|
|
3232
|
-
var S = n.getPluralRules(t, { type: c.pluralType }).select(
|
|
3232
|
+
var S = n.getPluralRules(t, { type: c.pluralType }).select(b - (c.offset || 0));
|
|
3233
3233
|
E = c.options[S] || c.options.other;
|
|
3234
3234
|
}
|
|
3235
3235
|
if (!E)
|
|
3236
|
-
throw new
|
|
3237
|
-
l.push.apply(l, ft(E.value, t, n, r, i,
|
|
3236
|
+
throw new xn(c.value, b, Object.keys(c.options), s);
|
|
3237
|
+
l.push.apply(l, ft(E.value, t, n, r, i, b - (c.offset || 0)));
|
|
3238
3238
|
continue;
|
|
3239
3239
|
}
|
|
3240
3240
|
}
|
|
3241
|
-
return
|
|
3241
|
+
return ji(l);
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3243
|
+
function ki(e, t) {
|
|
3244
3244
|
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3245
3245
|
return n[r] = L(L({}, e[r]), t[r] || {}), n;
|
|
3246
3246
|
}, {})) : e;
|
|
3247
3247
|
}
|
|
3248
|
-
function
|
|
3248
|
+
function Xi(e, t) {
|
|
3249
3249
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3250
|
-
return n[r] =
|
|
3250
|
+
return n[r] = ki(e[r], t[r]), n;
|
|
3251
3251
|
}, L({}, e)) : e;
|
|
3252
3252
|
}
|
|
3253
3253
|
function Gt(e) {
|
|
@@ -3264,7 +3264,7 @@ function Gt(e) {
|
|
|
3264
3264
|
}
|
|
3265
3265
|
};
|
|
3266
3266
|
}
|
|
3267
|
-
function
|
|
3267
|
+
function zi(e) {
|
|
3268
3268
|
return e === void 0 && (e = {
|
|
3269
3269
|
number: {},
|
|
3270
3270
|
dateTime: {},
|
|
@@ -3296,7 +3296,7 @@ function Xi(e) {
|
|
|
3296
3296
|
})
|
|
3297
3297
|
};
|
|
3298
3298
|
}
|
|
3299
|
-
var
|
|
3299
|
+
var Wi = (
|
|
3300
3300
|
/** @class */
|
|
3301
3301
|
function() {
|
|
3302
3302
|
function e(t, n, r, i) {
|
|
@@ -3309,8 +3309,8 @@ var zi = (
|
|
|
3309
3309
|
var u = o.formatToParts(h);
|
|
3310
3310
|
if (u.length === 1)
|
|
3311
3311
|
return u[0].value;
|
|
3312
|
-
var c = u.reduce(function(
|
|
3313
|
-
return !
|
|
3312
|
+
var c = u.reduce(function(g, b) {
|
|
3313
|
+
return !g.length || b.type !== ne.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
|
|
3314
3314
|
}, []);
|
|
3315
3315
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3316
3316
|
}, this.formatToParts = function(h) {
|
|
@@ -3333,7 +3333,7 @@ var zi = (
|
|
|
3333
3333
|
this.ast = t;
|
|
3334
3334
|
if (!Array.isArray(this.ast))
|
|
3335
3335
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3336
|
-
this.formats =
|
|
3336
|
+
this.formats = Xi(e.formats, r), this.formatters = i && i.formatters || zi(this.formatterCache);
|
|
3337
3337
|
}
|
|
3338
3338
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3339
3339
|
get: function() {
|
|
@@ -3407,7 +3407,7 @@ var zi = (
|
|
|
3407
3407
|
}, e;
|
|
3408
3408
|
}()
|
|
3409
3409
|
);
|
|
3410
|
-
function
|
|
3410
|
+
function Zi(e, t) {
|
|
3411
3411
|
if (t == null)
|
|
3412
3412
|
return;
|
|
3413
3413
|
if (t in e)
|
|
@@ -3428,16 +3428,16 @@ function Wi(e, t) {
|
|
|
3428
3428
|
r = void 0;
|
|
3429
3429
|
return r;
|
|
3430
3430
|
}
|
|
3431
|
-
const Se = {},
|
|
3431
|
+
const Se = {}, qi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), nr = (e, t) => {
|
|
3432
3432
|
if (t == null)
|
|
3433
3433
|
return;
|
|
3434
3434
|
if (t in Se && e in Se[t])
|
|
3435
3435
|
return Se[t][e];
|
|
3436
|
-
const n =
|
|
3436
|
+
const n = _t(t);
|
|
3437
3437
|
for (let r = 0; r < n.length; r++) {
|
|
3438
3438
|
const i = n[r], o = Qi(i, e);
|
|
3439
3439
|
if (o)
|
|
3440
|
-
return
|
|
3440
|
+
return qi(e, t, o);
|
|
3441
3441
|
}
|
|
3442
3442
|
};
|
|
3443
3443
|
let on;
|
|
@@ -3452,12 +3452,12 @@ function Qi(e, t) {
|
|
|
3452
3452
|
if (!rr(e))
|
|
3453
3453
|
return null;
|
|
3454
3454
|
const n = Ji(e);
|
|
3455
|
-
return
|
|
3455
|
+
return Zi(n, t);
|
|
3456
3456
|
}
|
|
3457
3457
|
function Yi(e) {
|
|
3458
3458
|
if (e == null)
|
|
3459
3459
|
return;
|
|
3460
|
-
const t =
|
|
3460
|
+
const t = _t(e);
|
|
3461
3461
|
for (let n = 0; n < t.length; n++) {
|
|
3462
3462
|
const r = t[n];
|
|
3463
3463
|
if (rr(r))
|
|
@@ -3467,7 +3467,7 @@ function Yi(e) {
|
|
|
3467
3467
|
function ir(e, ...t) {
|
|
3468
3468
|
delete Se[e], it.update((n) => (n[e] = ni.all([n[e] || {}, ...t]), n));
|
|
3469
3469
|
}
|
|
3470
|
-
|
|
3470
|
+
Ve(
|
|
3471
3471
|
[it],
|
|
3472
3472
|
([e]) => Object.keys(e)
|
|
3473
3473
|
);
|
|
@@ -3480,13 +3480,13 @@ function or(e) {
|
|
|
3480
3480
|
return dt[e];
|
|
3481
3481
|
}
|
|
3482
3482
|
function eo(e) {
|
|
3483
|
-
return
|
|
3483
|
+
return _t(e).map((t) => {
|
|
3484
3484
|
const n = or(t);
|
|
3485
3485
|
return [t, n ? [...n] : []];
|
|
3486
3486
|
}).filter(([, t]) => t.length > 0);
|
|
3487
3487
|
}
|
|
3488
3488
|
function Yt(e) {
|
|
3489
|
-
return e == null ? !1 :
|
|
3489
|
+
return e == null ? !1 : _t(e).some(
|
|
3490
3490
|
(t) => {
|
|
3491
3491
|
var n;
|
|
3492
3492
|
return (n = or(t)) == null ? void 0 : n.size;
|
|
@@ -3554,27 +3554,27 @@ function Ge() {
|
|
|
3554
3554
|
return io;
|
|
3555
3555
|
}
|
|
3556
3556
|
const $t = yt(!1);
|
|
3557
|
-
var oo = Object.defineProperty, ao = Object.defineProperties, so = Object.getOwnPropertyDescriptors,
|
|
3557
|
+
var oo = Object.defineProperty, ao = Object.defineProperties, so = Object.getOwnPropertyDescriptors, _n = Object.getOwnPropertySymbols, lo = Object.prototype.hasOwnProperty, uo = Object.prototype.propertyIsEnumerable, Tn = (e, t, n) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ho = (e, t) => {
|
|
3558
3558
|
for (var n in t || (t = {}))
|
|
3559
|
-
lo.call(t, n) &&
|
|
3560
|
-
if (
|
|
3561
|
-
for (var n of
|
|
3562
|
-
uo.call(t, n) &&
|
|
3559
|
+
lo.call(t, n) && Tn(e, n, t[n]);
|
|
3560
|
+
if (_n)
|
|
3561
|
+
for (var n of _n(t))
|
|
3562
|
+
uo.call(t, n) && Tn(e, n, t[n]);
|
|
3563
3563
|
return e;
|
|
3564
3564
|
}, co = (e, t) => ao(e, so(t));
|
|
3565
3565
|
let Kt;
|
|
3566
|
-
const
|
|
3567
|
-
function
|
|
3566
|
+
const bt = yt(null);
|
|
3567
|
+
function Bn(e) {
|
|
3568
3568
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3569
3569
|
}
|
|
3570
|
-
function
|
|
3571
|
-
const n =
|
|
3572
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3570
|
+
function _t(e, t = Ge().fallbackLocale) {
|
|
3571
|
+
const n = Bn(e);
|
|
3572
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Bn(t)])] : n;
|
|
3573
3573
|
}
|
|
3574
3574
|
function He() {
|
|
3575
3575
|
return Kt != null ? Kt : void 0;
|
|
3576
3576
|
}
|
|
3577
|
-
|
|
3577
|
+
bt.subscribe((e) => {
|
|
3578
3578
|
Kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3579
3579
|
});
|
|
3580
3580
|
const fo = (e) => {
|
|
@@ -3585,34 +3585,34 @@ const fo = (e) => {
|
|
|
3585
3585
|
() => $t.set(!0),
|
|
3586
3586
|
t
|
|
3587
3587
|
) : $t.set(!0), ar(e).then(() => {
|
|
3588
|
-
|
|
3588
|
+
bt.set(e);
|
|
3589
3589
|
}).finally(() => {
|
|
3590
3590
|
clearTimeout(n), $t.set(!1);
|
|
3591
3591
|
});
|
|
3592
3592
|
}
|
|
3593
|
-
return
|
|
3594
|
-
},
|
|
3593
|
+
return bt.set(e);
|
|
3594
|
+
}, ke = co(ho({}, bt), {
|
|
3595
3595
|
set: fo
|
|
3596
|
-
}),
|
|
3596
|
+
}), Tt = (e) => {
|
|
3597
3597
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3598
3598
|
return (r) => {
|
|
3599
3599
|
const i = JSON.stringify(r);
|
|
3600
3600
|
return i in t ? t[i] : t[i] = e(r);
|
|
3601
3601
|
};
|
|
3602
3602
|
};
|
|
3603
|
-
var po = Object.defineProperty,
|
|
3603
|
+
var po = Object.defineProperty, vt = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, wn = (e, t, n) => t in e ? po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, an = (e, t) => {
|
|
3604
3604
|
for (var n in t || (t = {}))
|
|
3605
|
-
sr.call(t, n) &&
|
|
3606
|
-
if (
|
|
3607
|
-
for (var n of
|
|
3608
|
-
lr.call(t, n) &&
|
|
3605
|
+
sr.call(t, n) && wn(e, n, t[n]);
|
|
3606
|
+
if (vt)
|
|
3607
|
+
for (var n of vt(t))
|
|
3608
|
+
lr.call(t, n) && wn(e, n, t[n]);
|
|
3609
3609
|
return e;
|
|
3610
|
-
},
|
|
3610
|
+
}, Xe = (e, t) => {
|
|
3611
3611
|
var n = {};
|
|
3612
3612
|
for (var r in e)
|
|
3613
3613
|
sr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3614
|
-
if (e != null &&
|
|
3615
|
-
for (var r of
|
|
3614
|
+
if (e != null && vt)
|
|
3615
|
+
for (var r of vt(e))
|
|
3616
3616
|
t.indexOf(r) < 0 && lr.call(e, r) && (n[r] = e[r]);
|
|
3617
3617
|
return n;
|
|
3618
3618
|
};
|
|
@@ -3621,56 +3621,56 @@ const rt = (e, t) => {
|
|
|
3621
3621
|
if (e in n && t in n[e])
|
|
3622
3622
|
return n[e][t];
|
|
3623
3623
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3624
|
-
}, mo =
|
|
3624
|
+
}, mo = Tt(
|
|
3625
3625
|
(e) => {
|
|
3626
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3626
|
+
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3627
3627
|
if (n == null)
|
|
3628
3628
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3629
3629
|
return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
|
|
3630
3630
|
}
|
|
3631
|
-
),
|
|
3631
|
+
), go = Tt(
|
|
3632
3632
|
(e) => {
|
|
3633
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3633
|
+
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3634
3634
|
if (n == null)
|
|
3635
3635
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3636
3636
|
return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3637
3637
|
}
|
|
3638
|
-
),
|
|
3638
|
+
), bo = Tt(
|
|
3639
3639
|
(e) => {
|
|
3640
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3640
|
+
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3641
3641
|
if (n == null)
|
|
3642
3642
|
throw new Error(
|
|
3643
3643
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3644
3644
|
);
|
|
3645
3645
|
return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3646
3646
|
}
|
|
3647
|
-
),
|
|
3647
|
+
), vo = (e = {}) => {
|
|
3648
3648
|
var t = e, {
|
|
3649
3649
|
locale: n = He()
|
|
3650
|
-
} = t, r =
|
|
3650
|
+
} = t, r = Xe(t, [
|
|
3651
3651
|
"locale"
|
|
3652
3652
|
]);
|
|
3653
3653
|
return mo(an({ locale: n }, r));
|
|
3654
3654
|
}, yo = (e = {}) => {
|
|
3655
3655
|
var t = e, {
|
|
3656
3656
|
locale: n = He()
|
|
3657
|
-
} = t, r =
|
|
3657
|
+
} = t, r = Xe(t, [
|
|
3658
3658
|
"locale"
|
|
3659
3659
|
]);
|
|
3660
|
-
return
|
|
3660
|
+
return go(an({ locale: n }, r));
|
|
3661
3661
|
}, Eo = (e = {}) => {
|
|
3662
3662
|
var t = e, {
|
|
3663
3663
|
locale: n = He()
|
|
3664
|
-
} = t, r =
|
|
3664
|
+
} = t, r = Xe(t, [
|
|
3665
3665
|
"locale"
|
|
3666
3666
|
]);
|
|
3667
|
-
return
|
|
3668
|
-
},
|
|
3667
|
+
return bo(an({ locale: n }, r));
|
|
3668
|
+
}, xo = Tt(
|
|
3669
3669
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3670
|
-
(e, t = He()) => new
|
|
3670
|
+
(e, t = He()) => new Wi(e, t, Ge().formats, {
|
|
3671
3671
|
ignoreTag: Ge().ignoreTag
|
|
3672
3672
|
})
|
|
3673
|
-
),
|
|
3673
|
+
), _o = (e, t = {}) => {
|
|
3674
3674
|
var n, r, i, o;
|
|
3675
3675
|
let s = t;
|
|
3676
3676
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3692,26 +3692,26 @@ const rt = (e, t) => {
|
|
|
3692
3692
|
), c;
|
|
3693
3693
|
if (!l)
|
|
3694
3694
|
return c;
|
|
3695
|
-
let
|
|
3695
|
+
let g = c;
|
|
3696
3696
|
try {
|
|
3697
|
-
|
|
3698
|
-
} catch (
|
|
3699
|
-
|
|
3697
|
+
g = xo(c, h).format(l);
|
|
3698
|
+
} catch (b) {
|
|
3699
|
+
b instanceof Error && console.warn(
|
|
3700
3700
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3701
|
-
|
|
3701
|
+
b.message
|
|
3702
3702
|
);
|
|
3703
3703
|
}
|
|
3704
|
-
return
|
|
3705
|
-
},
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3704
|
+
return g;
|
|
3705
|
+
}, To = (e, t) => Eo(t).format(e), Bo = (e, t) => yo(t).format(e), wo = (e, t) => vo(t).format(e), So = (e, t = He()) => nr(e, t), Ao = Ve([ke, it], () => _o);
|
|
3706
|
+
Ve([ke], () => To);
|
|
3707
|
+
Ve([ke], () => Bo);
|
|
3708
|
+
Ve([ke], () => wo);
|
|
3709
|
+
Ve([ke, it], () => So);
|
|
3710
3710
|
function Sn(e, t) {
|
|
3711
3711
|
ir(e, t);
|
|
3712
3712
|
}
|
|
3713
3713
|
function Co(e) {
|
|
3714
|
-
|
|
3714
|
+
ke.set(e);
|
|
3715
3715
|
}
|
|
3716
3716
|
const An = {
|
|
3717
3717
|
en: {
|
|
@@ -3893,7 +3893,7 @@ var en = { exports: {} };
|
|
|
3893
3893
|
*/
|
|
3894
3894
|
(function(e, t) {
|
|
3895
3895
|
(function(n) {
|
|
3896
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, s = n.XDomainRequest, l = n.ActiveXObject, h = n.EventSource, u = n.document, c = n.Promise,
|
|
3896
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, s = n.XDomainRequest, l = n.ActiveXObject, h = n.EventSource, u = n.document, c = n.Promise, g = n.fetch, b = n.Response, _ = n.TextDecoder, T = n.TextEncoder, O = n.AbortController;
|
|
3897
3897
|
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
|
|
3898
3898
|
u.readyState = "complete";
|
|
3899
3899
|
}, !1)), o == null && l != null && (o = function() {
|
|
@@ -3904,24 +3904,24 @@ var en = { exports: {} };
|
|
|
3904
3904
|
return f.prototype = a, new f();
|
|
3905
3905
|
}), Date.now || (Date.now = function() {
|
|
3906
3906
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3907
|
-
}),
|
|
3908
|
-
var A =
|
|
3909
|
-
|
|
3907
|
+
}), O == null) {
|
|
3908
|
+
var A = g;
|
|
3909
|
+
g = function(a, f) {
|
|
3910
3910
|
var m = f.signal;
|
|
3911
3911
|
return A(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(d) {
|
|
3912
|
-
var
|
|
3913
|
-
return m._reader =
|
|
3912
|
+
var B = d.body.getReader();
|
|
3913
|
+
return m._reader = B, m._aborted && m._reader.cancel(), {
|
|
3914
3914
|
status: d.status,
|
|
3915
3915
|
statusText: d.statusText,
|
|
3916
3916
|
headers: d.headers,
|
|
3917
3917
|
body: {
|
|
3918
3918
|
getReader: function() {
|
|
3919
|
-
return
|
|
3919
|
+
return B;
|
|
3920
3920
|
}
|
|
3921
3921
|
}
|
|
3922
3922
|
};
|
|
3923
3923
|
});
|
|
3924
|
-
},
|
|
3924
|
+
}, O = function() {
|
|
3925
3925
|
this.signal = {
|
|
3926
3926
|
_reader: null,
|
|
3927
3927
|
_aborted: !1
|
|
@@ -3934,39 +3934,39 @@ var en = { exports: {} };
|
|
|
3934
3934
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
3935
3935
|
}
|
|
3936
3936
|
G.prototype.decode = function(a) {
|
|
3937
|
-
function f(F,
|
|
3938
|
-
if (
|
|
3939
|
-
return F >= 128 >>
|
|
3940
|
-
if (
|
|
3941
|
-
return F >= 2048 >>
|
|
3942
|
-
if (
|
|
3943
|
-
return F >= 65536 >>
|
|
3937
|
+
function f(F, j, w) {
|
|
3938
|
+
if (w === 1)
|
|
3939
|
+
return F >= 128 >> j && F << j <= 2047;
|
|
3940
|
+
if (w === 2)
|
|
3941
|
+
return F >= 2048 >> j && F << j <= 55295 || F >= 57344 >> j && F << j <= 65535;
|
|
3942
|
+
if (w === 3)
|
|
3943
|
+
return F >= 65536 >> j && F << j <= 1114111;
|
|
3944
3944
|
throw new Error();
|
|
3945
3945
|
}
|
|
3946
|
-
function m(F,
|
|
3946
|
+
function m(F, j) {
|
|
3947
3947
|
if (F === 6 * 1)
|
|
3948
|
-
return
|
|
3948
|
+
return j >> 6 > 15 ? 3 : j > 31 ? 2 : 1;
|
|
3949
3949
|
if (F === 6 * 2)
|
|
3950
|
-
return
|
|
3950
|
+
return j > 15 ? 3 : 2;
|
|
3951
3951
|
if (F === 6 * 3)
|
|
3952
3952
|
return 3;
|
|
3953
3953
|
throw new Error();
|
|
3954
3954
|
}
|
|
3955
|
-
for (var d = 65533,
|
|
3956
|
-
var
|
|
3957
|
-
|
|
3955
|
+
for (var d = 65533, B = "", v = this.bitsNeeded, x = this.codePoint, $ = 0; $ < a.length; $ += 1) {
|
|
3956
|
+
var M = a[$];
|
|
3957
|
+
v !== 0 && (M < 128 || M > 191 || !f(x << 6 | M & 63, v - 6, m(v, x))) && (v = 0, x = d, B += String.fromCharCode(x)), v === 0 ? (M >= 0 && M <= 127 ? (v = 0, x = M) : M >= 192 && M <= 223 ? (v = 6 * 1, x = M & 31) : M >= 224 && M <= 239 ? (v = 6 * 2, x = M & 15) : M >= 240 && M <= 247 ? (v = 6 * 3, x = M & 7) : (v = 0, x = d), v !== 0 && !f(x, v, m(v, x)) && (v = 0, x = d)) : (v -= 6, x = x << 6 | M & 63), v === 0 && (x <= 65535 ? B += String.fromCharCode(x) : (B += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), B += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
|
|
3958
3958
|
}
|
|
3959
|
-
return this.bitsNeeded =
|
|
3959
|
+
return this.bitsNeeded = v, this.codePoint = x, B;
|
|
3960
3960
|
};
|
|
3961
3961
|
var D = function() {
|
|
3962
3962
|
try {
|
|
3963
|
-
return new
|
|
3963
|
+
return new _().decode(new T().encode("test"), { stream: !0 }) === "test";
|
|
3964
3964
|
} catch (a) {
|
|
3965
3965
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
|
|
3966
3966
|
}
|
|
3967
3967
|
return !1;
|
|
3968
3968
|
};
|
|
3969
|
-
(
|
|
3969
|
+
(_ == null || T == null || !D()) && (_ = G);
|
|
3970
3970
|
var E = function() {
|
|
3971
3971
|
};
|
|
3972
3972
|
function S(a) {
|
|
@@ -3974,64 +3974,64 @@ var en = { exports: {} };
|
|
|
3974
3974
|
}
|
|
3975
3975
|
S.prototype.open = function(a, f) {
|
|
3976
3976
|
this._abort(!0);
|
|
3977
|
-
var m = this, d = this._xhr,
|
|
3978
|
-
this._abort = function(
|
|
3979
|
-
m._sendTimeout !== 0 && (i(m._sendTimeout), m._sendTimeout = 0), (
|
|
3977
|
+
var m = this, d = this._xhr, B = 1, v = 0;
|
|
3978
|
+
this._abort = function(w) {
|
|
3979
|
+
m._sendTimeout !== 0 && (i(m._sendTimeout), m._sendTimeout = 0), (B === 1 || B === 2 || B === 3) && (B = 4, d.onload = E, d.onerror = E, d.onabort = E, d.onprogress = E, d.onreadystatechange = E, d.abort(), v !== 0 && (i(v), v = 0), w || (m.readyState = 4, m.onabort(null), m.onreadystatechange())), B = 0;
|
|
3980
3980
|
};
|
|
3981
|
-
var
|
|
3982
|
-
if (
|
|
3983
|
-
var
|
|
3981
|
+
var x = function() {
|
|
3982
|
+
if (B === 1) {
|
|
3983
|
+
var w = 0, z = "", ve = void 0;
|
|
3984
3984
|
if ("contentType" in d)
|
|
3985
|
-
|
|
3985
|
+
w = 200, z = "OK", ve = d.contentType;
|
|
3986
3986
|
else
|
|
3987
3987
|
try {
|
|
3988
|
-
|
|
3988
|
+
w = d.status, z = d.statusText, ve = d.getResponseHeader("Content-Type");
|
|
3989
3989
|
} catch (Qe) {
|
|
3990
|
-
|
|
3990
|
+
w = 0, z = "", ve = void 0;
|
|
3991
3991
|
}
|
|
3992
|
-
|
|
3992
|
+
w !== 0 && (B = 2, m.readyState = 2, m.status = w, m.statusText = z, m._contentType = ve, m.onreadystatechange());
|
|
3993
3993
|
}
|
|
3994
3994
|
}, $ = function() {
|
|
3995
|
-
if (
|
|
3996
|
-
|
|
3997
|
-
var
|
|
3995
|
+
if (x(), B === 2 || B === 3) {
|
|
3996
|
+
B = 3;
|
|
3997
|
+
var w = "";
|
|
3998
3998
|
try {
|
|
3999
|
-
|
|
4000
|
-
} catch (
|
|
3999
|
+
w = d.responseText;
|
|
4000
|
+
} catch (z) {
|
|
4001
4001
|
}
|
|
4002
|
-
m.readyState = 3, m.responseText =
|
|
4002
|
+
m.readyState = 3, m.responseText = w, m.onprogress();
|
|
4003
4003
|
}
|
|
4004
|
-
},
|
|
4005
|
-
if ((
|
|
4004
|
+
}, M = function(w, z) {
|
|
4005
|
+
if ((z == null || z.preventDefault == null) && (z = {
|
|
4006
4006
|
preventDefault: E
|
|
4007
|
-
}), $(),
|
|
4008
|
-
if (
|
|
4009
|
-
m.onload(
|
|
4010
|
-
else if (
|
|
4011
|
-
m.onerror(
|
|
4012
|
-
else if (
|
|
4013
|
-
m.onabort(
|
|
4007
|
+
}), $(), B === 1 || B === 2 || B === 3) {
|
|
4008
|
+
if (B = 4, v !== 0 && (i(v), v = 0), m.readyState = 4, w === "load")
|
|
4009
|
+
m.onload(z);
|
|
4010
|
+
else if (w === "error")
|
|
4011
|
+
m.onerror(z);
|
|
4012
|
+
else if (w === "abort")
|
|
4013
|
+
m.onabort(z);
|
|
4014
4014
|
else
|
|
4015
4015
|
throw new TypeError();
|
|
4016
4016
|
m.onreadystatechange();
|
|
4017
4017
|
}
|
|
4018
|
-
}, F = function(
|
|
4019
|
-
d != null && (d.readyState === 4 ? (!("onload" in d) || !("onerror" in d) || !("onabort" in d)) &&
|
|
4020
|
-
},
|
|
4021
|
-
|
|
4022
|
-
|
|
4018
|
+
}, F = function(w) {
|
|
4019
|
+
d != null && (d.readyState === 4 ? (!("onload" in d) || !("onerror" in d) || !("onabort" in d)) && M(d.responseText === "" ? "error" : "load", w) : d.readyState === 3 ? "onprogress" in d || $() : d.readyState === 2 && x());
|
|
4020
|
+
}, j = function() {
|
|
4021
|
+
v = r(function() {
|
|
4022
|
+
j();
|
|
4023
4023
|
}, 500), d.readyState === 3 && $();
|
|
4024
4024
|
};
|
|
4025
|
-
"onload" in d && (d.onload = function(
|
|
4026
|
-
|
|
4027
|
-
}), "onerror" in d && (d.onerror = function(
|
|
4028
|
-
|
|
4029
|
-
}), "onabort" in d && (d.onabort = function(
|
|
4030
|
-
|
|
4031
|
-
}), "onprogress" in d && (d.onprogress = $), "onreadystatechange" in d && (d.onreadystatechange = function(
|
|
4032
|
-
F(
|
|
4033
|
-
}), ("contentType" in d || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), d.open(a, f, !0), "readyState" in d && (
|
|
4034
|
-
|
|
4025
|
+
"onload" in d && (d.onload = function(w) {
|
|
4026
|
+
M("load", w);
|
|
4027
|
+
}), "onerror" in d && (d.onerror = function(w) {
|
|
4028
|
+
M("error", w);
|
|
4029
|
+
}), "onabort" in d && (d.onabort = function(w) {
|
|
4030
|
+
M("abort", w);
|
|
4031
|
+
}), "onprogress" in d && (d.onprogress = $), "onreadystatechange" in d && (d.onreadystatechange = function(w) {
|
|
4032
|
+
F(w);
|
|
4033
|
+
}), ("contentType" in d || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), d.open(a, f, !0), "readyState" in d && (v = r(function() {
|
|
4034
|
+
j();
|
|
4035
4035
|
}, 0));
|
|
4036
4036
|
}, S.prototype.abort = function() {
|
|
4037
4037
|
this._abort(!1);
|
|
@@ -4066,8 +4066,8 @@ var en = { exports: {} };
|
|
|
4066
4066
|
function re(a) {
|
|
4067
4067
|
for (var f = /* @__PURE__ */ Object.create(null), m = a.split(`\r
|
|
4068
4068
|
`), d = 0; d < m.length; d += 1) {
|
|
4069
|
-
var
|
|
4070
|
-
f[U(
|
|
4069
|
+
var B = m[d], v = B.split(": "), x = v.shift(), $ = v.join(": ");
|
|
4070
|
+
f[U(x)] = $;
|
|
4071
4071
|
}
|
|
4072
4072
|
this._map = f;
|
|
4073
4073
|
}
|
|
@@ -4076,12 +4076,12 @@ var en = { exports: {} };
|
|
|
4076
4076
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4077
4077
|
function Q() {
|
|
4078
4078
|
}
|
|
4079
|
-
Q.prototype.open = function(a, f, m, d,
|
|
4080
|
-
a.open("GET",
|
|
4079
|
+
Q.prototype.open = function(a, f, m, d, B, v, x) {
|
|
4080
|
+
a.open("GET", B);
|
|
4081
4081
|
var $ = 0;
|
|
4082
4082
|
a.onprogress = function() {
|
|
4083
|
-
var F = a.responseText,
|
|
4084
|
-
$ +=
|
|
4083
|
+
var F = a.responseText, j = F.slice($);
|
|
4084
|
+
$ += j.length, m(j);
|
|
4085
4085
|
}, a.onerror = function(F) {
|
|
4086
4086
|
F.preventDefault(), d(new Error("NetworkError"));
|
|
4087
4087
|
}, a.onload = function() {
|
|
@@ -4090,60 +4090,60 @@ var en = { exports: {} };
|
|
|
4090
4090
|
d(null);
|
|
4091
4091
|
}, a.onreadystatechange = function() {
|
|
4092
4092
|
if (a.readyState === o.HEADERS_RECEIVED) {
|
|
4093
|
-
var F = a.status,
|
|
4094
|
-
f(F,
|
|
4093
|
+
var F = a.status, j = a.statusText, w = a.getResponseHeader("Content-Type"), z = a.getAllResponseHeaders();
|
|
4094
|
+
f(F, j, w, new re(z));
|
|
4095
4095
|
}
|
|
4096
|
-
}, a.withCredentials =
|
|
4097
|
-
for (var
|
|
4098
|
-
Object.prototype.hasOwnProperty.call(
|
|
4096
|
+
}, a.withCredentials = v;
|
|
4097
|
+
for (var M in x)
|
|
4098
|
+
Object.prototype.hasOwnProperty.call(x, M) && a.setRequestHeader(M, x[M]);
|
|
4099
4099
|
return a.send(), a;
|
|
4100
4100
|
};
|
|
4101
|
-
function
|
|
4101
|
+
function X(a) {
|
|
4102
4102
|
this._headers = a;
|
|
4103
4103
|
}
|
|
4104
|
-
|
|
4104
|
+
X.prototype.get = function(a) {
|
|
4105
4105
|
return this._headers.get(a);
|
|
4106
4106
|
};
|
|
4107
|
-
function
|
|
4107
|
+
function I() {
|
|
4108
4108
|
}
|
|
4109
|
-
|
|
4110
|
-
var $ = null,
|
|
4111
|
-
return
|
|
4112
|
-
headers:
|
|
4113
|
-
credentials:
|
|
4109
|
+
I.prototype.open = function(a, f, m, d, B, v, x) {
|
|
4110
|
+
var $ = null, M = new O(), F = M.signal, j = new _();
|
|
4111
|
+
return g(B, {
|
|
4112
|
+
headers: x,
|
|
4113
|
+
credentials: v ? "include" : "same-origin",
|
|
4114
4114
|
signal: F,
|
|
4115
4115
|
cache: "no-store"
|
|
4116
|
-
}).then(function(
|
|
4117
|
-
return $ =
|
|
4116
|
+
}).then(function(w) {
|
|
4117
|
+
return $ = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new X(w.headers)), new c(function(z, ve) {
|
|
4118
4118
|
var Qe = function() {
|
|
4119
4119
|
$.read().then(function(oe) {
|
|
4120
4120
|
if (oe.done)
|
|
4121
|
-
|
|
4121
|
+
z(void 0);
|
|
4122
4122
|
else {
|
|
4123
|
-
var K =
|
|
4123
|
+
var K = j.decode(oe.value, { stream: !0 });
|
|
4124
4124
|
m(K), Qe();
|
|
4125
4125
|
}
|
|
4126
4126
|
}).catch(function(oe) {
|
|
4127
|
-
|
|
4127
|
+
ve(oe);
|
|
4128
4128
|
});
|
|
4129
4129
|
};
|
|
4130
4130
|
Qe();
|
|
4131
4131
|
});
|
|
4132
|
-
}).catch(function(
|
|
4133
|
-
if (
|
|
4134
|
-
return
|
|
4135
|
-
}).then(function(
|
|
4136
|
-
d(
|
|
4132
|
+
}).catch(function(w) {
|
|
4133
|
+
if (w.name !== "AbortError")
|
|
4134
|
+
return w;
|
|
4135
|
+
}).then(function(w) {
|
|
4136
|
+
d(w);
|
|
4137
4137
|
}), {
|
|
4138
4138
|
abort: function() {
|
|
4139
|
-
$ != null && $.cancel(),
|
|
4139
|
+
$ != null && $.cancel(), M.abort();
|
|
4140
4140
|
}
|
|
4141
4141
|
};
|
|
4142
4142
|
};
|
|
4143
4143
|
function y() {
|
|
4144
4144
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4145
4145
|
}
|
|
4146
|
-
function
|
|
4146
|
+
function V(a) {
|
|
4147
4147
|
r(function() {
|
|
4148
4148
|
throw a;
|
|
4149
4149
|
}, 0);
|
|
@@ -4153,27 +4153,27 @@ var en = { exports: {} };
|
|
|
4153
4153
|
var f = this._listeners[a.type];
|
|
4154
4154
|
if (f != null)
|
|
4155
4155
|
for (var m = f.length, d = 0; d < m; d += 1) {
|
|
4156
|
-
var
|
|
4156
|
+
var B = f[d];
|
|
4157
4157
|
try {
|
|
4158
|
-
typeof
|
|
4159
|
-
} catch (
|
|
4160
|
-
|
|
4158
|
+
typeof B.handleEvent == "function" ? B.handleEvent(a) : B.call(this, a);
|
|
4159
|
+
} catch (v) {
|
|
4160
|
+
V(v);
|
|
4161
4161
|
}
|
|
4162
4162
|
}
|
|
4163
4163
|
}, y.prototype.addEventListener = function(a, f) {
|
|
4164
4164
|
a = String(a);
|
|
4165
4165
|
var m = this._listeners, d = m[a];
|
|
4166
4166
|
d == null && (d = [], m[a] = d);
|
|
4167
|
-
for (var
|
|
4168
|
-
d[
|
|
4169
|
-
|
|
4167
|
+
for (var B = !1, v = 0; v < d.length; v += 1)
|
|
4168
|
+
d[v] === f && (B = !0);
|
|
4169
|
+
B || d.push(f);
|
|
4170
4170
|
}, y.prototype.removeEventListener = function(a, f) {
|
|
4171
4171
|
a = String(a);
|
|
4172
4172
|
var m = this._listeners, d = m[a];
|
|
4173
4173
|
if (d != null) {
|
|
4174
|
-
for (var
|
|
4175
|
-
d[
|
|
4176
|
-
|
|
4174
|
+
for (var B = [], v = 0; v < d.length; v += 1)
|
|
4175
|
+
d[v] !== f && B.push(d[v]);
|
|
4176
|
+
B.length === 0 ? delete m[a] : m[a] = B;
|
|
4177
4177
|
}
|
|
4178
4178
|
};
|
|
4179
4179
|
function he(a) {
|
|
@@ -4183,24 +4183,24 @@ var en = { exports: {} };
|
|
|
4183
4183
|
he.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
|
|
4184
4184
|
}
|
|
4185
4185
|
ot.prototype = Object.create(he.prototype);
|
|
4186
|
-
function
|
|
4186
|
+
function ge(a, f) {
|
|
4187
4187
|
he.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
|
|
4188
4188
|
}
|
|
4189
|
-
|
|
4190
|
-
function
|
|
4189
|
+
ge.prototype = Object.create(he.prototype);
|
|
4190
|
+
function ze(a, f) {
|
|
4191
4191
|
he.call(this, a), this.error = f.error;
|
|
4192
4192
|
}
|
|
4193
|
-
|
|
4194
|
-
var
|
|
4193
|
+
ze.prototype = Object.create(he.prototype);
|
|
4194
|
+
var We = -1, pe = 0, Te = 1, be = 2, Ze = -1, me = 0, Oe = 1, at = 2, Bt = 3, st = /^text\/event\-stream(;.*)?$/i, wt = 1e3, St = 18e6, qe = function(a, f) {
|
|
4195
4195
|
var m = a == null ? f : parseInt(a, 10);
|
|
4196
4196
|
return m !== m && (m = f), Je(m);
|
|
4197
4197
|
}, Je = function(a) {
|
|
4198
|
-
return Math.min(Math.max(a,
|
|
4199
|
-
},
|
|
4198
|
+
return Math.min(Math.max(a, wt), St);
|
|
4199
|
+
}, Be = function(a, f, m) {
|
|
4200
4200
|
try {
|
|
4201
4201
|
typeof f == "function" && f.call(a, m);
|
|
4202
4202
|
} catch (d) {
|
|
4203
|
-
|
|
4203
|
+
V(d);
|
|
4204
4204
|
}
|
|
4205
4205
|
};
|
|
4206
4206
|
function ie(a, f) {
|
|
@@ -4209,49 +4209,49 @@ var en = { exports: {} };
|
|
|
4209
4209
|
function At() {
|
|
4210
4210
|
return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
|
|
4211
4211
|
}
|
|
4212
|
-
var Ct =
|
|
4212
|
+
var Ct = g != null && b != null && "body" in b.prototype;
|
|
4213
4213
|
function p(a, f, m) {
|
|
4214
4214
|
f = String(f);
|
|
4215
|
-
var d = !!m.withCredentials,
|
|
4215
|
+
var d = !!m.withCredentials, B = m.lastEventIdQueryParameterName || "lastEventId", v = Je(1e3), x = qe(m.heartbeatTimeout, 45e3), $ = "", M = v, F = !1, j = 0, w = m.headers || {}, z = m.Transport, ve = Ct && z == null ? void 0 : new S(z != null ? new z() : At()), Qe = z != null && typeof z != "string" ? new z() : ve == null ? new I() : new Q(), oe = void 0, K = 0, ce = We, Re = "", lt = "", ye = "", ut = "", ee = me, Ht = 0, Ae = 0, hr = function(q, Z, ae, se) {
|
|
4216
4216
|
if (ce === pe)
|
|
4217
|
-
if (
|
|
4218
|
-
ce =
|
|
4219
|
-
var te = new
|
|
4220
|
-
status:
|
|
4221
|
-
statusText:
|
|
4217
|
+
if (q === 200 && ae != null && st.test(ae)) {
|
|
4218
|
+
ce = Te, F = Date.now(), M = v, a.readyState = Te;
|
|
4219
|
+
var te = new ge("open", {
|
|
4220
|
+
status: q,
|
|
4221
|
+
statusText: Z,
|
|
4222
4222
|
headers: se
|
|
4223
4223
|
});
|
|
4224
|
-
a.dispatchEvent(te),
|
|
4224
|
+
a.dispatchEvent(te), Be(a, a.onopen, te);
|
|
4225
4225
|
} else {
|
|
4226
4226
|
var J = "";
|
|
4227
|
-
|
|
4228
|
-
var te = new
|
|
4229
|
-
status:
|
|
4230
|
-
statusText:
|
|
4227
|
+
q !== 200 ? (Z && (Z = Z.replace(/\s+/g, " ")), J = "EventSource's response has a status " + q + " " + Z + " that is not 200. Aborting the connection.") : J = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
|
|
4228
|
+
var te = new ge("error", {
|
|
4229
|
+
status: q,
|
|
4230
|
+
statusText: Z,
|
|
4231
4231
|
headers: se
|
|
4232
4232
|
});
|
|
4233
|
-
a.dispatchEvent(te),
|
|
4233
|
+
a.dispatchEvent(te), Be(a, a.onerror, te), console.error(J);
|
|
4234
4234
|
}
|
|
4235
|
-
}, cr = function(
|
|
4236
|
-
if (ce ===
|
|
4237
|
-
for (var
|
|
4238
|
-
var se =
|
|
4239
|
-
(se === 10 || se === 13) && (
|
|
4235
|
+
}, cr = function(q) {
|
|
4236
|
+
if (ce === Te) {
|
|
4237
|
+
for (var Z = -1, ae = 0; ae < q.length; ae += 1) {
|
|
4238
|
+
var se = q.charCodeAt(ae);
|
|
4239
|
+
(se === 10 || se === 13) && (Z = ae);
|
|
4240
4240
|
}
|
|
4241
|
-
var te = (
|
|
4242
|
-
ut = (
|
|
4241
|
+
var te = (Z !== -1 ? ut : "") + q.slice(0, Z + 1);
|
|
4242
|
+
ut = (Z === -1 ? ut : "") + q.slice(Z + 1), q !== "" && (F = Date.now(), j += q.length);
|
|
4243
4243
|
for (var J = 0; J < te.length; J += 1) {
|
|
4244
4244
|
var se = te.charCodeAt(J);
|
|
4245
|
-
if (ee ===
|
|
4245
|
+
if (ee === Ze && se === 10)
|
|
4246
4246
|
ee = me;
|
|
4247
|
-
else if (ee ===
|
|
4247
|
+
else if (ee === Ze && (ee = me), se === 13 || se === 10) {
|
|
4248
4248
|
if (ee !== me) {
|
|
4249
4249
|
ee === Oe && (Ae = J + 1);
|
|
4250
|
-
var Ee = te.slice(Ht, Ae - 1),
|
|
4250
|
+
var Ee = te.slice(Ht, Ae - 1), xe = te.slice(Ae + (Ae < J && te.charCodeAt(Ae) === 32 ? 1 : 0), J);
|
|
4251
4251
|
Ee === "data" ? (Re += `
|
|
4252
|
-
`, Re +=
|
|
4252
|
+
`, Re += xe) : Ee === "id" ? lt = xe : Ee === "event" ? ye = xe : Ee === "retry" ? (v = qe(xe, v), M = v) : Ee === "heartbeatTimeout" && (x = qe(xe, x), K !== 0 && (i(K), K = r(function() {
|
|
4253
4253
|
Ye();
|
|
4254
|
-
},
|
|
4254
|
+
}, x)));
|
|
4255
4255
|
}
|
|
4256
4256
|
if (ee === me) {
|
|
4257
4257
|
if (Re !== "") {
|
|
@@ -4260,47 +4260,47 @@ var en = { exports: {} };
|
|
|
4260
4260
|
data: Re.slice(1),
|
|
4261
4261
|
lastEventId: lt
|
|
4262
4262
|
});
|
|
4263
|
-
if (a.dispatchEvent(Me), ye === "open" ?
|
|
4263
|
+
if (a.dispatchEvent(Me), ye === "open" ? Be(a, a.onopen, Me) : ye === "message" ? Be(a, a.onmessage, Me) : ye === "error" && Be(a, a.onerror, Me), ce === be)
|
|
4264
4264
|
return;
|
|
4265
4265
|
}
|
|
4266
4266
|
Re = "", ye = "";
|
|
4267
4267
|
}
|
|
4268
|
-
ee = se === 13 ?
|
|
4268
|
+
ee = se === 13 ? Ze : me;
|
|
4269
4269
|
} else
|
|
4270
|
-
ee === me && (Ht = J, ee = Oe), ee === Oe ? se === 58 && (Ae = J + 1, ee = at) : ee === at && (ee =
|
|
4270
|
+
ee === me && (Ht = J, ee = Oe), ee === Oe ? se === 58 && (Ae = J + 1, ee = at) : ee === at && (ee = Bt);
|
|
4271
4271
|
}
|
|
4272
4272
|
}
|
|
4273
|
-
}, ln = function(
|
|
4274
|
-
if (ce ===
|
|
4275
|
-
ce =
|
|
4273
|
+
}, ln = function(q) {
|
|
4274
|
+
if (ce === Te || ce === pe) {
|
|
4275
|
+
ce = We, K !== 0 && (i(K), K = 0), K = r(function() {
|
|
4276
4276
|
Ye();
|
|
4277
|
-
},
|
|
4278
|
-
var
|
|
4279
|
-
a.dispatchEvent(
|
|
4277
|
+
}, M), M = Je(Math.min(v * 16, M * 2)), a.readyState = pe;
|
|
4278
|
+
var Z = new ze("error", { error: q });
|
|
4279
|
+
a.dispatchEvent(Z), Be(a, a.onerror, Z), q != null && console.error(q);
|
|
4280
4280
|
}
|
|
4281
4281
|
}, Ot = function() {
|
|
4282
|
-
ce =
|
|
4282
|
+
ce = be, oe != null && (oe.abort(), oe = void 0), K !== 0 && (i(K), K = 0), a.readyState = be;
|
|
4283
4283
|
}, Ye = function() {
|
|
4284
|
-
if (K = 0, ce !==
|
|
4284
|
+
if (K = 0, ce !== We) {
|
|
4285
4285
|
if (!F && oe != null)
|
|
4286
|
-
ln(new Error("No activity within " +
|
|
4286
|
+
ln(new Error("No activity within " + x + " milliseconds. " + (ce === pe ? "No response received." : j + " chars received.") + " Reconnecting.")), oe != null && (oe.abort(), oe = void 0);
|
|
4287
4287
|
else {
|
|
4288
|
-
var
|
|
4288
|
+
var q = Math.max((F || Date.now()) + x - Date.now(), 1);
|
|
4289
4289
|
F = !1, K = r(function() {
|
|
4290
4290
|
Ye();
|
|
4291
|
-
},
|
|
4291
|
+
}, q);
|
|
4292
4292
|
}
|
|
4293
4293
|
return;
|
|
4294
4294
|
}
|
|
4295
|
-
F = !1,
|
|
4295
|
+
F = !1, j = 0, K = r(function() {
|
|
4296
4296
|
Ye();
|
|
4297
|
-
},
|
|
4298
|
-
var
|
|
4297
|
+
}, x), ce = pe, Re = "", ye = "", lt = $, ut = "", Ht = 0, Ae = 0, ee = me;
|
|
4298
|
+
var Z = f;
|
|
4299
4299
|
if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && $ !== "") {
|
|
4300
4300
|
var ae = f.indexOf("?");
|
|
4301
|
-
|
|
4302
|
-
return Me ===
|
|
4303
|
-
}),
|
|
4301
|
+
Z = ae === -1 ? f : f.slice(0, ae + 1) + f.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Me) {
|
|
4302
|
+
return Me === B ? "" : xe;
|
|
4303
|
+
}), Z += (f.indexOf("?") === -1 ? "?" : "&") + B + "=" + encodeURIComponent($);
|
|
4304
4304
|
}
|
|
4305
4305
|
var se = a.withCredentials, te = {};
|
|
4306
4306
|
te.Accept = "text/event-stream";
|
|
@@ -4309,16 +4309,16 @@ var en = { exports: {} };
|
|
|
4309
4309
|
for (var Ee in J)
|
|
4310
4310
|
Object.prototype.hasOwnProperty.call(J, Ee) && (te[Ee] = J[Ee]);
|
|
4311
4311
|
try {
|
|
4312
|
-
oe = Qe.open(
|
|
4313
|
-
} catch (
|
|
4314
|
-
throw Ot(),
|
|
4312
|
+
oe = Qe.open(ve, hr, cr, ln, Z, se, te);
|
|
4313
|
+
} catch (xe) {
|
|
4314
|
+
throw Ot(), xe;
|
|
4315
4315
|
}
|
|
4316
4316
|
};
|
|
4317
|
-
a.url = f, a.readyState = pe, a.withCredentials = d, a.headers =
|
|
4317
|
+
a.url = f, a.readyState = pe, a.withCredentials = d, a.headers = w, a._close = Ot, Ye();
|
|
4318
4318
|
}
|
|
4319
|
-
ie.prototype = Object.create(y.prototype), ie.prototype.CONNECTING = pe, ie.prototype.OPEN =
|
|
4319
|
+
ie.prototype = Object.create(y.prototype), ie.prototype.CONNECTING = pe, ie.prototype.OPEN = Te, ie.prototype.CLOSED = be, ie.prototype.close = function() {
|
|
4320
4320
|
this._close();
|
|
4321
|
-
}, ie.CONNECTING = pe, ie.OPEN =
|
|
4321
|
+
}, ie.CONNECTING = pe, ie.OPEN = Te, ie.CLOSED = be, ie.prototype.withCredentials = void 0;
|
|
4322
4322
|
var H = h;
|
|
4323
4323
|
o != null && (h == null || !("withCredentials" in h.prototype)) && (H = ie), function(a) {
|
|
4324
4324
|
{
|
|
@@ -4369,8 +4369,8 @@ function pt(e, t) {
|
|
|
4369
4369
|
if (u || c)
|
|
4370
4370
|
r = c ? e.value : e;
|
|
4371
4371
|
else if (typeof e == "string") {
|
|
4372
|
-
var
|
|
4373
|
-
r = e.replace(/\((.*)\)/, "-$1").replace(
|
|
4372
|
+
var g = new RegExp("[^-\\d" + i + "]", "g"), b = new RegExp("\\" + i, "g");
|
|
4373
|
+
r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(b, "."), r = r || 0;
|
|
4374
4374
|
} else {
|
|
4375
4375
|
if (o)
|
|
4376
4376
|
throw Error("Invalid Input");
|
|
@@ -4473,7 +4473,7 @@ fe.prototype = {
|
|
|
4473
4473
|
}
|
|
4474
4474
|
};
|
|
4475
4475
|
function Po(e) {
|
|
4476
|
-
yr(e, "svelte-
|
|
4476
|
+
yr(e, "svelte-bn5dkz", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw-header-contrast, var(--emw-color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw-color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw-color-primary);box-shadow:0px 0px 0px 2px inset var(--emw-color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
4477
4477
|
}
|
|
4478
4478
|
function Cn(e, t, n) {
|
|
4479
4479
|
const r = e.slice();
|
|
@@ -4487,31 +4487,31 @@ function On(e) {
|
|
|
4487
4487
|
let t, n, r, i, o, s, l, h, u = (
|
|
4488
4488
|
/*$_*/
|
|
4489
4489
|
e[5]("Title") + ""
|
|
4490
|
-
), c,
|
|
4490
|
+
), c, g, b, _, T, O, A = (
|
|
4491
4491
|
/*$_*/
|
|
4492
4492
|
e[5]("DepositButton") + ""
|
|
4493
|
-
), G, D, E, S, U, re, Q =
|
|
4493
|
+
), G, D, E, S, U, re, Q = gt(Object.keys(
|
|
4494
4494
|
/*balances*/
|
|
4495
4495
|
e[1]
|
|
4496
|
-
)),
|
|
4497
|
-
for (let
|
|
4498
|
-
|
|
4496
|
+
)), X = [];
|
|
4497
|
+
for (let I = 0; I < Q.length; I += 1)
|
|
4498
|
+
X[I] = Mn(Cn(e, Q, I));
|
|
4499
4499
|
return {
|
|
4500
4500
|
c() {
|
|
4501
|
-
t =
|
|
4502
|
-
for (let
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
(e[3] ? "Open" : "")
|
|
4506
|
-
(e[3] ? "Open" : "")
|
|
4507
|
-
(e[3] ? "Open" : "")
|
|
4508
|
-
(e[3] ? "Open" : "")
|
|
4501
|
+
t = W("div"), n = W("div"), i = de(), o = W("div"), s = W("div"), l = W("div"), h = W("p"), c = _e(u), g = de(), b = W("div");
|
|
4502
|
+
for (let I = 0; I < X.length; I += 1)
|
|
4503
|
+
X[I].c();
|
|
4504
|
+
_ = de(), T = W("div"), O = W("button"), G = _e(A), P(n, "class", r = "BalanceModalClose " + /*modalOpened*/
|
|
4505
|
+
(e[3] ? "Open" : "")), P(h, "class", "BalanceModalTitle"), P(l, "class", "BalanceModalHeader"), P(b, "class", "BalanceModalBody"), P(O, "class", "BalanceModalAction"), P(T, "class", "BalanceModalFooter"), P(s, "class", D = "ModalContent " + /*modalOpened*/
|
|
4506
|
+
(e[3] ? "Open" : "")), P(o, "class", E = "BalanceModal " + /*modalOpened*/
|
|
4507
|
+
(e[3] ? "Open" : "")), P(t, "class", S = "BalanceModalWrapper " + /*modalOpened*/
|
|
4508
|
+
(e[3] ? "Open" : ""));
|
|
4509
4509
|
},
|
|
4510
|
-
m(
|
|
4511
|
-
|
|
4512
|
-
for (let
|
|
4513
|
-
|
|
4514
|
-
C(s,
|
|
4510
|
+
m(I, y) {
|
|
4511
|
+
je(I, t, y), C(t, n), C(t, i), C(t, o), C(o, s), C(s, l), C(l, h), C(h, c), C(s, g), C(s, b);
|
|
4512
|
+
for (let V = 0; V < X.length; V += 1)
|
|
4513
|
+
X[V] && X[V].m(b, null);
|
|
4514
|
+
C(s, _), C(s, T), C(T, O), C(O, G), U || (re = [
|
|
4515
4515
|
mt(
|
|
4516
4516
|
n,
|
|
4517
4517
|
"click",
|
|
@@ -4519,45 +4519,45 @@ function On(e) {
|
|
|
4519
4519
|
e[24]
|
|
4520
4520
|
),
|
|
4521
4521
|
mt(
|
|
4522
|
-
|
|
4522
|
+
O,
|
|
4523
4523
|
"click",
|
|
4524
4524
|
/*click_handler_2*/
|
|
4525
4525
|
e[25]
|
|
4526
4526
|
)
|
|
4527
4527
|
], U = !0);
|
|
4528
4528
|
},
|
|
4529
|
-
p(
|
|
4529
|
+
p(I, y) {
|
|
4530
4530
|
if (y[0] & /*modalOpened*/
|
|
4531
4531
|
8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
|
|
4532
|
-
(
|
|
4532
|
+
(I[3] ? "Open" : "")) && P(n, "class", r), y[0] & /*$_*/
|
|
4533
4533
|
32 && u !== (u = /*$_*/
|
|
4534
|
-
|
|
4534
|
+
I[5]("Title") + "") && we(c, u), y[0] & /*balances, currency, formatBalance, $_*/
|
|
4535
4535
|
178) {
|
|
4536
|
-
Q =
|
|
4536
|
+
Q = gt(Object.keys(
|
|
4537
4537
|
/*balances*/
|
|
4538
|
-
|
|
4538
|
+
I[1]
|
|
4539
4539
|
));
|
|
4540
|
-
let
|
|
4541
|
-
for (
|
|
4542
|
-
const he = Cn(
|
|
4543
|
-
|
|
4540
|
+
let V;
|
|
4541
|
+
for (V = 0; V < Q.length; V += 1) {
|
|
4542
|
+
const he = Cn(I, Q, V);
|
|
4543
|
+
X[V] ? X[V].p(he, y) : (X[V] = Mn(he), X[V].c(), X[V].m(b, null));
|
|
4544
4544
|
}
|
|
4545
|
-
for (;
|
|
4546
|
-
|
|
4547
|
-
|
|
4545
|
+
for (; V < X.length; V += 1)
|
|
4546
|
+
X[V].d(1);
|
|
4547
|
+
X.length = Q.length;
|
|
4548
4548
|
}
|
|
4549
4549
|
y[0] & /*$_*/
|
|
4550
4550
|
32 && A !== (A = /*$_*/
|
|
4551
|
-
|
|
4551
|
+
I[5]("DepositButton") + "") && we(G, A), y[0] & /*modalOpened*/
|
|
4552
4552
|
8 && D !== (D = "ModalContent " + /*modalOpened*/
|
|
4553
|
-
(
|
|
4553
|
+
(I[3] ? "Open" : "")) && P(s, "class", D), y[0] & /*modalOpened*/
|
|
4554
4554
|
8 && E !== (E = "BalanceModal " + /*modalOpened*/
|
|
4555
|
-
(
|
|
4555
|
+
(I[3] ? "Open" : "")) && P(o, "class", E), y[0] & /*modalOpened*/
|
|
4556
4556
|
8 && S !== (S = "BalanceModalWrapper " + /*modalOpened*/
|
|
4557
|
-
(
|
|
4557
|
+
(I[3] ? "Open" : "")) && P(t, "class", S);
|
|
4558
4558
|
},
|
|
4559
|
-
d(
|
|
4560
|
-
|
|
4559
|
+
d(I) {
|
|
4560
|
+
I && Ce(t), Dn(X, I), U = !1, $e(re);
|
|
4561
4561
|
}
|
|
4562
4562
|
};
|
|
4563
4563
|
}
|
|
@@ -4577,7 +4577,7 @@ function Rn(e) {
|
|
|
4577
4577
|
e[50].productType
|
|
4578
4578
|
)
|
|
4579
4579
|
) : "") + ""
|
|
4580
|
-
), l, h, u, c,
|
|
4580
|
+
), l, h, u, c, g = (
|
|
4581
4581
|
/*b*/
|
|
4582
4582
|
(e[50].amount ? (
|
|
4583
4583
|
/*formatBalance*/
|
|
@@ -4586,16 +4586,16 @@ function Rn(e) {
|
|
|
4586
4586
|
e[50].amount
|
|
4587
4587
|
)
|
|
4588
4588
|
) : "0") + ""
|
|
4589
|
-
),
|
|
4589
|
+
), b, _, T, O;
|
|
4590
4590
|
return {
|
|
4591
4591
|
c() {
|
|
4592
|
-
t =
|
|
4592
|
+
t = W("div"), n = W("p"), i = _e(r), o = de(), l = _e(s), h = de(), u = W("p"), c = W("span"), b = _e(g), _ = de(), T = W("span"), O = _e(
|
|
4593
4593
|
/*currency*/
|
|
4594
4594
|
e[4]
|
|
4595
|
-
),
|
|
4595
|
+
), P(n, "class", "BalanceModalText"), P(c, "class", "BalanceModalAmount"), P(T, "class", "BalanceModalCurrency"), P(u, "class", "BalanceModalValue"), P(t, "class", "BalanceModalRowLine");
|
|
4596
4596
|
},
|
|
4597
4597
|
m(A, G) {
|
|
4598
|
-
|
|
4598
|
+
je(A, t, G), C(t, n), C(n, i), C(n, o), C(n, l), C(t, h), C(t, u), C(u, c), C(c, b), C(u, _), C(u, T), C(T, O);
|
|
4599
4599
|
},
|
|
4600
4600
|
p(A, G) {
|
|
4601
4601
|
G[0] & /*$_, balances*/
|
|
@@ -4603,7 +4603,7 @@ function Rn(e) {
|
|
|
4603
4603
|
A[5](
|
|
4604
4604
|
/*k*/
|
|
4605
4605
|
A[47]
|
|
4606
|
-
) + "") &&
|
|
4606
|
+
) + "") && we(i, r), G[0] & /*balances, $_*/
|
|
4607
4607
|
34 && s !== (s = /*b*/
|
|
4608
4608
|
(A[50].productType ? (
|
|
4609
4609
|
/*$_*/
|
|
@@ -4611,17 +4611,17 @@ function Rn(e) {
|
|
|
4611
4611
|
/*b*/
|
|
4612
4612
|
A[50].productType
|
|
4613
4613
|
)
|
|
4614
|
-
) : "") + "") &&
|
|
4615
|
-
2 &&
|
|
4614
|
+
) : "") + "") && we(l, s), G[0] & /*balances*/
|
|
4615
|
+
2 && g !== (g = /*b*/
|
|
4616
4616
|
(A[50].amount ? (
|
|
4617
4617
|
/*formatBalance*/
|
|
4618
4618
|
A[7](
|
|
4619
4619
|
/*b*/
|
|
4620
4620
|
A[50].amount
|
|
4621
4621
|
)
|
|
4622
|
-
) : "0") + "") &&
|
|
4623
|
-
16 &&
|
|
4624
|
-
|
|
4622
|
+
) : "0") + "") && we(b, g), G[0] & /*currency*/
|
|
4623
|
+
16 && we(
|
|
4624
|
+
O,
|
|
4625
4625
|
/*currency*/
|
|
4626
4626
|
A[4]
|
|
4627
4627
|
);
|
|
@@ -4632,7 +4632,7 @@ function Rn(e) {
|
|
|
4632
4632
|
};
|
|
4633
4633
|
}
|
|
4634
4634
|
function Mn(e) {
|
|
4635
|
-
let t, n, r =
|
|
4635
|
+
let t, n, r = gt(
|
|
4636
4636
|
/*balances*/
|
|
4637
4637
|
e[1][
|
|
4638
4638
|
/*k*/
|
|
@@ -4643,13 +4643,13 @@ function Mn(e) {
|
|
|
4643
4643
|
i[o] = Rn(Hn(e, r, o));
|
|
4644
4644
|
return {
|
|
4645
4645
|
c() {
|
|
4646
|
-
t =
|
|
4646
|
+
t = W("div");
|
|
4647
4647
|
for (let o = 0; o < i.length; o += 1)
|
|
4648
4648
|
i[o].c();
|
|
4649
|
-
n = de(),
|
|
4649
|
+
n = de(), P(t, "class", "BalanceModalRowBoth");
|
|
4650
4650
|
},
|
|
4651
4651
|
m(o, s) {
|
|
4652
|
-
|
|
4652
|
+
je(o, t, s);
|
|
4653
4653
|
for (let l = 0; l < i.length; l += 1)
|
|
4654
4654
|
i[l] && i[l].m(t, null);
|
|
4655
4655
|
C(t, n);
|
|
@@ -4657,7 +4657,7 @@ function Mn(e) {
|
|
|
4657
4657
|
p(o, s) {
|
|
4658
4658
|
if (s[0] & /*currency, balances, formatBalance, $_*/
|
|
4659
4659
|
178) {
|
|
4660
|
-
r =
|
|
4660
|
+
r = gt(
|
|
4661
4661
|
/*balances*/
|
|
4662
4662
|
o[1][
|
|
4663
4663
|
/*k*/
|
|
@@ -4683,10 +4683,10 @@ function Nn(e) {
|
|
|
4683
4683
|
let t, n, r;
|
|
4684
4684
|
return {
|
|
4685
4685
|
c() {
|
|
4686
|
-
t =
|
|
4686
|
+
t = W("div"), P(t, "class", "ShowBalanceModalOverlay");
|
|
4687
4687
|
},
|
|
4688
4688
|
m(i, o) {
|
|
4689
|
-
|
|
4689
|
+
je(i, t, o), n || (r = mt(
|
|
4690
4690
|
t,
|
|
4691
4691
|
"click",
|
|
4692
4692
|
/*click_handler_3*/
|
|
@@ -4709,7 +4709,7 @@ function Lo(e) {
|
|
|
4709
4709
|
e[1].Total[0].amount
|
|
4710
4710
|
)
|
|
4711
4711
|
) : "0") + ""
|
|
4712
|
-
), s, l, h, u, c,
|
|
4712
|
+
), s, l, h, u, c, g, b, _, T, O, A, G, D = (
|
|
4713
4713
|
/*showBalance*/
|
|
4714
4714
|
e[2] && On(e)
|
|
4715
4715
|
), E = (
|
|
@@ -4718,14 +4718,14 @@ function Lo(e) {
|
|
|
4718
4718
|
);
|
|
4719
4719
|
return {
|
|
4720
4720
|
c() {
|
|
4721
|
-
t =
|
|
4721
|
+
t = W("div"), n = W("div"), r = W("div"), i = W("p"), s = _e(o), l = de(), h = _e(
|
|
4722
4722
|
/*currency*/
|
|
4723
4723
|
e[4]
|
|
4724
|
-
), u = de(), c =
|
|
4725
|
-
|
|
4724
|
+
), u = de(), c = W("span"), g = cn("svg"), b = cn("path"), T = de(), D && D.c(), O = de(), E && E.c(), P(b, "id", "arrow"), P(b, "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"), P(b, "transform", "translate(-274.511 -441.088)"), P(b, "fill", "#d1d1d1"), P(g, "xmlns", "http://www.w3.org/2000/svg"), P(g, "width", "14"), P(g, "height", "6.835"), P(g, "viewBox", "0 0 14 6.835"), P(c, "class", _ = /*modalOpened*/
|
|
4725
|
+
e[3] ? "TriangleActive" : "TriangleInactive"), P(r, "class", "BalanceValue"), P(n, "class", "ShowBalance");
|
|
4726
4726
|
},
|
|
4727
4727
|
m(S, U) {
|
|
4728
|
-
|
|
4728
|
+
je(S, t, U), C(t, n), C(n, r), C(r, i), C(i, s), C(i, l), C(i, h), C(r, u), C(r, c), C(c, g), C(g, b), C(n, T), D && D.m(n, null), C(t, O), E && E.m(t, null), e[27](t), A || (G = mt(
|
|
4729
4729
|
r,
|
|
4730
4730
|
"click",
|
|
4731
4731
|
/*click_handler*/
|
|
@@ -4741,14 +4741,14 @@ function Lo(e) {
|
|
|
4741
4741
|
/*balances*/
|
|
4742
4742
|
S[1].Total[0].amount
|
|
4743
4743
|
)
|
|
4744
|
-
) : "0") + "") &&
|
|
4745
|
-
16 &&
|
|
4744
|
+
) : "0") + "") && we(s, o), U[0] & /*currency*/
|
|
4745
|
+
16 && we(
|
|
4746
4746
|
h,
|
|
4747
4747
|
/*currency*/
|
|
4748
4748
|
S[4]
|
|
4749
4749
|
), U[0] & /*modalOpened*/
|
|
4750
|
-
8 &&
|
|
4751
|
-
|
|
4750
|
+
8 && _ !== (_ = /*modalOpened*/
|
|
4751
|
+
S[3] ? "TriangleActive" : "TriangleInactive") && P(c, "class", _), /*showBalance*/
|
|
4752
4752
|
S[2] ? D ? D.p(S, U) : (D = On(S), D.c(), D.m(n, null)) : D && (D.d(1), D = null), /*showBalance*/
|
|
4753
4753
|
S[2] ? E ? E.p(S, U) : (E = Nn(S), E.c(), E.m(t, null)) : E && (E.d(1), E = null);
|
|
4754
4754
|
},
|
|
@@ -4761,14 +4761,14 @@ function Lo(e) {
|
|
|
4761
4761
|
}
|
|
4762
4762
|
function Do(e, t, n) {
|
|
4763
4763
|
let r;
|
|
4764
|
-
|
|
4765
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: l = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: c = "" } = t, { customlocaleidentifier:
|
|
4766
|
-
const y = {},
|
|
4764
|
+
vr(e, Ao, (p) => n(5, r = p));
|
|
4765
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: l = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: c = "" } = t, { customlocaleidentifier: g = "" } = t, { gmversion: b = "" } = t, { displaybalanceoption: _ = "All" } = t, { totalcalculationmode: T = "totalRealAmount" } = t, { currencyseparator: O = "" } = t, { currencydecimal: A = "" } = t, { currencyprecision: G = "" } = t, D, E, S, U = !1, re = !1, Q = !1, X = "", I = [];
|
|
4766
|
+
const y = {}, V = ["totalAmount", "totalCashAmount", "totalRealAmount", "totalWithdrawableAmount"], he = () => {
|
|
4767
4767
|
fetch(c).then((p) => p.json()).then((p) => Object.keys(p).forEach((H) => Sn(H, p[H]))).catch((p) => console.log(p));
|
|
4768
4768
|
};
|
|
4769
4769
|
Object.keys(An).forEach((p) => Sn(p, An[p]));
|
|
4770
4770
|
const ot = () => {
|
|
4771
|
-
switch (
|
|
4771
|
+
switch (T) {
|
|
4772
4772
|
case "totalAmount":
|
|
4773
4773
|
return (p, H, a) => a.walletType !== "CreditLine" ? p + a.affectedAmount : p;
|
|
4774
4774
|
case "totalCashAmount":
|
|
@@ -4778,7 +4778,7 @@ function Do(e, t, n) {
|
|
|
4778
4778
|
case "totalWithdrawableAmount":
|
|
4779
4779
|
return (p, H, a) => a.walletType !== "CreditLine" && (H === "Real" || H === "RealNegativeRemainder") ? p + a.affectedAmount : H === "DepositWagering" ? p - a.affectedAmount : p;
|
|
4780
4780
|
}
|
|
4781
|
-
},
|
|
4781
|
+
}, ge = (p) => {
|
|
4782
4782
|
switch (p) {
|
|
4783
4783
|
case "balance":
|
|
4784
4784
|
window.postMessage(
|
|
@@ -4804,11 +4804,11 @@ function Do(e, t, n) {
|
|
|
4804
4804
|
);
|
|
4805
4805
|
break;
|
|
4806
4806
|
}
|
|
4807
|
-
},
|
|
4808
|
-
if (
|
|
4809
|
-
return
|
|
4810
|
-
},
|
|
4811
|
-
separator:
|
|
4807
|
+
}, ze = () => {
|
|
4808
|
+
if (g.includes(l))
|
|
4809
|
+
return g;
|
|
4810
|
+
}, We = (p) => g ? new Intl.NumberFormat(ze(), { useGrouping: !0 }).format(p) : O && A ? fe(p, {
|
|
4811
|
+
separator: O,
|
|
4812
4812
|
decimal: A,
|
|
4813
4813
|
symbol: "",
|
|
4814
4814
|
precision: parseInt(G || "2", 10)
|
|
@@ -4827,11 +4827,11 @@ function Do(e, t, n) {
|
|
|
4827
4827
|
headers: { "X-SessionID": o }
|
|
4828
4828
|
}), m = yield f.json();
|
|
4829
4829
|
if (f.ok)
|
|
4830
|
-
U = !1, window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
4830
|
+
U = !1, window.postMessage({ type: "BalancedFetched" }, window.location.href), I = m.items, n(4, X = Object.keys(m.totalAmount)[0]), n(1, y.Total = [{ amount: m.totalAmount[X] }], y), n(
|
|
4831
4831
|
1,
|
|
4832
4832
|
y.Real = [
|
|
4833
4833
|
{
|
|
4834
|
-
amount: (H =
|
|
4834
|
+
amount: (H = I.find((d) => d.displayName === "Casino")) == null ? void 0 : H.balanceAmount
|
|
4835
4835
|
}
|
|
4836
4836
|
],
|
|
4837
4837
|
y
|
|
@@ -4839,7 +4839,7 @@ function Do(e, t, n) {
|
|
|
4839
4839
|
1,
|
|
4840
4840
|
y.Bonus = [
|
|
4841
4841
|
{
|
|
4842
|
-
amount: (a =
|
|
4842
|
+
amount: (a = I.find((d) => d.displayName === "UBS")) == null ? void 0 : a.balanceAmount
|
|
4843
4843
|
}
|
|
4844
4844
|
],
|
|
4845
4845
|
y
|
|
@@ -4851,54 +4851,54 @@ function Do(e, t, n) {
|
|
|
4851
4851
|
} finally {
|
|
4852
4852
|
U = !1;
|
|
4853
4853
|
}
|
|
4854
|
-
}),
|
|
4854
|
+
}), Te = () => {
|
|
4855
4855
|
U = !0;
|
|
4856
4856
|
const p = new URL(`${s}/v2/player/${i}/balance`), H = new Headers();
|
|
4857
4857
|
H.append("X-SessionID", o), fetch(p, { method: "GET", headers: H }).then((f) => f.json()).then((f) => {
|
|
4858
4858
|
U = !1;
|
|
4859
|
-
const [m, d] = Object.entries(f[
|
|
4860
|
-
if (n(4,
|
|
4861
|
-
const
|
|
4862
|
-
n(1, y.Bonus = [{ amount:
|
|
4863
|
-
for (const
|
|
4864
|
-
|
|
4859
|
+
const [m, d] = Object.entries(f[T])[0];
|
|
4860
|
+
if (n(4, X = m), n(1, y.Total = [{ amount: d }], y), !f.items[0].productType) {
|
|
4861
|
+
const v = Object.values(f.totalBonusAmount)[0];
|
|
4862
|
+
n(1, y.Bonus = [{ amount: v }], y);
|
|
4863
|
+
for (const x of f.items)
|
|
4864
|
+
x.type === "Real" && (x.creditLine && n(1, y.Credit = [{ amount: x.creditLine }], y), y.Real ? n(1, y.Real[0].amount += x.amount, y) : n(1, y.Real = [{ amount: x.amount }], y));
|
|
4865
4865
|
return;
|
|
4866
4866
|
}
|
|
4867
|
-
let
|
|
4868
|
-
n(1, y.Bonus = [], y), n(1, y.Real = [], y), n(1, y.Credit = [], y),
|
|
4869
|
-
for (const
|
|
4870
|
-
if (
|
|
4871
|
-
|
|
4872
|
-
amount:
|
|
4873
|
-
productType:
|
|
4867
|
+
let B = f.items;
|
|
4868
|
+
n(1, y.Bonus = [], y), n(1, y.Real = [], y), n(1, y.Credit = [], y), _ && _ !== "All" && (B = f.items.filter((v) => v.productType === _));
|
|
4869
|
+
for (const v of B) {
|
|
4870
|
+
if (v.type === "Real") {
|
|
4871
|
+
v.creditLine && y.Credit.push({
|
|
4872
|
+
amount: v.creditLine,
|
|
4873
|
+
productType: v.productType
|
|
4874
4874
|
});
|
|
4875
|
-
const
|
|
4876
|
-
|
|
4877
|
-
amount:
|
|
4878
|
-
productType:
|
|
4875
|
+
const x = y.Real.findIndex(($) => $.productType === v.productType);
|
|
4876
|
+
x > 0 ? n(1, y.Real[x].amount += v.amount, y) : y.Real.push({
|
|
4877
|
+
amount: v.amount,
|
|
4878
|
+
productType: v.productType
|
|
4879
4879
|
});
|
|
4880
4880
|
continue;
|
|
4881
4881
|
}
|
|
4882
|
-
if (
|
|
4883
|
-
const
|
|
4884
|
-
|
|
4885
|
-
amount:
|
|
4886
|
-
productType:
|
|
4882
|
+
if (v.type === "Bonus") {
|
|
4883
|
+
const x = y.Bonus.findIndex(($) => $.productType === v.productType);
|
|
4884
|
+
x > 0 ? n(1, y.Bonus[x].amount += v.amount, y) : y.Bonus.push({
|
|
4885
|
+
amount: v.amount,
|
|
4886
|
+
productType: v.productType
|
|
4887
4887
|
});
|
|
4888
4888
|
}
|
|
4889
4889
|
}
|
|
4890
4890
|
}).catch((f) => {
|
|
4891
4891
|
throw U = !1, new Error("Failed to fetch balance data !");
|
|
4892
4892
|
});
|
|
4893
|
-
},
|
|
4893
|
+
}, be = () => {
|
|
4894
4894
|
if (S && S.close(), o.length < 1) return;
|
|
4895
4895
|
let p, H;
|
|
4896
|
-
switch (
|
|
4896
|
+
switch (b) {
|
|
4897
4897
|
case "gm16":
|
|
4898
4898
|
p = new URL(`${s}/v2/player/${i}/information/updates`), H = (m) => m.data && m.data.type === "BALANCE_UPDATE_V2" && me(m.data.body);
|
|
4899
4899
|
break;
|
|
4900
4900
|
case "gmcore":
|
|
4901
|
-
p = new URL(`${s}/v1/player/${i}/balance/updates`), H = (m) => m.data &&
|
|
4901
|
+
p = new URL(`${s}/v1/player/${i}/balance/updates`), H = (m) => m.data && Ze(m.data.body);
|
|
4902
4902
|
break;
|
|
4903
4903
|
}
|
|
4904
4904
|
const a = {
|
|
@@ -4906,24 +4906,24 @@ function Do(e, t, n) {
|
|
|
4906
4906
|
"X-SessionId": o
|
|
4907
4907
|
}, f = new Ho.EventSourcePolyfill(p, { headers: a });
|
|
4908
4908
|
S = f, f.addEventListener("message", H);
|
|
4909
|
-
},
|
|
4909
|
+
}, Ze = (p) => {
|
|
4910
4910
|
var f, m;
|
|
4911
4911
|
let H;
|
|
4912
4912
|
try {
|
|
4913
4913
|
H = JSON.parse(p);
|
|
4914
4914
|
} catch (d) {
|
|
4915
|
-
console.log("Balance stream failed: ", d),
|
|
4915
|
+
console.log("Balance stream failed: ", d), be();
|
|
4916
4916
|
}
|
|
4917
4917
|
let a = "0";
|
|
4918
|
-
|
|
4918
|
+
I = I.map((d) => (H.balanceChange && H.balanceChange[d.id] && (d = Nt(Mt({}, d), {
|
|
4919
4919
|
balanceAmount: H.balanceChange[d.id].afterAmount
|
|
4920
|
-
})), a = (parseFloat(d == null ? void 0 : d.balanceAmount) + parseFloat(a)).toString(), d)), n(1, y.Real = [{ amount: (f =
|
|
4920
|
+
})), a = (parseFloat(d == null ? void 0 : d.balanceAmount) + parseFloat(a)).toString(), d)), n(1, y.Real = [{ amount: (f = I[0]) == null ? void 0 : f.balanceAmount }], y), n(1, y.Bonus = [{ amount: (m = I[1]) == null ? void 0 : m.balanceAmount }], y), n(1, y.Total = [{ amount: Number(a) }], y);
|
|
4921
4921
|
}, me = (p) => {
|
|
4922
4922
|
let H;
|
|
4923
4923
|
try {
|
|
4924
4924
|
H = JSON.parse(p);
|
|
4925
4925
|
} catch (f) {
|
|
4926
|
-
console.log("Balance stream failed: ", f),
|
|
4926
|
+
console.log("Balance stream failed: ", f), be();
|
|
4927
4927
|
}
|
|
4928
4928
|
const a = H.body;
|
|
4929
4929
|
for (const [f, m] of Object.entries(a)) {
|
|
@@ -4932,21 +4932,21 @@ function Do(e, t, n) {
|
|
|
4932
4932
|
n(1, y.Total[0].amount = D(y.Total[0].amount, f, m), y);
|
|
4933
4933
|
}
|
|
4934
4934
|
}, Oe = () => {
|
|
4935
|
-
|
|
4935
|
+
ge("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
4936
4936
|
}, at = () => {
|
|
4937
|
-
|
|
4938
|
-
},
|
|
4939
|
-
switch (Co(l), at(), D = ot(),
|
|
4937
|
+
V.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${V}. Using default value ('${V[2]}').`), n(9, T = V[2]));
|
|
4938
|
+
}, Bt = () => {
|
|
4939
|
+
switch (Co(l), at(), D = ot(), b) {
|
|
4940
4940
|
case "gmcore":
|
|
4941
4941
|
pe();
|
|
4942
4942
|
break;
|
|
4943
4943
|
case "gm16":
|
|
4944
|
-
|
|
4944
|
+
Te();
|
|
4945
4945
|
break;
|
|
4946
4946
|
default:
|
|
4947
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
4947
|
+
throw Error(`Invalid apiversion attribute: ${b}`);
|
|
4948
4948
|
}
|
|
4949
|
-
}, st = (p) => p.data && p.data.type === "LogoutSuccessfull" && S.close(),
|
|
4949
|
+
}, st = (p) => p.data && p.data.type === "LogoutSuccessfull" && S.close(), wt = () => {
|
|
4950
4950
|
const p = document.createElement("style");
|
|
4951
4951
|
p.innerHTML = h, E.appendChild(p);
|
|
4952
4952
|
}, St = () => {
|
|
@@ -4959,40 +4959,40 @@ function Do(e, t, n) {
|
|
|
4959
4959
|
1
|
|
4960
4960
|
);
|
|
4961
4961
|
});
|
|
4962
|
-
},
|
|
4962
|
+
}, qe = () => {
|
|
4963
4963
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
4964
4964
|
};
|
|
4965
|
-
|
|
4965
|
+
wr(() => (window.addEventListener("message", st, !1), () => {
|
|
4966
4966
|
window.removeEventListener("message", st), S && S.close();
|
|
4967
4967
|
}));
|
|
4968
|
-
const Je = () =>
|
|
4968
|
+
const Je = () => ge("balance"), Be = () => ge("closebalance"), ie = () => Oe(), At = () => ge("closeBalance");
|
|
4969
4969
|
function Ct(p) {
|
|
4970
|
-
|
|
4970
|
+
jt[p ? "unshift" : "push"](() => {
|
|
4971
4971
|
E = p, n(0, E);
|
|
4972
4972
|
});
|
|
4973
4973
|
}
|
|
4974
4974
|
return e.$$set = (p) => {
|
|
4975
|
-
"userid" in p && n(10, i = p.userid), "session" in p && n(11, o = p.session), "endpoint" in p && n(12, s = p.endpoint), "lang" in p && n(13, l = p.lang), "clientstyling" in p && n(14, h = p.clientstyling), "clientstylingurl" in p && n(15, u = p.clientstylingurl), "translationurl" in p && n(16, c = p.translationurl), "customlocaleidentifier" in p && n(17,
|
|
4975
|
+
"userid" in p && n(10, i = p.userid), "session" in p && n(11, o = p.session), "endpoint" in p && n(12, s = p.endpoint), "lang" in p && n(13, l = p.lang), "clientstyling" in p && n(14, h = p.clientstyling), "clientstylingurl" in p && n(15, u = p.clientstylingurl), "translationurl" in p && n(16, c = p.translationurl), "customlocaleidentifier" in p && n(17, g = p.customlocaleidentifier), "gmversion" in p && n(18, b = p.gmversion), "displaybalanceoption" in p && n(19, _ = p.displaybalanceoption), "totalcalculationmode" in p && n(9, T = p.totalcalculationmode), "currencyseparator" in p && n(20, O = p.currencyseparator), "currencydecimal" in p && n(21, A = p.currencydecimal), "currencyprecision" in p && n(22, G = p.currencyprecision);
|
|
4976
4976
|
}, e.$$.update = () => {
|
|
4977
4977
|
e.$$.dirty[0] & /*lang*/
|
|
4978
|
-
8192 && l &&
|
|
4979
|
-
801792 && s && i && o && l &&
|
|
4980
|
-
7680 && s && i && o &&
|
|
4981
|
-
16385 && h && E &&
|
|
4978
|
+
8192 && l && ze(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
4979
|
+
801792 && s && i && o && l && b && _ && Bt(), e.$$.dirty[0] & /*endpoint, userid, session, totalcalculationmode*/
|
|
4980
|
+
7680 && s && i && o && T && be(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4981
|
+
16385 && h && E && wt(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4982
4982
|
32769 && u && E && St(), e.$$.dirty[0] & /*translationurl*/
|
|
4983
4983
|
65536 && c && he(), e.$$.dirty[0] & /*balances*/
|
|
4984
|
-
2 && y.Total &&
|
|
4984
|
+
2 && y.Total && qe();
|
|
4985
4985
|
}, [
|
|
4986
4986
|
E,
|
|
4987
4987
|
y,
|
|
4988
4988
|
re,
|
|
4989
4989
|
Q,
|
|
4990
|
-
|
|
4990
|
+
X,
|
|
4991
4991
|
r,
|
|
4992
|
-
|
|
4993
|
-
|
|
4992
|
+
ge,
|
|
4993
|
+
We,
|
|
4994
4994
|
Oe,
|
|
4995
|
-
|
|
4995
|
+
T,
|
|
4996
4996
|
i,
|
|
4997
4997
|
o,
|
|
4998
4998
|
s,
|
|
@@ -5000,14 +5000,14 @@ function Do(e, t, n) {
|
|
|
5000
5000
|
h,
|
|
5001
5001
|
u,
|
|
5002
5002
|
c,
|
|
5003
|
-
v,
|
|
5004
5003
|
g,
|
|
5005
|
-
|
|
5006
|
-
|
|
5004
|
+
b,
|
|
5005
|
+
_,
|
|
5006
|
+
O,
|
|
5007
5007
|
A,
|
|
5008
5008
|
G,
|
|
5009
5009
|
Je,
|
|
5010
|
-
|
|
5010
|
+
Be,
|
|
5011
5011
|
ie,
|
|
5012
5012
|
At,
|
|
5013
5013
|
Ct
|