@everymatrix/player-account-balance-modal-nd 1.85.17 → 1.85.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountBalanceModalNd-BwQtrJO5.cjs +24 -0
- package/components/{PlayerAccountBalanceModalNd-1EckpYb_.js → PlayerAccountBalanceModalNd-DX3m65n_.js} +945 -942
- package/components/{PlayerAccountBalanceModalNd-B78J9vUB.js → PlayerAccountBalanceModalNd-OljTm6-Y.js} +3 -0
- package/es2015/player-account-balance-modal-nd.cjs +1 -1
- package/es2015/player-account-balance-modal-nd.js +1 -1
- package/esnext/player-account-balance-modal-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-n8IB03uD.cjs +0 -24
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Ut = Math.pow, Dt = (e, t,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var Nn = Object.defineProperty, In = Object.defineProperties;
|
|
2
|
+
var Dn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var vr = Object.getOwnPropertySymbols;
|
|
4
|
+
var Un = Object.prototype.hasOwnProperty, Fn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ut = Math.pow, Dt = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ft = (e, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
Un.call(t, r) && Dt(e, r, t[r]);
|
|
8
|
+
if (vr)
|
|
9
|
+
for (var r of vr(t))
|
|
10
|
+
Fn.call(t, r) && Dt(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Gt = (e, t) =>
|
|
13
|
-
var ye = (e, t,
|
|
14
|
-
var jt = (e, t,
|
|
12
|
+
}, Gt = (e, t) => In(e, Dn(t));
|
|
13
|
+
var ye = (e, t, r) => (Dt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var jt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
s(
|
|
17
|
+
s(r.next(c));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, a = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
s(
|
|
23
|
+
s(r.throw(c));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, s = (c) => c.done ?
|
|
28
|
-
s((
|
|
27
|
+
}, s = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(o, a);
|
|
28
|
+
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function ve() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Jr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function _r() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function Qe(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Jr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function mr(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Kr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Gn(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function en(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
|
-
for (const
|
|
53
|
-
|
|
52
|
+
for (const n of t)
|
|
53
|
+
n(void 0);
|
|
54
54
|
return ve;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
57
|
-
return
|
|
56
|
+
const r = e.subscribe(...t);
|
|
57
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function jn(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(en(t, r));
|
|
61
61
|
}
|
|
62
62
|
function I(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
if (!
|
|
65
|
+
function kn(e, t, r) {
|
|
66
|
+
const n = $n(e);
|
|
67
|
+
if (!n.getElementById(t)) {
|
|
68
68
|
const i = X("style");
|
|
69
|
-
i.id = t, i.textContent =
|
|
69
|
+
i.id = t, i.textContent = r, Vn(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function $
|
|
72
|
+
function $n(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,27 +79,27 @@ function $r(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Vn(e, t) {
|
|
83
83
|
return I(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function Ee(e, t,
|
|
90
|
-
e.insertBefore(t,
|
|
89
|
+
function Ee(e, t, r) {
|
|
90
|
+
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
92
|
function _e(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
for (let
|
|
97
|
-
e[
|
|
95
|
+
function tn(e, t) {
|
|
96
|
+
for (let r = 0; r < e.length; r += 1)
|
|
97
|
+
e[r] && e[r].d(t);
|
|
98
98
|
}
|
|
99
99
|
function X(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Er(e) {
|
|
103
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
104
|
}
|
|
105
105
|
function Te(e) {
|
|
@@ -108,28 +108,28 @@ function Te(e) {
|
|
|
108
108
|
function Be() {
|
|
109
109
|
return Te(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Xn() {
|
|
112
112
|
return Te("");
|
|
113
113
|
}
|
|
114
|
-
function ut(e, t,
|
|
115
|
-
return e.addEventListener(t,
|
|
114
|
+
function ut(e, t, r, n) {
|
|
115
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
116
|
}
|
|
117
|
-
function M(e, t,
|
|
118
|
-
|
|
117
|
+
function M(e, t, r) {
|
|
118
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function zn(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
123
|
function Ie(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Wn(e) {
|
|
128
128
|
const t = {};
|
|
129
129
|
return e.childNodes.forEach(
|
|
130
130
|
/** @param {Element} node */
|
|
131
|
-
(
|
|
132
|
-
t[
|
|
131
|
+
(r) => {
|
|
132
|
+
t[r.slot || "default"] = !0;
|
|
133
133
|
}
|
|
134
134
|
), t;
|
|
135
135
|
}
|
|
@@ -137,20 +137,20 @@ let lt;
|
|
|
137
137
|
function st(e) {
|
|
138
138
|
lt = e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Zn() {
|
|
141
141
|
if (!lt)
|
|
142
142
|
throw new Error("Function called outside component initialization");
|
|
143
143
|
return lt;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
145
|
+
function qn(e) {
|
|
146
|
+
Zn().$$.on_mount.push(e);
|
|
147
147
|
}
|
|
148
148
|
const Xe = [], Yt = [];
|
|
149
149
|
let ze = [];
|
|
150
|
-
const
|
|
150
|
+
const xr = [], Yn = /* @__PURE__ */ Promise.resolve();
|
|
151
151
|
let Qt = !1;
|
|
152
|
-
function
|
|
153
|
-
Qt || (Qt = !0,
|
|
152
|
+
function Qn() {
|
|
153
|
+
Qt || (Qt = !0, Yn.then(Z));
|
|
154
154
|
}
|
|
155
155
|
function Jt(e) {
|
|
156
156
|
ze.push(e);
|
|
@@ -165,7 +165,7 @@ function Z() {
|
|
|
165
165
|
try {
|
|
166
166
|
for (; $e < Xe.length; ) {
|
|
167
167
|
const t = Xe[$e];
|
|
168
|
-
$e++, st(t),
|
|
168
|
+
$e++, st(t), Jn(t.$$);
|
|
169
169
|
}
|
|
170
170
|
} catch (t) {
|
|
171
171
|
throw Xe.length = 0, $e = 0, t;
|
|
@@ -173,25 +173,25 @@ function Z() {
|
|
|
173
173
|
for (st(null), Xe.length = 0, $e = 0; Yt.length; )
|
|
174
174
|
Yt.pop()();
|
|
175
175
|
for (let t = 0; t < ze.length; t += 1) {
|
|
176
|
-
const
|
|
177
|
-
kt.has(
|
|
176
|
+
const r = ze[t];
|
|
177
|
+
kt.has(r) || (kt.add(r), r());
|
|
178
178
|
}
|
|
179
179
|
ze.length = 0;
|
|
180
180
|
} while (Xe.length);
|
|
181
|
-
for (;
|
|
182
|
-
|
|
181
|
+
for (; xr.length; )
|
|
182
|
+
xr.pop()();
|
|
183
183
|
Qt = !1, kt.clear(), st(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Jn(e) {
|
|
186
186
|
if (e.fragment !== null) {
|
|
187
187
|
e.update(), Qe(e.before_update);
|
|
188
188
|
const t = e.dirty;
|
|
189
189
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Jt);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
const t = [],
|
|
194
|
-
ze.forEach((
|
|
192
|
+
function Kn(e) {
|
|
193
|
+
const t = [], r = [];
|
|
194
|
+
ze.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ze = t;
|
|
195
195
|
}
|
|
196
196
|
const ei = /* @__PURE__ */ new Set();
|
|
197
197
|
function ti(e, t) {
|
|
@@ -200,21 +200,21 @@ function ti(e, t) {
|
|
|
200
200
|
function xt(e) {
|
|
201
201
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
const { fragment:
|
|
205
|
-
|
|
206
|
-
const o = e.$$.on_mount.map(
|
|
203
|
+
function ri(e, t, r) {
|
|
204
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
205
|
+
n && n.m(t, r), Jt(() => {
|
|
206
|
+
const o = e.$$.on_mount.map(Jr).filter(mr);
|
|
207
207
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Qe(o), e.$$.on_mount = [];
|
|
208
208
|
}), i.forEach(Jt);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
const
|
|
212
|
-
|
|
210
|
+
function ni(e, t) {
|
|
211
|
+
const r = e.$$;
|
|
212
|
+
r.fragment !== null && (Kn(r.after_update), Qe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
213
213
|
}
|
|
214
214
|
function ii(e, t) {
|
|
215
|
-
e.$$.dirty[0] === -1 && (Xe.push(e),
|
|
215
|
+
e.$$.dirty[0] === -1 && (Xe.push(e), Qn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
216
216
|
}
|
|
217
|
-
function oi(e, t,
|
|
217
|
+
function oi(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
218
218
|
const c = lt;
|
|
219
219
|
st(e);
|
|
220
220
|
const u = e.$$ = {
|
|
@@ -224,7 +224,7 @@ function oi(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
224
224
|
props: o,
|
|
225
225
|
update: ve,
|
|
226
226
|
not_equal: i,
|
|
227
|
-
bound:
|
|
227
|
+
bound: _r(),
|
|
228
228
|
// lifecycle
|
|
229
229
|
on_mount: [],
|
|
230
230
|
on_destroy: [],
|
|
@@ -233,29 +233,29 @@ function oi(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
|
233
233
|
after_update: [],
|
|
234
234
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
235
235
|
// everything else
|
|
236
|
-
callbacks:
|
|
236
|
+
callbacks: _r(),
|
|
237
237
|
dirty: s,
|
|
238
238
|
skip_bound: !1,
|
|
239
239
|
root: t.target || c.$$.root
|
|
240
240
|
};
|
|
241
241
|
a && a(u.root);
|
|
242
242
|
let f = !1;
|
|
243
|
-
if (u.ctx =
|
|
243
|
+
if (u.ctx = r ? r(e, t.props || {}, (m, d, ...g) => {
|
|
244
244
|
const v = g.length ? g[0] : d;
|
|
245
245
|
return u.ctx && i(u.ctx[m], u.ctx[m] = v) && (!u.skip_bound && u.bound[m] && u.bound[m](v), f && ii(e, m)), d;
|
|
246
|
-
}) : [], u.update(), f = !0, Qe(u.before_update), u.fragment =
|
|
246
|
+
}) : [], u.update(), f = !0, Qe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
247
247
|
if (t.hydrate) {
|
|
248
|
-
const m =
|
|
248
|
+
const m = zn(t.target);
|
|
249
249
|
u.fragment && u.fragment.l(m), m.forEach(_e);
|
|
250
250
|
} else
|
|
251
251
|
u.fragment && u.fragment.c();
|
|
252
|
-
t.intro && ti(e.$$.fragment),
|
|
252
|
+
t.intro && ti(e.$$.fragment), ri(e, t.target, t.anchor), Z();
|
|
253
253
|
}
|
|
254
254
|
st(c);
|
|
255
255
|
}
|
|
256
|
-
let
|
|
257
|
-
typeof HTMLElement == "function" && (
|
|
258
|
-
constructor(t,
|
|
256
|
+
let rn;
|
|
257
|
+
typeof HTMLElement == "function" && (rn = class extends HTMLElement {
|
|
258
|
+
constructor(t, r, n) {
|
|
259
259
|
super();
|
|
260
260
|
/** The Svelte component constructor */
|
|
261
261
|
ye(this, "$$ctor");
|
|
@@ -275,19 +275,19 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
275
275
|
ye(this, "$$l", {});
|
|
276
276
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
277
277
|
ye(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
278
|
-
this.$$ctor = t, this.$$s =
|
|
278
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
279
279
|
}
|
|
280
|
-
addEventListener(t,
|
|
281
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
282
|
-
const i = this.$$c.$on(t,
|
|
283
|
-
this.$$l_u.set(
|
|
280
|
+
addEventListener(t, r, n) {
|
|
281
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
282
|
+
const i = this.$$c.$on(t, r);
|
|
283
|
+
this.$$l_u.set(r, i);
|
|
284
284
|
}
|
|
285
|
-
super.addEventListener(t,
|
|
285
|
+
super.addEventListener(t, r, n);
|
|
286
286
|
}
|
|
287
|
-
removeEventListener(t,
|
|
288
|
-
if (super.removeEventListener(t,
|
|
289
|
-
const i = this.$$l_u.get(
|
|
290
|
-
i && (i(), this.$$l_u.delete(
|
|
287
|
+
removeEventListener(t, r, n) {
|
|
288
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
289
|
+
const i = this.$$l_u.get(r);
|
|
290
|
+
i && (i(), this.$$l_u.delete(r));
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
connectedCallback() {
|
|
@@ -315,9 +315,9 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
315
315
|
};
|
|
316
316
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
317
317
|
return;
|
|
318
|
-
const
|
|
318
|
+
const r = {}, n = Wn(this);
|
|
319
319
|
for (const o of this.$$s)
|
|
320
|
-
o in
|
|
320
|
+
o in n && (r[o] = [t(o)]);
|
|
321
321
|
for (const o of this.attributes) {
|
|
322
322
|
const a = this.$$g_p(o.name);
|
|
323
323
|
a in this.$$d || (this.$$d[a] = yt(a, o.value, this.$$p_d, "toProp"));
|
|
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
327
327
|
this.$$c = new this.$$ctor({
|
|
328
328
|
target: this.shadowRoot || this,
|
|
329
329
|
props: Gt(Ft({}, this.$$d), {
|
|
330
|
-
$$slots:
|
|
330
|
+
$$slots: r,
|
|
331
331
|
$$scope: {
|
|
332
332
|
ctx: []
|
|
333
333
|
}
|
|
@@ -359,9 +359,9 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
359
359
|
}
|
|
360
360
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
361
361
|
// and setting attributes through setAttribute etc, this is helpful
|
|
362
|
-
attributeChangedCallback(t,
|
|
362
|
+
attributeChangedCallback(t, r, n) {
|
|
363
363
|
var i;
|
|
364
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = yt(t,
|
|
364
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = yt(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
365
365
|
}
|
|
366
366
|
disconnectedCallback() {
|
|
367
367
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -370,16 +370,16 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
|
370
370
|
}
|
|
371
371
|
$$g_p(t) {
|
|
372
372
|
return Object.keys(this.$$p_d).find(
|
|
373
|
-
(
|
|
373
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
374
374
|
) || t;
|
|
375
375
|
}
|
|
376
376
|
});
|
|
377
|
-
function yt(e, t,
|
|
377
|
+
function yt(e, t, r, n) {
|
|
378
378
|
var o;
|
|
379
|
-
const i = (o =
|
|
380
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
379
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
380
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
381
381
|
return t;
|
|
382
|
-
if (
|
|
382
|
+
if (n === "toAttribute")
|
|
383
383
|
switch (i) {
|
|
384
384
|
case "Object":
|
|
385
385
|
case "Array":
|
|
@@ -404,10 +404,10 @@ function yt(e, t, n, r) {
|
|
|
404
404
|
return t;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function ai(e, t,
|
|
408
|
-
let a = class extends
|
|
407
|
+
function ai(e, t, r, n, i, o) {
|
|
408
|
+
let a = class extends rn {
|
|
409
409
|
constructor() {
|
|
410
|
-
super(e,
|
|
410
|
+
super(e, r, i), this.$$p_d = t;
|
|
411
411
|
}
|
|
412
412
|
static get observedAttributes() {
|
|
413
413
|
return Object.keys(t).map(
|
|
@@ -425,7 +425,7 @@ function ai(e, t, n, r, i, o) {
|
|
|
425
425
|
c = yt(s, c, t), this.$$d[s] = c, (u = this.$$c) == null || u.$set({ [s]: c });
|
|
426
426
|
}
|
|
427
427
|
});
|
|
428
|
-
}),
|
|
428
|
+
}), n.forEach((s) => {
|
|
429
429
|
Object.defineProperty(a.prototype, s, {
|
|
430
430
|
get() {
|
|
431
431
|
var c;
|
|
@@ -456,7 +456,7 @@ class si {
|
|
|
456
456
|
}
|
|
457
457
|
/** @returns {void} */
|
|
458
458
|
$destroy() {
|
|
459
|
-
|
|
459
|
+
ni(this, 1), this.$destroy = ve;
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -464,13 +464,13 @@ class si {
|
|
|
464
464
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
465
465
|
* @returns {() => void}
|
|
466
466
|
*/
|
|
467
|
-
$on(t,
|
|
468
|
-
if (!
|
|
467
|
+
$on(t, r) {
|
|
468
|
+
if (!mr(r))
|
|
469
469
|
return ve;
|
|
470
|
-
const
|
|
471
|
-
return
|
|
472
|
-
const i =
|
|
473
|
-
i !== -1 &&
|
|
470
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
471
|
+
return n.push(r), () => {
|
|
472
|
+
const i = n.indexOf(r);
|
|
473
|
+
i !== -1 && n.splice(i, 1);
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
@@ -478,31 +478,33 @@ class si {
|
|
|
478
478
|
* @returns {void}
|
|
479
479
|
*/
|
|
480
480
|
$set(t) {
|
|
481
|
-
this.$$set && !
|
|
481
|
+
this.$$set && !Gn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
const ui = "4";
|
|
485
485
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ui);
|
|
486
486
|
function li(e, t) {
|
|
487
487
|
if (e) {
|
|
488
|
-
const
|
|
489
|
-
|
|
488
|
+
const r = document.createElement("style");
|
|
489
|
+
r.innerHTML = t, e.appendChild(r);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
function ci(e, t) {
|
|
493
|
-
|
|
494
|
-
|
|
493
|
+
if (!e || !t)
|
|
494
|
+
return;
|
|
495
|
+
const r = new URL(t);
|
|
496
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
495
497
|
const i = document.createElement("style");
|
|
496
|
-
i.innerHTML =
|
|
497
|
-
}).catch((
|
|
498
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
498
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
499
|
+
}).catch((n) => {
|
|
500
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
499
501
|
});
|
|
500
502
|
}
|
|
501
|
-
function hi(e, t,
|
|
503
|
+
function hi(e, t, r) {
|
|
502
504
|
if (window.emMessageBus) {
|
|
503
|
-
const
|
|
505
|
+
const n = document.createElement("style");
|
|
504
506
|
window.emMessageBus.subscribe(t, (i) => {
|
|
505
|
-
|
|
507
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
506
508
|
});
|
|
507
509
|
}
|
|
508
510
|
}
|
|
@@ -513,12 +515,12 @@ function fi(e, t) {
|
|
|
513
515
|
};
|
|
514
516
|
}
|
|
515
517
|
function Tt(e, t = ve) {
|
|
516
|
-
let
|
|
517
|
-
const
|
|
518
|
+
let r;
|
|
519
|
+
const n = /* @__PURE__ */ new Set();
|
|
518
520
|
function i(s) {
|
|
519
|
-
if (
|
|
521
|
+
if (Kr(e, s) && (e = s, r)) {
|
|
520
522
|
const c = !Ve.length;
|
|
521
|
-
for (const u of
|
|
523
|
+
for (const u of n)
|
|
522
524
|
u[1](), Ve.push(u, e);
|
|
523
525
|
if (c) {
|
|
524
526
|
for (let u = 0; u < Ve.length; u += 2)
|
|
@@ -532,18 +534,18 @@ function Tt(e, t = ve) {
|
|
|
532
534
|
}
|
|
533
535
|
function a(s, c = ve) {
|
|
534
536
|
const u = [s, c];
|
|
535
|
-
return
|
|
536
|
-
|
|
537
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || ve), s(e), () => {
|
|
538
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
537
539
|
};
|
|
538
540
|
}
|
|
539
541
|
return { set: i, update: o, subscribe: a };
|
|
540
542
|
}
|
|
541
|
-
function Je(e, t,
|
|
542
|
-
const
|
|
543
|
+
function Je(e, t, r) {
|
|
544
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
543
545
|
if (!i.every(Boolean))
|
|
544
546
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
545
547
|
const o = t.length < 2;
|
|
546
|
-
return fi(
|
|
548
|
+
return fi(r, (a, s) => {
|
|
547
549
|
let c = !1;
|
|
548
550
|
const u = [];
|
|
549
551
|
let f = 0, m = ve;
|
|
@@ -551,10 +553,10 @@ function Je(e, t, n) {
|
|
|
551
553
|
if (f)
|
|
552
554
|
return;
|
|
553
555
|
m();
|
|
554
|
-
const v = t(
|
|
555
|
-
o ? a(v) : m =
|
|
556
|
+
const v = t(n ? u[0] : u, a, s);
|
|
557
|
+
o ? a(v) : m = mr(v) ? v : ve;
|
|
556
558
|
}, g = i.map(
|
|
557
|
-
(v, B) =>
|
|
559
|
+
(v, B) => en(
|
|
558
560
|
v,
|
|
559
561
|
(K) => {
|
|
560
562
|
u[B] = K, f &= ~(1 << B), c && d();
|
|
@@ -593,126 +595,126 @@ function Ei(e) {
|
|
|
593
595
|
function ct(e, t) {
|
|
594
596
|
return t.clone !== !1 && t.isMergeableObject(e) ? We(Ei(e), e, t) : e;
|
|
595
597
|
}
|
|
596
|
-
function xi(e, t,
|
|
597
|
-
return e.concat(t).map(function(
|
|
598
|
-
return ct(
|
|
598
|
+
function xi(e, t, r) {
|
|
599
|
+
return e.concat(t).map(function(n) {
|
|
600
|
+
return ct(n, r);
|
|
599
601
|
});
|
|
600
602
|
}
|
|
601
603
|
function wi(e, t) {
|
|
602
604
|
if (!t.customMerge)
|
|
603
605
|
return We;
|
|
604
|
-
var
|
|
605
|
-
return typeof
|
|
606
|
+
var r = t.customMerge(e);
|
|
607
|
+
return typeof r == "function" ? r : We;
|
|
606
608
|
}
|
|
607
609
|
function Si(e) {
|
|
608
610
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
609
611
|
return Object.propertyIsEnumerable.call(e, t);
|
|
610
612
|
}) : [];
|
|
611
613
|
}
|
|
612
|
-
function
|
|
614
|
+
function wr(e) {
|
|
613
615
|
return Object.keys(e).concat(Si(e));
|
|
614
616
|
}
|
|
615
|
-
function
|
|
617
|
+
function nn(e, t) {
|
|
616
618
|
try {
|
|
617
619
|
return t in e;
|
|
618
|
-
} catch (
|
|
620
|
+
} catch (r) {
|
|
619
621
|
return !1;
|
|
620
622
|
}
|
|
621
623
|
}
|
|
622
624
|
function Bi(e, t) {
|
|
623
|
-
return
|
|
625
|
+
return nn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
624
626
|
}
|
|
625
|
-
function Ti(e, t,
|
|
626
|
-
var
|
|
627
|
-
return
|
|
628
|
-
|
|
629
|
-
}),
|
|
630
|
-
Bi(e, i) || (
|
|
631
|
-
}),
|
|
632
|
-
}
|
|
633
|
-
function We(e, t,
|
|
634
|
-
|
|
635
|
-
var
|
|
636
|
-
return o ?
|
|
637
|
-
}
|
|
638
|
-
We.all = function(t,
|
|
627
|
+
function Ti(e, t, r) {
|
|
628
|
+
var n = {};
|
|
629
|
+
return r.isMergeableObject(e) && wr(e).forEach(function(i) {
|
|
630
|
+
n[i] = ct(e[i], r);
|
|
631
|
+
}), wr(t).forEach(function(i) {
|
|
632
|
+
Bi(e, i) || (nn(e, i) && r.isMergeableObject(t[i]) ? n[i] = wi(i, r)(e[i], t[i], r) : n[i] = ct(t[i], r));
|
|
633
|
+
}), n;
|
|
634
|
+
}
|
|
635
|
+
function We(e, t, r) {
|
|
636
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || xi, r.isMergeableObject = r.isMergeableObject || mi, r.cloneUnlessOtherwiseSpecified = ct;
|
|
637
|
+
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
638
|
+
return o ? n ? r.arrayMerge(e, t, r) : Ti(e, t, r) : ct(t, r);
|
|
639
|
+
}
|
|
640
|
+
We.all = function(t, r) {
|
|
639
641
|
if (!Array.isArray(t))
|
|
640
642
|
throw new Error("first argument should be an array");
|
|
641
|
-
return t.reduce(function(
|
|
642
|
-
return We(
|
|
643
|
+
return t.reduce(function(n, i) {
|
|
644
|
+
return We(n, i, r);
|
|
643
645
|
}, {});
|
|
644
646
|
};
|
|
645
647
|
var Ai = We, Ci = Ai;
|
|
646
648
|
const Hi = /* @__PURE__ */ pi(Ci);
|
|
647
649
|
var Kt = function(e, t) {
|
|
648
|
-
return Kt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
649
|
-
|
|
650
|
-
} || function(
|
|
651
|
-
for (var i in
|
|
652
|
-
Object.prototype.hasOwnProperty.call(
|
|
650
|
+
return Kt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
651
|
+
r.__proto__ = n;
|
|
652
|
+
} || function(r, n) {
|
|
653
|
+
for (var i in n)
|
|
654
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
653
655
|
}, Kt(e, t);
|
|
654
656
|
};
|
|
655
657
|
function At(e, t) {
|
|
656
658
|
if (typeof t != "function" && t !== null)
|
|
657
659
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
658
660
|
Kt(e, t);
|
|
659
|
-
function
|
|
661
|
+
function r() {
|
|
660
662
|
this.constructor = e;
|
|
661
663
|
}
|
|
662
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
664
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
663
665
|
}
|
|
664
666
|
var Se = function() {
|
|
665
667
|
return Se = Object.assign || function(t) {
|
|
666
|
-
for (var
|
|
667
|
-
|
|
668
|
-
for (var o in
|
|
669
|
-
Object.prototype.hasOwnProperty.call(
|
|
668
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
669
|
+
r = arguments[n];
|
|
670
|
+
for (var o in r)
|
|
671
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
670
672
|
}
|
|
671
673
|
return t;
|
|
672
674
|
}, Se.apply(this, arguments);
|
|
673
675
|
};
|
|
674
676
|
function Oi(e, t) {
|
|
675
|
-
var
|
|
676
|
-
for (var
|
|
677
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
677
|
+
var r = {};
|
|
678
|
+
for (var n in e)
|
|
679
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
678
680
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
679
|
-
for (var i = 0,
|
|
680
|
-
t.indexOf(
|
|
681
|
-
return
|
|
681
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
682
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
683
|
+
return r;
|
|
682
684
|
}
|
|
683
|
-
function $t(e, t,
|
|
684
|
-
if (
|
|
685
|
-
for (var
|
|
686
|
-
(o || !(
|
|
685
|
+
function $t(e, t, r) {
|
|
686
|
+
if (r || arguments.length === 2)
|
|
687
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
688
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
687
689
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
688
690
|
}
|
|
689
691
|
function Vt(e, t) {
|
|
690
|
-
var
|
|
692
|
+
var r = t && t.cache ? t.cache : Di, n = t && t.serializer ? t.serializer : Ni, i = t && t.strategy ? t.strategy : Mi;
|
|
691
693
|
return i(e, {
|
|
692
|
-
cache:
|
|
693
|
-
serializer:
|
|
694
|
+
cache: r,
|
|
695
|
+
serializer: n
|
|
694
696
|
});
|
|
695
697
|
}
|
|
696
698
|
function Li(e) {
|
|
697
699
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
698
700
|
}
|
|
699
|
-
function Ri(e, t,
|
|
700
|
-
var i = Li(
|
|
701
|
-
return typeof o == "undefined" && (o = e.call(this,
|
|
701
|
+
function Ri(e, t, r, n) {
|
|
702
|
+
var i = Li(n) ? n : r(n), o = t.get(i);
|
|
703
|
+
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
702
704
|
}
|
|
703
|
-
function
|
|
704
|
-
var
|
|
705
|
-
return typeof o == "undefined" && (o = e.apply(this,
|
|
705
|
+
function on(e, t, r) {
|
|
706
|
+
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
707
|
+
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
706
708
|
}
|
|
707
|
-
function
|
|
708
|
-
return
|
|
709
|
+
function an(e, t, r, n, i) {
|
|
710
|
+
return r.bind(t, e, n, i);
|
|
709
711
|
}
|
|
710
712
|
function Mi(e, t) {
|
|
711
|
-
var
|
|
712
|
-
return
|
|
713
|
+
var r = e.length === 1 ? Ri : on;
|
|
714
|
+
return an(e, this, r, t.cache.create(), t.serializer);
|
|
713
715
|
}
|
|
714
716
|
function Pi(e, t) {
|
|
715
|
-
return
|
|
717
|
+
return an(e, this, on, t.cache.create(), t.serializer);
|
|
716
718
|
}
|
|
717
719
|
var Ni = function() {
|
|
718
720
|
return JSON.stringify(arguments);
|
|
@@ -724,8 +726,8 @@ var Ni = function() {
|
|
|
724
726
|
}
|
|
725
727
|
return e.prototype.get = function(t) {
|
|
726
728
|
return this.cache[t];
|
|
727
|
-
}, e.prototype.set = function(t,
|
|
728
|
-
this.cache[t] =
|
|
729
|
+
}, e.prototype.set = function(t, r) {
|
|
730
|
+
this.cache[t] = r;
|
|
729
731
|
}, e;
|
|
730
732
|
}()
|
|
731
733
|
), Di = {
|
|
@@ -736,10 +738,10 @@ var Ni = function() {
|
|
|
736
738
|
variadic: Pi
|
|
737
739
|
}, wt = function() {
|
|
738
740
|
return wt = Object.assign || function(t) {
|
|
739
|
-
for (var
|
|
740
|
-
|
|
741
|
-
for (var o in
|
|
742
|
-
Object.prototype.hasOwnProperty.call(
|
|
741
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
742
|
+
r = arguments[n];
|
|
743
|
+
for (var o in r)
|
|
744
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
743
745
|
}
|
|
744
746
|
return t;
|
|
745
747
|
}, wt.apply(this, arguments);
|
|
@@ -756,50 +758,50 @@ var Ze;
|
|
|
756
758
|
(function(e) {
|
|
757
759
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
758
760
|
})(Ze || (Ze = {}));
|
|
759
|
-
function
|
|
761
|
+
function Sr(e) {
|
|
760
762
|
return e.type === V.literal;
|
|
761
763
|
}
|
|
762
764
|
function Ui(e) {
|
|
763
765
|
return e.type === V.argument;
|
|
764
766
|
}
|
|
765
|
-
function
|
|
767
|
+
function sn(e) {
|
|
766
768
|
return e.type === V.number;
|
|
767
769
|
}
|
|
768
|
-
function
|
|
770
|
+
function un(e) {
|
|
769
771
|
return e.type === V.date;
|
|
770
772
|
}
|
|
771
|
-
function
|
|
773
|
+
function ln(e) {
|
|
772
774
|
return e.type === V.time;
|
|
773
775
|
}
|
|
774
|
-
function
|
|
776
|
+
function cn(e) {
|
|
775
777
|
return e.type === V.select;
|
|
776
778
|
}
|
|
777
|
-
function
|
|
779
|
+
function hn(e) {
|
|
778
780
|
return e.type === V.plural;
|
|
779
781
|
}
|
|
780
782
|
function Fi(e) {
|
|
781
783
|
return e.type === V.pound;
|
|
782
784
|
}
|
|
783
|
-
function
|
|
785
|
+
function fn(e) {
|
|
784
786
|
return e.type === V.tag;
|
|
785
787
|
}
|
|
786
|
-
function
|
|
788
|
+
function dn(e) {
|
|
787
789
|
return !!(e && typeof e == "object" && e.type === Ze.number);
|
|
788
790
|
}
|
|
789
|
-
function
|
|
791
|
+
function er(e) {
|
|
790
792
|
return !!(e && typeof e == "object" && e.type === Ze.dateTime);
|
|
791
793
|
}
|
|
792
|
-
var
|
|
794
|
+
var pn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
793
795
|
function ji(e) {
|
|
794
796
|
var t = {};
|
|
795
|
-
return e.replace(Gi, function(
|
|
796
|
-
var
|
|
797
|
-
switch (
|
|
797
|
+
return e.replace(Gi, function(r) {
|
|
798
|
+
var n = r.length;
|
|
799
|
+
switch (r[0]) {
|
|
798
800
|
case "G":
|
|
799
|
-
t.era =
|
|
801
|
+
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
800
802
|
break;
|
|
801
803
|
case "y":
|
|
802
|
-
t.year =
|
|
804
|
+
t.year = n === 2 ? "2-digit" : "numeric";
|
|
803
805
|
break;
|
|
804
806
|
case "Y":
|
|
805
807
|
case "u":
|
|
@@ -811,30 +813,30 @@ function ji(e) {
|
|
|
811
813
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
812
814
|
case "M":
|
|
813
815
|
case "L":
|
|
814
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
816
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
|
|
815
817
|
break;
|
|
816
818
|
case "w":
|
|
817
819
|
case "W":
|
|
818
820
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
819
821
|
case "d":
|
|
820
|
-
t.day = ["numeric", "2-digit"][
|
|
822
|
+
t.day = ["numeric", "2-digit"][n - 1];
|
|
821
823
|
break;
|
|
822
824
|
case "D":
|
|
823
825
|
case "F":
|
|
824
826
|
case "g":
|
|
825
827
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
826
828
|
case "E":
|
|
827
|
-
t.weekday =
|
|
829
|
+
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
828
830
|
break;
|
|
829
831
|
case "e":
|
|
830
|
-
if (
|
|
832
|
+
if (n < 4)
|
|
831
833
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
832
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
834
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
833
835
|
break;
|
|
834
836
|
case "c":
|
|
835
|
-
if (
|
|
837
|
+
if (n < 4)
|
|
836
838
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
837
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
839
|
+
t.weekday = ["short", "long", "narrow", "short"][n - 4];
|
|
838
840
|
break;
|
|
839
841
|
case "a":
|
|
840
842
|
t.hour12 = !0;
|
|
@@ -843,32 +845,32 @@ function ji(e) {
|
|
|
843
845
|
case "B":
|
|
844
846
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
845
847
|
case "h":
|
|
846
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
848
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
847
849
|
break;
|
|
848
850
|
case "H":
|
|
849
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
851
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
850
852
|
break;
|
|
851
853
|
case "K":
|
|
852
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
854
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
853
855
|
break;
|
|
854
856
|
case "k":
|
|
855
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
857
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
856
858
|
break;
|
|
857
859
|
case "j":
|
|
858
860
|
case "J":
|
|
859
861
|
case "C":
|
|
860
862
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
861
863
|
case "m":
|
|
862
|
-
t.minute = ["numeric", "2-digit"][
|
|
864
|
+
t.minute = ["numeric", "2-digit"][n - 1];
|
|
863
865
|
break;
|
|
864
866
|
case "s":
|
|
865
|
-
t.second = ["numeric", "2-digit"][
|
|
867
|
+
t.second = ["numeric", "2-digit"][n - 1];
|
|
866
868
|
break;
|
|
867
869
|
case "S":
|
|
868
870
|
case "A":
|
|
869
871
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
870
872
|
case "z":
|
|
871
|
-
t.timeZoneName =
|
|
873
|
+
t.timeZoneName = n < 4 ? "short" : "long";
|
|
872
874
|
break;
|
|
873
875
|
case "Z":
|
|
874
876
|
case "O":
|
|
@@ -883,10 +885,10 @@ function ji(e) {
|
|
|
883
885
|
}
|
|
884
886
|
var q = function() {
|
|
885
887
|
return q = Object.assign || function(t) {
|
|
886
|
-
for (var
|
|
887
|
-
|
|
888
|
-
for (var o in
|
|
889
|
-
Object.prototype.hasOwnProperty.call(
|
|
888
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
889
|
+
r = arguments[n];
|
|
890
|
+
for (var o in r)
|
|
891
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
890
892
|
}
|
|
891
893
|
return t;
|
|
892
894
|
}, q.apply(this, arguments);
|
|
@@ -897,8 +899,8 @@ function $i(e) {
|
|
|
897
899
|
throw new Error("Number skeleton cannot be empty");
|
|
898
900
|
for (var t = e.split(ki).filter(function(d) {
|
|
899
901
|
return d.length > 0;
|
|
900
|
-
}),
|
|
901
|
-
var o = i[
|
|
902
|
+
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
903
|
+
var o = i[n], a = o.split("/");
|
|
902
904
|
if (a.length === 0)
|
|
903
905
|
throw new Error("Invalid number skeleton");
|
|
904
906
|
for (var s = a[0], c = a.slice(1), u = 0, f = c; u < f.length; u++) {
|
|
@@ -906,21 +908,21 @@ function $i(e) {
|
|
|
906
908
|
if (m.length === 0)
|
|
907
909
|
throw new Error("Invalid number skeleton");
|
|
908
910
|
}
|
|
909
|
-
|
|
911
|
+
r.push({ stem: s, options: c });
|
|
910
912
|
}
|
|
911
|
-
return
|
|
913
|
+
return r;
|
|
912
914
|
}
|
|
913
915
|
function Vi(e) {
|
|
914
916
|
return e.replace(/^(.*?)-/, "");
|
|
915
917
|
}
|
|
916
|
-
var
|
|
917
|
-
function
|
|
918
|
+
var Br = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mn = /^(@+)?(\+|#+)?[rs]?$/g, Xi = /(\*)(0+)|(#+)(0+)|(0+)/g, bn = /^(0+)$/;
|
|
919
|
+
function Tr(e) {
|
|
918
920
|
var t = {};
|
|
919
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
920
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
921
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mn, function(r, n, i) {
|
|
922
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
921
923
|
}), t;
|
|
922
924
|
}
|
|
923
|
-
function
|
|
925
|
+
function gn(e) {
|
|
924
926
|
switch (e) {
|
|
925
927
|
case "sign-auto":
|
|
926
928
|
return {
|
|
@@ -967,20 +969,20 @@ function zi(e) {
|
|
|
967
969
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
968
970
|
notation: "scientific"
|
|
969
971
|
}, e = e.slice(1)), t) {
|
|
970
|
-
var
|
|
971
|
-
if (
|
|
972
|
+
var r = e.slice(0, 2);
|
|
973
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !bn.test(e))
|
|
972
974
|
throw new Error("Malformed concise eng/scientific notation");
|
|
973
975
|
t.minimumIntegerDigits = e.length;
|
|
974
976
|
}
|
|
975
977
|
return t;
|
|
976
978
|
}
|
|
977
|
-
function
|
|
978
|
-
var t = {},
|
|
979
|
-
return
|
|
979
|
+
function Ar(e) {
|
|
980
|
+
var t = {}, r = gn(e);
|
|
981
|
+
return r || t;
|
|
980
982
|
}
|
|
981
983
|
function Wi(e) {
|
|
982
|
-
for (var t = {},
|
|
983
|
-
var i = r
|
|
984
|
+
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
985
|
+
var i = n[r];
|
|
984
986
|
switch (i.stem) {
|
|
985
987
|
case "percent":
|
|
986
988
|
case "%":
|
|
@@ -1014,12 +1016,12 @@ function Wi(e) {
|
|
|
1014
1016
|
continue;
|
|
1015
1017
|
case "scientific":
|
|
1016
1018
|
t = q(q(q({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
1017
|
-
return q(q({}, c),
|
|
1019
|
+
return q(q({}, c), Ar(u));
|
|
1018
1020
|
}, {}));
|
|
1019
1021
|
continue;
|
|
1020
1022
|
case "engineering":
|
|
1021
1023
|
t = q(q(q({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
1022
|
-
return q(q({}, c),
|
|
1024
|
+
return q(q({}, c), Ar(u));
|
|
1023
1025
|
}, {}));
|
|
1024
1026
|
continue;
|
|
1025
1027
|
case "notation-simple":
|
|
@@ -1077,25 +1079,25 @@ function Wi(e) {
|
|
|
1077
1079
|
});
|
|
1078
1080
|
continue;
|
|
1079
1081
|
}
|
|
1080
|
-
if (
|
|
1082
|
+
if (bn.test(i.stem)) {
|
|
1081
1083
|
t.minimumIntegerDigits = i.stem.length;
|
|
1082
1084
|
continue;
|
|
1083
1085
|
}
|
|
1084
|
-
if (
|
|
1086
|
+
if (Br.test(i.stem)) {
|
|
1085
1087
|
if (i.options.length > 1)
|
|
1086
1088
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1087
|
-
i.stem.replace(
|
|
1089
|
+
i.stem.replace(Br, function(c, u, f, m, d, g) {
|
|
1088
1090
|
return f === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : d && g ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1089
1091
|
});
|
|
1090
1092
|
var o = i.options[0];
|
|
1091
|
-
o === "w" ? t = q(q({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = q(q({}, t),
|
|
1093
|
+
o === "w" ? t = q(q({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = q(q({}, t), Tr(o)));
|
|
1092
1094
|
continue;
|
|
1093
1095
|
}
|
|
1094
|
-
if (
|
|
1095
|
-
t = q(q({}, t),
|
|
1096
|
+
if (mn.test(i.stem)) {
|
|
1097
|
+
t = q(q({}, t), Tr(i.stem));
|
|
1096
1098
|
continue;
|
|
1097
1099
|
}
|
|
1098
|
-
var a =
|
|
1100
|
+
var a = gn(i.stem);
|
|
1099
1101
|
a && (t = q(q({}, t), a));
|
|
1100
1102
|
var s = zi(i.stem);
|
|
1101
1103
|
s && (t = q(q({}, t), s));
|
|
@@ -2518,20 +2520,20 @@ var bt = {
|
|
|
2518
2520
|
]
|
|
2519
2521
|
};
|
|
2520
2522
|
function Zi(e, t) {
|
|
2521
|
-
for (var
|
|
2522
|
-
var i = e.charAt(
|
|
2523
|
+
for (var r = "", n = 0; n < e.length; n++) {
|
|
2524
|
+
var i = e.charAt(n);
|
|
2523
2525
|
if (i === "j") {
|
|
2524
|
-
for (var o = 0;
|
|
2525
|
-
o++,
|
|
2526
|
+
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2527
|
+
o++, n++;
|
|
2526
2528
|
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = qi(t);
|
|
2527
2529
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2528
|
-
|
|
2530
|
+
r += c;
|
|
2529
2531
|
for (; a-- > 0; )
|
|
2530
|
-
|
|
2532
|
+
r = u + r;
|
|
2531
2533
|
} else
|
|
2532
|
-
i === "J" ?
|
|
2534
|
+
i === "J" ? r += "H" : r += i;
|
|
2533
2535
|
}
|
|
2534
|
-
return
|
|
2536
|
+
return r;
|
|
2535
2537
|
}
|
|
2536
2538
|
function qi(e) {
|
|
2537
2539
|
var t = e.hourCycle;
|
|
@@ -2550,73 +2552,73 @@ function qi(e) {
|
|
|
2550
2552
|
default:
|
|
2551
2553
|
throw new Error("Invalid hourCycle");
|
|
2552
2554
|
}
|
|
2553
|
-
var
|
|
2554
|
-
|
|
2555
|
-
var i = bt[
|
|
2555
|
+
var r = e.language, n;
|
|
2556
|
+
r !== "root" && (n = e.maximize().region);
|
|
2557
|
+
var i = bt[n || ""] || bt[r || ""] || bt["".concat(r, "-001")] || bt["001"];
|
|
2556
2558
|
return i[0];
|
|
2557
2559
|
}
|
|
2558
|
-
var zt, Yi = new RegExp("^".concat(
|
|
2560
|
+
var zt, Yi = new RegExp("^".concat(pn.source, "*")), Qi = new RegExp("".concat(pn.source, "*$"));
|
|
2559
2561
|
function N(e, t) {
|
|
2560
2562
|
return { start: e, end: t };
|
|
2561
2563
|
}
|
|
2562
|
-
var Ji = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ki = !!String.fromCodePoint, eo = !!Object.fromEntries, to = !!String.prototype.codePointAt,
|
|
2564
|
+
var Ji = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ki = !!String.fromCodePoint, eo = !!Object.fromEntries, to = !!String.prototype.codePointAt, ro = !!String.prototype.trimStart, no = !!String.prototype.trimEnd, io = !!Number.isSafeInteger, oo = io ? Number.isSafeInteger : function(e) {
|
|
2563
2565
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2564
|
-
},
|
|
2566
|
+
}, tr = !0;
|
|
2565
2567
|
try {
|
|
2566
|
-
var ao =
|
|
2567
|
-
|
|
2568
|
+
var ao = vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2569
|
+
tr = ((zt = ao.exec("a")) === null || zt === void 0 ? void 0 : zt[0]) === "a";
|
|
2568
2570
|
} catch (e) {
|
|
2569
|
-
|
|
2571
|
+
tr = !1;
|
|
2570
2572
|
}
|
|
2571
|
-
var
|
|
2573
|
+
var Cr = Ji ? (
|
|
2572
2574
|
// Native
|
|
2573
|
-
function(t,
|
|
2574
|
-
return t.startsWith(
|
|
2575
|
+
function(t, r, n) {
|
|
2576
|
+
return t.startsWith(r, n);
|
|
2575
2577
|
}
|
|
2576
2578
|
) : (
|
|
2577
2579
|
// For IE11
|
|
2578
|
-
function(t,
|
|
2579
|
-
return t.slice(
|
|
2580
|
+
function(t, r, n) {
|
|
2581
|
+
return t.slice(n, n + r.length) === r;
|
|
2580
2582
|
}
|
|
2581
|
-
),
|
|
2583
|
+
), rr = Ki ? String.fromCodePoint : (
|
|
2582
2584
|
// IE11
|
|
2583
2585
|
function() {
|
|
2584
|
-
for (var t = [],
|
|
2585
|
-
t[
|
|
2586
|
-
for (var
|
|
2586
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2587
|
+
t[r] = arguments[r];
|
|
2588
|
+
for (var n = "", i = t.length, o = 0, a; i > o; ) {
|
|
2587
2589
|
if (a = t[o++], a > 1114111)
|
|
2588
2590
|
throw RangeError(a + " is not a valid code point");
|
|
2589
|
-
|
|
2591
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2590
2592
|
}
|
|
2591
|
-
return
|
|
2593
|
+
return n;
|
|
2592
2594
|
}
|
|
2593
|
-
),
|
|
2595
|
+
), Hr = (
|
|
2594
2596
|
// native
|
|
2595
2597
|
eo ? Object.fromEntries : (
|
|
2596
2598
|
// Ponyfill
|
|
2597
2599
|
function(t) {
|
|
2598
|
-
for (var
|
|
2599
|
-
var o = i[
|
|
2600
|
-
|
|
2600
|
+
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2601
|
+
var o = i[n], a = o[0], s = o[1];
|
|
2602
|
+
r[a] = s;
|
|
2601
2603
|
}
|
|
2602
|
-
return
|
|
2604
|
+
return r;
|
|
2603
2605
|
}
|
|
2604
2606
|
)
|
|
2605
|
-
),
|
|
2607
|
+
), yn = to ? (
|
|
2606
2608
|
// Native
|
|
2607
|
-
function(t,
|
|
2608
|
-
return t.codePointAt(
|
|
2609
|
+
function(t, r) {
|
|
2610
|
+
return t.codePointAt(r);
|
|
2609
2611
|
}
|
|
2610
2612
|
) : (
|
|
2611
2613
|
// IE 11
|
|
2612
|
-
function(t,
|
|
2613
|
-
var
|
|
2614
|
-
if (!(
|
|
2615
|
-
var i = t.charCodeAt(
|
|
2616
|
-
return i < 55296 || i > 56319 ||
|
|
2614
|
+
function(t, r) {
|
|
2615
|
+
var n = t.length;
|
|
2616
|
+
if (!(r < 0 || r >= n)) {
|
|
2617
|
+
var i = t.charCodeAt(r), o;
|
|
2618
|
+
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2617
2619
|
}
|
|
2618
2620
|
}
|
|
2619
|
-
), so =
|
|
2621
|
+
), so = ro ? (
|
|
2620
2622
|
// Native
|
|
2621
2623
|
function(t) {
|
|
2622
2624
|
return t.trimStart();
|
|
@@ -2626,7 +2628,7 @@ var Hn = Ji ? (
|
|
|
2626
2628
|
function(t) {
|
|
2627
2629
|
return t.replace(Yi, "");
|
|
2628
2630
|
}
|
|
2629
|
-
), uo =
|
|
2631
|
+
), uo = no ? (
|
|
2630
2632
|
// Native
|
|
2631
2633
|
function(t) {
|
|
2632
2634
|
return t.trimEnd();
|
|
@@ -2637,66 +2639,66 @@ var Hn = Ji ? (
|
|
|
2637
2639
|
return t.replace(Qi, "");
|
|
2638
2640
|
}
|
|
2639
2641
|
);
|
|
2640
|
-
function
|
|
2642
|
+
function vn(e, t) {
|
|
2641
2643
|
return new RegExp(e, t);
|
|
2642
2644
|
}
|
|
2643
|
-
var
|
|
2644
|
-
if (
|
|
2645
|
-
var
|
|
2646
|
-
|
|
2647
|
-
var
|
|
2648
|
-
|
|
2649
|
-
var i =
|
|
2650
|
-
return (
|
|
2645
|
+
var nr;
|
|
2646
|
+
if (tr) {
|
|
2647
|
+
var Or = vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2648
|
+
nr = function(t, r) {
|
|
2649
|
+
var n;
|
|
2650
|
+
Or.lastIndex = r;
|
|
2651
|
+
var i = Or.exec(t);
|
|
2652
|
+
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2651
2653
|
};
|
|
2652
2654
|
} else
|
|
2653
|
-
|
|
2654
|
-
for (var
|
|
2655
|
-
var i =
|
|
2656
|
-
if (i === void 0 ||
|
|
2655
|
+
nr = function(t, r) {
|
|
2656
|
+
for (var n = []; ; ) {
|
|
2657
|
+
var i = yn(t, r);
|
|
2658
|
+
if (i === void 0 || _n(i) || fo(i))
|
|
2657
2659
|
break;
|
|
2658
|
-
|
|
2660
|
+
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2659
2661
|
}
|
|
2660
|
-
return
|
|
2662
|
+
return rr.apply(void 0, n);
|
|
2661
2663
|
};
|
|
2662
2664
|
var lo = (
|
|
2663
2665
|
/** @class */
|
|
2664
2666
|
function() {
|
|
2665
|
-
function e(t,
|
|
2666
|
-
|
|
2667
|
+
function e(t, r) {
|
|
2668
|
+
r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
|
|
2667
2669
|
}
|
|
2668
2670
|
return e.prototype.parse = function() {
|
|
2669
2671
|
if (this.offset() !== 0)
|
|
2670
2672
|
throw Error("parser can only be used once");
|
|
2671
2673
|
return this.parseMessage(0, "", !1);
|
|
2672
|
-
}, e.prototype.parseMessage = function(t,
|
|
2674
|
+
}, e.prototype.parseMessage = function(t, r, n) {
|
|
2673
2675
|
for (var i = []; !this.isEOF(); ) {
|
|
2674
2676
|
var o = this.char();
|
|
2675
2677
|
if (o === 123) {
|
|
2676
|
-
var a = this.parseArgument(t,
|
|
2678
|
+
var a = this.parseArgument(t, n);
|
|
2677
2679
|
if (a.err)
|
|
2678
2680
|
return a;
|
|
2679
2681
|
i.push(a.val);
|
|
2680
2682
|
} else {
|
|
2681
2683
|
if (o === 125 && t > 0)
|
|
2682
2684
|
break;
|
|
2683
|
-
if (o === 35 && (
|
|
2685
|
+
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2684
2686
|
var s = this.clonePosition();
|
|
2685
2687
|
this.bump(), i.push({
|
|
2686
2688
|
type: V.pound,
|
|
2687
2689
|
location: N(s, this.clonePosition())
|
|
2688
2690
|
});
|
|
2689
2691
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2690
|
-
if (
|
|
2692
|
+
if (n)
|
|
2691
2693
|
break;
|
|
2692
2694
|
return this.error(R.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
2693
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2694
|
-
var a = this.parseTag(t,
|
|
2695
|
+
} else if (o === 60 && !this.ignoreTag && ir(this.peek() || 0)) {
|
|
2696
|
+
var a = this.parseTag(t, r);
|
|
2695
2697
|
if (a.err)
|
|
2696
2698
|
return a;
|
|
2697
2699
|
i.push(a.val);
|
|
2698
2700
|
} else {
|
|
2699
|
-
var a = this.parseLiteral(t,
|
|
2701
|
+
var a = this.parseLiteral(t, r);
|
|
2700
2702
|
if (a.err)
|
|
2701
2703
|
return a;
|
|
2702
2704
|
i.push(a.val);
|
|
@@ -2704,8 +2706,8 @@ var lo = (
|
|
|
2704
2706
|
}
|
|
2705
2707
|
}
|
|
2706
2708
|
return { val: i, err: null };
|
|
2707
|
-
}, e.prototype.parseTag = function(t,
|
|
2708
|
-
var
|
|
2709
|
+
}, e.prototype.parseTag = function(t, r) {
|
|
2710
|
+
var n = this.clonePosition();
|
|
2709
2711
|
this.bump();
|
|
2710
2712
|
var i = this.parseTagName();
|
|
2711
2713
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -2713,17 +2715,17 @@ var lo = (
|
|
|
2713
2715
|
val: {
|
|
2714
2716
|
type: V.literal,
|
|
2715
2717
|
value: "<".concat(i, "/>"),
|
|
2716
|
-
location: N(
|
|
2718
|
+
location: N(n, this.clonePosition())
|
|
2717
2719
|
},
|
|
2718
2720
|
err: null
|
|
2719
2721
|
};
|
|
2720
2722
|
if (this.bumpIf(">")) {
|
|
2721
|
-
var o = this.parseMessage(t + 1,
|
|
2723
|
+
var o = this.parseMessage(t + 1, r, !0);
|
|
2722
2724
|
if (o.err)
|
|
2723
2725
|
return o;
|
|
2724
2726
|
var a = o.val, s = this.clonePosition();
|
|
2725
2727
|
if (this.bumpIf("</")) {
|
|
2726
|
-
if (this.isEOF() || !
|
|
2728
|
+
if (this.isEOF() || !ir(this.char()))
|
|
2727
2729
|
return this.error(R.INVALID_TAG, N(s, this.clonePosition()));
|
|
2728
2730
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2729
2731
|
return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, N(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2731,27 +2733,27 @@ var lo = (
|
|
|
2731
2733
|
type: V.tag,
|
|
2732
2734
|
value: i,
|
|
2733
2735
|
children: a,
|
|
2734
|
-
location: N(
|
|
2736
|
+
location: N(n, this.clonePosition())
|
|
2735
2737
|
},
|
|
2736
2738
|
err: null
|
|
2737
2739
|
} : this.error(R.INVALID_TAG, N(s, this.clonePosition())));
|
|
2738
2740
|
} else
|
|
2739
|
-
return this.error(R.UNCLOSED_TAG, N(
|
|
2741
|
+
return this.error(R.UNCLOSED_TAG, N(n, this.clonePosition()));
|
|
2740
2742
|
} else
|
|
2741
|
-
return this.error(R.INVALID_TAG, N(
|
|
2743
|
+
return this.error(R.INVALID_TAG, N(n, this.clonePosition()));
|
|
2742
2744
|
}, e.prototype.parseTagName = function() {
|
|
2743
2745
|
var t = this.offset();
|
|
2744
2746
|
for (this.bump(); !this.isEOF() && ho(this.char()); )
|
|
2745
2747
|
this.bump();
|
|
2746
2748
|
return this.message.slice(t, this.offset());
|
|
2747
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2748
|
-
for (var
|
|
2749
|
-
var o = this.tryParseQuote(
|
|
2749
|
+
}, e.prototype.parseLiteral = function(t, r) {
|
|
2750
|
+
for (var n = this.clonePosition(), i = ""; ; ) {
|
|
2751
|
+
var o = this.tryParseQuote(r);
|
|
2750
2752
|
if (o) {
|
|
2751
2753
|
i += o;
|
|
2752
2754
|
continue;
|
|
2753
2755
|
}
|
|
2754
|
-
var a = this.tryParseUnquoted(t,
|
|
2756
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2755
2757
|
if (a) {
|
|
2756
2758
|
i += a;
|
|
2757
2759
|
continue;
|
|
@@ -2763,7 +2765,7 @@ var lo = (
|
|
|
2763
2765
|
}
|
|
2764
2766
|
break;
|
|
2765
2767
|
}
|
|
2766
|
-
var c = N(
|
|
2768
|
+
var c = N(n, this.clonePosition());
|
|
2767
2769
|
return {
|
|
2768
2770
|
val: { type: V.literal, value: i, location: c },
|
|
2769
2771
|
err: null
|
|
@@ -2790,37 +2792,37 @@ var lo = (
|
|
|
2790
2792
|
return null;
|
|
2791
2793
|
}
|
|
2792
2794
|
this.bump();
|
|
2793
|
-
var
|
|
2795
|
+
var r = [this.char()];
|
|
2794
2796
|
for (this.bump(); !this.isEOF(); ) {
|
|
2795
|
-
var
|
|
2796
|
-
if (
|
|
2797
|
+
var n = this.char();
|
|
2798
|
+
if (n === 39)
|
|
2797
2799
|
if (this.peek() === 39)
|
|
2798
|
-
|
|
2800
|
+
r.push(39), this.bump();
|
|
2799
2801
|
else {
|
|
2800
2802
|
this.bump();
|
|
2801
2803
|
break;
|
|
2802
2804
|
}
|
|
2803
2805
|
else
|
|
2804
|
-
|
|
2806
|
+
r.push(n);
|
|
2805
2807
|
this.bump();
|
|
2806
2808
|
}
|
|
2807
|
-
return
|
|
2808
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2809
|
+
return rr.apply(void 0, r);
|
|
2810
|
+
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2809
2811
|
if (this.isEOF())
|
|
2810
2812
|
return null;
|
|
2811
|
-
var
|
|
2812
|
-
return
|
|
2813
|
-
}, e.prototype.parseArgument = function(t,
|
|
2814
|
-
var
|
|
2813
|
+
var n = this.char();
|
|
2814
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), rr(n));
|
|
2815
|
+
}, e.prototype.parseArgument = function(t, r) {
|
|
2816
|
+
var n = this.clonePosition();
|
|
2815
2817
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2816
|
-
return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(
|
|
2818
|
+
return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
|
|
2817
2819
|
if (this.char() === 125)
|
|
2818
|
-
return this.bump(), this.error(R.EMPTY_ARGUMENT, N(
|
|
2820
|
+
return this.bump(), this.error(R.EMPTY_ARGUMENT, N(n, this.clonePosition()));
|
|
2819
2821
|
var i = this.parseIdentifierIfPossible().value;
|
|
2820
2822
|
if (!i)
|
|
2821
|
-
return this.error(R.MALFORMED_ARGUMENT, N(
|
|
2823
|
+
return this.error(R.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
2822
2824
|
if (this.bumpSpace(), this.isEOF())
|
|
2823
|
-
return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(
|
|
2825
|
+
return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition()));
|
|
2824
2826
|
switch (this.char()) {
|
|
2825
2827
|
case 125:
|
|
2826
2828
|
return this.bump(), {
|
|
@@ -2828,21 +2830,21 @@ var lo = (
|
|
|
2828
2830
|
type: V.argument,
|
|
2829
2831
|
// value does not include the opening and closing braces.
|
|
2830
2832
|
value: i,
|
|
2831
|
-
location: N(
|
|
2833
|
+
location: N(n, this.clonePosition())
|
|
2832
2834
|
},
|
|
2833
2835
|
err: null
|
|
2834
2836
|
};
|
|
2835
2837
|
case 44:
|
|
2836
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(
|
|
2838
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2837
2839
|
default:
|
|
2838
|
-
return this.error(R.MALFORMED_ARGUMENT, N(
|
|
2840
|
+
return this.error(R.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
2839
2841
|
}
|
|
2840
2842
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2841
|
-
var t = this.clonePosition(),
|
|
2843
|
+
var t = this.clonePosition(), r = this.offset(), n = nr(this.message, r), i = r + n.length;
|
|
2842
2844
|
this.bumpTo(i);
|
|
2843
2845
|
var o = this.clonePosition(), a = N(t, o);
|
|
2844
|
-
return { value:
|
|
2845
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2846
|
+
return { value: n, location: a };
|
|
2847
|
+
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2846
2848
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2847
2849
|
switch (s) {
|
|
2848
2850
|
case "":
|
|
@@ -2867,12 +2869,12 @@ var lo = (
|
|
|
2867
2869
|
if (v.err)
|
|
2868
2870
|
return v;
|
|
2869
2871
|
var B = N(i, this.clonePosition());
|
|
2870
|
-
if (u &&
|
|
2872
|
+
if (u && Cr(u == null ? void 0 : u.style, "::", 0)) {
|
|
2871
2873
|
var K = so(u.style.slice(2));
|
|
2872
2874
|
if (s === "number") {
|
|
2873
2875
|
var m = this.parseNumberSkeletonFromString(K, u.styleLocation);
|
|
2874
2876
|
return m.err ? m : {
|
|
2875
|
-
val: { type: V.number, value:
|
|
2877
|
+
val: { type: V.number, value: n, location: B, style: m.val },
|
|
2876
2878
|
err: null
|
|
2877
2879
|
};
|
|
2878
2880
|
} else {
|
|
@@ -2887,7 +2889,7 @@ var lo = (
|
|
|
2887
2889
|
parsedOptions: this.shouldParseSkeletons ? ji(oe) : {}
|
|
2888
2890
|
}, se = s === "date" ? V.date : V.time;
|
|
2889
2891
|
return {
|
|
2890
|
-
val: { type: se, value:
|
|
2892
|
+
val: { type: se, value: n, location: B, style: d },
|
|
2891
2893
|
err: null
|
|
2892
2894
|
};
|
|
2893
2895
|
}
|
|
@@ -2895,7 +2897,7 @@ var lo = (
|
|
|
2895
2897
|
return {
|
|
2896
2898
|
val: {
|
|
2897
2899
|
type: s === "number" ? V.number : s === "date" ? V.date : V.time,
|
|
2898
|
-
value:
|
|
2900
|
+
value: n,
|
|
2899
2901
|
location: B,
|
|
2900
2902
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2901
2903
|
},
|
|
@@ -2919,7 +2921,7 @@ var lo = (
|
|
|
2919
2921
|
return m;
|
|
2920
2922
|
this.bumpSpace(), j = this.parseIdentifierIfPossible(), Y = m.val;
|
|
2921
2923
|
}
|
|
2922
|
-
var ae = this.tryParsePluralOrSelectOptions(t, s,
|
|
2924
|
+
var ae = this.tryParsePluralOrSelectOptions(t, s, r, j);
|
|
2923
2925
|
if (ae.err)
|
|
2924
2926
|
return ae;
|
|
2925
2927
|
var v = this.tryParseArgumentClose(i);
|
|
@@ -2929,16 +2931,16 @@ var lo = (
|
|
|
2929
2931
|
return s === "select" ? {
|
|
2930
2932
|
val: {
|
|
2931
2933
|
type: V.select,
|
|
2932
|
-
value:
|
|
2933
|
-
options:
|
|
2934
|
+
value: n,
|
|
2935
|
+
options: Hr(ae.val),
|
|
2934
2936
|
location: me
|
|
2935
2937
|
},
|
|
2936
2938
|
err: null
|
|
2937
2939
|
} : {
|
|
2938
2940
|
val: {
|
|
2939
2941
|
type: V.plural,
|
|
2940
|
-
value:
|
|
2941
|
-
options:
|
|
2942
|
+
value: n,
|
|
2943
|
+
options: Hr(ae.val),
|
|
2942
2944
|
offset: Y,
|
|
2943
2945
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2944
2946
|
location: me
|
|
@@ -2952,9 +2954,9 @@ var lo = (
|
|
|
2952
2954
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2953
2955
|
return this.isEOF() || this.char() !== 125 ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2954
2956
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2955
|
-
for (var t = 0,
|
|
2956
|
-
var
|
|
2957
|
-
switch (
|
|
2957
|
+
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2958
|
+
var n = this.char();
|
|
2959
|
+
switch (n) {
|
|
2958
2960
|
case 39: {
|
|
2959
2961
|
this.bump();
|
|
2960
2962
|
var i = this.clonePosition();
|
|
@@ -2972,7 +2974,7 @@ var lo = (
|
|
|
2972
2974
|
t -= 1;
|
|
2973
2975
|
else
|
|
2974
2976
|
return {
|
|
2975
|
-
val: this.message.slice(
|
|
2977
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2976
2978
|
err: null
|
|
2977
2979
|
};
|
|
2978
2980
|
break;
|
|
@@ -2983,30 +2985,30 @@ var lo = (
|
|
|
2983
2985
|
}
|
|
2984
2986
|
}
|
|
2985
2987
|
return {
|
|
2986
|
-
val: this.message.slice(
|
|
2988
|
+
val: this.message.slice(r.offset, this.offset()),
|
|
2987
2989
|
err: null
|
|
2988
2990
|
};
|
|
2989
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
2990
|
-
var
|
|
2991
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2992
|
+
var n = [];
|
|
2991
2993
|
try {
|
|
2992
|
-
|
|
2994
|
+
n = $i(t);
|
|
2993
2995
|
} catch (i) {
|
|
2994
|
-
return this.error(R.INVALID_NUMBER_SKELETON,
|
|
2996
|
+
return this.error(R.INVALID_NUMBER_SKELETON, r);
|
|
2995
2997
|
}
|
|
2996
2998
|
return {
|
|
2997
2999
|
val: {
|
|
2998
3000
|
type: Ze.number,
|
|
2999
|
-
tokens:
|
|
3000
|
-
location:
|
|
3001
|
-
parsedOptions: this.shouldParseSkeletons ? Wi(
|
|
3001
|
+
tokens: n,
|
|
3002
|
+
location: r,
|
|
3003
|
+
parsedOptions: this.shouldParseSkeletons ? Wi(n) : {}
|
|
3002
3004
|
},
|
|
3003
3005
|
err: null
|
|
3004
3006
|
};
|
|
3005
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3007
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3006
3008
|
for (var o, a = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
|
|
3007
3009
|
if (u.length === 0) {
|
|
3008
3010
|
var m = this.clonePosition();
|
|
3009
|
-
if (
|
|
3011
|
+
if (r !== "select" && this.bumpIf("=")) {
|
|
3010
3012
|
var d = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR, R.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3011
3013
|
if (d.err)
|
|
3012
3014
|
return d;
|
|
@@ -3015,12 +3017,12 @@ var lo = (
|
|
|
3015
3017
|
break;
|
|
3016
3018
|
}
|
|
3017
3019
|
if (c.has(u))
|
|
3018
|
-
return this.error(
|
|
3020
|
+
return this.error(r === "select" ? R.DUPLICATE_SELECT_ARGUMENT_SELECTOR : R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
3019
3021
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3020
3022
|
var g = this.clonePosition();
|
|
3021
3023
|
if (!this.bumpIf("{"))
|
|
3022
|
-
return this.error(
|
|
3023
|
-
var v = this.parseMessage(t + 1,
|
|
3024
|
+
return this.error(r === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
|
|
3025
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3024
3026
|
if (v.err)
|
|
3025
3027
|
return v;
|
|
3026
3028
|
var B = this.tryParseArgumentClose(g);
|
|
@@ -3034,10 +3036,10 @@ var lo = (
|
|
|
3034
3036
|
}
|
|
3035
3037
|
]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
|
|
3036
3038
|
}
|
|
3037
|
-
return s.length === 0 ? this.error(
|
|
3038
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3039
|
-
var
|
|
3040
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3039
|
+
return s.length === 0 ? this.error(r === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(R.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3040
|
+
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3041
|
+
var n = 1, i = this.clonePosition();
|
|
3042
|
+
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3041
3043
|
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3042
3044
|
var s = this.char();
|
|
3043
3045
|
if (s >= 48 && s <= 57)
|
|
@@ -3046,7 +3048,7 @@ var lo = (
|
|
|
3046
3048
|
break;
|
|
3047
3049
|
}
|
|
3048
3050
|
var c = N(i, this.clonePosition());
|
|
3049
|
-
return o ? (a *=
|
|
3051
|
+
return o ? (a *= n, oo(a) ? { val: a, err: null } : this.error(r, c)) : this.error(t, c);
|
|
3050
3052
|
}, e.prototype.offset = function() {
|
|
3051
3053
|
return this.position.offset;
|
|
3052
3054
|
}, e.prototype.isEOF = function() {
|
|
@@ -3061,17 +3063,17 @@ var lo = (
|
|
|
3061
3063
|
var t = this.position.offset;
|
|
3062
3064
|
if (t >= this.message.length)
|
|
3063
3065
|
throw Error("out of bound");
|
|
3064
|
-
var
|
|
3065
|
-
if (
|
|
3066
|
+
var r = yn(this.message, t);
|
|
3067
|
+
if (r === void 0)
|
|
3066
3068
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3067
|
-
return
|
|
3068
|
-
}, e.prototype.error = function(t,
|
|
3069
|
+
return r;
|
|
3070
|
+
}, e.prototype.error = function(t, r) {
|
|
3069
3071
|
return {
|
|
3070
3072
|
val: null,
|
|
3071
3073
|
err: {
|
|
3072
3074
|
kind: t,
|
|
3073
3075
|
message: this.message,
|
|
3074
|
-
location:
|
|
3076
|
+
location: r
|
|
3075
3077
|
}
|
|
3076
3078
|
};
|
|
3077
3079
|
}, e.prototype.bump = function() {
|
|
@@ -3080,70 +3082,70 @@ var lo = (
|
|
|
3080
3082
|
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);
|
|
3081
3083
|
}
|
|
3082
3084
|
}, e.prototype.bumpIf = function(t) {
|
|
3083
|
-
if (
|
|
3084
|
-
for (var
|
|
3085
|
+
if (Cr(this.message, t, this.offset())) {
|
|
3086
|
+
for (var r = 0; r < t.length; r++)
|
|
3085
3087
|
this.bump();
|
|
3086
3088
|
return !0;
|
|
3087
3089
|
}
|
|
3088
3090
|
return !1;
|
|
3089
3091
|
}, e.prototype.bumpUntil = function(t) {
|
|
3090
|
-
var
|
|
3091
|
-
return
|
|
3092
|
+
var r = this.offset(), n = this.message.indexOf(t, r);
|
|
3093
|
+
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3092
3094
|
}, e.prototype.bumpTo = function(t) {
|
|
3093
3095
|
if (this.offset() > t)
|
|
3094
3096
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3095
3097
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3096
|
-
var
|
|
3097
|
-
if (
|
|
3098
|
+
var r = this.offset();
|
|
3099
|
+
if (r === t)
|
|
3098
3100
|
break;
|
|
3099
|
-
if (
|
|
3101
|
+
if (r > t)
|
|
3100
3102
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3101
3103
|
if (this.bump(), this.isEOF())
|
|
3102
3104
|
break;
|
|
3103
3105
|
}
|
|
3104
3106
|
}, e.prototype.bumpSpace = function() {
|
|
3105
|
-
for (; !this.isEOF() &&
|
|
3107
|
+
for (; !this.isEOF() && _n(this.char()); )
|
|
3106
3108
|
this.bump();
|
|
3107
3109
|
}, e.prototype.peek = function() {
|
|
3108
3110
|
if (this.isEOF())
|
|
3109
3111
|
return null;
|
|
3110
|
-
var t = this.char(),
|
|
3111
|
-
return
|
|
3112
|
+
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3113
|
+
return n != null ? n : null;
|
|
3112
3114
|
}, e;
|
|
3113
3115
|
}()
|
|
3114
3116
|
);
|
|
3115
|
-
function
|
|
3117
|
+
function ir(e) {
|
|
3116
3118
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3117
3119
|
}
|
|
3118
3120
|
function co(e) {
|
|
3119
|
-
return
|
|
3121
|
+
return ir(e) || e === 47;
|
|
3120
3122
|
}
|
|
3121
3123
|
function ho(e) {
|
|
3122
3124
|
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;
|
|
3123
3125
|
}
|
|
3124
|
-
function
|
|
3126
|
+
function _n(e) {
|
|
3125
3127
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3126
3128
|
}
|
|
3127
3129
|
function fo(e) {
|
|
3128
3130
|
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;
|
|
3129
3131
|
}
|
|
3130
|
-
function
|
|
3132
|
+
function or(e) {
|
|
3131
3133
|
e.forEach(function(t) {
|
|
3132
|
-
if (delete t.location,
|
|
3133
|
-
for (var
|
|
3134
|
-
delete t.options[
|
|
3134
|
+
if (delete t.location, cn(t) || hn(t))
|
|
3135
|
+
for (var r in t.options)
|
|
3136
|
+
delete t.options[r].location, or(t.options[r].value);
|
|
3135
3137
|
else
|
|
3136
|
-
|
|
3138
|
+
sn(t) && dn(t.style) || (un(t) || ln(t)) && er(t.style) ? delete t.style.location : fn(t) && or(t.children);
|
|
3137
3139
|
});
|
|
3138
3140
|
}
|
|
3139
3141
|
function po(e, t) {
|
|
3140
3142
|
t === void 0 && (t = {}), t = wt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3141
|
-
var
|
|
3142
|
-
if (
|
|
3143
|
-
var
|
|
3144
|
-
throw
|
|
3143
|
+
var r = new lo(e, t).parse();
|
|
3144
|
+
if (r.err) {
|
|
3145
|
+
var n = SyntaxError(R[r.err.kind]);
|
|
3146
|
+
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3145
3147
|
}
|
|
3146
|
-
return t != null && t.captureLocation ||
|
|
3148
|
+
return t != null && t.captureLocation || or(r.val), r.val;
|
|
3147
3149
|
}
|
|
3148
3150
|
var qe;
|
|
3149
3151
|
(function(e) {
|
|
@@ -3153,20 +3155,20 @@ var Ct = (
|
|
|
3153
3155
|
/** @class */
|
|
3154
3156
|
function(e) {
|
|
3155
3157
|
At(t, e);
|
|
3156
|
-
function t(
|
|
3157
|
-
var o = e.call(this,
|
|
3158
|
-
return o.code =
|
|
3158
|
+
function t(r, n, i) {
|
|
3159
|
+
var o = e.call(this, r) || this;
|
|
3160
|
+
return o.code = n, o.originalMessage = i, o;
|
|
3159
3161
|
}
|
|
3160
3162
|
return t.prototype.toString = function() {
|
|
3161
3163
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3162
3164
|
}, t;
|
|
3163
3165
|
}(Error)
|
|
3164
|
-
),
|
|
3166
|
+
), Lr = (
|
|
3165
3167
|
/** @class */
|
|
3166
3168
|
function(e) {
|
|
3167
3169
|
At(t, e);
|
|
3168
|
-
function t(
|
|
3169
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3170
|
+
function t(r, n, i, o) {
|
|
3171
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), qe.INVALID_VALUE, o) || this;
|
|
3170
3172
|
}
|
|
3171
3173
|
return t;
|
|
3172
3174
|
}(Ct)
|
|
@@ -3174,8 +3176,8 @@ var Ct = (
|
|
|
3174
3176
|
/** @class */
|
|
3175
3177
|
function(e) {
|
|
3176
3178
|
At(t, e);
|
|
3177
|
-
function t(
|
|
3178
|
-
return e.call(this, 'Value for "'.concat(
|
|
3179
|
+
function t(r, n, i) {
|
|
3180
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), qe.INVALID_VALUE, i) || this;
|
|
3179
3181
|
}
|
|
3180
3182
|
return t;
|
|
3181
3183
|
}(Ct)
|
|
@@ -3183,8 +3185,8 @@ var Ct = (
|
|
|
3183
3185
|
/** @class */
|
|
3184
3186
|
function(e) {
|
|
3185
3187
|
At(t, e);
|
|
3186
|
-
function t(
|
|
3187
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3188
|
+
function t(r, n) {
|
|
3189
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), qe.MISSING_VALUE, n) || this;
|
|
3188
3190
|
}
|
|
3189
3191
|
return t;
|
|
3190
3192
|
}(Ct)
|
|
@@ -3193,16 +3195,16 @@ var Ct = (
|
|
|
3193
3195
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3194
3196
|
})(he || (he = {}));
|
|
3195
3197
|
function go(e) {
|
|
3196
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3197
|
-
var
|
|
3198
|
-
return !
|
|
3198
|
+
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3199
|
+
var n = t[t.length - 1];
|
|
3200
|
+
return !n || n.type !== he.literal || r.type !== he.literal ? t.push(r) : n.value += r.value, t;
|
|
3199
3201
|
}, []);
|
|
3200
3202
|
}
|
|
3201
3203
|
function yo(e) {
|
|
3202
3204
|
return typeof e == "function";
|
|
3203
3205
|
}
|
|
3204
|
-
function vt(e, t,
|
|
3205
|
-
if (e.length === 1 &&
|
|
3206
|
+
function vt(e, t, r, n, i, o, a) {
|
|
3207
|
+
if (e.length === 1 && Sr(e[0]))
|
|
3206
3208
|
return [
|
|
3207
3209
|
{
|
|
3208
3210
|
type: he.literal,
|
|
@@ -3211,7 +3213,7 @@ function vt(e, t, n, r, i, o, a) {
|
|
|
3211
3213
|
];
|
|
3212
3214
|
for (var s = [], c = 0, u = e; c < u.length; c++) {
|
|
3213
3215
|
var f = u[c];
|
|
3214
|
-
if (
|
|
3216
|
+
if (Sr(f)) {
|
|
3215
3217
|
s.push({
|
|
3216
3218
|
type: he.literal,
|
|
3217
3219
|
value: f.value
|
|
@@ -3221,7 +3223,7 @@ function vt(e, t, n, r, i, o, a) {
|
|
|
3221
3223
|
if (Fi(f)) {
|
|
3222
3224
|
typeof o == "number" && s.push({
|
|
3223
3225
|
type: he.literal,
|
|
3224
|
-
value:
|
|
3226
|
+
value: r.getNumberFormat(t).format(o)
|
|
3225
3227
|
});
|
|
3226
3228
|
continue;
|
|
3227
3229
|
}
|
|
@@ -3236,35 +3238,35 @@ function vt(e, t, n, r, i, o, a) {
|
|
|
3236
3238
|
});
|
|
3237
3239
|
continue;
|
|
3238
3240
|
}
|
|
3239
|
-
if (
|
|
3240
|
-
var g = typeof f.style == "string" ?
|
|
3241
|
+
if (un(f)) {
|
|
3242
|
+
var g = typeof f.style == "string" ? n.date[f.style] : er(f.style) ? f.style.parsedOptions : void 0;
|
|
3241
3243
|
s.push({
|
|
3242
3244
|
type: he.literal,
|
|
3243
|
-
value:
|
|
3245
|
+
value: r.getDateTimeFormat(t, g).format(d)
|
|
3244
3246
|
});
|
|
3245
3247
|
continue;
|
|
3246
3248
|
}
|
|
3247
|
-
if (
|
|
3248
|
-
var g = typeof f.style == "string" ?
|
|
3249
|
+
if (ln(f)) {
|
|
3250
|
+
var g = typeof f.style == "string" ? n.time[f.style] : er(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
3249
3251
|
s.push({
|
|
3250
3252
|
type: he.literal,
|
|
3251
|
-
value:
|
|
3253
|
+
value: r.getDateTimeFormat(t, g).format(d)
|
|
3252
3254
|
});
|
|
3253
3255
|
continue;
|
|
3254
3256
|
}
|
|
3255
|
-
if (
|
|
3256
|
-
var g = typeof f.style == "string" ?
|
|
3257
|
+
if (sn(f)) {
|
|
3258
|
+
var g = typeof f.style == "string" ? n.number[f.style] : dn(f.style) ? f.style.parsedOptions : void 0;
|
|
3257
3259
|
g && g.scale && (d = d * (g.scale || 1)), s.push({
|
|
3258
3260
|
type: he.literal,
|
|
3259
|
-
value:
|
|
3261
|
+
value: r.getNumberFormat(t, g).format(d)
|
|
3260
3262
|
});
|
|
3261
3263
|
continue;
|
|
3262
3264
|
}
|
|
3263
|
-
if (
|
|
3265
|
+
if (fn(f)) {
|
|
3264
3266
|
var v = f.children, B = f.value, K = i[B];
|
|
3265
3267
|
if (!yo(K))
|
|
3266
3268
|
throw new mo(B, "function", a);
|
|
3267
|
-
var oe = vt(v, t,
|
|
3269
|
+
var oe = vt(v, t, r, n, i, o), se = K(oe.map(function(Y) {
|
|
3268
3270
|
return Y.value;
|
|
3269
3271
|
}));
|
|
3270
3272
|
Array.isArray(se) || (se = [se]), s.push.apply(s, se.map(function(Y) {
|
|
@@ -3274,39 +3276,39 @@ function vt(e, t, n, r, i, o, a) {
|
|
|
3274
3276
|
};
|
|
3275
3277
|
}));
|
|
3276
3278
|
}
|
|
3277
|
-
if (
|
|
3279
|
+
if (cn(f)) {
|
|
3278
3280
|
var D = f.options[d] || f.options.other;
|
|
3279
3281
|
if (!D)
|
|
3280
|
-
throw new
|
|
3281
|
-
s.push.apply(s, vt(D.value, t,
|
|
3282
|
+
throw new Lr(f.value, d, Object.keys(f.options), a);
|
|
3283
|
+
s.push.apply(s, vt(D.value, t, r, n, i));
|
|
3282
3284
|
continue;
|
|
3283
3285
|
}
|
|
3284
|
-
if (
|
|
3286
|
+
if (hn(f)) {
|
|
3285
3287
|
var D = f.options["=".concat(d)];
|
|
3286
3288
|
if (!D) {
|
|
3287
3289
|
if (!Intl.PluralRules)
|
|
3288
3290
|
throw new Ct(`Intl.PluralRules is not available in this environment.
|
|
3289
3291
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3290
3292
|
`, qe.MISSING_INTL_API, a);
|
|
3291
|
-
var j =
|
|
3293
|
+
var j = r.getPluralRules(t, { type: f.pluralType }).select(d - (f.offset || 0));
|
|
3292
3294
|
D = f.options[j] || f.options.other;
|
|
3293
3295
|
}
|
|
3294
3296
|
if (!D)
|
|
3295
|
-
throw new
|
|
3296
|
-
s.push.apply(s, vt(D.value, t,
|
|
3297
|
+
throw new Lr(f.value, d, Object.keys(f.options), a);
|
|
3298
|
+
s.push.apply(s, vt(D.value, t, r, n, i, d - (f.offset || 0)));
|
|
3297
3299
|
continue;
|
|
3298
3300
|
}
|
|
3299
3301
|
}
|
|
3300
3302
|
return go(s);
|
|
3301
3303
|
}
|
|
3302
3304
|
function vo(e, t) {
|
|
3303
|
-
return t ? Se(Se(Se({}, e || {}), t || {}), Object.keys(e).reduce(function(
|
|
3304
|
-
return n
|
|
3305
|
+
return t ? Se(Se(Se({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3306
|
+
return r[n] = Se(Se({}, e[n]), t[n] || {}), r;
|
|
3305
3307
|
}, {})) : e;
|
|
3306
3308
|
}
|
|
3307
3309
|
function _o(e, t) {
|
|
3308
|
-
return t ? Object.keys(e).reduce(function(
|
|
3309
|
-
return n
|
|
3310
|
+
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3311
|
+
return r[n] = vo(e[n], t[n]), r;
|
|
3310
3312
|
}, Se({}, e)) : e;
|
|
3311
3313
|
}
|
|
3312
3314
|
function Wt(e) {
|
|
@@ -3316,8 +3318,8 @@ function Wt(e) {
|
|
|
3316
3318
|
get: function(t) {
|
|
3317
3319
|
return e[t];
|
|
3318
3320
|
},
|
|
3319
|
-
set: function(t,
|
|
3320
|
-
e[t] =
|
|
3321
|
+
set: function(t, r) {
|
|
3322
|
+
e[t] = r;
|
|
3321
3323
|
}
|
|
3322
3324
|
};
|
|
3323
3325
|
}
|
|
@@ -3330,25 +3332,25 @@ function Eo(e) {
|
|
|
3330
3332
|
pluralRules: {}
|
|
3331
3333
|
}), {
|
|
3332
3334
|
getNumberFormat: Vt(function() {
|
|
3333
|
-
for (var t,
|
|
3334
|
-
n
|
|
3335
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, $t([void 0],
|
|
3335
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3336
|
+
r[n] = arguments[n];
|
|
3337
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, $t([void 0], r, !1)))();
|
|
3336
3338
|
}, {
|
|
3337
3339
|
cache: Wt(e.number),
|
|
3338
3340
|
strategy: Xt.variadic
|
|
3339
3341
|
}),
|
|
3340
3342
|
getDateTimeFormat: Vt(function() {
|
|
3341
|
-
for (var t,
|
|
3342
|
-
n
|
|
3343
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, $t([void 0],
|
|
3343
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3344
|
+
r[n] = arguments[n];
|
|
3345
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, $t([void 0], r, !1)))();
|
|
3344
3346
|
}, {
|
|
3345
3347
|
cache: Wt(e.dateTime),
|
|
3346
3348
|
strategy: Xt.variadic
|
|
3347
3349
|
}),
|
|
3348
3350
|
getPluralRules: Vt(function() {
|
|
3349
|
-
for (var t,
|
|
3350
|
-
n
|
|
3351
|
-
return new ((t = Intl.PluralRules).bind.apply(t, $t([void 0],
|
|
3351
|
+
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3352
|
+
r[n] = arguments[n];
|
|
3353
|
+
return new ((t = Intl.PluralRules).bind.apply(t, $t([void 0], r, !1)))();
|
|
3352
3354
|
}, {
|
|
3353
3355
|
cache: Wt(e.pluralRules),
|
|
3354
3356
|
strategy: Xt.variadic
|
|
@@ -3358,8 +3360,8 @@ function Eo(e) {
|
|
|
3358
3360
|
var xo = (
|
|
3359
3361
|
/** @class */
|
|
3360
3362
|
function() {
|
|
3361
|
-
function e(t,
|
|
3362
|
-
|
|
3363
|
+
function e(t, r, n, i) {
|
|
3364
|
+
r === void 0 && (r = e.defaultLocale);
|
|
3363
3365
|
var o = this;
|
|
3364
3366
|
if (this.formatterCache = {
|
|
3365
3367
|
number: {},
|
|
@@ -3382,7 +3384,7 @@ var xo = (
|
|
|
3382
3384
|
};
|
|
3383
3385
|
}, this.getAst = function() {
|
|
3384
3386
|
return o.ast;
|
|
3385
|
-
}, this.locales =
|
|
3387
|
+
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3386
3388
|
if (this.message = t, !e.__parse)
|
|
3387
3389
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3388
3390
|
var a = i || {};
|
|
@@ -3393,7 +3395,7 @@ var xo = (
|
|
|
3393
3395
|
this.ast = t;
|
|
3394
3396
|
if (!Array.isArray(this.ast))
|
|
3395
3397
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3396
|
-
this.formats = _o(e.formats,
|
|
3398
|
+
this.formats = _o(e.formats, n), this.formatters = i && i.formatters || Eo(this.formatterCache);
|
|
3397
3399
|
}
|
|
3398
3400
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3399
3401
|
get: function() {
|
|
@@ -3403,8 +3405,8 @@ var xo = (
|
|
|
3403
3405
|
configurable: !0
|
|
3404
3406
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3405
3407
|
if (typeof Intl.Locale != "undefined") {
|
|
3406
|
-
var
|
|
3407
|
-
return
|
|
3408
|
+
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3409
|
+
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3408
3410
|
}
|
|
3409
3411
|
}, e.__parse = po, e.formats = {
|
|
3410
3412
|
number: {
|
|
@@ -3472,104 +3474,104 @@ function wo(e, t) {
|
|
|
3472
3474
|
return;
|
|
3473
3475
|
if (t in e)
|
|
3474
3476
|
return e[t];
|
|
3475
|
-
const
|
|
3476
|
-
let
|
|
3477
|
-
for (let i = 0; i <
|
|
3478
|
-
if (typeof
|
|
3477
|
+
const r = t.split(".");
|
|
3478
|
+
let n = e;
|
|
3479
|
+
for (let i = 0; i < r.length; i++)
|
|
3480
|
+
if (typeof n == "object") {
|
|
3479
3481
|
if (i > 0) {
|
|
3480
|
-
const o =
|
|
3481
|
-
if (o in
|
|
3482
|
-
|
|
3482
|
+
const o = r.slice(i, r.length).join(".");
|
|
3483
|
+
if (o in n) {
|
|
3484
|
+
n = n[o];
|
|
3483
3485
|
break;
|
|
3484
3486
|
}
|
|
3485
3487
|
}
|
|
3486
|
-
|
|
3488
|
+
n = n[r[i]];
|
|
3487
3489
|
} else
|
|
3488
|
-
|
|
3489
|
-
return
|
|
3490
|
+
n = void 0;
|
|
3491
|
+
return n;
|
|
3490
3492
|
}
|
|
3491
|
-
const Ne = {}, So = (e, t,
|
|
3493
|
+
const Ne = {}, So = (e, t, r) => r && (t in Ne || (Ne[t] = {}), e in Ne[t] || (Ne[t][e] = r), r), En = (e, t) => {
|
|
3492
3494
|
if (t == null)
|
|
3493
3495
|
return;
|
|
3494
3496
|
if (t in Ne && e in Ne[t])
|
|
3495
3497
|
return Ne[t][e];
|
|
3496
|
-
const
|
|
3497
|
-
for (let
|
|
3498
|
-
const i = n
|
|
3498
|
+
const r = Ht(t);
|
|
3499
|
+
for (let n = 0; n < r.length; n++) {
|
|
3500
|
+
const i = r[n], o = To(i, e);
|
|
3499
3501
|
if (o)
|
|
3500
3502
|
return So(e, t, o);
|
|
3501
3503
|
}
|
|
3502
3504
|
};
|
|
3503
|
-
let
|
|
3505
|
+
let br;
|
|
3504
3506
|
const ft = Tt({});
|
|
3505
3507
|
function Bo(e) {
|
|
3506
|
-
return
|
|
3508
|
+
return br[e] || null;
|
|
3507
3509
|
}
|
|
3508
|
-
function
|
|
3509
|
-
return e in
|
|
3510
|
+
function xn(e) {
|
|
3511
|
+
return e in br;
|
|
3510
3512
|
}
|
|
3511
3513
|
function To(e, t) {
|
|
3512
|
-
if (!
|
|
3514
|
+
if (!xn(e))
|
|
3513
3515
|
return null;
|
|
3514
|
-
const
|
|
3515
|
-
return wo(
|
|
3516
|
+
const r = Bo(e);
|
|
3517
|
+
return wo(r, t);
|
|
3516
3518
|
}
|
|
3517
3519
|
function Ao(e) {
|
|
3518
3520
|
if (e == null)
|
|
3519
3521
|
return;
|
|
3520
3522
|
const t = Ht(e);
|
|
3521
|
-
for (let
|
|
3522
|
-
const
|
|
3523
|
-
if (
|
|
3524
|
-
return
|
|
3523
|
+
for (let r = 0; r < t.length; r++) {
|
|
3524
|
+
const n = t[r];
|
|
3525
|
+
if (xn(n))
|
|
3526
|
+
return n;
|
|
3525
3527
|
}
|
|
3526
3528
|
}
|
|
3527
|
-
function
|
|
3528
|
-
delete Ne[e], ft.update((
|
|
3529
|
+
function wn(e, ...t) {
|
|
3530
|
+
delete Ne[e], ft.update((r) => (r[e] = Hi.all([r[e] || {}, ...t]), r));
|
|
3529
3531
|
}
|
|
3530
3532
|
Je(
|
|
3531
3533
|
[ft],
|
|
3532
3534
|
([e]) => Object.keys(e)
|
|
3533
3535
|
);
|
|
3534
|
-
ft.subscribe((e) =>
|
|
3536
|
+
ft.subscribe((e) => br = e);
|
|
3535
3537
|
const _t = {};
|
|
3536
3538
|
function Co(e, t) {
|
|
3537
3539
|
_t[e].delete(t), _t[e].size === 0 && delete _t[e];
|
|
3538
3540
|
}
|
|
3539
|
-
function
|
|
3541
|
+
function Sn(e) {
|
|
3540
3542
|
return _t[e];
|
|
3541
3543
|
}
|
|
3542
3544
|
function Ho(e) {
|
|
3543
3545
|
return Ht(e).map((t) => {
|
|
3544
|
-
const
|
|
3545
|
-
return [t,
|
|
3546
|
+
const r = Sn(t);
|
|
3547
|
+
return [t, r ? [...r] : []];
|
|
3546
3548
|
}).filter(([, t]) => t.length > 0);
|
|
3547
3549
|
}
|
|
3548
|
-
function
|
|
3550
|
+
function ar(e) {
|
|
3549
3551
|
return e == null ? !1 : Ht(e).some(
|
|
3550
3552
|
(t) => {
|
|
3551
|
-
var
|
|
3552
|
-
return (
|
|
3553
|
+
var r;
|
|
3554
|
+
return (r = Sn(t)) == null ? void 0 : r.size;
|
|
3553
3555
|
}
|
|
3554
3556
|
);
|
|
3555
3557
|
}
|
|
3556
3558
|
function Oo(e, t) {
|
|
3557
3559
|
return Promise.all(
|
|
3558
|
-
t.map((
|
|
3559
|
-
).then((
|
|
3560
|
+
t.map((n) => (Co(e, n), n().then((i) => i.default || i)))
|
|
3561
|
+
).then((n) => wn(e, ...n));
|
|
3560
3562
|
}
|
|
3561
3563
|
const at = {};
|
|
3562
|
-
function
|
|
3563
|
-
if (!
|
|
3564
|
+
function Bn(e) {
|
|
3565
|
+
if (!ar(e))
|
|
3564
3566
|
return e in at ? at[e] : Promise.resolve();
|
|
3565
3567
|
const t = Ho(e);
|
|
3566
3568
|
return at[e] = Promise.all(
|
|
3567
3569
|
t.map(
|
|
3568
|
-
([
|
|
3570
|
+
([r, n]) => Oo(r, n)
|
|
3569
3571
|
)
|
|
3570
3572
|
).then(() => {
|
|
3571
|
-
if (
|
|
3572
|
-
return
|
|
3573
|
+
if (ar(e))
|
|
3574
|
+
return Bn(e);
|
|
3573
3575
|
delete at[e];
|
|
3574
3576
|
}), at[e];
|
|
3575
3577
|
}
|
|
@@ -3614,40 +3616,40 @@ function Ye() {
|
|
|
3614
3616
|
return Mo;
|
|
3615
3617
|
}
|
|
3616
3618
|
const Zt = Tt(!1);
|
|
3617
|
-
var Po = Object.defineProperty, No = Object.defineProperties, Io = Object.getOwnPropertyDescriptors,
|
|
3618
|
-
for (var
|
|
3619
|
-
Do.call(t,
|
|
3620
|
-
if (
|
|
3621
|
-
for (var
|
|
3622
|
-
Uo.call(t,
|
|
3619
|
+
var Po = Object.defineProperty, No = Object.defineProperties, Io = Object.getOwnPropertyDescriptors, Rr = Object.getOwnPropertySymbols, Do = Object.prototype.hasOwnProperty, Uo = Object.prototype.propertyIsEnumerable, Mr = (e, t, r) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fo = (e, t) => {
|
|
3620
|
+
for (var r in t || (t = {}))
|
|
3621
|
+
Do.call(t, r) && Mr(e, r, t[r]);
|
|
3622
|
+
if (Rr)
|
|
3623
|
+
for (var r of Rr(t))
|
|
3624
|
+
Uo.call(t, r) && Mr(e, r, t[r]);
|
|
3623
3625
|
return e;
|
|
3624
3626
|
}, Go = (e, t) => No(e, Io(t));
|
|
3625
|
-
let
|
|
3627
|
+
let sr;
|
|
3626
3628
|
const St = Tt(null);
|
|
3627
|
-
function
|
|
3628
|
-
return e.split("-").map((t,
|
|
3629
|
+
function Pr(e) {
|
|
3630
|
+
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3629
3631
|
}
|
|
3630
3632
|
function Ht(e, t = Ye().fallbackLocale) {
|
|
3631
|
-
const
|
|
3632
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3633
|
+
const r = Pr(e);
|
|
3634
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Pr(t)])] : r;
|
|
3633
3635
|
}
|
|
3634
3636
|
function Fe() {
|
|
3635
|
-
return
|
|
3637
|
+
return sr != null ? sr : void 0;
|
|
3636
3638
|
}
|
|
3637
3639
|
St.subscribe((e) => {
|
|
3638
|
-
|
|
3640
|
+
sr = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3639
3641
|
});
|
|
3640
3642
|
const jo = (e) => {
|
|
3641
|
-
if (e && Ao(e) &&
|
|
3643
|
+
if (e && Ao(e) && ar(e)) {
|
|
3642
3644
|
const { loadingDelay: t } = Ye();
|
|
3643
|
-
let
|
|
3644
|
-
return typeof window != "undefined" && Fe() != null && t ?
|
|
3645
|
+
let r;
|
|
3646
|
+
return typeof window != "undefined" && Fe() != null && t ? r = window.setTimeout(
|
|
3645
3647
|
() => Zt.set(!0),
|
|
3646
3648
|
t
|
|
3647
|
-
) : Zt.set(!0),
|
|
3649
|
+
) : Zt.set(!0), Bn(e).then(() => {
|
|
3648
3650
|
St.set(e);
|
|
3649
3651
|
}).finally(() => {
|
|
3650
|
-
clearTimeout(
|
|
3652
|
+
clearTimeout(r), Zt.set(!1);
|
|
3651
3653
|
});
|
|
3652
3654
|
}
|
|
3653
3655
|
return St.set(e);
|
|
@@ -3655,83 +3657,83 @@ const jo = (e) => {
|
|
|
3655
3657
|
set: jo
|
|
3656
3658
|
}), Ot = (e) => {
|
|
3657
3659
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3658
|
-
return (
|
|
3659
|
-
const i = JSON.stringify(
|
|
3660
|
-
return i in t ? t[i] : t[i] = e(
|
|
3660
|
+
return (n) => {
|
|
3661
|
+
const i = JSON.stringify(n);
|
|
3662
|
+
return i in t ? t[i] : t[i] = e(n);
|
|
3661
3663
|
};
|
|
3662
3664
|
};
|
|
3663
|
-
var ko = Object.defineProperty, Bt = Object.getOwnPropertySymbols,
|
|
3664
|
-
for (var
|
|
3665
|
-
|
|
3665
|
+
var ko = Object.defineProperty, Bt = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, An = Object.prototype.propertyIsEnumerable, Nr = (e, t, r) => t in e ? ko(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gr = (e, t) => {
|
|
3666
|
+
for (var r in t || (t = {}))
|
|
3667
|
+
Tn.call(t, r) && Nr(e, r, t[r]);
|
|
3666
3668
|
if (Bt)
|
|
3667
|
-
for (var
|
|
3668
|
-
|
|
3669
|
+
for (var r of Bt(t))
|
|
3670
|
+
An.call(t, r) && Nr(e, r, t[r]);
|
|
3669
3671
|
return e;
|
|
3670
3672
|
}, et = (e, t) => {
|
|
3671
|
-
var
|
|
3672
|
-
for (var
|
|
3673
|
-
|
|
3673
|
+
var r = {};
|
|
3674
|
+
for (var n in e)
|
|
3675
|
+
Tn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3674
3676
|
if (e != null && Bt)
|
|
3675
|
-
for (var
|
|
3676
|
-
t.indexOf(
|
|
3677
|
-
return
|
|
3677
|
+
for (var n of Bt(e))
|
|
3678
|
+
t.indexOf(n) < 0 && An.call(e, n) && (r[n] = e[n]);
|
|
3679
|
+
return r;
|
|
3678
3680
|
};
|
|
3679
3681
|
const ht = (e, t) => {
|
|
3680
|
-
const { formats:
|
|
3681
|
-
if (e in
|
|
3682
|
-
return
|
|
3682
|
+
const { formats: r } = Ye();
|
|
3683
|
+
if (e in r && t in r[e])
|
|
3684
|
+
return r[e][t];
|
|
3683
3685
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3684
3686
|
}, $o = Ot(
|
|
3685
3687
|
(e) => {
|
|
3686
|
-
var t = e, { locale:
|
|
3687
|
-
if (
|
|
3688
|
+
var t = e, { locale: r, format: n } = t, i = et(t, ["locale", "format"]);
|
|
3689
|
+
if (r == null)
|
|
3688
3690
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3689
|
-
return
|
|
3691
|
+
return n && (i = ht("number", n)), new Intl.NumberFormat(r, i);
|
|
3690
3692
|
}
|
|
3691
3693
|
), Vo = Ot(
|
|
3692
3694
|
(e) => {
|
|
3693
|
-
var t = e, { locale:
|
|
3694
|
-
if (
|
|
3695
|
+
var t = e, { locale: r, format: n } = t, i = et(t, ["locale", "format"]);
|
|
3696
|
+
if (r == null)
|
|
3695
3697
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3696
|
-
return
|
|
3698
|
+
return n ? i = ht("date", n) : Object.keys(i).length === 0 && (i = ht("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3697
3699
|
}
|
|
3698
3700
|
), Xo = Ot(
|
|
3699
3701
|
(e) => {
|
|
3700
|
-
var t = e, { locale:
|
|
3701
|
-
if (
|
|
3702
|
+
var t = e, { locale: r, format: n } = t, i = et(t, ["locale", "format"]);
|
|
3703
|
+
if (r == null)
|
|
3702
3704
|
throw new Error(
|
|
3703
3705
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3704
3706
|
);
|
|
3705
|
-
return
|
|
3707
|
+
return n ? i = ht("time", n) : Object.keys(i).length === 0 && (i = ht("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3706
3708
|
}
|
|
3707
3709
|
), zo = (e = {}) => {
|
|
3708
3710
|
var t = e, {
|
|
3709
|
-
locale:
|
|
3710
|
-
} = t,
|
|
3711
|
+
locale: r = Fe()
|
|
3712
|
+
} = t, n = et(t, [
|
|
3711
3713
|
"locale"
|
|
3712
3714
|
]);
|
|
3713
|
-
return $o(
|
|
3715
|
+
return $o(gr({ locale: r }, n));
|
|
3714
3716
|
}, Wo = (e = {}) => {
|
|
3715
3717
|
var t = e, {
|
|
3716
|
-
locale:
|
|
3717
|
-
} = t,
|
|
3718
|
+
locale: r = Fe()
|
|
3719
|
+
} = t, n = et(t, [
|
|
3718
3720
|
"locale"
|
|
3719
3721
|
]);
|
|
3720
|
-
return Vo(
|
|
3722
|
+
return Vo(gr({ locale: r }, n));
|
|
3721
3723
|
}, Zo = (e = {}) => {
|
|
3722
3724
|
var t = e, {
|
|
3723
|
-
locale:
|
|
3724
|
-
} = t,
|
|
3725
|
+
locale: r = Fe()
|
|
3726
|
+
} = t, n = et(t, [
|
|
3725
3727
|
"locale"
|
|
3726
3728
|
]);
|
|
3727
|
-
return Xo(
|
|
3729
|
+
return Xo(gr({ locale: r }, n));
|
|
3728
3730
|
}, qo = Ot(
|
|
3729
3731
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3730
3732
|
(e, t = Fe()) => new xo(e, t, Ye().formats, {
|
|
3731
3733
|
ignoreTag: Ye().ignoreTag
|
|
3732
3734
|
})
|
|
3733
3735
|
), Yo = (e, t = {}) => {
|
|
3734
|
-
var
|
|
3736
|
+
var r, n, i, o;
|
|
3735
3737
|
let a = t;
|
|
3736
3738
|
typeof e == "object" && (a = e, e = a.id);
|
|
3737
3739
|
const {
|
|
@@ -3743,9 +3745,9 @@ const ht = (e, t) => {
|
|
|
3743
3745
|
throw new Error(
|
|
3744
3746
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3745
3747
|
);
|
|
3746
|
-
let f =
|
|
3748
|
+
let f = En(e, c);
|
|
3747
3749
|
if (!f)
|
|
3748
|
-
f = (o = (i = (
|
|
3750
|
+
f = (o = (i = (n = (r = Ye()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3749
3751
|
else if (typeof f != "string")
|
|
3750
3752
|
return console.warn(
|
|
3751
3753
|
`[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.`
|
|
@@ -3762,18 +3764,18 @@ const ht = (e, t) => {
|
|
|
3762
3764
|
);
|
|
3763
3765
|
}
|
|
3764
3766
|
return m;
|
|
3765
|
-
}, Qo = (e, t) => Zo(t).format(e), Jo = (e, t) => Wo(t).format(e), Ko = (e, t) => zo(t).format(e), ea = (e, t = Fe()) =>
|
|
3767
|
+
}, Qo = (e, t) => Zo(t).format(e), Jo = (e, t) => Wo(t).format(e), Ko = (e, t) => zo(t).format(e), ea = (e, t = Fe()) => En(e, t), ta = Je([Ke, ft], () => Yo);
|
|
3766
3768
|
Je([Ke], () => Qo);
|
|
3767
3769
|
Je([Ke], () => Jo);
|
|
3768
3770
|
Je([Ke], () => Ko);
|
|
3769
3771
|
Je([Ke, ft], () => ea);
|
|
3770
|
-
function
|
|
3771
|
-
|
|
3772
|
+
function Ir(e, t) {
|
|
3773
|
+
wn(e, t);
|
|
3772
3774
|
}
|
|
3773
|
-
function
|
|
3775
|
+
function ra(e) {
|
|
3774
3776
|
Ke.set(e);
|
|
3775
3777
|
}
|
|
3776
|
-
const
|
|
3778
|
+
const Dr = {
|
|
3777
3779
|
en: {
|
|
3778
3780
|
Title: "Your Balance",
|
|
3779
3781
|
Total: "Total Balance",
|
|
@@ -3991,15 +3993,15 @@ const Un = {
|
|
|
3991
3993
|
Loading: "Loading ..."
|
|
3992
3994
|
}
|
|
3993
3995
|
};
|
|
3994
|
-
var
|
|
3996
|
+
var ur = { exports: {} };
|
|
3995
3997
|
/** @license
|
|
3996
3998
|
* eventsource.js
|
|
3997
3999
|
* Available under MIT License (MIT)
|
|
3998
4000
|
* https://github.com/Yaffle/EventSource/
|
|
3999
4001
|
*/
|
|
4000
4002
|
(function(e, t) {
|
|
4001
|
-
(function(
|
|
4002
|
-
var
|
|
4003
|
+
(function(r) {
|
|
4004
|
+
var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, a = r.XDomainRequest, s = r.ActiveXObject, c = r.EventSource, u = r.document, f = r.Promise, m = r.fetch, d = r.Response, g = r.TextDecoder, v = r.TextEncoder, B = r.AbortController;
|
|
4003
4005
|
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
|
|
4004
4006
|
u.readyState = "complete";
|
|
4005
4007
|
}, !1)), o == null && s != null && (o = function() {
|
|
@@ -4124,7 +4126,7 @@ var ln = { exports: {} };
|
|
|
4124
4126
|
}, U = function(l) {
|
|
4125
4127
|
p != null && (p.readyState === 4 ? (!("onload" in p) || !("onerror" in p) || !("onabort" in p)) && L(p.responseText === "" ? "error" : "load", l) : p.readyState === 3 ? "onprogress" in p || k() : p.readyState === 2 && H());
|
|
4126
4128
|
}, F = function() {
|
|
4127
|
-
S =
|
|
4129
|
+
S = n(function() {
|
|
4128
4130
|
F();
|
|
4129
4131
|
}, 500), p.readyState === 3 && k();
|
|
4130
4132
|
};
|
|
@@ -4136,7 +4138,7 @@ var ln = { exports: {} };
|
|
|
4136
4138
|
L("abort", l);
|
|
4137
4139
|
}), "onprogress" in p && (p.onprogress = k), "onreadystatechange" in p && (p.onreadystatechange = function(l) {
|
|
4138
4140
|
U(l);
|
|
4139
|
-
}), ("contentType" in p || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), p.open(h, b, !0), "readyState" in p && (S =
|
|
4141
|
+
}), ("contentType" in p || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), p.open(h, b, !0), "readyState" in p && (S = n(function() {
|
|
4140
4142
|
F();
|
|
4141
4143
|
}, 0));
|
|
4142
4144
|
}, j.prototype.abort = function() {
|
|
@@ -4151,7 +4153,7 @@ var ln = { exports: {} };
|
|
|
4151
4153
|
}, j.prototype.send = function() {
|
|
4152
4154
|
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4153
4155
|
var h = this;
|
|
4154
|
-
h._sendTimeout =
|
|
4156
|
+
h._sendTimeout = n(function() {
|
|
4155
4157
|
h._sendTimeout = 0, h.send();
|
|
4156
4158
|
}, 4);
|
|
4157
4159
|
return;
|
|
@@ -4250,7 +4252,7 @@ var ln = { exports: {} };
|
|
|
4250
4252
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4251
4253
|
}
|
|
4252
4254
|
function P(h) {
|
|
4253
|
-
|
|
4255
|
+
n(function() {
|
|
4254
4256
|
throw h;
|
|
4255
4257
|
}, 0);
|
|
4256
4258
|
}
|
|
@@ -4297,7 +4299,7 @@ var ln = { exports: {} };
|
|
|
4297
4299
|
W.call(this, h), this.error = b.error;
|
|
4298
4300
|
}
|
|
4299
4301
|
Ae.prototype = Object.create(W.prototype);
|
|
4300
|
-
var xe = -1,
|
|
4302
|
+
var xe = -1, ne = 0, be = 1, Me = 2, _ = -1, fe = 0, tt = 1, Ce = 2, rt = 3, Rt = /^text\/event\-stream(;.*)?$/i, Mt = 1e3, Pt = 18e6, De = function(h, b) {
|
|
4301
4303
|
var E = h == null ? b : parseInt(h, 10);
|
|
4302
4304
|
return E !== E && (E = b), Ge(E);
|
|
4303
4305
|
}, Ge = function(h) {
|
|
@@ -4310,42 +4312,42 @@ var ln = { exports: {} };
|
|
|
4310
4312
|
}
|
|
4311
4313
|
};
|
|
4312
4314
|
function ue(h, b) {
|
|
4313
|
-
$.call(this), b = b || {}, 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,
|
|
4315
|
+
$.call(this), b = b || {}, 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, nt(this, h, b);
|
|
4314
4316
|
}
|
|
4315
4317
|
function pt() {
|
|
4316
4318
|
return o != null && "withCredentials" in o.prototype || a == null ? new o() : new a();
|
|
4317
4319
|
}
|
|
4318
4320
|
var Nt = m != null && d != null && "body" in d.prototype;
|
|
4319
|
-
function
|
|
4321
|
+
function nt(h, b, E) {
|
|
4320
4322
|
b = String(b);
|
|
4321
|
-
var p = !!E.withCredentials, T = E.lastEventIdQueryParameterName || "lastEventId", S = Ge(1e3), H = De(E.heartbeatTimeout, 45e3), k = "", L = S, U = !1, F = 0, l = E.headers || {}, y = E.Transport, w = Nt && y == null ? void 0 : new j(y != null ? new y() : pt()), A = y != null && typeof y != "string" ? new y() : w == null ? new G() : new me(), O = void 0, C = 0, x = xe, Q = "", ge = "", le = "", je = "", J = fe, it = 0, we = 0, Ue = function(
|
|
4322
|
-
if (x ===
|
|
4323
|
-
if (
|
|
4323
|
+
var p = !!E.withCredentials, T = E.lastEventIdQueryParameterName || "lastEventId", S = Ge(1e3), H = De(E.heartbeatTimeout, 45e3), k = "", L = S, U = !1, F = 0, l = E.headers || {}, y = E.Transport, w = Nt && y == null ? void 0 : new j(y != null ? new y() : pt()), A = y != null && typeof y != "string" ? new y() : w == null ? new G() : new me(), O = void 0, C = 0, x = xe, Q = "", ge = "", le = "", je = "", J = fe, it = 0, we = 0, Ue = function(re, te, de, pe) {
|
|
4324
|
+
if (x === ne)
|
|
4325
|
+
if (re === 200 && de != null && Rt.test(de)) {
|
|
4324
4326
|
x = be, U = Date.now(), L = S, h.readyState = be;
|
|
4325
4327
|
var ce = new Re("open", {
|
|
4326
|
-
status:
|
|
4328
|
+
status: re,
|
|
4327
4329
|
statusText: te,
|
|
4328
4330
|
headers: pe
|
|
4329
4331
|
});
|
|
4330
4332
|
h.dispatchEvent(ce), Pe(h, h.onopen, ce);
|
|
4331
4333
|
} else {
|
|
4332
4334
|
var ie = "";
|
|
4333
|
-
|
|
4335
|
+
re !== 200 ? (te && (te = te.replace(/\s+/g, " ")), ie = "EventSource's response has a status " + re + " " + te + " that is not 200. Aborting the connection.") : ie = "EventSource's response has a Content-Type specifying an unsupported type: " + (de == null ? "-" : de.replace(/\s+/g, " ")) + ". Aborting the connection.", It();
|
|
4334
4336
|
var ce = new Re("error", {
|
|
4335
|
-
status:
|
|
4337
|
+
status: re,
|
|
4336
4338
|
statusText: te,
|
|
4337
4339
|
headers: pe
|
|
4338
4340
|
});
|
|
4339
4341
|
h.dispatchEvent(ce), Pe(h, h.onerror, ce), console.error(ie);
|
|
4340
4342
|
}
|
|
4341
|
-
},
|
|
4343
|
+
}, Pn = function(re) {
|
|
4342
4344
|
if (x === be) {
|
|
4343
|
-
for (var te = -1, de = 0; de <
|
|
4344
|
-
var pe =
|
|
4345
|
+
for (var te = -1, de = 0; de < re.length; de += 1) {
|
|
4346
|
+
var pe = re.charCodeAt(de);
|
|
4345
4347
|
(pe === 10 || pe === 13) && (te = de);
|
|
4346
4348
|
}
|
|
4347
|
-
var ce = (te !== -1 ? je : "") +
|
|
4348
|
-
je = (te === -1 ? je : "") +
|
|
4349
|
+
var ce = (te !== -1 ? je : "") + re.slice(0, te + 1);
|
|
4350
|
+
je = (te === -1 ? je : "") + re.slice(te + 1), re !== "" && (U = Date.now(), F += re.length);
|
|
4349
4351
|
for (var ie = 0; ie < ce.length; ie += 1) {
|
|
4350
4352
|
var pe = ce.charCodeAt(ie);
|
|
4351
4353
|
if (J === _ && pe === 10)
|
|
@@ -4355,7 +4357,7 @@ var ln = { exports: {} };
|
|
|
4355
4357
|
J === tt && (we = ie + 1);
|
|
4356
4358
|
var He = ce.slice(it, we - 1), Oe = ce.slice(we + (we < ie && ce.charCodeAt(we) === 32 ? 1 : 0), ie);
|
|
4357
4359
|
He === "data" ? (Q += `
|
|
4358
|
-
`, Q += Oe) : He === "id" ? ge = Oe : He === "event" ? le = Oe : He === "retry" ? (S = De(Oe, S), L = S) : He === "heartbeatTimeout" && (H = De(Oe, H), C !== 0 && (i(C), C =
|
|
4360
|
+
`, Q += Oe) : He === "id" ? ge = Oe : He === "event" ? le = Oe : He === "retry" ? (S = De(Oe, S), L = S) : He === "heartbeatTimeout" && (H = De(Oe, H), C !== 0 && (i(C), C = n(function() {
|
|
4359
4361
|
ot();
|
|
4360
4362
|
}, H)));
|
|
4361
4363
|
}
|
|
@@ -4373,34 +4375,34 @@ var ln = { exports: {} };
|
|
|
4373
4375
|
}
|
|
4374
4376
|
J = pe === 13 ? _ : fe;
|
|
4375
4377
|
} else
|
|
4376
|
-
J === fe && (it = ie, J = tt), J === tt ? pe === 58 && (we = ie + 1, J = Ce) : J === Ce && (J =
|
|
4378
|
+
J === fe && (it = ie, J = tt), J === tt ? pe === 58 && (we = ie + 1, J = Ce) : J === Ce && (J = rt);
|
|
4377
4379
|
}
|
|
4378
4380
|
}
|
|
4379
|
-
},
|
|
4380
|
-
if (x === be || x ===
|
|
4381
|
-
x = xe, C !== 0 && (i(C), C = 0), C =
|
|
4381
|
+
}, yr = function(re) {
|
|
4382
|
+
if (x === be || x === ne) {
|
|
4383
|
+
x = xe, C !== 0 && (i(C), C = 0), C = n(function() {
|
|
4382
4384
|
ot();
|
|
4383
|
-
}, L), L = Ge(Math.min(S * 16, L * 2)), h.readyState =
|
|
4384
|
-
var te = new Ae("error", { error:
|
|
4385
|
-
h.dispatchEvent(te), Pe(h, h.onerror, te),
|
|
4385
|
+
}, L), L = Ge(Math.min(S * 16, L * 2)), h.readyState = ne;
|
|
4386
|
+
var te = new Ae("error", { error: re });
|
|
4387
|
+
h.dispatchEvent(te), Pe(h, h.onerror, te), re != null && console.error(re);
|
|
4386
4388
|
}
|
|
4387
4389
|
}, It = function() {
|
|
4388
4390
|
x = Me, O != null && (O.abort(), O = void 0), C !== 0 && (i(C), C = 0), h.readyState = Me;
|
|
4389
4391
|
}, ot = function() {
|
|
4390
4392
|
if (C = 0, x !== xe) {
|
|
4391
4393
|
if (!U && O != null)
|
|
4392
|
-
|
|
4394
|
+
yr(new Error("No activity within " + H + " milliseconds. " + (x === ne ? "No response received." : F + " chars received.") + " Reconnecting.")), O != null && (O.abort(), O = void 0);
|
|
4393
4395
|
else {
|
|
4394
|
-
var
|
|
4395
|
-
U = !1, C =
|
|
4396
|
+
var re = Math.max((U || Date.now()) + H - Date.now(), 1);
|
|
4397
|
+
U = !1, C = n(function() {
|
|
4396
4398
|
ot();
|
|
4397
|
-
},
|
|
4399
|
+
}, re);
|
|
4398
4400
|
}
|
|
4399
4401
|
return;
|
|
4400
4402
|
}
|
|
4401
|
-
U = !1, F = 0, C =
|
|
4403
|
+
U = !1, F = 0, C = n(function() {
|
|
4402
4404
|
ot();
|
|
4403
|
-
}, H), x =
|
|
4405
|
+
}, H), x = ne, Q = "", le = "", ge = k, je = "", it = 0, we = 0, J = fe;
|
|
4404
4406
|
var te = b;
|
|
4405
4407
|
if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" && k !== "") {
|
|
4406
4408
|
var de = b.indexOf("?");
|
|
@@ -4415,16 +4417,16 @@ var ln = { exports: {} };
|
|
|
4415
4417
|
for (var He in ie)
|
|
4416
4418
|
Object.prototype.hasOwnProperty.call(ie, He) && (ce[He] = ie[He]);
|
|
4417
4419
|
try {
|
|
4418
|
-
O = A.open(w, Ue,
|
|
4420
|
+
O = A.open(w, Ue, Pn, yr, te, pe, ce);
|
|
4419
4421
|
} catch (Oe) {
|
|
4420
4422
|
throw It(), Oe;
|
|
4421
4423
|
}
|
|
4422
4424
|
};
|
|
4423
|
-
h.url = b, h.readyState =
|
|
4425
|
+
h.url = b, h.readyState = ne, h.withCredentials = p, h.headers = l, h._close = It, ot();
|
|
4424
4426
|
}
|
|
4425
|
-
ue.prototype = Object.create($.prototype), ue.prototype.CONNECTING =
|
|
4427
|
+
ue.prototype = Object.create($.prototype), ue.prototype.CONNECTING = ne, ue.prototype.OPEN = be, ue.prototype.CLOSED = Me, ue.prototype.close = function() {
|
|
4426
4428
|
this._close();
|
|
4427
|
-
}, ue.CONNECTING =
|
|
4429
|
+
}, ue.CONNECTING = ne, ue.OPEN = be, ue.CLOSED = Me, ue.prototype.withCredentials = void 0;
|
|
4428
4430
|
var mt = c;
|
|
4429
4431
|
o != null && (c == null || !("withCredentials" in c.prototype)) && (mt = ue), function(h) {
|
|
4430
4432
|
{
|
|
@@ -4435,8 +4437,8 @@ var ln = { exports: {} };
|
|
|
4435
4437
|
h.EventSourcePolyfill = ue, h.NativeEventSource = c, h.EventSource = mt;
|
|
4436
4438
|
});
|
|
4437
4439
|
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : di : globalThis);
|
|
4438
|
-
})(
|
|
4439
|
-
var
|
|
4440
|
+
})(ur, ur.exports);
|
|
4441
|
+
var na = ur.exports;
|
|
4440
4442
|
/*! *****************************************************************************
|
|
4441
4443
|
Copyright (c) Microsoft Corporation.
|
|
4442
4444
|
|
|
@@ -4451,48 +4453,48 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
4451
4453
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4452
4454
|
PERFORMANCE OF THIS SOFTWARE.
|
|
4453
4455
|
***************************************************************************** */
|
|
4454
|
-
var
|
|
4455
|
-
return
|
|
4456
|
-
|
|
4457
|
-
} || function(
|
|
4458
|
-
for (var i in
|
|
4459
|
-
Object.prototype.hasOwnProperty.call(
|
|
4460
|
-
},
|
|
4456
|
+
var lr = function(e, t) {
|
|
4457
|
+
return lr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
4458
|
+
r.__proto__ = n;
|
|
4459
|
+
} || function(r, n) {
|
|
4460
|
+
for (var i in n)
|
|
4461
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
4462
|
+
}, lr(e, t);
|
|
4461
4463
|
};
|
|
4462
4464
|
function dt(e, t) {
|
|
4463
4465
|
if (typeof t != "function" && t !== null)
|
|
4464
4466
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
4465
|
-
|
|
4466
|
-
function
|
|
4467
|
+
lr(e, t);
|
|
4468
|
+
function r() {
|
|
4467
4469
|
this.constructor = e;
|
|
4468
4470
|
}
|
|
4469
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
4471
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
4470
4472
|
}
|
|
4471
|
-
function
|
|
4472
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
4473
|
-
if (
|
|
4474
|
-
return
|
|
4473
|
+
function cr(e) {
|
|
4474
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
4475
|
+
if (r)
|
|
4476
|
+
return r.call(e);
|
|
4475
4477
|
if (e && typeof e.length == "number")
|
|
4476
4478
|
return {
|
|
4477
4479
|
next: function() {
|
|
4478
|
-
return e &&
|
|
4480
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
4479
4481
|
}
|
|
4480
4482
|
};
|
|
4481
4483
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
4482
4484
|
}
|
|
4483
|
-
function
|
|
4484
|
-
var
|
|
4485
|
-
if (!
|
|
4485
|
+
function hr(e, t) {
|
|
4486
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
4487
|
+
if (!r)
|
|
4486
4488
|
return e;
|
|
4487
|
-
var
|
|
4489
|
+
var n = r.call(e), i, o = [], a;
|
|
4488
4490
|
try {
|
|
4489
|
-
for (; (t === void 0 || t-- > 0) && !(i =
|
|
4491
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
4490
4492
|
o.push(i.value);
|
|
4491
4493
|
} catch (s) {
|
|
4492
4494
|
a = { error: s };
|
|
4493
4495
|
} finally {
|
|
4494
4496
|
try {
|
|
4495
|
-
i && !i.done && (
|
|
4497
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
4496
4498
|
} finally {
|
|
4497
4499
|
if (a)
|
|
4498
4500
|
throw a.error;
|
|
@@ -4500,34 +4502,34 @@ function fn(e, t) {
|
|
|
4500
4502
|
}
|
|
4501
4503
|
return o;
|
|
4502
4504
|
}
|
|
4503
|
-
function
|
|
4505
|
+
function fr(e, t, r) {
|
|
4504
4506
|
if (arguments.length === 2)
|
|
4505
|
-
for (var
|
|
4506
|
-
(o || !(
|
|
4507
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
4508
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
4507
4509
|
return e.concat(o || t);
|
|
4508
4510
|
}
|
|
4509
4511
|
function Le(e) {
|
|
4510
4512
|
return typeof e == "function";
|
|
4511
4513
|
}
|
|
4512
|
-
function
|
|
4513
|
-
var t = function(
|
|
4514
|
-
Error.call(
|
|
4515
|
-
},
|
|
4516
|
-
return
|
|
4517
|
-
}
|
|
4518
|
-
var qt =
|
|
4519
|
-
return function(
|
|
4520
|
-
e(this), this.message =
|
|
4521
|
-
` +
|
|
4522
|
-
return i + 1 + ") " +
|
|
4514
|
+
function Cn(e) {
|
|
4515
|
+
var t = function(n) {
|
|
4516
|
+
Error.call(n), n.stack = new Error().stack;
|
|
4517
|
+
}, r = e(t);
|
|
4518
|
+
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
4519
|
+
}
|
|
4520
|
+
var qt = Cn(function(e) {
|
|
4521
|
+
return function(r) {
|
|
4522
|
+
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
4523
|
+
` + r.map(function(n, i) {
|
|
4524
|
+
return i + 1 + ") " + n.toString();
|
|
4523
4525
|
}).join(`
|
|
4524
|
-
`) : "", this.name = "UnsubscriptionError", this.errors =
|
|
4526
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
4525
4527
|
};
|
|
4526
4528
|
});
|
|
4527
|
-
function
|
|
4529
|
+
function dr(e, t) {
|
|
4528
4530
|
if (e) {
|
|
4529
|
-
var
|
|
4530
|
-
0 <=
|
|
4531
|
+
var r = e.indexOf(t);
|
|
4532
|
+
0 <= r && e.splice(r, 1);
|
|
4531
4533
|
}
|
|
4532
4534
|
}
|
|
4533
4535
|
var Lt = function() {
|
|
@@ -4535,14 +4537,14 @@ var Lt = function() {
|
|
|
4535
4537
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
4536
4538
|
}
|
|
4537
4539
|
return e.prototype.unsubscribe = function() {
|
|
4538
|
-
var t,
|
|
4540
|
+
var t, r, n, i, o;
|
|
4539
4541
|
if (!this.closed) {
|
|
4540
4542
|
this.closed = !0;
|
|
4541
4543
|
var a = this._parentage;
|
|
4542
4544
|
if (a)
|
|
4543
4545
|
if (this._parentage = null, Array.isArray(a))
|
|
4544
4546
|
try {
|
|
4545
|
-
for (var s =
|
|
4547
|
+
for (var s = cr(a), c = s.next(); !c.done; c = s.next()) {
|
|
4546
4548
|
var u = c.value;
|
|
4547
4549
|
u.remove(this);
|
|
4548
4550
|
}
|
|
@@ -4550,7 +4552,7 @@ var Lt = function() {
|
|
|
4550
4552
|
t = { error: B };
|
|
4551
4553
|
} finally {
|
|
4552
4554
|
try {
|
|
4553
|
-
c && !c.done && (
|
|
4555
|
+
c && !c.done && (r = s.return) && r.call(s);
|
|
4554
4556
|
} finally {
|
|
4555
4557
|
if (t)
|
|
4556
4558
|
throw t.error;
|
|
@@ -4569,22 +4571,22 @@ var Lt = function() {
|
|
|
4569
4571
|
if (m) {
|
|
4570
4572
|
this._finalizers = null;
|
|
4571
4573
|
try {
|
|
4572
|
-
for (var d =
|
|
4574
|
+
for (var d = cr(m), g = d.next(); !g.done; g = d.next()) {
|
|
4573
4575
|
var v = g.value;
|
|
4574
4576
|
try {
|
|
4575
|
-
|
|
4577
|
+
Ur(v);
|
|
4576
4578
|
} catch (B) {
|
|
4577
|
-
o = o != null ? o : [], B instanceof qt ? o =
|
|
4579
|
+
o = o != null ? o : [], B instanceof qt ? o = fr(fr([], hr(o)), hr(B.errors)) : o.push(B);
|
|
4578
4580
|
}
|
|
4579
4581
|
}
|
|
4580
4582
|
} catch (B) {
|
|
4581
|
-
|
|
4583
|
+
n = { error: B };
|
|
4582
4584
|
} finally {
|
|
4583
4585
|
try {
|
|
4584
4586
|
g && !g.done && (i = d.return) && i.call(d);
|
|
4585
4587
|
} finally {
|
|
4586
|
-
if (
|
|
4587
|
-
throw
|
|
4588
|
+
if (n)
|
|
4589
|
+
throw n.error;
|
|
4588
4590
|
}
|
|
4589
4591
|
}
|
|
4590
4592
|
}
|
|
@@ -4592,48 +4594,48 @@ var Lt = function() {
|
|
|
4592
4594
|
throw new qt(o);
|
|
4593
4595
|
}
|
|
4594
4596
|
}, e.prototype.add = function(t) {
|
|
4595
|
-
var
|
|
4597
|
+
var r;
|
|
4596
4598
|
if (t && t !== this)
|
|
4597
4599
|
if (this.closed)
|
|
4598
|
-
|
|
4600
|
+
Ur(t);
|
|
4599
4601
|
else {
|
|
4600
4602
|
if (t instanceof e) {
|
|
4601
4603
|
if (t.closed || t._hasParent(this))
|
|
4602
4604
|
return;
|
|
4603
4605
|
t._addParent(this);
|
|
4604
4606
|
}
|
|
4605
|
-
(this._finalizers = (
|
|
4607
|
+
(this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
|
|
4606
4608
|
}
|
|
4607
4609
|
}, e.prototype._hasParent = function(t) {
|
|
4608
|
-
var
|
|
4609
|
-
return
|
|
4610
|
+
var r = this._parentage;
|
|
4611
|
+
return r === t || Array.isArray(r) && r.includes(t);
|
|
4610
4612
|
}, e.prototype._addParent = function(t) {
|
|
4611
|
-
var
|
|
4612
|
-
this._parentage = Array.isArray(
|
|
4613
|
+
var r = this._parentage;
|
|
4614
|
+
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
4613
4615
|
}, e.prototype._removeParent = function(t) {
|
|
4614
|
-
var
|
|
4615
|
-
|
|
4616
|
+
var r = this._parentage;
|
|
4617
|
+
r === t ? this._parentage = null : Array.isArray(r) && dr(r, t);
|
|
4616
4618
|
}, e.prototype.remove = function(t) {
|
|
4617
|
-
var
|
|
4618
|
-
|
|
4619
|
+
var r = this._finalizers;
|
|
4620
|
+
r && dr(r, t), t instanceof e && t._removeParent(this);
|
|
4619
4621
|
}, e.EMPTY = function() {
|
|
4620
4622
|
var t = new e();
|
|
4621
4623
|
return t.closed = !0, t;
|
|
4622
4624
|
}(), e;
|
|
4623
|
-
}(),
|
|
4624
|
-
function
|
|
4625
|
+
}(), Hn = Lt.EMPTY;
|
|
4626
|
+
function On(e) {
|
|
4625
4627
|
return e instanceof Lt || e && "closed" in e && Le(e.remove) && Le(e.add) && Le(e.unsubscribe);
|
|
4626
4628
|
}
|
|
4627
|
-
function
|
|
4629
|
+
function Ur(e) {
|
|
4628
4630
|
Le(e) ? e() : e.unsubscribe();
|
|
4629
4631
|
}
|
|
4630
4632
|
var ia = {
|
|
4631
4633
|
Promise: void 0
|
|
4632
4634
|
}, oa = {
|
|
4633
4635
|
setTimeout: function(e, t) {
|
|
4634
|
-
for (var
|
|
4635
|
-
n
|
|
4636
|
-
return setTimeout.apply(void 0,
|
|
4636
|
+
for (var r = [], n = 2; n < arguments.length; n++)
|
|
4637
|
+
r[n - 2] = arguments[n];
|
|
4638
|
+
return setTimeout.apply(void 0, fr([e, t], hr(r)));
|
|
4637
4639
|
},
|
|
4638
4640
|
clearTimeout: function(e) {
|
|
4639
4641
|
return clearTimeout(e);
|
|
@@ -4645,32 +4647,32 @@ function aa(e) {
|
|
|
4645
4647
|
throw e;
|
|
4646
4648
|
});
|
|
4647
4649
|
}
|
|
4648
|
-
function
|
|
4650
|
+
function Fr() {
|
|
4649
4651
|
}
|
|
4650
4652
|
function Et(e) {
|
|
4651
4653
|
e();
|
|
4652
4654
|
}
|
|
4653
|
-
var
|
|
4655
|
+
var Ln = function(e) {
|
|
4654
4656
|
dt(t, e);
|
|
4655
|
-
function t(
|
|
4656
|
-
var
|
|
4657
|
-
return
|
|
4657
|
+
function t(r) {
|
|
4658
|
+
var n = e.call(this) || this;
|
|
4659
|
+
return n.isStopped = !1, r ? (n.destination = r, On(r) && r.add(n)) : n.destination = la, n;
|
|
4658
4660
|
}
|
|
4659
|
-
return t.create = function(
|
|
4660
|
-
return new
|
|
4661
|
-
}, t.prototype.next = function(
|
|
4662
|
-
this.isStopped || this._next(
|
|
4663
|
-
}, t.prototype.error = function(
|
|
4664
|
-
this.isStopped || (this.isStopped = !0, this._error(
|
|
4661
|
+
return t.create = function(r, n, i) {
|
|
4662
|
+
return new pr(r, n, i);
|
|
4663
|
+
}, t.prototype.next = function(r) {
|
|
4664
|
+
this.isStopped || this._next(r);
|
|
4665
|
+
}, t.prototype.error = function(r) {
|
|
4666
|
+
this.isStopped || (this.isStopped = !0, this._error(r));
|
|
4665
4667
|
}, t.prototype.complete = function() {
|
|
4666
4668
|
this.isStopped || (this.isStopped = !0, this._complete());
|
|
4667
4669
|
}, t.prototype.unsubscribe = function() {
|
|
4668
4670
|
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
4669
|
-
}, t.prototype._next = function(
|
|
4670
|
-
this.destination.next(
|
|
4671
|
-
}, t.prototype._error = function(
|
|
4671
|
+
}, t.prototype._next = function(r) {
|
|
4672
|
+
this.destination.next(r);
|
|
4673
|
+
}, t.prototype._error = function(r) {
|
|
4672
4674
|
try {
|
|
4673
|
-
this.destination.error(
|
|
4675
|
+
this.destination.error(r);
|
|
4674
4676
|
} finally {
|
|
4675
4677
|
this.unsubscribe();
|
|
4676
4678
|
}
|
|
@@ -4686,20 +4688,20 @@ var Lr = function(e) {
|
|
|
4686
4688
|
this.partialObserver = t;
|
|
4687
4689
|
}
|
|
4688
4690
|
return e.prototype.next = function(t) {
|
|
4689
|
-
var
|
|
4690
|
-
if (
|
|
4691
|
+
var r = this.partialObserver;
|
|
4692
|
+
if (r.next)
|
|
4691
4693
|
try {
|
|
4692
|
-
|
|
4693
|
-
} catch (
|
|
4694
|
-
gt(
|
|
4694
|
+
r.next(t);
|
|
4695
|
+
} catch (n) {
|
|
4696
|
+
gt(n);
|
|
4695
4697
|
}
|
|
4696
4698
|
}, e.prototype.error = function(t) {
|
|
4697
|
-
var
|
|
4698
|
-
if (
|
|
4699
|
+
var r = this.partialObserver;
|
|
4700
|
+
if (r.error)
|
|
4699
4701
|
try {
|
|
4700
|
-
|
|
4701
|
-
} catch (
|
|
4702
|
-
gt(
|
|
4702
|
+
r.error(t);
|
|
4703
|
+
} catch (n) {
|
|
4704
|
+
gt(n);
|
|
4703
4705
|
}
|
|
4704
4706
|
else
|
|
4705
4707
|
gt(t);
|
|
@@ -4708,22 +4710,22 @@ var Lr = function(e) {
|
|
|
4708
4710
|
if (t.complete)
|
|
4709
4711
|
try {
|
|
4710
4712
|
t.complete();
|
|
4711
|
-
} catch (
|
|
4712
|
-
gt(
|
|
4713
|
+
} catch (r) {
|
|
4714
|
+
gt(r);
|
|
4713
4715
|
}
|
|
4714
4716
|
}, e;
|
|
4715
|
-
}(),
|
|
4717
|
+
}(), pr = function(e) {
|
|
4716
4718
|
dt(t, e);
|
|
4717
|
-
function t(
|
|
4719
|
+
function t(r, n, i) {
|
|
4718
4720
|
var o = e.call(this) || this, a;
|
|
4719
|
-
return Le(
|
|
4720
|
-
next:
|
|
4721
|
-
error:
|
|
4721
|
+
return Le(r) || !r ? a = {
|
|
4722
|
+
next: r != null ? r : void 0,
|
|
4723
|
+
error: n != null ? n : void 0,
|
|
4722
4724
|
complete: i != null ? i : void 0
|
|
4723
|
-
} : a =
|
|
4725
|
+
} : a = r, o.destination = new sa(a), o;
|
|
4724
4726
|
}
|
|
4725
4727
|
return t;
|
|
4726
|
-
}(
|
|
4728
|
+
}(Ln);
|
|
4727
4729
|
function gt(e) {
|
|
4728
4730
|
aa(e);
|
|
4729
4731
|
}
|
|
@@ -4732,9 +4734,9 @@ function ua(e) {
|
|
|
4732
4734
|
}
|
|
4733
4735
|
var la = {
|
|
4734
4736
|
closed: !0,
|
|
4735
|
-
next:
|
|
4737
|
+
next: Fr,
|
|
4736
4738
|
error: ua,
|
|
4737
|
-
complete:
|
|
4739
|
+
complete: Fr
|
|
4738
4740
|
}, ca = function() {
|
|
4739
4741
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4740
4742
|
}();
|
|
@@ -4742,21 +4744,21 @@ function ha(e) {
|
|
|
4742
4744
|
return e;
|
|
4743
4745
|
}
|
|
4744
4746
|
function fa(e) {
|
|
4745
|
-
return e.length === 0 ? ha : e.length === 1 ? e[0] : function(
|
|
4746
|
-
return e.reduce(function(
|
|
4747
|
-
return i(
|
|
4748
|
-
},
|
|
4747
|
+
return e.length === 0 ? ha : e.length === 1 ? e[0] : function(r) {
|
|
4748
|
+
return e.reduce(function(n, i) {
|
|
4749
|
+
return i(n);
|
|
4750
|
+
}, r);
|
|
4749
4751
|
};
|
|
4750
4752
|
}
|
|
4751
|
-
var
|
|
4753
|
+
var Gr = function() {
|
|
4752
4754
|
function e(t) {
|
|
4753
4755
|
t && (this._subscribe = t);
|
|
4754
4756
|
}
|
|
4755
4757
|
return e.prototype.lift = function(t) {
|
|
4756
|
-
var
|
|
4757
|
-
return
|
|
4758
|
-
}, e.prototype.subscribe = function(t,
|
|
4759
|
-
var i = this, o = pa(t) ? t : new
|
|
4758
|
+
var r = new e();
|
|
4759
|
+
return r.source = this, r.operator = t, r;
|
|
4760
|
+
}, e.prototype.subscribe = function(t, r, n) {
|
|
4761
|
+
var i = this, o = pa(t) ? t : new pr(t, r, n);
|
|
4760
4762
|
return Et(function() {
|
|
4761
4763
|
var a = i, s = a.operator, c = a.source;
|
|
4762
4764
|
o.add(s ? s.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -4764,13 +4766,13 @@ var jn = function() {
|
|
|
4764
4766
|
}, e.prototype._trySubscribe = function(t) {
|
|
4765
4767
|
try {
|
|
4766
4768
|
return this._subscribe(t);
|
|
4767
|
-
} catch (
|
|
4768
|
-
t.error(
|
|
4769
|
+
} catch (r) {
|
|
4770
|
+
t.error(r);
|
|
4769
4771
|
}
|
|
4770
|
-
}, e.prototype.forEach = function(t,
|
|
4771
|
-
var
|
|
4772
|
-
return
|
|
4773
|
-
var a = new
|
|
4772
|
+
}, e.prototype.forEach = function(t, r) {
|
|
4773
|
+
var n = this;
|
|
4774
|
+
return r = jr(r), new r(function(i, o) {
|
|
4775
|
+
var a = new pr({
|
|
4774
4776
|
next: function(s) {
|
|
4775
4777
|
try {
|
|
4776
4778
|
t(s);
|
|
@@ -4781,34 +4783,34 @@ var jn = function() {
|
|
|
4781
4783
|
error: o,
|
|
4782
4784
|
complete: i
|
|
4783
4785
|
});
|
|
4784
|
-
|
|
4786
|
+
n.subscribe(a);
|
|
4785
4787
|
});
|
|
4786
4788
|
}, e.prototype._subscribe = function(t) {
|
|
4787
|
-
var
|
|
4788
|
-
return (
|
|
4789
|
+
var r;
|
|
4790
|
+
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
4789
4791
|
}, e.prototype[ca] = function() {
|
|
4790
4792
|
return this;
|
|
4791
4793
|
}, e.prototype.pipe = function() {
|
|
4792
|
-
for (var t = [],
|
|
4793
|
-
t[
|
|
4794
|
+
for (var t = [], r = 0; r < arguments.length; r++)
|
|
4795
|
+
t[r] = arguments[r];
|
|
4794
4796
|
return fa(t)(this);
|
|
4795
4797
|
}, e.prototype.toPromise = function(t) {
|
|
4796
|
-
var
|
|
4797
|
-
return t =
|
|
4798
|
+
var r = this;
|
|
4799
|
+
return t = jr(t), new t(function(n, i) {
|
|
4798
4800
|
var o;
|
|
4799
|
-
|
|
4801
|
+
r.subscribe(function(a) {
|
|
4800
4802
|
return o = a;
|
|
4801
4803
|
}, function(a) {
|
|
4802
4804
|
return i(a);
|
|
4803
4805
|
}, function() {
|
|
4804
|
-
return
|
|
4806
|
+
return n(o);
|
|
4805
4807
|
});
|
|
4806
4808
|
});
|
|
4807
4809
|
}, e.create = function(t) {
|
|
4808
4810
|
return new e(t);
|
|
4809
4811
|
}, e;
|
|
4810
4812
|
}();
|
|
4811
|
-
function
|
|
4813
|
+
function jr(e) {
|
|
4812
4814
|
var t;
|
|
4813
4815
|
return (t = e != null ? e : ia.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4814
4816
|
}
|
|
@@ -4816,34 +4818,34 @@ function da(e) {
|
|
|
4816
4818
|
return e && Le(e.next) && Le(e.error) && Le(e.complete);
|
|
4817
4819
|
}
|
|
4818
4820
|
function pa(e) {
|
|
4819
|
-
return e && e instanceof
|
|
4821
|
+
return e && e instanceof Ln || da(e) && On(e);
|
|
4820
4822
|
}
|
|
4821
|
-
var ma =
|
|
4823
|
+
var ma = Cn(function(e) {
|
|
4822
4824
|
return function() {
|
|
4823
4825
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4824
4826
|
};
|
|
4825
|
-
}),
|
|
4827
|
+
}), Rn = function(e) {
|
|
4826
4828
|
dt(t, e);
|
|
4827
4829
|
function t() {
|
|
4828
|
-
var
|
|
4829
|
-
return
|
|
4830
|
+
var r = e.call(this) || this;
|
|
4831
|
+
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
4830
4832
|
}
|
|
4831
|
-
return t.prototype.lift = function(
|
|
4832
|
-
var
|
|
4833
|
-
return
|
|
4833
|
+
return t.prototype.lift = function(r) {
|
|
4834
|
+
var n = new kr(this, this);
|
|
4835
|
+
return n.operator = r, n;
|
|
4834
4836
|
}, t.prototype._throwIfClosed = function() {
|
|
4835
4837
|
if (this.closed)
|
|
4836
4838
|
throw new ma();
|
|
4837
|
-
}, t.prototype.next = function(
|
|
4838
|
-
var
|
|
4839
|
+
}, t.prototype.next = function(r) {
|
|
4840
|
+
var n = this;
|
|
4839
4841
|
Et(function() {
|
|
4840
4842
|
var i, o;
|
|
4841
|
-
if (
|
|
4842
|
-
|
|
4843
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
4844
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
4843
4845
|
try {
|
|
4844
|
-
for (var a =
|
|
4846
|
+
for (var a = cr(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
4845
4847
|
var c = s.value;
|
|
4846
|
-
c.next(
|
|
4848
|
+
c.next(r);
|
|
4847
4849
|
}
|
|
4848
4850
|
} catch (u) {
|
|
4849
4851
|
i = { error: u };
|
|
@@ -4857,134 +4859,135 @@ var ma = Cr(function(e) {
|
|
|
4857
4859
|
}
|
|
4858
4860
|
}
|
|
4859
4861
|
});
|
|
4860
|
-
}, t.prototype.error = function(
|
|
4861
|
-
var
|
|
4862
|
+
}, t.prototype.error = function(r) {
|
|
4863
|
+
var n = this;
|
|
4862
4864
|
Et(function() {
|
|
4863
|
-
if (
|
|
4864
|
-
|
|
4865
|
-
for (var i =
|
|
4866
|
-
i.shift().error(
|
|
4865
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
4866
|
+
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
4867
|
+
for (var i = n.observers; i.length; )
|
|
4868
|
+
i.shift().error(r);
|
|
4867
4869
|
}
|
|
4868
4870
|
});
|
|
4869
4871
|
}, t.prototype.complete = function() {
|
|
4870
|
-
var
|
|
4872
|
+
var r = this;
|
|
4871
4873
|
Et(function() {
|
|
4872
|
-
if (
|
|
4873
|
-
|
|
4874
|
-
for (var
|
|
4875
|
-
|
|
4874
|
+
if (r._throwIfClosed(), !r.isStopped) {
|
|
4875
|
+
r.isStopped = !0;
|
|
4876
|
+
for (var n = r.observers; n.length; )
|
|
4877
|
+
n.shift().complete();
|
|
4876
4878
|
}
|
|
4877
4879
|
});
|
|
4878
4880
|
}, t.prototype.unsubscribe = function() {
|
|
4879
4881
|
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
4880
4882
|
}, Object.defineProperty(t.prototype, "observed", {
|
|
4881
4883
|
get: function() {
|
|
4882
|
-
var
|
|
4883
|
-
return ((
|
|
4884
|
+
var r;
|
|
4885
|
+
return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
|
|
4884
4886
|
},
|
|
4885
4887
|
enumerable: !1,
|
|
4886
4888
|
configurable: !0
|
|
4887
|
-
}), t.prototype._trySubscribe = function(
|
|
4888
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this,
|
|
4889
|
-
}, t.prototype._subscribe = function(
|
|
4890
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(
|
|
4891
|
-
}, t.prototype._innerSubscribe = function(
|
|
4892
|
-
var
|
|
4893
|
-
return o || a ?
|
|
4894
|
-
|
|
4889
|
+
}), t.prototype._trySubscribe = function(r) {
|
|
4890
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
|
|
4891
|
+
}, t.prototype._subscribe = function(r) {
|
|
4892
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
4893
|
+
}, t.prototype._innerSubscribe = function(r) {
|
|
4894
|
+
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
4895
|
+
return o || a ? Hn : (this.currentObservers = null, s.push(r), new Lt(function() {
|
|
4896
|
+
n.currentObservers = null, dr(s, r);
|
|
4895
4897
|
}));
|
|
4896
|
-
}, t.prototype._checkFinalizedStatuses = function(
|
|
4897
|
-
var
|
|
4898
|
-
i ?
|
|
4898
|
+
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
4899
|
+
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
4900
|
+
i ? r.error(o) : a && r.complete();
|
|
4899
4901
|
}, t.prototype.asObservable = function() {
|
|
4900
|
-
var
|
|
4901
|
-
return
|
|
4902
|
-
}, t.create = function(
|
|
4903
|
-
return new
|
|
4902
|
+
var r = new Gr();
|
|
4903
|
+
return r.source = this, r;
|
|
4904
|
+
}, t.create = function(r, n) {
|
|
4905
|
+
return new kr(r, n);
|
|
4904
4906
|
}, t;
|
|
4905
|
-
}(
|
|
4907
|
+
}(Gr), kr = function(e) {
|
|
4906
4908
|
dt(t, e);
|
|
4907
|
-
function t(
|
|
4909
|
+
function t(r, n) {
|
|
4908
4910
|
var i = e.call(this) || this;
|
|
4909
|
-
return i.destination =
|
|
4911
|
+
return i.destination = r, i.source = n, i;
|
|
4910
4912
|
}
|
|
4911
|
-
return t.prototype.next = function(
|
|
4912
|
-
var
|
|
4913
|
-
(i = (
|
|
4914
|
-
}, t.prototype.error = function(
|
|
4915
|
-
var
|
|
4916
|
-
(i = (
|
|
4913
|
+
return t.prototype.next = function(r) {
|
|
4914
|
+
var n, i;
|
|
4915
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
|
|
4916
|
+
}, t.prototype.error = function(r) {
|
|
4917
|
+
var n, i;
|
|
4918
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
|
|
4917
4919
|
}, t.prototype.complete = function() {
|
|
4918
|
-
var
|
|
4919
|
-
(
|
|
4920
|
-
}, t.prototype._subscribe = function(
|
|
4921
|
-
var
|
|
4922
|
-
return (i = (
|
|
4920
|
+
var r, n;
|
|
4921
|
+
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
4922
|
+
}, t.prototype._subscribe = function(r) {
|
|
4923
|
+
var n, i;
|
|
4924
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Hn;
|
|
4923
4925
|
}, t;
|
|
4924
|
-
}(
|
|
4926
|
+
}(Rn), Mn = {
|
|
4925
4927
|
now: function() {
|
|
4926
|
-
return (
|
|
4928
|
+
return (Mn.delegate || Date).now();
|
|
4927
4929
|
},
|
|
4928
4930
|
delegate: void 0
|
|
4929
4931
|
}, ba = function(e) {
|
|
4930
4932
|
dt(t, e);
|
|
4931
|
-
function t(
|
|
4932
|
-
|
|
4933
|
+
function t(r, n, i) {
|
|
4934
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mn);
|
|
4933
4935
|
var o = e.call(this) || this;
|
|
4934
|
-
return o._bufferSize =
|
|
4936
|
+
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
4935
4937
|
}
|
|
4936
|
-
return t.prototype.next = function(
|
|
4937
|
-
var
|
|
4938
|
-
i || (o.push(
|
|
4939
|
-
}, t.prototype._subscribe = function(
|
|
4938
|
+
return t.prototype.next = function(r) {
|
|
4939
|
+
var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, c = n._windowTime;
|
|
4940
|
+
i || (o.push(r), !a && o.push(s.now() + c)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
4941
|
+
}, t.prototype._subscribe = function(r) {
|
|
4940
4942
|
this._throwIfClosed(), this._trimBuffer();
|
|
4941
|
-
for (var
|
|
4942
|
-
|
|
4943
|
-
return this._checkFinalizedStatuses(
|
|
4943
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), c = 0; c < s.length && !r.closed; c += o ? 1 : 2)
|
|
4944
|
+
r.next(s[c]);
|
|
4945
|
+
return this._checkFinalizedStatuses(r), n;
|
|
4944
4946
|
}, t.prototype._trimBuffer = function() {
|
|
4945
|
-
var
|
|
4946
|
-
if (
|
|
4947
|
+
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
|
|
4948
|
+
if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
|
|
4947
4949
|
for (var c = i.now(), u = 0, f = 1; f < o.length && o[f] <= c; f += 2)
|
|
4948
4950
|
u = f;
|
|
4949
4951
|
u && o.splice(0, u + 1);
|
|
4950
4952
|
}
|
|
4951
4953
|
}, t;
|
|
4952
|
-
}(
|
|
4953
|
-
const
|
|
4954
|
-
if (
|
|
4955
|
-
const
|
|
4956
|
-
|
|
4954
|
+
}(Rn);
|
|
4955
|
+
const $r = [], Vr = {}, ga = (e, t = 0) => {
|
|
4956
|
+
if ($r.indexOf(e) == -1) {
|
|
4957
|
+
const r = new ba(t);
|
|
4958
|
+
Vr[e] = r, $r.push(e);
|
|
4957
4959
|
}
|
|
4958
|
-
return
|
|
4960
|
+
return Vr[e];
|
|
4959
4961
|
};
|
|
4960
4962
|
window.emWidgets = { topic: ga };
|
|
4961
4963
|
const ya = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4964
|
+
String(Number.MAX_SAFE_INTEGER).length;
|
|
4962
4965
|
function va(e) {
|
|
4963
|
-
|
|
4966
|
+
kn(e, "svelte-15fwckg", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px;gap:5px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
4964
4967
|
}
|
|
4965
|
-
function
|
|
4966
|
-
const
|
|
4967
|
-
return
|
|
4968
|
+
function Xr(e, t, r) {
|
|
4969
|
+
const n = e.slice();
|
|
4970
|
+
return n[61] = t[r], n;
|
|
4968
4971
|
}
|
|
4969
|
-
function
|
|
4970
|
-
const
|
|
4971
|
-
return
|
|
4972
|
+
function zr(e, t, r) {
|
|
4973
|
+
const n = e.slice();
|
|
4974
|
+
return n[64] = t[r], n;
|
|
4972
4975
|
}
|
|
4973
4976
|
function _a(e) {
|
|
4974
|
-
let t,
|
|
4977
|
+
let t, r, n, i, o, a, s, c, u, f, m, d, g = (
|
|
4975
4978
|
/*showBalance*/
|
|
4976
|
-
e[5] &&
|
|
4979
|
+
e[5] && Wr(e)
|
|
4977
4980
|
);
|
|
4978
4981
|
return {
|
|
4979
4982
|
c() {
|
|
4980
|
-
t = X("button"),
|
|
4983
|
+
t = X("button"), r = X("p"), n = Te(
|
|
4981
4984
|
/*displayBalance*/
|
|
4982
4985
|
e[7]
|
|
4983
|
-
), i = Be(), o = X("span"), a =
|
|
4986
|
+
), i = Be(), o = X("span"), a = Er("svg"), s = Er("path"), u = Be(), g && g.c(), f = Xn(), M(s, "id", "arrow"), M(s, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(s, "transform", "translate(-274.511 -441.088)"), M(s, "fill", "#d1d1d1"), M(a, "xmlns", "http://www.w3.org/2000/svg"), M(a, "width", "14"), M(a, "height", "6.835"), M(a, "viewBox", "0 0 14 6.835"), M(o, "class", c = /*isModalDisplayed*/
|
|
4984
4987
|
e[4] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
|
|
4985
4988
|
},
|
|
4986
4989
|
m(v, B) {
|
|
4987
|
-
Ee(v, t, B), I(t,
|
|
4990
|
+
Ee(v, t, B), I(t, r), I(r, n), I(t, i), I(t, o), I(o, a), I(a, s), Ee(v, u, B), g && g.m(v, B), Ee(v, f, B), m || (d = ut(
|
|
4988
4991
|
t,
|
|
4989
4992
|
"click",
|
|
4990
4993
|
/*click_handler*/
|
|
@@ -4994,13 +4997,13 @@ function _a(e) {
|
|
|
4994
4997
|
p(v, B) {
|
|
4995
4998
|
B[0] & /*displayBalance*/
|
|
4996
4999
|
128 && Ie(
|
|
4997
|
-
|
|
5000
|
+
n,
|
|
4998
5001
|
/*displayBalance*/
|
|
4999
5002
|
v[7]
|
|
5000
5003
|
), B[0] & /*isModalDisplayed*/
|
|
5001
5004
|
16 && c !== (c = /*isModalDisplayed*/
|
|
5002
5005
|
v[4] ? "TriangleActive" : "TriangleInactive") && M(o, "class", c), /*showBalance*/
|
|
5003
|
-
v[5] ? g ? g.p(v, B) : (g =
|
|
5006
|
+
v[5] ? g ? g.p(v, B) : (g = Wr(v), g.c(), g.m(f.parentNode, f)) : g && (g.d(1), g = null);
|
|
5004
5007
|
},
|
|
5005
5008
|
d(v) {
|
|
5006
5009
|
v && (_e(t), _e(u), _e(f)), g && g.d(v), m = !1, d();
|
|
@@ -5008,29 +5011,29 @@ function _a(e) {
|
|
|
5008
5011
|
};
|
|
5009
5012
|
}
|
|
5010
5013
|
function Ea(e) {
|
|
5011
|
-
let t,
|
|
5014
|
+
let t, r = (
|
|
5012
5015
|
/*$_*/
|
|
5013
5016
|
e[8]("Loading") + ""
|
|
5014
|
-
),
|
|
5017
|
+
), n;
|
|
5015
5018
|
return {
|
|
5016
5019
|
c() {
|
|
5017
|
-
t = X("p"),
|
|
5020
|
+
t = X("p"), n = Te(r), M(t, "class", "Loading");
|
|
5018
5021
|
},
|
|
5019
5022
|
m(i, o) {
|
|
5020
|
-
Ee(i, t, o), I(t,
|
|
5023
|
+
Ee(i, t, o), I(t, n);
|
|
5021
5024
|
},
|
|
5022
5025
|
p(i, o) {
|
|
5023
5026
|
o[0] & /*$_*/
|
|
5024
|
-
256 &&
|
|
5025
|
-
i[8]("Loading") + "") && Ie(
|
|
5027
|
+
256 && r !== (r = /*$_*/
|
|
5028
|
+
i[8]("Loading") + "") && Ie(n, r);
|
|
5026
5029
|
},
|
|
5027
5030
|
d(i) {
|
|
5028
5031
|
i && _e(t);
|
|
5029
5032
|
}
|
|
5030
5033
|
};
|
|
5031
5034
|
}
|
|
5032
|
-
function
|
|
5033
|
-
let t,
|
|
5035
|
+
function Wr(e) {
|
|
5036
|
+
let t, r, n, i, o, a, s, c, u = (
|
|
5034
5037
|
/*$_*/
|
|
5035
5038
|
e[8]("Title") + ""
|
|
5036
5039
|
), f, m, d, g, v, B, K = (
|
|
@@ -5041,29 +5044,29 @@ function Zn(e) {
|
|
|
5041
5044
|
e[2]
|
|
5042
5045
|
)), G = [];
|
|
5043
5046
|
for (let P = 0; P < ee.length; P += 1)
|
|
5044
|
-
G[P] =
|
|
5047
|
+
G[P] = qr(Xr(e, ee, P));
|
|
5045
5048
|
let $ = (
|
|
5046
5049
|
/*balancelimitsbutton*/
|
|
5047
|
-
e[0] === "true" &&
|
|
5050
|
+
e[0] === "true" && Yr(e)
|
|
5048
5051
|
);
|
|
5049
5052
|
return {
|
|
5050
5053
|
c() {
|
|
5051
|
-
t = X("div"),
|
|
5054
|
+
t = X("div"), r = X("button"), i = Be(), o = X("div"), a = X("div"), s = X("div"), c = X("p"), f = Te(u), m = Be(), d = X("div");
|
|
5052
5055
|
for (let P = 0; P < G.length; P += 1)
|
|
5053
5056
|
G[P].c();
|
|
5054
|
-
g = Be(), v = X("div"), B = X("button"), oe = Te(K), se = Be(), $ && $.c(), M(
|
|
5057
|
+
g = Be(), v = X("div"), B = X("button"), oe = Te(K), se = Be(), $ && $.c(), M(r, "class", n = "BalanceModalClose " + /*isModalDisplayed*/
|
|
5055
5058
|
(e[4] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(d, "class", "BalanceModalBody"), M(B, "class", "BalanceModalAction DepositButton"), M(v, "class", "BalanceModalFooter"), M(a, "class", D = "ModalContent " + /*isModalDisplayed*/
|
|
5056
5059
|
(e[4] ? "Open" : "")), M(o, "class", j = "BalanceModal " + /*isModalDisplayed*/
|
|
5057
5060
|
(e[4] ? "Open" : "")), M(t, "class", Y = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
5058
5061
|
(e[4] ? "Open" : ""));
|
|
5059
5062
|
},
|
|
5060
5063
|
m(P, W) {
|
|
5061
|
-
Ee(P, t, W), I(t,
|
|
5064
|
+
Ee(P, t, W), I(t, r), I(t, i), I(t, o), I(o, a), I(a, s), I(s, c), I(c, f), I(a, m), I(a, d);
|
|
5062
5065
|
for (let z = 0; z < G.length; z += 1)
|
|
5063
5066
|
G[z] && G[z].m(d, null);
|
|
5064
5067
|
I(a, g), I(a, v), I(v, B), I(B, oe), I(v, se), $ && $.m(v, null), ae || (me = [
|
|
5065
5068
|
ut(
|
|
5066
|
-
|
|
5069
|
+
r,
|
|
5067
5070
|
"click",
|
|
5068
5071
|
/*click_handler_1*/
|
|
5069
5072
|
e[33]
|
|
@@ -5078,8 +5081,8 @@ function Zn(e) {
|
|
|
5078
5081
|
},
|
|
5079
5082
|
p(P, W) {
|
|
5080
5083
|
if (W[0] & /*isModalDisplayed*/
|
|
5081
|
-
16 &&
|
|
5082
|
-
(P[4] ? "Open" : "")) && M(
|
|
5084
|
+
16 && n !== (n = "BalanceModalClose " + /*isModalDisplayed*/
|
|
5085
|
+
(P[4] ? "Open" : "")) && M(r, "class", n), W[0] & /*$_*/
|
|
5083
5086
|
256 && u !== (u = /*$_*/
|
|
5084
5087
|
P[8]("Title") + "") && Ie(f, u), W[0] & /*balances, formatBalance, getProductType, $_*/
|
|
5085
5088
|
5380) {
|
|
@@ -5089,8 +5092,8 @@ function Zn(e) {
|
|
|
5089
5092
|
));
|
|
5090
5093
|
let z;
|
|
5091
5094
|
for (z = 0; z < ee.length; z += 1) {
|
|
5092
|
-
const Re =
|
|
5093
|
-
G[z] ? G[z].p(Re, W) : (G[z] =
|
|
5095
|
+
const Re = Xr(P, ee, z);
|
|
5096
|
+
G[z] ? G[z].p(Re, W) : (G[z] = qr(Re), G[z].c(), G[z].m(d, null));
|
|
5094
5097
|
}
|
|
5095
5098
|
for (; z < G.length; z += 1)
|
|
5096
5099
|
G[z].d(1);
|
|
@@ -5099,7 +5102,7 @@ function Zn(e) {
|
|
|
5099
5102
|
W[0] & /*$_*/
|
|
5100
5103
|
256 && K !== (K = /*$_*/
|
|
5101
5104
|
P[8]("DepositButton") + "") && Ie(oe, K), /*balancelimitsbutton*/
|
|
5102
|
-
P[0] === "true" ? $ ? $.p(P, W) : ($ =
|
|
5105
|
+
P[0] === "true" ? $ ? $.p(P, W) : ($ = Yr(P), $.c(), $.m(v, null)) : $ && ($.d(1), $ = null), W[0] & /*isModalDisplayed*/
|
|
5103
5106
|
16 && D !== (D = "ModalContent " + /*isModalDisplayed*/
|
|
5104
5107
|
(P[4] ? "Open" : "")) && M(a, "class", D), W[0] & /*isModalDisplayed*/
|
|
5105
5108
|
16 && j !== (j = "BalanceModal " + /*isModalDisplayed*/
|
|
@@ -5108,12 +5111,12 @@ function Zn(e) {
|
|
|
5108
5111
|
(P[4] ? "Open" : "")) && M(t, "class", Y);
|
|
5109
5112
|
},
|
|
5110
5113
|
d(P) {
|
|
5111
|
-
P && _e(t),
|
|
5114
|
+
P && _e(t), tn(G, P), $ && $.d(), ae = !1, Qe(me);
|
|
5112
5115
|
}
|
|
5113
5116
|
};
|
|
5114
5117
|
}
|
|
5115
|
-
function
|
|
5116
|
-
let t,
|
|
5118
|
+
function Zr(e) {
|
|
5119
|
+
let t, r, n = (
|
|
5117
5120
|
/*$_*/
|
|
5118
5121
|
e[8](
|
|
5119
5122
|
/*k*/
|
|
@@ -5134,18 +5137,18 @@ function qn(e) {
|
|
|
5134
5137
|
), d;
|
|
5135
5138
|
return {
|
|
5136
5139
|
c() {
|
|
5137
|
-
t = X("div"),
|
|
5140
|
+
t = X("div"), r = X("p"), i = Te(n), o = Be(), s = Te(a), c = Be(), u = X("p"), f = X("span"), d = Te(m), M(r, "class", "BalanceModalText"), M(f, "class", "BalanceModalAmount"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
|
|
5138
5141
|
},
|
|
5139
5142
|
m(g, v) {
|
|
5140
|
-
Ee(g, t, v), I(t,
|
|
5143
|
+
Ee(g, t, v), I(t, r), I(r, i), I(r, o), I(r, s), I(t, c), I(t, u), I(u, f), I(f, d);
|
|
5141
5144
|
},
|
|
5142
5145
|
p(g, v) {
|
|
5143
5146
|
v[0] & /*$_, balances*/
|
|
5144
|
-
260 &&
|
|
5147
|
+
260 && n !== (n = /*$_*/
|
|
5145
5148
|
g[8](
|
|
5146
5149
|
/*k*/
|
|
5147
5150
|
g[61]
|
|
5148
|
-
) + "") && Ie(i,
|
|
5151
|
+
) + "") && Ie(i, n), v[0] & /*balances*/
|
|
5149
5152
|
4 && a !== (a = /*getProductType*/
|
|
5150
5153
|
g[12](
|
|
5151
5154
|
/*balance*/
|
|
@@ -5162,33 +5165,33 @@ function qn(e) {
|
|
|
5162
5165
|
}
|
|
5163
5166
|
};
|
|
5164
5167
|
}
|
|
5165
|
-
function
|
|
5166
|
-
let t,
|
|
5168
|
+
function qr(e) {
|
|
5169
|
+
let t, r, n = xt(
|
|
5167
5170
|
/*balances*/
|
|
5168
5171
|
e[2][
|
|
5169
5172
|
/*k*/
|
|
5170
5173
|
e[61]
|
|
5171
5174
|
]
|
|
5172
5175
|
), i = [];
|
|
5173
|
-
for (let o = 0; o <
|
|
5174
|
-
i[o] =
|
|
5176
|
+
for (let o = 0; o < n.length; o += 1)
|
|
5177
|
+
i[o] = Zr(zr(e, n, o));
|
|
5175
5178
|
return {
|
|
5176
5179
|
c() {
|
|
5177
5180
|
t = X("div");
|
|
5178
5181
|
for (let o = 0; o < i.length; o += 1)
|
|
5179
5182
|
i[o].c();
|
|
5180
|
-
|
|
5183
|
+
r = Be(), M(t, "class", "BalanceModalRowBoth");
|
|
5181
5184
|
},
|
|
5182
5185
|
m(o, a) {
|
|
5183
5186
|
Ee(o, t, a);
|
|
5184
5187
|
for (let s = 0; s < i.length; s += 1)
|
|
5185
5188
|
i[s] && i[s].m(t, null);
|
|
5186
|
-
I(t,
|
|
5189
|
+
I(t, r);
|
|
5187
5190
|
},
|
|
5188
5191
|
p(o, a) {
|
|
5189
5192
|
if (a[0] & /*formatBalance, balances, getProductType, $_*/
|
|
5190
5193
|
5380) {
|
|
5191
|
-
|
|
5194
|
+
n = xt(
|
|
5192
5195
|
/*balances*/
|
|
5193
5196
|
o[2][
|
|
5194
5197
|
/*k*/
|
|
@@ -5196,31 +5199,31 @@ function Yn(e) {
|
|
|
5196
5199
|
]
|
|
5197
5200
|
);
|
|
5198
5201
|
let s;
|
|
5199
|
-
for (s = 0; s <
|
|
5200
|
-
const c =
|
|
5201
|
-
i[s] ? i[s].p(c, a) : (i[s] =
|
|
5202
|
+
for (s = 0; s < n.length; s += 1) {
|
|
5203
|
+
const c = zr(o, n, s);
|
|
5204
|
+
i[s] ? i[s].p(c, a) : (i[s] = Zr(c), i[s].c(), i[s].m(t, r));
|
|
5202
5205
|
}
|
|
5203
5206
|
for (; s < i.length; s += 1)
|
|
5204
5207
|
i[s].d(1);
|
|
5205
|
-
i.length =
|
|
5208
|
+
i.length = n.length;
|
|
5206
5209
|
}
|
|
5207
5210
|
},
|
|
5208
5211
|
d(o) {
|
|
5209
|
-
o && _e(t),
|
|
5212
|
+
o && _e(t), tn(i, o);
|
|
5210
5213
|
}
|
|
5211
5214
|
};
|
|
5212
5215
|
}
|
|
5213
|
-
function
|
|
5214
|
-
let t,
|
|
5216
|
+
function Yr(e) {
|
|
5217
|
+
let t, r = (
|
|
5215
5218
|
/*$_*/
|
|
5216
5219
|
e[8]("LimitsButton") + ""
|
|
5217
|
-
),
|
|
5220
|
+
), n, i, o;
|
|
5218
5221
|
return {
|
|
5219
5222
|
c() {
|
|
5220
|
-
t = X("button"),
|
|
5223
|
+
t = X("button"), n = Te(r), M(t, "class", "BalanceModalAction LimitsButton");
|
|
5221
5224
|
},
|
|
5222
5225
|
m(a, s) {
|
|
5223
|
-
Ee(a, t, s), I(t,
|
|
5226
|
+
Ee(a, t, s), I(t, n), i || (o = ut(
|
|
5224
5227
|
t,
|
|
5225
5228
|
"click",
|
|
5226
5229
|
/*click_handler_3*/
|
|
@@ -5229,36 +5232,36 @@ function Qn(e) {
|
|
|
5229
5232
|
},
|
|
5230
5233
|
p(a, s) {
|
|
5231
5234
|
s[0] & /*$_*/
|
|
5232
|
-
256 &&
|
|
5233
|
-
a[8]("LimitsButton") + "") && Ie(
|
|
5235
|
+
256 && r !== (r = /*$_*/
|
|
5236
|
+
a[8]("LimitsButton") + "") && Ie(n, r);
|
|
5234
5237
|
},
|
|
5235
5238
|
d(a) {
|
|
5236
5239
|
a && _e(t), i = !1, o();
|
|
5237
5240
|
}
|
|
5238
5241
|
};
|
|
5239
5242
|
}
|
|
5240
|
-
function
|
|
5241
|
-
let t,
|
|
5243
|
+
function Qr(e) {
|
|
5244
|
+
let t, r, n;
|
|
5242
5245
|
return {
|
|
5243
5246
|
c() {
|
|
5244
5247
|
t = X("button"), M(t, "class", "ShowBalanceModalOverlay");
|
|
5245
5248
|
},
|
|
5246
5249
|
m(i, o) {
|
|
5247
|
-
Ee(i, t, o),
|
|
5250
|
+
Ee(i, t, o), r || (n = ut(
|
|
5248
5251
|
t,
|
|
5249
5252
|
"click",
|
|
5250
5253
|
/*click_handler_4*/
|
|
5251
5254
|
e[36]
|
|
5252
|
-
),
|
|
5255
|
+
), r = !0);
|
|
5253
5256
|
},
|
|
5254
5257
|
p: ve,
|
|
5255
5258
|
d(i) {
|
|
5256
|
-
i && _e(t),
|
|
5259
|
+
i && _e(t), r = !1, n();
|
|
5257
5260
|
}
|
|
5258
5261
|
};
|
|
5259
5262
|
}
|
|
5260
5263
|
function xa(e) {
|
|
5261
|
-
let t,
|
|
5264
|
+
let t, r, n, i;
|
|
5262
5265
|
function o(u, f) {
|
|
5263
5266
|
return (
|
|
5264
5267
|
/*isLoading*/
|
|
@@ -5267,21 +5270,21 @@ function xa(e) {
|
|
|
5267
5270
|
}
|
|
5268
5271
|
let a = o(e), s = a(e), c = (
|
|
5269
5272
|
/*showBalance*/
|
|
5270
|
-
e[5] &&
|
|
5273
|
+
e[5] && Qr(e)
|
|
5271
5274
|
);
|
|
5272
5275
|
return {
|
|
5273
5276
|
c() {
|
|
5274
|
-
t = X("div"),
|
|
5277
|
+
t = X("div"), r = X("div"), s.c(), i = Be(), c && c.c(), M(r, "class", n = "ShowBalance " + /*mobileView*/
|
|
5275
5278
|
(e[6] ? "Mobile" : ""));
|
|
5276
5279
|
},
|
|
5277
5280
|
m(u, f) {
|
|
5278
|
-
Ee(u, t, f), I(t,
|
|
5281
|
+
Ee(u, t, f), I(t, r), s.m(r, null), I(t, i), c && c.m(t, null), e[37](t);
|
|
5279
5282
|
},
|
|
5280
5283
|
p(u, f) {
|
|
5281
|
-
a === (a = o(u)) && s ? s.p(u, f) : (s.d(1), s = a(u), s && (s.c(), s.m(
|
|
5282
|
-
64 &&
|
|
5283
|
-
(u[6] ? "Mobile" : "")) && M(
|
|
5284
|
-
u[5] ? c ? c.p(u, f) : (c =
|
|
5284
|
+
a === (a = o(u)) && s ? s.p(u, f) : (s.d(1), s = a(u), s && (s.c(), s.m(r, null))), f[0] & /*mobileView*/
|
|
5285
|
+
64 && n !== (n = "ShowBalance " + /*mobileView*/
|
|
5286
|
+
(u[6] ? "Mobile" : "")) && M(r, "class", n), /*showBalance*/
|
|
5287
|
+
u[5] ? c ? c.p(u, f) : (c = Qr(u), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
|
|
5285
5288
|
},
|
|
5286
5289
|
i: ve,
|
|
5287
5290
|
o: ve,
|
|
@@ -5290,14 +5293,14 @@ function xa(e) {
|
|
|
5290
5293
|
}
|
|
5291
5294
|
};
|
|
5292
5295
|
}
|
|
5293
|
-
function wa(e, t,
|
|
5294
|
-
let
|
|
5295
|
-
|
|
5296
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { lang: s = "en" } = t, { mbsource: c = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: m = "" } = t, { gmversion: d = "gm16" } = t, { displaybalanceoption: g = "All" } = t, { totalcalculationmode: v = "totalCashAmount" } = t, { primarybalancemode: B } = t, { balancelimitsbutton: K = "false" } = t, { hideproducttype: oe = "" } = t, { currencylocale: se = "en" } = t, { currencydisplay: D = "symbol" } = t, { maximumfractiondigits: j = "2" } = t, { minimumfractiondigits: Y = "0" } = t, { customdisplayformat: ae = "" } = t, { alwaysshowdecimals: me = "true" } = t, ee, G = !0, $ = !1, P = !1, W = !1, z = !1, Re = window.navigator.userAgent, Ae, xe = "",
|
|
5296
|
+
function wa(e, t, r) {
|
|
5297
|
+
let n;
|
|
5298
|
+
jn(e, ta, (l) => r(8, n = l));
|
|
5299
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { lang: s = "en" } = t, { mbsource: c = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: m = "" } = t, { gmversion: d = "gm16" } = t, { displaybalanceoption: g = "All" } = t, { totalcalculationmode: v = "totalCashAmount" } = t, { primarybalancemode: B } = t, { balancelimitsbutton: K = "false" } = t, { hideproducttype: oe = "" } = t, { currencylocale: se = "en" } = t, { currencydisplay: D = "symbol" } = t, { maximumfractiondigits: j = "2" } = t, { minimumfractiondigits: Y = "0" } = t, { customdisplayformat: ae = "" } = t, { alwaysshowdecimals: me = "true" } = t, ee, G = !0, $ = !1, P = !1, W = !1, z = !1, Re = window.navigator.userAgent, Ae, xe = "", ne = [], be, Me = "0";
|
|
5297
5300
|
const _ = {}, fe = ["totalCashAmount", "totalRealAmount"], tt = () => {
|
|
5298
|
-
fetch(m).then((l) => l.json()).then((l) => Object.keys(l).forEach((y) =>
|
|
5301
|
+
fetch(m).then((l) => l.json()).then((l) => Object.keys(l).forEach((y) => Ir(y, l[y]))).catch((l) => console.log(l));
|
|
5299
5302
|
};
|
|
5300
|
-
Object.keys(
|
|
5303
|
+
Object.keys(Dr).forEach((l) => Ir(l, Dr[l]));
|
|
5301
5304
|
const Ce = (l) => {
|
|
5302
5305
|
switch (l) {
|
|
5303
5306
|
case "balance":
|
|
@@ -5307,10 +5310,10 @@ function wa(e, t, n) {
|
|
|
5307
5310
|
status: "open"
|
|
5308
5311
|
},
|
|
5309
5312
|
window.location.href
|
|
5310
|
-
),
|
|
5313
|
+
), r(5, W = !0), setTimeout(() => r(4, $ = !0), 150);
|
|
5311
5314
|
break;
|
|
5312
5315
|
case "closebalance":
|
|
5313
|
-
|
|
5316
|
+
r(4, $ = !1), window.postMessage(
|
|
5314
5317
|
{
|
|
5315
5318
|
type: "BalanceModalStatus",
|
|
5316
5319
|
status: "close"
|
|
@@ -5318,13 +5321,13 @@ function wa(e, t, n) {
|
|
|
5318
5321
|
window.location.href
|
|
5319
5322
|
), setTimeout(
|
|
5320
5323
|
() => {
|
|
5321
|
-
|
|
5324
|
+
r(5, W = !1);
|
|
5322
5325
|
},
|
|
5323
5326
|
150
|
|
5324
5327
|
);
|
|
5325
5328
|
break;
|
|
5326
5329
|
}
|
|
5327
|
-
},
|
|
5330
|
+
}, rt = (l) => {
|
|
5328
5331
|
if (ae)
|
|
5329
5332
|
return Rt(l);
|
|
5330
5333
|
const y = se || s, w = {
|
|
@@ -5372,7 +5375,7 @@ function wa(e, t, n) {
|
|
|
5372
5375
|
return y.push(w), y.join("");
|
|
5373
5376
|
}, Mt = () => jt(this, null, function* () {
|
|
5374
5377
|
var y, w, A;
|
|
5375
|
-
|
|
5378
|
+
r(3, G = !0);
|
|
5376
5379
|
const l = new URL(`${a}/v1/player/${i}/account`);
|
|
5377
5380
|
try {
|
|
5378
5381
|
const O = yield fetch(l, {
|
|
@@ -5380,19 +5383,19 @@ function wa(e, t, n) {
|
|
|
5380
5383
|
headers: { "X-SessionID": o }
|
|
5381
5384
|
}), C = yield O.json();
|
|
5382
5385
|
if (O.ok)
|
|
5383
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
5386
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), ne = C.items, xe = (y = ne.find((x) => x.displayName === "Casino")) == null ? void 0 : y.currency, r(2, _.Total = [{ amount: C.totalAmount[xe] }], _), r(
|
|
5384
5387
|
2,
|
|
5385
5388
|
_.Real = [
|
|
5386
5389
|
{
|
|
5387
|
-
amount: (w =
|
|
5390
|
+
amount: (w = ne.find((x) => x.displayName === "Casino")) == null ? void 0 : w.balanceAmount
|
|
5388
5391
|
}
|
|
5389
5392
|
],
|
|
5390
5393
|
_
|
|
5391
|
-
),
|
|
5394
|
+
), r(
|
|
5392
5395
|
2,
|
|
5393
5396
|
_.Bonus = [
|
|
5394
5397
|
{
|
|
5395
|
-
amount: (A =
|
|
5398
|
+
amount: (A = ne.find((x) => x.displayName === "UBS")) == null ? void 0 : A.balanceAmount
|
|
5396
5399
|
}
|
|
5397
5400
|
],
|
|
5398
5401
|
_
|
|
@@ -5402,33 +5405,33 @@ function wa(e, t, n) {
|
|
|
5402
5405
|
} catch (O) {
|
|
5403
5406
|
console.log("Balance error: ", O);
|
|
5404
5407
|
} finally {
|
|
5405
|
-
|
|
5408
|
+
r(3, G = !1);
|
|
5406
5409
|
}
|
|
5407
5410
|
}), Pt = () => {
|
|
5408
|
-
|
|
5411
|
+
r(3, G = !0);
|
|
5409
5412
|
const l = new URL(`${a}/v2/player/${i}/balance`), y = new Headers();
|
|
5410
5413
|
y.append("X-SessionID", o), fetch(l, { method: "GET", headers: y }).then((A) => A.json()).then((A) => {
|
|
5411
|
-
A[v] ||
|
|
5414
|
+
A[v] || r(13, v = fe[0]);
|
|
5412
5415
|
const O = A.items.find((x) => x.type === "Real" && x.walletAccountType === "Ordinary");
|
|
5413
|
-
if (xe = O.currency, P = !!O.productType,
|
|
5416
|
+
if (xe = O.currency, P = !!O.productType, r(2, _.Total = [{ amount: 0 }], _), r(2, _.Real = [], _), r(2, _.Bonus = [], _), r(2, _.Credit = [], _), !P) {
|
|
5414
5417
|
be = {
|
|
5415
5418
|
lastOrdinaryAfterAmount: 0,
|
|
5416
5419
|
showCreditLineAfterAmount: !1
|
|
5417
|
-
},
|
|
5420
|
+
}, r(2, _.Total[0].amount = A[v][xe], _);
|
|
5418
5421
|
for (const x of A.items)
|
|
5419
5422
|
switch (x.type) {
|
|
5420
5423
|
case "Bonus":
|
|
5421
|
-
_.Bonus.length === 0 ? _.Bonus.push({ amount: x.amount }) :
|
|
5424
|
+
_.Bonus.length === 0 ? _.Bonus.push({ amount: x.amount }) : r(2, _.Bonus[0].amount += x.amount, _);
|
|
5422
5425
|
break;
|
|
5423
5426
|
case "Real":
|
|
5424
5427
|
if (x.creditLine && _.Credit.length === 0 && _.Credit.push({ amount: x.creditLine }), v === "totalRealAmount")
|
|
5425
5428
|
continue;
|
|
5426
|
-
_.Real.length === 0 ? _.Real.push({ amount: x.amount }) :
|
|
5429
|
+
_.Real.length === 0 ? _.Real.push({ amount: x.amount }) : r(2, _.Real[0].amount += x.amount, _);
|
|
5427
5430
|
break;
|
|
5428
5431
|
}
|
|
5429
5432
|
for (const [x, Q] of Object.entries(_))
|
|
5430
5433
|
Q.length < 1 && delete _[x];
|
|
5431
|
-
|
|
5434
|
+
r(3, G = !1);
|
|
5432
5435
|
return;
|
|
5433
5436
|
}
|
|
5434
5437
|
be = {
|
|
@@ -5447,7 +5450,7 @@ function wa(e, t, n) {
|
|
|
5447
5450
|
let Q;
|
|
5448
5451
|
switch (x.type) {
|
|
5449
5452
|
case "Bonus":
|
|
5450
|
-
Q = _.Bonus.findIndex((ge) => ge.productType === x.productType), Q > 0 ?
|
|
5453
|
+
Q = _.Bonus.findIndex((ge) => ge.productType === x.productType), Q > 0 ? r(2, _.Bonus[Q].amount += x.amount, _) : _.Bonus.push({
|
|
5451
5454
|
amount: x.amount,
|
|
5452
5455
|
productType: x.productType
|
|
5453
5456
|
});
|
|
@@ -5456,7 +5459,7 @@ function wa(e, t, n) {
|
|
|
5456
5459
|
x.creditLine && _.Credit.push({
|
|
5457
5460
|
amount: x.creditLine,
|
|
5458
5461
|
productType: x.productType
|
|
5459
|
-
}), Q = _.Real.findIndex((ge) => ge.productType === x.productType), Q > 0 ?
|
|
5462
|
+
}), Q = _.Real.findIndex((ge) => ge.productType === x.productType), Q > 0 ? r(2, _.Real[Q].amount += x.amount, _) : _.Real.push({
|
|
5460
5463
|
amount: x.amount,
|
|
5461
5464
|
productType: x.productType
|
|
5462
5465
|
});
|
|
@@ -5466,9 +5469,9 @@ function wa(e, t, n) {
|
|
|
5466
5469
|
pt();
|
|
5467
5470
|
for (const [x, Q] of Object.entries(_))
|
|
5468
5471
|
Q.length < 1 && delete _[x];
|
|
5469
|
-
window.postMessage({ type: "playerBalanceInfo", balance: A }, window.location.href),
|
|
5472
|
+
window.postMessage({ type: "playerBalanceInfo", balance: A }, window.location.href), r(3, G = !1);
|
|
5470
5473
|
}).catch((A) => {
|
|
5471
|
-
throw
|
|
5474
|
+
throw r(3, G = !1), console.log("Balance fetch error", A), new Error("Failed to fetch balance data!");
|
|
5472
5475
|
});
|
|
5473
5476
|
}, De = () => {
|
|
5474
5477
|
if (Ae && Ae.close(), o.length < 1)
|
|
@@ -5485,7 +5488,7 @@ function wa(e, t, n) {
|
|
|
5485
5488
|
const w = {
|
|
5486
5489
|
accept: "text/event-stream",
|
|
5487
5490
|
"X-SessionId": o
|
|
5488
|
-
}, A = new
|
|
5491
|
+
}, A = new na.EventSourcePolyfill(l, { headers: w });
|
|
5489
5492
|
Ae = A, A.addEventListener("message", y);
|
|
5490
5493
|
}, Ge = (l) => {
|
|
5491
5494
|
let y;
|
|
@@ -5505,9 +5508,9 @@ function wa(e, t, n) {
|
|
|
5505
5508
|
}
|
|
5506
5509
|
let w = "0";
|
|
5507
5510
|
const A = y.balanceChange;
|
|
5508
|
-
|
|
5511
|
+
ne = ne.map((x) => (A && A[x.id] && (x = Gt(Ft({}, x), {
|
|
5509
5512
|
balanceAmount: A[x.id].afterAmount
|
|
5510
|
-
})), w = (parseFloat(x == null ? void 0 : x.balanceAmount) + parseFloat(w)).toString(), x)),
|
|
5513
|
+
})), w = (parseFloat(x == null ? void 0 : x.balanceAmount) + parseFloat(w)).toString(), x)), r(2, _.Real = [{ amount: (O = ne[0]) == null ? void 0 : O.balanceAmount }], _), r(2, _.Bonus = [{ amount: (C = ne[1]) == null ? void 0 : C.balanceAmount }], _), r(2, _.Total = [{ amount: Number(w) }], _);
|
|
5511
5514
|
}, ue = (l, y, w) => {
|
|
5512
5515
|
let A = null;
|
|
5513
5516
|
switch (w.walletAccountType) {
|
|
@@ -5528,7 +5531,7 @@ function wa(e, t, n) {
|
|
|
5528
5531
|
for (const w of ["Real", "Bonus"])
|
|
5529
5532
|
for (const A of _[w])
|
|
5530
5533
|
l += Math.max(A.amount, 0);
|
|
5531
|
-
|
|
5534
|
+
r(2, _.Total[0].amount = l, _);
|
|
5532
5535
|
break;
|
|
5533
5536
|
case "totalRealAmount":
|
|
5534
5537
|
if (!P)
|
|
@@ -5536,7 +5539,7 @@ function wa(e, t, n) {
|
|
|
5536
5539
|
let y = 0;
|
|
5537
5540
|
for (const w of _.Real)
|
|
5538
5541
|
y += w.amount;
|
|
5539
|
-
|
|
5542
|
+
r(2, _.Total[0].amount = y, _);
|
|
5540
5543
|
}
|
|
5541
5544
|
}, Nt = (l) => {
|
|
5542
5545
|
const y = Ge(l.data);
|
|
@@ -5548,7 +5551,7 @@ function wa(e, t, n) {
|
|
|
5548
5551
|
return;
|
|
5549
5552
|
const w = y.body.balanceChange;
|
|
5550
5553
|
for (const [A, O] of Object.entries(w))
|
|
5551
|
-
if (v === "totalRealAmount" && A === "Real" && !P &&
|
|
5554
|
+
if (v === "totalRealAmount" && A === "Real" && !P && r(2, _.Total[0].amount = ue(_.Total[0].amount, be, O), _), !!_[A])
|
|
5552
5555
|
for (const C of _[A]) {
|
|
5553
5556
|
if (!P) {
|
|
5554
5557
|
C.amount = A === "Real" ? ue(C.amount, be, O) : O.afterAmount;
|
|
@@ -5557,7 +5560,7 @@ function wa(e, t, n) {
|
|
|
5557
5560
|
O.productType === C.productType && (C.amount = A === "Real" ? ue(C.amount, be[C.productType], O) : O.afterAmount);
|
|
5558
5561
|
}
|
|
5559
5562
|
pt();
|
|
5560
|
-
},
|
|
5563
|
+
}, nt = (l) => {
|
|
5561
5564
|
switch (Ce("closebalance"), l) {
|
|
5562
5565
|
case "deposit":
|
|
5563
5566
|
window.postMessage({ type: "GoToDeposit" }, window.location.href);
|
|
@@ -5568,9 +5571,9 @@ function wa(e, t, n) {
|
|
|
5568
5571
|
}
|
|
5569
5572
|
typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5570
5573
|
}, mt = (l) => l === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, h = () => {
|
|
5571
|
-
fe.includes(v) || (console.error(`Unsupported value ('${v}') for totalcalculationmode parameter. Only the following values are supported ${fe}. Using default value ('${fe[0]}').`),
|
|
5574
|
+
fe.includes(v) || (console.error(`Unsupported value ('${v}') for totalcalculationmode parameter. Only the following values are supported ${fe}. Using default value ('${fe[0]}').`), r(13, v = fe[0]));
|
|
5572
5575
|
}, b = () => {
|
|
5573
|
-
switch (
|
|
5576
|
+
switch (ra(s), h(), d) {
|
|
5574
5577
|
case "gmcore":
|
|
5575
5578
|
Mt();
|
|
5576
5579
|
break;
|
|
@@ -5594,19 +5597,19 @@ function wa(e, t, n) {
|
|
|
5594
5597
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5595
5598
|
}, T = (l) => {
|
|
5596
5599
|
const y = oe.split(",").map((w) => w.trim());
|
|
5597
|
-
return !l.productType || y.includes(l.productType) ? "" :
|
|
5600
|
+
return !l.productType || y.includes(l.productType) ? "" : n(l.productType);
|
|
5598
5601
|
};
|
|
5599
|
-
|
|
5602
|
+
qn(() => (window.addEventListener("message", E, !1), r(6, z = ya(Re)), () => {
|
|
5600
5603
|
window.removeEventListener("message", E), Ae && Ae.close();
|
|
5601
5604
|
}));
|
|
5602
|
-
const S = () => Ce("balance"), H = () => Ce("closebalance"), k = () =>
|
|
5605
|
+
const S = () => Ce("balance"), H = () => Ce("closebalance"), k = () => nt("deposit"), L = () => nt("limits"), U = () => Ce("closebalance");
|
|
5603
5606
|
function F(l) {
|
|
5604
5607
|
Yt[l ? "unshift" : "push"](() => {
|
|
5605
|
-
ee = l,
|
|
5608
|
+
ee = l, r(1, ee);
|
|
5606
5609
|
});
|
|
5607
5610
|
}
|
|
5608
5611
|
return e.$$set = (l) => {
|
|
5609
|
-
"userid" in l &&
|
|
5612
|
+
"userid" in l && r(14, i = l.userid), "session" in l && r(15, o = l.session), "endpoint" in l && r(16, a = l.endpoint), "lang" in l && r(17, s = l.lang), "mbsource" in l && r(18, c = l.mbsource), "clientstyling" in l && r(19, u = l.clientstyling), "clientstylingurl" in l && r(20, f = l.clientstylingurl), "translationurl" in l && r(21, m = l.translationurl), "gmversion" in l && r(22, d = l.gmversion), "displaybalanceoption" in l && r(23, g = l.displaybalanceoption), "totalcalculationmode" in l && r(13, v = l.totalcalculationmode), "primarybalancemode" in l && r(24, B = l.primarybalancemode), "balancelimitsbutton" in l && r(0, K = l.balancelimitsbutton), "hideproducttype" in l && r(25, oe = l.hideproducttype), "currencylocale" in l && r(26, se = l.currencylocale), "currencydisplay" in l && r(27, D = l.currencydisplay), "maximumfractiondigits" in l && r(28, j = l.maximumfractiondigits), "minimumfractiondigits" in l && r(29, Y = l.minimumfractiondigits), "customdisplayformat" in l && r(30, ae = l.customdisplayformat), "alwaysshowdecimals" in l && r(31, me = l.alwaysshowdecimals);
|
|
5610
5613
|
}, e.$$.update = () => {
|
|
5611
5614
|
e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5612
5615
|
12828672 && a && i && o && s && d && g && b(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
@@ -5616,12 +5619,12 @@ function wa(e, t, n) {
|
|
|
5616
5619
|
524290 && u && ee && li(ee, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5617
5620
|
1048578 && f && ee && ci(ee, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5618
5621
|
262146 && c && ee && hi(ee, `${c}.Style`), e.$$.dirty[0] & /*primarybalancemode, balances*/
|
|
5619
|
-
16777220 &&
|
|
5622
|
+
16777220 && r(7, Me = (() => {
|
|
5620
5623
|
switch (B) {
|
|
5621
5624
|
case "Real":
|
|
5622
|
-
return _.Real ?
|
|
5625
|
+
return _.Real ? rt(_.Real[0].amount) : "0";
|
|
5623
5626
|
default:
|
|
5624
|
-
return _.Total ?
|
|
5627
|
+
return _.Total ? rt(_.Total[0].amount) : "0";
|
|
5625
5628
|
}
|
|
5626
5629
|
})());
|
|
5627
5630
|
}, [
|
|
@@ -5633,10 +5636,10 @@ function wa(e, t, n) {
|
|
|
5633
5636
|
W,
|
|
5634
5637
|
z,
|
|
5635
5638
|
Me,
|
|
5636
|
-
|
|
5639
|
+
n,
|
|
5637
5640
|
Ce,
|
|
5638
|
-
nt,
|
|
5639
5641
|
rt,
|
|
5642
|
+
nt,
|
|
5640
5643
|
T,
|
|
5641
5644
|
v,
|
|
5642
5645
|
i,
|
|
@@ -5672,7 +5675,7 @@ class Sa extends si {
|
|
|
5672
5675
|
t,
|
|
5673
5676
|
wa,
|
|
5674
5677
|
xa,
|
|
5675
|
-
|
|
5678
|
+
Kr,
|
|
5676
5679
|
{
|
|
5677
5680
|
userid: 14,
|
|
5678
5681
|
session: 15,
|