@everymatrix/player-account-balance-modal 1.83.2 → 1.83.4

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.
@@ -12,19 +12,19 @@ var Rt = Math.pow, Lt = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configu
12
12
  }, Mt = (e, t) => lr(e, hr(t));
13
13
  var oe = (e, t, n) => (Lt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
14
  var Pt = (e, t, n) => new Promise((r, i) => {
15
- var o = (c) => {
15
+ var o = (f) => {
16
16
  try {
17
- s(n.next(c));
17
+ s(n.next(f));
18
18
  } catch (l) {
19
19
  i(l);
20
20
  }
21
- }, u = (c) => {
21
+ }, u = (f) => {
22
22
  try {
23
- s(n.throw(c));
23
+ s(n.throw(f));
24
24
  } catch (l) {
25
25
  i(l);
26
26
  }
27
- }, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, u);
27
+ }, s = (f) => f.done ? r(f.value) : Promise.resolve(f.value).then(o, u);
28
28
  s((n = n.apply(e, t)).next());
29
29
  });
30
30
  function ae() {
@@ -35,7 +35,7 @@ function Ln(e) {
35
35
  function un() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function ke(e) {
38
+ function $e(e) {
39
39
  e.forEach(Ln);
40
40
  }
41
41
  function nn(e) {
@@ -65,7 +65,7 @@ function M(e, t) {
65
65
  function mr(e, t, n) {
66
66
  const r = gr(e);
67
67
  if (!r.getElementById(t)) {
68
- const i = $("style");
68
+ const i = G("style");
69
69
  i.id = t, i.textContent = n, br(r, i);
70
70
  }
71
71
  }
@@ -86,17 +86,17 @@ function br(e, t) {
86
86
  t
87
87
  ), t.sheet;
88
88
  }
89
- function fe(e, t, n) {
89
+ function de(e, t, n) {
90
90
  e.insertBefore(t, n || null);
91
91
  }
92
- function ue(e) {
92
+ function he(e) {
93
93
  e.parentNode && e.parentNode.removeChild(e);
94
94
  }
95
95
  function Mn(e, t) {
96
96
  for (let n = 0; n < e.length; n += 1)
97
97
  e[n] && e[n].d(t);
98
98
  }
99
- function $(e) {
99
+ function G(e) {
100
100
  return document.createElement(e);
101
101
  }
102
102
  function Ee(e) {
@@ -108,10 +108,10 @@ function xe() {
108
108
  function yr() {
109
109
  return Ee("");
110
110
  }
111
- function dt(e, t, n, r) {
111
+ function pt(e, t, n, r) {
112
112
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
113
113
  }
114
- function Z(e, t, n) {
114
+ function z(e, t, n) {
115
115
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
116
116
  }
117
117
  function vr(e) {
@@ -130,90 +130,90 @@ function Er(e) {
130
130
  }
131
131
  ), t;
132
132
  }
133
- let tt;
134
- function et(e) {
135
- tt = e;
133
+ let et;
134
+ function Ke(e) {
135
+ et = e;
136
136
  }
137
137
  function xr() {
138
- if (!tt)
138
+ if (!et)
139
139
  throw new Error("Function called outside component initialization");
140
- return tt;
140
+ return et;
141
141
  }
142
142
  function _r(e) {
143
143
  xr().$$.on_mount.push(e);
144
144
  }
145
- const De = [], kt = [];
146
- let Fe = [];
145
+ const Ie = [], kt = [];
146
+ let De = [];
147
147
  const ln = [], Tr = /* @__PURE__ */ Promise.resolve();
148
148
  let Vt = !1;
149
149
  function Br() {
150
- Vt || (Vt = !0, Tr.then(X));
150
+ Vt || (Vt = !0, Tr.then(k));
151
151
  }
152
152
  function Xt(e) {
153
- Fe.push(e);
153
+ De.push(e);
154
154
  }
155
155
  const It = /* @__PURE__ */ new Set();
156
- let Pe = 0;
157
- function X() {
158
- if (Pe !== 0)
156
+ let Me = 0;
157
+ function k() {
158
+ if (Me !== 0)
159
159
  return;
160
- const e = tt;
160
+ const e = et;
161
161
  do {
162
162
  try {
163
- for (; Pe < De.length; ) {
164
- const t = De[Pe];
165
- Pe++, et(t), Sr(t.$$);
163
+ for (; Me < Ie.length; ) {
164
+ const t = Ie[Me];
165
+ Me++, Ke(t), Sr(t.$$);
166
166
  }
167
167
  } catch (t) {
168
- throw De.length = 0, Pe = 0, t;
168
+ throw Ie.length = 0, Me = 0, t;
169
169
  }
170
- for (et(null), De.length = 0, Pe = 0; kt.length; )
170
+ for (Ke(null), Ie.length = 0, Me = 0; kt.length; )
171
171
  kt.pop()();
172
- for (let t = 0; t < Fe.length; t += 1) {
173
- const n = Fe[t];
172
+ for (let t = 0; t < De.length; t += 1) {
173
+ const n = De[t];
174
174
  It.has(n) || (It.add(n), n());
175
175
  }
176
- Fe.length = 0;
177
- } while (De.length);
176
+ De.length = 0;
177
+ } while (Ie.length);
178
178
  for (; ln.length; )
179
179
  ln.pop()();
180
- Vt = !1, It.clear(), et(e);
180
+ Vt = !1, It.clear(), Ke(e);
181
181
  }
182
182
  function Sr(e) {
183
183
  if (e.fragment !== null) {
184
- e.update(), ke(e.before_update);
184
+ e.update(), $e(e.before_update);
185
185
  const t = e.dirty;
186
186
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xt);
187
187
  }
188
188
  }
189
189
  function wr(e) {
190
190
  const t = [], n = [];
191
- Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
191
+ De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = t;
192
192
  }
193
193
  const Ar = /* @__PURE__ */ new Set();
194
194
  function Cr(e, t) {
195
195
  e && e.i && (Ar.delete(e), e.i(t));
196
196
  }
197
- function pt(e) {
197
+ function mt(e) {
198
198
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
199
199
  }
200
200
  function Hr(e, t, n) {
201
201
  const { fragment: r, after_update: i } = e.$$;
202
202
  r && r.m(t, n), Xt(() => {
203
203
  const o = e.$$.on_mount.map(Ln).filter(nn);
204
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ke(o), e.$$.on_mount = [];
204
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : $e(o), e.$$.on_mount = [];
205
205
  }), i.forEach(Xt);
206
206
  }
207
207
  function Or(e, t) {
208
208
  const n = e.$$;
209
- n.fragment !== null && (wr(n.after_update), ke(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
209
+ n.fragment !== null && (wr(n.after_update), $e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
210
210
  }
211
211
  function Lr(e, t) {
212
- e.$$.dirty[0] === -1 && (De.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
212
+ e.$$.dirty[0] === -1 && (Ie.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
213
213
  }
214
214
  function Rr(e, t, n, r, i, o, u = null, s = [-1]) {
215
- const c = tt;
216
- et(e);
215
+ const f = et;
216
+ Ke(e);
217
217
  const l = e.$$ = {
218
218
  fragment: null,
219
219
  ctx: [],
@@ -228,27 +228,27 @@ function Rr(e, t, n, r, i, o, u = null, s = [-1]) {
228
228
  on_disconnect: [],
229
229
  before_update: [],
230
230
  after_update: [],
231
- context: new Map(t.context || (c ? c.$$.context : [])),
231
+ context: new Map(t.context || (f ? f.$$.context : [])),
232
232
  // everything else
233
233
  callbacks: un(),
234
234
  dirty: s,
235
235
  skip_bound: !1,
236
- root: t.target || c.$$.root
236
+ root: t.target || f.$$.root
237
237
  };
238
238
  u && u(l.root);
239
- let f = !1;
240
- if (l.ctx = n ? n(e, t.props || {}, (g, y, ...x) => {
241
- const T = x.length ? x[0] : y;
242
- return l.ctx && i(l.ctx[g], l.ctx[g] = T) && (!l.skip_bound && l.bound[g] && l.bound[g](T), f && Lr(e, g)), y;
243
- }) : [], l.update(), f = !0, ke(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
239
+ let d = !1;
240
+ if (l.ctx = n ? n(e, t.props || {}, (m, b, ..._) => {
241
+ const B = _.length ? _[0] : b;
242
+ return l.ctx && i(l.ctx[m], l.ctx[m] = B) && (!l.skip_bound && l.bound[m] && l.bound[m](B), d && Lr(e, m)), b;
243
+ }) : [], l.update(), d = !0, $e(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
244
244
  if (t.hydrate) {
245
- const g = vr(t.target);
246
- l.fragment && l.fragment.l(g), g.forEach(ue);
245
+ const m = vr(t.target);
246
+ l.fragment && l.fragment.l(m), m.forEach(he);
247
247
  } else
248
248
  l.fragment && l.fragment.c();
249
- t.intro && Cr(e.$$.fragment), Hr(e, t.target, t.anchor), X();
249
+ t.intro && Cr(e.$$.fragment), Hr(e, t.target, t.anchor), k();
250
250
  }
251
- et(c);
251
+ Ke(f);
252
252
  }
253
253
  let Pn;
254
254
  typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
@@ -295,17 +295,17 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
295
295
  let u;
296
296
  return {
297
297
  c: function() {
298
- u = $("slot"), o !== "default" && Z(u, "name", o);
298
+ u = G("slot"), o !== "default" && z(u, "name", o);
299
299
  },
300
300
  /**
301
301
  * @param {HTMLElement} target
302
302
  * @param {HTMLElement} [anchor]
303
303
  */
304
- m: function(l, f) {
305
- fe(l, u, f);
304
+ m: function(l, d) {
305
+ de(l, u, d);
306
306
  },
307
307
  d: function(l) {
308
- l && ue(u);
308
+ l && he(u);
309
309
  }
310
310
  };
311
311
  };
@@ -317,7 +317,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
317
317
  o in r && (n[o] = [t(o)]);
318
318
  for (const o of this.attributes) {
319
319
  const u = this.$$g_p(o.name);
320
- u in this.$$d || (this.$$d[u] = ht(u, o.value, this.$$p_d, "toProp"));
320
+ u in this.$$d || (this.$$d[u] = ct(u, o.value, this.$$p_d, "toProp"));
321
321
  }
322
322
  for (const o in this.$$p_d)
323
323
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
@@ -334,7 +334,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
334
334
  this.$$r = !0;
335
335
  for (const o in this.$$p_d)
336
336
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
337
- const u = ht(
337
+ const u = ct(
338
338
  o,
339
339
  this.$$d[o],
340
340
  this.$$p_d,
@@ -358,7 +358,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
358
358
  // and setting attributes through setAttribute etc, this is helpful
359
359
  attributeChangedCallback(t, n, r) {
360
360
  var i;
361
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ht(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
361
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ct(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
362
362
  }
363
363
  disconnectedCallback() {
364
364
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -371,7 +371,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
371
371
  ) || t;
372
372
  }
373
373
  });
374
- function ht(e, t, n, r) {
374
+ function ct(e, t, n, r) {
375
375
  var o;
376
376
  const i = (o = n[e]) == null ? void 0 : o.type;
377
377
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -417,16 +417,16 @@ function Nr(e, t, n, r, i, o) {
417
417
  get() {
418
418
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
419
419
  },
420
- set(c) {
420
+ set(f) {
421
421
  var l;
422
- c = ht(s, c, t), this.$$d[s] = c, (l = this.$$c) == null || l.$set({ [s]: c });
422
+ f = ct(s, f, t), this.$$d[s] = f, (l = this.$$c) == null || l.$set({ [s]: f });
423
423
  }
424
424
  });
425
425
  }), r.forEach((s) => {
426
426
  Object.defineProperty(u.prototype, s, {
427
427
  get() {
428
- var c;
429
- return (c = this.$$c) == null ? void 0 : c[s];
428
+ var f;
429
+ return (f = this.$$c) == null ? void 0 : f[s];
430
430
  }
431
431
  });
432
432
  }), e.element = /** @type {any} */
@@ -503,74 +503,74 @@ function Fr(e, t, n) {
503
503
  });
504
504
  }
505
505
  }
506
- const Ie = [];
506
+ const Pe = [];
507
507
  function Ur(e, t) {
508
508
  return {
509
- subscribe: yt(e, t).subscribe
509
+ subscribe: vt(e, t).subscribe
510
510
  };
511
511
  }
512
- function yt(e, t = ae) {
512
+ function vt(e, t = ae) {
513
513
  let n;
514
514
  const r = /* @__PURE__ */ new Set();
515
515
  function i(s) {
516
516
  if (Rn(e, s) && (e = s, n)) {
517
- const c = !Ie.length;
517
+ const f = !Pe.length;
518
518
  for (const l of r)
519
- l[1](), Ie.push(l, e);
520
- if (c) {
521
- for (let l = 0; l < Ie.length; l += 2)
522
- Ie[l][0](Ie[l + 1]);
523
- Ie.length = 0;
519
+ l[1](), Pe.push(l, e);
520
+ if (f) {
521
+ for (let l = 0; l < Pe.length; l += 2)
522
+ Pe[l][0](Pe[l + 1]);
523
+ Pe.length = 0;
524
524
  }
525
525
  }
526
526
  }
527
527
  function o(s) {
528
528
  i(s(e));
529
529
  }
530
- function u(s, c = ae) {
531
- const l = [s, c];
530
+ function u(s, f = ae) {
531
+ const l = [s, f];
532
532
  return r.add(l), r.size === 1 && (n = t(i, o) || ae), s(e), () => {
533
533
  r.delete(l), r.size === 0 && n && (n(), n = null);
534
534
  };
535
535
  }
536
536
  return { set: i, update: o, subscribe: u };
537
537
  }
538
- function Ve(e, t, n) {
538
+ function ke(e, t, n) {
539
539
  const r = !Array.isArray(e), i = r ? [e] : e;
540
540
  if (!i.every(Boolean))
541
541
  throw new Error("derived() expects stores as input, got a falsy value");
542
542
  const o = t.length < 2;
543
543
  return Ur(n, (u, s) => {
544
- let c = !1;
544
+ let f = !1;
545
545
  const l = [];
546
- let f = 0, g = ae;
547
- const y = () => {
548
- if (f)
546
+ let d = 0, m = ae;
547
+ const b = () => {
548
+ if (d)
549
549
  return;
550
- g();
551
- const T = t(r ? l[0] : l, u, s);
552
- o ? u(T) : g = nn(T) ? T : ae;
553
- }, x = i.map(
554
- (T, P) => Nn(
555
- T,
550
+ m();
551
+ const B = t(r ? l[0] : l, u, s);
552
+ o ? u(B) : m = nn(B) ? B : ae;
553
+ }, _ = i.map(
554
+ (B, I) => Nn(
555
+ B,
556
556
  (j) => {
557
- l[P] = j, f &= ~(1 << P), c && y();
557
+ l[I] = j, d &= ~(1 << I), f && b();
558
558
  },
559
559
  () => {
560
- f |= 1 << P;
560
+ d |= 1 << I;
561
561
  }
562
562
  )
563
563
  );
564
- return c = !0, y(), function() {
565
- ke(x), g(), c = !1;
564
+ return f = !0, b(), function() {
565
+ $e(_), m(), f = !1;
566
566
  };
567
567
  });
568
568
  }
569
569
  var Gr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
570
- function $r(e) {
570
+ function jr(e) {
571
571
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
572
572
  }
573
- var jr = function(t) {
573
+ var $r = function(t) {
574
574
  return kr(t) && !Vr(t);
575
575
  };
576
576
  function kr(e) {
@@ -587,19 +587,19 @@ function Wr(e) {
587
587
  function Zr(e) {
588
588
  return Array.isArray(e) ? [] : {};
589
589
  }
590
- function nt(e, t) {
591
- return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Zr(e), e, t) : e;
590
+ function tt(e, t) {
591
+ return t.clone !== !1 && t.isMergeableObject(e) ? Fe(Zr(e), e, t) : e;
592
592
  }
593
593
  function qr(e, t, n) {
594
594
  return e.concat(t).map(function(r) {
595
- return nt(r, n);
595
+ return tt(r, n);
596
596
  });
597
597
  }
598
598
  function Qr(e, t) {
599
599
  if (!t.customMerge)
600
- return Ue;
600
+ return Fe;
601
601
  var n = t.customMerge(e);
602
- return typeof n == "function" ? n : Ue;
602
+ return typeof n == "function" ? n : Fe;
603
603
  }
604
604
  function Jr(e) {
605
605
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -622,25 +622,25 @@ function Yr(e, t) {
622
622
  function Kr(e, t, n) {
623
623
  var r = {};
624
624
  return n.isMergeableObject(e) && hn(e).forEach(function(i) {
625
- r[i] = nt(e[i], n);
625
+ r[i] = tt(e[i], n);
626
626
  }), hn(t).forEach(function(i) {
627
- Yr(e, i) || (In(e, i) && n.isMergeableObject(t[i]) ? r[i] = Qr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
627
+ Yr(e, i) || (In(e, i) && n.isMergeableObject(t[i]) ? r[i] = Qr(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
628
628
  }), r;
629
629
  }
630
- function Ue(e, t, n) {
631
- n = n || {}, n.arrayMerge = n.arrayMerge || qr, n.isMergeableObject = n.isMergeableObject || jr, n.cloneUnlessOtherwiseSpecified = nt;
630
+ function Fe(e, t, n) {
631
+ n = n || {}, n.arrayMerge = n.arrayMerge || qr, n.isMergeableObject = n.isMergeableObject || $r, n.cloneUnlessOtherwiseSpecified = tt;
632
632
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
633
- return o ? r ? n.arrayMerge(e, t, n) : Kr(e, t, n) : nt(t, n);
633
+ return o ? r ? n.arrayMerge(e, t, n) : Kr(e, t, n) : tt(t, n);
634
634
  }
635
- Ue.all = function(t, n) {
635
+ Fe.all = function(t, n) {
636
636
  if (!Array.isArray(t))
637
637
  throw new Error("first argument should be an array");
638
638
  return t.reduce(function(r, i) {
639
- return Ue(r, i, n);
639
+ return Fe(r, i, n);
640
640
  }, {});
641
641
  };
642
- var ei = Ue, ti = ei;
643
- const ni = /* @__PURE__ */ $r(ti);
642
+ var ei = Fe, ti = ei;
643
+ const ni = /* @__PURE__ */ jr(ti);
644
644
  var zt = function(e, t) {
645
645
  return zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
646
646
  n.__proto__ = r;
@@ -649,7 +649,7 @@ var zt = function(e, t) {
649
649
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
650
650
  }, zt(e, t);
651
651
  };
652
- function vt(e, t) {
652
+ function Et(e, t) {
653
653
  if (typeof t != "function" && t !== null)
654
654
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
655
655
  zt(e, t);
@@ -658,15 +658,15 @@ function vt(e, t) {
658
658
  }
659
659
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
660
660
  }
661
- var ce = function() {
662
- return ce = Object.assign || function(t) {
661
+ var fe = function() {
662
+ return fe = Object.assign || function(t) {
663
663
  for (var n, r = 1, i = arguments.length; r < i; r++) {
664
664
  n = arguments[r];
665
665
  for (var o in n)
666
666
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
667
667
  }
668
668
  return t;
669
- }, ce.apply(this, arguments);
669
+ }, fe.apply(this, arguments);
670
670
  };
671
671
  function ri(e, t) {
672
672
  var n = {};
@@ -731,28 +731,28 @@ var ui = function() {
731
731
  }
732
732
  }, Ut = {
733
733
  variadic: si
734
- }, mt = function() {
735
- return mt = Object.assign || function(t) {
734
+ }, gt = function() {
735
+ return gt = Object.assign || function(t) {
736
736
  for (var n, r = 1, i = arguments.length; r < i; r++) {
737
737
  n = arguments[r];
738
738
  for (var o in n)
739
739
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
740
740
  }
741
741
  return t;
742
- }, mt.apply(this, arguments);
742
+ }, gt.apply(this, arguments);
743
743
  };
744
- var C;
744
+ var H;
745
745
  (function(e) {
746
746
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
747
- })(C || (C = {}));
747
+ })(H || (H = {}));
748
748
  var D;
749
749
  (function(e) {
750
750
  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";
751
751
  })(D || (D = {}));
752
- var Ge;
752
+ var Ue;
753
753
  (function(e) {
754
754
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
755
- })(Ge || (Ge = {}));
755
+ })(Ue || (Ue = {}));
756
756
  function cn(e) {
757
757
  return e.type === D.literal;
758
758
  }
@@ -765,10 +765,10 @@ function Un(e) {
765
765
  function Gn(e) {
766
766
  return e.type === D.date;
767
767
  }
768
- function $n(e) {
768
+ function jn(e) {
769
769
  return e.type === D.time;
770
770
  }
771
- function jn(e) {
771
+ function $n(e) {
772
772
  return e.type === D.select;
773
773
  }
774
774
  function kn(e) {
@@ -781,10 +781,10 @@ function Vn(e) {
781
781
  return e.type === D.tag;
782
782
  }
783
783
  function Xn(e) {
784
- return !!(e && typeof e == "object" && e.type === Ge.number);
784
+ return !!(e && typeof e == "object" && e.type === Ue.number);
785
785
  }
786
786
  function Wt(e) {
787
- return !!(e && typeof e == "object" && e.type === Ge.dateTime);
787
+ return !!(e && typeof e == "object" && e.type === Ue.dateTime);
788
788
  }
789
789
  var zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, di = /(?:[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;
790
790
  function pi(e) {
@@ -878,32 +878,32 @@ function pi(e) {
878
878
  return "";
879
879
  }), t;
880
880
  }
881
- var U = function() {
882
- return U = Object.assign || function(t) {
881
+ var F = function() {
882
+ return F = Object.assign || function(t) {
883
883
  for (var n, r = 1, i = arguments.length; r < i; r++) {
884
884
  n = arguments[r];
885
885
  for (var o in n)
886
886
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
887
887
  }
888
888
  return t;
889
- }, U.apply(this, arguments);
889
+ }, F.apply(this, arguments);
890
890
  };
891
891
  var mi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
892
892
  function gi(e) {
893
893
  if (e.length === 0)
894
894
  throw new Error("Number skeleton cannot be empty");
895
- for (var t = e.split(mi).filter(function(y) {
896
- return y.length > 0;
895
+ for (var t = e.split(mi).filter(function(b) {
896
+ return b.length > 0;
897
897
  }), n = [], r = 0, i = t; r < i.length; r++) {
898
898
  var o = i[r], u = o.split("/");
899
899
  if (u.length === 0)
900
900
  throw new Error("Invalid number skeleton");
901
- for (var s = u[0], c = u.slice(1), l = 0, f = c; l < f.length; l++) {
902
- var g = f[l];
903
- if (g.length === 0)
901
+ for (var s = u[0], f = u.slice(1), l = 0, d = f; l < d.length; l++) {
902
+ var m = d[l];
903
+ if (m.length === 0)
904
904
  throw new Error("Invalid number skeleton");
905
905
  }
906
- n.push({ stem: s, options: c });
906
+ n.push({ stem: s, options: f });
907
907
  }
908
908
  return n;
909
909
  }
@@ -1010,13 +1010,13 @@ function Ei(e) {
1010
1010
  t.notation = "compact", t.compactDisplay = "long";
1011
1011
  continue;
1012
1012
  case "scientific":
1013
- t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
1014
- return U(U({}, c), pn(l));
1013
+ t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(f, l) {
1014
+ return F(F({}, f), pn(l));
1015
1015
  }, {}));
1016
1016
  continue;
1017
1017
  case "engineering":
1018
- t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
1019
- return U(U({}, c), pn(l));
1018
+ t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(f, l) {
1019
+ return F(F({}, f), pn(l));
1020
1020
  }, {}));
1021
1021
  continue;
1022
1022
  case "notation-simple":
@@ -1061,13 +1061,13 @@ function Ei(e) {
1061
1061
  case "integer-width":
1062
1062
  if (i.options.length > 1)
1063
1063
  throw new RangeError("integer-width stems only accept a single optional option");
1064
- i.options[0].replace(yi, function(c, l, f, g, y, x) {
1064
+ i.options[0].replace(yi, function(f, l, d, m, b, _) {
1065
1065
  if (l)
1066
- t.minimumIntegerDigits = f.length;
1066
+ t.minimumIntegerDigits = d.length;
1067
1067
  else {
1068
- if (g && y)
1068
+ if (m && b)
1069
1069
  throw new Error("We currently do not support maximum integer digits");
1070
- if (x)
1070
+ if (_)
1071
1071
  throw new Error("We currently do not support exact integer digits");
1072
1072
  }
1073
1073
  return "";
@@ -1081,25 +1081,25 @@ function Ei(e) {
1081
1081
  if (fn.test(i.stem)) {
1082
1082
  if (i.options.length > 1)
1083
1083
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1084
- i.stem.replace(fn, function(c, l, f, g, y, x) {
1085
- return f === "*" ? t.minimumFractionDigits = l.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : y && x ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + x.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1084
+ i.stem.replace(fn, function(f, l, d, m, b, _) {
1085
+ return d === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1086
1086
  });
1087
1087
  var o = i.options[0];
1088
- o === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = U(U({}, t), dn(o)));
1088
+ o === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = F(F({}, t), dn(o)));
1089
1089
  continue;
1090
1090
  }
1091
1091
  if (Wn.test(i.stem)) {
1092
- t = U(U({}, t), dn(i.stem));
1092
+ t = F(F({}, t), dn(i.stem));
1093
1093
  continue;
1094
1094
  }
1095
1095
  var u = qn(i.stem);
1096
- u && (t = U(U({}, t), u));
1096
+ u && (t = F(F({}, t), u));
1097
1097
  var s = vi(i.stem);
1098
- s && (t = U(U({}, t), s));
1098
+ s && (t = F(F({}, t), s));
1099
1099
  }
1100
1100
  return t;
1101
1101
  }
1102
- var lt = {
1102
+ var ht = {
1103
1103
  "001": [
1104
1104
  "H",
1105
1105
  "h"
@@ -2520,9 +2520,9 @@ function xi(e, t) {
2520
2520
  if (i === "j") {
2521
2521
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2522
2522
  o++, r++;
2523
- var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = _i(t);
2523
+ var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), f = "a", l = _i(t);
2524
2524
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2525
- n += c;
2525
+ n += f;
2526
2526
  for (; u-- > 0; )
2527
2527
  n = l + n;
2528
2528
  } else
@@ -2549,11 +2549,11 @@ function _i(e) {
2549
2549
  }
2550
2550
  var n = e.language, r;
2551
2551
  n !== "root" && (r = e.maximize().region);
2552
- var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
2552
+ var i = ht[r || ""] || ht[n || ""] || ht["".concat(n, "-001")] || ht["001"];
2553
2553
  return i[0];
2554
2554
  }
2555
2555
  var Gt, Ti = new RegExp("^".concat(zn.source, "*")), Bi = new RegExp("".concat(zn.source, "*$"));
2556
- function H(e, t) {
2556
+ function O(e, t) {
2557
2557
  return { start: e, end: t };
2558
2558
  }
2559
2559
  var Si = !!String.prototype.startsWith && "_a".startsWith("a", 1), wi = !!String.fromCodePoint, Ai = !!Object.fromEntries, Ci = !!String.prototype.codePointAt, Hi = !!String.prototype.trimStart, Oi = !!String.prototype.trimEnd, Li = !!Number.isSafeInteger, Ri = Li ? Number.isSafeInteger : function(e) {
@@ -2681,12 +2681,12 @@ var Ii = (
2681
2681
  var s = this.clonePosition();
2682
2682
  this.bump(), i.push({
2683
2683
  type: D.pound,
2684
- location: H(s, this.clonePosition())
2684
+ location: O(s, this.clonePosition())
2685
2685
  });
2686
2686
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2687
2687
  if (r)
2688
2688
  break;
2689
- return this.error(C.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
2689
+ return this.error(H.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
2690
2690
  } else if (o === 60 && !this.ignoreTag && Jt(this.peek() || 0)) {
2691
2691
  var u = this.parseTag(t, n);
2692
2692
  if (u.err)
@@ -2710,7 +2710,7 @@ var Ii = (
2710
2710
  val: {
2711
2711
  type: D.literal,
2712
2712
  value: "<".concat(i, "/>"),
2713
- location: H(r, this.clonePosition())
2713
+ location: O(r, this.clonePosition())
2714
2714
  },
2715
2715
  err: null
2716
2716
  };
@@ -2721,21 +2721,21 @@ var Ii = (
2721
2721
  var u = o.val, s = this.clonePosition();
2722
2722
  if (this.bumpIf("</")) {
2723
2723
  if (this.isEOF() || !Jt(this.char()))
2724
- return this.error(C.INVALID_TAG, H(s, this.clonePosition()));
2725
- var c = this.clonePosition(), l = this.parseTagName();
2726
- return i !== l ? this.error(C.UNMATCHED_CLOSING_TAG, H(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2724
+ return this.error(H.INVALID_TAG, O(s, this.clonePosition()));
2725
+ var f = this.clonePosition(), l = this.parseTagName();
2726
+ return i !== l ? this.error(H.UNMATCHED_CLOSING_TAG, O(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2727
2727
  val: {
2728
2728
  type: D.tag,
2729
2729
  value: i,
2730
2730
  children: u,
2731
- location: H(r, this.clonePosition())
2731
+ location: O(r, this.clonePosition())
2732
2732
  },
2733
2733
  err: null
2734
- } : this.error(C.INVALID_TAG, H(s, this.clonePosition())));
2734
+ } : this.error(H.INVALID_TAG, O(s, this.clonePosition())));
2735
2735
  } else
2736
- return this.error(C.UNCLOSED_TAG, H(r, this.clonePosition()));
2736
+ return this.error(H.UNCLOSED_TAG, O(r, this.clonePosition()));
2737
2737
  } else
2738
- return this.error(C.INVALID_TAG, H(r, this.clonePosition()));
2738
+ return this.error(H.INVALID_TAG, O(r, this.clonePosition()));
2739
2739
  }, e.prototype.parseTagName = function() {
2740
2740
  var t = this.offset();
2741
2741
  for (this.bump(); !this.isEOF() && Fi(this.char()); )
@@ -2760,9 +2760,9 @@ var Ii = (
2760
2760
  }
2761
2761
  break;
2762
2762
  }
2763
- var c = H(r, this.clonePosition());
2763
+ var f = O(r, this.clonePosition());
2764
2764
  return {
2765
- val: { type: D.literal, value: i, location: c },
2765
+ val: { type: D.literal, value: i, location: f },
2766
2766
  err: null
2767
2767
  };
2768
2768
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -2810,14 +2810,14 @@ var Ii = (
2810
2810
  }, e.prototype.parseArgument = function(t, n) {
2811
2811
  var r = this.clonePosition();
2812
2812
  if (this.bump(), this.bumpSpace(), this.isEOF())
2813
- return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
2813
+ return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
2814
2814
  if (this.char() === 125)
2815
- return this.bump(), this.error(C.EMPTY_ARGUMENT, H(r, this.clonePosition()));
2815
+ return this.bump(), this.error(H.EMPTY_ARGUMENT, O(r, this.clonePosition()));
2816
2816
  var i = this.parseIdentifierIfPossible().value;
2817
2817
  if (!i)
2818
- return this.error(C.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
2818
+ return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
2819
2819
  if (this.bumpSpace(), this.isEOF())
2820
- return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
2820
+ return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
2821
2821
  switch (this.char()) {
2822
2822
  case 125:
2823
2823
  return this.bump(), {
@@ -2825,25 +2825,25 @@ var Ii = (
2825
2825
  type: D.argument,
2826
2826
  // value does not include the opening and closing braces.
2827
2827
  value: i,
2828
- location: H(r, this.clonePosition())
2828
+ location: O(r, this.clonePosition())
2829
2829
  },
2830
2830
  err: null
2831
2831
  };
2832
2832
  case 44:
2833
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2833
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2834
2834
  default:
2835
- return this.error(C.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
2835
+ return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
2836
2836
  }
2837
2837
  }, e.prototype.parseIdentifierIfPossible = function() {
2838
2838
  var t = this.clonePosition(), n = this.offset(), r = Qt(this.message, n), i = n + r.length;
2839
2839
  this.bumpTo(i);
2840
- var o = this.clonePosition(), u = H(t, o);
2840
+ var o = this.clonePosition(), u = O(t, o);
2841
2841
  return { value: r, location: u };
2842
2842
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2843
- var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2843
+ var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, f = this.clonePosition();
2844
2844
  switch (s) {
2845
2845
  case "":
2846
- return this.error(C.EXPECT_ARGUMENT_TYPE, H(u, c));
2846
+ return this.error(H.EXPECT_ARGUMENT_TYPE, O(u, f));
2847
2847
  case "number":
2848
2848
  case "date":
2849
2849
  case "time": {
@@ -2851,40 +2851,40 @@ var Ii = (
2851
2851
  var l = null;
2852
2852
  if (this.bumpIf(",")) {
2853
2853
  this.bumpSpace();
2854
- var f = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2855
- if (g.err)
2856
- return g;
2857
- var y = Pi(g.val);
2858
- if (y.length === 0)
2859
- return this.error(C.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
2860
- var x = H(f, this.clonePosition());
2861
- l = { style: y, styleLocation: x };
2854
+ var d = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2855
+ if (m.err)
2856
+ return m;
2857
+ var b = Pi(m.val);
2858
+ if (b.length === 0)
2859
+ return this.error(H.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
2860
+ var _ = O(d, this.clonePosition());
2861
+ l = { style: b, styleLocation: _ };
2862
2862
  }
2863
- var T = this.tryParseArgumentClose(i);
2864
- if (T.err)
2865
- return T;
2866
- var P = H(i, this.clonePosition());
2863
+ var B = this.tryParseArgumentClose(i);
2864
+ if (B.err)
2865
+ return B;
2866
+ var I = O(i, this.clonePosition());
2867
2867
  if (l && mn(l == null ? void 0 : l.style, "::", 0)) {
2868
2868
  var j = Mi(l.style.slice(2));
2869
2869
  if (s === "number") {
2870
- var g = this.parseNumberSkeletonFromString(j, l.styleLocation);
2871
- return g.err ? g : {
2872
- val: { type: D.number, value: r, location: P, style: g.val },
2870
+ var m = this.parseNumberSkeletonFromString(j, l.styleLocation);
2871
+ return m.err ? m : {
2872
+ val: { type: D.number, value: r, location: I, style: m.val },
2873
2873
  err: null
2874
2874
  };
2875
2875
  } else {
2876
2876
  if (j.length === 0)
2877
- return this.error(C.EXPECT_DATE_TIME_SKELETON, P);
2878
- var z = j;
2879
- this.locale && (z = xi(j, this.locale));
2880
- var y = {
2881
- type: Ge.dateTime,
2882
- pattern: z,
2877
+ return this.error(H.EXPECT_DATE_TIME_SKELETON, I);
2878
+ var W = j;
2879
+ this.locale && (W = xi(j, this.locale));
2880
+ var b = {
2881
+ type: Ue.dateTime,
2882
+ pattern: W,
2883
2883
  location: l.styleLocation,
2884
- parsedOptions: this.shouldParseSkeletons ? pi(z) : {}
2885
- }, G = s === "date" ? D.date : D.time;
2884
+ parsedOptions: this.shouldParseSkeletons ? pi(W) : {}
2885
+ }, U = s === "date" ? D.date : D.time;
2886
2886
  return {
2887
- val: { type: G, value: r, location: P, style: y },
2887
+ val: { type: U, value: r, location: I, style: b },
2888
2888
  err: null
2889
2889
  };
2890
2890
  }
@@ -2893,7 +2893,7 @@ var Ii = (
2893
2893
  val: {
2894
2894
  type: s === "number" ? D.number : s === "date" ? D.date : D.time,
2895
2895
  value: r,
2896
- location: P,
2896
+ location: I,
2897
2897
  style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
2898
2898
  },
2899
2899
  err: null
@@ -2902,52 +2902,52 @@ var Ii = (
2902
2902
  case "plural":
2903
2903
  case "selectordinal":
2904
2904
  case "select": {
2905
- var B = this.clonePosition();
2905
+ var w = this.clonePosition();
2906
2906
  if (this.bumpSpace(), !this.bumpIf(","))
2907
- return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS, H(B, mt({}, B)));
2907
+ return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(w, gt({}, w)));
2908
2908
  this.bumpSpace();
2909
- var w = this.parseIdentifierIfPossible(), I = 0;
2910
- if (s !== "select" && w.value === "offset") {
2909
+ var A = this.parseIdentifierIfPossible(), P = 0;
2910
+ if (s !== "select" && A.value === "offset") {
2911
2911
  if (!this.bumpIf(":"))
2912
- return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
2912
+ return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
2913
2913
  this.bumpSpace();
2914
- var g = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2915
- if (g.err)
2916
- return g;
2917
- this.bumpSpace(), w = this.parseIdentifierIfPossible(), I = g.val;
2914
+ var m = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2915
+ if (m.err)
2916
+ return m;
2917
+ this.bumpSpace(), A = this.parseIdentifierIfPossible(), P = m.val;
2918
2918
  }
2919
- var R = this.tryParsePluralOrSelectOptions(t, s, n, w);
2920
- if (R.err)
2921
- return R;
2922
- var T = this.tryParseArgumentClose(i);
2923
- if (T.err)
2924
- return T;
2925
- var K = H(i, this.clonePosition());
2919
+ var L = this.tryParsePluralOrSelectOptions(t, s, n, A);
2920
+ if (L.err)
2921
+ return L;
2922
+ var B = this.tryParseArgumentClose(i);
2923
+ if (B.err)
2924
+ return B;
2925
+ var Y = O(i, this.clonePosition());
2926
2926
  return s === "select" ? {
2927
2927
  val: {
2928
2928
  type: D.select,
2929
2929
  value: r,
2930
- options: gn(R.val),
2931
- location: K
2930
+ options: gn(L.val),
2931
+ location: Y
2932
2932
  },
2933
2933
  err: null
2934
2934
  } : {
2935
2935
  val: {
2936
2936
  type: D.plural,
2937
2937
  value: r,
2938
- options: gn(R.val),
2939
- offset: I,
2938
+ options: gn(L.val),
2939
+ offset: P,
2940
2940
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2941
- location: K
2941
+ location: Y
2942
2942
  },
2943
2943
  err: null
2944
2944
  };
2945
2945
  }
2946
2946
  default:
2947
- return this.error(C.INVALID_ARGUMENT_TYPE, H(u, c));
2947
+ return this.error(H.INVALID_ARGUMENT_TYPE, O(u, f));
2948
2948
  }
2949
2949
  }, e.prototype.tryParseArgumentClose = function(t) {
2950
- return this.isEOF() || this.char() !== 125 ? this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2950
+ return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2951
2951
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2952
2952
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2953
2953
  var r = this.char();
@@ -2956,7 +2956,7 @@ var Ii = (
2956
2956
  this.bump();
2957
2957
  var i = this.clonePosition();
2958
2958
  if (!this.bumpUntil("'"))
2959
- return this.error(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, H(i, this.clonePosition()));
2959
+ return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, O(i, this.clonePosition()));
2960
2960
  this.bump();
2961
2961
  break;
2962
2962
  }
@@ -2988,11 +2988,11 @@ var Ii = (
2988
2988
  try {
2989
2989
  r = gi(t);
2990
2990
  } catch (i) {
2991
- return this.error(C.INVALID_NUMBER_SKELETON, n);
2991
+ return this.error(H.INVALID_NUMBER_SKELETON, n);
2992
2992
  }
2993
2993
  return {
2994
2994
  val: {
2995
- type: Ge.number,
2995
+ type: Ue.number,
2996
2996
  tokens: r,
2997
2997
  location: n,
2998
2998
  parsedOptions: this.shouldParseSkeletons ? Ei(r) : {}
@@ -3000,38 +3000,38 @@ var Ii = (
3000
3000
  err: null
3001
3001
  };
3002
3002
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3003
- for (var o, u = !1, s = [], c = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
3003
+ for (var o, u = !1, s = [], f = /* @__PURE__ */ new Set(), l = i.value, d = i.location; ; ) {
3004
3004
  if (l.length === 0) {
3005
- var g = this.clonePosition();
3005
+ var m = this.clonePosition();
3006
3006
  if (n !== "select" && this.bumpIf("=")) {
3007
- var y = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR, C.INVALID_PLURAL_ARGUMENT_SELECTOR);
3008
- if (y.err)
3009
- return y;
3010
- f = H(g, this.clonePosition()), l = this.message.slice(g.offset, this.offset());
3007
+ var b = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
3008
+ if (b.err)
3009
+ return b;
3010
+ d = O(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
3011
3011
  } else
3012
3012
  break;
3013
3013
  }
3014
- if (c.has(l))
3015
- return this.error(n === "select" ? C.DUPLICATE_SELECT_ARGUMENT_SELECTOR : C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3014
+ if (f.has(l))
3015
+ return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
3016
3016
  l === "other" && (u = !0), this.bumpSpace();
3017
- var x = this.clonePosition();
3017
+ var _ = this.clonePosition();
3018
3018
  if (!this.bumpIf("{"))
3019
- return this.error(n === "select" ? C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
3020
- var T = this.parseMessage(t + 1, n, r);
3021
- if (T.err)
3022
- return T;
3023
- var P = this.tryParseArgumentClose(x);
3024
- if (P.err)
3025
- return P;
3019
+ return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
3020
+ var B = this.parseMessage(t + 1, n, r);
3021
+ if (B.err)
3022
+ return B;
3023
+ var I = this.tryParseArgumentClose(_);
3024
+ if (I.err)
3025
+ return I;
3026
3026
  s.push([
3027
3027
  l,
3028
3028
  {
3029
- value: T.val,
3030
- location: H(x, this.clonePosition())
3029
+ value: B.val,
3030
+ location: O(_, this.clonePosition())
3031
3031
  }
3032
- ]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
3032
+ ]), f.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, d = o.location;
3033
3033
  }
3034
- return s.length === 0 ? this.error(n === "select" ? C.EXPECT_SELECT_ARGUMENT_SELECTOR : C.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(C.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3034
+ return s.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(H.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3035
3035
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3036
3036
  var r = 1, i = this.clonePosition();
3037
3037
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3042,8 +3042,8 @@ var Ii = (
3042
3042
  else
3043
3043
  break;
3044
3044
  }
3045
- var c = H(i, this.clonePosition());
3046
- return o ? (u *= r, Ri(u) ? { val: u, err: null } : this.error(n, c)) : this.error(t, c);
3045
+ var f = O(i, this.clonePosition());
3046
+ return o ? (u *= r, Ri(u) ? { val: u, err: null } : this.error(n, f)) : this.error(t, f);
3047
3047
  }, e.prototype.offset = function() {
3048
3048
  return this.position.offset;
3049
3049
  }, e.prototype.isEOF = function() {
@@ -3126,30 +3126,30 @@ function Ui(e) {
3126
3126
  }
3127
3127
  function Yt(e) {
3128
3128
  e.forEach(function(t) {
3129
- if (delete t.location, jn(t) || kn(t))
3129
+ if (delete t.location, $n(t) || kn(t))
3130
3130
  for (var n in t.options)
3131
3131
  delete t.options[n].location, Yt(t.options[n].value);
3132
3132
  else
3133
- Un(t) && Xn(t.style) || (Gn(t) || $n(t)) && Wt(t.style) ? delete t.style.location : Vn(t) && Yt(t.children);
3133
+ Un(t) && Xn(t.style) || (Gn(t) || jn(t)) && Wt(t.style) ? delete t.style.location : Vn(t) && Yt(t.children);
3134
3134
  });
3135
3135
  }
3136
3136
  function Gi(e, t) {
3137
- t === void 0 && (t = {}), t = mt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3137
+ t === void 0 && (t = {}), t = gt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3138
3138
  var n = new Ii(e, t).parse();
3139
3139
  if (n.err) {
3140
- var r = SyntaxError(C[n.err.kind]);
3140
+ var r = SyntaxError(H[n.err.kind]);
3141
3141
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3142
3142
  }
3143
3143
  return t != null && t.captureLocation || Yt(n.val), n.val;
3144
3144
  }
3145
- var $e;
3145
+ var Ge;
3146
3146
  (function(e) {
3147
3147
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3148
- })($e || ($e = {}));
3149
- var Et = (
3148
+ })(Ge || (Ge = {}));
3149
+ var xt = (
3150
3150
  /** @class */
3151
3151
  function(e) {
3152
- vt(t, e);
3152
+ Et(t, e);
3153
3153
  function t(n, r, i) {
3154
3154
  var o = e.call(this, n) || this;
3155
3155
  return o.code = r, o.originalMessage = i, o;
@@ -3161,152 +3161,152 @@ var Et = (
3161
3161
  ), yn = (
3162
3162
  /** @class */
3163
3163
  function(e) {
3164
- vt(t, e);
3164
+ Et(t, e);
3165
3165
  function t(n, r, i, o) {
3166
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
3166
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, o) || this;
3167
3167
  }
3168
3168
  return t;
3169
- }(Et)
3170
- ), $i = (
3169
+ }(xt)
3170
+ ), ji = (
3171
3171
  /** @class */
3172
3172
  function(e) {
3173
- vt(t, e);
3173
+ Et(t, e);
3174
3174
  function t(n, r, i) {
3175
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
3175
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ge.INVALID_VALUE, i) || this;
3176
3176
  }
3177
3177
  return t;
3178
- }(Et)
3179
- ), ji = (
3178
+ }(xt)
3179
+ ), $i = (
3180
3180
  /** @class */
3181
3181
  function(e) {
3182
- vt(t, e);
3182
+ Et(t, e);
3183
3183
  function t(n, r) {
3184
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
3184
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ge.MISSING_VALUE, r) || this;
3185
3185
  }
3186
3186
  return t;
3187
- }(Et)
3188
- ), Y;
3187
+ }(xt)
3188
+ ), J;
3189
3189
  (function(e) {
3190
3190
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3191
- })(Y || (Y = {}));
3191
+ })(J || (J = {}));
3192
3192
  function ki(e) {
3193
3193
  return e.length < 2 ? e : e.reduce(function(t, n) {
3194
3194
  var r = t[t.length - 1];
3195
- return !r || r.type !== Y.literal || n.type !== Y.literal ? t.push(n) : r.value += n.value, t;
3195
+ return !r || r.type !== J.literal || n.type !== J.literal ? t.push(n) : r.value += n.value, t;
3196
3196
  }, []);
3197
3197
  }
3198
3198
  function Vi(e) {
3199
3199
  return typeof e == "function";
3200
3200
  }
3201
- function ct(e, t, n, r, i, o, u) {
3201
+ function ft(e, t, n, r, i, o, u) {
3202
3202
  if (e.length === 1 && cn(e[0]))
3203
3203
  return [
3204
3204
  {
3205
- type: Y.literal,
3205
+ type: J.literal,
3206
3206
  value: e[0].value
3207
3207
  }
3208
3208
  ];
3209
- for (var s = [], c = 0, l = e; c < l.length; c++) {
3210
- var f = l[c];
3211
- if (cn(f)) {
3209
+ for (var s = [], f = 0, l = e; f < l.length; f++) {
3210
+ var d = l[f];
3211
+ if (cn(d)) {
3212
3212
  s.push({
3213
- type: Y.literal,
3214
- value: f.value
3213
+ type: J.literal,
3214
+ value: d.value
3215
3215
  });
3216
3216
  continue;
3217
3217
  }
3218
- if (fi(f)) {
3218
+ if (fi(d)) {
3219
3219
  typeof o == "number" && s.push({
3220
- type: Y.literal,
3220
+ type: J.literal,
3221
3221
  value: n.getNumberFormat(t).format(o)
3222
3222
  });
3223
3223
  continue;
3224
3224
  }
3225
- var g = f.value;
3226
- if (!(i && g in i))
3227
- throw new ji(g, u);
3228
- var y = i[g];
3229
- if (ci(f)) {
3230
- (!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), s.push({
3231
- type: typeof y == "string" ? Y.literal : Y.object,
3232
- value: y
3225
+ var m = d.value;
3226
+ if (!(i && m in i))
3227
+ throw new $i(m, u);
3228
+ var b = i[m];
3229
+ if (ci(d)) {
3230
+ (!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
3231
+ type: typeof b == "string" ? J.literal : J.object,
3232
+ value: b
3233
3233
  });
3234
3234
  continue;
3235
3235
  }
3236
- if (Gn(f)) {
3237
- var x = typeof f.style == "string" ? r.date[f.style] : Wt(f.style) ? f.style.parsedOptions : void 0;
3236
+ if (Gn(d)) {
3237
+ var _ = typeof d.style == "string" ? r.date[d.style] : Wt(d.style) ? d.style.parsedOptions : void 0;
3238
3238
  s.push({
3239
- type: Y.literal,
3240
- value: n.getDateTimeFormat(t, x).format(y)
3239
+ type: J.literal,
3240
+ value: n.getDateTimeFormat(t, _).format(b)
3241
3241
  });
3242
3242
  continue;
3243
3243
  }
3244
- if ($n(f)) {
3245
- var x = typeof f.style == "string" ? r.time[f.style] : Wt(f.style) ? f.style.parsedOptions : r.time.medium;
3244
+ if (jn(d)) {
3245
+ var _ = typeof d.style == "string" ? r.time[d.style] : Wt(d.style) ? d.style.parsedOptions : r.time.medium;
3246
3246
  s.push({
3247
- type: Y.literal,
3248
- value: n.getDateTimeFormat(t, x).format(y)
3247
+ type: J.literal,
3248
+ value: n.getDateTimeFormat(t, _).format(b)
3249
3249
  });
3250
3250
  continue;
3251
3251
  }
3252
- if (Un(f)) {
3253
- var x = typeof f.style == "string" ? r.number[f.style] : Xn(f.style) ? f.style.parsedOptions : void 0;
3254
- x && x.scale && (y = y * (x.scale || 1)), s.push({
3255
- type: Y.literal,
3256
- value: n.getNumberFormat(t, x).format(y)
3252
+ if (Un(d)) {
3253
+ var _ = typeof d.style == "string" ? r.number[d.style] : Xn(d.style) ? d.style.parsedOptions : void 0;
3254
+ _ && _.scale && (b = b * (_.scale || 1)), s.push({
3255
+ type: J.literal,
3256
+ value: n.getNumberFormat(t, _).format(b)
3257
3257
  });
3258
3258
  continue;
3259
3259
  }
3260
- if (Vn(f)) {
3261
- var T = f.children, P = f.value, j = i[P];
3260
+ if (Vn(d)) {
3261
+ var B = d.children, I = d.value, j = i[I];
3262
3262
  if (!Vi(j))
3263
- throw new $i(P, "function", u);
3264
- var z = ct(T, t, n, r, i, o), G = j(z.map(function(I) {
3265
- return I.value;
3263
+ throw new ji(I, "function", u);
3264
+ var W = ft(B, t, n, r, i, o), U = j(W.map(function(P) {
3265
+ return P.value;
3266
3266
  }));
3267
- Array.isArray(G) || (G = [G]), s.push.apply(s, G.map(function(I) {
3267
+ Array.isArray(U) || (U = [U]), s.push.apply(s, U.map(function(P) {
3268
3268
  return {
3269
- type: typeof I == "string" ? Y.literal : Y.object,
3270
- value: I
3269
+ type: typeof P == "string" ? J.literal : J.object,
3270
+ value: P
3271
3271
  };
3272
3272
  }));
3273
3273
  }
3274
- if (jn(f)) {
3275
- var B = f.options[y] || f.options.other;
3276
- if (!B)
3277
- throw new yn(f.value, y, Object.keys(f.options), u);
3278
- s.push.apply(s, ct(B.value, t, n, r, i));
3274
+ if ($n(d)) {
3275
+ var w = d.options[b] || d.options.other;
3276
+ if (!w)
3277
+ throw new yn(d.value, b, Object.keys(d.options), u);
3278
+ s.push.apply(s, ft(w.value, t, n, r, i));
3279
3279
  continue;
3280
3280
  }
3281
- if (kn(f)) {
3282
- var B = f.options["=".concat(y)];
3283
- if (!B) {
3281
+ if (kn(d)) {
3282
+ var w = d.options["=".concat(b)];
3283
+ if (!w) {
3284
3284
  if (!Intl.PluralRules)
3285
- throw new Et(`Intl.PluralRules is not available in this environment.
3285
+ throw new xt(`Intl.PluralRules is not available in this environment.
3286
3286
  Try polyfilling it using "@formatjs/intl-pluralrules"
3287
- `, $e.MISSING_INTL_API, u);
3288
- var w = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
3289
- B = f.options[w] || f.options.other;
3287
+ `, Ge.MISSING_INTL_API, u);
3288
+ var A = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
3289
+ w = d.options[A] || d.options.other;
3290
3290
  }
3291
- if (!B)
3292
- throw new yn(f.value, y, Object.keys(f.options), u);
3293
- s.push.apply(s, ct(B.value, t, n, r, i, y - (f.offset || 0)));
3291
+ if (!w)
3292
+ throw new yn(d.value, b, Object.keys(d.options), u);
3293
+ s.push.apply(s, ft(w.value, t, n, r, i, b - (d.offset || 0)));
3294
3294
  continue;
3295
3295
  }
3296
3296
  }
3297
3297
  return ki(s);
3298
3298
  }
3299
3299
  function Xi(e, t) {
3300
- return t ? ce(ce(ce({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3301
- return n[r] = ce(ce({}, e[r]), t[r] || {}), n;
3300
+ return t ? fe(fe(fe({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3301
+ return n[r] = fe(fe({}, e[r]), t[r] || {}), n;
3302
3302
  }, {})) : e;
3303
3303
  }
3304
3304
  function zi(e, t) {
3305
3305
  return t ? Object.keys(e).reduce(function(n, r) {
3306
3306
  return n[r] = Xi(e[r], t[r]), n;
3307
- }, ce({}, e)) : e;
3307
+ }, fe({}, e)) : e;
3308
3308
  }
3309
- function $t(e) {
3309
+ function jt(e) {
3310
3310
  return {
3311
3311
  create: function() {
3312
3312
  return {
@@ -3331,7 +3331,7 @@ function Wi(e) {
3331
3331
  n[r] = arguments[r];
3332
3332
  return new ((t = Intl.NumberFormat).bind.apply(t, Dt([void 0], n, !1)))();
3333
3333
  }, {
3334
- cache: $t(e.number),
3334
+ cache: jt(e.number),
3335
3335
  strategy: Ut.variadic
3336
3336
  }),
3337
3337
  getDateTimeFormat: Ft(function() {
@@ -3339,7 +3339,7 @@ function Wi(e) {
3339
3339
  n[r] = arguments[r];
3340
3340
  return new ((t = Intl.DateTimeFormat).bind.apply(t, Dt([void 0], n, !1)))();
3341
3341
  }, {
3342
- cache: $t(e.dateTime),
3342
+ cache: jt(e.dateTime),
3343
3343
  strategy: Ut.variadic
3344
3344
  }),
3345
3345
  getPluralRules: Ft(function() {
@@ -3347,7 +3347,7 @@ function Wi(e) {
3347
3347
  n[r] = arguments[r];
3348
3348
  return new ((t = Intl.PluralRules).bind.apply(t, Dt([void 0], n, !1)))();
3349
3349
  }, {
3350
- cache: $t(e.pluralRules),
3350
+ cache: jt(e.pluralRules),
3351
3351
  strategy: Ut.variadic
3352
3352
  })
3353
3353
  };
@@ -3362,20 +3362,20 @@ var Zi = (
3362
3362
  number: {},
3363
3363
  dateTime: {},
3364
3364
  pluralRules: {}
3365
- }, this.format = function(c) {
3366
- var l = o.formatToParts(c);
3365
+ }, this.format = function(f) {
3366
+ var l = o.formatToParts(f);
3367
3367
  if (l.length === 1)
3368
3368
  return l[0].value;
3369
- var f = l.reduce(function(g, y) {
3370
- return !g.length || y.type !== Y.literal || typeof g[g.length - 1] != "string" ? g.push(y.value) : g[g.length - 1] += y.value, g;
3369
+ var d = l.reduce(function(m, b) {
3370
+ return !m.length || b.type !== J.literal || typeof m[m.length - 1] != "string" ? m.push(b.value) : m[m.length - 1] += b.value, m;
3371
3371
  }, []);
3372
- return f.length <= 1 ? f[0] || "" : f;
3373
- }, this.formatToParts = function(c) {
3374
- return ct(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3372
+ return d.length <= 1 ? d[0] || "" : d;
3373
+ }, this.formatToParts = function(f) {
3374
+ return ft(o.ast, o.locales, o.formatters, o.formats, f, void 0, o.message);
3375
3375
  }, this.resolvedOptions = function() {
3376
- var c;
3376
+ var f;
3377
3377
  return {
3378
- locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3378
+ locale: ((f = o.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3379
3379
  };
3380
3380
  }, this.getAst = function() {
3381
3381
  return o.ast;
@@ -3385,7 +3385,7 @@ var Zi = (
3385
3385
  var u = i || {};
3386
3386
  u.formatters;
3387
3387
  var s = ri(u, ["formatters"]);
3388
- this.ast = e.__parse(t, ce(ce({}, s), { locale: this.resolvedLocale }));
3388
+ this.ast = e.__parse(t, fe(fe({}, s), { locale: this.resolvedLocale }));
3389
3389
  } else
3390
3390
  this.ast = t;
3391
3391
  if (!Array.isArray(this.ast))
@@ -3485,12 +3485,12 @@ function qi(e, t) {
3485
3485
  r = void 0;
3486
3486
  return r;
3487
3487
  }
3488
- const we = {}, Qi = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), Kn = (e, t) => {
3488
+ const Se = {}, Qi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), Kn = (e, t) => {
3489
3489
  if (t == null)
3490
3490
  return;
3491
- if (t in we && e in we[t])
3492
- return we[t][e];
3493
- const n = xt(t);
3491
+ if (t in Se && e in Se[t])
3492
+ return Se[t][e];
3493
+ const n = _t(t);
3494
3494
  for (let r = 0; r < n.length; r++) {
3495
3495
  const i = n[r], o = Yi(i, e);
3496
3496
  if (o)
@@ -3498,7 +3498,7 @@ const we = {}, Qi = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (w
3498
3498
  }
3499
3499
  };
3500
3500
  let rn;
3501
- const it = yt({});
3501
+ const rt = vt({});
3502
3502
  function Ji(e) {
3503
3503
  return rn[e] || null;
3504
3504
  }
@@ -3514,7 +3514,7 @@ function Yi(e, t) {
3514
3514
  function Ki(e) {
3515
3515
  if (e == null)
3516
3516
  return;
3517
- const t = xt(e);
3517
+ const t = _t(e);
3518
3518
  for (let n = 0; n < t.length; n++) {
3519
3519
  const r = t[n];
3520
3520
  if (er(r))
@@ -3522,28 +3522,28 @@ function Ki(e) {
3522
3522
  }
3523
3523
  }
3524
3524
  function tr(e, ...t) {
3525
- delete we[e], it.update((n) => (n[e] = ni.all([n[e] || {}, ...t]), n));
3525
+ delete Se[e], rt.update((n) => (n[e] = ni.all([n[e] || {}, ...t]), n));
3526
3526
  }
3527
- Ve(
3528
- [it],
3527
+ ke(
3528
+ [rt],
3529
3529
  ([e]) => Object.keys(e)
3530
3530
  );
3531
- it.subscribe((e) => rn = e);
3532
- const ft = {};
3531
+ rt.subscribe((e) => rn = e);
3532
+ const dt = {};
3533
3533
  function eo(e, t) {
3534
- ft[e].delete(t), ft[e].size === 0 && delete ft[e];
3534
+ dt[e].delete(t), dt[e].size === 0 && delete dt[e];
3535
3535
  }
3536
3536
  function nr(e) {
3537
- return ft[e];
3537
+ return dt[e];
3538
3538
  }
3539
3539
  function to(e) {
3540
- return xt(e).map((t) => {
3540
+ return _t(e).map((t) => {
3541
3541
  const n = nr(t);
3542
3542
  return [t, n ? [...n] : []];
3543
3543
  }).filter(([, t]) => t.length > 0);
3544
3544
  }
3545
3545
  function Kt(e) {
3546
- return e == null ? !1 : xt(e).some(
3546
+ return e == null ? !1 : _t(e).some(
3547
3547
  (t) => {
3548
3548
  var n;
3549
3549
  return (n = nr(t)) == null ? void 0 : n.size;
@@ -3555,20 +3555,20 @@ function no(e, t) {
3555
3555
  t.map((r) => (eo(e, r), r().then((i) => i.default || i)))
3556
3556
  ).then((r) => tr(e, ...r));
3557
3557
  }
3558
- const Ke = {};
3558
+ const Ye = {};
3559
3559
  function rr(e) {
3560
3560
  if (!Kt(e))
3561
- return e in Ke ? Ke[e] : Promise.resolve();
3561
+ return e in Ye ? Ye[e] : Promise.resolve();
3562
3562
  const t = to(e);
3563
- return Ke[e] = Promise.all(
3563
+ return Ye[e] = Promise.all(
3564
3564
  t.map(
3565
3565
  ([n, r]) => no(n, r)
3566
3566
  )
3567
3567
  ).then(() => {
3568
3568
  if (Kt(e))
3569
3569
  return rr(e);
3570
- delete Ke[e];
3571
- }), Ke[e];
3570
+ delete Ye[e];
3571
+ }), Ye[e];
3572
3572
  }
3573
3573
  const ro = {
3574
3574
  number: {
@@ -3610,7 +3610,7 @@ const ro = {
3610
3610
  function je() {
3611
3611
  return oo;
3612
3612
  }
3613
- const jt = yt(!1);
3613
+ const $t = vt(!1);
3614
3614
  var ao = Object.defineProperty, so = Object.defineProperties, uo = Object.getOwnPropertyDescriptors, vn = Object.getOwnPropertySymbols, lo = Object.prototype.hasOwnProperty, ho = Object.prototype.propertyIsEnumerable, En = (e, t, n) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, co = (e, t) => {
3615
3615
  for (var n in t || (t = {}))
3616
3616
  lo.call(t, n) && En(e, n, t[n]);
@@ -3620,18 +3620,18 @@ var ao = Object.defineProperty, so = Object.defineProperties, uo = Object.getOwn
3620
3620
  return e;
3621
3621
  }, fo = (e, t) => so(e, uo(t));
3622
3622
  let en;
3623
- const gt = yt(null);
3623
+ const bt = vt(null);
3624
3624
  function xn(e) {
3625
3625
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3626
3626
  }
3627
- function xt(e, t = je().fallbackLocale) {
3627
+ function _t(e, t = je().fallbackLocale) {
3628
3628
  const n = xn(e);
3629
3629
  return t ? [.../* @__PURE__ */ new Set([...n, ...xn(t)])] : n;
3630
3630
  }
3631
3631
  function Oe() {
3632
3632
  return en != null ? en : void 0;
3633
3633
  }
3634
- gt.subscribe((e) => {
3634
+ bt.subscribe((e) => {
3635
3635
  en = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3636
3636
  });
3637
3637
  const po = (e) => {
@@ -3639,90 +3639,90 @@ const po = (e) => {
3639
3639
  const { loadingDelay: t } = je();
3640
3640
  let n;
3641
3641
  return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
3642
- () => jt.set(!0),
3642
+ () => $t.set(!0),
3643
3643
  t
3644
- ) : jt.set(!0), rr(e).then(() => {
3645
- gt.set(e);
3644
+ ) : $t.set(!0), rr(e).then(() => {
3645
+ bt.set(e);
3646
3646
  }).finally(() => {
3647
- clearTimeout(n), jt.set(!1);
3647
+ clearTimeout(n), $t.set(!1);
3648
3648
  });
3649
3649
  }
3650
- return gt.set(e);
3651
- }, Xe = fo(co({}, gt), {
3650
+ return bt.set(e);
3651
+ }, Ve = fo(co({}, bt), {
3652
3652
  set: po
3653
- }), _t = (e) => {
3653
+ }), Tt = (e) => {
3654
3654
  const t = /* @__PURE__ */ Object.create(null);
3655
3655
  return (r) => {
3656
3656
  const i = JSON.stringify(r);
3657
3657
  return i in t ? t[i] : t[i] = e(r);
3658
3658
  };
3659
3659
  };
3660
- var mo = Object.defineProperty, bt = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, on = (e, t) => {
3660
+ var mo = Object.defineProperty, yt = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, on = (e, t) => {
3661
3661
  for (var n in t || (t = {}))
3662
3662
  ir.call(t, n) && _n(e, n, t[n]);
3663
- if (bt)
3664
- for (var n of bt(t))
3663
+ if (yt)
3664
+ for (var n of yt(t))
3665
3665
  or.call(t, n) && _n(e, n, t[n]);
3666
3666
  return e;
3667
- }, ze = (e, t) => {
3667
+ }, Xe = (e, t) => {
3668
3668
  var n = {};
3669
3669
  for (var r in e)
3670
3670
  ir.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3671
- if (e != null && bt)
3672
- for (var r of bt(e))
3671
+ if (e != null && yt)
3672
+ for (var r of yt(e))
3673
3673
  t.indexOf(r) < 0 && or.call(e, r) && (n[r] = e[r]);
3674
3674
  return n;
3675
3675
  };
3676
- const rt = (e, t) => {
3676
+ const nt = (e, t) => {
3677
3677
  const { formats: n } = je();
3678
3678
  if (e in n && t in n[e])
3679
3679
  return n[e][t];
3680
3680
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3681
- }, go = _t(
3681
+ }, go = Tt(
3682
3682
  (e) => {
3683
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3683
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3684
3684
  if (n == null)
3685
3685
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3686
- return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
3686
+ return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
3687
3687
  }
3688
- ), bo = _t(
3688
+ ), bo = Tt(
3689
3689
  (e) => {
3690
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3690
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3691
3691
  if (n == null)
3692
3692
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3693
- return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
3693
+ return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
3694
3694
  }
3695
- ), yo = _t(
3695
+ ), yo = Tt(
3696
3696
  (e) => {
3697
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3697
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3698
3698
  if (n == null)
3699
3699
  throw new Error(
3700
3700
  '[svelte-i18n] A "locale" must be set to format time values'
3701
3701
  );
3702
- return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
3702
+ return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
3703
3703
  }
3704
3704
  ), vo = (e = {}) => {
3705
3705
  var t = e, {
3706
3706
  locale: n = Oe()
3707
- } = t, r = ze(t, [
3707
+ } = t, r = Xe(t, [
3708
3708
  "locale"
3709
3709
  ]);
3710
3710
  return go(on({ locale: n }, r));
3711
3711
  }, Eo = (e = {}) => {
3712
3712
  var t = e, {
3713
3713
  locale: n = Oe()
3714
- } = t, r = ze(t, [
3714
+ } = t, r = Xe(t, [
3715
3715
  "locale"
3716
3716
  ]);
3717
3717
  return bo(on({ locale: n }, r));
3718
3718
  }, xo = (e = {}) => {
3719
3719
  var t = e, {
3720
3720
  locale: n = Oe()
3721
- } = t, r = ze(t, [
3721
+ } = t, r = Xe(t, [
3722
3722
  "locale"
3723
3723
  ]);
3724
3724
  return yo(on({ locale: n }, r));
3725
- }, _o = _t(
3725
+ }, _o = Tt(
3726
3726
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3727
3727
  (e, t = Oe()) => new Zi(e, t, je().formats, {
3728
3728
  ignoreTag: je().ignoreTag
@@ -3733,42 +3733,42 @@ const rt = (e, t) => {
3733
3733
  typeof e == "object" && (u = e, e = u.id);
3734
3734
  const {
3735
3735
  values: s,
3736
- locale: c = Oe(),
3736
+ locale: f = Oe(),
3737
3737
  default: l
3738
3738
  } = u;
3739
- if (c == null)
3739
+ if (f == null)
3740
3740
  throw new Error(
3741
3741
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3742
3742
  );
3743
- let f = Kn(e, c);
3744
- if (!f)
3745
- f = (o = (i = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3746
- else if (typeof f != "string")
3743
+ let d = Kn(e, f);
3744
+ if (!d)
3745
+ d = (o = (i = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: f, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3746
+ else if (typeof d != "string")
3747
3747
  return console.warn(
3748
- `[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.`
3749
- ), f;
3748
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3749
+ ), d;
3750
3750
  if (!s)
3751
- return f;
3752
- let g = f;
3751
+ return d;
3752
+ let m = d;
3753
3753
  try {
3754
- g = _o(f, c).format(s);
3755
- } catch (y) {
3756
- y instanceof Error && console.warn(
3754
+ m = _o(d, f).format(s);
3755
+ } catch (b) {
3756
+ b instanceof Error && console.warn(
3757
3757
  `[svelte-i18n] Message "${e}" has syntax error:`,
3758
- y.message
3758
+ b.message
3759
3759
  );
3760
3760
  }
3761
- return g;
3762
- }, Bo = (e, t) => xo(t).format(e), So = (e, t) => Eo(t).format(e), wo = (e, t) => vo(t).format(e), Ao = (e, t = Oe()) => Kn(e, t), Co = Ve([Xe, it], () => To);
3763
- Ve([Xe], () => Bo);
3764
- Ve([Xe], () => So);
3765
- Ve([Xe], () => wo);
3766
- Ve([Xe, it], () => Ao);
3761
+ return m;
3762
+ }, Bo = (e, t) => xo(t).format(e), So = (e, t) => Eo(t).format(e), wo = (e, t) => vo(t).format(e), Ao = (e, t = Oe()) => Kn(e, t), Co = ke([Ve, rt], () => To);
3763
+ ke([Ve], () => Bo);
3764
+ ke([Ve], () => So);
3765
+ ke([Ve], () => wo);
3766
+ ke([Ve, rt], () => Ao);
3767
3767
  function Tn(e, t) {
3768
3768
  tr(e, t);
3769
3769
  }
3770
3770
  function Ho(e) {
3771
- Xe.set(e);
3771
+ Ve.set(e);
3772
3772
  }
3773
3773
  const Bn = {
3774
3774
  en: {
@@ -3978,35 +3978,35 @@ var tn = { exports: {} };
3978
3978
  */
3979
3979
  (function(e, t) {
3980
3980
  (function(n) {
3981
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, l = n.document, f = n.Promise, g = n.fetch, y = n.Response, x = n.TextDecoder, T = n.TextEncoder, P = n.AbortController;
3982
- if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(a) {
3981
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, f = n.EventSource, l = n.document, d = n.Promise, m = n.fetch, b = n.Response, _ = n.TextDecoder, B = n.TextEncoder, I = n.AbortController;
3982
+ if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(c) {
3983
3983
  l.readyState = "complete";
3984
3984
  }, !1)), o == null && s != null && (o = function() {
3985
3985
  return new s("Microsoft.XMLHTTP");
3986
- }), Object.create == null && (Object.create = function(a) {
3987
- function h() {
3986
+ }), Object.create == null && (Object.create = function(c) {
3987
+ function a() {
3988
3988
  }
3989
- return h.prototype = a, new h();
3989
+ return a.prototype = c, new a();
3990
3990
  }), Date.now || (Date.now = function() {
3991
3991
  return (/* @__PURE__ */ new Date()).getTime();
3992
- }), P == null) {
3993
- var j = g;
3994
- g = function(a, h) {
3995
- var m = h.signal;
3996
- return j(a, { headers: h.headers, credentials: h.credentials, cache: h.cache }).then(function(d) {
3997
- var v = d.body.getReader();
3998
- return m._reader = v, m._aborted && m._reader.cancel(), {
3999
- status: d.status,
4000
- statusText: d.statusText,
4001
- headers: d.headers,
3992
+ }), I == null) {
3993
+ var j = m;
3994
+ m = function(c, a) {
3995
+ var p = a.signal;
3996
+ return j(c, { headers: a.headers, credentials: a.credentials, cache: a.cache }).then(function(h) {
3997
+ var g = h.body.getReader();
3998
+ return p._reader = g, p._aborted && p._reader.cancel(), {
3999
+ status: h.status,
4000
+ statusText: h.statusText,
4001
+ headers: h.headers,
4002
4002
  body: {
4003
4003
  getReader: function() {
4004
- return v;
4004
+ return g;
4005
4005
  }
4006
4006
  }
4007
4007
  };
4008
4008
  });
4009
- }, P = function() {
4009
+ }, I = function() {
4010
4010
  this.signal = {
4011
4011
  _reader: null,
4012
4012
  _aborted: !1
@@ -4015,403 +4015,403 @@ var tn = { exports: {} };
4015
4015
  };
4016
4016
  };
4017
4017
  }
4018
- function z() {
4018
+ function W() {
4019
4019
  this.bitsNeeded = 0, this.codePoint = 0;
4020
4020
  }
4021
- z.prototype.decode = function(a) {
4022
- function h(O, L, S) {
4021
+ W.prototype.decode = function(c) {
4022
+ function a(C, R, S) {
4023
4023
  if (S === 1)
4024
- return O >= 128 >> L && O << L <= 2047;
4024
+ return C >= 128 >> R && C << R <= 2047;
4025
4025
  if (S === 2)
4026
- return O >= 2048 >> L && O << L <= 55295 || O >= 57344 >> L && O << L <= 65535;
4026
+ return C >= 2048 >> R && C << R <= 55295 || C >= 57344 >> R && C << R <= 65535;
4027
4027
  if (S === 3)
4028
- return O >= 65536 >> L && O << L <= 1114111;
4028
+ return C >= 65536 >> R && C << R <= 1114111;
4029
4029
  throw new Error();
4030
4030
  }
4031
- function m(O, L) {
4032
- if (O === 6 * 1)
4033
- return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
4034
- if (O === 6 * 2)
4035
- return L > 15 ? 3 : 2;
4036
- if (O === 6 * 3)
4031
+ function p(C, R) {
4032
+ if (C === 6 * 1)
4033
+ return R >> 6 > 15 ? 3 : R > 31 ? 2 : 1;
4034
+ if (C === 6 * 2)
4035
+ return R > 15 ? 3 : 2;
4036
+ if (C === 6 * 3)
4037
4037
  return 3;
4038
4038
  throw new Error();
4039
4039
  }
4040
- for (var d = 65533, v = "", p = this.bitsNeeded, _ = this.codePoint, N = 0; N < a.length; N += 1) {
4041
- var A = a[N];
4042
- p !== 0 && (A < 128 || A > 191 || !h(_ << 6 | A & 63, p - 6, m(p, _))) && (p = 0, _ = d, v += String.fromCharCode(_)), p === 0 ? (A >= 0 && A <= 127 ? (p = 0, _ = A) : A >= 192 && A <= 223 ? (p = 6 * 1, _ = A & 31) : A >= 224 && A <= 239 ? (p = 6 * 2, _ = A & 15) : A >= 240 && A <= 247 ? (p = 6 * 3, _ = A & 7) : (p = 0, _ = d), p !== 0 && !h(_, p, m(p, _)) && (p = 0, _ = d)) : (p -= 6, _ = _ << 6 | A & 63), p === 0 && (_ <= 65535 ? v += String.fromCharCode(_) : (v += String.fromCharCode(55296 + (_ - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (_ - 65535 - 1 & 1023))));
4040
+ for (var h = 65533, g = "", y = this.bitsNeeded, E = this.codePoint, v = 0; v < c.length; v += 1) {
4041
+ var T = c[v];
4042
+ y !== 0 && (T < 128 || T > 191 || !a(E << 6 | T & 63, y - 6, p(y, E))) && (y = 0, E = h, g += String.fromCharCode(E)), y === 0 ? (T >= 0 && T <= 127 ? (y = 0, E = T) : T >= 192 && T <= 223 ? (y = 6 * 1, E = T & 31) : T >= 224 && T <= 239 ? (y = 6 * 2, E = T & 15) : T >= 240 && T <= 247 ? (y = 6 * 3, E = T & 7) : (y = 0, E = h), y !== 0 && !a(E, y, p(y, E)) && (y = 0, E = h)) : (y -= 6, E = E << 6 | T & 63), y === 0 && (E <= 65535 ? g += String.fromCharCode(E) : (g += String.fromCharCode(55296 + (E - 65535 - 1 >> 10)), g += String.fromCharCode(56320 + (E - 65535 - 1 & 1023))));
4043
4043
  }
4044
- return this.bitsNeeded = p, this.codePoint = _, v;
4044
+ return this.bitsNeeded = y, this.codePoint = E, g;
4045
4045
  };
4046
- var G = function() {
4046
+ var U = function() {
4047
4047
  try {
4048
- return new x().decode(new T().encode("test"), { stream: !0 }) === "test";
4049
- } catch (a) {
4050
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
4048
+ return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
4049
+ } catch (c) {
4050
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + c);
4051
4051
  }
4052
4052
  return !1;
4053
4053
  };
4054
- (x == null || T == null || !G()) && (x = z);
4055
- var B = function() {
4054
+ (_ == null || B == null || !U()) && (_ = W);
4055
+ var w = function() {
4056
4056
  };
4057
- function w(a) {
4058
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = B;
4057
+ function A(c) {
4058
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = w, this.onload = w, this.onerror = w, this.onreadystatechange = w, this._contentType = "", this._xhr = c, this._sendTimeout = 0, this._abort = w;
4059
4059
  }
4060
- w.prototype.open = function(a, h) {
4060
+ A.prototype.open = function(c, a) {
4061
4061
  this._abort(!0);
4062
- var m = this, d = this._xhr, v = 1, p = 0;
4062
+ var p = this, h = this._xhr, g = 1, y = 0;
4063
4063
  this._abort = function(S) {
4064
- m._sendTimeout !== 0 && (i(m._sendTimeout), m._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, d.onload = B, d.onerror = B, d.onabort = B, d.onprogress = B, d.onreadystatechange = B, d.abort(), p !== 0 && (i(p), p = 0), S || (m.readyState = 4, m.onabort(null), m.onreadystatechange())), v = 0;
4064
+ p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (g === 1 || g === 2 || g === 3) && (g = 4, h.onload = w, h.onerror = w, h.onabort = w, h.onprogress = w, h.onreadystatechange = w, h.abort(), y !== 0 && (i(y), y = 0), S || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), g = 0;
4065
4065
  };
4066
- var _ = function() {
4067
- if (v === 1) {
4068
- var S = 0, F = "", ge = void 0;
4069
- if ("contentType" in d)
4070
- S = 200, F = "OK", ge = d.contentType;
4066
+ var E = function() {
4067
+ if (g === 1) {
4068
+ var S = 0, N = "", ge = void 0;
4069
+ if ("contentType" in h)
4070
+ S = 200, N = "OK", ge = h.contentType;
4071
4071
  else
4072
4072
  try {
4073
- S = d.status, F = d.statusText, ge = d.getResponseHeader("Content-Type");
4074
- } catch (Je) {
4075
- S = 0, F = "", ge = void 0;
4073
+ S = h.status, N = h.statusText, ge = h.getResponseHeader("Content-Type");
4074
+ } catch (Qe) {
4075
+ S = 0, N = "", ge = void 0;
4076
4076
  }
4077
- S !== 0 && (v = 2, m.readyState = 2, m.status = S, m.statusText = F, m._contentType = ge, m.onreadystatechange());
4077
+ S !== 0 && (g = 2, p.readyState = 2, p.status = S, p.statusText = N, p._contentType = ge, p.onreadystatechange());
4078
4078
  }
4079
- }, N = function() {
4080
- if (_(), v === 2 || v === 3) {
4081
- v = 3;
4079
+ }, v = function() {
4080
+ if (E(), g === 2 || g === 3) {
4081
+ g = 3;
4082
4082
  var S = "";
4083
4083
  try {
4084
- S = d.responseText;
4085
- } catch (F) {
4084
+ S = h.responseText;
4085
+ } catch (N) {
4086
4086
  }
4087
- m.readyState = 3, m.responseText = S, m.onprogress();
4087
+ p.readyState = 3, p.responseText = S, p.onprogress();
4088
4088
  }
4089
- }, A = function(S, F) {
4090
- if ((F == null || F.preventDefault == null) && (F = {
4091
- preventDefault: B
4092
- }), N(), v === 1 || v === 2 || v === 3) {
4093
- if (v = 4, p !== 0 && (i(p), p = 0), m.readyState = 4, S === "load")
4094
- m.onload(F);
4089
+ }, T = function(S, N) {
4090
+ if ((N == null || N.preventDefault == null) && (N = {
4091
+ preventDefault: w
4092
+ }), v(), g === 1 || g === 2 || g === 3) {
4093
+ if (g = 4, y !== 0 && (i(y), y = 0), p.readyState = 4, S === "load")
4094
+ p.onload(N);
4095
4095
  else if (S === "error")
4096
- m.onerror(F);
4096
+ p.onerror(N);
4097
4097
  else if (S === "abort")
4098
- m.onabort(F);
4098
+ p.onabort(N);
4099
4099
  else
4100
4100
  throw new TypeError();
4101
- m.onreadystatechange();
4101
+ p.onreadystatechange();
4102
4102
  }
4103
- }, O = function(S) {
4104
- d != null && (d.readyState === 4 ? (!("onload" in d) || !("onerror" in d) || !("onabort" in d)) && A(d.responseText === "" ? "error" : "load", S) : d.readyState === 3 ? "onprogress" in d || N() : d.readyState === 2 && _());
4105
- }, L = function() {
4106
- p = r(function() {
4107
- L();
4108
- }, 500), d.readyState === 3 && N();
4103
+ }, C = function(S) {
4104
+ h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && T(h.responseText === "" ? "error" : "load", S) : h.readyState === 3 ? "onprogress" in h || v() : h.readyState === 2 && E());
4105
+ }, R = function() {
4106
+ y = r(function() {
4107
+ R();
4108
+ }, 500), h.readyState === 3 && v();
4109
4109
  };
4110
- "onload" in d && (d.onload = function(S) {
4111
- A("load", S);
4112
- }), "onerror" in d && (d.onerror = function(S) {
4113
- A("error", S);
4114
- }), "onabort" in d && (d.onabort = function(S) {
4115
- A("abort", S);
4116
- }), "onprogress" in d && (d.onprogress = N), "onreadystatechange" in d && (d.onreadystatechange = function(S) {
4117
- O(S);
4118
- }), ("contentType" in d || !("ontimeout" in o.prototype)) && (h += (h.indexOf("?") === -1 ? "?" : "&") + "padding=true"), d.open(a, h, !0), "readyState" in d && (p = r(function() {
4119
- L();
4110
+ "onload" in h && (h.onload = function(S) {
4111
+ T("load", S);
4112
+ }), "onerror" in h && (h.onerror = function(S) {
4113
+ T("error", S);
4114
+ }), "onabort" in h && (h.onabort = function(S) {
4115
+ T("abort", S);
4116
+ }), "onprogress" in h && (h.onprogress = v), "onreadystatechange" in h && (h.onreadystatechange = function(S) {
4117
+ C(S);
4118
+ }), ("contentType" in h || !("ontimeout" in o.prototype)) && (a += (a.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(c, a, !0), "readyState" in h && (y = r(function() {
4119
+ R();
4120
4120
  }, 0));
4121
- }, w.prototype.abort = function() {
4121
+ }, A.prototype.abort = function() {
4122
4122
  this._abort(!1);
4123
- }, w.prototype.getResponseHeader = function(a) {
4123
+ }, A.prototype.getResponseHeader = function(c) {
4124
4124
  return this._contentType;
4125
- }, w.prototype.setRequestHeader = function(a, h) {
4126
- var m = this._xhr;
4127
- "setRequestHeader" in m && m.setRequestHeader(a, h);
4128
- }, w.prototype.getAllResponseHeaders = function() {
4125
+ }, A.prototype.setRequestHeader = function(c, a) {
4126
+ var p = this._xhr;
4127
+ "setRequestHeader" in p && p.setRequestHeader(c, a);
4128
+ }, A.prototype.getAllResponseHeaders = function() {
4129
4129
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4130
- }, w.prototype.send = function() {
4130
+ }, A.prototype.send = function() {
4131
4131
  if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
4132
- var a = this;
4133
- a._sendTimeout = r(function() {
4134
- a._sendTimeout = 0, a.send();
4132
+ var c = this;
4133
+ c._sendTimeout = r(function() {
4134
+ c._sendTimeout = 0, c.send();
4135
4135
  }, 4);
4136
4136
  return;
4137
4137
  }
4138
- var h = this._xhr;
4139
- "withCredentials" in h && (h.withCredentials = this.withCredentials);
4138
+ var a = this._xhr;
4139
+ "withCredentials" in a && (a.withCredentials = this.withCredentials);
4140
4140
  try {
4141
- h.send(void 0);
4142
- } catch (m) {
4143
- throw m;
4141
+ a.send(void 0);
4142
+ } catch (p) {
4143
+ throw p;
4144
4144
  }
4145
4145
  };
4146
- function I(a) {
4147
- return a.replace(/[A-Z]/g, function(h) {
4148
- return String.fromCharCode(h.charCodeAt(0) + 32);
4146
+ function P(c) {
4147
+ return c.replace(/[A-Z]/g, function(a) {
4148
+ return String.fromCharCode(a.charCodeAt(0) + 32);
4149
4149
  });
4150
4150
  }
4151
- function R(a) {
4152
- for (var h = /* @__PURE__ */ Object.create(null), m = a.split(`\r
4153
- `), d = 0; d < m.length; d += 1) {
4154
- var v = m[d], p = v.split(": "), _ = p.shift(), N = p.join(": ");
4155
- h[I(_)] = N;
4151
+ function L(c) {
4152
+ for (var a = /* @__PURE__ */ Object.create(null), p = c.split(`\r
4153
+ `), h = 0; h < p.length; h += 1) {
4154
+ var g = p[h], y = g.split(": "), E = y.shift(), v = y.join(": ");
4155
+ a[P(E)] = v;
4156
4156
  }
4157
- this._map = h;
4157
+ this._map = a;
4158
4158
  }
4159
- R.prototype.get = function(a) {
4160
- return this._map[I(a)];
4159
+ L.prototype.get = function(c) {
4160
+ return this._map[P(c)];
4161
4161
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4162
- function K() {
4162
+ function Y() {
4163
4163
  }
4164
- K.prototype.open = function(a, h, m, d, v, p, _) {
4165
- a.open("GET", v);
4166
- var N = 0;
4167
- a.onprogress = function() {
4168
- var O = a.responseText, L = O.slice(N);
4169
- N += L.length, m(L);
4170
- }, a.onerror = function(O) {
4171
- O.preventDefault(), d(new Error("NetworkError"));
4172
- }, a.onload = function() {
4173
- d(null);
4174
- }, a.onabort = function() {
4175
- d(null);
4176
- }, a.onreadystatechange = function() {
4177
- if (a.readyState === o.HEADERS_RECEIVED) {
4178
- var O = a.status, L = a.statusText, S = a.getResponseHeader("Content-Type"), F = a.getAllResponseHeaders();
4179
- h(O, L, S, new R(F));
4164
+ Y.prototype.open = function(c, a, p, h, g, y, E) {
4165
+ c.open("GET", g);
4166
+ var v = 0;
4167
+ c.onprogress = function() {
4168
+ var C = c.responseText, R = C.slice(v);
4169
+ v += R.length, p(R);
4170
+ }, c.onerror = function(C) {
4171
+ C.preventDefault(), h(new Error("NetworkError"));
4172
+ }, c.onload = function() {
4173
+ h(null);
4174
+ }, c.onabort = function() {
4175
+ h(null);
4176
+ }, c.onreadystatechange = function() {
4177
+ if (c.readyState === o.HEADERS_RECEIVED) {
4178
+ var C = c.status, R = c.statusText, S = c.getResponseHeader("Content-Type"), N = c.getAllResponseHeaders();
4179
+ a(C, R, S, new L(N));
4180
4180
  }
4181
- }, a.withCredentials = p;
4182
- for (var A in _)
4183
- Object.prototype.hasOwnProperty.call(_, A) && a.setRequestHeader(A, _[A]);
4184
- return a.send(), a;
4181
+ }, c.withCredentials = y;
4182
+ for (var T in E)
4183
+ Object.prototype.hasOwnProperty.call(E, T) && c.setRequestHeader(T, E[T]);
4184
+ return c.send(), c;
4185
4185
  };
4186
- function de(a) {
4187
- this._headers = a;
4186
+ function _e(c) {
4187
+ this._headers = c;
4188
4188
  }
4189
- de.prototype.get = function(a) {
4190
- return this._headers.get(a);
4189
+ _e.prototype.get = function(c) {
4190
+ return this._headers.get(c);
4191
4191
  };
4192
4192
  function pe() {
4193
4193
  }
4194
- pe.prototype.open = function(a, h, m, d, v, p, _) {
4195
- var N = null, A = new P(), O = A.signal, L = new x();
4196
- return g(v, {
4197
- headers: _,
4198
- credentials: p ? "include" : "same-origin",
4199
- signal: O,
4194
+ pe.prototype.open = function(c, a, p, h, g, y, E) {
4195
+ var v = null, T = new I(), C = T.signal, R = new _();
4196
+ return m(g, {
4197
+ headers: E,
4198
+ credentials: y ? "include" : "same-origin",
4199
+ signal: C,
4200
4200
  cache: "no-store"
4201
4201
  }).then(function(S) {
4202
- return N = S.body.getReader(), h(S.status, S.statusText, S.headers.get("Content-Type"), new de(S.headers)), new f(function(F, ge) {
4203
- var Je = function() {
4204
- N.read().then(function(ne) {
4205
- if (ne.done)
4206
- F(void 0);
4202
+ return v = S.body.getReader(), a(S.status, S.statusText, S.headers.get("Content-Type"), new _e(S.headers)), new d(function(N, ge) {
4203
+ var Qe = function() {
4204
+ v.read().then(function(ee) {
4205
+ if (ee.done)
4206
+ N(void 0);
4207
4207
  else {
4208
- var q = L.decode(ne.value, { stream: !0 });
4209
- m(q), Je();
4208
+ var Z = R.decode(ee.value, { stream: !0 });
4209
+ p(Z), Qe();
4210
4210
  }
4211
- }).catch(function(ne) {
4212
- ge(ne);
4211
+ }).catch(function(ee) {
4212
+ ge(ee);
4213
4213
  });
4214
4214
  };
4215
- Je();
4215
+ Qe();
4216
4216
  });
4217
4217
  }).catch(function(S) {
4218
4218
  if (S.name !== "AbortError")
4219
4219
  return S;
4220
4220
  }).then(function(S) {
4221
- d(S);
4221
+ h(S);
4222
4222
  }), {
4223
4223
  abort: function() {
4224
- N != null && N.cancel(), A.abort();
4224
+ v != null && v.cancel(), T.abort();
4225
4225
  }
4226
4226
  };
4227
4227
  };
4228
- function ee() {
4228
+ function re() {
4229
4229
  this._listeners = /* @__PURE__ */ Object.create(null);
4230
4230
  }
4231
- function _e(a) {
4231
+ function se(c) {
4232
4232
  r(function() {
4233
- throw a;
4233
+ throw c;
4234
4234
  }, 0);
4235
4235
  }
4236
- ee.prototype.dispatchEvent = function(a) {
4237
- a.target = this;
4238
- var h = this._listeners[a.type];
4239
- if (h != null)
4240
- for (var m = h.length, d = 0; d < m; d += 1) {
4241
- var v = h[d];
4236
+ re.prototype.dispatchEvent = function(c) {
4237
+ c.target = this;
4238
+ var a = this._listeners[c.type];
4239
+ if (a != null)
4240
+ for (var p = a.length, h = 0; h < p; h += 1) {
4241
+ var g = a[h];
4242
4242
  try {
4243
- typeof v.handleEvent == "function" ? v.handleEvent(a) : v.call(this, a);
4244
- } catch (p) {
4245
- _e(p);
4243
+ typeof g.handleEvent == "function" ? g.handleEvent(c) : g.call(this, c);
4244
+ } catch (y) {
4245
+ se(y);
4246
4246
  }
4247
4247
  }
4248
- }, ee.prototype.addEventListener = function(a, h) {
4249
- a = String(a);
4250
- var m = this._listeners, d = m[a];
4251
- d == null && (d = [], m[a] = d);
4252
- for (var v = !1, p = 0; p < d.length; p += 1)
4253
- d[p] === h && (v = !0);
4254
- v || d.push(h);
4255
- }, ee.prototype.removeEventListener = function(a, h) {
4256
- a = String(a);
4257
- var m = this._listeners, d = m[a];
4258
- if (d != null) {
4259
- for (var v = [], p = 0; p < d.length; p += 1)
4260
- d[p] !== h && v.push(d[p]);
4261
- v.length === 0 ? delete m[a] : m[a] = v;
4248
+ }, re.prototype.addEventListener = function(c, a) {
4249
+ c = String(c);
4250
+ var p = this._listeners, h = p[c];
4251
+ h == null && (h = [], p[c] = h);
4252
+ for (var g = !1, y = 0; y < h.length; y += 1)
4253
+ h[y] === a && (g = !0);
4254
+ g || h.push(a);
4255
+ }, re.prototype.removeEventListener = function(c, a) {
4256
+ c = String(c);
4257
+ var p = this._listeners, h = p[c];
4258
+ if (h != null) {
4259
+ for (var g = [], y = 0; y < h.length; y += 1)
4260
+ h[y] !== a && g.push(h[y]);
4261
+ g.length === 0 ? delete p[c] : p[c] = g;
4262
4262
  }
4263
4263
  };
4264
- function E(a) {
4265
- this.type = a, this.target = void 0;
4264
+ function ie(c) {
4265
+ this.type = c, this.target = void 0;
4266
4266
  }
4267
- function Te(a, h) {
4268
- E.call(this, a), this.data = h.data, this.lastEventId = h.lastEventId;
4267
+ function x(c, a) {
4268
+ ie.call(this, c), this.data = a.data, this.lastEventId = a.lastEventId;
4269
4269
  }
4270
- Te.prototype = Object.create(E.prototype);
4271
- function We(a, h) {
4272
- E.call(this, a), this.status = h.status, this.statusText = h.statusText, this.headers = h.headers;
4270
+ x.prototype = Object.create(ie.prototype);
4271
+ function me(c, a) {
4272
+ ie.call(this, c), this.status = a.status, this.statusText = a.statusText, this.headers = a.headers;
4273
4273
  }
4274
- We.prototype = Object.create(E.prototype);
4275
- function ot(a, h) {
4276
- E.call(this, a), this.error = h.error;
4274
+ me.prototype = Object.create(ie.prototype);
4275
+ function it(c, a) {
4276
+ ie.call(this, c), this.error = a.error;
4277
4277
  }
4278
- ot.prototype = Object.create(E.prototype);
4279
- var Ze = -1, le = 0, Be = 1, me = 2, Le = -1, he = 0, Ae = 1, qe = 2, Tt = 3, at = /^text\/event\-stream(;.*)?$/i, Bt = 1e3, St = 18e6, Qe = function(a, h) {
4280
- var m = a == null ? h : parseInt(a, 10);
4281
- return m !== m && (m = h), Re(m);
4282
- }, Re = function(a) {
4283
- return Math.min(Math.max(a, Bt), St);
4284
- }, Se = function(a, h, m) {
4278
+ it.prototype = Object.create(ie.prototype);
4279
+ var ze = -1, ce = 0, Te = 1, we = 2, Ae = -1, ue = 0, We = 1, Le = 2, ot = 3, Bt = /^text\/event\-stream(;.*)?$/i, at = 1e3, St = 18e6, Ze = function(c, a) {
4280
+ var p = c == null ? a : parseInt(c, 10);
4281
+ return p !== p && (p = a), qe(p);
4282
+ }, qe = function(c) {
4283
+ return Math.min(Math.max(c, at), St);
4284
+ }, Be = function(c, a, p) {
4285
4285
  try {
4286
- typeof h == "function" && h.call(a, m);
4287
- } catch (d) {
4288
- _e(d);
4286
+ typeof a == "function" && a.call(c, p);
4287
+ } catch (h) {
4288
+ se(h);
4289
4289
  }
4290
4290
  };
4291
- function te(a, h) {
4292
- ee.call(this), h = h || {}, 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, Ct(this, a, h);
4291
+ function K(c, a) {
4292
+ re.call(this), a = a || {}, 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, Ct(this, c, a);
4293
4293
  }
4294
4294
  function wt() {
4295
4295
  return o != null && "withCredentials" in o.prototype || u == null ? new o() : new u();
4296
4296
  }
4297
- var At = g != null && y != null && "body" in y.prototype;
4298
- function Ct(a, h, m) {
4299
- h = String(h);
4300
- var d = !!m.withCredentials, v = m.lastEventIdQueryParameterName || "lastEventId", p = Re(1e3), _ = Qe(m.heartbeatTimeout, 45e3), N = "", A = p, O = !1, L = 0, S = m.headers || {}, F = m.Transport, ge = At && F == null ? void 0 : new w(F != null ? new F() : wt()), Je = F != null && typeof F != "string" ? new F() : ge == null ? new pe() : new K(), ne = void 0, q = 0, se = Ze, Ne = "", st = "", be = "", ut = "", Q = he, Ht = 0, Ce = 0, ar = function(V, k, re, ie) {
4301
- if (se === le)
4302
- if (V === 200 && re != null && at.test(re)) {
4303
- se = Be, O = Date.now(), A = p, a.readyState = Be;
4304
- var J = new We("open", {
4297
+ var At = m != null && b != null && "body" in b.prototype;
4298
+ function Ct(c, a, p) {
4299
+ a = String(a);
4300
+ var h = !!p.withCredentials, g = p.lastEventIdQueryParameterName || "lastEventId", y = qe(1e3), E = Ze(p.heartbeatTimeout, 45e3), v = "", T = y, C = !1, R = 0, S = p.headers || {}, N = p.Transport, ge = At && N == null ? void 0 : new A(N != null ? new N() : wt()), Qe = N != null && typeof N != "string" ? new N() : ge == null ? new pe() : new Y(), ee = void 0, Z = 0, le = ze, Re = "", ut = "", be = "", lt = "", q = ue, Ht = 0, Ce = 0, ar = function(V, $, te, ne) {
4301
+ if (le === ce)
4302
+ if (V === 200 && te != null && Bt.test(te)) {
4303
+ le = Te, C = Date.now(), T = y, c.readyState = Te;
4304
+ var Q = new me("open", {
4305
4305
  status: V,
4306
- statusText: k,
4307
- headers: ie
4306
+ statusText: $,
4307
+ headers: ne
4308
4308
  });
4309
- a.dispatchEvent(J), Se(a, a.onopen, J);
4309
+ c.dispatchEvent(Q), Be(c, c.onopen, Q);
4310
4310
  } else {
4311
- var W = "";
4312
- V !== 200 ? (k && (k = k.replace(/\s+/g, " ")), W = "EventSource's response has a status " + V + " " + k + " that is not 200. Aborting the connection.") : W = "EventSource's response has a Content-Type specifying an unsupported type: " + (re == null ? "-" : re.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
4313
- var J = new We("error", {
4311
+ var X = "";
4312
+ V !== 200 ? ($ && ($ = $.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + $ + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (te == null ? "-" : te.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
4313
+ var Q = new me("error", {
4314
4314
  status: V,
4315
- statusText: k,
4316
- headers: ie
4315
+ statusText: $,
4316
+ headers: ne
4317
4317
  });
4318
- a.dispatchEvent(J), Se(a, a.onerror, J), console.error(W);
4318
+ c.dispatchEvent(Q), Be(c, c.onerror, Q), console.error(X);
4319
4319
  }
4320
4320
  }, sr = function(V) {
4321
- if (se === Be) {
4322
- for (var k = -1, re = 0; re < V.length; re += 1) {
4323
- var ie = V.charCodeAt(re);
4324
- (ie === 10 || ie === 13) && (k = re);
4321
+ if (le === Te) {
4322
+ for (var $ = -1, te = 0; te < V.length; te += 1) {
4323
+ var ne = V.charCodeAt(te);
4324
+ (ne === 10 || ne === 13) && ($ = te);
4325
4325
  }
4326
- var J = (k !== -1 ? ut : "") + V.slice(0, k + 1);
4327
- ut = (k === -1 ? ut : "") + V.slice(k + 1), V !== "" && (O = Date.now(), L += V.length);
4328
- for (var W = 0; W < J.length; W += 1) {
4329
- var ie = J.charCodeAt(W);
4330
- if (Q === Le && ie === 10)
4331
- Q = he;
4332
- else if (Q === Le && (Q = he), ie === 13 || ie === 10) {
4333
- if (Q !== he) {
4334
- Q === Ae && (Ce = W + 1);
4335
- var ye = J.slice(Ht, Ce - 1), ve = J.slice(Ce + (Ce < W && J.charCodeAt(Ce) === 32 ? 1 : 0), W);
4336
- ye === "data" ? (Ne += `
4337
- `, Ne += ve) : ye === "id" ? st = ve : ye === "event" ? be = ve : ye === "retry" ? (p = Qe(ve, p), A = p) : ye === "heartbeatTimeout" && (_ = Qe(ve, _), q !== 0 && (i(q), q = r(function() {
4338
- Ye();
4339
- }, _)));
4326
+ var Q = ($ !== -1 ? lt : "") + V.slice(0, $ + 1);
4327
+ lt = ($ === -1 ? lt : "") + V.slice($ + 1), V !== "" && (C = Date.now(), R += V.length);
4328
+ for (var X = 0; X < Q.length; X += 1) {
4329
+ var ne = Q.charCodeAt(X);
4330
+ if (q === Ae && ne === 10)
4331
+ q = ue;
4332
+ else if (q === Ae && (q = ue), ne === 13 || ne === 10) {
4333
+ if (q !== ue) {
4334
+ q === We && (Ce = X + 1);
4335
+ var ye = Q.slice(Ht, Ce - 1), ve = Q.slice(Ce + (Ce < X && Q.charCodeAt(Ce) === 32 ? 1 : 0), X);
4336
+ ye === "data" ? (Re += `
4337
+ `, Re += ve) : ye === "id" ? ut = ve : ye === "event" ? be = ve : ye === "retry" ? (y = Ze(ve, y), T = y) : ye === "heartbeatTimeout" && (E = Ze(ve, E), Z !== 0 && (i(Z), Z = r(function() {
4338
+ Je();
4339
+ }, E)));
4340
4340
  }
4341
- if (Q === he) {
4342
- if (Ne !== "") {
4343
- N = st, be === "" && (be = "message");
4344
- var Me = new Te(be, {
4345
- data: Ne.slice(1),
4346
- lastEventId: st
4341
+ if (q === ue) {
4342
+ if (Re !== "") {
4343
+ v = ut, be === "" && (be = "message");
4344
+ var Ne = new x(be, {
4345
+ data: Re.slice(1),
4346
+ lastEventId: ut
4347
4347
  });
4348
- if (a.dispatchEvent(Me), be === "open" ? Se(a, a.onopen, Me) : be === "message" ? Se(a, a.onmessage, Me) : be === "error" && Se(a, a.onerror, Me), se === me)
4348
+ if (c.dispatchEvent(Ne), be === "open" ? Be(c, c.onopen, Ne) : be === "message" ? Be(c, c.onmessage, Ne) : be === "error" && Be(c, c.onerror, Ne), le === we)
4349
4349
  return;
4350
4350
  }
4351
- Ne = "", be = "";
4351
+ Re = "", be = "";
4352
4352
  }
4353
- Q = ie === 13 ? Le : he;
4353
+ q = ne === 13 ? Ae : ue;
4354
4354
  } else
4355
- Q === he && (Ht = W, Q = Ae), Q === Ae ? ie === 58 && (Ce = W + 1, Q = qe) : Q === qe && (Q = Tt);
4355
+ q === ue && (Ht = X, q = We), q === We ? ne === 58 && (Ce = X + 1, q = Le) : q === Le && (q = ot);
4356
4356
  }
4357
4357
  }
4358
4358
  }, an = function(V) {
4359
- if (se === Be || se === le) {
4360
- se = Ze, q !== 0 && (i(q), q = 0), q = r(function() {
4361
- Ye();
4362
- }, A), A = Re(Math.min(p * 16, A * 2)), a.readyState = le;
4363
- var k = new ot("error", { error: V });
4364
- a.dispatchEvent(k), Se(a, a.onerror, k), V != null && console.error(V);
4359
+ if (le === Te || le === ce) {
4360
+ le = ze, Z !== 0 && (i(Z), Z = 0), Z = r(function() {
4361
+ Je();
4362
+ }, T), T = qe(Math.min(y * 16, T * 2)), c.readyState = ce;
4363
+ var $ = new it("error", { error: V });
4364
+ c.dispatchEvent($), Be(c, c.onerror, $), V != null && console.error(V);
4365
4365
  }
4366
4366
  }, Ot = function() {
4367
- se = me, ne != null && (ne.abort(), ne = void 0), q !== 0 && (i(q), q = 0), a.readyState = me;
4368
- }, Ye = function() {
4369
- if (q = 0, se !== Ze) {
4370
- if (!O && ne != null)
4371
- an(new Error("No activity within " + _ + " milliseconds. " + (se === le ? "No response received." : L + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
4367
+ le = we, ee != null && (ee.abort(), ee = void 0), Z !== 0 && (i(Z), Z = 0), c.readyState = we;
4368
+ }, Je = function() {
4369
+ if (Z = 0, le !== ze) {
4370
+ if (!C && ee != null)
4371
+ an(new Error("No activity within " + E + " milliseconds. " + (le === ce ? "No response received." : R + " chars received.") + " Reconnecting.")), ee != null && (ee.abort(), ee = void 0);
4372
4372
  else {
4373
- var V = Math.max((O || Date.now()) + _ - Date.now(), 1);
4374
- O = !1, q = r(function() {
4375
- Ye();
4373
+ var V = Math.max((C || Date.now()) + E - Date.now(), 1);
4374
+ C = !1, Z = r(function() {
4375
+ Je();
4376
4376
  }, V);
4377
4377
  }
4378
4378
  return;
4379
4379
  }
4380
- O = !1, L = 0, q = r(function() {
4381
- Ye();
4382
- }, _), se = le, Ne = "", be = "", st = N, ut = "", Ht = 0, Ce = 0, Q = he;
4383
- var k = h;
4384
- if (h.slice(0, 5) !== "data:" && h.slice(0, 5) !== "blob:" && N !== "") {
4385
- var re = h.indexOf("?");
4386
- k = re === -1 ? h : h.slice(0, re + 1) + h.slice(re + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Me) {
4387
- return Me === v ? "" : ve;
4388
- }), k += (h.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(N);
4380
+ C = !1, R = 0, Z = r(function() {
4381
+ Je();
4382
+ }, E), le = ce, Re = "", be = "", ut = v, lt = "", Ht = 0, Ce = 0, q = ue;
4383
+ var $ = a;
4384
+ if (a.slice(0, 5) !== "data:" && a.slice(0, 5) !== "blob:" && v !== "") {
4385
+ var te = a.indexOf("?");
4386
+ $ = te === -1 ? a : a.slice(0, te + 1) + a.slice(te + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Ne) {
4387
+ return Ne === g ? "" : ve;
4388
+ }), $ += (a.indexOf("?") === -1 ? "?" : "&") + g + "=" + encodeURIComponent(v);
4389
4389
  }
4390
- var ie = a.withCredentials, J = {};
4391
- J.Accept = "text/event-stream";
4392
- var W = a.headers;
4393
- if (W != null)
4394
- for (var ye in W)
4395
- Object.prototype.hasOwnProperty.call(W, ye) && (J[ye] = W[ye]);
4390
+ var ne = c.withCredentials, Q = {};
4391
+ Q.Accept = "text/event-stream";
4392
+ var X = c.headers;
4393
+ if (X != null)
4394
+ for (var ye in X)
4395
+ Object.prototype.hasOwnProperty.call(X, ye) && (Q[ye] = X[ye]);
4396
4396
  try {
4397
- ne = Je.open(ge, ar, sr, an, k, ie, J);
4397
+ ee = Qe.open(ge, ar, sr, an, $, ne, Q);
4398
4398
  } catch (ve) {
4399
4399
  throw Ot(), ve;
4400
4400
  }
4401
4401
  };
4402
- a.url = h, a.readyState = le, a.withCredentials = d, a.headers = S, a._close = Ot, Ye();
4402
+ c.url = a, c.readyState = ce, c.withCredentials = h, c.headers = S, c._close = Ot, Je();
4403
4403
  }
4404
- te.prototype = Object.create(ee.prototype), te.prototype.CONNECTING = le, te.prototype.OPEN = Be, te.prototype.CLOSED = me, te.prototype.close = function() {
4404
+ K.prototype = Object.create(re.prototype), K.prototype.CONNECTING = ce, K.prototype.OPEN = Te, K.prototype.CLOSED = we, K.prototype.close = function() {
4405
4405
  this._close();
4406
- }, te.CONNECTING = le, te.OPEN = Be, te.CLOSED = me, te.prototype.withCredentials = void 0;
4407
- var b = c;
4408
- o != null && (c == null || !("withCredentials" in c.prototype)) && (b = te), function(a) {
4406
+ }, K.CONNECTING = ce, K.OPEN = Te, K.CLOSED = we, K.prototype.withCredentials = void 0;
4407
+ var st = f;
4408
+ o != null && (f == null || !("withCredentials" in f.prototype)) && (st = K), function(c) {
4409
4409
  {
4410
- var h = a(t);
4411
- h !== void 0 && (e.exports = h);
4410
+ var a = c(t);
4411
+ a !== void 0 && (e.exports = a);
4412
4412
  }
4413
- }(function(a) {
4414
- a.EventSourcePolyfill = te, a.NativeEventSource = c, a.EventSource = b;
4413
+ }(function(c) {
4414
+ c.EventSourcePolyfill = K, c.NativeEventSource = f, c.EventSource = st;
4415
4415
  });
4416
4416
  })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Gr : globalThis);
4417
4417
  })(tn, tn.exports);
@@ -4421,11 +4421,11 @@ function Lo(e) {
4421
4421
  }
4422
4422
  function Sn(e, t, n) {
4423
4423
  const r = e.slice();
4424
- return r[49] = t[n], r;
4424
+ return r[51] = t[n], r;
4425
4425
  }
4426
4426
  function wn(e, t, n) {
4427
4427
  const r = e.slice();
4428
- return r[52] = t[n], r;
4428
+ return r[54] = t[n], r;
4429
4429
  }
4430
4430
  function Ro(e) {
4431
4431
  let t, n = (
@@ -4437,36 +4437,36 @@ function Ro(e) {
4437
4437
  e[3].Total[0].amount
4438
4438
  )
4439
4439
  ) : "0") + ""
4440
- ), r, i, o, u, s, c, l, f = (
4440
+ ), r, i, o, u, s, f, l, d = (
4441
4441
  /*isModalDisplayed*/
4442
4442
  e[2] && An(e)
4443
4443
  );
4444
4444
  return {
4445
4445
  c() {
4446
- t = $("button"), r = Ee(n), i = xe(), o = $("span"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', u = xe(), f && f.c(), s = yr(), Z(t, "class", "BalanceValue");
4446
+ t = G("button"), r = Ee(n), i = xe(), o = G("span"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', u = xe(), d && d.c(), s = yr(), z(t, "class", "BalanceValue");
4447
4447
  },
4448
- m(g, y) {
4449
- fe(g, t, y), M(t, r), M(t, i), M(t, o), fe(g, u, y), f && f.m(g, y), fe(g, s, y), c || (l = dt(
4448
+ m(m, b) {
4449
+ de(m, t, b), M(t, r), M(t, i), M(t, o), de(m, u, b), d && d.m(m, b), de(m, s, b), f || (l = pt(
4450
4450
  t,
4451
4451
  "click",
4452
4452
  /*click_handler*/
4453
- e[23]
4454
- ), c = !0);
4453
+ e[25]
4454
+ ), f = !0);
4455
4455
  },
4456
- p(g, y) {
4457
- y[0] & /*balances*/
4456
+ p(m, b) {
4457
+ b[0] & /*balances*/
4458
4458
  8 && n !== (n = /*balances*/
4459
- (g[3].Total ? (
4459
+ (m[3].Total ? (
4460
4460
  /*formatBalance*/
4461
- g[5](
4461
+ m[5](
4462
4462
  /*balances*/
4463
- g[3].Total[0].amount
4463
+ m[3].Total[0].amount
4464
4464
  )
4465
4465
  ) : "0") + "") && He(r, n), /*isModalDisplayed*/
4466
- g[2] ? f ? f.p(g, y) : (f = An(g), f.c(), f.m(s.parentNode, s)) : f && (f.d(1), f = null);
4466
+ m[2] ? d ? d.p(m, b) : (d = An(m), d.c(), d.m(s.parentNode, s)) : d && (d.d(1), d = null);
4467
4467
  },
4468
- d(g) {
4469
- g && (ue(t), ue(u), ue(s)), f && f.d(g), c = !1, l();
4468
+ d(m) {
4469
+ m && (he(t), he(u), he(s)), d && d.d(m), f = !1, l();
4470
4470
  }
4471
4471
  };
4472
4472
  }
@@ -4477,10 +4477,10 @@ function No(e) {
4477
4477
  ), r;
4478
4478
  return {
4479
4479
  c() {
4480
- t = $("p"), r = Ee(n);
4480
+ t = G("p"), r = Ee(n);
4481
4481
  },
4482
4482
  m(i, o) {
4483
- fe(i, t, o), M(t, r);
4483
+ de(i, t, o), M(t, r);
4484
4484
  },
4485
4485
  p(i, o) {
4486
4486
  o[0] & /*$_*/
@@ -4488,7 +4488,7 @@ function No(e) {
4488
4488
  i[4]("Loading") + "") && He(r, n);
4489
4489
  },
4490
4490
  d(i) {
4491
- i && ue(t);
4491
+ i && he(t);
4492
4492
  }
4493
4493
  };
4494
4494
  }
@@ -4496,65 +4496,65 @@ function An(e) {
4496
4496
  let t, n, r, i, o, u, s = (
4497
4497
  /*$_*/
4498
4498
  e[4]("Title") + ""
4499
- ), c, l, f, g, y, x, T = (
4499
+ ), f, l, d, m, b, _, B = (
4500
4500
  /*$_*/
4501
4501
  e[4]("DepositButton") + ""
4502
- ), P, j, z, G = pt(Object.keys(
4502
+ ), I, j, W, U = mt(Object.keys(
4503
4503
  /*balances*/
4504
4504
  e[3]
4505
- )), B = [];
4506
- for (let w = 0; w < G.length; w += 1)
4507
- B[w] = Hn(Sn(e, G, w));
4505
+ )), w = [];
4506
+ for (let A = 0; A < U.length; A += 1)
4507
+ w[A] = Hn(Sn(e, U, A));
4508
4508
  return {
4509
4509
  c() {
4510
- t = $("div"), n = $("button"), r = xe(), i = $("div"), o = $("div"), u = $("p"), c = Ee(s), l = xe(), f = $("div");
4511
- for (let w = 0; w < B.length; w += 1)
4512
- B[w].c();
4513
- g = xe(), y = $("div"), x = $("button"), P = Ee(T), Z(n, "class", "BalanceModalClose"), Z(u, "class", "BalanceModalTitle"), Z(o, "class", "BalanceModalHeader"), Z(f, "class", "BalanceModalBody"), Z(x, "class", "BalanceModalAction"), Z(y, "class", "BalanceModalFooter"), Z(i, "class", "BalanceModal"), Z(t, "class", "BalanceModalWrapper");
4510
+ t = G("div"), n = G("button"), r = xe(), i = G("div"), o = G("div"), u = G("p"), f = Ee(s), l = xe(), d = G("div");
4511
+ for (let A = 0; A < w.length; A += 1)
4512
+ w[A].c();
4513
+ m = xe(), b = G("div"), _ = G("button"), I = Ee(B), z(n, "class", "BalanceModalClose"), z(u, "class", "BalanceModalTitle"), z(o, "class", "BalanceModalHeader"), z(d, "class", "BalanceModalBody"), z(_, "class", "BalanceModalAction"), z(b, "class", "BalanceModalFooter"), z(i, "class", "BalanceModal"), z(t, "class", "BalanceModalWrapper");
4514
4514
  },
4515
- m(w, I) {
4516
- fe(w, t, I), M(t, n), M(t, r), M(t, i), M(i, o), M(o, u), M(u, c), M(i, l), M(i, f);
4517
- for (let R = 0; R < B.length; R += 1)
4518
- B[R] && B[R].m(f, null);
4519
- M(i, g), M(i, y), M(y, x), M(x, P), j || (z = [
4520
- dt(
4515
+ m(A, P) {
4516
+ de(A, t, P), M(t, n), M(t, r), M(t, i), M(i, o), M(o, u), M(u, f), M(i, l), M(i, d);
4517
+ for (let L = 0; L < w.length; L += 1)
4518
+ w[L] && w[L].m(d, null);
4519
+ M(i, m), M(i, b), M(b, _), M(_, I), j || (W = [
4520
+ pt(
4521
4521
  n,
4522
4522
  "click",
4523
4523
  /*click_handler_1*/
4524
- e[24]
4524
+ e[26]
4525
4525
  ),
4526
- dt(
4527
- x,
4526
+ pt(
4527
+ _,
4528
4528
  "click",
4529
4529
  /*click_handler_2*/
4530
- e[25]
4530
+ e[27]
4531
4531
  )
4532
4532
  ], j = !0);
4533
4533
  },
4534
- p(w, I) {
4535
- if (I[0] & /*$_*/
4534
+ p(A, P) {
4535
+ if (P[0] & /*$_*/
4536
4536
  16 && s !== (s = /*$_*/
4537
- w[4]("Title") + "") && He(c, s), I[0] & /*balances, formatBalance, $_*/
4538
- 56) {
4539
- G = pt(Object.keys(
4537
+ A[4]("Title") + "") && He(f, s), P[0] & /*balances, formatBalance, getProductType, $_*/
4538
+ 184) {
4539
+ U = mt(Object.keys(
4540
4540
  /*balances*/
4541
- w[3]
4541
+ A[3]
4542
4542
  ));
4543
- let R;
4544
- for (R = 0; R < G.length; R += 1) {
4545
- const K = Sn(w, G, R);
4546
- B[R] ? B[R].p(K, I) : (B[R] = Hn(K), B[R].c(), B[R].m(f, null));
4543
+ let L;
4544
+ for (L = 0; L < U.length; L += 1) {
4545
+ const Y = Sn(A, U, L);
4546
+ w[L] ? w[L].p(Y, P) : (w[L] = Hn(Y), w[L].c(), w[L].m(d, null));
4547
4547
  }
4548
- for (; R < B.length; R += 1)
4549
- B[R].d(1);
4550
- B.length = G.length;
4548
+ for (; L < w.length; L += 1)
4549
+ w[L].d(1);
4550
+ w.length = U.length;
4551
4551
  }
4552
- I[0] & /*$_*/
4553
- 16 && T !== (T = /*$_*/
4554
- w[4]("DepositButton") + "") && He(P, T);
4552
+ P[0] & /*$_*/
4553
+ 16 && B !== (B = /*$_*/
4554
+ A[4]("DepositButton") + "") && He(I, B);
4555
4555
  },
4556
- d(w) {
4557
- w && ue(t), Mn(B, w), j = !1, ke(z);
4556
+ d(A) {
4557
+ A && he(t), Mn(w, A), j = !1, $e(W);
4558
4558
  }
4559
4559
  };
4560
4560
  }
@@ -4563,94 +4563,88 @@ function Cn(e) {
4563
4563
  /*$_*/
4564
4564
  e[4](
4565
4565
  /*k*/
4566
- e[49]
4566
+ e[51]
4567
4567
  ) + ""
4568
4568
  ), i, o, u = (
4569
- /*b*/
4570
- (e[52].productType ? (
4571
- /*$_*/
4572
- e[4](
4573
- /*b*/
4574
- e[52].productType
4575
- )
4576
- ) : "") + ""
4577
- ), s, c, l, f, g = (
4569
+ /*getProductType*/
4570
+ e[7](
4571
+ /*balance*/
4572
+ e[54]
4573
+ ) + ""
4574
+ ), s, f, l, d, m = (
4578
4575
  /*formatBalance*/
4579
4576
  e[5](
4580
- /*b*/
4581
- e[52].amount
4577
+ /*balance*/
4578
+ e[54].amount
4582
4579
  ) + ""
4583
- ), y;
4580
+ ), b;
4584
4581
  return {
4585
4582
  c() {
4586
- t = $("div"), n = $("p"), i = Ee(r), o = xe(), s = Ee(u), c = xe(), l = $("p"), f = $("span"), y = Ee(g), Z(n, "class", "BalanceModalText"), Z(f, "class", "BalanceModalAmount"), Z(l, "class", "BalanceModalValue"), Z(t, "class", "BalanceModalRowLine");
4583
+ t = G("div"), n = G("p"), i = Ee(r), o = xe(), s = Ee(u), f = xe(), l = G("p"), d = G("span"), b = Ee(m), z(n, "class", "BalanceModalText"), z(d, "class", "BalanceModalAmount"), z(l, "class", "BalanceModalValue"), z(t, "class", "BalanceModalRowLine");
4587
4584
  },
4588
- m(x, T) {
4589
- fe(x, t, T), M(t, n), M(n, i), M(n, o), M(n, s), M(t, c), M(t, l), M(l, f), M(f, y);
4585
+ m(_, B) {
4586
+ de(_, t, B), M(t, n), M(n, i), M(n, o), M(n, s), M(t, f), M(t, l), M(l, d), M(d, b);
4590
4587
  },
4591
- p(x, T) {
4592
- T[0] & /*$_, balances*/
4588
+ p(_, B) {
4589
+ B[0] & /*$_, balances*/
4593
4590
  24 && r !== (r = /*$_*/
4594
- x[4](
4591
+ _[4](
4595
4592
  /*k*/
4596
- x[49]
4597
- ) + "") && He(i, r), T[0] & /*balances, $_*/
4598
- 24 && u !== (u = /*b*/
4599
- (x[52].productType ? (
4600
- /*$_*/
4601
- x[4](
4602
- /*b*/
4603
- x[52].productType
4604
- )
4605
- ) : "") + "") && He(s, u), T[0] & /*balances*/
4606
- 8 && g !== (g = /*formatBalance*/
4607
- x[5](
4608
- /*b*/
4609
- x[52].amount
4610
- ) + "") && He(y, g);
4593
+ _[51]
4594
+ ) + "") && He(i, r), B[0] & /*balances*/
4595
+ 8 && u !== (u = /*getProductType*/
4596
+ _[7](
4597
+ /*balance*/
4598
+ _[54]
4599
+ ) + "") && He(s, u), B[0] & /*balances*/
4600
+ 8 && m !== (m = /*formatBalance*/
4601
+ _[5](
4602
+ /*balance*/
4603
+ _[54].amount
4604
+ ) + "") && He(b, m);
4611
4605
  },
4612
- d(x) {
4613
- x && ue(t);
4606
+ d(_) {
4607
+ _ && he(t);
4614
4608
  }
4615
4609
  };
4616
4610
  }
4617
4611
  function Hn(e) {
4618
- let t, n, r = pt(
4612
+ let t, n, r = mt(
4619
4613
  /*balances*/
4620
4614
  e[3][
4621
4615
  /*k*/
4622
- e[49]
4616
+ e[51]
4623
4617
  ]
4624
4618
  ), i = [];
4625
4619
  for (let o = 0; o < r.length; o += 1)
4626
4620
  i[o] = Cn(wn(e, r, o));
4627
4621
  return {
4628
4622
  c() {
4629
- t = $("div");
4623
+ t = G("div");
4630
4624
  for (let o = 0; o < i.length; o += 1)
4631
4625
  i[o].c();
4632
- n = xe(), Z(t, "class", "BalanceModalRowBoth");
4626
+ n = xe(), z(t, "class", "BalanceModalRowBoth");
4633
4627
  },
4634
4628
  m(o, u) {
4635
- fe(o, t, u);
4629
+ de(o, t, u);
4636
4630
  for (let s = 0; s < i.length; s += 1)
4637
4631
  i[s] && i[s].m(t, null);
4638
4632
  M(t, n);
4639
4633
  },
4640
4634
  p(o, u) {
4641
- if (u[0] & /*formatBalance, balances, $_*/
4642
- 56) {
4643
- r = pt(
4635
+ if (u[0] & /*formatBalance, balances, getProductType, $_*/
4636
+ 184) {
4637
+ r = mt(
4644
4638
  /*balances*/
4645
4639
  o[3][
4646
4640
  /*k*/
4647
- o[49]
4641
+ o[51]
4648
4642
  ]
4649
4643
  );
4650
4644
  let s;
4651
4645
  for (s = 0; s < r.length; s += 1) {
4652
- const c = wn(o, r, s);
4653
- i[s] ? i[s].p(c, u) : (i[s] = Cn(c), i[s].c(), i[s].m(t, n));
4646
+ const f = wn(o, r, s);
4647
+ i[s] ? i[s].p(f, u) : (i[s] = Cn(f), i[s].c(), i[s].m(t, n));
4654
4648
  }
4655
4649
  for (; s < i.length; s += 1)
4656
4650
  i[s].d(1);
@@ -4658,7 +4652,7 @@ function Hn(e) {
4658
4652
  }
4659
4653
  },
4660
4654
  d(o) {
4661
- o && ue(t), Mn(i, o);
4655
+ o && he(t), Mn(i, o);
4662
4656
  }
4663
4657
  };
4664
4658
  }
@@ -4666,28 +4660,28 @@ function On(e) {
4666
4660
  let t, n, r;
4667
4661
  return {
4668
4662
  c() {
4669
- t = $("button"), Z(t, "class", "ShowBalanceModalOverlay");
4663
+ t = G("button"), z(t, "class", "ShowBalanceModalOverlay");
4670
4664
  },
4671
4665
  m(i, o) {
4672
- fe(i, t, o), n || (r = dt(
4666
+ de(i, t, o), n || (r = pt(
4673
4667
  t,
4674
4668
  "click",
4675
4669
  /*click_handler_3*/
4676
- e[26]
4670
+ e[28]
4677
4671
  ), n = !0);
4678
4672
  },
4679
4673
  p: ae,
4680
4674
  d(i) {
4681
- i && ue(t), n = !1, r();
4675
+ i && he(t), n = !1, r();
4682
4676
  }
4683
4677
  };
4684
4678
  }
4685
4679
  function Mo(e) {
4686
4680
  let t, n, r;
4687
- function i(c, l) {
4681
+ function i(f, l) {
4688
4682
  return (
4689
4683
  /*isLoading*/
4690
- c[1] ? No : Ro
4684
+ f[1] ? No : Ro
4691
4685
  );
4692
4686
  }
4693
4687
  let o = i(e), u = o(e), s = (
@@ -4696,132 +4690,132 @@ function Mo(e) {
4696
4690
  );
4697
4691
  return {
4698
4692
  c() {
4699
- t = $("div"), n = $("div"), u.c(), r = xe(), s && s.c(), Z(n, "class", "ShowBalance");
4693
+ t = G("div"), n = G("div"), u.c(), r = xe(), s && s.c(), z(n, "class", "ShowBalance");
4700
4694
  },
4701
- m(c, l) {
4702
- fe(c, t, l), M(t, n), u.m(n, null), M(t, r), s && s.m(t, null), e[27](t);
4695
+ m(f, l) {
4696
+ de(f, t, l), M(t, n), u.m(n, null), M(t, r), s && s.m(t, null), e[29](t);
4703
4697
  },
4704
- p(c, l) {
4705
- o === (o = i(c)) && u ? u.p(c, l) : (u.d(1), u = o(c), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
4706
- c[2] ? s ? s.p(c, l) : (s = On(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4698
+ p(f, l) {
4699
+ o === (o = i(f)) && u ? u.p(f, l) : (u.d(1), u = o(f), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
4700
+ f[2] ? s ? s.p(f, l) : (s = On(f), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4707
4701
  },
4708
4702
  i: ae,
4709
4703
  o: ae,
4710
- d(c) {
4711
- c && ue(t), u.d(), s && s.d(), e[27](null);
4704
+ d(f) {
4705
+ f && he(t), u.d(), s && s.d(), e[29](null);
4712
4706
  }
4713
4707
  };
4714
4708
  }
4715
4709
  function Po(e, t, n) {
4716
4710
  let r;
4717
- pr(e, Co, (b) => n(4, r = b));
4718
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: g = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencylocale: P = "en" } = t, { currencydisplay: j = "symbol" } = t, { maximumfractiondigits: z = "2" } = t, { minimumfractiondigits: G = "0" } = t, { customdisplayformat: B = "" } = t, w, I = !0, R = !1, K = !1, de, pe = "", ee = [], _e;
4719
- const E = {}, Te = ["totalCashAmount", "totalRealAmount"], We = () => {
4720
- fetch(g).then((b) => b.json()).then((b) => Object.keys(b).forEach((a) => Tn(a, b[a]))).catch((b) => console.log(b));
4711
+ pr(e, Co, (a) => n(4, r = a));
4712
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource: f } = t, { clientstyling: l = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = t, { gmversion: b = "gm16" } = t, { displaybalanceoption: _ = "All" } = t, { totalcalculationmode: B = "totalCashAmount" } = t, { hideproducttype: I } = t, { currencylocale: j = "en" } = t, { currencydisplay: W = "symbol" } = t, { maximumfractiondigits: U = "2" } = t, { minimumfractiondigits: w = "0" } = t, { customdisplayformat: A = "" } = t, P, L = !0, Y = !1, _e = !1, pe, re = "", se = [], ie;
4713
+ const x = {}, me = ["totalCashAmount", "totalRealAmount"], it = () => {
4714
+ fetch(m).then((a) => a.json()).then((a) => Object.keys(a).forEach((p) => Tn(p, a[p]))).catch((a) => console.log(a));
4721
4715
  };
4722
- Object.keys(Bn).forEach((b) => Tn(b, Bn[b]));
4723
- const ot = (b) => {
4724
- if (B)
4725
- return Ze(b);
4726
- const a = P || s, h = {
4716
+ Object.keys(Bn).forEach((a) => Tn(a, Bn[a]));
4717
+ const ze = (a) => {
4718
+ if (A)
4719
+ return ce(a);
4720
+ const p = j || s, h = {
4727
4721
  style: "currency",
4728
- currency: pe,
4722
+ currency: re,
4729
4723
  useGrouping: !0,
4730
- currencyDisplay: j || "code",
4731
- maximumFractionDigits: z === "" || isNaN(Number(z)) ? 2 : Number(z),
4732
- minimumFractionDigits: G === "" || isNaN(Number(G)) ? 0 : Number(G)
4724
+ currencyDisplay: W || "code",
4725
+ maximumFractionDigits: U === "" || isNaN(Number(U)) ? 2 : Number(U),
4726
+ minimumFractionDigits: w === "" || isNaN(Number(w)) ? 0 : Number(w)
4733
4727
  };
4734
- return new Intl.NumberFormat(a, h).format(b);
4735
- }, Ze = (b) => {
4736
- const a = [];
4728
+ return new Intl.NumberFormat(p, h).format(a);
4729
+ }, ce = (a) => {
4730
+ const p = [];
4737
4731
  let h = "";
4738
- for (const m of B)
4739
- switch (m) {
4732
+ for (const g of A)
4733
+ switch (g) {
4740
4734
  default:
4741
- h += m;
4735
+ h += g;
4742
4736
  break;
4743
4737
  case "{":
4744
- h && a.push(h), h = "";
4738
+ h && p.push(h), h = "";
4745
4739
  break;
4746
4740
  case "}":
4747
- const [d, v] = h.split("|");
4748
- if (h = "", d.toLowerCase() === "currency")
4749
- h = pe;
4750
- else if (d.toLowerCase() === "amount") {
4751
- let p = ",", _ = ".", N = 2;
4752
- v && (v[0] !== " " && (p = v[0]), v[1] !== " " && (_ = v[1]), v[2] !== " " && !isNaN(Number(v[2])) && (N = Number(v[2])));
4753
- let [A, O] = String(Math.floor(b * Rt(10, N)) / Rt(10, N)).split(".");
4754
- h += A[0];
4755
- for (let L = 1; L < A.length; ++L)
4756
- (A.length - L) % 3 === 0 ? h += p + A[L] : h += A[L];
4757
- O && (h += _ + O);
4741
+ const [y, E] = h.split("|");
4742
+ if (h = "", y.toLowerCase() === "currency")
4743
+ h = re;
4744
+ else if (y.toLowerCase() === "amount") {
4745
+ let v = ",", T = ".", C = 2;
4746
+ E && (E[0] !== " " && (v = E[0]), E[1] !== " " && (T = E[1]), E[2] !== " " && !isNaN(Number(E[2])) && (C = Number(E[2])));
4747
+ let [R, S] = String(Math.floor(a * Rt(10, C)) / Rt(10, C)).split(".");
4748
+ h += R[0];
4749
+ for (let N = 1; N < R.length; ++N)
4750
+ (R.length - N) % 3 === 0 ? h += v + R[N] : h += R[N];
4751
+ S && (h += T + S);
4758
4752
  }
4759
- h && a.push(h), h = "";
4753
+ h && p.push(h), h = "";
4760
4754
  break;
4761
4755
  }
4762
- return a.push(h), a.join("");
4763
- }, le = () => Pt(this, null, function* () {
4764
- var a, h, m;
4765
- n(1, I = !0);
4766
- const b = new URL(`${u}/v1/player/${i}/account`);
4756
+ return p.push(h), p.join("");
4757
+ }, Te = () => Pt(this, null, function* () {
4758
+ var p, h, g;
4759
+ n(1, L = !0);
4760
+ const a = new URL(`${u}/v1/player/${i}/account`);
4767
4761
  try {
4768
- const d = yield fetch(b, {
4762
+ const y = yield fetch(a, {
4769
4763
  method: "GET",
4770
4764
  headers: { "X-SessionID": o }
4771
- }), v = yield d.json();
4772
- if (d.ok)
4773
- ee = v.items, pe = (a = ee.find((p) => p.displayName === "Casino")) == null ? void 0 : a.currency, n(3, E.Total = [{ amount: v.totalAmount[pe] }], E), n(
4765
+ }), E = yield y.json();
4766
+ if (y.ok)
4767
+ se = E.items, re = (p = se.find((v) => v.displayName === "Casino")) == null ? void 0 : p.currency, n(3, x.Total = [{ amount: E.totalAmount[re] }], x), n(
4774
4768
  3,
4775
- E.Real = [
4769
+ x.Real = [
4776
4770
  {
4777
- amount: (h = ee.find((p) => p.displayName === "Casino")) == null ? void 0 : h.balanceAmount
4771
+ amount: (h = se.find((v) => v.displayName === "Casino")) == null ? void 0 : h.balanceAmount
4778
4772
  }
4779
4773
  ],
4780
- E
4774
+ x
4781
4775
  ), n(
4782
4776
  3,
4783
- E.Bonus = [
4777
+ x.Bonus = [
4784
4778
  {
4785
- amount: (m = ee.find((p) => p.displayName === "UBS")) == null ? void 0 : m.balanceAmount
4779
+ amount: (g = se.find((v) => v.displayName === "UBS")) == null ? void 0 : g.balanceAmount
4786
4780
  }
4787
4781
  ],
4788
- E
4782
+ x
4789
4783
  );
4790
4784
  else
4791
4785
  throw new Error("Failed to fetch balance data !");
4792
- } catch (d) {
4793
- console.log("Balance error: ", d);
4786
+ } catch (y) {
4787
+ console.log("Balance error: ", y);
4794
4788
  } finally {
4795
- n(1, I = !1);
4789
+ n(1, L = !1);
4796
4790
  }
4797
- }), Be = () => {
4798
- n(1, I = !0);
4799
- const b = new URL(`${u}/v2/player/${i}/balance`), a = new Headers();
4800
- a.append("X-SessionID", o), fetch(b, { method: "GET", headers: a }).then((m) => m.json()).then((m) => {
4801
- m[T] || n(7, T = Te[0]);
4802
- const d = m.items.find((p) => p.type === "Real" && p.walletAccountType === "Ordinary");
4803
- if (pe = d.currency, K = !!d.productType, n(3, E.Total = [{ amount: 0 }], E), n(3, E.Real = [], E), n(3, E.Bonus = [], E), n(3, E.Credit = [], E), !K) {
4804
- _e = {
4791
+ }), we = () => {
4792
+ n(1, L = !0);
4793
+ const a = new URL(`${u}/v2/player/${i}/balance`), p = new Headers();
4794
+ p.append("X-SessionID", o), fetch(a, { method: "GET", headers: p }).then((g) => g.json()).then((g) => {
4795
+ g[B] || n(8, B = me[0]);
4796
+ const y = g.items.find((v) => v.type === "Real" && v.walletAccountType === "Ordinary");
4797
+ if (re = y.currency, _e = !!y.productType, n(3, x.Total = [{ amount: 0 }], x), n(3, x.Real = [], x), n(3, x.Bonus = [], x), n(3, x.Credit = [], x), !_e) {
4798
+ ie = {
4805
4799
  lastOrdinaryAfterAmount: 0,
4806
4800
  showCreditLineAfterAmount: !1
4807
- }, n(3, E.Total[0].amount = m[T][pe], E);
4808
- for (const p of m.items)
4809
- switch (p.type) {
4801
+ }, n(3, x.Total[0].amount = g[B][re], x);
4802
+ for (const v of g.items)
4803
+ switch (v.type) {
4810
4804
  case "Bonus":
4811
- E.Bonus.length === 0 ? E.Bonus.push({ amount: p.amount }) : n(3, E.Bonus[0].amount += p.amount, E);
4805
+ x.Bonus.length === 0 ? x.Bonus.push({ amount: v.amount }) : n(3, x.Bonus[0].amount += v.amount, x);
4812
4806
  break;
4813
4807
  case "Real":
4814
- if (p.creditLine && E.Credit.length === 0 && E.Credit.push({ amount: p.creditLine }), T === "totalRealAmount")
4808
+ if (v.creditLine && x.Credit.length === 0 && x.Credit.push({ amount: v.creditLine }), B === "totalRealAmount")
4815
4809
  continue;
4816
- E.Real.length === 0 ? E.Real.push({ amount: p.amount }) : n(3, E.Real[0].amount += p.amount, E);
4810
+ x.Real.length === 0 ? x.Real.push({ amount: v.amount }) : n(3, x.Real[0].amount += v.amount, x);
4817
4811
  break;
4818
4812
  }
4819
- for (const [p, _] of Object.entries(E))
4820
- _.length < 1 && delete E[p];
4821
- n(1, I = !1);
4813
+ for (const [v, T] of Object.entries(x))
4814
+ T.length < 1 && delete x[v];
4815
+ n(1, L = !1);
4822
4816
  return;
4823
4817
  }
4824
- _e = {
4818
+ ie = {
4825
4819
  Casino: {
4826
4820
  lastOrdinaryAfterAmount: 0,
4827
4821
  showCreditLineAfterAmount: !1
@@ -4831,186 +4825,191 @@ function Po(e, t, n) {
4831
4825
  showCreditLineAfterAmount: !1
4832
4826
  }
4833
4827
  };
4834
- let v = m.items;
4835
- x && x !== "All" && (v = m.items.filter((p) => p.productType === x));
4836
- for (const p of v) {
4837
- let _;
4838
- switch (p.type) {
4828
+ let E = g.items;
4829
+ _ && _ !== "All" && (E = g.items.filter((v) => v.productType === _));
4830
+ for (const v of E) {
4831
+ let T;
4832
+ switch (v.type) {
4839
4833
  case "Bonus":
4840
- _ = E.Bonus.findIndex((N) => N.productType === p.productType), _ > 0 ? n(3, E.Bonus[_].amount += p.amount, E) : E.Bonus.push({
4841
- amount: p.amount,
4842
- productType: p.productType
4834
+ T = x.Bonus.findIndex((C) => C.productType === v.productType), T > 0 ? n(3, x.Bonus[T].amount += v.amount, x) : x.Bonus.push({
4835
+ amount: v.amount,
4836
+ productType: v.productType
4843
4837
  });
4844
4838
  break;
4845
4839
  case "Real":
4846
- p.creditLine && E.Credit.push({
4847
- amount: p.creditLine,
4848
- productType: p.productType
4849
- }), _ = E.Real.findIndex((N) => N.productType === p.productType), _ > 0 ? n(3, E.Real[_].amount += p.amount, E) : E.Real.push({
4850
- amount: p.amount,
4851
- productType: p.productType
4840
+ v.creditLine && x.Credit.push({
4841
+ amount: v.creditLine,
4842
+ productType: v.productType
4843
+ }), T = x.Real.findIndex((C) => C.productType === v.productType), T > 0 ? n(3, x.Real[T].amount += v.amount, x) : x.Real.push({
4844
+ amount: v.amount,
4845
+ productType: v.productType
4852
4846
  });
4853
4847
  break;
4854
4848
  }
4855
4849
  }
4856
- qe();
4857
- for (const [p, _] of Object.entries(E))
4858
- _.length < 1 && delete E[p];
4859
- n(1, I = !1);
4850
+ ot();
4851
+ for (const [v, T] of Object.entries(x))
4852
+ T.length < 1 && delete x[v];
4853
+ n(1, L = !1);
4860
4854
  }).catch(() => {
4861
- throw n(1, I = !1), new Error("Failed to fetch balance data !");
4855
+ throw n(1, L = !1), new Error("Failed to fetch balance data !");
4862
4856
  });
4863
- }, me = () => {
4864
- if (de && de.close(), o.length < 1)
4857
+ }, Ae = () => {
4858
+ if (pe && pe.close(), o.length < 1)
4865
4859
  return;
4866
- let b, a;
4867
- switch (y) {
4860
+ let a, p;
4861
+ switch (b) {
4868
4862
  case "gm16":
4869
- b = new URL(`${u}/v2/player/${i}/information/updates`), a = (d) => Tt(d);
4863
+ a = new URL(`${u}/v2/player/${i}/information/updates`), p = (y) => Bt(y);
4870
4864
  break;
4871
4865
  case "gmcore":
4872
- b = new URL(`${u}/v1/player/${i}/balance/updates`), a = (d) => he(d);
4866
+ a = new URL(`${u}/v1/player/${i}/balance/updates`), p = (y) => We(y);
4873
4867
  break;
4874
4868
  }
4875
4869
  const h = {
4876
4870
  accept: "text/event-stream",
4877
4871
  "X-SessionId": o
4878
- }, m = new Oo.EventSourcePolyfill(b, { headers: h });
4879
- de = m, m.addEventListener("message", a);
4880
- }, Le = (b) => {
4881
- let a;
4872
+ }, g = new Oo.EventSourcePolyfill(a, { headers: h });
4873
+ pe = g, g.addEventListener("message", p);
4874
+ }, ue = (a) => {
4875
+ let p;
4882
4876
  try {
4883
- a = JSON.parse(b);
4877
+ p = JSON.parse(a);
4884
4878
  } catch (h) {
4885
4879
  console.log("Balance stream failed: ", h);
4886
4880
  return;
4887
4881
  }
4888
- return a;
4889
- }, he = (b) => {
4890
- var d, v;
4891
- const a = Le(b.data);
4892
- if (!a) {
4893
- me();
4882
+ return p;
4883
+ }, We = (a) => {
4884
+ var y, E;
4885
+ const p = ue(a.data);
4886
+ if (!p) {
4887
+ Ae();
4894
4888
  return;
4895
4889
  }
4896
4890
  let h = "0";
4897
- const m = a.balanceChange;
4898
- ee = ee.map((p) => (m && m[p.id] && (p = Mt(Nt({}, p), {
4899
- balanceAmount: m[p.id].afterAmount
4900
- })), h = (parseFloat(p == null ? void 0 : p.balanceAmount) + parseFloat(h)).toString(), p)), n(3, E.Real = [{ amount: (d = ee[0]) == null ? void 0 : d.balanceAmount }], E), n(3, E.Bonus = [{ amount: (v = ee[1]) == null ? void 0 : v.balanceAmount }], E), n(3, E.Total = [{ amount: Number(h) }], E);
4901
- }, Ae = (b, a, h) => {
4902
- let m = null;
4891
+ const g = p.balanceChange;
4892
+ se = se.map((v) => (g && g[v.id] && (v = Mt(Nt({}, v), {
4893
+ balanceAmount: g[v.id].afterAmount
4894
+ })), h = (parseFloat(v == null ? void 0 : v.balanceAmount) + parseFloat(h)).toString(), v)), n(3, x.Real = [{ amount: (y = se[0]) == null ? void 0 : y.balanceAmount }], x), n(3, x.Bonus = [{ amount: (E = se[1]) == null ? void 0 : E.balanceAmount }], x), n(3, x.Total = [{ amount: Number(h) }], x);
4895
+ }, Le = (a, p, h) => {
4896
+ let g = null;
4903
4897
  switch (h.walletAccountType) {
4904
4898
  case "Ordinary":
4905
- (h.afterAmount !== h.affectedAmount || a.lastOrdinaryAfterAmount === 0) && (a.lastOrdinaryAfterAmount = h.afterAmount, a.showCreditLineAfterAmount || (m = h.afterAmount));
4899
+ (h.afterAmount !== h.affectedAmount || p.lastOrdinaryAfterAmount === 0) && (p.lastOrdinaryAfterAmount = h.afterAmount, p.showCreditLineAfterAmount || (g = h.afterAmount));
4906
4900
  break;
4907
4901
  case "CreditLine":
4908
- h.afterAmount !== 0 ? (m = h.afterAmount, a.showCreditLineAfterAmount = !0) : (m = a.lastOrdinaryAfterAmount, a.showCreditLineAfterAmount = !1);
4902
+ h.afterAmount !== 0 ? (g = h.afterAmount, p.showCreditLineAfterAmount = !0) : (g = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
4909
4903
  break;
4910
4904
  default:
4911
- m = h.afterAmount;
4905
+ g = h.afterAmount;
4912
4906
  }
4913
- return m === null ? b : m;
4914
- }, qe = () => {
4915
- switch (T) {
4907
+ return g === null ? a : g;
4908
+ }, ot = () => {
4909
+ switch (B) {
4916
4910
  case "totalCashAmount":
4917
- let b = 0;
4911
+ let a = 0;
4918
4912
  for (const h of ["Real", "Bonus"])
4919
- for (const m of E[h])
4920
- b += Math.max(m.amount, 0);
4921
- n(3, E.Total[0].amount = b, E);
4913
+ for (const g of x[h])
4914
+ a += Math.max(g.amount, 0);
4915
+ n(3, x.Total[0].amount = a, x);
4922
4916
  break;
4923
4917
  case "totalRealAmount":
4924
- if (!K)
4918
+ if (!_e)
4925
4919
  return;
4926
- let a = 0;
4927
- for (const h of E.Real)
4928
- a += h.amount;
4929
- n(3, E.Total[0].amount = a, E);
4920
+ let p = 0;
4921
+ for (const h of x.Real)
4922
+ p += h.amount;
4923
+ n(3, x.Total[0].amount = p, x);
4930
4924
  }
4931
- }, Tt = (b) => {
4932
- const a = Le(b.data);
4933
- if (!a) {
4934
- me();
4925
+ }, Bt = (a) => {
4926
+ const p = ue(a.data);
4927
+ if (!p) {
4928
+ Ae();
4935
4929
  return;
4936
4930
  }
4937
- if (Bt(a == null ? void 0 : a.type) || a.type !== "BALANCE_UPDATE_V2")
4931
+ if (St(p == null ? void 0 : p.type) || p.type !== "BALANCE_UPDATE_V2")
4938
4932
  return;
4939
- const h = a.body.balanceChange;
4940
- for (const [m, d] of Object.entries(h))
4941
- if (T === "totalRealAmount" && m === "Real" && !K && n(3, E.Total[0].amount = Ae(E.Total[0].amount, _e, d), E), !!E[m])
4942
- for (const v of E[m]) {
4943
- if (!K) {
4944
- v.amount = m === "Real" ? Ae(v.amount, _e, d) : d.afterAmount;
4933
+ const h = p.body.balanceChange;
4934
+ for (const [g, y] of Object.entries(h))
4935
+ if (B === "totalRealAmount" && g === "Real" && !_e && n(3, x.Total[0].amount = Le(x.Total[0].amount, ie, y), x), !!x[g])
4936
+ for (const E of x[g]) {
4937
+ if (!_e) {
4938
+ E.amount = g === "Real" ? Le(E.amount, ie, y) : y.afterAmount;
4945
4939
  continue;
4946
4940
  }
4947
- d.productType === v.productType && (v.amount = m === "Real" ? Ae(v.amount, _e[v.productType], d) : d.afterAmount);
4941
+ y.productType === E.productType && (E.amount = g === "Real" ? Le(E.amount, ie[E.productType], y) : y.afterAmount);
4948
4942
  }
4949
- qe();
4943
+ ot();
4950
4944
  }, at = () => {
4951
- n(2, R = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
4952
- }, Bt = (b) => b === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, St = () => {
4953
- Te.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${Te}. Using default value ('${Te[0]}').`), n(7, T = Te[0]));
4954
- }, Qe = () => {
4955
- switch (Ho(s), St(), y) {
4945
+ n(2, Y = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
4946
+ }, St = (a) => a === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Ze = () => {
4947
+ me.includes(B) || (console.error(`Unsupported value ('${B}') for totalcalculationmode parameter. Only the following values are supported ${me}. Using default value ('${me[0]}').`), n(8, B = me[0]));
4948
+ }, qe = (a) => {
4949
+ const p = I.split(",").map((h) => h.trim());
4950
+ return !a.productType || p.includes(a.productType) ? "" : r(a.productType);
4951
+ }, Be = () => {
4952
+ switch (Ho(s), Ze(), b) {
4956
4953
  case "gmcore":
4957
- le();
4954
+ Te();
4958
4955
  break;
4959
4956
  case "gm16":
4960
- Be();
4957
+ we();
4961
4958
  break;
4962
4959
  default:
4963
- throw Error(`Invalid apiversion attribute: ${y}`);
4960
+ throw Error(`Invalid apiversion attribute: ${b}`);
4964
4961
  }
4965
- }, Re = (b) => b.data && b.data.type === "LogoutSuccessfull" && de.close();
4966
- _r(() => (window.addEventListener("message", Re, !1), () => {
4967
- window.removeEventListener("message", Re), de && de.close();
4962
+ }, K = (a) => a.data && a.data.type === "LogoutSuccessfull" && pe.close();
4963
+ _r(() => (window.addEventListener("message", K, !1), () => {
4964
+ window.removeEventListener("message", K), pe && pe.close();
4968
4965
  }));
4969
- const Se = () => n(2, R = !0), te = () => n(2, R = !1), wt = () => at(), At = () => n(2, R = !1);
4970
- function Ct(b) {
4971
- kt[b ? "unshift" : "push"](() => {
4972
- w = b, n(0, w);
4966
+ const wt = () => n(2, Y = !0), At = () => n(2, Y = !1), Ct = () => at(), st = () => n(2, Y = !1);
4967
+ function c(a) {
4968
+ kt[a ? "unshift" : "push"](() => {
4969
+ P = a, n(0, P);
4973
4970
  });
4974
4971
  }
4975
- return e.$$set = (b) => {
4976
- "userid" in b && n(8, i = b.userid), "session" in b && n(9, o = b.session), "endpoint" in b && n(10, u = b.endpoint), "lang" in b && n(11, s = b.lang), "mbsource" in b && n(12, c = b.mbsource), "clientstyling" in b && n(13, l = b.clientstyling), "clientstylingurl" in b && n(14, f = b.clientstylingurl), "translationurl" in b && n(15, g = b.translationurl), "gmversion" in b && n(16, y = b.gmversion), "displaybalanceoption" in b && n(17, x = b.displaybalanceoption), "totalcalculationmode" in b && n(7, T = b.totalcalculationmode), "currencylocale" in b && n(18, P = b.currencylocale), "currencydisplay" in b && n(19, j = b.currencydisplay), "maximumfractiondigits" in b && n(20, z = b.maximumfractiondigits), "minimumfractiondigits" in b && n(21, G = b.minimumfractiondigits), "customdisplayformat" in b && n(22, B = b.customdisplayformat);
4972
+ return e.$$set = (a) => {
4973
+ "userid" in a && n(9, i = a.userid), "session" in a && n(10, o = a.session), "endpoint" in a && n(11, u = a.endpoint), "lang" in a && n(12, s = a.lang), "mbsource" in a && n(13, f = a.mbsource), "clientstyling" in a && n(14, l = a.clientstyling), "clientstylingurl" in a && n(15, d = a.clientstylingurl), "translationurl" in a && n(16, m = a.translationurl), "gmversion" in a && n(17, b = a.gmversion), "displaybalanceoption" in a && n(18, _ = a.displaybalanceoption), "totalcalculationmode" in a && n(8, B = a.totalcalculationmode), "hideproducttype" in a && n(19, I = a.hideproducttype), "currencylocale" in a && n(20, j = a.currencylocale), "currencydisplay" in a && n(21, W = a.currencydisplay), "maximumfractiondigits" in a && n(22, U = a.maximumfractiondigits), "minimumfractiondigits" in a && n(23, w = a.minimumfractiondigits), "customdisplayformat" in a && n(24, A = a.customdisplayformat);
4977
4974
  }, e.$$.update = () => {
4978
4975
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
4979
- 200448 && u && i && o && s && y && x && Qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4980
- 67328 && u && i && o && y && me(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4981
- 8193 && l && w && Ir(w, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4982
- 16385 && f && w && Dr(w, f), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4983
- 4097 && w && Fr(w, `${c}.Style`), e.$$.dirty[0] & /*translationurl*/
4984
- 32768 && g && We();
4976
+ 400896 && u && i && o && s && b && _ && Be(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4977
+ 134656 && u && i && o && b && Ae(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4978
+ 16385 && l && P && Ir(P, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4979
+ 32769 && d && P && Dr(P, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4980
+ 8193 && P && Fr(P, `${f}.Style`), e.$$.dirty[0] & /*translationurl*/
4981
+ 65536 && m && it();
4985
4982
  }, [
4986
- w,
4987
- I,
4988
- R,
4989
- E,
4983
+ P,
4984
+ L,
4985
+ Y,
4986
+ x,
4990
4987
  r,
4991
- ot,
4988
+ ze,
4992
4989
  at,
4993
- T,
4990
+ qe,
4991
+ B,
4994
4992
  i,
4995
4993
  o,
4996
4994
  u,
4997
4995
  s,
4998
- c,
4999
- l,
5000
4996
  f,
5001
- g,
5002
- y,
5003
- x,
5004
- P,
4997
+ l,
4998
+ d,
4999
+ m,
5000
+ b,
5001
+ _,
5002
+ I,
5005
5003
  j,
5006
- z,
5007
- G,
5008
- B,
5009
- Se,
5010
- te,
5004
+ W,
5005
+ U,
5006
+ w,
5007
+ A,
5011
5008
  wt,
5012
5009
  At,
5013
- Ct
5010
+ Ct,
5011
+ st,
5012
+ c
5014
5013
  ];
5015
5014
  }
5016
5015
  class Io extends Mr {
@@ -5022,125 +5021,132 @@ class Io extends Mr {
5022
5021
  Mo,
5023
5022
  Rn,
5024
5023
  {
5025
- userid: 8,
5026
- session: 9,
5027
- endpoint: 10,
5028
- lang: 11,
5029
- mbsource: 12,
5030
- clientstyling: 13,
5031
- clientstylingurl: 14,
5032
- translationurl: 15,
5033
- gmversion: 16,
5034
- displaybalanceoption: 17,
5035
- totalcalculationmode: 7,
5036
- currencylocale: 18,
5037
- currencydisplay: 19,
5038
- maximumfractiondigits: 20,
5039
- minimumfractiondigits: 21,
5040
- customdisplayformat: 22
5024
+ userid: 9,
5025
+ session: 10,
5026
+ endpoint: 11,
5027
+ lang: 12,
5028
+ mbsource: 13,
5029
+ clientstyling: 14,
5030
+ clientstylingurl: 15,
5031
+ translationurl: 16,
5032
+ gmversion: 17,
5033
+ displaybalanceoption: 18,
5034
+ totalcalculationmode: 8,
5035
+ hideproducttype: 19,
5036
+ currencylocale: 20,
5037
+ currencydisplay: 21,
5038
+ maximumfractiondigits: 22,
5039
+ minimumfractiondigits: 23,
5040
+ customdisplayformat: 24
5041
5041
  },
5042
5042
  Lo,
5043
5043
  [-1, -1]
5044
5044
  );
5045
5045
  }
5046
5046
  get userid() {
5047
- return this.$$.ctx[8];
5047
+ return this.$$.ctx[9];
5048
5048
  }
5049
5049
  set userid(t) {
5050
- this.$$set({ userid: t }), X();
5050
+ this.$$set({ userid: t }), k();
5051
5051
  }
5052
5052
  get session() {
5053
- return this.$$.ctx[9];
5053
+ return this.$$.ctx[10];
5054
5054
  }
5055
5055
  set session(t) {
5056
- this.$$set({ session: t }), X();
5056
+ this.$$set({ session: t }), k();
5057
5057
  }
5058
5058
  get endpoint() {
5059
- return this.$$.ctx[10];
5059
+ return this.$$.ctx[11];
5060
5060
  }
5061
5061
  set endpoint(t) {
5062
- this.$$set({ endpoint: t }), X();
5062
+ this.$$set({ endpoint: t }), k();
5063
5063
  }
5064
5064
  get lang() {
5065
- return this.$$.ctx[11];
5065
+ return this.$$.ctx[12];
5066
5066
  }
5067
5067
  set lang(t) {
5068
- this.$$set({ lang: t }), X();
5068
+ this.$$set({ lang: t }), k();
5069
5069
  }
5070
5070
  get mbsource() {
5071
- return this.$$.ctx[12];
5071
+ return this.$$.ctx[13];
5072
5072
  }
5073
5073
  set mbsource(t) {
5074
- this.$$set({ mbsource: t }), X();
5074
+ this.$$set({ mbsource: t }), k();
5075
5075
  }
5076
5076
  get clientstyling() {
5077
- return this.$$.ctx[13];
5077
+ return this.$$.ctx[14];
5078
5078
  }
5079
5079
  set clientstyling(t) {
5080
- this.$$set({ clientstyling: t }), X();
5080
+ this.$$set({ clientstyling: t }), k();
5081
5081
  }
5082
5082
  get clientstylingurl() {
5083
- return this.$$.ctx[14];
5083
+ return this.$$.ctx[15];
5084
5084
  }
5085
5085
  set clientstylingurl(t) {
5086
- this.$$set({ clientstylingurl: t }), X();
5086
+ this.$$set({ clientstylingurl: t }), k();
5087
5087
  }
5088
5088
  get translationurl() {
5089
- return this.$$.ctx[15];
5089
+ return this.$$.ctx[16];
5090
5090
  }
5091
5091
  set translationurl(t) {
5092
- this.$$set({ translationurl: t }), X();
5092
+ this.$$set({ translationurl: t }), k();
5093
5093
  }
5094
5094
  get gmversion() {
5095
- return this.$$.ctx[16];
5095
+ return this.$$.ctx[17];
5096
5096
  }
5097
5097
  set gmversion(t) {
5098
- this.$$set({ gmversion: t }), X();
5098
+ this.$$set({ gmversion: t }), k();
5099
5099
  }
5100
5100
  get displaybalanceoption() {
5101
- return this.$$.ctx[17];
5101
+ return this.$$.ctx[18];
5102
5102
  }
5103
5103
  set displaybalanceoption(t) {
5104
- this.$$set({ displaybalanceoption: t }), X();
5104
+ this.$$set({ displaybalanceoption: t }), k();
5105
5105
  }
5106
5106
  get totalcalculationmode() {
5107
- return this.$$.ctx[7];
5107
+ return this.$$.ctx[8];
5108
5108
  }
5109
5109
  set totalcalculationmode(t) {
5110
- this.$$set({ totalcalculationmode: t }), X();
5110
+ this.$$set({ totalcalculationmode: t }), k();
5111
+ }
5112
+ get hideproducttype() {
5113
+ return this.$$.ctx[19];
5114
+ }
5115
+ set hideproducttype(t) {
5116
+ this.$$set({ hideproducttype: t }), k();
5111
5117
  }
5112
5118
  get currencylocale() {
5113
- return this.$$.ctx[18];
5119
+ return this.$$.ctx[20];
5114
5120
  }
5115
5121
  set currencylocale(t) {
5116
- this.$$set({ currencylocale: t }), X();
5122
+ this.$$set({ currencylocale: t }), k();
5117
5123
  }
5118
5124
  get currencydisplay() {
5119
- return this.$$.ctx[19];
5125
+ return this.$$.ctx[21];
5120
5126
  }
5121
5127
  set currencydisplay(t) {
5122
- this.$$set({ currencydisplay: t }), X();
5128
+ this.$$set({ currencydisplay: t }), k();
5123
5129
  }
5124
5130
  get maximumfractiondigits() {
5125
- return this.$$.ctx[20];
5131
+ return this.$$.ctx[22];
5126
5132
  }
5127
5133
  set maximumfractiondigits(t) {
5128
- this.$$set({ maximumfractiondigits: t }), X();
5134
+ this.$$set({ maximumfractiondigits: t }), k();
5129
5135
  }
5130
5136
  get minimumfractiondigits() {
5131
- return this.$$.ctx[21];
5137
+ return this.$$.ctx[23];
5132
5138
  }
5133
5139
  set minimumfractiondigits(t) {
5134
- this.$$set({ minimumfractiondigits: t }), X();
5140
+ this.$$set({ minimumfractiondigits: t }), k();
5135
5141
  }
5136
5142
  get customdisplayformat() {
5137
- return this.$$.ctx[22];
5143
+ return this.$$.ctx[24];
5138
5144
  }
5139
5145
  set customdisplayformat(t) {
5140
- this.$$set({ customdisplayformat: t }), X();
5146
+ this.$$set({ customdisplayformat: t }), k();
5141
5147
  }
5142
5148
  }
5143
- Nr(Io, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5149
+ Nr(Io, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5144
5150
  export {
5145
5151
  Io as default
5146
5152
  };