@everymatrix/player-account-balance-modal-nd 1.74.8 → 1.74.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,46 +1,46 @@
1
- function he() {
1
+ function ce() {
2
2
  }
3
- function kn(e) {
3
+ function Gn(e) {
4
4
  return e();
5
5
  }
6
- function hn() {
6
+ function ln() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function Xe(e) {
10
- e.forEach(kn);
9
+ function ze(e) {
10
+ e.forEach(Gn);
11
11
  }
12
- function on(e) {
12
+ function rn(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function $n(e, t) {
15
+ function jn(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function Br(e) {
18
+ function wr(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function Vn(e, ...t) {
21
+ function kn(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const r of t)
24
24
  r(void 0);
25
- return he;
25
+ return ce;
26
26
  }
27
27
  const n = e.subscribe(...t);
28
28
  return n.unsubscribe ? () => n.unsubscribe() : n;
29
29
  }
30
- function Ar(e, t, n) {
31
- e.$$.on_destroy.push(Vn(t, n));
30
+ function Sr(e, t, n) {
31
+ e.$$.on_destroy.push(kn(t, n));
32
32
  }
33
- function I(e, t) {
33
+ function P(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function Cr(e, t, n) {
37
- const r = Hr(e);
36
+ function Tr(e, t, n) {
37
+ const r = Br(e);
38
38
  if (!r.getElementById(t)) {
39
39
  const i = j("style");
40
- i.id = t, i.textContent = n, Or(r, i);
40
+ i.id = t, i.textContent = n, Ar(r, i);
41
41
  }
42
42
  }
43
- function Hr(e) {
43
+ function Br(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,52 +50,52 @@ function Hr(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function Or(e, t) {
54
- return I(
53
+ function Ar(e, t) {
54
+ return P(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function ge(e, t, n) {
60
+ function be(e, t, n) {
61
61
  e.insertBefore(t, n || null);
62
62
  }
63
- function me(e) {
63
+ function de(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function Xn(e, t) {
66
+ function $n(e, t) {
67
67
  for (let n = 0; n < e.length; n += 1)
68
68
  e[n] && e[n].d(t);
69
69
  }
70
70
  function j(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function fn(e) {
73
+ function cn(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
- function we(e) {
76
+ function xe(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
- function Se() {
80
- return we(" ");
79
+ function we() {
80
+ return xe(" ");
81
81
  }
82
- function Mr() {
83
- return we("");
82
+ function Cr() {
83
+ return xe("");
84
84
  }
85
85
  function vt(e, t, n, r) {
86
86
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
87
87
  }
88
- function R(e, t, n) {
88
+ function M(e, t, n) {
89
89
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
90
90
  }
91
- function Rr(e) {
91
+ function Hr(e) {
92
92
  return Array.from(e.childNodes);
93
93
  }
94
94
  function Me(e, t) {
95
95
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
96
96
  t);
97
97
  }
98
- function Lr(e) {
98
+ function Or(e) {
99
99
  const t = {};
100
100
  return e.childNodes.forEach(
101
101
  /** @param {Element} node */
@@ -108,124 +108,124 @@ let rt;
108
108
  function nt(e) {
109
109
  rt = e;
110
110
  }
111
- function Pr() {
111
+ function Mr() {
112
112
  if (!rt)
113
113
  throw new Error("Function called outside component initialization");
114
114
  return rt;
115
115
  }
116
- function Ir(e) {
117
- Pr().$$.on_mount.push(e);
116
+ function Rr(e) {
117
+ Mr().$$.on_mount.push(e);
118
118
  }
119
- const Ue = [], jt = [];
120
- let Fe = [];
121
- const dn = [], Nr = /* @__PURE__ */ Promise.resolve();
122
- let kt = !1;
123
- function Dr() {
124
- kt || (kt = !0, Nr.then(Y));
119
+ const Fe = [], Gt = [];
120
+ let Ge = [];
121
+ const hn = [], Lr = /* @__PURE__ */ Promise.resolve();
122
+ let jt = !1;
123
+ function Pr() {
124
+ jt || (jt = !0, Lr.then(Q));
125
125
  }
126
- function $t(e) {
127
- Fe.push(e);
126
+ function kt(e) {
127
+ Ge.push(e);
128
128
  }
129
129
  const Lt = /* @__PURE__ */ new Set();
130
- let Ne = 0;
131
- function Y() {
132
- if (Ne !== 0)
130
+ let De = 0;
131
+ function Q() {
132
+ if (De !== 0)
133
133
  return;
134
134
  const e = rt;
135
135
  do {
136
136
  try {
137
- for (; Ne < Ue.length; ) {
138
- const t = Ue[Ne];
139
- Ne++, nt(t), Ur(t.$$);
137
+ for (; De < Fe.length; ) {
138
+ const t = Fe[De];
139
+ De++, nt(t), Nr(t.$$);
140
140
  }
141
141
  } catch (t) {
142
- throw Ue.length = 0, Ne = 0, t;
142
+ throw Fe.length = 0, De = 0, t;
143
143
  }
144
- for (nt(null), Ue.length = 0, Ne = 0; jt.length; )
145
- jt.pop()();
146
- for (let t = 0; t < Fe.length; t += 1) {
147
- const n = Fe[t];
144
+ for (nt(null), Fe.length = 0, De = 0; Gt.length; )
145
+ Gt.pop()();
146
+ for (let t = 0; t < Ge.length; t += 1) {
147
+ const n = Ge[t];
148
148
  Lt.has(n) || (Lt.add(n), n());
149
149
  }
150
- Fe.length = 0;
151
- } while (Ue.length);
152
- for (; dn.length; )
153
- dn.pop()();
154
- kt = !1, Lt.clear(), nt(e);
150
+ Ge.length = 0;
151
+ } while (Fe.length);
152
+ for (; hn.length; )
153
+ hn.pop()();
154
+ jt = !1, Lt.clear(), nt(e);
155
155
  }
156
- function Ur(e) {
156
+ function Nr(e) {
157
157
  if (e.fragment !== null) {
158
- e.update(), Xe(e.before_update);
158
+ e.update(), ze(e.before_update);
159
159
  const t = e.dirty;
160
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($t);
160
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(kt);
161
161
  }
162
162
  }
163
- function Fr(e) {
163
+ function Ir(e) {
164
164
  const t = [], n = [];
165
- Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
165
+ Ge.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ge = t;
166
166
  }
167
- const Gr = /* @__PURE__ */ new Set();
168
- function jr(e, t) {
169
- e && e.i && (Gr.delete(e), e.i(t));
167
+ const Dr = /* @__PURE__ */ new Set();
168
+ function Ur(e, t) {
169
+ e && e.i && (Dr.delete(e), e.i(t));
170
170
  }
171
171
  function _t(e) {
172
172
  return e?.length !== void 0 ? e : Array.from(e);
173
173
  }
174
- function kr(e, t, n) {
174
+ function Fr(e, t, n) {
175
175
  const { fragment: r, after_update: i } = e.$$;
176
- r && r.m(t, n), $t(() => {
177
- const o = e.$$.on_mount.map(kn).filter(on);
178
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Xe(o), e.$$.on_mount = [];
179
- }), i.forEach($t);
176
+ r && r.m(t, n), kt(() => {
177
+ const o = e.$$.on_mount.map(Gn).filter(rn);
178
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ze(o), e.$$.on_mount = [];
179
+ }), i.forEach(kt);
180
180
  }
181
- function $r(e, t) {
181
+ function Gr(e, t) {
182
182
  const n = e.$$;
183
- n.fragment !== null && (Fr(n.after_update), Xe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
183
+ n.fragment !== null && (Ir(n.after_update), ze(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
184
184
  }
185
- function Vr(e, t) {
186
- e.$$.dirty[0] === -1 && (Ue.push(e), Dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
185
+ function jr(e, t) {
186
+ e.$$.dirty[0] === -1 && (Fe.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
187
187
  }
188
- function Xr(e, t, n, r, i, o, s = null, a = [-1]) {
189
- const c = rt;
188
+ function kr(e, t, n, r, i, o, s = null, a = [-1]) {
189
+ const l = rt;
190
190
  nt(e);
191
- const l = e.$$ = {
191
+ const u = e.$$ = {
192
192
  fragment: null,
193
193
  ctx: [],
194
194
  // state
195
195
  props: o,
196
- update: he,
196
+ update: ce,
197
197
  not_equal: i,
198
- bound: hn(),
198
+ bound: ln(),
199
199
  // lifecycle
200
200
  on_mount: [],
201
201
  on_destroy: [],
202
202
  on_disconnect: [],
203
203
  before_update: [],
204
204
  after_update: [],
205
- context: new Map(t.context || (c ? c.$$.context : [])),
205
+ context: new Map(t.context || (l ? l.$$.context : [])),
206
206
  // everything else
207
- callbacks: hn(),
207
+ callbacks: ln(),
208
208
  dirty: a,
209
209
  skip_bound: !1,
210
- root: t.target || c.$$.root
210
+ root: t.target || l.$$.root
211
211
  };
212
- s && s(l.root);
212
+ s && s(u.root);
213
213
  let f = !1;
214
- if (l.ctx = n ? n(e, t.props || {}, (m, p, ...S) => {
215
- const E = S.length ? S[0] : p;
216
- return l.ctx && i(l.ctx[m], l.ctx[m] = E) && (!l.skip_bound && l.bound[m] && l.bound[m](E), f && Vr(e, m)), p;
217
- }) : [], l.update(), f = !0, Xe(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
214
+ if (u.ctx = n(e, t.props || {}, (b, m, ...w) => {
215
+ const _ = w.length ? w[0] : m;
216
+ return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), f && jr(e, b)), m;
217
+ }), u.update(), f = !0, ze(u.before_update), u.fragment = r(u.ctx), t.target) {
218
218
  if (t.hydrate) {
219
- const m = Rr(t.target);
220
- l.fragment && l.fragment.l(m), m.forEach(me);
219
+ const b = Hr(t.target);
220
+ u.fragment && u.fragment.l(b), b.forEach(de);
221
221
  } else
222
- l.fragment && l.fragment.c();
223
- t.intro && jr(e.$$.fragment), kr(e, t.target, t.anchor), Y();
222
+ u.fragment && u.fragment.c();
223
+ t.intro && Ur(e.$$.fragment), Fr(e, t.target, t.anchor), Q();
224
224
  }
225
- nt(c);
225
+ nt(l);
226
226
  }
227
- let zn;
228
- typeof HTMLElement == "function" && (zn = class extends HTMLElement {
227
+ let Vn;
228
+ typeof HTMLElement == "function" && (Vn = class extends HTMLElement {
229
229
  /** The Svelte component constructor */
230
230
  $$ctor;
231
231
  /** Slots */
@@ -267,24 +267,24 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
267
267
  let o;
268
268
  return {
269
269
  c: function() {
270
- o = j("slot"), i !== "default" && R(o, "name", i);
270
+ o = j("slot"), i !== "default" && M(o, "name", i);
271
271
  },
272
272
  /**
273
273
  * @param {HTMLElement} target
274
274
  * @param {HTMLElement} [anchor]
275
275
  */
276
- m: function(c, l) {
277
- ge(c, o, l);
276
+ m: function(l, u) {
277
+ be(l, o, u);
278
278
  },
279
- d: function(c) {
280
- c && me(o);
279
+ d: function(l) {
280
+ l && de(o);
281
281
  }
282
282
  };
283
283
  };
284
284
  };
285
285
  if (await Promise.resolve(), !this.$$cn || this.$$c)
286
286
  return;
287
- const t = {}, n = Lr(this);
287
+ const t = {}, n = Or(this);
288
288
  for (const i of this.$$s)
289
289
  i in n && (t[i] = [e(i)]);
290
290
  for (const i of this.attributes) {
@@ -371,8 +371,8 @@ function mt(e, t, n, r) {
371
371
  return t;
372
372
  }
373
373
  }
374
- function zr(e, t, n, r, i, o) {
375
- let s = class extends zn {
374
+ function $r(e, t, n, r, i, o) {
375
+ let s = class extends Vn {
376
376
  constructor() {
377
377
  super(e, n, i), this.$$p_d = t;
378
378
  }
@@ -387,8 +387,8 @@ function zr(e, t, n, r, i, o) {
387
387
  get() {
388
388
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
389
389
  },
390
- set(c) {
391
- c = mt(a, c, t), this.$$d[a] = c, this.$$c?.$set({ [a]: c });
390
+ set(l) {
391
+ l = mt(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
392
392
  }
393
393
  });
394
394
  }), r.forEach((a) => {
@@ -400,7 +400,7 @@ function zr(e, t, n, r, i, o) {
400
400
  }), e.element = /** @type {any} */
401
401
  s, s;
402
402
  }
403
- class Wr {
403
+ class Vr {
404
404
  /**
405
405
  * ### PRIVATE API
406
406
  *
@@ -419,7 +419,7 @@ class Wr {
419
419
  $$set = void 0;
420
420
  /** @returns {void} */
421
421
  $destroy() {
422
- $r(this, 1), this.$destroy = he;
422
+ Gr(this, 1), this.$destroy = ce;
423
423
  }
424
424
  /**
425
425
  * @template {Extract<keyof Events, string>} K
@@ -428,8 +428,8 @@ class Wr {
428
428
  * @returns {() => void}
429
429
  */
430
430
  $on(t, n) {
431
- if (!on(n))
432
- return he;
431
+ if (!rn(n))
432
+ return ce;
433
433
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
434
434
  return r.push(n), () => {
435
435
  const i = r.indexOf(n);
@@ -441,18 +441,18 @@ class Wr {
441
441
  * @returns {void}
442
442
  */
443
443
  $set(t) {
444
- this.$$set && !Br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
444
+ this.$$set && !wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
445
445
  }
446
446
  }
447
- const Zr = "4";
448
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zr);
449
- function qr(e, t) {
447
+ const Xr = "4";
448
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Xr);
449
+ function zr(e, t) {
450
450
  if (e) {
451
451
  const n = document.createElement("style");
452
452
  n.innerHTML = t, e.appendChild(n);
453
453
  }
454
454
  }
455
- function Yr(e, t) {
455
+ function Wr(e, t) {
456
456
  const n = new URL(t);
457
457
  fetch(n.href).then((r) => r.text()).then((r) => {
458
458
  const i = document.createElement("style");
@@ -461,7 +461,7 @@ function Yr(e, t) {
461
461
  console.error("There was an error while trying to load client styling from URL", r);
462
462
  });
463
463
  }
464
- function Qr(e, t, n) {
464
+ function Zr(e, t, n) {
465
465
  if (window.emMessageBus) {
466
466
  const r = document.createElement("style");
467
467
  window.emMessageBus.subscribe(t, (i) => {
@@ -469,144 +469,144 @@ function Qr(e, t, n) {
469
469
  });
470
470
  }
471
471
  }
472
- const De = [];
473
- function Jr(e, t) {
472
+ const Ue = [];
473
+ function qr(e, t) {
474
474
  return {
475
475
  subscribe: wt(e, t).subscribe
476
476
  };
477
477
  }
478
- function wt(e, t = he) {
478
+ function wt(e, t = ce) {
479
479
  let n;
480
480
  const r = /* @__PURE__ */ new Set();
481
481
  function i(a) {
482
- if ($n(e, a) && (e = a, n)) {
483
- const c = !De.length;
484
- for (const l of r)
485
- l[1](), De.push(l, e);
486
- if (c) {
487
- for (let l = 0; l < De.length; l += 2)
488
- De[l][0](De[l + 1]);
489
- De.length = 0;
482
+ if (jn(e, a) && (e = a, n)) {
483
+ const l = !Ue.length;
484
+ for (const u of r)
485
+ u[1](), Ue.push(u, e);
486
+ if (l) {
487
+ for (let u = 0; u < Ue.length; u += 2)
488
+ Ue[u][0](Ue[u + 1]);
489
+ Ue.length = 0;
490
490
  }
491
491
  }
492
492
  }
493
493
  function o(a) {
494
494
  i(a(e));
495
495
  }
496
- function s(a, c = he) {
497
- const l = [a, c];
498
- return r.add(l), r.size === 1 && (n = t(i, o) || he), a(e), () => {
499
- r.delete(l), r.size === 0 && n && (n(), n = null);
496
+ function s(a, l = ce) {
497
+ const u = [a, l];
498
+ return r.add(u), r.size === 1 && (n = t(i, o) || ce), a(e), () => {
499
+ r.delete(u), r.size === 0 && n && (n(), n = null);
500
500
  };
501
501
  }
502
502
  return { set: i, update: o, subscribe: s };
503
503
  }
504
- function ze(e, t, n) {
504
+ function We(e, t, n) {
505
505
  const r = !Array.isArray(e), i = r ? [e] : e;
506
506
  if (!i.every(Boolean))
507
507
  throw new Error("derived() expects stores as input, got a falsy value");
508
508
  const o = t.length < 2;
509
- return Jr(n, (s, a) => {
510
- let c = !1;
511
- const l = [];
512
- let f = 0, m = he;
513
- const p = () => {
509
+ return qr(n, (s, a) => {
510
+ let l = !1;
511
+ const u = [];
512
+ let f = 0, b = ce;
513
+ const m = () => {
514
514
  if (f)
515
515
  return;
516
- m();
517
- const E = t(r ? l[0] : l, s, a);
518
- o ? s(E) : m = on(E) ? E : he;
519
- }, S = i.map(
520
- (E, T) => Vn(
521
- E,
522
- (N) => {
523
- l[T] = N, f &= ~(1 << T), c && p();
516
+ b();
517
+ const _ = t(r ? u[0] : u, s, a);
518
+ o ? s(_) : b = rn(_) ? _ : ce;
519
+ }, w = i.map(
520
+ (_, A) => kn(
521
+ _,
522
+ (I) => {
523
+ u[A] = I, f &= ~(1 << A), l && m();
524
524
  },
525
525
  () => {
526
- f |= 1 << T;
526
+ f |= 1 << A;
527
527
  }
528
528
  )
529
529
  );
530
- return c = !0, p(), function() {
531
- Xe(S), m(), c = !1;
530
+ return l = !0, m(), function() {
531
+ ze(w), b(), l = !1;
532
532
  };
533
533
  });
534
534
  }
535
- var Kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
536
- function ei(e) {
535
+ var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
536
+ function Qr(e) {
537
537
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
538
538
  }
539
- var ti = function(t) {
540
- return ni(t) && !ri(t);
539
+ var Jr = function(t) {
540
+ return Kr(t) && !ei(t);
541
541
  };
542
- function ni(e) {
542
+ function Kr(e) {
543
543
  return !!e && typeof e == "object";
544
544
  }
545
- function ri(e) {
545
+ function ei(e) {
546
546
  var t = Object.prototype.toString.call(e);
547
- return t === "[object RegExp]" || t === "[object Date]" || ai(e);
547
+ return t === "[object RegExp]" || t === "[object Date]" || ri(e);
548
548
  }
549
- var ii = typeof Symbol == "function" && Symbol.for, oi = ii ? Symbol.for("react.element") : 60103;
550
- function ai(e) {
551
- return e.$$typeof === oi;
549
+ var ti = typeof Symbol == "function" && Symbol.for, ni = ti ? Symbol.for("react.element") : 60103;
550
+ function ri(e) {
551
+ return e.$$typeof === ni;
552
552
  }
553
- function si(e) {
553
+ function ii(e) {
554
554
  return Array.isArray(e) ? [] : {};
555
555
  }
556
556
  function it(e, t) {
557
- return t.clone !== !1 && t.isMergeableObject(e) ? je(si(e), e, t) : e;
557
+ return t.clone !== !1 && t.isMergeableObject(e) ? ke(ii(e), e, t) : e;
558
558
  }
559
- function li(e, t, n) {
559
+ function oi(e, t, n) {
560
560
  return e.concat(t).map(function(r) {
561
561
  return it(r, n);
562
562
  });
563
563
  }
564
- function ui(e, t) {
564
+ function ai(e, t) {
565
565
  if (!t.customMerge)
566
- return je;
566
+ return ke;
567
567
  var n = t.customMerge(e);
568
- return typeof n == "function" ? n : je;
568
+ return typeof n == "function" ? n : ke;
569
569
  }
570
- function ci(e) {
570
+ function si(e) {
571
571
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
572
572
  return Object.propertyIsEnumerable.call(e, t);
573
573
  }) : [];
574
574
  }
575
- function pn(e) {
576
- return Object.keys(e).concat(ci(e));
575
+ function fn(e) {
576
+ return Object.keys(e).concat(si(e));
577
577
  }
578
- function Wn(e, t) {
578
+ function Xn(e, t) {
579
579
  try {
580
580
  return t in e;
581
581
  } catch {
582
582
  return !1;
583
583
  }
584
584
  }
585
- function hi(e, t) {
586
- return Wn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
585
+ function ui(e, t) {
586
+ return Xn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
587
587
  }
588
- function fi(e, t, n) {
588
+ function li(e, t, n) {
589
589
  var r = {};
590
- return n.isMergeableObject(e) && pn(e).forEach(function(i) {
590
+ return n.isMergeableObject(e) && fn(e).forEach(function(i) {
591
591
  r[i] = it(e[i], n);
592
- }), pn(t).forEach(function(i) {
593
- hi(e, i) || (Wn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ui(i, n)(e[i], t[i], n) : r[i] = it(t[i], n));
592
+ }), fn(t).forEach(function(i) {
593
+ ui(e, i) || (Xn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ai(i, n)(e[i], t[i], n) : r[i] = it(t[i], n));
594
594
  }), r;
595
595
  }
596
- function je(e, t, n) {
597
- n = n || {}, n.arrayMerge = n.arrayMerge || li, n.isMergeableObject = n.isMergeableObject || ti, n.cloneUnlessOtherwiseSpecified = it;
596
+ function ke(e, t, n) {
597
+ n = n || {}, n.arrayMerge = n.arrayMerge || oi, n.isMergeableObject = n.isMergeableObject || Jr, n.cloneUnlessOtherwiseSpecified = it;
598
598
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
599
- return o ? r ? n.arrayMerge(e, t, n) : fi(e, t, n) : it(t, n);
599
+ return o ? r ? n.arrayMerge(e, t, n) : li(e, t, n) : it(t, n);
600
600
  }
601
- je.all = function(t, n) {
601
+ ke.all = function(t, n) {
602
602
  if (!Array.isArray(t))
603
603
  throw new Error("first argument should be an array");
604
604
  return t.reduce(function(r, i) {
605
- return je(r, i, n);
605
+ return ke(r, i, n);
606
606
  }, {});
607
607
  };
608
- var di = je, pi = di;
609
- const mi = /* @__PURE__ */ ei(pi);
608
+ var ci = ke, hi = ci;
609
+ const fi = /* @__PURE__ */ Qr(hi);
610
610
  /*! *****************************************************************************
611
611
  Copyright (c) Microsoft Corporation.
612
612
 
@@ -621,34 +621,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
621
621
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
622
622
  PERFORMANCE OF THIS SOFTWARE.
623
623
  ***************************************************************************** */
624
- var Vt = function(e, t) {
625
- return Vt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
624
+ var $t = function(e, t) {
625
+ return $t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
626
626
  n.__proto__ = r;
627
627
  } || function(n, r) {
628
628
  for (var i in r)
629
629
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
630
- }, Vt(e, t);
630
+ }, $t(e, t);
631
631
  };
632
- function Be(e, t) {
632
+ function Te(e, t) {
633
633
  if (typeof t != "function" && t !== null)
634
634
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
635
- Vt(e, t);
635
+ $t(e, t);
636
636
  function n() {
637
637
  this.constructor = e;
638
638
  }
639
639
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
640
640
  }
641
- var P = function() {
642
- return P = Object.assign || function(t) {
641
+ var L = function() {
642
+ return L = Object.assign || function(t) {
643
643
  for (var n, r = 1, i = arguments.length; r < i; r++) {
644
644
  n = arguments[r];
645
645
  for (var o in n)
646
646
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
647
647
  }
648
648
  return t;
649
- }, P.apply(this, arguments);
649
+ }, L.apply(this, arguments);
650
650
  };
651
- function bi(e, t) {
651
+ function di(e, t) {
652
652
  var n = {};
653
653
  for (var r in e)
654
654
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -657,7 +657,7 @@ function bi(e, t) {
657
657
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
658
658
  return n;
659
659
  }
660
- function Xt(e) {
660
+ function Vt(e) {
661
661
  var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
662
662
  if (n)
663
663
  return n.call(e);
@@ -669,7 +669,7 @@ function Xt(e) {
669
669
  };
670
670
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
671
671
  }
672
- function zt(e, t) {
672
+ function Xt(e, t) {
673
673
  var n = typeof Symbol == "function" && e[Symbol.iterator];
674
674
  if (!n)
675
675
  return e;
@@ -689,111 +689,113 @@ function zt(e, t) {
689
689
  }
690
690
  return o;
691
691
  }
692
- function Ge(e, t, n) {
692
+ function je(e, t, n) {
693
693
  if (n || arguments.length === 2)
694
694
  for (var r = 0, i = t.length, o; r < i; r++)
695
695
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
696
696
  return e.concat(o || t);
697
697
  }
698
698
  function Pt(e, t) {
699
- var n = t && t.cache ? t.cache : xi, r = t && t.serializer ? t.serializer : Ei, i = t && t.strategy ? t.strategy : yi;
699
+ var n = t && t.cache ? t.cache : _i, r = t && t.serializer ? t.serializer : yi, i = t && t.strategy ? t.strategy : mi;
700
700
  return i(e, {
701
701
  cache: n,
702
702
  serializer: r
703
703
  });
704
704
  }
705
- function gi(e) {
705
+ function pi(e) {
706
706
  return e == null || typeof e == "number" || typeof e == "boolean";
707
707
  }
708
- function Zn(e, t, n, r) {
709
- var i = gi(r) ? r : n(r), o = t.get(i);
708
+ function zn(e, t, n, r) {
709
+ var i = pi(r) ? r : n(r), o = t.get(i);
710
710
  return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
711
711
  }
712
- function qn(e, t, n) {
712
+ function Wn(e, t, n) {
713
713
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
714
714
  return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
715
715
  }
716
- function an(e, t, n, r, i) {
716
+ function on(e, t, n, r, i) {
717
717
  return n.bind(t, e, r, i);
718
718
  }
719
- function yi(e, t) {
720
- var n = e.length === 1 ? Zn : qn;
721
- return an(e, this, n, t.cache.create(), t.serializer);
719
+ function mi(e, t) {
720
+ var n = e.length === 1 ? zn : Wn;
721
+ return on(e, this, n, t.cache.create(), t.serializer);
722
722
  }
723
- function vi(e, t) {
724
- return an(e, this, qn, t.cache.create(), t.serializer);
723
+ function bi(e, t) {
724
+ return on(e, this, Wn, t.cache.create(), t.serializer);
725
725
  }
726
- function _i(e, t) {
727
- return an(e, this, Zn, t.cache.create(), t.serializer);
726
+ function gi(e, t) {
727
+ return on(e, this, zn, t.cache.create(), t.serializer);
728
728
  }
729
- var Ei = function() {
729
+ var yi = function() {
730
730
  return JSON.stringify(arguments);
731
- };
732
- function sn() {
733
- this.cache = /* @__PURE__ */ Object.create(null);
734
- }
735
- sn.prototype.get = function(e) {
736
- return this.cache[e];
737
- };
738
- sn.prototype.set = function(e, t) {
739
- this.cache[e] = t;
740
- };
741
- var xi = {
731
+ }, vi = (
732
+ /** @class */
733
+ function() {
734
+ function e() {
735
+ this.cache = /* @__PURE__ */ Object.create(null);
736
+ }
737
+ return e.prototype.get = function(t) {
738
+ return this.cache[t];
739
+ }, e.prototype.set = function(t, n) {
740
+ this.cache[t] = n;
741
+ }, e;
742
+ }()
743
+ ), _i = {
742
744
  create: function() {
743
- return new sn();
745
+ return new vi();
744
746
  }
745
- }, It = {
746
- variadic: vi,
747
- monadic: _i
748
- }, O;
747
+ }, Nt = {
748
+ variadic: bi,
749
+ monadic: gi
750
+ }, H;
749
751
  (function(e) {
750
752
  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";
751
- })(O || (O = {}));
753
+ })(H || (H = {}));
752
754
  var G;
753
755
  (function(e) {
754
756
  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";
755
757
  })(G || (G = {}));
756
- var ke;
758
+ var $e;
757
759
  (function(e) {
758
760
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
759
- })(ke || (ke = {}));
760
- function mn(e) {
761
+ })($e || ($e = {}));
762
+ function dn(e) {
761
763
  return e.type === G.literal;
762
764
  }
763
- function wi(e) {
765
+ function Ei(e) {
764
766
  return e.type === G.argument;
765
767
  }
766
- function Yn(e) {
768
+ function Zn(e) {
767
769
  return e.type === G.number;
768
770
  }
769
- function Qn(e) {
771
+ function qn(e) {
770
772
  return e.type === G.date;
771
773
  }
772
- function Jn(e) {
774
+ function Yn(e) {
773
775
  return e.type === G.time;
774
776
  }
775
- function Kn(e) {
777
+ function Qn(e) {
776
778
  return e.type === G.select;
777
779
  }
778
- function er(e) {
780
+ function Jn(e) {
779
781
  return e.type === G.plural;
780
782
  }
781
- function Si(e) {
783
+ function xi(e) {
782
784
  return e.type === G.pound;
783
785
  }
784
- function tr(e) {
786
+ function Kn(e) {
785
787
  return e.type === G.tag;
786
788
  }
787
- function nr(e) {
788
- return !!(e && typeof e == "object" && e.type === ke.number);
789
+ function er(e) {
790
+ return !!(e && typeof e == "object" && e.type === $e.number);
789
791
  }
790
- function Wt(e) {
791
- return !!(e && typeof e == "object" && e.type === ke.dateTime);
792
+ function zt(e) {
793
+ return !!(e && typeof e == "object" && e.type === $e.dateTime);
792
794
  }
793
- var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ti = /(?:[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;
794
- function Bi(e) {
795
+ var tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wi = /(?:[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;
796
+ function Si(e) {
795
797
  var t = {};
796
- return e.replace(Ti, function(n) {
798
+ return e.replace(wi, function(n) {
797
799
  var r = n.length;
798
800
  switch (n[0]) {
799
801
  case "G":
@@ -882,36 +884,36 @@ function Bi(e) {
882
884
  return "";
883
885
  }), t;
884
886
  }
885
- var Ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
886
- function Ci(e) {
887
+ var Ti = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
888
+ function Bi(e) {
887
889
  if (e.length === 0)
888
890
  throw new Error("Number skeleton cannot be empty");
889
- for (var t = e.split(Ai).filter(function(p) {
890
- return p.length > 0;
891
+ for (var t = e.split(Ti).filter(function(m) {
892
+ return m.length > 0;
891
893
  }), n = [], r = 0, i = t; r < i.length; r++) {
892
894
  var o = i[r], s = o.split("/");
893
895
  if (s.length === 0)
894
896
  throw new Error("Invalid number skeleton");
895
- for (var a = s[0], c = s.slice(1), l = 0, f = c; l < f.length; l++) {
896
- var m = f[l];
897
- if (m.length === 0)
897
+ for (var a = s[0], l = s.slice(1), u = 0, f = l; u < f.length; u++) {
898
+ var b = f[u];
899
+ if (b.length === 0)
898
900
  throw new Error("Invalid number skeleton");
899
901
  }
900
- n.push({ stem: a, options: c });
902
+ n.push({ stem: a, options: l });
901
903
  }
902
904
  return n;
903
905
  }
904
- function Hi(e) {
906
+ function Ai(e) {
905
907
  return e.replace(/^(.*?)-/, "");
906
908
  }
907
- var bn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, Oi = /(\*)(0+)|(#+)(0+)|(0+)/g, or = /^(0+)$/;
908
- function gn(e) {
909
+ var pn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, Ci = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
910
+ function mn(e) {
909
911
  var t = {};
910
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(n, r, i) {
912
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(n, r, i) {
911
913
  return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
912
914
  }), t;
913
915
  }
914
- function ar(e) {
916
+ function ir(e) {
915
917
  switch (e) {
916
918
  case "sign-auto":
917
919
  return {
@@ -951,7 +953,7 @@ function ar(e) {
951
953
  };
952
954
  }
953
955
  }
954
- function Mi(e) {
956
+ function Hi(e) {
955
957
  var t;
956
958
  if (e[0] === "E" && e[1] === "E" ? (t = {
957
959
  notation: "engineering"
@@ -959,17 +961,17 @@ function Mi(e) {
959
961
  notation: "scientific"
960
962
  }, e = e.slice(1)), t) {
961
963
  var n = e.slice(0, 2);
962
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !or.test(e))
964
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !rr.test(e))
963
965
  throw new Error("Malformed concise eng/scientific notation");
964
966
  t.minimumIntegerDigits = e.length;
965
967
  }
966
968
  return t;
967
969
  }
968
- function yn(e) {
969
- var t = {}, n = ar(e);
970
+ function bn(e) {
971
+ var t = {}, n = ir(e);
970
972
  return n || t;
971
973
  }
972
- function Ri(e) {
974
+ function Oi(e) {
973
975
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
974
976
  var i = r[n];
975
977
  switch (i.stem) {
@@ -993,7 +995,7 @@ function Ri(e) {
993
995
  continue;
994
996
  case "measure-unit":
995
997
  case "unit":
996
- t.style = "unit", t.unit = Hi(i.options[0]);
998
+ t.style = "unit", t.unit = Ai(i.options[0]);
997
999
  continue;
998
1000
  case "compact-short":
999
1001
  case "K":
@@ -1004,13 +1006,13 @@ function Ri(e) {
1004
1006
  t.notation = "compact", t.compactDisplay = "long";
1005
1007
  continue;
1006
1008
  case "scientific":
1007
- t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
1008
- return P(P({}, c), yn(l));
1009
+ t = L(L(L({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1010
+ return L(L({}, l), bn(u));
1009
1011
  }, {}));
1010
1012
  continue;
1011
1013
  case "engineering":
1012
- t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
1013
- return P(P({}, c), yn(l));
1014
+ t = L(L(L({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1015
+ return L(L({}, l), bn(u));
1014
1016
  }, {}));
1015
1017
  continue;
1016
1018
  case "notation-simple":
@@ -1055,41 +1057,41 @@ function Ri(e) {
1055
1057
  case "integer-width":
1056
1058
  if (i.options.length > 1)
1057
1059
  throw new RangeError("integer-width stems only accept a single optional option");
1058
- i.options[0].replace(Oi, function(c, l, f, m, p, S) {
1059
- if (l)
1060
+ i.options[0].replace(Ci, function(l, u, f, b, m, w) {
1061
+ if (u)
1060
1062
  t.minimumIntegerDigits = f.length;
1061
1063
  else {
1062
- if (m && p)
1064
+ if (b && m)
1063
1065
  throw new Error("We currently do not support maximum integer digits");
1064
- if (S)
1066
+ if (w)
1065
1067
  throw new Error("We currently do not support exact integer digits");
1066
1068
  }
1067
1069
  return "";
1068
1070
  });
1069
1071
  continue;
1070
1072
  }
1071
- if (or.test(i.stem)) {
1073
+ if (rr.test(i.stem)) {
1072
1074
  t.minimumIntegerDigits = i.stem.length;
1073
1075
  continue;
1074
1076
  }
1075
- if (bn.test(i.stem)) {
1077
+ if (pn.test(i.stem)) {
1076
1078
  if (i.options.length > 1)
1077
1079
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1078
- i.stem.replace(bn, function(c, l, f, m, p, S) {
1079
- return f === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : p && S ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + S.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1080
+ i.stem.replace(pn, function(l, u, f, b, m, w) {
1081
+ return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : m && w ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + w.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1080
1082
  });
1081
1083
  var o = i.options[0];
1082
- o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), gn(o)));
1084
+ o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t), mn(o)));
1083
1085
  continue;
1084
1086
  }
1085
- if (ir.test(i.stem)) {
1086
- t = P(P({}, t), gn(i.stem));
1087
+ if (nr.test(i.stem)) {
1088
+ t = L(L({}, t), mn(i.stem));
1087
1089
  continue;
1088
1090
  }
1089
- var s = ar(i.stem);
1090
- s && (t = P(P({}, t), s));
1091
- var a = Mi(i.stem);
1092
- a && (t = P(P({}, t), a));
1091
+ var s = ir(i.stem);
1092
+ s && (t = L(L({}, t), s));
1093
+ var a = Hi(i.stem);
1094
+ a && (t = L(L({}, t), a));
1093
1095
  }
1094
1096
  return t;
1095
1097
  }
@@ -2508,23 +2510,23 @@ var dt = {
2508
2510
  "h"
2509
2511
  ]
2510
2512
  };
2511
- function Li(e, t) {
2513
+ function Mi(e, t) {
2512
2514
  for (var n = "", r = 0; r < e.length; r++) {
2513
2515
  var i = e.charAt(r);
2514
2516
  if (i === "j") {
2515
2517
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2516
2518
  o++, r++;
2517
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = Pi(t);
2518
- for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2519
- n += c;
2519
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ri(t);
2520
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2521
+ n += l;
2520
2522
  for (; s-- > 0; )
2521
- n = l + n;
2523
+ n = u + n;
2522
2524
  } else
2523
2525
  i === "J" ? n += "H" : n += i;
2524
2526
  }
2525
2527
  return n;
2526
2528
  }
2527
- function Pi(e) {
2529
+ function Ri(e) {
2528
2530
  var t = e.hourCycle;
2529
2531
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2530
2532
  e.hourCycles && // @ts-ignore
@@ -2546,20 +2548,20 @@ function Pi(e) {
2546
2548
  var i = dt[r || ""] || dt[n || ""] || dt["".concat(n, "-001")] || dt["001"];
2547
2549
  return i[0];
2548
2550
  }
2549
- var Nt, Ii = new RegExp("^".concat(rr.source, "*")), Ni = new RegExp("".concat(rr.source, "*$"));
2550
- function M(e, t) {
2551
+ var It, Li = new RegExp("^".concat(tr.source, "*")), Pi = new RegExp("".concat(tr.source, "*$"));
2552
+ function O(e, t) {
2551
2553
  return { start: e, end: t };
2552
2554
  }
2553
- var Di = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ui = !!String.fromCodePoint, Fi = !!Object.fromEntries, Gi = !!String.prototype.codePointAt, ji = !!String.prototype.trimStart, ki = !!String.prototype.trimEnd, $i = !!Number.isSafeInteger, Vi = $i ? Number.isSafeInteger : function(e) {
2555
+ var Ni = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ii = !!String.fromCodePoint, Di = !!Object.fromEntries, Ui = !!String.prototype.codePointAt, Fi = !!String.prototype.trimStart, Gi = !!String.prototype.trimEnd, ji = !!Number.isSafeInteger, ki = ji ? Number.isSafeInteger : function(e) {
2554
2556
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2555
- }, Zt = !0;
2557
+ }, Wt = !0;
2556
2558
  try {
2557
- var Xi = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2558
- Zt = ((Nt = Xi.exec("a")) === null || Nt === void 0 ? void 0 : Nt[0]) === "a";
2559
+ var $i = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2560
+ Wt = ((It = $i.exec("a")) === null || It === void 0 ? void 0 : It[0]) === "a";
2559
2561
  } catch {
2560
- Zt = !1;
2562
+ Wt = !1;
2561
2563
  }
2562
- var vn = Di ? (
2564
+ var gn = Ni ? (
2563
2565
  // Native
2564
2566
  function(t, n, r) {
2565
2567
  return t.startsWith(n, r);
@@ -2569,7 +2571,7 @@ var vn = Di ? (
2569
2571
  function(t, n, r) {
2570
2572
  return t.slice(r, r + n.length) === n;
2571
2573
  }
2572
- ), qt = Ui ? String.fromCodePoint : (
2574
+ ), Zt = Ii ? String.fromCodePoint : (
2573
2575
  // IE11
2574
2576
  function() {
2575
2577
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2581,9 +2583,9 @@ var vn = Di ? (
2581
2583
  }
2582
2584
  return r;
2583
2585
  }
2584
- ), _n = (
2586
+ ), yn = (
2585
2587
  // native
2586
- Fi ? Object.fromEntries : (
2588
+ Di ? Object.fromEntries : (
2587
2589
  // Ponyfill
2588
2590
  function(t) {
2589
2591
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2593,7 +2595,7 @@ var vn = Di ? (
2593
2595
  return n;
2594
2596
  }
2595
2597
  )
2596
- ), sr = Gi ? (
2598
+ ), or = Ui ? (
2597
2599
  // Native
2598
2600
  function(t, n) {
2599
2601
  return t.codePointAt(n);
@@ -2607,7 +2609,7 @@ var vn = Di ? (
2607
2609
  return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2608
2610
  }
2609
2611
  }
2610
- ), zi = ji ? (
2612
+ ), Vi = Fi ? (
2611
2613
  // Native
2612
2614
  function(t) {
2613
2615
  return t.trimStart();
@@ -2615,9 +2617,9 @@ var vn = Di ? (
2615
2617
  ) : (
2616
2618
  // Ponyfill
2617
2619
  function(t) {
2618
- return t.replace(Ii, "");
2620
+ return t.replace(Li, "");
2619
2621
  }
2620
- ), Wi = ki ? (
2622
+ ), Xi = Gi ? (
2621
2623
  // Native
2622
2624
  function(t) {
2623
2625
  return t.trimEnd();
@@ -2625,32 +2627,32 @@ var vn = Di ? (
2625
2627
  ) : (
2626
2628
  // Ponyfill
2627
2629
  function(t) {
2628
- return t.replace(Ni, "");
2630
+ return t.replace(Pi, "");
2629
2631
  }
2630
2632
  );
2631
- function lr(e, t) {
2633
+ function ar(e, t) {
2632
2634
  return new RegExp(e, t);
2633
2635
  }
2634
- var Yt;
2635
- if (Zt) {
2636
- var En = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2637
- Yt = function(t, n) {
2636
+ var qt;
2637
+ if (Wt) {
2638
+ var vn = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2639
+ qt = function(t, n) {
2638
2640
  var r;
2639
- En.lastIndex = n;
2640
- var i = En.exec(t);
2641
+ vn.lastIndex = n;
2642
+ var i = vn.exec(t);
2641
2643
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2642
2644
  };
2643
2645
  } else
2644
- Yt = function(t, n) {
2646
+ qt = function(t, n) {
2645
2647
  for (var r = []; ; ) {
2646
- var i = sr(t, n);
2647
- if (i === void 0 || ur(i) || Qi(i))
2648
+ var i = or(t, n);
2649
+ if (i === void 0 || sr(i) || qi(i))
2648
2650
  break;
2649
2651
  r.push(i), n += i >= 65536 ? 2 : 1;
2650
2652
  }
2651
- return qt.apply(void 0, r);
2653
+ return Zt.apply(void 0, r);
2652
2654
  };
2653
- var Zi = (
2655
+ var zi = (
2654
2656
  /** @class */
2655
2657
  function() {
2656
2658
  function e(t, n) {
@@ -2675,13 +2677,13 @@ var Zi = (
2675
2677
  var a = this.clonePosition();
2676
2678
  this.bump(), i.push({
2677
2679
  type: G.pound,
2678
- location: M(a, this.clonePosition())
2680
+ location: O(a, this.clonePosition())
2679
2681
  });
2680
2682
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2681
2683
  if (r)
2682
2684
  break;
2683
- return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
2684
- } else if (o === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
2685
+ return this.error(H.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
2686
+ } else if (o === 60 && !this.ignoreTag && Yt(this.peek() || 0)) {
2685
2687
  var s = this.parseTag(t, n);
2686
2688
  if (s.err)
2687
2689
  return s;
@@ -2704,7 +2706,7 @@ var Zi = (
2704
2706
  val: {
2705
2707
  type: G.literal,
2706
2708
  value: "<".concat(i, "/>"),
2707
- location: M(r, this.clonePosition())
2709
+ location: O(r, this.clonePosition())
2708
2710
  },
2709
2711
  err: null
2710
2712
  };
@@ -2714,25 +2716,25 @@ var Zi = (
2714
2716
  return o;
2715
2717
  var s = o.val, a = this.clonePosition();
2716
2718
  if (this.bumpIf("</")) {
2717
- if (this.isEOF() || !Qt(this.char()))
2718
- return this.error(O.INVALID_TAG, M(a, this.clonePosition()));
2719
- var c = this.clonePosition(), l = this.parseTagName();
2720
- return i !== l ? this.error(O.UNMATCHED_CLOSING_TAG, M(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2719
+ if (this.isEOF() || !Yt(this.char()))
2720
+ return this.error(H.INVALID_TAG, O(a, this.clonePosition()));
2721
+ var l = this.clonePosition(), u = this.parseTagName();
2722
+ return i !== u ? this.error(H.UNMATCHED_CLOSING_TAG, O(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2721
2723
  val: {
2722
2724
  type: G.tag,
2723
2725
  value: i,
2724
2726
  children: s,
2725
- location: M(r, this.clonePosition())
2727
+ location: O(r, this.clonePosition())
2726
2728
  },
2727
2729
  err: null
2728
- } : this.error(O.INVALID_TAG, M(a, this.clonePosition())));
2730
+ } : this.error(H.INVALID_TAG, O(a, this.clonePosition())));
2729
2731
  } else
2730
- return this.error(O.UNCLOSED_TAG, M(r, this.clonePosition()));
2732
+ return this.error(H.UNCLOSED_TAG, O(r, this.clonePosition()));
2731
2733
  } else
2732
- return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
2734
+ return this.error(H.INVALID_TAG, O(r, this.clonePosition()));
2733
2735
  }, e.prototype.parseTagName = function() {
2734
2736
  var t = this.offset();
2735
- for (this.bump(); !this.isEOF() && Yi(this.char()); )
2737
+ for (this.bump(); !this.isEOF() && Zi(this.char()); )
2736
2738
  this.bump();
2737
2739
  return this.message.slice(t, this.offset());
2738
2740
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2754,14 +2756,14 @@ var Zi = (
2754
2756
  }
2755
2757
  break;
2756
2758
  }
2757
- var c = M(r, this.clonePosition());
2759
+ var l = O(r, this.clonePosition());
2758
2760
  return {
2759
- val: { type: G.literal, value: i, location: c },
2761
+ val: { type: G.literal, value: i, location: l },
2760
2762
  err: null
2761
2763
  };
2762
2764
  }, e.prototype.tryParseLeftAngleBracket = function() {
2763
2765
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2764
- !qi(this.peek() || 0)) ? (this.bump(), "<") : null;
2766
+ !Wi(this.peek() || 0)) ? (this.bump(), "<") : null;
2765
2767
  }, e.prototype.tryParseQuote = function(t) {
2766
2768
  if (this.isEOF() || this.char() !== 39)
2767
2769
  return null;
@@ -2795,23 +2797,23 @@ var Zi = (
2795
2797
  n.push(r);
2796
2798
  this.bump();
2797
2799
  }
2798
- return qt.apply(void 0, n);
2800
+ return Zt.apply(void 0, n);
2799
2801
  }, e.prototype.tryParseUnquoted = function(t, n) {
2800
2802
  if (this.isEOF())
2801
2803
  return null;
2802
2804
  var r = this.char();
2803
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), qt(r));
2805
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Zt(r));
2804
2806
  }, e.prototype.parseArgument = function(t, n) {
2805
2807
  var r = this.clonePosition();
2806
2808
  if (this.bump(), this.bumpSpace(), this.isEOF())
2807
- return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2809
+ return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
2808
2810
  if (this.char() === 125)
2809
- return this.bump(), this.error(O.EMPTY_ARGUMENT, M(r, this.clonePosition()));
2811
+ return this.bump(), this.error(H.EMPTY_ARGUMENT, O(r, this.clonePosition()));
2810
2812
  var i = this.parseIdentifierIfPossible().value;
2811
2813
  if (!i)
2812
- return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2814
+ return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
2813
2815
  if (this.bumpSpace(), this.isEOF())
2814
- return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2816
+ return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
2815
2817
  switch (this.char()) {
2816
2818
  case 125:
2817
2819
  return this.bump(), {
@@ -2819,66 +2821,66 @@ var Zi = (
2819
2821
  type: G.argument,
2820
2822
  // value does not include the opening and closing braces.
2821
2823
  value: i,
2822
- location: M(r, this.clonePosition())
2824
+ location: O(r, this.clonePosition())
2823
2825
  },
2824
2826
  err: null
2825
2827
  };
2826
2828
  case 44:
2827
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2829
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2828
2830
  default:
2829
- return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2831
+ return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
2830
2832
  }
2831
2833
  }, e.prototype.parseIdentifierIfPossible = function() {
2832
- var t = this.clonePosition(), n = this.offset(), r = Yt(this.message, n), i = n + r.length;
2834
+ var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
2833
2835
  this.bumpTo(i);
2834
- var o = this.clonePosition(), s = M(t, o);
2836
+ var o = this.clonePosition(), s = O(t, o);
2835
2837
  return { value: r, location: s };
2836
2838
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2837
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2839
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2838
2840
  switch (a) {
2839
2841
  case "":
2840
- return this.error(O.EXPECT_ARGUMENT_TYPE, M(s, c));
2842
+ return this.error(H.EXPECT_ARGUMENT_TYPE, O(s, l));
2841
2843
  case "number":
2842
2844
  case "date":
2843
2845
  case "time": {
2844
2846
  this.bumpSpace();
2845
- var l = null;
2847
+ var u = null;
2846
2848
  if (this.bumpIf(",")) {
2847
2849
  this.bumpSpace();
2848
- var f = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2849
- if (m.err)
2850
- return m;
2851
- var p = Wi(m.val);
2852
- if (p.length === 0)
2853
- return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
2854
- var S = M(f, this.clonePosition());
2855
- l = { style: p, styleLocation: S };
2850
+ var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
2851
+ if (b.err)
2852
+ return b;
2853
+ var m = Xi(b.val);
2854
+ if (m.length === 0)
2855
+ return this.error(H.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
2856
+ var w = O(f, this.clonePosition());
2857
+ u = { style: m, styleLocation: w };
2856
2858
  }
2857
- var E = this.tryParseArgumentClose(i);
2858
- if (E.err)
2859
- return E;
2860
- var T = M(i, this.clonePosition());
2861
- if (l && vn(l?.style, "::", 0)) {
2862
- var N = zi(l.style.slice(2));
2859
+ var _ = this.tryParseArgumentClose(i);
2860
+ if (_.err)
2861
+ return _;
2862
+ var A = O(i, this.clonePosition());
2863
+ if (u && gn(u?.style, "::", 0)) {
2864
+ var I = Vi(u.style.slice(2));
2863
2865
  if (a === "number") {
2864
- var m = this.parseNumberSkeletonFromString(N, l.styleLocation);
2865
- return m.err ? m : {
2866
- val: { type: G.number, value: r, location: T, style: m.val },
2866
+ var b = this.parseNumberSkeletonFromString(I, u.styleLocation);
2867
+ return b.err ? b : {
2868
+ val: { type: G.number, value: r, location: A, style: b.val },
2867
2869
  err: null
2868
2870
  };
2869
2871
  } else {
2870
- if (N.length === 0)
2871
- return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
2872
- var W = N;
2873
- this.locale && (W = Li(N, this.locale));
2874
- var p = {
2875
- type: ke.dateTime,
2872
+ if (I.length === 0)
2873
+ return this.error(H.EXPECT_DATE_TIME_SKELETON, A);
2874
+ var W = I;
2875
+ this.locale && (W = Mi(I, this.locale));
2876
+ var m = {
2877
+ type: $e.dateTime,
2876
2878
  pattern: W,
2877
- location: l.styleLocation,
2878
- parsedOptions: this.shouldParseSkeletons ? Bi(W) : {}
2879
+ location: u.styleLocation,
2880
+ parsedOptions: this.shouldParseSkeletons ? Si(W) : {}
2879
2881
  }, V = a === "date" ? G.date : G.time;
2880
2882
  return {
2881
- val: { type: V, value: r, location: T, style: p },
2883
+ val: { type: V, value: r, location: A, style: m },
2882
2884
  err: null
2883
2885
  };
2884
2886
  }
@@ -2887,8 +2889,8 @@ var Zi = (
2887
2889
  val: {
2888
2890
  type: a === "number" ? G.number : a === "date" ? G.date : G.time,
2889
2891
  value: r,
2890
- location: T,
2891
- style: (o = l?.style) !== null && o !== void 0 ? o : null
2892
+ location: A,
2893
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
2892
2894
  },
2893
2895
  err: null
2894
2896
  };
@@ -2896,52 +2898,52 @@ var Zi = (
2896
2898
  case "plural":
2897
2899
  case "selectordinal":
2898
2900
  case "select": {
2899
- var L = this.clonePosition();
2901
+ var R = this.clonePosition();
2900
2902
  if (this.bumpSpace(), !this.bumpIf(","))
2901
- return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(L, P({}, L)));
2903
+ return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(R, L({}, R)));
2902
2904
  this.bumpSpace();
2903
- var U = this.parseIdentifierIfPossible(), Q = 0;
2904
- if (a !== "select" && U.value === "offset") {
2905
+ var D = this.parseIdentifierIfPossible(), k = 0;
2906
+ if (a !== "select" && D.value === "offset") {
2905
2907
  if (!this.bumpIf(":"))
2906
- return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
2908
+ return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
2907
2909
  this.bumpSpace();
2908
- var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2909
- if (m.err)
2910
- return m;
2911
- this.bumpSpace(), U = this.parseIdentifierIfPossible(), Q = m.val;
2910
+ var b = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2911
+ if (b.err)
2912
+ return b;
2913
+ this.bumpSpace(), D = this.parseIdentifierIfPossible(), k = b.val;
2912
2914
  }
2913
- var Z = this.tryParsePluralOrSelectOptions(t, a, n, U);
2914
- if (Z.err)
2915
- return Z;
2916
- var E = this.tryParseArgumentClose(i);
2917
- if (E.err)
2918
- return E;
2919
- var ee = M(i, this.clonePosition());
2915
+ var oe = this.tryParsePluralOrSelectOptions(t, a, n, D);
2916
+ if (oe.err)
2917
+ return oe;
2918
+ var _ = this.tryParseArgumentClose(i);
2919
+ if (_.err)
2920
+ return _;
2921
+ var Z = O(i, this.clonePosition());
2920
2922
  return a === "select" ? {
2921
2923
  val: {
2922
2924
  type: G.select,
2923
2925
  value: r,
2924
- options: _n(Z.val),
2925
- location: ee
2926
+ options: yn(oe.val),
2927
+ location: Z
2926
2928
  },
2927
2929
  err: null
2928
2930
  } : {
2929
2931
  val: {
2930
2932
  type: G.plural,
2931
2933
  value: r,
2932
- options: _n(Z.val),
2933
- offset: Q,
2934
+ options: yn(oe.val),
2935
+ offset: k,
2934
2936
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2935
- location: ee
2937
+ location: Z
2936
2938
  },
2937
2939
  err: null
2938
2940
  };
2939
2941
  }
2940
2942
  default:
2941
- return this.error(O.INVALID_ARGUMENT_TYPE, M(s, c));
2943
+ return this.error(H.INVALID_ARGUMENT_TYPE, O(s, l));
2942
2944
  }
2943
2945
  }, e.prototype.tryParseArgumentClose = function(t) {
2944
- return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2946
+ return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2945
2947
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2946
2948
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2947
2949
  var r = this.char();
@@ -2950,7 +2952,7 @@ var Zi = (
2950
2952
  this.bump();
2951
2953
  var i = this.clonePosition();
2952
2954
  if (!this.bumpUntil("'"))
2953
- return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(i, this.clonePosition()));
2955
+ return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, O(i, this.clonePosition()));
2954
2956
  this.bump();
2955
2957
  break;
2956
2958
  }
@@ -2980,52 +2982,52 @@ var Zi = (
2980
2982
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2981
2983
  var r = [];
2982
2984
  try {
2983
- r = Ci(t);
2985
+ r = Bi(t);
2984
2986
  } catch {
2985
- return this.error(O.INVALID_NUMBER_SKELETON, n);
2987
+ return this.error(H.INVALID_NUMBER_SKELETON, n);
2986
2988
  }
2987
2989
  return {
2988
2990
  val: {
2989
- type: ke.number,
2991
+ type: $e.number,
2990
2992
  tokens: r,
2991
2993
  location: n,
2992
- parsedOptions: this.shouldParseSkeletons ? Ri(r) : {}
2994
+ parsedOptions: this.shouldParseSkeletons ? Oi(r) : {}
2993
2995
  },
2994
2996
  err: null
2995
2997
  };
2996
2998
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2997
- for (var o, s = !1, a = [], c = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
2998
- if (l.length === 0) {
2999
- var m = this.clonePosition();
2999
+ for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
3000
+ if (u.length === 0) {
3001
+ var b = this.clonePosition();
3000
3002
  if (n !== "select" && this.bumpIf("=")) {
3001
- var p = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
3002
- if (p.err)
3003
- return p;
3004
- f = M(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
3003
+ var m = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
3004
+ if (m.err)
3005
+ return m;
3006
+ f = O(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
3005
3007
  } else
3006
3008
  break;
3007
3009
  }
3008
- if (c.has(l))
3009
- return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3010
- l === "other" && (s = !0), this.bumpSpace();
3011
- var S = this.clonePosition();
3010
+ if (l.has(u))
3011
+ return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3012
+ u === "other" && (s = !0), this.bumpSpace();
3013
+ var w = this.clonePosition();
3012
3014
  if (!this.bumpIf("{"))
3013
- return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
3014
- var E = this.parseMessage(t + 1, n, r);
3015
- if (E.err)
3016
- return E;
3017
- var T = this.tryParseArgumentClose(S);
3018
- if (T.err)
3019
- return T;
3015
+ return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
3016
+ var _ = this.parseMessage(t + 1, n, r);
3017
+ if (_.err)
3018
+ return _;
3019
+ var A = this.tryParseArgumentClose(w);
3020
+ if (A.err)
3021
+ return A;
3020
3022
  a.push([
3021
- l,
3023
+ u,
3022
3024
  {
3023
- value: E.val,
3024
- location: M(S, this.clonePosition())
3025
+ value: _.val,
3026
+ location: O(w, this.clonePosition())
3025
3027
  }
3026
- ]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
3028
+ ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
3027
3029
  }
3028
- return a.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, M(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(O.MISSING_OTHER_CLAUSE, M(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3030
+ return a.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(H.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3029
3031
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3030
3032
  var r = 1, i = this.clonePosition();
3031
3033
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3036,8 +3038,8 @@ var Zi = (
3036
3038
  else
3037
3039
  break;
3038
3040
  }
3039
- var c = M(i, this.clonePosition());
3040
- return o ? (s *= r, Vi(s) ? { val: s, err: null } : this.error(n, c)) : this.error(t, c);
3041
+ var l = O(i, this.clonePosition());
3042
+ return o ? (s *= r, ki(s) ? { val: s, err: null } : this.error(n, l)) : this.error(t, l);
3041
3043
  }, e.prototype.offset = function() {
3042
3044
  return this.position.offset;
3043
3045
  }, e.prototype.isEOF = function() {
@@ -3052,7 +3054,7 @@ var Zi = (
3052
3054
  var t = this.position.offset;
3053
3055
  if (t >= this.message.length)
3054
3056
  throw Error("out of bound");
3055
- var n = sr(this.message, t);
3057
+ var n = or(this.message, t);
3056
3058
  if (n === void 0)
3057
3059
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3058
3060
  return n;
@@ -3071,7 +3073,7 @@ var Zi = (
3071
3073
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3072
3074
  }
3073
3075
  }, e.prototype.bumpIf = function(t) {
3074
- if (vn(this.message, t, this.offset())) {
3076
+ if (gn(this.message, t, this.offset())) {
3075
3077
  for (var n = 0; n < t.length; n++)
3076
3078
  this.bump();
3077
3079
  return !0;
@@ -3093,7 +3095,7 @@ var Zi = (
3093
3095
  break;
3094
3096
  }
3095
3097
  }, e.prototype.bumpSpace = function() {
3096
- for (; !this.isEOF() && ur(this.char()); )
3098
+ for (; !this.isEOF() && sr(this.char()); )
3097
3099
  this.bump();
3098
3100
  }, e.prototype.peek = function() {
3099
3101
  if (this.isEOF())
@@ -3103,47 +3105,47 @@ var Zi = (
3103
3105
  }, e;
3104
3106
  }()
3105
3107
  );
3106
- function Qt(e) {
3108
+ function Yt(e) {
3107
3109
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3108
3110
  }
3109
- function qi(e) {
3110
- return Qt(e) || e === 47;
3111
+ function Wi(e) {
3112
+ return Yt(e) || e === 47;
3111
3113
  }
3112
- function Yi(e) {
3114
+ function Zi(e) {
3113
3115
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3114
3116
  }
3115
- function ur(e) {
3117
+ function sr(e) {
3116
3118
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3117
3119
  }
3118
- function Qi(e) {
3120
+ function qi(e) {
3119
3121
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3120
3122
  }
3121
- function Jt(e) {
3123
+ function Qt(e) {
3122
3124
  e.forEach(function(t) {
3123
- if (delete t.location, Kn(t) || er(t))
3125
+ if (delete t.location, Qn(t) || Jn(t))
3124
3126
  for (var n in t.options)
3125
- delete t.options[n].location, Jt(t.options[n].value);
3127
+ delete t.options[n].location, Qt(t.options[n].value);
3126
3128
  else
3127
- Yn(t) && nr(t.style) || (Qn(t) || Jn(t)) && Wt(t.style) ? delete t.style.location : tr(t) && Jt(t.children);
3129
+ Zn(t) && er(t.style) || (qn(t) || Yn(t)) && zt(t.style) ? delete t.style.location : Kn(t) && Qt(t.children);
3128
3130
  });
3129
3131
  }
3130
- function Ji(e, t) {
3131
- t === void 0 && (t = {}), t = P({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3132
- var n = new Zi(e, t).parse();
3132
+ function Yi(e, t) {
3133
+ t === void 0 && (t = {}), t = L({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3134
+ var n = new zi(e, t).parse();
3133
3135
  if (n.err) {
3134
- var r = SyntaxError(O[n.err.kind]);
3136
+ var r = SyntaxError(H[n.err.kind]);
3135
3137
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3136
3138
  }
3137
- return t?.captureLocation || Jt(n.val), n.val;
3139
+ return t?.captureLocation || Qt(n.val), n.val;
3138
3140
  }
3139
- var $e;
3141
+ var Ve;
3140
3142
  (function(e) {
3141
3143
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3142
- })($e || ($e = {}));
3144
+ })(Ve || (Ve = {}));
3143
3145
  var St = (
3144
3146
  /** @class */
3145
3147
  function(e) {
3146
- Be(t, e);
3148
+ Te(t, e);
3147
3149
  function t(n, r, i) {
3148
3150
  var o = e.call(this, n) || this;
3149
3151
  return o.code = r, o.originalMessage = i, o;
@@ -3152,153 +3154,153 @@ var St = (
3152
3154
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3153
3155
  }, t;
3154
3156
  }(Error)
3155
- ), xn = (
3157
+ ), _n = (
3156
3158
  /** @class */
3157
3159
  function(e) {
3158
- Be(t, e);
3160
+ Te(t, e);
3159
3161
  function t(n, r, i, o) {
3160
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
3162
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ve.INVALID_VALUE, o) || this;
3161
3163
  }
3162
3164
  return t;
3163
3165
  }(St)
3164
- ), Ki = (
3166
+ ), Qi = (
3165
3167
  /** @class */
3166
3168
  function(e) {
3167
- Be(t, e);
3169
+ Te(t, e);
3168
3170
  function t(n, r, i) {
3169
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
3171
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ve.INVALID_VALUE, i) || this;
3170
3172
  }
3171
3173
  return t;
3172
3174
  }(St)
3173
- ), eo = (
3175
+ ), Ji = (
3174
3176
  /** @class */
3175
3177
  function(e) {
3176
- Be(t, e);
3178
+ Te(t, e);
3177
3179
  function t(n, r) {
3178
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
3180
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ve.MISSING_VALUE, r) || this;
3179
3181
  }
3180
3182
  return t;
3181
3183
  }(St)
3182
- ), oe;
3184
+ ), ie;
3183
3185
  (function(e) {
3184
3186
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3185
- })(oe || (oe = {}));
3186
- function to(e) {
3187
+ })(ie || (ie = {}));
3188
+ function Ki(e) {
3187
3189
  return e.length < 2 ? e : e.reduce(function(t, n) {
3188
3190
  var r = t[t.length - 1];
3189
- return !r || r.type !== oe.literal || n.type !== oe.literal ? t.push(n) : r.value += n.value, t;
3191
+ return !r || r.type !== ie.literal || n.type !== ie.literal ? t.push(n) : r.value += n.value, t;
3190
3192
  }, []);
3191
3193
  }
3192
- function no(e) {
3194
+ function eo(e) {
3193
3195
  return typeof e == "function";
3194
3196
  }
3195
3197
  function bt(e, t, n, r, i, o, s) {
3196
- if (e.length === 1 && mn(e[0]))
3198
+ if (e.length === 1 && dn(e[0]))
3197
3199
  return [
3198
3200
  {
3199
- type: oe.literal,
3201
+ type: ie.literal,
3200
3202
  value: e[0].value
3201
3203
  }
3202
3204
  ];
3203
- for (var a = [], c = 0, l = e; c < l.length; c++) {
3204
- var f = l[c];
3205
- if (mn(f)) {
3205
+ for (var a = [], l = 0, u = e; l < u.length; l++) {
3206
+ var f = u[l];
3207
+ if (dn(f)) {
3206
3208
  a.push({
3207
- type: oe.literal,
3209
+ type: ie.literal,
3208
3210
  value: f.value
3209
3211
  });
3210
3212
  continue;
3211
3213
  }
3212
- if (Si(f)) {
3214
+ if (xi(f)) {
3213
3215
  typeof o == "number" && a.push({
3214
- type: oe.literal,
3216
+ type: ie.literal,
3215
3217
  value: n.getNumberFormat(t).format(o)
3216
3218
  });
3217
3219
  continue;
3218
3220
  }
3219
- var m = f.value;
3220
- if (!(i && m in i))
3221
- throw new eo(m, s);
3222
- var p = i[m];
3223
- if (wi(f)) {
3224
- (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
3225
- type: typeof p == "string" ? oe.literal : oe.object,
3226
- value: p
3221
+ var b = f.value;
3222
+ if (!(i && b in i))
3223
+ throw new Ji(b, s);
3224
+ var m = i[b];
3225
+ if (Ei(f)) {
3226
+ (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
3227
+ type: typeof m == "string" ? ie.literal : ie.object,
3228
+ value: m
3227
3229
  });
3228
3230
  continue;
3229
3231
  }
3230
- if (Qn(f)) {
3231
- var S = typeof f.style == "string" ? r.date[f.style] : Wt(f.style) ? f.style.parsedOptions : void 0;
3232
+ if (qn(f)) {
3233
+ var w = typeof f.style == "string" ? r.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
3232
3234
  a.push({
3233
- type: oe.literal,
3234
- value: n.getDateTimeFormat(t, S).format(p)
3235
+ type: ie.literal,
3236
+ value: n.getDateTimeFormat(t, w).format(m)
3235
3237
  });
3236
3238
  continue;
3237
3239
  }
3238
- if (Jn(f)) {
3239
- var S = typeof f.style == "string" ? r.time[f.style] : Wt(f.style) ? f.style.parsedOptions : r.time.medium;
3240
+ if (Yn(f)) {
3241
+ var w = typeof f.style == "string" ? r.time[f.style] : zt(f.style) ? f.style.parsedOptions : r.time.medium;
3240
3242
  a.push({
3241
- type: oe.literal,
3242
- value: n.getDateTimeFormat(t, S).format(p)
3243
+ type: ie.literal,
3244
+ value: n.getDateTimeFormat(t, w).format(m)
3243
3245
  });
3244
3246
  continue;
3245
3247
  }
3246
- if (Yn(f)) {
3247
- var S = typeof f.style == "string" ? r.number[f.style] : nr(f.style) ? f.style.parsedOptions : void 0;
3248
- S && S.scale && (p = p * (S.scale || 1)), a.push({
3249
- type: oe.literal,
3250
- value: n.getNumberFormat(t, S).format(p)
3248
+ if (Zn(f)) {
3249
+ var w = typeof f.style == "string" ? r.number[f.style] : er(f.style) ? f.style.parsedOptions : void 0;
3250
+ w && w.scale && (m = m * (w.scale || 1)), a.push({
3251
+ type: ie.literal,
3252
+ value: n.getNumberFormat(t, w).format(m)
3251
3253
  });
3252
3254
  continue;
3253
3255
  }
3254
- if (tr(f)) {
3255
- var E = f.children, T = f.value, N = i[T];
3256
- if (!no(N))
3257
- throw new Ki(T, "function", s);
3258
- var W = bt(E, t, n, r, i, o), V = N(W.map(function(Q) {
3259
- return Q.value;
3256
+ if (Kn(f)) {
3257
+ var _ = f.children, A = f.value, I = i[A];
3258
+ if (!eo(I))
3259
+ throw new Qi(A, "function", s);
3260
+ var W = bt(_, t, n, r, i, o), V = I(W.map(function(k) {
3261
+ return k.value;
3260
3262
  }));
3261
- Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(Q) {
3263
+ Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(k) {
3262
3264
  return {
3263
- type: typeof Q == "string" ? oe.literal : oe.object,
3264
- value: Q
3265
+ type: typeof k == "string" ? ie.literal : ie.object,
3266
+ value: k
3265
3267
  };
3266
3268
  }));
3267
3269
  }
3268
- if (Kn(f)) {
3269
- var L = f.options[p] || f.options.other;
3270
- if (!L)
3271
- throw new xn(f.value, p, Object.keys(f.options), s);
3272
- a.push.apply(a, bt(L.value, t, n, r, i));
3270
+ if (Qn(f)) {
3271
+ var R = f.options[m] || f.options.other;
3272
+ if (!R)
3273
+ throw new _n(f.value, m, Object.keys(f.options), s);
3274
+ a.push.apply(a, bt(R.value, t, n, r, i));
3273
3275
  continue;
3274
3276
  }
3275
- if (er(f)) {
3276
- var L = f.options["=".concat(p)];
3277
- if (!L) {
3277
+ if (Jn(f)) {
3278
+ var R = f.options["=".concat(m)];
3279
+ if (!R) {
3278
3280
  if (!Intl.PluralRules)
3279
3281
  throw new St(`Intl.PluralRules is not available in this environment.
3280
3282
  Try polyfilling it using "@formatjs/intl-pluralrules"
3281
- `, $e.MISSING_INTL_API, s);
3282
- var U = n.getPluralRules(t, { type: f.pluralType }).select(p - (f.offset || 0));
3283
- L = f.options[U] || f.options.other;
3283
+ `, Ve.MISSING_INTL_API, s);
3284
+ var D = n.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
3285
+ R = f.options[D] || f.options.other;
3284
3286
  }
3285
- if (!L)
3286
- throw new xn(f.value, p, Object.keys(f.options), s);
3287
- a.push.apply(a, bt(L.value, t, n, r, i, p - (f.offset || 0)));
3287
+ if (!R)
3288
+ throw new _n(f.value, m, Object.keys(f.options), s);
3289
+ a.push.apply(a, bt(R.value, t, n, r, i, m - (f.offset || 0)));
3288
3290
  continue;
3289
3291
  }
3290
3292
  }
3291
- return to(a);
3293
+ return Ki(a);
3292
3294
  }
3293
- function ro(e, t) {
3294
- return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3295
- return n[r] = P(P({}, e[r]), t[r] || {}), n;
3295
+ function to(e, t) {
3296
+ return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3297
+ return n[r] = L(L({}, e[r]), t[r] || {}), n;
3296
3298
  }, {})) : e;
3297
3299
  }
3298
- function io(e, t) {
3300
+ function no(e, t) {
3299
3301
  return t ? Object.keys(e).reduce(function(n, r) {
3300
- return n[r] = ro(e[r], t[r]), n;
3301
- }, P({}, e)) : e;
3302
+ return n[r] = to(e[r], t[r]), n;
3303
+ }, L({}, e)) : e;
3302
3304
  }
3303
3305
  function Dt(e) {
3304
3306
  return {
@@ -3314,7 +3316,7 @@ function Dt(e) {
3314
3316
  }
3315
3317
  };
3316
3318
  }
3317
- function oo(e) {
3319
+ function ro(e) {
3318
3320
  return e === void 0 && (e = {
3319
3321
  number: {},
3320
3322
  dateTime: {},
@@ -3323,30 +3325,30 @@ function oo(e) {
3323
3325
  getNumberFormat: Pt(function() {
3324
3326
  for (var t, n = [], r = 0; r < arguments.length; r++)
3325
3327
  n[r] = arguments[r];
3326
- return new ((t = Intl.NumberFormat).bind.apply(t, Ge([void 0], n, !1)))();
3328
+ return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], n, !1)))();
3327
3329
  }, {
3328
3330
  cache: Dt(e.number),
3329
- strategy: It.variadic
3331
+ strategy: Nt.variadic
3330
3332
  }),
3331
3333
  getDateTimeFormat: Pt(function() {
3332
3334
  for (var t, n = [], r = 0; r < arguments.length; r++)
3333
3335
  n[r] = arguments[r];
3334
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ge([void 0], n, !1)))();
3336
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], n, !1)))();
3335
3337
  }, {
3336
3338
  cache: Dt(e.dateTime),
3337
- strategy: It.variadic
3339
+ strategy: Nt.variadic
3338
3340
  }),
3339
3341
  getPluralRules: Pt(function() {
3340
3342
  for (var t, n = [], r = 0; r < arguments.length; r++)
3341
3343
  n[r] = arguments[r];
3342
- return new ((t = Intl.PluralRules).bind.apply(t, Ge([void 0], n, !1)))();
3344
+ return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], n, !1)))();
3343
3345
  }, {
3344
3346
  cache: Dt(e.pluralRules),
3345
- strategy: It.variadic
3347
+ strategy: Nt.variadic
3346
3348
  })
3347
3349
  };
3348
3350
  }
3349
- var ao = (
3351
+ var io = (
3350
3352
  /** @class */
3351
3353
  function() {
3352
3354
  function e(t, n, r, i) {
@@ -3356,20 +3358,20 @@ var ao = (
3356
3358
  number: {},
3357
3359
  dateTime: {},
3358
3360
  pluralRules: {}
3359
- }, this.format = function(c) {
3360
- var l = o.formatToParts(c);
3361
- if (l.length === 1)
3362
- return l[0].value;
3363
- var f = l.reduce(function(m, p) {
3364
- return !m.length || p.type !== oe.literal || typeof m[m.length - 1] != "string" ? m.push(p.value) : m[m.length - 1] += p.value, m;
3361
+ }, this.format = function(l) {
3362
+ var u = o.formatToParts(l);
3363
+ if (u.length === 1)
3364
+ return u[0].value;
3365
+ var f = u.reduce(function(b, m) {
3366
+ return !b.length || m.type !== ie.literal || typeof b[b.length - 1] != "string" ? b.push(m.value) : b[b.length - 1] += m.value, b;
3365
3367
  }, []);
3366
3368
  return f.length <= 1 ? f[0] || "" : f;
3367
- }, this.formatToParts = function(c) {
3368
- return bt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3369
+ }, this.formatToParts = function(l) {
3370
+ return bt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3369
3371
  }, this.resolvedOptions = function() {
3370
- var c;
3372
+ var l;
3371
3373
  return {
3372
- locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3374
+ locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3373
3375
  };
3374
3376
  }, this.getAst = function() {
3375
3377
  return o.ast;
@@ -3378,13 +3380,13 @@ var ao = (
3378
3380
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3379
3381
  var s = i || {};
3380
3382
  s.formatters;
3381
- var a = bi(s, ["formatters"]);
3382
- this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
3383
+ var a = di(s, ["formatters"]);
3384
+ this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
3383
3385
  } else
3384
3386
  this.ast = t;
3385
3387
  if (!Array.isArray(this.ast))
3386
3388
  throw new TypeError("A message must be provided as a String or AST.");
3387
- this.formats = io(e.formats, r), this.formatters = i && i.formatters || oo(this.formatterCache);
3389
+ this.formats = no(e.formats, r), this.formatters = i && i.formatters || ro(this.formatterCache);
3388
3390
  }
3389
3391
  return Object.defineProperty(e, "defaultLocale", {
3390
3392
  get: function() {
@@ -3397,7 +3399,7 @@ var ao = (
3397
3399
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3398
3400
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3399
3401
  }
3400
- }, e.__parse = Ji, e.formats = {
3402
+ }, e.__parse = Yi, e.formats = {
3401
3403
  number: {
3402
3404
  integer: {
3403
3405
  maximumFractionDigits: 0
@@ -3458,7 +3460,7 @@ var ao = (
3458
3460
  }, e;
3459
3461
  }()
3460
3462
  );
3461
- function so(e, t) {
3463
+ function oo(e, t) {
3462
3464
  if (t == null)
3463
3465
  return;
3464
3466
  if (t in e)
@@ -3479,92 +3481,92 @@ function so(e, t) {
3479
3481
  r = void 0;
3480
3482
  return r;
3481
3483
  }
3482
- const He = {}, lo = (e, t, n) => n && (t in He || (He[t] = {}), e in He[t] || (He[t][e] = n), n), cr = (e, t) => {
3484
+ const Ce = {}, ao = (e, t, n) => n && (t in Ce || (Ce[t] = {}), e in Ce[t] || (Ce[t][e] = n), n), ur = (e, t) => {
3483
3485
  if (t == null)
3484
3486
  return;
3485
- if (t in He && e in He[t])
3486
- return He[t][e];
3487
+ if (t in Ce && e in Ce[t])
3488
+ return Ce[t][e];
3487
3489
  const n = Tt(t);
3488
3490
  for (let r = 0; r < n.length; r++) {
3489
- const i = n[r], o = co(i, e);
3491
+ const i = n[r], o = uo(i, e);
3490
3492
  if (o)
3491
- return lo(e, t, o);
3493
+ return ao(e, t, o);
3492
3494
  }
3493
3495
  };
3494
- let ln;
3496
+ let an;
3495
3497
  const at = wt({});
3496
- function uo(e) {
3497
- return ln[e] || null;
3498
+ function so(e) {
3499
+ return an[e] || null;
3498
3500
  }
3499
- function hr(e) {
3500
- return e in ln;
3501
+ function lr(e) {
3502
+ return e in an;
3501
3503
  }
3502
- function co(e, t) {
3503
- if (!hr(e))
3504
+ function uo(e, t) {
3505
+ if (!lr(e))
3504
3506
  return null;
3505
- const n = uo(e);
3506
- return so(n, t);
3507
+ const n = so(e);
3508
+ return oo(n, t);
3507
3509
  }
3508
- function ho(e) {
3510
+ function lo(e) {
3509
3511
  if (e == null)
3510
3512
  return;
3511
3513
  const t = Tt(e);
3512
3514
  for (let n = 0; n < t.length; n++) {
3513
3515
  const r = t[n];
3514
- if (hr(r))
3516
+ if (lr(r))
3515
3517
  return r;
3516
3518
  }
3517
3519
  }
3518
- function fr(e, ...t) {
3519
- delete He[e], at.update((n) => (n[e] = mi.all([n[e] || {}, ...t]), n));
3520
+ function cr(e, ...t) {
3521
+ delete Ce[e], at.update((n) => (n[e] = fi.all([n[e] || {}, ...t]), n));
3520
3522
  }
3521
- ze(
3523
+ We(
3522
3524
  [at],
3523
3525
  ([e]) => Object.keys(e)
3524
3526
  );
3525
- at.subscribe((e) => ln = e);
3527
+ at.subscribe((e) => an = e);
3526
3528
  const gt = {};
3527
- function fo(e, t) {
3529
+ function co(e, t) {
3528
3530
  gt[e].delete(t), gt[e].size === 0 && delete gt[e];
3529
3531
  }
3530
- function dr(e) {
3532
+ function hr(e) {
3531
3533
  return gt[e];
3532
3534
  }
3533
- function po(e) {
3535
+ function ho(e) {
3534
3536
  return Tt(e).map((t) => {
3535
- const n = dr(t);
3537
+ const n = hr(t);
3536
3538
  return [t, n ? [...n] : []];
3537
3539
  }).filter(([, t]) => t.length > 0);
3538
3540
  }
3539
- function Kt(e) {
3541
+ function Jt(e) {
3540
3542
  return e == null ? !1 : Tt(e).some(
3541
3543
  (t) => {
3542
3544
  var n;
3543
- return (n = dr(t)) == null ? void 0 : n.size;
3545
+ return (n = hr(t)) == null ? void 0 : n.size;
3544
3546
  }
3545
3547
  );
3546
3548
  }
3547
- function mo(e, t) {
3549
+ function fo(e, t) {
3548
3550
  return Promise.all(
3549
- t.map((r) => (fo(e, r), r().then((i) => i.default || i)))
3550
- ).then((r) => fr(e, ...r));
3551
+ t.map((r) => (co(e, r), r().then((i) => i.default || i)))
3552
+ ).then((r) => cr(e, ...r));
3551
3553
  }
3552
3554
  const tt = {};
3553
- function pr(e) {
3554
- if (!Kt(e))
3555
+ function fr(e) {
3556
+ if (!Jt(e))
3555
3557
  return e in tt ? tt[e] : Promise.resolve();
3556
- const t = po(e);
3558
+ const t = ho(e);
3557
3559
  return tt[e] = Promise.all(
3558
3560
  t.map(
3559
- ([n, r]) => mo(n, r)
3561
+ ([n, r]) => fo(n, r)
3560
3562
  )
3561
3563
  ).then(() => {
3562
- if (Kt(e))
3563
- return pr(e);
3564
+ if (Jt(e))
3565
+ return fr(e);
3564
3566
  delete tt[e];
3565
3567
  }), tt[e];
3566
3568
  }
3567
- const bo = {
3569
+ const po = {
3568
3570
  number: {
3569
3571
  scientific: { notation: "scientific" },
3570
3572
  engineering: { notation: "engineering" },
@@ -3593,57 +3595,57 @@ const bo = {
3593
3595
  timeZoneName: "short"
3594
3596
  }
3595
3597
  }
3596
- }, go = {
3598
+ }, mo = {
3597
3599
  fallbackLocale: null,
3598
3600
  loadingDelay: 200,
3599
- formats: bo,
3601
+ formats: po,
3600
3602
  warnOnMissingMessages: !0,
3601
3603
  handleMissingMessage: void 0,
3602
3604
  ignoreTag: !0
3603
- }, yo = go;
3604
- function Ve() {
3605
- return yo;
3605
+ }, bo = mo;
3606
+ function Xe() {
3607
+ return bo;
3606
3608
  }
3607
3609
  const Ut = wt(!1);
3608
- var vo = Object.defineProperty, _o = Object.defineProperties, Eo = Object.getOwnPropertyDescriptors, wn = Object.getOwnPropertySymbols, xo = Object.prototype.hasOwnProperty, wo = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? vo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, So = (e, t) => {
3609
- for (var n in t || (t = {}))
3610
- xo.call(t, n) && Sn(e, n, t[n]);
3611
- if (wn)
3612
- for (var n of wn(t))
3613
- wo.call(t, n) && Sn(e, n, t[n]);
3610
+ var go = Object.defineProperty, yo = Object.defineProperties, vo = Object.getOwnPropertyDescriptors, En = Object.getOwnPropertySymbols, _o = Object.prototype.hasOwnProperty, Eo = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, xo = (e, t) => {
3611
+ for (var n in t)
3612
+ _o.call(t, n) && xn(e, n, t[n]);
3613
+ if (En)
3614
+ for (var n of En(t))
3615
+ Eo.call(t, n) && xn(e, n, t[n]);
3614
3616
  return e;
3615
- }, To = (e, t) => _o(e, Eo(t));
3616
- let en;
3617
+ }, wo = (e, t) => yo(e, vo(t));
3618
+ let Kt;
3617
3619
  const Et = wt(null);
3618
- function Tn(e) {
3620
+ function wn(e) {
3619
3621
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3620
3622
  }
3621
- function Tt(e, t = Ve().fallbackLocale) {
3622
- const n = Tn(e);
3623
- return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
3623
+ function Tt(e, t = Xe().fallbackLocale) {
3624
+ const n = wn(e);
3625
+ return t ? [.../* @__PURE__ */ new Set([...n, ...wn(t)])] : n;
3624
3626
  }
3625
3627
  function Re() {
3626
- return en ?? void 0;
3628
+ return Kt ?? void 0;
3627
3629
  }
3628
3630
  Et.subscribe((e) => {
3629
- en = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3631
+ Kt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3630
3632
  });
3631
- const Bo = (e) => {
3632
- if (e && ho(e) && Kt(e)) {
3633
- const { loadingDelay: t } = Ve();
3633
+ const So = (e) => {
3634
+ if (e && lo(e) && Jt(e)) {
3635
+ const { loadingDelay: t } = Xe();
3634
3636
  let n;
3635
3637
  return typeof window < "u" && Re() != null && t ? n = window.setTimeout(
3636
3638
  () => Ut.set(!0),
3637
3639
  t
3638
- ) : Ut.set(!0), pr(e).then(() => {
3640
+ ) : Ut.set(!0), fr(e).then(() => {
3639
3641
  Et.set(e);
3640
3642
  }).finally(() => {
3641
3643
  clearTimeout(n), Ut.set(!1);
3642
3644
  });
3643
3645
  }
3644
3646
  return Et.set(e);
3645
- }, We = To(So({}, Et), {
3646
- set: Bo
3647
+ }, Ze = wo(xo({}, Et), {
3648
+ set: So
3647
3649
  }), Bt = (e) => {
3648
3650
  const t = /* @__PURE__ */ Object.create(null);
3649
3651
  return (r) => {
@@ -3651,120 +3653,120 @@ const Bo = (e) => {
3651
3653
  return i in t ? t[i] : t[i] = e(r);
3652
3654
  };
3653
3655
  };
3654
- var Ao = Object.defineProperty, xt = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? Ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, un = (e, t) => {
3656
+ var To = Object.defineProperty, xt = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? To(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, sn = (e, t) => {
3655
3657
  for (var n in t || (t = {}))
3656
- mr.call(t, n) && Bn(e, n, t[n]);
3658
+ dr.call(t, n) && Sn(e, n, t[n]);
3657
3659
  if (xt)
3658
3660
  for (var n of xt(t))
3659
- br.call(t, n) && Bn(e, n, t[n]);
3661
+ pr.call(t, n) && Sn(e, n, t[n]);
3660
3662
  return e;
3661
- }, Ze = (e, t) => {
3663
+ }, qe = (e, t) => {
3662
3664
  var n = {};
3663
3665
  for (var r in e)
3664
- mr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3666
+ dr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3665
3667
  if (e != null && xt)
3666
3668
  for (var r of xt(e))
3667
- t.indexOf(r) < 0 && br.call(e, r) && (n[r] = e[r]);
3669
+ t.indexOf(r) < 0 && pr.call(e, r) && (n[r] = e[r]);
3668
3670
  return n;
3669
3671
  };
3670
3672
  const ot = (e, t) => {
3671
- const { formats: n } = Ve();
3673
+ const { formats: n } = Xe();
3672
3674
  if (e in n && t in n[e])
3673
3675
  return n[e][t];
3674
3676
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3675
- }, Co = Bt(
3677
+ }, Bo = Bt(
3676
3678
  (e) => {
3677
- var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3679
+ var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
3678
3680
  if (n == null)
3679
3681
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3680
3682
  return r && (i = ot("number", r)), new Intl.NumberFormat(n, i);
3681
3683
  }
3682
- ), Ho = Bt(
3684
+ ), Ao = Bt(
3683
3685
  (e) => {
3684
- var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3686
+ var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
3685
3687
  if (n == null)
3686
3688
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3687
3689
  return r ? i = ot("date", r) : Object.keys(i).length === 0 && (i = ot("date", "short")), new Intl.DateTimeFormat(n, i);
3688
3690
  }
3689
- ), Oo = Bt(
3691
+ ), Co = Bt(
3690
3692
  (e) => {
3691
- var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3693
+ var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
3692
3694
  if (n == null)
3693
3695
  throw new Error(
3694
3696
  '[svelte-i18n] A "locale" must be set to format time values'
3695
3697
  );
3696
3698
  return r ? i = ot("time", r) : Object.keys(i).length === 0 && (i = ot("time", "short")), new Intl.DateTimeFormat(n, i);
3697
3699
  }
3698
- ), Mo = (e = {}) => {
3700
+ ), Ho = (e = {}) => {
3699
3701
  var t = e, {
3700
3702
  locale: n = Re()
3701
- } = t, r = Ze(t, [
3703
+ } = t, r = qe(t, [
3702
3704
  "locale"
3703
3705
  ]);
3704
- return Co(un({ locale: n }, r));
3705
- }, Ro = (e = {}) => {
3706
+ return Bo(sn({ locale: n }, r));
3707
+ }, Oo = (e = {}) => {
3706
3708
  var t = e, {
3707
3709
  locale: n = Re()
3708
- } = t, r = Ze(t, [
3710
+ } = t, r = qe(t, [
3709
3711
  "locale"
3710
3712
  ]);
3711
- return Ho(un({ locale: n }, r));
3712
- }, Lo = (e = {}) => {
3713
+ return Ao(sn({ locale: n }, r));
3714
+ }, Mo = (e = {}) => {
3713
3715
  var t = e, {
3714
3716
  locale: n = Re()
3715
- } = t, r = Ze(t, [
3717
+ } = t, r = qe(t, [
3716
3718
  "locale"
3717
3719
  ]);
3718
- return Oo(un({ locale: n }, r));
3719
- }, Po = Bt(
3720
+ return Co(sn({ locale: n }, r));
3721
+ }, Ro = Bt(
3720
3722
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3721
- (e, t = Re()) => new ao(e, t, Ve().formats, {
3722
- ignoreTag: Ve().ignoreTag
3723
+ (e, t = Re()) => new io(e, t, Xe().formats, {
3724
+ ignoreTag: Xe().ignoreTag
3723
3725
  })
3724
- ), Io = (e, t = {}) => {
3726
+ ), Lo = (e, t = {}) => {
3725
3727
  var n, r, i, o;
3726
3728
  let s = t;
3727
3729
  typeof e == "object" && (s = e, e = s.id);
3728
3730
  const {
3729
3731
  values: a,
3730
- locale: c = Re(),
3731
- default: l
3732
+ locale: l = Re(),
3733
+ default: u
3732
3734
  } = s;
3733
- if (c == null)
3735
+ if (l == null)
3734
3736
  throw new Error(
3735
3737
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3736
3738
  );
3737
- let f = cr(e, c);
3739
+ let f = ur(e, l);
3738
3740
  if (!f)
3739
- f = (o = (i = (r = (n = Ve()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3741
+ f = (o = (i = (r = (n = Xe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3740
3742
  else if (typeof f != "string")
3741
3743
  return console.warn(
3742
3744
  `[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.`
3743
3745
  ), f;
3744
3746
  if (!a)
3745
3747
  return f;
3746
- let m = f;
3748
+ let b = f;
3747
3749
  try {
3748
- m = Po(f, c).format(a);
3749
- } catch (p) {
3750
- p instanceof Error && console.warn(
3750
+ b = Ro(f, l).format(a);
3751
+ } catch (m) {
3752
+ m instanceof Error && console.warn(
3751
3753
  `[svelte-i18n] Message "${e}" has syntax error:`,
3752
- p.message
3754
+ m.message
3753
3755
  );
3754
3756
  }
3755
- return m;
3756
- }, No = (e, t) => Lo(t).format(e), Do = (e, t) => Ro(t).format(e), Uo = (e, t) => Mo(t).format(e), Fo = (e, t = Re()) => cr(e, t), Go = ze([We, at], () => Io);
3757
- ze([We], () => No);
3758
- ze([We], () => Do);
3759
- ze([We], () => Uo);
3760
- ze([We, at], () => Fo);
3761
- function An(e, t) {
3762
- fr(e, t);
3763
- }
3764
- function jo(e) {
3765
- We.set(e);
3766
- }
3767
- const Cn = {
3757
+ return b;
3758
+ }, Po = (e, t) => Mo(t).format(e), No = (e, t) => Oo(t).format(e), Io = (e, t) => Ho(t).format(e), Do = (e, t = Re()) => ur(e, t), Uo = We([Ze, at], () => Lo);
3759
+ We([Ze], () => Po);
3760
+ We([Ze], () => No);
3761
+ We([Ze], () => Io);
3762
+ We([Ze, at], () => Do);
3763
+ function Tn(e, t) {
3764
+ cr(e, t);
3765
+ }
3766
+ function Fo(e) {
3767
+ Ze.set(e);
3768
+ }
3769
+ const Bn = {
3768
3770
  en: {
3769
3771
  Title: "Your Balance",
3770
3772
  Total: "Total Balance",
@@ -3964,7 +3966,7 @@ const Cn = {
3964
3966
  Loading: "Loading ..."
3965
3967
  }
3966
3968
  };
3967
- var tn = { exports: {} };
3969
+ var en = { exports: {} };
3968
3970
  /** @license
3969
3971
  * eventsource.js
3970
3972
  * Available under MIT License (MIT)
@@ -3972,35 +3974,35 @@ var tn = { exports: {} };
3972
3974
  */
3973
3975
  (function(e, t) {
3974
3976
  (function(n) {
3975
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, s = n.XDomainRequest, a = n.ActiveXObject, c = n.EventSource, l = n.document, f = n.Promise, m = n.fetch, p = n.Response, S = n.TextDecoder, E = n.TextEncoder, T = n.AbortController;
3976
- if (typeof window < "u" && typeof l < "u" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(h) {
3977
- l.readyState = "complete";
3977
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, s = n.XDomainRequest, a = n.ActiveXObject, l = n.EventSource, u = n.document, f = n.Promise, b = n.fetch, m = n.Response, w = n.TextDecoder, _ = n.TextEncoder, A = n.AbortController;
3978
+ if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
3979
+ u.readyState = "complete";
3978
3980
  }, !1)), o == null && a != null && (o = function() {
3979
3981
  return new a("Microsoft.XMLHTTP");
3980
3982
  }), Object.create == null && (Object.create = function(h) {
3981
- function v() {
3983
+ function y() {
3982
3984
  }
3983
- return v.prototype = h, new v();
3985
+ return y.prototype = h, new y();
3984
3986
  }), Date.now || (Date.now = function() {
3985
3987
  return (/* @__PURE__ */ new Date()).getTime();
3986
- }), T == null) {
3987
- var N = m;
3988
- m = function(h, v) {
3989
- var w = v.signal;
3990
- return N(h, { headers: v.headers, credentials: v.credentials, cache: v.cache }).then(function(b) {
3991
- var A = b.body.getReader();
3992
- return w._reader = A, w._aborted && w._reader.cancel(), {
3993
- status: b.status,
3994
- statusText: b.statusText,
3995
- headers: b.headers,
3988
+ }), A == null) {
3989
+ var I = b;
3990
+ b = function(h, y) {
3991
+ var E = y.signal;
3992
+ return I(h, { headers: y.headers, credentials: y.credentials, cache: y.cache }).then(function(g) {
3993
+ var c = g.body.getReader();
3994
+ return E._reader = c, E._aborted && E._reader.cancel(), {
3995
+ status: g.status,
3996
+ statusText: g.statusText,
3997
+ headers: g.headers,
3996
3998
  body: {
3997
3999
  getReader: function() {
3998
- return A;
4000
+ return c;
3999
4001
  }
4000
4002
  }
4001
4003
  };
4002
4004
  });
4003
- }, T = function() {
4005
+ }, A = function() {
4004
4006
  this.signal = {
4005
4007
  _reader: null,
4006
4008
  _aborted: !1
@@ -4013,413 +4015,413 @@ var tn = { exports: {} };
4013
4015
  this.bitsNeeded = 0, this.codePoint = 0;
4014
4016
  }
4015
4017
  W.prototype.decode = function(h) {
4016
- function v(B, C, y) {
4017
- if (y === 1)
4018
- return B >= 128 >> C && B << C <= 2047;
4019
- if (y === 2)
4020
- return B >= 2048 >> C && B << C <= 55295 || B >= 57344 >> C && B << C <= 65535;
4021
- if (y === 3)
4022
- return B >= 65536 >> C && B << C <= 1114111;
4018
+ function y(C, S, B) {
4019
+ if (B === 1)
4020
+ return C >= 128 >> S && C << S <= 2047;
4021
+ if (B === 2)
4022
+ return C >= 2048 >> S && C << S <= 55295 || C >= 57344 >> S && C << S <= 65535;
4023
+ if (B === 3)
4024
+ return C >= 65536 >> S && C << S <= 1114111;
4023
4025
  throw new Error();
4024
4026
  }
4025
- function w(B, C) {
4026
- if (B === 6 * 1)
4027
- return C >> 6 > 15 ? 3 : C > 31 ? 2 : 1;
4028
- if (B === 6 * 2)
4029
- return C > 15 ? 3 : 2;
4030
- if (B === 6 * 3)
4027
+ function E(C, S) {
4028
+ if (C === 6 * 1)
4029
+ return S >> 6 > 15 ? 3 : S > 31 ? 2 : 1;
4030
+ if (C === 6 * 2)
4031
+ return S > 15 ? 3 : 2;
4032
+ if (C === 6 * 3)
4031
4033
  return 3;
4032
4034
  throw new Error();
4033
4035
  }
4034
- for (var b = 65533, A = "", u = this.bitsNeeded, d = this.codePoint, _ = 0; _ < h.length; _ += 1) {
4035
- var g = h[_];
4036
- u !== 0 && (g < 128 || g > 191 || !v(d << 6 | g & 63, u - 6, w(u, d))) && (u = 0, d = b, A += String.fromCharCode(d)), u === 0 ? (g >= 0 && g <= 127 ? (u = 0, d = g) : g >= 192 && g <= 223 ? (u = 6 * 1, d = g & 31) : g >= 224 && g <= 239 ? (u = 6 * 2, d = g & 15) : g >= 240 && g <= 247 ? (u = 6 * 3, d = g & 7) : (u = 0, d = b), u !== 0 && !v(d, u, w(u, d)) && (u = 0, d = b)) : (u -= 6, d = d << 6 | g & 63), u === 0 && (d <= 65535 ? A += String.fromCharCode(d) : (A += String.fromCharCode(55296 + (d - 65535 - 1 >> 10)), A += String.fromCharCode(56320 + (d - 65535 - 1 & 1023))));
4036
+ for (var g = 65533, c = "", d = this.bitsNeeded, p = this.codePoint, v = 0; v < h.length; v += 1) {
4037
+ var T = h[v];
4038
+ d !== 0 && (T < 128 || T > 191 || !y(p << 6 | T & 63, d - 6, E(d, p))) && (d = 0, p = g, c += String.fromCharCode(p)), d === 0 ? (T >= 0 && T <= 127 ? (d = 0, p = T) : T >= 192 && T <= 223 ? (d = 6 * 1, p = T & 31) : T >= 224 && T <= 239 ? (d = 6 * 2, p = T & 15) : T >= 240 && T <= 247 ? (d = 6 * 3, p = T & 7) : (d = 0, p = g), d !== 0 && !y(p, d, E(d, p)) && (d = 0, p = g)) : (d -= 6, p = p << 6 | T & 63), d === 0 && (p <= 65535 ? c += String.fromCharCode(p) : (c += String.fromCharCode(55296 + (p - 65535 - 1 >> 10)), c += String.fromCharCode(56320 + (p - 65535 - 1 & 1023))));
4037
4039
  }
4038
- return this.bitsNeeded = u, this.codePoint = d, A;
4040
+ return this.bitsNeeded = d, this.codePoint = p, c;
4039
4041
  };
4040
4042
  var V = function() {
4041
4043
  try {
4042
- return new S().decode(new E().encode("test"), { stream: !0 }) === "test";
4044
+ return new w().decode(new _().encode("test"), { stream: !0 }) === "test";
4043
4045
  } catch (h) {
4044
4046
  console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
4045
4047
  }
4046
4048
  return !1;
4047
4049
  };
4048
- (S == null || E == null || !V()) && (S = W);
4049
- var L = function() {
4050
+ (w == null || _ == null || !V()) && (w = W);
4051
+ var R = function() {
4050
4052
  };
4051
- function U(h) {
4052
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = L, this.onload = L, this.onerror = L, this.onreadystatechange = L, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = L;
4053
+ function D(h) {
4054
+ 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;
4053
4055
  }
4054
- U.prototype.open = function(h, v) {
4056
+ D.prototype.open = function(h, y) {
4055
4057
  this._abort(!0);
4056
- var w = this, b = this._xhr, A = 1, u = 0;
4057
- this._abort = function(y) {
4058
- w._sendTimeout !== 0 && (i(w._sendTimeout), w._sendTimeout = 0), (A === 1 || A === 2 || A === 3) && (A = 4, b.onload = L, b.onerror = L, b.onabort = L, b.onprogress = L, b.onreadystatechange = L, b.abort(), u !== 0 && (i(u), u = 0), y || (w.readyState = 4, w.onabort(null), w.onreadystatechange())), A = 0;
4058
+ var E = this, g = this._xhr, c = 1, d = 0;
4059
+ this._abort = function(B) {
4060
+ E._sendTimeout !== 0 && (i(E._sendTimeout), E._sendTimeout = 0), (c === 1 || c === 2 || c === 3) && (c = 4, g.onload = R, g.onerror = R, g.onabort = R, g.onprogress = R, g.onreadystatechange = R, g.abort(), d !== 0 && (i(d), d = 0), B || (E.readyState = 4, E.onabort(null), E.onreadystatechange())), c = 0;
4059
4061
  };
4060
- var d = function() {
4061
- if (A === 1) {
4062
- var y = 0, H = "", J = void 0;
4063
- if ("contentType" in b)
4064
- y = 200, H = "OK", J = b.contentType;
4062
+ var p = function() {
4063
+ if (c === 1) {
4064
+ var B = 0, N = "", ee = void 0;
4065
+ if ("contentType" in g)
4066
+ B = 200, N = "OK", ee = g.contentType;
4065
4067
  else
4066
4068
  try {
4067
- y = b.status, H = b.statusText, J = b.getResponseHeader("Content-Type");
4069
+ B = g.status, N = g.statusText, ee = g.getResponseHeader("Content-Type");
4068
4070
  } catch {
4069
- y = 0, H = "", J = void 0;
4071
+ B = 0, N = "", ee = void 0;
4070
4072
  }
4071
- y !== 0 && (A = 2, w.readyState = 2, w.status = y, w.statusText = H, w._contentType = J, w.onreadystatechange());
4073
+ B !== 0 && (c = 2, E.readyState = 2, E.status = B, E.statusText = N, E._contentType = ee, E.onreadystatechange());
4072
4074
  }
4073
- }, _ = function() {
4074
- if (d(), A === 2 || A === 3) {
4075
- A = 3;
4076
- var y = "";
4075
+ }, v = function() {
4076
+ if (p(), c === 2 || c === 3) {
4077
+ c = 3;
4078
+ var B = "";
4077
4079
  try {
4078
- y = b.responseText;
4080
+ B = g.responseText;
4079
4081
  } catch {
4080
4082
  }
4081
- w.readyState = 3, w.responseText = y, w.onprogress();
4083
+ E.readyState = 3, E.responseText = B, E.onprogress();
4082
4084
  }
4083
- }, g = function(y, H) {
4084
- if ((H == null || H.preventDefault == null) && (H = {
4085
- preventDefault: L
4086
- }), _(), A === 1 || A === 2 || A === 3) {
4087
- if (A = 4, u !== 0 && (i(u), u = 0), w.readyState = 4, y === "load")
4088
- w.onload(H);
4089
- else if (y === "error")
4090
- w.onerror(H);
4091
- else if (y === "abort")
4092
- w.onabort(H);
4085
+ }, T = function(B, N) {
4086
+ if ((N == null || N.preventDefault == null) && (N = {
4087
+ preventDefault: R
4088
+ }), v(), c === 1 || c === 2 || c === 3) {
4089
+ if (c = 4, d !== 0 && (i(d), d = 0), E.readyState = 4, B === "load")
4090
+ E.onload(N);
4091
+ else if (B === "error")
4092
+ E.onerror(N);
4093
+ else if (B === "abort")
4094
+ E.onabort(N);
4093
4095
  else
4094
4096
  throw new TypeError();
4095
- w.onreadystatechange();
4097
+ E.onreadystatechange();
4096
4098
  }
4097
- }, B = function(y) {
4098
- b != null && (b.readyState === 4 ? (!("onload" in b) || !("onerror" in b) || !("onabort" in b)) && g(b.responseText === "" ? "error" : "load", y) : b.readyState === 3 ? "onprogress" in b || _() : b.readyState === 2 && d());
4099
- }, C = function() {
4100
- u = r(function() {
4101
- C();
4102
- }, 500), b.readyState === 3 && _();
4099
+ }, C = function(B) {
4100
+ g != null && (g.readyState === 4 ? (!("onload" in g) || !("onerror" in g) || !("onabort" in g)) && T(g.responseText === "" ? "error" : "load", B) : g.readyState === 3 ? "onprogress" in g || v() : g.readyState === 2 && p());
4101
+ }, S = function() {
4102
+ d = r(function() {
4103
+ S();
4104
+ }, 500), g.readyState === 3 && v();
4103
4105
  };
4104
- "onload" in b && (b.onload = function(y) {
4105
- g("load", y);
4106
- }), "onerror" in b && (b.onerror = function(y) {
4107
- g("error", y);
4108
- }), "onabort" in b && (b.onabort = function(y) {
4109
- g("abort", y);
4110
- }), "onprogress" in b && (b.onprogress = _), "onreadystatechange" in b && (b.onreadystatechange = function(y) {
4111
- B(y);
4112
- }), ("contentType" in b || !("ontimeout" in o.prototype)) && (v += (v.indexOf("?") === -1 ? "?" : "&") + "padding=true"), b.open(h, v, !0), "readyState" in b && (u = r(function() {
4113
- C();
4106
+ "onload" in g && (g.onload = function(B) {
4107
+ T("load", B);
4108
+ }), "onerror" in g && (g.onerror = function(B) {
4109
+ T("error", B);
4110
+ }), "onabort" in g && (g.onabort = function(B) {
4111
+ T("abort", B);
4112
+ }), "onprogress" in g && (g.onprogress = v), "onreadystatechange" in g && (g.onreadystatechange = function(B) {
4113
+ C(B);
4114
+ }), ("contentType" in g || !("ontimeout" in o.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(h, y, !0), "readyState" in g && (d = r(function() {
4115
+ S();
4114
4116
  }, 0));
4115
- }, U.prototype.abort = function() {
4117
+ }, D.prototype.abort = function() {
4116
4118
  this._abort(!1);
4117
- }, U.prototype.getResponseHeader = function(h) {
4119
+ }, D.prototype.getResponseHeader = function(h) {
4118
4120
  return this._contentType;
4119
- }, U.prototype.setRequestHeader = function(h, v) {
4120
- var w = this._xhr;
4121
- "setRequestHeader" in w && w.setRequestHeader(h, v);
4122
- }, U.prototype.getAllResponseHeaders = function() {
4121
+ }, D.prototype.setRequestHeader = function(h, y) {
4122
+ var E = this._xhr;
4123
+ "setRequestHeader" in E && E.setRequestHeader(h, y);
4124
+ }, D.prototype.getAllResponseHeaders = function() {
4123
4125
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4124
- }, U.prototype.send = function() {
4125
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
4126
+ }, D.prototype.send = function() {
4127
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4126
4128
  var h = this;
4127
4129
  h._sendTimeout = r(function() {
4128
4130
  h._sendTimeout = 0, h.send();
4129
4131
  }, 4);
4130
4132
  return;
4131
4133
  }
4132
- var v = this._xhr;
4133
- "withCredentials" in v && (v.withCredentials = this.withCredentials);
4134
+ var y = this._xhr;
4135
+ "withCredentials" in y && (y.withCredentials = this.withCredentials);
4134
4136
  try {
4135
- v.send(void 0);
4136
- } catch (w) {
4137
- throw w;
4137
+ y.send(void 0);
4138
+ } catch (E) {
4139
+ throw E;
4138
4140
  }
4139
4141
  };
4140
- function Q(h) {
4141
- return h.replace(/[A-Z]/g, function(v) {
4142
- return String.fromCharCode(v.charCodeAt(0) + 32);
4142
+ function k(h) {
4143
+ return h.replace(/[A-Z]/g, function(y) {
4144
+ return String.fromCharCode(y.charCodeAt(0) + 32);
4143
4145
  });
4144
4146
  }
4145
- function Z(h) {
4146
- for (var v = /* @__PURE__ */ Object.create(null), w = h.split(`\r
4147
- `), b = 0; b < w.length; b += 1) {
4148
- var A = w[b], u = A.split(": "), d = u.shift(), _ = u.join(": ");
4149
- v[Q(d)] = _;
4147
+ function oe(h) {
4148
+ for (var y = /* @__PURE__ */ Object.create(null), E = h.split(`\r
4149
+ `), g = 0; g < E.length; g += 1) {
4150
+ var c = E[g], d = c.split(": "), p = d.shift(), v = d.join(": ");
4151
+ y[k(p)] = v;
4150
4152
  }
4151
- this._map = v;
4153
+ this._map = y;
4152
4154
  }
4153
- Z.prototype.get = function(h) {
4154
- return this._map[Q(h)];
4155
+ oe.prototype.get = function(h) {
4156
+ return this._map[k(h)];
4155
4157
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4156
- function ee() {
4158
+ function Z() {
4157
4159
  }
4158
- ee.prototype.open = function(h, v, w, b, A, u, d) {
4159
- h.open("GET", A);
4160
- var _ = 0;
4160
+ Z.prototype.open = function(h, y, E, g, c, d, p) {
4161
+ h.open("GET", c);
4162
+ var v = 0;
4161
4163
  h.onprogress = function() {
4162
- var B = h.responseText, C = B.slice(_);
4163
- _ += C.length, w(C);
4164
- }, h.onerror = function(B) {
4165
- B.preventDefault(), b(new Error("NetworkError"));
4164
+ var C = h.responseText, S = C.slice(v);
4165
+ v += S.length, E(S);
4166
+ }, h.onerror = function(C) {
4167
+ C.preventDefault(), g(new Error("NetworkError"));
4166
4168
  }, h.onload = function() {
4167
- b(null);
4169
+ g(null);
4168
4170
  }, h.onabort = function() {
4169
- b(null);
4171
+ g(null);
4170
4172
  }, h.onreadystatechange = function() {
4171
4173
  if (h.readyState === o.HEADERS_RECEIVED) {
4172
- var B = h.status, C = h.statusText, y = h.getResponseHeader("Content-Type"), H = h.getAllResponseHeaders();
4173
- v(B, C, y, new Z(H));
4174
+ var C = h.status, S = h.statusText, B = h.getResponseHeader("Content-Type"), N = h.getAllResponseHeaders();
4175
+ y(C, S, B, new oe(N));
4174
4176
  }
4175
- }, h.withCredentials = u;
4176
- for (var g in d)
4177
- Object.prototype.hasOwnProperty.call(d, g) && h.setRequestHeader(g, d[g]);
4177
+ }, h.withCredentials = d;
4178
+ for (var T in p)
4179
+ Object.prototype.hasOwnProperty.call(p, T) && h.setRequestHeader(T, p[T]);
4178
4180
  return h.send(), h;
4179
4181
  };
4180
- function F(h) {
4182
+ function $(h) {
4181
4183
  this._headers = h;
4182
4184
  }
4183
- F.prototype.get = function(h) {
4185
+ $.prototype.get = function(h) {
4184
4186
  return this._headers.get(h);
4185
4187
  };
4186
- function D() {
4188
+ function U() {
4187
4189
  }
4188
- D.prototype.open = function(h, v, w, b, A, u, d) {
4189
- var _ = null, g = new T(), B = g.signal, C = new S();
4190
- return m(A, {
4191
- headers: d,
4192
- credentials: u ? "include" : "same-origin",
4193
- signal: B,
4190
+ U.prototype.open = function(h, y, E, g, c, d, p) {
4191
+ var v = null, T = new A(), C = T.signal, S = new w();
4192
+ return b(c, {
4193
+ headers: p,
4194
+ credentials: d ? "include" : "same-origin",
4195
+ signal: C,
4194
4196
  cache: "no-store"
4195
- }).then(function(y) {
4196
- return _ = y.body.getReader(), v(y.status, y.statusText, y.headers.get("Content-Type"), new F(y.headers)), new f(function(H, J) {
4197
- var de = function() {
4198
- _.read().then(function(ne) {
4199
- if (ne.done)
4200
- H(void 0);
4197
+ }).then(function(B) {
4198
+ return v = B.body.getReader(), y(B.status, B.statusText, B.headers.get("Content-Type"), new $(B.headers)), new f(function(N, ee) {
4199
+ var Ae = function() {
4200
+ v.read().then(function(X) {
4201
+ if (X.done)
4202
+ N(void 0);
4201
4203
  else {
4202
- var $ = C.decode(ne.value, { stream: !0 });
4203
- w($), de();
4204
+ var te = S.decode(X.value, { stream: !0 });
4205
+ E(te), Ae();
4204
4206
  }
4205
- }).catch(function(ne) {
4206
- J(ne);
4207
+ }).catch(function(X) {
4208
+ ee(X);
4207
4209
  });
4208
4210
  };
4209
- de();
4211
+ Ae();
4210
4212
  });
4211
- }).catch(function(y) {
4212
- if (y.name !== "AbortError")
4213
- return y;
4214
- }).then(function(y) {
4215
- b(y);
4213
+ }).catch(function(B) {
4214
+ if (B.name !== "AbortError")
4215
+ return B;
4216
+ }).then(function(B) {
4217
+ g(B);
4216
4218
  }), {
4217
4219
  abort: function() {
4218
- _?.cancel(), g.abort();
4220
+ v?.cancel(), T.abort();
4219
4221
  }
4220
4222
  };
4221
4223
  };
4222
- function X() {
4224
+ function q() {
4223
4225
  this._listeners = /* @__PURE__ */ Object.create(null);
4224
4226
  }
4225
- function k(h) {
4227
+ function F(h) {
4226
4228
  r(function() {
4227
4229
  throw h;
4228
4230
  }, 0);
4229
4231
  }
4230
- X.prototype.dispatchEvent = function(h) {
4232
+ q.prototype.dispatchEvent = function(h) {
4231
4233
  h.target = this;
4232
- var v = this._listeners[h.type];
4233
- if (v != null)
4234
- for (var w = v.length, b = 0; b < w; b += 1) {
4235
- var A = v[b];
4234
+ var y = this._listeners[h.type];
4235
+ if (y != null)
4236
+ for (var E = y.length, g = 0; g < E; g += 1) {
4237
+ var c = y[g];
4236
4238
  try {
4237
- typeof A.handleEvent == "function" ? A.handleEvent(h) : A.call(this, h);
4238
- } catch (u) {
4239
- k(u);
4239
+ typeof c.handleEvent == "function" ? c.handleEvent(h) : c.call(this, h);
4240
+ } catch (d) {
4241
+ F(d);
4240
4242
  }
4241
4243
  }
4242
- }, X.prototype.addEventListener = function(h, v) {
4244
+ }, q.prototype.addEventListener = function(h, y) {
4243
4245
  h = String(h);
4244
- var w = this._listeners, b = w[h];
4245
- b == null && (b = [], w[h] = b);
4246
- for (var A = !1, u = 0; u < b.length; u += 1)
4247
- b[u] === v && (A = !0);
4248
- A || b.push(v);
4249
- }, X.prototype.removeEventListener = function(h, v) {
4246
+ var E = this._listeners, g = E[h];
4247
+ g == null && (g = [], E[h] = g);
4248
+ for (var c = !1, d = 0; d < g.length; d += 1)
4249
+ g[d] === y && (c = !0);
4250
+ c || g.push(y);
4251
+ }, q.prototype.removeEventListener = function(h, y) {
4250
4252
  h = String(h);
4251
- var w = this._listeners, b = w[h];
4252
- if (b != null) {
4253
- for (var A = [], u = 0; u < b.length; u += 1)
4254
- b[u] !== v && A.push(b[u]);
4255
- A.length === 0 ? delete w[h] : w[h] = A;
4253
+ var E = this._listeners, g = E[h];
4254
+ if (g != null) {
4255
+ for (var c = [], d = 0; d < g.length; d += 1)
4256
+ g[d] !== y && c.push(g[d]);
4257
+ c.length === 0 ? delete E[h] : E[h] = c;
4256
4258
  }
4257
4259
  };
4258
- function te(h) {
4260
+ function K(h) {
4259
4261
  this.type = h, this.target = void 0;
4260
4262
  }
4261
- function ye(h, v) {
4262
- te.call(this, h), this.data = v.data, this.lastEventId = v.lastEventId;
4263
+ function he(h, y) {
4264
+ K.call(this, h), this.data = y.data, this.lastEventId = y.lastEventId;
4263
4265
  }
4264
- ye.prototype = Object.create(te.prototype);
4265
- function ce(h, v) {
4266
- te.call(this, h), this.status = v.status, this.statusText = v.statusText, this.headers = v.headers;
4266
+ he.prototype = Object.create(K.prototype);
4267
+ function ge(h, y) {
4268
+ K.call(this, h), this.status = y.status, this.statusText = y.statusText, this.headers = y.headers;
4267
4269
  }
4268
- ce.prototype = Object.create(te.prototype);
4269
- function Ae(h, v) {
4270
- te.call(this, h), this.error = v.error;
4270
+ ge.prototype = Object.create(K.prototype);
4271
+ function x(h, y) {
4272
+ K.call(this, h), this.error = y.error;
4271
4273
  }
4272
- Ae.prototype = Object.create(te.prototype);
4273
- var x = -1, ae = 0, Ce = 1, fe = 2, qe = -1, be = 0, Ye = 1, st = 2, Qe = 3, lt = /^text\/event\-stream(;.*)?$/i, Ct = 1e3, Je = 18e6, Le = function(h, v) {
4274
- var w = h == null ? v : parseInt(h, 10);
4275
- return w !== w && (w = v), Ke(w);
4276
- }, Ke = function(h) {
4277
- return Math.min(Math.max(h, Ct), Je);
4278
- }, ve = function(h, v, w) {
4274
+ x.prototype = Object.create(K.prototype);
4275
+ var ye = -1, pe = 0, le = 1, He = 2, Ye = -1, me = 0, Qe = 1, Le = 2, st = 3, Ct = /^text\/event\-stream(;.*)?$/i, Je = 1e3, ut = 18e6, Ke = function(h, y) {
4276
+ var E = h == null ? y : parseInt(h, 10);
4277
+ return E !== E && (E = y), Pe(E);
4278
+ }, Pe = function(h) {
4279
+ return Math.min(Math.max(h, Je), ut);
4280
+ }, Be = function(h, y, E) {
4279
4281
  try {
4280
- typeof v == "function" && v.call(h, w);
4281
- } catch (b) {
4282
- k(b);
4282
+ typeof y == "function" && y.call(h, E);
4283
+ } catch (g) {
4284
+ F(g);
4283
4285
  }
4284
4286
  };
4285
- function se(h, v) {
4286
- X.call(this), v = v || {}, 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, ut(this, h, v);
4287
+ function ae(h, y) {
4288
+ q.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, Ot(this, h, y);
4287
4289
  }
4288
4290
  function Ht() {
4289
4291
  return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
4290
4292
  }
4291
- var Ot = m != null && p != null && "body" in p.prototype;
4292
- function ut(h, v, w) {
4293
- v = String(v);
4294
- var b = !!w.withCredentials, A = w.lastEventIdQueryParameterName || "lastEventId", u = Ke(1e3), d = Le(w.heartbeatTimeout, 45e3), _ = "", g = u, B = !1, C = 0, y = w.headers || {}, H = w.Transport, J = Ot && H == null ? void 0 : new U(H != null ? new H() : Ht()), de = H != null && typeof H != "string" ? new H() : J == null ? new D() : new ee(), ne = void 0, $ = 0, pe = x, Pe = "", ht = "", _e = "", ft = "", re = be, Mt = 0, Oe = 0, Sr = function(q, z, le, ue) {
4295
- if (pe === ae)
4296
- if (q === 200 && le != null && lt.test(le)) {
4297
- pe = Ce, B = Date.now(), g = u, h.readyState = Ce;
4298
- var ie = new ce("open", {
4299
- status: q,
4293
+ var lt = b != null && m != null && "body" in m.prototype;
4294
+ function Ot(h, y, E) {
4295
+ y = String(y);
4296
+ var g = !!E.withCredentials, c = E.lastEventIdQueryParameterName || "lastEventId", d = Pe(1e3), p = Ke(E.heartbeatTimeout, 45e3), v = "", T = d, C = !1, S = 0, B = E.headers || {}, N = E.Transport, ee = lt && N == null ? void 0 : new D(N != null ? new N() : Ht()), Ae = N != null && typeof N != "string" ? new N() : ee == null ? new U() : new Z(), X = void 0, te = 0, fe = ye, Ne = "", ht = "", ve = "", ft = "", ne = me, Mt = 0, Oe = 0, Er = function(Y, z, se, ue) {
4297
+ if (fe === pe)
4298
+ if (Y === 200 && se != null && Ct.test(se)) {
4299
+ fe = le, C = Date.now(), T = d, h.readyState = le;
4300
+ var re = new ge("open", {
4301
+ status: Y,
4300
4302
  statusText: z,
4301
4303
  headers: ue
4302
4304
  });
4303
- h.dispatchEvent(ie), ve(h, h.onopen, ie);
4305
+ h.dispatchEvent(re), Be(h, h.onopen, re);
4304
4306
  } else {
4305
- var K = "";
4306
- q !== 200 ? (z && (z = z.replace(/\s+/g, " ")), K = "EventSource's response has a status " + q + " " + z + " that is not 200. Aborting the connection.") : K = "EventSource's response has a Content-Type specifying an unsupported type: " + (le == null ? "-" : le.replace(/\s+/g, " ")) + ". Aborting the connection.", Rt();
4307
- var ie = new ce("error", {
4308
- status: q,
4307
+ var J = "";
4308
+ Y !== 200 ? (z && (z = z.replace(/\s+/g, " ")), J = "EventSource's response has a status " + Y + " " + z + " that is not 200. Aborting the connection.") : J = "EventSource's response has a Content-Type specifying an unsupported type: " + (se == null ? "-" : se.replace(/\s+/g, " ")) + ". Aborting the connection.", Rt();
4309
+ var re = new ge("error", {
4310
+ status: Y,
4309
4311
  statusText: z,
4310
4312
  headers: ue
4311
4313
  });
4312
- h.dispatchEvent(ie), ve(h, h.onerror, ie), console.error(K);
4314
+ h.dispatchEvent(re), Be(h, h.onerror, re), console.error(J);
4313
4315
  }
4314
- }, Tr = function(q) {
4315
- if (pe === Ce) {
4316
- for (var z = -1, le = 0; le < q.length; le += 1) {
4317
- var ue = q.charCodeAt(le);
4318
- (ue === 10 || ue === 13) && (z = le);
4316
+ }, xr = function(Y) {
4317
+ if (fe === le) {
4318
+ for (var z = -1, se = 0; se < Y.length; se += 1) {
4319
+ var ue = Y.charCodeAt(se);
4320
+ (ue === 10 || ue === 13) && (z = se);
4319
4321
  }
4320
- var ie = (z !== -1 ? ft : "") + q.slice(0, z + 1);
4321
- ft = (z === -1 ? ft : "") + q.slice(z + 1), q !== "" && (B = Date.now(), C += q.length);
4322
- for (var K = 0; K < ie.length; K += 1) {
4323
- var ue = ie.charCodeAt(K);
4324
- if (re === qe && ue === 10)
4325
- re = be;
4326
- else if (re === qe && (re = be), ue === 13 || ue === 10) {
4327
- if (re !== be) {
4328
- re === Ye && (Oe = K + 1);
4329
- var Ee = ie.slice(Mt, Oe - 1), xe = ie.slice(Oe + (Oe < K && ie.charCodeAt(Oe) === 32 ? 1 : 0), K);
4330
- Ee === "data" ? (Pe += `
4331
- `, Pe += xe) : Ee === "id" ? ht = xe : Ee === "event" ? _e = xe : Ee === "retry" ? (u = Le(xe, u), g = u) : Ee === "heartbeatTimeout" && (d = Le(xe, d), $ !== 0 && (i($), $ = r(function() {
4322
+ var re = (z !== -1 ? ft : "") + Y.slice(0, z + 1);
4323
+ ft = (z === -1 ? ft : "") + Y.slice(z + 1), Y !== "" && (C = Date.now(), S += Y.length);
4324
+ for (var J = 0; J < re.length; J += 1) {
4325
+ var ue = re.charCodeAt(J);
4326
+ if (ne === Ye && ue === 10)
4327
+ ne = me;
4328
+ else if (ne === Ye && (ne = me), ue === 13 || ue === 10) {
4329
+ if (ne !== me) {
4330
+ ne === Qe && (Oe = J + 1);
4331
+ var _e = re.slice(Mt, Oe - 1), Ee = re.slice(Oe + (Oe < J && re.charCodeAt(Oe) === 32 ? 1 : 0), J);
4332
+ _e === "data" ? (Ne += `
4333
+ `, Ne += Ee) : _e === "id" ? ht = Ee : _e === "event" ? ve = Ee : _e === "retry" ? (d = Ke(Ee, d), T = d) : _e === "heartbeatTimeout" && (p = Ke(Ee, p), te !== 0 && (i(te), te = r(function() {
4332
4334
  et();
4333
- }, d)));
4335
+ }, p)));
4334
4336
  }
4335
- if (re === be) {
4336
- if (Pe !== "") {
4337
- _ = ht, _e === "" && (_e = "message");
4338
- var Ie = new ye(_e, {
4339
- data: Pe.slice(1),
4337
+ if (ne === me) {
4338
+ if (Ne !== "") {
4339
+ v = ht, ve === "" && (ve = "message");
4340
+ var Ie = new he(ve, {
4341
+ data: Ne.slice(1),
4340
4342
  lastEventId: ht
4341
4343
  });
4342
- if (h.dispatchEvent(Ie), _e === "open" ? ve(h, h.onopen, Ie) : _e === "message" ? ve(h, h.onmessage, Ie) : _e === "error" && ve(h, h.onerror, Ie), pe === fe)
4344
+ if (h.dispatchEvent(Ie), ve === "open" ? Be(h, h.onopen, Ie) : ve === "message" ? Be(h, h.onmessage, Ie) : ve === "error" && Be(h, h.onerror, Ie), fe === He)
4343
4345
  return;
4344
4346
  }
4345
- Pe = "", _e = "";
4347
+ Ne = "", ve = "";
4346
4348
  }
4347
- re = ue === 13 ? qe : be;
4349
+ ne = ue === 13 ? Ye : me;
4348
4350
  } else
4349
- re === be && (Mt = K, re = Ye), re === Ye ? ue === 58 && (Oe = K + 1, re = st) : re === st && (re = Qe);
4351
+ ne === me && (Mt = J, ne = Qe), ne === Qe ? ue === 58 && (Oe = J + 1, ne = Le) : ne === Le && (ne = st);
4350
4352
  }
4351
4353
  }
4352
- }, cn = function(q) {
4353
- if (pe === Ce || pe === ae) {
4354
- pe = x, $ !== 0 && (i($), $ = 0), $ = r(function() {
4354
+ }, un = function(Y) {
4355
+ if (fe === le || fe === pe) {
4356
+ fe = ye, te !== 0 && (i(te), te = 0), te = r(function() {
4355
4357
  et();
4356
- }, g), g = Ke(Math.min(u * 16, g * 2)), h.readyState = ae;
4357
- var z = new Ae("error", { error: q });
4358
- h.dispatchEvent(z), ve(h, h.onerror, z), q != null && console.error(q);
4358
+ }, T), T = Pe(Math.min(d * 16, T * 2)), h.readyState = pe;
4359
+ var z = new x("error", { error: Y });
4360
+ h.dispatchEvent(z), Be(h, h.onerror, z), Y != null && console.error(Y);
4359
4361
  }
4360
4362
  }, Rt = function() {
4361
- pe = fe, ne != null && (ne.abort(), ne = void 0), $ !== 0 && (i($), $ = 0), h.readyState = fe;
4363
+ fe = He, X != null && (X.abort(), X = void 0), te !== 0 && (i(te), te = 0), h.readyState = He;
4362
4364
  }, et = function() {
4363
- if ($ = 0, pe !== x) {
4364
- if (!B && ne != null)
4365
- cn(new Error("No activity within " + d + " milliseconds. " + (pe === ae ? "No response received." : C + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
4365
+ if (te = 0, fe !== ye) {
4366
+ if (!C && X != null)
4367
+ un(new Error("No activity within " + p + " milliseconds. " + (fe === pe ? "No response received." : S + " chars received.") + " Reconnecting.")), X != null && (X.abort(), X = void 0);
4366
4368
  else {
4367
- var q = Math.max((B || Date.now()) + d - Date.now(), 1);
4368
- B = !1, $ = r(function() {
4369
+ var Y = Math.max((C || Date.now()) + p - Date.now(), 1);
4370
+ C = !1, te = r(function() {
4369
4371
  et();
4370
- }, q);
4372
+ }, Y);
4371
4373
  }
4372
4374
  return;
4373
4375
  }
4374
- B = !1, C = 0, $ = r(function() {
4376
+ C = !1, S = 0, te = r(function() {
4375
4377
  et();
4376
- }, d), pe = ae, Pe = "", _e = "", ht = _, ft = "", Mt = 0, Oe = 0, re = be;
4377
- var z = v;
4378
- if (v.slice(0, 5) !== "data:" && v.slice(0, 5) !== "blob:" && _ !== "") {
4379
- var le = v.indexOf("?");
4380
- z = le === -1 ? v : v.slice(0, le + 1) + v.slice(le + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Ie) {
4381
- return Ie === A ? "" : xe;
4382
- }), z += (v.indexOf("?") === -1 ? "?" : "&") + A + "=" + encodeURIComponent(_);
4378
+ }, p), fe = pe, Ne = "", ve = "", ht = v, ft = "", Mt = 0, Oe = 0, ne = me;
4379
+ var z = y;
4380
+ if (y.slice(0, 5) !== "data:" && y.slice(0, 5) !== "blob:" && v !== "") {
4381
+ var se = y.indexOf("?");
4382
+ z = se === -1 ? y : y.slice(0, se + 1) + y.slice(se + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Ie) {
4383
+ return Ie === c ? "" : Ee;
4384
+ }), z += (y.indexOf("?") === -1 ? "?" : "&") + c + "=" + encodeURIComponent(v);
4383
4385
  }
4384
- var ue = h.withCredentials, ie = {};
4385
- ie.Accept = "text/event-stream";
4386
- var K = h.headers;
4387
- if (K != null)
4388
- for (var Ee in K)
4389
- Object.prototype.hasOwnProperty.call(K, Ee) && (ie[Ee] = K[Ee]);
4386
+ var ue = h.withCredentials, re = {};
4387
+ re.Accept = "text/event-stream";
4388
+ var J = h.headers;
4389
+ if (J != null)
4390
+ for (var _e in J)
4391
+ Object.prototype.hasOwnProperty.call(J, _e) && (re[_e] = J[_e]);
4390
4392
  try {
4391
- ne = de.open(J, Sr, Tr, cn, z, ue, ie);
4392
- } catch (xe) {
4393
- throw Rt(), xe;
4393
+ X = Ae.open(ee, Er, xr, un, z, ue, re);
4394
+ } catch (Ee) {
4395
+ throw Rt(), Ee;
4394
4396
  }
4395
4397
  };
4396
- h.url = v, h.readyState = ae, h.withCredentials = b, h.headers = y, h._close = Rt, et();
4398
+ h.url = y, h.readyState = pe, h.withCredentials = g, h.headers = B, h._close = Rt, et();
4397
4399
  }
4398
- se.prototype = Object.create(X.prototype), se.prototype.CONNECTING = ae, se.prototype.OPEN = Ce, se.prototype.CLOSED = fe, se.prototype.close = function() {
4400
+ ae.prototype = Object.create(q.prototype), ae.prototype.CONNECTING = pe, ae.prototype.OPEN = le, ae.prototype.CLOSED = He, ae.prototype.close = function() {
4399
4401
  this._close();
4400
- }, se.CONNECTING = ae, se.OPEN = Ce, se.CLOSED = fe, se.prototype.withCredentials = void 0;
4401
- var ct = c;
4402
- o != null && (c == null || !("withCredentials" in c.prototype)) && (ct = se), function(h) {
4402
+ }, ae.CONNECTING = pe, ae.OPEN = le, ae.CLOSED = He, ae.prototype.withCredentials = void 0;
4403
+ var ct = l;
4404
+ o != null && (l == null || !("withCredentials" in l.prototype)) && (ct = ae), function(h) {
4403
4405
  {
4404
- var v = h(t);
4405
- v !== void 0 && (e.exports = v);
4406
+ var y = h(t);
4407
+ y !== void 0 && (e.exports = y);
4406
4408
  }
4407
4409
  }(function(h) {
4408
- h.EventSourcePolyfill = se, h.NativeEventSource = c, h.EventSource = ct;
4410
+ h.EventSourcePolyfill = ae, h.NativeEventSource = l, h.EventSource = ct;
4409
4411
  });
4410
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Kr : globalThis);
4411
- })(tn, tn.exports);
4412
- var ko = tn.exports;
4413
- function Te(e) {
4412
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Yr : globalThis);
4413
+ })(en, en.exports);
4414
+ var Go = en.exports;
4415
+ function Se(e) {
4414
4416
  return typeof e == "function";
4415
4417
  }
4416
- function gr(e) {
4418
+ function mr(e) {
4417
4419
  var t = function(r) {
4418
4420
  Error.call(r), r.stack = new Error().stack;
4419
4421
  }, n = e(t);
4420
4422
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
4421
4423
  }
4422
- var Ft = gr(function(e) {
4424
+ var Ft = mr(function(e) {
4423
4425
  return function(n) {
4424
4426
  e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
4425
4427
  ` + n.map(function(r, i) {
@@ -4428,7 +4430,7 @@ var Ft = gr(function(e) {
4428
4430
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
4429
4431
  };
4430
4432
  });
4431
- function nn(e, t) {
4433
+ function tn(e, t) {
4432
4434
  if (e) {
4433
4435
  var n = e.indexOf(t);
4434
4436
  0 <= n && e.splice(n, 1);
@@ -4446,15 +4448,15 @@ var At = function() {
4446
4448
  if (s)
4447
4449
  if (this._parentage = null, Array.isArray(s))
4448
4450
  try {
4449
- for (var a = Xt(s), c = a.next(); !c.done; c = a.next()) {
4450
- var l = c.value;
4451
- l.remove(this);
4451
+ for (var a = Vt(s), l = a.next(); !l.done; l = a.next()) {
4452
+ var u = l.value;
4453
+ u.remove(this);
4452
4454
  }
4453
- } catch (T) {
4454
- t = { error: T };
4455
+ } catch (A) {
4456
+ t = { error: A };
4455
4457
  } finally {
4456
4458
  try {
4457
- c && !c.done && (n = a.return) && n.call(a);
4459
+ l && !l.done && (n = a.return) && n.call(a);
4458
4460
  } finally {
4459
4461
  if (t)
4460
4462
  throw t.error;
@@ -4463,29 +4465,29 @@ var At = function() {
4463
4465
  else
4464
4466
  s.remove(this);
4465
4467
  var f = this.initialTeardown;
4466
- if (Te(f))
4468
+ if (Se(f))
4467
4469
  try {
4468
4470
  f();
4469
- } catch (T) {
4470
- o = T instanceof Ft ? T.errors : [T];
4471
+ } catch (A) {
4472
+ o = A instanceof Ft ? A.errors : [A];
4471
4473
  }
4472
- var m = this._finalizers;
4473
- if (m) {
4474
+ var b = this._finalizers;
4475
+ if (b) {
4474
4476
  this._finalizers = null;
4475
4477
  try {
4476
- for (var p = Xt(m), S = p.next(); !S.done; S = p.next()) {
4477
- var E = S.value;
4478
+ for (var m = Vt(b), w = m.next(); !w.done; w = m.next()) {
4479
+ var _ = w.value;
4478
4480
  try {
4479
- Hn(E);
4480
- } catch (T) {
4481
- o = o ?? [], T instanceof Ft ? o = Ge(Ge([], zt(o)), zt(T.errors)) : o.push(T);
4481
+ An(_);
4482
+ } catch (A) {
4483
+ o = o ?? [], A instanceof Ft ? o = je(je([], Xt(o)), Xt(A.errors)) : o.push(A);
4482
4484
  }
4483
4485
  }
4484
- } catch (T) {
4485
- r = { error: T };
4486
+ } catch (A) {
4487
+ r = { error: A };
4486
4488
  } finally {
4487
4489
  try {
4488
- S && !S.done && (i = p.return) && i.call(p);
4490
+ w && !w.done && (i = m.return) && i.call(m);
4489
4491
  } finally {
4490
4492
  if (r)
4491
4493
  throw r.error;
@@ -4499,7 +4501,7 @@ var At = function() {
4499
4501
  var n;
4500
4502
  if (t && t !== this)
4501
4503
  if (this.closed)
4502
- Hn(t);
4504
+ An(t);
4503
4505
  else {
4504
4506
  if (t instanceof e) {
4505
4507
  if (t.closed || t._hasParent(this))
@@ -4516,56 +4518,56 @@ var At = function() {
4516
4518
  this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
4517
4519
  }, e.prototype._removeParent = function(t) {
4518
4520
  var n = this._parentage;
4519
- n === t ? this._parentage = null : Array.isArray(n) && nn(n, t);
4521
+ n === t ? this._parentage = null : Array.isArray(n) && tn(n, t);
4520
4522
  }, e.prototype.remove = function(t) {
4521
4523
  var n = this._finalizers;
4522
- n && nn(n, t), t instanceof e && t._removeParent(this);
4524
+ n && tn(n, t), t instanceof e && t._removeParent(this);
4523
4525
  }, e.EMPTY = function() {
4524
4526
  var t = new e();
4525
4527
  return t.closed = !0, t;
4526
4528
  }(), e;
4527
- }(), yr = At.EMPTY;
4528
- function vr(e) {
4529
- return e instanceof At || e && "closed" in e && Te(e.remove) && Te(e.add) && Te(e.unsubscribe);
4529
+ }(), br = At.EMPTY;
4530
+ function gr(e) {
4531
+ return e instanceof At || e && "closed" in e && Se(e.remove) && Se(e.add) && Se(e.unsubscribe);
4530
4532
  }
4531
- function Hn(e) {
4532
- Te(e) ? e() : e.unsubscribe();
4533
+ function An(e) {
4534
+ Se(e) ? e() : e.unsubscribe();
4533
4535
  }
4534
- var _r = {
4536
+ var jo = {
4535
4537
  onUnhandledError: null,
4536
4538
  onStoppedNotification: null,
4537
4539
  Promise: void 0,
4538
4540
  useDeprecatedSynchronousErrorHandling: !1,
4539
4541
  useDeprecatedNextContext: !1
4540
- }, $o = {
4542
+ }, ko = {
4541
4543
  setTimeout: function(e, t) {
4542
4544
  for (var n = [], r = 2; r < arguments.length; r++)
4543
4545
  n[r - 2] = arguments[r];
4544
- return setTimeout.apply(void 0, Ge([e, t], zt(n)));
4546
+ return setTimeout.apply(void 0, je([e, t], Xt(n)));
4545
4547
  },
4546
4548
  clearTimeout: function(e) {
4547
4549
  return clearTimeout(e);
4548
4550
  },
4549
4551
  delegate: void 0
4550
4552
  };
4551
- function Vo(e) {
4552
- $o.setTimeout(function() {
4553
+ function $o(e) {
4554
+ ko.setTimeout(function() {
4553
4555
  throw e;
4554
4556
  });
4555
4557
  }
4556
- function On() {
4558
+ function Cn() {
4557
4559
  }
4558
4560
  function yt(e) {
4559
4561
  e();
4560
4562
  }
4561
- var Er = function(e) {
4562
- Be(t, e);
4563
+ var yr = function(e) {
4564
+ Te(t, e);
4563
4565
  function t(n) {
4564
4566
  var r = e.call(this) || this;
4565
- return r.isStopped = !1, n ? (r.destination = n, vr(n) && n.add(r)) : r.destination = Zo, r;
4567
+ return r.isStopped = !1, n ? (r.destination = n, gr(n) && n.add(r)) : r.destination = zo, r;
4566
4568
  }
4567
4569
  return t.create = function(n, r, i) {
4568
- return new rn(n, r, i);
4570
+ return new nn(n, r, i);
4569
4571
  }, t.prototype.next = function(n) {
4570
4572
  this.isStopped || this._next(n);
4571
4573
  }, t.prototype.error = function(n) {
@@ -4589,11 +4591,7 @@ var Er = function(e) {
4589
4591
  this.unsubscribe();
4590
4592
  }
4591
4593
  }, t;
4592
- }(At), Xo = Function.prototype.bind;
4593
- function Gt(e, t) {
4594
- return Xo.call(e, t);
4595
- }
4596
- var zo = function() {
4594
+ }(At), Vo = function() {
4597
4595
  function e(t) {
4598
4596
  this.partialObserver = t;
4599
4597
  }
@@ -4624,55 +4622,43 @@ var zo = function() {
4624
4622
  pt(n);
4625
4623
  }
4626
4624
  }, e;
4627
- }(), rn = function(e) {
4628
- Be(t, e);
4625
+ }(), nn = function(e) {
4626
+ Te(t, e);
4629
4627
  function t(n, r, i) {
4630
4628
  var o = e.call(this) || this, s;
4631
- if (Te(n) || !n)
4632
- s = {
4633
- next: n ?? void 0,
4634
- error: r ?? void 0,
4635
- complete: i ?? void 0
4636
- };
4637
- else {
4638
- var a;
4639
- o && _r.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
4640
- return o.unsubscribe();
4641
- }, s = {
4642
- next: n.next && Gt(n.next, a),
4643
- error: n.error && Gt(n.error, a),
4644
- complete: n.complete && Gt(n.complete, a)
4645
- }) : s = n;
4646
- }
4647
- return o.destination = new zo(s), o;
4629
+ return Se(n) || !n ? s = {
4630
+ next: n ?? void 0,
4631
+ error: r ?? void 0,
4632
+ complete: i ?? void 0
4633
+ } : s = n, o.destination = new Vo(s), o;
4648
4634
  }
4649
4635
  return t;
4650
- }(Er);
4636
+ }(yr);
4651
4637
  function pt(e) {
4652
- Vo(e);
4638
+ $o(e);
4653
4639
  }
4654
- function Wo(e) {
4640
+ function Xo(e) {
4655
4641
  throw e;
4656
4642
  }
4657
- var Zo = {
4643
+ var zo = {
4658
4644
  closed: !0,
4659
- next: On,
4660
- error: Wo,
4661
- complete: On
4662
- }, qo = function() {
4645
+ next: Cn,
4646
+ error: Xo,
4647
+ complete: Cn
4648
+ }, Wo = function() {
4663
4649
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
4664
4650
  }();
4665
- function Yo(e) {
4651
+ function Zo(e) {
4666
4652
  return e;
4667
4653
  }
4668
- function Qo(e) {
4669
- return e.length === 0 ? Yo : e.length === 1 ? e[0] : function(n) {
4654
+ function qo(e) {
4655
+ return e.length === 0 ? Zo : e.length === 1 ? e[0] : function(n) {
4670
4656
  return e.reduce(function(r, i) {
4671
4657
  return i(r);
4672
4658
  }, n);
4673
4659
  };
4674
4660
  }
4675
- var Mn = function() {
4661
+ var Hn = function() {
4676
4662
  function e(t) {
4677
4663
  t && (this._subscribe = t);
4678
4664
  }
@@ -4680,10 +4666,10 @@ var Mn = function() {
4680
4666
  var n = new e();
4681
4667
  return n.source = this, n.operator = t, n;
4682
4668
  }, e.prototype.subscribe = function(t, n, r) {
4683
- var i = this, o = Ko(t) ? t : new rn(t, n, r);
4669
+ var i = this, o = Qo(t) ? t : new nn(t, n, r);
4684
4670
  return yt(function() {
4685
- var s = i, a = s.operator, c = s.source;
4686
- o.add(a ? a.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
4671
+ var s = i, a = s.operator, l = s.source;
4672
+ o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4687
4673
  }), o;
4688
4674
  }, e.prototype._trySubscribe = function(t) {
4689
4675
  try {
@@ -4693,13 +4679,13 @@ var Mn = function() {
4693
4679
  }
4694
4680
  }, e.prototype.forEach = function(t, n) {
4695
4681
  var r = this;
4696
- return n = Rn(n), new n(function(i, o) {
4697
- var s = new rn({
4682
+ return n = On(n), new n(function(i, o) {
4683
+ var s = new nn({
4698
4684
  next: function(a) {
4699
4685
  try {
4700
4686
  t(a);
4701
- } catch (c) {
4702
- o(c), s.unsubscribe();
4687
+ } catch (l) {
4688
+ o(l), s.unsubscribe();
4703
4689
  }
4704
4690
  },
4705
4691
  error: o,
@@ -4710,15 +4696,15 @@ var Mn = function() {
4710
4696
  }, e.prototype._subscribe = function(t) {
4711
4697
  var n;
4712
4698
  return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
4713
- }, e.prototype[qo] = function() {
4699
+ }, e.prototype[Wo] = function() {
4714
4700
  return this;
4715
4701
  }, e.prototype.pipe = function() {
4716
4702
  for (var t = [], n = 0; n < arguments.length; n++)
4717
4703
  t[n] = arguments[n];
4718
- return Qo(t)(this);
4704
+ return qo(t)(this);
4719
4705
  }, e.prototype.toPromise = function(t) {
4720
4706
  var n = this;
4721
- return t = Rn(t), new t(function(r, i) {
4707
+ return t = On(t), new t(function(r, i) {
4722
4708
  var o;
4723
4709
  n.subscribe(function(s) {
4724
4710
  return o = s;
@@ -4732,32 +4718,32 @@ var Mn = function() {
4732
4718
  return new e(t);
4733
4719
  }, e;
4734
4720
  }();
4735
- function Rn(e) {
4721
+ function On(e) {
4736
4722
  var t;
4737
- return (t = e ?? _r.Promise) !== null && t !== void 0 ? t : Promise;
4723
+ return (t = e ?? jo.Promise) !== null && t !== void 0 ? t : Promise;
4738
4724
  }
4739
- function Jo(e) {
4740
- return e && Te(e.next) && Te(e.error) && Te(e.complete);
4725
+ function Yo(e) {
4726
+ return e && Se(e.next) && Se(e.error) && Se(e.complete);
4741
4727
  }
4742
- function Ko(e) {
4743
- return e && e instanceof Er || Jo(e) && vr(e);
4728
+ function Qo(e) {
4729
+ return e && e instanceof yr || Yo(e) && gr(e);
4744
4730
  }
4745
- var ea = gr(function(e) {
4731
+ var Jo = mr(function(e) {
4746
4732
  return function() {
4747
4733
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4748
4734
  };
4749
- }), xr = function(e) {
4750
- Be(t, e);
4735
+ }), vr = function(e) {
4736
+ Te(t, e);
4751
4737
  function t() {
4752
4738
  var n = e.call(this) || this;
4753
4739
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
4754
4740
  }
4755
4741
  return t.prototype.lift = function(n) {
4756
- var r = new Ln(this, this);
4742
+ var r = new Mn(this, this);
4757
4743
  return r.operator = n, r;
4758
4744
  }, t.prototype._throwIfClosed = function() {
4759
4745
  if (this.closed)
4760
- throw new ea();
4746
+ throw new Jo();
4761
4747
  }, t.prototype.next = function(n) {
4762
4748
  var r = this;
4763
4749
  yt(function() {
@@ -4765,12 +4751,12 @@ var ea = gr(function(e) {
4765
4751
  if (r._throwIfClosed(), !r.isStopped) {
4766
4752
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
4767
4753
  try {
4768
- for (var s = Xt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
4769
- var c = a.value;
4770
- c.next(n);
4754
+ for (var s = Vt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
4755
+ var l = a.value;
4756
+ l.next(n);
4771
4757
  }
4772
- } catch (l) {
4773
- i = { error: l };
4758
+ } catch (u) {
4759
+ i = { error: u };
4774
4760
  } finally {
4775
4761
  try {
4776
4762
  a && !a.done && (o = s.return) && o.call(s);
@@ -4814,20 +4800,20 @@ var ea = gr(function(e) {
4814
4800
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
4815
4801
  }, t.prototype._innerSubscribe = function(n) {
4816
4802
  var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
4817
- return o || s ? yr : (this.currentObservers = null, a.push(n), new At(function() {
4818
- r.currentObservers = null, nn(a, n);
4803
+ return o || s ? br : (this.currentObservers = null, a.push(n), new At(function() {
4804
+ r.currentObservers = null, tn(a, n);
4819
4805
  }));
4820
4806
  }, t.prototype._checkFinalizedStatuses = function(n) {
4821
4807
  var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
4822
4808
  i ? n.error(o) : s && n.complete();
4823
4809
  }, t.prototype.asObservable = function() {
4824
- var n = new Mn();
4810
+ var n = new Hn();
4825
4811
  return n.source = this, n;
4826
4812
  }, t.create = function(n, r) {
4827
- return new Ln(n, r);
4813
+ return new Mn(n, r);
4828
4814
  }, t;
4829
- }(Mn), Ln = function(e) {
4830
- Be(t, e);
4815
+ }(Hn), Mn = function(e) {
4816
+ Te(t, e);
4831
4817
  function t(n, r) {
4832
4818
  var i = e.call(this) || this;
4833
4819
  return i.destination = n, i.source = r, i;
@@ -4843,58 +4829,58 @@ var ea = gr(function(e) {
4843
4829
  (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
4844
4830
  }, t.prototype._subscribe = function(n) {
4845
4831
  var r, i;
4846
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : yr;
4832
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : br;
4847
4833
  }, t;
4848
- }(xr), wr = {
4834
+ }(vr), _r = {
4849
4835
  now: function() {
4850
- return (wr.delegate || Date).now();
4836
+ return (_r.delegate || Date).now();
4851
4837
  },
4852
4838
  delegate: void 0
4853
- }, ta = function(e) {
4854
- Be(t, e);
4839
+ }, Ko = function(e) {
4840
+ Te(t, e);
4855
4841
  function t(n, r, i) {
4856
- n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = wr);
4842
+ n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = _r);
4857
4843
  var o = e.call(this) || this;
4858
4844
  return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
4859
4845
  }
4860
4846
  return t.prototype.next = function(n) {
4861
- var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, c = r._windowTime;
4862
- i || (o.push(n), !s && o.push(a.now() + c)), this._trimBuffer(), e.prototype.next.call(this, n);
4847
+ var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, l = r._windowTime;
4848
+ i || (o.push(n), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, n);
4863
4849
  }, t.prototype._subscribe = function(n) {
4864
4850
  this._throwIfClosed(), this._trimBuffer();
4865
- for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), c = 0; c < a.length && !n.closed; c += o ? 1 : 2)
4866
- n.next(a[c]);
4851
+ for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !n.closed; l += o ? 1 : 2)
4852
+ n.next(a[l]);
4867
4853
  return this._checkFinalizedStatuses(n), r;
4868
4854
  }, t.prototype._trimBuffer = function() {
4869
4855
  var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, s = n._infiniteTimeWindow, a = (s ? 1 : 2) * r;
4870
4856
  if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
4871
- for (var c = i.now(), l = 0, f = 1; f < o.length && o[f] <= c; f += 2)
4872
- l = f;
4873
- l && o.splice(0, l + 1);
4857
+ for (var l = i.now(), u = 0, f = 1; f < o.length && o[f] <= l; f += 2)
4858
+ u = f;
4859
+ u && o.splice(0, u + 1);
4874
4860
  }
4875
4861
  }, t;
4876
- }(xr);
4877
- const Pn = [], In = {}, na = (e, t = 0) => {
4878
- if (Pn.indexOf(e) == -1) {
4879
- const n = new ta(t);
4880
- In[e] = n, Pn.push(e);
4862
+ }(vr);
4863
+ const Rn = [], Ln = {}, ea = (e, t = 0) => {
4864
+ if (Rn.indexOf(e) == -1) {
4865
+ const n = new Ko(t);
4866
+ Ln[e] = n, Rn.push(e);
4881
4867
  }
4882
- return In[e];
4868
+ return Ln[e];
4883
4869
  };
4884
- window.emWidgets = { topic: na };
4885
- const ra = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4886
- function ia(e) {
4887
- Cr(e, "svelte-lfsn3o", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4870
+ window.emWidgets = { topic: ea };
4871
+ const ta = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4872
+ function na(e) {
4873
+ Tr(e, "svelte-lfsn3o", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4888
4874
  }
4889
- function Nn(e, t, n) {
4875
+ function Pn(e, t, n) {
4890
4876
  const r = e.slice();
4891
4877
  return r[54] = t[n], r;
4892
4878
  }
4893
- function Dn(e, t, n) {
4879
+ function Nn(e, t, n) {
4894
4880
  const r = e.slice();
4895
4881
  return r[57] = t[n], r;
4896
4882
  }
4897
- function oa(e) {
4883
+ function ra(e) {
4898
4884
  let t, n, r = (
4899
4885
  /*balances*/
4900
4886
  (e[1].Total ? (
@@ -4904,53 +4890,53 @@ function oa(e) {
4904
4890
  e[1].Total[0].amount
4905
4891
  )
4906
4892
  ) : "0") + ""
4907
- ), i, o, s, a, c, l, f, m, p, S, E = (
4893
+ ), i, o, s, a, l, u, f, b, m, w, _ = (
4908
4894
  /*showBalance*/
4909
- e[4] && Un(e)
4895
+ e[4] && In(e)
4910
4896
  );
4911
4897
  return {
4912
4898
  c() {
4913
- t = j("button"), n = j("p"), i = we(r), o = Se(), s = j("span"), a = fn("svg"), c = fn("path"), f = Se(), E && E.c(), m = Mr(), R(c, "id", "arrow"), R(c, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), R(c, "transform", "translate(-274.511 -441.088)"), R(c, "fill", "#d1d1d1"), R(a, "xmlns", "http://www.w3.org/2000/svg"), R(a, "width", "14"), R(a, "height", "6.835"), R(a, "viewBox", "0 0 14 6.835"), R(s, "class", l = /*isModalDisplayed*/
4914
- e[3] ? "TriangleActive" : "TriangleInactive"), R(t, "class", "BalanceValue");
4899
+ t = j("button"), n = j("p"), i = xe(r), o = we(), s = j("span"), a = cn("svg"), l = cn("path"), f = we(), _ && _.c(), b = Cr(), M(l, "id", "arrow"), M(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"), M(l, "transform", "translate(-274.511 -441.088)"), M(l, "fill", "#d1d1d1"), M(a, "xmlns", "http://www.w3.org/2000/svg"), M(a, "width", "14"), M(a, "height", "6.835"), M(a, "viewBox", "0 0 14 6.835"), M(s, "class", u = /*isModalDisplayed*/
4900
+ e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
4915
4901
  },
4916
- m(T, N) {
4917
- ge(T, t, N), I(t, n), I(n, i), I(t, o), I(t, s), I(s, a), I(a, c), ge(T, f, N), E && E.m(T, N), ge(T, m, N), p || (S = vt(
4902
+ m(A, I) {
4903
+ be(A, t, I), P(t, n), P(n, i), P(t, o), P(t, s), P(s, a), P(a, l), be(A, f, I), _ && _.m(A, I), be(A, b, I), m || (w = vt(
4918
4904
  t,
4919
4905
  "click",
4920
4906
  /*click_handler*/
4921
4907
  e[26]
4922
- ), p = !0);
4908
+ ), m = !0);
4923
4909
  },
4924
- p(T, N) {
4925
- N[0] & /*balances*/
4910
+ p(A, I) {
4911
+ I[0] & /*balances*/
4926
4912
  2 && r !== (r = /*balances*/
4927
- (T[1].Total ? (
4913
+ (A[1].Total ? (
4928
4914
  /*formatBalance*/
4929
- T[8](
4915
+ A[8](
4930
4916
  /*balances*/
4931
- T[1].Total[0].amount
4917
+ A[1].Total[0].amount
4932
4918
  )
4933
- ) : "0") + "") && Me(i, r), N[0] & /*isModalDisplayed*/
4934
- 8 && l !== (l = /*isModalDisplayed*/
4935
- T[3] ? "TriangleActive" : "TriangleInactive") && R(s, "class", l), /*showBalance*/
4936
- T[4] ? E ? E.p(T, N) : (E = Un(T), E.c(), E.m(m.parentNode, m)) : E && (E.d(1), E = null);
4919
+ ) : "0") + "") && Me(i, r), I[0] & /*isModalDisplayed*/
4920
+ 8 && u !== (u = /*isModalDisplayed*/
4921
+ A[3] ? "TriangleActive" : "TriangleInactive") && M(s, "class", u), /*showBalance*/
4922
+ A[4] ? _ ? _.p(A, I) : (_ = In(A), _.c(), _.m(b.parentNode, b)) : _ && (_.d(1), _ = null);
4937
4923
  },
4938
- d(T) {
4939
- T && (me(t), me(f), me(m)), E && E.d(T), p = !1, S();
4924
+ d(A) {
4925
+ A && (de(t), de(f), de(b)), _ && _.d(A), m = !1, w();
4940
4926
  }
4941
4927
  };
4942
4928
  }
4943
- function aa(e) {
4929
+ function ia(e) {
4944
4930
  let t, n = (
4945
4931
  /*$_*/
4946
4932
  e[6]("Loading") + ""
4947
4933
  ), r;
4948
4934
  return {
4949
4935
  c() {
4950
- t = j("p"), r = we(n), R(t, "class", "Loading");
4936
+ t = j("p"), r = xe(n), M(t, "class", "Loading");
4951
4937
  },
4952
4938
  m(i, o) {
4953
- ge(i, t, o), I(t, r);
4939
+ be(i, t, o), P(t, r);
4954
4940
  },
4955
4941
  p(i, o) {
4956
4942
  o[0] & /*$_*/
@@ -4958,39 +4944,39 @@ function aa(e) {
4958
4944
  i[6]("Loading") + "") && Me(r, n);
4959
4945
  },
4960
4946
  d(i) {
4961
- i && me(t);
4947
+ i && de(t);
4962
4948
  }
4963
4949
  };
4964
4950
  }
4965
- function Un(e) {
4966
- let t, n, r, i, o, s, a, c, l = (
4951
+ function In(e) {
4952
+ let t, n, r, i, o, s, a, l, u = (
4967
4953
  /*$_*/
4968
4954
  e[6]("Title") + ""
4969
- ), f, m, p, S, E, T, N = (
4955
+ ), f, b, m, w, _, A, I = (
4970
4956
  /*$_*/
4971
4957
  e[6]("DepositButton") + ""
4972
- ), W, V, L, U, Q, Z, ee = _t(Object.keys(
4958
+ ), W, V, R, D, k, oe, Z = _t(Object.keys(
4973
4959
  /*balances*/
4974
4960
  e[1]
4975
- )), F = [];
4976
- for (let D = 0; D < ee.length; D += 1)
4977
- F[D] = Gn(Nn(e, ee, D));
4961
+ )), $ = [];
4962
+ for (let U = 0; U < Z.length; U += 1)
4963
+ $[U] = Un(Pn(e, Z, U));
4978
4964
  return {
4979
4965
  c() {
4980
- t = j("div"), n = j("button"), i = Se(), o = j("div"), s = j("div"), a = j("div"), c = j("p"), f = we(l), m = Se(), p = j("div");
4981
- for (let D = 0; D < F.length; D += 1)
4982
- F[D].c();
4983
- S = Se(), E = j("div"), T = j("button"), W = we(N), R(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
4984
- (e[3] ? "Open" : "")), R(c, "class", "BalanceModalTitle"), R(a, "class", "BalanceModalHeader"), R(p, "class", "BalanceModalBody"), R(T, "class", "BalanceModalAction"), R(E, "class", "BalanceModalFooter"), R(s, "class", V = "ModalContent " + /*isModalDisplayed*/
4985
- (e[3] ? "Open" : "")), R(o, "class", L = "BalanceModal " + /*isModalDisplayed*/
4986
- (e[3] ? "Open" : "")), R(t, "class", U = "BalanceModalWrapper " + /*isModalDisplayed*/
4966
+ t = j("div"), n = j("button"), i = we(), o = j("div"), s = j("div"), a = j("div"), l = j("p"), f = xe(u), b = we(), m = j("div");
4967
+ for (let U = 0; U < $.length; U += 1)
4968
+ $[U].c();
4969
+ w = we(), _ = j("div"), A = j("button"), W = xe(I), M(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
4970
+ (e[3] ? "Open" : "")), M(l, "class", "BalanceModalTitle"), M(a, "class", "BalanceModalHeader"), M(m, "class", "BalanceModalBody"), M(A, "class", "BalanceModalAction"), M(_, "class", "BalanceModalFooter"), M(s, "class", V = "ModalContent " + /*isModalDisplayed*/
4971
+ (e[3] ? "Open" : "")), M(o, "class", R = "BalanceModal " + /*isModalDisplayed*/
4972
+ (e[3] ? "Open" : "")), M(t, "class", D = "BalanceModalWrapper " + /*isModalDisplayed*/
4987
4973
  (e[3] ? "Open" : ""));
4988
4974
  },
4989
- m(D, X) {
4990
- ge(D, t, X), I(t, n), I(t, i), I(t, o), I(o, s), I(s, a), I(a, c), I(c, f), I(s, m), I(s, p);
4991
- for (let k = 0; k < F.length; k += 1)
4992
- F[k] && F[k].m(p, null);
4993
- I(s, S), I(s, E), I(E, T), I(T, W), Q || (Z = [
4975
+ m(U, q) {
4976
+ be(U, t, q), P(t, n), P(t, i), P(t, o), P(o, s), P(s, a), P(a, l), P(l, f), P(s, b), P(s, m);
4977
+ for (let F = 0; F < $.length; F += 1)
4978
+ $[F] && $[F].m(m, null);
4979
+ P(s, w), P(s, _), P(_, A), P(A, W), k || (oe = [
4994
4980
  vt(
4995
4981
  n,
4996
4982
  "click",
@@ -4998,49 +4984,49 @@ function Un(e) {
4998
4984
  e[27]
4999
4985
  ),
5000
4986
  vt(
5001
- T,
4987
+ A,
5002
4988
  "click",
5003
4989
  /*click_handler_2*/
5004
4990
  e[28]
5005
4991
  )
5006
- ], Q = !0);
4992
+ ], k = !0);
5007
4993
  },
5008
- p(D, X) {
5009
- if (X[0] & /*isModalDisplayed*/
4994
+ p(U, q) {
4995
+ if (q[0] & /*isModalDisplayed*/
5010
4996
  8 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
5011
- (D[3] ? "Open" : "")) && R(n, "class", r), X[0] & /*$_*/
5012
- 64 && l !== (l = /*$_*/
5013
- D[6]("Title") + "") && Me(f, l), X[0] & /*balances, formatBalance, $_*/
4997
+ (U[3] ? "Open" : "")) && M(n, "class", r), q[0] & /*$_*/
4998
+ 64 && u !== (u = /*$_*/
4999
+ U[6]("Title") + "") && Me(f, u), q[0] & /*balances, formatBalance, $_*/
5014
5000
  322) {
5015
- ee = _t(Object.keys(
5001
+ Z = _t(Object.keys(
5016
5002
  /*balances*/
5017
- D[1]
5003
+ U[1]
5018
5004
  ));
5019
- let k;
5020
- for (k = 0; k < ee.length; k += 1) {
5021
- const te = Nn(D, ee, k);
5022
- F[k] ? F[k].p(te, X) : (F[k] = Gn(te), F[k].c(), F[k].m(p, null));
5005
+ let F;
5006
+ for (F = 0; F < Z.length; F += 1) {
5007
+ const K = Pn(U, Z, F);
5008
+ $[F] ? $[F].p(K, q) : ($[F] = Un(K), $[F].c(), $[F].m(m, null));
5023
5009
  }
5024
- for (; k < F.length; k += 1)
5025
- F[k].d(1);
5026
- F.length = ee.length;
5010
+ for (; F < $.length; F += 1)
5011
+ $[F].d(1);
5012
+ $.length = Z.length;
5027
5013
  }
5028
- X[0] & /*$_*/
5029
- 64 && N !== (N = /*$_*/
5030
- D[6]("DepositButton") + "") && Me(W, N), X[0] & /*isModalDisplayed*/
5014
+ q[0] & /*$_*/
5015
+ 64 && I !== (I = /*$_*/
5016
+ U[6]("DepositButton") + "") && Me(W, I), q[0] & /*isModalDisplayed*/
5031
5017
  8 && V !== (V = "ModalContent " + /*isModalDisplayed*/
5032
- (D[3] ? "Open" : "")) && R(s, "class", V), X[0] & /*isModalDisplayed*/
5033
- 8 && L !== (L = "BalanceModal " + /*isModalDisplayed*/
5034
- (D[3] ? "Open" : "")) && R(o, "class", L), X[0] & /*isModalDisplayed*/
5035
- 8 && U !== (U = "BalanceModalWrapper " + /*isModalDisplayed*/
5036
- (D[3] ? "Open" : "")) && R(t, "class", U);
5018
+ (U[3] ? "Open" : "")) && M(s, "class", V), q[0] & /*isModalDisplayed*/
5019
+ 8 && R !== (R = "BalanceModal " + /*isModalDisplayed*/
5020
+ (U[3] ? "Open" : "")) && M(o, "class", R), q[0] & /*isModalDisplayed*/
5021
+ 8 && D !== (D = "BalanceModalWrapper " + /*isModalDisplayed*/
5022
+ (U[3] ? "Open" : "")) && M(t, "class", D);
5037
5023
  },
5038
- d(D) {
5039
- D && me(t), Xn(F, D), Q = !1, Xe(Z);
5024
+ d(U) {
5025
+ U && de(t), $n($, U), k = !1, ze(oe);
5040
5026
  }
5041
5027
  };
5042
5028
  }
5043
- function Fn(e) {
5029
+ function Dn(e) {
5044
5030
  let t, n, r = (
5045
5031
  /*$_*/
5046
5032
  e[6](
@@ -5056,47 +5042,47 @@ function Fn(e) {
5056
5042
  e[57].productType
5057
5043
  )
5058
5044
  ) : "") + ""
5059
- ), a, c, l, f, m = (
5045
+ ), a, l, u, f, b = (
5060
5046
  /*formatBalance*/
5061
5047
  e[8](
5062
5048
  /*b*/
5063
5049
  e[57].amount
5064
5050
  ) + ""
5065
- ), p;
5051
+ ), m;
5066
5052
  return {
5067
5053
  c() {
5068
- t = j("div"), n = j("p"), i = we(r), o = Se(), a = we(s), c = Se(), l = j("p"), f = j("span"), p = we(m), R(n, "class", "BalanceModalText"), R(f, "class", "BalanceModalAmount"), R(l, "class", "BalanceModalValue"), R(t, "class", "BalanceModalRowLine");
5054
+ t = j("div"), n = j("p"), i = xe(r), o = we(), a = xe(s), l = we(), u = j("p"), f = j("span"), m = xe(b), M(n, "class", "BalanceModalText"), M(f, "class", "BalanceModalAmount"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
5069
5055
  },
5070
- m(S, E) {
5071
- ge(S, t, E), I(t, n), I(n, i), I(n, o), I(n, a), I(t, c), I(t, l), I(l, f), I(f, p);
5056
+ m(w, _) {
5057
+ be(w, t, _), P(t, n), P(n, i), P(n, o), P(n, a), P(t, l), P(t, u), P(u, f), P(f, m);
5072
5058
  },
5073
- p(S, E) {
5074
- E[0] & /*$_, balances*/
5059
+ p(w, _) {
5060
+ _[0] & /*$_, balances*/
5075
5061
  66 && r !== (r = /*$_*/
5076
- S[6](
5062
+ w[6](
5077
5063
  /*k*/
5078
- S[54]
5079
- ) + "") && Me(i, r), E[0] & /*balances, $_*/
5064
+ w[54]
5065
+ ) + "") && Me(i, r), _[0] & /*balances, $_*/
5080
5066
  66 && s !== (s = /*b*/
5081
- (S[57].productType ? (
5067
+ (w[57].productType ? (
5082
5068
  /*$_*/
5083
- S[6](
5069
+ w[6](
5084
5070
  /*b*/
5085
- S[57].productType
5071
+ w[57].productType
5086
5072
  )
5087
- ) : "") + "") && Me(a, s), E[0] & /*balances*/
5088
- 2 && m !== (m = /*formatBalance*/
5089
- S[8](
5073
+ ) : "") + "") && Me(a, s), _[0] & /*balances*/
5074
+ 2 && b !== (b = /*formatBalance*/
5075
+ w[8](
5090
5076
  /*b*/
5091
- S[57].amount
5092
- ) + "") && Me(p, m);
5077
+ w[57].amount
5078
+ ) + "") && Me(m, b);
5093
5079
  },
5094
- d(S) {
5095
- S && me(t);
5080
+ d(w) {
5081
+ w && de(t);
5096
5082
  }
5097
5083
  };
5098
5084
  }
5099
- function Gn(e) {
5085
+ function Un(e) {
5100
5086
  let t, n, r = _t(
5101
5087
  /*balances*/
5102
5088
  e[1][
@@ -5105,19 +5091,19 @@ function Gn(e) {
5105
5091
  ]
5106
5092
  ), i = [];
5107
5093
  for (let o = 0; o < r.length; o += 1)
5108
- i[o] = Fn(Dn(e, r, o));
5094
+ i[o] = Dn(Nn(e, r, o));
5109
5095
  return {
5110
5096
  c() {
5111
5097
  t = j("div");
5112
5098
  for (let o = 0; o < i.length; o += 1)
5113
5099
  i[o].c();
5114
- n = Se(), R(t, "class", "BalanceModalRowBoth");
5100
+ n = we(), M(t, "class", "BalanceModalRowBoth");
5115
5101
  },
5116
5102
  m(o, s) {
5117
- ge(o, t, s);
5103
+ be(o, t, s);
5118
5104
  for (let a = 0; a < i.length; a += 1)
5119
5105
  i[a] && i[a].m(t, null);
5120
- I(t, n);
5106
+ P(t, n);
5121
5107
  },
5122
5108
  p(o, s) {
5123
5109
  if (s[0] & /*formatBalance, balances, $_*/
@@ -5131,8 +5117,8 @@ function Gn(e) {
5131
5117
  );
5132
5118
  let a;
5133
5119
  for (a = 0; a < r.length; a += 1) {
5134
- const c = Dn(o, r, a);
5135
- i[a] ? i[a].p(c, s) : (i[a] = Fn(c), i[a].c(), i[a].m(t, n));
5120
+ const l = Nn(o, r, a);
5121
+ i[a] ? i[a].p(l, s) : (i[a] = Dn(l), i[a].c(), i[a].m(t, n));
5136
5122
  }
5137
5123
  for (; a < i.length; a += 1)
5138
5124
  i[a].d(1);
@@ -5140,73 +5126,73 @@ function Gn(e) {
5140
5126
  }
5141
5127
  },
5142
5128
  d(o) {
5143
- o && me(t), Xn(i, o);
5129
+ o && de(t), $n(i, o);
5144
5130
  }
5145
5131
  };
5146
5132
  }
5147
- function jn(e) {
5133
+ function Fn(e) {
5148
5134
  let t, n, r;
5149
5135
  return {
5150
5136
  c() {
5151
- t = j("button"), R(t, "class", "ShowBalanceModalOverlay");
5137
+ t = j("button"), M(t, "class", "ShowBalanceModalOverlay");
5152
5138
  },
5153
5139
  m(i, o) {
5154
- ge(i, t, o), n || (r = vt(
5140
+ be(i, t, o), n || (r = vt(
5155
5141
  t,
5156
5142
  "click",
5157
5143
  /*click_handler_3*/
5158
5144
  e[29]
5159
5145
  ), n = !0);
5160
5146
  },
5161
- p: he,
5147
+ p: ce,
5162
5148
  d(i) {
5163
- i && me(t), n = !1, r();
5149
+ i && de(t), n = !1, r();
5164
5150
  }
5165
5151
  };
5166
5152
  }
5167
- function sa(e) {
5153
+ function oa(e) {
5168
5154
  let t, n, r, i;
5169
- function o(l, f) {
5155
+ function o(u, f) {
5170
5156
  return (
5171
5157
  /*isLoading*/
5172
- l[2] ? aa : oa
5158
+ u[2] ? ia : ra
5173
5159
  );
5174
5160
  }
5175
- let s = o(e), a = s(e), c = (
5161
+ let s = o(e), a = s(e), l = (
5176
5162
  /*showBalance*/
5177
- e[4] && jn(e)
5163
+ e[4] && Fn(e)
5178
5164
  );
5179
5165
  return {
5180
5166
  c() {
5181
- t = j("div"), n = j("div"), a.c(), i = Se(), c && c.c(), R(n, "class", r = "ShowBalance " + /*mobileView*/
5167
+ t = j("div"), n = j("div"), a.c(), i = we(), l && l.c(), M(n, "class", r = "ShowBalance " + /*mobileView*/
5182
5168
  (e[5] ? "Mobile" : ""));
5183
5169
  },
5184
- m(l, f) {
5185
- ge(l, t, f), I(t, n), a.m(n, null), I(t, i), c && c.m(t, null), e[30](t);
5170
+ m(u, f) {
5171
+ be(u, t, f), P(t, n), a.m(n, null), P(t, i), l && l.m(t, null), e[30](t);
5186
5172
  },
5187
- p(l, f) {
5188
- s === (s = o(l)) && a ? a.p(l, f) : (a.d(1), a = s(l), a && (a.c(), a.m(n, null))), f[0] & /*mobileView*/
5173
+ p(u, f) {
5174
+ s === (s = o(u)) && a ? a.p(u, f) : (a.d(1), a = s(u), a && (a.c(), a.m(n, null))), f[0] & /*mobileView*/
5189
5175
  32 && r !== (r = "ShowBalance " + /*mobileView*/
5190
- (l[5] ? "Mobile" : "")) && R(n, "class", r), /*showBalance*/
5191
- l[4] ? c ? c.p(l, f) : (c = jn(l), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
5176
+ (u[5] ? "Mobile" : "")) && M(n, "class", r), /*showBalance*/
5177
+ u[4] ? l ? l.p(u, f) : (l = Fn(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
5192
5178
  },
5193
- i: he,
5194
- o: he,
5195
- d(l) {
5196
- l && me(t), a.d(), c && c.d(), e[30](null);
5179
+ i: ce,
5180
+ o: ce,
5181
+ d(u) {
5182
+ u && de(t), a.d(), l && l.d(), e[30](null);
5197
5183
  }
5198
5184
  };
5199
5185
  }
5200
- function la(e, t, n) {
5186
+ function aa(e, t, n) {
5201
5187
  let r;
5202
- Ar(e, Go, (u) => n(6, r = u));
5203
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: c } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: m = "" } = t, { gmversion: p = "gm16" } = t, { displaybalanceoption: S = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { currencylocale: T = "en" } = t, { currencydisplay: N = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: V = "0" } = t, { customdisplayformat: L = "" } = t, U, Q, Z = !0, ee = !1, F = !1, D = !1, X = !1, k = window.navigator.userAgent, te, ye = "", ce = [], Ae;
5204
- const x = {}, ae = ["totalCashAmount", "totalRealAmount"], Ce = () => {
5205
- fetch(m).then((u) => u.json()).then((u) => Object.keys(u).forEach((d) => An(d, u[d]))).catch((u) => console.log(u));
5188
+ Sr(e, Uo, (c) => n(6, r = c));
5189
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: m = "gm16" } = t, { displaybalanceoption: w = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencylocale: A = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: V = "0" } = t, { customdisplayformat: R = "" } = t, D, k = !0, oe = !1, Z = !1, $ = !1, U = !1, q = window.navigator.userAgent, F, K = "", he = [], ge;
5190
+ const x = {}, ye = ["totalCashAmount", "totalRealAmount"], pe = () => {
5191
+ fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((d) => Tn(d, c[d]))).catch((c) => console.log(c));
5206
5192
  };
5207
- Object.keys(Cn).forEach((u) => An(u, Cn[u]));
5208
- const fe = (u) => {
5209
- switch (u) {
5193
+ Object.keys(Bn).forEach((c) => Tn(c, Bn[c]));
5194
+ const le = (c) => {
5195
+ switch (c) {
5210
5196
  case "balance":
5211
5197
  window.postMessage(
5212
5198
  {
@@ -5214,10 +5200,10 @@ function la(e, t, n) {
5214
5200
  status: "open"
5215
5201
  },
5216
5202
  window.location.href
5217
- ), n(4, D = !0), setTimeout(() => n(3, ee = !0), 150);
5203
+ ), n(4, $ = !0), setTimeout(() => n(3, oe = !0), 150);
5218
5204
  break;
5219
5205
  case "closebalance":
5220
- n(3, ee = !1), window.postMessage(
5206
+ n(3, oe = !1), window.postMessage(
5221
5207
  {
5222
5208
  type: "BalanceModalStatus",
5223
5209
  status: "close"
@@ -5225,66 +5211,66 @@ function la(e, t, n) {
5225
5211
  window.location.href
5226
5212
  ), setTimeout(
5227
5213
  () => {
5228
- n(4, D = !1);
5214
+ n(4, $ = !1);
5229
5215
  },
5230
5216
  150
5231
5217
  );
5232
5218
  break;
5233
5219
  }
5234
- }, qe = (u) => {
5235
- if (L)
5236
- return be(u);
5237
- const d = T || a, _ = {
5220
+ }, He = (c) => {
5221
+ if (R)
5222
+ return Ye(c);
5223
+ const d = A || a, p = {
5238
5224
  style: "currency",
5239
- currency: ye,
5225
+ currency: K,
5240
5226
  useGrouping: !0,
5241
- currencyDisplay: N || "code",
5227
+ currencyDisplay: I || "code",
5242
5228
  maximumFractionDigits: W === "" || isNaN(Number(W)) ? 2 : Number(W),
5243
5229
  minimumFractionDigits: V === "" || isNaN(Number(V)) ? 0 : Number(V)
5244
5230
  };
5245
- return new Intl.NumberFormat(d, _).format(u);
5246
- }, be = (u) => {
5231
+ return new Intl.NumberFormat(d, p).format(c);
5232
+ }, Ye = (c) => {
5247
5233
  const d = [];
5248
- let _ = "";
5249
- for (const g of L)
5250
- switch (g) {
5234
+ let p = "";
5235
+ for (const v of R)
5236
+ switch (v) {
5251
5237
  default:
5252
- _ += g;
5238
+ p += v;
5253
5239
  break;
5254
5240
  case "{":
5255
- _ && d.push(_), _ = "";
5241
+ p && d.push(p), p = "";
5256
5242
  break;
5257
5243
  case "}":
5258
- const [B, C] = _.split("|");
5259
- if (_ = "", B.toLowerCase() === "currency")
5260
- _ = ye;
5261
- else if (B.toLowerCase() === "amount") {
5262
- let y = ",", H = ".", J = 2;
5263
- C && (C[0] !== " " && (y = C[0]), C[1] !== " " && (H = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (J = Number(C[2])));
5264
- let [de, ne] = String(Math.floor(u * 10 ** J) / 10 ** J).split(".");
5265
- _ += de[0];
5266
- for (let $ = 1; $ < de.length; ++$)
5267
- (de.length - $) % 3 === 0 ? _ += y + de[$] : _ += de[$];
5268
- ne && (_ += H + ne);
5244
+ const [T, C] = p.split("|");
5245
+ if (p = "", T.toLowerCase() === "currency")
5246
+ p = K;
5247
+ else if (T.toLowerCase() === "amount") {
5248
+ let S = ",", B = ".", N = 2;
5249
+ C && (C[0] !== " " && (S = C[0]), C[1] !== " " && (B = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (N = Number(C[2])));
5250
+ let [ee, Ae] = String(Math.floor(c * 10 ** N) / 10 ** N).split(".");
5251
+ p += ee[0];
5252
+ for (let X = 1; X < ee.length; ++X)
5253
+ (ee.length - X) % 3 === 0 ? p += S + ee[X] : p += ee[X];
5254
+ Ae && (p += B + Ae);
5269
5255
  }
5270
- _ && d.push(_), _ = "";
5256
+ p && d.push(p), p = "";
5271
5257
  break;
5272
5258
  }
5273
- return d.push(_), d.join("");
5274
- }, Ye = async () => {
5275
- n(2, Z = !0);
5276
- const u = new URL(`${s}/v1/player/${i}/account`);
5259
+ return d.push(p), d.join("");
5260
+ }, me = async () => {
5261
+ n(2, k = !0);
5262
+ const c = new URL(`${s}/v1/player/${i}/account`);
5277
5263
  try {
5278
- const d = await fetch(u, {
5264
+ const d = await fetch(c, {
5279
5265
  method: "GET",
5280
5266
  headers: { "X-SessionID": o }
5281
- }), _ = await d.json();
5267
+ }), p = await d.json();
5282
5268
  if (d.ok)
5283
- window.postMessage({ type: "BalancedFetched" }, window.location.href), ce = _.items, ye = ce.find((g) => g.displayName === "Casino")?.currency, n(1, x.Total = [{ amount: _.totalAmount[ye] }], x), n(
5269
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), he = p.items, K = he.find((v) => v.displayName === "Casino")?.currency, n(1, x.Total = [{ amount: p.totalAmount[K] }], x), n(
5284
5270
  1,
5285
5271
  x.Real = [
5286
5272
  {
5287
- amount: ce.find((g) => g.displayName === "Casino")?.balanceAmount
5273
+ amount: he.find((v) => v.displayName === "Casino")?.balanceAmount
5288
5274
  }
5289
5275
  ],
5290
5276
  x
@@ -5292,7 +5278,7 @@ function la(e, t, n) {
5292
5278
  1,
5293
5279
  x.Bonus = [
5294
5280
  {
5295
- amount: ce.find((g) => g.displayName === "UBS")?.balanceAmount
5281
+ amount: he.find((v) => v.displayName === "UBS")?.balanceAmount
5296
5282
  }
5297
5283
  ],
5298
5284
  x
@@ -5302,36 +5288,36 @@ function la(e, t, n) {
5302
5288
  } catch (d) {
5303
5289
  console.log("Balance error: ", d);
5304
5290
  } finally {
5305
- n(2, Z = !1);
5291
+ n(2, k = !1);
5306
5292
  }
5307
- }, st = () => {
5308
- n(2, Z = !0);
5309
- const u = new URL(`${s}/v2/player/${i}/balance`), d = new Headers();
5310
- d.append("X-SessionID", o), fetch(u, { method: "GET", headers: d }).then((g) => g.json()).then((g) => {
5311
- g[E] || n(10, E = ae[0]);
5312
- const B = g.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
5313
- if (ye = B.currency, F = !!B.productType, n(1, x.Total = [{ amount: 0 }], x), n(1, x.Real = [], x), n(1, x.Bonus = [], x), n(1, x.Credit = [], x), !F) {
5314
- Ae = {
5293
+ }, Qe = () => {
5294
+ n(2, k = !0);
5295
+ const c = new URL(`${s}/v2/player/${i}/balance`), d = new Headers();
5296
+ d.append("X-SessionID", o), fetch(c, { method: "GET", headers: d }).then((v) => v.json()).then((v) => {
5297
+ v[_] || n(10, _ = ye[0]);
5298
+ const T = v.items.find((S) => S.type === "Real" && S.walletAccountType === "Ordinary");
5299
+ if (K = T.currency, Z = !!T.productType, n(1, x.Total = [{ amount: 0 }], x), n(1, x.Real = [], x), n(1, x.Bonus = [], x), n(1, x.Credit = [], x), !Z) {
5300
+ ge = {
5315
5301
  lastOrdinaryAfterAmount: 0,
5316
5302
  showCreditLineAfterAmount: !1
5317
- }, n(1, x.Total[0].amount = g[E][ye], x);
5318
- for (const y of g.items)
5319
- switch (y.type) {
5303
+ }, n(1, x.Total[0].amount = v[_][K], x);
5304
+ for (const S of v.items)
5305
+ switch (S.type) {
5320
5306
  case "Bonus":
5321
- x.Bonus.length === 0 ? x.Bonus.push({ amount: y.amount }) : n(1, x.Bonus[0].amount += y.amount, x);
5307
+ x.Bonus.length === 0 ? x.Bonus.push({ amount: S.amount }) : n(1, x.Bonus[0].amount += S.amount, x);
5322
5308
  break;
5323
5309
  case "Real":
5324
- if (y.creditLine && x.Credit.length === 0 && x.Credit.push({ amount: y.creditLine }), E === "totalRealAmount")
5310
+ if (S.creditLine && x.Credit.length === 0 && x.Credit.push({ amount: S.creditLine }), _ === "totalRealAmount")
5325
5311
  continue;
5326
- x.Real.length === 0 ? x.Real.push({ amount: y.amount }) : n(1, x.Real[0].amount += y.amount, x);
5312
+ x.Real.length === 0 ? x.Real.push({ amount: S.amount }) : n(1, x.Real[0].amount += S.amount, x);
5327
5313
  break;
5328
5314
  }
5329
- for (const [y, H] of Object.entries(x))
5330
- H.length < 1 && delete x[y];
5331
- n(2, Z = !1);
5315
+ for (const [S, B] of Object.entries(x))
5316
+ B.length < 1 && delete x[S];
5317
+ n(2, k = !1);
5332
5318
  return;
5333
5319
  }
5334
- Ae = {
5320
+ ge = {
5335
5321
  Casino: {
5336
5322
  lastOrdinaryAfterAmount: 0,
5337
5323
  showCreditLineAfterAmount: !1
@@ -5341,202 +5327,202 @@ function la(e, t, n) {
5341
5327
  showCreditLineAfterAmount: !1
5342
5328
  }
5343
5329
  };
5344
- let C = g.items;
5345
- S && S !== "All" && (C = g.items.filter((y) => y.productType === S));
5346
- for (const y of C) {
5347
- let H;
5348
- switch (y.type) {
5330
+ let C = v.items;
5331
+ w && w !== "All" && (C = v.items.filter((S) => S.productType === w));
5332
+ for (const S of C) {
5333
+ let B;
5334
+ switch (S.type) {
5349
5335
  case "Bonus":
5350
- H = x.Bonus.findIndex((J) => J.productType === y.productType), H > 0 ? n(1, x.Bonus[H].amount += y.amount, x) : x.Bonus.push({
5351
- amount: y.amount,
5352
- productType: y.productType
5336
+ B = x.Bonus.findIndex((N) => N.productType === S.productType), B > 0 ? n(1, x.Bonus[B].amount += S.amount, x) : x.Bonus.push({
5337
+ amount: S.amount,
5338
+ productType: S.productType
5353
5339
  });
5354
5340
  break;
5355
5341
  case "Real":
5356
- y.creditLine && x.Credit.push({
5357
- amount: y.creditLine,
5358
- productType: y.productType
5359
- }), H = x.Real.findIndex((J) => J.productType === y.productType), H > 0 ? n(1, x.Real[H].amount += y.amount, x) : x.Real.push({
5360
- amount: y.amount,
5361
- productType: y.productType
5342
+ S.creditLine && x.Credit.push({
5343
+ amount: S.creditLine,
5344
+ productType: S.productType
5345
+ }), B = x.Real.findIndex((N) => N.productType === S.productType), B > 0 ? n(1, x.Real[B].amount += S.amount, x) : x.Real.push({
5346
+ amount: S.amount,
5347
+ productType: S.productType
5362
5348
  });
5363
5349
  break;
5364
5350
  }
5365
5351
  }
5366
- Le();
5367
- for (const [y, H] of Object.entries(x))
5368
- H.length < 1 && delete x[y];
5369
- n(2, Z = !1);
5370
- }).catch((g) => {
5371
- throw n(2, Z = !1), console.log("Balance fetch error", g), new Error("Failed to fetch balance data!");
5352
+ ut();
5353
+ for (const [S, B] of Object.entries(x))
5354
+ B.length < 1 && delete x[S];
5355
+ n(2, k = !1);
5356
+ }).catch((v) => {
5357
+ throw n(2, k = !1), console.log("Balance fetch error", v), new Error("Failed to fetch balance data!");
5372
5358
  });
5373
- }, Qe = () => {
5374
- if (te && te.close(), o.length < 1)
5359
+ }, Le = () => {
5360
+ if (F && F.close(), o.length < 1)
5375
5361
  return;
5376
- let u, d;
5377
- switch (p) {
5362
+ let c, d;
5363
+ switch (m) {
5378
5364
  case "gm16":
5379
- u = new URL(`${s}/v2/player/${i}/information/updates`), d = (B) => Ke(B);
5365
+ c = new URL(`${s}/v2/player/${i}/information/updates`), d = (T) => Ke(T);
5380
5366
  break;
5381
5367
  case "gmcore":
5382
- u = new URL(`${s}/v1/player/${i}/balance/updates`), d = (B) => Ct(B);
5368
+ c = new URL(`${s}/v1/player/${i}/balance/updates`), d = (T) => Ct(T);
5383
5369
  break;
5384
5370
  }
5385
- const _ = {
5371
+ const p = {
5386
5372
  accept: "text/event-stream",
5387
5373
  "X-SessionId": o
5388
- }, g = new ko.EventSourcePolyfill(u, { headers: _ });
5389
- te = g, g.addEventListener("message", d);
5390
- }, lt = (u) => {
5374
+ }, v = new Go.EventSourcePolyfill(c, { headers: p });
5375
+ F = v, v.addEventListener("message", d);
5376
+ }, st = (c) => {
5391
5377
  let d;
5392
5378
  try {
5393
- d = JSON.parse(u);
5394
- } catch (_) {
5395
- console.log("Balance stream failed: ", _);
5379
+ d = JSON.parse(c);
5380
+ } catch (p) {
5381
+ console.log("Balance stream failed: ", p);
5396
5382
  return;
5397
5383
  }
5398
5384
  return d;
5399
- }, Ct = (u) => {
5400
- const d = lt(u.data);
5385
+ }, Ct = (c) => {
5386
+ const d = st(c.data);
5401
5387
  if (!d) {
5402
- Qe();
5388
+ Le();
5403
5389
  return;
5404
5390
  }
5405
- let _ = "0";
5406
- const g = d.balanceChange;
5407
- ce = ce.map((B) => (g && g[B.id] && (B = {
5408
- ...B,
5409
- balanceAmount: g[B.id].afterAmount
5410
- }), _ = (parseFloat(B?.balanceAmount) + parseFloat(_)).toString(), B)), n(1, x.Real = [{ amount: ce[0]?.balanceAmount }], x), n(1, x.Bonus = [{ amount: ce[1]?.balanceAmount }], x), n(1, x.Total = [{ amount: Number(_) }], x);
5411
- }, Je = (u, d, _) => {
5412
- let g = null;
5413
- switch (_.walletAccountType) {
5391
+ let p = "0";
5392
+ const v = d.balanceChange;
5393
+ he = he.map((T) => (v && v[T.id] && (T = {
5394
+ ...T,
5395
+ balanceAmount: v[T.id].afterAmount
5396
+ }), p = (parseFloat(T?.balanceAmount) + parseFloat(p)).toString(), T)), n(1, x.Real = [{ amount: he[0]?.balanceAmount }], x), n(1, x.Bonus = [{ amount: he[1]?.balanceAmount }], x), n(1, x.Total = [{ amount: Number(p) }], x);
5397
+ }, Je = (c, d, p) => {
5398
+ let v = null;
5399
+ switch (p.walletAccountType) {
5414
5400
  case "Ordinary":
5415
- (_.afterAmount !== _.affectedAmount || d.lastOrdinaryAfterAmount === 0) && (d.lastOrdinaryAfterAmount = _.afterAmount, d.showCreditLineAfterAmount || (g = _.afterAmount));
5401
+ (p.afterAmount !== p.affectedAmount || d.lastOrdinaryAfterAmount === 0) && (d.lastOrdinaryAfterAmount = p.afterAmount, d.showCreditLineAfterAmount || (v = p.afterAmount));
5416
5402
  break;
5417
5403
  case "CreditLine":
5418
- _.afterAmount !== 0 ? (g = _.afterAmount, d.showCreditLineAfterAmount = !0) : (g = d.lastOrdinaryAfterAmount, d.showCreditLineAfterAmount = !1);
5404
+ p.afterAmount !== 0 ? (v = p.afterAmount, d.showCreditLineAfterAmount = !0) : (v = d.lastOrdinaryAfterAmount, d.showCreditLineAfterAmount = !1);
5419
5405
  break;
5420
5406
  default:
5421
- g = _.afterAmount;
5407
+ v = p.afterAmount;
5422
5408
  }
5423
- return g === null ? u : g;
5424
- }, Le = () => {
5425
- switch (E) {
5409
+ return v === null ? c : v;
5410
+ }, ut = () => {
5411
+ switch (_) {
5426
5412
  case "totalCashAmount":
5427
- let u = 0;
5428
- for (const _ of ["Real", "Bonus"])
5429
- for (const g of x[_])
5430
- u += Math.max(g.amount, 0);
5431
- n(1, x.Total[0].amount = u, x);
5413
+ let c = 0;
5414
+ for (const p of ["Real", "Bonus"])
5415
+ for (const v of x[p])
5416
+ c += Math.max(v.amount, 0);
5417
+ n(1, x.Total[0].amount = c, x);
5432
5418
  break;
5433
5419
  case "totalRealAmount":
5434
- if (!F)
5420
+ if (!Z)
5435
5421
  return;
5436
5422
  let d = 0;
5437
- for (const _ of x.Real)
5438
- d += _.amount;
5423
+ for (const p of x.Real)
5424
+ d += p.amount;
5439
5425
  n(1, x.Total[0].amount = d, x);
5440
5426
  }
5441
- }, Ke = (u) => {
5442
- const d = lt(u.data);
5427
+ }, Ke = (c) => {
5428
+ const d = st(c.data);
5443
5429
  if (!d) {
5444
- Qe();
5430
+ Le();
5445
5431
  return;
5446
5432
  }
5447
- if (se(d?.type) || d.type !== "BALANCE_UPDATE_V2")
5433
+ if (Be(d?.type) || d.type !== "BALANCE_UPDATE_V2")
5448
5434
  return;
5449
- const _ = d.body.balanceChange;
5450
- for (const [g, B] of Object.entries(_))
5451
- if (E === "totalRealAmount" && g === "Real" && !F && n(1, x.Total[0].amount = Je(x.Total[0].amount, Ae, B), x), !!x[g])
5452
- for (const C of x[g]) {
5453
- if (!F) {
5454
- C.amount = g === "Real" ? Je(C.amount, Ae, B) : B.afterAmount;
5435
+ const p = d.body.balanceChange;
5436
+ for (const [v, T] of Object.entries(p))
5437
+ if (_ === "totalRealAmount" && v === "Real" && !Z && n(1, x.Total[0].amount = Je(x.Total[0].amount, ge, T), x), !!x[v])
5438
+ for (const C of x[v]) {
5439
+ if (!Z) {
5440
+ C.amount = v === "Real" ? Je(C.amount, ge, T) : T.afterAmount;
5455
5441
  continue;
5456
5442
  }
5457
- B.productType === C.productType && (C.amount = g === "Real" ? Je(C.amount, Ae[C.productType], B) : B.afterAmount);
5443
+ T.productType === C.productType && (C.amount = v === "Real" ? Je(C.amount, ge[C.productType], T) : T.afterAmount);
5458
5444
  }
5459
- Le();
5460
- }, ve = () => {
5461
- fe("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5462
- }, se = (u) => u === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Ht = () => {
5463
- ae.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${ae}. Using default value ('${ae[0]}').`), n(10, E = ae[0]));
5464
- }, Ot = () => {
5465
- switch (jo(a), Ht(), p) {
5445
+ ut();
5446
+ }, Pe = () => {
5447
+ le("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5448
+ }, Be = (c) => c === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, ae = () => {
5449
+ ye.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ye}. Using default value ('${ye[0]}').`), n(10, _ = ye[0]));
5450
+ }, Ht = () => {
5451
+ switch (Fo(a), ae(), m) {
5466
5452
  case "gmcore":
5467
- Ye();
5453
+ me();
5468
5454
  break;
5469
5455
  case "gm16":
5470
- st();
5456
+ Qe();
5471
5457
  break;
5472
5458
  default:
5473
- throw Error(`Invalid apiversion attribute: ${p}`);
5459
+ throw Error(`Invalid apiversion attribute: ${m}`);
5474
5460
  }
5475
- }, ut = (u) => u.data && u.data.type === "LogoutSuccessfull" && te.close(), ct = () => {
5461
+ }, lt = (c) => c.data && c.data.type === "LogoutSuccessfull" && F.close(), Ot = () => {
5476
5462
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5477
5463
  };
5478
- Ir(() => (window.addEventListener("message", ut, !1), n(5, X = ra(k)), () => {
5479
- window.emMessageBus && Q && Q.unsubscribe(), window.removeEventListener("message", ut), te && te.close();
5464
+ Rr(() => (window.addEventListener("message", lt, !1), n(5, U = ta(q)), () => {
5465
+ window.removeEventListener("message", lt), F && F.close();
5480
5466
  }));
5481
- const h = () => fe("balance"), v = () => fe("closebalance"), w = () => ve(), b = () => fe("closebalance");
5482
- function A(u) {
5483
- jt[u ? "unshift" : "push"](() => {
5484
- U = u, n(0, U);
5467
+ const ct = () => le("balance"), h = () => le("closebalance"), y = () => Pe(), E = () => le("closebalance");
5468
+ function g(c) {
5469
+ Gt[c ? "unshift" : "push"](() => {
5470
+ D = c, n(0, D);
5485
5471
  });
5486
5472
  }
5487
- return e.$$set = (u) => {
5488
- "userid" in u && n(11, i = u.userid), "session" in u && n(12, o = u.session), "endpoint" in u && n(13, s = u.endpoint), "lang" in u && n(14, a = u.lang), "mbsource" in u && n(15, c = u.mbsource), "clientstyling" in u && n(16, l = u.clientstyling), "clientstylingurl" in u && n(17, f = u.clientstylingurl), "translationurl" in u && n(18, m = u.translationurl), "gmversion" in u && n(19, p = u.gmversion), "displaybalanceoption" in u && n(20, S = u.displaybalanceoption), "totalcalculationmode" in u && n(10, E = u.totalcalculationmode), "currencylocale" in u && n(21, T = u.currencylocale), "currencydisplay" in u && n(22, N = u.currencydisplay), "maximumfractiondigits" in u && n(23, W = u.maximumfractiondigits), "minimumfractiondigits" in u && n(24, V = u.minimumfractiondigits), "customdisplayformat" in u && n(25, L = u.customdisplayformat);
5473
+ return e.$$set = (c) => {
5474
+ "userid" in c && n(11, i = c.userid), "session" in c && n(12, o = c.session), "endpoint" in c && n(13, s = c.endpoint), "lang" in c && n(14, a = c.lang), "mbsource" in c && n(15, l = c.mbsource), "clientstyling" in c && n(16, u = c.clientstyling), "clientstylingurl" in c && n(17, f = c.clientstylingurl), "translationurl" in c && n(18, b = c.translationurl), "gmversion" in c && n(19, m = c.gmversion), "displaybalanceoption" in c && n(20, w = c.displaybalanceoption), "totalcalculationmode" in c && n(10, _ = c.totalcalculationmode), "currencylocale" in c && n(21, A = c.currencylocale), "currencydisplay" in c && n(22, I = c.currencydisplay), "maximumfractiondigits" in c && n(23, W = c.maximumfractiondigits), "minimumfractiondigits" in c && n(24, V = c.minimumfractiondigits), "customdisplayformat" in c && n(25, R = c.customdisplayformat);
5489
5475
  }, e.$$.update = () => {
5490
5476
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5491
- 1603584 && s && i && o && a && p && S && Ot(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5492
- 538624 && s && i && o && p && Qe(), e.$$.dirty[0] & /*translationurl*/
5493
- 262144 && m && Ce(), e.$$.dirty[0] & /*balances*/
5494
- 2 && x.Total && ct(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5495
- 65537 && l && U && qr(U, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5496
- 131073 && f && U && Yr(U, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5497
- 32769 && c && U && Qr(U, `${c}.Style`);
5477
+ 1603584 && s && i && o && a && m && w && Ht(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5478
+ 538624 && s && i && o && m && Le(), e.$$.dirty[0] & /*translationurl*/
5479
+ 262144 && b && pe(), e.$$.dirty[0] & /*balances*/
5480
+ 2 && x.Total && Ot(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5481
+ 65537 && u && D && zr(D, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5482
+ 131073 && f && D && Wr(D, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5483
+ 32769 && l && D && Zr(D, `${l}.Style`);
5498
5484
  }, [
5499
- U,
5500
- x,
5501
- Z,
5502
- ee,
5503
5485
  D,
5504
- X,
5486
+ x,
5487
+ k,
5488
+ oe,
5489
+ $,
5490
+ U,
5505
5491
  r,
5506
- fe,
5507
- qe,
5508
- ve,
5509
- E,
5492
+ le,
5493
+ He,
5494
+ Pe,
5495
+ _,
5510
5496
  i,
5511
5497
  o,
5512
5498
  s,
5513
5499
  a,
5514
- c,
5515
5500
  l,
5501
+ u,
5516
5502
  f,
5503
+ b,
5517
5504
  m,
5518
- p,
5519
- S,
5520
- T,
5521
- N,
5505
+ w,
5506
+ A,
5507
+ I,
5522
5508
  W,
5523
5509
  V,
5524
- L,
5510
+ R,
5511
+ ct,
5525
5512
  h,
5526
- v,
5527
- w,
5528
- b,
5529
- A
5513
+ y,
5514
+ E,
5515
+ g
5530
5516
  ];
5531
5517
  }
5532
- class ua extends Wr {
5518
+ class sa extends Vr {
5533
5519
  constructor(t) {
5534
- super(), Xr(
5520
+ super(), kr(
5535
5521
  this,
5536
5522
  t,
5537
- la,
5538
- sa,
5539
- $n,
5523
+ aa,
5524
+ oa,
5525
+ jn,
5540
5526
  {
5541
5527
  userid: 11,
5542
5528
  session: 12,
@@ -5555,7 +5541,7 @@ class ua extends Wr {
5555
5541
  minimumfractiondigits: 24,
5556
5542
  customdisplayformat: 25
5557
5543
  },
5558
- ia,
5544
+ na,
5559
5545
  [-1, -1]
5560
5546
  );
5561
5547
  }
@@ -5563,100 +5549,100 @@ class ua extends Wr {
5563
5549
  return this.$$.ctx[11];
5564
5550
  }
5565
5551
  set userid(t) {
5566
- this.$$set({ userid: t }), Y();
5552
+ this.$$set({ userid: t }), Q();
5567
5553
  }
5568
5554
  get session() {
5569
5555
  return this.$$.ctx[12];
5570
5556
  }
5571
5557
  set session(t) {
5572
- this.$$set({ session: t }), Y();
5558
+ this.$$set({ session: t }), Q();
5573
5559
  }
5574
5560
  get endpoint() {
5575
5561
  return this.$$.ctx[13];
5576
5562
  }
5577
5563
  set endpoint(t) {
5578
- this.$$set({ endpoint: t }), Y();
5564
+ this.$$set({ endpoint: t }), Q();
5579
5565
  }
5580
5566
  get lang() {
5581
5567
  return this.$$.ctx[14];
5582
5568
  }
5583
5569
  set lang(t) {
5584
- this.$$set({ lang: t }), Y();
5570
+ this.$$set({ lang: t }), Q();
5585
5571
  }
5586
5572
  get mbsource() {
5587
5573
  return this.$$.ctx[15];
5588
5574
  }
5589
5575
  set mbsource(t) {
5590
- this.$$set({ mbsource: t }), Y();
5576
+ this.$$set({ mbsource: t }), Q();
5591
5577
  }
5592
5578
  get clientstyling() {
5593
5579
  return this.$$.ctx[16];
5594
5580
  }
5595
5581
  set clientstyling(t) {
5596
- this.$$set({ clientstyling: t }), Y();
5582
+ this.$$set({ clientstyling: t }), Q();
5597
5583
  }
5598
5584
  get clientstylingurl() {
5599
5585
  return this.$$.ctx[17];
5600
5586
  }
5601
5587
  set clientstylingurl(t) {
5602
- this.$$set({ clientstylingurl: t }), Y();
5588
+ this.$$set({ clientstylingurl: t }), Q();
5603
5589
  }
5604
5590
  get translationurl() {
5605
5591
  return this.$$.ctx[18];
5606
5592
  }
5607
5593
  set translationurl(t) {
5608
- this.$$set({ translationurl: t }), Y();
5594
+ this.$$set({ translationurl: t }), Q();
5609
5595
  }
5610
5596
  get gmversion() {
5611
5597
  return this.$$.ctx[19];
5612
5598
  }
5613
5599
  set gmversion(t) {
5614
- this.$$set({ gmversion: t }), Y();
5600
+ this.$$set({ gmversion: t }), Q();
5615
5601
  }
5616
5602
  get displaybalanceoption() {
5617
5603
  return this.$$.ctx[20];
5618
5604
  }
5619
5605
  set displaybalanceoption(t) {
5620
- this.$$set({ displaybalanceoption: t }), Y();
5606
+ this.$$set({ displaybalanceoption: t }), Q();
5621
5607
  }
5622
5608
  get totalcalculationmode() {
5623
5609
  return this.$$.ctx[10];
5624
5610
  }
5625
5611
  set totalcalculationmode(t) {
5626
- this.$$set({ totalcalculationmode: t }), Y();
5612
+ this.$$set({ totalcalculationmode: t }), Q();
5627
5613
  }
5628
5614
  get currencylocale() {
5629
5615
  return this.$$.ctx[21];
5630
5616
  }
5631
5617
  set currencylocale(t) {
5632
- this.$$set({ currencylocale: t }), Y();
5618
+ this.$$set({ currencylocale: t }), Q();
5633
5619
  }
5634
5620
  get currencydisplay() {
5635
5621
  return this.$$.ctx[22];
5636
5622
  }
5637
5623
  set currencydisplay(t) {
5638
- this.$$set({ currencydisplay: t }), Y();
5624
+ this.$$set({ currencydisplay: t }), Q();
5639
5625
  }
5640
5626
  get maximumfractiondigits() {
5641
5627
  return this.$$.ctx[23];
5642
5628
  }
5643
5629
  set maximumfractiondigits(t) {
5644
- this.$$set({ maximumfractiondigits: t }), Y();
5630
+ this.$$set({ maximumfractiondigits: t }), Q();
5645
5631
  }
5646
5632
  get minimumfractiondigits() {
5647
5633
  return this.$$.ctx[24];
5648
5634
  }
5649
5635
  set minimumfractiondigits(t) {
5650
- this.$$set({ minimumfractiondigits: t }), Y();
5636
+ this.$$set({ minimumfractiondigits: t }), Q();
5651
5637
  }
5652
5638
  get customdisplayformat() {
5653
5639
  return this.$$.ctx[25];
5654
5640
  }
5655
5641
  set customdisplayformat(t) {
5656
- this.$$set({ customdisplayformat: t }), Y();
5642
+ this.$$set({ customdisplayformat: t }), Q();
5657
5643
  }
5658
5644
  }
5659
- zr(ua, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5645
+ $r(sa, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5660
5646
  export {
5661
- ua as P
5647
+ sa as P
5662
5648
  };