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