@everymatrix/player-account-balance-modal-nd 1.61.1 → 1.62.1
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-B4B8UF_m.js → PlayerAccountBalanceModalNd-BC0l2acr.js} +890 -884
- package/components/PlayerAccountBalanceModalNd-Dl0Q7DHD.cjs +15 -0
- package/components/{PlayerAccountBalanceModalNd-BetuZrwC.js → PlayerAccountBalanceModalNd-zECJrbfA.js} +890 -884
- 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-3_VipnqR.cjs +0 -28
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function se() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Cn(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function rn() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function Ve(e) {
|
|
10
|
+
e.forEach(Cn);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Yt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Hn(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function ar(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function On(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const r of t)
|
|
24
24
|
r(void 0);
|
|
@@ -27,20 +27,20 @@ function Cn(e, ...t) {
|
|
|
27
27
|
const n = e.subscribe(...t);
|
|
28
28
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function sr(e, t, n) {
|
|
31
|
+
e.$$.on_destroy.push(On(t, n));
|
|
32
32
|
}
|
|
33
33
|
function C(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const r =
|
|
36
|
+
function lr(e, t, n) {
|
|
37
|
+
const r = ur(e);
|
|
38
38
|
if (!r.getElementById(t)) {
|
|
39
39
|
const i = j("style");
|
|
40
|
-
i.id = t, i.textContent = n,
|
|
40
|
+
i.id = t, i.textContent = n, cr(r, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ur(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,27 +50,27 @@ function sr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function cr(e, t) {
|
|
54
54
|
return C(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ge(e, t, n) {
|
|
61
61
|
e.insertBefore(t, n || null);
|
|
62
62
|
}
|
|
63
63
|
function fe(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Rn(e, t) {
|
|
67
67
|
for (let n = 0; n < e.length; n += 1)
|
|
68
68
|
e[n] && e[n].d(t);
|
|
69
69
|
}
|
|
70
70
|
function j(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function on(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
76
|
function he(e) {
|
|
@@ -79,23 +79,23 @@ function he(e) {
|
|
|
79
79
|
function de() {
|
|
80
80
|
return he(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function hr() {
|
|
83
83
|
return he("");
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function mt(e, t, n, r) {
|
|
86
86
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
87
87
|
}
|
|
88
88
|
function N(e, t, n) {
|
|
89
89
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function fr(e) {
|
|
92
92
|
return Array.from(e.childNodes);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function _e(e, t) {
|
|
95
95
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
96
96
|
t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function dr(e) {
|
|
99
99
|
const t = {};
|
|
100
100
|
return e.childNodes.forEach(
|
|
101
101
|
/** @param {Element} node */
|
|
@@ -104,90 +104,90 @@ function hr(e) {
|
|
|
104
104
|
}
|
|
105
105
|
), t;
|
|
106
106
|
}
|
|
107
|
-
let
|
|
108
|
-
function
|
|
109
|
-
|
|
107
|
+
let tt;
|
|
108
|
+
function et(e) {
|
|
109
|
+
tt = e;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
if (!
|
|
111
|
+
function pr() {
|
|
112
|
+
if (!tt)
|
|
113
113
|
throw new Error("Function called outside component initialization");
|
|
114
|
-
return
|
|
114
|
+
return tt;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
116
|
+
function mr(e) {
|
|
117
|
+
pr().$$.on_mount.push(e);
|
|
118
118
|
}
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
const
|
|
122
|
-
let
|
|
123
|
-
function
|
|
124
|
-
|
|
119
|
+
const Ue = [], Ft = [];
|
|
120
|
+
let Fe = [];
|
|
121
|
+
const an = [], gr = /* @__PURE__ */ Promise.resolve();
|
|
122
|
+
let Gt = !1;
|
|
123
|
+
function br() {
|
|
124
|
+
Gt || (Gt = !0, gr.then(J));
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
|
|
126
|
+
function $t(e) {
|
|
127
|
+
Fe.push(e);
|
|
128
128
|
}
|
|
129
|
-
const
|
|
129
|
+
const Lt = /* @__PURE__ */ new Set();
|
|
130
130
|
let Ie = 0;
|
|
131
131
|
function J() {
|
|
132
132
|
if (Ie !== 0)
|
|
133
133
|
return;
|
|
134
|
-
const e =
|
|
134
|
+
const e = tt;
|
|
135
135
|
do {
|
|
136
136
|
try {
|
|
137
|
-
for (; Ie <
|
|
138
|
-
const t =
|
|
139
|
-
Ie++,
|
|
137
|
+
for (; Ie < Ue.length; ) {
|
|
138
|
+
const t = Ue[Ie];
|
|
139
|
+
Ie++, et(t), yr(t.$$);
|
|
140
140
|
}
|
|
141
141
|
} catch (t) {
|
|
142
|
-
throw
|
|
142
|
+
throw Ue.length = 0, Ie = 0, t;
|
|
143
143
|
}
|
|
144
|
-
for (
|
|
145
|
-
|
|
146
|
-
for (let t = 0; t <
|
|
147
|
-
const n =
|
|
148
|
-
|
|
144
|
+
for (et(null), Ue.length = 0, Ie = 0; Ft.length; )
|
|
145
|
+
Ft.pop()();
|
|
146
|
+
for (let t = 0; t < Fe.length; t += 1) {
|
|
147
|
+
const n = Fe[t];
|
|
148
|
+
Lt.has(n) || (Lt.add(n), n());
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
} while (
|
|
152
|
-
for (;
|
|
153
|
-
|
|
154
|
-
|
|
150
|
+
Fe.length = 0;
|
|
151
|
+
} while (Ue.length);
|
|
152
|
+
for (; an.length; )
|
|
153
|
+
an.pop()();
|
|
154
|
+
Gt = !1, Lt.clear(), et(e);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function yr(e) {
|
|
157
157
|
if (e.fragment !== null) {
|
|
158
|
-
e.update(),
|
|
158
|
+
e.update(), Ve(e.before_update);
|
|
159
159
|
const t = e.dirty;
|
|
160
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
160
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($t);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function vr(e) {
|
|
164
164
|
const t = [], n = [];
|
|
165
|
-
|
|
165
|
+
Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
|
|
166
166
|
}
|
|
167
|
-
const
|
|
168
|
-
function
|
|
169
|
-
e && e.i && (
|
|
167
|
+
const Er = /* @__PURE__ */ new Set();
|
|
168
|
+
function _r(e, t) {
|
|
169
|
+
e && e.i && (Er.delete(e), e.i(t));
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function gt(e) {
|
|
172
172
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function xr(e, t, n) {
|
|
175
175
|
const { fragment: r, after_update: i } = e.$$;
|
|
176
|
-
r && r.m(t, n),
|
|
177
|
-
const o = e.$$.on_mount.map(
|
|
178
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
179
|
-
}), i.forEach(
|
|
176
|
+
r && r.m(t, n), $t(() => {
|
|
177
|
+
const o = e.$$.on_mount.map(Cn).filter(Yt);
|
|
178
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ve(o), e.$$.on_mount = [];
|
|
179
|
+
}), i.forEach($t);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Br(e, t) {
|
|
182
182
|
const n = e.$$;
|
|
183
|
-
n.fragment !== null && (
|
|
183
|
+
n.fragment !== null && (vr(n.after_update), Ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
e.$$.dirty[0] === -1 && (
|
|
185
|
+
function Tr(e, t) {
|
|
186
|
+
e.$$.dirty[0] === -1 && (Ue.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
const h =
|
|
190
|
-
|
|
188
|
+
function wr(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
189
|
+
const h = tt;
|
|
190
|
+
et(e);
|
|
191
191
|
const u = e.$$ = {
|
|
192
192
|
fragment: null,
|
|
193
193
|
ctx: [],
|
|
@@ -195,7 +195,7 @@ function Br(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
|
195
195
|
props: o,
|
|
196
196
|
update: se,
|
|
197
197
|
not_equal: i,
|
|
198
|
-
bound:
|
|
198
|
+
bound: rn(),
|
|
199
199
|
// lifecycle
|
|
200
200
|
on_mount: [],
|
|
201
201
|
on_destroy: [],
|
|
@@ -204,28 +204,28 @@ function Br(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
|
204
204
|
after_update: [],
|
|
205
205
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
206
206
|
// everything else
|
|
207
|
-
callbacks:
|
|
207
|
+
callbacks: rn(),
|
|
208
208
|
dirty: s,
|
|
209
209
|
skip_bound: !1,
|
|
210
210
|
root: t.target || h.$$.root
|
|
211
211
|
};
|
|
212
212
|
l && l(u.root);
|
|
213
213
|
let d = !1;
|
|
214
|
-
if (u.ctx = n ? n(e, t.props || {}, (m, g, ...
|
|
215
|
-
const B =
|
|
216
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = B) && (!u.skip_bound && u.bound[m] && u.bound[m](B), d &&
|
|
217
|
-
}) : [], u.update(), d = !0,
|
|
214
|
+
if (u.ctx = n ? n(e, t.props || {}, (m, g, ...x) => {
|
|
215
|
+
const B = x.length ? x[0] : g;
|
|
216
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = B) && (!u.skip_bound && u.bound[m] && u.bound[m](B), d && Tr(e, m)), g;
|
|
217
|
+
}) : [], u.update(), d = !0, Ve(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
218
218
|
if (t.hydrate) {
|
|
219
|
-
const m =
|
|
219
|
+
const m = fr(t.target);
|
|
220
220
|
u.fragment && u.fragment.l(m), m.forEach(fe);
|
|
221
221
|
} else
|
|
222
222
|
u.fragment && u.fragment.c();
|
|
223
|
-
t.intro &&
|
|
223
|
+
t.intro && _r(e.$$.fragment), xr(e, t.target, t.anchor), J();
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
et(h);
|
|
226
226
|
}
|
|
227
|
-
let
|
|
228
|
-
typeof HTMLElement == "function" && (
|
|
227
|
+
let Ln;
|
|
228
|
+
typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
|
|
229
229
|
/** The Svelte component constructor */
|
|
230
230
|
$$ctor;
|
|
231
231
|
/** Slots */
|
|
@@ -274,7 +274,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
274
274
|
* @param {HTMLElement} [anchor]
|
|
275
275
|
*/
|
|
276
276
|
m: function(h, u) {
|
|
277
|
-
|
|
277
|
+
ge(h, o, u);
|
|
278
278
|
},
|
|
279
279
|
d: function(h) {
|
|
280
280
|
h && fe(o);
|
|
@@ -284,12 +284,12 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
284
284
|
};
|
|
285
285
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
286
286
|
return;
|
|
287
|
-
const t = {}, n =
|
|
287
|
+
const t = {}, n = dr(this);
|
|
288
288
|
for (const i of this.$$s)
|
|
289
289
|
i in n && (t[i] = [e(i)]);
|
|
290
290
|
for (const i of this.attributes) {
|
|
291
291
|
const o = this.$$g_p(i.name);
|
|
292
|
-
o in this.$$d || (this.$$d[o] =
|
|
292
|
+
o in this.$$d || (this.$$d[o] = ht(o, i.value, this.$$p_d, "toProp"));
|
|
293
293
|
}
|
|
294
294
|
for (const i in this.$$p_d)
|
|
295
295
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -307,7 +307,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
307
307
|
this.$$r = !0;
|
|
308
308
|
for (const i in this.$$p_d)
|
|
309
309
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
310
|
-
const o =
|
|
310
|
+
const o = ht(
|
|
311
311
|
i,
|
|
312
312
|
this.$$d[i],
|
|
313
313
|
this.$$p_d,
|
|
@@ -329,7 +329,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
329
329
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
330
330
|
// and setting attributes through setAttribute etc, this is helpful
|
|
331
331
|
attributeChangedCallback(e, t, n) {
|
|
332
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
332
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ht(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
333
333
|
}
|
|
334
334
|
disconnectedCallback() {
|
|
335
335
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -342,7 +342,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
342
342
|
) || e;
|
|
343
343
|
}
|
|
344
344
|
});
|
|
345
|
-
function
|
|
345
|
+
function ht(e, t, n, r) {
|
|
346
346
|
const i = n[e]?.type;
|
|
347
347
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
348
348
|
return t;
|
|
@@ -371,8 +371,8 @@ function ct(e, t, n, r) {
|
|
|
371
371
|
return t;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
let l = class extends
|
|
374
|
+
function Sr(e, t, n, r, i, o) {
|
|
375
|
+
let l = class extends Ln {
|
|
376
376
|
constructor() {
|
|
377
377
|
super(e, n, i), this.$$p_d = t;
|
|
378
378
|
}
|
|
@@ -388,7 +388,7 @@ function Tr(e, t, n, r, i, o) {
|
|
|
388
388
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
389
389
|
},
|
|
390
390
|
set(h) {
|
|
391
|
-
h =
|
|
391
|
+
h = ht(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
394
|
}), r.forEach((s) => {
|
|
@@ -400,7 +400,7 @@ function Tr(e, t, n, r, i, o) {
|
|
|
400
400
|
}), e.element = /** @type {any} */
|
|
401
401
|
l, l;
|
|
402
402
|
}
|
|
403
|
-
class
|
|
403
|
+
class Ar {
|
|
404
404
|
/**
|
|
405
405
|
* ### PRIVATE API
|
|
406
406
|
*
|
|
@@ -419,7 +419,7 @@ class wr {
|
|
|
419
419
|
$$set = void 0;
|
|
420
420
|
/** @returns {void} */
|
|
421
421
|
$destroy() {
|
|
422
|
-
|
|
422
|
+
Br(this, 1), this.$destroy = se;
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
425
425
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -428,7 +428,7 @@ class wr {
|
|
|
428
428
|
* @returns {() => void}
|
|
429
429
|
*/
|
|
430
430
|
$on(t, n) {
|
|
431
|
-
if (!
|
|
431
|
+
if (!Yt(n))
|
|
432
432
|
return se;
|
|
433
433
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
434
434
|
return r.push(n), () => {
|
|
@@ -441,18 +441,18 @@ class wr {
|
|
|
441
441
|
* @returns {void}
|
|
442
442
|
*/
|
|
443
443
|
$set(t) {
|
|
444
|
-
this.$$set && !
|
|
444
|
+
this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
const
|
|
448
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
449
|
-
function
|
|
447
|
+
const Cr = "4";
|
|
448
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
|
|
449
|
+
function Hr(e, t) {
|
|
450
450
|
if (e) {
|
|
451
451
|
const n = document.createElement("style");
|
|
452
452
|
n.innerHTML = t, e.appendChild(n);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Or(e, t) {
|
|
456
456
|
const n = new URL(t);
|
|
457
457
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
458
458
|
const i = document.createElement("style");
|
|
@@ -461,7 +461,7 @@ function Cr(e, t) {
|
|
|
461
461
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Rr(e, t, n) {
|
|
465
465
|
if (window.emMessageBus) {
|
|
466
466
|
const r = document.createElement("style");
|
|
467
467
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -469,24 +469,24 @@ function Hr(e, t, n) {
|
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
const
|
|
473
|
-
function
|
|
472
|
+
const De = [];
|
|
473
|
+
function Lr(e, t) {
|
|
474
474
|
return {
|
|
475
|
-
subscribe:
|
|
475
|
+
subscribe: Et(e, t).subscribe
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Et(e, t = se) {
|
|
479
479
|
let n;
|
|
480
480
|
const r = /* @__PURE__ */ new Set();
|
|
481
481
|
function i(s) {
|
|
482
|
-
if (
|
|
483
|
-
const h = !
|
|
482
|
+
if (Hn(e, s) && (e = s, n)) {
|
|
483
|
+
const h = !De.length;
|
|
484
484
|
for (const u of r)
|
|
485
|
-
u[1](),
|
|
485
|
+
u[1](), De.push(u, e);
|
|
486
486
|
if (h) {
|
|
487
|
-
for (let u = 0; u <
|
|
488
|
-
|
|
489
|
-
|
|
487
|
+
for (let u = 0; u < De.length; u += 2)
|
|
488
|
+
De[u][0](De[u + 1]);
|
|
489
|
+
De.length = 0;
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
}
|
|
@@ -501,12 +501,12 @@ function yt(e, t = se) {
|
|
|
501
501
|
}
|
|
502
502
|
return { set: i, update: o, subscribe: l };
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function Xe(e, t, n) {
|
|
505
505
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
506
506
|
if (!i.every(Boolean))
|
|
507
507
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
508
508
|
const o = t.length < 2;
|
|
509
|
-
return
|
|
509
|
+
return Lr(n, (l, s) => {
|
|
510
510
|
let h = !1;
|
|
511
511
|
const u = [];
|
|
512
512
|
let d = 0, m = se;
|
|
@@ -515,12 +515,12 @@ function Ve(e, t, n) {
|
|
|
515
515
|
return;
|
|
516
516
|
m();
|
|
517
517
|
const B = t(r ? u[0] : u, l, s);
|
|
518
|
-
o ? l(B) : m =
|
|
519
|
-
},
|
|
520
|
-
(B, T) =>
|
|
518
|
+
o ? l(B) : m = Yt(B) ? B : se;
|
|
519
|
+
}, x = i.map(
|
|
520
|
+
(B, T) => On(
|
|
521
521
|
B,
|
|
522
|
-
(
|
|
523
|
-
u[T] =
|
|
522
|
+
(_) => {
|
|
523
|
+
u[T] = _, d &= ~(1 << T), h && g();
|
|
524
524
|
},
|
|
525
525
|
() => {
|
|
526
526
|
d |= 1 << T;
|
|
@@ -528,127 +528,113 @@ function Ve(e, t, n) {
|
|
|
528
528
|
)
|
|
529
529
|
);
|
|
530
530
|
return h = !0, g(), function() {
|
|
531
|
-
|
|
531
|
+
Ve(x), m(), h = !1;
|
|
532
532
|
};
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
|
-
var
|
|
536
|
-
function
|
|
535
|
+
var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
536
|
+
function Nr(e) {
|
|
537
537
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
538
538
|
}
|
|
539
|
-
var
|
|
540
|
-
return
|
|
539
|
+
var Pr = function(t) {
|
|
540
|
+
return Ir(t) && !Dr(t);
|
|
541
541
|
};
|
|
542
|
-
function
|
|
542
|
+
function Ir(e) {
|
|
543
543
|
return !!e && typeof e == "object";
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Dr(e) {
|
|
546
546
|
var t = Object.prototype.toString.call(e);
|
|
547
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
547
|
+
return t === "[object RegExp]" || t === "[object Date]" || Gr(e);
|
|
548
548
|
}
|
|
549
|
-
var
|
|
550
|
-
function
|
|
551
|
-
return e.$$typeof ===
|
|
549
|
+
var Ur = typeof Symbol == "function" && Symbol.for, Fr = Ur ? Symbol.for("react.element") : 60103;
|
|
550
|
+
function Gr(e) {
|
|
551
|
+
return e.$$typeof === Fr;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function $r(e) {
|
|
554
554
|
return Array.isArray(e) ? [] : {};
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
556
|
+
function nt(e, t) {
|
|
557
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ge($r(e), e, t) : e;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function jr(e, t, n) {
|
|
560
560
|
return e.concat(t).map(function(r) {
|
|
561
|
-
return
|
|
561
|
+
return nt(r, n);
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function kr(e, t) {
|
|
565
565
|
if (!t.customMerge)
|
|
566
|
-
return
|
|
566
|
+
return Ge;
|
|
567
567
|
var n = t.customMerge(e);
|
|
568
|
-
return typeof n == "function" ? n :
|
|
568
|
+
return typeof n == "function" ? n : Ge;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Vr(e) {
|
|
571
571
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
572
572
|
return Object.propertyIsEnumerable.call(e, t);
|
|
573
573
|
}) : [];
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return Object.keys(e).concat(
|
|
575
|
+
function sn(e) {
|
|
576
|
+
return Object.keys(e).concat(Vr(e));
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Mn(e, t) {
|
|
579
579
|
try {
|
|
580
580
|
return t in e;
|
|
581
581
|
} catch {
|
|
582
582
|
return !1;
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
function
|
|
586
|
-
return
|
|
585
|
+
function Xr(e, t) {
|
|
586
|
+
return Mn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function zr(e, t, n) {
|
|
589
589
|
var r = {};
|
|
590
|
-
return n.isMergeableObject(e) &&
|
|
591
|
-
r[i] =
|
|
592
|
-
}),
|
|
593
|
-
|
|
590
|
+
return n.isMergeableObject(e) && sn(e).forEach(function(i) {
|
|
591
|
+
r[i] = nt(e[i], n);
|
|
592
|
+
}), sn(t).forEach(function(i) {
|
|
593
|
+
Xr(e, i) || (Mn(e, i) && n.isMergeableObject(t[i]) ? r[i] = kr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
|
|
594
594
|
}), r;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
596
|
+
function Ge(e, t, n) {
|
|
597
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || jr, n.isMergeableObject = n.isMergeableObject || Pr, n.cloneUnlessOtherwiseSpecified = nt;
|
|
598
598
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
599
|
-
return o ? r ? n.arrayMerge(e, t, n) :
|
|
599
|
+
return o ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : nt(t, n);
|
|
600
600
|
}
|
|
601
|
-
|
|
601
|
+
Ge.all = function(t, n) {
|
|
602
602
|
if (!Array.isArray(t))
|
|
603
603
|
throw new Error("first argument should be an array");
|
|
604
604
|
return t.reduce(function(r, i) {
|
|
605
|
-
return
|
|
605
|
+
return Ge(r, i, n);
|
|
606
606
|
}, {});
|
|
607
607
|
};
|
|
608
|
-
var
|
|
609
|
-
const
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
614
|
-
purpose with or without fee is hereby granted.
|
|
615
|
-
|
|
616
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
617
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
618
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
619
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
620
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
621
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
622
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
623
|
-
***************************************************************************** */
|
|
624
|
-
var Gt = function(e, t) {
|
|
625
|
-
return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
608
|
+
var Wr = Ge, Zr = Wr;
|
|
609
|
+
const qr = /* @__PURE__ */ Nr(Zr);
|
|
610
|
+
var jt = function(e, t) {
|
|
611
|
+
return jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
626
612
|
n.__proto__ = r;
|
|
627
613
|
} || function(n, r) {
|
|
628
614
|
for (var i in r)
|
|
629
615
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
630
|
-
},
|
|
616
|
+
}, jt(e, t);
|
|
631
617
|
};
|
|
632
|
-
function
|
|
618
|
+
function _t(e, t) {
|
|
633
619
|
if (typeof t != "function" && t !== null)
|
|
634
620
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
635
|
-
|
|
621
|
+
jt(e, t);
|
|
636
622
|
function n() {
|
|
637
623
|
this.constructor = e;
|
|
638
624
|
}
|
|
639
625
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
640
626
|
}
|
|
641
|
-
var
|
|
642
|
-
return
|
|
627
|
+
var me = function() {
|
|
628
|
+
return me = Object.assign || function(t) {
|
|
643
629
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
644
630
|
n = arguments[r];
|
|
645
631
|
for (var o in n)
|
|
646
632
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
647
633
|
}
|
|
648
634
|
return t;
|
|
649
|
-
},
|
|
635
|
+
}, me.apply(this, arguments);
|
|
650
636
|
};
|
|
651
|
-
function
|
|
637
|
+
function Qr(e, t) {
|
|
652
638
|
var n = {};
|
|
653
639
|
for (var r in e)
|
|
654
640
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -657,43 +643,43 @@ function Zr(e, t) {
|
|
|
657
643
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
658
644
|
return n;
|
|
659
645
|
}
|
|
660
|
-
function
|
|
661
|
-
if (arguments.length === 2)
|
|
646
|
+
function Mt(e, t, n) {
|
|
647
|
+
if (n || arguments.length === 2)
|
|
662
648
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
663
649
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
664
|
-
return e.concat(o || t);
|
|
650
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
665
651
|
}
|
|
666
|
-
function
|
|
667
|
-
var n = t && t.cache ? t.cache :
|
|
652
|
+
function Nt(e, t) {
|
|
653
|
+
var n = t && t.cache ? t.cache : ri, r = t && t.serializer ? t.serializer : ti, i = t && t.strategy ? t.strategy : Kr;
|
|
668
654
|
return i(e, {
|
|
669
655
|
cache: n,
|
|
670
656
|
serializer: r
|
|
671
657
|
});
|
|
672
658
|
}
|
|
673
|
-
function
|
|
659
|
+
function Jr(e) {
|
|
674
660
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
675
661
|
}
|
|
676
|
-
function
|
|
677
|
-
var i =
|
|
662
|
+
function Yr(e, t, n, r) {
|
|
663
|
+
var i = Jr(r) ? r : n(r), o = t.get(i);
|
|
678
664
|
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
679
665
|
}
|
|
680
|
-
function
|
|
666
|
+
function Nn(e, t, n) {
|
|
681
667
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
682
668
|
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
683
669
|
}
|
|
684
|
-
function
|
|
670
|
+
function Pn(e, t, n, r, i) {
|
|
685
671
|
return n.bind(t, e, r, i);
|
|
686
672
|
}
|
|
687
|
-
function
|
|
688
|
-
var n = e.length === 1 ?
|
|
689
|
-
return
|
|
673
|
+
function Kr(e, t) {
|
|
674
|
+
var n = e.length === 1 ? Yr : Nn;
|
|
675
|
+
return Pn(e, this, n, t.cache.create(), t.serializer);
|
|
690
676
|
}
|
|
691
|
-
function
|
|
692
|
-
return
|
|
677
|
+
function ei(e, t) {
|
|
678
|
+
return Pn(e, this, Nn, t.cache.create(), t.serializer);
|
|
693
679
|
}
|
|
694
|
-
var
|
|
680
|
+
var ti = function() {
|
|
695
681
|
return JSON.stringify(arguments);
|
|
696
|
-
},
|
|
682
|
+
}, ni = (
|
|
697
683
|
/** @class */
|
|
698
684
|
function() {
|
|
699
685
|
function e() {
|
|
@@ -705,61 +691,71 @@ var Kr = function() {
|
|
|
705
691
|
this.cache[t] = n;
|
|
706
692
|
}, e;
|
|
707
693
|
}()
|
|
708
|
-
),
|
|
694
|
+
), ri = {
|
|
709
695
|
create: function() {
|
|
710
|
-
return new
|
|
696
|
+
return new ni();
|
|
711
697
|
}
|
|
712
|
-
},
|
|
713
|
-
variadic:
|
|
714
|
-
},
|
|
698
|
+
}, Pt = {
|
|
699
|
+
variadic: ei
|
|
700
|
+
}, bt = function() {
|
|
701
|
+
return bt = Object.assign || function(t) {
|
|
702
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
703
|
+
n = arguments[r];
|
|
704
|
+
for (var o in n)
|
|
705
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
706
|
+
}
|
|
707
|
+
return t;
|
|
708
|
+
}, bt.apply(this, arguments);
|
|
709
|
+
};
|
|
710
|
+
var O;
|
|
715
711
|
(function(e) {
|
|
716
712
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
717
713
|
})(O || (O = {}));
|
|
718
|
-
var
|
|
714
|
+
var $;
|
|
719
715
|
(function(e) {
|
|
720
716
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
721
|
-
})(
|
|
722
|
-
var
|
|
717
|
+
})($ || ($ = {}));
|
|
718
|
+
var $e;
|
|
723
719
|
(function(e) {
|
|
724
720
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
725
|
-
})(
|
|
726
|
-
function
|
|
727
|
-
return e.type ===
|
|
728
|
-
}
|
|
729
|
-
function ni(e) {
|
|
730
|
-
return e.type === k.argument;
|
|
721
|
+
})($e || ($e = {}));
|
|
722
|
+
function ln(e) {
|
|
723
|
+
return e.type === $.literal;
|
|
731
724
|
}
|
|
732
|
-
function
|
|
733
|
-
return e.type ===
|
|
725
|
+
function ii(e) {
|
|
726
|
+
return e.type === $.argument;
|
|
734
727
|
}
|
|
735
728
|
function In(e) {
|
|
736
|
-
return e.type ===
|
|
737
|
-
}
|
|
738
|
-
function Pn(e) {
|
|
739
|
-
return e.type === k.time;
|
|
729
|
+
return e.type === $.number;
|
|
740
730
|
}
|
|
741
731
|
function Dn(e) {
|
|
742
|
-
return e.type ===
|
|
732
|
+
return e.type === $.date;
|
|
743
733
|
}
|
|
744
734
|
function Un(e) {
|
|
745
|
-
return e.type ===
|
|
746
|
-
}
|
|
747
|
-
function ri(e) {
|
|
748
|
-
return e.type === k.pound;
|
|
735
|
+
return e.type === $.time;
|
|
749
736
|
}
|
|
750
737
|
function Fn(e) {
|
|
751
|
-
return e.type ===
|
|
738
|
+
return e.type === $.select;
|
|
752
739
|
}
|
|
753
740
|
function Gn(e) {
|
|
754
|
-
return
|
|
741
|
+
return e.type === $.plural;
|
|
755
742
|
}
|
|
756
|
-
function $t(e) {
|
|
757
|
-
return !!(e && typeof e == "object" && e.type === Ge.dateTime);
|
|
758
|
-
}
|
|
759
|
-
var $n = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ii = /(?:[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;
|
|
760
743
|
function oi(e) {
|
|
744
|
+
return e.type === $.pound;
|
|
745
|
+
}
|
|
746
|
+
function $n(e) {
|
|
747
|
+
return e.type === $.tag;
|
|
748
|
+
}
|
|
749
|
+
function jn(e) {
|
|
750
|
+
return !!(e && typeof e == "object" && e.type === $e.number);
|
|
751
|
+
}
|
|
752
|
+
function kt(e) {
|
|
753
|
+
return !!(e && typeof e == "object" && e.type === $e.dateTime);
|
|
754
|
+
}
|
|
755
|
+
var kn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ai = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
756
|
+
function si(e) {
|
|
761
757
|
var t = {};
|
|
762
|
-
return e.replace(
|
|
758
|
+
return e.replace(ai, function(n) {
|
|
763
759
|
var r = n.length;
|
|
764
760
|
switch (n[0]) {
|
|
765
761
|
case "G":
|
|
@@ -848,11 +844,21 @@ function oi(e) {
|
|
|
848
844
|
return "";
|
|
849
845
|
}), t;
|
|
850
846
|
}
|
|
851
|
-
var
|
|
852
|
-
function
|
|
847
|
+
var X = function() {
|
|
848
|
+
return X = Object.assign || function(t) {
|
|
849
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
850
|
+
n = arguments[r];
|
|
851
|
+
for (var o in n)
|
|
852
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
853
|
+
}
|
|
854
|
+
return t;
|
|
855
|
+
}, X.apply(this, arguments);
|
|
856
|
+
};
|
|
857
|
+
var li = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
858
|
+
function ui(e) {
|
|
853
859
|
if (e.length === 0)
|
|
854
860
|
throw new Error("Number skeleton cannot be empty");
|
|
855
|
-
for (var t = e.split(
|
|
861
|
+
for (var t = e.split(li).filter(function(g) {
|
|
856
862
|
return g.length > 0;
|
|
857
863
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
858
864
|
var o = i[r], l = o.split("/");
|
|
@@ -867,17 +873,17 @@ function si(e) {
|
|
|
867
873
|
}
|
|
868
874
|
return n;
|
|
869
875
|
}
|
|
870
|
-
function
|
|
876
|
+
function ci(e) {
|
|
871
877
|
return e.replace(/^(.*?)-/, "");
|
|
872
878
|
}
|
|
873
|
-
var
|
|
874
|
-
function
|
|
879
|
+
var un = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vn = /^(@+)?(\+|#+)?[rs]?$/g, hi = /(\*)(0+)|(#+)(0+)|(0+)/g, Xn = /^(0+)$/;
|
|
880
|
+
function cn(e) {
|
|
875
881
|
var t = {};
|
|
876
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
882
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vn, function(n, r, i) {
|
|
877
883
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
878
884
|
}), t;
|
|
879
885
|
}
|
|
880
|
-
function
|
|
886
|
+
function zn(e) {
|
|
881
887
|
switch (e) {
|
|
882
888
|
case "sign-auto":
|
|
883
889
|
return {
|
|
@@ -917,7 +923,7 @@ function Vn(e) {
|
|
|
917
923
|
};
|
|
918
924
|
}
|
|
919
925
|
}
|
|
920
|
-
function
|
|
926
|
+
function fi(e) {
|
|
921
927
|
var t;
|
|
922
928
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
923
929
|
notation: "engineering"
|
|
@@ -925,17 +931,17 @@ function ci(e) {
|
|
|
925
931
|
notation: "scientific"
|
|
926
932
|
}, e = e.slice(1)), t) {
|
|
927
933
|
var n = e.slice(0, 2);
|
|
928
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
934
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xn.test(e))
|
|
929
935
|
throw new Error("Malformed concise eng/scientific notation");
|
|
930
936
|
t.minimumIntegerDigits = e.length;
|
|
931
937
|
}
|
|
932
938
|
return t;
|
|
933
939
|
}
|
|
934
|
-
function
|
|
935
|
-
var t = {}, n =
|
|
940
|
+
function hn(e) {
|
|
941
|
+
var t = {}, n = zn(e);
|
|
936
942
|
return n || t;
|
|
937
943
|
}
|
|
938
|
-
function
|
|
944
|
+
function di(e) {
|
|
939
945
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
940
946
|
var i = r[n];
|
|
941
947
|
switch (i.stem) {
|
|
@@ -959,7 +965,7 @@ function hi(e) {
|
|
|
959
965
|
continue;
|
|
960
966
|
case "measure-unit":
|
|
961
967
|
case "unit":
|
|
962
|
-
t.style = "unit", t.unit =
|
|
968
|
+
t.style = "unit", t.unit = ci(i.options[0]);
|
|
963
969
|
continue;
|
|
964
970
|
case "compact-short":
|
|
965
971
|
case "K":
|
|
@@ -970,13 +976,13 @@ function hi(e) {
|
|
|
970
976
|
t.notation = "compact", t.compactDisplay = "long";
|
|
971
977
|
continue;
|
|
972
978
|
case "scientific":
|
|
973
|
-
t =
|
|
974
|
-
return
|
|
979
|
+
t = X(X(X({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
980
|
+
return X(X({}, h), hn(u));
|
|
975
981
|
}, {}));
|
|
976
982
|
continue;
|
|
977
983
|
case "engineering":
|
|
978
|
-
t =
|
|
979
|
-
return
|
|
984
|
+
t = X(X(X({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
985
|
+
return X(X({}, h), hn(u));
|
|
980
986
|
}, {}));
|
|
981
987
|
continue;
|
|
982
988
|
case "notation-simple":
|
|
@@ -1021,45 +1027,45 @@ function hi(e) {
|
|
|
1021
1027
|
case "integer-width":
|
|
1022
1028
|
if (i.options.length > 1)
|
|
1023
1029
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1024
|
-
i.options[0].replace(
|
|
1030
|
+
i.options[0].replace(hi, function(h, u, d, m, g, x) {
|
|
1025
1031
|
if (u)
|
|
1026
1032
|
t.minimumIntegerDigits = d.length;
|
|
1027
1033
|
else {
|
|
1028
1034
|
if (m && g)
|
|
1029
1035
|
throw new Error("We currently do not support maximum integer digits");
|
|
1030
|
-
if (
|
|
1036
|
+
if (x)
|
|
1031
1037
|
throw new Error("We currently do not support exact integer digits");
|
|
1032
1038
|
}
|
|
1033
1039
|
return "";
|
|
1034
1040
|
});
|
|
1035
1041
|
continue;
|
|
1036
1042
|
}
|
|
1037
|
-
if (
|
|
1043
|
+
if (Xn.test(i.stem)) {
|
|
1038
1044
|
t.minimumIntegerDigits = i.stem.length;
|
|
1039
1045
|
continue;
|
|
1040
1046
|
}
|
|
1041
|
-
if (
|
|
1047
|
+
if (un.test(i.stem)) {
|
|
1042
1048
|
if (i.options.length > 1)
|
|
1043
1049
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1044
|
-
i.stem.replace(
|
|
1045
|
-
return d === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : g &&
|
|
1050
|
+
i.stem.replace(un, function(h, u, d, m, g, x) {
|
|
1051
|
+
return d === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : g && x ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + x.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1046
1052
|
});
|
|
1047
1053
|
var o = i.options[0];
|
|
1048
|
-
o === "w" ? t =
|
|
1054
|
+
o === "w" ? t = X(X({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = X(X({}, t), cn(o)));
|
|
1049
1055
|
continue;
|
|
1050
1056
|
}
|
|
1051
|
-
if (
|
|
1052
|
-
t =
|
|
1057
|
+
if (Vn.test(i.stem)) {
|
|
1058
|
+
t = X(X({}, t), cn(i.stem));
|
|
1053
1059
|
continue;
|
|
1054
1060
|
}
|
|
1055
|
-
var l =
|
|
1056
|
-
l && (t =
|
|
1057
|
-
var s =
|
|
1058
|
-
s && (t =
|
|
1061
|
+
var l = zn(i.stem);
|
|
1062
|
+
l && (t = X(X({}, t), l));
|
|
1063
|
+
var s = fi(i.stem);
|
|
1064
|
+
s && (t = X(X({}, t), s));
|
|
1059
1065
|
}
|
|
1060
1066
|
return t;
|
|
1061
1067
|
}
|
|
1062
|
-
var
|
|
1068
|
+
var ct = {
|
|
1063
1069
|
"001": [
|
|
1064
1070
|
"H",
|
|
1065
1071
|
"h"
|
|
@@ -2474,13 +2480,13 @@ var ut = {
|
|
|
2474
2480
|
"h"
|
|
2475
2481
|
]
|
|
2476
2482
|
};
|
|
2477
|
-
function
|
|
2483
|
+
function pi(e, t) {
|
|
2478
2484
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2479
2485
|
var i = e.charAt(r);
|
|
2480
2486
|
if (i === "j") {
|
|
2481
2487
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2482
2488
|
o++, r++;
|
|
2483
|
-
var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2489
|
+
var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = mi(t);
|
|
2484
2490
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2485
2491
|
n += h;
|
|
2486
2492
|
for (; l-- > 0; )
|
|
@@ -2490,7 +2496,7 @@ function fi(e, t) {
|
|
|
2490
2496
|
}
|
|
2491
2497
|
return n;
|
|
2492
2498
|
}
|
|
2493
|
-
function
|
|
2499
|
+
function mi(e) {
|
|
2494
2500
|
var t = e.hourCycle;
|
|
2495
2501
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2496
2502
|
e.hourCycles && // @ts-ignore
|
|
@@ -2509,23 +2515,23 @@ function di(e) {
|
|
|
2509
2515
|
}
|
|
2510
2516
|
var n = e.language, r;
|
|
2511
2517
|
n !== "root" && (r = e.maximize().region);
|
|
2512
|
-
var i =
|
|
2518
|
+
var i = ct[r || ""] || ct[n || ""] || ct["".concat(n, "-001")] || ct["001"];
|
|
2513
2519
|
return i[0];
|
|
2514
2520
|
}
|
|
2515
|
-
var
|
|
2521
|
+
var It, gi = new RegExp("^".concat(kn.source, "*")), bi = new RegExp("".concat(kn.source, "*$"));
|
|
2516
2522
|
function M(e, t) {
|
|
2517
2523
|
return { start: e, end: t };
|
|
2518
2524
|
}
|
|
2519
|
-
var
|
|
2525
|
+
var yi = !!String.prototype.startsWith && "_a".startsWith("a", 1), vi = !!String.fromCodePoint, Ei = !!Object.fromEntries, _i = !!String.prototype.codePointAt, xi = !!String.prototype.trimStart, Bi = !!String.prototype.trimEnd, Ti = !!Number.isSafeInteger, wi = Ti ? Number.isSafeInteger : function(e) {
|
|
2520
2526
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2521
|
-
},
|
|
2527
|
+
}, Vt = !0;
|
|
2522
2528
|
try {
|
|
2523
|
-
var
|
|
2524
|
-
|
|
2529
|
+
var Si = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2530
|
+
Vt = ((It = Si.exec("a")) === null || It === void 0 ? void 0 : It[0]) === "a";
|
|
2525
2531
|
} catch {
|
|
2526
|
-
|
|
2532
|
+
Vt = !1;
|
|
2527
2533
|
}
|
|
2528
|
-
var
|
|
2534
|
+
var fn = yi ? (
|
|
2529
2535
|
// Native
|
|
2530
2536
|
function(t, n, r) {
|
|
2531
2537
|
return t.startsWith(n, r);
|
|
@@ -2535,7 +2541,7 @@ var cn = gi ? (
|
|
|
2535
2541
|
function(t, n, r) {
|
|
2536
2542
|
return t.slice(r, r + n.length) === n;
|
|
2537
2543
|
}
|
|
2538
|
-
),
|
|
2544
|
+
), Xt = vi ? String.fromCodePoint : (
|
|
2539
2545
|
// IE11
|
|
2540
2546
|
function() {
|
|
2541
2547
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2547,9 +2553,9 @@ var cn = gi ? (
|
|
|
2547
2553
|
}
|
|
2548
2554
|
return r;
|
|
2549
2555
|
}
|
|
2550
|
-
),
|
|
2556
|
+
), dn = (
|
|
2551
2557
|
// native
|
|
2552
|
-
|
|
2558
|
+
Ei ? Object.fromEntries : (
|
|
2553
2559
|
// Ponyfill
|
|
2554
2560
|
function(t) {
|
|
2555
2561
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2559,7 +2565,7 @@ var cn = gi ? (
|
|
|
2559
2565
|
return n;
|
|
2560
2566
|
}
|
|
2561
2567
|
)
|
|
2562
|
-
),
|
|
2568
|
+
), Wn = _i ? (
|
|
2563
2569
|
// Native
|
|
2564
2570
|
function(t, n) {
|
|
2565
2571
|
return t.codePointAt(n);
|
|
@@ -2573,7 +2579,7 @@ var cn = gi ? (
|
|
|
2573
2579
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2574
2580
|
}
|
|
2575
2581
|
}
|
|
2576
|
-
),
|
|
2582
|
+
), Ai = xi ? (
|
|
2577
2583
|
// Native
|
|
2578
2584
|
function(t) {
|
|
2579
2585
|
return t.trimStart();
|
|
@@ -2581,9 +2587,9 @@ var cn = gi ? (
|
|
|
2581
2587
|
) : (
|
|
2582
2588
|
// Ponyfill
|
|
2583
2589
|
function(t) {
|
|
2584
|
-
return t.replace(
|
|
2590
|
+
return t.replace(gi, "");
|
|
2585
2591
|
}
|
|
2586
|
-
),
|
|
2592
|
+
), Ci = Bi ? (
|
|
2587
2593
|
// Native
|
|
2588
2594
|
function(t) {
|
|
2589
2595
|
return t.trimEnd();
|
|
@@ -2591,32 +2597,32 @@ var cn = gi ? (
|
|
|
2591
2597
|
) : (
|
|
2592
2598
|
// Ponyfill
|
|
2593
2599
|
function(t) {
|
|
2594
|
-
return t.replace(
|
|
2600
|
+
return t.replace(bi, "");
|
|
2595
2601
|
}
|
|
2596
2602
|
);
|
|
2597
|
-
function
|
|
2603
|
+
function Zn(e, t) {
|
|
2598
2604
|
return new RegExp(e, t);
|
|
2599
2605
|
}
|
|
2600
|
-
var
|
|
2601
|
-
if (
|
|
2602
|
-
var
|
|
2603
|
-
|
|
2606
|
+
var zt;
|
|
2607
|
+
if (Vt) {
|
|
2608
|
+
var pn = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2609
|
+
zt = function(t, n) {
|
|
2604
2610
|
var r;
|
|
2605
|
-
|
|
2606
|
-
var i =
|
|
2611
|
+
pn.lastIndex = n;
|
|
2612
|
+
var i = pn.exec(t);
|
|
2607
2613
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2608
2614
|
};
|
|
2609
2615
|
} else
|
|
2610
|
-
|
|
2616
|
+
zt = function(t, n) {
|
|
2611
2617
|
for (var r = []; ; ) {
|
|
2612
|
-
var i =
|
|
2613
|
-
if (i === void 0 ||
|
|
2618
|
+
var i = Wn(t, n);
|
|
2619
|
+
if (i === void 0 || qn(i) || Li(i))
|
|
2614
2620
|
break;
|
|
2615
2621
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2616
2622
|
}
|
|
2617
|
-
return
|
|
2623
|
+
return Xt.apply(void 0, r);
|
|
2618
2624
|
};
|
|
2619
|
-
var
|
|
2625
|
+
var Hi = (
|
|
2620
2626
|
/** @class */
|
|
2621
2627
|
function() {
|
|
2622
2628
|
function e(t, n) {
|
|
@@ -2640,14 +2646,14 @@ var Ai = (
|
|
|
2640
2646
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2641
2647
|
var s = this.clonePosition();
|
|
2642
2648
|
this.bump(), i.push({
|
|
2643
|
-
type:
|
|
2649
|
+
type: $.pound,
|
|
2644
2650
|
location: M(s, this.clonePosition())
|
|
2645
2651
|
});
|
|
2646
2652
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2647
2653
|
if (r)
|
|
2648
2654
|
break;
|
|
2649
2655
|
return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
|
|
2650
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2656
|
+
} else if (o === 60 && !this.ignoreTag && Wt(this.peek() || 0)) {
|
|
2651
2657
|
var l = this.parseTag(t, n);
|
|
2652
2658
|
if (l.err)
|
|
2653
2659
|
return l;
|
|
@@ -2668,7 +2674,7 @@ var Ai = (
|
|
|
2668
2674
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2669
2675
|
return {
|
|
2670
2676
|
val: {
|
|
2671
|
-
type:
|
|
2677
|
+
type: $.literal,
|
|
2672
2678
|
value: "<".concat(i, "/>"),
|
|
2673
2679
|
location: M(r, this.clonePosition())
|
|
2674
2680
|
},
|
|
@@ -2680,12 +2686,12 @@ var Ai = (
|
|
|
2680
2686
|
return o;
|
|
2681
2687
|
var l = o.val, s = this.clonePosition();
|
|
2682
2688
|
if (this.bumpIf("</")) {
|
|
2683
|
-
if (this.isEOF() || !
|
|
2689
|
+
if (this.isEOF() || !Wt(this.char()))
|
|
2684
2690
|
return this.error(O.INVALID_TAG, M(s, this.clonePosition()));
|
|
2685
2691
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2686
2692
|
return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, M(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2687
2693
|
val: {
|
|
2688
|
-
type:
|
|
2694
|
+
type: $.tag,
|
|
2689
2695
|
value: i,
|
|
2690
2696
|
children: l,
|
|
2691
2697
|
location: M(r, this.clonePosition())
|
|
@@ -2698,7 +2704,7 @@ var Ai = (
|
|
|
2698
2704
|
return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
|
|
2699
2705
|
}, e.prototype.parseTagName = function() {
|
|
2700
2706
|
var t = this.offset();
|
|
2701
|
-
for (this.bump(); !this.isEOF() &&
|
|
2707
|
+
for (this.bump(); !this.isEOF() && Ri(this.char()); )
|
|
2702
2708
|
this.bump();
|
|
2703
2709
|
return this.message.slice(t, this.offset());
|
|
2704
2710
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2722,12 +2728,12 @@ var Ai = (
|
|
|
2722
2728
|
}
|
|
2723
2729
|
var h = M(r, this.clonePosition());
|
|
2724
2730
|
return {
|
|
2725
|
-
val: { type:
|
|
2731
|
+
val: { type: $.literal, value: i, location: h },
|
|
2726
2732
|
err: null
|
|
2727
2733
|
};
|
|
2728
2734
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2729
2735
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2730
|
-
!
|
|
2736
|
+
!Oi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2731
2737
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2732
2738
|
if (this.isEOF() || this.char() !== 39)
|
|
2733
2739
|
return null;
|
|
@@ -2761,12 +2767,12 @@ var Ai = (
|
|
|
2761
2767
|
n.push(r);
|
|
2762
2768
|
this.bump();
|
|
2763
2769
|
}
|
|
2764
|
-
return
|
|
2770
|
+
return Xt.apply(void 0, n);
|
|
2765
2771
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2766
2772
|
if (this.isEOF())
|
|
2767
2773
|
return null;
|
|
2768
2774
|
var r = this.char();
|
|
2769
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2775
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Xt(r));
|
|
2770
2776
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2771
2777
|
var r = this.clonePosition();
|
|
2772
2778
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2782,7 +2788,7 @@ var Ai = (
|
|
|
2782
2788
|
case 125:
|
|
2783
2789
|
return this.bump(), {
|
|
2784
2790
|
val: {
|
|
2785
|
-
type:
|
|
2791
|
+
type: $.argument,
|
|
2786
2792
|
// value does not include the opening and closing braces.
|
|
2787
2793
|
value: i,
|
|
2788
2794
|
location: M(r, this.clonePosition())
|
|
@@ -2795,7 +2801,7 @@ var Ai = (
|
|
|
2795
2801
|
return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
|
|
2796
2802
|
}
|
|
2797
2803
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2798
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2804
|
+
var t = this.clonePosition(), n = this.offset(), r = zt(this.message, n), i = n + r.length;
|
|
2799
2805
|
this.bumpTo(i);
|
|
2800
2806
|
var o = this.clonePosition(), l = M(t, o);
|
|
2801
2807
|
return { value: r, location: l };
|
|
@@ -2814,44 +2820,44 @@ var Ai = (
|
|
|
2814
2820
|
var d = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
2815
2821
|
if (m.err)
|
|
2816
2822
|
return m;
|
|
2817
|
-
var g =
|
|
2823
|
+
var g = Ci(m.val);
|
|
2818
2824
|
if (g.length === 0)
|
|
2819
2825
|
return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
|
|
2820
|
-
var
|
|
2821
|
-
u = { style: g, styleLocation:
|
|
2826
|
+
var x = M(d, this.clonePosition());
|
|
2827
|
+
u = { style: g, styleLocation: x };
|
|
2822
2828
|
}
|
|
2823
2829
|
var B = this.tryParseArgumentClose(i);
|
|
2824
2830
|
if (B.err)
|
|
2825
2831
|
return B;
|
|
2826
2832
|
var T = M(i, this.clonePosition());
|
|
2827
|
-
if (u &&
|
|
2828
|
-
var
|
|
2833
|
+
if (u && fn(u?.style, "::", 0)) {
|
|
2834
|
+
var _ = Ai(u.style.slice(2));
|
|
2829
2835
|
if (s === "number") {
|
|
2830
|
-
var m = this.parseNumberSkeletonFromString(
|
|
2836
|
+
var m = this.parseNumberSkeletonFromString(_, u.styleLocation);
|
|
2831
2837
|
return m.err ? m : {
|
|
2832
|
-
val: { type:
|
|
2838
|
+
val: { type: $.number, value: r, location: T, style: m.val },
|
|
2833
2839
|
err: null
|
|
2834
2840
|
};
|
|
2835
2841
|
} else {
|
|
2836
|
-
if (
|
|
2842
|
+
if (_.length === 0)
|
|
2837
2843
|
return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
|
|
2838
|
-
var S =
|
|
2839
|
-
this.locale && (S =
|
|
2844
|
+
var S = _;
|
|
2845
|
+
this.locale && (S = pi(_, this.locale));
|
|
2840
2846
|
var g = {
|
|
2841
|
-
type:
|
|
2847
|
+
type: $e.dateTime,
|
|
2842
2848
|
pattern: S,
|
|
2843
2849
|
location: u.styleLocation,
|
|
2844
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2845
|
-
},
|
|
2850
|
+
parsedOptions: this.shouldParseSkeletons ? si(S) : {}
|
|
2851
|
+
}, I = s === "date" ? $.date : $.time;
|
|
2846
2852
|
return {
|
|
2847
|
-
val: { type:
|
|
2853
|
+
val: { type: I, value: r, location: T, style: g },
|
|
2848
2854
|
err: null
|
|
2849
2855
|
};
|
|
2850
2856
|
}
|
|
2851
2857
|
}
|
|
2852
2858
|
return {
|
|
2853
2859
|
val: {
|
|
2854
|
-
type: s === "number" ?
|
|
2860
|
+
type: s === "number" ? $.number : s === "date" ? $.date : $.time,
|
|
2855
2861
|
value: r,
|
|
2856
2862
|
location: T,
|
|
2857
2863
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -2864,19 +2870,19 @@ var Ai = (
|
|
|
2864
2870
|
case "select": {
|
|
2865
2871
|
var H = this.clonePosition();
|
|
2866
2872
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2867
|
-
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H,
|
|
2873
|
+
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H, bt({}, H)));
|
|
2868
2874
|
this.bumpSpace();
|
|
2869
|
-
var
|
|
2870
|
-
if (s !== "select" &&
|
|
2875
|
+
var D = this.parseIdentifierIfPossible(), W = 0;
|
|
2876
|
+
if (s !== "select" && D.value === "offset") {
|
|
2871
2877
|
if (!this.bumpIf(":"))
|
|
2872
2878
|
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
|
|
2873
2879
|
this.bumpSpace();
|
|
2874
2880
|
var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2875
2881
|
if (m.err)
|
|
2876
2882
|
return m;
|
|
2877
|
-
this.bumpSpace(),
|
|
2883
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), W = m.val;
|
|
2878
2884
|
}
|
|
2879
|
-
var q = this.tryParsePluralOrSelectOptions(t, s, n,
|
|
2885
|
+
var q = this.tryParsePluralOrSelectOptions(t, s, n, D);
|
|
2880
2886
|
if (q.err)
|
|
2881
2887
|
return q;
|
|
2882
2888
|
var B = this.tryParseArgumentClose(i);
|
|
@@ -2885,17 +2891,17 @@ var Ai = (
|
|
|
2885
2891
|
var Y = M(i, this.clonePosition());
|
|
2886
2892
|
return s === "select" ? {
|
|
2887
2893
|
val: {
|
|
2888
|
-
type:
|
|
2894
|
+
type: $.select,
|
|
2889
2895
|
value: r,
|
|
2890
|
-
options:
|
|
2896
|
+
options: dn(q.val),
|
|
2891
2897
|
location: Y
|
|
2892
2898
|
},
|
|
2893
2899
|
err: null
|
|
2894
2900
|
} : {
|
|
2895
2901
|
val: {
|
|
2896
|
-
type:
|
|
2902
|
+
type: $.plural,
|
|
2897
2903
|
value: r,
|
|
2898
|
-
options:
|
|
2904
|
+
options: dn(q.val),
|
|
2899
2905
|
offset: W,
|
|
2900
2906
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2901
2907
|
location: Y
|
|
@@ -2946,16 +2952,16 @@ var Ai = (
|
|
|
2946
2952
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2947
2953
|
var r = [];
|
|
2948
2954
|
try {
|
|
2949
|
-
r =
|
|
2955
|
+
r = ui(t);
|
|
2950
2956
|
} catch {
|
|
2951
2957
|
return this.error(O.INVALID_NUMBER_SKELETON, n);
|
|
2952
2958
|
}
|
|
2953
2959
|
return {
|
|
2954
2960
|
val: {
|
|
2955
|
-
type:
|
|
2961
|
+
type: $e.number,
|
|
2956
2962
|
tokens: r,
|
|
2957
2963
|
location: n,
|
|
2958
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2964
|
+
parsedOptions: this.shouldParseSkeletons ? di(r) : {}
|
|
2959
2965
|
},
|
|
2960
2966
|
err: null
|
|
2961
2967
|
};
|
|
@@ -2974,20 +2980,20 @@ var Ai = (
|
|
|
2974
2980
|
if (h.has(u))
|
|
2975
2981
|
return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
|
|
2976
2982
|
u === "other" && (l = !0), this.bumpSpace();
|
|
2977
|
-
var
|
|
2983
|
+
var x = this.clonePosition();
|
|
2978
2984
|
if (!this.bumpIf("{"))
|
|
2979
2985
|
return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
|
|
2980
2986
|
var B = this.parseMessage(t + 1, n, r);
|
|
2981
2987
|
if (B.err)
|
|
2982
2988
|
return B;
|
|
2983
|
-
var T = this.tryParseArgumentClose(
|
|
2989
|
+
var T = this.tryParseArgumentClose(x);
|
|
2984
2990
|
if (T.err)
|
|
2985
2991
|
return T;
|
|
2986
2992
|
s.push([
|
|
2987
2993
|
u,
|
|
2988
2994
|
{
|
|
2989
2995
|
value: B.val,
|
|
2990
|
-
location: M(
|
|
2996
|
+
location: M(x, this.clonePosition())
|
|
2991
2997
|
}
|
|
2992
2998
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
|
|
2993
2999
|
}
|
|
@@ -3003,7 +3009,7 @@ var Ai = (
|
|
|
3003
3009
|
break;
|
|
3004
3010
|
}
|
|
3005
3011
|
var h = M(i, this.clonePosition());
|
|
3006
|
-
return o ? (l *= r,
|
|
3012
|
+
return o ? (l *= r, wi(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
|
|
3007
3013
|
}, e.prototype.offset = function() {
|
|
3008
3014
|
return this.position.offset;
|
|
3009
3015
|
}, e.prototype.isEOF = function() {
|
|
@@ -3018,7 +3024,7 @@ var Ai = (
|
|
|
3018
3024
|
var t = this.position.offset;
|
|
3019
3025
|
if (t >= this.message.length)
|
|
3020
3026
|
throw Error("out of bound");
|
|
3021
|
-
var n =
|
|
3027
|
+
var n = Wn(this.message, t);
|
|
3022
3028
|
if (n === void 0)
|
|
3023
3029
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3024
3030
|
return n;
|
|
@@ -3037,7 +3043,7 @@ var Ai = (
|
|
|
3037
3043
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3038
3044
|
}
|
|
3039
3045
|
}, e.prototype.bumpIf = function(t) {
|
|
3040
|
-
if (
|
|
3046
|
+
if (fn(this.message, t, this.offset())) {
|
|
3041
3047
|
for (var n = 0; n < t.length; n++)
|
|
3042
3048
|
this.bump();
|
|
3043
3049
|
return !0;
|
|
@@ -3059,7 +3065,7 @@ var Ai = (
|
|
|
3059
3065
|
break;
|
|
3060
3066
|
}
|
|
3061
3067
|
}, e.prototype.bumpSpace = function() {
|
|
3062
|
-
for (; !this.isEOF() &&
|
|
3068
|
+
for (; !this.isEOF() && qn(this.char()); )
|
|
3063
3069
|
this.bump();
|
|
3064
3070
|
}, e.prototype.peek = function() {
|
|
3065
3071
|
if (this.isEOF())
|
|
@@ -3069,47 +3075,47 @@ var Ai = (
|
|
|
3069
3075
|
}, e;
|
|
3070
3076
|
}()
|
|
3071
3077
|
);
|
|
3072
|
-
function
|
|
3078
|
+
function Wt(e) {
|
|
3073
3079
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3074
3080
|
}
|
|
3075
|
-
function
|
|
3076
|
-
return
|
|
3081
|
+
function Oi(e) {
|
|
3082
|
+
return Wt(e) || e === 47;
|
|
3077
3083
|
}
|
|
3078
|
-
function
|
|
3084
|
+
function Ri(e) {
|
|
3079
3085
|
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;
|
|
3080
3086
|
}
|
|
3081
|
-
function
|
|
3087
|
+
function qn(e) {
|
|
3082
3088
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3083
3089
|
}
|
|
3084
|
-
function
|
|
3090
|
+
function Li(e) {
|
|
3085
3091
|
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;
|
|
3086
3092
|
}
|
|
3087
|
-
function
|
|
3093
|
+
function Zt(e) {
|
|
3088
3094
|
e.forEach(function(t) {
|
|
3089
|
-
if (delete t.location,
|
|
3095
|
+
if (delete t.location, Fn(t) || Gn(t))
|
|
3090
3096
|
for (var n in t.options)
|
|
3091
|
-
delete t.options[n].location,
|
|
3097
|
+
delete t.options[n].location, Zt(t.options[n].value);
|
|
3092
3098
|
else
|
|
3093
|
-
|
|
3099
|
+
In(t) && jn(t.style) || (Dn(t) || Un(t)) && kt(t.style) ? delete t.style.location : $n(t) && Zt(t.children);
|
|
3094
3100
|
});
|
|
3095
3101
|
}
|
|
3096
|
-
function
|
|
3097
|
-
t === void 0 && (t = {}), t =
|
|
3098
|
-
var n = new
|
|
3102
|
+
function Mi(e, t) {
|
|
3103
|
+
t === void 0 && (t = {}), t = bt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3104
|
+
var n = new Hi(e, t).parse();
|
|
3099
3105
|
if (n.err) {
|
|
3100
3106
|
var r = SyntaxError(O[n.err.kind]);
|
|
3101
3107
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3102
3108
|
}
|
|
3103
|
-
return t?.captureLocation ||
|
|
3109
|
+
return t?.captureLocation || Zt(n.val), n.val;
|
|
3104
3110
|
}
|
|
3105
|
-
var
|
|
3111
|
+
var je;
|
|
3106
3112
|
(function(e) {
|
|
3107
3113
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3108
|
-
})(
|
|
3109
|
-
var
|
|
3114
|
+
})(je || (je = {}));
|
|
3115
|
+
var xt = (
|
|
3110
3116
|
/** @class */
|
|
3111
3117
|
function(e) {
|
|
3112
|
-
|
|
3118
|
+
_t(t, e);
|
|
3113
3119
|
function t(n, r, i) {
|
|
3114
3120
|
var o = e.call(this, n) || this;
|
|
3115
3121
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3118,48 +3124,48 @@ var Et = (
|
|
|
3118
3124
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3119
3125
|
}, t;
|
|
3120
3126
|
}(Error)
|
|
3121
|
-
),
|
|
3127
|
+
), mn = (
|
|
3122
3128
|
/** @class */
|
|
3123
3129
|
function(e) {
|
|
3124
|
-
|
|
3130
|
+
_t(t, e);
|
|
3125
3131
|
function t(n, r, i, o) {
|
|
3126
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3132
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), je.INVALID_VALUE, o) || this;
|
|
3127
3133
|
}
|
|
3128
3134
|
return t;
|
|
3129
|
-
}(
|
|
3130
|
-
),
|
|
3135
|
+
}(xt)
|
|
3136
|
+
), Ni = (
|
|
3131
3137
|
/** @class */
|
|
3132
3138
|
function(e) {
|
|
3133
|
-
|
|
3139
|
+
_t(t, e);
|
|
3134
3140
|
function t(n, r, i) {
|
|
3135
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3141
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), je.INVALID_VALUE, i) || this;
|
|
3136
3142
|
}
|
|
3137
3143
|
return t;
|
|
3138
|
-
}(
|
|
3139
|
-
),
|
|
3144
|
+
}(xt)
|
|
3145
|
+
), Pi = (
|
|
3140
3146
|
/** @class */
|
|
3141
3147
|
function(e) {
|
|
3142
|
-
|
|
3148
|
+
_t(t, e);
|
|
3143
3149
|
function t(n, r) {
|
|
3144
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3150
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), je.MISSING_VALUE, r) || this;
|
|
3145
3151
|
}
|
|
3146
3152
|
return t;
|
|
3147
|
-
}(
|
|
3153
|
+
}(xt)
|
|
3148
3154
|
), ne;
|
|
3149
3155
|
(function(e) {
|
|
3150
3156
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3151
3157
|
})(ne || (ne = {}));
|
|
3152
|
-
function
|
|
3158
|
+
function Ii(e) {
|
|
3153
3159
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3154
3160
|
var r = t[t.length - 1];
|
|
3155
3161
|
return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
|
|
3156
3162
|
}, []);
|
|
3157
3163
|
}
|
|
3158
|
-
function
|
|
3164
|
+
function Di(e) {
|
|
3159
3165
|
return typeof e == "function";
|
|
3160
3166
|
}
|
|
3161
|
-
function
|
|
3162
|
-
if (e.length === 1 &&
|
|
3167
|
+
function ft(e, t, n, r, i, o, l) {
|
|
3168
|
+
if (e.length === 1 && ln(e[0]))
|
|
3163
3169
|
return [
|
|
3164
3170
|
{
|
|
3165
3171
|
type: ne.literal,
|
|
@@ -3168,14 +3174,14 @@ function ht(e, t, n, r, i, o, l) {
|
|
|
3168
3174
|
];
|
|
3169
3175
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3170
3176
|
var d = u[h];
|
|
3171
|
-
if (
|
|
3177
|
+
if (ln(d)) {
|
|
3172
3178
|
s.push({
|
|
3173
3179
|
type: ne.literal,
|
|
3174
3180
|
value: d.value
|
|
3175
3181
|
});
|
|
3176
3182
|
continue;
|
|
3177
3183
|
}
|
|
3178
|
-
if (
|
|
3184
|
+
if (oi(d)) {
|
|
3179
3185
|
typeof o == "number" && s.push({
|
|
3180
3186
|
type: ne.literal,
|
|
3181
3187
|
value: n.getNumberFormat(t).format(o)
|
|
@@ -3184,89 +3190,89 @@ function ht(e, t, n, r, i, o, l) {
|
|
|
3184
3190
|
}
|
|
3185
3191
|
var m = d.value;
|
|
3186
3192
|
if (!(i && m in i))
|
|
3187
|
-
throw new
|
|
3193
|
+
throw new Pi(m, l);
|
|
3188
3194
|
var g = i[m];
|
|
3189
|
-
if (
|
|
3195
|
+
if (ii(d)) {
|
|
3190
3196
|
(!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
|
|
3191
3197
|
type: typeof g == "string" ? ne.literal : ne.object,
|
|
3192
3198
|
value: g
|
|
3193
3199
|
});
|
|
3194
3200
|
continue;
|
|
3195
3201
|
}
|
|
3196
|
-
if (
|
|
3197
|
-
var
|
|
3202
|
+
if (Dn(d)) {
|
|
3203
|
+
var x = typeof d.style == "string" ? r.date[d.style] : kt(d.style) ? d.style.parsedOptions : void 0;
|
|
3198
3204
|
s.push({
|
|
3199
3205
|
type: ne.literal,
|
|
3200
|
-
value: n.getDateTimeFormat(t,
|
|
3206
|
+
value: n.getDateTimeFormat(t, x).format(g)
|
|
3201
3207
|
});
|
|
3202
3208
|
continue;
|
|
3203
3209
|
}
|
|
3204
|
-
if (
|
|
3205
|
-
var
|
|
3210
|
+
if (Un(d)) {
|
|
3211
|
+
var x = typeof d.style == "string" ? r.time[d.style] : kt(d.style) ? d.style.parsedOptions : r.time.medium;
|
|
3206
3212
|
s.push({
|
|
3207
3213
|
type: ne.literal,
|
|
3208
|
-
value: n.getDateTimeFormat(t,
|
|
3214
|
+
value: n.getDateTimeFormat(t, x).format(g)
|
|
3209
3215
|
});
|
|
3210
3216
|
continue;
|
|
3211
3217
|
}
|
|
3212
|
-
if (
|
|
3213
|
-
var
|
|
3214
|
-
|
|
3218
|
+
if (In(d)) {
|
|
3219
|
+
var x = typeof d.style == "string" ? r.number[d.style] : jn(d.style) ? d.style.parsedOptions : void 0;
|
|
3220
|
+
x && x.scale && (g = g * (x.scale || 1)), s.push({
|
|
3215
3221
|
type: ne.literal,
|
|
3216
|
-
value: n.getNumberFormat(t,
|
|
3222
|
+
value: n.getNumberFormat(t, x).format(g)
|
|
3217
3223
|
});
|
|
3218
3224
|
continue;
|
|
3219
3225
|
}
|
|
3220
|
-
if (
|
|
3221
|
-
var B = d.children, T = d.value,
|
|
3222
|
-
if (!
|
|
3223
|
-
throw new
|
|
3224
|
-
var S =
|
|
3226
|
+
if ($n(d)) {
|
|
3227
|
+
var B = d.children, T = d.value, _ = i[T];
|
|
3228
|
+
if (!Di(_))
|
|
3229
|
+
throw new Ni(T, "function", l);
|
|
3230
|
+
var S = ft(B, t, n, r, i, o), I = _(S.map(function(W) {
|
|
3225
3231
|
return W.value;
|
|
3226
3232
|
}));
|
|
3227
|
-
Array.isArray(
|
|
3233
|
+
Array.isArray(I) || (I = [I]), s.push.apply(s, I.map(function(W) {
|
|
3228
3234
|
return {
|
|
3229
3235
|
type: typeof W == "string" ? ne.literal : ne.object,
|
|
3230
3236
|
value: W
|
|
3231
3237
|
};
|
|
3232
3238
|
}));
|
|
3233
3239
|
}
|
|
3234
|
-
if (
|
|
3240
|
+
if (Fn(d)) {
|
|
3235
3241
|
var H = d.options[g] || d.options.other;
|
|
3236
3242
|
if (!H)
|
|
3237
|
-
throw new
|
|
3238
|
-
s.push.apply(s,
|
|
3243
|
+
throw new mn(d.value, g, Object.keys(d.options), l);
|
|
3244
|
+
s.push.apply(s, ft(H.value, t, n, r, i));
|
|
3239
3245
|
continue;
|
|
3240
3246
|
}
|
|
3241
|
-
if (
|
|
3247
|
+
if (Gn(d)) {
|
|
3242
3248
|
var H = d.options["=".concat(g)];
|
|
3243
3249
|
if (!H) {
|
|
3244
3250
|
if (!Intl.PluralRules)
|
|
3245
|
-
throw new
|
|
3251
|
+
throw new xt(`Intl.PluralRules is not available in this environment.
|
|
3246
3252
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3247
|
-
`,
|
|
3248
|
-
var
|
|
3249
|
-
H = d.options[
|
|
3253
|
+
`, je.MISSING_INTL_API, l);
|
|
3254
|
+
var D = n.getPluralRules(t, { type: d.pluralType }).select(g - (d.offset || 0));
|
|
3255
|
+
H = d.options[D] || d.options.other;
|
|
3250
3256
|
}
|
|
3251
3257
|
if (!H)
|
|
3252
|
-
throw new
|
|
3253
|
-
s.push.apply(s,
|
|
3258
|
+
throw new mn(d.value, g, Object.keys(d.options), l);
|
|
3259
|
+
s.push.apply(s, ft(H.value, t, n, r, i, g - (d.offset || 0)));
|
|
3254
3260
|
continue;
|
|
3255
3261
|
}
|
|
3256
3262
|
}
|
|
3257
|
-
return
|
|
3263
|
+
return Ii(s);
|
|
3258
3264
|
}
|
|
3259
|
-
function
|
|
3260
|
-
return t ?
|
|
3261
|
-
return n[r] =
|
|
3265
|
+
function Ui(e, t) {
|
|
3266
|
+
return t ? me(me(me({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3267
|
+
return n[r] = me(me({}, e[r]), t[r] || {}), n;
|
|
3262
3268
|
}, {})) : e;
|
|
3263
3269
|
}
|
|
3264
|
-
function
|
|
3270
|
+
function Fi(e, t) {
|
|
3265
3271
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3266
|
-
return n[r] =
|
|
3267
|
-
},
|
|
3272
|
+
return n[r] = Ui(e[r], t[r]), n;
|
|
3273
|
+
}, me({}, e)) : e;
|
|
3268
3274
|
}
|
|
3269
|
-
function
|
|
3275
|
+
function Dt(e) {
|
|
3270
3276
|
return {
|
|
3271
3277
|
create: function() {
|
|
3272
3278
|
return {
|
|
@@ -3280,39 +3286,39 @@ function It(e) {
|
|
|
3280
3286
|
}
|
|
3281
3287
|
};
|
|
3282
3288
|
}
|
|
3283
|
-
function
|
|
3289
|
+
function Gi(e) {
|
|
3284
3290
|
return e === void 0 && (e = {
|
|
3285
3291
|
number: {},
|
|
3286
3292
|
dateTime: {},
|
|
3287
3293
|
pluralRules: {}
|
|
3288
3294
|
}), {
|
|
3289
|
-
getNumberFormat:
|
|
3295
|
+
getNumberFormat: Nt(function() {
|
|
3290
3296
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3291
3297
|
n[r] = arguments[r];
|
|
3292
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3298
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Mt([void 0], n, !1)))();
|
|
3293
3299
|
}, {
|
|
3294
|
-
cache:
|
|
3295
|
-
strategy:
|
|
3300
|
+
cache: Dt(e.number),
|
|
3301
|
+
strategy: Pt.variadic
|
|
3296
3302
|
}),
|
|
3297
|
-
getDateTimeFormat:
|
|
3303
|
+
getDateTimeFormat: Nt(function() {
|
|
3298
3304
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3299
3305
|
n[r] = arguments[r];
|
|
3300
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3306
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Mt([void 0], n, !1)))();
|
|
3301
3307
|
}, {
|
|
3302
|
-
cache:
|
|
3303
|
-
strategy:
|
|
3308
|
+
cache: Dt(e.dateTime),
|
|
3309
|
+
strategy: Pt.variadic
|
|
3304
3310
|
}),
|
|
3305
|
-
getPluralRules:
|
|
3311
|
+
getPluralRules: Nt(function() {
|
|
3306
3312
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3307
3313
|
n[r] = arguments[r];
|
|
3308
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3314
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Mt([void 0], n, !1)))();
|
|
3309
3315
|
}, {
|
|
3310
|
-
cache:
|
|
3311
|
-
strategy:
|
|
3316
|
+
cache: Dt(e.pluralRules),
|
|
3317
|
+
strategy: Pt.variadic
|
|
3312
3318
|
})
|
|
3313
3319
|
};
|
|
3314
3320
|
}
|
|
3315
|
-
var
|
|
3321
|
+
var $i = (
|
|
3316
3322
|
/** @class */
|
|
3317
3323
|
function() {
|
|
3318
3324
|
function e(t, n, r, i) {
|
|
@@ -3331,7 +3337,7 @@ var Fi = (
|
|
|
3331
3337
|
}, []);
|
|
3332
3338
|
return d.length <= 1 ? d[0] || "" : d;
|
|
3333
3339
|
}, this.formatToParts = function(h) {
|
|
3334
|
-
return
|
|
3340
|
+
return ft(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3335
3341
|
}, this.resolvedOptions = function() {
|
|
3336
3342
|
var h;
|
|
3337
3343
|
return {
|
|
@@ -3344,13 +3350,13 @@ var Fi = (
|
|
|
3344
3350
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3345
3351
|
var l = i || {};
|
|
3346
3352
|
l.formatters;
|
|
3347
|
-
var s =
|
|
3348
|
-
this.ast = e.__parse(t,
|
|
3353
|
+
var s = Qr(l, ["formatters"]);
|
|
3354
|
+
this.ast = e.__parse(t, me(me({}, s), { locale: this.resolvedLocale }));
|
|
3349
3355
|
} else
|
|
3350
3356
|
this.ast = t;
|
|
3351
3357
|
if (!Array.isArray(this.ast))
|
|
3352
3358
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3353
|
-
this.formats =
|
|
3359
|
+
this.formats = Fi(e.formats, r), this.formatters = i && i.formatters || Gi(this.formatterCache);
|
|
3354
3360
|
}
|
|
3355
3361
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3356
3362
|
get: function() {
|
|
@@ -3363,7 +3369,7 @@ var Fi = (
|
|
|
3363
3369
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3364
3370
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3365
3371
|
}
|
|
3366
|
-
}, e.__parse =
|
|
3372
|
+
}, e.__parse = Mi, e.formats = {
|
|
3367
3373
|
number: {
|
|
3368
3374
|
integer: {
|
|
3369
3375
|
maximumFractionDigits: 0
|
|
@@ -3424,7 +3430,7 @@ var Fi = (
|
|
|
3424
3430
|
}, e;
|
|
3425
3431
|
}()
|
|
3426
3432
|
);
|
|
3427
|
-
function
|
|
3433
|
+
function ji(e, t) {
|
|
3428
3434
|
if (t == null)
|
|
3429
3435
|
return;
|
|
3430
3436
|
if (t in e)
|
|
@@ -3445,92 +3451,92 @@ function Gi(e, t) {
|
|
|
3445
3451
|
r = void 0;
|
|
3446
3452
|
return r;
|
|
3447
3453
|
}
|
|
3448
|
-
const
|
|
3454
|
+
const Se = {}, ki = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), Qn = (e, t) => {
|
|
3449
3455
|
if (t == null)
|
|
3450
3456
|
return;
|
|
3451
|
-
if (t in
|
|
3452
|
-
return
|
|
3453
|
-
const n =
|
|
3457
|
+
if (t in Se && e in Se[t])
|
|
3458
|
+
return Se[t][e];
|
|
3459
|
+
const n = Bt(t);
|
|
3454
3460
|
for (let r = 0; r < n.length; r++) {
|
|
3455
|
-
const i = n[r], o =
|
|
3461
|
+
const i = n[r], o = Xi(i, e);
|
|
3456
3462
|
if (o)
|
|
3457
|
-
return
|
|
3463
|
+
return ki(e, t, o);
|
|
3458
3464
|
}
|
|
3459
3465
|
};
|
|
3460
|
-
let
|
|
3461
|
-
const
|
|
3462
|
-
function
|
|
3463
|
-
return
|
|
3466
|
+
let Kt;
|
|
3467
|
+
const it = Et({});
|
|
3468
|
+
function Vi(e) {
|
|
3469
|
+
return Kt[e] || null;
|
|
3464
3470
|
}
|
|
3465
|
-
function
|
|
3466
|
-
return e in
|
|
3471
|
+
function Jn(e) {
|
|
3472
|
+
return e in Kt;
|
|
3467
3473
|
}
|
|
3468
|
-
function
|
|
3469
|
-
if (!
|
|
3474
|
+
function Xi(e, t) {
|
|
3475
|
+
if (!Jn(e))
|
|
3470
3476
|
return null;
|
|
3471
|
-
const n =
|
|
3472
|
-
return
|
|
3477
|
+
const n = Vi(e);
|
|
3478
|
+
return ji(n, t);
|
|
3473
3479
|
}
|
|
3474
|
-
function
|
|
3480
|
+
function zi(e) {
|
|
3475
3481
|
if (e == null)
|
|
3476
3482
|
return;
|
|
3477
|
-
const t =
|
|
3483
|
+
const t = Bt(e);
|
|
3478
3484
|
for (let n = 0; n < t.length; n++) {
|
|
3479
3485
|
const r = t[n];
|
|
3480
|
-
if (
|
|
3486
|
+
if (Jn(r))
|
|
3481
3487
|
return r;
|
|
3482
3488
|
}
|
|
3483
3489
|
}
|
|
3484
|
-
function
|
|
3485
|
-
delete
|
|
3490
|
+
function Yn(e, ...t) {
|
|
3491
|
+
delete Se[e], it.update((n) => (n[e] = qr.all([n[e] || {}, ...t]), n));
|
|
3486
3492
|
}
|
|
3487
|
-
|
|
3488
|
-
[
|
|
3493
|
+
Xe(
|
|
3494
|
+
[it],
|
|
3489
3495
|
([e]) => Object.keys(e)
|
|
3490
3496
|
);
|
|
3491
|
-
|
|
3492
|
-
const
|
|
3493
|
-
function
|
|
3494
|
-
|
|
3497
|
+
it.subscribe((e) => Kt = e);
|
|
3498
|
+
const dt = {};
|
|
3499
|
+
function Wi(e, t) {
|
|
3500
|
+
dt[e].delete(t), dt[e].size === 0 && delete dt[e];
|
|
3495
3501
|
}
|
|
3496
|
-
function
|
|
3497
|
-
return
|
|
3502
|
+
function Kn(e) {
|
|
3503
|
+
return dt[e];
|
|
3498
3504
|
}
|
|
3499
|
-
function
|
|
3500
|
-
return
|
|
3501
|
-
const n =
|
|
3505
|
+
function Zi(e) {
|
|
3506
|
+
return Bt(e).map((t) => {
|
|
3507
|
+
const n = Kn(t);
|
|
3502
3508
|
return [t, n ? [...n] : []];
|
|
3503
3509
|
}).filter(([, t]) => t.length > 0);
|
|
3504
3510
|
}
|
|
3505
|
-
function
|
|
3506
|
-
return e == null ? !1 :
|
|
3511
|
+
function qt(e) {
|
|
3512
|
+
return e == null ? !1 : Bt(e).some(
|
|
3507
3513
|
(t) => {
|
|
3508
3514
|
var n;
|
|
3509
|
-
return (n =
|
|
3515
|
+
return (n = Kn(t)) == null ? void 0 : n.size;
|
|
3510
3516
|
}
|
|
3511
3517
|
);
|
|
3512
3518
|
}
|
|
3513
|
-
function
|
|
3519
|
+
function qi(e, t) {
|
|
3514
3520
|
return Promise.all(
|
|
3515
|
-
t.map((r) => (
|
|
3516
|
-
).then((r) =>
|
|
3517
|
-
}
|
|
3518
|
-
const
|
|
3519
|
-
function
|
|
3520
|
-
if (!
|
|
3521
|
-
return e in
|
|
3522
|
-
const t =
|
|
3523
|
-
return
|
|
3521
|
+
t.map((r) => (Wi(e, r), r().then((i) => i.default || i)))
|
|
3522
|
+
).then((r) => Yn(e, ...r));
|
|
3523
|
+
}
|
|
3524
|
+
const Ke = {};
|
|
3525
|
+
function er(e) {
|
|
3526
|
+
if (!qt(e))
|
|
3527
|
+
return e in Ke ? Ke[e] : Promise.resolve();
|
|
3528
|
+
const t = Zi(e);
|
|
3529
|
+
return Ke[e] = Promise.all(
|
|
3524
3530
|
t.map(
|
|
3525
|
-
([n, r]) =>
|
|
3531
|
+
([n, r]) => qi(n, r)
|
|
3526
3532
|
)
|
|
3527
3533
|
).then(() => {
|
|
3528
|
-
if (
|
|
3529
|
-
return
|
|
3530
|
-
delete
|
|
3531
|
-
}),
|
|
3534
|
+
if (qt(e))
|
|
3535
|
+
return er(e);
|
|
3536
|
+
delete Ke[e];
|
|
3537
|
+
}), Ke[e];
|
|
3532
3538
|
}
|
|
3533
|
-
const
|
|
3539
|
+
const Qi = {
|
|
3534
3540
|
number: {
|
|
3535
3541
|
scientific: { notation: "scientific" },
|
|
3536
3542
|
engineering: { notation: "engineering" },
|
|
@@ -3559,148 +3565,148 @@ const Zi = {
|
|
|
3559
3565
|
timeZoneName: "short"
|
|
3560
3566
|
}
|
|
3561
3567
|
}
|
|
3562
|
-
},
|
|
3568
|
+
}, Ji = {
|
|
3563
3569
|
fallbackLocale: null,
|
|
3564
3570
|
loadingDelay: 200,
|
|
3565
|
-
formats:
|
|
3571
|
+
formats: Qi,
|
|
3566
3572
|
warnOnMissingMessages: !0,
|
|
3567
3573
|
handleMissingMessage: void 0,
|
|
3568
3574
|
ignoreTag: !0
|
|
3569
|
-
},
|
|
3575
|
+
}, Yi = Ji;
|
|
3570
3576
|
function ke() {
|
|
3571
|
-
return
|
|
3577
|
+
return Yi;
|
|
3572
3578
|
}
|
|
3573
|
-
const
|
|
3574
|
-
var
|
|
3579
|
+
const Ut = Et(!1);
|
|
3580
|
+
var Ki = Object.defineProperty, eo = Object.defineProperties, to = Object.getOwnPropertyDescriptors, gn = Object.getOwnPropertySymbols, no = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? Ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, io = (e, t) => {
|
|
3575
3581
|
for (var n in t || (t = {}))
|
|
3576
|
-
|
|
3577
|
-
if (
|
|
3578
|
-
for (var n of
|
|
3579
|
-
|
|
3582
|
+
no.call(t, n) && bn(e, n, t[n]);
|
|
3583
|
+
if (gn)
|
|
3584
|
+
for (var n of gn(t))
|
|
3585
|
+
ro.call(t, n) && bn(e, n, t[n]);
|
|
3580
3586
|
return e;
|
|
3581
|
-
},
|
|
3582
|
-
let
|
|
3583
|
-
const
|
|
3584
|
-
function
|
|
3587
|
+
}, oo = (e, t) => eo(e, to(t));
|
|
3588
|
+
let Qt;
|
|
3589
|
+
const yt = Et(null);
|
|
3590
|
+
function yn(e) {
|
|
3585
3591
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3586
3592
|
}
|
|
3587
|
-
function
|
|
3588
|
-
const n =
|
|
3589
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3593
|
+
function Bt(e, t = ke().fallbackLocale) {
|
|
3594
|
+
const n = yn(e);
|
|
3595
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...yn(t)])] : n;
|
|
3590
3596
|
}
|
|
3591
|
-
function
|
|
3592
|
-
return
|
|
3597
|
+
function Oe() {
|
|
3598
|
+
return Qt ?? void 0;
|
|
3593
3599
|
}
|
|
3594
|
-
|
|
3595
|
-
|
|
3600
|
+
yt.subscribe((e) => {
|
|
3601
|
+
Qt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3596
3602
|
});
|
|
3597
|
-
const
|
|
3598
|
-
if (e &&
|
|
3603
|
+
const ao = (e) => {
|
|
3604
|
+
if (e && zi(e) && qt(e)) {
|
|
3599
3605
|
const { loadingDelay: t } = ke();
|
|
3600
3606
|
let n;
|
|
3601
|
-
return typeof window < "u" &&
|
|
3602
|
-
() =>
|
|
3607
|
+
return typeof window < "u" && Oe() != null && t ? n = window.setTimeout(
|
|
3608
|
+
() => Ut.set(!0),
|
|
3603
3609
|
t
|
|
3604
|
-
) :
|
|
3605
|
-
|
|
3610
|
+
) : Ut.set(!0), er(e).then(() => {
|
|
3611
|
+
yt.set(e);
|
|
3606
3612
|
}).finally(() => {
|
|
3607
|
-
clearTimeout(n),
|
|
3613
|
+
clearTimeout(n), Ut.set(!1);
|
|
3608
3614
|
});
|
|
3609
3615
|
}
|
|
3610
|
-
return
|
|
3611
|
-
},
|
|
3612
|
-
set:
|
|
3613
|
-
}),
|
|
3616
|
+
return yt.set(e);
|
|
3617
|
+
}, ze = oo(io({}, yt), {
|
|
3618
|
+
set: ao
|
|
3619
|
+
}), Tt = (e) => {
|
|
3614
3620
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3615
3621
|
return (r) => {
|
|
3616
3622
|
const i = JSON.stringify(r);
|
|
3617
3623
|
return i in t ? t[i] : t[i] = e(r);
|
|
3618
3624
|
};
|
|
3619
3625
|
};
|
|
3620
|
-
var
|
|
3626
|
+
var so = Object.defineProperty, vt = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, vn = (e, t, n) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, en = (e, t) => {
|
|
3621
3627
|
for (var n in t || (t = {}))
|
|
3622
|
-
|
|
3623
|
-
if (
|
|
3624
|
-
for (var n of
|
|
3625
|
-
|
|
3628
|
+
tr.call(t, n) && vn(e, n, t[n]);
|
|
3629
|
+
if (vt)
|
|
3630
|
+
for (var n of vt(t))
|
|
3631
|
+
nr.call(t, n) && vn(e, n, t[n]);
|
|
3626
3632
|
return e;
|
|
3627
|
-
},
|
|
3633
|
+
}, We = (e, t) => {
|
|
3628
3634
|
var n = {};
|
|
3629
3635
|
for (var r in e)
|
|
3630
|
-
|
|
3631
|
-
if (e != null &&
|
|
3632
|
-
for (var r of
|
|
3633
|
-
t.indexOf(r) < 0 &&
|
|
3636
|
+
tr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3637
|
+
if (e != null && vt)
|
|
3638
|
+
for (var r of vt(e))
|
|
3639
|
+
t.indexOf(r) < 0 && nr.call(e, r) && (n[r] = e[r]);
|
|
3634
3640
|
return n;
|
|
3635
3641
|
};
|
|
3636
|
-
const
|
|
3642
|
+
const rt = (e, t) => {
|
|
3637
3643
|
const { formats: n } = ke();
|
|
3638
3644
|
if (e in n && t in n[e])
|
|
3639
3645
|
return n[e][t];
|
|
3640
3646
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3641
|
-
},
|
|
3647
|
+
}, lo = Tt(
|
|
3642
3648
|
(e) => {
|
|
3643
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3649
|
+
var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
|
|
3644
3650
|
if (n == null)
|
|
3645
3651
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3646
|
-
return r && (i =
|
|
3652
|
+
return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
|
|
3647
3653
|
}
|
|
3648
|
-
),
|
|
3654
|
+
), uo = Tt(
|
|
3649
3655
|
(e) => {
|
|
3650
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3656
|
+
var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
|
|
3651
3657
|
if (n == null)
|
|
3652
3658
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3653
|
-
return r ? i =
|
|
3659
|
+
return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3654
3660
|
}
|
|
3655
|
-
),
|
|
3661
|
+
), co = Tt(
|
|
3656
3662
|
(e) => {
|
|
3657
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3663
|
+
var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
|
|
3658
3664
|
if (n == null)
|
|
3659
3665
|
throw new Error(
|
|
3660
3666
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3661
3667
|
);
|
|
3662
|
-
return r ? i =
|
|
3668
|
+
return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3663
3669
|
}
|
|
3664
|
-
),
|
|
3670
|
+
), ho = (e = {}) => {
|
|
3665
3671
|
var t = e, {
|
|
3666
|
-
locale: n =
|
|
3667
|
-
} = t, r =
|
|
3672
|
+
locale: n = Oe()
|
|
3673
|
+
} = t, r = We(t, [
|
|
3668
3674
|
"locale"
|
|
3669
3675
|
]);
|
|
3670
|
-
return
|
|
3671
|
-
},
|
|
3676
|
+
return lo(en({ locale: n }, r));
|
|
3677
|
+
}, fo = (e = {}) => {
|
|
3672
3678
|
var t = e, {
|
|
3673
|
-
locale: n =
|
|
3674
|
-
} = t, r =
|
|
3679
|
+
locale: n = Oe()
|
|
3680
|
+
} = t, r = We(t, [
|
|
3675
3681
|
"locale"
|
|
3676
3682
|
]);
|
|
3677
|
-
return
|
|
3678
|
-
},
|
|
3683
|
+
return uo(en({ locale: n }, r));
|
|
3684
|
+
}, po = (e = {}) => {
|
|
3679
3685
|
var t = e, {
|
|
3680
|
-
locale: n =
|
|
3681
|
-
} = t, r =
|
|
3686
|
+
locale: n = Oe()
|
|
3687
|
+
} = t, r = We(t, [
|
|
3682
3688
|
"locale"
|
|
3683
3689
|
]);
|
|
3684
|
-
return
|
|
3685
|
-
},
|
|
3690
|
+
return co(en({ locale: n }, r));
|
|
3691
|
+
}, mo = Tt(
|
|
3686
3692
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3687
|
-
(e, t =
|
|
3693
|
+
(e, t = Oe()) => new $i(e, t, ke().formats, {
|
|
3688
3694
|
ignoreTag: ke().ignoreTag
|
|
3689
3695
|
})
|
|
3690
|
-
),
|
|
3696
|
+
), go = (e, t = {}) => {
|
|
3691
3697
|
var n, r, i, o;
|
|
3692
3698
|
let l = t;
|
|
3693
3699
|
typeof e == "object" && (l = e, e = l.id);
|
|
3694
3700
|
const {
|
|
3695
3701
|
values: s,
|
|
3696
|
-
locale: h =
|
|
3702
|
+
locale: h = Oe(),
|
|
3697
3703
|
default: u
|
|
3698
3704
|
} = l;
|
|
3699
3705
|
if (h == null)
|
|
3700
3706
|
throw new Error(
|
|
3701
3707
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3702
3708
|
);
|
|
3703
|
-
let d =
|
|
3709
|
+
let d = Qn(e, h);
|
|
3704
3710
|
if (!d)
|
|
3705
3711
|
d = (o = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3706
3712
|
else if (typeof d != "string")
|
|
@@ -3711,7 +3717,7 @@ const nt = (e, t) => {
|
|
|
3711
3717
|
return d;
|
|
3712
3718
|
let m = d;
|
|
3713
3719
|
try {
|
|
3714
|
-
m =
|
|
3720
|
+
m = mo(d, h).format(s);
|
|
3715
3721
|
} catch (g) {
|
|
3716
3722
|
g instanceof Error && console.warn(
|
|
3717
3723
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3719,18 +3725,18 @@ const nt = (e, t) => {
|
|
|
3719
3725
|
);
|
|
3720
3726
|
}
|
|
3721
3727
|
return m;
|
|
3722
|
-
},
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
function
|
|
3728
|
-
|
|
3729
|
-
}
|
|
3730
|
-
function
|
|
3731
|
-
|
|
3732
|
-
}
|
|
3733
|
-
const
|
|
3728
|
+
}, bo = (e, t) => po(t).format(e), yo = (e, t) => fo(t).format(e), vo = (e, t) => ho(t).format(e), Eo = (e, t = Oe()) => Qn(e, t), _o = Xe([ze, it], () => go);
|
|
3729
|
+
Xe([ze], () => bo);
|
|
3730
|
+
Xe([ze], () => yo);
|
|
3731
|
+
Xe([ze], () => vo);
|
|
3732
|
+
Xe([ze, it], () => Eo);
|
|
3733
|
+
function En(e, t) {
|
|
3734
|
+
Yn(e, t);
|
|
3735
|
+
}
|
|
3736
|
+
function xo(e) {
|
|
3737
|
+
ze.set(e);
|
|
3738
|
+
}
|
|
3739
|
+
const _n = {
|
|
3734
3740
|
en: {
|
|
3735
3741
|
Title: "Your Balance",
|
|
3736
3742
|
Total: "Total Balance",
|
|
@@ -3930,7 +3936,7 @@ const vn = {
|
|
|
3930
3936
|
Loading: "Loading ..."
|
|
3931
3937
|
}
|
|
3932
3938
|
};
|
|
3933
|
-
var
|
|
3939
|
+
var Jt = { exports: {} };
|
|
3934
3940
|
/** @license
|
|
3935
3941
|
* eventsource.js
|
|
3936
3942
|
* Available under MIT License (MIT)
|
|
@@ -3938,7 +3944,7 @@ var qt = { exports: {} };
|
|
|
3938
3944
|
*/
|
|
3939
3945
|
(function(e, t) {
|
|
3940
3946
|
(function(n) {
|
|
3941
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, h = n.EventSource, u = n.document, d = n.Promise, m = n.fetch, g = n.Response,
|
|
3947
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, h = n.EventSource, u = n.document, d = n.Promise, m = n.fetch, g = n.Response, x = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
|
|
3942
3948
|
if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
|
|
3943
3949
|
u.readyState = "complete";
|
|
3944
3950
|
}, !1)), o == null && s != null && (o = function() {
|
|
@@ -3950,10 +3956,10 @@ var qt = { exports: {} };
|
|
|
3950
3956
|
}), Date.now || (Date.now = function() {
|
|
3951
3957
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3952
3958
|
}), T == null) {
|
|
3953
|
-
var
|
|
3959
|
+
var _ = m;
|
|
3954
3960
|
m = function(a, f) {
|
|
3955
3961
|
var p = f.signal;
|
|
3956
|
-
return
|
|
3962
|
+
return _(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(c) {
|
|
3957
3963
|
var v = c.body.getReader();
|
|
3958
3964
|
return p._reader = v, p._aborted && p._reader.cancel(), {
|
|
3959
3965
|
status: c.status,
|
|
@@ -3979,20 +3985,20 @@ var qt = { exports: {} };
|
|
|
3979
3985
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
3980
3986
|
}
|
|
3981
3987
|
S.prototype.decode = function(a) {
|
|
3982
|
-
function f(P,
|
|
3988
|
+
function f(P, F, w) {
|
|
3983
3989
|
if (w === 1)
|
|
3984
|
-
return P >= 128 >>
|
|
3990
|
+
return P >= 128 >> F && P << F <= 2047;
|
|
3985
3991
|
if (w === 2)
|
|
3986
|
-
return P >= 2048 >>
|
|
3992
|
+
return P >= 2048 >> F && P << F <= 55295 || P >= 57344 >> F && P << F <= 65535;
|
|
3987
3993
|
if (w === 3)
|
|
3988
|
-
return P >= 65536 >>
|
|
3994
|
+
return P >= 65536 >> F && P << F <= 1114111;
|
|
3989
3995
|
throw new Error();
|
|
3990
3996
|
}
|
|
3991
|
-
function p(P,
|
|
3997
|
+
function p(P, F) {
|
|
3992
3998
|
if (P === 6 * 1)
|
|
3993
|
-
return
|
|
3999
|
+
return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
|
|
3994
4000
|
if (P === 6 * 2)
|
|
3995
|
-
return
|
|
4001
|
+
return F > 15 ? 3 : 2;
|
|
3996
4002
|
if (P === 6 * 3)
|
|
3997
4003
|
return 3;
|
|
3998
4004
|
throw new Error();
|
|
@@ -4003,21 +4009,21 @@ var qt = { exports: {} };
|
|
|
4003
4009
|
}
|
|
4004
4010
|
return this.bitsNeeded = E, this.codePoint = y, v;
|
|
4005
4011
|
};
|
|
4006
|
-
var
|
|
4012
|
+
var I = function() {
|
|
4007
4013
|
try {
|
|
4008
|
-
return new
|
|
4014
|
+
return new x().decode(new B().encode("test"), { stream: !0 }) === "test";
|
|
4009
4015
|
} catch (a) {
|
|
4010
4016
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
|
|
4011
4017
|
}
|
|
4012
4018
|
return !1;
|
|
4013
4019
|
};
|
|
4014
|
-
(
|
|
4020
|
+
(x == null || B == null || !I()) && (x = S);
|
|
4015
4021
|
var H = function() {
|
|
4016
4022
|
};
|
|
4017
|
-
function
|
|
4023
|
+
function D(a) {
|
|
4018
4024
|
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;
|
|
4019
4025
|
}
|
|
4020
|
-
|
|
4026
|
+
D.prototype.open = function(a, f) {
|
|
4021
4027
|
this._abort(!0);
|
|
4022
4028
|
var p = this, c = this._xhr, v = 1, E = 0;
|
|
4023
4029
|
this._abort = function(w) {
|
|
@@ -4025,16 +4031,16 @@ var qt = { exports: {} };
|
|
|
4025
4031
|
};
|
|
4026
4032
|
var y = function() {
|
|
4027
4033
|
if (v === 1) {
|
|
4028
|
-
var w = 0,
|
|
4034
|
+
var w = 0, k = "", be = void 0;
|
|
4029
4035
|
if ("contentType" in c)
|
|
4030
|
-
w = 200,
|
|
4036
|
+
w = 200, k = "OK", be = c.contentType;
|
|
4031
4037
|
else
|
|
4032
4038
|
try {
|
|
4033
|
-
w = c.status,
|
|
4039
|
+
w = c.status, k = c.statusText, be = c.getResponseHeader("Content-Type");
|
|
4034
4040
|
} catch {
|
|
4035
|
-
w = 0,
|
|
4041
|
+
w = 0, k = "", be = void 0;
|
|
4036
4042
|
}
|
|
4037
|
-
w !== 0 && (v = 2, p.readyState = 2, p.status = w, p.statusText =
|
|
4043
|
+
w !== 0 && (v = 2, p.readyState = 2, p.status = w, p.statusText = k, p._contentType = be, p.onreadystatechange());
|
|
4038
4044
|
}
|
|
4039
4045
|
}, L = function() {
|
|
4040
4046
|
if (y(), v === 2 || v === 3) {
|
|
@@ -4046,25 +4052,25 @@ var qt = { exports: {} };
|
|
|
4046
4052
|
}
|
|
4047
4053
|
p.readyState = 3, p.responseText = w, p.onprogress();
|
|
4048
4054
|
}
|
|
4049
|
-
}, A = function(w,
|
|
4050
|
-
if ((
|
|
4055
|
+
}, A = function(w, k) {
|
|
4056
|
+
if ((k == null || k.preventDefault == null) && (k = {
|
|
4051
4057
|
preventDefault: H
|
|
4052
4058
|
}), L(), v === 1 || v === 2 || v === 3) {
|
|
4053
4059
|
if (v = 4, E !== 0 && (i(E), E = 0), p.readyState = 4, w === "load")
|
|
4054
|
-
p.onload(
|
|
4060
|
+
p.onload(k);
|
|
4055
4061
|
else if (w === "error")
|
|
4056
|
-
p.onerror(
|
|
4062
|
+
p.onerror(k);
|
|
4057
4063
|
else if (w === "abort")
|
|
4058
|
-
p.onabort(
|
|
4064
|
+
p.onabort(k);
|
|
4059
4065
|
else
|
|
4060
4066
|
throw new TypeError();
|
|
4061
4067
|
p.onreadystatechange();
|
|
4062
4068
|
}
|
|
4063
4069
|
}, P = function(w) {
|
|
4064
4070
|
c != null && (c.readyState === 4 ? (!("onload" in c) || !("onerror" in c) || !("onabort" in c)) && A(c.responseText === "" ? "error" : "load", w) : c.readyState === 3 ? "onprogress" in c || L() : c.readyState === 2 && y());
|
|
4065
|
-
},
|
|
4071
|
+
}, F = function() {
|
|
4066
4072
|
E = r(function() {
|
|
4067
|
-
|
|
4073
|
+
F();
|
|
4068
4074
|
}, 500), c.readyState === 3 && L();
|
|
4069
4075
|
};
|
|
4070
4076
|
"onload" in c && (c.onload = function(w) {
|
|
@@ -4076,18 +4082,18 @@ var qt = { exports: {} };
|
|
|
4076
4082
|
}), "onprogress" in c && (c.onprogress = L), "onreadystatechange" in c && (c.onreadystatechange = function(w) {
|
|
4077
4083
|
P(w);
|
|
4078
4084
|
}), ("contentType" in c || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), c.open(a, f, !0), "readyState" in c && (E = r(function() {
|
|
4079
|
-
|
|
4085
|
+
F();
|
|
4080
4086
|
}, 0));
|
|
4081
|
-
},
|
|
4087
|
+
}, D.prototype.abort = function() {
|
|
4082
4088
|
this._abort(!1);
|
|
4083
|
-
},
|
|
4089
|
+
}, D.prototype.getResponseHeader = function(a) {
|
|
4084
4090
|
return this._contentType;
|
|
4085
|
-
},
|
|
4091
|
+
}, D.prototype.setRequestHeader = function(a, f) {
|
|
4086
4092
|
var p = this._xhr;
|
|
4087
4093
|
"setRequestHeader" in p && p.setRequestHeader(a, f);
|
|
4088
|
-
},
|
|
4094
|
+
}, D.prototype.getAllResponseHeaders = function() {
|
|
4089
4095
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4090
|
-
},
|
|
4096
|
+
}, D.prototype.send = function() {
|
|
4091
4097
|
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4092
4098
|
var a = this;
|
|
4093
4099
|
a._sendTimeout = r(function() {
|
|
@@ -4125,8 +4131,8 @@ var qt = { exports: {} };
|
|
|
4125
4131
|
a.open("GET", v);
|
|
4126
4132
|
var L = 0;
|
|
4127
4133
|
a.onprogress = function() {
|
|
4128
|
-
var P = a.responseText,
|
|
4129
|
-
L +=
|
|
4134
|
+
var P = a.responseText, F = P.slice(L);
|
|
4135
|
+
L += F.length, p(F);
|
|
4130
4136
|
}, a.onerror = function(P) {
|
|
4131
4137
|
P.preventDefault(), c(new Error("NetworkError"));
|
|
4132
4138
|
}, a.onload = function() {
|
|
@@ -4135,44 +4141,44 @@ var qt = { exports: {} };
|
|
|
4135
4141
|
c(null);
|
|
4136
4142
|
}, a.onreadystatechange = function() {
|
|
4137
4143
|
if (a.readyState === o.HEADERS_RECEIVED) {
|
|
4138
|
-
var P = a.status,
|
|
4139
|
-
f(P,
|
|
4144
|
+
var P = a.status, F = a.statusText, w = a.getResponseHeader("Content-Type"), k = a.getAllResponseHeaders();
|
|
4145
|
+
f(P, F, w, new q(k));
|
|
4140
4146
|
}
|
|
4141
4147
|
}, a.withCredentials = E;
|
|
4142
4148
|
for (var A in y)
|
|
4143
4149
|
Object.prototype.hasOwnProperty.call(y, A) && a.setRequestHeader(A, y[A]);
|
|
4144
4150
|
return a.send(), a;
|
|
4145
4151
|
};
|
|
4146
|
-
function
|
|
4152
|
+
function G(a) {
|
|
4147
4153
|
this._headers = a;
|
|
4148
4154
|
}
|
|
4149
|
-
|
|
4155
|
+
G.prototype.get = function(a) {
|
|
4150
4156
|
return this._headers.get(a);
|
|
4151
4157
|
};
|
|
4152
4158
|
function R() {
|
|
4153
4159
|
}
|
|
4154
4160
|
R.prototype.open = function(a, f, p, c, v, E, y) {
|
|
4155
|
-
var L = null, A = new T(), P = A.signal,
|
|
4161
|
+
var L = null, A = new T(), P = A.signal, F = new x();
|
|
4156
4162
|
return m(v, {
|
|
4157
4163
|
headers: y,
|
|
4158
4164
|
credentials: E ? "include" : "same-origin",
|
|
4159
4165
|
signal: P,
|
|
4160
4166
|
cache: "no-store"
|
|
4161
4167
|
}).then(function(w) {
|
|
4162
|
-
return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new
|
|
4163
|
-
var
|
|
4168
|
+
return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new G(w.headers)), new d(function(k, be) {
|
|
4169
|
+
var Je = function() {
|
|
4164
4170
|
L.read().then(function(ie) {
|
|
4165
4171
|
if (ie.done)
|
|
4166
|
-
|
|
4172
|
+
k(void 0);
|
|
4167
4173
|
else {
|
|
4168
|
-
var K =
|
|
4169
|
-
p(K),
|
|
4174
|
+
var K = F.decode(ie.value, { stream: !0 });
|
|
4175
|
+
p(K), Je();
|
|
4170
4176
|
}
|
|
4171
4177
|
}).catch(function(ie) {
|
|
4172
|
-
|
|
4178
|
+
be(ie);
|
|
4173
4179
|
});
|
|
4174
4180
|
};
|
|
4175
|
-
|
|
4181
|
+
Je();
|
|
4176
4182
|
});
|
|
4177
4183
|
}).catch(function(w) {
|
|
4178
4184
|
if (w.name !== "AbortError")
|
|
@@ -4185,15 +4191,15 @@ var qt = { exports: {} };
|
|
|
4185
4191
|
}
|
|
4186
4192
|
};
|
|
4187
4193
|
};
|
|
4188
|
-
function
|
|
4194
|
+
function V() {
|
|
4189
4195
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4190
4196
|
}
|
|
4191
|
-
function
|
|
4197
|
+
function U(a) {
|
|
4192
4198
|
r(function() {
|
|
4193
4199
|
throw a;
|
|
4194
4200
|
}, 0);
|
|
4195
4201
|
}
|
|
4196
|
-
|
|
4202
|
+
V.prototype.dispatchEvent = function(a) {
|
|
4197
4203
|
a.target = this;
|
|
4198
4204
|
var f = this._listeners[a.type];
|
|
4199
4205
|
if (f != null)
|
|
@@ -4202,17 +4208,17 @@ var qt = { exports: {} };
|
|
|
4202
4208
|
try {
|
|
4203
4209
|
typeof v.handleEvent == "function" ? v.handleEvent(a) : v.call(this, a);
|
|
4204
4210
|
} catch (E) {
|
|
4205
|
-
|
|
4211
|
+
U(E);
|
|
4206
4212
|
}
|
|
4207
4213
|
}
|
|
4208
|
-
},
|
|
4214
|
+
}, V.prototype.addEventListener = function(a, f) {
|
|
4209
4215
|
a = String(a);
|
|
4210
4216
|
var p = this._listeners, c = p[a];
|
|
4211
4217
|
c == null && (c = [], p[a] = c);
|
|
4212
4218
|
for (var v = !1, E = 0; E < c.length; E += 1)
|
|
4213
4219
|
c[E] === f && (v = !0);
|
|
4214
4220
|
v || c.push(f);
|
|
4215
|
-
},
|
|
4221
|
+
}, V.prototype.removeEventListener = function(a, f) {
|
|
4216
4222
|
a = String(a);
|
|
4217
4223
|
var p = this._listeners, c = p[a];
|
|
4218
4224
|
if (c != null) {
|
|
@@ -4228,154 +4234,154 @@ var qt = { exports: {} };
|
|
|
4228
4234
|
b.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
|
|
4229
4235
|
}
|
|
4230
4236
|
xe.prototype = Object.create(b.prototype);
|
|
4231
|
-
function
|
|
4237
|
+
function Ze(a, f) {
|
|
4232
4238
|
b.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
|
|
4233
4239
|
}
|
|
4234
|
-
|
|
4235
|
-
function
|
|
4240
|
+
Ze.prototype = Object.create(b.prototype);
|
|
4241
|
+
function Be(a, f) {
|
|
4236
4242
|
b.call(this, a), this.error = f.error;
|
|
4237
4243
|
}
|
|
4238
|
-
|
|
4239
|
-
var
|
|
4244
|
+
Be.prototype = Object.create(b.prototype);
|
|
4245
|
+
var Re = -1, pe = 0, Te = 1, Ae = 2, Ce = -1, le = 0, qe = 1, Le = 2, ot = 3, wt = /^text\/event\-stream(;.*)?$/i, at = 1e3, St = 18e6, Qe = function(a, f) {
|
|
4240
4246
|
var p = a == null ? f : parseInt(a, 10);
|
|
4241
|
-
return p !== p && (p = f),
|
|
4242
|
-
},
|
|
4243
|
-
return Math.min(Math.max(a,
|
|
4244
|
-
},
|
|
4247
|
+
return p !== p && (p = f), Me(p);
|
|
4248
|
+
}, Me = function(a) {
|
|
4249
|
+
return Math.min(Math.max(a, at), St);
|
|
4250
|
+
}, we = function(a, f, p) {
|
|
4245
4251
|
try {
|
|
4246
4252
|
typeof f == "function" && f.call(a, p);
|
|
4247
4253
|
} catch (c) {
|
|
4248
|
-
|
|
4254
|
+
U(c);
|
|
4249
4255
|
}
|
|
4250
4256
|
};
|
|
4251
4257
|
function re(a, f) {
|
|
4252
|
-
|
|
4258
|
+
V.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, Ht(this, a, f);
|
|
4253
4259
|
}
|
|
4254
|
-
function
|
|
4260
|
+
function At() {
|
|
4255
4261
|
return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
|
|
4256
4262
|
}
|
|
4257
|
-
var
|
|
4258
|
-
function
|
|
4263
|
+
var Ct = m != null && g != null && "body" in g.prototype;
|
|
4264
|
+
function Ht(a, f, p) {
|
|
4259
4265
|
f = String(f);
|
|
4260
|
-
var c = !!p.withCredentials, v = p.lastEventIdQueryParameterName || "lastEventId", E =
|
|
4266
|
+
var c = !!p.withCredentials, v = p.lastEventIdQueryParameterName || "lastEventId", E = Me(1e3), y = Qe(p.heartbeatTimeout, 45e3), L = "", A = E, P = !1, F = 0, w = p.headers || {}, k = p.Transport, be = Ct && k == null ? void 0 : new D(k != null ? new k() : At()), Je = k != null && typeof k != "string" ? new k() : be == null ? new R() : new Y(), ie = void 0, K = 0, ue = Re, Ne = "", lt = "", ye = "", ut = "", ee = le, Ot = 0, He = 0, ir = function(Z, z, oe, ae) {
|
|
4261
4267
|
if (ue === pe)
|
|
4262
|
-
if (Z === 200 && oe != null &&
|
|
4263
|
-
ue =
|
|
4264
|
-
var te = new
|
|
4268
|
+
if (Z === 200 && oe != null && wt.test(oe)) {
|
|
4269
|
+
ue = Te, P = Date.now(), A = E, a.readyState = Te;
|
|
4270
|
+
var te = new Ze("open", {
|
|
4265
4271
|
status: Z,
|
|
4266
4272
|
statusText: z,
|
|
4267
4273
|
headers: ae
|
|
4268
4274
|
});
|
|
4269
|
-
a.dispatchEvent(te),
|
|
4275
|
+
a.dispatchEvent(te), we(a, a.onopen, te);
|
|
4270
4276
|
} else {
|
|
4271
4277
|
var Q = "";
|
|
4272
|
-
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.",
|
|
4273
|
-
var te = new
|
|
4278
|
+
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.", Rt();
|
|
4279
|
+
var te = new Ze("error", {
|
|
4274
4280
|
status: Z,
|
|
4275
4281
|
statusText: z,
|
|
4276
4282
|
headers: ae
|
|
4277
4283
|
});
|
|
4278
|
-
a.dispatchEvent(te),
|
|
4284
|
+
a.dispatchEvent(te), we(a, a.onerror, te), console.error(Q);
|
|
4279
4285
|
}
|
|
4280
|
-
},
|
|
4281
|
-
if (ue ===
|
|
4286
|
+
}, or = function(Z) {
|
|
4287
|
+
if (ue === Te) {
|
|
4282
4288
|
for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
|
|
4283
4289
|
var ae = Z.charCodeAt(oe);
|
|
4284
4290
|
(ae === 10 || ae === 13) && (z = oe);
|
|
4285
4291
|
}
|
|
4286
|
-
var te = (z !== -1 ?
|
|
4287
|
-
|
|
4292
|
+
var te = (z !== -1 ? ut : "") + Z.slice(0, z + 1);
|
|
4293
|
+
ut = (z === -1 ? ut : "") + Z.slice(z + 1), Z !== "" && (P = Date.now(), F += Z.length);
|
|
4288
4294
|
for (var Q = 0; Q < te.length; Q += 1) {
|
|
4289
4295
|
var ae = te.charCodeAt(Q);
|
|
4290
|
-
if (ee ===
|
|
4296
|
+
if (ee === Ce && ae === 10)
|
|
4291
4297
|
ee = le;
|
|
4292
|
-
else if (ee ===
|
|
4298
|
+
else if (ee === Ce && (ee = le), ae === 13 || ae === 10) {
|
|
4293
4299
|
if (ee !== le) {
|
|
4294
|
-
ee ===
|
|
4295
|
-
var
|
|
4296
|
-
|
|
4297
|
-
`,
|
|
4298
|
-
|
|
4300
|
+
ee === qe && (He = Q + 1);
|
|
4301
|
+
var ve = te.slice(Ot, He - 1), Ee = te.slice(He + (He < Q && te.charCodeAt(He) === 32 ? 1 : 0), Q);
|
|
4302
|
+
ve === "data" ? (Ne += `
|
|
4303
|
+
`, Ne += Ee) : ve === "id" ? lt = Ee : ve === "event" ? ye = Ee : ve === "retry" ? (E = Qe(Ee, E), A = E) : ve === "heartbeatTimeout" && (y = Qe(Ee, y), K !== 0 && (i(K), K = r(function() {
|
|
4304
|
+
Ye();
|
|
4299
4305
|
}, y)));
|
|
4300
4306
|
}
|
|
4301
4307
|
if (ee === le) {
|
|
4302
|
-
if (
|
|
4303
|
-
L =
|
|
4304
|
-
var
|
|
4305
|
-
data:
|
|
4306
|
-
lastEventId:
|
|
4308
|
+
if (Ne !== "") {
|
|
4309
|
+
L = lt, ye === "" && (ye = "message");
|
|
4310
|
+
var Pe = new xe(ye, {
|
|
4311
|
+
data: Ne.slice(1),
|
|
4312
|
+
lastEventId: lt
|
|
4307
4313
|
});
|
|
4308
|
-
if (a.dispatchEvent(
|
|
4314
|
+
if (a.dispatchEvent(Pe), ye === "open" ? we(a, a.onopen, Pe) : ye === "message" ? we(a, a.onmessage, Pe) : ye === "error" && we(a, a.onerror, Pe), ue === Ae)
|
|
4309
4315
|
return;
|
|
4310
4316
|
}
|
|
4311
|
-
|
|
4317
|
+
Ne = "", ye = "";
|
|
4312
4318
|
}
|
|
4313
|
-
ee = ae === 13 ?
|
|
4319
|
+
ee = ae === 13 ? Ce : le;
|
|
4314
4320
|
} else
|
|
4315
|
-
ee === le && (
|
|
4321
|
+
ee === le && (Ot = Q, ee = qe), ee === qe ? ae === 58 && (He = Q + 1, ee = Le) : ee === Le && (ee = ot);
|
|
4316
4322
|
}
|
|
4317
4323
|
}
|
|
4318
|
-
},
|
|
4319
|
-
if (ue ===
|
|
4320
|
-
ue =
|
|
4321
|
-
|
|
4322
|
-
}, A), A =
|
|
4323
|
-
var z = new
|
|
4324
|
-
a.dispatchEvent(z),
|
|
4324
|
+
}, nn = function(Z) {
|
|
4325
|
+
if (ue === Te || ue === pe) {
|
|
4326
|
+
ue = Re, K !== 0 && (i(K), K = 0), K = r(function() {
|
|
4327
|
+
Ye();
|
|
4328
|
+
}, A), A = Me(Math.min(E * 16, A * 2)), a.readyState = pe;
|
|
4329
|
+
var z = new Be("error", { error: Z });
|
|
4330
|
+
a.dispatchEvent(z), we(a, a.onerror, z), Z != null && console.error(Z);
|
|
4325
4331
|
}
|
|
4326
|
-
},
|
|
4327
|
-
ue =
|
|
4328
|
-
},
|
|
4329
|
-
if (K = 0, ue !==
|
|
4332
|
+
}, Rt = function() {
|
|
4333
|
+
ue = Ae, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ae;
|
|
4334
|
+
}, Ye = function() {
|
|
4335
|
+
if (K = 0, ue !== Re) {
|
|
4330
4336
|
if (!P && ie != null)
|
|
4331
|
-
|
|
4337
|
+
nn(new Error("No activity within " + y + " milliseconds. " + (ue === pe ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
|
|
4332
4338
|
else {
|
|
4333
4339
|
var Z = Math.max((P || Date.now()) + y - Date.now(), 1);
|
|
4334
4340
|
P = !1, K = r(function() {
|
|
4335
|
-
|
|
4341
|
+
Ye();
|
|
4336
4342
|
}, Z);
|
|
4337
4343
|
}
|
|
4338
4344
|
return;
|
|
4339
4345
|
}
|
|
4340
|
-
P = !1,
|
|
4341
|
-
|
|
4342
|
-
}, y), ue = pe,
|
|
4346
|
+
P = !1, F = 0, K = r(function() {
|
|
4347
|
+
Ye();
|
|
4348
|
+
}, y), ue = pe, Ne = "", ye = "", lt = L, ut = "", Ot = 0, He = 0, ee = le;
|
|
4343
4349
|
var z = f;
|
|
4344
4350
|
if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && L !== "") {
|
|
4345
4351
|
var oe = f.indexOf("?");
|
|
4346
|
-
z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(
|
|
4347
|
-
return
|
|
4352
|
+
z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Pe) {
|
|
4353
|
+
return Pe === v ? "" : Ee;
|
|
4348
4354
|
}), z += (f.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(L);
|
|
4349
4355
|
}
|
|
4350
4356
|
var ae = a.withCredentials, te = {};
|
|
4351
4357
|
te.Accept = "text/event-stream";
|
|
4352
4358
|
var Q = a.headers;
|
|
4353
4359
|
if (Q != null)
|
|
4354
|
-
for (var
|
|
4355
|
-
Object.prototype.hasOwnProperty.call(Q,
|
|
4360
|
+
for (var ve in Q)
|
|
4361
|
+
Object.prototype.hasOwnProperty.call(Q, ve) && (te[ve] = Q[ve]);
|
|
4356
4362
|
try {
|
|
4357
|
-
ie =
|
|
4358
|
-
} catch (
|
|
4359
|
-
throw
|
|
4363
|
+
ie = Je.open(be, ir, or, nn, z, ae, te);
|
|
4364
|
+
} catch (Ee) {
|
|
4365
|
+
throw Rt(), Ee;
|
|
4360
4366
|
}
|
|
4361
4367
|
};
|
|
4362
|
-
a.url = f, a.readyState = pe, a.withCredentials = c, a.headers = w, a._close =
|
|
4368
|
+
a.url = f, a.readyState = pe, a.withCredentials = c, a.headers = w, a._close = Rt, Ye();
|
|
4363
4369
|
}
|
|
4364
|
-
re.prototype = Object.create(
|
|
4370
|
+
re.prototype = Object.create(V.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Te, re.prototype.CLOSED = Ae, re.prototype.close = function() {
|
|
4365
4371
|
this._close();
|
|
4366
|
-
}, re.CONNECTING = pe, re.OPEN =
|
|
4367
|
-
var
|
|
4368
|
-
o != null && (h == null || !("withCredentials" in h.prototype)) && (
|
|
4372
|
+
}, re.CONNECTING = pe, re.OPEN = Te, re.CLOSED = Ae, re.prototype.withCredentials = void 0;
|
|
4373
|
+
var st = h;
|
|
4374
|
+
o != null && (h == null || !("withCredentials" in h.prototype)) && (st = re), function(a) {
|
|
4369
4375
|
{
|
|
4370
4376
|
var f = a(t);
|
|
4371
4377
|
f !== void 0 && (e.exports = f);
|
|
4372
4378
|
}
|
|
4373
4379
|
}(function(a) {
|
|
4374
|
-
a.EventSourcePolyfill = re, a.NativeEventSource = h, a.EventSource =
|
|
4380
|
+
a.EventSourcePolyfill = re, a.NativeEventSource = h, a.EventSource = st;
|
|
4375
4381
|
});
|
|
4376
|
-
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self :
|
|
4377
|
-
})(
|
|
4378
|
-
var
|
|
4382
|
+
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Mr : globalThis);
|
|
4383
|
+
})(Jt, Jt.exports);
|
|
4384
|
+
var Bo = Jt.exports;
|
|
4379
4385
|
/*!
|
|
4380
4386
|
* currency.js - v2.0.4
|
|
4381
4387
|
* http://scurker.github.io/currency.js
|
|
@@ -4383,7 +4389,7 @@ var xo = qt.exports;
|
|
|
4383
4389
|
* Copyright (c) 2021 Jason Wilson
|
|
4384
4390
|
* Released under MIT license
|
|
4385
4391
|
*/
|
|
4386
|
-
var
|
|
4392
|
+
var To = {
|
|
4387
4393
|
symbol: "$",
|
|
4388
4394
|
separator: ",",
|
|
4389
4395
|
decimal: ".",
|
|
@@ -4391,24 +4397,24 @@ var _o = {
|
|
|
4391
4397
|
precision: 2,
|
|
4392
4398
|
pattern: "!#",
|
|
4393
4399
|
negativePattern: "-!#",
|
|
4394
|
-
format:
|
|
4400
|
+
format: Co,
|
|
4395
4401
|
fromCents: !1
|
|
4396
|
-
},
|
|
4402
|
+
}, rr = function(t) {
|
|
4397
4403
|
return Math.round(t);
|
|
4398
|
-
},
|
|
4404
|
+
}, tn = function(t) {
|
|
4399
4405
|
return Math.pow(10, t);
|
|
4400
|
-
},
|
|
4401
|
-
return
|
|
4402
|
-
},
|
|
4406
|
+
}, wo = function(t, n) {
|
|
4407
|
+
return rr(t / n) * n;
|
|
4408
|
+
}, So = /(\d)(?=(\d{3})+\b)/g, Ao = /(\d)(?=(\d\d)+\d\b)/g;
|
|
4403
4409
|
function ce(e, t) {
|
|
4404
4410
|
var n = this;
|
|
4405
4411
|
if (!(n instanceof ce))
|
|
4406
4412
|
return new ce(e, t);
|
|
4407
|
-
var r = Object.assign({},
|
|
4408
|
-
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups =
|
|
4413
|
+
var r = Object.assign({}, To, t), i = tn(r.precision), o = pt(e, r);
|
|
4414
|
+
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Ao : r.groups = So, this.s = r, this.p = i;
|
|
4409
4415
|
}
|
|
4410
|
-
function
|
|
4411
|
-
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, h =
|
|
4416
|
+
function pt(e, t) {
|
|
4417
|
+
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, h = tn(l), u = typeof e == "number", d = e instanceof ce;
|
|
4412
4418
|
if (d && s)
|
|
4413
4419
|
return e.intValue;
|
|
4414
4420
|
if (u || d)
|
|
@@ -4421,9 +4427,9 @@ function dt(e, t) {
|
|
|
4421
4427
|
throw Error("Invalid Input");
|
|
4422
4428
|
r = 0;
|
|
4423
4429
|
}
|
|
4424
|
-
return s || (r *= h, r = r.toFixed(4)), n ?
|
|
4430
|
+
return s || (r *= h, r = r.toFixed(4)), n ? rr(r) : r;
|
|
4425
4431
|
}
|
|
4426
|
-
function
|
|
4432
|
+
function Co(e, t) {
|
|
4427
4433
|
var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, h = ("" + e).replace(/^-/, "").split("."), u = h[0], d = h[1];
|
|
4428
4434
|
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
|
|
4429
4435
|
}
|
|
@@ -4435,7 +4441,7 @@ ce.prototype = {
|
|
|
4435
4441
|
*/
|
|
4436
4442
|
add: function(t) {
|
|
4437
4443
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4438
|
-
return ce((n +=
|
|
4444
|
+
return ce((n += pt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4439
4445
|
},
|
|
4440
4446
|
/**
|
|
4441
4447
|
* Subtracts value.
|
|
@@ -4444,7 +4450,7 @@ ce.prototype = {
|
|
|
4444
4450
|
*/
|
|
4445
4451
|
subtract: function(t) {
|
|
4446
4452
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4447
|
-
return ce((n -=
|
|
4453
|
+
return ce((n -= pt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4448
4454
|
},
|
|
4449
4455
|
/**
|
|
4450
4456
|
* Multiplies values.
|
|
@@ -4453,7 +4459,7 @@ ce.prototype = {
|
|
|
4453
4459
|
*/
|
|
4454
4460
|
multiply: function(t) {
|
|
4455
4461
|
var n = this.intValue, r = this.s;
|
|
4456
|
-
return ce((n *= t) / (r.fromCents ? 1 :
|
|
4462
|
+
return ce((n *= t) / (r.fromCents ? 1 : tn(r.precision)), r);
|
|
4457
4463
|
},
|
|
4458
4464
|
/**
|
|
4459
4465
|
* Divides value.
|
|
@@ -4462,7 +4468,7 @@ ce.prototype = {
|
|
|
4462
4468
|
*/
|
|
4463
4469
|
divide: function(t) {
|
|
4464
4470
|
var n = this.intValue, r = this.s;
|
|
4465
|
-
return ce(n /=
|
|
4471
|
+
return ce(n /= pt(t, r, !1), r);
|
|
4466
4472
|
},
|
|
4467
4473
|
/**
|
|
4468
4474
|
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
|
@@ -4507,7 +4513,7 @@ ce.prototype = {
|
|
|
4507
4513
|
*/
|
|
4508
4514
|
toString: function() {
|
|
4509
4515
|
var t = this.intValue, n = this.p, r = this.s;
|
|
4510
|
-
return
|
|
4516
|
+
return wo(t / n, r.increment).toFixed(r.precision);
|
|
4511
4517
|
},
|
|
4512
4518
|
/**
|
|
4513
4519
|
* Value for JSON serialization.
|
|
@@ -4517,18 +4523,18 @@ ce.prototype = {
|
|
|
4517
4523
|
return this.value;
|
|
4518
4524
|
}
|
|
4519
4525
|
};
|
|
4520
|
-
function
|
|
4521
|
-
|
|
4526
|
+
function Ho(e) {
|
|
4527
|
+
lr(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
4522
4528
|
}
|
|
4523
|
-
function
|
|
4529
|
+
function xn(e, t, n) {
|
|
4524
4530
|
const r = e.slice();
|
|
4525
4531
|
return r[50] = t[n], r;
|
|
4526
4532
|
}
|
|
4527
|
-
function
|
|
4533
|
+
function Bn(e, t, n) {
|
|
4528
4534
|
const r = e.slice();
|
|
4529
4535
|
return r[53] = t[n], r;
|
|
4530
4536
|
}
|
|
4531
|
-
function
|
|
4537
|
+
function Oo(e) {
|
|
4532
4538
|
let t, n, r = (
|
|
4533
4539
|
/*balances*/
|
|
4534
4540
|
(e[1].Total ? (
|
|
@@ -4538,28 +4544,28 @@ function Co(e) {
|
|
|
4538
4544
|
e[1].Total[0].amount
|
|
4539
4545
|
)
|
|
4540
4546
|
) : "0") + ""
|
|
4541
|
-
), i, o, l, s, h, u, d, m, g,
|
|
4547
|
+
), i, o, l, s, h, u, d, m, g, x, B, T, _ = (
|
|
4542
4548
|
/*showBalance*/
|
|
4543
|
-
e[4] &&
|
|
4549
|
+
e[4] && Tn(e)
|
|
4544
4550
|
);
|
|
4545
4551
|
return {
|
|
4546
4552
|
c() {
|
|
4547
4553
|
t = j("div"), n = j("p"), i = he(r), o = de(), l = he(
|
|
4548
4554
|
/*currency*/
|
|
4549
4555
|
e[5]
|
|
4550
|
-
), s = de(), h = j("span"), u =
|
|
4556
|
+
), s = de(), h = j("span"), u = on("svg"), d = on("path"), g = de(), _ && _.c(), x = hr(), 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(h, "class", m = /*modalOpened*/
|
|
4551
4557
|
e[3] ? "TriangleActive" : "TriangleInactive"), N(t, "class", "BalanceValue");
|
|
4552
4558
|
},
|
|
4553
|
-
m(S,
|
|
4554
|
-
|
|
4559
|
+
m(S, I) {
|
|
4560
|
+
ge(S, t, I), C(t, n), C(n, i), C(n, o), C(n, l), C(t, s), C(t, h), C(h, u), C(u, d), ge(S, g, I), _ && _.m(S, I), ge(S, x, I), B || (T = mt(
|
|
4555
4561
|
t,
|
|
4556
4562
|
"click",
|
|
4557
4563
|
/*click_handler*/
|
|
4558
4564
|
e[25]
|
|
4559
4565
|
), B = !0);
|
|
4560
4566
|
},
|
|
4561
|
-
p(S,
|
|
4562
|
-
|
|
4567
|
+
p(S, I) {
|
|
4568
|
+
I[0] & /*balances*/
|
|
4563
4569
|
2 && r !== (r = /*balances*/
|
|
4564
4570
|
(S[1].Total ? (
|
|
4565
4571
|
/*formatBalance*/
|
|
@@ -4567,22 +4573,22 @@ function Co(e) {
|
|
|
4567
4573
|
/*balances*/
|
|
4568
4574
|
S[1].Total[0].amount
|
|
4569
4575
|
)
|
|
4570
|
-
) : "0") + "") &&
|
|
4571
|
-
32 &&
|
|
4576
|
+
) : "0") + "") && _e(i, r), I[0] & /*currency*/
|
|
4577
|
+
32 && _e(
|
|
4572
4578
|
l,
|
|
4573
4579
|
/*currency*/
|
|
4574
4580
|
S[5]
|
|
4575
|
-
),
|
|
4581
|
+
), I[0] & /*modalOpened*/
|
|
4576
4582
|
8 && m !== (m = /*modalOpened*/
|
|
4577
4583
|
S[3] ? "TriangleActive" : "TriangleInactive") && N(h, "class", m), /*showBalance*/
|
|
4578
|
-
S[4] ?
|
|
4584
|
+
S[4] ? _ ? _.p(S, I) : (_ = Tn(S), _.c(), _.m(x.parentNode, x)) : _ && (_.d(1), _ = null);
|
|
4579
4585
|
},
|
|
4580
4586
|
d(S) {
|
|
4581
|
-
S && (fe(t), fe(g), fe(
|
|
4587
|
+
S && (fe(t), fe(g), fe(x)), _ && _.d(S), B = !1, T();
|
|
4582
4588
|
}
|
|
4583
4589
|
};
|
|
4584
4590
|
}
|
|
4585
|
-
function
|
|
4591
|
+
function Ro(e) {
|
|
4586
4592
|
let t, n = (
|
|
4587
4593
|
/*$_*/
|
|
4588
4594
|
e[6]("Loading") + ""
|
|
@@ -4592,54 +4598,54 @@ function Ho(e) {
|
|
|
4592
4598
|
t = j("p"), r = he(n), N(t, "class", "Loading");
|
|
4593
4599
|
},
|
|
4594
4600
|
m(i, o) {
|
|
4595
|
-
|
|
4601
|
+
ge(i, t, o), C(t, r);
|
|
4596
4602
|
},
|
|
4597
4603
|
p(i, o) {
|
|
4598
4604
|
o[0] & /*$_*/
|
|
4599
4605
|
64 && n !== (n = /*$_*/
|
|
4600
|
-
i[6]("Loading") + "") &&
|
|
4606
|
+
i[6]("Loading") + "") && _e(r, n);
|
|
4601
4607
|
},
|
|
4602
4608
|
d(i) {
|
|
4603
4609
|
i && fe(t);
|
|
4604
4610
|
}
|
|
4605
4611
|
};
|
|
4606
4612
|
}
|
|
4607
|
-
function
|
|
4613
|
+
function Tn(e) {
|
|
4608
4614
|
let t, n, r, i, o, l, s, h, u = (
|
|
4609
4615
|
/*$_*/
|
|
4610
4616
|
e[6]("Title") + ""
|
|
4611
|
-
), d, m, g,
|
|
4617
|
+
), d, m, g, x, B, T, _ = (
|
|
4612
4618
|
/*$_*/
|
|
4613
4619
|
e[6]("DepositButton") + ""
|
|
4614
|
-
), S,
|
|
4620
|
+
), S, I, H, D, W, q, Y = gt(Object.keys(
|
|
4615
4621
|
/*balances*/
|
|
4616
4622
|
e[1]
|
|
4617
|
-
)),
|
|
4623
|
+
)), G = [];
|
|
4618
4624
|
for (let R = 0; R < Y.length; R += 1)
|
|
4619
|
-
|
|
4625
|
+
G[R] = Sn(xn(e, Y, R));
|
|
4620
4626
|
return {
|
|
4621
4627
|
c() {
|
|
4622
4628
|
t = j("div"), n = j("div"), i = de(), o = j("div"), l = j("div"), s = j("div"), h = j("p"), d = he(u), m = de(), g = j("div");
|
|
4623
|
-
for (let R = 0; R <
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
(e[3] ? "Open" : "")), N(h, "class", "BalanceModalTitle"), N(s, "class", "BalanceModalHeader"), N(g, "class", "BalanceModalBody"), N(T, "class", "BalanceModalAction"), N(B, "class", "BalanceModalFooter"), N(l, "class",
|
|
4629
|
+
for (let R = 0; R < G.length; R += 1)
|
|
4630
|
+
G[R].c();
|
|
4631
|
+
x = de(), B = j("div"), T = j("button"), S = he(_), N(n, "class", r = "BalanceModalClose " + /*modalOpened*/
|
|
4632
|
+
(e[3] ? "Open" : "")), N(h, "class", "BalanceModalTitle"), N(s, "class", "BalanceModalHeader"), N(g, "class", "BalanceModalBody"), N(T, "class", "BalanceModalAction"), N(B, "class", "BalanceModalFooter"), N(l, "class", I = "ModalContent " + /*modalOpened*/
|
|
4627
4633
|
(e[3] ? "Open" : "")), N(o, "class", H = "BalanceModal " + /*modalOpened*/
|
|
4628
|
-
(e[3] ? "Open" : "")), N(t, "class",
|
|
4634
|
+
(e[3] ? "Open" : "")), N(t, "class", D = "BalanceModalWrapper " + /*modalOpened*/
|
|
4629
4635
|
(e[3] ? "Open" : ""));
|
|
4630
4636
|
},
|
|
4631
|
-
m(R,
|
|
4632
|
-
|
|
4633
|
-
for (let
|
|
4634
|
-
|
|
4635
|
-
C(l,
|
|
4636
|
-
|
|
4637
|
+
m(R, V) {
|
|
4638
|
+
ge(R, t, V), C(t, n), C(t, i), C(t, o), C(o, l), C(l, s), C(s, h), C(h, d), C(l, m), C(l, g);
|
|
4639
|
+
for (let U = 0; U < G.length; U += 1)
|
|
4640
|
+
G[U] && G[U].m(g, null);
|
|
4641
|
+
C(l, x), C(l, B), C(B, T), C(T, S), W || (q = [
|
|
4642
|
+
mt(
|
|
4637
4643
|
n,
|
|
4638
4644
|
"click",
|
|
4639
4645
|
/*click_handler_1*/
|
|
4640
4646
|
e[26]
|
|
4641
4647
|
),
|
|
4642
|
-
|
|
4648
|
+
mt(
|
|
4643
4649
|
T,
|
|
4644
4650
|
"click",
|
|
4645
4651
|
/*click_handler_2*/
|
|
@@ -4647,42 +4653,42 @@ function _n(e) {
|
|
|
4647
4653
|
)
|
|
4648
4654
|
], W = !0);
|
|
4649
4655
|
},
|
|
4650
|
-
p(R,
|
|
4651
|
-
if (
|
|
4656
|
+
p(R, V) {
|
|
4657
|
+
if (V[0] & /*modalOpened*/
|
|
4652
4658
|
8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
|
|
4653
|
-
(R[3] ? "Open" : "")) && N(n, "class", r),
|
|
4659
|
+
(R[3] ? "Open" : "")) && N(n, "class", r), V[0] & /*$_*/
|
|
4654
4660
|
64 && u !== (u = /*$_*/
|
|
4655
|
-
R[6]("Title") + "") &&
|
|
4661
|
+
R[6]("Title") + "") && _e(d, u), V[0] & /*balances, currency, formatBalance, $_*/
|
|
4656
4662
|
354) {
|
|
4657
|
-
Y =
|
|
4663
|
+
Y = gt(Object.keys(
|
|
4658
4664
|
/*balances*/
|
|
4659
4665
|
R[1]
|
|
4660
4666
|
));
|
|
4661
|
-
let
|
|
4662
|
-
for (
|
|
4663
|
-
const b =
|
|
4664
|
-
|
|
4667
|
+
let U;
|
|
4668
|
+
for (U = 0; U < Y.length; U += 1) {
|
|
4669
|
+
const b = xn(R, Y, U);
|
|
4670
|
+
G[U] ? G[U].p(b, V) : (G[U] = Sn(b), G[U].c(), G[U].m(g, null));
|
|
4665
4671
|
}
|
|
4666
|
-
for (;
|
|
4667
|
-
|
|
4668
|
-
|
|
4672
|
+
for (; U < G.length; U += 1)
|
|
4673
|
+
G[U].d(1);
|
|
4674
|
+
G.length = Y.length;
|
|
4669
4675
|
}
|
|
4670
|
-
|
|
4671
|
-
64 &&
|
|
4672
|
-
R[6]("DepositButton") + "") &&
|
|
4673
|
-
8 &&
|
|
4674
|
-
(R[3] ? "Open" : "")) && N(l, "class",
|
|
4676
|
+
V[0] & /*$_*/
|
|
4677
|
+
64 && _ !== (_ = /*$_*/
|
|
4678
|
+
R[6]("DepositButton") + "") && _e(S, _), V[0] & /*modalOpened*/
|
|
4679
|
+
8 && I !== (I = "ModalContent " + /*modalOpened*/
|
|
4680
|
+
(R[3] ? "Open" : "")) && N(l, "class", I), V[0] & /*modalOpened*/
|
|
4675
4681
|
8 && H !== (H = "BalanceModal " + /*modalOpened*/
|
|
4676
|
-
(R[3] ? "Open" : "")) && N(o, "class", H),
|
|
4677
|
-
8 &&
|
|
4678
|
-
(R[3] ? "Open" : "")) && N(t, "class",
|
|
4682
|
+
(R[3] ? "Open" : "")) && N(o, "class", H), V[0] & /*modalOpened*/
|
|
4683
|
+
8 && D !== (D = "BalanceModalWrapper " + /*modalOpened*/
|
|
4684
|
+
(R[3] ? "Open" : "")) && N(t, "class", D);
|
|
4679
4685
|
},
|
|
4680
4686
|
d(R) {
|
|
4681
|
-
R && fe(t),
|
|
4687
|
+
R && fe(t), Rn(G, R), W = !1, Ve(q);
|
|
4682
4688
|
}
|
|
4683
4689
|
};
|
|
4684
4690
|
}
|
|
4685
|
-
function
|
|
4691
|
+
function wn(e) {
|
|
4686
4692
|
let t, n, r = (
|
|
4687
4693
|
/*$_*/
|
|
4688
4694
|
e[6](
|
|
@@ -4707,53 +4713,53 @@ function Bn(e) {
|
|
|
4707
4713
|
e[53].amount
|
|
4708
4714
|
)
|
|
4709
4715
|
) : "0") + ""
|
|
4710
|
-
), g,
|
|
4716
|
+
), g, x, B, T;
|
|
4711
4717
|
return {
|
|
4712
4718
|
c() {
|
|
4713
|
-
t = j("div"), n = j("p"), i = he(r), o = de(), s = he(l), h = de(), u = j("p"), d = j("span"), g = he(m),
|
|
4719
|
+
t = j("div"), n = j("p"), i = he(r), o = de(), s = he(l), h = de(), u = j("p"), d = j("span"), g = he(m), x = de(), B = j("span"), T = he(
|
|
4714
4720
|
/*currency*/
|
|
4715
4721
|
e[5]
|
|
4716
4722
|
), N(n, "class", "BalanceModalText"), N(d, "class", "BalanceModalAmount"), N(B, "class", "BalanceModalCurrency"), N(u, "class", "BalanceModalValue"), N(t, "class", "BalanceModalRowLine");
|
|
4717
4723
|
},
|
|
4718
|
-
m(
|
|
4719
|
-
|
|
4724
|
+
m(_, S) {
|
|
4725
|
+
ge(_, t, S), C(t, n), C(n, i), C(n, o), C(n, s), C(t, h), C(t, u), C(u, d), C(d, g), C(u, x), C(u, B), C(B, T);
|
|
4720
4726
|
},
|
|
4721
|
-
p(
|
|
4727
|
+
p(_, S) {
|
|
4722
4728
|
S[0] & /*$_, balances*/
|
|
4723
4729
|
66 && r !== (r = /*$_*/
|
|
4724
|
-
|
|
4730
|
+
_[6](
|
|
4725
4731
|
/*k*/
|
|
4726
|
-
|
|
4727
|
-
) + "") &&
|
|
4732
|
+
_[50]
|
|
4733
|
+
) + "") && _e(i, r), S[0] & /*balances, $_*/
|
|
4728
4734
|
66 && l !== (l = /*b*/
|
|
4729
|
-
(
|
|
4735
|
+
(_[53].productType ? (
|
|
4730
4736
|
/*$_*/
|
|
4731
|
-
|
|
4737
|
+
_[6](
|
|
4732
4738
|
/*b*/
|
|
4733
|
-
|
|
4739
|
+
_[53].productType
|
|
4734
4740
|
)
|
|
4735
|
-
) : "") + "") &&
|
|
4741
|
+
) : "") + "") && _e(s, l), S[0] & /*balances*/
|
|
4736
4742
|
2 && m !== (m = /*b*/
|
|
4737
|
-
(
|
|
4743
|
+
(_[53].amount ? (
|
|
4738
4744
|
/*formatBalance*/
|
|
4739
|
-
|
|
4745
|
+
_[8](
|
|
4740
4746
|
/*b*/
|
|
4741
|
-
|
|
4747
|
+
_[53].amount
|
|
4742
4748
|
)
|
|
4743
|
-
) : "0") + "") &&
|
|
4744
|
-
32 &&
|
|
4749
|
+
) : "0") + "") && _e(g, m), S[0] & /*currency*/
|
|
4750
|
+
32 && _e(
|
|
4745
4751
|
T,
|
|
4746
4752
|
/*currency*/
|
|
4747
|
-
|
|
4753
|
+
_[5]
|
|
4748
4754
|
);
|
|
4749
4755
|
},
|
|
4750
|
-
d(
|
|
4751
|
-
|
|
4756
|
+
d(_) {
|
|
4757
|
+
_ && fe(t);
|
|
4752
4758
|
}
|
|
4753
4759
|
};
|
|
4754
4760
|
}
|
|
4755
|
-
function
|
|
4756
|
-
let t, n, r =
|
|
4761
|
+
function Sn(e) {
|
|
4762
|
+
let t, n, r = gt(
|
|
4757
4763
|
/*balances*/
|
|
4758
4764
|
e[1][
|
|
4759
4765
|
/*k*/
|
|
@@ -4761,7 +4767,7 @@ function Tn(e) {
|
|
|
4761
4767
|
]
|
|
4762
4768
|
), i = [];
|
|
4763
4769
|
for (let o = 0; o < r.length; o += 1)
|
|
4764
|
-
i[o] = Bn(
|
|
4770
|
+
i[o] = wn(Bn(e, r, o));
|
|
4765
4771
|
return {
|
|
4766
4772
|
c() {
|
|
4767
4773
|
t = j("div");
|
|
@@ -4770,7 +4776,7 @@ function Tn(e) {
|
|
|
4770
4776
|
n = de(), N(t, "class", "BalanceModalRowBoth");
|
|
4771
4777
|
},
|
|
4772
4778
|
m(o, l) {
|
|
4773
|
-
|
|
4779
|
+
ge(o, t, l);
|
|
4774
4780
|
for (let s = 0; s < i.length; s += 1)
|
|
4775
4781
|
i[s] && i[s].m(t, null);
|
|
4776
4782
|
C(t, n);
|
|
@@ -4778,7 +4784,7 @@ function Tn(e) {
|
|
|
4778
4784
|
p(o, l) {
|
|
4779
4785
|
if (l[0] & /*currency, balances, formatBalance, $_*/
|
|
4780
4786
|
354) {
|
|
4781
|
-
r =
|
|
4787
|
+
r = gt(
|
|
4782
4788
|
/*balances*/
|
|
4783
4789
|
o[1][
|
|
4784
4790
|
/*k*/
|
|
@@ -4787,8 +4793,8 @@ function Tn(e) {
|
|
|
4787
4793
|
);
|
|
4788
4794
|
let s;
|
|
4789
4795
|
for (s = 0; s < r.length; s += 1) {
|
|
4790
|
-
const h =
|
|
4791
|
-
i[s] ? i[s].p(h, l) : (i[s] =
|
|
4796
|
+
const h = Bn(o, r, s);
|
|
4797
|
+
i[s] ? i[s].p(h, l) : (i[s] = wn(h), i[s].c(), i[s].m(t, n));
|
|
4792
4798
|
}
|
|
4793
4799
|
for (; s < i.length; s += 1)
|
|
4794
4800
|
i[s].d(1);
|
|
@@ -4796,18 +4802,18 @@ function Tn(e) {
|
|
|
4796
4802
|
}
|
|
4797
4803
|
},
|
|
4798
4804
|
d(o) {
|
|
4799
|
-
o && fe(t),
|
|
4805
|
+
o && fe(t), Rn(i, o);
|
|
4800
4806
|
}
|
|
4801
4807
|
};
|
|
4802
4808
|
}
|
|
4803
|
-
function
|
|
4809
|
+
function An(e) {
|
|
4804
4810
|
let t, n, r;
|
|
4805
4811
|
return {
|
|
4806
4812
|
c() {
|
|
4807
4813
|
t = j("div"), N(t, "class", "ShowBalanceModalOverlay");
|
|
4808
4814
|
},
|
|
4809
4815
|
m(i, o) {
|
|
4810
|
-
|
|
4816
|
+
ge(i, t, o), n || (r = mt(
|
|
4811
4817
|
t,
|
|
4812
4818
|
"click",
|
|
4813
4819
|
/*click_handler_3*/
|
|
@@ -4820,28 +4826,28 @@ function wn(e) {
|
|
|
4820
4826
|
}
|
|
4821
4827
|
};
|
|
4822
4828
|
}
|
|
4823
|
-
function
|
|
4829
|
+
function Lo(e) {
|
|
4824
4830
|
let t, n, r;
|
|
4825
4831
|
function i(h, u) {
|
|
4826
4832
|
return (
|
|
4827
4833
|
/*isLoading*/
|
|
4828
|
-
h[2] ?
|
|
4834
|
+
h[2] ? Ro : Oo
|
|
4829
4835
|
);
|
|
4830
4836
|
}
|
|
4831
4837
|
let o = i(e), l = o(e), s = (
|
|
4832
4838
|
/*showBalance*/
|
|
4833
|
-
e[4] &&
|
|
4839
|
+
e[4] && An(e)
|
|
4834
4840
|
);
|
|
4835
4841
|
return {
|
|
4836
4842
|
c() {
|
|
4837
4843
|
t = j("div"), n = j("div"), l.c(), r = de(), s && s.c(), N(n, "class", "ShowBalance");
|
|
4838
4844
|
},
|
|
4839
4845
|
m(h, u) {
|
|
4840
|
-
|
|
4846
|
+
ge(h, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[29](t);
|
|
4841
4847
|
},
|
|
4842
4848
|
p(h, u) {
|
|
4843
4849
|
o === (o = i(h)) && l ? l.p(h, u) : (l.d(1), l = o(h), l && (l.c(), l.m(n, null))), /*showBalance*/
|
|
4844
|
-
h[4] ? s ? s.p(h, u) : (s =
|
|
4850
|
+
h[4] ? s ? s.p(h, u) : (s = An(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4845
4851
|
},
|
|
4846
4852
|
i: se,
|
|
4847
4853
|
o: se,
|
|
@@ -4850,15 +4856,15 @@ function Oo(e) {
|
|
|
4850
4856
|
}
|
|
4851
4857
|
};
|
|
4852
4858
|
}
|
|
4853
|
-
function
|
|
4859
|
+
function Mo(e, t, n) {
|
|
4854
4860
|
let r;
|
|
4855
|
-
|
|
4856
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = t, { customlocaleidentifier: g = "" } = t, { gmversion:
|
|
4857
|
-
const b = {}, xe = ["totalCashAmount", "totalRealAmount"],
|
|
4858
|
-
fetch(m).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) =>
|
|
4861
|
+
sr(e, _o, (a) => n(6, r = a));
|
|
4862
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = t, { customlocaleidentifier: g = "" } = t, { gmversion: x = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: _ = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: I = "" } = t, H, D, W, q, Y = !1, G = "", R = [], V, U = !1;
|
|
4863
|
+
const b = {}, xe = ["totalCashAmount", "totalRealAmount"], Ze = () => {
|
|
4864
|
+
fetch(m).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => En(f, a[f]))).catch((a) => console.log(a));
|
|
4859
4865
|
};
|
|
4860
|
-
Object.keys(
|
|
4861
|
-
const
|
|
4866
|
+
Object.keys(_n).forEach((a) => En(a, _n[a]));
|
|
4867
|
+
const Be = (a) => {
|
|
4862
4868
|
switch (a) {
|
|
4863
4869
|
case "balance":
|
|
4864
4870
|
window.postMessage(
|
|
@@ -4884,20 +4890,20 @@ function Ro(e, t, n) {
|
|
|
4884
4890
|
);
|
|
4885
4891
|
break;
|
|
4886
4892
|
}
|
|
4887
|
-
},
|
|
4893
|
+
}, Re = () => {
|
|
4888
4894
|
if (g.includes(s))
|
|
4889
4895
|
return g;
|
|
4890
|
-
}, pe = (a) => g ? new Intl.NumberFormat(
|
|
4891
|
-
separator:
|
|
4896
|
+
}, pe = (a) => g ? new Intl.NumberFormat(Re(), { useGrouping: !0 }).format(a) : _ && S ? ce(a, {
|
|
4897
|
+
separator: _,
|
|
4892
4898
|
decimal: S,
|
|
4893
4899
|
symbol: "",
|
|
4894
|
-
precision: parseInt(
|
|
4900
|
+
precision: parseInt(I || "2", 10)
|
|
4895
4901
|
}).format() : ce(a, {
|
|
4896
4902
|
separator: ".",
|
|
4897
4903
|
decimal: ",",
|
|
4898
4904
|
symbol: "",
|
|
4899
|
-
precision: parseInt(
|
|
4900
|
-
}).format(),
|
|
4905
|
+
precision: parseInt(I || "2", 10)
|
|
4906
|
+
}).format(), Te = async () => {
|
|
4901
4907
|
n(2, H = !0);
|
|
4902
4908
|
const a = new URL(`${l}/v1/player/${i}/account`);
|
|
4903
4909
|
try {
|
|
@@ -4906,7 +4912,7 @@ function Ro(e, t, n) {
|
|
|
4906
4912
|
headers: { "X-SessionID": o }
|
|
4907
4913
|
}), p = await f.json();
|
|
4908
4914
|
if (f.ok)
|
|
4909
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href), R = p.items, n(5,
|
|
4915
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), R = p.items, n(5, G = R.find((c) => c.displayName === "Casino")?.currency), n(1, b.Total = [{ amount: p.totalAmount[G] }], b), n(
|
|
4910
4916
|
1,
|
|
4911
4917
|
b.Real = [
|
|
4912
4918
|
{
|
|
@@ -4930,17 +4936,17 @@ function Ro(e, t, n) {
|
|
|
4930
4936
|
} finally {
|
|
4931
4937
|
n(2, H = !1);
|
|
4932
4938
|
}
|
|
4933
|
-
},
|
|
4939
|
+
}, Ae = () => {
|
|
4934
4940
|
n(2, H = !0);
|
|
4935
4941
|
const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
|
|
4936
4942
|
f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((c) => c.json()).then((c) => {
|
|
4937
4943
|
c[T] || n(10, T = xe[0]);
|
|
4938
4944
|
const v = c.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
|
|
4939
|
-
if (n(5,
|
|
4940
|
-
|
|
4945
|
+
if (n(5, G = v.currency), U = !!v.productType, n(1, b.Total = [{ amount: 0 }], b), n(1, b.Real = [], b), n(1, b.Bonus = [], b), n(1, b.Credit = [], b), !U) {
|
|
4946
|
+
V = {
|
|
4941
4947
|
lastOrdinaryAfterAmount: 0,
|
|
4942
4948
|
showCreditLineAfterAmount: !1
|
|
4943
|
-
}, n(1, b.Total[0].amount = c[T][
|
|
4949
|
+
}, n(1, b.Total[0].amount = c[T][G], b);
|
|
4944
4950
|
for (const y of c.items)
|
|
4945
4951
|
switch (y.type) {
|
|
4946
4952
|
case "Bonus":
|
|
@@ -4957,7 +4963,7 @@ function Ro(e, t, n) {
|
|
|
4957
4963
|
n(2, H = !1);
|
|
4958
4964
|
return;
|
|
4959
4965
|
}
|
|
4960
|
-
|
|
4966
|
+
V = {
|
|
4961
4967
|
Casino: {
|
|
4962
4968
|
lastOrdinaryAfterAmount: 0,
|
|
4963
4969
|
showCreditLineAfterAmount: !1
|
|
@@ -4989,29 +4995,29 @@ function Ro(e, t, n) {
|
|
|
4989
4995
|
break;
|
|
4990
4996
|
}
|
|
4991
4997
|
}
|
|
4992
|
-
|
|
4998
|
+
ot();
|
|
4993
4999
|
for (const [y, L] of Object.entries(b))
|
|
4994
5000
|
L.length < 1 && delete b[y];
|
|
4995
5001
|
n(2, H = !1);
|
|
4996
5002
|
}).catch((c) => {
|
|
4997
5003
|
throw n(2, H = !1), new Error("Failed to fetch balance data !");
|
|
4998
5004
|
});
|
|
4999
|
-
},
|
|
5005
|
+
}, Ce = () => {
|
|
5000
5006
|
if (q && q.close(), o.length < 1)
|
|
5001
5007
|
return;
|
|
5002
5008
|
let a, f;
|
|
5003
|
-
switch (
|
|
5009
|
+
switch (x) {
|
|
5004
5010
|
case "gm16":
|
|
5005
|
-
a = new URL(`${l}/v2/player/${i}/information/updates`), f = (v) =>
|
|
5011
|
+
a = new URL(`${l}/v2/player/${i}/information/updates`), f = (v) => wt(v);
|
|
5006
5012
|
break;
|
|
5007
5013
|
case "gmcore":
|
|
5008
|
-
a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (v) =>
|
|
5014
|
+
a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (v) => qe(v);
|
|
5009
5015
|
break;
|
|
5010
5016
|
}
|
|
5011
5017
|
const p = {
|
|
5012
5018
|
accept: "text/event-stream",
|
|
5013
5019
|
"X-SessionId": o
|
|
5014
|
-
}, c = new
|
|
5020
|
+
}, c = new Bo.EventSourcePolyfill(a, { headers: p });
|
|
5015
5021
|
q = c, c.addEventListener("message", f);
|
|
5016
5022
|
}, le = (a) => {
|
|
5017
5023
|
let f;
|
|
@@ -5022,10 +5028,10 @@ function Ro(e, t, n) {
|
|
|
5022
5028
|
return;
|
|
5023
5029
|
}
|
|
5024
5030
|
return f;
|
|
5025
|
-
},
|
|
5031
|
+
}, qe = (a) => {
|
|
5026
5032
|
const f = le(a.data);
|
|
5027
5033
|
if (!f) {
|
|
5028
|
-
|
|
5034
|
+
Ce();
|
|
5029
5035
|
return;
|
|
5030
5036
|
}
|
|
5031
5037
|
let p = "0";
|
|
@@ -5034,7 +5040,7 @@ function Ro(e, t, n) {
|
|
|
5034
5040
|
...v,
|
|
5035
5041
|
balanceAmount: c[v.id].afterAmount
|
|
5036
5042
|
}), p = (parseFloat(v?.balanceAmount) + parseFloat(p)).toString(), v)), n(1, b.Real = [{ amount: R[0]?.balanceAmount }], b), n(1, b.Bonus = [{ amount: R[1]?.balanceAmount }], b), n(1, b.Total = [{ amount: Number(p) }], b);
|
|
5037
|
-
},
|
|
5043
|
+
}, Le = (a, f, p) => {
|
|
5038
5044
|
let c = null;
|
|
5039
5045
|
switch (p.walletAccountType) {
|
|
5040
5046
|
case "Ordinary":
|
|
@@ -5047,7 +5053,7 @@ function Ro(e, t, n) {
|
|
|
5047
5053
|
c = p.afterAmount;
|
|
5048
5054
|
}
|
|
5049
5055
|
return c === null ? a : c;
|
|
5050
|
-
},
|
|
5056
|
+
}, ot = () => {
|
|
5051
5057
|
switch (T) {
|
|
5052
5058
|
case "totalCashAmount":
|
|
5053
5059
|
let a = 0;
|
|
@@ -5057,82 +5063,82 @@ function Ro(e, t, n) {
|
|
|
5057
5063
|
n(1, b.Total[0].amount = a, b);
|
|
5058
5064
|
break;
|
|
5059
5065
|
case "totalRealAmount":
|
|
5060
|
-
if (!
|
|
5066
|
+
if (!U)
|
|
5061
5067
|
return;
|
|
5062
5068
|
let f = 0;
|
|
5063
5069
|
for (const p of b.Real)
|
|
5064
5070
|
f += p.amount;
|
|
5065
5071
|
n(1, b.Total[0].amount = f, b);
|
|
5066
5072
|
}
|
|
5067
|
-
},
|
|
5073
|
+
}, wt = (a) => {
|
|
5068
5074
|
const f = le(a.data);
|
|
5069
5075
|
if (!f) {
|
|
5070
|
-
|
|
5076
|
+
Ce();
|
|
5071
5077
|
return;
|
|
5072
5078
|
}
|
|
5073
5079
|
if (f.type !== "BALANCE_UPDATE_V2")
|
|
5074
5080
|
return;
|
|
5075
5081
|
const p = f.body.balanceChange;
|
|
5076
5082
|
for (const [c, v] of Object.entries(p))
|
|
5077
|
-
if (T === "totalRealAmount" && c === "Real" && !
|
|
5083
|
+
if (T === "totalRealAmount" && c === "Real" && !U && n(1, b.Total[0].amount = Le(b.Total[0].amount, V, v), b), !!b[c])
|
|
5078
5084
|
for (const E of b[c]) {
|
|
5079
|
-
if (!
|
|
5080
|
-
E.amount = c === "Real" ?
|
|
5085
|
+
if (!U) {
|
|
5086
|
+
E.amount = c === "Real" ? Le(E.amount, V, v) : v.afterAmount;
|
|
5081
5087
|
continue;
|
|
5082
5088
|
}
|
|
5083
|
-
v.productType === E.productType && (E.amount = c === "Real" ?
|
|
5089
|
+
v.productType === E.productType && (E.amount = c === "Real" ? Le(E.amount, V[E.productType], v) : v.afterAmount);
|
|
5084
5090
|
}
|
|
5085
|
-
|
|
5086
|
-
},
|
|
5087
|
-
|
|
5088
|
-
},
|
|
5091
|
+
ot();
|
|
5092
|
+
}, at = () => {
|
|
5093
|
+
Be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5094
|
+
}, St = () => {
|
|
5089
5095
|
xe.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${xe}. Using default value ('${xe[0]}').`), n(10, T = xe[0]));
|
|
5090
|
-
},
|
|
5091
|
-
switch (
|
|
5096
|
+
}, Qe = () => {
|
|
5097
|
+
switch (xo(s), St(), x) {
|
|
5092
5098
|
case "gmcore":
|
|
5093
|
-
|
|
5099
|
+
Te();
|
|
5094
5100
|
break;
|
|
5095
5101
|
case "gm16":
|
|
5096
|
-
|
|
5102
|
+
Ae();
|
|
5097
5103
|
break;
|
|
5098
5104
|
default:
|
|
5099
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
5105
|
+
throw Error(`Invalid apiversion attribute: ${x}`);
|
|
5100
5106
|
}
|
|
5101
|
-
},
|
|
5107
|
+
}, Me = (a) => a.data && a.data.type === "LogoutSuccessfull" && q.close(), we = () => {
|
|
5102
5108
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5103
5109
|
};
|
|
5104
|
-
|
|
5105
|
-
window.removeEventListener("message",
|
|
5110
|
+
mr(() => (window.addEventListener("message", Me, !1), () => {
|
|
5111
|
+
window.removeEventListener("message", Me), q && q.close();
|
|
5106
5112
|
}));
|
|
5107
|
-
const re = () =>
|
|
5108
|
-
function
|
|
5109
|
-
|
|
5110
|
-
|
|
5113
|
+
const re = () => Be("balance"), At = () => Be("closebalance"), Ct = () => at(), Ht = () => Be("closeBalance");
|
|
5114
|
+
function st(a) {
|
|
5115
|
+
Ft[a ? "unshift" : "push"](() => {
|
|
5116
|
+
D = a, n(0, D);
|
|
5111
5117
|
});
|
|
5112
5118
|
}
|
|
5113
5119
|
return e.$$set = (a) => {
|
|
5114
|
-
"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, h = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, m = a.translationurl), "customlocaleidentifier" in a && n(19, g = a.customlocaleidentifier), "gmversion" in a && n(20,
|
|
5120
|
+
"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, h = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, m = a.translationurl), "customlocaleidentifier" in a && n(19, g = a.customlocaleidentifier), "gmversion" in a && n(20, x = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, _ = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, I = a.currencyprecision);
|
|
5115
5121
|
}, e.$$.update = () => {
|
|
5116
5122
|
e.$$.dirty[0] & /*lang*/
|
|
5117
|
-
16384 && s &&
|
|
5118
|
-
3176448 && l && i && o && s &&
|
|
5119
|
-
1062912 && l && i && o &&
|
|
5120
|
-
262144 && m &&
|
|
5121
|
-
2 && b.Total &&
|
|
5122
|
-
65537 && u &&
|
|
5123
|
-
131073 && d &&
|
|
5124
|
-
32769 && h &&
|
|
5123
|
+
16384 && s && Re(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5124
|
+
3176448 && l && i && o && s && x && B && Qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5125
|
+
1062912 && l && i && o && x && Ce(), e.$$.dirty[0] & /*translationurl*/
|
|
5126
|
+
262144 && m && Ze(), e.$$.dirty[0] & /*balances*/
|
|
5127
|
+
2 && b.Total && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5128
|
+
65537 && u && D && Hr(D, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5129
|
+
131073 && d && D && Or(D, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5130
|
+
32769 && h && D && Rr(D, `${h}.Style`);
|
|
5125
5131
|
}, [
|
|
5126
|
-
|
|
5132
|
+
D,
|
|
5127
5133
|
b,
|
|
5128
5134
|
H,
|
|
5129
5135
|
W,
|
|
5130
5136
|
Y,
|
|
5131
|
-
|
|
5137
|
+
G,
|
|
5132
5138
|
r,
|
|
5133
|
-
|
|
5139
|
+
Be,
|
|
5134
5140
|
pe,
|
|
5135
|
-
|
|
5141
|
+
at,
|
|
5136
5142
|
T,
|
|
5137
5143
|
i,
|
|
5138
5144
|
o,
|
|
@@ -5143,26 +5149,26 @@ function Ro(e, t, n) {
|
|
|
5143
5149
|
d,
|
|
5144
5150
|
m,
|
|
5145
5151
|
g,
|
|
5146
|
-
_,
|
|
5147
|
-
B,
|
|
5148
5152
|
x,
|
|
5153
|
+
B,
|
|
5154
|
+
_,
|
|
5149
5155
|
S,
|
|
5150
|
-
|
|
5156
|
+
I,
|
|
5151
5157
|
re,
|
|
5152
|
-
wt,
|
|
5153
|
-
St,
|
|
5154
5158
|
At,
|
|
5155
|
-
|
|
5159
|
+
Ct,
|
|
5160
|
+
Ht,
|
|
5161
|
+
st
|
|
5156
5162
|
];
|
|
5157
5163
|
}
|
|
5158
|
-
class
|
|
5164
|
+
class No extends Ar {
|
|
5159
5165
|
constructor(t) {
|
|
5160
|
-
super(),
|
|
5166
|
+
super(), wr(
|
|
5161
5167
|
this,
|
|
5162
5168
|
t,
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5169
|
+
Mo,
|
|
5170
|
+
Lo,
|
|
5171
|
+
Hn,
|
|
5166
5172
|
{
|
|
5167
5173
|
userid: 11,
|
|
5168
5174
|
session: 12,
|
|
@@ -5180,7 +5186,7 @@ class Lo extends wr {
|
|
|
5180
5186
|
currencydecimal: 23,
|
|
5181
5187
|
currencyprecision: 24
|
|
5182
5188
|
},
|
|
5183
|
-
|
|
5189
|
+
Ho,
|
|
5184
5190
|
[-1, -1]
|
|
5185
5191
|
);
|
|
5186
5192
|
}
|
|
@@ -5275,7 +5281,7 @@ class Lo extends wr {
|
|
|
5275
5281
|
this.$$set({ currencyprecision: t }), J();
|
|
5276
5282
|
}
|
|
5277
5283
|
}
|
|
5278
|
-
|
|
5284
|
+
Sr(No, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
|
5279
5285
|
export {
|
|
5280
|
-
|
|
5286
|
+
No as P
|
|
5281
5287
|
};
|