@everymatrix/casino-header-controller-nd 1.53.12 → 1.54.0

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.
Files changed (28) hide show
  1. package/components/{CasinoHamburgerMenuNd-CkPg6ouB.js → CasinoHamburgerMenuNd-B1RMQpdw.js} +1238 -1200
  2. package/components/CasinoHamburgerMenuNd-BGgAAyRV.cjs +5 -0
  3. package/components/{CasinoHeaderControllerNd-BX0AvD48.js → CasinoHeaderControllerNd-Bl26nr2z.js} +284 -265
  4. package/components/CasinoHeaderControllerNd-DjK9vryV.cjs +1 -0
  5. package/components/{PlayerAccountBalanceModalNd-K5u0ko-m.js → PlayerAccountBalanceModalNd-CivjuTyh.js} +516 -487
  6. package/components/PlayerAccountBalanceModalNd-DODZKkC4.cjs +13 -0
  7. package/components/PlayerDeposit-2TMJs9YE.cjs +1 -0
  8. package/components/{PlayerDeposit-DsOspOgB.js → PlayerDeposit-C1xb413z.js} +1 -1
  9. package/es2015/casino-header-controller-nd.cjs +1 -0
  10. package/es2015/casino-header-controller-nd.js +16 -0
  11. package/package.json +14 -12
  12. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  13. package/stencil/gamification-dropdown-BOIBSmd0.cjs +1 -0
  14. package/stencil/gamification-dropdown-DZ47pXyT.js +25 -0
  15. package/stencil/gamification-dropdown-ae7b7c69-38_9Tb2L.cjs +1 -0
  16. package/stencil/{gamification-dropdown-ae7b7c69-C61VnAKy.js → gamification-dropdown-ae7b7c69-DHIEd3U5.js} +60 -42
  17. package/stencil/gamification-dropdown_4-DIRJt3N_.cjs +192 -0
  18. package/stencil/{gamification-dropdown_4-AbKMnPZ5.js → gamification-dropdown_4-DJIAHy0R.js} +89 -71
  19. package/stencil/index-ea7720e4-WHyF1VYs.cjs +1 -0
  20. package/stencil/{index-ea7720e4-FqoOOnHW.js → index-ea7720e4-q-tkv4M2.js} +231 -204
  21. package/stencil/player-elevate-card-DA96MB5K.cjs +64 -0
  22. package/stencil/{player-elevate-card-items-9d490a3b-BxciIvXh.js → player-elevate-card-items-9d490a3b-BaYWiFCE.js} +5 -5
  23. package/stencil/player-elevate-card-items-9d490a3b-My4ySrE8.cjs +1 -0
  24. package/stencil/{player-elevate-card-B4AMnqub.js → player-elevate-card-lt9Sqflt.js} +2 -2
  25. package/stencil/player-elevate-pointcard-B7l2JzLx.cjs +1 -0
  26. package/stencil/{player-elevate-pointcard-BeXukLE-.js → player-elevate-pointcard-BYjxOwm5.js} +2 -2
  27. package/esnext/casino-header-controller-nd.js +0 -14
  28. package/stencil/gamification-dropdown-Rl66gqyp.js +0 -7
@@ -1,11 +1,39 @@
1
- import { b as dt, $ as ut, L as ft, S as pt, i as ht, f as Y, c as mt, s as gt, d as vt, g as V, h as ae, j as _, l as me, m as T, D as We, r as ge, v as yt, w as wt, n as Ne, F as bt, B as pe, z as Qe, x as Bt, C as he, y as Ve, A as it, H as Tt, J as Ct } from "./CasinoHamburgerMenuNd-CkPg6ouB.js";
2
- function Ze(i, e) {
3
- dt(i, e);
1
+ var gt = Object.defineProperty, mt = Object.defineProperties;
2
+ var vt = Object.getOwnPropertyDescriptors;
3
+ var Qe = Object.getOwnPropertySymbols;
4
+ var yt = Object.prototype.hasOwnProperty, wt = Object.prototype.propertyIsEnumerable;
5
+ var Ze = (o, e, t) => e in o ? gt(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, $e = (o, e) => {
6
+ for (var t in e || (e = {}))
7
+ yt.call(e, t) && Ze(o, t, e[t]);
8
+ if (Qe)
9
+ for (var t of Qe(e))
10
+ wt.call(e, t) && Ze(o, t, e[t]);
11
+ return o;
12
+ }, et = (o, e) => mt(o, vt(e));
13
+ var tt = (o, e, t) => new Promise((s, u) => {
14
+ var d = (m) => {
15
+ try {
16
+ h(t.next(m));
17
+ } catch (y) {
18
+ u(y);
19
+ }
20
+ }, g = (m) => {
21
+ try {
22
+ h(t.throw(m));
23
+ } catch (y) {
24
+ u(y);
25
+ }
26
+ }, h = (m) => m.done ? s(m.value) : Promise.resolve(m.value).then(d, g);
27
+ h((t = t.apply(o, e)).next());
28
+ });
29
+ import { b as bt, $ as Bt, L as Tt, S as Ct, i as St, f as Y, c as _t, s as At, d as Rt, g as V, h as ae, j as _, l as ge, m as T, D as We, r as me, v as Et, w as xt, n as Ne, F as Mt, B as pe, z as nt, x as Dt, C as he, y as Ve, A as ut, H as Lt, J as Ot } from "./CasinoHamburgerMenuNd-B1RMQpdw.js";
30
+ function at(o, e) {
31
+ bt(o, e);
4
32
  }
5
- function St(i) {
6
- ut.set(i);
33
+ function kt(o) {
34
+ Bt.set(o);
7
35
  }
8
- const $e = {
36
+ const ot = {
9
37
  en: {
10
38
  Title: "Your Balance",
11
39
  Total: "Total Balance",
@@ -211,32 +239,32 @@ var qe = { exports: {} };
211
239
  * Available under MIT License (MIT)
212
240
  * https://github.com/Yaffle/EventSource/
213
241
  */
214
- (function(i, e) {
215
- (function(n) {
216
- var s = n.setTimeout, f = n.clearTimeout, d = n.XMLHttpRequest, h = n.XDomainRequest, p = n.ActiveXObject, g = n.EventSource, v = n.document, R = n.Promise, L = n.fetch, M = n.Response, F = n.TextDecoder, E = n.TextEncoder, j = n.AbortController;
217
- if (typeof window < "u" && typeof v < "u" && !("readyState" in v) && v.body == null && (v.readyState = "loading", window.addEventListener("load", function(a) {
218
- v.readyState = "complete";
219
- }, !1)), d == null && p != null && (d = function() {
220
- return new p("Microsoft.XMLHTTP");
242
+ (function(o, e) {
243
+ (function(t) {
244
+ var s = t.setTimeout, u = t.clearTimeout, d = t.XMLHttpRequest, g = t.XDomainRequest, h = t.ActiveXObject, m = t.EventSource, y = t.document, R = t.Promise, L = t.fetch, M = t.Response, F = t.TextDecoder, E = t.TextEncoder, j = t.AbortController;
245
+ if (typeof window != "undefined" && typeof y != "undefined" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(a) {
246
+ y.readyState = "complete";
247
+ }, !1)), d == null && h != null && (d = function() {
248
+ return new h("Microsoft.XMLHTTP");
221
249
  }), Object.create == null && (Object.create = function(a) {
222
- function t() {
250
+ function n() {
223
251
  }
224
- return t.prototype = a, new t();
252
+ return n.prototype = a, new n();
225
253
  }), Date.now || (Date.now = function() {
226
254
  return (/* @__PURE__ */ new Date()).getTime();
227
255
  }), j == null) {
228
256
  var B = L;
229
- L = function(a, t) {
230
- var r = t.signal;
231
- return B(a, { headers: t.headers, credentials: t.credentials, cache: t.cache }).then(function(o) {
232
- var l = o.body.getReader();
233
- return r._reader = l, r._aborted && r._reader.cancel(), {
234
- status: o.status,
235
- statusText: o.statusText,
236
- headers: o.headers,
257
+ L = function(a, n) {
258
+ var i = n.signal;
259
+ return B(a, { headers: n.headers, credentials: n.credentials, cache: n.cache }).then(function(r) {
260
+ var c = r.body.getReader();
261
+ return i._reader = c, i._aborted && i._reader.cancel(), {
262
+ status: r.status,
263
+ statusText: r.statusText,
264
+ headers: r.headers,
237
265
  body: {
238
266
  getReader: function() {
239
- return l;
267
+ return c;
240
268
  }
241
269
  }
242
270
  };
@@ -254,7 +282,7 @@ var qe = { exports: {} };
254
282
  this.bitsNeeded = 0, this.codePoint = 0;
255
283
  }
256
284
  C.prototype.decode = function(a) {
257
- function t(S, D, b) {
285
+ function n(S, D, b) {
258
286
  if (b === 1)
259
287
  return S >= 128 >> D && S << D <= 2047;
260
288
  if (b === 2)
@@ -263,7 +291,7 @@ var qe = { exports: {} };
263
291
  return S >= 65536 >> D && S << D <= 1114111;
264
292
  throw new Error();
265
293
  }
266
- function r(S, D) {
294
+ function i(S, D) {
267
295
  if (S === 6 * 1)
268
296
  return D >> 6 > 15 ? 3 : D > 31 ? 2 : 1;
269
297
  if (S === 6 * 2)
@@ -272,11 +300,11 @@ var qe = { exports: {} };
272
300
  return 3;
273
301
  throw new Error();
274
302
  }
275
- for (var o = 65533, l = "", u = this.bitsNeeded, y = this.codePoint, m = 0; m < a.length; m += 1) {
276
- var w = a[m];
277
- u !== 0 && (w < 128 || w > 191 || !t(y << 6 | w & 63, u - 6, r(u, y))) && (u = 0, y = o, l += String.fromCharCode(y)), u === 0 ? (w >= 0 && w <= 127 ? (u = 0, y = w) : w >= 192 && w <= 223 ? (u = 6 * 1, y = w & 31) : w >= 224 && w <= 239 ? (u = 6 * 2, y = w & 15) : w >= 240 && w <= 247 ? (u = 6 * 3, y = w & 7) : (u = 0, y = o), u !== 0 && !t(y, u, r(u, y)) && (u = 0, y = o)) : (u -= 6, y = y << 6 | w & 63), u === 0 && (y <= 65535 ? l += String.fromCharCode(y) : (l += String.fromCharCode(55296 + (y - 65535 - 1 >> 10)), l += String.fromCharCode(56320 + (y - 65535 - 1 & 1023))));
303
+ for (var r = 65533, c = "", f = this.bitsNeeded, v = this.codePoint, p = 0; p < a.length; p += 1) {
304
+ var w = a[p];
305
+ f !== 0 && (w < 128 || w > 191 || !n(v << 6 | w & 63, f - 6, i(f, v))) && (f = 0, v = r, c += String.fromCharCode(v)), f === 0 ? (w >= 0 && w <= 127 ? (f = 0, v = w) : w >= 192 && w <= 223 ? (f = 6 * 1, v = w & 31) : w >= 224 && w <= 239 ? (f = 6 * 2, v = w & 15) : w >= 240 && w <= 247 ? (f = 6 * 3, v = w & 7) : (f = 0, v = r), f !== 0 && !n(v, f, i(f, v)) && (f = 0, v = r)) : (f -= 6, v = v << 6 | w & 63), f === 0 && (v <= 65535 ? c += String.fromCharCode(v) : (c += String.fromCharCode(55296 + (v - 65535 - 1 >> 10)), c += String.fromCharCode(56320 + (v - 65535 - 1 & 1023))));
278
306
  }
279
- return this.bitsNeeded = u, this.codePoint = y, l;
307
+ return this.bitsNeeded = f, this.codePoint = v, c;
280
308
  };
281
309
  var O = function() {
282
310
  try {
@@ -292,130 +320,130 @@ var qe = { exports: {} };
292
320
  function P(a) {
293
321
  this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = k, this.onload = k, this.onerror = k, this.onreadystatechange = k, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = k;
294
322
  }
295
- P.prototype.open = function(a, t) {
323
+ P.prototype.open = function(a, n) {
296
324
  this._abort(!0);
297
- var r = this, o = this._xhr, l = 1, u = 0;
325
+ var i = this, r = this._xhr, c = 1, f = 0;
298
326
  this._abort = function(b) {
299
- r._sendTimeout !== 0 && (f(r._sendTimeout), r._sendTimeout = 0), (l === 1 || l === 2 || l === 3) && (l = 4, o.onload = k, o.onerror = k, o.onabort = k, o.onprogress = k, o.onreadystatechange = k, o.abort(), u !== 0 && (f(u), u = 0), b || (r.readyState = 4, r.onabort(null), r.onreadystatechange())), l = 0;
327
+ i._sendTimeout !== 0 && (u(i._sendTimeout), i._sendTimeout = 0), (c === 1 || c === 2 || c === 3) && (c = 4, r.onload = k, r.onerror = k, r.onabort = k, r.onprogress = k, r.onreadystatechange = k, r.abort(), f !== 0 && (u(f), f = 0), b || (i.readyState = 4, i.onabort(null), i.onreadystatechange())), c = 0;
300
328
  };
301
- var y = function() {
302
- if (l === 1) {
329
+ var v = function() {
330
+ if (c === 1) {
303
331
  var b = 0, I = "", ce = void 0;
304
- if ("contentType" in o)
305
- b = 200, I = "OK", ce = o.contentType;
332
+ if ("contentType" in r)
333
+ b = 200, I = "OK", ce = r.contentType;
306
334
  else
307
335
  try {
308
- b = o.status, I = o.statusText, ce = o.getResponseHeader("Content-Type");
309
- } catch {
336
+ b = r.status, I = r.statusText, ce = r.getResponseHeader("Content-Type");
337
+ } catch (xe) {
310
338
  b = 0, I = "", ce = void 0;
311
339
  }
312
- b !== 0 && (l = 2, r.readyState = 2, r.status = b, r.statusText = I, r._contentType = ce, r.onreadystatechange());
340
+ b !== 0 && (c = 2, i.readyState = 2, i.status = b, i.statusText = I, i._contentType = ce, i.onreadystatechange());
313
341
  }
314
- }, m = function() {
315
- if (y(), l === 2 || l === 3) {
316
- l = 3;
342
+ }, p = function() {
343
+ if (v(), c === 2 || c === 3) {
344
+ c = 3;
317
345
  var b = "";
318
346
  try {
319
- b = o.responseText;
320
- } catch {
347
+ b = r.responseText;
348
+ } catch (I) {
321
349
  }
322
- r.readyState = 3, r.responseText = b, r.onprogress();
350
+ i.readyState = 3, i.responseText = b, i.onprogress();
323
351
  }
324
352
  }, w = function(b, I) {
325
353
  if ((I == null || I.preventDefault == null) && (I = {
326
354
  preventDefault: k
327
- }), m(), l === 1 || l === 2 || l === 3) {
328
- if (l = 4, u !== 0 && (f(u), u = 0), r.readyState = 4, b === "load")
329
- r.onload(I);
355
+ }), p(), c === 1 || c === 2 || c === 3) {
356
+ if (c = 4, f !== 0 && (u(f), f = 0), i.readyState = 4, b === "load")
357
+ i.onload(I);
330
358
  else if (b === "error")
331
- r.onerror(I);
359
+ i.onerror(I);
332
360
  else if (b === "abort")
333
- r.onabort(I);
361
+ i.onabort(I);
334
362
  else
335
363
  throw new TypeError();
336
- r.onreadystatechange();
364
+ i.onreadystatechange();
337
365
  }
338
366
  }, S = function(b) {
339
- o != null && (o.readyState === 4 ? (!("onload" in o) || !("onerror" in o) || !("onabort" in o)) && w(o.responseText === "" ? "error" : "load", b) : o.readyState === 3 ? "onprogress" in o || m() : o.readyState === 2 && y());
367
+ r != null && (r.readyState === 4 ? (!("onload" in r) || !("onerror" in r) || !("onabort" in r)) && w(r.responseText === "" ? "error" : "load", b) : r.readyState === 3 ? "onprogress" in r || p() : r.readyState === 2 && v());
340
368
  }, D = function() {
341
- u = s(function() {
369
+ f = s(function() {
342
370
  D();
343
- }, 500), o.readyState === 3 && m();
371
+ }, 500), r.readyState === 3 && p();
344
372
  };
345
- "onload" in o && (o.onload = function(b) {
373
+ "onload" in r && (r.onload = function(b) {
346
374
  w("load", b);
347
- }), "onerror" in o && (o.onerror = function(b) {
375
+ }), "onerror" in r && (r.onerror = function(b) {
348
376
  w("error", b);
349
- }), "onabort" in o && (o.onabort = function(b) {
377
+ }), "onabort" in r && (r.onabort = function(b) {
350
378
  w("abort", b);
351
- }), "onprogress" in o && (o.onprogress = m), "onreadystatechange" in o && (o.onreadystatechange = function(b) {
379
+ }), "onprogress" in r && (r.onprogress = p), "onreadystatechange" in r && (r.onreadystatechange = function(b) {
352
380
  S(b);
353
- }), ("contentType" in o || !("ontimeout" in d.prototype)) && (t += (t.indexOf("?") === -1 ? "?" : "&") + "padding=true"), o.open(a, t, !0), "readyState" in o && (u = s(function() {
381
+ }), ("contentType" in r || !("ontimeout" in d.prototype)) && (n += (n.indexOf("?") === -1 ? "?" : "&") + "padding=true"), r.open(a, n, !0), "readyState" in r && (f = s(function() {
354
382
  D();
355
383
  }, 0));
356
384
  }, P.prototype.abort = function() {
357
385
  this._abort(!1);
358
386
  }, P.prototype.getResponseHeader = function(a) {
359
387
  return this._contentType;
360
- }, P.prototype.setRequestHeader = function(a, t) {
361
- var r = this._xhr;
362
- "setRequestHeader" in r && r.setRequestHeader(a, t);
388
+ }, P.prototype.setRequestHeader = function(a, n) {
389
+ var i = this._xhr;
390
+ "setRequestHeader" in i && i.setRequestHeader(a, n);
363
391
  }, P.prototype.getAllResponseHeaders = function() {
364
392
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
365
393
  }, P.prototype.send = function() {
366
- if ((!("ontimeout" in d.prototype) || !("sendAsBinary" in d.prototype) && !("mozAnon" in d.prototype)) && v != null && v.readyState != null && v.readyState !== "complete") {
394
+ if ((!("ontimeout" in d.prototype) || !("sendAsBinary" in d.prototype) && !("mozAnon" in d.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
367
395
  var a = this;
368
396
  a._sendTimeout = s(function() {
369
397
  a._sendTimeout = 0, a.send();
370
398
  }, 4);
371
399
  return;
372
400
  }
373
- var t = this._xhr;
374
- "withCredentials" in t && (t.withCredentials = this.withCredentials);
401
+ var n = this._xhr;
402
+ "withCredentials" in n && (n.withCredentials = this.withCredentials);
375
403
  try {
376
- t.send(void 0);
377
- } catch (r) {
378
- throw r;
404
+ n.send(void 0);
405
+ } catch (i) {
406
+ throw i;
379
407
  }
380
408
  };
381
409
  function J(a) {
382
- return a.replace(/[A-Z]/g, function(t) {
383
- return String.fromCharCode(t.charCodeAt(0) + 32);
410
+ return a.replace(/[A-Z]/g, function(n) {
411
+ return String.fromCharCode(n.charCodeAt(0) + 32);
384
412
  });
385
413
  }
386
414
  function ie(a) {
387
- for (var t = /* @__PURE__ */ Object.create(null), r = a.split(`\r
388
- `), o = 0; o < r.length; o += 1) {
389
- var l = r[o], u = l.split(": "), y = u.shift(), m = u.join(": ");
390
- t[J(y)] = m;
415
+ for (var n = /* @__PURE__ */ Object.create(null), i = a.split(`\r
416
+ `), r = 0; r < i.length; r += 1) {
417
+ var c = i[r], f = c.split(": "), v = f.shift(), p = f.join(": ");
418
+ n[J(v)] = p;
391
419
  }
392
- this._map = t;
420
+ this._map = n;
393
421
  }
394
422
  ie.prototype.get = function(a) {
395
423
  return this._map[J(a)];
396
424
  }, d != null && d.HEADERS_RECEIVED == null && (d.HEADERS_RECEIVED = 2);
397
425
  function X() {
398
426
  }
399
- X.prototype.open = function(a, t, r, o, l, u, y) {
400
- a.open("GET", l);
401
- var m = 0;
427
+ X.prototype.open = function(a, n, i, r, c, f, v) {
428
+ a.open("GET", c);
429
+ var p = 0;
402
430
  a.onprogress = function() {
403
- var S = a.responseText, D = S.slice(m);
404
- m += D.length, r(D);
431
+ var S = a.responseText, D = S.slice(p);
432
+ p += D.length, i(D);
405
433
  }, a.onerror = function(S) {
406
- S.preventDefault(), o(new Error("NetworkError"));
434
+ S.preventDefault(), r(new Error("NetworkError"));
407
435
  }, a.onload = function() {
408
- o(null);
436
+ r(null);
409
437
  }, a.onabort = function() {
410
- o(null);
438
+ r(null);
411
439
  }, a.onreadystatechange = function() {
412
440
  if (a.readyState === d.HEADERS_RECEIVED) {
413
441
  var S = a.status, D = a.statusText, b = a.getResponseHeader("Content-Type"), I = a.getAllResponseHeaders();
414
- t(S, D, b, new ie(I));
442
+ n(S, D, b, new ie(I));
415
443
  }
416
- }, a.withCredentials = u;
417
- for (var w in y)
418
- Object.prototype.hasOwnProperty.call(y, w) && a.setRequestHeader(w, y[w]);
444
+ }, a.withCredentials = f;
445
+ for (var w in v)
446
+ Object.prototype.hasOwnProperty.call(v, w) && a.setRequestHeader(w, v[w]);
419
447
  return a.send(), a;
420
448
  };
421
449
  function x(a) {
@@ -426,22 +454,22 @@ var qe = { exports: {} };
426
454
  };
427
455
  function A() {
428
456
  }
429
- A.prototype.open = function(a, t, r, o, l, u, y) {
430
- var m = null, w = new j(), S = w.signal, D = new F();
431
- return L(l, {
432
- headers: y,
433
- credentials: u ? "include" : "same-origin",
457
+ A.prototype.open = function(a, n, i, r, c, f, v) {
458
+ var p = null, w = new j(), S = w.signal, D = new F();
459
+ return L(c, {
460
+ headers: v,
461
+ credentials: f ? "include" : "same-origin",
434
462
  signal: S,
435
463
  cache: "no-store"
436
464
  }).then(function(b) {
437
- return m = b.body.getReader(), t(b.status, b.statusText, b.headers.get("Content-Type"), new x(b.headers)), new R(function(I, ce) {
465
+ return p = b.body.getReader(), n(b.status, b.statusText, b.headers.get("Content-Type"), new x(b.headers)), new R(function(I, ce) {
438
466
  var xe = function() {
439
- m.read().then(function(Z) {
467
+ p.read().then(function(Z) {
440
468
  if (Z.done)
441
469
  I(void 0);
442
470
  else {
443
471
  var K = D.decode(Z.value, { stream: !0 });
444
- r(K), xe();
472
+ i(K), xe();
445
473
  }
446
474
  }).catch(function(Z) {
447
475
  ce(Z);
@@ -453,89 +481,89 @@ var qe = { exports: {} };
453
481
  if (b.name !== "AbortError")
454
482
  return b;
455
483
  }).then(function(b) {
456
- o(b);
484
+ r(b);
457
485
  }), {
458
486
  abort: function() {
459
- m?.cancel(), w.abort();
487
+ p != null && p.cancel(), w.abort();
460
488
  }
461
489
  };
462
490
  };
463
491
  function N() {
464
492
  this._listeners = /* @__PURE__ */ Object.create(null);
465
493
  }
466
- function c(a) {
494
+ function l(a) {
467
495
  s(function() {
468
496
  throw a;
469
497
  }, 0);
470
498
  }
471
499
  N.prototype.dispatchEvent = function(a) {
472
500
  a.target = this;
473
- var t = this._listeners[a.type];
474
- if (t != null)
475
- for (var r = t.length, o = 0; o < r; o += 1) {
476
- var l = t[o];
501
+ var n = this._listeners[a.type];
502
+ if (n != null)
503
+ for (var i = n.length, r = 0; r < i; r += 1) {
504
+ var c = n[r];
477
505
  try {
478
- typeof l.handleEvent == "function" ? l.handleEvent(a) : l.call(this, a);
479
- } catch (u) {
480
- c(u);
506
+ typeof c.handleEvent == "function" ? c.handleEvent(a) : c.call(this, a);
507
+ } catch (f) {
508
+ l(f);
481
509
  }
482
510
  }
483
- }, N.prototype.addEventListener = function(a, t) {
511
+ }, N.prototype.addEventListener = function(a, n) {
484
512
  a = String(a);
485
- var r = this._listeners, o = r[a];
486
- o == null && (o = [], r[a] = o);
487
- for (var l = !1, u = 0; u < o.length; u += 1)
488
- o[u] === t && (l = !0);
489
- l || o.push(t);
490
- }, N.prototype.removeEventListener = function(a, t) {
513
+ var i = this._listeners, r = i[a];
514
+ r == null && (r = [], i[a] = r);
515
+ for (var c = !1, f = 0; f < r.length; f += 1)
516
+ r[f] === n && (c = !0);
517
+ c || r.push(n);
518
+ }, N.prototype.removeEventListener = function(a, n) {
491
519
  a = String(a);
492
- var r = this._listeners, o = r[a];
493
- if (o != null) {
494
- for (var l = [], u = 0; u < o.length; u += 1)
495
- o[u] !== t && l.push(o[u]);
496
- l.length === 0 ? delete r[a] : r[a] = l;
520
+ var i = this._listeners, r = i[a];
521
+ if (r != null) {
522
+ for (var c = [], f = 0; f < r.length; f += 1)
523
+ r[f] !== n && c.push(r[f]);
524
+ c.length === 0 ? delete i[a] : i[a] = c;
497
525
  }
498
526
  };
499
527
  function G(a) {
500
528
  this.type = a, this.target = void 0;
501
529
  }
502
- function De(a, t) {
503
- G.call(this, a), this.data = t.data, this.lastEventId = t.lastEventId;
530
+ function De(a, n) {
531
+ G.call(this, a), this.data = n.data, this.lastEventId = n.lastEventId;
504
532
  }
505
533
  De.prototype = Object.create(G.prototype);
506
- function se(a, t) {
507
- G.call(this, a), this.status = t.status, this.statusText = t.statusText, this.headers = t.headers;
534
+ function se(a, n) {
535
+ G.call(this, a), this.status = n.status, this.statusText = n.statusText, this.headers = n.headers;
508
536
  }
509
537
  se.prototype = Object.create(G.prototype);
510
- function _e(a, t) {
511
- G.call(this, a), this.error = t.error;
538
+ function _e(a, n) {
539
+ G.call(this, a), this.error = n.error;
512
540
  }
513
541
  _e.prototype = Object.create(G.prototype);
514
- var Ae = -1, oe = 0, ve = 1, le = 2, Be = -1, re = 0, we = 1, Re = 2, je = 3, Le = /^text\/event\-stream(;.*)?$/i, He = 1e3, ze = 18e6, Te = function(a, t) {
515
- var r = a == null ? t : parseInt(a, 10);
516
- return r !== r && (r = t), Ee(r);
542
+ var Ae = -1, oe = 0, ve = 1, le = 2, Be = -1, re = 0, we = 1, Re = 2, je = 3, Le = /^text\/event\-stream(;.*)?$/i, He = 1e3, ze = 18e6, Te = function(a, n) {
543
+ var i = a == null ? n : parseInt(a, 10);
544
+ return i !== i && (i = n), Ee(i);
517
545
  }, Ee = function(a) {
518
546
  return Math.min(Math.max(a, He), ze);
519
- }, ye = function(a, t, r) {
547
+ }, ye = function(a, n, i) {
520
548
  try {
521
- typeof t == "function" && t.call(a, r);
522
- } catch (o) {
523
- c(o);
549
+ typeof n == "function" && n.call(a, i);
550
+ } catch (r) {
551
+ l(r);
524
552
  }
525
553
  };
526
- function Q(a, t) {
527
- N.call(this), t = t || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Xe(this, a, t);
554
+ function Q(a, n) {
555
+ N.call(this), n = n || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Xe(this, a, n);
528
556
  }
529
557
  function Ue() {
530
- return d != null && "withCredentials" in d.prototype || h == null ? new d() : new h();
558
+ return d != null && "withCredentials" in d.prototype || g == null ? new d() : new g();
531
559
  }
532
560
  var Pe = L != null && M != null && "body" in M.prototype;
533
- function Xe(a, t, r) {
534
- t = String(t);
535
- var o = !!r.withCredentials, l = r.lastEventIdQueryParameterName || "lastEventId", u = Ee(1e3), y = Te(r.heartbeatTimeout, 45e3), m = "", w = u, S = !1, D = 0, b = r.headers || {}, I = r.Transport, ce = Pe && I == null ? void 0 : new P(I != null ? new I() : Ue()), xe = I != null && typeof I != "string" ? new I() : ce == null ? new A() : new X(), Z = void 0, K = 0, te = Ae, Ce = "", ke = "", de = "", Fe = "", W = re, Ge = 0, be = 0, lt = function(z, H, $, ee) {
561
+ function Xe(a, n, i) {
562
+ n = String(n);
563
+ var r = !!i.withCredentials, c = i.lastEventIdQueryParameterName || "lastEventId", f = Ee(1e3), v = Te(i.heartbeatTimeout, 45e3), p = "", w = f, S = !1, D = 0, b = i.headers || {}, I = i.Transport, ce = Pe && I == null ? void 0 : new P(I != null ? new I() : Ue()), xe = I != null && typeof I != "string" ? new I() : ce == null ? new A() : new X(), Z = void 0, K = 0, te = Ae, Ce = "", ke = "", de = "", Fe = "", W = re, Ge = 0, be = 0, pt = function(z, H, $, ee) {
536
564
  if (te === oe)
537
565
  if (z === 200 && $ != null && Le.test($)) {
538
- te = ve, S = Date.now(), w = u, a.readyState = ve;
566
+ te = ve, S = Date.now(), w = f, a.readyState = ve;
539
567
  var q = new se("open", {
540
568
  status: z,
541
569
  statusText: H,
@@ -552,7 +580,7 @@ var qe = { exports: {} };
552
580
  });
553
581
  a.dispatchEvent(q), ye(a, a.onerror, q), console.error(U);
554
582
  }
555
- }, ct = function(z) {
583
+ }, ht = function(z) {
556
584
  if (te === ve) {
557
585
  for (var H = -1, $ = 0; $ < z.length; $ += 1) {
558
586
  var ee = z.charCodeAt($);
@@ -569,13 +597,13 @@ var qe = { exports: {} };
569
597
  W === we && (be = U + 1);
570
598
  var ue = q.slice(Ge, be - 1), fe = q.slice(be + (be < U && q.charCodeAt(be) === 32 ? 1 : 0), U);
571
599
  ue === "data" ? (Ce += `
572
- `, Ce += fe) : ue === "id" ? ke = fe : ue === "event" ? de = fe : ue === "retry" ? (u = Te(fe, u), w = u) : ue === "heartbeatTimeout" && (y = Te(fe, y), K !== 0 && (f(K), K = s(function() {
600
+ `, Ce += fe) : ue === "id" ? ke = fe : ue === "event" ? de = fe : ue === "retry" ? (f = Te(fe, f), w = f) : ue === "heartbeatTimeout" && (v = Te(fe, v), K !== 0 && (u(K), K = s(function() {
573
601
  Me();
574
- }, y)));
602
+ }, v)));
575
603
  }
576
604
  if (W === re) {
577
605
  if (Ce !== "") {
578
- m = ke, de === "" && (de = "message");
606
+ p = ke, de === "" && (de = "message");
579
607
  var Se = new De(de, {
580
608
  data: Ce.slice(1),
581
609
  lastEventId: ke
@@ -592,20 +620,20 @@ var qe = { exports: {} };
592
620
  }
593
621
  }, Je = function(z) {
594
622
  if (te === ve || te === oe) {
595
- te = Ae, K !== 0 && (f(K), K = 0), K = s(function() {
623
+ te = Ae, K !== 0 && (u(K), K = 0), K = s(function() {
596
624
  Me();
597
- }, w), w = Ee(Math.min(u * 16, w * 2)), a.readyState = oe;
625
+ }, w), w = Ee(Math.min(f * 16, w * 2)), a.readyState = oe;
598
626
  var H = new _e("error", { error: z });
599
627
  a.dispatchEvent(H), ye(a, a.onerror, H), z != null && console.error(z);
600
628
  }
601
629
  }, Ke = function() {
602
- te = le, Z != null && (Z.abort(), Z = void 0), K !== 0 && (f(K), K = 0), a.readyState = le;
630
+ te = le, Z != null && (Z.abort(), Z = void 0), K !== 0 && (u(K), K = 0), a.readyState = le;
603
631
  }, Me = function() {
604
632
  if (K = 0, te !== Ae) {
605
633
  if (!S && Z != null)
606
- Je(new Error("No activity within " + y + " milliseconds. " + (te === oe ? "No response received." : D + " chars received.") + " Reconnecting.")), Z != null && (Z.abort(), Z = void 0);
634
+ Je(new Error("No activity within " + v + " milliseconds. " + (te === oe ? "No response received." : D + " chars received.") + " Reconnecting.")), Z != null && (Z.abort(), Z = void 0);
607
635
  else {
608
- var z = Math.max((S || Date.now()) + y - Date.now(), 1);
636
+ var z = Math.max((S || Date.now()) + v - Date.now(), 1);
609
637
  S = !1, K = s(function() {
610
638
  Me();
611
639
  }, z);
@@ -614,13 +642,13 @@ var qe = { exports: {} };
614
642
  }
615
643
  S = !1, D = 0, K = s(function() {
616
644
  Me();
617
- }, y), te = oe, Ce = "", de = "", ke = m, Fe = "", Ge = 0, be = 0, W = re;
618
- var H = t;
619
- if (t.slice(0, 5) !== "data:" && t.slice(0, 5) !== "blob:" && m !== "") {
620
- var $ = t.indexOf("?");
621
- H = $ === -1 ? t : t.slice(0, $ + 1) + t.slice($ + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(fe, Se) {
622
- return Se === l ? "" : fe;
623
- }), H += (t.indexOf("?") === -1 ? "?" : "&") + l + "=" + encodeURIComponent(m);
645
+ }, v), te = oe, Ce = "", de = "", ke = p, Fe = "", Ge = 0, be = 0, W = re;
646
+ var H = n;
647
+ if (n.slice(0, 5) !== "data:" && n.slice(0, 5) !== "blob:" && p !== "") {
648
+ var $ = n.indexOf("?");
649
+ H = $ === -1 ? n : n.slice(0, $ + 1) + n.slice($ + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(fe, Se) {
650
+ return Se === c ? "" : fe;
651
+ }), H += (n.indexOf("?") === -1 ? "?" : "&") + c + "=" + encodeURIComponent(p);
624
652
  }
625
653
  var ee = a.withCredentials, q = {};
626
654
  q.Accept = "text/event-stream";
@@ -629,28 +657,28 @@ var qe = { exports: {} };
629
657
  for (var ue in U)
630
658
  Object.prototype.hasOwnProperty.call(U, ue) && (q[ue] = U[ue]);
631
659
  try {
632
- Z = xe.open(ce, lt, ct, Je, H, ee, q);
660
+ Z = xe.open(ce, pt, ht, Je, H, ee, q);
633
661
  } catch (fe) {
634
662
  throw Ke(), fe;
635
663
  }
636
664
  };
637
- a.url = t, a.readyState = oe, a.withCredentials = o, a.headers = b, a._close = Ke, Me();
665
+ a.url = n, a.readyState = oe, a.withCredentials = r, a.headers = b, a._close = Ke, Me();
638
666
  }
639
667
  Q.prototype = Object.create(N.prototype), Q.prototype.CONNECTING = oe, Q.prototype.OPEN = ve, Q.prototype.CLOSED = le, Q.prototype.close = function() {
640
668
  this._close();
641
669
  }, Q.CONNECTING = oe, Q.OPEN = ve, Q.CLOSED = le, Q.prototype.withCredentials = void 0;
642
- var Oe = g;
643
- d != null && (g == null || !("withCredentials" in g.prototype)) && (Oe = Q), function(a) {
670
+ var Oe = m;
671
+ d != null && (m == null || !("withCredentials" in m.prototype)) && (Oe = Q), function(a) {
644
672
  {
645
- var t = a(e);
646
- t !== void 0 && (i.exports = t);
673
+ var n = a(e);
674
+ n !== void 0 && (o.exports = n);
647
675
  }
648
676
  }(function(a) {
649
- a.EventSourcePolyfill = Q, a.NativeEventSource = g, a.EventSource = Oe;
677
+ a.EventSourcePolyfill = Q, a.NativeEventSource = m, a.EventSource = Oe;
650
678
  });
651
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ft : globalThis);
679
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Tt : globalThis);
652
680
  })(qe, qe.exports);
653
- var _t = qe.exports;
681
+ var Ft = qe.exports;
654
682
  /*!
655
683
  * currency.js - v2.0.4
656
684
  * http://scurker.github.io/currency.js
@@ -658,7 +686,7 @@ var _t = qe.exports;
658
686
  * Copyright (c) 2021 Jason Wilson
659
687
  * Released under MIT license
660
688
  */
661
- var At = {
689
+ var It = {
662
690
  symbol: "$",
663
691
  separator: ",",
664
692
  decimal: ".",
@@ -666,41 +694,41 @@ var At = {
666
694
  precision: 2,
667
695
  pattern: "!#",
668
696
  negativePattern: "-!#",
669
- format: Mt,
697
+ format: Ht,
670
698
  fromCents: !1
671
- }, st = function(e) {
699
+ }, ft = function(e) {
672
700
  return Math.round(e);
673
701
  }, Ye = function(e) {
674
702
  return Math.pow(10, e);
675
- }, Rt = function(e, n) {
676
- return st(e / n) * n;
677
- }, Et = /(\d)(?=(\d{3})+\b)/g, xt = /(\d)(?=(\d\d)+\d\b)/g;
678
- function ne(i, e) {
679
- var n = this;
680
- if (!(n instanceof ne))
681
- return new ne(i, e);
682
- var s = Object.assign({}, At, e), f = Ye(s.precision), d = Ie(i, s);
683
- n.intValue = d, n.value = d / f, s.increment = s.increment || 1 / f, s.useVedic ? s.groups = xt : s.groups = Et, this.s = s, this.p = f;
703
+ }, Nt = function(e, t) {
704
+ return ft(e / t) * t;
705
+ }, Vt = /(\d)(?=(\d{3})+\b)/g, jt = /(\d)(?=(\d\d)+\d\b)/g;
706
+ function ne(o, e) {
707
+ var t = this;
708
+ if (!(t instanceof ne))
709
+ return new ne(o, e);
710
+ var s = Object.assign({}, It, e), u = Ye(s.precision), d = Ie(o, s);
711
+ t.intValue = d, t.value = d / u, s.increment = s.increment || 1 / u, s.useVedic ? s.groups = jt : s.groups = Vt, this.s = s, this.p = u;
684
712
  }
685
- function Ie(i, e) {
686
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, s = 0, f = e.decimal, d = e.errorOnInvalid, h = e.precision, p = e.fromCents, g = Ye(h), v = typeof i == "number", R = i instanceof ne;
687
- if (R && p)
688
- return i.intValue;
689
- if (v || R)
690
- s = R ? i.value : i;
691
- else if (typeof i == "string") {
692
- var L = new RegExp("[^-\\d" + f + "]", "g"), M = new RegExp("\\" + f, "g");
693
- s = i.replace(/\((.*)\)/, "-$1").replace(L, "").replace(M, "."), s = s || 0;
713
+ function Ie(o, e) {
714
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, s = 0, u = e.decimal, d = e.errorOnInvalid, g = e.precision, h = e.fromCents, m = Ye(g), y = typeof o == "number", R = o instanceof ne;
715
+ if (R && h)
716
+ return o.intValue;
717
+ if (y || R)
718
+ s = R ? o.value : o;
719
+ else if (typeof o == "string") {
720
+ var L = new RegExp("[^-\\d" + u + "]", "g"), M = new RegExp("\\" + u, "g");
721
+ s = o.replace(/\((.*)\)/, "-$1").replace(L, "").replace(M, "."), s = s || 0;
694
722
  } else {
695
723
  if (d)
696
724
  throw Error("Invalid Input");
697
725
  s = 0;
698
726
  }
699
- return p || (s *= g, s = s.toFixed(4)), n ? st(s) : s;
727
+ return h || (s *= m, s = s.toFixed(4)), t ? ft(s) : s;
700
728
  }
701
- function Mt(i, e) {
702
- var n = e.pattern, s = e.negativePattern, f = e.symbol, d = e.separator, h = e.decimal, p = e.groups, g = ("" + i).replace(/^-/, "").split("."), v = g[0], R = g[1];
703
- return (i.value >= 0 ? n : s).replace("!", f).replace("#", v.replace(p, "$1" + d) + (R ? h + R : ""));
729
+ function Ht(o, e) {
730
+ var t = e.pattern, s = e.negativePattern, u = e.symbol, d = e.separator, g = e.decimal, h = e.groups, m = ("" + o).replace(/^-/, "").split("."), y = m[0], R = m[1];
731
+ return (o.value >= 0 ? t : s).replace("!", u).replace("#", y.replace(h, "$1" + d) + (R ? g + R : ""));
704
732
  }
705
733
  ne.prototype = {
706
734
  /**
@@ -709,8 +737,8 @@ ne.prototype = {
709
737
  * @returns {currency}
710
738
  */
711
739
  add: function(e) {
712
- var n = this.intValue, s = this.s, f = this.p;
713
- return ne((n += Ie(e, s)) / (s.fromCents ? 1 : f), s);
740
+ var t = this.intValue, s = this.s, u = this.p;
741
+ return ne((t += Ie(e, s)) / (s.fromCents ? 1 : u), s);
714
742
  },
715
743
  /**
716
744
  * Subtracts value.
@@ -718,8 +746,8 @@ ne.prototype = {
718
746
  * @returns {currency}
719
747
  */
720
748
  subtract: function(e) {
721
- var n = this.intValue, s = this.s, f = this.p;
722
- return ne((n -= Ie(e, s)) / (s.fromCents ? 1 : f), s);
749
+ var t = this.intValue, s = this.s, u = this.p;
750
+ return ne((t -= Ie(e, s)) / (s.fromCents ? 1 : u), s);
723
751
  },
724
752
  /**
725
753
  * Multiplies values.
@@ -727,8 +755,8 @@ ne.prototype = {
727
755
  * @returns {currency}
728
756
  */
729
757
  multiply: function(e) {
730
- var n = this.intValue, s = this.s;
731
- return ne((n *= e) / (s.fromCents ? 1 : Ye(s.precision)), s);
758
+ var t = this.intValue, s = this.s;
759
+ return ne((t *= e) / (s.fromCents ? 1 : Ye(s.precision)), s);
732
760
  },
733
761
  /**
734
762
  * Divides value.
@@ -736,8 +764,8 @@ ne.prototype = {
736
764
  * @returns {currency}
737
765
  */
738
766
  divide: function(e) {
739
- var n = this.intValue, s = this.s;
740
- return ne(n /= Ie(e, s, !1), s);
767
+ var t = this.intValue, s = this.s;
768
+ return ne(t /= Ie(e, s, !1), s);
741
769
  },
742
770
  /**
743
771
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -746,9 +774,9 @@ ne.prototype = {
746
774
  * @returns {array}
747
775
  */
748
776
  distribute: function(e) {
749
- for (var n = this.intValue, s = this.p, f = this.s, d = [], h = Math[n >= 0 ? "floor" : "ceil"](n / e), p = Math.abs(n - h * e), g = f.fromCents ? 1 : s; e !== 0; e--) {
750
- var v = ne(h / g, f);
751
- p-- > 0 && (v = v[n >= 0 ? "add" : "subtract"](1 / g)), d.push(v);
777
+ for (var t = this.intValue, s = this.p, u = this.s, d = [], g = Math[t >= 0 ? "floor" : "ceil"](t / e), h = Math.abs(t - g * e), m = u.fromCents ? 1 : s; e !== 0; e--) {
778
+ var y = ne(g / m, u);
779
+ h-- > 0 && (y = y[t >= 0 ? "add" : "subtract"](1 / m)), d.push(y);
752
780
  }
753
781
  return d;
754
782
  },
@@ -764,8 +792,8 @@ ne.prototype = {
764
792
  * @returns {number}
765
793
  */
766
794
  cents: function() {
767
- var e = this.intValue, n = this.p;
768
- return ~~(e % n);
795
+ var e = this.intValue, t = this.p;
796
+ return ~~(e % t);
769
797
  },
770
798
  /**
771
799
  * Formats the value as a string according to the formatting settings.
@@ -773,16 +801,16 @@ ne.prototype = {
773
801
  * @returns {string}
774
802
  */
775
803
  format: function(e) {
776
- var n = this.s;
777
- return typeof e == "function" ? e(this, n) : n.format(this, Object.assign({}, n, e));
804
+ var t = this.s;
805
+ return typeof e == "function" ? e(this, t) : t.format(this, Object.assign({}, t, e));
778
806
  },
779
807
  /**
780
808
  * Formats the value as a string according to the formatting settings.
781
809
  * @returns {string}
782
810
  */
783
811
  toString: function() {
784
- var e = this.intValue, n = this.p, s = this.s;
785
- return Rt(e / n, s.increment).toFixed(s.precision);
812
+ var e = this.intValue, t = this.p, s = this.s;
813
+ return Nt(e / t, s.increment).toFixed(s.precision);
786
814
  },
787
815
  /**
788
816
  * Value for JSON serialization.
@@ -792,45 +820,45 @@ ne.prototype = {
792
820
  return this.value;
793
821
  }
794
822
  };
795
- function Dt(i) {
796
- vt(i, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
823
+ function zt(o) {
824
+ Rt(o, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
797
825
  }
798
- function et(i, e, n) {
799
- const s = i.slice();
800
- return s[50] = e[n], s;
826
+ function rt(o, e, t) {
827
+ const s = o.slice();
828
+ return s[50] = e[t], s;
801
829
  }
802
- function tt(i, e, n) {
803
- const s = i.slice();
804
- return s[53] = e[n], s;
830
+ function it(o, e, t) {
831
+ const s = o.slice();
832
+ return s[53] = e[t], s;
805
833
  }
806
- function Lt(i) {
807
- let e, n, s = (
834
+ function Ut(o) {
835
+ let e, t, s = (
808
836
  /*balances*/
809
- (i[1].Total ? (
837
+ (o[1].Total ? (
810
838
  /*formatBalance*/
811
- i[8](
839
+ o[8](
812
840
  /*balances*/
813
- i[1].Total[0].amount
841
+ o[1].Total[0].amount
814
842
  )
815
843
  ) : "0") + ""
816
- ), f, d, h, p, g, v, R, L, M, F, E, j, B = (
844
+ ), u, d, g, h, m, y, R, L, M, F, E, j, B = (
817
845
  /*showBalance*/
818
- i[4] && nt(i)
846
+ o[4] && st(o)
819
847
  );
820
848
  return {
821
849
  c() {
822
- e = V("div"), n = V("p"), f = pe(s), d = ae(), h = pe(
850
+ e = V("div"), t = V("p"), u = pe(s), d = ae(), g = pe(
823
851
  /*currency*/
824
- i[5]
825
- ), p = ae(), g = V("span"), v = Qe("svg"), R = Qe("path"), M = ae(), B && B.c(), F = Bt(), _(R, "id", "arrow"), _(R, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), _(R, "transform", "translate(-274.511 -441.088)"), _(R, "fill", "#d1d1d1"), _(v, "xmlns", "http://www.w3.org/2000/svg"), _(v, "width", "14"), _(v, "height", "6.835"), _(v, "viewBox", "0 0 14 6.835"), _(g, "class", L = /*modalOpened*/
826
- i[3] ? "TriangleActive" : "TriangleInactive"), _(e, "class", "BalanceValue");
852
+ o[5]
853
+ ), h = ae(), m = V("span"), y = nt("svg"), R = nt("path"), M = ae(), B && B.c(), F = Dt(), _(R, "id", "arrow"), _(R, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), _(R, "transform", "translate(-274.511 -441.088)"), _(R, "fill", "#d1d1d1"), _(y, "xmlns", "http://www.w3.org/2000/svg"), _(y, "width", "14"), _(y, "height", "6.835"), _(y, "viewBox", "0 0 14 6.835"), _(m, "class", L = /*modalOpened*/
854
+ o[3] ? "TriangleActive" : "TriangleInactive"), _(e, "class", "BalanceValue");
827
855
  },
828
856
  m(C, O) {
829
- me(C, e, O), T(e, n), T(n, f), T(n, d), T(n, h), T(e, p), T(e, g), T(g, v), T(v, R), me(C, M, O), B && B.m(C, O), me(C, F, O), E || (j = Ne(
857
+ ge(C, e, O), T(e, t), T(t, u), T(t, d), T(t, g), T(e, h), T(e, m), T(m, y), T(y, R), ge(C, M, O), B && B.m(C, O), ge(C, F, O), E || (j = Ne(
830
858
  e,
831
859
  "click",
832
860
  /*click_handler*/
833
- i[24]
861
+ o[24]
834
862
  ), E = !0);
835
863
  },
836
864
  p(C, O) {
@@ -842,156 +870,156 @@ function Lt(i) {
842
870
  /*balances*/
843
871
  C[1].Total[0].amount
844
872
  )
845
- ) : "0") + "") && he(f, s), O[0] & /*currency*/
873
+ ) : "0") + "") && he(u, s), O[0] & /*currency*/
846
874
  32 && he(
847
- h,
875
+ g,
848
876
  /*currency*/
849
877
  C[5]
850
878
  ), O[0] & /*modalOpened*/
851
879
  8 && L !== (L = /*modalOpened*/
852
- C[3] ? "TriangleActive" : "TriangleInactive") && _(g, "class", L), /*showBalance*/
853
- C[4] ? B ? B.p(C, O) : (B = nt(C), B.c(), B.m(F.parentNode, F)) : B && (B.d(1), B = null);
880
+ C[3] ? "TriangleActive" : "TriangleInactive") && _(m, "class", L), /*showBalance*/
881
+ C[4] ? B ? B.p(C, O) : (B = st(C), B.c(), B.m(F.parentNode, F)) : B && (B.d(1), B = null);
854
882
  },
855
883
  d(C) {
856
- C && (ge(e), ge(M), ge(F)), B && B.d(C), E = !1, j();
884
+ C && (me(e), me(M), me(F)), B && B.d(C), E = !1, j();
857
885
  }
858
886
  };
859
887
  }
860
- function Ot(i) {
861
- let e, n = (
888
+ function Pt(o) {
889
+ let e, t = (
862
890
  /*$_*/
863
- i[6]("Loading") + ""
891
+ o[6]("Loading") + ""
864
892
  ), s;
865
893
  return {
866
894
  c() {
867
- e = V("p"), s = pe(n), _(e, "class", "Loading");
895
+ e = V("p"), s = pe(t), _(e, "class", "Loading");
868
896
  },
869
- m(f, d) {
870
- me(f, e, d), T(e, s);
897
+ m(u, d) {
898
+ ge(u, e, d), T(e, s);
871
899
  },
872
- p(f, d) {
900
+ p(u, d) {
873
901
  d[0] & /*$_*/
874
- 64 && n !== (n = /*$_*/
875
- f[6]("Loading") + "") && he(s, n);
902
+ 64 && t !== (t = /*$_*/
903
+ u[6]("Loading") + "") && he(s, t);
876
904
  },
877
- d(f) {
878
- f && ge(e);
905
+ d(u) {
906
+ u && me(e);
879
907
  }
880
908
  };
881
909
  }
882
- function nt(i) {
883
- let e, n, s, f, d, h, p, g, v = (
910
+ function st(o) {
911
+ let e, t, s, u, d, g, h, m, y = (
884
912
  /*$_*/
885
- i[6]("Title") + ""
913
+ o[6]("Title") + ""
886
914
  ), R, L, M, F, E, j, B = (
887
915
  /*$_*/
888
- i[6]("DepositButton") + ""
916
+ o[6]("DepositButton") + ""
889
917
  ), C, O, k, P, J, ie, X = Ve(Object.keys(
890
918
  /*balances*/
891
- i[1]
919
+ o[1]
892
920
  )), x = [];
893
921
  for (let A = 0; A < X.length; A += 1)
894
- x[A] = ot(et(i, X, A));
922
+ x[A] = ct(rt(o, X, A));
895
923
  return {
896
924
  c() {
897
- e = V("div"), n = V("div"), f = ae(), d = V("div"), h = V("div"), p = V("div"), g = V("p"), R = pe(v), L = ae(), M = V("div");
925
+ e = V("div"), t = V("div"), u = ae(), d = V("div"), g = V("div"), h = V("div"), m = V("p"), R = pe(y), L = ae(), M = V("div");
898
926
  for (let A = 0; A < x.length; A += 1)
899
927
  x[A].c();
900
- F = ae(), E = V("div"), j = V("button"), C = pe(B), _(n, "class", s = "BalanceModalClose " + /*modalOpened*/
901
- (i[3] ? "Open" : "")), _(g, "class", "BalanceModalTitle"), _(p, "class", "BalanceModalHeader"), _(M, "class", "BalanceModalBody"), _(j, "class", "BalanceModalAction"), _(E, "class", "BalanceModalFooter"), _(h, "class", O = "ModalContent " + /*modalOpened*/
902
- (i[3] ? "Open" : "")), _(d, "class", k = "BalanceModal " + /*modalOpened*/
903
- (i[3] ? "Open" : "")), _(e, "class", P = "BalanceModalWrapper " + /*modalOpened*/
904
- (i[3] ? "Open" : ""));
928
+ F = ae(), E = V("div"), j = V("button"), C = pe(B), _(t, "class", s = "BalanceModalClose " + /*modalOpened*/
929
+ (o[3] ? "Open" : "")), _(m, "class", "BalanceModalTitle"), _(h, "class", "BalanceModalHeader"), _(M, "class", "BalanceModalBody"), _(j, "class", "BalanceModalAction"), _(E, "class", "BalanceModalFooter"), _(g, "class", O = "ModalContent " + /*modalOpened*/
930
+ (o[3] ? "Open" : "")), _(d, "class", k = "BalanceModal " + /*modalOpened*/
931
+ (o[3] ? "Open" : "")), _(e, "class", P = "BalanceModalWrapper " + /*modalOpened*/
932
+ (o[3] ? "Open" : ""));
905
933
  },
906
934
  m(A, N) {
907
- me(A, e, N), T(e, n), T(e, f), T(e, d), T(d, h), T(h, p), T(p, g), T(g, R), T(h, L), T(h, M);
908
- for (let c = 0; c < x.length; c += 1)
909
- x[c] && x[c].m(M, null);
910
- T(h, F), T(h, E), T(E, j), T(j, C), J || (ie = [
935
+ ge(A, e, N), T(e, t), T(e, u), T(e, d), T(d, g), T(g, h), T(h, m), T(m, R), T(g, L), T(g, M);
936
+ for (let l = 0; l < x.length; l += 1)
937
+ x[l] && x[l].m(M, null);
938
+ T(g, F), T(g, E), T(E, j), T(j, C), J || (ie = [
911
939
  Ne(
912
- n,
940
+ t,
913
941
  "click",
914
942
  /*click_handler_1*/
915
- i[25]
943
+ o[25]
916
944
  ),
917
945
  Ne(
918
946
  j,
919
947
  "click",
920
948
  /*click_handler_2*/
921
- i[26]
949
+ o[26]
922
950
  )
923
951
  ], J = !0);
924
952
  },
925
953
  p(A, N) {
926
954
  if (N[0] & /*modalOpened*/
927
955
  8 && s !== (s = "BalanceModalClose " + /*modalOpened*/
928
- (A[3] ? "Open" : "")) && _(n, "class", s), N[0] & /*$_*/
929
- 64 && v !== (v = /*$_*/
930
- A[6]("Title") + "") && he(R, v), N[0] & /*balances, currency, formatBalance, $_*/
956
+ (A[3] ? "Open" : "")) && _(t, "class", s), N[0] & /*$_*/
957
+ 64 && y !== (y = /*$_*/
958
+ A[6]("Title") + "") && he(R, y), N[0] & /*balances, currency, formatBalance, $_*/
931
959
  354) {
932
960
  X = Ve(Object.keys(
933
961
  /*balances*/
934
962
  A[1]
935
963
  ));
936
- let c;
937
- for (c = 0; c < X.length; c += 1) {
938
- const G = et(A, X, c);
939
- x[c] ? x[c].p(G, N) : (x[c] = ot(G), x[c].c(), x[c].m(M, null));
964
+ let l;
965
+ for (l = 0; l < X.length; l += 1) {
966
+ const G = rt(A, X, l);
967
+ x[l] ? x[l].p(G, N) : (x[l] = ct(G), x[l].c(), x[l].m(M, null));
940
968
  }
941
- for (; c < x.length; c += 1)
942
- x[c].d(1);
969
+ for (; l < x.length; l += 1)
970
+ x[l].d(1);
943
971
  x.length = X.length;
944
972
  }
945
973
  N[0] & /*$_*/
946
974
  64 && B !== (B = /*$_*/
947
975
  A[6]("DepositButton") + "") && he(C, B), N[0] & /*modalOpened*/
948
976
  8 && O !== (O = "ModalContent " + /*modalOpened*/
949
- (A[3] ? "Open" : "")) && _(h, "class", O), N[0] & /*modalOpened*/
977
+ (A[3] ? "Open" : "")) && _(g, "class", O), N[0] & /*modalOpened*/
950
978
  8 && k !== (k = "BalanceModal " + /*modalOpened*/
951
979
  (A[3] ? "Open" : "")) && _(d, "class", k), N[0] & /*modalOpened*/
952
980
  8 && P !== (P = "BalanceModalWrapper " + /*modalOpened*/
953
981
  (A[3] ? "Open" : "")) && _(e, "class", P);
954
982
  },
955
983
  d(A) {
956
- A && ge(e), it(x, A), J = !1, Tt(ie);
984
+ A && me(e), ut(x, A), J = !1, Lt(ie);
957
985
  }
958
986
  };
959
987
  }
960
- function at(i) {
961
- let e, n, s = (
988
+ function lt(o) {
989
+ let e, t, s = (
962
990
  /*$_*/
963
- i[6](
991
+ o[6](
964
992
  /*k*/
965
- i[50]
993
+ o[50]
966
994
  ) + ""
967
- ), f, d, h = (
995
+ ), u, d, g = (
968
996
  /*b*/
969
- (i[53].productType ? (
997
+ (o[53].productType ? (
970
998
  /*$_*/
971
- i[6](
999
+ o[6](
972
1000
  /*b*/
973
- i[53].productType
1001
+ o[53].productType
974
1002
  )
975
1003
  ) : "") + ""
976
- ), p, g, v, R, L = (
1004
+ ), h, m, y, R, L = (
977
1005
  /*b*/
978
- (i[53].amount ? (
1006
+ (o[53].amount ? (
979
1007
  /*formatBalance*/
980
- i[8](
1008
+ o[8](
981
1009
  /*b*/
982
- i[53].amount
1010
+ o[53].amount
983
1011
  )
984
1012
  ) : "0") + ""
985
1013
  ), M, F, E, j;
986
1014
  return {
987
1015
  c() {
988
- e = V("div"), n = V("p"), f = pe(s), d = ae(), p = pe(h), g = ae(), v = V("p"), R = V("span"), M = pe(L), F = ae(), E = V("span"), j = pe(
1016
+ e = V("div"), t = V("p"), u = pe(s), d = ae(), h = pe(g), m = ae(), y = V("p"), R = V("span"), M = pe(L), F = ae(), E = V("span"), j = pe(
989
1017
  /*currency*/
990
- i[5]
991
- ), _(n, "class", "BalanceModalText"), _(R, "class", "BalanceModalAmount"), _(E, "class", "BalanceModalCurrency"), _(v, "class", "BalanceModalValue"), _(e, "class", "BalanceModalRowLine");
1018
+ o[5]
1019
+ ), _(t, "class", "BalanceModalText"), _(R, "class", "BalanceModalAmount"), _(E, "class", "BalanceModalCurrency"), _(y, "class", "BalanceModalValue"), _(e, "class", "BalanceModalRowLine");
992
1020
  },
993
1021
  m(B, C) {
994
- me(B, e, C), T(e, n), T(n, f), T(n, d), T(n, p), T(e, g), T(e, v), T(v, R), T(R, M), T(v, F), T(v, E), T(E, j);
1022
+ ge(B, e, C), T(e, t), T(t, u), T(t, d), T(t, h), T(e, m), T(e, y), T(y, R), T(R, M), T(y, F), T(y, E), T(E, j);
995
1023
  },
996
1024
  p(B, C) {
997
1025
  C[0] & /*$_, balances*/
@@ -999,15 +1027,15 @@ function at(i) {
999
1027
  B[6](
1000
1028
  /*k*/
1001
1029
  B[50]
1002
- ) + "") && he(f, s), C[0] & /*balances, $_*/
1003
- 66 && h !== (h = /*b*/
1030
+ ) + "") && he(u, s), C[0] & /*balances, $_*/
1031
+ 66 && g !== (g = /*b*/
1004
1032
  (B[53].productType ? (
1005
1033
  /*$_*/
1006
1034
  B[6](
1007
1035
  /*b*/
1008
1036
  B[53].productType
1009
1037
  )
1010
- ) : "") + "") && he(p, h), C[0] & /*balances*/
1038
+ ) : "") + "") && he(h, g), C[0] & /*balances*/
1011
1039
  2 && L !== (L = /*b*/
1012
1040
  (B[53].amount ? (
1013
1041
  /*formatBalance*/
@@ -1023,35 +1051,35 @@ function at(i) {
1023
1051
  );
1024
1052
  },
1025
1053
  d(B) {
1026
- B && ge(e);
1054
+ B && me(e);
1027
1055
  }
1028
1056
  };
1029
1057
  }
1030
- function ot(i) {
1031
- let e, n, s = Ve(
1058
+ function ct(o) {
1059
+ let e, t, s = Ve(
1032
1060
  /*balances*/
1033
- i[1][
1061
+ o[1][
1034
1062
  /*k*/
1035
- i[50]
1063
+ o[50]
1036
1064
  ]
1037
- ), f = [];
1065
+ ), u = [];
1038
1066
  for (let d = 0; d < s.length; d += 1)
1039
- f[d] = at(tt(i, s, d));
1067
+ u[d] = lt(it(o, s, d));
1040
1068
  return {
1041
1069
  c() {
1042
1070
  e = V("div");
1043
- for (let d = 0; d < f.length; d += 1)
1044
- f[d].c();
1045
- n = ae(), _(e, "class", "BalanceModalRowBoth");
1071
+ for (let d = 0; d < u.length; d += 1)
1072
+ u[d].c();
1073
+ t = ae(), _(e, "class", "BalanceModalRowBoth");
1046
1074
  },
1047
- m(d, h) {
1048
- me(d, e, h);
1049
- for (let p = 0; p < f.length; p += 1)
1050
- f[p] && f[p].m(e, null);
1051
- T(e, n);
1075
+ m(d, g) {
1076
+ ge(d, e, g);
1077
+ for (let h = 0; h < u.length; h += 1)
1078
+ u[h] && u[h].m(e, null);
1079
+ T(e, t);
1052
1080
  },
1053
- p(d, h) {
1054
- if (h[0] & /*currency, balances, formatBalance, $_*/
1081
+ p(d, g) {
1082
+ if (g[0] & /*currency, balances, formatBalance, $_*/
1055
1083
  354) {
1056
1084
  s = Ve(
1057
1085
  /*balances*/
@@ -1060,81 +1088,81 @@ function ot(i) {
1060
1088
  d[50]
1061
1089
  ]
1062
1090
  );
1063
- let p;
1064
- for (p = 0; p < s.length; p += 1) {
1065
- const g = tt(d, s, p);
1066
- f[p] ? f[p].p(g, h) : (f[p] = at(g), f[p].c(), f[p].m(e, n));
1091
+ let h;
1092
+ for (h = 0; h < s.length; h += 1) {
1093
+ const m = it(d, s, h);
1094
+ u[h] ? u[h].p(m, g) : (u[h] = lt(m), u[h].c(), u[h].m(e, t));
1067
1095
  }
1068
- for (; p < f.length; p += 1)
1069
- f[p].d(1);
1070
- f.length = s.length;
1096
+ for (; h < u.length; h += 1)
1097
+ u[h].d(1);
1098
+ u.length = s.length;
1071
1099
  }
1072
1100
  },
1073
1101
  d(d) {
1074
- d && ge(e), it(f, d);
1102
+ d && me(e), ut(u, d);
1075
1103
  }
1076
1104
  };
1077
1105
  }
1078
- function rt(i) {
1079
- let e, n, s;
1106
+ function dt(o) {
1107
+ let e, t, s;
1080
1108
  return {
1081
1109
  c() {
1082
1110
  e = V("div"), _(e, "class", "ShowBalanceModalOverlay");
1083
1111
  },
1084
- m(f, d) {
1085
- me(f, e, d), n || (s = Ne(
1112
+ m(u, d) {
1113
+ ge(u, e, d), t || (s = Ne(
1086
1114
  e,
1087
1115
  "click",
1088
1116
  /*click_handler_3*/
1089
- i[27]
1090
- ), n = !0);
1117
+ o[27]
1118
+ ), t = !0);
1091
1119
  },
1092
1120
  p: We,
1093
- d(f) {
1094
- f && ge(e), n = !1, s();
1121
+ d(u) {
1122
+ u && me(e), t = !1, s();
1095
1123
  }
1096
1124
  };
1097
1125
  }
1098
- function kt(i) {
1099
- let e, n, s;
1100
- function f(g, v) {
1126
+ function Xt(o) {
1127
+ let e, t, s;
1128
+ function u(m, y) {
1101
1129
  return (
1102
1130
  /*isLoading*/
1103
- g[2] ? Ot : Lt
1131
+ m[2] ? Pt : Ut
1104
1132
  );
1105
1133
  }
1106
- let d = f(i), h = d(i), p = (
1134
+ let d = u(o), g = d(o), h = (
1107
1135
  /*showBalance*/
1108
- i[4] && rt(i)
1136
+ o[4] && dt(o)
1109
1137
  );
1110
1138
  return {
1111
1139
  c() {
1112
- e = V("div"), n = V("div"), h.c(), s = ae(), p && p.c(), _(n, "class", "ShowBalance");
1140
+ e = V("div"), t = V("div"), g.c(), s = ae(), h && h.c(), _(t, "class", "ShowBalance");
1113
1141
  },
1114
- m(g, v) {
1115
- me(g, e, v), T(e, n), h.m(n, null), T(e, s), p && p.m(e, null), i[28](e);
1142
+ m(m, y) {
1143
+ ge(m, e, y), T(e, t), g.m(t, null), T(e, s), h && h.m(e, null), o[28](e);
1116
1144
  },
1117
- p(g, v) {
1118
- d === (d = f(g)) && h ? h.p(g, v) : (h.d(1), h = d(g), h && (h.c(), h.m(n, null))), /*showBalance*/
1119
- g[4] ? p ? p.p(g, v) : (p = rt(g), p.c(), p.m(e, null)) : p && (p.d(1), p = null);
1145
+ p(m, y) {
1146
+ d === (d = u(m)) && g ? g.p(m, y) : (g.d(1), g = d(m), g && (g.c(), g.m(t, null))), /*showBalance*/
1147
+ m[4] ? h ? h.p(m, y) : (h = dt(m), h.c(), h.m(e, null)) : h && (h.d(1), h = null);
1120
1148
  },
1121
1149
  i: We,
1122
1150
  o: We,
1123
- d(g) {
1124
- g && ge(e), h.d(), p && p.d(), i[28](null);
1151
+ d(m) {
1152
+ m && me(e), g.d(), h && h.d(), o[28](null);
1125
1153
  }
1126
1154
  };
1127
1155
  }
1128
- function Ft(i, e, n) {
1156
+ function Gt(o, e, t) {
1129
1157
  let s;
1130
- yt(i, Ct, (t) => n(6, s = t));
1131
- let { userid: f = "" } = e, { session: d = "" } = e, { endpoint: h = "" } = e, { lang: p = "en" } = e, { clientstyling: g = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: R = "" } = e, { customlocaleidentifier: L = "" } = e, { gmversion: M = "gm16" } = e, { displaybalanceoption: F = "All" } = e, { totalcalculationmode: E = "totalCashAmount" } = e, { currencyseparator: j = "" } = e, { currencydecimal: B = "" } = e, { currencyprecision: C = "" } = e, O, k, P, J, ie = !1, X = "", x = [], A, N = !1;
1132
- const c = {}, G = ["totalCashAmount", "totalRealAmount"], De = () => {
1133
- fetch(R).then((t) => t.json()).then((t) => Object.keys(t).forEach((r) => Ze(r, t[r]))).catch((t) => console.log(t));
1158
+ Et(o, Ot, (n) => t(6, s = n));
1159
+ let { userid: u = "" } = e, { session: d = "" } = e, { endpoint: g = "" } = e, { lang: h = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: R = "" } = e, { customlocaleidentifier: L = "" } = e, { gmversion: M = "gm16" } = e, { displaybalanceoption: F = "All" } = e, { totalcalculationmode: E = "totalCashAmount" } = e, { currencyseparator: j = "" } = e, { currencydecimal: B = "" } = e, { currencyprecision: C = "" } = e, O, k, P, J, ie = !1, X = "", x = [], A, N = !1;
1160
+ const l = {}, G = ["totalCashAmount", "totalRealAmount"], De = () => {
1161
+ fetch(R).then((n) => n.json()).then((n) => Object.keys(n).forEach((i) => at(i, n[i]))).catch((n) => console.log(n));
1134
1162
  };
1135
- Object.keys($e).forEach((t) => Ze(t, $e[t]));
1136
- const se = (t) => {
1137
- switch (t) {
1163
+ Object.keys(ot).forEach((n) => at(n, ot[n]));
1164
+ const se = (n) => {
1165
+ switch (n) {
1138
1166
  case "balance":
1139
1167
  window.postMessage(
1140
1168
  {
@@ -1142,10 +1170,10 @@ function Ft(i, e, n) {
1142
1170
  status: "open"
1143
1171
  },
1144
1172
  window.location.href
1145
- ), n(4, ie = !0), setTimeout(() => n(3, P = !0), 150);
1173
+ ), t(4, ie = !0), setTimeout(() => t(3, P = !0), 150);
1146
1174
  break;
1147
1175
  case "closebalance":
1148
- n(3, P = !1), window.postMessage(
1176
+ t(3, P = !1), window.postMessage(
1149
1177
  {
1150
1178
  type: "BalanceModalStatus",
1151
1179
  status: "close"
@@ -1153,82 +1181,83 @@ function Ft(i, e, n) {
1153
1181
  window.location.href
1154
1182
  ), setTimeout(
1155
1183
  () => {
1156
- n(4, ie = !1);
1184
+ t(4, ie = !1);
1157
1185
  },
1158
1186
  150
1159
1187
  );
1160
1188
  break;
1161
1189
  }
1162
1190
  }, _e = () => {
1163
- if (L.includes(p))
1191
+ if (L.includes(h))
1164
1192
  return L;
1165
- }, Ae = (t) => L ? new Intl.NumberFormat(_e(), { useGrouping: !0 }).format(t) : j && B ? ne(t, {
1193
+ }, Ae = (n) => L ? new Intl.NumberFormat(_e(), { useGrouping: !0 }).format(n) : j && B ? ne(n, {
1166
1194
  separator: j,
1167
1195
  decimal: B,
1168
1196
  symbol: "",
1169
1197
  precision: parseInt(C || "2", 10)
1170
- }).format() : ne(t, {
1198
+ }).format() : ne(n, {
1171
1199
  separator: ".",
1172
1200
  decimal: ",",
1173
1201
  symbol: "",
1174
1202
  precision: parseInt(C || "2", 10)
1175
- }).format(), oe = async () => {
1176
- n(2, O = !0);
1177
- const t = new URL(`${h}/v1/player/${f}/account`);
1203
+ }).format(), oe = () => tt(this, null, function* () {
1204
+ var i, r, c;
1205
+ t(2, O = !0);
1206
+ const n = new URL(`${g}/v1/player/${u}/account`);
1178
1207
  try {
1179
- const r = await fetch(t, {
1208
+ const f = yield fetch(n, {
1180
1209
  method: "GET",
1181
1210
  headers: { "X-SessionID": d }
1182
- }), o = await r.json();
1183
- if (r.ok)
1184
- window.postMessage({ type: "BalancedFetched" }, window.location.href), x = o.items, n(5, X = x.find((l) => l.displayName === "Casino")?.currency), n(1, c.Total = [{ amount: o.totalAmount[X] }], c), n(
1211
+ }), v = yield f.json();
1212
+ if (f.ok)
1213
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), x = v.items, t(5, X = (i = x.find((p) => p.displayName === "Casino")) == null ? void 0 : i.currency), t(1, l.Total = [{ amount: v.totalAmount[X] }], l), t(
1185
1214
  1,
1186
- c.Real = [
1215
+ l.Real = [
1187
1216
  {
1188
- amount: x.find((l) => l.displayName === "Casino")?.balanceAmount
1217
+ amount: (r = x.find((p) => p.displayName === "Casino")) == null ? void 0 : r.balanceAmount
1189
1218
  }
1190
1219
  ],
1191
- c
1192
- ), n(
1220
+ l
1221
+ ), t(
1193
1222
  1,
1194
- c.Bonus = [
1223
+ l.Bonus = [
1195
1224
  {
1196
- amount: x.find((l) => l.displayName === "UBS")?.balanceAmount
1225
+ amount: (c = x.find((p) => p.displayName === "UBS")) == null ? void 0 : c.balanceAmount
1197
1226
  }
1198
1227
  ],
1199
- c
1228
+ l
1200
1229
  );
1201
1230
  else
1202
1231
  throw new Error("Failed to fetch balance data !");
1203
- } catch (r) {
1204
- console.log("Balance error: ", r);
1232
+ } catch (f) {
1233
+ console.log("Balance error: ", f);
1205
1234
  } finally {
1206
- n(2, O = !1);
1235
+ t(2, O = !1);
1207
1236
  }
1208
- }, ve = () => {
1209
- n(2, O = !0);
1210
- const t = new URL(`${h}/v2/player/${f}/balance`), r = new Headers();
1211
- r.append("X-SessionID", d), fetch(t, { method: "GET", headers: r }).then((l) => l.json()).then((l) => {
1212
- l[E] || n(10, E = G[0]);
1213
- const u = l.items.find((m) => m.type === "Real" && m.walletAccountType === "Ordinary");
1214
- if (n(5, X = u.currency), N = !!u.productType, n(1, c.Total = [{ amount: 0 }], c), n(1, c.Real = [], c), n(1, c.Bonus = [], c), n(1, c.Credit = [], c), !N) {
1237
+ }), ve = () => {
1238
+ t(2, O = !0);
1239
+ const n = new URL(`${g}/v2/player/${u}/balance`), i = new Headers();
1240
+ i.append("X-SessionID", d), fetch(n, { method: "GET", headers: i }).then((c) => c.json()).then((c) => {
1241
+ c[E] || t(10, E = G[0]);
1242
+ const f = c.items.find((p) => p.type === "Real" && p.walletAccountType === "Ordinary");
1243
+ if (t(5, X = f.currency), N = !!f.productType, t(1, l.Total = [{ amount: 0 }], l), t(1, l.Real = [], l), t(1, l.Bonus = [], l), t(1, l.Credit = [], l), !N) {
1215
1244
  A = {
1216
1245
  lastOrdinaryAfterAmount: 0,
1217
1246
  showCreditLineAfterAmount: !1
1218
- }, n(1, c.Total[0].amount = l[E][X], c);
1219
- for (const m of l.items)
1220
- switch (m.type) {
1247
+ }, t(1, l.Total[0].amount = c[E][X], l);
1248
+ for (const p of c.items)
1249
+ switch (p.type) {
1221
1250
  case "Bonus":
1222
- c.Bonus.length === 0 ? c.Bonus.push({ amount: m.amount }) : n(1, c.Bonus[0].amount += m.amount, c);
1251
+ l.Bonus.length === 0 ? l.Bonus.push({ amount: p.amount }) : t(1, l.Bonus[0].amount += p.amount, l);
1223
1252
  break;
1224
1253
  case "Real":
1225
- if (m.creditLine && c.Credit.length === 0 && c.Credit.push({ amount: m.creditLine }), E === "totalRealAmount") continue;
1226
- c.Real.length === 0 ? c.Real.push({ amount: m.amount }) : n(1, c.Real[0].amount += m.amount, c);
1254
+ if (p.creditLine && l.Credit.length === 0 && l.Credit.push({ amount: p.creditLine }), E === "totalRealAmount") continue;
1255
+ l.Real.length === 0 ? l.Real.push({ amount: p.amount }) : t(1, l.Real[0].amount += p.amount, l);
1227
1256
  break;
1228
1257
  }
1229
- for (const [m, w] of Object.entries(c))
1230
- w.length < 1 && delete c[m];
1231
- n(2, O = !1);
1258
+ for (const [p, w] of Object.entries(l))
1259
+ w.length < 1 && delete l[p];
1260
+ t(2, O = !1);
1232
1261
  return;
1233
1262
  }
1234
1263
  A = {
@@ -1241,126 +1270,126 @@ function Ft(i, e, n) {
1241
1270
  showCreditLineAfterAmount: !1
1242
1271
  }
1243
1272
  };
1244
- let y = l.items;
1245
- F && F !== "All" && (y = l.items.filter((m) => m.productType === F));
1246
- for (const m of y) {
1273
+ let v = c.items;
1274
+ F && F !== "All" && (v = c.items.filter((p) => p.productType === F));
1275
+ for (const p of v) {
1247
1276
  let w;
1248
- switch (m.type) {
1277
+ switch (p.type) {
1249
1278
  case "Bonus":
1250
- w = c.Bonus.findIndex((S) => S.productType === m.productType), w > 0 ? n(1, c.Bonus[w].amount += m.amount, c) : c.Bonus.push({
1251
- amount: m.amount,
1252
- productType: m.productType
1279
+ w = l.Bonus.findIndex((S) => S.productType === p.productType), w > 0 ? t(1, l.Bonus[w].amount += p.amount, l) : l.Bonus.push({
1280
+ amount: p.amount,
1281
+ productType: p.productType
1253
1282
  });
1254
1283
  break;
1255
1284
  case "Real":
1256
- m.creditLine && c.Credit.push({
1257
- amount: m.creditLine,
1258
- productType: m.productType
1259
- }), w = c.Real.findIndex((S) => S.productType === m.productType), w > 0 ? n(1, c.Real[w].amount += m.amount, c) : c.Real.push({
1260
- amount: m.amount,
1261
- productType: m.productType
1285
+ p.creditLine && l.Credit.push({
1286
+ amount: p.creditLine,
1287
+ productType: p.productType
1288
+ }), w = l.Real.findIndex((S) => S.productType === p.productType), w > 0 ? t(1, l.Real[w].amount += p.amount, l) : l.Real.push({
1289
+ amount: p.amount,
1290
+ productType: p.productType
1262
1291
  });
1263
1292
  break;
1264
1293
  }
1265
1294
  }
1266
1295
  Re();
1267
- for (const [m, w] of Object.entries(c))
1268
- w.length < 1 && delete c[m];
1269
- n(2, O = !1);
1270
- }).catch((l) => {
1271
- throw n(2, O = !1), new Error("Failed to fetch balance data !");
1296
+ for (const [p, w] of Object.entries(l))
1297
+ w.length < 1 && delete l[p];
1298
+ t(2, O = !1);
1299
+ }).catch((c) => {
1300
+ throw t(2, O = !1), new Error("Failed to fetch balance data !");
1272
1301
  });
1273
1302
  }, le = () => {
1274
1303
  if (J && J.close(), d.length < 1) return;
1275
- let t, r;
1304
+ let n, i;
1276
1305
  switch (M) {
1277
1306
  case "gm16":
1278
- t = new URL(`${h}/v2/player/${f}/information/updates`), r = (u) => je(u);
1307
+ n = new URL(`${g}/v2/player/${u}/information/updates`), i = (f) => je(f);
1279
1308
  break;
1280
1309
  case "gmcore":
1281
- t = new URL(`${h}/v1/player/${f}/balance/updates`), r = (u) => re(u);
1310
+ n = new URL(`${g}/v1/player/${u}/balance/updates`), i = (f) => re(f);
1282
1311
  break;
1283
1312
  }
1284
- const o = {
1313
+ const r = {
1285
1314
  accept: "text/event-stream",
1286
1315
  "X-SessionId": d
1287
- }, l = new _t.EventSourcePolyfill(t, { headers: o });
1288
- J = l, l.addEventListener("message", r);
1289
- }, Be = (t) => {
1290
- let r;
1316
+ }, c = new Ft.EventSourcePolyfill(n, { headers: r });
1317
+ J = c, c.addEventListener("message", i);
1318
+ }, Be = (n) => {
1319
+ let i;
1291
1320
  try {
1292
- r = JSON.parse(t);
1293
- } catch (o) {
1294
- console.log("Balance stream failed: ", o);
1321
+ i = JSON.parse(n);
1322
+ } catch (r) {
1323
+ console.log("Balance stream failed: ", r);
1295
1324
  return;
1296
1325
  }
1297
- return r;
1298
- }, re = (t) => {
1299
- const r = Be(t.data);
1300
- if (!r) {
1326
+ return i;
1327
+ }, re = (n) => {
1328
+ var f, v;
1329
+ const i = Be(n.data);
1330
+ if (!i) {
1301
1331
  le();
1302
1332
  return;
1303
1333
  }
1304
- let o = "0";
1305
- const l = r.balanceChange;
1306
- x = x.map((u) => (l && l[u.id] && (u = {
1307
- ...u,
1308
- balanceAmount: l[u.id].afterAmount
1309
- }), o = (parseFloat(u?.balanceAmount) + parseFloat(o)).toString(), u)), n(1, c.Real = [{ amount: x[0]?.balanceAmount }], c), n(1, c.Bonus = [{ amount: x[1]?.balanceAmount }], c), n(1, c.Total = [{ amount: Number(o) }], c);
1310
- }, we = (t, r, o) => {
1311
- let l = null;
1312
- switch (o.walletAccountType) {
1334
+ let r = "0";
1335
+ const c = i.balanceChange;
1336
+ x = x.map((p) => (c && c[p.id] && (p = et($e({}, p), {
1337
+ balanceAmount: c[p.id].afterAmount
1338
+ })), r = (parseFloat(p == null ? void 0 : p.balanceAmount) + parseFloat(r)).toString(), p)), t(1, l.Real = [{ amount: (f = x[0]) == null ? void 0 : f.balanceAmount }], l), t(1, l.Bonus = [{ amount: (v = x[1]) == null ? void 0 : v.balanceAmount }], l), t(1, l.Total = [{ amount: Number(r) }], l);
1339
+ }, we = (n, i, r) => {
1340
+ let c = null;
1341
+ switch (r.walletAccountType) {
1313
1342
  case "Ordinary":
1314
- o.afterAmount !== o.affectedAmount && (r.lastOrdinaryAfterAmount = o.afterAmount, r.showCreditLineAfterAmount || (l = o.afterAmount));
1343
+ r.afterAmount !== r.affectedAmount && (i.lastOrdinaryAfterAmount = r.afterAmount, i.showCreditLineAfterAmount || (c = r.afterAmount));
1315
1344
  break;
1316
1345
  case "CreditLine":
1317
- o.afterAmount !== 0 ? (l = o.afterAmount, r.showCreditLineAfterAmount = !0) : (l = r.lastOrdinaryAfterAmount, r.showCreditLineAfterAmount = !1);
1346
+ r.afterAmount !== 0 ? (c = r.afterAmount, i.showCreditLineAfterAmount = !0) : (c = i.lastOrdinaryAfterAmount, i.showCreditLineAfterAmount = !1);
1318
1347
  break;
1319
1348
  default:
1320
- l = o.afterAmount;
1349
+ c = r.afterAmount;
1321
1350
  }
1322
- return l === null ? t : l;
1351
+ return c === null ? n : c;
1323
1352
  }, Re = () => {
1324
1353
  switch (E) {
1325
1354
  case "totalCashAmount":
1326
- let t = 0;
1327
- for (const o of ["Real", "Bonus"])
1328
- for (const l of c[o])
1329
- t += Math.max(l.amount, 0);
1330
- n(1, c.Total[0].amount = t, c);
1355
+ let n = 0;
1356
+ for (const r of ["Real", "Bonus"])
1357
+ for (const c of l[r])
1358
+ n += Math.max(c.amount, 0);
1359
+ t(1, l.Total[0].amount = n, l);
1331
1360
  break;
1332
1361
  case "totalRealAmount":
1333
1362
  if (!N) return;
1334
- let r = 0;
1335
- for (const o of c.Real)
1336
- r += o.amount;
1337
- n(1, c.Total[0].amount = r, c);
1363
+ let i = 0;
1364
+ for (const r of l.Real)
1365
+ i += r.amount;
1366
+ t(1, l.Total[0].amount = i, l);
1338
1367
  }
1339
- }, je = (t) => {
1340
- const r = Be(t.data);
1341
- if (!r) {
1368
+ }, je = (n) => {
1369
+ const i = Be(n.data);
1370
+ if (!i) {
1342
1371
  le();
1343
1372
  return;
1344
1373
  }
1345
- if (r.type !== "BALANCE_UPDATE_V2")
1374
+ if (i.type !== "BALANCE_UPDATE_V2")
1346
1375
  return;
1347
- const o = r.body.balanceChange;
1348
- for (const [l, u] of Object.entries(o))
1349
- if (E === "totalRealAmount" && l === "Real" && !N && n(1, c.Total[0].amount = we(c.Total[0].amount, A, u), c), !!c[l])
1350
- for (const y of c[l]) {
1376
+ const r = i.body.balanceChange;
1377
+ for (const [c, f] of Object.entries(r))
1378
+ if (E === "totalRealAmount" && c === "Real" && !N && t(1, l.Total[0].amount = we(l.Total[0].amount, A, f), l), !!l[c])
1379
+ for (const v of l[c]) {
1351
1380
  if (!N) {
1352
- y.amount = l === "Real" ? we(y.amount, A, u) : u.afterAmount;
1381
+ v.amount = c === "Real" ? we(v.amount, A, f) : f.afterAmount;
1353
1382
  continue;
1354
1383
  }
1355
- u.productType === y.productType && (y.amount = l === "Real" ? we(y.amount, A[y.productType], u) : u.afterAmount);
1384
+ f.productType === v.productType && (v.amount = c === "Real" ? we(v.amount, A[v.productType], f) : f.afterAmount);
1356
1385
  }
1357
1386
  Re();
1358
1387
  }, Le = () => {
1359
1388
  se("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1360
1389
  }, He = () => {
1361
- G.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${G}. Using default value ('${G[0]}').`), n(10, E = G[0]));
1390
+ G.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${G}. Using default value ('${G[0]}').`), t(10, E = G[0]));
1362
1391
  }, ze = () => {
1363
- switch (St(p), He(), M) {
1392
+ switch (kt(h), He(), M) {
1364
1393
  case "gmcore":
1365
1394
  oe();
1366
1395
  break;
@@ -1370,15 +1399,15 @@ function Ft(i, e, n) {
1370
1399
  default:
1371
1400
  throw Error(`Invalid apiversion attribute: ${M}`);
1372
1401
  }
1373
- }, Te = (t) => t.data && t.data.type === "LogoutSuccessfull" && J.close(), Ee = () => {
1374
- const t = document.createElement("style");
1375
- t.innerHTML = g, k.appendChild(t);
1402
+ }, Te = (n) => n.data && n.data.type === "LogoutSuccessfull" && J.close(), Ee = () => {
1403
+ const n = document.createElement("style");
1404
+ n.innerHTML = m, k.appendChild(n);
1376
1405
  }, ye = () => {
1377
- const t = new URL(v), r = document.createElement("style");
1378
- fetch(t.href).then((o) => o.text()).then((o) => {
1379
- r.innerHTML = o, setTimeout(
1406
+ const n = new URL(y), i = document.createElement("style");
1407
+ fetch(n.href).then((r) => r.text()).then((r) => {
1408
+ i.innerHTML = r, setTimeout(
1380
1409
  () => {
1381
- k.appendChild(r);
1410
+ k.appendChild(i);
1382
1411
  },
1383
1412
  1
1384
1413
  );
@@ -1386,29 +1415,29 @@ function Ft(i, e, n) {
1386
1415
  }, Q = () => {
1387
1416
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
1388
1417
  };
1389
- wt(() => (window.addEventListener("message", Te, !1), () => {
1418
+ xt(() => (window.addEventListener("message", Te, !1), () => {
1390
1419
  window.removeEventListener("message", Te), J && J.close();
1391
1420
  }));
1392
1421
  const Ue = () => se("balance"), Pe = () => se("closebalance"), Xe = () => Le(), Oe = () => se("closeBalance");
1393
- function a(t) {
1394
- bt[t ? "unshift" : "push"](() => {
1395
- k = t, n(0, k);
1422
+ function a(n) {
1423
+ Mt[n ? "unshift" : "push"](() => {
1424
+ k = n, t(0, k);
1396
1425
  });
1397
1426
  }
1398
- return i.$$set = (t) => {
1399
- "userid" in t && n(11, f = t.userid), "session" in t && n(12, d = t.session), "endpoint" in t && n(13, h = t.endpoint), "lang" in t && n(14, p = t.lang), "clientstyling" in t && n(15, g = t.clientstyling), "clientstylingurl" in t && n(16, v = t.clientstylingurl), "translationurl" in t && n(17, R = t.translationurl), "customlocaleidentifier" in t && n(18, L = t.customlocaleidentifier), "gmversion" in t && n(19, M = t.gmversion), "displaybalanceoption" in t && n(20, F = t.displaybalanceoption), "totalcalculationmode" in t && n(10, E = t.totalcalculationmode), "currencyseparator" in t && n(21, j = t.currencyseparator), "currencydecimal" in t && n(22, B = t.currencydecimal), "currencyprecision" in t && n(23, C = t.currencyprecision);
1400
- }, i.$$.update = () => {
1401
- i.$$.dirty[0] & /*lang*/
1402
- 16384 && p && _e(), i.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1403
- 1603584 && h && f && d && p && M && F && ze(), i.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1404
- 538624 && h && f && d && M && le(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1405
- 32769 && g && k && Ee(), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1406
- 65537 && v && k && ye(), i.$$.dirty[0] & /*translationurl*/
1407
- 131072 && R && De(), i.$$.dirty[0] & /*balances*/
1408
- 2 && c.Total && Q();
1427
+ return o.$$set = (n) => {
1428
+ "userid" in n && t(11, u = n.userid), "session" in n && t(12, d = n.session), "endpoint" in n && t(13, g = n.endpoint), "lang" in n && t(14, h = n.lang), "clientstyling" in n && t(15, m = n.clientstyling), "clientstylingurl" in n && t(16, y = n.clientstylingurl), "translationurl" in n && t(17, R = n.translationurl), "customlocaleidentifier" in n && t(18, L = n.customlocaleidentifier), "gmversion" in n && t(19, M = n.gmversion), "displaybalanceoption" in n && t(20, F = n.displaybalanceoption), "totalcalculationmode" in n && t(10, E = n.totalcalculationmode), "currencyseparator" in n && t(21, j = n.currencyseparator), "currencydecimal" in n && t(22, B = n.currencydecimal), "currencyprecision" in n && t(23, C = n.currencyprecision);
1429
+ }, o.$$.update = () => {
1430
+ o.$$.dirty[0] & /*lang*/
1431
+ 16384 && h && _e(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1432
+ 1603584 && g && u && d && h && M && F && ze(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1433
+ 538624 && g && u && d && M && le(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1434
+ 32769 && m && k && Ee(), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1435
+ 65537 && y && k && ye(), o.$$.dirty[0] & /*translationurl*/
1436
+ 131072 && R && De(), o.$$.dirty[0] & /*balances*/
1437
+ 2 && l.Total && Q();
1409
1438
  }, [
1410
1439
  k,
1411
- c,
1440
+ l,
1412
1441
  O,
1413
1442
  P,
1414
1443
  ie,
@@ -1418,12 +1447,12 @@ function Ft(i, e, n) {
1418
1447
  Ae,
1419
1448
  Le,
1420
1449
  E,
1421
- f,
1450
+ u,
1422
1451
  d,
1423
- h,
1424
- p,
1425
1452
  g,
1426
- v,
1453
+ h,
1454
+ m,
1455
+ y,
1427
1456
  R,
1428
1457
  L,
1429
1458
  M,
@@ -1438,14 +1467,14 @@ function Ft(i, e, n) {
1438
1467
  a
1439
1468
  ];
1440
1469
  }
1441
- class It extends pt {
1470
+ class Kt extends Ct {
1442
1471
  constructor(e) {
1443
- super(), ht(
1472
+ super(), St(
1444
1473
  this,
1445
1474
  e,
1446
- Ft,
1447
- kt,
1448
- gt,
1475
+ Gt,
1476
+ Xt,
1477
+ At,
1449
1478
  {
1450
1479
  userid: 11,
1451
1480
  session: 12,
@@ -1462,7 +1491,7 @@ class It extends pt {
1462
1491
  currencydecimal: 22,
1463
1492
  currencyprecision: 23
1464
1493
  },
1465
- Dt,
1494
+ zt,
1466
1495
  [-1, -1]
1467
1496
  );
1468
1497
  }
@@ -1551,7 +1580,7 @@ class It extends pt {
1551
1580
  this.$$set({ currencyprecision: e }), Y();
1552
1581
  }
1553
1582
  }
1554
- mt(It, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
1583
+ _t(Kt, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
1555
1584
  export {
1556
- It as default
1585
+ Kt as default
1557
1586
  };