@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.
@@ -1,50 +1,50 @@
1
- function B() {
1
+ function S() {
2
2
  }
3
3
  function $n(e) {
4
4
  return e();
5
5
  }
6
- function hn() {
6
+ function fn() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function _e(e) {
9
+ function ve(e) {
10
10
  e.forEach($n);
11
11
  }
12
- function lt(e) {
12
+ function ot(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function St(e, t) {
15
+ function Tt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function yr(e) {
18
+ function br(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
21
  function jn(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const r of t)
24
24
  r(void 0);
25
- return B;
25
+ return S;
26
26
  }
27
27
  const n = e.subscribe(...t);
28
28
  return n.unsubscribe ? () => n.unsubscribe() : n;
29
29
  }
30
- function vr(e) {
30
+ function yr(e) {
31
31
  let t;
32
32
  return jn(e, (n) => t = n)(), t;
33
33
  }
34
- function _r(e) {
35
- return e && lt(e.destroy) ? e.destroy : B;
34
+ function vr(e) {
35
+ return e && ot(e.destroy) ? e.destroy : S;
36
36
  }
37
37
  function y(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function an(e, t, n) {
41
- const r = Er(e);
40
+ function on(e, t, n) {
41
+ const r = _r(e);
42
42
  if (!r.getElementById(t)) {
43
- const i = x("style");
44
- i.id = t, i.textContent = n, xr(r, i);
43
+ const i = E("style");
44
+ i.id = t, i.textContent = n, Er(r, i);
45
45
  }
46
46
  }
47
- function Er(e) {
47
+ function _r(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,39 +54,39 @@ function Er(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function xr(e, t) {
57
+ function Er(e, t) {
58
58
  return y(
59
59
  /** @type {Document} */
60
60
  e.head || e,
61
61
  t
62
62
  ), t.sheet;
63
63
  }
64
- function C(e, t, n) {
64
+ function T(e, t, n) {
65
65
  e.insertBefore(t, n || null);
66
66
  }
67
- function A(e) {
67
+ function C(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
70
  function Xn(e, t) {
71
71
  for (let n = 0; n < e.length; n += 1)
72
72
  e[n] && e[n].d(t);
73
73
  }
74
- function x(e) {
74
+ function E(e) {
75
75
  return document.createElement(e);
76
76
  }
77
- function fn(e) {
77
+ function dn(e) {
78
78
  return document.createElementNS("http://www.w3.org/2000/svg", e);
79
79
  }
80
- function W(e) {
80
+ function z(e) {
81
81
  return document.createTextNode(e);
82
82
  }
83
- function P() {
84
- return W(" ");
83
+ function I() {
84
+ return z(" ");
85
85
  }
86
- function Wn() {
87
- return W("");
86
+ function xr() {
87
+ return z("");
88
88
  }
89
- function re(e, t, n, r) {
89
+ function ie(e, t, n, r) {
90
90
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
91
91
  }
92
92
  function wr(e) {
@@ -97,20 +97,20 @@ function wr(e) {
97
97
  function m(e, t, n) {
98
98
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
99
99
  }
100
- function wt(e) {
100
+ function Et(e) {
101
101
  return e === "" ? null : +e;
102
102
  }
103
103
  function Ar(e) {
104
104
  return Array.from(e.childNodes);
105
105
  }
106
- function ee(e, t) {
106
+ function te(e, t) {
107
107
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
108
108
  t);
109
109
  }
110
- function gt(e, t) {
110
+ function pt(e, t) {
111
111
  e.value = t ?? "";
112
112
  }
113
- function oe(e, t, n) {
113
+ function le(e, t, n) {
114
114
  e.classList.toggle(t, !!n);
115
115
  }
116
116
  function Cr(e) {
@@ -122,130 +122,130 @@ function Cr(e) {
122
122
  }
123
123
  ), t;
124
124
  }
125
- let it;
126
- function rt(e) {
127
- it = e;
125
+ let nt;
126
+ function tt(e) {
127
+ nt = e;
128
128
  }
129
129
  function Tr() {
130
- if (!it)
130
+ if (!nt)
131
131
  throw new Error("Function called outside component initialization");
132
- return it;
132
+ return nt;
133
133
  }
134
134
  function Br(e) {
135
135
  Tr().$$.on_mount.push(e);
136
136
  }
137
- const Ue = [], Ge = [];
138
- let Ve = [];
139
- const Xt = [], Sr = /* @__PURE__ */ Promise.resolve();
140
- let Wt = !1;
137
+ const Me = [], Ue = [];
138
+ let Fe = [];
139
+ const Wt = [], Sr = /* @__PURE__ */ Promise.resolve();
140
+ let zt = !1;
141
141
  function Hr() {
142
- Wt || (Wt = !0, Sr.then(j));
142
+ zt || (zt = !0, Sr.then(G));
143
143
  }
144
- function zt(e) {
145
- Ve.push(e);
144
+ function Zt(e) {
145
+ Fe.push(e);
146
146
  }
147
- function dn(e) {
148
- Xt.push(e);
147
+ function pn(e) {
148
+ Wt.push(e);
149
149
  }
150
- const Dt = /* @__PURE__ */ new Set();
151
- let Me = 0;
152
- function j() {
153
- if (Me !== 0)
150
+ const Mt = /* @__PURE__ */ new Set();
151
+ let ke = 0;
152
+ function G() {
153
+ if (ke !== 0)
154
154
  return;
155
- const e = it;
155
+ const e = nt;
156
156
  do {
157
157
  try {
158
- for (; Me < Ue.length; ) {
159
- const t = Ue[Me];
160
- Me++, rt(t), Pr(t.$$);
158
+ for (; ke < Me.length; ) {
159
+ const t = Me[ke];
160
+ ke++, tt(t), Pr(t.$$);
161
161
  }
162
162
  } catch (t) {
163
- throw Ue.length = 0, Me = 0, t;
163
+ throw Me.length = 0, ke = 0, t;
164
164
  }
165
- for (rt(null), Ue.length = 0, Me = 0; Ge.length; )
166
- Ge.pop()();
167
- for (let t = 0; t < Ve.length; t += 1) {
168
- const n = Ve[t];
169
- Dt.has(n) || (Dt.add(n), n());
165
+ for (tt(null), Me.length = 0, ke = 0; Ue.length; )
166
+ Ue.pop()();
167
+ for (let t = 0; t < Fe.length; t += 1) {
168
+ const n = Fe[t];
169
+ Mt.has(n) || (Mt.add(n), n());
170
170
  }
171
- Ve.length = 0;
172
- } while (Ue.length);
173
- for (; Xt.length; )
174
- Xt.pop()();
175
- Wt = !1, Dt.clear(), rt(e);
171
+ Fe.length = 0;
172
+ } while (Me.length);
173
+ for (; Wt.length; )
174
+ Wt.pop()();
175
+ zt = !1, Mt.clear(), tt(e);
176
176
  }
177
177
  function Pr(e) {
178
178
  if (e.fragment !== null) {
179
- e.update(), _e(e.before_update);
179
+ e.update(), ve(e.before_update);
180
180
  const t = e.dirty;
181
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(zt);
181
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Zt);
182
182
  }
183
183
  }
184
184
  function Ir(e) {
185
185
  const t = [], n = [];
186
- Ve.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ve = t;
186
+ Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
187
187
  }
188
- const vt = /* @__PURE__ */ new Set();
189
- let Le;
190
- function Be() {
191
- Le = {
188
+ const bt = /* @__PURE__ */ new Set();
189
+ let Be;
190
+ function Se() {
191
+ Be = {
192
192
  r: 0,
193
193
  c: [],
194
- p: Le
194
+ p: Be
195
195
  // parent group
196
196
  };
197
197
  }
198
- function Se() {
199
- Le.r || _e(Le.c), Le = Le.p;
198
+ function He() {
199
+ Be.r || ve(Be.c), Be = Be.p;
200
200
  }
201
- function M(e, t) {
202
- e && e.i && (vt.delete(e), e.i(t));
201
+ function U(e, t) {
202
+ e && e.i && (bt.delete(e), e.i(t));
203
203
  }
204
- function G(e, t, n, r) {
204
+ function W(e, t, n, r) {
205
205
  if (e && e.o) {
206
- if (vt.has(e))
206
+ if (bt.has(e))
207
207
  return;
208
- vt.add(e), Le.c.push(() => {
209
- vt.delete(e), r && (n && e.d(1), r());
208
+ bt.add(e), Be.c.push(() => {
209
+ bt.delete(e), r && (n && e.d(1), r());
210
210
  }), e.o(t);
211
211
  } else
212
212
  r && r();
213
213
  }
214
- function At(e) {
214
+ function xt(e) {
215
215
  return e?.length !== void 0 ? e : Array.from(e);
216
216
  }
217
- function pn(e, t, n) {
217
+ function mn(e, t, n) {
218
218
  const r = e.$$.props[t];
219
219
  r !== void 0 && (e.$$.bound[r] = n, n(e.$$.ctx[r]));
220
220
  }
221
- function at(e) {
221
+ function rt(e) {
222
222
  e && e.c();
223
223
  }
224
- function $e(e, t, n) {
224
+ function Ve(e, t, n) {
225
225
  const { fragment: r, after_update: i } = e.$$;
226
- r && r.m(t, n), zt(() => {
227
- const a = e.$$.on_mount.map($n).filter(lt);
228
- e.$$.on_destroy ? e.$$.on_destroy.push(...a) : _e(a), e.$$.on_mount = [];
229
- }), i.forEach(zt);
226
+ r && r.m(t, n), Zt(() => {
227
+ const a = e.$$.on_mount.map($n).filter(ot);
228
+ e.$$.on_destroy ? e.$$.on_destroy.push(...a) : ve(a), e.$$.on_mount = [];
229
+ }), i.forEach(Zt);
230
230
  }
231
- function je(e, t) {
231
+ function Ge(e, t) {
232
232
  const n = e.$$;
233
- n.fragment !== null && (Ir(n.after_update), _e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
233
+ n.fragment !== null && (Ir(n.after_update), ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
234
234
  }
235
235
  function Lr(e, t) {
236
- e.$$.dirty[0] === -1 && (Ue.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
236
+ e.$$.dirty[0] === -1 && (Me.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
237
237
  }
238
- function on(e, t, n, r, i, a, o = null, u = [-1]) {
239
- const s = it;
240
- rt(e);
238
+ function sn(e, t, n, r, i, a, o = null, u = [-1]) {
239
+ const s = nt;
240
+ tt(e);
241
241
  const l = e.$$ = {
242
242
  fragment: null,
243
243
  ctx: [],
244
244
  // state
245
245
  props: a,
246
- update: B,
246
+ update: S,
247
247
  not_equal: i,
248
- bound: hn(),
248
+ bound: fn(),
249
249
  // lifecycle
250
250
  on_mount: [],
251
251
  on_destroy: [],
@@ -254,28 +254,28 @@ function on(e, t, n, r, i, a, o = null, u = [-1]) {
254
254
  after_update: [],
255
255
  context: new Map(t.context || (s ? s.$$.context : [])),
256
256
  // everything else
257
- callbacks: hn(),
257
+ callbacks: fn(),
258
258
  dirty: u,
259
259
  skip_bound: !1,
260
260
  root: t.target || s.$$.root
261
261
  };
262
262
  o && o(l.root);
263
263
  let c = !1;
264
- if (l.ctx = n ? n(e, t.props || {}, (f, h, ...d) => {
265
- const v = d.length ? d[0] : h;
266
- return l.ctx && i(l.ctx[f], l.ctx[f] = v) && (!l.skip_bound && l.bound[f] && l.bound[f](v), c && Lr(e, f)), h;
267
- }) : [], l.update(), c = !0, _e(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
264
+ if (l.ctx = n ? n(e, t.props || {}, (d, h, ...p) => {
265
+ const v = p.length ? p[0] : h;
266
+ return l.ctx && i(l.ctx[d], l.ctx[d] = v) && (!l.skip_bound && l.bound[d] && l.bound[d](v), c && Lr(e, d)), h;
267
+ }) : [], l.update(), c = !0, ve(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
268
268
  if (t.hydrate) {
269
- const f = Ar(t.target);
270
- l.fragment && l.fragment.l(f), f.forEach(A);
269
+ const d = Ar(t.target);
270
+ l.fragment && l.fragment.l(d), d.forEach(C);
271
271
  } else
272
272
  l.fragment && l.fragment.c();
273
- t.intro && M(e.$$.fragment), $e(e, t.target, t.anchor), j();
273
+ t.intro && U(e.$$.fragment), Ve(e, t.target, t.anchor), G();
274
274
  }
275
- rt(s);
275
+ tt(s);
276
276
  }
277
- let zn;
278
- typeof HTMLElement == "function" && (zn = class extends HTMLElement {
277
+ let Wn;
278
+ typeof HTMLElement == "function" && (Wn = class extends HTMLElement {
279
279
  /** The Svelte component constructor */
280
280
  $$ctor;
281
281
  /** Slots */
@@ -317,17 +317,17 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
317
317
  let a;
318
318
  return {
319
319
  c: function() {
320
- a = x("slot"), i !== "default" && m(a, "name", i);
320
+ a = E("slot"), i !== "default" && m(a, "name", i);
321
321
  },
322
322
  /**
323
323
  * @param {HTMLElement} target
324
324
  * @param {HTMLElement} [anchor]
325
325
  */
326
326
  m: function(s, l) {
327
- C(s, a, l);
327
+ T(s, a, l);
328
328
  },
329
329
  d: function(s) {
330
- s && A(a);
330
+ s && C(a);
331
331
  }
332
332
  };
333
333
  };
@@ -339,7 +339,7 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
339
339
  i in n && (t[i] = [e(i)]);
340
340
  for (const i of this.attributes) {
341
341
  const a = this.$$g_p(i.name);
342
- a in this.$$d || (this.$$d[a] = _t(a, i.value, this.$$p_d, "toProp"));
342
+ a in this.$$d || (this.$$d[a] = yt(a, i.value, this.$$p_d, "toProp"));
343
343
  }
344
344
  for (const i in this.$$p_d)
345
345
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -357,7 +357,7 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
357
357
  this.$$r = !0;
358
358
  for (const i in this.$$p_d)
359
359
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
360
- const a = _t(
360
+ const a = yt(
361
361
  i,
362
362
  this.$$d[i],
363
363
  this.$$p_d,
@@ -379,7 +379,7 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
379
379
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
380
380
  // and setting attributes through setAttribute etc, this is helpful
381
381
  attributeChangedCallback(e, t, n) {
382
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = _t(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
382
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = yt(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
383
383
  }
384
384
  disconnectedCallback() {
385
385
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -392,7 +392,7 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
392
392
  ) || e;
393
393
  }
394
394
  });
395
- function _t(e, t, n, r) {
395
+ function yt(e, t, n, r) {
396
396
  const i = n[e]?.type;
397
397
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
398
398
  return t;
@@ -421,8 +421,8 @@ function _t(e, t, n, r) {
421
421
  return t;
422
422
  }
423
423
  }
424
- function sn(e, t, n, r, i, a) {
425
- let o = class extends zn {
424
+ function ln(e, t, n, r, i, a) {
425
+ let o = class extends Wn {
426
426
  constructor() {
427
427
  super(e, n, i), this.$$p_d = t;
428
428
  }
@@ -438,7 +438,7 @@ function sn(e, t, n, r, i, a) {
438
438
  return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
439
439
  },
440
440
  set(s) {
441
- s = _t(u, s, t), this.$$d[u] = s, this.$$c?.$set({ [u]: s });
441
+ s = yt(u, s, t), this.$$d[u] = s, this.$$c?.$set({ [u]: s });
442
442
  }
443
443
  });
444
444
  }), r.forEach((u) => {
@@ -450,7 +450,7 @@ function sn(e, t, n, r, i, a) {
450
450
  }), e.element = /** @type {any} */
451
451
  o, o;
452
452
  }
453
- class ln {
453
+ class un {
454
454
  /**
455
455
  * ### PRIVATE API
456
456
  *
@@ -469,7 +469,7 @@ class ln {
469
469
  $$set = void 0;
470
470
  /** @returns {void} */
471
471
  $destroy() {
472
- je(this, 1), this.$destroy = B;
472
+ Ge(this, 1), this.$destroy = S;
473
473
  }
474
474
  /**
475
475
  * @template {Extract<keyof Events, string>} K
@@ -478,8 +478,8 @@ class ln {
478
478
  * @returns {() => void}
479
479
  */
480
480
  $on(t, n) {
481
- if (!lt(n))
482
- return B;
481
+ if (!ot(n))
482
+ return S;
483
483
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
484
484
  return r.push(n), () => {
485
485
  const i = r.indexOf(n);
@@ -491,44 +491,44 @@ class ln {
491
491
  * @returns {void}
492
492
  */
493
493
  $set(t) {
494
- this.$$set && !yr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
494
+ this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
495
495
  }
496
496
  }
497
497
  const Nr = "4";
498
498
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
499
- const Fe = [];
499
+ const De = [];
500
500
  function Or(e, t) {
501
501
  return {
502
- subscribe: Ht(e, t).subscribe
502
+ subscribe: Bt(e, t).subscribe
503
503
  };
504
504
  }
505
- function Ht(e, t = B) {
505
+ function Bt(e, t = S) {
506
506
  let n;
507
507
  const r = /* @__PURE__ */ new Set();
508
508
  function i(u) {
509
- if (St(e, u) && (e = u, n)) {
510
- const s = !Fe.length;
509
+ if (Tt(e, u) && (e = u, n)) {
510
+ const s = !De.length;
511
511
  for (const l of r)
512
- l[1](), Fe.push(l, e);
512
+ l[1](), De.push(l, e);
513
513
  if (s) {
514
- for (let l = 0; l < Fe.length; l += 2)
515
- Fe[l][0](Fe[l + 1]);
516
- Fe.length = 0;
514
+ for (let l = 0; l < De.length; l += 2)
515
+ De[l][0](De[l + 1]);
516
+ De.length = 0;
517
517
  }
518
518
  }
519
519
  }
520
520
  function a(u) {
521
521
  i(u(e));
522
522
  }
523
- function o(u, s = B) {
523
+ function o(u, s = S) {
524
524
  const l = [u, s];
525
- return r.add(l), r.size === 1 && (n = t(i, a) || B), u(e), () => {
525
+ return r.add(l), r.size === 1 && (n = t(i, a) || S), u(e), () => {
526
526
  r.delete(l), r.size === 0 && n && (n(), n = null);
527
527
  };
528
528
  }
529
529
  return { set: i, update: a, subscribe: o };
530
530
  }
531
- function Qe(e, t, n) {
531
+ function ze(e, t, n) {
532
532
  const r = !Array.isArray(e), i = r ? [e] : e;
533
533
  if (!i.every(Boolean))
534
534
  throw new Error("derived() expects stores as input, got a falsy value");
@@ -536,18 +536,18 @@ function Qe(e, t, n) {
536
536
  return Or(n, (o, u) => {
537
537
  let s = !1;
538
538
  const l = [];
539
- let c = 0, f = B;
539
+ let c = 0, d = S;
540
540
  const h = () => {
541
541
  if (c)
542
542
  return;
543
- f();
543
+ d();
544
544
  const v = t(r ? l[0] : l, o, u);
545
- a ? o(v) : f = lt(v) ? v : B;
546
- }, d = i.map(
545
+ a ? o(v) : d = ot(v) ? v : S;
546
+ }, p = i.map(
547
547
  (v, b) => jn(
548
548
  v,
549
- (L) => {
550
- l[b] = L, c &= ~(1 << b), s && h();
549
+ (N) => {
550
+ l[b] = N, c &= ~(1 << b), s && h();
551
551
  },
552
552
  () => {
553
553
  c |= 1 << b;
@@ -555,7 +555,7 @@ function Qe(e, t, n) {
555
555
  )
556
556
  );
557
557
  return s = !0, h(), function() {
558
- _e(d), f(), s = !1;
558
+ ve(p), d(), s = !1;
559
559
  };
560
560
  });
561
561
  }
@@ -579,29 +579,29 @@ function Vr(e) {
579
579
  function Gr(e) {
580
580
  return Array.isArray(e) ? [] : {};
581
581
  }
582
- function ot(e, t) {
583
- return t.clone !== !1 && t.isMergeableObject(e) ? Xe(Gr(e), e, t) : e;
582
+ function it(e, t) {
583
+ return t.clone !== !1 && t.isMergeableObject(e) ? $e(Gr(e), e, t) : e;
584
584
  }
585
585
  function $r(e, t, n) {
586
586
  return e.concat(t).map(function(r) {
587
- return ot(r, n);
587
+ return it(r, n);
588
588
  });
589
589
  }
590
590
  function jr(e, t) {
591
591
  if (!t.customMerge)
592
- return Xe;
592
+ return $e;
593
593
  var n = t.customMerge(e);
594
- return typeof n == "function" ? n : Xe;
594
+ return typeof n == "function" ? n : $e;
595
595
  }
596
596
  function Xr(e) {
597
597
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
598
598
  return Object.propertyIsEnumerable.call(e, t);
599
599
  }) : [];
600
600
  }
601
- function mn(e) {
601
+ function gn(e) {
602
602
  return Object.keys(e).concat(Xr(e));
603
603
  }
604
- function Zn(e, t) {
604
+ function zn(e, t) {
605
605
  try {
606
606
  return t in e;
607
607
  } catch {
@@ -609,56 +609,56 @@ function Zn(e, t) {
609
609
  }
610
610
  }
611
611
  function Wr(e, t) {
612
- return Zn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
612
+ return zn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
613
613
  }
614
614
  function zr(e, t, n) {
615
615
  var r = {};
616
- return n.isMergeableObject(e) && mn(e).forEach(function(i) {
617
- r[i] = ot(e[i], n);
618
- }), mn(t).forEach(function(i) {
619
- Wr(e, i) || (Zn(e, i) && n.isMergeableObject(t[i]) ? r[i] = jr(i, n)(e[i], t[i], n) : r[i] = ot(t[i], n));
616
+ return n.isMergeableObject(e) && gn(e).forEach(function(i) {
617
+ r[i] = it(e[i], n);
618
+ }), gn(t).forEach(function(i) {
619
+ Wr(e, i) || (zn(e, i) && n.isMergeableObject(t[i]) ? r[i] = jr(i, n)(e[i], t[i], n) : r[i] = it(t[i], n));
620
620
  }), r;
621
621
  }
622
- function Xe(e, t, n) {
623
- n = n || {}, n.arrayMerge = n.arrayMerge || $r, n.isMergeableObject = n.isMergeableObject || kr, n.cloneUnlessOtherwiseSpecified = ot;
622
+ function $e(e, t, n) {
623
+ n = n || {}, n.arrayMerge = n.arrayMerge || $r, n.isMergeableObject = n.isMergeableObject || kr, n.cloneUnlessOtherwiseSpecified = it;
624
624
  var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
625
- return a ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : ot(t, n);
625
+ return a ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : it(t, n);
626
626
  }
627
- Xe.all = function(t, n) {
627
+ $e.all = function(t, n) {
628
628
  if (!Array.isArray(t))
629
629
  throw new Error("first argument should be an array");
630
630
  return t.reduce(function(r, i) {
631
- return Xe(r, i, n);
631
+ return $e(r, i, n);
632
632
  }, {});
633
633
  };
634
- var Zr = Xe, Qr = Zr;
634
+ var Zr = $e, Qr = Zr;
635
635
  const Kr = /* @__PURE__ */ Rr(Qr);
636
- var Zt = function(e, t) {
637
- return Zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
636
+ var Qt = function(e, t) {
637
+ return Qt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
638
638
  n.__proto__ = r;
639
639
  } || function(n, r) {
640
640
  for (var i in r)
641
641
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
642
- }, Zt(e, t);
642
+ }, Qt(e, t);
643
643
  };
644
- function Pt(e, t) {
644
+ function St(e, t) {
645
645
  if (typeof t != "function" && t !== null)
646
646
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
647
- Zt(e, t);
647
+ Qt(e, t);
648
648
  function n() {
649
649
  this.constructor = e;
650
650
  }
651
651
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
652
652
  }
653
- var me = function() {
654
- return me = Object.assign || function(t) {
653
+ var pe = function() {
654
+ return pe = Object.assign || function(t) {
655
655
  for (var n, r = 1, i = arguments.length; r < i; r++) {
656
656
  n = arguments[r];
657
657
  for (var a in n)
658
658
  Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
659
659
  }
660
660
  return t;
661
- }, me.apply(this, arguments);
661
+ }, pe.apply(this, arguments);
662
662
  };
663
663
  function Yr(e, t) {
664
664
  var n = {};
@@ -669,13 +669,13 @@ function Yr(e, t) {
669
669
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
670
670
  return n;
671
671
  }
672
- function Mt(e, t, n) {
672
+ function Ft(e, t, n) {
673
673
  if (n || arguments.length === 2)
674
674
  for (var r = 0, i = t.length, a; r < i; r++)
675
675
  (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
676
676
  return e.concat(a || Array.prototype.slice.call(t));
677
677
  }
678
- function Ft(e, t) {
678
+ function Ut(e, t) {
679
679
  var n = t && t.cache ? t.cache : ii, r = t && t.serializer ? t.serializer : ni, i = t && t.strategy ? t.strategy : ei;
680
680
  return i(e, {
681
681
  cache: n,
@@ -689,19 +689,19 @@ function qr(e, t, n, r) {
689
689
  var i = Jr(r) ? r : n(r), a = t.get(i);
690
690
  return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
691
691
  }
692
- function Qn(e, t, n) {
692
+ function Zn(e, t, n) {
693
693
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
694
694
  return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
695
695
  }
696
- function Kn(e, t, n, r, i) {
696
+ function Qn(e, t, n, r, i) {
697
697
  return n.bind(t, e, r, i);
698
698
  }
699
699
  function ei(e, t) {
700
- var n = e.length === 1 ? qr : Qn;
701
- return Kn(e, this, n, t.cache.create(), t.serializer);
700
+ var n = e.length === 1 ? qr : Zn;
701
+ return Qn(e, this, n, t.cache.create(), t.serializer);
702
702
  }
703
703
  function ti(e, t) {
704
- return Kn(e, this, Qn, t.cache.create(), t.serializer);
704
+ return Qn(e, this, Zn, t.cache.create(), t.serializer);
705
705
  }
706
706
  var ni = function() {
707
707
  return JSON.stringify(arguments);
@@ -721,64 +721,64 @@ var ni = function() {
721
721
  create: function() {
722
722
  return new ri();
723
723
  }
724
- }, Ut = {
724
+ }, Vt = {
725
725
  variadic: ti
726
- }, Ct = function() {
727
- return Ct = Object.assign || function(t) {
726
+ }, wt = function() {
727
+ return wt = Object.assign || function(t) {
728
728
  for (var n, r = 1, i = arguments.length; r < i; r++) {
729
729
  n = arguments[r];
730
730
  for (var a in n)
731
731
  Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
732
732
  }
733
733
  return t;
734
- }, Ct.apply(this, arguments);
734
+ }, wt.apply(this, arguments);
735
735
  };
736
- var T;
736
+ var B;
737
737
  (function(e) {
738
738
  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";
739
- })(T || (T = {}));
740
- var D;
739
+ })(B || (B = {}));
740
+ var k;
741
741
  (function(e) {
742
742
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
743
- })(D || (D = {}));
744
- var We;
743
+ })(k || (k = {}));
744
+ var je;
745
745
  (function(e) {
746
746
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
747
- })(We || (We = {}));
748
- function gn(e) {
749
- return e.type === D.literal;
747
+ })(je || (je = {}));
748
+ function bn(e) {
749
+ return e.type === k.literal;
750
750
  }
751
751
  function ai(e) {
752
- return e.type === D.argument;
752
+ return e.type === k.argument;
753
+ }
754
+ function Kn(e) {
755
+ return e.type === k.number;
753
756
  }
754
757
  function Yn(e) {
755
- return e.type === D.number;
758
+ return e.type === k.date;
756
759
  }
757
760
  function Jn(e) {
758
- return e.type === D.date;
761
+ return e.type === k.time;
759
762
  }
760
763
  function qn(e) {
761
- return e.type === D.time;
764
+ return e.type === k.select;
762
765
  }
763
766
  function er(e) {
764
- return e.type === D.select;
765
- }
766
- function tr(e) {
767
- return e.type === D.plural;
767
+ return e.type === k.plural;
768
768
  }
769
769
  function oi(e) {
770
- return e.type === D.pound;
770
+ return e.type === k.pound;
771
771
  }
772
- function nr(e) {
773
- return e.type === D.tag;
772
+ function tr(e) {
773
+ return e.type === k.tag;
774
774
  }
775
- function rr(e) {
776
- return !!(e && typeof e == "object" && e.type === We.number);
775
+ function nr(e) {
776
+ return !!(e && typeof e == "object" && e.type === je.number);
777
777
  }
778
- function Qt(e) {
779
- return !!(e && typeof e == "object" && e.type === We.dateTime);
778
+ function Kt(e) {
779
+ return !!(e && typeof e == "object" && e.type === je.dateTime);
780
780
  }
781
- var ir = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, si = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
781
+ var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, si = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
782
782
  function li(e) {
783
783
  var t = {};
784
784
  return e.replace(si, function(n) {
@@ -870,15 +870,15 @@ function li(e) {
870
870
  return "";
871
871
  }), t;
872
872
  }
873
- var U = function() {
874
- return U = Object.assign || function(t) {
873
+ var F = function() {
874
+ return F = Object.assign || function(t) {
875
875
  for (var n, r = 1, i = arguments.length; r < i; r++) {
876
876
  n = arguments[r];
877
877
  for (var a in n)
878
878
  Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
879
879
  }
880
880
  return t;
881
- }, U.apply(this, arguments);
881
+ }, F.apply(this, arguments);
882
882
  };
883
883
  var ui = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
884
884
  function ci(e) {
@@ -891,8 +891,8 @@ function ci(e) {
891
891
  if (o.length === 0)
892
892
  throw new Error("Invalid number skeleton");
893
893
  for (var u = o[0], s = o.slice(1), l = 0, c = s; l < c.length; l++) {
894
- var f = c[l];
895
- if (f.length === 0)
894
+ var d = c[l];
895
+ if (d.length === 0)
896
896
  throw new Error("Invalid number skeleton");
897
897
  }
898
898
  n.push({ stem: u, options: s });
@@ -902,14 +902,14 @@ function ci(e) {
902
902
  function hi(e) {
903
903
  return e.replace(/^(.*?)-/, "");
904
904
  }
905
- var bn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ar = /^(@+)?(\+|#+)?[rs]?$/g, fi = /(\*)(0+)|(#+)(0+)|(0+)/g, or = /^(0+)$/;
906
- function yn(e) {
905
+ var yn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, fi = /(\*)(0+)|(#+)(0+)|(0+)/g, ar = /^(0+)$/;
906
+ function vn(e) {
907
907
  var t = {};
908
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ar, function(n, r, i) {
908
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(n, r, i) {
909
909
  return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
910
910
  }), t;
911
911
  }
912
- function sr(e) {
912
+ function or(e) {
913
913
  switch (e) {
914
914
  case "sign-auto":
915
915
  return {
@@ -957,14 +957,14 @@ function di(e) {
957
957
  notation: "scientific"
958
958
  }, e = e.slice(1)), t) {
959
959
  var n = e.slice(0, 2);
960
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !or.test(e))
960
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ar.test(e))
961
961
  throw new Error("Malformed concise eng/scientific notation");
962
962
  t.minimumIntegerDigits = e.length;
963
963
  }
964
964
  return t;
965
965
  }
966
- function vn(e) {
967
- var t = {}, n = sr(e);
966
+ function _n(e) {
967
+ var t = {}, n = or(e);
968
968
  return n || t;
969
969
  }
970
970
  function pi(e) {
@@ -1002,13 +1002,13 @@ function pi(e) {
1002
1002
  t.notation = "compact", t.compactDisplay = "long";
1003
1003
  continue;
1004
1004
  case "scientific":
1005
- t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(s, l) {
1006
- return U(U({}, s), vn(l));
1005
+ t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(s, l) {
1006
+ return F(F({}, s), _n(l));
1007
1007
  }, {}));
1008
1008
  continue;
1009
1009
  case "engineering":
1010
- t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(s, l) {
1011
- return U(U({}, s), vn(l));
1010
+ t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(s, l) {
1011
+ return F(F({}, s), _n(l));
1012
1012
  }, {}));
1013
1013
  continue;
1014
1014
  case "notation-simple":
@@ -1053,45 +1053,45 @@ function pi(e) {
1053
1053
  case "integer-width":
1054
1054
  if (i.options.length > 1)
1055
1055
  throw new RangeError("integer-width stems only accept a single optional option");
1056
- i.options[0].replace(fi, function(s, l, c, f, h, d) {
1056
+ i.options[0].replace(fi, function(s, l, c, d, h, p) {
1057
1057
  if (l)
1058
1058
  t.minimumIntegerDigits = c.length;
1059
1059
  else {
1060
- if (f && h)
1060
+ if (d && h)
1061
1061
  throw new Error("We currently do not support maximum integer digits");
1062
- if (d)
1062
+ if (p)
1063
1063
  throw new Error("We currently do not support exact integer digits");
1064
1064
  }
1065
1065
  return "";
1066
1066
  });
1067
1067
  continue;
1068
1068
  }
1069
- if (or.test(i.stem)) {
1069
+ if (ar.test(i.stem)) {
1070
1070
  t.minimumIntegerDigits = i.stem.length;
1071
1071
  continue;
1072
1072
  }
1073
- if (bn.test(i.stem)) {
1073
+ if (yn.test(i.stem)) {
1074
1074
  if (i.options.length > 1)
1075
1075
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1076
- i.stem.replace(bn, function(s, l, c, f, h, d) {
1077
- return c === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1076
+ i.stem.replace(yn, function(s, l, c, d, h, p) {
1077
+ return c === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : h && p ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1078
1078
  });
1079
1079
  var a = i.options[0];
1080
- a === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = U(U({}, t), yn(a)));
1080
+ a === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = F(F({}, t), vn(a)));
1081
1081
  continue;
1082
1082
  }
1083
- if (ar.test(i.stem)) {
1084
- t = U(U({}, t), yn(i.stem));
1083
+ if (ir.test(i.stem)) {
1084
+ t = F(F({}, t), vn(i.stem));
1085
1085
  continue;
1086
1086
  }
1087
- var o = sr(i.stem);
1088
- o && (t = U(U({}, t), o));
1087
+ var o = or(i.stem);
1088
+ o && (t = F(F({}, t), o));
1089
1089
  var u = di(i.stem);
1090
- u && (t = U(U({}, t), u));
1090
+ u && (t = F(F({}, t), u));
1091
1091
  }
1092
1092
  return t;
1093
1093
  }
1094
- var bt = {
1094
+ var mt = {
1095
1095
  "001": [
1096
1096
  "H",
1097
1097
  "h"
@@ -2541,23 +2541,23 @@ function gi(e) {
2541
2541
  }
2542
2542
  var n = e.language, r;
2543
2543
  n !== "root" && (r = e.maximize().region);
2544
- var i = bt[r || ""] || bt[n || ""] || bt["".concat(n, "-001")] || bt["001"];
2544
+ var i = mt[r || ""] || mt[n || ""] || mt["".concat(n, "-001")] || mt["001"];
2545
2545
  return i[0];
2546
2546
  }
2547
- var Vt, bi = new RegExp("^".concat(ir.source, "*")), yi = new RegExp("".concat(ir.source, "*$"));
2548
- function H(e, t) {
2547
+ var Gt, bi = new RegExp("^".concat(rr.source, "*")), yi = new RegExp("".concat(rr.source, "*$"));
2548
+ function P(e, t) {
2549
2549
  return { start: e, end: t };
2550
2550
  }
2551
2551
  var vi = !!String.prototype.startsWith && "_a".startsWith("a", 1), _i = !!String.fromCodePoint, Ei = !!Object.fromEntries, xi = !!String.prototype.codePointAt, wi = !!String.prototype.trimStart, Ai = !!String.prototype.trimEnd, Ci = !!Number.isSafeInteger, Ti = Ci ? Number.isSafeInteger : function(e) {
2552
2552
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2553
- }, Kt = !0;
2553
+ }, Yt = !0;
2554
2554
  try {
2555
- var Bi = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2556
- Kt = ((Vt = Bi.exec("a")) === null || Vt === void 0 ? void 0 : Vt[0]) === "a";
2555
+ var Bi = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2556
+ Yt = ((Gt = Bi.exec("a")) === null || Gt === void 0 ? void 0 : Gt[0]) === "a";
2557
2557
  } catch {
2558
- Kt = !1;
2558
+ Yt = !1;
2559
2559
  }
2560
- var _n = vi ? (
2560
+ var En = vi ? (
2561
2561
  // Native
2562
2562
  function(t, n, r) {
2563
2563
  return t.startsWith(n, r);
@@ -2567,7 +2567,7 @@ var _n = vi ? (
2567
2567
  function(t, n, r) {
2568
2568
  return t.slice(r, r + n.length) === n;
2569
2569
  }
2570
- ), Yt = _i ? String.fromCodePoint : (
2570
+ ), Jt = _i ? String.fromCodePoint : (
2571
2571
  // IE11
2572
2572
  function() {
2573
2573
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2579,7 +2579,7 @@ var _n = vi ? (
2579
2579
  }
2580
2580
  return r;
2581
2581
  }
2582
- ), En = (
2582
+ ), xn = (
2583
2583
  // native
2584
2584
  Ei ? Object.fromEntries : (
2585
2585
  // Ponyfill
@@ -2591,7 +2591,7 @@ var _n = vi ? (
2591
2591
  return n;
2592
2592
  }
2593
2593
  )
2594
- ), lr = xi ? (
2594
+ ), sr = xi ? (
2595
2595
  // Native
2596
2596
  function(t, n) {
2597
2597
  return t.codePointAt(n);
@@ -2626,27 +2626,27 @@ var _n = vi ? (
2626
2626
  return t.replace(yi, "");
2627
2627
  }
2628
2628
  );
2629
- function ur(e, t) {
2629
+ function lr(e, t) {
2630
2630
  return new RegExp(e, t);
2631
2631
  }
2632
- var Jt;
2633
- if (Kt) {
2634
- var xn = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2635
- Jt = function(t, n) {
2632
+ var qt;
2633
+ if (Yt) {
2634
+ var wn = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2635
+ qt = function(t, n) {
2636
2636
  var r;
2637
- xn.lastIndex = n;
2638
- var i = xn.exec(t);
2637
+ wn.lastIndex = n;
2638
+ var i = wn.exec(t);
2639
2639
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2640
2640
  };
2641
2641
  } else
2642
- Jt = function(t, n) {
2642
+ qt = function(t, n) {
2643
2643
  for (var r = []; ; ) {
2644
- var i = lr(t, n);
2645
- if (i === void 0 || cr(i) || Ni(i))
2644
+ var i = sr(t, n);
2645
+ if (i === void 0 || ur(i) || Ni(i))
2646
2646
  break;
2647
2647
  r.push(i), n += i >= 65536 ? 2 : 1;
2648
2648
  }
2649
- return Yt.apply(void 0, r);
2649
+ return Jt.apply(void 0, r);
2650
2650
  };
2651
2651
  var Pi = (
2652
2652
  /** @class */
@@ -2672,14 +2672,14 @@ var Pi = (
2672
2672
  if (a === 35 && (n === "plural" || n === "selectordinal")) {
2673
2673
  var u = this.clonePosition();
2674
2674
  this.bump(), i.push({
2675
- type: D.pound,
2676
- location: H(u, this.clonePosition())
2675
+ type: k.pound,
2676
+ location: P(u, this.clonePosition())
2677
2677
  });
2678
2678
  } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2679
2679
  if (r)
2680
2680
  break;
2681
- return this.error(T.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
2682
- } else if (a === 60 && !this.ignoreTag && qt(this.peek() || 0)) {
2681
+ return this.error(B.UNMATCHED_CLOSING_TAG, P(this.clonePosition(), this.clonePosition()));
2682
+ } else if (a === 60 && !this.ignoreTag && en(this.peek() || 0)) {
2683
2683
  var o = this.parseTag(t, n);
2684
2684
  if (o.err)
2685
2685
  return o;
@@ -2700,9 +2700,9 @@ var Pi = (
2700
2700
  if (this.bumpSpace(), this.bumpIf("/>"))
2701
2701
  return {
2702
2702
  val: {
2703
- type: D.literal,
2703
+ type: k.literal,
2704
2704
  value: "<".concat(i, "/>"),
2705
- location: H(r, this.clonePosition())
2705
+ location: P(r, this.clonePosition())
2706
2706
  },
2707
2707
  err: null
2708
2708
  };
@@ -2712,22 +2712,22 @@ var Pi = (
2712
2712
  return a;
2713
2713
  var o = a.val, u = this.clonePosition();
2714
2714
  if (this.bumpIf("</")) {
2715
- if (this.isEOF() || !qt(this.char()))
2716
- return this.error(T.INVALID_TAG, H(u, this.clonePosition()));
2715
+ if (this.isEOF() || !en(this.char()))
2716
+ return this.error(B.INVALID_TAG, P(u, this.clonePosition()));
2717
2717
  var s = this.clonePosition(), l = this.parseTagName();
2718
- return i !== l ? this.error(T.UNMATCHED_CLOSING_TAG, H(s, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2718
+ return i !== l ? this.error(B.UNMATCHED_CLOSING_TAG, P(s, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2719
2719
  val: {
2720
- type: D.tag,
2720
+ type: k.tag,
2721
2721
  value: i,
2722
2722
  children: o,
2723
- location: H(r, this.clonePosition())
2723
+ location: P(r, this.clonePosition())
2724
2724
  },
2725
2725
  err: null
2726
- } : this.error(T.INVALID_TAG, H(u, this.clonePosition())));
2726
+ } : this.error(B.INVALID_TAG, P(u, this.clonePosition())));
2727
2727
  } else
2728
- return this.error(T.UNCLOSED_TAG, H(r, this.clonePosition()));
2728
+ return this.error(B.UNCLOSED_TAG, P(r, this.clonePosition()));
2729
2729
  } else
2730
- return this.error(T.INVALID_TAG, H(r, this.clonePosition()));
2730
+ return this.error(B.INVALID_TAG, P(r, this.clonePosition()));
2731
2731
  }, e.prototype.parseTagName = function() {
2732
2732
  var t = this.offset();
2733
2733
  for (this.bump(); !this.isEOF() && Li(this.char()); )
@@ -2752,9 +2752,9 @@ var Pi = (
2752
2752
  }
2753
2753
  break;
2754
2754
  }
2755
- var s = H(r, this.clonePosition());
2755
+ var s = P(r, this.clonePosition());
2756
2756
  return {
2757
- val: { type: D.literal, value: i, location: s },
2757
+ val: { type: k.literal, value: i, location: s },
2758
2758
  err: null
2759
2759
  };
2760
2760
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -2793,49 +2793,49 @@ var Pi = (
2793
2793
  n.push(r);
2794
2794
  this.bump();
2795
2795
  }
2796
- return Yt.apply(void 0, n);
2796
+ return Jt.apply(void 0, n);
2797
2797
  }, e.prototype.tryParseUnquoted = function(t, n) {
2798
2798
  if (this.isEOF())
2799
2799
  return null;
2800
2800
  var r = this.char();
2801
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Yt(r));
2801
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Jt(r));
2802
2802
  }, e.prototype.parseArgument = function(t, n) {
2803
2803
  var r = this.clonePosition();
2804
2804
  if (this.bump(), this.bumpSpace(), this.isEOF())
2805
- return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
2805
+ return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, P(r, this.clonePosition()));
2806
2806
  if (this.char() === 125)
2807
- return this.bump(), this.error(T.EMPTY_ARGUMENT, H(r, this.clonePosition()));
2807
+ return this.bump(), this.error(B.EMPTY_ARGUMENT, P(r, this.clonePosition()));
2808
2808
  var i = this.parseIdentifierIfPossible().value;
2809
2809
  if (!i)
2810
- return this.error(T.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
2810
+ return this.error(B.MALFORMED_ARGUMENT, P(r, this.clonePosition()));
2811
2811
  if (this.bumpSpace(), this.isEOF())
2812
- return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
2812
+ return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, P(r, this.clonePosition()));
2813
2813
  switch (this.char()) {
2814
2814
  case 125:
2815
2815
  return this.bump(), {
2816
2816
  val: {
2817
- type: D.argument,
2817
+ type: k.argument,
2818
2818
  // value does not include the opening and closing braces.
2819
2819
  value: i,
2820
- location: H(r, this.clonePosition())
2820
+ location: P(r, this.clonePosition())
2821
2821
  },
2822
2822
  err: null
2823
2823
  };
2824
2824
  case 44:
2825
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2825
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, P(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2826
2826
  default:
2827
- return this.error(T.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
2827
+ return this.error(B.MALFORMED_ARGUMENT, P(r, this.clonePosition()));
2828
2828
  }
2829
2829
  }, e.prototype.parseIdentifierIfPossible = function() {
2830
- var t = this.clonePosition(), n = this.offset(), r = Jt(this.message, n), i = n + r.length;
2830
+ var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
2831
2831
  this.bumpTo(i);
2832
- var a = this.clonePosition(), o = H(t, a);
2832
+ var a = this.clonePosition(), o = P(t, a);
2833
2833
  return { value: r, location: o };
2834
2834
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2835
2835
  var a, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, s = this.clonePosition();
2836
2836
  switch (u) {
2837
2837
  case "":
2838
- return this.error(T.EXPECT_ARGUMENT_TYPE, H(o, s));
2838
+ return this.error(B.EXPECT_ARGUMENT_TYPE, P(o, s));
2839
2839
  case "number":
2840
2840
  case "date":
2841
2841
  case "time": {
@@ -2843,38 +2843,38 @@ var Pi = (
2843
2843
  var l = null;
2844
2844
  if (this.bumpIf(",")) {
2845
2845
  this.bumpSpace();
2846
- var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2847
- if (f.err)
2848
- return f;
2849
- var h = Hi(f.val);
2846
+ var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
2847
+ if (d.err)
2848
+ return d;
2849
+ var h = Hi(d.val);
2850
2850
  if (h.length === 0)
2851
- return this.error(T.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
2852
- var d = H(c, this.clonePosition());
2853
- l = { style: h, styleLocation: d };
2851
+ return this.error(B.EXPECT_ARGUMENT_STYLE, P(this.clonePosition(), this.clonePosition()));
2852
+ var p = P(c, this.clonePosition());
2853
+ l = { style: h, styleLocation: p };
2854
2854
  }
2855
2855
  var v = this.tryParseArgumentClose(i);
2856
2856
  if (v.err)
2857
2857
  return v;
2858
- var b = H(i, this.clonePosition());
2859
- if (l && _n(l?.style, "::", 0)) {
2860
- var L = Si(l.style.slice(2));
2858
+ var b = P(i, this.clonePosition());
2859
+ if (l && En(l?.style, "::", 0)) {
2860
+ var N = Si(l.style.slice(2));
2861
2861
  if (u === "number") {
2862
- var f = this.parseNumberSkeletonFromString(L, l.styleLocation);
2863
- return f.err ? f : {
2864
- val: { type: D.number, value: r, location: b, style: f.val },
2862
+ var d = this.parseNumberSkeletonFromString(N, l.styleLocation);
2863
+ return d.err ? d : {
2864
+ val: { type: k.number, value: r, location: b, style: d.val },
2865
2865
  err: null
2866
2866
  };
2867
2867
  } else {
2868
- if (L.length === 0)
2869
- return this.error(T.EXPECT_DATE_TIME_SKELETON, b);
2870
- var E = L;
2871
- this.locale && (E = mi(L, this.locale));
2868
+ if (N.length === 0)
2869
+ return this.error(B.EXPECT_DATE_TIME_SKELETON, b);
2870
+ var _ = N;
2871
+ this.locale && (_ = mi(N, this.locale));
2872
2872
  var h = {
2873
- type: We.dateTime,
2874
- pattern: E,
2873
+ type: je.dateTime,
2874
+ pattern: _,
2875
2875
  location: l.styleLocation,
2876
- parsedOptions: this.shouldParseSkeletons ? li(E) : {}
2877
- }, O = u === "date" ? D.date : D.time;
2876
+ parsedOptions: this.shouldParseSkeletons ? li(_) : {}
2877
+ }, O = u === "date" ? k.date : k.time;
2878
2878
  return {
2879
2879
  val: { type: O, value: r, location: b, style: h },
2880
2880
  err: null
@@ -2883,7 +2883,7 @@ var Pi = (
2883
2883
  }
2884
2884
  return {
2885
2885
  val: {
2886
- type: u === "number" ? D.number : u === "date" ? D.date : D.time,
2886
+ type: u === "number" ? k.number : u === "date" ? k.date : k.time,
2887
2887
  value: r,
2888
2888
  location: b,
2889
2889
  style: (a = l?.style) !== null && a !== void 0 ? a : null
@@ -2894,52 +2894,52 @@ var Pi = (
2894
2894
  case "plural":
2895
2895
  case "selectordinal":
2896
2896
  case "select": {
2897
- var I = this.clonePosition();
2897
+ var L = this.clonePosition();
2898
2898
  if (this.bumpSpace(), !this.bumpIf(","))
2899
- return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, H(I, Ct({}, I)));
2899
+ return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS, P(L, wt({}, L)));
2900
2900
  this.bumpSpace();
2901
- var ie = this.parseIdentifierIfPossible(), F = 0;
2902
- if (u !== "select" && ie.value === "offset") {
2901
+ var ae = this.parseIdentifierIfPossible(), D = 0;
2902
+ if (u !== "select" && ae.value === "offset") {
2903
2903
  if (!this.bumpIf(":"))
2904
- return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
2904
+ return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P(this.clonePosition(), this.clonePosition()));
2905
2905
  this.bumpSpace();
2906
- var f = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2907
- if (f.err)
2908
- return f;
2909
- this.bumpSpace(), ie = this.parseIdentifierIfPossible(), F = f.val;
2906
+ var d = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2907
+ if (d.err)
2908
+ return d;
2909
+ this.bumpSpace(), ae = this.parseIdentifierIfPossible(), D = d.val;
2910
2910
  }
2911
- var te = this.tryParsePluralOrSelectOptions(t, u, n, ie);
2912
- if (te.err)
2913
- return te;
2911
+ var ne = this.tryParsePluralOrSelectOptions(t, u, n, ae);
2912
+ if (ne.err)
2913
+ return ne;
2914
2914
  var v = this.tryParseArgumentClose(i);
2915
2915
  if (v.err)
2916
2916
  return v;
2917
- var ae = H(i, this.clonePosition());
2917
+ var oe = P(i, this.clonePosition());
2918
2918
  return u === "select" ? {
2919
2919
  val: {
2920
- type: D.select,
2920
+ type: k.select,
2921
2921
  value: r,
2922
- options: En(te.val),
2923
- location: ae
2922
+ options: xn(ne.val),
2923
+ location: oe
2924
2924
  },
2925
2925
  err: null
2926
2926
  } : {
2927
2927
  val: {
2928
- type: D.plural,
2928
+ type: k.plural,
2929
2929
  value: r,
2930
- options: En(te.val),
2931
- offset: F,
2930
+ options: xn(ne.val),
2931
+ offset: D,
2932
2932
  pluralType: u === "plural" ? "cardinal" : "ordinal",
2933
- location: ae
2933
+ location: oe
2934
2934
  },
2935
2935
  err: null
2936
2936
  };
2937
2937
  }
2938
2938
  default:
2939
- return this.error(T.INVALID_ARGUMENT_TYPE, H(o, s));
2939
+ return this.error(B.INVALID_ARGUMENT_TYPE, P(o, s));
2940
2940
  }
2941
2941
  }, e.prototype.tryParseArgumentClose = function(t) {
2942
- return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2942
+ return this.isEOF() || this.char() !== 125 ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, P(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2943
2943
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2944
2944
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2945
2945
  var r = this.char();
@@ -2948,7 +2948,7 @@ var Pi = (
2948
2948
  this.bump();
2949
2949
  var i = this.clonePosition();
2950
2950
  if (!this.bumpUntil("'"))
2951
- return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, H(i, this.clonePosition()));
2951
+ return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, P(i, this.clonePosition()));
2952
2952
  this.bump();
2953
2953
  break;
2954
2954
  }
@@ -2980,11 +2980,11 @@ var Pi = (
2980
2980
  try {
2981
2981
  r = ci(t);
2982
2982
  } catch {
2983
- return this.error(T.INVALID_NUMBER_SKELETON, n);
2983
+ return this.error(B.INVALID_NUMBER_SKELETON, n);
2984
2984
  }
2985
2985
  return {
2986
2986
  val: {
2987
- type: We.number,
2987
+ type: je.number,
2988
2988
  tokens: r,
2989
2989
  location: n,
2990
2990
  parsedOptions: this.shouldParseSkeletons ? pi(r) : {}
@@ -2994,36 +2994,36 @@ var Pi = (
2994
2994
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2995
2995
  for (var a, o = !1, u = [], s = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
2996
2996
  if (l.length === 0) {
2997
- var f = this.clonePosition();
2997
+ var d = this.clonePosition();
2998
2998
  if (n !== "select" && this.bumpIf("=")) {
2999
- var h = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR, T.INVALID_PLURAL_ARGUMENT_SELECTOR);
2999
+ var h = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR, B.INVALID_PLURAL_ARGUMENT_SELECTOR);
3000
3000
  if (h.err)
3001
3001
  return h;
3002
- c = H(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
3002
+ c = P(d, this.clonePosition()), l = this.message.slice(d.offset, this.offset());
3003
3003
  } else
3004
3004
  break;
3005
3005
  }
3006
3006
  if (s.has(l))
3007
- return this.error(n === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3007
+ return this.error(n === "select" ? B.DUPLICATE_SELECT_ARGUMENT_SELECTOR : B.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3008
3008
  l === "other" && (o = !0), this.bumpSpace();
3009
- var d = this.clonePosition();
3009
+ var p = this.clonePosition();
3010
3010
  if (!this.bumpIf("{"))
3011
- return this.error(n === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
3011
+ return this.error(n === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, P(this.clonePosition(), this.clonePosition()));
3012
3012
  var v = this.parseMessage(t + 1, n, r);
3013
3013
  if (v.err)
3014
3014
  return v;
3015
- var b = this.tryParseArgumentClose(d);
3015
+ var b = this.tryParseArgumentClose(p);
3016
3016
  if (b.err)
3017
3017
  return b;
3018
3018
  u.push([
3019
3019
  l,
3020
3020
  {
3021
3021
  value: v.val,
3022
- location: H(d, this.clonePosition())
3022
+ location: P(p, this.clonePosition())
3023
3023
  }
3024
3024
  ]), s.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, c = a.location;
3025
3025
  }
3026
- return u.length === 0 ? this.error(n === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(T.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
3026
+ return u.length === 0 ? this.error(n === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR : B.EXPECT_PLURAL_ARGUMENT_SELECTOR, P(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(B.MISSING_OTHER_CLAUSE, P(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
3027
3027
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3028
3028
  var r = 1, i = this.clonePosition();
3029
3029
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3034,7 +3034,7 @@ var Pi = (
3034
3034
  else
3035
3035
  break;
3036
3036
  }
3037
- var s = H(i, this.clonePosition());
3037
+ var s = P(i, this.clonePosition());
3038
3038
  return a ? (o *= r, Ti(o) ? { val: o, err: null } : this.error(n, s)) : this.error(t, s);
3039
3039
  }, e.prototype.offset = function() {
3040
3040
  return this.position.offset;
@@ -3050,7 +3050,7 @@ var Pi = (
3050
3050
  var t = this.position.offset;
3051
3051
  if (t >= this.message.length)
3052
3052
  throw Error("out of bound");
3053
- var n = lr(this.message, t);
3053
+ var n = sr(this.message, t);
3054
3054
  if (n === void 0)
3055
3055
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3056
3056
  return n;
@@ -3069,7 +3069,7 @@ var Pi = (
3069
3069
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3070
3070
  }
3071
3071
  }, e.prototype.bumpIf = function(t) {
3072
- if (_n(this.message, t, this.offset())) {
3072
+ if (En(this.message, t, this.offset())) {
3073
3073
  for (var n = 0; n < t.length; n++)
3074
3074
  this.bump();
3075
3075
  return !0;
@@ -3091,7 +3091,7 @@ var Pi = (
3091
3091
  break;
3092
3092
  }
3093
3093
  }, e.prototype.bumpSpace = function() {
3094
- for (; !this.isEOF() && cr(this.char()); )
3094
+ for (; !this.isEOF() && ur(this.char()); )
3095
3095
  this.bump();
3096
3096
  }, e.prototype.peek = function() {
3097
3097
  if (this.isEOF())
@@ -3101,47 +3101,47 @@ var Pi = (
3101
3101
  }, e;
3102
3102
  }()
3103
3103
  );
3104
- function qt(e) {
3104
+ function en(e) {
3105
3105
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3106
3106
  }
3107
3107
  function Ii(e) {
3108
- return qt(e) || e === 47;
3108
+ return en(e) || e === 47;
3109
3109
  }
3110
3110
  function Li(e) {
3111
3111
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3112
3112
  }
3113
- function cr(e) {
3113
+ function ur(e) {
3114
3114
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3115
3115
  }
3116
3116
  function Ni(e) {
3117
3117
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3118
3118
  }
3119
- function en(e) {
3119
+ function tn(e) {
3120
3120
  e.forEach(function(t) {
3121
- if (delete t.location, er(t) || tr(t))
3121
+ if (delete t.location, qn(t) || er(t))
3122
3122
  for (var n in t.options)
3123
- delete t.options[n].location, en(t.options[n].value);
3123
+ delete t.options[n].location, tn(t.options[n].value);
3124
3124
  else
3125
- Yn(t) && rr(t.style) || (Jn(t) || qn(t)) && Qt(t.style) ? delete t.style.location : nr(t) && en(t.children);
3125
+ Kn(t) && nr(t.style) || (Yn(t) || Jn(t)) && Kt(t.style) ? delete t.style.location : tr(t) && tn(t.children);
3126
3126
  });
3127
3127
  }
3128
3128
  function Oi(e, t) {
3129
- t === void 0 && (t = {}), t = Ct({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3129
+ t === void 0 && (t = {}), t = wt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3130
3130
  var n = new Pi(e, t).parse();
3131
3131
  if (n.err) {
3132
- var r = SyntaxError(T[n.err.kind]);
3132
+ var r = SyntaxError(B[n.err.kind]);
3133
3133
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3134
3134
  }
3135
- return t?.captureLocation || en(n.val), n.val;
3135
+ return t?.captureLocation || tn(n.val), n.val;
3136
3136
  }
3137
- var ze;
3137
+ var Xe;
3138
3138
  (function(e) {
3139
3139
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3140
- })(ze || (ze = {}));
3141
- var It = (
3140
+ })(Xe || (Xe = {}));
3141
+ var Ht = (
3142
3142
  /** @class */
3143
3143
  function(e) {
3144
- Pt(t, e);
3144
+ St(t, e);
3145
3145
  function t(n, r, i) {
3146
3146
  var a = e.call(this, n) || this;
3147
3147
  return a.code = r, a.originalMessage = i, a;
@@ -3150,155 +3150,155 @@ var It = (
3150
3150
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3151
3151
  }, t;
3152
3152
  }(Error)
3153
- ), wn = (
3153
+ ), An = (
3154
3154
  /** @class */
3155
3155
  function(e) {
3156
- Pt(t, e);
3156
+ St(t, e);
3157
3157
  function t(n, r, i, a) {
3158
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ze.INVALID_VALUE, a) || this;
3158
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Xe.INVALID_VALUE, a) || this;
3159
3159
  }
3160
3160
  return t;
3161
- }(It)
3161
+ }(Ht)
3162
3162
  ), Ri = (
3163
3163
  /** @class */
3164
3164
  function(e) {
3165
- Pt(t, e);
3165
+ St(t, e);
3166
3166
  function t(n, r, i) {
3167
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ze.INVALID_VALUE, i) || this;
3167
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Xe.INVALID_VALUE, i) || this;
3168
3168
  }
3169
3169
  return t;
3170
- }(It)
3170
+ }(Ht)
3171
3171
  ), ki = (
3172
3172
  /** @class */
3173
3173
  function(e) {
3174
- Pt(t, e);
3174
+ St(t, e);
3175
3175
  function t(n, r) {
3176
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ze.MISSING_VALUE, r) || this;
3176
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Xe.MISSING_VALUE, r) || this;
3177
3177
  }
3178
3178
  return t;
3179
- }(It)
3180
- ), K;
3179
+ }(Ht)
3180
+ ), q;
3181
3181
  (function(e) {
3182
3182
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3183
- })(K || (K = {}));
3183
+ })(q || (q = {}));
3184
3184
  function Di(e) {
3185
3185
  return e.length < 2 ? e : e.reduce(function(t, n) {
3186
3186
  var r = t[t.length - 1];
3187
- return !r || r.type !== K.literal || n.type !== K.literal ? t.push(n) : r.value += n.value, t;
3187
+ return !r || r.type !== q.literal || n.type !== q.literal ? t.push(n) : r.value += n.value, t;
3188
3188
  }, []);
3189
3189
  }
3190
3190
  function Mi(e) {
3191
3191
  return typeof e == "function";
3192
3192
  }
3193
- function Et(e, t, n, r, i, a, o) {
3194
- if (e.length === 1 && gn(e[0]))
3193
+ function vt(e, t, n, r, i, a, o) {
3194
+ if (e.length === 1 && bn(e[0]))
3195
3195
  return [
3196
3196
  {
3197
- type: K.literal,
3197
+ type: q.literal,
3198
3198
  value: e[0].value
3199
3199
  }
3200
3200
  ];
3201
3201
  for (var u = [], s = 0, l = e; s < l.length; s++) {
3202
3202
  var c = l[s];
3203
- if (gn(c)) {
3203
+ if (bn(c)) {
3204
3204
  u.push({
3205
- type: K.literal,
3205
+ type: q.literal,
3206
3206
  value: c.value
3207
3207
  });
3208
3208
  continue;
3209
3209
  }
3210
3210
  if (oi(c)) {
3211
3211
  typeof a == "number" && u.push({
3212
- type: K.literal,
3212
+ type: q.literal,
3213
3213
  value: n.getNumberFormat(t).format(a)
3214
3214
  });
3215
3215
  continue;
3216
3216
  }
3217
- var f = c.value;
3218
- if (!(i && f in i))
3219
- throw new ki(f, o);
3220
- var h = i[f];
3217
+ var d = c.value;
3218
+ if (!(i && d in i))
3219
+ throw new ki(d, o);
3220
+ var h = i[d];
3221
3221
  if (ai(c)) {
3222
3222
  (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), u.push({
3223
- type: typeof h == "string" ? K.literal : K.object,
3223
+ type: typeof h == "string" ? q.literal : q.object,
3224
3224
  value: h
3225
3225
  });
3226
3226
  continue;
3227
3227
  }
3228
- if (Jn(c)) {
3229
- var d = typeof c.style == "string" ? r.date[c.style] : Qt(c.style) ? c.style.parsedOptions : void 0;
3228
+ if (Yn(c)) {
3229
+ var p = typeof c.style == "string" ? r.date[c.style] : Kt(c.style) ? c.style.parsedOptions : void 0;
3230
3230
  u.push({
3231
- type: K.literal,
3232
- value: n.getDateTimeFormat(t, d).format(h)
3231
+ type: q.literal,
3232
+ value: n.getDateTimeFormat(t, p).format(h)
3233
3233
  });
3234
3234
  continue;
3235
3235
  }
3236
- if (qn(c)) {
3237
- var d = typeof c.style == "string" ? r.time[c.style] : Qt(c.style) ? c.style.parsedOptions : r.time.medium;
3236
+ if (Jn(c)) {
3237
+ var p = typeof c.style == "string" ? r.time[c.style] : Kt(c.style) ? c.style.parsedOptions : r.time.medium;
3238
3238
  u.push({
3239
- type: K.literal,
3240
- value: n.getDateTimeFormat(t, d).format(h)
3239
+ type: q.literal,
3240
+ value: n.getDateTimeFormat(t, p).format(h)
3241
3241
  });
3242
3242
  continue;
3243
3243
  }
3244
- if (Yn(c)) {
3245
- var d = typeof c.style == "string" ? r.number[c.style] : rr(c.style) ? c.style.parsedOptions : void 0;
3246
- d && d.scale && (h = h * (d.scale || 1)), u.push({
3247
- type: K.literal,
3248
- value: n.getNumberFormat(t, d).format(h)
3244
+ if (Kn(c)) {
3245
+ var p = typeof c.style == "string" ? r.number[c.style] : nr(c.style) ? c.style.parsedOptions : void 0;
3246
+ p && p.scale && (h = h * (p.scale || 1)), u.push({
3247
+ type: q.literal,
3248
+ value: n.getNumberFormat(t, p).format(h)
3249
3249
  });
3250
3250
  continue;
3251
3251
  }
3252
- if (nr(c)) {
3253
- var v = c.children, b = c.value, L = i[b];
3254
- if (!Mi(L))
3252
+ if (tr(c)) {
3253
+ var v = c.children, b = c.value, N = i[b];
3254
+ if (!Mi(N))
3255
3255
  throw new Ri(b, "function", o);
3256
- var E = Et(v, t, n, r, i, a), O = L(E.map(function(F) {
3257
- return F.value;
3256
+ var _ = vt(v, t, n, r, i, a), O = N(_.map(function(D) {
3257
+ return D.value;
3258
3258
  }));
3259
- Array.isArray(O) || (O = [O]), u.push.apply(u, O.map(function(F) {
3259
+ Array.isArray(O) || (O = [O]), u.push.apply(u, O.map(function(D) {
3260
3260
  return {
3261
- type: typeof F == "string" ? K.literal : K.object,
3262
- value: F
3261
+ type: typeof D == "string" ? q.literal : q.object,
3262
+ value: D
3263
3263
  };
3264
3264
  }));
3265
3265
  }
3266
- if (er(c)) {
3267
- var I = c.options[h] || c.options.other;
3268
- if (!I)
3269
- throw new wn(c.value, h, Object.keys(c.options), o);
3270
- u.push.apply(u, Et(I.value, t, n, r, i));
3266
+ if (qn(c)) {
3267
+ var L = c.options[h] || c.options.other;
3268
+ if (!L)
3269
+ throw new An(c.value, h, Object.keys(c.options), o);
3270
+ u.push.apply(u, vt(L.value, t, n, r, i));
3271
3271
  continue;
3272
3272
  }
3273
- if (tr(c)) {
3274
- var I = c.options["=".concat(h)];
3275
- if (!I) {
3273
+ if (er(c)) {
3274
+ var L = c.options["=".concat(h)];
3275
+ if (!L) {
3276
3276
  if (!Intl.PluralRules)
3277
- throw new It(`Intl.PluralRules is not available in this environment.
3277
+ throw new Ht(`Intl.PluralRules is not available in this environment.
3278
3278
  Try polyfilling it using "@formatjs/intl-pluralrules"
3279
- `, ze.MISSING_INTL_API, o);
3280
- var ie = n.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
3281
- I = c.options[ie] || c.options.other;
3279
+ `, Xe.MISSING_INTL_API, o);
3280
+ var ae = n.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
3281
+ L = c.options[ae] || c.options.other;
3282
3282
  }
3283
- if (!I)
3284
- throw new wn(c.value, h, Object.keys(c.options), o);
3285
- u.push.apply(u, Et(I.value, t, n, r, i, h - (c.offset || 0)));
3283
+ if (!L)
3284
+ throw new An(c.value, h, Object.keys(c.options), o);
3285
+ u.push.apply(u, vt(L.value, t, n, r, i, h - (c.offset || 0)));
3286
3286
  continue;
3287
3287
  }
3288
3288
  }
3289
3289
  return Di(u);
3290
3290
  }
3291
3291
  function Fi(e, t) {
3292
- return t ? me(me(me({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3293
- return n[r] = me(me({}, e[r]), t[r] || {}), n;
3292
+ return t ? pe(pe(pe({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3293
+ return n[r] = pe(pe({}, e[r]), t[r] || {}), n;
3294
3294
  }, {})) : e;
3295
3295
  }
3296
3296
  function Ui(e, t) {
3297
3297
  return t ? Object.keys(e).reduce(function(n, r) {
3298
3298
  return n[r] = Fi(e[r], t[r]), n;
3299
- }, me({}, e)) : e;
3299
+ }, pe({}, e)) : e;
3300
3300
  }
3301
- function Gt(e) {
3301
+ function $t(e) {
3302
3302
  return {
3303
3303
  create: function() {
3304
3304
  return {
@@ -3318,29 +3318,29 @@ function Vi(e) {
3318
3318
  dateTime: {},
3319
3319
  pluralRules: {}
3320
3320
  }), {
3321
- getNumberFormat: Ft(function() {
3321
+ getNumberFormat: Ut(function() {
3322
3322
  for (var t, n = [], r = 0; r < arguments.length; r++)
3323
3323
  n[r] = arguments[r];
3324
- return new ((t = Intl.NumberFormat).bind.apply(t, Mt([void 0], n, !1)))();
3324
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ft([void 0], n, !1)))();
3325
3325
  }, {
3326
- cache: Gt(e.number),
3327
- strategy: Ut.variadic
3326
+ cache: $t(e.number),
3327
+ strategy: Vt.variadic
3328
3328
  }),
3329
- getDateTimeFormat: Ft(function() {
3329
+ getDateTimeFormat: Ut(function() {
3330
3330
  for (var t, n = [], r = 0; r < arguments.length; r++)
3331
3331
  n[r] = arguments[r];
3332
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Mt([void 0], n, !1)))();
3332
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ft([void 0], n, !1)))();
3333
3333
  }, {
3334
- cache: Gt(e.dateTime),
3335
- strategy: Ut.variadic
3334
+ cache: $t(e.dateTime),
3335
+ strategy: Vt.variadic
3336
3336
  }),
3337
- getPluralRules: Ft(function() {
3337
+ getPluralRules: Ut(function() {
3338
3338
  for (var t, n = [], r = 0; r < arguments.length; r++)
3339
3339
  n[r] = arguments[r];
3340
- return new ((t = Intl.PluralRules).bind.apply(t, Mt([void 0], n, !1)))();
3340
+ return new ((t = Intl.PluralRules).bind.apply(t, Ft([void 0], n, !1)))();
3341
3341
  }, {
3342
- cache: Gt(e.pluralRules),
3343
- strategy: Ut.variadic
3342
+ cache: $t(e.pluralRules),
3343
+ strategy: Vt.variadic
3344
3344
  })
3345
3345
  };
3346
3346
  }
@@ -3358,12 +3358,12 @@ var Gi = (
3358
3358
  var l = a.formatToParts(s);
3359
3359
  if (l.length === 1)
3360
3360
  return l[0].value;
3361
- var c = l.reduce(function(f, h) {
3362
- return !f.length || h.type !== K.literal || typeof f[f.length - 1] != "string" ? f.push(h.value) : f[f.length - 1] += h.value, f;
3361
+ var c = l.reduce(function(d, h) {
3362
+ return !d.length || h.type !== q.literal || typeof d[d.length - 1] != "string" ? d.push(h.value) : d[d.length - 1] += h.value, d;
3363
3363
  }, []);
3364
3364
  return c.length <= 1 ? c[0] || "" : c;
3365
3365
  }, this.formatToParts = function(s) {
3366
- return Et(a.ast, a.locales, a.formatters, a.formats, s, void 0, a.message);
3366
+ return vt(a.ast, a.locales, a.formatters, a.formats, s, void 0, a.message);
3367
3367
  }, this.resolvedOptions = function() {
3368
3368
  var s;
3369
3369
  return {
@@ -3377,7 +3377,7 @@ var Gi = (
3377
3377
  var o = i || {};
3378
3378
  o.formatters;
3379
3379
  var u = Yr(o, ["formatters"]);
3380
- this.ast = e.__parse(t, me(me({}, u), { locale: this.resolvedLocale }));
3380
+ this.ast = e.__parse(t, pe(pe({}, u), { locale: this.resolvedLocale }));
3381
3381
  } else
3382
3382
  this.ast = t;
3383
3383
  if (!Array.isArray(this.ast))
@@ -3477,28 +3477,28 @@ function $i(e, t) {
3477
3477
  r = void 0;
3478
3478
  return r;
3479
3479
  }
3480
- const Te = {}, ji = (e, t, n) => n && (t in Te || (Te[t] = {}), e in Te[t] || (Te[t][e] = n), n), hr = (e, t) => {
3480
+ const we = {}, ji = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), cr = (e, t) => {
3481
3481
  if (t == null)
3482
3482
  return;
3483
- if (t in Te && e in Te[t])
3484
- return Te[t][e];
3485
- const n = Lt(t);
3483
+ if (t in we && e in we[t])
3484
+ return we[t][e];
3485
+ const n = Pt(t);
3486
3486
  for (let r = 0; r < n.length; r++) {
3487
3487
  const i = n[r], a = Wi(i, e);
3488
3488
  if (a)
3489
3489
  return ji(e, t, a);
3490
3490
  }
3491
3491
  };
3492
- let un;
3493
- const Ke = Ht({});
3492
+ let cn;
3493
+ const Ze = Bt({});
3494
3494
  function Xi(e) {
3495
- return un[e] || null;
3495
+ return cn[e] || null;
3496
3496
  }
3497
- function fr(e) {
3498
- return e in un;
3497
+ function hr(e) {
3498
+ return e in cn;
3499
3499
  }
3500
3500
  function Wi(e, t) {
3501
- if (!fr(e))
3501
+ if (!hr(e))
3502
3502
  return null;
3503
3503
  const n = Xi(e);
3504
3504
  return $i(n, t);
@@ -3506,61 +3506,61 @@ function Wi(e, t) {
3506
3506
  function zi(e) {
3507
3507
  if (e == null)
3508
3508
  return;
3509
- const t = Lt(e);
3509
+ const t = Pt(e);
3510
3510
  for (let n = 0; n < t.length; n++) {
3511
3511
  const r = t[n];
3512
- if (fr(r))
3512
+ if (hr(r))
3513
3513
  return r;
3514
3514
  }
3515
3515
  }
3516
- function dr(e, ...t) {
3517
- delete Te[e], Ke.update((n) => (n[e] = Kr.all([n[e] || {}, ...t]), n));
3516
+ function fr(e, ...t) {
3517
+ delete we[e], Ze.update((n) => (n[e] = Kr.all([n[e] || {}, ...t]), n));
3518
3518
  }
3519
- Qe(
3520
- [Ke],
3519
+ ze(
3520
+ [Ze],
3521
3521
  ([e]) => Object.keys(e)
3522
3522
  );
3523
- Ke.subscribe((e) => un = e);
3524
- const xt = {};
3523
+ Ze.subscribe((e) => cn = e);
3524
+ const _t = {};
3525
3525
  function Zi(e, t) {
3526
- xt[e].delete(t), xt[e].size === 0 && delete xt[e];
3526
+ _t[e].delete(t), _t[e].size === 0 && delete _t[e];
3527
3527
  }
3528
- function pr(e) {
3529
- return xt[e];
3528
+ function dr(e) {
3529
+ return _t[e];
3530
3530
  }
3531
3531
  function Qi(e) {
3532
- return Lt(e).map((t) => {
3533
- const n = pr(t);
3532
+ return Pt(e).map((t) => {
3533
+ const n = dr(t);
3534
3534
  return [t, n ? [...n] : []];
3535
3535
  }).filter(([, t]) => t.length > 0);
3536
3536
  }
3537
- function tn(e) {
3538
- return e == null ? !1 : Lt(e).some(
3537
+ function nn(e) {
3538
+ return e == null ? !1 : Pt(e).some(
3539
3539
  (t) => {
3540
3540
  var n;
3541
- return (n = pr(t)) == null ? void 0 : n.size;
3541
+ return (n = dr(t)) == null ? void 0 : n.size;
3542
3542
  }
3543
3543
  );
3544
3544
  }
3545
3545
  function Ki(e, t) {
3546
3546
  return Promise.all(
3547
3547
  t.map((r) => (Zi(e, r), r().then((i) => i.default || i)))
3548
- ).then((r) => dr(e, ...r));
3548
+ ).then((r) => fr(e, ...r));
3549
3549
  }
3550
- const nt = {};
3551
- function mr(e) {
3552
- if (!tn(e))
3553
- return e in nt ? nt[e] : Promise.resolve();
3550
+ const et = {};
3551
+ function pr(e) {
3552
+ if (!nn(e))
3553
+ return e in et ? et[e] : Promise.resolve();
3554
3554
  const t = Qi(e);
3555
- return nt[e] = Promise.all(
3555
+ return et[e] = Promise.all(
3556
3556
  t.map(
3557
3557
  ([n, r]) => Ki(n, r)
3558
3558
  )
3559
3559
  ).then(() => {
3560
- if (tn(e))
3561
- return mr(e);
3562
- delete nt[e];
3563
- }), nt[e];
3560
+ if (nn(e))
3561
+ return pr(e);
3562
+ delete et[e];
3563
+ }), et[e];
3564
3564
  }
3565
3565
  const Yi = {
3566
3566
  number: {
@@ -3599,125 +3599,125 @@ const Yi = {
3599
3599
  handleMissingMessage: void 0,
3600
3600
  ignoreTag: !0
3601
3601
  }, qi = Ji;
3602
- function Ze() {
3602
+ function We() {
3603
3603
  return qi;
3604
3604
  }
3605
- const $t = Ht(!1);
3606
- var ea = Object.defineProperty, ta = Object.defineProperties, na = Object.getOwnPropertyDescriptors, An = Object.getOwnPropertySymbols, ra = Object.prototype.hasOwnProperty, ia = Object.prototype.propertyIsEnumerable, Cn = (e, t, n) => t in e ? ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, aa = (e, t) => {
3605
+ const jt = Bt(!1);
3606
+ var ea = Object.defineProperty, ta = Object.defineProperties, na = Object.getOwnPropertyDescriptors, Cn = Object.getOwnPropertySymbols, ra = Object.prototype.hasOwnProperty, ia = Object.prototype.propertyIsEnumerable, Tn = (e, t, n) => t in e ? ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, aa = (e, t) => {
3607
3607
  for (var n in t || (t = {}))
3608
- ra.call(t, n) && Cn(e, n, t[n]);
3609
- if (An)
3610
- for (var n of An(t))
3611
- ia.call(t, n) && Cn(e, n, t[n]);
3608
+ ra.call(t, n) && Tn(e, n, t[n]);
3609
+ if (Cn)
3610
+ for (var n of Cn(t))
3611
+ ia.call(t, n) && Tn(e, n, t[n]);
3612
3612
  return e;
3613
3613
  }, oa = (e, t) => ta(e, na(t));
3614
- let nn;
3615
- const Tt = Ht(null);
3616
- function Tn(e) {
3614
+ let rn;
3615
+ const At = Bt(null);
3616
+ function Bn(e) {
3617
3617
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3618
3618
  }
3619
- function Lt(e, t = Ze().fallbackLocale) {
3620
- const n = Tn(e);
3621
- return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
3619
+ function Pt(e, t = We().fallbackLocale) {
3620
+ const n = Bn(e);
3621
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Bn(t)])] : n;
3622
3622
  }
3623
- function Ne() {
3624
- return nn ?? void 0;
3623
+ function Pe() {
3624
+ return rn ?? void 0;
3625
3625
  }
3626
- Tt.subscribe((e) => {
3627
- nn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3626
+ At.subscribe((e) => {
3627
+ rn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3628
3628
  });
3629
3629
  const sa = (e) => {
3630
- if (e && zi(e) && tn(e)) {
3631
- const { loadingDelay: t } = Ze();
3630
+ if (e && zi(e) && nn(e)) {
3631
+ const { loadingDelay: t } = We();
3632
3632
  let n;
3633
- return typeof window < "u" && Ne() != null && t ? n = window.setTimeout(
3634
- () => $t.set(!0),
3633
+ return typeof window < "u" && Pe() != null && t ? n = window.setTimeout(
3634
+ () => jt.set(!0),
3635
3635
  t
3636
- ) : $t.set(!0), mr(e).then(() => {
3637
- Tt.set(e);
3636
+ ) : jt.set(!0), pr(e).then(() => {
3637
+ At.set(e);
3638
3638
  }).finally(() => {
3639
- clearTimeout(n), $t.set(!1);
3639
+ clearTimeout(n), jt.set(!1);
3640
3640
  });
3641
3641
  }
3642
- return Tt.set(e);
3643
- }, He = oa(aa({}, Tt), {
3642
+ return At.set(e);
3643
+ }, Ae = oa(aa({}, At), {
3644
3644
  set: sa
3645
- }), Nt = (e) => {
3645
+ }), It = (e) => {
3646
3646
  const t = /* @__PURE__ */ Object.create(null);
3647
3647
  return (r) => {
3648
3648
  const i = JSON.stringify(r);
3649
3649
  return i in t ? t[i] : t[i] = e(r);
3650
3650
  };
3651
3651
  };
3652
- var la = Object.defineProperty, Bt = Object.getOwnPropertySymbols, gr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, cn = (e, t) => {
3652
+ var la = Object.defineProperty, Ct = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hn = (e, t) => {
3653
3653
  for (var n in t || (t = {}))
3654
- gr.call(t, n) && Bn(e, n, t[n]);
3655
- if (Bt)
3656
- for (var n of Bt(t))
3657
- br.call(t, n) && Bn(e, n, t[n]);
3654
+ mr.call(t, n) && Sn(e, n, t[n]);
3655
+ if (Ct)
3656
+ for (var n of Ct(t))
3657
+ gr.call(t, n) && Sn(e, n, t[n]);
3658
3658
  return e;
3659
- }, Ye = (e, t) => {
3659
+ }, Qe = (e, t) => {
3660
3660
  var n = {};
3661
3661
  for (var r in e)
3662
- gr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3663
- if (e != null && Bt)
3664
- for (var r of Bt(e))
3665
- t.indexOf(r) < 0 && br.call(e, r) && (n[r] = e[r]);
3662
+ mr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3663
+ if (e != null && Ct)
3664
+ for (var r of Ct(e))
3665
+ t.indexOf(r) < 0 && gr.call(e, r) && (n[r] = e[r]);
3666
3666
  return n;
3667
3667
  };
3668
- const st = (e, t) => {
3669
- const { formats: n } = Ze();
3668
+ const at = (e, t) => {
3669
+ const { formats: n } = We();
3670
3670
  if (e in n && t in n[e])
3671
3671
  return n[e][t];
3672
3672
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3673
- }, ua = Nt(
3673
+ }, ua = It(
3674
3674
  (e) => {
3675
- var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
3675
+ var t = e, { locale: n, format: r } = t, i = Qe(t, ["locale", "format"]);
3676
3676
  if (n == null)
3677
3677
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3678
- return r && (i = st("number", r)), new Intl.NumberFormat(n, i);
3678
+ return r && (i = at("number", r)), new Intl.NumberFormat(n, i);
3679
3679
  }
3680
- ), ca = Nt(
3680
+ ), ca = It(
3681
3681
  (e) => {
3682
- var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
3682
+ var t = e, { locale: n, format: r } = t, i = Qe(t, ["locale", "format"]);
3683
3683
  if (n == null)
3684
3684
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3685
- return r ? i = st("date", r) : Object.keys(i).length === 0 && (i = st("date", "short")), new Intl.DateTimeFormat(n, i);
3685
+ return r ? i = at("date", r) : Object.keys(i).length === 0 && (i = at("date", "short")), new Intl.DateTimeFormat(n, i);
3686
3686
  }
3687
- ), ha = Nt(
3687
+ ), ha = It(
3688
3688
  (e) => {
3689
- var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
3689
+ var t = e, { locale: n, format: r } = t, i = Qe(t, ["locale", "format"]);
3690
3690
  if (n == null)
3691
3691
  throw new Error(
3692
3692
  '[svelte-i18n] A "locale" must be set to format time values'
3693
3693
  );
3694
- return r ? i = st("time", r) : Object.keys(i).length === 0 && (i = st("time", "short")), new Intl.DateTimeFormat(n, i);
3694
+ return r ? i = at("time", r) : Object.keys(i).length === 0 && (i = at("time", "short")), new Intl.DateTimeFormat(n, i);
3695
3695
  }
3696
3696
  ), fa = (e = {}) => {
3697
3697
  var t = e, {
3698
- locale: n = Ne()
3699
- } = t, r = Ye(t, [
3698
+ locale: n = Pe()
3699
+ } = t, r = Qe(t, [
3700
3700
  "locale"
3701
3701
  ]);
3702
- return ua(cn({ locale: n }, r));
3702
+ return ua(hn({ locale: n }, r));
3703
3703
  }, da = (e = {}) => {
3704
3704
  var t = e, {
3705
- locale: n = Ne()
3706
- } = t, r = Ye(t, [
3705
+ locale: n = Pe()
3706
+ } = t, r = Qe(t, [
3707
3707
  "locale"
3708
3708
  ]);
3709
- return ca(cn({ locale: n }, r));
3709
+ return ca(hn({ locale: n }, r));
3710
3710
  }, pa = (e = {}) => {
3711
3711
  var t = e, {
3712
- locale: n = Ne()
3713
- } = t, r = Ye(t, [
3712
+ locale: n = Pe()
3713
+ } = t, r = Qe(t, [
3714
3714
  "locale"
3715
3715
  ]);
3716
- return ha(cn({ locale: n }, r));
3717
- }, ma = Nt(
3716
+ return ha(hn({ locale: n }, r));
3717
+ }, ma = It(
3718
3718
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3719
- (e, t = Ne()) => new Gi(e, t, Ze().formats, {
3720
- ignoreTag: Ze().ignoreTag
3719
+ (e, t = Pe()) => new Gi(e, t, We().formats, {
3720
+ ignoreTag: We().ignoreTag
3721
3721
  })
3722
3722
  ), ga = (e, t = {}) => {
3723
3723
  var n, r, i, a;
@@ -3725,49 +3725,49 @@ const st = (e, t) => {
3725
3725
  typeof e == "object" && (o = e, e = o.id);
3726
3726
  const {
3727
3727
  values: u,
3728
- locale: s = Ne(),
3728
+ locale: s = Pe(),
3729
3729
  default: l
3730
3730
  } = o;
3731
3731
  if (s == null)
3732
3732
  throw new Error(
3733
3733
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3734
3734
  );
3735
- let c = hr(e, s);
3735
+ let c = cr(e, s);
3736
3736
  if (!c)
3737
- c = (a = (i = (r = (n = Ze()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: s, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3737
+ c = (a = (i = (r = (n = We()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: s, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3738
3738
  else if (typeof c != "string")
3739
3739
  return console.warn(
3740
3740
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3741
3741
  ), c;
3742
3742
  if (!u)
3743
3743
  return c;
3744
- let f = c;
3744
+ let d = c;
3745
3745
  try {
3746
- f = ma(c, s).format(u);
3746
+ d = ma(c, s).format(u);
3747
3747
  } catch (h) {
3748
3748
  h instanceof Error && console.warn(
3749
3749
  `[svelte-i18n] Message "${e}" has syntax error:`,
3750
3750
  h.message
3751
3751
  );
3752
3752
  }
3753
- return f;
3754
- }, ba = (e, t) => pa(t).format(e), ya = (e, t) => da(t).format(e), va = (e, t) => fa(t).format(e), _a = (e, t = Ne()) => hr(e, t), Ea = Qe([He, Ke], () => ga);
3755
- Qe([He], () => ba);
3756
- Qe([He], () => ya);
3757
- Qe([He], () => va);
3758
- Qe([He, Ke], () => _a);
3753
+ return d;
3754
+ }, ba = (e, t) => pa(t).format(e), ya = (e, t) => da(t).format(e), va = (e, t) => fa(t).format(e), _a = (e, t = Pe()) => cr(e, t), Ea = ze([Ae, Ze], () => ga);
3755
+ ze([Ae], () => ba);
3756
+ ze([Ae], () => ya);
3757
+ ze([Ae], () => va);
3758
+ ze([Ae, Ze], () => _a);
3759
3759
  function xa({ withLocale: e, translations: t }) {
3760
- He.subscribe((n) => {
3761
- n == null && (Ke.set(t), He.set(e));
3760
+ Ae.subscribe((n) => {
3761
+ n == null && (Ze.set(t), Ae.set(e));
3762
3762
  });
3763
3763
  }
3764
- function Sn(e, t) {
3765
- dr(e, t);
3764
+ function Hn(e, t) {
3765
+ fr(e, t);
3766
3766
  }
3767
3767
  function wa(e) {
3768
- He.set(e);
3768
+ Ae.set(e);
3769
3769
  }
3770
- const R = vr(Ea), Hn = {
3770
+ const R = yr(Ea), Pn = {
3771
3771
  en: {
3772
3772
  vaultExchange: "Vault Exchange",
3773
3773
  debitPlaceHolder: "Debit amount",
@@ -4152,29 +4152,31 @@ const R = vr(Ea), Hn = {
4152
4152
  ZWD: "Z$"
4153
4153
  }, Ca = 6e3, Ta = {
4154
4154
  InvalidSession: "Invalid session"
4155
- }, z = {
4155
+ }, K = {
4156
4156
  BalanceError: "BalanceError",
4157
4157
  CheckWalletExchangeError: "CheckWalletExchangeError",
4158
4158
  WalletExchangeError: "WalletExchangeError",
4159
4159
  CurrenciesError: "CurrenciesError"
4160
- }, Pn = {
4160
+ }, In = {
4161
4161
  ResetVaultWidget: "ResetVaultWidget",
4162
4162
  CloseVaultWidget: "CloseVaultWidget"
4163
- }, jt = {
4163
+ }, Xt = {
4164
4164
  VaultWidgetReset: "VaultWidgetReset",
4165
4165
  VaultWidgetClosed: "VaultWidgetClosed",
4166
4166
  VaultDropdownToggled: "VaultDropdownToggled"
4167
- }, In = {
4167
+ }, Ln = {
4168
4168
  Real: "Real",
4169
4169
  Vault: "Vault"
4170
- }, Ce = {
4170
+ }, Ee = {
4171
4171
  success: "success",
4172
4172
  error: "error"
4173
- }, Ba = String(Number.MAX_SAFE_INTEGER) + 1, yt = {
4173
+ }, Ba = String(Number.MAX_SAFE_INTEGER) + 1, gt = {
4174
4174
  ArrowDown: "ArrowDown",
4175
4175
  ArrowUp: "ArrowUp",
4176
4176
  Enter: "Enter",
4177
4177
  Escape: "Escape"
4178
+ }, xe = {
4179
+ true: "true"
4178
4180
  };
4179
4181
  function Sa(e, t) {
4180
4182
  let n;
@@ -4184,7 +4186,7 @@ function Sa(e, t) {
4184
4186
  }, t);
4185
4187
  };
4186
4188
  }
4187
- const Ln = (e, t = null, n = 2) => {
4189
+ const Nn = (e, t = null, n = 2) => {
4188
4190
  try {
4189
4191
  return JSON.stringify(e, t, n);
4190
4192
  } catch (r) {
@@ -4202,50 +4204,50 @@ function Ha(e) {
4202
4204
  };
4203
4205
  }
4204
4206
  function Pa(e) {
4205
- an(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))}");
4207
+ on(e, "svelte-1fe9nk9", ".selectWrapper.svelte-1fe9nk9.svelte-1fe9nk9{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1fe9nk9.svelte-1fe9nk9{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.label.svelte-1fe9nk9.svelte-1fe9nk9{display:flex;align-items:center}.selectDropdown.svelte-1fe9nk9.svelte-1fe9nk9{position:absolute;top:calc(100% + 2px);left:0;right:0;display:flex;flex-direction:column;gap:4px;max-height:200px;overflow-y:auto;scrollbar-width:thin;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1fe9nk9 li.svelte-1fe9nk9{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1fe9nk9 li.svelte-1fe9nk9:hover,.selectDropdown.svelte-1fe9nk9 li.active.svelte-1fe9nk9{background:var(--emw--selected-option, var(--emw-w-color-gray-150, #f0f0f0))}.symbol.svelte-1fe9nk9.svelte-1fe9nk9{display:inline-flex;width:1rem;height:1rem;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw-typography, var(--emw-w-color-gray-450, #595959));font-size:var(--emw--font-size-small, 12px);color:var(--emw--button-typography, var(--emw--color-white, #fff))}");
4206
4208
  }
4207
- function Nn(e, t, n) {
4209
+ function On(e, t, n) {
4208
4210
  const r = e.slice();
4209
4211
  return r[14] = t[n], r[16] = n, r;
4210
4212
  }
4211
- function On(e) {
4213
+ function Rn(e) {
4212
4214
  let t, n = (
4213
4215
  /*selected*/
4214
4216
  (e[0]?.symbol || "") + ""
4215
4217
  ), r;
4216
4218
  return {
4217
4219
  c() {
4218
- t = x("span"), r = W(n), m(t, "class", "symbol svelte-1fe9nk9");
4220
+ t = E("span"), r = z(n), m(t, "class", "symbol svelte-1fe9nk9");
4219
4221
  },
4220
4222
  m(i, a) {
4221
- C(i, t, a), y(t, r);
4223
+ T(i, t, a), y(t, r);
4222
4224
  },
4223
4225
  p(i, a) {
4224
4226
  a & /*selected*/
4225
4227
  1 && n !== (n = /*selected*/
4226
- (i[0]?.symbol || "") + "") && ee(r, n);
4228
+ (i[0]?.symbol || "") + "") && te(r, n);
4227
4229
  },
4228
4230
  d(i) {
4229
- i && A(t);
4231
+ i && C(t);
4230
4232
  }
4231
4233
  };
4232
4234
  }
4233
- function Rn(e) {
4234
- let t, n = At(
4235
+ function kn(e) {
4236
+ let t, n = xt(
4235
4237
  /*options*/
4236
4238
  e[1]
4237
4239
  ), r = [];
4238
4240
  for (let i = 0; i < n.length; i += 1)
4239
- r[i] = kn(Nn(e, n, i));
4241
+ r[i] = Dn(On(e, n, i));
4240
4242
  return {
4241
4243
  c() {
4242
- t = x("ul");
4244
+ t = E("ul");
4243
4245
  for (let i = 0; i < r.length; i += 1)
4244
4246
  r[i].c();
4245
4247
  m(t, "class", "selectDropdown svelte-1fe9nk9");
4246
4248
  },
4247
4249
  m(i, a) {
4248
- C(i, t, a);
4250
+ T(i, t, a);
4249
4251
  for (let o = 0; o < r.length; o += 1)
4250
4252
  r[o] && r[o].m(t, null);
4251
4253
  e[13](t);
@@ -4253,14 +4255,14 @@ function Rn(e) {
4253
4255
  p(i, a) {
4254
4256
  if (a & /*options, selected, activeIndex, handleChange*/
4255
4257
  547) {
4256
- n = At(
4258
+ n = xt(
4257
4259
  /*options*/
4258
4260
  i[1]
4259
4261
  );
4260
4262
  let o;
4261
4263
  for (o = 0; o < n.length; o += 1) {
4262
- const u = Nn(i, n, o);
4263
- r[o] ? r[o].p(u, a) : (r[o] = kn(u), r[o].c(), r[o].m(t, null));
4264
+ const u = On(i, n, o);
4265
+ r[o] ? r[o].p(u, a) : (r[o] = Dn(u), r[o].c(), r[o].m(t, null));
4264
4266
  }
4265
4267
  for (; o < r.length; o += 1)
4266
4268
  r[o].d(1);
@@ -4268,25 +4270,25 @@ function Rn(e) {
4268
4270
  }
4269
4271
  },
4270
4272
  d(i) {
4271
- i && A(t), Xn(r, i), e[13](null);
4273
+ i && C(t), Xn(r, i), e[13](null);
4272
4274
  }
4273
4275
  };
4274
4276
  }
4275
- function kn(e) {
4277
+ function Dn(e) {
4276
4278
  let t, n, r = (
4277
4279
  /*option*/
4278
4280
  e[14]?.symbol + ""
4279
4281
  ), i, a, o = (
4280
4282
  /*option*/
4281
4283
  e[14]?.currency + ""
4282
- ), u, s, l, c, f;
4284
+ ), u, s, l, c, d;
4283
4285
  return {
4284
4286
  c() {
4285
- t = x("li"), n = x("span"), i = W(r), a = P(), u = W(o), s = P(), m(n, "class", "symbol svelte-1fe9nk9"), m(t, "role", "option"), m(t, "aria-selected", l = /*option*/
4287
+ t = E("li"), n = E("span"), i = z(r), a = I(), u = z(o), s = I(), m(n, "class", "symbol svelte-1fe9nk9"), m(t, "role", "option"), m(t, "aria-selected", l = /*option*/
4286
4288
  e[14]?.currency === /*selected*/
4287
4289
  e[0]?.currency || /*index*/
4288
4290
  e[16] === /*activeIndex*/
4289
- e[5]), m(t, "class", "svelte-1fe9nk9"), oe(
4291
+ e[5]), m(t, "class", "svelte-1fe9nk9"), le(
4290
4292
  t,
4291
4293
  "active",
4292
4294
  /*option*/
@@ -4296,11 +4298,11 @@ function kn(e) {
4296
4298
  e[5]
4297
4299
  );
4298
4300
  },
4299
- m(h, d) {
4300
- C(h, t, d), y(t, n), y(n, i), y(t, a), y(t, u), y(t, s), c || (f = [
4301
- re(t, "keydown", La),
4302
- re(t, "click", function() {
4303
- lt(
4301
+ m(h, p) {
4302
+ T(h, t, p), y(t, n), y(n, i), y(t, a), y(t, u), y(t, s), c || (d = [
4303
+ ie(t, "keydown", La),
4304
+ ie(t, "click", function() {
4305
+ ot(
4304
4306
  /*handleChange*/
4305
4307
  e[9](
4306
4308
  /*option*/
@@ -4317,18 +4319,18 @@ function kn(e) {
4317
4319
  })
4318
4320
  ], c = !0);
4319
4321
  },
4320
- p(h, d) {
4321
- e = h, d & /*options*/
4322
+ p(h, p) {
4323
+ e = h, p & /*options*/
4322
4324
  2 && r !== (r = /*option*/
4323
- e[14]?.symbol + "") && ee(i, r), d & /*options*/
4325
+ e[14]?.symbol + "") && te(i, r), p & /*options*/
4324
4326
  2 && o !== (o = /*option*/
4325
- e[14]?.currency + "") && ee(u, o), d & /*options, selected, activeIndex*/
4327
+ e[14]?.currency + "") && te(u, o), p & /*options, selected, activeIndex*/
4326
4328
  35 && l !== (l = /*option*/
4327
4329
  e[14]?.currency === /*selected*/
4328
4330
  e[0]?.currency || /*index*/
4329
4331
  e[16] === /*activeIndex*/
4330
- e[5]) && m(t, "aria-selected", l), d & /*options, selected, activeIndex*/
4331
- 35 && oe(
4332
+ e[5]) && m(t, "aria-selected", l), p & /*options, selected, activeIndex*/
4333
+ 35 && le(
4332
4334
  t,
4333
4335
  "active",
4334
4336
  /*option*/
@@ -4339,7 +4341,7 @@ function kn(e) {
4339
4341
  );
4340
4342
  },
4341
4343
  d(h) {
4342
- h && A(t), c = !1, _e(f);
4344
+ h && C(t), c = !1, ve(d);
4343
4345
  }
4344
4346
  };
4345
4347
  }
@@ -4348,17 +4350,17 @@ function Ia(e) {
4348
4350
  /*selected*/
4349
4351
  (e[0]?.currency || /*placeholder*/
4350
4352
  e[2]) + ""
4351
- ), o, u, s, l, c, f, h = (
4353
+ ), o, u, s, l, c, d, h = (
4352
4354
  /*selected*/
4353
4355
  e[0]?.symbol && /*withSymbol*/
4354
- e[4] && On(e)
4355
- ), d = (
4356
+ e[3] === xe.true && Rn(e)
4357
+ ), p = (
4356
4358
  /*open*/
4357
- e[7] && Rn(e)
4359
+ e[7] && kn(e)
4358
4360
  );
4359
4361
  return {
4360
4362
  c() {
4361
- t = x("div"), n = x("button"), r = x("span"), h && h.c(), i = P(), o = W(a), u = P(), s = x("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>', l = P(), d && d.c(), m(r, "class", "label svelte-1fe9nk9"), m(s, "class", "arrow"), oe(
4363
+ t = E("div"), n = E("button"), r = E("span"), h && h.c(), i = I(), o = z(a), u = I(), s = E("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>', l = I(), p && p.c(), m(r, "class", "label svelte-1fe9nk9"), m(s, "class", "arrow"), le(
4362
4364
  s,
4363
4365
  "open",
4364
4366
  /*open*/
@@ -4369,22 +4371,22 @@ function Ia(e) {
4369
4371
  /*open*/
4370
4372
  e[7]
4371
4373
  ), m(n, "aria-controls", "custom-select"), m(n, "tabindex", "0"), n.disabled = /*disabled*/
4372
- e[3], m(t, "class", "selectWrapper svelte-1fe9nk9");
4374
+ e[4], m(t, "class", "selectWrapper svelte-1fe9nk9");
4373
4375
  },
4374
4376
  m(v, b) {
4375
- C(v, t, b), y(t, n), y(n, r), h && h.m(r, null), y(r, i), y(r, o), y(n, u), y(n, s), y(t, l), d && d.m(t, null), c || (f = [
4376
- re(
4377
+ T(v, t, b), y(t, n), y(n, r), h && h.m(r, null), y(r, i), y(r, o), y(n, u), y(n, s), y(t, l), p && p.m(t, null), c || (d = [
4378
+ ie(
4377
4379
  n,
4378
4380
  "keydown",
4379
4381
  /*handleKeyDown*/
4380
4382
  e[11]
4381
4383
  ),
4382
- re(n, "click", wr(
4384
+ ie(n, "click", wr(
4383
4385
  /*handleToggleDropdown*/
4384
4386
  e[8]
4385
4387
  )),
4386
- _r(Ha.call(null, t)),
4387
- re(
4388
+ vr(Ha.call(null, t)),
4389
+ ie(
4388
4390
  t,
4389
4391
  "outclick",
4390
4392
  /*handleOutClick*/
@@ -4395,11 +4397,11 @@ function Ia(e) {
4395
4397
  p(v, [b]) {
4396
4398
  /*selected*/
4397
4399
  v[0]?.symbol && /*withSymbol*/
4398
- v[4] ? h ? h.p(v, b) : (h = On(v), h.c(), h.m(r, i)) : h && (h.d(1), h = null), b & /*selected, placeholder*/
4400
+ v[3] === xe.true ? h ? h.p(v, b) : (h = Rn(v), h.c(), h.m(r, i)) : h && (h.d(1), h = null), b & /*selected, placeholder*/
4399
4401
  5 && a !== (a = /*selected*/
4400
4402
  (v[0]?.currency || /*placeholder*/
4401
- v[2]) + "") && ee(o, a), b & /*open*/
4402
- 128 && oe(
4403
+ v[2]) + "") && te(o, a), b & /*open*/
4404
+ 128 && le(
4403
4405
  s,
4404
4406
  "open",
4405
4407
  /*open*/
@@ -4411,37 +4413,37 @@ function Ia(e) {
4411
4413
  /*open*/
4412
4414
  v[7]
4413
4415
  ), b & /*disabled*/
4414
- 8 && (n.disabled = /*disabled*/
4415
- v[3]), /*open*/
4416
- v[7] ? d ? d.p(v, b) : (d = Rn(v), d.c(), d.m(t, null)) : d && (d.d(1), d = null);
4416
+ 16 && (n.disabled = /*disabled*/
4417
+ v[4]), /*open*/
4418
+ v[7] ? p ? p.p(v, b) : (p = kn(v), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
4417
4419
  },
4418
- i: B,
4419
- o: B,
4420
+ i: S,
4421
+ o: S,
4420
4422
  d(v) {
4421
- v && A(t), h && h.d(), d && d.d(), c = !1, _e(f);
4423
+ v && C(t), h && h.d(), p && p.d(), c = !1, ve(d);
4422
4424
  }
4423
4425
  };
4424
4426
  }
4425
4427
  const La = (e) => e.preventDefault();
4426
4428
  function Na(e, t, n) {
4427
- let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = R("select") } = t, { disabled: o = !1 } = t, { withSymbol: u = !0 } = t, { onChange: s = () => {
4428
- } } = t, l = -1, c, f = !1;
4429
+ let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = R("select") } = t, { withSymbol: o = "true" } = t, { disabled: u = !1 } = t, { onChange: s = () => {
4430
+ } } = t, l = -1, c, d = !1;
4429
4431
  const h = () => {
4430
- r.length !== 0 && (n(7, f = !f), f && (n(5, l = r.findIndex((E) => E?.currency === i?.currency)), setTimeout(() => c?.focus(), 0)));
4431
- }, d = (E, O) => () => {
4432
- n(7, f = !1), n(0, i = E), s && typeof s == "function" && s(E, O);
4432
+ r.length !== 0 && (n(7, d = !d), d && (n(5, l = r.findIndex((_) => _?.currency === i?.currency)), setTimeout(() => c?.focus(), 0)));
4433
+ }, p = (_, O) => () => {
4434
+ n(7, d = !1), n(0, i = _), s && typeof s == "function" && s(_, O);
4433
4435
  }, v = () => {
4434
- n(7, f = !1);
4435
- }, b = (E) => {
4436
- f && (E.key === yt.ArrowDown ? (E.preventDefault(), n(5, l = (l + 1) % r.length)) : E.key === yt.ArrowUp ? (E.preventDefault(), n(5, l = (l - 1 + r.length) % r.length)) : E.key === yt.Enter ? (E.preventDefault(), d(i, l)()) : E.key === yt.Escape && n(7, f = !1));
4436
+ n(7, d = !1);
4437
+ }, b = (_) => {
4438
+ d && (_.key === gt.ArrowDown ? (_.preventDefault(), n(5, l = (l + 1) % r.length)) : _.key === gt.ArrowUp ? (_.preventDefault(), n(5, l = (l - 1 + r.length) % r.length)) : _.key === gt.Enter ? (_.preventDefault(), p(i, l)()) : _.key === gt.Escape && n(7, d = !1));
4437
4439
  };
4438
- function L(E) {
4439
- Ge[E ? "unshift" : "push"](() => {
4440
- c = E, n(6, c);
4440
+ function N(_) {
4441
+ Ue[_ ? "unshift" : "push"](() => {
4442
+ c = _, n(6, c);
4441
4443
  });
4442
4444
  }
4443
- return e.$$set = (E) => {
4444
- "options" in E && n(1, r = E.options), "selected" in E && n(0, i = E.selected), "placeholder" in E && n(2, a = E.placeholder), "disabled" in E && n(3, o = E.disabled), "withSymbol" in E && n(4, u = E.withSymbol), "onChange" in E && n(12, s = E.onChange);
4445
+ return e.$$set = (_) => {
4446
+ "options" in _ && n(1, r = _.options), "selected" in _ && n(0, i = _.selected), "placeholder" in _ && n(2, a = _.placeholder), "withSymbol" in _ && n(3, o = _.withSymbol), "disabled" in _ && n(4, u = _.disabled), "onChange" in _ && n(12, s = _.onChange);
4445
4447
  }, [
4446
4448
  i,
4447
4449
  r,
@@ -4450,29 +4452,29 @@ function Na(e, t, n) {
4450
4452
  u,
4451
4453
  l,
4452
4454
  c,
4453
- f,
4454
- h,
4455
4455
  d,
4456
+ h,
4457
+ p,
4456
4458
  v,
4457
4459
  b,
4458
4460
  s,
4459
- L
4461
+ N
4460
4462
  ];
4461
4463
  }
4462
- class rn extends ln {
4464
+ class an extends un {
4463
4465
  constructor(t) {
4464
- super(), on(
4466
+ super(), sn(
4465
4467
  this,
4466
4468
  t,
4467
4469
  Na,
4468
4470
  Ia,
4469
- St,
4471
+ Tt,
4470
4472
  {
4471
4473
  options: 1,
4472
4474
  selected: 0,
4473
4475
  placeholder: 2,
4474
- disabled: 3,
4475
- withSymbol: 4,
4476
+ withSymbol: 3,
4477
+ disabled: 4,
4476
4478
  onChange: 12
4477
4479
  },
4478
4480
  Pa
@@ -4482,363 +4484,90 @@ class rn extends ln {
4482
4484
  return this.$$.ctx[1];
4483
4485
  }
4484
4486
  set options(t) {
4485
- this.$$set({ options: t }), j();
4487
+ this.$$set({ options: t }), G();
4486
4488
  }
4487
4489
  get selected() {
4488
4490
  return this.$$.ctx[0];
4489
4491
  }
4490
4492
  set selected(t) {
4491
- this.$$set({ selected: t }), j();
4493
+ this.$$set({ selected: t }), G();
4492
4494
  }
4493
4495
  get placeholder() {
4494
4496
  return this.$$.ctx[2];
4495
4497
  }
4496
4498
  set placeholder(t) {
4497
- this.$$set({ placeholder: t }), j();
4499
+ this.$$set({ placeholder: t }), G();
4498
4500
  }
4499
- get disabled() {
4501
+ get withSymbol() {
4500
4502
  return this.$$.ctx[3];
4501
4503
  }
4502
- set disabled(t) {
4503
- this.$$set({ disabled: t }), j();
4504
+ set withSymbol(t) {
4505
+ this.$$set({ withSymbol: t }), G();
4504
4506
  }
4505
- get withSymbol() {
4507
+ get disabled() {
4506
4508
  return this.$$.ctx[4];
4507
4509
  }
4508
- set withSymbol(t) {
4509
- this.$$set({ withSymbol: t }), j();
4510
+ set disabled(t) {
4511
+ this.$$set({ disabled: t }), G();
4510
4512
  }
4511
4513
  get onChange() {
4512
4514
  return this.$$.ctx[12];
4513
4515
  }
4514
4516
  set onChange(t) {
4515
- this.$$set({ onChange: t }), j();
4517
+ this.$$set({ onChange: t }), G();
4516
4518
  }
4517
4519
  }
4518
- sn(rn, { options: {}, selected: {}, placeholder: {}, disabled: { type: "Boolean" }, withSymbol: { type: "Boolean" }, onChange: {} }, [], [], !0);
4520
+ ln(an, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
4519
4521
  function Oa(e) {
4520
- an(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
4522
+ on(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
4521
4523
  }
4522
4524
  function Ra(e) {
4523
4525
  let t, n, r = R("balanceUnavailable") + "", i;
4524
4526
  return {
4525
4527
  c() {
4526
- t = x("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 = P(), i = W(r), m(t, "class", "warningIcon svelte-2fhtvy");
4528
+ t = E("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n = I(), i = z(r), m(t, "class", "warningIcon svelte-2fhtvy");
4527
4529
  },
4528
4530
  m(a, o) {
4529
- C(a, t, o), C(a, n, o), C(a, i, o);
4531
+ T(a, t, o), T(a, n, o), T(a, i, o);
4530
4532
  },
4531
- p: B,
4532
- i: B,
4533
- o: B,
4533
+ p: S,
4534
+ i: S,
4535
+ o: S,
4534
4536
  d(a) {
4535
- a && (A(t), A(n), A(i));
4537
+ a && (C(t), C(n), C(i));
4536
4538
  }
4537
4539
  };
4538
4540
  }
4539
- class Ot extends ln {
4541
+ class Lt extends un {
4540
4542
  constructor(t) {
4541
- super(), on(this, t, null, Ra, St, {}, Oa);
4543
+ super(), sn(this, t, null, Ra, Tt, {}, Oa);
4542
4544
  }
4543
4545
  }
4544
- sn(Ot, {}, [], [], !0);
4546
+ ln(Lt, {}, [], [], !0);
4545
4547
  function ka(e) {
4546
- an(e, "svelte-vp2pzr", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, var(--emw--color-gray-450, #595959));padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, var(--emw--color-red, #FF2424))}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, var(--emw--color-primary, #24B04F))}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--typography, var(--emw--color-gray-450, #595959));border:2px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, var(--emw--color-gray-450, #595959))}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, var(--emw--color-gray-450, #595959))}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
4548
+ on(e, "svelte-vp2pzr", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, var(--emw--color-gray-450, #595959));padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, var(--emw--color-red, #FF2424))}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, var(--emw--color-primary, #24B04F))}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--typography, var(--emw--color-gray-450, #595959));border:2px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, var(--emw--color-gray-450, #595959))}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, var(--emw--color-gray-450, #595959))}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
4547
4549
  }
4548
- function Dn(e, t, n) {
4550
+ function Mn(e, t, n) {
4549
4551
  const r = e.slice();
4550
- return r[61] = t[n], r;
4551
- }
4552
- function Mn(e) {
4553
- let t, n, r, i, a, o, u, s, l, c, f, h, d, v, b, L, E, O, I, ie, F, te, ae, se, X, he, Oe, le, fe, Ee, Z, Y, de, Je, xe, Re, ut, ke, qe, ne, we = R(
4554
- /*fetchResponse*/
4555
- e[12]?.message || ""
4556
- ) + "", Pe, ge, be, De, J, Ae = R("exchange") + "", ct, ye, q, et, tt, Q = (
4557
- /*showclosebutton*/
4558
- e[3] && Fn(e)
4559
- ), V = (
4560
- /*showtotalbalance*/
4561
- e[2] && Un(e)
4562
- );
4563
- function Rt(g) {
4564
- e[39](g);
4565
- }
4566
- let ht = {
4567
- withSymbol: (
4568
- /*showcurrencysymbol*/
4569
- e[4]
4570
- ),
4571
- disabled: !/*isBalanceFetched*/
4572
- e[16] || !/*isCurrenciesFetched*/
4573
- e[17],
4574
- options: (
4575
- /*optionsFrom*/
4576
- e[21]
4577
- ),
4578
- onChange: (
4579
- /*checkWalletExchangeDebounced*/
4580
- e[26]
4581
- )
4582
- };
4583
- /*selectedCurrencyFrom*/
4584
- e[5] !== void 0 && (ht.selected = /*selectedCurrencyFrom*/
4585
- e[5]), b = new rn({ props: ht }), Ge.push(() => pn(b, "selected", Rt));
4586
- const ft = [Ga, Va], ue = [];
4587
- function dt(g, S) {
4588
- return !/*isBalanceFetched*/
4589
- g[16] || !/*isCurrenciesFetched*/
4590
- g[17] ? 0 : 1;
4591
- }
4592
- O = dt(e), I = ue[O] = ft[O](e);
4593
- function kt(g) {
4594
- e[41](g);
4595
- }
4596
- let pt = {
4597
- withSymbol: (
4598
- /*showcurrencysymbol*/
4599
- e[4]
4600
- ),
4601
- disabled: !/*session*/
4602
- e[0] || !!/*validationError*/
4603
- e[13] || !/*isBalanceFetched*/
4604
- e[16] || !/*isCurrenciesFetched*/
4605
- e[17],
4606
- options: (
4607
- /*optionsTo*/
4608
- e[22]
4609
- ),
4610
- onChange: (
4611
- /*checkWalletExchangeDebounced*/
4612
- e[26]
4613
- )
4614
- };
4615
- /*selectedCurrencyTo*/
4616
- e[6] !== void 0 && (pt.selected = /*selectedCurrencyTo*/
4617
- e[6]), le = new rn({ props: pt }), Ge.push(() => pn(le, "selected", kt));
4618
- const mt = [Wa, Xa], pe = [];
4619
- function p(g, S) {
4620
- return !/*isBalanceFetched*/
4621
- g[16] || !/*isCurrenciesFetched*/
4622
- g[17] ? 0 : 1;
4623
- }
4624
- Z = p(e), Y = pe[Z] = mt[Z](e);
4625
- let _ = (
4626
- /*showvaults*/
4627
- e[1] && Vn(e)
4628
- );
4629
- function N(g, S) {
4630
- return (
4631
- /*fetchResponse*/
4632
- g[12]?.source === z.CheckWalletExchangeError ? Ka : Qa
4633
- );
4634
- }
4635
- let w = N(e), k = w(e);
4636
- return {
4637
- c() {
4638
- t = x("div"), Q && Q.c(), n = P(), r = x("div"), i = x("h1"), i.textContent = `${R("vaultExchange")}`, a = P(), V && V.c(), o = P(), u = x("div"), s = x("div"), l = x("p"), l.textContent = `${R("exchangeFrom")}`, c = P(), f = x("div"), h = x("input"), v = P(), at(b.$$.fragment), E = P(), I.c(), ie = P(), F = x("div"), te = x("p"), te.textContent = `${R("exchangeTo")}`, ae = P(), se = x("div"), X = x("input"), Oe = P(), at(le.$$.fragment), Ee = P(), Y.c(), de = P(), _ && _.c(), Je = P(), xe = x("div"), Re = x("span"), Re.textContent = `${R("feesIncluded")}`, ut = P(), ke = x("span"), k.c(), qe = P(), ne = x("div"), Pe = P(), ge = x("div"), be = x("button"), be.textContent = `${R("reset")}`, De = P(), J = x("button"), ct = W(Ae), m(i, "class", "headerTitle"), m(r, "class", "headerContainer"), m(l, "class", "exchangeHeader"), m(h, "id", "senderInput"), h.disabled = d = !/*session*/
4639
- e[0] || !/*isBalanceFetched*/
4640
- e[16] || !/*isCurrenciesFetched*/
4641
- e[17], m(h, "placeholder", R("debitPlaceHolder")), m(h, "class", "exchangeInput"), m(h, "type", "number"), m(h, "aria-label", "Enter exchange amount"), m(h, "inputmode", "decimal"), m(h, "step", "0.000000000000000001"), m(h, "min", "0"), m(f, "class", "flexingContainerRow"), m(s, "class", "containerExchangeFrom exchangeContainer"), m(te, "class", "exchangeHeader"), m(X, "id", "destinationInput"), X.disabled = he = !/*session*/
4642
- e[0] || !/*isBalanceFetched*/
4643
- e[16] || !/*isCurrenciesFetched*/
4644
- e[17], m(X, "placeholder", R("creditPlaceHolder")), m(X, "class", "exchangeInput"), m(X, "type", "number"), X.readOnly = !0, m(X, "min", "0"), m(se, "class", "flexingContainerRow"), m(F, "class", "containerExchangeTo exchangeContainer"), m(u, "class", "exchangesContainer"), m(Re, "class", "feesLabel"), m(xe, "class", "feesContainer"), m(ne, "class", "notificationsContainer"), oe(
4645
- ne,
4646
- "error",
4647
- /*fetchResponse*/
4648
- e[12]?.type === "error"
4649
- ), oe(
4650
- ne,
4651
- "success",
4652
- /*fetchResponse*/
4653
- e[12]?.type === "success"
4654
- ), m(be, "class", "resetButton"), m(be, "type", "button"), m(J, "type", "button"), m(J, "class", "exchangeButton"), J.disabled = ye = /*isExchangeDisabled*/
4655
- e[14] || /*isExchangePending*/
4656
- e[18] || /*inputExchangeFrom*/
4657
- e[8] === 0 && !/*selectedCurrencyFrom*/
4658
- e[5]?.amount, oe(
4659
- J,
4660
- "disabled",
4661
- /*isExchangeDisabled*/
4662
- e[14] || /*isExchangePending*/
4663
- e[18]
4664
- ), oe(
4665
- J,
4666
- "pending",
4667
- /*isExchangePending*/
4668
- e[18]
4669
- ), m(ge, "class", "actionsContainer"), m(t, "class", "playerAccountVault");
4670
- },
4671
- m(g, S) {
4672
- C(g, t, S), Q && Q.m(t, null), y(t, n), y(t, r), y(r, i), y(r, a), V && V.m(r, null), y(t, o), y(t, u), y(u, s), y(s, l), y(s, c), y(s, f), y(f, h), gt(
4673
- h,
4674
- /*inputExchangeFrom*/
4675
- e[8]
4676
- ), y(f, v), $e(b, f, null), y(s, E), ue[O].m(s, null), y(u, ie), y(u, F), y(F, te), y(F, ae), y(F, se), y(se, X), gt(
4677
- X,
4678
- /*inputExchangeTo*/
4679
- e[9]
4680
- ), y(se, Oe), $e(le, se, null), y(F, Ee), pe[Z].m(F, null), y(t, de), _ && _.m(t, null), y(t, Je), y(t, xe), y(xe, Re), y(xe, ut), y(xe, ke), k.m(ke, null), y(t, qe), y(t, ne), ne.innerHTML = we, y(t, Pe), y(t, ge), y(ge, be), y(ge, De), y(ge, J), y(J, ct), e[42](t), q = !0, et || (tt = [
4681
- re(
4682
- h,
4683
- "input",
4684
- /*input0_input_handler*/
4685
- e[38]
4686
- ),
4687
- re(
4688
- h,
4689
- "input",
4690
- /*handleInputChange*/
4691
- e[27]
4692
- ),
4693
- re(
4694
- h,
4695
- "beforeinput",
4696
- /*handleBeforeInput*/
4697
- e[28]
4698
- ),
4699
- re(
4700
- X,
4701
- "input",
4702
- /*input1_input_handler*/
4703
- e[40]
4704
- ),
4705
- re(
4706
- be,
4707
- "click",
4708
- /*handleResetToDefault*/
4709
- e[25]
4710
- ),
4711
- re(
4712
- J,
4713
- "click",
4714
- /*handleExchange*/
4715
- e[29]
4716
- )
4717
- ], et = !0);
4718
- },
4719
- p(g, S) {
4720
- /*showclosebutton*/
4721
- g[3] ? Q ? Q.p(g, S) : (Q = Fn(g), Q.c(), Q.m(t, n)) : Q && (Q.d(1), Q = null), /*showtotalbalance*/
4722
- g[2] ? V ? (V.p(g, S), S[0] & /*showtotalbalance*/
4723
- 4 && M(V, 1)) : (V = Un(g), V.c(), M(V, 1), V.m(r, null)) : V && (Be(), G(V, 1, 1, () => {
4724
- V = null;
4725
- }), Se()), (!q || S[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
4726
- 196609 && d !== (d = !/*session*/
4727
- g[0] || !/*isBalanceFetched*/
4728
- g[16] || !/*isCurrenciesFetched*/
4729
- g[17])) && (h.disabled = d), S[0] & /*inputExchangeFrom*/
4730
- 256 && wt(h.value) !== /*inputExchangeFrom*/
4731
- g[8] && gt(
4732
- h,
4733
- /*inputExchangeFrom*/
4734
- g[8]
4735
- );
4736
- const Ie = {};
4737
- S[0] & /*showcurrencysymbol*/
4738
- 16 && (Ie.withSymbol = /*showcurrencysymbol*/
4739
- g[4]), S[0] & /*isBalanceFetched, isCurrenciesFetched*/
4740
- 196608 && (Ie.disabled = !/*isBalanceFetched*/
4741
- g[16] || !/*isCurrenciesFetched*/
4742
- g[17]), S[0] & /*optionsFrom*/
4743
- 2097152 && (Ie.options = /*optionsFrom*/
4744
- g[21]), !L && S[0] & /*selectedCurrencyFrom*/
4745
- 32 && (L = !0, Ie.selected = /*selectedCurrencyFrom*/
4746
- g[5], dn(() => L = !1)), b.$set(Ie);
4747
- let $ = O;
4748
- O = dt(g), O === $ ? ue[O].p(g, S) : (Be(), G(ue[$], 1, 1, () => {
4749
- ue[$] = null;
4750
- }), Se(), I = ue[O], I ? I.p(g, S) : (I = ue[O] = ft[O](g), I.c()), M(I, 1), I.m(s, null)), (!q || S[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
4751
- 196609 && he !== (he = !/*session*/
4752
- g[0] || !/*isBalanceFetched*/
4753
- g[16] || !/*isCurrenciesFetched*/
4754
- g[17])) && (X.disabled = he), S[0] & /*inputExchangeTo*/
4755
- 512 && wt(X.value) !== /*inputExchangeTo*/
4756
- g[9] && gt(
4757
- X,
4758
- /*inputExchangeTo*/
4759
- g[9]
4760
- );
4761
- const ce = {};
4762
- S[0] & /*showcurrencysymbol*/
4763
- 16 && (ce.withSymbol = /*showcurrencysymbol*/
4764
- g[4]), S[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
4765
- 204801 && (ce.disabled = !/*session*/
4766
- g[0] || !!/*validationError*/
4767
- g[13] || !/*isBalanceFetched*/
4768
- g[16] || !/*isCurrenciesFetched*/
4769
- g[17]), S[0] & /*optionsTo*/
4770
- 4194304 && (ce.options = /*optionsTo*/
4771
- g[22]), !fe && S[0] & /*selectedCurrencyTo*/
4772
- 64 && (fe = !0, ce.selected = /*selectedCurrencyTo*/
4773
- g[6], dn(() => fe = !1)), le.$set(ce);
4774
- let ve = Z;
4775
- Z = p(g), Z === ve ? pe[Z].p(g, S) : (Be(), G(pe[ve], 1, 1, () => {
4776
- pe[ve] = null;
4777
- }), Se(), Y = pe[Z], Y ? Y.p(g, S) : (Y = pe[Z] = mt[Z](g), Y.c()), M(Y, 1), Y.m(F, null)), /*showvaults*/
4778
- g[1] ? _ ? _.p(g, S) : (_ = Vn(g), _.c(), _.m(t, Je)) : _ && (_.d(1), _ = null), w === (w = N(g)) && k ? k.p(g, S) : (k.d(1), k = w(g), k && (k.c(), k.m(ke, null))), (!q || S[0] & /*fetchResponse*/
4779
- 4096) && we !== (we = R(
4780
- /*fetchResponse*/
4781
- g[12]?.message || ""
4782
- ) + "") && (ne.innerHTML = we), (!q || S[0] & /*fetchResponse*/
4783
- 4096) && oe(
4784
- ne,
4785
- "error",
4786
- /*fetchResponse*/
4787
- g[12]?.type === "error"
4788
- ), (!q || S[0] & /*fetchResponse*/
4789
- 4096) && oe(
4790
- ne,
4791
- "success",
4792
- /*fetchResponse*/
4793
- g[12]?.type === "success"
4794
- ), (!q || S[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
4795
- 278816 && ye !== (ye = /*isExchangeDisabled*/
4796
- g[14] || /*isExchangePending*/
4797
- g[18] || /*inputExchangeFrom*/
4798
- g[8] === 0 && !/*selectedCurrencyFrom*/
4799
- g[5]?.amount)) && (J.disabled = ye), (!q || S[0] & /*isExchangeDisabled, isExchangePending*/
4800
- 278528) && oe(
4801
- J,
4802
- "disabled",
4803
- /*isExchangeDisabled*/
4804
- g[14] || /*isExchangePending*/
4805
- g[18]
4806
- ), (!q || S[0] & /*isExchangePending*/
4807
- 262144) && oe(
4808
- J,
4809
- "pending",
4810
- /*isExchangePending*/
4811
- g[18]
4812
- );
4813
- },
4814
- i(g) {
4815
- q || (M(V), M(b.$$.fragment, g), M(I), M(le.$$.fragment, g), M(Y), q = !0);
4816
- },
4817
- o(g) {
4818
- G(V), G(b.$$.fragment, g), G(I), G(le.$$.fragment, g), G(Y), q = !1;
4819
- },
4820
- d(g) {
4821
- g && A(t), Q && Q.d(), V && V.d(), je(b), ue[O].d(), je(le), pe[Z].d(), _ && _.d(), k.d(), e[42](null), et = !1, _e(tt);
4822
- }
4823
- };
4552
+ return r[60] = t[n], r;
4824
4553
  }
4825
4554
  function Fn(e) {
4826
4555
  let t, n, r;
4827
4556
  return {
4828
4557
  c() {
4829
- t = x("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>', m(t, "type", "button"), m(t, "class", "closeButton");
4558
+ t = E("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>', m(t, "type", "button"), m(t, "class", "closeButton");
4830
4559
  },
4831
4560
  m(i, a) {
4832
- C(i, t, a), n || (r = re(
4561
+ T(i, t, a), n || (r = ie(
4833
4562
  t,
4834
4563
  "click",
4835
4564
  /*handleCloseWidget*/
4836
- e[24]
4565
+ e[23]
4837
4566
  ), n = !0);
4838
4567
  },
4839
- p: B,
4568
+ p: S,
4840
4569
  d(i) {
4841
- i && A(t), n = !1, r();
4570
+ i && C(t), n = !1, r();
4842
4571
  }
4843
4572
  };
4844
4573
  }
@@ -4852,25 +4581,25 @@ function Un(e) {
4852
4581
  }
4853
4582
  return t = u(e), n = o[t] = a[t](e), {
4854
4583
  c() {
4855
- n.c(), r = Wn();
4584
+ n.c(), r = xr();
4856
4585
  },
4857
4586
  m(s, l) {
4858
- o[t].m(s, l), C(s, r, l), i = !0;
4587
+ o[t].m(s, l), T(s, r, l), i = !0;
4859
4588
  },
4860
4589
  p(s, l) {
4861
4590
  let c = t;
4862
- t = u(s), t === c ? o[t].p(s, l) : (Be(), G(o[c], 1, 1, () => {
4591
+ t = u(s), t === c ? o[t].p(s, l) : (Se(), W(o[c], 1, 1, () => {
4863
4592
  o[c] = null;
4864
- }), Se(), n = o[t], n ? n.p(s, l) : (n = o[t] = a[t](s), n.c()), M(n, 1), n.m(r.parentNode, r));
4593
+ }), He(), n = o[t], n ? n.p(s, l) : (n = o[t] = a[t](s), n.c()), U(n, 1), n.m(r.parentNode, r));
4865
4594
  },
4866
4595
  i(s) {
4867
- i || (M(n), i = !0);
4596
+ i || (U(n), i = !0);
4868
4597
  },
4869
4598
  o(s) {
4870
- G(n), i = !1;
4599
+ W(n), i = !1;
4871
4600
  },
4872
4601
  d(s) {
4873
- s && A(r), o[t].d(s);
4602
+ s && C(r), o[t].d(s);
4874
4603
  }
4875
4604
  };
4876
4605
  }
@@ -4880,30 +4609,30 @@ function Da(e) {
4880
4609
  function u(s, l) {
4881
4610
  return (
4882
4611
  /*fetchResponse*/
4883
- s[12]?.source === z.BalanceError ? 0 : 1
4612
+ s[12]?.source === K.BalanceError ? 0 : 1
4884
4613
  );
4885
4614
  }
4886
4615
  return n = u(e), r = o[n] = a[n](e), {
4887
4616
  c() {
4888
- t = x("div"), r.c(), m(t, "class", "headerPlayerBalance amountContainer");
4617
+ t = E("div"), r.c(), m(t, "class", "headerPlayerBalance amountContainer");
4889
4618
  },
4890
4619
  m(s, l) {
4891
- C(s, t, l), o[n].m(t, null), i = !0;
4620
+ T(s, t, l), o[n].m(t, null), i = !0;
4892
4621
  },
4893
4622
  p(s, l) {
4894
4623
  let c = n;
4895
- n = u(s), n === c ? o[n].p(s, l) : (Be(), G(o[c], 1, 1, () => {
4624
+ n = u(s), n === c ? o[n].p(s, l) : (Se(), W(o[c], 1, 1, () => {
4896
4625
  o[c] = null;
4897
- }), Se(), r = o[n], r ? r.p(s, l) : (r = o[n] = a[n](s), r.c()), M(r, 1), r.m(t, null));
4626
+ }), He(), r = o[n], r ? r.p(s, l) : (r = o[n] = a[n](s), r.c()), U(r, 1), r.m(t, null));
4898
4627
  },
4899
4628
  i(s) {
4900
- i || (M(r), i = !0);
4629
+ i || (U(r), i = !0);
4901
4630
  },
4902
4631
  o(s) {
4903
- G(r), i = !1;
4632
+ W(r), i = !1;
4904
4633
  },
4905
4634
  d(s) {
4906
- s && A(t), o[n].d();
4635
+ s && C(t), o[n].d();
4907
4636
  }
4908
4637
  };
4909
4638
  }
@@ -4911,16 +4640,16 @@ function Ma(e) {
4911
4640
  let t;
4912
4641
  return {
4913
4642
  c() {
4914
- t = x("div"), m(t, "class", "skeleton");
4643
+ t = E("div"), m(t, "class", "skeleton");
4915
4644
  },
4916
4645
  m(n, r) {
4917
- C(n, t, r);
4646
+ T(n, t, r);
4918
4647
  },
4919
- p: B,
4920
- i: B,
4921
- o: B,
4648
+ p: S,
4649
+ i: S,
4650
+ o: S,
4922
4651
  d(n) {
4923
- n && A(t);
4652
+ n && C(t);
4924
4653
  }
4925
4654
  };
4926
4655
  }
@@ -4934,88 +4663,88 @@ function Fa(e) {
4934
4663
  ), u;
4935
4664
  return {
4936
4665
  c() {
4937
- t = x("span"), t.textContent = `${R("totalBalance")}`, n = P(), i = W(r), a = P(), u = W(o), m(t, "class", "totalAmount");
4666
+ t = E("span"), t.textContent = `${R("totalBalance")}`, n = I(), i = z(r), a = I(), u = z(o), m(t, "class", "totalAmount");
4938
4667
  },
4939
4668
  m(s, l) {
4940
- C(s, t, l), C(s, n, l), C(s, i, l), C(s, a, l), C(s, u, l);
4669
+ T(s, t, l), T(s, n, l), T(s, i, l), T(s, a, l), T(s, u, l);
4941
4670
  },
4942
4671
  p(s, l) {
4943
4672
  l[0] & /*playerBalance*/
4944
4673
  1024 && r !== (r = /*playerBalance*/
4945
- (s[10]?.amount || 0) + "") && ee(i, r), l[0] & /*playerBalance*/
4674
+ (s[10]?.amount || 0) + "") && te(i, r), l[0] & /*playerBalance*/
4946
4675
  1024 && o !== (o = /*playerBalance*/
4947
- (s[10]?.currency || "") + "") && ee(u, o);
4676
+ (s[10]?.currency || "") + "") && te(u, o);
4948
4677
  },
4949
- i: B,
4950
- o: B,
4678
+ i: S,
4679
+ o: S,
4951
4680
  d(s) {
4952
- s && (A(t), A(n), A(i), A(a), A(u));
4681
+ s && (C(t), C(n), C(i), C(a), C(u));
4953
4682
  }
4954
4683
  };
4955
4684
  }
4956
4685
  function Ua(e) {
4957
4686
  let t, n;
4958
- return t = new Ot({}), {
4687
+ return t = new Lt({}), {
4959
4688
  c() {
4960
- at(t.$$.fragment);
4689
+ rt(t.$$.fragment);
4961
4690
  },
4962
4691
  m(r, i) {
4963
- $e(t, r, i), n = !0;
4692
+ Ve(t, r, i), n = !0;
4964
4693
  },
4965
- p: B,
4694
+ p: S,
4966
4695
  i(r) {
4967
- n || (M(t.$$.fragment, r), n = !0);
4696
+ n || (U(t.$$.fragment, r), n = !0);
4968
4697
  },
4969
4698
  o(r) {
4970
- G(t.$$.fragment, r), n = !1;
4699
+ W(t.$$.fragment, r), n = !1;
4971
4700
  },
4972
4701
  d(r) {
4973
- je(t, r);
4702
+ Ge(t, r);
4974
4703
  }
4975
4704
  };
4976
4705
  }
4977
4706
  function Va(e) {
4978
4707
  let t, n, r, i, a, o, u, s, l;
4979
- const c = [ja, $a], f = [];
4980
- function h(d, v) {
4708
+ const c = [ja, $a], d = [];
4709
+ function h(p, v) {
4981
4710
  return (
4982
4711
  /*fetchResponse*/
4983
- d[12]?.source === z.BalanceError ? 0 : 1
4712
+ p[12]?.source === K.BalanceError ? 0 : 1
4984
4713
  );
4985
4714
  }
4986
- return o = h(e), u = f[o] = c[o](e), {
4715
+ return o = h(e), u = d[o] = c[o](e), {
4987
4716
  c() {
4988
- t = x("div"), n = x("p"), r = W(
4717
+ t = E("div"), n = E("p"), r = z(
4989
4718
  /*validationError*/
4990
4719
  e[13]
4991
- ), i = P(), a = x("div"), u.c(), m(n, "class", "validationError"), m(a, "class", "playerBalance amountContainer"), m(t, "class", s = "balanceContainer " + /*validationError*/
4720
+ ), i = I(), a = E("div"), u.c(), m(n, "class", "validationError"), m(a, "class", "playerBalance amountContainer"), m(t, "class", s = "balanceContainer " + /*validationError*/
4992
4721
  (e[13] ? "hasError" : ""));
4993
4722
  },
4994
- m(d, v) {
4995
- C(d, t, v), y(t, n), y(n, r), y(t, i), y(t, a), f[o].m(a, null), l = !0;
4723
+ m(p, v) {
4724
+ T(p, t, v), y(t, n), y(n, r), y(t, i), y(t, a), d[o].m(a, null), l = !0;
4996
4725
  },
4997
- p(d, v) {
4726
+ p(p, v) {
4998
4727
  (!l || v[0] & /*validationError*/
4999
- 8192) && ee(
4728
+ 8192) && te(
5000
4729
  r,
5001
4730
  /*validationError*/
5002
- d[13]
4731
+ p[13]
5003
4732
  );
5004
4733
  let b = o;
5005
- o = h(d), o === b ? f[o].p(d, v) : (Be(), G(f[b], 1, 1, () => {
5006
- f[b] = null;
5007
- }), Se(), u = f[o], u ? u.p(d, v) : (u = f[o] = c[o](d), u.c()), M(u, 1), u.m(a, null)), (!l || v[0] & /*validationError*/
4734
+ o = h(p), o === b ? d[o].p(p, v) : (Se(), W(d[b], 1, 1, () => {
4735
+ d[b] = null;
4736
+ }), He(), u = d[o], u ? u.p(p, v) : (u = d[o] = c[o](p), u.c()), U(u, 1), u.m(a, null)), (!l || v[0] & /*validationError*/
5008
4737
  8192 && s !== (s = "balanceContainer " + /*validationError*/
5009
- (d[13] ? "hasError" : ""))) && m(t, "class", s);
4738
+ (p[13] ? "hasError" : ""))) && m(t, "class", s);
5010
4739
  },
5011
- i(d) {
5012
- l || (M(u), l = !0);
4740
+ i(p) {
4741
+ l || (U(u), l = !0);
5013
4742
  },
5014
- o(d) {
5015
- G(u), l = !1;
4743
+ o(p) {
4744
+ W(u), l = !1;
5016
4745
  },
5017
- d(d) {
5018
- d && A(t), f[o].d();
4746
+ d(p) {
4747
+ p && C(t), d[o].d();
5019
4748
  }
5020
4749
  };
5021
4750
  }
@@ -5023,16 +4752,16 @@ function Ga(e) {
5023
4752
  let t;
5024
4753
  return {
5025
4754
  c() {
5026
- t = x("div"), m(t, "class", "skeleton");
4755
+ t = E("div"), m(t, "class", "skeleton");
5027
4756
  },
5028
4757
  m(n, r) {
5029
- C(n, t, r);
4758
+ T(n, t, r);
5030
4759
  },
5031
- p: B,
5032
- i: B,
5033
- o: B,
4760
+ p: S,
4761
+ i: S,
4762
+ o: S,
5034
4763
  d(n) {
5035
- n && A(t);
4764
+ n && C(t);
5036
4765
  }
5037
4766
  };
5038
4767
  }
@@ -5046,43 +4775,43 @@ function $a(e) {
5046
4775
  ), u;
5047
4776
  return {
5048
4777
  c() {
5049
- t = x("span"), t.textContent = `${R("currentBalance")}`, n = P(), i = W(r), a = P(), u = W(o), m(t, "class", "amount");
4778
+ t = E("span"), t.textContent = `${R("currentBalance")}`, n = I(), i = z(r), a = I(), u = z(o), m(t, "class", "amount");
5050
4779
  },
5051
4780
  m(s, l) {
5052
- C(s, t, l), C(s, n, l), C(s, i, l), C(s, a, l), C(s, u, l);
4781
+ T(s, t, l), T(s, n, l), T(s, i, l), T(s, a, l), T(s, u, l);
5053
4782
  },
5054
4783
  p(s, l) {
5055
4784
  l[0] & /*selectedCurrencyFrom*/
5056
4785
  32 && r !== (r = /*selectedCurrencyFrom*/
5057
- (s[5]?.amount || 0) + "") && ee(i, r), l[0] & /*selectedCurrencyFrom*/
4786
+ (s[5]?.amount || 0) + "") && te(i, r), l[0] & /*selectedCurrencyFrom*/
5058
4787
  32 && o !== (o = /*selectedCurrencyFrom*/
5059
- (s[5]?.currency || "") + "") && ee(u, o);
4788
+ (s[5]?.currency || "") + "") && te(u, o);
5060
4789
  },
5061
- i: B,
5062
- o: B,
4790
+ i: S,
4791
+ o: S,
5063
4792
  d(s) {
5064
- s && (A(t), A(n), A(i), A(a), A(u));
4793
+ s && (C(t), C(n), C(i), C(a), C(u));
5065
4794
  }
5066
4795
  };
5067
4796
  }
5068
4797
  function ja(e) {
5069
4798
  let t, n;
5070
- return t = new Ot({}), {
4799
+ return t = new Lt({}), {
5071
4800
  c() {
5072
- at(t.$$.fragment);
4801
+ rt(t.$$.fragment);
5073
4802
  },
5074
4803
  m(r, i) {
5075
- $e(t, r, i), n = !0;
4804
+ Ve(t, r, i), n = !0;
5076
4805
  },
5077
- p: B,
4806
+ p: S,
5078
4807
  i(r) {
5079
- n || (M(t.$$.fragment, r), n = !0);
4808
+ n || (U(t.$$.fragment, r), n = !0);
5080
4809
  },
5081
4810
  o(r) {
5082
- G(t.$$.fragment, r), n = !1;
4811
+ W(t.$$.fragment, r), n = !1;
5083
4812
  },
5084
4813
  d(r) {
5085
- je(t, r);
4814
+ Ge(t, r);
5086
4815
  }
5087
4816
  };
5088
4817
  }
@@ -5092,30 +4821,30 @@ function Xa(e) {
5092
4821
  function u(s, l) {
5093
4822
  return (
5094
4823
  /*fetchResponse*/
5095
- s[12]?.source === z.BalanceError ? 0 : 1
4824
+ s[12]?.source === K.BalanceError ? 0 : 1
5096
4825
  );
5097
4826
  }
5098
4827
  return n = u(e), r = o[n] = a[n](e), {
5099
4828
  c() {
5100
- t = x("div"), r.c(), m(t, "class", "playerBalance amountContainer");
4829
+ t = E("div"), r.c(), m(t, "class", "playerBalance amountContainer");
5101
4830
  },
5102
4831
  m(s, l) {
5103
- C(s, t, l), o[n].m(t, null), i = !0;
4832
+ T(s, t, l), o[n].m(t, null), i = !0;
5104
4833
  },
5105
4834
  p(s, l) {
5106
4835
  let c = n;
5107
- n = u(s), n === c ? o[n].p(s, l) : (Be(), G(o[c], 1, 1, () => {
4836
+ n = u(s), n === c ? o[n].p(s, l) : (Se(), W(o[c], 1, 1, () => {
5108
4837
  o[c] = null;
5109
- }), Se(), r = o[n], r ? r.p(s, l) : (r = o[n] = a[n](s), r.c()), M(r, 1), r.m(t, null));
4838
+ }), He(), r = o[n], r ? r.p(s, l) : (r = o[n] = a[n](s), r.c()), U(r, 1), r.m(t, null));
5110
4839
  },
5111
4840
  i(s) {
5112
- i || (M(r), i = !0);
4841
+ i || (U(r), i = !0);
5113
4842
  },
5114
4843
  o(s) {
5115
- G(r), i = !1;
4844
+ W(r), i = !1;
5116
4845
  },
5117
4846
  d(s) {
5118
- s && A(t), o[n].d();
4847
+ s && C(t), o[n].d();
5119
4848
  }
5120
4849
  };
5121
4850
  }
@@ -5123,16 +4852,16 @@ function Wa(e) {
5123
4852
  let t;
5124
4853
  return {
5125
4854
  c() {
5126
- t = x("div"), m(t, "class", "skeleton");
4855
+ t = E("div"), m(t, "class", "skeleton");
5127
4856
  },
5128
4857
  m(n, r) {
5129
- C(n, t, r);
4858
+ T(n, t, r);
5130
4859
  },
5131
- p: B,
5132
- i: B,
5133
- o: B,
4860
+ p: S,
4861
+ i: S,
4862
+ o: S,
5134
4863
  d(n) {
5135
- n && A(t);
4864
+ n && C(t);
5136
4865
  }
5137
4866
  };
5138
4867
  }
@@ -5146,128 +4875,128 @@ function za(e) {
5146
4875
  ), u;
5147
4876
  return {
5148
4877
  c() {
5149
- t = x("span"), t.textContent = `${R("currentBalance")}`, n = P(), i = W(r), a = P(), u = W(o), m(t, "class", "amount");
4878
+ t = E("span"), t.textContent = `${R("currentBalance")}`, n = I(), i = z(r), a = I(), u = z(o), m(t, "class", "amount");
5150
4879
  },
5151
4880
  m(s, l) {
5152
- C(s, t, l), C(s, n, l), C(s, i, l), C(s, a, l), C(s, u, l);
4881
+ T(s, t, l), T(s, n, l), T(s, i, l), T(s, a, l), T(s, u, l);
5153
4882
  },
5154
4883
  p(s, l) {
5155
4884
  l[0] & /*selectedCurrencyTo*/
5156
4885
  64 && r !== (r = /*selectedCurrencyTo*/
5157
- (s[6]?.amount || 0) + "") && ee(i, r), l[0] & /*selectedCurrencyTo*/
4886
+ (s[6]?.amount || 0) + "") && te(i, r), l[0] & /*selectedCurrencyTo*/
5158
4887
  64 && o !== (o = /*selectedCurrencyTo*/
5159
- (s[6]?.currency || "") + "") && ee(u, o);
4888
+ (s[6]?.currency || "") + "") && te(u, o);
5160
4889
  },
5161
- i: B,
5162
- o: B,
4890
+ i: S,
4891
+ o: S,
5163
4892
  d(s) {
5164
- s && (A(t), A(n), A(i), A(a), A(u));
4893
+ s && (C(t), C(n), C(i), C(a), C(u));
5165
4894
  }
5166
4895
  };
5167
4896
  }
5168
4897
  function Za(e) {
5169
4898
  let t, n;
5170
- return t = new Ot({}), {
4899
+ return t = new Lt({}), {
5171
4900
  c() {
5172
- at(t.$$.fragment);
4901
+ rt(t.$$.fragment);
5173
4902
  },
5174
4903
  m(r, i) {
5175
- $e(t, r, i), n = !0;
4904
+ Ve(t, r, i), n = !0;
5176
4905
  },
5177
- p: B,
4906
+ p: S,
5178
4907
  i(r) {
5179
- n || (M(t.$$.fragment, r), n = !0);
4908
+ n || (U(t.$$.fragment, r), n = !0);
5180
4909
  },
5181
4910
  o(r) {
5182
- G(t.$$.fragment, r), n = !1;
4911
+ W(t.$$.fragment, r), n = !1;
5183
4912
  },
5184
4913
  d(r) {
5185
- je(t, r);
4914
+ Ge(t, r);
5186
4915
  }
5187
4916
  };
5188
4917
  }
5189
4918
  function Vn(e) {
5190
- let t, n, r, i, a, o, u, s, l, c, f = At(
4919
+ let t, n, r, i, a, o, u, s, l, c, d = xt(
5191
4920
  /*dropDownVaults*/
5192
- e[20]
4921
+ e[19]
5193
4922
  ), h = [];
5194
- for (let d = 0; d < f.length; d += 1)
5195
- h[d] = Gn(Dn(e, f, d));
4923
+ for (let p = 0; p < d.length; p += 1)
4924
+ h[p] = Gn(Mn(e, d, p));
5196
4925
  return {
5197
4926
  c() {
5198
- t = x("div"), n = x("button"), r = fn("svg"), i = fn("path"), o = P(), u = x("div");
5199
- for (let d = 0; d < h.length; d += 1)
5200
- h[d].c();
4927
+ t = E("div"), n = E("button"), r = dn("svg"), i = dn("path"), o = I(), u = E("div");
4928
+ for (let p = 0; p < h.length; p += 1)
4929
+ h[p].c();
5201
4930
  m(i, "d", "M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z"), m(i, "fill", "currentColor"), m(r, "class", "vaultToggleIcon"), m(r, "width", "12"), m(r, "height", "7"), m(r, "viewBox", "0 0 12 7"), m(r, "fill", "currentColor"), m(r, "xmlns", "http://www.w3.org/2000/svg"), m(n, "type", "button"), m(n, "class", a = "vaultToggleButton " + /*isVaultDropDownToggled*/
5202
4931
  (e[15] && /*dropDownVaults*/
5203
- e[20].length > 0 ? "active" : "")), m(u, "class", s = "vaultDropdown " + /*isVaultDropDownToggled*/
4932
+ e[19].length > 0 ? "active" : "")), m(u, "class", s = "vaultDropdown " + /*isVaultDropDownToggled*/
5204
4933
  (e[15] && /*dropDownVaults*/
5205
- e[20].length > 0 ? "expanded" : "")), m(t, "class", "vaultsContainer");
4934
+ e[19].length > 0 ? "expanded" : "")), m(t, "class", "vaultsContainer");
5206
4935
  },
5207
- m(d, v) {
5208
- C(d, t, v), y(t, n), y(n, r), y(r, i), y(t, o), y(t, u);
4936
+ m(p, v) {
4937
+ T(p, t, v), y(t, n), y(n, r), y(r, i), y(t, o), y(t, u);
5209
4938
  for (let b = 0; b < h.length; b += 1)
5210
4939
  h[b] && h[b].m(u, null);
5211
- l || (c = re(
4940
+ l || (c = ie(
5212
4941
  n,
5213
4942
  "click",
5214
4943
  /*handleToggleVaultDropdown*/
5215
- e[23]
4944
+ e[22]
5216
4945
  ), l = !0);
5217
4946
  },
5218
- p(d, v) {
4947
+ p(p, v) {
5219
4948
  if (v[0] & /*isVaultDropDownToggled, dropDownVaults*/
5220
- 1081344 && a !== (a = "vaultToggleButton " + /*isVaultDropDownToggled*/
5221
- (d[15] && /*dropDownVaults*/
5222
- d[20].length > 0 ? "active" : "")) && m(n, "class", a), v[0] & /*dropDownVaults*/
5223
- 1048576) {
5224
- f = At(
4949
+ 557056 && a !== (a = "vaultToggleButton " + /*isVaultDropDownToggled*/
4950
+ (p[15] && /*dropDownVaults*/
4951
+ p[19].length > 0 ? "active" : "")) && m(n, "class", a), v[0] & /*dropDownVaults*/
4952
+ 524288) {
4953
+ d = xt(
5225
4954
  /*dropDownVaults*/
5226
- d[20]
4955
+ p[19]
5227
4956
  );
5228
4957
  let b;
5229
- for (b = 0; b < f.length; b += 1) {
5230
- const L = Dn(d, f, b);
5231
- h[b] ? h[b].p(L, v) : (h[b] = Gn(L), h[b].c(), h[b].m(u, null));
4958
+ for (b = 0; b < d.length; b += 1) {
4959
+ const N = Mn(p, d, b);
4960
+ h[b] ? h[b].p(N, v) : (h[b] = Gn(N), h[b].c(), h[b].m(u, null));
5232
4961
  }
5233
4962
  for (; b < h.length; b += 1)
5234
4963
  h[b].d(1);
5235
- h.length = f.length;
4964
+ h.length = d.length;
5236
4965
  }
5237
4966
  v[0] & /*isVaultDropDownToggled, dropDownVaults*/
5238
- 1081344 && s !== (s = "vaultDropdown " + /*isVaultDropDownToggled*/
5239
- (d[15] && /*dropDownVaults*/
5240
- d[20].length > 0 ? "expanded" : "")) && m(u, "class", s);
4967
+ 557056 && s !== (s = "vaultDropdown " + /*isVaultDropDownToggled*/
4968
+ (p[15] && /*dropDownVaults*/
4969
+ p[19].length > 0 ? "expanded" : "")) && m(u, "class", s);
5241
4970
  },
5242
- d(d) {
5243
- d && A(t), Xn(h, d), l = !1, c();
4971
+ d(p) {
4972
+ p && C(t), Xn(h, p), l = !1, c();
5244
4973
  }
5245
4974
  };
5246
4975
  }
5247
4976
  function Gn(e) {
5248
4977
  let t, n, r = (
5249
4978
  /*vault*/
5250
- e[61]?.currency + ""
4979
+ e[60]?.currency + ""
5251
4980
  ), i, a, o, u = (
5252
4981
  /*vault*/
5253
- e[61]?.amount + ""
4982
+ e[60]?.amount + ""
5254
4983
  ), s, l;
5255
4984
  return {
5256
4985
  c() {
5257
- t = x("div"), n = x("p"), i = W(r), a = P(), o = x("p"), s = W(u), l = P(), m(t, "class", "vaultItem");
4986
+ t = E("div"), n = E("p"), i = z(r), a = I(), o = E("p"), s = z(u), l = I(), m(t, "class", "vaultItem");
5258
4987
  },
5259
- m(c, f) {
5260
- C(c, t, f), y(t, n), y(n, i), y(t, a), y(t, o), y(o, s), y(t, l);
4988
+ m(c, d) {
4989
+ T(c, t, d), y(t, n), y(n, i), y(t, a), y(t, o), y(o, s), y(t, l);
5261
4990
  },
5262
- p(c, f) {
5263
- f[0] & /*dropDownVaults*/
5264
- 1048576 && r !== (r = /*vault*/
5265
- c[61]?.currency + "") && ee(i, r), f[0] & /*dropDownVaults*/
5266
- 1048576 && u !== (u = /*vault*/
5267
- c[61]?.amount + "") && ee(s, u);
4991
+ p(c, d) {
4992
+ d[0] & /*dropDownVaults*/
4993
+ 524288 && r !== (r = /*vault*/
4994
+ c[60]?.currency + "") && te(i, r), d[0] & /*dropDownVaults*/
4995
+ 524288 && u !== (u = /*vault*/
4996
+ c[60]?.amount + "") && te(s, u);
5268
4997
  },
5269
4998
  d(c) {
5270
- c && A(t);
4999
+ c && C(t);
5271
5000
  }
5272
5001
  };
5273
5002
  }
@@ -5277,19 +5006,19 @@ function Qa(e) {
5277
5006
  e[11]?.currency || ""}`, n;
5278
5007
  return {
5279
5008
  c() {
5280
- n = W(t);
5009
+ n = z(t);
5281
5010
  },
5282
5011
  m(r, i) {
5283
- C(r, n, i);
5012
+ T(r, n, i);
5284
5013
  },
5285
5014
  p(r, i) {
5286
5015
  i[0] & /*currentFee*/
5287
5016
  2048 && t !== (t = `${/*currentFee*/
5288
5017
  r[11]?.amount || 0} ${/*currentFee*/
5289
- r[11]?.currency || ""}`) && ee(n, t);
5018
+ r[11]?.currency || ""}`) && te(n, t);
5290
5019
  },
5291
5020
  d(r) {
5292
- r && A(n);
5021
+ r && C(n);
5293
5022
  }
5294
5023
  };
5295
5024
  }
@@ -5297,344 +5026,586 @@ function Ka(e) {
5297
5026
  let t = R("feesUnavailable") + "", n;
5298
5027
  return {
5299
5028
  c() {
5300
- n = W(t);
5029
+ n = z(t);
5301
5030
  },
5302
5031
  m(r, i) {
5303
- C(r, n, i);
5032
+ T(r, n, i);
5304
5033
  },
5305
- p: B,
5034
+ p: S,
5306
5035
  d(r) {
5307
- r && A(n);
5036
+ r && C(n);
5308
5037
  }
5309
5038
  };
5310
5039
  }
5311
5040
  function Ya(e) {
5312
- let t, n, r = (
5313
- /*showComponent*/
5314
- e[19] && Mn(e)
5041
+ let t, n, r, i, a, o, u, s, l, c, d, h, p, v, b, N, _, O, L, ae, D, ne, oe, ue, $, he, Ie, Y, me, Ke, J, j, st, Ye, _e, Le, lt, Ce, Ne, re, ge = R(
5042
+ /*fetchResponse*/
5043
+ e[12]?.message || ""
5044
+ ) + "", Je, be, fe, ut, X, Nt = R("exchange") + "", Te, Oe, ee, Re, Ot, Q = (
5045
+ /*showclosebutton*/
5046
+ e[3] === xe.true && Fn(e)
5047
+ ), V = (
5048
+ /*showtotalbalance*/
5049
+ e[2] === xe.true && Un(e)
5315
5050
  );
5051
+ function Rt(g) {
5052
+ e[38](g);
5053
+ }
5054
+ let ct = {
5055
+ withSymbol: (
5056
+ /*showcurrencysymbol*/
5057
+ e[4]
5058
+ ),
5059
+ disabled: !/*isBalanceFetched*/
5060
+ e[16] || !/*isCurrenciesFetched*/
5061
+ e[17],
5062
+ options: (
5063
+ /*optionsFrom*/
5064
+ e[20]
5065
+ ),
5066
+ onChange: (
5067
+ /*checkWalletExchangeDebounced*/
5068
+ e[25]
5069
+ )
5070
+ };
5071
+ /*selectedCurrencyFrom*/
5072
+ e[5] !== void 0 && (ct.selected = /*selectedCurrencyFrom*/
5073
+ e[5]), b = new an({ props: ct }), Ue.push(() => mn(b, "selected", Rt));
5074
+ const qe = [Ga, Va], de = [];
5075
+ function ht(g, H) {
5076
+ return !/*isBalanceFetched*/
5077
+ g[16] || !/*isCurrenciesFetched*/
5078
+ g[17] ? 0 : 1;
5079
+ }
5080
+ O = ht(e), L = de[O] = qe[O](e);
5081
+ function kt(g) {
5082
+ e[40](g);
5083
+ }
5084
+ let ft = {
5085
+ withSymbol: (
5086
+ /*showcurrencysymbol*/
5087
+ e[4]
5088
+ ),
5089
+ disabled: !/*session*/
5090
+ e[0] || !!/*validationError*/
5091
+ e[13] || !/*isBalanceFetched*/
5092
+ e[16] || !/*isCurrenciesFetched*/
5093
+ e[17],
5094
+ options: (
5095
+ /*optionsTo*/
5096
+ e[21]
5097
+ ),
5098
+ onChange: (
5099
+ /*checkWalletExchangeDebounced*/
5100
+ e[25]
5101
+ )
5102
+ };
5103
+ /*selectedCurrencyTo*/
5104
+ e[6] !== void 0 && (ft.selected = /*selectedCurrencyTo*/
5105
+ e[6]), Y = new an({ props: ft }), Ue.push(() => mn(Y, "selected", kt));
5106
+ const dt = [Wa, Xa], f = [];
5107
+ function x(g, H) {
5108
+ return !/*isBalanceFetched*/
5109
+ g[16] || !/*isCurrenciesFetched*/
5110
+ g[17] ? 0 : 1;
5111
+ }
5112
+ J = x(e), j = f[J] = dt[J](e);
5113
+ let w = (
5114
+ /*showvaults*/
5115
+ e[1] === xe.true && Vn(e)
5116
+ );
5117
+ function A(g, H) {
5118
+ return (
5119
+ /*fetchResponse*/
5120
+ g[12]?.source === K.CheckWalletExchangeError ? Ka : Qa
5121
+ );
5122
+ }
5123
+ let Z = A(e), se = Z(e);
5316
5124
  return {
5317
5125
  c() {
5318
- r && r.c(), t = Wn();
5126
+ t = E("div"), Q && Q.c(), n = I(), r = E("div"), i = E("h1"), i.textContent = `${R("vaultExchange")}`, a = I(), V && V.c(), o = I(), u = E("div"), s = E("div"), l = E("p"), l.textContent = `${R("exchangeFrom")}`, c = I(), d = E("div"), h = E("input"), v = I(), rt(b.$$.fragment), _ = I(), L.c(), ae = I(), D = E("div"), ne = E("p"), ne.textContent = `${R("exchangeTo")}`, oe = I(), ue = E("div"), $ = E("input"), Ie = I(), rt(Y.$$.fragment), Ke = I(), j.c(), st = I(), w && w.c(), Ye = I(), _e = E("div"), Le = E("span"), Le.textContent = `${R("feesIncluded")}`, lt = I(), Ce = E("span"), se.c(), Ne = I(), re = E("div"), Je = I(), be = E("div"), fe = E("button"), fe.textContent = `${R("reset")}`, ut = I(), X = E("button"), Te = z(Nt), m(i, "class", "headerTitle"), m(r, "class", "headerContainer"), m(l, "class", "exchangeHeader"), m(h, "id", "senderInput"), h.disabled = p = !/*session*/
5127
+ e[0] || !/*isBalanceFetched*/
5128
+ e[16] || !/*isCurrenciesFetched*/
5129
+ e[17], m(h, "placeholder", R("debitPlaceHolder")), m(h, "class", "exchangeInput"), m(h, "type", "number"), m(h, "aria-label", "Enter exchange amount"), m(h, "inputmode", "decimal"), m(h, "step", "0.000000000000000001"), m(h, "min", "0"), m(d, "class", "flexingContainerRow"), m(s, "class", "containerExchangeFrom exchangeContainer"), m(ne, "class", "exchangeHeader"), m($, "id", "destinationInput"), $.disabled = he = !/*session*/
5130
+ e[0] || !/*isBalanceFetched*/
5131
+ e[16] || !/*isCurrenciesFetched*/
5132
+ e[17], m($, "placeholder", R("creditPlaceHolder")), m($, "class", "exchangeInput"), m($, "type", "number"), $.readOnly = !0, m($, "min", "0"), m(ue, "class", "flexingContainerRow"), m(D, "class", "containerExchangeTo exchangeContainer"), m(u, "class", "exchangesContainer"), m(Le, "class", "feesLabel"), m(_e, "class", "feesContainer"), m(re, "class", "notificationsContainer"), le(
5133
+ re,
5134
+ "error",
5135
+ /*fetchResponse*/
5136
+ e[12]?.type === "error"
5137
+ ), le(
5138
+ re,
5139
+ "success",
5140
+ /*fetchResponse*/
5141
+ e[12]?.type === "success"
5142
+ ), m(fe, "class", "resetButton"), m(fe, "type", "button"), m(X, "type", "button"), m(X, "class", "exchangeButton"), X.disabled = Oe = /*isExchangeDisabled*/
5143
+ e[14] || /*isExchangePending*/
5144
+ e[18] || /*inputExchangeFrom*/
5145
+ e[8] === 0 && !/*selectedCurrencyFrom*/
5146
+ e[5]?.amount, le(
5147
+ X,
5148
+ "disabled",
5149
+ /*isExchangeDisabled*/
5150
+ e[14] || /*isExchangePending*/
5151
+ e[18]
5152
+ ), le(
5153
+ X,
5154
+ "pending",
5155
+ /*isExchangePending*/
5156
+ e[18]
5157
+ ), m(be, "class", "actionsContainer"), m(t, "class", "playerAccountVault");
5319
5158
  },
5320
- m(i, a) {
5321
- r && r.m(i, a), C(i, t, a), n = !0;
5159
+ m(g, H) {
5160
+ T(g, t, H), Q && Q.m(t, null), y(t, n), y(t, r), y(r, i), y(r, a), V && V.m(r, null), y(t, o), y(t, u), y(u, s), y(s, l), y(s, c), y(s, d), y(d, h), pt(
5161
+ h,
5162
+ /*inputExchangeFrom*/
5163
+ e[8]
5164
+ ), y(d, v), Ve(b, d, null), y(s, _), de[O].m(s, null), y(u, ae), y(u, D), y(D, ne), y(D, oe), y(D, ue), y(ue, $), pt(
5165
+ $,
5166
+ /*inputExchangeTo*/
5167
+ e[9]
5168
+ ), y(ue, Ie), Ve(Y, ue, null), y(D, Ke), f[J].m(D, null), y(t, st), w && w.m(t, null), y(t, Ye), y(t, _e), y(_e, Le), y(_e, lt), y(_e, Ce), se.m(Ce, null), y(t, Ne), y(t, re), re.innerHTML = ge, y(t, Je), y(t, be), y(be, fe), y(be, ut), y(be, X), y(X, Te), e[41](t), ee = !0, Re || (Ot = [
5169
+ ie(
5170
+ h,
5171
+ "input",
5172
+ /*input0_input_handler*/
5173
+ e[37]
5174
+ ),
5175
+ ie(
5176
+ h,
5177
+ "input",
5178
+ /*handleInputChange*/
5179
+ e[26]
5180
+ ),
5181
+ ie(
5182
+ h,
5183
+ "beforeinput",
5184
+ /*handleBeforeInput*/
5185
+ e[27]
5186
+ ),
5187
+ ie(
5188
+ $,
5189
+ "input",
5190
+ /*input1_input_handler*/
5191
+ e[39]
5192
+ ),
5193
+ ie(
5194
+ fe,
5195
+ "click",
5196
+ /*handleResetToDefault*/
5197
+ e[24]
5198
+ ),
5199
+ ie(
5200
+ X,
5201
+ "click",
5202
+ /*handleExchange*/
5203
+ e[28]
5204
+ )
5205
+ ], Re = !0);
5322
5206
  },
5323
- p(i, a) {
5324
- /*showComponent*/
5325
- i[19] ? r ? (r.p(i, a), a[0] & /*showComponent*/
5326
- 524288 && M(r, 1)) : (r = Mn(i), r.c(), M(r, 1), r.m(t.parentNode, t)) : r && (Be(), G(r, 1, 1, () => {
5327
- r = null;
5328
- }), Se());
5207
+ p(g, H) {
5208
+ /*showclosebutton*/
5209
+ g[3] === xe.true ? Q ? Q.p(g, H) : (Q = Fn(g), Q.c(), Q.m(t, n)) : Q && (Q.d(1), Q = null), /*showtotalbalance*/
5210
+ g[2] === xe.true ? V ? (V.p(g, H), H[0] & /*showtotalbalance*/
5211
+ 4 && U(V, 1)) : (V = Un(g), V.c(), U(V, 1), V.m(r, null)) : V && (Se(), W(V, 1, 1, () => {
5212
+ V = null;
5213
+ }), He()), (!ee || H[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
5214
+ 196609 && p !== (p = !/*session*/
5215
+ g[0] || !/*isBalanceFetched*/
5216
+ g[16] || !/*isCurrenciesFetched*/
5217
+ g[17])) && (h.disabled = p), H[0] & /*inputExchangeFrom*/
5218
+ 256 && Et(h.value) !== /*inputExchangeFrom*/
5219
+ g[8] && pt(
5220
+ h,
5221
+ /*inputExchangeFrom*/
5222
+ g[8]
5223
+ );
5224
+ const M = {};
5225
+ H[0] & /*showcurrencysymbol*/
5226
+ 16 && (M.withSymbol = /*showcurrencysymbol*/
5227
+ g[4]), H[0] & /*isBalanceFetched, isCurrenciesFetched*/
5228
+ 196608 && (M.disabled = !/*isBalanceFetched*/
5229
+ g[16] || !/*isCurrenciesFetched*/
5230
+ g[17]), H[0] & /*optionsFrom*/
5231
+ 1048576 && (M.options = /*optionsFrom*/
5232
+ g[20]), !N && H[0] & /*selectedCurrencyFrom*/
5233
+ 32 && (N = !0, M.selected = /*selectedCurrencyFrom*/
5234
+ g[5], pn(() => N = !1)), b.$set(M);
5235
+ let ye = O;
5236
+ O = ht(g), O === ye ? de[O].p(g, H) : (Se(), W(de[ye], 1, 1, () => {
5237
+ de[ye] = null;
5238
+ }), He(), L = de[O], L ? L.p(g, H) : (L = de[O] = qe[O](g), L.c()), U(L, 1), L.m(s, null)), (!ee || H[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
5239
+ 196609 && he !== (he = !/*session*/
5240
+ g[0] || !/*isBalanceFetched*/
5241
+ g[16] || !/*isCurrenciesFetched*/
5242
+ g[17])) && ($.disabled = he), H[0] & /*inputExchangeTo*/
5243
+ 512 && Et($.value) !== /*inputExchangeTo*/
5244
+ g[9] && pt(
5245
+ $,
5246
+ /*inputExchangeTo*/
5247
+ g[9]
5248
+ );
5249
+ const ce = {};
5250
+ H[0] & /*showcurrencysymbol*/
5251
+ 16 && (ce.withSymbol = /*showcurrencysymbol*/
5252
+ g[4]), H[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
5253
+ 204801 && (ce.disabled = !/*session*/
5254
+ g[0] || !!/*validationError*/
5255
+ g[13] || !/*isBalanceFetched*/
5256
+ g[16] || !/*isCurrenciesFetched*/
5257
+ g[17]), H[0] & /*optionsTo*/
5258
+ 2097152 && (ce.options = /*optionsTo*/
5259
+ g[21]), !me && H[0] & /*selectedCurrencyTo*/
5260
+ 64 && (me = !0, ce.selected = /*selectedCurrencyTo*/
5261
+ g[6], pn(() => me = !1)), Y.$set(ce);
5262
+ let Dt = J;
5263
+ J = x(g), J === Dt ? f[J].p(g, H) : (Se(), W(f[Dt], 1, 1, () => {
5264
+ f[Dt] = null;
5265
+ }), He(), j = f[J], j ? j.p(g, H) : (j = f[J] = dt[J](g), j.c()), U(j, 1), j.m(D, null)), /*showvaults*/
5266
+ g[1] === xe.true ? w ? w.p(g, H) : (w = Vn(g), w.c(), w.m(t, Ye)) : w && (w.d(1), w = null), Z === (Z = A(g)) && se ? se.p(g, H) : (se.d(1), se = Z(g), se && (se.c(), se.m(Ce, null))), (!ee || H[0] & /*fetchResponse*/
5267
+ 4096) && ge !== (ge = R(
5268
+ /*fetchResponse*/
5269
+ g[12]?.message || ""
5270
+ ) + "") && (re.innerHTML = ge), (!ee || H[0] & /*fetchResponse*/
5271
+ 4096) && le(
5272
+ re,
5273
+ "error",
5274
+ /*fetchResponse*/
5275
+ g[12]?.type === "error"
5276
+ ), (!ee || H[0] & /*fetchResponse*/
5277
+ 4096) && le(
5278
+ re,
5279
+ "success",
5280
+ /*fetchResponse*/
5281
+ g[12]?.type === "success"
5282
+ ), (!ee || H[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
5283
+ 278816 && Oe !== (Oe = /*isExchangeDisabled*/
5284
+ g[14] || /*isExchangePending*/
5285
+ g[18] || /*inputExchangeFrom*/
5286
+ g[8] === 0 && !/*selectedCurrencyFrom*/
5287
+ g[5]?.amount)) && (X.disabled = Oe), (!ee || H[0] & /*isExchangeDisabled, isExchangePending*/
5288
+ 278528) && le(
5289
+ X,
5290
+ "disabled",
5291
+ /*isExchangeDisabled*/
5292
+ g[14] || /*isExchangePending*/
5293
+ g[18]
5294
+ ), (!ee || H[0] & /*isExchangePending*/
5295
+ 262144) && le(
5296
+ X,
5297
+ "pending",
5298
+ /*isExchangePending*/
5299
+ g[18]
5300
+ );
5329
5301
  },
5330
- i(i) {
5331
- n || (M(r), n = !0);
5302
+ i(g) {
5303
+ ee || (U(V), U(b.$$.fragment, g), U(L), U(Y.$$.fragment, g), U(j), ee = !0);
5332
5304
  },
5333
- o(i) {
5334
- G(r), n = !1;
5305
+ o(g) {
5306
+ W(V), W(b.$$.fragment, g), W(L), W(Y.$$.fragment, g), W(j), ee = !1;
5335
5307
  },
5336
- d(i) {
5337
- i && A(t), r && r.d(i);
5308
+ d(g) {
5309
+ g && C(t), Q && Q.d(), V && V.d(), Ge(b), de[O].d(), Ge(Y), f[J].d(), w && w.d(), se.d(), e[41](null), Re = !1, ve(Ot);
5338
5310
  }
5339
5311
  };
5340
5312
  }
5341
5313
  function Ja(e, t, n) {
5342
- let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: l = "" } = t, { playercurrency: c = "" } = t, { showvaults: f = !0 } = t, { showtotalbalance: h = !0 } = t, { showclosebutton: d = !0 } = t, { showcurrencysymbol: v = !0 } = t, b = null, L = null, E = 0, O = 0, I = null, ie = null, F = null, te = "", ae = !0, se = !1, X = !1, he = !1, Oe = !1, le = !0, fe = [], Ee = [], Z = [], Y = [], de;
5343
- xa({ withLocale: "en", translations: {} }), Object.keys(Hn).forEach((p) => {
5344
- Sn(p, Hn[p]);
5314
+ let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: l = "" } = t, { playercurrency: c = "" } = t, { showvaults: d = "true" } = t, { showtotalbalance: h = "true" } = t, { showclosebutton: p = "true" } = t, { showcurrencysymbol: v = "true" } = t, b = null, N = null, _ = 0, O = 0, L = null, ae = null, D = null, ne = "", oe = !0, ue = !1, $ = !1, he = !1, Ie = !1, Y = [], me = [], Ke = [], J = [], j;
5315
+ xa({ withLocale: "en", translations: {} }), Object.keys(Pn).forEach((f) => {
5316
+ Hn(f, Pn[f]);
5345
5317
  });
5346
- const Je = () => {
5318
+ const st = () => {
5347
5319
  wa(o);
5348
- }, xe = () => {
5349
- fetch(l).then((p) => p.json()).then((p) => {
5350
- Object.keys(p).forEach((_) => {
5351
- Sn(_, p[_]);
5320
+ }, Ye = () => {
5321
+ fetch(l).then((f) => f.json()).then((f) => {
5322
+ Object.keys(f).forEach((x) => {
5323
+ Hn(x, f[x]);
5352
5324
  });
5353
- }).catch((p) => {
5354
- console.error("There was a problem with the translations request.", p);
5325
+ }).catch((f) => {
5326
+ console.error("There was a problem with the translations request.", f);
5355
5327
  });
5356
- }, Re = () => {
5357
- let p = document.createElement("style");
5358
- p.innerHTML = u, de.appendChild(p);
5359
- }, ut = () => {
5360
- let p, _ = new URL(s), N = document.createElement("style");
5361
- fetch(_.href).then((w) => w.text()).then((w) => {
5362
- N.innerHTML = w, p && clearTimeout(p), p = setTimeout(
5328
+ }, _e = () => {
5329
+ let f = document.createElement("style");
5330
+ f.innerHTML = u, j.appendChild(f);
5331
+ }, Le = () => {
5332
+ let f, x = new URL(s), w = document.createElement("style");
5333
+ fetch(x.href).then((A) => A.text()).then((A) => {
5334
+ w.innerHTML = A, f && clearTimeout(f), f = setTimeout(
5363
5335
  () => {
5364
- de.appendChild(N);
5336
+ j.appendChild(w);
5365
5337
  },
5366
5338
  1
5367
5339
  );
5368
5340
  });
5369
- }, ke = () => {
5370
- Ee.length !== 0 && (n(15, se = !se), window.postMessage(
5341
+ }, lt = () => {
5342
+ me.length !== 0 && (n(15, ue = !ue), window.postMessage(
5371
5343
  {
5372
- type: jt.VaultDropdownToggled,
5373
- state: se
5344
+ type: Xt.VaultDropdownToggled,
5345
+ state: ue
5374
5346
  },
5375
5347
  window.location.href
5376
5348
  ));
5377
- }, qe = () => {
5378
- n(19, le = !1), window.postMessage(
5349
+ }, Ce = () => {
5350
+ window.postMessage(
5379
5351
  {
5380
- type: jt.VaultWidgetClosed
5352
+ type: Xt.VaultWidgetClosed
5381
5353
  },
5382
5354
  window.location.href
5383
5355
  );
5384
- }, ne = () => {
5385
- n(14, ae = !0), Pe(), ge(), be(), De(), window.postMessage({ type: jt.VaultWidgetReset }, window.location.href);
5386
- }, we = () => {
5387
- n(14, ae = !0), n(9, O = 0);
5388
- }, Pe = () => {
5389
- n(11, ie = null);
5356
+ }, Ne = () => {
5357
+ n(14, oe = !0), ge(), Je(), be(), fe(), window.postMessage({ type: Xt.VaultWidgetReset }, window.location.href);
5358
+ }, re = () => {
5359
+ n(14, oe = !0), n(9, O = 0);
5390
5360
  }, ge = () => {
5391
- n(8, E = 0), n(9, O = 0);
5361
+ n(11, ae = null);
5362
+ }, Je = () => {
5363
+ n(8, _ = 0), n(9, O = 0);
5392
5364
  }, be = () => {
5393
- n(13, te = "");
5394
- }, De = () => {
5395
- n(12, F = null);
5396
- }, J = (p) => {
5397
- p && n(13, te = p);
5398
- }, Ae = ({ type: p, message: _, source: N = "" }) => {
5399
- let w;
5400
- switch (n(12, F = { message: _, source: N, type: p }), p) {
5401
- case Ce.error:
5402
- n(14, ae = !0), window.postMessage({ type: N, data: { type: p, message: _ } }, window.location.href);
5365
+ n(13, ne = "");
5366
+ }, fe = () => {
5367
+ n(12, D = null);
5368
+ }, ut = (f) => {
5369
+ f && n(13, ne = f);
5370
+ }, X = ({ type: f, message: x, source: w = "" }) => {
5371
+ let A;
5372
+ switch (n(12, D = { message: x, source: w, type: f }), f) {
5373
+ case Ee.error:
5374
+ n(14, oe = !0), window.postMessage({ type: w, data: { type: f, message: x } }, window.location.href);
5403
5375
  break;
5404
- case Ce.success:
5405
- n(14, ae = !0), window.postMessage({ type: N, data: { type: p, message: _ } }, window.location.href), w && clearTimeout(w), w = setTimeout(
5376
+ case Ee.success:
5377
+ n(14, oe = !0), window.postMessage({ type: w, data: { type: f, message: x } }, window.location.href), A && clearTimeout(A), A = setTimeout(
5406
5378
  () => {
5407
- De();
5379
+ fe();
5408
5380
  },
5409
5381
  Ca
5410
5382
  );
5411
5383
  break;
5412
5384
  }
5413
- }, ct = () => new Promise((p, _) => {
5414
- const N = F?.message.includes(Ta.InvalidSession);
5415
- N && _(), (E < 0 || E === null || isNaN(Number(E))) && (we(), Pe(), _(R("invalidValue"))), E > b?.amount && (we(), Pe(), _(R("exceededValue"))), E === 0 && E === 0 && !N && (ne(), _()), (!b || !L) && !N && _(), be(), p();
5416
- }), ye = async (p, _) => {
5417
- const N = await p.json();
5418
- return p?.status >= 200 && p?.status < 400 ? N : (_ === z.CheckWalletExchangeError && we(), !X && _ === z.BalanceError && (n(16, X = !0), n(17, he = !0)), !he && _ === z.CurrenciesError && n(17, he = !0), Ae({
5419
- type: Ce.error,
5420
- message: R(N?.thirdPartyResponse?.code) || R(N?.thirdPartyResponse?.errorCode) || "generalError",
5421
- source: _
5385
+ }, Nt = () => new Promise((f, x) => {
5386
+ const w = D?.message.includes(Ta.InvalidSession);
5387
+ w && x(), (_ < 0 || _ === null || isNaN(Number(_))) && (re(), ge(), x(R("invalidValue"))), _ > b?.amount && (re(), ge(), x(R("exceededValue"))), _ === 0 && _ === 0 && !w && (Ne(), x()), (!b || !N) && !w && x(), be(), f();
5388
+ }), Te = async (f, x) => {
5389
+ const w = await f.json();
5390
+ return f?.status >= 200 && f?.status < 400 ? w : (x === K.CheckWalletExchangeError && re(), !$ && x === K.BalanceError && (n(16, $ = !0), n(17, he = !0)), !he && x === K.CurrenciesError && n(17, he = !0), X({
5391
+ type: Ee.error,
5392
+ message: R(w?.thirdPartyResponse?.code) || R(w?.thirdPartyResponse?.errorCode) || "generalError",
5393
+ source: x
5422
5394
  }));
5423
- }, q = () => new Promise((p, _) => {
5424
- const N = new URL(`${a}/v1/player/${i}/wallet-exchange/currencies`);
5425
- fetch(N, {
5395
+ }, Oe = () => new Promise((f, x) => {
5396
+ const w = new URL(`${a}/v1/player/${i}/wallet-exchange/currencies`);
5397
+ fetch(w, {
5426
5398
  method: "GET",
5427
5399
  headers: {
5428
5400
  "X-SessionId": r,
5429
5401
  "Content-Type": "application/json",
5430
5402
  Accept: "application/json"
5431
5403
  }
5432
- }).then((k) => ye(k, z.CurrenciesError)).then((k) => {
5433
- p(k?.currencies);
5434
- }).catch((k) => {
5435
- Ae({
5436
- type: Ce.error,
5404
+ }).then((Z) => Te(Z, K.CurrenciesError)).then((Z) => {
5405
+ f(Z?.currencies);
5406
+ }).catch((Z) => {
5407
+ X({
5408
+ type: Ee.error,
5437
5409
  message: R("generalError"),
5438
- source: z.CurrenciesError
5439
- }), _(), console.error("There was an error on the allowed currencies request.", k);
5410
+ source: K.CurrenciesError
5411
+ }), x(), console.error("There was an error on the allowed currencies request.", Z);
5440
5412
  }).finally(() => {
5441
5413
  n(17, he = !0);
5442
5414
  });
5443
- }), et = ({ data: p, shouldUpdateSelectedCurrencies: _, allowed: N = [] }) => {
5444
- const { items: w = [], totalAmount: k = {}, totalRealAmount: g } = p || {};
5445
- n(10, I = Object.entries(g || k).map(([$ = "", ce = 0]) => ({ currency: $, amount: ce }))[0]);
5446
- let S = null;
5447
- const Ie = new Map(N.map(($) => [$.code, $]));
5448
- for (const $ of w)
5449
- if ($?.type === In.Real) {
5450
- const ce = Ie.get($?.currency);
5451
- if (ce && ce.code === $?.currency) {
5452
- const ve = {
5453
- ...$,
5454
- ...ce,
5455
- symbol: Aa[$?.currency]
5415
+ }), ee = ({ data: f, shouldUpdateSelectedCurrencies: x, allowed: w = [] }) => {
5416
+ const { items: A = [], totalAmount: Z = {}, totalRealAmount: se } = f || {};
5417
+ n(10, L = Object.entries(se || Z).map(([M = "", ye = 0]) => ({ currency: M, amount: ye }))[0]);
5418
+ let g = null;
5419
+ const H = new Map(w.map((M) => [M.code, M]));
5420
+ for (const M of A)
5421
+ if (M?.type === Ln.Real) {
5422
+ const ye = H.get(M?.currency);
5423
+ if (ye && ye.code === M?.currency) {
5424
+ const ce = {
5425
+ ...M,
5426
+ ...ye,
5427
+ symbol: Aa[M?.currency]
5456
5428
  };
5457
- n(37, fe = [...fe, ve]), $?.currency === I?.currency && n(10, I = { ...I, ...ve }), $?.currency !== I?.currency && $?.walletAccountType === In.Vault && n(20, Ee = [...Ee, ve]), _ && $?.amount > 0 && n(5, b = I?.currency ? I : S), b && b?.currency === $?.currency && n(5, b = ve), L && L?.currency === $?.currency && n(6, L = ve);
5429
+ n(36, Y = [...Y, ce]), M?.currency === L?.currency && n(10, L = { ...L, ...ce }), M?.currency !== L?.currency && M?.walletAccountType === Ln.Vault && n(19, me = [...me, ce]), x && M?.amount > 0 && n(5, b = L?.currency ? L : g), b && b?.currency === M?.currency && n(5, b = ce), N && N?.currency === M?.currency && n(6, N = ce);
5458
5430
  }
5459
5431
  }
5460
- }, tt = (p = !0) => {
5461
- const _ = new URL(`${a}/v2/player/${i}/balance`);
5462
- fetch(_, {
5432
+ }, Re = (f = !0) => {
5433
+ const x = new URL(`${a}/v2/player/${i}/balance`);
5434
+ fetch(x, {
5463
5435
  method: "GET",
5464
5436
  headers: {
5465
5437
  "X-SessionId": r,
5466
5438
  "Content-Type": "application/json",
5467
5439
  Accept: "application/json"
5468
5440
  }
5469
- }).then((w) => ye(w, z.BalanceError)).then((w) => {
5470
- w && q().then((k) => {
5471
- n(37, fe = []), n(20, Ee = []), et({
5472
- data: w,
5473
- shouldUpdateSelectedCurrencies: p,
5474
- allowed: k
5441
+ }).then((A) => Te(A, K.BalanceError)).then((A) => {
5442
+ A && Oe().then((Z) => {
5443
+ n(36, Y = []), n(19, me = []), ee({
5444
+ data: A,
5445
+ shouldUpdateSelectedCurrencies: f,
5446
+ allowed: Z
5475
5447
  });
5476
5448
  });
5477
- }).catch((w) => {
5478
- Ae({
5479
- type: Ce.error,
5449
+ }).catch((A) => {
5450
+ X({
5451
+ type: Ee.error,
5480
5452
  message: R("generalError"),
5481
- source: z.BalanceError
5482
- }), console.error("There was an error with the player balance request.", w);
5453
+ source: K.BalanceError
5454
+ }), console.error("There was an error with the player balance request.", A);
5483
5455
  }).finally(() => {
5484
- n(16, X = !0);
5456
+ n(16, $ = !0);
5485
5457
  });
5486
- }, V = Sa(() => {
5487
- ct().then(() => {
5488
- const p = new URL(`${a}/v2/player/${i}/check/wallet-exchange`), _ = {
5458
+ }, Q = Sa(() => {
5459
+ Nt().then(() => {
5460
+ const f = new URL(`${a}/v2/player/${i}/check/wallet-exchange`), x = {
5489
5461
  userId: i,
5490
- amount: E,
5462
+ amount: _,
5491
5463
  currency: b?.currency,
5492
5464
  fromCurrency: b?.currency,
5493
- toCurrency: L?.currency,
5465
+ toCurrency: N?.currency,
5494
5466
  payload: { PlayerCurrency: c }
5495
- }, N = {
5467
+ }, w = {
5496
5468
  method: "POST",
5497
5469
  headers: {
5498
5470
  "X-SessionId": r,
5499
5471
  "Content-Type": "application/json",
5500
5472
  Accept: "application/json"
5501
5473
  },
5502
- body: Ln(_)
5474
+ body: Nn(x)
5503
5475
  };
5504
- fetch(p, N).then((w) => ye(w, z.CheckWalletExchangeError)).then((w) => {
5505
- w && (F?.source === z.CheckWalletExchangeError && De(), Array.isArray(w?.fees?.fees) && n(11, ie = w.fees.fees.find((k) => k.id)), Array.isArray(w?.walletActions) && n(9, O = w.walletActions.find((k) => k?.directionName === "Credit")?.amount || 0), E > 0 && b?.currency && L?.currency && c && n(14, ae = !1));
5506
- }).catch((w) => {
5507
- Ae({
5508
- type: Ce.error,
5476
+ fetch(f, w).then((A) => Te(A, K.CheckWalletExchangeError)).then((A) => {
5477
+ A && (D?.source === K.CheckWalletExchangeError && fe(), Array.isArray(A?.fees?.fees) && n(11, ae = A.fees.fees.find((Z) => Z.id)), Array.isArray(A?.walletActions) && n(9, O = A.walletActions.find((Z) => Z?.directionName === "Credit")?.amount || 0), _ > 0 && b?.currency && N?.currency && c && n(14, oe = !1));
5478
+ }).catch((A) => {
5479
+ X({
5480
+ type: Ee.error,
5509
5481
  message: R("generalError"),
5510
- source: z.CheckWalletExchangeError
5511
- }), console.error("There was a problem with the wallet exchange request.", w);
5482
+ source: K.CheckWalletExchangeError
5483
+ }), console.error("There was a problem with the wallet exchange request.", A);
5512
5484
  });
5513
- }).catch((p) => {
5514
- J(p);
5485
+ }).catch((f) => {
5486
+ ut(f);
5515
5487
  });
5516
- }, 500), Rt = (p) => {
5517
- const _ = p.target.value;
5518
- if (_.length <= Ba) {
5519
- const [N, w] = _.split(".");
5520
- w && w.length >= b?.precision && n(8, E = parseFloat(N + "." + w.slice(0, b?.precision)));
5488
+ }, 500), V = (f) => {
5489
+ const x = f.target.value;
5490
+ if (x.length <= Ba) {
5491
+ const [w, A] = x.split(".");
5492
+ A && A.length >= b?.precision && n(8, _ = parseFloat(w + "." + A.slice(0, b?.precision)));
5521
5493
  }
5522
- V();
5523
- }, ht = (p) => {
5524
- const _ = p.data;
5525
- [">", "<", ","].includes(_) && p.preventDefault(), _ && !_.match(/[\d.]/) && p.preventDefault(), _ === "." && p.target.value.includes(".") && p.preventDefault();
5526
- }, ft = () => {
5527
- const p = new URL(`${a}/v2/player/${i}/wallet-exchange`);
5528
- n(18, Oe = !0);
5529
- const _ = {
5494
+ Q();
5495
+ }, Rt = (f) => {
5496
+ const x = f.data;
5497
+ [">", "<", ","].includes(x) && f.preventDefault(), x && !x.match(/[\d.]/) && f.preventDefault(), x === "." && f.target.value.includes(".") && f.preventDefault();
5498
+ }, ct = () => {
5499
+ const f = new URL(`${a}/v2/player/${i}/wallet-exchange`);
5500
+ n(18, Ie = !0);
5501
+ const x = {
5530
5502
  userId: i,
5531
- amount: E,
5503
+ amount: _,
5532
5504
  currency: b?.currency,
5533
5505
  fromCurrency: b?.currency,
5534
- toCurrency: L?.currency,
5506
+ toCurrency: N?.currency,
5535
5507
  payload: { PlayerCurrency: c }
5536
- }, N = {
5508
+ }, w = {
5537
5509
  method: "PUT",
5538
5510
  headers: {
5539
5511
  "X-SessionId": r,
5540
5512
  "Content-Type": "application/json",
5541
5513
  Accept: "application/json"
5542
5514
  },
5543
- body: Ln(_)
5515
+ body: Nn(x)
5544
5516
  };
5545
- fetch(p, N).then((w) => ye(w, z.WalletExchangeError)).then((w) => {
5546
- w && (Ae({
5547
- type: Ce.success,
5517
+ fetch(f, w).then((A) => Te(A, K.WalletExchangeError)).then((A) => {
5518
+ A && (X({
5519
+ type: Ee.success,
5548
5520
  message: R("exchangeSuccess"),
5549
5521
  source: "ExchangeSuccess"
5550
- }), tt(!1));
5551
- }).catch((w) => {
5552
- Ae({
5553
- type: Ce.error,
5522
+ }), Re(!1));
5523
+ }).catch((A) => {
5524
+ X({
5525
+ type: Ee.error,
5554
5526
  message: R("generalError"),
5555
- source: z.WalletExchangeError
5556
- }), console.error("There was an error with the wallet exchange request.", w);
5527
+ source: K.WalletExchangeError
5528
+ }), console.error("There was an error with the wallet exchange request.", A);
5557
5529
  }).finally(() => {
5558
- n(18, Oe = !1), ge(), Pe();
5530
+ n(18, Ie = !1), Je(), ge();
5559
5531
  });
5560
- }, ue = (p) => {
5561
- const { data: { type: _ } = {} } = p || {};
5562
- switch (_) {
5563
- case Pn.ResetVaultWidget:
5564
- ne();
5532
+ }, qe = (f) => {
5533
+ const { data: { type: x } = {} } = f || {};
5534
+ switch (x) {
5535
+ case In.ResetVaultWidget:
5536
+ Ne();
5565
5537
  break;
5566
- case Pn.CloseVaultWidget:
5567
- qe();
5538
+ case In.CloseVaultWidget:
5539
+ Ce();
5568
5540
  break;
5569
5541
  }
5570
5542
  };
5571
- Br(() => (window.addEventListener("message", ue), () => {
5572
- window.removeEventListener("message", ue);
5543
+ Br(() => (window.addEventListener("message", qe), () => {
5544
+ window.removeEventListener("message", qe);
5573
5545
  }));
5574
- function dt() {
5575
- E = wt(this.value), n(8, E);
5546
+ function de() {
5547
+ _ = Et(this.value), n(8, _);
5576
5548
  }
5577
- function kt(p) {
5578
- b = p, n(5, b);
5549
+ function ht(f) {
5550
+ b = f, n(5, b);
5579
5551
  }
5580
- function pt() {
5581
- O = wt(this.value), n(9, O);
5552
+ function kt() {
5553
+ O = Et(this.value), n(9, O);
5582
5554
  }
5583
- function mt(p) {
5584
- L = p, n(6, L);
5555
+ function ft(f) {
5556
+ N = f, n(6, N);
5585
5557
  }
5586
- function pe(p) {
5587
- Ge[p ? "unshift" : "push"](() => {
5588
- de = p, n(7, de);
5558
+ function dt(f) {
5559
+ Ue[f ? "unshift" : "push"](() => {
5560
+ j = f, n(7, j);
5589
5561
  });
5590
5562
  }
5591
- return e.$$set = (p) => {
5592
- "session" in p && n(0, r = p.session), "userid" in p && n(30, i = p.userid), "endpoint" in p && n(31, a = p.endpoint), "lang" in p && n(32, o = p.lang), "clientstyling" in p && n(33, u = p.clientstyling), "clientstylingurl" in p && n(34, s = p.clientstylingurl), "translationurl" in p && n(35, l = p.translationurl), "playercurrency" in p && n(36, c = p.playercurrency), "showvaults" in p && n(1, f = p.showvaults), "showtotalbalance" in p && n(2, h = p.showtotalbalance), "showclosebutton" in p && n(3, d = p.showclosebutton), "showcurrencysymbol" in p && n(4, v = p.showcurrencysymbol);
5563
+ return e.$$set = (f) => {
5564
+ "session" in f && n(0, r = f.session), "userid" in f && n(29, i = f.userid), "endpoint" in f && n(30, a = f.endpoint), "lang" in f && n(31, o = f.lang), "clientstyling" in f && n(32, u = f.clientstyling), "clientstylingurl" in f && n(33, s = f.clientstylingurl), "translationurl" in f && n(34, l = f.translationurl), "playercurrency" in f && n(35, c = f.playercurrency), "showvaults" in f && n(1, d = f.showvaults), "showtotalbalance" in f && n(2, h = f.showtotalbalance), "showclosebutton" in f && n(3, p = f.showclosebutton), "showcurrencysymbol" in f && n(4, v = f.showcurrencysymbol);
5593
5565
  }, e.$$.update = () => {
5594
5566
  e.$$.dirty[1] & /*lang*/
5595
- 2 && o && Je(), e.$$.dirty[0] & /*session, userid*/
5596
- 1073741825 | e.$$.dirty[1] & /*endpoint, playercurrency*/
5597
- 33 && r && i && a && c && tt(), e.$$.dirty[0] & /*customStylingContainer*/
5567
+ 1 && o && st(), e.$$.dirty[0] & /*session, userid, endpoint*/
5568
+ 1610612737 | e.$$.dirty[1] & /*playercurrency*/
5569
+ 16 && r && i && a && c && Re(), e.$$.dirty[0] & /*customStylingContainer*/
5598
5570
  128 | e.$$.dirty[1] & /*clientstyling*/
5599
- 4 && u && de && Re(), e.$$.dirty[0] & /*customStylingContainer*/
5571
+ 2 && u && j && _e(), e.$$.dirty[0] & /*customStylingContainer*/
5600
5572
  128 | e.$$.dirty[1] & /*clientstylingurl*/
5601
- 8 && s && de && ut(), e.$$.dirty[1] & /*translationurl*/
5602
- 16 && l && xe(), e.$$.dirty[0] & /*selectedCurrencyTo*/
5573
+ 4 && s && j && Le(), e.$$.dirty[1] & /*translationurl*/
5574
+ 8 && l && Ye(), e.$$.dirty[0] & /*selectedCurrencyTo*/
5603
5575
  64 | e.$$.dirty[1] & /*filteredBalances*/
5604
- 64 && n(21, Z = fe.filter((p) => p?.amount > 0 && p?.currency !== L?.currency)), e.$$.dirty[0] & /*selectedCurrencyFrom*/
5576
+ 32 && n(20, Ke = Y.filter((f) => f?.amount > 0 && f?.currency !== N?.currency)), e.$$.dirty[0] & /*selectedCurrencyFrom*/
5605
5577
  32 | e.$$.dirty[1] & /*filteredBalances*/
5606
- 64 && n(22, Y = fe.filter((p) => b?.currency !== p?.currency));
5578
+ 32 && n(21, J = Y.filter((f) => b?.currency !== f?.currency));
5607
5579
  }, [
5608
5580
  r,
5609
- f,
5610
- h,
5611
5581
  d,
5582
+ h,
5583
+ p,
5612
5584
  v,
5613
5585
  b,
5614
- L,
5615
- de,
5616
- E,
5586
+ N,
5587
+ j,
5588
+ _,
5617
5589
  O,
5618
- I,
5619
- ie,
5620
- F,
5621
- te,
5590
+ L,
5622
5591
  ae,
5623
- se,
5624
- X,
5625
- he,
5626
- Oe,
5627
- le,
5628
- Ee,
5629
- Z,
5630
- Y,
5631
- ke,
5632
- qe,
5592
+ D,
5633
5593
  ne,
5594
+ oe,
5595
+ ue,
5596
+ $,
5597
+ he,
5598
+ Ie,
5599
+ me,
5600
+ Ke,
5601
+ J,
5602
+ lt,
5603
+ Ce,
5604
+ Ne,
5605
+ Q,
5634
5606
  V,
5635
5607
  Rt,
5636
- ht,
5637
- ft,
5608
+ ct,
5638
5609
  i,
5639
5610
  a,
5640
5611
  o,
@@ -5642,31 +5613,31 @@ function Ja(e, t, n) {
5642
5613
  s,
5643
5614
  l,
5644
5615
  c,
5645
- fe,
5646
- dt,
5616
+ Y,
5617
+ de,
5618
+ ht,
5647
5619
  kt,
5648
- pt,
5649
- mt,
5650
- pe
5620
+ ft,
5621
+ dt
5651
5622
  ];
5652
5623
  }
5653
- class qa extends ln {
5624
+ class qa extends un {
5654
5625
  constructor(t) {
5655
- super(), on(
5626
+ super(), sn(
5656
5627
  this,
5657
5628
  t,
5658
5629
  Ja,
5659
5630
  Ya,
5660
- St,
5631
+ Tt,
5661
5632
  {
5662
5633
  session: 0,
5663
- userid: 30,
5664
- endpoint: 31,
5665
- lang: 32,
5666
- clientstyling: 33,
5667
- clientstylingurl: 34,
5668
- translationurl: 35,
5669
- playercurrency: 36,
5634
+ userid: 29,
5635
+ endpoint: 30,
5636
+ lang: 31,
5637
+ clientstyling: 32,
5638
+ clientstylingurl: 33,
5639
+ translationurl: 34,
5640
+ playercurrency: 35,
5670
5641
  showvaults: 1,
5671
5642
  showtotalbalance: 2,
5672
5643
  showclosebutton: 3,
@@ -5680,76 +5651,76 @@ class qa extends ln {
5680
5651
  return this.$$.ctx[0];
5681
5652
  }
5682
5653
  set session(t) {
5683
- this.$$set({ session: t }), j();
5654
+ this.$$set({ session: t }), G();
5684
5655
  }
5685
5656
  get userid() {
5686
- return this.$$.ctx[30];
5657
+ return this.$$.ctx[29];
5687
5658
  }
5688
5659
  set userid(t) {
5689
- this.$$set({ userid: t }), j();
5660
+ this.$$set({ userid: t }), G();
5690
5661
  }
5691
5662
  get endpoint() {
5692
- return this.$$.ctx[31];
5663
+ return this.$$.ctx[30];
5693
5664
  }
5694
5665
  set endpoint(t) {
5695
- this.$$set({ endpoint: t }), j();
5666
+ this.$$set({ endpoint: t }), G();
5696
5667
  }
5697
5668
  get lang() {
5698
- return this.$$.ctx[32];
5669
+ return this.$$.ctx[31];
5699
5670
  }
5700
5671
  set lang(t) {
5701
- this.$$set({ lang: t }), j();
5672
+ this.$$set({ lang: t }), G();
5702
5673
  }
5703
5674
  get clientstyling() {
5704
- return this.$$.ctx[33];
5675
+ return this.$$.ctx[32];
5705
5676
  }
5706
5677
  set clientstyling(t) {
5707
- this.$$set({ clientstyling: t }), j();
5678
+ this.$$set({ clientstyling: t }), G();
5708
5679
  }
5709
5680
  get clientstylingurl() {
5710
- return this.$$.ctx[34];
5681
+ return this.$$.ctx[33];
5711
5682
  }
5712
5683
  set clientstylingurl(t) {
5713
- this.$$set({ clientstylingurl: t }), j();
5684
+ this.$$set({ clientstylingurl: t }), G();
5714
5685
  }
5715
5686
  get translationurl() {
5716
- return this.$$.ctx[35];
5687
+ return this.$$.ctx[34];
5717
5688
  }
5718
5689
  set translationurl(t) {
5719
- this.$$set({ translationurl: t }), j();
5690
+ this.$$set({ translationurl: t }), G();
5720
5691
  }
5721
5692
  get playercurrency() {
5722
- return this.$$.ctx[36];
5693
+ return this.$$.ctx[35];
5723
5694
  }
5724
5695
  set playercurrency(t) {
5725
- this.$$set({ playercurrency: t }), j();
5696
+ this.$$set({ playercurrency: t }), G();
5726
5697
  }
5727
5698
  get showvaults() {
5728
5699
  return this.$$.ctx[1];
5729
5700
  }
5730
5701
  set showvaults(t) {
5731
- this.$$set({ showvaults: t }), j();
5702
+ this.$$set({ showvaults: t }), G();
5732
5703
  }
5733
5704
  get showtotalbalance() {
5734
5705
  return this.$$.ctx[2];
5735
5706
  }
5736
5707
  set showtotalbalance(t) {
5737
- this.$$set({ showtotalbalance: t }), j();
5708
+ this.$$set({ showtotalbalance: t }), G();
5738
5709
  }
5739
5710
  get showclosebutton() {
5740
5711
  return this.$$.ctx[3];
5741
5712
  }
5742
5713
  set showclosebutton(t) {
5743
- this.$$set({ showclosebutton: t }), j();
5714
+ this.$$set({ showclosebutton: t }), G();
5744
5715
  }
5745
5716
  get showcurrencysymbol() {
5746
5717
  return this.$$.ctx[4];
5747
5718
  }
5748
5719
  set showcurrencysymbol(t) {
5749
- this.$$set({ showcurrencysymbol: t }), j();
5720
+ this.$$set({ showcurrencysymbol: t }), G();
5750
5721
  }
5751
5722
  }
5752
- sn(qa, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: { type: "Boolean" }, showtotalbalance: { type: "Boolean" }, showclosebutton: { type: "Boolean" }, showcurrencysymbol: { type: "Boolean" } }, [], [], !0);
5723
+ ln(qa, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {} }, [], [], !0);
5753
5724
  export {
5754
5725
  qa as P
5755
5726
  };