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