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