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

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