@everymatrix/player-account-balance-modal 1.77.25 → 1.77.26
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/PlayerAccountBalanceModal-B5pEKQHd.cjs +22 -0
- package/components/{PlayerAccountBalanceModal-DixkMh33.js → PlayerAccountBalanceModal-BK4_j7a9.js} +1099 -1103
- package/components/{PlayerAccountBalanceModal-D2KIfuVF.js → PlayerAccountBalanceModal-CQrAbzrK.js} +1275 -1279
- package/es2015/player-account-balance-modal.cjs +1 -1
- package/es2015/player-account-balance-modal.js +1 -1
- package/esnext/player-account-balance-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModal-jZVdpTAX.cjs +0 -9
package/components/{PlayerAccountBalanceModal-D2KIfuVF.js → PlayerAccountBalanceModal-CQrAbzrK.js}
RENAMED
|
@@ -6,10 +6,10 @@ function Bn(e) {
|
|
|
6
6
|
function en() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Ge(e) {
|
|
10
10
|
e.forEach(Bn);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Zt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function Sn(e, t) {
|
|
@@ -36,7 +36,7 @@ function M(e, t) {
|
|
|
36
36
|
function rr(e, t, n) {
|
|
37
37
|
const r = ir(e);
|
|
38
38
|
if (!r.getElementById(t)) {
|
|
39
|
-
const i =
|
|
39
|
+
const i = U("style");
|
|
40
40
|
i.id = t, i.textContent = n, or(r, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -60,14 +60,14 @@ function or(e, t) {
|
|
|
60
60
|
function ce(e, t, n) {
|
|
61
61
|
e.insertBefore(t, n || null);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ue(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
66
|
function An(e, t) {
|
|
67
67
|
for (let n = 0; n < e.length; n += 1)
|
|
68
68
|
e[n] && e[n].d(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function U(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
73
|
function ve(e) {
|
|
@@ -82,17 +82,17 @@ function ar() {
|
|
|
82
82
|
function ft(e, t, n, r) {
|
|
83
83
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function W(e, t, n) {
|
|
86
86
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
87
87
|
}
|
|
88
88
|
function sr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ae(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function lr(e) {
|
|
96
96
|
const t = {};
|
|
97
97
|
return e.childNodes.forEach(
|
|
98
98
|
/** @param {Element} node */
|
|
@@ -101,65 +101,65 @@ function ur(e) {
|
|
|
101
101
|
}
|
|
102
102
|
), t;
|
|
103
103
|
}
|
|
104
|
-
let
|
|
105
|
-
function
|
|
106
|
-
|
|
104
|
+
let Ye;
|
|
105
|
+
function Je(e) {
|
|
106
|
+
Ye = e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
if (!
|
|
108
|
+
function ur() {
|
|
109
|
+
if (!Ye)
|
|
110
110
|
throw new Error("Function called outside component initialization");
|
|
111
|
-
return
|
|
111
|
+
return Ye;
|
|
112
112
|
}
|
|
113
113
|
function hr(e) {
|
|
114
|
-
|
|
114
|
+
ur().$$.on_mount.push(e);
|
|
115
115
|
}
|
|
116
|
-
const
|
|
117
|
-
let
|
|
116
|
+
const Me = [], Pt = [];
|
|
117
|
+
let Pe = [];
|
|
118
118
|
const tn = [], cr = /* @__PURE__ */ Promise.resolve();
|
|
119
|
-
let
|
|
119
|
+
let It = !1;
|
|
120
120
|
function fr() {
|
|
121
|
-
|
|
121
|
+
It || (It = !0, cr.then(V));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
|
|
123
|
+
function Dt(e) {
|
|
124
|
+
Pe.push(e);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
let
|
|
128
|
-
function
|
|
129
|
-
if (
|
|
126
|
+
const Ct = /* @__PURE__ */ new Set();
|
|
127
|
+
let Re = 0;
|
|
128
|
+
function V() {
|
|
129
|
+
if (Re !== 0)
|
|
130
130
|
return;
|
|
131
|
-
const e =
|
|
131
|
+
const e = Ye;
|
|
132
132
|
do {
|
|
133
133
|
try {
|
|
134
|
-
for (;
|
|
135
|
-
const t =
|
|
136
|
-
|
|
134
|
+
for (; Re < Me.length; ) {
|
|
135
|
+
const t = Me[Re];
|
|
136
|
+
Re++, Je(t), dr(t.$$);
|
|
137
137
|
}
|
|
138
138
|
} catch (t) {
|
|
139
|
-
throw
|
|
139
|
+
throw Me.length = 0, Re = 0, t;
|
|
140
140
|
}
|
|
141
|
-
for (
|
|
142
|
-
|
|
143
|
-
for (let t = 0; t <
|
|
144
|
-
const n =
|
|
145
|
-
|
|
141
|
+
for (Je(null), Me.length = 0, Re = 0; Pt.length; )
|
|
142
|
+
Pt.pop()();
|
|
143
|
+
for (let t = 0; t < Pe.length; t += 1) {
|
|
144
|
+
const n = Pe[t];
|
|
145
|
+
Ct.has(n) || (Ct.add(n), n());
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
} while (
|
|
147
|
+
Pe.length = 0;
|
|
148
|
+
} while (Me.length);
|
|
149
149
|
for (; tn.length; )
|
|
150
150
|
tn.pop()();
|
|
151
|
-
|
|
151
|
+
It = !1, Ct.clear(), Je(e);
|
|
152
152
|
}
|
|
153
153
|
function dr(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
|
-
e.update(),
|
|
155
|
+
e.update(), Ge(e.before_update);
|
|
156
156
|
const t = e.dirty;
|
|
157
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
157
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Dt);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function pr(e) {
|
|
161
161
|
const t = [], n = [];
|
|
162
|
-
|
|
162
|
+
Pe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Pe = t;
|
|
163
163
|
}
|
|
164
164
|
const mr = /* @__PURE__ */ new Set();
|
|
165
165
|
function gr(e, t) {
|
|
@@ -170,26 +170,26 @@ function dt(e) {
|
|
|
170
170
|
}
|
|
171
171
|
function br(e, t, n) {
|
|
172
172
|
const { fragment: r, after_update: i } = e.$$;
|
|
173
|
-
r && r.m(t, n),
|
|
174
|
-
const
|
|
175
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
176
|
-
}), i.forEach(
|
|
173
|
+
r && r.m(t, n), Dt(() => {
|
|
174
|
+
const a = e.$$.on_mount.map(Bn).filter(Zt);
|
|
175
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : Ge(a), e.$$.on_mount = [];
|
|
176
|
+
}), i.forEach(Dt);
|
|
177
177
|
}
|
|
178
178
|
function yr(e, t) {
|
|
179
179
|
const n = e.$$;
|
|
180
|
-
n.fragment !== null && (pr(n.after_update),
|
|
180
|
+
n.fragment !== null && (pr(n.after_update), Ge(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
181
181
|
}
|
|
182
182
|
function vr(e, t) {
|
|
183
|
-
e.$$.dirty[0] === -1 && (
|
|
183
|
+
e.$$.dirty[0] === -1 && (Me.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
184
184
|
}
|
|
185
|
-
function Er(e, t, n, r, i,
|
|
186
|
-
const
|
|
187
|
-
|
|
185
|
+
function Er(e, t, n, r, i, a, l = null, s = [-1]) {
|
|
186
|
+
const p = Ye;
|
|
187
|
+
Je(e);
|
|
188
188
|
const h = e.$$ = {
|
|
189
189
|
fragment: null,
|
|
190
190
|
ctx: [],
|
|
191
191
|
// state
|
|
192
|
-
props:
|
|
192
|
+
props: a,
|
|
193
193
|
update: oe,
|
|
194
194
|
not_equal: i,
|
|
195
195
|
bound: en(),
|
|
@@ -199,27 +199,27 @@ function Er(e, t, n, r, i, o, u = null, s = [-1]) {
|
|
|
199
199
|
on_disconnect: [],
|
|
200
200
|
before_update: [],
|
|
201
201
|
after_update: [],
|
|
202
|
-
context: new Map(t.context || (
|
|
202
|
+
context: new Map(t.context || (p ? p.$$.context : [])),
|
|
203
203
|
// everything else
|
|
204
204
|
callbacks: en(),
|
|
205
205
|
dirty: s,
|
|
206
206
|
skip_bound: !1,
|
|
207
|
-
root: t.target ||
|
|
207
|
+
root: t.target || p.$$.root
|
|
208
208
|
};
|
|
209
|
-
|
|
210
|
-
let
|
|
211
|
-
if (h.ctx = n ? n(e, t.props || {}, (
|
|
212
|
-
const T = x.length ? x[0] :
|
|
213
|
-
return h.ctx && i(h.ctx[
|
|
214
|
-
}) : [], h.update(),
|
|
209
|
+
l && l(h.root);
|
|
210
|
+
let d = !1;
|
|
211
|
+
if (h.ctx = n ? n(e, t.props || {}, (m, g, ...x) => {
|
|
212
|
+
const T = x.length ? x[0] : g;
|
|
213
|
+
return h.ctx && i(h.ctx[m], h.ctx[m] = T) && (!h.skip_bound && h.bound[m] && h.bound[m](T), d && vr(e, m)), g;
|
|
214
|
+
}) : [], h.update(), d = !0, Ge(h.before_update), h.fragment = r ? r(h.ctx) : !1, t.target) {
|
|
215
215
|
if (t.hydrate) {
|
|
216
|
-
const
|
|
217
|
-
h.fragment && h.fragment.l(
|
|
216
|
+
const m = sr(t.target);
|
|
217
|
+
h.fragment && h.fragment.l(m), m.forEach(ue);
|
|
218
218
|
} else
|
|
219
219
|
h.fragment && h.fragment.c();
|
|
220
|
-
t.intro && gr(e.$$.fragment), br(e, t.target, t.anchor),
|
|
220
|
+
t.intro && gr(e.$$.fragment), br(e, t.target, t.anchor), V();
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
Je(p);
|
|
223
223
|
}
|
|
224
224
|
let Cn;
|
|
225
225
|
typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
@@ -261,32 +261,32 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
|
261
261
|
if (this.$$cn = !0, !this.$$c) {
|
|
262
262
|
let e = function(i) {
|
|
263
263
|
return () => {
|
|
264
|
-
let
|
|
264
|
+
let a;
|
|
265
265
|
return {
|
|
266
266
|
c: function() {
|
|
267
|
-
|
|
267
|
+
a = U("slot"), i !== "default" && W(a, "name", i);
|
|
268
268
|
},
|
|
269
269
|
/**
|
|
270
270
|
* @param {HTMLElement} target
|
|
271
271
|
* @param {HTMLElement} [anchor]
|
|
272
272
|
*/
|
|
273
|
-
m: function(
|
|
274
|
-
ce(
|
|
273
|
+
m: function(p, h) {
|
|
274
|
+
ce(p, a, h);
|
|
275
275
|
},
|
|
276
|
-
d: function(
|
|
277
|
-
|
|
276
|
+
d: function(p) {
|
|
277
|
+
p && ue(a);
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
};
|
|
281
281
|
};
|
|
282
282
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
283
283
|
return;
|
|
284
|
-
const t = {}, n =
|
|
284
|
+
const t = {}, n = lr(this);
|
|
285
285
|
for (const i of this.$$s)
|
|
286
286
|
i in n && (t[i] = [e(i)]);
|
|
287
287
|
for (const i of this.attributes) {
|
|
288
|
-
const
|
|
289
|
-
|
|
288
|
+
const a = this.$$g_p(i.name);
|
|
289
|
+
a in this.$$d || (this.$$d[a] = ut(a, i.value, this.$$p_d, "toProp"));
|
|
290
290
|
}
|
|
291
291
|
for (const i in this.$$p_d)
|
|
292
292
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -304,21 +304,21 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
|
304
304
|
this.$$r = !0;
|
|
305
305
|
for (const i in this.$$p_d)
|
|
306
306
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
307
|
-
const
|
|
307
|
+
const a = ut(
|
|
308
308
|
i,
|
|
309
309
|
this.$$d[i],
|
|
310
310
|
this.$$p_d,
|
|
311
311
|
"toAttribute"
|
|
312
312
|
);
|
|
313
|
-
|
|
313
|
+
a == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, a);
|
|
314
314
|
}
|
|
315
315
|
this.$$r = !1;
|
|
316
316
|
};
|
|
317
317
|
this.$$c.$$.after_update.push(r), r();
|
|
318
318
|
for (const i in this.$$l)
|
|
319
|
-
for (const
|
|
320
|
-
const
|
|
321
|
-
this.$$l_u.set(
|
|
319
|
+
for (const a of this.$$l[i]) {
|
|
320
|
+
const l = this.$$c.$on(i, a);
|
|
321
|
+
this.$$l_u.set(a, l);
|
|
322
322
|
}
|
|
323
323
|
this.$$l = {};
|
|
324
324
|
}
|
|
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
|
326
326
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
327
327
|
// and setting attributes through setAttribute etc, this is helpful
|
|
328
328
|
attributeChangedCallback(e, t, n) {
|
|
329
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
329
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ut(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
330
330
|
}
|
|
331
331
|
disconnectedCallback() {
|
|
332
332
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -339,7 +339,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
|
339
339
|
) || e;
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
|
-
function
|
|
342
|
+
function ut(e, t, n, r) {
|
|
343
343
|
const i = n[e]?.type;
|
|
344
344
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
345
345
|
return t;
|
|
@@ -368,8 +368,8 @@ function lt(e, t, n, r) {
|
|
|
368
368
|
return t;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
function xr(e, t, n, r, i,
|
|
372
|
-
let
|
|
371
|
+
function xr(e, t, n, r, i, a) {
|
|
372
|
+
let l = class extends Cn {
|
|
373
373
|
constructor() {
|
|
374
374
|
super(e, n, i), this.$$p_d = t;
|
|
375
375
|
}
|
|
@@ -380,22 +380,22 @@ function xr(e, t, n, r, i, o) {
|
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
382
|
return Object.keys(t).forEach((s) => {
|
|
383
|
-
Object.defineProperty(
|
|
383
|
+
Object.defineProperty(l.prototype, s, {
|
|
384
384
|
get() {
|
|
385
385
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
386
386
|
},
|
|
387
|
-
set(
|
|
388
|
-
|
|
387
|
+
set(p) {
|
|
388
|
+
p = ut(s, p, t), this.$$d[s] = p, this.$$c?.$set({ [s]: p });
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
}), r.forEach((s) => {
|
|
392
|
-
Object.defineProperty(
|
|
392
|
+
Object.defineProperty(l.prototype, s, {
|
|
393
393
|
get() {
|
|
394
394
|
return this.$$c?.[s];
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}), e.element = /** @type {any} */
|
|
398
|
-
|
|
398
|
+
l, l;
|
|
399
399
|
}
|
|
400
400
|
class _r {
|
|
401
401
|
/**
|
|
@@ -425,7 +425,7 @@ class _r {
|
|
|
425
425
|
* @returns {() => void}
|
|
426
426
|
*/
|
|
427
427
|
$on(t, n) {
|
|
428
|
-
if (!
|
|
428
|
+
if (!Zt(n))
|
|
429
429
|
return oe;
|
|
430
430
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
431
431
|
return r.push(n), () => {
|
|
@@ -466,66 +466,66 @@ function wr(e, t, n) {
|
|
|
466
466
|
});
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
const
|
|
469
|
+
const Ne = [];
|
|
470
470
|
function Ar(e, t) {
|
|
471
471
|
return {
|
|
472
|
-
subscribe:
|
|
472
|
+
subscribe: gt(e, t).subscribe
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function gt(e, t = oe) {
|
|
476
476
|
let n;
|
|
477
477
|
const r = /* @__PURE__ */ new Set();
|
|
478
478
|
function i(s) {
|
|
479
479
|
if (Sn(e, s) && (e = s, n)) {
|
|
480
|
-
const
|
|
480
|
+
const p = !Ne.length;
|
|
481
481
|
for (const h of r)
|
|
482
|
-
h[1](),
|
|
483
|
-
if (
|
|
484
|
-
for (let h = 0; h <
|
|
485
|
-
|
|
486
|
-
|
|
482
|
+
h[1](), Ne.push(h, e);
|
|
483
|
+
if (p) {
|
|
484
|
+
for (let h = 0; h < Ne.length; h += 2)
|
|
485
|
+
Ne[h][0](Ne[h + 1]);
|
|
486
|
+
Ne.length = 0;
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function a(s) {
|
|
491
491
|
i(s(e));
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
const h = [s,
|
|
495
|
-
return r.add(h), r.size === 1 && (n = t(i,
|
|
493
|
+
function l(s, p = oe) {
|
|
494
|
+
const h = [s, p];
|
|
495
|
+
return r.add(h), r.size === 1 && (n = t(i, a) || oe), s(e), () => {
|
|
496
496
|
r.delete(h), r.size === 0 && n && (n(), n = null);
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
|
-
return { set: i, update:
|
|
499
|
+
return { set: i, update: a, subscribe: l };
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function $e(e, t, n) {
|
|
502
502
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
503
503
|
if (!i.every(Boolean))
|
|
504
504
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
505
|
-
const
|
|
506
|
-
return Ar(n, (
|
|
507
|
-
let
|
|
505
|
+
const a = t.length < 2;
|
|
506
|
+
return Ar(n, (l, s) => {
|
|
507
|
+
let p = !1;
|
|
508
508
|
const h = [];
|
|
509
|
-
let
|
|
510
|
-
const
|
|
511
|
-
if (
|
|
509
|
+
let d = 0, m = oe;
|
|
510
|
+
const g = () => {
|
|
511
|
+
if (d)
|
|
512
512
|
return;
|
|
513
|
-
|
|
514
|
-
const T = t(r ? h[0] : h,
|
|
515
|
-
|
|
513
|
+
m();
|
|
514
|
+
const T = t(r ? h[0] : h, l, s);
|
|
515
|
+
a ? l(T) : m = Zt(T) ? T : oe;
|
|
516
516
|
}, x = i.map(
|
|
517
517
|
(T, P) => wn(
|
|
518
518
|
T,
|
|
519
|
-
(
|
|
520
|
-
h[P] =
|
|
519
|
+
($) => {
|
|
520
|
+
h[P] = $, d &= ~(1 << P), p && g();
|
|
521
521
|
},
|
|
522
522
|
() => {
|
|
523
|
-
|
|
523
|
+
d |= 1 << P;
|
|
524
524
|
}
|
|
525
525
|
)
|
|
526
526
|
);
|
|
527
|
-
return
|
|
528
|
-
|
|
527
|
+
return p = !0, g(), function() {
|
|
528
|
+
Ge(x), m(), p = !1;
|
|
529
529
|
};
|
|
530
530
|
});
|
|
531
531
|
}
|
|
@@ -533,10 +533,10 @@ var Cr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
533
533
|
function Hr(e) {
|
|
534
534
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
535
535
|
}
|
|
536
|
-
var
|
|
537
|
-
return
|
|
536
|
+
var Lr = function(t) {
|
|
537
|
+
return Or(t) && !Rr(t);
|
|
538
538
|
};
|
|
539
|
-
function
|
|
539
|
+
function Or(e) {
|
|
540
540
|
return !!e && typeof e == "object";
|
|
541
541
|
}
|
|
542
542
|
function Rr(e) {
|
|
@@ -550,19 +550,19 @@ function Pr(e) {
|
|
|
550
550
|
function Ir(e) {
|
|
551
551
|
return Array.isArray(e) ? [] : {};
|
|
552
552
|
}
|
|
553
|
-
function
|
|
554
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
553
|
+
function Ke(e, t) {
|
|
554
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ie(Ir(e), e, t) : e;
|
|
555
555
|
}
|
|
556
556
|
function Dr(e, t, n) {
|
|
557
557
|
return e.concat(t).map(function(r) {
|
|
558
|
-
return
|
|
558
|
+
return Ke(r, n);
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
function Fr(e, t) {
|
|
562
562
|
if (!t.customMerge)
|
|
563
|
-
return
|
|
563
|
+
return Ie;
|
|
564
564
|
var n = t.customMerge(e);
|
|
565
|
-
return typeof n == "function" ? n :
|
|
565
|
+
return typeof n == "function" ? n : Ie;
|
|
566
566
|
}
|
|
567
567
|
function Ur(e) {
|
|
568
568
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -585,51 +585,65 @@ function Gr(e, t) {
|
|
|
585
585
|
function $r(e, t, n) {
|
|
586
586
|
var r = {};
|
|
587
587
|
return n.isMergeableObject(e) && nn(e).forEach(function(i) {
|
|
588
|
-
r[i] =
|
|
588
|
+
r[i] = Ke(e[i], n);
|
|
589
589
|
}), nn(t).forEach(function(i) {
|
|
590
|
-
Gr(e, i) || (Hn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fr(i, n)(e[i], t[i], n) : r[i] =
|
|
590
|
+
Gr(e, i) || (Hn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fr(i, n)(e[i], t[i], n) : r[i] = Ke(t[i], n));
|
|
591
591
|
}), r;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
594
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || Dr, n.isMergeableObject = n.isMergeableObject ||
|
|
595
|
-
var r = Array.isArray(t), i = Array.isArray(e),
|
|
596
|
-
return
|
|
593
|
+
function Ie(e, t, n) {
|
|
594
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Dr, n.isMergeableObject = n.isMergeableObject || Lr, n.cloneUnlessOtherwiseSpecified = Ke;
|
|
595
|
+
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
596
|
+
return a ? r ? n.arrayMerge(e, t, n) : $r(e, t, n) : Ke(t, n);
|
|
597
597
|
}
|
|
598
|
-
|
|
598
|
+
Ie.all = function(t, n) {
|
|
599
599
|
if (!Array.isArray(t))
|
|
600
600
|
throw new Error("first argument should be an array");
|
|
601
601
|
return t.reduce(function(r, i) {
|
|
602
|
-
return
|
|
602
|
+
return Ie(r, i, n);
|
|
603
603
|
}, {});
|
|
604
604
|
};
|
|
605
|
-
var
|
|
606
|
-
const Vr = /* @__PURE__ */ Hr(
|
|
607
|
-
|
|
608
|
-
|
|
605
|
+
var kr = Ie, jr = kr;
|
|
606
|
+
const Vr = /* @__PURE__ */ Hr(jr);
|
|
607
|
+
/*! *****************************************************************************
|
|
608
|
+
Copyright (c) Microsoft Corporation.
|
|
609
|
+
|
|
610
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
611
|
+
purpose with or without fee is hereby granted.
|
|
612
|
+
|
|
613
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
614
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
615
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
616
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
617
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
618
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
619
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
620
|
+
***************************************************************************** */
|
|
621
|
+
var Ft = function(e, t) {
|
|
622
|
+
return Ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
609
623
|
n.__proto__ = r;
|
|
610
624
|
} || function(n, r) {
|
|
611
625
|
for (var i in r)
|
|
612
626
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
613
|
-
},
|
|
627
|
+
}, Ft(e, t);
|
|
614
628
|
};
|
|
615
|
-
function
|
|
629
|
+
function bt(e, t) {
|
|
616
630
|
if (typeof t != "function" && t !== null)
|
|
617
631
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
618
|
-
|
|
632
|
+
Ft(e, t);
|
|
619
633
|
function n() {
|
|
620
634
|
this.constructor = e;
|
|
621
635
|
}
|
|
622
636
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
623
637
|
}
|
|
624
|
-
var
|
|
625
|
-
return
|
|
638
|
+
var R = function() {
|
|
639
|
+
return R = Object.assign || function(t) {
|
|
626
640
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
627
641
|
n = arguments[r];
|
|
628
|
-
for (var
|
|
629
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
642
|
+
for (var a in n)
|
|
643
|
+
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
630
644
|
}
|
|
631
645
|
return t;
|
|
632
|
-
},
|
|
646
|
+
}, R.apply(this, arguments);
|
|
633
647
|
};
|
|
634
648
|
function Xr(e, t) {
|
|
635
649
|
var n = {};
|
|
@@ -640,14 +654,14 @@ function Xr(e, t) {
|
|
|
640
654
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
641
655
|
return n;
|
|
642
656
|
}
|
|
643
|
-
function
|
|
644
|
-
if (
|
|
645
|
-
for (var r = 0, i = t.length,
|
|
646
|
-
(
|
|
647
|
-
return e.concat(
|
|
657
|
+
function Ht(e, t, n) {
|
|
658
|
+
if (arguments.length === 2)
|
|
659
|
+
for (var r = 0, i = t.length, a; r < i; r++)
|
|
660
|
+
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
661
|
+
return e.concat(a || t);
|
|
648
662
|
}
|
|
649
|
-
function
|
|
650
|
-
var n = t && t.cache ? t.cache :
|
|
663
|
+
function Lt(e, t) {
|
|
664
|
+
var n = t && t.cache ? t.cache : Jr, r = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Wr;
|
|
651
665
|
return i(e, {
|
|
652
666
|
cache: n,
|
|
653
667
|
serializer: r
|
|
@@ -656,103 +670,95 @@ function Rt(e, t) {
|
|
|
656
670
|
function zr(e) {
|
|
657
671
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
658
672
|
}
|
|
659
|
-
function
|
|
660
|
-
var i = zr(r) ? r : n(r),
|
|
661
|
-
return typeof
|
|
673
|
+
function Ln(e, t, n, r) {
|
|
674
|
+
var i = zr(r) ? r : n(r), a = t.get(i);
|
|
675
|
+
return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
|
|
662
676
|
}
|
|
663
677
|
function On(e, t, n) {
|
|
664
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r),
|
|
665
|
-
return typeof
|
|
678
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
679
|
+
return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
666
680
|
}
|
|
667
|
-
function
|
|
681
|
+
function qt(e, t, n, r, i) {
|
|
668
682
|
return n.bind(t, e, r, i);
|
|
669
683
|
}
|
|
684
|
+
function Wr(e, t) {
|
|
685
|
+
var n = e.length === 1 ? Ln : On;
|
|
686
|
+
return qt(e, this, n, t.cache.create(), t.serializer);
|
|
687
|
+
}
|
|
670
688
|
function Zr(e, t) {
|
|
671
|
-
|
|
672
|
-
return Ln(e, this, n, t.cache.create(), t.serializer);
|
|
689
|
+
return qt(e, this, On, t.cache.create(), t.serializer);
|
|
673
690
|
}
|
|
674
691
|
function qr(e, t) {
|
|
675
|
-
return
|
|
692
|
+
return qt(e, this, Ln, t.cache.create(), t.serializer);
|
|
676
693
|
}
|
|
677
694
|
var Qr = function() {
|
|
678
695
|
return JSON.stringify(arguments);
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
}()
|
|
691
|
-
), Yr = {
|
|
696
|
+
};
|
|
697
|
+
function Qt() {
|
|
698
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
699
|
+
}
|
|
700
|
+
Qt.prototype.get = function(e) {
|
|
701
|
+
return this.cache[e];
|
|
702
|
+
};
|
|
703
|
+
Qt.prototype.set = function(e, t) {
|
|
704
|
+
this.cache[e] = t;
|
|
705
|
+
};
|
|
706
|
+
var Jr = {
|
|
692
707
|
create: function() {
|
|
693
|
-
return new
|
|
708
|
+
return new Qt();
|
|
694
709
|
}
|
|
695
|
-
},
|
|
696
|
-
variadic:
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
700
|
-
n = arguments[r];
|
|
701
|
-
for (var o in n)
|
|
702
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
703
|
-
}
|
|
704
|
-
return t;
|
|
705
|
-
}, pt.apply(this, arguments);
|
|
706
|
-
};
|
|
707
|
-
var C;
|
|
710
|
+
}, Ot = {
|
|
711
|
+
variadic: Zr,
|
|
712
|
+
monadic: qr
|
|
713
|
+
}, H;
|
|
708
714
|
(function(e) {
|
|
709
715
|
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";
|
|
710
|
-
})(
|
|
711
|
-
var
|
|
716
|
+
})(H || (H = {}));
|
|
717
|
+
var I;
|
|
712
718
|
(function(e) {
|
|
713
719
|
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";
|
|
714
|
-
})(
|
|
715
|
-
var
|
|
720
|
+
})(I || (I = {}));
|
|
721
|
+
var De;
|
|
716
722
|
(function(e) {
|
|
717
723
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
718
|
-
})(
|
|
724
|
+
})(De || (De = {}));
|
|
719
725
|
function rn(e) {
|
|
720
|
-
return e.type ===
|
|
726
|
+
return e.type === I.literal;
|
|
721
727
|
}
|
|
722
|
-
function
|
|
723
|
-
return e.type ===
|
|
728
|
+
function Yr(e) {
|
|
729
|
+
return e.type === I.argument;
|
|
724
730
|
}
|
|
725
731
|
function Rn(e) {
|
|
726
|
-
return e.type ===
|
|
732
|
+
return e.type === I.number;
|
|
727
733
|
}
|
|
728
734
|
function Nn(e) {
|
|
729
|
-
return e.type ===
|
|
735
|
+
return e.type === I.date;
|
|
730
736
|
}
|
|
731
737
|
function Mn(e) {
|
|
732
|
-
return e.type ===
|
|
738
|
+
return e.type === I.time;
|
|
733
739
|
}
|
|
734
740
|
function Pn(e) {
|
|
735
|
-
return e.type ===
|
|
741
|
+
return e.type === I.select;
|
|
736
742
|
}
|
|
737
743
|
function In(e) {
|
|
738
|
-
return e.type ===
|
|
744
|
+
return e.type === I.plural;
|
|
739
745
|
}
|
|
740
|
-
function
|
|
741
|
-
return e.type ===
|
|
746
|
+
function Kr(e) {
|
|
747
|
+
return e.type === I.pound;
|
|
742
748
|
}
|
|
743
749
|
function Dn(e) {
|
|
744
|
-
return e.type ===
|
|
750
|
+
return e.type === I.tag;
|
|
745
751
|
}
|
|
746
752
|
function Fn(e) {
|
|
747
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
753
|
+
return !!(e && typeof e == "object" && e.type === De.number);
|
|
748
754
|
}
|
|
749
|
-
function
|
|
750
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
755
|
+
function Ut(e) {
|
|
756
|
+
return !!(e && typeof e == "object" && e.type === De.dateTime);
|
|
751
757
|
}
|
|
752
|
-
var Un = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
753
|
-
function
|
|
758
|
+
var Un = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ei = /(?:[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;
|
|
759
|
+
function ti(e) {
|
|
754
760
|
var t = {};
|
|
755
|
-
return e.replace(
|
|
761
|
+
return e.replace(ei, function(n) {
|
|
756
762
|
var r = n.length;
|
|
757
763
|
switch (n[0]) {
|
|
758
764
|
case "G":
|
|
@@ -841,46 +847,36 @@ function ni(e) {
|
|
|
841
847
|
return "";
|
|
842
848
|
}), t;
|
|
843
849
|
}
|
|
844
|
-
var
|
|
845
|
-
|
|
846
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
847
|
-
n = arguments[r];
|
|
848
|
-
for (var o in n)
|
|
849
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
850
|
-
}
|
|
851
|
-
return t;
|
|
852
|
-
}, U.apply(this, arguments);
|
|
853
|
-
};
|
|
854
|
-
var ri = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
855
|
-
function ii(e) {
|
|
850
|
+
var ni = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
851
|
+
function ri(e) {
|
|
856
852
|
if (e.length === 0)
|
|
857
853
|
throw new Error("Number skeleton cannot be empty");
|
|
858
|
-
for (var t = e.split(
|
|
859
|
-
return
|
|
854
|
+
for (var t = e.split(ni).filter(function(g) {
|
|
855
|
+
return g.length > 0;
|
|
860
856
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
861
|
-
var
|
|
862
|
-
if (
|
|
857
|
+
var a = i[r], l = a.split("/");
|
|
858
|
+
if (l.length === 0)
|
|
863
859
|
throw new Error("Invalid number skeleton");
|
|
864
|
-
for (var s =
|
|
865
|
-
var
|
|
866
|
-
if (
|
|
860
|
+
for (var s = l[0], p = l.slice(1), h = 0, d = p; h < d.length; h++) {
|
|
861
|
+
var m = d[h];
|
|
862
|
+
if (m.length === 0)
|
|
867
863
|
throw new Error("Invalid number skeleton");
|
|
868
864
|
}
|
|
869
|
-
n.push({ stem: s, options:
|
|
865
|
+
n.push({ stem: s, options: p });
|
|
870
866
|
}
|
|
871
867
|
return n;
|
|
872
868
|
}
|
|
873
|
-
function
|
|
869
|
+
function ii(e) {
|
|
874
870
|
return e.replace(/^(.*?)-/, "");
|
|
875
871
|
}
|
|
876
|
-
var on = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gn = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
872
|
+
var on = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gn = /^(@+)?(\+|#+)?[rs]?$/g, oi = /(\*)(0+)|(#+)(0+)|(0+)/g, $n = /^(0+)$/;
|
|
877
873
|
function an(e) {
|
|
878
874
|
var t = {};
|
|
879
875
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gn, function(n, r, i) {
|
|
880
876
|
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)), "";
|
|
881
877
|
}), t;
|
|
882
878
|
}
|
|
883
|
-
function
|
|
879
|
+
function kn(e) {
|
|
884
880
|
switch (e) {
|
|
885
881
|
case "sign-auto":
|
|
886
882
|
return {
|
|
@@ -920,7 +916,7 @@ function jn(e) {
|
|
|
920
916
|
};
|
|
921
917
|
}
|
|
922
918
|
}
|
|
923
|
-
function
|
|
919
|
+
function ai(e) {
|
|
924
920
|
var t;
|
|
925
921
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
926
922
|
notation: "engineering"
|
|
@@ -935,10 +931,10 @@ function si(e) {
|
|
|
935
931
|
return t;
|
|
936
932
|
}
|
|
937
933
|
function sn(e) {
|
|
938
|
-
var t = {}, n =
|
|
934
|
+
var t = {}, n = kn(e);
|
|
939
935
|
return n || t;
|
|
940
936
|
}
|
|
941
|
-
function
|
|
937
|
+
function si(e) {
|
|
942
938
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
943
939
|
var i = r[n];
|
|
944
940
|
switch (i.stem) {
|
|
@@ -962,7 +958,7 @@ function ui(e) {
|
|
|
962
958
|
continue;
|
|
963
959
|
case "measure-unit":
|
|
964
960
|
case "unit":
|
|
965
|
-
t.style = "unit", t.unit =
|
|
961
|
+
t.style = "unit", t.unit = ii(i.options[0]);
|
|
966
962
|
continue;
|
|
967
963
|
case "compact-short":
|
|
968
964
|
case "K":
|
|
@@ -973,13 +969,13 @@ function ui(e) {
|
|
|
973
969
|
t.notation = "compact", t.compactDisplay = "long";
|
|
974
970
|
continue;
|
|
975
971
|
case "scientific":
|
|
976
|
-
t =
|
|
977
|
-
return
|
|
972
|
+
t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(p, h) {
|
|
973
|
+
return R(R({}, p), sn(h));
|
|
978
974
|
}, {}));
|
|
979
975
|
continue;
|
|
980
976
|
case "engineering":
|
|
981
|
-
t =
|
|
982
|
-
return
|
|
977
|
+
t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(p, h) {
|
|
978
|
+
return R(R({}, p), sn(h));
|
|
983
979
|
}, {}));
|
|
984
980
|
continue;
|
|
985
981
|
case "notation-simple":
|
|
@@ -1024,11 +1020,11 @@ function ui(e) {
|
|
|
1024
1020
|
case "integer-width":
|
|
1025
1021
|
if (i.options.length > 1)
|
|
1026
1022
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1027
|
-
i.options[0].replace(
|
|
1023
|
+
i.options[0].replace(oi, function(p, h, d, m, g, x) {
|
|
1028
1024
|
if (h)
|
|
1029
|
-
t.minimumIntegerDigits =
|
|
1025
|
+
t.minimumIntegerDigits = d.length;
|
|
1030
1026
|
else {
|
|
1031
|
-
if (
|
|
1027
|
+
if (m && g)
|
|
1032
1028
|
throw new Error("We currently do not support maximum integer digits");
|
|
1033
1029
|
if (x)
|
|
1034
1030
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1044,25 +1040,25 @@ function ui(e) {
|
|
|
1044
1040
|
if (on.test(i.stem)) {
|
|
1045
1041
|
if (i.options.length > 1)
|
|
1046
1042
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1047
|
-
i.stem.replace(on, function(
|
|
1048
|
-
return
|
|
1043
|
+
i.stem.replace(on, function(p, h, d, m, g, x) {
|
|
1044
|
+
return d === "*" ? t.minimumFractionDigits = h.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : g && x ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + x.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1049
1045
|
});
|
|
1050
|
-
var
|
|
1051
|
-
|
|
1046
|
+
var a = i.options[0];
|
|
1047
|
+
a === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = R(R({}, t), an(a)));
|
|
1052
1048
|
continue;
|
|
1053
1049
|
}
|
|
1054
1050
|
if (Gn.test(i.stem)) {
|
|
1055
|
-
t =
|
|
1051
|
+
t = R(R({}, t), an(i.stem));
|
|
1056
1052
|
continue;
|
|
1057
1053
|
}
|
|
1058
|
-
var
|
|
1059
|
-
|
|
1060
|
-
var s =
|
|
1061
|
-
s && (t =
|
|
1054
|
+
var l = kn(i.stem);
|
|
1055
|
+
l && (t = R(R({}, t), l));
|
|
1056
|
+
var s = ai(i.stem);
|
|
1057
|
+
s && (t = R(R({}, t), s));
|
|
1062
1058
|
}
|
|
1063
1059
|
return t;
|
|
1064
1060
|
}
|
|
1065
|
-
var
|
|
1061
|
+
var lt = {
|
|
1066
1062
|
"001": [
|
|
1067
1063
|
"H",
|
|
1068
1064
|
"h"
|
|
@@ -2481,19 +2477,19 @@ function li(e, t) {
|
|
|
2481
2477
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2482
2478
|
var i = e.charAt(r);
|
|
2483
2479
|
if (i === "j") {
|
|
2484
|
-
for (var
|
|
2485
|
-
|
|
2486
|
-
var
|
|
2480
|
+
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2481
|
+
a++, r++;
|
|
2482
|
+
var l = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), p = "a", h = ui(t);
|
|
2487
2483
|
for ((h == "H" || h == "k") && (s = 0); s-- > 0; )
|
|
2488
|
-
n +=
|
|
2489
|
-
for (;
|
|
2484
|
+
n += p;
|
|
2485
|
+
for (; l-- > 0; )
|
|
2490
2486
|
n = h + n;
|
|
2491
2487
|
} else
|
|
2492
2488
|
i === "J" ? n += "H" : n += i;
|
|
2493
2489
|
}
|
|
2494
2490
|
return n;
|
|
2495
2491
|
}
|
|
2496
|
-
function
|
|
2492
|
+
function ui(e) {
|
|
2497
2493
|
var t = e.hourCycle;
|
|
2498
2494
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2499
2495
|
e.hourCycles && // @ts-ignore
|
|
@@ -2512,23 +2508,23 @@ function hi(e) {
|
|
|
2512
2508
|
}
|
|
2513
2509
|
var n = e.language, r;
|
|
2514
2510
|
n !== "root" && (r = e.maximize().region);
|
|
2515
|
-
var i =
|
|
2511
|
+
var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
|
|
2516
2512
|
return i[0];
|
|
2517
2513
|
}
|
|
2518
|
-
var
|
|
2519
|
-
function
|
|
2514
|
+
var Rt, hi = new RegExp("^".concat(Un.source, "*")), ci = new RegExp("".concat(Un.source, "*$"));
|
|
2515
|
+
function L(e, t) {
|
|
2520
2516
|
return { start: e, end: t };
|
|
2521
2517
|
}
|
|
2522
|
-
var
|
|
2518
|
+
var fi = !!String.prototype.startsWith && "_a".startsWith("a", 1), di = !!String.fromCodePoint, pi = !!Object.fromEntries, mi = !!String.prototype.codePointAt, gi = !!String.prototype.trimStart, bi = !!String.prototype.trimEnd, yi = !!Number.isSafeInteger, vi = yi ? Number.isSafeInteger : function(e) {
|
|
2523
2519
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2524
|
-
},
|
|
2520
|
+
}, Gt = !0;
|
|
2525
2521
|
try {
|
|
2526
|
-
var
|
|
2527
|
-
|
|
2522
|
+
var Ei = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2523
|
+
Gt = ((Rt = Ei.exec("a")) === null || Rt === void 0 ? void 0 : Rt[0]) === "a";
|
|
2528
2524
|
} catch {
|
|
2529
|
-
|
|
2525
|
+
Gt = !1;
|
|
2530
2526
|
}
|
|
2531
|
-
var
|
|
2527
|
+
var ln = fi ? (
|
|
2532
2528
|
// Native
|
|
2533
2529
|
function(t, n, r) {
|
|
2534
2530
|
return t.startsWith(n, r);
|
|
@@ -2538,31 +2534,31 @@ var un = di ? (
|
|
|
2538
2534
|
function(t, n, r) {
|
|
2539
2535
|
return t.slice(r, r + n.length) === n;
|
|
2540
2536
|
}
|
|
2541
|
-
),
|
|
2537
|
+
), $t = di ? String.fromCodePoint : (
|
|
2542
2538
|
// IE11
|
|
2543
2539
|
function() {
|
|
2544
2540
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2545
2541
|
t[n] = arguments[n];
|
|
2546
|
-
for (var r = "", i = t.length,
|
|
2547
|
-
if (
|
|
2548
|
-
throw RangeError(
|
|
2549
|
-
r +=
|
|
2542
|
+
for (var r = "", i = t.length, a = 0, l; i > a; ) {
|
|
2543
|
+
if (l = t[a++], l > 1114111)
|
|
2544
|
+
throw RangeError(l + " is not a valid code point");
|
|
2545
|
+
r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
|
|
2550
2546
|
}
|
|
2551
2547
|
return r;
|
|
2552
2548
|
}
|
|
2553
|
-
),
|
|
2549
|
+
), un = (
|
|
2554
2550
|
// native
|
|
2555
|
-
|
|
2551
|
+
pi ? Object.fromEntries : (
|
|
2556
2552
|
// Ponyfill
|
|
2557
2553
|
function(t) {
|
|
2558
2554
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2559
|
-
var
|
|
2560
|
-
n[
|
|
2555
|
+
var a = i[r], l = a[0], s = a[1];
|
|
2556
|
+
n[l] = s;
|
|
2561
2557
|
}
|
|
2562
2558
|
return n;
|
|
2563
2559
|
}
|
|
2564
2560
|
)
|
|
2565
|
-
),
|
|
2561
|
+
), jn = mi ? (
|
|
2566
2562
|
// Native
|
|
2567
2563
|
function(t, n) {
|
|
2568
2564
|
return t.codePointAt(n);
|
|
@@ -2572,11 +2568,11 @@ var un = di ? (
|
|
|
2572
2568
|
function(t, n) {
|
|
2573
2569
|
var r = t.length;
|
|
2574
2570
|
if (!(n < 0 || n >= r)) {
|
|
2575
|
-
var i = t.charCodeAt(n),
|
|
2576
|
-
return i < 55296 || i > 56319 || n + 1 === r || (
|
|
2571
|
+
var i = t.charCodeAt(n), a;
|
|
2572
|
+
return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2577
2573
|
}
|
|
2578
2574
|
}
|
|
2579
|
-
),
|
|
2575
|
+
), xi = gi ? (
|
|
2580
2576
|
// Native
|
|
2581
2577
|
function(t) {
|
|
2582
2578
|
return t.trimStart();
|
|
@@ -2584,9 +2580,9 @@ var un = di ? (
|
|
|
2584
2580
|
) : (
|
|
2585
2581
|
// Ponyfill
|
|
2586
2582
|
function(t) {
|
|
2587
|
-
return t.replace(
|
|
2583
|
+
return t.replace(hi, "");
|
|
2588
2584
|
}
|
|
2589
|
-
),
|
|
2585
|
+
), _i = bi ? (
|
|
2590
2586
|
// Native
|
|
2591
2587
|
function(t) {
|
|
2592
2588
|
return t.trimEnd();
|
|
@@ -2594,32 +2590,32 @@ var un = di ? (
|
|
|
2594
2590
|
) : (
|
|
2595
2591
|
// Ponyfill
|
|
2596
2592
|
function(t) {
|
|
2597
|
-
return t.replace(
|
|
2593
|
+
return t.replace(ci, "");
|
|
2598
2594
|
}
|
|
2599
2595
|
);
|
|
2600
2596
|
function Vn(e, t) {
|
|
2601
2597
|
return new RegExp(e, t);
|
|
2602
2598
|
}
|
|
2603
|
-
var
|
|
2604
|
-
if (
|
|
2599
|
+
var kt;
|
|
2600
|
+
if (Gt) {
|
|
2605
2601
|
var hn = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2606
|
-
|
|
2602
|
+
kt = function(t, n) {
|
|
2607
2603
|
var r;
|
|
2608
2604
|
hn.lastIndex = n;
|
|
2609
2605
|
var i = hn.exec(t);
|
|
2610
2606
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2611
2607
|
};
|
|
2612
2608
|
} else
|
|
2613
|
-
|
|
2609
|
+
kt = function(t, n) {
|
|
2614
2610
|
for (var r = []; ; ) {
|
|
2615
|
-
var i =
|
|
2616
|
-
if (i === void 0 || Xn(i) ||
|
|
2611
|
+
var i = jn(t, n);
|
|
2612
|
+
if (i === void 0 || Xn(i) || wi(i))
|
|
2617
2613
|
break;
|
|
2618
2614
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2619
2615
|
}
|
|
2620
|
-
return
|
|
2616
|
+
return $t.apply(void 0, r);
|
|
2621
2617
|
};
|
|
2622
|
-
var
|
|
2618
|
+
var Ti = (
|
|
2623
2619
|
/** @class */
|
|
2624
2620
|
function() {
|
|
2625
2621
|
function e(t, n) {
|
|
@@ -2631,35 +2627,35 @@ var Bi = (
|
|
|
2631
2627
|
return this.parseMessage(0, "", !1);
|
|
2632
2628
|
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2633
2629
|
for (var i = []; !this.isEOF(); ) {
|
|
2634
|
-
var
|
|
2635
|
-
if (
|
|
2636
|
-
var
|
|
2637
|
-
if (
|
|
2638
|
-
return
|
|
2639
|
-
i.push(
|
|
2630
|
+
var a = this.char();
|
|
2631
|
+
if (a === 123) {
|
|
2632
|
+
var l = this.parseArgument(t, r);
|
|
2633
|
+
if (l.err)
|
|
2634
|
+
return l;
|
|
2635
|
+
i.push(l.val);
|
|
2640
2636
|
} else {
|
|
2641
|
-
if (
|
|
2637
|
+
if (a === 125 && t > 0)
|
|
2642
2638
|
break;
|
|
2643
|
-
if (
|
|
2639
|
+
if (a === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2644
2640
|
var s = this.clonePosition();
|
|
2645
2641
|
this.bump(), i.push({
|
|
2646
|
-
type:
|
|
2647
|
-
location:
|
|
2642
|
+
type: I.pound,
|
|
2643
|
+
location: L(s, this.clonePosition())
|
|
2648
2644
|
});
|
|
2649
|
-
} else if (
|
|
2645
|
+
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2650
2646
|
if (r)
|
|
2651
2647
|
break;
|
|
2652
|
-
return this.error(
|
|
2653
|
-
} else if (
|
|
2654
|
-
var
|
|
2655
|
-
if (
|
|
2656
|
-
return
|
|
2657
|
-
i.push(
|
|
2648
|
+
return this.error(H.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
|
|
2649
|
+
} else if (a === 60 && !this.ignoreTag && jt(this.peek() || 0)) {
|
|
2650
|
+
var l = this.parseTag(t, n);
|
|
2651
|
+
if (l.err)
|
|
2652
|
+
return l;
|
|
2653
|
+
i.push(l.val);
|
|
2658
2654
|
} else {
|
|
2659
|
-
var
|
|
2660
|
-
if (
|
|
2661
|
-
return
|
|
2662
|
-
i.push(
|
|
2655
|
+
var l = this.parseLiteral(t, n);
|
|
2656
|
+
if (l.err)
|
|
2657
|
+
return l;
|
|
2658
|
+
i.push(l.val);
|
|
2663
2659
|
}
|
|
2664
2660
|
}
|
|
2665
2661
|
}
|
|
@@ -2671,49 +2667,49 @@ var Bi = (
|
|
|
2671
2667
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2672
2668
|
return {
|
|
2673
2669
|
val: {
|
|
2674
|
-
type:
|
|
2670
|
+
type: I.literal,
|
|
2675
2671
|
value: "<".concat(i, "/>"),
|
|
2676
|
-
location:
|
|
2672
|
+
location: L(r, this.clonePosition())
|
|
2677
2673
|
},
|
|
2678
2674
|
err: null
|
|
2679
2675
|
};
|
|
2680
2676
|
if (this.bumpIf(">")) {
|
|
2681
|
-
var
|
|
2682
|
-
if (
|
|
2683
|
-
return
|
|
2684
|
-
var
|
|
2677
|
+
var a = this.parseMessage(t + 1, n, !0);
|
|
2678
|
+
if (a.err)
|
|
2679
|
+
return a;
|
|
2680
|
+
var l = a.val, s = this.clonePosition();
|
|
2685
2681
|
if (this.bumpIf("</")) {
|
|
2686
|
-
if (this.isEOF() || !
|
|
2687
|
-
return this.error(
|
|
2688
|
-
var
|
|
2689
|
-
return i !== h ? this.error(
|
|
2682
|
+
if (this.isEOF() || !jt(this.char()))
|
|
2683
|
+
return this.error(H.INVALID_TAG, L(s, this.clonePosition()));
|
|
2684
|
+
var p = this.clonePosition(), h = this.parseTagName();
|
|
2685
|
+
return i !== h ? this.error(H.UNMATCHED_CLOSING_TAG, L(p, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2690
2686
|
val: {
|
|
2691
|
-
type:
|
|
2687
|
+
type: I.tag,
|
|
2692
2688
|
value: i,
|
|
2693
|
-
children:
|
|
2694
|
-
location:
|
|
2689
|
+
children: l,
|
|
2690
|
+
location: L(r, this.clonePosition())
|
|
2695
2691
|
},
|
|
2696
2692
|
err: null
|
|
2697
|
-
} : this.error(
|
|
2693
|
+
} : this.error(H.INVALID_TAG, L(s, this.clonePosition())));
|
|
2698
2694
|
} else
|
|
2699
|
-
return this.error(
|
|
2695
|
+
return this.error(H.UNCLOSED_TAG, L(r, this.clonePosition()));
|
|
2700
2696
|
} else
|
|
2701
|
-
return this.error(
|
|
2697
|
+
return this.error(H.INVALID_TAG, L(r, this.clonePosition()));
|
|
2702
2698
|
}, e.prototype.parseTagName = function() {
|
|
2703
2699
|
var t = this.offset();
|
|
2704
|
-
for (this.bump(); !this.isEOF() &&
|
|
2700
|
+
for (this.bump(); !this.isEOF() && Si(this.char()); )
|
|
2705
2701
|
this.bump();
|
|
2706
2702
|
return this.message.slice(t, this.offset());
|
|
2707
2703
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
2708
2704
|
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2709
|
-
var
|
|
2710
|
-
if (
|
|
2711
|
-
i +=
|
|
2705
|
+
var a = this.tryParseQuote(n);
|
|
2706
|
+
if (a) {
|
|
2707
|
+
i += a;
|
|
2712
2708
|
continue;
|
|
2713
2709
|
}
|
|
2714
|
-
var
|
|
2715
|
-
if (
|
|
2716
|
-
i +=
|
|
2710
|
+
var l = this.tryParseUnquoted(t, n);
|
|
2711
|
+
if (l) {
|
|
2712
|
+
i += l;
|
|
2717
2713
|
continue;
|
|
2718
2714
|
}
|
|
2719
2715
|
var s = this.tryParseLeftAngleBracket();
|
|
@@ -2723,14 +2719,14 @@ var Bi = (
|
|
|
2723
2719
|
}
|
|
2724
2720
|
break;
|
|
2725
2721
|
}
|
|
2726
|
-
var
|
|
2722
|
+
var p = L(r, this.clonePosition());
|
|
2727
2723
|
return {
|
|
2728
|
-
val: { type:
|
|
2724
|
+
val: { type: I.literal, value: i, location: p },
|
|
2729
2725
|
err: null
|
|
2730
2726
|
};
|
|
2731
2727
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2732
2728
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2733
|
-
!
|
|
2729
|
+
!Bi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2734
2730
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2735
2731
|
if (this.isEOF() || this.char() !== 39)
|
|
2736
2732
|
return null;
|
|
@@ -2764,49 +2760,49 @@ var Bi = (
|
|
|
2764
2760
|
n.push(r);
|
|
2765
2761
|
this.bump();
|
|
2766
2762
|
}
|
|
2767
|
-
return
|
|
2763
|
+
return $t.apply(void 0, n);
|
|
2768
2764
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2769
2765
|
if (this.isEOF())
|
|
2770
2766
|
return null;
|
|
2771
2767
|
var r = this.char();
|
|
2772
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2768
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), $t(r));
|
|
2773
2769
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2774
2770
|
var r = this.clonePosition();
|
|
2775
2771
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2776
|
-
return this.error(
|
|
2772
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2777
2773
|
if (this.char() === 125)
|
|
2778
|
-
return this.bump(), this.error(
|
|
2774
|
+
return this.bump(), this.error(H.EMPTY_ARGUMENT, L(r, this.clonePosition()));
|
|
2779
2775
|
var i = this.parseIdentifierIfPossible().value;
|
|
2780
2776
|
if (!i)
|
|
2781
|
-
return this.error(
|
|
2777
|
+
return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2782
2778
|
if (this.bumpSpace(), this.isEOF())
|
|
2783
|
-
return this.error(
|
|
2779
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2784
2780
|
switch (this.char()) {
|
|
2785
2781
|
case 125:
|
|
2786
2782
|
return this.bump(), {
|
|
2787
2783
|
val: {
|
|
2788
|
-
type:
|
|
2784
|
+
type: I.argument,
|
|
2789
2785
|
// value does not include the opening and closing braces.
|
|
2790
2786
|
value: i,
|
|
2791
|
-
location:
|
|
2787
|
+
location: L(r, this.clonePosition())
|
|
2792
2788
|
},
|
|
2793
2789
|
err: null
|
|
2794
2790
|
};
|
|
2795
2791
|
case 44:
|
|
2796
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2792
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2797
2793
|
default:
|
|
2798
|
-
return this.error(
|
|
2794
|
+
return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2799
2795
|
}
|
|
2800
2796
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2801
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2797
|
+
var t = this.clonePosition(), n = this.offset(), r = kt(this.message, n), i = n + r.length;
|
|
2802
2798
|
this.bumpTo(i);
|
|
2803
|
-
var
|
|
2804
|
-
return { value: r, location:
|
|
2799
|
+
var a = this.clonePosition(), l = L(t, a);
|
|
2800
|
+
return { value: r, location: l };
|
|
2805
2801
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2806
|
-
var
|
|
2802
|
+
var a, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, p = this.clonePosition();
|
|
2807
2803
|
switch (s) {
|
|
2808
2804
|
case "":
|
|
2809
|
-
return this.error(
|
|
2805
|
+
return this.error(H.EXPECT_ARGUMENT_TYPE, L(l, p));
|
|
2810
2806
|
case "number":
|
|
2811
2807
|
case "date":
|
|
2812
2808
|
case "time": {
|
|
@@ -2814,50 +2810,50 @@ var Bi = (
|
|
|
2814
2810
|
var h = null;
|
|
2815
2811
|
if (this.bumpIf(",")) {
|
|
2816
2812
|
this.bumpSpace();
|
|
2817
|
-
var
|
|
2818
|
-
if (
|
|
2819
|
-
return
|
|
2820
|
-
var
|
|
2821
|
-
if (
|
|
2822
|
-
return this.error(
|
|
2823
|
-
var x =
|
|
2824
|
-
h = { style:
|
|
2813
|
+
var d = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
2814
|
+
if (m.err)
|
|
2815
|
+
return m;
|
|
2816
|
+
var g = _i(m.val);
|
|
2817
|
+
if (g.length === 0)
|
|
2818
|
+
return this.error(H.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2819
|
+
var x = L(d, this.clonePosition());
|
|
2820
|
+
h = { style: g, styleLocation: x };
|
|
2825
2821
|
}
|
|
2826
2822
|
var T = this.tryParseArgumentClose(i);
|
|
2827
2823
|
if (T.err)
|
|
2828
2824
|
return T;
|
|
2829
|
-
var P =
|
|
2830
|
-
if (h &&
|
|
2831
|
-
var
|
|
2825
|
+
var P = L(i, this.clonePosition());
|
|
2826
|
+
if (h && ln(h?.style, "::", 0)) {
|
|
2827
|
+
var $ = xi(h.style.slice(2));
|
|
2832
2828
|
if (s === "number") {
|
|
2833
|
-
var
|
|
2834
|
-
return
|
|
2835
|
-
val: { type:
|
|
2829
|
+
var m = this.parseNumberSkeletonFromString($, h.styleLocation);
|
|
2830
|
+
return m.err ? m : {
|
|
2831
|
+
val: { type: I.number, value: r, location: P, style: m.val },
|
|
2836
2832
|
err: null
|
|
2837
2833
|
};
|
|
2838
2834
|
} else {
|
|
2839
|
-
if (
|
|
2840
|
-
return this.error(
|
|
2841
|
-
var
|
|
2842
|
-
this.locale && (
|
|
2843
|
-
var
|
|
2844
|
-
type:
|
|
2845
|
-
pattern:
|
|
2835
|
+
if ($.length === 0)
|
|
2836
|
+
return this.error(H.EXPECT_DATE_TIME_SKELETON, P);
|
|
2837
|
+
var X = $;
|
|
2838
|
+
this.locale && (X = li($, this.locale));
|
|
2839
|
+
var g = {
|
|
2840
|
+
type: De.dateTime,
|
|
2841
|
+
pattern: X,
|
|
2846
2842
|
location: h.styleLocation,
|
|
2847
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2848
|
-
},
|
|
2843
|
+
parsedOptions: this.shouldParseSkeletons ? ti(X) : {}
|
|
2844
|
+
}, F = s === "date" ? I.date : I.time;
|
|
2849
2845
|
return {
|
|
2850
|
-
val: { type:
|
|
2846
|
+
val: { type: F, value: r, location: P, style: g },
|
|
2851
2847
|
err: null
|
|
2852
2848
|
};
|
|
2853
2849
|
}
|
|
2854
2850
|
}
|
|
2855
2851
|
return {
|
|
2856
2852
|
val: {
|
|
2857
|
-
type: s === "number" ?
|
|
2853
|
+
type: s === "number" ? I.number : s === "date" ? I.date : I.time,
|
|
2858
2854
|
value: r,
|
|
2859
2855
|
location: P,
|
|
2860
|
-
style: (
|
|
2856
|
+
style: (a = h?.style) !== null && a !== void 0 ? a : null
|
|
2861
2857
|
},
|
|
2862
2858
|
err: null
|
|
2863
2859
|
};
|
|
@@ -2867,50 +2863,50 @@ var Bi = (
|
|
|
2867
2863
|
case "select": {
|
|
2868
2864
|
var B = this.clonePosition();
|
|
2869
2865
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2870
|
-
return this.error(
|
|
2866
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, L(B, R({}, B)));
|
|
2871
2867
|
this.bumpSpace();
|
|
2872
|
-
var
|
|
2873
|
-
if (s !== "select" &&
|
|
2868
|
+
var S = this.parseIdentifierIfPossible(), G = 0;
|
|
2869
|
+
if (s !== "select" && S.value === "offset") {
|
|
2874
2870
|
if (!this.bumpIf(":"))
|
|
2875
|
-
return this.error(
|
|
2871
|
+
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
|
|
2876
2872
|
this.bumpSpace();
|
|
2877
|
-
var
|
|
2878
|
-
if (
|
|
2879
|
-
return
|
|
2880
|
-
this.bumpSpace(),
|
|
2873
|
+
var m = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2874
|
+
if (m.err)
|
|
2875
|
+
return m;
|
|
2876
|
+
this.bumpSpace(), S = this.parseIdentifierIfPossible(), G = m.val;
|
|
2881
2877
|
}
|
|
2882
|
-
var
|
|
2883
|
-
if (
|
|
2884
|
-
return
|
|
2878
|
+
var O = this.tryParsePluralOrSelectOptions(t, s, n, S);
|
|
2879
|
+
if (O.err)
|
|
2880
|
+
return O;
|
|
2885
2881
|
var T = this.tryParseArgumentClose(i);
|
|
2886
2882
|
if (T.err)
|
|
2887
2883
|
return T;
|
|
2888
|
-
var
|
|
2884
|
+
var Y = L(i, this.clonePosition());
|
|
2889
2885
|
return s === "select" ? {
|
|
2890
2886
|
val: {
|
|
2891
|
-
type:
|
|
2887
|
+
type: I.select,
|
|
2892
2888
|
value: r,
|
|
2893
|
-
options:
|
|
2894
|
-
location:
|
|
2889
|
+
options: un(O.val),
|
|
2890
|
+
location: Y
|
|
2895
2891
|
},
|
|
2896
2892
|
err: null
|
|
2897
2893
|
} : {
|
|
2898
2894
|
val: {
|
|
2899
|
-
type:
|
|
2895
|
+
type: I.plural,
|
|
2900
2896
|
value: r,
|
|
2901
|
-
options:
|
|
2902
|
-
offset:
|
|
2897
|
+
options: un(O.val),
|
|
2898
|
+
offset: G,
|
|
2903
2899
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2904
|
-
location:
|
|
2900
|
+
location: Y
|
|
2905
2901
|
},
|
|
2906
2902
|
err: null
|
|
2907
2903
|
};
|
|
2908
2904
|
}
|
|
2909
2905
|
default:
|
|
2910
|
-
return this.error(
|
|
2906
|
+
return this.error(H.INVALID_ARGUMENT_TYPE, L(l, p));
|
|
2911
2907
|
}
|
|
2912
2908
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2913
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2909
|
+
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2914
2910
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2915
2911
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2916
2912
|
var r = this.char();
|
|
@@ -2919,7 +2915,7 @@ var Bi = (
|
|
|
2919
2915
|
this.bump();
|
|
2920
2916
|
var i = this.clonePosition();
|
|
2921
2917
|
if (!this.bumpUntil("'"))
|
|
2922
|
-
return this.error(
|
|
2918
|
+
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
|
|
2923
2919
|
this.bump();
|
|
2924
2920
|
break;
|
|
2925
2921
|
}
|
|
@@ -2949,37 +2945,37 @@ var Bi = (
|
|
|
2949
2945
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2950
2946
|
var r = [];
|
|
2951
2947
|
try {
|
|
2952
|
-
r =
|
|
2948
|
+
r = ri(t);
|
|
2953
2949
|
} catch {
|
|
2954
|
-
return this.error(
|
|
2950
|
+
return this.error(H.INVALID_NUMBER_SKELETON, n);
|
|
2955
2951
|
}
|
|
2956
2952
|
return {
|
|
2957
2953
|
val: {
|
|
2958
|
-
type:
|
|
2954
|
+
type: De.number,
|
|
2959
2955
|
tokens: r,
|
|
2960
2956
|
location: n,
|
|
2961
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2957
|
+
parsedOptions: this.shouldParseSkeletons ? si(r) : {}
|
|
2962
2958
|
},
|
|
2963
2959
|
err: null
|
|
2964
2960
|
};
|
|
2965
2961
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2966
|
-
for (var
|
|
2962
|
+
for (var a, l = !1, s = [], p = /* @__PURE__ */ new Set(), h = i.value, d = i.location; ; ) {
|
|
2967
2963
|
if (h.length === 0) {
|
|
2968
|
-
var
|
|
2964
|
+
var m = this.clonePosition();
|
|
2969
2965
|
if (n !== "select" && this.bumpIf("=")) {
|
|
2970
|
-
var
|
|
2971
|
-
if (
|
|
2972
|
-
return
|
|
2973
|
-
|
|
2966
|
+
var g = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2967
|
+
if (g.err)
|
|
2968
|
+
return g;
|
|
2969
|
+
d = L(m, this.clonePosition()), h = this.message.slice(m.offset, this.offset());
|
|
2974
2970
|
} else
|
|
2975
2971
|
break;
|
|
2976
2972
|
}
|
|
2977
|
-
if (
|
|
2978
|
-
return this.error(n === "select" ?
|
|
2979
|
-
h === "other" && (
|
|
2973
|
+
if (p.has(h))
|
|
2974
|
+
return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
|
|
2975
|
+
h === "other" && (l = !0), this.bumpSpace();
|
|
2980
2976
|
var x = this.clonePosition();
|
|
2981
2977
|
if (!this.bumpIf("{"))
|
|
2982
|
-
return this.error(n === "select" ?
|
|
2978
|
+
return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
|
|
2983
2979
|
var T = this.parseMessage(t + 1, n, r);
|
|
2984
2980
|
if (T.err)
|
|
2985
2981
|
return T;
|
|
@@ -2990,23 +2986,23 @@ var Bi = (
|
|
|
2990
2986
|
h,
|
|
2991
2987
|
{
|
|
2992
2988
|
value: T.val,
|
|
2993
|
-
location:
|
|
2989
|
+
location: L(x, this.clonePosition())
|
|
2994
2990
|
}
|
|
2995
|
-
]),
|
|
2991
|
+
]), p.add(h), this.bumpSpace(), a = this.parseIdentifierIfPossible(), h = a.value, d = a.location;
|
|
2996
2992
|
}
|
|
2997
|
-
return s.length === 0 ? this.error(n === "select" ?
|
|
2993
|
+
return s.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(H.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2998
2994
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
2999
2995
|
var r = 1, i = this.clonePosition();
|
|
3000
2996
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3001
|
-
for (var
|
|
2997
|
+
for (var a = !1, l = 0; !this.isEOF(); ) {
|
|
3002
2998
|
var s = this.char();
|
|
3003
2999
|
if (s >= 48 && s <= 57)
|
|
3004
|
-
|
|
3000
|
+
a = !0, l = l * 10 + (s - 48), this.bump();
|
|
3005
3001
|
else
|
|
3006
3002
|
break;
|
|
3007
3003
|
}
|
|
3008
|
-
var
|
|
3009
|
-
return
|
|
3004
|
+
var p = L(i, this.clonePosition());
|
|
3005
|
+
return a ? (l *= r, vi(l) ? { val: l, err: null } : this.error(n, p)) : this.error(t, p);
|
|
3010
3006
|
}, e.prototype.offset = function() {
|
|
3011
3007
|
return this.position.offset;
|
|
3012
3008
|
}, e.prototype.isEOF = function() {
|
|
@@ -3021,7 +3017,7 @@ var Bi = (
|
|
|
3021
3017
|
var t = this.position.offset;
|
|
3022
3018
|
if (t >= this.message.length)
|
|
3023
3019
|
throw Error("out of bound");
|
|
3024
|
-
var n =
|
|
3020
|
+
var n = jn(this.message, t);
|
|
3025
3021
|
if (n === void 0)
|
|
3026
3022
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3027
3023
|
return n;
|
|
@@ -3040,7 +3036,7 @@ var Bi = (
|
|
|
3040
3036
|
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);
|
|
3041
3037
|
}
|
|
3042
3038
|
}, e.prototype.bumpIf = function(t) {
|
|
3043
|
-
if (
|
|
3039
|
+
if (ln(this.message, t, this.offset())) {
|
|
3044
3040
|
for (var n = 0; n < t.length; n++)
|
|
3045
3041
|
this.bump();
|
|
3046
3042
|
return !0;
|
|
@@ -3072,50 +3068,50 @@ var Bi = (
|
|
|
3072
3068
|
}, e;
|
|
3073
3069
|
}()
|
|
3074
3070
|
);
|
|
3075
|
-
function
|
|
3071
|
+
function jt(e) {
|
|
3076
3072
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3077
3073
|
}
|
|
3078
|
-
function
|
|
3079
|
-
return
|
|
3074
|
+
function Bi(e) {
|
|
3075
|
+
return jt(e) || e === 47;
|
|
3080
3076
|
}
|
|
3081
|
-
function
|
|
3077
|
+
function Si(e) {
|
|
3082
3078
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3083
3079
|
}
|
|
3084
3080
|
function Xn(e) {
|
|
3085
3081
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3086
3082
|
}
|
|
3087
|
-
function
|
|
3083
|
+
function wi(e) {
|
|
3088
3084
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3089
3085
|
}
|
|
3090
|
-
function
|
|
3086
|
+
function Vt(e) {
|
|
3091
3087
|
e.forEach(function(t) {
|
|
3092
3088
|
if (delete t.location, Pn(t) || In(t))
|
|
3093
3089
|
for (var n in t.options)
|
|
3094
|
-
delete t.options[n].location,
|
|
3090
|
+
delete t.options[n].location, Vt(t.options[n].value);
|
|
3095
3091
|
else
|
|
3096
|
-
Rn(t) && Fn(t.style) || (Nn(t) || Mn(t)) &&
|
|
3092
|
+
Rn(t) && Fn(t.style) || (Nn(t) || Mn(t)) && Ut(t.style) ? delete t.style.location : Dn(t) && Vt(t.children);
|
|
3097
3093
|
});
|
|
3098
3094
|
}
|
|
3099
|
-
function
|
|
3100
|
-
t === void 0 && (t = {}), t =
|
|
3101
|
-
var n = new
|
|
3095
|
+
function Ai(e, t) {
|
|
3096
|
+
t === void 0 && (t = {}), t = R({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3097
|
+
var n = new Ti(e, t).parse();
|
|
3102
3098
|
if (n.err) {
|
|
3103
|
-
var r = SyntaxError(
|
|
3099
|
+
var r = SyntaxError(H[n.err.kind]);
|
|
3104
3100
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3105
3101
|
}
|
|
3106
|
-
return t?.captureLocation ||
|
|
3102
|
+
return t?.captureLocation || Vt(n.val), n.val;
|
|
3107
3103
|
}
|
|
3108
|
-
var
|
|
3104
|
+
var Fe;
|
|
3109
3105
|
(function(e) {
|
|
3110
3106
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3111
|
-
})(
|
|
3112
|
-
var
|
|
3107
|
+
})(Fe || (Fe = {}));
|
|
3108
|
+
var yt = (
|
|
3113
3109
|
/** @class */
|
|
3114
3110
|
function(e) {
|
|
3115
|
-
|
|
3111
|
+
bt(t, e);
|
|
3116
3112
|
function t(n, r, i) {
|
|
3117
|
-
var
|
|
3118
|
-
return
|
|
3113
|
+
var a = e.call(this, n) || this;
|
|
3114
|
+
return a.code = r, a.originalMessage = i, a;
|
|
3119
3115
|
}
|
|
3120
3116
|
return t.prototype.toString = function() {
|
|
3121
3117
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3124,152 +3120,152 @@ var vt = (
|
|
|
3124
3120
|
), cn = (
|
|
3125
3121
|
/** @class */
|
|
3126
3122
|
function(e) {
|
|
3127
|
-
|
|
3128
|
-
function t(n, r, i,
|
|
3129
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3123
|
+
bt(t, e);
|
|
3124
|
+
function t(n, r, i, a) {
|
|
3125
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Fe.INVALID_VALUE, a) || this;
|
|
3130
3126
|
}
|
|
3131
3127
|
return t;
|
|
3132
|
-
}(
|
|
3133
|
-
),
|
|
3128
|
+
}(yt)
|
|
3129
|
+
), Ci = (
|
|
3134
3130
|
/** @class */
|
|
3135
3131
|
function(e) {
|
|
3136
|
-
|
|
3132
|
+
bt(t, e);
|
|
3137
3133
|
function t(n, r, i) {
|
|
3138
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3134
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Fe.INVALID_VALUE, i) || this;
|
|
3139
3135
|
}
|
|
3140
3136
|
return t;
|
|
3141
|
-
}(
|
|
3142
|
-
),
|
|
3137
|
+
}(yt)
|
|
3138
|
+
), Hi = (
|
|
3143
3139
|
/** @class */
|
|
3144
3140
|
function(e) {
|
|
3145
|
-
|
|
3141
|
+
bt(t, e);
|
|
3146
3142
|
function t(n, r) {
|
|
3147
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3143
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Fe.MISSING_VALUE, r) || this;
|
|
3148
3144
|
}
|
|
3149
3145
|
return t;
|
|
3150
|
-
}(
|
|
3151
|
-
),
|
|
3146
|
+
}(yt)
|
|
3147
|
+
), J;
|
|
3152
3148
|
(function(e) {
|
|
3153
3149
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3154
|
-
})(
|
|
3150
|
+
})(J || (J = {}));
|
|
3155
3151
|
function Li(e) {
|
|
3156
3152
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3157
3153
|
var r = t[t.length - 1];
|
|
3158
|
-
return !r || r.type !==
|
|
3154
|
+
return !r || r.type !== J.literal || n.type !== J.literal ? t.push(n) : r.value += n.value, t;
|
|
3159
3155
|
}, []);
|
|
3160
3156
|
}
|
|
3161
|
-
function
|
|
3157
|
+
function Oi(e) {
|
|
3162
3158
|
return typeof e == "function";
|
|
3163
3159
|
}
|
|
3164
|
-
function ht(e, t, n, r, i,
|
|
3160
|
+
function ht(e, t, n, r, i, a, l) {
|
|
3165
3161
|
if (e.length === 1 && rn(e[0]))
|
|
3166
3162
|
return [
|
|
3167
3163
|
{
|
|
3168
|
-
type:
|
|
3164
|
+
type: J.literal,
|
|
3169
3165
|
value: e[0].value
|
|
3170
3166
|
}
|
|
3171
3167
|
];
|
|
3172
|
-
for (var s = [],
|
|
3173
|
-
var
|
|
3174
|
-
if (rn(
|
|
3168
|
+
for (var s = [], p = 0, h = e; p < h.length; p++) {
|
|
3169
|
+
var d = h[p];
|
|
3170
|
+
if (rn(d)) {
|
|
3175
3171
|
s.push({
|
|
3176
|
-
type:
|
|
3177
|
-
value:
|
|
3172
|
+
type: J.literal,
|
|
3173
|
+
value: d.value
|
|
3178
3174
|
});
|
|
3179
3175
|
continue;
|
|
3180
3176
|
}
|
|
3181
|
-
if (
|
|
3182
|
-
typeof
|
|
3183
|
-
type:
|
|
3184
|
-
value: n.getNumberFormat(t).format(
|
|
3177
|
+
if (Kr(d)) {
|
|
3178
|
+
typeof a == "number" && s.push({
|
|
3179
|
+
type: J.literal,
|
|
3180
|
+
value: n.getNumberFormat(t).format(a)
|
|
3185
3181
|
});
|
|
3186
3182
|
continue;
|
|
3187
3183
|
}
|
|
3188
|
-
var
|
|
3189
|
-
if (!(i &&
|
|
3190
|
-
throw new
|
|
3191
|
-
var
|
|
3192
|
-
if (
|
|
3193
|
-
(!
|
|
3194
|
-
type: typeof
|
|
3195
|
-
value:
|
|
3184
|
+
var m = d.value;
|
|
3185
|
+
if (!(i && m in i))
|
|
3186
|
+
throw new Hi(m, l);
|
|
3187
|
+
var g = i[m];
|
|
3188
|
+
if (Yr(d)) {
|
|
3189
|
+
(!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
|
|
3190
|
+
type: typeof g == "string" ? J.literal : J.object,
|
|
3191
|
+
value: g
|
|
3196
3192
|
});
|
|
3197
3193
|
continue;
|
|
3198
3194
|
}
|
|
3199
|
-
if (Nn(
|
|
3200
|
-
var x = typeof
|
|
3195
|
+
if (Nn(d)) {
|
|
3196
|
+
var x = typeof d.style == "string" ? r.date[d.style] : Ut(d.style) ? d.style.parsedOptions : void 0;
|
|
3201
3197
|
s.push({
|
|
3202
|
-
type:
|
|
3203
|
-
value: n.getDateTimeFormat(t, x).format(
|
|
3198
|
+
type: J.literal,
|
|
3199
|
+
value: n.getDateTimeFormat(t, x).format(g)
|
|
3204
3200
|
});
|
|
3205
3201
|
continue;
|
|
3206
3202
|
}
|
|
3207
|
-
if (Mn(
|
|
3208
|
-
var x = typeof
|
|
3203
|
+
if (Mn(d)) {
|
|
3204
|
+
var x = typeof d.style == "string" ? r.time[d.style] : Ut(d.style) ? d.style.parsedOptions : r.time.medium;
|
|
3209
3205
|
s.push({
|
|
3210
|
-
type:
|
|
3211
|
-
value: n.getDateTimeFormat(t, x).format(
|
|
3206
|
+
type: J.literal,
|
|
3207
|
+
value: n.getDateTimeFormat(t, x).format(g)
|
|
3212
3208
|
});
|
|
3213
3209
|
continue;
|
|
3214
3210
|
}
|
|
3215
|
-
if (Rn(
|
|
3216
|
-
var x = typeof
|
|
3217
|
-
x && x.scale && (
|
|
3218
|
-
type:
|
|
3219
|
-
value: n.getNumberFormat(t, x).format(
|
|
3211
|
+
if (Rn(d)) {
|
|
3212
|
+
var x = typeof d.style == "string" ? r.number[d.style] : Fn(d.style) ? d.style.parsedOptions : void 0;
|
|
3213
|
+
x && x.scale && (g = g * (x.scale || 1)), s.push({
|
|
3214
|
+
type: J.literal,
|
|
3215
|
+
value: n.getNumberFormat(t, x).format(g)
|
|
3220
3216
|
});
|
|
3221
3217
|
continue;
|
|
3222
3218
|
}
|
|
3223
|
-
if (Dn(
|
|
3224
|
-
var T =
|
|
3225
|
-
if (!
|
|
3226
|
-
throw new
|
|
3227
|
-
var
|
|
3228
|
-
return
|
|
3219
|
+
if (Dn(d)) {
|
|
3220
|
+
var T = d.children, P = d.value, $ = i[P];
|
|
3221
|
+
if (!Oi($))
|
|
3222
|
+
throw new Ci(P, "function", l);
|
|
3223
|
+
var X = ht(T, t, n, r, i, a), F = $(X.map(function(G) {
|
|
3224
|
+
return G.value;
|
|
3229
3225
|
}));
|
|
3230
|
-
Array.isArray(
|
|
3226
|
+
Array.isArray(F) || (F = [F]), s.push.apply(s, F.map(function(G) {
|
|
3231
3227
|
return {
|
|
3232
|
-
type: typeof
|
|
3233
|
-
value:
|
|
3228
|
+
type: typeof G == "string" ? J.literal : J.object,
|
|
3229
|
+
value: G
|
|
3234
3230
|
};
|
|
3235
3231
|
}));
|
|
3236
3232
|
}
|
|
3237
|
-
if (Pn(
|
|
3238
|
-
var B =
|
|
3233
|
+
if (Pn(d)) {
|
|
3234
|
+
var B = d.options[g] || d.options.other;
|
|
3239
3235
|
if (!B)
|
|
3240
|
-
throw new cn(
|
|
3236
|
+
throw new cn(d.value, g, Object.keys(d.options), l);
|
|
3241
3237
|
s.push.apply(s, ht(B.value, t, n, r, i));
|
|
3242
3238
|
continue;
|
|
3243
3239
|
}
|
|
3244
|
-
if (In(
|
|
3245
|
-
var B =
|
|
3240
|
+
if (In(d)) {
|
|
3241
|
+
var B = d.options["=".concat(g)];
|
|
3246
3242
|
if (!B) {
|
|
3247
3243
|
if (!Intl.PluralRules)
|
|
3248
|
-
throw new
|
|
3244
|
+
throw new yt(`Intl.PluralRules is not available in this environment.
|
|
3249
3245
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3250
|
-
`,
|
|
3251
|
-
var
|
|
3252
|
-
B =
|
|
3246
|
+
`, Fe.MISSING_INTL_API, l);
|
|
3247
|
+
var S = n.getPluralRules(t, { type: d.pluralType }).select(g - (d.offset || 0));
|
|
3248
|
+
B = d.options[S] || d.options.other;
|
|
3253
3249
|
}
|
|
3254
3250
|
if (!B)
|
|
3255
|
-
throw new cn(
|
|
3256
|
-
s.push.apply(s, ht(B.value, t, n, r, i,
|
|
3251
|
+
throw new cn(d.value, g, Object.keys(d.options), l);
|
|
3252
|
+
s.push.apply(s, ht(B.value, t, n, r, i, g - (d.offset || 0)));
|
|
3257
3253
|
continue;
|
|
3258
3254
|
}
|
|
3259
3255
|
}
|
|
3260
3256
|
return Li(s);
|
|
3261
3257
|
}
|
|
3262
|
-
function
|
|
3263
|
-
return t ?
|
|
3264
|
-
return n[r] =
|
|
3258
|
+
function Ri(e, t) {
|
|
3259
|
+
return t ? R(R(R({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3260
|
+
return n[r] = R(R({}, e[r]), t[r] || {}), n;
|
|
3265
3261
|
}, {})) : e;
|
|
3266
3262
|
}
|
|
3267
|
-
function
|
|
3263
|
+
function Ni(e, t) {
|
|
3268
3264
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3269
|
-
return n[r] =
|
|
3270
|
-
},
|
|
3265
|
+
return n[r] = Ri(e[r], t[r]), n;
|
|
3266
|
+
}, R({}, e)) : e;
|
|
3271
3267
|
}
|
|
3272
|
-
function
|
|
3268
|
+
function Nt(e) {
|
|
3273
3269
|
return {
|
|
3274
3270
|
create: function() {
|
|
3275
3271
|
return {
|
|
@@ -3283,77 +3279,77 @@ function Pt(e) {
|
|
|
3283
3279
|
}
|
|
3284
3280
|
};
|
|
3285
3281
|
}
|
|
3286
|
-
function
|
|
3282
|
+
function Mi(e) {
|
|
3287
3283
|
return e === void 0 && (e = {
|
|
3288
3284
|
number: {},
|
|
3289
3285
|
dateTime: {},
|
|
3290
3286
|
pluralRules: {}
|
|
3291
3287
|
}), {
|
|
3292
|
-
getNumberFormat:
|
|
3288
|
+
getNumberFormat: Lt(function() {
|
|
3293
3289
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3294
3290
|
n[r] = arguments[r];
|
|
3295
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3291
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ht([void 0], n, !1)))();
|
|
3296
3292
|
}, {
|
|
3297
|
-
cache:
|
|
3298
|
-
strategy:
|
|
3293
|
+
cache: Nt(e.number),
|
|
3294
|
+
strategy: Ot.variadic
|
|
3299
3295
|
}),
|
|
3300
|
-
getDateTimeFormat:
|
|
3296
|
+
getDateTimeFormat: Lt(function() {
|
|
3301
3297
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3302
3298
|
n[r] = arguments[r];
|
|
3303
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3299
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ht([void 0], n, !1)))();
|
|
3304
3300
|
}, {
|
|
3305
|
-
cache:
|
|
3306
|
-
strategy:
|
|
3301
|
+
cache: Nt(e.dateTime),
|
|
3302
|
+
strategy: Ot.variadic
|
|
3307
3303
|
}),
|
|
3308
|
-
getPluralRules:
|
|
3304
|
+
getPluralRules: Lt(function() {
|
|
3309
3305
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3310
3306
|
n[r] = arguments[r];
|
|
3311
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3307
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ht([void 0], n, !1)))();
|
|
3312
3308
|
}, {
|
|
3313
|
-
cache:
|
|
3314
|
-
strategy:
|
|
3309
|
+
cache: Nt(e.pluralRules),
|
|
3310
|
+
strategy: Ot.variadic
|
|
3315
3311
|
})
|
|
3316
3312
|
};
|
|
3317
3313
|
}
|
|
3318
|
-
var
|
|
3314
|
+
var Pi = (
|
|
3319
3315
|
/** @class */
|
|
3320
3316
|
function() {
|
|
3321
3317
|
function e(t, n, r, i) {
|
|
3322
3318
|
n === void 0 && (n = e.defaultLocale);
|
|
3323
|
-
var
|
|
3319
|
+
var a = this;
|
|
3324
3320
|
if (this.formatterCache = {
|
|
3325
3321
|
number: {},
|
|
3326
3322
|
dateTime: {},
|
|
3327
3323
|
pluralRules: {}
|
|
3328
|
-
}, this.format = function(
|
|
3329
|
-
var h =
|
|
3324
|
+
}, this.format = function(p) {
|
|
3325
|
+
var h = a.formatToParts(p);
|
|
3330
3326
|
if (h.length === 1)
|
|
3331
3327
|
return h[0].value;
|
|
3332
|
-
var
|
|
3333
|
-
return !
|
|
3328
|
+
var d = h.reduce(function(m, g) {
|
|
3329
|
+
return !m.length || g.type !== J.literal || typeof m[m.length - 1] != "string" ? m.push(g.value) : m[m.length - 1] += g.value, m;
|
|
3334
3330
|
}, []);
|
|
3335
|
-
return
|
|
3336
|
-
}, this.formatToParts = function(
|
|
3337
|
-
return ht(
|
|
3331
|
+
return d.length <= 1 ? d[0] || "" : d;
|
|
3332
|
+
}, this.formatToParts = function(p) {
|
|
3333
|
+
return ht(a.ast, a.locales, a.formatters, a.formats, p, void 0, a.message);
|
|
3338
3334
|
}, this.resolvedOptions = function() {
|
|
3339
|
-
var
|
|
3335
|
+
var p;
|
|
3340
3336
|
return {
|
|
3341
|
-
locale: ((
|
|
3337
|
+
locale: ((p = a.resolvedLocale) === null || p === void 0 ? void 0 : p.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
|
|
3342
3338
|
};
|
|
3343
3339
|
}, this.getAst = function() {
|
|
3344
|
-
return
|
|
3340
|
+
return a.ast;
|
|
3345
3341
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3346
3342
|
if (this.message = t, !e.__parse)
|
|
3347
3343
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3348
|
-
var
|
|
3349
|
-
|
|
3350
|
-
var s = Xr(
|
|
3351
|
-
this.ast = e.__parse(t,
|
|
3344
|
+
var l = i || {};
|
|
3345
|
+
l.formatters;
|
|
3346
|
+
var s = Xr(l, ["formatters"]);
|
|
3347
|
+
this.ast = e.__parse(t, R(R({}, s), { locale: this.resolvedLocale }));
|
|
3352
3348
|
} else
|
|
3353
3349
|
this.ast = t;
|
|
3354
3350
|
if (!Array.isArray(this.ast))
|
|
3355
3351
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3356
|
-
this.formats =
|
|
3352
|
+
this.formats = Ni(e.formats, r), this.formatters = i && i.formatters || Mi(this.formatterCache);
|
|
3357
3353
|
}
|
|
3358
3354
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3359
3355
|
get: function() {
|
|
@@ -3366,7 +3362,7 @@ var Ii = (
|
|
|
3366
3362
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3367
3363
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3368
3364
|
}
|
|
3369
|
-
}, e.__parse =
|
|
3365
|
+
}, e.__parse = Ai, e.formats = {
|
|
3370
3366
|
number: {
|
|
3371
3367
|
integer: {
|
|
3372
3368
|
maximumFractionDigits: 0
|
|
@@ -3427,7 +3423,7 @@ var Ii = (
|
|
|
3427
3423
|
}, e;
|
|
3428
3424
|
}()
|
|
3429
3425
|
);
|
|
3430
|
-
function
|
|
3426
|
+
function Ii(e, t) {
|
|
3431
3427
|
if (t == null)
|
|
3432
3428
|
return;
|
|
3433
3429
|
if (t in e)
|
|
@@ -3437,9 +3433,9 @@ function Di(e, t) {
|
|
|
3437
3433
|
for (let i = 0; i < n.length; i++)
|
|
3438
3434
|
if (typeof r == "object") {
|
|
3439
3435
|
if (i > 0) {
|
|
3440
|
-
const
|
|
3441
|
-
if (
|
|
3442
|
-
r = r[
|
|
3436
|
+
const a = n.slice(i, n.length).join(".");
|
|
3437
|
+
if (a in r) {
|
|
3438
|
+
r = r[a];
|
|
3443
3439
|
break;
|
|
3444
3440
|
}
|
|
3445
3441
|
}
|
|
@@ -3448,36 +3444,36 @@ function Di(e, t) {
|
|
|
3448
3444
|
r = void 0;
|
|
3449
3445
|
return r;
|
|
3450
3446
|
}
|
|
3451
|
-
const
|
|
3447
|
+
const Te = {}, Di = (e, t, n) => n && (t in Te || (Te[t] = {}), e in Te[t] || (Te[t][e] = n), n), zn = (e, t) => {
|
|
3452
3448
|
if (t == null)
|
|
3453
3449
|
return;
|
|
3454
|
-
if (t in
|
|
3455
|
-
return
|
|
3456
|
-
const n =
|
|
3450
|
+
if (t in Te && e in Te[t])
|
|
3451
|
+
return Te[t][e];
|
|
3452
|
+
const n = vt(t);
|
|
3457
3453
|
for (let r = 0; r < n.length; r++) {
|
|
3458
|
-
const i = n[r],
|
|
3459
|
-
if (
|
|
3460
|
-
return
|
|
3454
|
+
const i = n[r], a = Ui(i, e);
|
|
3455
|
+
if (a)
|
|
3456
|
+
return Di(e, t, a);
|
|
3461
3457
|
}
|
|
3462
3458
|
};
|
|
3463
3459
|
let Jt;
|
|
3464
|
-
const
|
|
3465
|
-
function
|
|
3460
|
+
const tt = gt({});
|
|
3461
|
+
function Fi(e) {
|
|
3466
3462
|
return Jt[e] || null;
|
|
3467
3463
|
}
|
|
3468
3464
|
function Wn(e) {
|
|
3469
3465
|
return e in Jt;
|
|
3470
3466
|
}
|
|
3471
|
-
function
|
|
3467
|
+
function Ui(e, t) {
|
|
3472
3468
|
if (!Wn(e))
|
|
3473
3469
|
return null;
|
|
3474
|
-
const n =
|
|
3475
|
-
return
|
|
3470
|
+
const n = Fi(e);
|
|
3471
|
+
return Ii(n, t);
|
|
3476
3472
|
}
|
|
3477
|
-
function
|
|
3473
|
+
function Gi(e) {
|
|
3478
3474
|
if (e == null)
|
|
3479
3475
|
return;
|
|
3480
|
-
const t =
|
|
3476
|
+
const t = vt(e);
|
|
3481
3477
|
for (let n = 0; n < t.length; n++) {
|
|
3482
3478
|
const r = t[n];
|
|
3483
3479
|
if (Wn(r))
|
|
@@ -3485,55 +3481,55 @@ function $i(e) {
|
|
|
3485
3481
|
}
|
|
3486
3482
|
}
|
|
3487
3483
|
function Zn(e, ...t) {
|
|
3488
|
-
delete
|
|
3484
|
+
delete Te[e], tt.update((n) => (n[e] = Vr.all([n[e] || {}, ...t]), n));
|
|
3489
3485
|
}
|
|
3490
|
-
|
|
3491
|
-
[
|
|
3486
|
+
$e(
|
|
3487
|
+
[tt],
|
|
3492
3488
|
([e]) => Object.keys(e)
|
|
3493
3489
|
);
|
|
3494
|
-
|
|
3490
|
+
tt.subscribe((e) => Jt = e);
|
|
3495
3491
|
const ct = {};
|
|
3496
|
-
function
|
|
3492
|
+
function $i(e, t) {
|
|
3497
3493
|
ct[e].delete(t), ct[e].size === 0 && delete ct[e];
|
|
3498
3494
|
}
|
|
3499
3495
|
function qn(e) {
|
|
3500
3496
|
return ct[e];
|
|
3501
3497
|
}
|
|
3502
3498
|
function ki(e) {
|
|
3503
|
-
return
|
|
3499
|
+
return vt(e).map((t) => {
|
|
3504
3500
|
const n = qn(t);
|
|
3505
3501
|
return [t, n ? [...n] : []];
|
|
3506
3502
|
}).filter(([, t]) => t.length > 0);
|
|
3507
3503
|
}
|
|
3508
|
-
function
|
|
3509
|
-
return e == null ? !1 :
|
|
3504
|
+
function Xt(e) {
|
|
3505
|
+
return e == null ? !1 : vt(e).some(
|
|
3510
3506
|
(t) => {
|
|
3511
3507
|
var n;
|
|
3512
3508
|
return (n = qn(t)) == null ? void 0 : n.size;
|
|
3513
3509
|
}
|
|
3514
3510
|
);
|
|
3515
3511
|
}
|
|
3516
|
-
function
|
|
3512
|
+
function ji(e, t) {
|
|
3517
3513
|
return Promise.all(
|
|
3518
|
-
t.map((r) => (
|
|
3514
|
+
t.map((r) => ($i(e, r), r().then((i) => i.default || i)))
|
|
3519
3515
|
).then((r) => Zn(e, ...r));
|
|
3520
3516
|
}
|
|
3521
|
-
const
|
|
3517
|
+
const Qe = {};
|
|
3522
3518
|
function Qn(e) {
|
|
3523
|
-
if (!
|
|
3524
|
-
return e in
|
|
3519
|
+
if (!Xt(e))
|
|
3520
|
+
return e in Qe ? Qe[e] : Promise.resolve();
|
|
3525
3521
|
const t = ki(e);
|
|
3526
|
-
return
|
|
3522
|
+
return Qe[e] = Promise.all(
|
|
3527
3523
|
t.map(
|
|
3528
|
-
([n, r]) =>
|
|
3524
|
+
([n, r]) => ji(n, r)
|
|
3529
3525
|
)
|
|
3530
3526
|
).then(() => {
|
|
3531
|
-
if (
|
|
3527
|
+
if (Xt(e))
|
|
3532
3528
|
return Qn(e);
|
|
3533
|
-
delete
|
|
3534
|
-
}),
|
|
3529
|
+
delete Qe[e];
|
|
3530
|
+
}), Qe[e];
|
|
3535
3531
|
}
|
|
3536
|
-
const
|
|
3532
|
+
const Vi = {
|
|
3537
3533
|
number: {
|
|
3538
3534
|
scientific: { notation: "scientific" },
|
|
3539
3535
|
engineering: { notation: "engineering" },
|
|
@@ -3562,176 +3558,176 @@ const Xi = {
|
|
|
3562
3558
|
timeZoneName: "short"
|
|
3563
3559
|
}
|
|
3564
3560
|
}
|
|
3565
|
-
},
|
|
3561
|
+
}, Xi = {
|
|
3566
3562
|
fallbackLocale: null,
|
|
3567
3563
|
loadingDelay: 200,
|
|
3568
|
-
formats:
|
|
3564
|
+
formats: Vi,
|
|
3569
3565
|
warnOnMissingMessages: !0,
|
|
3570
3566
|
handleMissingMessage: void 0,
|
|
3571
3567
|
ignoreTag: !0
|
|
3572
|
-
},
|
|
3573
|
-
function
|
|
3574
|
-
return
|
|
3568
|
+
}, zi = Xi;
|
|
3569
|
+
function Ue() {
|
|
3570
|
+
return zi;
|
|
3575
3571
|
}
|
|
3576
|
-
const
|
|
3577
|
-
var
|
|
3572
|
+
const Mt = gt(!1);
|
|
3573
|
+
var Wi = Object.defineProperty, Zi = Object.defineProperties, qi = Object.getOwnPropertyDescriptors, fn = Object.getOwnPropertySymbols, Qi = Object.prototype.hasOwnProperty, Ji = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yi = (e, t) => {
|
|
3578
3574
|
for (var n in t || (t = {}))
|
|
3579
|
-
|
|
3575
|
+
Qi.call(t, n) && dn(e, n, t[n]);
|
|
3580
3576
|
if (fn)
|
|
3581
3577
|
for (var n of fn(t))
|
|
3582
|
-
|
|
3578
|
+
Ji.call(t, n) && dn(e, n, t[n]);
|
|
3583
3579
|
return e;
|
|
3584
|
-
},
|
|
3585
|
-
let
|
|
3586
|
-
const
|
|
3580
|
+
}, Ki = (e, t) => Zi(e, qi(t));
|
|
3581
|
+
let zt;
|
|
3582
|
+
const pt = gt(null);
|
|
3587
3583
|
function pn(e) {
|
|
3588
3584
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3589
3585
|
}
|
|
3590
|
-
function
|
|
3586
|
+
function vt(e, t = Ue().fallbackLocale) {
|
|
3591
3587
|
const n = pn(e);
|
|
3592
3588
|
return t ? [.../* @__PURE__ */ new Set([...n, ...pn(t)])] : n;
|
|
3593
3589
|
}
|
|
3594
|
-
function
|
|
3595
|
-
return
|
|
3590
|
+
function Ce() {
|
|
3591
|
+
return zt ?? void 0;
|
|
3596
3592
|
}
|
|
3597
|
-
|
|
3598
|
-
|
|
3593
|
+
pt.subscribe((e) => {
|
|
3594
|
+
zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3599
3595
|
});
|
|
3600
|
-
const
|
|
3601
|
-
if (e &&
|
|
3602
|
-
const { loadingDelay: t } =
|
|
3596
|
+
const eo = (e) => {
|
|
3597
|
+
if (e && Gi(e) && Xt(e)) {
|
|
3598
|
+
const { loadingDelay: t } = Ue();
|
|
3603
3599
|
let n;
|
|
3604
|
-
return typeof window < "u" &&
|
|
3605
|
-
() =>
|
|
3600
|
+
return typeof window < "u" && Ce() != null && t ? n = window.setTimeout(
|
|
3601
|
+
() => Mt.set(!0),
|
|
3606
3602
|
t
|
|
3607
|
-
) :
|
|
3608
|
-
|
|
3603
|
+
) : Mt.set(!0), Qn(e).then(() => {
|
|
3604
|
+
pt.set(e);
|
|
3609
3605
|
}).finally(() => {
|
|
3610
|
-
clearTimeout(n),
|
|
3606
|
+
clearTimeout(n), Mt.set(!1);
|
|
3611
3607
|
});
|
|
3612
3608
|
}
|
|
3613
|
-
return
|
|
3614
|
-
},
|
|
3615
|
-
set:
|
|
3616
|
-
}),
|
|
3609
|
+
return pt.set(e);
|
|
3610
|
+
}, ke = Ki(Yi({}, pt), {
|
|
3611
|
+
set: eo
|
|
3612
|
+
}), Et = (e) => {
|
|
3617
3613
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3618
3614
|
return (r) => {
|
|
3619
3615
|
const i = JSON.stringify(r);
|
|
3620
3616
|
return i in t ? t[i] : t[i] = e(r);
|
|
3621
3617
|
};
|
|
3622
3618
|
};
|
|
3623
|
-
var
|
|
3619
|
+
var to = Object.defineProperty, mt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? to(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
|
|
3624
3620
|
for (var n in t || (t = {}))
|
|
3625
3621
|
Jn.call(t, n) && mn(e, n, t[n]);
|
|
3626
|
-
if (
|
|
3627
|
-
for (var n of
|
|
3622
|
+
if (mt)
|
|
3623
|
+
for (var n of mt(t))
|
|
3628
3624
|
Yn.call(t, n) && mn(e, n, t[n]);
|
|
3629
3625
|
return e;
|
|
3630
|
-
},
|
|
3626
|
+
}, je = (e, t) => {
|
|
3631
3627
|
var n = {};
|
|
3632
3628
|
for (var r in e)
|
|
3633
3629
|
Jn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3634
|
-
if (e != null &&
|
|
3635
|
-
for (var r of
|
|
3630
|
+
if (e != null && mt)
|
|
3631
|
+
for (var r of mt(e))
|
|
3636
3632
|
t.indexOf(r) < 0 && Yn.call(e, r) && (n[r] = e[r]);
|
|
3637
3633
|
return n;
|
|
3638
3634
|
};
|
|
3639
|
-
const
|
|
3640
|
-
const { formats: n } =
|
|
3635
|
+
const et = (e, t) => {
|
|
3636
|
+
const { formats: n } = Ue();
|
|
3641
3637
|
if (e in n && t in n[e])
|
|
3642
3638
|
return n[e][t];
|
|
3643
3639
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3644
|
-
},
|
|
3640
|
+
}, no = Et(
|
|
3645
3641
|
(e) => {
|
|
3646
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3642
|
+
var t = e, { locale: n, format: r } = t, i = je(t, ["locale", "format"]);
|
|
3647
3643
|
if (n == null)
|
|
3648
3644
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3649
|
-
return r && (i =
|
|
3645
|
+
return r && (i = et("number", r)), new Intl.NumberFormat(n, i);
|
|
3650
3646
|
}
|
|
3651
|
-
),
|
|
3647
|
+
), ro = Et(
|
|
3652
3648
|
(e) => {
|
|
3653
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3649
|
+
var t = e, { locale: n, format: r } = t, i = je(t, ["locale", "format"]);
|
|
3654
3650
|
if (n == null)
|
|
3655
3651
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3656
|
-
return r ? i =
|
|
3652
|
+
return r ? i = et("date", r) : Object.keys(i).length === 0 && (i = et("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3657
3653
|
}
|
|
3658
|
-
),
|
|
3654
|
+
), io = Et(
|
|
3659
3655
|
(e) => {
|
|
3660
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3656
|
+
var t = e, { locale: n, format: r } = t, i = je(t, ["locale", "format"]);
|
|
3661
3657
|
if (n == null)
|
|
3662
3658
|
throw new Error(
|
|
3663
3659
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3664
3660
|
);
|
|
3665
|
-
return r ? i =
|
|
3661
|
+
return r ? i = et("time", r) : Object.keys(i).length === 0 && (i = et("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3666
3662
|
}
|
|
3667
|
-
),
|
|
3663
|
+
), oo = (e = {}) => {
|
|
3668
3664
|
var t = e, {
|
|
3669
|
-
locale: n =
|
|
3670
|
-
} = t, r =
|
|
3665
|
+
locale: n = Ce()
|
|
3666
|
+
} = t, r = je(t, [
|
|
3671
3667
|
"locale"
|
|
3672
3668
|
]);
|
|
3673
|
-
return
|
|
3674
|
-
},
|
|
3669
|
+
return no(Yt({ locale: n }, r));
|
|
3670
|
+
}, ao = (e = {}) => {
|
|
3675
3671
|
var t = e, {
|
|
3676
|
-
locale: n =
|
|
3677
|
-
} = t, r =
|
|
3672
|
+
locale: n = Ce()
|
|
3673
|
+
} = t, r = je(t, [
|
|
3678
3674
|
"locale"
|
|
3679
3675
|
]);
|
|
3680
|
-
return
|
|
3681
|
-
},
|
|
3676
|
+
return ro(Yt({ locale: n }, r));
|
|
3677
|
+
}, so = (e = {}) => {
|
|
3682
3678
|
var t = e, {
|
|
3683
|
-
locale: n =
|
|
3684
|
-
} = t, r =
|
|
3679
|
+
locale: n = Ce()
|
|
3680
|
+
} = t, r = je(t, [
|
|
3685
3681
|
"locale"
|
|
3686
3682
|
]);
|
|
3687
|
-
return
|
|
3688
|
-
}, lo =
|
|
3683
|
+
return io(Yt({ locale: n }, r));
|
|
3684
|
+
}, lo = Et(
|
|
3689
3685
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3690
|
-
(e, t =
|
|
3691
|
-
ignoreTag:
|
|
3686
|
+
(e, t = Ce()) => new Pi(e, t, Ue().formats, {
|
|
3687
|
+
ignoreTag: Ue().ignoreTag
|
|
3692
3688
|
})
|
|
3693
|
-
),
|
|
3694
|
-
var n, r, i,
|
|
3695
|
-
let
|
|
3696
|
-
typeof e == "object" && (
|
|
3689
|
+
), uo = (e, t = {}) => {
|
|
3690
|
+
var n, r, i, a;
|
|
3691
|
+
let l = t;
|
|
3692
|
+
typeof e == "object" && (l = e, e = l.id);
|
|
3697
3693
|
const {
|
|
3698
3694
|
values: s,
|
|
3699
|
-
locale:
|
|
3695
|
+
locale: p = Ce(),
|
|
3700
3696
|
default: h
|
|
3701
|
-
} =
|
|
3702
|
-
if (
|
|
3697
|
+
} = l;
|
|
3698
|
+
if (p == null)
|
|
3703
3699
|
throw new Error(
|
|
3704
3700
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3705
3701
|
);
|
|
3706
|
-
let
|
|
3707
|
-
if (!
|
|
3708
|
-
|
|
3709
|
-
else if (typeof
|
|
3702
|
+
let d = zn(e, p);
|
|
3703
|
+
if (!d)
|
|
3704
|
+
d = (a = (i = (r = (n = Ue()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: p, id: e, defaultValue: h })) != null ? i : h) != null ? a : e;
|
|
3705
|
+
else if (typeof d != "string")
|
|
3710
3706
|
return console.warn(
|
|
3711
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3712
|
-
),
|
|
3707
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3708
|
+
), d;
|
|
3713
3709
|
if (!s)
|
|
3714
|
-
return
|
|
3715
|
-
let
|
|
3710
|
+
return d;
|
|
3711
|
+
let m = d;
|
|
3716
3712
|
try {
|
|
3717
|
-
|
|
3718
|
-
} catch (
|
|
3719
|
-
|
|
3713
|
+
m = lo(d, p).format(s);
|
|
3714
|
+
} catch (g) {
|
|
3715
|
+
g instanceof Error && console.warn(
|
|
3720
3716
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3721
|
-
|
|
3717
|
+
g.message
|
|
3722
3718
|
);
|
|
3723
3719
|
}
|
|
3724
|
-
return
|
|
3725
|
-
},
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3720
|
+
return m;
|
|
3721
|
+
}, ho = (e, t) => so(t).format(e), co = (e, t) => ao(t).format(e), fo = (e, t) => oo(t).format(e), po = (e, t = Ce()) => zn(e, t), mo = $e([ke, tt], () => uo);
|
|
3722
|
+
$e([ke], () => ho);
|
|
3723
|
+
$e([ke], () => co);
|
|
3724
|
+
$e([ke], () => fo);
|
|
3725
|
+
$e([ke, tt], () => po);
|
|
3730
3726
|
function gn(e, t) {
|
|
3731
3727
|
Zn(e, t);
|
|
3732
3728
|
}
|
|
3733
|
-
function
|
|
3734
|
-
|
|
3729
|
+
function go(e) {
|
|
3730
|
+
ke.set(e);
|
|
3735
3731
|
}
|
|
3736
3732
|
const bn = {
|
|
3737
3733
|
en: {
|
|
@@ -3933,7 +3929,7 @@ const bn = {
|
|
|
3933
3929
|
Loading: "Loading ..."
|
|
3934
3930
|
}
|
|
3935
3931
|
};
|
|
3936
|
-
var
|
|
3932
|
+
var Wt = { exports: {} };
|
|
3937
3933
|
/** @license
|
|
3938
3934
|
* eventsource.js
|
|
3939
3935
|
* Available under MIT License (MIT)
|
|
@@ -3941,30 +3937,30 @@ var qt = { exports: {} };
|
|
|
3941
3937
|
*/
|
|
3942
3938
|
(function(e, t) {
|
|
3943
3939
|
(function(n) {
|
|
3944
|
-
var r = n.setTimeout, i = n.clearTimeout,
|
|
3945
|
-
if (typeof window < "u" && typeof h < "u" && !("readyState" in h) && h.body == null && (h.readyState = "loading", window.addEventListener("load", function(
|
|
3940
|
+
var r = n.setTimeout, i = n.clearTimeout, a = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, p = n.EventSource, h = n.document, d = n.Promise, m = n.fetch, g = n.Response, x = n.TextDecoder, T = n.TextEncoder, P = n.AbortController;
|
|
3941
|
+
if (typeof window < "u" && typeof h < "u" && !("readyState" in h) && h.body == null && (h.readyState = "loading", window.addEventListener("load", function(o) {
|
|
3946
3942
|
h.readyState = "complete";
|
|
3947
|
-
}, !1)),
|
|
3943
|
+
}, !1)), a == null && s != null && (a = function() {
|
|
3948
3944
|
return new s("Microsoft.XMLHTTP");
|
|
3949
|
-
}), Object.create == null && (Object.create = function(
|
|
3950
|
-
function
|
|
3945
|
+
}), Object.create == null && (Object.create = function(o) {
|
|
3946
|
+
function u() {
|
|
3951
3947
|
}
|
|
3952
|
-
return
|
|
3948
|
+
return u.prototype = o, new u();
|
|
3953
3949
|
}), Date.now || (Date.now = function() {
|
|
3954
3950
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3955
3951
|
}), P == null) {
|
|
3956
|
-
var
|
|
3957
|
-
|
|
3958
|
-
var f =
|
|
3959
|
-
return
|
|
3960
|
-
var
|
|
3961
|
-
return f._reader =
|
|
3962
|
-
status:
|
|
3963
|
-
statusText:
|
|
3964
|
-
headers:
|
|
3952
|
+
var $ = m;
|
|
3953
|
+
m = function(o, u) {
|
|
3954
|
+
var f = u.signal;
|
|
3955
|
+
return $(o, { headers: u.headers, credentials: u.credentials, cache: u.cache }).then(function(c) {
|
|
3956
|
+
var v = c.body.getReader();
|
|
3957
|
+
return f._reader = v, f._aborted && f._reader.cancel(), {
|
|
3958
|
+
status: c.status,
|
|
3959
|
+
statusText: c.statusText,
|
|
3960
|
+
headers: c.headers,
|
|
3965
3961
|
body: {
|
|
3966
3962
|
getReader: function() {
|
|
3967
|
-
return
|
|
3963
|
+
return v;
|
|
3968
3964
|
}
|
|
3969
3965
|
}
|
|
3970
3966
|
};
|
|
@@ -3978,408 +3974,408 @@ var qt = { exports: {} };
|
|
|
3978
3974
|
};
|
|
3979
3975
|
};
|
|
3980
3976
|
}
|
|
3981
|
-
function
|
|
3977
|
+
function X() {
|
|
3982
3978
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
3983
3979
|
}
|
|
3984
|
-
|
|
3985
|
-
function
|
|
3986
|
-
if (
|
|
3987
|
-
return
|
|
3988
|
-
if (
|
|
3989
|
-
return
|
|
3990
|
-
if (
|
|
3991
|
-
return
|
|
3980
|
+
X.prototype.decode = function(o) {
|
|
3981
|
+
function u(C, N, _) {
|
|
3982
|
+
if (_ === 1)
|
|
3983
|
+
return C >= 128 >> N && C << N <= 2047;
|
|
3984
|
+
if (_ === 2)
|
|
3985
|
+
return C >= 2048 >> N && C << N <= 55295 || C >= 57344 >> N && C << N <= 65535;
|
|
3986
|
+
if (_ === 3)
|
|
3987
|
+
return C >= 65536 >> N && C << N <= 1114111;
|
|
3992
3988
|
throw new Error();
|
|
3993
3989
|
}
|
|
3994
|
-
function f(
|
|
3995
|
-
if (
|
|
3996
|
-
return
|
|
3997
|
-
if (
|
|
3998
|
-
return
|
|
3999
|
-
if (
|
|
3990
|
+
function f(C, N) {
|
|
3991
|
+
if (C === 6 * 1)
|
|
3992
|
+
return N >> 6 > 15 ? 3 : N > 31 ? 2 : 1;
|
|
3993
|
+
if (C === 6 * 2)
|
|
3994
|
+
return N > 15 ? 3 : 2;
|
|
3995
|
+
if (C === 6 * 3)
|
|
4000
3996
|
return 3;
|
|
4001
3997
|
throw new Error();
|
|
4002
3998
|
}
|
|
4003
|
-
for (var
|
|
4004
|
-
var
|
|
4005
|
-
|
|
3999
|
+
for (var c = 65533, v = "", b = this.bitsNeeded, y = this.codePoint, A = 0; A < o.length; A += 1) {
|
|
4000
|
+
var w = o[A];
|
|
4001
|
+
b !== 0 && (w < 128 || w > 191 || !u(y << 6 | w & 63, b - 6, f(b, y))) && (b = 0, y = c, v += String.fromCharCode(y)), b === 0 ? (w >= 0 && w <= 127 ? (b = 0, y = w) : w >= 192 && w <= 223 ? (b = 6 * 1, y = w & 31) : w >= 224 && w <= 239 ? (b = 6 * 2, y = w & 15) : w >= 240 && w <= 247 ? (b = 6 * 3, y = w & 7) : (b = 0, y = c), b !== 0 && !u(y, b, f(b, y)) && (b = 0, y = c)) : (b -= 6, y = y << 6 | w & 63), b === 0 && (y <= 65535 ? v += String.fromCharCode(y) : (v += String.fromCharCode(55296 + (y - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (y - 65535 - 1 & 1023))));
|
|
4006
4002
|
}
|
|
4007
|
-
return this.bitsNeeded =
|
|
4003
|
+
return this.bitsNeeded = b, this.codePoint = y, v;
|
|
4008
4004
|
};
|
|
4009
|
-
var
|
|
4005
|
+
var F = function() {
|
|
4010
4006
|
try {
|
|
4011
4007
|
return new x().decode(new T().encode("test"), { stream: !0 }) === "test";
|
|
4012
|
-
} catch (
|
|
4013
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
4008
|
+
} catch (o) {
|
|
4009
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + o);
|
|
4014
4010
|
}
|
|
4015
4011
|
return !1;
|
|
4016
4012
|
};
|
|
4017
|
-
(x == null || T == null || !
|
|
4013
|
+
(x == null || T == null || !F()) && (x = X);
|
|
4018
4014
|
var B = function() {
|
|
4019
4015
|
};
|
|
4020
|
-
function
|
|
4021
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr =
|
|
4016
|
+
function S(o) {
|
|
4017
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr = o, this._sendTimeout = 0, this._abort = B;
|
|
4022
4018
|
}
|
|
4023
|
-
|
|
4019
|
+
S.prototype.open = function(o, u) {
|
|
4024
4020
|
this._abort(!0);
|
|
4025
|
-
var f = this,
|
|
4026
|
-
this._abort = function(
|
|
4027
|
-
f._sendTimeout !== 0 && (i(f._sendTimeout), f._sendTimeout = 0), (
|
|
4021
|
+
var f = this, c = this._xhr, v = 1, b = 0;
|
|
4022
|
+
this._abort = function(_) {
|
|
4023
|
+
f._sendTimeout !== 0 && (i(f._sendTimeout), f._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, c.onload = B, c.onerror = B, c.onabort = B, c.onprogress = B, c.onreadystatechange = B, c.abort(), b !== 0 && (i(b), b = 0), _ || (f.readyState = 4, f.onabort(null), f.onreadystatechange())), v = 0;
|
|
4028
4024
|
};
|
|
4029
|
-
var
|
|
4030
|
-
if (
|
|
4031
|
-
var
|
|
4032
|
-
if ("contentType" in
|
|
4033
|
-
|
|
4025
|
+
var y = function() {
|
|
4026
|
+
if (v === 1) {
|
|
4027
|
+
var _ = 0, D = "", me = void 0;
|
|
4028
|
+
if ("contentType" in c)
|
|
4029
|
+
_ = 200, D = "OK", me = c.contentType;
|
|
4034
4030
|
else
|
|
4035
4031
|
try {
|
|
4036
|
-
|
|
4032
|
+
_ = c.status, D = c.statusText, me = c.getResponseHeader("Content-Type");
|
|
4037
4033
|
} catch {
|
|
4038
|
-
|
|
4034
|
+
_ = 0, D = "", me = void 0;
|
|
4039
4035
|
}
|
|
4040
|
-
|
|
4036
|
+
_ !== 0 && (v = 2, f.readyState = 2, f.status = _, f.statusText = D, f._contentType = me, f.onreadystatechange());
|
|
4041
4037
|
}
|
|
4042
|
-
},
|
|
4043
|
-
if (
|
|
4044
|
-
|
|
4045
|
-
var
|
|
4038
|
+
}, A = function() {
|
|
4039
|
+
if (y(), v === 2 || v === 3) {
|
|
4040
|
+
v = 3;
|
|
4041
|
+
var _ = "";
|
|
4046
4042
|
try {
|
|
4047
|
-
|
|
4043
|
+
_ = c.responseText;
|
|
4048
4044
|
} catch {
|
|
4049
4045
|
}
|
|
4050
|
-
f.readyState = 3, f.responseText =
|
|
4046
|
+
f.readyState = 3, f.responseText = _, f.onprogress();
|
|
4051
4047
|
}
|
|
4052
|
-
},
|
|
4053
|
-
if ((
|
|
4048
|
+
}, w = function(_, D) {
|
|
4049
|
+
if ((D == null || D.preventDefault == null) && (D = {
|
|
4054
4050
|
preventDefault: B
|
|
4055
|
-
}),
|
|
4056
|
-
if (
|
|
4057
|
-
f.onload(
|
|
4058
|
-
else if (
|
|
4059
|
-
f.onerror(
|
|
4060
|
-
else if (
|
|
4061
|
-
f.onabort(
|
|
4051
|
+
}), A(), v === 1 || v === 2 || v === 3) {
|
|
4052
|
+
if (v = 4, b !== 0 && (i(b), b = 0), f.readyState = 4, _ === "load")
|
|
4053
|
+
f.onload(D);
|
|
4054
|
+
else if (_ === "error")
|
|
4055
|
+
f.onerror(D);
|
|
4056
|
+
else if (_ === "abort")
|
|
4057
|
+
f.onabort(D);
|
|
4062
4058
|
else
|
|
4063
4059
|
throw new TypeError();
|
|
4064
4060
|
f.onreadystatechange();
|
|
4065
4061
|
}
|
|
4066
|
-
},
|
|
4067
|
-
|
|
4068
|
-
},
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
}, 500),
|
|
4062
|
+
}, C = function(_) {
|
|
4063
|
+
c != null && (c.readyState === 4 ? (!("onload" in c) || !("onerror" in c) || !("onabort" in c)) && w(c.responseText === "" ? "error" : "load", _) : c.readyState === 3 ? "onprogress" in c || A() : c.readyState === 2 && y());
|
|
4064
|
+
}, N = function() {
|
|
4065
|
+
b = r(function() {
|
|
4066
|
+
N();
|
|
4067
|
+
}, 500), c.readyState === 3 && A();
|
|
4072
4068
|
};
|
|
4073
|
-
"onload" in
|
|
4074
|
-
|
|
4075
|
-
}), "onerror" in
|
|
4076
|
-
|
|
4077
|
-
}), "onabort" in
|
|
4078
|
-
|
|
4079
|
-
}), "onprogress" in
|
|
4080
|
-
|
|
4081
|
-
}), ("contentType" in
|
|
4082
|
-
|
|
4069
|
+
"onload" in c && (c.onload = function(_) {
|
|
4070
|
+
w("load", _);
|
|
4071
|
+
}), "onerror" in c && (c.onerror = function(_) {
|
|
4072
|
+
w("error", _);
|
|
4073
|
+
}), "onabort" in c && (c.onabort = function(_) {
|
|
4074
|
+
w("abort", _);
|
|
4075
|
+
}), "onprogress" in c && (c.onprogress = A), "onreadystatechange" in c && (c.onreadystatechange = function(_) {
|
|
4076
|
+
C(_);
|
|
4077
|
+
}), ("contentType" in c || !("ontimeout" in a.prototype)) && (u += (u.indexOf("?") === -1 ? "?" : "&") + "padding=true"), c.open(o, u, !0), "readyState" in c && (b = r(function() {
|
|
4078
|
+
N();
|
|
4083
4079
|
}, 0));
|
|
4084
|
-
},
|
|
4080
|
+
}, S.prototype.abort = function() {
|
|
4085
4081
|
this._abort(!1);
|
|
4086
|
-
},
|
|
4082
|
+
}, S.prototype.getResponseHeader = function(o) {
|
|
4087
4083
|
return this._contentType;
|
|
4088
|
-
},
|
|
4084
|
+
}, S.prototype.setRequestHeader = function(o, u) {
|
|
4089
4085
|
var f = this._xhr;
|
|
4090
|
-
"setRequestHeader" in f && f.setRequestHeader(
|
|
4091
|
-
},
|
|
4086
|
+
"setRequestHeader" in f && f.setRequestHeader(o, u);
|
|
4087
|
+
}, S.prototype.getAllResponseHeaders = function() {
|
|
4092
4088
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4093
|
-
},
|
|
4094
|
-
if ((!("ontimeout" in
|
|
4095
|
-
var
|
|
4096
|
-
|
|
4097
|
-
|
|
4089
|
+
}, S.prototype.send = function() {
|
|
4090
|
+
if ((!("ontimeout" in a.prototype) || !("sendAsBinary" in a.prototype) && !("mozAnon" in a.prototype)) && h != null && h.readyState != null && h.readyState !== "complete") {
|
|
4091
|
+
var o = this;
|
|
4092
|
+
o._sendTimeout = r(function() {
|
|
4093
|
+
o._sendTimeout = 0, o.send();
|
|
4098
4094
|
}, 4);
|
|
4099
4095
|
return;
|
|
4100
4096
|
}
|
|
4101
|
-
var
|
|
4102
|
-
"withCredentials" in
|
|
4097
|
+
var u = this._xhr;
|
|
4098
|
+
"withCredentials" in u && (u.withCredentials = this.withCredentials);
|
|
4103
4099
|
try {
|
|
4104
|
-
|
|
4100
|
+
u.send(void 0);
|
|
4105
4101
|
} catch (f) {
|
|
4106
4102
|
throw f;
|
|
4107
4103
|
}
|
|
4108
4104
|
};
|
|
4109
|
-
function
|
|
4110
|
-
return
|
|
4111
|
-
return String.fromCharCode(
|
|
4105
|
+
function G(o) {
|
|
4106
|
+
return o.replace(/[A-Z]/g, function(u) {
|
|
4107
|
+
return String.fromCharCode(u.charCodeAt(0) + 32);
|
|
4112
4108
|
});
|
|
4113
4109
|
}
|
|
4114
|
-
function
|
|
4115
|
-
for (var
|
|
4116
|
-
`),
|
|
4117
|
-
var
|
|
4118
|
-
|
|
4110
|
+
function O(o) {
|
|
4111
|
+
for (var u = /* @__PURE__ */ Object.create(null), f = o.split(`\r
|
|
4112
|
+
`), c = 0; c < f.length; c += 1) {
|
|
4113
|
+
var v = f[c], b = v.split(": "), y = b.shift(), A = b.join(": ");
|
|
4114
|
+
u[G(y)] = A;
|
|
4119
4115
|
}
|
|
4120
|
-
this._map =
|
|
4116
|
+
this._map = u;
|
|
4121
4117
|
}
|
|
4122
|
-
|
|
4123
|
-
return this._map[
|
|
4124
|
-
},
|
|
4125
|
-
function
|
|
4118
|
+
O.prototype.get = function(o) {
|
|
4119
|
+
return this._map[G(o)];
|
|
4120
|
+
}, a != null && a.HEADERS_RECEIVED == null && (a.HEADERS_RECEIVED = 2);
|
|
4121
|
+
function Y() {
|
|
4126
4122
|
}
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
var
|
|
4130
|
-
|
|
4131
|
-
var
|
|
4132
|
-
|
|
4133
|
-
},
|
|
4134
|
-
|
|
4135
|
-
},
|
|
4136
|
-
|
|
4137
|
-
},
|
|
4138
|
-
|
|
4139
|
-
},
|
|
4140
|
-
if (
|
|
4141
|
-
var
|
|
4142
|
-
|
|
4123
|
+
Y.prototype.open = function(o, u, f, c, v, b, y) {
|
|
4124
|
+
o.open("GET", v);
|
|
4125
|
+
var A = 0;
|
|
4126
|
+
o.onprogress = function() {
|
|
4127
|
+
var C = o.responseText, N = C.slice(A);
|
|
4128
|
+
A += N.length, f(N);
|
|
4129
|
+
}, o.onerror = function(C) {
|
|
4130
|
+
C.preventDefault(), c(new Error("NetworkError"));
|
|
4131
|
+
}, o.onload = function() {
|
|
4132
|
+
c(null);
|
|
4133
|
+
}, o.onabort = function() {
|
|
4134
|
+
c(null);
|
|
4135
|
+
}, o.onreadystatechange = function() {
|
|
4136
|
+
if (o.readyState === a.HEADERS_RECEIVED) {
|
|
4137
|
+
var C = o.status, N = o.statusText, _ = o.getResponseHeader("Content-Type"), D = o.getAllResponseHeaders();
|
|
4138
|
+
u(C, N, _, new O(D));
|
|
4143
4139
|
}
|
|
4144
|
-
},
|
|
4145
|
-
for (var
|
|
4146
|
-
Object.prototype.hasOwnProperty.call(
|
|
4147
|
-
return
|
|
4140
|
+
}, o.withCredentials = b;
|
|
4141
|
+
for (var w in y)
|
|
4142
|
+
Object.prototype.hasOwnProperty.call(y, w) && o.setRequestHeader(w, y[w]);
|
|
4143
|
+
return o.send(), o;
|
|
4148
4144
|
};
|
|
4149
|
-
function
|
|
4150
|
-
this._headers =
|
|
4145
|
+
function xe(o) {
|
|
4146
|
+
this._headers = o;
|
|
4151
4147
|
}
|
|
4152
|
-
|
|
4153
|
-
return this._headers.get(
|
|
4148
|
+
xe.prototype.get = function(o) {
|
|
4149
|
+
return this._headers.get(o);
|
|
4154
4150
|
};
|
|
4155
|
-
function
|
|
4151
|
+
function fe() {
|
|
4156
4152
|
}
|
|
4157
|
-
|
|
4158
|
-
var
|
|
4159
|
-
return
|
|
4160
|
-
headers:
|
|
4161
|
-
credentials:
|
|
4162
|
-
signal:
|
|
4153
|
+
fe.prototype.open = function(o, u, f, c, v, b, y) {
|
|
4154
|
+
var A = null, w = new P(), C = w.signal, N = new x();
|
|
4155
|
+
return m(v, {
|
|
4156
|
+
headers: y,
|
|
4157
|
+
credentials: b ? "include" : "same-origin",
|
|
4158
|
+
signal: C,
|
|
4163
4159
|
cache: "no-store"
|
|
4164
|
-
}).then(function(
|
|
4165
|
-
return
|
|
4166
|
-
var
|
|
4167
|
-
|
|
4168
|
-
if (
|
|
4169
|
-
|
|
4160
|
+
}).then(function(_) {
|
|
4161
|
+
return A = _.body.getReader(), u(_.status, _.statusText, _.headers.get("Content-Type"), new xe(_.headers)), new d(function(D, me) {
|
|
4162
|
+
var Ze = function() {
|
|
4163
|
+
A.read().then(function(ee) {
|
|
4164
|
+
if (ee.done)
|
|
4165
|
+
D(void 0);
|
|
4170
4166
|
else {
|
|
4171
|
-
var
|
|
4172
|
-
f(
|
|
4167
|
+
var Z = N.decode(ee.value, { stream: !0 });
|
|
4168
|
+
f(Z), Ze();
|
|
4173
4169
|
}
|
|
4174
|
-
}).catch(function(
|
|
4175
|
-
me(
|
|
4170
|
+
}).catch(function(ee) {
|
|
4171
|
+
me(ee);
|
|
4176
4172
|
});
|
|
4177
4173
|
};
|
|
4178
|
-
|
|
4174
|
+
Ze();
|
|
4179
4175
|
});
|
|
4180
|
-
}).catch(function(
|
|
4181
|
-
if (
|
|
4182
|
-
return
|
|
4183
|
-
}).then(function(
|
|
4184
|
-
|
|
4176
|
+
}).catch(function(_) {
|
|
4177
|
+
if (_.name !== "AbortError")
|
|
4178
|
+
return _;
|
|
4179
|
+
}).then(function(_) {
|
|
4180
|
+
c(_);
|
|
4185
4181
|
}), {
|
|
4186
4182
|
abort: function() {
|
|
4187
|
-
|
|
4183
|
+
A?.cancel(), w.abort();
|
|
4188
4184
|
}
|
|
4189
4185
|
};
|
|
4190
4186
|
};
|
|
4191
|
-
function
|
|
4187
|
+
function re() {
|
|
4192
4188
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4193
4189
|
}
|
|
4194
|
-
function
|
|
4190
|
+
function ae(o) {
|
|
4195
4191
|
r(function() {
|
|
4196
|
-
throw
|
|
4192
|
+
throw o;
|
|
4197
4193
|
}, 0);
|
|
4198
4194
|
}
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
var
|
|
4202
|
-
if (
|
|
4203
|
-
for (var f =
|
|
4204
|
-
var
|
|
4195
|
+
re.prototype.dispatchEvent = function(o) {
|
|
4196
|
+
o.target = this;
|
|
4197
|
+
var u = this._listeners[o.type];
|
|
4198
|
+
if (u != null)
|
|
4199
|
+
for (var f = u.length, c = 0; c < f; c += 1) {
|
|
4200
|
+
var v = u[c];
|
|
4205
4201
|
try {
|
|
4206
|
-
typeof
|
|
4207
|
-
} catch (
|
|
4208
|
-
|
|
4202
|
+
typeof v.handleEvent == "function" ? v.handleEvent(o) : v.call(this, o);
|
|
4203
|
+
} catch (b) {
|
|
4204
|
+
ae(b);
|
|
4209
4205
|
}
|
|
4210
4206
|
}
|
|
4211
|
-
},
|
|
4212
|
-
|
|
4213
|
-
var f = this._listeners,
|
|
4214
|
-
|
|
4215
|
-
for (var
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
},
|
|
4219
|
-
|
|
4220
|
-
var f = this._listeners,
|
|
4221
|
-
if (
|
|
4222
|
-
for (var
|
|
4223
|
-
|
|
4224
|
-
|
|
4207
|
+
}, re.prototype.addEventListener = function(o, u) {
|
|
4208
|
+
o = String(o);
|
|
4209
|
+
var f = this._listeners, c = f[o];
|
|
4210
|
+
c == null && (c = [], f[o] = c);
|
|
4211
|
+
for (var v = !1, b = 0; b < c.length; b += 1)
|
|
4212
|
+
c[b] === u && (v = !0);
|
|
4213
|
+
v || c.push(u);
|
|
4214
|
+
}, re.prototype.removeEventListener = function(o, u) {
|
|
4215
|
+
o = String(o);
|
|
4216
|
+
var f = this._listeners, c = f[o];
|
|
4217
|
+
if (c != null) {
|
|
4218
|
+
for (var v = [], b = 0; b < c.length; b += 1)
|
|
4219
|
+
c[b] !== u && v.push(c[b]);
|
|
4220
|
+
v.length === 0 ? delete f[o] : f[o] = v;
|
|
4225
4221
|
}
|
|
4226
4222
|
};
|
|
4227
|
-
function
|
|
4228
|
-
this.type =
|
|
4223
|
+
function ie(o) {
|
|
4224
|
+
this.type = o, this.target = void 0;
|
|
4229
4225
|
}
|
|
4230
|
-
function
|
|
4231
|
-
|
|
4226
|
+
function E(o, u) {
|
|
4227
|
+
ie.call(this, o), this.data = u.data, this.lastEventId = u.lastEventId;
|
|
4232
4228
|
}
|
|
4233
|
-
|
|
4234
|
-
function
|
|
4235
|
-
|
|
4229
|
+
E.prototype = Object.create(ie.prototype);
|
|
4230
|
+
function de(o, u) {
|
|
4231
|
+
ie.call(this, o), this.status = u.status, this.statusText = u.statusText, this.headers = u.headers;
|
|
4236
4232
|
}
|
|
4237
|
-
|
|
4238
|
-
function
|
|
4239
|
-
|
|
4233
|
+
de.prototype = Object.create(ie.prototype);
|
|
4234
|
+
function nt(o, u) {
|
|
4235
|
+
ie.call(this, o), this.error = u.error;
|
|
4240
4236
|
}
|
|
4241
|
-
|
|
4242
|
-
var
|
|
4243
|
-
var f =
|
|
4244
|
-
return f !== f && (f =
|
|
4245
|
-
},
|
|
4246
|
-
return Math.min(Math.max(
|
|
4247
|
-
},
|
|
4237
|
+
nt.prototype = Object.create(ie.prototype);
|
|
4238
|
+
var Ve = -1, he = 0, _e = 1, Be = 2, Se = -1, se = 0, Xe = 1, He = 2, rt = 3, xt = /^text\/event\-stream(;.*)?$/i, it = 1e3, _t = 18e6, ze = function(o, u) {
|
|
4239
|
+
var f = o == null ? u : parseInt(o, 10);
|
|
4240
|
+
return f !== f && (f = u), We(f);
|
|
4241
|
+
}, We = function(o) {
|
|
4242
|
+
return Math.min(Math.max(o, it), _t);
|
|
4243
|
+
}, pe = function(o, u, f) {
|
|
4248
4244
|
try {
|
|
4249
|
-
typeof
|
|
4250
|
-
} catch (
|
|
4251
|
-
|
|
4245
|
+
typeof u == "function" && u.call(o, f);
|
|
4246
|
+
} catch (c) {
|
|
4247
|
+
ae(c);
|
|
4252
4248
|
}
|
|
4253
4249
|
};
|
|
4254
|
-
function
|
|
4255
|
-
|
|
4250
|
+
function K(o, u) {
|
|
4251
|
+
re.call(this), u = u || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, St(this, o, u);
|
|
4256
4252
|
}
|
|
4257
|
-
function
|
|
4258
|
-
return
|
|
4253
|
+
function Tt() {
|
|
4254
|
+
return a != null && "withCredentials" in a.prototype || l == null ? new a() : new l();
|
|
4259
4255
|
}
|
|
4260
|
-
var
|
|
4261
|
-
function
|
|
4262
|
-
|
|
4263
|
-
var
|
|
4264
|
-
if (
|
|
4265
|
-
if (
|
|
4266
|
-
|
|
4267
|
-
var
|
|
4268
|
-
status:
|
|
4256
|
+
var Bt = m != null && g != null && "body" in g.prototype;
|
|
4257
|
+
function St(o, u, f) {
|
|
4258
|
+
u = String(u);
|
|
4259
|
+
var c = !!f.withCredentials, v = f.lastEventIdQueryParameterName || "lastEventId", b = We(1e3), y = ze(f.heartbeatTimeout, 45e3), A = "", w = b, C = !1, N = 0, _ = f.headers || {}, D = f.Transport, me = Bt && D == null ? void 0 : new S(D != null ? new D() : Tt()), Ze = D != null && typeof D != "string" ? new D() : me == null ? new fe() : new Y(), ee = void 0, Z = 0, le = Ve, Le = "", at = "", ge = "", st = "", q = se, wt = 0, we = 0, Kn = function(j, k, te, ne) {
|
|
4260
|
+
if (le === he)
|
|
4261
|
+
if (j === 200 && te != null && xt.test(te)) {
|
|
4262
|
+
le = _e, C = Date.now(), w = b, o.readyState = _e;
|
|
4263
|
+
var Q = new de("open", {
|
|
4264
|
+
status: j,
|
|
4269
4265
|
statusText: k,
|
|
4270
|
-
headers:
|
|
4266
|
+
headers: ne
|
|
4271
4267
|
});
|
|
4272
|
-
|
|
4268
|
+
o.dispatchEvent(Q), pe(o, o.onopen, Q);
|
|
4273
4269
|
} else {
|
|
4274
|
-
var
|
|
4275
|
-
|
|
4276
|
-
var
|
|
4277
|
-
status:
|
|
4270
|
+
var z = "";
|
|
4271
|
+
j !== 200 ? (k && (k = k.replace(/\s+/g, " ")), z = "EventSource's response has a status " + j + " " + k + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (te == null ? "-" : te.replace(/\s+/g, " ")) + ". Aborting the connection.", At();
|
|
4272
|
+
var Q = new de("error", {
|
|
4273
|
+
status: j,
|
|
4278
4274
|
statusText: k,
|
|
4279
|
-
headers:
|
|
4275
|
+
headers: ne
|
|
4280
4276
|
});
|
|
4281
|
-
|
|
4277
|
+
o.dispatchEvent(Q), pe(o, o.onerror, Q), console.error(z);
|
|
4282
4278
|
}
|
|
4283
|
-
}, er = function(
|
|
4284
|
-
if (
|
|
4285
|
-
for (var k = -1,
|
|
4286
|
-
var
|
|
4287
|
-
(
|
|
4279
|
+
}, er = function(j) {
|
|
4280
|
+
if (le === _e) {
|
|
4281
|
+
for (var k = -1, te = 0; te < j.length; te += 1) {
|
|
4282
|
+
var ne = j.charCodeAt(te);
|
|
4283
|
+
(ne === 10 || ne === 13) && (k = te);
|
|
4288
4284
|
}
|
|
4289
|
-
var
|
|
4290
|
-
st = (k === -1 ? st : "") +
|
|
4291
|
-
for (var
|
|
4292
|
-
var
|
|
4293
|
-
if (
|
|
4294
|
-
|
|
4295
|
-
else if (
|
|
4296
|
-
if (
|
|
4297
|
-
|
|
4298
|
-
var be =
|
|
4299
|
-
be === "data" ? (
|
|
4300
|
-
`,
|
|
4301
|
-
|
|
4302
|
-
},
|
|
4285
|
+
var Q = (k !== -1 ? st : "") + j.slice(0, k + 1);
|
|
4286
|
+
st = (k === -1 ? st : "") + j.slice(k + 1), j !== "" && (C = Date.now(), N += j.length);
|
|
4287
|
+
for (var z = 0; z < Q.length; z += 1) {
|
|
4288
|
+
var ne = Q.charCodeAt(z);
|
|
4289
|
+
if (q === Se && ne === 10)
|
|
4290
|
+
q = se;
|
|
4291
|
+
else if (q === Se && (q = se), ne === 13 || ne === 10) {
|
|
4292
|
+
if (q !== se) {
|
|
4293
|
+
q === Xe && (we = z + 1);
|
|
4294
|
+
var be = Q.slice(wt, we - 1), ye = Q.slice(we + (we < z && Q.charCodeAt(we) === 32 ? 1 : 0), z);
|
|
4295
|
+
be === "data" ? (Le += `
|
|
4296
|
+
`, Le += ye) : be === "id" ? at = ye : be === "event" ? ge = ye : be === "retry" ? (b = ze(ye, b), w = b) : be === "heartbeatTimeout" && (y = ze(ye, y), Z !== 0 && (i(Z), Z = r(function() {
|
|
4297
|
+
qe();
|
|
4298
|
+
}, y)));
|
|
4303
4299
|
}
|
|
4304
|
-
if (
|
|
4305
|
-
if (
|
|
4306
|
-
|
|
4307
|
-
var
|
|
4308
|
-
data:
|
|
4300
|
+
if (q === se) {
|
|
4301
|
+
if (Le !== "") {
|
|
4302
|
+
A = at, ge === "" && (ge = "message");
|
|
4303
|
+
var Oe = new E(ge, {
|
|
4304
|
+
data: Le.slice(1),
|
|
4309
4305
|
lastEventId: at
|
|
4310
4306
|
});
|
|
4311
|
-
if (
|
|
4307
|
+
if (o.dispatchEvent(Oe), ge === "open" ? pe(o, o.onopen, Oe) : ge === "message" ? pe(o, o.onmessage, Oe) : ge === "error" && pe(o, o.onerror, Oe), le === Be)
|
|
4312
4308
|
return;
|
|
4313
4309
|
}
|
|
4314
|
-
|
|
4310
|
+
Le = "", ge = "";
|
|
4315
4311
|
}
|
|
4316
|
-
|
|
4312
|
+
q = ne === 13 ? Se : se;
|
|
4317
4313
|
} else
|
|
4318
|
-
|
|
4314
|
+
q === se && (wt = z, q = Xe), q === Xe ? ne === 58 && (we = z + 1, q = He) : q === He && (q = rt);
|
|
4319
4315
|
}
|
|
4320
4316
|
}
|
|
4321
|
-
}, Kt = function(
|
|
4322
|
-
if (
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
},
|
|
4326
|
-
var k = new
|
|
4327
|
-
|
|
4317
|
+
}, Kt = function(j) {
|
|
4318
|
+
if (le === _e || le === he) {
|
|
4319
|
+
le = Ve, Z !== 0 && (i(Z), Z = 0), Z = r(function() {
|
|
4320
|
+
qe();
|
|
4321
|
+
}, w), w = We(Math.min(b * 16, w * 2)), o.readyState = he;
|
|
4322
|
+
var k = new nt("error", { error: j });
|
|
4323
|
+
o.dispatchEvent(k), pe(o, o.onerror, k), j != null && console.error(j);
|
|
4328
4324
|
}
|
|
4329
|
-
},
|
|
4330
|
-
|
|
4331
|
-
},
|
|
4332
|
-
if (
|
|
4333
|
-
if (!
|
|
4334
|
-
Kt(new Error("No activity within " +
|
|
4325
|
+
}, At = function() {
|
|
4326
|
+
le = Be, ee != null && (ee.abort(), ee = void 0), Z !== 0 && (i(Z), Z = 0), o.readyState = Be;
|
|
4327
|
+
}, qe = function() {
|
|
4328
|
+
if (Z = 0, le !== Ve) {
|
|
4329
|
+
if (!C && ee != null)
|
|
4330
|
+
Kt(new Error("No activity within " + y + " milliseconds. " + (le === he ? "No response received." : N + " chars received.") + " Reconnecting.")), ee != null && (ee.abort(), ee = void 0);
|
|
4335
4331
|
else {
|
|
4336
|
-
var
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
},
|
|
4332
|
+
var j = Math.max((C || Date.now()) + y - Date.now(), 1);
|
|
4333
|
+
C = !1, Z = r(function() {
|
|
4334
|
+
qe();
|
|
4335
|
+
}, j);
|
|
4340
4336
|
}
|
|
4341
4337
|
return;
|
|
4342
4338
|
}
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
},
|
|
4346
|
-
var k =
|
|
4347
|
-
if (
|
|
4348
|
-
var
|
|
4349
|
-
k =
|
|
4350
|
-
return
|
|
4351
|
-
}), k += (
|
|
4339
|
+
C = !1, N = 0, Z = r(function() {
|
|
4340
|
+
qe();
|
|
4341
|
+
}, y), le = he, Le = "", ge = "", at = A, st = "", wt = 0, we = 0, q = se;
|
|
4342
|
+
var k = u;
|
|
4343
|
+
if (u.slice(0, 5) !== "data:" && u.slice(0, 5) !== "blob:" && A !== "") {
|
|
4344
|
+
var te = u.indexOf("?");
|
|
4345
|
+
k = te === -1 ? u : u.slice(0, te + 1) + u.slice(te + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ye, Oe) {
|
|
4346
|
+
return Oe === v ? "" : ye;
|
|
4347
|
+
}), k += (u.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(A);
|
|
4352
4348
|
}
|
|
4353
|
-
var
|
|
4354
|
-
|
|
4355
|
-
var
|
|
4356
|
-
if (
|
|
4357
|
-
for (var be in
|
|
4358
|
-
Object.prototype.hasOwnProperty.call(
|
|
4349
|
+
var ne = o.withCredentials, Q = {};
|
|
4350
|
+
Q.Accept = "text/event-stream";
|
|
4351
|
+
var z = o.headers;
|
|
4352
|
+
if (z != null)
|
|
4353
|
+
for (var be in z)
|
|
4354
|
+
Object.prototype.hasOwnProperty.call(z, be) && (Q[be] = z[be]);
|
|
4359
4355
|
try {
|
|
4360
|
-
|
|
4356
|
+
ee = Ze.open(me, Kn, er, Kt, k, ne, Q);
|
|
4361
4357
|
} catch (ye) {
|
|
4362
|
-
throw
|
|
4358
|
+
throw At(), ye;
|
|
4363
4359
|
}
|
|
4364
4360
|
};
|
|
4365
|
-
|
|
4361
|
+
o.url = u, o.readyState = he, o.withCredentials = c, o.headers = _, o._close = At, qe();
|
|
4366
4362
|
}
|
|
4367
|
-
|
|
4363
|
+
K.prototype = Object.create(re.prototype), K.prototype.CONNECTING = he, K.prototype.OPEN = _e, K.prototype.CLOSED = Be, K.prototype.close = function() {
|
|
4368
4364
|
this._close();
|
|
4369
|
-
},
|
|
4370
|
-
var
|
|
4371
|
-
|
|
4365
|
+
}, K.CONNECTING = he, K.OPEN = _e, K.CLOSED = Be, K.prototype.withCredentials = void 0;
|
|
4366
|
+
var ot = p;
|
|
4367
|
+
a != null && (p == null || !("withCredentials" in p.prototype)) && (ot = K), function(o) {
|
|
4372
4368
|
{
|
|
4373
|
-
var
|
|
4374
|
-
|
|
4369
|
+
var u = o(t);
|
|
4370
|
+
u !== void 0 && (e.exports = u);
|
|
4375
4371
|
}
|
|
4376
|
-
}(function(
|
|
4377
|
-
|
|
4372
|
+
}(function(o) {
|
|
4373
|
+
o.EventSourcePolyfill = K, o.NativeEventSource = p, o.EventSource = ot;
|
|
4378
4374
|
});
|
|
4379
4375
|
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Cr : globalThis);
|
|
4380
|
-
})(
|
|
4381
|
-
var
|
|
4382
|
-
function
|
|
4376
|
+
})(Wt, Wt.exports);
|
|
4377
|
+
var bo = Wt.exports;
|
|
4378
|
+
function yo(e) {
|
|
4383
4379
|
rr(e, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
|
|
4384
4380
|
}
|
|
4385
4381
|
function yn(e, t, n) {
|
|
@@ -4390,7 +4386,7 @@ function vn(e, t, n) {
|
|
|
4390
4386
|
const r = e.slice();
|
|
4391
4387
|
return r[52] = t[n], r;
|
|
4392
4388
|
}
|
|
4393
|
-
function
|
|
4389
|
+
function vo(e) {
|
|
4394
4390
|
let t, n = (
|
|
4395
4391
|
/*balances*/
|
|
4396
4392
|
(e[3].Total ? (
|
|
@@ -4400,86 +4396,86 @@ function Eo(e) {
|
|
|
4400
4396
|
e[3].Total[0].amount
|
|
4401
4397
|
)
|
|
4402
4398
|
) : "0") + ""
|
|
4403
|
-
), r, i,
|
|
4399
|
+
), r, i, a, l, s, p, h, d = (
|
|
4404
4400
|
/*isModalDisplayed*/
|
|
4405
4401
|
e[2] && En(e)
|
|
4406
4402
|
);
|
|
4407
4403
|
return {
|
|
4408
4404
|
c() {
|
|
4409
|
-
t =
|
|
4405
|
+
t = U("button"), r = ve(n), i = Ee(), a = U("span"), a.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', l = Ee(), d && d.c(), s = ar(), W(t, "class", "BalanceValue");
|
|
4410
4406
|
},
|
|
4411
|
-
m(
|
|
4412
|
-
ce(
|
|
4407
|
+
m(m, g) {
|
|
4408
|
+
ce(m, t, g), M(t, r), M(t, i), M(t, a), ce(m, l, g), d && d.m(m, g), ce(m, s, g), p || (h = ft(
|
|
4413
4409
|
t,
|
|
4414
4410
|
"click",
|
|
4415
4411
|
/*click_handler*/
|
|
4416
4412
|
e[23]
|
|
4417
|
-
),
|
|
4413
|
+
), p = !0);
|
|
4418
4414
|
},
|
|
4419
|
-
p(
|
|
4420
|
-
|
|
4415
|
+
p(m, g) {
|
|
4416
|
+
g[0] & /*balances*/
|
|
4421
4417
|
8 && n !== (n = /*balances*/
|
|
4422
|
-
(
|
|
4418
|
+
(m[3].Total ? (
|
|
4423
4419
|
/*formatBalance*/
|
|
4424
|
-
|
|
4420
|
+
m[5](
|
|
4425
4421
|
/*balances*/
|
|
4426
|
-
|
|
4422
|
+
m[3].Total[0].amount
|
|
4427
4423
|
)
|
|
4428
|
-
) : "0") + "") &&
|
|
4429
|
-
|
|
4424
|
+
) : "0") + "") && Ae(r, n), /*isModalDisplayed*/
|
|
4425
|
+
m[2] ? d ? d.p(m, g) : (d = En(m), d.c(), d.m(s.parentNode, s)) : d && (d.d(1), d = null);
|
|
4430
4426
|
},
|
|
4431
|
-
d(
|
|
4432
|
-
|
|
4427
|
+
d(m) {
|
|
4428
|
+
m && (ue(t), ue(l), ue(s)), d && d.d(m), p = !1, h();
|
|
4433
4429
|
}
|
|
4434
4430
|
};
|
|
4435
4431
|
}
|
|
4436
|
-
function
|
|
4432
|
+
function Eo(e) {
|
|
4437
4433
|
let t, n = (
|
|
4438
4434
|
/*$_*/
|
|
4439
4435
|
e[4]("Loading") + ""
|
|
4440
4436
|
), r;
|
|
4441
4437
|
return {
|
|
4442
4438
|
c() {
|
|
4443
|
-
t =
|
|
4439
|
+
t = U("p"), r = ve(n);
|
|
4444
4440
|
},
|
|
4445
|
-
m(i,
|
|
4446
|
-
ce(i, t,
|
|
4441
|
+
m(i, a) {
|
|
4442
|
+
ce(i, t, a), M(t, r);
|
|
4447
4443
|
},
|
|
4448
|
-
p(i,
|
|
4449
|
-
|
|
4444
|
+
p(i, a) {
|
|
4445
|
+
a[0] & /*$_*/
|
|
4450
4446
|
16 && n !== (n = /*$_*/
|
|
4451
|
-
i[4]("Loading") + "") &&
|
|
4447
|
+
i[4]("Loading") + "") && Ae(r, n);
|
|
4452
4448
|
},
|
|
4453
4449
|
d(i) {
|
|
4454
|
-
i &&
|
|
4450
|
+
i && ue(t);
|
|
4455
4451
|
}
|
|
4456
4452
|
};
|
|
4457
4453
|
}
|
|
4458
4454
|
function En(e) {
|
|
4459
|
-
let t, n, r, i,
|
|
4455
|
+
let t, n, r, i, a, l, s = (
|
|
4460
4456
|
/*$_*/
|
|
4461
4457
|
e[4]("Title") + ""
|
|
4462
|
-
),
|
|
4458
|
+
), p, h, d, m, g, x, T = (
|
|
4463
4459
|
/*$_*/
|
|
4464
4460
|
e[4]("DepositButton") + ""
|
|
4465
|
-
), P,
|
|
4461
|
+
), P, $, X, F = dt(Object.keys(
|
|
4466
4462
|
/*balances*/
|
|
4467
4463
|
e[3]
|
|
4468
4464
|
)), B = [];
|
|
4469
|
-
for (let
|
|
4470
|
-
B[
|
|
4465
|
+
for (let S = 0; S < F.length; S += 1)
|
|
4466
|
+
B[S] = _n(yn(e, F, S));
|
|
4471
4467
|
return {
|
|
4472
4468
|
c() {
|
|
4473
|
-
t =
|
|
4474
|
-
for (let
|
|
4475
|
-
B[
|
|
4476
|
-
|
|
4469
|
+
t = U("div"), n = U("button"), r = Ee(), i = U("div"), a = U("div"), l = U("p"), p = ve(s), h = Ee(), d = U("div");
|
|
4470
|
+
for (let S = 0; S < B.length; S += 1)
|
|
4471
|
+
B[S].c();
|
|
4472
|
+
m = Ee(), g = U("div"), x = U("button"), P = ve(T), W(n, "class", "BalanceModalClose"), W(l, "class", "BalanceModalTitle"), W(a, "class", "BalanceModalHeader"), W(d, "class", "BalanceModalBody"), W(x, "class", "BalanceModalAction"), W(g, "class", "BalanceModalFooter"), W(i, "class", "BalanceModal"), W(t, "class", "BalanceModalWrapper");
|
|
4477
4473
|
},
|
|
4478
|
-
m(
|
|
4479
|
-
ce(
|
|
4480
|
-
for (let
|
|
4481
|
-
B[
|
|
4482
|
-
M(i,
|
|
4474
|
+
m(S, G) {
|
|
4475
|
+
ce(S, t, G), M(t, n), M(t, r), M(t, i), M(i, a), M(a, l), M(l, p), M(i, h), M(i, d);
|
|
4476
|
+
for (let O = 0; O < B.length; O += 1)
|
|
4477
|
+
B[O] && B[O].m(d, null);
|
|
4478
|
+
M(i, m), M(i, g), M(g, x), M(x, P), $ || (X = [
|
|
4483
4479
|
ft(
|
|
4484
4480
|
n,
|
|
4485
4481
|
"click",
|
|
@@ -4492,32 +4488,32 @@ function En(e) {
|
|
|
4492
4488
|
/*click_handler_2*/
|
|
4493
4489
|
e[25]
|
|
4494
4490
|
)
|
|
4495
|
-
],
|
|
4491
|
+
], $ = !0);
|
|
4496
4492
|
},
|
|
4497
|
-
p(
|
|
4498
|
-
if (
|
|
4493
|
+
p(S, G) {
|
|
4494
|
+
if (G[0] & /*$_*/
|
|
4499
4495
|
16 && s !== (s = /*$_*/
|
|
4500
|
-
|
|
4496
|
+
S[4]("Title") + "") && Ae(p, s), G[0] & /*balances, formatBalance, $_*/
|
|
4501
4497
|
56) {
|
|
4502
|
-
|
|
4498
|
+
F = dt(Object.keys(
|
|
4503
4499
|
/*balances*/
|
|
4504
|
-
|
|
4500
|
+
S[3]
|
|
4505
4501
|
));
|
|
4506
|
-
let
|
|
4507
|
-
for (
|
|
4508
|
-
const
|
|
4509
|
-
B[
|
|
4502
|
+
let O;
|
|
4503
|
+
for (O = 0; O < F.length; O += 1) {
|
|
4504
|
+
const Y = yn(S, F, O);
|
|
4505
|
+
B[O] ? B[O].p(Y, G) : (B[O] = _n(Y), B[O].c(), B[O].m(d, null));
|
|
4510
4506
|
}
|
|
4511
|
-
for (;
|
|
4512
|
-
B[
|
|
4513
|
-
B.length =
|
|
4507
|
+
for (; O < B.length; O += 1)
|
|
4508
|
+
B[O].d(1);
|
|
4509
|
+
B.length = F.length;
|
|
4514
4510
|
}
|
|
4515
|
-
|
|
4511
|
+
G[0] & /*$_*/
|
|
4516
4512
|
16 && T !== (T = /*$_*/
|
|
4517
|
-
|
|
4513
|
+
S[4]("DepositButton") + "") && Ae(P, T);
|
|
4518
4514
|
},
|
|
4519
|
-
d(
|
|
4520
|
-
|
|
4515
|
+
d(S) {
|
|
4516
|
+
S && ue(t), An(B, S), $ = !1, Ge(X);
|
|
4521
4517
|
}
|
|
4522
4518
|
};
|
|
4523
4519
|
}
|
|
@@ -4528,7 +4524,7 @@ function xn(e) {
|
|
|
4528
4524
|
/*k*/
|
|
4529
4525
|
e[49]
|
|
4530
4526
|
) + ""
|
|
4531
|
-
), i,
|
|
4527
|
+
), i, a, l = (
|
|
4532
4528
|
/*b*/
|
|
4533
4529
|
(e[52].productType ? (
|
|
4534
4530
|
/*$_*/
|
|
@@ -4537,19 +4533,19 @@ function xn(e) {
|
|
|
4537
4533
|
e[52].productType
|
|
4538
4534
|
)
|
|
4539
4535
|
) : "") + ""
|
|
4540
|
-
), s,
|
|
4536
|
+
), s, p, h, d, m = (
|
|
4541
4537
|
/*formatBalance*/
|
|
4542
4538
|
e[5](
|
|
4543
4539
|
/*b*/
|
|
4544
4540
|
e[52].amount
|
|
4545
4541
|
) + ""
|
|
4546
|
-
),
|
|
4542
|
+
), g;
|
|
4547
4543
|
return {
|
|
4548
4544
|
c() {
|
|
4549
|
-
t =
|
|
4545
|
+
t = U("div"), n = U("p"), i = ve(r), a = Ee(), s = ve(l), p = Ee(), h = U("p"), d = U("span"), g = ve(m), W(n, "class", "BalanceModalText"), W(d, "class", "BalanceModalAmount"), W(h, "class", "BalanceModalValue"), W(t, "class", "BalanceModalRowLine");
|
|
4550
4546
|
},
|
|
4551
4547
|
m(x, T) {
|
|
4552
|
-
ce(x, t, T), M(t, n), M(n, i), M(n,
|
|
4548
|
+
ce(x, t, T), M(t, n), M(n, i), M(n, a), M(n, s), M(t, p), M(t, h), M(h, d), M(d, g);
|
|
4553
4549
|
},
|
|
4554
4550
|
p(x, T) {
|
|
4555
4551
|
T[0] & /*$_, balances*/
|
|
@@ -4557,23 +4553,23 @@ function xn(e) {
|
|
|
4557
4553
|
x[4](
|
|
4558
4554
|
/*k*/
|
|
4559
4555
|
x[49]
|
|
4560
|
-
) + "") &&
|
|
4561
|
-
24 &&
|
|
4556
|
+
) + "") && Ae(i, r), T[0] & /*balances, $_*/
|
|
4557
|
+
24 && l !== (l = /*b*/
|
|
4562
4558
|
(x[52].productType ? (
|
|
4563
4559
|
/*$_*/
|
|
4564
4560
|
x[4](
|
|
4565
4561
|
/*b*/
|
|
4566
4562
|
x[52].productType
|
|
4567
4563
|
)
|
|
4568
|
-
) : "") + "") &&
|
|
4569
|
-
8 &&
|
|
4564
|
+
) : "") + "") && Ae(s, l), T[0] & /*balances*/
|
|
4565
|
+
8 && m !== (m = /*formatBalance*/
|
|
4570
4566
|
x[5](
|
|
4571
4567
|
/*b*/
|
|
4572
4568
|
x[52].amount
|
|
4573
|
-
) + "") &&
|
|
4569
|
+
) + "") && Ae(g, m);
|
|
4574
4570
|
},
|
|
4575
4571
|
d(x) {
|
|
4576
|
-
x &&
|
|
4572
|
+
x && ue(t);
|
|
4577
4573
|
}
|
|
4578
4574
|
};
|
|
4579
4575
|
}
|
|
@@ -4585,43 +4581,43 @@ function _n(e) {
|
|
|
4585
4581
|
e[49]
|
|
4586
4582
|
]
|
|
4587
4583
|
), i = [];
|
|
4588
|
-
for (let
|
|
4589
|
-
i[
|
|
4584
|
+
for (let a = 0; a < r.length; a += 1)
|
|
4585
|
+
i[a] = xn(vn(e, r, a));
|
|
4590
4586
|
return {
|
|
4591
4587
|
c() {
|
|
4592
|
-
t =
|
|
4593
|
-
for (let
|
|
4594
|
-
i[
|
|
4595
|
-
n = Ee(),
|
|
4588
|
+
t = U("div");
|
|
4589
|
+
for (let a = 0; a < i.length; a += 1)
|
|
4590
|
+
i[a].c();
|
|
4591
|
+
n = Ee(), W(t, "class", "BalanceModalRowBoth");
|
|
4596
4592
|
},
|
|
4597
|
-
m(
|
|
4598
|
-
ce(
|
|
4593
|
+
m(a, l) {
|
|
4594
|
+
ce(a, t, l);
|
|
4599
4595
|
for (let s = 0; s < i.length; s += 1)
|
|
4600
4596
|
i[s] && i[s].m(t, null);
|
|
4601
4597
|
M(t, n);
|
|
4602
4598
|
},
|
|
4603
|
-
p(
|
|
4604
|
-
if (
|
|
4599
|
+
p(a, l) {
|
|
4600
|
+
if (l[0] & /*formatBalance, balances, $_*/
|
|
4605
4601
|
56) {
|
|
4606
4602
|
r = dt(
|
|
4607
4603
|
/*balances*/
|
|
4608
|
-
|
|
4604
|
+
a[3][
|
|
4609
4605
|
/*k*/
|
|
4610
|
-
|
|
4606
|
+
a[49]
|
|
4611
4607
|
]
|
|
4612
4608
|
);
|
|
4613
4609
|
let s;
|
|
4614
4610
|
for (s = 0; s < r.length; s += 1) {
|
|
4615
|
-
const
|
|
4616
|
-
i[s] ? i[s].p(
|
|
4611
|
+
const p = vn(a, r, s);
|
|
4612
|
+
i[s] ? i[s].p(p, l) : (i[s] = xn(p), i[s].c(), i[s].m(t, n));
|
|
4617
4613
|
}
|
|
4618
4614
|
for (; s < i.length; s += 1)
|
|
4619
4615
|
i[s].d(1);
|
|
4620
4616
|
i.length = r.length;
|
|
4621
4617
|
}
|
|
4622
4618
|
},
|
|
4623
|
-
d(
|
|
4624
|
-
|
|
4619
|
+
d(a) {
|
|
4620
|
+
a && ue(t), An(i, a);
|
|
4625
4621
|
}
|
|
4626
4622
|
};
|
|
4627
4623
|
}
|
|
@@ -4629,10 +4625,10 @@ function Tn(e) {
|
|
|
4629
4625
|
let t, n, r;
|
|
4630
4626
|
return {
|
|
4631
4627
|
c() {
|
|
4632
|
-
t =
|
|
4628
|
+
t = U("button"), W(t, "class", "ShowBalanceModalOverlay");
|
|
4633
4629
|
},
|
|
4634
|
-
m(i,
|
|
4635
|
-
ce(i, t,
|
|
4630
|
+
m(i, a) {
|
|
4631
|
+
ce(i, t, a), n || (r = ft(
|
|
4636
4632
|
t,
|
|
4637
4633
|
"click",
|
|
4638
4634
|
/*click_handler_3*/
|
|
@@ -4641,149 +4637,149 @@ function Tn(e) {
|
|
|
4641
4637
|
},
|
|
4642
4638
|
p: oe,
|
|
4643
4639
|
d(i) {
|
|
4644
|
-
i &&
|
|
4640
|
+
i && ue(t), n = !1, r();
|
|
4645
4641
|
}
|
|
4646
4642
|
};
|
|
4647
4643
|
}
|
|
4648
|
-
function
|
|
4644
|
+
function xo(e) {
|
|
4649
4645
|
let t, n, r;
|
|
4650
|
-
function i(
|
|
4646
|
+
function i(p, h) {
|
|
4651
4647
|
return (
|
|
4652
4648
|
/*isLoading*/
|
|
4653
|
-
|
|
4649
|
+
p[1] ? Eo : vo
|
|
4654
4650
|
);
|
|
4655
4651
|
}
|
|
4656
|
-
let
|
|
4652
|
+
let a = i(e), l = a(e), s = (
|
|
4657
4653
|
/*isModalDisplayed*/
|
|
4658
4654
|
e[2] && Tn(e)
|
|
4659
4655
|
);
|
|
4660
4656
|
return {
|
|
4661
4657
|
c() {
|
|
4662
|
-
t =
|
|
4658
|
+
t = U("div"), n = U("div"), l.c(), r = Ee(), s && s.c(), W(n, "class", "ShowBalance");
|
|
4663
4659
|
},
|
|
4664
|
-
m(
|
|
4665
|
-
ce(
|
|
4660
|
+
m(p, h) {
|
|
4661
|
+
ce(p, t, h), M(t, n), l.m(n, null), M(t, r), s && s.m(t, null), e[27](t);
|
|
4666
4662
|
},
|
|
4667
|
-
p(
|
|
4668
|
-
|
|
4669
|
-
|
|
4663
|
+
p(p, h) {
|
|
4664
|
+
a === (a = i(p)) && l ? l.p(p, h) : (l.d(1), l = a(p), l && (l.c(), l.m(n, null))), /*isModalDisplayed*/
|
|
4665
|
+
p[2] ? s ? s.p(p, h) : (s = Tn(p), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4670
4666
|
},
|
|
4671
4667
|
i: oe,
|
|
4672
4668
|
o: oe,
|
|
4673
|
-
d(
|
|
4674
|
-
|
|
4669
|
+
d(p) {
|
|
4670
|
+
p && ue(t), l.d(), s && s.d(), e[27](null);
|
|
4675
4671
|
}
|
|
4676
4672
|
};
|
|
4677
4673
|
}
|
|
4678
|
-
function
|
|
4674
|
+
function _o(e, t, n) {
|
|
4679
4675
|
let r;
|
|
4680
|
-
nr(e,
|
|
4681
|
-
let { userid: i = "" } = t, { session:
|
|
4682
|
-
const
|
|
4683
|
-
fetch(
|
|
4676
|
+
nr(e, mo, (o) => n(4, r = o));
|
|
4677
|
+
let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: p } = t, { clientstyling: h = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = t, { gmversion: g = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencylocale: P = "en" } = t, { currencydisplay: $ = "symbol" } = t, { maximumfractiondigits: X = "2" } = t, { minimumfractiondigits: F = "0" } = t, { customdisplayformat: B = "" } = t, S, G, O = !0, Y = !1, xe = !1, fe, re = "", ae = [], ie;
|
|
4678
|
+
const E = {}, de = ["totalCashAmount", "totalRealAmount"], nt = () => {
|
|
4679
|
+
fetch(m).then((o) => o.json()).then((o) => Object.keys(o).forEach((u) => gn(u, o[u]))).catch((o) => console.log(o));
|
|
4684
4680
|
};
|
|
4685
|
-
Object.keys(bn).forEach((
|
|
4686
|
-
const
|
|
4681
|
+
Object.keys(bn).forEach((o) => gn(o, bn[o]));
|
|
4682
|
+
const Ve = (o) => {
|
|
4687
4683
|
if (B)
|
|
4688
|
-
return
|
|
4689
|
-
const
|
|
4684
|
+
return he(o);
|
|
4685
|
+
const u = P || s, f = {
|
|
4690
4686
|
style: "currency",
|
|
4691
|
-
currency:
|
|
4687
|
+
currency: re,
|
|
4692
4688
|
useGrouping: !0,
|
|
4693
|
-
currencyDisplay:
|
|
4694
|
-
maximumFractionDigits:
|
|
4695
|
-
minimumFractionDigits:
|
|
4689
|
+
currencyDisplay: $ || "code",
|
|
4690
|
+
maximumFractionDigits: X === "" || isNaN(Number(X)) ? 2 : Number(X),
|
|
4691
|
+
minimumFractionDigits: F === "" || isNaN(Number(F)) ? 0 : Number(F)
|
|
4696
4692
|
};
|
|
4697
|
-
return new Intl.NumberFormat(
|
|
4698
|
-
},
|
|
4699
|
-
const
|
|
4700
|
-
let
|
|
4701
|
-
for (const
|
|
4702
|
-
switch (
|
|
4693
|
+
return new Intl.NumberFormat(u, f).format(o);
|
|
4694
|
+
}, he = (o) => {
|
|
4695
|
+
const u = [];
|
|
4696
|
+
let f = "";
|
|
4697
|
+
for (const c of B)
|
|
4698
|
+
switch (c) {
|
|
4703
4699
|
default:
|
|
4704
|
-
|
|
4700
|
+
f += c;
|
|
4705
4701
|
break;
|
|
4706
4702
|
case "{":
|
|
4707
|
-
|
|
4703
|
+
f && u.push(f), f = "";
|
|
4708
4704
|
break;
|
|
4709
4705
|
case "}":
|
|
4710
|
-
const [
|
|
4711
|
-
if (
|
|
4712
|
-
|
|
4713
|
-
else if (
|
|
4714
|
-
let
|
|
4715
|
-
|
|
4716
|
-
let [
|
|
4717
|
-
|
|
4718
|
-
for (let
|
|
4719
|
-
(
|
|
4720
|
-
|
|
4706
|
+
const [v, b] = f.split("|");
|
|
4707
|
+
if (f = "", v.toLowerCase() === "currency")
|
|
4708
|
+
f = re;
|
|
4709
|
+
else if (v.toLowerCase() === "amount") {
|
|
4710
|
+
let y = ",", A = ".", w = 2;
|
|
4711
|
+
b && (b[0] !== " " && (y = b[0]), b[1] !== " " && (A = b[1]), b[2] !== " " && !isNaN(Number(b[2])) && (w = Number(b[2])));
|
|
4712
|
+
let [C, N] = String(Math.floor(o * 10 ** w) / 10 ** w).split(".");
|
|
4713
|
+
f += C[0];
|
|
4714
|
+
for (let _ = 1; _ < C.length; ++_)
|
|
4715
|
+
(C.length - _) % 3 === 0 ? f += y + C[_] : f += C[_];
|
|
4716
|
+
N && (f += A + N);
|
|
4721
4717
|
}
|
|
4722
|
-
|
|
4718
|
+
f && u.push(f), f = "";
|
|
4723
4719
|
break;
|
|
4724
4720
|
}
|
|
4725
|
-
return
|
|
4726
|
-
},
|
|
4727
|
-
n(1,
|
|
4728
|
-
const
|
|
4721
|
+
return u.push(f), u.join("");
|
|
4722
|
+
}, _e = async () => {
|
|
4723
|
+
n(1, O = !0);
|
|
4724
|
+
const o = new URL(`${l}/v1/player/${i}/account`);
|
|
4729
4725
|
try {
|
|
4730
|
-
const
|
|
4726
|
+
const u = await fetch(o, {
|
|
4731
4727
|
method: "GET",
|
|
4732
|
-
headers: { "X-SessionID":
|
|
4733
|
-
}),
|
|
4734
|
-
if (
|
|
4735
|
-
|
|
4728
|
+
headers: { "X-SessionID": a }
|
|
4729
|
+
}), f = await u.json();
|
|
4730
|
+
if (u.ok)
|
|
4731
|
+
ae = f.items, re = ae.find((c) => c.displayName === "Casino")?.currency, n(3, E.Total = [{ amount: f.totalAmount[re] }], E), n(
|
|
4736
4732
|
3,
|
|
4737
|
-
|
|
4733
|
+
E.Real = [
|
|
4738
4734
|
{
|
|
4739
|
-
amount:
|
|
4735
|
+
amount: ae.find((c) => c.displayName === "Casino")?.balanceAmount
|
|
4740
4736
|
}
|
|
4741
4737
|
],
|
|
4742
|
-
|
|
4738
|
+
E
|
|
4743
4739
|
), n(
|
|
4744
4740
|
3,
|
|
4745
|
-
|
|
4741
|
+
E.Bonus = [
|
|
4746
4742
|
{
|
|
4747
|
-
amount:
|
|
4743
|
+
amount: ae.find((c) => c.displayName === "UBS")?.balanceAmount
|
|
4748
4744
|
}
|
|
4749
4745
|
],
|
|
4750
|
-
|
|
4746
|
+
E
|
|
4751
4747
|
);
|
|
4752
4748
|
else
|
|
4753
4749
|
throw new Error("Failed to fetch balance data !");
|
|
4754
|
-
} catch (
|
|
4755
|
-
console.log("Balance error: ",
|
|
4750
|
+
} catch (u) {
|
|
4751
|
+
console.log("Balance error: ", u);
|
|
4756
4752
|
} finally {
|
|
4757
|
-
n(1,
|
|
4753
|
+
n(1, O = !1);
|
|
4758
4754
|
}
|
|
4759
|
-
},
|
|
4760
|
-
n(1,
|
|
4761
|
-
const
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
const
|
|
4765
|
-
if (
|
|
4766
|
-
|
|
4755
|
+
}, Be = () => {
|
|
4756
|
+
n(1, O = !0);
|
|
4757
|
+
const o = new URL(`${l}/v2/player/${i}/balance`), u = new Headers();
|
|
4758
|
+
u.append("X-SessionID", a), fetch(o, { method: "GET", headers: u }).then((c) => c.json()).then((c) => {
|
|
4759
|
+
c[T] || n(7, T = de[0]);
|
|
4760
|
+
const v = c.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
|
|
4761
|
+
if (re = v.currency, xe = !!v.productType, n(3, E.Total = [{ amount: 0 }], E), n(3, E.Real = [], E), n(3, E.Bonus = [], E), n(3, E.Credit = [], E), !xe) {
|
|
4762
|
+
ie = {
|
|
4767
4763
|
lastOrdinaryAfterAmount: 0,
|
|
4768
4764
|
showCreditLineAfterAmount: !1
|
|
4769
|
-
}, n(3,
|
|
4770
|
-
for (const
|
|
4771
|
-
switch (
|
|
4765
|
+
}, n(3, E.Total[0].amount = c[T][re], E);
|
|
4766
|
+
for (const y of c.items)
|
|
4767
|
+
switch (y.type) {
|
|
4772
4768
|
case "Bonus":
|
|
4773
|
-
|
|
4769
|
+
E.Bonus.length === 0 ? E.Bonus.push({ amount: y.amount }) : n(3, E.Bonus[0].amount += y.amount, E);
|
|
4774
4770
|
break;
|
|
4775
4771
|
case "Real":
|
|
4776
|
-
if (
|
|
4772
|
+
if (y.creditLine && E.Credit.length === 0 && E.Credit.push({ amount: y.creditLine }), T === "totalRealAmount")
|
|
4777
4773
|
continue;
|
|
4778
|
-
|
|
4774
|
+
E.Real.length === 0 ? E.Real.push({ amount: y.amount }) : n(3, E.Real[0].amount += y.amount, E);
|
|
4779
4775
|
break;
|
|
4780
4776
|
}
|
|
4781
|
-
for (const [
|
|
4782
|
-
|
|
4783
|
-
n(1,
|
|
4777
|
+
for (const [y, A] of Object.entries(E))
|
|
4778
|
+
A.length < 1 && delete E[y];
|
|
4779
|
+
n(1, O = !1);
|
|
4784
4780
|
return;
|
|
4785
4781
|
}
|
|
4786
|
-
|
|
4782
|
+
ie = {
|
|
4787
4783
|
Casino: {
|
|
4788
4784
|
lastOrdinaryAfterAmount: 0,
|
|
4789
4785
|
showCreditLineAfterAmount: !1
|
|
@@ -4793,195 +4789,195 @@ function To(e, t, n) {
|
|
|
4793
4789
|
showCreditLineAfterAmount: !1
|
|
4794
4790
|
}
|
|
4795
4791
|
};
|
|
4796
|
-
let
|
|
4797
|
-
x && x !== "All" && (
|
|
4798
|
-
for (const
|
|
4799
|
-
let
|
|
4800
|
-
switch (
|
|
4792
|
+
let b = c.items;
|
|
4793
|
+
x && x !== "All" && (b = c.items.filter((y) => y.productType === x));
|
|
4794
|
+
for (const y of b) {
|
|
4795
|
+
let A;
|
|
4796
|
+
switch (y.type) {
|
|
4801
4797
|
case "Bonus":
|
|
4802
|
-
|
|
4803
|
-
amount:
|
|
4804
|
-
productType:
|
|
4798
|
+
A = E.Bonus.findIndex((w) => w.productType === y.productType), A > 0 ? n(3, E.Bonus[A].amount += y.amount, E) : E.Bonus.push({
|
|
4799
|
+
amount: y.amount,
|
|
4800
|
+
productType: y.productType
|
|
4805
4801
|
});
|
|
4806
4802
|
break;
|
|
4807
4803
|
case "Real":
|
|
4808
|
-
|
|
4809
|
-
amount:
|
|
4810
|
-
productType:
|
|
4811
|
-
}),
|
|
4812
|
-
amount:
|
|
4813
|
-
productType:
|
|
4804
|
+
y.creditLine && E.Credit.push({
|
|
4805
|
+
amount: y.creditLine,
|
|
4806
|
+
productType: y.productType
|
|
4807
|
+
}), A = E.Real.findIndex((w) => w.productType === y.productType), A > 0 ? n(3, E.Real[A].amount += y.amount, E) : E.Real.push({
|
|
4808
|
+
amount: y.amount,
|
|
4809
|
+
productType: y.productType
|
|
4814
4810
|
});
|
|
4815
4811
|
break;
|
|
4816
4812
|
}
|
|
4817
4813
|
}
|
|
4818
|
-
|
|
4819
|
-
for (const [
|
|
4820
|
-
|
|
4821
|
-
n(1,
|
|
4814
|
+
rt();
|
|
4815
|
+
for (const [y, A] of Object.entries(E))
|
|
4816
|
+
A.length < 1 && delete E[y];
|
|
4817
|
+
n(1, O = !1);
|
|
4822
4818
|
}).catch(() => {
|
|
4823
|
-
throw n(1,
|
|
4819
|
+
throw n(1, O = !1), new Error("Failed to fetch balance data !");
|
|
4824
4820
|
});
|
|
4825
|
-
},
|
|
4826
|
-
if (fe && fe.close(),
|
|
4821
|
+
}, Se = () => {
|
|
4822
|
+
if (fe && fe.close(), a.length < 1)
|
|
4827
4823
|
return;
|
|
4828
|
-
let
|
|
4829
|
-
switch (
|
|
4824
|
+
let o, u;
|
|
4825
|
+
switch (g) {
|
|
4830
4826
|
case "gm16":
|
|
4831
|
-
|
|
4827
|
+
o = new URL(`${l}/v2/player/${i}/information/updates`), u = (v) => xt(v);
|
|
4832
4828
|
break;
|
|
4833
4829
|
case "gmcore":
|
|
4834
|
-
|
|
4830
|
+
o = new URL(`${l}/v1/player/${i}/balance/updates`), u = (v) => Xe(v);
|
|
4835
4831
|
break;
|
|
4836
4832
|
}
|
|
4837
|
-
const
|
|
4833
|
+
const f = {
|
|
4838
4834
|
accept: "text/event-stream",
|
|
4839
|
-
"X-SessionId":
|
|
4840
|
-
},
|
|
4841
|
-
fe =
|
|
4842
|
-
},
|
|
4843
|
-
let
|
|
4835
|
+
"X-SessionId": a
|
|
4836
|
+
}, c = new bo.EventSourcePolyfill(o, { headers: f });
|
|
4837
|
+
fe = c, c.addEventListener("message", u);
|
|
4838
|
+
}, se = (o) => {
|
|
4839
|
+
let u;
|
|
4844
4840
|
try {
|
|
4845
|
-
|
|
4846
|
-
} catch (
|
|
4847
|
-
console.log("Balance stream failed: ",
|
|
4841
|
+
u = JSON.parse(o);
|
|
4842
|
+
} catch (f) {
|
|
4843
|
+
console.log("Balance stream failed: ", f);
|
|
4848
4844
|
return;
|
|
4849
4845
|
}
|
|
4850
|
-
return
|
|
4851
|
-
},
|
|
4852
|
-
const
|
|
4853
|
-
if (!
|
|
4854
|
-
|
|
4846
|
+
return u;
|
|
4847
|
+
}, Xe = (o) => {
|
|
4848
|
+
const u = se(o.data);
|
|
4849
|
+
if (!u) {
|
|
4850
|
+
Se();
|
|
4855
4851
|
return;
|
|
4856
4852
|
}
|
|
4857
|
-
let
|
|
4858
|
-
const
|
|
4859
|
-
|
|
4860
|
-
...
|
|
4861
|
-
balanceAmount:
|
|
4862
|
-
}),
|
|
4863
|
-
},
|
|
4864
|
-
let
|
|
4865
|
-
switch (
|
|
4853
|
+
let f = "0";
|
|
4854
|
+
const c = u.balanceChange;
|
|
4855
|
+
ae = ae.map((v) => (c && c[v.id] && (v = {
|
|
4856
|
+
...v,
|
|
4857
|
+
balanceAmount: c[v.id].afterAmount
|
|
4858
|
+
}), f = (parseFloat(v?.balanceAmount) + parseFloat(f)).toString(), v)), n(3, E.Real = [{ amount: ae[0]?.balanceAmount }], E), n(3, E.Bonus = [{ amount: ae[1]?.balanceAmount }], E), n(3, E.Total = [{ amount: Number(f) }], E);
|
|
4859
|
+
}, He = (o, u, f) => {
|
|
4860
|
+
let c = null;
|
|
4861
|
+
switch (f.walletAccountType) {
|
|
4866
4862
|
case "Ordinary":
|
|
4867
|
-
(
|
|
4863
|
+
(f.afterAmount !== f.affectedAmount || u.lastOrdinaryAfterAmount === 0) && (u.lastOrdinaryAfterAmount = f.afterAmount, u.showCreditLineAfterAmount || (c = f.afterAmount));
|
|
4868
4864
|
break;
|
|
4869
4865
|
case "CreditLine":
|
|
4870
|
-
|
|
4866
|
+
f.afterAmount !== 0 ? (c = f.afterAmount, u.showCreditLineAfterAmount = !0) : (c = u.lastOrdinaryAfterAmount, u.showCreditLineAfterAmount = !1);
|
|
4871
4867
|
break;
|
|
4872
4868
|
default:
|
|
4873
|
-
|
|
4869
|
+
c = f.afterAmount;
|
|
4874
4870
|
}
|
|
4875
|
-
return
|
|
4876
|
-
},
|
|
4871
|
+
return c === null ? o : c;
|
|
4872
|
+
}, rt = () => {
|
|
4877
4873
|
switch (T) {
|
|
4878
4874
|
case "totalCashAmount":
|
|
4879
|
-
let
|
|
4880
|
-
for (const
|
|
4881
|
-
for (const
|
|
4882
|
-
|
|
4883
|
-
n(3,
|
|
4875
|
+
let o = 0;
|
|
4876
|
+
for (const f of ["Real", "Bonus"])
|
|
4877
|
+
for (const c of E[f])
|
|
4878
|
+
o += Math.max(c.amount, 0);
|
|
4879
|
+
n(3, E.Total[0].amount = o, E);
|
|
4884
4880
|
break;
|
|
4885
4881
|
case "totalRealAmount":
|
|
4886
|
-
if (!
|
|
4882
|
+
if (!xe)
|
|
4887
4883
|
return;
|
|
4888
|
-
let
|
|
4889
|
-
for (const
|
|
4890
|
-
|
|
4891
|
-
n(3,
|
|
4884
|
+
let u = 0;
|
|
4885
|
+
for (const f of E.Real)
|
|
4886
|
+
u += f.amount;
|
|
4887
|
+
n(3, E.Total[0].amount = u, E);
|
|
4892
4888
|
}
|
|
4893
|
-
},
|
|
4894
|
-
const
|
|
4895
|
-
if (!
|
|
4896
|
-
|
|
4889
|
+
}, xt = (o) => {
|
|
4890
|
+
const u = se(o.data);
|
|
4891
|
+
if (!u) {
|
|
4892
|
+
Se();
|
|
4897
4893
|
return;
|
|
4898
4894
|
}
|
|
4899
|
-
if (
|
|
4895
|
+
if (_t(u?.type) || u.type !== "BALANCE_UPDATE_V2")
|
|
4900
4896
|
return;
|
|
4901
|
-
const
|
|
4902
|
-
for (const [
|
|
4903
|
-
if (T === "totalRealAmount" &&
|
|
4904
|
-
for (const
|
|
4905
|
-
if (!
|
|
4906
|
-
|
|
4897
|
+
const f = u.body.balanceChange;
|
|
4898
|
+
for (const [c, v] of Object.entries(f))
|
|
4899
|
+
if (T === "totalRealAmount" && c === "Real" && !xe && n(3, E.Total[0].amount = He(E.Total[0].amount, ie, v), E), !!E[c])
|
|
4900
|
+
for (const b of E[c]) {
|
|
4901
|
+
if (!xe) {
|
|
4902
|
+
b.amount = c === "Real" ? He(b.amount, ie, v) : v.afterAmount;
|
|
4907
4903
|
continue;
|
|
4908
4904
|
}
|
|
4909
|
-
|
|
4905
|
+
v.productType === b.productType && (b.amount = c === "Real" ? He(b.amount, ie[b.productType], v) : v.afterAmount);
|
|
4910
4906
|
}
|
|
4911
|
-
|
|
4912
|
-
},
|
|
4913
|
-
n(2,
|
|
4914
|
-
},
|
|
4915
|
-
|
|
4916
|
-
},
|
|
4917
|
-
switch (
|
|
4907
|
+
rt();
|
|
4908
|
+
}, it = () => {
|
|
4909
|
+
n(2, Y = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
4910
|
+
}, _t = (o) => o === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, ze = () => {
|
|
4911
|
+
de.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${de}. Using default value ('${de[0]}').`), n(7, T = de[0]));
|
|
4912
|
+
}, We = () => {
|
|
4913
|
+
switch (go(s), ze(), g) {
|
|
4918
4914
|
case "gmcore":
|
|
4919
|
-
|
|
4915
|
+
_e();
|
|
4920
4916
|
break;
|
|
4921
4917
|
case "gm16":
|
|
4922
|
-
|
|
4918
|
+
Be();
|
|
4923
4919
|
break;
|
|
4924
4920
|
default:
|
|
4925
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
4921
|
+
throw Error(`Invalid apiversion attribute: ${g}`);
|
|
4926
4922
|
}
|
|
4927
|
-
},
|
|
4928
|
-
hr(() => (window.addEventListener("message",
|
|
4929
|
-
window.removeEventListener("message",
|
|
4923
|
+
}, pe = (o) => o.data && o.data.type === "LogoutSuccessfull" && fe.close();
|
|
4924
|
+
hr(() => (window.addEventListener("message", pe, !1), () => {
|
|
4925
|
+
window.emMessageBus && G && G.unsubscribe(), window.removeEventListener("message", pe), fe && fe.close();
|
|
4930
4926
|
}));
|
|
4931
|
-
const
|
|
4932
|
-
function
|
|
4933
|
-
|
|
4934
|
-
|
|
4927
|
+
const K = () => n(2, Y = !0), Tt = () => n(2, Y = !1), Bt = () => it(), St = () => n(2, Y = !1);
|
|
4928
|
+
function ot(o) {
|
|
4929
|
+
Pt[o ? "unshift" : "push"](() => {
|
|
4930
|
+
S = o, n(0, S);
|
|
4935
4931
|
});
|
|
4936
4932
|
}
|
|
4937
|
-
return e.$$set = (
|
|
4938
|
-
"userid" in
|
|
4933
|
+
return e.$$set = (o) => {
|
|
4934
|
+
"userid" in o && n(8, i = o.userid), "session" in o && n(9, a = o.session), "endpoint" in o && n(10, l = o.endpoint), "lang" in o && n(11, s = o.lang), "mbsource" in o && n(12, p = o.mbsource), "clientstyling" in o && n(13, h = o.clientstyling), "clientstylingurl" in o && n(14, d = o.clientstylingurl), "translationurl" in o && n(15, m = o.translationurl), "gmversion" in o && n(16, g = o.gmversion), "displaybalanceoption" in o && n(17, x = o.displaybalanceoption), "totalcalculationmode" in o && n(7, T = o.totalcalculationmode), "currencylocale" in o && n(18, P = o.currencylocale), "currencydisplay" in o && n(19, $ = o.currencydisplay), "maximumfractiondigits" in o && n(20, X = o.maximumfractiondigits), "minimumfractiondigits" in o && n(21, F = o.minimumfractiondigits), "customdisplayformat" in o && n(22, B = o.customdisplayformat);
|
|
4939
4935
|
}, e.$$.update = () => {
|
|
4940
4936
|
e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
4941
|
-
200448 &&
|
|
4942
|
-
67328 &&
|
|
4943
|
-
8193 && h &&
|
|
4944
|
-
16385 &&
|
|
4945
|
-
4097 &&
|
|
4946
|
-
32768 &&
|
|
4937
|
+
200448 && l && i && a && s && g && x && We(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
4938
|
+
67328 && l && i && a && g && Se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4939
|
+
8193 && h && S && Br(S, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4940
|
+
16385 && d && S && Sr(S, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4941
|
+
4097 && S && wr(S, `${p}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4942
|
+
32768 && m && nt();
|
|
4947
4943
|
}, [
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4944
|
+
S,
|
|
4945
|
+
O,
|
|
4946
|
+
Y,
|
|
4947
|
+
E,
|
|
4952
4948
|
r,
|
|
4949
|
+
Ve,
|
|
4953
4950
|
it,
|
|
4954
|
-
ot,
|
|
4955
4951
|
T,
|
|
4956
4952
|
i,
|
|
4957
|
-
|
|
4958
|
-
|
|
4953
|
+
a,
|
|
4954
|
+
l,
|
|
4959
4955
|
s,
|
|
4960
|
-
|
|
4956
|
+
p,
|
|
4961
4957
|
h,
|
|
4962
|
-
|
|
4958
|
+
d,
|
|
4959
|
+
m,
|
|
4963
4960
|
g,
|
|
4964
|
-
y,
|
|
4965
4961
|
x,
|
|
4966
4962
|
P,
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4963
|
+
$,
|
|
4964
|
+
X,
|
|
4965
|
+
F,
|
|
4970
4966
|
B,
|
|
4971
|
-
|
|
4972
|
-
|
|
4967
|
+
K,
|
|
4968
|
+
Tt,
|
|
4969
|
+
Bt,
|
|
4973
4970
|
St,
|
|
4974
|
-
|
|
4975
|
-
At
|
|
4971
|
+
ot
|
|
4976
4972
|
];
|
|
4977
4973
|
}
|
|
4978
|
-
class
|
|
4974
|
+
class To extends _r {
|
|
4979
4975
|
constructor(t) {
|
|
4980
4976
|
super(), Er(
|
|
4981
4977
|
this,
|
|
4982
4978
|
t,
|
|
4983
|
-
To,
|
|
4984
4979
|
_o,
|
|
4980
|
+
xo,
|
|
4985
4981
|
Sn,
|
|
4986
4982
|
{
|
|
4987
4983
|
userid: 8,
|
|
@@ -5001,7 +4997,7 @@ class Bo extends _r {
|
|
|
5001
4997
|
minimumfractiondigits: 21,
|
|
5002
4998
|
customdisplayformat: 22
|
|
5003
4999
|
},
|
|
5004
|
-
|
|
5000
|
+
yo,
|
|
5005
5001
|
[-1, -1]
|
|
5006
5002
|
);
|
|
5007
5003
|
}
|
|
@@ -5009,100 +5005,100 @@ class Bo extends _r {
|
|
|
5009
5005
|
return this.$$.ctx[8];
|
|
5010
5006
|
}
|
|
5011
5007
|
set userid(t) {
|
|
5012
|
-
this.$$set({ userid: t }),
|
|
5008
|
+
this.$$set({ userid: t }), V();
|
|
5013
5009
|
}
|
|
5014
5010
|
get session() {
|
|
5015
5011
|
return this.$$.ctx[9];
|
|
5016
5012
|
}
|
|
5017
5013
|
set session(t) {
|
|
5018
|
-
this.$$set({ session: t }),
|
|
5014
|
+
this.$$set({ session: t }), V();
|
|
5019
5015
|
}
|
|
5020
5016
|
get endpoint() {
|
|
5021
5017
|
return this.$$.ctx[10];
|
|
5022
5018
|
}
|
|
5023
5019
|
set endpoint(t) {
|
|
5024
|
-
this.$$set({ endpoint: t }),
|
|
5020
|
+
this.$$set({ endpoint: t }), V();
|
|
5025
5021
|
}
|
|
5026
5022
|
get lang() {
|
|
5027
5023
|
return this.$$.ctx[11];
|
|
5028
5024
|
}
|
|
5029
5025
|
set lang(t) {
|
|
5030
|
-
this.$$set({ lang: t }),
|
|
5026
|
+
this.$$set({ lang: t }), V();
|
|
5031
5027
|
}
|
|
5032
5028
|
get mbsource() {
|
|
5033
5029
|
return this.$$.ctx[12];
|
|
5034
5030
|
}
|
|
5035
5031
|
set mbsource(t) {
|
|
5036
|
-
this.$$set({ mbsource: t }),
|
|
5032
|
+
this.$$set({ mbsource: t }), V();
|
|
5037
5033
|
}
|
|
5038
5034
|
get clientstyling() {
|
|
5039
5035
|
return this.$$.ctx[13];
|
|
5040
5036
|
}
|
|
5041
5037
|
set clientstyling(t) {
|
|
5042
|
-
this.$$set({ clientstyling: t }),
|
|
5038
|
+
this.$$set({ clientstyling: t }), V();
|
|
5043
5039
|
}
|
|
5044
5040
|
get clientstylingurl() {
|
|
5045
5041
|
return this.$$.ctx[14];
|
|
5046
5042
|
}
|
|
5047
5043
|
set clientstylingurl(t) {
|
|
5048
|
-
this.$$set({ clientstylingurl: t }),
|
|
5044
|
+
this.$$set({ clientstylingurl: t }), V();
|
|
5049
5045
|
}
|
|
5050
5046
|
get translationurl() {
|
|
5051
5047
|
return this.$$.ctx[15];
|
|
5052
5048
|
}
|
|
5053
5049
|
set translationurl(t) {
|
|
5054
|
-
this.$$set({ translationurl: t }),
|
|
5050
|
+
this.$$set({ translationurl: t }), V();
|
|
5055
5051
|
}
|
|
5056
5052
|
get gmversion() {
|
|
5057
5053
|
return this.$$.ctx[16];
|
|
5058
5054
|
}
|
|
5059
5055
|
set gmversion(t) {
|
|
5060
|
-
this.$$set({ gmversion: t }),
|
|
5056
|
+
this.$$set({ gmversion: t }), V();
|
|
5061
5057
|
}
|
|
5062
5058
|
get displaybalanceoption() {
|
|
5063
5059
|
return this.$$.ctx[17];
|
|
5064
5060
|
}
|
|
5065
5061
|
set displaybalanceoption(t) {
|
|
5066
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5062
|
+
this.$$set({ displaybalanceoption: t }), V();
|
|
5067
5063
|
}
|
|
5068
5064
|
get totalcalculationmode() {
|
|
5069
5065
|
return this.$$.ctx[7];
|
|
5070
5066
|
}
|
|
5071
5067
|
set totalcalculationmode(t) {
|
|
5072
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5068
|
+
this.$$set({ totalcalculationmode: t }), V();
|
|
5073
5069
|
}
|
|
5074
5070
|
get currencylocale() {
|
|
5075
5071
|
return this.$$.ctx[18];
|
|
5076
5072
|
}
|
|
5077
5073
|
set currencylocale(t) {
|
|
5078
|
-
this.$$set({ currencylocale: t }),
|
|
5074
|
+
this.$$set({ currencylocale: t }), V();
|
|
5079
5075
|
}
|
|
5080
5076
|
get currencydisplay() {
|
|
5081
5077
|
return this.$$.ctx[19];
|
|
5082
5078
|
}
|
|
5083
5079
|
set currencydisplay(t) {
|
|
5084
|
-
this.$$set({ currencydisplay: t }),
|
|
5080
|
+
this.$$set({ currencydisplay: t }), V();
|
|
5085
5081
|
}
|
|
5086
5082
|
get maximumfractiondigits() {
|
|
5087
5083
|
return this.$$.ctx[20];
|
|
5088
5084
|
}
|
|
5089
5085
|
set maximumfractiondigits(t) {
|
|
5090
|
-
this.$$set({ maximumfractiondigits: t }),
|
|
5086
|
+
this.$$set({ maximumfractiondigits: t }), V();
|
|
5091
5087
|
}
|
|
5092
5088
|
get minimumfractiondigits() {
|
|
5093
5089
|
return this.$$.ctx[21];
|
|
5094
5090
|
}
|
|
5095
5091
|
set minimumfractiondigits(t) {
|
|
5096
|
-
this.$$set({ minimumfractiondigits: t }),
|
|
5092
|
+
this.$$set({ minimumfractiondigits: t }), V();
|
|
5097
5093
|
}
|
|
5098
5094
|
get customdisplayformat() {
|
|
5099
5095
|
return this.$$.ctx[22];
|
|
5100
5096
|
}
|
|
5101
5097
|
set customdisplayformat(t) {
|
|
5102
|
-
this.$$set({ customdisplayformat: t }),
|
|
5098
|
+
this.$$set({ customdisplayformat: t }), V();
|
|
5103
5099
|
}
|
|
5104
5100
|
}
|
|
5105
|
-
xr(
|
|
5101
|
+
xr(To, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
|
|
5106
5102
|
export {
|
|
5107
|
-
|
|
5103
|
+
To as P
|
|
5108
5104
|
};
|