@everymatrix/player-account-balance-modal-nd 1.54.12 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountBalanceModalNd-B0yfSLU3.cjs +15 -0
- package/components/{PlayerAccountBalanceModalNd-BHCiKY4G.js → PlayerAccountBalanceModalNd-Bmecg9Hv.js} +1206 -1187
- package/components/{PlayerAccountBalanceModalNd-BAeICRDi.js → PlayerAccountBalanceModalNd-DhxTyQKU.js} +1247 -1228
- package/es2015/player-account-balance-modal-nd.cjs +1 -1
- package/es2015/player-account-balance-modal-nd.js +1 -1
- package/esnext/player-account-balance-modal-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-DpL_C3Ey.cjs +0 -15
|
@@ -14,18 +14,18 @@ var se = (e, t, n) => Rt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
|
14
14
|
var Nt = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(n.next(c));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, l = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(n.throw(c));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, l);
|
|
28
|
+
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function le() {
|
|
31
31
|
}
|
|
@@ -35,7 +35,7 @@ function Ln(e) {
|
|
|
35
35
|
function ln() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ve(e) {
|
|
39
39
|
e.forEach(Ln);
|
|
40
40
|
}
|
|
41
41
|
function tn(e) {
|
|
@@ -65,7 +65,7 @@ function C(e, t) {
|
|
|
65
65
|
function br(e, t, n) {
|
|
66
66
|
const r = yr(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
|
-
const i =
|
|
68
|
+
const i = k("style");
|
|
69
69
|
i.id = t, i.textContent = n, vr(r, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -88,38 +88,38 @@ function vr(e, t) {
|
|
|
88
88
|
function ge(e, t, n) {
|
|
89
89
|
e.insertBefore(t, n || null);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function de(e) {
|
|
92
92
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
93
|
}
|
|
94
94
|
function In(e, t) {
|
|
95
95
|
for (let n = 0; n < e.length; n += 1)
|
|
96
96
|
e[n] && e[n].d(t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function k(e) {
|
|
99
99
|
return document.createElement(e);
|
|
100
100
|
}
|
|
101
101
|
function un(e) {
|
|
102
102
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function fe(e) {
|
|
105
105
|
return document.createTextNode(e);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
return
|
|
107
|
+
function pe() {
|
|
108
|
+
return fe(" ");
|
|
109
109
|
}
|
|
110
110
|
function Er() {
|
|
111
|
-
return
|
|
111
|
+
return fe("");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function mt(e, t, n, r) {
|
|
114
114
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function N(e, t, n) {
|
|
117
117
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
118
118
|
}
|
|
119
119
|
function xr(e) {
|
|
120
120
|
return Array.from(e.childNodes);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function xe(e, t) {
|
|
123
123
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
124
124
|
t);
|
|
125
125
|
}
|
|
@@ -132,88 +132,88 @@ function _r(e) {
|
|
|
132
132
|
}
|
|
133
133
|
), t;
|
|
134
134
|
}
|
|
135
|
-
let
|
|
136
|
-
function
|
|
137
|
-
|
|
135
|
+
let tt;
|
|
136
|
+
function et(e) {
|
|
137
|
+
tt = e;
|
|
138
138
|
}
|
|
139
139
|
function Br() {
|
|
140
|
-
if (!
|
|
141
|
-
return
|
|
140
|
+
if (!tt) throw new Error("Function called outside component initialization");
|
|
141
|
+
return tt;
|
|
142
142
|
}
|
|
143
143
|
function Tr(e) {
|
|
144
144
|
Br().$$.on_mount.push(e);
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
let
|
|
146
|
+
const Ue = [], jt = [];
|
|
147
|
+
let Fe = [];
|
|
148
148
|
const cn = [], wr = /* @__PURE__ */ Promise.resolve();
|
|
149
149
|
let kt = !1;
|
|
150
150
|
function Sr() {
|
|
151
|
-
kt || (kt = !0, wr.then(
|
|
151
|
+
kt || (kt = !0, wr.then(J));
|
|
152
152
|
}
|
|
153
153
|
function Vt(e) {
|
|
154
|
-
|
|
154
|
+
Fe.push(e);
|
|
155
155
|
}
|
|
156
156
|
const It = /* @__PURE__ */ new Set();
|
|
157
|
-
let
|
|
158
|
-
function
|
|
159
|
-
if (
|
|
157
|
+
let Pe = 0;
|
|
158
|
+
function J() {
|
|
159
|
+
if (Pe !== 0)
|
|
160
160
|
return;
|
|
161
|
-
const e =
|
|
161
|
+
const e = tt;
|
|
162
162
|
do {
|
|
163
163
|
try {
|
|
164
|
-
for (;
|
|
165
|
-
const t = Pe
|
|
166
|
-
|
|
164
|
+
for (; Pe < Ue.length; ) {
|
|
165
|
+
const t = Ue[Pe];
|
|
166
|
+
Pe++, et(t), Ar(t.$$);
|
|
167
167
|
}
|
|
168
168
|
} catch (t) {
|
|
169
|
-
throw
|
|
169
|
+
throw Ue.length = 0, Pe = 0, t;
|
|
170
170
|
}
|
|
171
|
-
for (
|
|
172
|
-
for (let t = 0; t <
|
|
173
|
-
const n =
|
|
171
|
+
for (et(null), Ue.length = 0, Pe = 0; jt.length; ) jt.pop()();
|
|
172
|
+
for (let t = 0; t < Fe.length; t += 1) {
|
|
173
|
+
const n = Fe[t];
|
|
174
174
|
It.has(n) || (It.add(n), n());
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
} while (
|
|
176
|
+
Fe.length = 0;
|
|
177
|
+
} while (Ue.length);
|
|
178
178
|
for (; cn.length; )
|
|
179
179
|
cn.pop()();
|
|
180
|
-
kt = !1, It.clear(),
|
|
180
|
+
kt = !1, It.clear(), et(e);
|
|
181
181
|
}
|
|
182
182
|
function Ar(e) {
|
|
183
183
|
if (e.fragment !== null) {
|
|
184
|
-
e.update(),
|
|
184
|
+
e.update(), Ve(e.before_update);
|
|
185
185
|
const t = e.dirty;
|
|
186
186
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Vt);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
function Cr(e) {
|
|
190
190
|
const t = [], n = [];
|
|
191
|
-
|
|
191
|
+
Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
|
|
192
192
|
}
|
|
193
193
|
const Hr = /* @__PURE__ */ new Set();
|
|
194
194
|
function Or(e, t) {
|
|
195
195
|
e && e.i && (Hr.delete(e), e.i(t));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function gt(e) {
|
|
198
198
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
199
199
|
}
|
|
200
200
|
function Rr(e, t, n) {
|
|
201
201
|
const { fragment: r, after_update: i } = e.$$;
|
|
202
202
|
r && r.m(t, n), Vt(() => {
|
|
203
203
|
const o = e.$$.on_mount.map(Ln).filter(tn);
|
|
204
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
204
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ve(o), e.$$.on_mount = [];
|
|
205
205
|
}), i.forEach(Vt);
|
|
206
206
|
}
|
|
207
207
|
function Lr(e, t) {
|
|
208
208
|
const n = e.$$;
|
|
209
|
-
n.fragment !== null && (Cr(n.after_update),
|
|
209
|
+
n.fragment !== null && (Cr(n.after_update), Ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
210
210
|
}
|
|
211
211
|
function Mr(e, t) {
|
|
212
|
-
e.$$.dirty[0] === -1 && (
|
|
212
|
+
e.$$.dirty[0] === -1 && (Ue.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
213
213
|
}
|
|
214
|
-
function Nr(e, t, n, r, i, o, l = null,
|
|
215
|
-
const c =
|
|
216
|
-
|
|
214
|
+
function Nr(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
215
|
+
const c = tt;
|
|
216
|
+
et(e);
|
|
217
217
|
const u = e.$$ = {
|
|
218
218
|
fragment: null,
|
|
219
219
|
ctx: [],
|
|
@@ -231,24 +231,24 @@ function Nr(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
|
231
231
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
232
232
|
// everything else
|
|
233
233
|
callbacks: ln(),
|
|
234
|
-
dirty:
|
|
234
|
+
dirty: s,
|
|
235
235
|
skip_bound: !1,
|
|
236
236
|
root: t.target || c.$$.root
|
|
237
237
|
};
|
|
238
238
|
l && l(u.root);
|
|
239
239
|
let d = !1;
|
|
240
|
-
if (u.ctx = n ? n(e, t.props || {}, (
|
|
241
|
-
const
|
|
242
|
-
return u.ctx && i(u.ctx[
|
|
243
|
-
}) : [], u.update(), d = !0,
|
|
240
|
+
if (u.ctx = n ? n(e, t.props || {}, (g, b, ..._) => {
|
|
241
|
+
const B = _.length ? _[0] : b;
|
|
242
|
+
return u.ctx && i(u.ctx[g], u.ctx[g] = B) && (!u.skip_bound && u.bound[g] && u.bound[g](B), d && Mr(e, g)), b;
|
|
243
|
+
}) : [], u.update(), d = !0, Ve(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
244
244
|
if (t.hydrate) {
|
|
245
|
-
const
|
|
246
|
-
u.fragment && u.fragment.l(
|
|
245
|
+
const g = xr(t.target);
|
|
246
|
+
u.fragment && u.fragment.l(g), g.forEach(de);
|
|
247
247
|
} else
|
|
248
248
|
u.fragment && u.fragment.c();
|
|
249
|
-
t.intro && Or(e.$$.fragment), Rr(e, t.target, t.anchor),
|
|
249
|
+
t.intro && Or(e.$$.fragment), Rr(e, t.target, t.anchor), J();
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
et(c);
|
|
252
252
|
}
|
|
253
253
|
let Pn;
|
|
254
254
|
typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
@@ -295,7 +295,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
295
295
|
let l;
|
|
296
296
|
return {
|
|
297
297
|
c: function() {
|
|
298
|
-
l =
|
|
298
|
+
l = k("slot"), o !== "default" && N(l, "name", o);
|
|
299
299
|
},
|
|
300
300
|
/**
|
|
301
301
|
* @param {HTMLElement} target
|
|
@@ -305,7 +305,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
305
305
|
ge(u, l, d);
|
|
306
306
|
},
|
|
307
307
|
d: function(u) {
|
|
308
|
-
u &&
|
|
308
|
+
u && de(l);
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
311
|
};
|
|
@@ -317,7 +317,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
317
317
|
o in r && (n[o] = [t(o)]);
|
|
318
318
|
for (const o of this.attributes) {
|
|
319
319
|
const l = this.$$g_p(o.name);
|
|
320
|
-
l in this.$$d || (this.$$d[l] =
|
|
320
|
+
l in this.$$d || (this.$$d[l] = ht(l, o.value, this.$$p_d, "toProp"));
|
|
321
321
|
}
|
|
322
322
|
for (const o in this.$$p_d)
|
|
323
323
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -334,7 +334,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
334
334
|
this.$$r = !0;
|
|
335
335
|
for (const o in this.$$p_d)
|
|
336
336
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
337
|
-
const l =
|
|
337
|
+
const l = ht(
|
|
338
338
|
o,
|
|
339
339
|
this.$$d[o],
|
|
340
340
|
this.$$p_d,
|
|
@@ -347,8 +347,8 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
347
347
|
this.$$c.$$.after_update.push(i), i();
|
|
348
348
|
for (const o in this.$$l)
|
|
349
349
|
for (const l of this.$$l[o]) {
|
|
350
|
-
const
|
|
351
|
-
this.$$l_u.set(l,
|
|
350
|
+
const s = this.$$c.$on(o, l);
|
|
351
|
+
this.$$l_u.set(l, s);
|
|
352
352
|
}
|
|
353
353
|
this.$$l = {};
|
|
354
354
|
}
|
|
@@ -358,7 +358,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
358
358
|
// and setting attributes through setAttribute etc, this is helpful
|
|
359
359
|
attributeChangedCallback(t, n, r) {
|
|
360
360
|
var i;
|
|
361
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
361
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ht(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
362
362
|
}
|
|
363
363
|
disconnectedCallback() {
|
|
364
364
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
371
371
|
) || t;
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
|
-
function
|
|
374
|
+
function ht(e, t, n, r) {
|
|
375
375
|
var o;
|
|
376
376
|
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
377
377
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -408,25 +408,25 @@ function Ir(e, t, n, r, i, o) {
|
|
|
408
408
|
}
|
|
409
409
|
static get observedAttributes() {
|
|
410
410
|
return Object.keys(t).map(
|
|
411
|
-
(
|
|
411
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
412
412
|
);
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
|
-
return Object.keys(t).forEach((
|
|
416
|
-
Object.defineProperty(l.prototype,
|
|
415
|
+
return Object.keys(t).forEach((s) => {
|
|
416
|
+
Object.defineProperty(l.prototype, s, {
|
|
417
417
|
get() {
|
|
418
|
-
return this.$$c &&
|
|
418
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
419
419
|
},
|
|
420
420
|
set(c) {
|
|
421
421
|
var u;
|
|
422
|
-
c =
|
|
422
|
+
c = ht(s, c, t), this.$$d[s] = c, (u = this.$$c) == null || u.$set({ [s]: c });
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
|
-
}), r.forEach((
|
|
426
|
-
Object.defineProperty(l.prototype,
|
|
425
|
+
}), r.forEach((s) => {
|
|
426
|
+
Object.defineProperty(l.prototype, s, {
|
|
427
427
|
get() {
|
|
428
428
|
var c;
|
|
429
|
-
return (c = this.$$c) == null ? void 0 : c[
|
|
429
|
+
return (c = this.$$c) == null ? void 0 : c[s];
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
432
|
}), e.element = /** @type {any} */
|
|
@@ -480,111 +480,134 @@ class Pr {
|
|
|
480
480
|
}
|
|
481
481
|
const Dr = "4";
|
|
482
482
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
|
|
483
|
-
const Ie = [];
|
|
484
483
|
function Ur(e, t) {
|
|
484
|
+
if (e) {
|
|
485
|
+
const n = document.createElement("style");
|
|
486
|
+
n.innerHTML = t, e.appendChild(n);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
function Fr(e, t) {
|
|
490
|
+
const n = new URL(t);
|
|
491
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
492
|
+
const i = document.createElement("style");
|
|
493
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
494
|
+
}).catch((r) => {
|
|
495
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
function Gr(e, t, n) {
|
|
499
|
+
if (window.emMessageBus) {
|
|
500
|
+
const r = document.createElement("style");
|
|
501
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
502
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
const De = [];
|
|
507
|
+
function $r(e, t) {
|
|
485
508
|
return {
|
|
486
|
-
subscribe:
|
|
509
|
+
subscribe: vt(e, t).subscribe
|
|
487
510
|
};
|
|
488
511
|
}
|
|
489
|
-
function
|
|
512
|
+
function vt(e, t = le) {
|
|
490
513
|
let n;
|
|
491
514
|
const r = /* @__PURE__ */ new Set();
|
|
492
|
-
function i(
|
|
493
|
-
if (Mn(e,
|
|
494
|
-
const c = !
|
|
515
|
+
function i(s) {
|
|
516
|
+
if (Mn(e, s) && (e = s, n)) {
|
|
517
|
+
const c = !De.length;
|
|
495
518
|
for (const u of r)
|
|
496
|
-
u[1](),
|
|
519
|
+
u[1](), De.push(u, e);
|
|
497
520
|
if (c) {
|
|
498
|
-
for (let u = 0; u <
|
|
499
|
-
|
|
500
|
-
|
|
521
|
+
for (let u = 0; u < De.length; u += 2)
|
|
522
|
+
De[u][0](De[u + 1]);
|
|
523
|
+
De.length = 0;
|
|
501
524
|
}
|
|
502
525
|
}
|
|
503
526
|
}
|
|
504
|
-
function o(
|
|
505
|
-
i(
|
|
527
|
+
function o(s) {
|
|
528
|
+
i(s(e));
|
|
506
529
|
}
|
|
507
|
-
function l(
|
|
508
|
-
const u = [
|
|
509
|
-
return r.add(u), r.size === 1 && (n = t(i, o) || le),
|
|
530
|
+
function l(s, c = le) {
|
|
531
|
+
const u = [s, c];
|
|
532
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || le), s(e), () => {
|
|
510
533
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
511
534
|
};
|
|
512
535
|
}
|
|
513
536
|
return { set: i, update: o, subscribe: l };
|
|
514
537
|
}
|
|
515
|
-
function
|
|
538
|
+
function Xe(e, t, n) {
|
|
516
539
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
517
540
|
if (!i.every(Boolean))
|
|
518
541
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
519
542
|
const o = t.length < 2;
|
|
520
|
-
return
|
|
543
|
+
return $r(n, (l, s) => {
|
|
521
544
|
let c = !1;
|
|
522
545
|
const u = [];
|
|
523
|
-
let d = 0,
|
|
524
|
-
const
|
|
546
|
+
let d = 0, g = le;
|
|
547
|
+
const b = () => {
|
|
525
548
|
if (d)
|
|
526
549
|
return;
|
|
527
|
-
|
|
528
|
-
const
|
|
529
|
-
o ? l(
|
|
530
|
-
},
|
|
531
|
-
(
|
|
532
|
-
|
|
533
|
-
(
|
|
534
|
-
u[
|
|
550
|
+
g();
|
|
551
|
+
const B = t(r ? u[0] : u, l, s);
|
|
552
|
+
o ? l(B) : g = tn(B) ? B : le;
|
|
553
|
+
}, _ = i.map(
|
|
554
|
+
(B, T) => Nn(
|
|
555
|
+
B,
|
|
556
|
+
(x) => {
|
|
557
|
+
u[T] = x, d &= ~(1 << T), c && b();
|
|
535
558
|
},
|
|
536
559
|
() => {
|
|
537
|
-
d |= 1 <<
|
|
560
|
+
d |= 1 << T;
|
|
538
561
|
}
|
|
539
562
|
)
|
|
540
563
|
);
|
|
541
|
-
return c = !0,
|
|
542
|
-
|
|
564
|
+
return c = !0, b(), function() {
|
|
565
|
+
Ve(_), g(), c = !1;
|
|
543
566
|
};
|
|
544
567
|
});
|
|
545
568
|
}
|
|
546
|
-
var
|
|
547
|
-
function
|
|
569
|
+
var jr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
570
|
+
function kr(e) {
|
|
548
571
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
549
572
|
}
|
|
550
|
-
var
|
|
551
|
-
return
|
|
573
|
+
var Vr = function(t) {
|
|
574
|
+
return Xr(t) && !zr(t);
|
|
552
575
|
};
|
|
553
|
-
function
|
|
576
|
+
function Xr(e) {
|
|
554
577
|
return !!e && typeof e == "object";
|
|
555
578
|
}
|
|
556
|
-
function
|
|
579
|
+
function zr(e) {
|
|
557
580
|
var t = Object.prototype.toString.call(e);
|
|
558
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
581
|
+
return t === "[object RegExp]" || t === "[object Date]" || qr(e);
|
|
559
582
|
}
|
|
560
|
-
var
|
|
561
|
-
function
|
|
562
|
-
return e.$$typeof ===
|
|
583
|
+
var Wr = typeof Symbol == "function" && Symbol.for, Zr = Wr ? Symbol.for("react.element") : 60103;
|
|
584
|
+
function qr(e) {
|
|
585
|
+
return e.$$typeof === Zr;
|
|
563
586
|
}
|
|
564
|
-
function
|
|
587
|
+
function Qr(e) {
|
|
565
588
|
return Array.isArray(e) ? [] : {};
|
|
566
589
|
}
|
|
567
|
-
function
|
|
568
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
590
|
+
function nt(e, t) {
|
|
591
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ge(Qr(e), e, t) : e;
|
|
569
592
|
}
|
|
570
|
-
function
|
|
593
|
+
function Jr(e, t, n) {
|
|
571
594
|
return e.concat(t).map(function(r) {
|
|
572
|
-
return
|
|
595
|
+
return nt(r, n);
|
|
573
596
|
});
|
|
574
597
|
}
|
|
575
|
-
function
|
|
598
|
+
function Yr(e, t) {
|
|
576
599
|
if (!t.customMerge)
|
|
577
|
-
return
|
|
600
|
+
return Ge;
|
|
578
601
|
var n = t.customMerge(e);
|
|
579
|
-
return typeof n == "function" ? n :
|
|
602
|
+
return typeof n == "function" ? n : Ge;
|
|
580
603
|
}
|
|
581
|
-
function
|
|
604
|
+
function Kr(e) {
|
|
582
605
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
583
606
|
return Object.propertyIsEnumerable.call(e, t);
|
|
584
607
|
}) : [];
|
|
585
608
|
}
|
|
586
609
|
function hn(e) {
|
|
587
|
-
return Object.keys(e).concat(
|
|
610
|
+
return Object.keys(e).concat(Kr(e));
|
|
588
611
|
}
|
|
589
612
|
function Dn(e, t) {
|
|
590
613
|
try {
|
|
@@ -593,31 +616,31 @@ function Dn(e, t) {
|
|
|
593
616
|
return !1;
|
|
594
617
|
}
|
|
595
618
|
}
|
|
596
|
-
function
|
|
619
|
+
function ei(e, t) {
|
|
597
620
|
return Dn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
598
621
|
}
|
|
599
|
-
function
|
|
622
|
+
function ti(e, t, n) {
|
|
600
623
|
var r = {};
|
|
601
624
|
return n.isMergeableObject(e) && hn(e).forEach(function(i) {
|
|
602
|
-
r[i] =
|
|
625
|
+
r[i] = nt(e[i], n);
|
|
603
626
|
}), hn(t).forEach(function(i) {
|
|
604
|
-
|
|
627
|
+
ei(e, i) || (Dn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Yr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
|
|
605
628
|
}), r;
|
|
606
629
|
}
|
|
607
|
-
function
|
|
608
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
630
|
+
function Ge(e, t, n) {
|
|
631
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Jr, n.isMergeableObject = n.isMergeableObject || Vr, n.cloneUnlessOtherwiseSpecified = nt;
|
|
609
632
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
610
|
-
return o ? r ? n.arrayMerge(e, t, n) :
|
|
633
|
+
return o ? r ? n.arrayMerge(e, t, n) : ti(e, t, n) : nt(t, n);
|
|
611
634
|
}
|
|
612
|
-
|
|
635
|
+
Ge.all = function(t, n) {
|
|
613
636
|
if (!Array.isArray(t))
|
|
614
637
|
throw new Error("first argument should be an array");
|
|
615
638
|
return t.reduce(function(r, i) {
|
|
616
|
-
return
|
|
639
|
+
return Ge(r, i, n);
|
|
617
640
|
}, {});
|
|
618
641
|
};
|
|
619
|
-
var
|
|
620
|
-
const
|
|
642
|
+
var ni = Ge, ri = ni;
|
|
643
|
+
const ii = /* @__PURE__ */ kr(ri);
|
|
621
644
|
var Xt = function(e, t) {
|
|
622
645
|
return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
623
646
|
n.__proto__ = r;
|
|
@@ -625,7 +648,7 @@ var Xt = function(e, t) {
|
|
|
625
648
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
626
649
|
}, Xt(e, t);
|
|
627
650
|
};
|
|
628
|
-
function
|
|
651
|
+
function Et(e, t) {
|
|
629
652
|
if (typeof t != "function" && t !== null)
|
|
630
653
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
631
654
|
Xt(e, t);
|
|
@@ -643,7 +666,7 @@ var I = function() {
|
|
|
643
666
|
return t;
|
|
644
667
|
}, I.apply(this, arguments);
|
|
645
668
|
};
|
|
646
|
-
function
|
|
669
|
+
function oi(e, t) {
|
|
647
670
|
var n = {};
|
|
648
671
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
649
672
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -657,17 +680,17 @@ function Pt(e, t, n) {
|
|
|
657
680
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
658
681
|
}
|
|
659
682
|
function Dt(e, t) {
|
|
660
|
-
var n = t && t.cache ? t.cache :
|
|
683
|
+
var n = t && t.cache ? t.cache : fi, r = t && t.serializer ? t.serializer : ci, i = t && t.strategy ? t.strategy : li;
|
|
661
684
|
return i(e, {
|
|
662
685
|
cache: n,
|
|
663
686
|
serializer: r
|
|
664
687
|
});
|
|
665
688
|
}
|
|
666
|
-
function
|
|
689
|
+
function ai(e) {
|
|
667
690
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
668
691
|
}
|
|
669
|
-
function
|
|
670
|
-
var i =
|
|
692
|
+
function si(e, t, n, r) {
|
|
693
|
+
var i = ai(r) ? r : n(r), o = t.get(i);
|
|
671
694
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
672
695
|
}
|
|
673
696
|
function Un(e, t, n) {
|
|
@@ -677,16 +700,16 @@ function Un(e, t, n) {
|
|
|
677
700
|
function Fn(e, t, n, r, i) {
|
|
678
701
|
return n.bind(t, e, r, i);
|
|
679
702
|
}
|
|
680
|
-
function
|
|
681
|
-
var n = e.length === 1 ?
|
|
703
|
+
function li(e, t) {
|
|
704
|
+
var n = e.length === 1 ? si : Un;
|
|
682
705
|
return Fn(e, this, n, t.cache.create(), t.serializer);
|
|
683
706
|
}
|
|
684
|
-
function
|
|
707
|
+
function ui(e, t) {
|
|
685
708
|
return Fn(e, this, Un, t.cache.create(), t.serializer);
|
|
686
709
|
}
|
|
687
|
-
var
|
|
710
|
+
var ci = function() {
|
|
688
711
|
return JSON.stringify(arguments);
|
|
689
|
-
},
|
|
712
|
+
}, hi = (
|
|
690
713
|
/** @class */
|
|
691
714
|
function() {
|
|
692
715
|
function e() {
|
|
@@ -698,61 +721,61 @@ var si = function() {
|
|
|
698
721
|
this.cache[t] = n;
|
|
699
722
|
}, e;
|
|
700
723
|
}()
|
|
701
|
-
),
|
|
724
|
+
), fi = {
|
|
702
725
|
create: function() {
|
|
703
|
-
return new
|
|
726
|
+
return new hi();
|
|
704
727
|
}
|
|
705
728
|
}, Ut = {
|
|
706
|
-
variadic:
|
|
707
|
-
},
|
|
729
|
+
variadic: ui
|
|
730
|
+
}, O;
|
|
708
731
|
(function(e) {
|
|
709
732
|
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
|
|
733
|
+
})(O || (O = {}));
|
|
734
|
+
var j;
|
|
712
735
|
(function(e) {
|
|
713
736
|
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
|
|
737
|
+
})(j || (j = {}));
|
|
738
|
+
var $e;
|
|
716
739
|
(function(e) {
|
|
717
740
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
718
|
-
})(
|
|
741
|
+
})($e || ($e = {}));
|
|
719
742
|
function fn(e) {
|
|
720
|
-
return e.type ===
|
|
743
|
+
return e.type === j.literal;
|
|
721
744
|
}
|
|
722
|
-
function
|
|
723
|
-
return e.type ===
|
|
745
|
+
function di(e) {
|
|
746
|
+
return e.type === j.argument;
|
|
724
747
|
}
|
|
725
748
|
function Gn(e) {
|
|
726
|
-
return e.type ===
|
|
749
|
+
return e.type === j.number;
|
|
727
750
|
}
|
|
728
751
|
function $n(e) {
|
|
729
|
-
return e.type ===
|
|
752
|
+
return e.type === j.date;
|
|
730
753
|
}
|
|
731
754
|
function jn(e) {
|
|
732
|
-
return e.type ===
|
|
755
|
+
return e.type === j.time;
|
|
733
756
|
}
|
|
734
757
|
function kn(e) {
|
|
735
|
-
return e.type ===
|
|
758
|
+
return e.type === j.select;
|
|
736
759
|
}
|
|
737
760
|
function Vn(e) {
|
|
738
|
-
return e.type ===
|
|
761
|
+
return e.type === j.plural;
|
|
739
762
|
}
|
|
740
|
-
function
|
|
741
|
-
return e.type ===
|
|
763
|
+
function pi(e) {
|
|
764
|
+
return e.type === j.pound;
|
|
742
765
|
}
|
|
743
766
|
function Xn(e) {
|
|
744
|
-
return e.type ===
|
|
767
|
+
return e.type === j.tag;
|
|
745
768
|
}
|
|
746
769
|
function zn(e) {
|
|
747
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
770
|
+
return !!(e && typeof e == "object" && e.type === $e.number);
|
|
748
771
|
}
|
|
749
772
|
function zt(e) {
|
|
750
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
773
|
+
return !!(e && typeof e == "object" && e.type === $e.dateTime);
|
|
751
774
|
}
|
|
752
|
-
var Wn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
753
|
-
function
|
|
775
|
+
var Wn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mi = /(?:[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;
|
|
776
|
+
function gi(e) {
|
|
754
777
|
var t = {};
|
|
755
|
-
return e.replace(
|
|
778
|
+
return e.replace(mi, function(n) {
|
|
756
779
|
var r = n.length;
|
|
757
780
|
switch (n[0]) {
|
|
758
781
|
case "G":
|
|
@@ -841,29 +864,29 @@ function di(e) {
|
|
|
841
864
|
return "";
|
|
842
865
|
}), t;
|
|
843
866
|
}
|
|
844
|
-
var
|
|
845
|
-
function
|
|
867
|
+
var bi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
868
|
+
function yi(e) {
|
|
846
869
|
if (e.length === 0)
|
|
847
870
|
throw new Error("Number skeleton cannot be empty");
|
|
848
|
-
for (var t = e.split(
|
|
849
|
-
return
|
|
871
|
+
for (var t = e.split(bi).filter(function(b) {
|
|
872
|
+
return b.length > 0;
|
|
850
873
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
851
874
|
var o = i[r], l = o.split("/");
|
|
852
875
|
if (l.length === 0)
|
|
853
876
|
throw new Error("Invalid number skeleton");
|
|
854
|
-
for (var
|
|
855
|
-
var
|
|
856
|
-
if (
|
|
877
|
+
for (var s = l[0], c = l.slice(1), u = 0, d = c; u < d.length; u++) {
|
|
878
|
+
var g = d[u];
|
|
879
|
+
if (g.length === 0)
|
|
857
880
|
throw new Error("Invalid number skeleton");
|
|
858
881
|
}
|
|
859
|
-
n.push({ stem:
|
|
882
|
+
n.push({ stem: s, options: c });
|
|
860
883
|
}
|
|
861
884
|
return n;
|
|
862
885
|
}
|
|
863
|
-
function
|
|
886
|
+
function vi(e) {
|
|
864
887
|
return e.replace(/^(.*?)-/, "");
|
|
865
888
|
}
|
|
866
|
-
var dn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zn = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
889
|
+
var dn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zn = /^(@+)?(\+|#+)?[rs]?$/g, Ei = /(\*)(0+)|(#+)(0+)|(0+)/g, qn = /^(0+)$/;
|
|
867
890
|
function pn(e) {
|
|
868
891
|
var t = {};
|
|
869
892
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zn, function(n, r, i) {
|
|
@@ -910,7 +933,7 @@ function Qn(e) {
|
|
|
910
933
|
};
|
|
911
934
|
}
|
|
912
935
|
}
|
|
913
|
-
function
|
|
936
|
+
function xi(e) {
|
|
914
937
|
var t;
|
|
915
938
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
916
939
|
notation: "engineering"
|
|
@@ -928,7 +951,7 @@ function mn(e) {
|
|
|
928
951
|
var t = {}, n = Qn(e);
|
|
929
952
|
return n || t;
|
|
930
953
|
}
|
|
931
|
-
function
|
|
954
|
+
function _i(e) {
|
|
932
955
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
933
956
|
var i = r[n];
|
|
934
957
|
switch (i.stem) {
|
|
@@ -952,7 +975,7 @@ function vi(e) {
|
|
|
952
975
|
continue;
|
|
953
976
|
case "measure-unit":
|
|
954
977
|
case "unit":
|
|
955
|
-
t.style = "unit", t.unit =
|
|
978
|
+
t.style = "unit", t.unit = vi(i.options[0]);
|
|
956
979
|
continue;
|
|
957
980
|
case "compact-short":
|
|
958
981
|
case "K":
|
|
@@ -1014,13 +1037,13 @@ function vi(e) {
|
|
|
1014
1037
|
case "integer-width":
|
|
1015
1038
|
if (i.options.length > 1)
|
|
1016
1039
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1017
|
-
i.options[0].replace(
|
|
1040
|
+
i.options[0].replace(Ei, function(c, u, d, g, b, _) {
|
|
1018
1041
|
if (u)
|
|
1019
1042
|
t.minimumIntegerDigits = d.length;
|
|
1020
1043
|
else {
|
|
1021
|
-
if (
|
|
1044
|
+
if (g && b)
|
|
1022
1045
|
throw new Error("We currently do not support maximum integer digits");
|
|
1023
|
-
if (
|
|
1046
|
+
if (_)
|
|
1024
1047
|
throw new Error("We currently do not support exact integer digits");
|
|
1025
1048
|
}
|
|
1026
1049
|
return "";
|
|
@@ -1034,8 +1057,8 @@ function vi(e) {
|
|
|
1034
1057
|
if (dn.test(i.stem)) {
|
|
1035
1058
|
if (i.options.length > 1)
|
|
1036
1059
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1037
|
-
i.stem.replace(dn, function(c, u, d,
|
|
1038
|
-
return d === "*" ? t.minimumFractionDigits = u.length :
|
|
1060
|
+
i.stem.replace(dn, function(c, u, d, g, b, _) {
|
|
1061
|
+
return d === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1039
1062
|
});
|
|
1040
1063
|
var o = i.options[0];
|
|
1041
1064
|
o === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = I(I({}, t), pn(o)));
|
|
@@ -1047,12 +1070,12 @@ function vi(e) {
|
|
|
1047
1070
|
}
|
|
1048
1071
|
var l = Qn(i.stem);
|
|
1049
1072
|
l && (t = I(I({}, t), l));
|
|
1050
|
-
var
|
|
1051
|
-
|
|
1073
|
+
var s = xi(i.stem);
|
|
1074
|
+
s && (t = I(I({}, t), s));
|
|
1052
1075
|
}
|
|
1053
1076
|
return t;
|
|
1054
1077
|
}
|
|
1055
|
-
var
|
|
1078
|
+
var ct = {
|
|
1056
1079
|
"001": [
|
|
1057
1080
|
"H",
|
|
1058
1081
|
"h"
|
|
@@ -2467,14 +2490,14 @@ var ut = {
|
|
|
2467
2490
|
"h"
|
|
2468
2491
|
]
|
|
2469
2492
|
};
|
|
2470
|
-
function
|
|
2493
|
+
function Bi(e, t) {
|
|
2471
2494
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2472
2495
|
var i = e.charAt(r);
|
|
2473
2496
|
if (i === "j") {
|
|
2474
2497
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2475
2498
|
o++, r++;
|
|
2476
|
-
var l = 1 + (o & 1),
|
|
2477
|
-
for ((u == "H" || u == "k") && (
|
|
2499
|
+
var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = Ti(t);
|
|
2500
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2478
2501
|
n += c;
|
|
2479
2502
|
for (; l-- > 0; )
|
|
2480
2503
|
n = u + n;
|
|
@@ -2482,7 +2505,7 @@ function Ei(e, t) {
|
|
|
2482
2505
|
}
|
|
2483
2506
|
return n;
|
|
2484
2507
|
}
|
|
2485
|
-
function
|
|
2508
|
+
function Ti(e) {
|
|
2486
2509
|
var t = e.hourCycle;
|
|
2487
2510
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2488
2511
|
e.hourCycles && // @ts-ignore
|
|
@@ -2501,23 +2524,23 @@ function xi(e) {
|
|
|
2501
2524
|
}
|
|
2502
2525
|
var n = e.language, r;
|
|
2503
2526
|
n !== "root" && (r = e.maximize().region);
|
|
2504
|
-
var i =
|
|
2527
|
+
var i = ct[r || ""] || ct[n || ""] || ct["".concat(n, "-001")] || ct["001"];
|
|
2505
2528
|
return i[0];
|
|
2506
2529
|
}
|
|
2507
|
-
var Ft,
|
|
2508
|
-
function
|
|
2530
|
+
var Ft, wi = new RegExp("^".concat(Wn.source, "*")), Si = new RegExp("".concat(Wn.source, "*$"));
|
|
2531
|
+
function M(e, t) {
|
|
2509
2532
|
return { start: e, end: t };
|
|
2510
2533
|
}
|
|
2511
|
-
var
|
|
2534
|
+
var Ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ci = !!String.fromCodePoint, Hi = !!Object.fromEntries, Oi = !!String.prototype.codePointAt, Ri = !!String.prototype.trimStart, Li = !!String.prototype.trimEnd, Mi = !!Number.isSafeInteger, Ni = Mi ? Number.isSafeInteger : function(e) {
|
|
2512
2535
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2513
2536
|
}, Wt = !0;
|
|
2514
2537
|
try {
|
|
2515
|
-
var
|
|
2516
|
-
Wt = ((Ft =
|
|
2538
|
+
var Ii = Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2539
|
+
Wt = ((Ft = Ii.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
|
|
2517
2540
|
} catch (e) {
|
|
2518
2541
|
Wt = !1;
|
|
2519
2542
|
}
|
|
2520
|
-
var gn =
|
|
2543
|
+
var gn = Ai ? (
|
|
2521
2544
|
// Native
|
|
2522
2545
|
function(t, n, r) {
|
|
2523
2546
|
return t.startsWith(n, r);
|
|
@@ -2527,7 +2550,7 @@ var gn = Ti ? (
|
|
|
2527
2550
|
function(t, n, r) {
|
|
2528
2551
|
return t.slice(r, r + n.length) === n;
|
|
2529
2552
|
}
|
|
2530
|
-
), Zt =
|
|
2553
|
+
), Zt = Ci ? String.fromCodePoint : (
|
|
2531
2554
|
// IE11
|
|
2532
2555
|
function() {
|
|
2533
2556
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2541,17 +2564,17 @@ var gn = Ti ? (
|
|
|
2541
2564
|
}
|
|
2542
2565
|
), bn = (
|
|
2543
2566
|
// native
|
|
2544
|
-
|
|
2567
|
+
Hi ? Object.fromEntries : (
|
|
2545
2568
|
// Ponyfill
|
|
2546
2569
|
function(t) {
|
|
2547
2570
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2548
|
-
var o = i[r], l = o[0],
|
|
2549
|
-
n[l] =
|
|
2571
|
+
var o = i[r], l = o[0], s = o[1];
|
|
2572
|
+
n[l] = s;
|
|
2550
2573
|
}
|
|
2551
2574
|
return n;
|
|
2552
2575
|
}
|
|
2553
2576
|
)
|
|
2554
|
-
), Jn =
|
|
2577
|
+
), Jn = Oi ? (
|
|
2555
2578
|
// Native
|
|
2556
2579
|
function(t, n) {
|
|
2557
2580
|
return t.codePointAt(n);
|
|
@@ -2565,7 +2588,7 @@ var gn = Ti ? (
|
|
|
2565
2588
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2566
2589
|
}
|
|
2567
2590
|
}
|
|
2568
|
-
),
|
|
2591
|
+
), Pi = Ri ? (
|
|
2569
2592
|
// Native
|
|
2570
2593
|
function(t) {
|
|
2571
2594
|
return t.trimStart();
|
|
@@ -2573,9 +2596,9 @@ var gn = Ti ? (
|
|
|
2573
2596
|
) : (
|
|
2574
2597
|
// Ponyfill
|
|
2575
2598
|
function(t) {
|
|
2576
|
-
return t.replace(
|
|
2599
|
+
return t.replace(wi, "");
|
|
2577
2600
|
}
|
|
2578
|
-
),
|
|
2601
|
+
), Di = Li ? (
|
|
2579
2602
|
// Native
|
|
2580
2603
|
function(t) {
|
|
2581
2604
|
return t.trimEnd();
|
|
@@ -2583,7 +2606,7 @@ var gn = Ti ? (
|
|
|
2583
2606
|
) : (
|
|
2584
2607
|
// Ponyfill
|
|
2585
2608
|
function(t) {
|
|
2586
|
-
return t.replace(
|
|
2609
|
+
return t.replace(Si, "");
|
|
2587
2610
|
}
|
|
2588
2611
|
);
|
|
2589
2612
|
function Yn(e, t) {
|
|
@@ -2602,13 +2625,13 @@ if (Wt) {
|
|
|
2602
2625
|
qt = function(t, n) {
|
|
2603
2626
|
for (var r = []; ; ) {
|
|
2604
2627
|
var i = Jn(t, n);
|
|
2605
|
-
if (i === void 0 || Kn(i) ||
|
|
2628
|
+
if (i === void 0 || Kn(i) || $i(i))
|
|
2606
2629
|
break;
|
|
2607
2630
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2608
2631
|
}
|
|
2609
2632
|
return Zt.apply(void 0, r);
|
|
2610
2633
|
};
|
|
2611
|
-
var
|
|
2634
|
+
var Ui = (
|
|
2612
2635
|
/** @class */
|
|
2613
2636
|
function() {
|
|
2614
2637
|
function e(t, n) {
|
|
@@ -2630,15 +2653,15 @@ var Ii = (
|
|
|
2630
2653
|
if (o === 125 && t > 0)
|
|
2631
2654
|
break;
|
|
2632
2655
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2633
|
-
var
|
|
2656
|
+
var s = this.clonePosition();
|
|
2634
2657
|
this.bump(), i.push({
|
|
2635
|
-
type:
|
|
2636
|
-
location:
|
|
2658
|
+
type: j.pound,
|
|
2659
|
+
location: M(s, this.clonePosition())
|
|
2637
2660
|
});
|
|
2638
2661
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2639
2662
|
if (r)
|
|
2640
2663
|
break;
|
|
2641
|
-
return this.error(
|
|
2664
|
+
return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
|
|
2642
2665
|
} else if (o === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
|
|
2643
2666
|
var l = this.parseTag(t, n);
|
|
2644
2667
|
if (l.err)
|
|
@@ -2660,9 +2683,9 @@ var Ii = (
|
|
|
2660
2683
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2661
2684
|
return {
|
|
2662
2685
|
val: {
|
|
2663
|
-
type:
|
|
2686
|
+
type: j.literal,
|
|
2664
2687
|
value: "<".concat(i, "/>"),
|
|
2665
|
-
location:
|
|
2688
|
+
location: M(r, this.clonePosition())
|
|
2666
2689
|
},
|
|
2667
2690
|
err: null
|
|
2668
2691
|
};
|
|
@@ -2670,27 +2693,27 @@ var Ii = (
|
|
|
2670
2693
|
var o = this.parseMessage(t + 1, n, !0);
|
|
2671
2694
|
if (o.err)
|
|
2672
2695
|
return o;
|
|
2673
|
-
var l = o.val,
|
|
2696
|
+
var l = o.val, s = this.clonePosition();
|
|
2674
2697
|
if (this.bumpIf("</")) {
|
|
2675
2698
|
if (this.isEOF() || !Qt(this.char()))
|
|
2676
|
-
return this.error(
|
|
2699
|
+
return this.error(O.INVALID_TAG, M(s, this.clonePosition()));
|
|
2677
2700
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2678
|
-
return i !== u ? this.error(
|
|
2701
|
+
return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, M(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2679
2702
|
val: {
|
|
2680
|
-
type:
|
|
2703
|
+
type: j.tag,
|
|
2681
2704
|
value: i,
|
|
2682
2705
|
children: l,
|
|
2683
|
-
location:
|
|
2706
|
+
location: M(r, this.clonePosition())
|
|
2684
2707
|
},
|
|
2685
2708
|
err: null
|
|
2686
|
-
} : this.error(
|
|
2709
|
+
} : this.error(O.INVALID_TAG, M(s, this.clonePosition())));
|
|
2687
2710
|
} else
|
|
2688
|
-
return this.error(
|
|
2711
|
+
return this.error(O.UNCLOSED_TAG, M(r, this.clonePosition()));
|
|
2689
2712
|
} else
|
|
2690
|
-
return this.error(
|
|
2713
|
+
return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
|
|
2691
2714
|
}, e.prototype.parseTagName = function() {
|
|
2692
2715
|
var t = this.offset();
|
|
2693
|
-
for (this.bump(); !this.isEOF() &&
|
|
2716
|
+
for (this.bump(); !this.isEOF() && Gi(this.char()); )
|
|
2694
2717
|
this.bump();
|
|
2695
2718
|
return this.message.slice(t, this.offset());
|
|
2696
2719
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2705,21 +2728,21 @@ var Ii = (
|
|
|
2705
2728
|
i += l;
|
|
2706
2729
|
continue;
|
|
2707
2730
|
}
|
|
2708
|
-
var
|
|
2709
|
-
if (
|
|
2710
|
-
i +=
|
|
2731
|
+
var s = this.tryParseLeftAngleBracket();
|
|
2732
|
+
if (s) {
|
|
2733
|
+
i += s;
|
|
2711
2734
|
continue;
|
|
2712
2735
|
}
|
|
2713
2736
|
break;
|
|
2714
2737
|
}
|
|
2715
|
-
var c =
|
|
2738
|
+
var c = M(r, this.clonePosition());
|
|
2716
2739
|
return {
|
|
2717
|
-
val: { type:
|
|
2740
|
+
val: { type: j.literal, value: i, location: c },
|
|
2718
2741
|
err: null
|
|
2719
2742
|
};
|
|
2720
2743
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2721
2744
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2722
|
-
!
|
|
2745
|
+
!Fi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2723
2746
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2724
2747
|
if (this.isEOF() || this.char() !== 39)
|
|
2725
2748
|
return null;
|
|
@@ -2762,40 +2785,40 @@ var Ii = (
|
|
|
2762
2785
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2763
2786
|
var r = this.clonePosition();
|
|
2764
2787
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2765
|
-
return this.error(
|
|
2788
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
|
|
2766
2789
|
if (this.char() === 125)
|
|
2767
|
-
return this.bump(), this.error(
|
|
2790
|
+
return this.bump(), this.error(O.EMPTY_ARGUMENT, M(r, this.clonePosition()));
|
|
2768
2791
|
var i = this.parseIdentifierIfPossible().value;
|
|
2769
2792
|
if (!i)
|
|
2770
|
-
return this.error(
|
|
2793
|
+
return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
|
|
2771
2794
|
if (this.bumpSpace(), this.isEOF())
|
|
2772
|
-
return this.error(
|
|
2795
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
|
|
2773
2796
|
switch (this.char()) {
|
|
2774
2797
|
case 125:
|
|
2775
2798
|
return this.bump(), {
|
|
2776
2799
|
val: {
|
|
2777
|
-
type:
|
|
2800
|
+
type: j.argument,
|
|
2778
2801
|
// value does not include the opening and closing braces.
|
|
2779
2802
|
value: i,
|
|
2780
|
-
location:
|
|
2803
|
+
location: M(r, this.clonePosition())
|
|
2781
2804
|
},
|
|
2782
2805
|
err: null
|
|
2783
2806
|
};
|
|
2784
2807
|
case 44:
|
|
2785
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2808
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2786
2809
|
default:
|
|
2787
|
-
return this.error(
|
|
2810
|
+
return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
|
|
2788
2811
|
}
|
|
2789
2812
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2790
2813
|
var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
|
|
2791
2814
|
this.bumpTo(i);
|
|
2792
|
-
var o = this.clonePosition(), l =
|
|
2815
|
+
var o = this.clonePosition(), l = M(t, o);
|
|
2793
2816
|
return { value: r, location: l };
|
|
2794
2817
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2795
|
-
var o, l = this.clonePosition(),
|
|
2796
|
-
switch (
|
|
2818
|
+
var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2819
|
+
switch (s) {
|
|
2797
2820
|
case "":
|
|
2798
|
-
return this.error(
|
|
2821
|
+
return this.error(O.EXPECT_ARGUMENT_TYPE, M(l, c));
|
|
2799
2822
|
case "number":
|
|
2800
2823
|
case "date":
|
|
2801
2824
|
case "time": {
|
|
@@ -2803,49 +2826,49 @@ var Ii = (
|
|
|
2803
2826
|
var u = null;
|
|
2804
2827
|
if (this.bumpIf(",")) {
|
|
2805
2828
|
this.bumpSpace();
|
|
2806
|
-
var d = this.clonePosition(),
|
|
2807
|
-
if (
|
|
2808
|
-
return
|
|
2809
|
-
var
|
|
2810
|
-
if (
|
|
2811
|
-
return this.error(
|
|
2812
|
-
var
|
|
2813
|
-
u = { style:
|
|
2829
|
+
var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
|
|
2830
|
+
if (g.err)
|
|
2831
|
+
return g;
|
|
2832
|
+
var b = Di(g.val);
|
|
2833
|
+
if (b.length === 0)
|
|
2834
|
+
return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
|
|
2835
|
+
var _ = M(d, this.clonePosition());
|
|
2836
|
+
u = { style: b, styleLocation: _ };
|
|
2814
2837
|
}
|
|
2815
|
-
var
|
|
2816
|
-
if (
|
|
2817
|
-
return
|
|
2818
|
-
var
|
|
2838
|
+
var B = this.tryParseArgumentClose(i);
|
|
2839
|
+
if (B.err)
|
|
2840
|
+
return B;
|
|
2841
|
+
var T = M(i, this.clonePosition());
|
|
2819
2842
|
if (u && gn(u == null ? void 0 : u.style, "::", 0)) {
|
|
2820
|
-
var
|
|
2821
|
-
if (
|
|
2822
|
-
var
|
|
2823
|
-
return
|
|
2824
|
-
val: { type:
|
|
2843
|
+
var x = Pi(u.style.slice(2));
|
|
2844
|
+
if (s === "number") {
|
|
2845
|
+
var g = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
2846
|
+
return g.err ? g : {
|
|
2847
|
+
val: { type: j.number, value: r, location: T, style: g.val },
|
|
2825
2848
|
err: null
|
|
2826
2849
|
};
|
|
2827
2850
|
} else {
|
|
2828
|
-
if (
|
|
2829
|
-
return this.error(
|
|
2830
|
-
var
|
|
2831
|
-
this.locale && (
|
|
2832
|
-
var
|
|
2833
|
-
type:
|
|
2834
|
-
pattern:
|
|
2851
|
+
if (x.length === 0)
|
|
2852
|
+
return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
|
|
2853
|
+
var S = x;
|
|
2854
|
+
this.locale && (S = Bi(x, this.locale));
|
|
2855
|
+
var b = {
|
|
2856
|
+
type: $e.dateTime,
|
|
2857
|
+
pattern: S,
|
|
2835
2858
|
location: u.styleLocation,
|
|
2836
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2837
|
-
},
|
|
2859
|
+
parsedOptions: this.shouldParseSkeletons ? gi(S) : {}
|
|
2860
|
+
}, D = s === "date" ? j.date : j.time;
|
|
2838
2861
|
return {
|
|
2839
|
-
val: { type:
|
|
2862
|
+
val: { type: D, value: r, location: T, style: b },
|
|
2840
2863
|
err: null
|
|
2841
2864
|
};
|
|
2842
2865
|
}
|
|
2843
2866
|
}
|
|
2844
2867
|
return {
|
|
2845
2868
|
val: {
|
|
2846
|
-
type:
|
|
2869
|
+
type: s === "number" ? j.number : s === "date" ? j.date : j.time,
|
|
2847
2870
|
value: r,
|
|
2848
|
-
location:
|
|
2871
|
+
location: T,
|
|
2849
2872
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2850
2873
|
},
|
|
2851
2874
|
err: null
|
|
@@ -2854,52 +2877,52 @@ var Ii = (
|
|
|
2854
2877
|
case "plural":
|
|
2855
2878
|
case "selectordinal":
|
|
2856
2879
|
case "select": {
|
|
2857
|
-
var
|
|
2880
|
+
var H = this.clonePosition();
|
|
2858
2881
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2859
|
-
return this.error(
|
|
2882
|
+
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H, I({}, H)));
|
|
2860
2883
|
this.bumpSpace();
|
|
2861
|
-
var
|
|
2862
|
-
if (
|
|
2884
|
+
var U = this.parseIdentifierIfPossible(), W = 0;
|
|
2885
|
+
if (s !== "select" && U.value === "offset") {
|
|
2863
2886
|
if (!this.bumpIf(":"))
|
|
2864
|
-
return this.error(
|
|
2887
|
+
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
|
|
2865
2888
|
this.bumpSpace();
|
|
2866
|
-
var
|
|
2867
|
-
if (
|
|
2868
|
-
return
|
|
2869
|
-
this.bumpSpace(),
|
|
2889
|
+
var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2890
|
+
if (g.err)
|
|
2891
|
+
return g;
|
|
2892
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), W = g.val;
|
|
2870
2893
|
}
|
|
2871
|
-
var
|
|
2872
|
-
if (
|
|
2873
|
-
return
|
|
2874
|
-
var
|
|
2875
|
-
if (
|
|
2876
|
-
return
|
|
2877
|
-
var
|
|
2878
|
-
return
|
|
2894
|
+
var q = this.tryParsePluralOrSelectOptions(t, s, n, U);
|
|
2895
|
+
if (q.err)
|
|
2896
|
+
return q;
|
|
2897
|
+
var B = this.tryParseArgumentClose(i);
|
|
2898
|
+
if (B.err)
|
|
2899
|
+
return B;
|
|
2900
|
+
var Y = M(i, this.clonePosition());
|
|
2901
|
+
return s === "select" ? {
|
|
2879
2902
|
val: {
|
|
2880
|
-
type:
|
|
2903
|
+
type: j.select,
|
|
2881
2904
|
value: r,
|
|
2882
|
-
options: bn(
|
|
2883
|
-
location:
|
|
2905
|
+
options: bn(q.val),
|
|
2906
|
+
location: Y
|
|
2884
2907
|
},
|
|
2885
2908
|
err: null
|
|
2886
2909
|
} : {
|
|
2887
2910
|
val: {
|
|
2888
|
-
type:
|
|
2911
|
+
type: j.plural,
|
|
2889
2912
|
value: r,
|
|
2890
|
-
options: bn(
|
|
2891
|
-
offset:
|
|
2892
|
-
pluralType:
|
|
2893
|
-
location:
|
|
2913
|
+
options: bn(q.val),
|
|
2914
|
+
offset: W,
|
|
2915
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2916
|
+
location: Y
|
|
2894
2917
|
},
|
|
2895
2918
|
err: null
|
|
2896
2919
|
};
|
|
2897
2920
|
}
|
|
2898
2921
|
default:
|
|
2899
|
-
return this.error(
|
|
2922
|
+
return this.error(O.INVALID_ARGUMENT_TYPE, M(l, c));
|
|
2900
2923
|
}
|
|
2901
2924
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2902
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2925
|
+
return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2903
2926
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2904
2927
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2905
2928
|
var r = this.char();
|
|
@@ -2908,7 +2931,7 @@ var Ii = (
|
|
|
2908
2931
|
this.bump();
|
|
2909
2932
|
var i = this.clonePosition();
|
|
2910
2933
|
if (!this.bumpUntil("'"))
|
|
2911
|
-
return this.error(
|
|
2934
|
+
return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(i, this.clonePosition()));
|
|
2912
2935
|
this.bump();
|
|
2913
2936
|
break;
|
|
2914
2937
|
}
|
|
@@ -2938,64 +2961,64 @@ var Ii = (
|
|
|
2938
2961
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2939
2962
|
var r = [];
|
|
2940
2963
|
try {
|
|
2941
|
-
r =
|
|
2964
|
+
r = yi(t);
|
|
2942
2965
|
} catch (i) {
|
|
2943
|
-
return this.error(
|
|
2966
|
+
return this.error(O.INVALID_NUMBER_SKELETON, n);
|
|
2944
2967
|
}
|
|
2945
2968
|
return {
|
|
2946
2969
|
val: {
|
|
2947
|
-
type:
|
|
2970
|
+
type: $e.number,
|
|
2948
2971
|
tokens: r,
|
|
2949
2972
|
location: n,
|
|
2950
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2973
|
+
parsedOptions: this.shouldParseSkeletons ? _i(r) : {}
|
|
2951
2974
|
},
|
|
2952
2975
|
err: null
|
|
2953
2976
|
};
|
|
2954
2977
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2955
|
-
for (var o, l = !1,
|
|
2978
|
+
for (var o, l = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
|
|
2956
2979
|
if (u.length === 0) {
|
|
2957
|
-
var
|
|
2980
|
+
var g = this.clonePosition();
|
|
2958
2981
|
if (n !== "select" && this.bumpIf("=")) {
|
|
2959
|
-
var
|
|
2960
|
-
if (
|
|
2961
|
-
return
|
|
2962
|
-
d =
|
|
2982
|
+
var b = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2983
|
+
if (b.err)
|
|
2984
|
+
return b;
|
|
2985
|
+
d = M(g, this.clonePosition()), u = this.message.slice(g.offset, this.offset());
|
|
2963
2986
|
} else
|
|
2964
2987
|
break;
|
|
2965
2988
|
}
|
|
2966
2989
|
if (c.has(u))
|
|
2967
|
-
return this.error(n === "select" ?
|
|
2990
|
+
return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
|
|
2968
2991
|
u === "other" && (l = !0), this.bumpSpace();
|
|
2969
|
-
var
|
|
2992
|
+
var _ = this.clonePosition();
|
|
2970
2993
|
if (!this.bumpIf("{"))
|
|
2971
|
-
return this.error(n === "select" ?
|
|
2972
|
-
var
|
|
2973
|
-
if (
|
|
2974
|
-
return
|
|
2975
|
-
var
|
|
2976
|
-
if (
|
|
2977
|
-
return
|
|
2978
|
-
|
|
2994
|
+
return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
|
|
2995
|
+
var B = this.parseMessage(t + 1, n, r);
|
|
2996
|
+
if (B.err)
|
|
2997
|
+
return B;
|
|
2998
|
+
var T = this.tryParseArgumentClose(_);
|
|
2999
|
+
if (T.err)
|
|
3000
|
+
return T;
|
|
3001
|
+
s.push([
|
|
2979
3002
|
u,
|
|
2980
3003
|
{
|
|
2981
|
-
value:
|
|
2982
|
-
location:
|
|
3004
|
+
value: B.val,
|
|
3005
|
+
location: M(_, this.clonePosition())
|
|
2983
3006
|
}
|
|
2984
3007
|
]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
|
|
2985
3008
|
}
|
|
2986
|
-
return
|
|
3009
|
+
return s.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, M(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(O.MISSING_OTHER_CLAUSE, M(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2987
3010
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
2988
3011
|
var r = 1, i = this.clonePosition();
|
|
2989
3012
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
2990
3013
|
for (var o = !1, l = 0; !this.isEOF(); ) {
|
|
2991
|
-
var
|
|
2992
|
-
if (
|
|
2993
|
-
o = !0, l = l * 10 + (
|
|
3014
|
+
var s = this.char();
|
|
3015
|
+
if (s >= 48 && s <= 57)
|
|
3016
|
+
o = !0, l = l * 10 + (s - 48), this.bump();
|
|
2994
3017
|
else
|
|
2995
3018
|
break;
|
|
2996
3019
|
}
|
|
2997
|
-
var c =
|
|
2998
|
-
return o ? (l *= r,
|
|
3020
|
+
var c = M(i, this.clonePosition());
|
|
3021
|
+
return o ? (l *= r, Ni(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
|
|
2999
3022
|
}, e.prototype.offset = function() {
|
|
3000
3023
|
return this.position.offset;
|
|
3001
3024
|
}, e.prototype.isEOF = function() {
|
|
@@ -3064,16 +3087,16 @@ var Ii = (
|
|
|
3064
3087
|
function Qt(e) {
|
|
3065
3088
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3066
3089
|
}
|
|
3067
|
-
function
|
|
3090
|
+
function Fi(e) {
|
|
3068
3091
|
return Qt(e) || e === 47;
|
|
3069
3092
|
}
|
|
3070
|
-
function
|
|
3093
|
+
function Gi(e) {
|
|
3071
3094
|
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;
|
|
3072
3095
|
}
|
|
3073
3096
|
function Kn(e) {
|
|
3074
3097
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3075
3098
|
}
|
|
3076
|
-
function
|
|
3099
|
+
function $i(e) {
|
|
3077
3100
|
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;
|
|
3078
3101
|
}
|
|
3079
3102
|
function Jt(e) {
|
|
@@ -3084,23 +3107,23 @@ function Jt(e) {
|
|
|
3084
3107
|
else Gn(t) && zn(t.style) || ($n(t) || jn(t)) && zt(t.style) ? delete t.style.location : Xn(t) && Jt(t.children);
|
|
3085
3108
|
});
|
|
3086
3109
|
}
|
|
3087
|
-
function
|
|
3110
|
+
function ji(e, t) {
|
|
3088
3111
|
t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3089
|
-
var n = new
|
|
3112
|
+
var n = new Ui(e, t).parse();
|
|
3090
3113
|
if (n.err) {
|
|
3091
|
-
var r = SyntaxError(
|
|
3114
|
+
var r = SyntaxError(O[n.err.kind]);
|
|
3092
3115
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3093
3116
|
}
|
|
3094
3117
|
return t != null && t.captureLocation || Jt(n.val), n.val;
|
|
3095
3118
|
}
|
|
3096
|
-
var
|
|
3119
|
+
var je;
|
|
3097
3120
|
(function(e) {
|
|
3098
3121
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3099
|
-
})(
|
|
3100
|
-
var
|
|
3122
|
+
})(je || (je = {}));
|
|
3123
|
+
var xt = (
|
|
3101
3124
|
/** @class */
|
|
3102
3125
|
function(e) {
|
|
3103
|
-
|
|
3126
|
+
Et(t, e);
|
|
3104
3127
|
function t(n, r, i) {
|
|
3105
3128
|
var o = e.call(this, n) || this;
|
|
3106
3129
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3112,149 +3135,149 @@ var Et = (
|
|
|
3112
3135
|
), vn = (
|
|
3113
3136
|
/** @class */
|
|
3114
3137
|
function(e) {
|
|
3115
|
-
|
|
3138
|
+
Et(t, e);
|
|
3116
3139
|
function t(n, r, i, o) {
|
|
3117
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3140
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), je.INVALID_VALUE, o) || this;
|
|
3118
3141
|
}
|
|
3119
3142
|
return t;
|
|
3120
|
-
}(
|
|
3121
|
-
),
|
|
3143
|
+
}(xt)
|
|
3144
|
+
), ki = (
|
|
3122
3145
|
/** @class */
|
|
3123
3146
|
function(e) {
|
|
3124
|
-
|
|
3147
|
+
Et(t, e);
|
|
3125
3148
|
function t(n, r, i) {
|
|
3126
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3149
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), je.INVALID_VALUE, i) || this;
|
|
3127
3150
|
}
|
|
3128
3151
|
return t;
|
|
3129
|
-
}(
|
|
3130
|
-
),
|
|
3152
|
+
}(xt)
|
|
3153
|
+
), Vi = (
|
|
3131
3154
|
/** @class */
|
|
3132
3155
|
function(e) {
|
|
3133
|
-
|
|
3156
|
+
Et(t, e);
|
|
3134
3157
|
function t(n, r) {
|
|
3135
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3158
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), je.MISSING_VALUE, r) || this;
|
|
3136
3159
|
}
|
|
3137
3160
|
return t;
|
|
3138
|
-
}(
|
|
3139
|
-
),
|
|
3161
|
+
}(xt)
|
|
3162
|
+
), ne;
|
|
3140
3163
|
(function(e) {
|
|
3141
3164
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3142
|
-
})(
|
|
3143
|
-
function
|
|
3165
|
+
})(ne || (ne = {}));
|
|
3166
|
+
function Xi(e) {
|
|
3144
3167
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3145
3168
|
var r = t[t.length - 1];
|
|
3146
|
-
return !r || r.type !==
|
|
3169
|
+
return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
|
|
3147
3170
|
}, []);
|
|
3148
3171
|
}
|
|
3149
|
-
function
|
|
3172
|
+
function zi(e) {
|
|
3150
3173
|
return typeof e == "function";
|
|
3151
3174
|
}
|
|
3152
|
-
function
|
|
3175
|
+
function ft(e, t, n, r, i, o, l) {
|
|
3153
3176
|
if (e.length === 1 && fn(e[0]))
|
|
3154
3177
|
return [
|
|
3155
3178
|
{
|
|
3156
|
-
type:
|
|
3179
|
+
type: ne.literal,
|
|
3157
3180
|
value: e[0].value
|
|
3158
3181
|
}
|
|
3159
3182
|
];
|
|
3160
|
-
for (var
|
|
3183
|
+
for (var s = [], c = 0, u = e; c < u.length; c++) {
|
|
3161
3184
|
var d = u[c];
|
|
3162
3185
|
if (fn(d)) {
|
|
3163
|
-
|
|
3164
|
-
type:
|
|
3186
|
+
s.push({
|
|
3187
|
+
type: ne.literal,
|
|
3165
3188
|
value: d.value
|
|
3166
3189
|
});
|
|
3167
3190
|
continue;
|
|
3168
3191
|
}
|
|
3169
|
-
if (
|
|
3170
|
-
typeof o == "number" &&
|
|
3171
|
-
type:
|
|
3192
|
+
if (pi(d)) {
|
|
3193
|
+
typeof o == "number" && s.push({
|
|
3194
|
+
type: ne.literal,
|
|
3172
3195
|
value: n.getNumberFormat(t).format(o)
|
|
3173
3196
|
});
|
|
3174
3197
|
continue;
|
|
3175
3198
|
}
|
|
3176
|
-
var
|
|
3177
|
-
if (!(i &&
|
|
3178
|
-
throw new
|
|
3179
|
-
var
|
|
3180
|
-
if (
|
|
3181
|
-
(!
|
|
3182
|
-
type: typeof
|
|
3183
|
-
value:
|
|
3199
|
+
var g = d.value;
|
|
3200
|
+
if (!(i && g in i))
|
|
3201
|
+
throw new Vi(g, l);
|
|
3202
|
+
var b = i[g];
|
|
3203
|
+
if (di(d)) {
|
|
3204
|
+
(!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
|
|
3205
|
+
type: typeof b == "string" ? ne.literal : ne.object,
|
|
3206
|
+
value: b
|
|
3184
3207
|
});
|
|
3185
3208
|
continue;
|
|
3186
3209
|
}
|
|
3187
3210
|
if ($n(d)) {
|
|
3188
|
-
var
|
|
3189
|
-
|
|
3190
|
-
type:
|
|
3191
|
-
value: n.getDateTimeFormat(t,
|
|
3211
|
+
var _ = typeof d.style == "string" ? r.date[d.style] : zt(d.style) ? d.style.parsedOptions : void 0;
|
|
3212
|
+
s.push({
|
|
3213
|
+
type: ne.literal,
|
|
3214
|
+
value: n.getDateTimeFormat(t, _).format(b)
|
|
3192
3215
|
});
|
|
3193
3216
|
continue;
|
|
3194
3217
|
}
|
|
3195
3218
|
if (jn(d)) {
|
|
3196
|
-
var
|
|
3197
|
-
|
|
3198
|
-
type:
|
|
3199
|
-
value: n.getDateTimeFormat(t,
|
|
3219
|
+
var _ = typeof d.style == "string" ? r.time[d.style] : zt(d.style) ? d.style.parsedOptions : r.time.medium;
|
|
3220
|
+
s.push({
|
|
3221
|
+
type: ne.literal,
|
|
3222
|
+
value: n.getDateTimeFormat(t, _).format(b)
|
|
3200
3223
|
});
|
|
3201
3224
|
continue;
|
|
3202
3225
|
}
|
|
3203
3226
|
if (Gn(d)) {
|
|
3204
|
-
var
|
|
3205
|
-
|
|
3206
|
-
type:
|
|
3207
|
-
value: n.getNumberFormat(t,
|
|
3227
|
+
var _ = typeof d.style == "string" ? r.number[d.style] : zn(d.style) ? d.style.parsedOptions : void 0;
|
|
3228
|
+
_ && _.scale && (b = b * (_.scale || 1)), s.push({
|
|
3229
|
+
type: ne.literal,
|
|
3230
|
+
value: n.getNumberFormat(t, _).format(b)
|
|
3208
3231
|
});
|
|
3209
3232
|
continue;
|
|
3210
3233
|
}
|
|
3211
3234
|
if (Xn(d)) {
|
|
3212
|
-
var
|
|
3213
|
-
if (!
|
|
3214
|
-
throw new
|
|
3215
|
-
var
|
|
3216
|
-
return
|
|
3235
|
+
var B = d.children, T = d.value, x = i[T];
|
|
3236
|
+
if (!zi(x))
|
|
3237
|
+
throw new ki(T, "function", l);
|
|
3238
|
+
var S = ft(B, t, n, r, i, o), D = x(S.map(function(W) {
|
|
3239
|
+
return W.value;
|
|
3217
3240
|
}));
|
|
3218
|
-
Array.isArray(
|
|
3241
|
+
Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(W) {
|
|
3219
3242
|
return {
|
|
3220
|
-
type: typeof
|
|
3221
|
-
value:
|
|
3243
|
+
type: typeof W == "string" ? ne.literal : ne.object,
|
|
3244
|
+
value: W
|
|
3222
3245
|
};
|
|
3223
3246
|
}));
|
|
3224
3247
|
}
|
|
3225
3248
|
if (kn(d)) {
|
|
3226
|
-
var
|
|
3227
|
-
if (!
|
|
3228
|
-
throw new vn(d.value,
|
|
3229
|
-
|
|
3249
|
+
var H = d.options[b] || d.options.other;
|
|
3250
|
+
if (!H)
|
|
3251
|
+
throw new vn(d.value, b, Object.keys(d.options), l);
|
|
3252
|
+
s.push.apply(s, ft(H.value, t, n, r, i));
|
|
3230
3253
|
continue;
|
|
3231
3254
|
}
|
|
3232
3255
|
if (Vn(d)) {
|
|
3233
|
-
var
|
|
3234
|
-
if (!
|
|
3256
|
+
var H = d.options["=".concat(b)];
|
|
3257
|
+
if (!H) {
|
|
3235
3258
|
if (!Intl.PluralRules)
|
|
3236
|
-
throw new
|
|
3259
|
+
throw new xt(`Intl.PluralRules is not available in this environment.
|
|
3237
3260
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3238
|
-
`,
|
|
3239
|
-
var
|
|
3240
|
-
|
|
3261
|
+
`, je.MISSING_INTL_API, l);
|
|
3262
|
+
var U = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
|
|
3263
|
+
H = d.options[U] || d.options.other;
|
|
3241
3264
|
}
|
|
3242
|
-
if (!
|
|
3243
|
-
throw new vn(d.value,
|
|
3244
|
-
|
|
3265
|
+
if (!H)
|
|
3266
|
+
throw new vn(d.value, b, Object.keys(d.options), l);
|
|
3267
|
+
s.push.apply(s, ft(H.value, t, n, r, i, b - (d.offset || 0)));
|
|
3245
3268
|
continue;
|
|
3246
3269
|
}
|
|
3247
3270
|
}
|
|
3248
|
-
return
|
|
3271
|
+
return Xi(s);
|
|
3249
3272
|
}
|
|
3250
|
-
function
|
|
3273
|
+
function Wi(e, t) {
|
|
3251
3274
|
return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3252
3275
|
return n[r] = I(I({}, e[r]), t[r] || {}), n;
|
|
3253
3276
|
}, {})) : e;
|
|
3254
3277
|
}
|
|
3255
|
-
function
|
|
3278
|
+
function Zi(e, t) {
|
|
3256
3279
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3257
|
-
return n[r] =
|
|
3280
|
+
return n[r] = Wi(e[r], t[r]), n;
|
|
3258
3281
|
}, I({}, e)) : e;
|
|
3259
3282
|
}
|
|
3260
3283
|
function Gt(e) {
|
|
@@ -3271,7 +3294,7 @@ function Gt(e) {
|
|
|
3271
3294
|
}
|
|
3272
3295
|
};
|
|
3273
3296
|
}
|
|
3274
|
-
function
|
|
3297
|
+
function qi(e) {
|
|
3275
3298
|
return e === void 0 && (e = {
|
|
3276
3299
|
number: {},
|
|
3277
3300
|
dateTime: {},
|
|
@@ -3303,7 +3326,7 @@ function zi(e) {
|
|
|
3303
3326
|
})
|
|
3304
3327
|
};
|
|
3305
3328
|
}
|
|
3306
|
-
var
|
|
3329
|
+
var Qi = (
|
|
3307
3330
|
/** @class */
|
|
3308
3331
|
function() {
|
|
3309
3332
|
function e(t, n, r, i) {
|
|
@@ -3317,12 +3340,12 @@ var Wi = (
|
|
|
3317
3340
|
var u = o.formatToParts(c);
|
|
3318
3341
|
if (u.length === 1)
|
|
3319
3342
|
return u[0].value;
|
|
3320
|
-
var d = u.reduce(function(
|
|
3321
|
-
return !
|
|
3343
|
+
var d = u.reduce(function(g, b) {
|
|
3344
|
+
return !g.length || b.type !== ne.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
|
|
3322
3345
|
}, []);
|
|
3323
3346
|
return d.length <= 1 ? d[0] || "" : d;
|
|
3324
3347
|
}, this.formatToParts = function(c) {
|
|
3325
|
-
return
|
|
3348
|
+
return ft(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3326
3349
|
}, this.resolvedOptions = function() {
|
|
3327
3350
|
var c;
|
|
3328
3351
|
return {
|
|
@@ -3335,13 +3358,13 @@ var Wi = (
|
|
|
3335
3358
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3336
3359
|
var l = i || {};
|
|
3337
3360
|
l.formatters;
|
|
3338
|
-
var
|
|
3339
|
-
this.ast = e.__parse(t, I(I({},
|
|
3361
|
+
var s = oi(l, ["formatters"]);
|
|
3362
|
+
this.ast = e.__parse(t, I(I({}, s), { locale: this.resolvedLocale }));
|
|
3340
3363
|
} else
|
|
3341
3364
|
this.ast = t;
|
|
3342
3365
|
if (!Array.isArray(this.ast))
|
|
3343
3366
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3344
|
-
this.formats =
|
|
3367
|
+
this.formats = Zi(e.formats, r), this.formatters = i && i.formatters || qi(this.formatterCache);
|
|
3345
3368
|
}
|
|
3346
3369
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3347
3370
|
get: function() {
|
|
@@ -3354,7 +3377,7 @@ var Wi = (
|
|
|
3354
3377
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3355
3378
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3356
3379
|
}
|
|
3357
|
-
}, e.__parse =
|
|
3380
|
+
}, e.__parse = ji, e.formats = {
|
|
3358
3381
|
number: {
|
|
3359
3382
|
integer: {
|
|
3360
3383
|
maximumFractionDigits: 0
|
|
@@ -3415,7 +3438,7 @@ var Wi = (
|
|
|
3415
3438
|
}, e;
|
|
3416
3439
|
}()
|
|
3417
3440
|
);
|
|
3418
|
-
function
|
|
3441
|
+
function Ji(e, t) {
|
|
3419
3442
|
if (t == null)
|
|
3420
3443
|
return;
|
|
3421
3444
|
if (t in e)
|
|
@@ -3436,36 +3459,36 @@ function Zi(e, t) {
|
|
|
3436
3459
|
r = void 0;
|
|
3437
3460
|
return r;
|
|
3438
3461
|
}
|
|
3439
|
-
const Se = {},
|
|
3462
|
+
const Se = {}, Yi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), er = (e, t) => {
|
|
3440
3463
|
if (t == null)
|
|
3441
3464
|
return;
|
|
3442
3465
|
if (t in Se && e in Se[t])
|
|
3443
3466
|
return Se[t][e];
|
|
3444
|
-
const n =
|
|
3467
|
+
const n = _t(t);
|
|
3445
3468
|
for (let r = 0; r < n.length; r++) {
|
|
3446
|
-
const i = n[r], o =
|
|
3469
|
+
const i = n[r], o = eo(i, e);
|
|
3447
3470
|
if (o)
|
|
3448
|
-
return
|
|
3471
|
+
return Yi(e, t, o);
|
|
3449
3472
|
}
|
|
3450
3473
|
};
|
|
3451
3474
|
let nn;
|
|
3452
|
-
const
|
|
3453
|
-
function
|
|
3475
|
+
const it = vt({});
|
|
3476
|
+
function Ki(e) {
|
|
3454
3477
|
return nn[e] || null;
|
|
3455
3478
|
}
|
|
3456
3479
|
function tr(e) {
|
|
3457
3480
|
return e in nn;
|
|
3458
3481
|
}
|
|
3459
|
-
function
|
|
3482
|
+
function eo(e, t) {
|
|
3460
3483
|
if (!tr(e))
|
|
3461
3484
|
return null;
|
|
3462
|
-
const n =
|
|
3463
|
-
return
|
|
3485
|
+
const n = Ki(e);
|
|
3486
|
+
return Ji(n, t);
|
|
3464
3487
|
}
|
|
3465
|
-
function
|
|
3488
|
+
function to(e) {
|
|
3466
3489
|
if (e == null)
|
|
3467
3490
|
return;
|
|
3468
|
-
const t =
|
|
3491
|
+
const t = _t(e);
|
|
3469
3492
|
for (let n = 0; n < t.length; n++) {
|
|
3470
3493
|
const r = t[n];
|
|
3471
3494
|
if (tr(r))
|
|
@@ -3473,55 +3496,55 @@ function Yi(e) {
|
|
|
3473
3496
|
}
|
|
3474
3497
|
}
|
|
3475
3498
|
function nr(e, ...t) {
|
|
3476
|
-
delete Se[e],
|
|
3499
|
+
delete Se[e], it.update((n) => (n[e] = ii.all([n[e] || {}, ...t]), n));
|
|
3477
3500
|
}
|
|
3478
|
-
|
|
3479
|
-
[
|
|
3501
|
+
Xe(
|
|
3502
|
+
[it],
|
|
3480
3503
|
([e]) => Object.keys(e)
|
|
3481
3504
|
);
|
|
3482
|
-
|
|
3483
|
-
const
|
|
3484
|
-
function
|
|
3485
|
-
|
|
3505
|
+
it.subscribe((e) => nn = e);
|
|
3506
|
+
const dt = {};
|
|
3507
|
+
function no(e, t) {
|
|
3508
|
+
dt[e].delete(t), dt[e].size === 0 && delete dt[e];
|
|
3486
3509
|
}
|
|
3487
3510
|
function rr(e) {
|
|
3488
|
-
return
|
|
3511
|
+
return dt[e];
|
|
3489
3512
|
}
|
|
3490
|
-
function
|
|
3491
|
-
return
|
|
3513
|
+
function ro(e) {
|
|
3514
|
+
return _t(e).map((t) => {
|
|
3492
3515
|
const n = rr(t);
|
|
3493
3516
|
return [t, n ? [...n] : []];
|
|
3494
3517
|
}).filter(([, t]) => t.length > 0);
|
|
3495
3518
|
}
|
|
3496
3519
|
function Yt(e) {
|
|
3497
|
-
return e == null ? !1 :
|
|
3520
|
+
return e == null ? !1 : _t(e).some(
|
|
3498
3521
|
(t) => {
|
|
3499
3522
|
var n;
|
|
3500
3523
|
return (n = rr(t)) == null ? void 0 : n.size;
|
|
3501
3524
|
}
|
|
3502
3525
|
);
|
|
3503
3526
|
}
|
|
3504
|
-
function
|
|
3527
|
+
function io(e, t) {
|
|
3505
3528
|
return Promise.all(
|
|
3506
|
-
t.map((r) => (
|
|
3529
|
+
t.map((r) => (no(e, r), r().then((i) => i.default || i)))
|
|
3507
3530
|
).then((r) => nr(e, ...r));
|
|
3508
3531
|
}
|
|
3509
|
-
const
|
|
3532
|
+
const Ke = {};
|
|
3510
3533
|
function ir(e) {
|
|
3511
3534
|
if (!Yt(e))
|
|
3512
|
-
return e in
|
|
3513
|
-
const t =
|
|
3514
|
-
return
|
|
3535
|
+
return e in Ke ? Ke[e] : Promise.resolve();
|
|
3536
|
+
const t = ro(e);
|
|
3537
|
+
return Ke[e] = Promise.all(
|
|
3515
3538
|
t.map(
|
|
3516
|
-
([n, r]) =>
|
|
3539
|
+
([n, r]) => io(n, r)
|
|
3517
3540
|
)
|
|
3518
3541
|
).then(() => {
|
|
3519
3542
|
if (Yt(e))
|
|
3520
3543
|
return ir(e);
|
|
3521
|
-
delete
|
|
3522
|
-
}),
|
|
3544
|
+
delete Ke[e];
|
|
3545
|
+
}), Ke[e];
|
|
3523
3546
|
}
|
|
3524
|
-
const
|
|
3547
|
+
const oo = {
|
|
3525
3548
|
number: {
|
|
3526
3549
|
scientific: { notation: "scientific" },
|
|
3527
3550
|
engineering: { notation: "engineering" },
|
|
@@ -3550,141 +3573,141 @@ const no = {
|
|
|
3550
3573
|
timeZoneName: "short"
|
|
3551
3574
|
}
|
|
3552
3575
|
}
|
|
3553
|
-
},
|
|
3576
|
+
}, ao = {
|
|
3554
3577
|
fallbackLocale: null,
|
|
3555
3578
|
loadingDelay: 200,
|
|
3556
|
-
formats:
|
|
3579
|
+
formats: oo,
|
|
3557
3580
|
warnOnMissingMessages: !0,
|
|
3558
3581
|
handleMissingMessage: void 0,
|
|
3559
3582
|
ignoreTag: !0
|
|
3560
|
-
},
|
|
3561
|
-
function
|
|
3562
|
-
return
|
|
3583
|
+
}, so = ao;
|
|
3584
|
+
function ke() {
|
|
3585
|
+
return so;
|
|
3563
3586
|
}
|
|
3564
|
-
const $t =
|
|
3565
|
-
var
|
|
3587
|
+
const $t = vt(!1);
|
|
3588
|
+
var lo = Object.defineProperty, uo = Object.defineProperties, co = Object.getOwnPropertyDescriptors, En = Object.getOwnPropertySymbols, ho = Object.prototype.hasOwnProperty, fo = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, po = (e, t) => {
|
|
3566
3589
|
for (var n in t || (t = {}))
|
|
3567
|
-
|
|
3590
|
+
ho.call(t, n) && xn(e, n, t[n]);
|
|
3568
3591
|
if (En)
|
|
3569
3592
|
for (var n of En(t))
|
|
3570
|
-
|
|
3593
|
+
fo.call(t, n) && xn(e, n, t[n]);
|
|
3571
3594
|
return e;
|
|
3572
|
-
},
|
|
3595
|
+
}, mo = (e, t) => uo(e, co(t));
|
|
3573
3596
|
let Kt;
|
|
3574
|
-
const
|
|
3597
|
+
const bt = vt(null);
|
|
3575
3598
|
function _n(e) {
|
|
3576
3599
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3577
3600
|
}
|
|
3578
|
-
function
|
|
3601
|
+
function _t(e, t = ke().fallbackLocale) {
|
|
3579
3602
|
const n = _n(e);
|
|
3580
3603
|
return t ? [.../* @__PURE__ */ new Set([...n, ..._n(t)])] : n;
|
|
3581
3604
|
}
|
|
3582
|
-
function
|
|
3605
|
+
function Oe() {
|
|
3583
3606
|
return Kt != null ? Kt : void 0;
|
|
3584
3607
|
}
|
|
3585
|
-
|
|
3608
|
+
bt.subscribe((e) => {
|
|
3586
3609
|
Kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3587
3610
|
});
|
|
3588
|
-
const
|
|
3589
|
-
if (e &&
|
|
3590
|
-
const { loadingDelay: t } =
|
|
3611
|
+
const go = (e) => {
|
|
3612
|
+
if (e && to(e) && Yt(e)) {
|
|
3613
|
+
const { loadingDelay: t } = ke();
|
|
3591
3614
|
let n;
|
|
3592
|
-
return typeof window != "undefined" &&
|
|
3615
|
+
return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
|
|
3593
3616
|
() => $t.set(!0),
|
|
3594
3617
|
t
|
|
3595
3618
|
) : $t.set(!0), ir(e).then(() => {
|
|
3596
|
-
|
|
3619
|
+
bt.set(e);
|
|
3597
3620
|
}).finally(() => {
|
|
3598
3621
|
clearTimeout(n), $t.set(!1);
|
|
3599
3622
|
});
|
|
3600
3623
|
}
|
|
3601
|
-
return
|
|
3602
|
-
},
|
|
3603
|
-
set:
|
|
3604
|
-
}),
|
|
3624
|
+
return bt.set(e);
|
|
3625
|
+
}, ze = mo(po({}, bt), {
|
|
3626
|
+
set: go
|
|
3627
|
+
}), Bt = (e) => {
|
|
3605
3628
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3606
3629
|
return (r) => {
|
|
3607
3630
|
const i = JSON.stringify(r);
|
|
3608
3631
|
return i in t ? t[i] : t[i] = e(r);
|
|
3609
3632
|
};
|
|
3610
3633
|
};
|
|
3611
|
-
var
|
|
3634
|
+
var bo = Object.defineProperty, yt = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rn = (e, t) => {
|
|
3612
3635
|
for (var n in t || (t = {}))
|
|
3613
3636
|
or.call(t, n) && Bn(e, n, t[n]);
|
|
3614
|
-
if (
|
|
3615
|
-
for (var n of
|
|
3637
|
+
if (yt)
|
|
3638
|
+
for (var n of yt(t))
|
|
3616
3639
|
ar.call(t, n) && Bn(e, n, t[n]);
|
|
3617
3640
|
return e;
|
|
3618
|
-
},
|
|
3641
|
+
}, We = (e, t) => {
|
|
3619
3642
|
var n = {};
|
|
3620
3643
|
for (var r in e)
|
|
3621
3644
|
or.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3622
|
-
if (e != null &&
|
|
3623
|
-
for (var r of
|
|
3645
|
+
if (e != null && yt)
|
|
3646
|
+
for (var r of yt(e))
|
|
3624
3647
|
t.indexOf(r) < 0 && ar.call(e, r) && (n[r] = e[r]);
|
|
3625
3648
|
return n;
|
|
3626
3649
|
};
|
|
3627
|
-
const
|
|
3628
|
-
const { formats: n } =
|
|
3650
|
+
const rt = (e, t) => {
|
|
3651
|
+
const { formats: n } = ke();
|
|
3629
3652
|
if (e in n && t in n[e])
|
|
3630
3653
|
return n[e][t];
|
|
3631
3654
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3632
|
-
},
|
|
3655
|
+
}, yo = Bt(
|
|
3633
3656
|
(e) => {
|
|
3634
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3657
|
+
var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
|
|
3635
3658
|
if (n == null)
|
|
3636
3659
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3637
|
-
return r && (i =
|
|
3660
|
+
return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
|
|
3638
3661
|
}
|
|
3639
|
-
),
|
|
3662
|
+
), vo = Bt(
|
|
3640
3663
|
(e) => {
|
|
3641
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3664
|
+
var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
|
|
3642
3665
|
if (n == null)
|
|
3643
3666
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3644
|
-
return r ? i =
|
|
3667
|
+
return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3645
3668
|
}
|
|
3646
|
-
),
|
|
3669
|
+
), Eo = Bt(
|
|
3647
3670
|
(e) => {
|
|
3648
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3671
|
+
var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
|
|
3649
3672
|
if (n == null)
|
|
3650
3673
|
throw new Error(
|
|
3651
3674
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3652
3675
|
);
|
|
3653
|
-
return r ? i =
|
|
3676
|
+
return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3654
3677
|
}
|
|
3655
|
-
),
|
|
3678
|
+
), xo = (e = {}) => {
|
|
3656
3679
|
var t = e, {
|
|
3657
|
-
locale: n =
|
|
3658
|
-
} = t, r =
|
|
3680
|
+
locale: n = Oe()
|
|
3681
|
+
} = t, r = We(t, [
|
|
3659
3682
|
"locale"
|
|
3660
3683
|
]);
|
|
3661
|
-
return
|
|
3662
|
-
},
|
|
3684
|
+
return yo(rn({ locale: n }, r));
|
|
3685
|
+
}, _o = (e = {}) => {
|
|
3663
3686
|
var t = e, {
|
|
3664
|
-
locale: n =
|
|
3665
|
-
} = t, r =
|
|
3687
|
+
locale: n = Oe()
|
|
3688
|
+
} = t, r = We(t, [
|
|
3666
3689
|
"locale"
|
|
3667
3690
|
]);
|
|
3668
|
-
return
|
|
3669
|
-
},
|
|
3691
|
+
return vo(rn({ locale: n }, r));
|
|
3692
|
+
}, Bo = (e = {}) => {
|
|
3670
3693
|
var t = e, {
|
|
3671
|
-
locale: n =
|
|
3672
|
-
} = t, r =
|
|
3694
|
+
locale: n = Oe()
|
|
3695
|
+
} = t, r = We(t, [
|
|
3673
3696
|
"locale"
|
|
3674
3697
|
]);
|
|
3675
|
-
return
|
|
3676
|
-
},
|
|
3698
|
+
return Eo(rn({ locale: n }, r));
|
|
3699
|
+
}, To = Bt(
|
|
3677
3700
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3678
|
-
(e, t =
|
|
3679
|
-
ignoreTag:
|
|
3701
|
+
(e, t = Oe()) => new Qi(e, t, ke().formats, {
|
|
3702
|
+
ignoreTag: ke().ignoreTag
|
|
3680
3703
|
})
|
|
3681
|
-
),
|
|
3704
|
+
), wo = (e, t = {}) => {
|
|
3682
3705
|
var n, r, i, o;
|
|
3683
3706
|
let l = t;
|
|
3684
3707
|
typeof e == "object" && (l = e, e = l.id);
|
|
3685
3708
|
const {
|
|
3686
|
-
values:
|
|
3687
|
-
locale: c =
|
|
3709
|
+
values: s,
|
|
3710
|
+
locale: c = Oe(),
|
|
3688
3711
|
default: u
|
|
3689
3712
|
} = l;
|
|
3690
3713
|
if (c == null)
|
|
@@ -3693,33 +3716,33 @@ const nt = (e, t) => {
|
|
|
3693
3716
|
);
|
|
3694
3717
|
let d = er(e, c);
|
|
3695
3718
|
if (!d)
|
|
3696
|
-
d = (o = (i = (r = (n =
|
|
3719
|
+
d = (o = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3697
3720
|
else if (typeof d != "string")
|
|
3698
3721
|
return console.warn(
|
|
3699
3722
|
`[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.`
|
|
3700
3723
|
), d;
|
|
3701
|
-
if (!
|
|
3724
|
+
if (!s)
|
|
3702
3725
|
return d;
|
|
3703
|
-
let
|
|
3726
|
+
let g = d;
|
|
3704
3727
|
try {
|
|
3705
|
-
|
|
3706
|
-
} catch (
|
|
3707
|
-
|
|
3728
|
+
g = To(d, c).format(s);
|
|
3729
|
+
} catch (b) {
|
|
3730
|
+
b instanceof Error && console.warn(
|
|
3708
3731
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3709
|
-
|
|
3732
|
+
b.message
|
|
3710
3733
|
);
|
|
3711
3734
|
}
|
|
3712
|
-
return
|
|
3713
|
-
},
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3735
|
+
return g;
|
|
3736
|
+
}, So = (e, t) => Bo(t).format(e), Ao = (e, t) => _o(t).format(e), Co = (e, t) => xo(t).format(e), Ho = (e, t = Oe()) => er(e, t), Oo = Xe([ze, it], () => wo);
|
|
3737
|
+
Xe([ze], () => So);
|
|
3738
|
+
Xe([ze], () => Ao);
|
|
3739
|
+
Xe([ze], () => Co);
|
|
3740
|
+
Xe([ze, it], () => Ho);
|
|
3718
3741
|
function Tn(e, t) {
|
|
3719
3742
|
nr(e, t);
|
|
3720
3743
|
}
|
|
3721
|
-
function
|
|
3722
|
-
|
|
3744
|
+
function Ro(e) {
|
|
3745
|
+
ze.set(e);
|
|
3723
3746
|
}
|
|
3724
3747
|
const wn = {
|
|
3725
3748
|
en: {
|
|
@@ -3929,35 +3952,35 @@ var en = { exports: {} };
|
|
|
3929
3952
|
*/
|
|
3930
3953
|
(function(e, t) {
|
|
3931
3954
|
(function(n) {
|
|
3932
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest,
|
|
3933
|
-
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(
|
|
3955
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, u = n.document, d = n.Promise, g = n.fetch, b = n.Response, _ = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
|
|
3956
|
+
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
|
|
3934
3957
|
u.readyState = "complete";
|
|
3935
|
-
}, !1)), o == null &&
|
|
3936
|
-
return new
|
|
3937
|
-
}), Object.create == null && (Object.create = function(
|
|
3938
|
-
function
|
|
3958
|
+
}, !1)), o == null && s != null && (o = function() {
|
|
3959
|
+
return new s("Microsoft.XMLHTTP");
|
|
3960
|
+
}), Object.create == null && (Object.create = function(a) {
|
|
3961
|
+
function f() {
|
|
3939
3962
|
}
|
|
3940
|
-
return
|
|
3963
|
+
return f.prototype = a, new f();
|
|
3941
3964
|
}), Date.now || (Date.now = function() {
|
|
3942
3965
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3943
|
-
}),
|
|
3944
|
-
var
|
|
3945
|
-
|
|
3946
|
-
var p =
|
|
3947
|
-
return
|
|
3948
|
-
var
|
|
3949
|
-
return p._reader =
|
|
3950
|
-
status:
|
|
3951
|
-
statusText:
|
|
3952
|
-
headers:
|
|
3966
|
+
}), T == null) {
|
|
3967
|
+
var x = g;
|
|
3968
|
+
g = function(a, f) {
|
|
3969
|
+
var p = f.signal;
|
|
3970
|
+
return x(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(h) {
|
|
3971
|
+
var E = h.body.getReader();
|
|
3972
|
+
return p._reader = E, p._aborted && p._reader.cancel(), {
|
|
3973
|
+
status: h.status,
|
|
3974
|
+
statusText: h.statusText,
|
|
3975
|
+
headers: h.headers,
|
|
3953
3976
|
body: {
|
|
3954
3977
|
getReader: function() {
|
|
3955
|
-
return
|
|
3978
|
+
return E;
|
|
3956
3979
|
}
|
|
3957
3980
|
}
|
|
3958
3981
|
};
|
|
3959
3982
|
});
|
|
3960
|
-
},
|
|
3983
|
+
}, T = function() {
|
|
3961
3984
|
this.signal = {
|
|
3962
3985
|
_reader: null,
|
|
3963
3986
|
_aborted: !1
|
|
@@ -3966,407 +3989,407 @@ var en = { exports: {} };
|
|
|
3966
3989
|
};
|
|
3967
3990
|
};
|
|
3968
3991
|
}
|
|
3969
|
-
function
|
|
3992
|
+
function S() {
|
|
3970
3993
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
3971
3994
|
}
|
|
3972
|
-
|
|
3973
|
-
function
|
|
3974
|
-
if (
|
|
3975
|
-
return
|
|
3976
|
-
if (
|
|
3977
|
-
return
|
|
3978
|
-
if (
|
|
3979
|
-
return
|
|
3995
|
+
S.prototype.decode = function(a) {
|
|
3996
|
+
function f(P, G, w) {
|
|
3997
|
+
if (w === 1)
|
|
3998
|
+
return P >= 128 >> G && P << G <= 2047;
|
|
3999
|
+
if (w === 2)
|
|
4000
|
+
return P >= 2048 >> G && P << G <= 55295 || P >= 57344 >> G && P << G <= 65535;
|
|
4001
|
+
if (w === 3)
|
|
4002
|
+
return P >= 65536 >> G && P << G <= 1114111;
|
|
3980
4003
|
throw new Error();
|
|
3981
4004
|
}
|
|
3982
|
-
function p(
|
|
3983
|
-
if (
|
|
3984
|
-
return
|
|
3985
|
-
if (
|
|
3986
|
-
return
|
|
3987
|
-
if (
|
|
4005
|
+
function p(P, G) {
|
|
4006
|
+
if (P === 6 * 1)
|
|
4007
|
+
return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
|
|
4008
|
+
if (P === 6 * 2)
|
|
4009
|
+
return G > 15 ? 3 : 2;
|
|
4010
|
+
if (P === 6 * 3)
|
|
3988
4011
|
return 3;
|
|
3989
4012
|
throw new Error();
|
|
3990
4013
|
}
|
|
3991
|
-
for (var
|
|
3992
|
-
var
|
|
3993
|
-
v !== 0 && (
|
|
4014
|
+
for (var h = 65533, E = "", v = this.bitsNeeded, m = this.codePoint, L = 0; L < a.length; L += 1) {
|
|
4015
|
+
var A = a[L];
|
|
4016
|
+
v !== 0 && (A < 128 || A > 191 || !f(m << 6 | A & 63, v - 6, p(v, m))) && (v = 0, m = h, E += String.fromCharCode(m)), v === 0 ? (A >= 0 && A <= 127 ? (v = 0, m = A) : A >= 192 && A <= 223 ? (v = 6 * 1, m = A & 31) : A >= 224 && A <= 239 ? (v = 6 * 2, m = A & 15) : A >= 240 && A <= 247 ? (v = 6 * 3, m = A & 7) : (v = 0, m = h), v !== 0 && !f(m, v, p(v, m)) && (v = 0, m = h)) : (v -= 6, m = m << 6 | A & 63), v === 0 && (m <= 65535 ? E += String.fromCharCode(m) : (E += String.fromCharCode(55296 + (m - 65535 - 1 >> 10)), E += String.fromCharCode(56320 + (m - 65535 - 1 & 1023))));
|
|
3994
4017
|
}
|
|
3995
|
-
return this.bitsNeeded = v, this.codePoint =
|
|
4018
|
+
return this.bitsNeeded = v, this.codePoint = m, E;
|
|
3996
4019
|
};
|
|
3997
|
-
var
|
|
4020
|
+
var D = function() {
|
|
3998
4021
|
try {
|
|
3999
|
-
return new
|
|
4000
|
-
} catch (
|
|
4001
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
4022
|
+
return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
|
|
4023
|
+
} catch (a) {
|
|
4024
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
|
|
4002
4025
|
}
|
|
4003
4026
|
return !1;
|
|
4004
4027
|
};
|
|
4005
|
-
(
|
|
4006
|
-
var
|
|
4028
|
+
(_ == null || B == null || !D()) && (_ = S);
|
|
4029
|
+
var H = function() {
|
|
4007
4030
|
};
|
|
4008
|
-
function
|
|
4009
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
4031
|
+
function U(a) {
|
|
4032
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = H, this.onload = H, this.onerror = H, this.onreadystatechange = H, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = H;
|
|
4010
4033
|
}
|
|
4011
|
-
|
|
4034
|
+
U.prototype.open = function(a, f) {
|
|
4012
4035
|
this._abort(!0);
|
|
4013
|
-
var p = this,
|
|
4014
|
-
this._abort = function(
|
|
4015
|
-
p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (
|
|
4036
|
+
var p = this, h = this._xhr, E = 1, v = 0;
|
|
4037
|
+
this._abort = function(w) {
|
|
4038
|
+
p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (E === 1 || E === 2 || E === 3) && (E = 4, h.onload = H, h.onerror = H, h.onabort = H, h.onprogress = H, h.onreadystatechange = H, h.abort(), v !== 0 && (i(v), v = 0), w || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), E = 0;
|
|
4016
4039
|
};
|
|
4017
|
-
var
|
|
4018
|
-
if (
|
|
4019
|
-
var
|
|
4020
|
-
if ("contentType" in
|
|
4021
|
-
|
|
4040
|
+
var m = function() {
|
|
4041
|
+
if (E === 1) {
|
|
4042
|
+
var w = 0, V = "", be = void 0;
|
|
4043
|
+
if ("contentType" in h)
|
|
4044
|
+
w = 200, V = "OK", be = h.contentType;
|
|
4022
4045
|
else
|
|
4023
4046
|
try {
|
|
4024
|
-
|
|
4025
|
-
} catch (
|
|
4026
|
-
|
|
4047
|
+
w = h.status, V = h.statusText, be = h.getResponseHeader("Content-Type");
|
|
4048
|
+
} catch (Je) {
|
|
4049
|
+
w = 0, V = "", be = void 0;
|
|
4027
4050
|
}
|
|
4028
|
-
|
|
4051
|
+
w !== 0 && (E = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = be, p.onreadystatechange());
|
|
4029
4052
|
}
|
|
4030
|
-
},
|
|
4031
|
-
if (
|
|
4032
|
-
|
|
4033
|
-
var
|
|
4053
|
+
}, L = function() {
|
|
4054
|
+
if (m(), E === 2 || E === 3) {
|
|
4055
|
+
E = 3;
|
|
4056
|
+
var w = "";
|
|
4034
4057
|
try {
|
|
4035
|
-
|
|
4036
|
-
} catch (
|
|
4058
|
+
w = h.responseText;
|
|
4059
|
+
} catch (V) {
|
|
4037
4060
|
}
|
|
4038
|
-
p.readyState = 3, p.responseText =
|
|
4061
|
+
p.readyState = 3, p.responseText = w, p.onprogress();
|
|
4039
4062
|
}
|
|
4040
|
-
},
|
|
4041
|
-
if ((
|
|
4042
|
-
preventDefault:
|
|
4043
|
-
}),
|
|
4044
|
-
if (
|
|
4045
|
-
p.onload(
|
|
4046
|
-
else if (
|
|
4047
|
-
p.onerror(
|
|
4048
|
-
else if (
|
|
4049
|
-
p.onabort(
|
|
4063
|
+
}, A = function(w, V) {
|
|
4064
|
+
if ((V == null || V.preventDefault == null) && (V = {
|
|
4065
|
+
preventDefault: H
|
|
4066
|
+
}), L(), E === 1 || E === 2 || E === 3) {
|
|
4067
|
+
if (E = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, w === "load")
|
|
4068
|
+
p.onload(V);
|
|
4069
|
+
else if (w === "error")
|
|
4070
|
+
p.onerror(V);
|
|
4071
|
+
else if (w === "abort")
|
|
4072
|
+
p.onabort(V);
|
|
4050
4073
|
else
|
|
4051
4074
|
throw new TypeError();
|
|
4052
4075
|
p.onreadystatechange();
|
|
4053
4076
|
}
|
|
4054
|
-
},
|
|
4055
|
-
|
|
4056
|
-
},
|
|
4077
|
+
}, P = function(w) {
|
|
4078
|
+
h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && A(h.responseText === "" ? "error" : "load", w) : h.readyState === 3 ? "onprogress" in h || L() : h.readyState === 2 && m());
|
|
4079
|
+
}, G = function() {
|
|
4057
4080
|
v = r(function() {
|
|
4058
|
-
|
|
4059
|
-
}, 500),
|
|
4081
|
+
G();
|
|
4082
|
+
}, 500), h.readyState === 3 && L();
|
|
4060
4083
|
};
|
|
4061
|
-
"onload" in
|
|
4062
|
-
|
|
4063
|
-
}), "onerror" in
|
|
4064
|
-
|
|
4065
|
-
}), "onabort" in
|
|
4066
|
-
|
|
4067
|
-
}), "onprogress" in
|
|
4068
|
-
|
|
4069
|
-
}), ("contentType" in
|
|
4070
|
-
|
|
4084
|
+
"onload" in h && (h.onload = function(w) {
|
|
4085
|
+
A("load", w);
|
|
4086
|
+
}), "onerror" in h && (h.onerror = function(w) {
|
|
4087
|
+
A("error", w);
|
|
4088
|
+
}), "onabort" in h && (h.onabort = function(w) {
|
|
4089
|
+
A("abort", w);
|
|
4090
|
+
}), "onprogress" in h && (h.onprogress = L), "onreadystatechange" in h && (h.onreadystatechange = function(w) {
|
|
4091
|
+
P(w);
|
|
4092
|
+
}), ("contentType" in h || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(a, f, !0), "readyState" in h && (v = r(function() {
|
|
4093
|
+
G();
|
|
4071
4094
|
}, 0));
|
|
4072
|
-
},
|
|
4095
|
+
}, U.prototype.abort = function() {
|
|
4073
4096
|
this._abort(!1);
|
|
4074
|
-
},
|
|
4097
|
+
}, U.prototype.getResponseHeader = function(a) {
|
|
4075
4098
|
return this._contentType;
|
|
4076
|
-
},
|
|
4099
|
+
}, U.prototype.setRequestHeader = function(a, f) {
|
|
4077
4100
|
var p = this._xhr;
|
|
4078
|
-
"setRequestHeader" in p && p.setRequestHeader(
|
|
4079
|
-
},
|
|
4101
|
+
"setRequestHeader" in p && p.setRequestHeader(a, f);
|
|
4102
|
+
}, U.prototype.getAllResponseHeaders = function() {
|
|
4080
4103
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4081
|
-
},
|
|
4104
|
+
}, U.prototype.send = function() {
|
|
4082
4105
|
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4083
|
-
var
|
|
4084
|
-
|
|
4085
|
-
|
|
4106
|
+
var a = this;
|
|
4107
|
+
a._sendTimeout = r(function() {
|
|
4108
|
+
a._sendTimeout = 0, a.send();
|
|
4086
4109
|
}, 4);
|
|
4087
4110
|
return;
|
|
4088
4111
|
}
|
|
4089
|
-
var
|
|
4090
|
-
"withCredentials" in
|
|
4112
|
+
var f = this._xhr;
|
|
4113
|
+
"withCredentials" in f && (f.withCredentials = this.withCredentials);
|
|
4091
4114
|
try {
|
|
4092
|
-
|
|
4115
|
+
f.send(void 0);
|
|
4093
4116
|
} catch (p) {
|
|
4094
4117
|
throw p;
|
|
4095
4118
|
}
|
|
4096
4119
|
};
|
|
4097
|
-
function
|
|
4098
|
-
return
|
|
4099
|
-
return String.fromCharCode(
|
|
4120
|
+
function W(a) {
|
|
4121
|
+
return a.replace(/[A-Z]/g, function(f) {
|
|
4122
|
+
return String.fromCharCode(f.charCodeAt(0) + 32);
|
|
4100
4123
|
});
|
|
4101
4124
|
}
|
|
4102
|
-
function
|
|
4103
|
-
for (var
|
|
4104
|
-
`),
|
|
4105
|
-
var
|
|
4106
|
-
|
|
4125
|
+
function q(a) {
|
|
4126
|
+
for (var f = /* @__PURE__ */ Object.create(null), p = a.split(`\r
|
|
4127
|
+
`), h = 0; h < p.length; h += 1) {
|
|
4128
|
+
var E = p[h], v = E.split(": "), m = v.shift(), L = v.join(": ");
|
|
4129
|
+
f[W(m)] = L;
|
|
4107
4130
|
}
|
|
4108
|
-
this._map =
|
|
4131
|
+
this._map = f;
|
|
4109
4132
|
}
|
|
4110
|
-
|
|
4111
|
-
return this._map[
|
|
4133
|
+
q.prototype.get = function(a) {
|
|
4134
|
+
return this._map[W(a)];
|
|
4112
4135
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4113
|
-
function
|
|
4136
|
+
function Y() {
|
|
4114
4137
|
}
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
var
|
|
4118
|
-
|
|
4119
|
-
var
|
|
4120
|
-
|
|
4121
|
-
},
|
|
4122
|
-
|
|
4123
|
-
},
|
|
4124
|
-
|
|
4125
|
-
},
|
|
4126
|
-
|
|
4127
|
-
},
|
|
4128
|
-
if (
|
|
4129
|
-
var
|
|
4130
|
-
|
|
4138
|
+
Y.prototype.open = function(a, f, p, h, E, v, m) {
|
|
4139
|
+
a.open("GET", E);
|
|
4140
|
+
var L = 0;
|
|
4141
|
+
a.onprogress = function() {
|
|
4142
|
+
var P = a.responseText, G = P.slice(L);
|
|
4143
|
+
L += G.length, p(G);
|
|
4144
|
+
}, a.onerror = function(P) {
|
|
4145
|
+
P.preventDefault(), h(new Error("NetworkError"));
|
|
4146
|
+
}, a.onload = function() {
|
|
4147
|
+
h(null);
|
|
4148
|
+
}, a.onabort = function() {
|
|
4149
|
+
h(null);
|
|
4150
|
+
}, a.onreadystatechange = function() {
|
|
4151
|
+
if (a.readyState === o.HEADERS_RECEIVED) {
|
|
4152
|
+
var P = a.status, G = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
|
|
4153
|
+
f(P, G, w, new q(V));
|
|
4131
4154
|
}
|
|
4132
|
-
},
|
|
4133
|
-
for (var
|
|
4134
|
-
Object.prototype.hasOwnProperty.call(
|
|
4135
|
-
return
|
|
4155
|
+
}, a.withCredentials = v;
|
|
4156
|
+
for (var A in m)
|
|
4157
|
+
Object.prototype.hasOwnProperty.call(m, A) && a.setRequestHeader(A, m[A]);
|
|
4158
|
+
return a.send(), a;
|
|
4136
4159
|
};
|
|
4137
|
-
function
|
|
4138
|
-
this._headers =
|
|
4160
|
+
function $(a) {
|
|
4161
|
+
this._headers = a;
|
|
4139
4162
|
}
|
|
4140
|
-
|
|
4141
|
-
return this._headers.get(
|
|
4163
|
+
$.prototype.get = function(a) {
|
|
4164
|
+
return this._headers.get(a);
|
|
4142
4165
|
};
|
|
4143
|
-
function
|
|
4166
|
+
function R() {
|
|
4144
4167
|
}
|
|
4145
|
-
|
|
4146
|
-
var
|
|
4147
|
-
return
|
|
4148
|
-
headers:
|
|
4168
|
+
R.prototype.open = function(a, f, p, h, E, v, m) {
|
|
4169
|
+
var L = null, A = new T(), P = A.signal, G = new _();
|
|
4170
|
+
return g(E, {
|
|
4171
|
+
headers: m,
|
|
4149
4172
|
credentials: v ? "include" : "same-origin",
|
|
4150
|
-
signal:
|
|
4173
|
+
signal: P,
|
|
4151
4174
|
cache: "no-store"
|
|
4152
|
-
}).then(function(
|
|
4153
|
-
return
|
|
4154
|
-
var
|
|
4155
|
-
|
|
4175
|
+
}).then(function(w) {
|
|
4176
|
+
return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new $(w.headers)), new d(function(V, be) {
|
|
4177
|
+
var Je = function() {
|
|
4178
|
+
L.read().then(function(ie) {
|
|
4156
4179
|
if (ie.done)
|
|
4157
|
-
|
|
4180
|
+
V(void 0);
|
|
4158
4181
|
else {
|
|
4159
|
-
var
|
|
4160
|
-
p(
|
|
4182
|
+
var K = G.decode(ie.value, { stream: !0 });
|
|
4183
|
+
p(K), Je();
|
|
4161
4184
|
}
|
|
4162
4185
|
}).catch(function(ie) {
|
|
4163
|
-
|
|
4186
|
+
be(ie);
|
|
4164
4187
|
});
|
|
4165
4188
|
};
|
|
4166
|
-
|
|
4189
|
+
Je();
|
|
4167
4190
|
});
|
|
4168
|
-
}).catch(function(
|
|
4169
|
-
if (
|
|
4170
|
-
return
|
|
4171
|
-
}).then(function(
|
|
4172
|
-
|
|
4191
|
+
}).catch(function(w) {
|
|
4192
|
+
if (w.name !== "AbortError")
|
|
4193
|
+
return w;
|
|
4194
|
+
}).then(function(w) {
|
|
4195
|
+
h(w);
|
|
4173
4196
|
}), {
|
|
4174
4197
|
abort: function() {
|
|
4175
|
-
|
|
4198
|
+
L != null && L.cancel(), A.abort();
|
|
4176
4199
|
}
|
|
4177
4200
|
};
|
|
4178
4201
|
};
|
|
4179
|
-
function
|
|
4202
|
+
function X() {
|
|
4180
4203
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4181
4204
|
}
|
|
4182
|
-
function
|
|
4205
|
+
function F(a) {
|
|
4183
4206
|
r(function() {
|
|
4184
|
-
throw
|
|
4207
|
+
throw a;
|
|
4185
4208
|
}, 0);
|
|
4186
4209
|
}
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
var
|
|
4190
|
-
if (
|
|
4191
|
-
for (var p =
|
|
4192
|
-
var
|
|
4210
|
+
X.prototype.dispatchEvent = function(a) {
|
|
4211
|
+
a.target = this;
|
|
4212
|
+
var f = this._listeners[a.type];
|
|
4213
|
+
if (f != null)
|
|
4214
|
+
for (var p = f.length, h = 0; h < p; h += 1) {
|
|
4215
|
+
var E = f[h];
|
|
4193
4216
|
try {
|
|
4194
|
-
typeof
|
|
4217
|
+
typeof E.handleEvent == "function" ? E.handleEvent(a) : E.call(this, a);
|
|
4195
4218
|
} catch (v) {
|
|
4196
|
-
|
|
4219
|
+
F(v);
|
|
4197
4220
|
}
|
|
4198
4221
|
}
|
|
4199
|
-
},
|
|
4200
|
-
|
|
4201
|
-
var p = this._listeners,
|
|
4202
|
-
|
|
4203
|
-
for (var
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
},
|
|
4207
|
-
|
|
4208
|
-
var p = this._listeners,
|
|
4209
|
-
if (
|
|
4210
|
-
for (var
|
|
4211
|
-
|
|
4212
|
-
|
|
4222
|
+
}, X.prototype.addEventListener = function(a, f) {
|
|
4223
|
+
a = String(a);
|
|
4224
|
+
var p = this._listeners, h = p[a];
|
|
4225
|
+
h == null && (h = [], p[a] = h);
|
|
4226
|
+
for (var E = !1, v = 0; v < h.length; v += 1)
|
|
4227
|
+
h[v] === f && (E = !0);
|
|
4228
|
+
E || h.push(f);
|
|
4229
|
+
}, X.prototype.removeEventListener = function(a, f) {
|
|
4230
|
+
a = String(a);
|
|
4231
|
+
var p = this._listeners, h = p[a];
|
|
4232
|
+
if (h != null) {
|
|
4233
|
+
for (var E = [], v = 0; v < h.length; v += 1)
|
|
4234
|
+
h[v] !== f && E.push(h[v]);
|
|
4235
|
+
E.length === 0 ? delete p[a] : p[a] = E;
|
|
4213
4236
|
}
|
|
4214
4237
|
};
|
|
4215
|
-
function
|
|
4216
|
-
this.type =
|
|
4238
|
+
function y(a) {
|
|
4239
|
+
this.type = a, this.target = void 0;
|
|
4217
4240
|
}
|
|
4218
|
-
function
|
|
4219
|
-
|
|
4241
|
+
function _e(a, f) {
|
|
4242
|
+
y.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
|
|
4220
4243
|
}
|
|
4221
|
-
|
|
4222
|
-
function
|
|
4223
|
-
|
|
4244
|
+
_e.prototype = Object.create(y.prototype);
|
|
4245
|
+
function Ze(a, f) {
|
|
4246
|
+
y.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
|
|
4224
4247
|
}
|
|
4225
|
-
|
|
4226
|
-
function
|
|
4227
|
-
|
|
4248
|
+
Ze.prototype = Object.create(y.prototype);
|
|
4249
|
+
function Be(a, f) {
|
|
4250
|
+
y.call(this, a), this.error = f.error;
|
|
4228
4251
|
}
|
|
4229
|
-
|
|
4230
|
-
var
|
|
4231
|
-
var p =
|
|
4232
|
-
return p !== p && (p =
|
|
4233
|
-
},
|
|
4234
|
-
return Math.min(Math.max(
|
|
4235
|
-
}, we = function(
|
|
4252
|
+
Be.prototype = Object.create(y.prototype);
|
|
4253
|
+
var Re = -1, me = 0, Te = 1, Ae = 2, Ce = -1, ue = 0, qe = 1, Le = 2, ot = 3, Tt = /^text\/event\-stream(;.*)?$/i, at = 1e3, wt = 18e6, Qe = function(a, f) {
|
|
4254
|
+
var p = a == null ? f : parseInt(a, 10);
|
|
4255
|
+
return p !== p && (p = f), Me(p);
|
|
4256
|
+
}, Me = function(a) {
|
|
4257
|
+
return Math.min(Math.max(a, at), wt);
|
|
4258
|
+
}, we = function(a, f, p) {
|
|
4236
4259
|
try {
|
|
4237
|
-
typeof
|
|
4238
|
-
} catch (
|
|
4239
|
-
|
|
4260
|
+
typeof f == "function" && f.call(a, p);
|
|
4261
|
+
} catch (h) {
|
|
4262
|
+
F(h);
|
|
4240
4263
|
}
|
|
4241
4264
|
};
|
|
4242
|
-
function re(
|
|
4243
|
-
|
|
4265
|
+
function re(a, f) {
|
|
4266
|
+
X.call(this), f = f || {}, 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, Ct(this, a, f);
|
|
4244
4267
|
}
|
|
4245
4268
|
function St() {
|
|
4246
4269
|
return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
|
|
4247
4270
|
}
|
|
4248
|
-
var At =
|
|
4249
|
-
function Ct(
|
|
4250
|
-
|
|
4251
|
-
var
|
|
4252
|
-
if (
|
|
4253
|
-
if (Z === 200 && oe != null &&
|
|
4254
|
-
|
|
4255
|
-
var
|
|
4271
|
+
var At = g != null && b != null && "body" in b.prototype;
|
|
4272
|
+
function Ct(a, f, p) {
|
|
4273
|
+
f = String(f);
|
|
4274
|
+
var h = !!p.withCredentials, E = p.lastEventIdQueryParameterName || "lastEventId", v = Me(1e3), m = Qe(p.heartbeatTimeout, 45e3), L = "", A = v, P = !1, G = 0, w = p.headers || {}, V = p.Transport, be = At && V == null ? void 0 : new U(V != null ? new V() : St()), Je = V != null && typeof V != "string" ? new V() : be == null ? new R() : new Y(), ie = void 0, K = 0, ce = Re, Ne = "", lt = "", ye = "", ut = "", ee = ue, Ht = 0, He = 0, lr = function(Z, z, oe, ae) {
|
|
4275
|
+
if (ce === me)
|
|
4276
|
+
if (Z === 200 && oe != null && Tt.test(oe)) {
|
|
4277
|
+
ce = Te, P = Date.now(), A = v, a.readyState = Te;
|
|
4278
|
+
var te = new Ze("open", {
|
|
4256
4279
|
status: Z,
|
|
4257
4280
|
statusText: z,
|
|
4258
4281
|
headers: ae
|
|
4259
4282
|
});
|
|
4260
|
-
|
|
4283
|
+
a.dispatchEvent(te), we(a, a.onopen, te);
|
|
4261
4284
|
} else {
|
|
4262
|
-
var
|
|
4263
|
-
Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")),
|
|
4264
|
-
var
|
|
4285
|
+
var Q = "";
|
|
4286
|
+
Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
|
|
4287
|
+
var te = new Ze("error", {
|
|
4265
4288
|
status: Z,
|
|
4266
4289
|
statusText: z,
|
|
4267
4290
|
headers: ae
|
|
4268
4291
|
});
|
|
4269
|
-
|
|
4292
|
+
a.dispatchEvent(te), we(a, a.onerror, te), console.error(Q);
|
|
4270
4293
|
}
|
|
4271
4294
|
}, ur = function(Z) {
|
|
4272
|
-
if (
|
|
4295
|
+
if (ce === Te) {
|
|
4273
4296
|
for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
|
|
4274
4297
|
var ae = Z.charCodeAt(oe);
|
|
4275
4298
|
(ae === 10 || ae === 13) && (z = oe);
|
|
4276
4299
|
}
|
|
4277
|
-
var
|
|
4278
|
-
|
|
4279
|
-
for (var
|
|
4280
|
-
var ae =
|
|
4281
|
-
if (
|
|
4282
|
-
|
|
4283
|
-
else if (
|
|
4284
|
-
if (
|
|
4285
|
-
|
|
4286
|
-
var
|
|
4287
|
-
|
|
4288
|
-
`,
|
|
4289
|
-
|
|
4290
|
-
},
|
|
4300
|
+
var te = (z !== -1 ? ut : "") + Z.slice(0, z + 1);
|
|
4301
|
+
ut = (z === -1 ? ut : "") + Z.slice(z + 1), Z !== "" && (P = Date.now(), G += Z.length);
|
|
4302
|
+
for (var Q = 0; Q < te.length; Q += 1) {
|
|
4303
|
+
var ae = te.charCodeAt(Q);
|
|
4304
|
+
if (ee === Ce && ae === 10)
|
|
4305
|
+
ee = ue;
|
|
4306
|
+
else if (ee === Ce && (ee = ue), ae === 13 || ae === 10) {
|
|
4307
|
+
if (ee !== ue) {
|
|
4308
|
+
ee === qe && (He = Q + 1);
|
|
4309
|
+
var ve = te.slice(Ht, He - 1), Ee = te.slice(He + (He < Q && te.charCodeAt(He) === 32 ? 1 : 0), Q);
|
|
4310
|
+
ve === "data" ? (Ne += `
|
|
4311
|
+
`, Ne += Ee) : ve === "id" ? lt = Ee : ve === "event" ? ye = Ee : ve === "retry" ? (v = Qe(Ee, v), A = v) : ve === "heartbeatTimeout" && (m = Qe(Ee, m), K !== 0 && (i(K), K = r(function() {
|
|
4312
|
+
Ye();
|
|
4313
|
+
}, m)));
|
|
4291
4314
|
}
|
|
4292
|
-
if (
|
|
4293
|
-
if (
|
|
4294
|
-
|
|
4295
|
-
var
|
|
4296
|
-
data:
|
|
4297
|
-
lastEventId:
|
|
4315
|
+
if (ee === ue) {
|
|
4316
|
+
if (Ne !== "") {
|
|
4317
|
+
L = lt, ye === "" && (ye = "message");
|
|
4318
|
+
var Ie = new _e(ye, {
|
|
4319
|
+
data: Ne.slice(1),
|
|
4320
|
+
lastEventId: lt
|
|
4298
4321
|
});
|
|
4299
|
-
if (
|
|
4322
|
+
if (a.dispatchEvent(Ie), ye === "open" ? we(a, a.onopen, Ie) : ye === "message" ? we(a, a.onmessage, Ie) : ye === "error" && we(a, a.onerror, Ie), ce === Ae)
|
|
4300
4323
|
return;
|
|
4301
4324
|
}
|
|
4302
|
-
|
|
4325
|
+
Ne = "", ye = "";
|
|
4303
4326
|
}
|
|
4304
|
-
|
|
4327
|
+
ee = ae === 13 ? Ce : ue;
|
|
4305
4328
|
} else
|
|
4306
|
-
|
|
4329
|
+
ee === ue && (Ht = Q, ee = qe), ee === qe ? ae === 58 && (He = Q + 1, ee = Le) : ee === Le && (ee = ot);
|
|
4307
4330
|
}
|
|
4308
4331
|
}
|
|
4309
4332
|
}, an = function(Z) {
|
|
4310
|
-
if (
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
},
|
|
4314
|
-
var z = new
|
|
4315
|
-
|
|
4333
|
+
if (ce === Te || ce === me) {
|
|
4334
|
+
ce = Re, K !== 0 && (i(K), K = 0), K = r(function() {
|
|
4335
|
+
Ye();
|
|
4336
|
+
}, A), A = Me(Math.min(v * 16, A * 2)), a.readyState = me;
|
|
4337
|
+
var z = new Be("error", { error: Z });
|
|
4338
|
+
a.dispatchEvent(z), we(a, a.onerror, z), Z != null && console.error(Z);
|
|
4316
4339
|
}
|
|
4317
4340
|
}, Ot = function() {
|
|
4318
|
-
|
|
4319
|
-
},
|
|
4320
|
-
if (
|
|
4321
|
-
if (!
|
|
4322
|
-
an(new Error("No activity within " +
|
|
4341
|
+
ce = Ae, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ae;
|
|
4342
|
+
}, Ye = function() {
|
|
4343
|
+
if (K = 0, ce !== Re) {
|
|
4344
|
+
if (!P && ie != null)
|
|
4345
|
+
an(new Error("No activity within " + m + " milliseconds. " + (ce === me ? "No response received." : G + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
|
|
4323
4346
|
else {
|
|
4324
|
-
var Z = Math.max((
|
|
4325
|
-
|
|
4326
|
-
|
|
4347
|
+
var Z = Math.max((P || Date.now()) + m - Date.now(), 1);
|
|
4348
|
+
P = !1, K = r(function() {
|
|
4349
|
+
Ye();
|
|
4327
4350
|
}, Z);
|
|
4328
4351
|
}
|
|
4329
4352
|
return;
|
|
4330
4353
|
}
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
},
|
|
4334
|
-
var z =
|
|
4335
|
-
if (
|
|
4336
|
-
var oe =
|
|
4337
|
-
z = oe === -1 ?
|
|
4338
|
-
return
|
|
4339
|
-
}), z += (
|
|
4354
|
+
P = !1, G = 0, K = r(function() {
|
|
4355
|
+
Ye();
|
|
4356
|
+
}, m), ce = me, Ne = "", ye = "", lt = L, ut = "", Ht = 0, He = 0, ee = ue;
|
|
4357
|
+
var z = f;
|
|
4358
|
+
if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && L !== "") {
|
|
4359
|
+
var oe = f.indexOf("?");
|
|
4360
|
+
z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Ie) {
|
|
4361
|
+
return Ie === E ? "" : Ee;
|
|
4362
|
+
}), z += (f.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(L);
|
|
4340
4363
|
}
|
|
4341
|
-
var ae =
|
|
4342
|
-
|
|
4343
|
-
var
|
|
4344
|
-
if (
|
|
4345
|
-
for (var
|
|
4346
|
-
Object.prototype.hasOwnProperty.call(
|
|
4364
|
+
var ae = a.withCredentials, te = {};
|
|
4365
|
+
te.Accept = "text/event-stream";
|
|
4366
|
+
var Q = a.headers;
|
|
4367
|
+
if (Q != null)
|
|
4368
|
+
for (var ve in Q)
|
|
4369
|
+
Object.prototype.hasOwnProperty.call(Q, ve) && (te[ve] = Q[ve]);
|
|
4347
4370
|
try {
|
|
4348
|
-
ie =
|
|
4349
|
-
} catch (
|
|
4350
|
-
throw Ot(),
|
|
4371
|
+
ie = Je.open(be, lr, ur, an, z, ae, te);
|
|
4372
|
+
} catch (Ee) {
|
|
4373
|
+
throw Ot(), Ee;
|
|
4351
4374
|
}
|
|
4352
4375
|
};
|
|
4353
|
-
|
|
4376
|
+
a.url = f, a.readyState = me, a.withCredentials = h, a.headers = w, a._close = Ot, Ye();
|
|
4354
4377
|
}
|
|
4355
|
-
re.prototype = Object.create(
|
|
4378
|
+
re.prototype = Object.create(X.prototype), re.prototype.CONNECTING = me, re.prototype.OPEN = Te, re.prototype.CLOSED = Ae, re.prototype.close = function() {
|
|
4356
4379
|
this._close();
|
|
4357
|
-
}, re.CONNECTING =
|
|
4358
|
-
var
|
|
4359
|
-
o != null && (c == null || !("withCredentials" in c.prototype)) && (
|
|
4380
|
+
}, re.CONNECTING = me, re.OPEN = Te, re.CLOSED = Ae, re.prototype.withCredentials = void 0;
|
|
4381
|
+
var st = c;
|
|
4382
|
+
o != null && (c == null || !("withCredentials" in c.prototype)) && (st = re), function(a) {
|
|
4360
4383
|
{
|
|
4361
|
-
var
|
|
4362
|
-
|
|
4384
|
+
var f = a(t);
|
|
4385
|
+
f !== void 0 && (e.exports = f);
|
|
4363
4386
|
}
|
|
4364
|
-
}(function(
|
|
4365
|
-
|
|
4387
|
+
}(function(a) {
|
|
4388
|
+
a.EventSourcePolyfill = re, a.NativeEventSource = c, a.EventSource = st;
|
|
4366
4389
|
});
|
|
4367
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self :
|
|
4390
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : jr : globalThis);
|
|
4368
4391
|
})(en, en.exports);
|
|
4369
|
-
var
|
|
4392
|
+
var Lo = en.exports;
|
|
4370
4393
|
/*!
|
|
4371
4394
|
* currency.js - v2.0.4
|
|
4372
4395
|
* http://scurker.github.io/currency.js
|
|
@@ -4374,7 +4397,7 @@ var Ho = en.exports;
|
|
|
4374
4397
|
* Copyright (c) 2021 Jason Wilson
|
|
4375
4398
|
* Released under MIT license
|
|
4376
4399
|
*/
|
|
4377
|
-
var
|
|
4400
|
+
var Mo = {
|
|
4378
4401
|
symbol: "$",
|
|
4379
4402
|
separator: ",",
|
|
4380
4403
|
decimal: ".",
|
|
@@ -4382,43 +4405,43 @@ var Oo = {
|
|
|
4382
4405
|
precision: 2,
|
|
4383
4406
|
pattern: "!#",
|
|
4384
4407
|
negativePattern: "-!#",
|
|
4385
|
-
format:
|
|
4408
|
+
format: Do,
|
|
4386
4409
|
fromCents: !1
|
|
4387
4410
|
}, sr = function(t) {
|
|
4388
4411
|
return Math.round(t);
|
|
4389
4412
|
}, on = function(t) {
|
|
4390
4413
|
return Math.pow(10, t);
|
|
4391
|
-
},
|
|
4414
|
+
}, No = function(t, n) {
|
|
4392
4415
|
return sr(t / n) * n;
|
|
4393
|
-
},
|
|
4394
|
-
function
|
|
4416
|
+
}, Io = /(\d)(?=(\d{3})+\b)/g, Po = /(\d)(?=(\d\d)+\d\b)/g;
|
|
4417
|
+
function he(e, t) {
|
|
4395
4418
|
var n = this;
|
|
4396
|
-
if (!(n instanceof
|
|
4397
|
-
return new
|
|
4398
|
-
var r = Object.assign({},
|
|
4399
|
-
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups =
|
|
4400
|
-
}
|
|
4401
|
-
function
|
|
4402
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision,
|
|
4403
|
-
if (d &&
|
|
4419
|
+
if (!(n instanceof he))
|
|
4420
|
+
return new he(e, t);
|
|
4421
|
+
var r = Object.assign({}, Mo, t), i = on(r.precision), o = pt(e, r);
|
|
4422
|
+
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Po : r.groups = Io, this.s = r, this.p = i;
|
|
4423
|
+
}
|
|
4424
|
+
function pt(e, t) {
|
|
4425
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, c = on(l), u = typeof e == "number", d = e instanceof he;
|
|
4426
|
+
if (d && s)
|
|
4404
4427
|
return e.intValue;
|
|
4405
4428
|
if (u || d)
|
|
4406
4429
|
r = d ? e.value : e;
|
|
4407
4430
|
else if (typeof e == "string") {
|
|
4408
|
-
var
|
|
4409
|
-
r = e.replace(/\((.*)\)/, "-$1").replace(
|
|
4431
|
+
var g = new RegExp("[^-\\d" + i + "]", "g"), b = new RegExp("\\" + i, "g");
|
|
4432
|
+
r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(b, "."), r = r || 0;
|
|
4410
4433
|
} else {
|
|
4411
4434
|
if (o)
|
|
4412
4435
|
throw Error("Invalid Input");
|
|
4413
4436
|
r = 0;
|
|
4414
4437
|
}
|
|
4415
|
-
return
|
|
4438
|
+
return s || (r *= c, r = r.toFixed(4)), n ? sr(r) : r;
|
|
4416
4439
|
}
|
|
4417
|
-
function
|
|
4418
|
-
var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal,
|
|
4419
|
-
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(
|
|
4440
|
+
function Do(e, t) {
|
|
4441
|
+
var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], d = c[1];
|
|
4442
|
+
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
|
|
4420
4443
|
}
|
|
4421
|
-
|
|
4444
|
+
he.prototype = {
|
|
4422
4445
|
/**
|
|
4423
4446
|
* Adds values together.
|
|
4424
4447
|
* @param {number} number
|
|
@@ -4426,7 +4449,7 @@ ce.prototype = {
|
|
|
4426
4449
|
*/
|
|
4427
4450
|
add: function(t) {
|
|
4428
4451
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4429
|
-
return
|
|
4452
|
+
return he((n += pt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4430
4453
|
},
|
|
4431
4454
|
/**
|
|
4432
4455
|
* Subtracts value.
|
|
@@ -4435,7 +4458,7 @@ ce.prototype = {
|
|
|
4435
4458
|
*/
|
|
4436
4459
|
subtract: function(t) {
|
|
4437
4460
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4438
|
-
return
|
|
4461
|
+
return he((n -= pt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4439
4462
|
},
|
|
4440
4463
|
/**
|
|
4441
4464
|
* Multiplies values.
|
|
@@ -4444,7 +4467,7 @@ ce.prototype = {
|
|
|
4444
4467
|
*/
|
|
4445
4468
|
multiply: function(t) {
|
|
4446
4469
|
var n = this.intValue, r = this.s;
|
|
4447
|
-
return
|
|
4470
|
+
return he((n *= t) / (r.fromCents ? 1 : on(r.precision)), r);
|
|
4448
4471
|
},
|
|
4449
4472
|
/**
|
|
4450
4473
|
* Divides value.
|
|
@@ -4453,7 +4476,7 @@ ce.prototype = {
|
|
|
4453
4476
|
*/
|
|
4454
4477
|
divide: function(t) {
|
|
4455
4478
|
var n = this.intValue, r = this.s;
|
|
4456
|
-
return
|
|
4479
|
+
return he(n /= pt(t, r, !1), r);
|
|
4457
4480
|
},
|
|
4458
4481
|
/**
|
|
4459
4482
|
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
|
@@ -4462,9 +4485,9 @@ ce.prototype = {
|
|
|
4462
4485
|
* @returns {array}
|
|
4463
4486
|
*/
|
|
4464
4487
|
distribute: function(t) {
|
|
4465
|
-
for (var n = this.intValue, r = this.p, i = this.s, o = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t),
|
|
4466
|
-
var u =
|
|
4467
|
-
|
|
4488
|
+
for (var n = this.intValue, r = this.p, i = this.s, o = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - l * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
|
|
4489
|
+
var u = he(l / c, i);
|
|
4490
|
+
s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)), o.push(u);
|
|
4468
4491
|
}
|
|
4469
4492
|
return o;
|
|
4470
4493
|
},
|
|
@@ -4498,7 +4521,7 @@ ce.prototype = {
|
|
|
4498
4521
|
*/
|
|
4499
4522
|
toString: function() {
|
|
4500
4523
|
var t = this.intValue, n = this.p, r = this.s;
|
|
4501
|
-
return
|
|
4524
|
+
return No(t / n, r.increment).toFixed(r.precision);
|
|
4502
4525
|
},
|
|
4503
4526
|
/**
|
|
4504
4527
|
* Value for JSON serialization.
|
|
@@ -4508,7 +4531,7 @@ ce.prototype = {
|
|
|
4508
4531
|
return this.value;
|
|
4509
4532
|
}
|
|
4510
4533
|
};
|
|
4511
|
-
function
|
|
4534
|
+
function Uo(e) {
|
|
4512
4535
|
br(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
4513
4536
|
}
|
|
4514
4537
|
function Sn(e, t, n) {
|
|
@@ -4519,7 +4542,7 @@ function An(e, t, n) {
|
|
|
4519
4542
|
const r = e.slice();
|
|
4520
4543
|
return r[53] = t[n], r;
|
|
4521
4544
|
}
|
|
4522
|
-
function
|
|
4545
|
+
function Fo(e) {
|
|
4523
4546
|
let t, n, r = (
|
|
4524
4547
|
/*balances*/
|
|
4525
4548
|
(e[1].Total ? (
|
|
@@ -4529,58 +4552,58 @@ function Po(e) {
|
|
|
4529
4552
|
e[1].Total[0].amount
|
|
4530
4553
|
)
|
|
4531
4554
|
) : "0") + ""
|
|
4532
|
-
), i, o, l,
|
|
4555
|
+
), i, o, l, s, c, u, d, g, b, _, B, T, x = (
|
|
4533
4556
|
/*showBalance*/
|
|
4534
4557
|
e[4] && Cn(e)
|
|
4535
4558
|
);
|
|
4536
4559
|
return {
|
|
4537
4560
|
c() {
|
|
4538
|
-
t =
|
|
4561
|
+
t = k("div"), n = k("p"), i = fe(r), o = pe(), l = fe(
|
|
4539
4562
|
/*currency*/
|
|
4540
4563
|
e[5]
|
|
4541
|
-
),
|
|
4542
|
-
e[3] ? "TriangleActive" : "TriangleInactive"),
|
|
4564
|
+
), s = pe(), c = k("span"), u = un("svg"), d = un("path"), b = pe(), x && x.c(), _ = Er(), N(d, "id", "arrow"), N(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), N(d, "transform", "translate(-274.511 -441.088)"), N(d, "fill", "#d1d1d1"), N(u, "xmlns", "http://www.w3.org/2000/svg"), N(u, "width", "14"), N(u, "height", "6.835"), N(u, "viewBox", "0 0 14 6.835"), N(c, "class", g = /*modalOpened*/
|
|
4565
|
+
e[3] ? "TriangleActive" : "TriangleInactive"), N(t, "class", "BalanceValue");
|
|
4543
4566
|
},
|
|
4544
|
-
m(
|
|
4545
|
-
ge(
|
|
4567
|
+
m(S, D) {
|
|
4568
|
+
ge(S, t, D), C(t, n), C(n, i), C(n, o), C(n, l), C(t, s), C(t, c), C(c, u), C(u, d), ge(S, b, D), x && x.m(S, D), ge(S, _, D), B || (T = mt(
|
|
4546
4569
|
t,
|
|
4547
4570
|
"click",
|
|
4548
4571
|
/*click_handler*/
|
|
4549
|
-
e[
|
|
4550
|
-
),
|
|
4572
|
+
e[25]
|
|
4573
|
+
), B = !0);
|
|
4551
4574
|
},
|
|
4552
|
-
p(
|
|
4553
|
-
|
|
4575
|
+
p(S, D) {
|
|
4576
|
+
D[0] & /*balances*/
|
|
4554
4577
|
2 && r !== (r = /*balances*/
|
|
4555
|
-
(
|
|
4578
|
+
(S[1].Total ? (
|
|
4556
4579
|
/*formatBalance*/
|
|
4557
|
-
|
|
4580
|
+
S[8](
|
|
4558
4581
|
/*balances*/
|
|
4559
|
-
|
|
4582
|
+
S[1].Total[0].amount
|
|
4560
4583
|
)
|
|
4561
|
-
) : "0") + "") &&
|
|
4562
|
-
32 &&
|
|
4584
|
+
) : "0") + "") && xe(i, r), D[0] & /*currency*/
|
|
4585
|
+
32 && xe(
|
|
4563
4586
|
l,
|
|
4564
4587
|
/*currency*/
|
|
4565
|
-
|
|
4566
|
-
),
|
|
4567
|
-
8 &&
|
|
4568
|
-
|
|
4569
|
-
|
|
4588
|
+
S[5]
|
|
4589
|
+
), D[0] & /*modalOpened*/
|
|
4590
|
+
8 && g !== (g = /*modalOpened*/
|
|
4591
|
+
S[3] ? "TriangleActive" : "TriangleInactive") && N(c, "class", g), /*showBalance*/
|
|
4592
|
+
S[4] ? x ? x.p(S, D) : (x = Cn(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
|
|
4570
4593
|
},
|
|
4571
|
-
d(
|
|
4572
|
-
|
|
4594
|
+
d(S) {
|
|
4595
|
+
S && (de(t), de(b), de(_)), x && x.d(S), B = !1, T();
|
|
4573
4596
|
}
|
|
4574
4597
|
};
|
|
4575
4598
|
}
|
|
4576
|
-
function
|
|
4599
|
+
function Go(e) {
|
|
4577
4600
|
let t, n = (
|
|
4578
4601
|
/*$_*/
|
|
4579
4602
|
e[6]("Loading") + ""
|
|
4580
4603
|
), r;
|
|
4581
4604
|
return {
|
|
4582
4605
|
c() {
|
|
4583
|
-
t =
|
|
4606
|
+
t = k("p"), r = fe(n), N(t, "class", "Loading");
|
|
4584
4607
|
},
|
|
4585
4608
|
m(i, o) {
|
|
4586
4609
|
ge(i, t, o), C(t, r);
|
|
@@ -4588,88 +4611,88 @@ function Do(e) {
|
|
|
4588
4611
|
p(i, o) {
|
|
4589
4612
|
o[0] & /*$_*/
|
|
4590
4613
|
64 && n !== (n = /*$_*/
|
|
4591
|
-
i[6]("Loading") + "") &&
|
|
4614
|
+
i[6]("Loading") + "") && xe(r, n);
|
|
4592
4615
|
},
|
|
4593
4616
|
d(i) {
|
|
4594
|
-
i &&
|
|
4617
|
+
i && de(t);
|
|
4595
4618
|
}
|
|
4596
4619
|
};
|
|
4597
4620
|
}
|
|
4598
4621
|
function Cn(e) {
|
|
4599
|
-
let t, n, r, i, o, l,
|
|
4622
|
+
let t, n, r, i, o, l, s, c, u = (
|
|
4600
4623
|
/*$_*/
|
|
4601
4624
|
e[6]("Title") + ""
|
|
4602
|
-
), d,
|
|
4625
|
+
), d, g, b, _, B, T, x = (
|
|
4603
4626
|
/*$_*/
|
|
4604
4627
|
e[6]("DepositButton") + ""
|
|
4605
|
-
),
|
|
4628
|
+
), S, D, H, U, W, q, Y = gt(Object.keys(
|
|
4606
4629
|
/*balances*/
|
|
4607
4630
|
e[1]
|
|
4608
|
-
)),
|
|
4609
|
-
for (let
|
|
4610
|
-
|
|
4631
|
+
)), $ = [];
|
|
4632
|
+
for (let R = 0; R < Y.length; R += 1)
|
|
4633
|
+
$[R] = On(Sn(e, Y, R));
|
|
4611
4634
|
return {
|
|
4612
4635
|
c() {
|
|
4613
|
-
t =
|
|
4614
|
-
for (let
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
(e[3] ? "Open" : "")),
|
|
4618
|
-
(e[3] ? "Open" : "")),
|
|
4619
|
-
(e[3] ? "Open" : "")),
|
|
4636
|
+
t = k("div"), n = k("div"), i = pe(), o = k("div"), l = k("div"), s = k("div"), c = k("p"), d = fe(u), g = pe(), b = k("div");
|
|
4637
|
+
for (let R = 0; R < $.length; R += 1)
|
|
4638
|
+
$[R].c();
|
|
4639
|
+
_ = pe(), B = k("div"), T = k("button"), S = fe(x), N(n, "class", r = "BalanceModalClose " + /*modalOpened*/
|
|
4640
|
+
(e[3] ? "Open" : "")), N(c, "class", "BalanceModalTitle"), N(s, "class", "BalanceModalHeader"), N(b, "class", "BalanceModalBody"), N(T, "class", "BalanceModalAction"), N(B, "class", "BalanceModalFooter"), N(l, "class", D = "ModalContent " + /*modalOpened*/
|
|
4641
|
+
(e[3] ? "Open" : "")), N(o, "class", H = "BalanceModal " + /*modalOpened*/
|
|
4642
|
+
(e[3] ? "Open" : "")), N(t, "class", U = "BalanceModalWrapper " + /*modalOpened*/
|
|
4620
4643
|
(e[3] ? "Open" : ""));
|
|
4621
4644
|
},
|
|
4622
|
-
m(
|
|
4623
|
-
ge(
|
|
4624
|
-
for (let
|
|
4625
|
-
|
|
4626
|
-
C(l,
|
|
4627
|
-
|
|
4645
|
+
m(R, X) {
|
|
4646
|
+
ge(R, t, X), C(t, n), C(t, i), C(t, o), C(o, l), C(l, s), C(s, c), C(c, d), C(l, g), C(l, b);
|
|
4647
|
+
for (let F = 0; F < $.length; F += 1)
|
|
4648
|
+
$[F] && $[F].m(b, null);
|
|
4649
|
+
C(l, _), C(l, B), C(B, T), C(T, S), W || (q = [
|
|
4650
|
+
mt(
|
|
4628
4651
|
n,
|
|
4629
4652
|
"click",
|
|
4630
4653
|
/*click_handler_1*/
|
|
4631
|
-
e[
|
|
4654
|
+
e[26]
|
|
4632
4655
|
),
|
|
4633
|
-
|
|
4634
|
-
|
|
4656
|
+
mt(
|
|
4657
|
+
T,
|
|
4635
4658
|
"click",
|
|
4636
4659
|
/*click_handler_2*/
|
|
4637
|
-
e[
|
|
4660
|
+
e[27]
|
|
4638
4661
|
)
|
|
4639
|
-
],
|
|
4662
|
+
], W = !0);
|
|
4640
4663
|
},
|
|
4641
|
-
p(
|
|
4642
|
-
if (
|
|
4664
|
+
p(R, X) {
|
|
4665
|
+
if (X[0] & /*modalOpened*/
|
|
4643
4666
|
8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
|
|
4644
|
-
(
|
|
4667
|
+
(R[3] ? "Open" : "")) && N(n, "class", r), X[0] & /*$_*/
|
|
4645
4668
|
64 && u !== (u = /*$_*/
|
|
4646
|
-
|
|
4669
|
+
R[6]("Title") + "") && xe(d, u), X[0] & /*balances, currency, formatBalance, $_*/
|
|
4647
4670
|
354) {
|
|
4648
|
-
|
|
4671
|
+
Y = gt(Object.keys(
|
|
4649
4672
|
/*balances*/
|
|
4650
|
-
|
|
4673
|
+
R[1]
|
|
4651
4674
|
));
|
|
4652
|
-
let
|
|
4653
|
-
for (
|
|
4654
|
-
const
|
|
4655
|
-
|
|
4675
|
+
let F;
|
|
4676
|
+
for (F = 0; F < Y.length; F += 1) {
|
|
4677
|
+
const y = Sn(R, Y, F);
|
|
4678
|
+
$[F] ? $[F].p(y, X) : ($[F] = On(y), $[F].c(), $[F].m(b, null));
|
|
4656
4679
|
}
|
|
4657
|
-
for (;
|
|
4658
|
-
|
|
4659
|
-
|
|
4680
|
+
for (; F < $.length; F += 1)
|
|
4681
|
+
$[F].d(1);
|
|
4682
|
+
$.length = Y.length;
|
|
4660
4683
|
}
|
|
4661
|
-
|
|
4662
|
-
64 &&
|
|
4663
|
-
|
|
4664
|
-
8 &&
|
|
4665
|
-
(
|
|
4666
|
-
8 &&
|
|
4667
|
-
(
|
|
4668
|
-
8 &&
|
|
4669
|
-
(
|
|
4684
|
+
X[0] & /*$_*/
|
|
4685
|
+
64 && x !== (x = /*$_*/
|
|
4686
|
+
R[6]("DepositButton") + "") && xe(S, x), X[0] & /*modalOpened*/
|
|
4687
|
+
8 && D !== (D = "ModalContent " + /*modalOpened*/
|
|
4688
|
+
(R[3] ? "Open" : "")) && N(l, "class", D), X[0] & /*modalOpened*/
|
|
4689
|
+
8 && H !== (H = "BalanceModal " + /*modalOpened*/
|
|
4690
|
+
(R[3] ? "Open" : "")) && N(o, "class", H), X[0] & /*modalOpened*/
|
|
4691
|
+
8 && U !== (U = "BalanceModalWrapper " + /*modalOpened*/
|
|
4692
|
+
(R[3] ? "Open" : "")) && N(t, "class", U);
|
|
4670
4693
|
},
|
|
4671
|
-
d(
|
|
4672
|
-
|
|
4694
|
+
d(R) {
|
|
4695
|
+
R && de(t), In($, R), W = !1, Ve(q);
|
|
4673
4696
|
}
|
|
4674
4697
|
};
|
|
4675
4698
|
}
|
|
@@ -4689,7 +4712,7 @@ function Hn(e) {
|
|
|
4689
4712
|
e[53].productType
|
|
4690
4713
|
)
|
|
4691
4714
|
) : "") + ""
|
|
4692
|
-
),
|
|
4715
|
+
), s, c, u, d, g = (
|
|
4693
4716
|
/*b*/
|
|
4694
4717
|
(e[53].amount ? (
|
|
4695
4718
|
/*formatBalance*/
|
|
@@ -4698,53 +4721,53 @@ function Hn(e) {
|
|
|
4698
4721
|
e[53].amount
|
|
4699
4722
|
)
|
|
4700
4723
|
) : "0") + ""
|
|
4701
|
-
),
|
|
4724
|
+
), b, _, B, T;
|
|
4702
4725
|
return {
|
|
4703
4726
|
c() {
|
|
4704
|
-
t =
|
|
4727
|
+
t = k("div"), n = k("p"), i = fe(r), o = pe(), s = fe(l), c = pe(), u = k("p"), d = k("span"), b = fe(g), _ = pe(), B = k("span"), T = fe(
|
|
4705
4728
|
/*currency*/
|
|
4706
4729
|
e[5]
|
|
4707
|
-
),
|
|
4730
|
+
), N(n, "class", "BalanceModalText"), N(d, "class", "BalanceModalAmount"), N(B, "class", "BalanceModalCurrency"), N(u, "class", "BalanceModalValue"), N(t, "class", "BalanceModalRowLine");
|
|
4708
4731
|
},
|
|
4709
|
-
m(
|
|
4710
|
-
ge(
|
|
4732
|
+
m(x, S) {
|
|
4733
|
+
ge(x, t, S), C(t, n), C(n, i), C(n, o), C(n, s), C(t, c), C(t, u), C(u, d), C(d, b), C(u, _), C(u, B), C(B, T);
|
|
4711
4734
|
},
|
|
4712
|
-
p(
|
|
4713
|
-
|
|
4735
|
+
p(x, S) {
|
|
4736
|
+
S[0] & /*$_, balances*/
|
|
4714
4737
|
66 && r !== (r = /*$_*/
|
|
4715
|
-
|
|
4738
|
+
x[6](
|
|
4716
4739
|
/*k*/
|
|
4717
|
-
|
|
4718
|
-
) + "") &&
|
|
4740
|
+
x[50]
|
|
4741
|
+
) + "") && xe(i, r), S[0] & /*balances, $_*/
|
|
4719
4742
|
66 && l !== (l = /*b*/
|
|
4720
|
-
(
|
|
4743
|
+
(x[53].productType ? (
|
|
4721
4744
|
/*$_*/
|
|
4722
|
-
|
|
4745
|
+
x[6](
|
|
4723
4746
|
/*b*/
|
|
4724
|
-
|
|
4747
|
+
x[53].productType
|
|
4725
4748
|
)
|
|
4726
|
-
) : "") + "") &&
|
|
4727
|
-
2 &&
|
|
4728
|
-
(
|
|
4749
|
+
) : "") + "") && xe(s, l), S[0] & /*balances*/
|
|
4750
|
+
2 && g !== (g = /*b*/
|
|
4751
|
+
(x[53].amount ? (
|
|
4729
4752
|
/*formatBalance*/
|
|
4730
|
-
|
|
4753
|
+
x[8](
|
|
4731
4754
|
/*b*/
|
|
4732
|
-
|
|
4755
|
+
x[53].amount
|
|
4733
4756
|
)
|
|
4734
|
-
) : "0") + "") &&
|
|
4735
|
-
32 &&
|
|
4736
|
-
|
|
4757
|
+
) : "0") + "") && xe(b, g), S[0] & /*currency*/
|
|
4758
|
+
32 && xe(
|
|
4759
|
+
T,
|
|
4737
4760
|
/*currency*/
|
|
4738
|
-
|
|
4761
|
+
x[5]
|
|
4739
4762
|
);
|
|
4740
4763
|
},
|
|
4741
|
-
d(
|
|
4742
|
-
|
|
4764
|
+
d(x) {
|
|
4765
|
+
x && de(t);
|
|
4743
4766
|
}
|
|
4744
4767
|
};
|
|
4745
4768
|
}
|
|
4746
4769
|
function On(e) {
|
|
4747
|
-
let t, n, r =
|
|
4770
|
+
let t, n, r = gt(
|
|
4748
4771
|
/*balances*/
|
|
4749
4772
|
e[1][
|
|
4750
4773
|
/*k*/
|
|
@@ -4755,39 +4778,39 @@ function On(e) {
|
|
|
4755
4778
|
i[o] = Hn(An(e, r, o));
|
|
4756
4779
|
return {
|
|
4757
4780
|
c() {
|
|
4758
|
-
t =
|
|
4781
|
+
t = k("div");
|
|
4759
4782
|
for (let o = 0; o < i.length; o += 1)
|
|
4760
4783
|
i[o].c();
|
|
4761
|
-
n =
|
|
4784
|
+
n = pe(), N(t, "class", "BalanceModalRowBoth");
|
|
4762
4785
|
},
|
|
4763
4786
|
m(o, l) {
|
|
4764
4787
|
ge(o, t, l);
|
|
4765
|
-
for (let
|
|
4766
|
-
i[
|
|
4788
|
+
for (let s = 0; s < i.length; s += 1)
|
|
4789
|
+
i[s] && i[s].m(t, null);
|
|
4767
4790
|
C(t, n);
|
|
4768
4791
|
},
|
|
4769
4792
|
p(o, l) {
|
|
4770
4793
|
if (l[0] & /*currency, balances, formatBalance, $_*/
|
|
4771
4794
|
354) {
|
|
4772
|
-
r =
|
|
4795
|
+
r = gt(
|
|
4773
4796
|
/*balances*/
|
|
4774
4797
|
o[1][
|
|
4775
4798
|
/*k*/
|
|
4776
4799
|
o[50]
|
|
4777
4800
|
]
|
|
4778
4801
|
);
|
|
4779
|
-
let
|
|
4780
|
-
for (
|
|
4781
|
-
const c = An(o, r,
|
|
4782
|
-
i[
|
|
4802
|
+
let s;
|
|
4803
|
+
for (s = 0; s < r.length; s += 1) {
|
|
4804
|
+
const c = An(o, r, s);
|
|
4805
|
+
i[s] ? i[s].p(c, l) : (i[s] = Hn(c), i[s].c(), i[s].m(t, n));
|
|
4783
4806
|
}
|
|
4784
|
-
for (;
|
|
4785
|
-
i[
|
|
4807
|
+
for (; s < i.length; s += 1)
|
|
4808
|
+
i[s].d(1);
|
|
4786
4809
|
i.length = r.length;
|
|
4787
4810
|
}
|
|
4788
4811
|
},
|
|
4789
4812
|
d(o) {
|
|
4790
|
-
o &&
|
|
4813
|
+
o && de(t), In(i, o);
|
|
4791
4814
|
}
|
|
4792
4815
|
};
|
|
4793
4816
|
}
|
|
@@ -4795,62 +4818,62 @@ function Rn(e) {
|
|
|
4795
4818
|
let t, n, r;
|
|
4796
4819
|
return {
|
|
4797
4820
|
c() {
|
|
4798
|
-
t =
|
|
4821
|
+
t = k("div"), N(t, "class", "ShowBalanceModalOverlay");
|
|
4799
4822
|
},
|
|
4800
4823
|
m(i, o) {
|
|
4801
|
-
ge(i, t, o), n || (r =
|
|
4824
|
+
ge(i, t, o), n || (r = mt(
|
|
4802
4825
|
t,
|
|
4803
4826
|
"click",
|
|
4804
4827
|
/*click_handler_3*/
|
|
4805
|
-
e[
|
|
4828
|
+
e[28]
|
|
4806
4829
|
), n = !0);
|
|
4807
4830
|
},
|
|
4808
4831
|
p: le,
|
|
4809
4832
|
d(i) {
|
|
4810
|
-
i &&
|
|
4833
|
+
i && de(t), n = !1, r();
|
|
4811
4834
|
}
|
|
4812
4835
|
};
|
|
4813
4836
|
}
|
|
4814
|
-
function
|
|
4837
|
+
function $o(e) {
|
|
4815
4838
|
let t, n, r;
|
|
4816
4839
|
function i(c, u) {
|
|
4817
4840
|
return (
|
|
4818
4841
|
/*isLoading*/
|
|
4819
|
-
c[2] ?
|
|
4842
|
+
c[2] ? Go : Fo
|
|
4820
4843
|
);
|
|
4821
4844
|
}
|
|
4822
|
-
let o = i(e), l = o(e),
|
|
4845
|
+
let o = i(e), l = o(e), s = (
|
|
4823
4846
|
/*showBalance*/
|
|
4824
4847
|
e[4] && Rn(e)
|
|
4825
4848
|
);
|
|
4826
4849
|
return {
|
|
4827
4850
|
c() {
|
|
4828
|
-
t =
|
|
4851
|
+
t = k("div"), n = k("div"), l.c(), r = pe(), s && s.c(), N(n, "class", "ShowBalance");
|
|
4829
4852
|
},
|
|
4830
4853
|
m(c, u) {
|
|
4831
|
-
ge(c, t, u), C(t, n), l.m(n, null), C(t, r),
|
|
4854
|
+
ge(c, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[29](t);
|
|
4832
4855
|
},
|
|
4833
4856
|
p(c, u) {
|
|
4834
4857
|
o === (o = i(c)) && l ? l.p(c, u) : (l.d(1), l = o(c), l && (l.c(), l.m(n, null))), /*showBalance*/
|
|
4835
|
-
c[4] ?
|
|
4858
|
+
c[4] ? s ? s.p(c, u) : (s = Rn(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4836
4859
|
},
|
|
4837
4860
|
i: le,
|
|
4838
4861
|
o: le,
|
|
4839
4862
|
d(c) {
|
|
4840
|
-
c &&
|
|
4863
|
+
c && de(t), l.d(), s && s.d(), e[29](null);
|
|
4841
4864
|
}
|
|
4842
4865
|
};
|
|
4843
4866
|
}
|
|
4844
|
-
function
|
|
4867
|
+
function jo(e, t, n) {
|
|
4845
4868
|
let r;
|
|
4846
|
-
gr(e,
|
|
4847
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang:
|
|
4848
|
-
const
|
|
4849
|
-
fetch(
|
|
4869
|
+
gr(e, Oo, (a) => n(6, r = a));
|
|
4870
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: D = "" } = t, H, U, W, q, Y = !1, $ = "", R = [], X, F = !1;
|
|
4871
|
+
const y = {}, _e = ["totalCashAmount", "totalRealAmount"], Ze = () => {
|
|
4872
|
+
fetch(g).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => Tn(f, a[f]))).catch((a) => console.log(a));
|
|
4850
4873
|
};
|
|
4851
|
-
Object.keys(wn).forEach((
|
|
4852
|
-
const
|
|
4853
|
-
switch (
|
|
4874
|
+
Object.keys(wn).forEach((a) => Tn(a, wn[a]));
|
|
4875
|
+
const Be = (a) => {
|
|
4876
|
+
switch (a) {
|
|
4854
4877
|
case "balance":
|
|
4855
4878
|
window.postMessage(
|
|
4856
4879
|
{
|
|
@@ -4858,10 +4881,10 @@ function Fo(e, t, n) {
|
|
|
4858
4881
|
status: "open"
|
|
4859
4882
|
},
|
|
4860
4883
|
window.location.href
|
|
4861
|
-
), n(4,
|
|
4884
|
+
), n(4, Y = !0), setTimeout(() => n(3, W = !0), 150);
|
|
4862
4885
|
break;
|
|
4863
4886
|
case "closebalance":
|
|
4864
|
-
n(3,
|
|
4887
|
+
n(3, W = !1), window.postMessage(
|
|
4865
4888
|
{
|
|
4866
4889
|
type: "BalanceModalStatus",
|
|
4867
4890
|
status: "close"
|
|
@@ -4869,86 +4892,86 @@ function Fo(e, t, n) {
|
|
|
4869
4892
|
window.location.href
|
|
4870
4893
|
), setTimeout(
|
|
4871
4894
|
() => {
|
|
4872
|
-
n(4,
|
|
4895
|
+
n(4, Y = !1);
|
|
4873
4896
|
},
|
|
4874
4897
|
150
|
|
4875
4898
|
);
|
|
4876
4899
|
break;
|
|
4877
4900
|
}
|
|
4878
|
-
},
|
|
4879
|
-
if (b.includes(
|
|
4901
|
+
}, Re = () => {
|
|
4902
|
+
if (b.includes(s))
|
|
4880
4903
|
return b;
|
|
4881
|
-
},
|
|
4882
|
-
separator:
|
|
4883
|
-
decimal:
|
|
4904
|
+
}, me = (a) => b ? new Intl.NumberFormat(Re(), { useGrouping: !0 }).format(a) : x && S ? he(a, {
|
|
4905
|
+
separator: x,
|
|
4906
|
+
decimal: S,
|
|
4884
4907
|
symbol: "",
|
|
4885
|
-
precision: parseInt(
|
|
4886
|
-
}).format() :
|
|
4908
|
+
precision: parseInt(D || "2", 10)
|
|
4909
|
+
}).format() : he(a, {
|
|
4887
4910
|
separator: ".",
|
|
4888
4911
|
decimal: ",",
|
|
4889
4912
|
symbol: "",
|
|
4890
|
-
precision: parseInt(
|
|
4891
|
-
}).format(),
|
|
4892
|
-
var
|
|
4893
|
-
n(2,
|
|
4894
|
-
const
|
|
4913
|
+
precision: parseInt(D || "2", 10)
|
|
4914
|
+
}).format(), Te = () => Nt(this, null, function* () {
|
|
4915
|
+
var f, p, h;
|
|
4916
|
+
n(2, H = !0);
|
|
4917
|
+
const a = new URL(`${l}/v1/player/${i}/account`);
|
|
4895
4918
|
try {
|
|
4896
|
-
const
|
|
4919
|
+
const E = yield fetch(a, {
|
|
4897
4920
|
method: "GET",
|
|
4898
4921
|
headers: { "X-SessionID": o }
|
|
4899
|
-
}),
|
|
4900
|
-
if (
|
|
4901
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
4922
|
+
}), v = yield E.json();
|
|
4923
|
+
if (E.ok)
|
|
4924
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), R = v.items, n(5, $ = (f = R.find((m) => m.displayName === "Casino")) == null ? void 0 : f.currency), n(1, y.Total = [{ amount: v.totalAmount[$] }], y), n(
|
|
4902
4925
|
1,
|
|
4903
|
-
|
|
4926
|
+
y.Real = [
|
|
4904
4927
|
{
|
|
4905
|
-
amount: (
|
|
4928
|
+
amount: (p = R.find((m) => m.displayName === "Casino")) == null ? void 0 : p.balanceAmount
|
|
4906
4929
|
}
|
|
4907
4930
|
],
|
|
4908
|
-
|
|
4931
|
+
y
|
|
4909
4932
|
), n(
|
|
4910
4933
|
1,
|
|
4911
|
-
|
|
4934
|
+
y.Bonus = [
|
|
4912
4935
|
{
|
|
4913
|
-
amount: (
|
|
4936
|
+
amount: (h = R.find((m) => m.displayName === "UBS")) == null ? void 0 : h.balanceAmount
|
|
4914
4937
|
}
|
|
4915
4938
|
],
|
|
4916
|
-
|
|
4939
|
+
y
|
|
4917
4940
|
);
|
|
4918
4941
|
else
|
|
4919
4942
|
throw new Error("Failed to fetch balance data !");
|
|
4920
|
-
} catch (
|
|
4921
|
-
console.log("Balance error: ",
|
|
4943
|
+
} catch (E) {
|
|
4944
|
+
console.log("Balance error: ", E);
|
|
4922
4945
|
} finally {
|
|
4923
|
-
n(2,
|
|
4946
|
+
n(2, H = !1);
|
|
4924
4947
|
}
|
|
4925
|
-
}),
|
|
4926
|
-
n(2,
|
|
4927
|
-
const
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
const
|
|
4931
|
-
if (n(5,
|
|
4932
|
-
|
|
4948
|
+
}), Ae = () => {
|
|
4949
|
+
n(2, H = !0);
|
|
4950
|
+
const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
|
|
4951
|
+
f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((h) => h.json()).then((h) => {
|
|
4952
|
+
h[T] || n(10, T = _e[0]);
|
|
4953
|
+
const E = h.items.find((m) => m.type === "Real" && m.walletAccountType === "Ordinary");
|
|
4954
|
+
if (n(5, $ = E.currency), F = !!E.productType, n(1, y.Total = [{ amount: 0 }], y), n(1, y.Real = [], y), n(1, y.Bonus = [], y), n(1, y.Credit = [], y), !F) {
|
|
4955
|
+
X = {
|
|
4933
4956
|
lastOrdinaryAfterAmount: 0,
|
|
4934
4957
|
showCreditLineAfterAmount: !1
|
|
4935
|
-
}, n(1,
|
|
4936
|
-
for (const
|
|
4937
|
-
switch (
|
|
4958
|
+
}, n(1, y.Total[0].amount = h[T][$], y);
|
|
4959
|
+
for (const m of h.items)
|
|
4960
|
+
switch (m.type) {
|
|
4938
4961
|
case "Bonus":
|
|
4939
|
-
|
|
4962
|
+
y.Bonus.length === 0 ? y.Bonus.push({ amount: m.amount }) : n(1, y.Bonus[0].amount += m.amount, y);
|
|
4940
4963
|
break;
|
|
4941
4964
|
case "Real":
|
|
4942
|
-
if (
|
|
4943
|
-
|
|
4965
|
+
if (m.creditLine && y.Credit.length === 0 && y.Credit.push({ amount: m.creditLine }), T === "totalRealAmount") continue;
|
|
4966
|
+
y.Real.length === 0 ? y.Real.push({ amount: m.amount }) : n(1, y.Real[0].amount += m.amount, y);
|
|
4944
4967
|
break;
|
|
4945
4968
|
}
|
|
4946
|
-
for (const [
|
|
4947
|
-
|
|
4948
|
-
n(2,
|
|
4969
|
+
for (const [m, L] of Object.entries(y))
|
|
4970
|
+
L.length < 1 && delete y[m];
|
|
4971
|
+
n(2, H = !1);
|
|
4949
4972
|
return;
|
|
4950
4973
|
}
|
|
4951
|
-
|
|
4974
|
+
X = {
|
|
4952
4975
|
Casino: {
|
|
4953
4976
|
lastOrdinaryAfterAmount: 0,
|
|
4954
4977
|
showCreditLineAfterAmount: !1
|
|
@@ -4958,228 +4981,218 @@ function Fo(e, t, n) {
|
|
|
4958
4981
|
showCreditLineAfterAmount: !1
|
|
4959
4982
|
}
|
|
4960
4983
|
};
|
|
4961
|
-
let
|
|
4962
|
-
|
|
4963
|
-
for (const
|
|
4964
|
-
let
|
|
4965
|
-
switch (
|
|
4984
|
+
let v = h.items;
|
|
4985
|
+
B && B !== "All" && (v = h.items.filter((m) => m.productType === B));
|
|
4986
|
+
for (const m of v) {
|
|
4987
|
+
let L;
|
|
4988
|
+
switch (m.type) {
|
|
4966
4989
|
case "Bonus":
|
|
4967
|
-
|
|
4968
|
-
amount:
|
|
4969
|
-
productType:
|
|
4990
|
+
L = y.Bonus.findIndex((A) => A.productType === m.productType), L > 0 ? n(1, y.Bonus[L].amount += m.amount, y) : y.Bonus.push({
|
|
4991
|
+
amount: m.amount,
|
|
4992
|
+
productType: m.productType
|
|
4970
4993
|
});
|
|
4971
4994
|
break;
|
|
4972
4995
|
case "Real":
|
|
4973
|
-
|
|
4974
|
-
amount:
|
|
4975
|
-
productType:
|
|
4976
|
-
}),
|
|
4977
|
-
amount:
|
|
4978
|
-
productType:
|
|
4996
|
+
m.creditLine && y.Credit.push({
|
|
4997
|
+
amount: m.creditLine,
|
|
4998
|
+
productType: m.productType
|
|
4999
|
+
}), L = y.Real.findIndex((A) => A.productType === m.productType), L > 0 ? n(1, y.Real[L].amount += m.amount, y) : y.Real.push({
|
|
5000
|
+
amount: m.amount,
|
|
5001
|
+
productType: m.productType
|
|
4979
5002
|
});
|
|
4980
5003
|
break;
|
|
4981
5004
|
}
|
|
4982
5005
|
}
|
|
4983
|
-
|
|
4984
|
-
for (const [
|
|
4985
|
-
|
|
4986
|
-
n(2,
|
|
4987
|
-
}).catch((
|
|
4988
|
-
throw n(2,
|
|
5006
|
+
ot();
|
|
5007
|
+
for (const [m, L] of Object.entries(y))
|
|
5008
|
+
L.length < 1 && delete y[m];
|
|
5009
|
+
n(2, H = !1);
|
|
5010
|
+
}).catch((h) => {
|
|
5011
|
+
throw n(2, H = !1), new Error("Failed to fetch balance data !");
|
|
4989
5012
|
});
|
|
4990
|
-
},
|
|
4991
|
-
if (
|
|
4992
|
-
let
|
|
4993
|
-
switch (
|
|
5013
|
+
}, Ce = () => {
|
|
5014
|
+
if (q && q.close(), o.length < 1) return;
|
|
5015
|
+
let a, f;
|
|
5016
|
+
switch (_) {
|
|
4994
5017
|
case "gm16":
|
|
4995
|
-
|
|
5018
|
+
a = new URL(`${l}/v2/player/${i}/information/updates`), f = (E) => Tt(E);
|
|
4996
5019
|
break;
|
|
4997
5020
|
case "gmcore":
|
|
4998
|
-
|
|
5021
|
+
a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (E) => qe(E);
|
|
4999
5022
|
break;
|
|
5000
5023
|
}
|
|
5001
|
-
const
|
|
5024
|
+
const p = {
|
|
5002
5025
|
accept: "text/event-stream",
|
|
5003
5026
|
"X-SessionId": o
|
|
5004
|
-
},
|
|
5005
|
-
|
|
5006
|
-
},
|
|
5007
|
-
let
|
|
5027
|
+
}, h = new Lo.EventSourcePolyfill(a, { headers: p });
|
|
5028
|
+
q = h, h.addEventListener("message", f);
|
|
5029
|
+
}, ue = (a) => {
|
|
5030
|
+
let f;
|
|
5008
5031
|
try {
|
|
5009
|
-
|
|
5010
|
-
} catch (
|
|
5011
|
-
console.log("Balance stream failed: ",
|
|
5032
|
+
f = JSON.parse(a);
|
|
5033
|
+
} catch (p) {
|
|
5034
|
+
console.log("Balance stream failed: ", p);
|
|
5012
5035
|
return;
|
|
5013
5036
|
}
|
|
5014
|
-
return
|
|
5015
|
-
},
|
|
5016
|
-
var
|
|
5017
|
-
const
|
|
5018
|
-
if (!
|
|
5019
|
-
|
|
5037
|
+
return f;
|
|
5038
|
+
}, qe = (a) => {
|
|
5039
|
+
var E, v;
|
|
5040
|
+
const f = ue(a.data);
|
|
5041
|
+
if (!f) {
|
|
5042
|
+
Ce();
|
|
5020
5043
|
return;
|
|
5021
5044
|
}
|
|
5022
|
-
let
|
|
5023
|
-
const
|
|
5024
|
-
|
|
5025
|
-
balanceAmount:
|
|
5026
|
-
})),
|
|
5027
|
-
},
|
|
5028
|
-
let
|
|
5029
|
-
switch (
|
|
5045
|
+
let p = "0";
|
|
5046
|
+
const h = f.balanceChange;
|
|
5047
|
+
R = R.map((m) => (h && h[m.id] && (m = Mt(Lt({}, m), {
|
|
5048
|
+
balanceAmount: h[m.id].afterAmount
|
|
5049
|
+
})), p = (parseFloat(m == null ? void 0 : m.balanceAmount) + parseFloat(p)).toString(), m)), n(1, y.Real = [{ amount: (E = R[0]) == null ? void 0 : E.balanceAmount }], y), n(1, y.Bonus = [{ amount: (v = R[1]) == null ? void 0 : v.balanceAmount }], y), n(1, y.Total = [{ amount: Number(p) }], y);
|
|
5050
|
+
}, Le = (a, f, p) => {
|
|
5051
|
+
let h = null;
|
|
5052
|
+
switch (p.walletAccountType) {
|
|
5030
5053
|
case "Ordinary":
|
|
5031
|
-
|
|
5054
|
+
p.afterAmount !== p.affectedAmount && (f.lastOrdinaryAfterAmount = p.afterAmount, f.showCreditLineAfterAmount || (h = p.afterAmount));
|
|
5032
5055
|
break;
|
|
5033
5056
|
case "CreditLine":
|
|
5034
|
-
|
|
5057
|
+
p.afterAmount !== 0 ? (h = p.afterAmount, f.showCreditLineAfterAmount = !0) : (h = f.lastOrdinaryAfterAmount, f.showCreditLineAfterAmount = !1);
|
|
5035
5058
|
break;
|
|
5036
5059
|
default:
|
|
5037
|
-
|
|
5060
|
+
h = p.afterAmount;
|
|
5038
5061
|
}
|
|
5039
|
-
return
|
|
5040
|
-
},
|
|
5041
|
-
switch (
|
|
5062
|
+
return h === null ? a : h;
|
|
5063
|
+
}, ot = () => {
|
|
5064
|
+
switch (T) {
|
|
5042
5065
|
case "totalCashAmount":
|
|
5043
|
-
let
|
|
5044
|
-
for (const
|
|
5045
|
-
for (const
|
|
5046
|
-
|
|
5047
|
-
n(1,
|
|
5066
|
+
let a = 0;
|
|
5067
|
+
for (const p of ["Real", "Bonus"])
|
|
5068
|
+
for (const h of y[p])
|
|
5069
|
+
a += Math.max(h.amount, 0);
|
|
5070
|
+
n(1, y.Total[0].amount = a, y);
|
|
5048
5071
|
break;
|
|
5049
5072
|
case "totalRealAmount":
|
|
5050
|
-
if (!
|
|
5051
|
-
let
|
|
5052
|
-
for (const
|
|
5053
|
-
|
|
5054
|
-
n(1,
|
|
5073
|
+
if (!F) return;
|
|
5074
|
+
let f = 0;
|
|
5075
|
+
for (const p of y.Real)
|
|
5076
|
+
f += p.amount;
|
|
5077
|
+
n(1, y.Total[0].amount = f, y);
|
|
5055
5078
|
}
|
|
5056
|
-
},
|
|
5057
|
-
const
|
|
5058
|
-
if (!
|
|
5059
|
-
|
|
5079
|
+
}, Tt = (a) => {
|
|
5080
|
+
const f = ue(a.data);
|
|
5081
|
+
if (!f) {
|
|
5082
|
+
Ce();
|
|
5060
5083
|
return;
|
|
5061
5084
|
}
|
|
5062
|
-
if (
|
|
5085
|
+
if (f.type !== "BALANCE_UPDATE_V2")
|
|
5063
5086
|
return;
|
|
5064
|
-
const
|
|
5065
|
-
for (const [
|
|
5066
|
-
if (
|
|
5067
|
-
for (const
|
|
5068
|
-
if (!
|
|
5069
|
-
|
|
5087
|
+
const p = f.body.balanceChange;
|
|
5088
|
+
for (const [h, E] of Object.entries(p))
|
|
5089
|
+
if (T === "totalRealAmount" && h === "Real" && !F && n(1, y.Total[0].amount = Le(y.Total[0].amount, X, E), y), !!y[h])
|
|
5090
|
+
for (const v of y[h]) {
|
|
5091
|
+
if (!F) {
|
|
5092
|
+
v.amount = h === "Real" ? Le(v.amount, X, E) : E.afterAmount;
|
|
5070
5093
|
continue;
|
|
5071
5094
|
}
|
|
5072
|
-
|
|
5095
|
+
E.productType === v.productType && (v.amount = h === "Real" ? Le(v.amount, X[v.productType], E) : E.afterAmount);
|
|
5073
5096
|
}
|
|
5074
|
-
|
|
5075
|
-
},
|
|
5076
|
-
|
|
5077
|
-
}, Tt = () => {
|
|
5078
|
-
J.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${J}. Using default value ('${J[0]}').`), n(10, _ = J[0]));
|
|
5097
|
+
ot();
|
|
5098
|
+
}, at = () => {
|
|
5099
|
+
Be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5079
5100
|
}, wt = () => {
|
|
5080
|
-
|
|
5101
|
+
_e.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`), n(10, T = _e[0]));
|
|
5102
|
+
}, Qe = () => {
|
|
5103
|
+
switch (Ro(s), wt(), _) {
|
|
5081
5104
|
case "gmcore":
|
|
5082
|
-
|
|
5105
|
+
Te();
|
|
5083
5106
|
break;
|
|
5084
5107
|
case "gm16":
|
|
5085
|
-
|
|
5108
|
+
Ae();
|
|
5086
5109
|
break;
|
|
5087
5110
|
default:
|
|
5088
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
5111
|
+
throw Error(`Invalid apiversion attribute: ${_}`);
|
|
5089
5112
|
}
|
|
5090
|
-
},
|
|
5091
|
-
const s = document.createElement("style");
|
|
5092
|
-
s.innerHTML = c, O.appendChild(s);
|
|
5093
|
-
}, we = () => {
|
|
5094
|
-
const s = new URL(u), p = document.createElement("style");
|
|
5095
|
-
fetch(s.href).then((f) => f.text()).then((f) => {
|
|
5096
|
-
p.innerHTML = f, setTimeout(
|
|
5097
|
-
() => {
|
|
5098
|
-
O.appendChild(p);
|
|
5099
|
-
},
|
|
5100
|
-
1
|
|
5101
|
-
);
|
|
5102
|
-
});
|
|
5103
|
-
}, re = () => {
|
|
5113
|
+
}, Me = (a) => a.data && a.data.type === "LogoutSuccessfull" && q.close(), we = () => {
|
|
5104
5114
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5105
5115
|
};
|
|
5106
|
-
Tr(() => (window.addEventListener("message",
|
|
5107
|
-
window.removeEventListener("message",
|
|
5116
|
+
Tr(() => (window.addEventListener("message", Me, !1), () => {
|
|
5117
|
+
window.removeEventListener("message", Me), q && q.close();
|
|
5108
5118
|
}));
|
|
5109
|
-
const
|
|
5110
|
-
function
|
|
5111
|
-
jt[
|
|
5112
|
-
|
|
5119
|
+
const re = () => Be("balance"), St = () => Be("closebalance"), At = () => at(), Ct = () => Be("closeBalance");
|
|
5120
|
+
function st(a) {
|
|
5121
|
+
jt[a ? "unshift" : "push"](() => {
|
|
5122
|
+
U = a, n(0, U);
|
|
5113
5123
|
});
|
|
5114
5124
|
}
|
|
5115
|
-
return e.$$set = (
|
|
5116
|
-
"userid" in
|
|
5125
|
+
return e.$$set = (a) => {
|
|
5126
|
+
"userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, c = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, g = a.translationurl), "customlocaleidentifier" in a && n(19, b = a.customlocaleidentifier), "gmversion" in a && n(20, _ = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, x = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, D = a.currencyprecision);
|
|
5117
5127
|
}, e.$$.update = () => {
|
|
5118
5128
|
e.$$.dirty[0] & /*lang*/
|
|
5119
|
-
16384 &&
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5129
|
+
16384 && s && Re(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5130
|
+
3176448 && l && i && o && s && _ && B && Qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5131
|
+
1062912 && l && i && o && _ && Ce(), e.$$.dirty[0] & /*translationurl*/
|
|
5132
|
+
262144 && g && Ze(), e.$$.dirty[0] & /*balances*/
|
|
5133
|
+
2 && y.Total && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5134
|
+
65537 && u && U && Ur(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5135
|
+
131073 && d && U && Fr(U, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5136
|
+
32769 && c && U && Gr(U, `${c}.Style`);
|
|
5126
5137
|
}, [
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
k,
|
|
5131
|
-
ne,
|
|
5138
|
+
U,
|
|
5139
|
+
y,
|
|
5140
|
+
H,
|
|
5132
5141
|
W,
|
|
5142
|
+
Y,
|
|
5143
|
+
$,
|
|
5133
5144
|
r,
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5145
|
+
Be,
|
|
5146
|
+
me,
|
|
5147
|
+
at,
|
|
5148
|
+
T,
|
|
5138
5149
|
i,
|
|
5139
5150
|
o,
|
|
5140
5151
|
l,
|
|
5141
|
-
|
|
5152
|
+
s,
|
|
5142
5153
|
c,
|
|
5143
5154
|
u,
|
|
5144
5155
|
d,
|
|
5156
|
+
g,
|
|
5145
5157
|
b,
|
|
5146
|
-
|
|
5147
|
-
T,
|
|
5148
|
-
H,
|
|
5158
|
+
_,
|
|
5149
5159
|
B,
|
|
5150
|
-
|
|
5160
|
+
x,
|
|
5161
|
+
S,
|
|
5162
|
+
D,
|
|
5163
|
+
re,
|
|
5151
5164
|
St,
|
|
5152
5165
|
At,
|
|
5153
5166
|
Ct,
|
|
5154
|
-
|
|
5155
|
-
h
|
|
5167
|
+
st
|
|
5156
5168
|
];
|
|
5157
5169
|
}
|
|
5158
|
-
class
|
|
5170
|
+
class ko extends Pr {
|
|
5159
5171
|
constructor(t) {
|
|
5160
5172
|
super(), Nr(
|
|
5161
5173
|
this,
|
|
5162
5174
|
t,
|
|
5163
|
-
|
|
5164
|
-
|
|
5175
|
+
jo,
|
|
5176
|
+
$o,
|
|
5165
5177
|
Mn,
|
|
5166
5178
|
{
|
|
5167
5179
|
userid: 11,
|
|
5168
5180
|
session: 12,
|
|
5169
5181
|
endpoint: 13,
|
|
5170
5182
|
lang: 14,
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5183
|
+
mbsource: 15,
|
|
5184
|
+
clientstyling: 16,
|
|
5185
|
+
clientstylingurl: 17,
|
|
5186
|
+
translationurl: 18,
|
|
5187
|
+
customlocaleidentifier: 19,
|
|
5188
|
+
gmversion: 20,
|
|
5189
|
+
displaybalanceoption: 21,
|
|
5177
5190
|
totalcalculationmode: 10,
|
|
5178
|
-
currencyseparator:
|
|
5179
|
-
currencydecimal:
|
|
5180
|
-
currencyprecision:
|
|
5191
|
+
currencyseparator: 22,
|
|
5192
|
+
currencydecimal: 23,
|
|
5193
|
+
currencyprecision: 24
|
|
5181
5194
|
},
|
|
5182
|
-
|
|
5195
|
+
Uo,
|
|
5183
5196
|
[-1, -1]
|
|
5184
5197
|
);
|
|
5185
5198
|
}
|
|
@@ -5187,88 +5200,94 @@ class Go extends Pr {
|
|
|
5187
5200
|
return this.$$.ctx[11];
|
|
5188
5201
|
}
|
|
5189
5202
|
set userid(t) {
|
|
5190
|
-
this.$$set({ userid: t }),
|
|
5203
|
+
this.$$set({ userid: t }), J();
|
|
5191
5204
|
}
|
|
5192
5205
|
get session() {
|
|
5193
5206
|
return this.$$.ctx[12];
|
|
5194
5207
|
}
|
|
5195
5208
|
set session(t) {
|
|
5196
|
-
this.$$set({ session: t }),
|
|
5209
|
+
this.$$set({ session: t }), J();
|
|
5197
5210
|
}
|
|
5198
5211
|
get endpoint() {
|
|
5199
5212
|
return this.$$.ctx[13];
|
|
5200
5213
|
}
|
|
5201
5214
|
set endpoint(t) {
|
|
5202
|
-
this.$$set({ endpoint: t }),
|
|
5215
|
+
this.$$set({ endpoint: t }), J();
|
|
5203
5216
|
}
|
|
5204
5217
|
get lang() {
|
|
5205
5218
|
return this.$$.ctx[14];
|
|
5206
5219
|
}
|
|
5207
5220
|
set lang(t) {
|
|
5208
|
-
this.$$set({ lang: t }),
|
|
5221
|
+
this.$$set({ lang: t }), J();
|
|
5209
5222
|
}
|
|
5210
|
-
get
|
|
5223
|
+
get mbsource() {
|
|
5211
5224
|
return this.$$.ctx[15];
|
|
5212
5225
|
}
|
|
5226
|
+
set mbsource(t) {
|
|
5227
|
+
this.$$set({ mbsource: t }), J();
|
|
5228
|
+
}
|
|
5229
|
+
get clientstyling() {
|
|
5230
|
+
return this.$$.ctx[16];
|
|
5231
|
+
}
|
|
5213
5232
|
set clientstyling(t) {
|
|
5214
|
-
this.$$set({ clientstyling: t }),
|
|
5233
|
+
this.$$set({ clientstyling: t }), J();
|
|
5215
5234
|
}
|
|
5216
5235
|
get clientstylingurl() {
|
|
5217
|
-
return this.$$.ctx[
|
|
5236
|
+
return this.$$.ctx[17];
|
|
5218
5237
|
}
|
|
5219
5238
|
set clientstylingurl(t) {
|
|
5220
|
-
this.$$set({ clientstylingurl: t }),
|
|
5239
|
+
this.$$set({ clientstylingurl: t }), J();
|
|
5221
5240
|
}
|
|
5222
5241
|
get translationurl() {
|
|
5223
|
-
return this.$$.ctx[
|
|
5242
|
+
return this.$$.ctx[18];
|
|
5224
5243
|
}
|
|
5225
5244
|
set translationurl(t) {
|
|
5226
|
-
this.$$set({ translationurl: t }),
|
|
5245
|
+
this.$$set({ translationurl: t }), J();
|
|
5227
5246
|
}
|
|
5228
5247
|
get customlocaleidentifier() {
|
|
5229
|
-
return this.$$.ctx[
|
|
5248
|
+
return this.$$.ctx[19];
|
|
5230
5249
|
}
|
|
5231
5250
|
set customlocaleidentifier(t) {
|
|
5232
|
-
this.$$set({ customlocaleidentifier: t }),
|
|
5251
|
+
this.$$set({ customlocaleidentifier: t }), J();
|
|
5233
5252
|
}
|
|
5234
5253
|
get gmversion() {
|
|
5235
|
-
return this.$$.ctx[
|
|
5254
|
+
return this.$$.ctx[20];
|
|
5236
5255
|
}
|
|
5237
5256
|
set gmversion(t) {
|
|
5238
|
-
this.$$set({ gmversion: t }),
|
|
5257
|
+
this.$$set({ gmversion: t }), J();
|
|
5239
5258
|
}
|
|
5240
5259
|
get displaybalanceoption() {
|
|
5241
|
-
return this.$$.ctx[
|
|
5260
|
+
return this.$$.ctx[21];
|
|
5242
5261
|
}
|
|
5243
5262
|
set displaybalanceoption(t) {
|
|
5244
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5263
|
+
this.$$set({ displaybalanceoption: t }), J();
|
|
5245
5264
|
}
|
|
5246
5265
|
get totalcalculationmode() {
|
|
5247
5266
|
return this.$$.ctx[10];
|
|
5248
5267
|
}
|
|
5249
5268
|
set totalcalculationmode(t) {
|
|
5250
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5269
|
+
this.$$set({ totalcalculationmode: t }), J();
|
|
5251
5270
|
}
|
|
5252
5271
|
get currencyseparator() {
|
|
5253
|
-
return this.$$.ctx[
|
|
5272
|
+
return this.$$.ctx[22];
|
|
5254
5273
|
}
|
|
5255
5274
|
set currencyseparator(t) {
|
|
5256
|
-
this.$$set({ currencyseparator: t }),
|
|
5275
|
+
this.$$set({ currencyseparator: t }), J();
|
|
5257
5276
|
}
|
|
5258
5277
|
get currencydecimal() {
|
|
5259
|
-
return this.$$.ctx[
|
|
5278
|
+
return this.$$.ctx[23];
|
|
5260
5279
|
}
|
|
5261
5280
|
set currencydecimal(t) {
|
|
5262
|
-
this.$$set({ currencydecimal: t }),
|
|
5281
|
+
this.$$set({ currencydecimal: t }), J();
|
|
5263
5282
|
}
|
|
5264
5283
|
get currencyprecision() {
|
|
5265
|
-
return this.$$.ctx[
|
|
5284
|
+
return this.$$.ctx[24];
|
|
5266
5285
|
}
|
|
5267
5286
|
set currencyprecision(t) {
|
|
5268
|
-
this.$$set({ currencyprecision: t }),
|
|
5287
|
+
this.$$set({ currencyprecision: t }), J();
|
|
5269
5288
|
}
|
|
5270
5289
|
}
|
|
5271
|
-
Ir(
|
|
5290
|
+
Ir(ko, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
|
5272
5291
|
export {
|
|
5273
|
-
|
|
5292
|
+
ko as default
|
|
5274
5293
|
};
|