@everymatrix/casino-header-controller-nd 1.53.0 → 1.53.10

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