@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.
@@ -10,7 +10,7 @@ var Dt = Math.pow, It = (e, t, n) => t in e ? Nr(e, t, { enumerable: !0, configu
10
10
  Fr.call(t, n) && It(e, n, t[n]);
11
11
  return e;
12
12
  }, Ft = (e, t) => Ir(e, Dr(t));
13
- var ye = (e, t, n) => (It(e, typeof t != "symbol" ? t + "" : t, n), n);
13
+ var ge = (e, t, n) => (It(e, typeof t != "symbol" ? t + "" : t, n), n);
14
14
  var Gt = (e, t, n) => new Promise((r, i) => {
15
15
  var o = (l) => {
16
16
  try {
@@ -27,7 +27,7 @@ var Gt = (e, t, n) => new Promise((r, i) => {
27
27
  }, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, a);
28
28
  s((n = n.apply(e, t)).next());
29
29
  });
30
- function ve() {
30
+ function ye() {
31
31
  }
32
32
  function Jn(e) {
33
33
  return e();
@@ -35,7 +35,7 @@ function Jn(e) {
35
35
  function _n() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function Ze(e) {
38
+ function Ye(e) {
39
39
  e.forEach(Jn);
40
40
  }
41
41
  function mn(e) {
@@ -51,7 +51,7 @@ function er(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const r of t)
53
53
  r(void 0);
54
- return ve;
54
+ return ye;
55
55
  }
56
56
  const n = e.subscribe(...t);
57
57
  return n.unsubscribe ? () => n.unsubscribe() : n;
@@ -86,10 +86,10 @@ function Vr(e, t) {
86
86
  t
87
87
  ), t.sheet;
88
88
  }
89
- function xe(e, t, n) {
89
+ function _e(e, t, n) {
90
90
  e.insertBefore(t, n || null);
91
91
  }
92
- function _e(e) {
92
+ function ve(e) {
93
93
  e.parentNode && e.parentNode.removeChild(e);
94
94
  }
95
95
  function tr(e, t) {
@@ -102,16 +102,16 @@ function V(e) {
102
102
  function En(e) {
103
103
  return document.createElementNS("http://www.w3.org/2000/svg", e);
104
104
  }
105
- function Le(e) {
105
+ function Ce(e) {
106
106
  return document.createTextNode(e);
107
107
  }
108
- function Te() {
109
- return Le(" ");
108
+ function Ae() {
109
+ return Ce(" ");
110
110
  }
111
111
  function Xr() {
112
- return Le("");
112
+ return Ce("");
113
113
  }
114
- function ot(e, t, n, r) {
114
+ function at(e, t, n, r) {
115
115
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
116
116
  }
117
117
  function R(e, t, n) {
@@ -120,7 +120,7 @@ function R(e, t, n) {
120
120
  function zr(e) {
121
121
  return Array.from(e.childNodes);
122
122
  }
123
- function De(e, t) {
123
+ function Ie(e, t) {
124
124
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
125
125
  t);
126
126
  }
@@ -133,96 +133,96 @@ function Wr(e) {
133
133
  }
134
134
  ), t;
135
135
  }
136
- let at;
137
- function it(e) {
138
- at = e;
136
+ let st;
137
+ function ot(e) {
138
+ st = e;
139
139
  }
140
140
  function Zr() {
141
- if (!at)
141
+ if (!st)
142
142
  throw new Error("Function called outside component initialization");
143
- return at;
143
+ return st;
144
144
  }
145
145
  function qr(e) {
146
146
  Zr().$$.on_mount.push(e);
147
147
  }
148
- const ke = [], qt = [];
149
- let $e = [];
148
+ const Ve = [], qt = [];
149
+ let Xe = [];
150
150
  const xn = [], Yr = /* @__PURE__ */ Promise.resolve();
151
151
  let Yt = !1;
152
152
  function Qr() {
153
153
  Yt || (Yt = !0, Yr.then(Y));
154
154
  }
155
155
  function Qt(e) {
156
- $e.push(e);
156
+ Xe.push(e);
157
157
  }
158
158
  const jt = /* @__PURE__ */ new Set();
159
- let Ge = 0;
159
+ let ke = 0;
160
160
  function Y() {
161
- if (Ge !== 0)
161
+ if (ke !== 0)
162
162
  return;
163
- const e = at;
163
+ const e = st;
164
164
  do {
165
165
  try {
166
- for (; Ge < ke.length; ) {
167
- const t = ke[Ge];
168
- Ge++, it(t), Jr(t.$$);
166
+ for (; ke < Ve.length; ) {
167
+ const t = Ve[ke];
168
+ ke++, ot(t), Jr(t.$$);
169
169
  }
170
170
  } catch (t) {
171
- throw ke.length = 0, Ge = 0, t;
171
+ throw Ve.length = 0, ke = 0, t;
172
172
  }
173
- for (it(null), ke.length = 0, Ge = 0; qt.length; )
173
+ for (ot(null), Ve.length = 0, ke = 0; qt.length; )
174
174
  qt.pop()();
175
- for (let t = 0; t < $e.length; t += 1) {
176
- const n = $e[t];
175
+ for (let t = 0; t < Xe.length; t += 1) {
176
+ const n = Xe[t];
177
177
  jt.has(n) || (jt.add(n), n());
178
178
  }
179
- $e.length = 0;
180
- } while (ke.length);
179
+ Xe.length = 0;
180
+ } while (Ve.length);
181
181
  for (; xn.length; )
182
182
  xn.pop()();
183
- Yt = !1, jt.clear(), it(e);
183
+ Yt = !1, jt.clear(), ot(e);
184
184
  }
185
185
  function Jr(e) {
186
186
  if (e.fragment !== null) {
187
- e.update(), Ze(e.before_update);
187
+ e.update(), Ye(e.before_update);
188
188
  const t = e.dirty;
189
189
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Qt);
190
190
  }
191
191
  }
192
192
  function Kr(e) {
193
193
  const t = [], n = [];
194
- $e.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), $e = t;
194
+ Xe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Xe = t;
195
195
  }
196
196
  const ei = /* @__PURE__ */ new Set();
197
197
  function ti(e, t) {
198
198
  e && e.i && (ei.delete(e), e.i(t));
199
199
  }
200
- function _t(e) {
200
+ function vt(e) {
201
201
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
202
202
  }
203
203
  function ni(e, t, n) {
204
204
  const { fragment: r, after_update: i } = e.$$;
205
205
  r && r.m(t, n), Qt(() => {
206
206
  const o = e.$$.on_mount.map(Jn).filter(mn);
207
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ze(o), e.$$.on_mount = [];
207
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ye(o), e.$$.on_mount = [];
208
208
  }), i.forEach(Qt);
209
209
  }
210
210
  function ri(e, t) {
211
211
  const n = e.$$;
212
- n.fragment !== null && (Kr(n.after_update), Ze(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
212
+ n.fragment !== null && (Kr(n.after_update), Ye(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
213
213
  }
214
214
  function ii(e, t) {
215
- e.$$.dirty[0] === -1 && (ke.push(e), Qr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
215
+ e.$$.dirty[0] === -1 && (Ve.push(e), Qr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
216
216
  }
217
217
  function oi(e, t, n, r, i, o, a = null, s = [-1]) {
218
- const l = at;
219
- it(e);
218
+ const l = st;
219
+ ot(e);
220
220
  const u = e.$$ = {
221
221
  fragment: null,
222
222
  ctx: [],
223
223
  // state
224
224
  props: o,
225
- update: ve,
225
+ update: ye,
226
226
  not_equal: i,
227
227
  bound: _n(),
228
228
  // lifecycle
@@ -240,41 +240,41 @@ function oi(e, t, n, r, i, o, a = null, s = [-1]) {
240
240
  };
241
241
  a && a(u.root);
242
242
  let f = !1;
243
- if (u.ctx = n ? n(e, t.props || {}, (b, d, ..._) => {
244
- const w = _.length ? _[0] : d;
245
- return u.ctx && i(u.ctx[b], u.ctx[b] = w) && (!u.skip_bound && u.bound[b] && u.bound[b](w), f && ii(e, b)), d;
246
- }) : [], u.update(), f = !0, Ze(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
243
+ if (u.ctx = n ? n(e, t.props || {}, (b, p, ...y) => {
244
+ const E = y.length ? y[0] : p;
245
+ return u.ctx && i(u.ctx[b], u.ctx[b] = E) && (!u.skip_bound && u.bound[b] && u.bound[b](E), f && ii(e, b)), p;
246
+ }) : [], u.update(), f = !0, Ye(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
247
247
  if (t.hydrate) {
248
248
  const b = zr(t.target);
249
- u.fragment && u.fragment.l(b), b.forEach(_e);
249
+ u.fragment && u.fragment.l(b), b.forEach(ve);
250
250
  } else
251
251
  u.fragment && u.fragment.c();
252
252
  t.intro && ti(e.$$.fragment), ni(e, t.target, t.anchor), Y();
253
253
  }
254
- it(l);
254
+ ot(l);
255
255
  }
256
256
  let nr;
257
257
  typeof HTMLElement == "function" && (nr = class extends HTMLElement {
258
258
  constructor(t, n, r) {
259
259
  super();
260
260
  /** The Svelte component constructor */
261
- ye(this, "$$ctor");
261
+ ge(this, "$$ctor");
262
262
  /** Slots */
263
- ye(this, "$$s");
263
+ ge(this, "$$s");
264
264
  /** The Svelte component instance */
265
- ye(this, "$$c");
265
+ ge(this, "$$c");
266
266
  /** Whether or not the custom element is connected */
267
- ye(this, "$$cn", !1);
267
+ ge(this, "$$cn", !1);
268
268
  /** Component props data */
269
- ye(this, "$$d", {});
269
+ ge(this, "$$d", {});
270
270
  /** `true` if currently in the process of reflecting component props back to attributes */
271
- ye(this, "$$r", !1);
271
+ ge(this, "$$r", !1);
272
272
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
273
- ye(this, "$$p_d", {});
273
+ ge(this, "$$p_d", {});
274
274
  /** @type {Record<string, Function[]>} Event listeners */
275
- ye(this, "$$l", {});
275
+ ge(this, "$$l", {});
276
276
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
277
- ye(this, "$$l_u", /* @__PURE__ */ new Map());
277
+ ge(this, "$$l_u", /* @__PURE__ */ new Map());
278
278
  this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
279
279
  }
280
280
  addEventListener(t, n, r) {
@@ -305,10 +305,10 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
305
305
  * @param {HTMLElement} [anchor]
306
306
  */
307
307
  m: function(u, f) {
308
- xe(u, a, f);
308
+ _e(u, a, f);
309
309
  },
310
310
  d: function(u) {
311
- u && _e(a);
311
+ u && ve(a);
312
312
  }
313
313
  };
314
314
  };
@@ -320,7 +320,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
320
320
  o in r && (n[o] = [t(o)]);
321
321
  for (const o of this.attributes) {
322
322
  const a = this.$$g_p(o.name);
323
- a in this.$$d || (this.$$d[a] = bt(a, o.value, this.$$p_d, "toProp"));
323
+ a in this.$$d || (this.$$d[a] = mt(a, o.value, this.$$p_d, "toProp"));
324
324
  }
325
325
  for (const o in this.$$p_d)
326
326
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
@@ -337,7 +337,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
337
337
  this.$$r = !0;
338
338
  for (const o in this.$$p_d)
339
339
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
340
- const a = bt(
340
+ const a = mt(
341
341
  o,
342
342
  this.$$d[o],
343
343
  this.$$p_d,
@@ -361,7 +361,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
361
361
  // and setting attributes through setAttribute etc, this is helpful
362
362
  attributeChangedCallback(t, n, r) {
363
363
  var i;
364
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = bt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
364
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = mt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
365
365
  }
366
366
  disconnectedCallback() {
367
367
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -374,7 +374,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
374
374
  ) || t;
375
375
  }
376
376
  });
377
- function bt(e, t, n, r) {
377
+ function mt(e, t, n, r) {
378
378
  var o;
379
379
  const i = (o = n[e]) == null ? void 0 : o.type;
380
380
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -422,7 +422,7 @@ function ai(e, t, n, r, i, o) {
422
422
  },
423
423
  set(l) {
424
424
  var u;
425
- l = bt(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
425
+ l = mt(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
426
426
  }
427
427
  });
428
428
  }), r.forEach((s) => {
@@ -444,7 +444,7 @@ class si {
444
444
  *
445
445
  * @type {any}
446
446
  */
447
- ye(this, "$$");
447
+ ge(this, "$$");
448
448
  /**
449
449
  * ### PRIVATE API
450
450
  *
@@ -452,11 +452,11 @@ class si {
452
452
  *
453
453
  * @type {any}
454
454
  */
455
- ye(this, "$$set");
455
+ ge(this, "$$set");
456
456
  }
457
457
  /** @returns {void} */
458
458
  $destroy() {
459
- ri(this, 1), this.$destroy = ve;
459
+ ri(this, 1), this.$destroy = ye;
460
460
  }
461
461
  /**
462
462
  * @template {Extract<keyof Events, string>} K
@@ -466,7 +466,7 @@ class si {
466
466
  */
467
467
  $on(t, n) {
468
468
  if (!mn(n))
469
- return ve;
469
+ return ye;
470
470
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
471
471
  return r.push(n), () => {
472
472
  const i = r.indexOf(n);
@@ -506,39 +506,39 @@ function hi(e, t, n) {
506
506
  });
507
507
  }
508
508
  }
509
- const je = [];
509
+ const $e = [];
510
510
  function fi(e, t) {
511
511
  return {
512
- subscribe: St(e, t).subscribe
512
+ subscribe: wt(e, t).subscribe
513
513
  };
514
514
  }
515
- function St(e, t = ve) {
515
+ function wt(e, t = ye) {
516
516
  let n;
517
517
  const r = /* @__PURE__ */ new Set();
518
518
  function i(s) {
519
519
  if (Kn(e, s) && (e = s, n)) {
520
- const l = !je.length;
520
+ const l = !$e.length;
521
521
  for (const u of r)
522
- u[1](), je.push(u, e);
522
+ u[1](), $e.push(u, e);
523
523
  if (l) {
524
- for (let u = 0; u < je.length; u += 2)
525
- je[u][0](je[u + 1]);
526
- je.length = 0;
524
+ for (let u = 0; u < $e.length; u += 2)
525
+ $e[u][0]($e[u + 1]);
526
+ $e.length = 0;
527
527
  }
528
528
  }
529
529
  }
530
530
  function o(s) {
531
531
  i(s(e));
532
532
  }
533
- function a(s, l = ve) {
533
+ function a(s, l = ye) {
534
534
  const u = [s, l];
535
- return r.add(u), r.size === 1 && (n = t(i, o) || ve), s(e), () => {
535
+ return r.add(u), r.size === 1 && (n = t(i, o) || ye), s(e), () => {
536
536
  r.delete(u), r.size === 0 && n && (n(), n = null);
537
537
  };
538
538
  }
539
539
  return { set: i, update: o, subscribe: a };
540
540
  }
541
- function qe(e, t, n) {
541
+ function Qe(e, t, n) {
542
542
  const r = !Array.isArray(e), i = r ? [e] : e;
543
543
  if (!i.every(Boolean))
544
544
  throw new Error("derived() expects stores as input, got a falsy value");
@@ -546,26 +546,26 @@ function qe(e, t, n) {
546
546
  return fi(n, (a, s) => {
547
547
  let l = !1;
548
548
  const u = [];
549
- let f = 0, b = ve;
550
- const d = () => {
549
+ let f = 0, b = ye;
550
+ const p = () => {
551
551
  if (f)
552
552
  return;
553
553
  b();
554
- const w = t(r ? u[0] : u, a, s);
555
- o ? a(w) : b = mn(w) ? w : ve;
556
- }, _ = i.map(
557
- (w, A) => er(
558
- w,
554
+ const E = t(r ? u[0] : u, a, s);
555
+ o ? a(E) : b = mn(E) ? E : ye;
556
+ }, y = i.map(
557
+ (E, B) => er(
558
+ E,
559
559
  (Q) => {
560
- u[A] = Q, f &= ~(1 << A), l && d();
560
+ u[B] = Q, f &= ~(1 << B), l && p();
561
561
  },
562
562
  () => {
563
- f |= 1 << A;
563
+ f |= 1 << B;
564
564
  }
565
565
  )
566
566
  );
567
- return l = !0, d(), function() {
568
- Ze(_), b(), l = !1;
567
+ return l = !0, p(), function() {
568
+ Ye(y), b(), l = !1;
569
569
  };
570
570
  });
571
571
  }
@@ -590,19 +590,19 @@ function _i(e) {
590
590
  function Ei(e) {
591
591
  return Array.isArray(e) ? [] : {};
592
592
  }
593
- function st(e, t) {
594
- return t.clone !== !1 && t.isMergeableObject(e) ? Ve(Ei(e), e, t) : e;
593
+ function ut(e, t) {
594
+ return t.clone !== !1 && t.isMergeableObject(e) ? ze(Ei(e), e, t) : e;
595
595
  }
596
596
  function xi(e, t, n) {
597
597
  return e.concat(t).map(function(r) {
598
- return st(r, n);
598
+ return ut(r, n);
599
599
  });
600
600
  }
601
601
  function wi(e, t) {
602
602
  if (!t.customMerge)
603
- return Ve;
603
+ return ze;
604
604
  var n = t.customMerge(e);
605
- return typeof n == "function" ? n : Ve;
605
+ return typeof n == "function" ? n : ze;
606
606
  }
607
607
  function Si(e) {
608
608
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -625,24 +625,24 @@ function Bi(e, t) {
625
625
  function Ti(e, t, n) {
626
626
  var r = {};
627
627
  return n.isMergeableObject(e) && wn(e).forEach(function(i) {
628
- r[i] = st(e[i], n);
628
+ r[i] = ut(e[i], n);
629
629
  }), wn(t).forEach(function(i) {
630
- Bi(e, i) || (rr(e, i) && n.isMergeableObject(t[i]) ? r[i] = wi(i, n)(e[i], t[i], n) : r[i] = st(t[i], n));
630
+ Bi(e, i) || (rr(e, i) && n.isMergeableObject(t[i]) ? r[i] = wi(i, n)(e[i], t[i], n) : r[i] = ut(t[i], n));
631
631
  }), r;
632
632
  }
633
- function Ve(e, t, n) {
634
- n = n || {}, n.arrayMerge = n.arrayMerge || xi, n.isMergeableObject = n.isMergeableObject || mi, n.cloneUnlessOtherwiseSpecified = st;
633
+ function ze(e, t, n) {
634
+ n = n || {}, n.arrayMerge = n.arrayMerge || xi, n.isMergeableObject = n.isMergeableObject || mi, n.cloneUnlessOtherwiseSpecified = ut;
635
635
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
636
- return o ? r ? n.arrayMerge(e, t, n) : Ti(e, t, n) : st(t, n);
636
+ return o ? r ? n.arrayMerge(e, t, n) : Ti(e, t, n) : ut(t, n);
637
637
  }
638
- Ve.all = function(t, n) {
638
+ ze.all = function(t, n) {
639
639
  if (!Array.isArray(t))
640
640
  throw new Error("first argument should be an array");
641
641
  return t.reduce(function(r, i) {
642
- return Ve(r, i, n);
642
+ return ze(r, i, n);
643
643
  }, {});
644
644
  };
645
- var Ai = Ve, Ci = Ai;
645
+ var Ai = ze, Ci = Ai;
646
646
  const Hi = /* @__PURE__ */ pi(Ci);
647
647
  var Jt = function(e, t) {
648
648
  return Jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
@@ -652,7 +652,7 @@ var Jt = function(e, t) {
652
652
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
653
653
  }, Jt(e, t);
654
654
  };
655
- function Bt(e, t) {
655
+ function St(e, t) {
656
656
  if (typeof t != "function" && t !== null)
657
657
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
658
658
  Jt(e, t);
@@ -661,15 +661,15 @@ function Bt(e, t) {
661
661
  }
662
662
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
663
663
  }
664
- var Be = function() {
665
- return Be = Object.assign || function(t) {
664
+ var Te = function() {
665
+ return Te = Object.assign || function(t) {
666
666
  for (var n, r = 1, i = arguments.length; r < i; r++) {
667
667
  n = arguments[r];
668
668
  for (var o in n)
669
669
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
670
670
  }
671
671
  return t;
672
- }, Be.apply(this, arguments);
672
+ }, Te.apply(this, arguments);
673
673
  };
674
674
  function Oi(e, t) {
675
675
  var n = {};
@@ -734,15 +734,15 @@ var Ni = function() {
734
734
  }
735
735
  }, Vt = {
736
736
  variadic: Pi
737
- }, Et = function() {
738
- return Et = Object.assign || function(t) {
737
+ }, _t = function() {
738
+ return _t = Object.assign || function(t) {
739
739
  for (var n, r = 1, i = arguments.length; r < i; r++) {
740
740
  n = arguments[r];
741
741
  for (var o in n)
742
742
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
743
743
  }
744
744
  return t;
745
- }, Et.apply(this, arguments);
745
+ }, _t.apply(this, arguments);
746
746
  };
747
747
  var L;
748
748
  (function(e) {
@@ -752,10 +752,10 @@ var $;
752
752
  (function(e) {
753
753
  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";
754
754
  })($ || ($ = {}));
755
- var Xe;
755
+ var We;
756
756
  (function(e) {
757
757
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
758
- })(Xe || (Xe = {}));
758
+ })(We || (We = {}));
759
759
  function Sn(e) {
760
760
  return e.type === $.literal;
761
761
  }
@@ -784,10 +784,10 @@ function hr(e) {
784
784
  return e.type === $.tag;
785
785
  }
786
786
  function fr(e) {
787
- return !!(e && typeof e == "object" && e.type === Xe.number);
787
+ return !!(e && typeof e == "object" && e.type === We.number);
788
788
  }
789
789
  function Kt(e) {
790
- return !!(e && typeof e == "object" && e.type === Xe.dateTime);
790
+ return !!(e && typeof e == "object" && e.type === We.dateTime);
791
791
  }
792
792
  var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gi = /(?:[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;
793
793
  function ji(e) {
@@ -895,8 +895,8 @@ var ki = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
895
895
  function $i(e) {
896
896
  if (e.length === 0)
897
897
  throw new Error("Number skeleton cannot be empty");
898
- for (var t = e.split(ki).filter(function(d) {
899
- return d.length > 0;
898
+ for (var t = e.split(ki).filter(function(p) {
899
+ return p.length > 0;
900
900
  }), n = [], r = 0, i = t; r < i.length; r++) {
901
901
  var o = i[r], a = o.split("/");
902
902
  if (a.length === 0)
@@ -1064,13 +1064,13 @@ function Wi(e) {
1064
1064
  case "integer-width":
1065
1065
  if (i.options.length > 1)
1066
1066
  throw new RangeError("integer-width stems only accept a single optional option");
1067
- i.options[0].replace(Xi, function(l, u, f, b, d, _) {
1067
+ i.options[0].replace(Xi, function(l, u, f, b, p, y) {
1068
1068
  if (u)
1069
1069
  t.minimumIntegerDigits = f.length;
1070
1070
  else {
1071
- if (b && d)
1071
+ if (b && p)
1072
1072
  throw new Error("We currently do not support maximum integer digits");
1073
- if (_)
1073
+ if (y)
1074
1074
  throw new Error("We currently do not support exact integer digits");
1075
1075
  }
1076
1076
  return "";
@@ -1084,8 +1084,8 @@ function Wi(e) {
1084
1084
  if (Bn.test(i.stem)) {
1085
1085
  if (i.options.length > 1)
1086
1086
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1087
- i.stem.replace(Bn, function(l, u, f, b, d, _) {
1088
- 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), "";
1087
+ i.stem.replace(Bn, function(l, u, f, b, p, y) {
1088
+ 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), "";
1089
1089
  });
1090
1090
  var o = i.options[0];
1091
1091
  o === "w" ? t = W(W({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = W(W({}, t), Tn(o)));
@@ -1102,7 +1102,7 @@ function Wi(e) {
1102
1102
  }
1103
1103
  return t;
1104
1104
  }
1105
- var pt = {
1105
+ var dt = {
1106
1106
  "001": [
1107
1107
  "H",
1108
1108
  "h"
@@ -2552,7 +2552,7 @@ function qi(e) {
2552
2552
  }
2553
2553
  var n = e.language, r;
2554
2554
  n !== "root" && (r = e.maximize().region);
2555
- var i = pt[r || ""] || pt[n || ""] || pt["".concat(n, "-001")] || pt["001"];
2555
+ var i = dt[r || ""] || dt[n || ""] || dt["".concat(n, "-001")] || dt["001"];
2556
2556
  return i[0];
2557
2557
  }
2558
2558
  var Xt, Yi = new RegExp("^".concat(dr.source, "*")), Qi = new RegExp("".concat(dr.source, "*$"));
@@ -2857,37 +2857,37 @@ var lo = (
2857
2857
  var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
2858
2858
  if (b.err)
2859
2859
  return b;
2860
- var d = uo(b.val);
2861
- if (d.length === 0)
2860
+ var p = uo(b.val);
2861
+ if (p.length === 0)
2862
2862
  return this.error(L.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
2863
- var _ = M(f, this.clonePosition());
2864
- u = { style: d, styleLocation: _ };
2863
+ var y = M(f, this.clonePosition());
2864
+ u = { style: p, styleLocation: y };
2865
2865
  }
2866
- var w = this.tryParseArgumentClose(i);
2867
- if (w.err)
2868
- return w;
2869
- var A = M(i, this.clonePosition());
2866
+ var E = this.tryParseArgumentClose(i);
2867
+ if (E.err)
2868
+ return E;
2869
+ var B = M(i, this.clonePosition());
2870
2870
  if (u && Cn(u == null ? void 0 : u.style, "::", 0)) {
2871
2871
  var Q = so(u.style.slice(2));
2872
2872
  if (s === "number") {
2873
2873
  var b = this.parseNumberSkeletonFromString(Q, u.styleLocation);
2874
2874
  return b.err ? b : {
2875
- val: { type: $.number, value: r, location: A, style: b.val },
2875
+ val: { type: $.number, value: r, location: B, style: b.val },
2876
2876
  err: null
2877
2877
  };
2878
2878
  } else {
2879
2879
  if (Q.length === 0)
2880
- return this.error(L.EXPECT_DATE_TIME_SKELETON, A);
2880
+ return this.error(L.EXPECT_DATE_TIME_SKELETON, B);
2881
2881
  var re = Q;
2882
2882
  this.locale && (re = Zi(Q, this.locale));
2883
- var d = {
2884
- type: Xe.dateTime,
2883
+ var p = {
2884
+ type: We.dateTime,
2885
2885
  pattern: re,
2886
2886
  location: u.styleLocation,
2887
2887
  parsedOptions: this.shouldParseSkeletons ? ji(re) : {}
2888
2888
  }, oe = s === "date" ? $.date : $.time;
2889
2889
  return {
2890
- val: { type: oe, value: r, location: A, style: d },
2890
+ val: { type: oe, value: r, location: B, style: p },
2891
2891
  err: null
2892
2892
  };
2893
2893
  }
@@ -2896,7 +2896,7 @@ var lo = (
2896
2896
  val: {
2897
2897
  type: s === "number" ? $.number : s === "date" ? $.date : $.time,
2898
2898
  value: r,
2899
- location: A,
2899
+ location: B,
2900
2900
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2901
2901
  },
2902
2902
  err: null
@@ -2907,7 +2907,7 @@ var lo = (
2907
2907
  case "select": {
2908
2908
  var I = this.clonePosition();
2909
2909
  if (this.bumpSpace(), !this.bumpIf(","))
2910
- return this.error(L.EXPECT_SELECT_ARGUMENT_OPTIONS, M(I, Et({}, I)));
2910
+ return this.error(L.EXPECT_SELECT_ARGUMENT_OPTIONS, M(I, _t({}, I)));
2911
2911
  this.bumpSpace();
2912
2912
  var k = this.parseIdentifierIfPossible(), Z = 0;
2913
2913
  if (s !== "select" && k.value === "offset") {
@@ -2922,9 +2922,9 @@ var lo = (
2922
2922
  var ie = this.tryParsePluralOrSelectOptions(t, s, n, k);
2923
2923
  if (ie.err)
2924
2924
  return ie;
2925
- var w = this.tryParseArgumentClose(i);
2926
- if (w.err)
2927
- return w;
2925
+ var E = this.tryParseArgumentClose(i);
2926
+ if (E.err)
2927
+ return E;
2928
2928
  var K = M(i, this.clonePosition());
2929
2929
  return s === "select" ? {
2930
2930
  val: {
@@ -2995,7 +2995,7 @@ var lo = (
2995
2995
  }
2996
2996
  return {
2997
2997
  val: {
2998
- type: Xe.number,
2998
+ type: We.number,
2999
2999
  tokens: r,
3000
3000
  location: n,
3001
3001
  parsedOptions: this.shouldParseSkeletons ? Wi(r) : {}
@@ -3007,9 +3007,9 @@ var lo = (
3007
3007
  if (u.length === 0) {
3008
3008
  var b = this.clonePosition();
3009
3009
  if (n !== "select" && this.bumpIf("=")) {
3010
- var d = this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_SELECTOR, L.INVALID_PLURAL_ARGUMENT_SELECTOR);
3011
- if (d.err)
3012
- return d;
3010
+ var p = this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_SELECTOR, L.INVALID_PLURAL_ARGUMENT_SELECTOR);
3011
+ if (p.err)
3012
+ return p;
3013
3013
  f = M(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
3014
3014
  } else
3015
3015
  break;
@@ -3017,20 +3017,20 @@ var lo = (
3017
3017
  if (l.has(u))
3018
3018
  return this.error(n === "select" ? L.DUPLICATE_SELECT_ARGUMENT_SELECTOR : L.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3019
3019
  u === "other" && (a = !0), this.bumpSpace();
3020
- var _ = this.clonePosition();
3020
+ var y = this.clonePosition();
3021
3021
  if (!this.bumpIf("{"))
3022
3022
  return this.error(n === "select" ? L.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : L.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
3023
- var w = this.parseMessage(t + 1, n, r);
3024
- if (w.err)
3025
- return w;
3026
- var A = this.tryParseArgumentClose(_);
3027
- if (A.err)
3028
- return A;
3023
+ var E = this.parseMessage(t + 1, n, r);
3024
+ if (E.err)
3025
+ return E;
3026
+ var B = this.tryParseArgumentClose(y);
3027
+ if (B.err)
3028
+ return B;
3029
3029
  s.push([
3030
3030
  u,
3031
3031
  {
3032
- value: w.val,
3033
- location: M(_, this.clonePosition())
3032
+ value: E.val,
3033
+ location: M(y, this.clonePosition())
3034
3034
  }
3035
3035
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
3036
3036
  }
@@ -3137,7 +3137,7 @@ function on(e) {
3137
3137
  });
3138
3138
  }
3139
3139
  function po(e, t) {
3140
- t === void 0 && (t = {}), t = Et({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3140
+ t === void 0 && (t = {}), t = _t({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3141
3141
  var n = new lo(e, t).parse();
3142
3142
  if (n.err) {
3143
3143
  var r = SyntaxError(L[n.err.kind]);
@@ -3145,14 +3145,14 @@ function po(e, t) {
3145
3145
  }
3146
3146
  return t != null && t.captureLocation || on(n.val), n.val;
3147
3147
  }
3148
- var ze;
3148
+ var Ze;
3149
3149
  (function(e) {
3150
3150
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3151
- })(ze || (ze = {}));
3152
- var Tt = (
3151
+ })(Ze || (Ze = {}));
3152
+ var Bt = (
3153
3153
  /** @class */
3154
3154
  function(e) {
3155
- Bt(t, e);
3155
+ St(t, e);
3156
3156
  function t(n, r, i) {
3157
3157
  var o = e.call(this, n) || this;
3158
3158
  return o.code = r, o.originalMessage = i, o;
@@ -3164,48 +3164,48 @@ var Tt = (
3164
3164
  ), Ln = (
3165
3165
  /** @class */
3166
3166
  function(e) {
3167
- Bt(t, e);
3167
+ St(t, e);
3168
3168
  function t(n, r, i, o) {
3169
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ze.INVALID_VALUE, o) || this;
3169
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ze.INVALID_VALUE, o) || this;
3170
3170
  }
3171
3171
  return t;
3172
- }(Tt)
3172
+ }(Bt)
3173
3173
  ), mo = (
3174
3174
  /** @class */
3175
3175
  function(e) {
3176
- Bt(t, e);
3176
+ St(t, e);
3177
3177
  function t(n, r, i) {
3178
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ze.INVALID_VALUE, i) || this;
3178
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ze.INVALID_VALUE, i) || this;
3179
3179
  }
3180
3180
  return t;
3181
- }(Tt)
3181
+ }(Bt)
3182
3182
  ), bo = (
3183
3183
  /** @class */
3184
3184
  function(e) {
3185
- Bt(t, e);
3185
+ St(t, e);
3186
3186
  function t(n, r) {
3187
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ze.MISSING_VALUE, r) || this;
3187
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ze.MISSING_VALUE, r) || this;
3188
3188
  }
3189
3189
  return t;
3190
- }(Tt)
3191
- ), le;
3190
+ }(Bt)
3191
+ ), ue;
3192
3192
  (function(e) {
3193
3193
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3194
- })(le || (le = {}));
3194
+ })(ue || (ue = {}));
3195
3195
  function go(e) {
3196
3196
  return e.length < 2 ? e : e.reduce(function(t, n) {
3197
3197
  var r = t[t.length - 1];
3198
- return !r || r.type !== le.literal || n.type !== le.literal ? t.push(n) : r.value += n.value, t;
3198
+ return !r || r.type !== ue.literal || n.type !== ue.literal ? t.push(n) : r.value += n.value, t;
3199
3199
  }, []);
3200
3200
  }
3201
3201
  function yo(e) {
3202
3202
  return typeof e == "function";
3203
3203
  }
3204
- function gt(e, t, n, r, i, o, a) {
3204
+ function bt(e, t, n, r, i, o, a) {
3205
3205
  if (e.length === 1 && Sn(e[0]))
3206
3206
  return [
3207
3207
  {
3208
- type: le.literal,
3208
+ type: ue.literal,
3209
3209
  value: e[0].value
3210
3210
  }
3211
3211
  ];
@@ -3213,14 +3213,14 @@ function gt(e, t, n, r, i, o, a) {
3213
3213
  var f = u[l];
3214
3214
  if (Sn(f)) {
3215
3215
  s.push({
3216
- type: le.literal,
3216
+ type: ue.literal,
3217
3217
  value: f.value
3218
3218
  });
3219
3219
  continue;
3220
3220
  }
3221
3221
  if (Fi(f)) {
3222
3222
  typeof o == "number" && s.push({
3223
- type: le.literal,
3223
+ type: ue.literal,
3224
3224
  value: n.getNumberFormat(t).format(o)
3225
3225
  });
3226
3226
  continue;
@@ -3228,86 +3228,86 @@ function gt(e, t, n, r, i, o, a) {
3228
3228
  var b = f.value;
3229
3229
  if (!(i && b in i))
3230
3230
  throw new bo(b, a);
3231
- var d = i[b];
3231
+ var p = i[b];
3232
3232
  if (Ui(f)) {
3233
- (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3234
- type: typeof d == "string" ? le.literal : le.object,
3235
- value: d
3233
+ (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), s.push({
3234
+ type: typeof p == "string" ? ue.literal : ue.object,
3235
+ value: p
3236
3236
  });
3237
3237
  continue;
3238
3238
  }
3239
3239
  if (sr(f)) {
3240
- var _ = typeof f.style == "string" ? r.date[f.style] : Kt(f.style) ? f.style.parsedOptions : void 0;
3240
+ var y = typeof f.style == "string" ? r.date[f.style] : Kt(f.style) ? f.style.parsedOptions : void 0;
3241
3241
  s.push({
3242
- type: le.literal,
3243
- value: n.getDateTimeFormat(t, _).format(d)
3242
+ type: ue.literal,
3243
+ value: n.getDateTimeFormat(t, y).format(p)
3244
3244
  });
3245
3245
  continue;
3246
3246
  }
3247
3247
  if (ur(f)) {
3248
- var _ = typeof f.style == "string" ? r.time[f.style] : Kt(f.style) ? f.style.parsedOptions : r.time.medium;
3248
+ var y = typeof f.style == "string" ? r.time[f.style] : Kt(f.style) ? f.style.parsedOptions : r.time.medium;
3249
3249
  s.push({
3250
- type: le.literal,
3251
- value: n.getDateTimeFormat(t, _).format(d)
3250
+ type: ue.literal,
3251
+ value: n.getDateTimeFormat(t, y).format(p)
3252
3252
  });
3253
3253
  continue;
3254
3254
  }
3255
3255
  if (ar(f)) {
3256
- var _ = typeof f.style == "string" ? r.number[f.style] : fr(f.style) ? f.style.parsedOptions : void 0;
3257
- _ && _.scale && (d = d * (_.scale || 1)), s.push({
3258
- type: le.literal,
3259
- value: n.getNumberFormat(t, _).format(d)
3256
+ var y = typeof f.style == "string" ? r.number[f.style] : fr(f.style) ? f.style.parsedOptions : void 0;
3257
+ y && y.scale && (p = p * (y.scale || 1)), s.push({
3258
+ type: ue.literal,
3259
+ value: n.getNumberFormat(t, y).format(p)
3260
3260
  });
3261
3261
  continue;
3262
3262
  }
3263
3263
  if (hr(f)) {
3264
- var w = f.children, A = f.value, Q = i[A];
3264
+ var E = f.children, B = f.value, Q = i[B];
3265
3265
  if (!yo(Q))
3266
- throw new mo(A, "function", a);
3267
- var re = gt(w, t, n, r, i, o), oe = Q(re.map(function(Z) {
3266
+ throw new mo(B, "function", a);
3267
+ var re = bt(E, t, n, r, i, o), oe = Q(re.map(function(Z) {
3268
3268
  return Z.value;
3269
3269
  }));
3270
3270
  Array.isArray(oe) || (oe = [oe]), s.push.apply(s, oe.map(function(Z) {
3271
3271
  return {
3272
- type: typeof Z == "string" ? le.literal : le.object,
3272
+ type: typeof Z == "string" ? ue.literal : ue.object,
3273
3273
  value: Z
3274
3274
  };
3275
3275
  }));
3276
3276
  }
3277
3277
  if (lr(f)) {
3278
- var I = f.options[d] || f.options.other;
3278
+ var I = f.options[p] || f.options.other;
3279
3279
  if (!I)
3280
- throw new Ln(f.value, d, Object.keys(f.options), a);
3281
- s.push.apply(s, gt(I.value, t, n, r, i));
3280
+ throw new Ln(f.value, p, Object.keys(f.options), a);
3281
+ s.push.apply(s, bt(I.value, t, n, r, i));
3282
3282
  continue;
3283
3283
  }
3284
3284
  if (cr(f)) {
3285
- var I = f.options["=".concat(d)];
3285
+ var I = f.options["=".concat(p)];
3286
3286
  if (!I) {
3287
3287
  if (!Intl.PluralRules)
3288
- throw new Tt(`Intl.PluralRules is not available in this environment.
3288
+ throw new Bt(`Intl.PluralRules is not available in this environment.
3289
3289
  Try polyfilling it using "@formatjs/intl-pluralrules"
3290
- `, ze.MISSING_INTL_API, a);
3291
- var k = n.getPluralRules(t, { type: f.pluralType }).select(d - (f.offset || 0));
3290
+ `, Ze.MISSING_INTL_API, a);
3291
+ var k = n.getPluralRules(t, { type: f.pluralType }).select(p - (f.offset || 0));
3292
3292
  I = f.options[k] || f.options.other;
3293
3293
  }
3294
3294
  if (!I)
3295
- throw new Ln(f.value, d, Object.keys(f.options), a);
3296
- s.push.apply(s, gt(I.value, t, n, r, i, d - (f.offset || 0)));
3295
+ throw new Ln(f.value, p, Object.keys(f.options), a);
3296
+ s.push.apply(s, bt(I.value, t, n, r, i, p - (f.offset || 0)));
3297
3297
  continue;
3298
3298
  }
3299
3299
  }
3300
3300
  return go(s);
3301
3301
  }
3302
3302
  function vo(e, t) {
3303
- return t ? Be(Be(Be({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3304
- return n[r] = Be(Be({}, e[r]), t[r] || {}), n;
3303
+ return t ? Te(Te(Te({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3304
+ return n[r] = Te(Te({}, e[r]), t[r] || {}), n;
3305
3305
  }, {})) : e;
3306
3306
  }
3307
3307
  function _o(e, t) {
3308
3308
  return t ? Object.keys(e).reduce(function(n, r) {
3309
3309
  return n[r] = vo(e[r], t[r]), n;
3310
- }, Be({}, e)) : e;
3310
+ }, Te({}, e)) : e;
3311
3311
  }
3312
3312
  function zt(e) {
3313
3313
  return {
@@ -3369,12 +3369,12 @@ var xo = (
3369
3369
  var u = o.formatToParts(l);
3370
3370
  if (u.length === 1)
3371
3371
  return u[0].value;
3372
- var f = u.reduce(function(b, d) {
3373
- return !b.length || d.type !== le.literal || typeof b[b.length - 1] != "string" ? b.push(d.value) : b[b.length - 1] += d.value, b;
3372
+ var f = u.reduce(function(b, p) {
3373
+ return !b.length || p.type !== ue.literal || typeof b[b.length - 1] != "string" ? b.push(p.value) : b[b.length - 1] += p.value, b;
3374
3374
  }, []);
3375
3375
  return f.length <= 1 ? f[0] || "" : f;
3376
3376
  }, this.formatToParts = function(l) {
3377
- return gt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3377
+ return bt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3378
3378
  }, this.resolvedOptions = function() {
3379
3379
  var l;
3380
3380
  return {
@@ -3388,7 +3388,7 @@ var xo = (
3388
3388
  var a = i || {};
3389
3389
  a.formatters;
3390
3390
  var s = Oi(a, ["formatters"]);
3391
- this.ast = e.__parse(t, Be(Be({}, s), { locale: this.resolvedLocale }));
3391
+ this.ast = e.__parse(t, Te(Te({}, s), { locale: this.resolvedLocale }));
3392
3392
  } else
3393
3393
  this.ast = t;
3394
3394
  if (!Array.isArray(this.ast))
@@ -3488,12 +3488,12 @@ function wo(e, t) {
3488
3488
  r = void 0;
3489
3489
  return r;
3490
3490
  }
3491
- const Me = {}, So = (e, t, n) => n && (t in Me || (Me[t] = {}), e in Me[t] || (Me[t][e] = n), n), _r = (e, t) => {
3491
+ const Ne = {}, So = (e, t, n) => n && (t in Ne || (Ne[t] = {}), e in Ne[t] || (Ne[t][e] = n), n), _r = (e, t) => {
3492
3492
  if (t == null)
3493
3493
  return;
3494
- if (t in Me && e in Me[t])
3495
- return Me[t][e];
3496
- const n = At(t);
3494
+ if (t in Ne && e in Ne[t])
3495
+ return Ne[t][e];
3496
+ const n = Tt(t);
3497
3497
  for (let r = 0; r < n.length; r++) {
3498
3498
  const i = n[r], o = To(i, e);
3499
3499
  if (o)
@@ -3501,7 +3501,7 @@ const Me = {}, So = (e, t, n) => n && (t in Me || (Me[t] = {}), e in Me[t] || (M
3501
3501
  }
3502
3502
  };
3503
3503
  let bn;
3504
- const lt = St({});
3504
+ const ct = wt({});
3505
3505
  function Bo(e) {
3506
3506
  return bn[e] || null;
3507
3507
  }
@@ -3517,7 +3517,7 @@ function To(e, t) {
3517
3517
  function Ao(e) {
3518
3518
  if (e == null)
3519
3519
  return;
3520
- const t = At(e);
3520
+ const t = Tt(e);
3521
3521
  for (let n = 0; n < t.length; n++) {
3522
3522
  const r = t[n];
3523
3523
  if (Er(r))
@@ -3525,28 +3525,28 @@ function Ao(e) {
3525
3525
  }
3526
3526
  }
3527
3527
  function xr(e, ...t) {
3528
- delete Me[e], lt.update((n) => (n[e] = Hi.all([n[e] || {}, ...t]), n));
3528
+ delete Ne[e], ct.update((n) => (n[e] = Hi.all([n[e] || {}, ...t]), n));
3529
3529
  }
3530
- qe(
3531
- [lt],
3530
+ Qe(
3531
+ [ct],
3532
3532
  ([e]) => Object.keys(e)
3533
3533
  );
3534
- lt.subscribe((e) => bn = e);
3535
- const yt = {};
3534
+ ct.subscribe((e) => bn = e);
3535
+ const gt = {};
3536
3536
  function Co(e, t) {
3537
- yt[e].delete(t), yt[e].size === 0 && delete yt[e];
3537
+ gt[e].delete(t), gt[e].size === 0 && delete gt[e];
3538
3538
  }
3539
3539
  function wr(e) {
3540
- return yt[e];
3540
+ return gt[e];
3541
3541
  }
3542
3542
  function Ho(e) {
3543
- return At(e).map((t) => {
3543
+ return Tt(e).map((t) => {
3544
3544
  const n = wr(t);
3545
3545
  return [t, n ? [...n] : []];
3546
3546
  }).filter(([, t]) => t.length > 0);
3547
3547
  }
3548
3548
  function an(e) {
3549
- return e == null ? !1 : At(e).some(
3549
+ return e == null ? !1 : Tt(e).some(
3550
3550
  (t) => {
3551
3551
  var n;
3552
3552
  return (n = wr(t)) == null ? void 0 : n.size;
@@ -3558,20 +3558,20 @@ function Oo(e, t) {
3558
3558
  t.map((r) => (Co(e, r), r().then((i) => i.default || i)))
3559
3559
  ).then((r) => xr(e, ...r));
3560
3560
  }
3561
- const rt = {};
3561
+ const it = {};
3562
3562
  function Sr(e) {
3563
3563
  if (!an(e))
3564
- return e in rt ? rt[e] : Promise.resolve();
3564
+ return e in it ? it[e] : Promise.resolve();
3565
3565
  const t = Ho(e);
3566
- return rt[e] = Promise.all(
3566
+ return it[e] = Promise.all(
3567
3567
  t.map(
3568
3568
  ([n, r]) => Oo(n, r)
3569
3569
  )
3570
3570
  ).then(() => {
3571
3571
  if (an(e))
3572
3572
  return Sr(e);
3573
- delete rt[e];
3574
- }), rt[e];
3573
+ delete it[e];
3574
+ }), it[e];
3575
3575
  }
3576
3576
  const Lo = {
3577
3577
  number: {
@@ -3610,10 +3610,10 @@ const Lo = {
3610
3610
  handleMissingMessage: void 0,
3611
3611
  ignoreTag: !0
3612
3612
  }, Mo = Ro;
3613
- function We() {
3613
+ function qe() {
3614
3614
  return Mo;
3615
3615
  }
3616
- const Wt = St(!1);
3616
+ const Wt = wt(!1);
3617
3617
  var Po = Object.defineProperty, No = Object.defineProperties, Io = Object.getOwnPropertyDescriptors, Rn = Object.getOwnPropertySymbols, Do = Object.prototype.hasOwnProperty, Uo = Object.prototype.propertyIsEnumerable, Mn = (e, t, n) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fo = (e, t) => {
3618
3618
  for (var n in t || (t = {}))
3619
3619
  Do.call(t, n) && Mn(e, n, t[n]);
@@ -3623,112 +3623,112 @@ var Po = Object.defineProperty, No = Object.defineProperties, Io = Object.getOwn
3623
3623
  return e;
3624
3624
  }, Go = (e, t) => No(e, Io(t));
3625
3625
  let sn;
3626
- const xt = St(null);
3626
+ const Et = wt(null);
3627
3627
  function Pn(e) {
3628
3628
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3629
3629
  }
3630
- function At(e, t = We().fallbackLocale) {
3630
+ function Tt(e, t = qe().fallbackLocale) {
3631
3631
  const n = Pn(e);
3632
3632
  return t ? [.../* @__PURE__ */ new Set([...n, ...Pn(t)])] : n;
3633
3633
  }
3634
3634
  function Ue() {
3635
3635
  return sn != null ? sn : void 0;
3636
3636
  }
3637
- xt.subscribe((e) => {
3637
+ Et.subscribe((e) => {
3638
3638
  sn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3639
3639
  });
3640
3640
  const jo = (e) => {
3641
3641
  if (e && Ao(e) && an(e)) {
3642
- const { loadingDelay: t } = We();
3642
+ const { loadingDelay: t } = qe();
3643
3643
  let n;
3644
3644
  return typeof window != "undefined" && Ue() != null && t ? n = window.setTimeout(
3645
3645
  () => Wt.set(!0),
3646
3646
  t
3647
3647
  ) : Wt.set(!0), Sr(e).then(() => {
3648
- xt.set(e);
3648
+ Et.set(e);
3649
3649
  }).finally(() => {
3650
3650
  clearTimeout(n), Wt.set(!1);
3651
3651
  });
3652
3652
  }
3653
- return xt.set(e);
3654
- }, Ye = Go(Fo({}, xt), {
3653
+ return Et.set(e);
3654
+ }, Je = Go(Fo({}, Et), {
3655
3655
  set: jo
3656
- }), Ct = (e) => {
3656
+ }), At = (e) => {
3657
3657
  const t = /* @__PURE__ */ Object.create(null);
3658
3658
  return (r) => {
3659
3659
  const i = JSON.stringify(r);
3660
3660
  return i in t ? t[i] : t[i] = e(r);
3661
3661
  };
3662
3662
  };
3663
- var ko = Object.defineProperty, wt = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, Nn = (e, t, n) => t in e ? ko(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, gn = (e, t) => {
3663
+ var ko = Object.defineProperty, xt = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, Nn = (e, t, n) => t in e ? ko(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, gn = (e, t) => {
3664
3664
  for (var n in t || (t = {}))
3665
3665
  Br.call(t, n) && Nn(e, n, t[n]);
3666
- if (wt)
3667
- for (var n of wt(t))
3666
+ if (xt)
3667
+ for (var n of xt(t))
3668
3668
  Tr.call(t, n) && Nn(e, n, t[n]);
3669
3669
  return e;
3670
- }, Qe = (e, t) => {
3670
+ }, Ke = (e, t) => {
3671
3671
  var n = {};
3672
3672
  for (var r in e)
3673
3673
  Br.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3674
- if (e != null && wt)
3675
- for (var r of wt(e))
3674
+ if (e != null && xt)
3675
+ for (var r of xt(e))
3676
3676
  t.indexOf(r) < 0 && Tr.call(e, r) && (n[r] = e[r]);
3677
3677
  return n;
3678
3678
  };
3679
- const ut = (e, t) => {
3680
- const { formats: n } = We();
3679
+ const lt = (e, t) => {
3680
+ const { formats: n } = qe();
3681
3681
  if (e in n && t in n[e])
3682
3682
  return n[e][t];
3683
3683
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3684
- }, $o = Ct(
3684
+ }, $o = At(
3685
3685
  (e) => {
3686
- var t = e, { locale: n, format: r } = t, i = Qe(t, ["locale", "format"]);
3686
+ var t = e, { locale: n, format: r } = t, i = Ke(t, ["locale", "format"]);
3687
3687
  if (n == null)
3688
3688
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3689
- return r && (i = ut("number", r)), new Intl.NumberFormat(n, i);
3689
+ return r && (i = lt("number", r)), new Intl.NumberFormat(n, i);
3690
3690
  }
3691
- ), Vo = Ct(
3691
+ ), Vo = At(
3692
3692
  (e) => {
3693
- var t = e, { locale: n, format: r } = t, i = Qe(t, ["locale", "format"]);
3693
+ var t = e, { locale: n, format: r } = t, i = Ke(t, ["locale", "format"]);
3694
3694
  if (n == null)
3695
3695
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3696
- return r ? i = ut("date", r) : Object.keys(i).length === 0 && (i = ut("date", "short")), new Intl.DateTimeFormat(n, i);
3696
+ return r ? i = lt("date", r) : Object.keys(i).length === 0 && (i = lt("date", "short")), new Intl.DateTimeFormat(n, i);
3697
3697
  }
3698
- ), Xo = Ct(
3698
+ ), Xo = At(
3699
3699
  (e) => {
3700
- var t = e, { locale: n, format: r } = t, i = Qe(t, ["locale", "format"]);
3700
+ var t = e, { locale: n, format: r } = t, i = Ke(t, ["locale", "format"]);
3701
3701
  if (n == null)
3702
3702
  throw new Error(
3703
3703
  '[svelte-i18n] A "locale" must be set to format time values'
3704
3704
  );
3705
- return r ? i = ut("time", r) : Object.keys(i).length === 0 && (i = ut("time", "short")), new Intl.DateTimeFormat(n, i);
3705
+ return r ? i = lt("time", r) : Object.keys(i).length === 0 && (i = lt("time", "short")), new Intl.DateTimeFormat(n, i);
3706
3706
  }
3707
3707
  ), zo = (e = {}) => {
3708
3708
  var t = e, {
3709
3709
  locale: n = Ue()
3710
- } = t, r = Qe(t, [
3710
+ } = t, r = Ke(t, [
3711
3711
  "locale"
3712
3712
  ]);
3713
3713
  return $o(gn({ locale: n }, r));
3714
3714
  }, Wo = (e = {}) => {
3715
3715
  var t = e, {
3716
3716
  locale: n = Ue()
3717
- } = t, r = Qe(t, [
3717
+ } = t, r = Ke(t, [
3718
3718
  "locale"
3719
3719
  ]);
3720
3720
  return Vo(gn({ locale: n }, r));
3721
3721
  }, Zo = (e = {}) => {
3722
3722
  var t = e, {
3723
3723
  locale: n = Ue()
3724
- } = t, r = Qe(t, [
3724
+ } = t, r = Ke(t, [
3725
3725
  "locale"
3726
3726
  ]);
3727
3727
  return Xo(gn({ locale: n }, r));
3728
- }, qo = Ct(
3728
+ }, qo = At(
3729
3729
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3730
- (e, t = Ue()) => new xo(e, t, We().formats, {
3731
- ignoreTag: We().ignoreTag
3730
+ (e, t = Ue()) => new xo(e, t, qe().formats, {
3731
+ ignoreTag: qe().ignoreTag
3732
3732
  })
3733
3733
  ), Yo = (e, t = {}) => {
3734
3734
  var n, r, i, o;
@@ -3745,7 +3745,7 @@ const ut = (e, t) => {
3745
3745
  );
3746
3746
  let f = _r(e, l);
3747
3747
  if (!f)
3748
- f = (o = (i = (r = (n = We()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3748
+ f = (o = (i = (r = (n = qe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3749
3749
  else if (typeof f != "string")
3750
3750
  return console.warn(
3751
3751
  `[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.`
@@ -3755,23 +3755,23 @@ const ut = (e, t) => {
3755
3755
  let b = f;
3756
3756
  try {
3757
3757
  b = qo(f, l).format(s);
3758
- } catch (d) {
3759
- d instanceof Error && console.warn(
3758
+ } catch (p) {
3759
+ p instanceof Error && console.warn(
3760
3760
  `[svelte-i18n] Message "${e}" has syntax error:`,
3761
- d.message
3761
+ p.message
3762
3762
  );
3763
3763
  }
3764
3764
  return b;
3765
- }, Qo = (e, t) => Zo(t).format(e), Jo = (e, t) => Wo(t).format(e), Ko = (e, t) => zo(t).format(e), ea = (e, t = Ue()) => _r(e, t), ta = qe([Ye, lt], () => Yo);
3766
- qe([Ye], () => Qo);
3767
- qe([Ye], () => Jo);
3768
- qe([Ye], () => Ko);
3769
- qe([Ye, lt], () => ea);
3765
+ }, Qo = (e, t) => Zo(t).format(e), Jo = (e, t) => Wo(t).format(e), Ko = (e, t) => zo(t).format(e), ea = (e, t = Ue()) => _r(e, t), ta = Qe([Je, ct], () => Yo);
3766
+ Qe([Je], () => Qo);
3767
+ Qe([Je], () => Jo);
3768
+ Qe([Je], () => Ko);
3769
+ Qe([Je, ct], () => ea);
3770
3770
  function In(e, t) {
3771
3771
  xr(e, t);
3772
3772
  }
3773
3773
  function na(e) {
3774
- Ye.set(e);
3774
+ Je.set(e);
3775
3775
  }
3776
3776
  const Dn = {
3777
3777
  en: {
@@ -3999,7 +3999,7 @@ var un = { exports: {} };
3999
3999
  */
4000
4000
  (function(e, t) {
4001
4001
  (function(n) {
4002
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, a = n.XDomainRequest, s = n.ActiveXObject, l = n.EventSource, u = n.document, f = n.Promise, b = n.fetch, d = n.Response, _ = n.TextDecoder, w = n.TextEncoder, A = n.AbortController;
4002
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, a = n.XDomainRequest, s = n.ActiveXObject, l = n.EventSource, u = n.document, f = n.Promise, b = n.fetch, p = n.Response, y = n.TextDecoder, E = n.TextEncoder, B = n.AbortController;
4003
4003
  if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(c) {
4004
4004
  u.readyState = "complete";
4005
4005
  }, !1)), o == null && s != null && (o = function() {
@@ -4010,24 +4010,24 @@ var un = { exports: {} };
4010
4010
  return g.prototype = c, new g();
4011
4011
  }), Date.now || (Date.now = function() {
4012
4012
  return (/* @__PURE__ */ new Date()).getTime();
4013
- }), A == null) {
4013
+ }), B == null) {
4014
4014
  var Q = b;
4015
4015
  b = function(c, g) {
4016
- var x = g.signal;
4016
+ var w = g.signal;
4017
4017
  return Q(c, { headers: g.headers, credentials: g.credentials, cache: g.cache }).then(function(m) {
4018
- var T = m.body.getReader();
4019
- return x._reader = T, x._aborted && x._reader.cancel(), {
4018
+ var A = m.body.getReader();
4019
+ return w._reader = A, w._aborted && w._reader.cancel(), {
4020
4020
  status: m.status,
4021
4021
  statusText: m.statusText,
4022
4022
  headers: m.headers,
4023
4023
  body: {
4024
4024
  getReader: function() {
4025
- return T;
4025
+ return A;
4026
4026
  }
4027
4027
  }
4028
4028
  };
4029
4029
  });
4030
- }, A = function() {
4030
+ }, B = function() {
4031
4031
  this.signal = {
4032
4032
  _reader: null,
4033
4033
  _aborted: !1
@@ -4040,16 +4040,16 @@ var un = { exports: {} };
4040
4040
  this.bitsNeeded = 0, this.codePoint = 0;
4041
4041
  }
4042
4042
  re.prototype.decode = function(c) {
4043
- function g(D, h, p) {
4044
- if (p === 1)
4043
+ function g(D, h, d) {
4044
+ if (d === 1)
4045
4045
  return D >= 128 >> h && D << h <= 2047;
4046
- if (p === 2)
4046
+ if (d === 2)
4047
4047
  return D >= 2048 >> h && D << h <= 55295 || D >= 57344 >> h && D << h <= 65535;
4048
- if (p === 3)
4048
+ if (d === 3)
4049
4049
  return D >= 65536 >> h && D << h <= 1114111;
4050
4050
  throw new Error();
4051
4051
  }
4052
- function x(D, h) {
4052
+ function w(D, h) {
4053
4053
  if (D === 6 * 1)
4054
4054
  return h >> 6 > 15 ? 3 : h > 31 ? 2 : 1;
4055
4055
  if (D === 6 * 2)
@@ -4058,21 +4058,21 @@ var un = { exports: {} };
4058
4058
  return 3;
4059
4059
  throw new Error();
4060
4060
  }
4061
- for (var m = 65533, T = "", S = this.bitsNeeded, C = this.codePoint, G = 0; G < c.length; G += 1) {
4061
+ for (var m = 65533, A = "", S = this.bitsNeeded, C = this.codePoint, G = 0; G < c.length; G += 1) {
4062
4062
  var O = c[G];
4063
- S !== 0 && (O < 128 || O > 191 || !g(C << 6 | O & 63, S - 6, x(S, C))) && (S = 0, C = m, T += String.fromCharCode(C)), S === 0 ? (O >= 0 && O <= 127 ? (S = 0, C = O) : O >= 192 && O <= 223 ? (S = 6 * 1, C = O & 31) : O >= 224 && O <= 239 ? (S = 6 * 2, C = O & 15) : O >= 240 && O <= 247 ? (S = 6 * 3, C = O & 7) : (S = 0, C = m), S !== 0 && !g(C, S, x(S, C)) && (S = 0, C = m)) : (S -= 6, C = C << 6 | O & 63), S === 0 && (C <= 65535 ? T += String.fromCharCode(C) : (T += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), T += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
4063
+ S !== 0 && (O < 128 || O > 191 || !g(C << 6 | O & 63, S - 6, w(S, C))) && (S = 0, C = m, A += String.fromCharCode(C)), S === 0 ? (O >= 0 && O <= 127 ? (S = 0, C = O) : O >= 192 && O <= 223 ? (S = 6 * 1, C = O & 31) : O >= 224 && O <= 239 ? (S = 6 * 2, C = O & 15) : O >= 240 && O <= 247 ? (S = 6 * 3, C = O & 7) : (S = 0, C = m), S !== 0 && !g(C, S, w(S, C)) && (S = 0, C = m)) : (S -= 6, C = C << 6 | O & 63), S === 0 && (C <= 65535 ? A += String.fromCharCode(C) : (A += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), A += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
4064
4064
  }
4065
- return this.bitsNeeded = S, this.codePoint = C, T;
4065
+ return this.bitsNeeded = S, this.codePoint = C, A;
4066
4066
  };
4067
4067
  var oe = function() {
4068
4068
  try {
4069
- return new _().decode(new w().encode("test"), { stream: !0 }) === "test";
4069
+ return new y().decode(new E().encode("test"), { stream: !0 }) === "test";
4070
4070
  } catch (c) {
4071
4071
  console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + c);
4072
4072
  }
4073
4073
  return !1;
4074
4074
  };
4075
- (_ == null || w == null || !oe()) && (_ = re);
4075
+ (y == null || E == null || !oe()) && (y = re);
4076
4076
  var I = function() {
4077
4077
  };
4078
4078
  function k(c) {
@@ -4080,62 +4080,62 @@ var un = { exports: {} };
4080
4080
  }
4081
4081
  k.prototype.open = function(c, g) {
4082
4082
  this._abort(!0);
4083
- var x = this, m = this._xhr, T = 1, S = 0;
4084
- this._abort = function(p) {
4085
- x._sendTimeout !== 0 && (i(x._sendTimeout), x._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(), S !== 0 && (i(S), S = 0), p || (x.readyState = 4, x.onabort(null), x.onreadystatechange())), T = 0;
4083
+ var w = this, m = this._xhr, A = 1, S = 0;
4084
+ this._abort = function(d) {
4085
+ w._sendTimeout !== 0 && (i(w._sendTimeout), w._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(), S !== 0 && (i(S), S = 0), d || (w.readyState = 4, w.onabort(null), w.onreadystatechange())), A = 0;
4086
4086
  };
4087
4087
  var C = function() {
4088
- if (T === 1) {
4089
- var p = 0, y = "", B = void 0;
4088
+ if (A === 1) {
4089
+ var d = 0, v = "", T = void 0;
4090
4090
  if ("contentType" in m)
4091
- p = 200, y = "OK", B = m.contentType;
4091
+ d = 200, v = "OK", T = m.contentType;
4092
4092
  else
4093
4093
  try {
4094
- p = m.status, y = m.statusText, B = m.getResponseHeader("Content-Type");
4094
+ d = m.status, v = m.statusText, T = m.getResponseHeader("Content-Type");
4095
4095
  } catch (U) {
4096
- p = 0, y = "", B = void 0;
4096
+ d = 0, v = "", T = void 0;
4097
4097
  }
4098
- p !== 0 && (T = 2, x.readyState = 2, x.status = p, x.statusText = y, x._contentType = B, x.onreadystatechange());
4098
+ d !== 0 && (A = 2, w.readyState = 2, w.status = d, w.statusText = v, w._contentType = T, w.onreadystatechange());
4099
4099
  }
4100
4100
  }, G = function() {
4101
- if (C(), T === 2 || T === 3) {
4102
- T = 3;
4103
- var p = "";
4101
+ if (C(), A === 2 || A === 3) {
4102
+ A = 3;
4103
+ var d = "";
4104
4104
  try {
4105
- p = m.responseText;
4106
- } catch (y) {
4105
+ d = m.responseText;
4106
+ } catch (v) {
4107
4107
  }
4108
- x.readyState = 3, x.responseText = p, x.onprogress();
4108
+ w.readyState = 3, w.responseText = d, w.onprogress();
4109
4109
  }
4110
- }, O = function(p, y) {
4111
- if ((y == null || y.preventDefault == null) && (y = {
4110
+ }, O = function(d, v) {
4111
+ if ((v == null || v.preventDefault == null) && (v = {
4112
4112
  preventDefault: I
4113
- }), G(), T === 1 || T === 2 || T === 3) {
4114
- if (T = 4, S !== 0 && (i(S), S = 0), x.readyState = 4, p === "load")
4115
- x.onload(y);
4116
- else if (p === "error")
4117
- x.onerror(y);
4118
- else if (p === "abort")
4119
- x.onabort(y);
4113
+ }), G(), A === 1 || A === 2 || A === 3) {
4114
+ if (A = 4, S !== 0 && (i(S), S = 0), w.readyState = 4, d === "load")
4115
+ w.onload(v);
4116
+ else if (d === "error")
4117
+ w.onerror(v);
4118
+ else if (d === "abort")
4119
+ w.onabort(v);
4120
4120
  else
4121
4121
  throw new TypeError();
4122
- x.onreadystatechange();
4122
+ w.onreadystatechange();
4123
4123
  }
4124
- }, D = function(p) {
4125
- m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && O(m.responseText === "" ? "error" : "load", p) : m.readyState === 3 ? "onprogress" in m || G() : m.readyState === 2 && C());
4124
+ }, D = function(d) {
4125
+ m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && O(m.responseText === "" ? "error" : "load", d) : m.readyState === 3 ? "onprogress" in m || G() : m.readyState === 2 && C());
4126
4126
  }, h = function() {
4127
4127
  S = r(function() {
4128
4128
  h();
4129
4129
  }, 500), m.readyState === 3 && G();
4130
4130
  };
4131
- "onload" in m && (m.onload = function(p) {
4132
- O("load", p);
4133
- }), "onerror" in m && (m.onerror = function(p) {
4134
- O("error", p);
4135
- }), "onabort" in m && (m.onabort = function(p) {
4136
- O("abort", p);
4137
- }), "onprogress" in m && (m.onprogress = G), "onreadystatechange" in m && (m.onreadystatechange = function(p) {
4138
- D(p);
4131
+ "onload" in m && (m.onload = function(d) {
4132
+ O("load", d);
4133
+ }), "onerror" in m && (m.onerror = function(d) {
4134
+ O("error", d);
4135
+ }), "onabort" in m && (m.onabort = function(d) {
4136
+ O("abort", d);
4137
+ }), "onprogress" in m && (m.onprogress = G), "onreadystatechange" in m && (m.onreadystatechange = function(d) {
4138
+ D(d);
4139
4139
  }), ("contentType" in m || !("ontimeout" in o.prototype)) && (g += (g.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(c, g, !0), "readyState" in m && (S = r(function() {
4140
4140
  h();
4141
4141
  }, 0));
@@ -4144,8 +4144,8 @@ var un = { exports: {} };
4144
4144
  }, k.prototype.getResponseHeader = function(c) {
4145
4145
  return this._contentType;
4146
4146
  }, k.prototype.setRequestHeader = function(c, g) {
4147
- var x = this._xhr;
4148
- "setRequestHeader" in x && x.setRequestHeader(c, g);
4147
+ var w = this._xhr;
4148
+ "setRequestHeader" in w && w.setRequestHeader(c, g);
4149
4149
  }, k.prototype.getAllResponseHeaders = function() {
4150
4150
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4151
4151
  }, k.prototype.send = function() {
@@ -4160,8 +4160,8 @@ var un = { exports: {} };
4160
4160
  "withCredentials" in g && (g.withCredentials = this.withCredentials);
4161
4161
  try {
4162
4162
  g.send(void 0);
4163
- } catch (x) {
4164
- throw x;
4163
+ } catch (w) {
4164
+ throw w;
4165
4165
  }
4166
4166
  };
4167
4167
  function Z(c) {
@@ -4170,9 +4170,9 @@ var un = { exports: {} };
4170
4170
  });
4171
4171
  }
4172
4172
  function ie(c) {
4173
- for (var g = /* @__PURE__ */ Object.create(null), x = c.split(`\r
4174
- `), m = 0; m < x.length; m += 1) {
4175
- var T = x[m], S = T.split(": "), C = S.shift(), G = S.join(": ");
4173
+ for (var g = /* @__PURE__ */ Object.create(null), w = c.split(`\r
4174
+ `), m = 0; m < w.length; m += 1) {
4175
+ var A = w[m], S = A.split(": "), C = S.shift(), G = S.join(": ");
4176
4176
  g[Z(C)] = G;
4177
4177
  }
4178
4178
  this._map = g;
@@ -4182,12 +4182,12 @@ var un = { exports: {} };
4182
4182
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4183
4183
  function K() {
4184
4184
  }
4185
- K.prototype.open = function(c, g, x, m, T, S, C) {
4186
- c.open("GET", T);
4185
+ K.prototype.open = function(c, g, w, m, A, S, C) {
4186
+ c.open("GET", A);
4187
4187
  var G = 0;
4188
4188
  c.onprogress = function() {
4189
4189
  var D = c.responseText, h = D.slice(G);
4190
- G += h.length, x(h);
4190
+ G += h.length, w(h);
4191
4191
  }, c.onerror = function(D) {
4192
4192
  D.preventDefault(), m(new Error("NetworkError"));
4193
4193
  }, c.onload = function() {
@@ -4196,8 +4196,8 @@ var un = { exports: {} };
4196
4196
  m(null);
4197
4197
  }, c.onreadystatechange = function() {
4198
4198
  if (c.readyState === o.HEADERS_RECEIVED) {
4199
- var D = c.status, h = c.statusText, p = c.getResponseHeader("Content-Type"), y = c.getAllResponseHeaders();
4200
- g(D, h, p, new ie(y));
4199
+ var D = c.status, h = c.statusText, d = c.getResponseHeader("Content-Type"), v = c.getAllResponseHeaders();
4200
+ g(D, h, d, new ie(v));
4201
4201
  }
4202
4202
  }, c.withCredentials = S;
4203
4203
  for (var O in C)
@@ -4212,34 +4212,34 @@ var un = { exports: {} };
4212
4212
  };
4213
4213
  function X() {
4214
4214
  }
4215
- X.prototype.open = function(c, g, x, m, T, S, C) {
4216
- var G = null, O = new A(), D = O.signal, h = new _();
4217
- return b(T, {
4215
+ X.prototype.open = function(c, g, w, m, A, S, C) {
4216
+ var G = null, O = new B(), D = O.signal, h = new y();
4217
+ return b(A, {
4218
4218
  headers: C,
4219
4219
  credentials: S ? "include" : "same-origin",
4220
4220
  signal: D,
4221
4221
  cache: "no-store"
4222
- }).then(function(p) {
4223
- return G = p.body.getReader(), g(p.status, p.statusText, p.headers.get("Content-Type"), new te(p.headers)), new f(function(y, B) {
4222
+ }).then(function(d) {
4223
+ return G = d.body.getReader(), g(d.status, d.statusText, d.headers.get("Content-Type"), new te(d.headers)), new f(function(v, T) {
4224
4224
  var U = function() {
4225
4225
  G.read().then(function(H) {
4226
4226
  if (H.done)
4227
- y(void 0);
4227
+ v(void 0);
4228
4228
  else {
4229
- var E = h.decode(H.value, { stream: !0 });
4230
- x(E), U();
4229
+ var x = h.decode(H.value, { stream: !0 });
4230
+ w(x), U();
4231
4231
  }
4232
4232
  }).catch(function(H) {
4233
- B(H);
4233
+ T(H);
4234
4234
  });
4235
4235
  };
4236
4236
  U();
4237
4237
  });
4238
- }).catch(function(p) {
4239
- if (p.name !== "AbortError")
4240
- return p;
4241
- }).then(function(p) {
4242
- m(p);
4238
+ }).catch(function(d) {
4239
+ if (d.name !== "AbortError")
4240
+ return d;
4241
+ }).then(function(d) {
4242
+ m(d);
4243
4243
  }), {
4244
4244
  abort: function() {
4245
4245
  G != null && G.cancel(), O.abort();
@@ -4258,28 +4258,28 @@ var un = { exports: {} };
4258
4258
  c.target = this;
4259
4259
  var g = this._listeners[c.type];
4260
4260
  if (g != null)
4261
- for (var x = g.length, m = 0; m < x; m += 1) {
4262
- var T = g[m];
4261
+ for (var w = g.length, m = 0; m < w; m += 1) {
4262
+ var A = g[m];
4263
4263
  try {
4264
- typeof T.handleEvent == "function" ? T.handleEvent(c) : T.call(this, c);
4264
+ typeof A.handleEvent == "function" ? A.handleEvent(c) : A.call(this, c);
4265
4265
  } catch (S) {
4266
4266
  N(S);
4267
4267
  }
4268
4268
  }
4269
4269
  }, F.prototype.addEventListener = function(c, g) {
4270
4270
  c = String(c);
4271
- var x = this._listeners, m = x[c];
4272
- m == null && (m = [], x[c] = m);
4273
- for (var T = !1, S = 0; S < m.length; S += 1)
4274
- m[S] === g && (T = !0);
4275
- T || m.push(g);
4271
+ var w = this._listeners, m = w[c];
4272
+ m == null && (m = [], w[c] = m);
4273
+ for (var A = !1, S = 0; S < m.length; S += 1)
4274
+ m[S] === g && (A = !0);
4275
+ A || m.push(g);
4276
4276
  }, F.prototype.removeEventListener = function(c, g) {
4277
4277
  c = String(c);
4278
- var x = this._listeners, m = x[c];
4278
+ var w = this._listeners, m = w[c];
4279
4279
  if (m != null) {
4280
- for (var T = [], S = 0; S < m.length; S += 1)
4281
- m[S] !== g && T.push(m[S]);
4282
- T.length === 0 ? delete x[c] : x[c] = T;
4280
+ for (var A = [], S = 0; S < m.length; S += 1)
4281
+ m[S] !== g && A.push(m[S]);
4282
+ A.length === 0 ? delete w[c] : w[c] = A;
4283
4283
  }
4284
4284
  };
4285
4285
  function q(c) {
@@ -4293,146 +4293,146 @@ var un = { exports: {} };
4293
4293
  q.call(this, c), this.status = g.status, this.statusText = g.statusText, this.headers = g.headers;
4294
4294
  }
4295
4295
  fe.prototype = Object.create(q.prototype);
4296
- function Ae(c, g) {
4296
+ function He(c, g) {
4297
4297
  q.call(this, c), this.error = g.error;
4298
4298
  }
4299
- Ae.prototype = Object.create(q.prototype);
4300
- var be = -1, ce = 0, v = 1, Ee = 2, Je = -1, ae = 0, Pe = 1, ht = 2, Ot = 3, Lt = /^text\/event\-stream(;.*)?$/i, Ke = 1e3, ft = 18e6, et = function(c, g) {
4301
- var x = c == null ? g : parseInt(c, 10);
4302
- return x !== x && (x = g), Ne(x);
4303
- }, Ne = function(c) {
4304
- return Math.min(Math.max(c, Ke), ft);
4305
- }, Ce = function(c, g, x) {
4299
+ He.prototype = Object.create(q.prototype);
4300
+ var me = -1, le = 0, Oe = 1, _ = 2, Le = -1, Ee = 0, xe = 1, Fe = 2, Ht = 3, Ot = /^text\/event\-stream(;.*)?$/i, Lt = 1e3, et = 18e6, Ge = function(c, g) {
4301
+ var w = c == null ? g : parseInt(c, 10);
4302
+ return w !== w && (w = g), tt(w);
4303
+ }, tt = function(c) {
4304
+ return Math.min(Math.max(c, Lt), et);
4305
+ }, we = function(c, g, w) {
4306
4306
  try {
4307
- typeof g == "function" && g.call(c, x);
4307
+ typeof g == "function" && g.call(c, w);
4308
4308
  } catch (m) {
4309
4309
  N(m);
4310
4310
  }
4311
4311
  };
4312
- function de(c, g) {
4312
+ function ce(c, g) {
4313
4313
  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, Mt(this, c, g);
4314
4314
  }
4315
- function tt() {
4315
+ function Rt() {
4316
4316
  return o != null && "withCredentials" in o.prototype || a == null ? new o() : new a();
4317
4317
  }
4318
- var Rt = b != null && d != null && "body" in d.prototype;
4319
- function Mt(c, g, x) {
4318
+ var nt = b != null && p != null && "body" in p.prototype;
4319
+ function Mt(c, g, w) {
4320
4320
  g = String(g);
4321
- var m = !!x.withCredentials, T = x.lastEventIdQueryParameterName || "lastEventId", S = Ne(1e3), C = et(x.heartbeatTimeout, 45e3), G = "", O = S, D = !1, h = 0, p = x.headers || {}, y = x.Transport, B = Rt && y == null ? void 0 : new k(y != null ? new y() : tt()), U = y != null && typeof y != "string" ? new y() : B == null ? new X() : new K(), H = void 0, E = 0, j = be, he = "", we = "", ge = "", Se = "", se = ae, Pt = 0, Ie = 0, Mr = function(ee, J, pe, me) {
4322
- if (j === ce)
4323
- if (ee === 200 && pe != null && Lt.test(pe)) {
4324
- j = v, D = Date.now(), O = S, c.readyState = v;
4325
- var ue = new fe("open", {
4321
+ var m = !!w.withCredentials, A = w.lastEventIdQueryParameterName || "lastEventId", S = tt(1e3), C = Ge(w.heartbeatTimeout, 45e3), G = "", O = S, D = !1, h = 0, d = w.headers || {}, v = w.Transport, T = nt && v == null ? void 0 : new k(v != null ? new v() : Rt()), U = v != null && typeof v != "string" ? new v() : T == null ? new X() : new K(), H = void 0, x = 0, j = me, he = "", Se = "", be = "", Be = "", ae = Ee, Pt = 0, De = 0, Mr = function(ee, J, de, pe) {
4322
+ if (j === le)
4323
+ if (ee === 200 && de != null && Ot.test(de)) {
4324
+ j = Oe, D = Date.now(), O = S, c.readyState = Oe;
4325
+ var se = new fe("open", {
4326
4326
  status: ee,
4327
4327
  statusText: J,
4328
- headers: me
4328
+ headers: pe
4329
4329
  });
4330
- c.dispatchEvent(ue), Ce(c, c.onopen, ue);
4330
+ c.dispatchEvent(se), we(c, c.onopen, se);
4331
4331
  } else {
4332
4332
  var ne = "";
4333
- ee !== 200 ? (J && (J = J.replace(/\s+/g, " ")), ne = "EventSource's response has a status " + ee + " " + J + " that is not 200. Aborting the connection.") : ne = "EventSource's response has a Content-Type specifying an unsupported type: " + (pe == null ? "-" : pe.replace(/\s+/g, " ")) + ". Aborting the connection.", Nt();
4334
- var ue = new fe("error", {
4333
+ ee !== 200 ? (J && (J = J.replace(/\s+/g, " ")), ne = "EventSource's response has a status " + ee + " " + J + " that is not 200. Aborting the connection.") : ne = "EventSource's response has a Content-Type specifying an unsupported type: " + (de == null ? "-" : de.replace(/\s+/g, " ")) + ". Aborting the connection.", Nt();
4334
+ var se = new fe("error", {
4335
4335
  status: ee,
4336
4336
  statusText: J,
4337
- headers: me
4337
+ headers: pe
4338
4338
  });
4339
- c.dispatchEvent(ue), Ce(c, c.onerror, ue), console.error(ne);
4339
+ c.dispatchEvent(se), we(c, c.onerror, se), console.error(ne);
4340
4340
  }
4341
4341
  }, Pr = function(ee) {
4342
- if (j === v) {
4343
- for (var J = -1, pe = 0; pe < ee.length; pe += 1) {
4344
- var me = ee.charCodeAt(pe);
4345
- (me === 10 || me === 13) && (J = pe);
4342
+ if (j === Oe) {
4343
+ for (var J = -1, de = 0; de < ee.length; de += 1) {
4344
+ var pe = ee.charCodeAt(de);
4345
+ (pe === 10 || pe === 13) && (J = de);
4346
4346
  }
4347
- var ue = (J !== -1 ? Se : "") + ee.slice(0, J + 1);
4348
- Se = (J === -1 ? Se : "") + ee.slice(J + 1), ee !== "" && (D = Date.now(), h += ee.length);
4349
- for (var ne = 0; ne < ue.length; ne += 1) {
4350
- var me = ue.charCodeAt(ne);
4351
- if (se === Je && me === 10)
4352
- se = ae;
4353
- else if (se === Je && (se = ae), me === 13 || me === 10) {
4354
- if (se !== ae) {
4355
- se === Pe && (Ie = ne + 1);
4356
- var He = ue.slice(Pt, Ie - 1), Oe = ue.slice(Ie + (Ie < ne && ue.charCodeAt(Ie) === 32 ? 1 : 0), ne);
4357
- He === "data" ? (he += `
4358
- `, he += Oe) : He === "id" ? we = Oe : He === "event" ? ge = Oe : He === "retry" ? (S = et(Oe, S), O = S) : He === "heartbeatTimeout" && (C = et(Oe, C), E !== 0 && (i(E), E = r(function() {
4359
- nt();
4347
+ var se = (J !== -1 ? Be : "") + ee.slice(0, J + 1);
4348
+ Be = (J === -1 ? Be : "") + ee.slice(J + 1), ee !== "" && (D = Date.now(), h += ee.length);
4349
+ for (var ne = 0; ne < se.length; ne += 1) {
4350
+ var pe = se.charCodeAt(ne);
4351
+ if (ae === Le && pe === 10)
4352
+ ae = Ee;
4353
+ else if (ae === Le && (ae = Ee), pe === 13 || pe === 10) {
4354
+ if (ae !== Ee) {
4355
+ ae === xe && (De = ne + 1);
4356
+ var Re = se.slice(Pt, De - 1), Me = se.slice(De + (De < ne && se.charCodeAt(De) === 32 ? 1 : 0), ne);
4357
+ Re === "data" ? (he += `
4358
+ `, he += Me) : Re === "id" ? Se = Me : Re === "event" ? be = Me : Re === "retry" ? (S = Ge(Me, S), O = S) : Re === "heartbeatTimeout" && (C = Ge(Me, C), x !== 0 && (i(x), x = r(function() {
4359
+ rt();
4360
4360
  }, C)));
4361
4361
  }
4362
- if (se === ae) {
4362
+ if (ae === Ee) {
4363
4363
  if (he !== "") {
4364
- G = we, ge === "" && (ge = "message");
4365
- var Fe = new z(ge, {
4364
+ G = Se, be === "" && (be = "message");
4365
+ var je = new z(be, {
4366
4366
  data: he.slice(1),
4367
- lastEventId: we
4367
+ lastEventId: Se
4368
4368
  });
4369
- if (c.dispatchEvent(Fe), ge === "open" ? Ce(c, c.onopen, Fe) : ge === "message" ? Ce(c, c.onmessage, Fe) : ge === "error" && Ce(c, c.onerror, Fe), j === Ee)
4369
+ if (c.dispatchEvent(je), be === "open" ? we(c, c.onopen, je) : be === "message" ? we(c, c.onmessage, je) : be === "error" && we(c, c.onerror, je), j === _)
4370
4370
  return;
4371
4371
  }
4372
- he = "", ge = "";
4372
+ he = "", be = "";
4373
4373
  }
4374
- se = me === 13 ? Je : ae;
4374
+ ae = pe === 13 ? Le : Ee;
4375
4375
  } else
4376
- se === ae && (Pt = ne, se = Pe), se === Pe ? me === 58 && (Ie = ne + 1, se = ht) : se === ht && (se = Ot);
4376
+ ae === Ee && (Pt = ne, ae = xe), ae === xe ? pe === 58 && (De = ne + 1, ae = Fe) : ae === Fe && (ae = Ht);
4377
4377
  }
4378
4378
  }
4379
4379
  }, yn = function(ee) {
4380
- if (j === v || j === ce) {
4381
- j = be, E !== 0 && (i(E), E = 0), E = r(function() {
4382
- nt();
4383
- }, O), O = Ne(Math.min(S * 16, O * 2)), c.readyState = ce;
4384
- var J = new Ae("error", { error: ee });
4385
- c.dispatchEvent(J), Ce(c, c.onerror, J), ee != null && console.error(ee);
4380
+ if (j === Oe || j === le) {
4381
+ j = me, x !== 0 && (i(x), x = 0), x = r(function() {
4382
+ rt();
4383
+ }, O), O = tt(Math.min(S * 16, O * 2)), c.readyState = le;
4384
+ var J = new He("error", { error: ee });
4385
+ c.dispatchEvent(J), we(c, c.onerror, J), ee != null && console.error(ee);
4386
4386
  }
4387
4387
  }, Nt = function() {
4388
- j = Ee, H != null && (H.abort(), H = void 0), E !== 0 && (i(E), E = 0), c.readyState = Ee;
4389
- }, nt = function() {
4390
- if (E = 0, j !== be) {
4388
+ j = _, H != null && (H.abort(), H = void 0), x !== 0 && (i(x), x = 0), c.readyState = _;
4389
+ }, rt = function() {
4390
+ if (x = 0, j !== me) {
4391
4391
  if (!D && H != null)
4392
- yn(new Error("No activity within " + C + " milliseconds. " + (j === ce ? "No response received." : h + " chars received.") + " Reconnecting.")), H != null && (H.abort(), H = void 0);
4392
+ yn(new Error("No activity within " + C + " milliseconds. " + (j === le ? "No response received." : h + " chars received.") + " Reconnecting.")), H != null && (H.abort(), H = void 0);
4393
4393
  else {
4394
4394
  var ee = Math.max((D || Date.now()) + C - Date.now(), 1);
4395
- D = !1, E = r(function() {
4396
- nt();
4395
+ D = !1, x = r(function() {
4396
+ rt();
4397
4397
  }, ee);
4398
4398
  }
4399
4399
  return;
4400
4400
  }
4401
- D = !1, h = 0, E = r(function() {
4402
- nt();
4403
- }, C), j = ce, he = "", ge = "", we = G, Se = "", Pt = 0, Ie = 0, se = ae;
4401
+ D = !1, h = 0, x = r(function() {
4402
+ rt();
4403
+ }, C), j = le, he = "", be = "", Se = G, Be = "", Pt = 0, De = 0, ae = Ee;
4404
4404
  var J = g;
4405
4405
  if (g.slice(0, 5) !== "data:" && g.slice(0, 5) !== "blob:" && G !== "") {
4406
- var pe = g.indexOf("?");
4407
- J = pe === -1 ? g : g.slice(0, pe + 1) + g.slice(pe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Oe, Fe) {
4408
- return Fe === T ? "" : Oe;
4409
- }), J += (g.indexOf("?") === -1 ? "?" : "&") + T + "=" + encodeURIComponent(G);
4406
+ var de = g.indexOf("?");
4407
+ J = de === -1 ? g : g.slice(0, de + 1) + g.slice(de + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Me, je) {
4408
+ return je === A ? "" : Me;
4409
+ }), J += (g.indexOf("?") === -1 ? "?" : "&") + A + "=" + encodeURIComponent(G);
4410
4410
  }
4411
- var me = c.withCredentials, ue = {};
4412
- ue.Accept = "text/event-stream";
4411
+ var pe = c.withCredentials, se = {};
4412
+ se.Accept = "text/event-stream";
4413
4413
  var ne = c.headers;
4414
4414
  if (ne != null)
4415
- for (var He in ne)
4416
- Object.prototype.hasOwnProperty.call(ne, He) && (ue[He] = ne[He]);
4415
+ for (var Re in ne)
4416
+ Object.prototype.hasOwnProperty.call(ne, Re) && (se[Re] = ne[Re]);
4417
4417
  try {
4418
- H = U.open(B, Mr, Pr, yn, J, me, ue);
4419
- } catch (Oe) {
4420
- throw Nt(), Oe;
4418
+ H = U.open(T, Mr, Pr, yn, J, pe, se);
4419
+ } catch (Me) {
4420
+ throw Nt(), Me;
4421
4421
  }
4422
4422
  };
4423
- c.url = g, c.readyState = ce, c.withCredentials = m, c.headers = p, c._close = Nt, nt();
4423
+ c.url = g, c.readyState = le, c.withCredentials = m, c.headers = d, c._close = Nt, rt();
4424
4424
  }
4425
- de.prototype = Object.create(F.prototype), de.prototype.CONNECTING = ce, de.prototype.OPEN = v, de.prototype.CLOSED = Ee, de.prototype.close = function() {
4425
+ ce.prototype = Object.create(F.prototype), ce.prototype.CONNECTING = le, ce.prototype.OPEN = Oe, ce.prototype.CLOSED = _, ce.prototype.close = function() {
4426
4426
  this._close();
4427
- }, de.CONNECTING = ce, de.OPEN = v, de.CLOSED = Ee, de.prototype.withCredentials = void 0;
4428
- var dt = l;
4429
- o != null && (l == null || !("withCredentials" in l.prototype)) && (dt = de), function(c) {
4427
+ }, ce.CONNECTING = le, ce.OPEN = Oe, ce.CLOSED = _, ce.prototype.withCredentials = void 0;
4428
+ var ft = l;
4429
+ o != null && (l == null || !("withCredentials" in l.prototype)) && (ft = ce), function(c) {
4430
4430
  {
4431
4431
  var g = c(t);
4432
4432
  g !== void 0 && (e.exports = g);
4433
4433
  }
4434
4434
  }(function(c) {
4435
- c.EventSourcePolyfill = de, c.NativeEventSource = l, c.EventSource = dt;
4435
+ c.EventSourcePolyfill = ce, c.NativeEventSource = l, c.EventSource = ft;
4436
4436
  });
4437
4437
  })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : di : globalThis);
4438
4438
  })(un, un.exports);
@@ -4459,7 +4459,7 @@ var ln = function(e, t) {
4459
4459
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
4460
4460
  }, ln(e, t);
4461
4461
  };
4462
- function ct(e, t) {
4462
+ function ht(e, t) {
4463
4463
  if (typeof t != "function" && t !== null)
4464
4464
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
4465
4465
  ln(e, t);
@@ -4506,7 +4506,7 @@ function fn(e, t, n) {
4506
4506
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
4507
4507
  return e.concat(o || t);
4508
4508
  }
4509
- function Re(e) {
4509
+ function Pe(e) {
4510
4510
  return typeof e == "function";
4511
4511
  }
4512
4512
  function Ar(e) {
@@ -4530,7 +4530,7 @@ function dn(e, t) {
4530
4530
  0 <= n && e.splice(n, 1);
4531
4531
  }
4532
4532
  }
4533
- var Ht = function() {
4533
+ var Ct = function() {
4534
4534
  function e(t) {
4535
4535
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
4536
4536
  }
@@ -4546,8 +4546,8 @@ var Ht = function() {
4546
4546
  var u = l.value;
4547
4547
  u.remove(this);
4548
4548
  }
4549
- } catch (A) {
4550
- t = { error: A };
4549
+ } catch (B) {
4550
+ t = { error: B };
4551
4551
  } finally {
4552
4552
  try {
4553
4553
  l && !l.done && (n = s.return) && n.call(s);
@@ -4559,29 +4559,29 @@ var Ht = function() {
4559
4559
  else
4560
4560
  a.remove(this);
4561
4561
  var f = this.initialTeardown;
4562
- if (Re(f))
4562
+ if (Pe(f))
4563
4563
  try {
4564
4564
  f();
4565
- } catch (A) {
4566
- o = A instanceof Zt ? A.errors : [A];
4565
+ } catch (B) {
4566
+ o = B instanceof Zt ? B.errors : [B];
4567
4567
  }
4568
4568
  var b = this._finalizers;
4569
4569
  if (b) {
4570
4570
  this._finalizers = null;
4571
4571
  try {
4572
- for (var d = cn(b), _ = d.next(); !_.done; _ = d.next()) {
4573
- var w = _.value;
4572
+ for (var p = cn(b), y = p.next(); !y.done; y = p.next()) {
4573
+ var E = y.value;
4574
4574
  try {
4575
- Un(w);
4576
- } catch (A) {
4577
- o = o != null ? o : [], A instanceof Zt ? o = fn(fn([], hn(o)), hn(A.errors)) : o.push(A);
4575
+ Un(E);
4576
+ } catch (B) {
4577
+ o = o != null ? o : [], B instanceof Zt ? o = fn(fn([], hn(o)), hn(B.errors)) : o.push(B);
4578
4578
  }
4579
4579
  }
4580
- } catch (A) {
4581
- r = { error: A };
4580
+ } catch (B) {
4581
+ r = { error: B };
4582
4582
  } finally {
4583
4583
  try {
4584
- _ && !_.done && (i = d.return) && i.call(d);
4584
+ y && !y.done && (i = p.return) && i.call(p);
4585
4585
  } finally {
4586
4586
  if (r)
4587
4587
  throw r.error;
@@ -4620,12 +4620,12 @@ var Ht = function() {
4620
4620
  var t = new e();
4621
4621
  return t.closed = !0, t;
4622
4622
  }(), e;
4623
- }(), Cr = Ht.EMPTY;
4623
+ }(), Cr = Ct.EMPTY;
4624
4624
  function Hr(e) {
4625
- return e instanceof Ht || e && "closed" in e && Re(e.remove) && Re(e.add) && Re(e.unsubscribe);
4625
+ return e instanceof Ct || e && "closed" in e && Pe(e.remove) && Pe(e.add) && Pe(e.unsubscribe);
4626
4626
  }
4627
4627
  function Un(e) {
4628
- Re(e) ? e() : e.unsubscribe();
4628
+ Pe(e) ? e() : e.unsubscribe();
4629
4629
  }
4630
4630
  var ia = {
4631
4631
  Promise: void 0
@@ -4647,11 +4647,11 @@ function aa(e) {
4647
4647
  }
4648
4648
  function Fn() {
4649
4649
  }
4650
- function vt(e) {
4650
+ function yt(e) {
4651
4651
  e();
4652
4652
  }
4653
4653
  var Or = function(e) {
4654
- ct(t, e);
4654
+ ht(t, e);
4655
4655
  function t(n) {
4656
4656
  var r = e.call(this) || this;
4657
4657
  return r.isStopped = !1, n ? (r.destination = n, Hr(n) && n.add(r)) : r.destination = la, r;
@@ -4681,7 +4681,7 @@ var Or = function(e) {
4681
4681
  this.unsubscribe();
4682
4682
  }
4683
4683
  }, t;
4684
- }(Ht), sa = function() {
4684
+ }(Ct), sa = function() {
4685
4685
  function e(t) {
4686
4686
  this.partialObserver = t;
4687
4687
  }
@@ -4691,7 +4691,7 @@ var Or = function(e) {
4691
4691
  try {
4692
4692
  n.next(t);
4693
4693
  } catch (r) {
4694
- mt(r);
4694
+ pt(r);
4695
4695
  }
4696
4696
  }, e.prototype.error = function(t) {
4697
4697
  var n = this.partialObserver;
@@ -4699,24 +4699,24 @@ var Or = function(e) {
4699
4699
  try {
4700
4700
  n.error(t);
4701
4701
  } catch (r) {
4702
- mt(r);
4702
+ pt(r);
4703
4703
  }
4704
4704
  else
4705
- mt(t);
4705
+ pt(t);
4706
4706
  }, e.prototype.complete = function() {
4707
4707
  var t = this.partialObserver;
4708
4708
  if (t.complete)
4709
4709
  try {
4710
4710
  t.complete();
4711
4711
  } catch (n) {
4712
- mt(n);
4712
+ pt(n);
4713
4713
  }
4714
4714
  }, e;
4715
4715
  }(), pn = function(e) {
4716
- ct(t, e);
4716
+ ht(t, e);
4717
4717
  function t(n, r, i) {
4718
4718
  var o = e.call(this) || this, a;
4719
- return Re(n) || !n ? a = {
4719
+ return Pe(n) || !n ? a = {
4720
4720
  next: n != null ? n : void 0,
4721
4721
  error: r != null ? r : void 0,
4722
4722
  complete: i != null ? i : void 0
@@ -4724,7 +4724,7 @@ var Or = function(e) {
4724
4724
  }
4725
4725
  return t;
4726
4726
  }(Or);
4727
- function mt(e) {
4727
+ function pt(e) {
4728
4728
  aa(e);
4729
4729
  }
4730
4730
  function ua(e) {
@@ -4757,7 +4757,7 @@ var Gn = function() {
4757
4757
  return n.source = this, n.operator = t, n;
4758
4758
  }, e.prototype.subscribe = function(t, n, r) {
4759
4759
  var i = this, o = pa(t) ? t : new pn(t, n, r);
4760
- return vt(function() {
4760
+ return yt(function() {
4761
4761
  var a = i, s = a.operator, l = a.source;
4762
4762
  o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4763
4763
  }), o;
@@ -4813,7 +4813,7 @@ function jn(e) {
4813
4813
  return (t = e != null ? e : ia.Promise) !== null && t !== void 0 ? t : Promise;
4814
4814
  }
4815
4815
  function da(e) {
4816
- return e && Re(e.next) && Re(e.error) && Re(e.complete);
4816
+ return e && Pe(e.next) && Pe(e.error) && Pe(e.complete);
4817
4817
  }
4818
4818
  function pa(e) {
4819
4819
  return e && e instanceof Or || da(e) && Hr(e);
@@ -4823,7 +4823,7 @@ var ma = Ar(function(e) {
4823
4823
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4824
4824
  };
4825
4825
  }), Lr = function(e) {
4826
- ct(t, e);
4826
+ ht(t, e);
4827
4827
  function t() {
4828
4828
  var n = e.call(this) || this;
4829
4829
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
@@ -4836,7 +4836,7 @@ var ma = Ar(function(e) {
4836
4836
  throw new ma();
4837
4837
  }, t.prototype.next = function(n) {
4838
4838
  var r = this;
4839
- vt(function() {
4839
+ yt(function() {
4840
4840
  var i, o;
4841
4841
  if (r._throwIfClosed(), !r.isStopped) {
4842
4842
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
@@ -4859,7 +4859,7 @@ var ma = Ar(function(e) {
4859
4859
  });
4860
4860
  }, t.prototype.error = function(n) {
4861
4861
  var r = this;
4862
- vt(function() {
4862
+ yt(function() {
4863
4863
  if (r._throwIfClosed(), !r.isStopped) {
4864
4864
  r.hasError = r.isStopped = !0, r.thrownError = n;
4865
4865
  for (var i = r.observers; i.length; )
@@ -4868,7 +4868,7 @@ var ma = Ar(function(e) {
4868
4868
  });
4869
4869
  }, t.prototype.complete = function() {
4870
4870
  var n = this;
4871
- vt(function() {
4871
+ yt(function() {
4872
4872
  if (n._throwIfClosed(), !n.isStopped) {
4873
4873
  n.isStopped = !0;
4874
4874
  for (var r = n.observers; r.length; )
@@ -4890,7 +4890,7 @@ var ma = Ar(function(e) {
4890
4890
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
4891
4891
  }, t.prototype._innerSubscribe = function(n) {
4892
4892
  var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
4893
- return o || a ? Cr : (this.currentObservers = null, s.push(n), new Ht(function() {
4893
+ return o || a ? Cr : (this.currentObservers = null, s.push(n), new Ct(function() {
4894
4894
  r.currentObservers = null, dn(s, n);
4895
4895
  }));
4896
4896
  }, t.prototype._checkFinalizedStatuses = function(n) {
@@ -4903,7 +4903,7 @@ var ma = Ar(function(e) {
4903
4903
  return new kn(n, r);
4904
4904
  }, t;
4905
4905
  }(Gn), kn = function(e) {
4906
- ct(t, e);
4906
+ ht(t, e);
4907
4907
  function t(n, r) {
4908
4908
  var i = e.call(this) || this;
4909
4909
  return i.destination = n, i.source = r, i;
@@ -4927,7 +4927,7 @@ var ma = Ar(function(e) {
4927
4927
  },
4928
4928
  delegate: void 0
4929
4929
  }, ba = function(e) {
4930
- ct(t, e);
4930
+ ht(t, e);
4931
4931
  function t(n, r, i) {
4932
4932
  n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = Rr);
4933
4933
  var o = e.call(this) || this;
@@ -4971,65 +4971,72 @@ function zn(e, t, n) {
4971
4971
  return r[63] = t[n], r;
4972
4972
  }
4973
4973
  function _a(e) {
4974
- let t, n, r, i, o, a, s, l, u, f, b, d = (
4974
+ let t, n, r, i, o, a, s, l, u, f, b, p, y = (
4975
4975
  /*showBalance*/
4976
4976
  e[5] && Wn(e)
4977
4977
  );
4978
4978
  return {
4979
4979
  c() {
4980
- t = V("button"), n = V("p"), n.textContent = `${/*renderPrimaryBalance*/
4981
- e[12]()}`, r = Te(), i = V("span"), o = En("svg"), a = En("path"), l = Te(), d && d.c(), u = Xr(), R(a, "id", "arrow"), R(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"), R(a, "transform", "translate(-274.511 -441.088)"), R(a, "fill", "#d1d1d1"), R(o, "xmlns", "http://www.w3.org/2000/svg"), R(o, "width", "14"), R(o, "height", "6.835"), R(o, "viewBox", "0 0 14 6.835"), R(i, "class", s = /*isModalDisplayed*/
4980
+ t = V("button"), n = V("p"), r = Ce(
4981
+ /*displayBalance*/
4982
+ e[7]
4983
+ ), i = Ae(), o = V("span"), a = En("svg"), s = En("path"), u = Ae(), y && y.c(), f = Xr(), R(s, "id", "arrow"), R(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"), R(s, "transform", "translate(-274.511 -441.088)"), R(s, "fill", "#d1d1d1"), R(a, "xmlns", "http://www.w3.org/2000/svg"), R(a, "width", "14"), R(a, "height", "6.835"), R(a, "viewBox", "0 0 14 6.835"), R(o, "class", l = /*isModalDisplayed*/
4982
4984
  e[4] ? "TriangleActive" : "TriangleInactive"), R(t, "class", "BalanceValue");
4983
4985
  },
4984
- m(_, w) {
4985
- xe(_, t, w), P(t, n), P(t, r), P(t, i), P(i, o), P(o, a), xe(_, l, w), d && d.m(_, w), xe(_, u, w), f || (b = ot(
4986
+ m(E, B) {
4987
+ _e(E, t, B), P(t, n), P(n, r), P(t, i), P(t, o), P(o, a), P(a, s), _e(E, u, B), y && y.m(E, B), _e(E, f, B), b || (p = at(
4986
4988
  t,
4987
4989
  "click",
4988
4990
  /*click_handler*/
4989
4991
  e[31]
4990
- ), f = !0);
4992
+ ), b = !0);
4991
4993
  },
4992
- p(_, w) {
4993
- w[0] & /*isModalDisplayed*/
4994
- 16 && s !== (s = /*isModalDisplayed*/
4995
- _[4] ? "TriangleActive" : "TriangleInactive") && R(i, "class", s), /*showBalance*/
4996
- _[5] ? d ? d.p(_, w) : (d = Wn(_), d.c(), d.m(u.parentNode, u)) : d && (d.d(1), d = null);
4994
+ p(E, B) {
4995
+ B[0] & /*displayBalance*/
4996
+ 128 && Ie(
4997
+ r,
4998
+ /*displayBalance*/
4999
+ E[7]
5000
+ ), B[0] & /*isModalDisplayed*/
5001
+ 16 && l !== (l = /*isModalDisplayed*/
5002
+ E[4] ? "TriangleActive" : "TriangleInactive") && R(o, "class", l), /*showBalance*/
5003
+ E[5] ? y ? y.p(E, B) : (y = Wn(E), y.c(), y.m(f.parentNode, f)) : y && (y.d(1), y = null);
4997
5004
  },
4998
- d(_) {
4999
- _ && (_e(t), _e(l), _e(u)), d && d.d(_), f = !1, b();
5005
+ d(E) {
5006
+ E && (ve(t), ve(u), ve(f)), y && y.d(E), b = !1, p();
5000
5007
  }
5001
5008
  };
5002
5009
  }
5003
5010
  function Ea(e) {
5004
5011
  let t, n = (
5005
5012
  /*$_*/
5006
- e[7]("Loading") + ""
5013
+ e[8]("Loading") + ""
5007
5014
  ), r;
5008
5015
  return {
5009
5016
  c() {
5010
- t = V("p"), r = Le(n), R(t, "class", "Loading");
5017
+ t = V("p"), r = Ce(n), R(t, "class", "Loading");
5011
5018
  },
5012
5019
  m(i, o) {
5013
- xe(i, t, o), P(t, r);
5020
+ _e(i, t, o), P(t, r);
5014
5021
  },
5015
5022
  p(i, o) {
5016
5023
  o[0] & /*$_*/
5017
- 128 && n !== (n = /*$_*/
5018
- i[7]("Loading") + "") && De(r, n);
5024
+ 256 && n !== (n = /*$_*/
5025
+ i[8]("Loading") + "") && Ie(r, n);
5019
5026
  },
5020
5027
  d(i) {
5021
- i && _e(t);
5028
+ i && ve(t);
5022
5029
  }
5023
5030
  };
5024
5031
  }
5025
5032
  function Wn(e) {
5026
5033
  let t, n, r, i, o, a, s, l, u = (
5027
5034
  /*$_*/
5028
- e[7]("Title") + ""
5029
- ), f, b, d, _, w, A, Q = (
5035
+ e[8]("Title") + ""
5036
+ ), f, b, p, y, E, B, Q = (
5030
5037
  /*$_*/
5031
- e[7]("DepositButton") + ""
5032
- ), re, oe, I, k, Z, ie, K, te = _t(Object.keys(
5038
+ e[8]("DepositButton") + ""
5039
+ ), re, oe, I, k, Z, ie, K, te = vt(Object.keys(
5033
5040
  /*balances*/
5034
5041
  e[2]
5035
5042
  )), X = [];
@@ -5041,28 +5048,28 @@ function Wn(e) {
5041
5048
  );
5042
5049
  return {
5043
5050
  c() {
5044
- t = V("div"), n = V("button"), i = Te(), o = V("div"), a = V("div"), s = V("div"), l = V("p"), f = Le(u), b = Te(), d = V("div");
5051
+ t = V("div"), n = V("button"), i = Ae(), o = V("div"), a = V("div"), s = V("div"), l = V("p"), f = Ce(u), b = Ae(), p = V("div");
5045
5052
  for (let N = 0; N < X.length; N += 1)
5046
5053
  X[N].c();
5047
- _ = Te(), w = V("div"), A = V("button"), re = Le(Q), oe = Te(), F && F.c(), R(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
5048
- (e[4] ? "Open" : "")), R(l, "class", "BalanceModalTitle"), R(s, "class", "BalanceModalHeader"), R(d, "class", "BalanceModalBody"), R(A, "class", "BalanceModalAction DepositButton"), R(w, "class", "BalanceModalFooter"), R(a, "class", I = "ModalContent " + /*isModalDisplayed*/
5054
+ y = Ae(), E = V("div"), B = V("button"), re = Ce(Q), oe = Ae(), F && F.c(), R(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
5055
+ (e[4] ? "Open" : "")), R(l, "class", "BalanceModalTitle"), R(s, "class", "BalanceModalHeader"), R(p, "class", "BalanceModalBody"), R(B, "class", "BalanceModalAction DepositButton"), R(E, "class", "BalanceModalFooter"), R(a, "class", I = "ModalContent " + /*isModalDisplayed*/
5049
5056
  (e[4] ? "Open" : "")), R(o, "class", k = "BalanceModal " + /*isModalDisplayed*/
5050
5057
  (e[4] ? "Open" : "")), R(t, "class", Z = "BalanceModalWrapper " + /*isModalDisplayed*/
5051
5058
  (e[4] ? "Open" : ""));
5052
5059
  },
5053
5060
  m(N, q) {
5054
- xe(N, t, q), P(t, n), P(t, i), P(t, o), P(o, a), P(a, s), P(s, l), P(l, f), P(a, b), P(a, d);
5061
+ _e(N, t, q), P(t, n), P(t, i), P(t, o), P(o, a), P(a, s), P(s, l), P(l, f), P(a, b), P(a, p);
5055
5062
  for (let z = 0; z < X.length; z += 1)
5056
- X[z] && X[z].m(d, null);
5057
- P(a, _), P(a, w), P(w, A), P(A, re), P(w, oe), F && F.m(w, null), ie || (K = [
5058
- ot(
5063
+ X[z] && X[z].m(p, null);
5064
+ P(a, y), P(a, E), P(E, B), P(B, re), P(E, oe), F && F.m(E, null), ie || (K = [
5065
+ at(
5059
5066
  n,
5060
5067
  "click",
5061
5068
  /*click_handler_1*/
5062
5069
  e[32]
5063
5070
  ),
5064
- ot(
5065
- A,
5071
+ at(
5072
+ B,
5066
5073
  "click",
5067
5074
  /*click_handler_2*/
5068
5075
  e[33]
@@ -5073,26 +5080,26 @@ function Wn(e) {
5073
5080
  if (q[0] & /*isModalDisplayed*/
5074
5081
  16 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
5075
5082
  (N[4] ? "Open" : "")) && R(n, "class", r), q[0] & /*$_*/
5076
- 128 && u !== (u = /*$_*/
5077
- N[7]("Title") + "") && De(f, u), q[0] & /*balances, formatBalance, getProductType, $_*/
5078
- 2692) {
5079
- te = _t(Object.keys(
5083
+ 256 && u !== (u = /*$_*/
5084
+ N[8]("Title") + "") && Ie(f, u), q[0] & /*balances, formatBalance, getProductType, $_*/
5085
+ 5380) {
5086
+ te = vt(Object.keys(
5080
5087
  /*balances*/
5081
5088
  N[2]
5082
5089
  ));
5083
5090
  let z;
5084
5091
  for (z = 0; z < te.length; z += 1) {
5085
5092
  const fe = Xn(N, te, z);
5086
- X[z] ? X[z].p(fe, q) : (X[z] = qn(fe), X[z].c(), X[z].m(d, null));
5093
+ X[z] ? X[z].p(fe, q) : (X[z] = qn(fe), X[z].c(), X[z].m(p, null));
5087
5094
  }
5088
5095
  for (; z < X.length; z += 1)
5089
5096
  X[z].d(1);
5090
5097
  X.length = te.length;
5091
5098
  }
5092
5099
  q[0] & /*$_*/
5093
- 128 && Q !== (Q = /*$_*/
5094
- N[7]("DepositButton") + "") && De(re, Q), /*balancelimitsbutton*/
5095
- N[0] === "true" ? F ? F.p(N, q) : (F = Yn(N), F.c(), F.m(w, null)) : F && (F.d(1), F = null), q[0] & /*isModalDisplayed*/
5100
+ 256 && Q !== (Q = /*$_*/
5101
+ N[8]("DepositButton") + "") && Ie(re, Q), /*balancelimitsbutton*/
5102
+ N[0] === "true" ? F ? F.p(N, q) : (F = Yn(N), F.c(), F.m(E, null)) : F && (F.d(1), F = null), q[0] & /*isModalDisplayed*/
5096
5103
  16 && I !== (I = "ModalContent " + /*isModalDisplayed*/
5097
5104
  (N[4] ? "Open" : "")) && R(a, "class", I), q[0] & /*isModalDisplayed*/
5098
5105
  16 && k !== (k = "BalanceModal " + /*isModalDisplayed*/
@@ -5101,62 +5108,62 @@ function Wn(e) {
5101
5108
  (N[4] ? "Open" : "")) && R(t, "class", Z);
5102
5109
  },
5103
5110
  d(N) {
5104
- N && _e(t), tr(X, N), F && F.d(), ie = !1, Ze(K);
5111
+ N && ve(t), tr(X, N), F && F.d(), ie = !1, Ye(K);
5105
5112
  }
5106
5113
  };
5107
5114
  }
5108
5115
  function Zn(e) {
5109
5116
  let t, n, r = (
5110
5117
  /*$_*/
5111
- e[7](
5118
+ e[8](
5112
5119
  /*k*/
5113
5120
  e[60]
5114
5121
  ) + ""
5115
5122
  ), i, o, a = (
5116
5123
  /*getProductType*/
5117
- e[11](
5124
+ e[12](
5118
5125
  /*balance*/
5119
5126
  e[63]
5120
5127
  ) + ""
5121
5128
  ), s, l, u, f, b = (
5122
5129
  /*formatBalance*/
5123
- e[9](
5130
+ e[10](
5124
5131
  /*balance*/
5125
5132
  e[63].amount
5126
5133
  ) + ""
5127
- ), d;
5134
+ ), p;
5128
5135
  return {
5129
5136
  c() {
5130
- t = V("div"), n = V("p"), i = Le(r), o = Te(), s = Le(a), l = Te(), u = V("p"), f = V("span"), d = Le(b), R(n, "class", "BalanceModalText"), R(f, "class", "BalanceModalAmount"), R(u, "class", "BalanceModalValue"), R(t, "class", "BalanceModalRowLine");
5137
+ t = V("div"), n = V("p"), i = Ce(r), o = Ae(), s = Ce(a), l = Ae(), u = V("p"), f = V("span"), p = Ce(b), R(n, "class", "BalanceModalText"), R(f, "class", "BalanceModalAmount"), R(u, "class", "BalanceModalValue"), R(t, "class", "BalanceModalRowLine");
5131
5138
  },
5132
- m(_, w) {
5133
- xe(_, t, w), P(t, n), P(n, i), P(n, o), P(n, s), P(t, l), P(t, u), P(u, f), P(f, d);
5139
+ m(y, E) {
5140
+ _e(y, t, E), P(t, n), P(n, i), P(n, o), P(n, s), P(t, l), P(t, u), P(u, f), P(f, p);
5134
5141
  },
5135
- p(_, w) {
5136
- w[0] & /*$_, balances*/
5137
- 132 && r !== (r = /*$_*/
5138
- _[7](
5142
+ p(y, E) {
5143
+ E[0] & /*$_, balances*/
5144
+ 260 && r !== (r = /*$_*/
5145
+ y[8](
5139
5146
  /*k*/
5140
- _[60]
5141
- ) + "") && De(i, r), w[0] & /*balances*/
5147
+ y[60]
5148
+ ) + "") && Ie(i, r), E[0] & /*balances*/
5142
5149
  4 && a !== (a = /*getProductType*/
5143
- _[11](
5150
+ y[12](
5144
5151
  /*balance*/
5145
- _[63]
5146
- ) + "") && De(s, a), w[0] & /*balances*/
5152
+ y[63]
5153
+ ) + "") && Ie(s, a), E[0] & /*balances*/
5147
5154
  4 && b !== (b = /*formatBalance*/
5148
- _[9](
5155
+ y[10](
5149
5156
  /*balance*/
5150
- _[63].amount
5151
- ) + "") && De(d, b);
5157
+ y[63].amount
5158
+ ) + "") && Ie(p, b);
5152
5159
  },
5153
- d(_) {
5154
- _ && _e(t);
5160
+ d(y) {
5161
+ y && ve(t);
5155
5162
  }
5156
5163
  };
5157
5164
  }
5158
5165
  function qn(e) {
5159
- let t, n, r = _t(
5166
+ let t, n, r = vt(
5160
5167
  /*balances*/
5161
5168
  e[2][
5162
5169
  /*k*/
@@ -5170,18 +5177,18 @@ function qn(e) {
5170
5177
  t = V("div");
5171
5178
  for (let o = 0; o < i.length; o += 1)
5172
5179
  i[o].c();
5173
- n = Te(), R(t, "class", "BalanceModalRowBoth");
5180
+ n = Ae(), R(t, "class", "BalanceModalRowBoth");
5174
5181
  },
5175
5182
  m(o, a) {
5176
- xe(o, t, a);
5183
+ _e(o, t, a);
5177
5184
  for (let s = 0; s < i.length; s += 1)
5178
5185
  i[s] && i[s].m(t, null);
5179
5186
  P(t, n);
5180
5187
  },
5181
5188
  p(o, a) {
5182
5189
  if (a[0] & /*formatBalance, balances, getProductType, $_*/
5183
- 2692) {
5184
- r = _t(
5190
+ 5380) {
5191
+ r = vt(
5185
5192
  /*balances*/
5186
5193
  o[2][
5187
5194
  /*k*/
@@ -5199,21 +5206,21 @@ function qn(e) {
5199
5206
  }
5200
5207
  },
5201
5208
  d(o) {
5202
- o && _e(t), tr(i, o);
5209
+ o && ve(t), tr(i, o);
5203
5210
  }
5204
5211
  };
5205
5212
  }
5206
5213
  function Yn(e) {
5207
5214
  let t, n = (
5208
5215
  /*$_*/
5209
- e[7]("LimitsButton") + ""
5216
+ e[8]("LimitsButton") + ""
5210
5217
  ), r, i, o;
5211
5218
  return {
5212
5219
  c() {
5213
- t = V("button"), r = Le(n), R(t, "class", "BalanceModalAction LimitsButton");
5220
+ t = V("button"), r = Ce(n), R(t, "class", "BalanceModalAction LimitsButton");
5214
5221
  },
5215
5222
  m(a, s) {
5216
- xe(a, t, s), P(t, r), i || (o = ot(
5223
+ _e(a, t, s), P(t, r), i || (o = at(
5217
5224
  t,
5218
5225
  "click",
5219
5226
  /*click_handler_3*/
@@ -5222,11 +5229,11 @@ function Yn(e) {
5222
5229
  },
5223
5230
  p(a, s) {
5224
5231
  s[0] & /*$_*/
5225
- 128 && n !== (n = /*$_*/
5226
- a[7]("LimitsButton") + "") && De(r, n);
5232
+ 256 && n !== (n = /*$_*/
5233
+ a[8]("LimitsButton") + "") && Ie(r, n);
5227
5234
  },
5228
5235
  d(a) {
5229
- a && _e(t), i = !1, o();
5236
+ a && ve(t), i = !1, o();
5230
5237
  }
5231
5238
  };
5232
5239
  }
@@ -5237,16 +5244,16 @@ function Qn(e) {
5237
5244
  t = V("button"), R(t, "class", "ShowBalanceModalOverlay");
5238
5245
  },
5239
5246
  m(i, o) {
5240
- xe(i, t, o), n || (r = ot(
5247
+ _e(i, t, o), n || (r = at(
5241
5248
  t,
5242
5249
  "click",
5243
5250
  /*click_handler_4*/
5244
5251
  e[35]
5245
5252
  ), n = !0);
5246
5253
  },
5247
- p: ve,
5254
+ p: ye,
5248
5255
  d(i) {
5249
- i && _e(t), n = !1, r();
5256
+ i && ve(t), n = !1, r();
5250
5257
  }
5251
5258
  };
5252
5259
  }
@@ -5264,11 +5271,11 @@ function xa(e) {
5264
5271
  );
5265
5272
  return {
5266
5273
  c() {
5267
- t = V("div"), n = V("div"), s.c(), i = Te(), l && l.c(), R(n, "class", r = "ShowBalance " + /*mobileView*/
5274
+ t = V("div"), n = V("div"), s.c(), i = Ae(), l && l.c(), R(n, "class", r = "ShowBalance " + /*mobileView*/
5268
5275
  (e[6] ? "Mobile" : ""));
5269
5276
  },
5270
5277
  m(u, f) {
5271
- xe(u, t, f), P(t, n), s.m(n, null), P(t, i), l && l.m(t, null), e[36](t);
5278
+ _e(u, t, f), P(t, n), s.m(n, null), P(t, i), l && l.m(t, null), e[36](t);
5272
5279
  },
5273
5280
  p(u, f) {
5274
5281
  a === (a = o(u)) && s ? s.p(u, f) : (s.d(1), s = a(u), s && (s.c(), s.m(n, null))), f[0] & /*mobileView*/
@@ -5276,22 +5283,22 @@ function xa(e) {
5276
5283
  (u[6] ? "Mobile" : "")) && R(n, "class", r), /*showBalance*/
5277
5284
  u[5] ? l ? l.p(u, f) : (l = Qn(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
5278
5285
  },
5279
- i: ve,
5280
- o: ve,
5286
+ i: ye,
5287
+ o: ye,
5281
5288
  d(u) {
5282
- u && _e(t), s.d(), l && l.d(), e[36](null);
5289
+ u && ve(t), s.d(), l && l.d(), e[36](null);
5283
5290
  }
5284
5291
  };
5285
5292
  }
5286
5293
  function wa(e, t, n) {
5287
5294
  let r;
5288
- jr(e, ta, (h) => n(7, r = h));
5289
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { lang: s = "en" } = t, { mbsource: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: d = "gm16" } = t, { displaybalanceoption: _ = "All" } = t, { totalcalculationmode: w = "totalCashAmount" } = t, { primarybalancemode: A } = t, { balancelimitsbutton: Q = "false" } = t, { hideproducttype: re = "" } = t, { currencylocale: oe = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: k = "2" } = t, { minimumfractiondigits: Z = "0" } = t, { customdisplayformat: ie = "" } = t, K, te = !0, X = !1, F = !1, N = !1, q = !1, z = window.navigator.userAgent, fe, Ae = "", be = [], ce;
5290
- const v = {}, Ee = ["totalCashAmount", "totalRealAmount"], Je = () => {
5291
- fetch(b).then((h) => h.json()).then((h) => Object.keys(h).forEach((p) => In(p, h[p]))).catch((h) => console.log(h));
5295
+ jr(e, ta, (h) => n(8, r = h));
5296
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { lang: s = "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: re = "" } = t, { currencylocale: oe = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: k = "2" } = t, { minimumfractiondigits: Z = "0" } = t, { customdisplayformat: ie = "" } = t, K, te = !0, X = !1, F = !1, N = !1, q = !1, z = window.navigator.userAgent, fe, He = "", me = [], le, Oe = "0";
5297
+ const _ = {}, Le = ["totalCashAmount", "totalRealAmount"], Ee = () => {
5298
+ fetch(b).then((h) => h.json()).then((h) => Object.keys(h).forEach((d) => In(d, h[d]))).catch((h) => console.log(h));
5292
5299
  };
5293
5300
  Object.keys(Dn).forEach((h) => In(h, Dn[h]));
5294
- const ae = (h) => {
5301
+ const xe = (h) => {
5295
5302
  switch (h) {
5296
5303
  case "balance":
5297
5304
  window.postMessage(
@@ -5317,48 +5324,48 @@ function wa(e, t, n) {
5317
5324
  );
5318
5325
  break;
5319
5326
  }
5320
- }, Pe = (h) => {
5327
+ }, Fe = (h) => {
5321
5328
  if (ie)
5322
- return ht(h);
5323
- const p = oe || s, y = {
5329
+ return Ht(h);
5330
+ const d = oe || s, v = {
5324
5331
  style: "currency",
5325
- currency: Ae,
5332
+ currency: He,
5326
5333
  useGrouping: !0,
5327
5334
  currencyDisplay: I || "code",
5328
5335
  maximumFractionDigits: k === "" || isNaN(Number(k)) ? 2 : Number(k),
5329
5336
  minimumFractionDigits: Z === "" || isNaN(Number(Z)) ? 0 : Number(Z)
5330
5337
  };
5331
- return new Intl.NumberFormat(p, y).format(h);
5332
- }, ht = (h) => {
5333
- const p = [];
5334
- let y = "";
5335
- for (const B of ie)
5336
- switch (B) {
5338
+ return new Intl.NumberFormat(d, v).format(h);
5339
+ }, Ht = (h) => {
5340
+ const d = [];
5341
+ let v = "";
5342
+ for (const T of ie)
5343
+ switch (T) {
5337
5344
  default:
5338
- y += B;
5345
+ v += T;
5339
5346
  break;
5340
5347
  case "{":
5341
- y && p.push(y), y = "";
5348
+ v && d.push(v), v = "";
5342
5349
  break;
5343
5350
  case "}":
5344
- const [U, H] = y.split("|");
5345
- if (y = "", U.toLowerCase() === "currency")
5346
- y = Ae;
5351
+ const [U, H] = v.split("|");
5352
+ if (v = "", U.toLowerCase() === "currency")
5353
+ v = He;
5347
5354
  else if (U.toLowerCase() === "amount") {
5348
- let E = ",", j = ".", he = 2;
5349
- H && (H[0] !== " " && (E = H[0]), H[1] !== " " && (j = H[1]), H[2] !== " " && !isNaN(Number(H[2])) && (he = Number(H[2])));
5350
- let [we, ge] = String(Math.floor(h * Dt(10, he)) / Dt(10, he)).split(".");
5351
- y += we[0];
5352
- for (let Se = 1; Se < we.length; ++Se)
5353
- (we.length - Se) % 3 === 0 ? y += E + we[Se] : y += we[Se];
5354
- ge && (y += j + ge);
5355
+ let x = ",", j = ".", he = 2;
5356
+ H && (H[0] !== " " && (x = H[0]), H[1] !== " " && (j = H[1]), H[2] !== " " && !isNaN(Number(H[2])) && (he = Number(H[2])));
5357
+ let [Se, be] = String(Math.floor(h * Dt(10, he)) / Dt(10, he)).split(".");
5358
+ v += Se[0];
5359
+ for (let Be = 1; Be < Se.length; ++Be)
5360
+ (Se.length - Be) % 3 === 0 ? v += x + Se[Be] : v += Se[Be];
5361
+ be && (v += j + be);
5355
5362
  }
5356
- y && p.push(y), y = "";
5363
+ v && d.push(v), v = "";
5357
5364
  break;
5358
5365
  }
5359
- return p.push(y), p.join("");
5366
+ return d.push(v), d.join("");
5360
5367
  }, Ot = () => Gt(this, null, function* () {
5361
- var p, y, B;
5368
+ var d, v, T;
5362
5369
  n(3, te = !0);
5363
5370
  const h = new URL(`${a}/v1/player/${i}/account`);
5364
5371
  try {
@@ -5367,22 +5374,22 @@ function wa(e, t, n) {
5367
5374
  headers: { "X-SessionID": o }
5368
5375
  }), H = yield U.json();
5369
5376
  if (U.ok)
5370
- window.postMessage({ type: "BalancedFetched" }, window.location.href), be = H.items, Ae = (p = be.find((E) => E.displayName === "Casino")) == null ? void 0 : p.currency, n(2, v.Total = [{ amount: H.totalAmount[Ae] }], v), n(
5377
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), me = H.items, He = (d = me.find((x) => x.displayName === "Casino")) == null ? void 0 : d.currency, n(2, _.Total = [{ amount: H.totalAmount[He] }], _), n(
5371
5378
  2,
5372
- v.Real = [
5379
+ _.Real = [
5373
5380
  {
5374
- amount: (y = be.find((E) => E.displayName === "Casino")) == null ? void 0 : y.balanceAmount
5381
+ amount: (v = me.find((x) => x.displayName === "Casino")) == null ? void 0 : v.balanceAmount
5375
5382
  }
5376
5383
  ],
5377
- v
5384
+ _
5378
5385
  ), n(
5379
5386
  2,
5380
- v.Bonus = [
5387
+ _.Bonus = [
5381
5388
  {
5382
- amount: (B = be.find((E) => E.displayName === "UBS")) == null ? void 0 : B.balanceAmount
5389
+ amount: (T = me.find((x) => x.displayName === "UBS")) == null ? void 0 : T.balanceAmount
5383
5390
  }
5384
5391
  ],
5385
- v
5392
+ _
5386
5393
  );
5387
5394
  else
5388
5395
  throw new Error("Failed to fetch balance data !");
@@ -5393,32 +5400,32 @@ function wa(e, t, n) {
5393
5400
  }
5394
5401
  }), Lt = () => {
5395
5402
  n(3, te = !0);
5396
- const h = new URL(`${a}/v2/player/${i}/balance`), p = new Headers();
5397
- p.append("X-SessionID", o), fetch(h, { method: "GET", headers: p }).then((B) => B.json()).then((B) => {
5398
- B[w] || n(13, w = Ee[0]);
5399
- const U = B.items.find((E) => E.type === "Real" && E.walletAccountType === "Ordinary");
5400
- if (Ae = U.currency, F = !!U.productType, n(2, v.Total = [{ amount: 0 }], v), n(2, v.Real = [], v), n(2, v.Bonus = [], v), n(2, v.Credit = [], v), !F) {
5401
- ce = {
5403
+ const h = new URL(`${a}/v2/player/${i}/balance`), d = new Headers();
5404
+ d.append("X-SessionID", o), fetch(h, { method: "GET", headers: d }).then((T) => T.json()).then((T) => {
5405
+ T[E] || n(13, E = Le[0]);
5406
+ const U = T.items.find((x) => x.type === "Real" && x.walletAccountType === "Ordinary");
5407
+ if (He = U.currency, F = !!U.productType, n(2, _.Total = [{ amount: 0 }], _), n(2, _.Real = [], _), n(2, _.Bonus = [], _), n(2, _.Credit = [], _), !F) {
5408
+ le = {
5402
5409
  lastOrdinaryAfterAmount: 0,
5403
5410
  showCreditLineAfterAmount: !1
5404
- }, n(2, v.Total[0].amount = B[w][Ae], v);
5405
- for (const E of B.items)
5406
- switch (E.type) {
5411
+ }, n(2, _.Total[0].amount = T[E][He], _);
5412
+ for (const x of T.items)
5413
+ switch (x.type) {
5407
5414
  case "Bonus":
5408
- v.Bonus.length === 0 ? v.Bonus.push({ amount: E.amount }) : n(2, v.Bonus[0].amount += E.amount, v);
5415
+ _.Bonus.length === 0 ? _.Bonus.push({ amount: x.amount }) : n(2, _.Bonus[0].amount += x.amount, _);
5409
5416
  break;
5410
5417
  case "Real":
5411
- if (E.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: E.creditLine }), w === "totalRealAmount")
5418
+ if (x.creditLine && _.Credit.length === 0 && _.Credit.push({ amount: x.creditLine }), E === "totalRealAmount")
5412
5419
  continue;
5413
- v.Real.length === 0 ? v.Real.push({ amount: E.amount }) : n(2, v.Real[0].amount += E.amount, v);
5420
+ _.Real.length === 0 ? _.Real.push({ amount: x.amount }) : n(2, _.Real[0].amount += x.amount, _);
5414
5421
  break;
5415
5422
  }
5416
- for (const [E, j] of Object.entries(v))
5417
- j.length < 1 && delete v[E];
5423
+ for (const [x, j] of Object.entries(_))
5424
+ j.length < 1 && delete _[x];
5418
5425
  n(3, te = !1);
5419
5426
  return;
5420
5427
  }
5421
- ce = {
5428
+ le = {
5422
5429
  Casino: {
5423
5430
  lastOrdinaryAfterAmount: 0,
5424
5431
  showCreditLineAfterAmount: !1
@@ -5428,124 +5435,124 @@ function wa(e, t, n) {
5428
5435
  showCreditLineAfterAmount: !1
5429
5436
  }
5430
5437
  };
5431
- let H = B.items;
5432
- _ && _ !== "All" && (H = B.items.filter((E) => E.productType === _));
5433
- for (const E of H) {
5438
+ let H = T.items;
5439
+ y && y !== "All" && (H = T.items.filter((x) => x.productType === y));
5440
+ for (const x of H) {
5434
5441
  let j;
5435
- switch (E.type) {
5442
+ switch (x.type) {
5436
5443
  case "Bonus":
5437
- j = v.Bonus.findIndex((he) => he.productType === E.productType), j > 0 ? n(2, v.Bonus[j].amount += E.amount, v) : v.Bonus.push({
5438
- amount: E.amount,
5439
- productType: E.productType
5444
+ j = _.Bonus.findIndex((he) => he.productType === x.productType), j > 0 ? n(2, _.Bonus[j].amount += x.amount, _) : _.Bonus.push({
5445
+ amount: x.amount,
5446
+ productType: x.productType
5440
5447
  });
5441
5448
  break;
5442
5449
  case "Real":
5443
- E.creditLine && v.Credit.push({
5444
- amount: E.creditLine,
5445
- productType: E.productType
5446
- }), j = v.Real.findIndex((he) => he.productType === E.productType), j > 0 ? n(2, v.Real[j].amount += E.amount, v) : v.Real.push({
5447
- amount: E.amount,
5448
- productType: E.productType
5450
+ x.creditLine && _.Credit.push({
5451
+ amount: x.creditLine,
5452
+ productType: x.productType
5453
+ }), j = _.Real.findIndex((he) => he.productType === x.productType), j > 0 ? n(2, _.Real[j].amount += x.amount, _) : _.Real.push({
5454
+ amount: x.amount,
5455
+ productType: x.productType
5449
5456
  });
5450
5457
  break;
5451
5458
  }
5452
5459
  }
5453
- Ce();
5454
- for (const [E, j] of Object.entries(v))
5455
- j.length < 1 && delete v[E];
5456
- window.postMessage({ type: "playerBalanceInfo", balance: B }, window.location.href), n(3, te = !1);
5457
- }).catch((B) => {
5458
- throw n(3, te = !1), console.log("Balance fetch error", B), new Error("Failed to fetch balance data!");
5460
+ ce();
5461
+ for (const [x, j] of Object.entries(_))
5462
+ j.length < 1 && delete _[x];
5463
+ window.postMessage({ type: "playerBalanceInfo", balance: T }, window.location.href), n(3, te = !1);
5464
+ }).catch((T) => {
5465
+ throw n(3, te = !1), console.log("Balance fetch error", T), new Error("Failed to fetch balance data!");
5459
5466
  });
5460
- }, Ke = () => {
5467
+ }, et = () => {
5461
5468
  if (fe && fe.close(), o.length < 1)
5462
5469
  return;
5463
- let h, p;
5464
- switch (d) {
5470
+ let h, d;
5471
+ switch (p) {
5465
5472
  case "gm16":
5466
- h = new URL(`${a}/v2/player/${i}/information/updates`), p = (U) => de(U);
5473
+ h = new URL(`${a}/v2/player/${i}/information/updates`), d = (U) => Rt(U);
5467
5474
  break;
5468
5475
  case "gmcore":
5469
- h = new URL(`${a}/v1/player/${i}/balance/updates`), p = (U) => et(U);
5476
+ h = new URL(`${a}/v1/player/${i}/balance/updates`), d = (U) => tt(U);
5470
5477
  break;
5471
5478
  }
5472
- const y = {
5479
+ const v = {
5473
5480
  accept: "text/event-stream",
5474
5481
  "X-SessionId": o
5475
- }, B = new ra.EventSourcePolyfill(h, { headers: y });
5476
- fe = B, B.addEventListener("message", p);
5477
- }, ft = (h) => {
5478
- let p;
5482
+ }, T = new ra.EventSourcePolyfill(h, { headers: v });
5483
+ fe = T, T.addEventListener("message", d);
5484
+ }, Ge = (h) => {
5485
+ let d;
5479
5486
  try {
5480
- p = JSON.parse(h);
5481
- } catch (y) {
5482
- console.log("Balance stream failed: ", y);
5487
+ d = JSON.parse(h);
5488
+ } catch (v) {
5489
+ console.log("Balance stream failed: ", v);
5483
5490
  return;
5484
5491
  }
5485
- return p;
5486
- }, et = (h) => {
5492
+ return d;
5493
+ }, tt = (h) => {
5487
5494
  var U, H;
5488
- const p = ft(h.data);
5489
- if (!p) {
5490
- Ke();
5495
+ const d = Ge(h.data);
5496
+ if (!d) {
5497
+ et();
5491
5498
  return;
5492
5499
  }
5493
- let y = "0";
5494
- const B = p.balanceChange;
5495
- be = be.map((E) => (B && B[E.id] && (E = Ft(Ut({}, E), {
5496
- balanceAmount: B[E.id].afterAmount
5497
- })), y = (parseFloat(E == null ? void 0 : E.balanceAmount) + parseFloat(y)).toString(), E)), n(2, v.Real = [{ amount: (U = be[0]) == null ? void 0 : U.balanceAmount }], v), n(2, v.Bonus = [{ amount: (H = be[1]) == null ? void 0 : H.balanceAmount }], v), n(2, v.Total = [{ amount: Number(y) }], v);
5498
- }, Ne = (h, p, y) => {
5499
- let B = null;
5500
- switch (y.walletAccountType) {
5500
+ let v = "0";
5501
+ const T = d.balanceChange;
5502
+ me = me.map((x) => (T && T[x.id] && (x = Ft(Ut({}, x), {
5503
+ balanceAmount: T[x.id].afterAmount
5504
+ })), v = (parseFloat(x == null ? void 0 : x.balanceAmount) + parseFloat(v)).toString(), x)), n(2, _.Real = [{ amount: (U = me[0]) == null ? void 0 : U.balanceAmount }], _), n(2, _.Bonus = [{ amount: (H = me[1]) == null ? void 0 : H.balanceAmount }], _), n(2, _.Total = [{ amount: Number(v) }], _);
5505
+ }, we = (h, d, v) => {
5506
+ let T = null;
5507
+ switch (v.walletAccountType) {
5501
5508
  case "Ordinary":
5502
- (y.afterAmount !== y.affectedAmount || p.lastOrdinaryAfterAmount === 0) && (p.lastOrdinaryAfterAmount = y.afterAmount, p.showCreditLineAfterAmount || (B = y.afterAmount));
5509
+ (v.afterAmount !== v.affectedAmount || d.lastOrdinaryAfterAmount === 0) && (d.lastOrdinaryAfterAmount = v.afterAmount, d.showCreditLineAfterAmount || (T = v.afterAmount));
5503
5510
  break;
5504
5511
  case "CreditLine":
5505
- y.afterAmount !== 0 ? (B = y.afterAmount, p.showCreditLineAfterAmount = !0) : (B = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
5512
+ v.afterAmount !== 0 ? (T = v.afterAmount, d.showCreditLineAfterAmount = !0) : (T = d.lastOrdinaryAfterAmount, d.showCreditLineAfterAmount = !1);
5506
5513
  break;
5507
5514
  default:
5508
- B = y.afterAmount;
5515
+ T = v.afterAmount;
5509
5516
  }
5510
- return B === null ? h : B;
5511
- }, Ce = () => {
5512
- switch (w) {
5517
+ return T === null ? h : T;
5518
+ }, ce = () => {
5519
+ switch (E) {
5513
5520
  case "totalCashAmount":
5514
5521
  let h = 0;
5515
- for (const y of ["Real", "Bonus"])
5516
- for (const B of v[y])
5517
- h += Math.max(B.amount, 0);
5518
- n(2, v.Total[0].amount = h, v);
5522
+ for (const v of ["Real", "Bonus"])
5523
+ for (const T of _[v])
5524
+ h += Math.max(T.amount, 0);
5525
+ n(2, _.Total[0].amount = h, _);
5519
5526
  break;
5520
5527
  case "totalRealAmount":
5521
5528
  if (!F)
5522
5529
  return;
5523
- let p = 0;
5524
- for (const y of v.Real)
5525
- p += y.amount;
5526
- n(2, v.Total[0].amount = p, v);
5530
+ let d = 0;
5531
+ for (const v of _.Real)
5532
+ d += v.amount;
5533
+ n(2, _.Total[0].amount = d, _);
5527
5534
  }
5528
- }, de = (h) => {
5529
- const p = ft(h.data);
5530
- if (!p) {
5531
- Ke();
5535
+ }, Rt = (h) => {
5536
+ const d = Ge(h.data);
5537
+ if (!d) {
5538
+ et();
5532
5539
  return;
5533
5540
  }
5534
- if (Rt(p == null ? void 0 : p.type) || p.type !== "BALANCE_UPDATE_V2")
5541
+ if (Mt(d == null ? void 0 : d.type) || d.type !== "BALANCE_UPDATE_V2")
5535
5542
  return;
5536
- const y = p.body.balanceChange;
5537
- for (const [B, U] of Object.entries(y))
5538
- if (w === "totalRealAmount" && B === "Real" && !F && n(2, v.Total[0].amount = Ne(v.Total[0].amount, ce, U), v), !!v[B])
5539
- for (const H of v[B]) {
5543
+ const v = d.body.balanceChange;
5544
+ for (const [T, U] of Object.entries(v))
5545
+ if (E === "totalRealAmount" && T === "Real" && !F && n(2, _.Total[0].amount = we(_.Total[0].amount, le, U), _), !!_[T])
5546
+ for (const H of _[T]) {
5540
5547
  if (!F) {
5541
- H.amount = B === "Real" ? Ne(H.amount, ce, U) : U.afterAmount;
5548
+ H.amount = T === "Real" ? we(H.amount, le, U) : U.afterAmount;
5542
5549
  continue;
5543
5550
  }
5544
- U.productType === H.productType && (H.amount = B === "Real" ? Ne(H.amount, ce[H.productType], U) : U.afterAmount);
5551
+ U.productType === H.productType && (H.amount = T === "Real" ? we(H.amount, le[H.productType], U) : U.afterAmount);
5545
5552
  }
5546
- Ce();
5547
- }, tt = (h) => {
5548
- switch (ae("closebalance"), h) {
5553
+ ce();
5554
+ }, nt = (h) => {
5555
+ switch (xe("closebalance"), h) {
5549
5556
  case "deposit":
5550
5557
  window.postMessage({ type: "GoToDeposit" }, window.location.href);
5551
5558
  break;
@@ -5554,10 +5561,10 @@ function wa(e, t, n) {
5554
5561
  break;
5555
5562
  }
5556
5563
  typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5557
- }, Rt = (h) => h === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Mt = () => {
5558
- Ee.includes(w) || (console.error(`Unsupported value ('${w}') for totalcalculationmode parameter. Only the following values are supported ${Ee}. Using default value ('${Ee[0]}').`), n(13, w = Ee[0]));
5559
- }, dt = () => {
5560
- switch (na(s), Mt(), d) {
5564
+ }, Mt = (h) => h === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, ft = () => {
5565
+ Le.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${Le}. Using default value ('${Le[0]}').`), n(13, E = Le[0]));
5566
+ }, c = () => {
5567
+ switch (na(s), ft(), p) {
5561
5568
  case "gmcore":
5562
5569
  Ot();
5563
5570
  break;
@@ -5565,66 +5572,67 @@ function wa(e, t, n) {
5565
5572
  Lt();
5566
5573
  break;
5567
5574
  default:
5568
- throw Error(`Invalid apiversion attribute: ${d}`);
5575
+ throw Error(`Invalid apiversion attribute: ${p}`);
5569
5576
  }
5570
- }, c = (h) => {
5571
- const { data: { type: p } = {} } = h || {};
5572
- switch (p) {
5577
+ }, g = (h) => {
5578
+ const { data: { type: d } = {} } = h || {};
5579
+ switch (d) {
5573
5580
  case "LogoutSuccessfull":
5574
5581
  fe.close();
5575
5582
  break;
5576
5583
  case "CloseBalance":
5577
- ae("closebalance");
5584
+ xe("closebalance");
5578
5585
  break;
5579
5586
  }
5580
- }, g = () => {
5587
+ }, w = () => {
5581
5588
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5582
- }, x = (h) => {
5583
- const p = re.split(",").map((y) => y.trim());
5584
- return !h.productType || p.includes(h.productType) ? "" : r(h.productType);
5585
- }, m = () => {
5586
- switch (A) {
5587
- case "Real":
5588
- return v.Real ? Pe(v.Real[0].amount) : "0";
5589
- default:
5590
- return v.Total ? Pe(v.Total[0].amount) : "0";
5591
- }
5589
+ }, m = (h) => {
5590
+ const d = re.split(",").map((v) => v.trim());
5591
+ return !h.productType || d.includes(h.productType) ? "" : r(h.productType);
5592
5592
  };
5593
- qr(() => (window.addEventListener("message", c, !1), n(6, q = ya(z)), () => {
5594
- window.removeEventListener("message", c), fe && fe.close();
5593
+ qr(() => (window.addEventListener("message", g, !1), n(6, q = ya(z)), () => {
5594
+ window.removeEventListener("message", g), fe && fe.close();
5595
5595
  }));
5596
- const T = () => ae("balance"), S = () => ae("closebalance"), C = () => tt("deposit"), G = () => tt("limits"), O = () => ae("closebalance");
5596
+ const A = () => xe("balance"), S = () => xe("closebalance"), C = () => nt("deposit"), G = () => nt("limits"), O = () => xe("closebalance");
5597
5597
  function D(h) {
5598
5598
  qt[h ? "unshift" : "push"](() => {
5599
5599
  K = h, n(1, K);
5600
5600
  });
5601
5601
  }
5602
5602
  return e.$$set = (h) => {
5603
- "userid" in h && n(14, i = h.userid), "session" in h && n(15, o = h.session), "endpoint" in h && n(16, a = h.endpoint), "lang" in h && n(17, s = h.lang), "mbsource" in h && n(18, l = h.mbsource), "clientstyling" in h && n(19, u = h.clientstyling), "clientstylingurl" in h && n(20, f = h.clientstylingurl), "translationurl" in h && n(21, b = h.translationurl), "gmversion" in h && n(22, d = h.gmversion), "displaybalanceoption" in h && n(23, _ = h.displaybalanceoption), "totalcalculationmode" in h && n(13, w = h.totalcalculationmode), "primarybalancemode" in h && n(24, A = h.primarybalancemode), "balancelimitsbutton" in h && n(0, Q = h.balancelimitsbutton), "hideproducttype" in h && n(25, re = h.hideproducttype), "currencylocale" in h && n(26, oe = h.currencylocale), "currencydisplay" in h && n(27, I = h.currencydisplay), "maximumfractiondigits" in h && n(28, k = h.maximumfractiondigits), "minimumfractiondigits" in h && n(29, Z = h.minimumfractiondigits), "customdisplayformat" in h && n(30, ie = h.customdisplayformat);
5603
+ "userid" in h && n(14, i = h.userid), "session" in h && n(15, o = h.session), "endpoint" in h && n(16, a = h.endpoint), "lang" in h && n(17, s = h.lang), "mbsource" in h && n(18, l = h.mbsource), "clientstyling" in h && n(19, u = h.clientstyling), "clientstylingurl" in h && n(20, f = h.clientstylingurl), "translationurl" in h && n(21, b = h.translationurl), "gmversion" in h && n(22, p = h.gmversion), "displaybalanceoption" in h && n(23, y = h.displaybalanceoption), "totalcalculationmode" in h && n(13, E = h.totalcalculationmode), "primarybalancemode" in h && n(24, B = h.primarybalancemode), "balancelimitsbutton" in h && n(0, Q = h.balancelimitsbutton), "hideproducttype" in h && n(25, re = h.hideproducttype), "currencylocale" in h && n(26, oe = h.currencylocale), "currencydisplay" in h && n(27, I = h.currencydisplay), "maximumfractiondigits" in h && n(28, k = h.maximumfractiondigits), "minimumfractiondigits" in h && n(29, Z = h.minimumfractiondigits), "customdisplayformat" in h && n(30, ie = h.customdisplayformat);
5604
5604
  }, e.$$.update = () => {
5605
5605
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5606
- 12828672 && a && i && o && s && d && _ && dt(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5607
- 4308992 && a && i && o && d && Ke(), e.$$.dirty[0] & /*translationurl*/
5608
- 2097152 && b && Je(), e.$$.dirty[0] & /*balances*/
5609
- 4 && v.Total && g(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5606
+ 12828672 && a && i && o && s && p && y && c(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5607
+ 4308992 && a && i && o && p && et(), e.$$.dirty[0] & /*translationurl*/
5608
+ 2097152 && b && Ee(), e.$$.dirty[0] & /*balances*/
5609
+ 4 && _.Total && w(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5610
5610
  524290 && u && K && li(K, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5611
5611
  1048578 && f && K && ci(K, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5612
- 262146 && l && K && hi(K, `${l}.Style`);
5612
+ 262146 && l && K && hi(K, `${l}.Style`), e.$$.dirty[0] & /*primarybalancemode, balances*/
5613
+ 16777220 && n(7, Oe = (() => {
5614
+ switch (B) {
5615
+ case "Real":
5616
+ return _.Real ? Fe(_.Real[0].amount) : "0";
5617
+ default:
5618
+ return _.Total ? Fe(_.Total[0].amount) : "0";
5619
+ }
5620
+ })());
5613
5621
  }, [
5614
5622
  Q,
5615
5623
  K,
5616
- v,
5624
+ _,
5617
5625
  te,
5618
5626
  X,
5619
5627
  N,
5620
5628
  q,
5629
+ Oe,
5621
5630
  r,
5622
- ae,
5623
- Pe,
5624
- tt,
5625
- x,
5631
+ xe,
5632
+ Fe,
5633
+ nt,
5626
5634
  m,
5627
- w,
5635
+ E,
5628
5636
  i,
5629
5637
  o,
5630
5638
  a,
@@ -5633,16 +5641,16 @@ function wa(e, t, n) {
5633
5641
  u,
5634
5642
  f,
5635
5643
  b,
5636
- d,
5637
- _,
5638
- A,
5644
+ p,
5645
+ y,
5646
+ B,
5639
5647
  re,
5640
5648
  oe,
5641
5649
  I,
5642
5650
  k,
5643
5651
  Z,
5644
5652
  ie,
5645
- T,
5653
+ A,
5646
5654
  S,
5647
5655
  C,
5648
5656
  G,