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