@everymatrix/player-account-balance-modal 1.74.7 → 1.74.10

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