@everymatrix/player-account-balance-modal 1.55.0 → 1.56.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/{PlayerAccountBalanceModal-DNE_oGQU.js → PlayerAccountBalanceModal-D7SYG-9P.js} +1205 -1207
- package/components/{PlayerAccountBalanceModal-DnBXjzzj.js → PlayerAccountBalanceModal-DmIKY1cF.js} +1182 -1184
- package/components/PlayerAccountBalanceModal-Dx1KAF5W.cjs +15 -0
- package/es2015/player-account-balance-modal.cjs +1 -1
- package/es2015/player-account-balance-modal.js +1 -1
- package/esnext/player-account-balance-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModal-CWVtsczq.cjs +0 -15
package/components/{PlayerAccountBalanceModal-DNE_oGQU.js → PlayerAccountBalanceModal-D7SYG-9P.js}
RENAMED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var lr = Object.defineProperty, hr = Object.defineProperties;
|
|
2
|
+
var cr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var sn = Object.getOwnPropertySymbols;
|
|
4
|
+
var fr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Rt = (e, t, n) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lt = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
fr.call(t, n) && Rt(e, n, t[n]);
|
|
8
|
+
if (sn)
|
|
9
|
+
for (var n of sn(t))
|
|
10
|
+
dr.call(t, n) && Rt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Nt = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, Nt = (e, t) => hr(e, cr(t));
|
|
13
|
+
var ue = (e, t, n) => Rt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
14
|
var Mt = (e, t, n) => new Promise((r, i) => {
|
|
15
|
-
var o = (
|
|
15
|
+
var o = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(n.next(c));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
i(l);
|
|
20
20
|
}
|
|
21
|
-
}, u = (
|
|
21
|
+
}, u = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(n.throw(c));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, u);
|
|
28
|
+
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function le() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Rn(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function un() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function ke(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Rn);
|
|
40
40
|
}
|
|
41
41
|
function tn(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ln(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function pr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Nn(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
54
|
-
return
|
|
54
|
+
return le;
|
|
55
55
|
}
|
|
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 mr(e, t, n) {
|
|
60
|
+
e.$$.on_destroy.push(Nn(t, n));
|
|
61
61
|
}
|
|
62
62
|
function L(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const r =
|
|
65
|
+
function gr(e, t, n) {
|
|
66
|
+
const r = br(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = n,
|
|
68
|
+
const i = V("style");
|
|
69
|
+
i.id = t, i.textContent = n, yr(r, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function br(e) {
|
|
73
73
|
if (!e) return document;
|
|
74
74
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
75
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,49 +78,49 @@ function vr(e) {
|
|
|
78
78
|
t
|
|
79
79
|
) : e.ownerDocument;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function yr(e, t) {
|
|
82
82
|
return L(
|
|
83
83
|
/** @type {Document} */
|
|
84
84
|
e.head || e,
|
|
85
85
|
t
|
|
86
86
|
), t.sheet;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function ve(e, t, n) {
|
|
89
89
|
e.insertBefore(t, n || null);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function me(e) {
|
|
92
92
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Mn(e, t) {
|
|
95
95
|
for (let n = 0; n < e.length; n += 1)
|
|
96
96
|
e[n] && e[n].d(t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function V(e) {
|
|
99
99
|
return document.createElement(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function pe(e) {
|
|
102
102
|
return document.createTextNode(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function ge() {
|
|
105
|
+
return pe(" ");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
return
|
|
107
|
+
function vr() {
|
|
108
|
+
return pe("");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function bt(e, t, n, r) {
|
|
111
111
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Z(e, t, n) {
|
|
114
114
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Er(e) {
|
|
117
117
|
return Array.from(e.childNodes);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Be(e, t) {
|
|
120
120
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
121
121
|
t);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function xr(e) {
|
|
124
124
|
const t = {};
|
|
125
125
|
return e.childNodes.forEach(
|
|
126
126
|
/** @param {Element} node */
|
|
@@ -129,146 +129,146 @@ function Tr(e) {
|
|
|
129
129
|
}
|
|
130
130
|
), t;
|
|
131
131
|
}
|
|
132
|
-
let
|
|
133
|
-
function
|
|
134
|
-
|
|
132
|
+
let tt;
|
|
133
|
+
function et(e) {
|
|
134
|
+
tt = e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
if (!
|
|
138
|
-
return
|
|
136
|
+
function _r() {
|
|
137
|
+
if (!tt) throw new Error("Function called outside component initialization");
|
|
138
|
+
return tt;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
140
|
+
function Tr(e) {
|
|
141
|
+
_r().$$.on_mount.push(e);
|
|
142
142
|
}
|
|
143
143
|
const De = [], jt = [];
|
|
144
144
|
let Fe = [];
|
|
145
|
-
const
|
|
145
|
+
const ln = [], Br = /* @__PURE__ */ Promise.resolve();
|
|
146
146
|
let kt = !1;
|
|
147
|
-
function
|
|
148
|
-
kt || (kt = !0,
|
|
147
|
+
function Sr() {
|
|
148
|
+
kt || (kt = !0, Br.then(Q));
|
|
149
149
|
}
|
|
150
150
|
function Vt(e) {
|
|
151
151
|
Fe.push(e);
|
|
152
152
|
}
|
|
153
153
|
const Pt = /* @__PURE__ */ new Set();
|
|
154
154
|
let Pe = 0;
|
|
155
|
-
function
|
|
155
|
+
function Q() {
|
|
156
156
|
if (Pe !== 0)
|
|
157
157
|
return;
|
|
158
|
-
const e =
|
|
158
|
+
const e = tt;
|
|
159
159
|
do {
|
|
160
160
|
try {
|
|
161
161
|
for (; Pe < De.length; ) {
|
|
162
162
|
const t = De[Pe];
|
|
163
|
-
Pe++,
|
|
163
|
+
Pe++, et(t), wr(t.$$);
|
|
164
164
|
}
|
|
165
165
|
} catch (t) {
|
|
166
166
|
throw De.length = 0, Pe = 0, t;
|
|
167
167
|
}
|
|
168
|
-
for (
|
|
168
|
+
for (et(null), De.length = 0, Pe = 0; jt.length; ) jt.pop()();
|
|
169
169
|
for (let t = 0; t < Fe.length; t += 1) {
|
|
170
170
|
const n = Fe[t];
|
|
171
171
|
Pt.has(n) || (Pt.add(n), n());
|
|
172
172
|
}
|
|
173
173
|
Fe.length = 0;
|
|
174
174
|
} while (De.length);
|
|
175
|
-
for (;
|
|
176
|
-
|
|
177
|
-
kt = !1, Pt.clear(),
|
|
175
|
+
for (; ln.length; )
|
|
176
|
+
ln.pop()();
|
|
177
|
+
kt = !1, Pt.clear(), et(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function wr(e) {
|
|
180
180
|
if (e.fragment !== null) {
|
|
181
181
|
e.update(), ke(e.before_update);
|
|
182
182
|
const t = e.dirty;
|
|
183
183
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Vt);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Ar(e) {
|
|
187
187
|
const t = [], n = [];
|
|
188
188
|
Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
|
|
189
189
|
}
|
|
190
|
-
const
|
|
191
|
-
function
|
|
192
|
-
e && e.i && (
|
|
190
|
+
const Cr = /* @__PURE__ */ new Set();
|
|
191
|
+
function Hr(e, t) {
|
|
192
|
+
e && e.i && (Cr.delete(e), e.i(t));
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function yt(e) {
|
|
195
195
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Or(e, t, n) {
|
|
198
198
|
const { fragment: r, after_update: i } = e.$$;
|
|
199
199
|
r && r.m(t, n), Vt(() => {
|
|
200
|
-
const o = e.$$.on_mount.map(
|
|
200
|
+
const o = e.$$.on_mount.map(Rn).filter(tn);
|
|
201
201
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ke(o), e.$$.on_mount = [];
|
|
202
202
|
}), i.forEach(Vt);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Rr(e, t) {
|
|
205
205
|
const n = e.$$;
|
|
206
|
-
n.fragment !== null && (
|
|
206
|
+
n.fragment !== null && (Ar(n.after_update), ke(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
e.$$.dirty[0] === -1 && (De.push(e),
|
|
208
|
+
function Lr(e, t) {
|
|
209
|
+
e.$$.dirty[0] === -1 && (De.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
const
|
|
213
|
-
|
|
211
|
+
function Nr(e, t, n, r, i, o, u = null, s = [-1]) {
|
|
212
|
+
const c = tt;
|
|
213
|
+
et(e);
|
|
214
214
|
const l = e.$$ = {
|
|
215
215
|
fragment: null,
|
|
216
216
|
ctx: [],
|
|
217
217
|
// state
|
|
218
218
|
props: o,
|
|
219
|
-
update:
|
|
219
|
+
update: le,
|
|
220
220
|
not_equal: i,
|
|
221
|
-
bound:
|
|
221
|
+
bound: un(),
|
|
222
222
|
// lifecycle
|
|
223
223
|
on_mount: [],
|
|
224
224
|
on_destroy: [],
|
|
225
225
|
on_disconnect: [],
|
|
226
226
|
before_update: [],
|
|
227
227
|
after_update: [],
|
|
228
|
-
context: new Map(t.context || (
|
|
228
|
+
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
229
229
|
// everything else
|
|
230
|
-
callbacks:
|
|
231
|
-
dirty:
|
|
230
|
+
callbacks: un(),
|
|
231
|
+
dirty: s,
|
|
232
232
|
skip_bound: !1,
|
|
233
|
-
root: t.target ||
|
|
233
|
+
root: t.target || c.$$.root
|
|
234
234
|
};
|
|
235
235
|
u && u(l.root);
|
|
236
236
|
let f = !1;
|
|
237
|
-
if (l.ctx = n ? n(e, t.props || {}, (
|
|
238
|
-
const
|
|
239
|
-
return l.ctx && i(l.ctx[
|
|
237
|
+
if (l.ctx = n ? n(e, t.props || {}, (g, p, ...y) => {
|
|
238
|
+
const E = y.length ? y[0] : p;
|
|
239
|
+
return l.ctx && i(l.ctx[g], l.ctx[g] = E) && (!l.skip_bound && l.bound[g] && l.bound[g](E), f && Lr(e, g)), p;
|
|
240
240
|
}) : [], l.update(), f = !0, ke(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
241
241
|
if (t.hydrate) {
|
|
242
|
-
const
|
|
243
|
-
l.fragment && l.fragment.l(
|
|
242
|
+
const g = Er(t.target);
|
|
243
|
+
l.fragment && l.fragment.l(g), g.forEach(me);
|
|
244
244
|
} else
|
|
245
245
|
l.fragment && l.fragment.c();
|
|
246
|
-
t.intro &&
|
|
246
|
+
t.intro && Hr(e.$$.fragment), Or(e, t.target, t.anchor), Q();
|
|
247
247
|
}
|
|
248
|
-
|
|
248
|
+
et(c);
|
|
249
249
|
}
|
|
250
|
-
let
|
|
251
|
-
typeof HTMLElement == "function" && (
|
|
250
|
+
let Pn;
|
|
251
|
+
typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
252
252
|
constructor(t, n, r) {
|
|
253
253
|
super();
|
|
254
254
|
/** The Svelte component constructor */
|
|
255
|
-
|
|
255
|
+
ue(this, "$$ctor");
|
|
256
256
|
/** Slots */
|
|
257
|
-
|
|
257
|
+
ue(this, "$$s");
|
|
258
258
|
/** The Svelte component instance */
|
|
259
|
-
|
|
259
|
+
ue(this, "$$c");
|
|
260
260
|
/** Whether or not the custom element is connected */
|
|
261
|
-
|
|
261
|
+
ue(this, "$$cn", !1);
|
|
262
262
|
/** Component props data */
|
|
263
|
-
|
|
263
|
+
ue(this, "$$d", {});
|
|
264
264
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
265
|
-
|
|
265
|
+
ue(this, "$$r", !1);
|
|
266
266
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
267
|
-
|
|
267
|
+
ue(this, "$$p_d", {});
|
|
268
268
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
269
|
-
|
|
269
|
+
ue(this, "$$l", {});
|
|
270
270
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
271
|
-
|
|
271
|
+
ue(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
272
272
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
273
273
|
}
|
|
274
274
|
addEventListener(t, n, r) {
|
|
@@ -292,29 +292,29 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
|
|
|
292
292
|
let u;
|
|
293
293
|
return {
|
|
294
294
|
c: function() {
|
|
295
|
-
u =
|
|
295
|
+
u = V("slot"), o !== "default" && Z(u, "name", o);
|
|
296
296
|
},
|
|
297
297
|
/**
|
|
298
298
|
* @param {HTMLElement} target
|
|
299
299
|
* @param {HTMLElement} [anchor]
|
|
300
300
|
*/
|
|
301
301
|
m: function(l, f) {
|
|
302
|
-
|
|
302
|
+
ve(l, u, f);
|
|
303
303
|
},
|
|
304
304
|
d: function(l) {
|
|
305
|
-
l &&
|
|
305
|
+
l && me(u);
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
309
|
};
|
|
310
310
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
311
311
|
return;
|
|
312
|
-
const n = {}, r =
|
|
312
|
+
const n = {}, r = xr(this);
|
|
313
313
|
for (const o of this.$$s)
|
|
314
314
|
o in r && (n[o] = [t(o)]);
|
|
315
315
|
for (const o of this.attributes) {
|
|
316
316
|
const u = this.$$g_p(o.name);
|
|
317
|
-
u in this.$$d || (this.$$d[u] =
|
|
317
|
+
u in this.$$d || (this.$$d[u] = dt(u, o.value, this.$$p_d, "toProp"));
|
|
318
318
|
}
|
|
319
319
|
for (const o in this.$$p_d)
|
|
320
320
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -331,7 +331,7 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
|
|
|
331
331
|
this.$$r = !0;
|
|
332
332
|
for (const o in this.$$p_d)
|
|
333
333
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
334
|
-
const u =
|
|
334
|
+
const u = dt(
|
|
335
335
|
o,
|
|
336
336
|
this.$$d[o],
|
|
337
337
|
this.$$p_d,
|
|
@@ -344,8 +344,8 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
|
|
|
344
344
|
this.$$c.$$.after_update.push(i), i();
|
|
345
345
|
for (const o in this.$$l)
|
|
346
346
|
for (const u of this.$$l[o]) {
|
|
347
|
-
const
|
|
348
|
-
this.$$l_u.set(u,
|
|
347
|
+
const s = this.$$c.$on(o, u);
|
|
348
|
+
this.$$l_u.set(u, s);
|
|
349
349
|
}
|
|
350
350
|
this.$$l = {};
|
|
351
351
|
}
|
|
@@ -355,7 +355,7 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
|
|
|
355
355
|
// and setting attributes through setAttribute etc, this is helpful
|
|
356
356
|
attributeChangedCallback(t, n, r) {
|
|
357
357
|
var i;
|
|
358
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
358
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = dt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
359
359
|
}
|
|
360
360
|
disconnectedCallback() {
|
|
361
361
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -368,7 +368,7 @@ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
|
|
|
368
368
|
) || t;
|
|
369
369
|
}
|
|
370
370
|
});
|
|
371
|
-
function
|
|
371
|
+
function dt(e, t, n, r) {
|
|
372
372
|
var o;
|
|
373
373
|
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
374
374
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -398,38 +398,38 @@ function ct(e, t, n, r) {
|
|
|
398
398
|
return t;
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
let u = class extends
|
|
401
|
+
function Mr(e, t, n, r, i, o) {
|
|
402
|
+
let u = class extends Pn {
|
|
403
403
|
constructor() {
|
|
404
404
|
super(e, n, i), this.$$p_d = t;
|
|
405
405
|
}
|
|
406
406
|
static get observedAttributes() {
|
|
407
407
|
return Object.keys(t).map(
|
|
408
|
-
(
|
|
408
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
409
409
|
);
|
|
410
410
|
}
|
|
411
411
|
};
|
|
412
|
-
return Object.keys(t).forEach((
|
|
413
|
-
Object.defineProperty(u.prototype,
|
|
412
|
+
return Object.keys(t).forEach((s) => {
|
|
413
|
+
Object.defineProperty(u.prototype, s, {
|
|
414
414
|
get() {
|
|
415
|
-
return this.$$c &&
|
|
415
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
416
416
|
},
|
|
417
|
-
set(
|
|
417
|
+
set(c) {
|
|
418
418
|
var l;
|
|
419
|
-
|
|
419
|
+
c = dt(s, c, t), this.$$d[s] = c, (l = this.$$c) == null || l.$set({ [s]: c });
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
|
-
}), r.forEach((
|
|
423
|
-
Object.defineProperty(u.prototype,
|
|
422
|
+
}), r.forEach((s) => {
|
|
423
|
+
Object.defineProperty(u.prototype, s, {
|
|
424
424
|
get() {
|
|
425
|
-
var
|
|
426
|
-
return (
|
|
425
|
+
var c;
|
|
426
|
+
return (c = this.$$c) == null ? void 0 : c[s];
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
}), e.element = /** @type {any} */
|
|
430
430
|
u, u;
|
|
431
431
|
}
|
|
432
|
-
class
|
|
432
|
+
class Pr {
|
|
433
433
|
constructor() {
|
|
434
434
|
/**
|
|
435
435
|
* ### PRIVATE API
|
|
@@ -438,7 +438,7 @@ class Dr {
|
|
|
438
438
|
*
|
|
439
439
|
* @type {any}
|
|
440
440
|
*/
|
|
441
|
-
|
|
441
|
+
ue(this, "$$");
|
|
442
442
|
/**
|
|
443
443
|
* ### PRIVATE API
|
|
444
444
|
*
|
|
@@ -446,11 +446,11 @@ class Dr {
|
|
|
446
446
|
*
|
|
447
447
|
* @type {any}
|
|
448
448
|
*/
|
|
449
|
-
|
|
449
|
+
ue(this, "$$set");
|
|
450
450
|
}
|
|
451
451
|
/** @returns {void} */
|
|
452
452
|
$destroy() {
|
|
453
|
-
|
|
453
|
+
Rr(this, 1), this.$destroy = le;
|
|
454
454
|
}
|
|
455
455
|
/**
|
|
456
456
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -460,7 +460,7 @@ class Dr {
|
|
|
460
460
|
*/
|
|
461
461
|
$on(t, n) {
|
|
462
462
|
if (!tn(n))
|
|
463
|
-
return
|
|
463
|
+
return le;
|
|
464
464
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
465
465
|
return r.push(n), () => {
|
|
466
466
|
const i = r.indexOf(n);
|
|
@@ -472,18 +472,18 @@ class Dr {
|
|
|
472
472
|
* @returns {void}
|
|
473
473
|
*/
|
|
474
474
|
$set(t) {
|
|
475
|
-
this.$$set && !
|
|
475
|
+
this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
|
-
const
|
|
479
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
480
|
-
function
|
|
478
|
+
const Ir = "4";
|
|
479
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ir);
|
|
480
|
+
function Dr(e, t) {
|
|
481
481
|
if (e) {
|
|
482
482
|
const n = document.createElement("style");
|
|
483
483
|
n.innerHTML = t, e.appendChild(n);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Fr(e, t) {
|
|
487
487
|
const n = new URL(t);
|
|
488
488
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
489
489
|
const i = document.createElement("style");
|
|
@@ -492,7 +492,7 @@ function Gr(e, t) {
|
|
|
492
492
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Ur(e, t, n) {
|
|
496
496
|
if (window.emMessageBus) {
|
|
497
497
|
const r = document.createElement("style");
|
|
498
498
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -501,32 +501,32 @@ function $r(e, t, n) {
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
const Ie = [];
|
|
504
|
-
function
|
|
504
|
+
function Gr(e, t) {
|
|
505
505
|
return {
|
|
506
|
-
subscribe:
|
|
506
|
+
subscribe: xt(e, t).subscribe
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function xt(e, t = le) {
|
|
510
510
|
let n;
|
|
511
511
|
const r = /* @__PURE__ */ new Set();
|
|
512
|
-
function i(
|
|
513
|
-
if (
|
|
514
|
-
const
|
|
512
|
+
function i(s) {
|
|
513
|
+
if (Ln(e, s) && (e = s, n)) {
|
|
514
|
+
const c = !Ie.length;
|
|
515
515
|
for (const l of r)
|
|
516
516
|
l[1](), Ie.push(l, e);
|
|
517
|
-
if (
|
|
517
|
+
if (c) {
|
|
518
518
|
for (let l = 0; l < Ie.length; l += 2)
|
|
519
519
|
Ie[l][0](Ie[l + 1]);
|
|
520
520
|
Ie.length = 0;
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
function o(
|
|
525
|
-
i(
|
|
524
|
+
function o(s) {
|
|
525
|
+
i(s(e));
|
|
526
526
|
}
|
|
527
|
-
function u(
|
|
528
|
-
const l = [
|
|
529
|
-
return r.add(l), r.size === 1 && (n = t(i, o) ||
|
|
527
|
+
function u(s, c = le) {
|
|
528
|
+
const l = [s, c];
|
|
529
|
+
return r.add(l), r.size === 1 && (n = t(i, o) || le), s(e), () => {
|
|
530
530
|
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
531
531
|
};
|
|
532
532
|
}
|
|
@@ -537,97 +537,97 @@ function Ve(e, t, n) {
|
|
|
537
537
|
if (!i.every(Boolean))
|
|
538
538
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
539
539
|
const o = t.length < 2;
|
|
540
|
-
return
|
|
541
|
-
let
|
|
540
|
+
return Gr(n, (u, s) => {
|
|
541
|
+
let c = !1;
|
|
542
542
|
const l = [];
|
|
543
|
-
let f = 0,
|
|
544
|
-
const
|
|
543
|
+
let f = 0, g = le;
|
|
544
|
+
const p = () => {
|
|
545
545
|
if (f)
|
|
546
546
|
return;
|
|
547
|
-
|
|
548
|
-
const
|
|
549
|
-
o ? u(
|
|
550
|
-
},
|
|
551
|
-
(
|
|
552
|
-
|
|
547
|
+
g();
|
|
548
|
+
const E = t(r ? l[0] : l, u, s);
|
|
549
|
+
o ? u(E) : g = tn(E) ? E : le;
|
|
550
|
+
}, y = i.map(
|
|
551
|
+
(E, M) => Nn(
|
|
552
|
+
E,
|
|
553
553
|
(C) => {
|
|
554
|
-
l[M] = C, f &= ~(1 << M),
|
|
554
|
+
l[M] = C, f &= ~(1 << M), c && p();
|
|
555
555
|
},
|
|
556
556
|
() => {
|
|
557
557
|
f |= 1 << M;
|
|
558
558
|
}
|
|
559
559
|
)
|
|
560
560
|
);
|
|
561
|
-
return
|
|
562
|
-
ke(
|
|
561
|
+
return c = !0, p(), function() {
|
|
562
|
+
ke(y), g(), c = !1;
|
|
563
563
|
};
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
|
-
var
|
|
567
|
-
function
|
|
566
|
+
var $r = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
567
|
+
function jr(e) {
|
|
568
568
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
569
569
|
}
|
|
570
|
-
var
|
|
571
|
-
return
|
|
570
|
+
var kr = function(t) {
|
|
571
|
+
return Vr(t) && !Xr(t);
|
|
572
572
|
};
|
|
573
|
-
function
|
|
573
|
+
function Vr(e) {
|
|
574
574
|
return !!e && typeof e == "object";
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function Xr(e) {
|
|
577
577
|
var t = Object.prototype.toString.call(e);
|
|
578
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
578
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
|
|
579
579
|
}
|
|
580
|
-
var
|
|
581
|
-
function
|
|
582
|
-
return e.$$typeof ===
|
|
580
|
+
var zr = typeof Symbol == "function" && Symbol.for, Wr = zr ? Symbol.for("react.element") : 60103;
|
|
581
|
+
function Zr(e) {
|
|
582
|
+
return e.$$typeof === Wr;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function qr(e) {
|
|
585
585
|
return Array.isArray(e) ? [] : {};
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Ue(
|
|
587
|
+
function nt(e, t) {
|
|
588
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ue(qr(e), e, t) : e;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Qr(e, t, n) {
|
|
591
591
|
return e.concat(t).map(function(r) {
|
|
592
|
-
return
|
|
592
|
+
return nt(r, n);
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Jr(e, t) {
|
|
596
596
|
if (!t.customMerge)
|
|
597
597
|
return Ue;
|
|
598
598
|
var n = t.customMerge(e);
|
|
599
599
|
return typeof n == "function" ? n : Ue;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Yr(e) {
|
|
602
602
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
603
603
|
return Object.propertyIsEnumerable.call(e, t);
|
|
604
604
|
}) : [];
|
|
605
605
|
}
|
|
606
|
-
function
|
|
607
|
-
return Object.keys(e).concat(
|
|
606
|
+
function hn(e) {
|
|
607
|
+
return Object.keys(e).concat(Yr(e));
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function In(e, t) {
|
|
610
610
|
try {
|
|
611
611
|
return t in e;
|
|
612
612
|
} catch (n) {
|
|
613
613
|
return !1;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
return
|
|
616
|
+
function Kr(e, t) {
|
|
617
|
+
return In(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function ei(e, t, n) {
|
|
620
620
|
var r = {};
|
|
621
|
-
return n.isMergeableObject(e) &&
|
|
622
|
-
r[i] =
|
|
623
|
-
}),
|
|
624
|
-
|
|
621
|
+
return n.isMergeableObject(e) && hn(e).forEach(function(i) {
|
|
622
|
+
r[i] = nt(e[i], n);
|
|
623
|
+
}), hn(t).forEach(function(i) {
|
|
624
|
+
Kr(e, i) || (In(e, i) && n.isMergeableObject(t[i]) ? r[i] = Jr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
|
|
625
625
|
}), r;
|
|
626
626
|
}
|
|
627
627
|
function Ue(e, t, n) {
|
|
628
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
628
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Qr, n.isMergeableObject = n.isMergeableObject || kr, n.cloneUnlessOtherwiseSpecified = nt;
|
|
629
629
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
630
|
-
return o ? r ? n.arrayMerge(e, t, n) :
|
|
630
|
+
return o ? r ? n.arrayMerge(e, t, n) : ei(e, t, n) : nt(t, n);
|
|
631
631
|
}
|
|
632
632
|
Ue.all = function(t, n) {
|
|
633
633
|
if (!Array.isArray(t))
|
|
@@ -636,8 +636,8 @@ Ue.all = function(t, n) {
|
|
|
636
636
|
return Ue(r, i, n);
|
|
637
637
|
}, {});
|
|
638
638
|
};
|
|
639
|
-
var
|
|
640
|
-
const
|
|
639
|
+
var ti = Ue, ni = ti;
|
|
640
|
+
const ri = /* @__PURE__ */ jr(ni);
|
|
641
641
|
var Xt = function(e, t) {
|
|
642
642
|
return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
643
643
|
n.__proto__ = r;
|
|
@@ -645,7 +645,7 @@ var Xt = function(e, t) {
|
|
|
645
645
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
646
646
|
}, Xt(e, t);
|
|
647
647
|
};
|
|
648
|
-
function
|
|
648
|
+
function _t(e, t) {
|
|
649
649
|
if (typeof t != "function" && t !== null)
|
|
650
650
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
651
651
|
Xt(e, t);
|
|
@@ -663,7 +663,7 @@ var N = function() {
|
|
|
663
663
|
return t;
|
|
664
664
|
}, N.apply(this, arguments);
|
|
665
665
|
};
|
|
666
|
-
function
|
|
666
|
+
function ii(e, t) {
|
|
667
667
|
var n = {};
|
|
668
668
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
669
669
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -677,104 +677,102 @@ function It(e, t, n) {
|
|
|
677
677
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
678
678
|
}
|
|
679
679
|
function Dt(e, t) {
|
|
680
|
-
var n = t && t.cache ? t.cache :
|
|
680
|
+
var n = t && t.cache ? t.cache : ci, r = t && t.serializer ? t.serializer : li, i = t && t.strategy ? t.strategy : si;
|
|
681
681
|
return i(e, {
|
|
682
682
|
cache: n,
|
|
683
683
|
serializer: r
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function oi(e) {
|
|
687
687
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
688
688
|
}
|
|
689
|
-
function
|
|
690
|
-
var i =
|
|
689
|
+
function ai(e, t, n, r) {
|
|
690
|
+
var i = oi(r) ? r : n(r), o = t.get(i);
|
|
691
691
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Dn(e, t, n) {
|
|
694
694
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
695
695
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function Fn(e, t, n, r, i) {
|
|
698
698
|
return n.bind(t, e, r, i);
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
var n = e.length === 1 ?
|
|
702
|
-
return
|
|
700
|
+
function si(e, t) {
|
|
701
|
+
var n = e.length === 1 ? ai : Dn;
|
|
702
|
+
return Fn(e, this, n, t.cache.create(), t.serializer);
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
return
|
|
706
|
-
}
|
|
707
|
-
function hi(e, t) {
|
|
708
|
-
return nn(e, this, Un, t.cache.create(), t.serializer);
|
|
704
|
+
function ui(e, t) {
|
|
705
|
+
return Fn(e, this, Dn, t.cache.create(), t.serializer);
|
|
709
706
|
}
|
|
710
|
-
var
|
|
707
|
+
var li = function() {
|
|
711
708
|
return JSON.stringify(arguments);
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
709
|
+
}, hi = (
|
|
710
|
+
/** @class */
|
|
711
|
+
function() {
|
|
712
|
+
function e() {
|
|
713
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
714
|
+
}
|
|
715
|
+
return e.prototype.get = function(t) {
|
|
716
|
+
return this.cache[t];
|
|
717
|
+
}, e.prototype.set = function(t, n) {
|
|
718
|
+
this.cache[t] = n;
|
|
719
|
+
}, e;
|
|
720
|
+
}()
|
|
721
|
+
), ci = {
|
|
723
722
|
create: function() {
|
|
724
|
-
return new
|
|
723
|
+
return new hi();
|
|
725
724
|
}
|
|
726
725
|
}, Ft = {
|
|
727
|
-
variadic:
|
|
728
|
-
monadic: hi
|
|
726
|
+
variadic: ui
|
|
729
727
|
}, A;
|
|
730
728
|
(function(e) {
|
|
731
729
|
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";
|
|
732
730
|
})(A || (A = {}));
|
|
733
|
-
var
|
|
731
|
+
var G;
|
|
734
732
|
(function(e) {
|
|
735
733
|
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";
|
|
736
|
-
})(
|
|
734
|
+
})(G || (G = {}));
|
|
737
735
|
var Ge;
|
|
738
736
|
(function(e) {
|
|
739
737
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
740
738
|
})(Ge || (Ge = {}));
|
|
741
|
-
function
|
|
742
|
-
return e.type ===
|
|
739
|
+
function cn(e) {
|
|
740
|
+
return e.type === G.literal;
|
|
743
741
|
}
|
|
744
|
-
function
|
|
745
|
-
return e.type ===
|
|
742
|
+
function fi(e) {
|
|
743
|
+
return e.type === G.argument;
|
|
744
|
+
}
|
|
745
|
+
function Un(e) {
|
|
746
|
+
return e.type === G.number;
|
|
747
|
+
}
|
|
748
|
+
function Gn(e) {
|
|
749
|
+
return e.type === G.date;
|
|
746
750
|
}
|
|
747
751
|
function $n(e) {
|
|
748
|
-
return e.type ===
|
|
752
|
+
return e.type === G.time;
|
|
749
753
|
}
|
|
750
754
|
function jn(e) {
|
|
751
|
-
return e.type ===
|
|
755
|
+
return e.type === G.select;
|
|
752
756
|
}
|
|
753
757
|
function kn(e) {
|
|
754
|
-
return e.type ===
|
|
758
|
+
return e.type === G.plural;
|
|
759
|
+
}
|
|
760
|
+
function di(e) {
|
|
761
|
+
return e.type === G.pound;
|
|
755
762
|
}
|
|
756
763
|
function Vn(e) {
|
|
757
|
-
return e.type ===
|
|
764
|
+
return e.type === G.tag;
|
|
758
765
|
}
|
|
759
766
|
function Xn(e) {
|
|
760
|
-
return e.type === U.plural;
|
|
761
|
-
}
|
|
762
|
-
function pi(e) {
|
|
763
|
-
return e.type === U.pound;
|
|
764
|
-
}
|
|
765
|
-
function zn(e) {
|
|
766
|
-
return e.type === U.tag;
|
|
767
|
-
}
|
|
768
|
-
function Wn(e) {
|
|
769
767
|
return !!(e && typeof e == "object" && e.type === Ge.number);
|
|
770
768
|
}
|
|
771
769
|
function zt(e) {
|
|
772
770
|
return !!(e && typeof e == "object" && e.type === Ge.dateTime);
|
|
773
771
|
}
|
|
774
|
-
var
|
|
775
|
-
function
|
|
772
|
+
var zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pi = /(?:[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;
|
|
773
|
+
function mi(e) {
|
|
776
774
|
var t = {};
|
|
777
|
-
return e.replace(
|
|
775
|
+
return e.replace(pi, function(n) {
|
|
778
776
|
var r = n.length;
|
|
779
777
|
switch (n[0]) {
|
|
780
778
|
case "G":
|
|
@@ -863,36 +861,36 @@ function gi(e) {
|
|
|
863
861
|
return "";
|
|
864
862
|
}), t;
|
|
865
863
|
}
|
|
866
|
-
var
|
|
867
|
-
function
|
|
864
|
+
var gi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
865
|
+
function bi(e) {
|
|
868
866
|
if (e.length === 0)
|
|
869
867
|
throw new Error("Number skeleton cannot be empty");
|
|
870
|
-
for (var t = e.split(
|
|
871
|
-
return
|
|
868
|
+
for (var t = e.split(gi).filter(function(p) {
|
|
869
|
+
return p.length > 0;
|
|
872
870
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
873
871
|
var o = i[r], u = o.split("/");
|
|
874
872
|
if (u.length === 0)
|
|
875
873
|
throw new Error("Invalid number skeleton");
|
|
876
|
-
for (var
|
|
877
|
-
var
|
|
878
|
-
if (
|
|
874
|
+
for (var s = u[0], c = u.slice(1), l = 0, f = c; l < f.length; l++) {
|
|
875
|
+
var g = f[l];
|
|
876
|
+
if (g.length === 0)
|
|
879
877
|
throw new Error("Invalid number skeleton");
|
|
880
878
|
}
|
|
881
|
-
n.push({ stem:
|
|
879
|
+
n.push({ stem: s, options: c });
|
|
882
880
|
}
|
|
883
881
|
return n;
|
|
884
882
|
}
|
|
885
|
-
function
|
|
883
|
+
function yi(e) {
|
|
886
884
|
return e.replace(/^(.*?)-/, "");
|
|
887
885
|
}
|
|
888
|
-
var
|
|
889
|
-
function
|
|
886
|
+
var fn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wn = /^(@+)?(\+|#+)?[rs]?$/g, vi = /(\*)(0+)|(#+)(0+)|(0+)/g, Zn = /^(0+)$/;
|
|
887
|
+
function dn(e) {
|
|
890
888
|
var t = {};
|
|
891
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
889
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wn, function(n, r, i) {
|
|
892
890
|
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)), "";
|
|
893
891
|
}), t;
|
|
894
892
|
}
|
|
895
|
-
function
|
|
893
|
+
function qn(e) {
|
|
896
894
|
switch (e) {
|
|
897
895
|
case "sign-auto":
|
|
898
896
|
return {
|
|
@@ -932,7 +930,7 @@ function Jn(e) {
|
|
|
932
930
|
};
|
|
933
931
|
}
|
|
934
932
|
}
|
|
935
|
-
function
|
|
933
|
+
function Ei(e) {
|
|
936
934
|
var t;
|
|
937
935
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
938
936
|
notation: "engineering"
|
|
@@ -940,17 +938,17 @@ function xi(e) {
|
|
|
940
938
|
notation: "scientific"
|
|
941
939
|
}, e = e.slice(1)), t) {
|
|
942
940
|
var n = e.slice(0, 2);
|
|
943
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
941
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zn.test(e))
|
|
944
942
|
throw new Error("Malformed concise eng/scientific notation");
|
|
945
943
|
t.minimumIntegerDigits = e.length;
|
|
946
944
|
}
|
|
947
945
|
return t;
|
|
948
946
|
}
|
|
949
|
-
function
|
|
950
|
-
var t = {}, n =
|
|
947
|
+
function pn(e) {
|
|
948
|
+
var t = {}, n = qn(e);
|
|
951
949
|
return n || t;
|
|
952
950
|
}
|
|
953
|
-
function
|
|
951
|
+
function xi(e) {
|
|
954
952
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
955
953
|
var i = r[n];
|
|
956
954
|
switch (i.stem) {
|
|
@@ -974,7 +972,7 @@ function _i(e) {
|
|
|
974
972
|
continue;
|
|
975
973
|
case "measure-unit":
|
|
976
974
|
case "unit":
|
|
977
|
-
t.style = "unit", t.unit =
|
|
975
|
+
t.style = "unit", t.unit = yi(i.options[0]);
|
|
978
976
|
continue;
|
|
979
977
|
case "compact-short":
|
|
980
978
|
case "K":
|
|
@@ -985,13 +983,13 @@ function _i(e) {
|
|
|
985
983
|
t.notation = "compact", t.compactDisplay = "long";
|
|
986
984
|
continue;
|
|
987
985
|
case "scientific":
|
|
988
|
-
t = N(N(N({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
989
|
-
return N(N({},
|
|
986
|
+
t = N(N(N({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
987
|
+
return N(N({}, c), pn(l));
|
|
990
988
|
}, {}));
|
|
991
989
|
continue;
|
|
992
990
|
case "engineering":
|
|
993
|
-
t = N(N(N({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
994
|
-
return N(N({},
|
|
991
|
+
t = N(N(N({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
992
|
+
return N(N({}, c), pn(l));
|
|
995
993
|
}, {}));
|
|
996
994
|
continue;
|
|
997
995
|
case "notation-simple":
|
|
@@ -1036,45 +1034,45 @@ function _i(e) {
|
|
|
1036
1034
|
case "integer-width":
|
|
1037
1035
|
if (i.options.length > 1)
|
|
1038
1036
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1039
|
-
i.options[0].replace(
|
|
1037
|
+
i.options[0].replace(vi, function(c, l, f, g, p, y) {
|
|
1040
1038
|
if (l)
|
|
1041
1039
|
t.minimumIntegerDigits = f.length;
|
|
1042
1040
|
else {
|
|
1043
|
-
if (
|
|
1041
|
+
if (g && p)
|
|
1044
1042
|
throw new Error("We currently do not support maximum integer digits");
|
|
1045
|
-
if (
|
|
1043
|
+
if (y)
|
|
1046
1044
|
throw new Error("We currently do not support exact integer digits");
|
|
1047
1045
|
}
|
|
1048
1046
|
return "";
|
|
1049
1047
|
});
|
|
1050
1048
|
continue;
|
|
1051
1049
|
}
|
|
1052
|
-
if (
|
|
1050
|
+
if (Zn.test(i.stem)) {
|
|
1053
1051
|
t.minimumIntegerDigits = i.stem.length;
|
|
1054
1052
|
continue;
|
|
1055
1053
|
}
|
|
1056
|
-
if (
|
|
1054
|
+
if (fn.test(i.stem)) {
|
|
1057
1055
|
if (i.options.length > 1)
|
|
1058
1056
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1059
|
-
i.stem.replace(
|
|
1060
|
-
return f === "*" ? t.minimumFractionDigits = l.length :
|
|
1057
|
+
i.stem.replace(fn, function(c, l, f, g, p, y) {
|
|
1058
|
+
return f === "*" ? t.minimumFractionDigits = l.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : p && y ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1061
1059
|
});
|
|
1062
1060
|
var o = i.options[0];
|
|
1063
|
-
o === "w" ? t = N(N({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = N(N({}, t),
|
|
1061
|
+
o === "w" ? t = N(N({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = N(N({}, t), dn(o)));
|
|
1064
1062
|
continue;
|
|
1065
1063
|
}
|
|
1066
|
-
if (
|
|
1067
|
-
t = N(N({}, t),
|
|
1064
|
+
if (Wn.test(i.stem)) {
|
|
1065
|
+
t = N(N({}, t), dn(i.stem));
|
|
1068
1066
|
continue;
|
|
1069
1067
|
}
|
|
1070
|
-
var u =
|
|
1068
|
+
var u = qn(i.stem);
|
|
1071
1069
|
u && (t = N(N({}, t), u));
|
|
1072
|
-
var
|
|
1073
|
-
|
|
1070
|
+
var s = Ei(i.stem);
|
|
1071
|
+
s && (t = N(N({}, t), s));
|
|
1074
1072
|
}
|
|
1075
1073
|
return t;
|
|
1076
1074
|
}
|
|
1077
|
-
var
|
|
1075
|
+
var ft = {
|
|
1078
1076
|
"001": [
|
|
1079
1077
|
"H",
|
|
1080
1078
|
"h"
|
|
@@ -2489,22 +2487,22 @@ var ht = {
|
|
|
2489
2487
|
"h"
|
|
2490
2488
|
]
|
|
2491
2489
|
};
|
|
2492
|
-
function
|
|
2490
|
+
function _i(e, t) {
|
|
2493
2491
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2494
2492
|
var i = e.charAt(r);
|
|
2495
2493
|
if (i === "j") {
|
|
2496
2494
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2497
2495
|
o++, r++;
|
|
2498
|
-
var u = 1 + (o & 1),
|
|
2499
|
-
for ((l == "H" || l == "k") && (
|
|
2500
|
-
n +=
|
|
2496
|
+
var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = Ti(t);
|
|
2497
|
+
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2498
|
+
n += c;
|
|
2501
2499
|
for (; u-- > 0; )
|
|
2502
2500
|
n = l + n;
|
|
2503
2501
|
} else i === "J" ? n += "H" : n += i;
|
|
2504
2502
|
}
|
|
2505
2503
|
return n;
|
|
2506
2504
|
}
|
|
2507
|
-
function
|
|
2505
|
+
function Ti(e) {
|
|
2508
2506
|
var t = e.hourCycle;
|
|
2509
2507
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2510
2508
|
e.hourCycles && // @ts-ignore
|
|
@@ -2523,23 +2521,23 @@ function Bi(e) {
|
|
|
2523
2521
|
}
|
|
2524
2522
|
var n = e.language, r;
|
|
2525
2523
|
n !== "root" && (r = e.maximize().region);
|
|
2526
|
-
var i =
|
|
2524
|
+
var i = ft[r || ""] || ft[n || ""] || ft["".concat(n, "-001")] || ft["001"];
|
|
2527
2525
|
return i[0];
|
|
2528
2526
|
}
|
|
2529
|
-
var Ut,
|
|
2527
|
+
var Ut, Bi = new RegExp("^".concat(zn.source, "*")), Si = new RegExp("".concat(zn.source, "*$"));
|
|
2530
2528
|
function O(e, t) {
|
|
2531
2529
|
return { start: e, end: t };
|
|
2532
2530
|
}
|
|
2533
|
-
var
|
|
2531
|
+
var wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ai = !!String.fromCodePoint, Ci = !!Object.fromEntries, Hi = !!String.prototype.codePointAt, Oi = !!String.prototype.trimStart, Ri = !!String.prototype.trimEnd, Li = !!Number.isSafeInteger, Ni = Li ? Number.isSafeInteger : function(e) {
|
|
2534
2532
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2535
2533
|
}, Wt = !0;
|
|
2536
2534
|
try {
|
|
2537
|
-
var
|
|
2538
|
-
Wt = ((Ut =
|
|
2535
|
+
var Mi = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2536
|
+
Wt = ((Ut = Mi.exec("a")) === null || Ut === void 0 ? void 0 : Ut[0]) === "a";
|
|
2539
2537
|
} catch (e) {
|
|
2540
2538
|
Wt = !1;
|
|
2541
2539
|
}
|
|
2542
|
-
var
|
|
2540
|
+
var mn = wi ? (
|
|
2543
2541
|
// Native
|
|
2544
2542
|
function(t, n, r) {
|
|
2545
2543
|
return t.startsWith(n, r);
|
|
@@ -2549,7 +2547,7 @@ var bn = Ai ? (
|
|
|
2549
2547
|
function(t, n, r) {
|
|
2550
2548
|
return t.slice(r, r + n.length) === n;
|
|
2551
2549
|
}
|
|
2552
|
-
), Zt =
|
|
2550
|
+
), Zt = Ai ? String.fromCodePoint : (
|
|
2553
2551
|
// IE11
|
|
2554
2552
|
function() {
|
|
2555
2553
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2561,19 +2559,19 @@ var bn = Ai ? (
|
|
|
2561
2559
|
}
|
|
2562
2560
|
return r;
|
|
2563
2561
|
}
|
|
2564
|
-
),
|
|
2562
|
+
), gn = (
|
|
2565
2563
|
// native
|
|
2566
|
-
|
|
2564
|
+
Ci ? Object.fromEntries : (
|
|
2567
2565
|
// Ponyfill
|
|
2568
2566
|
function(t) {
|
|
2569
2567
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2570
|
-
var o = i[r], u = o[0],
|
|
2571
|
-
n[u] =
|
|
2568
|
+
var o = i[r], u = o[0], s = o[1];
|
|
2569
|
+
n[u] = s;
|
|
2572
2570
|
}
|
|
2573
2571
|
return n;
|
|
2574
2572
|
}
|
|
2575
2573
|
)
|
|
2576
|
-
),
|
|
2574
|
+
), Qn = Hi ? (
|
|
2577
2575
|
// Native
|
|
2578
2576
|
function(t, n) {
|
|
2579
2577
|
return t.codePointAt(n);
|
|
@@ -2587,7 +2585,7 @@ var bn = Ai ? (
|
|
|
2587
2585
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2588
2586
|
}
|
|
2589
2587
|
}
|
|
2590
|
-
),
|
|
2588
|
+
), Pi = Oi ? (
|
|
2591
2589
|
// Native
|
|
2592
2590
|
function(t) {
|
|
2593
2591
|
return t.trimStart();
|
|
@@ -2595,9 +2593,9 @@ var bn = Ai ? (
|
|
|
2595
2593
|
) : (
|
|
2596
2594
|
// Ponyfill
|
|
2597
2595
|
function(t) {
|
|
2598
|
-
return t.replace(
|
|
2596
|
+
return t.replace(Bi, "");
|
|
2599
2597
|
}
|
|
2600
|
-
),
|
|
2598
|
+
), Ii = Ri ? (
|
|
2601
2599
|
// Native
|
|
2602
2600
|
function(t) {
|
|
2603
2601
|
return t.trimEnd();
|
|
@@ -2605,32 +2603,32 @@ var bn = Ai ? (
|
|
|
2605
2603
|
) : (
|
|
2606
2604
|
// Ponyfill
|
|
2607
2605
|
function(t) {
|
|
2608
|
-
return t.replace(
|
|
2606
|
+
return t.replace(Si, "");
|
|
2609
2607
|
}
|
|
2610
2608
|
);
|
|
2611
|
-
function
|
|
2609
|
+
function Jn(e, t) {
|
|
2612
2610
|
return new RegExp(e, t);
|
|
2613
2611
|
}
|
|
2614
2612
|
var qt;
|
|
2615
2613
|
if (Wt) {
|
|
2616
|
-
var
|
|
2614
|
+
var bn = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2617
2615
|
qt = function(t, n) {
|
|
2618
2616
|
var r;
|
|
2619
|
-
|
|
2620
|
-
var i =
|
|
2617
|
+
bn.lastIndex = n;
|
|
2618
|
+
var i = bn.exec(t);
|
|
2621
2619
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2622
2620
|
};
|
|
2623
2621
|
} else
|
|
2624
2622
|
qt = function(t, n) {
|
|
2625
2623
|
for (var r = []; ; ) {
|
|
2626
|
-
var i =
|
|
2627
|
-
if (i === void 0 ||
|
|
2624
|
+
var i = Qn(t, n);
|
|
2625
|
+
if (i === void 0 || Yn(i) || Gi(i))
|
|
2628
2626
|
break;
|
|
2629
2627
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2630
2628
|
}
|
|
2631
2629
|
return Zt.apply(void 0, r);
|
|
2632
2630
|
};
|
|
2633
|
-
var
|
|
2631
|
+
var Di = (
|
|
2634
2632
|
/** @class */
|
|
2635
2633
|
function() {
|
|
2636
2634
|
function e(t, n) {
|
|
@@ -2652,10 +2650,10 @@ var Fi = (
|
|
|
2652
2650
|
if (o === 125 && t > 0)
|
|
2653
2651
|
break;
|
|
2654
2652
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2655
|
-
var
|
|
2653
|
+
var s = this.clonePosition();
|
|
2656
2654
|
this.bump(), i.push({
|
|
2657
|
-
type:
|
|
2658
|
-
location: O(
|
|
2655
|
+
type: G.pound,
|
|
2656
|
+
location: O(s, this.clonePosition())
|
|
2659
2657
|
});
|
|
2660
2658
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2661
2659
|
if (r)
|
|
@@ -2682,7 +2680,7 @@ var Fi = (
|
|
|
2682
2680
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2683
2681
|
return {
|
|
2684
2682
|
val: {
|
|
2685
|
-
type:
|
|
2683
|
+
type: G.literal,
|
|
2686
2684
|
value: "<".concat(i, "/>"),
|
|
2687
2685
|
location: O(r, this.clonePosition())
|
|
2688
2686
|
},
|
|
@@ -2692,27 +2690,27 @@ var Fi = (
|
|
|
2692
2690
|
var o = this.parseMessage(t + 1, n, !0);
|
|
2693
2691
|
if (o.err)
|
|
2694
2692
|
return o;
|
|
2695
|
-
var u = o.val,
|
|
2693
|
+
var u = o.val, s = this.clonePosition();
|
|
2696
2694
|
if (this.bumpIf("</")) {
|
|
2697
2695
|
if (this.isEOF() || !Qt(this.char()))
|
|
2698
|
-
return this.error(A.INVALID_TAG, O(
|
|
2699
|
-
var
|
|
2700
|
-
return i !== l ? this.error(A.UNMATCHED_CLOSING_TAG, O(
|
|
2696
|
+
return this.error(A.INVALID_TAG, O(s, this.clonePosition()));
|
|
2697
|
+
var c = this.clonePosition(), l = this.parseTagName();
|
|
2698
|
+
return i !== l ? this.error(A.UNMATCHED_CLOSING_TAG, O(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2701
2699
|
val: {
|
|
2702
|
-
type:
|
|
2700
|
+
type: G.tag,
|
|
2703
2701
|
value: i,
|
|
2704
2702
|
children: u,
|
|
2705
2703
|
location: O(r, this.clonePosition())
|
|
2706
2704
|
},
|
|
2707
2705
|
err: null
|
|
2708
|
-
} : this.error(A.INVALID_TAG, O(
|
|
2706
|
+
} : this.error(A.INVALID_TAG, O(s, this.clonePosition())));
|
|
2709
2707
|
} else
|
|
2710
2708
|
return this.error(A.UNCLOSED_TAG, O(r, this.clonePosition()));
|
|
2711
2709
|
} else
|
|
2712
2710
|
return this.error(A.INVALID_TAG, O(r, this.clonePosition()));
|
|
2713
2711
|
}, e.prototype.parseTagName = function() {
|
|
2714
2712
|
var t = this.offset();
|
|
2715
|
-
for (this.bump(); !this.isEOF() &&
|
|
2713
|
+
for (this.bump(); !this.isEOF() && Ui(this.char()); )
|
|
2716
2714
|
this.bump();
|
|
2717
2715
|
return this.message.slice(t, this.offset());
|
|
2718
2716
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2727,21 +2725,21 @@ var Fi = (
|
|
|
2727
2725
|
i += u;
|
|
2728
2726
|
continue;
|
|
2729
2727
|
}
|
|
2730
|
-
var
|
|
2731
|
-
if (
|
|
2732
|
-
i +=
|
|
2728
|
+
var s = this.tryParseLeftAngleBracket();
|
|
2729
|
+
if (s) {
|
|
2730
|
+
i += s;
|
|
2733
2731
|
continue;
|
|
2734
2732
|
}
|
|
2735
2733
|
break;
|
|
2736
2734
|
}
|
|
2737
|
-
var
|
|
2735
|
+
var c = O(r, this.clonePosition());
|
|
2738
2736
|
return {
|
|
2739
|
-
val: { type:
|
|
2737
|
+
val: { type: G.literal, value: i, location: c },
|
|
2740
2738
|
err: null
|
|
2741
2739
|
};
|
|
2742
2740
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2743
2741
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2744
|
-
!
|
|
2742
|
+
!Fi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2745
2743
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2746
2744
|
if (this.isEOF() || this.char() !== 39)
|
|
2747
2745
|
return null;
|
|
@@ -2796,7 +2794,7 @@ var Fi = (
|
|
|
2796
2794
|
case 125:
|
|
2797
2795
|
return this.bump(), {
|
|
2798
2796
|
val: {
|
|
2799
|
-
type:
|
|
2797
|
+
type: G.argument,
|
|
2800
2798
|
// value does not include the opening and closing braces.
|
|
2801
2799
|
value: i,
|
|
2802
2800
|
location: O(r, this.clonePosition())
|
|
@@ -2814,10 +2812,10 @@ var Fi = (
|
|
|
2814
2812
|
var o = this.clonePosition(), u = O(t, o);
|
|
2815
2813
|
return { value: r, location: u };
|
|
2816
2814
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2817
|
-
var o, u = this.clonePosition(),
|
|
2818
|
-
switch (
|
|
2815
|
+
var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2816
|
+
switch (s) {
|
|
2819
2817
|
case "":
|
|
2820
|
-
return this.error(A.EXPECT_ARGUMENT_TYPE, O(u,
|
|
2818
|
+
return this.error(A.EXPECT_ARGUMENT_TYPE, O(u, c));
|
|
2821
2819
|
case "number":
|
|
2822
2820
|
case "date":
|
|
2823
2821
|
case "time": {
|
|
@@ -2825,47 +2823,47 @@ var Fi = (
|
|
|
2825
2823
|
var l = null;
|
|
2826
2824
|
if (this.bumpIf(",")) {
|
|
2827
2825
|
this.bumpSpace();
|
|
2828
|
-
var f = this.clonePosition(),
|
|
2829
|
-
if (
|
|
2830
|
-
return
|
|
2831
|
-
var
|
|
2832
|
-
if (
|
|
2826
|
+
var f = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
|
|
2827
|
+
if (g.err)
|
|
2828
|
+
return g;
|
|
2829
|
+
var p = Ii(g.val);
|
|
2830
|
+
if (p.length === 0)
|
|
2833
2831
|
return this.error(A.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2834
|
-
var
|
|
2835
|
-
l = { style:
|
|
2832
|
+
var y = O(f, this.clonePosition());
|
|
2833
|
+
l = { style: p, styleLocation: y };
|
|
2836
2834
|
}
|
|
2837
|
-
var
|
|
2838
|
-
if (
|
|
2839
|
-
return
|
|
2835
|
+
var E = this.tryParseArgumentClose(i);
|
|
2836
|
+
if (E.err)
|
|
2837
|
+
return E;
|
|
2840
2838
|
var M = O(i, this.clonePosition());
|
|
2841
|
-
if (l &&
|
|
2842
|
-
var C =
|
|
2843
|
-
if (
|
|
2844
|
-
var
|
|
2845
|
-
return
|
|
2846
|
-
val: { type:
|
|
2839
|
+
if (l && mn(l == null ? void 0 : l.style, "::", 0)) {
|
|
2840
|
+
var C = Pi(l.style.slice(2));
|
|
2841
|
+
if (s === "number") {
|
|
2842
|
+
var g = this.parseNumberSkeletonFromString(C, l.styleLocation);
|
|
2843
|
+
return g.err ? g : {
|
|
2844
|
+
val: { type: G.number, value: r, location: M, style: g.val },
|
|
2847
2845
|
err: null
|
|
2848
2846
|
};
|
|
2849
2847
|
} else {
|
|
2850
2848
|
if (C.length === 0)
|
|
2851
2849
|
return this.error(A.EXPECT_DATE_TIME_SKELETON, M);
|
|
2852
|
-
var
|
|
2853
|
-
this.locale && (
|
|
2854
|
-
var
|
|
2850
|
+
var $ = C;
|
|
2851
|
+
this.locale && ($ = _i(C, this.locale));
|
|
2852
|
+
var p = {
|
|
2855
2853
|
type: Ge.dateTime,
|
|
2856
|
-
pattern:
|
|
2854
|
+
pattern: $,
|
|
2857
2855
|
location: l.styleLocation,
|
|
2858
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2859
|
-
}, X =
|
|
2856
|
+
parsedOptions: this.shouldParseSkeletons ? mi($) : {}
|
|
2857
|
+
}, X = s === "date" ? G.date : G.time;
|
|
2860
2858
|
return {
|
|
2861
|
-
val: { type: X, value: r, location: M, style:
|
|
2859
|
+
val: { type: X, value: r, location: M, style: p },
|
|
2862
2860
|
err: null
|
|
2863
2861
|
};
|
|
2864
2862
|
}
|
|
2865
2863
|
}
|
|
2866
2864
|
return {
|
|
2867
2865
|
val: {
|
|
2868
|
-
type:
|
|
2866
|
+
type: s === "number" ? G.number : s === "date" ? G.date : G.time,
|
|
2869
2867
|
value: r,
|
|
2870
2868
|
location: M,
|
|
2871
2869
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
@@ -2880,45 +2878,45 @@ var Fi = (
|
|
|
2880
2878
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2881
2879
|
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, O(T, N({}, T)));
|
|
2882
2880
|
this.bumpSpace();
|
|
2883
|
-
var S = this.parseIdentifierIfPossible(),
|
|
2884
|
-
if (
|
|
2881
|
+
var S = this.parseIdentifierIfPossible(), U = 0;
|
|
2882
|
+
if (s !== "select" && S.value === "offset") {
|
|
2885
2883
|
if (!this.bumpIf(":"))
|
|
2886
2884
|
return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
|
|
2887
2885
|
this.bumpSpace();
|
|
2888
|
-
var
|
|
2889
|
-
if (
|
|
2890
|
-
return
|
|
2891
|
-
this.bumpSpace(), S = this.parseIdentifierIfPossible(),
|
|
2886
|
+
var g = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2887
|
+
if (g.err)
|
|
2888
|
+
return g;
|
|
2889
|
+
this.bumpSpace(), S = this.parseIdentifierIfPossible(), U = g.val;
|
|
2892
2890
|
}
|
|
2893
|
-
var P = this.tryParsePluralOrSelectOptions(t,
|
|
2891
|
+
var P = this.tryParsePluralOrSelectOptions(t, s, n, S);
|
|
2894
2892
|
if (P.err)
|
|
2895
2893
|
return P;
|
|
2896
|
-
var
|
|
2897
|
-
if (
|
|
2898
|
-
return
|
|
2899
|
-
var
|
|
2900
|
-
return
|
|
2894
|
+
var E = this.tryParseArgumentClose(i);
|
|
2895
|
+
if (E.err)
|
|
2896
|
+
return E;
|
|
2897
|
+
var te = O(i, this.clonePosition());
|
|
2898
|
+
return s === "select" ? {
|
|
2901
2899
|
val: {
|
|
2902
|
-
type:
|
|
2900
|
+
type: G.select,
|
|
2903
2901
|
value: r,
|
|
2904
|
-
options:
|
|
2905
|
-
location:
|
|
2902
|
+
options: gn(P.val),
|
|
2903
|
+
location: te
|
|
2906
2904
|
},
|
|
2907
2905
|
err: null
|
|
2908
2906
|
} : {
|
|
2909
2907
|
val: {
|
|
2910
|
-
type:
|
|
2908
|
+
type: G.plural,
|
|
2911
2909
|
value: r,
|
|
2912
|
-
options:
|
|
2913
|
-
offset:
|
|
2914
|
-
pluralType:
|
|
2915
|
-
location:
|
|
2910
|
+
options: gn(P.val),
|
|
2911
|
+
offset: U,
|
|
2912
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2913
|
+
location: te
|
|
2916
2914
|
},
|
|
2917
2915
|
err: null
|
|
2918
2916
|
};
|
|
2919
2917
|
}
|
|
2920
2918
|
default:
|
|
2921
|
-
return this.error(A.INVALID_ARGUMENT_TYPE, O(u,
|
|
2919
|
+
return this.error(A.INVALID_ARGUMENT_TYPE, O(u, c));
|
|
2922
2920
|
}
|
|
2923
2921
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2924
2922
|
return this.isEOF() || this.char() !== 125 ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2960,7 +2958,7 @@ var Fi = (
|
|
|
2960
2958
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2961
2959
|
var r = [];
|
|
2962
2960
|
try {
|
|
2963
|
-
r =
|
|
2961
|
+
r = bi(t);
|
|
2964
2962
|
} catch (i) {
|
|
2965
2963
|
return this.error(A.INVALID_NUMBER_SKELETON, n);
|
|
2966
2964
|
}
|
|
@@ -2969,55 +2967,55 @@ var Fi = (
|
|
|
2969
2967
|
type: Ge.number,
|
|
2970
2968
|
tokens: r,
|
|
2971
2969
|
location: n,
|
|
2972
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2970
|
+
parsedOptions: this.shouldParseSkeletons ? xi(r) : {}
|
|
2973
2971
|
},
|
|
2974
2972
|
err: null
|
|
2975
2973
|
};
|
|
2976
2974
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2977
|
-
for (var o, u = !1,
|
|
2975
|
+
for (var o, u = !1, s = [], c = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
|
|
2978
2976
|
if (l.length === 0) {
|
|
2979
|
-
var
|
|
2977
|
+
var g = this.clonePosition();
|
|
2980
2978
|
if (n !== "select" && this.bumpIf("=")) {
|
|
2981
|
-
var
|
|
2982
|
-
if (
|
|
2983
|
-
return
|
|
2984
|
-
f = O(
|
|
2979
|
+
var p = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2980
|
+
if (p.err)
|
|
2981
|
+
return p;
|
|
2982
|
+
f = O(g, this.clonePosition()), l = this.message.slice(g.offset, this.offset());
|
|
2985
2983
|
} else
|
|
2986
2984
|
break;
|
|
2987
2985
|
}
|
|
2988
|
-
if (
|
|
2986
|
+
if (c.has(l))
|
|
2989
2987
|
return this.error(n === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
2990
2988
|
l === "other" && (u = !0), this.bumpSpace();
|
|
2991
|
-
var
|
|
2989
|
+
var y = this.clonePosition();
|
|
2992
2990
|
if (!this.bumpIf("{"))
|
|
2993
2991
|
return this.error(n === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
|
|
2994
|
-
var
|
|
2995
|
-
if (
|
|
2996
|
-
return
|
|
2997
|
-
var M = this.tryParseArgumentClose(
|
|
2992
|
+
var E = this.parseMessage(t + 1, n, r);
|
|
2993
|
+
if (E.err)
|
|
2994
|
+
return E;
|
|
2995
|
+
var M = this.tryParseArgumentClose(y);
|
|
2998
2996
|
if (M.err)
|
|
2999
2997
|
return M;
|
|
3000
|
-
|
|
2998
|
+
s.push([
|
|
3001
2999
|
l,
|
|
3002
3000
|
{
|
|
3003
|
-
value:
|
|
3004
|
-
location: O(
|
|
3001
|
+
value: E.val,
|
|
3002
|
+
location: O(y, this.clonePosition())
|
|
3005
3003
|
}
|
|
3006
|
-
]),
|
|
3004
|
+
]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
|
|
3007
3005
|
}
|
|
3008
|
-
return
|
|
3006
|
+
return s.length === 0 ? this.error(n === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR : A.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(A.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3009
3007
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3010
3008
|
var r = 1, i = this.clonePosition();
|
|
3011
3009
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3012
3010
|
for (var o = !1, u = 0; !this.isEOF(); ) {
|
|
3013
|
-
var
|
|
3014
|
-
if (
|
|
3015
|
-
o = !0, u = u * 10 + (
|
|
3011
|
+
var s = this.char();
|
|
3012
|
+
if (s >= 48 && s <= 57)
|
|
3013
|
+
o = !0, u = u * 10 + (s - 48), this.bump();
|
|
3016
3014
|
else
|
|
3017
3015
|
break;
|
|
3018
3016
|
}
|
|
3019
|
-
var
|
|
3020
|
-
return o ? (u *= r,
|
|
3017
|
+
var c = O(i, this.clonePosition());
|
|
3018
|
+
return o ? (u *= r, Ni(u) ? { val: u, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3021
3019
|
}, e.prototype.offset = function() {
|
|
3022
3020
|
return this.position.offset;
|
|
3023
3021
|
}, e.prototype.isEOF = function() {
|
|
@@ -3032,7 +3030,7 @@ var Fi = (
|
|
|
3032
3030
|
var t = this.position.offset;
|
|
3033
3031
|
if (t >= this.message.length)
|
|
3034
3032
|
throw Error("out of bound");
|
|
3035
|
-
var n =
|
|
3033
|
+
var n = Qn(this.message, t);
|
|
3036
3034
|
if (n === void 0)
|
|
3037
3035
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3038
3036
|
return n;
|
|
@@ -3051,7 +3049,7 @@ var Fi = (
|
|
|
3051
3049
|
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);
|
|
3052
3050
|
}
|
|
3053
3051
|
}, e.prototype.bumpIf = function(t) {
|
|
3054
|
-
if (
|
|
3052
|
+
if (mn(this.message, t, this.offset())) {
|
|
3055
3053
|
for (var n = 0; n < t.length; n++)
|
|
3056
3054
|
this.bump();
|
|
3057
3055
|
return !0;
|
|
@@ -3073,7 +3071,7 @@ var Fi = (
|
|
|
3073
3071
|
break;
|
|
3074
3072
|
}
|
|
3075
3073
|
}, e.prototype.bumpSpace = function() {
|
|
3076
|
-
for (; !this.isEOF() &&
|
|
3074
|
+
for (; !this.isEOF() && Yn(this.char()); )
|
|
3077
3075
|
this.bump();
|
|
3078
3076
|
}, e.prototype.peek = function() {
|
|
3079
3077
|
if (this.isEOF())
|
|
@@ -3086,29 +3084,29 @@ var Fi = (
|
|
|
3086
3084
|
function Qt(e) {
|
|
3087
3085
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3088
3086
|
}
|
|
3089
|
-
function
|
|
3087
|
+
function Fi(e) {
|
|
3090
3088
|
return Qt(e) || e === 47;
|
|
3091
3089
|
}
|
|
3092
|
-
function
|
|
3090
|
+
function Ui(e) {
|
|
3093
3091
|
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;
|
|
3094
3092
|
}
|
|
3095
|
-
function
|
|
3093
|
+
function Yn(e) {
|
|
3096
3094
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3097
3095
|
}
|
|
3098
|
-
function
|
|
3096
|
+
function Gi(e) {
|
|
3099
3097
|
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;
|
|
3100
3098
|
}
|
|
3101
3099
|
function Jt(e) {
|
|
3102
3100
|
e.forEach(function(t) {
|
|
3103
|
-
if (delete t.location,
|
|
3101
|
+
if (delete t.location, jn(t) || kn(t))
|
|
3104
3102
|
for (var n in t.options)
|
|
3105
3103
|
delete t.options[n].location, Jt(t.options[n].value);
|
|
3106
|
-
else
|
|
3104
|
+
else Un(t) && Xn(t.style) || (Gn(t) || $n(t)) && zt(t.style) ? delete t.style.location : Vn(t) && Jt(t.children);
|
|
3107
3105
|
});
|
|
3108
3106
|
}
|
|
3109
|
-
function
|
|
3107
|
+
function $i(e, t) {
|
|
3110
3108
|
t === void 0 && (t = {}), t = N({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3111
|
-
var n = new
|
|
3109
|
+
var n = new Di(e, t).parse();
|
|
3112
3110
|
if (n.err) {
|
|
3113
3111
|
var r = SyntaxError(A[n.err.kind]);
|
|
3114
3112
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
@@ -3119,10 +3117,10 @@ var $e;
|
|
|
3119
3117
|
(function(e) {
|
|
3120
3118
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3121
3119
|
})($e || ($e = {}));
|
|
3122
|
-
var
|
|
3120
|
+
var Tt = (
|
|
3123
3121
|
/** @class */
|
|
3124
3122
|
function(e) {
|
|
3125
|
-
|
|
3123
|
+
_t(t, e);
|
|
3126
3124
|
function t(n, r, i) {
|
|
3127
3125
|
var o = e.call(this, n) || this;
|
|
3128
3126
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3131,152 +3129,152 @@ var xt = (
|
|
|
3131
3129
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3132
3130
|
}, t;
|
|
3133
3131
|
}(Error)
|
|
3134
|
-
),
|
|
3132
|
+
), yn = (
|
|
3135
3133
|
/** @class */
|
|
3136
3134
|
function(e) {
|
|
3137
|
-
|
|
3135
|
+
_t(t, e);
|
|
3138
3136
|
function t(n, r, i, o) {
|
|
3139
3137
|
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
|
|
3140
3138
|
}
|
|
3141
3139
|
return t;
|
|
3142
|
-
}(
|
|
3143
|
-
),
|
|
3140
|
+
}(Tt)
|
|
3141
|
+
), ji = (
|
|
3144
3142
|
/** @class */
|
|
3145
3143
|
function(e) {
|
|
3146
|
-
|
|
3144
|
+
_t(t, e);
|
|
3147
3145
|
function t(n, r, i) {
|
|
3148
3146
|
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
|
|
3149
3147
|
}
|
|
3150
3148
|
return t;
|
|
3151
|
-
}(
|
|
3152
|
-
),
|
|
3149
|
+
}(Tt)
|
|
3150
|
+
), ki = (
|
|
3153
3151
|
/** @class */
|
|
3154
3152
|
function(e) {
|
|
3155
|
-
|
|
3153
|
+
_t(t, e);
|
|
3156
3154
|
function t(n, r) {
|
|
3157
3155
|
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
|
|
3158
3156
|
}
|
|
3159
3157
|
return t;
|
|
3160
|
-
}(
|
|
3161
|
-
),
|
|
3158
|
+
}(Tt)
|
|
3159
|
+
), ee;
|
|
3162
3160
|
(function(e) {
|
|
3163
3161
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3164
|
-
})(
|
|
3165
|
-
function
|
|
3162
|
+
})(ee || (ee = {}));
|
|
3163
|
+
function Vi(e) {
|
|
3166
3164
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3167
3165
|
var r = t[t.length - 1];
|
|
3168
|
-
return !r || r.type !==
|
|
3166
|
+
return !r || r.type !== ee.literal || n.type !== ee.literal ? t.push(n) : r.value += n.value, t;
|
|
3169
3167
|
}, []);
|
|
3170
3168
|
}
|
|
3171
|
-
function
|
|
3169
|
+
function Xi(e) {
|
|
3172
3170
|
return typeof e == "function";
|
|
3173
3171
|
}
|
|
3174
|
-
function
|
|
3175
|
-
if (e.length === 1 &&
|
|
3172
|
+
function pt(e, t, n, r, i, o, u) {
|
|
3173
|
+
if (e.length === 1 && cn(e[0]))
|
|
3176
3174
|
return [
|
|
3177
3175
|
{
|
|
3178
|
-
type:
|
|
3176
|
+
type: ee.literal,
|
|
3179
3177
|
value: e[0].value
|
|
3180
3178
|
}
|
|
3181
3179
|
];
|
|
3182
|
-
for (var
|
|
3183
|
-
var f = l[
|
|
3184
|
-
if (
|
|
3185
|
-
|
|
3186
|
-
type:
|
|
3180
|
+
for (var s = [], c = 0, l = e; c < l.length; c++) {
|
|
3181
|
+
var f = l[c];
|
|
3182
|
+
if (cn(f)) {
|
|
3183
|
+
s.push({
|
|
3184
|
+
type: ee.literal,
|
|
3187
3185
|
value: f.value
|
|
3188
3186
|
});
|
|
3189
3187
|
continue;
|
|
3190
3188
|
}
|
|
3191
|
-
if (
|
|
3192
|
-
typeof o == "number" &&
|
|
3193
|
-
type:
|
|
3189
|
+
if (di(f)) {
|
|
3190
|
+
typeof o == "number" && s.push({
|
|
3191
|
+
type: ee.literal,
|
|
3194
3192
|
value: n.getNumberFormat(t).format(o)
|
|
3195
3193
|
});
|
|
3196
3194
|
continue;
|
|
3197
3195
|
}
|
|
3198
|
-
var
|
|
3199
|
-
if (!(i &&
|
|
3200
|
-
throw new
|
|
3201
|
-
var
|
|
3202
|
-
if (
|
|
3203
|
-
(!
|
|
3204
|
-
type: typeof
|
|
3205
|
-
value:
|
|
3196
|
+
var g = f.value;
|
|
3197
|
+
if (!(i && g in i))
|
|
3198
|
+
throw new ki(g, u);
|
|
3199
|
+
var p = i[g];
|
|
3200
|
+
if (fi(f)) {
|
|
3201
|
+
(!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), s.push({
|
|
3202
|
+
type: typeof p == "string" ? ee.literal : ee.object,
|
|
3203
|
+
value: p
|
|
3206
3204
|
});
|
|
3207
3205
|
continue;
|
|
3208
3206
|
}
|
|
3209
|
-
if (
|
|
3210
|
-
var
|
|
3211
|
-
|
|
3212
|
-
type:
|
|
3213
|
-
value: n.getDateTimeFormat(t,
|
|
3207
|
+
if (Gn(f)) {
|
|
3208
|
+
var y = typeof f.style == "string" ? r.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
|
|
3209
|
+
s.push({
|
|
3210
|
+
type: ee.literal,
|
|
3211
|
+
value: n.getDateTimeFormat(t, y).format(p)
|
|
3214
3212
|
});
|
|
3215
3213
|
continue;
|
|
3216
3214
|
}
|
|
3217
|
-
if (
|
|
3218
|
-
var
|
|
3219
|
-
|
|
3220
|
-
type:
|
|
3221
|
-
value: n.getDateTimeFormat(t,
|
|
3215
|
+
if ($n(f)) {
|
|
3216
|
+
var y = typeof f.style == "string" ? r.time[f.style] : zt(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3217
|
+
s.push({
|
|
3218
|
+
type: ee.literal,
|
|
3219
|
+
value: n.getDateTimeFormat(t, y).format(p)
|
|
3222
3220
|
});
|
|
3223
3221
|
continue;
|
|
3224
3222
|
}
|
|
3225
|
-
if (
|
|
3226
|
-
var
|
|
3227
|
-
|
|
3228
|
-
type:
|
|
3229
|
-
value: n.getNumberFormat(t,
|
|
3223
|
+
if (Un(f)) {
|
|
3224
|
+
var y = typeof f.style == "string" ? r.number[f.style] : Xn(f.style) ? f.style.parsedOptions : void 0;
|
|
3225
|
+
y && y.scale && (p = p * (y.scale || 1)), s.push({
|
|
3226
|
+
type: ee.literal,
|
|
3227
|
+
value: n.getNumberFormat(t, y).format(p)
|
|
3230
3228
|
});
|
|
3231
3229
|
continue;
|
|
3232
3230
|
}
|
|
3233
|
-
if (
|
|
3234
|
-
var
|
|
3235
|
-
if (!
|
|
3236
|
-
throw new
|
|
3237
|
-
var
|
|
3238
|
-
return
|
|
3231
|
+
if (Vn(f)) {
|
|
3232
|
+
var E = f.children, M = f.value, C = i[M];
|
|
3233
|
+
if (!Xi(C))
|
|
3234
|
+
throw new ji(M, "function", u);
|
|
3235
|
+
var $ = pt(E, t, n, r, i, o), X = C($.map(function(U) {
|
|
3236
|
+
return U.value;
|
|
3239
3237
|
}));
|
|
3240
|
-
Array.isArray(X) || (X = [X]),
|
|
3238
|
+
Array.isArray(X) || (X = [X]), s.push.apply(s, X.map(function(U) {
|
|
3241
3239
|
return {
|
|
3242
|
-
type: typeof
|
|
3243
|
-
value:
|
|
3240
|
+
type: typeof U == "string" ? ee.literal : ee.object,
|
|
3241
|
+
value: U
|
|
3244
3242
|
};
|
|
3245
3243
|
}));
|
|
3246
3244
|
}
|
|
3247
|
-
if (
|
|
3248
|
-
var T = f.options[
|
|
3245
|
+
if (jn(f)) {
|
|
3246
|
+
var T = f.options[p] || f.options.other;
|
|
3249
3247
|
if (!T)
|
|
3250
|
-
throw new
|
|
3251
|
-
|
|
3248
|
+
throw new yn(f.value, p, Object.keys(f.options), u);
|
|
3249
|
+
s.push.apply(s, pt(T.value, t, n, r, i));
|
|
3252
3250
|
continue;
|
|
3253
3251
|
}
|
|
3254
|
-
if (
|
|
3255
|
-
var T = f.options["=".concat(
|
|
3252
|
+
if (kn(f)) {
|
|
3253
|
+
var T = f.options["=".concat(p)];
|
|
3256
3254
|
if (!T) {
|
|
3257
3255
|
if (!Intl.PluralRules)
|
|
3258
|
-
throw new
|
|
3256
|
+
throw new Tt(`Intl.PluralRules is not available in this environment.
|
|
3259
3257
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3260
3258
|
`, $e.MISSING_INTL_API, u);
|
|
3261
|
-
var S = n.getPluralRules(t, { type: f.pluralType }).select(
|
|
3259
|
+
var S = n.getPluralRules(t, { type: f.pluralType }).select(p - (f.offset || 0));
|
|
3262
3260
|
T = f.options[S] || f.options.other;
|
|
3263
3261
|
}
|
|
3264
3262
|
if (!T)
|
|
3265
|
-
throw new
|
|
3266
|
-
|
|
3263
|
+
throw new yn(f.value, p, Object.keys(f.options), u);
|
|
3264
|
+
s.push.apply(s, pt(T.value, t, n, r, i, p - (f.offset || 0)));
|
|
3267
3265
|
continue;
|
|
3268
3266
|
}
|
|
3269
3267
|
}
|
|
3270
|
-
return
|
|
3268
|
+
return Vi(s);
|
|
3271
3269
|
}
|
|
3272
|
-
function
|
|
3270
|
+
function zi(e, t) {
|
|
3273
3271
|
return t ? N(N(N({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3274
3272
|
return n[r] = N(N({}, e[r]), t[r] || {}), n;
|
|
3275
3273
|
}, {})) : e;
|
|
3276
3274
|
}
|
|
3277
|
-
function
|
|
3275
|
+
function Wi(e, t) {
|
|
3278
3276
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3279
|
-
return n[r] =
|
|
3277
|
+
return n[r] = zi(e[r], t[r]), n;
|
|
3280
3278
|
}, N({}, e)) : e;
|
|
3281
3279
|
}
|
|
3282
3280
|
function Gt(e) {
|
|
@@ -3293,7 +3291,7 @@ function Gt(e) {
|
|
|
3293
3291
|
}
|
|
3294
3292
|
};
|
|
3295
3293
|
}
|
|
3296
|
-
function
|
|
3294
|
+
function Zi(e) {
|
|
3297
3295
|
return e === void 0 && (e = {
|
|
3298
3296
|
number: {},
|
|
3299
3297
|
dateTime: {},
|
|
@@ -3325,7 +3323,7 @@ function qi(e) {
|
|
|
3325
3323
|
})
|
|
3326
3324
|
};
|
|
3327
3325
|
}
|
|
3328
|
-
var
|
|
3326
|
+
var qi = (
|
|
3329
3327
|
/** @class */
|
|
3330
3328
|
function() {
|
|
3331
3329
|
function e(t, n, r, i) {
|
|
@@ -3335,20 +3333,20 @@ var Qi = (
|
|
|
3335
3333
|
number: {},
|
|
3336
3334
|
dateTime: {},
|
|
3337
3335
|
pluralRules: {}
|
|
3338
|
-
}, this.format = function(
|
|
3339
|
-
var l = o.formatToParts(
|
|
3336
|
+
}, this.format = function(c) {
|
|
3337
|
+
var l = o.formatToParts(c);
|
|
3340
3338
|
if (l.length === 1)
|
|
3341
3339
|
return l[0].value;
|
|
3342
|
-
var f = l.reduce(function(
|
|
3343
|
-
return !
|
|
3340
|
+
var f = l.reduce(function(g, p) {
|
|
3341
|
+
return !g.length || p.type !== ee.literal || typeof g[g.length - 1] != "string" ? g.push(p.value) : g[g.length - 1] += p.value, g;
|
|
3344
3342
|
}, []);
|
|
3345
3343
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3346
|
-
}, this.formatToParts = function(
|
|
3347
|
-
return
|
|
3344
|
+
}, this.formatToParts = function(c) {
|
|
3345
|
+
return pt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3348
3346
|
}, this.resolvedOptions = function() {
|
|
3349
|
-
var
|
|
3347
|
+
var c;
|
|
3350
3348
|
return {
|
|
3351
|
-
locale: ((
|
|
3349
|
+
locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3352
3350
|
};
|
|
3353
3351
|
}, this.getAst = function() {
|
|
3354
3352
|
return o.ast;
|
|
@@ -3357,13 +3355,13 @@ var Qi = (
|
|
|
3357
3355
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3358
3356
|
var u = i || {};
|
|
3359
3357
|
u.formatters;
|
|
3360
|
-
var
|
|
3361
|
-
this.ast = e.__parse(t, N(N({},
|
|
3358
|
+
var s = ii(u, ["formatters"]);
|
|
3359
|
+
this.ast = e.__parse(t, N(N({}, s), { locale: this.resolvedLocale }));
|
|
3362
3360
|
} else
|
|
3363
3361
|
this.ast = t;
|
|
3364
3362
|
if (!Array.isArray(this.ast))
|
|
3365
3363
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3366
|
-
this.formats =
|
|
3364
|
+
this.formats = Wi(e.formats, r), this.formatters = i && i.formatters || Zi(this.formatterCache);
|
|
3367
3365
|
}
|
|
3368
3366
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3369
3367
|
get: function() {
|
|
@@ -3376,7 +3374,7 @@ var Qi = (
|
|
|
3376
3374
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3377
3375
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3378
3376
|
}
|
|
3379
|
-
}, e.__parse =
|
|
3377
|
+
}, e.__parse = $i, e.formats = {
|
|
3380
3378
|
number: {
|
|
3381
3379
|
integer: {
|
|
3382
3380
|
maximumFractionDigits: 0
|
|
@@ -3437,7 +3435,7 @@ var Qi = (
|
|
|
3437
3435
|
}, e;
|
|
3438
3436
|
}()
|
|
3439
3437
|
);
|
|
3440
|
-
function
|
|
3438
|
+
function Qi(e, t) {
|
|
3441
3439
|
if (t == null)
|
|
3442
3440
|
return;
|
|
3443
3441
|
if (t in e)
|
|
@@ -3458,92 +3456,92 @@ function Ji(e, t) {
|
|
|
3458
3456
|
r = void 0;
|
|
3459
3457
|
return r;
|
|
3460
3458
|
}
|
|
3461
|
-
const
|
|
3459
|
+
const Ce = {}, Ji = (e, t, n) => n && (t in Ce || (Ce[t] = {}), e in Ce[t] || (Ce[t][e] = n), n), Kn = (e, t) => {
|
|
3462
3460
|
if (t == null)
|
|
3463
3461
|
return;
|
|
3464
|
-
if (t in
|
|
3465
|
-
return
|
|
3466
|
-
const n =
|
|
3462
|
+
if (t in Ce && e in Ce[t])
|
|
3463
|
+
return Ce[t][e];
|
|
3464
|
+
const n = Bt(t);
|
|
3467
3465
|
for (let r = 0; r < n.length; r++) {
|
|
3468
|
-
const i = n[r], o =
|
|
3466
|
+
const i = n[r], o = Ki(i, e);
|
|
3469
3467
|
if (o)
|
|
3470
|
-
return
|
|
3468
|
+
return Ji(e, t, o);
|
|
3471
3469
|
}
|
|
3472
3470
|
};
|
|
3473
|
-
let
|
|
3474
|
-
const
|
|
3475
|
-
function
|
|
3476
|
-
return
|
|
3471
|
+
let nn;
|
|
3472
|
+
const it = xt({});
|
|
3473
|
+
function Yi(e) {
|
|
3474
|
+
return nn[e] || null;
|
|
3477
3475
|
}
|
|
3478
|
-
function
|
|
3479
|
-
return e in
|
|
3476
|
+
function er(e) {
|
|
3477
|
+
return e in nn;
|
|
3480
3478
|
}
|
|
3481
|
-
function
|
|
3482
|
-
if (!
|
|
3479
|
+
function Ki(e, t) {
|
|
3480
|
+
if (!er(e))
|
|
3483
3481
|
return null;
|
|
3484
|
-
const n =
|
|
3485
|
-
return
|
|
3482
|
+
const n = Yi(e);
|
|
3483
|
+
return Qi(n, t);
|
|
3486
3484
|
}
|
|
3487
|
-
function
|
|
3485
|
+
function eo(e) {
|
|
3488
3486
|
if (e == null)
|
|
3489
3487
|
return;
|
|
3490
|
-
const t =
|
|
3488
|
+
const t = Bt(e);
|
|
3491
3489
|
for (let n = 0; n < t.length; n++) {
|
|
3492
3490
|
const r = t[n];
|
|
3493
|
-
if (
|
|
3491
|
+
if (er(r))
|
|
3494
3492
|
return r;
|
|
3495
3493
|
}
|
|
3496
3494
|
}
|
|
3497
|
-
function
|
|
3498
|
-
delete
|
|
3495
|
+
function tr(e, ...t) {
|
|
3496
|
+
delete Ce[e], it.update((n) => (n[e] = ri.all([n[e] || {}, ...t]), n));
|
|
3499
3497
|
}
|
|
3500
3498
|
Ve(
|
|
3501
|
-
[
|
|
3499
|
+
[it],
|
|
3502
3500
|
([e]) => Object.keys(e)
|
|
3503
3501
|
);
|
|
3504
|
-
|
|
3505
|
-
const
|
|
3506
|
-
function
|
|
3507
|
-
|
|
3502
|
+
it.subscribe((e) => nn = e);
|
|
3503
|
+
const mt = {};
|
|
3504
|
+
function to(e, t) {
|
|
3505
|
+
mt[e].delete(t), mt[e].size === 0 && delete mt[e];
|
|
3508
3506
|
}
|
|
3509
|
-
function
|
|
3510
|
-
return
|
|
3507
|
+
function nr(e) {
|
|
3508
|
+
return mt[e];
|
|
3511
3509
|
}
|
|
3512
|
-
function
|
|
3513
|
-
return
|
|
3514
|
-
const n =
|
|
3510
|
+
function no(e) {
|
|
3511
|
+
return Bt(e).map((t) => {
|
|
3512
|
+
const n = nr(t);
|
|
3515
3513
|
return [t, n ? [...n] : []];
|
|
3516
3514
|
}).filter(([, t]) => t.length > 0);
|
|
3517
3515
|
}
|
|
3518
3516
|
function Yt(e) {
|
|
3519
|
-
return e == null ? !1 :
|
|
3517
|
+
return e == null ? !1 : Bt(e).some(
|
|
3520
3518
|
(t) => {
|
|
3521
3519
|
var n;
|
|
3522
|
-
return (n =
|
|
3520
|
+
return (n = nr(t)) == null ? void 0 : n.size;
|
|
3523
3521
|
}
|
|
3524
3522
|
);
|
|
3525
3523
|
}
|
|
3526
|
-
function
|
|
3524
|
+
function ro(e, t) {
|
|
3527
3525
|
return Promise.all(
|
|
3528
|
-
t.map((r) => (
|
|
3529
|
-
).then((r) =>
|
|
3526
|
+
t.map((r) => (to(e, r), r().then((i) => i.default || i)))
|
|
3527
|
+
).then((r) => tr(e, ...r));
|
|
3530
3528
|
}
|
|
3531
|
-
const
|
|
3532
|
-
function
|
|
3529
|
+
const Ke = {};
|
|
3530
|
+
function rr(e) {
|
|
3533
3531
|
if (!Yt(e))
|
|
3534
|
-
return e in
|
|
3535
|
-
const t =
|
|
3536
|
-
return
|
|
3532
|
+
return e in Ke ? Ke[e] : Promise.resolve();
|
|
3533
|
+
const t = no(e);
|
|
3534
|
+
return Ke[e] = Promise.all(
|
|
3537
3535
|
t.map(
|
|
3538
|
-
([n, r]) =>
|
|
3536
|
+
([n, r]) => ro(n, r)
|
|
3539
3537
|
)
|
|
3540
3538
|
).then(() => {
|
|
3541
3539
|
if (Yt(e))
|
|
3542
|
-
return
|
|
3543
|
-
delete
|
|
3544
|
-
}),
|
|
3540
|
+
return rr(e);
|
|
3541
|
+
delete Ke[e];
|
|
3542
|
+
}), Ke[e];
|
|
3545
3543
|
}
|
|
3546
|
-
const
|
|
3544
|
+
const io = {
|
|
3547
3545
|
number: {
|
|
3548
3546
|
scientific: { notation: "scientific" },
|
|
3549
3547
|
engineering: { notation: "engineering" },
|
|
@@ -3572,178 +3570,178 @@ const oo = {
|
|
|
3572
3570
|
timeZoneName: "short"
|
|
3573
3571
|
}
|
|
3574
3572
|
}
|
|
3575
|
-
},
|
|
3573
|
+
}, oo = {
|
|
3576
3574
|
fallbackLocale: null,
|
|
3577
3575
|
loadingDelay: 200,
|
|
3578
|
-
formats:
|
|
3576
|
+
formats: io,
|
|
3579
3577
|
warnOnMissingMessages: !0,
|
|
3580
3578
|
handleMissingMessage: void 0,
|
|
3581
3579
|
ignoreTag: !0
|
|
3582
|
-
},
|
|
3580
|
+
}, ao = oo;
|
|
3583
3581
|
function je() {
|
|
3584
|
-
return
|
|
3582
|
+
return ao;
|
|
3585
3583
|
}
|
|
3586
|
-
const $t =
|
|
3587
|
-
var
|
|
3584
|
+
const $t = xt(!1);
|
|
3585
|
+
var so = Object.defineProperty, uo = Object.defineProperties, lo = Object.getOwnPropertyDescriptors, vn = Object.getOwnPropertySymbols, ho = Object.prototype.hasOwnProperty, co = Object.prototype.propertyIsEnumerable, En = (e, t, n) => t in e ? so(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, fo = (e, t) => {
|
|
3588
3586
|
for (var n in t || (t = {}))
|
|
3589
|
-
|
|
3590
|
-
if (
|
|
3591
|
-
for (var n of
|
|
3592
|
-
|
|
3587
|
+
ho.call(t, n) && En(e, n, t[n]);
|
|
3588
|
+
if (vn)
|
|
3589
|
+
for (var n of vn(t))
|
|
3590
|
+
co.call(t, n) && En(e, n, t[n]);
|
|
3593
3591
|
return e;
|
|
3594
|
-
},
|
|
3592
|
+
}, po = (e, t) => uo(e, lo(t));
|
|
3595
3593
|
let Kt;
|
|
3596
|
-
const
|
|
3597
|
-
function
|
|
3594
|
+
const vt = xt(null);
|
|
3595
|
+
function xn(e) {
|
|
3598
3596
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3599
3597
|
}
|
|
3600
|
-
function
|
|
3601
|
-
const n =
|
|
3602
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3598
|
+
function Bt(e, t = je().fallbackLocale) {
|
|
3599
|
+
const n = xn(e);
|
|
3600
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...xn(t)])] : n;
|
|
3603
3601
|
}
|
|
3604
|
-
function
|
|
3602
|
+
function Oe() {
|
|
3605
3603
|
return Kt != null ? Kt : void 0;
|
|
3606
3604
|
}
|
|
3607
|
-
|
|
3605
|
+
vt.subscribe((e) => {
|
|
3608
3606
|
Kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3609
3607
|
});
|
|
3610
|
-
const
|
|
3611
|
-
if (e &&
|
|
3608
|
+
const mo = (e) => {
|
|
3609
|
+
if (e && eo(e) && Yt(e)) {
|
|
3612
3610
|
const { loadingDelay: t } = je();
|
|
3613
3611
|
let n;
|
|
3614
|
-
return typeof window != "undefined" &&
|
|
3612
|
+
return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
|
|
3615
3613
|
() => $t.set(!0),
|
|
3616
3614
|
t
|
|
3617
|
-
) : $t.set(!0),
|
|
3618
|
-
|
|
3615
|
+
) : $t.set(!0), rr(e).then(() => {
|
|
3616
|
+
vt.set(e);
|
|
3619
3617
|
}).finally(() => {
|
|
3620
3618
|
clearTimeout(n), $t.set(!1);
|
|
3621
3619
|
});
|
|
3622
3620
|
}
|
|
3623
|
-
return
|
|
3624
|
-
}, Xe =
|
|
3625
|
-
set:
|
|
3626
|
-
}),
|
|
3621
|
+
return vt.set(e);
|
|
3622
|
+
}, Xe = po(fo({}, vt), {
|
|
3623
|
+
set: mo
|
|
3624
|
+
}), St = (e) => {
|
|
3627
3625
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3628
3626
|
return (r) => {
|
|
3629
3627
|
const i = JSON.stringify(r);
|
|
3630
3628
|
return i in t ? t[i] : t[i] = e(r);
|
|
3631
3629
|
};
|
|
3632
3630
|
};
|
|
3633
|
-
var
|
|
3631
|
+
var go = Object.defineProperty, Et = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rn = (e, t) => {
|
|
3634
3632
|
for (var n in t || (t = {}))
|
|
3635
|
-
|
|
3636
|
-
if (
|
|
3637
|
-
for (var n of
|
|
3638
|
-
|
|
3633
|
+
ir.call(t, n) && _n(e, n, t[n]);
|
|
3634
|
+
if (Et)
|
|
3635
|
+
for (var n of Et(t))
|
|
3636
|
+
or.call(t, n) && _n(e, n, t[n]);
|
|
3639
3637
|
return e;
|
|
3640
3638
|
}, ze = (e, t) => {
|
|
3641
3639
|
var n = {};
|
|
3642
3640
|
for (var r in e)
|
|
3643
|
-
|
|
3644
|
-
if (e != null &&
|
|
3645
|
-
for (var r of
|
|
3646
|
-
t.indexOf(r) < 0 &&
|
|
3641
|
+
ir.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3642
|
+
if (e != null && Et)
|
|
3643
|
+
for (var r of Et(e))
|
|
3644
|
+
t.indexOf(r) < 0 && or.call(e, r) && (n[r] = e[r]);
|
|
3647
3645
|
return n;
|
|
3648
3646
|
};
|
|
3649
|
-
const
|
|
3647
|
+
const rt = (e, t) => {
|
|
3650
3648
|
const { formats: n } = je();
|
|
3651
3649
|
if (e in n && t in n[e])
|
|
3652
3650
|
return n[e][t];
|
|
3653
3651
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3654
|
-
},
|
|
3652
|
+
}, bo = St(
|
|
3655
3653
|
(e) => {
|
|
3656
3654
|
var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
|
|
3657
3655
|
if (n == null)
|
|
3658
3656
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3659
|
-
return r && (i =
|
|
3657
|
+
return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
|
|
3660
3658
|
}
|
|
3661
|
-
),
|
|
3659
|
+
), yo = St(
|
|
3662
3660
|
(e) => {
|
|
3663
3661
|
var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
|
|
3664
3662
|
if (n == null)
|
|
3665
3663
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3666
|
-
return r ? i =
|
|
3664
|
+
return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3667
3665
|
}
|
|
3668
|
-
),
|
|
3666
|
+
), vo = St(
|
|
3669
3667
|
(e) => {
|
|
3670
3668
|
var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
|
|
3671
3669
|
if (n == null)
|
|
3672
3670
|
throw new Error(
|
|
3673
3671
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3674
3672
|
);
|
|
3675
|
-
return r ? i =
|
|
3673
|
+
return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3676
3674
|
}
|
|
3677
|
-
),
|
|
3675
|
+
), Eo = (e = {}) => {
|
|
3678
3676
|
var t = e, {
|
|
3679
|
-
locale: n =
|
|
3677
|
+
locale: n = Oe()
|
|
3680
3678
|
} = t, r = ze(t, [
|
|
3681
3679
|
"locale"
|
|
3682
3680
|
]);
|
|
3683
|
-
return
|
|
3684
|
-
},
|
|
3681
|
+
return bo(rn({ locale: n }, r));
|
|
3682
|
+
}, xo = (e = {}) => {
|
|
3685
3683
|
var t = e, {
|
|
3686
|
-
locale: n =
|
|
3684
|
+
locale: n = Oe()
|
|
3687
3685
|
} = t, r = ze(t, [
|
|
3688
3686
|
"locale"
|
|
3689
3687
|
]);
|
|
3690
|
-
return
|
|
3691
|
-
},
|
|
3688
|
+
return yo(rn({ locale: n }, r));
|
|
3689
|
+
}, _o = (e = {}) => {
|
|
3692
3690
|
var t = e, {
|
|
3693
|
-
locale: n =
|
|
3691
|
+
locale: n = Oe()
|
|
3694
3692
|
} = t, r = ze(t, [
|
|
3695
3693
|
"locale"
|
|
3696
3694
|
]);
|
|
3697
|
-
return
|
|
3698
|
-
},
|
|
3695
|
+
return vo(rn({ locale: n }, r));
|
|
3696
|
+
}, To = St(
|
|
3699
3697
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3700
|
-
(e, t =
|
|
3698
|
+
(e, t = Oe()) => new qi(e, t, je().formats, {
|
|
3701
3699
|
ignoreTag: je().ignoreTag
|
|
3702
3700
|
})
|
|
3703
|
-
),
|
|
3701
|
+
), Bo = (e, t = {}) => {
|
|
3704
3702
|
var n, r, i, o;
|
|
3705
3703
|
let u = t;
|
|
3706
3704
|
typeof e == "object" && (u = e, e = u.id);
|
|
3707
3705
|
const {
|
|
3708
|
-
values:
|
|
3709
|
-
locale:
|
|
3706
|
+
values: s,
|
|
3707
|
+
locale: c = Oe(),
|
|
3710
3708
|
default: l
|
|
3711
3709
|
} = u;
|
|
3712
|
-
if (
|
|
3710
|
+
if (c == null)
|
|
3713
3711
|
throw new Error(
|
|
3714
3712
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3715
3713
|
);
|
|
3716
|
-
let f =
|
|
3714
|
+
let f = Kn(e, c);
|
|
3717
3715
|
if (!f)
|
|
3718
|
-
f = (o = (i = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale:
|
|
3716
|
+
f = (o = (i = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3719
3717
|
else if (typeof f != "string")
|
|
3720
3718
|
return console.warn(
|
|
3721
3719
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3722
3720
|
), f;
|
|
3723
|
-
if (!
|
|
3721
|
+
if (!s)
|
|
3724
3722
|
return f;
|
|
3725
|
-
let
|
|
3723
|
+
let g = f;
|
|
3726
3724
|
try {
|
|
3727
|
-
|
|
3728
|
-
} catch (
|
|
3729
|
-
|
|
3725
|
+
g = To(f, c).format(s);
|
|
3726
|
+
} catch (p) {
|
|
3727
|
+
p instanceof Error && console.warn(
|
|
3730
3728
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3731
|
-
|
|
3729
|
+
p.message
|
|
3732
3730
|
);
|
|
3733
3731
|
}
|
|
3734
|
-
return
|
|
3735
|
-
},
|
|
3732
|
+
return g;
|
|
3733
|
+
}, So = (e, t) => _o(t).format(e), wo = (e, t) => xo(t).format(e), Ao = (e, t) => Eo(t).format(e), Co = (e, t = Oe()) => Kn(e, t), Ho = Ve([Xe, it], () => Bo);
|
|
3734
|
+
Ve([Xe], () => So);
|
|
3736
3735
|
Ve([Xe], () => wo);
|
|
3737
3736
|
Ve([Xe], () => Ao);
|
|
3738
|
-
Ve([Xe], () => Co);
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
rr(e, t);
|
|
3737
|
+
Ve([Xe, it], () => Co);
|
|
3738
|
+
function Tn(e, t) {
|
|
3739
|
+
tr(e, t);
|
|
3742
3740
|
}
|
|
3743
3741
|
function Oo(e) {
|
|
3744
3742
|
Xe.set(e);
|
|
3745
3743
|
}
|
|
3746
|
-
const
|
|
3744
|
+
const Bn = {
|
|
3747
3745
|
en: {
|
|
3748
3746
|
Title: "Your Balance",
|
|
3749
3747
|
Total: "Total Balance",
|
|
@@ -3951,30 +3949,30 @@ var en = { exports: {} };
|
|
|
3951
3949
|
*/
|
|
3952
3950
|
(function(e, t) {
|
|
3953
3951
|
(function(n) {
|
|
3954
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest,
|
|
3955
|
-
if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(
|
|
3952
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, l = n.document, f = n.Promise, g = n.fetch, p = n.Response, y = n.TextDecoder, E = n.TextEncoder, M = n.AbortController;
|
|
3953
|
+
if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(a) {
|
|
3956
3954
|
l.readyState = "complete";
|
|
3957
|
-
}, !1)), o == null &&
|
|
3958
|
-
return new
|
|
3959
|
-
}), Object.create == null && (Object.create = function(
|
|
3960
|
-
function
|
|
3955
|
+
}, !1)), o == null && s != null && (o = function() {
|
|
3956
|
+
return new s("Microsoft.XMLHTTP");
|
|
3957
|
+
}), Object.create == null && (Object.create = function(a) {
|
|
3958
|
+
function d() {
|
|
3961
3959
|
}
|
|
3962
|
-
return
|
|
3960
|
+
return d.prototype = a, new d();
|
|
3963
3961
|
}), Date.now || (Date.now = function() {
|
|
3964
3962
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3965
3963
|
}), M == null) {
|
|
3966
|
-
var C =
|
|
3967
|
-
|
|
3968
|
-
var
|
|
3969
|
-
return C(
|
|
3970
|
-
var
|
|
3971
|
-
return
|
|
3972
|
-
status:
|
|
3973
|
-
statusText:
|
|
3974
|
-
headers:
|
|
3964
|
+
var C = g;
|
|
3965
|
+
g = function(a, d) {
|
|
3966
|
+
var m = d.signal;
|
|
3967
|
+
return C(a, { headers: d.headers, credentials: d.credentials, cache: d.cache }).then(function(h) {
|
|
3968
|
+
var _ = h.body.getReader();
|
|
3969
|
+
return m._reader = _, m._aborted && m._reader.cancel(), {
|
|
3970
|
+
status: h.status,
|
|
3971
|
+
statusText: h.statusText,
|
|
3972
|
+
headers: h.headers,
|
|
3975
3973
|
body: {
|
|
3976
3974
|
getReader: function() {
|
|
3977
|
-
return
|
|
3975
|
+
return _;
|
|
3978
3976
|
}
|
|
3979
3977
|
}
|
|
3980
3978
|
};
|
|
@@ -3988,407 +3986,407 @@ var en = { exports: {} };
|
|
|
3988
3986
|
};
|
|
3989
3987
|
};
|
|
3990
3988
|
}
|
|
3991
|
-
function
|
|
3989
|
+
function $() {
|
|
3992
3990
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
3993
3991
|
}
|
|
3994
|
-
|
|
3995
|
-
function
|
|
3992
|
+
$.prototype.decode = function(a) {
|
|
3993
|
+
function d(D, F, B) {
|
|
3996
3994
|
if (B === 1)
|
|
3997
|
-
return
|
|
3995
|
+
return D >= 128 >> F && D << F <= 2047;
|
|
3998
3996
|
if (B === 2)
|
|
3999
|
-
return
|
|
3997
|
+
return D >= 2048 >> F && D << F <= 55295 || D >= 57344 >> F && D << F <= 65535;
|
|
4000
3998
|
if (B === 3)
|
|
4001
|
-
return
|
|
3999
|
+
return D >= 65536 >> F && D << F <= 1114111;
|
|
4002
4000
|
throw new Error();
|
|
4003
4001
|
}
|
|
4004
|
-
function
|
|
4005
|
-
if (
|
|
4006
|
-
return
|
|
4007
|
-
if (
|
|
4008
|
-
return
|
|
4009
|
-
if (
|
|
4002
|
+
function m(D, F) {
|
|
4003
|
+
if (D === 6 * 1)
|
|
4004
|
+
return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
|
|
4005
|
+
if (D === 6 * 2)
|
|
4006
|
+
return F > 15 ? 3 : 2;
|
|
4007
|
+
if (D === 6 * 3)
|
|
4010
4008
|
return 3;
|
|
4011
4009
|
throw new Error();
|
|
4012
4010
|
}
|
|
4013
|
-
for (var
|
|
4014
|
-
var
|
|
4015
|
-
|
|
4011
|
+
for (var h = 65533, _ = "", x = this.bitsNeeded, w = this.codePoint, j = 0; j < a.length; j += 1) {
|
|
4012
|
+
var H = a[j];
|
|
4013
|
+
x !== 0 && (H < 128 || H > 191 || !d(w << 6 | H & 63, x - 6, m(x, w))) && (x = 0, w = h, _ += String.fromCharCode(w)), x === 0 ? (H >= 0 && H <= 127 ? (x = 0, w = H) : H >= 192 && H <= 223 ? (x = 6 * 1, w = H & 31) : H >= 224 && H <= 239 ? (x = 6 * 2, w = H & 15) : H >= 240 && H <= 247 ? (x = 6 * 3, w = H & 7) : (x = 0, w = h), x !== 0 && !d(w, x, m(x, w)) && (x = 0, w = h)) : (x -= 6, w = w << 6 | H & 63), x === 0 && (w <= 65535 ? _ += String.fromCharCode(w) : (_ += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), _ += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
|
|
4016
4014
|
}
|
|
4017
|
-
return this.bitsNeeded =
|
|
4015
|
+
return this.bitsNeeded = x, this.codePoint = w, _;
|
|
4018
4016
|
};
|
|
4019
4017
|
var X = function() {
|
|
4020
4018
|
try {
|
|
4021
|
-
return new
|
|
4022
|
-
} catch (
|
|
4023
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
4019
|
+
return new y().decode(new E().encode("test"), { stream: !0 }) === "test";
|
|
4020
|
+
} catch (a) {
|
|
4021
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
|
|
4024
4022
|
}
|
|
4025
4023
|
return !1;
|
|
4026
4024
|
};
|
|
4027
|
-
(
|
|
4025
|
+
(y == null || E == null || !X()) && (y = $);
|
|
4028
4026
|
var T = function() {
|
|
4029
4027
|
};
|
|
4030
|
-
function S(
|
|
4031
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr =
|
|
4028
|
+
function S(a) {
|
|
4029
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = T;
|
|
4032
4030
|
}
|
|
4033
|
-
S.prototype.open = function(
|
|
4031
|
+
S.prototype.open = function(a, d) {
|
|
4034
4032
|
this._abort(!0);
|
|
4035
|
-
var
|
|
4033
|
+
var m = this, h = this._xhr, _ = 1, x = 0;
|
|
4036
4034
|
this._abort = function(B) {
|
|
4037
|
-
|
|
4035
|
+
m._sendTimeout !== 0 && (i(m._sendTimeout), m._sendTimeout = 0), (_ === 1 || _ === 2 || _ === 3) && (_ = 4, h.onload = T, h.onerror = T, h.onabort = T, h.onprogress = T, h.onreadystatechange = T, h.abort(), x !== 0 && (i(x), x = 0), B || (m.readyState = 4, m.onabort(null), m.onreadystatechange())), _ = 0;
|
|
4038
4036
|
};
|
|
4039
4037
|
var w = function() {
|
|
4040
|
-
if (
|
|
4041
|
-
var B = 0,
|
|
4042
|
-
if ("contentType" in
|
|
4043
|
-
B = 200,
|
|
4038
|
+
if (_ === 1) {
|
|
4039
|
+
var B = 0, k = "", Ee = void 0;
|
|
4040
|
+
if ("contentType" in h)
|
|
4041
|
+
B = 200, k = "OK", Ee = h.contentType;
|
|
4044
4042
|
else
|
|
4045
4043
|
try {
|
|
4046
|
-
B =
|
|
4047
|
-
} catch (
|
|
4048
|
-
B = 0,
|
|
4044
|
+
B = h.status, k = h.statusText, Ee = h.getResponseHeader("Content-Type");
|
|
4045
|
+
} catch (Je) {
|
|
4046
|
+
B = 0, k = "", Ee = void 0;
|
|
4049
4047
|
}
|
|
4050
|
-
B !== 0 && (
|
|
4048
|
+
B !== 0 && (_ = 2, m.readyState = 2, m.status = B, m.statusText = k, m._contentType = Ee, m.onreadystatechange());
|
|
4051
4049
|
}
|
|
4052
|
-
},
|
|
4053
|
-
if (w(),
|
|
4054
|
-
|
|
4050
|
+
}, j = function() {
|
|
4051
|
+
if (w(), _ === 2 || _ === 3) {
|
|
4052
|
+
_ = 3;
|
|
4055
4053
|
var B = "";
|
|
4056
4054
|
try {
|
|
4057
|
-
B =
|
|
4058
|
-
} catch (
|
|
4055
|
+
B = h.responseText;
|
|
4056
|
+
} catch (k) {
|
|
4059
4057
|
}
|
|
4060
|
-
|
|
4058
|
+
m.readyState = 3, m.responseText = B, m.onprogress();
|
|
4061
4059
|
}
|
|
4062
|
-
},
|
|
4063
|
-
if ((
|
|
4060
|
+
}, H = function(B, k) {
|
|
4061
|
+
if ((k == null || k.preventDefault == null) && (k = {
|
|
4064
4062
|
preventDefault: T
|
|
4065
|
-
}),
|
|
4066
|
-
if (
|
|
4067
|
-
|
|
4063
|
+
}), j(), _ === 1 || _ === 2 || _ === 3) {
|
|
4064
|
+
if (_ = 4, x !== 0 && (i(x), x = 0), m.readyState = 4, B === "load")
|
|
4065
|
+
m.onload(k);
|
|
4068
4066
|
else if (B === "error")
|
|
4069
|
-
|
|
4067
|
+
m.onerror(k);
|
|
4070
4068
|
else if (B === "abort")
|
|
4071
|
-
|
|
4069
|
+
m.onabort(k);
|
|
4072
4070
|
else
|
|
4073
4071
|
throw new TypeError();
|
|
4074
|
-
|
|
4072
|
+
m.onreadystatechange();
|
|
4075
4073
|
}
|
|
4076
|
-
},
|
|
4077
|
-
|
|
4078
|
-
},
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
}, 500),
|
|
4074
|
+
}, D = function(B) {
|
|
4075
|
+
h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && H(h.responseText === "" ? "error" : "load", B) : h.readyState === 3 ? "onprogress" in h || j() : h.readyState === 2 && w());
|
|
4076
|
+
}, F = function() {
|
|
4077
|
+
x = r(function() {
|
|
4078
|
+
F();
|
|
4079
|
+
}, 500), h.readyState === 3 && j();
|
|
4082
4080
|
};
|
|
4083
|
-
"onload" in
|
|
4084
|
-
|
|
4085
|
-
}), "onerror" in
|
|
4086
|
-
|
|
4087
|
-
}), "onabort" in
|
|
4088
|
-
|
|
4089
|
-
}), "onprogress" in
|
|
4090
|
-
|
|
4091
|
-
}), ("contentType" in
|
|
4092
|
-
|
|
4081
|
+
"onload" in h && (h.onload = function(B) {
|
|
4082
|
+
H("load", B);
|
|
4083
|
+
}), "onerror" in h && (h.onerror = function(B) {
|
|
4084
|
+
H("error", B);
|
|
4085
|
+
}), "onabort" in h && (h.onabort = function(B) {
|
|
4086
|
+
H("abort", B);
|
|
4087
|
+
}), "onprogress" in h && (h.onprogress = j), "onreadystatechange" in h && (h.onreadystatechange = function(B) {
|
|
4088
|
+
D(B);
|
|
4089
|
+
}), ("contentType" in h || !("ontimeout" in o.prototype)) && (d += (d.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(a, d, !0), "readyState" in h && (x = r(function() {
|
|
4090
|
+
F();
|
|
4093
4091
|
}, 0));
|
|
4094
4092
|
}, S.prototype.abort = function() {
|
|
4095
4093
|
this._abort(!1);
|
|
4096
|
-
}, S.prototype.getResponseHeader = function(
|
|
4094
|
+
}, S.prototype.getResponseHeader = function(a) {
|
|
4097
4095
|
return this._contentType;
|
|
4098
|
-
}, S.prototype.setRequestHeader = function(
|
|
4099
|
-
var
|
|
4100
|
-
"setRequestHeader" in
|
|
4096
|
+
}, S.prototype.setRequestHeader = function(a, d) {
|
|
4097
|
+
var m = this._xhr;
|
|
4098
|
+
"setRequestHeader" in m && m.setRequestHeader(a, d);
|
|
4101
4099
|
}, S.prototype.getAllResponseHeaders = function() {
|
|
4102
4100
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4103
4101
|
}, S.prototype.send = function() {
|
|
4104
4102
|
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
|
|
4105
|
-
var
|
|
4106
|
-
|
|
4107
|
-
|
|
4103
|
+
var a = this;
|
|
4104
|
+
a._sendTimeout = r(function() {
|
|
4105
|
+
a._sendTimeout = 0, a.send();
|
|
4108
4106
|
}, 4);
|
|
4109
4107
|
return;
|
|
4110
4108
|
}
|
|
4111
|
-
var
|
|
4112
|
-
"withCredentials" in
|
|
4109
|
+
var d = this._xhr;
|
|
4110
|
+
"withCredentials" in d && (d.withCredentials = this.withCredentials);
|
|
4113
4111
|
try {
|
|
4114
|
-
|
|
4115
|
-
} catch (
|
|
4116
|
-
throw
|
|
4112
|
+
d.send(void 0);
|
|
4113
|
+
} catch (m) {
|
|
4114
|
+
throw m;
|
|
4117
4115
|
}
|
|
4118
4116
|
};
|
|
4119
|
-
function
|
|
4120
|
-
return
|
|
4121
|
-
return String.fromCharCode(
|
|
4117
|
+
function U(a) {
|
|
4118
|
+
return a.replace(/[A-Z]/g, function(d) {
|
|
4119
|
+
return String.fromCharCode(d.charCodeAt(0) + 32);
|
|
4122
4120
|
});
|
|
4123
4121
|
}
|
|
4124
|
-
function P(
|
|
4125
|
-
for (var
|
|
4126
|
-
`),
|
|
4127
|
-
var
|
|
4128
|
-
|
|
4122
|
+
function P(a) {
|
|
4123
|
+
for (var d = /* @__PURE__ */ Object.create(null), m = a.split(`\r
|
|
4124
|
+
`), h = 0; h < m.length; h += 1) {
|
|
4125
|
+
var _ = m[h], x = _.split(": "), w = x.shift(), j = x.join(": ");
|
|
4126
|
+
d[U(w)] = j;
|
|
4129
4127
|
}
|
|
4130
|
-
this._map =
|
|
4128
|
+
this._map = d;
|
|
4131
4129
|
}
|
|
4132
|
-
P.prototype.get = function(
|
|
4133
|
-
return this._map[
|
|
4130
|
+
P.prototype.get = function(a) {
|
|
4131
|
+
return this._map[U(a)];
|
|
4134
4132
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4135
|
-
function
|
|
4133
|
+
function te() {
|
|
4136
4134
|
}
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
var
|
|
4140
|
-
|
|
4141
|
-
var
|
|
4142
|
-
|
|
4143
|
-
},
|
|
4144
|
-
|
|
4145
|
-
},
|
|
4146
|
-
|
|
4147
|
-
},
|
|
4148
|
-
|
|
4149
|
-
},
|
|
4150
|
-
if (
|
|
4151
|
-
var
|
|
4152
|
-
|
|
4135
|
+
te.prototype.open = function(a, d, m, h, _, x, w) {
|
|
4136
|
+
a.open("GET", _);
|
|
4137
|
+
var j = 0;
|
|
4138
|
+
a.onprogress = function() {
|
|
4139
|
+
var D = a.responseText, F = D.slice(j);
|
|
4140
|
+
j += F.length, m(F);
|
|
4141
|
+
}, a.onerror = function(D) {
|
|
4142
|
+
D.preventDefault(), h(new Error("NetworkError"));
|
|
4143
|
+
}, a.onload = function() {
|
|
4144
|
+
h(null);
|
|
4145
|
+
}, a.onabort = function() {
|
|
4146
|
+
h(null);
|
|
4147
|
+
}, a.onreadystatechange = function() {
|
|
4148
|
+
if (a.readyState === o.HEADERS_RECEIVED) {
|
|
4149
|
+
var D = a.status, F = a.statusText, B = a.getResponseHeader("Content-Type"), k = a.getAllResponseHeaders();
|
|
4150
|
+
d(D, F, B, new P(k));
|
|
4153
4151
|
}
|
|
4154
|
-
},
|
|
4155
|
-
for (var
|
|
4156
|
-
Object.prototype.hasOwnProperty.call(w,
|
|
4157
|
-
return
|
|
4152
|
+
}, a.withCredentials = x;
|
|
4153
|
+
for (var H in w)
|
|
4154
|
+
Object.prototype.hasOwnProperty.call(w, H) && a.setRequestHeader(H, w[H]);
|
|
4155
|
+
return a.send(), a;
|
|
4158
4156
|
};
|
|
4159
|
-
function
|
|
4160
|
-
this._headers =
|
|
4157
|
+
function he(a) {
|
|
4158
|
+
this._headers = a;
|
|
4161
4159
|
}
|
|
4162
|
-
|
|
4163
|
-
return this._headers.get(
|
|
4160
|
+
he.prototype.get = function(a) {
|
|
4161
|
+
return this._headers.get(a);
|
|
4164
4162
|
};
|
|
4165
|
-
function
|
|
4163
|
+
function Se() {
|
|
4166
4164
|
}
|
|
4167
|
-
|
|
4168
|
-
var
|
|
4169
|
-
return
|
|
4165
|
+
Se.prototype.open = function(a, d, m, h, _, x, w) {
|
|
4166
|
+
var j = null, H = new M(), D = H.signal, F = new y();
|
|
4167
|
+
return g(_, {
|
|
4170
4168
|
headers: w,
|
|
4171
|
-
credentials:
|
|
4172
|
-
signal:
|
|
4169
|
+
credentials: x ? "include" : "same-origin",
|
|
4170
|
+
signal: D,
|
|
4173
4171
|
cache: "no-store"
|
|
4174
4172
|
}).then(function(B) {
|
|
4175
|
-
return
|
|
4176
|
-
var
|
|
4177
|
-
|
|
4178
|
-
if (
|
|
4179
|
-
|
|
4173
|
+
return j = B.body.getReader(), d(B.status, B.statusText, B.headers.get("Content-Type"), new he(B.headers)), new f(function(k, Ee) {
|
|
4174
|
+
var Je = function() {
|
|
4175
|
+
j.read().then(function(re) {
|
|
4176
|
+
if (re.done)
|
|
4177
|
+
k(void 0);
|
|
4180
4178
|
else {
|
|
4181
|
-
var
|
|
4182
|
-
|
|
4179
|
+
var J = F.decode(re.value, { stream: !0 });
|
|
4180
|
+
m(J), Je();
|
|
4183
4181
|
}
|
|
4184
|
-
}).catch(function(
|
|
4185
|
-
|
|
4182
|
+
}).catch(function(re) {
|
|
4183
|
+
Ee(re);
|
|
4186
4184
|
});
|
|
4187
4185
|
};
|
|
4188
|
-
|
|
4186
|
+
Je();
|
|
4189
4187
|
});
|
|
4190
4188
|
}).catch(function(B) {
|
|
4191
4189
|
if (B.name !== "AbortError")
|
|
4192
4190
|
return B;
|
|
4193
4191
|
}).then(function(B) {
|
|
4194
|
-
|
|
4192
|
+
h(B);
|
|
4195
4193
|
}), {
|
|
4196
4194
|
abort: function() {
|
|
4197
|
-
|
|
4195
|
+
j != null && j.cancel(), H.abort();
|
|
4198
4196
|
}
|
|
4199
4197
|
};
|
|
4200
4198
|
};
|
|
4201
|
-
function
|
|
4199
|
+
function ce() {
|
|
4202
4200
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4203
4201
|
}
|
|
4204
|
-
function
|
|
4202
|
+
function v(a) {
|
|
4205
4203
|
r(function() {
|
|
4206
|
-
throw
|
|
4204
|
+
throw a;
|
|
4207
4205
|
}, 0);
|
|
4208
4206
|
}
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
var
|
|
4212
|
-
if (
|
|
4213
|
-
for (var
|
|
4214
|
-
var
|
|
4207
|
+
ce.prototype.dispatchEvent = function(a) {
|
|
4208
|
+
a.target = this;
|
|
4209
|
+
var d = this._listeners[a.type];
|
|
4210
|
+
if (d != null)
|
|
4211
|
+
for (var m = d.length, h = 0; h < m; h += 1) {
|
|
4212
|
+
var _ = d[h];
|
|
4215
4213
|
try {
|
|
4216
|
-
typeof
|
|
4217
|
-
} catch (
|
|
4218
|
-
|
|
4214
|
+
typeof _.handleEvent == "function" ? _.handleEvent(a) : _.call(this, a);
|
|
4215
|
+
} catch (x) {
|
|
4216
|
+
v(x);
|
|
4219
4217
|
}
|
|
4220
4218
|
}
|
|
4221
|
-
},
|
|
4222
|
-
|
|
4223
|
-
var
|
|
4224
|
-
|
|
4225
|
-
for (var
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
},
|
|
4229
|
-
|
|
4230
|
-
var
|
|
4231
|
-
if (
|
|
4232
|
-
for (var
|
|
4233
|
-
|
|
4234
|
-
|
|
4219
|
+
}, ce.prototype.addEventListener = function(a, d) {
|
|
4220
|
+
a = String(a);
|
|
4221
|
+
var m = this._listeners, h = m[a];
|
|
4222
|
+
h == null && (h = [], m[a] = h);
|
|
4223
|
+
for (var _ = !1, x = 0; x < h.length; x += 1)
|
|
4224
|
+
h[x] === d && (_ = !0);
|
|
4225
|
+
_ || h.push(d);
|
|
4226
|
+
}, ce.prototype.removeEventListener = function(a, d) {
|
|
4227
|
+
a = String(a);
|
|
4228
|
+
var m = this._listeners, h = m[a];
|
|
4229
|
+
if (h != null) {
|
|
4230
|
+
for (var _ = [], x = 0; x < h.length; x += 1)
|
|
4231
|
+
h[x] !== d && _.push(h[x]);
|
|
4232
|
+
_.length === 0 ? delete m[a] : m[a] = _;
|
|
4235
4233
|
}
|
|
4236
4234
|
};
|
|
4237
|
-
function
|
|
4238
|
-
this.type =
|
|
4235
|
+
function ae(a) {
|
|
4236
|
+
this.type = a, this.target = void 0;
|
|
4239
4237
|
}
|
|
4240
|
-
function
|
|
4241
|
-
|
|
4238
|
+
function ot(a, d) {
|
|
4239
|
+
ae.call(this, a), this.data = d.data, this.lastEventId = d.lastEventId;
|
|
4242
4240
|
}
|
|
4243
|
-
|
|
4244
|
-
function
|
|
4245
|
-
|
|
4241
|
+
ot.prototype = Object.create(ae.prototype);
|
|
4242
|
+
function Re(a, d) {
|
|
4243
|
+
ae.call(this, a), this.status = d.status, this.statusText = d.statusText, this.headers = d.headers;
|
|
4246
4244
|
}
|
|
4247
|
-
|
|
4248
|
-
function
|
|
4249
|
-
|
|
4245
|
+
Re.prototype = Object.create(ae.prototype);
|
|
4246
|
+
function at(a, d) {
|
|
4247
|
+
ae.call(this, a), this.error = d.error;
|
|
4250
4248
|
}
|
|
4251
|
-
|
|
4252
|
-
var
|
|
4253
|
-
var
|
|
4254
|
-
return
|
|
4255
|
-
},
|
|
4256
|
-
return Math.min(Math.max(
|
|
4257
|
-
},
|
|
4249
|
+
at.prototype = Object.create(ae.prototype);
|
|
4250
|
+
var We = -1, be = 0, ye = 1, we = 2, Ze = -1, se = 0, Le = 1, st = 2, ut = 3, wt = /^text\/event\-stream(;.*)?$/i, At = 1e3, lt = 18e6, qe = function(a, d) {
|
|
4251
|
+
var m = a == null ? d : parseInt(a, 10);
|
|
4252
|
+
return m !== m && (m = d), Qe(m);
|
|
4253
|
+
}, Qe = function(a) {
|
|
4254
|
+
return Math.min(Math.max(a, At), lt);
|
|
4255
|
+
}, Ae = function(a, d, m) {
|
|
4258
4256
|
try {
|
|
4259
|
-
typeof
|
|
4260
|
-
} catch (
|
|
4261
|
-
|
|
4257
|
+
typeof d == "function" && d.call(a, m);
|
|
4258
|
+
} catch (h) {
|
|
4259
|
+
v(h);
|
|
4262
4260
|
}
|
|
4263
4261
|
};
|
|
4264
|
-
function
|
|
4265
|
-
|
|
4262
|
+
function ne(a, d) {
|
|
4263
|
+
ce.call(this), d = d || {}, 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, R(this, a, d);
|
|
4266
4264
|
}
|
|
4267
|
-
function
|
|
4265
|
+
function Ct() {
|
|
4268
4266
|
return o != null && "withCredentials" in o.prototype || u == null ? new o() : new u();
|
|
4269
4267
|
}
|
|
4270
|
-
var
|
|
4271
|
-
function
|
|
4272
|
-
|
|
4273
|
-
var
|
|
4274
|
-
if (
|
|
4275
|
-
if (W === 200 &&
|
|
4276
|
-
|
|
4277
|
-
var
|
|
4268
|
+
var b = g != null && p != null && "body" in p.prototype;
|
|
4269
|
+
function R(a, d, m) {
|
|
4270
|
+
d = String(d);
|
|
4271
|
+
var h = !!m.withCredentials, _ = m.lastEventIdQueryParameterName || "lastEventId", x = Qe(1e3), w = qe(m.heartbeatTimeout, 45e3), j = "", H = x, D = !1, F = 0, B = m.headers || {}, k = m.Transport, Ee = b && k == null ? void 0 : new S(k != null ? new k() : Ct()), Je = k != null && typeof k != "string" ? new k() : Ee == null ? new Se() : new te(), re = void 0, J = 0, fe = We, Ne = "", ht = "", xe = "", ct = "", Y = se, Ht = 0, He = 0, sr = function(W, z, ie, oe) {
|
|
4272
|
+
if (fe === be)
|
|
4273
|
+
if (W === 200 && ie != null && wt.test(ie)) {
|
|
4274
|
+
fe = ye, D = Date.now(), H = x, a.readyState = ye;
|
|
4275
|
+
var K = new Re("open", {
|
|
4278
4276
|
status: W,
|
|
4279
4277
|
statusText: z,
|
|
4280
|
-
headers:
|
|
4278
|
+
headers: oe
|
|
4281
4279
|
});
|
|
4282
|
-
|
|
4280
|
+
a.dispatchEvent(K), Ae(a, a.onopen, K);
|
|
4283
4281
|
} else {
|
|
4284
|
-
var
|
|
4285
|
-
W !== 200 ? (z && (z = z.replace(/\s+/g, " ")),
|
|
4286
|
-
var
|
|
4282
|
+
var q = "";
|
|
4283
|
+
W !== 200 ? (z && (z = z.replace(/\s+/g, " ")), q = "EventSource's response has a status " + W + " " + z + " that is not 200. Aborting the connection.") : q = "EventSource's response has a Content-Type specifying an unsupported type: " + (ie == null ? "-" : ie.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
|
|
4284
|
+
var K = new Re("error", {
|
|
4287
4285
|
status: W,
|
|
4288
4286
|
statusText: z,
|
|
4289
|
-
headers:
|
|
4287
|
+
headers: oe
|
|
4290
4288
|
});
|
|
4291
|
-
|
|
4289
|
+
a.dispatchEvent(K), Ae(a, a.onerror, K), console.error(q);
|
|
4292
4290
|
}
|
|
4293
|
-
},
|
|
4294
|
-
if (
|
|
4295
|
-
for (var z = -1,
|
|
4296
|
-
var
|
|
4297
|
-
(
|
|
4291
|
+
}, ur = function(W) {
|
|
4292
|
+
if (fe === ye) {
|
|
4293
|
+
for (var z = -1, ie = 0; ie < W.length; ie += 1) {
|
|
4294
|
+
var oe = W.charCodeAt(ie);
|
|
4295
|
+
(oe === 10 || oe === 13) && (z = ie);
|
|
4298
4296
|
}
|
|
4299
|
-
var
|
|
4300
|
-
|
|
4301
|
-
for (var
|
|
4302
|
-
var
|
|
4303
|
-
if (
|
|
4304
|
-
|
|
4305
|
-
else if (
|
|
4306
|
-
if (
|
|
4307
|
-
|
|
4308
|
-
var
|
|
4309
|
-
|
|
4310
|
-
`, Ne +=
|
|
4311
|
-
|
|
4297
|
+
var K = (z !== -1 ? ct : "") + W.slice(0, z + 1);
|
|
4298
|
+
ct = (z === -1 ? ct : "") + W.slice(z + 1), W !== "" && (D = Date.now(), F += W.length);
|
|
4299
|
+
for (var q = 0; q < K.length; q += 1) {
|
|
4300
|
+
var oe = K.charCodeAt(q);
|
|
4301
|
+
if (Y === Ze && oe === 10)
|
|
4302
|
+
Y = se;
|
|
4303
|
+
else if (Y === Ze && (Y = se), oe === 13 || oe === 10) {
|
|
4304
|
+
if (Y !== se) {
|
|
4305
|
+
Y === Le && (He = q + 1);
|
|
4306
|
+
var _e = K.slice(Ht, He - 1), Te = K.slice(He + (He < q && K.charCodeAt(He) === 32 ? 1 : 0), q);
|
|
4307
|
+
_e === "data" ? (Ne += `
|
|
4308
|
+
`, Ne += Te) : _e === "id" ? ht = Te : _e === "event" ? xe = Te : _e === "retry" ? (x = qe(Te, x), H = x) : _e === "heartbeatTimeout" && (w = qe(Te, w), J !== 0 && (i(J), J = r(function() {
|
|
4309
|
+
Ye();
|
|
4312
4310
|
}, w)));
|
|
4313
4311
|
}
|
|
4314
|
-
if (
|
|
4312
|
+
if (Y === se) {
|
|
4315
4313
|
if (Ne !== "") {
|
|
4316
|
-
|
|
4317
|
-
var Me = new
|
|
4314
|
+
j = ht, xe === "" && (xe = "message");
|
|
4315
|
+
var Me = new ot(xe, {
|
|
4318
4316
|
data: Ne.slice(1),
|
|
4319
|
-
lastEventId:
|
|
4317
|
+
lastEventId: ht
|
|
4320
4318
|
});
|
|
4321
|
-
if (
|
|
4319
|
+
if (a.dispatchEvent(Me), xe === "open" ? Ae(a, a.onopen, Me) : xe === "message" ? Ae(a, a.onmessage, Me) : xe === "error" && Ae(a, a.onerror, Me), fe === we)
|
|
4322
4320
|
return;
|
|
4323
4321
|
}
|
|
4324
|
-
Ne = "",
|
|
4322
|
+
Ne = "", xe = "";
|
|
4325
4323
|
}
|
|
4326
|
-
|
|
4324
|
+
Y = oe === 13 ? Ze : se;
|
|
4327
4325
|
} else
|
|
4328
|
-
|
|
4326
|
+
Y === se && (Ht = q, Y = Le), Y === Le ? oe === 58 && (He = q + 1, Y = st) : Y === st && (Y = ut);
|
|
4329
4327
|
}
|
|
4330
4328
|
}
|
|
4331
|
-
},
|
|
4332
|
-
if (
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
},
|
|
4336
|
-
var z = new
|
|
4337
|
-
|
|
4329
|
+
}, an = function(W) {
|
|
4330
|
+
if (fe === ye || fe === be) {
|
|
4331
|
+
fe = We, J !== 0 && (i(J), J = 0), J = r(function() {
|
|
4332
|
+
Ye();
|
|
4333
|
+
}, H), H = Qe(Math.min(x * 16, H * 2)), a.readyState = be;
|
|
4334
|
+
var z = new at("error", { error: W });
|
|
4335
|
+
a.dispatchEvent(z), Ae(a, a.onerror, z), W != null && console.error(W);
|
|
4338
4336
|
}
|
|
4339
|
-
},
|
|
4340
|
-
|
|
4341
|
-
},
|
|
4342
|
-
if (
|
|
4343
|
-
if (!
|
|
4344
|
-
|
|
4337
|
+
}, Ot = function() {
|
|
4338
|
+
fe = we, re != null && (re.abort(), re = void 0), J !== 0 && (i(J), J = 0), a.readyState = we;
|
|
4339
|
+
}, Ye = function() {
|
|
4340
|
+
if (J = 0, fe !== We) {
|
|
4341
|
+
if (!D && re != null)
|
|
4342
|
+
an(new Error("No activity within " + w + " milliseconds. " + (fe === be ? "No response received." : F + " chars received.") + " Reconnecting.")), re != null && (re.abort(), re = void 0);
|
|
4345
4343
|
else {
|
|
4346
|
-
var W = Math.max((
|
|
4347
|
-
|
|
4348
|
-
|
|
4344
|
+
var W = Math.max((D || Date.now()) + w - Date.now(), 1);
|
|
4345
|
+
D = !1, J = r(function() {
|
|
4346
|
+
Ye();
|
|
4349
4347
|
}, W);
|
|
4350
4348
|
}
|
|
4351
4349
|
return;
|
|
4352
4350
|
}
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
}, w),
|
|
4356
|
-
var z =
|
|
4357
|
-
if (
|
|
4358
|
-
var
|
|
4359
|
-
z =
|
|
4360
|
-
return Me ===
|
|
4361
|
-
}), z += (
|
|
4351
|
+
D = !1, F = 0, J = r(function() {
|
|
4352
|
+
Ye();
|
|
4353
|
+
}, w), fe = be, Ne = "", xe = "", ht = j, ct = "", Ht = 0, He = 0, Y = se;
|
|
4354
|
+
var z = d;
|
|
4355
|
+
if (d.slice(0, 5) !== "data:" && d.slice(0, 5) !== "blob:" && j !== "") {
|
|
4356
|
+
var ie = d.indexOf("?");
|
|
4357
|
+
z = ie === -1 ? d : d.slice(0, ie + 1) + d.slice(ie + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Te, Me) {
|
|
4358
|
+
return Me === _ ? "" : Te;
|
|
4359
|
+
}), z += (d.indexOf("?") === -1 ? "?" : "&") + _ + "=" + encodeURIComponent(j);
|
|
4362
4360
|
}
|
|
4363
|
-
var
|
|
4364
|
-
|
|
4365
|
-
var
|
|
4366
|
-
if (
|
|
4367
|
-
for (var
|
|
4368
|
-
Object.prototype.hasOwnProperty.call(
|
|
4361
|
+
var oe = a.withCredentials, K = {};
|
|
4362
|
+
K.Accept = "text/event-stream";
|
|
4363
|
+
var q = a.headers;
|
|
4364
|
+
if (q != null)
|
|
4365
|
+
for (var _e in q)
|
|
4366
|
+
Object.prototype.hasOwnProperty.call(q, _e) && (K[_e] = q[_e]);
|
|
4369
4367
|
try {
|
|
4370
|
-
|
|
4371
|
-
} catch (
|
|
4372
|
-
throw
|
|
4368
|
+
re = Je.open(Ee, sr, ur, an, z, oe, K);
|
|
4369
|
+
} catch (Te) {
|
|
4370
|
+
throw Ot(), Te;
|
|
4373
4371
|
}
|
|
4374
4372
|
};
|
|
4375
|
-
|
|
4373
|
+
a.url = d, a.readyState = be, a.withCredentials = h, a.headers = B, a._close = Ot, Ye();
|
|
4376
4374
|
}
|
|
4377
|
-
|
|
4375
|
+
ne.prototype = Object.create(ce.prototype), ne.prototype.CONNECTING = be, ne.prototype.OPEN = ye, ne.prototype.CLOSED = we, ne.prototype.close = function() {
|
|
4378
4376
|
this._close();
|
|
4379
|
-
},
|
|
4380
|
-
var
|
|
4381
|
-
o != null && (
|
|
4377
|
+
}, ne.CONNECTING = be, ne.OPEN = ye, ne.CLOSED = we, ne.prototype.withCredentials = void 0;
|
|
4378
|
+
var I = c;
|
|
4379
|
+
o != null && (c == null || !("withCredentials" in c.prototype)) && (I = ne), function(a) {
|
|
4382
4380
|
{
|
|
4383
|
-
var
|
|
4384
|
-
|
|
4381
|
+
var d = a(t);
|
|
4382
|
+
d !== void 0 && (e.exports = d);
|
|
4385
4383
|
}
|
|
4386
|
-
}(function(
|
|
4387
|
-
|
|
4384
|
+
}(function(a) {
|
|
4385
|
+
a.EventSourcePolyfill = ne, a.NativeEventSource = c, a.EventSource = I;
|
|
4388
4386
|
});
|
|
4389
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self :
|
|
4387
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : $r : globalThis);
|
|
4390
4388
|
})(en, en.exports);
|
|
4391
|
-
var
|
|
4389
|
+
var Ro = en.exports;
|
|
4392
4390
|
/*!
|
|
4393
4391
|
* currency.js - v2.0.4
|
|
4394
4392
|
* http://scurker.github.io/currency.js
|
|
@@ -4396,7 +4394,7 @@ var Lo = en.exports;
|
|
|
4396
4394
|
* Copyright (c) 2021 Jason Wilson
|
|
4397
4395
|
* Released under MIT license
|
|
4398
4396
|
*/
|
|
4399
|
-
var
|
|
4397
|
+
var Lo = {
|
|
4400
4398
|
symbol: "$",
|
|
4401
4399
|
separator: ",",
|
|
4402
4400
|
decimal: ".",
|
|
@@ -4404,43 +4402,43 @@ var No = {
|
|
|
4404
4402
|
precision: 2,
|
|
4405
4403
|
pattern: "!#",
|
|
4406
4404
|
negativePattern: "-!#",
|
|
4407
|
-
format:
|
|
4405
|
+
format: Io,
|
|
4408
4406
|
fromCents: !1
|
|
4409
|
-
},
|
|
4407
|
+
}, ar = function(t) {
|
|
4410
4408
|
return Math.round(t);
|
|
4411
|
-
},
|
|
4409
|
+
}, on = function(t) {
|
|
4412
4410
|
return Math.pow(10, t);
|
|
4413
|
-
},
|
|
4414
|
-
return
|
|
4415
|
-
},
|
|
4416
|
-
function
|
|
4411
|
+
}, No = function(t, n) {
|
|
4412
|
+
return ar(t / n) * n;
|
|
4413
|
+
}, Mo = /(\d)(?=(\d{3})+\b)/g, Po = /(\d)(?=(\d\d)+\d\b)/g;
|
|
4414
|
+
function de(e, t) {
|
|
4417
4415
|
var n = this;
|
|
4418
|
-
if (!(n instanceof
|
|
4419
|
-
return new
|
|
4420
|
-
var r = Object.assign({},
|
|
4421
|
-
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups =
|
|
4422
|
-
}
|
|
4423
|
-
function
|
|
4424
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, u = t.precision,
|
|
4425
|
-
if (f &&
|
|
4416
|
+
if (!(n instanceof de))
|
|
4417
|
+
return new de(e, t);
|
|
4418
|
+
var r = Object.assign({}, Lo, t), i = on(r.precision), o = gt(e, r);
|
|
4419
|
+
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Po : r.groups = Mo, this.s = r, this.p = i;
|
|
4420
|
+
}
|
|
4421
|
+
function gt(e, t) {
|
|
4422
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, u = t.precision, s = t.fromCents, c = on(u), l = typeof e == "number", f = e instanceof de;
|
|
4423
|
+
if (f && s)
|
|
4426
4424
|
return e.intValue;
|
|
4427
4425
|
if (l || f)
|
|
4428
4426
|
r = f ? e.value : e;
|
|
4429
4427
|
else if (typeof e == "string") {
|
|
4430
|
-
var
|
|
4431
|
-
r = e.replace(/\((.*)\)/, "-$1").replace(
|
|
4428
|
+
var g = new RegExp("[^-\\d" + i + "]", "g"), p = new RegExp("\\" + i, "g");
|
|
4429
|
+
r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(p, "."), r = r || 0;
|
|
4432
4430
|
} else {
|
|
4433
4431
|
if (o)
|
|
4434
4432
|
throw Error("Invalid Input");
|
|
4435
4433
|
r = 0;
|
|
4436
4434
|
}
|
|
4437
|
-
return
|
|
4435
|
+
return s || (r *= c, r = r.toFixed(4)), n ? ar(r) : r;
|
|
4438
4436
|
}
|
|
4439
|
-
function
|
|
4440
|
-
var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, u = t.decimal,
|
|
4441
|
-
return (e.value >= 0 ? n : r).replace("!", i).replace("#", l.replace(
|
|
4437
|
+
function Io(e, t) {
|
|
4438
|
+
var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, u = t.decimal, s = t.groups, c = ("" + e).replace(/^-/, "").split("."), l = c[0], f = c[1];
|
|
4439
|
+
return (e.value >= 0 ? n : r).replace("!", i).replace("#", l.replace(s, "$1" + o) + (f ? u + f : ""));
|
|
4442
4440
|
}
|
|
4443
|
-
|
|
4441
|
+
de.prototype = {
|
|
4444
4442
|
/**
|
|
4445
4443
|
* Adds values together.
|
|
4446
4444
|
* @param {number} number
|
|
@@ -4448,7 +4446,7 @@ he.prototype = {
|
|
|
4448
4446
|
*/
|
|
4449
4447
|
add: function(t) {
|
|
4450
4448
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4451
|
-
return
|
|
4449
|
+
return de((n += gt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4452
4450
|
},
|
|
4453
4451
|
/**
|
|
4454
4452
|
* Subtracts value.
|
|
@@ -4457,7 +4455,7 @@ he.prototype = {
|
|
|
4457
4455
|
*/
|
|
4458
4456
|
subtract: function(t) {
|
|
4459
4457
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4460
|
-
return
|
|
4458
|
+
return de((n -= gt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4461
4459
|
},
|
|
4462
4460
|
/**
|
|
4463
4461
|
* Multiplies values.
|
|
@@ -4466,7 +4464,7 @@ he.prototype = {
|
|
|
4466
4464
|
*/
|
|
4467
4465
|
multiply: function(t) {
|
|
4468
4466
|
var n = this.intValue, r = this.s;
|
|
4469
|
-
return
|
|
4467
|
+
return de((n *= t) / (r.fromCents ? 1 : on(r.precision)), r);
|
|
4470
4468
|
},
|
|
4471
4469
|
/**
|
|
4472
4470
|
* Divides value.
|
|
@@ -4475,7 +4473,7 @@ he.prototype = {
|
|
|
4475
4473
|
*/
|
|
4476
4474
|
divide: function(t) {
|
|
4477
4475
|
var n = this.intValue, r = this.s;
|
|
4478
|
-
return
|
|
4476
|
+
return de(n /= gt(t, r, !1), r);
|
|
4479
4477
|
},
|
|
4480
4478
|
/**
|
|
4481
4479
|
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
|
@@ -4484,9 +4482,9 @@ he.prototype = {
|
|
|
4484
4482
|
* @returns {array}
|
|
4485
4483
|
*/
|
|
4486
4484
|
distribute: function(t) {
|
|
4487
|
-
for (var n = this.intValue, r = this.p, i = this.s, o = [], u = Math[n >= 0 ? "floor" : "ceil"](n / t),
|
|
4488
|
-
var l =
|
|
4489
|
-
|
|
4485
|
+
for (var n = this.intValue, r = this.p, i = this.s, o = [], u = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - u * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
|
|
4486
|
+
var l = de(u / c, i);
|
|
4487
|
+
s-- > 0 && (l = l[n >= 0 ? "add" : "subtract"](1 / c)), o.push(l);
|
|
4490
4488
|
}
|
|
4491
4489
|
return o;
|
|
4492
4490
|
},
|
|
@@ -4520,7 +4518,7 @@ he.prototype = {
|
|
|
4520
4518
|
*/
|
|
4521
4519
|
toString: function() {
|
|
4522
4520
|
var t = this.intValue, n = this.p, r = this.s;
|
|
4523
|
-
return
|
|
4521
|
+
return No(t / n, r.increment).toFixed(r.precision);
|
|
4524
4522
|
},
|
|
4525
4523
|
/**
|
|
4526
4524
|
* Value for JSON serialization.
|
|
@@ -4530,18 +4528,18 @@ he.prototype = {
|
|
|
4530
4528
|
return this.value;
|
|
4531
4529
|
}
|
|
4532
4530
|
};
|
|
4533
|
-
function
|
|
4534
|
-
|
|
4531
|
+
function Do(e) {
|
|
4532
|
+
gr(e, "svelte-113krup", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
|
|
4535
4533
|
}
|
|
4536
|
-
function
|
|
4534
|
+
function Sn(e, t, n) {
|
|
4537
4535
|
const r = e.slice();
|
|
4538
4536
|
return r[47] = t[n], r;
|
|
4539
4537
|
}
|
|
4540
|
-
function
|
|
4538
|
+
function wn(e, t, n) {
|
|
4541
4539
|
const r = e.slice();
|
|
4542
4540
|
return r[50] = t[n], r;
|
|
4543
4541
|
}
|
|
4544
|
-
function
|
|
4542
|
+
function Fo(e) {
|
|
4545
4543
|
let t, n = (
|
|
4546
4544
|
/*balances*/
|
|
4547
4545
|
(e[4].Total ? (
|
|
@@ -4551,136 +4549,136 @@ function Uo(e) {
|
|
|
4551
4549
|
e[4].Total[0].amount
|
|
4552
4550
|
)
|
|
4553
4551
|
) : "0") + ""
|
|
4554
|
-
), r, i, o, u,
|
|
4552
|
+
), r, i, o, u, s, c, l, f, g, p = (
|
|
4555
4553
|
/*showBalance*/
|
|
4556
|
-
e[2] &&
|
|
4554
|
+
e[2] && An(e)
|
|
4557
4555
|
);
|
|
4558
4556
|
return {
|
|
4559
4557
|
c() {
|
|
4560
|
-
t =
|
|
4558
|
+
t = V("p"), r = pe(n), i = ge(), o = pe(
|
|
4561
4559
|
/*currency*/
|
|
4562
4560
|
e[3]
|
|
4563
|
-
), u =
|
|
4561
|
+
), u = ge(), s = V("span"), s.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', c = ge(), p && p.c(), l = vr(), Z(t, "class", "BalanceValue");
|
|
4564
4562
|
},
|
|
4565
|
-
m(
|
|
4566
|
-
|
|
4563
|
+
m(y, E) {
|
|
4564
|
+
ve(y, t, E), L(t, r), L(t, i), L(t, o), L(t, u), L(t, s), ve(y, c, E), p && p.m(y, E), ve(y, l, E), f || (g = bt(
|
|
4567
4565
|
t,
|
|
4568
4566
|
"click",
|
|
4569
4567
|
/*click_handler*/
|
|
4570
4568
|
e[23]
|
|
4571
4569
|
), f = !0);
|
|
4572
4570
|
},
|
|
4573
|
-
p(
|
|
4574
|
-
|
|
4571
|
+
p(y, E) {
|
|
4572
|
+
E[0] & /*balances*/
|
|
4575
4573
|
16 && n !== (n = /*balances*/
|
|
4576
|
-
(
|
|
4574
|
+
(y[4].Total ? (
|
|
4577
4575
|
/*formatBalance*/
|
|
4578
|
-
|
|
4576
|
+
y[6](
|
|
4579
4577
|
/*balances*/
|
|
4580
|
-
|
|
4578
|
+
y[4].Total[0].amount
|
|
4581
4579
|
)
|
|
4582
|
-
) : "0") + "") &&
|
|
4583
|
-
8 &&
|
|
4580
|
+
) : "0") + "") && Be(r, n), E[0] & /*currency*/
|
|
4581
|
+
8 && Be(
|
|
4584
4582
|
o,
|
|
4585
4583
|
/*currency*/
|
|
4586
|
-
|
|
4584
|
+
y[3]
|
|
4587
4585
|
), /*showBalance*/
|
|
4588
|
-
|
|
4586
|
+
y[2] ? p ? p.p(y, E) : (p = An(y), p.c(), p.m(l.parentNode, l)) : p && (p.d(1), p = null);
|
|
4589
4587
|
},
|
|
4590
|
-
d(
|
|
4591
|
-
|
|
4588
|
+
d(y) {
|
|
4589
|
+
y && (me(t), me(c), me(l)), p && p.d(y), f = !1, g();
|
|
4592
4590
|
}
|
|
4593
4591
|
};
|
|
4594
4592
|
}
|
|
4595
|
-
function
|
|
4593
|
+
function Uo(e) {
|
|
4596
4594
|
let t, n = (
|
|
4597
4595
|
/*$_*/
|
|
4598
4596
|
e[5]("Loading") + ""
|
|
4599
4597
|
), r;
|
|
4600
4598
|
return {
|
|
4601
4599
|
c() {
|
|
4602
|
-
t =
|
|
4600
|
+
t = V("p"), r = pe(n);
|
|
4603
4601
|
},
|
|
4604
4602
|
m(i, o) {
|
|
4605
|
-
|
|
4603
|
+
ve(i, t, o), L(t, r);
|
|
4606
4604
|
},
|
|
4607
4605
|
p(i, o) {
|
|
4608
4606
|
o[0] & /*$_*/
|
|
4609
4607
|
32 && n !== (n = /*$_*/
|
|
4610
|
-
i[5]("Loading") + "") &&
|
|
4608
|
+
i[5]("Loading") + "") && Be(r, n);
|
|
4611
4609
|
},
|
|
4612
4610
|
d(i) {
|
|
4613
|
-
i &&
|
|
4611
|
+
i && me(t);
|
|
4614
4612
|
}
|
|
4615
4613
|
};
|
|
4616
4614
|
}
|
|
4617
|
-
function
|
|
4618
|
-
let t, n, r, i, o, u,
|
|
4615
|
+
function An(e) {
|
|
4616
|
+
let t, n, r, i, o, u, s = (
|
|
4619
4617
|
/*$_*/
|
|
4620
4618
|
e[5]("Title") + ""
|
|
4621
|
-
),
|
|
4619
|
+
), c, l, f, g, p, y, E = (
|
|
4622
4620
|
/*$_*/
|
|
4623
4621
|
e[5]("DepositButton") + ""
|
|
4624
|
-
), M, C,
|
|
4622
|
+
), M, C, $, X = yt(Object.keys(
|
|
4625
4623
|
/*balances*/
|
|
4626
4624
|
e[4]
|
|
4627
4625
|
)), T = [];
|
|
4628
4626
|
for (let S = 0; S < X.length; S += 1)
|
|
4629
|
-
T[S] =
|
|
4627
|
+
T[S] = Hn(Sn(e, X, S));
|
|
4630
4628
|
return {
|
|
4631
4629
|
c() {
|
|
4632
|
-
t =
|
|
4630
|
+
t = V("div"), n = V("div"), r = ge(), i = V("div"), o = V("div"), u = V("p"), c = pe(s), l = ge(), f = V("div");
|
|
4633
4631
|
for (let S = 0; S < T.length; S += 1)
|
|
4634
4632
|
T[S].c();
|
|
4635
|
-
|
|
4633
|
+
g = ge(), p = V("div"), y = V("button"), M = pe(E), Z(n, "class", "BalanceModalClose"), Z(u, "class", "BalanceModalTitle"), Z(o, "class", "BalanceModalHeader"), Z(f, "class", "BalanceModalBody"), Z(y, "class", "BalanceModalAction"), Z(p, "class", "BalanceModalFooter"), Z(i, "class", "BalanceModal"), Z(t, "class", "BalanceModalWrapper");
|
|
4636
4634
|
},
|
|
4637
|
-
m(S,
|
|
4638
|
-
|
|
4635
|
+
m(S, U) {
|
|
4636
|
+
ve(S, t, U), L(t, n), L(t, r), L(t, i), L(i, o), L(o, u), L(u, c), L(i, l), L(i, f);
|
|
4639
4637
|
for (let P = 0; P < T.length; P += 1)
|
|
4640
4638
|
T[P] && T[P].m(f, null);
|
|
4641
|
-
L(i,
|
|
4642
|
-
|
|
4639
|
+
L(i, g), L(i, p), L(p, y), L(y, M), C || ($ = [
|
|
4640
|
+
bt(
|
|
4643
4641
|
n,
|
|
4644
4642
|
"click",
|
|
4645
4643
|
/*click_handler_1*/
|
|
4646
4644
|
e[24]
|
|
4647
4645
|
),
|
|
4648
|
-
|
|
4649
|
-
|
|
4646
|
+
bt(
|
|
4647
|
+
y,
|
|
4650
4648
|
"click",
|
|
4651
4649
|
/*click_handler_2*/
|
|
4652
4650
|
e[25]
|
|
4653
4651
|
)
|
|
4654
4652
|
], C = !0);
|
|
4655
4653
|
},
|
|
4656
|
-
p(S,
|
|
4657
|
-
if (
|
|
4658
|
-
32 &&
|
|
4659
|
-
S[5]("Title") + "") &&
|
|
4654
|
+
p(S, U) {
|
|
4655
|
+
if (U[0] & /*$_*/
|
|
4656
|
+
32 && s !== (s = /*$_*/
|
|
4657
|
+
S[5]("Title") + "") && Be(c, s), U[0] & /*balances, currency, formatBalance, $_*/
|
|
4660
4658
|
120) {
|
|
4661
|
-
X =
|
|
4659
|
+
X = yt(Object.keys(
|
|
4662
4660
|
/*balances*/
|
|
4663
4661
|
S[4]
|
|
4664
4662
|
));
|
|
4665
4663
|
let P;
|
|
4666
4664
|
for (P = 0; P < X.length; P += 1) {
|
|
4667
|
-
const
|
|
4668
|
-
T[P] ? T[P].p(
|
|
4665
|
+
const te = Sn(S, X, P);
|
|
4666
|
+
T[P] ? T[P].p(te, U) : (T[P] = Hn(te), T[P].c(), T[P].m(f, null));
|
|
4669
4667
|
}
|
|
4670
4668
|
for (; P < T.length; P += 1)
|
|
4671
4669
|
T[P].d(1);
|
|
4672
4670
|
T.length = X.length;
|
|
4673
4671
|
}
|
|
4674
|
-
|
|
4675
|
-
32 &&
|
|
4676
|
-
S[5]("DepositButton") + "") &&
|
|
4672
|
+
U[0] & /*$_*/
|
|
4673
|
+
32 && E !== (E = /*$_*/
|
|
4674
|
+
S[5]("DepositButton") + "") && Be(M, E);
|
|
4677
4675
|
},
|
|
4678
4676
|
d(S) {
|
|
4679
|
-
S &&
|
|
4677
|
+
S && me(t), Mn(T, S), C = !1, ke($);
|
|
4680
4678
|
}
|
|
4681
4679
|
};
|
|
4682
4680
|
}
|
|
4683
|
-
function
|
|
4681
|
+
function Cn(e) {
|
|
4684
4682
|
let t, n, r = (
|
|
4685
4683
|
/*$_*/
|
|
4686
4684
|
e[5](
|
|
@@ -4696,7 +4694,7 @@ function Rn(e) {
|
|
|
4696
4694
|
e[50].productType
|
|
4697
4695
|
)
|
|
4698
4696
|
) : "") + ""
|
|
4699
|
-
),
|
|
4697
|
+
), s, c, l, f, g = (
|
|
4700
4698
|
/*b*/
|
|
4701
4699
|
(e[50].amount ? (
|
|
4702
4700
|
/*formatBalance*/
|
|
@@ -4705,24 +4703,24 @@ function Rn(e) {
|
|
|
4705
4703
|
e[50].amount
|
|
4706
4704
|
)
|
|
4707
4705
|
) : "0") + ""
|
|
4708
|
-
),
|
|
4706
|
+
), p, y, E, M;
|
|
4709
4707
|
return {
|
|
4710
4708
|
c() {
|
|
4711
|
-
t =
|
|
4709
|
+
t = V("div"), n = V("p"), i = pe(r), o = ge(), s = pe(u), c = ge(), l = V("p"), f = V("span"), p = pe(g), y = ge(), E = V("span"), M = pe(
|
|
4712
4710
|
/*currency*/
|
|
4713
4711
|
e[3]
|
|
4714
|
-
),
|
|
4712
|
+
), Z(n, "class", "BalanceModalText"), Z(f, "class", "BalanceModalAmount"), Z(E, "class", "BalanceModalCurrency"), Z(l, "class", "BalanceModalValue"), Z(t, "class", "BalanceModalRowLine");
|
|
4715
4713
|
},
|
|
4716
|
-
m(C,
|
|
4717
|
-
|
|
4714
|
+
m(C, $) {
|
|
4715
|
+
ve(C, t, $), L(t, n), L(n, i), L(n, o), L(n, s), L(t, c), L(t, l), L(l, f), L(f, p), L(l, y), L(l, E), L(E, M);
|
|
4718
4716
|
},
|
|
4719
|
-
p(C,
|
|
4720
|
-
|
|
4717
|
+
p(C, $) {
|
|
4718
|
+
$[0] & /*$_, balances*/
|
|
4721
4719
|
48 && r !== (r = /*$_*/
|
|
4722
4720
|
C[5](
|
|
4723
4721
|
/*k*/
|
|
4724
4722
|
C[47]
|
|
4725
|
-
) + "") &&
|
|
4723
|
+
) + "") && Be(i, r), $[0] & /*balances, $_*/
|
|
4726
4724
|
48 && u !== (u = /*b*/
|
|
4727
4725
|
(C[50].productType ? (
|
|
4728
4726
|
/*$_*/
|
|
@@ -4730,28 +4728,28 @@ function Rn(e) {
|
|
|
4730
4728
|
/*b*/
|
|
4731
4729
|
C[50].productType
|
|
4732
4730
|
)
|
|
4733
|
-
) : "") + "") &&
|
|
4734
|
-
16 &&
|
|
4731
|
+
) : "") + "") && Be(s, u), $[0] & /*balances*/
|
|
4732
|
+
16 && g !== (g = /*b*/
|
|
4735
4733
|
(C[50].amount ? (
|
|
4736
4734
|
/*formatBalance*/
|
|
4737
4735
|
C[6](
|
|
4738
4736
|
/*b*/
|
|
4739
4737
|
C[50].amount
|
|
4740
4738
|
)
|
|
4741
|
-
) : "0") + "") &&
|
|
4742
|
-
8 &&
|
|
4739
|
+
) : "0") + "") && Be(p, g), $[0] & /*currency*/
|
|
4740
|
+
8 && Be(
|
|
4743
4741
|
M,
|
|
4744
4742
|
/*currency*/
|
|
4745
4743
|
C[3]
|
|
4746
4744
|
);
|
|
4747
4745
|
},
|
|
4748
4746
|
d(C) {
|
|
4749
|
-
C &&
|
|
4747
|
+
C && me(t);
|
|
4750
4748
|
}
|
|
4751
4749
|
};
|
|
4752
4750
|
}
|
|
4753
|
-
function
|
|
4754
|
-
let t, n, r =
|
|
4751
|
+
function Hn(e) {
|
|
4752
|
+
let t, n, r = yt(
|
|
4755
4753
|
/*balances*/
|
|
4756
4754
|
e[4][
|
|
4757
4755
|
/*k*/
|
|
@@ -4759,131 +4757,131 @@ function On(e) {
|
|
|
4759
4757
|
]
|
|
4760
4758
|
), i = [];
|
|
4761
4759
|
for (let o = 0; o < r.length; o += 1)
|
|
4762
|
-
i[o] =
|
|
4760
|
+
i[o] = Cn(wn(e, r, o));
|
|
4763
4761
|
return {
|
|
4764
4762
|
c() {
|
|
4765
|
-
t =
|
|
4763
|
+
t = V("div");
|
|
4766
4764
|
for (let o = 0; o < i.length; o += 1)
|
|
4767
4765
|
i[o].c();
|
|
4768
|
-
n =
|
|
4766
|
+
n = ge(), Z(t, "class", "BalanceModalRowBoth");
|
|
4769
4767
|
},
|
|
4770
4768
|
m(o, u) {
|
|
4771
|
-
|
|
4772
|
-
for (let
|
|
4773
|
-
i[
|
|
4769
|
+
ve(o, t, u);
|
|
4770
|
+
for (let s = 0; s < i.length; s += 1)
|
|
4771
|
+
i[s] && i[s].m(t, null);
|
|
4774
4772
|
L(t, n);
|
|
4775
4773
|
},
|
|
4776
4774
|
p(o, u) {
|
|
4777
4775
|
if (u[0] & /*currency, balances, formatBalance, $_*/
|
|
4778
4776
|
120) {
|
|
4779
|
-
r =
|
|
4777
|
+
r = yt(
|
|
4780
4778
|
/*balances*/
|
|
4781
4779
|
o[4][
|
|
4782
4780
|
/*k*/
|
|
4783
4781
|
o[47]
|
|
4784
4782
|
]
|
|
4785
4783
|
);
|
|
4786
|
-
let
|
|
4787
|
-
for (
|
|
4788
|
-
const
|
|
4789
|
-
i[
|
|
4784
|
+
let s;
|
|
4785
|
+
for (s = 0; s < r.length; s += 1) {
|
|
4786
|
+
const c = wn(o, r, s);
|
|
4787
|
+
i[s] ? i[s].p(c, u) : (i[s] = Cn(c), i[s].c(), i[s].m(t, n));
|
|
4790
4788
|
}
|
|
4791
|
-
for (;
|
|
4792
|
-
i[
|
|
4789
|
+
for (; s < i.length; s += 1)
|
|
4790
|
+
i[s].d(1);
|
|
4793
4791
|
i.length = r.length;
|
|
4794
4792
|
}
|
|
4795
4793
|
},
|
|
4796
4794
|
d(o) {
|
|
4797
|
-
o &&
|
|
4795
|
+
o && me(t), Mn(i, o);
|
|
4798
4796
|
}
|
|
4799
4797
|
};
|
|
4800
4798
|
}
|
|
4801
|
-
function
|
|
4799
|
+
function On(e) {
|
|
4802
4800
|
let t, n, r;
|
|
4803
4801
|
return {
|
|
4804
4802
|
c() {
|
|
4805
|
-
t =
|
|
4803
|
+
t = V("div"), Z(t, "class", "ShowBalanceModalOverlay");
|
|
4806
4804
|
},
|
|
4807
4805
|
m(i, o) {
|
|
4808
|
-
|
|
4806
|
+
ve(i, t, o), n || (r = bt(
|
|
4809
4807
|
t,
|
|
4810
4808
|
"click",
|
|
4811
4809
|
/*click_handler_3*/
|
|
4812
4810
|
e[26]
|
|
4813
4811
|
), n = !0);
|
|
4814
4812
|
},
|
|
4815
|
-
p:
|
|
4813
|
+
p: le,
|
|
4816
4814
|
d(i) {
|
|
4817
|
-
i &&
|
|
4815
|
+
i && me(t), n = !1, r();
|
|
4818
4816
|
}
|
|
4819
4817
|
};
|
|
4820
4818
|
}
|
|
4821
|
-
function
|
|
4819
|
+
function Go(e) {
|
|
4822
4820
|
let t, n, r;
|
|
4823
|
-
function i(
|
|
4821
|
+
function i(c, l) {
|
|
4824
4822
|
return (
|
|
4825
4823
|
/*isLoading*/
|
|
4826
|
-
|
|
4824
|
+
c[1] ? Uo : Fo
|
|
4827
4825
|
);
|
|
4828
4826
|
}
|
|
4829
|
-
let o = i(e), u = o(e),
|
|
4827
|
+
let o = i(e), u = o(e), s = (
|
|
4830
4828
|
/*showBalance*/
|
|
4831
|
-
e[2] &&
|
|
4829
|
+
e[2] && On(e)
|
|
4832
4830
|
);
|
|
4833
4831
|
return {
|
|
4834
4832
|
c() {
|
|
4835
|
-
t =
|
|
4833
|
+
t = V("div"), n = V("div"), u.c(), r = ge(), s && s.c(), Z(n, "class", "ShowBalance");
|
|
4836
4834
|
},
|
|
4837
|
-
m(
|
|
4838
|
-
|
|
4835
|
+
m(c, l) {
|
|
4836
|
+
ve(c, t, l), L(t, n), u.m(n, null), L(t, r), s && s.m(t, null), e[27](t);
|
|
4839
4837
|
},
|
|
4840
|
-
p(
|
|
4841
|
-
o === (o = i(
|
|
4842
|
-
|
|
4838
|
+
p(c, l) {
|
|
4839
|
+
o === (o = i(c)) && u ? u.p(c, l) : (u.d(1), u = o(c), u && (u.c(), u.m(n, null))), /*showBalance*/
|
|
4840
|
+
c[2] ? s ? s.p(c, l) : (s = On(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4843
4841
|
},
|
|
4844
|
-
i:
|
|
4845
|
-
o:
|
|
4846
|
-
d(
|
|
4847
|
-
|
|
4842
|
+
i: le,
|
|
4843
|
+
o: le,
|
|
4844
|
+
d(c) {
|
|
4845
|
+
c && me(t), u.d(), s && s.d(), e[27](null);
|
|
4848
4846
|
}
|
|
4849
4847
|
};
|
|
4850
4848
|
}
|
|
4851
|
-
function
|
|
4849
|
+
function $o(e, t, n) {
|
|
4852
4850
|
let r;
|
|
4853
|
-
|
|
4854
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang:
|
|
4855
|
-
const v = {},
|
|
4856
|
-
fetch(f).then((
|
|
4851
|
+
mr(e, Ho, (b) => n(5, r = b));
|
|
4852
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { customlocaleidentifier: g = "" } = t, { gmversion: p = "gm16" } = t, { displaybalanceoption: y = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { currencyseparator: M = "" } = t, { currencydecimal: C = "" } = t, { currencyprecision: $ = "" } = t, { mbsource: X } = t, T, S, U, P = !1, te = "", he = [], Se, ce = !1;
|
|
4853
|
+
const v = {}, ae = ["totalCashAmount", "totalRealAmount"], ot = () => {
|
|
4854
|
+
fetch(f).then((b) => b.json()).then((b) => Object.keys(b).forEach((R) => Tn(R, b[R]))).catch((b) => console.log(b));
|
|
4857
4855
|
};
|
|
4858
|
-
Object.keys(
|
|
4859
|
-
const
|
|
4860
|
-
if (
|
|
4861
|
-
return
|
|
4862
|
-
},
|
|
4856
|
+
Object.keys(Bn).forEach((b) => Tn(b, Bn[b]));
|
|
4857
|
+
const Re = () => {
|
|
4858
|
+
if (g.includes(s))
|
|
4859
|
+
return g;
|
|
4860
|
+
}, at = (b) => g ? new Intl.NumberFormat(Re(), { useGrouping: !0 }).format(b) : M && C ? de(b, {
|
|
4863
4861
|
separator: M,
|
|
4864
4862
|
decimal: C,
|
|
4865
4863
|
symbol: "",
|
|
4866
|
-
precision: parseInt(
|
|
4867
|
-
}).format() :
|
|
4864
|
+
precision: parseInt($ || "2", 10)
|
|
4865
|
+
}).format() : de(b, {
|
|
4868
4866
|
separator: ".",
|
|
4869
4867
|
decimal: ",",
|
|
4870
4868
|
symbol: "",
|
|
4871
|
-
precision: parseInt(
|
|
4872
|
-
}).format(),
|
|
4873
|
-
var
|
|
4869
|
+
precision: parseInt($ || "2", 10)
|
|
4870
|
+
}).format(), We = () => Mt(this, null, function* () {
|
|
4871
|
+
var R, I, a;
|
|
4874
4872
|
n(1, T = !0);
|
|
4875
|
-
const
|
|
4873
|
+
const b = new URL(`${u}/v1/player/${i}/account`);
|
|
4876
4874
|
try {
|
|
4877
|
-
const
|
|
4875
|
+
const d = yield fetch(b, {
|
|
4878
4876
|
method: "GET",
|
|
4879
4877
|
headers: { "X-SessionID": o }
|
|
4880
|
-
}),
|
|
4881
|
-
if (
|
|
4882
|
-
|
|
4878
|
+
}), m = yield d.json();
|
|
4879
|
+
if (d.ok)
|
|
4880
|
+
he = m.items, n(3, te = (R = he.find((h) => h.displayName === "Casino")) == null ? void 0 : R.currency), n(4, v.Total = [{ amount: m.totalAmount[te] }], v), n(
|
|
4883
4881
|
4,
|
|
4884
4882
|
v.Real = [
|
|
4885
4883
|
{
|
|
4886
|
-
amount: (
|
|
4884
|
+
amount: (I = he.find((h) => h.displayName === "Casino")) == null ? void 0 : I.balanceAmount
|
|
4887
4885
|
}
|
|
4888
4886
|
],
|
|
4889
4887
|
v
|
|
@@ -4891,45 +4889,45 @@ function jo(e, t, n) {
|
|
|
4891
4889
|
4,
|
|
4892
4890
|
v.Bonus = [
|
|
4893
4891
|
{
|
|
4894
|
-
amount: (
|
|
4892
|
+
amount: (a = he.find((h) => h.displayName === "UBS")) == null ? void 0 : a.balanceAmount
|
|
4895
4893
|
}
|
|
4896
4894
|
],
|
|
4897
4895
|
v
|
|
4898
4896
|
);
|
|
4899
4897
|
else
|
|
4900
4898
|
throw new Error("Failed to fetch balance data !");
|
|
4901
|
-
} catch (
|
|
4902
|
-
console.log("Balance error: ",
|
|
4899
|
+
} catch (d) {
|
|
4900
|
+
console.log("Balance error: ", d);
|
|
4903
4901
|
} finally {
|
|
4904
4902
|
n(1, T = !1);
|
|
4905
4903
|
}
|
|
4906
|
-
}),
|
|
4904
|
+
}), be = () => {
|
|
4907
4905
|
n(1, T = !0);
|
|
4908
|
-
const
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
const
|
|
4912
|
-
if (n(3,
|
|
4913
|
-
|
|
4906
|
+
const b = new URL(`${u}/v2/player/${i}/balance`), R = new Headers();
|
|
4907
|
+
R.append("X-SessionID", o), fetch(b, { method: "GET", headers: R }).then((a) => a.json()).then((a) => {
|
|
4908
|
+
a[E] || n(8, E = ae[0]);
|
|
4909
|
+
const d = a.items.find((h) => h.type === "Real" && h.walletAccountType === "Ordinary");
|
|
4910
|
+
if (n(3, te = d.currency), ce = !!d.productType, n(4, v.Total = [{ amount: 0 }], v), n(4, v.Real = [], v), n(4, v.Bonus = [], v), n(4, v.Credit = [], v), !ce) {
|
|
4911
|
+
Se = {
|
|
4914
4912
|
lastOrdinaryAfterAmount: 0,
|
|
4915
4913
|
showCreditLineAfterAmount: !1
|
|
4916
|
-
}, n(4, v.Total[0].amount =
|
|
4917
|
-
for (const
|
|
4918
|
-
switch (
|
|
4914
|
+
}, n(4, v.Total[0].amount = a[E][te], v);
|
|
4915
|
+
for (const h of a.items)
|
|
4916
|
+
switch (h.type) {
|
|
4919
4917
|
case "Bonus":
|
|
4920
|
-
v.Bonus.length === 0 ? v.Bonus.push({ amount:
|
|
4918
|
+
v.Bonus.length === 0 ? v.Bonus.push({ amount: h.amount }) : n(4, v.Bonus[0].amount += h.amount, v);
|
|
4921
4919
|
break;
|
|
4922
4920
|
case "Real":
|
|
4923
|
-
if (
|
|
4924
|
-
v.Real.length === 0 ? v.Real.push({ amount:
|
|
4921
|
+
if (h.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: h.creditLine }), E === "totalRealAmount") continue;
|
|
4922
|
+
v.Real.length === 0 ? v.Real.push({ amount: h.amount }) : n(4, v.Real[0].amount += h.amount, v);
|
|
4925
4923
|
break;
|
|
4926
4924
|
}
|
|
4927
|
-
for (const [
|
|
4928
|
-
|
|
4925
|
+
for (const [h, _] of Object.entries(v))
|
|
4926
|
+
_.length < 1 && delete v[h];
|
|
4929
4927
|
n(1, T = !1);
|
|
4930
4928
|
return;
|
|
4931
4929
|
}
|
|
4932
|
-
|
|
4930
|
+
Se = {
|
|
4933
4931
|
Casino: {
|
|
4934
4932
|
lastOrdinaryAfterAmount: 0,
|
|
4935
4933
|
showCreditLineAfterAmount: !1
|
|
@@ -4939,195 +4937,195 @@ function jo(e, t, n) {
|
|
|
4939
4937
|
showCreditLineAfterAmount: !1
|
|
4940
4938
|
}
|
|
4941
4939
|
};
|
|
4942
|
-
let
|
|
4943
|
-
|
|
4944
|
-
for (const
|
|
4945
|
-
let
|
|
4946
|
-
switch (
|
|
4940
|
+
let m = a.items;
|
|
4941
|
+
y && y !== "All" && (m = a.items.filter((h) => h.productType === y));
|
|
4942
|
+
for (const h of m) {
|
|
4943
|
+
let _;
|
|
4944
|
+
switch (h.type) {
|
|
4947
4945
|
case "Bonus":
|
|
4948
|
-
|
|
4949
|
-
amount:
|
|
4950
|
-
productType:
|
|
4946
|
+
_ = v.Bonus.findIndex((x) => x.productType === h.productType), _ > 0 ? n(4, v.Bonus[_].amount += h.amount, v) : v.Bonus.push({
|
|
4947
|
+
amount: h.amount,
|
|
4948
|
+
productType: h.productType
|
|
4951
4949
|
});
|
|
4952
4950
|
break;
|
|
4953
4951
|
case "Real":
|
|
4954
|
-
|
|
4955
|
-
amount:
|
|
4956
|
-
productType:
|
|
4957
|
-
}),
|
|
4958
|
-
amount:
|
|
4959
|
-
productType:
|
|
4952
|
+
h.creditLine && v.Credit.push({
|
|
4953
|
+
amount: h.creditLine,
|
|
4954
|
+
productType: h.productType
|
|
4955
|
+
}), _ = v.Real.findIndex((x) => x.productType === h.productType), _ > 0 ? n(4, v.Real[_].amount += h.amount, v) : v.Real.push({
|
|
4956
|
+
amount: h.amount,
|
|
4957
|
+
productType: h.productType
|
|
4960
4958
|
});
|
|
4961
4959
|
break;
|
|
4962
4960
|
}
|
|
4963
4961
|
}
|
|
4964
|
-
|
|
4965
|
-
for (const [
|
|
4966
|
-
|
|
4962
|
+
Le();
|
|
4963
|
+
for (const [h, _] of Object.entries(v))
|
|
4964
|
+
_.length < 1 && delete v[h];
|
|
4967
4965
|
n(1, T = !1);
|
|
4968
|
-
}).catch((
|
|
4966
|
+
}).catch((a) => {
|
|
4969
4967
|
throw n(1, T = !1), new Error("Failed to fetch balance data !");
|
|
4970
4968
|
});
|
|
4971
|
-
},
|
|
4972
|
-
if (
|
|
4973
|
-
let
|
|
4974
|
-
switch (
|
|
4969
|
+
}, ye = () => {
|
|
4970
|
+
if (U && U.close(), o.length < 1) return;
|
|
4971
|
+
let b, R;
|
|
4972
|
+
switch (p) {
|
|
4975
4973
|
case "gm16":
|
|
4976
|
-
|
|
4974
|
+
b = new URL(`${u}/v2/player/${i}/information/updates`), R = (d) => st(d);
|
|
4977
4975
|
break;
|
|
4978
4976
|
case "gmcore":
|
|
4979
|
-
|
|
4977
|
+
b = new URL(`${u}/v1/player/${i}/balance/updates`), R = (d) => Ze(d);
|
|
4980
4978
|
break;
|
|
4981
4979
|
}
|
|
4982
|
-
const
|
|
4980
|
+
const I = {
|
|
4983
4981
|
accept: "text/event-stream",
|
|
4984
4982
|
"X-SessionId": o
|
|
4985
|
-
},
|
|
4986
|
-
|
|
4987
|
-
},
|
|
4988
|
-
let
|
|
4983
|
+
}, a = new Ro.EventSourcePolyfill(b, { headers: I });
|
|
4984
|
+
U = a, a.addEventListener("message", R);
|
|
4985
|
+
}, we = (b) => {
|
|
4986
|
+
let R;
|
|
4989
4987
|
try {
|
|
4990
|
-
|
|
4991
|
-
} catch (
|
|
4992
|
-
console.log("Balance stream failed: ",
|
|
4988
|
+
R = JSON.parse(b);
|
|
4989
|
+
} catch (I) {
|
|
4990
|
+
console.log("Balance stream failed: ", I);
|
|
4993
4991
|
return;
|
|
4994
4992
|
}
|
|
4995
|
-
return
|
|
4996
|
-
},
|
|
4997
|
-
var
|
|
4998
|
-
const
|
|
4999
|
-
if (!
|
|
5000
|
-
|
|
4993
|
+
return R;
|
|
4994
|
+
}, Ze = (b) => {
|
|
4995
|
+
var d, m;
|
|
4996
|
+
const R = we(b.data);
|
|
4997
|
+
if (!R) {
|
|
4998
|
+
ye();
|
|
5001
4999
|
return;
|
|
5002
5000
|
}
|
|
5003
|
-
let
|
|
5004
|
-
const
|
|
5005
|
-
|
|
5006
|
-
balanceAmount:
|
|
5007
|
-
})),
|
|
5008
|
-
},
|
|
5009
|
-
let
|
|
5010
|
-
switch (
|
|
5001
|
+
let I = "0";
|
|
5002
|
+
const a = R.balanceChange;
|
|
5003
|
+
he = he.map((h) => (a && a[h.id] && (h = Nt(Lt({}, h), {
|
|
5004
|
+
balanceAmount: a[h.id].afterAmount
|
|
5005
|
+
})), I = (parseFloat(h == null ? void 0 : h.balanceAmount) + parseFloat(I)).toString(), h)), n(4, v.Real = [{ amount: (d = he[0]) == null ? void 0 : d.balanceAmount }], v), n(4, v.Bonus = [{ amount: (m = he[1]) == null ? void 0 : m.balanceAmount }], v), n(4, v.Total = [{ amount: Number(I) }], v);
|
|
5006
|
+
}, se = (b, R, I) => {
|
|
5007
|
+
let a = null;
|
|
5008
|
+
switch (I.walletAccountType) {
|
|
5011
5009
|
case "Ordinary":
|
|
5012
|
-
|
|
5010
|
+
I.afterAmount !== I.affectedAmount && (R.lastOrdinaryAfterAmount = I.afterAmount, R.showCreditLineAfterAmount || (a = I.afterAmount));
|
|
5013
5011
|
break;
|
|
5014
5012
|
case "CreditLine":
|
|
5015
|
-
|
|
5013
|
+
I.afterAmount !== 0 ? (a = I.afterAmount, R.showCreditLineAfterAmount = !0) : (a = R.lastOrdinaryAfterAmount, R.showCreditLineAfterAmount = !1);
|
|
5016
5014
|
break;
|
|
5017
5015
|
default:
|
|
5018
|
-
|
|
5016
|
+
a = I.afterAmount;
|
|
5019
5017
|
}
|
|
5020
|
-
return
|
|
5021
|
-
},
|
|
5022
|
-
switch (
|
|
5018
|
+
return a === null ? b : a;
|
|
5019
|
+
}, Le = () => {
|
|
5020
|
+
switch (E) {
|
|
5023
5021
|
case "totalCashAmount":
|
|
5024
|
-
let
|
|
5025
|
-
for (const
|
|
5026
|
-
for (const
|
|
5027
|
-
|
|
5028
|
-
n(4, v.Total[0].amount =
|
|
5022
|
+
let b = 0;
|
|
5023
|
+
for (const I of ["Real", "Bonus"])
|
|
5024
|
+
for (const a of v[I])
|
|
5025
|
+
b += Math.max(a.amount, 0);
|
|
5026
|
+
n(4, v.Total[0].amount = b, v);
|
|
5029
5027
|
break;
|
|
5030
5028
|
case "totalRealAmount":
|
|
5031
|
-
if (!
|
|
5032
|
-
let
|
|
5033
|
-
for (const
|
|
5034
|
-
|
|
5035
|
-
n(4, v.Total[0].amount =
|
|
5029
|
+
if (!ce) return;
|
|
5030
|
+
let R = 0;
|
|
5031
|
+
for (const I of v.Real)
|
|
5032
|
+
R += I.amount;
|
|
5033
|
+
n(4, v.Total[0].amount = R, v);
|
|
5036
5034
|
}
|
|
5037
|
-
},
|
|
5038
|
-
const
|
|
5039
|
-
if (!
|
|
5040
|
-
|
|
5035
|
+
}, st = (b) => {
|
|
5036
|
+
const R = we(b.data);
|
|
5037
|
+
if (!R) {
|
|
5038
|
+
ye();
|
|
5041
5039
|
return;
|
|
5042
5040
|
}
|
|
5043
|
-
if (
|
|
5041
|
+
if (R.type !== "BALANCE_UPDATE_V2")
|
|
5044
5042
|
return;
|
|
5045
|
-
const
|
|
5046
|
-
for (const [
|
|
5047
|
-
if (
|
|
5048
|
-
for (const
|
|
5049
|
-
if (!
|
|
5050
|
-
|
|
5043
|
+
const I = R.body.balanceChange;
|
|
5044
|
+
for (const [a, d] of Object.entries(I))
|
|
5045
|
+
if (E === "totalRealAmount" && a === "Real" && !ce && n(4, v.Total[0].amount = se(v.Total[0].amount, Se, d), v), !!v[a])
|
|
5046
|
+
for (const m of v[a]) {
|
|
5047
|
+
if (!ce) {
|
|
5048
|
+
m.amount = a === "Real" ? se(m.amount, Se, d) : d.afterAmount;
|
|
5051
5049
|
continue;
|
|
5052
5050
|
}
|
|
5053
|
-
|
|
5051
|
+
d.productType === m.productType && (m.amount = a === "Real" ? se(m.amount, Se[m.productType], d) : d.afterAmount);
|
|
5054
5052
|
}
|
|
5055
|
-
|
|
5056
|
-
},
|
|
5053
|
+
Le();
|
|
5054
|
+
}, ut = () => {
|
|
5057
5055
|
n(2, P = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5058
|
-
}, St = () => {
|
|
5059
|
-
Be.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${Be}. Using default value ('${Be[0]}').`), n(8, _ = Be[0]));
|
|
5060
5056
|
}, wt = () => {
|
|
5061
|
-
|
|
5057
|
+
ae.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${ae}. Using default value ('${ae[0]}').`), n(8, E = ae[0]));
|
|
5058
|
+
}, At = () => {
|
|
5059
|
+
switch (Oo(s), wt(), p) {
|
|
5062
5060
|
case "gmcore":
|
|
5063
|
-
|
|
5061
|
+
We();
|
|
5064
5062
|
break;
|
|
5065
5063
|
case "gm16":
|
|
5066
|
-
|
|
5064
|
+
be();
|
|
5067
5065
|
break;
|
|
5068
5066
|
default:
|
|
5069
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
5067
|
+
throw Error(`Invalid apiversion attribute: ${p}`);
|
|
5070
5068
|
}
|
|
5071
|
-
},
|
|
5072
|
-
|
|
5073
|
-
window.
|
|
5069
|
+
}, lt = (b) => b.data && b.data.type === "LogoutSuccessfull" && U.close();
|
|
5070
|
+
Tr(() => (window.addEventListener("message", lt, !1), () => {
|
|
5071
|
+
window.removeEventListener("message", lt), U && U.close();
|
|
5074
5072
|
}));
|
|
5075
|
-
const
|
|
5076
|
-
function Ct(
|
|
5077
|
-
jt[
|
|
5078
|
-
S =
|
|
5073
|
+
const qe = () => n(2, P = !0), Qe = () => n(2, P = !1), Ae = () => ut(), ne = () => n(2, P = !1);
|
|
5074
|
+
function Ct(b) {
|
|
5075
|
+
jt[b ? "unshift" : "push"](() => {
|
|
5076
|
+
S = b, n(0, S);
|
|
5079
5077
|
});
|
|
5080
5078
|
}
|
|
5081
|
-
return e.$$set = (
|
|
5082
|
-
"userid" in
|
|
5079
|
+
return e.$$set = (b) => {
|
|
5080
|
+
"userid" in b && n(9, i = b.userid), "session" in b && n(10, o = b.session), "endpoint" in b && n(11, u = b.endpoint), "lang" in b && n(12, s = b.lang), "clientstyling" in b && n(13, c = b.clientstyling), "clientstylingurl" in b && n(14, l = b.clientstylingurl), "translationurl" in b && n(15, f = b.translationurl), "customlocaleidentifier" in b && n(16, g = b.customlocaleidentifier), "gmversion" in b && n(17, p = b.gmversion), "displaybalanceoption" in b && n(18, y = b.displaybalanceoption), "totalcalculationmode" in b && n(8, E = b.totalcalculationmode), "currencyseparator" in b && n(19, M = b.currencyseparator), "currencydecimal" in b && n(20, C = b.currencydecimal), "currencyprecision" in b && n(21, $ = b.currencyprecision), "mbsource" in b && n(22, X = b.mbsource);
|
|
5083
5081
|
}, e.$$.update = () => {
|
|
5084
5082
|
e.$$.dirty[0] & /*lang*/
|
|
5085
|
-
4096 &&
|
|
5086
|
-
400896 && u && i && o &&
|
|
5087
|
-
134656 && u && i && o &&
|
|
5088
|
-
8193 &&
|
|
5089
|
-
16385 && l && S &&
|
|
5090
|
-
4194305 && S &&
|
|
5091
|
-
32768 && f &&
|
|
5083
|
+
4096 && s && Re(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5084
|
+
400896 && u && i && o && s && p && y && At(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5085
|
+
134656 && u && i && o && p && ye(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5086
|
+
8193 && c && S && Dr(S, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5087
|
+
16385 && l && S && Fr(S, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
5088
|
+
4194305 && S && Ur(S, `${X}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5089
|
+
32768 && f && ot();
|
|
5092
5090
|
}, [
|
|
5093
5091
|
S,
|
|
5094
5092
|
T,
|
|
5095
5093
|
P,
|
|
5096
|
-
|
|
5094
|
+
te,
|
|
5097
5095
|
v,
|
|
5098
5096
|
r,
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5097
|
+
at,
|
|
5098
|
+
ut,
|
|
5099
|
+
E,
|
|
5102
5100
|
i,
|
|
5103
5101
|
o,
|
|
5104
5102
|
u,
|
|
5105
|
-
|
|
5106
|
-
|
|
5103
|
+
s,
|
|
5104
|
+
c,
|
|
5107
5105
|
l,
|
|
5108
5106
|
f,
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5107
|
+
g,
|
|
5108
|
+
p,
|
|
5109
|
+
y,
|
|
5112
5110
|
M,
|
|
5113
5111
|
C,
|
|
5114
|
-
|
|
5112
|
+
$,
|
|
5115
5113
|
X,
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5114
|
+
qe,
|
|
5115
|
+
Qe,
|
|
5116
|
+
Ae,
|
|
5117
|
+
ne,
|
|
5120
5118
|
Ct
|
|
5121
5119
|
];
|
|
5122
5120
|
}
|
|
5123
|
-
class
|
|
5121
|
+
class jo extends Pr {
|
|
5124
5122
|
constructor(t) {
|
|
5125
|
-
super(),
|
|
5123
|
+
super(), Nr(
|
|
5126
5124
|
this,
|
|
5127
5125
|
t,
|
|
5128
|
-
jo,
|
|
5129
5126
|
$o,
|
|
5130
|
-
|
|
5127
|
+
Go,
|
|
5128
|
+
Ln,
|
|
5131
5129
|
{
|
|
5132
5130
|
userid: 9,
|
|
5133
5131
|
session: 10,
|
|
@@ -5145,7 +5143,7 @@ class ko extends Dr {
|
|
|
5145
5143
|
currencyprecision: 21,
|
|
5146
5144
|
mbsource: 22
|
|
5147
5145
|
},
|
|
5148
|
-
|
|
5146
|
+
Do,
|
|
5149
5147
|
[-1, -1]
|
|
5150
5148
|
);
|
|
5151
5149
|
}
|
|
@@ -5153,94 +5151,94 @@ class ko extends Dr {
|
|
|
5153
5151
|
return this.$$.ctx[9];
|
|
5154
5152
|
}
|
|
5155
5153
|
set userid(t) {
|
|
5156
|
-
this.$$set({ userid: t }),
|
|
5154
|
+
this.$$set({ userid: t }), Q();
|
|
5157
5155
|
}
|
|
5158
5156
|
get session() {
|
|
5159
5157
|
return this.$$.ctx[10];
|
|
5160
5158
|
}
|
|
5161
5159
|
set session(t) {
|
|
5162
|
-
this.$$set({ session: t }),
|
|
5160
|
+
this.$$set({ session: t }), Q();
|
|
5163
5161
|
}
|
|
5164
5162
|
get endpoint() {
|
|
5165
5163
|
return this.$$.ctx[11];
|
|
5166
5164
|
}
|
|
5167
5165
|
set endpoint(t) {
|
|
5168
|
-
this.$$set({ endpoint: t }),
|
|
5166
|
+
this.$$set({ endpoint: t }), Q();
|
|
5169
5167
|
}
|
|
5170
5168
|
get lang() {
|
|
5171
5169
|
return this.$$.ctx[12];
|
|
5172
5170
|
}
|
|
5173
5171
|
set lang(t) {
|
|
5174
|
-
this.$$set({ lang: t }),
|
|
5172
|
+
this.$$set({ lang: t }), Q();
|
|
5175
5173
|
}
|
|
5176
5174
|
get clientstyling() {
|
|
5177
5175
|
return this.$$.ctx[13];
|
|
5178
5176
|
}
|
|
5179
5177
|
set clientstyling(t) {
|
|
5180
|
-
this.$$set({ clientstyling: t }),
|
|
5178
|
+
this.$$set({ clientstyling: t }), Q();
|
|
5181
5179
|
}
|
|
5182
5180
|
get clientstylingurl() {
|
|
5183
5181
|
return this.$$.ctx[14];
|
|
5184
5182
|
}
|
|
5185
5183
|
set clientstylingurl(t) {
|
|
5186
|
-
this.$$set({ clientstylingurl: t }),
|
|
5184
|
+
this.$$set({ clientstylingurl: t }), Q();
|
|
5187
5185
|
}
|
|
5188
5186
|
get translationurl() {
|
|
5189
5187
|
return this.$$.ctx[15];
|
|
5190
5188
|
}
|
|
5191
5189
|
set translationurl(t) {
|
|
5192
|
-
this.$$set({ translationurl: t }),
|
|
5190
|
+
this.$$set({ translationurl: t }), Q();
|
|
5193
5191
|
}
|
|
5194
5192
|
get customlocaleidentifier() {
|
|
5195
5193
|
return this.$$.ctx[16];
|
|
5196
5194
|
}
|
|
5197
5195
|
set customlocaleidentifier(t) {
|
|
5198
|
-
this.$$set({ customlocaleidentifier: t }),
|
|
5196
|
+
this.$$set({ customlocaleidentifier: t }), Q();
|
|
5199
5197
|
}
|
|
5200
5198
|
get gmversion() {
|
|
5201
5199
|
return this.$$.ctx[17];
|
|
5202
5200
|
}
|
|
5203
5201
|
set gmversion(t) {
|
|
5204
|
-
this.$$set({ gmversion: t }),
|
|
5202
|
+
this.$$set({ gmversion: t }), Q();
|
|
5205
5203
|
}
|
|
5206
5204
|
get displaybalanceoption() {
|
|
5207
5205
|
return this.$$.ctx[18];
|
|
5208
5206
|
}
|
|
5209
5207
|
set displaybalanceoption(t) {
|
|
5210
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5208
|
+
this.$$set({ displaybalanceoption: t }), Q();
|
|
5211
5209
|
}
|
|
5212
5210
|
get totalcalculationmode() {
|
|
5213
5211
|
return this.$$.ctx[8];
|
|
5214
5212
|
}
|
|
5215
5213
|
set totalcalculationmode(t) {
|
|
5216
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5214
|
+
this.$$set({ totalcalculationmode: t }), Q();
|
|
5217
5215
|
}
|
|
5218
5216
|
get currencyseparator() {
|
|
5219
5217
|
return this.$$.ctx[19];
|
|
5220
5218
|
}
|
|
5221
5219
|
set currencyseparator(t) {
|
|
5222
|
-
this.$$set({ currencyseparator: t }),
|
|
5220
|
+
this.$$set({ currencyseparator: t }), Q();
|
|
5223
5221
|
}
|
|
5224
5222
|
get currencydecimal() {
|
|
5225
5223
|
return this.$$.ctx[20];
|
|
5226
5224
|
}
|
|
5227
5225
|
set currencydecimal(t) {
|
|
5228
|
-
this.$$set({ currencydecimal: t }),
|
|
5226
|
+
this.$$set({ currencydecimal: t }), Q();
|
|
5229
5227
|
}
|
|
5230
5228
|
get currencyprecision() {
|
|
5231
5229
|
return this.$$.ctx[21];
|
|
5232
5230
|
}
|
|
5233
5231
|
set currencyprecision(t) {
|
|
5234
|
-
this.$$set({ currencyprecision: t }),
|
|
5232
|
+
this.$$set({ currencyprecision: t }), Q();
|
|
5235
5233
|
}
|
|
5236
5234
|
get mbsource() {
|
|
5237
5235
|
return this.$$.ctx[22];
|
|
5238
5236
|
}
|
|
5239
5237
|
set mbsource(t) {
|
|
5240
|
-
this.$$set({ mbsource: t }),
|
|
5238
|
+
this.$$set({ mbsource: t }), Q();
|
|
5241
5239
|
}
|
|
5242
5240
|
}
|
|
5243
|
-
|
|
5241
|
+
Mr(jo, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {}, mbsource: {} }, [], [], !0);
|
|
5244
5242
|
export {
|
|
5245
|
-
|
|
5243
|
+
jo as default
|
|
5246
5244
|
};
|