@everymatrix/player-account-balance-modal-nd 1.83.2 → 1.83.3

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