@everymatrix/player-account-balance-modal-nd 1.54.12 → 1.56.0

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.
@@ -6,7 +6,7 @@ function Sn(e) {
6
6
  function tn() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function $e(e) {
9
+ function je(e) {
10
10
  e.forEach(Sn);
11
11
  }
12
12
  function Qt(e) {
@@ -27,16 +27,16 @@ function Cn(e, ...t) {
27
27
  const n = e.subscribe(...t);
28
28
  return n.unsubscribe ? () => n.unsubscribe() : n;
29
29
  }
30
- function ar(e, t, n) {
30
+ function or(e, t, n) {
31
31
  e.$$.on_destroy.push(Cn(t, n));
32
32
  }
33
33
  function C(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function or(e, t, n) {
36
+ function ar(e, t, n) {
37
37
  const r = sr(e);
38
38
  if (!r.getElementById(t)) {
39
- const i = $("style");
39
+ const i = j("style");
40
40
  i.id = t, i.textContent = n, lr(r, i);
41
41
  }
42
42
  }
@@ -59,38 +59,38 @@ function lr(e, t) {
59
59
  function me(e, t, n) {
60
60
  e.insertBefore(t, n || null);
61
61
  }
62
- function he(e) {
62
+ function fe(e) {
63
63
  e.parentNode && e.parentNode.removeChild(e);
64
64
  }
65
65
  function Hn(e, t) {
66
66
  for (let n = 0; n < e.length; n += 1)
67
67
  e[n] && e[n].d(t);
68
68
  }
69
- function $(e) {
69
+ function j(e) {
70
70
  return document.createElement(e);
71
71
  }
72
72
  function nn(e) {
73
73
  return document.createElementNS("http://www.w3.org/2000/svg", e);
74
74
  }
75
- function ce(e) {
75
+ function he(e) {
76
76
  return document.createTextNode(e);
77
77
  }
78
- function fe() {
79
- return ce(" ");
78
+ function de() {
79
+ return he(" ");
80
80
  }
81
81
  function ur() {
82
- return ce("");
82
+ return he("");
83
83
  }
84
- function dt(e, t, n, r) {
84
+ function pt(e, t, n, r) {
85
85
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
86
86
  }
87
- function M(e, t, n) {
87
+ function N(e, t, n) {
88
88
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
89
89
  }
90
90
  function cr(e) {
91
91
  return Array.from(e.childNodes);
92
92
  }
93
- function _e(e, t) {
93
+ function Ee(e, t) {
94
94
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
95
95
  t);
96
96
  }
@@ -103,93 +103,93 @@ function hr(e) {
103
103
  }
104
104
  ), t;
105
105
  }
106
- let Ke;
107
- function Ye(e) {
108
- Ke = e;
106
+ let et;
107
+ function Ke(e) {
108
+ et = e;
109
109
  }
110
110
  function fr() {
111
- if (!Ke) throw new Error("Function called outside component initialization");
112
- return Ke;
111
+ if (!et) throw new Error("Function called outside component initialization");
112
+ return et;
113
113
  }
114
114
  function dr(e) {
115
115
  fr().$$.on_mount.push(e);
116
116
  }
117
- const Ie = [], Dt = [];
118
- let Pe = [];
117
+ const De = [], Dt = [];
118
+ let Ue = [];
119
119
  const rn = [], pr = /* @__PURE__ */ Promise.resolve();
120
120
  let Ut = !1;
121
121
  function mr() {
122
- Ut || (Ut = !0, pr.then(Q));
122
+ Ut || (Ut = !0, pr.then(J));
123
123
  }
124
124
  function Ft(e) {
125
- Pe.push(e);
125
+ Ue.push(e);
126
126
  }
127
127
  const Ot = /* @__PURE__ */ new Set();
128
- let Me = 0;
129
- function Q() {
130
- if (Me !== 0)
128
+ let Ie = 0;
129
+ function J() {
130
+ if (Ie !== 0)
131
131
  return;
132
- const e = Ke;
132
+ const e = et;
133
133
  do {
134
134
  try {
135
- for (; Me < Ie.length; ) {
136
- const t = Ie[Me];
137
- Me++, Ye(t), gr(t.$$);
135
+ for (; Ie < De.length; ) {
136
+ const t = De[Ie];
137
+ Ie++, Ke(t), gr(t.$$);
138
138
  }
139
139
  } catch (t) {
140
- throw Ie.length = 0, Me = 0, t;
140
+ throw De.length = 0, Ie = 0, t;
141
141
  }
142
- for (Ye(null), Ie.length = 0, Me = 0; Dt.length; ) Dt.pop()();
143
- for (let t = 0; t < Pe.length; t += 1) {
144
- const n = Pe[t];
142
+ for (Ke(null), De.length = 0, Ie = 0; Dt.length; ) Dt.pop()();
143
+ for (let t = 0; t < Ue.length; t += 1) {
144
+ const n = Ue[t];
145
145
  Ot.has(n) || (Ot.add(n), n());
146
146
  }
147
- Pe.length = 0;
148
- } while (Ie.length);
147
+ Ue.length = 0;
148
+ } while (De.length);
149
149
  for (; rn.length; )
150
150
  rn.pop()();
151
- Ut = !1, Ot.clear(), Ye(e);
151
+ Ut = !1, Ot.clear(), Ke(e);
152
152
  }
153
153
  function gr(e) {
154
154
  if (e.fragment !== null) {
155
- e.update(), $e(e.before_update);
155
+ e.update(), je(e.before_update);
156
156
  const t = e.dirty;
157
157
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ft);
158
158
  }
159
159
  }
160
160
  function br(e) {
161
161
  const t = [], n = [];
162
- Pe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Pe = t;
162
+ Ue.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ue = t;
163
163
  }
164
164
  const yr = /* @__PURE__ */ new Set();
165
165
  function vr(e, t) {
166
166
  e && e.i && (yr.delete(e), e.i(t));
167
167
  }
168
- function pt(e) {
168
+ function mt(e) {
169
169
  return e?.length !== void 0 ? e : Array.from(e);
170
170
  }
171
171
  function Er(e, t, n) {
172
172
  const { fragment: r, after_update: i } = e.$$;
173
173
  r && r.m(t, n), Ft(() => {
174
- const a = e.$$.on_mount.map(Sn).filter(Qt);
175
- e.$$.on_destroy ? e.$$.on_destroy.push(...a) : $e(a), e.$$.on_mount = [];
174
+ const o = e.$$.on_mount.map(Sn).filter(Qt);
175
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : je(o), e.$$.on_mount = [];
176
176
  }), i.forEach(Ft);
177
177
  }
178
178
  function xr(e, t) {
179
179
  const n = e.$$;
180
- n.fragment !== null && (br(n.after_update), $e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
180
+ n.fragment !== null && (br(n.after_update), je(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
181
181
  }
182
182
  function _r(e, t) {
183
- e.$$.dirty[0] === -1 && (Ie.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
183
+ e.$$.dirty[0] === -1 && (De.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
184
184
  }
185
- function Br(e, t, n, r, i, a, l = null, s = [-1]) {
186
- const h = Ke;
187
- Ye(e);
185
+ function Br(e, t, n, r, i, o, l = null, s = [-1]) {
186
+ const h = et;
187
+ Ke(e);
188
188
  const u = e.$$ = {
189
189
  fragment: null,
190
190
  ctx: [],
191
191
  // state
192
- props: a,
192
+ props: o,
193
193
  update: se,
194
194
  not_equal: i,
195
195
  bound: tn(),
@@ -208,18 +208,18 @@ function Br(e, t, n, r, i, a, l = null, s = [-1]) {
208
208
  };
209
209
  l && l(u.root);
210
210
  let d = !1;
211
- if (u.ctx = n ? n(e, t.props || {}, (b, y, ...B) => {
212
- const x = B.length ? B[0] : y;
213
- return u.ctx && i(u.ctx[b], u.ctx[b] = x) && (!u.skip_bound && u.bound[b] && u.bound[b](x), d && _r(e, b)), y;
214
- }) : [], u.update(), d = !0, $e(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
211
+ if (u.ctx = n ? n(e, t.props || {}, (m, g, ..._) => {
212
+ const B = _.length ? _[0] : g;
213
+ return u.ctx && i(u.ctx[m], u.ctx[m] = B) && (!u.skip_bound && u.bound[m] && u.bound[m](B), d && _r(e, m)), g;
214
+ }) : [], u.update(), d = !0, je(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
215
215
  if (t.hydrate) {
216
- const b = cr(t.target);
217
- u.fragment && u.fragment.l(b), b.forEach(he);
216
+ const m = cr(t.target);
217
+ u.fragment && u.fragment.l(m), m.forEach(fe);
218
218
  } else
219
219
  u.fragment && u.fragment.c();
220
- t.intro && vr(e.$$.fragment), Er(e, t.target, t.anchor), Q();
220
+ t.intro && vr(e.$$.fragment), Er(e, t.target, t.anchor), J();
221
221
  }
222
- Ye(h);
222
+ Ke(h);
223
223
  }
224
224
  let On;
225
225
  typeof HTMLElement == "function" && (On = class extends HTMLElement {
@@ -261,20 +261,20 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
261
261
  if (this.$$cn = !0, !this.$$c) {
262
262
  let e = function(i) {
263
263
  return () => {
264
- let a;
264
+ let o;
265
265
  return {
266
266
  c: function() {
267
- a = $("slot"), i !== "default" && M(a, "name", i);
267
+ o = j("slot"), i !== "default" && N(o, "name", i);
268
268
  },
269
269
  /**
270
270
  * @param {HTMLElement} target
271
271
  * @param {HTMLElement} [anchor]
272
272
  */
273
273
  m: function(h, u) {
274
- me(h, a, u);
274
+ me(h, o, u);
275
275
  },
276
276
  d: function(h) {
277
- h && he(a);
277
+ h && fe(o);
278
278
  }
279
279
  };
280
280
  };
@@ -285,8 +285,8 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
285
285
  for (const i of this.$$s)
286
286
  i in n && (t[i] = [e(i)]);
287
287
  for (const i of this.attributes) {
288
- const a = this.$$g_p(i.name);
289
- a in this.$$d || (this.$$d[a] = ut(a, i.value, this.$$p_d, "toProp"));
288
+ const o = this.$$g_p(i.name);
289
+ o in this.$$d || (this.$$d[o] = ct(o, i.value, this.$$p_d, "toProp"));
290
290
  }
291
291
  for (const i in this.$$p_d)
292
292
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -304,21 +304,21 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
304
304
  this.$$r = !0;
305
305
  for (const i in this.$$p_d)
306
306
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
307
- const a = ut(
307
+ const o = ct(
308
308
  i,
309
309
  this.$$d[i],
310
310
  this.$$p_d,
311
311
  "toAttribute"
312
312
  );
313
- a == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, a);
313
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
314
314
  }
315
315
  this.$$r = !1;
316
316
  };
317
317
  this.$$c.$$.after_update.push(r), r();
318
318
  for (const i in this.$$l)
319
- for (const a of this.$$l[i]) {
320
- const l = this.$$c.$on(i, a);
321
- this.$$l_u.set(a, l);
319
+ for (const o of this.$$l[i]) {
320
+ const l = this.$$c.$on(i, o);
321
+ this.$$l_u.set(o, l);
322
322
  }
323
323
  this.$$l = {};
324
324
  }
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
326
326
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
327
327
  // and setting attributes through setAttribute etc, this is helpful
328
328
  attributeChangedCallback(e, t, n) {
329
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ut(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
329
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ct(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
330
330
  }
331
331
  disconnectedCallback() {
332
332
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -339,7 +339,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
339
339
  ) || e;
340
340
  }
341
341
  });
342
- function ut(e, t, n, r) {
342
+ function ct(e, t, n, r) {
343
343
  const i = n[e]?.type;
344
344
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
345
345
  return t;
@@ -368,7 +368,7 @@ function ut(e, t, n, r) {
368
368
  return t;
369
369
  }
370
370
  }
371
- function Tr(e, t, n, r, i, a) {
371
+ function Tr(e, t, n, r, i, o) {
372
372
  let l = class extends On {
373
373
  constructor() {
374
374
  super(e, n, i), this.$$p_d = t;
@@ -385,7 +385,7 @@ function Tr(e, t, n, r, i, a) {
385
385
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
386
386
  },
387
387
  set(h) {
388
- h = ut(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
388
+ h = ct(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
389
389
  }
390
390
  });
391
391
  }), r.forEach((s) => {
@@ -443,111 +443,134 @@ class wr {
443
443
  }
444
444
  const Sr = "4";
445
445
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
446
- const Ne = [];
447
446
  function Ar(e, t) {
447
+ if (e) {
448
+ const n = document.createElement("style");
449
+ n.innerHTML = t, e.appendChild(n);
450
+ }
451
+ }
452
+ function Cr(e, t) {
453
+ const n = new URL(t);
454
+ fetch(n.href).then((r) => r.text()).then((r) => {
455
+ const i = document.createElement("style");
456
+ i.innerHTML = r, e && e.appendChild(i);
457
+ }).catch((r) => {
458
+ console.error("There was an error while trying to load client styling from URL", r);
459
+ });
460
+ }
461
+ function Hr(e, t, n) {
462
+ if (window.emMessageBus) {
463
+ const r = document.createElement("style");
464
+ window.emMessageBus.subscribe(t, (i) => {
465
+ r.innerHTML = i, e && e.appendChild(r);
466
+ });
467
+ }
468
+ }
469
+ const Pe = [];
470
+ function Or(e, t) {
448
471
  return {
449
- subscribe: bt(e, t).subscribe
472
+ subscribe: yt(e, t).subscribe
450
473
  };
451
474
  }
452
- function bt(e, t = se) {
475
+ function yt(e, t = se) {
453
476
  let n;
454
477
  const r = /* @__PURE__ */ new Set();
455
478
  function i(s) {
456
479
  if (An(e, s) && (e = s, n)) {
457
- const h = !Ne.length;
480
+ const h = !Pe.length;
458
481
  for (const u of r)
459
- u[1](), Ne.push(u, e);
482
+ u[1](), Pe.push(u, e);
460
483
  if (h) {
461
- for (let u = 0; u < Ne.length; u += 2)
462
- Ne[u][0](Ne[u + 1]);
463
- Ne.length = 0;
484
+ for (let u = 0; u < Pe.length; u += 2)
485
+ Pe[u][0](Pe[u + 1]);
486
+ Pe.length = 0;
464
487
  }
465
488
  }
466
489
  }
467
- function a(s) {
490
+ function o(s) {
468
491
  i(s(e));
469
492
  }
470
493
  function l(s, h = se) {
471
494
  const u = [s, h];
472
- return r.add(u), r.size === 1 && (n = t(i, a) || se), s(e), () => {
495
+ return r.add(u), r.size === 1 && (n = t(i, o) || se), s(e), () => {
473
496
  r.delete(u), r.size === 0 && n && (n(), n = null);
474
497
  };
475
498
  }
476
- return { set: i, update: a, subscribe: l };
499
+ return { set: i, update: o, subscribe: l };
477
500
  }
478
- function ke(e, t, n) {
501
+ function Ve(e, t, n) {
479
502
  const r = !Array.isArray(e), i = r ? [e] : e;
480
503
  if (!i.every(Boolean))
481
504
  throw new Error("derived() expects stores as input, got a falsy value");
482
- const a = t.length < 2;
483
- return Ar(n, (l, s) => {
505
+ const o = t.length < 2;
506
+ return Or(n, (l, s) => {
484
507
  let h = !1;
485
508
  const u = [];
486
- let d = 0, b = se;
487
- const y = () => {
509
+ let d = 0, m = se;
510
+ const g = () => {
488
511
  if (d)
489
512
  return;
490
- b();
491
- const x = t(r ? u[0] : u, l, s);
492
- a ? l(x) : b = Qt(x) ? x : se;
493
- }, B = i.map(
494
- (x, H) => Cn(
495
- x,
496
- (_) => {
497
- u[H] = _, d &= ~(1 << H), h && y();
513
+ m();
514
+ const B = t(r ? u[0] : u, l, s);
515
+ o ? l(B) : m = Qt(B) ? B : se;
516
+ }, _ = i.map(
517
+ (B, T) => Cn(
518
+ B,
519
+ (x) => {
520
+ u[T] = x, d &= ~(1 << T), h && g();
498
521
  },
499
522
  () => {
500
- d |= 1 << H;
523
+ d |= 1 << T;
501
524
  }
502
525
  )
503
526
  );
504
- return h = !0, y(), function() {
505
- $e(B), b(), h = !1;
527
+ return h = !0, g(), function() {
528
+ je(_), m(), h = !1;
506
529
  };
507
530
  });
508
531
  }
509
- var Cr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
510
- function Hr(e) {
532
+ var Rr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
533
+ function Lr(e) {
511
534
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
512
535
  }
513
- var Or = function(t) {
514
- return Rr(t) && !Lr(t);
536
+ var Mr = function(t) {
537
+ return Nr(t) && !Ir(t);
515
538
  };
516
- function Rr(e) {
539
+ function Nr(e) {
517
540
  return !!e && typeof e == "object";
518
541
  }
519
- function Lr(e) {
542
+ function Ir(e) {
520
543
  var t = Object.prototype.toString.call(e);
521
- return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
544
+ return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
522
545
  }
523
- var Mr = typeof Symbol == "function" && Symbol.for, Nr = Mr ? Symbol.for("react.element") : 60103;
524
- function Ir(e) {
525
- return e.$$typeof === Nr;
546
+ var Pr = typeof Symbol == "function" && Symbol.for, Dr = Pr ? Symbol.for("react.element") : 60103;
547
+ function Ur(e) {
548
+ return e.$$typeof === Dr;
526
549
  }
527
- function Pr(e) {
550
+ function Fr(e) {
528
551
  return Array.isArray(e) ? [] : {};
529
552
  }
530
- function et(e, t) {
531
- return t.clone !== !1 && t.isMergeableObject(e) ? De(Pr(e), e, t) : e;
553
+ function tt(e, t) {
554
+ return t.clone !== !1 && t.isMergeableObject(e) ? Fe(Fr(e), e, t) : e;
532
555
  }
533
- function Dr(e, t, n) {
556
+ function Gr(e, t, n) {
534
557
  return e.concat(t).map(function(r) {
535
- return et(r, n);
558
+ return tt(r, n);
536
559
  });
537
560
  }
538
- function Ur(e, t) {
561
+ function $r(e, t) {
539
562
  if (!t.customMerge)
540
- return De;
563
+ return Fe;
541
564
  var n = t.customMerge(e);
542
- return typeof n == "function" ? n : De;
565
+ return typeof n == "function" ? n : Fe;
543
566
  }
544
- function Fr(e) {
567
+ function kr(e) {
545
568
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
546
569
  return Object.propertyIsEnumerable.call(e, t);
547
570
  }) : [];
548
571
  }
549
- function an(e) {
550
- return Object.keys(e).concat(Fr(e));
572
+ function on(e) {
573
+ return Object.keys(e).concat(kr(e));
551
574
  }
552
575
  function Rn(e, t) {
553
576
  try {
@@ -556,31 +579,31 @@ function Rn(e, t) {
556
579
  return !1;
557
580
  }
558
581
  }
559
- function Gr(e, t) {
582
+ function jr(e, t) {
560
583
  return Rn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
561
584
  }
562
- function $r(e, t, n) {
585
+ function Vr(e, t, n) {
563
586
  var r = {};
564
- return n.isMergeableObject(e) && an(e).forEach(function(i) {
565
- r[i] = et(e[i], n);
566
- }), an(t).forEach(function(i) {
567
- Gr(e, i) || (Rn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Ur(i, n)(e[i], t[i], n) : r[i] = et(t[i], n));
587
+ return n.isMergeableObject(e) && on(e).forEach(function(i) {
588
+ r[i] = tt(e[i], n);
589
+ }), on(t).forEach(function(i) {
590
+ jr(e, i) || (Rn(e, i) && n.isMergeableObject(t[i]) ? r[i] = $r(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
568
591
  }), r;
569
592
  }
570
- function De(e, t, n) {
571
- n = n || {}, n.arrayMerge = n.arrayMerge || Dr, n.isMergeableObject = n.isMergeableObject || Or, n.cloneUnlessOtherwiseSpecified = et;
572
- var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
573
- return a ? r ? n.arrayMerge(e, t, n) : $r(e, t, n) : et(t, n);
593
+ function Fe(e, t, n) {
594
+ n = n || {}, n.arrayMerge = n.arrayMerge || Gr, n.isMergeableObject = n.isMergeableObject || Mr, n.cloneUnlessOtherwiseSpecified = tt;
595
+ var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
596
+ return o ? r ? n.arrayMerge(e, t, n) : Vr(e, t, n) : tt(t, n);
574
597
  }
575
- De.all = function(t, n) {
598
+ Fe.all = function(t, n) {
576
599
  if (!Array.isArray(t))
577
600
  throw new Error("first argument should be an array");
578
601
  return t.reduce(function(r, i) {
579
- return De(r, i, n);
602
+ return Fe(r, i, n);
580
603
  }, {});
581
604
  };
582
- var kr = De, jr = kr;
583
- const Vr = /* @__PURE__ */ Hr(jr);
605
+ var Xr = Fe, zr = Xr;
606
+ const Wr = /* @__PURE__ */ Lr(zr);
584
607
  var Gt = function(e, t) {
585
608
  return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
586
609
  n.__proto__ = r;
@@ -588,7 +611,7 @@ var Gt = function(e, t) {
588
611
  for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
589
612
  }, Gt(e, t);
590
613
  };
591
- function yt(e, t) {
614
+ function vt(e, t) {
592
615
  if (typeof t != "function" && t !== null)
593
616
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
594
617
  Gt(e, t);
@@ -601,12 +624,12 @@ var I = function() {
601
624
  return I = Object.assign || function(t) {
602
625
  for (var n, r = 1, i = arguments.length; r < i; r++) {
603
626
  n = arguments[r];
604
- for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
627
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
605
628
  }
606
629
  return t;
607
630
  }, I.apply(this, arguments);
608
631
  };
609
- function Xr(e, t) {
632
+ function Zr(e, t) {
610
633
  var n = {};
611
634
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
612
635
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -615,41 +638,41 @@ function Xr(e, t) {
615
638
  return n;
616
639
  }
617
640
  function Rt(e, t, n) {
618
- if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++)
619
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
620
- return e.concat(a || Array.prototype.slice.call(t));
641
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++)
642
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
643
+ return e.concat(o || Array.prototype.slice.call(t));
621
644
  }
622
645
  function Lt(e, t) {
623
- var n = t && t.cache ? t.cache : Yr, r = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Zr;
646
+ var n = t && t.cache ? t.cache : ti, r = t && t.serializer ? t.serializer : Kr, i = t && t.strategy ? t.strategy : Jr;
624
647
  return i(e, {
625
648
  cache: n,
626
649
  serializer: r
627
650
  });
628
651
  }
629
- function zr(e) {
652
+ function qr(e) {
630
653
  return e == null || typeof e == "number" || typeof e == "boolean";
631
654
  }
632
- function Wr(e, t, n, r) {
633
- var i = zr(r) ? r : n(r), a = t.get(i);
634
- return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
655
+ function Qr(e, t, n, r) {
656
+ var i = qr(r) ? r : n(r), o = t.get(i);
657
+ return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
635
658
  }
636
659
  function Ln(e, t, n) {
637
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
638
- return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
660
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
661
+ return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
639
662
  }
640
663
  function Mn(e, t, n, r, i) {
641
664
  return n.bind(t, e, r, i);
642
665
  }
643
- function Zr(e, t) {
644
- var n = e.length === 1 ? Wr : Ln;
666
+ function Jr(e, t) {
667
+ var n = e.length === 1 ? Qr : Ln;
645
668
  return Mn(e, this, n, t.cache.create(), t.serializer);
646
669
  }
647
- function qr(e, t) {
670
+ function Yr(e, t) {
648
671
  return Mn(e, this, Ln, t.cache.create(), t.serializer);
649
672
  }
650
- var Qr = function() {
673
+ var Kr = function() {
651
674
  return JSON.stringify(arguments);
652
- }, Jr = (
675
+ }, ei = (
653
676
  /** @class */
654
677
  function() {
655
678
  function e() {
@@ -661,61 +684,61 @@ var Qr = function() {
661
684
  this.cache[t] = n;
662
685
  }, e;
663
686
  }()
664
- ), Yr = {
687
+ ), ti = {
665
688
  create: function() {
666
- return new Jr();
689
+ return new ei();
667
690
  }
668
691
  }, Mt = {
669
- variadic: qr
670
- }, R;
692
+ variadic: Yr
693
+ }, O;
671
694
  (function(e) {
672
695
  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";
673
- })(R || (R = {}));
674
- var G;
696
+ })(O || (O = {}));
697
+ var k;
675
698
  (function(e) {
676
699
  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";
677
- })(G || (G = {}));
678
- var Ue;
700
+ })(k || (k = {}));
701
+ var Ge;
679
702
  (function(e) {
680
703
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
681
- })(Ue || (Ue = {}));
682
- function on(e) {
683
- return e.type === G.literal;
704
+ })(Ge || (Ge = {}));
705
+ function an(e) {
706
+ return e.type === k.literal;
684
707
  }
685
- function Kr(e) {
686
- return e.type === G.argument;
708
+ function ni(e) {
709
+ return e.type === k.argument;
687
710
  }
688
711
  function Nn(e) {
689
- return e.type === G.number;
712
+ return e.type === k.number;
690
713
  }
691
714
  function In(e) {
692
- return e.type === G.date;
715
+ return e.type === k.date;
693
716
  }
694
717
  function Pn(e) {
695
- return e.type === G.time;
718
+ return e.type === k.time;
696
719
  }
697
720
  function Dn(e) {
698
- return e.type === G.select;
721
+ return e.type === k.select;
699
722
  }
700
723
  function Un(e) {
701
- return e.type === G.plural;
724
+ return e.type === k.plural;
702
725
  }
703
- function ei(e) {
704
- return e.type === G.pound;
726
+ function ri(e) {
727
+ return e.type === k.pound;
705
728
  }
706
729
  function Fn(e) {
707
- return e.type === G.tag;
730
+ return e.type === k.tag;
708
731
  }
709
732
  function Gn(e) {
710
- return !!(e && typeof e == "object" && e.type === Ue.number);
733
+ return !!(e && typeof e == "object" && e.type === Ge.number);
711
734
  }
712
735
  function $t(e) {
713
- return !!(e && typeof e == "object" && e.type === Ue.dateTime);
736
+ return !!(e && typeof e == "object" && e.type === Ge.dateTime);
714
737
  }
715
- var $n = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ti = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
716
- function ni(e) {
738
+ var $n = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ii = /(?:[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;
739
+ function oi(e) {
717
740
  var t = {};
718
- return e.replace(ti, function(n) {
741
+ return e.replace(ii, function(n) {
719
742
  var r = n.length;
720
743
  switch (n[0]) {
721
744
  case "G":
@@ -804,29 +827,29 @@ function ni(e) {
804
827
  return "";
805
828
  }), t;
806
829
  }
807
- var ri = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
808
- function ii(e) {
830
+ var ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
831
+ function si(e) {
809
832
  if (e.length === 0)
810
833
  throw new Error("Number skeleton cannot be empty");
811
- for (var t = e.split(ri).filter(function(y) {
812
- return y.length > 0;
834
+ for (var t = e.split(ai).filter(function(g) {
835
+ return g.length > 0;
813
836
  }), n = [], r = 0, i = t; r < i.length; r++) {
814
- var a = i[r], l = a.split("/");
837
+ var o = i[r], l = o.split("/");
815
838
  if (l.length === 0)
816
839
  throw new Error("Invalid number skeleton");
817
840
  for (var s = l[0], h = l.slice(1), u = 0, d = h; u < d.length; u++) {
818
- var b = d[u];
819
- if (b.length === 0)
841
+ var m = d[u];
842
+ if (m.length === 0)
820
843
  throw new Error("Invalid number skeleton");
821
844
  }
822
845
  n.push({ stem: s, options: h });
823
846
  }
824
847
  return n;
825
848
  }
826
- function ai(e) {
849
+ function li(e) {
827
850
  return e.replace(/^(.*?)-/, "");
828
851
  }
829
- var sn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kn = /^(@+)?(\+|#+)?[rs]?$/g, oi = /(\*)(0+)|(#+)(0+)|(0+)/g, jn = /^(0+)$/;
852
+ var sn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kn = /^(@+)?(\+|#+)?[rs]?$/g, ui = /(\*)(0+)|(#+)(0+)|(0+)/g, jn = /^(0+)$/;
830
853
  function ln(e) {
831
854
  var t = {};
832
855
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kn, function(n, r, i) {
@@ -873,7 +896,7 @@ function Vn(e) {
873
896
  };
874
897
  }
875
898
  }
876
- function si(e) {
899
+ function ci(e) {
877
900
  var t;
878
901
  if (e[0] === "E" && e[1] === "E" ? (t = {
879
902
  notation: "engineering"
@@ -891,7 +914,7 @@ function un(e) {
891
914
  var t = {}, n = Vn(e);
892
915
  return n || t;
893
916
  }
894
- function li(e) {
917
+ function hi(e) {
895
918
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
896
919
  var i = r[n];
897
920
  switch (i.stem) {
@@ -915,7 +938,7 @@ function li(e) {
915
938
  continue;
916
939
  case "measure-unit":
917
940
  case "unit":
918
- t.style = "unit", t.unit = ai(i.options[0]);
941
+ t.style = "unit", t.unit = li(i.options[0]);
919
942
  continue;
920
943
  case "compact-short":
921
944
  case "K":
@@ -977,13 +1000,13 @@ function li(e) {
977
1000
  case "integer-width":
978
1001
  if (i.options.length > 1)
979
1002
  throw new RangeError("integer-width stems only accept a single optional option");
980
- i.options[0].replace(oi, function(h, u, d, b, y, B) {
1003
+ i.options[0].replace(ui, function(h, u, d, m, g, _) {
981
1004
  if (u)
982
1005
  t.minimumIntegerDigits = d.length;
983
1006
  else {
984
- if (b && y)
1007
+ if (m && g)
985
1008
  throw new Error("We currently do not support maximum integer digits");
986
- if (B)
1009
+ if (_)
987
1010
  throw new Error("We currently do not support exact integer digits");
988
1011
  }
989
1012
  return "";
@@ -997,11 +1020,11 @@ function li(e) {
997
1020
  if (sn.test(i.stem)) {
998
1021
  if (i.options.length > 1)
999
1022
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1000
- i.stem.replace(sn, function(h, u, d, b, y, B) {
1001
- return d === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : y && B ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + B.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1023
+ i.stem.replace(sn, function(h, u, d, m, g, _) {
1024
+ return d === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : g && _ ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1002
1025
  });
1003
- var a = i.options[0];
1004
- a === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = I(I({}, t), ln(a)));
1026
+ var o = i.options[0];
1027
+ o === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = I(I({}, t), ln(o)));
1005
1028
  continue;
1006
1029
  }
1007
1030
  if (kn.test(i.stem)) {
@@ -1010,12 +1033,12 @@ function li(e) {
1010
1033
  }
1011
1034
  var l = Vn(i.stem);
1012
1035
  l && (t = I(I({}, t), l));
1013
- var s = si(i.stem);
1036
+ var s = ci(i.stem);
1014
1037
  s && (t = I(I({}, t), s));
1015
1038
  }
1016
1039
  return t;
1017
1040
  }
1018
- var lt = {
1041
+ var ut = {
1019
1042
  "001": [
1020
1043
  "H",
1021
1044
  "h"
@@ -2430,13 +2453,13 @@ var lt = {
2430
2453
  "h"
2431
2454
  ]
2432
2455
  };
2433
- function ui(e, t) {
2456
+ function fi(e, t) {
2434
2457
  for (var n = "", r = 0; r < e.length; r++) {
2435
2458
  var i = e.charAt(r);
2436
2459
  if (i === "j") {
2437
- for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2438
- a++, r++;
2439
- var l = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), h = "a", u = ci(t);
2460
+ for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2461
+ o++, r++;
2462
+ var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = di(t);
2440
2463
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2441
2464
  n += h;
2442
2465
  for (; l-- > 0; )
@@ -2445,7 +2468,7 @@ function ui(e, t) {
2445
2468
  }
2446
2469
  return n;
2447
2470
  }
2448
- function ci(e) {
2471
+ function di(e) {
2449
2472
  var t = e.hourCycle;
2450
2473
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2451
2474
  e.hourCycles && // @ts-ignore
@@ -2464,23 +2487,23 @@ function ci(e) {
2464
2487
  }
2465
2488
  var n = e.language, r;
2466
2489
  n !== "root" && (r = e.maximize().region);
2467
- var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
2490
+ var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
2468
2491
  return i[0];
2469
2492
  }
2470
- var Nt, hi = new RegExp("^".concat($n.source, "*")), fi = new RegExp("".concat($n.source, "*$"));
2471
- function L(e, t) {
2493
+ var Nt, pi = new RegExp("^".concat($n.source, "*")), mi = new RegExp("".concat($n.source, "*$"));
2494
+ function M(e, t) {
2472
2495
  return { start: e, end: t };
2473
2496
  }
2474
- var di = !!String.prototype.startsWith && "_a".startsWith("a", 1), pi = !!String.fromCodePoint, mi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, yi = !!String.prototype.trimEnd, vi = !!Number.isSafeInteger, Ei = vi ? Number.isSafeInteger : function(e) {
2497
+ var gi = !!String.prototype.startsWith && "_a".startsWith("a", 1), bi = !!String.fromCodePoint, yi = !!Object.fromEntries, vi = !!String.prototype.codePointAt, Ei = !!String.prototype.trimStart, xi = !!String.prototype.trimEnd, _i = !!Number.isSafeInteger, Bi = _i ? Number.isSafeInteger : function(e) {
2475
2498
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2476
2499
  }, kt = !0;
2477
2500
  try {
2478
- var xi = zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2479
- kt = ((Nt = xi.exec("a")) === null || Nt === void 0 ? void 0 : Nt[0]) === "a";
2501
+ var Ti = zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2502
+ kt = ((Nt = Ti.exec("a")) === null || Nt === void 0 ? void 0 : Nt[0]) === "a";
2480
2503
  } catch {
2481
2504
  kt = !1;
2482
2505
  }
2483
- var cn = di ? (
2506
+ var cn = gi ? (
2484
2507
  // Native
2485
2508
  function(t, n, r) {
2486
2509
  return t.startsWith(n, r);
@@ -2490,13 +2513,13 @@ var cn = di ? (
2490
2513
  function(t, n, r) {
2491
2514
  return t.slice(r, r + n.length) === n;
2492
2515
  }
2493
- ), jt = pi ? String.fromCodePoint : (
2516
+ ), jt = bi ? String.fromCodePoint : (
2494
2517
  // IE11
2495
2518
  function() {
2496
2519
  for (var t = [], n = 0; n < arguments.length; n++)
2497
2520
  t[n] = arguments[n];
2498
- for (var r = "", i = t.length, a = 0, l; i > a; ) {
2499
- if (l = t[a++], l > 1114111)
2521
+ for (var r = "", i = t.length, o = 0, l; i > o; ) {
2522
+ if (l = t[o++], l > 1114111)
2500
2523
  throw RangeError(l + " is not a valid code point");
2501
2524
  r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
2502
2525
  }
@@ -2504,17 +2527,17 @@ var cn = di ? (
2504
2527
  }
2505
2528
  ), hn = (
2506
2529
  // native
2507
- mi ? Object.fromEntries : (
2530
+ yi ? Object.fromEntries : (
2508
2531
  // Ponyfill
2509
2532
  function(t) {
2510
2533
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
2511
- var a = i[r], l = a[0], s = a[1];
2534
+ var o = i[r], l = o[0], s = o[1];
2512
2535
  n[l] = s;
2513
2536
  }
2514
2537
  return n;
2515
2538
  }
2516
2539
  )
2517
- ), Xn = gi ? (
2540
+ ), Xn = vi ? (
2518
2541
  // Native
2519
2542
  function(t, n) {
2520
2543
  return t.codePointAt(n);
@@ -2524,11 +2547,11 @@ var cn = di ? (
2524
2547
  function(t, n) {
2525
2548
  var r = t.length;
2526
2549
  if (!(n < 0 || n >= r)) {
2527
- var i = t.charCodeAt(n), a;
2528
- return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2550
+ var i = t.charCodeAt(n), o;
2551
+ return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2529
2552
  }
2530
2553
  }
2531
- ), _i = bi ? (
2554
+ ), wi = Ei ? (
2532
2555
  // Native
2533
2556
  function(t) {
2534
2557
  return t.trimStart();
@@ -2536,9 +2559,9 @@ var cn = di ? (
2536
2559
  ) : (
2537
2560
  // Ponyfill
2538
2561
  function(t) {
2539
- return t.replace(hi, "");
2562
+ return t.replace(pi, "");
2540
2563
  }
2541
- ), Bi = yi ? (
2564
+ ), Si = xi ? (
2542
2565
  // Native
2543
2566
  function(t) {
2544
2567
  return t.trimEnd();
@@ -2546,7 +2569,7 @@ var cn = di ? (
2546
2569
  ) : (
2547
2570
  // Ponyfill
2548
2571
  function(t) {
2549
- return t.replace(fi, "");
2572
+ return t.replace(mi, "");
2550
2573
  }
2551
2574
  );
2552
2575
  function zn(e, t) {
@@ -2565,13 +2588,13 @@ if (kt) {
2565
2588
  Vt = function(t, n) {
2566
2589
  for (var r = []; ; ) {
2567
2590
  var i = Xn(t, n);
2568
- if (i === void 0 || Wn(i) || Ai(i))
2591
+ if (i === void 0 || Wn(i) || Oi(i))
2569
2592
  break;
2570
2593
  r.push(i), n += i >= 65536 ? 2 : 1;
2571
2594
  }
2572
2595
  return jt.apply(void 0, r);
2573
2596
  };
2574
- var Ti = (
2597
+ var Ai = (
2575
2598
  /** @class */
2576
2599
  function() {
2577
2600
  function e(t, n) {
@@ -2583,26 +2606,26 @@ var Ti = (
2583
2606
  return this.parseMessage(0, "", !1);
2584
2607
  }, e.prototype.parseMessage = function(t, n, r) {
2585
2608
  for (var i = []; !this.isEOF(); ) {
2586
- var a = this.char();
2587
- if (a === 123) {
2609
+ var o = this.char();
2610
+ if (o === 123) {
2588
2611
  var l = this.parseArgument(t, r);
2589
2612
  if (l.err)
2590
2613
  return l;
2591
2614
  i.push(l.val);
2592
2615
  } else {
2593
- if (a === 125 && t > 0)
2616
+ if (o === 125 && t > 0)
2594
2617
  break;
2595
- if (a === 35 && (n === "plural" || n === "selectordinal")) {
2618
+ if (o === 35 && (n === "plural" || n === "selectordinal")) {
2596
2619
  var s = this.clonePosition();
2597
2620
  this.bump(), i.push({
2598
- type: G.pound,
2599
- location: L(s, this.clonePosition())
2621
+ type: k.pound,
2622
+ location: M(s, this.clonePosition())
2600
2623
  });
2601
- } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2624
+ } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2602
2625
  if (r)
2603
2626
  break;
2604
- return this.error(R.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2605
- } else if (a === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
2627
+ return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
2628
+ } else if (o === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
2606
2629
  var l = this.parseTag(t, n);
2607
2630
  if (l.err)
2608
2631
  return l;
@@ -2623,44 +2646,44 @@ var Ti = (
2623
2646
  if (this.bumpSpace(), this.bumpIf("/>"))
2624
2647
  return {
2625
2648
  val: {
2626
- type: G.literal,
2649
+ type: k.literal,
2627
2650
  value: "<".concat(i, "/>"),
2628
- location: L(r, this.clonePosition())
2651
+ location: M(r, this.clonePosition())
2629
2652
  },
2630
2653
  err: null
2631
2654
  };
2632
2655
  if (this.bumpIf(">")) {
2633
- var a = this.parseMessage(t + 1, n, !0);
2634
- if (a.err)
2635
- return a;
2636
- var l = a.val, s = this.clonePosition();
2656
+ var o = this.parseMessage(t + 1, n, !0);
2657
+ if (o.err)
2658
+ return o;
2659
+ var l = o.val, s = this.clonePosition();
2637
2660
  if (this.bumpIf("</")) {
2638
2661
  if (this.isEOF() || !Xt(this.char()))
2639
- return this.error(R.INVALID_TAG, L(s, this.clonePosition()));
2662
+ return this.error(O.INVALID_TAG, M(s, this.clonePosition()));
2640
2663
  var h = this.clonePosition(), u = this.parseTagName();
2641
- return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, L(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2664
+ return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, M(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2642
2665
  val: {
2643
- type: G.tag,
2666
+ type: k.tag,
2644
2667
  value: i,
2645
2668
  children: l,
2646
- location: L(r, this.clonePosition())
2669
+ location: M(r, this.clonePosition())
2647
2670
  },
2648
2671
  err: null
2649
- } : this.error(R.INVALID_TAG, L(s, this.clonePosition())));
2672
+ } : this.error(O.INVALID_TAG, M(s, this.clonePosition())));
2650
2673
  } else
2651
- return this.error(R.UNCLOSED_TAG, L(r, this.clonePosition()));
2674
+ return this.error(O.UNCLOSED_TAG, M(r, this.clonePosition()));
2652
2675
  } else
2653
- return this.error(R.INVALID_TAG, L(r, this.clonePosition()));
2676
+ return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
2654
2677
  }, e.prototype.parseTagName = function() {
2655
2678
  var t = this.offset();
2656
- for (this.bump(); !this.isEOF() && Si(this.char()); )
2679
+ for (this.bump(); !this.isEOF() && Hi(this.char()); )
2657
2680
  this.bump();
2658
2681
  return this.message.slice(t, this.offset());
2659
2682
  }, e.prototype.parseLiteral = function(t, n) {
2660
2683
  for (var r = this.clonePosition(), i = ""; ; ) {
2661
- var a = this.tryParseQuote(n);
2662
- if (a) {
2663
- i += a;
2684
+ var o = this.tryParseQuote(n);
2685
+ if (o) {
2686
+ i += o;
2664
2687
  continue;
2665
2688
  }
2666
2689
  var l = this.tryParseUnquoted(t, n);
@@ -2675,14 +2698,14 @@ var Ti = (
2675
2698
  }
2676
2699
  break;
2677
2700
  }
2678
- var h = L(r, this.clonePosition());
2701
+ var h = M(r, this.clonePosition());
2679
2702
  return {
2680
- val: { type: G.literal, value: i, location: h },
2703
+ val: { type: k.literal, value: i, location: h },
2681
2704
  err: null
2682
2705
  };
2683
2706
  }, e.prototype.tryParseLeftAngleBracket = function() {
2684
2707
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2685
- !wi(this.peek() || 0)) ? (this.bump(), "<") : null;
2708
+ !Ci(this.peek() || 0)) ? (this.bump(), "<") : null;
2686
2709
  }, e.prototype.tryParseQuote = function(t) {
2687
2710
  if (this.isEOF() || this.char() !== 39)
2688
2711
  return null;
@@ -2725,40 +2748,40 @@ var Ti = (
2725
2748
  }, e.prototype.parseArgument = function(t, n) {
2726
2749
  var r = this.clonePosition();
2727
2750
  if (this.bump(), this.bumpSpace(), this.isEOF())
2728
- return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2751
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2729
2752
  if (this.char() === 125)
2730
- return this.bump(), this.error(R.EMPTY_ARGUMENT, L(r, this.clonePosition()));
2753
+ return this.bump(), this.error(O.EMPTY_ARGUMENT, M(r, this.clonePosition()));
2731
2754
  var i = this.parseIdentifierIfPossible().value;
2732
2755
  if (!i)
2733
- return this.error(R.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2756
+ return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2734
2757
  if (this.bumpSpace(), this.isEOF())
2735
- return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2758
+ return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2736
2759
  switch (this.char()) {
2737
2760
  case 125:
2738
2761
  return this.bump(), {
2739
2762
  val: {
2740
- type: G.argument,
2763
+ type: k.argument,
2741
2764
  // value does not include the opening and closing braces.
2742
2765
  value: i,
2743
- location: L(r, this.clonePosition())
2766
+ location: M(r, this.clonePosition())
2744
2767
  },
2745
2768
  err: null
2746
2769
  };
2747
2770
  case 44:
2748
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2771
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2749
2772
  default:
2750
- return this.error(R.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2773
+ return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2751
2774
  }
2752
2775
  }, e.prototype.parseIdentifierIfPossible = function() {
2753
2776
  var t = this.clonePosition(), n = this.offset(), r = Vt(this.message, n), i = n + r.length;
2754
2777
  this.bumpTo(i);
2755
- var a = this.clonePosition(), l = L(t, a);
2778
+ var o = this.clonePosition(), l = M(t, o);
2756
2779
  return { value: r, location: l };
2757
2780
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2758
- var a, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2781
+ var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2759
2782
  switch (s) {
2760
2783
  case "":
2761
- return this.error(R.EXPECT_ARGUMENT_TYPE, L(l, h));
2784
+ return this.error(O.EXPECT_ARGUMENT_TYPE, M(l, h));
2762
2785
  case "number":
2763
2786
  case "date":
2764
2787
  case "time": {
@@ -2766,50 +2789,50 @@ var Ti = (
2766
2789
  var u = null;
2767
2790
  if (this.bumpIf(",")) {
2768
2791
  this.bumpSpace();
2769
- var d = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
2770
- if (b.err)
2771
- return b;
2772
- var y = Bi(b.val);
2773
- if (y.length === 0)
2774
- return this.error(R.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2775
- var B = L(d, this.clonePosition());
2776
- u = { style: y, styleLocation: B };
2792
+ var d = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2793
+ if (m.err)
2794
+ return m;
2795
+ var g = Si(m.val);
2796
+ if (g.length === 0)
2797
+ return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
2798
+ var _ = M(d, this.clonePosition());
2799
+ u = { style: g, styleLocation: _ };
2777
2800
  }
2778
- var x = this.tryParseArgumentClose(i);
2779
- if (x.err)
2780
- return x;
2781
- var H = L(i, this.clonePosition());
2801
+ var B = this.tryParseArgumentClose(i);
2802
+ if (B.err)
2803
+ return B;
2804
+ var T = M(i, this.clonePosition());
2782
2805
  if (u && cn(u?.style, "::", 0)) {
2783
- var _ = _i(u.style.slice(2));
2806
+ var x = wi(u.style.slice(2));
2784
2807
  if (s === "number") {
2785
- var b = this.parseNumberSkeletonFromString(_, u.styleLocation);
2786
- return b.err ? b : {
2787
- val: { type: G.number, value: r, location: H, style: b.val },
2808
+ var m = this.parseNumberSkeletonFromString(x, u.styleLocation);
2809
+ return m.err ? m : {
2810
+ val: { type: k.number, value: r, location: T, style: m.val },
2788
2811
  err: null
2789
2812
  };
2790
2813
  } else {
2791
- if (_.length === 0)
2792
- return this.error(R.EXPECT_DATE_TIME_SKELETON, H);
2793
- var A = _;
2794
- this.locale && (A = ui(_, this.locale));
2795
- var y = {
2796
- type: Ue.dateTime,
2797
- pattern: A,
2814
+ if (x.length === 0)
2815
+ return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
2816
+ var S = x;
2817
+ this.locale && (S = fi(x, this.locale));
2818
+ var g = {
2819
+ type: Ge.dateTime,
2820
+ pattern: S,
2798
2821
  location: u.styleLocation,
2799
- parsedOptions: this.shouldParseSkeletons ? ni(A) : {}
2800
- }, P = s === "date" ? G.date : G.time;
2822
+ parsedOptions: this.shouldParseSkeletons ? oi(S) : {}
2823
+ }, D = s === "date" ? k.date : k.time;
2801
2824
  return {
2802
- val: { type: P, value: r, location: H, style: y },
2825
+ val: { type: D, value: r, location: T, style: g },
2803
2826
  err: null
2804
2827
  };
2805
2828
  }
2806
2829
  }
2807
2830
  return {
2808
2831
  val: {
2809
- type: s === "number" ? G.number : s === "date" ? G.date : G.time,
2832
+ type: s === "number" ? k.number : s === "date" ? k.date : k.time,
2810
2833
  value: r,
2811
- location: H,
2812
- style: (a = u?.style) !== null && a !== void 0 ? a : null
2834
+ location: T,
2835
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
2813
2836
  },
2814
2837
  err: null
2815
2838
  };
@@ -2817,52 +2840,52 @@ var Ti = (
2817
2840
  case "plural":
2818
2841
  case "selectordinal":
2819
2842
  case "select": {
2820
- var O = this.clonePosition();
2843
+ var H = this.clonePosition();
2821
2844
  if (this.bumpSpace(), !this.bumpIf(","))
2822
- return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, L(O, I({}, O)));
2845
+ return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H, I({}, H)));
2823
2846
  this.bumpSpace();
2824
- var j = this.parseIdentifierIfPossible(), X = 0;
2825
- if (s !== "select" && j.value === "offset") {
2847
+ var U = this.parseIdentifierIfPossible(), W = 0;
2848
+ if (s !== "select" && U.value === "offset") {
2826
2849
  if (!this.bumpIf(":"))
2827
- return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2850
+ return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
2828
2851
  this.bumpSpace();
2829
- var b = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2830
- if (b.err)
2831
- return b;
2832
- this.bumpSpace(), j = this.parseIdentifierIfPossible(), X = b.val;
2852
+ var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2853
+ if (m.err)
2854
+ return m;
2855
+ this.bumpSpace(), U = this.parseIdentifierIfPossible(), W = m.val;
2833
2856
  }
2834
- var ne = this.tryParsePluralOrSelectOptions(t, s, n, j);
2835
- if (ne.err)
2836
- return ne;
2837
- var x = this.tryParseArgumentClose(i);
2838
- if (x.err)
2839
- return x;
2840
- var W = L(i, this.clonePosition());
2857
+ var q = this.tryParsePluralOrSelectOptions(t, s, n, U);
2858
+ if (q.err)
2859
+ return q;
2860
+ var B = this.tryParseArgumentClose(i);
2861
+ if (B.err)
2862
+ return B;
2863
+ var Y = M(i, this.clonePosition());
2841
2864
  return s === "select" ? {
2842
2865
  val: {
2843
- type: G.select,
2866
+ type: k.select,
2844
2867
  value: r,
2845
- options: hn(ne.val),
2846
- location: W
2868
+ options: hn(q.val),
2869
+ location: Y
2847
2870
  },
2848
2871
  err: null
2849
2872
  } : {
2850
2873
  val: {
2851
- type: G.plural,
2874
+ type: k.plural,
2852
2875
  value: r,
2853
- options: hn(ne.val),
2854
- offset: X,
2876
+ options: hn(q.val),
2877
+ offset: W,
2855
2878
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2856
- location: W
2879
+ location: Y
2857
2880
  },
2858
2881
  err: null
2859
2882
  };
2860
2883
  }
2861
2884
  default:
2862
- return this.error(R.INVALID_ARGUMENT_TYPE, L(l, h));
2885
+ return this.error(O.INVALID_ARGUMENT_TYPE, M(l, h));
2863
2886
  }
2864
2887
  }, e.prototype.tryParseArgumentClose = function(t) {
2865
- return this.isEOF() || this.char() !== 125 ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2888
+ return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2866
2889
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2867
2890
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2868
2891
  var r = this.char();
@@ -2871,7 +2894,7 @@ var Ti = (
2871
2894
  this.bump();
2872
2895
  var i = this.clonePosition();
2873
2896
  if (!this.bumpUntil("'"))
2874
- return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
2897
+ return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(i, this.clonePosition()));
2875
2898
  this.bump();
2876
2899
  break;
2877
2900
  }
@@ -2901,64 +2924,64 @@ var Ti = (
2901
2924
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2902
2925
  var r = [];
2903
2926
  try {
2904
- r = ii(t);
2927
+ r = si(t);
2905
2928
  } catch {
2906
- return this.error(R.INVALID_NUMBER_SKELETON, n);
2929
+ return this.error(O.INVALID_NUMBER_SKELETON, n);
2907
2930
  }
2908
2931
  return {
2909
2932
  val: {
2910
- type: Ue.number,
2933
+ type: Ge.number,
2911
2934
  tokens: r,
2912
2935
  location: n,
2913
- parsedOptions: this.shouldParseSkeletons ? li(r) : {}
2936
+ parsedOptions: this.shouldParseSkeletons ? hi(r) : {}
2914
2937
  },
2915
2938
  err: null
2916
2939
  };
2917
2940
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2918
- for (var a, l = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
2941
+ for (var o, l = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
2919
2942
  if (u.length === 0) {
2920
- var b = this.clonePosition();
2943
+ var m = this.clonePosition();
2921
2944
  if (n !== "select" && this.bumpIf("=")) {
2922
- var y = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR, R.INVALID_PLURAL_ARGUMENT_SELECTOR);
2923
- if (y.err)
2924
- return y;
2925
- d = L(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
2945
+ var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
2946
+ if (g.err)
2947
+ return g;
2948
+ d = M(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
2926
2949
  } else
2927
2950
  break;
2928
2951
  }
2929
2952
  if (h.has(u))
2930
- return this.error(n === "select" ? R.DUPLICATE_SELECT_ARGUMENT_SELECTOR : R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2953
+ return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2931
2954
  u === "other" && (l = !0), this.bumpSpace();
2932
- var B = this.clonePosition();
2955
+ var _ = this.clonePosition();
2933
2956
  if (!this.bumpIf("{"))
2934
- return this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
2935
- var x = this.parseMessage(t + 1, n, r);
2936
- if (x.err)
2937
- return x;
2938
- var H = this.tryParseArgumentClose(B);
2939
- if (H.err)
2940
- return H;
2957
+ return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
2958
+ var B = this.parseMessage(t + 1, n, r);
2959
+ if (B.err)
2960
+ return B;
2961
+ var T = this.tryParseArgumentClose(_);
2962
+ if (T.err)
2963
+ return T;
2941
2964
  s.push([
2942
2965
  u,
2943
2966
  {
2944
- value: x.val,
2945
- location: L(B, this.clonePosition())
2967
+ value: B.val,
2968
+ location: M(_, this.clonePosition())
2946
2969
  }
2947
- ]), h.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, d = a.location;
2970
+ ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
2948
2971
  }
2949
- return s.length === 0 ? this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(R.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2972
+ return s.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, M(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(O.MISSING_OTHER_CLAUSE, M(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2950
2973
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
2951
2974
  var r = 1, i = this.clonePosition();
2952
2975
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
2953
- for (var a = !1, l = 0; !this.isEOF(); ) {
2976
+ for (var o = !1, l = 0; !this.isEOF(); ) {
2954
2977
  var s = this.char();
2955
2978
  if (s >= 48 && s <= 57)
2956
- a = !0, l = l * 10 + (s - 48), this.bump();
2979
+ o = !0, l = l * 10 + (s - 48), this.bump();
2957
2980
  else
2958
2981
  break;
2959
2982
  }
2960
- var h = L(i, this.clonePosition());
2961
- return a ? (l *= r, Ei(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
2983
+ var h = M(i, this.clonePosition());
2984
+ return o ? (l *= r, Bi(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
2962
2985
  }, e.prototype.offset = function() {
2963
2986
  return this.position.offset;
2964
2987
  }, e.prototype.isEOF = function() {
@@ -3027,16 +3050,16 @@ var Ti = (
3027
3050
  function Xt(e) {
3028
3051
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3029
3052
  }
3030
- function wi(e) {
3053
+ function Ci(e) {
3031
3054
  return Xt(e) || e === 47;
3032
3055
  }
3033
- function Si(e) {
3056
+ function Hi(e) {
3034
3057
  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;
3035
3058
  }
3036
3059
  function Wn(e) {
3037
3060
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3038
3061
  }
3039
- function Ai(e) {
3062
+ function Oi(e) {
3040
3063
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3041
3064
  }
3042
3065
  function zt(e) {
@@ -3047,26 +3070,26 @@ function zt(e) {
3047
3070
  else Nn(t) && Gn(t.style) || (In(t) || Pn(t)) && $t(t.style) ? delete t.style.location : Fn(t) && zt(t.children);
3048
3071
  });
3049
3072
  }
3050
- function Ci(e, t) {
3073
+ function Ri(e, t) {
3051
3074
  t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3052
- var n = new Ti(e, t).parse();
3075
+ var n = new Ai(e, t).parse();
3053
3076
  if (n.err) {
3054
- var r = SyntaxError(R[n.err.kind]);
3077
+ var r = SyntaxError(O[n.err.kind]);
3055
3078
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3056
3079
  }
3057
3080
  return t?.captureLocation || zt(n.val), n.val;
3058
3081
  }
3059
- var Fe;
3082
+ var $e;
3060
3083
  (function(e) {
3061
3084
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3062
- })(Fe || (Fe = {}));
3063
- var vt = (
3085
+ })($e || ($e = {}));
3086
+ var Et = (
3064
3087
  /** @class */
3065
3088
  function(e) {
3066
- yt(t, e);
3089
+ vt(t, e);
3067
3090
  function t(n, r, i) {
3068
- var a = e.call(this, n) || this;
3069
- return a.code = r, a.originalMessage = i, a;
3091
+ var o = e.call(this, n) || this;
3092
+ return o.code = r, o.originalMessage = i, o;
3070
3093
  }
3071
3094
  return t.prototype.toString = function() {
3072
3095
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
@@ -3075,149 +3098,149 @@ var vt = (
3075
3098
  ), dn = (
3076
3099
  /** @class */
3077
3100
  function(e) {
3078
- yt(t, e);
3079
- function t(n, r, i, a) {
3080
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Fe.INVALID_VALUE, a) || this;
3101
+ vt(t, e);
3102
+ function t(n, r, i, o) {
3103
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
3081
3104
  }
3082
3105
  return t;
3083
- }(vt)
3084
- ), Hi = (
3106
+ }(Et)
3107
+ ), Li = (
3085
3108
  /** @class */
3086
3109
  function(e) {
3087
- yt(t, e);
3110
+ vt(t, e);
3088
3111
  function t(n, r, i) {
3089
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Fe.INVALID_VALUE, i) || this;
3112
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
3090
3113
  }
3091
3114
  return t;
3092
- }(vt)
3093
- ), Oi = (
3115
+ }(Et)
3116
+ ), Mi = (
3094
3117
  /** @class */
3095
3118
  function(e) {
3096
- yt(t, e);
3119
+ vt(t, e);
3097
3120
  function t(n, r) {
3098
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Fe.MISSING_VALUE, r) || this;
3121
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
3099
3122
  }
3100
3123
  return t;
3101
- }(vt)
3102
- ), te;
3124
+ }(Et)
3125
+ ), ne;
3103
3126
  (function(e) {
3104
3127
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3105
- })(te || (te = {}));
3106
- function Ri(e) {
3128
+ })(ne || (ne = {}));
3129
+ function Ni(e) {
3107
3130
  return e.length < 2 ? e : e.reduce(function(t, n) {
3108
3131
  var r = t[t.length - 1];
3109
- return !r || r.type !== te.literal || n.type !== te.literal ? t.push(n) : r.value += n.value, t;
3132
+ return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
3110
3133
  }, []);
3111
3134
  }
3112
- function Li(e) {
3135
+ function Ii(e) {
3113
3136
  return typeof e == "function";
3114
3137
  }
3115
- function ct(e, t, n, r, i, a, l) {
3116
- if (e.length === 1 && on(e[0]))
3138
+ function ht(e, t, n, r, i, o, l) {
3139
+ if (e.length === 1 && an(e[0]))
3117
3140
  return [
3118
3141
  {
3119
- type: te.literal,
3142
+ type: ne.literal,
3120
3143
  value: e[0].value
3121
3144
  }
3122
3145
  ];
3123
3146
  for (var s = [], h = 0, u = e; h < u.length; h++) {
3124
3147
  var d = u[h];
3125
- if (on(d)) {
3148
+ if (an(d)) {
3126
3149
  s.push({
3127
- type: te.literal,
3150
+ type: ne.literal,
3128
3151
  value: d.value
3129
3152
  });
3130
3153
  continue;
3131
3154
  }
3132
- if (ei(d)) {
3133
- typeof a == "number" && s.push({
3134
- type: te.literal,
3135
- value: n.getNumberFormat(t).format(a)
3155
+ if (ri(d)) {
3156
+ typeof o == "number" && s.push({
3157
+ type: ne.literal,
3158
+ value: n.getNumberFormat(t).format(o)
3136
3159
  });
3137
3160
  continue;
3138
3161
  }
3139
- var b = d.value;
3140
- if (!(i && b in i))
3141
- throw new Oi(b, l);
3142
- var y = i[b];
3143
- if (Kr(d)) {
3144
- (!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), s.push({
3145
- type: typeof y == "string" ? te.literal : te.object,
3146
- value: y
3162
+ var m = d.value;
3163
+ if (!(i && m in i))
3164
+ throw new Mi(m, l);
3165
+ var g = i[m];
3166
+ if (ni(d)) {
3167
+ (!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
3168
+ type: typeof g == "string" ? ne.literal : ne.object,
3169
+ value: g
3147
3170
  });
3148
3171
  continue;
3149
3172
  }
3150
3173
  if (In(d)) {
3151
- var B = typeof d.style == "string" ? r.date[d.style] : $t(d.style) ? d.style.parsedOptions : void 0;
3174
+ var _ = typeof d.style == "string" ? r.date[d.style] : $t(d.style) ? d.style.parsedOptions : void 0;
3152
3175
  s.push({
3153
- type: te.literal,
3154
- value: n.getDateTimeFormat(t, B).format(y)
3176
+ type: ne.literal,
3177
+ value: n.getDateTimeFormat(t, _).format(g)
3155
3178
  });
3156
3179
  continue;
3157
3180
  }
3158
3181
  if (Pn(d)) {
3159
- var B = typeof d.style == "string" ? r.time[d.style] : $t(d.style) ? d.style.parsedOptions : r.time.medium;
3182
+ var _ = typeof d.style == "string" ? r.time[d.style] : $t(d.style) ? d.style.parsedOptions : r.time.medium;
3160
3183
  s.push({
3161
- type: te.literal,
3162
- value: n.getDateTimeFormat(t, B).format(y)
3184
+ type: ne.literal,
3185
+ value: n.getDateTimeFormat(t, _).format(g)
3163
3186
  });
3164
3187
  continue;
3165
3188
  }
3166
3189
  if (Nn(d)) {
3167
- var B = typeof d.style == "string" ? r.number[d.style] : Gn(d.style) ? d.style.parsedOptions : void 0;
3168
- B && B.scale && (y = y * (B.scale || 1)), s.push({
3169
- type: te.literal,
3170
- value: n.getNumberFormat(t, B).format(y)
3190
+ var _ = typeof d.style == "string" ? r.number[d.style] : Gn(d.style) ? d.style.parsedOptions : void 0;
3191
+ _ && _.scale && (g = g * (_.scale || 1)), s.push({
3192
+ type: ne.literal,
3193
+ value: n.getNumberFormat(t, _).format(g)
3171
3194
  });
3172
3195
  continue;
3173
3196
  }
3174
3197
  if (Fn(d)) {
3175
- var x = d.children, H = d.value, _ = i[H];
3176
- if (!Li(_))
3177
- throw new Hi(H, "function", l);
3178
- var A = ct(x, t, n, r, i, a), P = _(A.map(function(X) {
3179
- return X.value;
3198
+ var B = d.children, T = d.value, x = i[T];
3199
+ if (!Ii(x))
3200
+ throw new Li(T, "function", l);
3201
+ var S = ht(B, t, n, r, i, o), D = x(S.map(function(W) {
3202
+ return W.value;
3180
3203
  }));
3181
- Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(X) {
3204
+ Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(W) {
3182
3205
  return {
3183
- type: typeof X == "string" ? te.literal : te.object,
3184
- value: X
3206
+ type: typeof W == "string" ? ne.literal : ne.object,
3207
+ value: W
3185
3208
  };
3186
3209
  }));
3187
3210
  }
3188
3211
  if (Dn(d)) {
3189
- var O = d.options[y] || d.options.other;
3190
- if (!O)
3191
- throw new dn(d.value, y, Object.keys(d.options), l);
3192
- s.push.apply(s, ct(O.value, t, n, r, i));
3212
+ var H = d.options[g] || d.options.other;
3213
+ if (!H)
3214
+ throw new dn(d.value, g, Object.keys(d.options), l);
3215
+ s.push.apply(s, ht(H.value, t, n, r, i));
3193
3216
  continue;
3194
3217
  }
3195
3218
  if (Un(d)) {
3196
- var O = d.options["=".concat(y)];
3197
- if (!O) {
3219
+ var H = d.options["=".concat(g)];
3220
+ if (!H) {
3198
3221
  if (!Intl.PluralRules)
3199
- throw new vt(`Intl.PluralRules is not available in this environment.
3222
+ throw new Et(`Intl.PluralRules is not available in this environment.
3200
3223
  Try polyfilling it using "@formatjs/intl-pluralrules"
3201
- `, Fe.MISSING_INTL_API, l);
3202
- var j = n.getPluralRules(t, { type: d.pluralType }).select(y - (d.offset || 0));
3203
- O = d.options[j] || d.options.other;
3224
+ `, $e.MISSING_INTL_API, l);
3225
+ var U = n.getPluralRules(t, { type: d.pluralType }).select(g - (d.offset || 0));
3226
+ H = d.options[U] || d.options.other;
3204
3227
  }
3205
- if (!O)
3206
- throw new dn(d.value, y, Object.keys(d.options), l);
3207
- s.push.apply(s, ct(O.value, t, n, r, i, y - (d.offset || 0)));
3228
+ if (!H)
3229
+ throw new dn(d.value, g, Object.keys(d.options), l);
3230
+ s.push.apply(s, ht(H.value, t, n, r, i, g - (d.offset || 0)));
3208
3231
  continue;
3209
3232
  }
3210
3233
  }
3211
- return Ri(s);
3234
+ return Ni(s);
3212
3235
  }
3213
- function Mi(e, t) {
3236
+ function Pi(e, t) {
3214
3237
  return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3215
3238
  return n[r] = I(I({}, e[r]), t[r] || {}), n;
3216
3239
  }, {})) : e;
3217
3240
  }
3218
- function Ni(e, t) {
3241
+ function Di(e, t) {
3219
3242
  return t ? Object.keys(e).reduce(function(n, r) {
3220
- return n[r] = Mi(e[r], t[r]), n;
3243
+ return n[r] = Pi(e[r], t[r]), n;
3221
3244
  }, I({}, e)) : e;
3222
3245
  }
3223
3246
  function It(e) {
@@ -3234,7 +3257,7 @@ function It(e) {
3234
3257
  }
3235
3258
  };
3236
3259
  }
3237
- function Ii(e) {
3260
+ function Ui(e) {
3238
3261
  return e === void 0 && (e = {
3239
3262
  number: {},
3240
3263
  dateTime: {},
@@ -3266,45 +3289,45 @@ function Ii(e) {
3266
3289
  })
3267
3290
  };
3268
3291
  }
3269
- var Pi = (
3292
+ var Fi = (
3270
3293
  /** @class */
3271
3294
  function() {
3272
3295
  function e(t, n, r, i) {
3273
3296
  n === void 0 && (n = e.defaultLocale);
3274
- var a = this;
3297
+ var o = this;
3275
3298
  if (this.formatterCache = {
3276
3299
  number: {},
3277
3300
  dateTime: {},
3278
3301
  pluralRules: {}
3279
3302
  }, this.format = function(h) {
3280
- var u = a.formatToParts(h);
3303
+ var u = o.formatToParts(h);
3281
3304
  if (u.length === 1)
3282
3305
  return u[0].value;
3283
- var d = u.reduce(function(b, y) {
3284
- return !b.length || y.type !== te.literal || typeof b[b.length - 1] != "string" ? b.push(y.value) : b[b.length - 1] += y.value, b;
3306
+ var d = u.reduce(function(m, g) {
3307
+ return !m.length || g.type !== ne.literal || typeof m[m.length - 1] != "string" ? m.push(g.value) : m[m.length - 1] += g.value, m;
3285
3308
  }, []);
3286
3309
  return d.length <= 1 ? d[0] || "" : d;
3287
3310
  }, this.formatToParts = function(h) {
3288
- return ct(a.ast, a.locales, a.formatters, a.formats, h, void 0, a.message);
3311
+ return ht(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3289
3312
  }, this.resolvedOptions = function() {
3290
3313
  var h;
3291
3314
  return {
3292
- locale: ((h = a.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3315
+ locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3293
3316
  };
3294
3317
  }, this.getAst = function() {
3295
- return a.ast;
3318
+ return o.ast;
3296
3319
  }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3297
3320
  if (this.message = t, !e.__parse)
3298
3321
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3299
3322
  var l = i || {};
3300
3323
  l.formatters;
3301
- var s = Xr(l, ["formatters"]);
3324
+ var s = Zr(l, ["formatters"]);
3302
3325
  this.ast = e.__parse(t, I(I({}, s), { locale: this.resolvedLocale }));
3303
3326
  } else
3304
3327
  this.ast = t;
3305
3328
  if (!Array.isArray(this.ast))
3306
3329
  throw new TypeError("A message must be provided as a String or AST.");
3307
- this.formats = Ni(e.formats, r), this.formatters = i && i.formatters || Ii(this.formatterCache);
3330
+ this.formats = Di(e.formats, r), this.formatters = i && i.formatters || Ui(this.formatterCache);
3308
3331
  }
3309
3332
  return Object.defineProperty(e, "defaultLocale", {
3310
3333
  get: function() {
@@ -3317,7 +3340,7 @@ var Pi = (
3317
3340
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3318
3341
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3319
3342
  }
3320
- }, e.__parse = Ci, e.formats = {
3343
+ }, e.__parse = Ri, e.formats = {
3321
3344
  number: {
3322
3345
  integer: {
3323
3346
  maximumFractionDigits: 0
@@ -3378,7 +3401,7 @@ var Pi = (
3378
3401
  }, e;
3379
3402
  }()
3380
3403
  );
3381
- function Di(e, t) {
3404
+ function Gi(e, t) {
3382
3405
  if (t == null)
3383
3406
  return;
3384
3407
  if (t in e)
@@ -3388,9 +3411,9 @@ function Di(e, t) {
3388
3411
  for (let i = 0; i < n.length; i++)
3389
3412
  if (typeof r == "object") {
3390
3413
  if (i > 0) {
3391
- const a = n.slice(i, n.length).join(".");
3392
- if (a in r) {
3393
- r = r[a];
3414
+ const o = n.slice(i, n.length).join(".");
3415
+ if (o in r) {
3416
+ r = r[o];
3394
3417
  break;
3395
3418
  }
3396
3419
  }
@@ -3399,36 +3422,36 @@ function Di(e, t) {
3399
3422
  r = void 0;
3400
3423
  return r;
3401
3424
  }
3402
- const we = {}, Ui = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), Zn = (e, t) => {
3425
+ const we = {}, $i = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), Zn = (e, t) => {
3403
3426
  if (t == null)
3404
3427
  return;
3405
3428
  if (t in we && e in we[t])
3406
3429
  return we[t][e];
3407
- const n = Et(t);
3430
+ const n = xt(t);
3408
3431
  for (let r = 0; r < n.length; r++) {
3409
- const i = n[r], a = Gi(i, e);
3410
- if (a)
3411
- return Ui(e, t, a);
3432
+ const i = n[r], o = ji(i, e);
3433
+ if (o)
3434
+ return $i(e, t, o);
3412
3435
  }
3413
3436
  };
3414
3437
  let Jt;
3415
- const nt = bt({});
3416
- function Fi(e) {
3438
+ const rt = yt({});
3439
+ function ki(e) {
3417
3440
  return Jt[e] || null;
3418
3441
  }
3419
3442
  function qn(e) {
3420
3443
  return e in Jt;
3421
3444
  }
3422
- function Gi(e, t) {
3445
+ function ji(e, t) {
3423
3446
  if (!qn(e))
3424
3447
  return null;
3425
- const n = Fi(e);
3426
- return Di(n, t);
3448
+ const n = ki(e);
3449
+ return Gi(n, t);
3427
3450
  }
3428
- function $i(e) {
3451
+ function Vi(e) {
3429
3452
  if (e == null)
3430
3453
  return;
3431
- const t = Et(e);
3454
+ const t = xt(e);
3432
3455
  for (let n = 0; n < t.length; n++) {
3433
3456
  const r = t[n];
3434
3457
  if (qn(r))
@@ -3436,55 +3459,55 @@ function $i(e) {
3436
3459
  }
3437
3460
  }
3438
3461
  function Qn(e, ...t) {
3439
- delete we[e], nt.update((n) => (n[e] = Vr.all([n[e] || {}, ...t]), n));
3462
+ delete we[e], rt.update((n) => (n[e] = Wr.all([n[e] || {}, ...t]), n));
3440
3463
  }
3441
- ke(
3442
- [nt],
3464
+ Ve(
3465
+ [rt],
3443
3466
  ([e]) => Object.keys(e)
3444
3467
  );
3445
- nt.subscribe((e) => Jt = e);
3446
- const ht = {};
3447
- function ki(e, t) {
3448
- ht[e].delete(t), ht[e].size === 0 && delete ht[e];
3468
+ rt.subscribe((e) => Jt = e);
3469
+ const ft = {};
3470
+ function Xi(e, t) {
3471
+ ft[e].delete(t), ft[e].size === 0 && delete ft[e];
3449
3472
  }
3450
3473
  function Jn(e) {
3451
- return ht[e];
3474
+ return ft[e];
3452
3475
  }
3453
- function ji(e) {
3454
- return Et(e).map((t) => {
3476
+ function zi(e) {
3477
+ return xt(e).map((t) => {
3455
3478
  const n = Jn(t);
3456
3479
  return [t, n ? [...n] : []];
3457
3480
  }).filter(([, t]) => t.length > 0);
3458
3481
  }
3459
3482
  function Wt(e) {
3460
- return e == null ? !1 : Et(e).some(
3483
+ return e == null ? !1 : xt(e).some(
3461
3484
  (t) => {
3462
3485
  var n;
3463
3486
  return (n = Jn(t)) == null ? void 0 : n.size;
3464
3487
  }
3465
3488
  );
3466
3489
  }
3467
- function Vi(e, t) {
3490
+ function Wi(e, t) {
3468
3491
  return Promise.all(
3469
- t.map((r) => (ki(e, r), r().then((i) => i.default || i)))
3492
+ t.map((r) => (Xi(e, r), r().then((i) => i.default || i)))
3470
3493
  ).then((r) => Qn(e, ...r));
3471
3494
  }
3472
- const Je = {};
3495
+ const Ye = {};
3473
3496
  function Yn(e) {
3474
3497
  if (!Wt(e))
3475
- return e in Je ? Je[e] : Promise.resolve();
3476
- const t = ji(e);
3477
- return Je[e] = Promise.all(
3498
+ return e in Ye ? Ye[e] : Promise.resolve();
3499
+ const t = zi(e);
3500
+ return Ye[e] = Promise.all(
3478
3501
  t.map(
3479
- ([n, r]) => Vi(n, r)
3502
+ ([n, r]) => Wi(n, r)
3480
3503
  )
3481
3504
  ).then(() => {
3482
3505
  if (Wt(e))
3483
3506
  return Yn(e);
3484
- delete Je[e];
3485
- }), Je[e];
3507
+ delete Ye[e];
3508
+ }), Ye[e];
3486
3509
  }
3487
- const Xi = {
3510
+ const Zi = {
3488
3511
  number: {
3489
3512
  scientific: { notation: "scientific" },
3490
3513
  engineering: { notation: "engineering" },
@@ -3513,141 +3536,141 @@ const Xi = {
3513
3536
  timeZoneName: "short"
3514
3537
  }
3515
3538
  }
3516
- }, zi = {
3539
+ }, qi = {
3517
3540
  fallbackLocale: null,
3518
3541
  loadingDelay: 200,
3519
- formats: Xi,
3542
+ formats: Zi,
3520
3543
  warnOnMissingMessages: !0,
3521
3544
  handleMissingMessage: void 0,
3522
3545
  ignoreTag: !0
3523
- }, Wi = zi;
3524
- function Ge() {
3525
- return Wi;
3546
+ }, Qi = qi;
3547
+ function ke() {
3548
+ return Qi;
3526
3549
  }
3527
- const Pt = bt(!1);
3528
- var Zi = Object.defineProperty, qi = Object.defineProperties, Qi = Object.getOwnPropertyDescriptors, pn = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ki = (e, t) => {
3550
+ const Pt = yt(!1);
3551
+ var Ji = Object.defineProperty, Yi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, pn = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? Ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, no = (e, t) => {
3529
3552
  for (var n in t || (t = {}))
3530
- Ji.call(t, n) && mn(e, n, t[n]);
3553
+ eo.call(t, n) && mn(e, n, t[n]);
3531
3554
  if (pn)
3532
3555
  for (var n of pn(t))
3533
- Yi.call(t, n) && mn(e, n, t[n]);
3556
+ to.call(t, n) && mn(e, n, t[n]);
3534
3557
  return e;
3535
- }, ea = (e, t) => qi(e, Qi(t));
3558
+ }, ro = (e, t) => Yi(e, Ki(t));
3536
3559
  let Zt;
3537
- const mt = bt(null);
3560
+ const gt = yt(null);
3538
3561
  function gn(e) {
3539
3562
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3540
3563
  }
3541
- function Et(e, t = Ge().fallbackLocale) {
3564
+ function xt(e, t = ke().fallbackLocale) {
3542
3565
  const n = gn(e);
3543
3566
  return t ? [.../* @__PURE__ */ new Set([...n, ...gn(t)])] : n;
3544
3567
  }
3545
- function Ce() {
3568
+ function He() {
3546
3569
  return Zt ?? void 0;
3547
3570
  }
3548
- mt.subscribe((e) => {
3571
+ gt.subscribe((e) => {
3549
3572
  Zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3550
3573
  });
3551
- const ta = (e) => {
3552
- if (e && $i(e) && Wt(e)) {
3553
- const { loadingDelay: t } = Ge();
3574
+ const io = (e) => {
3575
+ if (e && Vi(e) && Wt(e)) {
3576
+ const { loadingDelay: t } = ke();
3554
3577
  let n;
3555
- return typeof window < "u" && Ce() != null && t ? n = window.setTimeout(
3578
+ return typeof window < "u" && He() != null && t ? n = window.setTimeout(
3556
3579
  () => Pt.set(!0),
3557
3580
  t
3558
3581
  ) : Pt.set(!0), Yn(e).then(() => {
3559
- mt.set(e);
3582
+ gt.set(e);
3560
3583
  }).finally(() => {
3561
3584
  clearTimeout(n), Pt.set(!1);
3562
3585
  });
3563
3586
  }
3564
- return mt.set(e);
3565
- }, je = ea(Ki({}, mt), {
3566
- set: ta
3567
- }), xt = (e) => {
3587
+ return gt.set(e);
3588
+ }, Xe = ro(no({}, gt), {
3589
+ set: io
3590
+ }), _t = (e) => {
3568
3591
  const t = /* @__PURE__ */ Object.create(null);
3569
3592
  return (r) => {
3570
3593
  const i = JSON.stringify(r);
3571
3594
  return i in t ? t[i] : t[i] = e(r);
3572
3595
  };
3573
3596
  };
3574
- var na = Object.defineProperty, gt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? na(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
3597
+ var oo = Object.defineProperty, bt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
3575
3598
  for (var n in t || (t = {}))
3576
3599
  Kn.call(t, n) && bn(e, n, t[n]);
3577
- if (gt)
3578
- for (var n of gt(t))
3600
+ if (bt)
3601
+ for (var n of bt(t))
3579
3602
  er.call(t, n) && bn(e, n, t[n]);
3580
3603
  return e;
3581
- }, Ve = (e, t) => {
3604
+ }, ze = (e, t) => {
3582
3605
  var n = {};
3583
3606
  for (var r in e)
3584
3607
  Kn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3585
- if (e != null && gt)
3586
- for (var r of gt(e))
3608
+ if (e != null && bt)
3609
+ for (var r of bt(e))
3587
3610
  t.indexOf(r) < 0 && er.call(e, r) && (n[r] = e[r]);
3588
3611
  return n;
3589
3612
  };
3590
- const tt = (e, t) => {
3591
- const { formats: n } = Ge();
3613
+ const nt = (e, t) => {
3614
+ const { formats: n } = ke();
3592
3615
  if (e in n && t in n[e])
3593
3616
  return n[e][t];
3594
3617
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3595
- }, ra = xt(
3618
+ }, ao = _t(
3596
3619
  (e) => {
3597
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3620
+ var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3598
3621
  if (n == null)
3599
3622
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3600
- return r && (i = tt("number", r)), new Intl.NumberFormat(n, i);
3623
+ return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
3601
3624
  }
3602
- ), ia = xt(
3625
+ ), so = _t(
3603
3626
  (e) => {
3604
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3627
+ var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3605
3628
  if (n == null)
3606
3629
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3607
- return r ? i = tt("date", r) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(n, i);
3630
+ return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
3608
3631
  }
3609
- ), aa = xt(
3632
+ ), lo = _t(
3610
3633
  (e) => {
3611
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3634
+ var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3612
3635
  if (n == null)
3613
3636
  throw new Error(
3614
3637
  '[svelte-i18n] A "locale" must be set to format time values'
3615
3638
  );
3616
- return r ? i = tt("time", r) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(n, i);
3639
+ return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
3617
3640
  }
3618
- ), oa = (e = {}) => {
3641
+ ), uo = (e = {}) => {
3619
3642
  var t = e, {
3620
- locale: n = Ce()
3621
- } = t, r = Ve(t, [
3643
+ locale: n = He()
3644
+ } = t, r = ze(t, [
3622
3645
  "locale"
3623
3646
  ]);
3624
- return ra(Yt({ locale: n }, r));
3625
- }, sa = (e = {}) => {
3647
+ return ao(Yt({ locale: n }, r));
3648
+ }, co = (e = {}) => {
3626
3649
  var t = e, {
3627
- locale: n = Ce()
3628
- } = t, r = Ve(t, [
3650
+ locale: n = He()
3651
+ } = t, r = ze(t, [
3629
3652
  "locale"
3630
3653
  ]);
3631
- return ia(Yt({ locale: n }, r));
3632
- }, la = (e = {}) => {
3654
+ return so(Yt({ locale: n }, r));
3655
+ }, ho = (e = {}) => {
3633
3656
  var t = e, {
3634
- locale: n = Ce()
3635
- } = t, r = Ve(t, [
3657
+ locale: n = He()
3658
+ } = t, r = ze(t, [
3636
3659
  "locale"
3637
3660
  ]);
3638
- return aa(Yt({ locale: n }, r));
3639
- }, ua = xt(
3661
+ return lo(Yt({ locale: n }, r));
3662
+ }, fo = _t(
3640
3663
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3641
- (e, t = Ce()) => new Pi(e, t, Ge().formats, {
3642
- ignoreTag: Ge().ignoreTag
3664
+ (e, t = He()) => new Fi(e, t, ke().formats, {
3665
+ ignoreTag: ke().ignoreTag
3643
3666
  })
3644
- ), ca = (e, t = {}) => {
3645
- var n, r, i, a;
3667
+ ), po = (e, t = {}) => {
3668
+ var n, r, i, o;
3646
3669
  let l = t;
3647
3670
  typeof e == "object" && (l = e, e = l.id);
3648
3671
  const {
3649
3672
  values: s,
3650
- locale: h = Ce(),
3673
+ locale: h = He(),
3651
3674
  default: u
3652
3675
  } = l;
3653
3676
  if (h == null)
@@ -3656,33 +3679,33 @@ const tt = (e, t) => {
3656
3679
  );
3657
3680
  let d = Zn(e, h);
3658
3681
  if (!d)
3659
- d = (a = (i = (r = (n = Ge()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3682
+ d = (o = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3660
3683
  else if (typeof d != "string")
3661
3684
  return console.warn(
3662
3685
  `[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.`
3663
3686
  ), d;
3664
3687
  if (!s)
3665
3688
  return d;
3666
- let b = d;
3689
+ let m = d;
3667
3690
  try {
3668
- b = ua(d, h).format(s);
3669
- } catch (y) {
3670
- y instanceof Error && console.warn(
3691
+ m = fo(d, h).format(s);
3692
+ } catch (g) {
3693
+ g instanceof Error && console.warn(
3671
3694
  `[svelte-i18n] Message "${e}" has syntax error:`,
3672
- y.message
3695
+ g.message
3673
3696
  );
3674
3697
  }
3675
- return b;
3676
- }, ha = (e, t) => la(t).format(e), fa = (e, t) => sa(t).format(e), da = (e, t) => oa(t).format(e), pa = (e, t = Ce()) => Zn(e, t), ma = ke([je, nt], () => ca);
3677
- ke([je], () => ha);
3678
- ke([je], () => fa);
3679
- ke([je], () => da);
3680
- ke([je, nt], () => pa);
3698
+ return m;
3699
+ }, mo = (e, t) => ho(t).format(e), go = (e, t) => co(t).format(e), bo = (e, t) => uo(t).format(e), yo = (e, t = He()) => Zn(e, t), vo = Ve([Xe, rt], () => po);
3700
+ Ve([Xe], () => mo);
3701
+ Ve([Xe], () => go);
3702
+ Ve([Xe], () => bo);
3703
+ Ve([Xe, rt], () => yo);
3681
3704
  function yn(e, t) {
3682
3705
  Qn(e, t);
3683
3706
  }
3684
- function ga(e) {
3685
- je.set(e);
3707
+ function Eo(e) {
3708
+ Xe.set(e);
3686
3709
  }
3687
3710
  const vn = {
3688
3711
  en: {
@@ -3892,35 +3915,35 @@ var qt = { exports: {} };
3892
3915
  */
3893
3916
  (function(e, t) {
3894
3917
  (function(n) {
3895
- var r = n.setTimeout, i = n.clearTimeout, a = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, h = n.EventSource, u = n.document, d = n.Promise, b = n.fetch, y = n.Response, B = n.TextDecoder, x = n.TextEncoder, H = n.AbortController;
3896
- if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(c) {
3918
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, h = n.EventSource, u = n.document, d = n.Promise, m = n.fetch, g = n.Response, _ = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
3919
+ if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
3897
3920
  u.readyState = "complete";
3898
- }, !1)), a == null && s != null && (a = function() {
3921
+ }, !1)), o == null && s != null && (o = function() {
3899
3922
  return new s("Microsoft.XMLHTTP");
3900
- }), Object.create == null && (Object.create = function(c) {
3901
- function o() {
3923
+ }), Object.create == null && (Object.create = function(a) {
3924
+ function f() {
3902
3925
  }
3903
- return o.prototype = c, new o();
3926
+ return f.prototype = a, new f();
3904
3927
  }), Date.now || (Date.now = function() {
3905
3928
  return (/* @__PURE__ */ new Date()).getTime();
3906
- }), H == null) {
3907
- var _ = b;
3908
- b = function(c, o) {
3909
- var p = o.signal;
3910
- return _(c, { headers: o.headers, credentials: o.credentials, cache: o.cache }).then(function(f) {
3911
- var m = f.body.getReader();
3912
- return p._reader = m, p._aborted && p._reader.cancel(), {
3913
- status: f.status,
3914
- statusText: f.statusText,
3915
- headers: f.headers,
3929
+ }), T == null) {
3930
+ var x = m;
3931
+ m = function(a, f) {
3932
+ var p = f.signal;
3933
+ return x(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(c) {
3934
+ var v = c.body.getReader();
3935
+ return p._reader = v, p._aborted && p._reader.cancel(), {
3936
+ status: c.status,
3937
+ statusText: c.statusText,
3938
+ headers: c.headers,
3916
3939
  body: {
3917
3940
  getReader: function() {
3918
- return m;
3941
+ return v;
3919
3942
  }
3920
3943
  }
3921
3944
  };
3922
3945
  });
3923
- }, H = function() {
3946
+ }, T = function() {
3924
3947
  this.signal = {
3925
3948
  _reader: null,
3926
3949
  _aborted: !1
@@ -3929,407 +3952,407 @@ var qt = { exports: {} };
3929
3952
  };
3930
3953
  };
3931
3954
  }
3932
- function A() {
3955
+ function S() {
3933
3956
  this.bitsNeeded = 0, this.codePoint = 0;
3934
3957
  }
3935
- A.prototype.decode = function(c) {
3936
- function o(N, F, S) {
3937
- if (S === 1)
3938
- return N >= 128 >> F && N << F <= 2047;
3939
- if (S === 2)
3940
- return N >= 2048 >> F && N << F <= 55295 || N >= 57344 >> F && N << F <= 65535;
3941
- if (S === 3)
3942
- return N >= 65536 >> F && N << F <= 1114111;
3958
+ S.prototype.decode = function(a) {
3959
+ function f(P, G, w) {
3960
+ if (w === 1)
3961
+ return P >= 128 >> G && P << G <= 2047;
3962
+ if (w === 2)
3963
+ return P >= 2048 >> G && P << G <= 55295 || P >= 57344 >> G && P << G <= 65535;
3964
+ if (w === 3)
3965
+ return P >= 65536 >> G && P << G <= 1114111;
3943
3966
  throw new Error();
3944
3967
  }
3945
- function p(N, F) {
3946
- if (N === 6 * 1)
3947
- return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
3948
- if (N === 6 * 2)
3949
- return F > 15 ? 3 : 2;
3950
- if (N === 6 * 3)
3968
+ function p(P, G) {
3969
+ if (P === 6 * 1)
3970
+ return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
3971
+ if (P === 6 * 2)
3972
+ return G > 15 ? 3 : 2;
3973
+ if (P === 6 * 3)
3951
3974
  return 3;
3952
3975
  throw new Error();
3953
3976
  }
3954
- for (var f = 65533, m = "", v = this.bitsNeeded, T = this.codePoint, E = 0; E < c.length; E += 1) {
3955
- var w = c[E];
3956
- v !== 0 && (w < 128 || w > 191 || !o(T << 6 | w & 63, v - 6, p(v, T))) && (v = 0, T = f, m += String.fromCharCode(T)), v === 0 ? (w >= 0 && w <= 127 ? (v = 0, T = w) : w >= 192 && w <= 223 ? (v = 6 * 1, T = w & 31) : w >= 224 && w <= 239 ? (v = 6 * 2, T = w & 15) : w >= 240 && w <= 247 ? (v = 6 * 3, T = w & 7) : (v = 0, T = f), v !== 0 && !o(T, v, p(v, T)) && (v = 0, T = f)) : (v -= 6, T = T << 6 | w & 63), v === 0 && (T <= 65535 ? m += String.fromCharCode(T) : (m += String.fromCharCode(55296 + (T - 65535 - 1 >> 10)), m += String.fromCharCode(56320 + (T - 65535 - 1 & 1023))));
3977
+ for (var c = 65533, v = "", E = this.bitsNeeded, y = this.codePoint, L = 0; L < a.length; L += 1) {
3978
+ var A = a[L];
3979
+ E !== 0 && (A < 128 || A > 191 || !f(y << 6 | A & 63, E - 6, p(E, y))) && (E = 0, y = c, v += String.fromCharCode(y)), E === 0 ? (A >= 0 && A <= 127 ? (E = 0, y = A) : A >= 192 && A <= 223 ? (E = 6 * 1, y = A & 31) : A >= 224 && A <= 239 ? (E = 6 * 2, y = A & 15) : A >= 240 && A <= 247 ? (E = 6 * 3, y = A & 7) : (E = 0, y = c), E !== 0 && !f(y, E, p(E, y)) && (E = 0, y = c)) : (E -= 6, y = y << 6 | A & 63), E === 0 && (y <= 65535 ? v += String.fromCharCode(y) : (v += String.fromCharCode(55296 + (y - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (y - 65535 - 1 & 1023))));
3957
3980
  }
3958
- return this.bitsNeeded = v, this.codePoint = T, m;
3981
+ return this.bitsNeeded = E, this.codePoint = y, v;
3959
3982
  };
3960
- var P = function() {
3983
+ var D = function() {
3961
3984
  try {
3962
- return new B().decode(new x().encode("test"), { stream: !0 }) === "test";
3963
- } catch (c) {
3964
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + c);
3985
+ return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
3986
+ } catch (a) {
3987
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
3965
3988
  }
3966
3989
  return !1;
3967
3990
  };
3968
- (B == null || x == null || !P()) && (B = A);
3969
- var O = function() {
3991
+ (_ == null || B == null || !D()) && (_ = S);
3992
+ var H = function() {
3970
3993
  };
3971
- function j(c) {
3972
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = O, this.onload = O, this.onerror = O, this.onreadystatechange = O, this._contentType = "", this._xhr = c, this._sendTimeout = 0, this._abort = O;
3994
+ function U(a) {
3995
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = H, this.onload = H, this.onerror = H, this.onreadystatechange = H, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = H;
3973
3996
  }
3974
- j.prototype.open = function(c, o) {
3997
+ U.prototype.open = function(a, f) {
3975
3998
  this._abort(!0);
3976
- var p = this, f = this._xhr, m = 1, v = 0;
3977
- this._abort = function(S) {
3978
- p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (m === 1 || m === 2 || m === 3) && (m = 4, f.onload = O, f.onerror = O, f.onabort = O, f.onprogress = O, f.onreadystatechange = O, f.abort(), v !== 0 && (i(v), v = 0), S || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), m = 0;
3999
+ var p = this, c = this._xhr, v = 1, E = 0;
4000
+ this._abort = function(w) {
4001
+ p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, c.onload = H, c.onerror = H, c.onabort = H, c.onprogress = H, c.onreadystatechange = H, c.abort(), E !== 0 && (i(E), E = 0), w || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), v = 0;
3979
4002
  };
3980
- var T = function() {
3981
- if (m === 1) {
3982
- var S = 0, k = "", ye = void 0;
3983
- if ("contentType" in f)
3984
- S = 200, k = "OK", ye = f.contentType;
4003
+ var y = function() {
4004
+ if (v === 1) {
4005
+ var w = 0, V = "", ge = void 0;
4006
+ if ("contentType" in c)
4007
+ w = 200, V = "OK", ge = c.contentType;
3985
4008
  else
3986
4009
  try {
3987
- S = f.status, k = f.statusText, ye = f.getResponseHeader("Content-Type");
4010
+ w = c.status, V = c.statusText, ge = c.getResponseHeader("Content-Type");
3988
4011
  } catch {
3989
- S = 0, k = "", ye = void 0;
4012
+ w = 0, V = "", ge = void 0;
3990
4013
  }
3991
- S !== 0 && (m = 2, p.readyState = 2, p.status = S, p.statusText = k, p._contentType = ye, p.onreadystatechange());
4014
+ w !== 0 && (v = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = ge, p.onreadystatechange());
3992
4015
  }
3993
- }, E = function() {
3994
- if (T(), m === 2 || m === 3) {
3995
- m = 3;
3996
- var S = "";
4016
+ }, L = function() {
4017
+ if (y(), v === 2 || v === 3) {
4018
+ v = 3;
4019
+ var w = "";
3997
4020
  try {
3998
- S = f.responseText;
4021
+ w = c.responseText;
3999
4022
  } catch {
4000
4023
  }
4001
- p.readyState = 3, p.responseText = S, p.onprogress();
4024
+ p.readyState = 3, p.responseText = w, p.onprogress();
4002
4025
  }
4003
- }, w = function(S, k) {
4004
- if ((k == null || k.preventDefault == null) && (k = {
4005
- preventDefault: O
4006
- }), E(), m === 1 || m === 2 || m === 3) {
4007
- if (m = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, S === "load")
4008
- p.onload(k);
4009
- else if (S === "error")
4010
- p.onerror(k);
4011
- else if (S === "abort")
4012
- p.onabort(k);
4026
+ }, A = function(w, V) {
4027
+ if ((V == null || V.preventDefault == null) && (V = {
4028
+ preventDefault: H
4029
+ }), L(), v === 1 || v === 2 || v === 3) {
4030
+ if (v = 4, E !== 0 && (i(E), E = 0), p.readyState = 4, w === "load")
4031
+ p.onload(V);
4032
+ else if (w === "error")
4033
+ p.onerror(V);
4034
+ else if (w === "abort")
4035
+ p.onabort(V);
4013
4036
  else
4014
4037
  throw new TypeError();
4015
4038
  p.onreadystatechange();
4016
4039
  }
4017
- }, N = function(S) {
4018
- f != null && (f.readyState === 4 ? (!("onload" in f) || !("onerror" in f) || !("onabort" in f)) && w(f.responseText === "" ? "error" : "load", S) : f.readyState === 3 ? "onprogress" in f || E() : f.readyState === 2 && T());
4019
- }, F = function() {
4020
- v = r(function() {
4021
- F();
4022
- }, 500), f.readyState === 3 && E();
4040
+ }, P = function(w) {
4041
+ c != null && (c.readyState === 4 ? (!("onload" in c) || !("onerror" in c) || !("onabort" in c)) && A(c.responseText === "" ? "error" : "load", w) : c.readyState === 3 ? "onprogress" in c || L() : c.readyState === 2 && y());
4042
+ }, G = function() {
4043
+ E = r(function() {
4044
+ G();
4045
+ }, 500), c.readyState === 3 && L();
4023
4046
  };
4024
- "onload" in f && (f.onload = function(S) {
4025
- w("load", S);
4026
- }), "onerror" in f && (f.onerror = function(S) {
4027
- w("error", S);
4028
- }), "onabort" in f && (f.onabort = function(S) {
4029
- w("abort", S);
4030
- }), "onprogress" in f && (f.onprogress = E), "onreadystatechange" in f && (f.onreadystatechange = function(S) {
4031
- N(S);
4032
- }), ("contentType" in f || !("ontimeout" in a.prototype)) && (o += (o.indexOf("?") === -1 ? "?" : "&") + "padding=true"), f.open(c, o, !0), "readyState" in f && (v = r(function() {
4033
- F();
4047
+ "onload" in c && (c.onload = function(w) {
4048
+ A("load", w);
4049
+ }), "onerror" in c && (c.onerror = function(w) {
4050
+ A("error", w);
4051
+ }), "onabort" in c && (c.onabort = function(w) {
4052
+ A("abort", w);
4053
+ }), "onprogress" in c && (c.onprogress = L), "onreadystatechange" in c && (c.onreadystatechange = function(w) {
4054
+ P(w);
4055
+ }), ("contentType" in c || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), c.open(a, f, !0), "readyState" in c && (E = r(function() {
4056
+ G();
4034
4057
  }, 0));
4035
- }, j.prototype.abort = function() {
4058
+ }, U.prototype.abort = function() {
4036
4059
  this._abort(!1);
4037
- }, j.prototype.getResponseHeader = function(c) {
4060
+ }, U.prototype.getResponseHeader = function(a) {
4038
4061
  return this._contentType;
4039
- }, j.prototype.setRequestHeader = function(c, o) {
4062
+ }, U.prototype.setRequestHeader = function(a, f) {
4040
4063
  var p = this._xhr;
4041
- "setRequestHeader" in p && p.setRequestHeader(c, o);
4042
- }, j.prototype.getAllResponseHeaders = function() {
4064
+ "setRequestHeader" in p && p.setRequestHeader(a, f);
4065
+ }, U.prototype.getAllResponseHeaders = function() {
4043
4066
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4044
- }, j.prototype.send = function() {
4045
- if ((!("ontimeout" in a.prototype) || !("sendAsBinary" in a.prototype) && !("mozAnon" in a.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4046
- var c = this;
4047
- c._sendTimeout = r(function() {
4048
- c._sendTimeout = 0, c.send();
4067
+ }, U.prototype.send = function() {
4068
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4069
+ var a = this;
4070
+ a._sendTimeout = r(function() {
4071
+ a._sendTimeout = 0, a.send();
4049
4072
  }, 4);
4050
4073
  return;
4051
4074
  }
4052
- var o = this._xhr;
4053
- "withCredentials" in o && (o.withCredentials = this.withCredentials);
4075
+ var f = this._xhr;
4076
+ "withCredentials" in f && (f.withCredentials = this.withCredentials);
4054
4077
  try {
4055
- o.send(void 0);
4078
+ f.send(void 0);
4056
4079
  } catch (p) {
4057
4080
  throw p;
4058
4081
  }
4059
4082
  };
4060
- function X(c) {
4061
- return c.replace(/[A-Z]/g, function(o) {
4062
- return String.fromCharCode(o.charCodeAt(0) + 32);
4083
+ function W(a) {
4084
+ return a.replace(/[A-Z]/g, function(f) {
4085
+ return String.fromCharCode(f.charCodeAt(0) + 32);
4063
4086
  });
4064
4087
  }
4065
- function ne(c) {
4066
- for (var o = /* @__PURE__ */ Object.create(null), p = c.split(`\r
4067
- `), f = 0; f < p.length; f += 1) {
4068
- var m = p[f], v = m.split(": "), T = v.shift(), E = v.join(": ");
4069
- o[X(T)] = E;
4088
+ function q(a) {
4089
+ for (var f = /* @__PURE__ */ Object.create(null), p = a.split(`\r
4090
+ `), c = 0; c < p.length; c += 1) {
4091
+ var v = p[c], E = v.split(": "), y = E.shift(), L = E.join(": ");
4092
+ f[W(y)] = L;
4070
4093
  }
4071
- this._map = o;
4094
+ this._map = f;
4072
4095
  }
4073
- ne.prototype.get = function(c) {
4074
- return this._map[X(c)];
4075
- }, a != null && a.HEADERS_RECEIVED == null && (a.HEADERS_RECEIVED = 2);
4076
- function W() {
4096
+ q.prototype.get = function(a) {
4097
+ return this._map[W(a)];
4098
+ }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4099
+ function Y() {
4077
4100
  }
4078
- W.prototype.open = function(c, o, p, f, m, v, T) {
4079
- c.open("GET", m);
4080
- var E = 0;
4081
- c.onprogress = function() {
4082
- var N = c.responseText, F = N.slice(E);
4083
- E += F.length, p(F);
4084
- }, c.onerror = function(N) {
4085
- N.preventDefault(), f(new Error("NetworkError"));
4086
- }, c.onload = function() {
4087
- f(null);
4088
- }, c.onabort = function() {
4089
- f(null);
4090
- }, c.onreadystatechange = function() {
4091
- if (c.readyState === a.HEADERS_RECEIVED) {
4092
- var N = c.status, F = c.statusText, S = c.getResponseHeader("Content-Type"), k = c.getAllResponseHeaders();
4093
- o(N, F, S, new ne(k));
4101
+ Y.prototype.open = function(a, f, p, c, v, E, y) {
4102
+ a.open("GET", v);
4103
+ var L = 0;
4104
+ a.onprogress = function() {
4105
+ var P = a.responseText, G = P.slice(L);
4106
+ L += G.length, p(G);
4107
+ }, a.onerror = function(P) {
4108
+ P.preventDefault(), c(new Error("NetworkError"));
4109
+ }, a.onload = function() {
4110
+ c(null);
4111
+ }, a.onabort = function() {
4112
+ c(null);
4113
+ }, a.onreadystatechange = function() {
4114
+ if (a.readyState === o.HEADERS_RECEIVED) {
4115
+ var P = a.status, G = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
4116
+ f(P, G, w, new q(V));
4094
4117
  }
4095
- }, c.withCredentials = v;
4096
- for (var w in T)
4097
- Object.prototype.hasOwnProperty.call(T, w) && c.setRequestHeader(w, T[w]);
4098
- return c.send(), c;
4118
+ }, a.withCredentials = E;
4119
+ for (var A in y)
4120
+ Object.prototype.hasOwnProperty.call(y, A) && a.setRequestHeader(A, y[A]);
4121
+ return a.send(), a;
4099
4122
  };
4100
- function U(c) {
4101
- this._headers = c;
4123
+ function $(a) {
4124
+ this._headers = a;
4102
4125
  }
4103
- U.prototype.get = function(c) {
4104
- return this._headers.get(c);
4126
+ $.prototype.get = function(a) {
4127
+ return this._headers.get(a);
4105
4128
  };
4106
- function D() {
4129
+ function R() {
4107
4130
  }
4108
- D.prototype.open = function(c, o, p, f, m, v, T) {
4109
- var E = null, w = new H(), N = w.signal, F = new B();
4110
- return b(m, {
4111
- headers: T,
4112
- credentials: v ? "include" : "same-origin",
4113
- signal: N,
4131
+ R.prototype.open = function(a, f, p, c, v, E, y) {
4132
+ var L = null, A = new T(), P = A.signal, G = new _();
4133
+ return m(v, {
4134
+ headers: y,
4135
+ credentials: E ? "include" : "same-origin",
4136
+ signal: P,
4114
4137
  cache: "no-store"
4115
- }).then(function(S) {
4116
- return E = S.body.getReader(), o(S.status, S.statusText, S.headers.get("Content-Type"), new U(S.headers)), new d(function(k, ye) {
4117
- var qe = function() {
4118
- E.read().then(function(ie) {
4138
+ }).then(function(w) {
4139
+ return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new $(w.headers)), new d(function(V, ge) {
4140
+ var Qe = function() {
4141
+ L.read().then(function(ie) {
4119
4142
  if (ie.done)
4120
- k(void 0);
4143
+ V(void 0);
4121
4144
  else {
4122
- var Y = F.decode(ie.value, { stream: !0 });
4123
- p(Y), qe();
4145
+ var K = G.decode(ie.value, { stream: !0 });
4146
+ p(K), Qe();
4124
4147
  }
4125
4148
  }).catch(function(ie) {
4126
- ye(ie);
4149
+ ge(ie);
4127
4150
  });
4128
4151
  };
4129
- qe();
4152
+ Qe();
4130
4153
  });
4131
- }).catch(function(S) {
4132
- if (S.name !== "AbortError")
4133
- return S;
4134
- }).then(function(S) {
4135
- f(S);
4154
+ }).catch(function(w) {
4155
+ if (w.name !== "AbortError")
4156
+ return w;
4157
+ }).then(function(w) {
4158
+ c(w);
4136
4159
  }), {
4137
4160
  abort: function() {
4138
- E?.cancel(), w.abort();
4161
+ L?.cancel(), A.abort();
4139
4162
  }
4140
4163
  };
4141
4164
  };
4142
- function V() {
4165
+ function X() {
4143
4166
  this._listeners = /* @__PURE__ */ Object.create(null);
4144
4167
  }
4145
- function g(c) {
4168
+ function F(a) {
4146
4169
  r(function() {
4147
- throw c;
4170
+ throw a;
4148
4171
  }, 0);
4149
4172
  }
4150
- V.prototype.dispatchEvent = function(c) {
4151
- c.target = this;
4152
- var o = this._listeners[c.type];
4153
- if (o != null)
4154
- for (var p = o.length, f = 0; f < p; f += 1) {
4155
- var m = o[f];
4173
+ X.prototype.dispatchEvent = function(a) {
4174
+ a.target = this;
4175
+ var f = this._listeners[a.type];
4176
+ if (f != null)
4177
+ for (var p = f.length, c = 0; c < p; c += 1) {
4178
+ var v = f[c];
4156
4179
  try {
4157
- typeof m.handleEvent == "function" ? m.handleEvent(c) : m.call(this, c);
4158
- } catch (v) {
4159
- g(v);
4180
+ typeof v.handleEvent == "function" ? v.handleEvent(a) : v.call(this, a);
4181
+ } catch (E) {
4182
+ F(E);
4160
4183
  }
4161
4184
  }
4162
- }, V.prototype.addEventListener = function(c, o) {
4163
- c = String(c);
4164
- var p = this._listeners, f = p[c];
4165
- f == null && (f = [], p[c] = f);
4166
- for (var m = !1, v = 0; v < f.length; v += 1)
4167
- f[v] === o && (m = !0);
4168
- m || f.push(o);
4169
- }, V.prototype.removeEventListener = function(c, o) {
4170
- c = String(c);
4171
- var p = this._listeners, f = p[c];
4172
- if (f != null) {
4173
- for (var m = [], v = 0; v < f.length; v += 1)
4174
- f[v] !== o && m.push(f[v]);
4175
- m.length === 0 ? delete p[c] : p[c] = m;
4185
+ }, X.prototype.addEventListener = function(a, f) {
4186
+ a = String(a);
4187
+ var p = this._listeners, c = p[a];
4188
+ c == null && (c = [], p[a] = c);
4189
+ for (var v = !1, E = 0; E < c.length; E += 1)
4190
+ c[E] === f && (v = !0);
4191
+ v || c.push(f);
4192
+ }, X.prototype.removeEventListener = function(a, f) {
4193
+ a = String(a);
4194
+ var p = this._listeners, c = p[a];
4195
+ if (c != null) {
4196
+ for (var v = [], E = 0; E < c.length; E += 1)
4197
+ c[E] !== f && v.push(c[E]);
4198
+ v.length === 0 ? delete p[a] : p[a] = v;
4176
4199
  }
4177
4200
  };
4178
- function J(c) {
4179
- this.type = c, this.target = void 0;
4201
+ function b(a) {
4202
+ this.type = a, this.target = void 0;
4180
4203
  }
4181
- function rt(c, o) {
4182
- J.call(this, c), this.data = o.data, this.lastEventId = o.lastEventId;
4204
+ function xe(a, f) {
4205
+ b.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
4183
4206
  }
4184
- rt.prototype = Object.create(J.prototype);
4185
- function ge(c, o) {
4186
- J.call(this, c), this.status = o.status, this.statusText = o.statusText, this.headers = o.headers;
4207
+ xe.prototype = Object.create(b.prototype);
4208
+ function We(a, f) {
4209
+ b.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
4187
4210
  }
4188
- ge.prototype = Object.create(J.prototype);
4189
- function Xe(c, o) {
4190
- J.call(this, c), this.error = o.error;
4211
+ We.prototype = Object.create(b.prototype);
4212
+ function _e(a, f) {
4213
+ b.call(this, a), this.error = f.error;
4191
4214
  }
4192
- Xe.prototype = Object.create(J.prototype);
4193
- var ze = -1, de = 0, Be = 1, be = 2, He = -1, pe = 0, Se = 1, We = 2, _t = 3, it = /^text\/event\-stream(;.*)?$/i, Bt = 1e3, Tt = 18e6, Oe = function(c, o) {
4194
- var p = c == null ? o : parseInt(c, 10);
4195
- return p !== p && (p = o), Ze(p);
4196
- }, Ze = function(c) {
4197
- return Math.min(Math.max(c, Bt), Tt);
4198
- }, Te = function(c, o, p) {
4215
+ _e.prototype = Object.create(b.prototype);
4216
+ var Oe = -1, pe = 0, Be = 1, Se = 2, Ae = -1, le = 0, Ze = 1, Re = 2, it = 3, Bt = /^text\/event\-stream(;.*)?$/i, ot = 1e3, Tt = 18e6, qe = function(a, f) {
4217
+ var p = a == null ? f : parseInt(a, 10);
4218
+ return p !== p && (p = f), Le(p);
4219
+ }, Le = function(a) {
4220
+ return Math.min(Math.max(a, ot), Tt);
4221
+ }, Te = function(a, f, p) {
4199
4222
  try {
4200
- typeof o == "function" && o.call(c, p);
4201
- } catch (f) {
4202
- g(f);
4223
+ typeof f == "function" && f.call(a, p);
4224
+ } catch (c) {
4225
+ F(c);
4203
4226
  }
4204
4227
  };
4205
- function re(c, o) {
4206
- V.call(this), o = o || {}, 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, At(this, c, o);
4228
+ function re(a, f) {
4229
+ X.call(this), f = f || {}, 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, At(this, a, f);
4207
4230
  }
4208
4231
  function wt() {
4209
- return a != null && "withCredentials" in a.prototype || l == null ? new a() : new l();
4232
+ return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
4210
4233
  }
4211
- var St = b != null && y != null && "body" in y.prototype;
4212
- function At(c, o, p) {
4213
- o = String(o);
4214
- var f = !!p.withCredentials, m = p.lastEventIdQueryParameterName || "lastEventId", v = Ze(1e3), T = Oe(p.heartbeatTimeout, 45e3), E = "", w = v, N = !1, F = 0, S = p.headers || {}, k = p.Transport, ye = St && k == null ? void 0 : new j(k != null ? new k() : wt()), qe = k != null && typeof k != "string" ? new k() : ye == null ? new D() : new W(), ie = void 0, Y = 0, le = ze, Re = "", ot = "", ve = "", st = "", K = pe, Ct = 0, Ae = 0, nr = function(Z, z, ae, oe) {
4215
- if (le === de)
4216
- if (Z === 200 && ae != null && it.test(ae)) {
4217
- le = Be, N = Date.now(), w = v, c.readyState = Be;
4218
- var ee = new ge("open", {
4234
+ var St = m != null && g != null && "body" in g.prototype;
4235
+ function At(a, f, p) {
4236
+ f = String(f);
4237
+ var c = !!p.withCredentials, v = p.lastEventIdQueryParameterName || "lastEventId", E = Le(1e3), y = qe(p.heartbeatTimeout, 45e3), L = "", A = E, P = !1, G = 0, w = p.headers || {}, V = p.Transport, ge = St && V == null ? void 0 : new U(V != null ? new V() : wt()), Qe = V != null && typeof V != "string" ? new V() : ge == null ? new R() : new Y(), ie = void 0, K = 0, ue = Oe, Me = "", st = "", be = "", lt = "", ee = le, Ct = 0, Ce = 0, nr = function(Z, z, oe, ae) {
4238
+ if (ue === pe)
4239
+ if (Z === 200 && oe != null && Bt.test(oe)) {
4240
+ ue = Be, P = Date.now(), A = E, a.readyState = Be;
4241
+ var te = new We("open", {
4219
4242
  status: Z,
4220
4243
  statusText: z,
4221
- headers: oe
4244
+ headers: ae
4222
4245
  });
4223
- c.dispatchEvent(ee), Te(c, c.onopen, ee);
4246
+ a.dispatchEvent(te), Te(a, a.onopen, te);
4224
4247
  } else {
4225
- var q = "";
4226
- Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : q = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Ht();
4227
- var ee = new ge("error", {
4248
+ var Q = "";
4249
+ Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Ht();
4250
+ var te = new We("error", {
4228
4251
  status: Z,
4229
4252
  statusText: z,
4230
- headers: oe
4253
+ headers: ae
4231
4254
  });
4232
- c.dispatchEvent(ee), Te(c, c.onerror, ee), console.error(q);
4255
+ a.dispatchEvent(te), Te(a, a.onerror, te), console.error(Q);
4233
4256
  }
4234
4257
  }, rr = function(Z) {
4235
- if (le === Be) {
4236
- for (var z = -1, ae = 0; ae < Z.length; ae += 1) {
4237
- var oe = Z.charCodeAt(ae);
4238
- (oe === 10 || oe === 13) && (z = ae);
4258
+ if (ue === Be) {
4259
+ for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
4260
+ var ae = Z.charCodeAt(oe);
4261
+ (ae === 10 || ae === 13) && (z = oe);
4239
4262
  }
4240
- var ee = (z !== -1 ? st : "") + Z.slice(0, z + 1);
4241
- st = (z === -1 ? st : "") + Z.slice(z + 1), Z !== "" && (N = Date.now(), F += Z.length);
4242
- for (var q = 0; q < ee.length; q += 1) {
4243
- var oe = ee.charCodeAt(q);
4244
- if (K === He && oe === 10)
4245
- K = pe;
4246
- else if (K === He && (K = pe), oe === 13 || oe === 10) {
4247
- if (K !== pe) {
4248
- K === Se && (Ae = q + 1);
4249
- var Ee = ee.slice(Ct, Ae - 1), xe = ee.slice(Ae + (Ae < q && ee.charCodeAt(Ae) === 32 ? 1 : 0), q);
4250
- Ee === "data" ? (Re += `
4251
- `, Re += xe) : Ee === "id" ? ot = xe : Ee === "event" ? ve = xe : Ee === "retry" ? (v = Oe(xe, v), w = v) : Ee === "heartbeatTimeout" && (T = Oe(xe, T), Y !== 0 && (i(Y), Y = r(function() {
4252
- Qe();
4253
- }, T)));
4263
+ var te = (z !== -1 ? lt : "") + Z.slice(0, z + 1);
4264
+ lt = (z === -1 ? lt : "") + Z.slice(z + 1), Z !== "" && (P = Date.now(), G += Z.length);
4265
+ for (var Q = 0; Q < te.length; Q += 1) {
4266
+ var ae = te.charCodeAt(Q);
4267
+ if (ee === Ae && ae === 10)
4268
+ ee = le;
4269
+ else if (ee === Ae && (ee = le), ae === 13 || ae === 10) {
4270
+ if (ee !== le) {
4271
+ ee === Ze && (Ce = Q + 1);
4272
+ var ye = te.slice(Ct, Ce - 1), ve = te.slice(Ce + (Ce < Q && te.charCodeAt(Ce) === 32 ? 1 : 0), Q);
4273
+ ye === "data" ? (Me += `
4274
+ `, Me += ve) : ye === "id" ? st = ve : ye === "event" ? be = ve : ye === "retry" ? (E = qe(ve, E), A = E) : ye === "heartbeatTimeout" && (y = qe(ve, y), K !== 0 && (i(K), K = r(function() {
4275
+ Je();
4276
+ }, y)));
4254
4277
  }
4255
- if (K === pe) {
4256
- if (Re !== "") {
4257
- E = ot, ve === "" && (ve = "message");
4258
- var Le = new rt(ve, {
4259
- data: Re.slice(1),
4260
- lastEventId: ot
4278
+ if (ee === le) {
4279
+ if (Me !== "") {
4280
+ L = st, be === "" && (be = "message");
4281
+ var Ne = new xe(be, {
4282
+ data: Me.slice(1),
4283
+ lastEventId: st
4261
4284
  });
4262
- if (c.dispatchEvent(Le), ve === "open" ? Te(c, c.onopen, Le) : ve === "message" ? Te(c, c.onmessage, Le) : ve === "error" && Te(c, c.onerror, Le), le === be)
4285
+ if (a.dispatchEvent(Ne), be === "open" ? Te(a, a.onopen, Ne) : be === "message" ? Te(a, a.onmessage, Ne) : be === "error" && Te(a, a.onerror, Ne), ue === Se)
4263
4286
  return;
4264
4287
  }
4265
- Re = "", ve = "";
4288
+ Me = "", be = "";
4266
4289
  }
4267
- K = oe === 13 ? He : pe;
4290
+ ee = ae === 13 ? Ae : le;
4268
4291
  } else
4269
- K === pe && (Ct = q, K = Se), K === Se ? oe === 58 && (Ae = q + 1, K = We) : K === We && (K = _t);
4292
+ ee === le && (Ct = Q, ee = Ze), ee === Ze ? ae === 58 && (Ce = Q + 1, ee = Re) : ee === Re && (ee = it);
4270
4293
  }
4271
4294
  }
4272
4295
  }, en = function(Z) {
4273
- if (le === Be || le === de) {
4274
- le = ze, Y !== 0 && (i(Y), Y = 0), Y = r(function() {
4275
- Qe();
4276
- }, w), w = Ze(Math.min(v * 16, w * 2)), c.readyState = de;
4277
- var z = new Xe("error", { error: Z });
4278
- c.dispatchEvent(z), Te(c, c.onerror, z), Z != null && console.error(Z);
4296
+ if (ue === Be || ue === pe) {
4297
+ ue = Oe, K !== 0 && (i(K), K = 0), K = r(function() {
4298
+ Je();
4299
+ }, A), A = Le(Math.min(E * 16, A * 2)), a.readyState = pe;
4300
+ var z = new _e("error", { error: Z });
4301
+ a.dispatchEvent(z), Te(a, a.onerror, z), Z != null && console.error(Z);
4279
4302
  }
4280
4303
  }, Ht = function() {
4281
- le = be, ie != null && (ie.abort(), ie = void 0), Y !== 0 && (i(Y), Y = 0), c.readyState = be;
4282
- }, Qe = function() {
4283
- if (Y = 0, le !== ze) {
4284
- if (!N && ie != null)
4285
- en(new Error("No activity within " + T + " milliseconds. " + (le === de ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4304
+ ue = Se, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Se;
4305
+ }, Je = function() {
4306
+ if (K = 0, ue !== Oe) {
4307
+ if (!P && ie != null)
4308
+ en(new Error("No activity within " + y + " milliseconds. " + (ue === pe ? "No response received." : G + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4286
4309
  else {
4287
- var Z = Math.max((N || Date.now()) + T - Date.now(), 1);
4288
- N = !1, Y = r(function() {
4289
- Qe();
4310
+ var Z = Math.max((P || Date.now()) + y - Date.now(), 1);
4311
+ P = !1, K = r(function() {
4312
+ Je();
4290
4313
  }, Z);
4291
4314
  }
4292
4315
  return;
4293
4316
  }
4294
- N = !1, F = 0, Y = r(function() {
4295
- Qe();
4296
- }, T), le = de, Re = "", ve = "", ot = E, st = "", Ct = 0, Ae = 0, K = pe;
4297
- var z = o;
4298
- if (o.slice(0, 5) !== "data:" && o.slice(0, 5) !== "blob:" && E !== "") {
4299
- var ae = o.indexOf("?");
4300
- z = ae === -1 ? o : o.slice(0, ae + 1) + o.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Le) {
4301
- return Le === m ? "" : xe;
4302
- }), z += (o.indexOf("?") === -1 ? "?" : "&") + m + "=" + encodeURIComponent(E);
4317
+ P = !1, G = 0, K = r(function() {
4318
+ Je();
4319
+ }, y), ue = pe, Me = "", be = "", st = L, lt = "", Ct = 0, Ce = 0, ee = le;
4320
+ var z = f;
4321
+ if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && L !== "") {
4322
+ var oe = f.indexOf("?");
4323
+ z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Ne) {
4324
+ return Ne === v ? "" : ve;
4325
+ }), z += (f.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(L);
4303
4326
  }
4304
- var oe = c.withCredentials, ee = {};
4305
- ee.Accept = "text/event-stream";
4306
- var q = c.headers;
4307
- if (q != null)
4308
- for (var Ee in q)
4309
- Object.prototype.hasOwnProperty.call(q, Ee) && (ee[Ee] = q[Ee]);
4327
+ var ae = a.withCredentials, te = {};
4328
+ te.Accept = "text/event-stream";
4329
+ var Q = a.headers;
4330
+ if (Q != null)
4331
+ for (var ye in Q)
4332
+ Object.prototype.hasOwnProperty.call(Q, ye) && (te[ye] = Q[ye]);
4310
4333
  try {
4311
- ie = qe.open(ye, nr, rr, en, z, oe, ee);
4312
- } catch (xe) {
4313
- throw Ht(), xe;
4334
+ ie = Qe.open(ge, nr, rr, en, z, ae, te);
4335
+ } catch (ve) {
4336
+ throw Ht(), ve;
4314
4337
  }
4315
4338
  };
4316
- c.url = o, c.readyState = de, c.withCredentials = f, c.headers = S, c._close = Ht, Qe();
4339
+ a.url = f, a.readyState = pe, a.withCredentials = c, a.headers = w, a._close = Ht, Je();
4317
4340
  }
4318
- re.prototype = Object.create(V.prototype), re.prototype.CONNECTING = de, re.prototype.OPEN = Be, re.prototype.CLOSED = be, re.prototype.close = function() {
4341
+ re.prototype = Object.create(X.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Be, re.prototype.CLOSED = Se, re.prototype.close = function() {
4319
4342
  this._close();
4320
- }, re.CONNECTING = de, re.OPEN = Be, re.CLOSED = be, re.prototype.withCredentials = void 0;
4343
+ }, re.CONNECTING = pe, re.OPEN = Be, re.CLOSED = Se, re.prototype.withCredentials = void 0;
4321
4344
  var at = h;
4322
- a != null && (h == null || !("withCredentials" in h.prototype)) && (at = re), function(c) {
4345
+ o != null && (h == null || !("withCredentials" in h.prototype)) && (at = re), function(a) {
4323
4346
  {
4324
- var o = c(t);
4325
- o !== void 0 && (e.exports = o);
4347
+ var f = a(t);
4348
+ f !== void 0 && (e.exports = f);
4326
4349
  }
4327
- }(function(c) {
4328
- c.EventSourcePolyfill = re, c.NativeEventSource = h, c.EventSource = at;
4350
+ }(function(a) {
4351
+ a.EventSourcePolyfill = re, a.NativeEventSource = h, a.EventSource = at;
4329
4352
  });
4330
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Cr : globalThis);
4353
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Rr : globalThis);
4331
4354
  })(qt, qt.exports);
4332
- var ba = qt.exports;
4355
+ var xo = qt.exports;
4333
4356
  /*!
4334
4357
  * currency.js - v2.0.4
4335
4358
  * http://scurker.github.io/currency.js
@@ -4337,7 +4360,7 @@ var ba = qt.exports;
4337
4360
  * Copyright (c) 2021 Jason Wilson
4338
4361
  * Released under MIT license
4339
4362
  */
4340
- var ya = {
4363
+ var _o = {
4341
4364
  symbol: "$",
4342
4365
  separator: ",",
4343
4366
  decimal: ".",
@@ -4345,43 +4368,43 @@ var ya = {
4345
4368
  precision: 2,
4346
4369
  pattern: "!#",
4347
4370
  negativePattern: "-!#",
4348
- format: _a,
4371
+ format: So,
4349
4372
  fromCents: !1
4350
4373
  }, tr = function(t) {
4351
4374
  return Math.round(t);
4352
4375
  }, Kt = function(t) {
4353
4376
  return Math.pow(10, t);
4354
- }, va = function(t, n) {
4377
+ }, Bo = function(t, n) {
4355
4378
  return tr(t / n) * n;
4356
- }, Ea = /(\d)(?=(\d{3})+\b)/g, xa = /(\d)(?=(\d\d)+\d\b)/g;
4357
- function ue(e, t) {
4379
+ }, To = /(\d)(?=(\d{3})+\b)/g, wo = /(\d)(?=(\d\d)+\d\b)/g;
4380
+ function ce(e, t) {
4358
4381
  var n = this;
4359
- if (!(n instanceof ue))
4360
- return new ue(e, t);
4361
- var r = Object.assign({}, ya, t), i = Kt(r.precision), a = ft(e, r);
4362
- n.intValue = a, n.value = a / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = xa : r.groups = Ea, this.s = r, this.p = i;
4382
+ if (!(n instanceof ce))
4383
+ return new ce(e, t);
4384
+ var r = Object.assign({}, _o, t), i = Kt(r.precision), o = dt(e, r);
4385
+ n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = wo : r.groups = To, this.s = r, this.p = i;
4363
4386
  }
4364
- function ft(e, t) {
4365
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, a = t.errorOnInvalid, l = t.precision, s = t.fromCents, h = Kt(l), u = typeof e == "number", d = e instanceof ue;
4387
+ function dt(e, t) {
4388
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, h = Kt(l), u = typeof e == "number", d = e instanceof ce;
4366
4389
  if (d && s)
4367
4390
  return e.intValue;
4368
4391
  if (u || d)
4369
4392
  r = d ? e.value : e;
4370
4393
  else if (typeof e == "string") {
4371
- var b = new RegExp("[^-\\d" + i + "]", "g"), y = new RegExp("\\" + i, "g");
4372
- r = e.replace(/\((.*)\)/, "-$1").replace(b, "").replace(y, "."), r = r || 0;
4394
+ var m = new RegExp("[^-\\d" + i + "]", "g"), g = new RegExp("\\" + i, "g");
4395
+ r = e.replace(/\((.*)\)/, "-$1").replace(m, "").replace(g, "."), r = r || 0;
4373
4396
  } else {
4374
- if (a)
4397
+ if (o)
4375
4398
  throw Error("Invalid Input");
4376
4399
  r = 0;
4377
4400
  }
4378
4401
  return s || (r *= h, r = r.toFixed(4)), n ? tr(r) : r;
4379
4402
  }
4380
- function _a(e, t) {
4381
- var n = t.pattern, r = t.negativePattern, i = t.symbol, a = t.separator, l = t.decimal, s = t.groups, h = ("" + e).replace(/^-/, "").split("."), u = h[0], d = h[1];
4382
- return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + a) + (d ? l + d : ""));
4403
+ function So(e, t) {
4404
+ var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, h = ("" + e).replace(/^-/, "").split("."), u = h[0], d = h[1];
4405
+ return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
4383
4406
  }
4384
- ue.prototype = {
4407
+ ce.prototype = {
4385
4408
  /**
4386
4409
  * Adds values together.
4387
4410
  * @param {number} number
@@ -4389,7 +4412,7 @@ ue.prototype = {
4389
4412
  */
4390
4413
  add: function(t) {
4391
4414
  var n = this.intValue, r = this.s, i = this.p;
4392
- return ue((n += ft(t, r)) / (r.fromCents ? 1 : i), r);
4415
+ return ce((n += dt(t, r)) / (r.fromCents ? 1 : i), r);
4393
4416
  },
4394
4417
  /**
4395
4418
  * Subtracts value.
@@ -4398,7 +4421,7 @@ ue.prototype = {
4398
4421
  */
4399
4422
  subtract: function(t) {
4400
4423
  var n = this.intValue, r = this.s, i = this.p;
4401
- return ue((n -= ft(t, r)) / (r.fromCents ? 1 : i), r);
4424
+ return ce((n -= dt(t, r)) / (r.fromCents ? 1 : i), r);
4402
4425
  },
4403
4426
  /**
4404
4427
  * Multiplies values.
@@ -4407,7 +4430,7 @@ ue.prototype = {
4407
4430
  */
4408
4431
  multiply: function(t) {
4409
4432
  var n = this.intValue, r = this.s;
4410
- return ue((n *= t) / (r.fromCents ? 1 : Kt(r.precision)), r);
4433
+ return ce((n *= t) / (r.fromCents ? 1 : Kt(r.precision)), r);
4411
4434
  },
4412
4435
  /**
4413
4436
  * Divides value.
@@ -4416,7 +4439,7 @@ ue.prototype = {
4416
4439
  */
4417
4440
  divide: function(t) {
4418
4441
  var n = this.intValue, r = this.s;
4419
- return ue(n /= ft(t, r, !1), r);
4442
+ return ce(n /= dt(t, r, !1), r);
4420
4443
  },
4421
4444
  /**
4422
4445
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -4425,11 +4448,11 @@ ue.prototype = {
4425
4448
  * @returns {array}
4426
4449
  */
4427
4450
  distribute: function(t) {
4428
- for (var n = this.intValue, r = this.p, i = this.s, a = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - l * t), h = i.fromCents ? 1 : r; t !== 0; t--) {
4429
- var u = ue(l / h, i);
4430
- s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / h)), a.push(u);
4451
+ for (var n = this.intValue, r = this.p, i = this.s, o = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - l * t), h = i.fromCents ? 1 : r; t !== 0; t--) {
4452
+ var u = ce(l / h, i);
4453
+ s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / h)), o.push(u);
4431
4454
  }
4432
- return a;
4455
+ return o;
4433
4456
  },
4434
4457
  /**
4435
4458
  * Returns the dollar value.
@@ -4461,7 +4484,7 @@ ue.prototype = {
4461
4484
  */
4462
4485
  toString: function() {
4463
4486
  var t = this.intValue, n = this.p, r = this.s;
4464
- return va(t / n, r.increment).toFixed(r.precision);
4487
+ return Bo(t / n, r.increment).toFixed(r.precision);
4465
4488
  },
4466
4489
  /**
4467
4490
  * Value for JSON serialization.
@@ -4471,8 +4494,8 @@ ue.prototype = {
4471
4494
  return this.value;
4472
4495
  }
4473
4496
  };
4474
- function Ba(e) {
4475
- or(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4497
+ function Ao(e) {
4498
+ ar(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4476
4499
  }
4477
4500
  function En(e, t, n) {
4478
4501
  const r = e.slice();
@@ -4482,7 +4505,7 @@ function xn(e, t, n) {
4482
4505
  const r = e.slice();
4483
4506
  return r[53] = t[n], r;
4484
4507
  }
4485
- function Ta(e) {
4508
+ function Co(e) {
4486
4509
  let t, n, r = (
4487
4510
  /*balances*/
4488
4511
  (e[1].Total ? (
@@ -4492,147 +4515,147 @@ function Ta(e) {
4492
4515
  e[1].Total[0].amount
4493
4516
  )
4494
4517
  ) : "0") + ""
4495
- ), i, a, l, s, h, u, d, b, y, B, x, H, _ = (
4518
+ ), i, o, l, s, h, u, d, m, g, _, B, T, x = (
4496
4519
  /*showBalance*/
4497
4520
  e[4] && _n(e)
4498
4521
  );
4499
4522
  return {
4500
4523
  c() {
4501
- t = $("div"), n = $("p"), i = ce(r), a = fe(), l = ce(
4524
+ t = j("div"), n = j("p"), i = he(r), o = de(), l = he(
4502
4525
  /*currency*/
4503
4526
  e[5]
4504
- ), s = fe(), h = $("span"), u = nn("svg"), d = nn("path"), y = fe(), _ && _.c(), B = ur(), M(d, "id", "arrow"), M(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(d, "transform", "translate(-274.511 -441.088)"), M(d, "fill", "#d1d1d1"), M(u, "xmlns", "http://www.w3.org/2000/svg"), M(u, "width", "14"), M(u, "height", "6.835"), M(u, "viewBox", "0 0 14 6.835"), M(h, "class", b = /*modalOpened*/
4505
- e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
4527
+ ), s = de(), h = j("span"), u = nn("svg"), d = nn("path"), g = de(), x && x.c(), _ = ur(), N(d, "id", "arrow"), N(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), N(d, "transform", "translate(-274.511 -441.088)"), N(d, "fill", "#d1d1d1"), N(u, "xmlns", "http://www.w3.org/2000/svg"), N(u, "width", "14"), N(u, "height", "6.835"), N(u, "viewBox", "0 0 14 6.835"), N(h, "class", m = /*modalOpened*/
4528
+ e[3] ? "TriangleActive" : "TriangleInactive"), N(t, "class", "BalanceValue");
4506
4529
  },
4507
- m(A, P) {
4508
- me(A, t, P), C(t, n), C(n, i), C(n, a), C(n, l), C(t, s), C(t, h), C(h, u), C(u, d), me(A, y, P), _ && _.m(A, P), me(A, B, P), x || (H = dt(
4530
+ m(S, D) {
4531
+ me(S, t, D), C(t, n), C(n, i), C(n, o), C(n, l), C(t, s), C(t, h), C(h, u), C(u, d), me(S, g, D), x && x.m(S, D), me(S, _, D), B || (T = pt(
4509
4532
  t,
4510
4533
  "click",
4511
4534
  /*click_handler*/
4512
- e[24]
4513
- ), x = !0);
4535
+ e[25]
4536
+ ), B = !0);
4514
4537
  },
4515
- p(A, P) {
4516
- P[0] & /*balances*/
4538
+ p(S, D) {
4539
+ D[0] & /*balances*/
4517
4540
  2 && r !== (r = /*balances*/
4518
- (A[1].Total ? (
4541
+ (S[1].Total ? (
4519
4542
  /*formatBalance*/
4520
- A[8](
4543
+ S[8](
4521
4544
  /*balances*/
4522
- A[1].Total[0].amount
4545
+ S[1].Total[0].amount
4523
4546
  )
4524
- ) : "0") + "") && _e(i, r), P[0] & /*currency*/
4525
- 32 && _e(
4547
+ ) : "0") + "") && Ee(i, r), D[0] & /*currency*/
4548
+ 32 && Ee(
4526
4549
  l,
4527
4550
  /*currency*/
4528
- A[5]
4529
- ), P[0] & /*modalOpened*/
4530
- 8 && b !== (b = /*modalOpened*/
4531
- A[3] ? "TriangleActive" : "TriangleInactive") && M(h, "class", b), /*showBalance*/
4532
- A[4] ? _ ? _.p(A, P) : (_ = _n(A), _.c(), _.m(B.parentNode, B)) : _ && (_.d(1), _ = null);
4551
+ S[5]
4552
+ ), D[0] & /*modalOpened*/
4553
+ 8 && m !== (m = /*modalOpened*/
4554
+ S[3] ? "TriangleActive" : "TriangleInactive") && N(h, "class", m), /*showBalance*/
4555
+ S[4] ? x ? x.p(S, D) : (x = _n(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
4533
4556
  },
4534
- d(A) {
4535
- A && (he(t), he(y), he(B)), _ && _.d(A), x = !1, H();
4557
+ d(S) {
4558
+ S && (fe(t), fe(g), fe(_)), x && x.d(S), B = !1, T();
4536
4559
  }
4537
4560
  };
4538
4561
  }
4539
- function wa(e) {
4562
+ function Ho(e) {
4540
4563
  let t, n = (
4541
4564
  /*$_*/
4542
4565
  e[6]("Loading") + ""
4543
4566
  ), r;
4544
4567
  return {
4545
4568
  c() {
4546
- t = $("p"), r = ce(n), M(t, "class", "Loading");
4569
+ t = j("p"), r = he(n), N(t, "class", "Loading");
4547
4570
  },
4548
- m(i, a) {
4549
- me(i, t, a), C(t, r);
4571
+ m(i, o) {
4572
+ me(i, t, o), C(t, r);
4550
4573
  },
4551
- p(i, a) {
4552
- a[0] & /*$_*/
4574
+ p(i, o) {
4575
+ o[0] & /*$_*/
4553
4576
  64 && n !== (n = /*$_*/
4554
- i[6]("Loading") + "") && _e(r, n);
4577
+ i[6]("Loading") + "") && Ee(r, n);
4555
4578
  },
4556
4579
  d(i) {
4557
- i && he(t);
4580
+ i && fe(t);
4558
4581
  }
4559
4582
  };
4560
4583
  }
4561
4584
  function _n(e) {
4562
- let t, n, r, i, a, l, s, h, u = (
4585
+ let t, n, r, i, o, l, s, h, u = (
4563
4586
  /*$_*/
4564
4587
  e[6]("Title") + ""
4565
- ), d, b, y, B, x, H, _ = (
4588
+ ), d, m, g, _, B, T, x = (
4566
4589
  /*$_*/
4567
4590
  e[6]("DepositButton") + ""
4568
- ), A, P, O, j, X, ne, W = pt(Object.keys(
4591
+ ), S, D, H, U, W, q, Y = mt(Object.keys(
4569
4592
  /*balances*/
4570
4593
  e[1]
4571
- )), U = [];
4572
- for (let D = 0; D < W.length; D += 1)
4573
- U[D] = Tn(En(e, W, D));
4594
+ )), $ = [];
4595
+ for (let R = 0; R < Y.length; R += 1)
4596
+ $[R] = Tn(En(e, Y, R));
4574
4597
  return {
4575
4598
  c() {
4576
- t = $("div"), n = $("div"), i = fe(), a = $("div"), l = $("div"), s = $("div"), h = $("p"), d = ce(u), b = fe(), y = $("div");
4577
- for (let D = 0; D < U.length; D += 1)
4578
- U[D].c();
4579
- B = fe(), x = $("div"), H = $("button"), A = ce(_), M(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4580
- (e[3] ? "Open" : "")), M(h, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(y, "class", "BalanceModalBody"), M(H, "class", "BalanceModalAction"), M(x, "class", "BalanceModalFooter"), M(l, "class", P = "ModalContent " + /*modalOpened*/
4581
- (e[3] ? "Open" : "")), M(a, "class", O = "BalanceModal " + /*modalOpened*/
4582
- (e[3] ? "Open" : "")), M(t, "class", j = "BalanceModalWrapper " + /*modalOpened*/
4599
+ t = j("div"), n = j("div"), i = de(), o = j("div"), l = j("div"), s = j("div"), h = j("p"), d = he(u), m = de(), g = j("div");
4600
+ for (let R = 0; R < $.length; R += 1)
4601
+ $[R].c();
4602
+ _ = de(), B = j("div"), T = j("button"), S = he(x), N(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4603
+ (e[3] ? "Open" : "")), N(h, "class", "BalanceModalTitle"), N(s, "class", "BalanceModalHeader"), N(g, "class", "BalanceModalBody"), N(T, "class", "BalanceModalAction"), N(B, "class", "BalanceModalFooter"), N(l, "class", D = "ModalContent " + /*modalOpened*/
4604
+ (e[3] ? "Open" : "")), N(o, "class", H = "BalanceModal " + /*modalOpened*/
4605
+ (e[3] ? "Open" : "")), N(t, "class", U = "BalanceModalWrapper " + /*modalOpened*/
4583
4606
  (e[3] ? "Open" : ""));
4584
4607
  },
4585
- m(D, V) {
4586
- me(D, t, V), C(t, n), C(t, i), C(t, a), C(a, l), C(l, s), C(s, h), C(h, d), C(l, b), C(l, y);
4587
- for (let g = 0; g < U.length; g += 1)
4588
- U[g] && U[g].m(y, null);
4589
- C(l, B), C(l, x), C(x, H), C(H, A), X || (ne = [
4590
- dt(
4608
+ m(R, X) {
4609
+ me(R, t, X), C(t, n), C(t, i), C(t, o), C(o, l), C(l, s), C(s, h), C(h, d), C(l, m), C(l, g);
4610
+ for (let F = 0; F < $.length; F += 1)
4611
+ $[F] && $[F].m(g, null);
4612
+ C(l, _), C(l, B), C(B, T), C(T, S), W || (q = [
4613
+ pt(
4591
4614
  n,
4592
4615
  "click",
4593
4616
  /*click_handler_1*/
4594
- e[25]
4617
+ e[26]
4595
4618
  ),
4596
- dt(
4597
- H,
4619
+ pt(
4620
+ T,
4598
4621
  "click",
4599
4622
  /*click_handler_2*/
4600
- e[26]
4623
+ e[27]
4601
4624
  )
4602
- ], X = !0);
4625
+ ], W = !0);
4603
4626
  },
4604
- p(D, V) {
4605
- if (V[0] & /*modalOpened*/
4627
+ p(R, X) {
4628
+ if (X[0] & /*modalOpened*/
4606
4629
  8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
4607
- (D[3] ? "Open" : "")) && M(n, "class", r), V[0] & /*$_*/
4630
+ (R[3] ? "Open" : "")) && N(n, "class", r), X[0] & /*$_*/
4608
4631
  64 && u !== (u = /*$_*/
4609
- D[6]("Title") + "") && _e(d, u), V[0] & /*balances, currency, formatBalance, $_*/
4632
+ R[6]("Title") + "") && Ee(d, u), X[0] & /*balances, currency, formatBalance, $_*/
4610
4633
  354) {
4611
- W = pt(Object.keys(
4634
+ Y = mt(Object.keys(
4612
4635
  /*balances*/
4613
- D[1]
4636
+ R[1]
4614
4637
  ));
4615
- let g;
4616
- for (g = 0; g < W.length; g += 1) {
4617
- const J = En(D, W, g);
4618
- U[g] ? U[g].p(J, V) : (U[g] = Tn(J), U[g].c(), U[g].m(y, null));
4638
+ let F;
4639
+ for (F = 0; F < Y.length; F += 1) {
4640
+ const b = En(R, Y, F);
4641
+ $[F] ? $[F].p(b, X) : ($[F] = Tn(b), $[F].c(), $[F].m(g, null));
4619
4642
  }
4620
- for (; g < U.length; g += 1)
4621
- U[g].d(1);
4622
- U.length = W.length;
4643
+ for (; F < $.length; F += 1)
4644
+ $[F].d(1);
4645
+ $.length = Y.length;
4623
4646
  }
4624
- V[0] & /*$_*/
4625
- 64 && _ !== (_ = /*$_*/
4626
- D[6]("DepositButton") + "") && _e(A, _), V[0] & /*modalOpened*/
4627
- 8 && P !== (P = "ModalContent " + /*modalOpened*/
4628
- (D[3] ? "Open" : "")) && M(l, "class", P), V[0] & /*modalOpened*/
4629
- 8 && O !== (O = "BalanceModal " + /*modalOpened*/
4630
- (D[3] ? "Open" : "")) && M(a, "class", O), V[0] & /*modalOpened*/
4631
- 8 && j !== (j = "BalanceModalWrapper " + /*modalOpened*/
4632
- (D[3] ? "Open" : "")) && M(t, "class", j);
4647
+ X[0] & /*$_*/
4648
+ 64 && x !== (x = /*$_*/
4649
+ R[6]("DepositButton") + "") && Ee(S, x), X[0] & /*modalOpened*/
4650
+ 8 && D !== (D = "ModalContent " + /*modalOpened*/
4651
+ (R[3] ? "Open" : "")) && N(l, "class", D), X[0] & /*modalOpened*/
4652
+ 8 && H !== (H = "BalanceModal " + /*modalOpened*/
4653
+ (R[3] ? "Open" : "")) && N(o, "class", H), X[0] & /*modalOpened*/
4654
+ 8 && U !== (U = "BalanceModalWrapper " + /*modalOpened*/
4655
+ (R[3] ? "Open" : "")) && N(t, "class", U);
4633
4656
  },
4634
- d(D) {
4635
- D && he(t), Hn(U, D), X = !1, $e(ne);
4657
+ d(R) {
4658
+ R && fe(t), Hn($, R), W = !1, je(q);
4636
4659
  }
4637
4660
  };
4638
4661
  }
@@ -4643,7 +4666,7 @@ function Bn(e) {
4643
4666
  /*k*/
4644
4667
  e[50]
4645
4668
  ) + ""
4646
- ), i, a, l = (
4669
+ ), i, o, l = (
4647
4670
  /*b*/
4648
4671
  (e[53].productType ? (
4649
4672
  /*$_*/
@@ -4652,7 +4675,7 @@ function Bn(e) {
4652
4675
  e[53].productType
4653
4676
  )
4654
4677
  ) : "") + ""
4655
- ), s, h, u, d, b = (
4678
+ ), s, h, u, d, m = (
4656
4679
  /*b*/
4657
4680
  (e[53].amount ? (
4658
4681
  /*formatBalance*/
@@ -4661,87 +4684,87 @@ function Bn(e) {
4661
4684
  e[53].amount
4662
4685
  )
4663
4686
  ) : "0") + ""
4664
- ), y, B, x, H;
4687
+ ), g, _, B, T;
4665
4688
  return {
4666
4689
  c() {
4667
- t = $("div"), n = $("p"), i = ce(r), a = fe(), s = ce(l), h = fe(), u = $("p"), d = $("span"), y = ce(b), B = fe(), x = $("span"), H = ce(
4690
+ t = j("div"), n = j("p"), i = he(r), o = de(), s = he(l), h = de(), u = j("p"), d = j("span"), g = he(m), _ = de(), B = j("span"), T = he(
4668
4691
  /*currency*/
4669
4692
  e[5]
4670
- ), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(x, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
4693
+ ), N(n, "class", "BalanceModalText"), N(d, "class", "BalanceModalAmount"), N(B, "class", "BalanceModalCurrency"), N(u, "class", "BalanceModalValue"), N(t, "class", "BalanceModalRowLine");
4671
4694
  },
4672
- m(_, A) {
4673
- me(_, t, A), C(t, n), C(n, i), C(n, a), C(n, s), C(t, h), C(t, u), C(u, d), C(d, y), C(u, B), C(u, x), C(x, H);
4695
+ m(x, S) {
4696
+ me(x, t, S), C(t, n), C(n, i), C(n, o), C(n, s), C(t, h), C(t, u), C(u, d), C(d, g), C(u, _), C(u, B), C(B, T);
4674
4697
  },
4675
- p(_, A) {
4676
- A[0] & /*$_, balances*/
4698
+ p(x, S) {
4699
+ S[0] & /*$_, balances*/
4677
4700
  66 && r !== (r = /*$_*/
4678
- _[6](
4701
+ x[6](
4679
4702
  /*k*/
4680
- _[50]
4681
- ) + "") && _e(i, r), A[0] & /*balances, $_*/
4703
+ x[50]
4704
+ ) + "") && Ee(i, r), S[0] & /*balances, $_*/
4682
4705
  66 && l !== (l = /*b*/
4683
- (_[53].productType ? (
4706
+ (x[53].productType ? (
4684
4707
  /*$_*/
4685
- _[6](
4708
+ x[6](
4686
4709
  /*b*/
4687
- _[53].productType
4710
+ x[53].productType
4688
4711
  )
4689
- ) : "") + "") && _e(s, l), A[0] & /*balances*/
4690
- 2 && b !== (b = /*b*/
4691
- (_[53].amount ? (
4712
+ ) : "") + "") && Ee(s, l), S[0] & /*balances*/
4713
+ 2 && m !== (m = /*b*/
4714
+ (x[53].amount ? (
4692
4715
  /*formatBalance*/
4693
- _[8](
4716
+ x[8](
4694
4717
  /*b*/
4695
- _[53].amount
4718
+ x[53].amount
4696
4719
  )
4697
- ) : "0") + "") && _e(y, b), A[0] & /*currency*/
4698
- 32 && _e(
4699
- H,
4720
+ ) : "0") + "") && Ee(g, m), S[0] & /*currency*/
4721
+ 32 && Ee(
4722
+ T,
4700
4723
  /*currency*/
4701
- _[5]
4724
+ x[5]
4702
4725
  );
4703
4726
  },
4704
- d(_) {
4705
- _ && he(t);
4727
+ d(x) {
4728
+ x && fe(t);
4706
4729
  }
4707
4730
  };
4708
4731
  }
4709
4732
  function Tn(e) {
4710
- let t, n, r = pt(
4733
+ let t, n, r = mt(
4711
4734
  /*balances*/
4712
4735
  e[1][
4713
4736
  /*k*/
4714
4737
  e[50]
4715
4738
  ]
4716
4739
  ), i = [];
4717
- for (let a = 0; a < r.length; a += 1)
4718
- i[a] = Bn(xn(e, r, a));
4740
+ for (let o = 0; o < r.length; o += 1)
4741
+ i[o] = Bn(xn(e, r, o));
4719
4742
  return {
4720
4743
  c() {
4721
- t = $("div");
4722
- for (let a = 0; a < i.length; a += 1)
4723
- i[a].c();
4724
- n = fe(), M(t, "class", "BalanceModalRowBoth");
4744
+ t = j("div");
4745
+ for (let o = 0; o < i.length; o += 1)
4746
+ i[o].c();
4747
+ n = de(), N(t, "class", "BalanceModalRowBoth");
4725
4748
  },
4726
- m(a, l) {
4727
- me(a, t, l);
4749
+ m(o, l) {
4750
+ me(o, t, l);
4728
4751
  for (let s = 0; s < i.length; s += 1)
4729
4752
  i[s] && i[s].m(t, null);
4730
4753
  C(t, n);
4731
4754
  },
4732
- p(a, l) {
4755
+ p(o, l) {
4733
4756
  if (l[0] & /*currency, balances, formatBalance, $_*/
4734
4757
  354) {
4735
- r = pt(
4758
+ r = mt(
4736
4759
  /*balances*/
4737
- a[1][
4760
+ o[1][
4738
4761
  /*k*/
4739
- a[50]
4762
+ o[50]
4740
4763
  ]
4741
4764
  );
4742
4765
  let s;
4743
4766
  for (s = 0; s < r.length; s += 1) {
4744
- const h = xn(a, r, s);
4767
+ const h = xn(o, r, s);
4745
4768
  i[s] ? i[s].p(h, l) : (i[s] = Bn(h), i[s].c(), i[s].m(t, n));
4746
4769
  }
4747
4770
  for (; s < i.length; s += 1)
@@ -4749,8 +4772,8 @@ function Tn(e) {
4749
4772
  i.length = r.length;
4750
4773
  }
4751
4774
  },
4752
- d(a) {
4753
- a && he(t), Hn(i, a);
4775
+ d(o) {
4776
+ o && fe(t), Hn(i, o);
4754
4777
  }
4755
4778
  };
4756
4779
  }
@@ -4758,62 +4781,62 @@ function wn(e) {
4758
4781
  let t, n, r;
4759
4782
  return {
4760
4783
  c() {
4761
- t = $("div"), M(t, "class", "ShowBalanceModalOverlay");
4784
+ t = j("div"), N(t, "class", "ShowBalanceModalOverlay");
4762
4785
  },
4763
- m(i, a) {
4764
- me(i, t, a), n || (r = dt(
4786
+ m(i, o) {
4787
+ me(i, t, o), n || (r = pt(
4765
4788
  t,
4766
4789
  "click",
4767
4790
  /*click_handler_3*/
4768
- e[27]
4791
+ e[28]
4769
4792
  ), n = !0);
4770
4793
  },
4771
4794
  p: se,
4772
4795
  d(i) {
4773
- i && he(t), n = !1, r();
4796
+ i && fe(t), n = !1, r();
4774
4797
  }
4775
4798
  };
4776
4799
  }
4777
- function Sa(e) {
4800
+ function Oo(e) {
4778
4801
  let t, n, r;
4779
4802
  function i(h, u) {
4780
4803
  return (
4781
4804
  /*isLoading*/
4782
- h[2] ? wa : Ta
4805
+ h[2] ? Ho : Co
4783
4806
  );
4784
4807
  }
4785
- let a = i(e), l = a(e), s = (
4808
+ let o = i(e), l = o(e), s = (
4786
4809
  /*showBalance*/
4787
4810
  e[4] && wn(e)
4788
4811
  );
4789
4812
  return {
4790
4813
  c() {
4791
- t = $("div"), n = $("div"), l.c(), r = fe(), s && s.c(), M(n, "class", "ShowBalance");
4814
+ t = j("div"), n = j("div"), l.c(), r = de(), s && s.c(), N(n, "class", "ShowBalance");
4792
4815
  },
4793
4816
  m(h, u) {
4794
- me(h, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[28](t);
4817
+ me(h, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[29](t);
4795
4818
  },
4796
4819
  p(h, u) {
4797
- a === (a = i(h)) && l ? l.p(h, u) : (l.d(1), l = a(h), l && (l.c(), l.m(n, null))), /*showBalance*/
4820
+ o === (o = i(h)) && l ? l.p(h, u) : (l.d(1), l = o(h), l && (l.c(), l.m(n, null))), /*showBalance*/
4798
4821
  h[4] ? s ? s.p(h, u) : (s = wn(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4799
4822
  },
4800
4823
  i: se,
4801
4824
  o: se,
4802
4825
  d(h) {
4803
- h && he(t), l.d(), s && s.d(), e[28](null);
4826
+ h && fe(t), l.d(), s && s.d(), e[29](null);
4804
4827
  }
4805
4828
  };
4806
4829
  }
4807
- function Aa(e, t, n) {
4830
+ function Ro(e, t, n) {
4808
4831
  let r;
4809
- ar(e, ma, (o) => n(6, r = o));
4810
- let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: d = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: x = "totalCashAmount" } = t, { currencyseparator: H = "" } = t, { currencydecimal: _ = "" } = t, { currencyprecision: A = "" } = t, P, O, j, X, ne = !1, W = "", U = [], D, V = !1;
4811
- const g = {}, J = ["totalCashAmount", "totalRealAmount"], rt = () => {
4812
- fetch(d).then((o) => o.json()).then((o) => Object.keys(o).forEach((p) => yn(p, o[p]))).catch((o) => console.log(o));
4832
+ or(e, vo, (a) => n(6, r = a));
4833
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = t, { customlocaleidentifier: g = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: D = "" } = t, H, U, W, q, Y = !1, $ = "", R = [], X, F = !1;
4834
+ const b = {}, xe = ["totalCashAmount", "totalRealAmount"], We = () => {
4835
+ fetch(m).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => yn(f, a[f]))).catch((a) => console.log(a));
4813
4836
  };
4814
- Object.keys(vn).forEach((o) => yn(o, vn[o]));
4815
- const ge = (o) => {
4816
- switch (o) {
4837
+ Object.keys(vn).forEach((a) => yn(a, vn[a]));
4838
+ const _e = (a) => {
4839
+ switch (a) {
4817
4840
  case "balance":
4818
4841
  window.postMessage(
4819
4842
  {
@@ -4821,10 +4844,10 @@ function Aa(e, t, n) {
4821
4844
  status: "open"
4822
4845
  },
4823
4846
  window.location.href
4824
- ), n(4, ne = !0), setTimeout(() => n(3, j = !0), 150);
4847
+ ), n(4, Y = !0), setTimeout(() => n(3, W = !0), 150);
4825
4848
  break;
4826
4849
  case "closebalance":
4827
- n(3, j = !1), window.postMessage(
4850
+ n(3, W = !1), window.postMessage(
4828
4851
  {
4829
4852
  type: "BalanceModalStatus",
4830
4853
  status: "close"
@@ -4832,85 +4855,85 @@ function Aa(e, t, n) {
4832
4855
  window.location.href
4833
4856
  ), setTimeout(
4834
4857
  () => {
4835
- n(4, ne = !1);
4858
+ n(4, Y = !1);
4836
4859
  },
4837
4860
  150
4838
4861
  );
4839
4862
  break;
4840
4863
  }
4841
- }, Xe = () => {
4842
- if (b.includes(s))
4843
- return b;
4844
- }, ze = (o) => b ? new Intl.NumberFormat(Xe(), { useGrouping: !0 }).format(o) : H && _ ? ue(o, {
4845
- separator: H,
4846
- decimal: _,
4864
+ }, Oe = () => {
4865
+ if (g.includes(s))
4866
+ return g;
4867
+ }, pe = (a) => g ? new Intl.NumberFormat(Oe(), { useGrouping: !0 }).format(a) : x && S ? ce(a, {
4868
+ separator: x,
4869
+ decimal: S,
4847
4870
  symbol: "",
4848
- precision: parseInt(A || "2", 10)
4849
- }).format() : ue(o, {
4871
+ precision: parseInt(D || "2", 10)
4872
+ }).format() : ce(a, {
4850
4873
  separator: ".",
4851
4874
  decimal: ",",
4852
4875
  symbol: "",
4853
- precision: parseInt(A || "2", 10)
4854
- }).format(), de = async () => {
4855
- n(2, P = !0);
4856
- const o = new URL(`${l}/v1/player/${i}/account`);
4876
+ precision: parseInt(D || "2", 10)
4877
+ }).format(), Be = async () => {
4878
+ n(2, H = !0);
4879
+ const a = new URL(`${l}/v1/player/${i}/account`);
4857
4880
  try {
4858
- const p = await fetch(o, {
4881
+ const f = await fetch(a, {
4859
4882
  method: "GET",
4860
- headers: { "X-SessionID": a }
4861
- }), f = await p.json();
4862
- if (p.ok)
4863
- window.postMessage({ type: "BalancedFetched" }, window.location.href), U = f.items, n(5, W = U.find((m) => m.displayName === "Casino")?.currency), n(1, g.Total = [{ amount: f.totalAmount[W] }], g), n(
4883
+ headers: { "X-SessionID": o }
4884
+ }), p = await f.json();
4885
+ if (f.ok)
4886
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), R = p.items, n(5, $ = R.find((c) => c.displayName === "Casino")?.currency), n(1, b.Total = [{ amount: p.totalAmount[$] }], b), n(
4864
4887
  1,
4865
- g.Real = [
4888
+ b.Real = [
4866
4889
  {
4867
- amount: U.find((m) => m.displayName === "Casino")?.balanceAmount
4890
+ amount: R.find((c) => c.displayName === "Casino")?.balanceAmount
4868
4891
  }
4869
4892
  ],
4870
- g
4893
+ b
4871
4894
  ), n(
4872
4895
  1,
4873
- g.Bonus = [
4896
+ b.Bonus = [
4874
4897
  {
4875
- amount: U.find((m) => m.displayName === "UBS")?.balanceAmount
4898
+ amount: R.find((c) => c.displayName === "UBS")?.balanceAmount
4876
4899
  }
4877
4900
  ],
4878
- g
4901
+ b
4879
4902
  );
4880
4903
  else
4881
4904
  throw new Error("Failed to fetch balance data !");
4882
- } catch (p) {
4883
- console.log("Balance error: ", p);
4905
+ } catch (f) {
4906
+ console.log("Balance error: ", f);
4884
4907
  } finally {
4885
- n(2, P = !1);
4908
+ n(2, H = !1);
4886
4909
  }
4887
- }, Be = () => {
4888
- n(2, P = !0);
4889
- const o = new URL(`${l}/v2/player/${i}/balance`), p = new Headers();
4890
- p.append("X-SessionID", a), fetch(o, { method: "GET", headers: p }).then((m) => m.json()).then((m) => {
4891
- m[x] || n(10, x = J[0]);
4892
- const v = m.items.find((E) => E.type === "Real" && E.walletAccountType === "Ordinary");
4893
- if (n(5, W = v.currency), V = !!v.productType, n(1, g.Total = [{ amount: 0 }], g), n(1, g.Real = [], g), n(1, g.Bonus = [], g), n(1, g.Credit = [], g), !V) {
4894
- D = {
4910
+ }, Se = () => {
4911
+ n(2, H = !0);
4912
+ const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
4913
+ f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((c) => c.json()).then((c) => {
4914
+ c[T] || n(10, T = xe[0]);
4915
+ const v = c.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
4916
+ if (n(5, $ = v.currency), F = !!v.productType, n(1, b.Total = [{ amount: 0 }], b), n(1, b.Real = [], b), n(1, b.Bonus = [], b), n(1, b.Credit = [], b), !F) {
4917
+ X = {
4895
4918
  lastOrdinaryAfterAmount: 0,
4896
4919
  showCreditLineAfterAmount: !1
4897
- }, n(1, g.Total[0].amount = m[x][W], g);
4898
- for (const E of m.items)
4899
- switch (E.type) {
4920
+ }, n(1, b.Total[0].amount = c[T][$], b);
4921
+ for (const y of c.items)
4922
+ switch (y.type) {
4900
4923
  case "Bonus":
4901
- g.Bonus.length === 0 ? g.Bonus.push({ amount: E.amount }) : n(1, g.Bonus[0].amount += E.amount, g);
4924
+ b.Bonus.length === 0 ? b.Bonus.push({ amount: y.amount }) : n(1, b.Bonus[0].amount += y.amount, b);
4902
4925
  break;
4903
4926
  case "Real":
4904
- if (E.creditLine && g.Credit.length === 0 && g.Credit.push({ amount: E.creditLine }), x === "totalRealAmount") continue;
4905
- g.Real.length === 0 ? g.Real.push({ amount: E.amount }) : n(1, g.Real[0].amount += E.amount, g);
4927
+ if (y.creditLine && b.Credit.length === 0 && b.Credit.push({ amount: y.creditLine }), T === "totalRealAmount") continue;
4928
+ b.Real.length === 0 ? b.Real.push({ amount: y.amount }) : n(1, b.Real[0].amount += y.amount, b);
4906
4929
  break;
4907
4930
  }
4908
- for (const [E, w] of Object.entries(g))
4909
- w.length < 1 && delete g[E];
4910
- n(2, P = !1);
4931
+ for (const [y, L] of Object.entries(b))
4932
+ L.length < 1 && delete b[y];
4933
+ n(2, H = !1);
4911
4934
  return;
4912
4935
  }
4913
- D = {
4936
+ X = {
4914
4937
  Casino: {
4915
4938
  lastOrdinaryAfterAmount: 0,
4916
4939
  showCreditLineAfterAmount: !1
@@ -4920,228 +4943,218 @@ function Aa(e, t, n) {
4920
4943
  showCreditLineAfterAmount: !1
4921
4944
  }
4922
4945
  };
4923
- let T = m.items;
4924
- B && B !== "All" && (T = m.items.filter((E) => E.productType === B));
4925
- for (const E of T) {
4926
- let w;
4927
- switch (E.type) {
4946
+ let E = c.items;
4947
+ B && B !== "All" && (E = c.items.filter((y) => y.productType === B));
4948
+ for (const y of E) {
4949
+ let L;
4950
+ switch (y.type) {
4928
4951
  case "Bonus":
4929
- w = g.Bonus.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, g.Bonus[w].amount += E.amount, g) : g.Bonus.push({
4930
- amount: E.amount,
4931
- productType: E.productType
4952
+ L = b.Bonus.findIndex((A) => A.productType === y.productType), L > 0 ? n(1, b.Bonus[L].amount += y.amount, b) : b.Bonus.push({
4953
+ amount: y.amount,
4954
+ productType: y.productType
4932
4955
  });
4933
4956
  break;
4934
4957
  case "Real":
4935
- E.creditLine && g.Credit.push({
4936
- amount: E.creditLine,
4937
- productType: E.productType
4938
- }), w = g.Real.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, g.Real[w].amount += E.amount, g) : g.Real.push({
4939
- amount: E.amount,
4940
- productType: E.productType
4958
+ y.creditLine && b.Credit.push({
4959
+ amount: y.creditLine,
4960
+ productType: y.productType
4961
+ }), L = b.Real.findIndex((A) => A.productType === y.productType), L > 0 ? n(1, b.Real[L].amount += y.amount, b) : b.Real.push({
4962
+ amount: y.amount,
4963
+ productType: y.productType
4941
4964
  });
4942
4965
  break;
4943
4966
  }
4944
4967
  }
4945
- We();
4946
- for (const [E, w] of Object.entries(g))
4947
- w.length < 1 && delete g[E];
4948
- n(2, P = !1);
4949
- }).catch((m) => {
4950
- throw n(2, P = !1), new Error("Failed to fetch balance data !");
4968
+ it();
4969
+ for (const [y, L] of Object.entries(b))
4970
+ L.length < 1 && delete b[y];
4971
+ n(2, H = !1);
4972
+ }).catch((c) => {
4973
+ throw n(2, H = !1), new Error("Failed to fetch balance data !");
4951
4974
  });
4952
- }, be = () => {
4953
- if (X && X.close(), a.length < 1) return;
4954
- let o, p;
4955
- switch (y) {
4975
+ }, Ae = () => {
4976
+ if (q && q.close(), o.length < 1) return;
4977
+ let a, f;
4978
+ switch (_) {
4956
4979
  case "gm16":
4957
- o = new URL(`${l}/v2/player/${i}/information/updates`), p = (v) => _t(v);
4980
+ a = new URL(`${l}/v2/player/${i}/information/updates`), f = (v) => Bt(v);
4958
4981
  break;
4959
4982
  case "gmcore":
4960
- o = new URL(`${l}/v1/player/${i}/balance/updates`), p = (v) => pe(v);
4983
+ a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (v) => Ze(v);
4961
4984
  break;
4962
4985
  }
4963
- const f = {
4986
+ const p = {
4964
4987
  accept: "text/event-stream",
4965
- "X-SessionId": a
4966
- }, m = new ba.EventSourcePolyfill(o, { headers: f });
4967
- X = m, m.addEventListener("message", p);
4968
- }, He = (o) => {
4969
- let p;
4988
+ "X-SessionId": o
4989
+ }, c = new xo.EventSourcePolyfill(a, { headers: p });
4990
+ q = c, c.addEventListener("message", f);
4991
+ }, le = (a) => {
4992
+ let f;
4970
4993
  try {
4971
- p = JSON.parse(o);
4972
- } catch (f) {
4973
- console.log("Balance stream failed: ", f);
4994
+ f = JSON.parse(a);
4995
+ } catch (p) {
4996
+ console.log("Balance stream failed: ", p);
4974
4997
  return;
4975
4998
  }
4976
- return p;
4977
- }, pe = (o) => {
4978
- const p = He(o.data);
4979
- if (!p) {
4980
- be();
4999
+ return f;
5000
+ }, Ze = (a) => {
5001
+ const f = le(a.data);
5002
+ if (!f) {
5003
+ Ae();
4981
5004
  return;
4982
5005
  }
4983
- let f = "0";
4984
- const m = p.balanceChange;
4985
- U = U.map((v) => (m && m[v.id] && (v = {
5006
+ let p = "0";
5007
+ const c = f.balanceChange;
5008
+ R = R.map((v) => (c && c[v.id] && (v = {
4986
5009
  ...v,
4987
- balanceAmount: m[v.id].afterAmount
4988
- }), f = (parseFloat(v?.balanceAmount) + parseFloat(f)).toString(), v)), n(1, g.Real = [{ amount: U[0]?.balanceAmount }], g), n(1, g.Bonus = [{ amount: U[1]?.balanceAmount }], g), n(1, g.Total = [{ amount: Number(f) }], g);
4989
- }, Se = (o, p, f) => {
4990
- let m = null;
4991
- switch (f.walletAccountType) {
5010
+ balanceAmount: c[v.id].afterAmount
5011
+ }), p = (parseFloat(v?.balanceAmount) + parseFloat(p)).toString(), v)), n(1, b.Real = [{ amount: R[0]?.balanceAmount }], b), n(1, b.Bonus = [{ amount: R[1]?.balanceAmount }], b), n(1, b.Total = [{ amount: Number(p) }], b);
5012
+ }, Re = (a, f, p) => {
5013
+ let c = null;
5014
+ switch (p.walletAccountType) {
4992
5015
  case "Ordinary":
4993
- f.afterAmount !== f.affectedAmount && (p.lastOrdinaryAfterAmount = f.afterAmount, p.showCreditLineAfterAmount || (m = f.afterAmount));
5016
+ p.afterAmount !== p.affectedAmount && (f.lastOrdinaryAfterAmount = p.afterAmount, f.showCreditLineAfterAmount || (c = p.afterAmount));
4994
5017
  break;
4995
5018
  case "CreditLine":
4996
- f.afterAmount !== 0 ? (m = f.afterAmount, p.showCreditLineAfterAmount = !0) : (m = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
5019
+ p.afterAmount !== 0 ? (c = p.afterAmount, f.showCreditLineAfterAmount = !0) : (c = f.lastOrdinaryAfterAmount, f.showCreditLineAfterAmount = !1);
4997
5020
  break;
4998
5021
  default:
4999
- m = f.afterAmount;
5022
+ c = p.afterAmount;
5000
5023
  }
5001
- return m === null ? o : m;
5002
- }, We = () => {
5003
- switch (x) {
5024
+ return c === null ? a : c;
5025
+ }, it = () => {
5026
+ switch (T) {
5004
5027
  case "totalCashAmount":
5005
- let o = 0;
5006
- for (const f of ["Real", "Bonus"])
5007
- for (const m of g[f])
5008
- o += Math.max(m.amount, 0);
5009
- n(1, g.Total[0].amount = o, g);
5028
+ let a = 0;
5029
+ for (const p of ["Real", "Bonus"])
5030
+ for (const c of b[p])
5031
+ a += Math.max(c.amount, 0);
5032
+ n(1, b.Total[0].amount = a, b);
5010
5033
  break;
5011
5034
  case "totalRealAmount":
5012
- if (!V) return;
5013
- let p = 0;
5014
- for (const f of g.Real)
5015
- p += f.amount;
5016
- n(1, g.Total[0].amount = p, g);
5035
+ if (!F) return;
5036
+ let f = 0;
5037
+ for (const p of b.Real)
5038
+ f += p.amount;
5039
+ n(1, b.Total[0].amount = f, b);
5017
5040
  }
5018
- }, _t = (o) => {
5019
- const p = He(o.data);
5020
- if (!p) {
5021
- be();
5041
+ }, Bt = (a) => {
5042
+ const f = le(a.data);
5043
+ if (!f) {
5044
+ Ae();
5022
5045
  return;
5023
5046
  }
5024
- if (p.type !== "BALANCE_UPDATE_V2")
5047
+ if (f.type !== "BALANCE_UPDATE_V2")
5025
5048
  return;
5026
- const f = p.body.balanceChange;
5027
- for (const [m, v] of Object.entries(f))
5028
- if (x === "totalRealAmount" && m === "Real" && !V && n(1, g.Total[0].amount = Se(g.Total[0].amount, D, v), g), !!g[m])
5029
- for (const T of g[m]) {
5030
- if (!V) {
5031
- T.amount = m === "Real" ? Se(T.amount, D, v) : v.afterAmount;
5049
+ const p = f.body.balanceChange;
5050
+ for (const [c, v] of Object.entries(p))
5051
+ if (T === "totalRealAmount" && c === "Real" && !F && n(1, b.Total[0].amount = Re(b.Total[0].amount, X, v), b), !!b[c])
5052
+ for (const E of b[c]) {
5053
+ if (!F) {
5054
+ E.amount = c === "Real" ? Re(E.amount, X, v) : v.afterAmount;
5032
5055
  continue;
5033
5056
  }
5034
- v.productType === T.productType && (T.amount = m === "Real" ? Se(T.amount, D[T.productType], v) : v.afterAmount);
5057
+ v.productType === E.productType && (E.amount = c === "Real" ? Re(E.amount, X[E.productType], v) : v.afterAmount);
5035
5058
  }
5036
- We();
5037
- }, it = () => {
5038
- ge("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5039
- }, Bt = () => {
5040
- J.includes(x) || (console.error(`Unsupported value ('${x}') for totalcalculationmode parameter. Only the following values are supported ${J}. Using default value ('${J[0]}').`), n(10, x = J[0]));
5059
+ it();
5060
+ }, ot = () => {
5061
+ _e("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5041
5062
  }, Tt = () => {
5042
- switch (ga(s), Bt(), y) {
5063
+ xe.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${xe}. Using default value ('${xe[0]}').`), n(10, T = xe[0]));
5064
+ }, qe = () => {
5065
+ switch (Eo(s), Tt(), _) {
5043
5066
  case "gmcore":
5044
- de();
5067
+ Be();
5045
5068
  break;
5046
5069
  case "gm16":
5047
- Be();
5070
+ Se();
5048
5071
  break;
5049
5072
  default:
5050
- throw Error(`Invalid apiversion attribute: ${y}`);
5073
+ throw Error(`Invalid apiversion attribute: ${_}`);
5051
5074
  }
5052
- }, Oe = (o) => o.data && o.data.type === "LogoutSuccessfull" && X.close(), Ze = () => {
5053
- const o = document.createElement("style");
5054
- o.innerHTML = h, O.appendChild(o);
5055
- }, Te = () => {
5056
- const o = new URL(u), p = document.createElement("style");
5057
- fetch(o.href).then((f) => f.text()).then((f) => {
5058
- p.innerHTML = f, setTimeout(
5059
- () => {
5060
- O.appendChild(p);
5061
- },
5062
- 1
5063
- );
5064
- });
5065
- }, re = () => {
5075
+ }, Le = (a) => a.data && a.data.type === "LogoutSuccessfull" && q.close(), Te = () => {
5066
5076
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5067
5077
  };
5068
- dr(() => (window.addEventListener("message", Oe, !1), () => {
5069
- window.removeEventListener("message", Oe), X && X.close();
5078
+ dr(() => (window.addEventListener("message", Le, !1), () => {
5079
+ window.removeEventListener("message", Le), q && q.close();
5070
5080
  }));
5071
- const wt = () => ge("balance"), St = () => ge("closebalance"), At = () => it(), at = () => ge("closeBalance");
5072
- function c(o) {
5073
- Dt[o ? "unshift" : "push"](() => {
5074
- O = o, n(0, O);
5081
+ const re = () => _e("balance"), wt = () => _e("closebalance"), St = () => ot(), At = () => _e("closeBalance");
5082
+ function at(a) {
5083
+ Dt[a ? "unshift" : "push"](() => {
5084
+ U = a, n(0, U);
5075
5085
  });
5076
5086
  }
5077
- return e.$$set = (o) => {
5078
- "userid" in o && n(11, i = o.userid), "session" in o && n(12, a = o.session), "endpoint" in o && n(13, l = o.endpoint), "lang" in o && n(14, s = o.lang), "clientstyling" in o && n(15, h = o.clientstyling), "clientstylingurl" in o && n(16, u = o.clientstylingurl), "translationurl" in o && n(17, d = o.translationurl), "customlocaleidentifier" in o && n(18, b = o.customlocaleidentifier), "gmversion" in o && n(19, y = o.gmversion), "displaybalanceoption" in o && n(20, B = o.displaybalanceoption), "totalcalculationmode" in o && n(10, x = o.totalcalculationmode), "currencyseparator" in o && n(21, H = o.currencyseparator), "currencydecimal" in o && n(22, _ = o.currencydecimal), "currencyprecision" in o && n(23, A = o.currencyprecision);
5087
+ return e.$$set = (a) => {
5088
+ "userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, h = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, m = a.translationurl), "customlocaleidentifier" in a && n(19, g = a.customlocaleidentifier), "gmversion" in a && n(20, _ = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, x = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, D = a.currencyprecision);
5079
5089
  }, e.$$.update = () => {
5080
5090
  e.$$.dirty[0] & /*lang*/
5081
- 16384 && s && Xe(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5082
- 1603584 && l && i && a && s && y && B && Tt(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5083
- 538624 && l && i && a && y && be(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5084
- 32769 && h && O && Ze(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5085
- 65537 && u && O && Te(), e.$$.dirty[0] & /*translationurl*/
5086
- 131072 && d && rt(), e.$$.dirty[0] & /*balances*/
5087
- 2 && g.Total && re();
5091
+ 16384 && s && Oe(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5092
+ 3176448 && l && i && o && s && _ && B && qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5093
+ 1062912 && l && i && o && _ && Ae(), e.$$.dirty[0] & /*translationurl*/
5094
+ 262144 && m && We(), e.$$.dirty[0] & /*balances*/
5095
+ 2 && b.Total && Te(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5096
+ 65537 && u && U && Ar(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5097
+ 131073 && d && U && Cr(U, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5098
+ 32769 && h && U && Hr(U, `${h}.Style`);
5088
5099
  }, [
5089
- O,
5090
- g,
5091
- P,
5092
- j,
5093
- ne,
5100
+ U,
5101
+ b,
5102
+ H,
5094
5103
  W,
5104
+ Y,
5105
+ $,
5095
5106
  r,
5096
- ge,
5097
- ze,
5098
- it,
5099
- x,
5107
+ _e,
5108
+ pe,
5109
+ ot,
5110
+ T,
5100
5111
  i,
5101
- a,
5112
+ o,
5102
5113
  l,
5103
5114
  s,
5104
5115
  h,
5105
5116
  u,
5106
5117
  d,
5107
- b,
5108
- y,
5109
- B,
5110
- H,
5118
+ m,
5119
+ g,
5111
5120
  _,
5112
- A,
5121
+ B,
5122
+ x,
5123
+ S,
5124
+ D,
5125
+ re,
5113
5126
  wt,
5114
5127
  St,
5115
5128
  At,
5116
- at,
5117
- c
5129
+ at
5118
5130
  ];
5119
5131
  }
5120
- class Ca extends wr {
5132
+ class Lo extends wr {
5121
5133
  constructor(t) {
5122
5134
  super(), Br(
5123
5135
  this,
5124
5136
  t,
5125
- Aa,
5126
- Sa,
5137
+ Ro,
5138
+ Oo,
5127
5139
  An,
5128
5140
  {
5129
5141
  userid: 11,
5130
5142
  session: 12,
5131
5143
  endpoint: 13,
5132
5144
  lang: 14,
5133
- clientstyling: 15,
5134
- clientstylingurl: 16,
5135
- translationurl: 17,
5136
- customlocaleidentifier: 18,
5137
- gmversion: 19,
5138
- displaybalanceoption: 20,
5145
+ mbsource: 15,
5146
+ clientstyling: 16,
5147
+ clientstylingurl: 17,
5148
+ translationurl: 18,
5149
+ customlocaleidentifier: 19,
5150
+ gmversion: 20,
5151
+ displaybalanceoption: 21,
5139
5152
  totalcalculationmode: 10,
5140
- currencyseparator: 21,
5141
- currencydecimal: 22,
5142
- currencyprecision: 23
5153
+ currencyseparator: 22,
5154
+ currencydecimal: 23,
5155
+ currencyprecision: 24
5143
5156
  },
5144
- Ba,
5157
+ Ao,
5145
5158
  [-1, -1]
5146
5159
  );
5147
5160
  }
@@ -5149,88 +5162,94 @@ class Ca extends wr {
5149
5162
  return this.$$.ctx[11];
5150
5163
  }
5151
5164
  set userid(t) {
5152
- this.$$set({ userid: t }), Q();
5165
+ this.$$set({ userid: t }), J();
5153
5166
  }
5154
5167
  get session() {
5155
5168
  return this.$$.ctx[12];
5156
5169
  }
5157
5170
  set session(t) {
5158
- this.$$set({ session: t }), Q();
5171
+ this.$$set({ session: t }), J();
5159
5172
  }
5160
5173
  get endpoint() {
5161
5174
  return this.$$.ctx[13];
5162
5175
  }
5163
5176
  set endpoint(t) {
5164
- this.$$set({ endpoint: t }), Q();
5177
+ this.$$set({ endpoint: t }), J();
5165
5178
  }
5166
5179
  get lang() {
5167
5180
  return this.$$.ctx[14];
5168
5181
  }
5169
5182
  set lang(t) {
5170
- this.$$set({ lang: t }), Q();
5183
+ this.$$set({ lang: t }), J();
5171
5184
  }
5172
- get clientstyling() {
5185
+ get mbsource() {
5173
5186
  return this.$$.ctx[15];
5174
5187
  }
5188
+ set mbsource(t) {
5189
+ this.$$set({ mbsource: t }), J();
5190
+ }
5191
+ get clientstyling() {
5192
+ return this.$$.ctx[16];
5193
+ }
5175
5194
  set clientstyling(t) {
5176
- this.$$set({ clientstyling: t }), Q();
5195
+ this.$$set({ clientstyling: t }), J();
5177
5196
  }
5178
5197
  get clientstylingurl() {
5179
- return this.$$.ctx[16];
5198
+ return this.$$.ctx[17];
5180
5199
  }
5181
5200
  set clientstylingurl(t) {
5182
- this.$$set({ clientstylingurl: t }), Q();
5201
+ this.$$set({ clientstylingurl: t }), J();
5183
5202
  }
5184
5203
  get translationurl() {
5185
- return this.$$.ctx[17];
5204
+ return this.$$.ctx[18];
5186
5205
  }
5187
5206
  set translationurl(t) {
5188
- this.$$set({ translationurl: t }), Q();
5207
+ this.$$set({ translationurl: t }), J();
5189
5208
  }
5190
5209
  get customlocaleidentifier() {
5191
- return this.$$.ctx[18];
5210
+ return this.$$.ctx[19];
5192
5211
  }
5193
5212
  set customlocaleidentifier(t) {
5194
- this.$$set({ customlocaleidentifier: t }), Q();
5213
+ this.$$set({ customlocaleidentifier: t }), J();
5195
5214
  }
5196
5215
  get gmversion() {
5197
- return this.$$.ctx[19];
5216
+ return this.$$.ctx[20];
5198
5217
  }
5199
5218
  set gmversion(t) {
5200
- this.$$set({ gmversion: t }), Q();
5219
+ this.$$set({ gmversion: t }), J();
5201
5220
  }
5202
5221
  get displaybalanceoption() {
5203
- return this.$$.ctx[20];
5222
+ return this.$$.ctx[21];
5204
5223
  }
5205
5224
  set displaybalanceoption(t) {
5206
- this.$$set({ displaybalanceoption: t }), Q();
5225
+ this.$$set({ displaybalanceoption: t }), J();
5207
5226
  }
5208
5227
  get totalcalculationmode() {
5209
5228
  return this.$$.ctx[10];
5210
5229
  }
5211
5230
  set totalcalculationmode(t) {
5212
- this.$$set({ totalcalculationmode: t }), Q();
5231
+ this.$$set({ totalcalculationmode: t }), J();
5213
5232
  }
5214
5233
  get currencyseparator() {
5215
- return this.$$.ctx[21];
5234
+ return this.$$.ctx[22];
5216
5235
  }
5217
5236
  set currencyseparator(t) {
5218
- this.$$set({ currencyseparator: t }), Q();
5237
+ this.$$set({ currencyseparator: t }), J();
5219
5238
  }
5220
5239
  get currencydecimal() {
5221
- return this.$$.ctx[22];
5240
+ return this.$$.ctx[23];
5222
5241
  }
5223
5242
  set currencydecimal(t) {
5224
- this.$$set({ currencydecimal: t }), Q();
5243
+ this.$$set({ currencydecimal: t }), J();
5225
5244
  }
5226
5245
  get currencyprecision() {
5227
- return this.$$.ctx[23];
5246
+ return this.$$.ctx[24];
5228
5247
  }
5229
5248
  set currencyprecision(t) {
5230
- this.$$set({ currencyprecision: t }), Q();
5249
+ this.$$set({ currencyprecision: t }), J();
5231
5250
  }
5232
5251
  }
5233
- Tr(Ca, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5252
+ Tr(Lo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5234
5253
  export {
5235
- Ca as P
5254
+ Lo as P
5236
5255
  };