@everymatrix/casino-header-controller-nd 1.85.0 → 1.85.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 pt = Object.defineProperty, ht = Object.defineProperties;
2
2
  var mt = Object.getOwnPropertyDescriptors;
3
3
  var Ye = Object.getOwnPropertySymbols;
4
4
  var gt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable;
5
- var Xe = Math.pow, Qe = (r, e, t) => e in r ? pt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Je = (r, e) => {
5
+ var Xe = Math.pow, Qe = (i, e, t) => e in i ? pt(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, Je = (i, e) => {
6
6
  for (var t in e || (e = {}))
7
- gt.call(e, t) && Qe(r, t, e[t]);
7
+ gt.call(e, t) && Qe(i, t, e[t]);
8
8
  if (Ye)
9
9
  for (var t of Ye(e))
10
- yt.call(e, t) && Qe(r, t, e[t]);
11
- return r;
12
- }, Ze = (r, e) => ht(r, mt(e));
13
- var $e = (r, e, t) => new Promise((m, d) => {
10
+ yt.call(e, t) && Qe(i, t, e[t]);
11
+ return i;
12
+ }, Ze = (i, e) => ht(i, mt(e));
13
+ var $e = (i, e, t) => new Promise((m, p) => {
14
14
  var l = (b) => {
15
15
  try {
16
16
  h(t.next(b));
17
17
  } catch (w) {
18
- d(w);
18
+ p(w);
19
19
  }
20
20
  }, y = (b) => {
21
21
  try {
22
22
  h(t.throw(b));
23
23
  } catch (w) {
24
- d(w);
24
+ p(w);
25
25
  }
26
26
  }, h = (b) => b.done ? m(b.value) : Promise.resolve(b.value).then(l, y);
27
- h((t = t.apply(r, e)).next());
27
+ h((t = t.apply(i, e)).next());
28
28
  });
29
- import { b as vt, $ as bt, T as wt, S as Bt, i as Tt, s as St, f as G, d as Ct, A as Ke, g as me, m as x, o as ge, p as E, w as H, x as he, y as _t, z as At, F as Lt, q as Oe, H as xt, B as Ae, C as Le, J as et, D as Rt, K as je, L as ut, r as Et, P as Mt, Q as Dt, R as kt, c as Ot, O as Nt } from "./CasinoHamburgerMenuNd-B1IPD-eW.js";
30
- function tt(r, e) {
31
- vt(r, e);
29
+ import { b as vt, $ as bt, T as wt, S as Bt, i as Tt, s as St, f as X, d as Ct, A as Ke, g as ge, m as L, o as ye, p as x, w as z, x as me, y as _t, z as At, F as Lt, q as Ne, H as xt, B as _e, C as Ae, J as et, D as Rt, K as Ie, L as ut, r as Et, P as Mt, Q as Dt, R as kt, c as Ot, O as Nt } from "./CasinoHamburgerMenuNd-B1IPD-eW.js";
30
+ function tt(i, e) {
31
+ vt(i, e);
32
32
  }
33
- function Ft(r) {
34
- bt.set(r);
33
+ function Ft(i) {
34
+ bt.set(i);
35
35
  }
36
36
  const nt = {
37
37
  en: {
@@ -257,9 +257,9 @@ var qe = { exports: {} };
257
257
  * Available under MIT License (MIT)
258
258
  * https://github.com/Yaffle/EventSource/
259
259
  */
260
- (function(r, e) {
260
+ (function(i, e) {
261
261
  (function(t) {
262
- var m = t.setTimeout, d = t.clearTimeout, l = t.XMLHttpRequest, y = t.XDomainRequest, h = t.ActiveXObject, b = t.EventSource, w = t.document, k = t.Promise, V = t.fetch, L = t.Response, S = t.TextDecoder, _ = t.TextEncoder, te = t.AbortController;
262
+ var m = t.setTimeout, p = t.clearTimeout, l = t.XMLHttpRequest, y = t.XDomainRequest, h = t.ActiveXObject, b = t.EventSource, w = t.document, D = t.Promise, V = t.fetch, F = t.Response, S = t.TextDecoder, T = t.TextEncoder, I = t.AbortController;
263
263
  if (typeof window != "undefined" && typeof w != "undefined" && !("readyState" in w) && w.body == null && (w.readyState = "loading", window.addEventListener("load", function(n) {
264
264
  w.readyState = "complete";
265
265
  }, !1)), l == null && h != null && (l = function() {
@@ -270,16 +270,16 @@ var qe = { exports: {} };
270
270
  return s.prototype = n, new s();
271
271
  }), Date.now || (Date.now = function() {
272
272
  return (/* @__PURE__ */ new Date()).getTime();
273
- }), te == null) {
274
- var ye = V;
273
+ }), I == null) {
274
+ var ve = V;
275
275
  V = function(n, s) {
276
- var p = s.signal;
277
- return ye(n, { headers: s.headers, credentials: s.credentials, cache: s.cache }).then(function(i) {
278
- var B = i.body.getReader();
279
- return p._reader = B, p._aborted && p._reader.cancel(), {
280
- status: i.status,
281
- statusText: i.statusText,
282
- headers: i.headers,
276
+ var f = s.signal;
277
+ return ve(n, { headers: s.headers, credentials: s.credentials, cache: s.cache }).then(function(r) {
278
+ var B = r.body.getReader();
279
+ return f._reader = B, f._aborted && f._reader.cancel(), {
280
+ status: r.status,
281
+ statusText: r.statusText,
282
+ headers: r.headers,
283
283
  body: {
284
284
  getReader: function() {
285
285
  return B;
@@ -287,7 +287,7 @@ var qe = { exports: {} };
287
287
  }
288
288
  };
289
289
  });
290
- }, te = function() {
290
+ }, I = function() {
291
291
  this.signal = {
292
292
  _reader: null,
293
293
  _aborted: !1
@@ -296,119 +296,119 @@ var qe = { exports: {} };
296
296
  };
297
297
  };
298
298
  }
299
- function de() {
299
+ function ce() {
300
300
  this.bitsNeeded = 0, this.codePoint = 0;
301
301
  }
302
- de.prototype.decode = function(n) {
303
- function s(M, a, o) {
302
+ ce.prototype.decode = function(n) {
303
+ function s(E, a, o) {
304
304
  if (o === 1)
305
- return M >= 128 >> a && M << a <= 2047;
305
+ return E >= 128 >> a && E << a <= 2047;
306
306
  if (o === 2)
307
- return M >= 2048 >> a && M << a <= 55295 || M >= 57344 >> a && M << a <= 65535;
307
+ return E >= 2048 >> a && E << a <= 55295 || E >= 57344 >> a && E << a <= 65535;
308
308
  if (o === 3)
309
- return M >= 65536 >> a && M << a <= 1114111;
309
+ return E >= 65536 >> a && E << a <= 1114111;
310
310
  throw new Error();
311
311
  }
312
- function p(M, a) {
313
- if (M === 6 * 1)
312
+ function f(E, a) {
313
+ if (E === 6 * 1)
314
314
  return a >> 6 > 15 ? 3 : a > 31 ? 2 : 1;
315
- if (M === 6 * 2)
315
+ if (E === 6 * 2)
316
316
  return a > 15 ? 3 : 2;
317
- if (M === 6 * 3)
317
+ if (E === 6 * 3)
318
318
  return 3;
319
319
  throw new Error();
320
320
  }
321
- for (var i = 65533, B = "", g = this.bitsNeeded, T = this.codePoint, N = 0; N < n.length; N += 1) {
322
- var A = n[N];
323
- g !== 0 && (A < 128 || A > 191 || !s(T << 6 | A & 63, g - 6, p(g, T))) && (g = 0, T = i, B += String.fromCharCode(T)), g === 0 ? (A >= 0 && A <= 127 ? (g = 0, T = A) : A >= 192 && A <= 223 ? (g = 6 * 1, T = A & 31) : A >= 224 && A <= 239 ? (g = 6 * 2, T = A & 15) : A >= 240 && A <= 247 ? (g = 6 * 3, T = A & 7) : (g = 0, T = i), g !== 0 && !s(T, g, p(g, T)) && (g = 0, T = i)) : (g -= 6, T = T << 6 | A & 63), g === 0 && (T <= 65535 ? B += String.fromCharCode(T) : (B += String.fromCharCode(55296 + (T - 65535 - 1 >> 10)), B += String.fromCharCode(56320 + (T - 65535 - 1 & 1023))));
321
+ for (var r = 65533, B = "", g = this.bitsNeeded, C = this.codePoint, O = 0; O < n.length; O += 1) {
322
+ var A = n[O];
323
+ g !== 0 && (A < 128 || A > 191 || !s(C << 6 | A & 63, g - 6, f(g, C))) && (g = 0, C = r, B += String.fromCharCode(C)), g === 0 ? (A >= 0 && A <= 127 ? (g = 0, C = A) : A >= 192 && A <= 223 ? (g = 6 * 1, C = A & 31) : A >= 224 && A <= 239 ? (g = 6 * 2, C = A & 15) : A >= 240 && A <= 247 ? (g = 6 * 3, C = A & 7) : (g = 0, C = r), g !== 0 && !s(C, g, f(g, C)) && (g = 0, C = r)) : (g -= 6, C = C << 6 | A & 63), g === 0 && (C <= 65535 ? B += String.fromCharCode(C) : (B += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), B += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
324
324
  }
325
- return this.bitsNeeded = g, this.codePoint = T, B;
325
+ return this.bitsNeeded = g, this.codePoint = C, B;
326
326
  };
327
- var Te = function() {
327
+ var Ce = function() {
328
328
  try {
329
- return new S().decode(new _().encode("test"), { stream: !0 }) === "test";
329
+ return new S().decode(new T().encode("test"), { stream: !0 }) === "test";
330
330
  } catch (n) {
331
331
  console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + n);
332
332
  }
333
333
  return !1;
334
334
  };
335
- (S == null || _ == null || !Te()) && (S = de);
336
- var U = function() {
335
+ (S == null || T == null || !Ce()) && (S = ce);
336
+ var P = function() {
337
337
  };
338
- function X(n) {
339
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = U, this.onload = U, this.onerror = U, this.onreadystatechange = U, this._contentType = "", this._xhr = n, this._sendTimeout = 0, this._abort = U;
338
+ function K(n) {
339
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = P, this.onload = P, this.onerror = P, this.onreadystatechange = P, this._contentType = "", this._xhr = n, this._sendTimeout = 0, this._abort = P;
340
340
  }
341
- X.prototype.open = function(n, s) {
341
+ K.prototype.open = function(n, s) {
342
342
  this._abort(!0);
343
- var p = this, i = this._xhr, B = 1, g = 0;
343
+ var f = this, r = this._xhr, B = 1, g = 0;
344
344
  this._abort = function(o) {
345
- p._sendTimeout !== 0 && (d(p._sendTimeout), p._sendTimeout = 0), (B === 1 || B === 2 || B === 3) && (B = 4, i.onload = U, i.onerror = U, i.onabort = U, i.onprogress = U, i.onreadystatechange = U, i.abort(), g !== 0 && (d(g), g = 0), o || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), B = 0;
345
+ f._sendTimeout !== 0 && (p(f._sendTimeout), f._sendTimeout = 0), (B === 1 || B === 2 || B === 3) && (B = 4, r.onload = P, r.onerror = P, r.onabort = P, r.onprogress = P, r.onreadystatechange = P, r.abort(), g !== 0 && (p(g), g = 0), o || (f.readyState = 4, f.onabort(null), f.onreadystatechange())), B = 0;
346
346
  };
347
- var T = function() {
347
+ var C = function() {
348
348
  if (B === 1) {
349
349
  var o = 0, c = "", v = void 0;
350
- if ("contentType" in i)
351
- o = 200, c = "OK", v = i.contentType;
350
+ if ("contentType" in r)
351
+ o = 200, c = "OK", v = r.contentType;
352
352
  else
353
353
  try {
354
- o = i.status, c = i.statusText, v = i.getResponseHeader("Content-Type");
355
- } catch (D) {
354
+ o = r.status, c = r.statusText, v = r.getResponseHeader("Content-Type");
355
+ } catch (M) {
356
356
  o = 0, c = "", v = void 0;
357
357
  }
358
- o !== 0 && (B = 2, p.readyState = 2, p.status = o, p.statusText = c, p._contentType = v, p.onreadystatechange());
358
+ o !== 0 && (B = 2, f.readyState = 2, f.status = o, f.statusText = c, f._contentType = v, f.onreadystatechange());
359
359
  }
360
- }, N = function() {
361
- if (T(), B === 2 || B === 3) {
360
+ }, O = function() {
361
+ if (C(), B === 2 || B === 3) {
362
362
  B = 3;
363
363
  var o = "";
364
364
  try {
365
- o = i.responseText;
365
+ o = r.responseText;
366
366
  } catch (c) {
367
367
  }
368
- p.readyState = 3, p.responseText = o, p.onprogress();
368
+ f.readyState = 3, f.responseText = o, f.onprogress();
369
369
  }
370
370
  }, A = function(o, c) {
371
371
  if ((c == null || c.preventDefault == null) && (c = {
372
- preventDefault: U
373
- }), N(), B === 1 || B === 2 || B === 3) {
374
- if (B = 4, g !== 0 && (d(g), g = 0), p.readyState = 4, o === "load")
375
- p.onload(c);
372
+ preventDefault: P
373
+ }), O(), B === 1 || B === 2 || B === 3) {
374
+ if (B = 4, g !== 0 && (p(g), g = 0), f.readyState = 4, o === "load")
375
+ f.onload(c);
376
376
  else if (o === "error")
377
- p.onerror(c);
377
+ f.onerror(c);
378
378
  else if (o === "abort")
379
- p.onabort(c);
379
+ f.onabort(c);
380
380
  else
381
381
  throw new TypeError();
382
- p.onreadystatechange();
382
+ f.onreadystatechange();
383
383
  }
384
- }, M = function(o) {
385
- i != null && (i.readyState === 4 ? (!("onload" in i) || !("onerror" in i) || !("onabort" in i)) && A(i.responseText === "" ? "error" : "load", o) : i.readyState === 3 ? "onprogress" in i || N() : i.readyState === 2 && T());
384
+ }, E = function(o) {
385
+ r != null && (r.readyState === 4 ? (!("onload" in r) || !("onerror" in r) || !("onabort" in r)) && A(r.responseText === "" ? "error" : "load", o) : r.readyState === 3 ? "onprogress" in r || O() : r.readyState === 2 && C());
386
386
  }, a = function() {
387
387
  g = m(function() {
388
388
  a();
389
- }, 500), i.readyState === 3 && N();
389
+ }, 500), r.readyState === 3 && O();
390
390
  };
391
- "onload" in i && (i.onload = function(o) {
391
+ "onload" in r && (r.onload = function(o) {
392
392
  A("load", o);
393
- }), "onerror" in i && (i.onerror = function(o) {
393
+ }), "onerror" in r && (r.onerror = function(o) {
394
394
  A("error", o);
395
- }), "onabort" in i && (i.onabort = function(o) {
395
+ }), "onabort" in r && (r.onabort = function(o) {
396
396
  A("abort", o);
397
- }), "onprogress" in i && (i.onprogress = N), "onreadystatechange" in i && (i.onreadystatechange = function(o) {
398
- M(o);
399
- }), ("contentType" in i || !("ontimeout" in l.prototype)) && (s += (s.indexOf("?") === -1 ? "?" : "&") + "padding=true"), i.open(n, s, !0), "readyState" in i && (g = m(function() {
397
+ }), "onprogress" in r && (r.onprogress = O), "onreadystatechange" in r && (r.onreadystatechange = function(o) {
398
+ E(o);
399
+ }), ("contentType" in r || !("ontimeout" in l.prototype)) && (s += (s.indexOf("?") === -1 ? "?" : "&") + "padding=true"), r.open(n, s, !0), "readyState" in r && (g = m(function() {
400
400
  a();
401
401
  }, 0));
402
- }, X.prototype.abort = function() {
402
+ }, K.prototype.abort = function() {
403
403
  this._abort(!1);
404
- }, X.prototype.getResponseHeader = function(n) {
404
+ }, K.prototype.getResponseHeader = function(n) {
405
405
  return this._contentType;
406
- }, X.prototype.setRequestHeader = function(n, s) {
407
- var p = this._xhr;
408
- "setRequestHeader" in p && p.setRequestHeader(n, s);
409
- }, X.prototype.getAllResponseHeaders = function() {
406
+ }, K.prototype.setRequestHeader = function(n, s) {
407
+ var f = this._xhr;
408
+ "setRequestHeader" in f && f.setRequestHeader(n, s);
409
+ }, K.prototype.getAllResponseHeaders = function() {
410
410
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
411
- }, X.prototype.send = function() {
411
+ }, K.prototype.send = function() {
412
412
  if ((!("ontimeout" in l.prototype) || !("sendAsBinary" in l.prototype) && !("mozAnon" in l.prototype)) && w != null && w.readyState != null && w.readyState !== "complete") {
413
413
  var n = this;
414
414
  n._sendTimeout = m(function() {
@@ -420,8 +420,8 @@ var qe = { exports: {} };
420
420
  "withCredentials" in s && (s.withCredentials = this.withCredentials);
421
421
  try {
422
422
  s.send(void 0);
423
- } catch (p) {
424
- throw p;
423
+ } catch (f) {
424
+ throw f;
425
425
  }
426
426
  };
427
427
  function ne(n) {
@@ -429,84 +429,84 @@ var qe = { exports: {} };
429
429
  return String.fromCharCode(s.charCodeAt(0) + 32);
430
430
  });
431
431
  }
432
- function ce(n) {
433
- for (var s = /* @__PURE__ */ Object.create(null), p = n.split(`\r
434
- `), i = 0; i < p.length; i += 1) {
435
- var B = p[i], g = B.split(": "), T = g.shift(), N = g.join(": ");
436
- s[ne(T)] = N;
432
+ function le(n) {
433
+ for (var s = /* @__PURE__ */ Object.create(null), f = n.split(`\r
434
+ `), r = 0; r < f.length; r += 1) {
435
+ var B = f[r], g = B.split(": "), C = g.shift(), O = g.join(": ");
436
+ s[ne(C)] = O;
437
437
  }
438
438
  this._map = s;
439
439
  }
440
- ce.prototype.get = function(n) {
440
+ le.prototype.get = function(n) {
441
441
  return this._map[ne(n)];
442
442
  }, l != null && l.HEADERS_RECEIVED == null && (l.HEADERS_RECEIVED = 2);
443
- function Y() {
443
+ function Q() {
444
444
  }
445
- Y.prototype.open = function(n, s, p, i, B, g, T) {
445
+ Q.prototype.open = function(n, s, f, r, B, g, C) {
446
446
  n.open("GET", B);
447
- var N = 0;
447
+ var O = 0;
448
448
  n.onprogress = function() {
449
- var M = n.responseText, a = M.slice(N);
450
- N += a.length, p(a);
451
- }, n.onerror = function(M) {
452
- M.preventDefault(), i(new Error("NetworkError"));
449
+ var E = n.responseText, a = E.slice(O);
450
+ O += a.length, f(a);
451
+ }, n.onerror = function(E) {
452
+ E.preventDefault(), r(new Error("NetworkError"));
453
453
  }, n.onload = function() {
454
- i(null);
454
+ r(null);
455
455
  }, n.onabort = function() {
456
- i(null);
456
+ r(null);
457
457
  }, n.onreadystatechange = function() {
458
458
  if (n.readyState === l.HEADERS_RECEIVED) {
459
- var M = n.status, a = n.statusText, o = n.getResponseHeader("Content-Type"), c = n.getAllResponseHeaders();
460
- s(M, a, o, new ce(c));
459
+ var E = n.status, a = n.statusText, o = n.getResponseHeader("Content-Type"), c = n.getAllResponseHeaders();
460
+ s(E, a, o, new le(c));
461
461
  }
462
462
  }, n.withCredentials = g;
463
- for (var A in T)
464
- Object.prototype.hasOwnProperty.call(T, A) && n.setRequestHeader(A, T[A]);
463
+ for (var A in C)
464
+ Object.prototype.hasOwnProperty.call(C, A) && n.setRequestHeader(A, C[A]);
465
465
  return n.send(), n;
466
466
  };
467
- function q(n) {
467
+ function W(n) {
468
468
  this._headers = n;
469
469
  }
470
- q.prototype.get = function(n) {
470
+ W.prototype.get = function(n) {
471
471
  return this._headers.get(n);
472
472
  };
473
- function I() {
473
+ function j() {
474
474
  }
475
- I.prototype.open = function(n, s, p, i, B, g, T) {
476
- var N = null, A = new te(), M = A.signal, a = new S();
475
+ j.prototype.open = function(n, s, f, r, B, g, C) {
476
+ var O = null, A = new I(), E = A.signal, a = new S();
477
477
  return V(B, {
478
- headers: T,
478
+ headers: C,
479
479
  credentials: g ? "include" : "same-origin",
480
- signal: M,
480
+ signal: E,
481
481
  cache: "no-store"
482
482
  }).then(function(o) {
483
- return N = o.body.getReader(), s(o.status, o.statusText, o.headers.get("Content-Type"), new q(o.headers)), new k(function(c, v) {
484
- var D = function() {
485
- N.read().then(function(C) {
486
- if (C.done)
483
+ return O = o.body.getReader(), s(o.status, o.statusText, o.headers.get("Content-Type"), new W(o.headers)), new D(function(c, v) {
484
+ var M = function() {
485
+ O.read().then(function(_) {
486
+ if (_.done)
487
487
  c(void 0);
488
488
  else {
489
- var f = a.decode(C.value, { stream: !0 });
490
- p(f), D();
489
+ var d = a.decode(_.value, { stream: !0 });
490
+ f(d), M();
491
491
  }
492
- }).catch(function(C) {
493
- v(C);
492
+ }).catch(function(_) {
493
+ v(_);
494
494
  });
495
495
  };
496
- D();
496
+ M();
497
497
  });
498
498
  }).catch(function(o) {
499
499
  if (o.name !== "AbortError")
500
500
  return o;
501
501
  }).then(function(o) {
502
- i(o);
502
+ r(o);
503
503
  }), {
504
504
  abort: function() {
505
- N != null && N.cancel(), A.abort();
505
+ O != null && O.cancel(), A.abort();
506
506
  }
507
507
  };
508
508
  };
509
- function O() {
509
+ function k() {
510
510
  this._listeners = /* @__PURE__ */ Object.create(null);
511
511
  }
512
512
  function R(n) {
@@ -514,412 +514,419 @@ var qe = { exports: {} };
514
514
  throw n;
515
515
  }, 0);
516
516
  }
517
- O.prototype.dispatchEvent = function(n) {
517
+ k.prototype.dispatchEvent = function(n) {
518
518
  n.target = this;
519
519
  var s = this._listeners[n.type];
520
520
  if (s != null)
521
- for (var p = s.length, i = 0; i < p; i += 1) {
522
- var B = s[i];
521
+ for (var f = s.length, r = 0; r < f; r += 1) {
522
+ var B = s[r];
523
523
  try {
524
524
  typeof B.handleEvent == "function" ? B.handleEvent(n) : B.call(this, n);
525
525
  } catch (g) {
526
526
  R(g);
527
527
  }
528
528
  }
529
- }, O.prototype.addEventListener = function(n, s) {
529
+ }, k.prototype.addEventListener = function(n, s) {
530
530
  n = String(n);
531
- var p = this._listeners, i = p[n];
532
- i == null && (i = [], p[n] = i);
533
- for (var B = !1, g = 0; g < i.length; g += 1)
534
- i[g] === s && (B = !0);
535
- B || i.push(s);
536
- }, O.prototype.removeEventListener = function(n, s) {
531
+ var f = this._listeners, r = f[n];
532
+ r == null && (r = [], f[n] = r);
533
+ for (var B = !1, g = 0; g < r.length; g += 1)
534
+ r[g] === s && (B = !0);
535
+ B || r.push(s);
536
+ }, k.prototype.removeEventListener = function(n, s) {
537
537
  n = String(n);
538
- var p = this._listeners, i = p[n];
539
- if (i != null) {
540
- for (var B = [], g = 0; g < i.length; g += 1)
541
- i[g] !== s && B.push(i[g]);
542
- B.length === 0 ? delete p[n] : p[n] = B;
538
+ var f = this._listeners, r = f[n];
539
+ if (r != null) {
540
+ for (var B = [], g = 0; g < r.length; g += 1)
541
+ r[g] !== s && B.push(r[g]);
542
+ B.length === 0 ? delete f[n] : f[n] = B;
543
543
  }
544
544
  };
545
- function z(n) {
545
+ function U(n) {
546
546
  this.type = n, this.target = void 0;
547
547
  }
548
- function j(n, s) {
549
- z.call(this, n), this.data = s.data, this.lastEventId = s.lastEventId;
548
+ function H(n, s) {
549
+ U.call(this, n), this.data = s.data, this.lastEventId = s.lastEventId;
550
550
  }
551
- j.prototype = Object.create(z.prototype);
551
+ H.prototype = Object.create(U.prototype);
552
552
  function ae(n, s) {
553
- z.call(this, n), this.status = s.status, this.statusText = s.statusText, this.headers = s.headers;
553
+ U.call(this, n), this.status = s.status, this.statusText = s.statusText, this.headers = s.headers;
554
554
  }
555
- ae.prototype = Object.create(z.prototype);
556
- function ve(n, s) {
557
- z.call(this, n), this.error = s.error;
555
+ ae.prototype = Object.create(U.prototype);
556
+ function be(n, s) {
557
+ U.call(this, n), this.error = s.error;
558
558
  }
559
- ve.prototype = Object.create(z.prototype);
560
- var se = -1, $ = 0, u = 1, ue = 2, Re = -1, Q = 0, Se = 1, Ne = 2, He = 3, ze = /^text\/event\-stream(;.*)?$/i, Ee = 1e3, Fe = 18e6, Me = function(n, s) {
561
- var p = n == null ? s : parseInt(n, 10);
562
- return p !== p && (p = s), Ce(p);
563
- }, Ce = function(n) {
564
- return Math.min(Math.max(n, Ee), Fe);
565
- }, be = function(n, s, p) {
559
+ be.prototype = Object.create(U.prototype);
560
+ var re = -1, $ = 0, we = 1, u = 2, Be = -1, ue = 0, de = 1, xe = 2, je = 3, He = /^text\/event\-stream(;.*)?$/i, ze = 1e3, Me = 18e6, Re = function(n, s) {
561
+ var f = n == null ? s : parseInt(n, 10);
562
+ return f !== f && (f = s), De(f);
563
+ }, De = function(n) {
564
+ return Math.min(Math.max(n, ze), Me);
565
+ }, fe = function(n, s, f) {
566
566
  try {
567
- typeof s == "function" && s.call(n, p);
568
- } catch (i) {
569
- R(i);
567
+ typeof s == "function" && s.call(n, f);
568
+ } catch (r) {
569
+ R(r);
570
570
  }
571
571
  };
572
- function oe(n, s) {
573
- O.call(this), s = s || {}, 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, Ue(this, n, s);
572
+ function ee(n, s) {
573
+ k.call(this), s = s || {}, 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, Ue(this, n, s);
574
574
  }
575
- function De() {
575
+ function Ve() {
576
576
  return l != null && "withCredentials" in l.prototype || y == null ? new l() : new y();
577
577
  }
578
- var Ve = V != null && L != null && "body" in L.prototype;
579
- function Ue(n, s, p) {
578
+ var ke = V != null && F != null && "body" in F.prototype;
579
+ function Ue(n, s, f) {
580
580
  s = String(s);
581
- var i = !!p.withCredentials, B = p.lastEventIdQueryParameterName || "lastEventId", g = Ce(1e3), T = Me(p.heartbeatTimeout, 45e3), N = "", A = g, M = !1, a = 0, o = p.headers || {}, c = p.Transport, v = Ve && c == null ? void 0 : new X(c != null ? new c() : De()), D = c != null && typeof c != "string" ? new c() : v == null ? new I() : new Y(), C = void 0, f = 0, F = se, ee = "", fe = "", le = "", pe = "", J = Q, Pe = 0, _e = 0, dt = function(K, P, re, ie) {
582
- if (F === $)
583
- if (K === 200 && re != null && ze.test(re)) {
584
- F = u, M = Date.now(), A = g, n.readyState = u;
581
+ var r = !!f.withCredentials, B = f.lastEventIdQueryParameterName || "lastEventId", g = De(1e3), C = Re(f.heartbeatTimeout, 45e3), O = "", A = g, E = !1, a = 0, o = f.headers || {}, c = f.Transport, v = ke && c == null ? void 0 : new K(c != null ? new c() : Ve()), M = c != null && typeof c != "string" ? new c() : v == null ? new j() : new Q(), _ = void 0, d = 0, N = re, te = "", pe = "", se = "", he = "", J = ue, Pe = 0, Le = 0, dt = function(q, G, oe, ie) {
582
+ if (N === $)
583
+ if (q === 200 && oe != null && He.test(oe)) {
584
+ N = we, E = Date.now(), A = g, n.readyState = we;
585
585
  var Z = new ae("open", {
586
- status: K,
587
- statusText: P,
586
+ status: q,
587
+ statusText: G,
588
588
  headers: ie
589
589
  });
590
- n.dispatchEvent(Z), be(n, n.onopen, Z);
590
+ n.dispatchEvent(Z), fe(n, n.onopen, Z);
591
591
  } else {
592
- var W = "";
593
- K !== 200 ? (P && (P = P.replace(/\s+/g, " ")), W = "EventSource's response has a status " + K + " " + P + " that is not 200. Aborting the connection.") : W = "EventSource's response has a Content-Type specifying an unsupported type: " + (re == null ? "-" : re.replace(/\s+/g, " ")) + ". Aborting the connection.", Ge();
592
+ var Y = "";
593
+ q !== 200 ? (G && (G = G.replace(/\s+/g, " ")), Y = "EventSource's response has a status " + q + " " + G + " that is not 200. Aborting the connection.") : Y = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Ge();
594
594
  var Z = new ae("error", {
595
- status: K,
596
- statusText: P,
595
+ status: q,
596
+ statusText: G,
597
597
  headers: ie
598
598
  });
599
- n.dispatchEvent(Z), be(n, n.onerror, Z), console.error(W);
599
+ n.dispatchEvent(Z), fe(n, n.onerror, Z), console.error(Y);
600
600
  }
601
- }, ft = function(K) {
602
- if (F === u) {
603
- for (var P = -1, re = 0; re < K.length; re += 1) {
604
- var ie = K.charCodeAt(re);
605
- (ie === 10 || ie === 13) && (P = re);
601
+ }, ft = function(q) {
602
+ if (N === we) {
603
+ for (var G = -1, oe = 0; oe < q.length; oe += 1) {
604
+ var ie = q.charCodeAt(oe);
605
+ (ie === 10 || ie === 13) && (G = oe);
606
606
  }
607
- var Z = (P !== -1 ? pe : "") + K.slice(0, P + 1);
608
- pe = (P === -1 ? pe : "") + K.slice(P + 1), K !== "" && (M = Date.now(), a += K.length);
609
- for (var W = 0; W < Z.length; W += 1) {
610
- var ie = Z.charCodeAt(W);
611
- if (J === Re && ie === 10)
612
- J = Q;
613
- else if (J === Re && (J = Q), ie === 13 || ie === 10) {
614
- if (J !== Q) {
615
- J === Se && (_e = W + 1);
616
- var we = Z.slice(Pe, _e - 1), Be = Z.slice(_e + (_e < W && Z.charCodeAt(_e) === 32 ? 1 : 0), W);
617
- we === "data" ? (ee += `
618
- `, ee += Be) : we === "id" ? fe = Be : we === "event" ? le = Be : we === "retry" ? (g = Me(Be, g), A = g) : we === "heartbeatTimeout" && (T = Me(Be, T), f !== 0 && (d(f), f = m(function() {
619
- ke();
620
- }, T)));
607
+ var Z = (G !== -1 ? he : "") + q.slice(0, G + 1);
608
+ he = (G === -1 ? he : "") + q.slice(G + 1), q !== "" && (E = Date.now(), a += q.length);
609
+ for (var Y = 0; Y < Z.length; Y += 1) {
610
+ var ie = Z.charCodeAt(Y);
611
+ if (J === Be && ie === 10)
612
+ J = ue;
613
+ else if (J === Be && (J = ue), ie === 13 || ie === 10) {
614
+ if (J !== ue) {
615
+ J === de && (Le = Y + 1);
616
+ var Te = Z.slice(Pe, Le - 1), Se = Z.slice(Le + (Le < Y && Z.charCodeAt(Le) === 32 ? 1 : 0), Y);
617
+ Te === "data" ? (te += `
618
+ `, te += Se) : Te === "id" ? pe = Se : Te === "event" ? se = Se : Te === "retry" ? (g = Re(Se, g), A = g) : Te === "heartbeatTimeout" && (C = Re(Se, C), d !== 0 && (p(d), d = m(function() {
619
+ Oe();
620
+ }, C)));
621
621
  }
622
- if (J === Q) {
623
- if (ee !== "") {
624
- N = fe, le === "" && (le = "message");
625
- var xe = new j(le, {
626
- data: ee.slice(1),
627
- lastEventId: fe
622
+ if (J === ue) {
623
+ if (te !== "") {
624
+ O = pe, se === "" && (se = "message");
625
+ var Ee = new H(se, {
626
+ data: te.slice(1),
627
+ lastEventId: pe
628
628
  });
629
- if (n.dispatchEvent(xe), le === "open" ? be(n, n.onopen, xe) : le === "message" ? be(n, n.onmessage, xe) : le === "error" && be(n, n.onerror, xe), F === ue)
629
+ if (n.dispatchEvent(Ee), se === "open" ? fe(n, n.onopen, Ee) : se === "message" ? fe(n, n.onmessage, Ee) : se === "error" && fe(n, n.onerror, Ee), N === u)
630
630
  return;
631
631
  }
632
- ee = "", le = "";
632
+ te = "", se = "";
633
633
  }
634
- J = ie === 13 ? Re : Q;
634
+ J = ie === 13 ? Be : ue;
635
635
  } else
636
- J === Q && (Pe = W, J = Se), J === Se ? ie === 58 && (_e = W + 1, J = Ne) : J === Ne && (J = He);
636
+ J === ue && (Pe = Y, J = de), J === de ? ie === 58 && (Le = Y + 1, J = xe) : J === xe && (J = je);
637
637
  }
638
638
  }
639
- }, We = function(K) {
640
- if (F === u || F === $) {
641
- F = se, f !== 0 && (d(f), f = 0), f = m(function() {
642
- ke();
643
- }, A), A = Ce(Math.min(g * 16, A * 2)), n.readyState = $;
644
- var P = new ve("error", { error: K });
645
- n.dispatchEvent(P), be(n, n.onerror, P), K != null && console.error(K);
639
+ }, We = function(q) {
640
+ if (N === we || N === $) {
641
+ N = re, d !== 0 && (p(d), d = 0), d = m(function() {
642
+ Oe();
643
+ }, A), A = De(Math.min(g * 16, A * 2)), n.readyState = $;
644
+ var G = new be("error", { error: q });
645
+ n.dispatchEvent(G), fe(n, n.onerror, G), q != null && console.error(q);
646
646
  }
647
647
  }, Ge = function() {
648
- F = ue, C != null && (C.abort(), C = void 0), f !== 0 && (d(f), f = 0), n.readyState = ue;
649
- }, ke = function() {
650
- if (f = 0, F !== se) {
651
- if (!M && C != null)
652
- We(new Error("No activity within " + T + " milliseconds. " + (F === $ ? "No response received." : a + " chars received.") + " Reconnecting.")), C != null && (C.abort(), C = void 0);
648
+ N = u, _ != null && (_.abort(), _ = void 0), d !== 0 && (p(d), d = 0), n.readyState = u;
649
+ }, Oe = function() {
650
+ if (d = 0, N !== re) {
651
+ if (!E && _ != null)
652
+ We(new Error("No activity within " + C + " milliseconds. " + (N === $ ? "No response received." : a + " chars received.") + " Reconnecting.")), _ != null && (_.abort(), _ = void 0);
653
653
  else {
654
- var K = Math.max((M || Date.now()) + T - Date.now(), 1);
655
- M = !1, f = m(function() {
656
- ke();
657
- }, K);
654
+ var q = Math.max((E || Date.now()) + C - Date.now(), 1);
655
+ E = !1, d = m(function() {
656
+ Oe();
657
+ }, q);
658
658
  }
659
659
  return;
660
660
  }
661
- M = !1, a = 0, f = m(function() {
662
- ke();
663
- }, T), F = $, ee = "", le = "", fe = N, pe = "", Pe = 0, _e = 0, J = Q;
664
- var P = s;
665
- if (s.slice(0, 5) !== "data:" && s.slice(0, 5) !== "blob:" && N !== "") {
666
- var re = s.indexOf("?");
667
- P = re === -1 ? s : s.slice(0, re + 1) + s.slice(re + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Be, xe) {
668
- return xe === B ? "" : Be;
669
- }), P += (s.indexOf("?") === -1 ? "?" : "&") + B + "=" + encodeURIComponent(N);
661
+ E = !1, a = 0, d = m(function() {
662
+ Oe();
663
+ }, C), N = $, te = "", se = "", pe = O, he = "", Pe = 0, Le = 0, J = ue;
664
+ var G = s;
665
+ if (s.slice(0, 5) !== "data:" && s.slice(0, 5) !== "blob:" && O !== "") {
666
+ var oe = s.indexOf("?");
667
+ G = oe === -1 ? s : s.slice(0, oe + 1) + s.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Se, Ee) {
668
+ return Ee === B ? "" : Se;
669
+ }), G += (s.indexOf("?") === -1 ? "?" : "&") + B + "=" + encodeURIComponent(O);
670
670
  }
671
671
  var ie = n.withCredentials, Z = {};
672
672
  Z.Accept = "text/event-stream";
673
- var W = n.headers;
674
- if (W != null)
675
- for (var we in W)
676
- Object.prototype.hasOwnProperty.call(W, we) && (Z[we] = W[we]);
673
+ var Y = n.headers;
674
+ if (Y != null)
675
+ for (var Te in Y)
676
+ Object.prototype.hasOwnProperty.call(Y, Te) && (Z[Te] = Y[Te]);
677
677
  try {
678
- C = D.open(v, dt, ft, We, P, ie, Z);
679
- } catch (Be) {
680
- throw Ge(), Be;
678
+ _ = M.open(v, dt, ft, We, G, ie, Z);
679
+ } catch (Se) {
680
+ throw Ge(), Se;
681
681
  }
682
682
  };
683
- n.url = s, n.readyState = $, n.withCredentials = i, n.headers = o, n._close = Ge, ke();
683
+ n.url = s, n.readyState = $, n.withCredentials = r, n.headers = o, n._close = Ge, Oe();
684
684
  }
685
- oe.prototype = Object.create(O.prototype), oe.prototype.CONNECTING = $, oe.prototype.OPEN = u, oe.prototype.CLOSED = ue, oe.prototype.close = function() {
685
+ ee.prototype = Object.create(k.prototype), ee.prototype.CONNECTING = $, ee.prototype.OPEN = we, ee.prototype.CLOSED = u, ee.prototype.close = function() {
686
686
  this._close();
687
- }, oe.CONNECTING = $, oe.OPEN = u, oe.CLOSED = ue, oe.prototype.withCredentials = void 0;
688
- var Ie = b;
689
- l != null && (b == null || !("withCredentials" in b.prototype)) && (Ie = oe), function(n) {
687
+ }, ee.CONNECTING = $, ee.OPEN = we, ee.CLOSED = u, ee.prototype.withCredentials = void 0;
688
+ var Fe = b;
689
+ l != null && (b == null || !("withCredentials" in b.prototype)) && (Fe = ee), function(n) {
690
690
  {
691
691
  var s = n(e);
692
- s !== void 0 && (r.exports = s);
692
+ s !== void 0 && (i.exports = s);
693
693
  }
694
694
  }(function(n) {
695
- n.EventSourcePolyfill = oe, n.NativeEventSource = b, n.EventSource = Ie;
695
+ n.EventSourcePolyfill = ee, n.NativeEventSource = b, n.EventSource = Fe;
696
696
  });
697
697
  })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : wt : globalThis);
698
698
  })(qe, qe.exports);
699
699
  var It = qe.exports;
700
- function jt(r) {
701
- Ct(r, "svelte-15fwckg", '*,*::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;background:transparent;border:none;font:inherit;color:inherit;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, #22B04E));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;background:transparent;border:none;font:inherit;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;gap:5px}.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}');
700
+ function jt(i) {
701
+ Ct(i, "svelte-15fwckg", '*,*::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;background:transparent;border:none;font:inherit;color:inherit;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, #22B04E));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;background:transparent;border:none;font:inherit;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;gap:5px}.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}');
702
702
  }
703
- function at(r, e, t) {
704
- const m = r.slice();
703
+ function at(i, e, t) {
704
+ const m = i.slice();
705
705
  return m[60] = e[t], m;
706
706
  }
707
- function ot(r, e, t) {
708
- const m = r.slice();
707
+ function ot(i, e, t) {
708
+ const m = i.slice();
709
709
  return m[63] = e[t], m;
710
710
  }
711
- function Ht(r) {
712
- let e, t, m, d, l, y, h, b, w, k, V, L = (
711
+ function Ht(i) {
712
+ let e, t, m, p, l, y, h, b, w, D, V, F, S = (
713
713
  /*showBalance*/
714
- r[5] && rt(r)
714
+ i[5] && it(i)
715
715
  );
716
716
  return {
717
717
  c() {
718
- e = H("button"), t = H("p"), t.textContent = `${/*renderPrimaryBalance*/
719
- r[12]()}`, m = he(), d = H("span"), l = et("svg"), y = et("path"), b = he(), L && L.c(), w = Rt(), x(y, "id", "arrow"), x(y, "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"), x(y, "transform", "translate(-274.511 -441.088)"), x(y, "fill", "#d1d1d1"), x(l, "xmlns", "http://www.w3.org/2000/svg"), x(l, "width", "14"), x(l, "height", "6.835"), x(l, "viewBox", "0 0 14 6.835"), x(d, "class", h = /*isModalDisplayed*/
720
- r[4] ? "TriangleActive" : "TriangleInactive"), x(e, "class", "BalanceValue");
718
+ e = z("button"), t = z("p"), m = Ae(
719
+ /*displayBalance*/
720
+ i[7]
721
+ ), p = me(), l = z("span"), y = et("svg"), h = et("path"), w = me(), S && S.c(), D = Rt(), L(h, "id", "arrow"), L(h, "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"), L(h, "transform", "translate(-274.511 -441.088)"), L(h, "fill", "#d1d1d1"), L(y, "xmlns", "http://www.w3.org/2000/svg"), L(y, "width", "14"), L(y, "height", "6.835"), L(y, "viewBox", "0 0 14 6.835"), L(l, "class", b = /*isModalDisplayed*/
722
+ i[4] ? "TriangleActive" : "TriangleInactive"), L(e, "class", "BalanceValue");
721
723
  },
722
- m(S, _) {
723
- ge(S, e, _), E(e, t), E(e, m), E(e, d), E(d, l), E(l, y), ge(S, b, _), L && L.m(S, _), ge(S, w, _), k || (V = Oe(
724
+ m(T, I) {
725
+ ye(T, e, I), x(e, t), x(t, m), x(e, p), x(e, l), x(l, y), x(y, h), ye(T, w, I), S && S.m(T, I), ye(T, D, I), V || (F = Ne(
724
726
  e,
725
727
  "click",
726
728
  /*click_handler*/
727
- r[31]
728
- ), k = !0);
729
+ i[31]
730
+ ), V = !0);
729
731
  },
730
- p(S, _) {
731
- _[0] & /*isModalDisplayed*/
732
- 16 && h !== (h = /*isModalDisplayed*/
733
- S[4] ? "TriangleActive" : "TriangleInactive") && x(d, "class", h), /*showBalance*/
734
- S[5] ? L ? L.p(S, _) : (L = rt(S), L.c(), L.m(w.parentNode, w)) : L && (L.d(1), L = null);
732
+ p(T, I) {
733
+ I[0] & /*displayBalance*/
734
+ 128 && _e(
735
+ m,
736
+ /*displayBalance*/
737
+ T[7]
738
+ ), I[0] & /*isModalDisplayed*/
739
+ 16 && b !== (b = /*isModalDisplayed*/
740
+ T[4] ? "TriangleActive" : "TriangleInactive") && L(l, "class", b), /*showBalance*/
741
+ T[5] ? S ? S.p(T, I) : (S = it(T), S.c(), S.m(D.parentNode, D)) : S && (S.d(1), S = null);
735
742
  },
736
- d(S) {
737
- S && (me(e), me(b), me(w)), L && L.d(S), k = !1, V();
743
+ d(T) {
744
+ T && (ge(e), ge(w), ge(D)), S && S.d(T), V = !1, F();
738
745
  }
739
746
  };
740
747
  }
741
- function zt(r) {
748
+ function zt(i) {
742
749
  let e, t = (
743
750
  /*$_*/
744
- r[7]("Loading") + ""
751
+ i[8]("Loading") + ""
745
752
  ), m;
746
753
  return {
747
754
  c() {
748
- e = H("p"), m = Le(t), x(e, "class", "Loading");
755
+ e = z("p"), m = Ae(t), L(e, "class", "Loading");
749
756
  },
750
- m(d, l) {
751
- ge(d, e, l), E(e, m);
757
+ m(p, l) {
758
+ ye(p, e, l), x(e, m);
752
759
  },
753
- p(d, l) {
760
+ p(p, l) {
754
761
  l[0] & /*$_*/
755
- 128 && t !== (t = /*$_*/
756
- d[7]("Loading") + "") && Ae(m, t);
762
+ 256 && t !== (t = /*$_*/
763
+ p[8]("Loading") + "") && _e(m, t);
757
764
  },
758
- d(d) {
759
- d && me(e);
765
+ d(p) {
766
+ p && ge(e);
760
767
  }
761
768
  };
762
769
  }
763
- function rt(r) {
764
- let e, t, m, d, l, y, h, b, w = (
770
+ function it(i) {
771
+ let e, t, m, p, l, y, h, b, w = (
765
772
  /*$_*/
766
- r[7]("Title") + ""
767
- ), k, V, L, S, _, te, ye = (
773
+ i[8]("Title") + ""
774
+ ), D, V, F, S, T, I, ve = (
768
775
  /*$_*/
769
- r[7]("DepositButton") + ""
770
- ), de, Te, U, X, ne, ce, Y, q = je(Object.keys(
776
+ i[8]("DepositButton") + ""
777
+ ), ce, Ce, P, K, ne, le, Q, W = Ie(Object.keys(
771
778
  /*balances*/
772
- r[2]
773
- )), I = [];
774
- for (let R = 0; R < q.length; R += 1)
775
- I[R] = st(at(r, q, R));
776
- let O = (
779
+ i[2]
780
+ )), j = [];
781
+ for (let R = 0; R < W.length; R += 1)
782
+ j[R] = st(at(i, W, R));
783
+ let k = (
777
784
  /*balancelimitsbutton*/
778
- r[0] === "true" && lt(r)
785
+ i[0] === "true" && lt(i)
779
786
  );
780
787
  return {
781
788
  c() {
782
- e = H("div"), t = H("button"), d = he(), l = H("div"), y = H("div"), h = H("div"), b = H("p"), k = Le(w), V = he(), L = H("div");
783
- for (let R = 0; R < I.length; R += 1)
784
- I[R].c();
785
- S = he(), _ = H("div"), te = H("button"), de = Le(ye), Te = he(), O && O.c(), x(t, "class", m = "BalanceModalClose " + /*isModalDisplayed*/
786
- (r[4] ? "Open" : "")), x(b, "class", "BalanceModalTitle"), x(h, "class", "BalanceModalHeader"), x(L, "class", "BalanceModalBody"), x(te, "class", "BalanceModalAction DepositButton"), x(_, "class", "BalanceModalFooter"), x(y, "class", U = "ModalContent " + /*isModalDisplayed*/
787
- (r[4] ? "Open" : "")), x(l, "class", X = "BalanceModal " + /*isModalDisplayed*/
788
- (r[4] ? "Open" : "")), x(e, "class", ne = "BalanceModalWrapper " + /*isModalDisplayed*/
789
- (r[4] ? "Open" : ""));
789
+ e = z("div"), t = z("button"), p = me(), l = z("div"), y = z("div"), h = z("div"), b = z("p"), D = Ae(w), V = me(), F = z("div");
790
+ for (let R = 0; R < j.length; R += 1)
791
+ j[R].c();
792
+ S = me(), T = z("div"), I = z("button"), ce = Ae(ve), Ce = me(), k && k.c(), L(t, "class", m = "BalanceModalClose " + /*isModalDisplayed*/
793
+ (i[4] ? "Open" : "")), L(b, "class", "BalanceModalTitle"), L(h, "class", "BalanceModalHeader"), L(F, "class", "BalanceModalBody"), L(I, "class", "BalanceModalAction DepositButton"), L(T, "class", "BalanceModalFooter"), L(y, "class", P = "ModalContent " + /*isModalDisplayed*/
794
+ (i[4] ? "Open" : "")), L(l, "class", K = "BalanceModal " + /*isModalDisplayed*/
795
+ (i[4] ? "Open" : "")), L(e, "class", ne = "BalanceModalWrapper " + /*isModalDisplayed*/
796
+ (i[4] ? "Open" : ""));
790
797
  },
791
- m(R, z) {
792
- ge(R, e, z), E(e, t), E(e, d), E(e, l), E(l, y), E(y, h), E(h, b), E(b, k), E(y, V), E(y, L);
793
- for (let j = 0; j < I.length; j += 1)
794
- I[j] && I[j].m(L, null);
795
- E(y, S), E(y, _), E(_, te), E(te, de), E(_, Te), O && O.m(_, null), ce || (Y = [
796
- Oe(
798
+ m(R, U) {
799
+ ye(R, e, U), x(e, t), x(e, p), x(e, l), x(l, y), x(y, h), x(h, b), x(b, D), x(y, V), x(y, F);
800
+ for (let H = 0; H < j.length; H += 1)
801
+ j[H] && j[H].m(F, null);
802
+ x(y, S), x(y, T), x(T, I), x(I, ce), x(T, Ce), k && k.m(T, null), le || (Q = [
803
+ Ne(
797
804
  t,
798
805
  "click",
799
806
  /*click_handler_1*/
800
- r[32]
807
+ i[32]
801
808
  ),
802
- Oe(
803
- te,
809
+ Ne(
810
+ I,
804
811
  "click",
805
812
  /*click_handler_2*/
806
- r[33]
813
+ i[33]
807
814
  )
808
- ], ce = !0);
815
+ ], le = !0);
809
816
  },
810
- p(R, z) {
811
- if (z[0] & /*isModalDisplayed*/
817
+ p(R, U) {
818
+ if (U[0] & /*isModalDisplayed*/
812
819
  16 && m !== (m = "BalanceModalClose " + /*isModalDisplayed*/
813
- (R[4] ? "Open" : "")) && x(t, "class", m), z[0] & /*$_*/
814
- 128 && w !== (w = /*$_*/
815
- R[7]("Title") + "") && Ae(k, w), z[0] & /*balances, formatBalance, getProductType, $_*/
816
- 2692) {
817
- q = je(Object.keys(
820
+ (R[4] ? "Open" : "")) && L(t, "class", m), U[0] & /*$_*/
821
+ 256 && w !== (w = /*$_*/
822
+ R[8]("Title") + "") && _e(D, w), U[0] & /*balances, formatBalance, getProductType, $_*/
823
+ 5380) {
824
+ W = Ie(Object.keys(
818
825
  /*balances*/
819
826
  R[2]
820
827
  ));
821
- let j;
822
- for (j = 0; j < q.length; j += 1) {
823
- const ae = at(R, q, j);
824
- I[j] ? I[j].p(ae, z) : (I[j] = st(ae), I[j].c(), I[j].m(L, null));
828
+ let H;
829
+ for (H = 0; H < W.length; H += 1) {
830
+ const ae = at(R, W, H);
831
+ j[H] ? j[H].p(ae, U) : (j[H] = st(ae), j[H].c(), j[H].m(F, null));
825
832
  }
826
- for (; j < I.length; j += 1)
827
- I[j].d(1);
828
- I.length = q.length;
833
+ for (; H < j.length; H += 1)
834
+ j[H].d(1);
835
+ j.length = W.length;
829
836
  }
830
- z[0] & /*$_*/
831
- 128 && ye !== (ye = /*$_*/
832
- R[7]("DepositButton") + "") && Ae(de, ye), /*balancelimitsbutton*/
833
- R[0] === "true" ? O ? O.p(R, z) : (O = lt(R), O.c(), O.m(_, null)) : O && (O.d(1), O = null), z[0] & /*isModalDisplayed*/
834
- 16 && U !== (U = "ModalContent " + /*isModalDisplayed*/
835
- (R[4] ? "Open" : "")) && x(y, "class", U), z[0] & /*isModalDisplayed*/
836
- 16 && X !== (X = "BalanceModal " + /*isModalDisplayed*/
837
- (R[4] ? "Open" : "")) && x(l, "class", X), z[0] & /*isModalDisplayed*/
837
+ U[0] & /*$_*/
838
+ 256 && ve !== (ve = /*$_*/
839
+ R[8]("DepositButton") + "") && _e(ce, ve), /*balancelimitsbutton*/
840
+ R[0] === "true" ? k ? k.p(R, U) : (k = lt(R), k.c(), k.m(T, null)) : k && (k.d(1), k = null), U[0] & /*isModalDisplayed*/
841
+ 16 && P !== (P = "ModalContent " + /*isModalDisplayed*/
842
+ (R[4] ? "Open" : "")) && L(y, "class", P), U[0] & /*isModalDisplayed*/
843
+ 16 && K !== (K = "BalanceModal " + /*isModalDisplayed*/
844
+ (R[4] ? "Open" : "")) && L(l, "class", K), U[0] & /*isModalDisplayed*/
838
845
  16 && ne !== (ne = "BalanceModalWrapper " + /*isModalDisplayed*/
839
- (R[4] ? "Open" : "")) && x(e, "class", ne);
846
+ (R[4] ? "Open" : "")) && L(e, "class", ne);
840
847
  },
841
848
  d(R) {
842
- R && me(e), ut(I, R), O && O.d(), ce = !1, Et(Y);
849
+ R && ge(e), ut(j, R), k && k.d(), le = !1, Et(Q);
843
850
  }
844
851
  };
845
852
  }
846
- function it(r) {
853
+ function rt(i) {
847
854
  let e, t, m = (
848
855
  /*$_*/
849
- r[7](
856
+ i[8](
850
857
  /*k*/
851
- r[60]
858
+ i[60]
852
859
  ) + ""
853
- ), d, l, y = (
860
+ ), p, l, y = (
854
861
  /*getProductType*/
855
- r[11](
862
+ i[12](
856
863
  /*balance*/
857
- r[63]
864
+ i[63]
858
865
  ) + ""
859
- ), h, b, w, k, V = (
866
+ ), h, b, w, D, V = (
860
867
  /*formatBalance*/
861
- r[9](
868
+ i[10](
862
869
  /*balance*/
863
- r[63].amount
870
+ i[63].amount
864
871
  ) + ""
865
- ), L;
872
+ ), F;
866
873
  return {
867
874
  c() {
868
- e = H("div"), t = H("p"), d = Le(m), l = he(), h = Le(y), b = he(), w = H("p"), k = H("span"), L = Le(V), x(t, "class", "BalanceModalText"), x(k, "class", "BalanceModalAmount"), x(w, "class", "BalanceModalValue"), x(e, "class", "BalanceModalRowLine");
875
+ e = z("div"), t = z("p"), p = Ae(m), l = me(), h = Ae(y), b = me(), w = z("p"), D = z("span"), F = Ae(V), L(t, "class", "BalanceModalText"), L(D, "class", "BalanceModalAmount"), L(w, "class", "BalanceModalValue"), L(e, "class", "BalanceModalRowLine");
869
876
  },
870
- m(S, _) {
871
- ge(S, e, _), E(e, t), E(t, d), E(t, l), E(t, h), E(e, b), E(e, w), E(w, k), E(k, L);
877
+ m(S, T) {
878
+ ye(S, e, T), x(e, t), x(t, p), x(t, l), x(t, h), x(e, b), x(e, w), x(w, D), x(D, F);
872
879
  },
873
- p(S, _) {
874
- _[0] & /*$_, balances*/
875
- 132 && m !== (m = /*$_*/
876
- S[7](
880
+ p(S, T) {
881
+ T[0] & /*$_, balances*/
882
+ 260 && m !== (m = /*$_*/
883
+ S[8](
877
884
  /*k*/
878
885
  S[60]
879
- ) + "") && Ae(d, m), _[0] & /*balances*/
886
+ ) + "") && _e(p, m), T[0] & /*balances*/
880
887
  4 && y !== (y = /*getProductType*/
881
- S[11](
888
+ S[12](
882
889
  /*balance*/
883
890
  S[63]
884
- ) + "") && Ae(h, y), _[0] & /*balances*/
891
+ ) + "") && _e(h, y), T[0] & /*balances*/
885
892
  4 && V !== (V = /*formatBalance*/
886
- S[9](
893
+ S[10](
887
894
  /*balance*/
888
895
  S[63].amount
889
- ) + "") && Ae(L, V);
896
+ ) + "") && _e(F, V);
890
897
  },
891
898
  d(S) {
892
- S && me(e);
899
+ S && ge(e);
893
900
  }
894
901
  };
895
902
  }
896
- function st(r) {
897
- let e, t, m = je(
903
+ function st(i) {
904
+ let e, t, m = Ie(
898
905
  /*balances*/
899
- r[2][
906
+ i[2][
900
907
  /*k*/
901
- r[60]
908
+ i[60]
902
909
  ]
903
- ), d = [];
910
+ ), p = [];
904
911
  for (let l = 0; l < m.length; l += 1)
905
- d[l] = it(ot(r, m, l));
912
+ p[l] = rt(ot(i, m, l));
906
913
  return {
907
914
  c() {
908
- e = H("div");
909
- for (let l = 0; l < d.length; l += 1)
910
- d[l].c();
911
- t = he(), x(e, "class", "BalanceModalRowBoth");
915
+ e = z("div");
916
+ for (let l = 0; l < p.length; l += 1)
917
+ p[l].c();
918
+ t = me(), L(e, "class", "BalanceModalRowBoth");
912
919
  },
913
920
  m(l, y) {
914
- ge(l, e, y);
915
- for (let h = 0; h < d.length; h += 1)
916
- d[h] && d[h].m(e, null);
917
- E(e, t);
921
+ ye(l, e, y);
922
+ for (let h = 0; h < p.length; h += 1)
923
+ p[h] && p[h].m(e, null);
924
+ x(e, t);
918
925
  },
919
926
  p(l, y) {
920
927
  if (y[0] & /*formatBalance, balances, getProductType, $_*/
921
- 2692) {
922
- m = je(
928
+ 5380) {
929
+ m = Ie(
923
930
  /*balances*/
924
931
  l[2][
925
932
  /*k*/
@@ -929,107 +936,107 @@ function st(r) {
929
936
  let h;
930
937
  for (h = 0; h < m.length; h += 1) {
931
938
  const b = ot(l, m, h);
932
- d[h] ? d[h].p(b, y) : (d[h] = it(b), d[h].c(), d[h].m(e, t));
939
+ p[h] ? p[h].p(b, y) : (p[h] = rt(b), p[h].c(), p[h].m(e, t));
933
940
  }
934
- for (; h < d.length; h += 1)
935
- d[h].d(1);
936
- d.length = m.length;
941
+ for (; h < p.length; h += 1)
942
+ p[h].d(1);
943
+ p.length = m.length;
937
944
  }
938
945
  },
939
946
  d(l) {
940
- l && me(e), ut(d, l);
947
+ l && ge(e), ut(p, l);
941
948
  }
942
949
  };
943
950
  }
944
- function lt(r) {
951
+ function lt(i) {
945
952
  let e, t = (
946
953
  /*$_*/
947
- r[7]("LimitsButton") + ""
948
- ), m, d, l;
954
+ i[8]("LimitsButton") + ""
955
+ ), m, p, l;
949
956
  return {
950
957
  c() {
951
- e = H("button"), m = Le(t), x(e, "class", "BalanceModalAction LimitsButton");
958
+ e = z("button"), m = Ae(t), L(e, "class", "BalanceModalAction LimitsButton");
952
959
  },
953
960
  m(y, h) {
954
- ge(y, e, h), E(e, m), d || (l = Oe(
961
+ ye(y, e, h), x(e, m), p || (l = Ne(
955
962
  e,
956
963
  "click",
957
964
  /*click_handler_3*/
958
- r[34]
959
- ), d = !0);
965
+ i[34]
966
+ ), p = !0);
960
967
  },
961
968
  p(y, h) {
962
969
  h[0] & /*$_*/
963
- 128 && t !== (t = /*$_*/
964
- y[7]("LimitsButton") + "") && Ae(m, t);
970
+ 256 && t !== (t = /*$_*/
971
+ y[8]("LimitsButton") + "") && _e(m, t);
965
972
  },
966
973
  d(y) {
967
- y && me(e), d = !1, l();
974
+ y && ge(e), p = !1, l();
968
975
  }
969
976
  };
970
977
  }
971
- function ct(r) {
978
+ function ct(i) {
972
979
  let e, t, m;
973
980
  return {
974
981
  c() {
975
- e = H("button"), x(e, "class", "ShowBalanceModalOverlay");
982
+ e = z("button"), L(e, "class", "ShowBalanceModalOverlay");
976
983
  },
977
- m(d, l) {
978
- ge(d, e, l), t || (m = Oe(
984
+ m(p, l) {
985
+ ye(p, e, l), t || (m = Ne(
979
986
  e,
980
987
  "click",
981
988
  /*click_handler_4*/
982
- r[35]
989
+ i[35]
983
990
  ), t = !0);
984
991
  },
985
992
  p: Ke,
986
- d(d) {
987
- d && me(e), t = !1, m();
993
+ d(p) {
994
+ p && ge(e), t = !1, m();
988
995
  }
989
996
  };
990
997
  }
991
- function Vt(r) {
992
- let e, t, m, d;
993
- function l(w, k) {
998
+ function Vt(i) {
999
+ let e, t, m, p;
1000
+ function l(w, D) {
994
1001
  return (
995
1002
  /*isLoading*/
996
1003
  w[3] ? zt : Ht
997
1004
  );
998
1005
  }
999
- let y = l(r), h = y(r), b = (
1006
+ let y = l(i), h = y(i), b = (
1000
1007
  /*showBalance*/
1001
- r[5] && ct(r)
1008
+ i[5] && ct(i)
1002
1009
  );
1003
1010
  return {
1004
1011
  c() {
1005
- e = H("div"), t = H("div"), h.c(), d = he(), b && b.c(), x(t, "class", m = "ShowBalance " + /*mobileView*/
1006
- (r[6] ? "Mobile" : ""));
1012
+ e = z("div"), t = z("div"), h.c(), p = me(), b && b.c(), L(t, "class", m = "ShowBalance " + /*mobileView*/
1013
+ (i[6] ? "Mobile" : ""));
1007
1014
  },
1008
- m(w, k) {
1009
- ge(w, e, k), E(e, t), h.m(t, null), E(e, d), b && b.m(e, null), r[36](e);
1015
+ m(w, D) {
1016
+ ye(w, e, D), x(e, t), h.m(t, null), x(e, p), b && b.m(e, null), i[36](e);
1010
1017
  },
1011
- p(w, k) {
1012
- y === (y = l(w)) && h ? h.p(w, k) : (h.d(1), h = y(w), h && (h.c(), h.m(t, null))), k[0] & /*mobileView*/
1018
+ p(w, D) {
1019
+ y === (y = l(w)) && h ? h.p(w, D) : (h.d(1), h = y(w), h && (h.c(), h.m(t, null))), D[0] & /*mobileView*/
1013
1020
  64 && m !== (m = "ShowBalance " + /*mobileView*/
1014
- (w[6] ? "Mobile" : "")) && x(t, "class", m), /*showBalance*/
1015
- w[5] ? b ? b.p(w, k) : (b = ct(w), b.c(), b.m(e, null)) : b && (b.d(1), b = null);
1021
+ (w[6] ? "Mobile" : "")) && L(t, "class", m), /*showBalance*/
1022
+ w[5] ? b ? b.p(w, D) : (b = ct(w), b.c(), b.m(e, null)) : b && (b.d(1), b = null);
1016
1023
  },
1017
1024
  i: Ke,
1018
1025
  o: Ke,
1019
1026
  d(w) {
1020
- w && me(e), h.d(), b && b.d(), r[36](null);
1027
+ w && ge(e), h.d(), b && b.d(), i[36](null);
1021
1028
  }
1022
1029
  };
1023
1030
  }
1024
- function Ut(r, e, t) {
1031
+ function Ut(i, e, t) {
1025
1032
  let m;
1026
- _t(r, Nt, (a) => t(7, m = a));
1027
- let { userid: d = "" } = e, { session: l = "" } = e, { endpoint: y = "" } = e, { lang: h = "en" } = e, { mbsource: b = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: k = "" } = e, { translationurl: V = "" } = e, { gmversion: L = "gm16" } = e, { displaybalanceoption: S = "All" } = e, { totalcalculationmode: _ = "totalCashAmount" } = e, { primarybalancemode: te } = e, { balancelimitsbutton: ye = "false" } = e, { hideproducttype: de = "" } = e, { currencylocale: Te = "en" } = e, { currencydisplay: U = "symbol" } = e, { maximumfractiondigits: X = "2" } = e, { minimumfractiondigits: ne = "0" } = e, { customdisplayformat: ce = "" } = e, Y, q = !0, I = !1, O = !1, R = !1, z = !1, j = window.navigator.userAgent, ae, ve = "", se = [], $;
1028
- const u = {}, ue = ["totalCashAmount", "totalRealAmount"], Re = () => {
1033
+ _t(i, Nt, (a) => t(8, m = a));
1034
+ let { userid: p = "" } = e, { session: l = "" } = e, { endpoint: y = "" } = e, { lang: h = "en" } = e, { mbsource: b = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: D = "" } = e, { translationurl: V = "" } = e, { gmversion: F = "gm16" } = e, { displaybalanceoption: S = "All" } = e, { totalcalculationmode: T = "totalCashAmount" } = e, { primarybalancemode: I } = e, { balancelimitsbutton: ve = "false" } = e, { hideproducttype: ce = "" } = e, { currencylocale: Ce = "en" } = e, { currencydisplay: P = "symbol" } = e, { maximumfractiondigits: K = "2" } = e, { minimumfractiondigits: ne = "0" } = e, { customdisplayformat: le = "" } = e, Q, W = !0, j = !1, k = !1, R = !1, U = !1, H = window.navigator.userAgent, ae, be = "", re = [], $, we = "0";
1035
+ const u = {}, Be = ["totalCashAmount", "totalRealAmount"], ue = () => {
1029
1036
  fetch(V).then((a) => a.json()).then((a) => Object.keys(a).forEach((o) => tt(o, a[o]))).catch((a) => console.log(a));
1030
1037
  };
1031
1038
  Object.keys(nt).forEach((a) => tt(a, nt[a]));
1032
- const Q = (a) => {
1039
+ const de = (a) => {
1033
1040
  switch (a) {
1034
1041
  case "balance":
1035
1042
  window.postMessage(
@@ -1038,10 +1045,10 @@ function Ut(r, e, t) {
1038
1045
  status: "open"
1039
1046
  },
1040
1047
  window.location.href
1041
- ), t(5, R = !0), setTimeout(() => t(4, I = !0), 150);
1048
+ ), t(5, R = !0), setTimeout(() => t(4, j = !0), 150);
1042
1049
  break;
1043
1050
  case "closebalance":
1044
- t(4, I = !1), window.postMessage(
1051
+ t(4, j = !1), window.postMessage(
1045
1052
  {
1046
1053
  type: "BalanceModalStatus",
1047
1054
  status: "close"
@@ -1055,22 +1062,22 @@ function Ut(r, e, t) {
1055
1062
  );
1056
1063
  break;
1057
1064
  }
1058
- }, Se = (a) => {
1059
- if (ce)
1060
- return Ne(a);
1061
- const o = Te || h, c = {
1065
+ }, xe = (a) => {
1066
+ if (le)
1067
+ return je(a);
1068
+ const o = Ce || h, c = {
1062
1069
  style: "currency",
1063
- currency: ve,
1070
+ currency: be,
1064
1071
  useGrouping: !0,
1065
- currencyDisplay: U || "code",
1066
- maximumFractionDigits: X === "" || isNaN(Number(X)) ? 2 : Number(X),
1072
+ currencyDisplay: P || "code",
1073
+ maximumFractionDigits: K === "" || isNaN(Number(K)) ? 2 : Number(K),
1067
1074
  minimumFractionDigits: ne === "" || isNaN(Number(ne)) ? 0 : Number(ne)
1068
1075
  };
1069
1076
  return new Intl.NumberFormat(o, c).format(a);
1070
- }, Ne = (a) => {
1077
+ }, je = (a) => {
1071
1078
  const o = [];
1072
1079
  let c = "";
1073
- for (const v of ce)
1080
+ for (const v of le)
1074
1081
  switch (v) {
1075
1082
  default:
1076
1083
  c += v;
@@ -1079,17 +1086,17 @@ function Ut(r, e, t) {
1079
1086
  c && o.push(c), c = "";
1080
1087
  break;
1081
1088
  case "}":
1082
- const [D, C] = c.split("|");
1083
- if (c = "", D.toLowerCase() === "currency")
1084
- c = ve;
1085
- else if (D.toLowerCase() === "amount") {
1086
- let f = ",", F = ".", ee = 2;
1087
- C && (C[0] !== " " && (f = C[0]), C[1] !== " " && (F = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (ee = Number(C[2])));
1088
- let [fe, le] = String(Math.floor(a * Xe(10, ee)) / Xe(10, ee)).split(".");
1089
- c += fe[0];
1090
- for (let pe = 1; pe < fe.length; ++pe)
1091
- (fe.length - pe) % 3 === 0 ? c += f + fe[pe] : c += fe[pe];
1092
- le && (c += F + le);
1089
+ const [M, _] = c.split("|");
1090
+ if (c = "", M.toLowerCase() === "currency")
1091
+ c = be;
1092
+ else if (M.toLowerCase() === "amount") {
1093
+ let d = ",", N = ".", te = 2;
1094
+ _ && (_[0] !== " " && (d = _[0]), _[1] !== " " && (N = _[1]), _[2] !== " " && !isNaN(Number(_[2])) && (te = Number(_[2])));
1095
+ let [pe, se] = String(Math.floor(a * Xe(10, te)) / Xe(10, te)).split(".");
1096
+ c += pe[0];
1097
+ for (let he = 1; he < pe.length; ++he)
1098
+ (pe.length - he) % 3 === 0 ? c += d + pe[he] : c += pe[he];
1099
+ se && (c += N + se);
1093
1100
  }
1094
1101
  c && o.push(c), c = "";
1095
1102
  break;
@@ -1097,19 +1104,19 @@ function Ut(r, e, t) {
1097
1104
  return o.push(c), o.join("");
1098
1105
  }, He = () => $e(this, null, function* () {
1099
1106
  var o, c, v;
1100
- t(3, q = !0);
1101
- const a = new URL(`${y}/v1/player/${d}/account`);
1107
+ t(3, W = !0);
1108
+ const a = new URL(`${y}/v1/player/${p}/account`);
1102
1109
  try {
1103
- const D = yield fetch(a, {
1110
+ const M = yield fetch(a, {
1104
1111
  method: "GET",
1105
1112
  headers: { "X-SessionID": l }
1106
- }), C = yield D.json();
1107
- if (D.ok)
1108
- window.postMessage({ type: "BalancedFetched" }, window.location.href), se = C.items, ve = (o = se.find((f) => f.displayName === "Casino")) == null ? void 0 : o.currency, t(2, u.Total = [{ amount: C.totalAmount[ve] }], u), t(
1113
+ }), _ = yield M.json();
1114
+ if (M.ok)
1115
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), re = _.items, be = (o = re.find((d) => d.displayName === "Casino")) == null ? void 0 : o.currency, t(2, u.Total = [{ amount: _.totalAmount[be] }], u), t(
1109
1116
  2,
1110
1117
  u.Real = [
1111
1118
  {
1112
- amount: (c = se.find((f) => f.displayName === "Casino")) == null ? void 0 : c.balanceAmount
1119
+ amount: (c = re.find((d) => d.displayName === "Casino")) == null ? void 0 : c.balanceAmount
1113
1120
  }
1114
1121
  ],
1115
1122
  u
@@ -1117,43 +1124,43 @@ function Ut(r, e, t) {
1117
1124
  2,
1118
1125
  u.Bonus = [
1119
1126
  {
1120
- amount: (v = se.find((f) => f.displayName === "UBS")) == null ? void 0 : v.balanceAmount
1127
+ amount: (v = re.find((d) => d.displayName === "UBS")) == null ? void 0 : v.balanceAmount
1121
1128
  }
1122
1129
  ],
1123
1130
  u
1124
1131
  );
1125
1132
  else
1126
1133
  throw new Error("Failed to fetch balance data !");
1127
- } catch (D) {
1128
- console.log("Balance error: ", D);
1134
+ } catch (M) {
1135
+ console.log("Balance error: ", M);
1129
1136
  } finally {
1130
- t(3, q = !1);
1137
+ t(3, W = !1);
1131
1138
  }
1132
1139
  }), ze = () => {
1133
- t(3, q = !0);
1134
- const a = new URL(`${y}/v2/player/${d}/balance`), o = new Headers();
1140
+ t(3, W = !0);
1141
+ const a = new URL(`${y}/v2/player/${p}/balance`), o = new Headers();
1135
1142
  o.append("X-SessionID", l), fetch(a, { method: "GET", headers: o }).then((v) => v.json()).then((v) => {
1136
- v[_] || t(13, _ = ue[0]);
1137
- const D = v.items.find((f) => f.type === "Real" && f.walletAccountType === "Ordinary");
1138
- if (ve = D.currency, O = !!D.productType, t(2, u.Total = [{ amount: 0 }], u), t(2, u.Real = [], u), t(2, u.Bonus = [], u), t(2, u.Credit = [], u), !O) {
1143
+ v[T] || t(13, T = Be[0]);
1144
+ const M = v.items.find((d) => d.type === "Real" && d.walletAccountType === "Ordinary");
1145
+ if (be = M.currency, k = !!M.productType, t(2, u.Total = [{ amount: 0 }], u), t(2, u.Real = [], u), t(2, u.Bonus = [], u), t(2, u.Credit = [], u), !k) {
1139
1146
  $ = {
1140
1147
  lastOrdinaryAfterAmount: 0,
1141
1148
  showCreditLineAfterAmount: !1
1142
- }, t(2, u.Total[0].amount = v[_][ve], u);
1143
- for (const f of v.items)
1144
- switch (f.type) {
1149
+ }, t(2, u.Total[0].amount = v[T][be], u);
1150
+ for (const d of v.items)
1151
+ switch (d.type) {
1145
1152
  case "Bonus":
1146
- u.Bonus.length === 0 ? u.Bonus.push({ amount: f.amount }) : t(2, u.Bonus[0].amount += f.amount, u);
1153
+ u.Bonus.length === 0 ? u.Bonus.push({ amount: d.amount }) : t(2, u.Bonus[0].amount += d.amount, u);
1147
1154
  break;
1148
1155
  case "Real":
1149
- if (f.creditLine && u.Credit.length === 0 && u.Credit.push({ amount: f.creditLine }), _ === "totalRealAmount")
1156
+ if (d.creditLine && u.Credit.length === 0 && u.Credit.push({ amount: d.creditLine }), T === "totalRealAmount")
1150
1157
  continue;
1151
- u.Real.length === 0 ? u.Real.push({ amount: f.amount }) : t(2, u.Real[0].amount += f.amount, u);
1158
+ u.Real.length === 0 ? u.Real.push({ amount: d.amount }) : t(2, u.Real[0].amount += d.amount, u);
1152
1159
  break;
1153
1160
  }
1154
- for (const [f, F] of Object.entries(u))
1155
- F.length < 1 && delete u[f];
1156
- t(3, q = !1);
1161
+ for (const [d, N] of Object.entries(u))
1162
+ N.length < 1 && delete u[d];
1163
+ t(3, W = !1);
1157
1164
  return;
1158
1165
  }
1159
1166
  $ = {
@@ -1166,45 +1173,45 @@ function Ut(r, e, t) {
1166
1173
  showCreditLineAfterAmount: !1
1167
1174
  }
1168
1175
  };
1169
- let C = v.items;
1170
- S && S !== "All" && (C = v.items.filter((f) => f.productType === S));
1171
- for (const f of C) {
1172
- let F;
1173
- switch (f.type) {
1176
+ let _ = v.items;
1177
+ S && S !== "All" && (_ = v.items.filter((d) => d.productType === S));
1178
+ for (const d of _) {
1179
+ let N;
1180
+ switch (d.type) {
1174
1181
  case "Bonus":
1175
- F = u.Bonus.findIndex((ee) => ee.productType === f.productType), F > 0 ? t(2, u.Bonus[F].amount += f.amount, u) : u.Bonus.push({
1176
- amount: f.amount,
1177
- productType: f.productType
1182
+ N = u.Bonus.findIndex((te) => te.productType === d.productType), N > 0 ? t(2, u.Bonus[N].amount += d.amount, u) : u.Bonus.push({
1183
+ amount: d.amount,
1184
+ productType: d.productType
1178
1185
  });
1179
1186
  break;
1180
1187
  case "Real":
1181
- f.creditLine && u.Credit.push({
1182
- amount: f.creditLine,
1183
- productType: f.productType
1184
- }), F = u.Real.findIndex((ee) => ee.productType === f.productType), F > 0 ? t(2, u.Real[F].amount += f.amount, u) : u.Real.push({
1185
- amount: f.amount,
1186
- productType: f.productType
1188
+ d.creditLine && u.Credit.push({
1189
+ amount: d.creditLine,
1190
+ productType: d.productType
1191
+ }), N = u.Real.findIndex((te) => te.productType === d.productType), N > 0 ? t(2, u.Real[N].amount += d.amount, u) : u.Real.push({
1192
+ amount: d.amount,
1193
+ productType: d.productType
1187
1194
  });
1188
1195
  break;
1189
1196
  }
1190
1197
  }
1191
- be();
1192
- for (const [f, F] of Object.entries(u))
1193
- F.length < 1 && delete u[f];
1194
- window.postMessage({ type: "playerBalanceInfo", balance: v }, window.location.href), t(3, q = !1);
1198
+ ee();
1199
+ for (const [d, N] of Object.entries(u))
1200
+ N.length < 1 && delete u[d];
1201
+ window.postMessage({ type: "playerBalanceInfo", balance: v }, window.location.href), t(3, W = !1);
1195
1202
  }).catch((v) => {
1196
- throw t(3, q = !1), console.log("Balance fetch error", v), new Error("Failed to fetch balance data!");
1203
+ throw t(3, W = !1), console.log("Balance fetch error", v), new Error("Failed to fetch balance data!");
1197
1204
  });
1198
- }, Ee = () => {
1205
+ }, Me = () => {
1199
1206
  if (ae && ae.close(), l.length < 1)
1200
1207
  return;
1201
1208
  let a, o;
1202
- switch (L) {
1209
+ switch (F) {
1203
1210
  case "gm16":
1204
- a = new URL(`${y}/v2/player/${d}/information/updates`), o = (D) => oe(D);
1211
+ a = new URL(`${y}/v2/player/${p}/information/updates`), o = (M) => Ve(M);
1205
1212
  break;
1206
1213
  case "gmcore":
1207
- a = new URL(`${y}/v1/player/${d}/balance/updates`), o = (D) => Me(D);
1214
+ a = new URL(`${y}/v1/player/${p}/balance/updates`), o = (M) => De(M);
1208
1215
  break;
1209
1216
  }
1210
1217
  const c = {
@@ -1212,7 +1219,7 @@ function Ut(r, e, t) {
1212
1219
  "X-SessionId": l
1213
1220
  }, v = new It.EventSourcePolyfill(a, { headers: c });
1214
1221
  ae = v, v.addEventListener("message", o);
1215
- }, Fe = (a) => {
1222
+ }, Re = (a) => {
1216
1223
  let o;
1217
1224
  try {
1218
1225
  o = JSON.parse(a);
@@ -1221,19 +1228,19 @@ function Ut(r, e, t) {
1221
1228
  return;
1222
1229
  }
1223
1230
  return o;
1224
- }, Me = (a) => {
1225
- var D, C;
1226
- const o = Fe(a.data);
1231
+ }, De = (a) => {
1232
+ var M, _;
1233
+ const o = Re(a.data);
1227
1234
  if (!o) {
1228
- Ee();
1235
+ Me();
1229
1236
  return;
1230
1237
  }
1231
1238
  let c = "0";
1232
1239
  const v = o.balanceChange;
1233
- se = se.map((f) => (v && v[f.id] && (f = Ze(Je({}, f), {
1234
- balanceAmount: v[f.id].afterAmount
1235
- })), c = (parseFloat(f == null ? void 0 : f.balanceAmount) + parseFloat(c)).toString(), f)), t(2, u.Real = [{ amount: (D = se[0]) == null ? void 0 : D.balanceAmount }], u), t(2, u.Bonus = [{ amount: (C = se[1]) == null ? void 0 : C.balanceAmount }], u), t(2, u.Total = [{ amount: Number(c) }], u);
1236
- }, Ce = (a, o, c) => {
1240
+ re = re.map((d) => (v && v[d.id] && (d = Ze(Je({}, d), {
1241
+ balanceAmount: v[d.id].afterAmount
1242
+ })), c = (parseFloat(d == null ? void 0 : d.balanceAmount) + parseFloat(c)).toString(), d)), t(2, u.Real = [{ amount: (M = re[0]) == null ? void 0 : M.balanceAmount }], u), t(2, u.Bonus = [{ amount: (_ = re[1]) == null ? void 0 : _.balanceAmount }], u), t(2, u.Total = [{ amount: Number(c) }], u);
1243
+ }, fe = (a, o, c) => {
1237
1244
  let v = null;
1238
1245
  switch (c.walletAccountType) {
1239
1246
  case "Ordinary":
@@ -1246,8 +1253,8 @@ function Ut(r, e, t) {
1246
1253
  v = c.afterAmount;
1247
1254
  }
1248
1255
  return v === null ? a : v;
1249
- }, be = () => {
1250
- switch (_) {
1256
+ }, ee = () => {
1257
+ switch (T) {
1251
1258
  case "totalCashAmount":
1252
1259
  let a = 0;
1253
1260
  for (const c of ["Real", "Bonus"])
@@ -1256,34 +1263,34 @@ function Ut(r, e, t) {
1256
1263
  t(2, u.Total[0].amount = a, u);
1257
1264
  break;
1258
1265
  case "totalRealAmount":
1259
- if (!O)
1266
+ if (!k)
1260
1267
  return;
1261
1268
  let o = 0;
1262
1269
  for (const c of u.Real)
1263
1270
  o += c.amount;
1264
1271
  t(2, u.Total[0].amount = o, u);
1265
1272
  }
1266
- }, oe = (a) => {
1267
- const o = Fe(a.data);
1273
+ }, Ve = (a) => {
1274
+ const o = Re(a.data);
1268
1275
  if (!o) {
1269
- Ee();
1276
+ Me();
1270
1277
  return;
1271
1278
  }
1272
- if (Ve(o == null ? void 0 : o.type) || o.type !== "BALANCE_UPDATE_V2")
1279
+ if (Ue(o == null ? void 0 : o.type) || o.type !== "BALANCE_UPDATE_V2")
1273
1280
  return;
1274
1281
  const c = o.body.balanceChange;
1275
- for (const [v, D] of Object.entries(c))
1276
- if (_ === "totalRealAmount" && v === "Real" && !O && t(2, u.Total[0].amount = Ce(u.Total[0].amount, $, D), u), !!u[v])
1277
- for (const C of u[v]) {
1278
- if (!O) {
1279
- C.amount = v === "Real" ? Ce(C.amount, $, D) : D.afterAmount;
1282
+ for (const [v, M] of Object.entries(c))
1283
+ if (T === "totalRealAmount" && v === "Real" && !k && t(2, u.Total[0].amount = fe(u.Total[0].amount, $, M), u), !!u[v])
1284
+ for (const _ of u[v]) {
1285
+ if (!k) {
1286
+ _.amount = v === "Real" ? fe(_.amount, $, M) : M.afterAmount;
1280
1287
  continue;
1281
1288
  }
1282
- D.productType === C.productType && (C.amount = v === "Real" ? Ce(C.amount, $[C.productType], D) : D.afterAmount);
1289
+ M.productType === _.productType && (_.amount = v === "Real" ? fe(_.amount, $[_.productType], M) : M.afterAmount);
1283
1290
  }
1284
- be();
1285
- }, De = (a) => {
1286
- switch (Q("closebalance"), a) {
1291
+ ee();
1292
+ }, ke = (a) => {
1293
+ switch (de("closebalance"), a) {
1287
1294
  case "deposit":
1288
1295
  window.postMessage({ type: "GoToDeposit" }, window.location.href);
1289
1296
  break;
@@ -1292,10 +1299,10 @@ function Ut(r, e, t) {
1292
1299
  break;
1293
1300
  }
1294
1301
  typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
1295
- }, Ve = (a) => a === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Ue = () => {
1296
- ue.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ue}. Using default value ('${ue[0]}').`), t(13, _ = ue[0]));
1297
- }, Ie = () => {
1298
- switch (Ft(h), Ue(), L) {
1302
+ }, Ue = (a) => a === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Fe = () => {
1303
+ Be.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${Be}. Using default value ('${Be[0]}').`), t(13, T = Be[0]));
1304
+ }, n = () => {
1305
+ switch (Ft(h), Fe(), F) {
1299
1306
  case "gmcore":
1300
1307
  He();
1301
1308
  break;
@@ -1303,89 +1310,90 @@ function Ut(r, e, t) {
1303
1310
  ze();
1304
1311
  break;
1305
1312
  default:
1306
- throw Error(`Invalid apiversion attribute: ${L}`);
1313
+ throw Error(`Invalid apiversion attribute: ${F}`);
1307
1314
  }
1308
- }, n = (a) => {
1315
+ }, s = (a) => {
1309
1316
  const { data: { type: o } = {} } = a || {};
1310
1317
  switch (o) {
1311
1318
  case "LogoutSuccessfull":
1312
1319
  ae.close();
1313
1320
  break;
1314
1321
  case "CloseBalance":
1315
- Q("closebalance");
1322
+ de("closebalance");
1316
1323
  break;
1317
1324
  }
1318
- }, s = () => {
1325
+ }, f = () => {
1319
1326
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
1320
- }, p = (a) => {
1321
- const o = de.split(",").map((c) => c.trim());
1327
+ }, r = (a) => {
1328
+ const o = ce.split(",").map((c) => c.trim());
1322
1329
  return !a.productType || o.includes(a.productType) ? "" : m(a.productType);
1323
- }, i = () => {
1324
- switch (te) {
1325
- case "Real":
1326
- return u.Real ? Se(u.Real[0].amount) : "0";
1327
- default:
1328
- return u.Total ? Se(u.Total[0].amount) : "0";
1329
- }
1330
1330
  };
1331
- At(() => (window.addEventListener("message", n, !1), t(6, z = Lt(j)), () => {
1332
- window.removeEventListener("message", n), ae && ae.close();
1331
+ At(() => (window.addEventListener("message", s, !1), t(6, U = Lt(H)), () => {
1332
+ window.removeEventListener("message", s), ae && ae.close();
1333
1333
  }));
1334
- const B = () => Q("balance"), g = () => Q("closebalance"), T = () => De("deposit"), N = () => De("limits"), A = () => Q("closebalance");
1335
- function M(a) {
1334
+ const B = () => de("balance"), g = () => de("closebalance"), C = () => ke("deposit"), O = () => ke("limits"), A = () => de("closebalance");
1335
+ function E(a) {
1336
1336
  xt[a ? "unshift" : "push"](() => {
1337
- Y = a, t(1, Y);
1337
+ Q = a, t(1, Q);
1338
1338
  });
1339
1339
  }
1340
- return r.$$set = (a) => {
1341
- "userid" in a && t(14, d = a.userid), "session" in a && t(15, l = a.session), "endpoint" in a && t(16, y = a.endpoint), "lang" in a && t(17, h = a.lang), "mbsource" in a && t(18, b = a.mbsource), "clientstyling" in a && t(19, w = a.clientstyling), "clientstylingurl" in a && t(20, k = a.clientstylingurl), "translationurl" in a && t(21, V = a.translationurl), "gmversion" in a && t(22, L = a.gmversion), "displaybalanceoption" in a && t(23, S = a.displaybalanceoption), "totalcalculationmode" in a && t(13, _ = a.totalcalculationmode), "primarybalancemode" in a && t(24, te = a.primarybalancemode), "balancelimitsbutton" in a && t(0, ye = a.balancelimitsbutton), "hideproducttype" in a && t(25, de = a.hideproducttype), "currencylocale" in a && t(26, Te = a.currencylocale), "currencydisplay" in a && t(27, U = a.currencydisplay), "maximumfractiondigits" in a && t(28, X = a.maximumfractiondigits), "minimumfractiondigits" in a && t(29, ne = a.minimumfractiondigits), "customdisplayformat" in a && t(30, ce = a.customdisplayformat);
1342
- }, r.$$.update = () => {
1343
- r.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1344
- 12828672 && y && d && l && h && L && S && Ie(), r.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1345
- 4308992 && y && d && l && L && Ee(), r.$$.dirty[0] & /*translationurl*/
1346
- 2097152 && V && Re(), r.$$.dirty[0] & /*balances*/
1347
- 4 && u.Total && s(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1348
- 524290 && w && Y && Mt(Y, w), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1349
- 1048578 && k && Y && Dt(Y, k), r.$$.dirty[0] & /*mbsource, customStylingContainer*/
1350
- 262146 && b && Y && kt(Y, `${b}.Style`);
1340
+ return i.$$set = (a) => {
1341
+ "userid" in a && t(14, p = a.userid), "session" in a && t(15, l = a.session), "endpoint" in a && t(16, y = a.endpoint), "lang" in a && t(17, h = a.lang), "mbsource" in a && t(18, b = a.mbsource), "clientstyling" in a && t(19, w = a.clientstyling), "clientstylingurl" in a && t(20, D = a.clientstylingurl), "translationurl" in a && t(21, V = a.translationurl), "gmversion" in a && t(22, F = a.gmversion), "displaybalanceoption" in a && t(23, S = a.displaybalanceoption), "totalcalculationmode" in a && t(13, T = a.totalcalculationmode), "primarybalancemode" in a && t(24, I = a.primarybalancemode), "balancelimitsbutton" in a && t(0, ve = a.balancelimitsbutton), "hideproducttype" in a && t(25, ce = a.hideproducttype), "currencylocale" in a && t(26, Ce = a.currencylocale), "currencydisplay" in a && t(27, P = a.currencydisplay), "maximumfractiondigits" in a && t(28, K = a.maximumfractiondigits), "minimumfractiondigits" in a && t(29, ne = a.minimumfractiondigits), "customdisplayformat" in a && t(30, le = a.customdisplayformat);
1342
+ }, i.$$.update = () => {
1343
+ i.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
1344
+ 12828672 && y && p && l && h && F && S && n(), i.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
1345
+ 4308992 && y && p && l && F && Me(), i.$$.dirty[0] & /*translationurl*/
1346
+ 2097152 && V && ue(), i.$$.dirty[0] & /*balances*/
1347
+ 4 && u.Total && f(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1348
+ 524290 && w && Q && Mt(Q, w), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1349
+ 1048578 && D && Q && Dt(Q, D), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
1350
+ 262146 && b && Q && kt(Q, `${b}.Style`), i.$$.dirty[0] & /*primarybalancemode, balances*/
1351
+ 16777220 && t(7, we = (() => {
1352
+ switch (I) {
1353
+ case "Real":
1354
+ return u.Real ? xe(u.Real[0].amount) : "0";
1355
+ default:
1356
+ return u.Total ? xe(u.Total[0].amount) : "0";
1357
+ }
1358
+ })());
1351
1359
  }, [
1352
- ye,
1353
- Y,
1360
+ ve,
1361
+ Q,
1354
1362
  u,
1355
- q,
1356
- I,
1363
+ W,
1364
+ j,
1357
1365
  R,
1358
- z,
1366
+ U,
1367
+ we,
1359
1368
  m,
1360
- Q,
1361
- Se,
1362
- De,
1369
+ de,
1370
+ xe,
1371
+ ke,
1372
+ r,
1373
+ T,
1363
1374
  p,
1364
- i,
1365
- _,
1366
- d,
1367
1375
  l,
1368
1376
  y,
1369
1377
  h,
1370
1378
  b,
1371
1379
  w,
1372
- k,
1380
+ D,
1373
1381
  V,
1374
- L,
1382
+ F,
1375
1383
  S,
1376
- te,
1377
- de,
1378
- Te,
1379
- U,
1380
- X,
1381
- ne,
1384
+ I,
1382
1385
  ce,
1386
+ Ce,
1387
+ P,
1388
+ K,
1389
+ ne,
1390
+ le,
1383
1391
  B,
1384
1392
  g,
1385
- T,
1386
- N,
1393
+ C,
1394
+ O,
1387
1395
  A,
1388
- M
1396
+ E
1389
1397
  ];
1390
1398
  }
1391
1399
  class Pt extends Bt {
@@ -1425,115 +1433,115 @@ class Pt extends Bt {
1425
1433
  return this.$$.ctx[14];
1426
1434
  }
1427
1435
  set userid(e) {
1428
- this.$$set({ userid: e }), G();
1436
+ this.$$set({ userid: e }), X();
1429
1437
  }
1430
1438
  get session() {
1431
1439
  return this.$$.ctx[15];
1432
1440
  }
1433
1441
  set session(e) {
1434
- this.$$set({ session: e }), G();
1442
+ this.$$set({ session: e }), X();
1435
1443
  }
1436
1444
  get endpoint() {
1437
1445
  return this.$$.ctx[16];
1438
1446
  }
1439
1447
  set endpoint(e) {
1440
- this.$$set({ endpoint: e }), G();
1448
+ this.$$set({ endpoint: e }), X();
1441
1449
  }
1442
1450
  get lang() {
1443
1451
  return this.$$.ctx[17];
1444
1452
  }
1445
1453
  set lang(e) {
1446
- this.$$set({ lang: e }), G();
1454
+ this.$$set({ lang: e }), X();
1447
1455
  }
1448
1456
  get mbsource() {
1449
1457
  return this.$$.ctx[18];
1450
1458
  }
1451
1459
  set mbsource(e) {
1452
- this.$$set({ mbsource: e }), G();
1460
+ this.$$set({ mbsource: e }), X();
1453
1461
  }
1454
1462
  get clientstyling() {
1455
1463
  return this.$$.ctx[19];
1456
1464
  }
1457
1465
  set clientstyling(e) {
1458
- this.$$set({ clientstyling: e }), G();
1466
+ this.$$set({ clientstyling: e }), X();
1459
1467
  }
1460
1468
  get clientstylingurl() {
1461
1469
  return this.$$.ctx[20];
1462
1470
  }
1463
1471
  set clientstylingurl(e) {
1464
- this.$$set({ clientstylingurl: e }), G();
1472
+ this.$$set({ clientstylingurl: e }), X();
1465
1473
  }
1466
1474
  get translationurl() {
1467
1475
  return this.$$.ctx[21];
1468
1476
  }
1469
1477
  set translationurl(e) {
1470
- this.$$set({ translationurl: e }), G();
1478
+ this.$$set({ translationurl: e }), X();
1471
1479
  }
1472
1480
  get gmversion() {
1473
1481
  return this.$$.ctx[22];
1474
1482
  }
1475
1483
  set gmversion(e) {
1476
- this.$$set({ gmversion: e }), G();
1484
+ this.$$set({ gmversion: e }), X();
1477
1485
  }
1478
1486
  get displaybalanceoption() {
1479
1487
  return this.$$.ctx[23];
1480
1488
  }
1481
1489
  set displaybalanceoption(e) {
1482
- this.$$set({ displaybalanceoption: e }), G();
1490
+ this.$$set({ displaybalanceoption: e }), X();
1483
1491
  }
1484
1492
  get totalcalculationmode() {
1485
1493
  return this.$$.ctx[13];
1486
1494
  }
1487
1495
  set totalcalculationmode(e) {
1488
- this.$$set({ totalcalculationmode: e }), G();
1496
+ this.$$set({ totalcalculationmode: e }), X();
1489
1497
  }
1490
1498
  get primarybalancemode() {
1491
1499
  return this.$$.ctx[24];
1492
1500
  }
1493
1501
  set primarybalancemode(e) {
1494
- this.$$set({ primarybalancemode: e }), G();
1502
+ this.$$set({ primarybalancemode: e }), X();
1495
1503
  }
1496
1504
  get balancelimitsbutton() {
1497
1505
  return this.$$.ctx[0];
1498
1506
  }
1499
1507
  set balancelimitsbutton(e) {
1500
- this.$$set({ balancelimitsbutton: e }), G();
1508
+ this.$$set({ balancelimitsbutton: e }), X();
1501
1509
  }
1502
1510
  get hideproducttype() {
1503
1511
  return this.$$.ctx[25];
1504
1512
  }
1505
1513
  set hideproducttype(e) {
1506
- this.$$set({ hideproducttype: e }), G();
1514
+ this.$$set({ hideproducttype: e }), X();
1507
1515
  }
1508
1516
  get currencylocale() {
1509
1517
  return this.$$.ctx[26];
1510
1518
  }
1511
1519
  set currencylocale(e) {
1512
- this.$$set({ currencylocale: e }), G();
1520
+ this.$$set({ currencylocale: e }), X();
1513
1521
  }
1514
1522
  get currencydisplay() {
1515
1523
  return this.$$.ctx[27];
1516
1524
  }
1517
1525
  set currencydisplay(e) {
1518
- this.$$set({ currencydisplay: e }), G();
1526
+ this.$$set({ currencydisplay: e }), X();
1519
1527
  }
1520
1528
  get maximumfractiondigits() {
1521
1529
  return this.$$.ctx[28];
1522
1530
  }
1523
1531
  set maximumfractiondigits(e) {
1524
- this.$$set({ maximumfractiondigits: e }), G();
1532
+ this.$$set({ maximumfractiondigits: e }), X();
1525
1533
  }
1526
1534
  get minimumfractiondigits() {
1527
1535
  return this.$$.ctx[29];
1528
1536
  }
1529
1537
  set minimumfractiondigits(e) {
1530
- this.$$set({ minimumfractiondigits: e }), G();
1538
+ this.$$set({ minimumfractiondigits: e }), X();
1531
1539
  }
1532
1540
  get customdisplayformat() {
1533
1541
  return this.$$.ctx[30];
1534
1542
  }
1535
1543
  set customdisplayformat(e) {
1536
- this.$$set({ customdisplayformat: e }), G();
1544
+ this.$$set({ customdisplayformat: e }), X();
1537
1545
  }
1538
1546
  }
1539
1547
  Ot(Pt, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, primarybalancemode: {}, balancelimitsbutton: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);