@everymatrix/player-account-balance-modal-nd 1.61.0 → 1.62.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.
@@ -1,46 +1,46 @@
1
- function se() {
1
+ function ue() {
2
2
  }
3
- function Sn(e) {
3
+ function Cn(e) {
4
4
  return e();
5
5
  }
6
- function tn() {
6
+ function rn() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function je(e) {
10
- e.forEach(Sn);
9
+ function $e(e) {
10
+ e.forEach(Cn);
11
11
  }
12
12
  function Qt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function An(e, t) {
15
+ function Hn(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function ir(e) {
18
+ function or(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function Cn(e, ...t) {
21
+ function On(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const r of t)
24
24
  r(void 0);
25
- return se;
25
+ return ue;
26
26
  }
27
27
  const n = e.subscribe(...t);
28
28
  return n.unsubscribe ? () => n.unsubscribe() : n;
29
29
  }
30
- function or(e, t, n) {
31
- e.$$.on_destroy.push(Cn(t, n));
30
+ function sr(e, t, n) {
31
+ e.$$.on_destroy.push(On(t, n));
32
32
  }
33
- function C(e, t) {
33
+ function H(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function ar(e, t, n) {
37
- const r = sr(e);
36
+ function lr(e, t, n) {
37
+ const r = ur(e);
38
38
  if (!r.getElementById(t)) {
39
39
  const i = j("style");
40
- i.id = t, i.textContent = n, lr(r, i);
40
+ i.id = t, i.textContent = n, cr(r, i);
41
41
  }
42
42
  }
43
- function sr(e) {
43
+ function ur(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,52 +50,52 @@ function sr(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function lr(e, t) {
54
- return C(
53
+ function cr(e, t) {
54
+ return H(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function me(e, t, n) {
60
+ function ge(e, t, n) {
61
61
  e.insertBefore(t, n || null);
62
62
  }
63
- function fe(e) {
63
+ function pe(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function Hn(e, t) {
66
+ function Rn(e, t) {
67
67
  for (let n = 0; n < e.length; n += 1)
68
68
  e[n] && e[n].d(t);
69
69
  }
70
70
  function j(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function nn(e) {
73
+ function an(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
- function he(e) {
76
+ function de(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
- function de() {
80
- return he(" ");
79
+ function me() {
80
+ return de(" ");
81
81
  }
82
- function ur() {
83
- return he("");
82
+ function hr() {
83
+ return de("");
84
84
  }
85
- function pt(e, t, n, r) {
85
+ function mt(e, t, n, r) {
86
86
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
87
87
  }
88
- function N(e, t, n) {
88
+ function M(e, t, n) {
89
89
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
90
90
  }
91
- function cr(e) {
91
+ function fr(e) {
92
92
  return Array.from(e.childNodes);
93
93
  }
94
- function Ee(e, t) {
94
+ function Te(e, t) {
95
95
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
96
96
  t);
97
97
  }
98
- function hr(e) {
98
+ function dr(e) {
99
99
  const t = {};
100
100
  return e.childNodes.forEach(
101
101
  /** @param {Element} node */
@@ -104,98 +104,98 @@ function hr(e) {
104
104
  }
105
105
  ), t;
106
106
  }
107
- let et;
108
- function Ke(e) {
109
- et = e;
107
+ let Ke;
108
+ function Ye(e) {
109
+ Ke = e;
110
110
  }
111
- function fr() {
112
- if (!et)
111
+ function pr() {
112
+ if (!Ke)
113
113
  throw new Error("Function called outside component initialization");
114
- return et;
114
+ return Ke;
115
115
  }
116
- function dr(e) {
117
- fr().$$.on_mount.push(e);
116
+ function mr(e) {
117
+ pr().$$.on_mount.push(e);
118
118
  }
119
- const De = [], Dt = [];
120
- let Ue = [];
121
- const rn = [], pr = /* @__PURE__ */ Promise.resolve();
119
+ const Ie = [], Dt = [];
120
+ let Pe = [];
121
+ const on = [], gr = /* @__PURE__ */ Promise.resolve();
122
122
  let Ut = !1;
123
- function mr() {
124
- Ut || (Ut = !0, pr.then(J));
123
+ function br() {
124
+ Ut || (Ut = !0, gr.then(J));
125
125
  }
126
126
  function Ft(e) {
127
- Ue.push(e);
127
+ Pe.push(e);
128
128
  }
129
129
  const Ot = /* @__PURE__ */ new Set();
130
- let Ie = 0;
130
+ let Me = 0;
131
131
  function J() {
132
- if (Ie !== 0)
132
+ if (Me !== 0)
133
133
  return;
134
- const e = et;
134
+ const e = Ke;
135
135
  do {
136
136
  try {
137
- for (; Ie < De.length; ) {
138
- const t = De[Ie];
139
- Ie++, Ke(t), gr(t.$$);
137
+ for (; Me < Ie.length; ) {
138
+ const t = Ie[Me];
139
+ Me++, Ye(t), yr(t.$$);
140
140
  }
141
141
  } catch (t) {
142
- throw De.length = 0, Ie = 0, t;
142
+ throw Ie.length = 0, Me = 0, t;
143
143
  }
144
- for (Ke(null), De.length = 0, Ie = 0; Dt.length; )
144
+ for (Ye(null), Ie.length = 0, Me = 0; Dt.length; )
145
145
  Dt.pop()();
146
- for (let t = 0; t < Ue.length; t += 1) {
147
- const n = Ue[t];
146
+ for (let t = 0; t < Pe.length; t += 1) {
147
+ const n = Pe[t];
148
148
  Ot.has(n) || (Ot.add(n), n());
149
149
  }
150
- Ue.length = 0;
151
- } while (De.length);
152
- for (; rn.length; )
153
- rn.pop()();
154
- Ut = !1, Ot.clear(), Ke(e);
150
+ Pe.length = 0;
151
+ } while (Ie.length);
152
+ for (; on.length; )
153
+ on.pop()();
154
+ Ut = !1, Ot.clear(), Ye(e);
155
155
  }
156
- function gr(e) {
156
+ function yr(e) {
157
157
  if (e.fragment !== null) {
158
- e.update(), je(e.before_update);
158
+ e.update(), $e(e.before_update);
159
159
  const t = e.dirty;
160
160
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ft);
161
161
  }
162
162
  }
163
- function br(e) {
163
+ function vr(e) {
164
164
  const t = [], n = [];
165
- Ue.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ue = t;
165
+ Pe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Pe = t;
166
166
  }
167
- const yr = /* @__PURE__ */ new Set();
168
- function vr(e, t) {
169
- e && e.i && (yr.delete(e), e.i(t));
167
+ const Er = /* @__PURE__ */ new Set();
168
+ function xr(e, t) {
169
+ e && e.i && (Er.delete(e), e.i(t));
170
170
  }
171
- function mt(e) {
171
+ function gt(e) {
172
172
  return e?.length !== void 0 ? e : Array.from(e);
173
173
  }
174
- function Er(e, t, n) {
174
+ function _r(e, t, n) {
175
175
  const { fragment: r, after_update: i } = e.$$;
176
176
  r && r.m(t, n), Ft(() => {
177
- const o = e.$$.on_mount.map(Sn).filter(Qt);
178
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : je(o), e.$$.on_mount = [];
177
+ const a = e.$$.on_mount.map(Cn).filter(Qt);
178
+ e.$$.on_destroy ? e.$$.on_destroy.push(...a) : $e(a), e.$$.on_mount = [];
179
179
  }), i.forEach(Ft);
180
180
  }
181
- function xr(e, t) {
181
+ function Br(e, t) {
182
182
  const n = e.$$;
183
- 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 = []);
183
+ n.fragment !== null && (vr(n.after_update), $e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
184
184
  }
185
- function _r(e, t) {
186
- e.$$.dirty[0] === -1 && (De.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
185
+ function Tr(e, t) {
186
+ e.$$.dirty[0] === -1 && (Ie.push(e), br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
187
187
  }
188
- function Br(e, t, n, r, i, o, l = null, s = [-1]) {
189
- const h = et;
190
- Ke(e);
188
+ function wr(e, t, n, r, i, a, l = null, s = [-1]) {
189
+ const h = Ke;
190
+ Ye(e);
191
191
  const u = e.$$ = {
192
192
  fragment: null,
193
193
  ctx: [],
194
194
  // state
195
- props: o,
196
- update: se,
195
+ props: a,
196
+ update: ue,
197
197
  not_equal: i,
198
- bound: tn(),
198
+ bound: rn(),
199
199
  // lifecycle
200
200
  on_mount: [],
201
201
  on_destroy: [],
@@ -204,28 +204,28 @@ function Br(e, t, n, r, i, o, l = null, s = [-1]) {
204
204
  after_update: [],
205
205
  context: new Map(t.context || (h ? h.$$.context : [])),
206
206
  // everything else
207
- callbacks: tn(),
207
+ callbacks: rn(),
208
208
  dirty: s,
209
209
  skip_bound: !1,
210
210
  root: t.target || h.$$.root
211
211
  };
212
212
  l && l(u.root);
213
213
  let d = !1;
214
- if (u.ctx = n ? n(e, t.props || {}, (m, g, ..._) => {
215
- const B = _.length ? _[0] : g;
216
- 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;
217
- }) : [], u.update(), d = !0, je(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
214
+ if (u.ctx = n ? n(e, t.props || {}, (g, b, ..._) => {
215
+ const T = _.length ? _[0] : b;
216
+ return u.ctx && i(u.ctx[g], u.ctx[g] = T) && (!u.skip_bound && u.bound[g] && u.bound[g](T), d && Tr(e, g)), b;
217
+ }) : [], u.update(), d = !0, $e(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
218
218
  if (t.hydrate) {
219
- const m = cr(t.target);
220
- u.fragment && u.fragment.l(m), m.forEach(fe);
219
+ const g = fr(t.target);
220
+ u.fragment && u.fragment.l(g), g.forEach(pe);
221
221
  } else
222
222
  u.fragment && u.fragment.c();
223
- t.intro && vr(e.$$.fragment), Er(e, t.target, t.anchor), J();
223
+ t.intro && xr(e.$$.fragment), _r(e, t.target, t.anchor), J();
224
224
  }
225
- Ke(h);
225
+ Ye(h);
226
226
  }
227
- let On;
228
- typeof HTMLElement == "function" && (On = class extends HTMLElement {
227
+ let Ln;
228
+ typeof HTMLElement == "function" && (Ln = class extends HTMLElement {
229
229
  /** The Svelte component constructor */
230
230
  $$ctor;
231
231
  /** Slots */
@@ -264,32 +264,32 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
264
264
  if (this.$$cn = !0, !this.$$c) {
265
265
  let e = function(i) {
266
266
  return () => {
267
- let o;
267
+ let a;
268
268
  return {
269
269
  c: function() {
270
- o = j("slot"), i !== "default" && N(o, "name", i);
270
+ a = j("slot"), i !== "default" && M(a, "name", i);
271
271
  },
272
272
  /**
273
273
  * @param {HTMLElement} target
274
274
  * @param {HTMLElement} [anchor]
275
275
  */
276
276
  m: function(h, u) {
277
- me(h, o, u);
277
+ ge(h, a, u);
278
278
  },
279
279
  d: function(h) {
280
- h && fe(o);
280
+ h && pe(a);
281
281
  }
282
282
  };
283
283
  };
284
284
  };
285
285
  if (await Promise.resolve(), !this.$$cn || this.$$c)
286
286
  return;
287
- const t = {}, n = hr(this);
287
+ const t = {}, n = dr(this);
288
288
  for (const i of this.$$s)
289
289
  i in n && (t[i] = [e(i)]);
290
290
  for (const i of this.attributes) {
291
- const o = this.$$g_p(i.name);
292
- o in this.$$d || (this.$$d[o] = ct(o, i.value, this.$$p_d, "toProp"));
291
+ const a = this.$$g_p(i.name);
292
+ a in this.$$d || (this.$$d[a] = ht(a, i.value, this.$$p_d, "toProp"));
293
293
  }
294
294
  for (const i in this.$$p_d)
295
295
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -307,21 +307,21 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
307
307
  this.$$r = !0;
308
308
  for (const i in this.$$p_d)
309
309
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
310
- const o = ct(
310
+ const a = ht(
311
311
  i,
312
312
  this.$$d[i],
313
313
  this.$$p_d,
314
314
  "toAttribute"
315
315
  );
316
- o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
316
+ a == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, a);
317
317
  }
318
318
  this.$$r = !1;
319
319
  };
320
320
  this.$$c.$$.after_update.push(r), r();
321
321
  for (const i in this.$$l)
322
- for (const o of this.$$l[i]) {
323
- const l = this.$$c.$on(i, o);
324
- this.$$l_u.set(o, l);
322
+ for (const a of this.$$l[i]) {
323
+ const l = this.$$c.$on(i, a);
324
+ this.$$l_u.set(a, l);
325
325
  }
326
326
  this.$$l = {};
327
327
  }
@@ -329,7 +329,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
329
329
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
330
330
  // and setting attributes through setAttribute etc, this is helpful
331
331
  attributeChangedCallback(e, t, n) {
332
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ct(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
332
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ht(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
333
333
  }
334
334
  disconnectedCallback() {
335
335
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -342,7 +342,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
342
342
  ) || e;
343
343
  }
344
344
  });
345
- function ct(e, t, n, r) {
345
+ function ht(e, t, n, r) {
346
346
  const i = n[e]?.type;
347
347
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
348
348
  return t;
@@ -371,8 +371,8 @@ function ct(e, t, n, r) {
371
371
  return t;
372
372
  }
373
373
  }
374
- function Tr(e, t, n, r, i, o) {
375
- let l = class extends On {
374
+ function Sr(e, t, n, r, i, a) {
375
+ let l = class extends Ln {
376
376
  constructor() {
377
377
  super(e, n, i), this.$$p_d = t;
378
378
  }
@@ -388,7 +388,7 @@ function Tr(e, t, n, r, i, o) {
388
388
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
389
389
  },
390
390
  set(h) {
391
- h = ct(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
391
+ h = ht(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
392
392
  }
393
393
  });
394
394
  }), r.forEach((s) => {
@@ -400,7 +400,7 @@ function Tr(e, t, n, r, i, o) {
400
400
  }), e.element = /** @type {any} */
401
401
  l, l;
402
402
  }
403
- class wr {
403
+ class Ar {
404
404
  /**
405
405
  * ### PRIVATE API
406
406
  *
@@ -419,7 +419,7 @@ class wr {
419
419
  $$set = void 0;
420
420
  /** @returns {void} */
421
421
  $destroy() {
422
- xr(this, 1), this.$destroy = se;
422
+ Br(this, 1), this.$destroy = ue;
423
423
  }
424
424
  /**
425
425
  * @template {Extract<keyof Events, string>} K
@@ -429,7 +429,7 @@ class wr {
429
429
  */
430
430
  $on(t, n) {
431
431
  if (!Qt(n))
432
- return se;
432
+ return ue;
433
433
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
434
434
  return r.push(n), () => {
435
435
  const i = r.indexOf(n);
@@ -441,18 +441,18 @@ class wr {
441
441
  * @returns {void}
442
442
  */
443
443
  $set(t) {
444
- this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
444
+ this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
445
445
  }
446
446
  }
447
- const Sr = "4";
448
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
449
- function Ar(e, t) {
447
+ const Cr = "4";
448
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
449
+ function Hr(e, t) {
450
450
  if (e) {
451
451
  const n = document.createElement("style");
452
452
  n.innerHTML = t, e.appendChild(n);
453
453
  }
454
454
  }
455
- function Cr(e, t) {
455
+ function Or(e, t) {
456
456
  const n = new URL(t);
457
457
  fetch(n.href).then((r) => r.text()).then((r) => {
458
458
  const i = document.createElement("style");
@@ -461,7 +461,7 @@ function Cr(e, t) {
461
461
  console.error("There was an error while trying to load client styling from URL", r);
462
462
  });
463
463
  }
464
- function Hr(e, t, n) {
464
+ function Rr(e, t, n) {
465
465
  if (window.emMessageBus) {
466
466
  const r = document.createElement("style");
467
467
  window.emMessageBus.subscribe(t, (i) => {
@@ -469,144 +469,144 @@ function Hr(e, t, n) {
469
469
  });
470
470
  }
471
471
  }
472
- const Pe = [];
473
- function Or(e, t) {
472
+ const Ne = [];
473
+ function Lr(e, t) {
474
474
  return {
475
- subscribe: yt(e, t).subscribe
475
+ subscribe: vt(e, t).subscribe
476
476
  };
477
477
  }
478
- function yt(e, t = se) {
478
+ function vt(e, t = ue) {
479
479
  let n;
480
480
  const r = /* @__PURE__ */ new Set();
481
481
  function i(s) {
482
- if (An(e, s) && (e = s, n)) {
483
- const h = !Pe.length;
482
+ if (Hn(e, s) && (e = s, n)) {
483
+ const h = !Ne.length;
484
484
  for (const u of r)
485
- u[1](), Pe.push(u, e);
485
+ u[1](), Ne.push(u, e);
486
486
  if (h) {
487
- for (let u = 0; u < Pe.length; u += 2)
488
- Pe[u][0](Pe[u + 1]);
489
- Pe.length = 0;
487
+ for (let u = 0; u < Ne.length; u += 2)
488
+ Ne[u][0](Ne[u + 1]);
489
+ Ne.length = 0;
490
490
  }
491
491
  }
492
492
  }
493
- function o(s) {
493
+ function a(s) {
494
494
  i(s(e));
495
495
  }
496
- function l(s, h = se) {
496
+ function l(s, h = ue) {
497
497
  const u = [s, h];
498
- return r.add(u), r.size === 1 && (n = t(i, o) || se), s(e), () => {
498
+ return r.add(u), r.size === 1 && (n = t(i, a) || ue), s(e), () => {
499
499
  r.delete(u), r.size === 0 && n && (n(), n = null);
500
500
  };
501
501
  }
502
- return { set: i, update: o, subscribe: l };
502
+ return { set: i, update: a, subscribe: l };
503
503
  }
504
- function Ve(e, t, n) {
504
+ function ke(e, t, n) {
505
505
  const r = !Array.isArray(e), i = r ? [e] : e;
506
506
  if (!i.every(Boolean))
507
507
  throw new Error("derived() expects stores as input, got a falsy value");
508
- const o = t.length < 2;
509
- return Or(n, (l, s) => {
508
+ const a = t.length < 2;
509
+ return Lr(n, (l, s) => {
510
510
  let h = !1;
511
511
  const u = [];
512
- let d = 0, m = se;
513
- const g = () => {
512
+ let d = 0, g = ue;
513
+ const b = () => {
514
514
  if (d)
515
515
  return;
516
- m();
517
- const B = t(r ? u[0] : u, l, s);
518
- o ? l(B) : m = Qt(B) ? B : se;
516
+ g();
517
+ const T = t(r ? u[0] : u, l, s);
518
+ a ? l(T) : g = Qt(T) ? T : ue;
519
519
  }, _ = i.map(
520
- (B, T) => Cn(
521
- B,
520
+ (T, S) => On(
521
+ T,
522
522
  (x) => {
523
- u[T] = x, d &= ~(1 << T), h && g();
523
+ u[S] = x, d &= ~(1 << S), h && b();
524
524
  },
525
525
  () => {
526
- d |= 1 << T;
526
+ d |= 1 << S;
527
527
  }
528
528
  )
529
529
  );
530
- return h = !0, g(), function() {
531
- je(_), m(), h = !1;
530
+ return h = !0, b(), function() {
531
+ $e(_), g(), h = !1;
532
532
  };
533
533
  });
534
534
  }
535
- var Rr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
536
- function Lr(e) {
535
+ var Mr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
536
+ function Nr(e) {
537
537
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
538
538
  }
539
- var Mr = function(t) {
540
- return Nr(t) && !Ir(t);
539
+ var Ir = function(t) {
540
+ return Pr(t) && !Dr(t);
541
541
  };
542
- function Nr(e) {
542
+ function Pr(e) {
543
543
  return !!e && typeof e == "object";
544
544
  }
545
- function Ir(e) {
545
+ function Dr(e) {
546
546
  var t = Object.prototype.toString.call(e);
547
- return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
547
+ return t === "[object RegExp]" || t === "[object Date]" || Gr(e);
548
548
  }
549
- var Pr = typeof Symbol == "function" && Symbol.for, Dr = Pr ? Symbol.for("react.element") : 60103;
550
- function Ur(e) {
551
- return e.$$typeof === Dr;
549
+ var Ur = typeof Symbol == "function" && Symbol.for, Fr = Ur ? Symbol.for("react.element") : 60103;
550
+ function Gr(e) {
551
+ return e.$$typeof === Fr;
552
552
  }
553
- function Fr(e) {
553
+ function $r(e) {
554
554
  return Array.isArray(e) ? [] : {};
555
555
  }
556
- function tt(e, t) {
557
- return t.clone !== !1 && t.isMergeableObject(e) ? Fe(Fr(e), e, t) : e;
556
+ function et(e, t) {
557
+ return t.clone !== !1 && t.isMergeableObject(e) ? De($r(e), e, t) : e;
558
558
  }
559
- function Gr(e, t, n) {
559
+ function kr(e, t, n) {
560
560
  return e.concat(t).map(function(r) {
561
- return tt(r, n);
561
+ return et(r, n);
562
562
  });
563
563
  }
564
- function $r(e, t) {
564
+ function jr(e, t) {
565
565
  if (!t.customMerge)
566
- return Fe;
566
+ return De;
567
567
  var n = t.customMerge(e);
568
- return typeof n == "function" ? n : Fe;
568
+ return typeof n == "function" ? n : De;
569
569
  }
570
- function kr(e) {
570
+ function Vr(e) {
571
571
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
572
572
  return Object.propertyIsEnumerable.call(e, t);
573
573
  }) : [];
574
574
  }
575
- function on(e) {
576
- return Object.keys(e).concat(kr(e));
575
+ function sn(e) {
576
+ return Object.keys(e).concat(Vr(e));
577
577
  }
578
- function Rn(e, t) {
578
+ function Mn(e, t) {
579
579
  try {
580
580
  return t in e;
581
581
  } catch {
582
582
  return !1;
583
583
  }
584
584
  }
585
- function jr(e, t) {
586
- return Rn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
585
+ function Xr(e, t) {
586
+ return Mn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
587
587
  }
588
- function Vr(e, t, n) {
588
+ function zr(e, t, n) {
589
589
  var r = {};
590
- return n.isMergeableObject(e) && on(e).forEach(function(i) {
591
- r[i] = tt(e[i], n);
592
- }), on(t).forEach(function(i) {
593
- 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));
590
+ return n.isMergeableObject(e) && sn(e).forEach(function(i) {
591
+ r[i] = et(e[i], n);
592
+ }), sn(t).forEach(function(i) {
593
+ Xr(e, i) || (Mn(e, i) && n.isMergeableObject(t[i]) ? r[i] = jr(i, n)(e[i], t[i], n) : r[i] = et(t[i], n));
594
594
  }), r;
595
595
  }
596
- function Fe(e, t, n) {
597
- n = n || {}, n.arrayMerge = n.arrayMerge || Gr, n.isMergeableObject = n.isMergeableObject || Mr, n.cloneUnlessOtherwiseSpecified = tt;
598
- var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
599
- return o ? r ? n.arrayMerge(e, t, n) : Vr(e, t, n) : tt(t, n);
596
+ function De(e, t, n) {
597
+ n = n || {}, n.arrayMerge = n.arrayMerge || kr, n.isMergeableObject = n.isMergeableObject || Ir, n.cloneUnlessOtherwiseSpecified = et;
598
+ var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
599
+ return a ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : et(t, n);
600
600
  }
601
- Fe.all = function(t, n) {
601
+ De.all = function(t, n) {
602
602
  if (!Array.isArray(t))
603
603
  throw new Error("first argument should be an array");
604
604
  return t.reduce(function(r, i) {
605
- return Fe(r, i, n);
605
+ return De(r, i, n);
606
606
  }, {});
607
607
  };
608
- var Xr = Fe, zr = Xr;
609
- const Wr = /* @__PURE__ */ Lr(zr);
608
+ var Wr = De, Zr = Wr;
609
+ const qr = /* @__PURE__ */ Nr(Zr);
610
610
  /*! *****************************************************************************
611
611
  Copyright (c) Microsoft Corporation.
612
612
 
@@ -629,7 +629,7 @@ var Gt = function(e, t) {
629
629
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
630
630
  }, Gt(e, t);
631
631
  };
632
- function vt(e, t) {
632
+ function Et(e, t) {
633
633
  if (typeof t != "function" && t !== null)
634
634
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
635
635
  Gt(e, t);
@@ -642,13 +642,13 @@ var I = function() {
642
642
  return I = Object.assign || function(t) {
643
643
  for (var n, r = 1, i = arguments.length; r < i; r++) {
644
644
  n = arguments[r];
645
- for (var o in n)
646
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
645
+ for (var a in n)
646
+ Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
647
647
  }
648
648
  return t;
649
649
  }, I.apply(this, arguments);
650
650
  };
651
- function Zr(e, t) {
651
+ function Qr(e, t) {
652
652
  var n = {};
653
653
  for (var r in e)
654
654
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -659,107 +659,109 @@ function Zr(e, t) {
659
659
  }
660
660
  function Rt(e, t, n) {
661
661
  if (arguments.length === 2)
662
- for (var r = 0, i = t.length, o; r < i; r++)
663
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
664
- return e.concat(o || t);
662
+ for (var r = 0, i = t.length, a; r < i; r++)
663
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
664
+ return e.concat(a || t);
665
665
  }
666
666
  function Lt(e, t) {
667
- var n = t && t.cache ? t.cache : ti, r = t && t.serializer ? t.serializer : Kr, i = t && t.strategy ? t.strategy : Jr;
667
+ var n = t && t.cache ? t.cache : ni, r = t && t.serializer ? t.serializer : ti, i = t && t.strategy ? t.strategy : Yr;
668
668
  return i(e, {
669
669
  cache: n,
670
670
  serializer: r
671
671
  });
672
672
  }
673
- function qr(e) {
673
+ function Jr(e) {
674
674
  return e == null || typeof e == "number" || typeof e == "boolean";
675
675
  }
676
- function Qr(e, t, n, r) {
677
- var i = qr(r) ? r : n(r), o = t.get(i);
678
- return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
676
+ function Nn(e, t, n, r) {
677
+ var i = Jr(r) ? r : n(r), a = t.get(i);
678
+ return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
679
679
  }
680
- function Ln(e, t, n) {
681
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
682
- return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
680
+ function In(e, t, n) {
681
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
682
+ return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
683
683
  }
684
- function Mn(e, t, n, r, i) {
684
+ function Jt(e, t, n, r, i) {
685
685
  return n.bind(t, e, r, i);
686
686
  }
687
- function Jr(e, t) {
688
- var n = e.length === 1 ? Qr : Ln;
689
- return Mn(e, this, n, t.cache.create(), t.serializer);
690
- }
691
687
  function Yr(e, t) {
692
- return Mn(e, this, Ln, t.cache.create(), t.serializer);
688
+ var n = e.length === 1 ? Nn : In;
689
+ return Jt(e, this, n, t.cache.create(), t.serializer);
693
690
  }
694
- var Kr = function() {
691
+ function Kr(e, t) {
692
+ return Jt(e, this, In, t.cache.create(), t.serializer);
693
+ }
694
+ function ei(e, t) {
695
+ return Jt(e, this, Nn, t.cache.create(), t.serializer);
696
+ }
697
+ var ti = function() {
695
698
  return JSON.stringify(arguments);
696
- }, ei = (
697
- /** @class */
698
- function() {
699
- function e() {
700
- this.cache = /* @__PURE__ */ Object.create(null);
701
- }
702
- return e.prototype.get = function(t) {
703
- return this.cache[t];
704
- }, e.prototype.set = function(t, n) {
705
- this.cache[t] = n;
706
- }, e;
707
- }()
708
- ), ti = {
699
+ };
700
+ function Yt() {
701
+ this.cache = /* @__PURE__ */ Object.create(null);
702
+ }
703
+ Yt.prototype.get = function(e) {
704
+ return this.cache[e];
705
+ };
706
+ Yt.prototype.set = function(e, t) {
707
+ this.cache[e] = t;
708
+ };
709
+ var ni = {
709
710
  create: function() {
710
- return new ei();
711
+ return new Yt();
711
712
  }
712
713
  }, Mt = {
713
- variadic: Yr
714
- }, O;
714
+ variadic: Kr,
715
+ monadic: ei
716
+ }, R;
715
717
  (function(e) {
716
718
  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";
717
- })(O || (O = {}));
719
+ })(R || (R = {}));
718
720
  var k;
719
721
  (function(e) {
720
722
  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";
721
723
  })(k || (k = {}));
722
- var Ge;
724
+ var Ue;
723
725
  (function(e) {
724
726
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
725
- })(Ge || (Ge = {}));
726
- function an(e) {
727
+ })(Ue || (Ue = {}));
728
+ function ln(e) {
727
729
  return e.type === k.literal;
728
730
  }
729
- function ni(e) {
731
+ function ri(e) {
730
732
  return e.type === k.argument;
731
733
  }
732
- function Nn(e) {
734
+ function Pn(e) {
733
735
  return e.type === k.number;
734
736
  }
735
- function In(e) {
737
+ function Dn(e) {
736
738
  return e.type === k.date;
737
739
  }
738
- function Pn(e) {
740
+ function Un(e) {
739
741
  return e.type === k.time;
740
742
  }
741
- function Dn(e) {
743
+ function Fn(e) {
742
744
  return e.type === k.select;
743
745
  }
744
- function Un(e) {
746
+ function Gn(e) {
745
747
  return e.type === k.plural;
746
748
  }
747
- function ri(e) {
749
+ function ii(e) {
748
750
  return e.type === k.pound;
749
751
  }
750
- function Fn(e) {
752
+ function $n(e) {
751
753
  return e.type === k.tag;
752
754
  }
753
- function Gn(e) {
754
- return !!(e && typeof e == "object" && e.type === Ge.number);
755
+ function kn(e) {
756
+ return !!(e && typeof e == "object" && e.type === Ue.number);
755
757
  }
756
758
  function $t(e) {
757
- return !!(e && typeof e == "object" && e.type === Ge.dateTime);
759
+ return !!(e && typeof e == "object" && e.type === Ue.dateTime);
758
760
  }
759
- 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;
761
+ var jn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ai = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
760
762
  function oi(e) {
761
763
  var t = {};
762
- return e.replace(ii, function(n) {
764
+ return e.replace(ai, function(n) {
763
765
  var r = n.length;
764
766
  switch (n[0]) {
765
767
  case "G":
@@ -848,36 +850,36 @@ function oi(e) {
848
850
  return "";
849
851
  }), t;
850
852
  }
851
- var ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
852
- function si(e) {
853
+ var si = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
854
+ function li(e) {
853
855
  if (e.length === 0)
854
856
  throw new Error("Number skeleton cannot be empty");
855
- for (var t = e.split(ai).filter(function(g) {
856
- return g.length > 0;
857
+ for (var t = e.split(si).filter(function(b) {
858
+ return b.length > 0;
857
859
  }), n = [], r = 0, i = t; r < i.length; r++) {
858
- var o = i[r], l = o.split("/");
860
+ var a = i[r], l = a.split("/");
859
861
  if (l.length === 0)
860
862
  throw new Error("Invalid number skeleton");
861
863
  for (var s = l[0], h = l.slice(1), u = 0, d = h; u < d.length; u++) {
862
- var m = d[u];
863
- if (m.length === 0)
864
+ var g = d[u];
865
+ if (g.length === 0)
864
866
  throw new Error("Invalid number skeleton");
865
867
  }
866
868
  n.push({ stem: s, options: h });
867
869
  }
868
870
  return n;
869
871
  }
870
- function li(e) {
872
+ function ui(e) {
871
873
  return e.replace(/^(.*?)-/, "");
872
874
  }
873
- var sn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kn = /^(@+)?(\+|#+)?[rs]?$/g, ui = /(\*)(0+)|(#+)(0+)|(0+)/g, jn = /^(0+)$/;
874
- function ln(e) {
875
+ var un = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vn = /^(@+)?(\+|#+)?[rs]?$/g, ci = /(\*)(0+)|(#+)(0+)|(0+)/g, Xn = /^(0+)$/;
876
+ function cn(e) {
875
877
  var t = {};
876
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kn, function(n, r, i) {
878
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vn, function(n, r, i) {
877
879
  return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
878
880
  }), t;
879
881
  }
880
- function Vn(e) {
882
+ function zn(e) {
881
883
  switch (e) {
882
884
  case "sign-auto":
883
885
  return {
@@ -917,7 +919,7 @@ function Vn(e) {
917
919
  };
918
920
  }
919
921
  }
920
- function ci(e) {
922
+ function hi(e) {
921
923
  var t;
922
924
  if (e[0] === "E" && e[1] === "E" ? (t = {
923
925
  notation: "engineering"
@@ -925,17 +927,17 @@ function ci(e) {
925
927
  notation: "scientific"
926
928
  }, e = e.slice(1)), t) {
927
929
  var n = e.slice(0, 2);
928
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jn.test(e))
930
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xn.test(e))
929
931
  throw new Error("Malformed concise eng/scientific notation");
930
932
  t.minimumIntegerDigits = e.length;
931
933
  }
932
934
  return t;
933
935
  }
934
- function un(e) {
935
- var t = {}, n = Vn(e);
936
+ function hn(e) {
937
+ var t = {}, n = zn(e);
936
938
  return n || t;
937
939
  }
938
- function hi(e) {
940
+ function fi(e) {
939
941
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
940
942
  var i = r[n];
941
943
  switch (i.stem) {
@@ -959,7 +961,7 @@ function hi(e) {
959
961
  continue;
960
962
  case "measure-unit":
961
963
  case "unit":
962
- t.style = "unit", t.unit = li(i.options[0]);
964
+ t.style = "unit", t.unit = ui(i.options[0]);
963
965
  continue;
964
966
  case "compact-short":
965
967
  case "K":
@@ -971,12 +973,12 @@ function hi(e) {
971
973
  continue;
972
974
  case "scientific":
973
975
  t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
974
- return I(I({}, h), un(u));
976
+ return I(I({}, h), hn(u));
975
977
  }, {}));
976
978
  continue;
977
979
  case "engineering":
978
980
  t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
979
- return I(I({}, h), un(u));
981
+ return I(I({}, h), hn(u));
980
982
  }, {}));
981
983
  continue;
982
984
  case "notation-simple":
@@ -1021,11 +1023,11 @@ function hi(e) {
1021
1023
  case "integer-width":
1022
1024
  if (i.options.length > 1)
1023
1025
  throw new RangeError("integer-width stems only accept a single optional option");
1024
- i.options[0].replace(ui, function(h, u, d, m, g, _) {
1026
+ i.options[0].replace(ci, function(h, u, d, g, b, _) {
1025
1027
  if (u)
1026
1028
  t.minimumIntegerDigits = d.length;
1027
1029
  else {
1028
- if (m && g)
1030
+ if (g && b)
1029
1031
  throw new Error("We currently do not support maximum integer digits");
1030
1032
  if (_)
1031
1033
  throw new Error("We currently do not support exact integer digits");
@@ -1034,32 +1036,32 @@ function hi(e) {
1034
1036
  });
1035
1037
  continue;
1036
1038
  }
1037
- if (jn.test(i.stem)) {
1039
+ if (Xn.test(i.stem)) {
1038
1040
  t.minimumIntegerDigits = i.stem.length;
1039
1041
  continue;
1040
1042
  }
1041
- if (sn.test(i.stem)) {
1043
+ if (un.test(i.stem)) {
1042
1044
  if (i.options.length > 1)
1043
1045
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1044
- i.stem.replace(sn, function(h, u, d, m, g, _) {
1045
- 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), "";
1046
+ i.stem.replace(un, function(h, u, d, g, b, _) {
1047
+ return d === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1046
1048
  });
1047
- var o = i.options[0];
1048
- o === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = I(I({}, t), ln(o)));
1049
+ var a = i.options[0];
1050
+ a === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = I(I({}, t), cn(a)));
1049
1051
  continue;
1050
1052
  }
1051
- if (kn.test(i.stem)) {
1052
- t = I(I({}, t), ln(i.stem));
1053
+ if (Vn.test(i.stem)) {
1054
+ t = I(I({}, t), cn(i.stem));
1053
1055
  continue;
1054
1056
  }
1055
- var l = Vn(i.stem);
1057
+ var l = zn(i.stem);
1056
1058
  l && (t = I(I({}, t), l));
1057
- var s = ci(i.stem);
1059
+ var s = hi(i.stem);
1058
1060
  s && (t = I(I({}, t), s));
1059
1061
  }
1060
1062
  return t;
1061
1063
  }
1062
- var ut = {
1064
+ var ct = {
1063
1065
  "001": [
1064
1066
  "H",
1065
1067
  "h"
@@ -2474,13 +2476,13 @@ var ut = {
2474
2476
  "h"
2475
2477
  ]
2476
2478
  };
2477
- function fi(e, t) {
2479
+ function di(e, t) {
2478
2480
  for (var n = "", r = 0; r < e.length; r++) {
2479
2481
  var i = e.charAt(r);
2480
2482
  if (i === "j") {
2481
- for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2482
- o++, r++;
2483
- var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = di(t);
2483
+ for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2484
+ a++, r++;
2485
+ var l = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), h = "a", u = pi(t);
2484
2486
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2485
2487
  n += h;
2486
2488
  for (; l-- > 0; )
@@ -2490,7 +2492,7 @@ function fi(e, t) {
2490
2492
  }
2491
2493
  return n;
2492
2494
  }
2493
- function di(e) {
2495
+ function pi(e) {
2494
2496
  var t = e.hourCycle;
2495
2497
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2496
2498
  e.hourCycles && // @ts-ignore
@@ -2509,23 +2511,23 @@ function di(e) {
2509
2511
  }
2510
2512
  var n = e.language, r;
2511
2513
  n !== "root" && (r = e.maximize().region);
2512
- var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
2514
+ var i = ct[r || ""] || ct[n || ""] || ct["".concat(n, "-001")] || ct["001"];
2513
2515
  return i[0];
2514
2516
  }
2515
- var Nt, pi = new RegExp("^".concat($n.source, "*")), mi = new RegExp("".concat($n.source, "*$"));
2516
- function M(e, t) {
2517
+ var Nt, mi = new RegExp("^".concat(jn.source, "*")), gi = new RegExp("".concat(jn.source, "*$"));
2518
+ function L(e, t) {
2517
2519
  return { start: e, end: t };
2518
2520
  }
2519
- 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) {
2521
+ var bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), yi = !!String.fromCodePoint, vi = !!Object.fromEntries, Ei = !!String.prototype.codePointAt, xi = !!String.prototype.trimStart, _i = !!String.prototype.trimEnd, Bi = !!Number.isSafeInteger, Ti = Bi ? Number.isSafeInteger : function(e) {
2520
2522
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2521
2523
  }, kt = !0;
2522
2524
  try {
2523
- var Ti = zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2524
- kt = ((Nt = Ti.exec("a")) === null || Nt === void 0 ? void 0 : Nt[0]) === "a";
2525
+ var wi = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2526
+ kt = ((Nt = wi.exec("a")) === null || Nt === void 0 ? void 0 : Nt[0]) === "a";
2525
2527
  } catch {
2526
2528
  kt = !1;
2527
2529
  }
2528
- var cn = gi ? (
2530
+ var fn = bi ? (
2529
2531
  // Native
2530
2532
  function(t, n, r) {
2531
2533
  return t.startsWith(n, r);
@@ -2535,31 +2537,31 @@ var cn = gi ? (
2535
2537
  function(t, n, r) {
2536
2538
  return t.slice(r, r + n.length) === n;
2537
2539
  }
2538
- ), jt = bi ? String.fromCodePoint : (
2540
+ ), jt = yi ? String.fromCodePoint : (
2539
2541
  // IE11
2540
2542
  function() {
2541
2543
  for (var t = [], n = 0; n < arguments.length; n++)
2542
2544
  t[n] = arguments[n];
2543
- for (var r = "", i = t.length, o = 0, l; i > o; ) {
2544
- if (l = t[o++], l > 1114111)
2545
+ for (var r = "", i = t.length, a = 0, l; i > a; ) {
2546
+ if (l = t[a++], l > 1114111)
2545
2547
  throw RangeError(l + " is not a valid code point");
2546
2548
  r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
2547
2549
  }
2548
2550
  return r;
2549
2551
  }
2550
- ), hn = (
2552
+ ), dn = (
2551
2553
  // native
2552
- yi ? Object.fromEntries : (
2554
+ vi ? Object.fromEntries : (
2553
2555
  // Ponyfill
2554
2556
  function(t) {
2555
2557
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
2556
- var o = i[r], l = o[0], s = o[1];
2558
+ var a = i[r], l = a[0], s = a[1];
2557
2559
  n[l] = s;
2558
2560
  }
2559
2561
  return n;
2560
2562
  }
2561
2563
  )
2562
- ), Xn = vi ? (
2564
+ ), Wn = Ei ? (
2563
2565
  // Native
2564
2566
  function(t, n) {
2565
2567
  return t.codePointAt(n);
@@ -2569,11 +2571,11 @@ var cn = gi ? (
2569
2571
  function(t, n) {
2570
2572
  var r = t.length;
2571
2573
  if (!(n < 0 || n >= r)) {
2572
- var i = t.charCodeAt(n), o;
2573
- return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2574
+ var i = t.charCodeAt(n), a;
2575
+ return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2574
2576
  }
2575
2577
  }
2576
- ), wi = Ei ? (
2578
+ ), Si = xi ? (
2577
2579
  // Native
2578
2580
  function(t) {
2579
2581
  return t.trimStart();
@@ -2581,9 +2583,9 @@ var cn = gi ? (
2581
2583
  ) : (
2582
2584
  // Ponyfill
2583
2585
  function(t) {
2584
- return t.replace(pi, "");
2586
+ return t.replace(mi, "");
2585
2587
  }
2586
- ), Si = xi ? (
2588
+ ), Ai = _i ? (
2587
2589
  // Native
2588
2590
  function(t) {
2589
2591
  return t.trimEnd();
@@ -2591,32 +2593,32 @@ var cn = gi ? (
2591
2593
  ) : (
2592
2594
  // Ponyfill
2593
2595
  function(t) {
2594
- return t.replace(mi, "");
2596
+ return t.replace(gi, "");
2595
2597
  }
2596
2598
  );
2597
- function zn(e, t) {
2599
+ function Zn(e, t) {
2598
2600
  return new RegExp(e, t);
2599
2601
  }
2600
2602
  var Vt;
2601
2603
  if (kt) {
2602
- var fn = zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2604
+ var pn = Zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2603
2605
  Vt = function(t, n) {
2604
2606
  var r;
2605
- fn.lastIndex = n;
2606
- var i = fn.exec(t);
2607
+ pn.lastIndex = n;
2608
+ var i = pn.exec(t);
2607
2609
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2608
2610
  };
2609
2611
  } else
2610
2612
  Vt = function(t, n) {
2611
2613
  for (var r = []; ; ) {
2612
- var i = Xn(t, n);
2613
- if (i === void 0 || Wn(i) || Oi(i))
2614
+ var i = Wn(t, n);
2615
+ if (i === void 0 || qn(i) || Ri(i))
2614
2616
  break;
2615
2617
  r.push(i), n += i >= 65536 ? 2 : 1;
2616
2618
  }
2617
2619
  return jt.apply(void 0, r);
2618
2620
  };
2619
- var Ai = (
2621
+ var Ci = (
2620
2622
  /** @class */
2621
2623
  function() {
2622
2624
  function e(t, n) {
@@ -2628,26 +2630,26 @@ var Ai = (
2628
2630
  return this.parseMessage(0, "", !1);
2629
2631
  }, e.prototype.parseMessage = function(t, n, r) {
2630
2632
  for (var i = []; !this.isEOF(); ) {
2631
- var o = this.char();
2632
- if (o === 123) {
2633
+ var a = this.char();
2634
+ if (a === 123) {
2633
2635
  var l = this.parseArgument(t, r);
2634
2636
  if (l.err)
2635
2637
  return l;
2636
2638
  i.push(l.val);
2637
2639
  } else {
2638
- if (o === 125 && t > 0)
2640
+ if (a === 125 && t > 0)
2639
2641
  break;
2640
- if (o === 35 && (n === "plural" || n === "selectordinal")) {
2642
+ if (a === 35 && (n === "plural" || n === "selectordinal")) {
2641
2643
  var s = this.clonePosition();
2642
2644
  this.bump(), i.push({
2643
2645
  type: k.pound,
2644
- location: M(s, this.clonePosition())
2646
+ location: L(s, this.clonePosition())
2645
2647
  });
2646
- } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2648
+ } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2647
2649
  if (r)
2648
2650
  break;
2649
- return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
2650
- } else if (o === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
2651
+ return this.error(R.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2652
+ } else if (a === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
2651
2653
  var l = this.parseTag(t, n);
2652
2654
  if (l.err)
2653
2655
  return l;
@@ -2670,42 +2672,42 @@ var Ai = (
2670
2672
  val: {
2671
2673
  type: k.literal,
2672
2674
  value: "<".concat(i, "/>"),
2673
- location: M(r, this.clonePosition())
2675
+ location: L(r, this.clonePosition())
2674
2676
  },
2675
2677
  err: null
2676
2678
  };
2677
2679
  if (this.bumpIf(">")) {
2678
- var o = this.parseMessage(t + 1, n, !0);
2679
- if (o.err)
2680
- return o;
2681
- var l = o.val, s = this.clonePosition();
2680
+ var a = this.parseMessage(t + 1, n, !0);
2681
+ if (a.err)
2682
+ return a;
2683
+ var l = a.val, s = this.clonePosition();
2682
2684
  if (this.bumpIf("</")) {
2683
2685
  if (this.isEOF() || !Xt(this.char()))
2684
- return this.error(O.INVALID_TAG, M(s, this.clonePosition()));
2686
+ return this.error(R.INVALID_TAG, L(s, this.clonePosition()));
2685
2687
  var h = this.clonePosition(), u = this.parseTagName();
2686
- return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, M(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2688
+ return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, L(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2687
2689
  val: {
2688
2690
  type: k.tag,
2689
2691
  value: i,
2690
2692
  children: l,
2691
- location: M(r, this.clonePosition())
2693
+ location: L(r, this.clonePosition())
2692
2694
  },
2693
2695
  err: null
2694
- } : this.error(O.INVALID_TAG, M(s, this.clonePosition())));
2696
+ } : this.error(R.INVALID_TAG, L(s, this.clonePosition())));
2695
2697
  } else
2696
- return this.error(O.UNCLOSED_TAG, M(r, this.clonePosition()));
2698
+ return this.error(R.UNCLOSED_TAG, L(r, this.clonePosition()));
2697
2699
  } else
2698
- return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
2700
+ return this.error(R.INVALID_TAG, L(r, this.clonePosition()));
2699
2701
  }, e.prototype.parseTagName = function() {
2700
2702
  var t = this.offset();
2701
- for (this.bump(); !this.isEOF() && Hi(this.char()); )
2703
+ for (this.bump(); !this.isEOF() && Oi(this.char()); )
2702
2704
  this.bump();
2703
2705
  return this.message.slice(t, this.offset());
2704
2706
  }, e.prototype.parseLiteral = function(t, n) {
2705
2707
  for (var r = this.clonePosition(), i = ""; ; ) {
2706
- var o = this.tryParseQuote(n);
2707
- if (o) {
2708
- i += o;
2708
+ var a = this.tryParseQuote(n);
2709
+ if (a) {
2710
+ i += a;
2709
2711
  continue;
2710
2712
  }
2711
2713
  var l = this.tryParseUnquoted(t, n);
@@ -2720,14 +2722,14 @@ var Ai = (
2720
2722
  }
2721
2723
  break;
2722
2724
  }
2723
- var h = M(r, this.clonePosition());
2725
+ var h = L(r, this.clonePosition());
2724
2726
  return {
2725
2727
  val: { type: k.literal, value: i, location: h },
2726
2728
  err: null
2727
2729
  };
2728
2730
  }, e.prototype.tryParseLeftAngleBracket = function() {
2729
2731
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2730
- !Ci(this.peek() || 0)) ? (this.bump(), "<") : null;
2732
+ !Hi(this.peek() || 0)) ? (this.bump(), "<") : null;
2731
2733
  }, e.prototype.tryParseQuote = function(t) {
2732
2734
  if (this.isEOF() || this.char() !== 39)
2733
2735
  return null;
@@ -2770,14 +2772,14 @@ var Ai = (
2770
2772
  }, e.prototype.parseArgument = function(t, n) {
2771
2773
  var r = this.clonePosition();
2772
2774
  if (this.bump(), this.bumpSpace(), this.isEOF())
2773
- return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2775
+ return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2774
2776
  if (this.char() === 125)
2775
- return this.bump(), this.error(O.EMPTY_ARGUMENT, M(r, this.clonePosition()));
2777
+ return this.bump(), this.error(R.EMPTY_ARGUMENT, L(r, this.clonePosition()));
2776
2778
  var i = this.parseIdentifierIfPossible().value;
2777
2779
  if (!i)
2778
- return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2780
+ return this.error(R.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2779
2781
  if (this.bumpSpace(), this.isEOF())
2780
- return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2782
+ return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2781
2783
  switch (this.char()) {
2782
2784
  case 125:
2783
2785
  return this.bump(), {
@@ -2785,25 +2787,25 @@ var Ai = (
2785
2787
  type: k.argument,
2786
2788
  // value does not include the opening and closing braces.
2787
2789
  value: i,
2788
- location: M(r, this.clonePosition())
2790
+ location: L(r, this.clonePosition())
2789
2791
  },
2790
2792
  err: null
2791
2793
  };
2792
2794
  case 44:
2793
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2795
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2794
2796
  default:
2795
- return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2797
+ return this.error(R.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2796
2798
  }
2797
2799
  }, e.prototype.parseIdentifierIfPossible = function() {
2798
2800
  var t = this.clonePosition(), n = this.offset(), r = Vt(this.message, n), i = n + r.length;
2799
2801
  this.bumpTo(i);
2800
- var o = this.clonePosition(), l = M(t, o);
2802
+ var a = this.clonePosition(), l = L(t, a);
2801
2803
  return { value: r, location: l };
2802
2804
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2803
- var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2805
+ var a, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2804
2806
  switch (s) {
2805
2807
  case "":
2806
- return this.error(O.EXPECT_ARGUMENT_TYPE, M(l, h));
2808
+ return this.error(R.EXPECT_ARGUMENT_TYPE, L(l, h));
2807
2809
  case "number":
2808
2810
  case "date":
2809
2811
  case "time": {
@@ -2811,40 +2813,40 @@ var Ai = (
2811
2813
  var u = null;
2812
2814
  if (this.bumpIf(",")) {
2813
2815
  this.bumpSpace();
2814
- var d = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2815
- if (m.err)
2816
- return m;
2817
- var g = Si(m.val);
2818
- if (g.length === 0)
2819
- return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
2820
- var _ = M(d, this.clonePosition());
2821
- u = { style: g, styleLocation: _ };
2816
+ var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2817
+ if (g.err)
2818
+ return g;
2819
+ var b = Ai(g.val);
2820
+ if (b.length === 0)
2821
+ return this.error(R.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2822
+ var _ = L(d, this.clonePosition());
2823
+ u = { style: b, styleLocation: _ };
2822
2824
  }
2823
- var B = this.tryParseArgumentClose(i);
2824
- if (B.err)
2825
- return B;
2826
- var T = M(i, this.clonePosition());
2827
- if (u && cn(u?.style, "::", 0)) {
2828
- var x = wi(u.style.slice(2));
2825
+ var T = this.tryParseArgumentClose(i);
2826
+ if (T.err)
2827
+ return T;
2828
+ var S = L(i, this.clonePosition());
2829
+ if (u && fn(u?.style, "::", 0)) {
2830
+ var x = Si(u.style.slice(2));
2829
2831
  if (s === "number") {
2830
- var m = this.parseNumberSkeletonFromString(x, u.styleLocation);
2831
- return m.err ? m : {
2832
- val: { type: k.number, value: r, location: T, style: m.val },
2832
+ var g = this.parseNumberSkeletonFromString(x, u.styleLocation);
2833
+ return g.err ? g : {
2834
+ val: { type: k.number, value: r, location: S, style: g.val },
2833
2835
  err: null
2834
2836
  };
2835
2837
  } else {
2836
2838
  if (x.length === 0)
2837
- return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
2838
- var S = x;
2839
- this.locale && (S = fi(x, this.locale));
2840
- var g = {
2841
- type: Ge.dateTime,
2842
- pattern: S,
2839
+ return this.error(R.EXPECT_DATE_TIME_SKELETON, S);
2840
+ var C = x;
2841
+ this.locale && (C = di(x, this.locale));
2842
+ var b = {
2843
+ type: Ue.dateTime,
2844
+ pattern: C,
2843
2845
  location: u.styleLocation,
2844
- parsedOptions: this.shouldParseSkeletons ? oi(S) : {}
2846
+ parsedOptions: this.shouldParseSkeletons ? oi(C) : {}
2845
2847
  }, D = s === "date" ? k.date : k.time;
2846
2848
  return {
2847
- val: { type: D, value: r, location: T, style: g },
2849
+ val: { type: D, value: r, location: S, style: b },
2848
2850
  err: null
2849
2851
  };
2850
2852
  }
@@ -2853,8 +2855,8 @@ var Ai = (
2853
2855
  val: {
2854
2856
  type: s === "number" ? k.number : s === "date" ? k.date : k.time,
2855
2857
  value: r,
2856
- location: T,
2857
- style: (o = u?.style) !== null && o !== void 0 ? o : null
2858
+ location: S,
2859
+ style: (a = u?.style) !== null && a !== void 0 ? a : null
2858
2860
  },
2859
2861
  err: null
2860
2862
  };
@@ -2862,52 +2864,52 @@ var Ai = (
2862
2864
  case "plural":
2863
2865
  case "selectordinal":
2864
2866
  case "select": {
2865
- var H = this.clonePosition();
2867
+ var O = this.clonePosition();
2866
2868
  if (this.bumpSpace(), !this.bumpIf(","))
2867
- return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H, I({}, H)));
2869
+ return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, L(O, I({}, O)));
2868
2870
  this.bumpSpace();
2869
- var U = this.parseIdentifierIfPossible(), W = 0;
2871
+ var U = this.parseIdentifierIfPossible(), q = 0;
2870
2872
  if (s !== "select" && U.value === "offset") {
2871
2873
  if (!this.bumpIf(":"))
2872
- return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
2874
+ return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2873
2875
  this.bumpSpace();
2874
- var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2875
- if (m.err)
2876
- return m;
2877
- this.bumpSpace(), U = this.parseIdentifierIfPossible(), W = m.val;
2876
+ var g = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2877
+ if (g.err)
2878
+ return g;
2879
+ this.bumpSpace(), U = this.parseIdentifierIfPossible(), q = g.val;
2878
2880
  }
2879
- var q = this.tryParsePluralOrSelectOptions(t, s, n, U);
2880
- if (q.err)
2881
- return q;
2882
- var B = this.tryParseArgumentClose(i);
2883
- if (B.err)
2884
- return B;
2885
- var Y = M(i, this.clonePosition());
2881
+ var re = this.tryParsePluralOrSelectOptions(t, s, n, U);
2882
+ if (re.err)
2883
+ return re;
2884
+ var T = this.tryParseArgumentClose(i);
2885
+ if (T.err)
2886
+ return T;
2887
+ var z = L(i, this.clonePosition());
2886
2888
  return s === "select" ? {
2887
2889
  val: {
2888
2890
  type: k.select,
2889
2891
  value: r,
2890
- options: hn(q.val),
2891
- location: Y
2892
+ options: dn(re.val),
2893
+ location: z
2892
2894
  },
2893
2895
  err: null
2894
2896
  } : {
2895
2897
  val: {
2896
2898
  type: k.plural,
2897
2899
  value: r,
2898
- options: hn(q.val),
2899
- offset: W,
2900
+ options: dn(re.val),
2901
+ offset: q,
2900
2902
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2901
- location: Y
2903
+ location: z
2902
2904
  },
2903
2905
  err: null
2904
2906
  };
2905
2907
  }
2906
2908
  default:
2907
- return this.error(O.INVALID_ARGUMENT_TYPE, M(l, h));
2909
+ return this.error(R.INVALID_ARGUMENT_TYPE, L(l, h));
2908
2910
  }
2909
2911
  }, e.prototype.tryParseArgumentClose = function(t) {
2910
- return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2912
+ return this.isEOF() || this.char() !== 125 ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2911
2913
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2912
2914
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2913
2915
  var r = this.char();
@@ -2916,7 +2918,7 @@ var Ai = (
2916
2918
  this.bump();
2917
2919
  var i = this.clonePosition();
2918
2920
  if (!this.bumpUntil("'"))
2919
- return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(i, this.clonePosition()));
2921
+ return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
2920
2922
  this.bump();
2921
2923
  break;
2922
2924
  }
@@ -2946,64 +2948,64 @@ var Ai = (
2946
2948
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2947
2949
  var r = [];
2948
2950
  try {
2949
- r = si(t);
2951
+ r = li(t);
2950
2952
  } catch {
2951
- return this.error(O.INVALID_NUMBER_SKELETON, n);
2953
+ return this.error(R.INVALID_NUMBER_SKELETON, n);
2952
2954
  }
2953
2955
  return {
2954
2956
  val: {
2955
- type: Ge.number,
2957
+ type: Ue.number,
2956
2958
  tokens: r,
2957
2959
  location: n,
2958
- parsedOptions: this.shouldParseSkeletons ? hi(r) : {}
2960
+ parsedOptions: this.shouldParseSkeletons ? fi(r) : {}
2959
2961
  },
2960
2962
  err: null
2961
2963
  };
2962
2964
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2963
- for (var o, l = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
2965
+ for (var a, l = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
2964
2966
  if (u.length === 0) {
2965
- var m = this.clonePosition();
2967
+ var g = this.clonePosition();
2966
2968
  if (n !== "select" && this.bumpIf("=")) {
2967
- var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
2968
- if (g.err)
2969
- return g;
2970
- d = M(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
2969
+ var b = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR, R.INVALID_PLURAL_ARGUMENT_SELECTOR);
2970
+ if (b.err)
2971
+ return b;
2972
+ d = L(g, this.clonePosition()), u = this.message.slice(g.offset, this.offset());
2971
2973
  } else
2972
2974
  break;
2973
2975
  }
2974
2976
  if (h.has(u))
2975
- return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2977
+ return this.error(n === "select" ? R.DUPLICATE_SELECT_ARGUMENT_SELECTOR : R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2976
2978
  u === "other" && (l = !0), this.bumpSpace();
2977
2979
  var _ = this.clonePosition();
2978
2980
  if (!this.bumpIf("{"))
2979
- return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
2980
- var B = this.parseMessage(t + 1, n, r);
2981
- if (B.err)
2982
- return B;
2983
- var T = this.tryParseArgumentClose(_);
2981
+ return this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
2982
+ var T = this.parseMessage(t + 1, n, r);
2984
2983
  if (T.err)
2985
2984
  return T;
2985
+ var S = this.tryParseArgumentClose(_);
2986
+ if (S.err)
2987
+ return S;
2986
2988
  s.push([
2987
2989
  u,
2988
2990
  {
2989
- value: B.val,
2990
- location: M(_, this.clonePosition())
2991
+ value: T.val,
2992
+ location: L(_, this.clonePosition())
2991
2993
  }
2992
- ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
2994
+ ]), h.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, d = a.location;
2993
2995
  }
2994
- 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 };
2996
+ 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 };
2995
2997
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
2996
2998
  var r = 1, i = this.clonePosition();
2997
2999
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
2998
- for (var o = !1, l = 0; !this.isEOF(); ) {
3000
+ for (var a = !1, l = 0; !this.isEOF(); ) {
2999
3001
  var s = this.char();
3000
3002
  if (s >= 48 && s <= 57)
3001
- o = !0, l = l * 10 + (s - 48), this.bump();
3003
+ a = !0, l = l * 10 + (s - 48), this.bump();
3002
3004
  else
3003
3005
  break;
3004
3006
  }
3005
- var h = M(i, this.clonePosition());
3006
- return o ? (l *= r, Bi(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
3007
+ var h = L(i, this.clonePosition());
3008
+ return a ? (l *= r, Ti(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
3007
3009
  }, e.prototype.offset = function() {
3008
3010
  return this.position.offset;
3009
3011
  }, e.prototype.isEOF = function() {
@@ -3018,7 +3020,7 @@ var Ai = (
3018
3020
  var t = this.position.offset;
3019
3021
  if (t >= this.message.length)
3020
3022
  throw Error("out of bound");
3021
- var n = Xn(this.message, t);
3023
+ var n = Wn(this.message, t);
3022
3024
  if (n === void 0)
3023
3025
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3024
3026
  return n;
@@ -3037,7 +3039,7 @@ var Ai = (
3037
3039
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3038
3040
  }
3039
3041
  }, e.prototype.bumpIf = function(t) {
3040
- if (cn(this.message, t, this.offset())) {
3042
+ if (fn(this.message, t, this.offset())) {
3041
3043
  for (var n = 0; n < t.length; n++)
3042
3044
  this.bump();
3043
3045
  return !0;
@@ -3059,7 +3061,7 @@ var Ai = (
3059
3061
  break;
3060
3062
  }
3061
3063
  }, e.prototype.bumpSpace = function() {
3062
- for (; !this.isEOF() && Wn(this.char()); )
3064
+ for (; !this.isEOF() && qn(this.char()); )
3063
3065
  this.bump();
3064
3066
  }, e.prototype.peek = function() {
3065
3067
  if (this.isEOF())
@@ -3072,94 +3074,94 @@ var Ai = (
3072
3074
  function Xt(e) {
3073
3075
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3074
3076
  }
3075
- function Ci(e) {
3077
+ function Hi(e) {
3076
3078
  return Xt(e) || e === 47;
3077
3079
  }
3078
- function Hi(e) {
3080
+ function Oi(e) {
3079
3081
  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;
3080
3082
  }
3081
- function Wn(e) {
3083
+ function qn(e) {
3082
3084
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3083
3085
  }
3084
- function Oi(e) {
3086
+ function Ri(e) {
3085
3087
  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;
3086
3088
  }
3087
3089
  function zt(e) {
3088
3090
  e.forEach(function(t) {
3089
- if (delete t.location, Dn(t) || Un(t))
3091
+ if (delete t.location, Fn(t) || Gn(t))
3090
3092
  for (var n in t.options)
3091
3093
  delete t.options[n].location, zt(t.options[n].value);
3092
3094
  else
3093
- Nn(t) && Gn(t.style) || (In(t) || Pn(t)) && $t(t.style) ? delete t.style.location : Fn(t) && zt(t.children);
3095
+ Pn(t) && kn(t.style) || (Dn(t) || Un(t)) && $t(t.style) ? delete t.style.location : $n(t) && zt(t.children);
3094
3096
  });
3095
3097
  }
3096
- function Ri(e, t) {
3098
+ function Li(e, t) {
3097
3099
  t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3098
- var n = new Ai(e, t).parse();
3100
+ var n = new Ci(e, t).parse();
3099
3101
  if (n.err) {
3100
- var r = SyntaxError(O[n.err.kind]);
3102
+ var r = SyntaxError(R[n.err.kind]);
3101
3103
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3102
3104
  }
3103
3105
  return t?.captureLocation || zt(n.val), n.val;
3104
3106
  }
3105
- var $e;
3107
+ var Fe;
3106
3108
  (function(e) {
3107
3109
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3108
- })($e || ($e = {}));
3109
- var Et = (
3110
+ })(Fe || (Fe = {}));
3111
+ var xt = (
3110
3112
  /** @class */
3111
3113
  function(e) {
3112
- vt(t, e);
3114
+ Et(t, e);
3113
3115
  function t(n, r, i) {
3114
- var o = e.call(this, n) || this;
3115
- return o.code = r, o.originalMessage = i, o;
3116
+ var a = e.call(this, n) || this;
3117
+ return a.code = r, a.originalMessage = i, a;
3116
3118
  }
3117
3119
  return t.prototype.toString = function() {
3118
3120
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3119
3121
  }, t;
3120
3122
  }(Error)
3121
- ), dn = (
3123
+ ), mn = (
3122
3124
  /** @class */
3123
3125
  function(e) {
3124
- vt(t, e);
3125
- function t(n, r, i, o) {
3126
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
3126
+ Et(t, e);
3127
+ function t(n, r, i, a) {
3128
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Fe.INVALID_VALUE, a) || this;
3127
3129
  }
3128
3130
  return t;
3129
- }(Et)
3130
- ), Li = (
3131
+ }(xt)
3132
+ ), Mi = (
3131
3133
  /** @class */
3132
3134
  function(e) {
3133
- vt(t, e);
3135
+ Et(t, e);
3134
3136
  function t(n, r, i) {
3135
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
3137
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Fe.INVALID_VALUE, i) || this;
3136
3138
  }
3137
3139
  return t;
3138
- }(Et)
3139
- ), Mi = (
3140
+ }(xt)
3141
+ ), Ni = (
3140
3142
  /** @class */
3141
3143
  function(e) {
3142
- vt(t, e);
3144
+ Et(t, e);
3143
3145
  function t(n, r) {
3144
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
3146
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Fe.MISSING_VALUE, r) || this;
3145
3147
  }
3146
3148
  return t;
3147
- }(Et)
3149
+ }(xt)
3148
3150
  ), ne;
3149
3151
  (function(e) {
3150
3152
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3151
3153
  })(ne || (ne = {}));
3152
- function Ni(e) {
3154
+ function Ii(e) {
3153
3155
  return e.length < 2 ? e : e.reduce(function(t, n) {
3154
3156
  var r = t[t.length - 1];
3155
3157
  return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
3156
3158
  }, []);
3157
3159
  }
3158
- function Ii(e) {
3160
+ function Pi(e) {
3159
3161
  return typeof e == "function";
3160
3162
  }
3161
- function ht(e, t, n, r, i, o, l) {
3162
- if (e.length === 1 && an(e[0]))
3163
+ function ft(e, t, n, r, i, a, l) {
3164
+ if (e.length === 1 && ln(e[0]))
3163
3165
  return [
3164
3166
  {
3165
3167
  type: ne.literal,
@@ -3168,102 +3170,102 @@ function ht(e, t, n, r, i, o, l) {
3168
3170
  ];
3169
3171
  for (var s = [], h = 0, u = e; h < u.length; h++) {
3170
3172
  var d = u[h];
3171
- if (an(d)) {
3173
+ if (ln(d)) {
3172
3174
  s.push({
3173
3175
  type: ne.literal,
3174
3176
  value: d.value
3175
3177
  });
3176
3178
  continue;
3177
3179
  }
3178
- if (ri(d)) {
3179
- typeof o == "number" && s.push({
3180
+ if (ii(d)) {
3181
+ typeof a == "number" && s.push({
3180
3182
  type: ne.literal,
3181
- value: n.getNumberFormat(t).format(o)
3183
+ value: n.getNumberFormat(t).format(a)
3182
3184
  });
3183
3185
  continue;
3184
3186
  }
3185
- var m = d.value;
3186
- if (!(i && m in i))
3187
- throw new Mi(m, l);
3188
- var g = i[m];
3189
- if (ni(d)) {
3190
- (!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
3191
- type: typeof g == "string" ? ne.literal : ne.object,
3192
- value: g
3187
+ var g = d.value;
3188
+ if (!(i && g in i))
3189
+ throw new Ni(g, l);
3190
+ var b = i[g];
3191
+ if (ri(d)) {
3192
+ (!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
3193
+ type: typeof b == "string" ? ne.literal : ne.object,
3194
+ value: b
3193
3195
  });
3194
3196
  continue;
3195
3197
  }
3196
- if (In(d)) {
3198
+ if (Dn(d)) {
3197
3199
  var _ = typeof d.style == "string" ? r.date[d.style] : $t(d.style) ? d.style.parsedOptions : void 0;
3198
3200
  s.push({
3199
3201
  type: ne.literal,
3200
- value: n.getDateTimeFormat(t, _).format(g)
3202
+ value: n.getDateTimeFormat(t, _).format(b)
3201
3203
  });
3202
3204
  continue;
3203
3205
  }
3204
- if (Pn(d)) {
3206
+ if (Un(d)) {
3205
3207
  var _ = typeof d.style == "string" ? r.time[d.style] : $t(d.style) ? d.style.parsedOptions : r.time.medium;
3206
3208
  s.push({
3207
3209
  type: ne.literal,
3208
- value: n.getDateTimeFormat(t, _).format(g)
3210
+ value: n.getDateTimeFormat(t, _).format(b)
3209
3211
  });
3210
3212
  continue;
3211
3213
  }
3212
- if (Nn(d)) {
3213
- var _ = typeof d.style == "string" ? r.number[d.style] : Gn(d.style) ? d.style.parsedOptions : void 0;
3214
- _ && _.scale && (g = g * (_.scale || 1)), s.push({
3214
+ if (Pn(d)) {
3215
+ var _ = typeof d.style == "string" ? r.number[d.style] : kn(d.style) ? d.style.parsedOptions : void 0;
3216
+ _ && _.scale && (b = b * (_.scale || 1)), s.push({
3215
3217
  type: ne.literal,
3216
- value: n.getNumberFormat(t, _).format(g)
3218
+ value: n.getNumberFormat(t, _).format(b)
3217
3219
  });
3218
3220
  continue;
3219
3221
  }
3220
- if (Fn(d)) {
3221
- var B = d.children, T = d.value, x = i[T];
3222
- if (!Ii(x))
3223
- throw new Li(T, "function", l);
3224
- var S = ht(B, t, n, r, i, o), D = x(S.map(function(W) {
3225
- return W.value;
3222
+ if ($n(d)) {
3223
+ var T = d.children, S = d.value, x = i[S];
3224
+ if (!Pi(x))
3225
+ throw new Mi(S, "function", l);
3226
+ var C = ft(T, t, n, r, i, a), D = x(C.map(function(q) {
3227
+ return q.value;
3226
3228
  }));
3227
- Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(W) {
3229
+ Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(q) {
3228
3230
  return {
3229
- type: typeof W == "string" ? ne.literal : ne.object,
3230
- value: W
3231
+ type: typeof q == "string" ? ne.literal : ne.object,
3232
+ value: q
3231
3233
  };
3232
3234
  }));
3233
3235
  }
3234
- if (Dn(d)) {
3235
- var H = d.options[g] || d.options.other;
3236
- if (!H)
3237
- throw new dn(d.value, g, Object.keys(d.options), l);
3238
- s.push.apply(s, ht(H.value, t, n, r, i));
3236
+ if (Fn(d)) {
3237
+ var O = d.options[b] || d.options.other;
3238
+ if (!O)
3239
+ throw new mn(d.value, b, Object.keys(d.options), l);
3240
+ s.push.apply(s, ft(O.value, t, n, r, i));
3239
3241
  continue;
3240
3242
  }
3241
- if (Un(d)) {
3242
- var H = d.options["=".concat(g)];
3243
- if (!H) {
3243
+ if (Gn(d)) {
3244
+ var O = d.options["=".concat(b)];
3245
+ if (!O) {
3244
3246
  if (!Intl.PluralRules)
3245
- throw new Et(`Intl.PluralRules is not available in this environment.
3247
+ throw new xt(`Intl.PluralRules is not available in this environment.
3246
3248
  Try polyfilling it using "@formatjs/intl-pluralrules"
3247
- `, $e.MISSING_INTL_API, l);
3248
- var U = n.getPluralRules(t, { type: d.pluralType }).select(g - (d.offset || 0));
3249
- H = d.options[U] || d.options.other;
3249
+ `, Fe.MISSING_INTL_API, l);
3250
+ var U = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
3251
+ O = d.options[U] || d.options.other;
3250
3252
  }
3251
- if (!H)
3252
- throw new dn(d.value, g, Object.keys(d.options), l);
3253
- s.push.apply(s, ht(H.value, t, n, r, i, g - (d.offset || 0)));
3253
+ if (!O)
3254
+ throw new mn(d.value, b, Object.keys(d.options), l);
3255
+ s.push.apply(s, ft(O.value, t, n, r, i, b - (d.offset || 0)));
3254
3256
  continue;
3255
3257
  }
3256
3258
  }
3257
- return Ni(s);
3259
+ return Ii(s);
3258
3260
  }
3259
- function Pi(e, t) {
3261
+ function Di(e, t) {
3260
3262
  return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3261
3263
  return n[r] = I(I({}, e[r]), t[r] || {}), n;
3262
3264
  }, {})) : e;
3263
3265
  }
3264
- function Di(e, t) {
3266
+ function Ui(e, t) {
3265
3267
  return t ? Object.keys(e).reduce(function(n, r) {
3266
- return n[r] = Pi(e[r], t[r]), n;
3268
+ return n[r] = Di(e[r], t[r]), n;
3267
3269
  }, I({}, e)) : e;
3268
3270
  }
3269
3271
  function It(e) {
@@ -3280,7 +3282,7 @@ function It(e) {
3280
3282
  }
3281
3283
  };
3282
3284
  }
3283
- function Ui(e) {
3285
+ function Fi(e) {
3284
3286
  return e === void 0 && (e = {
3285
3287
  number: {},
3286
3288
  dateTime: {},
@@ -3312,45 +3314,45 @@ function Ui(e) {
3312
3314
  })
3313
3315
  };
3314
3316
  }
3315
- var Fi = (
3317
+ var Gi = (
3316
3318
  /** @class */
3317
3319
  function() {
3318
3320
  function e(t, n, r, i) {
3319
3321
  n === void 0 && (n = e.defaultLocale);
3320
- var o = this;
3322
+ var a = this;
3321
3323
  if (this.formatterCache = {
3322
3324
  number: {},
3323
3325
  dateTime: {},
3324
3326
  pluralRules: {}
3325
3327
  }, this.format = function(h) {
3326
- var u = o.formatToParts(h);
3328
+ var u = a.formatToParts(h);
3327
3329
  if (u.length === 1)
3328
3330
  return u[0].value;
3329
- var d = u.reduce(function(m, g) {
3330
- return !m.length || g.type !== ne.literal || typeof m[m.length - 1] != "string" ? m.push(g.value) : m[m.length - 1] += g.value, m;
3331
+ var d = u.reduce(function(g, b) {
3332
+ return !g.length || b.type !== ne.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
3331
3333
  }, []);
3332
3334
  return d.length <= 1 ? d[0] || "" : d;
3333
3335
  }, this.formatToParts = function(h) {
3334
- return ht(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3336
+ return ft(a.ast, a.locales, a.formatters, a.formats, h, void 0, a.message);
3335
3337
  }, this.resolvedOptions = function() {
3336
3338
  var h;
3337
3339
  return {
3338
- locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3340
+ locale: ((h = a.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3339
3341
  };
3340
3342
  }, this.getAst = function() {
3341
- return o.ast;
3343
+ return a.ast;
3342
3344
  }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3343
3345
  if (this.message = t, !e.__parse)
3344
3346
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3345
3347
  var l = i || {};
3346
3348
  l.formatters;
3347
- var s = Zr(l, ["formatters"]);
3349
+ var s = Qr(l, ["formatters"]);
3348
3350
  this.ast = e.__parse(t, I(I({}, s), { locale: this.resolvedLocale }));
3349
3351
  } else
3350
3352
  this.ast = t;
3351
3353
  if (!Array.isArray(this.ast))
3352
3354
  throw new TypeError("A message must be provided as a String or AST.");
3353
- this.formats = Di(e.formats, r), this.formatters = i && i.formatters || Ui(this.formatterCache);
3355
+ this.formats = Ui(e.formats, r), this.formatters = i && i.formatters || Fi(this.formatterCache);
3354
3356
  }
3355
3357
  return Object.defineProperty(e, "defaultLocale", {
3356
3358
  get: function() {
@@ -3363,7 +3365,7 @@ var Fi = (
3363
3365
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3364
3366
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3365
3367
  }
3366
- }, e.__parse = Ri, e.formats = {
3368
+ }, e.__parse = Li, e.formats = {
3367
3369
  number: {
3368
3370
  integer: {
3369
3371
  maximumFractionDigits: 0
@@ -3424,7 +3426,7 @@ var Fi = (
3424
3426
  }, e;
3425
3427
  }()
3426
3428
  );
3427
- function Gi(e, t) {
3429
+ function $i(e, t) {
3428
3430
  if (t == null)
3429
3431
  return;
3430
3432
  if (t in e)
@@ -3434,9 +3436,9 @@ function Gi(e, t) {
3434
3436
  for (let i = 0; i < n.length; i++)
3435
3437
  if (typeof r == "object") {
3436
3438
  if (i > 0) {
3437
- const o = n.slice(i, n.length).join(".");
3438
- if (o in r) {
3439
- r = r[o];
3439
+ const a = n.slice(i, n.length).join(".");
3440
+ if (a in r) {
3441
+ r = r[a];
3440
3442
  break;
3441
3443
  }
3442
3444
  }
@@ -3445,92 +3447,92 @@ function Gi(e, t) {
3445
3447
  r = void 0;
3446
3448
  return r;
3447
3449
  }
3448
- const we = {}, $i = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), Zn = (e, t) => {
3450
+ const Se = {}, ki = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), Qn = (e, t) => {
3449
3451
  if (t == null)
3450
3452
  return;
3451
- if (t in we && e in we[t])
3452
- return we[t][e];
3453
- const n = xt(t);
3453
+ if (t in Se && e in Se[t])
3454
+ return Se[t][e];
3455
+ const n = _t(t);
3454
3456
  for (let r = 0; r < n.length; r++) {
3455
- const i = n[r], o = ji(i, e);
3456
- if (o)
3457
- return $i(e, t, o);
3457
+ const i = n[r], a = Vi(i, e);
3458
+ if (a)
3459
+ return ki(e, t, a);
3458
3460
  }
3459
3461
  };
3460
- let Jt;
3461
- const rt = yt({});
3462
- function ki(e) {
3463
- return Jt[e] || null;
3462
+ let Kt;
3463
+ const nt = vt({});
3464
+ function ji(e) {
3465
+ return Kt[e] || null;
3464
3466
  }
3465
- function qn(e) {
3466
- return e in Jt;
3467
+ function Jn(e) {
3468
+ return e in Kt;
3467
3469
  }
3468
- function ji(e, t) {
3469
- if (!qn(e))
3470
+ function Vi(e, t) {
3471
+ if (!Jn(e))
3470
3472
  return null;
3471
- const n = ki(e);
3472
- return Gi(n, t);
3473
+ const n = ji(e);
3474
+ return $i(n, t);
3473
3475
  }
3474
- function Vi(e) {
3476
+ function Xi(e) {
3475
3477
  if (e == null)
3476
3478
  return;
3477
- const t = xt(e);
3479
+ const t = _t(e);
3478
3480
  for (let n = 0; n < t.length; n++) {
3479
3481
  const r = t[n];
3480
- if (qn(r))
3482
+ if (Jn(r))
3481
3483
  return r;
3482
3484
  }
3483
3485
  }
3484
- function Qn(e, ...t) {
3485
- delete we[e], rt.update((n) => (n[e] = Wr.all([n[e] || {}, ...t]), n));
3486
+ function Yn(e, ...t) {
3487
+ delete Se[e], nt.update((n) => (n[e] = qr.all([n[e] || {}, ...t]), n));
3486
3488
  }
3487
- Ve(
3488
- [rt],
3489
+ ke(
3490
+ [nt],
3489
3491
  ([e]) => Object.keys(e)
3490
3492
  );
3491
- rt.subscribe((e) => Jt = e);
3492
- const ft = {};
3493
- function Xi(e, t) {
3494
- ft[e].delete(t), ft[e].size === 0 && delete ft[e];
3493
+ nt.subscribe((e) => Kt = e);
3494
+ const dt = {};
3495
+ function zi(e, t) {
3496
+ dt[e].delete(t), dt[e].size === 0 && delete dt[e];
3495
3497
  }
3496
- function Jn(e) {
3497
- return ft[e];
3498
+ function Kn(e) {
3499
+ return dt[e];
3498
3500
  }
3499
- function zi(e) {
3500
- return xt(e).map((t) => {
3501
- const n = Jn(t);
3501
+ function Wi(e) {
3502
+ return _t(e).map((t) => {
3503
+ const n = Kn(t);
3502
3504
  return [t, n ? [...n] : []];
3503
3505
  }).filter(([, t]) => t.length > 0);
3504
3506
  }
3505
3507
  function Wt(e) {
3506
- return e == null ? !1 : xt(e).some(
3508
+ return e == null ? !1 : _t(e).some(
3507
3509
  (t) => {
3508
3510
  var n;
3509
- return (n = Jn(t)) == null ? void 0 : n.size;
3511
+ return (n = Kn(t)) == null ? void 0 : n.size;
3510
3512
  }
3511
3513
  );
3512
3514
  }
3513
- function Wi(e, t) {
3515
+ function Zi(e, t) {
3514
3516
  return Promise.all(
3515
- t.map((r) => (Xi(e, r), r().then((i) => i.default || i)))
3516
- ).then((r) => Qn(e, ...r));
3517
+ t.map((r) => (zi(e, r), r().then((i) => i.default || i)))
3518
+ ).then((r) => Yn(e, ...r));
3517
3519
  }
3518
- const Ye = {};
3519
- function Yn(e) {
3520
+ const Je = {};
3521
+ function er(e) {
3520
3522
  if (!Wt(e))
3521
- return e in Ye ? Ye[e] : Promise.resolve();
3522
- const t = zi(e);
3523
- return Ye[e] = Promise.all(
3523
+ return e in Je ? Je[e] : Promise.resolve();
3524
+ const t = Wi(e);
3525
+ return Je[e] = Promise.all(
3524
3526
  t.map(
3525
- ([n, r]) => Wi(n, r)
3527
+ ([n, r]) => Zi(n, r)
3526
3528
  )
3527
3529
  ).then(() => {
3528
3530
  if (Wt(e))
3529
- return Yn(e);
3530
- delete Ye[e];
3531
- }), Ye[e];
3531
+ return er(e);
3532
+ delete Je[e];
3533
+ }), Je[e];
3532
3534
  }
3533
- const Zi = {
3535
+ const qi = {
3534
3536
  number: {
3535
3537
  scientific: { notation: "scientific" },
3536
3538
  engineering: { notation: "engineering" },
@@ -3559,136 +3561,136 @@ const Zi = {
3559
3561
  timeZoneName: "short"
3560
3562
  }
3561
3563
  }
3562
- }, qi = {
3564
+ }, Qi = {
3563
3565
  fallbackLocale: null,
3564
3566
  loadingDelay: 200,
3565
- formats: Zi,
3567
+ formats: qi,
3566
3568
  warnOnMissingMessages: !0,
3567
3569
  handleMissingMessage: void 0,
3568
3570
  ignoreTag: !0
3569
- }, Qi = qi;
3570
- function ke() {
3571
- return Qi;
3571
+ }, Ji = Qi;
3572
+ function Ge() {
3573
+ return Ji;
3572
3574
  }
3573
- const Pt = yt(!1);
3574
- 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) => {
3575
+ const Pt = vt(!1);
3576
+ var Yi = Object.defineProperty, Ki = Object.defineProperties, ea = Object.getOwnPropertyDescriptors, gn = Object.getOwnPropertySymbols, ta = Object.prototype.hasOwnProperty, na = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ra = (e, t) => {
3575
3577
  for (var n in t || (t = {}))
3576
- eo.call(t, n) && mn(e, n, t[n]);
3577
- if (pn)
3578
- for (var n of pn(t))
3579
- to.call(t, n) && mn(e, n, t[n]);
3578
+ ta.call(t, n) && bn(e, n, t[n]);
3579
+ if (gn)
3580
+ for (var n of gn(t))
3581
+ na.call(t, n) && bn(e, n, t[n]);
3580
3582
  return e;
3581
- }, ro = (e, t) => Yi(e, Ki(t));
3583
+ }, ia = (e, t) => Ki(e, ea(t));
3582
3584
  let Zt;
3583
- const gt = yt(null);
3584
- function gn(e) {
3585
+ const bt = vt(null);
3586
+ function yn(e) {
3585
3587
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3586
3588
  }
3587
- function xt(e, t = ke().fallbackLocale) {
3588
- const n = gn(e);
3589
- return t ? [.../* @__PURE__ */ new Set([...n, ...gn(t)])] : n;
3589
+ function _t(e, t = Ge().fallbackLocale) {
3590
+ const n = yn(e);
3591
+ return t ? [.../* @__PURE__ */ new Set([...n, ...yn(t)])] : n;
3590
3592
  }
3591
3593
  function He() {
3592
3594
  return Zt ?? void 0;
3593
3595
  }
3594
- gt.subscribe((e) => {
3596
+ bt.subscribe((e) => {
3595
3597
  Zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3596
3598
  });
3597
- const io = (e) => {
3598
- if (e && Vi(e) && Wt(e)) {
3599
- const { loadingDelay: t } = ke();
3599
+ const aa = (e) => {
3600
+ if (e && Xi(e) && Wt(e)) {
3601
+ const { loadingDelay: t } = Ge();
3600
3602
  let n;
3601
3603
  return typeof window < "u" && He() != null && t ? n = window.setTimeout(
3602
3604
  () => Pt.set(!0),
3603
3605
  t
3604
- ) : Pt.set(!0), Yn(e).then(() => {
3605
- gt.set(e);
3606
+ ) : Pt.set(!0), er(e).then(() => {
3607
+ bt.set(e);
3606
3608
  }).finally(() => {
3607
3609
  clearTimeout(n), Pt.set(!1);
3608
3610
  });
3609
3611
  }
3610
- return gt.set(e);
3611
- }, Xe = ro(no({}, gt), {
3612
- set: io
3613
- }), _t = (e) => {
3612
+ return bt.set(e);
3613
+ }, je = ia(ra({}, bt), {
3614
+ set: aa
3615
+ }), Bt = (e) => {
3614
3616
  const t = /* @__PURE__ */ Object.create(null);
3615
3617
  return (r) => {
3616
3618
  const i = JSON.stringify(r);
3617
3619
  return i in t ? t[i] : t[i] = e(r);
3618
3620
  };
3619
3621
  };
3620
- 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) => {
3622
+ var oa = Object.defineProperty, yt = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, vn = (e, t, n) => t in e ? oa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, en = (e, t) => {
3621
3623
  for (var n in t || (t = {}))
3622
- Kn.call(t, n) && bn(e, n, t[n]);
3623
- if (bt)
3624
- for (var n of bt(t))
3625
- er.call(t, n) && bn(e, n, t[n]);
3624
+ tr.call(t, n) && vn(e, n, t[n]);
3625
+ if (yt)
3626
+ for (var n of yt(t))
3627
+ nr.call(t, n) && vn(e, n, t[n]);
3626
3628
  return e;
3627
- }, ze = (e, t) => {
3629
+ }, Ve = (e, t) => {
3628
3630
  var n = {};
3629
3631
  for (var r in e)
3630
- Kn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3631
- if (e != null && bt)
3632
- for (var r of bt(e))
3633
- t.indexOf(r) < 0 && er.call(e, r) && (n[r] = e[r]);
3632
+ tr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3633
+ if (e != null && yt)
3634
+ for (var r of yt(e))
3635
+ t.indexOf(r) < 0 && nr.call(e, r) && (n[r] = e[r]);
3634
3636
  return n;
3635
3637
  };
3636
- const nt = (e, t) => {
3637
- const { formats: n } = ke();
3638
+ const tt = (e, t) => {
3639
+ const { formats: n } = Ge();
3638
3640
  if (e in n && t in n[e])
3639
3641
  return n[e][t];
3640
3642
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3641
- }, ao = _t(
3643
+ }, sa = Bt(
3642
3644
  (e) => {
3643
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3645
+ var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3644
3646
  if (n == null)
3645
3647
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3646
- return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
3648
+ return r && (i = tt("number", r)), new Intl.NumberFormat(n, i);
3647
3649
  }
3648
- ), so = _t(
3650
+ ), la = Bt(
3649
3651
  (e) => {
3650
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3652
+ var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3651
3653
  if (n == null)
3652
3654
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3653
- return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
3655
+ return r ? i = tt("date", r) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(n, i);
3654
3656
  }
3655
- ), lo = _t(
3657
+ ), ua = Bt(
3656
3658
  (e) => {
3657
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3659
+ var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3658
3660
  if (n == null)
3659
3661
  throw new Error(
3660
3662
  '[svelte-i18n] A "locale" must be set to format time values'
3661
3663
  );
3662
- return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
3664
+ return r ? i = tt("time", r) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(n, i);
3663
3665
  }
3664
- ), uo = (e = {}) => {
3666
+ ), ca = (e = {}) => {
3665
3667
  var t = e, {
3666
3668
  locale: n = He()
3667
- } = t, r = ze(t, [
3669
+ } = t, r = Ve(t, [
3668
3670
  "locale"
3669
3671
  ]);
3670
- return ao(Yt({ locale: n }, r));
3671
- }, co = (e = {}) => {
3672
+ return sa(en({ locale: n }, r));
3673
+ }, ha = (e = {}) => {
3672
3674
  var t = e, {
3673
3675
  locale: n = He()
3674
- } = t, r = ze(t, [
3676
+ } = t, r = Ve(t, [
3675
3677
  "locale"
3676
3678
  ]);
3677
- return so(Yt({ locale: n }, r));
3678
- }, ho = (e = {}) => {
3679
+ return la(en({ locale: n }, r));
3680
+ }, fa = (e = {}) => {
3679
3681
  var t = e, {
3680
3682
  locale: n = He()
3681
- } = t, r = ze(t, [
3683
+ } = t, r = Ve(t, [
3682
3684
  "locale"
3683
3685
  ]);
3684
- return lo(Yt({ locale: n }, r));
3685
- }, fo = _t(
3686
+ return ua(en({ locale: n }, r));
3687
+ }, da = Bt(
3686
3688
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3687
- (e, t = He()) => new Fi(e, t, ke().formats, {
3688
- ignoreTag: ke().ignoreTag
3689
+ (e, t = He()) => new Gi(e, t, Ge().formats, {
3690
+ ignoreTag: Ge().ignoreTag
3689
3691
  })
3690
- ), po = (e, t = {}) => {
3691
- var n, r, i, o;
3692
+ ), pa = (e, t = {}) => {
3693
+ var n, r, i, a;
3692
3694
  let l = t;
3693
3695
  typeof e == "object" && (l = e, e = l.id);
3694
3696
  const {
@@ -3700,37 +3702,37 @@ const nt = (e, t) => {
3700
3702
  throw new Error(
3701
3703
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3702
3704
  );
3703
- let d = Zn(e, h);
3705
+ let d = Qn(e, h);
3704
3706
  if (!d)
3705
- 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;
3707
+ 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;
3706
3708
  else if (typeof d != "string")
3707
3709
  return console.warn(
3708
3710
  `[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.`
3709
3711
  ), d;
3710
3712
  if (!s)
3711
3713
  return d;
3712
- let m = d;
3714
+ let g = d;
3713
3715
  try {
3714
- m = fo(d, h).format(s);
3715
- } catch (g) {
3716
- g instanceof Error && console.warn(
3716
+ g = da(d, h).format(s);
3717
+ } catch (b) {
3718
+ b instanceof Error && console.warn(
3717
3719
  `[svelte-i18n] Message "${e}" has syntax error:`,
3718
- g.message
3720
+ b.message
3719
3721
  );
3720
3722
  }
3721
- return m;
3722
- }, 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);
3723
- Ve([Xe], () => mo);
3724
- Ve([Xe], () => go);
3725
- Ve([Xe], () => bo);
3726
- Ve([Xe, rt], () => yo);
3727
- function yn(e, t) {
3728
- Qn(e, t);
3729
- }
3730
- function Eo(e) {
3731
- Xe.set(e);
3732
- }
3733
- const vn = {
3723
+ return g;
3724
+ }, ma = (e, t) => fa(t).format(e), ga = (e, t) => ha(t).format(e), ba = (e, t) => ca(t).format(e), ya = (e, t = He()) => Qn(e, t), va = ke([je, nt], () => pa);
3725
+ ke([je], () => ma);
3726
+ ke([je], () => ga);
3727
+ ke([je], () => ba);
3728
+ ke([je, nt], () => ya);
3729
+ function En(e, t) {
3730
+ Yn(e, t);
3731
+ }
3732
+ function Ea(e) {
3733
+ je.set(e);
3734
+ }
3735
+ const xn = {
3734
3736
  en: {
3735
3737
  Title: "Your Balance",
3736
3738
  Total: "Total Balance",
@@ -3938,35 +3940,35 @@ var qt = { exports: {} };
3938
3940
  */
3939
3941
  (function(e, t) {
3940
3942
  (function(n) {
3941
- 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;
3942
- if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
3943
+ 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, g = n.fetch, b = n.Response, _ = n.TextDecoder, T = n.TextEncoder, S = n.AbortController;
3944
+ if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(c) {
3943
3945
  u.readyState = "complete";
3944
- }, !1)), o == null && s != null && (o = function() {
3946
+ }, !1)), a == null && s != null && (a = function() {
3945
3947
  return new s("Microsoft.XMLHTTP");
3946
- }), Object.create == null && (Object.create = function(a) {
3947
- function f() {
3948
+ }), Object.create == null && (Object.create = function(c) {
3949
+ function o() {
3948
3950
  }
3949
- return f.prototype = a, new f();
3951
+ return o.prototype = c, new o();
3950
3952
  }), Date.now || (Date.now = function() {
3951
3953
  return (/* @__PURE__ */ new Date()).getTime();
3952
- }), T == null) {
3953
- var x = m;
3954
- m = function(a, f) {
3955
- var p = f.signal;
3956
- return x(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(c) {
3957
- var v = c.body.getReader();
3958
- return p._reader = v, p._aborted && p._reader.cancel(), {
3959
- status: c.status,
3960
- statusText: c.statusText,
3961
- headers: c.headers,
3954
+ }), S == null) {
3955
+ var x = g;
3956
+ g = function(c, o) {
3957
+ var p = o.signal;
3958
+ return x(c, { headers: o.headers, credentials: o.credentials, cache: o.cache }).then(function(f) {
3959
+ var m = f.body.getReader();
3960
+ return p._reader = m, p._aborted && p._reader.cancel(), {
3961
+ status: f.status,
3962
+ statusText: f.statusText,
3963
+ headers: f.headers,
3962
3964
  body: {
3963
3965
  getReader: function() {
3964
- return v;
3966
+ return m;
3965
3967
  }
3966
3968
  }
3967
3969
  };
3968
3970
  });
3969
- }, T = function() {
3971
+ }, S = function() {
3970
3972
  this.signal = {
3971
3973
  _reader: null,
3972
3974
  _aborted: !1
@@ -3975,407 +3977,407 @@ var qt = { exports: {} };
3975
3977
  };
3976
3978
  };
3977
3979
  }
3978
- function S() {
3980
+ function C() {
3979
3981
  this.bitsNeeded = 0, this.codePoint = 0;
3980
3982
  }
3981
- S.prototype.decode = function(a) {
3982
- function f(P, G, w) {
3983
- if (w === 1)
3984
- return P >= 128 >> G && P << G <= 2047;
3985
- if (w === 2)
3986
- return P >= 2048 >> G && P << G <= 55295 || P >= 57344 >> G && P << G <= 65535;
3987
- if (w === 3)
3988
- return P >= 65536 >> G && P << G <= 1114111;
3983
+ C.prototype.decode = function(c) {
3984
+ function o(N, G, A) {
3985
+ if (A === 1)
3986
+ return N >= 128 >> G && N << G <= 2047;
3987
+ if (A === 2)
3988
+ return N >= 2048 >> G && N << G <= 55295 || N >= 57344 >> G && N << G <= 65535;
3989
+ if (A === 3)
3990
+ return N >= 65536 >> G && N << G <= 1114111;
3989
3991
  throw new Error();
3990
3992
  }
3991
- function p(P, G) {
3992
- if (P === 6 * 1)
3993
+ function p(N, G) {
3994
+ if (N === 6 * 1)
3993
3995
  return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
3994
- if (P === 6 * 2)
3996
+ if (N === 6 * 2)
3995
3997
  return G > 15 ? 3 : 2;
3996
- if (P === 6 * 3)
3998
+ if (N === 6 * 3)
3997
3999
  return 3;
3998
4000
  throw new Error();
3999
4001
  }
4000
- for (var c = 65533, v = "", E = this.bitsNeeded, y = this.codePoint, L = 0; L < a.length; L += 1) {
4001
- var A = a[L];
4002
- 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))));
4002
+ for (var f = 65533, m = "", y = this.bitsNeeded, B = this.codePoint, E = 0; E < c.length; E += 1) {
4003
+ var w = c[E];
4004
+ y !== 0 && (w < 128 || w > 191 || !o(B << 6 | w & 63, y - 6, p(y, B))) && (y = 0, B = f, m += String.fromCharCode(B)), y === 0 ? (w >= 0 && w <= 127 ? (y = 0, B = w) : w >= 192 && w <= 223 ? (y = 6 * 1, B = w & 31) : w >= 224 && w <= 239 ? (y = 6 * 2, B = w & 15) : w >= 240 && w <= 247 ? (y = 6 * 3, B = w & 7) : (y = 0, B = f), y !== 0 && !o(B, y, p(y, B)) && (y = 0, B = f)) : (y -= 6, B = B << 6 | w & 63), y === 0 && (B <= 65535 ? m += String.fromCharCode(B) : (m += String.fromCharCode(55296 + (B - 65535 - 1 >> 10)), m += String.fromCharCode(56320 + (B - 65535 - 1 & 1023))));
4003
4005
  }
4004
- return this.bitsNeeded = E, this.codePoint = y, v;
4006
+ return this.bitsNeeded = y, this.codePoint = B, m;
4005
4007
  };
4006
4008
  var D = function() {
4007
4009
  try {
4008
- return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
4009
- } catch (a) {
4010
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
4010
+ return new _().decode(new T().encode("test"), { stream: !0 }) === "test";
4011
+ } catch (c) {
4012
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + c);
4011
4013
  }
4012
4014
  return !1;
4013
4015
  };
4014
- (_ == null || B == null || !D()) && (_ = S);
4015
- var H = function() {
4016
+ (_ == null || T == null || !D()) && (_ = C);
4017
+ var O = function() {
4016
4018
  };
4017
- function U(a) {
4018
- 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;
4019
+ function U(c) {
4020
+ 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;
4019
4021
  }
4020
- U.prototype.open = function(a, f) {
4022
+ U.prototype.open = function(c, o) {
4021
4023
  this._abort(!0);
4022
- var p = this, c = this._xhr, v = 1, E = 0;
4023
- this._abort = function(w) {
4024
- 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;
4024
+ var p = this, f = this._xhr, m = 1, y = 0;
4025
+ this._abort = function(A) {
4026
+ 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(), y !== 0 && (i(y), y = 0), A || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), m = 0;
4025
4027
  };
4026
- var y = function() {
4027
- if (v === 1) {
4028
- var w = 0, V = "", ge = void 0;
4029
- if ("contentType" in c)
4030
- w = 200, V = "OK", ge = c.contentType;
4028
+ var B = function() {
4029
+ if (m === 1) {
4030
+ var A = 0, V = "", Ee = void 0;
4031
+ if ("contentType" in f)
4032
+ A = 200, V = "OK", Ee = f.contentType;
4031
4033
  else
4032
4034
  try {
4033
- w = c.status, V = c.statusText, ge = c.getResponseHeader("Content-Type");
4035
+ A = f.status, V = f.statusText, Ee = f.getResponseHeader("Content-Type");
4034
4036
  } catch {
4035
- w = 0, V = "", ge = void 0;
4037
+ A = 0, V = "", Ee = void 0;
4036
4038
  }
4037
- w !== 0 && (v = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = ge, p.onreadystatechange());
4039
+ A !== 0 && (m = 2, p.readyState = 2, p.status = A, p.statusText = V, p._contentType = Ee, p.onreadystatechange());
4038
4040
  }
4039
- }, L = function() {
4040
- if (y(), v === 2 || v === 3) {
4041
- v = 3;
4042
- var w = "";
4041
+ }, E = function() {
4042
+ if (B(), m === 2 || m === 3) {
4043
+ m = 3;
4044
+ var A = "";
4043
4045
  try {
4044
- w = c.responseText;
4046
+ A = f.responseText;
4045
4047
  } catch {
4046
4048
  }
4047
- p.readyState = 3, p.responseText = w, p.onprogress();
4049
+ p.readyState = 3, p.responseText = A, p.onprogress();
4048
4050
  }
4049
- }, A = function(w, V) {
4051
+ }, w = function(A, V) {
4050
4052
  if ((V == null || V.preventDefault == null) && (V = {
4051
- preventDefault: H
4052
- }), L(), v === 1 || v === 2 || v === 3) {
4053
- if (v = 4, E !== 0 && (i(E), E = 0), p.readyState = 4, w === "load")
4053
+ preventDefault: O
4054
+ }), E(), m === 1 || m === 2 || m === 3) {
4055
+ if (m = 4, y !== 0 && (i(y), y = 0), p.readyState = 4, A === "load")
4054
4056
  p.onload(V);
4055
- else if (w === "error")
4057
+ else if (A === "error")
4056
4058
  p.onerror(V);
4057
- else if (w === "abort")
4059
+ else if (A === "abort")
4058
4060
  p.onabort(V);
4059
4061
  else
4060
4062
  throw new TypeError();
4061
4063
  p.onreadystatechange();
4062
4064
  }
4063
- }, P = function(w) {
4064
- 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());
4065
+ }, N = function(A) {
4066
+ f != null && (f.readyState === 4 ? (!("onload" in f) || !("onerror" in f) || !("onabort" in f)) && w(f.responseText === "" ? "error" : "load", A) : f.readyState === 3 ? "onprogress" in f || E() : f.readyState === 2 && B());
4065
4067
  }, G = function() {
4066
- E = r(function() {
4068
+ y = r(function() {
4067
4069
  G();
4068
- }, 500), c.readyState === 3 && L();
4070
+ }, 500), f.readyState === 3 && E();
4069
4071
  };
4070
- "onload" in c && (c.onload = function(w) {
4071
- A("load", w);
4072
- }), "onerror" in c && (c.onerror = function(w) {
4073
- A("error", w);
4074
- }), "onabort" in c && (c.onabort = function(w) {
4075
- A("abort", w);
4076
- }), "onprogress" in c && (c.onprogress = L), "onreadystatechange" in c && (c.onreadystatechange = function(w) {
4077
- P(w);
4078
- }), ("contentType" in c || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), c.open(a, f, !0), "readyState" in c && (E = r(function() {
4072
+ "onload" in f && (f.onload = function(A) {
4073
+ w("load", A);
4074
+ }), "onerror" in f && (f.onerror = function(A) {
4075
+ w("error", A);
4076
+ }), "onabort" in f && (f.onabort = function(A) {
4077
+ w("abort", A);
4078
+ }), "onprogress" in f && (f.onprogress = E), "onreadystatechange" in f && (f.onreadystatechange = function(A) {
4079
+ N(A);
4080
+ }), ("contentType" in f || !("ontimeout" in a.prototype)) && (o += (o.indexOf("?") === -1 ? "?" : "&") + "padding=true"), f.open(c, o, !0), "readyState" in f && (y = r(function() {
4079
4081
  G();
4080
4082
  }, 0));
4081
4083
  }, U.prototype.abort = function() {
4082
4084
  this._abort(!1);
4083
- }, U.prototype.getResponseHeader = function(a) {
4085
+ }, U.prototype.getResponseHeader = function(c) {
4084
4086
  return this._contentType;
4085
- }, U.prototype.setRequestHeader = function(a, f) {
4087
+ }, U.prototype.setRequestHeader = function(c, o) {
4086
4088
  var p = this._xhr;
4087
- "setRequestHeader" in p && p.setRequestHeader(a, f);
4089
+ "setRequestHeader" in p && p.setRequestHeader(c, o);
4088
4090
  }, U.prototype.getAllResponseHeaders = function() {
4089
4091
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4090
4092
  }, U.prototype.send = function() {
4091
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4092
- var a = this;
4093
- a._sendTimeout = r(function() {
4094
- a._sendTimeout = 0, a.send();
4093
+ if ((!("ontimeout" in a.prototype) || !("sendAsBinary" in a.prototype) && !("mozAnon" in a.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4094
+ var c = this;
4095
+ c._sendTimeout = r(function() {
4096
+ c._sendTimeout = 0, c.send();
4095
4097
  }, 4);
4096
4098
  return;
4097
4099
  }
4098
- var f = this._xhr;
4099
- "withCredentials" in f && (f.withCredentials = this.withCredentials);
4100
+ var o = this._xhr;
4101
+ "withCredentials" in o && (o.withCredentials = this.withCredentials);
4100
4102
  try {
4101
- f.send(void 0);
4103
+ o.send(void 0);
4102
4104
  } catch (p) {
4103
4105
  throw p;
4104
4106
  }
4105
4107
  };
4106
- function W(a) {
4107
- return a.replace(/[A-Z]/g, function(f) {
4108
- return String.fromCharCode(f.charCodeAt(0) + 32);
4108
+ function q(c) {
4109
+ return c.replace(/[A-Z]/g, function(o) {
4110
+ return String.fromCharCode(o.charCodeAt(0) + 32);
4109
4111
  });
4110
4112
  }
4111
- function q(a) {
4112
- for (var f = /* @__PURE__ */ Object.create(null), p = a.split(`\r
4113
- `), c = 0; c < p.length; c += 1) {
4114
- var v = p[c], E = v.split(": "), y = E.shift(), L = E.join(": ");
4115
- f[W(y)] = L;
4113
+ function re(c) {
4114
+ for (var o = /* @__PURE__ */ Object.create(null), p = c.split(`\r
4115
+ `), f = 0; f < p.length; f += 1) {
4116
+ var m = p[f], y = m.split(": "), B = y.shift(), E = y.join(": ");
4117
+ o[q(B)] = E;
4116
4118
  }
4117
- this._map = f;
4119
+ this._map = o;
4118
4120
  }
4119
- q.prototype.get = function(a) {
4120
- return this._map[W(a)];
4121
- }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4122
- function Y() {
4121
+ re.prototype.get = function(c) {
4122
+ return this._map[q(c)];
4123
+ }, a != null && a.HEADERS_RECEIVED == null && (a.HEADERS_RECEIVED = 2);
4124
+ function z() {
4123
4125
  }
4124
- Y.prototype.open = function(a, f, p, c, v, E, y) {
4125
- a.open("GET", v);
4126
- var L = 0;
4127
- a.onprogress = function() {
4128
- var P = a.responseText, G = P.slice(L);
4129
- L += G.length, p(G);
4130
- }, a.onerror = function(P) {
4131
- P.preventDefault(), c(new Error("NetworkError"));
4132
- }, a.onload = function() {
4133
- c(null);
4134
- }, a.onabort = function() {
4135
- c(null);
4136
- }, a.onreadystatechange = function() {
4137
- if (a.readyState === o.HEADERS_RECEIVED) {
4138
- var P = a.status, G = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
4139
- f(P, G, w, new q(V));
4126
+ z.prototype.open = function(c, o, p, f, m, y, B) {
4127
+ c.open("GET", m);
4128
+ var E = 0;
4129
+ c.onprogress = function() {
4130
+ var N = c.responseText, G = N.slice(E);
4131
+ E += G.length, p(G);
4132
+ }, c.onerror = function(N) {
4133
+ N.preventDefault(), f(new Error("NetworkError"));
4134
+ }, c.onload = function() {
4135
+ f(null);
4136
+ }, c.onabort = function() {
4137
+ f(null);
4138
+ }, c.onreadystatechange = function() {
4139
+ if (c.readyState === a.HEADERS_RECEIVED) {
4140
+ var N = c.status, G = c.statusText, A = c.getResponseHeader("Content-Type"), V = c.getAllResponseHeaders();
4141
+ o(N, G, A, new re(V));
4140
4142
  }
4141
- }, a.withCredentials = E;
4142
- for (var A in y)
4143
- Object.prototype.hasOwnProperty.call(y, A) && a.setRequestHeader(A, y[A]);
4144
- return a.send(), a;
4143
+ }, c.withCredentials = y;
4144
+ for (var w in B)
4145
+ Object.prototype.hasOwnProperty.call(B, w) && c.setRequestHeader(w, B[w]);
4146
+ return c.send(), c;
4145
4147
  };
4146
- function $(a) {
4147
- this._headers = a;
4148
+ function X(c) {
4149
+ this._headers = c;
4148
4150
  }
4149
- $.prototype.get = function(a) {
4150
- return this._headers.get(a);
4151
+ X.prototype.get = function(c) {
4152
+ return this._headers.get(c);
4151
4153
  };
4152
- function R() {
4154
+ function P() {
4153
4155
  }
4154
- R.prototype.open = function(a, f, p, c, v, E, y) {
4155
- var L = null, A = new T(), P = A.signal, G = new _();
4156
- return m(v, {
4157
- headers: y,
4158
- credentials: E ? "include" : "same-origin",
4159
- signal: P,
4156
+ P.prototype.open = function(c, o, p, f, m, y, B) {
4157
+ var E = null, w = new S(), N = w.signal, G = new _();
4158
+ return g(m, {
4159
+ headers: B,
4160
+ credentials: y ? "include" : "same-origin",
4161
+ signal: N,
4160
4162
  cache: "no-store"
4161
- }).then(function(w) {
4162
- return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new $(w.headers)), new d(function(V, ge) {
4163
- var Qe = function() {
4164
- L.read().then(function(ie) {
4165
- if (ie.done)
4163
+ }).then(function(A) {
4164
+ return E = A.body.getReader(), o(A.status, A.statusText, A.headers.get("Content-Type"), new X(A.headers)), new d(function(V, Ee) {
4165
+ var qe = function() {
4166
+ E.read().then(function(ae) {
4167
+ if (ae.done)
4166
4168
  V(void 0);
4167
4169
  else {
4168
- var K = G.decode(ie.value, { stream: !0 });
4169
- p(K), Qe();
4170
+ var K = G.decode(ae.value, { stream: !0 });
4171
+ p(K), qe();
4170
4172
  }
4171
- }).catch(function(ie) {
4172
- ge(ie);
4173
+ }).catch(function(ae) {
4174
+ Ee(ae);
4173
4175
  });
4174
4176
  };
4175
- Qe();
4177
+ qe();
4176
4178
  });
4177
- }).catch(function(w) {
4178
- if (w.name !== "AbortError")
4179
- return w;
4180
- }).then(function(w) {
4181
- c(w);
4179
+ }).catch(function(A) {
4180
+ if (A.name !== "AbortError")
4181
+ return A;
4182
+ }).then(function(A) {
4183
+ f(A);
4182
4184
  }), {
4183
4185
  abort: function() {
4184
- L?.cancel(), A.abort();
4186
+ E?.cancel(), w.abort();
4185
4187
  }
4186
4188
  };
4187
4189
  };
4188
- function X() {
4190
+ function $() {
4189
4191
  this._listeners = /* @__PURE__ */ Object.create(null);
4190
4192
  }
4191
- function F(a) {
4193
+ function F(c) {
4192
4194
  r(function() {
4193
- throw a;
4195
+ throw c;
4194
4196
  }, 0);
4195
4197
  }
4196
- X.prototype.dispatchEvent = function(a) {
4197
- a.target = this;
4198
- var f = this._listeners[a.type];
4199
- if (f != null)
4200
- for (var p = f.length, c = 0; c < p; c += 1) {
4201
- var v = f[c];
4198
+ $.prototype.dispatchEvent = function(c) {
4199
+ c.target = this;
4200
+ var o = this._listeners[c.type];
4201
+ if (o != null)
4202
+ for (var p = o.length, f = 0; f < p; f += 1) {
4203
+ var m = o[f];
4202
4204
  try {
4203
- typeof v.handleEvent == "function" ? v.handleEvent(a) : v.call(this, a);
4204
- } catch (E) {
4205
- F(E);
4205
+ typeof m.handleEvent == "function" ? m.handleEvent(c) : m.call(this, c);
4206
+ } catch (y) {
4207
+ F(y);
4206
4208
  }
4207
4209
  }
4208
- }, X.prototype.addEventListener = function(a, f) {
4209
- a = String(a);
4210
- var p = this._listeners, c = p[a];
4211
- c == null && (c = [], p[a] = c);
4212
- for (var v = !1, E = 0; E < c.length; E += 1)
4213
- c[E] === f && (v = !0);
4214
- v || c.push(f);
4215
- }, X.prototype.removeEventListener = function(a, f) {
4216
- a = String(a);
4217
- var p = this._listeners, c = p[a];
4218
- if (c != null) {
4219
- for (var v = [], E = 0; E < c.length; E += 1)
4220
- c[E] !== f && v.push(c[E]);
4221
- v.length === 0 ? delete p[a] : p[a] = v;
4210
+ }, $.prototype.addEventListener = function(c, o) {
4211
+ c = String(c);
4212
+ var p = this._listeners, f = p[c];
4213
+ f == null && (f = [], p[c] = f);
4214
+ for (var m = !1, y = 0; y < f.length; y += 1)
4215
+ f[y] === o && (m = !0);
4216
+ m || f.push(o);
4217
+ }, $.prototype.removeEventListener = function(c, o) {
4218
+ c = String(c);
4219
+ var p = this._listeners, f = p[c];
4220
+ if (f != null) {
4221
+ for (var m = [], y = 0; y < f.length; y += 1)
4222
+ f[y] !== o && m.push(f[y]);
4223
+ m.length === 0 ? delete p[c] : p[c] = m;
4222
4224
  }
4223
4225
  };
4224
- function b(a) {
4225
- this.type = a, this.target = void 0;
4226
+ function Y(c) {
4227
+ this.type = c, this.target = void 0;
4226
4228
  }
4227
- function xe(a, f) {
4228
- b.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
4229
+ function v(c, o) {
4230
+ Y.call(this, c), this.data = o.data, this.lastEventId = o.lastEventId;
4229
4231
  }
4230
- xe.prototype = Object.create(b.prototype);
4231
- function We(a, f) {
4232
- b.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
4232
+ v.prototype = Object.create(Y.prototype);
4233
+ function be(c, o) {
4234
+ Y.call(this, c), this.status = o.status, this.statusText = o.statusText, this.headers = o.headers;
4233
4235
  }
4234
- We.prototype = Object.create(b.prototype);
4235
- function _e(a, f) {
4236
- b.call(this, a), this.error = f.error;
4236
+ be.prototype = Object.create(Y.prototype);
4237
+ function rt(c, o) {
4238
+ Y.call(this, c), this.error = o.error;
4237
4239
  }
4238
- _e.prototype = Object.create(b.prototype);
4239
- 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) {
4240
- var p = a == null ? f : parseInt(a, 10);
4241
- return p !== p && (p = f), Le(p);
4242
- }, Le = function(a) {
4243
- return Math.min(Math.max(a, ot), Tt);
4244
- }, Te = function(a, f, p) {
4240
+ rt.prototype = Object.create(Y.prototype);
4241
+ var ye = -1, ce = 0, we = 1, Ae = 2, Xe = -1, le = 0, Oe = 1, it = 2, ze = 3, at = /^text\/event\-stream(;.*)?$/i, Tt = 1e3, ot = 18e6, We = function(c, o) {
4242
+ var p = c == null ? o : parseInt(c, 10);
4243
+ return p !== p && (p = o), Ze(p);
4244
+ }, Ze = function(c) {
4245
+ return Math.min(Math.max(c, Tt), ot);
4246
+ }, ve = function(c, o, p) {
4245
4247
  try {
4246
- typeof f == "function" && f.call(a, p);
4247
- } catch (c) {
4248
- F(c);
4248
+ typeof o == "function" && o.call(c, p);
4249
+ } catch (f) {
4250
+ F(f);
4249
4251
  }
4250
4252
  };
4251
- function re(a, f) {
4252
- 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);
4253
+ function ie(c, o) {
4254
+ $.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);
4253
4255
  }
4254
4256
  function wt() {
4255
- return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
4257
+ return a != null && "withCredentials" in a.prototype || l == null ? new a() : new l();
4256
4258
  }
4257
- var St = m != null && g != null && "body" in g.prototype;
4258
- function At(a, f, p) {
4259
- f = String(f);
4260
- 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) {
4261
- if (ue === pe)
4262
- if (Z === 200 && oe != null && Bt.test(oe)) {
4263
- ue = Be, P = Date.now(), A = E, a.readyState = Be;
4264
- var te = new We("open", {
4259
+ var St = g != null && b != null && "body" in b.prototype;
4260
+ function At(c, o, p) {
4261
+ o = String(o);
4262
+ var f = !!p.withCredentials, m = p.lastEventIdQueryParameterName || "lastEventId", y = Ze(1e3), B = We(p.heartbeatTimeout, 45e3), E = "", w = y, N = !1, G = 0, A = p.headers || {}, V = p.Transport, Ee = St && V == null ? void 0 : new U(V != null ? new V() : wt()), qe = V != null && typeof V != "string" ? new V() : Ee == null ? new P() : new z(), ae = void 0, K = 0, he = ye, Re = "", lt = "", xe = "", ut = "", ee = le, Ct = 0, Ce = 0, ir = function(Z, W, oe, se) {
4263
+ if (he === ce)
4264
+ if (Z === 200 && oe != null && at.test(oe)) {
4265
+ he = we, N = Date.now(), w = y, c.readyState = we;
4266
+ var te = new be("open", {
4265
4267
  status: Z,
4266
- statusText: z,
4267
- headers: ae
4268
+ statusText: W,
4269
+ headers: se
4268
4270
  });
4269
- a.dispatchEvent(te), Te(a, a.onopen, te);
4271
+ c.dispatchEvent(te), ve(c, c.onopen, te);
4270
4272
  } else {
4271
4273
  var Q = "";
4272
- 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();
4273
- var te = new We("error", {
4274
+ Z !== 200 ? (W && (W = W.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + W + " 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();
4275
+ var te = new be("error", {
4274
4276
  status: Z,
4275
- statusText: z,
4276
- headers: ae
4277
+ statusText: W,
4278
+ headers: se
4277
4279
  });
4278
- a.dispatchEvent(te), Te(a, a.onerror, te), console.error(Q);
4280
+ c.dispatchEvent(te), ve(c, c.onerror, te), console.error(Q);
4279
4281
  }
4280
- }, rr = function(Z) {
4281
- if (ue === Be) {
4282
- for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
4283
- var ae = Z.charCodeAt(oe);
4284
- (ae === 10 || ae === 13) && (z = oe);
4282
+ }, ar = function(Z) {
4283
+ if (he === we) {
4284
+ for (var W = -1, oe = 0; oe < Z.length; oe += 1) {
4285
+ var se = Z.charCodeAt(oe);
4286
+ (se === 10 || se === 13) && (W = oe);
4285
4287
  }
4286
- var te = (z !== -1 ? lt : "") + Z.slice(0, z + 1);
4287
- lt = (z === -1 ? lt : "") + Z.slice(z + 1), Z !== "" && (P = Date.now(), G += Z.length);
4288
+ var te = (W !== -1 ? ut : "") + Z.slice(0, W + 1);
4289
+ ut = (W === -1 ? ut : "") + Z.slice(W + 1), Z !== "" && (N = Date.now(), G += Z.length);
4288
4290
  for (var Q = 0; Q < te.length; Q += 1) {
4289
- var ae = te.charCodeAt(Q);
4290
- if (ee === Ae && ae === 10)
4291
+ var se = te.charCodeAt(Q);
4292
+ if (ee === Xe && se === 10)
4291
4293
  ee = le;
4292
- else if (ee === Ae && (ee = le), ae === 13 || ae === 10) {
4294
+ else if (ee === Xe && (ee = le), se === 13 || se === 10) {
4293
4295
  if (ee !== le) {
4294
- ee === Ze && (Ce = Q + 1);
4295
- var ye = te.slice(Ct, Ce - 1), ve = te.slice(Ce + (Ce < Q && te.charCodeAt(Ce) === 32 ? 1 : 0), Q);
4296
- ye === "data" ? (Me += `
4297
- `, 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() {
4298
- Je();
4299
- }, y)));
4296
+ ee === Oe && (Ce = Q + 1);
4297
+ var _e = te.slice(Ct, Ce - 1), Be = te.slice(Ce + (Ce < Q && te.charCodeAt(Ce) === 32 ? 1 : 0), Q);
4298
+ _e === "data" ? (Re += `
4299
+ `, Re += Be) : _e === "id" ? lt = Be : _e === "event" ? xe = Be : _e === "retry" ? (y = We(Be, y), w = y) : _e === "heartbeatTimeout" && (B = We(Be, B), K !== 0 && (i(K), K = r(function() {
4300
+ Qe();
4301
+ }, B)));
4300
4302
  }
4301
4303
  if (ee === le) {
4302
- if (Me !== "") {
4303
- L = st, be === "" && (be = "message");
4304
- var Ne = new xe(be, {
4305
- data: Me.slice(1),
4306
- lastEventId: st
4304
+ if (Re !== "") {
4305
+ E = lt, xe === "" && (xe = "message");
4306
+ var Le = new v(xe, {
4307
+ data: Re.slice(1),
4308
+ lastEventId: lt
4307
4309
  });
4308
- 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)
4310
+ if (c.dispatchEvent(Le), xe === "open" ? ve(c, c.onopen, Le) : xe === "message" ? ve(c, c.onmessage, Le) : xe === "error" && ve(c, c.onerror, Le), he === Ae)
4309
4311
  return;
4310
4312
  }
4311
- Me = "", be = "";
4313
+ Re = "", xe = "";
4312
4314
  }
4313
- ee = ae === 13 ? Ae : le;
4315
+ ee = se === 13 ? Xe : le;
4314
4316
  } else
4315
- ee === le && (Ct = Q, ee = Ze), ee === Ze ? ae === 58 && (Ce = Q + 1, ee = Re) : ee === Re && (ee = it);
4317
+ ee === le && (Ct = Q, ee = Oe), ee === Oe ? se === 58 && (Ce = Q + 1, ee = it) : ee === it && (ee = ze);
4316
4318
  }
4317
4319
  }
4318
- }, en = function(Z) {
4319
- if (ue === Be || ue === pe) {
4320
- ue = Oe, K !== 0 && (i(K), K = 0), K = r(function() {
4321
- Je();
4322
- }, A), A = Le(Math.min(E * 16, A * 2)), a.readyState = pe;
4323
- var z = new _e("error", { error: Z });
4324
- a.dispatchEvent(z), Te(a, a.onerror, z), Z != null && console.error(Z);
4320
+ }, nn = function(Z) {
4321
+ if (he === we || he === ce) {
4322
+ he = ye, K !== 0 && (i(K), K = 0), K = r(function() {
4323
+ Qe();
4324
+ }, w), w = Ze(Math.min(y * 16, w * 2)), c.readyState = ce;
4325
+ var W = new rt("error", { error: Z });
4326
+ c.dispatchEvent(W), ve(c, c.onerror, W), Z != null && console.error(Z);
4325
4327
  }
4326
4328
  }, Ht = function() {
4327
- ue = Se, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Se;
4328
- }, Je = function() {
4329
- if (K = 0, ue !== Oe) {
4330
- if (!P && ie != null)
4331
- en(new Error("No activity within " + y + " milliseconds. " + (ue === pe ? "No response received." : G + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4329
+ he = Ae, ae != null && (ae.abort(), ae = void 0), K !== 0 && (i(K), K = 0), c.readyState = Ae;
4330
+ }, Qe = function() {
4331
+ if (K = 0, he !== ye) {
4332
+ if (!N && ae != null)
4333
+ nn(new Error("No activity within " + B + " milliseconds. " + (he === ce ? "No response received." : G + " chars received.") + " Reconnecting.")), ae != null && (ae.abort(), ae = void 0);
4332
4334
  else {
4333
- var Z = Math.max((P || Date.now()) + y - Date.now(), 1);
4334
- P = !1, K = r(function() {
4335
- Je();
4335
+ var Z = Math.max((N || Date.now()) + B - Date.now(), 1);
4336
+ N = !1, K = r(function() {
4337
+ Qe();
4336
4338
  }, Z);
4337
4339
  }
4338
4340
  return;
4339
4341
  }
4340
- P = !1, G = 0, K = r(function() {
4341
- Je();
4342
- }, y), ue = pe, Me = "", be = "", st = L, lt = "", Ct = 0, Ce = 0, ee = le;
4343
- var z = f;
4344
- if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && L !== "") {
4345
- var oe = f.indexOf("?");
4346
- z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Ne) {
4347
- return Ne === v ? "" : ve;
4348
- }), z += (f.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(L);
4342
+ N = !1, G = 0, K = r(function() {
4343
+ Qe();
4344
+ }, B), he = ce, Re = "", xe = "", lt = E, ut = "", Ct = 0, Ce = 0, ee = le;
4345
+ var W = o;
4346
+ if (o.slice(0, 5) !== "data:" && o.slice(0, 5) !== "blob:" && E !== "") {
4347
+ var oe = o.indexOf("?");
4348
+ W = oe === -1 ? o : o.slice(0, oe + 1) + o.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Be, Le) {
4349
+ return Le === m ? "" : Be;
4350
+ }), W += (o.indexOf("?") === -1 ? "?" : "&") + m + "=" + encodeURIComponent(E);
4349
4351
  }
4350
- var ae = a.withCredentials, te = {};
4352
+ var se = c.withCredentials, te = {};
4351
4353
  te.Accept = "text/event-stream";
4352
- var Q = a.headers;
4354
+ var Q = c.headers;
4353
4355
  if (Q != null)
4354
- for (var ye in Q)
4355
- Object.prototype.hasOwnProperty.call(Q, ye) && (te[ye] = Q[ye]);
4356
+ for (var _e in Q)
4357
+ Object.prototype.hasOwnProperty.call(Q, _e) && (te[_e] = Q[_e]);
4356
4358
  try {
4357
- ie = Qe.open(ge, nr, rr, en, z, ae, te);
4358
- } catch (ve) {
4359
- throw Ht(), ve;
4359
+ ae = qe.open(Ee, ir, ar, nn, W, se, te);
4360
+ } catch (Be) {
4361
+ throw Ht(), Be;
4360
4362
  }
4361
4363
  };
4362
- a.url = f, a.readyState = pe, a.withCredentials = c, a.headers = w, a._close = Ht, Je();
4364
+ c.url = o, c.readyState = ce, c.withCredentials = f, c.headers = A, c._close = Ht, Qe();
4363
4365
  }
4364
- re.prototype = Object.create(X.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Be, re.prototype.CLOSED = Se, re.prototype.close = function() {
4366
+ ie.prototype = Object.create($.prototype), ie.prototype.CONNECTING = ce, ie.prototype.OPEN = we, ie.prototype.CLOSED = Ae, ie.prototype.close = function() {
4365
4367
  this._close();
4366
- }, re.CONNECTING = pe, re.OPEN = Be, re.CLOSED = Se, re.prototype.withCredentials = void 0;
4367
- var at = h;
4368
- o != null && (h == null || !("withCredentials" in h.prototype)) && (at = re), function(a) {
4368
+ }, ie.CONNECTING = ce, ie.OPEN = we, ie.CLOSED = Ae, ie.prototype.withCredentials = void 0;
4369
+ var st = h;
4370
+ a != null && (h == null || !("withCredentials" in h.prototype)) && (st = ie), function(c) {
4369
4371
  {
4370
- var f = a(t);
4371
- f !== void 0 && (e.exports = f);
4372
+ var o = c(t);
4373
+ o !== void 0 && (e.exports = o);
4372
4374
  }
4373
- }(function(a) {
4374
- a.EventSourcePolyfill = re, a.NativeEventSource = h, a.EventSource = at;
4375
+ }(function(c) {
4376
+ c.EventSourcePolyfill = ie, c.NativeEventSource = h, c.EventSource = st;
4375
4377
  });
4376
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Rr : globalThis);
4378
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Mr : globalThis);
4377
4379
  })(qt, qt.exports);
4378
- var xo = qt.exports;
4380
+ var xa = qt.exports;
4379
4381
  /*!
4380
4382
  * currency.js - v2.0.4
4381
4383
  * http://scurker.github.io/currency.js
@@ -4383,7 +4385,7 @@ var xo = qt.exports;
4383
4385
  * Copyright (c) 2021 Jason Wilson
4384
4386
  * Released under MIT license
4385
4387
  */
4386
- var _o = {
4388
+ var _a = {
4387
4389
  symbol: "$",
4388
4390
  separator: ",",
4389
4391
  decimal: ".",
@@ -4391,43 +4393,43 @@ var _o = {
4391
4393
  precision: 2,
4392
4394
  pattern: "!#",
4393
4395
  negativePattern: "-!#",
4394
- format: So,
4396
+ format: Sa,
4395
4397
  fromCents: !1
4396
- }, tr = function(t) {
4398
+ }, rr = function(t) {
4397
4399
  return Math.round(t);
4398
- }, Kt = function(t) {
4400
+ }, tn = function(t) {
4399
4401
  return Math.pow(10, t);
4400
- }, Bo = function(t, n) {
4401
- return tr(t / n) * n;
4402
- }, To = /(\d)(?=(\d{3})+\b)/g, wo = /(\d)(?=(\d\d)+\d\b)/g;
4403
- function ce(e, t) {
4402
+ }, Ba = function(t, n) {
4403
+ return rr(t / n) * n;
4404
+ }, Ta = /(\d)(?=(\d{3})+\b)/g, wa = /(\d)(?=(\d\d)+\d\b)/g;
4405
+ function fe(e, t) {
4404
4406
  var n = this;
4405
- if (!(n instanceof ce))
4406
- return new ce(e, t);
4407
- var r = Object.assign({}, _o, t), i = Kt(r.precision), o = dt(e, r);
4408
- 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;
4407
+ if (!(n instanceof fe))
4408
+ return new fe(e, t);
4409
+ var r = Object.assign({}, _a, t), i = tn(r.precision), a = pt(e, r);
4410
+ n.intValue = a, n.value = a / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = wa : r.groups = Ta, this.s = r, this.p = i;
4409
4411
  }
4410
- function dt(e, t) {
4411
- 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;
4412
+ function pt(e, t) {
4413
+ 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 = tn(l), u = typeof e == "number", d = e instanceof fe;
4412
4414
  if (d && s)
4413
4415
  return e.intValue;
4414
4416
  if (u || d)
4415
4417
  r = d ? e.value : e;
4416
4418
  else if (typeof e == "string") {
4417
- var m = new RegExp("[^-\\d" + i + "]", "g"), g = new RegExp("\\" + i, "g");
4418
- r = e.replace(/\((.*)\)/, "-$1").replace(m, "").replace(g, "."), r = r || 0;
4419
+ var g = new RegExp("[^-\\d" + i + "]", "g"), b = new RegExp("\\" + i, "g");
4420
+ r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(b, "."), r = r || 0;
4419
4421
  } else {
4420
- if (o)
4422
+ if (a)
4421
4423
  throw Error("Invalid Input");
4422
4424
  r = 0;
4423
4425
  }
4424
- return s || (r *= h, r = r.toFixed(4)), n ? tr(r) : r;
4426
+ return s || (r *= h, r = r.toFixed(4)), n ? rr(r) : r;
4425
4427
  }
4426
- function So(e, t) {
4427
- 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];
4428
- return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
4428
+ function Sa(e, t) {
4429
+ 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];
4430
+ return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + a) + (d ? l + d : ""));
4429
4431
  }
4430
- ce.prototype = {
4432
+ fe.prototype = {
4431
4433
  /**
4432
4434
  * Adds values together.
4433
4435
  * @param {number} number
@@ -4435,7 +4437,7 @@ ce.prototype = {
4435
4437
  */
4436
4438
  add: function(t) {
4437
4439
  var n = this.intValue, r = this.s, i = this.p;
4438
- return ce((n += dt(t, r)) / (r.fromCents ? 1 : i), r);
4440
+ return fe((n += pt(t, r)) / (r.fromCents ? 1 : i), r);
4439
4441
  },
4440
4442
  /**
4441
4443
  * Subtracts value.
@@ -4444,7 +4446,7 @@ ce.prototype = {
4444
4446
  */
4445
4447
  subtract: function(t) {
4446
4448
  var n = this.intValue, r = this.s, i = this.p;
4447
- return ce((n -= dt(t, r)) / (r.fromCents ? 1 : i), r);
4449
+ return fe((n -= pt(t, r)) / (r.fromCents ? 1 : i), r);
4448
4450
  },
4449
4451
  /**
4450
4452
  * Multiplies values.
@@ -4453,7 +4455,7 @@ ce.prototype = {
4453
4455
  */
4454
4456
  multiply: function(t) {
4455
4457
  var n = this.intValue, r = this.s;
4456
- return ce((n *= t) / (r.fromCents ? 1 : Kt(r.precision)), r);
4458
+ return fe((n *= t) / (r.fromCents ? 1 : tn(r.precision)), r);
4457
4459
  },
4458
4460
  /**
4459
4461
  * Divides value.
@@ -4462,7 +4464,7 @@ ce.prototype = {
4462
4464
  */
4463
4465
  divide: function(t) {
4464
4466
  var n = this.intValue, r = this.s;
4465
- return ce(n /= dt(t, r, !1), r);
4467
+ return fe(n /= pt(t, r, !1), r);
4466
4468
  },
4467
4469
  /**
4468
4470
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -4471,11 +4473,11 @@ ce.prototype = {
4471
4473
  * @returns {array}
4472
4474
  */
4473
4475
  distribute: function(t) {
4474
- 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--) {
4475
- var u = ce(l / h, i);
4476
- s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / h)), o.push(u);
4476
+ 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--) {
4477
+ var u = fe(l / h, i);
4478
+ s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / h)), a.push(u);
4477
4479
  }
4478
- return o;
4480
+ return a;
4479
4481
  },
4480
4482
  /**
4481
4483
  * Returns the dollar value.
@@ -4507,7 +4509,7 @@ ce.prototype = {
4507
4509
  */
4508
4510
  toString: function() {
4509
4511
  var t = this.intValue, n = this.p, r = this.s;
4510
- return Bo(t / n, r.increment).toFixed(r.precision);
4512
+ return Ba(t / n, r.increment).toFixed(r.precision);
4511
4513
  },
4512
4514
  /**
4513
4515
  * Value for JSON serialization.
@@ -4517,18 +4519,18 @@ ce.prototype = {
4517
4519
  return this.value;
4518
4520
  }
4519
4521
  };
4520
- function Ao(e) {
4521
- 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}');
4522
+ function Aa(e) {
4523
+ lr(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}');
4522
4524
  }
4523
- function En(e, t, n) {
4525
+ function _n(e, t, n) {
4524
4526
  const r = e.slice();
4525
4527
  return r[50] = t[n], r;
4526
4528
  }
4527
- function xn(e, t, n) {
4529
+ function Bn(e, t, n) {
4528
4530
  const r = e.slice();
4529
4531
  return r[53] = t[n], r;
4530
4532
  }
4531
- function Co(e) {
4533
+ function Ca(e) {
4532
4534
  let t, n, r = (
4533
4535
  /*balances*/
4534
4536
  (e[1].Total ? (
@@ -4538,158 +4540,158 @@ function Co(e) {
4538
4540
  e[1].Total[0].amount
4539
4541
  )
4540
4542
  ) : "0") + ""
4541
- ), i, o, l, s, h, u, d, m, g, _, B, T, x = (
4543
+ ), i, a, l, s, h, u, d, g, b, _, T, S, x = (
4542
4544
  /*showBalance*/
4543
- e[4] && _n(e)
4545
+ e[4] && Tn(e)
4544
4546
  );
4545
4547
  return {
4546
4548
  c() {
4547
- t = j("div"), n = j("p"), i = he(r), o = de(), l = he(
4549
+ t = j("div"), n = j("p"), i = de(r), a = me(), l = de(
4548
4550
  /*currency*/
4549
4551
  e[5]
4550
- ), 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*/
4551
- e[3] ? "TriangleActive" : "TriangleInactive"), N(t, "class", "BalanceValue");
4552
+ ), s = me(), h = j("span"), u = an("svg"), d = an("path"), b = me(), x && x.c(), _ = hr(), 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", g = /*modalOpened*/
4553
+ e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
4552
4554
  },
4553
- m(S, D) {
4554
- 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(
4555
+ m(C, D) {
4556
+ ge(C, t, D), H(t, n), H(n, i), H(n, a), H(n, l), H(t, s), H(t, h), H(h, u), H(u, d), ge(C, b, D), x && x.m(C, D), ge(C, _, D), T || (S = mt(
4555
4557
  t,
4556
4558
  "click",
4557
4559
  /*click_handler*/
4558
4560
  e[25]
4559
- ), B = !0);
4561
+ ), T = !0);
4560
4562
  },
4561
- p(S, D) {
4563
+ p(C, D) {
4562
4564
  D[0] & /*balances*/
4563
4565
  2 && r !== (r = /*balances*/
4564
- (S[1].Total ? (
4566
+ (C[1].Total ? (
4565
4567
  /*formatBalance*/
4566
- S[8](
4568
+ C[8](
4567
4569
  /*balances*/
4568
- S[1].Total[0].amount
4570
+ C[1].Total[0].amount
4569
4571
  )
4570
- ) : "0") + "") && Ee(i, r), D[0] & /*currency*/
4571
- 32 && Ee(
4572
+ ) : "0") + "") && Te(i, r), D[0] & /*currency*/
4573
+ 32 && Te(
4572
4574
  l,
4573
4575
  /*currency*/
4574
- S[5]
4576
+ C[5]
4575
4577
  ), D[0] & /*modalOpened*/
4576
- 8 && m !== (m = /*modalOpened*/
4577
- S[3] ? "TriangleActive" : "TriangleInactive") && N(h, "class", m), /*showBalance*/
4578
- S[4] ? x ? x.p(S, D) : (x = _n(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
4578
+ 8 && g !== (g = /*modalOpened*/
4579
+ C[3] ? "TriangleActive" : "TriangleInactive") && M(h, "class", g), /*showBalance*/
4580
+ C[4] ? x ? x.p(C, D) : (x = Tn(C), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
4579
4581
  },
4580
- d(S) {
4581
- S && (fe(t), fe(g), fe(_)), x && x.d(S), B = !1, T();
4582
+ d(C) {
4583
+ C && (pe(t), pe(b), pe(_)), x && x.d(C), T = !1, S();
4582
4584
  }
4583
4585
  };
4584
4586
  }
4585
- function Ho(e) {
4587
+ function Ha(e) {
4586
4588
  let t, n = (
4587
4589
  /*$_*/
4588
4590
  e[6]("Loading") + ""
4589
4591
  ), r;
4590
4592
  return {
4591
4593
  c() {
4592
- t = j("p"), r = he(n), N(t, "class", "Loading");
4594
+ t = j("p"), r = de(n), M(t, "class", "Loading");
4593
4595
  },
4594
- m(i, o) {
4595
- me(i, t, o), C(t, r);
4596
+ m(i, a) {
4597
+ ge(i, t, a), H(t, r);
4596
4598
  },
4597
- p(i, o) {
4598
- o[0] & /*$_*/
4599
+ p(i, a) {
4600
+ a[0] & /*$_*/
4599
4601
  64 && n !== (n = /*$_*/
4600
- i[6]("Loading") + "") && Ee(r, n);
4602
+ i[6]("Loading") + "") && Te(r, n);
4601
4603
  },
4602
4604
  d(i) {
4603
- i && fe(t);
4605
+ i && pe(t);
4604
4606
  }
4605
4607
  };
4606
4608
  }
4607
- function _n(e) {
4608
- let t, n, r, i, o, l, s, h, u = (
4609
+ function Tn(e) {
4610
+ let t, n, r, i, a, l, s, h, u = (
4609
4611
  /*$_*/
4610
4612
  e[6]("Title") + ""
4611
- ), d, m, g, _, B, T, x = (
4613
+ ), d, g, b, _, T, S, x = (
4612
4614
  /*$_*/
4613
4615
  e[6]("DepositButton") + ""
4614
- ), S, D, H, U, W, q, Y = mt(Object.keys(
4616
+ ), C, D, O, U, q, re, z = gt(Object.keys(
4615
4617
  /*balances*/
4616
4618
  e[1]
4617
- )), $ = [];
4618
- for (let R = 0; R < Y.length; R += 1)
4619
- $[R] = Tn(En(e, Y, R));
4619
+ )), X = [];
4620
+ for (let P = 0; P < z.length; P += 1)
4621
+ X[P] = Sn(_n(e, z, P));
4620
4622
  return {
4621
4623
  c() {
4622
- 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");
4623
- for (let R = 0; R < $.length; R += 1)
4624
- $[R].c();
4625
- _ = de(), B = j("div"), T = j("button"), S = he(x), N(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4626
- (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*/
4627
- (e[3] ? "Open" : "")), N(o, "class", H = "BalanceModal " + /*modalOpened*/
4628
- (e[3] ? "Open" : "")), N(t, "class", U = "BalanceModalWrapper " + /*modalOpened*/
4624
+ t = j("div"), n = j("div"), i = me(), a = j("div"), l = j("div"), s = j("div"), h = j("p"), d = de(u), g = me(), b = j("div");
4625
+ for (let P = 0; P < X.length; P += 1)
4626
+ X[P].c();
4627
+ _ = me(), T = j("div"), S = j("button"), C = de(x), M(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4628
+ (e[3] ? "Open" : "")), M(h, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(b, "class", "BalanceModalBody"), M(S, "class", "BalanceModalAction"), M(T, "class", "BalanceModalFooter"), M(l, "class", D = "ModalContent " + /*modalOpened*/
4629
+ (e[3] ? "Open" : "")), M(a, "class", O = "BalanceModal " + /*modalOpened*/
4630
+ (e[3] ? "Open" : "")), M(t, "class", U = "BalanceModalWrapper " + /*modalOpened*/
4629
4631
  (e[3] ? "Open" : ""));
4630
4632
  },
4631
- m(R, X) {
4632
- 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);
4633
- for (let F = 0; F < $.length; F += 1)
4634
- $[F] && $[F].m(g, null);
4635
- C(l, _), C(l, B), C(B, T), C(T, S), W || (q = [
4636
- pt(
4633
+ m(P, $) {
4634
+ ge(P, t, $), H(t, n), H(t, i), H(t, a), H(a, l), H(l, s), H(s, h), H(h, d), H(l, g), H(l, b);
4635
+ for (let F = 0; F < X.length; F += 1)
4636
+ X[F] && X[F].m(b, null);
4637
+ H(l, _), H(l, T), H(T, S), H(S, C), q || (re = [
4638
+ mt(
4637
4639
  n,
4638
4640
  "click",
4639
4641
  /*click_handler_1*/
4640
4642
  e[26]
4641
4643
  ),
4642
- pt(
4643
- T,
4644
+ mt(
4645
+ S,
4644
4646
  "click",
4645
4647
  /*click_handler_2*/
4646
4648
  e[27]
4647
4649
  )
4648
- ], W = !0);
4650
+ ], q = !0);
4649
4651
  },
4650
- p(R, X) {
4651
- if (X[0] & /*modalOpened*/
4652
+ p(P, $) {
4653
+ if ($[0] & /*modalOpened*/
4652
4654
  8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
4653
- (R[3] ? "Open" : "")) && N(n, "class", r), X[0] & /*$_*/
4655
+ (P[3] ? "Open" : "")) && M(n, "class", r), $[0] & /*$_*/
4654
4656
  64 && u !== (u = /*$_*/
4655
- R[6]("Title") + "") && Ee(d, u), X[0] & /*balances, currency, formatBalance, $_*/
4657
+ P[6]("Title") + "") && Te(d, u), $[0] & /*balances, currency, formatBalance, $_*/
4656
4658
  354) {
4657
- Y = mt(Object.keys(
4659
+ z = gt(Object.keys(
4658
4660
  /*balances*/
4659
- R[1]
4661
+ P[1]
4660
4662
  ));
4661
4663
  let F;
4662
- for (F = 0; F < Y.length; F += 1) {
4663
- const b = En(R, Y, F);
4664
- $[F] ? $[F].p(b, X) : ($[F] = Tn(b), $[F].c(), $[F].m(g, null));
4664
+ for (F = 0; F < z.length; F += 1) {
4665
+ const Y = _n(P, z, F);
4666
+ X[F] ? X[F].p(Y, $) : (X[F] = Sn(Y), X[F].c(), X[F].m(b, null));
4665
4667
  }
4666
- for (; F < $.length; F += 1)
4667
- $[F].d(1);
4668
- $.length = Y.length;
4668
+ for (; F < X.length; F += 1)
4669
+ X[F].d(1);
4670
+ X.length = z.length;
4669
4671
  }
4670
- X[0] & /*$_*/
4672
+ $[0] & /*$_*/
4671
4673
  64 && x !== (x = /*$_*/
4672
- R[6]("DepositButton") + "") && Ee(S, x), X[0] & /*modalOpened*/
4674
+ P[6]("DepositButton") + "") && Te(C, x), $[0] & /*modalOpened*/
4673
4675
  8 && D !== (D = "ModalContent " + /*modalOpened*/
4674
- (R[3] ? "Open" : "")) && N(l, "class", D), X[0] & /*modalOpened*/
4675
- 8 && H !== (H = "BalanceModal " + /*modalOpened*/
4676
- (R[3] ? "Open" : "")) && N(o, "class", H), X[0] & /*modalOpened*/
4676
+ (P[3] ? "Open" : "")) && M(l, "class", D), $[0] & /*modalOpened*/
4677
+ 8 && O !== (O = "BalanceModal " + /*modalOpened*/
4678
+ (P[3] ? "Open" : "")) && M(a, "class", O), $[0] & /*modalOpened*/
4677
4679
  8 && U !== (U = "BalanceModalWrapper " + /*modalOpened*/
4678
- (R[3] ? "Open" : "")) && N(t, "class", U);
4680
+ (P[3] ? "Open" : "")) && M(t, "class", U);
4679
4681
  },
4680
- d(R) {
4681
- R && fe(t), Hn($, R), W = !1, je(q);
4682
+ d(P) {
4683
+ P && pe(t), Rn(X, P), q = !1, $e(re);
4682
4684
  }
4683
4685
  };
4684
4686
  }
4685
- function Bn(e) {
4687
+ function wn(e) {
4686
4688
  let t, n, r = (
4687
4689
  /*$_*/
4688
4690
  e[6](
4689
4691
  /*k*/
4690
4692
  e[50]
4691
4693
  ) + ""
4692
- ), i, o, l = (
4694
+ ), i, a, l = (
4693
4695
  /*b*/
4694
4696
  (e[53].productType ? (
4695
4697
  /*$_*/
@@ -4698,7 +4700,7 @@ function Bn(e) {
4698
4700
  e[53].productType
4699
4701
  )
4700
4702
  ) : "") + ""
4701
- ), s, h, u, d, m = (
4703
+ ), s, h, u, d, g = (
4702
4704
  /*b*/
4703
4705
  (e[53].amount ? (
4704
4706
  /*formatBalance*/
@@ -4707,24 +4709,24 @@ function Bn(e) {
4707
4709
  e[53].amount
4708
4710
  )
4709
4711
  ) : "0") + ""
4710
- ), g, _, B, T;
4712
+ ), b, _, T, S;
4711
4713
  return {
4712
4714
  c() {
4713
- 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(
4715
+ t = j("div"), n = j("p"), i = de(r), a = me(), s = de(l), h = me(), u = j("p"), d = j("span"), b = de(g), _ = me(), T = j("span"), S = de(
4714
4716
  /*currency*/
4715
4717
  e[5]
4716
- ), N(n, "class", "BalanceModalText"), N(d, "class", "BalanceModalAmount"), N(B, "class", "BalanceModalCurrency"), N(u, "class", "BalanceModalValue"), N(t, "class", "BalanceModalRowLine");
4718
+ ), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(T, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
4717
4719
  },
4718
- m(x, S) {
4719
- 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);
4720
+ m(x, C) {
4721
+ ge(x, t, C), H(t, n), H(n, i), H(n, a), H(n, s), H(t, h), H(t, u), H(u, d), H(d, b), H(u, _), H(u, T), H(T, S);
4720
4722
  },
4721
- p(x, S) {
4722
- S[0] & /*$_, balances*/
4723
+ p(x, C) {
4724
+ C[0] & /*$_, balances*/
4723
4725
  66 && r !== (r = /*$_*/
4724
4726
  x[6](
4725
4727
  /*k*/
4726
4728
  x[50]
4727
- ) + "") && Ee(i, r), S[0] & /*balances, $_*/
4729
+ ) + "") && Te(i, r), C[0] & /*balances, $_*/
4728
4730
  66 && l !== (l = /*b*/
4729
4731
  (x[53].productType ? (
4730
4732
  /*$_*/
@@ -4732,134 +4734,134 @@ function Bn(e) {
4732
4734
  /*b*/
4733
4735
  x[53].productType
4734
4736
  )
4735
- ) : "") + "") && Ee(s, l), S[0] & /*balances*/
4736
- 2 && m !== (m = /*b*/
4737
+ ) : "") + "") && Te(s, l), C[0] & /*balances*/
4738
+ 2 && g !== (g = /*b*/
4737
4739
  (x[53].amount ? (
4738
4740
  /*formatBalance*/
4739
4741
  x[8](
4740
4742
  /*b*/
4741
4743
  x[53].amount
4742
4744
  )
4743
- ) : "0") + "") && Ee(g, m), S[0] & /*currency*/
4744
- 32 && Ee(
4745
- T,
4745
+ ) : "0") + "") && Te(b, g), C[0] & /*currency*/
4746
+ 32 && Te(
4747
+ S,
4746
4748
  /*currency*/
4747
4749
  x[5]
4748
4750
  );
4749
4751
  },
4750
4752
  d(x) {
4751
- x && fe(t);
4753
+ x && pe(t);
4752
4754
  }
4753
4755
  };
4754
4756
  }
4755
- function Tn(e) {
4756
- let t, n, r = mt(
4757
+ function Sn(e) {
4758
+ let t, n, r = gt(
4757
4759
  /*balances*/
4758
4760
  e[1][
4759
4761
  /*k*/
4760
4762
  e[50]
4761
4763
  ]
4762
4764
  ), i = [];
4763
- for (let o = 0; o < r.length; o += 1)
4764
- i[o] = Bn(xn(e, r, o));
4765
+ for (let a = 0; a < r.length; a += 1)
4766
+ i[a] = wn(Bn(e, r, a));
4765
4767
  return {
4766
4768
  c() {
4767
4769
  t = j("div");
4768
- for (let o = 0; o < i.length; o += 1)
4769
- i[o].c();
4770
- n = de(), N(t, "class", "BalanceModalRowBoth");
4770
+ for (let a = 0; a < i.length; a += 1)
4771
+ i[a].c();
4772
+ n = me(), M(t, "class", "BalanceModalRowBoth");
4771
4773
  },
4772
- m(o, l) {
4773
- me(o, t, l);
4774
+ m(a, l) {
4775
+ ge(a, t, l);
4774
4776
  for (let s = 0; s < i.length; s += 1)
4775
4777
  i[s] && i[s].m(t, null);
4776
- C(t, n);
4778
+ H(t, n);
4777
4779
  },
4778
- p(o, l) {
4780
+ p(a, l) {
4779
4781
  if (l[0] & /*currency, balances, formatBalance, $_*/
4780
4782
  354) {
4781
- r = mt(
4783
+ r = gt(
4782
4784
  /*balances*/
4783
- o[1][
4785
+ a[1][
4784
4786
  /*k*/
4785
- o[50]
4787
+ a[50]
4786
4788
  ]
4787
4789
  );
4788
4790
  let s;
4789
4791
  for (s = 0; s < r.length; s += 1) {
4790
- const h = xn(o, r, s);
4791
- i[s] ? i[s].p(h, l) : (i[s] = Bn(h), i[s].c(), i[s].m(t, n));
4792
+ const h = Bn(a, r, s);
4793
+ i[s] ? i[s].p(h, l) : (i[s] = wn(h), i[s].c(), i[s].m(t, n));
4792
4794
  }
4793
4795
  for (; s < i.length; s += 1)
4794
4796
  i[s].d(1);
4795
4797
  i.length = r.length;
4796
4798
  }
4797
4799
  },
4798
- d(o) {
4799
- o && fe(t), Hn(i, o);
4800
+ d(a) {
4801
+ a && pe(t), Rn(i, a);
4800
4802
  }
4801
4803
  };
4802
4804
  }
4803
- function wn(e) {
4805
+ function An(e) {
4804
4806
  let t, n, r;
4805
4807
  return {
4806
4808
  c() {
4807
- t = j("div"), N(t, "class", "ShowBalanceModalOverlay");
4809
+ t = j("div"), M(t, "class", "ShowBalanceModalOverlay");
4808
4810
  },
4809
- m(i, o) {
4810
- me(i, t, o), n || (r = pt(
4811
+ m(i, a) {
4812
+ ge(i, t, a), n || (r = mt(
4811
4813
  t,
4812
4814
  "click",
4813
4815
  /*click_handler_3*/
4814
4816
  e[28]
4815
4817
  ), n = !0);
4816
4818
  },
4817
- p: se,
4819
+ p: ue,
4818
4820
  d(i) {
4819
- i && fe(t), n = !1, r();
4821
+ i && pe(t), n = !1, r();
4820
4822
  }
4821
4823
  };
4822
4824
  }
4823
- function Oo(e) {
4825
+ function Oa(e) {
4824
4826
  let t, n, r;
4825
4827
  function i(h, u) {
4826
4828
  return (
4827
4829
  /*isLoading*/
4828
- h[2] ? Ho : Co
4830
+ h[2] ? Ha : Ca
4829
4831
  );
4830
4832
  }
4831
- let o = i(e), l = o(e), s = (
4833
+ let a = i(e), l = a(e), s = (
4832
4834
  /*showBalance*/
4833
- e[4] && wn(e)
4835
+ e[4] && An(e)
4834
4836
  );
4835
4837
  return {
4836
4838
  c() {
4837
- t = j("div"), n = j("div"), l.c(), r = de(), s && s.c(), N(n, "class", "ShowBalance");
4839
+ t = j("div"), n = j("div"), l.c(), r = me(), s && s.c(), M(n, "class", "ShowBalance");
4838
4840
  },
4839
4841
  m(h, u) {
4840
- me(h, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[29](t);
4842
+ ge(h, t, u), H(t, n), l.m(n, null), H(t, r), s && s.m(t, null), e[29](t);
4841
4843
  },
4842
4844
  p(h, u) {
4843
- o === (o = i(h)) && l ? l.p(h, u) : (l.d(1), l = o(h), l && (l.c(), l.m(n, null))), /*showBalance*/
4844
- h[4] ? s ? s.p(h, u) : (s = wn(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4845
+ a === (a = i(h)) && l ? l.p(h, u) : (l.d(1), l = a(h), l && (l.c(), l.m(n, null))), /*showBalance*/
4846
+ h[4] ? s ? s.p(h, u) : (s = An(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4845
4847
  },
4846
- i: se,
4847
- o: se,
4848
+ i: ue,
4849
+ o: ue,
4848
4850
  d(h) {
4849
- h && fe(t), l.d(), s && s.d(), e[29](null);
4851
+ h && pe(t), l.d(), s && s.d(), e[29](null);
4850
4852
  }
4851
4853
  };
4852
4854
  }
4853
- function Ro(e, t, n) {
4855
+ function Ra(e, t, n) {
4854
4856
  let r;
4855
- or(e, vo, (a) => n(6, r = a));
4856
- 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;
4857
- const b = {}, xe = ["totalCashAmount", "totalRealAmount"], We = () => {
4858
- fetch(m).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => yn(f, a[f]))).catch((a) => console.log(a));
4857
+ sr(e, va, (o) => n(6, r = o));
4858
+ let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: T = "All" } = t, { totalcalculationmode: S = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: C = "" } = t, { currencyprecision: D = "" } = t, O, U, q, re, z, X = !1, P = "", $ = [], F, Y = !1;
4859
+ const v = {}, be = ["totalCashAmount", "totalRealAmount"], rt = () => {
4860
+ fetch(g).then((o) => o.json()).then((o) => Object.keys(o).forEach((p) => En(p, o[p]))).catch((o) => console.log(o));
4859
4861
  };
4860
- Object.keys(vn).forEach((a) => yn(a, vn[a]));
4861
- const _e = (a) => {
4862
- switch (a) {
4862
+ Object.keys(xn).forEach((o) => En(o, xn[o]));
4863
+ const ye = (o) => {
4864
+ switch (o) {
4863
4865
  case "balance":
4864
4866
  window.postMessage(
4865
4867
  {
@@ -4867,10 +4869,10 @@ function Ro(e, t, n) {
4867
4869
  status: "open"
4868
4870
  },
4869
4871
  window.location.href
4870
- ), n(4, Y = !0), setTimeout(() => n(3, W = !0), 150);
4872
+ ), n(4, X = !0), setTimeout(() => n(3, re = !0), 150);
4871
4873
  break;
4872
4874
  case "closebalance":
4873
- n(3, W = !1), window.postMessage(
4875
+ n(3, re = !1), window.postMessage(
4874
4876
  {
4875
4877
  type: "BalanceModalStatus",
4876
4878
  status: "close"
@@ -4878,86 +4880,86 @@ function Ro(e, t, n) {
4878
4880
  window.location.href
4879
4881
  ), setTimeout(
4880
4882
  () => {
4881
- n(4, Y = !1);
4883
+ n(4, X = !1);
4882
4884
  },
4883
4885
  150
4884
4886
  );
4885
4887
  break;
4886
4888
  }
4887
- }, Oe = () => {
4888
- if (g.includes(s))
4889
- return g;
4890
- }, pe = (a) => g ? new Intl.NumberFormat(Oe(), { useGrouping: !0 }).format(a) : x && S ? ce(a, {
4889
+ }, ce = () => {
4890
+ if (b.includes(s))
4891
+ return b;
4892
+ }, we = (o) => b ? new Intl.NumberFormat(ce(), { useGrouping: !0 }).format(o) : x && C ? fe(o, {
4891
4893
  separator: x,
4892
- decimal: S,
4894
+ decimal: C,
4893
4895
  symbol: "",
4894
4896
  precision: parseInt(D || "2", 10)
4895
- }).format() : ce(a, {
4897
+ }).format() : fe(o, {
4896
4898
  separator: ".",
4897
4899
  decimal: ",",
4898
4900
  symbol: "",
4899
4901
  precision: parseInt(D || "2", 10)
4900
- }).format(), Be = async () => {
4901
- n(2, H = !0);
4902
- const a = new URL(`${l}/v1/player/${i}/account`);
4902
+ }).format(), Ae = async () => {
4903
+ n(2, O = !0);
4904
+ const o = new URL(`${l}/v1/player/${i}/account`);
4903
4905
  try {
4904
- const f = await fetch(a, {
4906
+ const p = await fetch(o, {
4905
4907
  method: "GET",
4906
- headers: { "X-SessionID": o }
4907
- }), p = await f.json();
4908
- if (f.ok)
4909
- 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(
4908
+ headers: { "X-SessionID": a }
4909
+ }), f = await p.json();
4910
+ if (p.ok)
4911
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), $ = f.items, n(5, P = $.find((m) => m.displayName === "Casino")?.currency), n(1, v.Total = [{ amount: f.totalAmount[P] }], v), n(
4910
4912
  1,
4911
- b.Real = [
4913
+ v.Real = [
4912
4914
  {
4913
- amount: R.find((c) => c.displayName === "Casino")?.balanceAmount
4915
+ amount: $.find((m) => m.displayName === "Casino")?.balanceAmount
4914
4916
  }
4915
4917
  ],
4916
- b
4918
+ v
4917
4919
  ), n(
4918
4920
  1,
4919
- b.Bonus = [
4921
+ v.Bonus = [
4920
4922
  {
4921
- amount: R.find((c) => c.displayName === "UBS")?.balanceAmount
4923
+ amount: $.find((m) => m.displayName === "UBS")?.balanceAmount
4922
4924
  }
4923
4925
  ],
4924
- b
4926
+ v
4925
4927
  );
4926
4928
  else
4927
4929
  throw new Error("Failed to fetch balance data !");
4928
- } catch (f) {
4929
- console.log("Balance error: ", f);
4930
+ } catch (p) {
4931
+ console.log("Balance error: ", p);
4930
4932
  } finally {
4931
- n(2, H = !1);
4933
+ n(2, O = !1);
4932
4934
  }
4933
- }, Se = () => {
4934
- n(2, H = !0);
4935
- const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
4936
- f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((c) => c.json()).then((c) => {
4937
- c[T] || n(10, T = xe[0]);
4938
- const v = c.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
4939
- 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) {
4940
- X = {
4935
+ }, Xe = () => {
4936
+ n(2, O = !0);
4937
+ const o = new URL(`${l}/v2/player/${i}/balance`), p = new Headers();
4938
+ p.append("X-SessionID", a), fetch(o, { method: "GET", headers: p }).then((m) => m.json()).then((m) => {
4939
+ m[S] || n(10, S = be[0]);
4940
+ const y = m.items.find((E) => E.type === "Real" && E.walletAccountType === "Ordinary");
4941
+ if (n(5, P = y.currency), Y = !!y.productType, n(1, v.Total = [{ amount: 0 }], v), n(1, v.Real = [], v), n(1, v.Bonus = [], v), n(1, v.Credit = [], v), !Y) {
4942
+ F = {
4941
4943
  lastOrdinaryAfterAmount: 0,
4942
4944
  showCreditLineAfterAmount: !1
4943
- }, n(1, b.Total[0].amount = c[T][$], b);
4944
- for (const y of c.items)
4945
- switch (y.type) {
4945
+ }, n(1, v.Total[0].amount = m[S][P], v);
4946
+ for (const E of m.items)
4947
+ switch (E.type) {
4946
4948
  case "Bonus":
4947
- b.Bonus.length === 0 ? b.Bonus.push({ amount: y.amount }) : n(1, b.Bonus[0].amount += y.amount, b);
4949
+ v.Bonus.length === 0 ? v.Bonus.push({ amount: E.amount }) : n(1, v.Bonus[0].amount += E.amount, v);
4948
4950
  break;
4949
4951
  case "Real":
4950
- if (y.creditLine && b.Credit.length === 0 && b.Credit.push({ amount: y.creditLine }), T === "totalRealAmount")
4952
+ if (E.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: E.creditLine }), S === "totalRealAmount")
4951
4953
  continue;
4952
- b.Real.length === 0 ? b.Real.push({ amount: y.amount }) : n(1, b.Real[0].amount += y.amount, b);
4954
+ v.Real.length === 0 ? v.Real.push({ amount: E.amount }) : n(1, v.Real[0].amount += E.amount, v);
4953
4955
  break;
4954
4956
  }
4955
- for (const [y, L] of Object.entries(b))
4956
- L.length < 1 && delete b[y];
4957
- n(2, H = !1);
4957
+ for (const [E, w] of Object.entries(v))
4958
+ w.length < 1 && delete v[E];
4959
+ n(2, O = !1);
4958
4960
  return;
4959
4961
  }
4960
- X = {
4962
+ F = {
4961
4963
  Casino: {
4962
4964
  lastOrdinaryAfterAmount: 0,
4963
4965
  showCreditLineAfterAmount: !1
@@ -4967,202 +4969,202 @@ function Ro(e, t, n) {
4967
4969
  showCreditLineAfterAmount: !1
4968
4970
  }
4969
4971
  };
4970
- let E = c.items;
4971
- B && B !== "All" && (E = c.items.filter((y) => y.productType === B));
4972
- for (const y of E) {
4973
- let L;
4974
- switch (y.type) {
4972
+ let B = m.items;
4973
+ T && T !== "All" && (B = m.items.filter((E) => E.productType === T));
4974
+ for (const E of B) {
4975
+ let w;
4976
+ switch (E.type) {
4975
4977
  case "Bonus":
4976
- L = b.Bonus.findIndex((A) => A.productType === y.productType), L > 0 ? n(1, b.Bonus[L].amount += y.amount, b) : b.Bonus.push({
4977
- amount: y.amount,
4978
- productType: y.productType
4978
+ w = v.Bonus.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, v.Bonus[w].amount += E.amount, v) : v.Bonus.push({
4979
+ amount: E.amount,
4980
+ productType: E.productType
4979
4981
  });
4980
4982
  break;
4981
4983
  case "Real":
4982
- y.creditLine && b.Credit.push({
4983
- amount: y.creditLine,
4984
- productType: y.productType
4985
- }), L = b.Real.findIndex((A) => A.productType === y.productType), L > 0 ? n(1, b.Real[L].amount += y.amount, b) : b.Real.push({
4986
- amount: y.amount,
4987
- productType: y.productType
4984
+ E.creditLine && v.Credit.push({
4985
+ amount: E.creditLine,
4986
+ productType: E.productType
4987
+ }), w = v.Real.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, v.Real[w].amount += E.amount, v) : v.Real.push({
4988
+ amount: E.amount,
4989
+ productType: E.productType
4988
4990
  });
4989
4991
  break;
4990
4992
  }
4991
4993
  }
4992
- it();
4993
- for (const [y, L] of Object.entries(b))
4994
- L.length < 1 && delete b[y];
4995
- n(2, H = !1);
4996
- }).catch((c) => {
4997
- throw n(2, H = !1), new Error("Failed to fetch balance data !");
4994
+ at();
4995
+ for (const [E, w] of Object.entries(v))
4996
+ w.length < 1 && delete v[E];
4997
+ n(2, O = !1);
4998
+ }).catch((m) => {
4999
+ throw n(2, O = !1), new Error("Failed to fetch balance data !");
4998
5000
  });
4999
- }, Ae = () => {
5000
- if (q && q.close(), o.length < 1)
5001
+ }, le = () => {
5002
+ if (z && z.close(), a.length < 1)
5001
5003
  return;
5002
- let a, f;
5004
+ let o, p;
5003
5005
  switch (_) {
5004
5006
  case "gm16":
5005
- a = new URL(`${l}/v2/player/${i}/information/updates`), f = (v) => Bt(v);
5007
+ o = new URL(`${l}/v2/player/${i}/information/updates`), p = (y) => Tt(y);
5006
5008
  break;
5007
5009
  case "gmcore":
5008
- a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (v) => Ze(v);
5010
+ o = new URL(`${l}/v1/player/${i}/balance/updates`), p = (y) => it(y);
5009
5011
  break;
5010
5012
  }
5011
- const p = {
5013
+ const f = {
5012
5014
  accept: "text/event-stream",
5013
- "X-SessionId": o
5014
- }, c = new xo.EventSourcePolyfill(a, { headers: p });
5015
- q = c, c.addEventListener("message", f);
5016
- }, le = (a) => {
5017
- let f;
5015
+ "X-SessionId": a
5016
+ }, m = new xa.EventSourcePolyfill(o, { headers: f });
5017
+ z = m, m.addEventListener("message", p);
5018
+ }, Oe = (o) => {
5019
+ let p;
5018
5020
  try {
5019
- f = JSON.parse(a);
5020
- } catch (p) {
5021
- console.log("Balance stream failed: ", p);
5021
+ p = JSON.parse(o);
5022
+ } catch (f) {
5023
+ console.log("Balance stream failed: ", f);
5022
5024
  return;
5023
5025
  }
5024
- return f;
5025
- }, Ze = (a) => {
5026
- const f = le(a.data);
5027
- if (!f) {
5028
- Ae();
5026
+ return p;
5027
+ }, it = (o) => {
5028
+ const p = Oe(o.data);
5029
+ if (!p) {
5030
+ le();
5029
5031
  return;
5030
5032
  }
5031
- let p = "0";
5032
- const c = f.balanceChange;
5033
- R = R.map((v) => (c && c[v.id] && (v = {
5034
- ...v,
5035
- balanceAmount: c[v.id].afterAmount
5036
- }), 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);
5037
- }, Re = (a, f, p) => {
5038
- let c = null;
5039
- switch (p.walletAccountType) {
5033
+ let f = "0";
5034
+ const m = p.balanceChange;
5035
+ $ = $.map((y) => (m && m[y.id] && (y = {
5036
+ ...y,
5037
+ balanceAmount: m[y.id].afterAmount
5038
+ }), f = (parseFloat(y?.balanceAmount) + parseFloat(f)).toString(), y)), n(1, v.Real = [{ amount: $[0]?.balanceAmount }], v), n(1, v.Bonus = [{ amount: $[1]?.balanceAmount }], v), n(1, v.Total = [{ amount: Number(f) }], v);
5039
+ }, ze = (o, p, f) => {
5040
+ let m = null;
5041
+ switch (f.walletAccountType) {
5040
5042
  case "Ordinary":
5041
- p.afterAmount !== p.affectedAmount && (f.lastOrdinaryAfterAmount = p.afterAmount, f.showCreditLineAfterAmount || (c = p.afterAmount));
5043
+ f.afterAmount !== f.affectedAmount && (p.lastOrdinaryAfterAmount = f.afterAmount, p.showCreditLineAfterAmount || (m = f.afterAmount));
5042
5044
  break;
5043
5045
  case "CreditLine":
5044
- p.afterAmount !== 0 ? (c = p.afterAmount, f.showCreditLineAfterAmount = !0) : (c = f.lastOrdinaryAfterAmount, f.showCreditLineAfterAmount = !1);
5046
+ f.afterAmount !== 0 ? (m = f.afterAmount, p.showCreditLineAfterAmount = !0) : (m = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
5045
5047
  break;
5046
5048
  default:
5047
- c = p.afterAmount;
5049
+ m = f.afterAmount;
5048
5050
  }
5049
- return c === null ? a : c;
5050
- }, it = () => {
5051
- switch (T) {
5051
+ return m === null ? o : m;
5052
+ }, at = () => {
5053
+ switch (S) {
5052
5054
  case "totalCashAmount":
5053
- let a = 0;
5054
- for (const p of ["Real", "Bonus"])
5055
- for (const c of b[p])
5056
- a += Math.max(c.amount, 0);
5057
- n(1, b.Total[0].amount = a, b);
5055
+ let o = 0;
5056
+ for (const f of ["Real", "Bonus"])
5057
+ for (const m of v[f])
5058
+ o += Math.max(m.amount, 0);
5059
+ n(1, v.Total[0].amount = o, v);
5058
5060
  break;
5059
5061
  case "totalRealAmount":
5060
- if (!F)
5062
+ if (!Y)
5061
5063
  return;
5062
- let f = 0;
5063
- for (const p of b.Real)
5064
- f += p.amount;
5065
- n(1, b.Total[0].amount = f, b);
5064
+ let p = 0;
5065
+ for (const f of v.Real)
5066
+ p += f.amount;
5067
+ n(1, v.Total[0].amount = p, v);
5066
5068
  }
5067
- }, Bt = (a) => {
5068
- const f = le(a.data);
5069
- if (!f) {
5070
- Ae();
5069
+ }, Tt = (o) => {
5070
+ const p = Oe(o.data);
5071
+ if (!p) {
5072
+ le();
5071
5073
  return;
5072
5074
  }
5073
- if (f.type !== "BALANCE_UPDATE_V2")
5075
+ if (p.type !== "BALANCE_UPDATE_V2")
5074
5076
  return;
5075
- const p = f.body.balanceChange;
5076
- for (const [c, v] of Object.entries(p))
5077
- if (T === "totalRealAmount" && c === "Real" && !F && n(1, b.Total[0].amount = Re(b.Total[0].amount, X, v), b), !!b[c])
5078
- for (const E of b[c]) {
5079
- if (!F) {
5080
- E.amount = c === "Real" ? Re(E.amount, X, v) : v.afterAmount;
5077
+ const f = p.body.balanceChange;
5078
+ for (const [m, y] of Object.entries(f))
5079
+ if (S === "totalRealAmount" && m === "Real" && !Y && n(1, v.Total[0].amount = ze(v.Total[0].amount, F, y), v), !!v[m])
5080
+ for (const B of v[m]) {
5081
+ if (!Y) {
5082
+ B.amount = m === "Real" ? ze(B.amount, F, y) : y.afterAmount;
5081
5083
  continue;
5082
5084
  }
5083
- v.productType === E.productType && (E.amount = c === "Real" ? Re(E.amount, X[E.productType], v) : v.afterAmount);
5085
+ y.productType === B.productType && (B.amount = m === "Real" ? ze(B.amount, F[B.productType], y) : y.afterAmount);
5084
5086
  }
5085
- it();
5087
+ at();
5086
5088
  }, ot = () => {
5087
- _e("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5088
- }, Tt = () => {
5089
- 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]));
5090
- }, qe = () => {
5091
- switch (Eo(s), Tt(), _) {
5089
+ ye("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5090
+ }, We = () => {
5091
+ be.includes(S) || (console.error(`Unsupported value ('${S}') for totalcalculationmode parameter. Only the following values are supported ${be}. Using default value ('${be[0]}').`), n(10, S = be[0]));
5092
+ }, Ze = () => {
5093
+ switch (Ea(s), We(), _) {
5092
5094
  case "gmcore":
5093
- Be();
5095
+ Ae();
5094
5096
  break;
5095
5097
  case "gm16":
5096
- Se();
5098
+ Xe();
5097
5099
  break;
5098
5100
  default:
5099
5101
  throw Error(`Invalid apiversion attribute: ${_}`);
5100
5102
  }
5101
- }, Le = (a) => a.data && a.data.type === "LogoutSuccessfull" && q.close(), Te = () => {
5103
+ }, ve = (o) => o.data && o.data.type === "LogoutSuccessfull" && z.close(), ie = () => {
5102
5104
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5103
5105
  };
5104
- dr(() => (window.addEventListener("message", Le, !1), () => {
5105
- window.removeEventListener("message", Le), q && q.close();
5106
+ mr(() => (window.addEventListener("message", ve, !1), () => {
5107
+ window.emMessageBus && q && q.unsubscribe(), window.removeEventListener("message", ve), z && z.close();
5106
5108
  }));
5107
- const re = () => _e("balance"), wt = () => _e("closebalance"), St = () => ot(), At = () => _e("closeBalance");
5108
- function at(a) {
5109
- Dt[a ? "unshift" : "push"](() => {
5110
- U = a, n(0, U);
5109
+ const wt = () => ye("balance"), St = () => ye("closebalance"), At = () => ot(), st = () => ye("closeBalance");
5110
+ function c(o) {
5111
+ Dt[o ? "unshift" : "push"](() => {
5112
+ U = o, n(0, U);
5111
5113
  });
5112
5114
  }
5113
- return e.$$set = (a) => {
5114
- "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);
5115
+ return e.$$set = (o) => {
5116
+ "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), "mbsource" in o && n(15, h = o.mbsource), "clientstyling" in o && n(16, u = o.clientstyling), "clientstylingurl" in o && n(17, d = o.clientstylingurl), "translationurl" in o && n(18, g = o.translationurl), "customlocaleidentifier" in o && n(19, b = o.customlocaleidentifier), "gmversion" in o && n(20, _ = o.gmversion), "displaybalanceoption" in o && n(21, T = o.displaybalanceoption), "totalcalculationmode" in o && n(10, S = o.totalcalculationmode), "currencyseparator" in o && n(22, x = o.currencyseparator), "currencydecimal" in o && n(23, C = o.currencydecimal), "currencyprecision" in o && n(24, D = o.currencyprecision);
5115
5117
  }, e.$$.update = () => {
5116
5118
  e.$$.dirty[0] & /*lang*/
5117
- 16384 && s && Oe(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5118
- 3176448 && l && i && o && s && _ && B && qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5119
- 1062912 && l && i && o && _ && Ae(), e.$$.dirty[0] & /*translationurl*/
5120
- 262144 && m && We(), e.$$.dirty[0] & /*balances*/
5121
- 2 && b.Total && Te(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5122
- 65537 && u && U && Ar(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5123
- 131073 && d && U && Cr(U, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5124
- 32769 && h && U && Hr(U, `${h}.Style`);
5119
+ 16384 && s && ce(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5120
+ 3176448 && l && i && a && s && _ && T && Ze(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5121
+ 1062912 && l && i && a && _ && le(), e.$$.dirty[0] & /*translationurl*/
5122
+ 262144 && g && rt(), e.$$.dirty[0] & /*balances*/
5123
+ 2 && v.Total && ie(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5124
+ 65537 && u && U && Hr(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5125
+ 131073 && d && U && Or(U, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5126
+ 32769 && h && U && Rr(U, `${h}.Style`);
5125
5127
  }, [
5126
5128
  U,
5127
- b,
5128
- H,
5129
- W,
5130
- Y,
5131
- $,
5129
+ v,
5130
+ O,
5131
+ re,
5132
+ X,
5133
+ P,
5132
5134
  r,
5133
- _e,
5134
- pe,
5135
+ ye,
5136
+ we,
5135
5137
  ot,
5136
- T,
5138
+ S,
5137
5139
  i,
5138
- o,
5140
+ a,
5139
5141
  l,
5140
5142
  s,
5141
5143
  h,
5142
5144
  u,
5143
5145
  d,
5144
- m,
5145
5146
  g,
5147
+ b,
5146
5148
  _,
5147
- B,
5149
+ T,
5148
5150
  x,
5149
- S,
5151
+ C,
5150
5152
  D,
5151
- re,
5152
5153
  wt,
5153
5154
  St,
5154
5155
  At,
5155
- at
5156
+ st,
5157
+ c
5156
5158
  ];
5157
5159
  }
5158
- class Lo extends wr {
5160
+ class La extends Ar {
5159
5161
  constructor(t) {
5160
- super(), Br(
5162
+ super(), wr(
5161
5163
  this,
5162
5164
  t,
5163
- Ro,
5164
- Oo,
5165
- An,
5165
+ Ra,
5166
+ Oa,
5167
+ Hn,
5166
5168
  {
5167
5169
  userid: 11,
5168
5170
  session: 12,
@@ -5180,7 +5182,7 @@ class Lo extends wr {
5180
5182
  currencydecimal: 23,
5181
5183
  currencyprecision: 24
5182
5184
  },
5183
- Ao,
5185
+ Aa,
5184
5186
  [-1, -1]
5185
5187
  );
5186
5188
  }
@@ -5275,7 +5277,7 @@ class Lo extends wr {
5275
5277
  this.$$set({ currencyprecision: t }), J();
5276
5278
  }
5277
5279
  }
5278
- Tr(Lo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5280
+ Sr(La, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5279
5281
  export {
5280
- Lo as P
5282
+ La as P
5281
5283
  };