@everymatrix/player-account-balance-modal-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.
@@ -1,4 +1,4 @@
1
- function ye() {
1
+ function ge() {
2
2
  }
3
3
  function Vr(e) {
4
4
  return e();
@@ -6,7 +6,7 @@ function Vr(e) {
6
6
  function fr() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function We(e) {
9
+ function qe(e) {
10
10
  e.forEach(Vr);
11
11
  }
12
12
  function ur(e) {
@@ -22,7 +22,7 @@ function zr(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const n of t)
24
24
  n(void 0);
25
- return ye;
25
+ return ge;
26
26
  }
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
@@ -57,10 +57,10 @@ function Rn(e, t) {
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function Ee(e, t, r) {
60
+ function ve(e, t, r) {
61
61
  e.insertBefore(t, r || null);
62
62
  }
63
- function ve(e) {
63
+ function ye(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
66
  function Wr(e, t) {
@@ -73,16 +73,16 @@ function V(e) {
73
73
  function dr(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
- function Oe(e) {
76
+ function Ae(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
- function Be() {
80
- return Oe(" ");
79
+ function Te() {
80
+ return Ae(" ");
81
81
  }
82
82
  function Mn() {
83
- return Oe("");
83
+ return Ae("");
84
84
  }
85
- function it(e, t, r, n) {
85
+ function ot(e, t, r, n) {
86
86
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
87
87
  }
88
88
  function L(e, t, r) {
@@ -91,7 +91,7 @@ function L(e, t, r) {
91
91
  function Pn(e) {
92
92
  return Array.from(e.childNodes);
93
93
  }
94
- function Ie(e, t) {
94
+ function Ne(e, t) {
95
95
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
96
96
  t);
97
97
  }
@@ -104,96 +104,96 @@ function Nn(e) {
104
104
  }
105
105
  ), t;
106
106
  }
107
- let ot;
108
- function nt(e) {
109
- ot = e;
107
+ let at;
108
+ function it(e) {
109
+ at = e;
110
110
  }
111
111
  function In() {
112
- if (!ot)
112
+ if (!at)
113
113
  throw new Error("Function called outside component initialization");
114
- return ot;
114
+ return at;
115
115
  }
116
116
  function Dn(e) {
117
117
  In().$$.on_mount.push(e);
118
118
  }
119
- const ke = [], $t = [];
120
- let je = [];
119
+ const $e = [], $t = [];
120
+ let Ve = [];
121
121
  const pr = [], Un = /* @__PURE__ */ Promise.resolve();
122
122
  let Vt = !1;
123
123
  function Fn() {
124
124
  Vt || (Vt = !0, Un.then(Y));
125
125
  }
126
126
  function Xt(e) {
127
- je.push(e);
127
+ Ve.push(e);
128
128
  }
129
129
  const Nt = /* @__PURE__ */ new Set();
130
- let Fe = 0;
130
+ let ke = 0;
131
131
  function Y() {
132
- if (Fe !== 0)
132
+ if (ke !== 0)
133
133
  return;
134
- const e = ot;
134
+ const e = at;
135
135
  do {
136
136
  try {
137
- for (; Fe < ke.length; ) {
138
- const t = ke[Fe];
139
- Fe++, nt(t), Gn(t.$$);
137
+ for (; ke < $e.length; ) {
138
+ const t = $e[ke];
139
+ ke++, it(t), Gn(t.$$);
140
140
  }
141
141
  } catch (t) {
142
- throw ke.length = 0, Fe = 0, t;
142
+ throw $e.length = 0, ke = 0, t;
143
143
  }
144
- for (nt(null), ke.length = 0, Fe = 0; $t.length; )
144
+ for (it(null), $e.length = 0, ke = 0; $t.length; )
145
145
  $t.pop()();
146
- for (let t = 0; t < je.length; t += 1) {
147
- const r = je[t];
146
+ for (let t = 0; t < Ve.length; t += 1) {
147
+ const r = Ve[t];
148
148
  Nt.has(r) || (Nt.add(r), r());
149
149
  }
150
- je.length = 0;
151
- } while (ke.length);
150
+ Ve.length = 0;
151
+ } while ($e.length);
152
152
  for (; pr.length; )
153
153
  pr.pop()();
154
- Vt = !1, Nt.clear(), nt(e);
154
+ Vt = !1, Nt.clear(), it(e);
155
155
  }
156
156
  function Gn(e) {
157
157
  if (e.fragment !== null) {
158
- e.update(), We(e.before_update);
158
+ e.update(), qe(e.before_update);
159
159
  const t = e.dirty;
160
160
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xt);
161
161
  }
162
162
  }
163
163
  function kn(e) {
164
164
  const t = [], r = [];
165
- je.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), je = t;
165
+ Ve.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Ve = t;
166
166
  }
167
167
  const jn = /* @__PURE__ */ new Set();
168
168
  function $n(e, t) {
169
169
  e && e.i && (jn.delete(e), e.i(t));
170
170
  }
171
- function vt(e) {
171
+ function yt(e) {
172
172
  return e?.length !== void 0 ? e : Array.from(e);
173
173
  }
174
174
  function Vn(e, t, r) {
175
175
  const { fragment: n, after_update: i } = e.$$;
176
176
  n && n.m(t, r), Xt(() => {
177
177
  const o = e.$$.on_mount.map(Vr).filter(ur);
178
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : We(o), e.$$.on_mount = [];
178
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : qe(o), e.$$.on_mount = [];
179
179
  }), i.forEach(Xt);
180
180
  }
181
181
  function Xn(e, t) {
182
182
  const r = e.$$;
183
- r.fragment !== null && (kn(r.after_update), We(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
183
+ r.fragment !== null && (kn(r.after_update), qe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
184
184
  }
185
185
  function zn(e, t) {
186
- e.$$.dirty[0] === -1 && (ke.push(e), Fn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
186
+ e.$$.dirty[0] === -1 && ($e.push(e), Fn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
187
187
  }
188
188
  function Wn(e, t, r, n, i, o, s = null, a = [-1]) {
189
- const l = ot;
190
- nt(e);
189
+ const l = at;
190
+ it(e);
191
191
  const u = e.$$ = {
192
192
  fragment: null,
193
193
  ctx: [],
194
194
  // state
195
195
  props: o,
196
- update: ye,
196
+ update: ge,
197
197
  not_equal: i,
198
198
  bound: fr(),
199
199
  // lifecycle
@@ -211,18 +211,18 @@ function Wn(e, t, r, n, i, o, s = null, a = [-1]) {
211
211
  };
212
212
  s && s(u.root);
213
213
  let f = !1;
214
- if (u.ctx = r ? r(e, t.props || {}, (b, d, ..._) => {
215
- const x = _.length ? _[0] : d;
216
- return u.ctx && i(u.ctx[b], u.ctx[b] = x) && (!u.skip_bound && u.bound[b] && u.bound[b](x), f && zn(e, b)), d;
217
- }) : [], u.update(), f = !0, We(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
214
+ if (u.ctx = r ? r(e, t.props || {}, (b, p, ...y) => {
215
+ const E = y.length ? y[0] : p;
216
+ return u.ctx && i(u.ctx[b], u.ctx[b] = E) && (!u.skip_bound && u.bound[b] && u.bound[b](E), f && zn(e, b)), p;
217
+ }) : [], u.update(), f = !0, qe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
218
218
  if (t.hydrate) {
219
219
  const b = Pn(t.target);
220
- u.fragment && u.fragment.l(b), b.forEach(ve);
220
+ u.fragment && u.fragment.l(b), b.forEach(ye);
221
221
  } else
222
222
  u.fragment && u.fragment.c();
223
223
  t.intro && $n(e.$$.fragment), Vn(e, t.target, t.anchor), Y();
224
224
  }
225
- nt(l);
225
+ it(l);
226
226
  }
227
227
  let Zr;
228
228
  typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
@@ -274,10 +274,10 @@ typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
274
274
  * @param {HTMLElement} [anchor]
275
275
  */
276
276
  m: function(l, u) {
277
- Ee(l, o, u);
277
+ ve(l, o, u);
278
278
  },
279
279
  d: function(l) {
280
- l && ve(o);
280
+ l && ye(o);
281
281
  }
282
282
  };
283
283
  };
@@ -289,7 +289,7 @@ typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
289
289
  i in r && (t[i] = [e(i)]);
290
290
  for (const i of this.attributes) {
291
291
  const o = this.$$g_p(i.name);
292
- o in this.$$d || (this.$$d[o] = mt(o, i.value, this.$$p_d, "toProp"));
292
+ o in this.$$d || (this.$$d[o] = pt(o, i.value, this.$$p_d, "toProp"));
293
293
  }
294
294
  for (const i in this.$$p_d)
295
295
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -307,7 +307,7 @@ typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
307
307
  this.$$r = !0;
308
308
  for (const i in this.$$p_d)
309
309
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
310
- const o = mt(
310
+ const o = pt(
311
311
  i,
312
312
  this.$$d[i],
313
313
  this.$$p_d,
@@ -329,7 +329,7 @@ typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
329
329
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
330
330
  // and setting attributes through setAttribute etc, this is helpful
331
331
  attributeChangedCallback(e, t, r) {
332
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = mt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
332
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = pt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
333
333
  }
334
334
  disconnectedCallback() {
335
335
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -342,7 +342,7 @@ typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
342
342
  ) || e;
343
343
  }
344
344
  });
345
- function mt(e, t, r, n) {
345
+ function pt(e, t, r, n) {
346
346
  const i = r[e]?.type;
347
347
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
348
348
  return t;
@@ -388,7 +388,7 @@ function Zn(e, t, r, n, i, o) {
388
388
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
389
389
  },
390
390
  set(l) {
391
- l = mt(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
391
+ l = pt(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
392
392
  }
393
393
  });
394
394
  }), n.forEach((a) => {
@@ -419,7 +419,7 @@ class qn {
419
419
  $$set = void 0;
420
420
  /** @returns {void} */
421
421
  $destroy() {
422
- Xn(this, 1), this.$destroy = ye;
422
+ Xn(this, 1), this.$destroy = ge;
423
423
  }
424
424
  /**
425
425
  * @template {Extract<keyof Events, string>} K
@@ -429,7 +429,7 @@ class qn {
429
429
  */
430
430
  $on(t, r) {
431
431
  if (!ur(r))
432
- return ye;
432
+ return ge;
433
433
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
434
434
  return n.push(r), () => {
435
435
  const i = n.indexOf(r);
@@ -469,39 +469,39 @@ function Kn(e, t, r) {
469
469
  });
470
470
  }
471
471
  }
472
- const Ge = [];
472
+ const je = [];
473
473
  function ei(e, t) {
474
474
  return {
475
- subscribe: wt(e, t).subscribe
475
+ subscribe: xt(e, t).subscribe
476
476
  };
477
477
  }
478
- function wt(e, t = ye) {
478
+ function xt(e, t = ge) {
479
479
  let r;
480
480
  const n = /* @__PURE__ */ new Set();
481
481
  function i(a) {
482
482
  if (Xr(e, a) && (e = a, r)) {
483
- const l = !Ge.length;
483
+ const l = !je.length;
484
484
  for (const u of n)
485
- u[1](), Ge.push(u, e);
485
+ u[1](), je.push(u, e);
486
486
  if (l) {
487
- for (let u = 0; u < Ge.length; u += 2)
488
- Ge[u][0](Ge[u + 1]);
489
- Ge.length = 0;
487
+ for (let u = 0; u < je.length; u += 2)
488
+ je[u][0](je[u + 1]);
489
+ je.length = 0;
490
490
  }
491
491
  }
492
492
  }
493
493
  function o(a) {
494
494
  i(a(e));
495
495
  }
496
- function s(a, l = ye) {
496
+ function s(a, l = ge) {
497
497
  const u = [a, l];
498
- return n.add(u), n.size === 1 && (r = t(i, o) || ye), a(e), () => {
498
+ return n.add(u), n.size === 1 && (r = t(i, o) || ge), a(e), () => {
499
499
  n.delete(u), n.size === 0 && r && (r(), r = null);
500
500
  };
501
501
  }
502
502
  return { set: i, update: o, subscribe: s };
503
503
  }
504
- function Ze(e, t, r) {
504
+ function Ye(e, t, r) {
505
505
  const n = !Array.isArray(e), i = n ? [e] : e;
506
506
  if (!i.every(Boolean))
507
507
  throw new Error("derived() expects stores as input, got a falsy value");
@@ -509,26 +509,26 @@ function Ze(e, t, r) {
509
509
  return ei(r, (s, a) => {
510
510
  let l = !1;
511
511
  const u = [];
512
- let f = 0, b = ye;
513
- const d = () => {
512
+ let f = 0, b = ge;
513
+ const p = () => {
514
514
  if (f)
515
515
  return;
516
516
  b();
517
- const x = t(n ? u[0] : u, s, a);
518
- o ? s(x) : b = ur(x) ? x : ye;
519
- }, _ = i.map(
520
- (x, A) => zr(
521
- x,
517
+ const E = t(n ? u[0] : u, s, a);
518
+ o ? s(E) : b = ur(E) ? E : ge;
519
+ }, y = i.map(
520
+ (E, B) => zr(
521
+ E,
522
522
  (Q) => {
523
- u[A] = Q, f &= ~(1 << A), l && d();
523
+ u[B] = Q, f &= ~(1 << B), l && p();
524
524
  },
525
525
  () => {
526
- f |= 1 << A;
526
+ f |= 1 << B;
527
527
  }
528
528
  )
529
529
  );
530
- return l = !0, d(), function() {
531
- We(_), b(), l = !1;
530
+ return l = !0, p(), function() {
531
+ qe(y), b(), l = !1;
532
532
  };
533
533
  });
534
534
  }
@@ -553,19 +553,19 @@ function ui(e) {
553
553
  function li(e) {
554
554
  return Array.isArray(e) ? [] : {};
555
555
  }
556
- function at(e, t) {
557
- return t.clone !== !1 && t.isMergeableObject(e) ? $e(li(e), e, t) : e;
556
+ function st(e, t) {
557
+ return t.clone !== !1 && t.isMergeableObject(e) ? Xe(li(e), e, t) : e;
558
558
  }
559
559
  function ci(e, t, r) {
560
560
  return e.concat(t).map(function(n) {
561
- return at(n, r);
561
+ return st(n, r);
562
562
  });
563
563
  }
564
564
  function hi(e, t) {
565
565
  if (!t.customMerge)
566
- return $e;
566
+ return Xe;
567
567
  var r = t.customMerge(e);
568
- return typeof r == "function" ? r : $e;
568
+ return typeof r == "function" ? r : Xe;
569
569
  }
570
570
  function fi(e) {
571
571
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -588,24 +588,24 @@ function di(e, t) {
588
588
  function pi(e, t, r) {
589
589
  var n = {};
590
590
  return r.isMergeableObject(e) && mr(e).forEach(function(i) {
591
- n[i] = at(e[i], r);
591
+ n[i] = st(e[i], r);
592
592
  }), mr(t).forEach(function(i) {
593
- di(e, i) || (qr(e, i) && r.isMergeableObject(t[i]) ? n[i] = hi(i, r)(e[i], t[i], r) : n[i] = at(t[i], r));
593
+ di(e, i) || (qr(e, i) && r.isMergeableObject(t[i]) ? n[i] = hi(i, r)(e[i], t[i], r) : n[i] = st(t[i], r));
594
594
  }), n;
595
595
  }
596
- function $e(e, t, r) {
597
- r = r || {}, r.arrayMerge = r.arrayMerge || ci, r.isMergeableObject = r.isMergeableObject || ni, r.cloneUnlessOtherwiseSpecified = at;
596
+ function Xe(e, t, r) {
597
+ r = r || {}, r.arrayMerge = r.arrayMerge || ci, r.isMergeableObject = r.isMergeableObject || ni, r.cloneUnlessOtherwiseSpecified = st;
598
598
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
599
- return o ? n ? r.arrayMerge(e, t, r) : pi(e, t, r) : at(t, r);
599
+ return o ? n ? r.arrayMerge(e, t, r) : pi(e, t, r) : st(t, r);
600
600
  }
601
- $e.all = function(t, r) {
601
+ Xe.all = function(t, r) {
602
602
  if (!Array.isArray(t))
603
603
  throw new Error("first argument should be an array");
604
604
  return t.reduce(function(n, i) {
605
- return $e(n, i, r);
605
+ return Xe(n, i, r);
606
606
  }, {});
607
607
  };
608
- var mi = $e, bi = mi;
608
+ var mi = Xe, bi = mi;
609
609
  const gi = /* @__PURE__ */ ri(bi);
610
610
  var zt = function(e, t) {
611
611
  return zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
@@ -615,7 +615,7 @@ var zt = function(e, t) {
615
615
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
616
616
  }, zt(e, t);
617
617
  };
618
- function St(e, t) {
618
+ function wt(e, t) {
619
619
  if (typeof t != "function" && t !== null)
620
620
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
621
621
  zt(e, t);
@@ -624,15 +624,15 @@ function St(e, t) {
624
624
  }
625
625
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
626
626
  }
627
- var Se = function() {
628
- return Se = Object.assign || function(t) {
627
+ var Be = function() {
628
+ return Be = Object.assign || function(t) {
629
629
  for (var r, n = 1, i = arguments.length; n < i; n++) {
630
630
  r = arguments[n];
631
631
  for (var o in r)
632
632
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
633
633
  }
634
634
  return t;
635
- }, Se.apply(this, arguments);
635
+ }, Be.apply(this, arguments);
636
636
  };
637
637
  function yi(e, t) {
638
638
  var r = {};
@@ -697,15 +697,15 @@ var wi = function() {
697
697
  }
698
698
  }, Ut = {
699
699
  variadic: xi
700
- }, _t = function() {
701
- return _t = Object.assign || function(t) {
700
+ }, vt = function() {
701
+ return vt = Object.assign || function(t) {
702
702
  for (var r, n = 1, i = arguments.length; n < i; n++) {
703
703
  r = arguments[n];
704
704
  for (var o in r)
705
705
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
706
706
  }
707
707
  return t;
708
- }, _t.apply(this, arguments);
708
+ }, vt.apply(this, arguments);
709
709
  };
710
710
  var O;
711
711
  (function(e) {
@@ -715,10 +715,10 @@ var $;
715
715
  (function(e) {
716
716
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
717
717
  })($ || ($ = {}));
718
- var Ve;
718
+ var ze;
719
719
  (function(e) {
720
720
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
721
- })(Ve || (Ve = {}));
721
+ })(ze || (ze = {}));
722
722
  function br(e) {
723
723
  return e.type === $.literal;
724
724
  }
@@ -747,10 +747,10 @@ function nn(e) {
747
747
  return e.type === $.tag;
748
748
  }
749
749
  function on(e) {
750
- return !!(e && typeof e == "object" && e.type === Ve.number);
750
+ return !!(e && typeof e == "object" && e.type === ze.number);
751
751
  }
752
752
  function Wt(e) {
753
- return !!(e && typeof e == "object" && e.type === Ve.dateTime);
753
+ return !!(e && typeof e == "object" && e.type === ze.dateTime);
754
754
  }
755
755
  var an = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ci = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
756
756
  function Hi(e) {
@@ -858,8 +858,8 @@ var Oi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
858
858
  function Li(e) {
859
859
  if (e.length === 0)
860
860
  throw new Error("Number skeleton cannot be empty");
861
- for (var t = e.split(Oi).filter(function(d) {
862
- return d.length > 0;
861
+ for (var t = e.split(Oi).filter(function(p) {
862
+ return p.length > 0;
863
863
  }), r = [], n = 0, i = t; n < i.length; n++) {
864
864
  var o = i[n], s = o.split("/");
865
865
  if (s.length === 0)
@@ -1027,13 +1027,13 @@ function Ni(e) {
1027
1027
  case "integer-width":
1028
1028
  if (i.options.length > 1)
1029
1029
  throw new RangeError("integer-width stems only accept a single optional option");
1030
- i.options[0].replace(Mi, function(l, u, f, b, d, _) {
1030
+ i.options[0].replace(Mi, function(l, u, f, b, p, y) {
1031
1031
  if (u)
1032
1032
  t.minimumIntegerDigits = f.length;
1033
1033
  else {
1034
- if (b && d)
1034
+ if (b && p)
1035
1035
  throw new Error("We currently do not support maximum integer digits");
1036
- if (_)
1036
+ if (y)
1037
1037
  throw new Error("We currently do not support exact integer digits");
1038
1038
  }
1039
1039
  return "";
@@ -1047,8 +1047,8 @@ function Ni(e) {
1047
1047
  if (gr.test(i.stem)) {
1048
1048
  if (i.options.length > 1)
1049
1049
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1050
- i.stem.replace(gr, function(l, u, f, b, d, _) {
1051
- return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : d && _ ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1050
+ i.stem.replace(gr, function(l, u, f, b, p, y) {
1051
+ return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : p && y ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1052
1052
  });
1053
1053
  var o = i.options[0];
1054
1054
  o === "w" ? t = W(W({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = W(W({}, t), yr(o)));
@@ -1065,7 +1065,7 @@ function Ni(e) {
1065
1065
  }
1066
1066
  return t;
1067
1067
  }
1068
- var dt = {
1068
+ var ft = {
1069
1069
  "001": [
1070
1070
  "H",
1071
1071
  "h"
@@ -2515,7 +2515,7 @@ function Di(e) {
2515
2515
  }
2516
2516
  var r = e.language, n;
2517
2517
  r !== "root" && (n = e.maximize().region);
2518
- var i = dt[n || ""] || dt[r || ""] || dt["".concat(r, "-001")] || dt["001"];
2518
+ var i = ft[n || ""] || ft[r || ""] || ft["".concat(r, "-001")] || ft["001"];
2519
2519
  return i[0];
2520
2520
  }
2521
2521
  var Ft, Ui = new RegExp("^".concat(an.source, "*")), Fi = new RegExp("".concat(an.source, "*$"));
@@ -2820,37 +2820,37 @@ var Qi = (
2820
2820
  var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
2821
2821
  if (b.err)
2822
2822
  return b;
2823
- var d = Yi(b.val);
2824
- if (d.length === 0)
2823
+ var p = Yi(b.val);
2824
+ if (p.length === 0)
2825
2825
  return this.error(O.EXPECT_ARGUMENT_STYLE, R(this.clonePosition(), this.clonePosition()));
2826
- var _ = R(f, this.clonePosition());
2827
- u = { style: d, styleLocation: _ };
2826
+ var y = R(f, this.clonePosition());
2827
+ u = { style: p, styleLocation: y };
2828
2828
  }
2829
- var x = this.tryParseArgumentClose(i);
2830
- if (x.err)
2831
- return x;
2832
- var A = R(i, this.clonePosition());
2829
+ var E = this.tryParseArgumentClose(i);
2830
+ if (E.err)
2831
+ return E;
2832
+ var B = R(i, this.clonePosition());
2833
2833
  if (u && _r(u?.style, "::", 0)) {
2834
2834
  var Q = qi(u.style.slice(2));
2835
2835
  if (a === "number") {
2836
2836
  var b = this.parseNumberSkeletonFromString(Q, u.styleLocation);
2837
2837
  return b.err ? b : {
2838
- val: { type: $.number, value: n, location: A, style: b.val },
2838
+ val: { type: $.number, value: n, location: B, style: b.val },
2839
2839
  err: null
2840
2840
  };
2841
2841
  } else {
2842
2842
  if (Q.length === 0)
2843
- return this.error(O.EXPECT_DATE_TIME_SKELETON, A);
2843
+ return this.error(O.EXPECT_DATE_TIME_SKELETON, B);
2844
2844
  var ne = Q;
2845
2845
  this.locale && (ne = Ii(Q, this.locale));
2846
- var d = {
2847
- type: Ve.dateTime,
2846
+ var p = {
2847
+ type: ze.dateTime,
2848
2848
  pattern: ne,
2849
2849
  location: u.styleLocation,
2850
2850
  parsedOptions: this.shouldParseSkeletons ? Hi(ne) : {}
2851
2851
  }, oe = a === "date" ? $.date : $.time;
2852
2852
  return {
2853
- val: { type: oe, value: n, location: A, style: d },
2853
+ val: { type: oe, value: n, location: B, style: p },
2854
2854
  err: null
2855
2855
  };
2856
2856
  }
@@ -2859,7 +2859,7 @@ var Qi = (
2859
2859
  val: {
2860
2860
  type: a === "number" ? $.number : a === "date" ? $.date : $.time,
2861
2861
  value: n,
2862
- location: A,
2862
+ location: B,
2863
2863
  style: (o = u?.style) !== null && o !== void 0 ? o : null
2864
2864
  },
2865
2865
  err: null
@@ -2870,7 +2870,7 @@ var Qi = (
2870
2870
  case "select": {
2871
2871
  var I = this.clonePosition();
2872
2872
  if (this.bumpSpace(), !this.bumpIf(","))
2873
- return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, R(I, _t({}, I)));
2873
+ return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, R(I, vt({}, I)));
2874
2874
  this.bumpSpace();
2875
2875
  var j = this.parseIdentifierIfPossible(), Z = 0;
2876
2876
  if (a !== "select" && j.value === "offset") {
@@ -2885,9 +2885,9 @@ var Qi = (
2885
2885
  var ie = this.tryParsePluralOrSelectOptions(t, a, r, j);
2886
2886
  if (ie.err)
2887
2887
  return ie;
2888
- var x = this.tryParseArgumentClose(i);
2889
- if (x.err)
2890
- return x;
2888
+ var E = this.tryParseArgumentClose(i);
2889
+ if (E.err)
2890
+ return E;
2891
2891
  var K = R(i, this.clonePosition());
2892
2892
  return a === "select" ? {
2893
2893
  val: {
@@ -2958,7 +2958,7 @@ var Qi = (
2958
2958
  }
2959
2959
  return {
2960
2960
  val: {
2961
- type: Ve.number,
2961
+ type: ze.number,
2962
2962
  tokens: n,
2963
2963
  location: r,
2964
2964
  parsedOptions: this.shouldParseSkeletons ? Ni(n) : {}
@@ -2970,9 +2970,9 @@ var Qi = (
2970
2970
  if (u.length === 0) {
2971
2971
  var b = this.clonePosition();
2972
2972
  if (r !== "select" && this.bumpIf("=")) {
2973
- var d = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
2974
- if (d.err)
2975
- return d;
2973
+ var p = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
2974
+ if (p.err)
2975
+ return p;
2976
2976
  f = R(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
2977
2977
  } else
2978
2978
  break;
@@ -2980,20 +2980,20 @@ var Qi = (
2980
2980
  if (l.has(u))
2981
2981
  return this.error(r === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
2982
2982
  u === "other" && (s = !0), this.bumpSpace();
2983
- var _ = this.clonePosition();
2983
+ var y = this.clonePosition();
2984
2984
  if (!this.bumpIf("{"))
2985
2985
  return this.error(r === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, R(this.clonePosition(), this.clonePosition()));
2986
- var x = this.parseMessage(t + 1, r, n);
2987
- if (x.err)
2988
- return x;
2989
- var A = this.tryParseArgumentClose(_);
2990
- if (A.err)
2991
- return A;
2986
+ var E = this.parseMessage(t + 1, r, n);
2987
+ if (E.err)
2988
+ return E;
2989
+ var B = this.tryParseArgumentClose(y);
2990
+ if (B.err)
2991
+ return B;
2992
2992
  a.push([
2993
2993
  u,
2994
2994
  {
2995
- value: x.val,
2996
- location: R(_, this.clonePosition())
2995
+ value: E.val,
2996
+ location: R(y, this.clonePosition())
2997
2997
  }
2998
2998
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
2999
2999
  }
@@ -3100,7 +3100,7 @@ function Jt(e) {
3100
3100
  });
3101
3101
  }
3102
3102
  function to(e, t) {
3103
- t === void 0 && (t = {}), t = _t({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3103
+ t === void 0 && (t = {}), t = vt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3104
3104
  var r = new Qi(e, t).parse();
3105
3105
  if (r.err) {
3106
3106
  var n = SyntaxError(O[r.err.kind]);
@@ -3108,14 +3108,14 @@ function to(e, t) {
3108
3108
  }
3109
3109
  return t?.captureLocation || Jt(r.val), r.val;
3110
3110
  }
3111
- var Xe;
3111
+ var We;
3112
3112
  (function(e) {
3113
3113
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3114
- })(Xe || (Xe = {}));
3115
- var Bt = (
3114
+ })(We || (We = {}));
3115
+ var St = (
3116
3116
  /** @class */
3117
3117
  function(e) {
3118
- St(t, e);
3118
+ wt(t, e);
3119
3119
  function t(r, n, i) {
3120
3120
  var o = e.call(this, r) || this;
3121
3121
  return o.code = n, o.originalMessage = i, o;
@@ -3127,48 +3127,48 @@ var Bt = (
3127
3127
  ), wr = (
3128
3128
  /** @class */
3129
3129
  function(e) {
3130
- St(t, e);
3130
+ wt(t, e);
3131
3131
  function t(r, n, i, o) {
3132
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Xe.INVALID_VALUE, o) || this;
3132
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), We.INVALID_VALUE, o) || this;
3133
3133
  }
3134
3134
  return t;
3135
- }(Bt)
3135
+ }(St)
3136
3136
  ), ro = (
3137
3137
  /** @class */
3138
3138
  function(e) {
3139
- St(t, e);
3139
+ wt(t, e);
3140
3140
  function t(r, n, i) {
3141
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Xe.INVALID_VALUE, i) || this;
3141
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), We.INVALID_VALUE, i) || this;
3142
3142
  }
3143
3143
  return t;
3144
- }(Bt)
3144
+ }(St)
3145
3145
  ), no = (
3146
3146
  /** @class */
3147
3147
  function(e) {
3148
- St(t, e);
3148
+ wt(t, e);
3149
3149
  function t(r, n) {
3150
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Xe.MISSING_VALUE, n) || this;
3150
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), We.MISSING_VALUE, n) || this;
3151
3151
  }
3152
3152
  return t;
3153
- }(Bt)
3154
- ), le;
3153
+ }(St)
3154
+ ), ue;
3155
3155
  (function(e) {
3156
3156
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3157
- })(le || (le = {}));
3157
+ })(ue || (ue = {}));
3158
3158
  function io(e) {
3159
3159
  return e.length < 2 ? e : e.reduce(function(t, r) {
3160
3160
  var n = t[t.length - 1];
3161
- return !n || n.type !== le.literal || r.type !== le.literal ? t.push(r) : n.value += r.value, t;
3161
+ return !n || n.type !== ue.literal || r.type !== ue.literal ? t.push(r) : n.value += r.value, t;
3162
3162
  }, []);
3163
3163
  }
3164
3164
  function oo(e) {
3165
3165
  return typeof e == "function";
3166
3166
  }
3167
- function bt(e, t, r, n, i, o, s) {
3167
+ function mt(e, t, r, n, i, o, s) {
3168
3168
  if (e.length === 1 && br(e[0]))
3169
3169
  return [
3170
3170
  {
3171
- type: le.literal,
3171
+ type: ue.literal,
3172
3172
  value: e[0].value
3173
3173
  }
3174
3174
  ];
@@ -3176,14 +3176,14 @@ function bt(e, t, r, n, i, o, s) {
3176
3176
  var f = u[l];
3177
3177
  if (br(f)) {
3178
3178
  a.push({
3179
- type: le.literal,
3179
+ type: ue.literal,
3180
3180
  value: f.value
3181
3181
  });
3182
3182
  continue;
3183
3183
  }
3184
3184
  if (Ai(f)) {
3185
3185
  typeof o == "number" && a.push({
3186
- type: le.literal,
3186
+ type: ue.literal,
3187
3187
  value: r.getNumberFormat(t).format(o)
3188
3188
  });
3189
3189
  continue;
@@ -3191,86 +3191,86 @@ function bt(e, t, r, n, i, o, s) {
3191
3191
  var b = f.value;
3192
3192
  if (!(i && b in i))
3193
3193
  throw new no(b, s);
3194
- var d = i[b];
3194
+ var p = i[b];
3195
3195
  if (Ti(f)) {
3196
- (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
3197
- type: typeof d == "string" ? le.literal : le.object,
3198
- value: d
3196
+ (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
3197
+ type: typeof p == "string" ? ue.literal : ue.object,
3198
+ value: p
3199
3199
  });
3200
3200
  continue;
3201
3201
  }
3202
3202
  if (Kr(f)) {
3203
- var _ = typeof f.style == "string" ? n.date[f.style] : Wt(f.style) ? f.style.parsedOptions : void 0;
3203
+ var y = typeof f.style == "string" ? n.date[f.style] : Wt(f.style) ? f.style.parsedOptions : void 0;
3204
3204
  a.push({
3205
- type: le.literal,
3206
- value: r.getDateTimeFormat(t, _).format(d)
3205
+ type: ue.literal,
3206
+ value: r.getDateTimeFormat(t, y).format(p)
3207
3207
  });
3208
3208
  continue;
3209
3209
  }
3210
3210
  if (en(f)) {
3211
- var _ = typeof f.style == "string" ? n.time[f.style] : Wt(f.style) ? f.style.parsedOptions : n.time.medium;
3211
+ var y = typeof f.style == "string" ? n.time[f.style] : Wt(f.style) ? f.style.parsedOptions : n.time.medium;
3212
3212
  a.push({
3213
- type: le.literal,
3214
- value: r.getDateTimeFormat(t, _).format(d)
3213
+ type: ue.literal,
3214
+ value: r.getDateTimeFormat(t, y).format(p)
3215
3215
  });
3216
3216
  continue;
3217
3217
  }
3218
3218
  if (Jr(f)) {
3219
- var _ = typeof f.style == "string" ? n.number[f.style] : on(f.style) ? f.style.parsedOptions : void 0;
3220
- _ && _.scale && (d = d * (_.scale || 1)), a.push({
3221
- type: le.literal,
3222
- value: r.getNumberFormat(t, _).format(d)
3219
+ var y = typeof f.style == "string" ? n.number[f.style] : on(f.style) ? f.style.parsedOptions : void 0;
3220
+ y && y.scale && (p = p * (y.scale || 1)), a.push({
3221
+ type: ue.literal,
3222
+ value: r.getNumberFormat(t, y).format(p)
3223
3223
  });
3224
3224
  continue;
3225
3225
  }
3226
3226
  if (nn(f)) {
3227
- var x = f.children, A = f.value, Q = i[A];
3227
+ var E = f.children, B = f.value, Q = i[B];
3228
3228
  if (!oo(Q))
3229
- throw new ro(A, "function", s);
3230
- var ne = bt(x, t, r, n, i, o), oe = Q(ne.map(function(Z) {
3229
+ throw new ro(B, "function", s);
3230
+ var ne = mt(E, t, r, n, i, o), oe = Q(ne.map(function(Z) {
3231
3231
  return Z.value;
3232
3232
  }));
3233
3233
  Array.isArray(oe) || (oe = [oe]), a.push.apply(a, oe.map(function(Z) {
3234
3234
  return {
3235
- type: typeof Z == "string" ? le.literal : le.object,
3235
+ type: typeof Z == "string" ? ue.literal : ue.object,
3236
3236
  value: Z
3237
3237
  };
3238
3238
  }));
3239
3239
  }
3240
3240
  if (tn(f)) {
3241
- var I = f.options[d] || f.options.other;
3241
+ var I = f.options[p] || f.options.other;
3242
3242
  if (!I)
3243
- throw new wr(f.value, d, Object.keys(f.options), s);
3244
- a.push.apply(a, bt(I.value, t, r, n, i));
3243
+ throw new wr(f.value, p, Object.keys(f.options), s);
3244
+ a.push.apply(a, mt(I.value, t, r, n, i));
3245
3245
  continue;
3246
3246
  }
3247
3247
  if (rn(f)) {
3248
- var I = f.options["=".concat(d)];
3248
+ var I = f.options["=".concat(p)];
3249
3249
  if (!I) {
3250
3250
  if (!Intl.PluralRules)
3251
- throw new Bt(`Intl.PluralRules is not available in this environment.
3251
+ throw new St(`Intl.PluralRules is not available in this environment.
3252
3252
  Try polyfilling it using "@formatjs/intl-pluralrules"
3253
- `, Xe.MISSING_INTL_API, s);
3254
- var j = r.getPluralRules(t, { type: f.pluralType }).select(d - (f.offset || 0));
3253
+ `, We.MISSING_INTL_API, s);
3254
+ var j = r.getPluralRules(t, { type: f.pluralType }).select(p - (f.offset || 0));
3255
3255
  I = f.options[j] || f.options.other;
3256
3256
  }
3257
3257
  if (!I)
3258
- throw new wr(f.value, d, Object.keys(f.options), s);
3259
- a.push.apply(a, bt(I.value, t, r, n, i, d - (f.offset || 0)));
3258
+ throw new wr(f.value, p, Object.keys(f.options), s);
3259
+ a.push.apply(a, mt(I.value, t, r, n, i, p - (f.offset || 0)));
3260
3260
  continue;
3261
3261
  }
3262
3262
  }
3263
3263
  return io(a);
3264
3264
  }
3265
3265
  function ao(e, t) {
3266
- return t ? Se(Se(Se({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3267
- return r[n] = Se(Se({}, e[n]), t[n] || {}), r;
3266
+ return t ? Be(Be(Be({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3267
+ return r[n] = Be(Be({}, e[n]), t[n] || {}), r;
3268
3268
  }, {})) : e;
3269
3269
  }
3270
3270
  function so(e, t) {
3271
3271
  return t ? Object.keys(e).reduce(function(r, n) {
3272
3272
  return r[n] = ao(e[n], t[n]), r;
3273
- }, Se({}, e)) : e;
3273
+ }, Be({}, e)) : e;
3274
3274
  }
3275
3275
  function Gt(e) {
3276
3276
  return {
@@ -3332,12 +3332,12 @@ var lo = (
3332
3332
  var u = o.formatToParts(l);
3333
3333
  if (u.length === 1)
3334
3334
  return u[0].value;
3335
- var f = u.reduce(function(b, d) {
3336
- return !b.length || d.type !== le.literal || typeof b[b.length - 1] != "string" ? b.push(d.value) : b[b.length - 1] += d.value, b;
3335
+ var f = u.reduce(function(b, p) {
3336
+ return !b.length || p.type !== ue.literal || typeof b[b.length - 1] != "string" ? b.push(p.value) : b[b.length - 1] += p.value, b;
3337
3337
  }, []);
3338
3338
  return f.length <= 1 ? f[0] || "" : f;
3339
3339
  }, this.formatToParts = function(l) {
3340
- return bt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3340
+ return mt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3341
3341
  }, this.resolvedOptions = function() {
3342
3342
  var l;
3343
3343
  return {
@@ -3351,7 +3351,7 @@ var lo = (
3351
3351
  var s = i || {};
3352
3352
  s.formatters;
3353
3353
  var a = yi(s, ["formatters"]);
3354
- this.ast = e.__parse(t, Se(Se({}, a), { locale: this.resolvedLocale }));
3354
+ this.ast = e.__parse(t, Be(Be({}, a), { locale: this.resolvedLocale }));
3355
3355
  } else
3356
3356
  this.ast = t;
3357
3357
  if (!Array.isArray(this.ast))
@@ -3451,12 +3451,12 @@ function co(e, t) {
3451
3451
  n = void 0;
3452
3452
  return n;
3453
3453
  }
3454
- const Re = {}, ho = (e, t, r) => r && (t in Re || (Re[t] = {}), e in Re[t] || (Re[t][e] = r), r), dn = (e, t) => {
3454
+ const Pe = {}, ho = (e, t, r) => r && (t in Pe || (Pe[t] = {}), e in Pe[t] || (Pe[t][e] = r), r), dn = (e, t) => {
3455
3455
  if (t == null)
3456
3456
  return;
3457
- if (t in Re && e in Re[t])
3458
- return Re[t][e];
3459
- const r = Tt(t);
3457
+ if (t in Pe && e in Pe[t])
3458
+ return Pe[t][e];
3459
+ const r = Bt(t);
3460
3460
  for (let n = 0; n < r.length; n++) {
3461
3461
  const i = r[n], o = po(i, e);
3462
3462
  if (o)
@@ -3464,7 +3464,7 @@ const Re = {}, ho = (e, t, r) => r && (t in Re || (Re[t] = {}), e in Re[t] || (R
3464
3464
  }
3465
3465
  };
3466
3466
  let lr;
3467
- const ut = wt({});
3467
+ const lt = xt({});
3468
3468
  function fo(e) {
3469
3469
  return lr[e] || null;
3470
3470
  }
@@ -3480,7 +3480,7 @@ function po(e, t) {
3480
3480
  function mo(e) {
3481
3481
  if (e == null)
3482
3482
  return;
3483
- const t = Tt(e);
3483
+ const t = Bt(e);
3484
3484
  for (let r = 0; r < t.length; r++) {
3485
3485
  const n = t[r];
3486
3486
  if (pn(n))
@@ -3488,28 +3488,28 @@ function mo(e) {
3488
3488
  }
3489
3489
  }
3490
3490
  function mn(e, ...t) {
3491
- delete Re[e], ut.update((r) => (r[e] = gi.all([r[e] || {}, ...t]), r));
3491
+ delete Pe[e], lt.update((r) => (r[e] = gi.all([r[e] || {}, ...t]), r));
3492
3492
  }
3493
- Ze(
3494
- [ut],
3493
+ Ye(
3494
+ [lt],
3495
3495
  ([e]) => Object.keys(e)
3496
3496
  );
3497
- ut.subscribe((e) => lr = e);
3498
- const gt = {};
3497
+ lt.subscribe((e) => lr = e);
3498
+ const bt = {};
3499
3499
  function bo(e, t) {
3500
- gt[e].delete(t), gt[e].size === 0 && delete gt[e];
3500
+ bt[e].delete(t), bt[e].size === 0 && delete bt[e];
3501
3501
  }
3502
3502
  function bn(e) {
3503
- return gt[e];
3503
+ return bt[e];
3504
3504
  }
3505
3505
  function go(e) {
3506
- return Tt(e).map((t) => {
3506
+ return Bt(e).map((t) => {
3507
3507
  const r = bn(t);
3508
3508
  return [t, r ? [...r] : []];
3509
3509
  }).filter(([, t]) => t.length > 0);
3510
3510
  }
3511
3511
  function Kt(e) {
3512
- return e == null ? !1 : Tt(e).some(
3512
+ return e == null ? !1 : Bt(e).some(
3513
3513
  (t) => {
3514
3514
  var r;
3515
3515
  return (r = bn(t)) == null ? void 0 : r.size;
@@ -3521,20 +3521,20 @@ function yo(e, t) {
3521
3521
  t.map((n) => (bo(e, n), n().then((i) => i.default || i)))
3522
3522
  ).then((n) => mn(e, ...n));
3523
3523
  }
3524
- const rt = {};
3524
+ const nt = {};
3525
3525
  function gn(e) {
3526
3526
  if (!Kt(e))
3527
- return e in rt ? rt[e] : Promise.resolve();
3527
+ return e in nt ? nt[e] : Promise.resolve();
3528
3528
  const t = go(e);
3529
- return rt[e] = Promise.all(
3529
+ return nt[e] = Promise.all(
3530
3530
  t.map(
3531
3531
  ([r, n]) => yo(r, n)
3532
3532
  )
3533
3533
  ).then(() => {
3534
3534
  if (Kt(e))
3535
3535
  return gn(e);
3536
- delete rt[e];
3537
- }), rt[e];
3536
+ delete nt[e];
3537
+ }), nt[e];
3538
3538
  }
3539
3539
  const vo = {
3540
3540
  number: {
@@ -3573,10 +3573,10 @@ const vo = {
3573
3573
  handleMissingMessage: void 0,
3574
3574
  ignoreTag: !0
3575
3575
  }, Eo = _o;
3576
- function ze() {
3576
+ function Ze() {
3577
3577
  return Eo;
3578
3578
  }
3579
- const kt = wt(!1);
3579
+ const kt = xt(!1);
3580
3580
  var xo = Object.defineProperty, wo = Object.defineProperties, So = Object.getOwnPropertyDescriptors, Sr = Object.getOwnPropertySymbols, Bo = Object.prototype.hasOwnProperty, To = Object.prototype.propertyIsEnumerable, Br = (e, t, r) => t in e ? xo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ao = (e, t) => {
3581
3581
  for (var r in t || (t = {}))
3582
3582
  Bo.call(t, r) && Br(e, r, t[r]);
@@ -3586,112 +3586,112 @@ var xo = Object.defineProperty, wo = Object.defineProperties, So = Object.getOwn
3586
3586
  return e;
3587
3587
  }, Co = (e, t) => wo(e, So(t));
3588
3588
  let er;
3589
- const Et = wt(null);
3589
+ const _t = xt(null);
3590
3590
  function Tr(e) {
3591
3591
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3592
3592
  }
3593
- function Tt(e, t = ze().fallbackLocale) {
3593
+ function Bt(e, t = Ze().fallbackLocale) {
3594
3594
  const r = Tr(e);
3595
3595
  return t ? [.../* @__PURE__ */ new Set([...r, ...Tr(t)])] : r;
3596
3596
  }
3597
3597
  function De() {
3598
3598
  return er ?? void 0;
3599
3599
  }
3600
- Et.subscribe((e) => {
3600
+ _t.subscribe((e) => {
3601
3601
  er = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3602
3602
  });
3603
3603
  const Ho = (e) => {
3604
3604
  if (e && mo(e) && Kt(e)) {
3605
- const { loadingDelay: t } = ze();
3605
+ const { loadingDelay: t } = Ze();
3606
3606
  let r;
3607
3607
  return typeof window < "u" && De() != null && t ? r = window.setTimeout(
3608
3608
  () => kt.set(!0),
3609
3609
  t
3610
3610
  ) : kt.set(!0), gn(e).then(() => {
3611
- Et.set(e);
3611
+ _t.set(e);
3612
3612
  }).finally(() => {
3613
3613
  clearTimeout(r), kt.set(!1);
3614
3614
  });
3615
3615
  }
3616
- return Et.set(e);
3617
- }, qe = Co(Ao({}, Et), {
3616
+ return _t.set(e);
3617
+ }, Qe = Co(Ao({}, _t), {
3618
3618
  set: Ho
3619
- }), At = (e) => {
3619
+ }), Tt = (e) => {
3620
3620
  const t = /* @__PURE__ */ Object.create(null);
3621
3621
  return (n) => {
3622
3622
  const i = JSON.stringify(n);
3623
3623
  return i in t ? t[i] : t[i] = e(n);
3624
3624
  };
3625
3625
  };
3626
- var Oo = Object.defineProperty, xt = Object.getOwnPropertySymbols, yn = Object.prototype.hasOwnProperty, vn = Object.prototype.propertyIsEnumerable, Ar = (e, t, r) => t in e ? Oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, cr = (e, t) => {
3626
+ var Oo = Object.defineProperty, Et = Object.getOwnPropertySymbols, yn = Object.prototype.hasOwnProperty, vn = Object.prototype.propertyIsEnumerable, Ar = (e, t, r) => t in e ? Oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, cr = (e, t) => {
3627
3627
  for (var r in t || (t = {}))
3628
3628
  yn.call(t, r) && Ar(e, r, t[r]);
3629
- if (xt)
3630
- for (var r of xt(t))
3629
+ if (Et)
3630
+ for (var r of Et(t))
3631
3631
  vn.call(t, r) && Ar(e, r, t[r]);
3632
3632
  return e;
3633
- }, Ye = (e, t) => {
3633
+ }, Je = (e, t) => {
3634
3634
  var r = {};
3635
3635
  for (var n in e)
3636
3636
  yn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3637
- if (e != null && xt)
3638
- for (var n of xt(e))
3637
+ if (e != null && Et)
3638
+ for (var n of Et(e))
3639
3639
  t.indexOf(n) < 0 && vn.call(e, n) && (r[n] = e[n]);
3640
3640
  return r;
3641
3641
  };
3642
- const st = (e, t) => {
3643
- const { formats: r } = ze();
3642
+ const ut = (e, t) => {
3643
+ const { formats: r } = Ze();
3644
3644
  if (e in r && t in r[e])
3645
3645
  return r[e][t];
3646
3646
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3647
- }, Lo = At(
3647
+ }, Lo = Tt(
3648
3648
  (e) => {
3649
- var t = e, { locale: r, format: n } = t, i = Ye(t, ["locale", "format"]);
3649
+ var t = e, { locale: r, format: n } = t, i = Je(t, ["locale", "format"]);
3650
3650
  if (r == null)
3651
3651
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3652
- return n && (i = st("number", n)), new Intl.NumberFormat(r, i);
3652
+ return n && (i = ut("number", n)), new Intl.NumberFormat(r, i);
3653
3653
  }
3654
- ), Ro = At(
3654
+ ), Ro = Tt(
3655
3655
  (e) => {
3656
- var t = e, { locale: r, format: n } = t, i = Ye(t, ["locale", "format"]);
3656
+ var t = e, { locale: r, format: n } = t, i = Je(t, ["locale", "format"]);
3657
3657
  if (r == null)
3658
3658
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3659
- return n ? i = st("date", n) : Object.keys(i).length === 0 && (i = st("date", "short")), new Intl.DateTimeFormat(r, i);
3659
+ return n ? i = ut("date", n) : Object.keys(i).length === 0 && (i = ut("date", "short")), new Intl.DateTimeFormat(r, i);
3660
3660
  }
3661
- ), Mo = At(
3661
+ ), Mo = Tt(
3662
3662
  (e) => {
3663
- var t = e, { locale: r, format: n } = t, i = Ye(t, ["locale", "format"]);
3663
+ var t = e, { locale: r, format: n } = t, i = Je(t, ["locale", "format"]);
3664
3664
  if (r == null)
3665
3665
  throw new Error(
3666
3666
  '[svelte-i18n] A "locale" must be set to format time values'
3667
3667
  );
3668
- return n ? i = st("time", n) : Object.keys(i).length === 0 && (i = st("time", "short")), new Intl.DateTimeFormat(r, i);
3668
+ return n ? i = ut("time", n) : Object.keys(i).length === 0 && (i = ut("time", "short")), new Intl.DateTimeFormat(r, i);
3669
3669
  }
3670
3670
  ), Po = (e = {}) => {
3671
3671
  var t = e, {
3672
3672
  locale: r = De()
3673
- } = t, n = Ye(t, [
3673
+ } = t, n = Je(t, [
3674
3674
  "locale"
3675
3675
  ]);
3676
3676
  return Lo(cr({ locale: r }, n));
3677
3677
  }, No = (e = {}) => {
3678
3678
  var t = e, {
3679
3679
  locale: r = De()
3680
- } = t, n = Ye(t, [
3680
+ } = t, n = Je(t, [
3681
3681
  "locale"
3682
3682
  ]);
3683
3683
  return Ro(cr({ locale: r }, n));
3684
3684
  }, Io = (e = {}) => {
3685
3685
  var t = e, {
3686
3686
  locale: r = De()
3687
- } = t, n = Ye(t, [
3687
+ } = t, n = Je(t, [
3688
3688
  "locale"
3689
3689
  ]);
3690
3690
  return Mo(cr({ locale: r }, n));
3691
- }, Do = At(
3691
+ }, Do = Tt(
3692
3692
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3693
- (e, t = De()) => new lo(e, t, ze().formats, {
3694
- ignoreTag: ze().ignoreTag
3693
+ (e, t = De()) => new lo(e, t, Ze().formats, {
3694
+ ignoreTag: Ze().ignoreTag
3695
3695
  })
3696
3696
  ), Uo = (e, t = {}) => {
3697
3697
  var r, n, i, o;
@@ -3708,7 +3708,7 @@ const st = (e, t) => {
3708
3708
  );
3709
3709
  let f = dn(e, l);
3710
3710
  if (!f)
3711
- f = (o = (i = (n = (r = ze()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3711
+ f = (o = (i = (n = (r = Ze()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3712
3712
  else if (typeof f != "string")
3713
3713
  return console.warn(
3714
3714
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3718,23 +3718,23 @@ const st = (e, t) => {
3718
3718
  let b = f;
3719
3719
  try {
3720
3720
  b = Do(f, l).format(a);
3721
- } catch (d) {
3722
- d instanceof Error && console.warn(
3721
+ } catch (p) {
3722
+ p instanceof Error && console.warn(
3723
3723
  `[svelte-i18n] Message "${e}" has syntax error:`,
3724
- d.message
3724
+ p.message
3725
3725
  );
3726
3726
  }
3727
3727
  return b;
3728
- }, Fo = (e, t) => Io(t).format(e), Go = (e, t) => No(t).format(e), ko = (e, t) => Po(t).format(e), jo = (e, t = De()) => dn(e, t), $o = Ze([qe, ut], () => Uo);
3729
- Ze([qe], () => Fo);
3730
- Ze([qe], () => Go);
3731
- Ze([qe], () => ko);
3732
- Ze([qe, ut], () => jo);
3728
+ }, Fo = (e, t) => Io(t).format(e), Go = (e, t) => No(t).format(e), ko = (e, t) => Po(t).format(e), jo = (e, t = De()) => dn(e, t), $o = Ye([Qe, lt], () => Uo);
3729
+ Ye([Qe], () => Fo);
3730
+ Ye([Qe], () => Go);
3731
+ Ye([Qe], () => ko);
3732
+ Ye([Qe, lt], () => jo);
3733
3733
  function Cr(e, t) {
3734
3734
  mn(e, t);
3735
3735
  }
3736
3736
  function Vo(e) {
3737
- qe.set(e);
3737
+ Qe.set(e);
3738
3738
  }
3739
3739
  const Hr = {
3740
3740
  en: {
@@ -3962,7 +3962,7 @@ var tr = { exports: {} };
3962
3962
  */
3963
3963
  (function(e, t) {
3964
3964
  (function(r) {
3965
- var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, l = r.EventSource, u = r.document, f = r.Promise, b = r.fetch, d = r.Response, _ = r.TextDecoder, x = r.TextEncoder, A = r.AbortController;
3965
+ var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, l = r.EventSource, u = r.document, f = r.Promise, b = r.fetch, p = r.Response, y = r.TextDecoder, E = r.TextEncoder, B = r.AbortController;
3966
3966
  if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(c) {
3967
3967
  u.readyState = "complete";
3968
3968
  }, !1)), o == null && a != null && (o = function() {
@@ -3973,24 +3973,24 @@ var tr = { exports: {} };
3973
3973
  return g.prototype = c, new g();
3974
3974
  }), Date.now || (Date.now = function() {
3975
3975
  return (/* @__PURE__ */ new Date()).getTime();
3976
- }), A == null) {
3976
+ }), B == null) {
3977
3977
  var Q = b;
3978
3978
  b = function(c, g) {
3979
- var E = g.signal;
3979
+ var x = g.signal;
3980
3980
  return Q(c, { headers: g.headers, credentials: g.credentials, cache: g.cache }).then(function(m) {
3981
- var T = m.body.getReader();
3982
- return E._reader = T, E._aborted && E._reader.cancel(), {
3981
+ var A = m.body.getReader();
3982
+ return x._reader = A, x._aborted && x._reader.cancel(), {
3983
3983
  status: m.status,
3984
3984
  statusText: m.statusText,
3985
3985
  headers: m.headers,
3986
3986
  body: {
3987
3987
  getReader: function() {
3988
- return T;
3988
+ return A;
3989
3989
  }
3990
3990
  }
3991
3991
  };
3992
3992
  });
3993
- }, A = function() {
3993
+ }, B = function() {
3994
3994
  this.signal = {
3995
3995
  _reader: null,
3996
3996
  _aborted: !1
@@ -4003,16 +4003,16 @@ var tr = { exports: {} };
4003
4003
  this.bitsNeeded = 0, this.codePoint = 0;
4004
4004
  }
4005
4005
  ne.prototype.decode = function(c) {
4006
- function g(D, h, p) {
4007
- if (p === 1)
4006
+ function g(D, h, d) {
4007
+ if (d === 1)
4008
4008
  return D >= 128 >> h && D << h <= 2047;
4009
- if (p === 2)
4009
+ if (d === 2)
4010
4010
  return D >= 2048 >> h && D << h <= 55295 || D >= 57344 >> h && D << h <= 65535;
4011
- if (p === 3)
4011
+ if (d === 3)
4012
4012
  return D >= 65536 >> h && D << h <= 1114111;
4013
4013
  throw new Error();
4014
4014
  }
4015
- function E(D, h) {
4015
+ function x(D, h) {
4016
4016
  if (D === 6 * 1)
4017
4017
  return h >> 6 > 15 ? 3 : h > 31 ? 2 : 1;
4018
4018
  if (D === 6 * 2)
@@ -4021,21 +4021,21 @@ var tr = { exports: {} };
4021
4021
  return 3;
4022
4022
  throw new Error();
4023
4023
  }
4024
- for (var m = 65533, T = "", w = this.bitsNeeded, C = this.codePoint, G = 0; G < c.length; G += 1) {
4024
+ for (var m = 65533, A = "", w = this.bitsNeeded, C = this.codePoint, G = 0; G < c.length; G += 1) {
4025
4025
  var H = c[G];
4026
- w !== 0 && (H < 128 || H > 191 || !g(C << 6 | H & 63, w - 6, E(w, C))) && (w = 0, C = m, T += String.fromCharCode(C)), w === 0 ? (H >= 0 && H <= 127 ? (w = 0, C = H) : H >= 192 && H <= 223 ? (w = 6 * 1, C = H & 31) : H >= 224 && H <= 239 ? (w = 6 * 2, C = H & 15) : H >= 240 && H <= 247 ? (w = 6 * 3, C = H & 7) : (w = 0, C = m), w !== 0 && !g(C, w, E(w, C)) && (w = 0, C = m)) : (w -= 6, C = C << 6 | H & 63), w === 0 && (C <= 65535 ? T += String.fromCharCode(C) : (T += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), T += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
4026
+ w !== 0 && (H < 128 || H > 191 || !g(C << 6 | H & 63, w - 6, x(w, C))) && (w = 0, C = m, A += String.fromCharCode(C)), w === 0 ? (H >= 0 && H <= 127 ? (w = 0, C = H) : H >= 192 && H <= 223 ? (w = 6 * 1, C = H & 31) : H >= 224 && H <= 239 ? (w = 6 * 2, C = H & 15) : H >= 240 && H <= 247 ? (w = 6 * 3, C = H & 7) : (w = 0, C = m), w !== 0 && !g(C, w, x(w, C)) && (w = 0, C = m)) : (w -= 6, C = C << 6 | H & 63), w === 0 && (C <= 65535 ? A += String.fromCharCode(C) : (A += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), A += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
4027
4027
  }
4028
- return this.bitsNeeded = w, this.codePoint = C, T;
4028
+ return this.bitsNeeded = w, this.codePoint = C, A;
4029
4029
  };
4030
4030
  var oe = function() {
4031
4031
  try {
4032
- return new _().decode(new x().encode("test"), { stream: !0 }) === "test";
4032
+ return new y().decode(new E().encode("test"), { stream: !0 }) === "test";
4033
4033
  } catch (c) {
4034
4034
  console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + c);
4035
4035
  }
4036
4036
  return !1;
4037
4037
  };
4038
- (_ == null || x == null || !oe()) && (_ = ne);
4038
+ (y == null || E == null || !oe()) && (y = ne);
4039
4039
  var I = function() {
4040
4040
  };
4041
4041
  function j(c) {
@@ -4043,62 +4043,62 @@ var tr = { exports: {} };
4043
4043
  }
4044
4044
  j.prototype.open = function(c, g) {
4045
4045
  this._abort(!0);
4046
- var E = this, m = this._xhr, T = 1, w = 0;
4047
- this._abort = function(p) {
4048
- E._sendTimeout !== 0 && (i(E._sendTimeout), E._sendTimeout = 0), (T === 1 || T === 2 || T === 3) && (T = 4, m.onload = I, m.onerror = I, m.onabort = I, m.onprogress = I, m.onreadystatechange = I, m.abort(), w !== 0 && (i(w), w = 0), p || (E.readyState = 4, E.onabort(null), E.onreadystatechange())), T = 0;
4046
+ var x = this, m = this._xhr, A = 1, w = 0;
4047
+ this._abort = function(d) {
4048
+ x._sendTimeout !== 0 && (i(x._sendTimeout), x._sendTimeout = 0), (A === 1 || A === 2 || A === 3) && (A = 4, m.onload = I, m.onerror = I, m.onabort = I, m.onprogress = I, m.onreadystatechange = I, m.abort(), w !== 0 && (i(w), w = 0), d || (x.readyState = 4, x.onabort(null), x.onreadystatechange())), A = 0;
4049
4049
  };
4050
4050
  var C = function() {
4051
- if (T === 1) {
4052
- var p = 0, y = "", S = void 0;
4051
+ if (A === 1) {
4052
+ var d = 0, v = "", S = void 0;
4053
4053
  if ("contentType" in m)
4054
- p = 200, y = "OK", S = m.contentType;
4054
+ d = 200, v = "OK", S = m.contentType;
4055
4055
  else
4056
4056
  try {
4057
- p = m.status, y = m.statusText, S = m.getResponseHeader("Content-Type");
4057
+ d = m.status, v = m.statusText, S = m.getResponseHeader("Content-Type");
4058
4058
  } catch {
4059
- p = 0, y = "", S = void 0;
4059
+ d = 0, v = "", S = void 0;
4060
4060
  }
4061
- p !== 0 && (T = 2, E.readyState = 2, E.status = p, E.statusText = y, E._contentType = S, E.onreadystatechange());
4061
+ d !== 0 && (A = 2, x.readyState = 2, x.status = d, x.statusText = v, x._contentType = S, x.onreadystatechange());
4062
4062
  }
4063
4063
  }, G = function() {
4064
- if (C(), T === 2 || T === 3) {
4065
- T = 3;
4066
- var p = "";
4064
+ if (C(), A === 2 || A === 3) {
4065
+ A = 3;
4066
+ var d = "";
4067
4067
  try {
4068
- p = m.responseText;
4068
+ d = m.responseText;
4069
4069
  } catch {
4070
4070
  }
4071
- E.readyState = 3, E.responseText = p, E.onprogress();
4071
+ x.readyState = 3, x.responseText = d, x.onprogress();
4072
4072
  }
4073
- }, H = function(p, y) {
4074
- if ((y == null || y.preventDefault == null) && (y = {
4073
+ }, H = function(d, v) {
4074
+ if ((v == null || v.preventDefault == null) && (v = {
4075
4075
  preventDefault: I
4076
- }), G(), T === 1 || T === 2 || T === 3) {
4077
- if (T = 4, w !== 0 && (i(w), w = 0), E.readyState = 4, p === "load")
4078
- E.onload(y);
4079
- else if (p === "error")
4080
- E.onerror(y);
4081
- else if (p === "abort")
4082
- E.onabort(y);
4076
+ }), G(), A === 1 || A === 2 || A === 3) {
4077
+ if (A = 4, w !== 0 && (i(w), w = 0), x.readyState = 4, d === "load")
4078
+ x.onload(v);
4079
+ else if (d === "error")
4080
+ x.onerror(v);
4081
+ else if (d === "abort")
4082
+ x.onabort(v);
4083
4083
  else
4084
4084
  throw new TypeError();
4085
- E.onreadystatechange();
4085
+ x.onreadystatechange();
4086
4086
  }
4087
- }, D = function(p) {
4088
- m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && H(m.responseText === "" ? "error" : "load", p) : m.readyState === 3 ? "onprogress" in m || G() : m.readyState === 2 && C());
4087
+ }, D = function(d) {
4088
+ m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && H(m.responseText === "" ? "error" : "load", d) : m.readyState === 3 ? "onprogress" in m || G() : m.readyState === 2 && C());
4089
4089
  }, h = function() {
4090
4090
  w = n(function() {
4091
4091
  h();
4092
4092
  }, 500), m.readyState === 3 && G();
4093
4093
  };
4094
- "onload" in m && (m.onload = function(p) {
4095
- H("load", p);
4096
- }), "onerror" in m && (m.onerror = function(p) {
4097
- H("error", p);
4098
- }), "onabort" in m && (m.onabort = function(p) {
4099
- H("abort", p);
4100
- }), "onprogress" in m && (m.onprogress = G), "onreadystatechange" in m && (m.onreadystatechange = function(p) {
4101
- D(p);
4094
+ "onload" in m && (m.onload = function(d) {
4095
+ H("load", d);
4096
+ }), "onerror" in m && (m.onerror = function(d) {
4097
+ H("error", d);
4098
+ }), "onabort" in m && (m.onabort = function(d) {
4099
+ H("abort", d);
4100
+ }), "onprogress" in m && (m.onprogress = G), "onreadystatechange" in m && (m.onreadystatechange = function(d) {
4101
+ D(d);
4102
4102
  }), ("contentType" in m || !("ontimeout" in o.prototype)) && (g += (g.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(c, g, !0), "readyState" in m && (w = n(function() {
4103
4103
  h();
4104
4104
  }, 0));
@@ -4107,8 +4107,8 @@ var tr = { exports: {} };
4107
4107
  }, j.prototype.getResponseHeader = function(c) {
4108
4108
  return this._contentType;
4109
4109
  }, j.prototype.setRequestHeader = function(c, g) {
4110
- var E = this._xhr;
4111
- "setRequestHeader" in E && E.setRequestHeader(c, g);
4110
+ var x = this._xhr;
4111
+ "setRequestHeader" in x && x.setRequestHeader(c, g);
4112
4112
  }, j.prototype.getAllResponseHeaders = function() {
4113
4113
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4114
4114
  }, j.prototype.send = function() {
@@ -4123,8 +4123,8 @@ var tr = { exports: {} };
4123
4123
  "withCredentials" in g && (g.withCredentials = this.withCredentials);
4124
4124
  try {
4125
4125
  g.send(void 0);
4126
- } catch (E) {
4127
- throw E;
4126
+ } catch (x) {
4127
+ throw x;
4128
4128
  }
4129
4129
  };
4130
4130
  function Z(c) {
@@ -4133,9 +4133,9 @@ var tr = { exports: {} };
4133
4133
  });
4134
4134
  }
4135
4135
  function ie(c) {
4136
- for (var g = /* @__PURE__ */ Object.create(null), E = c.split(`\r
4137
- `), m = 0; m < E.length; m += 1) {
4138
- var T = E[m], w = T.split(": "), C = w.shift(), G = w.join(": ");
4136
+ for (var g = /* @__PURE__ */ Object.create(null), x = c.split(`\r
4137
+ `), m = 0; m < x.length; m += 1) {
4138
+ var A = x[m], w = A.split(": "), C = w.shift(), G = w.join(": ");
4139
4139
  g[Z(C)] = G;
4140
4140
  }
4141
4141
  this._map = g;
@@ -4145,12 +4145,12 @@ var tr = { exports: {} };
4145
4145
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4146
4146
  function K() {
4147
4147
  }
4148
- K.prototype.open = function(c, g, E, m, T, w, C) {
4149
- c.open("GET", T);
4148
+ K.prototype.open = function(c, g, x, m, A, w, C) {
4149
+ c.open("GET", A);
4150
4150
  var G = 0;
4151
4151
  c.onprogress = function() {
4152
4152
  var D = c.responseText, h = D.slice(G);
4153
- G += h.length, E(h);
4153
+ G += h.length, x(h);
4154
4154
  }, c.onerror = function(D) {
4155
4155
  D.preventDefault(), m(new Error("NetworkError"));
4156
4156
  }, c.onload = function() {
@@ -4159,8 +4159,8 @@ var tr = { exports: {} };
4159
4159
  m(null);
4160
4160
  }, c.onreadystatechange = function() {
4161
4161
  if (c.readyState === o.HEADERS_RECEIVED) {
4162
- var D = c.status, h = c.statusText, p = c.getResponseHeader("Content-Type"), y = c.getAllResponseHeaders();
4163
- g(D, h, p, new ie(y));
4162
+ var D = c.status, h = c.statusText, d = c.getResponseHeader("Content-Type"), v = c.getAllResponseHeaders();
4163
+ g(D, h, d, new ie(v));
4164
4164
  }
4165
4165
  }, c.withCredentials = w;
4166
4166
  for (var H in C)
@@ -4175,22 +4175,22 @@ var tr = { exports: {} };
4175
4175
  };
4176
4176
  function X() {
4177
4177
  }
4178
- X.prototype.open = function(c, g, E, m, T, w, C) {
4179
- var G = null, H = new A(), D = H.signal, h = new _();
4180
- return b(T, {
4178
+ X.prototype.open = function(c, g, x, m, A, w, C) {
4179
+ var G = null, H = new B(), D = H.signal, h = new y();
4180
+ return b(A, {
4181
4181
  headers: C,
4182
4182
  credentials: w ? "include" : "same-origin",
4183
4183
  signal: D,
4184
4184
  cache: "no-store"
4185
- }).then(function(p) {
4186
- return G = p.body.getReader(), g(p.status, p.statusText, p.headers.get("Content-Type"), new te(p.headers)), new f(function(y, S) {
4185
+ }).then(function(d) {
4186
+ return G = d.body.getReader(), g(d.status, d.statusText, d.headers.get("Content-Type"), new te(d.headers)), new f(function(v, S) {
4187
4187
  var U = function() {
4188
4188
  G.read().then(function(N) {
4189
4189
  if (N.done)
4190
- y(void 0);
4190
+ v(void 0);
4191
4191
  else {
4192
- var B = h.decode(N.value, { stream: !0 });
4193
- E(B), U();
4192
+ var T = h.decode(N.value, { stream: !0 });
4193
+ x(T), U();
4194
4194
  }
4195
4195
  }).catch(function(N) {
4196
4196
  S(N);
@@ -4198,11 +4198,11 @@ var tr = { exports: {} };
4198
4198
  };
4199
4199
  U();
4200
4200
  });
4201
- }).catch(function(p) {
4202
- if (p.name !== "AbortError")
4203
- return p;
4204
- }).then(function(p) {
4205
- m(p);
4201
+ }).catch(function(d) {
4202
+ if (d.name !== "AbortError")
4203
+ return d;
4204
+ }).then(function(d) {
4205
+ m(d);
4206
4206
  }), {
4207
4207
  abort: function() {
4208
4208
  G?.cancel(), H.abort();
@@ -4221,28 +4221,28 @@ var tr = { exports: {} };
4221
4221
  c.target = this;
4222
4222
  var g = this._listeners[c.type];
4223
4223
  if (g != null)
4224
- for (var E = g.length, m = 0; m < E; m += 1) {
4225
- var T = g[m];
4224
+ for (var x = g.length, m = 0; m < x; m += 1) {
4225
+ var A = g[m];
4226
4226
  try {
4227
- typeof T.handleEvent == "function" ? T.handleEvent(c) : T.call(this, c);
4227
+ typeof A.handleEvent == "function" ? A.handleEvent(c) : A.call(this, c);
4228
4228
  } catch (w) {
4229
4229
  P(w);
4230
4230
  }
4231
4231
  }
4232
4232
  }, F.prototype.addEventListener = function(c, g) {
4233
4233
  c = String(c);
4234
- var E = this._listeners, m = E[c];
4235
- m == null && (m = [], E[c] = m);
4236
- for (var T = !1, w = 0; w < m.length; w += 1)
4237
- m[w] === g && (T = !0);
4238
- T || m.push(g);
4234
+ var x = this._listeners, m = x[c];
4235
+ m == null && (m = [], x[c] = m);
4236
+ for (var A = !1, w = 0; w < m.length; w += 1)
4237
+ m[w] === g && (A = !0);
4238
+ A || m.push(g);
4239
4239
  }, F.prototype.removeEventListener = function(c, g) {
4240
4240
  c = String(c);
4241
- var E = this._listeners, m = E[c];
4241
+ var x = this._listeners, m = x[c];
4242
4242
  if (m != null) {
4243
- for (var T = [], w = 0; w < m.length; w += 1)
4244
- m[w] !== g && T.push(m[w]);
4245
- T.length === 0 ? delete E[c] : E[c] = T;
4243
+ for (var A = [], w = 0; w < m.length; w += 1)
4244
+ m[w] !== g && A.push(m[w]);
4245
+ A.length === 0 ? delete x[c] : x[c] = A;
4246
4246
  }
4247
4247
  };
4248
4248
  function q(c) {
@@ -4256,146 +4256,146 @@ var tr = { exports: {} };
4256
4256
  q.call(this, c), this.status = g.status, this.statusText = g.statusText, this.headers = g.headers;
4257
4257
  }
4258
4258
  fe.prototype = Object.create(q.prototype);
4259
- function Te(c, g) {
4259
+ function Ce(c, g) {
4260
4260
  q.call(this, c), this.error = g.error;
4261
4261
  }
4262
- Te.prototype = Object.create(q.prototype);
4263
- var be = -1, ce = 0, v = 1, _e = 2, Qe = -1, ae = 0, Me = 1, ct = 2, Ht = 3, Ot = /^text\/event\-stream(;.*)?$/i, Je = 1e3, ht = 18e6, Ke = function(c, g) {
4264
- var E = c == null ? g : parseInt(c, 10);
4265
- return E !== E && (E = g), Pe(E);
4266
- }, Pe = function(c) {
4267
- return Math.min(Math.max(c, Je), ht);
4268
- }, Ae = function(c, g, E) {
4262
+ Ce.prototype = Object.create(q.prototype);
4263
+ var me = -1, le = 0, He = 1, _ = 2, Oe = -1, _e = 0, Ee = 1, Ue = 2, Ct = 3, Ht = /^text\/event\-stream(;.*)?$/i, Ot = 1e3, Ke = 18e6, Fe = function(c, g) {
4264
+ var x = c == null ? g : parseInt(c, 10);
4265
+ return x !== x && (x = g), et(x);
4266
+ }, et = function(c) {
4267
+ return Math.min(Math.max(c, Ot), Ke);
4268
+ }, xe = function(c, g, x) {
4269
4269
  try {
4270
- typeof g == "function" && g.call(c, E);
4270
+ typeof g == "function" && g.call(c, x);
4271
4271
  } catch (m) {
4272
4272
  P(m);
4273
4273
  }
4274
4274
  };
4275
- function de(c, g) {
4275
+ function ce(c, g) {
4276
4276
  F.call(this), g = g || {}, 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, Rt(this, c, g);
4277
4277
  }
4278
- function et() {
4278
+ function Lt() {
4279
4279
  return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
4280
4280
  }
4281
- var Lt = b != null && d != null && "body" in d.prototype;
4282
- function Rt(c, g, E) {
4281
+ var tt = b != null && p != null && "body" in p.prototype;
4282
+ function Rt(c, g, x) {
4283
4283
  g = String(g);
4284
- var m = !!E.withCredentials, T = E.lastEventIdQueryParameterName || "lastEventId", w = Pe(1e3), C = Ke(E.heartbeatTimeout, 45e3), G = "", H = w, D = !1, h = 0, p = E.headers || {}, y = E.Transport, S = Lt && y == null ? void 0 : new j(y != null ? new y() : et()), U = y != null && typeof y != "string" ? new y() : S == null ? new X() : new K(), N = void 0, B = 0, k = be, he = "", xe = "", ge = "", we = "", se = ae, Mt = 0, Ne = 0, Tn = function(ee, J, pe, me) {
4285
- if (k === ce)
4286
- if (ee === 200 && pe != null && Ot.test(pe)) {
4287
- k = v, D = Date.now(), H = w, c.readyState = v;
4288
- var ue = new fe("open", {
4284
+ var m = !!x.withCredentials, A = x.lastEventIdQueryParameterName || "lastEventId", w = et(1e3), C = Fe(x.heartbeatTimeout, 45e3), G = "", H = w, D = !1, h = 0, d = x.headers || {}, v = x.Transport, S = tt && v == null ? void 0 : new j(v != null ? new v() : Lt()), U = v != null && typeof v != "string" ? new v() : S == null ? new X() : new K(), N = void 0, T = 0, k = me, he = "", we = "", be = "", Se = "", ae = _e, Mt = 0, Ie = 0, Tn = function(ee, J, de, pe) {
4285
+ if (k === le)
4286
+ if (ee === 200 && de != null && Ht.test(de)) {
4287
+ k = He, D = Date.now(), H = w, c.readyState = He;
4288
+ var se = new fe("open", {
4289
4289
  status: ee,
4290
4290
  statusText: J,
4291
- headers: me
4291
+ headers: pe
4292
4292
  });
4293
- c.dispatchEvent(ue), Ae(c, c.onopen, ue);
4293
+ c.dispatchEvent(se), xe(c, c.onopen, se);
4294
4294
  } else {
4295
4295
  var re = "";
4296
- ee !== 200 ? (J && (J = J.replace(/\s+/g, " ")), re = "EventSource's response has a status " + ee + " " + J + " that is not 200. Aborting the connection.") : re = "EventSource's response has a Content-Type specifying an unsupported type: " + (pe == null ? "-" : pe.replace(/\s+/g, " ")) + ". Aborting the connection.", Pt();
4297
- var ue = new fe("error", {
4296
+ ee !== 200 ? (J && (J = J.replace(/\s+/g, " ")), re = "EventSource's response has a status " + ee + " " + J + " that is not 200. Aborting the connection.") : re = "EventSource's response has a Content-Type specifying an unsupported type: " + (de == null ? "-" : de.replace(/\s+/g, " ")) + ". Aborting the connection.", Pt();
4297
+ var se = new fe("error", {
4298
4298
  status: ee,
4299
4299
  statusText: J,
4300
- headers: me
4300
+ headers: pe
4301
4301
  });
4302
- c.dispatchEvent(ue), Ae(c, c.onerror, ue), console.error(re);
4302
+ c.dispatchEvent(se), xe(c, c.onerror, se), console.error(re);
4303
4303
  }
4304
4304
  }, An = function(ee) {
4305
- if (k === v) {
4306
- for (var J = -1, pe = 0; pe < ee.length; pe += 1) {
4307
- var me = ee.charCodeAt(pe);
4308
- (me === 10 || me === 13) && (J = pe);
4305
+ if (k === He) {
4306
+ for (var J = -1, de = 0; de < ee.length; de += 1) {
4307
+ var pe = ee.charCodeAt(de);
4308
+ (pe === 10 || pe === 13) && (J = de);
4309
4309
  }
4310
- var ue = (J !== -1 ? we : "") + ee.slice(0, J + 1);
4311
- we = (J === -1 ? we : "") + ee.slice(J + 1), ee !== "" && (D = Date.now(), h += ee.length);
4312
- for (var re = 0; re < ue.length; re += 1) {
4313
- var me = ue.charCodeAt(re);
4314
- if (se === Qe && me === 10)
4315
- se = ae;
4316
- else if (se === Qe && (se = ae), me === 13 || me === 10) {
4317
- if (se !== ae) {
4318
- se === Me && (Ne = re + 1);
4319
- var Ce = ue.slice(Mt, Ne - 1), He = ue.slice(Ne + (Ne < re && ue.charCodeAt(Ne) === 32 ? 1 : 0), re);
4320
- Ce === "data" ? (he += `
4321
- `, he += He) : Ce === "id" ? xe = He : Ce === "event" ? ge = He : Ce === "retry" ? (w = Ke(He, w), H = w) : Ce === "heartbeatTimeout" && (C = Ke(He, C), B !== 0 && (i(B), B = n(function() {
4322
- tt();
4310
+ var se = (J !== -1 ? Se : "") + ee.slice(0, J + 1);
4311
+ Se = (J === -1 ? Se : "") + ee.slice(J + 1), ee !== "" && (D = Date.now(), h += ee.length);
4312
+ for (var re = 0; re < se.length; re += 1) {
4313
+ var pe = se.charCodeAt(re);
4314
+ if (ae === Oe && pe === 10)
4315
+ ae = _e;
4316
+ else if (ae === Oe && (ae = _e), pe === 13 || pe === 10) {
4317
+ if (ae !== _e) {
4318
+ ae === Ee && (Ie = re + 1);
4319
+ var Le = se.slice(Mt, Ie - 1), Re = se.slice(Ie + (Ie < re && se.charCodeAt(Ie) === 32 ? 1 : 0), re);
4320
+ Le === "data" ? (he += `
4321
+ `, he += Re) : Le === "id" ? we = Re : Le === "event" ? be = Re : Le === "retry" ? (w = Fe(Re, w), H = w) : Le === "heartbeatTimeout" && (C = Fe(Re, C), T !== 0 && (i(T), T = n(function() {
4322
+ rt();
4323
4323
  }, C)));
4324
4324
  }
4325
- if (se === ae) {
4325
+ if (ae === _e) {
4326
4326
  if (he !== "") {
4327
- G = xe, ge === "" && (ge = "message");
4328
- var Ue = new z(ge, {
4327
+ G = we, be === "" && (be = "message");
4328
+ var Ge = new z(be, {
4329
4329
  data: he.slice(1),
4330
- lastEventId: xe
4330
+ lastEventId: we
4331
4331
  });
4332
- if (c.dispatchEvent(Ue), ge === "open" ? Ae(c, c.onopen, Ue) : ge === "message" ? Ae(c, c.onmessage, Ue) : ge === "error" && Ae(c, c.onerror, Ue), k === _e)
4332
+ if (c.dispatchEvent(Ge), be === "open" ? xe(c, c.onopen, Ge) : be === "message" ? xe(c, c.onmessage, Ge) : be === "error" && xe(c, c.onerror, Ge), k === _)
4333
4333
  return;
4334
4334
  }
4335
- he = "", ge = "";
4335
+ he = "", be = "";
4336
4336
  }
4337
- se = me === 13 ? Qe : ae;
4337
+ ae = pe === 13 ? Oe : _e;
4338
4338
  } else
4339
- se === ae && (Mt = re, se = Me), se === Me ? me === 58 && (Ne = re + 1, se = ct) : se === ct && (se = Ht);
4339
+ ae === _e && (Mt = re, ae = Ee), ae === Ee ? pe === 58 && (Ie = re + 1, ae = Ue) : ae === Ue && (ae = Ct);
4340
4340
  }
4341
4341
  }
4342
4342
  }, hr = function(ee) {
4343
- if (k === v || k === ce) {
4344
- k = be, B !== 0 && (i(B), B = 0), B = n(function() {
4345
- tt();
4346
- }, H), H = Pe(Math.min(w * 16, H * 2)), c.readyState = ce;
4347
- var J = new Te("error", { error: ee });
4348
- c.dispatchEvent(J), Ae(c, c.onerror, J), ee != null && console.error(ee);
4343
+ if (k === He || k === le) {
4344
+ k = me, T !== 0 && (i(T), T = 0), T = n(function() {
4345
+ rt();
4346
+ }, H), H = et(Math.min(w * 16, H * 2)), c.readyState = le;
4347
+ var J = new Ce("error", { error: ee });
4348
+ c.dispatchEvent(J), xe(c, c.onerror, J), ee != null && console.error(ee);
4349
4349
  }
4350
4350
  }, Pt = function() {
4351
- k = _e, N != null && (N.abort(), N = void 0), B !== 0 && (i(B), B = 0), c.readyState = _e;
4352
- }, tt = function() {
4353
- if (B = 0, k !== be) {
4351
+ k = _, N != null && (N.abort(), N = void 0), T !== 0 && (i(T), T = 0), c.readyState = _;
4352
+ }, rt = function() {
4353
+ if (T = 0, k !== me) {
4354
4354
  if (!D && N != null)
4355
- hr(new Error("No activity within " + C + " milliseconds. " + (k === ce ? "No response received." : h + " chars received.") + " Reconnecting.")), N != null && (N.abort(), N = void 0);
4355
+ hr(new Error("No activity within " + C + " milliseconds. " + (k === le ? "No response received." : h + " chars received.") + " Reconnecting.")), N != null && (N.abort(), N = void 0);
4356
4356
  else {
4357
4357
  var ee = Math.max((D || Date.now()) + C - Date.now(), 1);
4358
- D = !1, B = n(function() {
4359
- tt();
4358
+ D = !1, T = n(function() {
4359
+ rt();
4360
4360
  }, ee);
4361
4361
  }
4362
4362
  return;
4363
4363
  }
4364
- D = !1, h = 0, B = n(function() {
4365
- tt();
4366
- }, C), k = ce, he = "", ge = "", xe = G, we = "", Mt = 0, Ne = 0, se = ae;
4364
+ D = !1, h = 0, T = n(function() {
4365
+ rt();
4366
+ }, C), k = le, he = "", be = "", we = G, Se = "", Mt = 0, Ie = 0, ae = _e;
4367
4367
  var J = g;
4368
4368
  if (g.slice(0, 5) !== "data:" && g.slice(0, 5) !== "blob:" && G !== "") {
4369
- var pe = g.indexOf("?");
4370
- J = pe === -1 ? g : g.slice(0, pe + 1) + g.slice(pe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(He, Ue) {
4371
- return Ue === T ? "" : He;
4372
- }), J += (g.indexOf("?") === -1 ? "?" : "&") + T + "=" + encodeURIComponent(G);
4369
+ var de = g.indexOf("?");
4370
+ J = de === -1 ? g : g.slice(0, de + 1) + g.slice(de + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Re, Ge) {
4371
+ return Ge === A ? "" : Re;
4372
+ }), J += (g.indexOf("?") === -1 ? "?" : "&") + A + "=" + encodeURIComponent(G);
4373
4373
  }
4374
- var me = c.withCredentials, ue = {};
4375
- ue.Accept = "text/event-stream";
4374
+ var pe = c.withCredentials, se = {};
4375
+ se.Accept = "text/event-stream";
4376
4376
  var re = c.headers;
4377
4377
  if (re != null)
4378
- for (var Ce in re)
4379
- Object.prototype.hasOwnProperty.call(re, Ce) && (ue[Ce] = re[Ce]);
4378
+ for (var Le in re)
4379
+ Object.prototype.hasOwnProperty.call(re, Le) && (se[Le] = re[Le]);
4380
4380
  try {
4381
- N = U.open(S, Tn, An, hr, J, me, ue);
4382
- } catch (He) {
4383
- throw Pt(), He;
4381
+ N = U.open(S, Tn, An, hr, J, pe, se);
4382
+ } catch (Re) {
4383
+ throw Pt(), Re;
4384
4384
  }
4385
4385
  };
4386
- c.url = g, c.readyState = ce, c.withCredentials = m, c.headers = p, c._close = Pt, tt();
4386
+ c.url = g, c.readyState = le, c.withCredentials = m, c.headers = d, c._close = Pt, rt();
4387
4387
  }
4388
- de.prototype = Object.create(F.prototype), de.prototype.CONNECTING = ce, de.prototype.OPEN = v, de.prototype.CLOSED = _e, de.prototype.close = function() {
4388
+ ce.prototype = Object.create(F.prototype), ce.prototype.CONNECTING = le, ce.prototype.OPEN = He, ce.prototype.CLOSED = _, ce.prototype.close = function() {
4389
4389
  this._close();
4390
- }, de.CONNECTING = ce, de.OPEN = v, de.CLOSED = _e, de.prototype.withCredentials = void 0;
4391
- var ft = l;
4392
- o != null && (l == null || !("withCredentials" in l.prototype)) && (ft = de), function(c) {
4390
+ }, ce.CONNECTING = le, ce.OPEN = He, ce.CLOSED = _, ce.prototype.withCredentials = void 0;
4391
+ var ht = l;
4392
+ o != null && (l == null || !("withCredentials" in l.prototype)) && (ht = ce), function(c) {
4393
4393
  {
4394
4394
  var g = c(t);
4395
4395
  g !== void 0 && (e.exports = g);
4396
4396
  }
4397
4397
  }(function(c) {
4398
- c.EventSourcePolyfill = de, c.NativeEventSource = l, c.EventSource = ft;
4398
+ c.EventSourcePolyfill = ce, c.NativeEventSource = l, c.EventSource = ht;
4399
4399
  });
4400
4400
  })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ti : globalThis);
4401
4401
  })(tr, tr.exports);
@@ -4422,7 +4422,7 @@ var rr = function(e, t) {
4422
4422
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
4423
4423
  }, rr(e, t);
4424
4424
  };
4425
- function lt(e, t) {
4425
+ function ct(e, t) {
4426
4426
  if (typeof t != "function" && t !== null)
4427
4427
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
4428
4428
  rr(e, t);
@@ -4469,7 +4469,7 @@ function or(e, t, r) {
4469
4469
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
4470
4470
  return e.concat(o || t);
4471
4471
  }
4472
- function Le(e) {
4472
+ function Me(e) {
4473
4473
  return typeof e == "function";
4474
4474
  }
4475
4475
  function _n(e) {
@@ -4493,7 +4493,7 @@ function ar(e, t) {
4493
4493
  0 <= r && e.splice(r, 1);
4494
4494
  }
4495
4495
  }
4496
- var Ct = function() {
4496
+ var At = function() {
4497
4497
  function e(t) {
4498
4498
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
4499
4499
  }
@@ -4509,8 +4509,8 @@ var Ct = function() {
4509
4509
  var u = l.value;
4510
4510
  u.remove(this);
4511
4511
  }
4512
- } catch (A) {
4513
- t = { error: A };
4512
+ } catch (B) {
4513
+ t = { error: B };
4514
4514
  } finally {
4515
4515
  try {
4516
4516
  l && !l.done && (r = a.return) && r.call(a);
@@ -4522,29 +4522,29 @@ var Ct = function() {
4522
4522
  else
4523
4523
  s.remove(this);
4524
4524
  var f = this.initialTeardown;
4525
- if (Le(f))
4525
+ if (Me(f))
4526
4526
  try {
4527
4527
  f();
4528
- } catch (A) {
4529
- o = A instanceof jt ? A.errors : [A];
4528
+ } catch (B) {
4529
+ o = B instanceof jt ? B.errors : [B];
4530
4530
  }
4531
4531
  var b = this._finalizers;
4532
4532
  if (b) {
4533
4533
  this._finalizers = null;
4534
4534
  try {
4535
- for (var d = nr(b), _ = d.next(); !_.done; _ = d.next()) {
4536
- var x = _.value;
4535
+ for (var p = nr(b), y = p.next(); !y.done; y = p.next()) {
4536
+ var E = y.value;
4537
4537
  try {
4538
- Or(x);
4539
- } catch (A) {
4540
- o = o ?? [], A instanceof jt ? o = or(or([], ir(o)), ir(A.errors)) : o.push(A);
4538
+ Or(E);
4539
+ } catch (B) {
4540
+ o = o ?? [], B instanceof jt ? o = or(or([], ir(o)), ir(B.errors)) : o.push(B);
4541
4541
  }
4542
4542
  }
4543
- } catch (A) {
4544
- n = { error: A };
4543
+ } catch (B) {
4544
+ n = { error: B };
4545
4545
  } finally {
4546
4546
  try {
4547
- _ && !_.done && (i = d.return) && i.call(d);
4547
+ y && !y.done && (i = p.return) && i.call(p);
4548
4548
  } finally {
4549
4549
  if (n)
4550
4550
  throw n.error;
@@ -4583,12 +4583,12 @@ var Ct = function() {
4583
4583
  var t = new e();
4584
4584
  return t.closed = !0, t;
4585
4585
  }(), e;
4586
- }(), En = Ct.EMPTY;
4586
+ }(), En = At.EMPTY;
4587
4587
  function xn(e) {
4588
- return e instanceof Ct || e && "closed" in e && Le(e.remove) && Le(e.add) && Le(e.unsubscribe);
4588
+ return e instanceof At || e && "closed" in e && Me(e.remove) && Me(e.add) && Me(e.unsubscribe);
4589
4589
  }
4590
4590
  function Or(e) {
4591
- Le(e) ? e() : e.unsubscribe();
4591
+ Me(e) ? e() : e.unsubscribe();
4592
4592
  }
4593
4593
  var zo = {
4594
4594
  Promise: void 0
@@ -4610,11 +4610,11 @@ function Zo(e) {
4610
4610
  }
4611
4611
  function Lr() {
4612
4612
  }
4613
- function yt(e) {
4613
+ function gt(e) {
4614
4614
  e();
4615
4615
  }
4616
4616
  var wn = function(e) {
4617
- lt(t, e);
4617
+ ct(t, e);
4618
4618
  function t(r) {
4619
4619
  var n = e.call(this) || this;
4620
4620
  return n.isStopped = !1, r ? (n.destination = r, xn(r) && r.add(n)) : n.destination = Qo, n;
@@ -4644,7 +4644,7 @@ var wn = function(e) {
4644
4644
  this.unsubscribe();
4645
4645
  }
4646
4646
  }, t;
4647
- }(Ct), qo = function() {
4647
+ }(At), qo = function() {
4648
4648
  function e(t) {
4649
4649
  this.partialObserver = t;
4650
4650
  }
@@ -4654,7 +4654,7 @@ var wn = function(e) {
4654
4654
  try {
4655
4655
  r.next(t);
4656
4656
  } catch (n) {
4657
- pt(n);
4657
+ dt(n);
4658
4658
  }
4659
4659
  }, e.prototype.error = function(t) {
4660
4660
  var r = this.partialObserver;
@@ -4662,24 +4662,24 @@ var wn = function(e) {
4662
4662
  try {
4663
4663
  r.error(t);
4664
4664
  } catch (n) {
4665
- pt(n);
4665
+ dt(n);
4666
4666
  }
4667
4667
  else
4668
- pt(t);
4668
+ dt(t);
4669
4669
  }, e.prototype.complete = function() {
4670
4670
  var t = this.partialObserver;
4671
4671
  if (t.complete)
4672
4672
  try {
4673
4673
  t.complete();
4674
4674
  } catch (r) {
4675
- pt(r);
4675
+ dt(r);
4676
4676
  }
4677
4677
  }, e;
4678
4678
  }(), sr = function(e) {
4679
- lt(t, e);
4679
+ ct(t, e);
4680
4680
  function t(r, n, i) {
4681
4681
  var o = e.call(this) || this, s;
4682
- return Le(r) || !r ? s = {
4682
+ return Me(r) || !r ? s = {
4683
4683
  next: r ?? void 0,
4684
4684
  error: n ?? void 0,
4685
4685
  complete: i ?? void 0
@@ -4687,7 +4687,7 @@ var wn = function(e) {
4687
4687
  }
4688
4688
  return t;
4689
4689
  }(wn);
4690
- function pt(e) {
4690
+ function dt(e) {
4691
4691
  Zo(e);
4692
4692
  }
4693
4693
  function Yo(e) {
@@ -4720,7 +4720,7 @@ var Rr = function() {
4720
4720
  return r.source = this, r.operator = t, r;
4721
4721
  }, e.prototype.subscribe = function(t, r, n) {
4722
4722
  var i = this, o = ra(t) ? t : new sr(t, r, n);
4723
- return yt(function() {
4723
+ return gt(function() {
4724
4724
  var s = i, a = s.operator, l = s.source;
4725
4725
  o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4726
4726
  }), o;
@@ -4776,7 +4776,7 @@ function Mr(e) {
4776
4776
  return (t = e ?? zo.Promise) !== null && t !== void 0 ? t : Promise;
4777
4777
  }
4778
4778
  function ta(e) {
4779
- return e && Le(e.next) && Le(e.error) && Le(e.complete);
4779
+ return e && Me(e.next) && Me(e.error) && Me(e.complete);
4780
4780
  }
4781
4781
  function ra(e) {
4782
4782
  return e && e instanceof wn || ta(e) && xn(e);
@@ -4786,7 +4786,7 @@ var na = _n(function(e) {
4786
4786
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4787
4787
  };
4788
4788
  }), Sn = function(e) {
4789
- lt(t, e);
4789
+ ct(t, e);
4790
4790
  function t() {
4791
4791
  var r = e.call(this) || this;
4792
4792
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
@@ -4799,7 +4799,7 @@ var na = _n(function(e) {
4799
4799
  throw new na();
4800
4800
  }, t.prototype.next = function(r) {
4801
4801
  var n = this;
4802
- yt(function() {
4802
+ gt(function() {
4803
4803
  var i, o;
4804
4804
  if (n._throwIfClosed(), !n.isStopped) {
4805
4805
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
@@ -4822,7 +4822,7 @@ var na = _n(function(e) {
4822
4822
  });
4823
4823
  }, t.prototype.error = function(r) {
4824
4824
  var n = this;
4825
- yt(function() {
4825
+ gt(function() {
4826
4826
  if (n._throwIfClosed(), !n.isStopped) {
4827
4827
  n.hasError = n.isStopped = !0, n.thrownError = r;
4828
4828
  for (var i = n.observers; i.length; )
@@ -4831,7 +4831,7 @@ var na = _n(function(e) {
4831
4831
  });
4832
4832
  }, t.prototype.complete = function() {
4833
4833
  var r = this;
4834
- yt(function() {
4834
+ gt(function() {
4835
4835
  if (r._throwIfClosed(), !r.isStopped) {
4836
4836
  r.isStopped = !0;
4837
4837
  for (var n = r.observers; n.length; )
@@ -4853,7 +4853,7 @@ var na = _n(function(e) {
4853
4853
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
4854
4854
  }, t.prototype._innerSubscribe = function(r) {
4855
4855
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
4856
- return o || s ? En : (this.currentObservers = null, a.push(r), new Ct(function() {
4856
+ return o || s ? En : (this.currentObservers = null, a.push(r), new At(function() {
4857
4857
  n.currentObservers = null, ar(a, r);
4858
4858
  }));
4859
4859
  }, t.prototype._checkFinalizedStatuses = function(r) {
@@ -4866,7 +4866,7 @@ var na = _n(function(e) {
4866
4866
  return new Pr(r, n);
4867
4867
  }, t;
4868
4868
  }(Rr), Pr = function(e) {
4869
- lt(t, e);
4869
+ ct(t, e);
4870
4870
  function t(r, n) {
4871
4871
  var i = e.call(this) || this;
4872
4872
  return i.destination = r, i.source = n, i;
@@ -4890,7 +4890,7 @@ var na = _n(function(e) {
4890
4890
  },
4891
4891
  delegate: void 0
4892
4892
  }, ia = function(e) {
4893
- lt(t, e);
4893
+ ct(t, e);
4894
4894
  function t(r, n, i) {
4895
4895
  r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Bn);
4896
4896
  var o = e.call(this) || this;
@@ -4934,65 +4934,72 @@ function Ur(e, t, r) {
4934
4934
  return n[63] = t[r], n;
4935
4935
  }
4936
4936
  function ua(e) {
4937
- let t, r, n, i, o, s, a, l, u, f, b, d = (
4937
+ let t, r, n, i, o, s, a, l, u, f, b, p, y = (
4938
4938
  /*showBalance*/
4939
4939
  e[5] && Fr(e)
4940
4940
  );
4941
4941
  return {
4942
4942
  c() {
4943
- t = V("button"), r = V("p"), r.textContent = `${/*renderPrimaryBalance*/
4944
- e[12]()}`, n = Be(), i = V("span"), o = dr("svg"), s = dr("path"), l = Be(), d && d.c(), u = Mn(), L(s, "id", "arrow"), L(s, "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(s, "transform", "translate(-274.511 -441.088)"), L(s, "fill", "#d1d1d1"), L(o, "xmlns", "http://www.w3.org/2000/svg"), L(o, "width", "14"), L(o, "height", "6.835"), L(o, "viewBox", "0 0 14 6.835"), L(i, "class", a = /*isModalDisplayed*/
4943
+ t = V("button"), r = V("p"), n = Ae(
4944
+ /*displayBalance*/
4945
+ e[7]
4946
+ ), i = Te(), o = V("span"), s = dr("svg"), a = dr("path"), u = Te(), y && y.c(), f = Mn(), L(a, "id", "arrow"), L(a, "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(a, "transform", "translate(-274.511 -441.088)"), L(a, "fill", "#d1d1d1"), L(s, "xmlns", "http://www.w3.org/2000/svg"), L(s, "width", "14"), L(s, "height", "6.835"), L(s, "viewBox", "0 0 14 6.835"), L(o, "class", l = /*isModalDisplayed*/
4945
4947
  e[4] ? "TriangleActive" : "TriangleInactive"), L(t, "class", "BalanceValue");
4946
4948
  },
4947
- m(_, x) {
4948
- Ee(_, t, x), M(t, r), M(t, n), M(t, i), M(i, o), M(o, s), Ee(_, l, x), d && d.m(_, x), Ee(_, u, x), f || (b = it(
4949
+ m(E, B) {
4950
+ ve(E, t, B), M(t, r), M(r, n), M(t, i), M(t, o), M(o, s), M(s, a), ve(E, u, B), y && y.m(E, B), ve(E, f, B), b || (p = ot(
4949
4951
  t,
4950
4952
  "click",
4951
4953
  /*click_handler*/
4952
4954
  e[31]
4953
- ), f = !0);
4955
+ ), b = !0);
4954
4956
  },
4955
- p(_, x) {
4956
- x[0] & /*isModalDisplayed*/
4957
- 16 && a !== (a = /*isModalDisplayed*/
4958
- _[4] ? "TriangleActive" : "TriangleInactive") && L(i, "class", a), /*showBalance*/
4959
- _[5] ? d ? d.p(_, x) : (d = Fr(_), d.c(), d.m(u.parentNode, u)) : d && (d.d(1), d = null);
4957
+ p(E, B) {
4958
+ B[0] & /*displayBalance*/
4959
+ 128 && Ne(
4960
+ n,
4961
+ /*displayBalance*/
4962
+ E[7]
4963
+ ), B[0] & /*isModalDisplayed*/
4964
+ 16 && l !== (l = /*isModalDisplayed*/
4965
+ E[4] ? "TriangleActive" : "TriangleInactive") && L(o, "class", l), /*showBalance*/
4966
+ E[5] ? y ? y.p(E, B) : (y = Fr(E), y.c(), y.m(f.parentNode, f)) : y && (y.d(1), y = null);
4960
4967
  },
4961
- d(_) {
4962
- _ && (ve(t), ve(l), ve(u)), d && d.d(_), f = !1, b();
4968
+ d(E) {
4969
+ E && (ye(t), ye(u), ye(f)), y && y.d(E), b = !1, p();
4963
4970
  }
4964
4971
  };
4965
4972
  }
4966
4973
  function la(e) {
4967
4974
  let t, r = (
4968
4975
  /*$_*/
4969
- e[7]("Loading") + ""
4976
+ e[8]("Loading") + ""
4970
4977
  ), n;
4971
4978
  return {
4972
4979
  c() {
4973
- t = V("p"), n = Oe(r), L(t, "class", "Loading");
4980
+ t = V("p"), n = Ae(r), L(t, "class", "Loading");
4974
4981
  },
4975
4982
  m(i, o) {
4976
- Ee(i, t, o), M(t, n);
4983
+ ve(i, t, o), M(t, n);
4977
4984
  },
4978
4985
  p(i, o) {
4979
4986
  o[0] & /*$_*/
4980
- 128 && r !== (r = /*$_*/
4981
- i[7]("Loading") + "") && Ie(n, r);
4987
+ 256 && r !== (r = /*$_*/
4988
+ i[8]("Loading") + "") && Ne(n, r);
4982
4989
  },
4983
4990
  d(i) {
4984
- i && ve(t);
4991
+ i && ye(t);
4985
4992
  }
4986
4993
  };
4987
4994
  }
4988
4995
  function Fr(e) {
4989
4996
  let t, r, n, i, o, s, a, l, u = (
4990
4997
  /*$_*/
4991
- e[7]("Title") + ""
4992
- ), f, b, d, _, x, A, Q = (
4998
+ e[8]("Title") + ""
4999
+ ), f, b, p, y, E, B, Q = (
4993
5000
  /*$_*/
4994
- e[7]("DepositButton") + ""
4995
- ), ne, oe, I, j, Z, ie, K, te = vt(Object.keys(
5001
+ e[8]("DepositButton") + ""
5002
+ ), ne, oe, I, j, Z, ie, K, te = yt(Object.keys(
4996
5003
  /*balances*/
4997
5004
  e[2]
4998
5005
  )), X = [];
@@ -5004,28 +5011,28 @@ function Fr(e) {
5004
5011
  );
5005
5012
  return {
5006
5013
  c() {
5007
- t = V("div"), r = V("button"), i = Be(), o = V("div"), s = V("div"), a = V("div"), l = V("p"), f = Oe(u), b = Be(), d = V("div");
5014
+ t = V("div"), r = V("button"), i = Te(), o = V("div"), s = V("div"), a = V("div"), l = V("p"), f = Ae(u), b = Te(), p = V("div");
5008
5015
  for (let P = 0; P < X.length; P += 1)
5009
5016
  X[P].c();
5010
- _ = Be(), x = V("div"), A = V("button"), ne = Oe(Q), oe = Be(), F && F.c(), L(r, "class", n = "BalanceModalClose " + /*isModalDisplayed*/
5011
- (e[4] ? "Open" : "")), L(l, "class", "BalanceModalTitle"), L(a, "class", "BalanceModalHeader"), L(d, "class", "BalanceModalBody"), L(A, "class", "BalanceModalAction DepositButton"), L(x, "class", "BalanceModalFooter"), L(s, "class", I = "ModalContent " + /*isModalDisplayed*/
5017
+ y = Te(), E = V("div"), B = V("button"), ne = Ae(Q), oe = Te(), F && F.c(), L(r, "class", n = "BalanceModalClose " + /*isModalDisplayed*/
5018
+ (e[4] ? "Open" : "")), L(l, "class", "BalanceModalTitle"), L(a, "class", "BalanceModalHeader"), L(p, "class", "BalanceModalBody"), L(B, "class", "BalanceModalAction DepositButton"), L(E, "class", "BalanceModalFooter"), L(s, "class", I = "ModalContent " + /*isModalDisplayed*/
5012
5019
  (e[4] ? "Open" : "")), L(o, "class", j = "BalanceModal " + /*isModalDisplayed*/
5013
5020
  (e[4] ? "Open" : "")), L(t, "class", Z = "BalanceModalWrapper " + /*isModalDisplayed*/
5014
5021
  (e[4] ? "Open" : ""));
5015
5022
  },
5016
5023
  m(P, q) {
5017
- Ee(P, t, q), M(t, r), M(t, i), M(t, o), M(o, s), M(s, a), M(a, l), M(l, f), M(s, b), M(s, d);
5024
+ ve(P, t, q), M(t, r), M(t, i), M(t, o), M(o, s), M(s, a), M(a, l), M(l, f), M(s, b), M(s, p);
5018
5025
  for (let z = 0; z < X.length; z += 1)
5019
- X[z] && X[z].m(d, null);
5020
- M(s, _), M(s, x), M(x, A), M(A, ne), M(x, oe), F && F.m(x, null), ie || (K = [
5021
- it(
5026
+ X[z] && X[z].m(p, null);
5027
+ M(s, y), M(s, E), M(E, B), M(B, ne), M(E, oe), F && F.m(E, null), ie || (K = [
5028
+ ot(
5022
5029
  r,
5023
5030
  "click",
5024
5031
  /*click_handler_1*/
5025
5032
  e[32]
5026
5033
  ),
5027
- it(
5028
- A,
5034
+ ot(
5035
+ B,
5029
5036
  "click",
5030
5037
  /*click_handler_2*/
5031
5038
  e[33]
@@ -5036,26 +5043,26 @@ function Fr(e) {
5036
5043
  if (q[0] & /*isModalDisplayed*/
5037
5044
  16 && n !== (n = "BalanceModalClose " + /*isModalDisplayed*/
5038
5045
  (P[4] ? "Open" : "")) && L(r, "class", n), q[0] & /*$_*/
5039
- 128 && u !== (u = /*$_*/
5040
- P[7]("Title") + "") && Ie(f, u), q[0] & /*balances, formatBalance, getProductType, $_*/
5041
- 2692) {
5042
- te = vt(Object.keys(
5046
+ 256 && u !== (u = /*$_*/
5047
+ P[8]("Title") + "") && Ne(f, u), q[0] & /*balances, formatBalance, getProductType, $_*/
5048
+ 5380) {
5049
+ te = yt(Object.keys(
5043
5050
  /*balances*/
5044
5051
  P[2]
5045
5052
  ));
5046
5053
  let z;
5047
5054
  for (z = 0; z < te.length; z += 1) {
5048
5055
  const fe = Dr(P, te, z);
5049
- X[z] ? X[z].p(fe, q) : (X[z] = kr(fe), X[z].c(), X[z].m(d, null));
5056
+ X[z] ? X[z].p(fe, q) : (X[z] = kr(fe), X[z].c(), X[z].m(p, null));
5050
5057
  }
5051
5058
  for (; z < X.length; z += 1)
5052
5059
  X[z].d(1);
5053
5060
  X.length = te.length;
5054
5061
  }
5055
5062
  q[0] & /*$_*/
5056
- 128 && Q !== (Q = /*$_*/
5057
- P[7]("DepositButton") + "") && Ie(ne, Q), /*balancelimitsbutton*/
5058
- P[0] === "true" ? F ? F.p(P, q) : (F = jr(P), F.c(), F.m(x, null)) : F && (F.d(1), F = null), q[0] & /*isModalDisplayed*/
5063
+ 256 && Q !== (Q = /*$_*/
5064
+ P[8]("DepositButton") + "") && Ne(ne, Q), /*balancelimitsbutton*/
5065
+ P[0] === "true" ? F ? F.p(P, q) : (F = jr(P), F.c(), F.m(E, null)) : F && (F.d(1), F = null), q[0] & /*isModalDisplayed*/
5059
5066
  16 && I !== (I = "ModalContent " + /*isModalDisplayed*/
5060
5067
  (P[4] ? "Open" : "")) && L(s, "class", I), q[0] & /*isModalDisplayed*/
5061
5068
  16 && j !== (j = "BalanceModal " + /*isModalDisplayed*/
@@ -5064,62 +5071,62 @@ function Fr(e) {
5064
5071
  (P[4] ? "Open" : "")) && L(t, "class", Z);
5065
5072
  },
5066
5073
  d(P) {
5067
- P && ve(t), Wr(X, P), F && F.d(), ie = !1, We(K);
5074
+ P && ye(t), Wr(X, P), F && F.d(), ie = !1, qe(K);
5068
5075
  }
5069
5076
  };
5070
5077
  }
5071
5078
  function Gr(e) {
5072
5079
  let t, r, n = (
5073
5080
  /*$_*/
5074
- e[7](
5081
+ e[8](
5075
5082
  /*k*/
5076
5083
  e[60]
5077
5084
  ) + ""
5078
5085
  ), i, o, s = (
5079
5086
  /*getProductType*/
5080
- e[11](
5087
+ e[12](
5081
5088
  /*balance*/
5082
5089
  e[63]
5083
5090
  ) + ""
5084
5091
  ), a, l, u, f, b = (
5085
5092
  /*formatBalance*/
5086
- e[9](
5093
+ e[10](
5087
5094
  /*balance*/
5088
5095
  e[63].amount
5089
5096
  ) + ""
5090
- ), d;
5097
+ ), p;
5091
5098
  return {
5092
5099
  c() {
5093
- t = V("div"), r = V("p"), i = Oe(n), o = Be(), a = Oe(s), l = Be(), u = V("p"), f = V("span"), d = Oe(b), L(r, "class", "BalanceModalText"), L(f, "class", "BalanceModalAmount"), L(u, "class", "BalanceModalValue"), L(t, "class", "BalanceModalRowLine");
5100
+ t = V("div"), r = V("p"), i = Ae(n), o = Te(), a = Ae(s), l = Te(), u = V("p"), f = V("span"), p = Ae(b), L(r, "class", "BalanceModalText"), L(f, "class", "BalanceModalAmount"), L(u, "class", "BalanceModalValue"), L(t, "class", "BalanceModalRowLine");
5094
5101
  },
5095
- m(_, x) {
5096
- Ee(_, t, x), M(t, r), M(r, i), M(r, o), M(r, a), M(t, l), M(t, u), M(u, f), M(f, d);
5102
+ m(y, E) {
5103
+ ve(y, t, E), M(t, r), M(r, i), M(r, o), M(r, a), M(t, l), M(t, u), M(u, f), M(f, p);
5097
5104
  },
5098
- p(_, x) {
5099
- x[0] & /*$_, balances*/
5100
- 132 && n !== (n = /*$_*/
5101
- _[7](
5105
+ p(y, E) {
5106
+ E[0] & /*$_, balances*/
5107
+ 260 && n !== (n = /*$_*/
5108
+ y[8](
5102
5109
  /*k*/
5103
- _[60]
5104
- ) + "") && Ie(i, n), x[0] & /*balances*/
5110
+ y[60]
5111
+ ) + "") && Ne(i, n), E[0] & /*balances*/
5105
5112
  4 && s !== (s = /*getProductType*/
5106
- _[11](
5113
+ y[12](
5107
5114
  /*balance*/
5108
- _[63]
5109
- ) + "") && Ie(a, s), x[0] & /*balances*/
5115
+ y[63]
5116
+ ) + "") && Ne(a, s), E[0] & /*balances*/
5110
5117
  4 && b !== (b = /*formatBalance*/
5111
- _[9](
5118
+ y[10](
5112
5119
  /*balance*/
5113
- _[63].amount
5114
- ) + "") && Ie(d, b);
5120
+ y[63].amount
5121
+ ) + "") && Ne(p, b);
5115
5122
  },
5116
- d(_) {
5117
- _ && ve(t);
5123
+ d(y) {
5124
+ y && ye(t);
5118
5125
  }
5119
5126
  };
5120
5127
  }
5121
5128
  function kr(e) {
5122
- let t, r, n = vt(
5129
+ let t, r, n = yt(
5123
5130
  /*balances*/
5124
5131
  e[2][
5125
5132
  /*k*/
@@ -5133,18 +5140,18 @@ function kr(e) {
5133
5140
  t = V("div");
5134
5141
  for (let o = 0; o < i.length; o += 1)
5135
5142
  i[o].c();
5136
- r = Be(), L(t, "class", "BalanceModalRowBoth");
5143
+ r = Te(), L(t, "class", "BalanceModalRowBoth");
5137
5144
  },
5138
5145
  m(o, s) {
5139
- Ee(o, t, s);
5146
+ ve(o, t, s);
5140
5147
  for (let a = 0; a < i.length; a += 1)
5141
5148
  i[a] && i[a].m(t, null);
5142
5149
  M(t, r);
5143
5150
  },
5144
5151
  p(o, s) {
5145
5152
  if (s[0] & /*formatBalance, balances, getProductType, $_*/
5146
- 2692) {
5147
- n = vt(
5153
+ 5380) {
5154
+ n = yt(
5148
5155
  /*balances*/
5149
5156
  o[2][
5150
5157
  /*k*/
@@ -5162,21 +5169,21 @@ function kr(e) {
5162
5169
  }
5163
5170
  },
5164
5171
  d(o) {
5165
- o && ve(t), Wr(i, o);
5172
+ o && ye(t), Wr(i, o);
5166
5173
  }
5167
5174
  };
5168
5175
  }
5169
5176
  function jr(e) {
5170
5177
  let t, r = (
5171
5178
  /*$_*/
5172
- e[7]("LimitsButton") + ""
5179
+ e[8]("LimitsButton") + ""
5173
5180
  ), n, i, o;
5174
5181
  return {
5175
5182
  c() {
5176
- t = V("button"), n = Oe(r), L(t, "class", "BalanceModalAction LimitsButton");
5183
+ t = V("button"), n = Ae(r), L(t, "class", "BalanceModalAction LimitsButton");
5177
5184
  },
5178
5185
  m(s, a) {
5179
- Ee(s, t, a), M(t, n), i || (o = it(
5186
+ ve(s, t, a), M(t, n), i || (o = ot(
5180
5187
  t,
5181
5188
  "click",
5182
5189
  /*click_handler_3*/
@@ -5185,11 +5192,11 @@ function jr(e) {
5185
5192
  },
5186
5193
  p(s, a) {
5187
5194
  a[0] & /*$_*/
5188
- 128 && r !== (r = /*$_*/
5189
- s[7]("LimitsButton") + "") && Ie(n, r);
5195
+ 256 && r !== (r = /*$_*/
5196
+ s[8]("LimitsButton") + "") && Ne(n, r);
5190
5197
  },
5191
5198
  d(s) {
5192
- s && ve(t), i = !1, o();
5199
+ s && ye(t), i = !1, o();
5193
5200
  }
5194
5201
  };
5195
5202
  }
@@ -5200,16 +5207,16 @@ function $r(e) {
5200
5207
  t = V("button"), L(t, "class", "ShowBalanceModalOverlay");
5201
5208
  },
5202
5209
  m(i, o) {
5203
- Ee(i, t, o), r || (n = it(
5210
+ ve(i, t, o), r || (n = ot(
5204
5211
  t,
5205
5212
  "click",
5206
5213
  /*click_handler_4*/
5207
5214
  e[35]
5208
5215
  ), r = !0);
5209
5216
  },
5210
- p: ye,
5217
+ p: ge,
5211
5218
  d(i) {
5212
- i && ve(t), r = !1, n();
5219
+ i && ye(t), r = !1, n();
5213
5220
  }
5214
5221
  };
5215
5222
  }
@@ -5227,11 +5234,11 @@ function ca(e) {
5227
5234
  );
5228
5235
  return {
5229
5236
  c() {
5230
- t = V("div"), r = V("div"), a.c(), i = Be(), l && l.c(), L(r, "class", n = "ShowBalance " + /*mobileView*/
5237
+ t = V("div"), r = V("div"), a.c(), i = Te(), l && l.c(), L(r, "class", n = "ShowBalance " + /*mobileView*/
5231
5238
  (e[6] ? "Mobile" : ""));
5232
5239
  },
5233
5240
  m(u, f) {
5234
- Ee(u, t, f), M(t, r), a.m(r, null), M(t, i), l && l.m(t, null), e[36](t);
5241
+ ve(u, t, f), M(t, r), a.m(r, null), M(t, i), l && l.m(t, null), e[36](t);
5235
5242
  },
5236
5243
  p(u, f) {
5237
5244
  s === (s = o(u)) && a ? a.p(u, f) : (a.d(1), a = s(u), a && (a.c(), a.m(r, null))), f[0] & /*mobileView*/
@@ -5239,22 +5246,22 @@ function ca(e) {
5239
5246
  (u[6] ? "Mobile" : "")) && L(r, "class", n), /*showBalance*/
5240
5247
  u[5] ? l ? l.p(u, f) : (l = $r(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
5241
5248
  },
5242
- i: ye,
5243
- o: ye,
5249
+ i: ge,
5250
+ o: ge,
5244
5251
  d(u) {
5245
- u && ve(t), a.d(), l && l.d(), e[36](null);
5252
+ u && ye(t), a.d(), l && l.d(), e[36](null);
5246
5253
  }
5247
5254
  };
5248
5255
  }
5249
5256
  function ha(e, t, r) {
5250
5257
  let n;
5251
- Hn(e, $o, (h) => r(7, n = h));
5252
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: d = "gm16" } = t, { displaybalanceoption: _ = "All" } = t, { totalcalculationmode: x = "totalCashAmount" } = t, { primarybalancemode: A } = t, { balancelimitsbutton: Q = "false" } = t, { hideproducttype: ne = "" } = t, { currencylocale: oe = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: j = "2" } = t, { minimumfractiondigits: Z = "0" } = t, { customdisplayformat: ie = "" } = t, K, te = !0, X = !1, F = !1, P = !1, q = !1, z = window.navigator.userAgent, fe, Te = "", be = [], ce;
5253
- const v = {}, _e = ["totalCashAmount", "totalRealAmount"], Qe = () => {
5254
- fetch(b).then((h) => h.json()).then((h) => Object.keys(h).forEach((p) => Cr(p, h[p]))).catch((h) => console.log(h));
5258
+ Hn(e, $o, (h) => r(8, n = h));
5259
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: p = "gm16" } = t, { displaybalanceoption: y = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { primarybalancemode: B } = t, { balancelimitsbutton: Q = "false" } = t, { hideproducttype: ne = "" } = t, { currencylocale: oe = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: j = "2" } = t, { minimumfractiondigits: Z = "0" } = t, { customdisplayformat: ie = "" } = t, K, te = !0, X = !1, F = !1, P = !1, q = !1, z = window.navigator.userAgent, fe, Ce = "", me = [], le, He = "0";
5260
+ const _ = {}, Oe = ["totalCashAmount", "totalRealAmount"], _e = () => {
5261
+ fetch(b).then((h) => h.json()).then((h) => Object.keys(h).forEach((d) => Cr(d, h[d]))).catch((h) => console.log(h));
5255
5262
  };
5256
5263
  Object.keys(Hr).forEach((h) => Cr(h, Hr[h]));
5257
- const ae = (h) => {
5264
+ const Ee = (h) => {
5258
5265
  switch (h) {
5259
5266
  case "balance":
5260
5267
  window.postMessage(
@@ -5280,107 +5287,107 @@ function ha(e, t, r) {
5280
5287
  );
5281
5288
  break;
5282
5289
  }
5283
- }, Me = (h) => {
5290
+ }, Ue = (h) => {
5284
5291
  if (ie)
5285
- return ct(h);
5286
- const p = oe || a, y = {
5292
+ return Ct(h);
5293
+ const d = oe || a, v = {
5287
5294
  style: "currency",
5288
- currency: Te,
5295
+ currency: Ce,
5289
5296
  useGrouping: !0,
5290
5297
  currencyDisplay: I || "code",
5291
5298
  maximumFractionDigits: j === "" || isNaN(Number(j)) ? 2 : Number(j),
5292
5299
  minimumFractionDigits: Z === "" || isNaN(Number(Z)) ? 0 : Number(Z)
5293
5300
  };
5294
- return new Intl.NumberFormat(p, y).format(h);
5295
- }, ct = (h) => {
5296
- const p = [];
5297
- let y = "";
5301
+ return new Intl.NumberFormat(d, v).format(h);
5302
+ }, Ct = (h) => {
5303
+ const d = [];
5304
+ let v = "";
5298
5305
  for (const S of ie)
5299
5306
  switch (S) {
5300
5307
  default:
5301
- y += S;
5308
+ v += S;
5302
5309
  break;
5303
5310
  case "{":
5304
- y && p.push(y), y = "";
5311
+ v && d.push(v), v = "";
5305
5312
  break;
5306
5313
  case "}":
5307
- const [U, N] = y.split("|");
5308
- if (y = "", U.toLowerCase() === "currency")
5309
- y = Te;
5314
+ const [U, N] = v.split("|");
5315
+ if (v = "", U.toLowerCase() === "currency")
5316
+ v = Ce;
5310
5317
  else if (U.toLowerCase() === "amount") {
5311
- let B = ",", k = ".", he = 2;
5312
- N && (N[0] !== " " && (B = N[0]), N[1] !== " " && (k = N[1]), N[2] !== " " && !isNaN(Number(N[2])) && (he = Number(N[2])));
5313
- let [xe, ge] = String(Math.floor(h * 10 ** he) / 10 ** he).split(".");
5314
- y += xe[0];
5315
- for (let we = 1; we < xe.length; ++we)
5316
- (xe.length - we) % 3 === 0 ? y += B + xe[we] : y += xe[we];
5317
- ge && (y += k + ge);
5318
+ let T = ",", k = ".", he = 2;
5319
+ N && (N[0] !== " " && (T = N[0]), N[1] !== " " && (k = N[1]), N[2] !== " " && !isNaN(Number(N[2])) && (he = Number(N[2])));
5320
+ let [we, be] = String(Math.floor(h * 10 ** he) / 10 ** he).split(".");
5321
+ v += we[0];
5322
+ for (let Se = 1; Se < we.length; ++Se)
5323
+ (we.length - Se) % 3 === 0 ? v += T + we[Se] : v += we[Se];
5324
+ be && (v += k + be);
5318
5325
  }
5319
- y && p.push(y), y = "";
5326
+ v && d.push(v), v = "";
5320
5327
  break;
5321
5328
  }
5322
- return p.push(y), p.join("");
5329
+ return d.push(v), d.join("");
5323
5330
  }, Ht = async () => {
5324
5331
  r(3, te = !0);
5325
5332
  const h = new URL(`${s}/v1/player/${i}/account`);
5326
5333
  try {
5327
- const p = await fetch(h, {
5334
+ const d = await fetch(h, {
5328
5335
  method: "GET",
5329
5336
  headers: { "X-SessionID": o }
5330
- }), y = await p.json();
5331
- if (p.ok)
5332
- window.postMessage({ type: "BalancedFetched" }, window.location.href), be = y.items, Te = be.find((S) => S.displayName === "Casino")?.currency, r(2, v.Total = [{ amount: y.totalAmount[Te] }], v), r(
5337
+ }), v = await d.json();
5338
+ if (d.ok)
5339
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), me = v.items, Ce = me.find((S) => S.displayName === "Casino")?.currency, r(2, _.Total = [{ amount: v.totalAmount[Ce] }], _), r(
5333
5340
  2,
5334
- v.Real = [
5341
+ _.Real = [
5335
5342
  {
5336
- amount: be.find((S) => S.displayName === "Casino")?.balanceAmount
5343
+ amount: me.find((S) => S.displayName === "Casino")?.balanceAmount
5337
5344
  }
5338
5345
  ],
5339
- v
5346
+ _
5340
5347
  ), r(
5341
5348
  2,
5342
- v.Bonus = [
5349
+ _.Bonus = [
5343
5350
  {
5344
- amount: be.find((S) => S.displayName === "UBS")?.balanceAmount
5351
+ amount: me.find((S) => S.displayName === "UBS")?.balanceAmount
5345
5352
  }
5346
5353
  ],
5347
- v
5354
+ _
5348
5355
  );
5349
5356
  else
5350
5357
  throw new Error("Failed to fetch balance data !");
5351
- } catch (p) {
5352
- console.log("Balance error: ", p);
5358
+ } catch (d) {
5359
+ console.log("Balance error: ", d);
5353
5360
  } finally {
5354
5361
  r(3, te = !1);
5355
5362
  }
5356
5363
  }, Ot = () => {
5357
5364
  r(3, te = !0);
5358
- const h = new URL(`${s}/v2/player/${i}/balance`), p = new Headers();
5359
- p.append("X-SessionID", o), fetch(h, { method: "GET", headers: p }).then((S) => S.json()).then((S) => {
5360
- S[x] || r(13, x = _e[0]);
5361
- const U = S.items.find((B) => B.type === "Real" && B.walletAccountType === "Ordinary");
5362
- if (Te = U.currency, F = !!U.productType, r(2, v.Total = [{ amount: 0 }], v), r(2, v.Real = [], v), r(2, v.Bonus = [], v), r(2, v.Credit = [], v), !F) {
5363
- ce = {
5365
+ const h = new URL(`${s}/v2/player/${i}/balance`), d = new Headers();
5366
+ d.append("X-SessionID", o), fetch(h, { method: "GET", headers: d }).then((S) => S.json()).then((S) => {
5367
+ S[E] || r(13, E = Oe[0]);
5368
+ const U = S.items.find((T) => T.type === "Real" && T.walletAccountType === "Ordinary");
5369
+ if (Ce = U.currency, F = !!U.productType, r(2, _.Total = [{ amount: 0 }], _), r(2, _.Real = [], _), r(2, _.Bonus = [], _), r(2, _.Credit = [], _), !F) {
5370
+ le = {
5364
5371
  lastOrdinaryAfterAmount: 0,
5365
5372
  showCreditLineAfterAmount: !1
5366
- }, r(2, v.Total[0].amount = S[x][Te], v);
5367
- for (const B of S.items)
5368
- switch (B.type) {
5373
+ }, r(2, _.Total[0].amount = S[E][Ce], _);
5374
+ for (const T of S.items)
5375
+ switch (T.type) {
5369
5376
  case "Bonus":
5370
- v.Bonus.length === 0 ? v.Bonus.push({ amount: B.amount }) : r(2, v.Bonus[0].amount += B.amount, v);
5377
+ _.Bonus.length === 0 ? _.Bonus.push({ amount: T.amount }) : r(2, _.Bonus[0].amount += T.amount, _);
5371
5378
  break;
5372
5379
  case "Real":
5373
- if (B.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: B.creditLine }), x === "totalRealAmount")
5380
+ if (T.creditLine && _.Credit.length === 0 && _.Credit.push({ amount: T.creditLine }), E === "totalRealAmount")
5374
5381
  continue;
5375
- v.Real.length === 0 ? v.Real.push({ amount: B.amount }) : r(2, v.Real[0].amount += B.amount, v);
5382
+ _.Real.length === 0 ? _.Real.push({ amount: T.amount }) : r(2, _.Real[0].amount += T.amount, _);
5376
5383
  break;
5377
5384
  }
5378
- for (const [B, k] of Object.entries(v))
5379
- k.length < 1 && delete v[B];
5385
+ for (const [T, k] of Object.entries(_))
5386
+ k.length < 1 && delete _[T];
5380
5387
  r(3, te = !1);
5381
5388
  return;
5382
5389
  }
5383
- ce = {
5390
+ le = {
5384
5391
  Casino: {
5385
5392
  lastOrdinaryAfterAmount: 0,
5386
5393
  showCreditLineAfterAmount: !1
@@ -5391,123 +5398,123 @@ function ha(e, t, r) {
5391
5398
  }
5392
5399
  };
5393
5400
  let N = S.items;
5394
- _ && _ !== "All" && (N = S.items.filter((B) => B.productType === _));
5395
- for (const B of N) {
5401
+ y && y !== "All" && (N = S.items.filter((T) => T.productType === y));
5402
+ for (const T of N) {
5396
5403
  let k;
5397
- switch (B.type) {
5404
+ switch (T.type) {
5398
5405
  case "Bonus":
5399
- k = v.Bonus.findIndex((he) => he.productType === B.productType), k > 0 ? r(2, v.Bonus[k].amount += B.amount, v) : v.Bonus.push({
5400
- amount: B.amount,
5401
- productType: B.productType
5406
+ k = _.Bonus.findIndex((he) => he.productType === T.productType), k > 0 ? r(2, _.Bonus[k].amount += T.amount, _) : _.Bonus.push({
5407
+ amount: T.amount,
5408
+ productType: T.productType
5402
5409
  });
5403
5410
  break;
5404
5411
  case "Real":
5405
- B.creditLine && v.Credit.push({
5406
- amount: B.creditLine,
5407
- productType: B.productType
5408
- }), k = v.Real.findIndex((he) => he.productType === B.productType), k > 0 ? r(2, v.Real[k].amount += B.amount, v) : v.Real.push({
5409
- amount: B.amount,
5410
- productType: B.productType
5412
+ T.creditLine && _.Credit.push({
5413
+ amount: T.creditLine,
5414
+ productType: T.productType
5415
+ }), k = _.Real.findIndex((he) => he.productType === T.productType), k > 0 ? r(2, _.Real[k].amount += T.amount, _) : _.Real.push({
5416
+ amount: T.amount,
5417
+ productType: T.productType
5411
5418
  });
5412
5419
  break;
5413
5420
  }
5414
5421
  }
5415
- Ae();
5416
- for (const [B, k] of Object.entries(v))
5417
- k.length < 1 && delete v[B];
5422
+ ce();
5423
+ for (const [T, k] of Object.entries(_))
5424
+ k.length < 1 && delete _[T];
5418
5425
  window.postMessage({ type: "playerBalanceInfo", balance: S }, window.location.href), r(3, te = !1);
5419
5426
  }).catch((S) => {
5420
5427
  throw r(3, te = !1), console.log("Balance fetch error", S), new Error("Failed to fetch balance data!");
5421
5428
  });
5422
- }, Je = () => {
5429
+ }, Ke = () => {
5423
5430
  if (fe && fe.close(), o.length < 1)
5424
5431
  return;
5425
- let h, p;
5426
- switch (d) {
5432
+ let h, d;
5433
+ switch (p) {
5427
5434
  case "gm16":
5428
- h = new URL(`${s}/v2/player/${i}/information/updates`), p = (U) => de(U);
5435
+ h = new URL(`${s}/v2/player/${i}/information/updates`), d = (U) => Lt(U);
5429
5436
  break;
5430
5437
  case "gmcore":
5431
- h = new URL(`${s}/v1/player/${i}/balance/updates`), p = (U) => Ke(U);
5438
+ h = new URL(`${s}/v1/player/${i}/balance/updates`), d = (U) => et(U);
5432
5439
  break;
5433
5440
  }
5434
- const y = {
5441
+ const v = {
5435
5442
  accept: "text/event-stream",
5436
5443
  "X-SessionId": o
5437
- }, S = new Xo.EventSourcePolyfill(h, { headers: y });
5438
- fe = S, S.addEventListener("message", p);
5439
- }, ht = (h) => {
5440
- let p;
5444
+ }, S = new Xo.EventSourcePolyfill(h, { headers: v });
5445
+ fe = S, S.addEventListener("message", d);
5446
+ }, Fe = (h) => {
5447
+ let d;
5441
5448
  try {
5442
- p = JSON.parse(h);
5443
- } catch (y) {
5444
- console.log("Balance stream failed: ", y);
5449
+ d = JSON.parse(h);
5450
+ } catch (v) {
5451
+ console.log("Balance stream failed: ", v);
5445
5452
  return;
5446
5453
  }
5447
- return p;
5448
- }, Ke = (h) => {
5449
- const p = ht(h.data);
5450
- if (!p) {
5451
- Je();
5454
+ return d;
5455
+ }, et = (h) => {
5456
+ const d = Fe(h.data);
5457
+ if (!d) {
5458
+ Ke();
5452
5459
  return;
5453
5460
  }
5454
- let y = "0";
5455
- const S = p.balanceChange;
5456
- be = be.map((U) => (S && S[U.id] && (U = {
5461
+ let v = "0";
5462
+ const S = d.balanceChange;
5463
+ me = me.map((U) => (S && S[U.id] && (U = {
5457
5464
  ...U,
5458
5465
  balanceAmount: S[U.id].afterAmount
5459
- }), y = (parseFloat(U?.balanceAmount) + parseFloat(y)).toString(), U)), r(2, v.Real = [{ amount: be[0]?.balanceAmount }], v), r(2, v.Bonus = [{ amount: be[1]?.balanceAmount }], v), r(2, v.Total = [{ amount: Number(y) }], v);
5460
- }, Pe = (h, p, y) => {
5466
+ }), v = (parseFloat(U?.balanceAmount) + parseFloat(v)).toString(), U)), r(2, _.Real = [{ amount: me[0]?.balanceAmount }], _), r(2, _.Bonus = [{ amount: me[1]?.balanceAmount }], _), r(2, _.Total = [{ amount: Number(v) }], _);
5467
+ }, xe = (h, d, v) => {
5461
5468
  let S = null;
5462
- switch (y.walletAccountType) {
5469
+ switch (v.walletAccountType) {
5463
5470
  case "Ordinary":
5464
- (y.afterAmount !== y.affectedAmount || p.lastOrdinaryAfterAmount === 0) && (p.lastOrdinaryAfterAmount = y.afterAmount, p.showCreditLineAfterAmount || (S = y.afterAmount));
5471
+ (v.afterAmount !== v.affectedAmount || d.lastOrdinaryAfterAmount === 0) && (d.lastOrdinaryAfterAmount = v.afterAmount, d.showCreditLineAfterAmount || (S = v.afterAmount));
5465
5472
  break;
5466
5473
  case "CreditLine":
5467
- y.afterAmount !== 0 ? (S = y.afterAmount, p.showCreditLineAfterAmount = !0) : (S = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
5474
+ v.afterAmount !== 0 ? (S = v.afterAmount, d.showCreditLineAfterAmount = !0) : (S = d.lastOrdinaryAfterAmount, d.showCreditLineAfterAmount = !1);
5468
5475
  break;
5469
5476
  default:
5470
- S = y.afterAmount;
5477
+ S = v.afterAmount;
5471
5478
  }
5472
5479
  return S === null ? h : S;
5473
- }, Ae = () => {
5474
- switch (x) {
5480
+ }, ce = () => {
5481
+ switch (E) {
5475
5482
  case "totalCashAmount":
5476
5483
  let h = 0;
5477
- for (const y of ["Real", "Bonus"])
5478
- for (const S of v[y])
5484
+ for (const v of ["Real", "Bonus"])
5485
+ for (const S of _[v])
5479
5486
  h += Math.max(S.amount, 0);
5480
- r(2, v.Total[0].amount = h, v);
5487
+ r(2, _.Total[0].amount = h, _);
5481
5488
  break;
5482
5489
  case "totalRealAmount":
5483
5490
  if (!F)
5484
5491
  return;
5485
- let p = 0;
5486
- for (const y of v.Real)
5487
- p += y.amount;
5488
- r(2, v.Total[0].amount = p, v);
5492
+ let d = 0;
5493
+ for (const v of _.Real)
5494
+ d += v.amount;
5495
+ r(2, _.Total[0].amount = d, _);
5489
5496
  }
5490
- }, de = (h) => {
5491
- const p = ht(h.data);
5492
- if (!p) {
5493
- Je();
5497
+ }, Lt = (h) => {
5498
+ const d = Fe(h.data);
5499
+ if (!d) {
5500
+ Ke();
5494
5501
  return;
5495
5502
  }
5496
- if (Lt(p?.type) || p.type !== "BALANCE_UPDATE_V2")
5503
+ if (Rt(d?.type) || d.type !== "BALANCE_UPDATE_V2")
5497
5504
  return;
5498
- const y = p.body.balanceChange;
5499
- for (const [S, U] of Object.entries(y))
5500
- if (x === "totalRealAmount" && S === "Real" && !F && r(2, v.Total[0].amount = Pe(v.Total[0].amount, ce, U), v), !!v[S])
5501
- for (const N of v[S]) {
5505
+ const v = d.body.balanceChange;
5506
+ for (const [S, U] of Object.entries(v))
5507
+ if (E === "totalRealAmount" && S === "Real" && !F && r(2, _.Total[0].amount = xe(_.Total[0].amount, le, U), _), !!_[S])
5508
+ for (const N of _[S]) {
5502
5509
  if (!F) {
5503
- N.amount = S === "Real" ? Pe(N.amount, ce, U) : U.afterAmount;
5510
+ N.amount = S === "Real" ? xe(N.amount, le, U) : U.afterAmount;
5504
5511
  continue;
5505
5512
  }
5506
- U.productType === N.productType && (N.amount = S === "Real" ? Pe(N.amount, ce[N.productType], U) : U.afterAmount);
5513
+ U.productType === N.productType && (N.amount = S === "Real" ? xe(N.amount, le[N.productType], U) : U.afterAmount);
5507
5514
  }
5508
- Ae();
5509
- }, et = (h) => {
5510
- switch (ae("closebalance"), h) {
5515
+ ce();
5516
+ }, tt = (h) => {
5517
+ switch (Ee("closebalance"), h) {
5511
5518
  case "deposit":
5512
5519
  window.postMessage({ type: "GoToDeposit" }, window.location.href);
5513
5520
  break;
@@ -5516,10 +5523,10 @@ function ha(e, t, r) {
5516
5523
  break;
5517
5524
  }
5518
5525
  typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5519
- }, Lt = (h) => h === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Rt = () => {
5520
- _e.includes(x) || (console.error(`Unsupported value ('${x}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`), r(13, x = _e[0]));
5521
- }, ft = () => {
5522
- switch (Vo(a), Rt(), d) {
5526
+ }, Rt = (h) => h === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, ht = () => {
5527
+ Oe.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${Oe}. Using default value ('${Oe[0]}').`), r(13, E = Oe[0]));
5528
+ }, c = () => {
5529
+ switch (Vo(a), ht(), p) {
5523
5530
  case "gmcore":
5524
5531
  Ht();
5525
5532
  break;
@@ -5527,66 +5534,67 @@ function ha(e, t, r) {
5527
5534
  Ot();
5528
5535
  break;
5529
5536
  default:
5530
- throw Error(`Invalid apiversion attribute: ${d}`);
5537
+ throw Error(`Invalid apiversion attribute: ${p}`);
5531
5538
  }
5532
- }, c = (h) => {
5533
- const { data: { type: p } = {} } = h || {};
5534
- switch (p) {
5539
+ }, g = (h) => {
5540
+ const { data: { type: d } = {} } = h || {};
5541
+ switch (d) {
5535
5542
  case "LogoutSuccessfull":
5536
5543
  fe.close();
5537
5544
  break;
5538
5545
  case "CloseBalance":
5539
- ae("closebalance");
5546
+ Ee("closebalance");
5540
5547
  break;
5541
5548
  }
5542
- }, g = () => {
5549
+ }, x = () => {
5543
5550
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5544
- }, E = (h) => {
5545
- const p = ne.split(",").map((y) => y.trim());
5546
- return !h.productType || p.includes(h.productType) ? "" : n(h.productType);
5547
- }, m = () => {
5548
- switch (A) {
5549
- case "Real":
5550
- return v.Real ? Me(v.Real[0].amount) : "0";
5551
- default:
5552
- return v.Total ? Me(v.Total[0].amount) : "0";
5553
- }
5551
+ }, m = (h) => {
5552
+ const d = ne.split(",").map((v) => v.trim());
5553
+ return !h.productType || d.includes(h.productType) ? "" : n(h.productType);
5554
5554
  };
5555
- Dn(() => (window.addEventListener("message", c, !1), r(6, q = aa(z)), () => {
5556
- window.removeEventListener("message", c), fe && fe.close();
5555
+ Dn(() => (window.addEventListener("message", g, !1), r(6, q = aa(z)), () => {
5556
+ window.removeEventListener("message", g), fe && fe.close();
5557
5557
  }));
5558
- const T = () => ae("balance"), w = () => ae("closebalance"), C = () => et("deposit"), G = () => et("limits"), H = () => ae("closebalance");
5558
+ const A = () => Ee("balance"), w = () => Ee("closebalance"), C = () => tt("deposit"), G = () => tt("limits"), H = () => Ee("closebalance");
5559
5559
  function D(h) {
5560
5560
  $t[h ? "unshift" : "push"](() => {
5561
5561
  K = h, r(1, K);
5562
5562
  });
5563
5563
  }
5564
5564
  return e.$$set = (h) => {
5565
- "userid" in h && r(14, i = h.userid), "session" in h && r(15, o = h.session), "endpoint" in h && r(16, s = h.endpoint), "lang" in h && r(17, a = h.lang), "mbsource" in h && r(18, l = h.mbsource), "clientstyling" in h && r(19, u = h.clientstyling), "clientstylingurl" in h && r(20, f = h.clientstylingurl), "translationurl" in h && r(21, b = h.translationurl), "gmversion" in h && r(22, d = h.gmversion), "displaybalanceoption" in h && r(23, _ = h.displaybalanceoption), "totalcalculationmode" in h && r(13, x = h.totalcalculationmode), "primarybalancemode" in h && r(24, A = h.primarybalancemode), "balancelimitsbutton" in h && r(0, Q = h.balancelimitsbutton), "hideproducttype" in h && r(25, ne = h.hideproducttype), "currencylocale" in h && r(26, oe = h.currencylocale), "currencydisplay" in h && r(27, I = h.currencydisplay), "maximumfractiondigits" in h && r(28, j = h.maximumfractiondigits), "minimumfractiondigits" in h && r(29, Z = h.minimumfractiondigits), "customdisplayformat" in h && r(30, ie = h.customdisplayformat);
5565
+ "userid" in h && r(14, i = h.userid), "session" in h && r(15, o = h.session), "endpoint" in h && r(16, s = h.endpoint), "lang" in h && r(17, a = h.lang), "mbsource" in h && r(18, l = h.mbsource), "clientstyling" in h && r(19, u = h.clientstyling), "clientstylingurl" in h && r(20, f = h.clientstylingurl), "translationurl" in h && r(21, b = h.translationurl), "gmversion" in h && r(22, p = h.gmversion), "displaybalanceoption" in h && r(23, y = h.displaybalanceoption), "totalcalculationmode" in h && r(13, E = h.totalcalculationmode), "primarybalancemode" in h && r(24, B = h.primarybalancemode), "balancelimitsbutton" in h && r(0, Q = h.balancelimitsbutton), "hideproducttype" in h && r(25, ne = h.hideproducttype), "currencylocale" in h && r(26, oe = h.currencylocale), "currencydisplay" in h && r(27, I = h.currencydisplay), "maximumfractiondigits" in h && r(28, j = h.maximumfractiondigits), "minimumfractiondigits" in h && r(29, Z = h.minimumfractiondigits), "customdisplayformat" in h && r(30, ie = h.customdisplayformat);
5566
5566
  }, e.$$.update = () => {
5567
5567
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5568
- 12828672 && s && i && o && a && d && _ && ft(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5569
- 4308992 && s && i && o && d && Je(), e.$$.dirty[0] & /*translationurl*/
5570
- 2097152 && b && Qe(), e.$$.dirty[0] & /*balances*/
5571
- 4 && v.Total && g(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5568
+ 12828672 && s && i && o && a && p && y && c(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5569
+ 4308992 && s && i && o && p && Ke(), e.$$.dirty[0] & /*translationurl*/
5570
+ 2097152 && b && _e(), e.$$.dirty[0] & /*balances*/
5571
+ 4 && _.Total && x(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5572
5572
  524290 && u && K && Qn(K, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5573
5573
  1048578 && f && K && Jn(K, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5574
- 262146 && l && K && Kn(K, `${l}.Style`);
5574
+ 262146 && l && K && Kn(K, `${l}.Style`), e.$$.dirty[0] & /*primarybalancemode, balances*/
5575
+ 16777220 && r(7, He = (() => {
5576
+ switch (B) {
5577
+ case "Real":
5578
+ return _.Real ? Ue(_.Real[0].amount) : "0";
5579
+ default:
5580
+ return _.Total ? Ue(_.Total[0].amount) : "0";
5581
+ }
5582
+ })());
5575
5583
  }, [
5576
5584
  Q,
5577
5585
  K,
5578
- v,
5586
+ _,
5579
5587
  te,
5580
5588
  X,
5581
5589
  P,
5582
5590
  q,
5591
+ He,
5583
5592
  n,
5584
- ae,
5585
- Me,
5586
- et,
5587
- E,
5593
+ Ee,
5594
+ Ue,
5595
+ tt,
5588
5596
  m,
5589
- x,
5597
+ E,
5590
5598
  i,
5591
5599
  o,
5592
5600
  s,
@@ -5595,16 +5603,16 @@ function ha(e, t, r) {
5595
5603
  u,
5596
5604
  f,
5597
5605
  b,
5598
- d,
5599
- _,
5600
- A,
5606
+ p,
5607
+ y,
5608
+ B,
5601
5609
  ne,
5602
5610
  oe,
5603
5611
  I,
5604
5612
  j,
5605
5613
  Z,
5606
5614
  ie,
5607
- T,
5615
+ A,
5608
5616
  w,
5609
5617
  C,
5610
5618
  G,