@everymatrix/player-account-vault 0.19.9 → 0.19.10
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-CmjyTYGb.js → PlayerAccountVault-DPG24nvP.js} +746 -744
- package/components/PlayerAccountVault-Qgw_kZD3.cjs +3 -0
- package/components/{PlayerAccountVault-C3HabYXT.js → PlayerAccountVault-ZWbGntb2.js} +770 -768
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +2 -2
- package/components/PlayerAccountVault-D6SeSrcy.cjs +0 -3
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function S() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function $n(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function fn() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function ve(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach($n);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ot(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Tt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function br(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function jn(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const r of t)
|
|
24
24
|
r(void 0);
|
|
@@ -27,24 +27,24 @@ function $n(e, ...t) {
|
|
|
27
27
|
const n = e.subscribe(...t);
|
|
28
28
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function yr(e) {
|
|
31
31
|
let t;
|
|
32
|
-
return
|
|
32
|
+
return jn(e, (n) => t = n)(), t;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return e &&
|
|
34
|
+
function vr(e) {
|
|
35
|
+
return e && ot(e.destroy) ? e.destroy : S;
|
|
36
36
|
}
|
|
37
37
|
function y(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const r =
|
|
40
|
+
function on(e, t, n) {
|
|
41
|
+
const r = _r(e);
|
|
42
42
|
if (!r.getElementById(t)) {
|
|
43
43
|
const i = E("style");
|
|
44
|
-
i.id = t, i.textContent = n,
|
|
44
|
+
i.id = t, i.textContent = n, Er(r, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function _r(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function vr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Er(e, t) {
|
|
58
58
|
return y(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,14 +67,14 @@ function T(e, t, n) {
|
|
|
67
67
|
function C(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Xn(e, t) {
|
|
71
71
|
for (let n = 0; n < e.length; n += 1)
|
|
72
72
|
e[n] && e[n].d(t);
|
|
73
73
|
}
|
|
74
74
|
function E(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function dn(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
80
|
function z(e) {
|
|
@@ -83,13 +83,13 @@ function z(e) {
|
|
|
83
83
|
function I() {
|
|
84
84
|
return z(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function xr() {
|
|
87
87
|
return z("");
|
|
88
88
|
}
|
|
89
89
|
function ie(e, t, n, r) {
|
|
90
90
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function wr(e) {
|
|
93
93
|
return function(t) {
|
|
94
94
|
return t.stopPropagation(), e.call(this, t);
|
|
95
95
|
};
|
|
@@ -97,23 +97,23 @@ function xr(e) {
|
|
|
97
97
|
function m(e, t, n) {
|
|
98
98
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Et(e) {
|
|
101
101
|
return e === "" ? null : +e;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Ar(e) {
|
|
104
104
|
return Array.from(e.childNodes);
|
|
105
105
|
}
|
|
106
106
|
function te(e, t) {
|
|
107
107
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
108
108
|
t);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function pt(e, t) {
|
|
111
111
|
e.value = t ?? "";
|
|
112
112
|
}
|
|
113
113
|
function le(e, t, n) {
|
|
114
114
|
e.classList.toggle(t, !!n);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Cr(e) {
|
|
117
117
|
const t = {};
|
|
118
118
|
return e.childNodes.forEach(
|
|
119
119
|
/** @param {Element} node */
|
|
@@ -122,122 +122,122 @@ function Ar(e) {
|
|
|
122
122
|
}
|
|
123
123
|
), t;
|
|
124
124
|
}
|
|
125
|
-
let
|
|
126
|
-
function
|
|
127
|
-
|
|
125
|
+
let nt;
|
|
126
|
+
function tt(e) {
|
|
127
|
+
nt = e;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (!
|
|
129
|
+
function Tr() {
|
|
130
|
+
if (!nt)
|
|
131
131
|
throw new Error("Function called outside component initialization");
|
|
132
|
-
return
|
|
132
|
+
return nt;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
134
|
+
function Br(e) {
|
|
135
|
+
Tr().$$.on_mount.push(e);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
138
|
-
let
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
function
|
|
142
|
-
|
|
137
|
+
const Me = [], Ue = [];
|
|
138
|
+
let Fe = [];
|
|
139
|
+
const Wt = [], Sr = /* @__PURE__ */ Promise.resolve();
|
|
140
|
+
let zt = !1;
|
|
141
|
+
function Hr() {
|
|
142
|
+
zt || (zt = !0, Sr.then(G));
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
144
|
+
function Zt(e) {
|
|
145
|
+
Fe.push(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
147
|
+
function pn(e) {
|
|
148
|
+
Wt.push(e);
|
|
149
149
|
}
|
|
150
|
-
const
|
|
151
|
-
let
|
|
150
|
+
const Mt = /* @__PURE__ */ new Set();
|
|
151
|
+
let ke = 0;
|
|
152
152
|
function G() {
|
|
153
|
-
if (
|
|
153
|
+
if (ke !== 0)
|
|
154
154
|
return;
|
|
155
|
-
const e =
|
|
155
|
+
const e = nt;
|
|
156
156
|
do {
|
|
157
157
|
try {
|
|
158
|
-
for (;
|
|
159
|
-
const t =
|
|
160
|
-
|
|
158
|
+
for (; ke < Me.length; ) {
|
|
159
|
+
const t = Me[ke];
|
|
160
|
+
ke++, tt(t), Pr(t.$$);
|
|
161
161
|
}
|
|
162
162
|
} catch (t) {
|
|
163
|
-
throw
|
|
163
|
+
throw Me.length = 0, ke = 0, t;
|
|
164
164
|
}
|
|
165
|
-
for (
|
|
166
|
-
|
|
167
|
-
for (let t = 0; t <
|
|
168
|
-
const n =
|
|
169
|
-
|
|
165
|
+
for (tt(null), Me.length = 0, ke = 0; Ue.length; )
|
|
166
|
+
Ue.pop()();
|
|
167
|
+
for (let t = 0; t < Fe.length; t += 1) {
|
|
168
|
+
const n = Fe[t];
|
|
169
|
+
Mt.has(n) || (Mt.add(n), n());
|
|
170
170
|
}
|
|
171
|
-
|
|
172
|
-
} while (
|
|
173
|
-
for (;
|
|
174
|
-
|
|
175
|
-
|
|
171
|
+
Fe.length = 0;
|
|
172
|
+
} while (Me.length);
|
|
173
|
+
for (; Wt.length; )
|
|
174
|
+
Wt.pop()();
|
|
175
|
+
zt = !1, Mt.clear(), tt(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Pr(e) {
|
|
178
178
|
if (e.fragment !== null) {
|
|
179
179
|
e.update(), ve(e.before_update);
|
|
180
180
|
const t = e.dirty;
|
|
181
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
181
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Zt);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Ir(e) {
|
|
185
185
|
const t = [], n = [];
|
|
186
|
-
|
|
186
|
+
Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
|
|
187
187
|
}
|
|
188
|
-
const
|
|
189
|
-
let
|
|
190
|
-
function
|
|
191
|
-
|
|
188
|
+
const bt = /* @__PURE__ */ new Set();
|
|
189
|
+
let Be;
|
|
190
|
+
function Se() {
|
|
191
|
+
Be = {
|
|
192
192
|
r: 0,
|
|
193
193
|
c: [],
|
|
194
|
-
p:
|
|
194
|
+
p: Be
|
|
195
195
|
// parent group
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
|
|
198
|
+
function He() {
|
|
199
|
+
Be.r || ve(Be.c), Be = Be.p;
|
|
200
200
|
}
|
|
201
201
|
function U(e, t) {
|
|
202
|
-
e && e.i && (
|
|
202
|
+
e && e.i && (bt.delete(e), e.i(t));
|
|
203
203
|
}
|
|
204
204
|
function W(e, t, n, r) {
|
|
205
205
|
if (e && e.o) {
|
|
206
|
-
if (
|
|
206
|
+
if (bt.has(e))
|
|
207
207
|
return;
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
bt.add(e), Be.c.push(() => {
|
|
209
|
+
bt.delete(e), r && (n && e.d(1), r());
|
|
210
210
|
}), e.o(t);
|
|
211
211
|
} else
|
|
212
212
|
r && r();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function xt(e) {
|
|
215
215
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function mn(e, t, n) {
|
|
218
218
|
const r = e.$$.props[t];
|
|
219
219
|
r !== void 0 && (e.$$.bound[r] = n, n(e.$$.ctx[r]));
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function rt(e) {
|
|
222
222
|
e && e.c();
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Ve(e, t, n) {
|
|
225
225
|
const { fragment: r, after_update: i } = e.$$;
|
|
226
|
-
r && r.m(t, n),
|
|
227
|
-
const a = e.$$.on_mount.map(
|
|
226
|
+
r && r.m(t, n), Zt(() => {
|
|
227
|
+
const a = e.$$.on_mount.map($n).filter(ot);
|
|
228
228
|
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : ve(a), e.$$.on_mount = [];
|
|
229
|
-
}), i.forEach(
|
|
229
|
+
}), i.forEach(Zt);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Ge(e, t) {
|
|
232
232
|
const n = e.$$;
|
|
233
|
-
n.fragment !== null && (
|
|
233
|
+
n.fragment !== null && (Ir(n.after_update), ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
e.$$.dirty[0] === -1 && (
|
|
235
|
+
function Lr(e, t) {
|
|
236
|
+
e.$$.dirty[0] === -1 && (Me.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
const s =
|
|
240
|
-
|
|
238
|
+
function sn(e, t, n, r, i, a, o = null, u = [-1]) {
|
|
239
|
+
const s = nt;
|
|
240
|
+
tt(e);
|
|
241
241
|
const l = e.$$ = {
|
|
242
242
|
fragment: null,
|
|
243
243
|
ctx: [],
|
|
@@ -245,7 +245,7 @@ function on(e, t, n, r, i, a, o = null, u = [-1]) {
|
|
|
245
245
|
props: a,
|
|
246
246
|
update: S,
|
|
247
247
|
not_equal: i,
|
|
248
|
-
bound:
|
|
248
|
+
bound: fn(),
|
|
249
249
|
// lifecycle
|
|
250
250
|
on_mount: [],
|
|
251
251
|
on_destroy: [],
|
|
@@ -254,7 +254,7 @@ function on(e, t, n, r, i, a, o = null, u = [-1]) {
|
|
|
254
254
|
after_update: [],
|
|
255
255
|
context: new Map(t.context || (s ? s.$$.context : [])),
|
|
256
256
|
// everything else
|
|
257
|
-
callbacks:
|
|
257
|
+
callbacks: fn(),
|
|
258
258
|
dirty: u,
|
|
259
259
|
skip_bound: !1,
|
|
260
260
|
root: t.target || s.$$.root
|
|
@@ -263,19 +263,19 @@ function on(e, t, n, r, i, a, o = null, u = [-1]) {
|
|
|
263
263
|
let c = !1;
|
|
264
264
|
if (l.ctx = n ? n(e, t.props || {}, (d, h, ...p) => {
|
|
265
265
|
const v = p.length ? p[0] : h;
|
|
266
|
-
return l.ctx && i(l.ctx[d], l.ctx[d] = v) && (!l.skip_bound && l.bound[d] && l.bound[d](v), c &&
|
|
266
|
+
return l.ctx && i(l.ctx[d], l.ctx[d] = v) && (!l.skip_bound && l.bound[d] && l.bound[d](v), c && Lr(e, d)), h;
|
|
267
267
|
}) : [], l.update(), c = !0, ve(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
268
268
|
if (t.hydrate) {
|
|
269
|
-
const d =
|
|
269
|
+
const d = Ar(t.target);
|
|
270
270
|
l.fragment && l.fragment.l(d), d.forEach(C);
|
|
271
271
|
} else
|
|
272
272
|
l.fragment && l.fragment.c();
|
|
273
|
-
t.intro && U(e.$$.fragment),
|
|
273
|
+
t.intro && U(e.$$.fragment), Ve(e, t.target, t.anchor), G();
|
|
274
274
|
}
|
|
275
|
-
|
|
275
|
+
tt(s);
|
|
276
276
|
}
|
|
277
|
-
let
|
|
278
|
-
typeof HTMLElement == "function" && (
|
|
277
|
+
let Wn;
|
|
278
|
+
typeof HTMLElement == "function" && (Wn = class extends HTMLElement {
|
|
279
279
|
/** The Svelte component constructor */
|
|
280
280
|
$$ctor;
|
|
281
281
|
/** Slots */
|
|
@@ -334,12 +334,12 @@ typeof HTMLElement == "function" && (Xn = class extends HTMLElement {
|
|
|
334
334
|
};
|
|
335
335
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
336
336
|
return;
|
|
337
|
-
const t = {}, n =
|
|
337
|
+
const t = {}, n = Cr(this);
|
|
338
338
|
for (const i of this.$$s)
|
|
339
339
|
i in n && (t[i] = [e(i)]);
|
|
340
340
|
for (const i of this.attributes) {
|
|
341
341
|
const a = this.$$g_p(i.name);
|
|
342
|
-
a in this.$$d || (this.$$d[a] =
|
|
342
|
+
a in this.$$d || (this.$$d[a] = yt(a, i.value, this.$$p_d, "toProp"));
|
|
343
343
|
}
|
|
344
344
|
for (const i in this.$$p_d)
|
|
345
345
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -357,7 +357,7 @@ typeof HTMLElement == "function" && (Xn = class extends HTMLElement {
|
|
|
357
357
|
this.$$r = !0;
|
|
358
358
|
for (const i in this.$$p_d)
|
|
359
359
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
360
|
-
const a =
|
|
360
|
+
const a = yt(
|
|
361
361
|
i,
|
|
362
362
|
this.$$d[i],
|
|
363
363
|
this.$$p_d,
|
|
@@ -379,7 +379,7 @@ typeof HTMLElement == "function" && (Xn = class extends HTMLElement {
|
|
|
379
379
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
380
380
|
// and setting attributes through setAttribute etc, this is helpful
|
|
381
381
|
attributeChangedCallback(e, t, n) {
|
|
382
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
382
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = yt(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
383
383
|
}
|
|
384
384
|
disconnectedCallback() {
|
|
385
385
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -392,7 +392,7 @@ typeof HTMLElement == "function" && (Xn = class extends HTMLElement {
|
|
|
392
392
|
) || e;
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
|
-
function
|
|
395
|
+
function yt(e, t, n, r) {
|
|
396
396
|
const i = n[e]?.type;
|
|
397
397
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
398
398
|
return t;
|
|
@@ -421,8 +421,8 @@ function bt(e, t, n, r) {
|
|
|
421
421
|
return t;
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
let o = class extends
|
|
424
|
+
function ln(e, t, n, r, i, a) {
|
|
425
|
+
let o = class extends Wn {
|
|
426
426
|
constructor() {
|
|
427
427
|
super(e, n, i), this.$$p_d = t;
|
|
428
428
|
}
|
|
@@ -438,7 +438,7 @@ function sn(e, t, n, r, i, a) {
|
|
|
438
438
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
439
439
|
},
|
|
440
440
|
set(s) {
|
|
441
|
-
s =
|
|
441
|
+
s = yt(u, s, t), this.$$d[u] = s, this.$$c?.$set({ [u]: s });
|
|
442
442
|
}
|
|
443
443
|
});
|
|
444
444
|
}), r.forEach((u) => {
|
|
@@ -450,7 +450,7 @@ function sn(e, t, n, r, i, a) {
|
|
|
450
450
|
}), e.element = /** @type {any} */
|
|
451
451
|
o, o;
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class un {
|
|
454
454
|
/**
|
|
455
455
|
* ### PRIVATE API
|
|
456
456
|
*
|
|
@@ -469,7 +469,7 @@ class ln {
|
|
|
469
469
|
$$set = void 0;
|
|
470
470
|
/** @returns {void} */
|
|
471
471
|
$destroy() {
|
|
472
|
-
|
|
472
|
+
Ge(this, 1), this.$destroy = S;
|
|
473
473
|
}
|
|
474
474
|
/**
|
|
475
475
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -478,7 +478,7 @@ class ln {
|
|
|
478
478
|
* @returns {() => void}
|
|
479
479
|
*/
|
|
480
480
|
$on(t, n) {
|
|
481
|
-
if (!
|
|
481
|
+
if (!ot(n))
|
|
482
482
|
return S;
|
|
483
483
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
484
484
|
return r.push(n), () => {
|
|
@@ -491,29 +491,29 @@ class ln {
|
|
|
491
491
|
* @returns {void}
|
|
492
492
|
*/
|
|
493
493
|
$set(t) {
|
|
494
|
-
this.$$set && !
|
|
494
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
const
|
|
498
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
499
|
-
const
|
|
500
|
-
function
|
|
497
|
+
const Nr = "4";
|
|
498
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
|
|
499
|
+
const De = [];
|
|
500
|
+
function Or(e, t) {
|
|
501
501
|
return {
|
|
502
|
-
subscribe:
|
|
502
|
+
subscribe: Bt(e, t).subscribe
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function Bt(e, t = S) {
|
|
506
506
|
let n;
|
|
507
507
|
const r = /* @__PURE__ */ new Set();
|
|
508
508
|
function i(u) {
|
|
509
|
-
if (
|
|
510
|
-
const s = !
|
|
509
|
+
if (Tt(e, u) && (e = u, n)) {
|
|
510
|
+
const s = !De.length;
|
|
511
511
|
for (const l of r)
|
|
512
|
-
l[1](),
|
|
512
|
+
l[1](), De.push(l, e);
|
|
513
513
|
if (s) {
|
|
514
|
-
for (let l = 0; l <
|
|
515
|
-
|
|
516
|
-
|
|
514
|
+
for (let l = 0; l < De.length; l += 2)
|
|
515
|
+
De[l][0](De[l + 1]);
|
|
516
|
+
De.length = 0;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
}
|
|
@@ -528,12 +528,12 @@ function Tt(e, t = S) {
|
|
|
528
528
|
}
|
|
529
529
|
return { set: i, update: a, subscribe: o };
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function ze(e, t, n) {
|
|
532
532
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
533
533
|
if (!i.every(Boolean))
|
|
534
534
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
535
535
|
const a = t.length < 2;
|
|
536
|
-
return
|
|
536
|
+
return Or(n, (o, u) => {
|
|
537
537
|
let s = !1;
|
|
538
538
|
const l = [];
|
|
539
539
|
let c = 0, d = S;
|
|
@@ -542,9 +542,9 @@ function We(e, t, n) {
|
|
|
542
542
|
return;
|
|
543
543
|
d();
|
|
544
544
|
const v = t(r ? l[0] : l, o, u);
|
|
545
|
-
a ? o(v) : d =
|
|
545
|
+
a ? o(v) : d = ot(v) ? v : S;
|
|
546
546
|
}, p = i.map(
|
|
547
|
-
(v, b) =>
|
|
547
|
+
(v, b) => jn(
|
|
548
548
|
v,
|
|
549
549
|
(N) => {
|
|
550
550
|
l[b] = N, c &= ~(1 << b), s && h();
|
|
@@ -559,92 +559,92 @@ function We(e, t, n) {
|
|
|
559
559
|
};
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Rr(e) {
|
|
563
563
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
564
564
|
}
|
|
565
|
-
var
|
|
566
|
-
return
|
|
565
|
+
var kr = function(t) {
|
|
566
|
+
return Dr(t) && !Mr(t);
|
|
567
567
|
};
|
|
568
|
-
function
|
|
568
|
+
function Dr(e) {
|
|
569
569
|
return !!e && typeof e == "object";
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function Mr(e) {
|
|
572
572
|
var t = Object.prototype.toString.call(e);
|
|
573
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
574
|
-
}
|
|
575
|
-
var Mr = typeof Symbol == "function" && Symbol.for, Fr = Mr ? Symbol.for("react.element") : 60103;
|
|
576
|
-
function Ur(e) {
|
|
577
|
-
return e.$$typeof === Fr;
|
|
573
|
+
return t === "[object RegExp]" || t === "[object Date]" || Vr(e);
|
|
578
574
|
}
|
|
575
|
+
var Fr = typeof Symbol == "function" && Symbol.for, Ur = Fr ? Symbol.for("react.element") : 60103;
|
|
579
576
|
function Vr(e) {
|
|
577
|
+
return e.$$typeof === Ur;
|
|
578
|
+
}
|
|
579
|
+
function Gr(e) {
|
|
580
580
|
return Array.isArray(e) ? [] : {};
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
582
|
+
function it(e, t) {
|
|
583
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $e(Gr(e), e, t) : e;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function $r(e, t, n) {
|
|
586
586
|
return e.concat(t).map(function(r) {
|
|
587
|
-
return
|
|
587
|
+
return it(r, n);
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function jr(e, t) {
|
|
591
591
|
if (!t.customMerge)
|
|
592
|
-
return
|
|
592
|
+
return $e;
|
|
593
593
|
var n = t.customMerge(e);
|
|
594
|
-
return typeof n == "function" ? n :
|
|
594
|
+
return typeof n == "function" ? n : $e;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Xr(e) {
|
|
597
597
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
598
598
|
return Object.propertyIsEnumerable.call(e, t);
|
|
599
599
|
}) : [];
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return Object.keys(e).concat(
|
|
601
|
+
function gn(e) {
|
|
602
|
+
return Object.keys(e).concat(Xr(e));
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function zn(e, t) {
|
|
605
605
|
try {
|
|
606
606
|
return t in e;
|
|
607
607
|
} catch {
|
|
608
608
|
return !1;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
function
|
|
612
|
-
return
|
|
611
|
+
function Wr(e, t) {
|
|
612
|
+
return zn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function zr(e, t, n) {
|
|
615
615
|
var r = {};
|
|
616
|
-
return n.isMergeableObject(e) &&
|
|
617
|
-
r[i] =
|
|
618
|
-
}),
|
|
619
|
-
|
|
616
|
+
return n.isMergeableObject(e) && gn(e).forEach(function(i) {
|
|
617
|
+
r[i] = it(e[i], n);
|
|
618
|
+
}), gn(t).forEach(function(i) {
|
|
619
|
+
Wr(e, i) || (zn(e, i) && n.isMergeableObject(t[i]) ? r[i] = jr(i, n)(e[i], t[i], n) : r[i] = it(t[i], n));
|
|
620
620
|
}), r;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
622
|
+
function $e(e, t, n) {
|
|
623
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || $r, n.isMergeableObject = n.isMergeableObject || kr, n.cloneUnlessOtherwiseSpecified = it;
|
|
624
624
|
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
625
|
-
return a ? r ? n.arrayMerge(e, t, n) :
|
|
625
|
+
return a ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : it(t, n);
|
|
626
626
|
}
|
|
627
|
-
|
|
627
|
+
$e.all = function(t, n) {
|
|
628
628
|
if (!Array.isArray(t))
|
|
629
629
|
throw new Error("first argument should be an array");
|
|
630
630
|
return t.reduce(function(r, i) {
|
|
631
|
-
return
|
|
631
|
+
return $e(r, i, n);
|
|
632
632
|
}, {});
|
|
633
633
|
};
|
|
634
|
-
var
|
|
635
|
-
const
|
|
636
|
-
var
|
|
637
|
-
return
|
|
634
|
+
var Zr = $e, Qr = Zr;
|
|
635
|
+
const Kr = /* @__PURE__ */ Rr(Qr);
|
|
636
|
+
var Qt = function(e, t) {
|
|
637
|
+
return Qt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
638
638
|
n.__proto__ = r;
|
|
639
639
|
} || function(n, r) {
|
|
640
640
|
for (var i in r)
|
|
641
641
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
642
|
-
},
|
|
642
|
+
}, Qt(e, t);
|
|
643
643
|
};
|
|
644
|
-
function
|
|
644
|
+
function St(e, t) {
|
|
645
645
|
if (typeof t != "function" && t !== null)
|
|
646
646
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
647
|
-
|
|
647
|
+
Qt(e, t);
|
|
648
648
|
function n() {
|
|
649
649
|
this.constructor = e;
|
|
650
650
|
}
|
|
@@ -660,7 +660,7 @@ var pe = function() {
|
|
|
660
660
|
return t;
|
|
661
661
|
}, pe.apply(this, arguments);
|
|
662
662
|
};
|
|
663
|
-
function
|
|
663
|
+
function Yr(e, t) {
|
|
664
664
|
var n = {};
|
|
665
665
|
for (var r in e)
|
|
666
666
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -669,43 +669,43 @@ function Kr(e, t) {
|
|
|
669
669
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
670
670
|
return n;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Ft(e, t, n) {
|
|
673
673
|
if (n || arguments.length === 2)
|
|
674
674
|
for (var r = 0, i = t.length, a; r < i; r++)
|
|
675
675
|
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
676
676
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
677
677
|
}
|
|
678
|
-
function
|
|
679
|
-
var n = t && t.cache ? t.cache :
|
|
678
|
+
function Ut(e, t) {
|
|
679
|
+
var n = t && t.cache ? t.cache : ii, r = t && t.serializer ? t.serializer : ni, i = t && t.strategy ? t.strategy : ei;
|
|
680
680
|
return i(e, {
|
|
681
681
|
cache: n,
|
|
682
682
|
serializer: r
|
|
683
683
|
});
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function Jr(e) {
|
|
686
686
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
var i =
|
|
688
|
+
function qr(e, t, n, r) {
|
|
689
|
+
var i = Jr(r) ? r : n(r), a = t.get(i);
|
|
690
690
|
return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function Zn(e, t, n) {
|
|
693
693
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
694
694
|
return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Qn(e, t, n, r, i) {
|
|
697
697
|
return n.bind(t, e, r, i);
|
|
698
698
|
}
|
|
699
|
-
function qr(e, t) {
|
|
700
|
-
var n = e.length === 1 ? Jr : zn;
|
|
701
|
-
return Zn(e, this, n, t.cache.create(), t.serializer);
|
|
702
|
-
}
|
|
703
699
|
function ei(e, t) {
|
|
704
|
-
|
|
700
|
+
var n = e.length === 1 ? qr : Zn;
|
|
701
|
+
return Qn(e, this, n, t.cache.create(), t.serializer);
|
|
702
|
+
}
|
|
703
|
+
function ti(e, t) {
|
|
704
|
+
return Qn(e, this, Zn, t.cache.create(), t.serializer);
|
|
705
705
|
}
|
|
706
|
-
var
|
|
706
|
+
var ni = function() {
|
|
707
707
|
return JSON.stringify(arguments);
|
|
708
|
-
},
|
|
708
|
+
}, ri = (
|
|
709
709
|
/** @class */
|
|
710
710
|
function() {
|
|
711
711
|
function e() {
|
|
@@ -717,21 +717,21 @@ var ti = function() {
|
|
|
717
717
|
this.cache[t] = n;
|
|
718
718
|
}, e;
|
|
719
719
|
}()
|
|
720
|
-
),
|
|
720
|
+
), ii = {
|
|
721
721
|
create: function() {
|
|
722
|
-
return new
|
|
722
|
+
return new ri();
|
|
723
723
|
}
|
|
724
|
-
},
|
|
725
|
-
variadic:
|
|
726
|
-
},
|
|
727
|
-
return
|
|
724
|
+
}, Vt = {
|
|
725
|
+
variadic: ti
|
|
726
|
+
}, wt = function() {
|
|
727
|
+
return wt = Object.assign || function(t) {
|
|
728
728
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
729
729
|
n = arguments[r];
|
|
730
730
|
for (var a in n)
|
|
731
731
|
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
732
732
|
}
|
|
733
733
|
return t;
|
|
734
|
-
},
|
|
734
|
+
}, wt.apply(this, arguments);
|
|
735
735
|
};
|
|
736
736
|
var B;
|
|
737
737
|
(function(e) {
|
|
@@ -741,47 +741,47 @@ var k;
|
|
|
741
741
|
(function(e) {
|
|
742
742
|
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";
|
|
743
743
|
})(k || (k = {}));
|
|
744
|
-
var
|
|
744
|
+
var je;
|
|
745
745
|
(function(e) {
|
|
746
746
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
747
|
-
})(
|
|
748
|
-
function
|
|
747
|
+
})(je || (je = {}));
|
|
748
|
+
function bn(e) {
|
|
749
749
|
return e.type === k.literal;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function ai(e) {
|
|
752
752
|
return e.type === k.argument;
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function Kn(e) {
|
|
755
755
|
return e.type === k.number;
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function Yn(e) {
|
|
758
758
|
return e.type === k.date;
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function Jn(e) {
|
|
761
761
|
return e.type === k.time;
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function qn(e) {
|
|
764
764
|
return e.type === k.select;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function er(e) {
|
|
767
767
|
return e.type === k.plural;
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function oi(e) {
|
|
770
770
|
return e.type === k.pound;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function tr(e) {
|
|
773
773
|
return e.type === k.tag;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
776
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
775
|
+
function nr(e) {
|
|
776
|
+
return !!(e && typeof e == "object" && e.type === je.number);
|
|
777
777
|
}
|
|
778
|
-
function
|
|
779
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
778
|
+
function Kt(e) {
|
|
779
|
+
return !!(e && typeof e == "object" && e.type === je.dateTime);
|
|
780
780
|
}
|
|
781
|
-
var
|
|
782
|
-
function
|
|
781
|
+
var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, si = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
782
|
+
function li(e) {
|
|
783
783
|
var t = {};
|
|
784
|
-
return e.replace(
|
|
784
|
+
return e.replace(si, function(n) {
|
|
785
785
|
var r = n.length;
|
|
786
786
|
switch (n[0]) {
|
|
787
787
|
case "G":
|
|
@@ -880,11 +880,11 @@ var F = function() {
|
|
|
880
880
|
return t;
|
|
881
881
|
}, F.apply(this, arguments);
|
|
882
882
|
};
|
|
883
|
-
var
|
|
884
|
-
function
|
|
883
|
+
var ui = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
884
|
+
function ci(e) {
|
|
885
885
|
if (e.length === 0)
|
|
886
886
|
throw new Error("Number skeleton cannot be empty");
|
|
887
|
-
for (var t = e.split(
|
|
887
|
+
for (var t = e.split(ui).filter(function(h) {
|
|
888
888
|
return h.length > 0;
|
|
889
889
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
890
890
|
var a = i[r], o = a.split("/");
|
|
@@ -899,17 +899,17 @@ function ui(e) {
|
|
|
899
899
|
}
|
|
900
900
|
return n;
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function hi(e) {
|
|
903
903
|
return e.replace(/^(.*?)-/, "");
|
|
904
904
|
}
|
|
905
|
-
var
|
|
906
|
-
function
|
|
905
|
+
var yn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, fi = /(\*)(0+)|(#+)(0+)|(0+)/g, ar = /^(0+)$/;
|
|
906
|
+
function vn(e) {
|
|
907
907
|
var t = {};
|
|
908
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
908
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(n, r, i) {
|
|
909
909
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
910
910
|
}), t;
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function or(e) {
|
|
913
913
|
switch (e) {
|
|
914
914
|
case "sign-auto":
|
|
915
915
|
return {
|
|
@@ -949,7 +949,7 @@ function ar(e) {
|
|
|
949
949
|
};
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function di(e) {
|
|
953
953
|
var t;
|
|
954
954
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
955
955
|
notation: "engineering"
|
|
@@ -957,17 +957,17 @@ function fi(e) {
|
|
|
957
957
|
notation: "scientific"
|
|
958
958
|
}, e = e.slice(1)), t) {
|
|
959
959
|
var n = e.slice(0, 2);
|
|
960
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
960
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ar.test(e))
|
|
961
961
|
throw new Error("Malformed concise eng/scientific notation");
|
|
962
962
|
t.minimumIntegerDigits = e.length;
|
|
963
963
|
}
|
|
964
964
|
return t;
|
|
965
965
|
}
|
|
966
|
-
function
|
|
967
|
-
var t = {}, n =
|
|
966
|
+
function _n(e) {
|
|
967
|
+
var t = {}, n = or(e);
|
|
968
968
|
return n || t;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function pi(e) {
|
|
971
971
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
972
972
|
var i = r[n];
|
|
973
973
|
switch (i.stem) {
|
|
@@ -991,7 +991,7 @@ function di(e) {
|
|
|
991
991
|
continue;
|
|
992
992
|
case "measure-unit":
|
|
993
993
|
case "unit":
|
|
994
|
-
t.style = "unit", t.unit =
|
|
994
|
+
t.style = "unit", t.unit = hi(i.options[0]);
|
|
995
995
|
continue;
|
|
996
996
|
case "compact-short":
|
|
997
997
|
case "K":
|
|
@@ -1003,12 +1003,12 @@ function di(e) {
|
|
|
1003
1003
|
continue;
|
|
1004
1004
|
case "scientific":
|
|
1005
1005
|
t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(s, l) {
|
|
1006
|
-
return F(F({}, s),
|
|
1006
|
+
return F(F({}, s), _n(l));
|
|
1007
1007
|
}, {}));
|
|
1008
1008
|
continue;
|
|
1009
1009
|
case "engineering":
|
|
1010
1010
|
t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(s, l) {
|
|
1011
|
-
return F(F({}, s),
|
|
1011
|
+
return F(F({}, s), _n(l));
|
|
1012
1012
|
}, {}));
|
|
1013
1013
|
continue;
|
|
1014
1014
|
case "notation-simple":
|
|
@@ -1053,7 +1053,7 @@ function di(e) {
|
|
|
1053
1053
|
case "integer-width":
|
|
1054
1054
|
if (i.options.length > 1)
|
|
1055
1055
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1056
|
-
i.options[0].replace(
|
|
1056
|
+
i.options[0].replace(fi, function(s, l, c, d, h, p) {
|
|
1057
1057
|
if (l)
|
|
1058
1058
|
t.minimumIntegerDigits = c.length;
|
|
1059
1059
|
else {
|
|
@@ -1066,32 +1066,32 @@ function di(e) {
|
|
|
1066
1066
|
});
|
|
1067
1067
|
continue;
|
|
1068
1068
|
}
|
|
1069
|
-
if (
|
|
1069
|
+
if (ar.test(i.stem)) {
|
|
1070
1070
|
t.minimumIntegerDigits = i.stem.length;
|
|
1071
1071
|
continue;
|
|
1072
1072
|
}
|
|
1073
|
-
if (
|
|
1073
|
+
if (yn.test(i.stem)) {
|
|
1074
1074
|
if (i.options.length > 1)
|
|
1075
1075
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1076
|
-
i.stem.replace(
|
|
1076
|
+
i.stem.replace(yn, function(s, l, c, d, h, p) {
|
|
1077
1077
|
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), "";
|
|
1078
1078
|
});
|
|
1079
1079
|
var a = i.options[0];
|
|
1080
|
-
a === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = F(F({}, t),
|
|
1080
|
+
a === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = F(F({}, t), vn(a)));
|
|
1081
1081
|
continue;
|
|
1082
1082
|
}
|
|
1083
|
-
if (
|
|
1084
|
-
t = F(F({}, t),
|
|
1083
|
+
if (ir.test(i.stem)) {
|
|
1084
|
+
t = F(F({}, t), vn(i.stem));
|
|
1085
1085
|
continue;
|
|
1086
1086
|
}
|
|
1087
|
-
var o =
|
|
1087
|
+
var o = or(i.stem);
|
|
1088
1088
|
o && (t = F(F({}, t), o));
|
|
1089
|
-
var u =
|
|
1089
|
+
var u = di(i.stem);
|
|
1090
1090
|
u && (t = F(F({}, t), u));
|
|
1091
1091
|
}
|
|
1092
1092
|
return t;
|
|
1093
1093
|
}
|
|
1094
|
-
var
|
|
1094
|
+
var mt = {
|
|
1095
1095
|
"001": [
|
|
1096
1096
|
"H",
|
|
1097
1097
|
"h"
|
|
@@ -2506,13 +2506,13 @@ var pt = {
|
|
|
2506
2506
|
"h"
|
|
2507
2507
|
]
|
|
2508
2508
|
};
|
|
2509
|
-
function
|
|
2509
|
+
function mi(e, t) {
|
|
2510
2510
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2511
2511
|
var i = e.charAt(r);
|
|
2512
2512
|
if (i === "j") {
|
|
2513
2513
|
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2514
2514
|
a++, r++;
|
|
2515
|
-
var o = 1 + (a & 1), u = a < 2 ? 1 : 3 + (a >> 1), s = "a", l =
|
|
2515
|
+
var o = 1 + (a & 1), u = a < 2 ? 1 : 3 + (a >> 1), s = "a", l = gi(t);
|
|
2516
2516
|
for ((l == "H" || l == "k") && (u = 0); u-- > 0; )
|
|
2517
2517
|
n += s;
|
|
2518
2518
|
for (; o-- > 0; )
|
|
@@ -2522,7 +2522,7 @@ function pi(e, t) {
|
|
|
2522
2522
|
}
|
|
2523
2523
|
return n;
|
|
2524
2524
|
}
|
|
2525
|
-
function
|
|
2525
|
+
function gi(e) {
|
|
2526
2526
|
var t = e.hourCycle;
|
|
2527
2527
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2528
2528
|
e.hourCycles && // @ts-ignore
|
|
@@ -2541,23 +2541,23 @@ function mi(e) {
|
|
|
2541
2541
|
}
|
|
2542
2542
|
var n = e.language, r;
|
|
2543
2543
|
n !== "root" && (r = e.maximize().region);
|
|
2544
|
-
var i =
|
|
2544
|
+
var i = mt[r || ""] || mt[n || ""] || mt["".concat(n, "-001")] || mt["001"];
|
|
2545
2545
|
return i[0];
|
|
2546
2546
|
}
|
|
2547
|
-
var
|
|
2547
|
+
var Gt, bi = new RegExp("^".concat(rr.source, "*")), yi = new RegExp("".concat(rr.source, "*$"));
|
|
2548
2548
|
function P(e, t) {
|
|
2549
2549
|
return { start: e, end: t };
|
|
2550
2550
|
}
|
|
2551
|
-
var
|
|
2551
|
+
var vi = !!String.prototype.startsWith && "_a".startsWith("a", 1), _i = !!String.fromCodePoint, Ei = !!Object.fromEntries, xi = !!String.prototype.codePointAt, wi = !!String.prototype.trimStart, Ai = !!String.prototype.trimEnd, Ci = !!Number.isSafeInteger, Ti = Ci ? Number.isSafeInteger : function(e) {
|
|
2552
2552
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2553
|
-
},
|
|
2553
|
+
}, Yt = !0;
|
|
2554
2554
|
try {
|
|
2555
|
-
var
|
|
2556
|
-
|
|
2555
|
+
var Bi = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2556
|
+
Yt = ((Gt = Bi.exec("a")) === null || Gt === void 0 ? void 0 : Gt[0]) === "a";
|
|
2557
2557
|
} catch {
|
|
2558
|
-
|
|
2558
|
+
Yt = !1;
|
|
2559
2559
|
}
|
|
2560
|
-
var
|
|
2560
|
+
var En = vi ? (
|
|
2561
2561
|
// Native
|
|
2562
2562
|
function(t, n, r) {
|
|
2563
2563
|
return t.startsWith(n, r);
|
|
@@ -2567,7 +2567,7 @@ var _n = yi ? (
|
|
|
2567
2567
|
function(t, n, r) {
|
|
2568
2568
|
return t.slice(r, r + n.length) === n;
|
|
2569
2569
|
}
|
|
2570
|
-
),
|
|
2570
|
+
), Jt = _i ? String.fromCodePoint : (
|
|
2571
2571
|
// IE11
|
|
2572
2572
|
function() {
|
|
2573
2573
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2579,9 +2579,9 @@ var _n = yi ? (
|
|
|
2579
2579
|
}
|
|
2580
2580
|
return r;
|
|
2581
2581
|
}
|
|
2582
|
-
),
|
|
2582
|
+
), xn = (
|
|
2583
2583
|
// native
|
|
2584
|
-
|
|
2584
|
+
Ei ? Object.fromEntries : (
|
|
2585
2585
|
// Ponyfill
|
|
2586
2586
|
function(t) {
|
|
2587
2587
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2591,7 +2591,7 @@ var _n = yi ? (
|
|
|
2591
2591
|
return n;
|
|
2592
2592
|
}
|
|
2593
2593
|
)
|
|
2594
|
-
),
|
|
2594
|
+
), sr = xi ? (
|
|
2595
2595
|
// Native
|
|
2596
2596
|
function(t, n) {
|
|
2597
2597
|
return t.codePointAt(n);
|
|
@@ -2605,7 +2605,7 @@ var _n = yi ? (
|
|
|
2605
2605
|
return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2606
2606
|
}
|
|
2607
2607
|
}
|
|
2608
|
-
),
|
|
2608
|
+
), Si = wi ? (
|
|
2609
2609
|
// Native
|
|
2610
2610
|
function(t) {
|
|
2611
2611
|
return t.trimStart();
|
|
@@ -2613,9 +2613,9 @@ var _n = yi ? (
|
|
|
2613
2613
|
) : (
|
|
2614
2614
|
// Ponyfill
|
|
2615
2615
|
function(t) {
|
|
2616
|
-
return t.replace(
|
|
2616
|
+
return t.replace(bi, "");
|
|
2617
2617
|
}
|
|
2618
|
-
),
|
|
2618
|
+
), Hi = Ai ? (
|
|
2619
2619
|
// Native
|
|
2620
2620
|
function(t) {
|
|
2621
2621
|
return t.trimEnd();
|
|
@@ -2623,32 +2623,32 @@ var _n = yi ? (
|
|
|
2623
2623
|
) : (
|
|
2624
2624
|
// Ponyfill
|
|
2625
2625
|
function(t) {
|
|
2626
|
-
return t.replace(
|
|
2626
|
+
return t.replace(yi, "");
|
|
2627
2627
|
}
|
|
2628
2628
|
);
|
|
2629
|
-
function
|
|
2629
|
+
function lr(e, t) {
|
|
2630
2630
|
return new RegExp(e, t);
|
|
2631
2631
|
}
|
|
2632
|
-
var
|
|
2633
|
-
if (
|
|
2634
|
-
var
|
|
2635
|
-
|
|
2632
|
+
var qt;
|
|
2633
|
+
if (Yt) {
|
|
2634
|
+
var wn = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2635
|
+
qt = function(t, n) {
|
|
2636
2636
|
var r;
|
|
2637
|
-
|
|
2638
|
-
var i =
|
|
2637
|
+
wn.lastIndex = n;
|
|
2638
|
+
var i = wn.exec(t);
|
|
2639
2639
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2640
2640
|
};
|
|
2641
2641
|
} else
|
|
2642
|
-
|
|
2642
|
+
qt = function(t, n) {
|
|
2643
2643
|
for (var r = []; ; ) {
|
|
2644
|
-
var i =
|
|
2645
|
-
if (i === void 0 ||
|
|
2644
|
+
var i = sr(t, n);
|
|
2645
|
+
if (i === void 0 || ur(i) || Ni(i))
|
|
2646
2646
|
break;
|
|
2647
2647
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2648
2648
|
}
|
|
2649
|
-
return
|
|
2649
|
+
return Jt.apply(void 0, r);
|
|
2650
2650
|
};
|
|
2651
|
-
var
|
|
2651
|
+
var Pi = (
|
|
2652
2652
|
/** @class */
|
|
2653
2653
|
function() {
|
|
2654
2654
|
function e(t, n) {
|
|
@@ -2679,7 +2679,7 @@ var Hi = (
|
|
|
2679
2679
|
if (r)
|
|
2680
2680
|
break;
|
|
2681
2681
|
return this.error(B.UNMATCHED_CLOSING_TAG, P(this.clonePosition(), this.clonePosition()));
|
|
2682
|
-
} else if (a === 60 && !this.ignoreTag &&
|
|
2682
|
+
} else if (a === 60 && !this.ignoreTag && en(this.peek() || 0)) {
|
|
2683
2683
|
var o = this.parseTag(t, n);
|
|
2684
2684
|
if (o.err)
|
|
2685
2685
|
return o;
|
|
@@ -2712,7 +2712,7 @@ var Hi = (
|
|
|
2712
2712
|
return a;
|
|
2713
2713
|
var o = a.val, u = this.clonePosition();
|
|
2714
2714
|
if (this.bumpIf("</")) {
|
|
2715
|
-
if (this.isEOF() || !
|
|
2715
|
+
if (this.isEOF() || !en(this.char()))
|
|
2716
2716
|
return this.error(B.INVALID_TAG, P(u, this.clonePosition()));
|
|
2717
2717
|
var s = this.clonePosition(), l = this.parseTagName();
|
|
2718
2718
|
return i !== l ? this.error(B.UNMATCHED_CLOSING_TAG, P(s, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2730,7 +2730,7 @@ var Hi = (
|
|
|
2730
2730
|
return this.error(B.INVALID_TAG, P(r, this.clonePosition()));
|
|
2731
2731
|
}, e.prototype.parseTagName = function() {
|
|
2732
2732
|
var t = this.offset();
|
|
2733
|
-
for (this.bump(); !this.isEOF() &&
|
|
2733
|
+
for (this.bump(); !this.isEOF() && Li(this.char()); )
|
|
2734
2734
|
this.bump();
|
|
2735
2735
|
return this.message.slice(t, this.offset());
|
|
2736
2736
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2759,7 +2759,7 @@ var Hi = (
|
|
|
2759
2759
|
};
|
|
2760
2760
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2761
2761
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2762
|
-
!
|
|
2762
|
+
!Ii(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2763
2763
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2764
2764
|
if (this.isEOF() || this.char() !== 39)
|
|
2765
2765
|
return null;
|
|
@@ -2793,12 +2793,12 @@ var Hi = (
|
|
|
2793
2793
|
n.push(r);
|
|
2794
2794
|
this.bump();
|
|
2795
2795
|
}
|
|
2796
|
-
return
|
|
2796
|
+
return Jt.apply(void 0, n);
|
|
2797
2797
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2798
2798
|
if (this.isEOF())
|
|
2799
2799
|
return null;
|
|
2800
2800
|
var r = this.char();
|
|
2801
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2801
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Jt(r));
|
|
2802
2802
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2803
2803
|
var r = this.clonePosition();
|
|
2804
2804
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2827,7 +2827,7 @@ var Hi = (
|
|
|
2827
2827
|
return this.error(B.MALFORMED_ARGUMENT, P(r, this.clonePosition()));
|
|
2828
2828
|
}
|
|
2829
2829
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2830
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2830
|
+
var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
|
|
2831
2831
|
this.bumpTo(i);
|
|
2832
2832
|
var a = this.clonePosition(), o = P(t, a);
|
|
2833
2833
|
return { value: r, location: o };
|
|
@@ -2846,7 +2846,7 @@ var Hi = (
|
|
|
2846
2846
|
var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2847
2847
|
if (d.err)
|
|
2848
2848
|
return d;
|
|
2849
|
-
var h =
|
|
2849
|
+
var h = Hi(d.val);
|
|
2850
2850
|
if (h.length === 0)
|
|
2851
2851
|
return this.error(B.EXPECT_ARGUMENT_STYLE, P(this.clonePosition(), this.clonePosition()));
|
|
2852
2852
|
var p = P(c, this.clonePosition());
|
|
@@ -2856,8 +2856,8 @@ var Hi = (
|
|
|
2856
2856
|
if (v.err)
|
|
2857
2857
|
return v;
|
|
2858
2858
|
var b = P(i, this.clonePosition());
|
|
2859
|
-
if (l &&
|
|
2860
|
-
var N =
|
|
2859
|
+
if (l && En(l?.style, "::", 0)) {
|
|
2860
|
+
var N = Si(l.style.slice(2));
|
|
2861
2861
|
if (u === "number") {
|
|
2862
2862
|
var d = this.parseNumberSkeletonFromString(N, l.styleLocation);
|
|
2863
2863
|
return d.err ? d : {
|
|
@@ -2868,12 +2868,12 @@ var Hi = (
|
|
|
2868
2868
|
if (N.length === 0)
|
|
2869
2869
|
return this.error(B.EXPECT_DATE_TIME_SKELETON, b);
|
|
2870
2870
|
var _ = N;
|
|
2871
|
-
this.locale && (_ =
|
|
2871
|
+
this.locale && (_ = mi(N, this.locale));
|
|
2872
2872
|
var h = {
|
|
2873
|
-
type:
|
|
2873
|
+
type: je.dateTime,
|
|
2874
2874
|
pattern: _,
|
|
2875
2875
|
location: l.styleLocation,
|
|
2876
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2876
|
+
parsedOptions: this.shouldParseSkeletons ? li(_) : {}
|
|
2877
2877
|
}, O = u === "date" ? k.date : k.time;
|
|
2878
2878
|
return {
|
|
2879
2879
|
val: { type: O, value: r, location: b, style: h },
|
|
@@ -2896,7 +2896,7 @@ var Hi = (
|
|
|
2896
2896
|
case "select": {
|
|
2897
2897
|
var L = this.clonePosition();
|
|
2898
2898
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2899
|
-
return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS, P(L,
|
|
2899
|
+
return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS, P(L, wt({}, L)));
|
|
2900
2900
|
this.bumpSpace();
|
|
2901
2901
|
var ae = this.parseIdentifierIfPossible(), D = 0;
|
|
2902
2902
|
if (u !== "select" && ae.value === "offset") {
|
|
@@ -2919,7 +2919,7 @@ var Hi = (
|
|
|
2919
2919
|
val: {
|
|
2920
2920
|
type: k.select,
|
|
2921
2921
|
value: r,
|
|
2922
|
-
options:
|
|
2922
|
+
options: xn(ne.val),
|
|
2923
2923
|
location: oe
|
|
2924
2924
|
},
|
|
2925
2925
|
err: null
|
|
@@ -2927,7 +2927,7 @@ var Hi = (
|
|
|
2927
2927
|
val: {
|
|
2928
2928
|
type: k.plural,
|
|
2929
2929
|
value: r,
|
|
2930
|
-
options:
|
|
2930
|
+
options: xn(ne.val),
|
|
2931
2931
|
offset: D,
|
|
2932
2932
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2933
2933
|
location: oe
|
|
@@ -2978,16 +2978,16 @@ var Hi = (
|
|
|
2978
2978
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2979
2979
|
var r = [];
|
|
2980
2980
|
try {
|
|
2981
|
-
r =
|
|
2981
|
+
r = ci(t);
|
|
2982
2982
|
} catch {
|
|
2983
2983
|
return this.error(B.INVALID_NUMBER_SKELETON, n);
|
|
2984
2984
|
}
|
|
2985
2985
|
return {
|
|
2986
2986
|
val: {
|
|
2987
|
-
type:
|
|
2987
|
+
type: je.number,
|
|
2988
2988
|
tokens: r,
|
|
2989
2989
|
location: n,
|
|
2990
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2990
|
+
parsedOptions: this.shouldParseSkeletons ? pi(r) : {}
|
|
2991
2991
|
},
|
|
2992
2992
|
err: null
|
|
2993
2993
|
};
|
|
@@ -3035,7 +3035,7 @@ var Hi = (
|
|
|
3035
3035
|
break;
|
|
3036
3036
|
}
|
|
3037
3037
|
var s = P(i, this.clonePosition());
|
|
3038
|
-
return a ? (o *= r,
|
|
3038
|
+
return a ? (o *= r, Ti(o) ? { val: o, err: null } : this.error(n, s)) : this.error(t, s);
|
|
3039
3039
|
}, e.prototype.offset = function() {
|
|
3040
3040
|
return this.position.offset;
|
|
3041
3041
|
}, e.prototype.isEOF = function() {
|
|
@@ -3050,7 +3050,7 @@ var Hi = (
|
|
|
3050
3050
|
var t = this.position.offset;
|
|
3051
3051
|
if (t >= this.message.length)
|
|
3052
3052
|
throw Error("out of bound");
|
|
3053
|
-
var n =
|
|
3053
|
+
var n = sr(this.message, t);
|
|
3054
3054
|
if (n === void 0)
|
|
3055
3055
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3056
3056
|
return n;
|
|
@@ -3069,7 +3069,7 @@ var Hi = (
|
|
|
3069
3069
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3070
3070
|
}
|
|
3071
3071
|
}, e.prototype.bumpIf = function(t) {
|
|
3072
|
-
if (
|
|
3072
|
+
if (En(this.message, t, this.offset())) {
|
|
3073
3073
|
for (var n = 0; n < t.length; n++)
|
|
3074
3074
|
this.bump();
|
|
3075
3075
|
return !0;
|
|
@@ -3091,7 +3091,7 @@ var Hi = (
|
|
|
3091
3091
|
break;
|
|
3092
3092
|
}
|
|
3093
3093
|
}, e.prototype.bumpSpace = function() {
|
|
3094
|
-
for (; !this.isEOF() &&
|
|
3094
|
+
for (; !this.isEOF() && ur(this.char()); )
|
|
3095
3095
|
this.bump();
|
|
3096
3096
|
}, e.prototype.peek = function() {
|
|
3097
3097
|
if (this.isEOF())
|
|
@@ -3101,47 +3101,47 @@ var Hi = (
|
|
|
3101
3101
|
}, e;
|
|
3102
3102
|
}()
|
|
3103
3103
|
);
|
|
3104
|
-
function
|
|
3104
|
+
function en(e) {
|
|
3105
3105
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3106
3106
|
}
|
|
3107
|
-
function Pi(e) {
|
|
3108
|
-
return qt(e) || e === 47;
|
|
3109
|
-
}
|
|
3110
3107
|
function Ii(e) {
|
|
3108
|
+
return en(e) || e === 47;
|
|
3109
|
+
}
|
|
3110
|
+
function Li(e) {
|
|
3111
3111
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3112
3112
|
}
|
|
3113
|
-
function
|
|
3113
|
+
function ur(e) {
|
|
3114
3114
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3115
3115
|
}
|
|
3116
|
-
function
|
|
3116
|
+
function Ni(e) {
|
|
3117
3117
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3118
3118
|
}
|
|
3119
|
-
function
|
|
3119
|
+
function tn(e) {
|
|
3120
3120
|
e.forEach(function(t) {
|
|
3121
|
-
if (delete t.location,
|
|
3121
|
+
if (delete t.location, qn(t) || er(t))
|
|
3122
3122
|
for (var n in t.options)
|
|
3123
|
-
delete t.options[n].location,
|
|
3123
|
+
delete t.options[n].location, tn(t.options[n].value);
|
|
3124
3124
|
else
|
|
3125
|
-
|
|
3125
|
+
Kn(t) && nr(t.style) || (Yn(t) || Jn(t)) && Kt(t.style) ? delete t.style.location : tr(t) && tn(t.children);
|
|
3126
3126
|
});
|
|
3127
3127
|
}
|
|
3128
|
-
function
|
|
3129
|
-
t === void 0 && (t = {}), t =
|
|
3130
|
-
var n = new
|
|
3128
|
+
function Oi(e, t) {
|
|
3129
|
+
t === void 0 && (t = {}), t = wt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3130
|
+
var n = new Pi(e, t).parse();
|
|
3131
3131
|
if (n.err) {
|
|
3132
3132
|
var r = SyntaxError(B[n.err.kind]);
|
|
3133
3133
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3134
3134
|
}
|
|
3135
|
-
return t?.captureLocation ||
|
|
3135
|
+
return t?.captureLocation || tn(n.val), n.val;
|
|
3136
3136
|
}
|
|
3137
|
-
var
|
|
3137
|
+
var Xe;
|
|
3138
3138
|
(function(e) {
|
|
3139
3139
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3140
|
-
})(
|
|
3141
|
-
var
|
|
3140
|
+
})(Xe || (Xe = {}));
|
|
3141
|
+
var Ht = (
|
|
3142
3142
|
/** @class */
|
|
3143
3143
|
function(e) {
|
|
3144
|
-
|
|
3144
|
+
St(t, e);
|
|
3145
3145
|
function t(n, r, i) {
|
|
3146
3146
|
var a = e.call(this, n) || this;
|
|
3147
3147
|
return a.code = r, a.originalMessage = i, a;
|
|
@@ -3150,48 +3150,48 @@ var St = (
|
|
|
3150
3150
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3151
3151
|
}, t;
|
|
3152
3152
|
}(Error)
|
|
3153
|
-
),
|
|
3153
|
+
), An = (
|
|
3154
3154
|
/** @class */
|
|
3155
3155
|
function(e) {
|
|
3156
|
-
|
|
3156
|
+
St(t, e);
|
|
3157
3157
|
function t(n, r, i, a) {
|
|
3158
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3158
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Xe.INVALID_VALUE, a) || this;
|
|
3159
3159
|
}
|
|
3160
3160
|
return t;
|
|
3161
|
-
}(
|
|
3162
|
-
),
|
|
3161
|
+
}(Ht)
|
|
3162
|
+
), Ri = (
|
|
3163
3163
|
/** @class */
|
|
3164
3164
|
function(e) {
|
|
3165
|
-
|
|
3165
|
+
St(t, e);
|
|
3166
3166
|
function t(n, r, i) {
|
|
3167
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3167
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Xe.INVALID_VALUE, i) || this;
|
|
3168
3168
|
}
|
|
3169
3169
|
return t;
|
|
3170
|
-
}(
|
|
3171
|
-
),
|
|
3170
|
+
}(Ht)
|
|
3171
|
+
), ki = (
|
|
3172
3172
|
/** @class */
|
|
3173
3173
|
function(e) {
|
|
3174
|
-
|
|
3174
|
+
St(t, e);
|
|
3175
3175
|
function t(n, r) {
|
|
3176
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3176
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Xe.MISSING_VALUE, r) || this;
|
|
3177
3177
|
}
|
|
3178
3178
|
return t;
|
|
3179
|
-
}(
|
|
3179
|
+
}(Ht)
|
|
3180
3180
|
), q;
|
|
3181
3181
|
(function(e) {
|
|
3182
3182
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3183
3183
|
})(q || (q = {}));
|
|
3184
|
-
function
|
|
3184
|
+
function Di(e) {
|
|
3185
3185
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3186
3186
|
var r = t[t.length - 1];
|
|
3187
3187
|
return !r || r.type !== q.literal || n.type !== q.literal ? t.push(n) : r.value += n.value, t;
|
|
3188
3188
|
}, []);
|
|
3189
3189
|
}
|
|
3190
|
-
function
|
|
3190
|
+
function Mi(e) {
|
|
3191
3191
|
return typeof e == "function";
|
|
3192
3192
|
}
|
|
3193
|
-
function
|
|
3194
|
-
if (e.length === 1 &&
|
|
3193
|
+
function vt(e, t, n, r, i, a, o) {
|
|
3194
|
+
if (e.length === 1 && bn(e[0]))
|
|
3195
3195
|
return [
|
|
3196
3196
|
{
|
|
3197
3197
|
type: q.literal,
|
|
@@ -3200,14 +3200,14 @@ function yt(e, t, n, r, i, a, o) {
|
|
|
3200
3200
|
];
|
|
3201
3201
|
for (var u = [], s = 0, l = e; s < l.length; s++) {
|
|
3202
3202
|
var c = l[s];
|
|
3203
|
-
if (
|
|
3203
|
+
if (bn(c)) {
|
|
3204
3204
|
u.push({
|
|
3205
3205
|
type: q.literal,
|
|
3206
3206
|
value: c.value
|
|
3207
3207
|
});
|
|
3208
3208
|
continue;
|
|
3209
3209
|
}
|
|
3210
|
-
if (
|
|
3210
|
+
if (oi(c)) {
|
|
3211
3211
|
typeof a == "number" && u.push({
|
|
3212
3212
|
type: q.literal,
|
|
3213
3213
|
value: n.getNumberFormat(t).format(a)
|
|
@@ -3216,44 +3216,44 @@ function yt(e, t, n, r, i, a, o) {
|
|
|
3216
3216
|
}
|
|
3217
3217
|
var d = c.value;
|
|
3218
3218
|
if (!(i && d in i))
|
|
3219
|
-
throw new
|
|
3219
|
+
throw new ki(d, o);
|
|
3220
3220
|
var h = i[d];
|
|
3221
|
-
if (
|
|
3221
|
+
if (ai(c)) {
|
|
3222
3222
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), u.push({
|
|
3223
3223
|
type: typeof h == "string" ? q.literal : q.object,
|
|
3224
3224
|
value: h
|
|
3225
3225
|
});
|
|
3226
3226
|
continue;
|
|
3227
3227
|
}
|
|
3228
|
-
if (
|
|
3229
|
-
var p = typeof c.style == "string" ? r.date[c.style] :
|
|
3228
|
+
if (Yn(c)) {
|
|
3229
|
+
var p = typeof c.style == "string" ? r.date[c.style] : Kt(c.style) ? c.style.parsedOptions : void 0;
|
|
3230
3230
|
u.push({
|
|
3231
3231
|
type: q.literal,
|
|
3232
3232
|
value: n.getDateTimeFormat(t, p).format(h)
|
|
3233
3233
|
});
|
|
3234
3234
|
continue;
|
|
3235
3235
|
}
|
|
3236
|
-
if (
|
|
3237
|
-
var p = typeof c.style == "string" ? r.time[c.style] :
|
|
3236
|
+
if (Jn(c)) {
|
|
3237
|
+
var p = typeof c.style == "string" ? r.time[c.style] : Kt(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3238
3238
|
u.push({
|
|
3239
3239
|
type: q.literal,
|
|
3240
3240
|
value: n.getDateTimeFormat(t, p).format(h)
|
|
3241
3241
|
});
|
|
3242
3242
|
continue;
|
|
3243
3243
|
}
|
|
3244
|
-
if (
|
|
3245
|
-
var p = typeof c.style == "string" ? r.number[c.style] :
|
|
3244
|
+
if (Kn(c)) {
|
|
3245
|
+
var p = typeof c.style == "string" ? r.number[c.style] : nr(c.style) ? c.style.parsedOptions : void 0;
|
|
3246
3246
|
p && p.scale && (h = h * (p.scale || 1)), u.push({
|
|
3247
3247
|
type: q.literal,
|
|
3248
3248
|
value: n.getNumberFormat(t, p).format(h)
|
|
3249
3249
|
});
|
|
3250
3250
|
continue;
|
|
3251
3251
|
}
|
|
3252
|
-
if (
|
|
3252
|
+
if (tr(c)) {
|
|
3253
3253
|
var v = c.children, b = c.value, N = i[b];
|
|
3254
|
-
if (!
|
|
3255
|
-
throw new
|
|
3256
|
-
var _ =
|
|
3254
|
+
if (!Mi(N))
|
|
3255
|
+
throw new Ri(b, "function", o);
|
|
3256
|
+
var _ = vt(v, t, n, r, i, a), O = N(_.map(function(D) {
|
|
3257
3257
|
return D.value;
|
|
3258
3258
|
}));
|
|
3259
3259
|
Array.isArray(O) || (O = [O]), u.push.apply(u, O.map(function(D) {
|
|
@@ -3263,42 +3263,42 @@ function yt(e, t, n, r, i, a, o) {
|
|
|
3263
3263
|
};
|
|
3264
3264
|
}));
|
|
3265
3265
|
}
|
|
3266
|
-
if (
|
|
3266
|
+
if (qn(c)) {
|
|
3267
3267
|
var L = c.options[h] || c.options.other;
|
|
3268
3268
|
if (!L)
|
|
3269
|
-
throw new
|
|
3270
|
-
u.push.apply(u,
|
|
3269
|
+
throw new An(c.value, h, Object.keys(c.options), o);
|
|
3270
|
+
u.push.apply(u, vt(L.value, t, n, r, i));
|
|
3271
3271
|
continue;
|
|
3272
3272
|
}
|
|
3273
|
-
if (
|
|
3273
|
+
if (er(c)) {
|
|
3274
3274
|
var L = c.options["=".concat(h)];
|
|
3275
3275
|
if (!L) {
|
|
3276
3276
|
if (!Intl.PluralRules)
|
|
3277
|
-
throw new
|
|
3277
|
+
throw new Ht(`Intl.PluralRules is not available in this environment.
|
|
3278
3278
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3279
|
-
`,
|
|
3279
|
+
`, Xe.MISSING_INTL_API, o);
|
|
3280
3280
|
var ae = n.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3281
3281
|
L = c.options[ae] || c.options.other;
|
|
3282
3282
|
}
|
|
3283
3283
|
if (!L)
|
|
3284
|
-
throw new
|
|
3285
|
-
u.push.apply(u,
|
|
3284
|
+
throw new An(c.value, h, Object.keys(c.options), o);
|
|
3285
|
+
u.push.apply(u, vt(L.value, t, n, r, i, h - (c.offset || 0)));
|
|
3286
3286
|
continue;
|
|
3287
3287
|
}
|
|
3288
3288
|
}
|
|
3289
|
-
return
|
|
3289
|
+
return Di(u);
|
|
3290
3290
|
}
|
|
3291
|
-
function
|
|
3291
|
+
function Fi(e, t) {
|
|
3292
3292
|
return t ? pe(pe(pe({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3293
3293
|
return n[r] = pe(pe({}, e[r]), t[r] || {}), n;
|
|
3294
3294
|
}, {})) : e;
|
|
3295
3295
|
}
|
|
3296
|
-
function
|
|
3296
|
+
function Ui(e, t) {
|
|
3297
3297
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3298
|
-
return n[r] =
|
|
3298
|
+
return n[r] = Fi(e[r], t[r]), n;
|
|
3299
3299
|
}, pe({}, e)) : e;
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function $t(e) {
|
|
3302
3302
|
return {
|
|
3303
3303
|
create: function() {
|
|
3304
3304
|
return {
|
|
@@ -3312,39 +3312,39 @@ function Gt(e) {
|
|
|
3312
3312
|
}
|
|
3313
3313
|
};
|
|
3314
3314
|
}
|
|
3315
|
-
function
|
|
3315
|
+
function Vi(e) {
|
|
3316
3316
|
return e === void 0 && (e = {
|
|
3317
3317
|
number: {},
|
|
3318
3318
|
dateTime: {},
|
|
3319
3319
|
pluralRules: {}
|
|
3320
3320
|
}), {
|
|
3321
|
-
getNumberFormat:
|
|
3321
|
+
getNumberFormat: Ut(function() {
|
|
3322
3322
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3323
3323
|
n[r] = arguments[r];
|
|
3324
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3324
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ft([void 0], n, !1)))();
|
|
3325
3325
|
}, {
|
|
3326
|
-
cache:
|
|
3327
|
-
strategy:
|
|
3326
|
+
cache: $t(e.number),
|
|
3327
|
+
strategy: Vt.variadic
|
|
3328
3328
|
}),
|
|
3329
|
-
getDateTimeFormat:
|
|
3329
|
+
getDateTimeFormat: Ut(function() {
|
|
3330
3330
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3331
3331
|
n[r] = arguments[r];
|
|
3332
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3332
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ft([void 0], n, !1)))();
|
|
3333
3333
|
}, {
|
|
3334
|
-
cache:
|
|
3335
|
-
strategy:
|
|
3334
|
+
cache: $t(e.dateTime),
|
|
3335
|
+
strategy: Vt.variadic
|
|
3336
3336
|
}),
|
|
3337
|
-
getPluralRules:
|
|
3337
|
+
getPluralRules: Ut(function() {
|
|
3338
3338
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3339
3339
|
n[r] = arguments[r];
|
|
3340
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3340
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ft([void 0], n, !1)))();
|
|
3341
3341
|
}, {
|
|
3342
|
-
cache:
|
|
3343
|
-
strategy:
|
|
3342
|
+
cache: $t(e.pluralRules),
|
|
3343
|
+
strategy: Vt.variadic
|
|
3344
3344
|
})
|
|
3345
3345
|
};
|
|
3346
3346
|
}
|
|
3347
|
-
var
|
|
3347
|
+
var Gi = (
|
|
3348
3348
|
/** @class */
|
|
3349
3349
|
function() {
|
|
3350
3350
|
function e(t, n, r, i) {
|
|
@@ -3363,7 +3363,7 @@ var Vi = (
|
|
|
3363
3363
|
}, []);
|
|
3364
3364
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3365
3365
|
}, this.formatToParts = function(s) {
|
|
3366
|
-
return
|
|
3366
|
+
return vt(a.ast, a.locales, a.formatters, a.formats, s, void 0, a.message);
|
|
3367
3367
|
}, this.resolvedOptions = function() {
|
|
3368
3368
|
var s;
|
|
3369
3369
|
return {
|
|
@@ -3376,13 +3376,13 @@ var Vi = (
|
|
|
3376
3376
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3377
3377
|
var o = i || {};
|
|
3378
3378
|
o.formatters;
|
|
3379
|
-
var u =
|
|
3379
|
+
var u = Yr(o, ["formatters"]);
|
|
3380
3380
|
this.ast = e.__parse(t, pe(pe({}, u), { locale: this.resolvedLocale }));
|
|
3381
3381
|
} else
|
|
3382
3382
|
this.ast = t;
|
|
3383
3383
|
if (!Array.isArray(this.ast))
|
|
3384
3384
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3385
|
-
this.formats =
|
|
3385
|
+
this.formats = Ui(e.formats, r), this.formatters = i && i.formatters || Vi(this.formatterCache);
|
|
3386
3386
|
}
|
|
3387
3387
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3388
3388
|
get: function() {
|
|
@@ -3395,7 +3395,7 @@ var Vi = (
|
|
|
3395
3395
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3396
3396
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3397
3397
|
}
|
|
3398
|
-
}, e.__parse =
|
|
3398
|
+
}, e.__parse = Oi, e.formats = {
|
|
3399
3399
|
number: {
|
|
3400
3400
|
integer: {
|
|
3401
3401
|
maximumFractionDigits: 0
|
|
@@ -3456,7 +3456,7 @@ var Vi = (
|
|
|
3456
3456
|
}, e;
|
|
3457
3457
|
}()
|
|
3458
3458
|
);
|
|
3459
|
-
function
|
|
3459
|
+
function $i(e, t) {
|
|
3460
3460
|
if (t == null)
|
|
3461
3461
|
return;
|
|
3462
3462
|
if (t in e)
|
|
@@ -3477,92 +3477,92 @@ function Gi(e, t) {
|
|
|
3477
3477
|
r = void 0;
|
|
3478
3478
|
return r;
|
|
3479
3479
|
}
|
|
3480
|
-
const
|
|
3480
|
+
const we = {}, ji = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), cr = (e, t) => {
|
|
3481
3481
|
if (t == null)
|
|
3482
3482
|
return;
|
|
3483
|
-
if (t in
|
|
3484
|
-
return
|
|
3485
|
-
const n =
|
|
3483
|
+
if (t in we && e in we[t])
|
|
3484
|
+
return we[t][e];
|
|
3485
|
+
const n = Pt(t);
|
|
3486
3486
|
for (let r = 0; r < n.length; r++) {
|
|
3487
|
-
const i = n[r], a =
|
|
3487
|
+
const i = n[r], a = Wi(i, e);
|
|
3488
3488
|
if (a)
|
|
3489
|
-
return
|
|
3489
|
+
return ji(e, t, a);
|
|
3490
3490
|
}
|
|
3491
3491
|
};
|
|
3492
|
-
let
|
|
3493
|
-
const
|
|
3494
|
-
function
|
|
3495
|
-
return
|
|
3492
|
+
let cn;
|
|
3493
|
+
const Ze = Bt({});
|
|
3494
|
+
function Xi(e) {
|
|
3495
|
+
return cn[e] || null;
|
|
3496
3496
|
}
|
|
3497
|
-
function
|
|
3498
|
-
return e in
|
|
3497
|
+
function hr(e) {
|
|
3498
|
+
return e in cn;
|
|
3499
3499
|
}
|
|
3500
|
-
function
|
|
3501
|
-
if (!
|
|
3500
|
+
function Wi(e, t) {
|
|
3501
|
+
if (!hr(e))
|
|
3502
3502
|
return null;
|
|
3503
|
-
const n =
|
|
3504
|
-
return
|
|
3503
|
+
const n = Xi(e);
|
|
3504
|
+
return $i(n, t);
|
|
3505
3505
|
}
|
|
3506
|
-
function
|
|
3506
|
+
function zi(e) {
|
|
3507
3507
|
if (e == null)
|
|
3508
3508
|
return;
|
|
3509
|
-
const t =
|
|
3509
|
+
const t = Pt(e);
|
|
3510
3510
|
for (let n = 0; n < t.length; n++) {
|
|
3511
3511
|
const r = t[n];
|
|
3512
|
-
if (
|
|
3512
|
+
if (hr(r))
|
|
3513
3513
|
return r;
|
|
3514
3514
|
}
|
|
3515
3515
|
}
|
|
3516
|
-
function
|
|
3517
|
-
delete
|
|
3516
|
+
function fr(e, ...t) {
|
|
3517
|
+
delete we[e], Ze.update((n) => (n[e] = Kr.all([n[e] || {}, ...t]), n));
|
|
3518
3518
|
}
|
|
3519
|
-
|
|
3520
|
-
[
|
|
3519
|
+
ze(
|
|
3520
|
+
[Ze],
|
|
3521
3521
|
([e]) => Object.keys(e)
|
|
3522
3522
|
);
|
|
3523
|
-
|
|
3524
|
-
const
|
|
3525
|
-
function
|
|
3526
|
-
|
|
3523
|
+
Ze.subscribe((e) => cn = e);
|
|
3524
|
+
const _t = {};
|
|
3525
|
+
function Zi(e, t) {
|
|
3526
|
+
_t[e].delete(t), _t[e].size === 0 && delete _t[e];
|
|
3527
3527
|
}
|
|
3528
|
-
function
|
|
3529
|
-
return
|
|
3528
|
+
function dr(e) {
|
|
3529
|
+
return _t[e];
|
|
3530
3530
|
}
|
|
3531
|
-
function
|
|
3532
|
-
return
|
|
3533
|
-
const n =
|
|
3531
|
+
function Qi(e) {
|
|
3532
|
+
return Pt(e).map((t) => {
|
|
3533
|
+
const n = dr(t);
|
|
3534
3534
|
return [t, n ? [...n] : []];
|
|
3535
3535
|
}).filter(([, t]) => t.length > 0);
|
|
3536
3536
|
}
|
|
3537
|
-
function
|
|
3538
|
-
return e == null ? !1 :
|
|
3537
|
+
function nn(e) {
|
|
3538
|
+
return e == null ? !1 : Pt(e).some(
|
|
3539
3539
|
(t) => {
|
|
3540
3540
|
var n;
|
|
3541
|
-
return (n =
|
|
3541
|
+
return (n = dr(t)) == null ? void 0 : n.size;
|
|
3542
3542
|
}
|
|
3543
3543
|
);
|
|
3544
3544
|
}
|
|
3545
|
-
function
|
|
3545
|
+
function Ki(e, t) {
|
|
3546
3546
|
return Promise.all(
|
|
3547
|
-
t.map((r) => (
|
|
3548
|
-
).then((r) =>
|
|
3549
|
-
}
|
|
3550
|
-
const
|
|
3551
|
-
function
|
|
3552
|
-
if (!
|
|
3553
|
-
return e in
|
|
3554
|
-
const t =
|
|
3555
|
-
return
|
|
3547
|
+
t.map((r) => (Zi(e, r), r().then((i) => i.default || i)))
|
|
3548
|
+
).then((r) => fr(e, ...r));
|
|
3549
|
+
}
|
|
3550
|
+
const et = {};
|
|
3551
|
+
function pr(e) {
|
|
3552
|
+
if (!nn(e))
|
|
3553
|
+
return e in et ? et[e] : Promise.resolve();
|
|
3554
|
+
const t = Qi(e);
|
|
3555
|
+
return et[e] = Promise.all(
|
|
3556
3556
|
t.map(
|
|
3557
|
-
([n, r]) =>
|
|
3557
|
+
([n, r]) => Ki(n, r)
|
|
3558
3558
|
)
|
|
3559
3559
|
).then(() => {
|
|
3560
|
-
if (
|
|
3561
|
-
return
|
|
3562
|
-
delete
|
|
3563
|
-
}),
|
|
3560
|
+
if (nn(e))
|
|
3561
|
+
return pr(e);
|
|
3562
|
+
delete et[e];
|
|
3563
|
+
}), et[e];
|
|
3564
3564
|
}
|
|
3565
|
-
const
|
|
3565
|
+
const Yi = {
|
|
3566
3566
|
number: {
|
|
3567
3567
|
scientific: { notation: "scientific" },
|
|
3568
3568
|
engineering: { notation: "engineering" },
|
|
@@ -3591,150 +3591,150 @@ const Ki = {
|
|
|
3591
3591
|
timeZoneName: "short"
|
|
3592
3592
|
}
|
|
3593
3593
|
}
|
|
3594
|
-
},
|
|
3594
|
+
}, Ji = {
|
|
3595
3595
|
fallbackLocale: null,
|
|
3596
3596
|
loadingDelay: 200,
|
|
3597
|
-
formats:
|
|
3597
|
+
formats: Yi,
|
|
3598
3598
|
warnOnMissingMessages: !0,
|
|
3599
3599
|
handleMissingMessage: void 0,
|
|
3600
3600
|
ignoreTag: !0
|
|
3601
|
-
},
|
|
3602
|
-
function
|
|
3603
|
-
return
|
|
3601
|
+
}, qi = Ji;
|
|
3602
|
+
function We() {
|
|
3603
|
+
return qi;
|
|
3604
3604
|
}
|
|
3605
|
-
const
|
|
3606
|
-
var
|
|
3605
|
+
const jt = Bt(!1);
|
|
3606
|
+
var ea = Object.defineProperty, ta = Object.defineProperties, na = Object.getOwnPropertyDescriptors, Cn = Object.getOwnPropertySymbols, ra = Object.prototype.hasOwnProperty, ia = Object.prototype.propertyIsEnumerable, Tn = (e, t, n) => t in e ? ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, aa = (e, t) => {
|
|
3607
3607
|
for (var n in t || (t = {}))
|
|
3608
|
-
|
|
3609
|
-
if (
|
|
3610
|
-
for (var n of
|
|
3611
|
-
|
|
3608
|
+
ra.call(t, n) && Tn(e, n, t[n]);
|
|
3609
|
+
if (Cn)
|
|
3610
|
+
for (var n of Cn(t))
|
|
3611
|
+
ia.call(t, n) && Tn(e, n, t[n]);
|
|
3612
3612
|
return e;
|
|
3613
|
-
},
|
|
3614
|
-
let
|
|
3615
|
-
const
|
|
3616
|
-
function
|
|
3613
|
+
}, oa = (e, t) => ta(e, na(t));
|
|
3614
|
+
let rn;
|
|
3615
|
+
const At = Bt(null);
|
|
3616
|
+
function Bn(e) {
|
|
3617
3617
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3618
3618
|
}
|
|
3619
|
-
function
|
|
3620
|
-
const n =
|
|
3621
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3619
|
+
function Pt(e, t = We().fallbackLocale) {
|
|
3620
|
+
const n = Bn(e);
|
|
3621
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Bn(t)])] : n;
|
|
3622
3622
|
}
|
|
3623
|
-
function
|
|
3624
|
-
return
|
|
3623
|
+
function Pe() {
|
|
3624
|
+
return rn ?? void 0;
|
|
3625
3625
|
}
|
|
3626
|
-
|
|
3627
|
-
|
|
3626
|
+
At.subscribe((e) => {
|
|
3627
|
+
rn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3628
3628
|
});
|
|
3629
|
-
const
|
|
3630
|
-
if (e &&
|
|
3631
|
-
const { loadingDelay: t } =
|
|
3629
|
+
const sa = (e) => {
|
|
3630
|
+
if (e && zi(e) && nn(e)) {
|
|
3631
|
+
const { loadingDelay: t } = We();
|
|
3632
3632
|
let n;
|
|
3633
|
-
return typeof window < "u" &&
|
|
3634
|
-
() =>
|
|
3633
|
+
return typeof window < "u" && Pe() != null && t ? n = window.setTimeout(
|
|
3634
|
+
() => jt.set(!0),
|
|
3635
3635
|
t
|
|
3636
|
-
) :
|
|
3637
|
-
|
|
3636
|
+
) : jt.set(!0), pr(e).then(() => {
|
|
3637
|
+
At.set(e);
|
|
3638
3638
|
}).finally(() => {
|
|
3639
|
-
clearTimeout(n),
|
|
3639
|
+
clearTimeout(n), jt.set(!1);
|
|
3640
3640
|
});
|
|
3641
3641
|
}
|
|
3642
|
-
return
|
|
3643
|
-
},
|
|
3644
|
-
set:
|
|
3645
|
-
}),
|
|
3642
|
+
return At.set(e);
|
|
3643
|
+
}, Ae = oa(aa({}, At), {
|
|
3644
|
+
set: sa
|
|
3645
|
+
}), It = (e) => {
|
|
3646
3646
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3647
3647
|
return (r) => {
|
|
3648
3648
|
const i = JSON.stringify(r);
|
|
3649
3649
|
return i in t ? t[i] : t[i] = e(r);
|
|
3650
3650
|
};
|
|
3651
3651
|
};
|
|
3652
|
-
var
|
|
3652
|
+
var la = Object.defineProperty, Ct = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hn = (e, t) => {
|
|
3653
3653
|
for (var n in t || (t = {}))
|
|
3654
|
-
|
|
3655
|
-
if (
|
|
3656
|
-
for (var n of
|
|
3657
|
-
|
|
3654
|
+
mr.call(t, n) && Sn(e, n, t[n]);
|
|
3655
|
+
if (Ct)
|
|
3656
|
+
for (var n of Ct(t))
|
|
3657
|
+
gr.call(t, n) && Sn(e, n, t[n]);
|
|
3658
3658
|
return e;
|
|
3659
|
-
},
|
|
3659
|
+
}, Qe = (e, t) => {
|
|
3660
3660
|
var n = {};
|
|
3661
3661
|
for (var r in e)
|
|
3662
|
-
|
|
3663
|
-
if (e != null &&
|
|
3664
|
-
for (var r of
|
|
3665
|
-
t.indexOf(r) < 0 &&
|
|
3662
|
+
mr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3663
|
+
if (e != null && Ct)
|
|
3664
|
+
for (var r of Ct(e))
|
|
3665
|
+
t.indexOf(r) < 0 && gr.call(e, r) && (n[r] = e[r]);
|
|
3666
3666
|
return n;
|
|
3667
3667
|
};
|
|
3668
|
-
const
|
|
3669
|
-
const { formats: n } =
|
|
3668
|
+
const at = (e, t) => {
|
|
3669
|
+
const { formats: n } = We();
|
|
3670
3670
|
if (e in n && t in n[e])
|
|
3671
3671
|
return n[e][t];
|
|
3672
3672
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3673
|
-
},
|
|
3673
|
+
}, ua = It(
|
|
3674
3674
|
(e) => {
|
|
3675
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3675
|
+
var t = e, { locale: n, format: r } = t, i = Qe(t, ["locale", "format"]);
|
|
3676
3676
|
if (n == null)
|
|
3677
3677
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3678
|
-
return r && (i =
|
|
3678
|
+
return r && (i = at("number", r)), new Intl.NumberFormat(n, i);
|
|
3679
3679
|
}
|
|
3680
|
-
),
|
|
3680
|
+
), ca = It(
|
|
3681
3681
|
(e) => {
|
|
3682
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3682
|
+
var t = e, { locale: n, format: r } = t, i = Qe(t, ["locale", "format"]);
|
|
3683
3683
|
if (n == null)
|
|
3684
3684
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3685
|
-
return r ? i =
|
|
3685
|
+
return r ? i = at("date", r) : Object.keys(i).length === 0 && (i = at("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3686
3686
|
}
|
|
3687
|
-
),
|
|
3687
|
+
), ha = It(
|
|
3688
3688
|
(e) => {
|
|
3689
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3689
|
+
var t = e, { locale: n, format: r } = t, i = Qe(t, ["locale", "format"]);
|
|
3690
3690
|
if (n == null)
|
|
3691
3691
|
throw new Error(
|
|
3692
3692
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3693
3693
|
);
|
|
3694
|
-
return r ? i =
|
|
3694
|
+
return r ? i = at("time", r) : Object.keys(i).length === 0 && (i = at("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3695
3695
|
}
|
|
3696
|
-
),
|
|
3696
|
+
), fa = (e = {}) => {
|
|
3697
3697
|
var t = e, {
|
|
3698
|
-
locale: n =
|
|
3699
|
-
} = t, r =
|
|
3698
|
+
locale: n = Pe()
|
|
3699
|
+
} = t, r = Qe(t, [
|
|
3700
3700
|
"locale"
|
|
3701
3701
|
]);
|
|
3702
|
-
return
|
|
3703
|
-
},
|
|
3702
|
+
return ua(hn({ locale: n }, r));
|
|
3703
|
+
}, da = (e = {}) => {
|
|
3704
3704
|
var t = e, {
|
|
3705
|
-
locale: n =
|
|
3706
|
-
} = t, r =
|
|
3705
|
+
locale: n = Pe()
|
|
3706
|
+
} = t, r = Qe(t, [
|
|
3707
3707
|
"locale"
|
|
3708
3708
|
]);
|
|
3709
|
-
return
|
|
3710
|
-
},
|
|
3709
|
+
return ca(hn({ locale: n }, r));
|
|
3710
|
+
}, pa = (e = {}) => {
|
|
3711
3711
|
var t = e, {
|
|
3712
|
-
locale: n =
|
|
3713
|
-
} = t, r =
|
|
3712
|
+
locale: n = Pe()
|
|
3713
|
+
} = t, r = Qe(t, [
|
|
3714
3714
|
"locale"
|
|
3715
3715
|
]);
|
|
3716
|
-
return
|
|
3717
|
-
},
|
|
3716
|
+
return ha(hn({ locale: n }, r));
|
|
3717
|
+
}, ma = It(
|
|
3718
3718
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3719
|
-
(e, t =
|
|
3720
|
-
ignoreTag:
|
|
3719
|
+
(e, t = Pe()) => new Gi(e, t, We().formats, {
|
|
3720
|
+
ignoreTag: We().ignoreTag
|
|
3721
3721
|
})
|
|
3722
|
-
),
|
|
3722
|
+
), ga = (e, t = {}) => {
|
|
3723
3723
|
var n, r, i, a;
|
|
3724
3724
|
let o = t;
|
|
3725
3725
|
typeof e == "object" && (o = e, e = o.id);
|
|
3726
3726
|
const {
|
|
3727
3727
|
values: u,
|
|
3728
|
-
locale: s =
|
|
3728
|
+
locale: s = Pe(),
|
|
3729
3729
|
default: l
|
|
3730
3730
|
} = o;
|
|
3731
3731
|
if (s == null)
|
|
3732
3732
|
throw new Error(
|
|
3733
3733
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3734
3734
|
);
|
|
3735
|
-
let c =
|
|
3735
|
+
let c = cr(e, s);
|
|
3736
3736
|
if (!c)
|
|
3737
|
-
c = (a = (i = (r = (n =
|
|
3737
|
+
c = (a = (i = (r = (n = We()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: s, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
|
|
3738
3738
|
else if (typeof c != "string")
|
|
3739
3739
|
return console.warn(
|
|
3740
3740
|
`[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.`
|
|
@@ -3743,7 +3743,7 @@ const it = (e, t) => {
|
|
|
3743
3743
|
return c;
|
|
3744
3744
|
let d = c;
|
|
3745
3745
|
try {
|
|
3746
|
-
d =
|
|
3746
|
+
d = ma(c, s).format(u);
|
|
3747
3747
|
} catch (h) {
|
|
3748
3748
|
h instanceof Error && console.warn(
|
|
3749
3749
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3751,23 +3751,23 @@ const it = (e, t) => {
|
|
|
3751
3751
|
);
|
|
3752
3752
|
}
|
|
3753
3753
|
return d;
|
|
3754
|
-
},
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
function
|
|
3760
|
-
|
|
3761
|
-
n == null && (
|
|
3754
|
+
}, ba = (e, t) => pa(t).format(e), ya = (e, t) => da(t).format(e), va = (e, t) => fa(t).format(e), _a = (e, t = Pe()) => cr(e, t), Ea = ze([Ae, Ze], () => ga);
|
|
3755
|
+
ze([Ae], () => ba);
|
|
3756
|
+
ze([Ae], () => ya);
|
|
3757
|
+
ze([Ae], () => va);
|
|
3758
|
+
ze([Ae, Ze], () => _a);
|
|
3759
|
+
function xa({ withLocale: e, translations: t }) {
|
|
3760
|
+
Ae.subscribe((n) => {
|
|
3761
|
+
n == null && (Ze.set(t), Ae.set(e));
|
|
3762
3762
|
});
|
|
3763
3763
|
}
|
|
3764
|
-
function
|
|
3765
|
-
|
|
3764
|
+
function Hn(e, t) {
|
|
3765
|
+
fr(e, t);
|
|
3766
3766
|
}
|
|
3767
|
-
function
|
|
3768
|
-
|
|
3767
|
+
function wa(e) {
|
|
3768
|
+
Ae.set(e);
|
|
3769
3769
|
}
|
|
3770
|
-
const R =
|
|
3770
|
+
const R = yr(Ea), Pn = {
|
|
3771
3771
|
en: {
|
|
3772
3772
|
vaultExchange: "Vault Exchange",
|
|
3773
3773
|
debitPlaceHolder: "Debit amount",
|
|
@@ -3874,7 +3874,7 @@ const R = br(_a), Hn = {
|
|
|
3874
3874
|
10114: "Kullanıcı hesabı aktif değil.",
|
|
3875
3875
|
10115: "İşlem niyeti bulunamadı."
|
|
3876
3876
|
}
|
|
3877
|
-
},
|
|
3877
|
+
}, Aa = {
|
|
3878
3878
|
"1INCH": "",
|
|
3879
3879
|
AAVE: "",
|
|
3880
3880
|
ADA: "₳",
|
|
@@ -4150,33 +4150,35 @@ const R = br(_a), Hn = {
|
|
|
4150
4150
|
ZMK: "",
|
|
4151
4151
|
ZMW: "",
|
|
4152
4152
|
ZWD: "Z$"
|
|
4153
|
-
},
|
|
4153
|
+
}, Ca = 6e3, Ta = {
|
|
4154
4154
|
InvalidSession: "Invalid session"
|
|
4155
4155
|
}, K = {
|
|
4156
4156
|
BalanceError: "BalanceError",
|
|
4157
4157
|
CheckWalletExchangeError: "CheckWalletExchangeError",
|
|
4158
4158
|
WalletExchangeError: "WalletExchangeError",
|
|
4159
4159
|
CurrenciesError: "CurrenciesError"
|
|
4160
|
-
},
|
|
4160
|
+
}, In = {
|
|
4161
4161
|
ResetVaultWidget: "ResetVaultWidget",
|
|
4162
4162
|
CloseVaultWidget: "CloseVaultWidget"
|
|
4163
|
-
},
|
|
4163
|
+
}, Xt = {
|
|
4164
4164
|
VaultWidgetReset: "VaultWidgetReset",
|
|
4165
4165
|
VaultWidgetClosed: "VaultWidgetClosed",
|
|
4166
4166
|
VaultDropdownToggled: "VaultDropdownToggled"
|
|
4167
|
-
},
|
|
4167
|
+
}, Ln = {
|
|
4168
4168
|
Real: "Real",
|
|
4169
4169
|
Vault: "Vault"
|
|
4170
4170
|
}, Ee = {
|
|
4171
4171
|
success: "success",
|
|
4172
4172
|
error: "error"
|
|
4173
|
-
},
|
|
4173
|
+
}, Ba = String(Number.MAX_SAFE_INTEGER) + 1, gt = {
|
|
4174
4174
|
ArrowDown: "ArrowDown",
|
|
4175
4175
|
ArrowUp: "ArrowUp",
|
|
4176
4176
|
Enter: "Enter",
|
|
4177
4177
|
Escape: "Escape"
|
|
4178
|
+
}, xe = {
|
|
4179
|
+
true: "true"
|
|
4178
4180
|
};
|
|
4179
|
-
function
|
|
4181
|
+
function Sa(e, t) {
|
|
4180
4182
|
let n;
|
|
4181
4183
|
return function(...r) {
|
|
4182
4184
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -4184,14 +4186,14 @@ function Ba(e, t) {
|
|
|
4184
4186
|
}, t);
|
|
4185
4187
|
};
|
|
4186
4188
|
}
|
|
4187
|
-
const
|
|
4189
|
+
const Nn = (e, t = null, n = 2) => {
|
|
4188
4190
|
try {
|
|
4189
4191
|
return JSON.stringify(e, t, n);
|
|
4190
4192
|
} catch (r) {
|
|
4191
4193
|
return console.warn("Failed to stringify:", r), null;
|
|
4192
4194
|
}
|
|
4193
4195
|
};
|
|
4194
|
-
function
|
|
4196
|
+
function Ha(e) {
|
|
4195
4197
|
const t = (n) => {
|
|
4196
4198
|
e.contains(n.target) || e.dispatchEvent(new CustomEvent("outclick"));
|
|
4197
4199
|
};
|
|
@@ -4201,14 +4203,14 @@ function Sa(e) {
|
|
|
4201
4203
|
}
|
|
4202
4204
|
};
|
|
4203
4205
|
}
|
|
4204
|
-
function
|
|
4205
|
-
|
|
4206
|
+
function Pa(e) {
|
|
4207
|
+
on(e, "svelte-1fe9nk9", ".selectWrapper.svelte-1fe9nk9.svelte-1fe9nk9{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-1fe9nk9.svelte-1fe9nk9{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;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));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}.label.svelte-1fe9nk9.svelte-1fe9nk9{display:flex;align-items:center}.selectDropdown.svelte-1fe9nk9.svelte-1fe9nk9{position:absolute;top:calc(100% + 2px);left:0;right:0;display:flex;flex-direction:column;gap:4px;max-height:200px;overflow-y:auto;scrollbar-width:thin;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-1fe9nk9 li.svelte-1fe9nk9{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-1fe9nk9 li.svelte-1fe9nk9:hover,.selectDropdown.svelte-1fe9nk9 li.active.svelte-1fe9nk9{background:var(--emw--selected-option, var(--emw-w-color-gray-150, #f0f0f0))}.symbol.svelte-1fe9nk9.svelte-1fe9nk9{display:inline-flex;width:1rem;height:1rem;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw-typography, var(--emw-w-color-gray-450, #595959));font-size:var(--emw--font-size-small, 12px);color:var(--emw--button-typography, var(--emw--color-white, #fff))}");
|
|
4206
4208
|
}
|
|
4207
|
-
function
|
|
4209
|
+
function On(e, t, n) {
|
|
4208
4210
|
const r = e.slice();
|
|
4209
4211
|
return r[14] = t[n], r[16] = n, r;
|
|
4210
4212
|
}
|
|
4211
|
-
function
|
|
4213
|
+
function Rn(e) {
|
|
4212
4214
|
let t, n = (
|
|
4213
4215
|
/*selected*/
|
|
4214
4216
|
(e[0]?.symbol || "") + ""
|
|
@@ -4230,13 +4232,13 @@ function On(e) {
|
|
|
4230
4232
|
}
|
|
4231
4233
|
};
|
|
4232
4234
|
}
|
|
4233
|
-
function
|
|
4234
|
-
let t, n =
|
|
4235
|
+
function kn(e) {
|
|
4236
|
+
let t, n = xt(
|
|
4235
4237
|
/*options*/
|
|
4236
4238
|
e[1]
|
|
4237
4239
|
), r = [];
|
|
4238
4240
|
for (let i = 0; i < n.length; i += 1)
|
|
4239
|
-
r[i] =
|
|
4241
|
+
r[i] = Dn(On(e, n, i));
|
|
4240
4242
|
return {
|
|
4241
4243
|
c() {
|
|
4242
4244
|
t = E("ul");
|
|
@@ -4253,14 +4255,14 @@ function Rn(e) {
|
|
|
4253
4255
|
p(i, a) {
|
|
4254
4256
|
if (a & /*options, selected, activeIndex, handleChange*/
|
|
4255
4257
|
547) {
|
|
4256
|
-
n =
|
|
4258
|
+
n = xt(
|
|
4257
4259
|
/*options*/
|
|
4258
4260
|
i[1]
|
|
4259
4261
|
);
|
|
4260
4262
|
let o;
|
|
4261
4263
|
for (o = 0; o < n.length; o += 1) {
|
|
4262
|
-
const u =
|
|
4263
|
-
r[o] ? r[o].p(u, a) : (r[o] =
|
|
4264
|
+
const u = On(i, n, o);
|
|
4265
|
+
r[o] ? r[o].p(u, a) : (r[o] = Dn(u), r[o].c(), r[o].m(t, null));
|
|
4264
4266
|
}
|
|
4265
4267
|
for (; o < r.length; o += 1)
|
|
4266
4268
|
r[o].d(1);
|
|
@@ -4268,11 +4270,11 @@ function Rn(e) {
|
|
|
4268
4270
|
}
|
|
4269
4271
|
},
|
|
4270
4272
|
d(i) {
|
|
4271
|
-
i && C(t),
|
|
4273
|
+
i && C(t), Xn(r, i), e[13](null);
|
|
4272
4274
|
}
|
|
4273
4275
|
};
|
|
4274
4276
|
}
|
|
4275
|
-
function
|
|
4277
|
+
function Dn(e) {
|
|
4276
4278
|
let t, n, r = (
|
|
4277
4279
|
/*option*/
|
|
4278
4280
|
e[14]?.symbol + ""
|
|
@@ -4298,9 +4300,9 @@ function kn(e) {
|
|
|
4298
4300
|
},
|
|
4299
4301
|
m(h, p) {
|
|
4300
4302
|
T(h, t, p), y(t, n), y(n, i), y(t, a), y(t, u), y(t, s), c || (d = [
|
|
4301
|
-
ie(t, "keydown",
|
|
4303
|
+
ie(t, "keydown", La),
|
|
4302
4304
|
ie(t, "click", function() {
|
|
4303
|
-
|
|
4305
|
+
ot(
|
|
4304
4306
|
/*handleChange*/
|
|
4305
4307
|
e[9](
|
|
4306
4308
|
/*option*/
|
|
@@ -4343,7 +4345,7 @@ function kn(e) {
|
|
|
4343
4345
|
}
|
|
4344
4346
|
};
|
|
4345
4347
|
}
|
|
4346
|
-
function
|
|
4348
|
+
function Ia(e) {
|
|
4347
4349
|
let t, n, r, i, a = (
|
|
4348
4350
|
/*selected*/
|
|
4349
4351
|
(e[0]?.currency || /*placeholder*/
|
|
@@ -4351,10 +4353,10 @@ function Pa(e) {
|
|
|
4351
4353
|
), o, u, s, l, c, d, h = (
|
|
4352
4354
|
/*selected*/
|
|
4353
4355
|
e[0]?.symbol && /*withSymbol*/
|
|
4354
|
-
e[
|
|
4356
|
+
e[3] === xe.true && Rn(e)
|
|
4355
4357
|
), p = (
|
|
4356
4358
|
/*open*/
|
|
4357
|
-
e[7] &&
|
|
4359
|
+
e[7] && kn(e)
|
|
4358
4360
|
);
|
|
4359
4361
|
return {
|
|
4360
4362
|
c() {
|
|
@@ -4369,7 +4371,7 @@ function Pa(e) {
|
|
|
4369
4371
|
/*open*/
|
|
4370
4372
|
e[7]
|
|
4371
4373
|
), m(n, "aria-controls", "custom-select"), m(n, "tabindex", "0"), n.disabled = /*disabled*/
|
|
4372
|
-
e[
|
|
4374
|
+
e[4], m(t, "class", "selectWrapper svelte-1fe9nk9");
|
|
4373
4375
|
},
|
|
4374
4376
|
m(v, b) {
|
|
4375
4377
|
T(v, t, b), y(t, n), y(n, r), h && h.m(r, null), y(r, i), y(r, o), y(n, u), y(n, s), y(t, l), p && p.m(t, null), c || (d = [
|
|
@@ -4379,11 +4381,11 @@ function Pa(e) {
|
|
|
4379
4381
|
/*handleKeyDown*/
|
|
4380
4382
|
e[11]
|
|
4381
4383
|
),
|
|
4382
|
-
ie(n, "click",
|
|
4384
|
+
ie(n, "click", wr(
|
|
4383
4385
|
/*handleToggleDropdown*/
|
|
4384
4386
|
e[8]
|
|
4385
4387
|
)),
|
|
4386
|
-
|
|
4388
|
+
vr(Ha.call(null, t)),
|
|
4387
4389
|
ie(
|
|
4388
4390
|
t,
|
|
4389
4391
|
"outclick",
|
|
@@ -4395,7 +4397,7 @@ function Pa(e) {
|
|
|
4395
4397
|
p(v, [b]) {
|
|
4396
4398
|
/*selected*/
|
|
4397
4399
|
v[0]?.symbol && /*withSymbol*/
|
|
4398
|
-
v[
|
|
4400
|
+
v[3] === xe.true ? h ? h.p(v, b) : (h = Rn(v), h.c(), h.m(r, i)) : h && (h.d(1), h = null), b & /*selected, placeholder*/
|
|
4399
4401
|
5 && a !== (a = /*selected*/
|
|
4400
4402
|
(v[0]?.currency || /*placeholder*/
|
|
4401
4403
|
v[2]) + "") && te(o, a), b & /*open*/
|
|
@@ -4411,9 +4413,9 @@ function Pa(e) {
|
|
|
4411
4413
|
/*open*/
|
|
4412
4414
|
v[7]
|
|
4413
4415
|
), b & /*disabled*/
|
|
4414
|
-
|
|
4415
|
-
v[
|
|
4416
|
-
v[7] ? p ? p.p(v, b) : (p =
|
|
4416
|
+
16 && (n.disabled = /*disabled*/
|
|
4417
|
+
v[4]), /*open*/
|
|
4418
|
+
v[7] ? p ? p.p(v, b) : (p = kn(v), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
|
|
4417
4419
|
},
|
|
4418
4420
|
i: S,
|
|
4419
4421
|
o: S,
|
|
@@ -4422,9 +4424,9 @@ function Pa(e) {
|
|
|
4422
4424
|
}
|
|
4423
4425
|
};
|
|
4424
4426
|
}
|
|
4425
|
-
const
|
|
4426
|
-
function
|
|
4427
|
-
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = R("select") } = t, {
|
|
4427
|
+
const La = (e) => e.preventDefault();
|
|
4428
|
+
function Na(e, t, n) {
|
|
4429
|
+
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = R("select") } = t, { withSymbol: o = "true" } = t, { disabled: u = !1 } = t, { onChange: s = () => {
|
|
4428
4430
|
} } = t, l = -1, c, d = !1;
|
|
4429
4431
|
const h = () => {
|
|
4430
4432
|
r.length !== 0 && (n(7, d = !d), d && (n(5, l = r.findIndex((_) => _?.currency === i?.currency)), setTimeout(() => c?.focus(), 0)));
|
|
@@ -4433,15 +4435,15 @@ function La(e, t, n) {
|
|
|
4433
4435
|
}, v = () => {
|
|
4434
4436
|
n(7, d = !1);
|
|
4435
4437
|
}, b = (_) => {
|
|
4436
|
-
d && (_.key ===
|
|
4438
|
+
d && (_.key === gt.ArrowDown ? (_.preventDefault(), n(5, l = (l + 1) % r.length)) : _.key === gt.ArrowUp ? (_.preventDefault(), n(5, l = (l - 1 + r.length) % r.length)) : _.key === gt.Enter ? (_.preventDefault(), p(i, l)()) : _.key === gt.Escape && n(7, d = !1));
|
|
4437
4439
|
};
|
|
4438
4440
|
function N(_) {
|
|
4439
|
-
|
|
4441
|
+
Ue[_ ? "unshift" : "push"](() => {
|
|
4440
4442
|
c = _, n(6, c);
|
|
4441
4443
|
});
|
|
4442
4444
|
}
|
|
4443
4445
|
return e.$$set = (_) => {
|
|
4444
|
-
"options" in _ && n(1, r = _.options), "selected" in _ && n(0, i = _.selected), "placeholder" in _ && n(2, a = _.placeholder), "
|
|
4446
|
+
"options" in _ && n(1, r = _.options), "selected" in _ && n(0, i = _.selected), "placeholder" in _ && n(2, a = _.placeholder), "withSymbol" in _ && n(3, o = _.withSymbol), "disabled" in _ && n(4, u = _.disabled), "onChange" in _ && n(12, s = _.onChange);
|
|
4445
4447
|
}, [
|
|
4446
4448
|
i,
|
|
4447
4449
|
r,
|
|
@@ -4459,23 +4461,23 @@ function La(e, t, n) {
|
|
|
4459
4461
|
N
|
|
4460
4462
|
];
|
|
4461
4463
|
}
|
|
4462
|
-
class
|
|
4464
|
+
class an extends un {
|
|
4463
4465
|
constructor(t) {
|
|
4464
|
-
super(),
|
|
4466
|
+
super(), sn(
|
|
4465
4467
|
this,
|
|
4466
4468
|
t,
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4469
|
+
Na,
|
|
4470
|
+
Ia,
|
|
4471
|
+
Tt,
|
|
4470
4472
|
{
|
|
4471
4473
|
options: 1,
|
|
4472
4474
|
selected: 0,
|
|
4473
4475
|
placeholder: 2,
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
+
withSymbol: 3,
|
|
4477
|
+
disabled: 4,
|
|
4476
4478
|
onChange: 12
|
|
4477
4479
|
},
|
|
4478
|
-
|
|
4480
|
+
Pa
|
|
4479
4481
|
);
|
|
4480
4482
|
}
|
|
4481
4483
|
get options() {
|
|
@@ -4496,17 +4498,17 @@ class rn extends ln {
|
|
|
4496
4498
|
set placeholder(t) {
|
|
4497
4499
|
this.$$set({ placeholder: t }), G();
|
|
4498
4500
|
}
|
|
4499
|
-
get
|
|
4501
|
+
get withSymbol() {
|
|
4500
4502
|
return this.$$.ctx[3];
|
|
4501
4503
|
}
|
|
4502
|
-
set
|
|
4503
|
-
this.$$set({
|
|
4504
|
+
set withSymbol(t) {
|
|
4505
|
+
this.$$set({ withSymbol: t }), G();
|
|
4504
4506
|
}
|
|
4505
|
-
get
|
|
4507
|
+
get disabled() {
|
|
4506
4508
|
return this.$$.ctx[4];
|
|
4507
4509
|
}
|
|
4508
|
-
set
|
|
4509
|
-
this.$$set({
|
|
4510
|
+
set disabled(t) {
|
|
4511
|
+
this.$$set({ disabled: t }), G();
|
|
4510
4512
|
}
|
|
4511
4513
|
get onChange() {
|
|
4512
4514
|
return this.$$.ctx[12];
|
|
@@ -4515,11 +4517,11 @@ class rn extends ln {
|
|
|
4515
4517
|
this.$$set({ onChange: t }), G();
|
|
4516
4518
|
}
|
|
4517
4519
|
}
|
|
4518
|
-
|
|
4519
|
-
function Na(e) {
|
|
4520
|
-
an(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
|
|
4521
|
-
}
|
|
4520
|
+
ln(an, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
|
|
4522
4521
|
function Oa(e) {
|
|
4522
|
+
on(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
|
|
4523
|
+
}
|
|
4524
|
+
function Ra(e) {
|
|
4523
4525
|
let t, n, r = R("balanceUnavailable") + "", i;
|
|
4524
4526
|
return {
|
|
4525
4527
|
c() {
|
|
@@ -4536,20 +4538,20 @@ function Oa(e) {
|
|
|
4536
4538
|
}
|
|
4537
4539
|
};
|
|
4538
4540
|
}
|
|
4539
|
-
class
|
|
4541
|
+
class Lt extends un {
|
|
4540
4542
|
constructor(t) {
|
|
4541
|
-
super(),
|
|
4543
|
+
super(), sn(this, t, null, Ra, Tt, {}, Oa);
|
|
4542
4544
|
}
|
|
4543
4545
|
}
|
|
4544
|
-
|
|
4545
|
-
function
|
|
4546
|
-
an(e, "svelte-vp2pzr", '@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, var(--emw--color-gray-450, #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}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.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, var(--emw--color-red, #ed0909))}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, var(--emw--color-red, #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, var(--emw--color-red, #FF2424))}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, var(--emw--color-primary, #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--font-size-small, 12px);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, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--typography, var(--emw--color-gray-450, #595959));border:2px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, var(--emw--color-gray-450, #595959))}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, var(--emw--color-gray-450, #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}');
|
|
4546
|
+
ln(Lt, {}, [], [], !0);
|
|
4547
|
+
function ka(e) {
|
|
4548
|
+
on(e, "svelte-vp2pzr", '@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, var(--emw--color-gray-450, #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}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.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, var(--emw--color-red, #ed0909))}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, var(--emw--color-red, #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, var(--emw--color-red, #FF2424))}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, var(--emw--color-primary, #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--font-size-small, 12px);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, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--typography, var(--emw--color-gray-450, #595959));border:2px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, var(--emw--color-gray-450, #595959))}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, var(--emw--color-gray-450, #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}');
|
|
4547
4549
|
}
|
|
4548
|
-
function
|
|
4550
|
+
function Mn(e, t, n) {
|
|
4549
4551
|
const r = e.slice();
|
|
4550
4552
|
return r[60] = t[n], r;
|
|
4551
4553
|
}
|
|
4552
|
-
function
|
|
4554
|
+
function Fn(e) {
|
|
4553
4555
|
let t, n, r;
|
|
4554
4556
|
return {
|
|
4555
4557
|
c() {
|
|
@@ -4569,9 +4571,9 @@ function Mn(e) {
|
|
|
4569
4571
|
}
|
|
4570
4572
|
};
|
|
4571
4573
|
}
|
|
4572
|
-
function
|
|
4574
|
+
function Un(e) {
|
|
4573
4575
|
let t, n, r, i;
|
|
4574
|
-
const a = [
|
|
4576
|
+
const a = [Ma, Da], o = [];
|
|
4575
4577
|
function u(s, l) {
|
|
4576
4578
|
return !/*isBalanceFetched*/
|
|
4577
4579
|
s[16] || !/*isCurrenciesFetched*/
|
|
@@ -4579,16 +4581,16 @@ function Fn(e) {
|
|
|
4579
4581
|
}
|
|
4580
4582
|
return t = u(e), n = o[t] = a[t](e), {
|
|
4581
4583
|
c() {
|
|
4582
|
-
n.c(), r =
|
|
4584
|
+
n.c(), r = xr();
|
|
4583
4585
|
},
|
|
4584
4586
|
m(s, l) {
|
|
4585
4587
|
o[t].m(s, l), T(s, r, l), i = !0;
|
|
4586
4588
|
},
|
|
4587
4589
|
p(s, l) {
|
|
4588
4590
|
let c = t;
|
|
4589
|
-
t = u(s), t === c ? o[t].p(s, l) : (
|
|
4591
|
+
t = u(s), t === c ? o[t].p(s, l) : (Se(), W(o[c], 1, 1, () => {
|
|
4590
4592
|
o[c] = null;
|
|
4591
|
-
}),
|
|
4593
|
+
}), He(), n = o[t], n ? n.p(s, l) : (n = o[t] = a[t](s), n.c()), U(n, 1), n.m(r.parentNode, r));
|
|
4592
4594
|
},
|
|
4593
4595
|
i(s) {
|
|
4594
4596
|
i || (U(n), i = !0);
|
|
@@ -4601,9 +4603,9 @@ function Fn(e) {
|
|
|
4601
4603
|
}
|
|
4602
4604
|
};
|
|
4603
4605
|
}
|
|
4604
|
-
function
|
|
4606
|
+
function Da(e) {
|
|
4605
4607
|
let t, n, r, i;
|
|
4606
|
-
const a = [
|
|
4608
|
+
const a = [Ua, Fa], o = [];
|
|
4607
4609
|
function u(s, l) {
|
|
4608
4610
|
return (
|
|
4609
4611
|
/*fetchResponse*/
|
|
@@ -4619,9 +4621,9 @@ function ka(e) {
|
|
|
4619
4621
|
},
|
|
4620
4622
|
p(s, l) {
|
|
4621
4623
|
let c = n;
|
|
4622
|
-
n = u(s), n === c ? o[n].p(s, l) : (
|
|
4624
|
+
n = u(s), n === c ? o[n].p(s, l) : (Se(), W(o[c], 1, 1, () => {
|
|
4623
4625
|
o[c] = null;
|
|
4624
|
-
}),
|
|
4626
|
+
}), He(), r = o[n], r ? r.p(s, l) : (r = o[n] = a[n](s), r.c()), U(r, 1), r.m(t, null));
|
|
4625
4627
|
},
|
|
4626
4628
|
i(s) {
|
|
4627
4629
|
i || (U(r), i = !0);
|
|
@@ -4634,7 +4636,7 @@ function ka(e) {
|
|
|
4634
4636
|
}
|
|
4635
4637
|
};
|
|
4636
4638
|
}
|
|
4637
|
-
function
|
|
4639
|
+
function Ma(e) {
|
|
4638
4640
|
let t;
|
|
4639
4641
|
return {
|
|
4640
4642
|
c() {
|
|
@@ -4651,7 +4653,7 @@ function Da(e) {
|
|
|
4651
4653
|
}
|
|
4652
4654
|
};
|
|
4653
4655
|
}
|
|
4654
|
-
function
|
|
4656
|
+
function Fa(e) {
|
|
4655
4657
|
let t, n, r = (
|
|
4656
4658
|
/*playerBalance*/
|
|
4657
4659
|
(e[10]?.amount || 0) + ""
|
|
@@ -4680,14 +4682,14 @@ function Ma(e) {
|
|
|
4680
4682
|
}
|
|
4681
4683
|
};
|
|
4682
4684
|
}
|
|
4683
|
-
function
|
|
4685
|
+
function Ua(e) {
|
|
4684
4686
|
let t, n;
|
|
4685
|
-
return t = new
|
|
4687
|
+
return t = new Lt({}), {
|
|
4686
4688
|
c() {
|
|
4687
|
-
|
|
4689
|
+
rt(t.$$.fragment);
|
|
4688
4690
|
},
|
|
4689
4691
|
m(r, i) {
|
|
4690
|
-
|
|
4692
|
+
Ve(t, r, i), n = !0;
|
|
4691
4693
|
},
|
|
4692
4694
|
p: S,
|
|
4693
4695
|
i(r) {
|
|
@@ -4697,13 +4699,13 @@ function Fa(e) {
|
|
|
4697
4699
|
W(t.$$.fragment, r), n = !1;
|
|
4698
4700
|
},
|
|
4699
4701
|
d(r) {
|
|
4700
|
-
|
|
4702
|
+
Ge(t, r);
|
|
4701
4703
|
}
|
|
4702
4704
|
};
|
|
4703
4705
|
}
|
|
4704
|
-
function
|
|
4706
|
+
function Va(e) {
|
|
4705
4707
|
let t, n, r, i, a, o, u, s, l;
|
|
4706
|
-
const c = [$a
|
|
4708
|
+
const c = [ja, $a], d = [];
|
|
4707
4709
|
function h(p, v) {
|
|
4708
4710
|
return (
|
|
4709
4711
|
/*fetchResponse*/
|
|
@@ -4729,9 +4731,9 @@ function Ua(e) {
|
|
|
4729
4731
|
p[13]
|
|
4730
4732
|
);
|
|
4731
4733
|
let b = o;
|
|
4732
|
-
o = h(p), o === b ? d[o].p(p, v) : (
|
|
4734
|
+
o = h(p), o === b ? d[o].p(p, v) : (Se(), W(d[b], 1, 1, () => {
|
|
4733
4735
|
d[b] = null;
|
|
4734
|
-
}),
|
|
4736
|
+
}), He(), u = d[o], u ? u.p(p, v) : (u = d[o] = c[o](p), u.c()), U(u, 1), u.m(a, null)), (!l || v[0] & /*validationError*/
|
|
4735
4737
|
8192 && s !== (s = "balanceContainer " + /*validationError*/
|
|
4736
4738
|
(p[13] ? "hasError" : ""))) && m(t, "class", s);
|
|
4737
4739
|
},
|
|
@@ -4746,7 +4748,7 @@ function Ua(e) {
|
|
|
4746
4748
|
}
|
|
4747
4749
|
};
|
|
4748
4750
|
}
|
|
4749
|
-
function
|
|
4751
|
+
function Ga(e) {
|
|
4750
4752
|
let t;
|
|
4751
4753
|
return {
|
|
4752
4754
|
c() {
|
|
@@ -4763,7 +4765,7 @@ function Va(e) {
|
|
|
4763
4765
|
}
|
|
4764
4766
|
};
|
|
4765
4767
|
}
|
|
4766
|
-
function
|
|
4768
|
+
function $a(e) {
|
|
4767
4769
|
let t, n, r = (
|
|
4768
4770
|
/*selectedCurrencyFrom*/
|
|
4769
4771
|
(e[5]?.amount || 0) + ""
|
|
@@ -4792,14 +4794,14 @@ function Ga(e) {
|
|
|
4792
4794
|
}
|
|
4793
4795
|
};
|
|
4794
4796
|
}
|
|
4795
|
-
function
|
|
4797
|
+
function ja(e) {
|
|
4796
4798
|
let t, n;
|
|
4797
|
-
return t = new
|
|
4799
|
+
return t = new Lt({}), {
|
|
4798
4800
|
c() {
|
|
4799
|
-
|
|
4801
|
+
rt(t.$$.fragment);
|
|
4800
4802
|
},
|
|
4801
4803
|
m(r, i) {
|
|
4802
|
-
|
|
4804
|
+
Ve(t, r, i), n = !0;
|
|
4803
4805
|
},
|
|
4804
4806
|
p: S,
|
|
4805
4807
|
i(r) {
|
|
@@ -4809,13 +4811,13 @@ function $a(e) {
|
|
|
4809
4811
|
W(t.$$.fragment, r), n = !1;
|
|
4810
4812
|
},
|
|
4811
4813
|
d(r) {
|
|
4812
|
-
|
|
4814
|
+
Ge(t, r);
|
|
4813
4815
|
}
|
|
4814
4816
|
};
|
|
4815
4817
|
}
|
|
4816
|
-
function
|
|
4818
|
+
function Xa(e) {
|
|
4817
4819
|
let t, n, r, i;
|
|
4818
|
-
const a = [
|
|
4820
|
+
const a = [Za, za], o = [];
|
|
4819
4821
|
function u(s, l) {
|
|
4820
4822
|
return (
|
|
4821
4823
|
/*fetchResponse*/
|
|
@@ -4831,9 +4833,9 @@ function ja(e) {
|
|
|
4831
4833
|
},
|
|
4832
4834
|
p(s, l) {
|
|
4833
4835
|
let c = n;
|
|
4834
|
-
n = u(s), n === c ? o[n].p(s, l) : (
|
|
4836
|
+
n = u(s), n === c ? o[n].p(s, l) : (Se(), W(o[c], 1, 1, () => {
|
|
4835
4837
|
o[c] = null;
|
|
4836
|
-
}),
|
|
4838
|
+
}), He(), r = o[n], r ? r.p(s, l) : (r = o[n] = a[n](s), r.c()), U(r, 1), r.m(t, null));
|
|
4837
4839
|
},
|
|
4838
4840
|
i(s) {
|
|
4839
4841
|
i || (U(r), i = !0);
|
|
@@ -4846,7 +4848,7 @@ function ja(e) {
|
|
|
4846
4848
|
}
|
|
4847
4849
|
};
|
|
4848
4850
|
}
|
|
4849
|
-
function
|
|
4851
|
+
function Wa(e) {
|
|
4850
4852
|
let t;
|
|
4851
4853
|
return {
|
|
4852
4854
|
c() {
|
|
@@ -4863,7 +4865,7 @@ function Xa(e) {
|
|
|
4863
4865
|
}
|
|
4864
4866
|
};
|
|
4865
4867
|
}
|
|
4866
|
-
function
|
|
4868
|
+
function za(e) {
|
|
4867
4869
|
let t, n, r = (
|
|
4868
4870
|
/*selectedCurrencyTo*/
|
|
4869
4871
|
(e[6]?.amount || 0) + ""
|
|
@@ -4892,14 +4894,14 @@ function Wa(e) {
|
|
|
4892
4894
|
}
|
|
4893
4895
|
};
|
|
4894
4896
|
}
|
|
4895
|
-
function
|
|
4897
|
+
function Za(e) {
|
|
4896
4898
|
let t, n;
|
|
4897
|
-
return t = new
|
|
4899
|
+
return t = new Lt({}), {
|
|
4898
4900
|
c() {
|
|
4899
|
-
|
|
4901
|
+
rt(t.$$.fragment);
|
|
4900
4902
|
},
|
|
4901
4903
|
m(r, i) {
|
|
4902
|
-
|
|
4904
|
+
Ve(t, r, i), n = !0;
|
|
4903
4905
|
},
|
|
4904
4906
|
p: S,
|
|
4905
4907
|
i(r) {
|
|
@@ -4909,20 +4911,20 @@ function za(e) {
|
|
|
4909
4911
|
W(t.$$.fragment, r), n = !1;
|
|
4910
4912
|
},
|
|
4911
4913
|
d(r) {
|
|
4912
|
-
|
|
4914
|
+
Ge(t, r);
|
|
4913
4915
|
}
|
|
4914
4916
|
};
|
|
4915
4917
|
}
|
|
4916
|
-
function
|
|
4917
|
-
let t, n, r, i, a, o, u, s, l, c, d =
|
|
4918
|
+
function Vn(e) {
|
|
4919
|
+
let t, n, r, i, a, o, u, s, l, c, d = xt(
|
|
4918
4920
|
/*dropDownVaults*/
|
|
4919
4921
|
e[19]
|
|
4920
4922
|
), h = [];
|
|
4921
4923
|
for (let p = 0; p < d.length; p += 1)
|
|
4922
|
-
h[p] =
|
|
4924
|
+
h[p] = Gn(Mn(e, d, p));
|
|
4923
4925
|
return {
|
|
4924
4926
|
c() {
|
|
4925
|
-
t = E("div"), n = E("button"), r =
|
|
4927
|
+
t = E("div"), n = E("button"), r = dn("svg"), i = dn("path"), o = I(), u = E("div");
|
|
4926
4928
|
for (let p = 0; p < h.length; p += 1)
|
|
4927
4929
|
h[p].c();
|
|
4928
4930
|
m(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"), m(i, "fill", "currentColor"), m(r, "class", "vaultToggleIcon"), m(r, "width", "12"), m(r, "height", "7"), m(r, "viewBox", "0 0 12 7"), m(r, "fill", "currentColor"), m(r, "xmlns", "http://www.w3.org/2000/svg"), m(n, "type", "button"), m(n, "class", a = "vaultToggleButton " + /*isVaultDropDownToggled*/
|
|
@@ -4948,14 +4950,14 @@ function Un(e) {
|
|
|
4948
4950
|
(p[15] && /*dropDownVaults*/
|
|
4949
4951
|
p[19].length > 0 ? "active" : "")) && m(n, "class", a), v[0] & /*dropDownVaults*/
|
|
4950
4952
|
524288) {
|
|
4951
|
-
d =
|
|
4953
|
+
d = xt(
|
|
4952
4954
|
/*dropDownVaults*/
|
|
4953
4955
|
p[19]
|
|
4954
4956
|
);
|
|
4955
4957
|
let b;
|
|
4956
4958
|
for (b = 0; b < d.length; b += 1) {
|
|
4957
|
-
const N =
|
|
4958
|
-
h[b] ? h[b].p(N, v) : (h[b] =
|
|
4959
|
+
const N = Mn(p, d, b);
|
|
4960
|
+
h[b] ? h[b].p(N, v) : (h[b] = Gn(N), h[b].c(), h[b].m(u, null));
|
|
4959
4961
|
}
|
|
4960
4962
|
for (; b < h.length; b += 1)
|
|
4961
4963
|
h[b].d(1);
|
|
@@ -4967,11 +4969,11 @@ function Un(e) {
|
|
|
4967
4969
|
p[19].length > 0 ? "expanded" : "")) && m(u, "class", s);
|
|
4968
4970
|
},
|
|
4969
4971
|
d(p) {
|
|
4970
|
-
p && C(t),
|
|
4972
|
+
p && C(t), Xn(h, p), l = !1, c();
|
|
4971
4973
|
}
|
|
4972
4974
|
};
|
|
4973
4975
|
}
|
|
4974
|
-
function
|
|
4976
|
+
function Gn(e) {
|
|
4975
4977
|
let t, n, r = (
|
|
4976
4978
|
/*vault*/
|
|
4977
4979
|
e[60]?.currency + ""
|
|
@@ -4998,7 +5000,7 @@ function Vn(e) {
|
|
|
4998
5000
|
}
|
|
4999
5001
|
};
|
|
5000
5002
|
}
|
|
5001
|
-
function
|
|
5003
|
+
function Qa(e) {
|
|
5002
5004
|
let t = `${/*currentFee*/
|
|
5003
5005
|
e[11]?.amount || 0} ${/*currentFee*/
|
|
5004
5006
|
e[11]?.currency || ""}`, n;
|
|
@@ -5020,7 +5022,7 @@ function Za(e) {
|
|
|
5020
5022
|
}
|
|
5021
5023
|
};
|
|
5022
5024
|
}
|
|
5023
|
-
function
|
|
5025
|
+
function Ka(e) {
|
|
5024
5026
|
let t = R("feesUnavailable") + "", n;
|
|
5025
5027
|
return {
|
|
5026
5028
|
c() {
|
|
@@ -5035,21 +5037,21 @@ function Qa(e) {
|
|
|
5035
5037
|
}
|
|
5036
5038
|
};
|
|
5037
5039
|
}
|
|
5038
|
-
function
|
|
5039
|
-
let t, n, r, i, a, o, u, s, l, c, d, h, p, v, b, N, _, O, L, ae, D, ne, oe, ue, $, he,
|
|
5040
|
+
function Ya(e) {
|
|
5041
|
+
let t, n, r, i, a, o, u, s, l, c, d, h, p, v, b, N, _, O, L, ae, D, ne, oe, ue, $, he, Ie, Y, me, Ke, J, j, st, Ye, _e, Le, lt, Ce, Ne, re, ge = R(
|
|
5040
5042
|
/*fetchResponse*/
|
|
5041
5043
|
e[12]?.message || ""
|
|
5042
|
-
) + "",
|
|
5044
|
+
) + "", Je, be, fe, ut, X, Nt = R("exchange") + "", Te, Oe, ee, Re, Ot, Q = (
|
|
5043
5045
|
/*showclosebutton*/
|
|
5044
|
-
e[3] &&
|
|
5046
|
+
e[3] === xe.true && Fn(e)
|
|
5045
5047
|
), V = (
|
|
5046
5048
|
/*showtotalbalance*/
|
|
5047
|
-
e[2] &&
|
|
5049
|
+
e[2] === xe.true && Un(e)
|
|
5048
5050
|
);
|
|
5049
|
-
function
|
|
5051
|
+
function Rt(g) {
|
|
5050
5052
|
e[38](g);
|
|
5051
5053
|
}
|
|
5052
|
-
let
|
|
5054
|
+
let ct = {
|
|
5053
5055
|
withSymbol: (
|
|
5054
5056
|
/*showcurrencysymbol*/
|
|
5055
5057
|
e[4]
|
|
@@ -5067,19 +5069,19 @@ function Ka(e) {
|
|
|
5067
5069
|
)
|
|
5068
5070
|
};
|
|
5069
5071
|
/*selectedCurrencyFrom*/
|
|
5070
|
-
e[5] !== void 0 && (
|
|
5071
|
-
e[5]), b = new
|
|
5072
|
-
const
|
|
5073
|
-
function
|
|
5072
|
+
e[5] !== void 0 && (ct.selected = /*selectedCurrencyFrom*/
|
|
5073
|
+
e[5]), b = new an({ props: ct }), Ue.push(() => mn(b, "selected", Rt));
|
|
5074
|
+
const qe = [Ga, Va], de = [];
|
|
5075
|
+
function ht(g, H) {
|
|
5074
5076
|
return !/*isBalanceFetched*/
|
|
5075
5077
|
g[16] || !/*isCurrenciesFetched*/
|
|
5076
5078
|
g[17] ? 0 : 1;
|
|
5077
5079
|
}
|
|
5078
|
-
O =
|
|
5079
|
-
function
|
|
5080
|
+
O = ht(e), L = de[O] = qe[O](e);
|
|
5081
|
+
function kt(g) {
|
|
5080
5082
|
e[40](g);
|
|
5081
5083
|
}
|
|
5082
|
-
let
|
|
5084
|
+
let ft = {
|
|
5083
5085
|
withSymbol: (
|
|
5084
5086
|
/*showcurrencysymbol*/
|
|
5085
5087
|
e[4]
|
|
@@ -5099,35 +5101,35 @@ function Ka(e) {
|
|
|
5099
5101
|
)
|
|
5100
5102
|
};
|
|
5101
5103
|
/*selectedCurrencyTo*/
|
|
5102
|
-
e[6] !== void 0 && (
|
|
5103
|
-
e[6]), Y = new
|
|
5104
|
-
const
|
|
5104
|
+
e[6] !== void 0 && (ft.selected = /*selectedCurrencyTo*/
|
|
5105
|
+
e[6]), Y = new an({ props: ft }), Ue.push(() => mn(Y, "selected", kt));
|
|
5106
|
+
const dt = [Wa, Xa], f = [];
|
|
5105
5107
|
function x(g, H) {
|
|
5106
5108
|
return !/*isBalanceFetched*/
|
|
5107
5109
|
g[16] || !/*isCurrenciesFetched*/
|
|
5108
5110
|
g[17] ? 0 : 1;
|
|
5109
5111
|
}
|
|
5110
|
-
J = x(e), j = f[J] =
|
|
5112
|
+
J = x(e), j = f[J] = dt[J](e);
|
|
5111
5113
|
let w = (
|
|
5112
5114
|
/*showvaults*/
|
|
5113
|
-
e[1] &&
|
|
5115
|
+
e[1] === xe.true && Vn(e)
|
|
5114
5116
|
);
|
|
5115
5117
|
function A(g, H) {
|
|
5116
5118
|
return (
|
|
5117
5119
|
/*fetchResponse*/
|
|
5118
|
-
g[12]?.source === K.CheckWalletExchangeError ?
|
|
5120
|
+
g[12]?.source === K.CheckWalletExchangeError ? Ka : Qa
|
|
5119
5121
|
);
|
|
5120
5122
|
}
|
|
5121
5123
|
let Z = A(e), se = Z(e);
|
|
5122
5124
|
return {
|
|
5123
5125
|
c() {
|
|
5124
|
-
t = E("div"), Q && Q.c(), n = I(), r = E("div"), i = E("h1"), i.textContent = `${R("vaultExchange")}`, a = I(), V && V.c(), o = I(), u = E("div"), s = E("div"), l = E("p"), l.textContent = `${R("exchangeFrom")}`, c = I(), d = E("div"), h = E("input"), v = I(),
|
|
5126
|
+
t = E("div"), Q && Q.c(), n = I(), r = E("div"), i = E("h1"), i.textContent = `${R("vaultExchange")}`, a = I(), V && V.c(), o = I(), u = E("div"), s = E("div"), l = E("p"), l.textContent = `${R("exchangeFrom")}`, c = I(), d = E("div"), h = E("input"), v = I(), rt(b.$$.fragment), _ = I(), L.c(), ae = I(), D = E("div"), ne = E("p"), ne.textContent = `${R("exchangeTo")}`, oe = I(), ue = E("div"), $ = E("input"), Ie = I(), rt(Y.$$.fragment), Ke = I(), j.c(), st = I(), w && w.c(), Ye = I(), _e = E("div"), Le = E("span"), Le.textContent = `${R("feesIncluded")}`, lt = I(), Ce = E("span"), se.c(), Ne = I(), re = E("div"), Je = I(), be = E("div"), fe = E("button"), fe.textContent = `${R("reset")}`, ut = I(), X = E("button"), Te = z(Nt), m(i, "class", "headerTitle"), m(r, "class", "headerContainer"), m(l, "class", "exchangeHeader"), m(h, "id", "senderInput"), h.disabled = p = !/*session*/
|
|
5125
5127
|
e[0] || !/*isBalanceFetched*/
|
|
5126
5128
|
e[16] || !/*isCurrenciesFetched*/
|
|
5127
5129
|
e[17], m(h, "placeholder", R("debitPlaceHolder")), m(h, "class", "exchangeInput"), m(h, "type", "number"), m(h, "aria-label", "Enter exchange amount"), m(h, "inputmode", "decimal"), m(h, "step", "0.000000000000000001"), m(h, "min", "0"), m(d, "class", "flexingContainerRow"), m(s, "class", "containerExchangeFrom exchangeContainer"), m(ne, "class", "exchangeHeader"), m($, "id", "destinationInput"), $.disabled = he = !/*session*/
|
|
5128
5130
|
e[0] || !/*isBalanceFetched*/
|
|
5129
5131
|
e[16] || !/*isCurrenciesFetched*/
|
|
5130
|
-
e[17], m($, "placeholder", R("creditPlaceHolder")), m($, "class", "exchangeInput"), m($, "type", "number"), $.readOnly = !0, m($, "min", "0"), m(ue, "class", "flexingContainerRow"), m(D, "class", "containerExchangeTo exchangeContainer"), m(u, "class", "exchangesContainer"), m(
|
|
5132
|
+
e[17], m($, "placeholder", R("creditPlaceHolder")), m($, "class", "exchangeInput"), m($, "type", "number"), $.readOnly = !0, m($, "min", "0"), m(ue, "class", "flexingContainerRow"), m(D, "class", "containerExchangeTo exchangeContainer"), m(u, "class", "exchangesContainer"), m(Le, "class", "feesLabel"), m(_e, "class", "feesContainer"), m(re, "class", "notificationsContainer"), le(
|
|
5131
5133
|
re,
|
|
5132
5134
|
"error",
|
|
5133
5135
|
/*fetchResponse*/
|
|
@@ -5137,7 +5139,7 @@ function Ka(e) {
|
|
|
5137
5139
|
"success",
|
|
5138
5140
|
/*fetchResponse*/
|
|
5139
5141
|
e[12]?.type === "success"
|
|
5140
|
-
), m(fe, "class", "resetButton"), m(fe, "type", "button"), m(X, "type", "button"), m(X, "class", "exchangeButton"), X.disabled =
|
|
5142
|
+
), m(fe, "class", "resetButton"), m(fe, "type", "button"), m(X, "type", "button"), m(X, "class", "exchangeButton"), X.disabled = Oe = /*isExchangeDisabled*/
|
|
5141
5143
|
e[14] || /*isExchangePending*/
|
|
5142
5144
|
e[18] || /*inputExchangeFrom*/
|
|
5143
5145
|
e[8] === 0 && !/*selectedCurrencyFrom*/
|
|
@@ -5155,15 +5157,15 @@ function Ka(e) {
|
|
|
5155
5157
|
), m(be, "class", "actionsContainer"), m(t, "class", "playerAccountVault");
|
|
5156
5158
|
},
|
|
5157
5159
|
m(g, H) {
|
|
5158
|
-
T(g, t, H), Q && Q.m(t, null), y(t, n), y(t, r), y(r, i), y(r, a), V && V.m(r, null), y(t, o), y(t, u), y(u, s), y(s, l), y(s, c), y(s, d), y(d, h),
|
|
5160
|
+
T(g, t, H), Q && Q.m(t, null), y(t, n), y(t, r), y(r, i), y(r, a), V && V.m(r, null), y(t, o), y(t, u), y(u, s), y(s, l), y(s, c), y(s, d), y(d, h), pt(
|
|
5159
5161
|
h,
|
|
5160
5162
|
/*inputExchangeFrom*/
|
|
5161
5163
|
e[8]
|
|
5162
|
-
), y(d, v),
|
|
5164
|
+
), y(d, v), Ve(b, d, null), y(s, _), de[O].m(s, null), y(u, ae), y(u, D), y(D, ne), y(D, oe), y(D, ue), y(ue, $), pt(
|
|
5163
5165
|
$,
|
|
5164
5166
|
/*inputExchangeTo*/
|
|
5165
5167
|
e[9]
|
|
5166
|
-
), y(ue,
|
|
5168
|
+
), y(ue, Ie), Ve(Y, ue, null), y(D, Ke), f[J].m(D, null), y(t, st), w && w.m(t, null), y(t, Ye), y(t, _e), y(_e, Le), y(_e, lt), y(_e, Ce), se.m(Ce, null), y(t, Ne), y(t, re), re.innerHTML = ge, y(t, Je), y(t, be), y(be, fe), y(be, ut), y(be, X), y(X, Te), e[41](t), ee = !0, Re || (Ot = [
|
|
5167
5169
|
ie(
|
|
5168
5170
|
h,
|
|
5169
5171
|
"input",
|
|
@@ -5200,21 +5202,21 @@ function Ka(e) {
|
|
|
5200
5202
|
/*handleExchange*/
|
|
5201
5203
|
e[28]
|
|
5202
5204
|
)
|
|
5203
|
-
],
|
|
5205
|
+
], Re = !0);
|
|
5204
5206
|
},
|
|
5205
5207
|
p(g, H) {
|
|
5206
5208
|
/*showclosebutton*/
|
|
5207
|
-
g[3] ? Q ? Q.p(g, H) : (Q =
|
|
5208
|
-
g[2] ? V ? (V.p(g, H), H[0] & /*showtotalbalance*/
|
|
5209
|
-
4 && U(V, 1)) : (V =
|
|
5209
|
+
g[3] === xe.true ? Q ? Q.p(g, H) : (Q = Fn(g), Q.c(), Q.m(t, n)) : Q && (Q.d(1), Q = null), /*showtotalbalance*/
|
|
5210
|
+
g[2] === xe.true ? V ? (V.p(g, H), H[0] & /*showtotalbalance*/
|
|
5211
|
+
4 && U(V, 1)) : (V = Un(g), V.c(), U(V, 1), V.m(r, null)) : V && (Se(), W(V, 1, 1, () => {
|
|
5210
5212
|
V = null;
|
|
5211
|
-
}),
|
|
5213
|
+
}), He()), (!ee || H[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5212
5214
|
196609 && p !== (p = !/*session*/
|
|
5213
5215
|
g[0] || !/*isBalanceFetched*/
|
|
5214
5216
|
g[16] || !/*isCurrenciesFetched*/
|
|
5215
5217
|
g[17])) && (h.disabled = p), H[0] & /*inputExchangeFrom*/
|
|
5216
|
-
256 &&
|
|
5217
|
-
g[8] &&
|
|
5218
|
+
256 && Et(h.value) !== /*inputExchangeFrom*/
|
|
5219
|
+
g[8] && pt(
|
|
5218
5220
|
h,
|
|
5219
5221
|
/*inputExchangeFrom*/
|
|
5220
5222
|
g[8]
|
|
@@ -5229,17 +5231,17 @@ function Ka(e) {
|
|
|
5229
5231
|
1048576 && (M.options = /*optionsFrom*/
|
|
5230
5232
|
g[20]), !N && H[0] & /*selectedCurrencyFrom*/
|
|
5231
5233
|
32 && (N = !0, M.selected = /*selectedCurrencyFrom*/
|
|
5232
|
-
g[5],
|
|
5234
|
+
g[5], pn(() => N = !1)), b.$set(M);
|
|
5233
5235
|
let ye = O;
|
|
5234
|
-
O =
|
|
5236
|
+
O = ht(g), O === ye ? de[O].p(g, H) : (Se(), W(de[ye], 1, 1, () => {
|
|
5235
5237
|
de[ye] = null;
|
|
5236
|
-
}),
|
|
5238
|
+
}), He(), L = de[O], L ? L.p(g, H) : (L = de[O] = qe[O](g), L.c()), U(L, 1), L.m(s, null)), (!ee || H[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5237
5239
|
196609 && he !== (he = !/*session*/
|
|
5238
5240
|
g[0] || !/*isBalanceFetched*/
|
|
5239
5241
|
g[16] || !/*isCurrenciesFetched*/
|
|
5240
5242
|
g[17])) && ($.disabled = he), H[0] & /*inputExchangeTo*/
|
|
5241
|
-
512 &&
|
|
5242
|
-
g[9] &&
|
|
5243
|
+
512 && Et($.value) !== /*inputExchangeTo*/
|
|
5244
|
+
g[9] && pt(
|
|
5243
5245
|
$,
|
|
5244
5246
|
/*inputExchangeTo*/
|
|
5245
5247
|
g[9]
|
|
@@ -5256,12 +5258,12 @@ function Ka(e) {
|
|
|
5256
5258
|
2097152 && (ce.options = /*optionsTo*/
|
|
5257
5259
|
g[21]), !me && H[0] & /*selectedCurrencyTo*/
|
|
5258
5260
|
64 && (me = !0, ce.selected = /*selectedCurrencyTo*/
|
|
5259
|
-
g[6],
|
|
5260
|
-
let
|
|
5261
|
-
J = x(g), J ===
|
|
5262
|
-
f[
|
|
5263
|
-
}),
|
|
5264
|
-
g[1] ? w ? w.p(g, H) : (w =
|
|
5261
|
+
g[6], pn(() => me = !1)), Y.$set(ce);
|
|
5262
|
+
let Dt = J;
|
|
5263
|
+
J = x(g), J === Dt ? f[J].p(g, H) : (Se(), W(f[Dt], 1, 1, () => {
|
|
5264
|
+
f[Dt] = null;
|
|
5265
|
+
}), He(), j = f[J], j ? j.p(g, H) : (j = f[J] = dt[J](g), j.c()), U(j, 1), j.m(D, null)), /*showvaults*/
|
|
5266
|
+
g[1] === xe.true ? w ? w.p(g, H) : (w = Vn(g), w.c(), w.m(t, Ye)) : w && (w.d(1), w = null), Z === (Z = A(g)) && se ? se.p(g, H) : (se.d(1), se = Z(g), se && (se.c(), se.m(Ce, null))), (!ee || H[0] & /*fetchResponse*/
|
|
5265
5267
|
4096) && ge !== (ge = R(
|
|
5266
5268
|
/*fetchResponse*/
|
|
5267
5269
|
g[12]?.message || ""
|
|
@@ -5278,11 +5280,11 @@ function Ka(e) {
|
|
|
5278
5280
|
/*fetchResponse*/
|
|
5279
5281
|
g[12]?.type === "success"
|
|
5280
5282
|
), (!ee || H[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
|
|
5281
|
-
278816 &&
|
|
5283
|
+
278816 && Oe !== (Oe = /*isExchangeDisabled*/
|
|
5282
5284
|
g[14] || /*isExchangePending*/
|
|
5283
5285
|
g[18] || /*inputExchangeFrom*/
|
|
5284
5286
|
g[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5285
|
-
g[5]?.amount)) && (X.disabled =
|
|
5287
|
+
g[5]?.amount)) && (X.disabled = Oe), (!ee || H[0] & /*isExchangeDisabled, isExchangePending*/
|
|
5286
5288
|
278528) && le(
|
|
5287
5289
|
X,
|
|
5288
5290
|
"disabled",
|
|
@@ -5304,21 +5306,21 @@ function Ka(e) {
|
|
|
5304
5306
|
W(V), W(b.$$.fragment, g), W(L), W(Y.$$.fragment, g), W(j), ee = !1;
|
|
5305
5307
|
},
|
|
5306
5308
|
d(g) {
|
|
5307
|
-
g && C(t), Q && Q.d(), V && V.d(),
|
|
5309
|
+
g && C(t), Q && Q.d(), V && V.d(), Ge(b), de[O].d(), Ge(Y), f[J].d(), w && w.d(), se.d(), e[41](null), Re = !1, ve(Ot);
|
|
5308
5310
|
}
|
|
5309
5311
|
};
|
|
5310
5312
|
}
|
|
5311
|
-
function
|
|
5312
|
-
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: l = "" } = t, { playercurrency: c = "" } = t, { showvaults: d } = t, { showtotalbalance: h } = t, { showclosebutton: p } = t, { showcurrencysymbol: v } = t, b = null, N = null, _ = 0, O = 0, L = null, ae = null, D = null, ne = "", oe = !0, ue = !1, $ = !1, he = !1,
|
|
5313
|
-
|
|
5314
|
-
|
|
5313
|
+
function Ja(e, t, n) {
|
|
5314
|
+
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: l = "" } = t, { playercurrency: c = "" } = t, { showvaults: d = "true" } = t, { showtotalbalance: h = "true" } = t, { showclosebutton: p = "true" } = t, { showcurrencysymbol: v = "true" } = t, b = null, N = null, _ = 0, O = 0, L = null, ae = null, D = null, ne = "", oe = !0, ue = !1, $ = !1, he = !1, Ie = !1, Y = [], me = [], Ke = [], J = [], j;
|
|
5315
|
+
xa({ withLocale: "en", translations: {} }), Object.keys(Pn).forEach((f) => {
|
|
5316
|
+
Hn(f, Pn[f]);
|
|
5315
5317
|
});
|
|
5316
|
-
const
|
|
5317
|
-
|
|
5318
|
-
},
|
|
5318
|
+
const st = () => {
|
|
5319
|
+
wa(o);
|
|
5320
|
+
}, Ye = () => {
|
|
5319
5321
|
fetch(l).then((f) => f.json()).then((f) => {
|
|
5320
5322
|
Object.keys(f).forEach((x) => {
|
|
5321
|
-
|
|
5323
|
+
Hn(x, f[x]);
|
|
5322
5324
|
});
|
|
5323
5325
|
}).catch((f) => {
|
|
5324
5326
|
console.error("There was a problem with the translations request.", f);
|
|
@@ -5326,7 +5328,7 @@ function Ya(e, t, n) {
|
|
|
5326
5328
|
}, _e = () => {
|
|
5327
5329
|
let f = document.createElement("style");
|
|
5328
5330
|
f.innerHTML = u, j.appendChild(f);
|
|
5329
|
-
},
|
|
5331
|
+
}, Le = () => {
|
|
5330
5332
|
let f, x = new URL(s), w = document.createElement("style");
|
|
5331
5333
|
fetch(x.href).then((A) => A.text()).then((A) => {
|
|
5332
5334
|
w.innerHTML = A, f && clearTimeout(f), f = setTimeout(
|
|
@@ -5336,34 +5338,34 @@ function Ya(e, t, n) {
|
|
|
5336
5338
|
1
|
|
5337
5339
|
);
|
|
5338
5340
|
});
|
|
5339
|
-
},
|
|
5341
|
+
}, lt = () => {
|
|
5340
5342
|
me.length !== 0 && (n(15, ue = !ue), window.postMessage(
|
|
5341
5343
|
{
|
|
5342
|
-
type:
|
|
5344
|
+
type: Xt.VaultDropdownToggled,
|
|
5343
5345
|
state: ue
|
|
5344
5346
|
},
|
|
5345
5347
|
window.location.href
|
|
5346
5348
|
));
|
|
5347
|
-
},
|
|
5349
|
+
}, Ce = () => {
|
|
5348
5350
|
window.postMessage(
|
|
5349
5351
|
{
|
|
5350
|
-
type:
|
|
5352
|
+
type: Xt.VaultWidgetClosed
|
|
5351
5353
|
},
|
|
5352
5354
|
window.location.href
|
|
5353
5355
|
);
|
|
5354
|
-
},
|
|
5355
|
-
n(14, oe = !0), ge(),
|
|
5356
|
+
}, Ne = () => {
|
|
5357
|
+
n(14, oe = !0), ge(), Je(), be(), fe(), window.postMessage({ type: Xt.VaultWidgetReset }, window.location.href);
|
|
5356
5358
|
}, re = () => {
|
|
5357
5359
|
n(14, oe = !0), n(9, O = 0);
|
|
5358
5360
|
}, ge = () => {
|
|
5359
5361
|
n(11, ae = null);
|
|
5360
|
-
},
|
|
5362
|
+
}, Je = () => {
|
|
5361
5363
|
n(8, _ = 0), n(9, O = 0);
|
|
5362
5364
|
}, be = () => {
|
|
5363
5365
|
n(13, ne = "");
|
|
5364
5366
|
}, fe = () => {
|
|
5365
5367
|
n(12, D = null);
|
|
5366
|
-
},
|
|
5368
|
+
}, ut = (f) => {
|
|
5367
5369
|
f && n(13, ne = f);
|
|
5368
5370
|
}, X = ({ type: f, message: x, source: w = "" }) => {
|
|
5369
5371
|
let A;
|
|
@@ -5376,21 +5378,21 @@ function Ya(e, t, n) {
|
|
|
5376
5378
|
() => {
|
|
5377
5379
|
fe();
|
|
5378
5380
|
},
|
|
5379
|
-
|
|
5381
|
+
Ca
|
|
5380
5382
|
);
|
|
5381
5383
|
break;
|
|
5382
5384
|
}
|
|
5383
|
-
},
|
|
5384
|
-
const w = D?.message.includes(
|
|
5385
|
-
w && x(), (_ < 0 || _ === null || isNaN(Number(_))) && (re(), ge(), x(R("invalidValue"))), _ > b?.amount && (re(), ge(), x(R("exceededValue"))), _ === 0 && _ === 0 && !w && (
|
|
5386
|
-
}),
|
|
5385
|
+
}, Nt = () => new Promise((f, x) => {
|
|
5386
|
+
const w = D?.message.includes(Ta.InvalidSession);
|
|
5387
|
+
w && x(), (_ < 0 || _ === null || isNaN(Number(_))) && (re(), ge(), x(R("invalidValue"))), _ > b?.amount && (re(), ge(), x(R("exceededValue"))), _ === 0 && _ === 0 && !w && (Ne(), x()), (!b || !N) && !w && x(), be(), f();
|
|
5388
|
+
}), Te = async (f, x) => {
|
|
5387
5389
|
const w = await f.json();
|
|
5388
5390
|
return f?.status >= 200 && f?.status < 400 ? w : (x === K.CheckWalletExchangeError && re(), !$ && x === K.BalanceError && (n(16, $ = !0), n(17, he = !0)), !he && x === K.CurrenciesError && n(17, he = !0), X({
|
|
5389
5391
|
type: Ee.error,
|
|
5390
5392
|
message: R(w?.thirdPartyResponse?.code) || R(w?.thirdPartyResponse?.errorCode) || "generalError",
|
|
5391
5393
|
source: x
|
|
5392
5394
|
}));
|
|
5393
|
-
},
|
|
5395
|
+
}, Oe = () => new Promise((f, x) => {
|
|
5394
5396
|
const w = new URL(`${a}/v1/player/${i}/wallet-exchange/currencies`);
|
|
5395
5397
|
fetch(w, {
|
|
5396
5398
|
method: "GET",
|
|
@@ -5399,7 +5401,7 @@ function Ya(e, t, n) {
|
|
|
5399
5401
|
"Content-Type": "application/json",
|
|
5400
5402
|
Accept: "application/json"
|
|
5401
5403
|
}
|
|
5402
|
-
}).then((Z) =>
|
|
5404
|
+
}).then((Z) => Te(Z, K.CurrenciesError)).then((Z) => {
|
|
5403
5405
|
f(Z?.currencies);
|
|
5404
5406
|
}).catch((Z) => {
|
|
5405
5407
|
X({
|
|
@@ -5416,18 +5418,18 @@ function Ya(e, t, n) {
|
|
|
5416
5418
|
let g = null;
|
|
5417
5419
|
const H = new Map(w.map((M) => [M.code, M]));
|
|
5418
5420
|
for (const M of A)
|
|
5419
|
-
if (M?.type ===
|
|
5421
|
+
if (M?.type === Ln.Real) {
|
|
5420
5422
|
const ye = H.get(M?.currency);
|
|
5421
5423
|
if (ye && ye.code === M?.currency) {
|
|
5422
5424
|
const ce = {
|
|
5423
5425
|
...M,
|
|
5424
5426
|
...ye,
|
|
5425
|
-
symbol:
|
|
5427
|
+
symbol: Aa[M?.currency]
|
|
5426
5428
|
};
|
|
5427
|
-
n(36, Y = [...Y, ce]), M?.currency === L?.currency && n(10, L = { ...L, ...ce }), M?.currency !== L?.currency && M?.walletAccountType ===
|
|
5429
|
+
n(36, Y = [...Y, ce]), M?.currency === L?.currency && n(10, L = { ...L, ...ce }), M?.currency !== L?.currency && M?.walletAccountType === Ln.Vault && n(19, me = [...me, ce]), x && M?.amount > 0 && n(5, b = L?.currency ? L : g), b && b?.currency === M?.currency && n(5, b = ce), N && N?.currency === M?.currency && n(6, N = ce);
|
|
5428
5430
|
}
|
|
5429
5431
|
}
|
|
5430
|
-
},
|
|
5432
|
+
}, Re = (f = !0) => {
|
|
5431
5433
|
const x = new URL(`${a}/v2/player/${i}/balance`);
|
|
5432
5434
|
fetch(x, {
|
|
5433
5435
|
method: "GET",
|
|
@@ -5436,8 +5438,8 @@ function Ya(e, t, n) {
|
|
|
5436
5438
|
"Content-Type": "application/json",
|
|
5437
5439
|
Accept: "application/json"
|
|
5438
5440
|
}
|
|
5439
|
-
}).then((A) =>
|
|
5440
|
-
A &&
|
|
5441
|
+
}).then((A) => Te(A, K.BalanceError)).then((A) => {
|
|
5442
|
+
A && Oe().then((Z) => {
|
|
5441
5443
|
n(36, Y = []), n(19, me = []), ee({
|
|
5442
5444
|
data: A,
|
|
5443
5445
|
shouldUpdateSelectedCurrencies: f,
|
|
@@ -5453,8 +5455,8 @@ function Ya(e, t, n) {
|
|
|
5453
5455
|
}).finally(() => {
|
|
5454
5456
|
n(16, $ = !0);
|
|
5455
5457
|
});
|
|
5456
|
-
}, Q =
|
|
5457
|
-
|
|
5458
|
+
}, Q = Sa(() => {
|
|
5459
|
+
Nt().then(() => {
|
|
5458
5460
|
const f = new URL(`${a}/v2/player/${i}/check/wallet-exchange`), x = {
|
|
5459
5461
|
userId: i,
|
|
5460
5462
|
amount: _,
|
|
@@ -5469,9 +5471,9 @@ function Ya(e, t, n) {
|
|
|
5469
5471
|
"Content-Type": "application/json",
|
|
5470
5472
|
Accept: "application/json"
|
|
5471
5473
|
},
|
|
5472
|
-
body:
|
|
5474
|
+
body: Nn(x)
|
|
5473
5475
|
};
|
|
5474
|
-
fetch(f, w).then((A) =>
|
|
5476
|
+
fetch(f, w).then((A) => Te(A, K.CheckWalletExchangeError)).then((A) => {
|
|
5475
5477
|
A && (D?.source === K.CheckWalletExchangeError && fe(), Array.isArray(A?.fees?.fees) && n(11, ae = A.fees.fees.find((Z) => Z.id)), Array.isArray(A?.walletActions) && n(9, O = A.walletActions.find((Z) => Z?.directionName === "Credit")?.amount || 0), _ > 0 && b?.currency && N?.currency && c && n(14, oe = !1));
|
|
5476
5478
|
}).catch((A) => {
|
|
5477
5479
|
X({
|
|
@@ -5481,21 +5483,21 @@ function Ya(e, t, n) {
|
|
|
5481
5483
|
}), console.error("There was a problem with the wallet exchange request.", A);
|
|
5482
5484
|
});
|
|
5483
5485
|
}).catch((f) => {
|
|
5484
|
-
|
|
5486
|
+
ut(f);
|
|
5485
5487
|
});
|
|
5486
5488
|
}, 500), V = (f) => {
|
|
5487
5489
|
const x = f.target.value;
|
|
5488
|
-
if (x.length <=
|
|
5490
|
+
if (x.length <= Ba) {
|
|
5489
5491
|
const [w, A] = x.split(".");
|
|
5490
5492
|
A && A.length >= b?.precision && n(8, _ = parseFloat(w + "." + A.slice(0, b?.precision)));
|
|
5491
5493
|
}
|
|
5492
5494
|
Q();
|
|
5493
|
-
},
|
|
5495
|
+
}, Rt = (f) => {
|
|
5494
5496
|
const x = f.data;
|
|
5495
5497
|
[">", "<", ","].includes(x) && f.preventDefault(), x && !x.match(/[\d.]/) && f.preventDefault(), x === "." && f.target.value.includes(".") && f.preventDefault();
|
|
5496
|
-
},
|
|
5498
|
+
}, ct = () => {
|
|
5497
5499
|
const f = new URL(`${a}/v2/player/${i}/wallet-exchange`);
|
|
5498
|
-
n(18,
|
|
5500
|
+
n(18, Ie = !0);
|
|
5499
5501
|
const x = {
|
|
5500
5502
|
userId: i,
|
|
5501
5503
|
amount: _,
|
|
@@ -5510,14 +5512,14 @@ function Ya(e, t, n) {
|
|
|
5510
5512
|
"Content-Type": "application/json",
|
|
5511
5513
|
Accept: "application/json"
|
|
5512
5514
|
},
|
|
5513
|
-
body:
|
|
5515
|
+
body: Nn(x)
|
|
5514
5516
|
};
|
|
5515
|
-
fetch(f, w).then((A) =>
|
|
5517
|
+
fetch(f, w).then((A) => Te(A, K.WalletExchangeError)).then((A) => {
|
|
5516
5518
|
A && (X({
|
|
5517
5519
|
type: Ee.success,
|
|
5518
5520
|
message: R("exchangeSuccess"),
|
|
5519
5521
|
source: "ExchangeSuccess"
|
|
5520
|
-
}),
|
|
5522
|
+
}), Re(!1));
|
|
5521
5523
|
}).catch((A) => {
|
|
5522
5524
|
X({
|
|
5523
5525
|
type: Ee.error,
|
|
@@ -5525,36 +5527,36 @@ function Ya(e, t, n) {
|
|
|
5525
5527
|
source: K.WalletExchangeError
|
|
5526
5528
|
}), console.error("There was an error with the wallet exchange request.", A);
|
|
5527
5529
|
}).finally(() => {
|
|
5528
|
-
n(18,
|
|
5530
|
+
n(18, Ie = !1), Je(), ge();
|
|
5529
5531
|
});
|
|
5530
|
-
},
|
|
5532
|
+
}, qe = (f) => {
|
|
5531
5533
|
const { data: { type: x } = {} } = f || {};
|
|
5532
5534
|
switch (x) {
|
|
5533
|
-
case
|
|
5534
|
-
|
|
5535
|
+
case In.ResetVaultWidget:
|
|
5536
|
+
Ne();
|
|
5535
5537
|
break;
|
|
5536
|
-
case
|
|
5537
|
-
|
|
5538
|
+
case In.CloseVaultWidget:
|
|
5539
|
+
Ce();
|
|
5538
5540
|
break;
|
|
5539
5541
|
}
|
|
5540
5542
|
};
|
|
5541
|
-
|
|
5542
|
-
window.removeEventListener("message",
|
|
5543
|
+
Br(() => (window.addEventListener("message", qe), () => {
|
|
5544
|
+
window.removeEventListener("message", qe);
|
|
5543
5545
|
}));
|
|
5544
5546
|
function de() {
|
|
5545
|
-
_ =
|
|
5547
|
+
_ = Et(this.value), n(8, _);
|
|
5546
5548
|
}
|
|
5547
|
-
function
|
|
5549
|
+
function ht(f) {
|
|
5548
5550
|
b = f, n(5, b);
|
|
5549
5551
|
}
|
|
5550
|
-
function
|
|
5551
|
-
O =
|
|
5552
|
+
function kt() {
|
|
5553
|
+
O = Et(this.value), n(9, O);
|
|
5552
5554
|
}
|
|
5553
|
-
function
|
|
5555
|
+
function ft(f) {
|
|
5554
5556
|
N = f, n(6, N);
|
|
5555
5557
|
}
|
|
5556
|
-
function
|
|
5557
|
-
|
|
5558
|
+
function dt(f) {
|
|
5559
|
+
Ue[f ? "unshift" : "push"](() => {
|
|
5558
5560
|
j = f, n(7, j);
|
|
5559
5561
|
});
|
|
5560
5562
|
}
|
|
@@ -5562,16 +5564,16 @@ function Ya(e, t, n) {
|
|
|
5562
5564
|
"session" in f && n(0, r = f.session), "userid" in f && n(29, i = f.userid), "endpoint" in f && n(30, a = f.endpoint), "lang" in f && n(31, o = f.lang), "clientstyling" in f && n(32, u = f.clientstyling), "clientstylingurl" in f && n(33, s = f.clientstylingurl), "translationurl" in f && n(34, l = f.translationurl), "playercurrency" in f && n(35, 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, v = f.showcurrencysymbol);
|
|
5563
5565
|
}, e.$$.update = () => {
|
|
5564
5566
|
e.$$.dirty[1] & /*lang*/
|
|
5565
|
-
1 && o &&
|
|
5567
|
+
1 && o && st(), e.$$.dirty[0] & /*session, userid, endpoint*/
|
|
5566
5568
|
1610612737 | e.$$.dirty[1] & /*playercurrency*/
|
|
5567
|
-
16 && r && i && a && c &&
|
|
5569
|
+
16 && r && i && a && c && Re(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5568
5570
|
128 | e.$$.dirty[1] & /*clientstyling*/
|
|
5569
5571
|
2 && u && j && _e(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5570
5572
|
128 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5571
|
-
4 && s && j &&
|
|
5572
|
-
8 && l &&
|
|
5573
|
+
4 && s && j && Le(), e.$$.dirty[1] & /*translationurl*/
|
|
5574
|
+
8 && l && Ye(), e.$$.dirty[0] & /*selectedCurrencyTo*/
|
|
5573
5575
|
64 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5574
|
-
32 && n(20,
|
|
5576
|
+
32 && n(20, Ke = Y.filter((f) => f?.amount > 0 && f?.currency !== N?.currency)), e.$$.dirty[0] & /*selectedCurrencyFrom*/
|
|
5575
5577
|
32 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5576
5578
|
32 && n(21, J = Y.filter((f) => b?.currency !== f?.currency));
|
|
5577
5579
|
}, [
|
|
@@ -5593,17 +5595,17 @@ function Ya(e, t, n) {
|
|
|
5593
5595
|
ue,
|
|
5594
5596
|
$,
|
|
5595
5597
|
he,
|
|
5596
|
-
|
|
5598
|
+
Ie,
|
|
5597
5599
|
me,
|
|
5598
|
-
|
|
5600
|
+
Ke,
|
|
5599
5601
|
J,
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5602
|
+
lt,
|
|
5603
|
+
Ce,
|
|
5604
|
+
Ne,
|
|
5603
5605
|
Q,
|
|
5604
5606
|
V,
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
+
Rt,
|
|
5608
|
+
ct,
|
|
5607
5609
|
i,
|
|
5608
5610
|
a,
|
|
5609
5611
|
o,
|
|
@@ -5613,20 +5615,20 @@ function Ya(e, t, n) {
|
|
|
5613
5615
|
c,
|
|
5614
5616
|
Y,
|
|
5615
5617
|
de,
|
|
5616
|
-
ct,
|
|
5617
|
-
Rt,
|
|
5618
5618
|
ht,
|
|
5619
|
-
|
|
5619
|
+
kt,
|
|
5620
|
+
ft,
|
|
5621
|
+
dt
|
|
5620
5622
|
];
|
|
5621
5623
|
}
|
|
5622
|
-
class
|
|
5624
|
+
class qa extends un {
|
|
5623
5625
|
constructor(t) {
|
|
5624
|
-
super(),
|
|
5626
|
+
super(), sn(
|
|
5625
5627
|
this,
|
|
5626
5628
|
t,
|
|
5629
|
+
Ja,
|
|
5627
5630
|
Ya,
|
|
5628
|
-
|
|
5629
|
-
Ct,
|
|
5631
|
+
Tt,
|
|
5630
5632
|
{
|
|
5631
5633
|
session: 0,
|
|
5632
5634
|
userid: 29,
|
|
@@ -5641,7 +5643,7 @@ class Ja extends ln {
|
|
|
5641
5643
|
showclosebutton: 3,
|
|
5642
5644
|
showcurrencysymbol: 4
|
|
5643
5645
|
},
|
|
5644
|
-
|
|
5646
|
+
ka,
|
|
5645
5647
|
[-1, -1, -1]
|
|
5646
5648
|
);
|
|
5647
5649
|
}
|
|
@@ -5718,7 +5720,7 @@ class Ja extends ln {
|
|
|
5718
5720
|
this.$$set({ showcurrencysymbol: t }), G();
|
|
5719
5721
|
}
|
|
5720
5722
|
}
|
|
5721
|
-
|
|
5723
|
+
ln(qa, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {} }, [], [], !0);
|
|
5722
5724
|
export {
|
|
5723
|
-
|
|
5725
|
+
qa as P
|
|
5724
5726
|
};
|