@everymatrix/casino-header-controller 1.64.0 → 1.64.2

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.
@@ -2,36 +2,36 @@ var ht = Object.defineProperty, mt = Object.defineProperties;
2
2
  var gt = Object.getOwnPropertyDescriptors;
3
3
  var Qe = Object.getOwnPropertySymbols;
4
4
  var yt = Object.prototype.hasOwnProperty, vt = Object.prototype.propertyIsEnumerable;
5
- var Ze = (o, e, n) => e in o ? ht(o, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[e] = n, $e = (o, e) => {
6
- for (var n in e || (e = {}))
7
- yt.call(e, n) && Ze(o, n, e[n]);
5
+ var Ze = (o, e, t) => e in o ? ht(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
8
  if (Qe)
9
- for (var n of Qe(e))
10
- vt.call(e, n) && Ze(o, n, e[n]);
9
+ for (var t of Qe(e))
10
+ vt.call(e, t) && Ze(o, t, e[t]);
11
11
  return o;
12
12
  }, et = (o, e) => mt(o, gt(e));
13
- var tt = (o, e, n) => new Promise((i, s) => {
13
+ var tt = (o, e, t) => new Promise((i, s) => {
14
14
  var l = (m) => {
15
15
  try {
16
- d(n.next(m));
16
+ d(t.next(m));
17
17
  } catch (y) {
18
18
  s(y);
19
19
  }
20
20
  }, g = (m) => {
21
21
  try {
22
- d(n.throw(m));
22
+ d(t.throw(m));
23
23
  } catch (y) {
24
24
  s(y);
25
25
  }
26
26
  }, d = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(l, g);
27
- d((n = n.apply(o, e)).next());
27
+ d((t = t.apply(o, e)).next());
28
28
  });
29
- import { b as wt, $ as bt, O as Bt, S as Ct, i as Tt, s as St, f as W, d as _t, n as qe, e as ge, h as ye, v as R, k as I, j as se, z as U, l as At, o as Rt, w as He, p as Et, u as he, y as me, r as xt, A as ze, B as ut, t as Dt, J as Lt, K as Mt, L as Ft, c as kt, I as Ot } from "./CasinoHamburgerMenu-BMkeLxFw.js";
29
+ import { b as bt, $ as wt, O as Bt, S as Ct, i as Tt, s as St, f as W, d as _t, n as qe, e as ge, h as ye, v as R, k as I, j as se, z as U, l as At, o as Rt, w as He, p as Et, u as he, y as me, r as xt, A as ze, B as ut, t as Dt, J as Lt, K as Mt, L as Ft, c as Ot, I as kt } from "./CasinoHamburgerMenu-BMkeLxFw.js";
30
30
  function nt(o, e) {
31
- wt(o, e);
31
+ bt(o, e);
32
32
  }
33
33
  function Nt(o) {
34
- bt.set(o);
34
+ wt.set(o);
35
35
  }
36
36
  const at = {
37
37
  en: {
@@ -240,23 +240,23 @@ var We = { exports: {} };
240
240
  * https://github.com/Yaffle/EventSource/
241
241
  */
242
242
  (function(o, e) {
243
- (function(n) {
244
- var i = n.setTimeout, s = n.clearTimeout, l = n.XMLHttpRequest, g = n.XDomainRequest, d = n.ActiveXObject, m = n.EventSource, y = n.document, D = n.Promise, k = n.fetch, b = n.Response, B = n.TextDecoder, _ = n.TextEncoder, P = n.AbortController;
245
- if (typeof window != "undefined" && typeof y != "undefined" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(t) {
243
+ (function(t) {
244
+ var i = t.setTimeout, s = t.clearTimeout, l = t.XMLHttpRequest, g = t.XDomainRequest, d = t.ActiveXObject, m = t.EventSource, y = t.document, D = t.Promise, O = t.fetch, B = t.Response, C = t.TextDecoder, A = t.TextEncoder, P = t.AbortController;
245
+ if (typeof window != "undefined" && typeof y != "undefined" && !("readyState" in y) && y.body == null && (y.readyState = "loading", window.addEventListener("load", function(n) {
246
246
  y.readyState = "complete";
247
247
  }, !1)), l == null && d != null && (l = function() {
248
248
  return new d("Microsoft.XMLHTTP");
249
- }), Object.create == null && (Object.create = function(t) {
249
+ }), Object.create == null && (Object.create = function(n) {
250
250
  function r() {
251
251
  }
252
- return r.prototype = t, new r();
252
+ return r.prototype = n, new r();
253
253
  }), Date.now || (Date.now = function() {
254
254
  return (/* @__PURE__ */ new Date()).getTime();
255
255
  }), P == null) {
256
- var F = k;
257
- k = function(t, r) {
256
+ var F = O;
257
+ O = function(n, r) {
258
258
  var c = r.signal;
259
- return F(t, { headers: r.headers, credentials: r.credentials, cache: r.cache }).then(function(a) {
259
+ return F(n, { headers: r.headers, credentials: r.credentials, cache: r.cache }).then(function(a) {
260
260
  var h = a.body.getReader();
261
261
  return c._reader = h, c._aborted && c._reader.cancel(), {
262
262
  status: a.status,
@@ -281,7 +281,7 @@ var We = { exports: {} };
281
281
  function H() {
282
282
  this.bitsNeeded = 0, this.codePoint = 0;
283
283
  }
284
- H.prototype.decode = function(t) {
284
+ H.prototype.decode = function(n) {
285
285
  function r(x, M, v) {
286
286
  if (v === 1)
287
287
  return x >= 128 >> M && x << M <= 2047;
@@ -300,31 +300,31 @@ var We = { exports: {} };
300
300
  return 3;
301
301
  throw new Error();
302
302
  }
303
- for (var a = 65533, h = "", p = this.bitsNeeded, w = this.codePoint, O = 0; O < t.length; O += 1) {
304
- var S = t[O];
305
- p !== 0 && (S < 128 || S > 191 || !r(w << 6 | S & 63, p - 6, c(p, w))) && (p = 0, w = a, h += String.fromCharCode(w)), p === 0 ? (S >= 0 && S <= 127 ? (p = 0, w = S) : S >= 192 && S <= 223 ? (p = 6 * 1, w = S & 31) : S >= 224 && S <= 239 ? (p = 6 * 2, w = S & 15) : S >= 240 && S <= 247 ? (p = 6 * 3, w = S & 7) : (p = 0, w = a), p !== 0 && !r(w, p, c(p, w)) && (p = 0, w = a)) : (p -= 6, w = w << 6 | S & 63), p === 0 && (w <= 65535 ? h += String.fromCharCode(w) : (h += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), h += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
303
+ for (var a = 65533, h = "", p = this.bitsNeeded, w = this.codePoint, k = 0; k < n.length; k += 1) {
304
+ var _ = n[k];
305
+ p !== 0 && (_ < 128 || _ > 191 || !r(w << 6 | _ & 63, p - 6, c(p, w))) && (p = 0, w = a, h += String.fromCharCode(w)), p === 0 ? (_ >= 0 && _ <= 127 ? (p = 0, w = _) : _ >= 192 && _ <= 223 ? (p = 6 * 1, w = _ & 31) : _ >= 224 && _ <= 239 ? (p = 6 * 2, w = _ & 15) : _ >= 240 && _ <= 247 ? (p = 6 * 3, w = _ & 7) : (p = 0, w = a), p !== 0 && !r(w, p, c(p, w)) && (p = 0, w = a)) : (p -= 6, w = w << 6 | _ & 63), p === 0 && (w <= 65535 ? h += String.fromCharCode(w) : (h += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), h += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
306
306
  }
307
307
  return this.bitsNeeded = p, this.codePoint = w, h;
308
308
  };
309
309
  var $ = function() {
310
310
  try {
311
- return new B().decode(new _().encode("test"), { stream: !0 }) === "test";
312
- } catch (t) {
313
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + t);
311
+ return new C().decode(new A().encode("test"), { stream: !0 }) === "test";
312
+ } catch (n) {
313
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + n);
314
314
  }
315
315
  return !1;
316
316
  };
317
- (B == null || _ == null || !$()) && (B = H);
318
- var T = function() {
317
+ (C == null || A == null || !$()) && (C = H);
318
+ var b = function() {
319
319
  };
320
- function C(t) {
321
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr = t, this._sendTimeout = 0, this._abort = T;
320
+ function T(n) {
321
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = b, this.onload = b, this.onerror = b, this.onreadystatechange = b, this._contentType = "", this._xhr = n, this._sendTimeout = 0, this._abort = b;
322
322
  }
323
- C.prototype.open = function(t, r) {
323
+ T.prototype.open = function(n, r) {
324
324
  this._abort(!0);
325
325
  var c = this, a = this._xhr, h = 1, p = 0;
326
326
  this._abort = function(v) {
327
- c._sendTimeout !== 0 && (s(c._sendTimeout), c._sendTimeout = 0), (h === 1 || h === 2 || h === 3) && (h = 4, a.onload = T, a.onerror = T, a.onabort = T, a.onprogress = T, a.onreadystatechange = T, a.abort(), p !== 0 && (s(p), p = 0), v || (c.readyState = 4, c.onabort(null), c.onreadystatechange())), h = 0;
327
+ c._sendTimeout !== 0 && (s(c._sendTimeout), c._sendTimeout = 0), (h === 1 || h === 2 || h === 3) && (h = 4, a.onload = b, a.onerror = b, a.onabort = b, a.onprogress = b, a.onreadystatechange = b, a.abort(), p !== 0 && (s(p), p = 0), v || (c.readyState = 4, c.onabort(null), c.onreadystatechange())), h = 0;
328
328
  };
329
329
  var w = function() {
330
330
  if (h === 1) {
@@ -339,7 +339,7 @@ var We = { exports: {} };
339
339
  }
340
340
  v !== 0 && (h = 2, c.readyState = 2, c.status = v, c.statusText = N, c._contentType = ue, c.onreadystatechange());
341
341
  }
342
- }, O = function() {
342
+ }, k = function() {
343
343
  if (w(), h === 2 || h === 3) {
344
344
  h = 3;
345
345
  var v = "";
@@ -349,10 +349,10 @@ var We = { exports: {} };
349
349
  }
350
350
  c.readyState = 3, c.responseText = v, c.onprogress();
351
351
  }
352
- }, S = function(v, N) {
352
+ }, _ = function(v, N) {
353
353
  if ((N == null || N.preventDefault == null) && (N = {
354
- preventDefault: T
355
- }), O(), h === 1 || h === 2 || h === 3) {
354
+ preventDefault: b
355
+ }), k(), h === 1 || h === 2 || h === 3) {
356
356
  if (h = 4, p !== 0 && (s(p), p = 0), c.readyState = 4, v === "load")
357
357
  c.onload(N);
358
358
  else if (v === "error")
@@ -364,37 +364,37 @@ var We = { exports: {} };
364
364
  c.onreadystatechange();
365
365
  }
366
366
  }, x = function(v) {
367
- a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && S(a.responseText === "" ? "error" : "load", v) : a.readyState === 3 ? "onprogress" in a || O() : a.readyState === 2 && w());
367
+ a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && _(a.responseText === "" ? "error" : "load", v) : a.readyState === 3 ? "onprogress" in a || k() : a.readyState === 2 && w());
368
368
  }, M = function() {
369
369
  p = i(function() {
370
370
  M();
371
- }, 500), a.readyState === 3 && O();
371
+ }, 500), a.readyState === 3 && k();
372
372
  };
373
373
  "onload" in a && (a.onload = function(v) {
374
- S("load", v);
374
+ _("load", v);
375
375
  }), "onerror" in a && (a.onerror = function(v) {
376
- S("error", v);
376
+ _("error", v);
377
377
  }), "onabort" in a && (a.onabort = function(v) {
378
- S("abort", v);
379
- }), "onprogress" in a && (a.onprogress = O), "onreadystatechange" in a && (a.onreadystatechange = function(v) {
378
+ _("abort", v);
379
+ }), "onprogress" in a && (a.onprogress = k), "onreadystatechange" in a && (a.onreadystatechange = function(v) {
380
380
  x(v);
381
- }), ("contentType" in a || !("ontimeout" in l.prototype)) && (r += (r.indexOf("?") === -1 ? "?" : "&") + "padding=true"), a.open(t, r, !0), "readyState" in a && (p = i(function() {
381
+ }), ("contentType" in a || !("ontimeout" in l.prototype)) && (r += (r.indexOf("?") === -1 ? "?" : "&") + "padding=true"), a.open(n, r, !0), "readyState" in a && (p = i(function() {
382
382
  M();
383
383
  }, 0));
384
- }, C.prototype.abort = function() {
384
+ }, T.prototype.abort = function() {
385
385
  this._abort(!1);
386
- }, C.prototype.getResponseHeader = function(t) {
386
+ }, T.prototype.getResponseHeader = function(n) {
387
387
  return this._contentType;
388
- }, C.prototype.setRequestHeader = function(t, r) {
388
+ }, T.prototype.setRequestHeader = function(n, r) {
389
389
  var c = this._xhr;
390
- "setRequestHeader" in c && c.setRequestHeader(t, r);
391
- }, C.prototype.getAllResponseHeaders = function() {
390
+ "setRequestHeader" in c && c.setRequestHeader(n, r);
391
+ }, T.prototype.getAllResponseHeaders = function() {
392
392
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
393
- }, C.prototype.send = function() {
393
+ }, T.prototype.send = function() {
394
394
  if ((!("ontimeout" in l.prototype) || !("sendAsBinary" in l.prototype) && !("mozAnon" in l.prototype)) && y != null && y.readyState != null && y.readyState !== "complete") {
395
- var t = this;
396
- t._sendTimeout = i(function() {
397
- t._sendTimeout = 0, t.send();
395
+ var n = this;
396
+ n._sendTimeout = i(function() {
397
+ n._sendTimeout = 0, n.send();
398
398
  }, 4);
399
399
  return;
400
400
  }
@@ -406,65 +406,65 @@ var We = { exports: {} };
406
406
  throw c;
407
407
  }
408
408
  };
409
- function G(t) {
410
- return t.replace(/[A-Z]/g, function(r) {
409
+ function G(n) {
410
+ return n.replace(/[A-Z]/g, function(r) {
411
411
  return String.fromCharCode(r.charCodeAt(0) + 32);
412
412
  });
413
413
  }
414
- function L(t) {
415
- for (var r = /* @__PURE__ */ Object.create(null), c = t.split(`\r
414
+ function L(n) {
415
+ for (var r = /* @__PURE__ */ Object.create(null), c = n.split(`\r
416
416
  `), a = 0; a < c.length; a += 1) {
417
- var h = c[a], p = h.split(": "), w = p.shift(), O = p.join(": ");
418
- r[G(w)] = O;
417
+ var h = c[a], p = h.split(": "), w = p.shift(), k = p.join(": ");
418
+ r[G(w)] = k;
419
419
  }
420
420
  this._map = r;
421
421
  }
422
- L.prototype.get = function(t) {
423
- return this._map[G(t)];
422
+ L.prototype.get = function(n) {
423
+ return this._map[G(n)];
424
424
  }, l != null && l.HEADERS_RECEIVED == null && (l.HEADERS_RECEIVED = 2);
425
- function ne() {
425
+ function ee() {
426
426
  }
427
- ne.prototype.open = function(t, r, c, a, h, p, w) {
428
- t.open("GET", h);
429
- var O = 0;
430
- t.onprogress = function() {
431
- var x = t.responseText, M = x.slice(O);
432
- O += M.length, c(M);
433
- }, t.onerror = function(x) {
427
+ ee.prototype.open = function(n, r, c, a, h, p, w) {
428
+ n.open("GET", h);
429
+ var k = 0;
430
+ n.onprogress = function() {
431
+ var x = n.responseText, M = x.slice(k);
432
+ k += M.length, c(M);
433
+ }, n.onerror = function(x) {
434
434
  x.preventDefault(), a(new Error("NetworkError"));
435
- }, t.onload = function() {
435
+ }, n.onload = function() {
436
436
  a(null);
437
- }, t.onabort = function() {
437
+ }, n.onabort = function() {
438
438
  a(null);
439
- }, t.onreadystatechange = function() {
440
- if (t.readyState === l.HEADERS_RECEIVED) {
441
- var x = t.status, M = t.statusText, v = t.getResponseHeader("Content-Type"), N = t.getAllResponseHeaders();
439
+ }, n.onreadystatechange = function() {
440
+ if (n.readyState === l.HEADERS_RECEIVED) {
441
+ var x = n.status, M = n.statusText, v = n.getResponseHeader("Content-Type"), N = n.getAllResponseHeaders();
442
442
  r(x, M, v, new L(N));
443
443
  }
444
- }, t.withCredentials = p;
445
- for (var S in w)
446
- Object.prototype.hasOwnProperty.call(w, S) && t.setRequestHeader(S, w[S]);
447
- return t.send(), t;
444
+ }, n.withCredentials = p;
445
+ for (var _ in w)
446
+ Object.prototype.hasOwnProperty.call(w, _) && n.setRequestHeader(_, w[_]);
447
+ return n.send(), n;
448
448
  };
449
- function ae(t) {
450
- this._headers = t;
449
+ function ve(n) {
450
+ this._headers = n;
451
451
  }
452
- ae.prototype.get = function(t) {
453
- return this._headers.get(t);
452
+ ve.prototype.get = function(n) {
453
+ return this._headers.get(n);
454
454
  };
455
- function ve() {
455
+ function ae() {
456
456
  }
457
- ve.prototype.open = function(t, r, c, a, h, p, w) {
458
- var O = null, S = new P(), x = S.signal, M = new B();
459
- return k(h, {
457
+ ae.prototype.open = function(n, r, c, a, h, p, w) {
458
+ var k = null, _ = new P(), x = _.signal, M = new C();
459
+ return O(h, {
460
460
  headers: w,
461
461
  credentials: p ? "include" : "same-origin",
462
462
  signal: x,
463
463
  cache: "no-store"
464
464
  }).then(function(v) {
465
- return O = v.body.getReader(), r(v.status, v.statusText, v.headers.get("Content-Type"), new ae(v.headers)), new D(function(N, ue) {
465
+ return k = v.body.getReader(), r(v.status, v.statusText, v.headers.get("Content-Type"), new ve(v.headers)), new D(function(N, ue) {
466
466
  var De = function() {
467
- O.read().then(function(Y) {
467
+ k.read().then(function(Y) {
468
468
  if (Y.done)
469
469
  N(void 0);
470
470
  else {
@@ -484,92 +484,92 @@ var We = { exports: {} };
484
484
  a(v);
485
485
  }), {
486
486
  abort: function() {
487
- O != null && O.cancel(), S.abort();
487
+ k != null && k.cancel(), _.abort();
488
488
  }
489
489
  };
490
490
  };
491
491
  function oe() {
492
492
  this._listeners = /* @__PURE__ */ Object.create(null);
493
493
  }
494
- function f(t) {
494
+ function f(n) {
495
495
  i(function() {
496
- throw t;
496
+ throw n;
497
497
  }, 0);
498
498
  }
499
- oe.prototype.dispatchEvent = function(t) {
500
- t.target = this;
501
- var r = this._listeners[t.type];
499
+ oe.prototype.dispatchEvent = function(n) {
500
+ n.target = this;
501
+ var r = this._listeners[n.type];
502
502
  if (r != null)
503
503
  for (var c = r.length, a = 0; a < c; a += 1) {
504
504
  var h = r[a];
505
505
  try {
506
- typeof h.handleEvent == "function" ? h.handleEvent(t) : h.call(this, t);
506
+ typeof h.handleEvent == "function" ? h.handleEvent(n) : h.call(this, n);
507
507
  } catch (p) {
508
508
  f(p);
509
509
  }
510
510
  }
511
- }, oe.prototype.addEventListener = function(t, r) {
512
- t = String(t);
513
- var c = this._listeners, a = c[t];
514
- a == null && (a = [], c[t] = a);
511
+ }, oe.prototype.addEventListener = function(n, r) {
512
+ n = String(n);
513
+ var c = this._listeners, a = c[n];
514
+ a == null && (a = [], c[n] = a);
515
515
  for (var h = !1, p = 0; p < a.length; p += 1)
516
516
  a[p] === r && (h = !0);
517
517
  h || a.push(r);
518
- }, oe.prototype.removeEventListener = function(t, r) {
519
- t = String(t);
520
- var c = this._listeners, a = c[t];
518
+ }, oe.prototype.removeEventListener = function(n, r) {
519
+ n = String(n);
520
+ var c = this._listeners, a = c[n];
521
521
  if (a != null) {
522
522
  for (var h = [], p = 0; p < a.length; p += 1)
523
523
  a[p] !== r && h.push(a[p]);
524
- h.length === 0 ? delete c[t] : c[t] = h;
524
+ h.length === 0 ? delete c[n] : c[n] = h;
525
525
  }
526
526
  };
527
- function ee(t) {
528
- this.type = t, this.target = void 0;
527
+ function te(n) {
528
+ this.type = n, this.target = void 0;
529
529
  }
530
- function Me(t, r) {
531
- ee.call(this, t), this.data = r.data, this.lastEventId = r.lastEventId;
530
+ function Me(n, r) {
531
+ te.call(this, n), this.data = r.data, this.lastEventId = r.lastEventId;
532
532
  }
533
- Me.prototype = Object.create(ee.prototype);
534
- function Ce(t, r) {
535
- ee.call(this, t), this.status = r.status, this.statusText = r.statusText, this.headers = r.headers;
533
+ Me.prototype = Object.create(te.prototype);
534
+ function Ce(n, r) {
535
+ te.call(this, n), this.status = r.status, this.statusText = r.statusText, this.headers = r.headers;
536
536
  }
537
- Ce.prototype = Object.create(ee.prototype);
538
- function Fe(t, r) {
539
- ee.call(this, t), this.error = r.error;
537
+ Ce.prototype = Object.create(te.prototype);
538
+ function Fe(n, r) {
539
+ te.call(this, n), this.error = r.error;
540
540
  }
541
- Fe.prototype = Object.create(ee.prototype);
542
- var Ae = -1, le = 0, ce = 1, we = 2, Re = -1, te = 0, Te = 1, ke = 2, Oe = 3, Ue = /^text\/event\-stream(;.*)?$/i, Pe = 1e3, Ne = 18e6, Ee = function(t, r) {
543
- var c = t == null ? r : parseInt(t, 10);
541
+ Fe.prototype = Object.create(te.prototype);
542
+ var Ae = -1, le = 0, ce = 1, be = 2, Re = -1, ne = 0, Te = 1, Oe = 2, ke = 3, Ue = /^text\/event\-stream(;.*)?$/i, Pe = 1e3, Ne = 18e6, Ee = function(n, r) {
543
+ var c = n == null ? r : parseInt(n, 10);
544
544
  return c !== c && (c = r), xe(c);
545
- }, xe = function(t) {
546
- return Math.min(Math.max(t, Pe), Ne);
547
- }, be = function(t, r, c) {
545
+ }, xe = function(n) {
546
+ return Math.min(Math.max(n, Pe), Ne);
547
+ }, we = function(n, r, c) {
548
548
  try {
549
- typeof r == "function" && r.call(t, c);
549
+ typeof r == "function" && r.call(n, c);
550
550
  } catch (a) {
551
551
  f(a);
552
552
  }
553
553
  };
554
- function J(t, r) {
555
- oe.call(this), r = r || {}, 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, A(this, t, r);
554
+ function J(n, r) {
555
+ oe.call(this), r = r || {}, 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, S(this, n, r);
556
556
  }
557
557
  function Ge() {
558
558
  return l != null && "withCredentials" in l.prototype || g == null ? new l() : new g();
559
559
  }
560
- var u = k != null && b != null && "body" in b.prototype;
561
- function A(t, r, c) {
560
+ var u = O != null && B != null && "body" in B.prototype;
561
+ function S(n, r, c) {
562
562
  r = String(r);
563
- var a = !!c.withCredentials, h = c.lastEventIdQueryParameterName || "lastEventId", p = xe(1e3), w = Ee(c.heartbeatTimeout, 45e3), O = "", S = p, x = !1, M = 0, v = c.headers || {}, N = c.Transport, ue = u && N == null ? void 0 : new C(N != null ? new N() : Ge()), De = N != null && typeof N != "string" ? new N() : ue == null ? new ve() : new ne(), Y = void 0, X = 0, re = Ae, Se = "", Ie = "", de = "", Ve = "", K = te, Xe = 0, Be = 0, ft = function(j, V, Q, Z) {
563
+ var a = !!c.withCredentials, h = c.lastEventIdQueryParameterName || "lastEventId", p = xe(1e3), w = Ee(c.heartbeatTimeout, 45e3), k = "", _ = p, x = !1, M = 0, v = c.headers || {}, N = c.Transport, ue = u && N == null ? void 0 : new T(N != null ? new N() : Ge()), De = N != null && typeof N != "string" ? new N() : ue == null ? new ae() : new ee(), Y = void 0, X = 0, re = Ae, Se = "", Ie = "", de = "", Ve = "", K = ne, Xe = 0, Be = 0, ft = function(j, V, Q, Z) {
564
564
  if (re === le)
565
565
  if (j === 200 && Q != null && Ue.test(Q)) {
566
- re = ce, x = Date.now(), S = p, t.readyState = ce;
566
+ re = ce, x = Date.now(), _ = p, n.readyState = ce;
567
567
  var q = new Ce("open", {
568
568
  status: j,
569
569
  statusText: V,
570
570
  headers: Z
571
571
  });
572
- t.dispatchEvent(q), be(t, t.onopen, q);
572
+ n.dispatchEvent(q), we(n, n.onopen, q);
573
573
  } else {
574
574
  var z = "";
575
575
  j !== 200 ? (V && (V = V.replace(/\s+/g, " ")), z = "EventSource's response has a status " + j + " " + V + " that is not 200. Aborting the connection.") : z = "EventSource's response has a Content-Type specifying an unsupported type: " + (Q == null ? "-" : Q.replace(/\s+/g, " ")) + ". Aborting the connection.", Ke();
@@ -578,7 +578,7 @@ var We = { exports: {} };
578
578
  statusText: V,
579
579
  headers: Z
580
580
  });
581
- t.dispatchEvent(q), be(t, t.onerror, q), console.error(z);
581
+ n.dispatchEvent(q), we(n, n.onerror, q), console.error(z);
582
582
  }
583
583
  }, pt = function(j) {
584
584
  if (re === ce) {
@@ -591,43 +591,43 @@ var We = { exports: {} };
591
591
  for (var z = 0; z < q.length; z += 1) {
592
592
  var Z = q.charCodeAt(z);
593
593
  if (K === Re && Z === 10)
594
- K = te;
595
- else if (K === Re && (K = te), Z === 13 || Z === 10) {
596
- if (K !== te) {
594
+ K = ne;
595
+ else if (K === Re && (K = ne), Z === 13 || Z === 10) {
596
+ if (K !== ne) {
597
597
  K === Te && (Be = z + 1);
598
598
  var fe = q.slice(Xe, Be - 1), pe = q.slice(Be + (Be < z && q.charCodeAt(Be) === 32 ? 1 : 0), z);
599
599
  fe === "data" ? (Se += `
600
- `, Se += pe) : fe === "id" ? Ie = pe : fe === "event" ? de = pe : fe === "retry" ? (p = Ee(pe, p), S = p) : fe === "heartbeatTimeout" && (w = Ee(pe, w), X !== 0 && (s(X), X = i(function() {
600
+ `, Se += pe) : fe === "id" ? Ie = pe : fe === "event" ? de = pe : fe === "retry" ? (p = Ee(pe, p), _ = p) : fe === "heartbeatTimeout" && (w = Ee(pe, w), X !== 0 && (s(X), X = i(function() {
601
601
  Le();
602
602
  }, w)));
603
603
  }
604
- if (K === te) {
604
+ if (K === ne) {
605
605
  if (Se !== "") {
606
- O = Ie, de === "" && (de = "message");
606
+ k = Ie, de === "" && (de = "message");
607
607
  var _e = new Me(de, {
608
608
  data: Se.slice(1),
609
609
  lastEventId: Ie
610
610
  });
611
- if (t.dispatchEvent(_e), de === "open" ? be(t, t.onopen, _e) : de === "message" ? be(t, t.onmessage, _e) : de === "error" && be(t, t.onerror, _e), re === we)
611
+ if (n.dispatchEvent(_e), de === "open" ? we(n, n.onopen, _e) : de === "message" ? we(n, n.onmessage, _e) : de === "error" && we(n, n.onerror, _e), re === be)
612
612
  return;
613
613
  }
614
614
  Se = "", de = "";
615
615
  }
616
- K = Z === 13 ? Re : te;
616
+ K = Z === 13 ? Re : ne;
617
617
  } else
618
- K === te && (Xe = z, K = Te), K === Te ? Z === 58 && (Be = z + 1, K = ke) : K === ke && (K = Oe);
618
+ K === ne && (Xe = z, K = Te), K === Te ? Z === 58 && (Be = z + 1, K = Oe) : K === Oe && (K = ke);
619
619
  }
620
620
  }
621
621
  }, Ye = function(j) {
622
622
  if (re === ce || re === le) {
623
623
  re = Ae, X !== 0 && (s(X), X = 0), X = i(function() {
624
624
  Le();
625
- }, S), S = xe(Math.min(p * 16, S * 2)), t.readyState = le;
625
+ }, _), _ = xe(Math.min(p * 16, _ * 2)), n.readyState = le;
626
626
  var V = new Fe("error", { error: j });
627
- t.dispatchEvent(V), be(t, t.onerror, V), j != null && console.error(j);
627
+ n.dispatchEvent(V), we(n, n.onerror, V), j != null && console.error(j);
628
628
  }
629
629
  }, Ke = function() {
630
- re = we, Y != null && (Y.abort(), Y = void 0), X !== 0 && (s(X), X = 0), t.readyState = we;
630
+ re = be, Y != null && (Y.abort(), Y = void 0), X !== 0 && (s(X), X = 0), n.readyState = be;
631
631
  }, Le = function() {
632
632
  if (X = 0, re !== Ae) {
633
633
  if (!x && Y != null)
@@ -642,17 +642,17 @@ var We = { exports: {} };
642
642
  }
643
643
  x = !1, M = 0, X = i(function() {
644
644
  Le();
645
- }, w), re = le, Se = "", de = "", Ie = O, Ve = "", Xe = 0, Be = 0, K = te;
645
+ }, w), re = le, Se = "", de = "", Ie = k, Ve = "", Xe = 0, Be = 0, K = ne;
646
646
  var V = r;
647
- if (r.slice(0, 5) !== "data:" && r.slice(0, 5) !== "blob:" && O !== "") {
647
+ if (r.slice(0, 5) !== "data:" && r.slice(0, 5) !== "blob:" && k !== "") {
648
648
  var Q = r.indexOf("?");
649
649
  V = Q === -1 ? r : r.slice(0, Q + 1) + r.slice(Q + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(pe, _e) {
650
650
  return _e === h ? "" : pe;
651
- }), V += (r.indexOf("?") === -1 ? "?" : "&") + h + "=" + encodeURIComponent(O);
651
+ }), V += (r.indexOf("?") === -1 ? "?" : "&") + h + "=" + encodeURIComponent(k);
652
652
  }
653
- var Z = t.withCredentials, q = {};
653
+ var Z = n.withCredentials, q = {};
654
654
  q.Accept = "text/event-stream";
655
- var z = t.headers;
655
+ var z = n.headers;
656
656
  if (z != null)
657
657
  for (var fe in z)
658
658
  Object.prototype.hasOwnProperty.call(z, fe) && (q[fe] = z[fe]);
@@ -662,19 +662,19 @@ var We = { exports: {} };
662
662
  throw Ke(), pe;
663
663
  }
664
664
  };
665
- t.url = r, t.readyState = le, t.withCredentials = a, t.headers = v, t._close = Ke, Le();
665
+ n.url = r, n.readyState = le, n.withCredentials = a, n.headers = v, n._close = Ke, Le();
666
666
  }
667
- J.prototype = Object.create(oe.prototype), J.prototype.CONNECTING = le, J.prototype.OPEN = ce, J.prototype.CLOSED = we, J.prototype.close = function() {
667
+ J.prototype = Object.create(oe.prototype), J.prototype.CONNECTING = le, J.prototype.OPEN = ce, J.prototype.CLOSED = be, J.prototype.close = function() {
668
668
  this._close();
669
- }, J.CONNECTING = le, J.OPEN = ce, J.CLOSED = we, J.prototype.withCredentials = void 0;
669
+ }, J.CONNECTING = le, J.OPEN = ce, J.CLOSED = be, J.prototype.withCredentials = void 0;
670
670
  var E = m;
671
- l != null && (m == null || !("withCredentials" in m.prototype)) && (E = J), function(t) {
671
+ l != null && (m == null || !("withCredentials" in m.prototype)) && (E = J), function(n) {
672
672
  {
673
- var r = t(e);
673
+ var r = n(e);
674
674
  r !== void 0 && (o.exports = r);
675
675
  }
676
- }(function(t) {
677
- t.EventSourcePolyfill = J, t.NativeEventSource = m, t.EventSource = E;
676
+ }(function(n) {
677
+ n.EventSourcePolyfill = J, n.NativeEventSource = m, n.EventSource = E;
678
678
  });
679
679
  })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Bt : globalThis);
680
680
  })(We, We.exports);
@@ -700,35 +700,35 @@ var Vt = {
700
700
  return Math.round(e);
701
701
  }, Je = function(e) {
702
702
  return Math.pow(10, e);
703
- }, jt = function(e, n) {
704
- return dt(e / n) * n;
703
+ }, jt = function(e, t) {
704
+ return dt(e / t) * t;
705
705
  }, Ht = /(\d)(?=(\d{3})+\b)/g, zt = /(\d)(?=(\d\d)+\d\b)/g;
706
706
  function ie(o, e) {
707
- var n = this;
708
- if (!(n instanceof ie))
707
+ var t = this;
708
+ if (!(t instanceof ie))
709
709
  return new ie(o, e);
710
710
  var i = Object.assign({}, Vt, e), s = Je(i.precision), l = je(o, i);
711
- n.intValue = l, n.value = l / s, i.increment = i.increment || 1 / s, i.useVedic ? i.groups = zt : i.groups = Ht, this.s = i, this.p = s;
711
+ t.intValue = l, t.value = l / s, i.increment = i.increment || 1 / s, i.useVedic ? i.groups = zt : i.groups = Ht, this.s = i, this.p = s;
712
712
  }
713
713
  function je(o, e) {
714
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, i = 0, s = e.decimal, l = e.errorOnInvalid, g = e.precision, d = e.fromCents, m = Je(g), y = typeof o == "number", D = o instanceof ie;
714
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, i = 0, s = e.decimal, l = e.errorOnInvalid, g = e.precision, d = e.fromCents, m = Je(g), y = typeof o == "number", D = o instanceof ie;
715
715
  if (D && d)
716
716
  return o.intValue;
717
717
  if (y || D)
718
718
  i = D ? o.value : o;
719
719
  else if (typeof o == "string") {
720
- var k = new RegExp("[^-\\d" + s + "]", "g"), b = new RegExp("\\" + s, "g");
721
- i = o.replace(/\((.*)\)/, "-$1").replace(k, "").replace(b, "."), i = i || 0;
720
+ var O = new RegExp("[^-\\d" + s + "]", "g"), B = new RegExp("\\" + s, "g");
721
+ i = o.replace(/\((.*)\)/, "-$1").replace(O, "").replace(B, "."), i = i || 0;
722
722
  } else {
723
723
  if (l)
724
724
  throw Error("Invalid Input");
725
725
  i = 0;
726
726
  }
727
- return d || (i *= m, i = i.toFixed(4)), n ? dt(i) : i;
727
+ return d || (i *= m, i = i.toFixed(4)), t ? dt(i) : i;
728
728
  }
729
729
  function Ut(o, e) {
730
- var n = e.pattern, i = e.negativePattern, s = e.symbol, l = e.separator, g = e.decimal, d = e.groups, m = ("" + o).replace(/^-/, "").split("."), y = m[0], D = m[1];
731
- return (o.value >= 0 ? n : i).replace("!", s).replace("#", y.replace(d, "$1" + l) + (D ? g + D : ""));
730
+ var t = e.pattern, i = e.negativePattern, s = e.symbol, l = e.separator, g = e.decimal, d = e.groups, m = ("" + o).replace(/^-/, "").split("."), y = m[0], D = m[1];
731
+ return (o.value >= 0 ? t : i).replace("!", s).replace("#", y.replace(d, "$1" + l) + (D ? g + D : ""));
732
732
  }
733
733
  ie.prototype = {
734
734
  /**
@@ -737,8 +737,8 @@ ie.prototype = {
737
737
  * @returns {currency}
738
738
  */
739
739
  add: function(e) {
740
- var n = this.intValue, i = this.s, s = this.p;
741
- return ie((n += je(e, i)) / (i.fromCents ? 1 : s), i);
740
+ var t = this.intValue, i = this.s, s = this.p;
741
+ return ie((t += je(e, i)) / (i.fromCents ? 1 : s), i);
742
742
  },
743
743
  /**
744
744
  * Subtracts value.
@@ -746,8 +746,8 @@ ie.prototype = {
746
746
  * @returns {currency}
747
747
  */
748
748
  subtract: function(e) {
749
- var n = this.intValue, i = this.s, s = this.p;
750
- return ie((n -= je(e, i)) / (i.fromCents ? 1 : s), i);
749
+ var t = this.intValue, i = this.s, s = this.p;
750
+ return ie((t -= je(e, i)) / (i.fromCents ? 1 : s), i);
751
751
  },
752
752
  /**
753
753
  * Multiplies values.
@@ -755,8 +755,8 @@ ie.prototype = {
755
755
  * @returns {currency}
756
756
  */
757
757
  multiply: function(e) {
758
- var n = this.intValue, i = this.s;
759
- return ie((n *= e) / (i.fromCents ? 1 : Je(i.precision)), i);
758
+ var t = this.intValue, i = this.s;
759
+ return ie((t *= e) / (i.fromCents ? 1 : Je(i.precision)), i);
760
760
  },
761
761
  /**
762
762
  * Divides value.
@@ -764,8 +764,8 @@ ie.prototype = {
764
764
  * @returns {currency}
765
765
  */
766
766
  divide: function(e) {
767
- var n = this.intValue, i = this.s;
768
- return ie(n /= je(e, i, !1), i);
767
+ var t = this.intValue, i = this.s;
768
+ return ie(t /= je(e, i, !1), i);
769
769
  },
770
770
  /**
771
771
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -774,9 +774,9 @@ ie.prototype = {
774
774
  * @returns {array}
775
775
  */
776
776
  distribute: function(e) {
777
- for (var n = this.intValue, i = this.p, s = this.s, l = [], g = Math[n >= 0 ? "floor" : "ceil"](n / e), d = Math.abs(n - g * e), m = s.fromCents ? 1 : i; e !== 0; e--) {
777
+ for (var t = this.intValue, i = this.p, s = this.s, l = [], g = Math[t >= 0 ? "floor" : "ceil"](t / e), d = Math.abs(t - g * e), m = s.fromCents ? 1 : i; e !== 0; e--) {
778
778
  var y = ie(g / m, s);
779
- d-- > 0 && (y = y[n >= 0 ? "add" : "subtract"](1 / m)), l.push(y);
779
+ d-- > 0 && (y = y[t >= 0 ? "add" : "subtract"](1 / m)), l.push(y);
780
780
  }
781
781
  return l;
782
782
  },
@@ -792,8 +792,8 @@ ie.prototype = {
792
792
  * @returns {number}
793
793
  */
794
794
  cents: function() {
795
- var e = this.intValue, n = this.p;
796
- return ~~(e % n);
795
+ var e = this.intValue, t = this.p;
796
+ return ~~(e % t);
797
797
  },
798
798
  /**
799
799
  * Formats the value as a string according to the formatting settings.
@@ -801,16 +801,16 @@ ie.prototype = {
801
801
  * @returns {string}
802
802
  */
803
803
  format: function(e) {
804
- var n = this.s;
805
- 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));
806
806
  },
807
807
  /**
808
808
  * Formats the value as a string according to the formatting settings.
809
809
  * @returns {string}
810
810
  */
811
811
  toString: function() {
812
- var e = this.intValue, n = this.p, i = this.s;
813
- return jt(e / n, i.increment).toFixed(i.precision);
812
+ var e = this.intValue, t = this.p, i = this.s;
813
+ return jt(e / t, i.increment).toFixed(i.precision);
814
814
  },
815
815
  /**
816
816
  * Value for JSON serialization.
@@ -821,18 +821,18 @@ ie.prototype = {
821
821
  }
822
822
  };
823
823
  function Pt(o) {
824
- _t(o, "svelte-4pkr1", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.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}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
824
+ _t(o, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.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;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
825
825
  }
826
- function ot(o, e, n) {
826
+ function ot(o, e, t) {
827
827
  const i = o.slice();
828
- return i[47] = e[n], i;
828
+ return i[47] = e[t], i;
829
829
  }
830
- function rt(o, e, n) {
830
+ function rt(o, e, t) {
831
831
  const i = o.slice();
832
- return i[50] = e[n], i;
832
+ return i[50] = e[t], i;
833
833
  }
834
834
  function Gt(o) {
835
- let e, n = (
835
+ let e, t = (
836
836
  /*balances*/
837
837
  (o[4].Total ? (
838
838
  /*formatBalance*/
@@ -841,63 +841,63 @@ function Gt(o) {
841
841
  o[4].Total[0].amount
842
842
  )
843
843
  ) : "0") + ""
844
- ), i, s, l, g, d, m, y, D, k, b = (
845
- /*showBalance*/
844
+ ), i, s, l, g, d, m, y, D, O, B = (
845
+ /*isModalDisplayed*/
846
846
  o[2] && it(o)
847
847
  );
848
848
  return {
849
849
  c() {
850
- e = I("p"), i = me(n), s = se(), l = me(
850
+ e = I("button"), i = me(t), s = se(), l = me(
851
851
  /*currency*/
852
852
  o[3]
853
- ), g = se(), d = I("span"), d.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', m = se(), b && b.c(), y = xt(), U(e, "class", "BalanceValue");
853
+ ), g = se(), d = I("span"), d.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', m = se(), B && B.c(), y = xt(), U(e, "class", "BalanceValue");
854
854
  },
855
- m(B, _) {
856
- ye(B, e, _), R(e, i), R(e, s), R(e, l), R(e, g), R(e, d), ye(B, m, _), b && b.m(B, _), ye(B, y, _), D || (k = He(
855
+ m(C, A) {
856
+ ye(C, e, A), R(e, i), R(e, s), R(e, l), R(e, g), R(e, d), ye(C, m, A), B && B.m(C, A), ye(C, y, A), D || (O = He(
857
857
  e,
858
858
  "click",
859
859
  /*click_handler*/
860
860
  o[23]
861
861
  ), D = !0);
862
862
  },
863
- p(B, _) {
864
- _[0] & /*balances*/
865
- 16 && n !== (n = /*balances*/
866
- (B[4].Total ? (
863
+ p(C, A) {
864
+ A[0] & /*balances*/
865
+ 16 && t !== (t = /*balances*/
866
+ (C[4].Total ? (
867
867
  /*formatBalance*/
868
- B[6](
868
+ C[6](
869
869
  /*balances*/
870
- B[4].Total[0].amount
870
+ C[4].Total[0].amount
871
871
  )
872
- ) : "0") + "") && he(i, n), _[0] & /*currency*/
872
+ ) : "0") + "") && he(i, t), A[0] & /*currency*/
873
873
  8 && he(
874
874
  l,
875
875
  /*currency*/
876
- B[3]
877
- ), /*showBalance*/
878
- B[2] ? b ? b.p(B, _) : (b = it(B), b.c(), b.m(y.parentNode, y)) : b && (b.d(1), b = null);
876
+ C[3]
877
+ ), /*isModalDisplayed*/
878
+ C[2] ? B ? B.p(C, A) : (B = it(C), B.c(), B.m(y.parentNode, y)) : B && (B.d(1), B = null);
879
879
  },
880
- d(B) {
881
- B && (ge(e), ge(m), ge(y)), b && b.d(B), D = !1, k();
880
+ d(C) {
881
+ C && (ge(e), ge(m), ge(y)), B && B.d(C), D = !1, O();
882
882
  }
883
883
  };
884
884
  }
885
885
  function Xt(o) {
886
- let e, n = (
886
+ let e, t = (
887
887
  /*$_*/
888
888
  o[5]("Loading") + ""
889
889
  ), i;
890
890
  return {
891
891
  c() {
892
- e = I("p"), i = me(n);
892
+ e = I("p"), i = me(t);
893
893
  },
894
894
  m(s, l) {
895
895
  ye(s, e, l), R(e, i);
896
896
  },
897
897
  p(s, l) {
898
898
  l[0] & /*$_*/
899
- 32 && n !== (n = /*$_*/
900
- s[5]("Loading") + "") && he(i, n);
899
+ 32 && t !== (t = /*$_*/
900
+ s[5]("Loading") + "") && he(i, t);
901
901
  },
902
902
  d(s) {
903
903
  s && ge(e);
@@ -905,73 +905,73 @@ function Xt(o) {
905
905
  };
906
906
  }
907
907
  function it(o) {
908
- let e, n, i, s, l, g, d = (
908
+ let e, t, i, s, l, g, d = (
909
909
  /*$_*/
910
910
  o[5]("Title") + ""
911
- ), m, y, D, k, b, B, _ = (
911
+ ), m, y, D, O, B, C, A = (
912
912
  /*$_*/
913
913
  o[5]("DepositButton") + ""
914
914
  ), P, F, H, $ = ze(Object.keys(
915
915
  /*balances*/
916
916
  o[4]
917
- )), T = [];
918
- for (let C = 0; C < $.length; C += 1)
919
- T[C] = lt(ot(o, $, C));
917
+ )), b = [];
918
+ for (let T = 0; T < $.length; T += 1)
919
+ b[T] = lt(ot(o, $, T));
920
920
  return {
921
921
  c() {
922
- e = I("div"), n = I("div"), i = se(), s = I("div"), l = I("div"), g = I("p"), m = me(d), y = se(), D = I("div");
923
- for (let C = 0; C < T.length; C += 1)
924
- T[C].c();
925
- k = se(), b = I("div"), B = I("button"), P = me(_), U(n, "class", "BalanceModalClose"), U(g, "class", "BalanceModalTitle"), U(l, "class", "BalanceModalHeader"), U(D, "class", "BalanceModalBody"), U(B, "class", "BalanceModalAction"), U(b, "class", "BalanceModalFooter"), U(s, "class", "BalanceModal"), U(e, "class", "BalanceModalWrapper");
922
+ e = I("div"), t = I("button"), i = se(), s = I("div"), l = I("div"), g = I("p"), m = me(d), y = se(), D = I("div");
923
+ for (let T = 0; T < b.length; T += 1)
924
+ b[T].c();
925
+ O = se(), B = I("div"), C = I("button"), P = me(A), U(t, "class", "BalanceModalClose"), U(g, "class", "BalanceModalTitle"), U(l, "class", "BalanceModalHeader"), U(D, "class", "BalanceModalBody"), U(C, "class", "BalanceModalAction"), U(B, "class", "BalanceModalFooter"), U(s, "class", "BalanceModal"), U(e, "class", "BalanceModalWrapper");
926
926
  },
927
- m(C, G) {
928
- ye(C, e, G), R(e, n), R(e, i), R(e, s), R(s, l), R(l, g), R(g, m), R(s, y), R(s, D);
929
- for (let L = 0; L < T.length; L += 1)
930
- T[L] && T[L].m(D, null);
931
- R(s, k), R(s, b), R(b, B), R(B, P), F || (H = [
927
+ m(T, G) {
928
+ ye(T, e, G), R(e, t), R(e, i), R(e, s), R(s, l), R(l, g), R(g, m), R(s, y), R(s, D);
929
+ for (let L = 0; L < b.length; L += 1)
930
+ b[L] && b[L].m(D, null);
931
+ R(s, O), R(s, B), R(B, C), R(C, P), F || (H = [
932
932
  He(
933
- n,
933
+ t,
934
934
  "click",
935
935
  /*click_handler_1*/
936
936
  o[24]
937
937
  ),
938
938
  He(
939
- B,
939
+ C,
940
940
  "click",
941
941
  /*click_handler_2*/
942
942
  o[25]
943
943
  )
944
944
  ], F = !0);
945
945
  },
946
- p(C, G) {
946
+ p(T, G) {
947
947
  if (G[0] & /*$_*/
948
948
  32 && d !== (d = /*$_*/
949
- C[5]("Title") + "") && he(m, d), G[0] & /*balances, currency, formatBalance, $_*/
949
+ T[5]("Title") + "") && he(m, d), G[0] & /*balances, currency, formatBalance, $_*/
950
950
  120) {
951
951
  $ = ze(Object.keys(
952
952
  /*balances*/
953
- C[4]
953
+ T[4]
954
954
  ));
955
955
  let L;
956
956
  for (L = 0; L < $.length; L += 1) {
957
- const ne = ot(C, $, L);
958
- T[L] ? T[L].p(ne, G) : (T[L] = lt(ne), T[L].c(), T[L].m(D, null));
957
+ const ee = ot(T, $, L);
958
+ b[L] ? b[L].p(ee, G) : (b[L] = lt(ee), b[L].c(), b[L].m(D, null));
959
959
  }
960
- for (; L < T.length; L += 1)
961
- T[L].d(1);
962
- T.length = $.length;
960
+ for (; L < b.length; L += 1)
961
+ b[L].d(1);
962
+ b.length = $.length;
963
963
  }
964
964
  G[0] & /*$_*/
965
- 32 && _ !== (_ = /*$_*/
966
- C[5]("DepositButton") + "") && he(P, _);
965
+ 32 && A !== (A = /*$_*/
966
+ T[5]("DepositButton") + "") && he(P, A);
967
967
  },
968
- d(C) {
969
- C && ge(e), ut(T, C), F = !1, Dt(H);
968
+ d(T) {
969
+ T && ge(e), ut(b, T), F = !1, Dt(H);
970
970
  }
971
971
  };
972
972
  }
973
973
  function st(o) {
974
- let e, n, i = (
974
+ let e, t, i = (
975
975
  /*$_*/
976
976
  o[5](
977
977
  /*k*/
@@ -986,7 +986,7 @@ function st(o) {
986
986
  o[50].productType
987
987
  )
988
988
  ) : "") + ""
989
- ), d, m, y, D, k = (
989
+ ), d, m, y, D, O = (
990
990
  /*b*/
991
991
  (o[50].amount ? (
992
992
  /*formatBalance*/
@@ -995,16 +995,16 @@ function st(o) {
995
995
  o[50].amount
996
996
  )
997
997
  ) : "0") + ""
998
- ), b, B, _, P;
998
+ ), B, C, A, P;
999
999
  return {
1000
1000
  c() {
1001
- e = I("div"), n = I("p"), s = me(i), l = se(), d = me(g), m = se(), y = I("p"), D = I("span"), b = me(k), B = se(), _ = I("span"), P = me(
1001
+ e = I("div"), t = I("p"), s = me(i), l = se(), d = me(g), m = se(), y = I("p"), D = I("span"), B = me(O), C = se(), A = I("span"), P = me(
1002
1002
  /*currency*/
1003
1003
  o[3]
1004
- ), U(n, "class", "BalanceModalText"), U(D, "class", "BalanceModalAmount"), U(_, "class", "BalanceModalCurrency"), U(y, "class", "BalanceModalValue"), U(e, "class", "BalanceModalRowLine");
1004
+ ), U(t, "class", "BalanceModalText"), U(D, "class", "BalanceModalAmount"), U(A, "class", "BalanceModalCurrency"), U(y, "class", "BalanceModalValue"), U(e, "class", "BalanceModalRowLine");
1005
1005
  },
1006
1006
  m(F, H) {
1007
- ye(F, e, H), R(e, n), R(n, s), R(n, l), R(n, d), R(e, m), R(e, y), R(y, D), R(D, b), R(y, B), R(y, _), R(_, P);
1007
+ ye(F, e, H), R(e, t), R(t, s), R(t, l), R(t, d), R(e, m), R(e, y), R(y, D), R(D, B), R(y, C), R(y, A), R(A, P);
1008
1008
  },
1009
1009
  p(F, H) {
1010
1010
  H[0] & /*$_, balances*/
@@ -1021,14 +1021,14 @@ function st(o) {
1021
1021
  F[50].productType
1022
1022
  )
1023
1023
  ) : "") + "") && he(d, g), H[0] & /*balances*/
1024
- 16 && k !== (k = /*b*/
1024
+ 16 && O !== (O = /*b*/
1025
1025
  (F[50].amount ? (
1026
1026
  /*formatBalance*/
1027
1027
  F[6](
1028
1028
  /*b*/
1029
1029
  F[50].amount
1030
1030
  )
1031
- ) : "0") + "") && he(b, k), H[0] & /*currency*/
1031
+ ) : "0") + "") && he(B, O), H[0] & /*currency*/
1032
1032
  8 && he(
1033
1033
  P,
1034
1034
  /*currency*/
@@ -1041,7 +1041,7 @@ function st(o) {
1041
1041
  };
1042
1042
  }
1043
1043
  function lt(o) {
1044
- let e, n, i = ze(
1044
+ let e, t, i = ze(
1045
1045
  /*balances*/
1046
1046
  o[4][
1047
1047
  /*k*/
@@ -1055,13 +1055,13 @@ function lt(o) {
1055
1055
  e = I("div");
1056
1056
  for (let l = 0; l < s.length; l += 1)
1057
1057
  s[l].c();
1058
- n = se(), U(e, "class", "BalanceModalRowBoth");
1058
+ t = se(), U(e, "class", "BalanceModalRowBoth");
1059
1059
  },
1060
1060
  m(l, g) {
1061
1061
  ye(l, e, g);
1062
1062
  for (let d = 0; d < s.length; d += 1)
1063
1063
  s[d] && s[d].m(e, null);
1064
- R(e, n);
1064
+ R(e, t);
1065
1065
  },
1066
1066
  p(l, g) {
1067
1067
  if (g[0] & /*currency, balances, formatBalance, $_*/
@@ -1076,7 +1076,7 @@ function lt(o) {
1076
1076
  let d;
1077
1077
  for (d = 0; d < i.length; d += 1) {
1078
1078
  const m = rt(l, i, d);
1079
- s[d] ? s[d].p(m, g) : (s[d] = st(m), s[d].c(), s[d].m(e, n));
1079
+ s[d] ? s[d].p(m, g) : (s[d] = st(m), s[d].c(), s[d].m(e, t));
1080
1080
  }
1081
1081
  for (; d < s.length; d += 1)
1082
1082
  s[d].d(1);
@@ -1089,27 +1089,27 @@ function lt(o) {
1089
1089
  };
1090
1090
  }
1091
1091
  function ct(o) {
1092
- let e, n, i;
1092
+ let e, t, i;
1093
1093
  return {
1094
1094
  c() {
1095
- e = I("div"), U(e, "class", "ShowBalanceModalOverlay");
1095
+ e = I("button"), U(e, "class", "ShowBalanceModalOverlay");
1096
1096
  },
1097
1097
  m(s, l) {
1098
- ye(s, e, l), n || (i = He(
1098
+ ye(s, e, l), t || (i = He(
1099
1099
  e,
1100
1100
  "click",
1101
1101
  /*click_handler_3*/
1102
1102
  o[26]
1103
- ), n = !0);
1103
+ ), t = !0);
1104
1104
  },
1105
1105
  p: qe,
1106
1106
  d(s) {
1107
- s && ge(e), n = !1, i();
1107
+ s && ge(e), t = !1, i();
1108
1108
  }
1109
1109
  };
1110
1110
  }
1111
1111
  function Kt(o) {
1112
- let e, n, i;
1112
+ let e, t, i;
1113
1113
  function s(m, y) {
1114
1114
  return (
1115
1115
  /*isLoading*/
@@ -1117,18 +1117,18 @@ function Kt(o) {
1117
1117
  );
1118
1118
  }
1119
1119
  let l = s(o), g = l(o), d = (
1120
- /*showBalance*/
1120
+ /*isModalDisplayed*/
1121
1121
  o[2] && ct(o)
1122
1122
  );
1123
1123
  return {
1124
1124
  c() {
1125
- e = I("div"), n = I("div"), g.c(), i = se(), d && d.c(), U(n, "class", "ShowBalance");
1125
+ e = I("div"), t = I("div"), g.c(), i = se(), d && d.c(), U(t, "class", "ShowBalance");
1126
1126
  },
1127
1127
  m(m, y) {
1128
- ye(m, e, y), R(e, n), g.m(n, null), R(e, i), d && d.m(e, null), o[27](e);
1128
+ ye(m, e, y), R(e, t), g.m(t, null), R(e, i), d && d.m(e, null), o[27](e);
1129
1129
  },
1130
1130
  p(m, y) {
1131
- l === (l = s(m)) && g ? g.p(m, y) : (g.d(1), g = l(m), g && (g.c(), g.m(n, null))), /*showBalance*/
1131
+ l === (l = s(m)) && g ? g.p(m, y) : (g.d(1), g = l(m), g && (g.c(), g.m(t, null))), /*isModalDisplayed*/
1132
1132
  m[2] ? d ? d.p(m, y) : (d = ct(m), d.c(), d.m(e, null)) : d && (d.d(1), d = null);
1133
1133
  },
1134
1134
  i: qe,
@@ -1138,18 +1138,18 @@ function Kt(o) {
1138
1138
  }
1139
1139
  };
1140
1140
  }
1141
- function qt(o, e, n) {
1141
+ function qt(o, e, t) {
1142
1142
  let i;
1143
- At(o, Ot, (u) => n(5, i = u));
1144
- let { userid: s = "" } = e, { session: l = "" } = e, { endpoint: g = "" } = e, { lang: d = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: D = "" } = e, { customlocaleidentifier: k = "" } = e, { gmversion: b = "gm16" } = e, { displaybalanceoption: B = "All" } = e, { totalcalculationmode: _ = "totalCashAmount" } = e, { currencyseparator: P = "" } = e, { currencydecimal: F = "" } = e, { currencyprecision: H = "" } = e, { mbsource: $ } = e, T, C, G, L = !1, ne = "", ae = [], ve, oe = !1;
1145
- const f = {}, ee = ["totalCashAmount", "totalRealAmount"], Me = () => {
1146
- fetch(D).then((u) => u.json()).then((u) => Object.keys(u).forEach((A) => nt(A, u[A]))).catch((u) => console.log(u));
1143
+ At(o, kt, (u) => t(5, i = u));
1144
+ let { userid: s = "" } = e, { session: l = "" } = e, { endpoint: g = "" } = e, { lang: d = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: y = "" } = e, { translationurl: D = "" } = e, { customlocaleidentifier: O = "" } = e, { gmversion: B = "gm16" } = e, { displaybalanceoption: C = "All" } = e, { totalcalculationmode: A = "totalCashAmount" } = e, { currencyseparator: P = "" } = e, { currencydecimal: F = "" } = e, { currencyprecision: H = "" } = e, { mbsource: $ } = e, b, T = !0, G = !1, L = !1, ee, ve = "", ae = [], oe;
1145
+ const f = {}, te = ["totalCashAmount", "totalRealAmount"], Me = () => {
1146
+ fetch(D).then((u) => u.json()).then((u) => Object.keys(u).forEach((S) => nt(S, u[S]))).catch((u) => console.log(u));
1147
1147
  };
1148
1148
  Object.keys(at).forEach((u) => nt(u, at[u]));
1149
1149
  const Ce = () => {
1150
- if (k.includes(d))
1151
- return k;
1152
- }, Fe = (u) => k ? new Intl.NumberFormat(Ce(), { useGrouping: !0 }).format(u) : P && F ? ie(u, {
1150
+ if (O.includes(d))
1151
+ return O;
1152
+ }, Fe = (u) => O ? new Intl.NumberFormat(Ce(), { useGrouping: !0 }).format(u) : P && F ? ie(u, {
1153
1153
  separator: P,
1154
1154
  decimal: F,
1155
1155
  symbol: "",
@@ -1160,8 +1160,8 @@ function qt(o, e, n) {
1160
1160
  symbol: "",
1161
1161
  precision: parseInt(H || "2", 10)
1162
1162
  }).format(), Ae = () => tt(this, null, function* () {
1163
- var A, E, t;
1164
- n(1, T = !0);
1163
+ var S, E, n;
1164
+ t(1, T = !0);
1165
1165
  const u = new URL(`${g}/v1/player/${s}/account`);
1166
1166
  try {
1167
1167
  const r = yield fetch(u, {
@@ -1169,7 +1169,7 @@ function qt(o, e, n) {
1169
1169
  headers: { "X-SessionID": l }
1170
1170
  }), c = yield r.json();
1171
1171
  if (r.ok)
1172
- ae = c.items, n(3, ne = (A = ae.find((a) => a.displayName === "Casino")) == null ? void 0 : A.currency), n(4, f.Total = [{ amount: c.totalAmount[ne] }], f), n(
1172
+ ae = c.items, t(3, ve = (S = ae.find((a) => a.displayName === "Casino")) == null ? void 0 : S.currency), t(4, f.Total = [{ amount: c.totalAmount[ve] }], f), t(
1173
1173
  4,
1174
1174
  f.Real = [
1175
1175
  {
@@ -1177,11 +1177,11 @@ function qt(o, e, n) {
1177
1177
  }
1178
1178
  ],
1179
1179
  f
1180
- ), n(
1180
+ ), t(
1181
1181
  4,
1182
1182
  f.Bonus = [
1183
1183
  {
1184
- amount: (t = ae.find((a) => a.displayName === "UBS")) == null ? void 0 : t.balanceAmount
1184
+ amount: (n = ae.find((a) => a.displayName === "UBS")) == null ? void 0 : n.balanceAmount
1185
1185
  }
1186
1186
  ],
1187
1187
  f
@@ -1191,36 +1191,36 @@ function qt(o, e, n) {
1191
1191
  } catch (r) {
1192
1192
  console.log("Balance error: ", r);
1193
1193
  } finally {
1194
- n(1, T = !1);
1194
+ t(1, T = !1);
1195
1195
  }
1196
1196
  }), le = () => {
1197
- n(1, T = !0);
1198
- const u = new URL(`${g}/v2/player/${s}/balance`), A = new Headers();
1199
- A.append("X-SessionID", l), fetch(u, { method: "GET", headers: A }).then((t) => t.json()).then((t) => {
1200
- t[_] || n(8, _ = ee[0]);
1201
- const r = t.items.find((a) => a.type === "Real" && a.walletAccountType === "Ordinary");
1202
- if (n(3, ne = r.currency), oe = !!r.productType, n(4, f.Total = [{ amount: 0 }], f), n(4, f.Real = [], f), n(4, f.Bonus = [], f), n(4, f.Credit = [], f), !oe) {
1203
- ve = {
1197
+ t(1, T = !0);
1198
+ const u = new URL(`${g}/v2/player/${s}/balance`), S = new Headers();
1199
+ S.append("X-SessionID", l), fetch(u, { method: "GET", headers: S }).then((n) => n.json()).then((n) => {
1200
+ n[A] || t(8, A = te[0]);
1201
+ const r = n.items.find((a) => a.type === "Real" && a.walletAccountType === "Ordinary");
1202
+ if (t(3, ve = r.currency), L = !!r.productType, t(4, f.Total = [{ amount: 0 }], f), t(4, f.Real = [], f), t(4, f.Bonus = [], f), t(4, f.Credit = [], f), !L) {
1203
+ oe = {
1204
1204
  lastOrdinaryAfterAmount: 0,
1205
1205
  showCreditLineAfterAmount: !1
1206
- }, n(4, f.Total[0].amount = t[_][ne], f);
1207
- for (const a of t.items)
1206
+ }, t(4, f.Total[0].amount = n[A][ve], f);
1207
+ for (const a of n.items)
1208
1208
  switch (a.type) {
1209
1209
  case "Bonus":
1210
- f.Bonus.length === 0 ? f.Bonus.push({ amount: a.amount }) : n(4, f.Bonus[0].amount += a.amount, f);
1210
+ f.Bonus.length === 0 ? f.Bonus.push({ amount: a.amount }) : t(4, f.Bonus[0].amount += a.amount, f);
1211
1211
  break;
1212
1212
  case "Real":
1213
- if (a.creditLine && f.Credit.length === 0 && f.Credit.push({ amount: a.creditLine }), _ === "totalRealAmount")
1213
+ if (a.creditLine && f.Credit.length === 0 && f.Credit.push({ amount: a.creditLine }), A === "totalRealAmount")
1214
1214
  continue;
1215
- f.Real.length === 0 ? f.Real.push({ amount: a.amount }) : n(4, f.Real[0].amount += a.amount, f);
1215
+ f.Real.length === 0 ? f.Real.push({ amount: a.amount }) : t(4, f.Real[0].amount += a.amount, f);
1216
1216
  break;
1217
1217
  }
1218
1218
  for (const [a, h] of Object.entries(f))
1219
1219
  h.length < 1 && delete f[a];
1220
- n(1, T = !1);
1220
+ t(1, T = !1);
1221
1221
  return;
1222
1222
  }
1223
- ve = {
1223
+ oe = {
1224
1224
  Casino: {
1225
1225
  lastOrdinaryAfterAmount: 0,
1226
1226
  showCreditLineAfterAmount: !1
@@ -1230,13 +1230,13 @@ function qt(o, e, n) {
1230
1230
  showCreditLineAfterAmount: !1
1231
1231
  }
1232
1232
  };
1233
- let c = t.items;
1234
- B && B !== "All" && (c = t.items.filter((a) => a.productType === B));
1233
+ let c = n.items;
1234
+ C && C !== "All" && (c = n.items.filter((a) => a.productType === C));
1235
1235
  for (const a of c) {
1236
1236
  let h;
1237
1237
  switch (a.type) {
1238
1238
  case "Bonus":
1239
- h = f.Bonus.findIndex((p) => p.productType === a.productType), h > 0 ? n(4, f.Bonus[h].amount += a.amount, f) : f.Bonus.push({
1239
+ h = f.Bonus.findIndex((p) => p.productType === a.productType), h > 0 ? t(4, f.Bonus[h].amount += a.amount, f) : f.Bonus.push({
1240
1240
  amount: a.amount,
1241
1241
  productType: a.productType
1242
1242
  });
@@ -1245,7 +1245,7 @@ function qt(o, e, n) {
1245
1245
  a.creditLine && f.Credit.push({
1246
1246
  amount: a.creditLine,
1247
1247
  productType: a.productType
1248
- }), h = f.Real.findIndex((p) => p.productType === a.productType), h > 0 ? n(4, f.Real[h].amount += a.amount, f) : f.Real.push({
1248
+ }), h = f.Real.findIndex((p) => p.productType === a.productType), h > 0 ? t(4, f.Real[h].amount += a.amount, f) : f.Real.push({
1249
1249
  amount: a.amount,
1250
1250
  productType: a.productType
1251
1251
  });
@@ -1255,103 +1255,103 @@ function qt(o, e, n) {
1255
1255
  Te();
1256
1256
  for (const [a, h] of Object.entries(f))
1257
1257
  h.length < 1 && delete f[a];
1258
- n(1, T = !1);
1259
- }).catch((t) => {
1260
- throw n(1, T = !1), new Error("Failed to fetch balance data !");
1258
+ t(1, T = !1);
1259
+ }).catch(() => {
1260
+ throw t(1, T = !1), new Error("Failed to fetch balance data !");
1261
1261
  });
1262
1262
  }, ce = () => {
1263
- if (G && G.close(), l.length < 1)
1263
+ if (ee && ee.close(), l.length < 1)
1264
1264
  return;
1265
- let u, A;
1266
- switch (b) {
1265
+ let u, S;
1266
+ switch (B) {
1267
1267
  case "gm16":
1268
- u = new URL(`${g}/v2/player/${s}/information/updates`), A = (r) => ke(r);
1268
+ u = new URL(`${g}/v2/player/${s}/information/updates`), S = (r) => Oe(r);
1269
1269
  break;
1270
1270
  case "gmcore":
1271
- u = new URL(`${g}/v1/player/${s}/balance/updates`), A = (r) => Re(r);
1271
+ u = new URL(`${g}/v1/player/${s}/balance/updates`), S = (r) => Re(r);
1272
1272
  break;
1273
1273
  }
1274
1274
  const E = {
1275
1275
  accept: "text/event-stream",
1276
1276
  "X-SessionId": l
1277
- }, t = new It.EventSourcePolyfill(u, { headers: E });
1278
- G = t, t.addEventListener("message", A);
1279
- }, we = (u) => {
1280
- let A;
1277
+ }, n = new It.EventSourcePolyfill(u, { headers: E });
1278
+ ee = n, n.addEventListener("message", S);
1279
+ }, be = (u) => {
1280
+ let S;
1281
1281
  try {
1282
- A = JSON.parse(u);
1282
+ S = JSON.parse(u);
1283
1283
  } catch (E) {
1284
1284
  console.log("Balance stream failed: ", E);
1285
1285
  return;
1286
1286
  }
1287
- return A;
1287
+ return S;
1288
1288
  }, Re = (u) => {
1289
1289
  var r, c;
1290
- const A = we(u.data);
1291
- if (!A) {
1290
+ const S = be(u.data);
1291
+ if (!S) {
1292
1292
  ce();
1293
1293
  return;
1294
1294
  }
1295
1295
  let E = "0";
1296
- const t = A.balanceChange;
1297
- ae = ae.map((a) => (t && t[a.id] && (a = et($e({}, a), {
1298
- balanceAmount: t[a.id].afterAmount
1299
- })), E = (parseFloat(a == null ? void 0 : a.balanceAmount) + parseFloat(E)).toString(), a)), n(4, f.Real = [{ amount: (r = ae[0]) == null ? void 0 : r.balanceAmount }], f), n(4, f.Bonus = [{ amount: (c = ae[1]) == null ? void 0 : c.balanceAmount }], f), n(4, f.Total = [{ amount: Number(E) }], f);
1300
- }, te = (u, A, E) => {
1301
- let t = null;
1296
+ const n = S.balanceChange;
1297
+ ae = ae.map((a) => (n && n[a.id] && (a = et($e({}, a), {
1298
+ balanceAmount: n[a.id].afterAmount
1299
+ })), E = (parseFloat(a == null ? void 0 : a.balanceAmount) + parseFloat(E)).toString(), a)), t(4, f.Real = [{ amount: (r = ae[0]) == null ? void 0 : r.balanceAmount }], f), t(4, f.Bonus = [{ amount: (c = ae[1]) == null ? void 0 : c.balanceAmount }], f), t(4, f.Total = [{ amount: Number(E) }], f);
1300
+ }, ne = (u, S, E) => {
1301
+ let n = null;
1302
1302
  switch (E.walletAccountType) {
1303
1303
  case "Ordinary":
1304
- E.afterAmount !== E.affectedAmount && (A.lastOrdinaryAfterAmount = E.afterAmount, A.showCreditLineAfterAmount || (t = E.afterAmount));
1304
+ (E.afterAmount !== E.affectedAmount || S.lastOrdinaryAfterAmount === 0) && (S.lastOrdinaryAfterAmount = E.afterAmount, S.showCreditLineAfterAmount || (n = E.afterAmount));
1305
1305
  break;
1306
1306
  case "CreditLine":
1307
- E.afterAmount !== 0 ? (t = E.afterAmount, A.showCreditLineAfterAmount = !0) : (t = A.lastOrdinaryAfterAmount, A.showCreditLineAfterAmount = !1);
1307
+ E.afterAmount !== 0 ? (n = E.afterAmount, S.showCreditLineAfterAmount = !0) : (n = S.lastOrdinaryAfterAmount, S.showCreditLineAfterAmount = !1);
1308
1308
  break;
1309
1309
  default:
1310
- t = E.afterAmount;
1310
+ n = E.afterAmount;
1311
1311
  }
1312
- return t === null ? u : t;
1312
+ return n === null ? u : n;
1313
1313
  }, Te = () => {
1314
- switch (_) {
1314
+ switch (A) {
1315
1315
  case "totalCashAmount":
1316
1316
  let u = 0;
1317
1317
  for (const E of ["Real", "Bonus"])
1318
- for (const t of f[E])
1319
- u += Math.max(t.amount, 0);
1320
- n(4, f.Total[0].amount = u, f);
1318
+ for (const n of f[E])
1319
+ u += Math.max(n.amount, 0);
1320
+ t(4, f.Total[0].amount = u, f);
1321
1321
  break;
1322
1322
  case "totalRealAmount":
1323
- if (!oe)
1323
+ if (!L)
1324
1324
  return;
1325
- let A = 0;
1325
+ let S = 0;
1326
1326
  for (const E of f.Real)
1327
- A += E.amount;
1328
- n(4, f.Total[0].amount = A, f);
1327
+ S += E.amount;
1328
+ t(4, f.Total[0].amount = S, f);
1329
1329
  }
1330
- }, ke = (u) => {
1331
- const A = we(u.data);
1332
- if (!A) {
1330
+ }, Oe = (u) => {
1331
+ const S = be(u.data);
1332
+ if (!S) {
1333
1333
  ce();
1334
1334
  return;
1335
1335
  }
1336
- if (A.type !== "BALANCE_UPDATE_V2")
1336
+ if (S.type !== "BALANCE_UPDATE_V2")
1337
1337
  return;
1338
- const E = A.body.balanceChange;
1339
- for (const [t, r] of Object.entries(E))
1340
- if (_ === "totalRealAmount" && t === "Real" && !oe && n(4, f.Total[0].amount = te(f.Total[0].amount, ve, r), f), !!f[t])
1341
- for (const c of f[t]) {
1342
- if (!oe) {
1343
- c.amount = t === "Real" ? te(c.amount, ve, r) : r.afterAmount;
1338
+ const E = S.body.balanceChange;
1339
+ for (const [n, r] of Object.entries(E))
1340
+ if (A === "totalRealAmount" && n === "Real" && !L && t(4, f.Total[0].amount = ne(f.Total[0].amount, oe, r), f), !!f[n])
1341
+ for (const c of f[n]) {
1342
+ if (!L) {
1343
+ c.amount = n === "Real" ? ne(c.amount, oe, r) : r.afterAmount;
1344
1344
  continue;
1345
1345
  }
1346
- r.productType === c.productType && (c.amount = t === "Real" ? te(c.amount, ve[c.productType], r) : r.afterAmount);
1346
+ r.productType === c.productType && (c.amount = n === "Real" ? ne(c.amount, oe[c.productType], r) : r.afterAmount);
1347
1347
  }
1348
1348
  Te();
1349
- }, Oe = () => {
1350
- n(2, L = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1349
+ }, ke = () => {
1350
+ t(2, G = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1351
1351
  }, Ue = () => {
1352
- ee.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ee}. Using default value ('${ee[0]}').`), n(8, _ = ee[0]));
1352
+ te.includes(A) || (console.error(`Unsupported value ('${A}') for totalcalculationmode parameter. Only the following values are supported ${te}. Using default value ('${te[0]}').`), t(8, A = te[0]));
1353
1353
  }, Pe = () => {
1354
- switch (Nt(d), Ue(), b) {
1354
+ switch (Nt(d), Ue(), B) {
1355
1355
  case "gmcore":
1356
1356
  Ae();
1357
1357
  break;
@@ -1359,39 +1359,39 @@ function qt(o, e, n) {
1359
1359
  le();
1360
1360
  break;
1361
1361
  default:
1362
- throw Error(`Invalid apiversion attribute: ${b}`);
1362
+ throw Error(`Invalid apiversion attribute: ${B}`);
1363
1363
  }
1364
- }, Ne = (u) => u.data && u.data.type === "LogoutSuccessfull" && G.close();
1364
+ }, Ne = (u) => u.data && u.data.type === "LogoutSuccessfull" && ee.close();
1365
1365
  Rt(() => (window.addEventListener("message", Ne, !1), () => {
1366
- window.removeEventListener("message", Ne), G && G.close();
1366
+ window.removeEventListener("message", Ne), ee && ee.close();
1367
1367
  }));
1368
- const Ee = () => n(2, L = !0), xe = () => n(2, L = !1), be = () => Oe(), J = () => n(2, L = !1);
1368
+ const Ee = () => t(2, G = !0), xe = () => t(2, G = !1), we = () => ke(), J = () => t(2, G = !1);
1369
1369
  function Ge(u) {
1370
1370
  Et[u ? "unshift" : "push"](() => {
1371
- C = u, n(0, C);
1371
+ b = u, t(0, b);
1372
1372
  });
1373
1373
  }
1374
1374
  return o.$$set = (u) => {
1375
- "userid" in u && n(9, s = u.userid), "session" in u && n(10, l = u.session), "endpoint" in u && n(11, g = u.endpoint), "lang" in u && n(12, d = u.lang), "clientstyling" in u && n(13, m = u.clientstyling), "clientstylingurl" in u && n(14, y = u.clientstylingurl), "translationurl" in u && n(15, D = u.translationurl), "customlocaleidentifier" in u && n(16, k = u.customlocaleidentifier), "gmversion" in u && n(17, b = u.gmversion), "displaybalanceoption" in u && n(18, B = u.displaybalanceoption), "totalcalculationmode" in u && n(8, _ = u.totalcalculationmode), "currencyseparator" in u && n(19, P = u.currencyseparator), "currencydecimal" in u && n(20, F = u.currencydecimal), "currencyprecision" in u && n(21, H = u.currencyprecision), "mbsource" in u && n(22, $ = u.mbsource);
1375
+ "userid" in u && t(9, s = u.userid), "session" in u && t(10, l = u.session), "endpoint" in u && t(11, g = u.endpoint), "lang" in u && t(12, d = u.lang), "clientstyling" in u && t(13, m = u.clientstyling), "clientstylingurl" in u && t(14, y = u.clientstylingurl), "translationurl" in u && t(15, D = u.translationurl), "customlocaleidentifier" in u && t(16, O = u.customlocaleidentifier), "gmversion" in u && t(17, B = u.gmversion), "displaybalanceoption" in u && t(18, C = u.displaybalanceoption), "totalcalculationmode" in u && t(8, A = u.totalcalculationmode), "currencyseparator" in u && t(19, P = u.currencyseparator), "currencydecimal" in u && t(20, F = u.currencydecimal), "currencyprecision" in u && t(21, H = u.currencyprecision), "mbsource" in u && t(22, $ = u.mbsource);
1376
1376
  }, o.$$.update = () => {
1377
1377
  o.$$.dirty[0] & /*lang*/
1378
1378
  4096 && d && Ce(), o.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1379
- 400896 && g && s && l && d && b && B && Pe(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1380
- 134656 && g && s && l && b && ce(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1381
- 8193 && m && C && Lt(C, m), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1382
- 16385 && y && C && Mt(C, y), o.$$.dirty[0] & /*customStylingContainer, mbsource*/
1383
- 4194305 && C && Ft(C, `${$}.Style`), o.$$.dirty[0] & /*translationurl*/
1379
+ 400896 && g && s && l && d && B && C && Pe(), o.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1380
+ 134656 && g && s && l && B && ce(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1381
+ 8193 && m && b && Lt(b, m), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1382
+ 16385 && y && b && Mt(b, y), o.$$.dirty[0] & /*customStylingContainer, mbsource*/
1383
+ 4194305 && b && Ft(b, `${$}.Style`), o.$$.dirty[0] & /*translationurl*/
1384
1384
  32768 && D && Me();
1385
1385
  }, [
1386
- C,
1386
+ b,
1387
1387
  T,
1388
- L,
1389
- ne,
1388
+ G,
1389
+ ve,
1390
1390
  f,
1391
1391
  i,
1392
1392
  Fe,
1393
- Oe,
1394
- _,
1393
+ ke,
1394
+ A,
1395
1395
  s,
1396
1396
  l,
1397
1397
  g,
@@ -1399,16 +1399,16 @@ function qt(o, e, n) {
1399
1399
  m,
1400
1400
  y,
1401
1401
  D,
1402
- k,
1403
- b,
1402
+ O,
1404
1403
  B,
1404
+ C,
1405
1405
  P,
1406
1406
  F,
1407
1407
  H,
1408
1408
  $,
1409
1409
  Ee,
1410
1410
  xe,
1411
- be,
1411
+ we,
1412
1412
  J,
1413
1413
  Ge
1414
1414
  ];
@@ -1533,7 +1533,7 @@ class Wt extends Ct {
1533
1533
  this.$$set({ mbsource: e }), W();
1534
1534
  }
1535
1535
  }
1536
- kt(Wt, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {}, mbsource: {} }, [], [], !0);
1536
+ Ot(Wt, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {}, mbsource: {} }, [], [], !0);
1537
1537
  export {
1538
1538
  Wt as default
1539
1539
  };