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