@everymatrix/player-account-balance-modal-nd 1.65.3 → 1.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountBalanceModalNd-CDqK15WY.cjs +15 -0
- package/components/{PlayerAccountBalanceModalNd-DekFWe_Y.js → PlayerAccountBalanceModalNd-XeaAOJqn.js} +1083 -1081
- package/components/{PlayerAccountBalanceModalNd-DMleXAk-.js → PlayerAccountBalanceModalNd-ccNoIRG0.js} +1071 -1069
- package/es2015/player-account-balance-modal-nd.cjs +1 -1
- package/es2015/player-account-balance-modal-nd.js +1 -1
- package/esnext/player-account-balance-modal-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-BGdJ7dUB.cjs +0 -28
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var fr = Object.defineProperty, dr = Object.defineProperties;
|
|
2
|
+
var pr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var un = Object.getOwnPropertySymbols;
|
|
4
|
+
var mr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Mt = (e, t, n) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nt = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
mr.call(t, n) && Mt(e, n, t[n]);
|
|
8
|
+
if (un)
|
|
9
|
+
for (var n of un(t))
|
|
10
|
+
gr.call(t, n) && Mt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var se = (e, t, n) => (
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, It = (e, t) => dr(e, pr(t));
|
|
13
|
+
var se = (e, t, n) => (Mt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var Pt = (e, t, n) => new Promise((r, i) => {
|
|
15
|
+
var o = (c) => {
|
|
16
16
|
try {
|
|
17
17
|
s(n.next(c));
|
|
18
18
|
} catch (u) {
|
|
@@ -24,30 +24,30 @@ var Nt = (e, t, n) => new Promise((r, i) => {
|
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(
|
|
27
|
+
}, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, l);
|
|
28
28
|
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function le() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Nn(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function cn() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function Xe(e) {
|
|
39
|
+
e.forEach(Nn);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function rn(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function In(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function br(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Pn(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
@@ -56,20 +56,20 @@ function In(e, ...t) {
|
|
|
56
56
|
const n = e.subscribe(...t);
|
|
57
57
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function yr(e, t, n) {
|
|
60
|
+
e.$$.on_destroy.push(Pn(t, n));
|
|
61
61
|
}
|
|
62
62
|
function H(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const r =
|
|
65
|
+
function vr(e, t, n) {
|
|
66
|
+
const r = Er(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = n,
|
|
68
|
+
const i = k("style");
|
|
69
|
+
i.id = t, i.textContent = n, xr(r, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Er(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,27 +79,27 @@ function vr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function xr(e, t) {
|
|
83
83
|
return H(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function be(e, t, n) {
|
|
90
90
|
e.insertBefore(t, n || null);
|
|
91
91
|
}
|
|
92
92
|
function de(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Dn(e, t) {
|
|
96
96
|
for (let n = 0; n < e.length; n += 1)
|
|
97
97
|
e[n] && e[n].d(t);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function k(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function hn(e) {
|
|
103
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
104
|
}
|
|
105
105
|
function fe(e) {
|
|
@@ -108,23 +108,23 @@ function fe(e) {
|
|
|
108
108
|
function pe() {
|
|
109
109
|
return fe(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function _r() {
|
|
112
112
|
return fe("");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function gt(e, t, n, r) {
|
|
115
115
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
116
116
|
}
|
|
117
117
|
function M(e, t, n) {
|
|
118
118
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Br(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function _e(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Tr(e) {
|
|
128
128
|
const t = {};
|
|
129
129
|
return e.childNodes.forEach(
|
|
130
130
|
/** @param {Element} node */
|
|
@@ -133,98 +133,98 @@ function Br(e) {
|
|
|
133
133
|
}
|
|
134
134
|
), t;
|
|
135
135
|
}
|
|
136
|
-
let
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
let nt;
|
|
137
|
+
function tt(e) {
|
|
138
|
+
nt = e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
if (!
|
|
140
|
+
function wr() {
|
|
141
|
+
if (!nt)
|
|
142
142
|
throw new Error("Function called outside component initialization");
|
|
143
|
-
return
|
|
143
|
+
return nt;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
145
|
+
function Sr(e) {
|
|
146
|
+
wr().$$.on_mount.push(e);
|
|
147
147
|
}
|
|
148
|
-
const
|
|
149
|
-
let
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
function
|
|
153
|
-
|
|
148
|
+
const Fe = [], Vt = [];
|
|
149
|
+
let Ge = [];
|
|
150
|
+
const fn = [], Ar = /* @__PURE__ */ Promise.resolve();
|
|
151
|
+
let Xt = !1;
|
|
152
|
+
function Cr() {
|
|
153
|
+
Xt || (Xt = !0, Ar.then(Q));
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
|
|
155
|
+
function zt(e) {
|
|
156
|
+
Ge.push(e);
|
|
157
157
|
}
|
|
158
|
-
const
|
|
159
|
-
let
|
|
158
|
+
const Dt = /* @__PURE__ */ new Set();
|
|
159
|
+
let De = 0;
|
|
160
160
|
function Q() {
|
|
161
|
-
if (
|
|
161
|
+
if (De !== 0)
|
|
162
162
|
return;
|
|
163
|
-
const e =
|
|
163
|
+
const e = nt;
|
|
164
164
|
do {
|
|
165
165
|
try {
|
|
166
|
-
for (;
|
|
167
|
-
const t =
|
|
168
|
-
|
|
166
|
+
for (; De < Fe.length; ) {
|
|
167
|
+
const t = Fe[De];
|
|
168
|
+
De++, tt(t), Hr(t.$$);
|
|
169
169
|
}
|
|
170
170
|
} catch (t) {
|
|
171
|
-
throw
|
|
171
|
+
throw Fe.length = 0, De = 0, t;
|
|
172
172
|
}
|
|
173
|
-
for (
|
|
174
|
-
|
|
175
|
-
for (let t = 0; t <
|
|
176
|
-
const n =
|
|
177
|
-
|
|
173
|
+
for (tt(null), Fe.length = 0, De = 0; Vt.length; )
|
|
174
|
+
Vt.pop()();
|
|
175
|
+
for (let t = 0; t < Ge.length; t += 1) {
|
|
176
|
+
const n = Ge[t];
|
|
177
|
+
Dt.has(n) || (Dt.add(n), n());
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
} while (
|
|
181
|
-
for (;
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
Ge.length = 0;
|
|
180
|
+
} while (Fe.length);
|
|
181
|
+
for (; fn.length; )
|
|
182
|
+
fn.pop()();
|
|
183
|
+
Xt = !1, Dt.clear(), tt(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Hr(e) {
|
|
186
186
|
if (e.fragment !== null) {
|
|
187
|
-
e.update(),
|
|
187
|
+
e.update(), Xe(e.before_update);
|
|
188
188
|
const t = e.dirty;
|
|
189
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
189
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(zt);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Or(e) {
|
|
193
193
|
const t = [], n = [];
|
|
194
|
-
|
|
194
|
+
Ge.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ge = t;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
e && e.i && (
|
|
196
|
+
const Rr = /* @__PURE__ */ new Set();
|
|
197
|
+
function Lr(e, t) {
|
|
198
|
+
e && e.i && (Rr.delete(e), e.i(t));
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function bt(e) {
|
|
201
201
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Mr(e, t, n) {
|
|
204
204
|
const { fragment: r, after_update: i } = e.$$;
|
|
205
|
-
r && r.m(t, n),
|
|
206
|
-
const
|
|
207
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
208
|
-
}), i.forEach(
|
|
205
|
+
r && r.m(t, n), zt(() => {
|
|
206
|
+
const o = e.$$.on_mount.map(Nn).filter(rn);
|
|
207
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Xe(o), e.$$.on_mount = [];
|
|
208
|
+
}), i.forEach(zt);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Nr(e, t) {
|
|
211
211
|
const n = e.$$;
|
|
212
|
-
n.fragment !== null && (
|
|
212
|
+
n.fragment !== null && (Or(n.after_update), Xe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
e.$$.dirty[0] === -1 && (
|
|
214
|
+
function Ir(e, t) {
|
|
215
|
+
e.$$.dirty[0] === -1 && (Fe.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
const c =
|
|
219
|
-
|
|
217
|
+
function Pr(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
218
|
+
const c = nt;
|
|
219
|
+
tt(e);
|
|
220
220
|
const u = e.$$ = {
|
|
221
221
|
fragment: null,
|
|
222
222
|
ctx: [],
|
|
223
223
|
// state
|
|
224
|
-
props:
|
|
224
|
+
props: o,
|
|
225
225
|
update: le,
|
|
226
226
|
not_equal: i,
|
|
227
|
-
bound:
|
|
227
|
+
bound: cn(),
|
|
228
228
|
// lifecycle
|
|
229
229
|
on_mount: [],
|
|
230
230
|
on_destroy: [],
|
|
@@ -233,28 +233,28 @@ function Ir(e, t, n, r, i, a, l = null, s = [-1]) {
|
|
|
233
233
|
after_update: [],
|
|
234
234
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
235
235
|
// everything else
|
|
236
|
-
callbacks:
|
|
236
|
+
callbacks: cn(),
|
|
237
237
|
dirty: s,
|
|
238
238
|
skip_bound: !1,
|
|
239
239
|
root: t.target || c.$$.root
|
|
240
240
|
};
|
|
241
241
|
l && l(u.root);
|
|
242
242
|
let d = !1;
|
|
243
|
-
if (u.ctx = n(e, t.props || {}, (g, b, ..._) => {
|
|
243
|
+
if (u.ctx = n ? n(e, t.props || {}, (g, b, ..._) => {
|
|
244
244
|
const B = _.length ? _[0] : b;
|
|
245
|
-
return u.ctx && i(u.ctx[g], u.ctx[g] = B) && (!u.skip_bound && u.bound[g] && u.bound[g](B), d &&
|
|
246
|
-
}), u.update(), d = !0,
|
|
245
|
+
return u.ctx && i(u.ctx[g], u.ctx[g] = B) && (!u.skip_bound && u.bound[g] && u.bound[g](B), d && Ir(e, g)), b;
|
|
246
|
+
}) : [], u.update(), d = !0, Xe(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
247
247
|
if (t.hydrate) {
|
|
248
|
-
const g =
|
|
248
|
+
const g = Br(t.target);
|
|
249
249
|
u.fragment && u.fragment.l(g), g.forEach(de);
|
|
250
250
|
} else
|
|
251
251
|
u.fragment && u.fragment.c();
|
|
252
|
-
t.intro &&
|
|
252
|
+
t.intro && Lr(e.$$.fragment), Mr(e, t.target, t.anchor), Q();
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
tt(c);
|
|
255
255
|
}
|
|
256
|
-
let
|
|
257
|
-
typeof HTMLElement == "function" && (
|
|
256
|
+
let Un;
|
|
257
|
+
typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
258
258
|
constructor(t, n, r) {
|
|
259
259
|
super();
|
|
260
260
|
/** The Svelte component constructor */
|
|
@@ -291,21 +291,21 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
connectedCallback() {
|
|
294
|
-
return
|
|
294
|
+
return Pt(this, null, function* () {
|
|
295
295
|
if (this.$$cn = !0, !this.$$c) {
|
|
296
|
-
let t = function(
|
|
296
|
+
let t = function(o) {
|
|
297
297
|
return () => {
|
|
298
298
|
let l;
|
|
299
299
|
return {
|
|
300
300
|
c: function() {
|
|
301
|
-
l =
|
|
301
|
+
l = k("slot"), o !== "default" && M(l, "name", o);
|
|
302
302
|
},
|
|
303
303
|
/**
|
|
304
304
|
* @param {HTMLElement} target
|
|
305
305
|
* @param {HTMLElement} [anchor]
|
|
306
306
|
*/
|
|
307
307
|
m: function(u, d) {
|
|
308
|
-
|
|
308
|
+
be(u, l, d);
|
|
309
309
|
},
|
|
310
310
|
d: function(u) {
|
|
311
311
|
u && de(l);
|
|
@@ -315,18 +315,18 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
|
|
|
315
315
|
};
|
|
316
316
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
317
317
|
return;
|
|
318
|
-
const n = {}, r =
|
|
319
|
-
for (const
|
|
320
|
-
|
|
321
|
-
for (const
|
|
322
|
-
const l = this.$$g_p(
|
|
323
|
-
l in this.$$d || (this.$$d[l] =
|
|
318
|
+
const n = {}, r = Tr(this);
|
|
319
|
+
for (const o of this.$$s)
|
|
320
|
+
o in r && (n[o] = [t(o)]);
|
|
321
|
+
for (const o of this.attributes) {
|
|
322
|
+
const l = this.$$g_p(o.name);
|
|
323
|
+
l in this.$$d || (this.$$d[l] = ft(l, o.value, this.$$p_d, "toProp"));
|
|
324
324
|
}
|
|
325
|
-
for (const
|
|
326
|
-
!(
|
|
325
|
+
for (const o in this.$$p_d)
|
|
326
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
327
327
|
this.$$c = new this.$$ctor({
|
|
328
328
|
target: this.shadowRoot || this,
|
|
329
|
-
props:
|
|
329
|
+
props: It(Nt({}, this.$$d), {
|
|
330
330
|
$$slots: n,
|
|
331
331
|
$$scope: {
|
|
332
332
|
ctx: []
|
|
@@ -335,22 +335,22 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
|
|
|
335
335
|
});
|
|
336
336
|
const i = () => {
|
|
337
337
|
this.$$r = !0;
|
|
338
|
-
for (const
|
|
339
|
-
if (this.$$d[
|
|
340
|
-
const l =
|
|
341
|
-
|
|
342
|
-
this.$$d[
|
|
338
|
+
for (const o in this.$$p_d)
|
|
339
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
340
|
+
const l = ft(
|
|
341
|
+
o,
|
|
342
|
+
this.$$d[o],
|
|
343
343
|
this.$$p_d,
|
|
344
344
|
"toAttribute"
|
|
345
345
|
);
|
|
346
|
-
l == null ? this.removeAttribute(this.$$p_d[
|
|
346
|
+
l == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, l);
|
|
347
347
|
}
|
|
348
348
|
this.$$r = !1;
|
|
349
349
|
};
|
|
350
350
|
this.$$c.$$.after_update.push(i), i();
|
|
351
|
-
for (const
|
|
352
|
-
for (const l of this.$$l[
|
|
353
|
-
const s = this.$$c.$on(
|
|
351
|
+
for (const o in this.$$l)
|
|
352
|
+
for (const l of this.$$l[o]) {
|
|
353
|
+
const s = this.$$c.$on(o, l);
|
|
354
354
|
this.$$l_u.set(l, s);
|
|
355
355
|
}
|
|
356
356
|
this.$$l = {};
|
|
@@ -361,7 +361,7 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
|
|
|
361
361
|
// and setting attributes through setAttribute etc, this is helpful
|
|
362
362
|
attributeChangedCallback(t, n, r) {
|
|
363
363
|
var i;
|
|
364
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
364
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ft(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
365
365
|
}
|
|
366
366
|
disconnectedCallback() {
|
|
367
367
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -374,9 +374,9 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
|
|
|
374
374
|
) || t;
|
|
375
375
|
}
|
|
376
376
|
});
|
|
377
|
-
function
|
|
378
|
-
var
|
|
379
|
-
const i = (
|
|
377
|
+
function ft(e, t, n, r) {
|
|
378
|
+
var o;
|
|
379
|
+
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
380
380
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
381
381
|
return t;
|
|
382
382
|
if (r === "toAttribute")
|
|
@@ -404,8 +404,8 @@ function ht(e, t, n, r) {
|
|
|
404
404
|
return t;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
let l = class extends
|
|
407
|
+
function Dr(e, t, n, r, i, o) {
|
|
408
|
+
let l = class extends Un {
|
|
409
409
|
constructor() {
|
|
410
410
|
super(e, n, i), this.$$p_d = t;
|
|
411
411
|
}
|
|
@@ -422,7 +422,7 @@ function Pr(e, t, n, r, i, a) {
|
|
|
422
422
|
},
|
|
423
423
|
set(c) {
|
|
424
424
|
var u;
|
|
425
|
-
c =
|
|
425
|
+
c = ft(s, c, t), this.$$d[s] = c, (u = this.$$c) == null || u.$set({ [s]: c });
|
|
426
426
|
}
|
|
427
427
|
});
|
|
428
428
|
}), r.forEach((s) => {
|
|
@@ -435,7 +435,7 @@ function Pr(e, t, n, r, i, a) {
|
|
|
435
435
|
}), e.element = /** @type {any} */
|
|
436
436
|
l, l;
|
|
437
437
|
}
|
|
438
|
-
class
|
|
438
|
+
class Ur {
|
|
439
439
|
constructor() {
|
|
440
440
|
/**
|
|
441
441
|
* ### PRIVATE API
|
|
@@ -456,7 +456,7 @@ class Dr {
|
|
|
456
456
|
}
|
|
457
457
|
/** @returns {void} */
|
|
458
458
|
$destroy() {
|
|
459
|
-
|
|
459
|
+
Nr(this, 1), this.$destroy = le;
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -465,7 +465,7 @@ class Dr {
|
|
|
465
465
|
* @returns {() => void}
|
|
466
466
|
*/
|
|
467
467
|
$on(t, n) {
|
|
468
|
-
if (!
|
|
468
|
+
if (!rn(n))
|
|
469
469
|
return le;
|
|
470
470
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
471
471
|
return r.push(n), () => {
|
|
@@ -478,18 +478,18 @@ class Dr {
|
|
|
478
478
|
* @returns {void}
|
|
479
479
|
*/
|
|
480
480
|
$set(t) {
|
|
481
|
-
this.$$set && !
|
|
481
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
const
|
|
485
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
486
|
-
function
|
|
484
|
+
const Fr = "4";
|
|
485
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
|
|
486
|
+
function Gr(e, t) {
|
|
487
487
|
if (e) {
|
|
488
488
|
const n = document.createElement("style");
|
|
489
489
|
n.innerHTML = t, e.appendChild(n);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function $r(e, t) {
|
|
493
493
|
const n = new URL(t);
|
|
494
494
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
495
495
|
const i = document.createElement("style");
|
|
@@ -498,7 +498,7 @@ function Gr(e, t) {
|
|
|
498
498
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function jr(e, t, n) {
|
|
502
502
|
if (window.emMessageBus) {
|
|
503
503
|
const r = document.createElement("style");
|
|
504
504
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -506,44 +506,44 @@ function $r(e, t, n) {
|
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const
|
|
510
|
-
function
|
|
509
|
+
const Ue = [];
|
|
510
|
+
function kr(e, t) {
|
|
511
511
|
return {
|
|
512
|
-
subscribe:
|
|
512
|
+
subscribe: xt(e, t).subscribe
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function xt(e, t = le) {
|
|
516
516
|
let n;
|
|
517
517
|
const r = /* @__PURE__ */ new Set();
|
|
518
518
|
function i(s) {
|
|
519
|
-
if (
|
|
520
|
-
const c = !
|
|
519
|
+
if (In(e, s) && (e = s, n)) {
|
|
520
|
+
const c = !Ue.length;
|
|
521
521
|
for (const u of r)
|
|
522
|
-
u[1](),
|
|
522
|
+
u[1](), Ue.push(u, e);
|
|
523
523
|
if (c) {
|
|
524
|
-
for (let u = 0; u <
|
|
525
|
-
|
|
526
|
-
|
|
524
|
+
for (let u = 0; u < Ue.length; u += 2)
|
|
525
|
+
Ue[u][0](Ue[u + 1]);
|
|
526
|
+
Ue.length = 0;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function o(s) {
|
|
531
531
|
i(s(e));
|
|
532
532
|
}
|
|
533
533
|
function l(s, c = le) {
|
|
534
534
|
const u = [s, c];
|
|
535
|
-
return r.add(u), r.size === 1 && (n = t(i,
|
|
535
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || le), s(e), () => {
|
|
536
536
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
return { set: i, update:
|
|
539
|
+
return { set: i, update: o, subscribe: l };
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function ze(e, t, n) {
|
|
542
542
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
543
543
|
if (!i.every(Boolean))
|
|
544
544
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
545
|
-
const
|
|
546
|
-
return
|
|
545
|
+
const o = t.length < 2;
|
|
546
|
+
return kr(n, (l, s) => {
|
|
547
547
|
let c = !1;
|
|
548
548
|
const u = [];
|
|
549
549
|
let d = 0, g = le;
|
|
@@ -552,9 +552,9 @@ function Xe(e, t, n) {
|
|
|
552
552
|
return;
|
|
553
553
|
g();
|
|
554
554
|
const B = t(r ? u[0] : u, l, s);
|
|
555
|
-
|
|
555
|
+
o ? l(B) : g = rn(B) ? B : le;
|
|
556
556
|
}, _ = i.map(
|
|
557
|
-
(B, T) =>
|
|
557
|
+
(B, T) => Pn(
|
|
558
558
|
B,
|
|
559
559
|
(x) => {
|
|
560
560
|
u[T] = x, d &= ~(1 << T), c && b();
|
|
@@ -565,127 +565,113 @@ function Xe(e, t, n) {
|
|
|
565
565
|
)
|
|
566
566
|
);
|
|
567
567
|
return c = !0, b(), function() {
|
|
568
|
-
|
|
568
|
+
Xe(_), g(), c = !1;
|
|
569
569
|
};
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
|
-
var
|
|
573
|
-
function
|
|
572
|
+
var Vr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
573
|
+
function Xr(e) {
|
|
574
574
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
return
|
|
576
|
+
var zr = function(t) {
|
|
577
|
+
return Wr(t) && !Zr(t);
|
|
578
578
|
};
|
|
579
|
-
function
|
|
579
|
+
function Wr(e) {
|
|
580
580
|
return !!e && typeof e == "object";
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Zr(e) {
|
|
583
583
|
var t = Object.prototype.toString.call(e);
|
|
584
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
585
|
-
}
|
|
586
|
-
var Zr = typeof Symbol == "function" && Symbol.for, qr = Zr ? Symbol.for("react.element") : 60103;
|
|
587
|
-
function Qr(e) {
|
|
588
|
-
return e.$$typeof === qr;
|
|
584
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
|
|
589
585
|
}
|
|
586
|
+
var qr = typeof Symbol == "function" && Symbol.for, Qr = qr ? Symbol.for("react.element") : 60103;
|
|
590
587
|
function Jr(e) {
|
|
588
|
+
return e.$$typeof === Qr;
|
|
589
|
+
}
|
|
590
|
+
function Yr(e) {
|
|
591
591
|
return Array.isArray(e) ? [] : {};
|
|
592
592
|
}
|
|
593
|
-
function
|
|
594
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
593
|
+
function rt(e, t) {
|
|
594
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $e(Yr(e), e, t) : e;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Kr(e, t, n) {
|
|
597
597
|
return e.concat(t).map(function(r) {
|
|
598
|
-
return
|
|
598
|
+
return rt(r, n);
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function ei(e, t) {
|
|
602
602
|
if (!t.customMerge)
|
|
603
|
-
return
|
|
603
|
+
return $e;
|
|
604
604
|
var n = t.customMerge(e);
|
|
605
|
-
return typeof n == "function" ? n :
|
|
605
|
+
return typeof n == "function" ? n : $e;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function ti(e) {
|
|
608
608
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
609
609
|
return Object.propertyIsEnumerable.call(e, t);
|
|
610
610
|
}) : [];
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
return Object.keys(e).concat(
|
|
612
|
+
function dn(e) {
|
|
613
|
+
return Object.keys(e).concat(ti(e));
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Fn(e, t) {
|
|
616
616
|
try {
|
|
617
617
|
return t in e;
|
|
618
618
|
} catch (n) {
|
|
619
619
|
return !1;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return
|
|
622
|
+
function ni(e, t) {
|
|
623
|
+
return Fn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function ri(e, t, n) {
|
|
626
626
|
var r = {};
|
|
627
|
-
return n.isMergeableObject(e) &&
|
|
628
|
-
r[i] =
|
|
629
|
-
}),
|
|
630
|
-
|
|
627
|
+
return n.isMergeableObject(e) && dn(e).forEach(function(i) {
|
|
628
|
+
r[i] = rt(e[i], n);
|
|
629
|
+
}), dn(t).forEach(function(i) {
|
|
630
|
+
ni(e, i) || (Fn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ei(i, n)(e[i], t[i], n) : r[i] = rt(t[i], n));
|
|
631
631
|
}), r;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
635
|
-
var r = Array.isArray(t), i = Array.isArray(e),
|
|
636
|
-
return
|
|
633
|
+
function $e(e, t, n) {
|
|
634
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Kr, n.isMergeableObject = n.isMergeableObject || zr, n.cloneUnlessOtherwiseSpecified = rt;
|
|
635
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
636
|
+
return o ? r ? n.arrayMerge(e, t, n) : ri(e, t, n) : rt(t, n);
|
|
637
637
|
}
|
|
638
|
-
|
|
638
|
+
$e.all = function(t, n) {
|
|
639
639
|
if (!Array.isArray(t))
|
|
640
640
|
throw new Error("first argument should be an array");
|
|
641
641
|
return t.reduce(function(r, i) {
|
|
642
|
-
return
|
|
642
|
+
return $e(r, i, n);
|
|
643
643
|
}, {});
|
|
644
644
|
};
|
|
645
|
-
var
|
|
646
|
-
const ai = /* @__PURE__ */
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
651
|
-
purpose with or without fee is hereby granted.
|
|
652
|
-
|
|
653
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
654
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
655
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
656
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
657
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
658
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
659
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
660
|
-
***************************************************************************** */
|
|
661
|
-
var Xt = function(e, t) {
|
|
662
|
-
return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
645
|
+
var ii = $e, oi = ii;
|
|
646
|
+
const ai = /* @__PURE__ */ Xr(oi);
|
|
647
|
+
var Wt = function(e, t) {
|
|
648
|
+
return Wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
663
649
|
n.__proto__ = r;
|
|
664
650
|
} || function(n, r) {
|
|
665
651
|
for (var i in r)
|
|
666
652
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
667
|
-
},
|
|
653
|
+
}, Wt(e, t);
|
|
668
654
|
};
|
|
669
|
-
function
|
|
655
|
+
function _t(e, t) {
|
|
670
656
|
if (typeof t != "function" && t !== null)
|
|
671
657
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
672
|
-
|
|
658
|
+
Wt(e, t);
|
|
673
659
|
function n() {
|
|
674
660
|
this.constructor = e;
|
|
675
661
|
}
|
|
676
662
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
677
663
|
}
|
|
678
|
-
var
|
|
679
|
-
return
|
|
664
|
+
var ge = function() {
|
|
665
|
+
return ge = Object.assign || function(t) {
|
|
680
666
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
681
667
|
n = arguments[r];
|
|
682
|
-
for (var
|
|
683
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
668
|
+
for (var o in n)
|
|
669
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
684
670
|
}
|
|
685
671
|
return t;
|
|
686
|
-
},
|
|
672
|
+
}, ge.apply(this, arguments);
|
|
687
673
|
};
|
|
688
|
-
function
|
|
674
|
+
function si(e, t) {
|
|
689
675
|
var n = {};
|
|
690
676
|
for (var r in e)
|
|
691
677
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -694,46 +680,43 @@ function oi(e, t) {
|
|
|
694
680
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
695
681
|
return n;
|
|
696
682
|
}
|
|
697
|
-
function
|
|
698
|
-
if (arguments.length === 2)
|
|
699
|
-
for (var r = 0, i = t.length,
|
|
700
|
-
(
|
|
701
|
-
return e.concat(
|
|
683
|
+
function Ut(e, t, n) {
|
|
684
|
+
if (n || arguments.length === 2)
|
|
685
|
+
for (var r = 0, i = t.length, o; r < i; r++)
|
|
686
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
687
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
702
688
|
}
|
|
703
|
-
function
|
|
704
|
-
var n = t && t.cache ? t.cache :
|
|
689
|
+
function Ft(e, t) {
|
|
690
|
+
var n = t && t.cache ? t.cache : pi, r = t && t.serializer ? t.serializer : fi, i = t && t.strategy ? t.strategy : ci;
|
|
705
691
|
return i(e, {
|
|
706
692
|
cache: n,
|
|
707
693
|
serializer: r
|
|
708
694
|
});
|
|
709
695
|
}
|
|
710
|
-
function
|
|
696
|
+
function li(e) {
|
|
711
697
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
712
698
|
}
|
|
713
|
-
function
|
|
714
|
-
var i =
|
|
715
|
-
return typeof
|
|
699
|
+
function ui(e, t, n, r) {
|
|
700
|
+
var i = li(r) ? r : n(r), o = t.get(i);
|
|
701
|
+
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
716
702
|
}
|
|
717
703
|
function Gn(e, t, n) {
|
|
718
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r),
|
|
719
|
-
return typeof
|
|
704
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
705
|
+
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
720
706
|
}
|
|
721
|
-
function
|
|
707
|
+
function $n(e, t, n, r, i) {
|
|
722
708
|
return n.bind(t, e, r, i);
|
|
723
709
|
}
|
|
724
|
-
function li(e, t) {
|
|
725
|
-
var n = e.length === 1 ? Fn : Gn;
|
|
726
|
-
return nn(e, this, n, t.cache.create(), t.serializer);
|
|
727
|
-
}
|
|
728
|
-
function ui(e, t) {
|
|
729
|
-
return nn(e, this, Gn, t.cache.create(), t.serializer);
|
|
730
|
-
}
|
|
731
710
|
function ci(e, t) {
|
|
732
|
-
|
|
711
|
+
var n = e.length === 1 ? ui : Gn;
|
|
712
|
+
return $n(e, this, n, t.cache.create(), t.serializer);
|
|
713
|
+
}
|
|
714
|
+
function hi(e, t) {
|
|
715
|
+
return $n(e, this, Gn, t.cache.create(), t.serializer);
|
|
733
716
|
}
|
|
734
|
-
var
|
|
717
|
+
var fi = function() {
|
|
735
718
|
return JSON.stringify(arguments);
|
|
736
|
-
},
|
|
719
|
+
}, di = (
|
|
737
720
|
/** @class */
|
|
738
721
|
function() {
|
|
739
722
|
function e() {
|
|
@@ -745,62 +728,71 @@ var hi = function() {
|
|
|
745
728
|
this.cache[t] = n;
|
|
746
729
|
}, e;
|
|
747
730
|
}()
|
|
748
|
-
),
|
|
731
|
+
), pi = {
|
|
749
732
|
create: function() {
|
|
750
|
-
return new
|
|
733
|
+
return new di();
|
|
751
734
|
}
|
|
752
|
-
},
|
|
753
|
-
variadic:
|
|
754
|
-
|
|
755
|
-
|
|
735
|
+
}, Gt = {
|
|
736
|
+
variadic: hi
|
|
737
|
+
}, yt = function() {
|
|
738
|
+
return yt = Object.assign || function(t) {
|
|
739
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
740
|
+
n = arguments[r];
|
|
741
|
+
for (var o in n)
|
|
742
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
743
|
+
}
|
|
744
|
+
return t;
|
|
745
|
+
}, yt.apply(this, arguments);
|
|
746
|
+
};
|
|
747
|
+
var O;
|
|
756
748
|
(function(e) {
|
|
757
749
|
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";
|
|
758
750
|
})(O || (O = {}));
|
|
759
|
-
var
|
|
751
|
+
var j;
|
|
760
752
|
(function(e) {
|
|
761
753
|
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";
|
|
762
|
-
})(
|
|
763
|
-
var
|
|
754
|
+
})(j || (j = {}));
|
|
755
|
+
var je;
|
|
764
756
|
(function(e) {
|
|
765
757
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
766
|
-
})(
|
|
767
|
-
function
|
|
768
|
-
return e.type ===
|
|
769
|
-
}
|
|
770
|
-
function pi(e) {
|
|
771
|
-
return e.type === k.argument;
|
|
758
|
+
})(je || (je = {}));
|
|
759
|
+
function pn(e) {
|
|
760
|
+
return e.type === j.literal;
|
|
772
761
|
}
|
|
773
|
-
function
|
|
774
|
-
return e.type ===
|
|
762
|
+
function mi(e) {
|
|
763
|
+
return e.type === j.argument;
|
|
775
764
|
}
|
|
776
765
|
function jn(e) {
|
|
777
|
-
return e.type ===
|
|
766
|
+
return e.type === j.number;
|
|
778
767
|
}
|
|
779
768
|
function kn(e) {
|
|
780
|
-
return e.type ===
|
|
769
|
+
return e.type === j.date;
|
|
781
770
|
}
|
|
782
771
|
function Vn(e) {
|
|
783
|
-
return e.type ===
|
|
772
|
+
return e.type === j.time;
|
|
784
773
|
}
|
|
785
774
|
function Xn(e) {
|
|
786
|
-
return e.type ===
|
|
787
|
-
}
|
|
788
|
-
function mi(e) {
|
|
789
|
-
return e.type === k.pound;
|
|
775
|
+
return e.type === j.select;
|
|
790
776
|
}
|
|
791
777
|
function zn(e) {
|
|
792
|
-
return e.type ===
|
|
778
|
+
return e.type === j.plural;
|
|
779
|
+
}
|
|
780
|
+
function gi(e) {
|
|
781
|
+
return e.type === j.pound;
|
|
793
782
|
}
|
|
794
783
|
function Wn(e) {
|
|
795
|
-
return
|
|
784
|
+
return e.type === j.tag;
|
|
796
785
|
}
|
|
797
|
-
function
|
|
798
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
786
|
+
function Zn(e) {
|
|
787
|
+
return !!(e && typeof e == "object" && e.type === je.number);
|
|
788
|
+
}
|
|
789
|
+
function Zt(e) {
|
|
790
|
+
return !!(e && typeof e == "object" && e.type === je.dateTime);
|
|
799
791
|
}
|
|
800
|
-
var
|
|
801
|
-
function
|
|
792
|
+
var qn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bi = /(?:[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;
|
|
793
|
+
function yi(e) {
|
|
802
794
|
var t = {};
|
|
803
|
-
return e.replace(
|
|
795
|
+
return e.replace(bi, function(n) {
|
|
804
796
|
var r = n.length;
|
|
805
797
|
switch (n[0]) {
|
|
806
798
|
case "G":
|
|
@@ -889,14 +881,24 @@ function bi(e) {
|
|
|
889
881
|
return "";
|
|
890
882
|
}), t;
|
|
891
883
|
}
|
|
892
|
-
var
|
|
893
|
-
function
|
|
884
|
+
var X = function() {
|
|
885
|
+
return X = Object.assign || function(t) {
|
|
886
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
887
|
+
n = arguments[r];
|
|
888
|
+
for (var o in n)
|
|
889
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
890
|
+
}
|
|
891
|
+
return t;
|
|
892
|
+
}, X.apply(this, arguments);
|
|
893
|
+
};
|
|
894
|
+
var vi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
895
|
+
function Ei(e) {
|
|
894
896
|
if (e.length === 0)
|
|
895
897
|
throw new Error("Number skeleton cannot be empty");
|
|
896
|
-
for (var t = e.split(
|
|
898
|
+
for (var t = e.split(vi).filter(function(b) {
|
|
897
899
|
return b.length > 0;
|
|
898
900
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
899
|
-
var
|
|
901
|
+
var o = i[r], l = o.split("/");
|
|
900
902
|
if (l.length === 0)
|
|
901
903
|
throw new Error("Invalid number skeleton");
|
|
902
904
|
for (var s = l[0], c = l.slice(1), u = 0, d = c; u < d.length; u++) {
|
|
@@ -908,17 +910,17 @@ function vi(e) {
|
|
|
908
910
|
}
|
|
909
911
|
return n;
|
|
910
912
|
}
|
|
911
|
-
function
|
|
913
|
+
function xi(e) {
|
|
912
914
|
return e.replace(/^(.*?)-/, "");
|
|
913
915
|
}
|
|
914
|
-
var
|
|
915
|
-
function
|
|
916
|
+
var mn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qn = /^(@+)?(\+|#+)?[rs]?$/g, _i = /(\*)(0+)|(#+)(0+)|(0+)/g, Jn = /^(0+)$/;
|
|
917
|
+
function gn(e) {
|
|
916
918
|
var t = {};
|
|
917
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
919
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qn, function(n, r, i) {
|
|
918
920
|
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)), "";
|
|
919
921
|
}), t;
|
|
920
922
|
}
|
|
921
|
-
function
|
|
923
|
+
function Yn(e) {
|
|
922
924
|
switch (e) {
|
|
923
925
|
case "sign-auto":
|
|
924
926
|
return {
|
|
@@ -958,7 +960,7 @@ function Jn(e) {
|
|
|
958
960
|
};
|
|
959
961
|
}
|
|
960
962
|
}
|
|
961
|
-
function
|
|
963
|
+
function Bi(e) {
|
|
962
964
|
var t;
|
|
963
965
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
964
966
|
notation: "engineering"
|
|
@@ -966,17 +968,17 @@ function _i(e) {
|
|
|
966
968
|
notation: "scientific"
|
|
967
969
|
}, e = e.slice(1)), t) {
|
|
968
970
|
var n = e.slice(0, 2);
|
|
969
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
971
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jn.test(e))
|
|
970
972
|
throw new Error("Malformed concise eng/scientific notation");
|
|
971
973
|
t.minimumIntegerDigits = e.length;
|
|
972
974
|
}
|
|
973
975
|
return t;
|
|
974
976
|
}
|
|
975
|
-
function
|
|
976
|
-
var t = {}, n =
|
|
977
|
+
function bn(e) {
|
|
978
|
+
var t = {}, n = Yn(e);
|
|
977
979
|
return n || t;
|
|
978
980
|
}
|
|
979
|
-
function
|
|
981
|
+
function Ti(e) {
|
|
980
982
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
981
983
|
var i = r[n];
|
|
982
984
|
switch (i.stem) {
|
|
@@ -1000,7 +1002,7 @@ function Bi(e) {
|
|
|
1000
1002
|
continue;
|
|
1001
1003
|
case "measure-unit":
|
|
1002
1004
|
case "unit":
|
|
1003
|
-
t.style = "unit", t.unit =
|
|
1005
|
+
t.style = "unit", t.unit = xi(i.options[0]);
|
|
1004
1006
|
continue;
|
|
1005
1007
|
case "compact-short":
|
|
1006
1008
|
case "K":
|
|
@@ -1011,13 +1013,13 @@ function Bi(e) {
|
|
|
1011
1013
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1012
1014
|
continue;
|
|
1013
1015
|
case "scientific":
|
|
1014
|
-
t =
|
|
1015
|
-
return
|
|
1016
|
+
t = X(X(X({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
1017
|
+
return X(X({}, c), bn(u));
|
|
1016
1018
|
}, {}));
|
|
1017
1019
|
continue;
|
|
1018
1020
|
case "engineering":
|
|
1019
|
-
t =
|
|
1020
|
-
return
|
|
1021
|
+
t = X(X(X({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
1022
|
+
return X(X({}, c), bn(u));
|
|
1021
1023
|
}, {}));
|
|
1022
1024
|
continue;
|
|
1023
1025
|
case "notation-simple":
|
|
@@ -1062,7 +1064,7 @@ function Bi(e) {
|
|
|
1062
1064
|
case "integer-width":
|
|
1063
1065
|
if (i.options.length > 1)
|
|
1064
1066
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1065
|
-
i.options[0].replace(
|
|
1067
|
+
i.options[0].replace(_i, function(c, u, d, g, b, _) {
|
|
1066
1068
|
if (u)
|
|
1067
1069
|
t.minimumIntegerDigits = d.length;
|
|
1068
1070
|
else {
|
|
@@ -1075,32 +1077,32 @@ function Bi(e) {
|
|
|
1075
1077
|
});
|
|
1076
1078
|
continue;
|
|
1077
1079
|
}
|
|
1078
|
-
if (
|
|
1080
|
+
if (Jn.test(i.stem)) {
|
|
1079
1081
|
t.minimumIntegerDigits = i.stem.length;
|
|
1080
1082
|
continue;
|
|
1081
1083
|
}
|
|
1082
|
-
if (
|
|
1084
|
+
if (mn.test(i.stem)) {
|
|
1083
1085
|
if (i.options.length > 1)
|
|
1084
1086
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1085
|
-
i.stem.replace(
|
|
1087
|
+
i.stem.replace(mn, function(c, u, d, g, b, _) {
|
|
1086
1088
|
return d === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1087
1089
|
});
|
|
1088
|
-
var
|
|
1089
|
-
|
|
1090
|
+
var o = i.options[0];
|
|
1091
|
+
o === "w" ? t = X(X({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = X(X({}, t), gn(o)));
|
|
1090
1092
|
continue;
|
|
1091
1093
|
}
|
|
1092
|
-
if (
|
|
1093
|
-
t =
|
|
1094
|
+
if (Qn.test(i.stem)) {
|
|
1095
|
+
t = X(X({}, t), gn(i.stem));
|
|
1094
1096
|
continue;
|
|
1095
1097
|
}
|
|
1096
|
-
var l =
|
|
1097
|
-
l && (t =
|
|
1098
|
-
var s =
|
|
1099
|
-
s && (t =
|
|
1098
|
+
var l = Yn(i.stem);
|
|
1099
|
+
l && (t = X(X({}, t), l));
|
|
1100
|
+
var s = Bi(i.stem);
|
|
1101
|
+
s && (t = X(X({}, t), s));
|
|
1100
1102
|
}
|
|
1101
1103
|
return t;
|
|
1102
1104
|
}
|
|
1103
|
-
var
|
|
1105
|
+
var ht = {
|
|
1104
1106
|
"001": [
|
|
1105
1107
|
"H",
|
|
1106
1108
|
"h"
|
|
@@ -2515,13 +2517,13 @@ var ct = {
|
|
|
2515
2517
|
"h"
|
|
2516
2518
|
]
|
|
2517
2519
|
};
|
|
2518
|
-
function
|
|
2520
|
+
function wi(e, t) {
|
|
2519
2521
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2520
2522
|
var i = e.charAt(r);
|
|
2521
2523
|
if (i === "j") {
|
|
2522
|
-
for (var
|
|
2523
|
-
|
|
2524
|
-
var l = 1 + (
|
|
2524
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2525
|
+
o++, r++;
|
|
2526
|
+
var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = Si(t);
|
|
2525
2527
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2526
2528
|
n += c;
|
|
2527
2529
|
for (; l-- > 0; )
|
|
@@ -2531,7 +2533,7 @@ function Ti(e, t) {
|
|
|
2531
2533
|
}
|
|
2532
2534
|
return n;
|
|
2533
2535
|
}
|
|
2534
|
-
function
|
|
2536
|
+
function Si(e) {
|
|
2535
2537
|
var t = e.hourCycle;
|
|
2536
2538
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2537
2539
|
e.hourCycles && // @ts-ignore
|
|
@@ -2550,23 +2552,23 @@ function wi(e) {
|
|
|
2550
2552
|
}
|
|
2551
2553
|
var n = e.language, r;
|
|
2552
2554
|
n !== "root" && (r = e.maximize().region);
|
|
2553
|
-
var i =
|
|
2555
|
+
var i = ht[r || ""] || ht[n || ""] || ht["".concat(n, "-001")] || ht["001"];
|
|
2554
2556
|
return i[0];
|
|
2555
2557
|
}
|
|
2556
|
-
var
|
|
2558
|
+
var $t, Ai = new RegExp("^".concat(qn.source, "*")), Ci = new RegExp("".concat(qn.source, "*$"));
|
|
2557
2559
|
function L(e, t) {
|
|
2558
2560
|
return { start: e, end: t };
|
|
2559
2561
|
}
|
|
2560
|
-
var
|
|
2562
|
+
var Hi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Oi = !!String.fromCodePoint, Ri = !!Object.fromEntries, Li = !!String.prototype.codePointAt, Mi = !!String.prototype.trimStart, Ni = !!String.prototype.trimEnd, Ii = !!Number.isSafeInteger, Pi = Ii ? Number.isSafeInteger : function(e) {
|
|
2561
2563
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2562
|
-
},
|
|
2564
|
+
}, qt = !0;
|
|
2563
2565
|
try {
|
|
2564
|
-
var
|
|
2565
|
-
|
|
2566
|
+
var Di = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2567
|
+
qt = (($t = Di.exec("a")) === null || $t === void 0 ? void 0 : $t[0]) === "a";
|
|
2566
2568
|
} catch (e) {
|
|
2567
|
-
|
|
2569
|
+
qt = !1;
|
|
2568
2570
|
}
|
|
2569
|
-
var
|
|
2571
|
+
var yn = Hi ? (
|
|
2570
2572
|
// Native
|
|
2571
2573
|
function(t, n, r) {
|
|
2572
2574
|
return t.startsWith(n, r);
|
|
@@ -2576,31 +2578,31 @@ var bn = Ci ? (
|
|
|
2576
2578
|
function(t, n, r) {
|
|
2577
2579
|
return t.slice(r, r + n.length) === n;
|
|
2578
2580
|
}
|
|
2579
|
-
),
|
|
2581
|
+
), Qt = Oi ? String.fromCodePoint : (
|
|
2580
2582
|
// IE11
|
|
2581
2583
|
function() {
|
|
2582
2584
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2583
2585
|
t[n] = arguments[n];
|
|
2584
|
-
for (var r = "", i = t.length,
|
|
2585
|
-
if (l = t[
|
|
2586
|
+
for (var r = "", i = t.length, o = 0, l; i > o; ) {
|
|
2587
|
+
if (l = t[o++], l > 1114111)
|
|
2586
2588
|
throw RangeError(l + " is not a valid code point");
|
|
2587
2589
|
r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
|
|
2588
2590
|
}
|
|
2589
2591
|
return r;
|
|
2590
2592
|
}
|
|
2591
|
-
),
|
|
2593
|
+
), vn = (
|
|
2592
2594
|
// native
|
|
2593
|
-
|
|
2595
|
+
Ri ? Object.fromEntries : (
|
|
2594
2596
|
// Ponyfill
|
|
2595
2597
|
function(t) {
|
|
2596
2598
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2597
|
-
var
|
|
2599
|
+
var o = i[r], l = o[0], s = o[1];
|
|
2598
2600
|
n[l] = s;
|
|
2599
2601
|
}
|
|
2600
2602
|
return n;
|
|
2601
2603
|
}
|
|
2602
2604
|
)
|
|
2603
|
-
),
|
|
2605
|
+
), Kn = Li ? (
|
|
2604
2606
|
// Native
|
|
2605
2607
|
function(t, n) {
|
|
2606
2608
|
return t.codePointAt(n);
|
|
@@ -2610,11 +2612,11 @@ var bn = Ci ? (
|
|
|
2610
2612
|
function(t, n) {
|
|
2611
2613
|
var r = t.length;
|
|
2612
2614
|
if (!(n < 0 || n >= r)) {
|
|
2613
|
-
var i = t.charCodeAt(n),
|
|
2614
|
-
return i < 55296 || i > 56319 || n + 1 === r || (
|
|
2615
|
+
var i = t.charCodeAt(n), o;
|
|
2616
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2615
2617
|
}
|
|
2616
2618
|
}
|
|
2617
|
-
),
|
|
2619
|
+
), Ui = Mi ? (
|
|
2618
2620
|
// Native
|
|
2619
2621
|
function(t) {
|
|
2620
2622
|
return t.trimStart();
|
|
@@ -2622,9 +2624,9 @@ var bn = Ci ? (
|
|
|
2622
2624
|
) : (
|
|
2623
2625
|
// Ponyfill
|
|
2624
2626
|
function(t) {
|
|
2625
|
-
return t.replace(
|
|
2627
|
+
return t.replace(Ai, "");
|
|
2626
2628
|
}
|
|
2627
|
-
),
|
|
2629
|
+
), Fi = Ni ? (
|
|
2628
2630
|
// Native
|
|
2629
2631
|
function(t) {
|
|
2630
2632
|
return t.trimEnd();
|
|
@@ -2632,32 +2634,32 @@ var bn = Ci ? (
|
|
|
2632
2634
|
) : (
|
|
2633
2635
|
// Ponyfill
|
|
2634
2636
|
function(t) {
|
|
2635
|
-
return t.replace(
|
|
2637
|
+
return t.replace(Ci, "");
|
|
2636
2638
|
}
|
|
2637
2639
|
);
|
|
2638
|
-
function
|
|
2640
|
+
function er(e, t) {
|
|
2639
2641
|
return new RegExp(e, t);
|
|
2640
2642
|
}
|
|
2641
|
-
var
|
|
2642
|
-
if (
|
|
2643
|
-
var
|
|
2644
|
-
|
|
2643
|
+
var Jt;
|
|
2644
|
+
if (qt) {
|
|
2645
|
+
var En = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2646
|
+
Jt = function(t, n) {
|
|
2645
2647
|
var r;
|
|
2646
|
-
|
|
2647
|
-
var i =
|
|
2648
|
+
En.lastIndex = n;
|
|
2649
|
+
var i = En.exec(t);
|
|
2648
2650
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2649
2651
|
};
|
|
2650
2652
|
} else
|
|
2651
|
-
|
|
2653
|
+
Jt = function(t, n) {
|
|
2652
2654
|
for (var r = []; ; ) {
|
|
2653
|
-
var i =
|
|
2654
|
-
if (i === void 0 ||
|
|
2655
|
+
var i = Kn(t, n);
|
|
2656
|
+
if (i === void 0 || tr(i) || ki(i))
|
|
2655
2657
|
break;
|
|
2656
2658
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2657
2659
|
}
|
|
2658
|
-
return
|
|
2660
|
+
return Qt.apply(void 0, r);
|
|
2659
2661
|
};
|
|
2660
|
-
var
|
|
2662
|
+
var Gi = (
|
|
2661
2663
|
/** @class */
|
|
2662
2664
|
function() {
|
|
2663
2665
|
function e(t, n) {
|
|
@@ -2669,26 +2671,26 @@ var Fi = (
|
|
|
2669
2671
|
return this.parseMessage(0, "", !1);
|
|
2670
2672
|
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2671
2673
|
for (var i = []; !this.isEOF(); ) {
|
|
2672
|
-
var
|
|
2673
|
-
if (
|
|
2674
|
+
var o = this.char();
|
|
2675
|
+
if (o === 123) {
|
|
2674
2676
|
var l = this.parseArgument(t, r);
|
|
2675
2677
|
if (l.err)
|
|
2676
2678
|
return l;
|
|
2677
2679
|
i.push(l.val);
|
|
2678
2680
|
} else {
|
|
2679
|
-
if (
|
|
2681
|
+
if (o === 125 && t > 0)
|
|
2680
2682
|
break;
|
|
2681
|
-
if (
|
|
2683
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2682
2684
|
var s = this.clonePosition();
|
|
2683
2685
|
this.bump(), i.push({
|
|
2684
|
-
type:
|
|
2686
|
+
type: j.pound,
|
|
2685
2687
|
location: L(s, this.clonePosition())
|
|
2686
2688
|
});
|
|
2687
|
-
} else if (
|
|
2689
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2688
2690
|
if (r)
|
|
2689
2691
|
break;
|
|
2690
2692
|
return this.error(O.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
|
|
2691
|
-
} else if (
|
|
2693
|
+
} else if (o === 60 && !this.ignoreTag && Yt(this.peek() || 0)) {
|
|
2692
2694
|
var l = this.parseTag(t, n);
|
|
2693
2695
|
if (l.err)
|
|
2694
2696
|
return l;
|
|
@@ -2709,24 +2711,24 @@ var Fi = (
|
|
|
2709
2711
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2710
2712
|
return {
|
|
2711
2713
|
val: {
|
|
2712
|
-
type:
|
|
2714
|
+
type: j.literal,
|
|
2713
2715
|
value: "<".concat(i, "/>"),
|
|
2714
2716
|
location: L(r, this.clonePosition())
|
|
2715
2717
|
},
|
|
2716
2718
|
err: null
|
|
2717
2719
|
};
|
|
2718
2720
|
if (this.bumpIf(">")) {
|
|
2719
|
-
var
|
|
2720
|
-
if (
|
|
2721
|
-
return
|
|
2722
|
-
var l =
|
|
2721
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
2722
|
+
if (o.err)
|
|
2723
|
+
return o;
|
|
2724
|
+
var l = o.val, s = this.clonePosition();
|
|
2723
2725
|
if (this.bumpIf("</")) {
|
|
2724
|
-
if (this.isEOF() || !
|
|
2726
|
+
if (this.isEOF() || !Yt(this.char()))
|
|
2725
2727
|
return this.error(O.INVALID_TAG, L(s, this.clonePosition()));
|
|
2726
2728
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2727
2729
|
return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, L(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2728
2730
|
val: {
|
|
2729
|
-
type:
|
|
2731
|
+
type: j.tag,
|
|
2730
2732
|
value: i,
|
|
2731
2733
|
children: l,
|
|
2732
2734
|
location: L(r, this.clonePosition())
|
|
@@ -2739,14 +2741,14 @@ var Fi = (
|
|
|
2739
2741
|
return this.error(O.INVALID_TAG, L(r, this.clonePosition()));
|
|
2740
2742
|
}, e.prototype.parseTagName = function() {
|
|
2741
2743
|
var t = this.offset();
|
|
2742
|
-
for (this.bump(); !this.isEOF() &&
|
|
2744
|
+
for (this.bump(); !this.isEOF() && ji(this.char()); )
|
|
2743
2745
|
this.bump();
|
|
2744
2746
|
return this.message.slice(t, this.offset());
|
|
2745
2747
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
2746
2748
|
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2747
|
-
var
|
|
2748
|
-
if (
|
|
2749
|
-
i +=
|
|
2749
|
+
var o = this.tryParseQuote(n);
|
|
2750
|
+
if (o) {
|
|
2751
|
+
i += o;
|
|
2750
2752
|
continue;
|
|
2751
2753
|
}
|
|
2752
2754
|
var l = this.tryParseUnquoted(t, n);
|
|
@@ -2763,12 +2765,12 @@ var Fi = (
|
|
|
2763
2765
|
}
|
|
2764
2766
|
var c = L(r, this.clonePosition());
|
|
2765
2767
|
return {
|
|
2766
|
-
val: { type:
|
|
2768
|
+
val: { type: j.literal, value: i, location: c },
|
|
2767
2769
|
err: null
|
|
2768
2770
|
};
|
|
2769
2771
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2770
2772
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2771
|
-
|
|
2773
|
+
!$i(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2772
2774
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2773
2775
|
if (this.isEOF() || this.char() !== 39)
|
|
2774
2776
|
return null;
|
|
@@ -2802,12 +2804,12 @@ var Fi = (
|
|
|
2802
2804
|
n.push(r);
|
|
2803
2805
|
this.bump();
|
|
2804
2806
|
}
|
|
2805
|
-
return
|
|
2807
|
+
return Qt.apply(void 0, n);
|
|
2806
2808
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2807
2809
|
if (this.isEOF())
|
|
2808
2810
|
return null;
|
|
2809
2811
|
var r = this.char();
|
|
2810
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2812
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Qt(r));
|
|
2811
2813
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2812
2814
|
var r = this.clonePosition();
|
|
2813
2815
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2823,7 +2825,7 @@ var Fi = (
|
|
|
2823
2825
|
case 125:
|
|
2824
2826
|
return this.bump(), {
|
|
2825
2827
|
val: {
|
|
2826
|
-
type:
|
|
2828
|
+
type: j.argument,
|
|
2827
2829
|
// value does not include the opening and closing braces.
|
|
2828
2830
|
value: i,
|
|
2829
2831
|
location: L(r, this.clonePosition())
|
|
@@ -2836,12 +2838,12 @@ var Fi = (
|
|
|
2836
2838
|
return this.error(O.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2837
2839
|
}
|
|
2838
2840
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2839
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2841
|
+
var t = this.clonePosition(), n = this.offset(), r = Jt(this.message, n), i = n + r.length;
|
|
2840
2842
|
this.bumpTo(i);
|
|
2841
|
-
var
|
|
2843
|
+
var o = this.clonePosition(), l = L(t, o);
|
|
2842
2844
|
return { value: r, location: l };
|
|
2843
2845
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2844
|
-
var
|
|
2846
|
+
var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2845
2847
|
switch (s) {
|
|
2846
2848
|
case "":
|
|
2847
2849
|
return this.error(O.EXPECT_ARGUMENT_TYPE, L(l, c));
|
|
@@ -2855,7 +2857,7 @@ var Fi = (
|
|
|
2855
2857
|
var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
|
|
2856
2858
|
if (g.err)
|
|
2857
2859
|
return g;
|
|
2858
|
-
var b =
|
|
2860
|
+
var b = Fi(g.val);
|
|
2859
2861
|
if (b.length === 0)
|
|
2860
2862
|
return this.error(O.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2861
2863
|
var _ = L(d, this.clonePosition());
|
|
@@ -2865,37 +2867,37 @@ var Fi = (
|
|
|
2865
2867
|
if (B.err)
|
|
2866
2868
|
return B;
|
|
2867
2869
|
var T = L(i, this.clonePosition());
|
|
2868
|
-
if (u &&
|
|
2869
|
-
var x =
|
|
2870
|
+
if (u && yn(u == null ? void 0 : u.style, "::", 0)) {
|
|
2871
|
+
var x = Ui(u.style.slice(2));
|
|
2870
2872
|
if (s === "number") {
|
|
2871
2873
|
var g = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
2872
2874
|
return g.err ? g : {
|
|
2873
|
-
val: { type:
|
|
2875
|
+
val: { type: j.number, value: r, location: T, style: g.val },
|
|
2874
2876
|
err: null
|
|
2875
2877
|
};
|
|
2876
2878
|
} else {
|
|
2877
2879
|
if (x.length === 0)
|
|
2878
2880
|
return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
|
|
2879
2881
|
var S = x;
|
|
2880
|
-
this.locale && (S =
|
|
2882
|
+
this.locale && (S = wi(x, this.locale));
|
|
2881
2883
|
var b = {
|
|
2882
|
-
type:
|
|
2884
|
+
type: je.dateTime,
|
|
2883
2885
|
pattern: S,
|
|
2884
2886
|
location: u.styleLocation,
|
|
2885
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2886
|
-
},
|
|
2887
|
+
parsedOptions: this.shouldParseSkeletons ? yi(S) : {}
|
|
2888
|
+
}, P = s === "date" ? j.date : j.time;
|
|
2887
2889
|
return {
|
|
2888
|
-
val: { type:
|
|
2890
|
+
val: { type: P, value: r, location: T, style: b },
|
|
2889
2891
|
err: null
|
|
2890
2892
|
};
|
|
2891
2893
|
}
|
|
2892
2894
|
}
|
|
2893
2895
|
return {
|
|
2894
2896
|
val: {
|
|
2895
|
-
type: s === "number" ?
|
|
2897
|
+
type: s === "number" ? j.number : s === "date" ? j.date : j.time,
|
|
2896
2898
|
value: r,
|
|
2897
2899
|
location: T,
|
|
2898
|
-
style: (
|
|
2900
|
+
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2899
2901
|
},
|
|
2900
2902
|
err: null
|
|
2901
2903
|
};
|
|
@@ -2905,19 +2907,19 @@ var Fi = (
|
|
|
2905
2907
|
case "select": {
|
|
2906
2908
|
var C = this.clonePosition();
|
|
2907
2909
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2908
|
-
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, L(C,
|
|
2910
|
+
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, L(C, yt({}, C)));
|
|
2909
2911
|
this.bumpSpace();
|
|
2910
|
-
var
|
|
2911
|
-
if (s !== "select" &&
|
|
2912
|
+
var D = this.parseIdentifierIfPossible(), W = 0;
|
|
2913
|
+
if (s !== "select" && D.value === "offset") {
|
|
2912
2914
|
if (!this.bumpIf(":"))
|
|
2913
2915
|
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
|
|
2914
2916
|
this.bumpSpace();
|
|
2915
2917
|
var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2916
2918
|
if (g.err)
|
|
2917
2919
|
return g;
|
|
2918
|
-
this.bumpSpace(),
|
|
2920
|
+
this.bumpSpace(), D = this.parseIdentifierIfPossible(), W = g.val;
|
|
2919
2921
|
}
|
|
2920
|
-
var J = this.tryParsePluralOrSelectOptions(t, s, n,
|
|
2922
|
+
var J = this.tryParsePluralOrSelectOptions(t, s, n, D);
|
|
2921
2923
|
if (J.err)
|
|
2922
2924
|
return J;
|
|
2923
2925
|
var B = this.tryParseArgumentClose(i);
|
|
@@ -2926,17 +2928,17 @@ var Fi = (
|
|
|
2926
2928
|
var Y = L(i, this.clonePosition());
|
|
2927
2929
|
return s === "select" ? {
|
|
2928
2930
|
val: {
|
|
2929
|
-
type:
|
|
2931
|
+
type: j.select,
|
|
2930
2932
|
value: r,
|
|
2931
|
-
options:
|
|
2933
|
+
options: vn(J.val),
|
|
2932
2934
|
location: Y
|
|
2933
2935
|
},
|
|
2934
2936
|
err: null
|
|
2935
2937
|
} : {
|
|
2936
2938
|
val: {
|
|
2937
|
-
type:
|
|
2939
|
+
type: j.plural,
|
|
2938
2940
|
value: r,
|
|
2939
|
-
options:
|
|
2941
|
+
options: vn(J.val),
|
|
2940
2942
|
offset: W,
|
|
2941
2943
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2942
2944
|
location: Y
|
|
@@ -2987,21 +2989,21 @@ var Fi = (
|
|
|
2987
2989
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2988
2990
|
var r = [];
|
|
2989
2991
|
try {
|
|
2990
|
-
r =
|
|
2992
|
+
r = Ei(t);
|
|
2991
2993
|
} catch (i) {
|
|
2992
2994
|
return this.error(O.INVALID_NUMBER_SKELETON, n);
|
|
2993
2995
|
}
|
|
2994
2996
|
return {
|
|
2995
2997
|
val: {
|
|
2996
|
-
type:
|
|
2998
|
+
type: je.number,
|
|
2997
2999
|
tokens: r,
|
|
2998
3000
|
location: n,
|
|
2999
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3001
|
+
parsedOptions: this.shouldParseSkeletons ? Ti(r) : {}
|
|
3000
3002
|
},
|
|
3001
3003
|
err: null
|
|
3002
3004
|
};
|
|
3003
3005
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3004
|
-
for (var
|
|
3006
|
+
for (var o, l = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
|
|
3005
3007
|
if (u.length === 0) {
|
|
3006
3008
|
var g = this.clonePosition();
|
|
3007
3009
|
if (n !== "select" && this.bumpIf("=")) {
|
|
@@ -3030,21 +3032,21 @@ var Fi = (
|
|
|
3030
3032
|
value: B.val,
|
|
3031
3033
|
location: L(_, this.clonePosition())
|
|
3032
3034
|
}
|
|
3033
|
-
]), c.add(u), this.bumpSpace(),
|
|
3035
|
+
]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
|
|
3034
3036
|
}
|
|
3035
3037
|
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 };
|
|
3036
3038
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3037
3039
|
var r = 1, i = this.clonePosition();
|
|
3038
3040
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3039
|
-
for (var
|
|
3041
|
+
for (var o = !1, l = 0; !this.isEOF(); ) {
|
|
3040
3042
|
var s = this.char();
|
|
3041
3043
|
if (s >= 48 && s <= 57)
|
|
3042
|
-
|
|
3044
|
+
o = !0, l = l * 10 + (s - 48), this.bump();
|
|
3043
3045
|
else
|
|
3044
3046
|
break;
|
|
3045
3047
|
}
|
|
3046
3048
|
var c = L(i, this.clonePosition());
|
|
3047
|
-
return
|
|
3049
|
+
return o ? (l *= r, Pi(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3048
3050
|
}, e.prototype.offset = function() {
|
|
3049
3051
|
return this.position.offset;
|
|
3050
3052
|
}, e.prototype.isEOF = function() {
|
|
@@ -3059,7 +3061,7 @@ var Fi = (
|
|
|
3059
3061
|
var t = this.position.offset;
|
|
3060
3062
|
if (t >= this.message.length)
|
|
3061
3063
|
throw Error("out of bound");
|
|
3062
|
-
var n =
|
|
3064
|
+
var n = Kn(this.message, t);
|
|
3063
3065
|
if (n === void 0)
|
|
3064
3066
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3065
3067
|
return n;
|
|
@@ -3078,7 +3080,7 @@ var Fi = (
|
|
|
3078
3080
|
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);
|
|
3079
3081
|
}
|
|
3080
3082
|
}, e.prototype.bumpIf = function(t) {
|
|
3081
|
-
if (
|
|
3083
|
+
if (yn(this.message, t, this.offset())) {
|
|
3082
3084
|
for (var n = 0; n < t.length; n++)
|
|
3083
3085
|
this.bump();
|
|
3084
3086
|
return !0;
|
|
@@ -3100,7 +3102,7 @@ var Fi = (
|
|
|
3100
3102
|
break;
|
|
3101
3103
|
}
|
|
3102
3104
|
}, e.prototype.bumpSpace = function() {
|
|
3103
|
-
for (; !this.isEOF() &&
|
|
3105
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
3104
3106
|
this.bump();
|
|
3105
3107
|
}, e.prototype.peek = function() {
|
|
3106
3108
|
if (this.isEOF())
|
|
@@ -3110,97 +3112,97 @@ var Fi = (
|
|
|
3110
3112
|
}, e;
|
|
3111
3113
|
}()
|
|
3112
3114
|
);
|
|
3113
|
-
function
|
|
3115
|
+
function Yt(e) {
|
|
3114
3116
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3115
3117
|
}
|
|
3116
|
-
function Gi(e) {
|
|
3117
|
-
return Qt(e) || e === 47;
|
|
3118
|
-
}
|
|
3119
3118
|
function $i(e) {
|
|
3119
|
+
return Yt(e) || e === 47;
|
|
3120
|
+
}
|
|
3121
|
+
function ji(e) {
|
|
3120
3122
|
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;
|
|
3121
3123
|
}
|
|
3122
|
-
function
|
|
3124
|
+
function tr(e) {
|
|
3123
3125
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3124
3126
|
}
|
|
3125
|
-
function
|
|
3127
|
+
function ki(e) {
|
|
3126
3128
|
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;
|
|
3127
3129
|
}
|
|
3128
|
-
function
|
|
3130
|
+
function Kt(e) {
|
|
3129
3131
|
e.forEach(function(t) {
|
|
3130
|
-
if (delete t.location,
|
|
3132
|
+
if (delete t.location, Xn(t) || zn(t))
|
|
3131
3133
|
for (var n in t.options)
|
|
3132
|
-
delete t.options[n].location,
|
|
3134
|
+
delete t.options[n].location, Kt(t.options[n].value);
|
|
3133
3135
|
else
|
|
3134
|
-
|
|
3136
|
+
jn(t) && Zn(t.style) || (kn(t) || Vn(t)) && Zt(t.style) ? delete t.style.location : Wn(t) && Kt(t.children);
|
|
3135
3137
|
});
|
|
3136
3138
|
}
|
|
3137
|
-
function
|
|
3138
|
-
t === void 0 && (t = {}), t =
|
|
3139
|
-
var n = new
|
|
3139
|
+
function Vi(e, t) {
|
|
3140
|
+
t === void 0 && (t = {}), t = yt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3141
|
+
var n = new Gi(e, t).parse();
|
|
3140
3142
|
if (n.err) {
|
|
3141
3143
|
var r = SyntaxError(O[n.err.kind]);
|
|
3142
3144
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3143
3145
|
}
|
|
3144
|
-
return t != null && t.captureLocation ||
|
|
3146
|
+
return t != null && t.captureLocation || Kt(n.val), n.val;
|
|
3145
3147
|
}
|
|
3146
|
-
var
|
|
3148
|
+
var ke;
|
|
3147
3149
|
(function(e) {
|
|
3148
3150
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3149
|
-
})(
|
|
3150
|
-
var
|
|
3151
|
+
})(ke || (ke = {}));
|
|
3152
|
+
var Bt = (
|
|
3151
3153
|
/** @class */
|
|
3152
3154
|
function(e) {
|
|
3153
|
-
|
|
3155
|
+
_t(t, e);
|
|
3154
3156
|
function t(n, r, i) {
|
|
3155
|
-
var
|
|
3156
|
-
return
|
|
3157
|
+
var o = e.call(this, n) || this;
|
|
3158
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3157
3159
|
}
|
|
3158
3160
|
return t.prototype.toString = function() {
|
|
3159
3161
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3160
3162
|
}, t;
|
|
3161
3163
|
}(Error)
|
|
3162
|
-
),
|
|
3164
|
+
), xn = (
|
|
3163
3165
|
/** @class */
|
|
3164
3166
|
function(e) {
|
|
3165
|
-
|
|
3166
|
-
function t(n, r, i,
|
|
3167
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3167
|
+
_t(t, e);
|
|
3168
|
+
function t(n, r, i, o) {
|
|
3169
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ke.INVALID_VALUE, o) || this;
|
|
3168
3170
|
}
|
|
3169
3171
|
return t;
|
|
3170
|
-
}(
|
|
3171
|
-
),
|
|
3172
|
+
}(Bt)
|
|
3173
|
+
), Xi = (
|
|
3172
3174
|
/** @class */
|
|
3173
3175
|
function(e) {
|
|
3174
|
-
|
|
3176
|
+
_t(t, e);
|
|
3175
3177
|
function t(n, r, i) {
|
|
3176
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3178
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ke.INVALID_VALUE, i) || this;
|
|
3177
3179
|
}
|
|
3178
3180
|
return t;
|
|
3179
|
-
}(
|
|
3180
|
-
),
|
|
3181
|
+
}(Bt)
|
|
3182
|
+
), zi = (
|
|
3181
3183
|
/** @class */
|
|
3182
3184
|
function(e) {
|
|
3183
|
-
|
|
3185
|
+
_t(t, e);
|
|
3184
3186
|
function t(n, r) {
|
|
3185
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3187
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ke.MISSING_VALUE, r) || this;
|
|
3186
3188
|
}
|
|
3187
3189
|
return t;
|
|
3188
|
-
}(
|
|
3190
|
+
}(Bt)
|
|
3189
3191
|
), ne;
|
|
3190
3192
|
(function(e) {
|
|
3191
3193
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3192
3194
|
})(ne || (ne = {}));
|
|
3193
|
-
function
|
|
3195
|
+
function Wi(e) {
|
|
3194
3196
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3195
3197
|
var r = t[t.length - 1];
|
|
3196
3198
|
return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
|
|
3197
3199
|
}, []);
|
|
3198
3200
|
}
|
|
3199
|
-
function
|
|
3201
|
+
function Zi(e) {
|
|
3200
3202
|
return typeof e == "function";
|
|
3201
3203
|
}
|
|
3202
|
-
function
|
|
3203
|
-
if (e.length === 1 &&
|
|
3204
|
+
function dt(e, t, n, r, i, o, l) {
|
|
3205
|
+
if (e.length === 1 && pn(e[0]))
|
|
3204
3206
|
return [
|
|
3205
3207
|
{
|
|
3206
3208
|
type: ne.literal,
|
|
@@ -3209,105 +3211,105 @@ function ft(e, t, n, r, i, a, l) {
|
|
|
3209
3211
|
];
|
|
3210
3212
|
for (var s = [], c = 0, u = e; c < u.length; c++) {
|
|
3211
3213
|
var d = u[c];
|
|
3212
|
-
if (
|
|
3214
|
+
if (pn(d)) {
|
|
3213
3215
|
s.push({
|
|
3214
3216
|
type: ne.literal,
|
|
3215
3217
|
value: d.value
|
|
3216
3218
|
});
|
|
3217
3219
|
continue;
|
|
3218
3220
|
}
|
|
3219
|
-
if (
|
|
3220
|
-
typeof
|
|
3221
|
+
if (gi(d)) {
|
|
3222
|
+
typeof o == "number" && s.push({
|
|
3221
3223
|
type: ne.literal,
|
|
3222
|
-
value: n.getNumberFormat(t).format(
|
|
3224
|
+
value: n.getNumberFormat(t).format(o)
|
|
3223
3225
|
});
|
|
3224
3226
|
continue;
|
|
3225
3227
|
}
|
|
3226
3228
|
var g = d.value;
|
|
3227
3229
|
if (!(i && g in i))
|
|
3228
|
-
throw new
|
|
3230
|
+
throw new zi(g, l);
|
|
3229
3231
|
var b = i[g];
|
|
3230
|
-
if (
|
|
3232
|
+
if (mi(d)) {
|
|
3231
3233
|
(!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
|
|
3232
3234
|
type: typeof b == "string" ? ne.literal : ne.object,
|
|
3233
3235
|
value: b
|
|
3234
3236
|
});
|
|
3235
3237
|
continue;
|
|
3236
3238
|
}
|
|
3237
|
-
if (
|
|
3238
|
-
var _ = typeof d.style == "string" ? r.date[d.style] :
|
|
3239
|
+
if (kn(d)) {
|
|
3240
|
+
var _ = typeof d.style == "string" ? r.date[d.style] : Zt(d.style) ? d.style.parsedOptions : void 0;
|
|
3239
3241
|
s.push({
|
|
3240
3242
|
type: ne.literal,
|
|
3241
3243
|
value: n.getDateTimeFormat(t, _).format(b)
|
|
3242
3244
|
});
|
|
3243
3245
|
continue;
|
|
3244
3246
|
}
|
|
3245
|
-
if (
|
|
3246
|
-
var _ = typeof d.style == "string" ? r.time[d.style] :
|
|
3247
|
+
if (Vn(d)) {
|
|
3248
|
+
var _ = typeof d.style == "string" ? r.time[d.style] : Zt(d.style) ? d.style.parsedOptions : r.time.medium;
|
|
3247
3249
|
s.push({
|
|
3248
3250
|
type: ne.literal,
|
|
3249
3251
|
value: n.getDateTimeFormat(t, _).format(b)
|
|
3250
3252
|
});
|
|
3251
3253
|
continue;
|
|
3252
3254
|
}
|
|
3253
|
-
if (
|
|
3254
|
-
var _ = typeof d.style == "string" ? r.number[d.style] :
|
|
3255
|
+
if (jn(d)) {
|
|
3256
|
+
var _ = typeof d.style == "string" ? r.number[d.style] : Zn(d.style) ? d.style.parsedOptions : void 0;
|
|
3255
3257
|
_ && _.scale && (b = b * (_.scale || 1)), s.push({
|
|
3256
3258
|
type: ne.literal,
|
|
3257
3259
|
value: n.getNumberFormat(t, _).format(b)
|
|
3258
3260
|
});
|
|
3259
3261
|
continue;
|
|
3260
3262
|
}
|
|
3261
|
-
if (
|
|
3263
|
+
if (Wn(d)) {
|
|
3262
3264
|
var B = d.children, T = d.value, x = i[T];
|
|
3263
|
-
if (!
|
|
3264
|
-
throw new
|
|
3265
|
-
var S =
|
|
3265
|
+
if (!Zi(x))
|
|
3266
|
+
throw new Xi(T, "function", l);
|
|
3267
|
+
var S = dt(B, t, n, r, i, o), P = x(S.map(function(W) {
|
|
3266
3268
|
return W.value;
|
|
3267
3269
|
}));
|
|
3268
|
-
Array.isArray(
|
|
3270
|
+
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(W) {
|
|
3269
3271
|
return {
|
|
3270
3272
|
type: typeof W == "string" ? ne.literal : ne.object,
|
|
3271
3273
|
value: W
|
|
3272
3274
|
};
|
|
3273
3275
|
}));
|
|
3274
3276
|
}
|
|
3275
|
-
if (
|
|
3277
|
+
if (Xn(d)) {
|
|
3276
3278
|
var C = d.options[b] || d.options.other;
|
|
3277
3279
|
if (!C)
|
|
3278
|
-
throw new
|
|
3279
|
-
s.push.apply(s,
|
|
3280
|
+
throw new xn(d.value, b, Object.keys(d.options), l);
|
|
3281
|
+
s.push.apply(s, dt(C.value, t, n, r, i));
|
|
3280
3282
|
continue;
|
|
3281
3283
|
}
|
|
3282
|
-
if (
|
|
3284
|
+
if (zn(d)) {
|
|
3283
3285
|
var C = d.options["=".concat(b)];
|
|
3284
3286
|
if (!C) {
|
|
3285
3287
|
if (!Intl.PluralRules)
|
|
3286
|
-
throw new
|
|
3288
|
+
throw new Bt(`Intl.PluralRules is not available in this environment.
|
|
3287
3289
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3288
|
-
`,
|
|
3289
|
-
var
|
|
3290
|
-
C = d.options[
|
|
3290
|
+
`, ke.MISSING_INTL_API, l);
|
|
3291
|
+
var D = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
|
|
3292
|
+
C = d.options[D] || d.options.other;
|
|
3291
3293
|
}
|
|
3292
3294
|
if (!C)
|
|
3293
|
-
throw new
|
|
3294
|
-
s.push.apply(s,
|
|
3295
|
+
throw new xn(d.value, b, Object.keys(d.options), l);
|
|
3296
|
+
s.push.apply(s, dt(C.value, t, n, r, i, b - (d.offset || 0)));
|
|
3295
3297
|
continue;
|
|
3296
3298
|
}
|
|
3297
3299
|
}
|
|
3298
|
-
return
|
|
3300
|
+
return Wi(s);
|
|
3299
3301
|
}
|
|
3300
|
-
function
|
|
3301
|
-
return t ?
|
|
3302
|
-
return n[r] =
|
|
3302
|
+
function qi(e, t) {
|
|
3303
|
+
return t ? ge(ge(ge({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3304
|
+
return n[r] = ge(ge({}, e[r]), t[r] || {}), n;
|
|
3303
3305
|
}, {})) : e;
|
|
3304
3306
|
}
|
|
3305
|
-
function
|
|
3307
|
+
function Qi(e, t) {
|
|
3306
3308
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3307
|
-
return n[r] =
|
|
3308
|
-
},
|
|
3309
|
+
return n[r] = qi(e[r], t[r]), n;
|
|
3310
|
+
}, ge({}, e)) : e;
|
|
3309
3311
|
}
|
|
3310
|
-
function
|
|
3312
|
+
function jt(e) {
|
|
3311
3313
|
return {
|
|
3312
3314
|
create: function() {
|
|
3313
3315
|
return {
|
|
@@ -3321,50 +3323,50 @@ function Gt(e) {
|
|
|
3321
3323
|
}
|
|
3322
3324
|
};
|
|
3323
3325
|
}
|
|
3324
|
-
function
|
|
3326
|
+
function Ji(e) {
|
|
3325
3327
|
return e === void 0 && (e = {
|
|
3326
3328
|
number: {},
|
|
3327
3329
|
dateTime: {},
|
|
3328
3330
|
pluralRules: {}
|
|
3329
3331
|
}), {
|
|
3330
|
-
getNumberFormat:
|
|
3332
|
+
getNumberFormat: Ft(function() {
|
|
3331
3333
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3332
3334
|
n[r] = arguments[r];
|
|
3333
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3335
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ut([void 0], n, !1)))();
|
|
3334
3336
|
}, {
|
|
3335
|
-
cache:
|
|
3336
|
-
strategy:
|
|
3337
|
+
cache: jt(e.number),
|
|
3338
|
+
strategy: Gt.variadic
|
|
3337
3339
|
}),
|
|
3338
|
-
getDateTimeFormat:
|
|
3340
|
+
getDateTimeFormat: Ft(function() {
|
|
3339
3341
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3340
3342
|
n[r] = arguments[r];
|
|
3341
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3343
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ut([void 0], n, !1)))();
|
|
3342
3344
|
}, {
|
|
3343
|
-
cache:
|
|
3344
|
-
strategy:
|
|
3345
|
+
cache: jt(e.dateTime),
|
|
3346
|
+
strategy: Gt.variadic
|
|
3345
3347
|
}),
|
|
3346
|
-
getPluralRules:
|
|
3348
|
+
getPluralRules: Ft(function() {
|
|
3347
3349
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3348
3350
|
n[r] = arguments[r];
|
|
3349
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3351
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ut([void 0], n, !1)))();
|
|
3350
3352
|
}, {
|
|
3351
|
-
cache:
|
|
3352
|
-
strategy:
|
|
3353
|
+
cache: jt(e.pluralRules),
|
|
3354
|
+
strategy: Gt.variadic
|
|
3353
3355
|
})
|
|
3354
3356
|
};
|
|
3355
3357
|
}
|
|
3356
|
-
var
|
|
3358
|
+
var Yi = (
|
|
3357
3359
|
/** @class */
|
|
3358
3360
|
function() {
|
|
3359
3361
|
function e(t, n, r, i) {
|
|
3360
3362
|
n === void 0 && (n = e.defaultLocale);
|
|
3361
|
-
var
|
|
3363
|
+
var o = this;
|
|
3362
3364
|
if (this.formatterCache = {
|
|
3363
3365
|
number: {},
|
|
3364
3366
|
dateTime: {},
|
|
3365
3367
|
pluralRules: {}
|
|
3366
3368
|
}, this.format = function(c) {
|
|
3367
|
-
var u =
|
|
3369
|
+
var u = o.formatToParts(c);
|
|
3368
3370
|
if (u.length === 1)
|
|
3369
3371
|
return u[0].value;
|
|
3370
3372
|
var d = u.reduce(function(g, b) {
|
|
@@ -3372,26 +3374,26 @@ var Ji = (
|
|
|
3372
3374
|
}, []);
|
|
3373
3375
|
return d.length <= 1 ? d[0] || "" : d;
|
|
3374
3376
|
}, this.formatToParts = function(c) {
|
|
3375
|
-
return
|
|
3377
|
+
return dt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3376
3378
|
}, this.resolvedOptions = function() {
|
|
3377
3379
|
var c;
|
|
3378
3380
|
return {
|
|
3379
|
-
locale: ((c =
|
|
3381
|
+
locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3380
3382
|
};
|
|
3381
3383
|
}, this.getAst = function() {
|
|
3382
|
-
return
|
|
3384
|
+
return o.ast;
|
|
3383
3385
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3384
3386
|
if (this.message = t, !e.__parse)
|
|
3385
3387
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3386
3388
|
var l = i || {};
|
|
3387
3389
|
l.formatters;
|
|
3388
|
-
var s =
|
|
3389
|
-
this.ast = e.__parse(t,
|
|
3390
|
+
var s = si(l, ["formatters"]);
|
|
3391
|
+
this.ast = e.__parse(t, ge(ge({}, s), { locale: this.resolvedLocale }));
|
|
3390
3392
|
} else
|
|
3391
3393
|
this.ast = t;
|
|
3392
3394
|
if (!Array.isArray(this.ast))
|
|
3393
3395
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3394
|
-
this.formats =
|
|
3396
|
+
this.formats = Qi(e.formats, r), this.formatters = i && i.formatters || Ji(this.formatterCache);
|
|
3395
3397
|
}
|
|
3396
3398
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3397
3399
|
get: function() {
|
|
@@ -3404,7 +3406,7 @@ var Ji = (
|
|
|
3404
3406
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3405
3407
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3406
3408
|
}
|
|
3407
|
-
}, e.__parse =
|
|
3409
|
+
}, e.__parse = Vi, e.formats = {
|
|
3408
3410
|
number: {
|
|
3409
3411
|
integer: {
|
|
3410
3412
|
maximumFractionDigits: 0
|
|
@@ -3465,7 +3467,7 @@ var Ji = (
|
|
|
3465
3467
|
}, e;
|
|
3466
3468
|
}()
|
|
3467
3469
|
);
|
|
3468
|
-
function
|
|
3470
|
+
function Ki(e, t) {
|
|
3469
3471
|
if (t == null)
|
|
3470
3472
|
return;
|
|
3471
3473
|
if (t in e)
|
|
@@ -3475,9 +3477,9 @@ function Yi(e, t) {
|
|
|
3475
3477
|
for (let i = 0; i < n.length; i++)
|
|
3476
3478
|
if (typeof r == "object") {
|
|
3477
3479
|
if (i > 0) {
|
|
3478
|
-
const
|
|
3479
|
-
if (
|
|
3480
|
-
r = r[
|
|
3480
|
+
const o = n.slice(i, n.length).join(".");
|
|
3481
|
+
if (o in r) {
|
|
3482
|
+
r = r[o];
|
|
3481
3483
|
break;
|
|
3482
3484
|
}
|
|
3483
3485
|
}
|
|
@@ -3486,92 +3488,92 @@ function Yi(e, t) {
|
|
|
3486
3488
|
r = void 0;
|
|
3487
3489
|
return r;
|
|
3488
3490
|
}
|
|
3489
|
-
const
|
|
3491
|
+
const Ae = {}, eo = (e, t, n) => n && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = n), n), nr = (e, t) => {
|
|
3490
3492
|
if (t == null)
|
|
3491
3493
|
return;
|
|
3492
|
-
if (t in
|
|
3493
|
-
return
|
|
3494
|
-
const n =
|
|
3494
|
+
if (t in Ae && e in Ae[t])
|
|
3495
|
+
return Ae[t][e];
|
|
3496
|
+
const n = Tt(t);
|
|
3495
3497
|
for (let r = 0; r < n.length; r++) {
|
|
3496
|
-
const i = n[r],
|
|
3497
|
-
if (
|
|
3498
|
-
return
|
|
3498
|
+
const i = n[r], o = no(i, e);
|
|
3499
|
+
if (o)
|
|
3500
|
+
return eo(e, t, o);
|
|
3499
3501
|
}
|
|
3500
3502
|
};
|
|
3501
|
-
let
|
|
3502
|
-
const
|
|
3503
|
-
function
|
|
3504
|
-
return
|
|
3503
|
+
let on;
|
|
3504
|
+
const ot = xt({});
|
|
3505
|
+
function to(e) {
|
|
3506
|
+
return on[e] || null;
|
|
3505
3507
|
}
|
|
3506
|
-
function
|
|
3507
|
-
return e in
|
|
3508
|
+
function rr(e) {
|
|
3509
|
+
return e in on;
|
|
3508
3510
|
}
|
|
3509
|
-
function
|
|
3510
|
-
if (!
|
|
3511
|
+
function no(e, t) {
|
|
3512
|
+
if (!rr(e))
|
|
3511
3513
|
return null;
|
|
3512
|
-
const n =
|
|
3513
|
-
return
|
|
3514
|
+
const n = to(e);
|
|
3515
|
+
return Ki(n, t);
|
|
3514
3516
|
}
|
|
3515
|
-
function
|
|
3517
|
+
function ro(e) {
|
|
3516
3518
|
if (e == null)
|
|
3517
3519
|
return;
|
|
3518
|
-
const t =
|
|
3520
|
+
const t = Tt(e);
|
|
3519
3521
|
for (let n = 0; n < t.length; n++) {
|
|
3520
3522
|
const r = t[n];
|
|
3521
|
-
if (
|
|
3523
|
+
if (rr(r))
|
|
3522
3524
|
return r;
|
|
3523
3525
|
}
|
|
3524
3526
|
}
|
|
3525
|
-
function
|
|
3526
|
-
delete
|
|
3527
|
+
function ir(e, ...t) {
|
|
3528
|
+
delete Ae[e], ot.update((n) => (n[e] = ai.all([n[e] || {}, ...t]), n));
|
|
3527
3529
|
}
|
|
3528
|
-
|
|
3529
|
-
[
|
|
3530
|
+
ze(
|
|
3531
|
+
[ot],
|
|
3530
3532
|
([e]) => Object.keys(e)
|
|
3531
3533
|
);
|
|
3532
|
-
|
|
3533
|
-
const
|
|
3534
|
-
function
|
|
3535
|
-
|
|
3534
|
+
ot.subscribe((e) => on = e);
|
|
3535
|
+
const pt = {};
|
|
3536
|
+
function io(e, t) {
|
|
3537
|
+
pt[e].delete(t), pt[e].size === 0 && delete pt[e];
|
|
3536
3538
|
}
|
|
3537
|
-
function
|
|
3538
|
-
return
|
|
3539
|
+
function or(e) {
|
|
3540
|
+
return pt[e];
|
|
3539
3541
|
}
|
|
3540
|
-
function
|
|
3541
|
-
return
|
|
3542
|
-
const n =
|
|
3542
|
+
function oo(e) {
|
|
3543
|
+
return Tt(e).map((t) => {
|
|
3544
|
+
const n = or(t);
|
|
3543
3545
|
return [t, n ? [...n] : []];
|
|
3544
3546
|
}).filter(([, t]) => t.length > 0);
|
|
3545
3547
|
}
|
|
3546
|
-
function
|
|
3547
|
-
return e == null ? !1 :
|
|
3548
|
+
function en(e) {
|
|
3549
|
+
return e == null ? !1 : Tt(e).some(
|
|
3548
3550
|
(t) => {
|
|
3549
3551
|
var n;
|
|
3550
|
-
return (n =
|
|
3552
|
+
return (n = or(t)) == null ? void 0 : n.size;
|
|
3551
3553
|
}
|
|
3552
3554
|
);
|
|
3553
3555
|
}
|
|
3554
|
-
function
|
|
3556
|
+
function ao(e, t) {
|
|
3555
3557
|
return Promise.all(
|
|
3556
|
-
t.map((r) => (
|
|
3557
|
-
).then((r) =>
|
|
3558
|
+
t.map((r) => (io(e, r), r().then((i) => i.default || i)))
|
|
3559
|
+
).then((r) => ir(e, ...r));
|
|
3558
3560
|
}
|
|
3559
|
-
const
|
|
3561
|
+
const et = {};
|
|
3560
3562
|
function ar(e) {
|
|
3561
|
-
if (!
|
|
3562
|
-
return e in
|
|
3563
|
-
const t =
|
|
3564
|
-
return
|
|
3563
|
+
if (!en(e))
|
|
3564
|
+
return e in et ? et[e] : Promise.resolve();
|
|
3565
|
+
const t = oo(e);
|
|
3566
|
+
return et[e] = Promise.all(
|
|
3565
3567
|
t.map(
|
|
3566
|
-
([n, r]) =>
|
|
3568
|
+
([n, r]) => ao(n, r)
|
|
3567
3569
|
)
|
|
3568
3570
|
).then(() => {
|
|
3569
|
-
if (
|
|
3571
|
+
if (en(e))
|
|
3570
3572
|
return ar(e);
|
|
3571
|
-
delete
|
|
3572
|
-
}),
|
|
3573
|
+
delete et[e];
|
|
3574
|
+
}), et[e];
|
|
3573
3575
|
}
|
|
3574
|
-
const
|
|
3576
|
+
const so = {
|
|
3575
3577
|
number: {
|
|
3576
3578
|
scientific: { notation: "scientific" },
|
|
3577
3579
|
engineering: { notation: "engineering" },
|
|
@@ -3600,150 +3602,150 @@ const oa = {
|
|
|
3600
3602
|
timeZoneName: "short"
|
|
3601
3603
|
}
|
|
3602
3604
|
}
|
|
3603
|
-
},
|
|
3605
|
+
}, lo = {
|
|
3604
3606
|
fallbackLocale: null,
|
|
3605
3607
|
loadingDelay: 200,
|
|
3606
|
-
formats:
|
|
3608
|
+
formats: so,
|
|
3607
3609
|
warnOnMissingMessages: !0,
|
|
3608
3610
|
handleMissingMessage: void 0,
|
|
3609
3611
|
ignoreTag: !0
|
|
3610
|
-
},
|
|
3611
|
-
function
|
|
3612
|
-
return
|
|
3613
|
-
}
|
|
3614
|
-
const
|
|
3615
|
-
var
|
|
3616
|
-
for (var n in t)
|
|
3617
|
-
|
|
3618
|
-
if (
|
|
3619
|
-
for (var n of
|
|
3620
|
-
|
|
3612
|
+
}, uo = lo;
|
|
3613
|
+
function Ve() {
|
|
3614
|
+
return uo;
|
|
3615
|
+
}
|
|
3616
|
+
const kt = xt(!1);
|
|
3617
|
+
var co = Object.defineProperty, ho = Object.defineProperties, fo = Object.getOwnPropertyDescriptors, _n = Object.getOwnPropertySymbols, po = Object.prototype.hasOwnProperty, mo = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, go = (e, t) => {
|
|
3618
|
+
for (var n in t || (t = {}))
|
|
3619
|
+
po.call(t, n) && Bn(e, n, t[n]);
|
|
3620
|
+
if (_n)
|
|
3621
|
+
for (var n of _n(t))
|
|
3622
|
+
mo.call(t, n) && Bn(e, n, t[n]);
|
|
3621
3623
|
return e;
|
|
3622
|
-
},
|
|
3623
|
-
let
|
|
3624
|
-
const
|
|
3625
|
-
function
|
|
3624
|
+
}, bo = (e, t) => ho(e, fo(t));
|
|
3625
|
+
let tn;
|
|
3626
|
+
const vt = xt(null);
|
|
3627
|
+
function Tn(e) {
|
|
3626
3628
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3627
3629
|
}
|
|
3628
|
-
function
|
|
3629
|
-
const n =
|
|
3630
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3630
|
+
function Tt(e, t = Ve().fallbackLocale) {
|
|
3631
|
+
const n = Tn(e);
|
|
3632
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
|
|
3631
3633
|
}
|
|
3632
|
-
function
|
|
3633
|
-
return
|
|
3634
|
+
function Re() {
|
|
3635
|
+
return tn != null ? tn : void 0;
|
|
3634
3636
|
}
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
+
vt.subscribe((e) => {
|
|
3638
|
+
tn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3637
3639
|
});
|
|
3638
|
-
const
|
|
3639
|
-
if (e &&
|
|
3640
|
-
const { loadingDelay: t } =
|
|
3640
|
+
const yo = (e) => {
|
|
3641
|
+
if (e && ro(e) && en(e)) {
|
|
3642
|
+
const { loadingDelay: t } = Ve();
|
|
3641
3643
|
let n;
|
|
3642
|
-
return typeof window != "undefined" &&
|
|
3643
|
-
() =>
|
|
3644
|
+
return typeof window != "undefined" && Re() != null && t ? n = window.setTimeout(
|
|
3645
|
+
() => kt.set(!0),
|
|
3644
3646
|
t
|
|
3645
|
-
) :
|
|
3646
|
-
|
|
3647
|
+
) : kt.set(!0), ar(e).then(() => {
|
|
3648
|
+
vt.set(e);
|
|
3647
3649
|
}).finally(() => {
|
|
3648
|
-
clearTimeout(n),
|
|
3650
|
+
clearTimeout(n), kt.set(!1);
|
|
3649
3651
|
});
|
|
3650
3652
|
}
|
|
3651
|
-
return
|
|
3652
|
-
},
|
|
3653
|
-
set:
|
|
3654
|
-
}),
|
|
3653
|
+
return vt.set(e);
|
|
3654
|
+
}, We = bo(go({}, vt), {
|
|
3655
|
+
set: yo
|
|
3656
|
+
}), wt = (e) => {
|
|
3655
3657
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3656
3658
|
return (r) => {
|
|
3657
3659
|
const i = JSON.stringify(r);
|
|
3658
3660
|
return i in t ? t[i] : t[i] = e(r);
|
|
3659
3661
|
};
|
|
3660
3662
|
};
|
|
3661
|
-
var
|
|
3663
|
+
var vo = Object.defineProperty, Et = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, wn = (e, t, n) => t in e ? vo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, an = (e, t) => {
|
|
3662
3664
|
for (var n in t || (t = {}))
|
|
3663
|
-
|
|
3664
|
-
if (
|
|
3665
|
-
for (var n of
|
|
3666
|
-
|
|
3665
|
+
sr.call(t, n) && wn(e, n, t[n]);
|
|
3666
|
+
if (Et)
|
|
3667
|
+
for (var n of Et(t))
|
|
3668
|
+
lr.call(t, n) && wn(e, n, t[n]);
|
|
3667
3669
|
return e;
|
|
3668
|
-
},
|
|
3670
|
+
}, Ze = (e, t) => {
|
|
3669
3671
|
var n = {};
|
|
3670
3672
|
for (var r in e)
|
|
3671
|
-
|
|
3672
|
-
if (e != null &&
|
|
3673
|
-
for (var r of
|
|
3674
|
-
t.indexOf(r) < 0 &&
|
|
3673
|
+
sr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3674
|
+
if (e != null && Et)
|
|
3675
|
+
for (var r of Et(e))
|
|
3676
|
+
t.indexOf(r) < 0 && lr.call(e, r) && (n[r] = e[r]);
|
|
3675
3677
|
return n;
|
|
3676
3678
|
};
|
|
3677
|
-
const
|
|
3678
|
-
const { formats: n } =
|
|
3679
|
+
const it = (e, t) => {
|
|
3680
|
+
const { formats: n } = Ve();
|
|
3679
3681
|
if (e in n && t in n[e])
|
|
3680
3682
|
return n[e][t];
|
|
3681
3683
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3682
|
-
},
|
|
3684
|
+
}, Eo = wt(
|
|
3683
3685
|
(e) => {
|
|
3684
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3686
|
+
var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
|
|
3685
3687
|
if (n == null)
|
|
3686
3688
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3687
|
-
return r && (i =
|
|
3689
|
+
return r && (i = it("number", r)), new Intl.NumberFormat(n, i);
|
|
3688
3690
|
}
|
|
3689
|
-
),
|
|
3691
|
+
), xo = wt(
|
|
3690
3692
|
(e) => {
|
|
3691
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3693
|
+
var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
|
|
3692
3694
|
if (n == null)
|
|
3693
3695
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3694
|
-
return r ? i =
|
|
3696
|
+
return r ? i = it("date", r) : Object.keys(i).length === 0 && (i = it("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3695
3697
|
}
|
|
3696
|
-
),
|
|
3698
|
+
), _o = wt(
|
|
3697
3699
|
(e) => {
|
|
3698
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3700
|
+
var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
|
|
3699
3701
|
if (n == null)
|
|
3700
3702
|
throw new Error(
|
|
3701
3703
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3702
3704
|
);
|
|
3703
|
-
return r ? i =
|
|
3705
|
+
return r ? i = it("time", r) : Object.keys(i).length === 0 && (i = it("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3704
3706
|
}
|
|
3705
|
-
),
|
|
3707
|
+
), Bo = (e = {}) => {
|
|
3706
3708
|
var t = e, {
|
|
3707
|
-
locale: n =
|
|
3708
|
-
} = t, r =
|
|
3709
|
+
locale: n = Re()
|
|
3710
|
+
} = t, r = Ze(t, [
|
|
3709
3711
|
"locale"
|
|
3710
3712
|
]);
|
|
3711
|
-
return
|
|
3712
|
-
},
|
|
3713
|
+
return Eo(an({ locale: n }, r));
|
|
3714
|
+
}, To = (e = {}) => {
|
|
3713
3715
|
var t = e, {
|
|
3714
|
-
locale: n =
|
|
3715
|
-
} = t, r =
|
|
3716
|
+
locale: n = Re()
|
|
3717
|
+
} = t, r = Ze(t, [
|
|
3716
3718
|
"locale"
|
|
3717
3719
|
]);
|
|
3718
|
-
return
|
|
3719
|
-
},
|
|
3720
|
+
return xo(an({ locale: n }, r));
|
|
3721
|
+
}, wo = (e = {}) => {
|
|
3720
3722
|
var t = e, {
|
|
3721
|
-
locale: n =
|
|
3722
|
-
} = t, r =
|
|
3723
|
+
locale: n = Re()
|
|
3724
|
+
} = t, r = Ze(t, [
|
|
3723
3725
|
"locale"
|
|
3724
3726
|
]);
|
|
3725
|
-
return
|
|
3726
|
-
},
|
|
3727
|
+
return _o(an({ locale: n }, r));
|
|
3728
|
+
}, So = wt(
|
|
3727
3729
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3728
|
-
(e, t =
|
|
3729
|
-
ignoreTag:
|
|
3730
|
+
(e, t = Re()) => new Yi(e, t, Ve().formats, {
|
|
3731
|
+
ignoreTag: Ve().ignoreTag
|
|
3730
3732
|
})
|
|
3731
|
-
),
|
|
3732
|
-
var n, r, i,
|
|
3733
|
+
), Ao = (e, t = {}) => {
|
|
3734
|
+
var n, r, i, o;
|
|
3733
3735
|
let l = t;
|
|
3734
3736
|
typeof e == "object" && (l = e, e = l.id);
|
|
3735
3737
|
const {
|
|
3736
3738
|
values: s,
|
|
3737
|
-
locale: c =
|
|
3739
|
+
locale: c = Re(),
|
|
3738
3740
|
default: u
|
|
3739
3741
|
} = l;
|
|
3740
3742
|
if (c == null)
|
|
3741
3743
|
throw new Error(
|
|
3742
3744
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3743
3745
|
);
|
|
3744
|
-
let d =
|
|
3746
|
+
let d = nr(e, c);
|
|
3745
3747
|
if (!d)
|
|
3746
|
-
d = (
|
|
3748
|
+
d = (o = (i = (r = (n = Ve()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3747
3749
|
else if (typeof d != "string")
|
|
3748
3750
|
return console.warn(
|
|
3749
3751
|
`[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.`
|
|
@@ -3752,7 +3754,7 @@ const rt = (e, t) => {
|
|
|
3752
3754
|
return d;
|
|
3753
3755
|
let g = d;
|
|
3754
3756
|
try {
|
|
3755
|
-
g =
|
|
3757
|
+
g = So(d, c).format(s);
|
|
3756
3758
|
} catch (b) {
|
|
3757
3759
|
b instanceof Error && console.warn(
|
|
3758
3760
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3760,18 +3762,18 @@ const rt = (e, t) => {
|
|
|
3760
3762
|
);
|
|
3761
3763
|
}
|
|
3762
3764
|
return g;
|
|
3763
|
-
},
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
function
|
|
3769
|
-
|
|
3770
|
-
}
|
|
3771
|
-
function
|
|
3772
|
-
|
|
3773
|
-
}
|
|
3774
|
-
const
|
|
3765
|
+
}, Co = (e, t) => wo(t).format(e), Ho = (e, t) => To(t).format(e), Oo = (e, t) => Bo(t).format(e), Ro = (e, t = Re()) => nr(e, t), Lo = ze([We, ot], () => Ao);
|
|
3766
|
+
ze([We], () => Co);
|
|
3767
|
+
ze([We], () => Ho);
|
|
3768
|
+
ze([We], () => Oo);
|
|
3769
|
+
ze([We, ot], () => Ro);
|
|
3770
|
+
function Sn(e, t) {
|
|
3771
|
+
ir(e, t);
|
|
3772
|
+
}
|
|
3773
|
+
function Mo(e) {
|
|
3774
|
+
We.set(e);
|
|
3775
|
+
}
|
|
3776
|
+
const An = {
|
|
3775
3777
|
en: {
|
|
3776
3778
|
Title: "Your Balance",
|
|
3777
3779
|
Total: "Total Balance",
|
|
@@ -3971,7 +3973,7 @@ const Sn = {
|
|
|
3971
3973
|
Loading: "Loading ..."
|
|
3972
3974
|
}
|
|
3973
3975
|
};
|
|
3974
|
-
var
|
|
3976
|
+
var nn = { exports: {} };
|
|
3975
3977
|
/** @license
|
|
3976
3978
|
* eventsource.js
|
|
3977
3979
|
* Available under MIT License (MIT)
|
|
@@ -3979,22 +3981,22 @@ var en = { exports: {} };
|
|
|
3979
3981
|
*/
|
|
3980
3982
|
(function(e, t) {
|
|
3981
3983
|
(function(n) {
|
|
3982
|
-
var r = n.setTimeout, i = n.clearTimeout,
|
|
3983
|
-
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(
|
|
3984
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, u = n.document, d = n.Promise, g = n.fetch, b = n.Response, _ = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
|
|
3985
|
+
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
|
|
3984
3986
|
u.readyState = "complete";
|
|
3985
|
-
}, !1)),
|
|
3987
|
+
}, !1)), o == null && s != null && (o = function() {
|
|
3986
3988
|
return new s("Microsoft.XMLHTTP");
|
|
3987
|
-
}), Object.create == null && (Object.create = function(
|
|
3989
|
+
}), Object.create == null && (Object.create = function(a) {
|
|
3988
3990
|
function f() {
|
|
3989
3991
|
}
|
|
3990
|
-
return f.prototype =
|
|
3992
|
+
return f.prototype = a, new f();
|
|
3991
3993
|
}), Date.now || (Date.now = function() {
|
|
3992
3994
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3993
3995
|
}), T == null) {
|
|
3994
3996
|
var x = g;
|
|
3995
|
-
g = function(
|
|
3997
|
+
g = function(a, f) {
|
|
3996
3998
|
var p = f.signal;
|
|
3997
|
-
return x(
|
|
3999
|
+
return x(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(h) {
|
|
3998
4000
|
var E = h.body.getReader();
|
|
3999
4001
|
return p._reader = E, p._aborted && p._reader.cancel(), {
|
|
4000
4002
|
status: h.status,
|
|
@@ -4019,46 +4021,46 @@ var en = { exports: {} };
|
|
|
4019
4021
|
function S() {
|
|
4020
4022
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
4021
4023
|
}
|
|
4022
|
-
S.prototype.decode = function(
|
|
4023
|
-
function f(
|
|
4024
|
+
S.prototype.decode = function(a) {
|
|
4025
|
+
function f(I, F, w) {
|
|
4024
4026
|
if (w === 1)
|
|
4025
|
-
return
|
|
4027
|
+
return I >= 128 >> F && I << F <= 2047;
|
|
4026
4028
|
if (w === 2)
|
|
4027
|
-
return
|
|
4029
|
+
return I >= 2048 >> F && I << F <= 55295 || I >= 57344 >> F && I << F <= 65535;
|
|
4028
4030
|
if (w === 3)
|
|
4029
|
-
return
|
|
4031
|
+
return I >= 65536 >> F && I << F <= 1114111;
|
|
4030
4032
|
throw new Error();
|
|
4031
4033
|
}
|
|
4032
|
-
function p(
|
|
4033
|
-
if (
|
|
4034
|
-
return
|
|
4035
|
-
if (
|
|
4036
|
-
return
|
|
4037
|
-
if (
|
|
4034
|
+
function p(I, F) {
|
|
4035
|
+
if (I === 6 * 1)
|
|
4036
|
+
return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
|
|
4037
|
+
if (I === 6 * 2)
|
|
4038
|
+
return F > 15 ? 3 : 2;
|
|
4039
|
+
if (I === 6 * 3)
|
|
4038
4040
|
return 3;
|
|
4039
4041
|
throw new Error();
|
|
4040
4042
|
}
|
|
4041
|
-
for (var h = 65533, E = "", v = this.bitsNeeded, m = this.codePoint, R = 0; R <
|
|
4042
|
-
var A =
|
|
4043
|
+
for (var h = 65533, E = "", v = this.bitsNeeded, m = this.codePoint, R = 0; R < a.length; R += 1) {
|
|
4044
|
+
var A = a[R];
|
|
4043
4045
|
v !== 0 && (A < 128 || A > 191 || !f(m << 6 | A & 63, v - 6, p(v, m))) && (v = 0, m = h, E += String.fromCharCode(m)), v === 0 ? (A >= 0 && A <= 127 ? (v = 0, m = A) : A >= 192 && A <= 223 ? (v = 6 * 1, m = A & 31) : A >= 224 && A <= 239 ? (v = 6 * 2, m = A & 15) : A >= 240 && A <= 247 ? (v = 6 * 3, m = A & 7) : (v = 0, m = h), v !== 0 && !f(m, v, p(v, m)) && (v = 0, m = h)) : (v -= 6, m = m << 6 | A & 63), v === 0 && (m <= 65535 ? E += String.fromCharCode(m) : (E += String.fromCharCode(55296 + (m - 65535 - 1 >> 10)), E += String.fromCharCode(56320 + (m - 65535 - 1 & 1023))));
|
|
4044
4046
|
}
|
|
4045
4047
|
return this.bitsNeeded = v, this.codePoint = m, E;
|
|
4046
4048
|
};
|
|
4047
|
-
var
|
|
4049
|
+
var P = function() {
|
|
4048
4050
|
try {
|
|
4049
4051
|
return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
|
|
4050
|
-
} catch (
|
|
4051
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
4052
|
+
} catch (a) {
|
|
4053
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
|
|
4052
4054
|
}
|
|
4053
4055
|
return !1;
|
|
4054
4056
|
};
|
|
4055
|
-
(_ == null || B == null || !
|
|
4057
|
+
(_ == null || B == null || !P()) && (_ = S);
|
|
4056
4058
|
var C = function() {
|
|
4057
4059
|
};
|
|
4058
|
-
function
|
|
4059
|
-
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 =
|
|
4060
|
+
function D(a) {
|
|
4061
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = C, this.onload = C, this.onerror = C, this.onreadystatechange = C, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = C;
|
|
4060
4062
|
}
|
|
4061
|
-
|
|
4063
|
+
D.prototype.open = function(a, f) {
|
|
4062
4064
|
this._abort(!0);
|
|
4063
4065
|
var p = this, h = this._xhr, E = 1, v = 0;
|
|
4064
4066
|
this._abort = function(w) {
|
|
@@ -4066,16 +4068,16 @@ var en = { exports: {} };
|
|
|
4066
4068
|
};
|
|
4067
4069
|
var m = function() {
|
|
4068
4070
|
if (E === 1) {
|
|
4069
|
-
var w = 0,
|
|
4071
|
+
var w = 0, V = "", ye = void 0;
|
|
4070
4072
|
if ("contentType" in h)
|
|
4071
|
-
w = 200,
|
|
4073
|
+
w = 200, V = "OK", ye = h.contentType;
|
|
4072
4074
|
else
|
|
4073
4075
|
try {
|
|
4074
|
-
w = h.status,
|
|
4075
|
-
} catch (
|
|
4076
|
-
w = 0,
|
|
4076
|
+
w = h.status, V = h.statusText, ye = h.getResponseHeader("Content-Type");
|
|
4077
|
+
} catch (Ye) {
|
|
4078
|
+
w = 0, V = "", ye = void 0;
|
|
4077
4079
|
}
|
|
4078
|
-
w !== 0 && (E = 2, p.readyState = 2, p.status = w, p.statusText =
|
|
4080
|
+
w !== 0 && (E = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = ye, p.onreadystatechange());
|
|
4079
4081
|
}
|
|
4080
4082
|
}, R = function() {
|
|
4081
4083
|
if (m(), E === 2 || E === 3) {
|
|
@@ -4083,29 +4085,29 @@ var en = { exports: {} };
|
|
|
4083
4085
|
var w = "";
|
|
4084
4086
|
try {
|
|
4085
4087
|
w = h.responseText;
|
|
4086
|
-
} catch (
|
|
4088
|
+
} catch (V) {
|
|
4087
4089
|
}
|
|
4088
4090
|
p.readyState = 3, p.responseText = w, p.onprogress();
|
|
4089
4091
|
}
|
|
4090
|
-
}, A = function(w,
|
|
4091
|
-
if ((
|
|
4092
|
+
}, A = function(w, V) {
|
|
4093
|
+
if ((V == null || V.preventDefault == null) && (V = {
|
|
4092
4094
|
preventDefault: C
|
|
4093
4095
|
}), R(), E === 1 || E === 2 || E === 3) {
|
|
4094
4096
|
if (E = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, w === "load")
|
|
4095
|
-
p.onload(
|
|
4097
|
+
p.onload(V);
|
|
4096
4098
|
else if (w === "error")
|
|
4097
|
-
p.onerror(
|
|
4099
|
+
p.onerror(V);
|
|
4098
4100
|
else if (w === "abort")
|
|
4099
|
-
p.onabort(
|
|
4101
|
+
p.onabort(V);
|
|
4100
4102
|
else
|
|
4101
4103
|
throw new TypeError();
|
|
4102
4104
|
p.onreadystatechange();
|
|
4103
4105
|
}
|
|
4104
|
-
},
|
|
4106
|
+
}, I = function(w) {
|
|
4105
4107
|
h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && A(h.responseText === "" ? "error" : "load", w) : h.readyState === 3 ? "onprogress" in h || R() : h.readyState === 2 && m());
|
|
4106
|
-
},
|
|
4108
|
+
}, F = function() {
|
|
4107
4109
|
v = r(function() {
|
|
4108
|
-
|
|
4110
|
+
F();
|
|
4109
4111
|
}, 500), h.readyState === 3 && R();
|
|
4110
4112
|
};
|
|
4111
4113
|
"onload" in h && (h.onload = function(w) {
|
|
@@ -4115,24 +4117,24 @@ var en = { exports: {} };
|
|
|
4115
4117
|
}), "onabort" in h && (h.onabort = function(w) {
|
|
4116
4118
|
A("abort", w);
|
|
4117
4119
|
}), "onprogress" in h && (h.onprogress = R), "onreadystatechange" in h && (h.onreadystatechange = function(w) {
|
|
4118
|
-
|
|
4119
|
-
}), ("contentType" in h || !("ontimeout" in
|
|
4120
|
-
|
|
4120
|
+
I(w);
|
|
4121
|
+
}), ("contentType" in h || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(a, f, !0), "readyState" in h && (v = r(function() {
|
|
4122
|
+
F();
|
|
4121
4123
|
}, 0));
|
|
4122
|
-
},
|
|
4124
|
+
}, D.prototype.abort = function() {
|
|
4123
4125
|
this._abort(!1);
|
|
4124
|
-
},
|
|
4126
|
+
}, D.prototype.getResponseHeader = function(a) {
|
|
4125
4127
|
return this._contentType;
|
|
4126
|
-
},
|
|
4128
|
+
}, D.prototype.setRequestHeader = function(a, f) {
|
|
4127
4129
|
var p = this._xhr;
|
|
4128
|
-
"setRequestHeader" in p && p.setRequestHeader(
|
|
4129
|
-
},
|
|
4130
|
+
"setRequestHeader" in p && p.setRequestHeader(a, f);
|
|
4131
|
+
}, D.prototype.getAllResponseHeaders = function() {
|
|
4130
4132
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4131
|
-
},
|
|
4132
|
-
if ((!("ontimeout" in
|
|
4133
|
-
var
|
|
4134
|
-
|
|
4135
|
-
|
|
4133
|
+
}, D.prototype.send = function() {
|
|
4134
|
+
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4135
|
+
var a = this;
|
|
4136
|
+
a._sendTimeout = r(function() {
|
|
4137
|
+
a._sendTimeout = 0, a.send();
|
|
4136
4138
|
}, 4);
|
|
4137
4139
|
return;
|
|
4138
4140
|
}
|
|
@@ -4144,76 +4146,76 @@ var en = { exports: {} };
|
|
|
4144
4146
|
throw p;
|
|
4145
4147
|
}
|
|
4146
4148
|
};
|
|
4147
|
-
function W(
|
|
4148
|
-
return
|
|
4149
|
+
function W(a) {
|
|
4150
|
+
return a.replace(/[A-Z]/g, function(f) {
|
|
4149
4151
|
return String.fromCharCode(f.charCodeAt(0) + 32);
|
|
4150
4152
|
});
|
|
4151
4153
|
}
|
|
4152
|
-
function J(
|
|
4153
|
-
for (var f = /* @__PURE__ */ Object.create(null), p =
|
|
4154
|
+
function J(a) {
|
|
4155
|
+
for (var f = /* @__PURE__ */ Object.create(null), p = a.split(`\r
|
|
4154
4156
|
`), h = 0; h < p.length; h += 1) {
|
|
4155
4157
|
var E = p[h], v = E.split(": "), m = v.shift(), R = v.join(": ");
|
|
4156
4158
|
f[W(m)] = R;
|
|
4157
4159
|
}
|
|
4158
4160
|
this._map = f;
|
|
4159
4161
|
}
|
|
4160
|
-
J.prototype.get = function(
|
|
4161
|
-
return this._map[W(
|
|
4162
|
-
},
|
|
4162
|
+
J.prototype.get = function(a) {
|
|
4163
|
+
return this._map[W(a)];
|
|
4164
|
+
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4163
4165
|
function Y() {
|
|
4164
4166
|
}
|
|
4165
|
-
Y.prototype.open = function(
|
|
4166
|
-
|
|
4167
|
+
Y.prototype.open = function(a, f, p, h, E, v, m) {
|
|
4168
|
+
a.open("GET", E);
|
|
4167
4169
|
var R = 0;
|
|
4168
|
-
|
|
4169
|
-
var
|
|
4170
|
-
R +=
|
|
4171
|
-
},
|
|
4172
|
-
|
|
4173
|
-
},
|
|
4170
|
+
a.onprogress = function() {
|
|
4171
|
+
var I = a.responseText, F = I.slice(R);
|
|
4172
|
+
R += F.length, p(F);
|
|
4173
|
+
}, a.onerror = function(I) {
|
|
4174
|
+
I.preventDefault(), h(new Error("NetworkError"));
|
|
4175
|
+
}, a.onload = function() {
|
|
4174
4176
|
h(null);
|
|
4175
|
-
},
|
|
4177
|
+
}, a.onabort = function() {
|
|
4176
4178
|
h(null);
|
|
4177
|
-
},
|
|
4178
|
-
if (
|
|
4179
|
-
var
|
|
4180
|
-
f(
|
|
4179
|
+
}, a.onreadystatechange = function() {
|
|
4180
|
+
if (a.readyState === o.HEADERS_RECEIVED) {
|
|
4181
|
+
var I = a.status, F = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
|
|
4182
|
+
f(I, F, w, new J(V));
|
|
4181
4183
|
}
|
|
4182
|
-
},
|
|
4184
|
+
}, a.withCredentials = v;
|
|
4183
4185
|
for (var A in m)
|
|
4184
|
-
Object.prototype.hasOwnProperty.call(m, A) &&
|
|
4185
|
-
return
|
|
4186
|
+
Object.prototype.hasOwnProperty.call(m, A) && a.setRequestHeader(A, m[A]);
|
|
4187
|
+
return a.send(), a;
|
|
4186
4188
|
};
|
|
4187
|
-
function
|
|
4188
|
-
this._headers =
|
|
4189
|
+
function G(a) {
|
|
4190
|
+
this._headers = a;
|
|
4189
4191
|
}
|
|
4190
|
-
|
|
4191
|
-
return this._headers.get(
|
|
4192
|
+
G.prototype.get = function(a) {
|
|
4193
|
+
return this._headers.get(a);
|
|
4192
4194
|
};
|
|
4193
|
-
function
|
|
4195
|
+
function N() {
|
|
4194
4196
|
}
|
|
4195
|
-
|
|
4196
|
-
var R = null, A = new T(),
|
|
4197
|
+
N.prototype.open = function(a, f, p, h, E, v, m) {
|
|
4198
|
+
var R = null, A = new T(), I = A.signal, F = new _();
|
|
4197
4199
|
return g(E, {
|
|
4198
4200
|
headers: m,
|
|
4199
4201
|
credentials: v ? "include" : "same-origin",
|
|
4200
|
-
signal:
|
|
4202
|
+
signal: I,
|
|
4201
4203
|
cache: "no-store"
|
|
4202
4204
|
}).then(function(w) {
|
|
4203
|
-
return R = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new
|
|
4204
|
-
var
|
|
4205
|
+
return R = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new G(w.headers)), new d(function(V, ye) {
|
|
4206
|
+
var Ye = function() {
|
|
4205
4207
|
R.read().then(function(ie) {
|
|
4206
4208
|
if (ie.done)
|
|
4207
|
-
|
|
4209
|
+
V(void 0);
|
|
4208
4210
|
else {
|
|
4209
|
-
var K =
|
|
4210
|
-
p(K),
|
|
4211
|
+
var K = F.decode(ie.value, { stream: !0 });
|
|
4212
|
+
p(K), Ye();
|
|
4211
4213
|
}
|
|
4212
4214
|
}).catch(function(ie) {
|
|
4213
|
-
|
|
4215
|
+
ye(ie);
|
|
4214
4216
|
});
|
|
4215
4217
|
};
|
|
4216
|
-
|
|
4218
|
+
Ye();
|
|
4217
4219
|
});
|
|
4218
4220
|
}).catch(function(w) {
|
|
4219
4221
|
if (w.name !== "AbortError")
|
|
@@ -4226,197 +4228,197 @@ var en = { exports: {} };
|
|
|
4226
4228
|
}
|
|
4227
4229
|
};
|
|
4228
4230
|
};
|
|
4229
|
-
function
|
|
4231
|
+
function $() {
|
|
4230
4232
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4231
4233
|
}
|
|
4232
|
-
function
|
|
4234
|
+
function U(a) {
|
|
4233
4235
|
r(function() {
|
|
4234
|
-
throw
|
|
4236
|
+
throw a;
|
|
4235
4237
|
}, 0);
|
|
4236
4238
|
}
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
var f = this._listeners[
|
|
4239
|
+
$.prototype.dispatchEvent = function(a) {
|
|
4240
|
+
a.target = this;
|
|
4241
|
+
var f = this._listeners[a.type];
|
|
4240
4242
|
if (f != null)
|
|
4241
4243
|
for (var p = f.length, h = 0; h < p; h += 1) {
|
|
4242
4244
|
var E = f[h];
|
|
4243
4245
|
try {
|
|
4244
|
-
typeof E.handleEvent == "function" ? E.handleEvent(
|
|
4246
|
+
typeof E.handleEvent == "function" ? E.handleEvent(a) : E.call(this, a);
|
|
4245
4247
|
} catch (v) {
|
|
4246
|
-
|
|
4248
|
+
U(v);
|
|
4247
4249
|
}
|
|
4248
4250
|
}
|
|
4249
|
-
},
|
|
4250
|
-
|
|
4251
|
-
var p = this._listeners, h = p[
|
|
4252
|
-
h == null && (h = [], p[
|
|
4251
|
+
}, $.prototype.addEventListener = function(a, f) {
|
|
4252
|
+
a = String(a);
|
|
4253
|
+
var p = this._listeners, h = p[a];
|
|
4254
|
+
h == null && (h = [], p[a] = h);
|
|
4253
4255
|
for (var E = !1, v = 0; v < h.length; v += 1)
|
|
4254
4256
|
h[v] === f && (E = !0);
|
|
4255
4257
|
E || h.push(f);
|
|
4256
|
-
},
|
|
4257
|
-
|
|
4258
|
-
var p = this._listeners, h = p[
|
|
4258
|
+
}, $.prototype.removeEventListener = function(a, f) {
|
|
4259
|
+
a = String(a);
|
|
4260
|
+
var p = this._listeners, h = p[a];
|
|
4259
4261
|
if (h != null) {
|
|
4260
4262
|
for (var E = [], v = 0; v < h.length; v += 1)
|
|
4261
4263
|
h[v] !== f && E.push(h[v]);
|
|
4262
|
-
E.length === 0 ? delete p[
|
|
4264
|
+
E.length === 0 ? delete p[a] : p[a] = E;
|
|
4263
4265
|
}
|
|
4264
4266
|
};
|
|
4265
|
-
function y(
|
|
4266
|
-
this.type =
|
|
4267
|
+
function y(a) {
|
|
4268
|
+
this.type = a, this.target = void 0;
|
|
4267
4269
|
}
|
|
4268
|
-
function
|
|
4269
|
-
y.call(this,
|
|
4270
|
+
function Be(a, f) {
|
|
4271
|
+
y.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
|
|
4270
4272
|
}
|
|
4271
|
-
|
|
4272
|
-
function
|
|
4273
|
-
y.call(this,
|
|
4273
|
+
Be.prototype = Object.create(y.prototype);
|
|
4274
|
+
function qe(a, f) {
|
|
4275
|
+
y.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
|
|
4274
4276
|
}
|
|
4275
|
-
|
|
4276
|
-
function
|
|
4277
|
-
y.call(this,
|
|
4277
|
+
qe.prototype = Object.create(y.prototype);
|
|
4278
|
+
function Te(a, f) {
|
|
4279
|
+
y.call(this, a), this.error = f.error;
|
|
4278
4280
|
}
|
|
4279
|
-
|
|
4280
|
-
var
|
|
4281
|
-
var p =
|
|
4282
|
-
return p !== p && (p = f),
|
|
4283
|
-
},
|
|
4284
|
-
return Math.min(Math.max(
|
|
4285
|
-
},
|
|
4281
|
+
Te.prototype = Object.create(y.prototype);
|
|
4282
|
+
var Le = -1, me = 0, we = 1, Ce = 2, He = -1, ue = 0, Qe = 1, Me = 2, at = 3, St = /^text\/event\-stream(;.*)?$/i, st = 1e3, At = 18e6, Je = function(a, f) {
|
|
4283
|
+
var p = a == null ? f : parseInt(a, 10);
|
|
4284
|
+
return p !== p && (p = f), Ne(p);
|
|
4285
|
+
}, Ne = function(a) {
|
|
4286
|
+
return Math.min(Math.max(a, st), At);
|
|
4287
|
+
}, Se = function(a, f, p) {
|
|
4286
4288
|
try {
|
|
4287
|
-
typeof f == "function" && f.call(
|
|
4289
|
+
typeof f == "function" && f.call(a, p);
|
|
4288
4290
|
} catch (h) {
|
|
4289
|
-
|
|
4291
|
+
U(h);
|
|
4290
4292
|
}
|
|
4291
4293
|
};
|
|
4292
|
-
function re(
|
|
4293
|
-
|
|
4294
|
+
function re(a, f) {
|
|
4295
|
+
$.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, Ot(this, a, f);
|
|
4294
4296
|
}
|
|
4295
|
-
function
|
|
4296
|
-
return
|
|
4297
|
+
function Ct() {
|
|
4298
|
+
return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
|
|
4297
4299
|
}
|
|
4298
|
-
var
|
|
4299
|
-
function
|
|
4300
|
+
var Ht = g != null && b != null && "body" in b.prototype;
|
|
4301
|
+
function Ot(a, f, p) {
|
|
4300
4302
|
f = String(f);
|
|
4301
|
-
var h = !!p.withCredentials, E = p.lastEventIdQueryParameterName || "lastEventId", v =
|
|
4303
|
+
var h = !!p.withCredentials, E = p.lastEventIdQueryParameterName || "lastEventId", v = Ne(1e3), m = Je(p.heartbeatTimeout, 45e3), R = "", A = v, I = !1, F = 0, w = p.headers || {}, V = p.Transport, ye = Ht && V == null ? void 0 : new D(V != null ? new V() : Ct()), Ye = V != null && typeof V != "string" ? new V() : ye == null ? new N() : new Y(), ie = void 0, K = 0, ce = Le, Ie = "", ut = "", ve = "", ct = "", ee = ue, Rt = 0, Oe = 0, cr = function(Z, z, oe, ae) {
|
|
4302
4304
|
if (ce === me)
|
|
4303
|
-
if (Z === 200 &&
|
|
4304
|
-
ce =
|
|
4305
|
-
var te = new
|
|
4305
|
+
if (Z === 200 && oe != null && St.test(oe)) {
|
|
4306
|
+
ce = we, I = Date.now(), A = v, a.readyState = we;
|
|
4307
|
+
var te = new qe("open", {
|
|
4306
4308
|
status: Z,
|
|
4307
4309
|
statusText: z,
|
|
4308
|
-
headers:
|
|
4310
|
+
headers: ae
|
|
4309
4311
|
});
|
|
4310
|
-
|
|
4312
|
+
a.dispatchEvent(te), Se(a, a.onopen, te);
|
|
4311
4313
|
} else {
|
|
4312
4314
|
var q = "";
|
|
4313
|
-
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: " + (
|
|
4314
|
-
var te = new
|
|
4315
|
+
Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Lt();
|
|
4316
|
+
var te = new qe("error", {
|
|
4315
4317
|
status: Z,
|
|
4316
4318
|
statusText: z,
|
|
4317
|
-
headers:
|
|
4319
|
+
headers: ae
|
|
4318
4320
|
});
|
|
4319
|
-
|
|
4321
|
+
a.dispatchEvent(te), Se(a, a.onerror, te), console.error(q);
|
|
4320
4322
|
}
|
|
4321
|
-
},
|
|
4322
|
-
if (ce ===
|
|
4323
|
-
for (var z = -1,
|
|
4324
|
-
var
|
|
4325
|
-
(
|
|
4323
|
+
}, hr = function(Z) {
|
|
4324
|
+
if (ce === we) {
|
|
4325
|
+
for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
|
|
4326
|
+
var ae = Z.charCodeAt(oe);
|
|
4327
|
+
(ae === 10 || ae === 13) && (z = oe);
|
|
4326
4328
|
}
|
|
4327
|
-
var te = (z !== -1 ?
|
|
4328
|
-
|
|
4329
|
+
var te = (z !== -1 ? ct : "") + Z.slice(0, z + 1);
|
|
4330
|
+
ct = (z === -1 ? ct : "") + Z.slice(z + 1), Z !== "" && (I = Date.now(), F += Z.length);
|
|
4329
4331
|
for (var q = 0; q < te.length; q += 1) {
|
|
4330
|
-
var
|
|
4331
|
-
if (ee ===
|
|
4332
|
+
var ae = te.charCodeAt(q);
|
|
4333
|
+
if (ee === He && ae === 10)
|
|
4332
4334
|
ee = ue;
|
|
4333
|
-
else if (ee ===
|
|
4335
|
+
else if (ee === He && (ee = ue), ae === 13 || ae === 10) {
|
|
4334
4336
|
if (ee !== ue) {
|
|
4335
|
-
ee ===
|
|
4336
|
-
var
|
|
4337
|
-
|
|
4338
|
-
`,
|
|
4339
|
-
|
|
4337
|
+
ee === Qe && (Oe = q + 1);
|
|
4338
|
+
var Ee = te.slice(Rt, Oe - 1), xe = te.slice(Oe + (Oe < q && te.charCodeAt(Oe) === 32 ? 1 : 0), q);
|
|
4339
|
+
Ee === "data" ? (Ie += `
|
|
4340
|
+
`, Ie += xe) : Ee === "id" ? ut = xe : Ee === "event" ? ve = xe : Ee === "retry" ? (v = Je(xe, v), A = v) : Ee === "heartbeatTimeout" && (m = Je(xe, m), K !== 0 && (i(K), K = r(function() {
|
|
4341
|
+
Ke();
|
|
4340
4342
|
}, m)));
|
|
4341
4343
|
}
|
|
4342
4344
|
if (ee === ue) {
|
|
4343
|
-
if (
|
|
4344
|
-
R =
|
|
4345
|
-
var
|
|
4346
|
-
data:
|
|
4347
|
-
lastEventId:
|
|
4345
|
+
if (Ie !== "") {
|
|
4346
|
+
R = ut, ve === "" && (ve = "message");
|
|
4347
|
+
var Pe = new Be(ve, {
|
|
4348
|
+
data: Ie.slice(1),
|
|
4349
|
+
lastEventId: ut
|
|
4348
4350
|
});
|
|
4349
|
-
if (
|
|
4351
|
+
if (a.dispatchEvent(Pe), ve === "open" ? Se(a, a.onopen, Pe) : ve === "message" ? Se(a, a.onmessage, Pe) : ve === "error" && Se(a, a.onerror, Pe), ce === Ce)
|
|
4350
4352
|
return;
|
|
4351
4353
|
}
|
|
4352
|
-
|
|
4354
|
+
Ie = "", ve = "";
|
|
4353
4355
|
}
|
|
4354
|
-
ee =
|
|
4356
|
+
ee = ae === 13 ? He : ue;
|
|
4355
4357
|
} else
|
|
4356
|
-
ee === ue && (
|
|
4358
|
+
ee === ue && (Rt = q, ee = Qe), ee === Qe ? ae === 58 && (Oe = q + 1, ee = Me) : ee === Me && (ee = at);
|
|
4357
4359
|
}
|
|
4358
4360
|
}
|
|
4359
|
-
},
|
|
4360
|
-
if (ce ===
|
|
4361
|
-
ce =
|
|
4362
|
-
|
|
4363
|
-
}, A), A =
|
|
4364
|
-
var z = new
|
|
4365
|
-
|
|
4361
|
+
}, ln = function(Z) {
|
|
4362
|
+
if (ce === we || ce === me) {
|
|
4363
|
+
ce = Le, K !== 0 && (i(K), K = 0), K = r(function() {
|
|
4364
|
+
Ke();
|
|
4365
|
+
}, A), A = Ne(Math.min(v * 16, A * 2)), a.readyState = me;
|
|
4366
|
+
var z = new Te("error", { error: Z });
|
|
4367
|
+
a.dispatchEvent(z), Se(a, a.onerror, z), Z != null && console.error(Z);
|
|
4366
4368
|
}
|
|
4367
|
-
},
|
|
4368
|
-
ce =
|
|
4369
|
-
},
|
|
4370
|
-
if (K = 0, ce !==
|
|
4371
|
-
if (!
|
|
4372
|
-
|
|
4369
|
+
}, Lt = function() {
|
|
4370
|
+
ce = Ce, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ce;
|
|
4371
|
+
}, Ke = function() {
|
|
4372
|
+
if (K = 0, ce !== Le) {
|
|
4373
|
+
if (!I && ie != null)
|
|
4374
|
+
ln(new Error("No activity within " + m + " milliseconds. " + (ce === me ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
|
|
4373
4375
|
else {
|
|
4374
|
-
var Z = Math.max((
|
|
4375
|
-
|
|
4376
|
-
|
|
4376
|
+
var Z = Math.max((I || Date.now()) + m - Date.now(), 1);
|
|
4377
|
+
I = !1, K = r(function() {
|
|
4378
|
+
Ke();
|
|
4377
4379
|
}, Z);
|
|
4378
4380
|
}
|
|
4379
4381
|
return;
|
|
4380
4382
|
}
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
}, m), ce = me,
|
|
4383
|
+
I = !1, F = 0, K = r(function() {
|
|
4384
|
+
Ke();
|
|
4385
|
+
}, m), ce = me, Ie = "", ve = "", ut = R, ct = "", Rt = 0, Oe = 0, ee = ue;
|
|
4384
4386
|
var z = f;
|
|
4385
4387
|
if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && R !== "") {
|
|
4386
|
-
var
|
|
4387
|
-
z =
|
|
4388
|
-
return
|
|
4388
|
+
var oe = f.indexOf("?");
|
|
4389
|
+
z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Pe) {
|
|
4390
|
+
return Pe === E ? "" : xe;
|
|
4389
4391
|
}), z += (f.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(R);
|
|
4390
4392
|
}
|
|
4391
|
-
var
|
|
4393
|
+
var ae = a.withCredentials, te = {};
|
|
4392
4394
|
te.Accept = "text/event-stream";
|
|
4393
|
-
var q =
|
|
4395
|
+
var q = a.headers;
|
|
4394
4396
|
if (q != null)
|
|
4395
|
-
for (var
|
|
4396
|
-
Object.prototype.hasOwnProperty.call(q,
|
|
4397
|
+
for (var Ee in q)
|
|
4398
|
+
Object.prototype.hasOwnProperty.call(q, Ee) && (te[Ee] = q[Ee]);
|
|
4397
4399
|
try {
|
|
4398
|
-
ie =
|
|
4399
|
-
} catch (
|
|
4400
|
-
throw
|
|
4400
|
+
ie = Ye.open(ye, cr, hr, ln, z, ae, te);
|
|
4401
|
+
} catch (xe) {
|
|
4402
|
+
throw Lt(), xe;
|
|
4401
4403
|
}
|
|
4402
4404
|
};
|
|
4403
|
-
|
|
4405
|
+
a.url = f, a.readyState = me, a.withCredentials = h, a.headers = w, a._close = Lt, Ke();
|
|
4404
4406
|
}
|
|
4405
|
-
re.prototype = Object.create(
|
|
4407
|
+
re.prototype = Object.create($.prototype), re.prototype.CONNECTING = me, re.prototype.OPEN = we, re.prototype.CLOSED = Ce, re.prototype.close = function() {
|
|
4406
4408
|
this._close();
|
|
4407
|
-
}, re.CONNECTING = me, re.OPEN =
|
|
4408
|
-
var
|
|
4409
|
-
|
|
4409
|
+
}, re.CONNECTING = me, re.OPEN = we, re.CLOSED = Ce, re.prototype.withCredentials = void 0;
|
|
4410
|
+
var lt = c;
|
|
4411
|
+
o != null && (c == null || !("withCredentials" in c.prototype)) && (lt = re), function(a) {
|
|
4410
4412
|
{
|
|
4411
|
-
var f =
|
|
4413
|
+
var f = a(t);
|
|
4412
4414
|
f !== void 0 && (e.exports = f);
|
|
4413
4415
|
}
|
|
4414
|
-
}(function(
|
|
4415
|
-
|
|
4416
|
+
}(function(a) {
|
|
4417
|
+
a.EventSourcePolyfill = re, a.NativeEventSource = c, a.EventSource = lt;
|
|
4416
4418
|
});
|
|
4417
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self :
|
|
4418
|
-
})(
|
|
4419
|
-
var
|
|
4419
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Vr : globalThis);
|
|
4420
|
+
})(nn, nn.exports);
|
|
4421
|
+
var No = nn.exports;
|
|
4420
4422
|
/*!
|
|
4421
4423
|
* currency.js - v2.0.4
|
|
4422
4424
|
* http://scurker.github.io/currency.js
|
|
@@ -4424,7 +4426,7 @@ var La = en.exports;
|
|
|
4424
4426
|
* Copyright (c) 2021 Jason Wilson
|
|
4425
4427
|
* Released under MIT license
|
|
4426
4428
|
*/
|
|
4427
|
-
var
|
|
4429
|
+
var Io = {
|
|
4428
4430
|
symbol: "$",
|
|
4429
4431
|
separator: ",",
|
|
4430
4432
|
decimal: ".",
|
|
@@ -4432,24 +4434,24 @@ var Ma = {
|
|
|
4432
4434
|
precision: 2,
|
|
4433
4435
|
pattern: "!#",
|
|
4434
4436
|
negativePattern: "-!#",
|
|
4435
|
-
format:
|
|
4437
|
+
format: Fo,
|
|
4436
4438
|
fromCents: !1
|
|
4437
|
-
},
|
|
4439
|
+
}, ur = function(t) {
|
|
4438
4440
|
return Math.round(t);
|
|
4439
|
-
},
|
|
4441
|
+
}, sn = function(t) {
|
|
4440
4442
|
return Math.pow(10, t);
|
|
4441
|
-
},
|
|
4442
|
-
return
|
|
4443
|
-
},
|
|
4443
|
+
}, Po = function(t, n) {
|
|
4444
|
+
return ur(t / n) * n;
|
|
4445
|
+
}, Do = /(\d)(?=(\d{3})+\b)/g, Uo = /(\d)(?=(\d\d)+\d\b)/g;
|
|
4444
4446
|
function he(e, t) {
|
|
4445
4447
|
var n = this;
|
|
4446
4448
|
if (!(n instanceof he))
|
|
4447
4449
|
return new he(e, t);
|
|
4448
|
-
var r = Object.assign({},
|
|
4449
|
-
n.intValue =
|
|
4450
|
+
var r = Object.assign({}, Io, t), i = sn(r.precision), o = mt(e, r);
|
|
4451
|
+
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Uo : r.groups = Do, this.s = r, this.p = i;
|
|
4450
4452
|
}
|
|
4451
|
-
function
|
|
4452
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal,
|
|
4453
|
+
function mt(e, t) {
|
|
4454
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, c = sn(l), u = typeof e == "number", d = e instanceof he;
|
|
4453
4455
|
if (d && s)
|
|
4454
4456
|
return e.intValue;
|
|
4455
4457
|
if (u || d)
|
|
@@ -4458,15 +4460,15 @@ function pt(e, t) {
|
|
|
4458
4460
|
var g = new RegExp("[^-\\d" + i + "]", "g"), b = new RegExp("\\" + i, "g");
|
|
4459
4461
|
r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(b, "."), r = r || 0;
|
|
4460
4462
|
} else {
|
|
4461
|
-
if (
|
|
4463
|
+
if (o)
|
|
4462
4464
|
throw Error("Invalid Input");
|
|
4463
4465
|
r = 0;
|
|
4464
4466
|
}
|
|
4465
|
-
return s || (r *= c, r = r.toFixed(4)), n ?
|
|
4467
|
+
return s || (r *= c, r = r.toFixed(4)), n ? ur(r) : r;
|
|
4466
4468
|
}
|
|
4467
|
-
function
|
|
4468
|
-
var n = t.pattern, r = t.negativePattern, i = t.symbol,
|
|
4469
|
-
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" +
|
|
4469
|
+
function Fo(e, t) {
|
|
4470
|
+
var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], d = c[1];
|
|
4471
|
+
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
|
|
4470
4472
|
}
|
|
4471
4473
|
he.prototype = {
|
|
4472
4474
|
/**
|
|
@@ -4476,7 +4478,7 @@ he.prototype = {
|
|
|
4476
4478
|
*/
|
|
4477
4479
|
add: function(t) {
|
|
4478
4480
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4479
|
-
return he((n +=
|
|
4481
|
+
return he((n += mt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4480
4482
|
},
|
|
4481
4483
|
/**
|
|
4482
4484
|
* Subtracts value.
|
|
@@ -4485,7 +4487,7 @@ he.prototype = {
|
|
|
4485
4487
|
*/
|
|
4486
4488
|
subtract: function(t) {
|
|
4487
4489
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4488
|
-
return he((n -=
|
|
4490
|
+
return he((n -= mt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4489
4491
|
},
|
|
4490
4492
|
/**
|
|
4491
4493
|
* Multiplies values.
|
|
@@ -4494,7 +4496,7 @@ he.prototype = {
|
|
|
4494
4496
|
*/
|
|
4495
4497
|
multiply: function(t) {
|
|
4496
4498
|
var n = this.intValue, r = this.s;
|
|
4497
|
-
return he((n *= t) / (r.fromCents ? 1 :
|
|
4499
|
+
return he((n *= t) / (r.fromCents ? 1 : sn(r.precision)), r);
|
|
4498
4500
|
},
|
|
4499
4501
|
/**
|
|
4500
4502
|
* Divides value.
|
|
@@ -4503,7 +4505,7 @@ he.prototype = {
|
|
|
4503
4505
|
*/
|
|
4504
4506
|
divide: function(t) {
|
|
4505
4507
|
var n = this.intValue, r = this.s;
|
|
4506
|
-
return he(n /=
|
|
4508
|
+
return he(n /= mt(t, r, !1), r);
|
|
4507
4509
|
},
|
|
4508
4510
|
/**
|
|
4509
4511
|
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
|
@@ -4512,11 +4514,11 @@ he.prototype = {
|
|
|
4512
4514
|
* @returns {array}
|
|
4513
4515
|
*/
|
|
4514
4516
|
distribute: function(t) {
|
|
4515
|
-
for (var n = this.intValue, r = this.p, i = this.s,
|
|
4517
|
+
for (var n = this.intValue, r = this.p, i = this.s, o = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - l * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
|
|
4516
4518
|
var u = he(l / c, i);
|
|
4517
|
-
s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)),
|
|
4519
|
+
s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)), o.push(u);
|
|
4518
4520
|
}
|
|
4519
|
-
return
|
|
4521
|
+
return o;
|
|
4520
4522
|
},
|
|
4521
4523
|
/**
|
|
4522
4524
|
* Returns the dollar value.
|
|
@@ -4548,7 +4550,7 @@ he.prototype = {
|
|
|
4548
4550
|
*/
|
|
4549
4551
|
toString: function() {
|
|
4550
4552
|
var t = this.intValue, n = this.p, r = this.s;
|
|
4551
|
-
return
|
|
4553
|
+
return Po(t / n, r.increment).toFixed(r.precision);
|
|
4552
4554
|
},
|
|
4553
4555
|
/**
|
|
4554
4556
|
* Value for JSON serialization.
|
|
@@ -4558,18 +4560,18 @@ he.prototype = {
|
|
|
4558
4560
|
return this.value;
|
|
4559
4561
|
}
|
|
4560
4562
|
};
|
|
4561
|
-
function
|
|
4562
|
-
|
|
4563
|
+
function Go(e) {
|
|
4564
|
+
vr(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}');
|
|
4563
4565
|
}
|
|
4564
|
-
function
|
|
4566
|
+
function Cn(e, t, n) {
|
|
4565
4567
|
const r = e.slice();
|
|
4566
4568
|
return r[50] = t[n], r;
|
|
4567
4569
|
}
|
|
4568
|
-
function
|
|
4570
|
+
function Hn(e, t, n) {
|
|
4569
4571
|
const r = e.slice();
|
|
4570
4572
|
return r[53] = t[n], r;
|
|
4571
4573
|
}
|
|
4572
|
-
function
|
|
4574
|
+
function $o(e) {
|
|
4573
4575
|
let t, n, r = (
|
|
4574
4576
|
/*balances*/
|
|
4575
4577
|
(e[1].Total ? (
|
|
@@ -4579,28 +4581,28 @@ function Fa(e) {
|
|
|
4579
4581
|
e[1].Total[0].amount
|
|
4580
4582
|
)
|
|
4581
4583
|
) : "0") + ""
|
|
4582
|
-
), i,
|
|
4584
|
+
), i, o, l, s, c, u, d, g, b, _, B, T, x = (
|
|
4583
4585
|
/*showBalance*/
|
|
4584
|
-
e[4] &&
|
|
4586
|
+
e[4] && On(e)
|
|
4585
4587
|
);
|
|
4586
4588
|
return {
|
|
4587
4589
|
c() {
|
|
4588
|
-
t =
|
|
4590
|
+
t = k("button"), n = k("p"), i = fe(r), o = pe(), l = fe(
|
|
4589
4591
|
/*currency*/
|
|
4590
4592
|
e[5]
|
|
4591
|
-
), s = pe(), c =
|
|
4593
|
+
), s = pe(), c = k("span"), u = hn("svg"), d = hn("path"), b = pe(), x && x.c(), _ = _r(), 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(c, "class", g = /*isModalDisplayed*/
|
|
4592
4594
|
e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
|
|
4593
4595
|
},
|
|
4594
|
-
m(S,
|
|
4595
|
-
|
|
4596
|
+
m(S, P) {
|
|
4597
|
+
be(S, t, P), H(t, n), H(n, i), H(n, o), H(n, l), H(t, s), H(t, c), H(c, u), H(u, d), be(S, b, P), x && x.m(S, P), be(S, _, P), B || (T = gt(
|
|
4596
4598
|
t,
|
|
4597
4599
|
"click",
|
|
4598
4600
|
/*click_handler*/
|
|
4599
4601
|
e[25]
|
|
4600
4602
|
), B = !0);
|
|
4601
4603
|
},
|
|
4602
|
-
p(S,
|
|
4603
|
-
|
|
4604
|
+
p(S, P) {
|
|
4605
|
+
P[0] & /*balances*/
|
|
4604
4606
|
2 && r !== (r = /*balances*/
|
|
4605
4607
|
(S[1].Total ? (
|
|
4606
4608
|
/*formatBalance*/
|
|
@@ -4608,79 +4610,79 @@ function Fa(e) {
|
|
|
4608
4610
|
/*balances*/
|
|
4609
4611
|
S[1].Total[0].amount
|
|
4610
4612
|
)
|
|
4611
|
-
) : "0") + "") &&
|
|
4612
|
-
32 &&
|
|
4613
|
+
) : "0") + "") && _e(i, r), P[0] & /*currency*/
|
|
4614
|
+
32 && _e(
|
|
4613
4615
|
l,
|
|
4614
4616
|
/*currency*/
|
|
4615
4617
|
S[5]
|
|
4616
|
-
),
|
|
4618
|
+
), P[0] & /*isModalDisplayed*/
|
|
4617
4619
|
8 && g !== (g = /*isModalDisplayed*/
|
|
4618
4620
|
S[3] ? "TriangleActive" : "TriangleInactive") && M(c, "class", g), /*showBalance*/
|
|
4619
|
-
S[4] ? x ? x.p(S,
|
|
4621
|
+
S[4] ? x ? x.p(S, P) : (x = On(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
|
|
4620
4622
|
},
|
|
4621
4623
|
d(S) {
|
|
4622
4624
|
S && (de(t), de(b), de(_)), x && x.d(S), B = !1, T();
|
|
4623
4625
|
}
|
|
4624
4626
|
};
|
|
4625
4627
|
}
|
|
4626
|
-
function
|
|
4628
|
+
function jo(e) {
|
|
4627
4629
|
let t, n = (
|
|
4628
4630
|
/*$_*/
|
|
4629
4631
|
e[6]("Loading") + ""
|
|
4630
4632
|
), r;
|
|
4631
4633
|
return {
|
|
4632
4634
|
c() {
|
|
4633
|
-
t =
|
|
4635
|
+
t = k("p"), r = fe(n), M(t, "class", "Loading");
|
|
4634
4636
|
},
|
|
4635
|
-
m(i,
|
|
4636
|
-
|
|
4637
|
+
m(i, o) {
|
|
4638
|
+
be(i, t, o), H(t, r);
|
|
4637
4639
|
},
|
|
4638
|
-
p(i,
|
|
4639
|
-
|
|
4640
|
+
p(i, o) {
|
|
4641
|
+
o[0] & /*$_*/
|
|
4640
4642
|
64 && n !== (n = /*$_*/
|
|
4641
|
-
i[6]("Loading") + "") &&
|
|
4643
|
+
i[6]("Loading") + "") && _e(r, n);
|
|
4642
4644
|
},
|
|
4643
4645
|
d(i) {
|
|
4644
4646
|
i && de(t);
|
|
4645
4647
|
}
|
|
4646
4648
|
};
|
|
4647
4649
|
}
|
|
4648
|
-
function
|
|
4649
|
-
let t, n, r, i,
|
|
4650
|
+
function On(e) {
|
|
4651
|
+
let t, n, r, i, o, l, s, c, u = (
|
|
4650
4652
|
/*$_*/
|
|
4651
4653
|
e[6]("Title") + ""
|
|
4652
4654
|
), d, g, b, _, B, T, x = (
|
|
4653
4655
|
/*$_*/
|
|
4654
4656
|
e[6]("DepositButton") + ""
|
|
4655
|
-
), S,
|
|
4657
|
+
), S, P, C, D, W, J, Y = bt(Object.keys(
|
|
4656
4658
|
/*balances*/
|
|
4657
4659
|
e[1]
|
|
4658
|
-
)),
|
|
4659
|
-
for (let
|
|
4660
|
-
|
|
4660
|
+
)), G = [];
|
|
4661
|
+
for (let N = 0; N < Y.length; N += 1)
|
|
4662
|
+
G[N] = Ln(Cn(e, Y, N));
|
|
4661
4663
|
return {
|
|
4662
4664
|
c() {
|
|
4663
|
-
t =
|
|
4664
|
-
for (let
|
|
4665
|
-
|
|
4666
|
-
_ = pe(), B =
|
|
4667
|
-
(e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(b, "class", "BalanceModalBody"), M(T, "class", "BalanceModalAction"), M(B, "class", "BalanceModalFooter"), M(l, "class",
|
|
4668
|
-
(e[3] ? "Open" : "")), M(
|
|
4669
|
-
(e[3] ? "Open" : "")), M(t, "class",
|
|
4665
|
+
t = k("div"), n = k("button"), i = pe(), o = k("div"), l = k("div"), s = k("div"), c = k("p"), d = fe(u), g = pe(), b = k("div");
|
|
4666
|
+
for (let N = 0; N < G.length; N += 1)
|
|
4667
|
+
G[N].c();
|
|
4668
|
+
_ = pe(), B = k("div"), T = k("button"), S = fe(x), M(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
4669
|
+
(e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(b, "class", "BalanceModalBody"), M(T, "class", "BalanceModalAction"), M(B, "class", "BalanceModalFooter"), M(l, "class", P = "ModalContent " + /*isModalDisplayed*/
|
|
4670
|
+
(e[3] ? "Open" : "")), M(o, "class", C = "BalanceModal " + /*isModalDisplayed*/
|
|
4671
|
+
(e[3] ? "Open" : "")), M(t, "class", D = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
4670
4672
|
(e[3] ? "Open" : ""));
|
|
4671
4673
|
},
|
|
4672
|
-
m(
|
|
4673
|
-
|
|
4674
|
-
for (let
|
|
4675
|
-
|
|
4674
|
+
m(N, $) {
|
|
4675
|
+
be(N, t, $), H(t, n), H(t, i), H(t, o), H(o, l), H(l, s), H(s, c), H(c, d), H(l, g), H(l, b);
|
|
4676
|
+
for (let U = 0; U < G.length; U += 1)
|
|
4677
|
+
G[U] && G[U].m(b, null);
|
|
4676
4678
|
H(l, _), H(l, B), H(B, T), H(T, S), W || (J = [
|
|
4677
|
-
|
|
4679
|
+
gt(
|
|
4678
4680
|
n,
|
|
4679
4681
|
"click",
|
|
4680
4682
|
/*click_handler_1*/
|
|
4681
4683
|
e[26]
|
|
4682
4684
|
),
|
|
4683
|
-
|
|
4685
|
+
gt(
|
|
4684
4686
|
T,
|
|
4685
4687
|
"click",
|
|
4686
4688
|
/*click_handler_2*/
|
|
@@ -4688,49 +4690,49 @@ function Hn(e) {
|
|
|
4688
4690
|
)
|
|
4689
4691
|
], W = !0);
|
|
4690
4692
|
},
|
|
4691
|
-
p(
|
|
4692
|
-
if (
|
|
4693
|
+
p(N, $) {
|
|
4694
|
+
if ($[0] & /*isModalDisplayed*/
|
|
4693
4695
|
8 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
4694
|
-
(
|
|
4696
|
+
(N[3] ? "Open" : "")) && M(n, "class", r), $[0] & /*$_*/
|
|
4695
4697
|
64 && u !== (u = /*$_*/
|
|
4696
|
-
|
|
4698
|
+
N[6]("Title") + "") && _e(d, u), $[0] & /*balances, currency, formatBalance, $_*/
|
|
4697
4699
|
354) {
|
|
4698
|
-
Y =
|
|
4700
|
+
Y = bt(Object.keys(
|
|
4699
4701
|
/*balances*/
|
|
4700
|
-
|
|
4702
|
+
N[1]
|
|
4701
4703
|
));
|
|
4702
|
-
let
|
|
4703
|
-
for (
|
|
4704
|
-
const y =
|
|
4705
|
-
|
|
4704
|
+
let U;
|
|
4705
|
+
for (U = 0; U < Y.length; U += 1) {
|
|
4706
|
+
const y = Cn(N, Y, U);
|
|
4707
|
+
G[U] ? G[U].p(y, $) : (G[U] = Ln(y), G[U].c(), G[U].m(b, null));
|
|
4706
4708
|
}
|
|
4707
|
-
for (;
|
|
4708
|
-
|
|
4709
|
-
|
|
4709
|
+
for (; U < G.length; U += 1)
|
|
4710
|
+
G[U].d(1);
|
|
4711
|
+
G.length = Y.length;
|
|
4710
4712
|
}
|
|
4711
|
-
|
|
4713
|
+
$[0] & /*$_*/
|
|
4712
4714
|
64 && x !== (x = /*$_*/
|
|
4713
|
-
|
|
4714
|
-
8 &&
|
|
4715
|
-
(
|
|
4715
|
+
N[6]("DepositButton") + "") && _e(S, x), $[0] & /*isModalDisplayed*/
|
|
4716
|
+
8 && P !== (P = "ModalContent " + /*isModalDisplayed*/
|
|
4717
|
+
(N[3] ? "Open" : "")) && M(l, "class", P), $[0] & /*isModalDisplayed*/
|
|
4716
4718
|
8 && C !== (C = "BalanceModal " + /*isModalDisplayed*/
|
|
4717
|
-
(
|
|
4718
|
-
8 &&
|
|
4719
|
-
(
|
|
4719
|
+
(N[3] ? "Open" : "")) && M(o, "class", C), $[0] & /*isModalDisplayed*/
|
|
4720
|
+
8 && D !== (D = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
4721
|
+
(N[3] ? "Open" : "")) && M(t, "class", D);
|
|
4720
4722
|
},
|
|
4721
|
-
d(
|
|
4722
|
-
|
|
4723
|
+
d(N) {
|
|
4724
|
+
N && de(t), Dn(G, N), W = !1, Xe(J);
|
|
4723
4725
|
}
|
|
4724
4726
|
};
|
|
4725
4727
|
}
|
|
4726
|
-
function
|
|
4728
|
+
function Rn(e) {
|
|
4727
4729
|
let t, n, r = (
|
|
4728
4730
|
/*$_*/
|
|
4729
4731
|
e[6](
|
|
4730
4732
|
/*k*/
|
|
4731
4733
|
e[50]
|
|
4732
4734
|
) + ""
|
|
4733
|
-
), i,
|
|
4735
|
+
), i, o, l = (
|
|
4734
4736
|
/*b*/
|
|
4735
4737
|
(e[53].productType ? (
|
|
4736
4738
|
/*$_*/
|
|
@@ -4751,13 +4753,13 @@ function On(e) {
|
|
|
4751
4753
|
), b, _, B, T;
|
|
4752
4754
|
return {
|
|
4753
4755
|
c() {
|
|
4754
|
-
t =
|
|
4756
|
+
t = k("div"), n = k("p"), i = fe(r), o = pe(), s = fe(l), c = pe(), u = k("p"), d = k("span"), b = fe(g), _ = pe(), B = k("span"), T = fe(
|
|
4755
4757
|
/*currency*/
|
|
4756
4758
|
e[5]
|
|
4757
4759
|
), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(B, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
|
|
4758
4760
|
},
|
|
4759
4761
|
m(x, S) {
|
|
4760
|
-
|
|
4762
|
+
be(x, t, S), H(t, n), H(n, i), H(n, o), H(n, s), H(t, c), H(t, u), H(u, d), H(d, b), H(u, _), H(u, B), H(B, T);
|
|
4761
4763
|
},
|
|
4762
4764
|
p(x, S) {
|
|
4763
4765
|
S[0] & /*$_, balances*/
|
|
@@ -4765,7 +4767,7 @@ function On(e) {
|
|
|
4765
4767
|
x[6](
|
|
4766
4768
|
/*k*/
|
|
4767
4769
|
x[50]
|
|
4768
|
-
) + "") &&
|
|
4770
|
+
) + "") && _e(i, r), S[0] & /*balances, $_*/
|
|
4769
4771
|
66 && l !== (l = /*b*/
|
|
4770
4772
|
(x[53].productType ? (
|
|
4771
4773
|
/*$_*/
|
|
@@ -4773,7 +4775,7 @@ function On(e) {
|
|
|
4773
4775
|
/*b*/
|
|
4774
4776
|
x[53].productType
|
|
4775
4777
|
)
|
|
4776
|
-
) : "") + "") &&
|
|
4778
|
+
) : "") + "") && _e(s, l), S[0] & /*balances*/
|
|
4777
4779
|
2 && g !== (g = /*b*/
|
|
4778
4780
|
(x[53].amount ? (
|
|
4779
4781
|
/*formatBalance*/
|
|
@@ -4781,8 +4783,8 @@ function On(e) {
|
|
|
4781
4783
|
/*b*/
|
|
4782
4784
|
x[53].amount
|
|
4783
4785
|
)
|
|
4784
|
-
) : "0") + "") &&
|
|
4785
|
-
32 &&
|
|
4786
|
+
) : "0") + "") && _e(b, g), S[0] & /*currency*/
|
|
4787
|
+
32 && _e(
|
|
4786
4788
|
T,
|
|
4787
4789
|
/*currency*/
|
|
4788
4790
|
x[5]
|
|
@@ -4793,62 +4795,62 @@ function On(e) {
|
|
|
4793
4795
|
}
|
|
4794
4796
|
};
|
|
4795
4797
|
}
|
|
4796
|
-
function
|
|
4797
|
-
let t, n, r =
|
|
4798
|
+
function Ln(e) {
|
|
4799
|
+
let t, n, r = bt(
|
|
4798
4800
|
/*balances*/
|
|
4799
4801
|
e[1][
|
|
4800
4802
|
/*k*/
|
|
4801
4803
|
e[50]
|
|
4802
4804
|
]
|
|
4803
4805
|
), i = [];
|
|
4804
|
-
for (let
|
|
4805
|
-
i[
|
|
4806
|
+
for (let o = 0; o < r.length; o += 1)
|
|
4807
|
+
i[o] = Rn(Hn(e, r, o));
|
|
4806
4808
|
return {
|
|
4807
4809
|
c() {
|
|
4808
|
-
t =
|
|
4809
|
-
for (let
|
|
4810
|
-
i[
|
|
4810
|
+
t = k("div");
|
|
4811
|
+
for (let o = 0; o < i.length; o += 1)
|
|
4812
|
+
i[o].c();
|
|
4811
4813
|
n = pe(), M(t, "class", "BalanceModalRowBoth");
|
|
4812
4814
|
},
|
|
4813
|
-
m(
|
|
4814
|
-
|
|
4815
|
+
m(o, l) {
|
|
4816
|
+
be(o, t, l);
|
|
4815
4817
|
for (let s = 0; s < i.length; s += 1)
|
|
4816
4818
|
i[s] && i[s].m(t, null);
|
|
4817
4819
|
H(t, n);
|
|
4818
4820
|
},
|
|
4819
|
-
p(
|
|
4821
|
+
p(o, l) {
|
|
4820
4822
|
if (l[0] & /*currency, balances, formatBalance, $_*/
|
|
4821
4823
|
354) {
|
|
4822
|
-
r =
|
|
4824
|
+
r = bt(
|
|
4823
4825
|
/*balances*/
|
|
4824
|
-
|
|
4826
|
+
o[1][
|
|
4825
4827
|
/*k*/
|
|
4826
|
-
|
|
4828
|
+
o[50]
|
|
4827
4829
|
]
|
|
4828
4830
|
);
|
|
4829
4831
|
let s;
|
|
4830
4832
|
for (s = 0; s < r.length; s += 1) {
|
|
4831
|
-
const c =
|
|
4832
|
-
i[s] ? i[s].p(c, l) : (i[s] =
|
|
4833
|
+
const c = Hn(o, r, s);
|
|
4834
|
+
i[s] ? i[s].p(c, l) : (i[s] = Rn(c), i[s].c(), i[s].m(t, n));
|
|
4833
4835
|
}
|
|
4834
4836
|
for (; s < i.length; s += 1)
|
|
4835
4837
|
i[s].d(1);
|
|
4836
4838
|
i.length = r.length;
|
|
4837
4839
|
}
|
|
4838
4840
|
},
|
|
4839
|
-
d(
|
|
4840
|
-
|
|
4841
|
+
d(o) {
|
|
4842
|
+
o && de(t), Dn(i, o);
|
|
4841
4843
|
}
|
|
4842
4844
|
};
|
|
4843
4845
|
}
|
|
4844
|
-
function
|
|
4846
|
+
function Mn(e) {
|
|
4845
4847
|
let t, n, r;
|
|
4846
4848
|
return {
|
|
4847
4849
|
c() {
|
|
4848
|
-
t =
|
|
4850
|
+
t = k("button"), M(t, "class", "ShowBalanceModalOverlay");
|
|
4849
4851
|
},
|
|
4850
|
-
m(i,
|
|
4851
|
-
|
|
4852
|
+
m(i, o) {
|
|
4853
|
+
be(i, t, o), n || (r = gt(
|
|
4852
4854
|
t,
|
|
4853
4855
|
"click",
|
|
4854
4856
|
/*click_handler_3*/
|
|
@@ -4861,28 +4863,28 @@ function Ln(e) {
|
|
|
4861
4863
|
}
|
|
4862
4864
|
};
|
|
4863
4865
|
}
|
|
4864
|
-
function
|
|
4866
|
+
function ko(e) {
|
|
4865
4867
|
let t, n, r;
|
|
4866
4868
|
function i(c, u) {
|
|
4867
4869
|
return (
|
|
4868
4870
|
/*isLoading*/
|
|
4869
|
-
c[2] ?
|
|
4871
|
+
c[2] ? jo : $o
|
|
4870
4872
|
);
|
|
4871
4873
|
}
|
|
4872
|
-
let
|
|
4874
|
+
let o = i(e), l = o(e), s = (
|
|
4873
4875
|
/*showBalance*/
|
|
4874
|
-
e[4] &&
|
|
4876
|
+
e[4] && Mn(e)
|
|
4875
4877
|
);
|
|
4876
4878
|
return {
|
|
4877
4879
|
c() {
|
|
4878
|
-
t =
|
|
4880
|
+
t = k("div"), n = k("div"), l.c(), r = pe(), s && s.c(), M(n, "class", "ShowBalance");
|
|
4879
4881
|
},
|
|
4880
4882
|
m(c, u) {
|
|
4881
|
-
|
|
4883
|
+
be(c, t, u), H(t, n), l.m(n, null), H(t, r), s && s.m(t, null), e[29](t);
|
|
4882
4884
|
},
|
|
4883
4885
|
p(c, u) {
|
|
4884
|
-
|
|
4885
|
-
c[4] ? s ? s.p(c, u) : (s =
|
|
4886
|
+
o === (o = i(c)) && l ? l.p(c, u) : (l.d(1), l = o(c), l && (l.c(), l.m(n, null))), /*showBalance*/
|
|
4887
|
+
c[4] ? s ? s.p(c, u) : (s = Mn(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4886
4888
|
},
|
|
4887
4889
|
i: le,
|
|
4888
4890
|
o: le,
|
|
@@ -4891,16 +4893,16 @@ function $a(e) {
|
|
|
4891
4893
|
}
|
|
4892
4894
|
};
|
|
4893
4895
|
}
|
|
4894
|
-
function
|
|
4896
|
+
function Vo(e, t, n) {
|
|
4895
4897
|
let r;
|
|
4896
|
-
|
|
4897
|
-
let { userid: i = "" } = t, { session:
|
|
4898
|
-
const y = {},
|
|
4899
|
-
fetch(g).then((
|
|
4898
|
+
yr(e, Lo, (a) => n(6, r = a));
|
|
4899
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: P = "" } = t, C, D = !0, W = !1, J = !1, Y = !1, G, N = "", $ = [], U;
|
|
4900
|
+
const y = {}, Be = ["totalCashAmount", "totalRealAmount"], qe = () => {
|
|
4901
|
+
fetch(g).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => Sn(f, a[f]))).catch((a) => console.log(a));
|
|
4900
4902
|
};
|
|
4901
|
-
Object.keys(
|
|
4902
|
-
const
|
|
4903
|
-
switch (
|
|
4903
|
+
Object.keys(An).forEach((a) => Sn(a, An[a]));
|
|
4904
|
+
const Te = (a) => {
|
|
4905
|
+
switch (a) {
|
|
4904
4906
|
case "balance":
|
|
4905
4907
|
window.postMessage(
|
|
4906
4908
|
{
|
|
@@ -4925,34 +4927,34 @@ function ja(e, t, n) {
|
|
|
4925
4927
|
);
|
|
4926
4928
|
break;
|
|
4927
4929
|
}
|
|
4928
|
-
},
|
|
4930
|
+
}, Le = () => {
|
|
4929
4931
|
if (b.includes(s))
|
|
4930
4932
|
return b;
|
|
4931
|
-
}, me = (
|
|
4933
|
+
}, me = (a) => b ? new Intl.NumberFormat(Le(), { useGrouping: !0 }).format(a) : x && S ? he(a, {
|
|
4932
4934
|
separator: x,
|
|
4933
4935
|
decimal: S,
|
|
4934
4936
|
symbol: "",
|
|
4935
|
-
precision: parseInt(
|
|
4936
|
-
}).format() : he(
|
|
4937
|
+
precision: parseInt(P || "2", 10)
|
|
4938
|
+
}).format() : he(a, {
|
|
4937
4939
|
separator: ".",
|
|
4938
4940
|
decimal: ",",
|
|
4939
4941
|
symbol: "",
|
|
4940
|
-
precision: parseInt(
|
|
4941
|
-
}).format(),
|
|
4942
|
+
precision: parseInt(P || "2", 10)
|
|
4943
|
+
}).format(), we = () => Pt(this, null, function* () {
|
|
4942
4944
|
var f, p, h;
|
|
4943
|
-
n(2,
|
|
4944
|
-
const
|
|
4945
|
+
n(2, D = !0);
|
|
4946
|
+
const a = new URL(`${l}/v1/player/${i}/account`);
|
|
4945
4947
|
try {
|
|
4946
|
-
const E = yield fetch(
|
|
4948
|
+
const E = yield fetch(a, {
|
|
4947
4949
|
method: "GET",
|
|
4948
|
-
headers: { "X-SessionID":
|
|
4950
|
+
headers: { "X-SessionID": o }
|
|
4949
4951
|
}), v = yield E.json();
|
|
4950
4952
|
if (E.ok)
|
|
4951
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
4953
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), $ = v.items, n(5, N = (f = $.find((m) => m.displayName === "Casino")) == null ? void 0 : f.currency), n(1, y.Total = [{ amount: v.totalAmount[N] }], y), n(
|
|
4952
4954
|
1,
|
|
4953
4955
|
y.Real = [
|
|
4954
4956
|
{
|
|
4955
|
-
amount: (p =
|
|
4957
|
+
amount: (p = $.find((m) => m.displayName === "Casino")) == null ? void 0 : p.balanceAmount
|
|
4956
4958
|
}
|
|
4957
4959
|
],
|
|
4958
4960
|
y
|
|
@@ -4960,7 +4962,7 @@ function ja(e, t, n) {
|
|
|
4960
4962
|
1,
|
|
4961
4963
|
y.Bonus = [
|
|
4962
4964
|
{
|
|
4963
|
-
amount: (h =
|
|
4965
|
+
amount: (h = $.find((m) => m.displayName === "UBS")) == null ? void 0 : h.balanceAmount
|
|
4964
4966
|
}
|
|
4965
4967
|
],
|
|
4966
4968
|
y
|
|
@@ -4970,19 +4972,19 @@ function ja(e, t, n) {
|
|
|
4970
4972
|
} catch (E) {
|
|
4971
4973
|
console.log("Balance error: ", E);
|
|
4972
4974
|
} finally {
|
|
4973
|
-
n(2,
|
|
4975
|
+
n(2, D = !1);
|
|
4974
4976
|
}
|
|
4975
|
-
}),
|
|
4976
|
-
n(2,
|
|
4977
|
-
const
|
|
4978
|
-
f.append("X-SessionID",
|
|
4979
|
-
h[T] || n(10, T =
|
|
4977
|
+
}), Ce = () => {
|
|
4978
|
+
n(2, D = !0);
|
|
4979
|
+
const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
|
|
4980
|
+
f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((h) => h.json()).then((h) => {
|
|
4981
|
+
h[T] || n(10, T = Be[0]);
|
|
4980
4982
|
const E = h.items.find((m) => m.type === "Real" && m.walletAccountType === "Ordinary");
|
|
4981
|
-
if (n(5,
|
|
4982
|
-
|
|
4983
|
+
if (n(5, N = E.currency), J = !!E.productType, n(1, y.Total = [{ amount: 0 }], y), n(1, y.Real = [], y), n(1, y.Bonus = [], y), n(1, y.Credit = [], y), !J) {
|
|
4984
|
+
U = {
|
|
4983
4985
|
lastOrdinaryAfterAmount: 0,
|
|
4984
4986
|
showCreditLineAfterAmount: !1
|
|
4985
|
-
}, n(1, y.Total[0].amount = h[T][
|
|
4987
|
+
}, n(1, y.Total[0].amount = h[T][N], y);
|
|
4986
4988
|
for (const m of h.items)
|
|
4987
4989
|
switch (m.type) {
|
|
4988
4990
|
case "Bonus":
|
|
@@ -4996,10 +4998,10 @@ function ja(e, t, n) {
|
|
|
4996
4998
|
}
|
|
4997
4999
|
for (const [m, R] of Object.entries(y))
|
|
4998
5000
|
R.length < 1 && delete y[m];
|
|
4999
|
-
n(2,
|
|
5001
|
+
n(2, D = !1);
|
|
5000
5002
|
return;
|
|
5001
5003
|
}
|
|
5002
|
-
|
|
5004
|
+
U = {
|
|
5003
5005
|
Casino: {
|
|
5004
5006
|
lastOrdinaryAfterAmount: 0,
|
|
5005
5007
|
showCreditLineAfterAmount: !1
|
|
@@ -5034,49 +5036,49 @@ function ja(e, t, n) {
|
|
|
5034
5036
|
at();
|
|
5035
5037
|
for (const [m, R] of Object.entries(y))
|
|
5036
5038
|
R.length < 1 && delete y[m];
|
|
5037
|
-
n(2,
|
|
5039
|
+
n(2, D = !1);
|
|
5038
5040
|
}).catch((h) => {
|
|
5039
|
-
throw n(2,
|
|
5041
|
+
throw n(2, D = !1), console.log("Balance fetch error", h), new Error("Failed to fetch balance data!");
|
|
5040
5042
|
});
|
|
5041
|
-
},
|
|
5042
|
-
if (
|
|
5043
|
+
}, He = () => {
|
|
5044
|
+
if (G && G.close(), o.length < 1)
|
|
5043
5045
|
return;
|
|
5044
|
-
let
|
|
5046
|
+
let a, f;
|
|
5045
5047
|
switch (_) {
|
|
5046
5048
|
case "gm16":
|
|
5047
|
-
|
|
5049
|
+
a = new URL(`${l}/v2/player/${i}/information/updates`), f = (E) => St(E);
|
|
5048
5050
|
break;
|
|
5049
5051
|
case "gmcore":
|
|
5050
|
-
|
|
5052
|
+
a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (E) => Qe(E);
|
|
5051
5053
|
break;
|
|
5052
5054
|
}
|
|
5053
5055
|
const p = {
|
|
5054
5056
|
accept: "text/event-stream",
|
|
5055
|
-
"X-SessionId":
|
|
5056
|
-
}, h = new
|
|
5057
|
-
|
|
5058
|
-
}, ue = (
|
|
5057
|
+
"X-SessionId": o
|
|
5058
|
+
}, h = new No.EventSourcePolyfill(a, { headers: p });
|
|
5059
|
+
G = h, h.addEventListener("message", f);
|
|
5060
|
+
}, ue = (a) => {
|
|
5059
5061
|
let f;
|
|
5060
5062
|
try {
|
|
5061
|
-
f = JSON.parse(
|
|
5063
|
+
f = JSON.parse(a);
|
|
5062
5064
|
} catch (p) {
|
|
5063
5065
|
console.log("Balance stream failed: ", p);
|
|
5064
5066
|
return;
|
|
5065
5067
|
}
|
|
5066
5068
|
return f;
|
|
5067
|
-
},
|
|
5069
|
+
}, Qe = (a) => {
|
|
5068
5070
|
var E, v;
|
|
5069
|
-
const f = ue(
|
|
5071
|
+
const f = ue(a.data);
|
|
5070
5072
|
if (!f) {
|
|
5071
|
-
|
|
5073
|
+
He();
|
|
5072
5074
|
return;
|
|
5073
5075
|
}
|
|
5074
5076
|
let p = "0";
|
|
5075
5077
|
const h = f.balanceChange;
|
|
5076
|
-
|
|
5078
|
+
$ = $.map((m) => (h && h[m.id] && (m = It(Nt({}, m), {
|
|
5077
5079
|
balanceAmount: h[m.id].afterAmount
|
|
5078
|
-
})), p = (parseFloat(m == null ? void 0 : m.balanceAmount) + parseFloat(p)).toString(), m)), n(1, y.Real = [{ amount: (E =
|
|
5079
|
-
},
|
|
5080
|
+
})), p = (parseFloat(m == null ? void 0 : m.balanceAmount) + parseFloat(p)).toString(), m)), n(1, y.Real = [{ amount: (E = $[0]) == null ? void 0 : E.balanceAmount }], y), n(1, y.Bonus = [{ amount: (v = $[1]) == null ? void 0 : v.balanceAmount }], y), n(1, y.Total = [{ amount: Number(p) }], y);
|
|
5081
|
+
}, Me = (a, f, p) => {
|
|
5080
5082
|
let h = null;
|
|
5081
5083
|
switch (p.walletAccountType) {
|
|
5082
5084
|
case "Ordinary":
|
|
@@ -5088,15 +5090,15 @@ function ja(e, t, n) {
|
|
|
5088
5090
|
default:
|
|
5089
5091
|
h = p.afterAmount;
|
|
5090
5092
|
}
|
|
5091
|
-
return h === null ?
|
|
5093
|
+
return h === null ? a : h;
|
|
5092
5094
|
}, at = () => {
|
|
5093
5095
|
switch (T) {
|
|
5094
5096
|
case "totalCashAmount":
|
|
5095
|
-
let
|
|
5097
|
+
let a = 0;
|
|
5096
5098
|
for (const p of ["Real", "Bonus"])
|
|
5097
5099
|
for (const h of y[p])
|
|
5098
|
-
|
|
5099
|
-
n(1, y.Total[0].amount =
|
|
5100
|
+
a += Math.max(h.amount, 0);
|
|
5101
|
+
n(1, y.Total[0].amount = a, y);
|
|
5100
5102
|
break;
|
|
5101
5103
|
case "totalRealAmount":
|
|
5102
5104
|
if (!J)
|
|
@@ -5106,78 +5108,78 @@ function ja(e, t, n) {
|
|
|
5106
5108
|
f += p.amount;
|
|
5107
5109
|
n(1, y.Total[0].amount = f, y);
|
|
5108
5110
|
}
|
|
5109
|
-
},
|
|
5110
|
-
const f = ue(
|
|
5111
|
+
}, St = (a) => {
|
|
5112
|
+
const f = ue(a.data);
|
|
5111
5113
|
if (!f) {
|
|
5112
|
-
|
|
5114
|
+
He();
|
|
5113
5115
|
return;
|
|
5114
5116
|
}
|
|
5115
5117
|
if (f.type !== "BALANCE_UPDATE_V2")
|
|
5116
5118
|
return;
|
|
5117
5119
|
const p = f.body.balanceChange;
|
|
5118
5120
|
for (const [h, E] of Object.entries(p))
|
|
5119
|
-
if (T === "totalRealAmount" && h === "Real" && !J && n(1, y.Total[0].amount =
|
|
5121
|
+
if (T === "totalRealAmount" && h === "Real" && !J && n(1, y.Total[0].amount = Me(y.Total[0].amount, U, E), y), !!y[h])
|
|
5120
5122
|
for (const v of y[h]) {
|
|
5121
5123
|
if (!J) {
|
|
5122
|
-
v.amount = h === "Real" ?
|
|
5124
|
+
v.amount = h === "Real" ? Me(v.amount, U, E) : E.afterAmount;
|
|
5123
5125
|
continue;
|
|
5124
5126
|
}
|
|
5125
|
-
E.productType === v.productType && (v.amount = h === "Real" ?
|
|
5127
|
+
E.productType === v.productType && (v.amount = h === "Real" ? Me(v.amount, U[v.productType], E) : E.afterAmount);
|
|
5126
5128
|
}
|
|
5127
5129
|
at();
|
|
5128
|
-
},
|
|
5129
|
-
|
|
5130
|
-
},
|
|
5131
|
-
|
|
5132
|
-
},
|
|
5133
|
-
switch (
|
|
5130
|
+
}, st = () => {
|
|
5131
|
+
Te("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5132
|
+
}, At = () => {
|
|
5133
|
+
Be.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${Be}. Using default value ('${Be[0]}').`), n(10, T = Be[0]));
|
|
5134
|
+
}, Je = () => {
|
|
5135
|
+
switch (Mo(s), At(), _) {
|
|
5134
5136
|
case "gmcore":
|
|
5135
|
-
|
|
5137
|
+
we();
|
|
5136
5138
|
break;
|
|
5137
5139
|
case "gm16":
|
|
5138
|
-
|
|
5140
|
+
Ce();
|
|
5139
5141
|
break;
|
|
5140
5142
|
default:
|
|
5141
5143
|
throw Error(`Invalid apiversion attribute: ${_}`);
|
|
5142
5144
|
}
|
|
5143
|
-
},
|
|
5145
|
+
}, Ne = (a) => a.data && a.data.type === "LogoutSuccessfull" && G.close(), Se = () => {
|
|
5144
5146
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5145
5147
|
};
|
|
5146
|
-
|
|
5147
|
-
window.removeEventListener("message",
|
|
5148
|
+
Sr(() => (window.addEventListener("message", Ne, !1), () => {
|
|
5149
|
+
window.removeEventListener("message", Ne), G && G.close();
|
|
5148
5150
|
}));
|
|
5149
|
-
const re = () =>
|
|
5150
|
-
function
|
|
5151
|
-
|
|
5152
|
-
C =
|
|
5151
|
+
const re = () => Te("balance"), Ct = () => Te("closebalance"), Ht = () => st(), Ot = () => Te("closeBalance");
|
|
5152
|
+
function lt(a) {
|
|
5153
|
+
Vt[a ? "unshift" : "push"](() => {
|
|
5154
|
+
C = a, n(0, C);
|
|
5153
5155
|
});
|
|
5154
5156
|
}
|
|
5155
|
-
return e.$$set = (
|
|
5156
|
-
"userid" in
|
|
5157
|
+
return e.$$set = (a) => {
|
|
5158
|
+
"userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, c = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, g = a.translationurl), "customlocaleidentifier" in a && n(19, b = a.customlocaleidentifier), "gmversion" in a && n(20, _ = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, x = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, P = a.currencyprecision);
|
|
5157
5159
|
}, e.$$.update = () => {
|
|
5158
5160
|
e.$$.dirty[0] & /*lang*/
|
|
5159
|
-
16384 && s &&
|
|
5160
|
-
3176448 && l && i &&
|
|
5161
|
-
1062912 && l && i &&
|
|
5162
|
-
262144 && g &&
|
|
5163
|
-
2 && y.Total &&
|
|
5164
|
-
65537 && u && C &&
|
|
5165
|
-
131073 && d && C &&
|
|
5166
|
-
32769 && c && C &&
|
|
5161
|
+
16384 && s && Le(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5162
|
+
3176448 && l && i && o && s && _ && B && Je(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5163
|
+
1062912 && l && i && o && _ && He(), e.$$.dirty[0] & /*translationurl*/
|
|
5164
|
+
262144 && g && qe(), e.$$.dirty[0] & /*balances*/
|
|
5165
|
+
2 && y.Total && Se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5166
|
+
65537 && u && C && Gr(C, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5167
|
+
131073 && d && C && $r(C, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5168
|
+
32769 && c && C && jr(C, `${c}.Style`);
|
|
5167
5169
|
}, [
|
|
5168
5170
|
C,
|
|
5169
5171
|
y,
|
|
5170
|
-
|
|
5172
|
+
D,
|
|
5171
5173
|
W,
|
|
5172
5174
|
Y,
|
|
5173
|
-
|
|
5175
|
+
N,
|
|
5174
5176
|
r,
|
|
5175
|
-
|
|
5177
|
+
Te,
|
|
5176
5178
|
me,
|
|
5177
|
-
|
|
5179
|
+
st,
|
|
5178
5180
|
T,
|
|
5179
5181
|
i,
|
|
5180
|
-
|
|
5182
|
+
o,
|
|
5181
5183
|
l,
|
|
5182
5184
|
s,
|
|
5183
5185
|
c,
|
|
@@ -5189,22 +5191,22 @@ function ja(e, t, n) {
|
|
|
5189
5191
|
B,
|
|
5190
5192
|
x,
|
|
5191
5193
|
S,
|
|
5192
|
-
|
|
5194
|
+
P,
|
|
5193
5195
|
re,
|
|
5194
|
-
St,
|
|
5195
|
-
At,
|
|
5196
5196
|
Ct,
|
|
5197
|
-
|
|
5197
|
+
Ht,
|
|
5198
|
+
Ot,
|
|
5199
|
+
lt
|
|
5198
5200
|
];
|
|
5199
5201
|
}
|
|
5200
|
-
class
|
|
5202
|
+
class Xo extends Ur {
|
|
5201
5203
|
constructor(t) {
|
|
5202
|
-
super(),
|
|
5204
|
+
super(), Pr(
|
|
5203
5205
|
this,
|
|
5204
5206
|
t,
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5207
|
+
Vo,
|
|
5208
|
+
ko,
|
|
5209
|
+
In,
|
|
5208
5210
|
{
|
|
5209
5211
|
userid: 11,
|
|
5210
5212
|
session: 12,
|
|
@@ -5222,7 +5224,7 @@ class ka extends Dr {
|
|
|
5222
5224
|
currencydecimal: 23,
|
|
5223
5225
|
currencyprecision: 24
|
|
5224
5226
|
},
|
|
5225
|
-
|
|
5227
|
+
Go,
|
|
5226
5228
|
[-1, -1]
|
|
5227
5229
|
);
|
|
5228
5230
|
}
|
|
@@ -5317,7 +5319,7 @@ class ka extends Dr {
|
|
|
5317
5319
|
this.$$set({ currencyprecision: t }), Q();
|
|
5318
5320
|
}
|
|
5319
5321
|
}
|
|
5320
|
-
|
|
5322
|
+
Dr(Xo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
|
5321
5323
|
export {
|
|
5322
|
-
|
|
5324
|
+
Xo as default
|
|
5323
5325
|
};
|