@everymatrix/player-account-vault 0.19.13 → 0.19.14
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/{PlayerAccountVault-BtEskMQw.js → PlayerAccountVault-Cb2kA-FN.js} +384 -355
- package/components/{PlayerAccountVault-B-jaJVWl.cjs → PlayerAccountVault-pMFFtO0Q.cjs} +2 -2
- package/components/{PlayerAccountVault-CAoIke7v.js → PlayerAccountVault-vQLu6pvk.js} +609 -580
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function S() {
|
|
2
2
|
}
|
|
3
3
|
function Wn(e) {
|
|
4
4
|
return e();
|
|
@@ -12,7 +12,7 @@ function _e(e) {
|
|
|
12
12
|
function ct(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function It(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
function xr(e) {
|
|
@@ -22,7 +22,7 @@ function zn(e, ...t) {
|
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const r of t)
|
|
24
24
|
r(void 0);
|
|
25
|
-
return
|
|
25
|
+
return S;
|
|
26
26
|
}
|
|
27
27
|
const n = e.subscribe(...t);
|
|
28
28
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
@@ -32,7 +32,7 @@ function wr(e) {
|
|
|
32
32
|
return zn(e, (n) => t = n)(), t;
|
|
33
33
|
}
|
|
34
34
|
function Ar(e) {
|
|
35
|
-
return e && ct(e.destroy) ? e.destroy :
|
|
35
|
+
return e && ct(e.destroy) ? e.destroy : S;
|
|
36
36
|
}
|
|
37
37
|
function y(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
@@ -61,7 +61,7 @@ function Tr(e, t) {
|
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function T(e, t, n) {
|
|
65
65
|
e.insertBefore(t, n || null);
|
|
66
66
|
}
|
|
67
67
|
function A(e) {
|
|
@@ -80,7 +80,7 @@ function mn(e) {
|
|
|
80
80
|
function W(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function I() {
|
|
84
84
|
return W(" ");
|
|
85
85
|
}
|
|
86
86
|
function Br() {
|
|
@@ -113,7 +113,7 @@ function yt(e, t) {
|
|
|
113
113
|
function oe(e, t, n) {
|
|
114
114
|
e.classList.toggle(t, !!n);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Ir(e) {
|
|
117
117
|
const t = {};
|
|
118
118
|
return e.childNodes.forEach(
|
|
119
119
|
/** @param {Element} node */
|
|
@@ -134,7 +134,7 @@ function qn() {
|
|
|
134
134
|
function Kn(e) {
|
|
135
135
|
qn().$$.on_mount.push(e);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Pr(e) {
|
|
138
138
|
qn().$$.on_destroy.push(e);
|
|
139
139
|
}
|
|
140
140
|
const Fe = [], Ve = [];
|
|
@@ -189,17 +189,17 @@ function Or(e) {
|
|
|
189
189
|
Ue.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ue = t;
|
|
190
190
|
}
|
|
191
191
|
const Et = /* @__PURE__ */ new Set();
|
|
192
|
-
let
|
|
193
|
-
function
|
|
194
|
-
|
|
192
|
+
let Ie;
|
|
193
|
+
function Pe() {
|
|
194
|
+
Ie = {
|
|
195
195
|
r: 0,
|
|
196
196
|
c: [],
|
|
197
|
-
p:
|
|
197
|
+
p: Ie
|
|
198
198
|
// parent group
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
function Le() {
|
|
202
|
-
|
|
202
|
+
Ie.r || _e(Ie.c), Ie = Ie.p;
|
|
203
203
|
}
|
|
204
204
|
function G(e, t) {
|
|
205
205
|
e && e.i && (Et.delete(e), e.i(t));
|
|
@@ -208,7 +208,7 @@ function X(e, t, n, r) {
|
|
|
208
208
|
if (e && e.o) {
|
|
209
209
|
if (Et.has(e))
|
|
210
210
|
return;
|
|
211
|
-
Et.add(e),
|
|
211
|
+
Et.add(e), Ie.c.push(() => {
|
|
212
212
|
Et.delete(e), r && (n && e.d(1), r());
|
|
213
213
|
}), e.o(t);
|
|
214
214
|
} else
|
|
@@ -238,15 +238,15 @@ function $e(e, t) {
|
|
|
238
238
|
function Dr(e, t) {
|
|
239
239
|
e.$$.dirty[0] === -1 && (Fe.push(e), Nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
240
240
|
}
|
|
241
|
-
function un(e, t, n, r, i, a,
|
|
241
|
+
function un(e, t, n, r, i, a, u = null, s = [-1]) {
|
|
242
242
|
const o = ot;
|
|
243
243
|
at(e);
|
|
244
|
-
const
|
|
244
|
+
const l = e.$$ = {
|
|
245
245
|
fragment: null,
|
|
246
246
|
ctx: [],
|
|
247
247
|
// state
|
|
248
248
|
props: a,
|
|
249
|
-
update:
|
|
249
|
+
update: S,
|
|
250
250
|
not_equal: i,
|
|
251
251
|
bound: pn(),
|
|
252
252
|
// lifecycle
|
|
@@ -262,17 +262,17 @@ function un(e, t, n, r, i, a, l = null, s = [-1]) {
|
|
|
262
262
|
skip_bound: !1,
|
|
263
263
|
root: t.target || o.$$.root
|
|
264
264
|
};
|
|
265
|
-
|
|
266
|
-
let
|
|
267
|
-
if (
|
|
268
|
-
const
|
|
269
|
-
return
|
|
270
|
-
}) : [],
|
|
265
|
+
u && u(l.root);
|
|
266
|
+
let c = !1;
|
|
267
|
+
if (l.ctx = n ? n(e, t.props || {}, (d, h, ...p) => {
|
|
268
|
+
const _ = p.length ? p[0] : h;
|
|
269
|
+
return l.ctx && i(l.ctx[d], l.ctx[d] = _) && (!l.skip_bound && l.bound[d] && l.bound[d](_), c && Dr(e, d)), h;
|
|
270
|
+
}) : [], l.update(), c = !0, _e(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
271
271
|
if (t.hydrate) {
|
|
272
272
|
const d = Hr(t.target);
|
|
273
|
-
|
|
273
|
+
l.fragment && l.fragment.l(d), d.forEach(A);
|
|
274
274
|
} else
|
|
275
|
-
|
|
275
|
+
l.fragment && l.fragment.c();
|
|
276
276
|
t.intro && G(e.$$.fragment), Ge(e, t.target, t.anchor), V();
|
|
277
277
|
}
|
|
278
278
|
at(o);
|
|
@@ -326,8 +326,8 @@ typeof HTMLElement == "function" && (Qn = class extends HTMLElement {
|
|
|
326
326
|
* @param {HTMLElement} target
|
|
327
327
|
* @param {HTMLElement} [anchor]
|
|
328
328
|
*/
|
|
329
|
-
m: function(o,
|
|
330
|
-
|
|
329
|
+
m: function(o, l) {
|
|
330
|
+
T(o, a, l);
|
|
331
331
|
},
|
|
332
332
|
d: function(o) {
|
|
333
333
|
o && A(a);
|
|
@@ -337,7 +337,7 @@ typeof HTMLElement == "function" && (Qn = class extends HTMLElement {
|
|
|
337
337
|
};
|
|
338
338
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
339
339
|
return;
|
|
340
|
-
const t = {}, n =
|
|
340
|
+
const t = {}, n = Ir(this);
|
|
341
341
|
for (const i of this.$$s)
|
|
342
342
|
i in n && (t[i] = [e(i)]);
|
|
343
343
|
for (const i of this.attributes) {
|
|
@@ -373,8 +373,8 @@ typeof HTMLElement == "function" && (Qn = class extends HTMLElement {
|
|
|
373
373
|
this.$$c.$$.after_update.push(r), r();
|
|
374
374
|
for (const i in this.$$l)
|
|
375
375
|
for (const a of this.$$l[i]) {
|
|
376
|
-
const
|
|
377
|
-
this.$$l_u.set(a,
|
|
376
|
+
const u = this.$$c.$on(i, a);
|
|
377
|
+
this.$$l_u.set(a, u);
|
|
378
378
|
}
|
|
379
379
|
this.$$l = {};
|
|
380
380
|
}
|
|
@@ -425,7 +425,7 @@ function xt(e, t, n, r) {
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
function cn(e, t, n, r, i, a) {
|
|
428
|
-
let
|
|
428
|
+
let u = class extends Qn {
|
|
429
429
|
constructor() {
|
|
430
430
|
super(e, n, i), this.$$p_d = t;
|
|
431
431
|
}
|
|
@@ -436,7 +436,7 @@ function cn(e, t, n, r, i, a) {
|
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
438
|
return Object.keys(t).forEach((s) => {
|
|
439
|
-
Object.defineProperty(
|
|
439
|
+
Object.defineProperty(u.prototype, s, {
|
|
440
440
|
get() {
|
|
441
441
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
442
442
|
},
|
|
@@ -445,13 +445,13 @@ function cn(e, t, n, r, i, a) {
|
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}), r.forEach((s) => {
|
|
448
|
-
Object.defineProperty(
|
|
448
|
+
Object.defineProperty(u.prototype, s, {
|
|
449
449
|
get() {
|
|
450
450
|
return this.$$c?.[s];
|
|
451
451
|
}
|
|
452
452
|
});
|
|
453
453
|
}), e.element = /** @type {any} */
|
|
454
|
-
|
|
454
|
+
u, u;
|
|
455
455
|
}
|
|
456
456
|
class hn {
|
|
457
457
|
/**
|
|
@@ -472,7 +472,7 @@ class hn {
|
|
|
472
472
|
$$set = void 0;
|
|
473
473
|
/** @returns {void} */
|
|
474
474
|
$destroy() {
|
|
475
|
-
$e(this, 1), this.$destroy =
|
|
475
|
+
$e(this, 1), this.$destroy = S;
|
|
476
476
|
}
|
|
477
477
|
/**
|
|
478
478
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -482,7 +482,7 @@ class hn {
|
|
|
482
482
|
*/
|
|
483
483
|
$on(t, n) {
|
|
484
484
|
if (!ct(n))
|
|
485
|
-
return
|
|
485
|
+
return S;
|
|
486
486
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
487
487
|
return r.push(n), () => {
|
|
488
488
|
const i = r.indexOf(n);
|
|
@@ -502,20 +502,20 @@ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__
|
|
|
502
502
|
const ke = [];
|
|
503
503
|
function kr(e, t) {
|
|
504
504
|
return {
|
|
505
|
-
subscribe:
|
|
505
|
+
subscribe: Pt(e, t).subscribe
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Pt(e, t = S) {
|
|
509
509
|
let n;
|
|
510
510
|
const r = /* @__PURE__ */ new Set();
|
|
511
511
|
function i(s) {
|
|
512
|
-
if (
|
|
512
|
+
if (It(e, s) && (e = s, n)) {
|
|
513
513
|
const o = !ke.length;
|
|
514
|
-
for (const
|
|
515
|
-
|
|
514
|
+
for (const l of r)
|
|
515
|
+
l[1](), ke.push(l, e);
|
|
516
516
|
if (o) {
|
|
517
|
-
for (let
|
|
518
|
-
ke[
|
|
517
|
+
for (let l = 0; l < ke.length; l += 2)
|
|
518
|
+
ke[l][0](ke[l + 1]);
|
|
519
519
|
ke.length = 0;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
@@ -523,41 +523,41 @@ function It(e, t = B) {
|
|
|
523
523
|
function a(s) {
|
|
524
524
|
i(s(e));
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
const
|
|
528
|
-
return r.add(
|
|
529
|
-
r.delete(
|
|
526
|
+
function u(s, o = S) {
|
|
527
|
+
const l = [s, o];
|
|
528
|
+
return r.add(l), r.size === 1 && (n = t(i, a) || S), s(e), () => {
|
|
529
|
+
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
530
530
|
};
|
|
531
531
|
}
|
|
532
|
-
return { set: i, update: a, subscribe:
|
|
532
|
+
return { set: i, update: a, subscribe: u };
|
|
533
533
|
}
|
|
534
534
|
function Ze(e, t, n) {
|
|
535
535
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
536
536
|
if (!i.every(Boolean))
|
|
537
537
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
538
538
|
const a = t.length < 2;
|
|
539
|
-
return kr(n, (
|
|
539
|
+
return kr(n, (u, s) => {
|
|
540
540
|
let o = !1;
|
|
541
|
-
const
|
|
542
|
-
let
|
|
543
|
-
const
|
|
544
|
-
if (
|
|
541
|
+
const l = [];
|
|
542
|
+
let c = 0, d = S;
|
|
543
|
+
const h = () => {
|
|
544
|
+
if (c)
|
|
545
545
|
return;
|
|
546
546
|
d();
|
|
547
|
-
const
|
|
548
|
-
a ?
|
|
547
|
+
const _ = t(r ? l[0] : l, u, s);
|
|
548
|
+
a ? u(_) : d = ct(_) ? _ : S;
|
|
549
549
|
}, p = i.map(
|
|
550
|
-
(
|
|
551
|
-
|
|
550
|
+
(_, b) => zn(
|
|
551
|
+
_,
|
|
552
552
|
(L) => {
|
|
553
|
-
|
|
553
|
+
l[b] = L, c &= ~(1 << b), o && h();
|
|
554
554
|
},
|
|
555
555
|
() => {
|
|
556
|
-
|
|
556
|
+
c |= 1 << b;
|
|
557
557
|
}
|
|
558
558
|
)
|
|
559
559
|
);
|
|
560
|
-
return o = !0,
|
|
560
|
+
return o = !0, h(), function() {
|
|
561
561
|
_e(p), d(), o = !1;
|
|
562
562
|
};
|
|
563
563
|
});
|
|
@@ -736,10 +736,10 @@ var oi = function() {
|
|
|
736
736
|
return t;
|
|
737
737
|
}, Bt.apply(this, arguments);
|
|
738
738
|
};
|
|
739
|
-
var
|
|
739
|
+
var B;
|
|
740
740
|
(function(e) {
|
|
741
741
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
742
|
-
})(
|
|
742
|
+
})(B || (B = {}));
|
|
743
743
|
var D;
|
|
744
744
|
(function(e) {
|
|
745
745
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
@@ -887,14 +887,14 @@ var di = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
|
887
887
|
function pi(e) {
|
|
888
888
|
if (e.length === 0)
|
|
889
889
|
throw new Error("Number skeleton cannot be empty");
|
|
890
|
-
for (var t = e.split(di).filter(function(
|
|
891
|
-
return
|
|
890
|
+
for (var t = e.split(di).filter(function(h) {
|
|
891
|
+
return h.length > 0;
|
|
892
892
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
893
|
-
var a = i[r],
|
|
894
|
-
if (
|
|
893
|
+
var a = i[r], u = a.split("/");
|
|
894
|
+
if (u.length === 0)
|
|
895
895
|
throw new Error("Invalid number skeleton");
|
|
896
|
-
for (var s =
|
|
897
|
-
var d =
|
|
896
|
+
for (var s = u[0], o = u.slice(1), l = 0, c = o; l < c.length; l++) {
|
|
897
|
+
var d = c[l];
|
|
898
898
|
if (d.length === 0)
|
|
899
899
|
throw new Error("Invalid number skeleton");
|
|
900
900
|
}
|
|
@@ -1005,13 +1005,13 @@ function yi(e) {
|
|
|
1005
1005
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1006
1006
|
continue;
|
|
1007
1007
|
case "scientific":
|
|
1008
|
-
t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(o,
|
|
1009
|
-
return F(F({}, o), xn(
|
|
1008
|
+
t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(o, l) {
|
|
1009
|
+
return F(F({}, o), xn(l));
|
|
1010
1010
|
}, {}));
|
|
1011
1011
|
continue;
|
|
1012
1012
|
case "engineering":
|
|
1013
|
-
t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(o,
|
|
1014
|
-
return F(F({}, o), xn(
|
|
1013
|
+
t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(o, l) {
|
|
1014
|
+
return F(F({}, o), xn(l));
|
|
1015
1015
|
}, {}));
|
|
1016
1016
|
continue;
|
|
1017
1017
|
case "notation-simple":
|
|
@@ -1056,11 +1056,11 @@ function yi(e) {
|
|
|
1056
1056
|
case "integer-width":
|
|
1057
1057
|
if (i.options.length > 1)
|
|
1058
1058
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1059
|
-
i.options[0].replace(gi, function(o,
|
|
1060
|
-
if (
|
|
1061
|
-
t.minimumIntegerDigits =
|
|
1059
|
+
i.options[0].replace(gi, function(o, l, c, d, h, p) {
|
|
1060
|
+
if (l)
|
|
1061
|
+
t.minimumIntegerDigits = c.length;
|
|
1062
1062
|
else {
|
|
1063
|
-
if (d &&
|
|
1063
|
+
if (d && h)
|
|
1064
1064
|
throw new Error("We currently do not support maximum integer digits");
|
|
1065
1065
|
if (p)
|
|
1066
1066
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1076,8 +1076,8 @@ function yi(e) {
|
|
|
1076
1076
|
if (_n.test(i.stem)) {
|
|
1077
1077
|
if (i.options.length > 1)
|
|
1078
1078
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1079
|
-
i.stem.replace(_n, function(o,
|
|
1080
|
-
return
|
|
1079
|
+
i.stem.replace(_n, function(o, l, c, d, h, p) {
|
|
1080
|
+
return c === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : h && p ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1081
1081
|
});
|
|
1082
1082
|
var a = i.options[0];
|
|
1083
1083
|
a === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = F(F({}, t), En(a)));
|
|
@@ -1087,8 +1087,8 @@ function yi(e) {
|
|
|
1087
1087
|
t = F(F({}, t), En(i.stem));
|
|
1088
1088
|
continue;
|
|
1089
1089
|
}
|
|
1090
|
-
var
|
|
1091
|
-
|
|
1090
|
+
var u = hr(i.stem);
|
|
1091
|
+
u && (t = F(F({}, t), u));
|
|
1092
1092
|
var s = bi(i.stem);
|
|
1093
1093
|
s && (t = F(F({}, t), s));
|
|
1094
1094
|
}
|
|
@@ -2515,11 +2515,11 @@ function vi(e, t) {
|
|
|
2515
2515
|
if (i === "j") {
|
|
2516
2516
|
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2517
2517
|
a++, r++;
|
|
2518
|
-
var
|
|
2519
|
-
for ((
|
|
2518
|
+
var u = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), o = "a", l = _i(t);
|
|
2519
|
+
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2520
2520
|
n += o;
|
|
2521
|
-
for (;
|
|
2522
|
-
n =
|
|
2521
|
+
for (; u-- > 0; )
|
|
2522
|
+
n = l + n;
|
|
2523
2523
|
} else
|
|
2524
2524
|
i === "J" ? n += "H" : n += i;
|
|
2525
2525
|
}
|
|
@@ -2551,12 +2551,12 @@ var $t, Ei = new RegExp("^".concat(lr.source, "*")), xi = new RegExp("".concat(l
|
|
|
2551
2551
|
function H(e, t) {
|
|
2552
2552
|
return { start: e, end: t };
|
|
2553
2553
|
}
|
|
2554
|
-
var wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ai = !!String.fromCodePoint, Ci = !!Object.fromEntries, Ti = !!String.prototype.codePointAt, Bi = !!String.prototype.trimStart, Si = !!String.prototype.trimEnd, Hi = !!Number.isSafeInteger,
|
|
2554
|
+
var wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ai = !!String.fromCodePoint, Ci = !!Object.fromEntries, Ti = !!String.prototype.codePointAt, Bi = !!String.prototype.trimStart, Si = !!String.prototype.trimEnd, Hi = !!Number.isSafeInteger, Ii = Hi ? Number.isSafeInteger : function(e) {
|
|
2555
2555
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2556
2556
|
}, Jt = !0;
|
|
2557
2557
|
try {
|
|
2558
|
-
var
|
|
2559
|
-
Jt = (($t =
|
|
2558
|
+
var Pi = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2559
|
+
Jt = (($t = Pi.exec("a")) === null || $t === void 0 ? void 0 : $t[0]) === "a";
|
|
2560
2560
|
} catch {
|
|
2561
2561
|
Jt = !1;
|
|
2562
2562
|
}
|
|
@@ -2575,10 +2575,10 @@ var wn = wi ? (
|
|
|
2575
2575
|
function() {
|
|
2576
2576
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2577
2577
|
t[n] = arguments[n];
|
|
2578
|
-
for (var r = "", i = t.length, a = 0,
|
|
2579
|
-
if (
|
|
2580
|
-
throw RangeError(
|
|
2581
|
-
r +=
|
|
2578
|
+
for (var r = "", i = t.length, a = 0, u; i > a; ) {
|
|
2579
|
+
if (u = t[a++], u > 1114111)
|
|
2580
|
+
throw RangeError(u + " is not a valid code point");
|
|
2581
|
+
r += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2582
2582
|
}
|
|
2583
2583
|
return r;
|
|
2584
2584
|
}
|
|
@@ -2588,8 +2588,8 @@ var wn = wi ? (
|
|
|
2588
2588
|
// Ponyfill
|
|
2589
2589
|
function(t) {
|
|
2590
2590
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2591
|
-
var a = i[r],
|
|
2592
|
-
n[
|
|
2591
|
+
var a = i[r], u = a[0], s = a[1];
|
|
2592
|
+
n[u] = s;
|
|
2593
2593
|
}
|
|
2594
2594
|
return n;
|
|
2595
2595
|
}
|
|
@@ -2665,10 +2665,10 @@ var Ri = (
|
|
|
2665
2665
|
for (var i = []; !this.isEOF(); ) {
|
|
2666
2666
|
var a = this.char();
|
|
2667
2667
|
if (a === 123) {
|
|
2668
|
-
var
|
|
2669
|
-
if (
|
|
2670
|
-
return
|
|
2671
|
-
i.push(
|
|
2668
|
+
var u = this.parseArgument(t, r);
|
|
2669
|
+
if (u.err)
|
|
2670
|
+
return u;
|
|
2671
|
+
i.push(u.val);
|
|
2672
2672
|
} else {
|
|
2673
2673
|
if (a === 125 && t > 0)
|
|
2674
2674
|
break;
|
|
@@ -2681,17 +2681,17 @@ var Ri = (
|
|
|
2681
2681
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2682
2682
|
if (r)
|
|
2683
2683
|
break;
|
|
2684
|
-
return this.error(
|
|
2684
|
+
return this.error(B.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
|
2685
2685
|
} else if (a === 60 && !this.ignoreTag && nn(this.peek() || 0)) {
|
|
2686
|
-
var
|
|
2687
|
-
if (
|
|
2688
|
-
return
|
|
2689
|
-
i.push(
|
|
2686
|
+
var u = this.parseTag(t, n);
|
|
2687
|
+
if (u.err)
|
|
2688
|
+
return u;
|
|
2689
|
+
i.push(u.val);
|
|
2690
2690
|
} else {
|
|
2691
|
-
var
|
|
2692
|
-
if (
|
|
2693
|
-
return
|
|
2694
|
-
i.push(
|
|
2691
|
+
var u = this.parseLiteral(t, n);
|
|
2692
|
+
if (u.err)
|
|
2693
|
+
return u;
|
|
2694
|
+
i.push(u.val);
|
|
2695
2695
|
}
|
|
2696
2696
|
}
|
|
2697
2697
|
}
|
|
@@ -2713,24 +2713,24 @@ var Ri = (
|
|
|
2713
2713
|
var a = this.parseMessage(t + 1, n, !0);
|
|
2714
2714
|
if (a.err)
|
|
2715
2715
|
return a;
|
|
2716
|
-
var
|
|
2716
|
+
var u = a.val, s = this.clonePosition();
|
|
2717
2717
|
if (this.bumpIf("</")) {
|
|
2718
2718
|
if (this.isEOF() || !nn(this.char()))
|
|
2719
|
-
return this.error(
|
|
2720
|
-
var o = this.clonePosition(),
|
|
2721
|
-
return i !==
|
|
2719
|
+
return this.error(B.INVALID_TAG, H(s, this.clonePosition()));
|
|
2720
|
+
var o = this.clonePosition(), l = this.parseTagName();
|
|
2721
|
+
return i !== l ? this.error(B.UNMATCHED_CLOSING_TAG, H(o, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2722
2722
|
val: {
|
|
2723
2723
|
type: D.tag,
|
|
2724
2724
|
value: i,
|
|
2725
|
-
children:
|
|
2725
|
+
children: u,
|
|
2726
2726
|
location: H(r, this.clonePosition())
|
|
2727
2727
|
},
|
|
2728
2728
|
err: null
|
|
2729
|
-
} : this.error(
|
|
2729
|
+
} : this.error(B.INVALID_TAG, H(s, this.clonePosition())));
|
|
2730
2730
|
} else
|
|
2731
|
-
return this.error(
|
|
2731
|
+
return this.error(B.UNCLOSED_TAG, H(r, this.clonePosition()));
|
|
2732
2732
|
} else
|
|
2733
|
-
return this.error(
|
|
2733
|
+
return this.error(B.INVALID_TAG, H(r, this.clonePosition()));
|
|
2734
2734
|
}, e.prototype.parseTagName = function() {
|
|
2735
2735
|
var t = this.offset();
|
|
2736
2736
|
for (this.bump(); !this.isEOF() && Di(this.char()); )
|
|
@@ -2743,9 +2743,9 @@ var Ri = (
|
|
|
2743
2743
|
i += a;
|
|
2744
2744
|
continue;
|
|
2745
2745
|
}
|
|
2746
|
-
var
|
|
2747
|
-
if (
|
|
2748
|
-
i +=
|
|
2746
|
+
var u = this.tryParseUnquoted(t, n);
|
|
2747
|
+
if (u) {
|
|
2748
|
+
i += u;
|
|
2749
2749
|
continue;
|
|
2750
2750
|
}
|
|
2751
2751
|
var s = this.tryParseLeftAngleBracket();
|
|
@@ -2805,14 +2805,14 @@ var Ri = (
|
|
|
2805
2805
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2806
2806
|
var r = this.clonePosition();
|
|
2807
2807
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2808
|
-
return this.error(
|
|
2808
|
+
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
|
|
2809
2809
|
if (this.char() === 125)
|
|
2810
|
-
return this.bump(), this.error(
|
|
2810
|
+
return this.bump(), this.error(B.EMPTY_ARGUMENT, H(r, this.clonePosition()));
|
|
2811
2811
|
var i = this.parseIdentifierIfPossible().value;
|
|
2812
2812
|
if (!i)
|
|
2813
|
-
return this.error(
|
|
2813
|
+
return this.error(B.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
|
|
2814
2814
|
if (this.bumpSpace(), this.isEOF())
|
|
2815
|
-
return this.error(
|
|
2815
|
+
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
|
|
2816
2816
|
switch (this.char()) {
|
|
2817
2817
|
case 125:
|
|
2818
2818
|
return this.bump(), {
|
|
@@ -2825,61 +2825,61 @@ var Ri = (
|
|
|
2825
2825
|
err: null
|
|
2826
2826
|
};
|
|
2827
2827
|
case 44:
|
|
2828
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2828
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2829
2829
|
default:
|
|
2830
|
-
return this.error(
|
|
2830
|
+
return this.error(B.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
|
|
2831
2831
|
}
|
|
2832
2832
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2833
2833
|
var t = this.clonePosition(), n = this.offset(), r = tn(this.message, n), i = n + r.length;
|
|
2834
2834
|
this.bumpTo(i);
|
|
2835
|
-
var a = this.clonePosition(),
|
|
2836
|
-
return { value: r, location:
|
|
2835
|
+
var a = this.clonePosition(), u = H(t, a);
|
|
2836
|
+
return { value: r, location: u };
|
|
2837
2837
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2838
|
-
var a,
|
|
2838
|
+
var a, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, o = this.clonePosition();
|
|
2839
2839
|
switch (s) {
|
|
2840
2840
|
case "":
|
|
2841
|
-
return this.error(
|
|
2841
|
+
return this.error(B.EXPECT_ARGUMENT_TYPE, H(u, o));
|
|
2842
2842
|
case "number":
|
|
2843
2843
|
case "date":
|
|
2844
2844
|
case "time": {
|
|
2845
2845
|
this.bumpSpace();
|
|
2846
|
-
var
|
|
2846
|
+
var l = null;
|
|
2847
2847
|
if (this.bumpIf(",")) {
|
|
2848
2848
|
this.bumpSpace();
|
|
2849
|
-
var
|
|
2849
|
+
var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2850
2850
|
if (d.err)
|
|
2851
2851
|
return d;
|
|
2852
|
-
var
|
|
2853
|
-
if (
|
|
2854
|
-
return this.error(
|
|
2855
|
-
var p = H(
|
|
2856
|
-
|
|
2852
|
+
var h = Ni(d.val);
|
|
2853
|
+
if (h.length === 0)
|
|
2854
|
+
return this.error(B.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
|
2855
|
+
var p = H(c, this.clonePosition());
|
|
2856
|
+
l = { style: h, styleLocation: p };
|
|
2857
2857
|
}
|
|
2858
|
-
var
|
|
2859
|
-
if (
|
|
2860
|
-
return
|
|
2858
|
+
var _ = this.tryParseArgumentClose(i);
|
|
2859
|
+
if (_.err)
|
|
2860
|
+
return _;
|
|
2861
2861
|
var b = H(i, this.clonePosition());
|
|
2862
|
-
if (
|
|
2863
|
-
var L = Li(
|
|
2862
|
+
if (l && wn(l?.style, "::", 0)) {
|
|
2863
|
+
var L = Li(l.style.slice(2));
|
|
2864
2864
|
if (s === "number") {
|
|
2865
|
-
var d = this.parseNumberSkeletonFromString(L,
|
|
2865
|
+
var d = this.parseNumberSkeletonFromString(L, l.styleLocation);
|
|
2866
2866
|
return d.err ? d : {
|
|
2867
2867
|
val: { type: D.number, value: r, location: b, style: d.val },
|
|
2868
2868
|
err: null
|
|
2869
2869
|
};
|
|
2870
2870
|
} else {
|
|
2871
2871
|
if (L.length === 0)
|
|
2872
|
-
return this.error(
|
|
2872
|
+
return this.error(B.EXPECT_DATE_TIME_SKELETON, b);
|
|
2873
2873
|
var N = L;
|
|
2874
2874
|
this.locale && (N = vi(L, this.locale));
|
|
2875
|
-
var
|
|
2875
|
+
var h = {
|
|
2876
2876
|
type: Xe.dateTime,
|
|
2877
2877
|
pattern: N,
|
|
2878
|
-
location:
|
|
2878
|
+
location: l.styleLocation,
|
|
2879
2879
|
parsedOptions: this.shouldParseSkeletons ? fi(N) : {}
|
|
2880
2880
|
}, R = s === "date" ? D.date : D.time;
|
|
2881
2881
|
return {
|
|
2882
|
-
val: { type: R, value: r, location: b, style:
|
|
2882
|
+
val: { type: R, value: r, location: b, style: h },
|
|
2883
2883
|
err: null
|
|
2884
2884
|
};
|
|
2885
2885
|
}
|
|
@@ -2889,7 +2889,7 @@ var Ri = (
|
|
|
2889
2889
|
type: s === "number" ? D.number : s === "date" ? D.date : D.time,
|
|
2890
2890
|
value: r,
|
|
2891
2891
|
location: b,
|
|
2892
|
-
style: (a =
|
|
2892
|
+
style: (a = l?.style) !== null && a !== void 0 ? a : null
|
|
2893
2893
|
},
|
|
2894
2894
|
err: null
|
|
2895
2895
|
};
|
|
@@ -2897,16 +2897,16 @@ var Ri = (
|
|
|
2897
2897
|
case "plural":
|
|
2898
2898
|
case "selectordinal":
|
|
2899
2899
|
case "select": {
|
|
2900
|
-
var
|
|
2900
|
+
var v = this.clonePosition();
|
|
2901
2901
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2902
|
-
return this.error(
|
|
2902
|
+
return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS, H(v, Bt({}, v)));
|
|
2903
2903
|
this.bumpSpace();
|
|
2904
2904
|
var $ = this.parseIdentifierIfPossible(), M = 0;
|
|
2905
2905
|
if (s !== "select" && $.value === "offset") {
|
|
2906
2906
|
if (!this.bumpIf(":"))
|
|
2907
|
-
return this.error(
|
|
2907
|
+
return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
|
|
2908
2908
|
this.bumpSpace();
|
|
2909
|
-
var d = this.tryParseDecimalInteger(
|
|
2909
|
+
var d = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2910
2910
|
if (d.err)
|
|
2911
2911
|
return d;
|
|
2912
2912
|
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), M = d.val;
|
|
@@ -2914,9 +2914,9 @@ var Ri = (
|
|
|
2914
2914
|
var Z = this.tryParsePluralOrSelectOptions(t, s, n, $);
|
|
2915
2915
|
if (Z.err)
|
|
2916
2916
|
return Z;
|
|
2917
|
-
var
|
|
2918
|
-
if (
|
|
2919
|
-
return
|
|
2917
|
+
var _ = this.tryParseArgumentClose(i);
|
|
2918
|
+
if (_.err)
|
|
2919
|
+
return _;
|
|
2920
2920
|
var de = H(i, this.clonePosition());
|
|
2921
2921
|
return s === "select" ? {
|
|
2922
2922
|
val: {
|
|
@@ -2939,10 +2939,10 @@ var Ri = (
|
|
|
2939
2939
|
};
|
|
2940
2940
|
}
|
|
2941
2941
|
default:
|
|
2942
|
-
return this.error(
|
|
2942
|
+
return this.error(B.INVALID_ARGUMENT_TYPE, H(u, o));
|
|
2943
2943
|
}
|
|
2944
2944
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2945
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2945
|
+
return this.isEOF() || this.char() !== 125 ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2946
2946
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2947
2947
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2948
2948
|
var r = this.char();
|
|
@@ -2951,7 +2951,7 @@ var Ri = (
|
|
|
2951
2951
|
this.bump();
|
|
2952
2952
|
var i = this.clonePosition();
|
|
2953
2953
|
if (!this.bumpUntil("'"))
|
|
2954
|
-
return this.error(
|
|
2954
|
+
return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, H(i, this.clonePosition()));
|
|
2955
2955
|
this.bump();
|
|
2956
2956
|
break;
|
|
2957
2957
|
}
|
|
@@ -2983,7 +2983,7 @@ var Ri = (
|
|
|
2983
2983
|
try {
|
|
2984
2984
|
r = pi(t);
|
|
2985
2985
|
} catch {
|
|
2986
|
-
return this.error(
|
|
2986
|
+
return this.error(B.INVALID_NUMBER_SKELETON, n);
|
|
2987
2987
|
}
|
|
2988
2988
|
return {
|
|
2989
2989
|
val: {
|
|
@@ -2995,50 +2995,50 @@ var Ri = (
|
|
|
2995
2995
|
err: null
|
|
2996
2996
|
};
|
|
2997
2997
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2998
|
-
for (var a,
|
|
2999
|
-
if (
|
|
2998
|
+
for (var a, u = !1, s = [], o = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
|
|
2999
|
+
if (l.length === 0) {
|
|
3000
3000
|
var d = this.clonePosition();
|
|
3001
3001
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3002
|
-
var
|
|
3003
|
-
if (
|
|
3004
|
-
return
|
|
3005
|
-
|
|
3002
|
+
var h = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR, B.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3003
|
+
if (h.err)
|
|
3004
|
+
return h;
|
|
3005
|
+
c = H(d, this.clonePosition()), l = this.message.slice(d.offset, this.offset());
|
|
3006
3006
|
} else
|
|
3007
3007
|
break;
|
|
3008
3008
|
}
|
|
3009
|
-
if (o.has(
|
|
3010
|
-
return this.error(n === "select" ?
|
|
3011
|
-
|
|
3009
|
+
if (o.has(l))
|
|
3010
|
+
return this.error(n === "select" ? B.DUPLICATE_SELECT_ARGUMENT_SELECTOR : B.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3011
|
+
l === "other" && (u = !0), this.bumpSpace();
|
|
3012
3012
|
var p = this.clonePosition();
|
|
3013
3013
|
if (!this.bumpIf("{"))
|
|
3014
|
-
return this.error(n === "select" ?
|
|
3015
|
-
var
|
|
3016
|
-
if (
|
|
3017
|
-
return
|
|
3014
|
+
return this.error(n === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
|
|
3015
|
+
var _ = this.parseMessage(t + 1, n, r);
|
|
3016
|
+
if (_.err)
|
|
3017
|
+
return _;
|
|
3018
3018
|
var b = this.tryParseArgumentClose(p);
|
|
3019
3019
|
if (b.err)
|
|
3020
3020
|
return b;
|
|
3021
3021
|
s.push([
|
|
3022
|
-
|
|
3022
|
+
l,
|
|
3023
3023
|
{
|
|
3024
|
-
value:
|
|
3024
|
+
value: _.val,
|
|
3025
3025
|
location: H(p, this.clonePosition())
|
|
3026
3026
|
}
|
|
3027
|
-
]), o.add(
|
|
3027
|
+
]), o.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, c = a.location;
|
|
3028
3028
|
}
|
|
3029
|
-
return s.length === 0 ? this.error(n === "select" ?
|
|
3029
|
+
return s.length === 0 ? this.error(n === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR : B.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(B.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3030
3030
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3031
3031
|
var r = 1, i = this.clonePosition();
|
|
3032
3032
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3033
|
-
for (var a = !1,
|
|
3033
|
+
for (var a = !1, u = 0; !this.isEOF(); ) {
|
|
3034
3034
|
var s = this.char();
|
|
3035
3035
|
if (s >= 48 && s <= 57)
|
|
3036
|
-
a = !0,
|
|
3036
|
+
a = !0, u = u * 10 + (s - 48), this.bump();
|
|
3037
3037
|
else
|
|
3038
3038
|
break;
|
|
3039
3039
|
}
|
|
3040
3040
|
var o = H(i, this.clonePosition());
|
|
3041
|
-
return a ? (
|
|
3041
|
+
return a ? (u *= r, Ii(u) ? { val: u, err: null } : this.error(n, o)) : this.error(t, o);
|
|
3042
3042
|
}, e.prototype.offset = function() {
|
|
3043
3043
|
return this.position.offset;
|
|
3044
3044
|
}, e.prototype.isEOF = function() {
|
|
@@ -3132,7 +3132,7 @@ function ki(e, t) {
|
|
|
3132
3132
|
t === void 0 && (t = {}), t = Bt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3133
3133
|
var n = new Ri(e, t).parse();
|
|
3134
3134
|
if (n.err) {
|
|
3135
|
-
var r = SyntaxError(
|
|
3135
|
+
var r = SyntaxError(B[n.err.kind]);
|
|
3136
3136
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3137
3137
|
}
|
|
3138
3138
|
return t?.captureLocation || rn(n.val), n.val;
|
|
@@ -3193,7 +3193,7 @@ function Vi(e) {
|
|
|
3193
3193
|
function Gi(e) {
|
|
3194
3194
|
return typeof e == "function";
|
|
3195
3195
|
}
|
|
3196
|
-
function wt(e, t, n, r, i, a,
|
|
3196
|
+
function wt(e, t, n, r, i, a, u) {
|
|
3197
3197
|
if (e.length === 1 && vn(e[0]))
|
|
3198
3198
|
return [
|
|
3199
3199
|
{
|
|
@@ -3201,62 +3201,62 @@ function wt(e, t, n, r, i, a, l) {
|
|
|
3201
3201
|
value: e[0].value
|
|
3202
3202
|
}
|
|
3203
3203
|
];
|
|
3204
|
-
for (var s = [], o = 0,
|
|
3205
|
-
var
|
|
3206
|
-
if (vn(
|
|
3204
|
+
for (var s = [], o = 0, l = e; o < l.length; o++) {
|
|
3205
|
+
var c = l[o];
|
|
3206
|
+
if (vn(c)) {
|
|
3207
3207
|
s.push({
|
|
3208
3208
|
type: Q.literal,
|
|
3209
|
-
value:
|
|
3209
|
+
value: c.value
|
|
3210
3210
|
});
|
|
3211
3211
|
continue;
|
|
3212
3212
|
}
|
|
3213
|
-
if (ci(
|
|
3213
|
+
if (ci(c)) {
|
|
3214
3214
|
typeof a == "number" && s.push({
|
|
3215
3215
|
type: Q.literal,
|
|
3216
3216
|
value: n.getNumberFormat(t).format(a)
|
|
3217
3217
|
});
|
|
3218
3218
|
continue;
|
|
3219
3219
|
}
|
|
3220
|
-
var d =
|
|
3220
|
+
var d = c.value;
|
|
3221
3221
|
if (!(i && d in i))
|
|
3222
|
-
throw new Ui(d,
|
|
3223
|
-
var
|
|
3224
|
-
if (ui(
|
|
3225
|
-
(!
|
|
3226
|
-
type: typeof
|
|
3227
|
-
value:
|
|
3222
|
+
throw new Ui(d, u);
|
|
3223
|
+
var h = i[d];
|
|
3224
|
+
if (ui(c)) {
|
|
3225
|
+
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), s.push({
|
|
3226
|
+
type: typeof h == "string" ? Q.literal : Q.object,
|
|
3227
|
+
value: h
|
|
3228
3228
|
});
|
|
3229
3229
|
continue;
|
|
3230
3230
|
}
|
|
3231
|
-
if (nr(
|
|
3232
|
-
var p = typeof
|
|
3231
|
+
if (nr(c)) {
|
|
3232
|
+
var p = typeof c.style == "string" ? r.date[c.style] : Yt(c.style) ? c.style.parsedOptions : void 0;
|
|
3233
3233
|
s.push({
|
|
3234
3234
|
type: Q.literal,
|
|
3235
|
-
value: n.getDateTimeFormat(t, p).format(
|
|
3235
|
+
value: n.getDateTimeFormat(t, p).format(h)
|
|
3236
3236
|
});
|
|
3237
3237
|
continue;
|
|
3238
3238
|
}
|
|
3239
|
-
if (rr(
|
|
3240
|
-
var p = typeof
|
|
3239
|
+
if (rr(c)) {
|
|
3240
|
+
var p = typeof c.style == "string" ? r.time[c.style] : Yt(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3241
3241
|
s.push({
|
|
3242
3242
|
type: Q.literal,
|
|
3243
|
-
value: n.getDateTimeFormat(t, p).format(
|
|
3243
|
+
value: n.getDateTimeFormat(t, p).format(h)
|
|
3244
3244
|
});
|
|
3245
3245
|
continue;
|
|
3246
3246
|
}
|
|
3247
|
-
if (tr(
|
|
3248
|
-
var p = typeof
|
|
3249
|
-
p && p.scale && (
|
|
3247
|
+
if (tr(c)) {
|
|
3248
|
+
var p = typeof c.style == "string" ? r.number[c.style] : sr(c.style) ? c.style.parsedOptions : void 0;
|
|
3249
|
+
p && p.scale && (h = h * (p.scale || 1)), s.push({
|
|
3250
3250
|
type: Q.literal,
|
|
3251
|
-
value: n.getNumberFormat(t, p).format(
|
|
3251
|
+
value: n.getNumberFormat(t, p).format(h)
|
|
3252
3252
|
});
|
|
3253
3253
|
continue;
|
|
3254
3254
|
}
|
|
3255
|
-
if (or(
|
|
3256
|
-
var
|
|
3255
|
+
if (or(c)) {
|
|
3256
|
+
var _ = c.children, b = c.value, L = i[b];
|
|
3257
3257
|
if (!Gi(L))
|
|
3258
|
-
throw new Fi(b, "function",
|
|
3259
|
-
var N = wt(
|
|
3258
|
+
throw new Fi(b, "function", u);
|
|
3259
|
+
var N = wt(_, t, n, r, i, a), R = L(N.map(function(M) {
|
|
3260
3260
|
return M.value;
|
|
3261
3261
|
}));
|
|
3262
3262
|
Array.isArray(R) || (R = [R]), s.push.apply(s, R.map(function(M) {
|
|
@@ -3266,26 +3266,26 @@ function wt(e, t, n, r, i, a, l) {
|
|
|
3266
3266
|
};
|
|
3267
3267
|
}));
|
|
3268
3268
|
}
|
|
3269
|
-
if (ir(
|
|
3270
|
-
var
|
|
3271
|
-
if (!
|
|
3272
|
-
throw new Tn(
|
|
3273
|
-
s.push.apply(s, wt(
|
|
3269
|
+
if (ir(c)) {
|
|
3270
|
+
var v = c.options[h] || c.options.other;
|
|
3271
|
+
if (!v)
|
|
3272
|
+
throw new Tn(c.value, h, Object.keys(c.options), u);
|
|
3273
|
+
s.push.apply(s, wt(v.value, t, n, r, i));
|
|
3274
3274
|
continue;
|
|
3275
3275
|
}
|
|
3276
|
-
if (ar(
|
|
3277
|
-
var
|
|
3278
|
-
if (!
|
|
3276
|
+
if (ar(c)) {
|
|
3277
|
+
var v = c.options["=".concat(h)];
|
|
3278
|
+
if (!v) {
|
|
3279
3279
|
if (!Intl.PluralRules)
|
|
3280
3280
|
throw new Nt(`Intl.PluralRules is not available in this environment.
|
|
3281
3281
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3282
|
-
`, We.MISSING_INTL_API,
|
|
3283
|
-
var $ = n.getPluralRules(t, { type:
|
|
3284
|
-
|
|
3282
|
+
`, We.MISSING_INTL_API, u);
|
|
3283
|
+
var $ = n.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3284
|
+
v = c.options[$] || c.options.other;
|
|
3285
3285
|
}
|
|
3286
|
-
if (!
|
|
3287
|
-
throw new Tn(
|
|
3288
|
-
s.push.apply(s, wt(
|
|
3286
|
+
if (!v)
|
|
3287
|
+
throw new Tn(c.value, h, Object.keys(c.options), u);
|
|
3288
|
+
s.push.apply(s, wt(v.value, t, n, r, i, h - (c.offset || 0)));
|
|
3289
3289
|
continue;
|
|
3290
3290
|
}
|
|
3291
3291
|
}
|
|
@@ -3358,13 +3358,13 @@ var Wi = (
|
|
|
3358
3358
|
dateTime: {},
|
|
3359
3359
|
pluralRules: {}
|
|
3360
3360
|
}, this.format = function(o) {
|
|
3361
|
-
var
|
|
3362
|
-
if (
|
|
3363
|
-
return
|
|
3364
|
-
var
|
|
3365
|
-
return !d.length ||
|
|
3361
|
+
var l = a.formatToParts(o);
|
|
3362
|
+
if (l.length === 1)
|
|
3363
|
+
return l[0].value;
|
|
3364
|
+
var c = l.reduce(function(d, h) {
|
|
3365
|
+
return !d.length || h.type !== Q.literal || typeof d[d.length - 1] != "string" ? d.push(h.value) : d[d.length - 1] += h.value, d;
|
|
3366
3366
|
}, []);
|
|
3367
|
-
return
|
|
3367
|
+
return c.length <= 1 ? c[0] || "" : c;
|
|
3368
3368
|
}, this.formatToParts = function(o) {
|
|
3369
3369
|
return wt(a.ast, a.locales, a.formatters, a.formats, o, void 0, a.message);
|
|
3370
3370
|
}, this.resolvedOptions = function() {
|
|
@@ -3377,9 +3377,9 @@ var Wi = (
|
|
|
3377
3377
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3378
3378
|
if (this.message = t, !e.__parse)
|
|
3379
3379
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3380
|
-
var
|
|
3381
|
-
|
|
3382
|
-
var s = ti(
|
|
3380
|
+
var u = i || {};
|
|
3381
|
+
u.formatters;
|
|
3382
|
+
var s = ti(u, ["formatters"]);
|
|
3383
3383
|
this.ast = e.__parse(t, fe(fe({}, s), { locale: this.resolvedLocale }));
|
|
3384
3384
|
} else
|
|
3385
3385
|
this.ast = t;
|
|
@@ -3493,7 +3493,7 @@ const Be = {}, Zi = (e, t, n) => n && (t in Be || (Be[t] = {}), e in Be[t] || (B
|
|
|
3493
3493
|
}
|
|
3494
3494
|
};
|
|
3495
3495
|
let fn;
|
|
3496
|
-
const qe =
|
|
3496
|
+
const qe = Pt({});
|
|
3497
3497
|
function qi(e) {
|
|
3498
3498
|
return fn[e] || null;
|
|
3499
3499
|
}
|
|
@@ -3605,7 +3605,7 @@ const ta = {
|
|
|
3605
3605
|
function ze() {
|
|
3606
3606
|
return ra;
|
|
3607
3607
|
}
|
|
3608
|
-
const Xt =
|
|
3608
|
+
const Xt = Pt(!1);
|
|
3609
3609
|
var ia = Object.defineProperty, aa = Object.defineProperties, oa = Object.getOwnPropertyDescriptors, Bn = Object.getOwnPropertySymbols, sa = Object.prototype.hasOwnProperty, la = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? ia(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ua = (e, t) => {
|
|
3610
3610
|
for (var n in t || (t = {}))
|
|
3611
3611
|
sa.call(t, n) && Sn(e, n, t[n]);
|
|
@@ -3615,7 +3615,7 @@ var ia = Object.defineProperty, aa = Object.defineProperties, oa = Object.getOwn
|
|
|
3615
3615
|
return e;
|
|
3616
3616
|
}, ca = (e, t) => aa(e, oa(t));
|
|
3617
3617
|
let on;
|
|
3618
|
-
const St =
|
|
3618
|
+
const St = Pt(null);
|
|
3619
3619
|
function Hn(e) {
|
|
3620
3620
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3621
3621
|
}
|
|
@@ -3652,12 +3652,12 @@ const ha = (e) => {
|
|
|
3652
3652
|
return i in t ? t[i] : t[i] = e(r);
|
|
3653
3653
|
};
|
|
3654
3654
|
};
|
|
3655
|
-
var fa = Object.defineProperty, Ht = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable,
|
|
3655
|
+
var fa = Object.defineProperty, Ht = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable, In = (e, t, n) => t in e ? fa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, dn = (e, t) => {
|
|
3656
3656
|
for (var n in t || (t = {}))
|
|
3657
|
-
_r.call(t, n) &&
|
|
3657
|
+
_r.call(t, n) && In(e, n, t[n]);
|
|
3658
3658
|
if (Ht)
|
|
3659
3659
|
for (var n of Ht(t))
|
|
3660
|
-
Er.call(t, n) &&
|
|
3660
|
+
Er.call(t, n) && In(e, n, t[n]);
|
|
3661
3661
|
return e;
|
|
3662
3662
|
}, Ke = (e, t) => {
|
|
3663
3663
|
var n = {};
|
|
@@ -3724,33 +3724,33 @@ const ut = (e, t) => {
|
|
|
3724
3724
|
})
|
|
3725
3725
|
), _a = (e, t = {}) => {
|
|
3726
3726
|
var n, r, i, a;
|
|
3727
|
-
let
|
|
3728
|
-
typeof e == "object" && (
|
|
3727
|
+
let u = t;
|
|
3728
|
+
typeof e == "object" && (u = e, e = u.id);
|
|
3729
3729
|
const {
|
|
3730
3730
|
values: s,
|
|
3731
3731
|
locale: o = Ne(),
|
|
3732
|
-
default:
|
|
3733
|
-
} =
|
|
3732
|
+
default: l
|
|
3733
|
+
} = u;
|
|
3734
3734
|
if (o == null)
|
|
3735
3735
|
throw new Error(
|
|
3736
3736
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3737
3737
|
);
|
|
3738
|
-
let
|
|
3739
|
-
if (!
|
|
3740
|
-
|
|
3741
|
-
else if (typeof
|
|
3738
|
+
let c = mr(e, o);
|
|
3739
|
+
if (!c)
|
|
3740
|
+
c = (a = (i = (r = (n = ze()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: o, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
|
|
3741
|
+
else if (typeof c != "string")
|
|
3742
3742
|
return console.warn(
|
|
3743
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3744
|
-
),
|
|
3743
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3744
|
+
), c;
|
|
3745
3745
|
if (!s)
|
|
3746
|
-
return
|
|
3747
|
-
let d =
|
|
3746
|
+
return c;
|
|
3747
|
+
let d = c;
|
|
3748
3748
|
try {
|
|
3749
|
-
d = va(
|
|
3750
|
-
} catch (
|
|
3751
|
-
|
|
3749
|
+
d = va(c, o).format(s);
|
|
3750
|
+
} catch (h) {
|
|
3751
|
+
h instanceof Error && console.warn(
|
|
3752
3752
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3753
|
-
|
|
3753
|
+
h.message
|
|
3754
3754
|
);
|
|
3755
3755
|
}
|
|
3756
3756
|
return d;
|
|
@@ -3764,7 +3764,7 @@ function Ta({ withLocale: e, translations: t }) {
|
|
|
3764
3764
|
n == null && (qe.set(t), Se.set(e));
|
|
3765
3765
|
});
|
|
3766
3766
|
}
|
|
3767
|
-
function
|
|
3767
|
+
function Pn(e, t) {
|
|
3768
3768
|
br(e, t);
|
|
3769
3769
|
}
|
|
3770
3770
|
function Ba(e) {
|
|
@@ -4155,7 +4155,7 @@ const O = wr(Ca), Ln = {
|
|
|
4155
4155
|
ZMK: "",
|
|
4156
4156
|
ZMW: "",
|
|
4157
4157
|
ZWD: "Z$"
|
|
4158
|
-
}, Ha = 6e3,
|
|
4158
|
+
}, Ha = 6e3, Ia = {
|
|
4159
4159
|
InvalidSession: "Invalid session"
|
|
4160
4160
|
}, z = {
|
|
4161
4161
|
BalanceError: "BalanceError",
|
|
@@ -4185,8 +4185,10 @@ const O = wr(Ca), Ln = {
|
|
|
4185
4185
|
}, On = {
|
|
4186
4186
|
Fiat: "Fiat",
|
|
4187
4187
|
CryptoCurrency: "CryptoCurrency"
|
|
4188
|
+
}, Pa = {
|
|
4189
|
+
Credit: "Credit"
|
|
4188
4190
|
};
|
|
4189
|
-
function
|
|
4191
|
+
function La(e, t) {
|
|
4190
4192
|
let n;
|
|
4191
4193
|
return function(...r) {
|
|
4192
4194
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -4201,7 +4203,7 @@ const Dn = (e, t = null, n = 2) => {
|
|
|
4201
4203
|
return console.warn("Failed to stringify:", r), null;
|
|
4202
4204
|
}
|
|
4203
4205
|
};
|
|
4204
|
-
function
|
|
4206
|
+
function Na(e) {
|
|
4205
4207
|
const t = (n) => {
|
|
4206
4208
|
e.contains(n.target) || e.dispatchEvent(new CustomEvent("outclick"));
|
|
4207
4209
|
};
|
|
@@ -4211,7 +4213,28 @@ function La(e) {
|
|
|
4211
4213
|
}
|
|
4212
4214
|
};
|
|
4213
4215
|
}
|
|
4214
|
-
|
|
4216
|
+
const Ra = (e) => {
|
|
4217
|
+
if (typeof e == "number" && !e.toString().includes("e") && !e.toString().includes("E"))
|
|
4218
|
+
return e.toString();
|
|
4219
|
+
const t = typeof e == "number" ? e.toExponential() : e, [n, r] = t.toLowerCase().split("e"), i = n.startsWith("-"), a = n.replace("-", ""), [u, s = ""] = a.split("."), o = parseInt(r, 10);
|
|
4220
|
+
let l;
|
|
4221
|
+
if (o === 0)
|
|
4222
|
+
l = a;
|
|
4223
|
+
else if (o > 0) {
|
|
4224
|
+
const c = u + s, d = o - s.length;
|
|
4225
|
+
if (d >= 0)
|
|
4226
|
+
l = c + "0".repeat(d);
|
|
4227
|
+
else {
|
|
4228
|
+
const h = u.length + o;
|
|
4229
|
+
l = c.slice(0, h) + "." + c.slice(h);
|
|
4230
|
+
}
|
|
4231
|
+
} else {
|
|
4232
|
+
const c = u + s, d = c.length + o;
|
|
4233
|
+
d > 0 ? l = c.slice(0, d) + "." + c.slice(d) : l = "0." + "0".repeat(Math.abs(d)) + c;
|
|
4234
|
+
}
|
|
4235
|
+
return i ? "-" + l : l;
|
|
4236
|
+
};
|
|
4237
|
+
function Oa(e) {
|
|
4215
4238
|
ln(e, "svelte-1g9pqha", ".selectWrapper.svelte-1g9pqha.svelte-1g9pqha{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1g9pqha.svelte-1g9pqha{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;color:var(--emw--select-typography, #595959);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.selectButton.svelte-1g9pqha.svelte-1g9pqha:focus-visible{outline:none}.label.svelte-1g9pqha.svelte-1g9pqha{display:flex;align-items:center}.selectDropdownWrapper.svelte-1g9pqha.svelte-1g9pqha{position:absolute;top:calc(100% + 2px);left:0;right:0;overflow:hidden;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1g9pqha.svelte-1g9pqha{display:flex;flex-direction:column;gap:4px;max-height:150px;overflow-y:auto;scrollbar-width:thin}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha:hover,.selectDropdown.svelte-1g9pqha li.active.svelte-1g9pqha{background:var(--emw--selected-option, #f0f0f0)}.symbol.svelte-1g9pqha.svelte-1g9pqha{display:inline-flex;width:14px;height:14px;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw--symbol-background, #595959);font-size:var(--emw--font-size-small, 12px);color:var(--emw--symbol-typography, #fff)}");
|
|
4216
4239
|
}
|
|
4217
4240
|
function Mn(e, t, n) {
|
|
@@ -4228,7 +4251,7 @@ function kn(e) {
|
|
|
4228
4251
|
t = w("span"), r = W(n), g(t, "class", "symbol svelte-1g9pqha");
|
|
4229
4252
|
},
|
|
4230
4253
|
m(i, a) {
|
|
4231
|
-
|
|
4254
|
+
T(i, t, a), y(t, r);
|
|
4232
4255
|
},
|
|
4233
4256
|
p(i, a) {
|
|
4234
4257
|
a & /*selected*/
|
|
@@ -4254,14 +4277,14 @@ function Fn(e) {
|
|
|
4254
4277
|
i[a].c();
|
|
4255
4278
|
g(n, "class", "selectDropdown svelte-1g9pqha"), g(t, "class", "selectDropdownWrapper svelte-1g9pqha");
|
|
4256
4279
|
},
|
|
4257
|
-
m(a,
|
|
4258
|
-
|
|
4280
|
+
m(a, u) {
|
|
4281
|
+
T(a, t, u), y(t, n);
|
|
4259
4282
|
for (let s = 0; s < i.length; s += 1)
|
|
4260
4283
|
i[s] && i[s].m(n, null);
|
|
4261
4284
|
e[14](n);
|
|
4262
4285
|
},
|
|
4263
|
-
p(a,
|
|
4264
|
-
if (
|
|
4286
|
+
p(a, u) {
|
|
4287
|
+
if (u & /*options, selected, activeIndex, handleChange*/
|
|
4265
4288
|
547) {
|
|
4266
4289
|
r = Tt(
|
|
4267
4290
|
/*options*/
|
|
@@ -4270,7 +4293,7 @@ function Fn(e) {
|
|
|
4270
4293
|
let s;
|
|
4271
4294
|
for (s = 0; s < r.length; s += 1) {
|
|
4272
4295
|
const o = Mn(a, r, s);
|
|
4273
|
-
i[s] ? i[s].p(o,
|
|
4296
|
+
i[s] ? i[s].p(o, u) : (i[s] = Un(o), i[s].c(), i[s].m(n, null));
|
|
4274
4297
|
}
|
|
4275
4298
|
for (; s < i.length; s += 1)
|
|
4276
4299
|
i[s].d(1);
|
|
@@ -4286,13 +4309,13 @@ function Un(e) {
|
|
|
4286
4309
|
let t, n, r = (
|
|
4287
4310
|
/*option*/
|
|
4288
4311
|
e[16]?.symbol + ""
|
|
4289
|
-
), i, a,
|
|
4312
|
+
), i, a, u = (
|
|
4290
4313
|
/*option*/
|
|
4291
4314
|
e[16]?.currency + ""
|
|
4292
|
-
), s, o,
|
|
4315
|
+
), s, o, l, c, d;
|
|
4293
4316
|
return {
|
|
4294
4317
|
c() {
|
|
4295
|
-
t = w("li"), n = w("span"), i = W(r), a =
|
|
4318
|
+
t = w("li"), n = w("span"), i = W(r), a = I(), s = W(u), o = I(), g(n, "class", "symbol svelte-1g9pqha"), g(t, "role", "option"), g(t, "aria-selected", l = /*option*/
|
|
4296
4319
|
e[16]?.currency === /*selected*/
|
|
4297
4320
|
e[0]?.currency || /*index*/
|
|
4298
4321
|
e[18] === /*activeIndex*/
|
|
@@ -4306,9 +4329,9 @@ function Un(e) {
|
|
|
4306
4329
|
e[5]
|
|
4307
4330
|
);
|
|
4308
4331
|
},
|
|
4309
|
-
m(
|
|
4310
|
-
|
|
4311
|
-
te(t, "keydown",
|
|
4332
|
+
m(h, p) {
|
|
4333
|
+
T(h, t, p), y(t, n), y(n, i), y(t, a), y(t, s), y(t, o), c || (d = [
|
|
4334
|
+
te(t, "keydown", Ma),
|
|
4312
4335
|
te(t, "click", function() {
|
|
4313
4336
|
ct(
|
|
4314
4337
|
/*handleChange*/
|
|
@@ -4325,19 +4348,19 @@ function Un(e) {
|
|
|
4325
4348
|
e[18]
|
|
4326
4349
|
).apply(this, arguments);
|
|
4327
4350
|
})
|
|
4328
|
-
],
|
|
4351
|
+
], c = !0);
|
|
4329
4352
|
},
|
|
4330
|
-
p(
|
|
4331
|
-
e =
|
|
4353
|
+
p(h, p) {
|
|
4354
|
+
e = h, p & /*options*/
|
|
4332
4355
|
2 && r !== (r = /*option*/
|
|
4333
4356
|
e[16]?.symbol + "") && ne(i, r), p & /*options*/
|
|
4334
|
-
2 &&
|
|
4335
|
-
e[16]?.currency + "") && ne(s,
|
|
4336
|
-
35 &&
|
|
4357
|
+
2 && u !== (u = /*option*/
|
|
4358
|
+
e[16]?.currency + "") && ne(s, u), p & /*options, selected, activeIndex*/
|
|
4359
|
+
35 && l !== (l = /*option*/
|
|
4337
4360
|
e[16]?.currency === /*selected*/
|
|
4338
4361
|
e[0]?.currency || /*index*/
|
|
4339
4362
|
e[18] === /*activeIndex*/
|
|
4340
|
-
e[5]) && g(t, "aria-selected",
|
|
4363
|
+
e[5]) && g(t, "aria-selected", l), p & /*options, selected, activeIndex*/
|
|
4341
4364
|
35 && oe(
|
|
4342
4365
|
t,
|
|
4343
4366
|
"active",
|
|
@@ -4348,17 +4371,17 @@ function Un(e) {
|
|
|
4348
4371
|
e[5]
|
|
4349
4372
|
);
|
|
4350
4373
|
},
|
|
4351
|
-
d(
|
|
4352
|
-
|
|
4374
|
+
d(h) {
|
|
4375
|
+
h && A(t), c = !1, _e(d);
|
|
4353
4376
|
}
|
|
4354
4377
|
};
|
|
4355
4378
|
}
|
|
4356
|
-
function
|
|
4379
|
+
function Da(e) {
|
|
4357
4380
|
let t, n, r, i, a = (
|
|
4358
4381
|
/*selected*/
|
|
4359
4382
|
(e[0]?.currency || /*placeholder*/
|
|
4360
4383
|
e[2]) + ""
|
|
4361
|
-
),
|
|
4384
|
+
), u, s, o, l, c, d, h = (
|
|
4362
4385
|
/*selected*/
|
|
4363
4386
|
e[0]?.symbol && /*withSymbol*/
|
|
4364
4387
|
e[3] === Te.true && kn(e)
|
|
@@ -4368,7 +4391,7 @@ function Ra(e) {
|
|
|
4368
4391
|
);
|
|
4369
4392
|
return {
|
|
4370
4393
|
c() {
|
|
4371
|
-
t = w("div"), n = w("button"), r = w("span"),
|
|
4394
|
+
t = w("div"), n = w("button"), r = w("span"), h && h.c(), i = I(), u = W(a), s = I(), o = w("span"), o.innerHTML = '<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>', l = I(), p && p.c(), g(r, "class", "label svelte-1g9pqha"), g(o, "class", "arrow"), oe(
|
|
4372
4395
|
o,
|
|
4373
4396
|
"open",
|
|
4374
4397
|
/*open*/
|
|
@@ -4381,8 +4404,8 @@ function Ra(e) {
|
|
|
4381
4404
|
), g(n, "aria-controls", "custom-select"), g(n, "tabindex", "0"), n.disabled = /*disabled*/
|
|
4382
4405
|
e[4], g(t, "class", "selectWrapper svelte-1g9pqha");
|
|
4383
4406
|
},
|
|
4384
|
-
m(
|
|
4385
|
-
|
|
4407
|
+
m(_, b) {
|
|
4408
|
+
T(_, t, b), y(t, n), y(n, r), h && h.m(r, null), y(r, i), y(r, u), y(n, s), y(n, o), y(t, l), p && p.m(t, null), c || (d = [
|
|
4386
4409
|
te(
|
|
4387
4410
|
n,
|
|
4388
4411
|
"keydown",
|
|
@@ -4393,87 +4416,87 @@ function Ra(e) {
|
|
|
4393
4416
|
/*handleToggleDropdown*/
|
|
4394
4417
|
e[8]
|
|
4395
4418
|
)),
|
|
4396
|
-
Ar(
|
|
4419
|
+
Ar(Na.call(null, t)),
|
|
4397
4420
|
te(
|
|
4398
4421
|
t,
|
|
4399
4422
|
"outclick",
|
|
4400
4423
|
/*handleOutClick*/
|
|
4401
4424
|
e[10]
|
|
4402
4425
|
)
|
|
4403
|
-
],
|
|
4426
|
+
], c = !0);
|
|
4404
4427
|
},
|
|
4405
|
-
p(
|
|
4428
|
+
p(_, [b]) {
|
|
4406
4429
|
/*selected*/
|
|
4407
|
-
|
|
4408
|
-
|
|
4430
|
+
_[0]?.symbol && /*withSymbol*/
|
|
4431
|
+
_[3] === Te.true ? h ? h.p(_, b) : (h = kn(_), h.c(), h.m(r, i)) : h && (h.d(1), h = null), b & /*selected, placeholder*/
|
|
4409
4432
|
5 && a !== (a = /*selected*/
|
|
4410
|
-
(
|
|
4411
|
-
|
|
4433
|
+
(_[0]?.currency || /*placeholder*/
|
|
4434
|
+
_[2]) + "") && ne(u, a), b & /*open*/
|
|
4412
4435
|
128 && oe(
|
|
4413
4436
|
o,
|
|
4414
4437
|
"open",
|
|
4415
4438
|
/*open*/
|
|
4416
|
-
|
|
4439
|
+
_[7]
|
|
4417
4440
|
), b & /*open*/
|
|
4418
4441
|
128 && g(
|
|
4419
4442
|
n,
|
|
4420
4443
|
"aria-expanded",
|
|
4421
4444
|
/*open*/
|
|
4422
|
-
|
|
4445
|
+
_[7]
|
|
4423
4446
|
), b & /*disabled*/
|
|
4424
4447
|
16 && (n.disabled = /*disabled*/
|
|
4425
|
-
|
|
4426
|
-
|
|
4448
|
+
_[4]), /*open*/
|
|
4449
|
+
_[7] ? p ? p.p(_, b) : (p = Fn(_), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
|
|
4427
4450
|
},
|
|
4428
|
-
i:
|
|
4429
|
-
o:
|
|
4430
|
-
d(
|
|
4431
|
-
|
|
4451
|
+
i: S,
|
|
4452
|
+
o: S,
|
|
4453
|
+
d(_) {
|
|
4454
|
+
_ && A(t), h && h.d(), p && p.d(), c = !1, _e(d);
|
|
4432
4455
|
}
|
|
4433
4456
|
};
|
|
4434
4457
|
}
|
|
4435
|
-
const
|
|
4436
|
-
function
|
|
4437
|
-
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = O("select") } = t, { withSymbol:
|
|
4438
|
-
} } = t,
|
|
4458
|
+
const Ma = (e) => e.preventDefault();
|
|
4459
|
+
function ka(e, t, n) {
|
|
4460
|
+
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = O("select") } = t, { withSymbol: u = "true" } = t, { id: s } = t, { disabled: o = !1 } = t, { onChange: l = () => {
|
|
4461
|
+
} } = t, c = -1, d, h = !1;
|
|
4439
4462
|
const p = () => {
|
|
4440
|
-
r.length !== 0 && (n(7,
|
|
4441
|
-
},
|
|
4442
|
-
|
|
4443
|
-
}, b = (
|
|
4444
|
-
n(7,
|
|
4463
|
+
r.length !== 0 && (n(7, h = !h), h && (n(5, c = r.findIndex((v) => v?.currency === i?.currency)), setTimeout(() => d?.focus(), 0), window.dispatchEvent(new CustomEvent("dropdown-opened", { detail: s }))));
|
|
4464
|
+
}, _ = (v) => {
|
|
4465
|
+
v.detail !== s && h && n(7, h = !1);
|
|
4466
|
+
}, b = (v, $) => () => {
|
|
4467
|
+
n(7, h = !1), n(0, i = v), l && typeof l == "function" && l(v, $);
|
|
4445
4468
|
}, L = () => {
|
|
4446
|
-
n(7,
|
|
4447
|
-
}, N = (
|
|
4448
|
-
|
|
4469
|
+
n(7, h = !1);
|
|
4470
|
+
}, N = (v) => {
|
|
4471
|
+
h && (v.key === _t.ArrowDown ? (v.preventDefault(), n(5, c = (c + 1) % r.length)) : v.key === _t.ArrowUp ? (v.preventDefault(), n(5, c = (c - 1 + r.length) % r.length)) : v.key === _t.Enter ? (v.preventDefault(), b(i, c)()) : v.key === _t.Escape && n(7, h = !1));
|
|
4449
4472
|
};
|
|
4450
4473
|
Kn(() => {
|
|
4451
|
-
window.addEventListener("dropdown-opened",
|
|
4452
|
-
}),
|
|
4453
|
-
window.removeEventListener("dropdown-opened",
|
|
4474
|
+
window.addEventListener("dropdown-opened", _);
|
|
4475
|
+
}), Pr(() => {
|
|
4476
|
+
window.removeEventListener("dropdown-opened", _);
|
|
4454
4477
|
});
|
|
4455
|
-
function R(
|
|
4456
|
-
Ve[
|
|
4457
|
-
d =
|
|
4478
|
+
function R(v) {
|
|
4479
|
+
Ve[v ? "unshift" : "push"](() => {
|
|
4480
|
+
d = v, n(6, d);
|
|
4458
4481
|
});
|
|
4459
4482
|
}
|
|
4460
|
-
return e.$$set = (
|
|
4461
|
-
"options" in
|
|
4483
|
+
return e.$$set = (v) => {
|
|
4484
|
+
"options" in v && n(1, r = v.options), "selected" in v && n(0, i = v.selected), "placeholder" in v && n(2, a = v.placeholder), "withSymbol" in v && n(3, u = v.withSymbol), "id" in v && n(12, s = v.id), "disabled" in v && n(4, o = v.disabled), "onChange" in v && n(13, l = v.onChange);
|
|
4462
4485
|
}, [
|
|
4463
4486
|
i,
|
|
4464
4487
|
r,
|
|
4465
4488
|
a,
|
|
4466
|
-
|
|
4489
|
+
u,
|
|
4467
4490
|
o,
|
|
4468
|
-
h,
|
|
4469
|
-
d,
|
|
4470
4491
|
c,
|
|
4492
|
+
d,
|
|
4493
|
+
h,
|
|
4471
4494
|
p,
|
|
4472
4495
|
b,
|
|
4473
4496
|
L,
|
|
4474
4497
|
N,
|
|
4475
4498
|
s,
|
|
4476
|
-
|
|
4499
|
+
l,
|
|
4477
4500
|
R
|
|
4478
4501
|
];
|
|
4479
4502
|
}
|
|
@@ -4482,9 +4505,9 @@ class sn extends hn {
|
|
|
4482
4505
|
super(), un(
|
|
4483
4506
|
this,
|
|
4484
4507
|
t,
|
|
4508
|
+
ka,
|
|
4485
4509
|
Da,
|
|
4486
|
-
|
|
4487
|
-
Pt,
|
|
4510
|
+
It,
|
|
4488
4511
|
{
|
|
4489
4512
|
options: 1,
|
|
4490
4513
|
selected: 0,
|
|
@@ -4494,7 +4517,7 @@ class sn extends hn {
|
|
|
4494
4517
|
disabled: 4,
|
|
4495
4518
|
onChange: 13
|
|
4496
4519
|
},
|
|
4497
|
-
|
|
4520
|
+
Oa
|
|
4498
4521
|
);
|
|
4499
4522
|
}
|
|
4500
4523
|
get options() {
|
|
@@ -4541,21 +4564,21 @@ class sn extends hn {
|
|
|
4541
4564
|
}
|
|
4542
4565
|
}
|
|
4543
4566
|
cn(sn, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, id: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
|
|
4544
|
-
function
|
|
4567
|
+
function Fa(e) {
|
|
4545
4568
|
ln(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
|
|
4546
4569
|
}
|
|
4547
|
-
function
|
|
4570
|
+
function Ua(e) {
|
|
4548
4571
|
let t, n, r = O("balanceUnavailable") + "", i;
|
|
4549
4572
|
return {
|
|
4550
4573
|
c() {
|
|
4551
|
-
t = w("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n =
|
|
4574
|
+
t = w("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n = I(), i = W(r), g(t, "class", "warningIcon svelte-2fhtvy");
|
|
4552
4575
|
},
|
|
4553
|
-
m(a,
|
|
4554
|
-
|
|
4576
|
+
m(a, u) {
|
|
4577
|
+
T(a, t, u), T(a, n, u), T(a, i, u);
|
|
4555
4578
|
},
|
|
4556
|
-
p:
|
|
4557
|
-
i:
|
|
4558
|
-
o:
|
|
4579
|
+
p: S,
|
|
4580
|
+
i: S,
|
|
4581
|
+
o: S,
|
|
4559
4582
|
d(a) {
|
|
4560
4583
|
a && (A(t), A(n), A(i));
|
|
4561
4584
|
}
|
|
@@ -4563,11 +4586,11 @@ function ka(e) {
|
|
|
4563
4586
|
}
|
|
4564
4587
|
class Dt extends hn {
|
|
4565
4588
|
constructor(t) {
|
|
4566
|
-
super(), un(this, t, null,
|
|
4589
|
+
super(), un(this, t, null, Ua, It, {}, Fa);
|
|
4567
4590
|
}
|
|
4568
4591
|
}
|
|
4569
4592
|
cn(Dt, {}, [], [], !0);
|
|
4570
|
-
function
|
|
4593
|
+
function Va(e) {
|
|
4571
4594
|
ln(e, "svelte-1mw4zse", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--button-font-size, 14px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
|
|
4572
4595
|
}
|
|
4573
4596
|
function Vn(e, t, n) {
|
|
@@ -4581,14 +4604,14 @@ function Gn(e) {
|
|
|
4581
4604
|
t = w("button"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.414 12l4.95-4.95-1.414-1.414-4.95 4.95-4.95-4.95L5.636 7.05l4.95 4.95-4.95 4.95 1.414 1.414 4.95-4.95 4.95 4.95 1.414-1.414-4.95-4.95z"></path></svg>', g(t, "type", "button"), g(t, "class", "closeButton");
|
|
4582
4605
|
},
|
|
4583
4606
|
m(i, a) {
|
|
4584
|
-
|
|
4607
|
+
T(i, t, a), n || (r = te(
|
|
4585
4608
|
t,
|
|
4586
4609
|
"click",
|
|
4587
4610
|
/*handleCloseWidget*/
|
|
4588
4611
|
e[23]
|
|
4589
4612
|
), n = !0);
|
|
4590
4613
|
},
|
|
4591
|
-
p:
|
|
4614
|
+
p: S,
|
|
4592
4615
|
d(i) {
|
|
4593
4616
|
i && A(t), n = !1, r();
|
|
4594
4617
|
}
|
|
@@ -4596,24 +4619,24 @@ function Gn(e) {
|
|
|
4596
4619
|
}
|
|
4597
4620
|
function $n(e) {
|
|
4598
4621
|
let t, n, r, i;
|
|
4599
|
-
const a = [
|
|
4600
|
-
function s(o,
|
|
4622
|
+
const a = [$a, Ga], u = [];
|
|
4623
|
+
function s(o, l) {
|
|
4601
4624
|
return !/*isBalanceFetched*/
|
|
4602
4625
|
o[16] || !/*isCurrenciesFetched*/
|
|
4603
4626
|
o[17] ? 0 : 1;
|
|
4604
4627
|
}
|
|
4605
|
-
return t = s(e), n =
|
|
4628
|
+
return t = s(e), n = u[t] = a[t](e), {
|
|
4606
4629
|
c() {
|
|
4607
4630
|
n.c(), r = Br();
|
|
4608
4631
|
},
|
|
4609
|
-
m(o,
|
|
4610
|
-
|
|
4632
|
+
m(o, l) {
|
|
4633
|
+
u[t].m(o, l), T(o, r, l), i = !0;
|
|
4611
4634
|
},
|
|
4612
|
-
p(o,
|
|
4613
|
-
let
|
|
4614
|
-
t = s(o), t ===
|
|
4615
|
-
|
|
4616
|
-
}), Le(), n =
|
|
4635
|
+
p(o, l) {
|
|
4636
|
+
let c = t;
|
|
4637
|
+
t = s(o), t === c ? u[t].p(o, l) : (Pe(), X(u[c], 1, 1, () => {
|
|
4638
|
+
u[c] = null;
|
|
4639
|
+
}), Le(), n = u[t], n ? n.p(o, l) : (n = u[t] = a[t](o), n.c()), G(n, 1), n.m(r.parentNode, r));
|
|
4617
4640
|
},
|
|
4618
4641
|
i(o) {
|
|
4619
4642
|
i || (G(n), i = !0);
|
|
@@ -4622,31 +4645,31 @@ function $n(e) {
|
|
|
4622
4645
|
X(n), i = !1;
|
|
4623
4646
|
},
|
|
4624
4647
|
d(o) {
|
|
4625
|
-
o && A(r),
|
|
4648
|
+
o && A(r), u[t].d(o);
|
|
4626
4649
|
}
|
|
4627
4650
|
};
|
|
4628
4651
|
}
|
|
4629
|
-
function
|
|
4652
|
+
function Ga(e) {
|
|
4630
4653
|
let t, n, r, i;
|
|
4631
|
-
const a = [
|
|
4632
|
-
function s(o,
|
|
4654
|
+
const a = [Xa, ja], u = [];
|
|
4655
|
+
function s(o, l) {
|
|
4633
4656
|
return (
|
|
4634
4657
|
/*fetchResponse*/
|
|
4635
4658
|
o[12]?.source === z.BalanceError ? 0 : 1
|
|
4636
4659
|
);
|
|
4637
4660
|
}
|
|
4638
|
-
return n = s(e), r =
|
|
4661
|
+
return n = s(e), r = u[n] = a[n](e), {
|
|
4639
4662
|
c() {
|
|
4640
4663
|
t = w("div"), r.c(), g(t, "class", "headerPlayerBalance amountContainer");
|
|
4641
4664
|
},
|
|
4642
|
-
m(o,
|
|
4643
|
-
|
|
4665
|
+
m(o, l) {
|
|
4666
|
+
T(o, t, l), u[n].m(t, null), i = !0;
|
|
4644
4667
|
},
|
|
4645
|
-
p(o,
|
|
4646
|
-
let
|
|
4647
|
-
n = s(o), n ===
|
|
4648
|
-
|
|
4649
|
-
}), Le(), r =
|
|
4668
|
+
p(o, l) {
|
|
4669
|
+
let c = n;
|
|
4670
|
+
n = s(o), n === c ? u[n].p(o, l) : (Pe(), X(u[c], 1, 1, () => {
|
|
4671
|
+
u[c] = null;
|
|
4672
|
+
}), Le(), r = u[n], r ? r.p(o, l) : (r = u[n] = a[n](o), r.c()), G(r, 1), r.m(t, null));
|
|
4650
4673
|
},
|
|
4651
4674
|
i(o) {
|
|
4652
4675
|
i || (G(r), i = !0);
|
|
@@ -4655,57 +4678,57 @@ function Ua(e) {
|
|
|
4655
4678
|
X(r), i = !1;
|
|
4656
4679
|
},
|
|
4657
4680
|
d(o) {
|
|
4658
|
-
o && A(t),
|
|
4681
|
+
o && A(t), u[n].d();
|
|
4659
4682
|
}
|
|
4660
4683
|
};
|
|
4661
4684
|
}
|
|
4662
|
-
function
|
|
4685
|
+
function $a(e) {
|
|
4663
4686
|
let t;
|
|
4664
4687
|
return {
|
|
4665
4688
|
c() {
|
|
4666
4689
|
t = w("div"), g(t, "class", "skeleton");
|
|
4667
4690
|
},
|
|
4668
4691
|
m(n, r) {
|
|
4669
|
-
|
|
4692
|
+
T(n, t, r);
|
|
4670
4693
|
},
|
|
4671
|
-
p:
|
|
4672
|
-
i:
|
|
4673
|
-
o:
|
|
4694
|
+
p: S,
|
|
4695
|
+
i: S,
|
|
4696
|
+
o: S,
|
|
4674
4697
|
d(n) {
|
|
4675
4698
|
n && A(t);
|
|
4676
4699
|
}
|
|
4677
4700
|
};
|
|
4678
4701
|
}
|
|
4679
|
-
function
|
|
4702
|
+
function ja(e) {
|
|
4680
4703
|
let t, n, r = (
|
|
4681
4704
|
/*playerBalance*/
|
|
4682
4705
|
(e[10]?.amount || 0) + ""
|
|
4683
|
-
), i, a,
|
|
4706
|
+
), i, a, u = (
|
|
4684
4707
|
/*playerBalance*/
|
|
4685
4708
|
(e[10]?.currency || "") + ""
|
|
4686
4709
|
), s;
|
|
4687
4710
|
return {
|
|
4688
4711
|
c() {
|
|
4689
|
-
t = w("span"), t.textContent = `${O("totalBalance")}`, n =
|
|
4712
|
+
t = w("span"), t.textContent = `${O("totalBalance")}`, n = I(), i = W(r), a = I(), s = W(u), g(t, "class", "totalAmount");
|
|
4690
4713
|
},
|
|
4691
|
-
m(o,
|
|
4692
|
-
|
|
4714
|
+
m(o, l) {
|
|
4715
|
+
T(o, t, l), T(o, n, l), T(o, i, l), T(o, a, l), T(o, s, l);
|
|
4693
4716
|
},
|
|
4694
|
-
p(o,
|
|
4695
|
-
|
|
4717
|
+
p(o, l) {
|
|
4718
|
+
l[0] & /*playerBalance*/
|
|
4696
4719
|
1024 && r !== (r = /*playerBalance*/
|
|
4697
|
-
(o[10]?.amount || 0) + "") && ne(i, r),
|
|
4698
|
-
1024 &&
|
|
4699
|
-
(o[10]?.currency || "") + "") && ne(s,
|
|
4720
|
+
(o[10]?.amount || 0) + "") && ne(i, r), l[0] & /*playerBalance*/
|
|
4721
|
+
1024 && u !== (u = /*playerBalance*/
|
|
4722
|
+
(o[10]?.currency || "") + "") && ne(s, u);
|
|
4700
4723
|
},
|
|
4701
|
-
i:
|
|
4702
|
-
o:
|
|
4724
|
+
i: S,
|
|
4725
|
+
o: S,
|
|
4703
4726
|
d(o) {
|
|
4704
4727
|
o && (A(t), A(n), A(i), A(a), A(s));
|
|
4705
4728
|
}
|
|
4706
4729
|
};
|
|
4707
4730
|
}
|
|
4708
|
-
function
|
|
4731
|
+
function Xa(e) {
|
|
4709
4732
|
let t, n;
|
|
4710
4733
|
return t = new Dt({}), {
|
|
4711
4734
|
c() {
|
|
@@ -4714,7 +4737,7 @@ function $a(e) {
|
|
|
4714
4737
|
m(r, i) {
|
|
4715
4738
|
Ge(t, r, i), n = !0;
|
|
4716
4739
|
},
|
|
4717
|
-
p:
|
|
4740
|
+
p: S,
|
|
4718
4741
|
i(r) {
|
|
4719
4742
|
n || (G(t.$$.fragment, r), n = !0);
|
|
4720
4743
|
},
|
|
@@ -4726,98 +4749,98 @@ function $a(e) {
|
|
|
4726
4749
|
}
|
|
4727
4750
|
};
|
|
4728
4751
|
}
|
|
4729
|
-
function
|
|
4730
|
-
let t, n, r, i, a,
|
|
4731
|
-
const
|
|
4732
|
-
function
|
|
4752
|
+
function Wa(e) {
|
|
4753
|
+
let t, n, r, i, a, u, s, o, l;
|
|
4754
|
+
const c = [qa, Za], d = [];
|
|
4755
|
+
function h(p, _) {
|
|
4733
4756
|
return (
|
|
4734
4757
|
/*fetchResponse*/
|
|
4735
4758
|
p[12]?.source === z.BalanceError ? 0 : 1
|
|
4736
4759
|
);
|
|
4737
4760
|
}
|
|
4738
|
-
return
|
|
4761
|
+
return u = h(e), s = d[u] = c[u](e), {
|
|
4739
4762
|
c() {
|
|
4740
4763
|
t = w("div"), n = w("p"), r = W(
|
|
4741
4764
|
/*validationError*/
|
|
4742
4765
|
e[13]
|
|
4743
|
-
), i =
|
|
4766
|
+
), i = I(), a = w("div"), s.c(), g(n, "class", "validationError"), g(a, "class", "playerBalance amountContainer"), g(t, "class", o = "balanceContainer " + /*validationError*/
|
|
4744
4767
|
(e[13] ? "hasError" : ""));
|
|
4745
4768
|
},
|
|
4746
|
-
m(p,
|
|
4747
|
-
|
|
4769
|
+
m(p, _) {
|
|
4770
|
+
T(p, t, _), y(t, n), y(n, r), y(t, i), y(t, a), d[u].m(a, null), l = !0;
|
|
4748
4771
|
},
|
|
4749
|
-
p(p,
|
|
4750
|
-
(!
|
|
4772
|
+
p(p, _) {
|
|
4773
|
+
(!l || _[0] & /*validationError*/
|
|
4751
4774
|
8192) && ne(
|
|
4752
4775
|
r,
|
|
4753
4776
|
/*validationError*/
|
|
4754
4777
|
p[13]
|
|
4755
4778
|
);
|
|
4756
|
-
let b =
|
|
4757
|
-
|
|
4779
|
+
let b = u;
|
|
4780
|
+
u = h(p), u === b ? d[u].p(p, _) : (Pe(), X(d[b], 1, 1, () => {
|
|
4758
4781
|
d[b] = null;
|
|
4759
|
-
}), Le(), s = d[
|
|
4782
|
+
}), Le(), s = d[u], s ? s.p(p, _) : (s = d[u] = c[u](p), s.c()), G(s, 1), s.m(a, null)), (!l || _[0] & /*validationError*/
|
|
4760
4783
|
8192 && o !== (o = "balanceContainer " + /*validationError*/
|
|
4761
4784
|
(p[13] ? "hasError" : ""))) && g(t, "class", o);
|
|
4762
4785
|
},
|
|
4763
4786
|
i(p) {
|
|
4764
|
-
|
|
4787
|
+
l || (G(s), l = !0);
|
|
4765
4788
|
},
|
|
4766
4789
|
o(p) {
|
|
4767
|
-
X(s),
|
|
4790
|
+
X(s), l = !1;
|
|
4768
4791
|
},
|
|
4769
4792
|
d(p) {
|
|
4770
|
-
p && A(t), d[
|
|
4793
|
+
p && A(t), d[u].d();
|
|
4771
4794
|
}
|
|
4772
4795
|
};
|
|
4773
4796
|
}
|
|
4774
|
-
function
|
|
4797
|
+
function za(e) {
|
|
4775
4798
|
let t;
|
|
4776
4799
|
return {
|
|
4777
4800
|
c() {
|
|
4778
4801
|
t = w("div"), g(t, "class", "skeleton");
|
|
4779
4802
|
},
|
|
4780
4803
|
m(n, r) {
|
|
4781
|
-
|
|
4804
|
+
T(n, t, r);
|
|
4782
4805
|
},
|
|
4783
|
-
p:
|
|
4784
|
-
i:
|
|
4785
|
-
o:
|
|
4806
|
+
p: S,
|
|
4807
|
+
i: S,
|
|
4808
|
+
o: S,
|
|
4786
4809
|
d(n) {
|
|
4787
4810
|
n && A(t);
|
|
4788
4811
|
}
|
|
4789
4812
|
};
|
|
4790
4813
|
}
|
|
4791
|
-
function
|
|
4814
|
+
function Za(e) {
|
|
4792
4815
|
let t, n, r = (
|
|
4793
4816
|
/*selectedCurrencyFrom*/
|
|
4794
4817
|
(e[5]?.amount || 0) + ""
|
|
4795
|
-
), i, a,
|
|
4818
|
+
), i, a, u = (
|
|
4796
4819
|
/*selectedCurrencyFrom*/
|
|
4797
4820
|
(e[5]?.currency || "") + ""
|
|
4798
4821
|
), s;
|
|
4799
4822
|
return {
|
|
4800
4823
|
c() {
|
|
4801
|
-
t = w("span"), t.textContent = `${O("currentBalance")}`, n =
|
|
4824
|
+
t = w("span"), t.textContent = `${O("currentBalance")}`, n = I(), i = W(r), a = I(), s = W(u), g(t, "class", "amount");
|
|
4802
4825
|
},
|
|
4803
|
-
m(o,
|
|
4804
|
-
|
|
4826
|
+
m(o, l) {
|
|
4827
|
+
T(o, t, l), T(o, n, l), T(o, i, l), T(o, a, l), T(o, s, l);
|
|
4805
4828
|
},
|
|
4806
|
-
p(o,
|
|
4807
|
-
|
|
4829
|
+
p(o, l) {
|
|
4830
|
+
l[0] & /*selectedCurrencyFrom*/
|
|
4808
4831
|
32 && r !== (r = /*selectedCurrencyFrom*/
|
|
4809
|
-
(o[5]?.amount || 0) + "") && ne(i, r),
|
|
4810
|
-
32 &&
|
|
4811
|
-
(o[5]?.currency || "") + "") && ne(s,
|
|
4832
|
+
(o[5]?.amount || 0) + "") && ne(i, r), l[0] & /*selectedCurrencyFrom*/
|
|
4833
|
+
32 && u !== (u = /*selectedCurrencyFrom*/
|
|
4834
|
+
(o[5]?.currency || "") + "") && ne(s, u);
|
|
4812
4835
|
},
|
|
4813
|
-
i:
|
|
4814
|
-
o:
|
|
4836
|
+
i: S,
|
|
4837
|
+
o: S,
|
|
4815
4838
|
d(o) {
|
|
4816
4839
|
o && (A(t), A(n), A(i), A(a), A(s));
|
|
4817
4840
|
}
|
|
4818
4841
|
};
|
|
4819
4842
|
}
|
|
4820
|
-
function
|
|
4843
|
+
function qa(e) {
|
|
4821
4844
|
let t, n;
|
|
4822
4845
|
return t = new Dt({}), {
|
|
4823
4846
|
c() {
|
|
@@ -4826,7 +4849,7 @@ function za(e) {
|
|
|
4826
4849
|
m(r, i) {
|
|
4827
4850
|
Ge(t, r, i), n = !0;
|
|
4828
4851
|
},
|
|
4829
|
-
p:
|
|
4852
|
+
p: S,
|
|
4830
4853
|
i(r) {
|
|
4831
4854
|
n || (G(t.$$.fragment, r), n = !0);
|
|
4832
4855
|
},
|
|
@@ -4838,27 +4861,27 @@ function za(e) {
|
|
|
4838
4861
|
}
|
|
4839
4862
|
};
|
|
4840
4863
|
}
|
|
4841
|
-
function
|
|
4864
|
+
function Ka(e) {
|
|
4842
4865
|
let t, n, r, i;
|
|
4843
|
-
const a = [
|
|
4844
|
-
function s(o,
|
|
4866
|
+
const a = [Ja, Ya], u = [];
|
|
4867
|
+
function s(o, l) {
|
|
4845
4868
|
return (
|
|
4846
4869
|
/*fetchResponse*/
|
|
4847
4870
|
o[12]?.source === z.BalanceError ? 0 : 1
|
|
4848
4871
|
);
|
|
4849
4872
|
}
|
|
4850
|
-
return n = s(e), r =
|
|
4873
|
+
return n = s(e), r = u[n] = a[n](e), {
|
|
4851
4874
|
c() {
|
|
4852
4875
|
t = w("div"), r.c(), g(t, "class", "playerBalance amountContainer");
|
|
4853
4876
|
},
|
|
4854
|
-
m(o,
|
|
4855
|
-
|
|
4877
|
+
m(o, l) {
|
|
4878
|
+
T(o, t, l), u[n].m(t, null), i = !0;
|
|
4856
4879
|
},
|
|
4857
|
-
p(o,
|
|
4858
|
-
let
|
|
4859
|
-
n = s(o), n ===
|
|
4860
|
-
|
|
4861
|
-
}), Le(), r =
|
|
4880
|
+
p(o, l) {
|
|
4881
|
+
let c = n;
|
|
4882
|
+
n = s(o), n === c ? u[n].p(o, l) : (Pe(), X(u[c], 1, 1, () => {
|
|
4883
|
+
u[c] = null;
|
|
4884
|
+
}), Le(), r = u[n], r ? r.p(o, l) : (r = u[n] = a[n](o), r.c()), G(r, 1), r.m(t, null));
|
|
4862
4885
|
},
|
|
4863
4886
|
i(o) {
|
|
4864
4887
|
i || (G(r), i = !0);
|
|
@@ -4867,57 +4890,57 @@ function Za(e) {
|
|
|
4867
4890
|
X(r), i = !1;
|
|
4868
4891
|
},
|
|
4869
4892
|
d(o) {
|
|
4870
|
-
o && A(t),
|
|
4893
|
+
o && A(t), u[n].d();
|
|
4871
4894
|
}
|
|
4872
4895
|
};
|
|
4873
4896
|
}
|
|
4874
|
-
function
|
|
4897
|
+
function Qa(e) {
|
|
4875
4898
|
let t;
|
|
4876
4899
|
return {
|
|
4877
4900
|
c() {
|
|
4878
4901
|
t = w("div"), g(t, "class", "skeleton");
|
|
4879
4902
|
},
|
|
4880
4903
|
m(n, r) {
|
|
4881
|
-
|
|
4904
|
+
T(n, t, r);
|
|
4882
4905
|
},
|
|
4883
|
-
p:
|
|
4884
|
-
i:
|
|
4885
|
-
o:
|
|
4906
|
+
p: S,
|
|
4907
|
+
i: S,
|
|
4908
|
+
o: S,
|
|
4886
4909
|
d(n) {
|
|
4887
4910
|
n && A(t);
|
|
4888
4911
|
}
|
|
4889
4912
|
};
|
|
4890
4913
|
}
|
|
4891
|
-
function
|
|
4914
|
+
function Ya(e) {
|
|
4892
4915
|
let t, n, r = (
|
|
4893
4916
|
/*selectedCurrencyTo*/
|
|
4894
4917
|
(e[6]?.amount || 0) + ""
|
|
4895
|
-
), i, a,
|
|
4918
|
+
), i, a, u = (
|
|
4896
4919
|
/*selectedCurrencyTo*/
|
|
4897
4920
|
(e[6]?.currency || "") + ""
|
|
4898
4921
|
), s;
|
|
4899
4922
|
return {
|
|
4900
4923
|
c() {
|
|
4901
|
-
t = w("span"), t.textContent = `${O("currentBalance")}`, n =
|
|
4924
|
+
t = w("span"), t.textContent = `${O("currentBalance")}`, n = I(), i = W(r), a = I(), s = W(u), g(t, "class", "amount");
|
|
4902
4925
|
},
|
|
4903
|
-
m(o,
|
|
4904
|
-
|
|
4926
|
+
m(o, l) {
|
|
4927
|
+
T(o, t, l), T(o, n, l), T(o, i, l), T(o, a, l), T(o, s, l);
|
|
4905
4928
|
},
|
|
4906
|
-
p(o,
|
|
4907
|
-
|
|
4929
|
+
p(o, l) {
|
|
4930
|
+
l[0] & /*selectedCurrencyTo*/
|
|
4908
4931
|
64 && r !== (r = /*selectedCurrencyTo*/
|
|
4909
|
-
(o[6]?.amount || 0) + "") && ne(i, r),
|
|
4910
|
-
64 &&
|
|
4911
|
-
(o[6]?.currency || "") + "") && ne(s,
|
|
4932
|
+
(o[6]?.amount || 0) + "") && ne(i, r), l[0] & /*selectedCurrencyTo*/
|
|
4933
|
+
64 && u !== (u = /*selectedCurrencyTo*/
|
|
4934
|
+
(o[6]?.currency || "") + "") && ne(s, u);
|
|
4912
4935
|
},
|
|
4913
|
-
i:
|
|
4914
|
-
o:
|
|
4936
|
+
i: S,
|
|
4937
|
+
o: S,
|
|
4915
4938
|
d(o) {
|
|
4916
4939
|
o && (A(t), A(n), A(i), A(a), A(s));
|
|
4917
4940
|
}
|
|
4918
4941
|
};
|
|
4919
4942
|
}
|
|
4920
|
-
function
|
|
4943
|
+
function Ja(e) {
|
|
4921
4944
|
let t, n;
|
|
4922
4945
|
return t = new Dt({}), {
|
|
4923
4946
|
c() {
|
|
@@ -4926,7 +4949,7 @@ function Qa(e) {
|
|
|
4926
4949
|
m(r, i) {
|
|
4927
4950
|
Ge(t, r, i), n = !0;
|
|
4928
4951
|
},
|
|
4929
|
-
p:
|
|
4952
|
+
p: S,
|
|
4930
4953
|
i(r) {
|
|
4931
4954
|
n || (G(t.$$.fragment, r), n = !0);
|
|
4932
4955
|
},
|
|
@@ -4939,39 +4962,39 @@ function Qa(e) {
|
|
|
4939
4962
|
};
|
|
4940
4963
|
}
|
|
4941
4964
|
function jn(e) {
|
|
4942
|
-
let t, n, r, i, a,
|
|
4965
|
+
let t, n, r, i, a, u, s, o, l, c, d = Tt(
|
|
4943
4966
|
/*dropDownVaults*/
|
|
4944
4967
|
e[19]
|
|
4945
|
-
),
|
|
4968
|
+
), h = [];
|
|
4946
4969
|
for (let p = 0; p < d.length; p += 1)
|
|
4947
|
-
|
|
4970
|
+
h[p] = Xn(Vn(e, d, p));
|
|
4948
4971
|
return {
|
|
4949
4972
|
c() {
|
|
4950
|
-
t = w("div"), n = w("button"), r = mn("svg"), i = mn("path"),
|
|
4951
|
-
for (let p = 0; p <
|
|
4952
|
-
|
|
4973
|
+
t = w("div"), n = w("button"), r = mn("svg"), i = mn("path"), u = I(), s = w("div");
|
|
4974
|
+
for (let p = 0; p < h.length; p += 1)
|
|
4975
|
+
h[p].c();
|
|
4953
4976
|
g(i, "d", "M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z"), g(i, "fill", "currentColor"), g(r, "class", "vaultToggleIcon"), g(r, "width", "12"), g(r, "height", "7"), g(r, "viewBox", "0 0 12 7"), g(r, "fill", "currentColor"), g(r, "xmlns", "http://www.w3.org/2000/svg"), g(n, "type", "button"), g(n, "class", a = "vaultToggleButton " + /*isVaultDropDownToggled*/
|
|
4954
4977
|
(e[15] && /*dropDownVaults*/
|
|
4955
4978
|
e[19].length > 0 ? "active" : "")), g(s, "class", o = "vaultDropdown " + /*isVaultDropDownToggled*/
|
|
4956
4979
|
(e[15] && /*dropDownVaults*/
|
|
4957
4980
|
e[19].length > 0 ? "expanded" : "")), g(t, "class", "vaultsContainer");
|
|
4958
4981
|
},
|
|
4959
|
-
m(p,
|
|
4960
|
-
|
|
4961
|
-
for (let b = 0; b <
|
|
4962
|
-
|
|
4963
|
-
|
|
4982
|
+
m(p, _) {
|
|
4983
|
+
T(p, t, _), y(t, n), y(n, r), y(r, i), y(t, u), y(t, s);
|
|
4984
|
+
for (let b = 0; b < h.length; b += 1)
|
|
4985
|
+
h[b] && h[b].m(s, null);
|
|
4986
|
+
l || (c = te(
|
|
4964
4987
|
n,
|
|
4965
4988
|
"click",
|
|
4966
4989
|
/*handleToggleVaultDropdown*/
|
|
4967
4990
|
e[22]
|
|
4968
|
-
),
|
|
4991
|
+
), l = !0);
|
|
4969
4992
|
},
|
|
4970
|
-
p(p,
|
|
4971
|
-
if (
|
|
4993
|
+
p(p, _) {
|
|
4994
|
+
if (_[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
4972
4995
|
557056 && a !== (a = "vaultToggleButton " + /*isVaultDropDownToggled*/
|
|
4973
4996
|
(p[15] && /*dropDownVaults*/
|
|
4974
|
-
p[19].length > 0 ? "active" : "")) && g(n, "class", a),
|
|
4997
|
+
p[19].length > 0 ? "active" : "")) && g(n, "class", a), _[0] & /*dropDownVaults*/
|
|
4975
4998
|
524288) {
|
|
4976
4999
|
d = Tt(
|
|
4977
5000
|
/*dropDownVaults*/
|
|
@@ -4980,19 +5003,19 @@ function jn(e) {
|
|
|
4980
5003
|
let b;
|
|
4981
5004
|
for (b = 0; b < d.length; b += 1) {
|
|
4982
5005
|
const L = Vn(p, d, b);
|
|
4983
|
-
|
|
5006
|
+
h[b] ? h[b].p(L, _) : (h[b] = Xn(L), h[b].c(), h[b].m(s, null));
|
|
4984
5007
|
}
|
|
4985
|
-
for (; b <
|
|
4986
|
-
|
|
4987
|
-
|
|
5008
|
+
for (; b < h.length; b += 1)
|
|
5009
|
+
h[b].d(1);
|
|
5010
|
+
h.length = d.length;
|
|
4988
5011
|
}
|
|
4989
|
-
|
|
5012
|
+
_[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
4990
5013
|
557056 && o !== (o = "vaultDropdown " + /*isVaultDropDownToggled*/
|
|
4991
5014
|
(p[15] && /*dropDownVaults*/
|
|
4992
5015
|
p[19].length > 0 ? "expanded" : "")) && g(s, "class", o);
|
|
4993
5016
|
},
|
|
4994
5017
|
d(p) {
|
|
4995
|
-
p && A(t), Zn(
|
|
5018
|
+
p && A(t), Zn(h, p), l = !1, c();
|
|
4996
5019
|
}
|
|
4997
5020
|
};
|
|
4998
5021
|
}
|
|
@@ -5000,30 +5023,30 @@ function Xn(e) {
|
|
|
5000
5023
|
let t, n, r = (
|
|
5001
5024
|
/*vault*/
|
|
5002
5025
|
e[62]?.currency + ""
|
|
5003
|
-
), i, a,
|
|
5026
|
+
), i, a, u, s = (
|
|
5004
5027
|
/*vault*/
|
|
5005
5028
|
e[62]?.amount + ""
|
|
5006
|
-
), o,
|
|
5029
|
+
), o, l;
|
|
5007
5030
|
return {
|
|
5008
5031
|
c() {
|
|
5009
|
-
t = w("div"), n = w("p"), i = W(r), a =
|
|
5032
|
+
t = w("div"), n = w("p"), i = W(r), a = I(), u = w("p"), o = W(s), l = I(), g(t, "class", "vaultItem");
|
|
5010
5033
|
},
|
|
5011
|
-
m(
|
|
5012
|
-
|
|
5034
|
+
m(c, d) {
|
|
5035
|
+
T(c, t, d), y(t, n), y(n, i), y(t, a), y(t, u), y(u, o), y(t, l);
|
|
5013
5036
|
},
|
|
5014
|
-
p(
|
|
5037
|
+
p(c, d) {
|
|
5015
5038
|
d[0] & /*dropDownVaults*/
|
|
5016
5039
|
524288 && r !== (r = /*vault*/
|
|
5017
|
-
|
|
5040
|
+
c[62]?.currency + "") && ne(i, r), d[0] & /*dropDownVaults*/
|
|
5018
5041
|
524288 && s !== (s = /*vault*/
|
|
5019
|
-
|
|
5042
|
+
c[62]?.amount + "") && ne(o, s);
|
|
5020
5043
|
},
|
|
5021
|
-
d(
|
|
5022
|
-
|
|
5044
|
+
d(c) {
|
|
5045
|
+
c && A(t);
|
|
5023
5046
|
}
|
|
5024
5047
|
};
|
|
5025
5048
|
}
|
|
5026
|
-
function
|
|
5049
|
+
function eo(e) {
|
|
5027
5050
|
let t = `${/*currentFee*/
|
|
5028
5051
|
e[11]?.fees[0]?.amount || 0} ${/*currentFee*/
|
|
5029
5052
|
e[11]?.fees[0]?.currency || ""}`, n;
|
|
@@ -5032,7 +5055,7 @@ function Ya(e) {
|
|
|
5032
5055
|
n = W(t);
|
|
5033
5056
|
},
|
|
5034
5057
|
m(r, i) {
|
|
5035
|
-
|
|
5058
|
+
T(r, n, i);
|
|
5036
5059
|
},
|
|
5037
5060
|
p(r, i) {
|
|
5038
5061
|
i[0] & /*currentFee*/
|
|
@@ -5045,23 +5068,23 @@ function Ya(e) {
|
|
|
5045
5068
|
}
|
|
5046
5069
|
};
|
|
5047
5070
|
}
|
|
5048
|
-
function
|
|
5071
|
+
function to(e) {
|
|
5049
5072
|
let t = O("feesUnavailable") + "", n;
|
|
5050
5073
|
return {
|
|
5051
5074
|
c() {
|
|
5052
5075
|
n = W(t);
|
|
5053
5076
|
},
|
|
5054
5077
|
m(r, i) {
|
|
5055
|
-
|
|
5078
|
+
T(r, n, i);
|
|
5056
5079
|
},
|
|
5057
|
-
p:
|
|
5080
|
+
p: S,
|
|
5058
5081
|
d(r) {
|
|
5059
5082
|
r && A(n);
|
|
5060
5083
|
}
|
|
5061
5084
|
};
|
|
5062
5085
|
}
|
|
5063
|
-
function
|
|
5064
|
-
let t, n, r, i, a,
|
|
5086
|
+
function no(e) {
|
|
5087
|
+
let t, n, r, i, a, u, s, o, l, c, d, h, p, _, b, L, N, R, v, $, M, Z, de, re, j, se, pe, ae, le, Ee, q, Y, ue, Qe, xe, Re, ht, Oe, Ye, ie, me = O(
|
|
5065
5088
|
/*fetchResponse*/
|
|
5066
5089
|
e[12]?.message || ""
|
|
5067
5090
|
) + "", we, ge, be, De, J, Ae = O("exchange") + "", ft, ye, ee, Je, et, K = (
|
|
@@ -5095,13 +5118,13 @@ function eo(e) {
|
|
|
5095
5118
|
/*selectedCurrencyFrom*/
|
|
5096
5119
|
e[5] !== void 0 && (dt.selected = /*selectedCurrencyFrom*/
|
|
5097
5120
|
e[5]), b = new sn({ props: dt }), Ve.push(() => bn(b, "selected", Mt));
|
|
5098
|
-
const pt = [
|
|
5099
|
-
function tt(m,
|
|
5121
|
+
const pt = [za, Wa], ce = [];
|
|
5122
|
+
function tt(m, C) {
|
|
5100
5123
|
return !/*isBalanceFetched*/
|
|
5101
5124
|
m[16] || !/*isCurrenciesFetched*/
|
|
5102
5125
|
m[17] ? 0 : 1;
|
|
5103
5126
|
}
|
|
5104
|
-
R = tt(e),
|
|
5127
|
+
R = tt(e), v = ce[R] = pt[R](e);
|
|
5105
5128
|
function kt(m) {
|
|
5106
5129
|
e[41](m);
|
|
5107
5130
|
}
|
|
@@ -5128,8 +5151,8 @@ function eo(e) {
|
|
|
5128
5151
|
/*selectedCurrencyTo*/
|
|
5129
5152
|
e[6] !== void 0 && (mt.selected = /*selectedCurrencyTo*/
|
|
5130
5153
|
e[6]), ae = new sn({ props: mt }), Ve.push(() => bn(ae, "selected", kt));
|
|
5131
|
-
const gt = [
|
|
5132
|
-
function bt(m,
|
|
5154
|
+
const gt = [Qa, Ka], he = [];
|
|
5155
|
+
function bt(m, C) {
|
|
5133
5156
|
return !/*isBalanceFetched*/
|
|
5134
5157
|
m[16] || !/*isCurrenciesFetched*/
|
|
5135
5158
|
m[17] ? 0 : 1;
|
|
@@ -5139,19 +5162,19 @@ function eo(e) {
|
|
|
5139
5162
|
/*showvaults*/
|
|
5140
5163
|
e[1] === Te.true && jn(e)
|
|
5141
5164
|
);
|
|
5142
|
-
function E(m,
|
|
5165
|
+
function E(m, C) {
|
|
5143
5166
|
return (
|
|
5144
5167
|
/*fetchResponse*/
|
|
5145
|
-
m[12]?.source === z.CheckWalletExchangeError ?
|
|
5168
|
+
m[12]?.source === z.CheckWalletExchangeError ? to : eo
|
|
5146
5169
|
);
|
|
5147
5170
|
}
|
|
5148
|
-
let
|
|
5171
|
+
let P = E(e), x = P(e);
|
|
5149
5172
|
return {
|
|
5150
5173
|
c() {
|
|
5151
|
-
t = w("div"), K && K.c(), n =
|
|
5174
|
+
t = w("div"), K && K.c(), n = I(), r = w("div"), i = w("h1"), i.textContent = `${O("vaultExchange")}`, a = I(), U && U.c(), u = I(), s = w("div"), o = w("div"), l = w("p"), l.textContent = `${O("exchangeFrom")}`, c = I(), d = w("div"), h = w("input"), _ = I(), st(b.$$.fragment), N = I(), v.c(), $ = I(), M = w("div"), Z = w("p"), Z.textContent = `${O("exchangeTo")}`, de = I(), re = w("div"), j = w("input"), pe = I(), st(ae.$$.fragment), Ee = I(), Y.c(), ue = I(), f && f.c(), Qe = I(), xe = w("div"), Re = w("span"), Re.textContent = `${O("feesIncluded")}`, ht = I(), Oe = w("span"), x.c(), Ye = I(), ie = w("div"), we = I(), ge = w("div"), be = w("button"), be.textContent = `${O("reset")}`, De = I(), J = w("button"), ft = W(Ae), g(i, "class", "headerTitle"), g(r, "class", "headerContainer"), g(l, "class", "exchangeHeader"), g(h, "id", "senderInput"), h.disabled = p = !/*session*/
|
|
5152
5175
|
e[0] || !/*isBalanceFetched*/
|
|
5153
5176
|
e[16] || !/*isCurrenciesFetched*/
|
|
5154
|
-
e[17], g(
|
|
5177
|
+
e[17], g(h, "placeholder", O("debitPlaceHolder")), g(h, "class", "exchangeInput"), g(h, "type", "number"), g(h, "aria-label", "Enter exchange amount"), g(h, "inputmode", "decimal"), g(h, "step", "0.000000000000001"), g(h, "min", "0"), g(d, "class", "flexingContainerRow"), g(o, "class", "containerExchangeFrom exchangeContainer"), g(Z, "class", "exchangeHeader"), g(j, "id", "destinationInput"), j.disabled = se = !/*session*/
|
|
5155
5178
|
e[0] || !/*isBalanceFetched*/
|
|
5156
5179
|
e[16] || !/*isCurrenciesFetched*/
|
|
5157
5180
|
e[17], g(j, "placeholder", O("creditPlaceHolder")), g(j, "class", "exchangeInput"), g(j, "type", "number"), j.readOnly = !0, g(j, "min", "0"), g(re, "class", "flexingContainerRow"), g(M, "class", "containerExchangeTo exchangeContainer"), g(s, "class", "exchangesContainer"), g(Re, "class", "feesLabel"), g(xe, "class", "feesContainer"), g(ie, "class", "notificationsContainer"), oe(
|
|
@@ -5181,36 +5204,36 @@ function eo(e) {
|
|
|
5181
5204
|
e[18]
|
|
5182
5205
|
), g(ge, "class", "actionsContainer"), g(t, "class", "playerAccountVault");
|
|
5183
5206
|
},
|
|
5184
|
-
m(m,
|
|
5185
|
-
|
|
5186
|
-
|
|
5207
|
+
m(m, C) {
|
|
5208
|
+
T(m, t, C), K && K.m(t, null), y(t, n), y(t, r), y(r, i), y(r, a), U && U.m(r, null), y(t, u), y(t, s), y(s, o), y(o, l), y(o, c), y(o, d), y(d, h), yt(
|
|
5209
|
+
h,
|
|
5187
5210
|
/*inputExchangeFrom*/
|
|
5188
5211
|
e[8]
|
|
5189
|
-
), y(d,
|
|
5212
|
+
), y(d, _), Ge(b, d, null), y(o, N), ce[R].m(o, null), y(s, $), y(s, M), y(M, Z), y(M, de), y(M, re), y(re, j), yt(
|
|
5190
5213
|
j,
|
|
5191
5214
|
/*inputExchangeTo*/
|
|
5192
5215
|
e[9]
|
|
5193
5216
|
), y(re, pe), Ge(ae, re, null), y(M, Ee), he[q].m(M, null), y(t, ue), f && f.m(t, null), y(t, Qe), y(t, xe), y(xe, Re), y(xe, ht), y(xe, Oe), x.m(Oe, null), y(t, Ye), y(t, ie), ie.innerHTML = me, y(t, we), y(t, ge), y(ge, be), y(ge, De), y(ge, J), y(J, ft), e[42](t), ee = !0, Je || (et = [
|
|
5194
5217
|
te(
|
|
5195
|
-
|
|
5218
|
+
h,
|
|
5196
5219
|
"input",
|
|
5197
5220
|
/*input0_input_handler*/
|
|
5198
5221
|
e[38]
|
|
5199
5222
|
),
|
|
5200
5223
|
te(
|
|
5201
|
-
|
|
5224
|
+
h,
|
|
5202
5225
|
"input",
|
|
5203
5226
|
/*handleInputChange*/
|
|
5204
5227
|
e[26]
|
|
5205
5228
|
),
|
|
5206
5229
|
te(
|
|
5207
|
-
|
|
5230
|
+
h,
|
|
5208
5231
|
"beforeinput",
|
|
5209
5232
|
/*handleBeforeInput*/
|
|
5210
5233
|
e[27]
|
|
5211
5234
|
),
|
|
5212
5235
|
te(
|
|
5213
|
-
|
|
5236
|
+
h,
|
|
5214
5237
|
"focus",
|
|
5215
5238
|
/*handleInputFocus*/
|
|
5216
5239
|
e[28]
|
|
@@ -5235,42 +5258,42 @@ function eo(e) {
|
|
|
5235
5258
|
)
|
|
5236
5259
|
], Je = !0);
|
|
5237
5260
|
},
|
|
5238
|
-
p(m,
|
|
5261
|
+
p(m, C) {
|
|
5239
5262
|
/*showclosebutton*/
|
|
5240
|
-
m[3] === Te.true ? K ? K.p(m,
|
|
5241
|
-
m[2] === Te.true ? U ? (U.p(m,
|
|
5242
|
-
4 && G(U, 1)) : (U = $n(m), U.c(), G(U, 1), U.m(r, null)) : U && (
|
|
5263
|
+
m[3] === Te.true ? K ? K.p(m, C) : (K = Gn(m), K.c(), K.m(t, n)) : K && (K.d(1), K = null), /*showtotalbalance*/
|
|
5264
|
+
m[2] === Te.true ? U ? (U.p(m, C), C[0] & /*showtotalbalance*/
|
|
5265
|
+
4 && G(U, 1)) : (U = $n(m), U.c(), G(U, 1), U.m(r, null)) : U && (Pe(), X(U, 1, 1, () => {
|
|
5243
5266
|
U = null;
|
|
5244
|
-
}), Le()), (!ee ||
|
|
5267
|
+
}), Le()), (!ee || C[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5245
5268
|
196609 && p !== (p = !/*session*/
|
|
5246
5269
|
m[0] || !/*isBalanceFetched*/
|
|
5247
5270
|
m[16] || !/*isCurrenciesFetched*/
|
|
5248
|
-
m[17])) && (
|
|
5249
|
-
256 && Ct(
|
|
5271
|
+
m[17])) && (h.disabled = p), C[0] & /*inputExchangeFrom*/
|
|
5272
|
+
256 && Ct(h.value) !== /*inputExchangeFrom*/
|
|
5250
5273
|
m[8] && yt(
|
|
5251
|
-
|
|
5274
|
+
h,
|
|
5252
5275
|
/*inputExchangeFrom*/
|
|
5253
5276
|
m[8]
|
|
5254
5277
|
);
|
|
5255
5278
|
const He = {};
|
|
5256
|
-
|
|
5279
|
+
C[0] & /*showcurrencysymbol*/
|
|
5257
5280
|
16 && (He.withSymbol = /*showcurrencysymbol*/
|
|
5258
|
-
m[4]),
|
|
5281
|
+
m[4]), C[0] & /*isBalanceFetched, isCurrenciesFetched*/
|
|
5259
5282
|
196608 && (He.disabled = !/*isBalanceFetched*/
|
|
5260
5283
|
m[16] || !/*isCurrenciesFetched*/
|
|
5261
|
-
m[17]),
|
|
5284
|
+
m[17]), C[0] & /*optionsFrom*/
|
|
5262
5285
|
1048576 && (He.options = /*optionsFrom*/
|
|
5263
|
-
m[20]), !L &&
|
|
5286
|
+
m[20]), !L && C[0] & /*selectedCurrencyFrom*/
|
|
5264
5287
|
32 && (L = !0, He.selected = /*selectedCurrencyFrom*/
|
|
5265
5288
|
m[5], gn(() => L = !1)), b.$set(He);
|
|
5266
5289
|
let nt = R;
|
|
5267
|
-
R = tt(m), R === nt ? ce[R].p(m,
|
|
5290
|
+
R = tt(m), R === nt ? ce[R].p(m, C) : (Pe(), X(ce[nt], 1, 1, () => {
|
|
5268
5291
|
ce[nt] = null;
|
|
5269
|
-
}), Le(),
|
|
5292
|
+
}), Le(), v = ce[R], v ? v.p(m, C) : (v = ce[R] = pt[R](m), v.c()), G(v, 1), v.m(o, null)), (!ee || C[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5270
5293
|
196609 && se !== (se = !/*session*/
|
|
5271
5294
|
m[0] || !/*isBalanceFetched*/
|
|
5272
5295
|
m[16] || !/*isCurrenciesFetched*/
|
|
5273
|
-
m[17])) && (j.disabled = se),
|
|
5296
|
+
m[17])) && (j.disabled = se), C[0] & /*inputExchangeTo*/
|
|
5274
5297
|
512 && Ct(j.value) !== /*inputExchangeTo*/
|
|
5275
5298
|
m[9] && yt(
|
|
5276
5299
|
j,
|
|
@@ -5278,51 +5301,51 @@ function eo(e) {
|
|
|
5278
5301
|
m[9]
|
|
5279
5302
|
);
|
|
5280
5303
|
const k = {};
|
|
5281
|
-
|
|
5304
|
+
C[0] & /*showcurrencysymbol*/
|
|
5282
5305
|
16 && (k.withSymbol = /*showcurrencysymbol*/
|
|
5283
|
-
m[4]),
|
|
5306
|
+
m[4]), C[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
|
|
5284
5307
|
204801 && (k.disabled = !/*session*/
|
|
5285
5308
|
m[0] || !!/*validationError*/
|
|
5286
5309
|
m[13] || !/*isBalanceFetched*/
|
|
5287
5310
|
m[16] || !/*isCurrenciesFetched*/
|
|
5288
|
-
m[17]),
|
|
5311
|
+
m[17]), C[0] & /*optionsTo*/
|
|
5289
5312
|
2097152 && (k.options = /*optionsTo*/
|
|
5290
|
-
m[21]), !le &&
|
|
5313
|
+
m[21]), !le && C[0] & /*selectedCurrencyTo*/
|
|
5291
5314
|
64 && (le = !0, k.selected = /*selectedCurrencyTo*/
|
|
5292
5315
|
m[6], gn(() => le = !1)), ae.$set(k);
|
|
5293
5316
|
let ve = q;
|
|
5294
|
-
q = bt(m), q === ve ? he[q].p(m,
|
|
5317
|
+
q = bt(m), q === ve ? he[q].p(m, C) : (Pe(), X(he[ve], 1, 1, () => {
|
|
5295
5318
|
he[ve] = null;
|
|
5296
|
-
}), Le(), Y = he[q], Y ? Y.p(m,
|
|
5297
|
-
m[1] === Te.true ? f ? f.p(m,
|
|
5319
|
+
}), Le(), Y = he[q], Y ? Y.p(m, C) : (Y = he[q] = gt[q](m), Y.c()), G(Y, 1), Y.m(M, null)), /*showvaults*/
|
|
5320
|
+
m[1] === Te.true ? f ? f.p(m, C) : (f = jn(m), f.c(), f.m(t, Qe)) : f && (f.d(1), f = null), P === (P = E(m)) && x ? x.p(m, C) : (x.d(1), x = P(m), x && (x.c(), x.m(Oe, null))), (!ee || C[0] & /*fetchResponse*/
|
|
5298
5321
|
4096) && me !== (me = O(
|
|
5299
5322
|
/*fetchResponse*/
|
|
5300
5323
|
m[12]?.message || ""
|
|
5301
|
-
) + "") && (ie.innerHTML = me), (!ee ||
|
|
5324
|
+
) + "") && (ie.innerHTML = me), (!ee || C[0] & /*fetchResponse*/
|
|
5302
5325
|
4096) && oe(
|
|
5303
5326
|
ie,
|
|
5304
5327
|
"error",
|
|
5305
5328
|
/*fetchResponse*/
|
|
5306
5329
|
m[12]?.type === "error"
|
|
5307
|
-
), (!ee ||
|
|
5330
|
+
), (!ee || C[0] & /*fetchResponse*/
|
|
5308
5331
|
4096) && oe(
|
|
5309
5332
|
ie,
|
|
5310
5333
|
"success",
|
|
5311
5334
|
/*fetchResponse*/
|
|
5312
5335
|
m[12]?.type === "success"
|
|
5313
|
-
), (!ee ||
|
|
5336
|
+
), (!ee || C[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
|
|
5314
5337
|
278816 && ye !== (ye = /*isExchangeDisabled*/
|
|
5315
5338
|
m[14] || /*isExchangePending*/
|
|
5316
5339
|
m[18] || /*inputExchangeFrom*/
|
|
5317
5340
|
m[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5318
|
-
m[5]?.amount)) && (J.disabled = ye), (!ee ||
|
|
5341
|
+
m[5]?.amount)) && (J.disabled = ye), (!ee || C[0] & /*isExchangeDisabled, isExchangePending*/
|
|
5319
5342
|
278528) && oe(
|
|
5320
5343
|
J,
|
|
5321
5344
|
"disabled",
|
|
5322
5345
|
/*isExchangeDisabled*/
|
|
5323
5346
|
m[14] || /*isExchangePending*/
|
|
5324
5347
|
m[18]
|
|
5325
|
-
), (!ee ||
|
|
5348
|
+
), (!ee || C[0] & /*isExchangePending*/
|
|
5326
5349
|
262144) && oe(
|
|
5327
5350
|
J,
|
|
5328
5351
|
"pending",
|
|
@@ -5331,27 +5354,27 @@ function eo(e) {
|
|
|
5331
5354
|
);
|
|
5332
5355
|
},
|
|
5333
5356
|
i(m) {
|
|
5334
|
-
ee || (G(U), G(b.$$.fragment, m), G(
|
|
5357
|
+
ee || (G(U), G(b.$$.fragment, m), G(v), G(ae.$$.fragment, m), G(Y), ee = !0);
|
|
5335
5358
|
},
|
|
5336
5359
|
o(m) {
|
|
5337
|
-
X(U), X(b.$$.fragment, m), X(
|
|
5360
|
+
X(U), X(b.$$.fragment, m), X(v), X(ae.$$.fragment, m), X(Y), ee = !1;
|
|
5338
5361
|
},
|
|
5339
5362
|
d(m) {
|
|
5340
5363
|
m && A(t), K && K.d(), U && U.d(), $e(b), ce[R].d(), $e(ae), he[q].d(), f && f.d(), x.d(), e[42](null), Je = !1, _e(et);
|
|
5341
5364
|
}
|
|
5342
5365
|
};
|
|
5343
5366
|
}
|
|
5344
|
-
function
|
|
5345
|
-
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang:
|
|
5367
|
+
function ro(e, t, n) {
|
|
5368
|
+
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: u = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { playercurrency: c = "" } = t, { showvaults: d = "true" } = t, { showtotalbalance: h = "true" } = t, { showclosebutton: p = "true" } = t, { showcurrencysymbol: _ = "true" } = t, b = null, L = null, N = 0, R = 0, v = 0, $ = null, M = null, Z = null, de = "", re = !0, j = !1, se = !1, pe = !1, ae = !1, le = [], Ee = [], q = [], Y = [], ue;
|
|
5346
5369
|
Ta({ withLocale: "en", translations: {} }), Object.keys(Ln).forEach((f) => {
|
|
5347
|
-
|
|
5370
|
+
Pn(f, Ln[f]);
|
|
5348
5371
|
});
|
|
5349
5372
|
const Qe = () => {
|
|
5350
|
-
Ba(
|
|
5373
|
+
Ba(u);
|
|
5351
5374
|
}, xe = () => {
|
|
5352
|
-
fetch(
|
|
5375
|
+
fetch(l).then((f) => f.json()).then((f) => {
|
|
5353
5376
|
Object.keys(f).forEach((E) => {
|
|
5354
|
-
|
|
5377
|
+
Pn(E, f[E]);
|
|
5355
5378
|
});
|
|
5356
5379
|
}).catch((f) => {
|
|
5357
5380
|
console.error("There was a problem with the translations request.", f);
|
|
@@ -5360,11 +5383,11 @@ function to(e, t, n) {
|
|
|
5360
5383
|
let f = document.createElement("style");
|
|
5361
5384
|
f.innerHTML = s, ue.appendChild(f);
|
|
5362
5385
|
}, ht = () => {
|
|
5363
|
-
let f, E = new URL(o),
|
|
5386
|
+
let f, E = new URL(o), P = document.createElement("style");
|
|
5364
5387
|
fetch(E.href).then((x) => x.text()).then((x) => {
|
|
5365
|
-
|
|
5388
|
+
P.innerHTML = x, f && clearTimeout(f), f = setTimeout(
|
|
5366
5389
|
() => {
|
|
5367
|
-
ue.appendChild(
|
|
5390
|
+
ue.appendChild(P);
|
|
5368
5391
|
},
|
|
5369
5392
|
1
|
|
5370
5393
|
);
|
|
@@ -5387,25 +5410,25 @@ function to(e, t, n) {
|
|
|
5387
5410
|
}, ie = () => {
|
|
5388
5411
|
n(14, re = !0), we(), ge(), be(), De(), window.postMessage({ type: Wt.VaultWidgetReset }, window.location.href);
|
|
5389
5412
|
}, me = () => {
|
|
5390
|
-
n(14, re = !0), n(9,
|
|
5413
|
+
n(14, re = !0), n(9, v = 0);
|
|
5391
5414
|
}, we = () => {
|
|
5392
5415
|
n(11, M = null);
|
|
5393
5416
|
}, ge = () => {
|
|
5394
|
-
n(8, N = 0), n(9,
|
|
5417
|
+
n(8, N = 0), n(9, v = 0);
|
|
5395
5418
|
}, be = () => {
|
|
5396
5419
|
n(13, de = "");
|
|
5397
5420
|
}, De = () => {
|
|
5398
5421
|
n(12, Z = null);
|
|
5399
5422
|
}, J = (f) => {
|
|
5400
5423
|
f && n(13, de = f);
|
|
5401
|
-
}, Ae = ({ type: f, message: E, source:
|
|
5424
|
+
}, Ae = ({ type: f, message: E, source: P = "" }) => {
|
|
5402
5425
|
let x;
|
|
5403
|
-
switch (n(12, Z = { message: E, source:
|
|
5426
|
+
switch (n(12, Z = { message: E, source: P, type: f }), f) {
|
|
5404
5427
|
case Ce.error:
|
|
5405
|
-
n(14, re = !0), window.postMessage({ type:
|
|
5428
|
+
n(14, re = !0), window.postMessage({ type: P, data: { type: f, message: E } }, window.location.href);
|
|
5406
5429
|
break;
|
|
5407
5430
|
case Ce.success:
|
|
5408
|
-
n(14, re = !0), window.postMessage({ type:
|
|
5431
|
+
n(14, re = !0), window.postMessage({ type: P, data: { type: f, message: E } }, window.location.href), x && clearTimeout(x), x = setTimeout(
|
|
5409
5432
|
() => {
|
|
5410
5433
|
De();
|
|
5411
5434
|
},
|
|
@@ -5414,18 +5437,18 @@ function to(e, t, n) {
|
|
|
5414
5437
|
break;
|
|
5415
5438
|
}
|
|
5416
5439
|
}, ft = () => new Promise((f, E) => {
|
|
5417
|
-
const
|
|
5418
|
-
|
|
5440
|
+
const P = Z?.message.includes(Ia.InvalidSession);
|
|
5441
|
+
P && E(), isNaN(Number(N)) && (me(), we(), E(O("invalidValue"))), N > b?.amount && (me(), we(), E(O("exceededValue"))), N === null && !P && (me(), we(), E()), N === 0 && N === 0 && !P && (ie(), E()), (!b || !L) && !P && E(), be(), f();
|
|
5419
5442
|
}), ye = async (f, E) => {
|
|
5420
|
-
const
|
|
5421
|
-
return f?.status >= 200 && f?.status < 400 ?
|
|
5443
|
+
const P = await f.json();
|
|
5444
|
+
return f?.status >= 200 && f?.status < 400 ? P : (E === z.CheckWalletExchangeError && me(), !se && E === z.BalanceError && (n(16, se = !0), n(17, pe = !0)), !pe && E === z.CurrenciesError && n(17, pe = !0), Ae({
|
|
5422
5445
|
type: Ce.error,
|
|
5423
|
-
message: O(
|
|
5446
|
+
message: O(P?.thirdPartyResponse?.code) || O(P?.thirdPartyResponse?.errorCode) || "generalError",
|
|
5424
5447
|
source: E
|
|
5425
5448
|
}));
|
|
5426
5449
|
}, ee = () => new Promise((f, E) => {
|
|
5427
|
-
const
|
|
5428
|
-
fetch(
|
|
5450
|
+
const P = new URL(`${a}/v1/player/${i}/wallet-exchange/currencies`);
|
|
5451
|
+
fetch(P, {
|
|
5429
5452
|
method: "GET",
|
|
5430
5453
|
headers: {
|
|
5431
5454
|
"X-SessionId": r,
|
|
@@ -5443,11 +5466,11 @@ function to(e, t, n) {
|
|
|
5443
5466
|
}).finally(() => {
|
|
5444
5467
|
n(17, pe = !0);
|
|
5445
5468
|
});
|
|
5446
|
-
}), Je = ({ data: f, shouldUpdateSelectedCurrencies: E, allowed:
|
|
5447
|
-
const { items: x = [], totalAmount: m = {}, totalRealAmount:
|
|
5448
|
-
n(10, $ = Object.entries(
|
|
5469
|
+
}), Je = ({ data: f, shouldUpdateSelectedCurrencies: E, allowed: P = [] }) => {
|
|
5470
|
+
const { items: x = [], totalAmount: m = {}, totalRealAmount: C } = f || {};
|
|
5471
|
+
n(10, $ = Object.entries(C || m).map(([k = "", ve = 0]) => ({ currency: k, amount: ve }))[0]);
|
|
5449
5472
|
let He = null;
|
|
5450
|
-
const nt = new Map(
|
|
5473
|
+
const nt = new Map(P.map((k) => [k.code, k]));
|
|
5451
5474
|
for (const k of x)
|
|
5452
5475
|
if (k?.type === Rn.Real) {
|
|
5453
5476
|
const ve = nt.get(k?.currency);
|
|
@@ -5486,7 +5509,7 @@ function to(e, t, n) {
|
|
|
5486
5509
|
}).finally(() => {
|
|
5487
5510
|
n(16, se = !0);
|
|
5488
5511
|
});
|
|
5489
|
-
}, U =
|
|
5512
|
+
}, U = La(() => {
|
|
5490
5513
|
ft().then(() => {
|
|
5491
5514
|
const f = new URL(`${a}/v2/player/${i}/check/wallet-exchange`), E = {
|
|
5492
5515
|
userId: i,
|
|
@@ -5494,8 +5517,8 @@ function to(e, t, n) {
|
|
|
5494
5517
|
currency: b?.currency,
|
|
5495
5518
|
fromCurrency: b?.currency,
|
|
5496
5519
|
toCurrency: L?.currency,
|
|
5497
|
-
payload: { PlayerCurrency:
|
|
5498
|
-
},
|
|
5520
|
+
payload: { PlayerCurrency: c }
|
|
5521
|
+
}, P = {
|
|
5499
5522
|
method: "POST",
|
|
5500
5523
|
headers: {
|
|
5501
5524
|
"X-SessionId": r,
|
|
@@ -5504,8 +5527,14 @@ function to(e, t, n) {
|
|
|
5504
5527
|
},
|
|
5505
5528
|
body: Dn(E)
|
|
5506
5529
|
};
|
|
5507
|
-
fetch(f,
|
|
5508
|
-
|
|
5530
|
+
fetch(f, P).then((x) => ye(x, z.CheckWalletExchangeError)).then((x) => {
|
|
5531
|
+
if (x) {
|
|
5532
|
+
if (Z?.source === z.CheckWalletExchangeError && De(), Array.isArray(x?.fees?.fees) && n(11, M = x.fees), Array.isArray(x?.walletActions)) {
|
|
5533
|
+
const m = x.walletActions.find((C) => C?.directionName === Pa.Credit)?.amount || 0;
|
|
5534
|
+
n(9, v = Ra(m));
|
|
5535
|
+
}
|
|
5536
|
+
N > 0 && v > 0 && b?.currency && L?.currency && c && n(14, re = !1);
|
|
5537
|
+
}
|
|
5509
5538
|
}).catch((x) => {
|
|
5510
5539
|
Ae({
|
|
5511
5540
|
type: Ce.error,
|
|
@@ -5517,7 +5546,7 @@ function to(e, t, n) {
|
|
|
5517
5546
|
J(f);
|
|
5518
5547
|
});
|
|
5519
5548
|
}, 500), Mt = (f) => {
|
|
5520
|
-
const E = f.target.value, [
|
|
5549
|
+
const E = f.target.value, [P, x] = E.split(".");
|
|
5521
5550
|
!x && E.length >= zt && n(8, N = E.slice(0, zt)), x && b?.type === On.Fiat && (x.length <= b?.precision ? (n(8, N = E), R = E) : n(8, N = R)), x && b?.type === On.CryptoCurrency && (E.length <= zt ? (n(8, N = E), R = E) : n(8, N = R)), U();
|
|
5522
5551
|
}, dt = (f) => {
|
|
5523
5552
|
const E = f.data;
|
|
@@ -5534,8 +5563,8 @@ function to(e, t, n) {
|
|
|
5534
5563
|
currency: b?.currency,
|
|
5535
5564
|
fromCurrency: b?.currency,
|
|
5536
5565
|
toCurrency: L?.currency,
|
|
5537
|
-
payload: { PlayerCurrency:
|
|
5538
|
-
},
|
|
5566
|
+
payload: { PlayerCurrency: c }
|
|
5567
|
+
}, P = {
|
|
5539
5568
|
method: "PUT",
|
|
5540
5569
|
headers: {
|
|
5541
5570
|
"X-SessionId": r,
|
|
@@ -5544,7 +5573,7 @@ function to(e, t, n) {
|
|
|
5544
5573
|
},
|
|
5545
5574
|
body: Dn(E)
|
|
5546
5575
|
};
|
|
5547
|
-
fetch(f,
|
|
5576
|
+
fetch(f, P).then((x) => ye(x, z.WalletExchangeError)).then((x) => {
|
|
5548
5577
|
x && (Ae({
|
|
5549
5578
|
type: Ce.success,
|
|
5550
5579
|
message: O("exchangeSuccess"),
|
|
@@ -5580,7 +5609,7 @@ function to(e, t, n) {
|
|
|
5580
5609
|
b = f, n(5, b);
|
|
5581
5610
|
}
|
|
5582
5611
|
function gt() {
|
|
5583
|
-
|
|
5612
|
+
v = Ct(this.value), n(9, v);
|
|
5584
5613
|
}
|
|
5585
5614
|
function he(f) {
|
|
5586
5615
|
L = f, n(6, L);
|
|
@@ -5591,17 +5620,17 @@ function to(e, t, n) {
|
|
|
5591
5620
|
});
|
|
5592
5621
|
}
|
|
5593
5622
|
return e.$$set = (f) => {
|
|
5594
|
-
"session" in f && n(0, r = f.session), "userid" in f && n(30, i = f.userid), "endpoint" in f && n(31, a = f.endpoint), "lang" in f && n(32,
|
|
5623
|
+
"session" in f && n(0, r = f.session), "userid" in f && n(30, i = f.userid), "endpoint" in f && n(31, a = f.endpoint), "lang" in f && n(32, u = f.lang), "clientstyling" in f && n(33, s = f.clientstyling), "clientstylingurl" in f && n(34, o = f.clientstylingurl), "translationurl" in f && n(35, l = f.translationurl), "playercurrency" in f && n(36, c = f.playercurrency), "showvaults" in f && n(1, d = f.showvaults), "showtotalbalance" in f && n(2, h = f.showtotalbalance), "showclosebutton" in f && n(3, p = f.showclosebutton), "showcurrencysymbol" in f && n(4, _ = f.showcurrencysymbol);
|
|
5595
5624
|
}, e.$$.update = () => {
|
|
5596
5625
|
e.$$.dirty[1] & /*lang*/
|
|
5597
|
-
2 &&
|
|
5626
|
+
2 && u && Qe(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5598
5627
|
128 | e.$$.dirty[1] & /*clientstyling*/
|
|
5599
5628
|
4 && s && ue && Re(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5600
5629
|
128 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5601
5630
|
8 && o && ue && ht(), e.$$.dirty[1] & /*translationurl*/
|
|
5602
|
-
16 &&
|
|
5631
|
+
16 && l && xe(), e.$$.dirty[0] & /*session, userid*/
|
|
5603
5632
|
1073741825 | e.$$.dirty[1] & /*endpoint, playercurrency*/
|
|
5604
|
-
33 && r && i && a &&
|
|
5633
|
+
33 && r && i && a && c && et(), e.$$.dirty[0] & /*selectedCurrencyTo*/
|
|
5605
5634
|
64 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5606
5635
|
64 && n(20, q = le.filter((f) => f?.amount > 0 && f?.currency !== L?.currency)), e.$$.dirty[0] & /*selectedCurrencyFrom*/
|
|
5607
5636
|
32 | e.$$.dirty[1] & /*filteredBalances*/
|
|
@@ -5609,14 +5638,14 @@ function to(e, t, n) {
|
|
|
5609
5638
|
}, [
|
|
5610
5639
|
r,
|
|
5611
5640
|
d,
|
|
5612
|
-
|
|
5641
|
+
h,
|
|
5613
5642
|
p,
|
|
5614
|
-
|
|
5643
|
+
_,
|
|
5615
5644
|
b,
|
|
5616
5645
|
L,
|
|
5617
5646
|
ue,
|
|
5618
5647
|
N,
|
|
5619
|
-
|
|
5648
|
+
v,
|
|
5620
5649
|
$,
|
|
5621
5650
|
M,
|
|
5622
5651
|
Z,
|
|
@@ -5639,11 +5668,11 @@ function to(e, t, n) {
|
|
|
5639
5668
|
ce,
|
|
5640
5669
|
i,
|
|
5641
5670
|
a,
|
|
5642
|
-
|
|
5671
|
+
u,
|
|
5643
5672
|
s,
|
|
5644
5673
|
o,
|
|
5645
|
-
|
|
5646
|
-
|
|
5674
|
+
l,
|
|
5675
|
+
c,
|
|
5647
5676
|
le,
|
|
5648
5677
|
kt,
|
|
5649
5678
|
mt,
|
|
@@ -5652,14 +5681,14 @@ function to(e, t, n) {
|
|
|
5652
5681
|
bt
|
|
5653
5682
|
];
|
|
5654
5683
|
}
|
|
5655
|
-
class
|
|
5684
|
+
class io extends hn {
|
|
5656
5685
|
constructor(t) {
|
|
5657
5686
|
super(), un(
|
|
5658
5687
|
this,
|
|
5659
5688
|
t,
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5689
|
+
ro,
|
|
5690
|
+
no,
|
|
5691
|
+
It,
|
|
5663
5692
|
{
|
|
5664
5693
|
session: 0,
|
|
5665
5694
|
userid: 30,
|
|
@@ -5674,7 +5703,7 @@ class no extends hn {
|
|
|
5674
5703
|
showclosebutton: 3,
|
|
5675
5704
|
showcurrencysymbol: 4
|
|
5676
5705
|
},
|
|
5677
|
-
|
|
5706
|
+
Va,
|
|
5678
5707
|
[-1, -1, -1]
|
|
5679
5708
|
);
|
|
5680
5709
|
}
|
|
@@ -5751,7 +5780,7 @@ class no extends hn {
|
|
|
5751
5780
|
this.$$set({ showcurrencysymbol: t }), V();
|
|
5752
5781
|
}
|
|
5753
5782
|
}
|
|
5754
|
-
cn(
|
|
5783
|
+
cn(io, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {} }, [], [], !0);
|
|
5755
5784
|
export {
|
|
5756
|
-
|
|
5785
|
+
io as P
|
|
5757
5786
|
};
|