@everymatrix/player-account-balance-modal-nd 1.77.20 → 1.77.22

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,24 +1,24 @@
1
1
  function ce() {
2
2
  }
3
- function Ur(e) {
3
+ function $r(e) {
4
4
  return e();
5
5
  }
6
- function sr() {
6
+ function fr() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function ze(e) {
10
- e.forEach(Ur);
9
+ function Xe(e) {
10
+ e.forEach($r);
11
11
  }
12
- function nr(e) {
12
+ function ur(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Fr(e, t) {
15
+ function Vr(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function xn(e) {
18
+ function An(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function Gr(e, ...t) {
21
+ function Xr(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const n of t)
24
24
  n(void 0);
@@ -27,20 +27,20 @@ function Gr(e, ...t) {
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function wn(e, t, r) {
31
- e.$$.on_destroy.push(Gr(t, r));
30
+ function Cn(e, t, r) {
31
+ e.$$.on_destroy.push(Xr(t, r));
32
32
  }
33
- function P(e, t) {
33
+ function M(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function Sn(e, t, r) {
37
- const n = Tn(e);
36
+ function Hn(e, t, r) {
37
+ const n = On(e);
38
38
  if (!n.getElementById(t)) {
39
- const i = j("style");
40
- i.id = t, i.textContent = r, Bn(n, i);
39
+ const i = G("style");
40
+ i.id = t, i.textContent = r, Pn(n, i);
41
41
  }
42
42
  }
43
- function Tn(e) {
43
+ function On(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,52 +50,52 @@ function Tn(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function Bn(e, t) {
54
- return P(
53
+ function Pn(e, t) {
54
+ return M(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function be(e, t, r) {
60
+ function ge(e, t, r) {
61
61
  e.insertBefore(t, r || null);
62
62
  }
63
63
  function de(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function jr(e, t) {
66
+ function zr(e, t) {
67
67
  for (let r = 0; r < e.length; r += 1)
68
68
  e[r] && e[r].d(t);
69
69
  }
70
- function j(e) {
70
+ function G(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function lr(e) {
73
+ function dr(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
- function xe(e) {
76
+ function we(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
- function we() {
80
- return xe(" ");
79
+ function Se() {
80
+ return we(" ");
81
81
  }
82
- function An() {
83
- return xe("");
82
+ function Rn() {
83
+ return we("");
84
84
  }
85
85
  function vt(e, t, r, n) {
86
86
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
87
87
  }
88
- function R(e, t, r) {
88
+ function P(e, t, r) {
89
89
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
90
90
  }
91
- function Cn(e) {
91
+ function Mn(e) {
92
92
  return Array.from(e.childNodes);
93
93
  }
94
- function Re(e, t) {
94
+ function Pe(e, t) {
95
95
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
96
96
  t);
97
97
  }
98
- function Hn(e) {
98
+ function Ln(e) {
99
99
  const t = {};
100
100
  return e.childNodes.forEach(
101
101
  /** @param {Element} node */
@@ -104,128 +104,128 @@ function Hn(e) {
104
104
  }
105
105
  ), t;
106
106
  }
107
- let nt;
108
- function rt(e) {
109
- nt = e;
107
+ let rt;
108
+ function tt(e) {
109
+ rt = e;
110
110
  }
111
- function On() {
112
- if (!nt)
111
+ function Nn() {
112
+ if (!rt)
113
113
  throw new Error("Function called outside component initialization");
114
- return nt;
114
+ return rt;
115
115
  }
116
- function Rn(e) {
117
- On().$$.on_mount.push(e);
116
+ function In(e) {
117
+ Nn().$$.on_mount.push(e);
118
118
  }
119
- const Fe = [], Gt = [];
119
+ const Fe = [], $t = [];
120
120
  let Ge = [];
121
- const ur = [], Mn = /* @__PURE__ */ Promise.resolve();
122
- let jt = !1;
123
- function Ln() {
124
- jt || (jt = !0, Mn.then(Q));
121
+ const pr = [], Dn = /* @__PURE__ */ Promise.resolve();
122
+ let Vt = !1;
123
+ function Un() {
124
+ Vt || (Vt = !0, Dn.then(Q));
125
125
  }
126
- function kt(e) {
126
+ function Xt(e) {
127
127
  Ge.push(e);
128
128
  }
129
- const Lt = /* @__PURE__ */ new Set();
129
+ const Nt = /* @__PURE__ */ new Set();
130
130
  let De = 0;
131
131
  function Q() {
132
132
  if (De !== 0)
133
133
  return;
134
- const e = nt;
134
+ const e = rt;
135
135
  do {
136
136
  try {
137
137
  for (; De < Fe.length; ) {
138
138
  const t = Fe[De];
139
- De++, rt(t), Pn(t.$$);
139
+ De++, tt(t), Fn(t.$$);
140
140
  }
141
141
  } catch (t) {
142
142
  throw Fe.length = 0, De = 0, t;
143
143
  }
144
- for (rt(null), Fe.length = 0, De = 0; Gt.length; )
145
- Gt.pop()();
144
+ for (tt(null), Fe.length = 0, De = 0; $t.length; )
145
+ $t.pop()();
146
146
  for (let t = 0; t < Ge.length; t += 1) {
147
147
  const r = Ge[t];
148
- Lt.has(r) || (Lt.add(r), r());
148
+ Nt.has(r) || (Nt.add(r), r());
149
149
  }
150
150
  Ge.length = 0;
151
151
  } while (Fe.length);
152
- for (; ur.length; )
153
- ur.pop()();
154
- jt = !1, Lt.clear(), rt(e);
152
+ for (; pr.length; )
153
+ pr.pop()();
154
+ Vt = !1, Nt.clear(), tt(e);
155
155
  }
156
- function Pn(e) {
156
+ function Fn(e) {
157
157
  if (e.fragment !== null) {
158
- e.update(), ze(e.before_update);
158
+ e.update(), Xe(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(kt);
160
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xt);
161
161
  }
162
162
  }
163
- function Nn(e) {
163
+ function Gn(e) {
164
164
  const t = [], r = [];
165
165
  Ge.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Ge = t;
166
166
  }
167
- const In = /* @__PURE__ */ new Set();
168
- function Dn(e, t) {
169
- e && e.i && (In.delete(e), e.i(t));
167
+ const jn = /* @__PURE__ */ new Set();
168
+ function kn(e, t) {
169
+ e && e.i && (jn.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 Un(e, t, r) {
174
+ function $n(e, t, r) {
175
175
  const { fragment: n, after_update: i } = e.$$;
176
- n && n.m(t, r), kt(() => {
177
- const o = e.$$.on_mount.map(Ur).filter(nr);
178
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ze(o), e.$$.on_mount = [];
179
- }), i.forEach(kt);
176
+ n && n.m(t, r), Xt(() => {
177
+ const o = e.$$.on_mount.map($r).filter(ur);
178
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Xe(o), e.$$.on_mount = [];
179
+ }), i.forEach(Xt);
180
180
  }
181
- function Fn(e, t) {
181
+ function Vn(e, t) {
182
182
  const r = e.$$;
183
- r.fragment !== null && (Nn(r.after_update), ze(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
183
+ r.fragment !== null && (Gn(r.after_update), Xe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
184
184
  }
185
- function Gn(e, t) {
186
- e.$$.dirty[0] === -1 && (Fe.push(e), Ln(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
185
+ function Xn(e, t) {
186
+ e.$$.dirty[0] === -1 && (Fe.push(e), Un(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
187
187
  }
188
- function jn(e, t, r, n, i, o, s = null, a = [-1]) {
189
- const u = nt;
190
- rt(e);
191
- const l = e.$$ = {
188
+ function zn(e, t, r, n, i, o, s = null, a = [-1]) {
189
+ const l = rt;
190
+ tt(e);
191
+ const u = e.$$ = {
192
192
  fragment: null,
193
193
  ctx: [],
194
194
  // state
195
195
  props: o,
196
196
  update: ce,
197
197
  not_equal: i,
198
- bound: sr(),
198
+ bound: fr(),
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 || (u ? u.$$.context : [])),
205
+ context: new Map(t.context || (l ? l.$$.context : [])),
206
206
  // everything else
207
- callbacks: sr(),
207
+ callbacks: fr(),
208
208
  dirty: a,
209
209
  skip_bound: !1,
210
- root: t.target || u.$$.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 = r ? r(e, t.props || {}, (b, m, ...w) => {
214
+ if (u.ctx = r ? r(e, t.props || {}, (b, m, ...w) => {
215
215
  const _ = w.length ? w[0] : m;
216
- return l.ctx && i(l.ctx[b], l.ctx[b] = _) && (!l.skip_bound && l.bound[b] && l.bound[b](_), f && Gn(e, b)), m;
217
- }) : [], l.update(), f = !0, ze(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
216
+ return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), f && Xn(e, b)), m;
217
+ }) : [], u.update(), f = !0, Xe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
218
218
  if (t.hydrate) {
219
- const b = Cn(t.target);
220
- l.fragment && l.fragment.l(b), b.forEach(de);
219
+ const b = Mn(t.target);
220
+ u.fragment && u.fragment.l(b), b.forEach(de);
221
221
  } else
222
- l.fragment && l.fragment.c();
223
- t.intro && Dn(e.$$.fragment), Un(e, t.target, t.anchor), Q();
222
+ u.fragment && u.fragment.c();
223
+ t.intro && kn(e.$$.fragment), $n(e, t.target, t.anchor), Q();
224
224
  }
225
- rt(u);
225
+ tt(l);
226
226
  }
227
- let kr;
228
- typeof HTMLElement == "function" && (kr = class extends HTMLElement {
227
+ let Wr;
228
+ typeof HTMLElement == "function" && (Wr = class extends HTMLElement {
229
229
  /** The Svelte component constructor */
230
230
  $$ctor;
231
231
  /** Slots */
@@ -267,24 +267,24 @@ typeof HTMLElement == "function" && (kr = 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 = G("slot"), i !== "default" && P(o, "name", i);
271
271
  },
272
272
  /**
273
273
  * @param {HTMLElement} target
274
274
  * @param {HTMLElement} [anchor]
275
275
  */
276
- m: function(u, l) {
277
- be(u, o, l);
276
+ m: function(l, u) {
277
+ ge(l, o, u);
278
278
  },
279
- d: function(u) {
280
- u && de(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 = {}, r = Hn(this);
287
+ const t = {}, r = Ln(this);
288
288
  for (const i of this.$$s)
289
289
  i in r && (t[i] = [e(i)]);
290
290
  for (const i of this.attributes) {
@@ -371,8 +371,8 @@ function mt(e, t, r, n) {
371
371
  return t;
372
372
  }
373
373
  }
374
- function kn(e, t, r, n, i, o) {
375
- let s = class extends kr {
374
+ function Wn(e, t, r, n, i, o) {
375
+ let s = class extends Wr {
376
376
  constructor() {
377
377
  super(e, r, i), this.$$p_d = t;
378
378
  }
@@ -387,8 +387,8 @@ function kn(e, t, r, n, i, o) {
387
387
  get() {
388
388
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
389
389
  },
390
- set(u) {
391
- u = mt(a, u, t), this.$$d[a] = u, this.$$c?.$set({ [a]: u });
390
+ set(l) {
391
+ l = mt(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
392
392
  }
393
393
  });
394
394
  }), n.forEach((a) => {
@@ -400,7 +400,7 @@ function kn(e, t, r, n, i, o) {
400
400
  }), e.element = /** @type {any} */
401
401
  s, s;
402
402
  }
403
- class $n {
403
+ class Zn {
404
404
  /**
405
405
  * ### PRIVATE API
406
406
  *
@@ -419,7 +419,7 @@ class $n {
419
419
  $$set = void 0;
420
420
  /** @returns {void} */
421
421
  $destroy() {
422
- Fn(this, 1), this.$destroy = ce;
422
+ Vn(this, 1), this.$destroy = ce;
423
423
  }
424
424
  /**
425
425
  * @template {Extract<keyof Events, string>} K
@@ -428,7 +428,7 @@ class $n {
428
428
  * @returns {() => void}
429
429
  */
430
430
  $on(t, r) {
431
- if (!nr(r))
431
+ if (!ur(r))
432
432
  return ce;
433
433
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
434
434
  return n.push(r), () => {
@@ -441,18 +441,18 @@ class $n {
441
441
  * @returns {void}
442
442
  */
443
443
  $set(t) {
444
- this.$$set && !xn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
444
+ this.$$set && !An(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
445
445
  }
446
446
  }
447
- const Vn = "4";
448
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vn);
449
- function Xn(e, t) {
447
+ const qn = "4";
448
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(qn);
449
+ function Yn(e, t) {
450
450
  if (e) {
451
451
  const r = document.createElement("style");
452
452
  r.innerHTML = t, e.appendChild(r);
453
453
  }
454
454
  }
455
- function zn(e, t) {
455
+ function Qn(e, t) {
456
456
  const r = new URL(t);
457
457
  fetch(r.href).then((n) => n.text()).then((n) => {
458
458
  const i = document.createElement("style");
@@ -461,7 +461,7 @@ function zn(e, t) {
461
461
  console.error("There was an error while trying to load client styling from URL", n);
462
462
  });
463
463
  }
464
- function Wn(e, t, r) {
464
+ function Jn(e, t, r) {
465
465
  if (window.emMessageBus) {
466
466
  const n = document.createElement("style");
467
467
  window.emMessageBus.subscribe(t, (i) => {
@@ -470,22 +470,22 @@ function Wn(e, t, r) {
470
470
  }
471
471
  }
472
472
  const Ue = [];
473
- function Zn(e, t) {
473
+ function Kn(e, t) {
474
474
  return {
475
- subscribe: wt(e, t).subscribe
475
+ subscribe: St(e, t).subscribe
476
476
  };
477
477
  }
478
- function wt(e, t = ce) {
478
+ function St(e, t = ce) {
479
479
  let r;
480
480
  const n = /* @__PURE__ */ new Set();
481
481
  function i(a) {
482
- if (Fr(e, a) && (e = a, r)) {
483
- const u = !Ue.length;
484
- for (const l of n)
485
- l[1](), Ue.push(l, e);
486
- if (u) {
487
- for (let l = 0; l < Ue.length; l += 2)
488
- Ue[l][0](Ue[l + 1]);
482
+ if (Vr(e, a) && (e = a, r)) {
483
+ const l = !Ue.length;
484
+ for (const u of n)
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
489
  Ue.length = 0;
490
490
  }
491
491
  }
@@ -493,162 +493,148 @@ function wt(e, t = ce) {
493
493
  function o(a) {
494
494
  i(a(e));
495
495
  }
496
- function s(a, u = ce) {
497
- const l = [a, u];
498
- return n.add(l), n.size === 1 && (r = t(i, o) || ce), a(e), () => {
499
- n.delete(l), n.size === 0 && r && (r(), r = null);
496
+ function s(a, l = ce) {
497
+ const u = [a, l];
498
+ return n.add(u), n.size === 1 && (r = t(i, o) || ce), a(e), () => {
499
+ n.delete(u), n.size === 0 && r && (r(), r = null);
500
500
  };
501
501
  }
502
502
  return { set: i, update: o, subscribe: s };
503
503
  }
504
- function We(e, t, r) {
504
+ function ze(e, t, r) {
505
505
  const n = !Array.isArray(e), i = n ? [e] : e;
506
506
  if (!i.every(Boolean))
507
507
  throw new Error("derived() expects stores as input, got a falsy value");
508
508
  const o = t.length < 2;
509
- return Zn(r, (s, a) => {
510
- let u = !1;
511
- const l = [];
509
+ return Kn(r, (s, a) => {
510
+ let l = !1;
511
+ const u = [];
512
512
  let f = 0, b = ce;
513
513
  const m = () => {
514
514
  if (f)
515
515
  return;
516
516
  b();
517
- const _ = t(n ? l[0] : l, s, a);
518
- o ? s(_) : b = nr(_) ? _ : ce;
517
+ const _ = t(n ? u[0] : u, s, a);
518
+ o ? s(_) : b = ur(_) ? _ : ce;
519
519
  }, w = i.map(
520
- (_, A) => Gr(
520
+ (_, A) => Xr(
521
521
  _,
522
- (I) => {
523
- l[A] = I, f &= ~(1 << A), u && m();
522
+ (N) => {
523
+ u[A] = N, f &= ~(1 << A), l && m();
524
524
  },
525
525
  () => {
526
526
  f |= 1 << A;
527
527
  }
528
528
  )
529
529
  );
530
- return u = !0, m(), function() {
531
- ze(w), b(), u = !1;
530
+ return l = !0, m(), function() {
531
+ Xe(w), b(), l = !1;
532
532
  };
533
533
  });
534
534
  }
535
- var qn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
536
- function Yn(e) {
535
+ var ei = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
536
+ function ti(e) {
537
537
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
538
538
  }
539
- var Qn = function(t) {
540
- return Jn(t) && !Kn(t);
539
+ var ri = function(t) {
540
+ return ni(t) && !ii(t);
541
541
  };
542
- function Jn(e) {
542
+ function ni(e) {
543
543
  return !!e && typeof e == "object";
544
544
  }
545
- function Kn(e) {
545
+ function ii(e) {
546
546
  var t = Object.prototype.toString.call(e);
547
- return t === "[object RegExp]" || t === "[object Date]" || ri(e);
547
+ return t === "[object RegExp]" || t === "[object Date]" || si(e);
548
548
  }
549
- var ei = typeof Symbol == "function" && Symbol.for, ti = ei ? Symbol.for("react.element") : 60103;
550
- function ri(e) {
551
- return e.$$typeof === ti;
549
+ var oi = typeof Symbol == "function" && Symbol.for, ai = oi ? Symbol.for("react.element") : 60103;
550
+ function si(e) {
551
+ return e.$$typeof === ai;
552
552
  }
553
- function ni(e) {
553
+ function ui(e) {
554
554
  return Array.isArray(e) ? [] : {};
555
555
  }
556
- function it(e, t) {
557
- return t.clone !== !1 && t.isMergeableObject(e) ? ke(ni(e), e, t) : e;
556
+ function nt(e, t) {
557
+ return t.clone !== !1 && t.isMergeableObject(e) ? je(ui(e), e, t) : e;
558
558
  }
559
- function ii(e, t, r) {
559
+ function li(e, t, r) {
560
560
  return e.concat(t).map(function(n) {
561
- return it(n, r);
561
+ return nt(n, r);
562
562
  });
563
563
  }
564
- function oi(e, t) {
564
+ function ci(e, t) {
565
565
  if (!t.customMerge)
566
- return ke;
566
+ return je;
567
567
  var r = t.customMerge(e);
568
- return typeof r == "function" ? r : ke;
568
+ return typeof r == "function" ? r : je;
569
569
  }
570
- function ai(e) {
570
+ function hi(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 cr(e) {
576
- return Object.keys(e).concat(ai(e));
575
+ function mr(e) {
576
+ return Object.keys(e).concat(hi(e));
577
577
  }
578
- function $r(e, t) {
578
+ function Zr(e, t) {
579
579
  try {
580
580
  return t in e;
581
581
  } catch {
582
582
  return !1;
583
583
  }
584
584
  }
585
- function si(e, t) {
586
- return $r(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
585
+ function fi(e, t) {
586
+ return Zr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
587
587
  }
588
- function li(e, t, r) {
588
+ function di(e, t, r) {
589
589
  var n = {};
590
- return r.isMergeableObject(e) && cr(e).forEach(function(i) {
591
- n[i] = it(e[i], r);
592
- }), cr(t).forEach(function(i) {
593
- si(e, i) || ($r(e, i) && r.isMergeableObject(t[i]) ? n[i] = oi(i, r)(e[i], t[i], r) : n[i] = it(t[i], r));
590
+ return r.isMergeableObject(e) && mr(e).forEach(function(i) {
591
+ n[i] = nt(e[i], r);
592
+ }), mr(t).forEach(function(i) {
593
+ fi(e, i) || (Zr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ci(i, r)(e[i], t[i], r) : n[i] = nt(t[i], r));
594
594
  }), n;
595
595
  }
596
- function ke(e, t, r) {
597
- r = r || {}, r.arrayMerge = r.arrayMerge || ii, r.isMergeableObject = r.isMergeableObject || Qn, r.cloneUnlessOtherwiseSpecified = it;
596
+ function je(e, t, r) {
597
+ r = r || {}, r.arrayMerge = r.arrayMerge || li, r.isMergeableObject = r.isMergeableObject || ri, r.cloneUnlessOtherwiseSpecified = nt;
598
598
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
599
- return o ? n ? r.arrayMerge(e, t, r) : li(e, t, r) : it(t, r);
599
+ return o ? n ? r.arrayMerge(e, t, r) : di(e, t, r) : nt(t, r);
600
600
  }
601
- ke.all = function(t, r) {
601
+ je.all = function(t, r) {
602
602
  if (!Array.isArray(t))
603
603
  throw new Error("first argument should be an array");
604
604
  return t.reduce(function(n, i) {
605
- return ke(n, i, r);
605
+ return je(n, i, r);
606
606
  }, {});
607
607
  };
608
- var ui = ke, ci = ui;
609
- const hi = /* @__PURE__ */ Yn(ci);
610
- /*! *****************************************************************************
611
- Copyright (c) Microsoft Corporation.
612
-
613
- Permission to use, copy, modify, and/or distribute this software for any
614
- purpose with or without fee is hereby granted.
615
-
616
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
617
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
618
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
619
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
620
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
621
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
622
- PERFORMANCE OF THIS SOFTWARE.
623
- ***************************************************************************** */
624
- var $t = function(e, t) {
625
- return $t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
608
+ var pi = je, mi = pi;
609
+ const bi = /* @__PURE__ */ ti(mi);
610
+ var zt = function(e, t) {
611
+ return zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
626
612
  r.__proto__ = n;
627
613
  } || function(r, n) {
628
614
  for (var i in n)
629
615
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
630
- }, $t(e, t);
616
+ }, zt(e, t);
631
617
  };
632
- function Te(e, t) {
618
+ function Tt(e, t) {
633
619
  if (typeof t != "function" && t !== null)
634
620
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
635
- $t(e, t);
621
+ zt(e, t);
636
622
  function r() {
637
623
  this.constructor = e;
638
624
  }
639
625
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
640
626
  }
641
- var L = function() {
642
- return L = Object.assign || function(t) {
627
+ var be = function() {
628
+ return be = Object.assign || function(t) {
643
629
  for (var r, n = 1, i = arguments.length; n < i; n++) {
644
630
  r = arguments[n];
645
631
  for (var o in r)
646
632
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
647
633
  }
648
634
  return t;
649
- }, L.apply(this, arguments);
635
+ }, be.apply(this, arguments);
650
636
  };
651
- function fi(e, t) {
637
+ function gi(e, t) {
652
638
  var r = {};
653
639
  for (var n in e)
654
640
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -657,75 +643,43 @@ function fi(e, t) {
657
643
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
658
644
  return r;
659
645
  }
660
- function Vt(e) {
661
- var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
662
- if (r)
663
- return r.call(e);
664
- if (e && typeof e.length == "number")
665
- return {
666
- next: function() {
667
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
668
- }
669
- };
670
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
671
- }
672
- function Xt(e, t) {
673
- var r = typeof Symbol == "function" && e[Symbol.iterator];
674
- if (!r)
675
- return e;
676
- var n = r.call(e), i, o = [], s;
677
- try {
678
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
679
- o.push(i.value);
680
- } catch (a) {
681
- s = { error: a };
682
- } finally {
683
- try {
684
- i && !i.done && (r = n.return) && r.call(n);
685
- } finally {
686
- if (s)
687
- throw s.error;
688
- }
689
- }
690
- return o;
691
- }
692
- function je(e, t, r) {
646
+ function It(e, t, r) {
693
647
  if (r || arguments.length === 2)
694
648
  for (var n = 0, i = t.length, o; n < i; n++)
695
649
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
696
- return e.concat(o || t);
650
+ return e.concat(o || Array.prototype.slice.call(t));
697
651
  }
698
- function Pt(e, t) {
699
- var r = t && t.cache ? t.cache : vi, n = t && t.serializer ? t.serializer : gi, i = t && t.strategy ? t.strategy : mi;
652
+ function Dt(e, t) {
653
+ var r = t && t.cache ? t.cache : Si, n = t && t.serializer ? t.serializer : xi, i = t && t.strategy ? t.strategy : _i;
700
654
  return i(e, {
701
655
  cache: r,
702
656
  serializer: n
703
657
  });
704
658
  }
705
- function di(e) {
659
+ function yi(e) {
706
660
  return e == null || typeof e == "number" || typeof e == "boolean";
707
661
  }
708
- function pi(e, t, r, n) {
709
- var i = di(n) ? n : r(n), o = t.get(i);
662
+ function vi(e, t, r, n) {
663
+ var i = yi(n) ? n : r(n), o = t.get(i);
710
664
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
711
665
  }
712
- function Vr(e, t, r) {
666
+ function qr(e, t, r) {
713
667
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
714
668
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
715
669
  }
716
- function Xr(e, t, r, n, i) {
670
+ function Yr(e, t, r, n, i) {
717
671
  return r.bind(t, e, n, i);
718
672
  }
719
- function mi(e, t) {
720
- var r = e.length === 1 ? pi : Vr;
721
- return Xr(e, this, r, t.cache.create(), t.serializer);
673
+ function _i(e, t) {
674
+ var r = e.length === 1 ? vi : qr;
675
+ return Yr(e, this, r, t.cache.create(), t.serializer);
722
676
  }
723
- function bi(e, t) {
724
- return Xr(e, this, Vr, t.cache.create(), t.serializer);
677
+ function Ei(e, t) {
678
+ return Yr(e, this, qr, t.cache.create(), t.serializer);
725
679
  }
726
- var gi = function() {
680
+ var xi = function() {
727
681
  return JSON.stringify(arguments);
728
- }, yi = (
682
+ }, wi = (
729
683
  /** @class */
730
684
  function() {
731
685
  function e() {
@@ -737,61 +691,71 @@ var gi = function() {
737
691
  this.cache[t] = r;
738
692
  }, e;
739
693
  }()
740
- ), vi = {
694
+ ), Si = {
741
695
  create: function() {
742
- return new yi();
696
+ return new wi();
743
697
  }
744
- }, Nt = {
745
- variadic: bi
746
- }, H;
698
+ }, Ut = {
699
+ variadic: Ei
700
+ }, Et = function() {
701
+ return Et = Object.assign || function(t) {
702
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
703
+ r = arguments[n];
704
+ for (var o in r)
705
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
706
+ }
707
+ return t;
708
+ }, Et.apply(this, arguments);
709
+ };
710
+ var H;
747
711
  (function(e) {
748
712
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
749
713
  })(H || (H = {}));
750
- var G;
714
+ var F;
751
715
  (function(e) {
752
716
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
753
- })(G || (G = {}));
754
- var $e;
717
+ })(F || (F = {}));
718
+ var ke;
755
719
  (function(e) {
756
720
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
757
- })($e || ($e = {}));
758
- function hr(e) {
759
- return e.type === G.literal;
721
+ })(ke || (ke = {}));
722
+ function br(e) {
723
+ return e.type === F.literal;
760
724
  }
761
- function _i(e) {
762
- return e.type === G.argument;
725
+ function Ti(e) {
726
+ return e.type === F.argument;
763
727
  }
764
- function zr(e) {
765
- return e.type === G.number;
728
+ function Qr(e) {
729
+ return e.type === F.number;
766
730
  }
767
- function Wr(e) {
768
- return e.type === G.date;
731
+ function Jr(e) {
732
+ return e.type === F.date;
769
733
  }
770
- function Zr(e) {
771
- return e.type === G.time;
734
+ function Kr(e) {
735
+ return e.type === F.time;
772
736
  }
773
- function qr(e) {
774
- return e.type === G.select;
737
+ function en(e) {
738
+ return e.type === F.select;
775
739
  }
776
- function Yr(e) {
777
- return e.type === G.plural;
740
+ function tn(e) {
741
+ return e.type === F.plural;
778
742
  }
779
- function Ei(e) {
780
- return e.type === G.pound;
743
+ function Bi(e) {
744
+ return e.type === F.pound;
781
745
  }
782
- function Qr(e) {
783
- return e.type === G.tag;
746
+ function rn(e) {
747
+ return e.type === F.tag;
784
748
  }
785
- function Jr(e) {
786
- return !!(e && typeof e == "object" && e.type === $e.number);
749
+ function nn(e) {
750
+ return !!(e && typeof e == "object" && e.type === ke.number);
787
751
  }
788
- function zt(e) {
789
- return !!(e && typeof e == "object" && e.type === $e.dateTime);
752
+ function Wt(e) {
753
+ return !!(e && typeof e == "object" && e.type === ke.dateTime);
790
754
  }
791
- var Kr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, xi = /(?:[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;
792
- function wi(e) {
755
+ var on = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ai = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
756
+ function Ci(e) {
793
757
  var t = {};
794
- return e.replace(xi, function(r) {
758
+ return e.replace(Ai, function(r) {
795
759
  var n = r.length;
796
760
  switch (r[0]) {
797
761
  case "G":
@@ -880,36 +844,46 @@ function wi(e) {
880
844
  return "";
881
845
  }), t;
882
846
  }
883
- var Si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
884
- function Ti(e) {
847
+ var $ = function() {
848
+ return $ = Object.assign || function(t) {
849
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
850
+ r = arguments[n];
851
+ for (var o in r)
852
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
853
+ }
854
+ return t;
855
+ }, $.apply(this, arguments);
856
+ };
857
+ var Hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
858
+ function Oi(e) {
885
859
  if (e.length === 0)
886
860
  throw new Error("Number skeleton cannot be empty");
887
- for (var t = e.split(Si).filter(function(m) {
861
+ for (var t = e.split(Hi).filter(function(m) {
888
862
  return m.length > 0;
889
863
  }), r = [], n = 0, i = t; n < i.length; n++) {
890
864
  var o = i[n], s = o.split("/");
891
865
  if (s.length === 0)
892
866
  throw new Error("Invalid number skeleton");
893
- for (var a = s[0], u = s.slice(1), l = 0, f = u; l < f.length; l++) {
894
- var b = f[l];
867
+ for (var a = s[0], l = s.slice(1), u = 0, f = l; u < f.length; u++) {
868
+ var b = f[u];
895
869
  if (b.length === 0)
896
870
  throw new Error("Invalid number skeleton");
897
871
  }
898
- r.push({ stem: a, options: u });
872
+ r.push({ stem: a, options: l });
899
873
  }
900
874
  return r;
901
875
  }
902
- function Bi(e) {
876
+ function Pi(e) {
903
877
  return e.replace(/^(.*?)-/, "");
904
878
  }
905
- var fr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, en = /^(@+)?(\+|#+)?[rs]?$/g, Ai = /(\*)(0+)|(#+)(0+)|(0+)/g, tn = /^(0+)$/;
906
- function dr(e) {
879
+ var gr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, an = /^(@+)?(\+|#+)?[rs]?$/g, Ri = /(\*)(0+)|(#+)(0+)|(0+)/g, sn = /^(0+)$/;
880
+ function yr(e) {
907
881
  var t = {};
908
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(en, function(r, n, i) {
882
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(an, function(r, n, i) {
909
883
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
910
884
  }), t;
911
885
  }
912
- function rn(e) {
886
+ function un(e) {
913
887
  switch (e) {
914
888
  case "sign-auto":
915
889
  return {
@@ -949,7 +923,7 @@ function rn(e) {
949
923
  };
950
924
  }
951
925
  }
952
- function Ci(e) {
926
+ function Mi(e) {
953
927
  var t;
954
928
  if (e[0] === "E" && e[1] === "E" ? (t = {
955
929
  notation: "engineering"
@@ -957,17 +931,17 @@ function Ci(e) {
957
931
  notation: "scientific"
958
932
  }, e = e.slice(1)), t) {
959
933
  var r = e.slice(0, 2);
960
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tn.test(e))
934
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !sn.test(e))
961
935
  throw new Error("Malformed concise eng/scientific notation");
962
936
  t.minimumIntegerDigits = e.length;
963
937
  }
964
938
  return t;
965
939
  }
966
- function pr(e) {
967
- var t = {}, r = rn(e);
940
+ function vr(e) {
941
+ var t = {}, r = un(e);
968
942
  return r || t;
969
943
  }
970
- function Hi(e) {
944
+ function Li(e) {
971
945
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
972
946
  var i = n[r];
973
947
  switch (i.stem) {
@@ -991,7 +965,7 @@ function Hi(e) {
991
965
  continue;
992
966
  case "measure-unit":
993
967
  case "unit":
994
- t.style = "unit", t.unit = Bi(i.options[0]);
968
+ t.style = "unit", t.unit = Pi(i.options[0]);
995
969
  continue;
996
970
  case "compact-short":
997
971
  case "K":
@@ -1002,13 +976,13 @@ function Hi(e) {
1002
976
  t.notation = "compact", t.compactDisplay = "long";
1003
977
  continue;
1004
978
  case "scientific":
1005
- t = L(L(L({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
1006
- return L(L({}, u), pr(l));
979
+ t = $($($({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
980
+ return $($({}, l), vr(u));
1007
981
  }, {}));
1008
982
  continue;
1009
983
  case "engineering":
1010
- t = L(L(L({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1011
- return L(L({}, u), pr(l));
984
+ t = $($($({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
985
+ return $($({}, l), vr(u));
1012
986
  }, {}));
1013
987
  continue;
1014
988
  case "notation-simple":
@@ -1053,8 +1027,8 @@ function Hi(e) {
1053
1027
  case "integer-width":
1054
1028
  if (i.options.length > 1)
1055
1029
  throw new RangeError("integer-width stems only accept a single optional option");
1056
- i.options[0].replace(Ai, function(u, l, f, b, m, w) {
1057
- if (l)
1030
+ i.options[0].replace(Ri, function(l, u, f, b, m, w) {
1031
+ if (u)
1058
1032
  t.minimumIntegerDigits = f.length;
1059
1033
  else {
1060
1034
  if (b && m)
@@ -1066,28 +1040,28 @@ function Hi(e) {
1066
1040
  });
1067
1041
  continue;
1068
1042
  }
1069
- if (tn.test(i.stem)) {
1043
+ if (sn.test(i.stem)) {
1070
1044
  t.minimumIntegerDigits = i.stem.length;
1071
1045
  continue;
1072
1046
  }
1073
- if (fr.test(i.stem)) {
1047
+ if (gr.test(i.stem)) {
1074
1048
  if (i.options.length > 1)
1075
1049
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1076
- i.stem.replace(fr, function(u, l, f, b, m, w) {
1077
- return f === "*" ? t.minimumFractionDigits = l.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : m && w ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + w.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1050
+ i.stem.replace(gr, function(l, u, f, b, m, w) {
1051
+ 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), "";
1078
1052
  });
1079
1053
  var o = i.options[0];
1080
- o === "w" ? t = L(L({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = L(L({}, t), dr(o)));
1054
+ o === "w" ? t = $($({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = $($({}, t), yr(o)));
1081
1055
  continue;
1082
1056
  }
1083
- if (en.test(i.stem)) {
1084
- t = L(L({}, t), dr(i.stem));
1057
+ if (an.test(i.stem)) {
1058
+ t = $($({}, t), yr(i.stem));
1085
1059
  continue;
1086
1060
  }
1087
- var s = rn(i.stem);
1088
- s && (t = L(L({}, t), s));
1089
- var a = Ci(i.stem);
1090
- a && (t = L(L({}, t), a));
1061
+ var s = un(i.stem);
1062
+ s && (t = $($({}, t), s));
1063
+ var a = Mi(i.stem);
1064
+ a && (t = $($({}, t), a));
1091
1065
  }
1092
1066
  return t;
1093
1067
  }
@@ -2506,23 +2480,23 @@ var dt = {
2506
2480
  "h"
2507
2481
  ]
2508
2482
  };
2509
- function Oi(e, t) {
2483
+ function Ni(e, t) {
2510
2484
  for (var r = "", n = 0; n < e.length; n++) {
2511
2485
  var i = e.charAt(n);
2512
2486
  if (i === "j") {
2513
2487
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2514
2488
  o++, n++;
2515
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Ri(t);
2516
- for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2517
- r += u;
2489
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Ii(t);
2490
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2491
+ r += l;
2518
2492
  for (; s-- > 0; )
2519
- r = l + r;
2493
+ r = u + r;
2520
2494
  } else
2521
2495
  i === "J" ? r += "H" : r += i;
2522
2496
  }
2523
2497
  return r;
2524
2498
  }
2525
- function Ri(e) {
2499
+ function Ii(e) {
2526
2500
  var t = e.hourCycle;
2527
2501
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2528
2502
  e.hourCycles && // @ts-ignore
@@ -2544,20 +2518,20 @@ function Ri(e) {
2544
2518
  var i = dt[n || ""] || dt[r || ""] || dt["".concat(r, "-001")] || dt["001"];
2545
2519
  return i[0];
2546
2520
  }
2547
- var It, Mi = new RegExp("^".concat(Kr.source, "*")), Li = new RegExp("".concat(Kr.source, "*$"));
2521
+ var Ft, Di = new RegExp("^".concat(on.source, "*")), Ui = new RegExp("".concat(on.source, "*$"));
2548
2522
  function O(e, t) {
2549
2523
  return { start: e, end: t };
2550
2524
  }
2551
- var Pi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ni = !!String.fromCodePoint, Ii = !!Object.fromEntries, Di = !!String.prototype.codePointAt, Ui = !!String.prototype.trimStart, Fi = !!String.prototype.trimEnd, Gi = !!Number.isSafeInteger, ji = Gi ? Number.isSafeInteger : function(e) {
2525
+ var Fi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Gi = !!String.fromCodePoint, ji = !!Object.fromEntries, ki = !!String.prototype.codePointAt, $i = !!String.prototype.trimStart, Vi = !!String.prototype.trimEnd, Xi = !!Number.isSafeInteger, zi = Xi ? Number.isSafeInteger : function(e) {
2552
2526
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2553
- }, Wt = !0;
2527
+ }, Zt = !0;
2554
2528
  try {
2555
- var ki = on("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2556
- Wt = ((It = ki.exec("a")) === null || It === void 0 ? void 0 : It[0]) === "a";
2529
+ var Wi = cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2530
+ Zt = ((Ft = Wi.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
2557
2531
  } catch {
2558
- Wt = !1;
2532
+ Zt = !1;
2559
2533
  }
2560
- var mr = Pi ? (
2534
+ var _r = Fi ? (
2561
2535
  // Native
2562
2536
  function(t, r, n) {
2563
2537
  return t.startsWith(r, n);
@@ -2567,7 +2541,7 @@ var mr = Pi ? (
2567
2541
  function(t, r, n) {
2568
2542
  return t.slice(n, n + r.length) === r;
2569
2543
  }
2570
- ), Zt = Ni ? String.fromCodePoint : (
2544
+ ), qt = Gi ? String.fromCodePoint : (
2571
2545
  // IE11
2572
2546
  function() {
2573
2547
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2579,9 +2553,9 @@ var mr = Pi ? (
2579
2553
  }
2580
2554
  return n;
2581
2555
  }
2582
- ), br = (
2556
+ ), Er = (
2583
2557
  // native
2584
- Ii ? Object.fromEntries : (
2558
+ ji ? Object.fromEntries : (
2585
2559
  // Ponyfill
2586
2560
  function(t) {
2587
2561
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2591,7 +2565,7 @@ var mr = Pi ? (
2591
2565
  return r;
2592
2566
  }
2593
2567
  )
2594
- ), nn = Di ? (
2568
+ ), ln = ki ? (
2595
2569
  // Native
2596
2570
  function(t, r) {
2597
2571
  return t.codePointAt(r);
@@ -2605,7 +2579,7 @@ var mr = Pi ? (
2605
2579
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2606
2580
  }
2607
2581
  }
2608
- ), $i = Ui ? (
2582
+ ), Zi = $i ? (
2609
2583
  // Native
2610
2584
  function(t) {
2611
2585
  return t.trimStart();
@@ -2613,9 +2587,9 @@ var mr = Pi ? (
2613
2587
  ) : (
2614
2588
  // Ponyfill
2615
2589
  function(t) {
2616
- return t.replace(Mi, "");
2590
+ return t.replace(Di, "");
2617
2591
  }
2618
- ), Vi = Fi ? (
2592
+ ), qi = Vi ? (
2619
2593
  // Native
2620
2594
  function(t) {
2621
2595
  return t.trimEnd();
@@ -2623,32 +2597,32 @@ var mr = Pi ? (
2623
2597
  ) : (
2624
2598
  // Ponyfill
2625
2599
  function(t) {
2626
- return t.replace(Li, "");
2600
+ return t.replace(Ui, "");
2627
2601
  }
2628
2602
  );
2629
- function on(e, t) {
2603
+ function cn(e, t) {
2630
2604
  return new RegExp(e, t);
2631
2605
  }
2632
- var qt;
2633
- if (Wt) {
2634
- var gr = on("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2635
- qt = function(t, r) {
2606
+ var Yt;
2607
+ if (Zt) {
2608
+ var xr = cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2609
+ Yt = function(t, r) {
2636
2610
  var n;
2637
- gr.lastIndex = r;
2638
- var i = gr.exec(t);
2611
+ xr.lastIndex = r;
2612
+ var i = xr.exec(t);
2639
2613
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2640
2614
  };
2641
2615
  } else
2642
- qt = function(t, r) {
2616
+ Yt = function(t, r) {
2643
2617
  for (var n = []; ; ) {
2644
- var i = nn(t, r);
2645
- if (i === void 0 || an(i) || Zi(i))
2618
+ var i = ln(t, r);
2619
+ if (i === void 0 || hn(i) || Ki(i))
2646
2620
  break;
2647
2621
  n.push(i), r += i >= 65536 ? 2 : 1;
2648
2622
  }
2649
- return Zt.apply(void 0, n);
2623
+ return qt.apply(void 0, n);
2650
2624
  };
2651
- var Xi = (
2625
+ var Yi = (
2652
2626
  /** @class */
2653
2627
  function() {
2654
2628
  function e(t, r) {
@@ -2672,14 +2646,14 @@ var Xi = (
2672
2646
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2673
2647
  var a = this.clonePosition();
2674
2648
  this.bump(), i.push({
2675
- type: G.pound,
2649
+ type: F.pound,
2676
2650
  location: O(a, this.clonePosition())
2677
2651
  });
2678
2652
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2679
2653
  if (n)
2680
2654
  break;
2681
2655
  return this.error(H.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
2682
- } else if (o === 60 && !this.ignoreTag && Yt(this.peek() || 0)) {
2656
+ } else if (o === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
2683
2657
  var s = this.parseTag(t, r);
2684
2658
  if (s.err)
2685
2659
  return s;
@@ -2700,7 +2674,7 @@ var Xi = (
2700
2674
  if (this.bumpSpace(), this.bumpIf("/>"))
2701
2675
  return {
2702
2676
  val: {
2703
- type: G.literal,
2677
+ type: F.literal,
2704
2678
  value: "<".concat(i, "/>"),
2705
2679
  location: O(n, this.clonePosition())
2706
2680
  },
@@ -2712,12 +2686,12 @@ var Xi = (
2712
2686
  return o;
2713
2687
  var s = o.val, a = this.clonePosition();
2714
2688
  if (this.bumpIf("</")) {
2715
- if (this.isEOF() || !Yt(this.char()))
2689
+ if (this.isEOF() || !Qt(this.char()))
2716
2690
  return this.error(H.INVALID_TAG, O(a, this.clonePosition()));
2717
- var u = this.clonePosition(), l = this.parseTagName();
2718
- return i !== l ? this.error(H.UNMATCHED_CLOSING_TAG, O(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2691
+ var l = this.clonePosition(), u = this.parseTagName();
2692
+ return i !== u ? this.error(H.UNMATCHED_CLOSING_TAG, O(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2719
2693
  val: {
2720
- type: G.tag,
2694
+ type: F.tag,
2721
2695
  value: i,
2722
2696
  children: s,
2723
2697
  location: O(n, this.clonePosition())
@@ -2730,7 +2704,7 @@ var Xi = (
2730
2704
  return this.error(H.INVALID_TAG, O(n, this.clonePosition()));
2731
2705
  }, e.prototype.parseTagName = function() {
2732
2706
  var t = this.offset();
2733
- for (this.bump(); !this.isEOF() && Wi(this.char()); )
2707
+ for (this.bump(); !this.isEOF() && Ji(this.char()); )
2734
2708
  this.bump();
2735
2709
  return this.message.slice(t, this.offset());
2736
2710
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2752,14 +2726,14 @@ var Xi = (
2752
2726
  }
2753
2727
  break;
2754
2728
  }
2755
- var u = O(n, this.clonePosition());
2729
+ var l = O(n, this.clonePosition());
2756
2730
  return {
2757
- val: { type: G.literal, value: i, location: u },
2731
+ val: { type: F.literal, value: i, location: l },
2758
2732
  err: null
2759
2733
  };
2760
2734
  }, e.prototype.tryParseLeftAngleBracket = function() {
2761
2735
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2762
- !zi(this.peek() || 0)) ? (this.bump(), "<") : null;
2736
+ !Qi(this.peek() || 0)) ? (this.bump(), "<") : null;
2763
2737
  }, e.prototype.tryParseQuote = function(t) {
2764
2738
  if (this.isEOF() || this.char() !== 39)
2765
2739
  return null;
@@ -2793,12 +2767,12 @@ var Xi = (
2793
2767
  r.push(n);
2794
2768
  this.bump();
2795
2769
  }
2796
- return Zt.apply(void 0, r);
2770
+ return qt.apply(void 0, r);
2797
2771
  }, e.prototype.tryParseUnquoted = function(t, r) {
2798
2772
  if (this.isEOF())
2799
2773
  return null;
2800
2774
  var n = this.char();
2801
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Zt(n));
2775
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qt(n));
2802
2776
  }, e.prototype.parseArgument = function(t, r) {
2803
2777
  var n = this.clonePosition();
2804
2778
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2814,7 +2788,7 @@ var Xi = (
2814
2788
  case 125:
2815
2789
  return this.bump(), {
2816
2790
  val: {
2817
- type: G.argument,
2791
+ type: F.argument,
2818
2792
  // value does not include the opening and closing braces.
2819
2793
  value: i,
2820
2794
  location: O(n, this.clonePosition())
@@ -2827,54 +2801,54 @@ var Xi = (
2827
2801
  return this.error(H.MALFORMED_ARGUMENT, O(n, this.clonePosition()));
2828
2802
  }
2829
2803
  }, e.prototype.parseIdentifierIfPossible = function() {
2830
- var t = this.clonePosition(), r = this.offset(), n = qt(this.message, r), i = r + n.length;
2804
+ var t = this.clonePosition(), r = this.offset(), n = Yt(this.message, r), i = r + n.length;
2831
2805
  this.bumpTo(i);
2832
2806
  var o = this.clonePosition(), s = O(t, o);
2833
2807
  return { value: n, location: s };
2834
2808
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2835
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2809
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2836
2810
  switch (a) {
2837
2811
  case "":
2838
- return this.error(H.EXPECT_ARGUMENT_TYPE, O(s, u));
2812
+ return this.error(H.EXPECT_ARGUMENT_TYPE, O(s, l));
2839
2813
  case "number":
2840
2814
  case "date":
2841
2815
  case "time": {
2842
2816
  this.bumpSpace();
2843
- var l = null;
2817
+ var u = null;
2844
2818
  if (this.bumpIf(",")) {
2845
2819
  this.bumpSpace();
2846
2820
  var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
2847
2821
  if (b.err)
2848
2822
  return b;
2849
- var m = Vi(b.val);
2823
+ var m = qi(b.val);
2850
2824
  if (m.length === 0)
2851
2825
  return this.error(H.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
2852
2826
  var w = O(f, this.clonePosition());
2853
- l = { style: m, styleLocation: w };
2827
+ u = { style: m, styleLocation: w };
2854
2828
  }
2855
2829
  var _ = this.tryParseArgumentClose(i);
2856
2830
  if (_.err)
2857
2831
  return _;
2858
2832
  var A = O(i, this.clonePosition());
2859
- if (l && mr(l?.style, "::", 0)) {
2860
- var I = $i(l.style.slice(2));
2833
+ if (u && _r(u?.style, "::", 0)) {
2834
+ var N = Zi(u.style.slice(2));
2861
2835
  if (a === "number") {
2862
- var b = this.parseNumberSkeletonFromString(I, l.styleLocation);
2836
+ var b = this.parseNumberSkeletonFromString(N, u.styleLocation);
2863
2837
  return b.err ? b : {
2864
- val: { type: G.number, value: n, location: A, style: b.val },
2838
+ val: { type: F.number, value: n, location: A, style: b.val },
2865
2839
  err: null
2866
2840
  };
2867
2841
  } else {
2868
- if (I.length === 0)
2842
+ if (N.length === 0)
2869
2843
  return this.error(H.EXPECT_DATE_TIME_SKELETON, A);
2870
- var W = I;
2871
- this.locale && (W = Oi(I, this.locale));
2844
+ var W = N;
2845
+ this.locale && (W = Ni(N, this.locale));
2872
2846
  var m = {
2873
- type: $e.dateTime,
2847
+ type: ke.dateTime,
2874
2848
  pattern: W,
2875
- location: l.styleLocation,
2876
- parsedOptions: this.shouldParseSkeletons ? wi(W) : {}
2877
- }, V = a === "date" ? G.date : G.time;
2849
+ location: u.styleLocation,
2850
+ parsedOptions: this.shouldParseSkeletons ? Ci(W) : {}
2851
+ }, V = a === "date" ? F.date : F.time;
2878
2852
  return {
2879
2853
  val: { type: V, value: n, location: A, style: m },
2880
2854
  err: null
@@ -2883,10 +2857,10 @@ var Xi = (
2883
2857
  }
2884
2858
  return {
2885
2859
  val: {
2886
- type: a === "number" ? G.number : a === "date" ? G.date : G.time,
2860
+ type: a === "number" ? F.number : a === "date" ? F.date : F.time,
2887
2861
  value: n,
2888
2862
  location: A,
2889
- style: (o = l?.style) !== null && o !== void 0 ? o : null
2863
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
2890
2864
  },
2891
2865
  err: null
2892
2866
  };
@@ -2894,21 +2868,21 @@ var Xi = (
2894
2868
  case "plural":
2895
2869
  case "selectordinal":
2896
2870
  case "select": {
2897
- var M = this.clonePosition();
2871
+ var R = this.clonePosition();
2898
2872
  if (this.bumpSpace(), !this.bumpIf(","))
2899
- return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(M, L({}, M)));
2873
+ return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(R, Et({}, R)));
2900
2874
  this.bumpSpace();
2901
- var D = this.parseIdentifierIfPossible(), k = 0;
2902
- if (a !== "select" && D.value === "offset") {
2875
+ var I = this.parseIdentifierIfPossible(), j = 0;
2876
+ if (a !== "select" && I.value === "offset") {
2903
2877
  if (!this.bumpIf(":"))
2904
2878
  return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
2905
2879
  this.bumpSpace();
2906
2880
  var b = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2907
2881
  if (b.err)
2908
2882
  return b;
2909
- this.bumpSpace(), D = this.parseIdentifierIfPossible(), k = b.val;
2883
+ this.bumpSpace(), I = this.parseIdentifierIfPossible(), j = b.val;
2910
2884
  }
2911
- var oe = this.tryParsePluralOrSelectOptions(t, a, r, D);
2885
+ var oe = this.tryParsePluralOrSelectOptions(t, a, r, I);
2912
2886
  if (oe.err)
2913
2887
  return oe;
2914
2888
  var _ = this.tryParseArgumentClose(i);
@@ -2917,18 +2891,18 @@ var Xi = (
2917
2891
  var Z = O(i, this.clonePosition());
2918
2892
  return a === "select" ? {
2919
2893
  val: {
2920
- type: G.select,
2894
+ type: F.select,
2921
2895
  value: n,
2922
- options: br(oe.val),
2896
+ options: Er(oe.val),
2923
2897
  location: Z
2924
2898
  },
2925
2899
  err: null
2926
2900
  } : {
2927
2901
  val: {
2928
- type: G.plural,
2902
+ type: F.plural,
2929
2903
  value: n,
2930
- options: br(oe.val),
2931
- offset: k,
2904
+ options: Er(oe.val),
2905
+ offset: j,
2932
2906
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2933
2907
  location: Z
2934
2908
  },
@@ -2936,7 +2910,7 @@ var Xi = (
2936
2910
  };
2937
2911
  }
2938
2912
  default:
2939
- return this.error(H.INVALID_ARGUMENT_TYPE, O(s, u));
2913
+ return this.error(H.INVALID_ARGUMENT_TYPE, O(s, l));
2940
2914
  }
2941
2915
  }, e.prototype.tryParseArgumentClose = function(t) {
2942
2916
  return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2978,34 +2952,34 @@ var Xi = (
2978
2952
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2979
2953
  var n = [];
2980
2954
  try {
2981
- n = Ti(t);
2955
+ n = Oi(t);
2982
2956
  } catch {
2983
2957
  return this.error(H.INVALID_NUMBER_SKELETON, r);
2984
2958
  }
2985
2959
  return {
2986
2960
  val: {
2987
- type: $e.number,
2961
+ type: ke.number,
2988
2962
  tokens: n,
2989
2963
  location: r,
2990
- parsedOptions: this.shouldParseSkeletons ? Hi(n) : {}
2964
+ parsedOptions: this.shouldParseSkeletons ? Li(n) : {}
2991
2965
  },
2992
2966
  err: null
2993
2967
  };
2994
2968
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2995
- for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
2996
- if (l.length === 0) {
2969
+ for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
2970
+ if (u.length === 0) {
2997
2971
  var b = this.clonePosition();
2998
2972
  if (r !== "select" && this.bumpIf("=")) {
2999
2973
  var m = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
3000
2974
  if (m.err)
3001
2975
  return m;
3002
- f = O(b, this.clonePosition()), l = this.message.slice(b.offset, this.offset());
2976
+ f = O(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
3003
2977
  } else
3004
2978
  break;
3005
2979
  }
3006
- if (u.has(l))
2980
+ if (l.has(u))
3007
2981
  return this.error(r === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3008
- l === "other" && (s = !0), this.bumpSpace();
2982
+ u === "other" && (s = !0), this.bumpSpace();
3009
2983
  var w = this.clonePosition();
3010
2984
  if (!this.bumpIf("{"))
3011
2985
  return this.error(r === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
@@ -3016,12 +2990,12 @@ var Xi = (
3016
2990
  if (A.err)
3017
2991
  return A;
3018
2992
  a.push([
3019
- l,
2993
+ u,
3020
2994
  {
3021
2995
  value: _.val,
3022
2996
  location: O(w, this.clonePosition())
3023
2997
  }
3024
- ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
2998
+ ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
3025
2999
  }
3026
3000
  return a.length === 0 ? this.error(r === "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 };
3027
3001
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
@@ -3034,8 +3008,8 @@ var Xi = (
3034
3008
  else
3035
3009
  break;
3036
3010
  }
3037
- var u = O(i, this.clonePosition());
3038
- return o ? (s *= n, ji(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
3011
+ var l = O(i, this.clonePosition());
3012
+ return o ? (s *= n, zi(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3039
3013
  }, e.prototype.offset = function() {
3040
3014
  return this.position.offset;
3041
3015
  }, e.prototype.isEOF = function() {
@@ -3050,7 +3024,7 @@ var Xi = (
3050
3024
  var t = this.position.offset;
3051
3025
  if (t >= this.message.length)
3052
3026
  throw Error("out of bound");
3053
- var r = nn(this.message, t);
3027
+ var r = ln(this.message, t);
3054
3028
  if (r === void 0)
3055
3029
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3056
3030
  return r;
@@ -3069,7 +3043,7 @@ var Xi = (
3069
3043
  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);
3070
3044
  }
3071
3045
  }, e.prototype.bumpIf = function(t) {
3072
- if (mr(this.message, t, this.offset())) {
3046
+ if (_r(this.message, t, this.offset())) {
3073
3047
  for (var r = 0; r < t.length; r++)
3074
3048
  this.bump();
3075
3049
  return !0;
@@ -3091,7 +3065,7 @@ var Xi = (
3091
3065
  break;
3092
3066
  }
3093
3067
  }, e.prototype.bumpSpace = function() {
3094
- for (; !this.isEOF() && an(this.char()); )
3068
+ for (; !this.isEOF() && hn(this.char()); )
3095
3069
  this.bump();
3096
3070
  }, e.prototype.peek = function() {
3097
3071
  if (this.isEOF())
@@ -3101,47 +3075,47 @@ var Xi = (
3101
3075
  }, e;
3102
3076
  }()
3103
3077
  );
3104
- function Yt(e) {
3078
+ function Qt(e) {
3105
3079
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3106
3080
  }
3107
- function zi(e) {
3108
- return Yt(e) || e === 47;
3081
+ function Qi(e) {
3082
+ return Qt(e) || e === 47;
3109
3083
  }
3110
- function Wi(e) {
3084
+ function Ji(e) {
3111
3085
  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;
3112
3086
  }
3113
- function an(e) {
3087
+ function hn(e) {
3114
3088
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3115
3089
  }
3116
- function Zi(e) {
3090
+ function Ki(e) {
3117
3091
  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;
3118
3092
  }
3119
- function Qt(e) {
3093
+ function Jt(e) {
3120
3094
  e.forEach(function(t) {
3121
- if (delete t.location, qr(t) || Yr(t))
3095
+ if (delete t.location, en(t) || tn(t))
3122
3096
  for (var r in t.options)
3123
- delete t.options[r].location, Qt(t.options[r].value);
3097
+ delete t.options[r].location, Jt(t.options[r].value);
3124
3098
  else
3125
- zr(t) && Jr(t.style) || (Wr(t) || Zr(t)) && zt(t.style) ? delete t.style.location : Qr(t) && Qt(t.children);
3099
+ Qr(t) && nn(t.style) || (Jr(t) || Kr(t)) && Wt(t.style) ? delete t.style.location : rn(t) && Jt(t.children);
3126
3100
  });
3127
3101
  }
3128
- function qi(e, t) {
3129
- t === void 0 && (t = {}), t = L({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3130
- var r = new Xi(e, t).parse();
3102
+ function eo(e, t) {
3103
+ t === void 0 && (t = {}), t = Et({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3104
+ var r = new Yi(e, t).parse();
3131
3105
  if (r.err) {
3132
3106
  var n = SyntaxError(H[r.err.kind]);
3133
3107
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3134
3108
  }
3135
- return t?.captureLocation || Qt(r.val), r.val;
3109
+ return t?.captureLocation || Jt(r.val), r.val;
3136
3110
  }
3137
- var Ve;
3111
+ var $e;
3138
3112
  (function(e) {
3139
3113
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3140
- })(Ve || (Ve = {}));
3141
- var St = (
3114
+ })($e || ($e = {}));
3115
+ var Bt = (
3142
3116
  /** @class */
3143
3117
  function(e) {
3144
- Te(t, e);
3118
+ Tt(t, e);
3145
3119
  function t(r, n, i) {
3146
3120
  var o = e.call(this, r) || this;
3147
3121
  return o.code = n, o.originalMessage = i, o;
@@ -3150,64 +3124,64 @@ var St = (
3150
3124
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3151
3125
  }, t;
3152
3126
  }(Error)
3153
- ), yr = (
3127
+ ), wr = (
3154
3128
  /** @class */
3155
3129
  function(e) {
3156
- Te(t, e);
3130
+ Tt(t, e);
3157
3131
  function t(r, n, i, o) {
3158
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ve.INVALID_VALUE, o) || this;
3132
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
3159
3133
  }
3160
3134
  return t;
3161
- }(St)
3162
- ), Yi = (
3135
+ }(Bt)
3136
+ ), to = (
3163
3137
  /** @class */
3164
3138
  function(e) {
3165
- Te(t, e);
3139
+ Tt(t, e);
3166
3140
  function t(r, n, i) {
3167
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ve.INVALID_VALUE, i) || this;
3141
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), $e.INVALID_VALUE, i) || this;
3168
3142
  }
3169
3143
  return t;
3170
- }(St)
3171
- ), Qi = (
3144
+ }(Bt)
3145
+ ), ro = (
3172
3146
  /** @class */
3173
3147
  function(e) {
3174
- Te(t, e);
3148
+ Tt(t, e);
3175
3149
  function t(r, n) {
3176
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ve.MISSING_VALUE, n) || this;
3150
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), $e.MISSING_VALUE, n) || this;
3177
3151
  }
3178
3152
  return t;
3179
- }(St)
3153
+ }(Bt)
3180
3154
  ), ie;
3181
3155
  (function(e) {
3182
3156
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3183
3157
  })(ie || (ie = {}));
3184
- function Ji(e) {
3158
+ function no(e) {
3185
3159
  return e.length < 2 ? e : e.reduce(function(t, r) {
3186
3160
  var n = t[t.length - 1];
3187
3161
  return !n || n.type !== ie.literal || r.type !== ie.literal ? t.push(r) : n.value += r.value, t;
3188
3162
  }, []);
3189
3163
  }
3190
- function Ki(e) {
3164
+ function io(e) {
3191
3165
  return typeof e == "function";
3192
3166
  }
3193
3167
  function bt(e, t, r, n, i, o, s) {
3194
- if (e.length === 1 && hr(e[0]))
3168
+ if (e.length === 1 && br(e[0]))
3195
3169
  return [
3196
3170
  {
3197
3171
  type: ie.literal,
3198
3172
  value: e[0].value
3199
3173
  }
3200
3174
  ];
3201
- for (var a = [], u = 0, l = e; u < l.length; u++) {
3202
- var f = l[u];
3203
- if (hr(f)) {
3175
+ for (var a = [], l = 0, u = e; l < u.length; l++) {
3176
+ var f = u[l];
3177
+ if (br(f)) {
3204
3178
  a.push({
3205
3179
  type: ie.literal,
3206
3180
  value: f.value
3207
3181
  });
3208
3182
  continue;
3209
3183
  }
3210
- if (Ei(f)) {
3184
+ if (Bi(f)) {
3211
3185
  typeof o == "number" && a.push({
3212
3186
  type: ie.literal,
3213
3187
  value: r.getNumberFormat(t).format(o)
@@ -3216,89 +3190,89 @@ function bt(e, t, r, n, i, o, s) {
3216
3190
  }
3217
3191
  var b = f.value;
3218
3192
  if (!(i && b in i))
3219
- throw new Qi(b, s);
3193
+ throw new ro(b, s);
3220
3194
  var m = i[b];
3221
- if (_i(f)) {
3195
+ if (Ti(f)) {
3222
3196
  (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
3223
3197
  type: typeof m == "string" ? ie.literal : ie.object,
3224
3198
  value: m
3225
3199
  });
3226
3200
  continue;
3227
3201
  }
3228
- if (Wr(f)) {
3229
- var w = typeof f.style == "string" ? n.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
3202
+ if (Jr(f)) {
3203
+ var w = typeof f.style == "string" ? n.date[f.style] : Wt(f.style) ? f.style.parsedOptions : void 0;
3230
3204
  a.push({
3231
3205
  type: ie.literal,
3232
3206
  value: r.getDateTimeFormat(t, w).format(m)
3233
3207
  });
3234
3208
  continue;
3235
3209
  }
3236
- if (Zr(f)) {
3237
- var w = typeof f.style == "string" ? n.time[f.style] : zt(f.style) ? f.style.parsedOptions : n.time.medium;
3210
+ if (Kr(f)) {
3211
+ var w = typeof f.style == "string" ? n.time[f.style] : Wt(f.style) ? f.style.parsedOptions : n.time.medium;
3238
3212
  a.push({
3239
3213
  type: ie.literal,
3240
3214
  value: r.getDateTimeFormat(t, w).format(m)
3241
3215
  });
3242
3216
  continue;
3243
3217
  }
3244
- if (zr(f)) {
3245
- var w = typeof f.style == "string" ? n.number[f.style] : Jr(f.style) ? f.style.parsedOptions : void 0;
3218
+ if (Qr(f)) {
3219
+ var w = typeof f.style == "string" ? n.number[f.style] : nn(f.style) ? f.style.parsedOptions : void 0;
3246
3220
  w && w.scale && (m = m * (w.scale || 1)), a.push({
3247
3221
  type: ie.literal,
3248
3222
  value: r.getNumberFormat(t, w).format(m)
3249
3223
  });
3250
3224
  continue;
3251
3225
  }
3252
- if (Qr(f)) {
3253
- var _ = f.children, A = f.value, I = i[A];
3254
- if (!Ki(I))
3255
- throw new Yi(A, "function", s);
3256
- var W = bt(_, t, r, n, i, o), V = I(W.map(function(k) {
3257
- return k.value;
3226
+ if (rn(f)) {
3227
+ var _ = f.children, A = f.value, N = i[A];
3228
+ if (!io(N))
3229
+ throw new to(A, "function", s);
3230
+ var W = bt(_, t, r, n, i, o), V = N(W.map(function(j) {
3231
+ return j.value;
3258
3232
  }));
3259
- Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(k) {
3233
+ Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(j) {
3260
3234
  return {
3261
- type: typeof k == "string" ? ie.literal : ie.object,
3262
- value: k
3235
+ type: typeof j == "string" ? ie.literal : ie.object,
3236
+ value: j
3263
3237
  };
3264
3238
  }));
3265
3239
  }
3266
- if (qr(f)) {
3267
- var M = f.options[m] || f.options.other;
3268
- if (!M)
3269
- throw new yr(f.value, m, Object.keys(f.options), s);
3270
- a.push.apply(a, bt(M.value, t, r, n, i));
3240
+ if (en(f)) {
3241
+ var R = f.options[m] || f.options.other;
3242
+ if (!R)
3243
+ throw new wr(f.value, m, Object.keys(f.options), s);
3244
+ a.push.apply(a, bt(R.value, t, r, n, i));
3271
3245
  continue;
3272
3246
  }
3273
- if (Yr(f)) {
3274
- var M = f.options["=".concat(m)];
3275
- if (!M) {
3247
+ if (tn(f)) {
3248
+ var R = f.options["=".concat(m)];
3249
+ if (!R) {
3276
3250
  if (!Intl.PluralRules)
3277
- throw new St(`Intl.PluralRules is not available in this environment.
3251
+ throw new Bt(`Intl.PluralRules is not available in this environment.
3278
3252
  Try polyfilling it using "@formatjs/intl-pluralrules"
3279
- `, Ve.MISSING_INTL_API, s);
3280
- var D = r.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
3281
- M = f.options[D] || f.options.other;
3253
+ `, $e.MISSING_INTL_API, s);
3254
+ var I = r.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
3255
+ R = f.options[I] || f.options.other;
3282
3256
  }
3283
- if (!M)
3284
- throw new yr(f.value, m, Object.keys(f.options), s);
3285
- a.push.apply(a, bt(M.value, t, r, n, i, m - (f.offset || 0)));
3257
+ if (!R)
3258
+ throw new wr(f.value, m, Object.keys(f.options), s);
3259
+ a.push.apply(a, bt(R.value, t, r, n, i, m - (f.offset || 0)));
3286
3260
  continue;
3287
3261
  }
3288
3262
  }
3289
- return Ji(a);
3263
+ return no(a);
3290
3264
  }
3291
- function eo(e, t) {
3292
- return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3293
- return r[n] = L(L({}, e[n]), t[n] || {}), r;
3265
+ function oo(e, t) {
3266
+ return t ? be(be(be({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3267
+ return r[n] = be(be({}, e[n]), t[n] || {}), r;
3294
3268
  }, {})) : e;
3295
3269
  }
3296
- function to(e, t) {
3270
+ function ao(e, t) {
3297
3271
  return t ? Object.keys(e).reduce(function(r, n) {
3298
- return r[n] = eo(e[n], t[n]), r;
3299
- }, L({}, e)) : e;
3272
+ return r[n] = oo(e[n], t[n]), r;
3273
+ }, be({}, e)) : e;
3300
3274
  }
3301
- function Dt(e) {
3275
+ function Gt(e) {
3302
3276
  return {
3303
3277
  create: function() {
3304
3278
  return {
@@ -3312,39 +3286,39 @@ function Dt(e) {
3312
3286
  }
3313
3287
  };
3314
3288
  }
3315
- function ro(e) {
3289
+ function so(e) {
3316
3290
  return e === void 0 && (e = {
3317
3291
  number: {},
3318
3292
  dateTime: {},
3319
3293
  pluralRules: {}
3320
3294
  }), {
3321
- getNumberFormat: Pt(function() {
3295
+ getNumberFormat: Dt(function() {
3322
3296
  for (var t, r = [], n = 0; n < arguments.length; n++)
3323
3297
  r[n] = arguments[n];
3324
- return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], r, !1)))();
3298
+ return new ((t = Intl.NumberFormat).bind.apply(t, It([void 0], r, !1)))();
3325
3299
  }, {
3326
- cache: Dt(e.number),
3327
- strategy: Nt.variadic
3300
+ cache: Gt(e.number),
3301
+ strategy: Ut.variadic
3328
3302
  }),
3329
- getDateTimeFormat: Pt(function() {
3303
+ getDateTimeFormat: Dt(function() {
3330
3304
  for (var t, r = [], n = 0; n < arguments.length; n++)
3331
3305
  r[n] = arguments[n];
3332
- return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], r, !1)))();
3306
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, It([void 0], r, !1)))();
3333
3307
  }, {
3334
- cache: Dt(e.dateTime),
3335
- strategy: Nt.variadic
3308
+ cache: Gt(e.dateTime),
3309
+ strategy: Ut.variadic
3336
3310
  }),
3337
- getPluralRules: Pt(function() {
3311
+ getPluralRules: Dt(function() {
3338
3312
  for (var t, r = [], n = 0; n < arguments.length; n++)
3339
3313
  r[n] = arguments[n];
3340
- return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], r, !1)))();
3314
+ return new ((t = Intl.PluralRules).bind.apply(t, It([void 0], r, !1)))();
3341
3315
  }, {
3342
- cache: Dt(e.pluralRules),
3343
- strategy: Nt.variadic
3316
+ cache: Gt(e.pluralRules),
3317
+ strategy: Ut.variadic
3344
3318
  })
3345
3319
  };
3346
3320
  }
3347
- var no = (
3321
+ var uo = (
3348
3322
  /** @class */
3349
3323
  function() {
3350
3324
  function e(t, r, n, i) {
@@ -3354,20 +3328,20 @@ var no = (
3354
3328
  number: {},
3355
3329
  dateTime: {},
3356
3330
  pluralRules: {}
3357
- }, this.format = function(u) {
3358
- var l = o.formatToParts(u);
3359
- if (l.length === 1)
3360
- return l[0].value;
3361
- var f = l.reduce(function(b, m) {
3331
+ }, this.format = function(l) {
3332
+ var u = o.formatToParts(l);
3333
+ if (u.length === 1)
3334
+ return u[0].value;
3335
+ var f = u.reduce(function(b, m) {
3362
3336
  return !b.length || m.type !== ie.literal || typeof b[b.length - 1] != "string" ? b.push(m.value) : b[b.length - 1] += m.value, b;
3363
3337
  }, []);
3364
3338
  return f.length <= 1 ? f[0] || "" : f;
3365
- }, this.formatToParts = function(u) {
3366
- return bt(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3339
+ }, this.formatToParts = function(l) {
3340
+ return bt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3367
3341
  }, this.resolvedOptions = function() {
3368
- var u;
3342
+ var l;
3369
3343
  return {
3370
- locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3344
+ locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3371
3345
  };
3372
3346
  }, this.getAst = function() {
3373
3347
  return o.ast;
@@ -3376,13 +3350,13 @@ var no = (
3376
3350
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3377
3351
  var s = i || {};
3378
3352
  s.formatters;
3379
- var a = fi(s, ["formatters"]);
3380
- this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
3353
+ var a = gi(s, ["formatters"]);
3354
+ this.ast = e.__parse(t, be(be({}, a), { locale: this.resolvedLocale }));
3381
3355
  } else
3382
3356
  this.ast = t;
3383
3357
  if (!Array.isArray(this.ast))
3384
3358
  throw new TypeError("A message must be provided as a String or AST.");
3385
- this.formats = to(e.formats, n), this.formatters = i && i.formatters || ro(this.formatterCache);
3359
+ this.formats = ao(e.formats, n), this.formatters = i && i.formatters || so(this.formatterCache);
3386
3360
  }
3387
3361
  return Object.defineProperty(e, "defaultLocale", {
3388
3362
  get: function() {
@@ -3395,7 +3369,7 @@ var no = (
3395
3369
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3396
3370
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3397
3371
  }
3398
- }, e.__parse = qi, e.formats = {
3372
+ }, e.__parse = eo, e.formats = {
3399
3373
  number: {
3400
3374
  integer: {
3401
3375
  maximumFractionDigits: 0
@@ -3456,7 +3430,7 @@ var no = (
3456
3430
  }, e;
3457
3431
  }()
3458
3432
  );
3459
- function io(e, t) {
3433
+ function lo(e, t) {
3460
3434
  if (t == null)
3461
3435
  return;
3462
3436
  if (t in e)
@@ -3477,92 +3451,92 @@ function io(e, t) {
3477
3451
  n = void 0;
3478
3452
  return n;
3479
3453
  }
3480
- const Ce = {}, oo = (e, t, r) => r && (t in Ce || (Ce[t] = {}), e in Ce[t] || (Ce[t][e] = r), r), sn = (e, t) => {
3454
+ const Ce = {}, co = (e, t, r) => r && (t in Ce || (Ce[t] = {}), e in Ce[t] || (Ce[t][e] = r), r), fn = (e, t) => {
3481
3455
  if (t == null)
3482
3456
  return;
3483
3457
  if (t in Ce && e in Ce[t])
3484
3458
  return Ce[t][e];
3485
- const r = Tt(t);
3459
+ const r = At(t);
3486
3460
  for (let n = 0; n < r.length; n++) {
3487
- const i = r[n], o = so(i, e);
3461
+ const i = r[n], o = fo(i, e);
3488
3462
  if (o)
3489
- return oo(e, t, o);
3463
+ return co(e, t, o);
3490
3464
  }
3491
3465
  };
3492
- let ir;
3493
- const at = wt({});
3494
- function ao(e) {
3495
- return ir[e] || null;
3466
+ let lr;
3467
+ const ot = St({});
3468
+ function ho(e) {
3469
+ return lr[e] || null;
3496
3470
  }
3497
- function ln(e) {
3498
- return e in ir;
3471
+ function dn(e) {
3472
+ return e in lr;
3499
3473
  }
3500
- function so(e, t) {
3501
- if (!ln(e))
3474
+ function fo(e, t) {
3475
+ if (!dn(e))
3502
3476
  return null;
3503
- const r = ao(e);
3504
- return io(r, t);
3477
+ const r = ho(e);
3478
+ return lo(r, t);
3505
3479
  }
3506
- function lo(e) {
3480
+ function po(e) {
3507
3481
  if (e == null)
3508
3482
  return;
3509
- const t = Tt(e);
3483
+ const t = At(e);
3510
3484
  for (let r = 0; r < t.length; r++) {
3511
3485
  const n = t[r];
3512
- if (ln(n))
3486
+ if (dn(n))
3513
3487
  return n;
3514
3488
  }
3515
3489
  }
3516
- function un(e, ...t) {
3517
- delete Ce[e], at.update((r) => (r[e] = hi.all([r[e] || {}, ...t]), r));
3490
+ function pn(e, ...t) {
3491
+ delete Ce[e], ot.update((r) => (r[e] = bi.all([r[e] || {}, ...t]), r));
3518
3492
  }
3519
- We(
3520
- [at],
3493
+ ze(
3494
+ [ot],
3521
3495
  ([e]) => Object.keys(e)
3522
3496
  );
3523
- at.subscribe((e) => ir = e);
3497
+ ot.subscribe((e) => lr = e);
3524
3498
  const gt = {};
3525
- function uo(e, t) {
3499
+ function mo(e, t) {
3526
3500
  gt[e].delete(t), gt[e].size === 0 && delete gt[e];
3527
3501
  }
3528
- function cn(e) {
3502
+ function mn(e) {
3529
3503
  return gt[e];
3530
3504
  }
3531
- function co(e) {
3532
- return Tt(e).map((t) => {
3533
- const r = cn(t);
3505
+ function bo(e) {
3506
+ return At(e).map((t) => {
3507
+ const r = mn(t);
3534
3508
  return [t, r ? [...r] : []];
3535
3509
  }).filter(([, t]) => t.length > 0);
3536
3510
  }
3537
- function Jt(e) {
3538
- return e == null ? !1 : Tt(e).some(
3511
+ function Kt(e) {
3512
+ return e == null ? !1 : At(e).some(
3539
3513
  (t) => {
3540
3514
  var r;
3541
- return (r = cn(t)) == null ? void 0 : r.size;
3515
+ return (r = mn(t)) == null ? void 0 : r.size;
3542
3516
  }
3543
3517
  );
3544
3518
  }
3545
- function ho(e, t) {
3519
+ function go(e, t) {
3546
3520
  return Promise.all(
3547
- t.map((n) => (uo(e, n), n().then((i) => i.default || i)))
3548
- ).then((n) => un(e, ...n));
3521
+ t.map((n) => (mo(e, n), n().then((i) => i.default || i)))
3522
+ ).then((n) => pn(e, ...n));
3549
3523
  }
3550
- const tt = {};
3551
- function hn(e) {
3552
- if (!Jt(e))
3553
- return e in tt ? tt[e] : Promise.resolve();
3554
- const t = co(e);
3555
- return tt[e] = Promise.all(
3524
+ const et = {};
3525
+ function bn(e) {
3526
+ if (!Kt(e))
3527
+ return e in et ? et[e] : Promise.resolve();
3528
+ const t = bo(e);
3529
+ return et[e] = Promise.all(
3556
3530
  t.map(
3557
- ([r, n]) => ho(r, n)
3531
+ ([r, n]) => go(r, n)
3558
3532
  )
3559
3533
  ).then(() => {
3560
- if (Jt(e))
3561
- return hn(e);
3562
- delete tt[e];
3563
- }), tt[e];
3534
+ if (Kt(e))
3535
+ return bn(e);
3536
+ delete et[e];
3537
+ }), et[e];
3564
3538
  }
3565
- const fo = {
3539
+ const yo = {
3566
3540
  number: {
3567
3541
  scientific: { notation: "scientific" },
3568
3542
  engineering: { notation: "engineering" },
@@ -3591,150 +3565,150 @@ const fo = {
3591
3565
  timeZoneName: "short"
3592
3566
  }
3593
3567
  }
3594
- }, po = {
3568
+ }, vo = {
3595
3569
  fallbackLocale: null,
3596
3570
  loadingDelay: 200,
3597
- formats: fo,
3571
+ formats: yo,
3598
3572
  warnOnMissingMessages: !0,
3599
3573
  handleMissingMessage: void 0,
3600
3574
  ignoreTag: !0
3601
- }, mo = po;
3602
- function Xe() {
3603
- return mo;
3575
+ }, _o = vo;
3576
+ function Ve() {
3577
+ return _o;
3604
3578
  }
3605
- const Ut = wt(!1);
3606
- var bo = Object.defineProperty, go = Object.defineProperties, yo = Object.getOwnPropertyDescriptors, vr = Object.getOwnPropertySymbols, vo = Object.prototype.hasOwnProperty, _o = Object.prototype.propertyIsEnumerable, _r = (e, t, r) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Eo = (e, t) => {
3579
+ const jt = St(!1);
3580
+ var Eo = Object.defineProperty, xo = Object.defineProperties, wo = Object.getOwnPropertyDescriptors, Sr = Object.getOwnPropertySymbols, So = Object.prototype.hasOwnProperty, To = Object.prototype.propertyIsEnumerable, Tr = (e, t, r) => t in e ? Eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bo = (e, t) => {
3607
3581
  for (var r in t || (t = {}))
3608
- vo.call(t, r) && _r(e, r, t[r]);
3609
- if (vr)
3610
- for (var r of vr(t))
3611
- _o.call(t, r) && _r(e, r, t[r]);
3582
+ So.call(t, r) && Tr(e, r, t[r]);
3583
+ if (Sr)
3584
+ for (var r of Sr(t))
3585
+ To.call(t, r) && Tr(e, r, t[r]);
3612
3586
  return e;
3613
- }, xo = (e, t) => go(e, yo(t));
3614
- let Kt;
3615
- const Et = wt(null);
3616
- function Er(e) {
3587
+ }, Ao = (e, t) => xo(e, wo(t));
3588
+ let er;
3589
+ const xt = St(null);
3590
+ function Br(e) {
3617
3591
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3618
3592
  }
3619
- function Tt(e, t = Xe().fallbackLocale) {
3620
- const r = Er(e);
3621
- return t ? [.../* @__PURE__ */ new Set([...r, ...Er(t)])] : r;
3593
+ function At(e, t = Ve().fallbackLocale) {
3594
+ const r = Br(e);
3595
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Br(t)])] : r;
3622
3596
  }
3623
- function Me() {
3624
- return Kt ?? void 0;
3597
+ function Re() {
3598
+ return er ?? void 0;
3625
3599
  }
3626
- Et.subscribe((e) => {
3627
- Kt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3600
+ xt.subscribe((e) => {
3601
+ er = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3628
3602
  });
3629
- const wo = (e) => {
3630
- if (e && lo(e) && Jt(e)) {
3631
- const { loadingDelay: t } = Xe();
3603
+ const Co = (e) => {
3604
+ if (e && po(e) && Kt(e)) {
3605
+ const { loadingDelay: t } = Ve();
3632
3606
  let r;
3633
- return typeof window < "u" && Me() != null && t ? r = window.setTimeout(
3634
- () => Ut.set(!0),
3607
+ return typeof window < "u" && Re() != null && t ? r = window.setTimeout(
3608
+ () => jt.set(!0),
3635
3609
  t
3636
- ) : Ut.set(!0), hn(e).then(() => {
3637
- Et.set(e);
3610
+ ) : jt.set(!0), bn(e).then(() => {
3611
+ xt.set(e);
3638
3612
  }).finally(() => {
3639
- clearTimeout(r), Ut.set(!1);
3613
+ clearTimeout(r), jt.set(!1);
3640
3614
  });
3641
3615
  }
3642
- return Et.set(e);
3643
- }, Ze = xo(Eo({}, Et), {
3644
- set: wo
3645
- }), Bt = (e) => {
3616
+ return xt.set(e);
3617
+ }, We = Ao(Bo({}, xt), {
3618
+ set: Co
3619
+ }), Ct = (e) => {
3646
3620
  const t = /* @__PURE__ */ Object.create(null);
3647
3621
  return (n) => {
3648
3622
  const i = JSON.stringify(n);
3649
3623
  return i in t ? t[i] : t[i] = e(n);
3650
3624
  };
3651
3625
  };
3652
- var So = Object.defineProperty, xt = Object.getOwnPropertySymbols, fn = Object.prototype.hasOwnProperty, dn = Object.prototype.propertyIsEnumerable, xr = (e, t, r) => t in e ? So(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, or = (e, t) => {
3626
+ var Ho = Object.defineProperty, wt = Object.getOwnPropertySymbols, gn = Object.prototype.hasOwnProperty, yn = Object.prototype.propertyIsEnumerable, Ar = (e, t, r) => t in e ? Ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, cr = (e, t) => {
3653
3627
  for (var r in t || (t = {}))
3654
- fn.call(t, r) && xr(e, r, t[r]);
3655
- if (xt)
3656
- for (var r of xt(t))
3657
- dn.call(t, r) && xr(e, r, t[r]);
3628
+ gn.call(t, r) && Ar(e, r, t[r]);
3629
+ if (wt)
3630
+ for (var r of wt(t))
3631
+ yn.call(t, r) && Ar(e, r, t[r]);
3658
3632
  return e;
3659
- }, qe = (e, t) => {
3633
+ }, Ze = (e, t) => {
3660
3634
  var r = {};
3661
3635
  for (var n in e)
3662
- fn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3663
- if (e != null && xt)
3664
- for (var n of xt(e))
3665
- t.indexOf(n) < 0 && dn.call(e, n) && (r[n] = e[n]);
3636
+ gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3637
+ if (e != null && wt)
3638
+ for (var n of wt(e))
3639
+ t.indexOf(n) < 0 && yn.call(e, n) && (r[n] = e[n]);
3666
3640
  return r;
3667
3641
  };
3668
- const ot = (e, t) => {
3669
- const { formats: r } = Xe();
3642
+ const it = (e, t) => {
3643
+ const { formats: r } = Ve();
3670
3644
  if (e in r && t in r[e])
3671
3645
  return r[e][t];
3672
3646
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3673
- }, To = Bt(
3647
+ }, Oo = Ct(
3674
3648
  (e) => {
3675
- var t = e, { locale: r, format: n } = t, i = qe(t, ["locale", "format"]);
3649
+ var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
3676
3650
  if (r == null)
3677
3651
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3678
- return n && (i = ot("number", n)), new Intl.NumberFormat(r, i);
3652
+ return n && (i = it("number", n)), new Intl.NumberFormat(r, i);
3679
3653
  }
3680
- ), Bo = Bt(
3654
+ ), Po = Ct(
3681
3655
  (e) => {
3682
- var t = e, { locale: r, format: n } = t, i = qe(t, ["locale", "format"]);
3656
+ var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
3683
3657
  if (r == null)
3684
3658
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3685
- return n ? i = ot("date", n) : Object.keys(i).length === 0 && (i = ot("date", "short")), new Intl.DateTimeFormat(r, i);
3659
+ return n ? i = it("date", n) : Object.keys(i).length === 0 && (i = it("date", "short")), new Intl.DateTimeFormat(r, i);
3686
3660
  }
3687
- ), Ao = Bt(
3661
+ ), Ro = Ct(
3688
3662
  (e) => {
3689
- var t = e, { locale: r, format: n } = t, i = qe(t, ["locale", "format"]);
3663
+ var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
3690
3664
  if (r == null)
3691
3665
  throw new Error(
3692
3666
  '[svelte-i18n] A "locale" must be set to format time values'
3693
3667
  );
3694
- return n ? i = ot("time", n) : Object.keys(i).length === 0 && (i = ot("time", "short")), new Intl.DateTimeFormat(r, i);
3668
+ return n ? i = it("time", n) : Object.keys(i).length === 0 && (i = it("time", "short")), new Intl.DateTimeFormat(r, i);
3695
3669
  }
3696
- ), Co = (e = {}) => {
3670
+ ), Mo = (e = {}) => {
3697
3671
  var t = e, {
3698
- locale: r = Me()
3699
- } = t, n = qe(t, [
3672
+ locale: r = Re()
3673
+ } = t, n = Ze(t, [
3700
3674
  "locale"
3701
3675
  ]);
3702
- return To(or({ locale: r }, n));
3703
- }, Ho = (e = {}) => {
3676
+ return Oo(cr({ locale: r }, n));
3677
+ }, Lo = (e = {}) => {
3704
3678
  var t = e, {
3705
- locale: r = Me()
3706
- } = t, n = qe(t, [
3679
+ locale: r = Re()
3680
+ } = t, n = Ze(t, [
3707
3681
  "locale"
3708
3682
  ]);
3709
- return Bo(or({ locale: r }, n));
3710
- }, Oo = (e = {}) => {
3683
+ return Po(cr({ locale: r }, n));
3684
+ }, No = (e = {}) => {
3711
3685
  var t = e, {
3712
- locale: r = Me()
3713
- } = t, n = qe(t, [
3686
+ locale: r = Re()
3687
+ } = t, n = Ze(t, [
3714
3688
  "locale"
3715
3689
  ]);
3716
- return Ao(or({ locale: r }, n));
3717
- }, Ro = Bt(
3690
+ return Ro(cr({ locale: r }, n));
3691
+ }, Io = Ct(
3718
3692
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3719
- (e, t = Me()) => new no(e, t, Xe().formats, {
3720
- ignoreTag: Xe().ignoreTag
3693
+ (e, t = Re()) => new uo(e, t, Ve().formats, {
3694
+ ignoreTag: Ve().ignoreTag
3721
3695
  })
3722
- ), Mo = (e, t = {}) => {
3696
+ ), Do = (e, t = {}) => {
3723
3697
  var r, n, i, o;
3724
3698
  let s = t;
3725
3699
  typeof e == "object" && (s = e, e = s.id);
3726
3700
  const {
3727
3701
  values: a,
3728
- locale: u = Me(),
3729
- default: l
3702
+ locale: l = Re(),
3703
+ default: u
3730
3704
  } = s;
3731
- if (u == null)
3705
+ if (l == null)
3732
3706
  throw new Error(
3733
3707
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3734
3708
  );
3735
- let f = sn(e, u);
3709
+ let f = fn(e, l);
3736
3710
  if (!f)
3737
- f = (o = (i = (n = (r = Xe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3711
+ f = (o = (i = (n = (r = Ve()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3738
3712
  else if (typeof f != "string")
3739
3713
  return console.warn(
3740
3714
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3743,7 +3717,7 @@ const ot = (e, t) => {
3743
3717
  return f;
3744
3718
  let b = f;
3745
3719
  try {
3746
- b = Ro(f, u).format(a);
3720
+ b = Io(f, l).format(a);
3747
3721
  } catch (m) {
3748
3722
  m instanceof Error && console.warn(
3749
3723
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3751,18 +3725,18 @@ const ot = (e, t) => {
3751
3725
  );
3752
3726
  }
3753
3727
  return b;
3754
- }, Lo = (e, t) => Oo(t).format(e), Po = (e, t) => Ho(t).format(e), No = (e, t) => Co(t).format(e), Io = (e, t = Me()) => sn(e, t), Do = We([Ze, at], () => Mo);
3755
- We([Ze], () => Lo);
3756
- We([Ze], () => Po);
3757
- We([Ze], () => No);
3758
- We([Ze, at], () => Io);
3759
- function wr(e, t) {
3760
- un(e, t);
3761
- }
3762
- function Uo(e) {
3763
- Ze.set(e);
3764
- }
3765
- const Sr = {
3728
+ }, Uo = (e, t) => No(t).format(e), Fo = (e, t) => Lo(t).format(e), Go = (e, t) => Mo(t).format(e), jo = (e, t = Re()) => fn(e, t), ko = ze([We, ot], () => Do);
3729
+ ze([We], () => Uo);
3730
+ ze([We], () => Fo);
3731
+ ze([We], () => Go);
3732
+ ze([We, ot], () => jo);
3733
+ function Cr(e, t) {
3734
+ pn(e, t);
3735
+ }
3736
+ function $o(e) {
3737
+ We.set(e);
3738
+ }
3739
+ const Hr = {
3766
3740
  en: {
3767
3741
  Title: "Your Balance",
3768
3742
  Total: "Total Balance",
@@ -3962,7 +3936,7 @@ const Sr = {
3962
3936
  Loading: "Loading ..."
3963
3937
  }
3964
3938
  };
3965
- var er = { exports: {} };
3939
+ var tr = { exports: {} };
3966
3940
  /** @license
3967
3941
  * eventsource.js
3968
3942
  * Available under MIT License (MIT)
@@ -3970,9 +3944,9 @@ var er = { exports: {} };
3970
3944
  */
3971
3945
  (function(e, t) {
3972
3946
  (function(r) {
3973
- var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, u = r.EventSource, l = r.document, f = r.Promise, b = r.fetch, m = r.Response, w = r.TextDecoder, _ = r.TextEncoder, A = r.AbortController;
3974
- if (typeof window < "u" && typeof l < "u" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(h) {
3975
- l.readyState = "complete";
3947
+ var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, l = r.EventSource, u = r.document, f = r.Promise, b = r.fetch, m = r.Response, w = r.TextDecoder, _ = r.TextEncoder, A = r.AbortController;
3948
+ if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
3949
+ u.readyState = "complete";
3976
3950
  }, !1)), o == null && a != null && (o = function() {
3977
3951
  return new a("Microsoft.XMLHTTP");
3978
3952
  }), Object.create == null && (Object.create = function(h) {
@@ -3982,10 +3956,10 @@ var er = { exports: {} };
3982
3956
  }), Date.now || (Date.now = function() {
3983
3957
  return (/* @__PURE__ */ new Date()).getTime();
3984
3958
  }), A == null) {
3985
- var I = b;
3959
+ var N = b;
3986
3960
  b = function(h, y) {
3987
3961
  var E = y.signal;
3988
- return I(h, { headers: y.headers, credentials: y.credentials, cache: y.cache }).then(function(g) {
3962
+ return N(h, { headers: y.headers, credentials: y.credentials, cache: y.cache }).then(function(g) {
3989
3963
  var c = g.body.getReader();
3990
3964
  return E._reader = c, E._aborted && E._reader.cancel(), {
3991
3965
  status: g.status,
@@ -4044,29 +4018,29 @@ var er = { exports: {} };
4044
4018
  return !1;
4045
4019
  };
4046
4020
  (w == null || _ == null || !V()) && (w = W);
4047
- var M = function() {
4021
+ var R = function() {
4048
4022
  };
4049
- function D(h) {
4050
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = M, this.onload = M, this.onerror = M, this.onreadystatechange = M, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = M;
4023
+ function I(h) {
4024
+ 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;
4051
4025
  }
4052
- D.prototype.open = function(h, y) {
4026
+ I.prototype.open = function(h, y) {
4053
4027
  this._abort(!0);
4054
4028
  var E = this, g = this._xhr, c = 1, d = 0;
4055
4029
  this._abort = function(B) {
4056
- E._sendTimeout !== 0 && (i(E._sendTimeout), E._sendTimeout = 0), (c === 1 || c === 2 || c === 3) && (c = 4, g.onload = M, g.onerror = M, g.onabort = M, g.onprogress = M, g.onreadystatechange = M, g.abort(), d !== 0 && (i(d), d = 0), B || (E.readyState = 4, E.onabort(null), E.onreadystatechange())), c = 0;
4030
+ 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;
4057
4031
  };
4058
4032
  var p = function() {
4059
4033
  if (c === 1) {
4060
- var B = 0, N = "", ee = void 0;
4034
+ var B = 0, L = "", ee = void 0;
4061
4035
  if ("contentType" in g)
4062
- B = 200, N = "OK", ee = g.contentType;
4036
+ B = 200, L = "OK", ee = g.contentType;
4063
4037
  else
4064
4038
  try {
4065
- B = g.status, N = g.statusText, ee = g.getResponseHeader("Content-Type");
4039
+ B = g.status, L = g.statusText, ee = g.getResponseHeader("Content-Type");
4066
4040
  } catch {
4067
- B = 0, N = "", ee = void 0;
4041
+ B = 0, L = "", ee = void 0;
4068
4042
  }
4069
- B !== 0 && (c = 2, E.readyState = 2, E.status = B, E.statusText = N, E._contentType = ee, E.onreadystatechange());
4043
+ B !== 0 && (c = 2, E.readyState = 2, E.status = B, E.statusText = L, E._contentType = ee, E.onreadystatechange());
4070
4044
  }
4071
4045
  }, v = function() {
4072
4046
  if (p(), c === 2 || c === 3) {
@@ -4078,16 +4052,16 @@ var er = { exports: {} };
4078
4052
  }
4079
4053
  E.readyState = 3, E.responseText = B, E.onprogress();
4080
4054
  }
4081
- }, T = function(B, N) {
4082
- if ((N == null || N.preventDefault == null) && (N = {
4083
- preventDefault: M
4055
+ }, T = function(B, L) {
4056
+ if ((L == null || L.preventDefault == null) && (L = {
4057
+ preventDefault: R
4084
4058
  }), v(), c === 1 || c === 2 || c === 3) {
4085
4059
  if (c = 4, d !== 0 && (i(d), d = 0), E.readyState = 4, B === "load")
4086
- E.onload(N);
4060
+ E.onload(L);
4087
4061
  else if (B === "error")
4088
- E.onerror(N);
4062
+ E.onerror(L);
4089
4063
  else if (B === "abort")
4090
- E.onabort(N);
4064
+ E.onabort(L);
4091
4065
  else
4092
4066
  throw new TypeError();
4093
4067
  E.onreadystatechange();
@@ -4110,17 +4084,17 @@ var er = { exports: {} };
4110
4084
  }), ("contentType" in g || !("ontimeout" in o.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(h, y, !0), "readyState" in g && (d = n(function() {
4111
4085
  S();
4112
4086
  }, 0));
4113
- }, D.prototype.abort = function() {
4087
+ }, I.prototype.abort = function() {
4114
4088
  this._abort(!1);
4115
- }, D.prototype.getResponseHeader = function(h) {
4089
+ }, I.prototype.getResponseHeader = function(h) {
4116
4090
  return this._contentType;
4117
- }, D.prototype.setRequestHeader = function(h, y) {
4091
+ }, I.prototype.setRequestHeader = function(h, y) {
4118
4092
  var E = this._xhr;
4119
4093
  "setRequestHeader" in E && E.setRequestHeader(h, y);
4120
- }, D.prototype.getAllResponseHeaders = function() {
4094
+ }, I.prototype.getAllResponseHeaders = function() {
4121
4095
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4122
- }, D.prototype.send = function() {
4123
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
4096
+ }, I.prototype.send = function() {
4097
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4124
4098
  var h = this;
4125
4099
  h._sendTimeout = n(function() {
4126
4100
  h._sendTimeout = 0, h.send();
@@ -4135,7 +4109,7 @@ var er = { exports: {} };
4135
4109
  throw E;
4136
4110
  }
4137
4111
  };
4138
- function k(h) {
4112
+ function j(h) {
4139
4113
  return h.replace(/[A-Z]/g, function(y) {
4140
4114
  return String.fromCharCode(y.charCodeAt(0) + 32);
4141
4115
  });
@@ -4144,12 +4118,12 @@ var er = { exports: {} };
4144
4118
  for (var y = /* @__PURE__ */ Object.create(null), E = h.split(`\r
4145
4119
  `), g = 0; g < E.length; g += 1) {
4146
4120
  var c = E[g], d = c.split(": "), p = d.shift(), v = d.join(": ");
4147
- y[k(p)] = v;
4121
+ y[j(p)] = v;
4148
4122
  }
4149
4123
  this._map = y;
4150
4124
  }
4151
4125
  oe.prototype.get = function(h) {
4152
- return this._map[k(h)];
4126
+ return this._map[j(h)];
4153
4127
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4154
4128
  function Z() {
4155
4129
  }
@@ -4167,23 +4141,23 @@ var er = { exports: {} };
4167
4141
  g(null);
4168
4142
  }, h.onreadystatechange = function() {
4169
4143
  if (h.readyState === o.HEADERS_RECEIVED) {
4170
- var C = h.status, S = h.statusText, B = h.getResponseHeader("Content-Type"), N = h.getAllResponseHeaders();
4171
- y(C, S, B, new oe(N));
4144
+ var C = h.status, S = h.statusText, B = h.getResponseHeader("Content-Type"), L = h.getAllResponseHeaders();
4145
+ y(C, S, B, new oe(L));
4172
4146
  }
4173
4147
  }, h.withCredentials = d;
4174
4148
  for (var T in p)
4175
4149
  Object.prototype.hasOwnProperty.call(p, T) && h.setRequestHeader(T, p[T]);
4176
4150
  return h.send(), h;
4177
4151
  };
4178
- function $(h) {
4152
+ function k(h) {
4179
4153
  this._headers = h;
4180
4154
  }
4181
- $.prototype.get = function(h) {
4155
+ k.prototype.get = function(h) {
4182
4156
  return this._headers.get(h);
4183
4157
  };
4184
- function U() {
4158
+ function D() {
4185
4159
  }
4186
- U.prototype.open = function(h, y, E, g, c, d, p) {
4160
+ D.prototype.open = function(h, y, E, g, c, d, p) {
4187
4161
  var v = null, T = new A(), C = T.signal, S = new w();
4188
4162
  return b(c, {
4189
4163
  headers: p,
@@ -4191,11 +4165,11 @@ var er = { exports: {} };
4191
4165
  signal: C,
4192
4166
  cache: "no-store"
4193
4167
  }).then(function(B) {
4194
- return v = B.body.getReader(), y(B.status, B.statusText, B.headers.get("Content-Type"), new $(B.headers)), new f(function(N, ee) {
4168
+ return v = B.body.getReader(), y(B.status, B.statusText, B.headers.get("Content-Type"), new k(B.headers)), new f(function(L, ee) {
4195
4169
  var Ae = function() {
4196
4170
  v.read().then(function(X) {
4197
4171
  if (X.done)
4198
- N(void 0);
4172
+ L(void 0);
4199
4173
  else {
4200
4174
  var te = S.decode(X.value, { stream: !0 });
4201
4175
  E(te), Ae();
@@ -4220,7 +4194,7 @@ var er = { exports: {} };
4220
4194
  function q() {
4221
4195
  this._listeners = /* @__PURE__ */ Object.create(null);
4222
4196
  }
4223
- function F(h) {
4197
+ function U(h) {
4224
4198
  n(function() {
4225
4199
  throw h;
4226
4200
  }, 0);
@@ -4234,7 +4208,7 @@ var er = { exports: {} };
4234
4208
  try {
4235
4209
  typeof c.handleEvent == "function" ? c.handleEvent(h) : c.call(this, h);
4236
4210
  } catch (d) {
4237
- F(d);
4211
+ U(d);
4238
4212
  }
4239
4213
  }
4240
4214
  }, q.prototype.addEventListener = function(h, y) {
@@ -4260,164 +4234,233 @@ var er = { exports: {} };
4260
4234
  K.call(this, h), this.data = y.data, this.lastEventId = y.lastEventId;
4261
4235
  }
4262
4236
  he.prototype = Object.create(K.prototype);
4263
- function ge(h, y) {
4237
+ function ye(h, y) {
4264
4238
  K.call(this, h), this.status = y.status, this.statusText = y.statusText, this.headers = y.headers;
4265
4239
  }
4266
- ge.prototype = Object.create(K.prototype);
4240
+ ye.prototype = Object.create(K.prototype);
4267
4241
  function x(h, y) {
4268
4242
  K.call(this, h), this.error = y.error;
4269
4243
  }
4270
4244
  x.prototype = Object.create(K.prototype);
4271
- var ye = -1, pe = 0, ae = 1, He = 2, Ye = -1, me = 0, Qe = 1, Le = 2, st = 3, Ct = /^text\/event\-stream(;.*)?$/i, Je = 1e3, lt = 18e6, Ke = function(h, y) {
4245
+ var ve = -1, pe = 0, ae = 1, He = 2, qe = -1, me = 0, Ye = 1, Me = 2, st = 3, Ot = /^text\/event\-stream(;.*)?$/i, Qe = 1e3, ut = 18e6, Je = function(h, y) {
4272
4246
  var E = h == null ? y : parseInt(h, 10);
4273
- return E !== E && (E = y), Pe(E);
4274
- }, Pe = function(h) {
4275
- return Math.min(Math.max(h, Je), lt);
4247
+ return E !== E && (E = y), Le(E);
4248
+ }, Le = function(h) {
4249
+ return Math.min(Math.max(h, Qe), ut);
4276
4250
  }, Be = function(h, y, E) {
4277
4251
  try {
4278
4252
  typeof y == "function" && y.call(h, E);
4279
4253
  } catch (g) {
4280
- F(g);
4254
+ U(g);
4281
4255
  }
4282
4256
  };
4283
4257
  function se(h, y) {
4284
- 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);
4258
+ 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, Rt(this, h, y);
4285
4259
  }
4286
- function Ht() {
4260
+ function Pt() {
4287
4261
  return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
4288
4262
  }
4289
- var ut = b != null && m != null && "body" in m.prototype;
4290
- function Ot(h, y, E) {
4263
+ var lt = b != null && m != null && "body" in m.prototype;
4264
+ function Rt(h, y, E) {
4291
4265
  y = String(y);
4292
- 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 = ut && 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 = "", re = me, Rt = 0, Oe = 0, _n = function(Y, z, le, ue) {
4266
+ var g = !!E.withCredentials, c = E.lastEventIdQueryParameterName || "lastEventId", d = Le(1e3), p = Je(E.heartbeatTimeout, 45e3), v = "", T = d, C = !1, S = 0, B = E.headers || {}, L = E.Transport, ee = lt && L == null ? void 0 : new I(L != null ? new L() : Pt()), Ae = L != null && typeof L != "string" ? new L() : ee == null ? new D() : new Z(), X = void 0, te = 0, fe = ve, Ne = "", ht = "", _e = "", ft = "", re = me, Mt = 0, Oe = 0, Tn = function(Y, z, ue, le) {
4293
4267
  if (fe === pe)
4294
- if (Y === 200 && le != null && Ct.test(le)) {
4268
+ if (Y === 200 && ue != null && Ot.test(ue)) {
4295
4269
  fe = ae, C = Date.now(), T = d, h.readyState = ae;
4296
- var ne = new ge("open", {
4270
+ var ne = new ye("open", {
4297
4271
  status: Y,
4298
4272
  statusText: z,
4299
- headers: ue
4273
+ headers: le
4300
4274
  });
4301
4275
  h.dispatchEvent(ne), Be(h, h.onopen, ne);
4302
4276
  } else {
4303
4277
  var J = "";
4304
- 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: " + (le == null ? "-" : le.replace(/\s+/g, " ")) + ". Aborting the connection.", Mt();
4305
- var ne = new ge("error", {
4278
+ 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: " + (ue == null ? "-" : ue.replace(/\s+/g, " ")) + ". Aborting the connection.", Lt();
4279
+ var ne = new ye("error", {
4306
4280
  status: Y,
4307
4281
  statusText: z,
4308
- headers: ue
4282
+ headers: le
4309
4283
  });
4310
4284
  h.dispatchEvent(ne), Be(h, h.onerror, ne), console.error(J);
4311
4285
  }
4312
- }, En = function(Y) {
4286
+ }, Bn = function(Y) {
4313
4287
  if (fe === ae) {
4314
- for (var z = -1, le = 0; le < Y.length; le += 1) {
4315
- var ue = Y.charCodeAt(le);
4316
- (ue === 10 || ue === 13) && (z = le);
4288
+ for (var z = -1, ue = 0; ue < Y.length; ue += 1) {
4289
+ var le = Y.charCodeAt(ue);
4290
+ (le === 10 || le === 13) && (z = ue);
4317
4291
  }
4318
4292
  var ne = (z !== -1 ? ft : "") + Y.slice(0, z + 1);
4319
4293
  ft = (z === -1 ? ft : "") + Y.slice(z + 1), Y !== "" && (C = Date.now(), S += Y.length);
4320
4294
  for (var J = 0; J < ne.length; J += 1) {
4321
- var ue = ne.charCodeAt(J);
4322
- if (re === Ye && ue === 10)
4295
+ var le = ne.charCodeAt(J);
4296
+ if (re === qe && le === 10)
4323
4297
  re = me;
4324
- else if (re === Ye && (re = me), ue === 13 || ue === 10) {
4298
+ else if (re === qe && (re = me), le === 13 || le === 10) {
4325
4299
  if (re !== me) {
4326
- re === Qe && (Oe = J + 1);
4327
- var _e = ne.slice(Rt, Oe - 1), Ee = ne.slice(Oe + (Oe < J && ne.charCodeAt(Oe) === 32 ? 1 : 0), J);
4328
- _e === "data" ? (Ne += `
4329
- `, 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 = n(function() {
4330
- et();
4300
+ re === Ye && (Oe = J + 1);
4301
+ var Ee = ne.slice(Mt, Oe - 1), xe = ne.slice(Oe + (Oe < J && ne.charCodeAt(Oe) === 32 ? 1 : 0), J);
4302
+ Ee === "data" ? (Ne += `
4303
+ `, Ne += xe) : Ee === "id" ? ht = xe : Ee === "event" ? _e = xe : Ee === "retry" ? (d = Je(xe, d), T = d) : Ee === "heartbeatTimeout" && (p = Je(xe, p), te !== 0 && (i(te), te = n(function() {
4304
+ Ke();
4331
4305
  }, p)));
4332
4306
  }
4333
4307
  if (re === me) {
4334
4308
  if (Ne !== "") {
4335
- v = ht, ve === "" && (ve = "message");
4336
- var Ie = new he(ve, {
4309
+ v = ht, _e === "" && (_e = "message");
4310
+ var Ie = new he(_e, {
4337
4311
  data: Ne.slice(1),
4338
4312
  lastEventId: ht
4339
4313
  });
4340
- 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)
4314
+ if (h.dispatchEvent(Ie), _e === "open" ? Be(h, h.onopen, Ie) : _e === "message" ? Be(h, h.onmessage, Ie) : _e === "error" && Be(h, h.onerror, Ie), fe === He)
4341
4315
  return;
4342
4316
  }
4343
- Ne = "", ve = "";
4317
+ Ne = "", _e = "";
4344
4318
  }
4345
- re = ue === 13 ? Ye : me;
4319
+ re = le === 13 ? qe : me;
4346
4320
  } else
4347
- re === me && (Rt = J, re = Qe), re === Qe ? ue === 58 && (Oe = J + 1, re = Le) : re === Le && (re = st);
4321
+ re === me && (Mt = J, re = Ye), re === Ye ? le === 58 && (Oe = J + 1, re = Me) : re === Me && (re = st);
4348
4322
  }
4349
4323
  }
4350
- }, ar = function(Y) {
4324
+ }, hr = function(Y) {
4351
4325
  if (fe === ae || fe === pe) {
4352
- fe = ye, te !== 0 && (i(te), te = 0), te = n(function() {
4353
- et();
4354
- }, T), T = Pe(Math.min(d * 16, T * 2)), h.readyState = pe;
4326
+ fe = ve, te !== 0 && (i(te), te = 0), te = n(function() {
4327
+ Ke();
4328
+ }, T), T = Le(Math.min(d * 16, T * 2)), h.readyState = pe;
4355
4329
  var z = new x("error", { error: Y });
4356
4330
  h.dispatchEvent(z), Be(h, h.onerror, z), Y != null && console.error(Y);
4357
4331
  }
4358
- }, Mt = function() {
4332
+ }, Lt = function() {
4359
4333
  fe = He, X != null && (X.abort(), X = void 0), te !== 0 && (i(te), te = 0), h.readyState = He;
4360
- }, et = function() {
4361
- if (te = 0, fe !== ye) {
4334
+ }, Ke = function() {
4335
+ if (te = 0, fe !== ve) {
4362
4336
  if (!C && X != null)
4363
- ar(new Error("No activity within " + p + " milliseconds. " + (fe === pe ? "No response received." : S + " chars received.") + " Reconnecting.")), X != null && (X.abort(), X = void 0);
4337
+ hr(new Error("No activity within " + p + " milliseconds. " + (fe === pe ? "No response received." : S + " chars received.") + " Reconnecting.")), X != null && (X.abort(), X = void 0);
4364
4338
  else {
4365
4339
  var Y = Math.max((C || Date.now()) + p - Date.now(), 1);
4366
4340
  C = !1, te = n(function() {
4367
- et();
4341
+ Ke();
4368
4342
  }, Y);
4369
4343
  }
4370
4344
  return;
4371
4345
  }
4372
4346
  C = !1, S = 0, te = n(function() {
4373
- et();
4374
- }, p), fe = pe, Ne = "", ve = "", ht = v, ft = "", Rt = 0, Oe = 0, re = me;
4347
+ Ke();
4348
+ }, p), fe = pe, Ne = "", _e = "", ht = v, ft = "", Mt = 0, Oe = 0, re = me;
4375
4349
  var z = y;
4376
4350
  if (y.slice(0, 5) !== "data:" && y.slice(0, 5) !== "blob:" && v !== "") {
4377
- var le = y.indexOf("?");
4378
- z = le === -1 ? y : y.slice(0, le + 1) + y.slice(le + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Ie) {
4379
- return Ie === c ? "" : Ee;
4351
+ var ue = y.indexOf("?");
4352
+ z = ue === -1 ? y : y.slice(0, ue + 1) + y.slice(ue + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Ie) {
4353
+ return Ie === c ? "" : xe;
4380
4354
  }), z += (y.indexOf("?") === -1 ? "?" : "&") + c + "=" + encodeURIComponent(v);
4381
4355
  }
4382
- var ue = h.withCredentials, ne = {};
4356
+ var le = h.withCredentials, ne = {};
4383
4357
  ne.Accept = "text/event-stream";
4384
4358
  var J = h.headers;
4385
4359
  if (J != null)
4386
- for (var _e in J)
4387
- Object.prototype.hasOwnProperty.call(J, _e) && (ne[_e] = J[_e]);
4360
+ for (var Ee in J)
4361
+ Object.prototype.hasOwnProperty.call(J, Ee) && (ne[Ee] = J[Ee]);
4388
4362
  try {
4389
- X = Ae.open(ee, _n, En, ar, z, ue, ne);
4390
- } catch (Ee) {
4391
- throw Mt(), Ee;
4363
+ X = Ae.open(ee, Tn, Bn, hr, z, le, ne);
4364
+ } catch (xe) {
4365
+ throw Lt(), xe;
4392
4366
  }
4393
4367
  };
4394
- h.url = y, h.readyState = pe, h.withCredentials = g, h.headers = B, h._close = Mt, et();
4368
+ h.url = y, h.readyState = pe, h.withCredentials = g, h.headers = B, h._close = Lt, Ke();
4395
4369
  }
4396
4370
  se.prototype = Object.create(q.prototype), se.prototype.CONNECTING = pe, se.prototype.OPEN = ae, se.prototype.CLOSED = He, se.prototype.close = function() {
4397
4371
  this._close();
4398
4372
  }, se.CONNECTING = pe, se.OPEN = ae, se.CLOSED = He, se.prototype.withCredentials = void 0;
4399
- var ct = u;
4400
- o != null && (u == null || !("withCredentials" in u.prototype)) && (ct = se), function(h) {
4373
+ var ct = l;
4374
+ o != null && (l == null || !("withCredentials" in l.prototype)) && (ct = se), function(h) {
4401
4375
  {
4402
4376
  var y = h(t);
4403
4377
  y !== void 0 && (e.exports = y);
4404
4378
  }
4405
4379
  }(function(h) {
4406
- h.EventSourcePolyfill = se, h.NativeEventSource = u, h.EventSource = ct;
4380
+ h.EventSourcePolyfill = se, h.NativeEventSource = l, h.EventSource = ct;
4407
4381
  });
4408
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : qn : globalThis);
4409
- })(er, er.exports);
4410
- var Fo = er.exports;
4411
- function Se(e) {
4382
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ei : globalThis);
4383
+ })(tr, tr.exports);
4384
+ var Vo = tr.exports;
4385
+ /*! *****************************************************************************
4386
+ Copyright (c) Microsoft Corporation.
4387
+
4388
+ Permission to use, copy, modify, and/or distribute this software for any
4389
+ purpose with or without fee is hereby granted.
4390
+
4391
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
4392
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4393
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
4394
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4395
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4396
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4397
+ PERFORMANCE OF THIS SOFTWARE.
4398
+ ***************************************************************************** */
4399
+ var rr = function(e, t) {
4400
+ return rr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
4401
+ r.__proto__ = n;
4402
+ } || function(r, n) {
4403
+ for (var i in n)
4404
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
4405
+ }, rr(e, t);
4406
+ };
4407
+ function at(e, t) {
4408
+ if (typeof t != "function" && t !== null)
4409
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
4410
+ rr(e, t);
4411
+ function r() {
4412
+ this.constructor = e;
4413
+ }
4414
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
4415
+ }
4416
+ function nr(e) {
4417
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
4418
+ if (r)
4419
+ return r.call(e);
4420
+ if (e && typeof e.length == "number")
4421
+ return {
4422
+ next: function() {
4423
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
4424
+ }
4425
+ };
4426
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
4427
+ }
4428
+ function ir(e, t) {
4429
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
4430
+ if (!r)
4431
+ return e;
4432
+ var n = r.call(e), i, o = [], s;
4433
+ try {
4434
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
4435
+ o.push(i.value);
4436
+ } catch (a) {
4437
+ s = { error: a };
4438
+ } finally {
4439
+ try {
4440
+ i && !i.done && (r = n.return) && r.call(n);
4441
+ } finally {
4442
+ if (s)
4443
+ throw s.error;
4444
+ }
4445
+ }
4446
+ return o;
4447
+ }
4448
+ function or(e, t, r) {
4449
+ if (arguments.length === 2)
4450
+ for (var n = 0, i = t.length, o; n < i; n++)
4451
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
4452
+ return e.concat(o || t);
4453
+ }
4454
+ function Te(e) {
4412
4455
  return typeof e == "function";
4413
4456
  }
4414
- function pn(e) {
4457
+ function vn(e) {
4415
4458
  var t = function(n) {
4416
4459
  Error.call(n), n.stack = new Error().stack;
4417
4460
  }, r = e(t);
4418
4461
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
4419
4462
  }
4420
- var Ft = pn(function(e) {
4463
+ var kt = vn(function(e) {
4421
4464
  return function(r) {
4422
4465
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
4423
4466
  ` + r.map(function(n, i) {
@@ -4426,13 +4469,13 @@ var Ft = pn(function(e) {
4426
4469
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
4427
4470
  };
4428
4471
  });
4429
- function tr(e, t) {
4472
+ function ar(e, t) {
4430
4473
  if (e) {
4431
4474
  var r = e.indexOf(t);
4432
4475
  0 <= r && e.splice(r, 1);
4433
4476
  }
4434
4477
  }
4435
- var At = function() {
4478
+ var Ht = function() {
4436
4479
  function e(t) {
4437
4480
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
4438
4481
  }
@@ -4444,15 +4487,15 @@ var At = function() {
4444
4487
  if (s)
4445
4488
  if (this._parentage = null, Array.isArray(s))
4446
4489
  try {
4447
- for (var a = Vt(s), u = a.next(); !u.done; u = a.next()) {
4448
- var l = u.value;
4449
- l.remove(this);
4490
+ for (var a = nr(s), l = a.next(); !l.done; l = a.next()) {
4491
+ var u = l.value;
4492
+ u.remove(this);
4450
4493
  }
4451
4494
  } catch (A) {
4452
4495
  t = { error: A };
4453
4496
  } finally {
4454
4497
  try {
4455
- u && !u.done && (r = a.return) && r.call(a);
4498
+ l && !l.done && (r = a.return) && r.call(a);
4456
4499
  } finally {
4457
4500
  if (t)
4458
4501
  throw t.error;
@@ -4461,22 +4504,22 @@ var At = function() {
4461
4504
  else
4462
4505
  s.remove(this);
4463
4506
  var f = this.initialTeardown;
4464
- if (Se(f))
4507
+ if (Te(f))
4465
4508
  try {
4466
4509
  f();
4467
4510
  } catch (A) {
4468
- o = A instanceof Ft ? A.errors : [A];
4511
+ o = A instanceof kt ? A.errors : [A];
4469
4512
  }
4470
4513
  var b = this._finalizers;
4471
4514
  if (b) {
4472
4515
  this._finalizers = null;
4473
4516
  try {
4474
- for (var m = Vt(b), w = m.next(); !w.done; w = m.next()) {
4517
+ for (var m = nr(b), w = m.next(); !w.done; w = m.next()) {
4475
4518
  var _ = w.value;
4476
4519
  try {
4477
- Tr(_);
4520
+ Or(_);
4478
4521
  } catch (A) {
4479
- o = o ?? [], A instanceof Ft ? o = je(je([], Xt(o)), Xt(A.errors)) : o.push(A);
4522
+ o = o ?? [], A instanceof kt ? o = or(or([], ir(o)), ir(A.errors)) : o.push(A);
4480
4523
  }
4481
4524
  }
4482
4525
  } catch (A) {
@@ -4491,13 +4534,13 @@ var At = function() {
4491
4534
  }
4492
4535
  }
4493
4536
  if (o)
4494
- throw new Ft(o);
4537
+ throw new kt(o);
4495
4538
  }
4496
4539
  }, e.prototype.add = function(t) {
4497
4540
  var r;
4498
4541
  if (t && t !== this)
4499
4542
  if (this.closed)
4500
- Tr(t);
4543
+ Or(t);
4501
4544
  else {
4502
4545
  if (t instanceof e) {
4503
4546
  if (t.closed || t._hasParent(this))
@@ -4514,52 +4557,52 @@ var At = function() {
4514
4557
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
4515
4558
  }, e.prototype._removeParent = function(t) {
4516
4559
  var r = this._parentage;
4517
- r === t ? this._parentage = null : Array.isArray(r) && tr(r, t);
4560
+ r === t ? this._parentage = null : Array.isArray(r) && ar(r, t);
4518
4561
  }, e.prototype.remove = function(t) {
4519
4562
  var r = this._finalizers;
4520
- r && tr(r, t), t instanceof e && t._removeParent(this);
4563
+ r && ar(r, t), t instanceof e && t._removeParent(this);
4521
4564
  }, e.EMPTY = function() {
4522
4565
  var t = new e();
4523
4566
  return t.closed = !0, t;
4524
4567
  }(), e;
4525
- }(), mn = At.EMPTY;
4526
- function bn(e) {
4527
- return e instanceof At || e && "closed" in e && Se(e.remove) && Se(e.add) && Se(e.unsubscribe);
4568
+ }(), _n = Ht.EMPTY;
4569
+ function En(e) {
4570
+ return e instanceof Ht || e && "closed" in e && Te(e.remove) && Te(e.add) && Te(e.unsubscribe);
4528
4571
  }
4529
- function Tr(e) {
4530
- Se(e) ? e() : e.unsubscribe();
4572
+ function Or(e) {
4573
+ Te(e) ? e() : e.unsubscribe();
4531
4574
  }
4532
- var Go = {
4575
+ var Xo = {
4533
4576
  Promise: void 0
4534
- }, jo = {
4577
+ }, zo = {
4535
4578
  setTimeout: function(e, t) {
4536
4579
  for (var r = [], n = 2; n < arguments.length; n++)
4537
4580
  r[n - 2] = arguments[n];
4538
- return setTimeout.apply(void 0, je([e, t], Xt(r)));
4581
+ return setTimeout.apply(void 0, or([e, t], ir(r)));
4539
4582
  },
4540
4583
  clearTimeout: function(e) {
4541
4584
  return clearTimeout(e);
4542
4585
  },
4543
4586
  delegate: void 0
4544
4587
  };
4545
- function ko(e) {
4546
- jo.setTimeout(function() {
4588
+ function Wo(e) {
4589
+ zo.setTimeout(function() {
4547
4590
  throw e;
4548
4591
  });
4549
4592
  }
4550
- function Br() {
4593
+ function Pr() {
4551
4594
  }
4552
4595
  function yt(e) {
4553
4596
  e();
4554
4597
  }
4555
- var gn = function(e) {
4556
- Te(t, e);
4598
+ var xn = function(e) {
4599
+ at(t, e);
4557
4600
  function t(r) {
4558
4601
  var n = e.call(this) || this;
4559
- return n.isStopped = !1, r ? (n.destination = r, bn(r) && r.add(n)) : n.destination = Xo, n;
4602
+ return n.isStopped = !1, r ? (n.destination = r, En(r) && r.add(n)) : n.destination = Yo, n;
4560
4603
  }
4561
4604
  return t.create = function(r, n, i) {
4562
- return new rr(r, n, i);
4605
+ return new sr(r, n, i);
4563
4606
  }, t.prototype.next = function(r) {
4564
4607
  this.isStopped || this._next(r);
4565
4608
  }, t.prototype.error = function(r) {
@@ -4583,7 +4626,7 @@ var gn = function(e) {
4583
4626
  this.unsubscribe();
4584
4627
  }
4585
4628
  }, t;
4586
- }(At), $o = function() {
4629
+ }(Ht), Zo = function() {
4587
4630
  function e(t) {
4588
4631
  this.partialObserver = t;
4589
4632
  }
@@ -4614,43 +4657,43 @@ var gn = function(e) {
4614
4657
  pt(r);
4615
4658
  }
4616
4659
  }, e;
4617
- }(), rr = function(e) {
4618
- Te(t, e);
4660
+ }(), sr = function(e) {
4661
+ at(t, e);
4619
4662
  function t(r, n, i) {
4620
4663
  var o = e.call(this) || this, s;
4621
- return Se(r) || !r ? s = {
4664
+ return Te(r) || !r ? s = {
4622
4665
  next: r ?? void 0,
4623
4666
  error: n ?? void 0,
4624
4667
  complete: i ?? void 0
4625
- } : s = r, o.destination = new $o(s), o;
4668
+ } : s = r, o.destination = new Zo(s), o;
4626
4669
  }
4627
4670
  return t;
4628
- }(gn);
4671
+ }(xn);
4629
4672
  function pt(e) {
4630
- ko(e);
4673
+ Wo(e);
4631
4674
  }
4632
- function Vo(e) {
4675
+ function qo(e) {
4633
4676
  throw e;
4634
4677
  }
4635
- var Xo = {
4678
+ var Yo = {
4636
4679
  closed: !0,
4637
- next: Br,
4638
- error: Vo,
4639
- complete: Br
4640
- }, zo = function() {
4680
+ next: Pr,
4681
+ error: qo,
4682
+ complete: Pr
4683
+ }, Qo = function() {
4641
4684
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
4642
4685
  }();
4643
- function Wo(e) {
4686
+ function Jo(e) {
4644
4687
  return e;
4645
4688
  }
4646
- function Zo(e) {
4647
- return e.length === 0 ? Wo : e.length === 1 ? e[0] : function(r) {
4689
+ function Ko(e) {
4690
+ return e.length === 0 ? Jo : e.length === 1 ? e[0] : function(r) {
4648
4691
  return e.reduce(function(n, i) {
4649
4692
  return i(n);
4650
4693
  }, r);
4651
4694
  };
4652
4695
  }
4653
- var Ar = function() {
4696
+ var Rr = function() {
4654
4697
  function e(t) {
4655
4698
  t && (this._subscribe = t);
4656
4699
  }
@@ -4658,10 +4701,10 @@ var Ar = function() {
4658
4701
  var r = new e();
4659
4702
  return r.source = this, r.operator = t, r;
4660
4703
  }, e.prototype.subscribe = function(t, r, n) {
4661
- var i = this, o = Yo(t) ? t : new rr(t, r, n);
4704
+ var i = this, o = ta(t) ? t : new sr(t, r, n);
4662
4705
  return yt(function() {
4663
- var s = i, a = s.operator, u = s.source;
4664
- o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
4706
+ var s = i, a = s.operator, l = s.source;
4707
+ o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4665
4708
  }), o;
4666
4709
  }, e.prototype._trySubscribe = function(t) {
4667
4710
  try {
@@ -4671,13 +4714,13 @@ var Ar = function() {
4671
4714
  }
4672
4715
  }, e.prototype.forEach = function(t, r) {
4673
4716
  var n = this;
4674
- return r = Cr(r), new r(function(i, o) {
4675
- var s = new rr({
4717
+ return r = Mr(r), new r(function(i, o) {
4718
+ var s = new sr({
4676
4719
  next: function(a) {
4677
4720
  try {
4678
4721
  t(a);
4679
- } catch (u) {
4680
- o(u), s.unsubscribe();
4722
+ } catch (l) {
4723
+ o(l), s.unsubscribe();
4681
4724
  }
4682
4725
  },
4683
4726
  error: o,
@@ -4688,15 +4731,15 @@ var Ar = function() {
4688
4731
  }, e.prototype._subscribe = function(t) {
4689
4732
  var r;
4690
4733
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
4691
- }, e.prototype[zo] = function() {
4734
+ }, e.prototype[Qo] = function() {
4692
4735
  return this;
4693
4736
  }, e.prototype.pipe = function() {
4694
4737
  for (var t = [], r = 0; r < arguments.length; r++)
4695
4738
  t[r] = arguments[r];
4696
- return Zo(t)(this);
4739
+ return Ko(t)(this);
4697
4740
  }, e.prototype.toPromise = function(t) {
4698
4741
  var r = this;
4699
- return t = Cr(t), new t(function(n, i) {
4742
+ return t = Mr(t), new t(function(n, i) {
4700
4743
  var o;
4701
4744
  r.subscribe(function(s) {
4702
4745
  return o = s;
@@ -4710,32 +4753,32 @@ var Ar = function() {
4710
4753
  return new e(t);
4711
4754
  }, e;
4712
4755
  }();
4713
- function Cr(e) {
4756
+ function Mr(e) {
4714
4757
  var t;
4715
- return (t = e ?? Go.Promise) !== null && t !== void 0 ? t : Promise;
4758
+ return (t = e ?? Xo.Promise) !== null && t !== void 0 ? t : Promise;
4716
4759
  }
4717
- function qo(e) {
4718
- return e && Se(e.next) && Se(e.error) && Se(e.complete);
4760
+ function ea(e) {
4761
+ return e && Te(e.next) && Te(e.error) && Te(e.complete);
4719
4762
  }
4720
- function Yo(e) {
4721
- return e && e instanceof gn || qo(e) && bn(e);
4763
+ function ta(e) {
4764
+ return e && e instanceof xn || ea(e) && En(e);
4722
4765
  }
4723
- var Qo = pn(function(e) {
4766
+ var ra = vn(function(e) {
4724
4767
  return function() {
4725
4768
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4726
4769
  };
4727
- }), yn = function(e) {
4728
- Te(t, e);
4770
+ }), wn = function(e) {
4771
+ at(t, e);
4729
4772
  function t() {
4730
4773
  var r = e.call(this) || this;
4731
4774
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
4732
4775
  }
4733
4776
  return t.prototype.lift = function(r) {
4734
- var n = new Hr(this, this);
4777
+ var n = new Lr(this, this);
4735
4778
  return n.operator = r, n;
4736
4779
  }, t.prototype._throwIfClosed = function() {
4737
4780
  if (this.closed)
4738
- throw new Qo();
4781
+ throw new ra();
4739
4782
  }, t.prototype.next = function(r) {
4740
4783
  var n = this;
4741
4784
  yt(function() {
@@ -4743,12 +4786,12 @@ var Qo = pn(function(e) {
4743
4786
  if (n._throwIfClosed(), !n.isStopped) {
4744
4787
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
4745
4788
  try {
4746
- for (var s = Vt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
4747
- var u = a.value;
4748
- u.next(r);
4789
+ for (var s = nr(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
4790
+ var l = a.value;
4791
+ l.next(r);
4749
4792
  }
4750
- } catch (l) {
4751
- i = { error: l };
4793
+ } catch (u) {
4794
+ i = { error: u };
4752
4795
  } finally {
4753
4796
  try {
4754
4797
  a && !a.done && (o = s.return) && o.call(s);
@@ -4792,20 +4835,20 @@ var Qo = pn(function(e) {
4792
4835
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
4793
4836
  }, t.prototype._innerSubscribe = function(r) {
4794
4837
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
4795
- return o || s ? mn : (this.currentObservers = null, a.push(r), new At(function() {
4796
- n.currentObservers = null, tr(a, r);
4838
+ return o || s ? _n : (this.currentObservers = null, a.push(r), new Ht(function() {
4839
+ n.currentObservers = null, ar(a, r);
4797
4840
  }));
4798
4841
  }, t.prototype._checkFinalizedStatuses = function(r) {
4799
4842
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
4800
4843
  i ? r.error(o) : s && r.complete();
4801
4844
  }, t.prototype.asObservable = function() {
4802
- var r = new Ar();
4845
+ var r = new Rr();
4803
4846
  return r.source = this, r;
4804
4847
  }, t.create = function(r, n) {
4805
- return new Hr(r, n);
4848
+ return new Lr(r, n);
4806
4849
  }, t;
4807
- }(Ar), Hr = function(e) {
4808
- Te(t, e);
4850
+ }(Rr), Lr = function(e) {
4851
+ at(t, e);
4809
4852
  function t(r, n) {
4810
4853
  var i = e.call(this) || this;
4811
4854
  return i.destination = r, i.source = n, i;
@@ -4821,58 +4864,58 @@ var Qo = pn(function(e) {
4821
4864
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
4822
4865
  }, t.prototype._subscribe = function(r) {
4823
4866
  var n, i;
4824
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : mn;
4867
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : _n;
4825
4868
  }, t;
4826
- }(yn), vn = {
4869
+ }(wn), Sn = {
4827
4870
  now: function() {
4828
- return (vn.delegate || Date).now();
4871
+ return (Sn.delegate || Date).now();
4829
4872
  },
4830
4873
  delegate: void 0
4831
- }, Jo = function(e) {
4832
- Te(t, e);
4874
+ }, na = function(e) {
4875
+ at(t, e);
4833
4876
  function t(r, n, i) {
4834
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = vn);
4877
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Sn);
4835
4878
  var o = e.call(this) || this;
4836
4879
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
4837
4880
  }
4838
4881
  return t.prototype.next = function(r) {
4839
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, u = n._windowTime;
4840
- i || (o.push(r), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, r);
4882
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
4883
+ i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
4841
4884
  }, t.prototype._subscribe = function(r) {
4842
4885
  this._throwIfClosed(), this._trimBuffer();
4843
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !r.closed; u += o ? 1 : 2)
4844
- r.next(a[u]);
4886
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
4887
+ r.next(a[l]);
4845
4888
  return this._checkFinalizedStatuses(r), n;
4846
4889
  }, t.prototype._trimBuffer = function() {
4847
4890
  var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
4848
4891
  if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
4849
- for (var u = i.now(), l = 0, f = 1; f < o.length && o[f] <= u; f += 2)
4850
- l = f;
4851
- l && o.splice(0, l + 1);
4892
+ for (var l = i.now(), u = 0, f = 1; f < o.length && o[f] <= l; f += 2)
4893
+ u = f;
4894
+ u && o.splice(0, u + 1);
4852
4895
  }
4853
4896
  }, t;
4854
- }(yn);
4855
- const Or = [], Rr = {}, Ko = (e, t = 0) => {
4856
- if (Or.indexOf(e) == -1) {
4857
- const r = new Jo(t);
4858
- Rr[e] = r, Or.push(e);
4897
+ }(wn);
4898
+ const Nr = [], Ir = {}, ia = (e, t = 0) => {
4899
+ if (Nr.indexOf(e) == -1) {
4900
+ const r = new na(t);
4901
+ Ir[e] = r, Nr.push(e);
4859
4902
  }
4860
- return Rr[e];
4903
+ return Ir[e];
4861
4904
  };
4862
- window.emWidgets = { topic: Ko };
4863
- const ea = (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));
4864
- function ta(e) {
4865
- Sn(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}');
4905
+ window.emWidgets = { topic: ia };
4906
+ const oa = (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));
4907
+ function aa(e) {
4908
+ Hn(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}');
4866
4909
  }
4867
- function Mr(e, t, r) {
4910
+ function Dr(e, t, r) {
4868
4911
  const n = e.slice();
4869
4912
  return n[54] = t[r], n;
4870
4913
  }
4871
- function Lr(e, t, r) {
4914
+ function Ur(e, t, r) {
4872
4915
  const n = e.slice();
4873
4916
  return n[57] = t[r], n;
4874
4917
  }
4875
- function ra(e) {
4918
+ function sa(e) {
4876
4919
  let t, r, n = (
4877
4920
  /*balances*/
4878
4921
  (e[1].Total ? (
@@ -4882,25 +4925,25 @@ function ra(e) {
4882
4925
  e[1].Total[0].amount
4883
4926
  )
4884
4927
  ) : "0") + ""
4885
- ), i, o, s, a, u, l, f, b, m, w, _ = (
4928
+ ), i, o, s, a, l, u, f, b, m, w, _ = (
4886
4929
  /*showBalance*/
4887
- e[4] && Pr(e)
4930
+ e[4] && Fr(e)
4888
4931
  );
4889
4932
  return {
4890
4933
  c() {
4891
- t = j("button"), r = j("p"), i = xe(n), o = we(), s = j("span"), a = lr("svg"), u = lr("path"), f = we(), _ && _.c(), b = An(), R(u, "id", "arrow"), R(u, "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(u, "transform", "translate(-274.511 -441.088)"), R(u, "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*/
4892
- e[3] ? "TriangleActive" : "TriangleInactive"), R(t, "class", "BalanceValue");
4934
+ t = G("button"), r = G("p"), i = we(n), o = Se(), s = G("span"), a = dr("svg"), l = dr("path"), f = Se(), _ && _.c(), b = Rn(), P(l, "id", "arrow"), P(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"), P(l, "transform", "translate(-274.511 -441.088)"), P(l, "fill", "#d1d1d1"), P(a, "xmlns", "http://www.w3.org/2000/svg"), P(a, "width", "14"), P(a, "height", "6.835"), P(a, "viewBox", "0 0 14 6.835"), P(s, "class", u = /*isModalDisplayed*/
4935
+ e[3] ? "TriangleActive" : "TriangleInactive"), P(t, "class", "BalanceValue");
4893
4936
  },
4894
- m(A, I) {
4895
- be(A, t, I), P(t, r), P(r, i), P(t, o), P(t, s), P(s, a), P(a, u), be(A, f, I), _ && _.m(A, I), be(A, b, I), m || (w = vt(
4937
+ m(A, N) {
4938
+ ge(A, t, N), M(t, r), M(r, i), M(t, o), M(t, s), M(s, a), M(a, l), ge(A, f, N), _ && _.m(A, N), ge(A, b, N), m || (w = vt(
4896
4939
  t,
4897
4940
  "click",
4898
4941
  /*click_handler*/
4899
4942
  e[26]
4900
4943
  ), m = !0);
4901
4944
  },
4902
- p(A, I) {
4903
- I[0] & /*balances*/
4945
+ p(A, N) {
4946
+ N[0] & /*balances*/
4904
4947
  2 && n !== (n = /*balances*/
4905
4948
  (A[1].Total ? (
4906
4949
  /*formatBalance*/
@@ -4908,67 +4951,67 @@ function ra(e) {
4908
4951
  /*balances*/
4909
4952
  A[1].Total[0].amount
4910
4953
  )
4911
- ) : "0") + "") && Re(i, n), I[0] & /*isModalDisplayed*/
4912
- 8 && l !== (l = /*isModalDisplayed*/
4913
- A[3] ? "TriangleActive" : "TriangleInactive") && R(s, "class", l), /*showBalance*/
4914
- A[4] ? _ ? _.p(A, I) : (_ = Pr(A), _.c(), _.m(b.parentNode, b)) : _ && (_.d(1), _ = null);
4954
+ ) : "0") + "") && Pe(i, n), N[0] & /*isModalDisplayed*/
4955
+ 8 && u !== (u = /*isModalDisplayed*/
4956
+ A[3] ? "TriangleActive" : "TriangleInactive") && P(s, "class", u), /*showBalance*/
4957
+ A[4] ? _ ? _.p(A, N) : (_ = Fr(A), _.c(), _.m(b.parentNode, b)) : _ && (_.d(1), _ = null);
4915
4958
  },
4916
4959
  d(A) {
4917
4960
  A && (de(t), de(f), de(b)), _ && _.d(A), m = !1, w();
4918
4961
  }
4919
4962
  };
4920
4963
  }
4921
- function na(e) {
4964
+ function ua(e) {
4922
4965
  let t, r = (
4923
4966
  /*$_*/
4924
4967
  e[6]("Loading") + ""
4925
4968
  ), n;
4926
4969
  return {
4927
4970
  c() {
4928
- t = j("p"), n = xe(r), R(t, "class", "Loading");
4971
+ t = G("p"), n = we(r), P(t, "class", "Loading");
4929
4972
  },
4930
4973
  m(i, o) {
4931
- be(i, t, o), P(t, n);
4974
+ ge(i, t, o), M(t, n);
4932
4975
  },
4933
4976
  p(i, o) {
4934
4977
  o[0] & /*$_*/
4935
4978
  64 && r !== (r = /*$_*/
4936
- i[6]("Loading") + "") && Re(n, r);
4979
+ i[6]("Loading") + "") && Pe(n, r);
4937
4980
  },
4938
4981
  d(i) {
4939
4982
  i && de(t);
4940
4983
  }
4941
4984
  };
4942
4985
  }
4943
- function Pr(e) {
4944
- let t, r, n, i, o, s, a, u, l = (
4986
+ function Fr(e) {
4987
+ let t, r, n, i, o, s, a, l, u = (
4945
4988
  /*$_*/
4946
4989
  e[6]("Title") + ""
4947
- ), f, b, m, w, _, A, I = (
4990
+ ), f, b, m, w, _, A, N = (
4948
4991
  /*$_*/
4949
4992
  e[6]("DepositButton") + ""
4950
- ), W, V, M, D, k, oe, Z = _t(Object.keys(
4993
+ ), W, V, R, I, j, oe, Z = _t(Object.keys(
4951
4994
  /*balances*/
4952
4995
  e[1]
4953
- )), $ = [];
4954
- for (let U = 0; U < Z.length; U += 1)
4955
- $[U] = Ir(Mr(e, Z, U));
4996
+ )), k = [];
4997
+ for (let D = 0; D < Z.length; D += 1)
4998
+ k[D] = jr(Dr(e, Z, D));
4956
4999
  return {
4957
5000
  c() {
4958
- t = j("div"), r = j("button"), i = we(), o = j("div"), s = j("div"), a = j("div"), u = j("p"), f = xe(l), b = we(), m = j("div");
4959
- for (let U = 0; U < $.length; U += 1)
4960
- $[U].c();
4961
- w = we(), _ = j("div"), A = j("button"), W = xe(I), R(r, "class", n = "BalanceModalClose " + /*isModalDisplayed*/
4962
- (e[3] ? "Open" : "")), R(u, "class", "BalanceModalTitle"), R(a, "class", "BalanceModalHeader"), R(m, "class", "BalanceModalBody"), R(A, "class", "BalanceModalAction"), R(_, "class", "BalanceModalFooter"), R(s, "class", V = "ModalContent " + /*isModalDisplayed*/
4963
- (e[3] ? "Open" : "")), R(o, "class", M = "BalanceModal " + /*isModalDisplayed*/
4964
- (e[3] ? "Open" : "")), R(t, "class", D = "BalanceModalWrapper " + /*isModalDisplayed*/
5001
+ t = G("div"), r = G("button"), i = Se(), o = G("div"), s = G("div"), a = G("div"), l = G("p"), f = we(u), b = Se(), m = G("div");
5002
+ for (let D = 0; D < k.length; D += 1)
5003
+ k[D].c();
5004
+ w = Se(), _ = G("div"), A = G("button"), W = we(N), P(r, "class", n = "BalanceModalClose " + /*isModalDisplayed*/
5005
+ (e[3] ? "Open" : "")), P(l, "class", "BalanceModalTitle"), P(a, "class", "BalanceModalHeader"), P(m, "class", "BalanceModalBody"), P(A, "class", "BalanceModalAction"), P(_, "class", "BalanceModalFooter"), P(s, "class", V = "ModalContent " + /*isModalDisplayed*/
5006
+ (e[3] ? "Open" : "")), P(o, "class", R = "BalanceModal " + /*isModalDisplayed*/
5007
+ (e[3] ? "Open" : "")), P(t, "class", I = "BalanceModalWrapper " + /*isModalDisplayed*/
4965
5008
  (e[3] ? "Open" : ""));
4966
5009
  },
4967
- m(U, q) {
4968
- be(U, t, q), P(t, r), P(t, i), P(t, o), P(o, s), P(s, a), P(a, u), P(u, f), P(s, b), P(s, m);
4969
- for (let F = 0; F < $.length; F += 1)
4970
- $[F] && $[F].m(m, null);
4971
- P(s, w), P(s, _), P(_, A), P(A, W), k || (oe = [
5010
+ m(D, q) {
5011
+ ge(D, t, q), M(t, r), M(t, i), M(t, o), M(o, s), M(s, a), M(a, l), M(l, f), M(s, b), M(s, m);
5012
+ for (let U = 0; U < k.length; U += 1)
5013
+ k[U] && k[U].m(m, null);
5014
+ M(s, w), M(s, _), M(_, A), M(A, W), j || (oe = [
4972
5015
  vt(
4973
5016
  r,
4974
5017
  "click",
@@ -4981,44 +5024,44 @@ function Pr(e) {
4981
5024
  /*click_handler_2*/
4982
5025
  e[28]
4983
5026
  )
4984
- ], k = !0);
5027
+ ], j = !0);
4985
5028
  },
4986
- p(U, q) {
5029
+ p(D, q) {
4987
5030
  if (q[0] & /*isModalDisplayed*/
4988
5031
  8 && n !== (n = "BalanceModalClose " + /*isModalDisplayed*/
4989
- (U[3] ? "Open" : "")) && R(r, "class", n), q[0] & /*$_*/
4990
- 64 && l !== (l = /*$_*/
4991
- U[6]("Title") + "") && Re(f, l), q[0] & /*balances, formatBalance, $_*/
5032
+ (D[3] ? "Open" : "")) && P(r, "class", n), q[0] & /*$_*/
5033
+ 64 && u !== (u = /*$_*/
5034
+ D[6]("Title") + "") && Pe(f, u), q[0] & /*balances, formatBalance, $_*/
4992
5035
  322) {
4993
5036
  Z = _t(Object.keys(
4994
5037
  /*balances*/
4995
- U[1]
5038
+ D[1]
4996
5039
  ));
4997
- let F;
4998
- for (F = 0; F < Z.length; F += 1) {
4999
- const K = Mr(U, Z, F);
5000
- $[F] ? $[F].p(K, q) : ($[F] = Ir(K), $[F].c(), $[F].m(m, null));
5040
+ let U;
5041
+ for (U = 0; U < Z.length; U += 1) {
5042
+ const K = Dr(D, Z, U);
5043
+ k[U] ? k[U].p(K, q) : (k[U] = jr(K), k[U].c(), k[U].m(m, null));
5001
5044
  }
5002
- for (; F < $.length; F += 1)
5003
- $[F].d(1);
5004
- $.length = Z.length;
5045
+ for (; U < k.length; U += 1)
5046
+ k[U].d(1);
5047
+ k.length = Z.length;
5005
5048
  }
5006
5049
  q[0] & /*$_*/
5007
- 64 && I !== (I = /*$_*/
5008
- U[6]("DepositButton") + "") && Re(W, I), q[0] & /*isModalDisplayed*/
5050
+ 64 && N !== (N = /*$_*/
5051
+ D[6]("DepositButton") + "") && Pe(W, N), q[0] & /*isModalDisplayed*/
5009
5052
  8 && V !== (V = "ModalContent " + /*isModalDisplayed*/
5010
- (U[3] ? "Open" : "")) && R(s, "class", V), q[0] & /*isModalDisplayed*/
5011
- 8 && M !== (M = "BalanceModal " + /*isModalDisplayed*/
5012
- (U[3] ? "Open" : "")) && R(o, "class", M), q[0] & /*isModalDisplayed*/
5013
- 8 && D !== (D = "BalanceModalWrapper " + /*isModalDisplayed*/
5014
- (U[3] ? "Open" : "")) && R(t, "class", D);
5053
+ (D[3] ? "Open" : "")) && P(s, "class", V), q[0] & /*isModalDisplayed*/
5054
+ 8 && R !== (R = "BalanceModal " + /*isModalDisplayed*/
5055
+ (D[3] ? "Open" : "")) && P(o, "class", R), q[0] & /*isModalDisplayed*/
5056
+ 8 && I !== (I = "BalanceModalWrapper " + /*isModalDisplayed*/
5057
+ (D[3] ? "Open" : "")) && P(t, "class", I);
5015
5058
  },
5016
- d(U) {
5017
- U && de(t), jr($, U), k = !1, ze(oe);
5059
+ d(D) {
5060
+ D && de(t), zr(k, D), j = !1, Xe(oe);
5018
5061
  }
5019
5062
  };
5020
5063
  }
5021
- function Nr(e) {
5064
+ function Gr(e) {
5022
5065
  let t, r, n = (
5023
5066
  /*$_*/
5024
5067
  e[6](
@@ -5034,7 +5077,7 @@ function Nr(e) {
5034
5077
  e[57].productType
5035
5078
  )
5036
5079
  ) : "") + ""
5037
- ), a, u, l, f, b = (
5080
+ ), a, l, u, f, b = (
5038
5081
  /*formatBalance*/
5039
5082
  e[8](
5040
5083
  /*b*/
@@ -5043,10 +5086,10 @@ function Nr(e) {
5043
5086
  ), m;
5044
5087
  return {
5045
5088
  c() {
5046
- t = j("div"), r = j("p"), i = xe(n), o = we(), a = xe(s), u = we(), l = j("p"), f = j("span"), m = xe(b), R(r, "class", "BalanceModalText"), R(f, "class", "BalanceModalAmount"), R(l, "class", "BalanceModalValue"), R(t, "class", "BalanceModalRowLine");
5089
+ t = G("div"), r = G("p"), i = we(n), o = Se(), a = we(s), l = Se(), u = G("p"), f = G("span"), m = we(b), P(r, "class", "BalanceModalText"), P(f, "class", "BalanceModalAmount"), P(u, "class", "BalanceModalValue"), P(t, "class", "BalanceModalRowLine");
5047
5090
  },
5048
5091
  m(w, _) {
5049
- be(w, t, _), P(t, r), P(r, i), P(r, o), P(r, a), P(t, u), P(t, l), P(l, f), P(f, m);
5092
+ ge(w, t, _), M(t, r), M(r, i), M(r, o), M(r, a), M(t, l), M(t, u), M(u, f), M(f, m);
5050
5093
  },
5051
5094
  p(w, _) {
5052
5095
  _[0] & /*$_, balances*/
@@ -5054,7 +5097,7 @@ function Nr(e) {
5054
5097
  w[6](
5055
5098
  /*k*/
5056
5099
  w[54]
5057
- ) + "") && Re(i, n), _[0] & /*balances, $_*/
5100
+ ) + "") && Pe(i, n), _[0] & /*balances, $_*/
5058
5101
  66 && s !== (s = /*b*/
5059
5102
  (w[57].productType ? (
5060
5103
  /*$_*/
@@ -5062,19 +5105,19 @@ function Nr(e) {
5062
5105
  /*b*/
5063
5106
  w[57].productType
5064
5107
  )
5065
- ) : "") + "") && Re(a, s), _[0] & /*balances*/
5108
+ ) : "") + "") && Pe(a, s), _[0] & /*balances*/
5066
5109
  2 && b !== (b = /*formatBalance*/
5067
5110
  w[8](
5068
5111
  /*b*/
5069
5112
  w[57].amount
5070
- ) + "") && Re(m, b);
5113
+ ) + "") && Pe(m, b);
5071
5114
  },
5072
5115
  d(w) {
5073
5116
  w && de(t);
5074
5117
  }
5075
5118
  };
5076
5119
  }
5077
- function Ir(e) {
5120
+ function jr(e) {
5078
5121
  let t, r, n = _t(
5079
5122
  /*balances*/
5080
5123
  e[1][
@@ -5083,19 +5126,19 @@ function Ir(e) {
5083
5126
  ]
5084
5127
  ), i = [];
5085
5128
  for (let o = 0; o < n.length; o += 1)
5086
- i[o] = Nr(Lr(e, n, o));
5129
+ i[o] = Gr(Ur(e, n, o));
5087
5130
  return {
5088
5131
  c() {
5089
- t = j("div");
5132
+ t = G("div");
5090
5133
  for (let o = 0; o < i.length; o += 1)
5091
5134
  i[o].c();
5092
- r = we(), R(t, "class", "BalanceModalRowBoth");
5135
+ r = Se(), P(t, "class", "BalanceModalRowBoth");
5093
5136
  },
5094
5137
  m(o, s) {
5095
- be(o, t, s);
5138
+ ge(o, t, s);
5096
5139
  for (let a = 0; a < i.length; a += 1)
5097
5140
  i[a] && i[a].m(t, null);
5098
- P(t, r);
5141
+ M(t, r);
5099
5142
  },
5100
5143
  p(o, s) {
5101
5144
  if (s[0] & /*formatBalance, balances, $_*/
@@ -5109,8 +5152,8 @@ function Ir(e) {
5109
5152
  );
5110
5153
  let a;
5111
5154
  for (a = 0; a < n.length; a += 1) {
5112
- const u = Lr(o, n, a);
5113
- i[a] ? i[a].p(u, s) : (i[a] = Nr(u), i[a].c(), i[a].m(t, r));
5155
+ const l = Ur(o, n, a);
5156
+ i[a] ? i[a].p(l, s) : (i[a] = Gr(l), i[a].c(), i[a].m(t, r));
5114
5157
  }
5115
5158
  for (; a < i.length; a += 1)
5116
5159
  i[a].d(1);
@@ -5118,18 +5161,18 @@ function Ir(e) {
5118
5161
  }
5119
5162
  },
5120
5163
  d(o) {
5121
- o && de(t), jr(i, o);
5164
+ o && de(t), zr(i, o);
5122
5165
  }
5123
5166
  };
5124
5167
  }
5125
- function Dr(e) {
5168
+ function kr(e) {
5126
5169
  let t, r, n;
5127
5170
  return {
5128
5171
  c() {
5129
- t = j("button"), R(t, "class", "ShowBalanceModalOverlay");
5172
+ t = G("button"), P(t, "class", "ShowBalanceModalOverlay");
5130
5173
  },
5131
5174
  m(i, o) {
5132
- be(i, t, o), r || (n = vt(
5175
+ ge(i, t, o), r || (n = vt(
5133
5176
  t,
5134
5177
  "click",
5135
5178
  /*click_handler_3*/
@@ -5142,47 +5185,47 @@ function Dr(e) {
5142
5185
  }
5143
5186
  };
5144
5187
  }
5145
- function ia(e) {
5188
+ function la(e) {
5146
5189
  let t, r, n, i;
5147
- function o(l, f) {
5190
+ function o(u, f) {
5148
5191
  return (
5149
5192
  /*isLoading*/
5150
- l[2] ? na : ra
5193
+ u[2] ? ua : sa
5151
5194
  );
5152
5195
  }
5153
- let s = o(e), a = s(e), u = (
5196
+ let s = o(e), a = s(e), l = (
5154
5197
  /*showBalance*/
5155
- e[4] && Dr(e)
5198
+ e[4] && kr(e)
5156
5199
  );
5157
5200
  return {
5158
5201
  c() {
5159
- t = j("div"), r = j("div"), a.c(), i = we(), u && u.c(), R(r, "class", n = "ShowBalance " + /*mobileView*/
5202
+ t = G("div"), r = G("div"), a.c(), i = Se(), l && l.c(), P(r, "class", n = "ShowBalance " + /*mobileView*/
5160
5203
  (e[5] ? "Mobile" : ""));
5161
5204
  },
5162
- m(l, f) {
5163
- be(l, t, f), P(t, r), a.m(r, null), P(t, i), u && u.m(t, null), e[30](t);
5205
+ m(u, f) {
5206
+ ge(u, t, f), M(t, r), a.m(r, null), M(t, i), l && l.m(t, null), e[30](t);
5164
5207
  },
5165
- p(l, f) {
5166
- s === (s = o(l)) && a ? a.p(l, f) : (a.d(1), a = s(l), a && (a.c(), a.m(r, null))), f[0] & /*mobileView*/
5208
+ p(u, f) {
5209
+ s === (s = o(u)) && a ? a.p(u, f) : (a.d(1), a = s(u), a && (a.c(), a.m(r, null))), f[0] & /*mobileView*/
5167
5210
  32 && n !== (n = "ShowBalance " + /*mobileView*/
5168
- (l[5] ? "Mobile" : "")) && R(r, "class", n), /*showBalance*/
5169
- l[4] ? u ? u.p(l, f) : (u = Dr(l), u.c(), u.m(t, null)) : u && (u.d(1), u = null);
5211
+ (u[5] ? "Mobile" : "")) && P(r, "class", n), /*showBalance*/
5212
+ u[4] ? l ? l.p(u, f) : (l = kr(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
5170
5213
  },
5171
5214
  i: ce,
5172
5215
  o: ce,
5173
- d(l) {
5174
- l && de(t), a.d(), u && u.d(), e[30](null);
5216
+ d(u) {
5217
+ u && de(t), a.d(), l && l.d(), e[30](null);
5175
5218
  }
5176
5219
  };
5177
5220
  }
5178
- function oa(e, t, r) {
5221
+ function ca(e, t, r) {
5179
5222
  let n;
5180
- wn(e, Do, (c) => r(6, n = c));
5181
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: u } = t, { clientstyling: l = "" } = 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: M = "" } = t, D, k = !0, oe = !1, Z = !1, $ = !1, U = !1, q = window.navigator.userAgent, F, K = "", he = [], ge;
5182
- const x = {}, ye = ["totalCashAmount", "totalRealAmount"], pe = () => {
5183
- fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((d) => wr(d, c[d]))).catch((c) => console.log(c));
5223
+ Cn(e, ko, (c) => r(6, n = c));
5224
+ 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: N = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: V = "0" } = t, { customdisplayformat: R = "" } = t, I, j = !0, oe = !1, Z = !1, k = !1, D = !1, q = window.navigator.userAgent, U, K = "", he = [], ye;
5225
+ const x = {}, ve = ["totalCashAmount", "totalRealAmount"], pe = () => {
5226
+ fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((d) => Cr(d, c[d]))).catch((c) => console.log(c));
5184
5227
  };
5185
- Object.keys(Sr).forEach((c) => wr(c, Sr[c]));
5228
+ Object.keys(Hr).forEach((c) => Cr(c, Hr[c]));
5186
5229
  const ae = (c) => {
5187
5230
  switch (c) {
5188
5231
  case "balance":
@@ -5192,7 +5235,7 @@ function oa(e, t, r) {
5192
5235
  status: "open"
5193
5236
  },
5194
5237
  window.location.href
5195
- ), r(4, $ = !0), setTimeout(() => r(3, oe = !0), 150);
5238
+ ), r(4, k = !0), setTimeout(() => r(3, oe = !0), 150);
5196
5239
  break;
5197
5240
  case "closebalance":
5198
5241
  r(3, oe = !1), window.postMessage(
@@ -5203,28 +5246,28 @@ function oa(e, t, r) {
5203
5246
  window.location.href
5204
5247
  ), setTimeout(
5205
5248
  () => {
5206
- r(4, $ = !1);
5249
+ r(4, k = !1);
5207
5250
  },
5208
5251
  150
5209
5252
  );
5210
5253
  break;
5211
5254
  }
5212
5255
  }, He = (c) => {
5213
- if (M)
5214
- return Ye(c);
5256
+ if (R)
5257
+ return qe(c);
5215
5258
  const d = A || a, p = {
5216
5259
  style: "currency",
5217
5260
  currency: K,
5218
5261
  useGrouping: !0,
5219
- currencyDisplay: I || "code",
5262
+ currencyDisplay: N || "code",
5220
5263
  maximumFractionDigits: W === "" || isNaN(Number(W)) ? 2 : Number(W),
5221
5264
  minimumFractionDigits: V === "" || isNaN(Number(V)) ? 0 : Number(V)
5222
5265
  };
5223
5266
  return new Intl.NumberFormat(d, p).format(c);
5224
- }, Ye = (c) => {
5267
+ }, qe = (c) => {
5225
5268
  const d = [];
5226
5269
  let p = "";
5227
- for (const v of M)
5270
+ for (const v of R)
5228
5271
  switch (v) {
5229
5272
  default:
5230
5273
  p += v;
@@ -5237,9 +5280,9 @@ function oa(e, t, r) {
5237
5280
  if (p = "", T.toLowerCase() === "currency")
5238
5281
  p = K;
5239
5282
  else if (T.toLowerCase() === "amount") {
5240
- let S = ",", B = ".", N = 2;
5241
- C && (C[0] !== " " && (S = C[0]), C[1] !== " " && (B = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (N = Number(C[2])));
5242
- let [ee, Ae] = String(Math.floor(c * 10 ** N) / 10 ** N).split(".");
5283
+ let S = ",", B = ".", L = 2;
5284
+ C && (C[0] !== " " && (S = C[0]), C[1] !== " " && (B = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (L = Number(C[2])));
5285
+ let [ee, Ae] = String(Math.floor(c * 10 ** L) / 10 ** L).split(".");
5243
5286
  p += ee[0];
5244
5287
  for (let X = 1; X < ee.length; ++X)
5245
5288
  (ee.length - X) % 3 === 0 ? p += S + ee[X] : p += ee[X];
@@ -5250,7 +5293,7 @@ function oa(e, t, r) {
5250
5293
  }
5251
5294
  return d.push(p), d.join("");
5252
5295
  }, me = async () => {
5253
- r(2, k = !0);
5296
+ r(2, j = !0);
5254
5297
  const c = new URL(`${s}/v1/player/${i}/account`);
5255
5298
  try {
5256
5299
  const d = await fetch(c, {
@@ -5280,16 +5323,16 @@ function oa(e, t, r) {
5280
5323
  } catch (d) {
5281
5324
  console.log("Balance error: ", d);
5282
5325
  } finally {
5283
- r(2, k = !1);
5326
+ r(2, j = !1);
5284
5327
  }
5285
- }, Qe = () => {
5286
- r(2, k = !0);
5328
+ }, Ye = () => {
5329
+ r(2, j = !0);
5287
5330
  const c = new URL(`${s}/v2/player/${i}/balance`), d = new Headers();
5288
5331
  d.append("X-SessionID", o), fetch(c, { method: "GET", headers: d }).then((v) => v.json()).then((v) => {
5289
- v[_] || r(10, _ = ye[0]);
5332
+ v[_] || r(10, _ = ve[0]);
5290
5333
  const T = v.items.find((S) => S.type === "Real" && S.walletAccountType === "Ordinary");
5291
5334
  if (K = T.currency, Z = !!T.productType, r(1, x.Total = [{ amount: 0 }], x), r(1, x.Real = [], x), r(1, x.Bonus = [], x), r(1, x.Credit = [], x), !Z) {
5292
- ge = {
5335
+ ye = {
5293
5336
  lastOrdinaryAfterAmount: 0,
5294
5337
  showCreditLineAfterAmount: !1
5295
5338
  }, r(1, x.Total[0].amount = v[_][K], x);
@@ -5306,10 +5349,10 @@ function oa(e, t, r) {
5306
5349
  }
5307
5350
  for (const [S, B] of Object.entries(x))
5308
5351
  B.length < 1 && delete x[S];
5309
- r(2, k = !1);
5352
+ r(2, j = !1);
5310
5353
  return;
5311
5354
  }
5312
- ge = {
5355
+ ye = {
5313
5356
  Casino: {
5314
5357
  lastOrdinaryAfterAmount: 0,
5315
5358
  showCreditLineAfterAmount: !1
@@ -5325,7 +5368,7 @@ function oa(e, t, r) {
5325
5368
  let B;
5326
5369
  switch (S.type) {
5327
5370
  case "Bonus":
5328
- B = x.Bonus.findIndex((N) => N.productType === S.productType), B > 0 ? r(1, x.Bonus[B].amount += S.amount, x) : x.Bonus.push({
5371
+ B = x.Bonus.findIndex((L) => L.productType === S.productType), B > 0 ? r(1, x.Bonus[B].amount += S.amount, x) : x.Bonus.push({
5329
5372
  amount: S.amount,
5330
5373
  productType: S.productType
5331
5374
  });
@@ -5334,37 +5377,37 @@ function oa(e, t, r) {
5334
5377
  S.creditLine && x.Credit.push({
5335
5378
  amount: S.creditLine,
5336
5379
  productType: S.productType
5337
- }), B = x.Real.findIndex((N) => N.productType === S.productType), B > 0 ? r(1, x.Real[B].amount += S.amount, x) : x.Real.push({
5380
+ }), B = x.Real.findIndex((L) => L.productType === S.productType), B > 0 ? r(1, x.Real[B].amount += S.amount, x) : x.Real.push({
5338
5381
  amount: S.amount,
5339
5382
  productType: S.productType
5340
5383
  });
5341
5384
  break;
5342
5385
  }
5343
5386
  }
5344
- lt();
5387
+ ut();
5345
5388
  for (const [S, B] of Object.entries(x))
5346
5389
  B.length < 1 && delete x[S];
5347
- r(2, k = !1);
5390
+ r(2, j = !1);
5348
5391
  }).catch((v) => {
5349
- throw r(2, k = !1), console.log("Balance fetch error", v), new Error("Failed to fetch balance data!");
5392
+ throw r(2, j = !1), console.log("Balance fetch error", v), new Error("Failed to fetch balance data!");
5350
5393
  });
5351
- }, Le = () => {
5352
- if (F && F.close(), o.length < 1)
5394
+ }, Me = () => {
5395
+ if (U && U.close(), o.length < 1)
5353
5396
  return;
5354
5397
  let c, d;
5355
5398
  switch (m) {
5356
5399
  case "gm16":
5357
- c = new URL(`${s}/v2/player/${i}/information/updates`), d = (T) => Ke(T);
5400
+ c = new URL(`${s}/v2/player/${i}/information/updates`), d = (T) => Je(T);
5358
5401
  break;
5359
5402
  case "gmcore":
5360
- c = new URL(`${s}/v1/player/${i}/balance/updates`), d = (T) => Ct(T);
5403
+ c = new URL(`${s}/v1/player/${i}/balance/updates`), d = (T) => Ot(T);
5361
5404
  break;
5362
5405
  }
5363
5406
  const p = {
5364
5407
  accept: "text/event-stream",
5365
5408
  "X-SessionId": o
5366
- }, v = new Fo.EventSourcePolyfill(c, { headers: p });
5367
- F = v, v.addEventListener("message", d);
5409
+ }, v = new Vo.EventSourcePolyfill(c, { headers: p });
5410
+ U = v, v.addEventListener("message", d);
5368
5411
  }, st = (c) => {
5369
5412
  let d;
5370
5413
  try {
@@ -5374,10 +5417,10 @@ function oa(e, t, r) {
5374
5417
  return;
5375
5418
  }
5376
5419
  return d;
5377
- }, Ct = (c) => {
5420
+ }, Ot = (c) => {
5378
5421
  const d = st(c.data);
5379
5422
  if (!d) {
5380
- Le();
5423
+ Me();
5381
5424
  return;
5382
5425
  }
5383
5426
  let p = "0";
@@ -5386,7 +5429,7 @@ function oa(e, t, r) {
5386
5429
  ...T,
5387
5430
  balanceAmount: v[T.id].afterAmount
5388
5431
  }), p = (parseFloat(T?.balanceAmount) + parseFloat(p)).toString(), T)), r(1, x.Real = [{ amount: he[0]?.balanceAmount }], x), r(1, x.Bonus = [{ amount: he[1]?.balanceAmount }], x), r(1, x.Total = [{ amount: Number(p) }], x);
5389
- }, Je = (c, d, p) => {
5432
+ }, Qe = (c, d, p) => {
5390
5433
  let v = null;
5391
5434
  switch (p.walletAccountType) {
5392
5435
  case "Ordinary":
@@ -5399,7 +5442,7 @@ function oa(e, t, r) {
5399
5442
  v = p.afterAmount;
5400
5443
  }
5401
5444
  return v === null ? c : v;
5402
- }, lt = () => {
5445
+ }, ut = () => {
5403
5446
  switch (_) {
5404
5447
  case "totalCashAmount":
5405
5448
  let c = 0;
@@ -5416,100 +5459,100 @@ function oa(e, t, r) {
5416
5459
  d += p.amount;
5417
5460
  r(1, x.Total[0].amount = d, x);
5418
5461
  }
5419
- }, Ke = (c) => {
5462
+ }, Je = (c) => {
5420
5463
  const d = st(c.data);
5421
5464
  if (!d) {
5422
- Le();
5465
+ Me();
5423
5466
  return;
5424
5467
  }
5425
5468
  if (Be(d?.type) || d.type !== "BALANCE_UPDATE_V2")
5426
5469
  return;
5427
5470
  const p = d.body.balanceChange;
5428
5471
  for (const [v, T] of Object.entries(p))
5429
- if (_ === "totalRealAmount" && v === "Real" && !Z && r(1, x.Total[0].amount = Je(x.Total[0].amount, ge, T), x), !!x[v])
5472
+ if (_ === "totalRealAmount" && v === "Real" && !Z && r(1, x.Total[0].amount = Qe(x.Total[0].amount, ye, T), x), !!x[v])
5430
5473
  for (const C of x[v]) {
5431
5474
  if (!Z) {
5432
- C.amount = v === "Real" ? Je(C.amount, ge, T) : T.afterAmount;
5475
+ C.amount = v === "Real" ? Qe(C.amount, ye, T) : T.afterAmount;
5433
5476
  continue;
5434
5477
  }
5435
- T.productType === C.productType && (C.amount = v === "Real" ? Je(C.amount, ge[C.productType], T) : T.afterAmount);
5478
+ T.productType === C.productType && (C.amount = v === "Real" ? Qe(C.amount, ye[C.productType], T) : T.afterAmount);
5436
5479
  }
5437
- lt();
5438
- }, Pe = () => {
5480
+ ut();
5481
+ }, Le = () => {
5439
5482
  ae("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5440
5483
  }, Be = (c) => c === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, se = () => {
5441
- ye.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ye}. Using default value ('${ye[0]}').`), r(10, _ = ye[0]));
5442
- }, Ht = () => {
5443
- switch (Uo(a), se(), m) {
5484
+ ve.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ve}. Using default value ('${ve[0]}').`), r(10, _ = ve[0]));
5485
+ }, Pt = () => {
5486
+ switch ($o(a), se(), m) {
5444
5487
  case "gmcore":
5445
5488
  me();
5446
5489
  break;
5447
5490
  case "gm16":
5448
- Qe();
5491
+ Ye();
5449
5492
  break;
5450
5493
  default:
5451
5494
  throw Error(`Invalid apiversion attribute: ${m}`);
5452
5495
  }
5453
- }, ut = (c) => {
5496
+ }, lt = (c) => {
5454
5497
  const { data: { type: d } = {} } = c || {};
5455
5498
  switch (d) {
5456
5499
  case "LogoutSuccessfull":
5457
- F.close();
5500
+ U.close();
5458
5501
  break;
5459
5502
  case "CloseBalance":
5460
5503
  ae("closebalance");
5461
5504
  break;
5462
5505
  }
5463
- }, Ot = () => {
5506
+ }, Rt = () => {
5464
5507
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5465
5508
  };
5466
- Rn(() => (window.addEventListener("message", ut, !1), r(5, U = ea(q)), () => {
5467
- window.removeEventListener("message", ut), F && F.close();
5509
+ In(() => (window.addEventListener("message", lt, !1), r(5, D = oa(q)), () => {
5510
+ window.removeEventListener("message", lt), U && U.close();
5468
5511
  }));
5469
- const ct = () => ae("balance"), h = () => ae("closebalance"), y = () => Pe(), E = () => ae("closebalance");
5512
+ const ct = () => ae("balance"), h = () => ae("closebalance"), y = () => Le(), E = () => ae("closebalance");
5470
5513
  function g(c) {
5471
- Gt[c ? "unshift" : "push"](() => {
5472
- D = c, r(0, D);
5514
+ $t[c ? "unshift" : "push"](() => {
5515
+ I = c, r(0, I);
5473
5516
  });
5474
5517
  }
5475
5518
  return e.$$set = (c) => {
5476
- "userid" in c && r(11, i = c.userid), "session" in c && r(12, o = c.session), "endpoint" in c && r(13, s = c.endpoint), "lang" in c && r(14, a = c.lang), "mbsource" in c && r(15, u = c.mbsource), "clientstyling" in c && r(16, l = c.clientstyling), "clientstylingurl" in c && r(17, f = c.clientstylingurl), "translationurl" in c && r(18, b = c.translationurl), "gmversion" in c && r(19, m = c.gmversion), "displaybalanceoption" in c && r(20, w = c.displaybalanceoption), "totalcalculationmode" in c && r(10, _ = c.totalcalculationmode), "currencylocale" in c && r(21, A = c.currencylocale), "currencydisplay" in c && r(22, I = c.currencydisplay), "maximumfractiondigits" in c && r(23, W = c.maximumfractiondigits), "minimumfractiondigits" in c && r(24, V = c.minimumfractiondigits), "customdisplayformat" in c && r(25, M = c.customdisplayformat);
5519
+ "userid" in c && r(11, i = c.userid), "session" in c && r(12, o = c.session), "endpoint" in c && r(13, s = c.endpoint), "lang" in c && r(14, a = c.lang), "mbsource" in c && r(15, l = c.mbsource), "clientstyling" in c && r(16, u = c.clientstyling), "clientstylingurl" in c && r(17, f = c.clientstylingurl), "translationurl" in c && r(18, b = c.translationurl), "gmversion" in c && r(19, m = c.gmversion), "displaybalanceoption" in c && r(20, w = c.displaybalanceoption), "totalcalculationmode" in c && r(10, _ = c.totalcalculationmode), "currencylocale" in c && r(21, A = c.currencylocale), "currencydisplay" in c && r(22, N = c.currencydisplay), "maximumfractiondigits" in c && r(23, W = c.maximumfractiondigits), "minimumfractiondigits" in c && r(24, V = c.minimumfractiondigits), "customdisplayformat" in c && r(25, R = c.customdisplayformat);
5477
5520
  }, e.$$.update = () => {
5478
5521
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5479
- 1603584 && s && i && o && a && m && w && Ht(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5480
- 538624 && s && i && o && m && Le(), e.$$.dirty[0] & /*translationurl*/
5522
+ 1603584 && s && i && o && a && m && w && Pt(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5523
+ 538624 && s && i && o && m && Me(), e.$$.dirty[0] & /*translationurl*/
5481
5524
  262144 && b && pe(), e.$$.dirty[0] & /*balances*/
5482
- 2 && x.Total && Ot(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5483
- 65537 && l && D && Xn(D, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5484
- 131073 && f && D && zn(D, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5485
- 32769 && u && D && Wn(D, `${u}.Style`);
5525
+ 2 && x.Total && Rt(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5526
+ 65537 && u && I && Yn(I, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5527
+ 131073 && f && I && Qn(I, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5528
+ 32769 && l && I && Jn(I, `${l}.Style`);
5486
5529
  }, [
5487
- D,
5530
+ I,
5488
5531
  x,
5489
- k,
5532
+ j,
5490
5533
  oe,
5491
- $,
5492
- U,
5534
+ k,
5535
+ D,
5493
5536
  n,
5494
5537
  ae,
5495
5538
  He,
5496
- Pe,
5539
+ Le,
5497
5540
  _,
5498
5541
  i,
5499
5542
  o,
5500
5543
  s,
5501
5544
  a,
5502
- u,
5503
5545
  l,
5546
+ u,
5504
5547
  f,
5505
5548
  b,
5506
5549
  m,
5507
5550
  w,
5508
5551
  A,
5509
- I,
5552
+ N,
5510
5553
  W,
5511
5554
  V,
5512
- M,
5555
+ R,
5513
5556
  ct,
5514
5557
  h,
5515
5558
  y,
@@ -5517,14 +5560,14 @@ function oa(e, t, r) {
5517
5560
  g
5518
5561
  ];
5519
5562
  }
5520
- class aa extends $n {
5563
+ class ha extends Zn {
5521
5564
  constructor(t) {
5522
- super(), jn(
5565
+ super(), zn(
5523
5566
  this,
5524
5567
  t,
5525
- oa,
5526
- ia,
5527
- Fr,
5568
+ ca,
5569
+ la,
5570
+ Vr,
5528
5571
  {
5529
5572
  userid: 11,
5530
5573
  session: 12,
@@ -5543,7 +5586,7 @@ class aa extends $n {
5543
5586
  minimumfractiondigits: 24,
5544
5587
  customdisplayformat: 25
5545
5588
  },
5546
- ta,
5589
+ aa,
5547
5590
  [-1, -1]
5548
5591
  );
5549
5592
  }
@@ -5644,7 +5687,7 @@ class aa extends $n {
5644
5687
  this.$$set({ customdisplayformat: t }), Q();
5645
5688
  }
5646
5689
  }
5647
- kn(aa, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5690
+ Wn(ha, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5648
5691
  export {
5649
- aa as P
5692
+ ha as P
5650
5693
  };