@everymatrix/player-account-vault 0.19.8 → 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-DqqlFpzx.js → PlayerAccountVault-DPG24nvP.js} +1295 -1324
- package/components/PlayerAccountVault-Qgw_kZD3.cjs +3 -0
- package/components/{PlayerAccountVault-DlvJ0h2m.js → PlayerAccountVault-ZWbGntb2.js} +1269 -1298
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +2 -2
- package/components/PlayerAccountVault-D2U-yg2W.cjs +0 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Sr = Object.defineProperty, Hr = Object.defineProperties;
|
|
2
|
+
var Pr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var xn = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ir = Object.prototype.hasOwnProperty, Lr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ft = (e, t, n) => t in e ? Sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, De = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
Ir.call(t, n) && Ft(e, n, t[n]);
|
|
8
|
+
if (xn)
|
|
9
|
+
for (var n of xn(t))
|
|
10
|
+
Lr.call(t, n) && Ft(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Gt = (e, t) => Hr(e, Pr(t));
|
|
13
|
+
var le = (e, t, n) => (Ft(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var $t = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (s) => {
|
|
16
16
|
try {
|
|
17
17
|
l(n.next(s));
|
|
@@ -32,19 +32,19 @@ function I() {
|
|
|
32
32
|
function er(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function wn() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function _e(e) {
|
|
39
39
|
e.forEach(er);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ut(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ht(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Nr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
50
|
function tr(e, ...t) {
|
|
@@ -56,24 +56,24 @@ function tr(e, ...t) {
|
|
|
56
56
|
const n = e.subscribe(...t);
|
|
57
57
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Or(e) {
|
|
60
60
|
let t;
|
|
61
61
|
return tr(e, (n) => t = n)(), t;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return e &&
|
|
63
|
+
function Rr(e) {
|
|
64
|
+
return e && ut(e.destroy) ? e.destroy : I;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function _(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const r =
|
|
69
|
+
function fn(e, t, n) {
|
|
70
|
+
const r = kr(e);
|
|
71
71
|
if (!r.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = n,
|
|
72
|
+
const i = w("style");
|
|
73
|
+
i.id = t, i.textContent = n, Dr(r, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function kr(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,8 +83,8 @@ function Dr(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function Dr(e, t) {
|
|
87
|
+
return _(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
90
90
|
t
|
|
@@ -93,29 +93,29 @@ function Mr(e, t) {
|
|
|
93
93
|
function H(e, t, n) {
|
|
94
94
|
e.insertBefore(t, n || null);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function S(e) {
|
|
97
97
|
e.parentNode && e.parentNode.removeChild(e);
|
|
98
98
|
}
|
|
99
99
|
function nr(e, t) {
|
|
100
100
|
for (let n = 0; n < e.length; n += 1)
|
|
101
101
|
e[n] && e[n].d(t);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function w(e) {
|
|
104
104
|
return document.createElement(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function An(e) {
|
|
107
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function z(e) {
|
|
110
110
|
return document.createTextNode(e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function O() {
|
|
113
|
+
return z(" ");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return
|
|
115
|
+
function Mr() {
|
|
116
|
+
return z("");
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function ae(e, t, n, r) {
|
|
119
119
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
120
120
|
}
|
|
121
121
|
function Ur(e) {
|
|
@@ -126,20 +126,20 @@ function Ur(e) {
|
|
|
126
126
|
function b(e, t, n) {
|
|
127
127
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function At(e) {
|
|
130
130
|
return e === "" ? null : +e;
|
|
131
131
|
}
|
|
132
132
|
function Vr(e) {
|
|
133
133
|
return Array.from(e.childNodes);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function re(e, t) {
|
|
136
136
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
137
137
|
t);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function bt(e, t) {
|
|
140
140
|
e.value = t == null ? "" : t;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function ue(e, t, n) {
|
|
143
143
|
e.classList.toggle(t, !!n);
|
|
144
144
|
}
|
|
145
145
|
function Fr(e) {
|
|
@@ -151,122 +151,122 @@ function Fr(e) {
|
|
|
151
151
|
}
|
|
152
152
|
), t;
|
|
153
153
|
}
|
|
154
|
-
let
|
|
155
|
-
function
|
|
156
|
-
|
|
154
|
+
let ot;
|
|
155
|
+
function it(e) {
|
|
156
|
+
ot = e;
|
|
157
157
|
}
|
|
158
158
|
function Gr() {
|
|
159
|
-
if (!
|
|
159
|
+
if (!ot)
|
|
160
160
|
throw new Error("Function called outside component initialization");
|
|
161
|
-
return
|
|
161
|
+
return ot;
|
|
162
162
|
}
|
|
163
163
|
function $r(e) {
|
|
164
164
|
Gr().$$.on_mount.push(e);
|
|
165
165
|
}
|
|
166
|
-
const
|
|
167
|
-
let
|
|
168
|
-
const
|
|
169
|
-
let
|
|
166
|
+
const Ve = [], Ge = [];
|
|
167
|
+
let Fe = [];
|
|
168
|
+
const Jt = [], jr = /* @__PURE__ */ Promise.resolve();
|
|
169
|
+
let qt = !1;
|
|
170
170
|
function Xr() {
|
|
171
|
-
|
|
171
|
+
qt || (qt = !0, jr.then(G));
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
|
|
173
|
+
function en(e) {
|
|
174
|
+
Fe.push(e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
|
|
176
|
+
function Tn(e) {
|
|
177
|
+
Jt.push(e);
|
|
178
178
|
}
|
|
179
|
-
const
|
|
180
|
-
let
|
|
181
|
-
function
|
|
182
|
-
if (
|
|
179
|
+
const jt = /* @__PURE__ */ new Set();
|
|
180
|
+
let Me = 0;
|
|
181
|
+
function G() {
|
|
182
|
+
if (Me !== 0)
|
|
183
183
|
return;
|
|
184
|
-
const e =
|
|
184
|
+
const e = ot;
|
|
185
185
|
do {
|
|
186
186
|
try {
|
|
187
|
-
for (;
|
|
188
|
-
const t =
|
|
189
|
-
|
|
187
|
+
for (; Me < Ve.length; ) {
|
|
188
|
+
const t = Ve[Me];
|
|
189
|
+
Me++, it(t), Wr(t.$$);
|
|
190
190
|
}
|
|
191
191
|
} catch (t) {
|
|
192
|
-
throw
|
|
192
|
+
throw Ve.length = 0, Me = 0, t;
|
|
193
193
|
}
|
|
194
|
-
for (
|
|
195
|
-
|
|
196
|
-
for (let t = 0; t <
|
|
197
|
-
const n =
|
|
198
|
-
|
|
194
|
+
for (it(null), Ve.length = 0, Me = 0; Ge.length; )
|
|
195
|
+
Ge.pop()();
|
|
196
|
+
for (let t = 0; t < Fe.length; t += 1) {
|
|
197
|
+
const n = Fe[t];
|
|
198
|
+
jt.has(n) || (jt.add(n), n());
|
|
199
199
|
}
|
|
200
|
-
|
|
201
|
-
} while (
|
|
202
|
-
for (;
|
|
203
|
-
|
|
204
|
-
|
|
200
|
+
Fe.length = 0;
|
|
201
|
+
} while (Ve.length);
|
|
202
|
+
for (; Jt.length; )
|
|
203
|
+
Jt.pop()();
|
|
204
|
+
qt = !1, jt.clear(), it(e);
|
|
205
205
|
}
|
|
206
206
|
function Wr(e) {
|
|
207
207
|
if (e.fragment !== null) {
|
|
208
|
-
e.update(),
|
|
208
|
+
e.update(), _e(e.before_update);
|
|
209
209
|
const t = e.dirty;
|
|
210
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
210
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(en);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
function zr(e) {
|
|
214
214
|
const t = [], n = [];
|
|
215
|
-
|
|
215
|
+
Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
|
|
216
216
|
}
|
|
217
|
-
const
|
|
218
|
-
let
|
|
219
|
-
function
|
|
220
|
-
|
|
217
|
+
const _t = /* @__PURE__ */ new Set();
|
|
218
|
+
let Se;
|
|
219
|
+
function He() {
|
|
220
|
+
Se = {
|
|
221
221
|
r: 0,
|
|
222
222
|
c: [],
|
|
223
|
-
p:
|
|
223
|
+
p: Se
|
|
224
224
|
// parent group
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
|
|
227
|
+
function Pe() {
|
|
228
|
+
Se.r || _e(Se.c), Se = Se.p;
|
|
229
229
|
}
|
|
230
230
|
function V(e, t) {
|
|
231
|
-
e && e.i && (
|
|
231
|
+
e && e.i && (_t.delete(e), e.i(t));
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function W(e, t, n, r) {
|
|
234
234
|
if (e && e.o) {
|
|
235
|
-
if (
|
|
235
|
+
if (_t.has(e))
|
|
236
236
|
return;
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
_t.add(e), Se.c.push(() => {
|
|
238
|
+
_t.delete(e), r && (n && e.d(1), r());
|
|
239
239
|
}), e.o(t);
|
|
240
240
|
} else
|
|
241
241
|
r && r();
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Tt(e) {
|
|
244
244
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Cn(e, t, n) {
|
|
247
247
|
const r = e.$$.props[t];
|
|
248
248
|
r !== void 0 && (e.$$.bound[r] = n, n(e.$$.ctx[r]));
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function at(e) {
|
|
251
251
|
e && e.c();
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function $e(e, t, n) {
|
|
254
254
|
const { fragment: r, after_update: i } = e.$$;
|
|
255
|
-
r && r.m(t, n),
|
|
256
|
-
const o = e.$$.on_mount.map(er).filter(
|
|
257
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
258
|
-
}), i.forEach(
|
|
255
|
+
r && r.m(t, n), en(() => {
|
|
256
|
+
const o = e.$$.on_mount.map(er).filter(ut);
|
|
257
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : _e(o), e.$$.on_mount = [];
|
|
258
|
+
}), i.forEach(en);
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function je(e, t) {
|
|
261
261
|
const n = e.$$;
|
|
262
|
-
n.fragment !== null && (zr(n.after_update),
|
|
262
|
+
n.fragment !== null && (zr(n.after_update), _e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
263
263
|
}
|
|
264
264
|
function Zr(e, t) {
|
|
265
|
-
e.$$.dirty[0] === -1 && (
|
|
265
|
+
e.$$.dirty[0] === -1 && (Ve.push(e), Xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
const s =
|
|
269
|
-
|
|
267
|
+
function pn(e, t, n, r, i, o, a = null, l = [-1]) {
|
|
268
|
+
const s = ot;
|
|
269
|
+
it(e);
|
|
270
270
|
const u = e.$$ = {
|
|
271
271
|
fragment: null,
|
|
272
272
|
ctx: [],
|
|
@@ -274,7 +274,7 @@ function fn(e, t, n, r, i, o, a = null, l = [-1]) {
|
|
|
274
274
|
props: o,
|
|
275
275
|
update: I,
|
|
276
276
|
not_equal: i,
|
|
277
|
-
bound:
|
|
277
|
+
bound: wn(),
|
|
278
278
|
// lifecycle
|
|
279
279
|
on_mount: [],
|
|
280
280
|
on_destroy: [],
|
|
@@ -283,48 +283,48 @@ function fn(e, t, n, r, i, o, a = null, l = [-1]) {
|
|
|
283
283
|
after_update: [],
|
|
284
284
|
context: new Map(t.context || (s ? s.$$.context : [])),
|
|
285
285
|
// everything else
|
|
286
|
-
callbacks:
|
|
286
|
+
callbacks: wn(),
|
|
287
287
|
dirty: l,
|
|
288
288
|
skip_bound: !1,
|
|
289
289
|
root: t.target || s.$$.root
|
|
290
290
|
};
|
|
291
291
|
a && a(u.root);
|
|
292
292
|
let c = !1;
|
|
293
|
-
if (u.ctx = n ? n(e, t.props || {}, (f, h, ...
|
|
294
|
-
const
|
|
295
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
296
|
-
}) : [], u.update(), c = !0,
|
|
293
|
+
if (u.ctx = n ? n(e, t.props || {}, (f, h, ...m) => {
|
|
294
|
+
const x = m.length ? m[0] : h;
|
|
295
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = x) && (!u.skip_bound && u.bound[f] && u.bound[f](x), c && Zr(e, f)), h;
|
|
296
|
+
}) : [], u.update(), c = !0, _e(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
297
297
|
if (t.hydrate) {
|
|
298
298
|
const f = Vr(t.target);
|
|
299
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
299
|
+
u.fragment && u.fragment.l(f), f.forEach(S);
|
|
300
300
|
} else
|
|
301
301
|
u.fragment && u.fragment.c();
|
|
302
|
-
t.intro && V(e.$$.fragment),
|
|
302
|
+
t.intro && V(e.$$.fragment), $e(e, t.target, t.anchor), G();
|
|
303
303
|
}
|
|
304
|
-
|
|
304
|
+
it(s);
|
|
305
305
|
}
|
|
306
|
-
let
|
|
307
|
-
typeof HTMLElement == "function" && (
|
|
306
|
+
let rr;
|
|
307
|
+
typeof HTMLElement == "function" && (rr = class extends HTMLElement {
|
|
308
308
|
constructor(t, n, r) {
|
|
309
309
|
super();
|
|
310
310
|
/** The Svelte component constructor */
|
|
311
|
-
|
|
311
|
+
le(this, "$$ctor");
|
|
312
312
|
/** Slots */
|
|
313
|
-
|
|
313
|
+
le(this, "$$s");
|
|
314
314
|
/** The Svelte component instance */
|
|
315
|
-
|
|
315
|
+
le(this, "$$c");
|
|
316
316
|
/** Whether or not the custom element is connected */
|
|
317
|
-
|
|
317
|
+
le(this, "$$cn", !1);
|
|
318
318
|
/** Component props data */
|
|
319
|
-
|
|
319
|
+
le(this, "$$d", {});
|
|
320
320
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
321
|
-
|
|
321
|
+
le(this, "$$r", !1);
|
|
322
322
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
323
|
-
|
|
323
|
+
le(this, "$$p_d", {});
|
|
324
324
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
325
|
-
|
|
325
|
+
le(this, "$$l", {});
|
|
326
326
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
327
|
-
|
|
327
|
+
le(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
328
328
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
329
329
|
}
|
|
330
330
|
addEventListener(t, n, r) {
|
|
@@ -341,14 +341,14 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
connectedCallback() {
|
|
344
|
-
return
|
|
344
|
+
return $t(this, null, function* () {
|
|
345
345
|
if (this.$$cn = !0, !this.$$c) {
|
|
346
346
|
let t = function(o) {
|
|
347
347
|
return () => {
|
|
348
348
|
let a;
|
|
349
349
|
return {
|
|
350
350
|
c: function() {
|
|
351
|
-
a =
|
|
351
|
+
a = w("slot"), o !== "default" && b(a, "name", o);
|
|
352
352
|
},
|
|
353
353
|
/**
|
|
354
354
|
* @param {HTMLElement} target
|
|
@@ -358,7 +358,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
|
358
358
|
H(u, a, c);
|
|
359
359
|
},
|
|
360
360
|
d: function(u) {
|
|
361
|
-
u &&
|
|
361
|
+
u && S(a);
|
|
362
362
|
}
|
|
363
363
|
};
|
|
364
364
|
};
|
|
@@ -370,13 +370,13 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
|
370
370
|
o in r && (n[o] = [t(o)]);
|
|
371
371
|
for (const o of this.attributes) {
|
|
372
372
|
const a = this.$$g_p(o.name);
|
|
373
|
-
a in this.$$d || (this.$$d[a] =
|
|
373
|
+
a in this.$$d || (this.$$d[a] = Et(a, o.value, this.$$p_d, "toProp"));
|
|
374
374
|
}
|
|
375
375
|
for (const o in this.$$p_d)
|
|
376
376
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
377
377
|
this.$$c = new this.$$ctor({
|
|
378
378
|
target: this.shadowRoot || this,
|
|
379
|
-
props:
|
|
379
|
+
props: Gt(De({}, this.$$d), {
|
|
380
380
|
$$slots: n,
|
|
381
381
|
$$scope: {
|
|
382
382
|
ctx: []
|
|
@@ -387,7 +387,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
|
387
387
|
this.$$r = !0;
|
|
388
388
|
for (const o in this.$$p_d)
|
|
389
389
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
390
|
-
const a =
|
|
390
|
+
const a = Et(
|
|
391
391
|
o,
|
|
392
392
|
this.$$d[o],
|
|
393
393
|
this.$$p_d,
|
|
@@ -411,7 +411,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
|
411
411
|
// and setting attributes through setAttribute etc, this is helpful
|
|
412
412
|
attributeChangedCallback(t, n, r) {
|
|
413
413
|
var i;
|
|
414
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
414
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Et(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
415
415
|
}
|
|
416
416
|
disconnectedCallback() {
|
|
417
417
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -424,7 +424,7 @@ typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
|
424
424
|
) || t;
|
|
425
425
|
}
|
|
426
426
|
});
|
|
427
|
-
function
|
|
427
|
+
function Et(e, t, n, r) {
|
|
428
428
|
var o;
|
|
429
429
|
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
430
430
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -454,8 +454,8 @@ function xt(e, t, n, r) {
|
|
|
454
454
|
return t;
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
let a = class extends
|
|
457
|
+
function dn(e, t, n, r, i, o) {
|
|
458
|
+
let a = class extends rr {
|
|
459
459
|
constructor() {
|
|
460
460
|
super(e, n, i), this.$$p_d = t;
|
|
461
461
|
}
|
|
@@ -472,7 +472,7 @@ function pn(e, t, n, r, i, o) {
|
|
|
472
472
|
},
|
|
473
473
|
set(s) {
|
|
474
474
|
var u;
|
|
475
|
-
s =
|
|
475
|
+
s = Et(l, s, t), this.$$d[l] = s, (u = this.$$c) == null || u.$set({ [l]: s });
|
|
476
476
|
}
|
|
477
477
|
});
|
|
478
478
|
}), r.forEach((l) => {
|
|
@@ -485,7 +485,7 @@ function pn(e, t, n, r, i, o) {
|
|
|
485
485
|
}), e.element = /** @type {any} */
|
|
486
486
|
a, a;
|
|
487
487
|
}
|
|
488
|
-
class
|
|
488
|
+
class mn {
|
|
489
489
|
constructor() {
|
|
490
490
|
/**
|
|
491
491
|
* ### PRIVATE API
|
|
@@ -494,7 +494,7 @@ class dn {
|
|
|
494
494
|
*
|
|
495
495
|
* @type {any}
|
|
496
496
|
*/
|
|
497
|
-
|
|
497
|
+
le(this, "$$");
|
|
498
498
|
/**
|
|
499
499
|
* ### PRIVATE API
|
|
500
500
|
*
|
|
@@ -502,11 +502,11 @@ class dn {
|
|
|
502
502
|
*
|
|
503
503
|
* @type {any}
|
|
504
504
|
*/
|
|
505
|
-
|
|
505
|
+
le(this, "$$set");
|
|
506
506
|
}
|
|
507
507
|
/** @returns {void} */
|
|
508
508
|
$destroy() {
|
|
509
|
-
|
|
509
|
+
je(this, 1), this.$destroy = I;
|
|
510
510
|
}
|
|
511
511
|
/**
|
|
512
512
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -515,7 +515,7 @@ class dn {
|
|
|
515
515
|
* @returns {() => void}
|
|
516
516
|
*/
|
|
517
517
|
$on(t, n) {
|
|
518
|
-
if (!
|
|
518
|
+
if (!ut(n))
|
|
519
519
|
return I;
|
|
520
520
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
521
521
|
return r.push(n), () => {
|
|
@@ -528,29 +528,29 @@ class dn {
|
|
|
528
528
|
* @returns {void}
|
|
529
529
|
*/
|
|
530
530
|
$set(t) {
|
|
531
|
-
this.$$set && !
|
|
531
|
+
this.$$set && !Nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
const Qr = "4";
|
|
535
535
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Qr);
|
|
536
|
-
const
|
|
536
|
+
const Ue = [];
|
|
537
537
|
function Kr(e, t) {
|
|
538
538
|
return {
|
|
539
|
-
subscribe:
|
|
539
|
+
subscribe: Pt(e, t).subscribe
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Pt(e, t = I) {
|
|
543
543
|
let n;
|
|
544
544
|
const r = /* @__PURE__ */ new Set();
|
|
545
545
|
function i(l) {
|
|
546
|
-
if (
|
|
547
|
-
const s = !
|
|
546
|
+
if (Ht(e, l) && (e = l, n)) {
|
|
547
|
+
const s = !Ue.length;
|
|
548
548
|
for (const u of r)
|
|
549
|
-
u[1](),
|
|
549
|
+
u[1](), Ue.push(u, e);
|
|
550
550
|
if (s) {
|
|
551
|
-
for (let u = 0; u <
|
|
552
|
-
|
|
553
|
-
|
|
551
|
+
for (let u = 0; u < Ue.length; u += 2)
|
|
552
|
+
Ue[u][0](Ue[u + 1]);
|
|
553
|
+
Ue.length = 0;
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -565,7 +565,7 @@ function It(e, t = I) {
|
|
|
565
565
|
}
|
|
566
566
|
return { set: i, update: o, subscribe: a };
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function Qe(e, t, n) {
|
|
569
569
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
570
570
|
if (!i.every(Boolean))
|
|
571
571
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -578,21 +578,21 @@ function Ye(e, t, n) {
|
|
|
578
578
|
if (c)
|
|
579
579
|
return;
|
|
580
580
|
f();
|
|
581
|
-
const
|
|
582
|
-
o ? a(
|
|
583
|
-
},
|
|
584
|
-
(
|
|
585
|
-
|
|
586
|
-
(
|
|
587
|
-
u[
|
|
581
|
+
const x = t(r ? u[0] : u, a, l);
|
|
582
|
+
o ? a(x) : f = ut(x) ? x : I;
|
|
583
|
+
}, m = i.map(
|
|
584
|
+
(x, d) => tr(
|
|
585
|
+
x,
|
|
586
|
+
(E) => {
|
|
587
|
+
u[d] = E, c &= ~(1 << d), s && h();
|
|
588
588
|
},
|
|
589
589
|
() => {
|
|
590
|
-
c |= 1 <<
|
|
590
|
+
c |= 1 << d;
|
|
591
591
|
}
|
|
592
592
|
)
|
|
593
593
|
);
|
|
594
594
|
return s = !0, h(), function() {
|
|
595
|
-
|
|
595
|
+
_e(m), f(), s = !1;
|
|
596
596
|
};
|
|
597
597
|
});
|
|
598
598
|
}
|
|
@@ -616,29 +616,29 @@ function ri(e) {
|
|
|
616
616
|
function ii(e) {
|
|
617
617
|
return Array.isArray(e) ? [] : {};
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
619
|
+
function st(e, t) {
|
|
620
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Xe(ii(e), e, t) : e;
|
|
621
621
|
}
|
|
622
622
|
function oi(e, t, n) {
|
|
623
623
|
return e.concat(t).map(function(r) {
|
|
624
|
-
return
|
|
624
|
+
return st(r, n);
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
627
|
function ai(e, t) {
|
|
628
628
|
if (!t.customMerge)
|
|
629
|
-
return
|
|
629
|
+
return Xe;
|
|
630
630
|
var n = t.customMerge(e);
|
|
631
|
-
return typeof n == "function" ? n :
|
|
631
|
+
return typeof n == "function" ? n : Xe;
|
|
632
632
|
}
|
|
633
633
|
function si(e) {
|
|
634
634
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
635
635
|
return Object.propertyIsEnumerable.call(e, t);
|
|
636
636
|
}) : [];
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Bn(e) {
|
|
639
639
|
return Object.keys(e).concat(si(e));
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function ir(e, t) {
|
|
642
642
|
try {
|
|
643
643
|
return t in e;
|
|
644
644
|
} catch (n) {
|
|
@@ -646,56 +646,56 @@ function or(e, t) {
|
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
function li(e, t) {
|
|
649
|
-
return
|
|
649
|
+
return ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
650
650
|
}
|
|
651
651
|
function ui(e, t, n) {
|
|
652
652
|
var r = {};
|
|
653
|
-
return n.isMergeableObject(e) &&
|
|
654
|
-
r[i] =
|
|
655
|
-
}),
|
|
656
|
-
li(e, i) || (
|
|
653
|
+
return n.isMergeableObject(e) && Bn(e).forEach(function(i) {
|
|
654
|
+
r[i] = st(e[i], n);
|
|
655
|
+
}), Bn(t).forEach(function(i) {
|
|
656
|
+
li(e, i) || (ir(e, i) && n.isMergeableObject(t[i]) ? r[i] = ai(i, n)(e[i], t[i], n) : r[i] = st(t[i], n));
|
|
657
657
|
}), r;
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || oi, n.isMergeableObject = n.isMergeableObject || Jr, n.cloneUnlessOtherwiseSpecified =
|
|
659
|
+
function Xe(e, t, n) {
|
|
660
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || oi, n.isMergeableObject = n.isMergeableObject || Jr, n.cloneUnlessOtherwiseSpecified = st;
|
|
661
661
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
662
|
-
return o ? r ? n.arrayMerge(e, t, n) : ui(e, t, n) :
|
|
662
|
+
return o ? r ? n.arrayMerge(e, t, n) : ui(e, t, n) : st(t, n);
|
|
663
663
|
}
|
|
664
|
-
|
|
664
|
+
Xe.all = function(t, n) {
|
|
665
665
|
if (!Array.isArray(t))
|
|
666
666
|
throw new Error("first argument should be an array");
|
|
667
667
|
return t.reduce(function(r, i) {
|
|
668
|
-
return
|
|
668
|
+
return Xe(r, i, n);
|
|
669
669
|
}, {});
|
|
670
670
|
};
|
|
671
|
-
var ci =
|
|
671
|
+
var ci = Xe, hi = ci;
|
|
672
672
|
const fi = /* @__PURE__ */ Yr(hi);
|
|
673
|
-
var
|
|
674
|
-
return
|
|
673
|
+
var tn = function(e, t) {
|
|
674
|
+
return tn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
675
675
|
n.__proto__ = r;
|
|
676
676
|
} || function(n, r) {
|
|
677
677
|
for (var i in r)
|
|
678
678
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
679
|
-
},
|
|
679
|
+
}, tn(e, t);
|
|
680
680
|
};
|
|
681
|
-
function
|
|
681
|
+
function It(e, t) {
|
|
682
682
|
if (typeof t != "function" && t !== null)
|
|
683
683
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
684
|
-
|
|
684
|
+
tn(e, t);
|
|
685
685
|
function n() {
|
|
686
686
|
this.constructor = e;
|
|
687
687
|
}
|
|
688
688
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
689
689
|
}
|
|
690
|
-
var
|
|
691
|
-
return
|
|
690
|
+
var me = function() {
|
|
691
|
+
return me = Object.assign || function(t) {
|
|
692
692
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
693
693
|
n = arguments[r];
|
|
694
694
|
for (var o in n)
|
|
695
695
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
696
696
|
}
|
|
697
697
|
return t;
|
|
698
|
-
},
|
|
698
|
+
}, me.apply(this, arguments);
|
|
699
699
|
};
|
|
700
700
|
function pi(e, t) {
|
|
701
701
|
var n = {};
|
|
@@ -706,13 +706,13 @@ function pi(e, t) {
|
|
|
706
706
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
707
707
|
return n;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function Xt(e, t, n) {
|
|
710
710
|
if (n || arguments.length === 2)
|
|
711
711
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
712
712
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
713
713
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function Wt(e, t) {
|
|
716
716
|
var n = t && t.cache ? t.cache : _i, r = t && t.serializer ? t.serializer : yi, i = t && t.strategy ? t.strategy : gi;
|
|
717
717
|
return i(e, {
|
|
718
718
|
cache: n,
|
|
@@ -726,19 +726,19 @@ function mi(e, t, n, r) {
|
|
|
726
726
|
var i = di(r) ? r : n(r), o = t.get(i);
|
|
727
727
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function or(e, t, n) {
|
|
730
730
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
731
731
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function ar(e, t, n, r, i) {
|
|
734
734
|
return n.bind(t, e, r, i);
|
|
735
735
|
}
|
|
736
736
|
function gi(e, t) {
|
|
737
|
-
var n = e.length === 1 ? mi :
|
|
738
|
-
return
|
|
737
|
+
var n = e.length === 1 ? mi : or;
|
|
738
|
+
return ar(e, this, n, t.cache.create(), t.serializer);
|
|
739
739
|
}
|
|
740
740
|
function bi(e, t) {
|
|
741
|
-
return
|
|
741
|
+
return ar(e, this, or, t.cache.create(), t.serializer);
|
|
742
742
|
}
|
|
743
743
|
var yi = function() {
|
|
744
744
|
return JSON.stringify(arguments);
|
|
@@ -758,64 +758,64 @@ var yi = function() {
|
|
|
758
758
|
create: function() {
|
|
759
759
|
return new vi();
|
|
760
760
|
}
|
|
761
|
-
},
|
|
761
|
+
}, zt = {
|
|
762
762
|
variadic: bi
|
|
763
|
-
},
|
|
764
|
-
return
|
|
763
|
+
}, Ct = function() {
|
|
764
|
+
return Ct = Object.assign || function(t) {
|
|
765
765
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
766
766
|
n = arguments[r];
|
|
767
767
|
for (var o in n)
|
|
768
768
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
769
769
|
}
|
|
770
770
|
return t;
|
|
771
|
-
},
|
|
771
|
+
}, Ct.apply(this, arguments);
|
|
772
772
|
};
|
|
773
773
|
var P;
|
|
774
774
|
(function(e) {
|
|
775
775
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
776
776
|
})(P || (P = {}));
|
|
777
|
-
var
|
|
777
|
+
var D;
|
|
778
778
|
(function(e) {
|
|
779
779
|
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";
|
|
780
|
-
})(
|
|
781
|
-
var
|
|
780
|
+
})(D || (D = {}));
|
|
781
|
+
var We;
|
|
782
782
|
(function(e) {
|
|
783
783
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
784
|
-
})(
|
|
785
|
-
function
|
|
786
|
-
return e.type ===
|
|
784
|
+
})(We || (We = {}));
|
|
785
|
+
function Sn(e) {
|
|
786
|
+
return e.type === D.literal;
|
|
787
787
|
}
|
|
788
788
|
function Ei(e) {
|
|
789
|
-
return e.type ===
|
|
789
|
+
return e.type === D.argument;
|
|
790
|
+
}
|
|
791
|
+
function sr(e) {
|
|
792
|
+
return e.type === D.number;
|
|
790
793
|
}
|
|
791
794
|
function lr(e) {
|
|
792
|
-
return e.type ===
|
|
795
|
+
return e.type === D.date;
|
|
793
796
|
}
|
|
794
797
|
function ur(e) {
|
|
795
|
-
return e.type ===
|
|
798
|
+
return e.type === D.time;
|
|
796
799
|
}
|
|
797
800
|
function cr(e) {
|
|
798
|
-
return e.type ===
|
|
801
|
+
return e.type === D.select;
|
|
799
802
|
}
|
|
800
803
|
function hr(e) {
|
|
801
|
-
return e.type ===
|
|
802
|
-
}
|
|
803
|
-
function fr(e) {
|
|
804
|
-
return e.type === U.plural;
|
|
804
|
+
return e.type === D.plural;
|
|
805
805
|
}
|
|
806
806
|
function xi(e) {
|
|
807
|
-
return e.type ===
|
|
807
|
+
return e.type === D.pound;
|
|
808
808
|
}
|
|
809
|
-
function
|
|
810
|
-
return e.type ===
|
|
809
|
+
function fr(e) {
|
|
810
|
+
return e.type === D.tag;
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
812
|
+
function pr(e) {
|
|
813
|
+
return !!(e && typeof e == "object" && e.type === We.number);
|
|
814
814
|
}
|
|
815
|
-
function
|
|
816
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
815
|
+
function nn(e) {
|
|
816
|
+
return !!(e && typeof e == "object" && e.type === We.dateTime);
|
|
817
817
|
}
|
|
818
|
-
var
|
|
818
|
+
var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wi = /(?:[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;
|
|
819
819
|
function Ai(e) {
|
|
820
820
|
var t = {};
|
|
821
821
|
return e.replace(wi, function(n) {
|
|
@@ -907,15 +907,15 @@ function Ai(e) {
|
|
|
907
907
|
return "";
|
|
908
908
|
}), t;
|
|
909
909
|
}
|
|
910
|
-
var
|
|
911
|
-
return
|
|
910
|
+
var U = function() {
|
|
911
|
+
return U = Object.assign || function(t) {
|
|
912
912
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
913
913
|
n = arguments[r];
|
|
914
914
|
for (var o in n)
|
|
915
915
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
916
916
|
}
|
|
917
917
|
return t;
|
|
918
|
-
},
|
|
918
|
+
}, U.apply(this, arguments);
|
|
919
919
|
};
|
|
920
920
|
var Ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
921
921
|
function Ci(e) {
|
|
@@ -939,14 +939,14 @@ function Ci(e) {
|
|
|
939
939
|
function Bi(e) {
|
|
940
940
|
return e.replace(/^(.*?)-/, "");
|
|
941
941
|
}
|
|
942
|
-
var
|
|
943
|
-
function
|
|
942
|
+
var Hn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mr = /^(@+)?(\+|#+)?[rs]?$/g, Si = /(\*)(0+)|(#+)(0+)|(0+)/g, gr = /^(0+)$/;
|
|
943
|
+
function Pn(e) {
|
|
944
944
|
var t = {};
|
|
945
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
945
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mr, function(n, r, i) {
|
|
946
946
|
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)), "";
|
|
947
947
|
}), t;
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function br(e) {
|
|
950
950
|
switch (e) {
|
|
951
951
|
case "sign-auto":
|
|
952
952
|
return {
|
|
@@ -994,14 +994,14 @@ function Hi(e) {
|
|
|
994
994
|
notation: "scientific"
|
|
995
995
|
}, e = e.slice(1)), t) {
|
|
996
996
|
var n = e.slice(0, 2);
|
|
997
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
997
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gr.test(e))
|
|
998
998
|
throw new Error("Malformed concise eng/scientific notation");
|
|
999
999
|
t.minimumIntegerDigits = e.length;
|
|
1000
1000
|
}
|
|
1001
1001
|
return t;
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1004
|
-
var t = {}, n =
|
|
1003
|
+
function In(e) {
|
|
1004
|
+
var t = {}, n = br(e);
|
|
1005
1005
|
return n || t;
|
|
1006
1006
|
}
|
|
1007
1007
|
function Pi(e) {
|
|
@@ -1039,13 +1039,13 @@ function Pi(e) {
|
|
|
1039
1039
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1040
1040
|
continue;
|
|
1041
1041
|
case "scientific":
|
|
1042
|
-
t =
|
|
1043
|
-
return
|
|
1042
|
+
t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(s, u) {
|
|
1043
|
+
return U(U({}, s), In(u));
|
|
1044
1044
|
}, {}));
|
|
1045
1045
|
continue;
|
|
1046
1046
|
case "engineering":
|
|
1047
|
-
t =
|
|
1048
|
-
return
|
|
1047
|
+
t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(s, u) {
|
|
1048
|
+
return U(U({}, s), In(u));
|
|
1049
1049
|
}, {}));
|
|
1050
1050
|
continue;
|
|
1051
1051
|
case "notation-simple":
|
|
@@ -1090,45 +1090,45 @@ function Pi(e) {
|
|
|
1090
1090
|
case "integer-width":
|
|
1091
1091
|
if (i.options.length > 1)
|
|
1092
1092
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1093
|
-
i.options[0].replace(Si, function(s, u, c, f, h,
|
|
1093
|
+
i.options[0].replace(Si, function(s, u, c, f, h, m) {
|
|
1094
1094
|
if (u)
|
|
1095
1095
|
t.minimumIntegerDigits = c.length;
|
|
1096
1096
|
else {
|
|
1097
1097
|
if (f && h)
|
|
1098
1098
|
throw new Error("We currently do not support maximum integer digits");
|
|
1099
|
-
if (
|
|
1099
|
+
if (m)
|
|
1100
1100
|
throw new Error("We currently do not support exact integer digits");
|
|
1101
1101
|
}
|
|
1102
1102
|
return "";
|
|
1103
1103
|
});
|
|
1104
1104
|
continue;
|
|
1105
1105
|
}
|
|
1106
|
-
if (
|
|
1106
|
+
if (gr.test(i.stem)) {
|
|
1107
1107
|
t.minimumIntegerDigits = i.stem.length;
|
|
1108
1108
|
continue;
|
|
1109
1109
|
}
|
|
1110
|
-
if (
|
|
1110
|
+
if (Hn.test(i.stem)) {
|
|
1111
1111
|
if (i.options.length > 1)
|
|
1112
1112
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1113
|
-
i.stem.replace(
|
|
1114
|
-
return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h &&
|
|
1113
|
+
i.stem.replace(Hn, function(s, u, c, f, h, m) {
|
|
1114
|
+
return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && m ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1115
1115
|
});
|
|
1116
1116
|
var o = i.options[0];
|
|
1117
|
-
o === "w" ? t =
|
|
1117
|
+
o === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = U(U({}, t), Pn(o)));
|
|
1118
1118
|
continue;
|
|
1119
1119
|
}
|
|
1120
|
-
if (
|
|
1121
|
-
t =
|
|
1120
|
+
if (mr.test(i.stem)) {
|
|
1121
|
+
t = U(U({}, t), Pn(i.stem));
|
|
1122
1122
|
continue;
|
|
1123
1123
|
}
|
|
1124
|
-
var a =
|
|
1125
|
-
a && (t =
|
|
1124
|
+
var a = br(i.stem);
|
|
1125
|
+
a && (t = U(U({}, t), a));
|
|
1126
1126
|
var l = Hi(i.stem);
|
|
1127
|
-
l && (t =
|
|
1127
|
+
l && (t = U(U({}, t), l));
|
|
1128
1128
|
}
|
|
1129
1129
|
return t;
|
|
1130
1130
|
}
|
|
1131
|
-
var
|
|
1131
|
+
var yt = {
|
|
1132
1132
|
"001": [
|
|
1133
1133
|
"H",
|
|
1134
1134
|
"h"
|
|
@@ -2578,23 +2578,23 @@ function Li(e) {
|
|
|
2578
2578
|
}
|
|
2579
2579
|
var n = e.language, r;
|
|
2580
2580
|
n !== "root" && (r = e.maximize().region);
|
|
2581
|
-
var i =
|
|
2581
|
+
var i = yt[r || ""] || yt[n || ""] || yt["".concat(n, "-001")] || yt["001"];
|
|
2582
2582
|
return i[0];
|
|
2583
2583
|
}
|
|
2584
|
-
var
|
|
2584
|
+
var Zt, Ni = new RegExp("^".concat(dr.source, "*")), Oi = new RegExp("".concat(dr.source, "*$"));
|
|
2585
2585
|
function N(e, t) {
|
|
2586
2586
|
return { start: e, end: t };
|
|
2587
2587
|
}
|
|
2588
2588
|
var Ri = !!String.prototype.startsWith && "_a".startsWith("a", 1), ki = !!String.fromCodePoint, Di = !!Object.fromEntries, Mi = !!String.prototype.codePointAt, Ui = !!String.prototype.trimStart, Vi = !!String.prototype.trimEnd, Fi = !!Number.isSafeInteger, Gi = Fi ? Number.isSafeInteger : function(e) {
|
|
2589
2589
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2590
|
-
},
|
|
2590
|
+
}, rn = !0;
|
|
2591
2591
|
try {
|
|
2592
|
-
var $i =
|
|
2593
|
-
|
|
2592
|
+
var $i = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2593
|
+
rn = ((Zt = $i.exec("a")) === null || Zt === void 0 ? void 0 : Zt[0]) === "a";
|
|
2594
2594
|
} catch (e) {
|
|
2595
|
-
|
|
2595
|
+
rn = !1;
|
|
2596
2596
|
}
|
|
2597
|
-
var
|
|
2597
|
+
var Ln = Ri ? (
|
|
2598
2598
|
// Native
|
|
2599
2599
|
function(t, n, r) {
|
|
2600
2600
|
return t.startsWith(n, r);
|
|
@@ -2604,7 +2604,7 @@ var In = Ri ? (
|
|
|
2604
2604
|
function(t, n, r) {
|
|
2605
2605
|
return t.slice(r, r + n.length) === n;
|
|
2606
2606
|
}
|
|
2607
|
-
),
|
|
2607
|
+
), on = ki ? String.fromCodePoint : (
|
|
2608
2608
|
// IE11
|
|
2609
2609
|
function() {
|
|
2610
2610
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2616,7 +2616,7 @@ var In = Ri ? (
|
|
|
2616
2616
|
}
|
|
2617
2617
|
return r;
|
|
2618
2618
|
}
|
|
2619
|
-
),
|
|
2619
|
+
), Nn = (
|
|
2620
2620
|
// native
|
|
2621
2621
|
Di ? Object.fromEntries : (
|
|
2622
2622
|
// Ponyfill
|
|
@@ -2628,7 +2628,7 @@ var In = Ri ? (
|
|
|
2628
2628
|
return n;
|
|
2629
2629
|
}
|
|
2630
2630
|
)
|
|
2631
|
-
),
|
|
2631
|
+
), yr = Mi ? (
|
|
2632
2632
|
// Native
|
|
2633
2633
|
function(t, n) {
|
|
2634
2634
|
return t.codePointAt(n);
|
|
@@ -2663,27 +2663,27 @@ var In = Ri ? (
|
|
|
2663
2663
|
return t.replace(Oi, "");
|
|
2664
2664
|
}
|
|
2665
2665
|
);
|
|
2666
|
-
function
|
|
2666
|
+
function vr(e, t) {
|
|
2667
2667
|
return new RegExp(e, t);
|
|
2668
2668
|
}
|
|
2669
|
-
var
|
|
2670
|
-
if (
|
|
2671
|
-
var
|
|
2672
|
-
|
|
2669
|
+
var an;
|
|
2670
|
+
if (rn) {
|
|
2671
|
+
var On = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2672
|
+
an = function(t, n) {
|
|
2673
2673
|
var r;
|
|
2674
|
-
|
|
2675
|
-
var i =
|
|
2674
|
+
On.lastIndex = n;
|
|
2675
|
+
var i = On.exec(t);
|
|
2676
2676
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2677
2677
|
};
|
|
2678
2678
|
} else
|
|
2679
|
-
|
|
2679
|
+
an = function(t, n) {
|
|
2680
2680
|
for (var r = []; ; ) {
|
|
2681
|
-
var i =
|
|
2682
|
-
if (i === void 0 ||
|
|
2681
|
+
var i = yr(t, n);
|
|
2682
|
+
if (i === void 0 || _r(i) || Qi(i))
|
|
2683
2683
|
break;
|
|
2684
2684
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2685
2685
|
}
|
|
2686
|
-
return
|
|
2686
|
+
return on.apply(void 0, r);
|
|
2687
2687
|
};
|
|
2688
2688
|
var Wi = (
|
|
2689
2689
|
/** @class */
|
|
@@ -2709,14 +2709,14 @@ var Wi = (
|
|
|
2709
2709
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2710
2710
|
var l = this.clonePosition();
|
|
2711
2711
|
this.bump(), i.push({
|
|
2712
|
-
type:
|
|
2712
|
+
type: D.pound,
|
|
2713
2713
|
location: N(l, this.clonePosition())
|
|
2714
2714
|
});
|
|
2715
2715
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2716
2716
|
if (r)
|
|
2717
2717
|
break;
|
|
2718
2718
|
return this.error(P.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
2719
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2719
|
+
} else if (o === 60 && !this.ignoreTag && sn(this.peek() || 0)) {
|
|
2720
2720
|
var a = this.parseTag(t, n);
|
|
2721
2721
|
if (a.err)
|
|
2722
2722
|
return a;
|
|
@@ -2737,7 +2737,7 @@ var Wi = (
|
|
|
2737
2737
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2738
2738
|
return {
|
|
2739
2739
|
val: {
|
|
2740
|
-
type:
|
|
2740
|
+
type: D.literal,
|
|
2741
2741
|
value: "<".concat(i, "/>"),
|
|
2742
2742
|
location: N(r, this.clonePosition())
|
|
2743
2743
|
},
|
|
@@ -2749,12 +2749,12 @@ var Wi = (
|
|
|
2749
2749
|
return o;
|
|
2750
2750
|
var a = o.val, l = this.clonePosition();
|
|
2751
2751
|
if (this.bumpIf("</")) {
|
|
2752
|
-
if (this.isEOF() || !
|
|
2752
|
+
if (this.isEOF() || !sn(this.char()))
|
|
2753
2753
|
return this.error(P.INVALID_TAG, N(l, this.clonePosition()));
|
|
2754
2754
|
var s = this.clonePosition(), u = this.parseTagName();
|
|
2755
2755
|
return i !== u ? this.error(P.UNMATCHED_CLOSING_TAG, N(s, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2756
2756
|
val: {
|
|
2757
|
-
type:
|
|
2757
|
+
type: D.tag,
|
|
2758
2758
|
value: i,
|
|
2759
2759
|
children: a,
|
|
2760
2760
|
location: N(r, this.clonePosition())
|
|
@@ -2791,7 +2791,7 @@ var Wi = (
|
|
|
2791
2791
|
}
|
|
2792
2792
|
var s = N(r, this.clonePosition());
|
|
2793
2793
|
return {
|
|
2794
|
-
val: { type:
|
|
2794
|
+
val: { type: D.literal, value: i, location: s },
|
|
2795
2795
|
err: null
|
|
2796
2796
|
};
|
|
2797
2797
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2830,12 +2830,12 @@ var Wi = (
|
|
|
2830
2830
|
n.push(r);
|
|
2831
2831
|
this.bump();
|
|
2832
2832
|
}
|
|
2833
|
-
return
|
|
2833
|
+
return on.apply(void 0, n);
|
|
2834
2834
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2835
2835
|
if (this.isEOF())
|
|
2836
2836
|
return null;
|
|
2837
2837
|
var r = this.char();
|
|
2838
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2838
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), on(r));
|
|
2839
2839
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2840
2840
|
var r = this.clonePosition();
|
|
2841
2841
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2851,7 +2851,7 @@ var Wi = (
|
|
|
2851
2851
|
case 125:
|
|
2852
2852
|
return this.bump(), {
|
|
2853
2853
|
val: {
|
|
2854
|
-
type:
|
|
2854
|
+
type: D.argument,
|
|
2855
2855
|
// value does not include the opening and closing braces.
|
|
2856
2856
|
value: i,
|
|
2857
2857
|
location: N(r, this.clonePosition())
|
|
@@ -2864,7 +2864,7 @@ var Wi = (
|
|
|
2864
2864
|
return this.error(P.MALFORMED_ARGUMENT, N(r, this.clonePosition()));
|
|
2865
2865
|
}
|
|
2866
2866
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2867
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2867
|
+
var t = this.clonePosition(), n = this.offset(), r = an(this.message, n), i = n + r.length;
|
|
2868
2868
|
this.bumpTo(i);
|
|
2869
2869
|
var o = this.clonePosition(), a = N(t, o);
|
|
2870
2870
|
return { value: r, location: a };
|
|
@@ -2886,43 +2886,43 @@ var Wi = (
|
|
|
2886
2886
|
var h = Xi(f.val);
|
|
2887
2887
|
if (h.length === 0)
|
|
2888
2888
|
return this.error(P.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
|
|
2889
|
-
var
|
|
2890
|
-
u = { style: h, styleLocation:
|
|
2889
|
+
var m = N(c, this.clonePosition());
|
|
2890
|
+
u = { style: h, styleLocation: m };
|
|
2891
2891
|
}
|
|
2892
|
-
var
|
|
2893
|
-
if (
|
|
2894
|
-
return
|
|
2895
|
-
var
|
|
2896
|
-
if (u &&
|
|
2897
|
-
var
|
|
2892
|
+
var x = this.tryParseArgumentClose(i);
|
|
2893
|
+
if (x.err)
|
|
2894
|
+
return x;
|
|
2895
|
+
var d = N(i, this.clonePosition());
|
|
2896
|
+
if (u && Ln(u == null ? void 0 : u.style, "::", 0)) {
|
|
2897
|
+
var E = ji(u.style.slice(2));
|
|
2898
2898
|
if (l === "number") {
|
|
2899
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2899
|
+
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2900
2900
|
return f.err ? f : {
|
|
2901
|
-
val: { type:
|
|
2901
|
+
val: { type: D.number, value: r, location: d, style: f.val },
|
|
2902
2902
|
err: null
|
|
2903
2903
|
};
|
|
2904
2904
|
} else {
|
|
2905
|
-
if (
|
|
2906
|
-
return this.error(P.EXPECT_DATE_TIME_SKELETON,
|
|
2907
|
-
var
|
|
2908
|
-
this.locale && (
|
|
2905
|
+
if (E.length === 0)
|
|
2906
|
+
return this.error(P.EXPECT_DATE_TIME_SKELETON, d);
|
|
2907
|
+
var v = E;
|
|
2908
|
+
this.locale && (v = Ii(E, this.locale));
|
|
2909
2909
|
var h = {
|
|
2910
|
-
type:
|
|
2911
|
-
pattern:
|
|
2910
|
+
type: We.dateTime,
|
|
2911
|
+
pattern: v,
|
|
2912
2912
|
location: u.styleLocation,
|
|
2913
|
-
parsedOptions: this.shouldParseSkeletons ? Ai(
|
|
2914
|
-
}, L = l === "date" ?
|
|
2913
|
+
parsedOptions: this.shouldParseSkeletons ? Ai(v) : {}
|
|
2914
|
+
}, L = l === "date" ? D.date : D.time;
|
|
2915
2915
|
return {
|
|
2916
|
-
val: { type: L, value: r, location:
|
|
2916
|
+
val: { type: L, value: r, location: d, style: h },
|
|
2917
2917
|
err: null
|
|
2918
2918
|
};
|
|
2919
2919
|
}
|
|
2920
2920
|
}
|
|
2921
2921
|
return {
|
|
2922
2922
|
val: {
|
|
2923
|
-
type: l === "number" ?
|
|
2923
|
+
type: l === "number" ? D.number : l === "date" ? D.date : D.time,
|
|
2924
2924
|
value: r,
|
|
2925
|
-
location:
|
|
2925
|
+
location: d,
|
|
2926
2926
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2927
2927
|
},
|
|
2928
2928
|
err: null
|
|
@@ -2933,41 +2933,41 @@ var Wi = (
|
|
|
2933
2933
|
case "select": {
|
|
2934
2934
|
var C = this.clonePosition();
|
|
2935
2935
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2936
|
-
return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS, N(C,
|
|
2936
|
+
return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS, N(C, Ct({}, C)));
|
|
2937
2937
|
this.bumpSpace();
|
|
2938
|
-
var
|
|
2939
|
-
if (l !== "select" &&
|
|
2938
|
+
var Y = this.parseIdentifierIfPossible(), R = 0;
|
|
2939
|
+
if (l !== "select" && Y.value === "offset") {
|
|
2940
2940
|
if (!this.bumpIf(":"))
|
|
2941
2941
|
return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
|
|
2942
2942
|
this.bumpSpace();
|
|
2943
2943
|
var f = this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2944
2944
|
if (f.err)
|
|
2945
2945
|
return f;
|
|
2946
|
-
this.bumpSpace(),
|
|
2946
|
+
this.bumpSpace(), Y = this.parseIdentifierIfPossible(), R = f.val;
|
|
2947
2947
|
}
|
|
2948
|
-
var
|
|
2949
|
-
if (
|
|
2950
|
-
return
|
|
2951
|
-
var
|
|
2952
|
-
if (
|
|
2953
|
-
return
|
|
2954
|
-
var
|
|
2948
|
+
var ie = this.tryParsePluralOrSelectOptions(t, l, n, Y);
|
|
2949
|
+
if (ie.err)
|
|
2950
|
+
return ie;
|
|
2951
|
+
var x = this.tryParseArgumentClose(i);
|
|
2952
|
+
if (x.err)
|
|
2953
|
+
return x;
|
|
2954
|
+
var se = N(i, this.clonePosition());
|
|
2955
2955
|
return l === "select" ? {
|
|
2956
2956
|
val: {
|
|
2957
|
-
type:
|
|
2957
|
+
type: D.select,
|
|
2958
2958
|
value: r,
|
|
2959
|
-
options:
|
|
2960
|
-
location:
|
|
2959
|
+
options: Nn(ie.val),
|
|
2960
|
+
location: se
|
|
2961
2961
|
},
|
|
2962
2962
|
err: null
|
|
2963
2963
|
} : {
|
|
2964
2964
|
val: {
|
|
2965
|
-
type:
|
|
2965
|
+
type: D.plural,
|
|
2966
2966
|
value: r,
|
|
2967
|
-
options:
|
|
2968
|
-
offset:
|
|
2967
|
+
options: Nn(ie.val),
|
|
2968
|
+
offset: R,
|
|
2969
2969
|
pluralType: l === "plural" ? "cardinal" : "ordinal",
|
|
2970
|
-
location:
|
|
2970
|
+
location: se
|
|
2971
2971
|
},
|
|
2972
2972
|
err: null
|
|
2973
2973
|
};
|
|
@@ -3021,7 +3021,7 @@ var Wi = (
|
|
|
3021
3021
|
}
|
|
3022
3022
|
return {
|
|
3023
3023
|
val: {
|
|
3024
|
-
type:
|
|
3024
|
+
type: We.number,
|
|
3025
3025
|
tokens: r,
|
|
3026
3026
|
location: n,
|
|
3027
3027
|
parsedOptions: this.shouldParseSkeletons ? Pi(r) : {}
|
|
@@ -3043,20 +3043,20 @@ var Wi = (
|
|
|
3043
3043
|
if (s.has(u))
|
|
3044
3044
|
return this.error(n === "select" ? P.DUPLICATE_SELECT_ARGUMENT_SELECTOR : P.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3045
3045
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3046
|
-
var
|
|
3046
|
+
var m = this.clonePosition();
|
|
3047
3047
|
if (!this.bumpIf("{"))
|
|
3048
3048
|
return this.error(n === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : P.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
|
|
3049
|
-
var
|
|
3050
|
-
if (
|
|
3051
|
-
return
|
|
3052
|
-
var
|
|
3053
|
-
if (
|
|
3054
|
-
return
|
|
3049
|
+
var x = this.parseMessage(t + 1, n, r);
|
|
3050
|
+
if (x.err)
|
|
3051
|
+
return x;
|
|
3052
|
+
var d = this.tryParseArgumentClose(m);
|
|
3053
|
+
if (d.err)
|
|
3054
|
+
return d;
|
|
3055
3055
|
l.push([
|
|
3056
3056
|
u,
|
|
3057
3057
|
{
|
|
3058
|
-
value:
|
|
3059
|
-
location: N(
|
|
3058
|
+
value: x.val,
|
|
3059
|
+
location: N(m, this.clonePosition())
|
|
3060
3060
|
}
|
|
3061
3061
|
]), s.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
|
|
3062
3062
|
}
|
|
@@ -3087,7 +3087,7 @@ var Wi = (
|
|
|
3087
3087
|
var t = this.position.offset;
|
|
3088
3088
|
if (t >= this.message.length)
|
|
3089
3089
|
throw Error("out of bound");
|
|
3090
|
-
var n =
|
|
3090
|
+
var n = yr(this.message, t);
|
|
3091
3091
|
if (n === void 0)
|
|
3092
3092
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3093
3093
|
return n;
|
|
@@ -3106,7 +3106,7 @@ var Wi = (
|
|
|
3106
3106
|
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);
|
|
3107
3107
|
}
|
|
3108
3108
|
}, e.prototype.bumpIf = function(t) {
|
|
3109
|
-
if (
|
|
3109
|
+
if (Ln(this.message, t, this.offset())) {
|
|
3110
3110
|
for (var n = 0; n < t.length; n++)
|
|
3111
3111
|
this.bump();
|
|
3112
3112
|
return !0;
|
|
@@ -3128,7 +3128,7 @@ var Wi = (
|
|
|
3128
3128
|
break;
|
|
3129
3129
|
}
|
|
3130
3130
|
}, e.prototype.bumpSpace = function() {
|
|
3131
|
-
for (; !this.isEOF() &&
|
|
3131
|
+
for (; !this.isEOF() && _r(this.char()); )
|
|
3132
3132
|
this.bump();
|
|
3133
3133
|
}, e.prototype.peek = function() {
|
|
3134
3134
|
if (this.isEOF())
|
|
@@ -3138,47 +3138,47 @@ var Wi = (
|
|
|
3138
3138
|
}, e;
|
|
3139
3139
|
}()
|
|
3140
3140
|
);
|
|
3141
|
-
function
|
|
3141
|
+
function sn(e) {
|
|
3142
3142
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3143
3143
|
}
|
|
3144
3144
|
function zi(e) {
|
|
3145
|
-
return
|
|
3145
|
+
return sn(e) || e === 47;
|
|
3146
3146
|
}
|
|
3147
3147
|
function Zi(e) {
|
|
3148
3148
|
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;
|
|
3149
3149
|
}
|
|
3150
|
-
function
|
|
3150
|
+
function _r(e) {
|
|
3151
3151
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3152
3152
|
}
|
|
3153
3153
|
function Qi(e) {
|
|
3154
3154
|
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;
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function ln(e) {
|
|
3157
3157
|
e.forEach(function(t) {
|
|
3158
|
-
if (delete t.location,
|
|
3158
|
+
if (delete t.location, cr(t) || hr(t))
|
|
3159
3159
|
for (var n in t.options)
|
|
3160
|
-
delete t.options[n].location,
|
|
3160
|
+
delete t.options[n].location, ln(t.options[n].value);
|
|
3161
3161
|
else
|
|
3162
|
-
|
|
3162
|
+
sr(t) && pr(t.style) || (lr(t) || ur(t)) && nn(t.style) ? delete t.style.location : fr(t) && ln(t.children);
|
|
3163
3163
|
});
|
|
3164
3164
|
}
|
|
3165
3165
|
function Ki(e, t) {
|
|
3166
|
-
t === void 0 && (t = {}), t =
|
|
3166
|
+
t === void 0 && (t = {}), t = Ct({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3167
3167
|
var n = new Wi(e, t).parse();
|
|
3168
3168
|
if (n.err) {
|
|
3169
3169
|
var r = SyntaxError(P[n.err.kind]);
|
|
3170
3170
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3171
3171
|
}
|
|
3172
|
-
return t != null && t.captureLocation ||
|
|
3172
|
+
return t != null && t.captureLocation || ln(n.val), n.val;
|
|
3173
3173
|
}
|
|
3174
|
-
var
|
|
3174
|
+
var ze;
|
|
3175
3175
|
(function(e) {
|
|
3176
3176
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3177
|
-
})(
|
|
3178
|
-
var
|
|
3177
|
+
})(ze || (ze = {}));
|
|
3178
|
+
var Lt = (
|
|
3179
3179
|
/** @class */
|
|
3180
3180
|
function(e) {
|
|
3181
|
-
|
|
3181
|
+
It(t, e);
|
|
3182
3182
|
function t(n, r, i) {
|
|
3183
3183
|
var o = e.call(this, n) || this;
|
|
3184
3184
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3187,66 +3187,66 @@ var Nt = (
|
|
|
3187
3187
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3188
3188
|
}, t;
|
|
3189
3189
|
}(Error)
|
|
3190
|
-
),
|
|
3190
|
+
), Rn = (
|
|
3191
3191
|
/** @class */
|
|
3192
3192
|
function(e) {
|
|
3193
|
-
|
|
3193
|
+
It(t, e);
|
|
3194
3194
|
function t(n, r, i, o) {
|
|
3195
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3195
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ze.INVALID_VALUE, o) || this;
|
|
3196
3196
|
}
|
|
3197
3197
|
return t;
|
|
3198
|
-
}(
|
|
3198
|
+
}(Lt)
|
|
3199
3199
|
), Yi = (
|
|
3200
3200
|
/** @class */
|
|
3201
3201
|
function(e) {
|
|
3202
|
-
|
|
3202
|
+
It(t, e);
|
|
3203
3203
|
function t(n, r, i) {
|
|
3204
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3204
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ze.INVALID_VALUE, i) || this;
|
|
3205
3205
|
}
|
|
3206
3206
|
return t;
|
|
3207
|
-
}(
|
|
3207
|
+
}(Lt)
|
|
3208
3208
|
), Ji = (
|
|
3209
3209
|
/** @class */
|
|
3210
3210
|
function(e) {
|
|
3211
|
-
|
|
3211
|
+
It(t, e);
|
|
3212
3212
|
function t(n, r) {
|
|
3213
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3213
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ze.MISSING_VALUE, r) || this;
|
|
3214
3214
|
}
|
|
3215
3215
|
return t;
|
|
3216
|
-
}(
|
|
3217
|
-
),
|
|
3216
|
+
}(Lt)
|
|
3217
|
+
), te;
|
|
3218
3218
|
(function(e) {
|
|
3219
3219
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3220
|
-
})(
|
|
3220
|
+
})(te || (te = {}));
|
|
3221
3221
|
function qi(e) {
|
|
3222
3222
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3223
3223
|
var r = t[t.length - 1];
|
|
3224
|
-
return !r || r.type !==
|
|
3224
|
+
return !r || r.type !== te.literal || n.type !== te.literal ? t.push(n) : r.value += n.value, t;
|
|
3225
3225
|
}, []);
|
|
3226
3226
|
}
|
|
3227
3227
|
function eo(e) {
|
|
3228
3228
|
return typeof e == "function";
|
|
3229
3229
|
}
|
|
3230
|
-
function
|
|
3231
|
-
if (e.length === 1 &&
|
|
3230
|
+
function xt(e, t, n, r, i, o, a) {
|
|
3231
|
+
if (e.length === 1 && Sn(e[0]))
|
|
3232
3232
|
return [
|
|
3233
3233
|
{
|
|
3234
|
-
type:
|
|
3234
|
+
type: te.literal,
|
|
3235
3235
|
value: e[0].value
|
|
3236
3236
|
}
|
|
3237
3237
|
];
|
|
3238
3238
|
for (var l = [], s = 0, u = e; s < u.length; s++) {
|
|
3239
3239
|
var c = u[s];
|
|
3240
|
-
if (
|
|
3240
|
+
if (Sn(c)) {
|
|
3241
3241
|
l.push({
|
|
3242
|
-
type:
|
|
3242
|
+
type: te.literal,
|
|
3243
3243
|
value: c.value
|
|
3244
3244
|
});
|
|
3245
3245
|
continue;
|
|
3246
3246
|
}
|
|
3247
3247
|
if (xi(c)) {
|
|
3248
3248
|
typeof o == "number" && l.push({
|
|
3249
|
-
type:
|
|
3249
|
+
type: te.literal,
|
|
3250
3250
|
value: n.getNumberFormat(t).format(o)
|
|
3251
3251
|
});
|
|
3252
3252
|
continue;
|
|
@@ -3257,85 +3257,85 @@ function wt(e, t, n, r, i, o, a) {
|
|
|
3257
3257
|
var h = i[f];
|
|
3258
3258
|
if (Ei(c)) {
|
|
3259
3259
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), l.push({
|
|
3260
|
-
type: typeof h == "string" ?
|
|
3260
|
+
type: typeof h == "string" ? te.literal : te.object,
|
|
3261
3261
|
value: h
|
|
3262
3262
|
});
|
|
3263
3263
|
continue;
|
|
3264
3264
|
}
|
|
3265
|
-
if (
|
|
3266
|
-
var
|
|
3265
|
+
if (lr(c)) {
|
|
3266
|
+
var m = typeof c.style == "string" ? r.date[c.style] : nn(c.style) ? c.style.parsedOptions : void 0;
|
|
3267
3267
|
l.push({
|
|
3268
|
-
type:
|
|
3269
|
-
value: n.getDateTimeFormat(t,
|
|
3268
|
+
type: te.literal,
|
|
3269
|
+
value: n.getDateTimeFormat(t, m).format(h)
|
|
3270
3270
|
});
|
|
3271
3271
|
continue;
|
|
3272
3272
|
}
|
|
3273
|
-
if (
|
|
3274
|
-
var
|
|
3273
|
+
if (ur(c)) {
|
|
3274
|
+
var m = typeof c.style == "string" ? r.time[c.style] : nn(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3275
3275
|
l.push({
|
|
3276
|
-
type:
|
|
3277
|
-
value: n.getDateTimeFormat(t,
|
|
3276
|
+
type: te.literal,
|
|
3277
|
+
value: n.getDateTimeFormat(t, m).format(h)
|
|
3278
3278
|
});
|
|
3279
3279
|
continue;
|
|
3280
3280
|
}
|
|
3281
|
-
if (
|
|
3282
|
-
var
|
|
3283
|
-
|
|
3284
|
-
type:
|
|
3285
|
-
value: n.getNumberFormat(t,
|
|
3281
|
+
if (sr(c)) {
|
|
3282
|
+
var m = typeof c.style == "string" ? r.number[c.style] : pr(c.style) ? c.style.parsedOptions : void 0;
|
|
3283
|
+
m && m.scale && (h = h * (m.scale || 1)), l.push({
|
|
3284
|
+
type: te.literal,
|
|
3285
|
+
value: n.getNumberFormat(t, m).format(h)
|
|
3286
3286
|
});
|
|
3287
3287
|
continue;
|
|
3288
3288
|
}
|
|
3289
|
-
if (
|
|
3290
|
-
var
|
|
3291
|
-
if (!eo(
|
|
3292
|
-
throw new Yi(
|
|
3293
|
-
var
|
|
3294
|
-
return
|
|
3289
|
+
if (fr(c)) {
|
|
3290
|
+
var x = c.children, d = c.value, E = i[d];
|
|
3291
|
+
if (!eo(E))
|
|
3292
|
+
throw new Yi(d, "function", a);
|
|
3293
|
+
var v = xt(x, t, n, r, i, o), L = E(v.map(function(R) {
|
|
3294
|
+
return R.value;
|
|
3295
3295
|
}));
|
|
3296
|
-
Array.isArray(L) || (L = [L]), l.push.apply(l, L.map(function(
|
|
3296
|
+
Array.isArray(L) || (L = [L]), l.push.apply(l, L.map(function(R) {
|
|
3297
3297
|
return {
|
|
3298
|
-
type: typeof
|
|
3299
|
-
value:
|
|
3298
|
+
type: typeof R == "string" ? te.literal : te.object,
|
|
3299
|
+
value: R
|
|
3300
3300
|
};
|
|
3301
3301
|
}));
|
|
3302
3302
|
}
|
|
3303
|
-
if (
|
|
3303
|
+
if (cr(c)) {
|
|
3304
3304
|
var C = c.options[h] || c.options.other;
|
|
3305
3305
|
if (!C)
|
|
3306
|
-
throw new
|
|
3307
|
-
l.push.apply(l,
|
|
3306
|
+
throw new Rn(c.value, h, Object.keys(c.options), a);
|
|
3307
|
+
l.push.apply(l, xt(C.value, t, n, r, i));
|
|
3308
3308
|
continue;
|
|
3309
3309
|
}
|
|
3310
|
-
if (
|
|
3310
|
+
if (hr(c)) {
|
|
3311
3311
|
var C = c.options["=".concat(h)];
|
|
3312
3312
|
if (!C) {
|
|
3313
3313
|
if (!Intl.PluralRules)
|
|
3314
|
-
throw new
|
|
3314
|
+
throw new Lt(`Intl.PluralRules is not available in this environment.
|
|
3315
3315
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3316
|
-
`,
|
|
3317
|
-
var
|
|
3318
|
-
C = c.options[
|
|
3316
|
+
`, ze.MISSING_INTL_API, a);
|
|
3317
|
+
var Y = n.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3318
|
+
C = c.options[Y] || c.options.other;
|
|
3319
3319
|
}
|
|
3320
3320
|
if (!C)
|
|
3321
|
-
throw new
|
|
3322
|
-
l.push.apply(l,
|
|
3321
|
+
throw new Rn(c.value, h, Object.keys(c.options), a);
|
|
3322
|
+
l.push.apply(l, xt(C.value, t, n, r, i, h - (c.offset || 0)));
|
|
3323
3323
|
continue;
|
|
3324
3324
|
}
|
|
3325
3325
|
}
|
|
3326
3326
|
return qi(l);
|
|
3327
3327
|
}
|
|
3328
3328
|
function to(e, t) {
|
|
3329
|
-
return t ?
|
|
3330
|
-
return n[r] =
|
|
3329
|
+
return t ? me(me(me({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3330
|
+
return n[r] = me(me({}, e[r]), t[r] || {}), n;
|
|
3331
3331
|
}, {})) : e;
|
|
3332
3332
|
}
|
|
3333
3333
|
function no(e, t) {
|
|
3334
3334
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3335
3335
|
return n[r] = to(e[r], t[r]), n;
|
|
3336
|
-
},
|
|
3336
|
+
}, me({}, e)) : e;
|
|
3337
3337
|
}
|
|
3338
|
-
function
|
|
3338
|
+
function Qt(e) {
|
|
3339
3339
|
return {
|
|
3340
3340
|
create: function() {
|
|
3341
3341
|
return {
|
|
@@ -3355,29 +3355,29 @@ function ro(e) {
|
|
|
3355
3355
|
dateTime: {},
|
|
3356
3356
|
pluralRules: {}
|
|
3357
3357
|
}), {
|
|
3358
|
-
getNumberFormat:
|
|
3358
|
+
getNumberFormat: Wt(function() {
|
|
3359
3359
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3360
3360
|
n[r] = arguments[r];
|
|
3361
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3361
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Xt([void 0], n, !1)))();
|
|
3362
3362
|
}, {
|
|
3363
|
-
cache:
|
|
3364
|
-
strategy:
|
|
3363
|
+
cache: Qt(e.number),
|
|
3364
|
+
strategy: zt.variadic
|
|
3365
3365
|
}),
|
|
3366
|
-
getDateTimeFormat:
|
|
3366
|
+
getDateTimeFormat: Wt(function() {
|
|
3367
3367
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3368
3368
|
n[r] = arguments[r];
|
|
3369
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3369
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Xt([void 0], n, !1)))();
|
|
3370
3370
|
}, {
|
|
3371
|
-
cache:
|
|
3372
|
-
strategy:
|
|
3371
|
+
cache: Qt(e.dateTime),
|
|
3372
|
+
strategy: zt.variadic
|
|
3373
3373
|
}),
|
|
3374
|
-
getPluralRules:
|
|
3374
|
+
getPluralRules: Wt(function() {
|
|
3375
3375
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3376
3376
|
n[r] = arguments[r];
|
|
3377
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3377
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Xt([void 0], n, !1)))();
|
|
3378
3378
|
}, {
|
|
3379
|
-
cache:
|
|
3380
|
-
strategy:
|
|
3379
|
+
cache: Qt(e.pluralRules),
|
|
3380
|
+
strategy: zt.variadic
|
|
3381
3381
|
})
|
|
3382
3382
|
};
|
|
3383
3383
|
}
|
|
@@ -3396,11 +3396,11 @@ var io = (
|
|
|
3396
3396
|
if (u.length === 1)
|
|
3397
3397
|
return u[0].value;
|
|
3398
3398
|
var c = u.reduce(function(f, h) {
|
|
3399
|
-
return !f.length || h.type !==
|
|
3399
|
+
return !f.length || h.type !== te.literal || typeof f[f.length - 1] != "string" ? f.push(h.value) : f[f.length - 1] += h.value, f;
|
|
3400
3400
|
}, []);
|
|
3401
3401
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3402
3402
|
}, this.formatToParts = function(s) {
|
|
3403
|
-
return
|
|
3403
|
+
return xt(o.ast, o.locales, o.formatters, o.formats, s, void 0, o.message);
|
|
3404
3404
|
}, this.resolvedOptions = function() {
|
|
3405
3405
|
var s;
|
|
3406
3406
|
return {
|
|
@@ -3414,7 +3414,7 @@ var io = (
|
|
|
3414
3414
|
var a = i || {};
|
|
3415
3415
|
a.formatters;
|
|
3416
3416
|
var l = pi(a, ["formatters"]);
|
|
3417
|
-
this.ast = e.__parse(t,
|
|
3417
|
+
this.ast = e.__parse(t, me(me({}, l), { locale: this.resolvedLocale }));
|
|
3418
3418
|
} else
|
|
3419
3419
|
this.ast = t;
|
|
3420
3420
|
if (!Array.isArray(this.ast))
|
|
@@ -3514,28 +3514,28 @@ function oo(e, t) {
|
|
|
3514
3514
|
r = void 0;
|
|
3515
3515
|
return r;
|
|
3516
3516
|
}
|
|
3517
|
-
const
|
|
3517
|
+
const Ae = {}, ao = (e, t, n) => n && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = n), n), Er = (e, t) => {
|
|
3518
3518
|
if (t == null)
|
|
3519
3519
|
return;
|
|
3520
|
-
if (t in
|
|
3521
|
-
return
|
|
3522
|
-
const n =
|
|
3520
|
+
if (t in Ae && e in Ae[t])
|
|
3521
|
+
return Ae[t][e];
|
|
3522
|
+
const n = Nt(t);
|
|
3523
3523
|
for (let r = 0; r < n.length; r++) {
|
|
3524
3524
|
const i = n[r], o = lo(i, e);
|
|
3525
3525
|
if (o)
|
|
3526
3526
|
return ao(e, t, o);
|
|
3527
3527
|
}
|
|
3528
3528
|
};
|
|
3529
|
-
let
|
|
3530
|
-
const
|
|
3529
|
+
let gn;
|
|
3530
|
+
const Ke = Pt({});
|
|
3531
3531
|
function so(e) {
|
|
3532
|
-
return
|
|
3532
|
+
return gn[e] || null;
|
|
3533
3533
|
}
|
|
3534
|
-
function
|
|
3535
|
-
return e in
|
|
3534
|
+
function xr(e) {
|
|
3535
|
+
return e in gn;
|
|
3536
3536
|
}
|
|
3537
3537
|
function lo(e, t) {
|
|
3538
|
-
if (!
|
|
3538
|
+
if (!xr(e))
|
|
3539
3539
|
return null;
|
|
3540
3540
|
const n = so(e);
|
|
3541
3541
|
return oo(n, t);
|
|
@@ -3543,61 +3543,61 @@ function lo(e, t) {
|
|
|
3543
3543
|
function uo(e) {
|
|
3544
3544
|
if (e == null)
|
|
3545
3545
|
return;
|
|
3546
|
-
const t =
|
|
3546
|
+
const t = Nt(e);
|
|
3547
3547
|
for (let n = 0; n < t.length; n++) {
|
|
3548
3548
|
const r = t[n];
|
|
3549
|
-
if (
|
|
3549
|
+
if (xr(r))
|
|
3550
3550
|
return r;
|
|
3551
3551
|
}
|
|
3552
3552
|
}
|
|
3553
|
-
function
|
|
3554
|
-
delete
|
|
3553
|
+
function wr(e, ...t) {
|
|
3554
|
+
delete Ae[e], Ke.update((n) => (n[e] = fi.all([n[e] || {}, ...t]), n));
|
|
3555
3555
|
}
|
|
3556
|
-
|
|
3557
|
-
[
|
|
3556
|
+
Qe(
|
|
3557
|
+
[Ke],
|
|
3558
3558
|
([e]) => Object.keys(e)
|
|
3559
3559
|
);
|
|
3560
|
-
|
|
3561
|
-
const
|
|
3560
|
+
Ke.subscribe((e) => gn = e);
|
|
3561
|
+
const wt = {};
|
|
3562
3562
|
function co(e, t) {
|
|
3563
|
-
|
|
3563
|
+
wt[e].delete(t), wt[e].size === 0 && delete wt[e];
|
|
3564
3564
|
}
|
|
3565
|
-
function
|
|
3566
|
-
return
|
|
3565
|
+
function Ar(e) {
|
|
3566
|
+
return wt[e];
|
|
3567
3567
|
}
|
|
3568
3568
|
function ho(e) {
|
|
3569
|
-
return
|
|
3570
|
-
const n =
|
|
3569
|
+
return Nt(e).map((t) => {
|
|
3570
|
+
const n = Ar(t);
|
|
3571
3571
|
return [t, n ? [...n] : []];
|
|
3572
3572
|
}).filter(([, t]) => t.length > 0);
|
|
3573
3573
|
}
|
|
3574
|
-
function
|
|
3575
|
-
return e == null ? !1 :
|
|
3574
|
+
function un(e) {
|
|
3575
|
+
return e == null ? !1 : Nt(e).some(
|
|
3576
3576
|
(t) => {
|
|
3577
3577
|
var n;
|
|
3578
|
-
return (n =
|
|
3578
|
+
return (n = Ar(t)) == null ? void 0 : n.size;
|
|
3579
3579
|
}
|
|
3580
3580
|
);
|
|
3581
3581
|
}
|
|
3582
3582
|
function fo(e, t) {
|
|
3583
3583
|
return Promise.all(
|
|
3584
3584
|
t.map((r) => (co(e, r), r().then((i) => i.default || i)))
|
|
3585
|
-
).then((r) =>
|
|
3585
|
+
).then((r) => wr(e, ...r));
|
|
3586
3586
|
}
|
|
3587
|
-
const
|
|
3588
|
-
function
|
|
3589
|
-
if (!
|
|
3590
|
-
return e in
|
|
3587
|
+
const rt = {};
|
|
3588
|
+
function Tr(e) {
|
|
3589
|
+
if (!un(e))
|
|
3590
|
+
return e in rt ? rt[e] : Promise.resolve();
|
|
3591
3591
|
const t = ho(e);
|
|
3592
|
-
return
|
|
3592
|
+
return rt[e] = Promise.all(
|
|
3593
3593
|
t.map(
|
|
3594
3594
|
([n, r]) => fo(n, r)
|
|
3595
3595
|
)
|
|
3596
3596
|
).then(() => {
|
|
3597
|
-
if (
|
|
3598
|
-
return
|
|
3599
|
-
delete
|
|
3600
|
-
}),
|
|
3597
|
+
if (un(e))
|
|
3598
|
+
return Tr(e);
|
|
3599
|
+
delete rt[e];
|
|
3600
|
+
}), rt[e];
|
|
3601
3601
|
}
|
|
3602
3602
|
const po = {
|
|
3603
3603
|
number: {
|
|
@@ -3636,125 +3636,125 @@ const po = {
|
|
|
3636
3636
|
handleMissingMessage: void 0,
|
|
3637
3637
|
ignoreTag: !0
|
|
3638
3638
|
}, go = mo;
|
|
3639
|
-
function
|
|
3639
|
+
function Ze() {
|
|
3640
3640
|
return go;
|
|
3641
3641
|
}
|
|
3642
|
-
const
|
|
3643
|
-
var bo = Object.defineProperty, yo = Object.defineProperties, vo = Object.getOwnPropertyDescriptors,
|
|
3642
|
+
const Kt = Pt(!1);
|
|
3643
|
+
var bo = Object.defineProperty, yo = Object.defineProperties, vo = Object.getOwnPropertyDescriptors, kn = Object.getOwnPropertySymbols, _o = Object.prototype.hasOwnProperty, Eo = Object.prototype.propertyIsEnumerable, Dn = (e, t, n) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, xo = (e, t) => {
|
|
3644
3644
|
for (var n in t || (t = {}))
|
|
3645
|
-
_o.call(t, n) &&
|
|
3646
|
-
if (
|
|
3647
|
-
for (var n of
|
|
3648
|
-
Eo.call(t, n) &&
|
|
3645
|
+
_o.call(t, n) && Dn(e, n, t[n]);
|
|
3646
|
+
if (kn)
|
|
3647
|
+
for (var n of kn(t))
|
|
3648
|
+
Eo.call(t, n) && Dn(e, n, t[n]);
|
|
3649
3649
|
return e;
|
|
3650
3650
|
}, wo = (e, t) => yo(e, vo(t));
|
|
3651
|
-
let
|
|
3652
|
-
const
|
|
3653
|
-
function
|
|
3651
|
+
let cn;
|
|
3652
|
+
const Bt = Pt(null);
|
|
3653
|
+
function Mn(e) {
|
|
3654
3654
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3655
3655
|
}
|
|
3656
|
-
function
|
|
3657
|
-
const n =
|
|
3658
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3656
|
+
function Nt(e, t = Ze().fallbackLocale) {
|
|
3657
|
+
const n = Mn(e);
|
|
3658
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Mn(t)])] : n;
|
|
3659
3659
|
}
|
|
3660
|
-
function
|
|
3661
|
-
return
|
|
3660
|
+
function Ie() {
|
|
3661
|
+
return cn != null ? cn : void 0;
|
|
3662
3662
|
}
|
|
3663
|
-
|
|
3664
|
-
|
|
3663
|
+
Bt.subscribe((e) => {
|
|
3664
|
+
cn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3665
3665
|
});
|
|
3666
3666
|
const Ao = (e) => {
|
|
3667
|
-
if (e && uo(e) &&
|
|
3668
|
-
const { loadingDelay: t } =
|
|
3667
|
+
if (e && uo(e) && un(e)) {
|
|
3668
|
+
const { loadingDelay: t } = Ze();
|
|
3669
3669
|
let n;
|
|
3670
|
-
return typeof window != "undefined" &&
|
|
3671
|
-
() =>
|
|
3670
|
+
return typeof window != "undefined" && Ie() != null && t ? n = window.setTimeout(
|
|
3671
|
+
() => Kt.set(!0),
|
|
3672
3672
|
t
|
|
3673
|
-
) :
|
|
3674
|
-
|
|
3673
|
+
) : Kt.set(!0), Tr(e).then(() => {
|
|
3674
|
+
Bt.set(e);
|
|
3675
3675
|
}).finally(() => {
|
|
3676
|
-
clearTimeout(n),
|
|
3676
|
+
clearTimeout(n), Kt.set(!1);
|
|
3677
3677
|
});
|
|
3678
3678
|
}
|
|
3679
|
-
return
|
|
3680
|
-
},
|
|
3679
|
+
return Bt.set(e);
|
|
3680
|
+
}, Te = wo(xo({}, Bt), {
|
|
3681
3681
|
set: Ao
|
|
3682
|
-
}),
|
|
3682
|
+
}), Ot = (e) => {
|
|
3683
3683
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3684
3684
|
return (r) => {
|
|
3685
3685
|
const i = JSON.stringify(r);
|
|
3686
3686
|
return i in t ? t[i] : t[i] = e(r);
|
|
3687
3687
|
};
|
|
3688
3688
|
};
|
|
3689
|
-
var To = Object.defineProperty,
|
|
3689
|
+
var To = Object.defineProperty, St = Object.getOwnPropertySymbols, Cr = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, Un = (e, t, n) => t in e ? To(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, bn = (e, t) => {
|
|
3690
3690
|
for (var n in t || (t = {}))
|
|
3691
|
-
|
|
3692
|
-
if (
|
|
3693
|
-
for (var n of
|
|
3694
|
-
|
|
3691
|
+
Cr.call(t, n) && Un(e, n, t[n]);
|
|
3692
|
+
if (St)
|
|
3693
|
+
for (var n of St(t))
|
|
3694
|
+
Br.call(t, n) && Un(e, n, t[n]);
|
|
3695
3695
|
return e;
|
|
3696
|
-
},
|
|
3696
|
+
}, Ye = (e, t) => {
|
|
3697
3697
|
var n = {};
|
|
3698
3698
|
for (var r in e)
|
|
3699
|
-
|
|
3700
|
-
if (e != null &&
|
|
3701
|
-
for (var r of
|
|
3702
|
-
t.indexOf(r) < 0 &&
|
|
3699
|
+
Cr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3700
|
+
if (e != null && St)
|
|
3701
|
+
for (var r of St(e))
|
|
3702
|
+
t.indexOf(r) < 0 && Br.call(e, r) && (n[r] = e[r]);
|
|
3703
3703
|
return n;
|
|
3704
3704
|
};
|
|
3705
|
-
const
|
|
3706
|
-
const { formats: n } =
|
|
3705
|
+
const lt = (e, t) => {
|
|
3706
|
+
const { formats: n } = Ze();
|
|
3707
3707
|
if (e in n && t in n[e])
|
|
3708
3708
|
return n[e][t];
|
|
3709
3709
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3710
|
-
}, Co =
|
|
3710
|
+
}, Co = Ot(
|
|
3711
3711
|
(e) => {
|
|
3712
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3712
|
+
var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
|
|
3713
3713
|
if (n == null)
|
|
3714
3714
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3715
|
-
return r && (i =
|
|
3715
|
+
return r && (i = lt("number", r)), new Intl.NumberFormat(n, i);
|
|
3716
3716
|
}
|
|
3717
|
-
), Bo =
|
|
3717
|
+
), Bo = Ot(
|
|
3718
3718
|
(e) => {
|
|
3719
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3719
|
+
var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
|
|
3720
3720
|
if (n == null)
|
|
3721
3721
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3722
|
-
return r ? i =
|
|
3722
|
+
return r ? i = lt("date", r) : Object.keys(i).length === 0 && (i = lt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3723
3723
|
}
|
|
3724
|
-
), So =
|
|
3724
|
+
), So = Ot(
|
|
3725
3725
|
(e) => {
|
|
3726
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3726
|
+
var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
|
|
3727
3727
|
if (n == null)
|
|
3728
3728
|
throw new Error(
|
|
3729
3729
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3730
3730
|
);
|
|
3731
|
-
return r ? i =
|
|
3731
|
+
return r ? i = lt("time", r) : Object.keys(i).length === 0 && (i = lt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3732
3732
|
}
|
|
3733
3733
|
), Ho = (e = {}) => {
|
|
3734
3734
|
var t = e, {
|
|
3735
|
-
locale: n =
|
|
3736
|
-
} = t, r =
|
|
3735
|
+
locale: n = Ie()
|
|
3736
|
+
} = t, r = Ye(t, [
|
|
3737
3737
|
"locale"
|
|
3738
3738
|
]);
|
|
3739
|
-
return Co(
|
|
3739
|
+
return Co(bn({ locale: n }, r));
|
|
3740
3740
|
}, Po = (e = {}) => {
|
|
3741
3741
|
var t = e, {
|
|
3742
|
-
locale: n =
|
|
3743
|
-
} = t, r =
|
|
3742
|
+
locale: n = Ie()
|
|
3743
|
+
} = t, r = Ye(t, [
|
|
3744
3744
|
"locale"
|
|
3745
3745
|
]);
|
|
3746
|
-
return Bo(
|
|
3746
|
+
return Bo(bn({ locale: n }, r));
|
|
3747
3747
|
}, Io = (e = {}) => {
|
|
3748
3748
|
var t = e, {
|
|
3749
|
-
locale: n =
|
|
3750
|
-
} = t, r =
|
|
3749
|
+
locale: n = Ie()
|
|
3750
|
+
} = t, r = Ye(t, [
|
|
3751
3751
|
"locale"
|
|
3752
3752
|
]);
|
|
3753
|
-
return So(
|
|
3754
|
-
}, Lo =
|
|
3753
|
+
return So(bn({ locale: n }, r));
|
|
3754
|
+
}, Lo = Ot(
|
|
3755
3755
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3756
|
-
(e, t =
|
|
3757
|
-
ignoreTag:
|
|
3756
|
+
(e, t = Ie()) => new io(e, t, Ze().formats, {
|
|
3757
|
+
ignoreTag: Ze().ignoreTag
|
|
3758
3758
|
})
|
|
3759
3759
|
), No = (e, t = {}) => {
|
|
3760
3760
|
var n, r, i, o;
|
|
@@ -3762,16 +3762,16 @@ const ut = (e, t) => {
|
|
|
3762
3762
|
typeof e == "object" && (a = e, e = a.id);
|
|
3763
3763
|
const {
|
|
3764
3764
|
values: l,
|
|
3765
|
-
locale: s =
|
|
3765
|
+
locale: s = Ie(),
|
|
3766
3766
|
default: u
|
|
3767
3767
|
} = a;
|
|
3768
3768
|
if (s == null)
|
|
3769
3769
|
throw new Error(
|
|
3770
3770
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3771
3771
|
);
|
|
3772
|
-
let c =
|
|
3772
|
+
let c = Er(e, s);
|
|
3773
3773
|
if (!c)
|
|
3774
|
-
c = (o = (i = (r = (n =
|
|
3774
|
+
c = (o = (i = (r = (n = Ze()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: s, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3775
3775
|
else if (typeof c != "string")
|
|
3776
3776
|
return console.warn(
|
|
3777
3777
|
`[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.`
|
|
@@ -3788,23 +3788,23 @@ const ut = (e, t) => {
|
|
|
3788
3788
|
);
|
|
3789
3789
|
}
|
|
3790
3790
|
return f;
|
|
3791
|
-
}, Oo = (e, t) => Io(t).format(e), Ro = (e, t) => Po(t).format(e), ko = (e, t) => Ho(t).format(e), Do = (e, t =
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3791
|
+
}, Oo = (e, t) => Io(t).format(e), Ro = (e, t) => Po(t).format(e), ko = (e, t) => Ho(t).format(e), Do = (e, t = Ie()) => Er(e, t), Mo = Qe([Te, Ke], () => No);
|
|
3792
|
+
Qe([Te], () => Oo);
|
|
3793
|
+
Qe([Te], () => Ro);
|
|
3794
|
+
Qe([Te], () => ko);
|
|
3795
|
+
Qe([Te, Ke], () => Do);
|
|
3796
3796
|
function Uo({ withLocale: e, translations: t }) {
|
|
3797
|
-
|
|
3798
|
-
n == null && (
|
|
3797
|
+
Te.subscribe((n) => {
|
|
3798
|
+
n == null && (Ke.set(t), Te.set(e));
|
|
3799
3799
|
});
|
|
3800
3800
|
}
|
|
3801
|
-
function
|
|
3802
|
-
|
|
3801
|
+
function Vn(e, t) {
|
|
3802
|
+
wr(e, t);
|
|
3803
3803
|
}
|
|
3804
3804
|
function Vo(e) {
|
|
3805
|
-
|
|
3805
|
+
Te.set(e);
|
|
3806
3806
|
}
|
|
3807
|
-
const
|
|
3807
|
+
const k = Or(Mo), Fn = {
|
|
3808
3808
|
en: {
|
|
3809
3809
|
vaultExchange: "Vault Exchange",
|
|
3810
3810
|
debitPlaceHolder: "Debit amount",
|
|
@@ -4189,29 +4189,31 @@ const M = Rr(Mo), Vn = {
|
|
|
4189
4189
|
ZWD: "Z$"
|
|
4190
4190
|
}, Go = 6e3, $o = {
|
|
4191
4191
|
InvalidSession: "Invalid session"
|
|
4192
|
-
},
|
|
4192
|
+
}, K = {
|
|
4193
4193
|
BalanceError: "BalanceError",
|
|
4194
4194
|
CheckWalletExchangeError: "CheckWalletExchangeError",
|
|
4195
4195
|
WalletExchangeError: "WalletExchangeError",
|
|
4196
4196
|
CurrenciesError: "CurrenciesError"
|
|
4197
|
-
},
|
|
4197
|
+
}, Gn = {
|
|
4198
4198
|
ResetVaultWidget: "ResetVaultWidget",
|
|
4199
4199
|
CloseVaultWidget: "CloseVaultWidget"
|
|
4200
|
-
},
|
|
4200
|
+
}, Yt = {
|
|
4201
4201
|
VaultWidgetReset: "VaultWidgetReset",
|
|
4202
4202
|
VaultWidgetClosed: "VaultWidgetClosed",
|
|
4203
4203
|
VaultDropdownToggled: "VaultDropdownToggled"
|
|
4204
|
-
},
|
|
4204
|
+
}, $n = {
|
|
4205
4205
|
Real: "Real",
|
|
4206
4206
|
Vault: "Vault"
|
|
4207
|
-
},
|
|
4207
|
+
}, xe = {
|
|
4208
4208
|
success: "success",
|
|
4209
4209
|
error: "error"
|
|
4210
|
-
}, jo = String(Number.MAX_SAFE_INTEGER) + 1,
|
|
4210
|
+
}, jo = String(Number.MAX_SAFE_INTEGER) + 1, vt = {
|
|
4211
4211
|
ArrowDown: "ArrowDown",
|
|
4212
4212
|
ArrowUp: "ArrowUp",
|
|
4213
4213
|
Enter: "Enter",
|
|
4214
4214
|
Escape: "Escape"
|
|
4215
|
+
}, we = {
|
|
4216
|
+
true: "true"
|
|
4215
4217
|
};
|
|
4216
4218
|
function Xo(e, t) {
|
|
4217
4219
|
let n;
|
|
@@ -4221,7 +4223,7 @@ function Xo(e, t) {
|
|
|
4221
4223
|
}, t);
|
|
4222
4224
|
};
|
|
4223
4225
|
}
|
|
4224
|
-
const
|
|
4226
|
+
const jn = (e, t = null, n = 2) => {
|
|
4225
4227
|
try {
|
|
4226
4228
|
return JSON.stringify(e, t, n);
|
|
4227
4229
|
} catch (r) {
|
|
@@ -4239,13 +4241,13 @@ function Wo(e) {
|
|
|
4239
4241
|
};
|
|
4240
4242
|
}
|
|
4241
4243
|
function zo(e) {
|
|
4242
|
-
|
|
4244
|
+
fn(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))}");
|
|
4243
4245
|
}
|
|
4244
|
-
function
|
|
4246
|
+
function Xn(e, t, n) {
|
|
4245
4247
|
const r = e.slice();
|
|
4246
4248
|
return r[14] = t[n], r[16] = n, r;
|
|
4247
4249
|
}
|
|
4248
|
-
function
|
|
4250
|
+
function Wn(e) {
|
|
4249
4251
|
var i;
|
|
4250
4252
|
let t, n = (
|
|
4251
4253
|
/*selected*/
|
|
@@ -4253,32 +4255,32 @@ function Xn(e) {
|
|
|
4253
4255
|
), r;
|
|
4254
4256
|
return {
|
|
4255
4257
|
c() {
|
|
4256
|
-
t =
|
|
4258
|
+
t = w("span"), r = z(n), b(t, "class", "symbol svelte-1fe9nk9");
|
|
4257
4259
|
},
|
|
4258
4260
|
m(o, a) {
|
|
4259
|
-
H(o, t, a),
|
|
4261
|
+
H(o, t, a), _(t, r);
|
|
4260
4262
|
},
|
|
4261
4263
|
p(o, a) {
|
|
4262
4264
|
var l;
|
|
4263
4265
|
a & /*selected*/
|
|
4264
4266
|
1 && n !== (n = /*selected*/
|
|
4265
|
-
(((l = o[0]) == null ? void 0 : l.symbol) || "") + "") &&
|
|
4267
|
+
(((l = o[0]) == null ? void 0 : l.symbol) || "") + "") && re(r, n);
|
|
4266
4268
|
},
|
|
4267
4269
|
d(o) {
|
|
4268
|
-
o &&
|
|
4270
|
+
o && S(t);
|
|
4269
4271
|
}
|
|
4270
4272
|
};
|
|
4271
4273
|
}
|
|
4272
|
-
function
|
|
4273
|
-
let t, n =
|
|
4274
|
+
function zn(e) {
|
|
4275
|
+
let t, n = Tt(
|
|
4274
4276
|
/*options*/
|
|
4275
4277
|
e[1]
|
|
4276
4278
|
), r = [];
|
|
4277
4279
|
for (let i = 0; i < n.length; i += 1)
|
|
4278
|
-
r[i] =
|
|
4280
|
+
r[i] = Zn(Xn(e, n, i));
|
|
4279
4281
|
return {
|
|
4280
4282
|
c() {
|
|
4281
|
-
t =
|
|
4283
|
+
t = w("ul");
|
|
4282
4284
|
for (let i = 0; i < r.length; i += 1)
|
|
4283
4285
|
r[i].c();
|
|
4284
4286
|
b(t, "class", "selectDropdown svelte-1fe9nk9");
|
|
@@ -4292,14 +4294,14 @@ function Wn(e) {
|
|
|
4292
4294
|
p(i, o) {
|
|
4293
4295
|
if (o & /*options, selected, activeIndex, handleChange*/
|
|
4294
4296
|
547) {
|
|
4295
|
-
n =
|
|
4297
|
+
n = Tt(
|
|
4296
4298
|
/*options*/
|
|
4297
4299
|
i[1]
|
|
4298
4300
|
);
|
|
4299
4301
|
let a;
|
|
4300
4302
|
for (a = 0; a < n.length; a += 1) {
|
|
4301
|
-
const l =
|
|
4302
|
-
r[a] ? r[a].p(l, o) : (r[a] =
|
|
4303
|
+
const l = Xn(i, n, a);
|
|
4304
|
+
r[a] ? r[a].p(l, o) : (r[a] = Zn(l), r[a].c(), r[a].m(t, null));
|
|
4303
4305
|
}
|
|
4304
4306
|
for (; a < r.length; a += 1)
|
|
4305
4307
|
r[a].d(1);
|
|
@@ -4307,41 +4309,41 @@ function Wn(e) {
|
|
|
4307
4309
|
}
|
|
4308
4310
|
},
|
|
4309
4311
|
d(i) {
|
|
4310
|
-
i &&
|
|
4312
|
+
i && S(t), nr(r, i), e[13](null);
|
|
4311
4313
|
}
|
|
4312
4314
|
};
|
|
4313
4315
|
}
|
|
4314
|
-
function
|
|
4315
|
-
var h,
|
|
4316
|
+
function Zn(e) {
|
|
4317
|
+
var h, m;
|
|
4316
4318
|
let t, n, r = (
|
|
4317
4319
|
/*option*/
|
|
4318
4320
|
((h = e[14]) == null ? void 0 : h.symbol) + ""
|
|
4319
4321
|
), i, o, a = (
|
|
4320
4322
|
/*option*/
|
|
4321
|
-
((
|
|
4323
|
+
((m = e[14]) == null ? void 0 : m.currency) + ""
|
|
4322
4324
|
), l, s, u, c, f;
|
|
4323
4325
|
return {
|
|
4324
4326
|
c() {
|
|
4325
|
-
var
|
|
4326
|
-
t =
|
|
4327
|
-
((
|
|
4328
|
-
((
|
|
4327
|
+
var x, d, E, v;
|
|
4328
|
+
t = w("li"), n = w("span"), i = z(r), o = O(), l = z(a), s = O(), b(n, "class", "symbol svelte-1fe9nk9"), b(t, "role", "option"), b(t, "aria-selected", u = /*option*/
|
|
4329
|
+
((x = e[14]) == null ? void 0 : x.currency) === /*selected*/
|
|
4330
|
+
((d = e[0]) == null ? void 0 : d.currency) || /*index*/
|
|
4329
4331
|
e[16] === /*activeIndex*/
|
|
4330
|
-
e[5]), b(t, "class", "svelte-1fe9nk9"),
|
|
4332
|
+
e[5]), b(t, "class", "svelte-1fe9nk9"), ue(
|
|
4331
4333
|
t,
|
|
4332
4334
|
"active",
|
|
4333
4335
|
/*option*/
|
|
4334
|
-
((
|
|
4335
|
-
((
|
|
4336
|
+
((E = e[14]) == null ? void 0 : E.currency) === /*selected*/
|
|
4337
|
+
((v = e[0]) == null ? void 0 : v.currency) || /*index*/
|
|
4336
4338
|
e[16] === /*activeIndex*/
|
|
4337
4339
|
e[5]
|
|
4338
4340
|
);
|
|
4339
4341
|
},
|
|
4340
|
-
m(
|
|
4341
|
-
H(
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4342
|
+
m(x, d) {
|
|
4343
|
+
H(x, t, d), _(t, n), _(n, i), _(t, o), _(t, l), _(t, s), c || (f = [
|
|
4344
|
+
ae(t, "keydown", Qo),
|
|
4345
|
+
ae(t, "click", function() {
|
|
4346
|
+
ut(
|
|
4345
4347
|
/*handleChange*/
|
|
4346
4348
|
e[9](
|
|
4347
4349
|
/*option*/
|
|
@@ -4358,50 +4360,50 @@ function zn(e) {
|
|
|
4358
4360
|
})
|
|
4359
4361
|
], c = !0);
|
|
4360
4362
|
},
|
|
4361
|
-
p(
|
|
4362
|
-
var
|
|
4363
|
-
e =
|
|
4363
|
+
p(x, d) {
|
|
4364
|
+
var E, v, L, C, Y, R;
|
|
4365
|
+
e = x, d & /*options*/
|
|
4364
4366
|
2 && r !== (r = /*option*/
|
|
4365
|
-
((
|
|
4367
|
+
((E = e[14]) == null ? void 0 : E.symbol) + "") && re(i, r), d & /*options*/
|
|
4366
4368
|
2 && a !== (a = /*option*/
|
|
4367
|
-
((
|
|
4369
|
+
((v = e[14]) == null ? void 0 : v.currency) + "") && re(l, a), d & /*options, selected, activeIndex*/
|
|
4368
4370
|
35 && u !== (u = /*option*/
|
|
4369
4371
|
((L = e[14]) == null ? void 0 : L.currency) === /*selected*/
|
|
4370
4372
|
((C = e[0]) == null ? void 0 : C.currency) || /*index*/
|
|
4371
4373
|
e[16] === /*activeIndex*/
|
|
4372
|
-
e[5]) && b(t, "aria-selected", u),
|
|
4373
|
-
35 &&
|
|
4374
|
+
e[5]) && b(t, "aria-selected", u), d & /*options, selected, activeIndex*/
|
|
4375
|
+
35 && ue(
|
|
4374
4376
|
t,
|
|
4375
4377
|
"active",
|
|
4376
4378
|
/*option*/
|
|
4377
|
-
((
|
|
4378
|
-
((
|
|
4379
|
+
((Y = e[14]) == null ? void 0 : Y.currency) === /*selected*/
|
|
4380
|
+
((R = e[0]) == null ? void 0 : R.currency) || /*index*/
|
|
4379
4381
|
e[16] === /*activeIndex*/
|
|
4380
4382
|
e[5]
|
|
4381
4383
|
);
|
|
4382
4384
|
},
|
|
4383
|
-
d(
|
|
4384
|
-
|
|
4385
|
+
d(x) {
|
|
4386
|
+
x && S(t), c = !1, _e(f);
|
|
4385
4387
|
}
|
|
4386
4388
|
};
|
|
4387
4389
|
}
|
|
4388
4390
|
function Zo(e) {
|
|
4389
|
-
var
|
|
4391
|
+
var x, d;
|
|
4390
4392
|
let t, n, r, i, o = (
|
|
4391
4393
|
/*selected*/
|
|
4392
|
-
(((
|
|
4394
|
+
(((x = e[0]) == null ? void 0 : x.currency) || /*placeholder*/
|
|
4393
4395
|
e[2]) + ""
|
|
4394
4396
|
), a, l, s, u, c, f, h = (
|
|
4395
4397
|
/*selected*/
|
|
4396
|
-
((
|
|
4397
|
-
e[
|
|
4398
|
-
),
|
|
4398
|
+
((d = e[0]) == null ? void 0 : d.symbol) && /*withSymbol*/
|
|
4399
|
+
e[3] === we.true && Wn(e)
|
|
4400
|
+
), m = (
|
|
4399
4401
|
/*open*/
|
|
4400
|
-
e[7] &&
|
|
4402
|
+
e[7] && zn(e)
|
|
4401
4403
|
);
|
|
4402
4404
|
return {
|
|
4403
4405
|
c() {
|
|
4404
|
-
t =
|
|
4406
|
+
t = w("div"), n = w("button"), r = w("span"), h && h.c(), i = O(), a = z(o), l = O(), s = w("span"), s.innerHTML = '<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>', u = O(), m && m.c(), b(r, "class", "label svelte-1fe9nk9"), b(s, "class", "arrow"), ue(
|
|
4405
4407
|
s,
|
|
4406
4408
|
"open",
|
|
4407
4409
|
/*open*/
|
|
@@ -4412,22 +4414,22 @@ function Zo(e) {
|
|
|
4412
4414
|
/*open*/
|
|
4413
4415
|
e[7]
|
|
4414
4416
|
), b(n, "aria-controls", "custom-select"), b(n, "tabindex", "0"), n.disabled = /*disabled*/
|
|
4415
|
-
e[
|
|
4417
|
+
e[4], b(t, "class", "selectWrapper svelte-1fe9nk9");
|
|
4416
4418
|
},
|
|
4417
|
-
m(
|
|
4418
|
-
H(
|
|
4419
|
-
|
|
4419
|
+
m(E, v) {
|
|
4420
|
+
H(E, t, v), _(t, n), _(n, r), h && h.m(r, null), _(r, i), _(r, a), _(n, l), _(n, s), _(t, u), m && m.m(t, null), c || (f = [
|
|
4421
|
+
ae(
|
|
4420
4422
|
n,
|
|
4421
4423
|
"keydown",
|
|
4422
4424
|
/*handleKeyDown*/
|
|
4423
4425
|
e[11]
|
|
4424
4426
|
),
|
|
4425
|
-
|
|
4427
|
+
ae(n, "click", Ur(
|
|
4426
4428
|
/*handleToggleDropdown*/
|
|
4427
4429
|
e[8]
|
|
4428
4430
|
)),
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
+
Rr(Wo.call(null, t)),
|
|
4432
|
+
ae(
|
|
4431
4433
|
t,
|
|
4432
4434
|
"outclick",
|
|
4433
4435
|
/*handleOutClick*/
|
|
@@ -4435,57 +4437,57 @@ function Zo(e) {
|
|
|
4435
4437
|
)
|
|
4436
4438
|
], c = !0);
|
|
4437
4439
|
},
|
|
4438
|
-
p(
|
|
4440
|
+
p(E, [v]) {
|
|
4439
4441
|
var L, C;
|
|
4440
4442
|
/*selected*/
|
|
4441
|
-
(L =
|
|
4442
|
-
|
|
4443
|
+
(L = E[0]) != null && L.symbol && /*withSymbol*/
|
|
4444
|
+
E[3] === we.true ? h ? h.p(E, v) : (h = Wn(E), h.c(), h.m(r, i)) : h && (h.d(1), h = null), v & /*selected, placeholder*/
|
|
4443
4445
|
5 && o !== (o = /*selected*/
|
|
4444
|
-
(((C =
|
|
4445
|
-
|
|
4446
|
-
128 &&
|
|
4446
|
+
(((C = E[0]) == null ? void 0 : C.currency) || /*placeholder*/
|
|
4447
|
+
E[2]) + "") && re(a, o), v & /*open*/
|
|
4448
|
+
128 && ue(
|
|
4447
4449
|
s,
|
|
4448
4450
|
"open",
|
|
4449
4451
|
/*open*/
|
|
4450
|
-
|
|
4451
|
-
),
|
|
4452
|
+
E[7]
|
|
4453
|
+
), v & /*open*/
|
|
4452
4454
|
128 && b(
|
|
4453
4455
|
n,
|
|
4454
4456
|
"aria-expanded",
|
|
4455
4457
|
/*open*/
|
|
4456
|
-
|
|
4457
|
-
),
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4458
|
+
E[7]
|
|
4459
|
+
), v & /*disabled*/
|
|
4460
|
+
16 && (n.disabled = /*disabled*/
|
|
4461
|
+
E[4]), /*open*/
|
|
4462
|
+
E[7] ? m ? m.p(E, v) : (m = zn(E), m.c(), m.m(t, null)) : m && (m.d(1), m = null);
|
|
4461
4463
|
},
|
|
4462
4464
|
i: I,
|
|
4463
4465
|
o: I,
|
|
4464
|
-
d(
|
|
4465
|
-
|
|
4466
|
+
d(E) {
|
|
4467
|
+
E && S(t), h && h.d(), m && m.d(), c = !1, _e(f);
|
|
4466
4468
|
}
|
|
4467
4469
|
};
|
|
4468
4470
|
}
|
|
4469
4471
|
const Qo = (e) => e.preventDefault();
|
|
4470
4472
|
function Ko(e, t, n) {
|
|
4471
|
-
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: o =
|
|
4473
|
+
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: o = k("select") } = t, { withSymbol: a = "true" } = t, { disabled: l = !1 } = t, { onChange: s = () => {
|
|
4472
4474
|
} } = t, u = -1, c, f = !1;
|
|
4473
4475
|
const h = () => {
|
|
4474
|
-
r.length !== 0 && (n(7, f = !f), f && (n(5, u = r.findIndex((
|
|
4475
|
-
},
|
|
4476
|
-
n(7, f = !1), n(0, i =
|
|
4477
|
-
},
|
|
4476
|
+
r.length !== 0 && (n(7, f = !f), f && (n(5, u = r.findIndex((v) => (v == null ? void 0 : v.currency) === (i == null ? void 0 : i.currency))), setTimeout(() => c == null ? void 0 : c.focus(), 0)));
|
|
4477
|
+
}, m = (v, L) => () => {
|
|
4478
|
+
n(7, f = !1), n(0, i = v), s && typeof s == "function" && s(v, L);
|
|
4479
|
+
}, x = () => {
|
|
4478
4480
|
n(7, f = !1);
|
|
4479
|
-
},
|
|
4480
|
-
f && (
|
|
4481
|
+
}, d = (v) => {
|
|
4482
|
+
f && (v.key === vt.ArrowDown ? (v.preventDefault(), n(5, u = (u + 1) % r.length)) : v.key === vt.ArrowUp ? (v.preventDefault(), n(5, u = (u - 1 + r.length) % r.length)) : v.key === vt.Enter ? (v.preventDefault(), m(i, u)()) : v.key === vt.Escape && n(7, f = !1));
|
|
4481
4483
|
};
|
|
4482
|
-
function
|
|
4483
|
-
|
|
4484
|
-
c =
|
|
4484
|
+
function E(v) {
|
|
4485
|
+
Ge[v ? "unshift" : "push"](() => {
|
|
4486
|
+
c = v, n(6, c);
|
|
4485
4487
|
});
|
|
4486
4488
|
}
|
|
4487
|
-
return e.$$set = (
|
|
4488
|
-
"options" in
|
|
4489
|
+
return e.$$set = (v) => {
|
|
4490
|
+
"options" in v && n(1, r = v.options), "selected" in v && n(0, i = v.selected), "placeholder" in v && n(2, o = v.placeholder), "withSymbol" in v && n(3, a = v.withSymbol), "disabled" in v && n(4, l = v.disabled), "onChange" in v && n(12, s = v.onChange);
|
|
4489
4491
|
}, [
|
|
4490
4492
|
i,
|
|
4491
4493
|
r,
|
|
@@ -4496,27 +4498,27 @@ function Ko(e, t, n) {
|
|
|
4496
4498
|
c,
|
|
4497
4499
|
f,
|
|
4498
4500
|
h,
|
|
4501
|
+
m,
|
|
4502
|
+
x,
|
|
4499
4503
|
d,
|
|
4500
|
-
E,
|
|
4501
|
-
p,
|
|
4502
4504
|
s,
|
|
4503
|
-
|
|
4505
|
+
E
|
|
4504
4506
|
];
|
|
4505
4507
|
}
|
|
4506
|
-
class
|
|
4508
|
+
class hn extends mn {
|
|
4507
4509
|
constructor(t) {
|
|
4508
|
-
super(),
|
|
4510
|
+
super(), pn(
|
|
4509
4511
|
this,
|
|
4510
4512
|
t,
|
|
4511
4513
|
Ko,
|
|
4512
4514
|
Zo,
|
|
4513
|
-
|
|
4515
|
+
Ht,
|
|
4514
4516
|
{
|
|
4515
4517
|
options: 1,
|
|
4516
4518
|
selected: 0,
|
|
4517
4519
|
placeholder: 2,
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
+
withSymbol: 3,
|
|
4521
|
+
disabled: 4,
|
|
4520
4522
|
onChange: 12
|
|
4521
4523
|
},
|
|
4522
4524
|
zo
|
|
@@ -4526,48 +4528,48 @@ class cn extends dn {
|
|
|
4526
4528
|
return this.$$.ctx[1];
|
|
4527
4529
|
}
|
|
4528
4530
|
set options(t) {
|
|
4529
|
-
this.$$set({ options: t }),
|
|
4531
|
+
this.$$set({ options: t }), G();
|
|
4530
4532
|
}
|
|
4531
4533
|
get selected() {
|
|
4532
4534
|
return this.$$.ctx[0];
|
|
4533
4535
|
}
|
|
4534
4536
|
set selected(t) {
|
|
4535
|
-
this.$$set({ selected: t }),
|
|
4537
|
+
this.$$set({ selected: t }), G();
|
|
4536
4538
|
}
|
|
4537
4539
|
get placeholder() {
|
|
4538
4540
|
return this.$$.ctx[2];
|
|
4539
4541
|
}
|
|
4540
4542
|
set placeholder(t) {
|
|
4541
|
-
this.$$set({ placeholder: t }),
|
|
4543
|
+
this.$$set({ placeholder: t }), G();
|
|
4542
4544
|
}
|
|
4543
|
-
get
|
|
4545
|
+
get withSymbol() {
|
|
4544
4546
|
return this.$$.ctx[3];
|
|
4545
4547
|
}
|
|
4546
|
-
set
|
|
4547
|
-
this.$$set({
|
|
4548
|
+
set withSymbol(t) {
|
|
4549
|
+
this.$$set({ withSymbol: t }), G();
|
|
4548
4550
|
}
|
|
4549
|
-
get
|
|
4551
|
+
get disabled() {
|
|
4550
4552
|
return this.$$.ctx[4];
|
|
4551
4553
|
}
|
|
4552
|
-
set
|
|
4553
|
-
this.$$set({
|
|
4554
|
+
set disabled(t) {
|
|
4555
|
+
this.$$set({ disabled: t }), G();
|
|
4554
4556
|
}
|
|
4555
4557
|
get onChange() {
|
|
4556
4558
|
return this.$$.ctx[12];
|
|
4557
4559
|
}
|
|
4558
4560
|
set onChange(t) {
|
|
4559
|
-
this.$$set({ onChange: t }),
|
|
4561
|
+
this.$$set({ onChange: t }), G();
|
|
4560
4562
|
}
|
|
4561
4563
|
}
|
|
4562
|
-
|
|
4564
|
+
dn(hn, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
|
|
4563
4565
|
function Yo(e) {
|
|
4564
|
-
|
|
4566
|
+
fn(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
|
|
4565
4567
|
}
|
|
4566
4568
|
function Jo(e) {
|
|
4567
|
-
let t, n, r =
|
|
4569
|
+
let t, n, r = k("balanceUnavailable") + "", i;
|
|
4568
4570
|
return {
|
|
4569
4571
|
c() {
|
|
4570
|
-
t =
|
|
4572
|
+
t = w("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n = O(), i = z(r), b(t, "class", "warningIcon svelte-2fhtvy");
|
|
4571
4573
|
},
|
|
4572
4574
|
m(o, a) {
|
|
4573
4575
|
H(o, t, a), H(o, n, a), H(o, i, a);
|
|
@@ -4576,317 +4578,40 @@ function Jo(e) {
|
|
|
4576
4578
|
i: I,
|
|
4577
4579
|
o: I,
|
|
4578
4580
|
d(o) {
|
|
4579
|
-
o && (
|
|
4581
|
+
o && (S(t), S(n), S(i));
|
|
4580
4582
|
}
|
|
4581
4583
|
};
|
|
4582
4584
|
}
|
|
4583
|
-
class
|
|
4585
|
+
class Rt extends mn {
|
|
4584
4586
|
constructor(t) {
|
|
4585
|
-
super(),
|
|
4587
|
+
super(), pn(this, t, null, Jo, Ht, {}, Yo);
|
|
4586
4588
|
}
|
|
4587
4589
|
}
|
|
4588
|
-
|
|
4590
|
+
dn(Rt, {}, [], [], !0);
|
|
4589
4591
|
function qo(e) {
|
|
4590
|
-
hn(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}');
|
|
4592
|
+
fn(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}');
|
|
4591
4593
|
}
|
|
4592
|
-
function
|
|
4594
|
+
function Qn(e, t, n) {
|
|
4593
4595
|
const r = e.slice();
|
|
4594
|
-
return r[
|
|
4595
|
-
}
|
|
4596
|
-
function Qn(e) {
|
|
4597
|
-
var Le;
|
|
4598
|
-
let t, n, r, i, o, a, l, s, u, c, f, h, d, E, p, _, y, L, C, Z, k, ne, oe, le, X, fe, Re, ue, pe, xe, Q, J, de, et, we, ke, ht, De, tt, re, Ae = M(
|
|
4599
|
-
/*fetchResponse*/
|
|
4600
|
-
((Le = e[12]) == null ? void 0 : Le.message) || ""
|
|
4601
|
-
) + "", Ie, be, ye, Me, q, Te = M("exchange") + "", ft, ve, ee, nt, rt, K = (
|
|
4602
|
-
/*showclosebutton*/
|
|
4603
|
-
e[3] && Kn(e)
|
|
4604
|
-
), G = (
|
|
4605
|
-
/*showtotalbalance*/
|
|
4606
|
-
e[2] && Yn(e)
|
|
4607
|
-
);
|
|
4608
|
-
function Dt(g) {
|
|
4609
|
-
e[39](g);
|
|
4610
|
-
}
|
|
4611
|
-
let pt = {
|
|
4612
|
-
withSymbol: (
|
|
4613
|
-
/*showcurrencysymbol*/
|
|
4614
|
-
e[4]
|
|
4615
|
-
),
|
|
4616
|
-
disabled: !/*isBalanceFetched*/
|
|
4617
|
-
e[16] || !/*isCurrenciesFetched*/
|
|
4618
|
-
e[17],
|
|
4619
|
-
options: (
|
|
4620
|
-
/*optionsFrom*/
|
|
4621
|
-
e[21]
|
|
4622
|
-
),
|
|
4623
|
-
onChange: (
|
|
4624
|
-
/*checkWalletExchangeDebounced*/
|
|
4625
|
-
e[26]
|
|
4626
|
-
)
|
|
4627
|
-
};
|
|
4628
|
-
/*selectedCurrencyFrom*/
|
|
4629
|
-
e[5] !== void 0 && (pt.selected = /*selectedCurrencyFrom*/
|
|
4630
|
-
e[5]), p = new cn({ props: pt }), je.push(() => Tn(p, "selected", Dt));
|
|
4631
|
-
const dt = [oa, ia], ce = [];
|
|
4632
|
-
function mt(g, S) {
|
|
4633
|
-
return !/*isBalanceFetched*/
|
|
4634
|
-
g[16] || !/*isCurrenciesFetched*/
|
|
4635
|
-
g[17] ? 0 : 1;
|
|
4636
|
-
}
|
|
4637
|
-
L = mt(e), C = ce[L] = dt[L](e);
|
|
4638
|
-
function Mt(g) {
|
|
4639
|
-
e[41](g);
|
|
4640
|
-
}
|
|
4641
|
-
let gt = {
|
|
4642
|
-
withSymbol: (
|
|
4643
|
-
/*showcurrencysymbol*/
|
|
4644
|
-
e[4]
|
|
4645
|
-
),
|
|
4646
|
-
disabled: !/*session*/
|
|
4647
|
-
e[0] || !!/*validationError*/
|
|
4648
|
-
e[13] || !/*isBalanceFetched*/
|
|
4649
|
-
e[16] || !/*isCurrenciesFetched*/
|
|
4650
|
-
e[17],
|
|
4651
|
-
options: (
|
|
4652
|
-
/*optionsTo*/
|
|
4653
|
-
e[22]
|
|
4654
|
-
),
|
|
4655
|
-
onChange: (
|
|
4656
|
-
/*checkWalletExchangeDebounced*/
|
|
4657
|
-
e[26]
|
|
4658
|
-
)
|
|
4659
|
-
};
|
|
4660
|
-
/*selectedCurrencyTo*/
|
|
4661
|
-
e[6] !== void 0 && (gt.selected = /*selectedCurrencyTo*/
|
|
4662
|
-
e[6]), ue = new cn({ props: gt }), je.push(() => Tn(ue, "selected", Mt));
|
|
4663
|
-
const bt = [ua, la], me = [];
|
|
4664
|
-
function m(g, S) {
|
|
4665
|
-
return !/*isBalanceFetched*/
|
|
4666
|
-
g[16] || !/*isCurrenciesFetched*/
|
|
4667
|
-
g[17] ? 0 : 1;
|
|
4668
|
-
}
|
|
4669
|
-
Q = m(e), J = me[Q] = bt[Q](e);
|
|
4670
|
-
let x = (
|
|
4671
|
-
/*showvaults*/
|
|
4672
|
-
e[1] && Jn(e)
|
|
4673
|
-
);
|
|
4674
|
-
function O(g, S) {
|
|
4675
|
-
var A;
|
|
4676
|
-
return (
|
|
4677
|
-
/*fetchResponse*/
|
|
4678
|
-
((A = g[12]) == null ? void 0 : A.source) === z.CheckWalletExchangeError ? pa : fa
|
|
4679
|
-
);
|
|
4680
|
-
}
|
|
4681
|
-
let w = O(e), D = w(e);
|
|
4682
|
-
return {
|
|
4683
|
-
c() {
|
|
4684
|
-
var g, S, A;
|
|
4685
|
-
t = T("div"), K && K.c(), n = R(), r = T("div"), i = T("h1"), i.textContent = `${M("vaultExchange")}`, o = R(), G && G.c(), a = R(), l = T("div"), s = T("div"), u = T("p"), u.textContent = `${M("exchangeFrom")}`, c = R(), f = T("div"), h = T("input"), E = R(), st(p.$$.fragment), y = R(), C.c(), Z = R(), k = T("div"), ne = T("p"), ne.textContent = `${M("exchangeTo")}`, oe = R(), le = T("div"), X = T("input"), Re = R(), st(ue.$$.fragment), xe = R(), J.c(), de = R(), x && x.c(), et = R(), we = T("div"), ke = T("span"), ke.textContent = `${M("feesIncluded")}`, ht = R(), De = T("span"), D.c(), tt = R(), re = T("div"), Ie = R(), be = T("div"), ye = T("button"), ye.textContent = `${M("reset")}`, Me = R(), q = T("button"), ft = W(Te), b(i, "class", "headerTitle"), b(r, "class", "headerContainer"), b(u, "class", "exchangeHeader"), b(h, "id", "senderInput"), h.disabled = d = !/*session*/
|
|
4686
|
-
e[0] || !/*isBalanceFetched*/
|
|
4687
|
-
e[16] || !/*isCurrenciesFetched*/
|
|
4688
|
-
e[17], b(h, "placeholder", M("debitPlaceHolder")), b(h, "class", "exchangeInput"), b(h, "type", "number"), b(h, "aria-label", "Enter exchange amount"), b(h, "inputmode", "decimal"), b(h, "step", "0.000000000000000001"), b(h, "min", "0"), b(f, "class", "flexingContainerRow"), b(s, "class", "containerExchangeFrom exchangeContainer"), b(ne, "class", "exchangeHeader"), b(X, "id", "destinationInput"), X.disabled = fe = !/*session*/
|
|
4689
|
-
e[0] || !/*isBalanceFetched*/
|
|
4690
|
-
e[16] || !/*isCurrenciesFetched*/
|
|
4691
|
-
e[17], b(X, "placeholder", M("creditPlaceHolder")), b(X, "class", "exchangeInput"), b(X, "type", "number"), X.readOnly = !0, b(X, "min", "0"), b(le, "class", "flexingContainerRow"), b(k, "class", "containerExchangeTo exchangeContainer"), b(l, "class", "exchangesContainer"), b(ke, "class", "feesLabel"), b(we, "class", "feesContainer"), b(re, "class", "notificationsContainer"), se(
|
|
4692
|
-
re,
|
|
4693
|
-
"error",
|
|
4694
|
-
/*fetchResponse*/
|
|
4695
|
-
((g = e[12]) == null ? void 0 : g.type) === "error"
|
|
4696
|
-
), se(
|
|
4697
|
-
re,
|
|
4698
|
-
"success",
|
|
4699
|
-
/*fetchResponse*/
|
|
4700
|
-
((S = e[12]) == null ? void 0 : S.type) === "success"
|
|
4701
|
-
), b(ye, "class", "resetButton"), b(ye, "type", "button"), b(q, "type", "button"), b(q, "class", "exchangeButton"), q.disabled = ve = /*isExchangeDisabled*/
|
|
4702
|
-
e[14] || /*isExchangePending*/
|
|
4703
|
-
e[18] || /*inputExchangeFrom*/
|
|
4704
|
-
e[8] === 0 && !/*selectedCurrencyFrom*/
|
|
4705
|
-
((A = e[5]) != null && A.amount), se(
|
|
4706
|
-
q,
|
|
4707
|
-
"disabled",
|
|
4708
|
-
/*isExchangeDisabled*/
|
|
4709
|
-
e[14] || /*isExchangePending*/
|
|
4710
|
-
e[18]
|
|
4711
|
-
), se(
|
|
4712
|
-
q,
|
|
4713
|
-
"pending",
|
|
4714
|
-
/*isExchangePending*/
|
|
4715
|
-
e[18]
|
|
4716
|
-
), b(be, "class", "actionsContainer"), b(t, "class", "playerAccountVault");
|
|
4717
|
-
},
|
|
4718
|
-
m(g, S) {
|
|
4719
|
-
H(g, t, S), K && K.m(t, null), v(t, n), v(t, r), v(r, i), v(r, o), G && G.m(r, null), v(t, a), v(t, l), v(l, s), v(s, u), v(s, c), v(s, f), v(f, h), yt(
|
|
4720
|
-
h,
|
|
4721
|
-
/*inputExchangeFrom*/
|
|
4722
|
-
e[8]
|
|
4723
|
-
), v(f, E), Xe(p, f, null), v(s, y), ce[L].m(s, null), v(l, Z), v(l, k), v(k, ne), v(k, oe), v(k, le), v(le, X), yt(
|
|
4724
|
-
X,
|
|
4725
|
-
/*inputExchangeTo*/
|
|
4726
|
-
e[9]
|
|
4727
|
-
), v(le, Re), Xe(ue, le, null), v(k, xe), me[Q].m(k, null), v(t, de), x && x.m(t, null), v(t, et), v(t, we), v(we, ke), v(we, ht), v(we, De), D.m(De, null), v(t, tt), v(t, re), re.innerHTML = Ae, v(t, Ie), v(t, be), v(be, ye), v(be, Me), v(be, q), v(q, ft), e[42](t), ee = !0, nt || (rt = [
|
|
4728
|
-
ie(
|
|
4729
|
-
h,
|
|
4730
|
-
"input",
|
|
4731
|
-
/*input0_input_handler*/
|
|
4732
|
-
e[38]
|
|
4733
|
-
),
|
|
4734
|
-
ie(
|
|
4735
|
-
h,
|
|
4736
|
-
"input",
|
|
4737
|
-
/*handleInputChange*/
|
|
4738
|
-
e[27]
|
|
4739
|
-
),
|
|
4740
|
-
ie(
|
|
4741
|
-
h,
|
|
4742
|
-
"beforeinput",
|
|
4743
|
-
/*handleBeforeInput*/
|
|
4744
|
-
e[28]
|
|
4745
|
-
),
|
|
4746
|
-
ie(
|
|
4747
|
-
X,
|
|
4748
|
-
"input",
|
|
4749
|
-
/*input1_input_handler*/
|
|
4750
|
-
e[40]
|
|
4751
|
-
),
|
|
4752
|
-
ie(
|
|
4753
|
-
ye,
|
|
4754
|
-
"click",
|
|
4755
|
-
/*handleResetToDefault*/
|
|
4756
|
-
e[25]
|
|
4757
|
-
),
|
|
4758
|
-
ie(
|
|
4759
|
-
q,
|
|
4760
|
-
"click",
|
|
4761
|
-
/*handleExchange*/
|
|
4762
|
-
e[29]
|
|
4763
|
-
)
|
|
4764
|
-
], nt = !0);
|
|
4765
|
-
},
|
|
4766
|
-
p(g, S) {
|
|
4767
|
-
var bn, yn, vn, _n;
|
|
4768
|
-
/*showclosebutton*/
|
|
4769
|
-
g[3] ? K ? K.p(g, S) : (K = Kn(g), K.c(), K.m(t, n)) : K && (K.d(1), K = null), /*showtotalbalance*/
|
|
4770
|
-
g[2] ? G ? (G.p(g, S), S[0] & /*showtotalbalance*/
|
|
4771
|
-
4 && V(G, 1)) : (G = Yn(g), G.c(), V(G, 1), G.m(r, null)) : G && (Se(), $(G, 1, 1, () => {
|
|
4772
|
-
G = null;
|
|
4773
|
-
}), He()), (!ee || S[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
4774
|
-
196609 && d !== (d = !/*session*/
|
|
4775
|
-
g[0] || !/*isBalanceFetched*/
|
|
4776
|
-
g[16] || !/*isCurrenciesFetched*/
|
|
4777
|
-
g[17])) && (h.disabled = d), S[0] & /*inputExchangeFrom*/
|
|
4778
|
-
256 && Tt(h.value) !== /*inputExchangeFrom*/
|
|
4779
|
-
g[8] && yt(
|
|
4780
|
-
h,
|
|
4781
|
-
/*inputExchangeFrom*/
|
|
4782
|
-
g[8]
|
|
4783
|
-
);
|
|
4784
|
-
const A = {};
|
|
4785
|
-
S[0] & /*showcurrencysymbol*/
|
|
4786
|
-
16 && (A.withSymbol = /*showcurrencysymbol*/
|
|
4787
|
-
g[4]), S[0] & /*isBalanceFetched, isCurrenciesFetched*/
|
|
4788
|
-
196608 && (A.disabled = !/*isBalanceFetched*/
|
|
4789
|
-
g[16] || !/*isCurrenciesFetched*/
|
|
4790
|
-
g[17]), S[0] & /*optionsFrom*/
|
|
4791
|
-
2097152 && (A.options = /*optionsFrom*/
|
|
4792
|
-
g[21]), !_ && S[0] & /*selectedCurrencyFrom*/
|
|
4793
|
-
32 && (_ = !0, A.selected = /*selectedCurrencyFrom*/
|
|
4794
|
-
g[5], An(() => _ = !1)), p.$set(A);
|
|
4795
|
-
let _e = L;
|
|
4796
|
-
L = mt(g), L === _e ? ce[L].p(g, S) : (Se(), $(ce[_e], 1, 1, () => {
|
|
4797
|
-
ce[_e] = null;
|
|
4798
|
-
}), He(), C = ce[L], C ? C.p(g, S) : (C = ce[L] = dt[L](g), C.c()), V(C, 1), C.m(s, null)), (!ee || S[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
4799
|
-
196609 && fe !== (fe = !/*session*/
|
|
4800
|
-
g[0] || !/*isBalanceFetched*/
|
|
4801
|
-
g[16] || !/*isCurrenciesFetched*/
|
|
4802
|
-
g[17])) && (X.disabled = fe), S[0] & /*inputExchangeTo*/
|
|
4803
|
-
512 && Tt(X.value) !== /*inputExchangeTo*/
|
|
4804
|
-
g[9] && yt(
|
|
4805
|
-
X,
|
|
4806
|
-
/*inputExchangeTo*/
|
|
4807
|
-
g[9]
|
|
4808
|
-
);
|
|
4809
|
-
const he = {};
|
|
4810
|
-
S[0] & /*showcurrencysymbol*/
|
|
4811
|
-
16 && (he.withSymbol = /*showcurrencysymbol*/
|
|
4812
|
-
g[4]), S[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
|
|
4813
|
-
204801 && (he.disabled = !/*session*/
|
|
4814
|
-
g[0] || !!/*validationError*/
|
|
4815
|
-
g[13] || !/*isBalanceFetched*/
|
|
4816
|
-
g[16] || !/*isCurrenciesFetched*/
|
|
4817
|
-
g[17]), S[0] & /*optionsTo*/
|
|
4818
|
-
4194304 && (he.options = /*optionsTo*/
|
|
4819
|
-
g[22]), !pe && S[0] & /*selectedCurrencyTo*/
|
|
4820
|
-
64 && (pe = !0, he.selected = /*selectedCurrencyTo*/
|
|
4821
|
-
g[6], An(() => pe = !1)), ue.$set(he);
|
|
4822
|
-
let Ut = Q;
|
|
4823
|
-
Q = m(g), Q === Ut ? me[Q].p(g, S) : (Se(), $(me[Ut], 1, 1, () => {
|
|
4824
|
-
me[Ut] = null;
|
|
4825
|
-
}), He(), J = me[Q], J ? J.p(g, S) : (J = me[Q] = bt[Q](g), J.c()), V(J, 1), J.m(k, null)), /*showvaults*/
|
|
4826
|
-
g[1] ? x ? x.p(g, S) : (x = Jn(g), x.c(), x.m(t, et)) : x && (x.d(1), x = null), w === (w = O(g)) && D ? D.p(g, S) : (D.d(1), D = w(g), D && (D.c(), D.m(De, null))), (!ee || S[0] & /*fetchResponse*/
|
|
4827
|
-
4096) && Ae !== (Ae = M(
|
|
4828
|
-
/*fetchResponse*/
|
|
4829
|
-
((bn = g[12]) == null ? void 0 : bn.message) || ""
|
|
4830
|
-
) + "") && (re.innerHTML = Ae), (!ee || S[0] & /*fetchResponse*/
|
|
4831
|
-
4096) && se(
|
|
4832
|
-
re,
|
|
4833
|
-
"error",
|
|
4834
|
-
/*fetchResponse*/
|
|
4835
|
-
((yn = g[12]) == null ? void 0 : yn.type) === "error"
|
|
4836
|
-
), (!ee || S[0] & /*fetchResponse*/
|
|
4837
|
-
4096) && se(
|
|
4838
|
-
re,
|
|
4839
|
-
"success",
|
|
4840
|
-
/*fetchResponse*/
|
|
4841
|
-
((vn = g[12]) == null ? void 0 : vn.type) === "success"
|
|
4842
|
-
), (!ee || S[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
|
|
4843
|
-
278816 && ve !== (ve = /*isExchangeDisabled*/
|
|
4844
|
-
g[14] || /*isExchangePending*/
|
|
4845
|
-
g[18] || /*inputExchangeFrom*/
|
|
4846
|
-
g[8] === 0 && !/*selectedCurrencyFrom*/
|
|
4847
|
-
((_n = g[5]) != null && _n.amount))) && (q.disabled = ve), (!ee || S[0] & /*isExchangeDisabled, isExchangePending*/
|
|
4848
|
-
278528) && se(
|
|
4849
|
-
q,
|
|
4850
|
-
"disabled",
|
|
4851
|
-
/*isExchangeDisabled*/
|
|
4852
|
-
g[14] || /*isExchangePending*/
|
|
4853
|
-
g[18]
|
|
4854
|
-
), (!ee || S[0] & /*isExchangePending*/
|
|
4855
|
-
262144) && se(
|
|
4856
|
-
q,
|
|
4857
|
-
"pending",
|
|
4858
|
-
/*isExchangePending*/
|
|
4859
|
-
g[18]
|
|
4860
|
-
);
|
|
4861
|
-
},
|
|
4862
|
-
i(g) {
|
|
4863
|
-
ee || (V(G), V(p.$$.fragment, g), V(C), V(ue.$$.fragment, g), V(J), ee = !0);
|
|
4864
|
-
},
|
|
4865
|
-
o(g) {
|
|
4866
|
-
$(G), $(p.$$.fragment, g), $(C), $(ue.$$.fragment, g), $(J), ee = !1;
|
|
4867
|
-
},
|
|
4868
|
-
d(g) {
|
|
4869
|
-
g && B(t), K && K.d(), G && G.d(), We(p), ce[L].d(), We(ue), me[Q].d(), x && x.d(), D.d(), e[42](null), nt = !1, Ee(rt);
|
|
4870
|
-
}
|
|
4871
|
-
};
|
|
4596
|
+
return r[60] = t[n], r;
|
|
4872
4597
|
}
|
|
4873
4598
|
function Kn(e) {
|
|
4874
4599
|
let t, n, r;
|
|
4875
4600
|
return {
|
|
4876
4601
|
c() {
|
|
4877
|
-
t =
|
|
4602
|
+
t = w("button"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.414 12l4.95-4.95-1.414-1.414-4.95 4.95-4.95-4.95L5.636 7.05l4.95 4.95-4.95 4.95 1.414 1.414 4.95-4.95 4.95 4.95 1.414-1.414-4.95-4.95z"></path></svg>', b(t, "type", "button"), b(t, "class", "closeButton");
|
|
4878
4603
|
},
|
|
4879
4604
|
m(i, o) {
|
|
4880
|
-
H(i, t, o), n || (r =
|
|
4605
|
+
H(i, t, o), n || (r = ae(
|
|
4881
4606
|
t,
|
|
4882
4607
|
"click",
|
|
4883
4608
|
/*handleCloseWidget*/
|
|
4884
|
-
e[
|
|
4609
|
+
e[23]
|
|
4885
4610
|
), n = !0);
|
|
4886
4611
|
},
|
|
4887
4612
|
p: I,
|
|
4888
4613
|
d(i) {
|
|
4889
|
-
i &&
|
|
4614
|
+
i && S(t), n = !1, r();
|
|
4890
4615
|
}
|
|
4891
4616
|
};
|
|
4892
4617
|
}
|
|
@@ -4900,25 +4625,25 @@ function Yn(e) {
|
|
|
4900
4625
|
}
|
|
4901
4626
|
return t = l(e), n = a[t] = o[t](e), {
|
|
4902
4627
|
c() {
|
|
4903
|
-
n.c(), r =
|
|
4628
|
+
n.c(), r = Mr();
|
|
4904
4629
|
},
|
|
4905
4630
|
m(s, u) {
|
|
4906
4631
|
a[t].m(s, u), H(s, r, u), i = !0;
|
|
4907
4632
|
},
|
|
4908
4633
|
p(s, u) {
|
|
4909
4634
|
let c = t;
|
|
4910
|
-
t = l(s), t === c ? a[t].p(s, u) : (
|
|
4635
|
+
t = l(s), t === c ? a[t].p(s, u) : (He(), W(a[c], 1, 1, () => {
|
|
4911
4636
|
a[c] = null;
|
|
4912
|
-
}),
|
|
4637
|
+
}), Pe(), n = a[t], n ? n.p(s, u) : (n = a[t] = o[t](s), n.c()), V(n, 1), n.m(r.parentNode, r));
|
|
4913
4638
|
},
|
|
4914
4639
|
i(s) {
|
|
4915
4640
|
i || (V(n), i = !0);
|
|
4916
4641
|
},
|
|
4917
4642
|
o(s) {
|
|
4918
|
-
|
|
4643
|
+
W(n), i = !1;
|
|
4919
4644
|
},
|
|
4920
4645
|
d(s) {
|
|
4921
|
-
s &&
|
|
4646
|
+
s && S(r), a[t].d(s);
|
|
4922
4647
|
}
|
|
4923
4648
|
};
|
|
4924
4649
|
}
|
|
@@ -4929,30 +4654,30 @@ function ea(e) {
|
|
|
4929
4654
|
var c;
|
|
4930
4655
|
return (
|
|
4931
4656
|
/*fetchResponse*/
|
|
4932
|
-
((c = s[12]) == null ? void 0 : c.source) ===
|
|
4657
|
+
((c = s[12]) == null ? void 0 : c.source) === K.BalanceError ? 0 : 1
|
|
4933
4658
|
);
|
|
4934
4659
|
}
|
|
4935
4660
|
return n = l(e), r = a[n] = o[n](e), {
|
|
4936
4661
|
c() {
|
|
4937
|
-
t =
|
|
4662
|
+
t = w("div"), r.c(), b(t, "class", "headerPlayerBalance amountContainer");
|
|
4938
4663
|
},
|
|
4939
4664
|
m(s, u) {
|
|
4940
4665
|
H(s, t, u), a[n].m(t, null), i = !0;
|
|
4941
4666
|
},
|
|
4942
4667
|
p(s, u) {
|
|
4943
4668
|
let c = n;
|
|
4944
|
-
n = l(s), n === c ? a[n].p(s, u) : (
|
|
4669
|
+
n = l(s), n === c ? a[n].p(s, u) : (He(), W(a[c], 1, 1, () => {
|
|
4945
4670
|
a[c] = null;
|
|
4946
|
-
}),
|
|
4671
|
+
}), Pe(), r = a[n], r ? r.p(s, u) : (r = a[n] = o[n](s), r.c()), V(r, 1), r.m(t, null));
|
|
4947
4672
|
},
|
|
4948
4673
|
i(s) {
|
|
4949
4674
|
i || (V(r), i = !0);
|
|
4950
4675
|
},
|
|
4951
4676
|
o(s) {
|
|
4952
|
-
|
|
4677
|
+
W(r), i = !1;
|
|
4953
4678
|
},
|
|
4954
4679
|
d(s) {
|
|
4955
|
-
s &&
|
|
4680
|
+
s && S(t), a[n].d();
|
|
4956
4681
|
}
|
|
4957
4682
|
};
|
|
4958
4683
|
}
|
|
@@ -4960,7 +4685,7 @@ function ta(e) {
|
|
|
4960
4685
|
let t;
|
|
4961
4686
|
return {
|
|
4962
4687
|
c() {
|
|
4963
|
-
t =
|
|
4688
|
+
t = w("div"), b(t, "class", "skeleton");
|
|
4964
4689
|
},
|
|
4965
4690
|
m(n, r) {
|
|
4966
4691
|
H(n, t, r);
|
|
@@ -4969,7 +4694,7 @@ function ta(e) {
|
|
|
4969
4694
|
i: I,
|
|
4970
4695
|
o: I,
|
|
4971
4696
|
d(n) {
|
|
4972
|
-
n &&
|
|
4697
|
+
n && S(t);
|
|
4973
4698
|
}
|
|
4974
4699
|
};
|
|
4975
4700
|
}
|
|
@@ -4984,90 +4709,90 @@ function na(e) {
|
|
|
4984
4709
|
), l;
|
|
4985
4710
|
return {
|
|
4986
4711
|
c() {
|
|
4987
|
-
t =
|
|
4712
|
+
t = w("span"), t.textContent = `${k("totalBalance")}`, n = O(), i = z(r), o = O(), l = z(a), b(t, "class", "totalAmount");
|
|
4988
4713
|
},
|
|
4989
4714
|
m(c, f) {
|
|
4990
4715
|
H(c, t, f), H(c, n, f), H(c, i, f), H(c, o, f), H(c, l, f);
|
|
4991
4716
|
},
|
|
4992
4717
|
p(c, f) {
|
|
4993
|
-
var h,
|
|
4718
|
+
var h, m;
|
|
4994
4719
|
f[0] & /*playerBalance*/
|
|
4995
4720
|
1024 && r !== (r = /*playerBalance*/
|
|
4996
|
-
(((h = c[10]) == null ? void 0 : h.amount) || 0) + "") &&
|
|
4721
|
+
(((h = c[10]) == null ? void 0 : h.amount) || 0) + "") && re(i, r), f[0] & /*playerBalance*/
|
|
4997
4722
|
1024 && a !== (a = /*playerBalance*/
|
|
4998
|
-
(((
|
|
4723
|
+
(((m = c[10]) == null ? void 0 : m.currency) || "") + "") && re(l, a);
|
|
4999
4724
|
},
|
|
5000
4725
|
i: I,
|
|
5001
4726
|
o: I,
|
|
5002
4727
|
d(c) {
|
|
5003
|
-
c && (
|
|
4728
|
+
c && (S(t), S(n), S(i), S(o), S(l));
|
|
5004
4729
|
}
|
|
5005
4730
|
};
|
|
5006
4731
|
}
|
|
5007
4732
|
function ra(e) {
|
|
5008
4733
|
let t, n;
|
|
5009
|
-
return t = new
|
|
4734
|
+
return t = new Rt({}), {
|
|
5010
4735
|
c() {
|
|
5011
|
-
|
|
4736
|
+
at(t.$$.fragment);
|
|
5012
4737
|
},
|
|
5013
4738
|
m(r, i) {
|
|
5014
|
-
|
|
4739
|
+
$e(t, r, i), n = !0;
|
|
5015
4740
|
},
|
|
5016
4741
|
p: I,
|
|
5017
4742
|
i(r) {
|
|
5018
4743
|
n || (V(t.$$.fragment, r), n = !0);
|
|
5019
4744
|
},
|
|
5020
4745
|
o(r) {
|
|
5021
|
-
|
|
4746
|
+
W(t.$$.fragment, r), n = !1;
|
|
5022
4747
|
},
|
|
5023
4748
|
d(r) {
|
|
5024
|
-
|
|
4749
|
+
je(t, r);
|
|
5025
4750
|
}
|
|
5026
4751
|
};
|
|
5027
4752
|
}
|
|
5028
4753
|
function ia(e) {
|
|
5029
4754
|
let t, n, r, i, o, a, l, s, u;
|
|
5030
4755
|
const c = [sa, aa], f = [];
|
|
5031
|
-
function h(
|
|
5032
|
-
var
|
|
4756
|
+
function h(m, x) {
|
|
4757
|
+
var d;
|
|
5033
4758
|
return (
|
|
5034
4759
|
/*fetchResponse*/
|
|
5035
|
-
((
|
|
4760
|
+
((d = m[12]) == null ? void 0 : d.source) === K.BalanceError ? 0 : 1
|
|
5036
4761
|
);
|
|
5037
4762
|
}
|
|
5038
4763
|
return a = h(e), l = f[a] = c[a](e), {
|
|
5039
4764
|
c() {
|
|
5040
|
-
t =
|
|
4765
|
+
t = w("div"), n = w("p"), r = z(
|
|
5041
4766
|
/*validationError*/
|
|
5042
4767
|
e[13]
|
|
5043
|
-
), i =
|
|
4768
|
+
), i = O(), o = w("div"), l.c(), b(n, "class", "validationError"), b(o, "class", "playerBalance amountContainer"), b(t, "class", s = "balanceContainer " + /*validationError*/
|
|
5044
4769
|
(e[13] ? "hasError" : ""));
|
|
5045
4770
|
},
|
|
5046
|
-
m(
|
|
5047
|
-
H(
|
|
4771
|
+
m(m, x) {
|
|
4772
|
+
H(m, t, x), _(t, n), _(n, r), _(t, i), _(t, o), f[a].m(o, null), u = !0;
|
|
5048
4773
|
},
|
|
5049
|
-
p(
|
|
5050
|
-
(!u ||
|
|
5051
|
-
8192) &&
|
|
4774
|
+
p(m, x) {
|
|
4775
|
+
(!u || x[0] & /*validationError*/
|
|
4776
|
+
8192) && re(
|
|
5052
4777
|
r,
|
|
5053
4778
|
/*validationError*/
|
|
5054
|
-
|
|
4779
|
+
m[13]
|
|
5055
4780
|
);
|
|
5056
|
-
let
|
|
5057
|
-
a = h(
|
|
5058
|
-
f[
|
|
5059
|
-
}),
|
|
4781
|
+
let d = a;
|
|
4782
|
+
a = h(m), a === d ? f[a].p(m, x) : (He(), W(f[d], 1, 1, () => {
|
|
4783
|
+
f[d] = null;
|
|
4784
|
+
}), Pe(), l = f[a], l ? l.p(m, x) : (l = f[a] = c[a](m), l.c()), V(l, 1), l.m(o, null)), (!u || x[0] & /*validationError*/
|
|
5060
4785
|
8192 && s !== (s = "balanceContainer " + /*validationError*/
|
|
5061
|
-
(
|
|
4786
|
+
(m[13] ? "hasError" : ""))) && b(t, "class", s);
|
|
5062
4787
|
},
|
|
5063
|
-
i(
|
|
4788
|
+
i(m) {
|
|
5064
4789
|
u || (V(l), u = !0);
|
|
5065
4790
|
},
|
|
5066
|
-
o(
|
|
5067
|
-
|
|
4791
|
+
o(m) {
|
|
4792
|
+
W(l), u = !1;
|
|
5068
4793
|
},
|
|
5069
|
-
d(
|
|
5070
|
-
|
|
4794
|
+
d(m) {
|
|
4795
|
+
m && S(t), f[a].d();
|
|
5071
4796
|
}
|
|
5072
4797
|
};
|
|
5073
4798
|
}
|
|
@@ -5075,7 +4800,7 @@ function oa(e) {
|
|
|
5075
4800
|
let t;
|
|
5076
4801
|
return {
|
|
5077
4802
|
c() {
|
|
5078
|
-
t =
|
|
4803
|
+
t = w("div"), b(t, "class", "skeleton");
|
|
5079
4804
|
},
|
|
5080
4805
|
m(n, r) {
|
|
5081
4806
|
H(n, t, r);
|
|
@@ -5084,7 +4809,7 @@ function oa(e) {
|
|
|
5084
4809
|
i: I,
|
|
5085
4810
|
o: I,
|
|
5086
4811
|
d(n) {
|
|
5087
|
-
n &&
|
|
4812
|
+
n && S(t);
|
|
5088
4813
|
}
|
|
5089
4814
|
};
|
|
5090
4815
|
}
|
|
@@ -5099,44 +4824,44 @@ function aa(e) {
|
|
|
5099
4824
|
), l;
|
|
5100
4825
|
return {
|
|
5101
4826
|
c() {
|
|
5102
|
-
t =
|
|
4827
|
+
t = w("span"), t.textContent = `${k("currentBalance")}`, n = O(), i = z(r), o = O(), l = z(a), b(t, "class", "amount");
|
|
5103
4828
|
},
|
|
5104
4829
|
m(c, f) {
|
|
5105
4830
|
H(c, t, f), H(c, n, f), H(c, i, f), H(c, o, f), H(c, l, f);
|
|
5106
4831
|
},
|
|
5107
4832
|
p(c, f) {
|
|
5108
|
-
var h,
|
|
4833
|
+
var h, m;
|
|
5109
4834
|
f[0] & /*selectedCurrencyFrom*/
|
|
5110
4835
|
32 && r !== (r = /*selectedCurrencyFrom*/
|
|
5111
|
-
(((h = c[5]) == null ? void 0 : h.amount) || 0) + "") &&
|
|
4836
|
+
(((h = c[5]) == null ? void 0 : h.amount) || 0) + "") && re(i, r), f[0] & /*selectedCurrencyFrom*/
|
|
5112
4837
|
32 && a !== (a = /*selectedCurrencyFrom*/
|
|
5113
|
-
(((
|
|
4838
|
+
(((m = c[5]) == null ? void 0 : m.currency) || "") + "") && re(l, a);
|
|
5114
4839
|
},
|
|
5115
4840
|
i: I,
|
|
5116
4841
|
o: I,
|
|
5117
4842
|
d(c) {
|
|
5118
|
-
c && (
|
|
4843
|
+
c && (S(t), S(n), S(i), S(o), S(l));
|
|
5119
4844
|
}
|
|
5120
4845
|
};
|
|
5121
4846
|
}
|
|
5122
4847
|
function sa(e) {
|
|
5123
4848
|
let t, n;
|
|
5124
|
-
return t = new
|
|
4849
|
+
return t = new Rt({}), {
|
|
5125
4850
|
c() {
|
|
5126
|
-
|
|
4851
|
+
at(t.$$.fragment);
|
|
5127
4852
|
},
|
|
5128
4853
|
m(r, i) {
|
|
5129
|
-
|
|
4854
|
+
$e(t, r, i), n = !0;
|
|
5130
4855
|
},
|
|
5131
4856
|
p: I,
|
|
5132
4857
|
i(r) {
|
|
5133
4858
|
n || (V(t.$$.fragment, r), n = !0);
|
|
5134
4859
|
},
|
|
5135
4860
|
o(r) {
|
|
5136
|
-
|
|
4861
|
+
W(t.$$.fragment, r), n = !1;
|
|
5137
4862
|
},
|
|
5138
4863
|
d(r) {
|
|
5139
|
-
|
|
4864
|
+
je(t, r);
|
|
5140
4865
|
}
|
|
5141
4866
|
};
|
|
5142
4867
|
}
|
|
@@ -5147,30 +4872,30 @@ function la(e) {
|
|
|
5147
4872
|
var c;
|
|
5148
4873
|
return (
|
|
5149
4874
|
/*fetchResponse*/
|
|
5150
|
-
((c = s[12]) == null ? void 0 : c.source) ===
|
|
4875
|
+
((c = s[12]) == null ? void 0 : c.source) === K.BalanceError ? 0 : 1
|
|
5151
4876
|
);
|
|
5152
4877
|
}
|
|
5153
4878
|
return n = l(e), r = a[n] = o[n](e), {
|
|
5154
4879
|
c() {
|
|
5155
|
-
t =
|
|
4880
|
+
t = w("div"), r.c(), b(t, "class", "playerBalance amountContainer");
|
|
5156
4881
|
},
|
|
5157
4882
|
m(s, u) {
|
|
5158
4883
|
H(s, t, u), a[n].m(t, null), i = !0;
|
|
5159
4884
|
},
|
|
5160
4885
|
p(s, u) {
|
|
5161
4886
|
let c = n;
|
|
5162
|
-
n = l(s), n === c ? a[n].p(s, u) : (
|
|
4887
|
+
n = l(s), n === c ? a[n].p(s, u) : (He(), W(a[c], 1, 1, () => {
|
|
5163
4888
|
a[c] = null;
|
|
5164
|
-
}),
|
|
4889
|
+
}), Pe(), r = a[n], r ? r.p(s, u) : (r = a[n] = o[n](s), r.c()), V(r, 1), r.m(t, null));
|
|
5165
4890
|
},
|
|
5166
4891
|
i(s) {
|
|
5167
4892
|
i || (V(r), i = !0);
|
|
5168
4893
|
},
|
|
5169
4894
|
o(s) {
|
|
5170
|
-
|
|
4895
|
+
W(r), i = !1;
|
|
5171
4896
|
},
|
|
5172
4897
|
d(s) {
|
|
5173
|
-
s &&
|
|
4898
|
+
s && S(t), a[n].d();
|
|
5174
4899
|
}
|
|
5175
4900
|
};
|
|
5176
4901
|
}
|
|
@@ -5178,7 +4903,7 @@ function ua(e) {
|
|
|
5178
4903
|
let t;
|
|
5179
4904
|
return {
|
|
5180
4905
|
c() {
|
|
5181
|
-
t =
|
|
4906
|
+
t = w("div"), b(t, "class", "skeleton");
|
|
5182
4907
|
},
|
|
5183
4908
|
m(n, r) {
|
|
5184
4909
|
H(n, t, r);
|
|
@@ -5187,7 +4912,7 @@ function ua(e) {
|
|
|
5187
4912
|
i: I,
|
|
5188
4913
|
o: I,
|
|
5189
4914
|
d(n) {
|
|
5190
|
-
n &&
|
|
4915
|
+
n && S(t);
|
|
5191
4916
|
}
|
|
5192
4917
|
};
|
|
5193
4918
|
}
|
|
@@ -5202,102 +4927,102 @@ function ca(e) {
|
|
|
5202
4927
|
), l;
|
|
5203
4928
|
return {
|
|
5204
4929
|
c() {
|
|
5205
|
-
t =
|
|
4930
|
+
t = w("span"), t.textContent = `${k("currentBalance")}`, n = O(), i = z(r), o = O(), l = z(a), b(t, "class", "amount");
|
|
5206
4931
|
},
|
|
5207
4932
|
m(c, f) {
|
|
5208
4933
|
H(c, t, f), H(c, n, f), H(c, i, f), H(c, o, f), H(c, l, f);
|
|
5209
4934
|
},
|
|
5210
4935
|
p(c, f) {
|
|
5211
|
-
var h,
|
|
4936
|
+
var h, m;
|
|
5212
4937
|
f[0] & /*selectedCurrencyTo*/
|
|
5213
4938
|
64 && r !== (r = /*selectedCurrencyTo*/
|
|
5214
|
-
(((h = c[6]) == null ? void 0 : h.amount) || 0) + "") &&
|
|
4939
|
+
(((h = c[6]) == null ? void 0 : h.amount) || 0) + "") && re(i, r), f[0] & /*selectedCurrencyTo*/
|
|
5215
4940
|
64 && a !== (a = /*selectedCurrencyTo*/
|
|
5216
|
-
(((
|
|
4941
|
+
(((m = c[6]) == null ? void 0 : m.currency) || "") + "") && re(l, a);
|
|
5217
4942
|
},
|
|
5218
4943
|
i: I,
|
|
5219
4944
|
o: I,
|
|
5220
4945
|
d(c) {
|
|
5221
|
-
c && (
|
|
4946
|
+
c && (S(t), S(n), S(i), S(o), S(l));
|
|
5222
4947
|
}
|
|
5223
4948
|
};
|
|
5224
4949
|
}
|
|
5225
4950
|
function ha(e) {
|
|
5226
4951
|
let t, n;
|
|
5227
|
-
return t = new
|
|
4952
|
+
return t = new Rt({}), {
|
|
5228
4953
|
c() {
|
|
5229
|
-
|
|
4954
|
+
at(t.$$.fragment);
|
|
5230
4955
|
},
|
|
5231
4956
|
m(r, i) {
|
|
5232
|
-
|
|
4957
|
+
$e(t, r, i), n = !0;
|
|
5233
4958
|
},
|
|
5234
4959
|
p: I,
|
|
5235
4960
|
i(r) {
|
|
5236
4961
|
n || (V(t.$$.fragment, r), n = !0);
|
|
5237
4962
|
},
|
|
5238
4963
|
o(r) {
|
|
5239
|
-
|
|
4964
|
+
W(t.$$.fragment, r), n = !1;
|
|
5240
4965
|
},
|
|
5241
4966
|
d(r) {
|
|
5242
|
-
|
|
4967
|
+
je(t, r);
|
|
5243
4968
|
}
|
|
5244
4969
|
};
|
|
5245
4970
|
}
|
|
5246
4971
|
function Jn(e) {
|
|
5247
|
-
let t, n, r, i, o, a, l, s, u, c, f =
|
|
4972
|
+
let t, n, r, i, o, a, l, s, u, c, f = Tt(
|
|
5248
4973
|
/*dropDownVaults*/
|
|
5249
|
-
e[
|
|
4974
|
+
e[19]
|
|
5250
4975
|
), h = [];
|
|
5251
|
-
for (let
|
|
5252
|
-
h[
|
|
4976
|
+
for (let m = 0; m < f.length; m += 1)
|
|
4977
|
+
h[m] = qn(Qn(e, f, m));
|
|
5253
4978
|
return {
|
|
5254
4979
|
c() {
|
|
5255
|
-
t =
|
|
5256
|
-
for (let
|
|
5257
|
-
h[
|
|
4980
|
+
t = w("div"), n = w("button"), r = An("svg"), i = An("path"), a = O(), l = w("div");
|
|
4981
|
+
for (let m = 0; m < h.length; m += 1)
|
|
4982
|
+
h[m].c();
|
|
5258
4983
|
b(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"), b(i, "fill", "currentColor"), b(r, "class", "vaultToggleIcon"), b(r, "width", "12"), b(r, "height", "7"), b(r, "viewBox", "0 0 12 7"), b(r, "fill", "currentColor"), b(r, "xmlns", "http://www.w3.org/2000/svg"), b(n, "type", "button"), b(n, "class", o = "vaultToggleButton " + /*isVaultDropDownToggled*/
|
|
5259
4984
|
(e[15] && /*dropDownVaults*/
|
|
5260
|
-
e[
|
|
4985
|
+
e[19].length > 0 ? "active" : "")), b(l, "class", s = "vaultDropdown " + /*isVaultDropDownToggled*/
|
|
5261
4986
|
(e[15] && /*dropDownVaults*/
|
|
5262
|
-
e[
|
|
4987
|
+
e[19].length > 0 ? "expanded" : "")), b(t, "class", "vaultsContainer");
|
|
5263
4988
|
},
|
|
5264
|
-
m(
|
|
5265
|
-
H(
|
|
5266
|
-
for (let
|
|
5267
|
-
h[
|
|
5268
|
-
u || (c =
|
|
4989
|
+
m(m, x) {
|
|
4990
|
+
H(m, t, x), _(t, n), _(n, r), _(r, i), _(t, a), _(t, l);
|
|
4991
|
+
for (let d = 0; d < h.length; d += 1)
|
|
4992
|
+
h[d] && h[d].m(l, null);
|
|
4993
|
+
u || (c = ae(
|
|
5269
4994
|
n,
|
|
5270
4995
|
"click",
|
|
5271
4996
|
/*handleToggleVaultDropdown*/
|
|
5272
|
-
e[
|
|
4997
|
+
e[22]
|
|
5273
4998
|
), u = !0);
|
|
5274
4999
|
},
|
|
5275
|
-
p(
|
|
5276
|
-
if (
|
|
5277
|
-
|
|
5278
|
-
(
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
f =
|
|
5000
|
+
p(m, x) {
|
|
5001
|
+
if (x[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
5002
|
+
557056 && o !== (o = "vaultToggleButton " + /*isVaultDropDownToggled*/
|
|
5003
|
+
(m[15] && /*dropDownVaults*/
|
|
5004
|
+
m[19].length > 0 ? "active" : "")) && b(n, "class", o), x[0] & /*dropDownVaults*/
|
|
5005
|
+
524288) {
|
|
5006
|
+
f = Tt(
|
|
5282
5007
|
/*dropDownVaults*/
|
|
5283
|
-
|
|
5008
|
+
m[19]
|
|
5284
5009
|
);
|
|
5285
|
-
let
|
|
5286
|
-
for (
|
|
5287
|
-
const
|
|
5288
|
-
h[
|
|
5010
|
+
let d;
|
|
5011
|
+
for (d = 0; d < f.length; d += 1) {
|
|
5012
|
+
const E = Qn(m, f, d);
|
|
5013
|
+
h[d] ? h[d].p(E, x) : (h[d] = qn(E), h[d].c(), h[d].m(l, null));
|
|
5289
5014
|
}
|
|
5290
|
-
for (;
|
|
5291
|
-
h[
|
|
5015
|
+
for (; d < h.length; d += 1)
|
|
5016
|
+
h[d].d(1);
|
|
5292
5017
|
h.length = f.length;
|
|
5293
5018
|
}
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
(
|
|
5297
|
-
|
|
5019
|
+
x[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
5020
|
+
557056 && s !== (s = "vaultDropdown " + /*isVaultDropDownToggled*/
|
|
5021
|
+
(m[15] && /*dropDownVaults*/
|
|
5022
|
+
m[19].length > 0 ? "expanded" : "")) && b(l, "class", s);
|
|
5298
5023
|
},
|
|
5299
|
-
d(
|
|
5300
|
-
|
|
5024
|
+
d(m) {
|
|
5025
|
+
m && S(t), nr(h, m), u = !1, c();
|
|
5301
5026
|
}
|
|
5302
5027
|
};
|
|
5303
5028
|
}
|
|
@@ -5305,28 +5030,28 @@ function qn(e) {
|
|
|
5305
5030
|
var c, f;
|
|
5306
5031
|
let t, n, r = (
|
|
5307
5032
|
/*vault*/
|
|
5308
|
-
((c = e[
|
|
5033
|
+
((c = e[60]) == null ? void 0 : c.currency) + ""
|
|
5309
5034
|
), i, o, a, l = (
|
|
5310
5035
|
/*vault*/
|
|
5311
|
-
((f = e[
|
|
5036
|
+
((f = e[60]) == null ? void 0 : f.amount) + ""
|
|
5312
5037
|
), s, u;
|
|
5313
5038
|
return {
|
|
5314
5039
|
c() {
|
|
5315
|
-
t =
|
|
5040
|
+
t = w("div"), n = w("p"), i = z(r), o = O(), a = w("p"), s = z(l), u = O(), b(t, "class", "vaultItem");
|
|
5316
5041
|
},
|
|
5317
|
-
m(h,
|
|
5318
|
-
H(h, t,
|
|
5042
|
+
m(h, m) {
|
|
5043
|
+
H(h, t, m), _(t, n), _(n, i), _(t, o), _(t, a), _(a, s), _(t, u);
|
|
5319
5044
|
},
|
|
5320
|
-
p(h,
|
|
5321
|
-
var
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
((
|
|
5325
|
-
|
|
5326
|
-
((
|
|
5045
|
+
p(h, m) {
|
|
5046
|
+
var x, d;
|
|
5047
|
+
m[0] & /*dropDownVaults*/
|
|
5048
|
+
524288 && r !== (r = /*vault*/
|
|
5049
|
+
((x = h[60]) == null ? void 0 : x.currency) + "") && re(i, r), m[0] & /*dropDownVaults*/
|
|
5050
|
+
524288 && l !== (l = /*vault*/
|
|
5051
|
+
((d = h[60]) == null ? void 0 : d.amount) + "") && re(s, l);
|
|
5327
5052
|
},
|
|
5328
5053
|
d(h) {
|
|
5329
|
-
h &&
|
|
5054
|
+
h && S(t);
|
|
5330
5055
|
}
|
|
5331
5056
|
};
|
|
5332
5057
|
}
|
|
@@ -5337,7 +5062,7 @@ function fa(e) {
|
|
|
5337
5062
|
((i = e[11]) == null ? void 0 : i.currency) || ""}`, n;
|
|
5338
5063
|
return {
|
|
5339
5064
|
c() {
|
|
5340
|
-
n =
|
|
5065
|
+
n = z(t);
|
|
5341
5066
|
},
|
|
5342
5067
|
m(o, a) {
|
|
5343
5068
|
H(o, n, a);
|
|
@@ -5347,355 +5072,601 @@ function fa(e) {
|
|
|
5347
5072
|
a[0] & /*currentFee*/
|
|
5348
5073
|
2048 && t !== (t = `${/*currentFee*/
|
|
5349
5074
|
((l = o[11]) == null ? void 0 : l.amount) || 0} ${/*currentFee*/
|
|
5350
|
-
((s = o[11]) == null ? void 0 : s.currency) || ""}`) &&
|
|
5075
|
+
((s = o[11]) == null ? void 0 : s.currency) || ""}`) && re(n, t);
|
|
5351
5076
|
},
|
|
5352
5077
|
d(o) {
|
|
5353
|
-
o &&
|
|
5078
|
+
o && S(n);
|
|
5354
5079
|
}
|
|
5355
5080
|
};
|
|
5356
5081
|
}
|
|
5357
5082
|
function pa(e) {
|
|
5358
|
-
let t =
|
|
5083
|
+
let t = k("feesUnavailable") + "", n;
|
|
5359
5084
|
return {
|
|
5360
5085
|
c() {
|
|
5361
|
-
n =
|
|
5086
|
+
n = z(t);
|
|
5362
5087
|
},
|
|
5363
5088
|
m(r, i) {
|
|
5364
5089
|
H(r, n, i);
|
|
5365
5090
|
},
|
|
5366
5091
|
p: I,
|
|
5367
5092
|
d(r) {
|
|
5368
|
-
r &&
|
|
5093
|
+
r && S(n);
|
|
5369
5094
|
}
|
|
5370
5095
|
};
|
|
5371
5096
|
}
|
|
5372
5097
|
function da(e) {
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5098
|
+
var de;
|
|
5099
|
+
let t, n, r, i, o, a, l, s, u, c, f, h, m, x, d, E, v, L, C, Y, R, ie, se, ce, $, he, Le, J, ge, Je, q, j, ct, qe, Ee, Ne, ht, Ce, Oe, oe, be = k(
|
|
5100
|
+
/*fetchResponse*/
|
|
5101
|
+
((de = e[12]) == null ? void 0 : de.message) || ""
|
|
5102
|
+
) + "", et, ye, fe, ft, X, kt = k("exchange") + "", Be, Re, ne, ke, Dt, Z = (
|
|
5103
|
+
/*showclosebutton*/
|
|
5104
|
+
e[3] === we.true && Kn(e)
|
|
5105
|
+
), F = (
|
|
5106
|
+
/*showtotalbalance*/
|
|
5107
|
+
e[2] === we.true && Yn(e)
|
|
5376
5108
|
);
|
|
5109
|
+
function Mt(g) {
|
|
5110
|
+
e[38](g);
|
|
5111
|
+
}
|
|
5112
|
+
let pt = {
|
|
5113
|
+
withSymbol: (
|
|
5114
|
+
/*showcurrencysymbol*/
|
|
5115
|
+
e[4]
|
|
5116
|
+
),
|
|
5117
|
+
disabled: !/*isBalanceFetched*/
|
|
5118
|
+
e[16] || !/*isCurrenciesFetched*/
|
|
5119
|
+
e[17],
|
|
5120
|
+
options: (
|
|
5121
|
+
/*optionsFrom*/
|
|
5122
|
+
e[20]
|
|
5123
|
+
),
|
|
5124
|
+
onChange: (
|
|
5125
|
+
/*checkWalletExchangeDebounced*/
|
|
5126
|
+
e[25]
|
|
5127
|
+
)
|
|
5128
|
+
};
|
|
5129
|
+
/*selectedCurrencyFrom*/
|
|
5130
|
+
e[5] !== void 0 && (pt.selected = /*selectedCurrencyFrom*/
|
|
5131
|
+
e[5]), d = new hn({ props: pt }), Ge.push(() => Cn(d, "selected", Mt));
|
|
5132
|
+
const tt = [oa, ia], pe = [];
|
|
5133
|
+
function dt(g, y) {
|
|
5134
|
+
return !/*isBalanceFetched*/
|
|
5135
|
+
g[16] || !/*isCurrenciesFetched*/
|
|
5136
|
+
g[17] ? 0 : 1;
|
|
5137
|
+
}
|
|
5138
|
+
L = dt(e), C = pe[L] = tt[L](e);
|
|
5139
|
+
function Ut(g) {
|
|
5140
|
+
e[40](g);
|
|
5141
|
+
}
|
|
5142
|
+
let mt = {
|
|
5143
|
+
withSymbol: (
|
|
5144
|
+
/*showcurrencysymbol*/
|
|
5145
|
+
e[4]
|
|
5146
|
+
),
|
|
5147
|
+
disabled: !/*session*/
|
|
5148
|
+
e[0] || !!/*validationError*/
|
|
5149
|
+
e[13] || !/*isBalanceFetched*/
|
|
5150
|
+
e[16] || !/*isCurrenciesFetched*/
|
|
5151
|
+
e[17],
|
|
5152
|
+
options: (
|
|
5153
|
+
/*optionsTo*/
|
|
5154
|
+
e[21]
|
|
5155
|
+
),
|
|
5156
|
+
onChange: (
|
|
5157
|
+
/*checkWalletExchangeDebounced*/
|
|
5158
|
+
e[25]
|
|
5159
|
+
)
|
|
5160
|
+
};
|
|
5161
|
+
/*selectedCurrencyTo*/
|
|
5162
|
+
e[6] !== void 0 && (mt.selected = /*selectedCurrencyTo*/
|
|
5163
|
+
e[6]), J = new hn({ props: mt }), Ge.push(() => Cn(J, "selected", Ut));
|
|
5164
|
+
const gt = [ua, la], p = [];
|
|
5165
|
+
function B(g, y) {
|
|
5166
|
+
return !/*isBalanceFetched*/
|
|
5167
|
+
g[16] || !/*isCurrenciesFetched*/
|
|
5168
|
+
g[17] ? 0 : 1;
|
|
5169
|
+
}
|
|
5170
|
+
q = B(e), j = p[q] = gt[q](e);
|
|
5171
|
+
let T = (
|
|
5172
|
+
/*showvaults*/
|
|
5173
|
+
e[1] === we.true && Jn(e)
|
|
5174
|
+
);
|
|
5175
|
+
function A(g, y) {
|
|
5176
|
+
var Q;
|
|
5177
|
+
return (
|
|
5178
|
+
/*fetchResponse*/
|
|
5179
|
+
((Q = g[12]) == null ? void 0 : Q.source) === K.CheckWalletExchangeError ? pa : fa
|
|
5180
|
+
);
|
|
5181
|
+
}
|
|
5182
|
+
let M = A(e), ee = M(e);
|
|
5377
5183
|
return {
|
|
5378
5184
|
c() {
|
|
5379
|
-
|
|
5185
|
+
var g, y, Q;
|
|
5186
|
+
t = w("div"), Z && Z.c(), n = O(), r = w("div"), i = w("h1"), i.textContent = `${k("vaultExchange")}`, o = O(), F && F.c(), a = O(), l = w("div"), s = w("div"), u = w("p"), u.textContent = `${k("exchangeFrom")}`, c = O(), f = w("div"), h = w("input"), x = O(), at(d.$$.fragment), v = O(), C.c(), Y = O(), R = w("div"), ie = w("p"), ie.textContent = `${k("exchangeTo")}`, se = O(), ce = w("div"), $ = w("input"), Le = O(), at(J.$$.fragment), Je = O(), j.c(), ct = O(), T && T.c(), qe = O(), Ee = w("div"), Ne = w("span"), Ne.textContent = `${k("feesIncluded")}`, ht = O(), Ce = w("span"), ee.c(), Oe = O(), oe = w("div"), et = O(), ye = w("div"), fe = w("button"), fe.textContent = `${k("reset")}`, ft = O(), X = w("button"), Be = z(kt), b(i, "class", "headerTitle"), b(r, "class", "headerContainer"), b(u, "class", "exchangeHeader"), b(h, "id", "senderInput"), h.disabled = m = !/*session*/
|
|
5187
|
+
e[0] || !/*isBalanceFetched*/
|
|
5188
|
+
e[16] || !/*isCurrenciesFetched*/
|
|
5189
|
+
e[17], b(h, "placeholder", k("debitPlaceHolder")), b(h, "class", "exchangeInput"), b(h, "type", "number"), b(h, "aria-label", "Enter exchange amount"), b(h, "inputmode", "decimal"), b(h, "step", "0.000000000000000001"), b(h, "min", "0"), b(f, "class", "flexingContainerRow"), b(s, "class", "containerExchangeFrom exchangeContainer"), b(ie, "class", "exchangeHeader"), b($, "id", "destinationInput"), $.disabled = he = !/*session*/
|
|
5190
|
+
e[0] || !/*isBalanceFetched*/
|
|
5191
|
+
e[16] || !/*isCurrenciesFetched*/
|
|
5192
|
+
e[17], b($, "placeholder", k("creditPlaceHolder")), b($, "class", "exchangeInput"), b($, "type", "number"), $.readOnly = !0, b($, "min", "0"), b(ce, "class", "flexingContainerRow"), b(R, "class", "containerExchangeTo exchangeContainer"), b(l, "class", "exchangesContainer"), b(Ne, "class", "feesLabel"), b(Ee, "class", "feesContainer"), b(oe, "class", "notificationsContainer"), ue(
|
|
5193
|
+
oe,
|
|
5194
|
+
"error",
|
|
5195
|
+
/*fetchResponse*/
|
|
5196
|
+
((g = e[12]) == null ? void 0 : g.type) === "error"
|
|
5197
|
+
), ue(
|
|
5198
|
+
oe,
|
|
5199
|
+
"success",
|
|
5200
|
+
/*fetchResponse*/
|
|
5201
|
+
((y = e[12]) == null ? void 0 : y.type) === "success"
|
|
5202
|
+
), b(fe, "class", "resetButton"), b(fe, "type", "button"), b(X, "type", "button"), b(X, "class", "exchangeButton"), X.disabled = Re = /*isExchangeDisabled*/
|
|
5203
|
+
e[14] || /*isExchangePending*/
|
|
5204
|
+
e[18] || /*inputExchangeFrom*/
|
|
5205
|
+
e[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5206
|
+
((Q = e[5]) != null && Q.amount), ue(
|
|
5207
|
+
X,
|
|
5208
|
+
"disabled",
|
|
5209
|
+
/*isExchangeDisabled*/
|
|
5210
|
+
e[14] || /*isExchangePending*/
|
|
5211
|
+
e[18]
|
|
5212
|
+
), ue(
|
|
5213
|
+
X,
|
|
5214
|
+
"pending",
|
|
5215
|
+
/*isExchangePending*/
|
|
5216
|
+
e[18]
|
|
5217
|
+
), b(ye, "class", "actionsContainer"), b(t, "class", "playerAccountVault");
|
|
5380
5218
|
},
|
|
5381
|
-
m(
|
|
5382
|
-
|
|
5219
|
+
m(g, y) {
|
|
5220
|
+
H(g, t, y), Z && Z.m(t, null), _(t, n), _(t, r), _(r, i), _(r, o), F && F.m(r, null), _(t, a), _(t, l), _(l, s), _(s, u), _(s, c), _(s, f), _(f, h), bt(
|
|
5221
|
+
h,
|
|
5222
|
+
/*inputExchangeFrom*/
|
|
5223
|
+
e[8]
|
|
5224
|
+
), _(f, x), $e(d, f, null), _(s, v), pe[L].m(s, null), _(l, Y), _(l, R), _(R, ie), _(R, se), _(R, ce), _(ce, $), bt(
|
|
5225
|
+
$,
|
|
5226
|
+
/*inputExchangeTo*/
|
|
5227
|
+
e[9]
|
|
5228
|
+
), _(ce, Le), $e(J, ce, null), _(R, Je), p[q].m(R, null), _(t, ct), T && T.m(t, null), _(t, qe), _(t, Ee), _(Ee, Ne), _(Ee, ht), _(Ee, Ce), ee.m(Ce, null), _(t, Oe), _(t, oe), oe.innerHTML = be, _(t, et), _(t, ye), _(ye, fe), _(ye, ft), _(ye, X), _(X, Be), e[41](t), ne = !0, ke || (Dt = [
|
|
5229
|
+
ae(
|
|
5230
|
+
h,
|
|
5231
|
+
"input",
|
|
5232
|
+
/*input0_input_handler*/
|
|
5233
|
+
e[37]
|
|
5234
|
+
),
|
|
5235
|
+
ae(
|
|
5236
|
+
h,
|
|
5237
|
+
"input",
|
|
5238
|
+
/*handleInputChange*/
|
|
5239
|
+
e[26]
|
|
5240
|
+
),
|
|
5241
|
+
ae(
|
|
5242
|
+
h,
|
|
5243
|
+
"beforeinput",
|
|
5244
|
+
/*handleBeforeInput*/
|
|
5245
|
+
e[27]
|
|
5246
|
+
),
|
|
5247
|
+
ae(
|
|
5248
|
+
$,
|
|
5249
|
+
"input",
|
|
5250
|
+
/*input1_input_handler*/
|
|
5251
|
+
e[39]
|
|
5252
|
+
),
|
|
5253
|
+
ae(
|
|
5254
|
+
fe,
|
|
5255
|
+
"click",
|
|
5256
|
+
/*handleResetToDefault*/
|
|
5257
|
+
e[24]
|
|
5258
|
+
),
|
|
5259
|
+
ae(
|
|
5260
|
+
X,
|
|
5261
|
+
"click",
|
|
5262
|
+
/*handleExchange*/
|
|
5263
|
+
e[28]
|
|
5264
|
+
)
|
|
5265
|
+
], ke = !0);
|
|
5383
5266
|
},
|
|
5384
|
-
p(
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5267
|
+
p(g, y) {
|
|
5268
|
+
var yn, vn, _n, En;
|
|
5269
|
+
/*showclosebutton*/
|
|
5270
|
+
g[3] === we.true ? Z ? Z.p(g, y) : (Z = Kn(g), Z.c(), Z.m(t, n)) : Z && (Z.d(1), Z = null), /*showtotalbalance*/
|
|
5271
|
+
g[2] === we.true ? F ? (F.p(g, y), y[0] & /*showtotalbalance*/
|
|
5272
|
+
4 && V(F, 1)) : (F = Yn(g), F.c(), V(F, 1), F.m(r, null)) : F && (He(), W(F, 1, 1, () => {
|
|
5273
|
+
F = null;
|
|
5274
|
+
}), Pe()), (!ne || y[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5275
|
+
196609 && m !== (m = !/*session*/
|
|
5276
|
+
g[0] || !/*isBalanceFetched*/
|
|
5277
|
+
g[16] || !/*isCurrenciesFetched*/
|
|
5278
|
+
g[17])) && (h.disabled = m), y[0] & /*inputExchangeFrom*/
|
|
5279
|
+
256 && At(h.value) !== /*inputExchangeFrom*/
|
|
5280
|
+
g[8] && bt(
|
|
5281
|
+
h,
|
|
5282
|
+
/*inputExchangeFrom*/
|
|
5283
|
+
g[8]
|
|
5284
|
+
);
|
|
5285
|
+
const Q = {};
|
|
5286
|
+
y[0] & /*showcurrencysymbol*/
|
|
5287
|
+
16 && (Q.withSymbol = /*showcurrencysymbol*/
|
|
5288
|
+
g[4]), y[0] & /*isBalanceFetched, isCurrenciesFetched*/
|
|
5289
|
+
196608 && (Q.disabled = !/*isBalanceFetched*/
|
|
5290
|
+
g[16] || !/*isCurrenciesFetched*/
|
|
5291
|
+
g[17]), y[0] & /*optionsFrom*/
|
|
5292
|
+
1048576 && (Q.options = /*optionsFrom*/
|
|
5293
|
+
g[20]), !E && y[0] & /*selectedCurrencyFrom*/
|
|
5294
|
+
32 && (E = !0, Q.selected = /*selectedCurrencyFrom*/
|
|
5295
|
+
g[5], Tn(() => E = !1)), d.$set(Q);
|
|
5296
|
+
let ve = L;
|
|
5297
|
+
L = dt(g), L === ve ? pe[L].p(g, y) : (He(), W(pe[ve], 1, 1, () => {
|
|
5298
|
+
pe[ve] = null;
|
|
5299
|
+
}), Pe(), C = pe[L], C ? C.p(g, y) : (C = pe[L] = tt[L](g), C.c()), V(C, 1), C.m(s, null)), (!ne || y[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5300
|
+
196609 && he !== (he = !/*session*/
|
|
5301
|
+
g[0] || !/*isBalanceFetched*/
|
|
5302
|
+
g[16] || !/*isCurrenciesFetched*/
|
|
5303
|
+
g[17])) && ($.disabled = he), y[0] & /*inputExchangeTo*/
|
|
5304
|
+
512 && At($.value) !== /*inputExchangeTo*/
|
|
5305
|
+
g[9] && bt(
|
|
5306
|
+
$,
|
|
5307
|
+
/*inputExchangeTo*/
|
|
5308
|
+
g[9]
|
|
5309
|
+
);
|
|
5310
|
+
const nt = {};
|
|
5311
|
+
y[0] & /*showcurrencysymbol*/
|
|
5312
|
+
16 && (nt.withSymbol = /*showcurrencysymbol*/
|
|
5313
|
+
g[4]), y[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
|
|
5314
|
+
204801 && (nt.disabled = !/*session*/
|
|
5315
|
+
g[0] || !!/*validationError*/
|
|
5316
|
+
g[13] || !/*isBalanceFetched*/
|
|
5317
|
+
g[16] || !/*isCurrenciesFetched*/
|
|
5318
|
+
g[17]), y[0] & /*optionsTo*/
|
|
5319
|
+
2097152 && (nt.options = /*optionsTo*/
|
|
5320
|
+
g[21]), !ge && y[0] & /*selectedCurrencyTo*/
|
|
5321
|
+
64 && (ge = !0, nt.selected = /*selectedCurrencyTo*/
|
|
5322
|
+
g[6], Tn(() => ge = !1)), J.$set(nt);
|
|
5323
|
+
let Vt = q;
|
|
5324
|
+
q = B(g), q === Vt ? p[q].p(g, y) : (He(), W(p[Vt], 1, 1, () => {
|
|
5325
|
+
p[Vt] = null;
|
|
5326
|
+
}), Pe(), j = p[q], j ? j.p(g, y) : (j = p[q] = gt[q](g), j.c()), V(j, 1), j.m(R, null)), /*showvaults*/
|
|
5327
|
+
g[1] === we.true ? T ? T.p(g, y) : (T = Jn(g), T.c(), T.m(t, qe)) : T && (T.d(1), T = null), M === (M = A(g)) && ee ? ee.p(g, y) : (ee.d(1), ee = M(g), ee && (ee.c(), ee.m(Ce, null))), (!ne || y[0] & /*fetchResponse*/
|
|
5328
|
+
4096) && be !== (be = k(
|
|
5329
|
+
/*fetchResponse*/
|
|
5330
|
+
((yn = g[12]) == null ? void 0 : yn.message) || ""
|
|
5331
|
+
) + "") && (oe.innerHTML = be), (!ne || y[0] & /*fetchResponse*/
|
|
5332
|
+
4096) && ue(
|
|
5333
|
+
oe,
|
|
5334
|
+
"error",
|
|
5335
|
+
/*fetchResponse*/
|
|
5336
|
+
((vn = g[12]) == null ? void 0 : vn.type) === "error"
|
|
5337
|
+
), (!ne || y[0] & /*fetchResponse*/
|
|
5338
|
+
4096) && ue(
|
|
5339
|
+
oe,
|
|
5340
|
+
"success",
|
|
5341
|
+
/*fetchResponse*/
|
|
5342
|
+
((_n = g[12]) == null ? void 0 : _n.type) === "success"
|
|
5343
|
+
), (!ne || y[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
|
|
5344
|
+
278816 && Re !== (Re = /*isExchangeDisabled*/
|
|
5345
|
+
g[14] || /*isExchangePending*/
|
|
5346
|
+
g[18] || /*inputExchangeFrom*/
|
|
5347
|
+
g[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5348
|
+
((En = g[5]) != null && En.amount))) && (X.disabled = Re), (!ne || y[0] & /*isExchangeDisabled, isExchangePending*/
|
|
5349
|
+
278528) && ue(
|
|
5350
|
+
X,
|
|
5351
|
+
"disabled",
|
|
5352
|
+
/*isExchangeDisabled*/
|
|
5353
|
+
g[14] || /*isExchangePending*/
|
|
5354
|
+
g[18]
|
|
5355
|
+
), (!ne || y[0] & /*isExchangePending*/
|
|
5356
|
+
262144) && ue(
|
|
5357
|
+
X,
|
|
5358
|
+
"pending",
|
|
5359
|
+
/*isExchangePending*/
|
|
5360
|
+
g[18]
|
|
5361
|
+
);
|
|
5390
5362
|
},
|
|
5391
|
-
i(
|
|
5392
|
-
|
|
5363
|
+
i(g) {
|
|
5364
|
+
ne || (V(F), V(d.$$.fragment, g), V(C), V(J.$$.fragment, g), V(j), ne = !0);
|
|
5393
5365
|
},
|
|
5394
|
-
o(
|
|
5395
|
-
|
|
5366
|
+
o(g) {
|
|
5367
|
+
W(F), W(d.$$.fragment, g), W(C), W(J.$$.fragment, g), W(j), ne = !1;
|
|
5396
5368
|
},
|
|
5397
|
-
d(
|
|
5398
|
-
|
|
5369
|
+
d(g) {
|
|
5370
|
+
g && S(t), Z && Z.d(), F && F.d(), je(d), pe[L].d(), je(J), p[q].d(), T && T.d(), ee.d(), e[41](null), ke = !1, _e(Dt);
|
|
5399
5371
|
}
|
|
5400
5372
|
};
|
|
5401
5373
|
}
|
|
5402
5374
|
function ma(e, t, n) {
|
|
5403
|
-
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: o = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: u = "" } = t, { playercurrency: c = "" } = t, { showvaults: f =
|
|
5404
|
-
Uo({ withLocale: "en", translations: {} }), Object.keys(
|
|
5405
|
-
|
|
5375
|
+
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: o = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: u = "" } = t, { playercurrency: c = "" } = t, { showvaults: f = "true" } = t, { showtotalbalance: h = "true" } = t, { showclosebutton: m = "true" } = t, { showcurrencysymbol: x = "true" } = t, d = null, E = null, v = 0, L = 0, C = null, Y = null, R = null, ie = "", se = !0, ce = !1, $ = !1, he = !1, Le = !1, J = [], ge = [], Je = [], q = [], j;
|
|
5376
|
+
Uo({ withLocale: "en", translations: {} }), Object.keys(Fn).forEach((p) => {
|
|
5377
|
+
Vn(p, Fn[p]);
|
|
5406
5378
|
});
|
|
5407
|
-
const
|
|
5379
|
+
const ct = () => {
|
|
5408
5380
|
Vo(a);
|
|
5409
|
-
},
|
|
5410
|
-
fetch(u).then((
|
|
5411
|
-
Object.keys(
|
|
5412
|
-
|
|
5381
|
+
}, qe = () => {
|
|
5382
|
+
fetch(u).then((p) => p.json()).then((p) => {
|
|
5383
|
+
Object.keys(p).forEach((B) => {
|
|
5384
|
+
Vn(B, p[B]);
|
|
5413
5385
|
});
|
|
5414
|
-
}).catch((
|
|
5415
|
-
console.error("There was a problem with the translations request.",
|
|
5386
|
+
}).catch((p) => {
|
|
5387
|
+
console.error("There was a problem with the translations request.", p);
|
|
5416
5388
|
});
|
|
5417
|
-
},
|
|
5418
|
-
let
|
|
5419
|
-
|
|
5420
|
-
},
|
|
5421
|
-
let
|
|
5422
|
-
fetch(
|
|
5423
|
-
|
|
5389
|
+
}, Ee = () => {
|
|
5390
|
+
let p = document.createElement("style");
|
|
5391
|
+
p.innerHTML = l, j.appendChild(p);
|
|
5392
|
+
}, Ne = () => {
|
|
5393
|
+
let p, B = new URL(s), T = document.createElement("style");
|
|
5394
|
+
fetch(B.href).then((A) => A.text()).then((A) => {
|
|
5395
|
+
T.innerHTML = A, p && clearTimeout(p), p = setTimeout(
|
|
5424
5396
|
() => {
|
|
5425
|
-
|
|
5397
|
+
j.appendChild(T);
|
|
5426
5398
|
},
|
|
5427
5399
|
1
|
|
5428
5400
|
);
|
|
5429
5401
|
});
|
|
5430
|
-
},
|
|
5431
|
-
|
|
5402
|
+
}, ht = () => {
|
|
5403
|
+
ge.length !== 0 && (n(15, ce = !ce), window.postMessage(
|
|
5432
5404
|
{
|
|
5433
|
-
type:
|
|
5434
|
-
state:
|
|
5405
|
+
type: Yt.VaultDropdownToggled,
|
|
5406
|
+
state: ce
|
|
5435
5407
|
},
|
|
5436
5408
|
window.location.href
|
|
5437
5409
|
));
|
|
5438
|
-
},
|
|
5439
|
-
|
|
5410
|
+
}, Ce = () => {
|
|
5411
|
+
window.postMessage(
|
|
5440
5412
|
{
|
|
5441
|
-
type:
|
|
5413
|
+
type: Yt.VaultWidgetClosed
|
|
5442
5414
|
},
|
|
5443
5415
|
window.location.href
|
|
5444
5416
|
);
|
|
5445
|
-
},
|
|
5446
|
-
n(14,
|
|
5447
|
-
},
|
|
5448
|
-
n(14,
|
|
5449
|
-
}, Ie = () => {
|
|
5450
|
-
n(11, Z = null);
|
|
5417
|
+
}, Oe = () => {
|
|
5418
|
+
n(14, se = !0), be(), et(), ye(), fe(), window.postMessage({ type: Yt.VaultWidgetReset }, window.location.href);
|
|
5419
|
+
}, oe = () => {
|
|
5420
|
+
n(14, se = !0), n(9, L = 0);
|
|
5451
5421
|
}, be = () => {
|
|
5452
|
-
n(
|
|
5422
|
+
n(11, Y = null);
|
|
5423
|
+
}, et = () => {
|
|
5424
|
+
n(8, v = 0), n(9, L = 0);
|
|
5453
5425
|
}, ye = () => {
|
|
5454
|
-
n(13,
|
|
5455
|
-
},
|
|
5456
|
-
n(12,
|
|
5457
|
-
},
|
|
5458
|
-
|
|
5459
|
-
},
|
|
5460
|
-
let
|
|
5461
|
-
switch (n(12,
|
|
5462
|
-
case
|
|
5463
|
-
n(14,
|
|
5426
|
+
n(13, ie = "");
|
|
5427
|
+
}, fe = () => {
|
|
5428
|
+
n(12, R = null);
|
|
5429
|
+
}, ft = (p) => {
|
|
5430
|
+
p && n(13, ie = p);
|
|
5431
|
+
}, X = ({ type: p, message: B, source: T = "" }) => {
|
|
5432
|
+
let A;
|
|
5433
|
+
switch (n(12, R = { message: B, source: T, type: p }), p) {
|
|
5434
|
+
case xe.error:
|
|
5435
|
+
n(14, se = !0), window.postMessage({ type: T, data: { type: p, message: B } }, window.location.href);
|
|
5464
5436
|
break;
|
|
5465
|
-
case
|
|
5466
|
-
n(14,
|
|
5437
|
+
case xe.success:
|
|
5438
|
+
n(14, se = !0), window.postMessage({ type: T, data: { type: p, message: B } }, window.location.href), A && clearTimeout(A), A = setTimeout(
|
|
5467
5439
|
() => {
|
|
5468
|
-
|
|
5440
|
+
fe();
|
|
5469
5441
|
},
|
|
5470
5442
|
Go
|
|
5471
5443
|
);
|
|
5472
5444
|
break;
|
|
5473
5445
|
}
|
|
5474
|
-
},
|
|
5475
|
-
const
|
|
5476
|
-
|
|
5477
|
-
}),
|
|
5478
|
-
var
|
|
5479
|
-
const
|
|
5480
|
-
return (
|
|
5481
|
-
type:
|
|
5482
|
-
message:
|
|
5483
|
-
source:
|
|
5446
|
+
}, kt = () => new Promise((p, B) => {
|
|
5447
|
+
const T = R == null ? void 0 : R.message.includes($o.InvalidSession);
|
|
5448
|
+
T && B(), (v < 0 || v === null || isNaN(Number(v))) && (oe(), be(), B(k("invalidValue"))), v > (d == null ? void 0 : d.amount) && (oe(), be(), B(k("exceededValue"))), v === 0 && v === 0 && !T && (Oe(), B()), (!d || !E) && !T && B(), ye(), p();
|
|
5449
|
+
}), Be = (p, B) => $t(this, null, function* () {
|
|
5450
|
+
var A, M;
|
|
5451
|
+
const T = yield p.json();
|
|
5452
|
+
return (p == null ? void 0 : p.status) >= 200 && (p == null ? void 0 : p.status) < 400 ? T : (B === K.CheckWalletExchangeError && oe(), !$ && B === K.BalanceError && (n(16, $ = !0), n(17, he = !0)), !he && B === K.CurrenciesError && n(17, he = !0), X({
|
|
5453
|
+
type: xe.error,
|
|
5454
|
+
message: k((A = T == null ? void 0 : T.thirdPartyResponse) == null ? void 0 : A.code) || k((M = T == null ? void 0 : T.thirdPartyResponse) == null ? void 0 : M.errorCode) || "generalError",
|
|
5455
|
+
source: B
|
|
5484
5456
|
}));
|
|
5485
|
-
}),
|
|
5486
|
-
const
|
|
5487
|
-
fetch(
|
|
5457
|
+
}), Re = () => new Promise((p, B) => {
|
|
5458
|
+
const T = new URL(`${o}/v1/player/${i}/wallet-exchange/currencies`);
|
|
5459
|
+
fetch(T, {
|
|
5488
5460
|
method: "GET",
|
|
5489
5461
|
headers: {
|
|
5490
5462
|
"X-SessionId": r,
|
|
5491
5463
|
"Content-Type": "application/json",
|
|
5492
5464
|
Accept: "application/json"
|
|
5493
5465
|
}
|
|
5494
|
-
}).then((
|
|
5495
|
-
|
|
5496
|
-
}).catch((
|
|
5497
|
-
|
|
5498
|
-
type:
|
|
5499
|
-
message:
|
|
5500
|
-
source:
|
|
5501
|
-
}),
|
|
5466
|
+
}).then((M) => Be(M, K.CurrenciesError)).then((M) => {
|
|
5467
|
+
p(M == null ? void 0 : M.currencies);
|
|
5468
|
+
}).catch((M) => {
|
|
5469
|
+
X({
|
|
5470
|
+
type: xe.error,
|
|
5471
|
+
message: k("generalError"),
|
|
5472
|
+
source: K.CurrenciesError
|
|
5473
|
+
}), B(), console.error("There was an error on the allowed currencies request.", M);
|
|
5502
5474
|
}).finally(() => {
|
|
5503
|
-
n(17,
|
|
5475
|
+
n(17, he = !0);
|
|
5504
5476
|
});
|
|
5505
|
-
}),
|
|
5506
|
-
const { items:
|
|
5507
|
-
n(10, C = Object.entries(
|
|
5508
|
-
let
|
|
5509
|
-
const
|
|
5510
|
-
for (const
|
|
5511
|
-
if ((
|
|
5512
|
-
const
|
|
5513
|
-
if (
|
|
5514
|
-
const
|
|
5515
|
-
symbol: Fo[
|
|
5477
|
+
}), ne = ({ data: p, shouldUpdateSelectedCurrencies: B, allowed: T = [] }) => {
|
|
5478
|
+
const { items: A = [], totalAmount: M = {}, totalRealAmount: ee } = p || {};
|
|
5479
|
+
n(10, C = Object.entries(ee || M).map(([y = "", Q = 0]) => ({ currency: y, amount: Q }))[0]);
|
|
5480
|
+
let de = null;
|
|
5481
|
+
const g = new Map(T.map((y) => [y.code, y]));
|
|
5482
|
+
for (const y of A)
|
|
5483
|
+
if ((y == null ? void 0 : y.type) === $n.Real) {
|
|
5484
|
+
const Q = g.get(y == null ? void 0 : y.currency);
|
|
5485
|
+
if (Q && Q.code === (y == null ? void 0 : y.currency)) {
|
|
5486
|
+
const ve = Gt(De(De({}, y), Q), {
|
|
5487
|
+
symbol: Fo[y == null ? void 0 : y.currency]
|
|
5516
5488
|
});
|
|
5517
|
-
n(
|
|
5489
|
+
n(36, J = [...J, ve]), (y == null ? void 0 : y.currency) === (C == null ? void 0 : C.currency) && n(10, C = De(De({}, C), ve)), (y == null ? void 0 : y.currency) !== (C == null ? void 0 : C.currency) && (y == null ? void 0 : y.walletAccountType) === $n.Vault && n(19, ge = [...ge, ve]), B && (y == null ? void 0 : y.amount) > 0 && n(5, d = C != null && C.currency ? C : de), d && (d == null ? void 0 : d.currency) === (y == null ? void 0 : y.currency) && n(5, d = ve), E && (E == null ? void 0 : E.currency) === (y == null ? void 0 : y.currency) && n(6, E = ve);
|
|
5518
5490
|
}
|
|
5519
5491
|
}
|
|
5520
|
-
},
|
|
5521
|
-
const
|
|
5522
|
-
fetch(
|
|
5492
|
+
}, ke = (p = !0) => {
|
|
5493
|
+
const B = new URL(`${o}/v2/player/${i}/balance`);
|
|
5494
|
+
fetch(B, {
|
|
5523
5495
|
method: "GET",
|
|
5524
5496
|
headers: {
|
|
5525
5497
|
"X-SessionId": r,
|
|
5526
5498
|
"Content-Type": "application/json",
|
|
5527
5499
|
Accept: "application/json"
|
|
5528
5500
|
}
|
|
5529
|
-
}).then((
|
|
5530
|
-
|
|
5531
|
-
n(
|
|
5532
|
-
data:
|
|
5533
|
-
shouldUpdateSelectedCurrencies:
|
|
5534
|
-
allowed:
|
|
5501
|
+
}).then((A) => Be(A, K.BalanceError)).then((A) => {
|
|
5502
|
+
A && Re().then((M) => {
|
|
5503
|
+
n(36, J = []), n(19, ge = []), ne({
|
|
5504
|
+
data: A,
|
|
5505
|
+
shouldUpdateSelectedCurrencies: p,
|
|
5506
|
+
allowed: M
|
|
5535
5507
|
});
|
|
5536
5508
|
});
|
|
5537
|
-
}).catch((
|
|
5538
|
-
|
|
5539
|
-
type:
|
|
5540
|
-
message:
|
|
5541
|
-
source:
|
|
5542
|
-
}), console.error("There was an error with the player balance request.",
|
|
5509
|
+
}).catch((A) => {
|
|
5510
|
+
X({
|
|
5511
|
+
type: xe.error,
|
|
5512
|
+
message: k("generalError"),
|
|
5513
|
+
source: K.BalanceError
|
|
5514
|
+
}), console.error("There was an error with the player balance request.", A);
|
|
5543
5515
|
}).finally(() => {
|
|
5544
|
-
n(16,
|
|
5516
|
+
n(16, $ = !0);
|
|
5545
5517
|
});
|
|
5546
|
-
},
|
|
5547
|
-
|
|
5548
|
-
const
|
|
5518
|
+
}, Z = Xo(() => {
|
|
5519
|
+
kt().then(() => {
|
|
5520
|
+
const p = new URL(`${o}/v2/player/${i}/check/wallet-exchange`), B = {
|
|
5549
5521
|
userId: i,
|
|
5550
|
-
amount:
|
|
5551
|
-
currency:
|
|
5552
|
-
fromCurrency:
|
|
5553
|
-
toCurrency:
|
|
5522
|
+
amount: v,
|
|
5523
|
+
currency: d == null ? void 0 : d.currency,
|
|
5524
|
+
fromCurrency: d == null ? void 0 : d.currency,
|
|
5525
|
+
toCurrency: E == null ? void 0 : E.currency,
|
|
5554
5526
|
payload: { PlayerCurrency: c }
|
|
5555
|
-
},
|
|
5527
|
+
}, T = {
|
|
5556
5528
|
method: "POST",
|
|
5557
5529
|
headers: {
|
|
5558
5530
|
"X-SessionId": r,
|
|
5559
5531
|
"Content-Type": "application/json",
|
|
5560
5532
|
Accept: "application/json"
|
|
5561
5533
|
},
|
|
5562
|
-
body:
|
|
5534
|
+
body: jn(B)
|
|
5563
5535
|
};
|
|
5564
|
-
fetch(
|
|
5565
|
-
var
|
|
5566
|
-
|
|
5567
|
-
}).catch((
|
|
5568
|
-
|
|
5569
|
-
type:
|
|
5570
|
-
message:
|
|
5571
|
-
source:
|
|
5572
|
-
}), console.error("There was a problem with the wallet exchange request.",
|
|
5536
|
+
fetch(p, T).then((A) => Be(A, K.CheckWalletExchangeError)).then((A) => {
|
|
5537
|
+
var M, ee;
|
|
5538
|
+
A && ((R == null ? void 0 : R.source) === K.CheckWalletExchangeError && fe(), Array.isArray((M = A == null ? void 0 : A.fees) == null ? void 0 : M.fees) && n(11, Y = A.fees.fees.find((de) => de.id)), Array.isArray(A == null ? void 0 : A.walletActions) && n(9, L = ((ee = A.walletActions.find((de) => (de == null ? void 0 : de.directionName) === "Credit")) == null ? void 0 : ee.amount) || 0), v > 0 && (d != null && d.currency) && (E != null && E.currency) && c && n(14, se = !1));
|
|
5539
|
+
}).catch((A) => {
|
|
5540
|
+
X({
|
|
5541
|
+
type: xe.error,
|
|
5542
|
+
message: k("generalError"),
|
|
5543
|
+
source: K.CheckWalletExchangeError
|
|
5544
|
+
}), console.error("There was a problem with the wallet exchange request.", A);
|
|
5573
5545
|
});
|
|
5574
|
-
}).catch((
|
|
5575
|
-
|
|
5546
|
+
}).catch((p) => {
|
|
5547
|
+
ft(p);
|
|
5576
5548
|
});
|
|
5577
|
-
}, 500),
|
|
5578
|
-
const
|
|
5579
|
-
if (
|
|
5580
|
-
const [
|
|
5581
|
-
|
|
5549
|
+
}, 500), F = (p) => {
|
|
5550
|
+
const B = p.target.value;
|
|
5551
|
+
if (B.length <= jo) {
|
|
5552
|
+
const [T, A] = B.split(".");
|
|
5553
|
+
A && A.length >= (d == null ? void 0 : d.precision) && n(8, v = parseFloat(T + "." + A.slice(0, d == null ? void 0 : d.precision)));
|
|
5582
5554
|
}
|
|
5583
|
-
|
|
5584
|
-
},
|
|
5585
|
-
const
|
|
5586
|
-
[">", "<", ","].includes(
|
|
5587
|
-
},
|
|
5588
|
-
const
|
|
5589
|
-
n(18,
|
|
5590
|
-
const
|
|
5555
|
+
Z();
|
|
5556
|
+
}, Mt = (p) => {
|
|
5557
|
+
const B = p.data;
|
|
5558
|
+
[">", "<", ","].includes(B) && p.preventDefault(), B && !B.match(/[\d.]/) && p.preventDefault(), B === "." && p.target.value.includes(".") && p.preventDefault();
|
|
5559
|
+
}, pt = () => {
|
|
5560
|
+
const p = new URL(`${o}/v2/player/${i}/wallet-exchange`);
|
|
5561
|
+
n(18, Le = !0);
|
|
5562
|
+
const B = {
|
|
5591
5563
|
userId: i,
|
|
5592
|
-
amount:
|
|
5593
|
-
currency:
|
|
5594
|
-
fromCurrency:
|
|
5595
|
-
toCurrency:
|
|
5564
|
+
amount: v,
|
|
5565
|
+
currency: d == null ? void 0 : d.currency,
|
|
5566
|
+
fromCurrency: d == null ? void 0 : d.currency,
|
|
5567
|
+
toCurrency: E == null ? void 0 : E.currency,
|
|
5596
5568
|
payload: { PlayerCurrency: c }
|
|
5597
|
-
},
|
|
5569
|
+
}, T = {
|
|
5598
5570
|
method: "PUT",
|
|
5599
5571
|
headers: {
|
|
5600
5572
|
"X-SessionId": r,
|
|
5601
5573
|
"Content-Type": "application/json",
|
|
5602
5574
|
Accept: "application/json"
|
|
5603
5575
|
},
|
|
5604
|
-
body:
|
|
5576
|
+
body: jn(B)
|
|
5605
5577
|
};
|
|
5606
|
-
fetch(
|
|
5607
|
-
|
|
5608
|
-
type:
|
|
5609
|
-
message:
|
|
5578
|
+
fetch(p, T).then((A) => Be(A, K.WalletExchangeError)).then((A) => {
|
|
5579
|
+
A && (X({
|
|
5580
|
+
type: xe.success,
|
|
5581
|
+
message: k("exchangeSuccess"),
|
|
5610
5582
|
source: "ExchangeSuccess"
|
|
5611
|
-
}),
|
|
5612
|
-
}).catch((
|
|
5613
|
-
|
|
5614
|
-
type:
|
|
5615
|
-
message:
|
|
5616
|
-
source:
|
|
5617
|
-
}), console.error("There was an error with the wallet exchange request.",
|
|
5583
|
+
}), ke(!1));
|
|
5584
|
+
}).catch((A) => {
|
|
5585
|
+
X({
|
|
5586
|
+
type: xe.error,
|
|
5587
|
+
message: k("generalError"),
|
|
5588
|
+
source: K.WalletExchangeError
|
|
5589
|
+
}), console.error("There was an error with the wallet exchange request.", A);
|
|
5618
5590
|
}).finally(() => {
|
|
5619
|
-
n(18,
|
|
5591
|
+
n(18, Le = !1), et(), be();
|
|
5620
5592
|
});
|
|
5621
|
-
},
|
|
5622
|
-
const { data: { type:
|
|
5623
|
-
switch (
|
|
5624
|
-
case
|
|
5625
|
-
|
|
5593
|
+
}, tt = (p) => {
|
|
5594
|
+
const { data: { type: B } = {} } = p || {};
|
|
5595
|
+
switch (B) {
|
|
5596
|
+
case Gn.ResetVaultWidget:
|
|
5597
|
+
Oe();
|
|
5626
5598
|
break;
|
|
5627
|
-
case
|
|
5628
|
-
|
|
5599
|
+
case Gn.CloseVaultWidget:
|
|
5600
|
+
Ce();
|
|
5629
5601
|
break;
|
|
5630
5602
|
}
|
|
5631
5603
|
};
|
|
5632
|
-
$r(() => (window.addEventListener("message",
|
|
5633
|
-
window.removeEventListener("message",
|
|
5604
|
+
$r(() => (window.addEventListener("message", tt), () => {
|
|
5605
|
+
window.removeEventListener("message", tt);
|
|
5634
5606
|
}));
|
|
5635
|
-
function
|
|
5636
|
-
|
|
5607
|
+
function pe() {
|
|
5608
|
+
v = At(this.value), n(8, v);
|
|
5637
5609
|
}
|
|
5638
|
-
function
|
|
5639
|
-
|
|
5610
|
+
function dt(p) {
|
|
5611
|
+
d = p, n(5, d);
|
|
5640
5612
|
}
|
|
5641
|
-
function
|
|
5642
|
-
L =
|
|
5613
|
+
function Ut() {
|
|
5614
|
+
L = At(this.value), n(9, L);
|
|
5643
5615
|
}
|
|
5644
|
-
function
|
|
5645
|
-
|
|
5616
|
+
function mt(p) {
|
|
5617
|
+
E = p, n(6, E);
|
|
5646
5618
|
}
|
|
5647
|
-
function
|
|
5648
|
-
|
|
5649
|
-
|
|
5619
|
+
function gt(p) {
|
|
5620
|
+
Ge[p ? "unshift" : "push"](() => {
|
|
5621
|
+
j = p, n(7, j);
|
|
5650
5622
|
});
|
|
5651
5623
|
}
|
|
5652
|
-
return e.$$set = (
|
|
5653
|
-
"session" in
|
|
5624
|
+
return e.$$set = (p) => {
|
|
5625
|
+
"session" in p && n(0, r = p.session), "userid" in p && n(29, i = p.userid), "endpoint" in p && n(30, o = p.endpoint), "lang" in p && n(31, a = p.lang), "clientstyling" in p && n(32, l = p.clientstyling), "clientstylingurl" in p && n(33, s = p.clientstylingurl), "translationurl" in p && n(34, u = p.translationurl), "playercurrency" in p && n(35, c = p.playercurrency), "showvaults" in p && n(1, f = p.showvaults), "showtotalbalance" in p && n(2, h = p.showtotalbalance), "showclosebutton" in p && n(3, m = p.showclosebutton), "showcurrencysymbol" in p && n(4, x = p.showcurrencysymbol);
|
|
5654
5626
|
}, e.$$.update = () => {
|
|
5655
5627
|
e.$$.dirty[1] & /*lang*/
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5628
|
+
1 && a && ct(), e.$$.dirty[0] & /*session, userid, endpoint*/
|
|
5629
|
+
1610612737 | e.$$.dirty[1] & /*playercurrency*/
|
|
5630
|
+
16 && r && i && o && c && ke(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5659
5631
|
128 | e.$$.dirty[1] & /*clientstyling*/
|
|
5660
|
-
|
|
5632
|
+
2 && l && j && Ee(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5661
5633
|
128 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5662
|
-
|
|
5663
|
-
|
|
5634
|
+
4 && s && j && Ne(), e.$$.dirty[1] & /*translationurl*/
|
|
5635
|
+
8 && u && qe(), e.$$.dirty[0] & /*selectedCurrencyTo*/
|
|
5664
5636
|
64 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5665
|
-
|
|
5637
|
+
32 && n(20, Je = J.filter((p) => (p == null ? void 0 : p.amount) > 0 && (p == null ? void 0 : p.currency) !== (E == null ? void 0 : E.currency))), e.$$.dirty[0] & /*selectedCurrencyFrom*/
|
|
5666
5638
|
32 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5667
|
-
|
|
5639
|
+
32 && n(21, q = J.filter((p) => (d == null ? void 0 : d.currency) !== (p == null ? void 0 : p.currency)));
|
|
5668
5640
|
}, [
|
|
5669
5641
|
r,
|
|
5670
5642
|
f,
|
|
5671
5643
|
h,
|
|
5644
|
+
m,
|
|
5645
|
+
x,
|
|
5672
5646
|
d,
|
|
5673
5647
|
E,
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
de,
|
|
5677
|
-
y,
|
|
5648
|
+
j,
|
|
5649
|
+
v,
|
|
5678
5650
|
L,
|
|
5679
5651
|
C,
|
|
5652
|
+
Y,
|
|
5653
|
+
R,
|
|
5654
|
+
ie,
|
|
5655
|
+
se,
|
|
5656
|
+
ce,
|
|
5657
|
+
$,
|
|
5658
|
+
he,
|
|
5659
|
+
Le,
|
|
5660
|
+
ge,
|
|
5661
|
+
Je,
|
|
5662
|
+
q,
|
|
5663
|
+
ht,
|
|
5664
|
+
Ce,
|
|
5665
|
+
Oe,
|
|
5680
5666
|
Z,
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
oe,
|
|
5684
|
-
le,
|
|
5685
|
-
X,
|
|
5686
|
-
fe,
|
|
5687
|
-
Re,
|
|
5688
|
-
ue,
|
|
5689
|
-
xe,
|
|
5690
|
-
Q,
|
|
5691
|
-
J,
|
|
5692
|
-
De,
|
|
5693
|
-
tt,
|
|
5694
|
-
re,
|
|
5695
|
-
G,
|
|
5696
|
-
Dt,
|
|
5667
|
+
F,
|
|
5668
|
+
Mt,
|
|
5697
5669
|
pt,
|
|
5698
|
-
dt,
|
|
5699
5670
|
i,
|
|
5700
5671
|
o,
|
|
5701
5672
|
a,
|
|
@@ -5703,31 +5674,31 @@ function ma(e, t, n) {
|
|
|
5703
5674
|
s,
|
|
5704
5675
|
u,
|
|
5705
5676
|
c,
|
|
5677
|
+
J,
|
|
5706
5678
|
pe,
|
|
5679
|
+
dt,
|
|
5680
|
+
Ut,
|
|
5707
5681
|
mt,
|
|
5708
|
-
|
|
5709
|
-
gt,
|
|
5710
|
-
bt,
|
|
5711
|
-
me
|
|
5682
|
+
gt
|
|
5712
5683
|
];
|
|
5713
5684
|
}
|
|
5714
|
-
class ga extends
|
|
5685
|
+
class ga extends mn {
|
|
5715
5686
|
constructor(t) {
|
|
5716
|
-
super(),
|
|
5687
|
+
super(), pn(
|
|
5717
5688
|
this,
|
|
5718
5689
|
t,
|
|
5719
5690
|
ma,
|
|
5720
5691
|
da,
|
|
5721
|
-
|
|
5692
|
+
Ht,
|
|
5722
5693
|
{
|
|
5723
5694
|
session: 0,
|
|
5724
|
-
userid:
|
|
5725
|
-
endpoint:
|
|
5726
|
-
lang:
|
|
5727
|
-
clientstyling:
|
|
5728
|
-
clientstylingurl:
|
|
5729
|
-
translationurl:
|
|
5730
|
-
playercurrency:
|
|
5695
|
+
userid: 29,
|
|
5696
|
+
endpoint: 30,
|
|
5697
|
+
lang: 31,
|
|
5698
|
+
clientstyling: 32,
|
|
5699
|
+
clientstylingurl: 33,
|
|
5700
|
+
translationurl: 34,
|
|
5701
|
+
playercurrency: 35,
|
|
5731
5702
|
showvaults: 1,
|
|
5732
5703
|
showtotalbalance: 2,
|
|
5733
5704
|
showclosebutton: 3,
|
|
@@ -5741,76 +5712,76 @@ class ga extends dn {
|
|
|
5741
5712
|
return this.$$.ctx[0];
|
|
5742
5713
|
}
|
|
5743
5714
|
set session(t) {
|
|
5744
|
-
this.$$set({ session: t }),
|
|
5715
|
+
this.$$set({ session: t }), G();
|
|
5745
5716
|
}
|
|
5746
5717
|
get userid() {
|
|
5747
|
-
return this.$$.ctx[
|
|
5718
|
+
return this.$$.ctx[29];
|
|
5748
5719
|
}
|
|
5749
5720
|
set userid(t) {
|
|
5750
|
-
this.$$set({ userid: t }),
|
|
5721
|
+
this.$$set({ userid: t }), G();
|
|
5751
5722
|
}
|
|
5752
5723
|
get endpoint() {
|
|
5753
|
-
return this.$$.ctx[
|
|
5724
|
+
return this.$$.ctx[30];
|
|
5754
5725
|
}
|
|
5755
5726
|
set endpoint(t) {
|
|
5756
|
-
this.$$set({ endpoint: t }),
|
|
5727
|
+
this.$$set({ endpoint: t }), G();
|
|
5757
5728
|
}
|
|
5758
5729
|
get lang() {
|
|
5759
|
-
return this.$$.ctx[
|
|
5730
|
+
return this.$$.ctx[31];
|
|
5760
5731
|
}
|
|
5761
5732
|
set lang(t) {
|
|
5762
|
-
this.$$set({ lang: t }),
|
|
5733
|
+
this.$$set({ lang: t }), G();
|
|
5763
5734
|
}
|
|
5764
5735
|
get clientstyling() {
|
|
5765
|
-
return this.$$.ctx[
|
|
5736
|
+
return this.$$.ctx[32];
|
|
5766
5737
|
}
|
|
5767
5738
|
set clientstyling(t) {
|
|
5768
|
-
this.$$set({ clientstyling: t }),
|
|
5739
|
+
this.$$set({ clientstyling: t }), G();
|
|
5769
5740
|
}
|
|
5770
5741
|
get clientstylingurl() {
|
|
5771
|
-
return this.$$.ctx[
|
|
5742
|
+
return this.$$.ctx[33];
|
|
5772
5743
|
}
|
|
5773
5744
|
set clientstylingurl(t) {
|
|
5774
|
-
this.$$set({ clientstylingurl: t }),
|
|
5745
|
+
this.$$set({ clientstylingurl: t }), G();
|
|
5775
5746
|
}
|
|
5776
5747
|
get translationurl() {
|
|
5777
|
-
return this.$$.ctx[
|
|
5748
|
+
return this.$$.ctx[34];
|
|
5778
5749
|
}
|
|
5779
5750
|
set translationurl(t) {
|
|
5780
|
-
this.$$set({ translationurl: t }),
|
|
5751
|
+
this.$$set({ translationurl: t }), G();
|
|
5781
5752
|
}
|
|
5782
5753
|
get playercurrency() {
|
|
5783
|
-
return this.$$.ctx[
|
|
5754
|
+
return this.$$.ctx[35];
|
|
5784
5755
|
}
|
|
5785
5756
|
set playercurrency(t) {
|
|
5786
|
-
this.$$set({ playercurrency: t }),
|
|
5757
|
+
this.$$set({ playercurrency: t }), G();
|
|
5787
5758
|
}
|
|
5788
5759
|
get showvaults() {
|
|
5789
5760
|
return this.$$.ctx[1];
|
|
5790
5761
|
}
|
|
5791
5762
|
set showvaults(t) {
|
|
5792
|
-
this.$$set({ showvaults: t }),
|
|
5763
|
+
this.$$set({ showvaults: t }), G();
|
|
5793
5764
|
}
|
|
5794
5765
|
get showtotalbalance() {
|
|
5795
5766
|
return this.$$.ctx[2];
|
|
5796
5767
|
}
|
|
5797
5768
|
set showtotalbalance(t) {
|
|
5798
|
-
this.$$set({ showtotalbalance: t }),
|
|
5769
|
+
this.$$set({ showtotalbalance: t }), G();
|
|
5799
5770
|
}
|
|
5800
5771
|
get showclosebutton() {
|
|
5801
5772
|
return this.$$.ctx[3];
|
|
5802
5773
|
}
|
|
5803
5774
|
set showclosebutton(t) {
|
|
5804
|
-
this.$$set({ showclosebutton: t }),
|
|
5775
|
+
this.$$set({ showclosebutton: t }), G();
|
|
5805
5776
|
}
|
|
5806
5777
|
get showcurrencysymbol() {
|
|
5807
5778
|
return this.$$.ctx[4];
|
|
5808
5779
|
}
|
|
5809
5780
|
set showcurrencysymbol(t) {
|
|
5810
|
-
this.$$set({ showcurrencysymbol: t }),
|
|
5781
|
+
this.$$set({ showcurrencysymbol: t }), G();
|
|
5811
5782
|
}
|
|
5812
5783
|
}
|
|
5813
|
-
|
|
5784
|
+
dn(ga, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {} }, [], [], !0);
|
|
5814
5785
|
export {
|
|
5815
5786
|
ga as default
|
|
5816
5787
|
};
|