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