@everymatrix/player-account-balance-modal-nd 1.65.1 → 1.65.3

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,18 +1,18 @@
1
- var fr = Object.defineProperty, dr = Object.defineProperties;
2
- var pr = Object.getOwnPropertyDescriptors;
3
- var un = Object.getOwnPropertySymbols;
4
- var mr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable;
5
- var Mt = (e, t, n) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nt = (e, t) => {
1
+ var hr = Object.defineProperty, fr = Object.defineProperties;
2
+ var dr = Object.getOwnPropertyDescriptors;
3
+ var ln = Object.getOwnPropertySymbols;
4
+ var pr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable;
5
+ var Rt = (e, t, n) => t in e ? hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lt = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- mr.call(t, n) && Mt(e, n, t[n]);
8
- if (un)
9
- for (var n of un(t))
10
- gr.call(t, n) && Mt(e, n, t[n]);
7
+ pr.call(t, n) && Rt(e, n, t[n]);
8
+ if (ln)
9
+ for (var n of ln(t))
10
+ mr.call(t, n) && Rt(e, n, t[n]);
11
11
  return e;
12
- }, It = (e, t) => dr(e, pr(t));
13
- var se = (e, t, n) => (Mt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var Pt = (e, t, n) => new Promise((r, i) => {
15
- var o = (c) => {
12
+ }, Mt = (e, t) => fr(e, dr(t));
13
+ var se = (e, t, n) => (Rt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var Nt = (e, t, n) => new Promise((r, i) => {
15
+ var a = (c) => {
16
16
  try {
17
17
  s(n.next(c));
18
18
  } catch (u) {
@@ -24,30 +24,30 @@ var Pt = (e, t, n) => new Promise((r, i) => {
24
24
  } catch (u) {
25
25
  i(u);
26
26
  }
27
- }, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, l);
27
+ }, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(a, l);
28
28
  s((n = n.apply(e, t)).next());
29
29
  });
30
30
  function le() {
31
31
  }
32
- function Nn(e) {
32
+ function Mn(e) {
33
33
  return e();
34
34
  }
35
- function cn() {
35
+ function un() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function Xe(e) {
39
- e.forEach(Nn);
38
+ function Ve(e) {
39
+ e.forEach(Mn);
40
40
  }
41
- function rn(e) {
41
+ function tn(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function In(e, t) {
44
+ function Nn(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function br(e) {
47
+ function gr(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function Pn(e, ...t) {
50
+ function In(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const r of t)
53
53
  r(void 0);
@@ -56,20 +56,20 @@ function Pn(e, ...t) {
56
56
  const n = e.subscribe(...t);
57
57
  return n.unsubscribe ? () => n.unsubscribe() : n;
58
58
  }
59
- function yr(e, t, n) {
60
- e.$$.on_destroy.push(Pn(t, n));
59
+ function br(e, t, n) {
60
+ e.$$.on_destroy.push(In(t, n));
61
61
  }
62
62
  function H(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function vr(e, t, n) {
66
- const r = Er(e);
65
+ function yr(e, t, n) {
66
+ const r = vr(e);
67
67
  if (!r.getElementById(t)) {
68
- const i = k("style");
69
- i.id = t, i.textContent = n, xr(r, i);
68
+ const i = V("style");
69
+ i.id = t, i.textContent = n, Er(r, i);
70
70
  }
71
71
  }
72
- function Er(e) {
72
+ function vr(e) {
73
73
  if (!e)
74
74
  return document;
75
75
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -79,27 +79,27 @@ function Er(e) {
79
79
  t
80
80
  ) : e.ownerDocument;
81
81
  }
82
- function xr(e, t) {
82
+ function Er(e, t) {
83
83
  return H(
84
84
  /** @type {Document} */
85
85
  e.head || e,
86
86
  t
87
87
  ), t.sheet;
88
88
  }
89
- function be(e, t, n) {
89
+ function ge(e, t, n) {
90
90
  e.insertBefore(t, n || null);
91
91
  }
92
92
  function de(e) {
93
93
  e.parentNode && e.parentNode.removeChild(e);
94
94
  }
95
- function Dn(e, t) {
95
+ function Pn(e, t) {
96
96
  for (let n = 0; n < e.length; n += 1)
97
97
  e[n] && e[n].d(t);
98
98
  }
99
- function k(e) {
99
+ function V(e) {
100
100
  return document.createElement(e);
101
101
  }
102
- function hn(e) {
102
+ function cn(e) {
103
103
  return document.createElementNS("http://www.w3.org/2000/svg", e);
104
104
  }
105
105
  function fe(e) {
@@ -108,23 +108,23 @@ function fe(e) {
108
108
  function pe() {
109
109
  return fe(" ");
110
110
  }
111
- function _r() {
111
+ function xr() {
112
112
  return fe("");
113
113
  }
114
- function gt(e, t, n, r) {
114
+ function mt(e, t, n, r) {
115
115
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
116
116
  }
117
117
  function M(e, t, n) {
118
118
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
119
119
  }
120
- function Br(e) {
120
+ function _r(e) {
121
121
  return Array.from(e.childNodes);
122
122
  }
123
- function _e(e, t) {
123
+ function xe(e, t) {
124
124
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
125
125
  t);
126
126
  }
127
- function Tr(e) {
127
+ function Br(e) {
128
128
  const t = {};
129
129
  return e.childNodes.forEach(
130
130
  /** @param {Element} node */
@@ -133,98 +133,98 @@ function Tr(e) {
133
133
  }
134
134
  ), t;
135
135
  }
136
- let nt;
137
- function tt(e) {
138
- nt = e;
136
+ let tt;
137
+ function et(e) {
138
+ tt = e;
139
139
  }
140
- function wr() {
141
- if (!nt)
140
+ function Tr() {
141
+ if (!tt)
142
142
  throw new Error("Function called outside component initialization");
143
- return nt;
143
+ return tt;
144
144
  }
145
- function Sr(e) {
146
- wr().$$.on_mount.push(e);
145
+ function wr(e) {
146
+ Tr().$$.on_mount.push(e);
147
147
  }
148
- const Fe = [], Vt = [];
149
- let Ge = [];
150
- const fn = [], Ar = /* @__PURE__ */ Promise.resolve();
151
- let Xt = !1;
152
- function Cr() {
153
- Xt || (Xt = !0, Ar.then(Q));
148
+ const Ue = [], jt = [];
149
+ let Fe = [];
150
+ const hn = [], Sr = /* @__PURE__ */ Promise.resolve();
151
+ let kt = !1;
152
+ function Ar() {
153
+ kt || (kt = !0, Sr.then(Q));
154
154
  }
155
- function zt(e) {
156
- Ge.push(e);
155
+ function Vt(e) {
156
+ Fe.push(e);
157
157
  }
158
- const Dt = /* @__PURE__ */ new Set();
159
- let De = 0;
158
+ const It = /* @__PURE__ */ new Set();
159
+ let Pe = 0;
160
160
  function Q() {
161
- if (De !== 0)
161
+ if (Pe !== 0)
162
162
  return;
163
- const e = nt;
163
+ const e = tt;
164
164
  do {
165
165
  try {
166
- for (; De < Fe.length; ) {
167
- const t = Fe[De];
168
- De++, tt(t), Hr(t.$$);
166
+ for (; Pe < Ue.length; ) {
167
+ const t = Ue[Pe];
168
+ Pe++, et(t), Cr(t.$$);
169
169
  }
170
170
  } catch (t) {
171
- throw Fe.length = 0, De = 0, t;
171
+ throw Ue.length = 0, Pe = 0, t;
172
172
  }
173
- for (tt(null), Fe.length = 0, De = 0; Vt.length; )
174
- Vt.pop()();
175
- for (let t = 0; t < Ge.length; t += 1) {
176
- const n = Ge[t];
177
- Dt.has(n) || (Dt.add(n), n());
173
+ for (et(null), Ue.length = 0, Pe = 0; jt.length; )
174
+ jt.pop()();
175
+ for (let t = 0; t < Fe.length; t += 1) {
176
+ const n = Fe[t];
177
+ It.has(n) || (It.add(n), n());
178
178
  }
179
- Ge.length = 0;
180
- } while (Fe.length);
181
- for (; fn.length; )
182
- fn.pop()();
183
- Xt = !1, Dt.clear(), tt(e);
179
+ Fe.length = 0;
180
+ } while (Ue.length);
181
+ for (; hn.length; )
182
+ hn.pop()();
183
+ kt = !1, It.clear(), et(e);
184
184
  }
185
- function Hr(e) {
185
+ function Cr(e) {
186
186
  if (e.fragment !== null) {
187
- e.update(), Xe(e.before_update);
187
+ e.update(), Ve(e.before_update);
188
188
  const t = e.dirty;
189
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(zt);
189
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Vt);
190
190
  }
191
191
  }
192
- function Or(e) {
192
+ function Hr(e) {
193
193
  const t = [], n = [];
194
- Ge.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ge = t;
194
+ Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
195
195
  }
196
- const Rr = /* @__PURE__ */ new Set();
197
- function Lr(e, t) {
198
- e && e.i && (Rr.delete(e), e.i(t));
196
+ const Or = /* @__PURE__ */ new Set();
197
+ function Rr(e, t) {
198
+ e && e.i && (Or.delete(e), e.i(t));
199
199
  }
200
- function bt(e) {
200
+ function gt(e) {
201
201
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
202
202
  }
203
- function Mr(e, t, n) {
203
+ function Lr(e, t, n) {
204
204
  const { fragment: r, after_update: i } = e.$$;
205
- r && r.m(t, n), zt(() => {
206
- const o = e.$$.on_mount.map(Nn).filter(rn);
207
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Xe(o), e.$$.on_mount = [];
208
- }), i.forEach(zt);
205
+ r && r.m(t, n), Vt(() => {
206
+ const a = e.$$.on_mount.map(Mn).filter(tn);
207
+ e.$$.on_destroy ? e.$$.on_destroy.push(...a) : Ve(a), e.$$.on_mount = [];
208
+ }), i.forEach(Vt);
209
209
  }
210
- function Nr(e, t) {
210
+ function Mr(e, t) {
211
211
  const n = e.$$;
212
- n.fragment !== null && (Or(n.after_update), Xe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
212
+ n.fragment !== null && (Hr(n.after_update), Ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
213
213
  }
214
- function Ir(e, t) {
215
- e.$$.dirty[0] === -1 && (Fe.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
214
+ function Nr(e, t) {
215
+ e.$$.dirty[0] === -1 && (Ue.push(e), Ar(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
216
216
  }
217
- function Pr(e, t, n, r, i, o, l = null, s = [-1]) {
218
- const c = nt;
219
- tt(e);
217
+ function Ir(e, t, n, r, i, a, l = null, s = [-1]) {
218
+ const c = tt;
219
+ et(e);
220
220
  const u = e.$$ = {
221
221
  fragment: null,
222
222
  ctx: [],
223
223
  // state
224
- props: o,
224
+ props: a,
225
225
  update: le,
226
226
  not_equal: i,
227
- bound: cn(),
227
+ bound: un(),
228
228
  // lifecycle
229
229
  on_mount: [],
230
230
  on_destroy: [],
@@ -233,28 +233,28 @@ function Pr(e, t, n, r, i, o, l = null, s = [-1]) {
233
233
  after_update: [],
234
234
  context: new Map(t.context || (c ? c.$$.context : [])),
235
235
  // everything else
236
- callbacks: cn(),
236
+ callbacks: un(),
237
237
  dirty: s,
238
238
  skip_bound: !1,
239
239
  root: t.target || c.$$.root
240
240
  };
241
241
  l && l(u.root);
242
242
  let d = !1;
243
- if (u.ctx = n ? n(e, t.props || {}, (g, b, ..._) => {
243
+ if (u.ctx = n(e, t.props || {}, (g, b, ..._) => {
244
244
  const B = _.length ? _[0] : b;
245
- return u.ctx && i(u.ctx[g], u.ctx[g] = B) && (!u.skip_bound && u.bound[g] && u.bound[g](B), d && Ir(e, g)), b;
246
- }) : [], u.update(), d = !0, Xe(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
245
+ return u.ctx && i(u.ctx[g], u.ctx[g] = B) && (!u.skip_bound && u.bound[g] && u.bound[g](B), d && Nr(e, g)), b;
246
+ }), u.update(), d = !0, Ve(u.before_update), u.fragment = r(u.ctx), t.target) {
247
247
  if (t.hydrate) {
248
- const g = Br(t.target);
248
+ const g = _r(t.target);
249
249
  u.fragment && u.fragment.l(g), g.forEach(de);
250
250
  } else
251
251
  u.fragment && u.fragment.c();
252
- t.intro && Lr(e.$$.fragment), Mr(e, t.target, t.anchor), Q();
252
+ t.intro && Rr(e.$$.fragment), Lr(e, t.target, t.anchor), Q();
253
253
  }
254
- tt(c);
254
+ et(c);
255
255
  }
256
- let Un;
257
- typeof HTMLElement == "function" && (Un = class extends HTMLElement {
256
+ let Dn;
257
+ typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
258
258
  constructor(t, n, r) {
259
259
  super();
260
260
  /** The Svelte component constructor */
@@ -291,21 +291,21 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
291
291
  }
292
292
  }
293
293
  connectedCallback() {
294
- return Pt(this, null, function* () {
294
+ return Nt(this, null, function* () {
295
295
  if (this.$$cn = !0, !this.$$c) {
296
- let t = function(o) {
296
+ let t = function(a) {
297
297
  return () => {
298
298
  let l;
299
299
  return {
300
300
  c: function() {
301
- l = k("slot"), o !== "default" && M(l, "name", o);
301
+ l = V("slot"), a !== "default" && M(l, "name", a);
302
302
  },
303
303
  /**
304
304
  * @param {HTMLElement} target
305
305
  * @param {HTMLElement} [anchor]
306
306
  */
307
307
  m: function(u, d) {
308
- be(u, l, d);
308
+ ge(u, l, d);
309
309
  },
310
310
  d: function(u) {
311
311
  u && de(l);
@@ -315,18 +315,18 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
315
315
  };
316
316
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
317
317
  return;
318
- const n = {}, r = Tr(this);
319
- for (const o of this.$$s)
320
- o in r && (n[o] = [t(o)]);
321
- for (const o of this.attributes) {
322
- const l = this.$$g_p(o.name);
323
- l in this.$$d || (this.$$d[l] = ft(l, o.value, this.$$p_d, "toProp"));
318
+ const n = {}, r = Br(this);
319
+ for (const a of this.$$s)
320
+ a in r && (n[a] = [t(a)]);
321
+ for (const a of this.attributes) {
322
+ const l = this.$$g_p(a.name);
323
+ l in this.$$d || (this.$$d[l] = ht(l, a.value, this.$$p_d, "toProp"));
324
324
  }
325
- for (const o in this.$$p_d)
326
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
325
+ for (const a in this.$$p_d)
326
+ !(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
327
327
  this.$$c = new this.$$ctor({
328
328
  target: this.shadowRoot || this,
329
- props: It(Nt({}, this.$$d), {
329
+ props: Mt(Lt({}, this.$$d), {
330
330
  $$slots: n,
331
331
  $$scope: {
332
332
  ctx: []
@@ -335,22 +335,22 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
335
335
  });
336
336
  const i = () => {
337
337
  this.$$r = !0;
338
- for (const o in this.$$p_d)
339
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
340
- const l = ft(
341
- o,
342
- this.$$d[o],
338
+ for (const a in this.$$p_d)
339
+ if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
340
+ const l = ht(
341
+ a,
342
+ this.$$d[a],
343
343
  this.$$p_d,
344
344
  "toAttribute"
345
345
  );
346
- l == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, l);
346
+ l == null ? this.removeAttribute(this.$$p_d[a].attribute || a) : this.setAttribute(this.$$p_d[a].attribute || a, l);
347
347
  }
348
348
  this.$$r = !1;
349
349
  };
350
350
  this.$$c.$$.after_update.push(i), i();
351
- for (const o in this.$$l)
352
- for (const l of this.$$l[o]) {
353
- const s = this.$$c.$on(o, l);
351
+ for (const a in this.$$l)
352
+ for (const l of this.$$l[a]) {
353
+ const s = this.$$c.$on(a, l);
354
354
  this.$$l_u.set(l, s);
355
355
  }
356
356
  this.$$l = {};
@@ -361,7 +361,7 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
361
361
  // and setting attributes through setAttribute etc, this is helpful
362
362
  attributeChangedCallback(t, n, r) {
363
363
  var i;
364
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ft(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
364
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ht(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
365
365
  }
366
366
  disconnectedCallback() {
367
367
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -374,9 +374,9 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
374
374
  ) || t;
375
375
  }
376
376
  });
377
- function ft(e, t, n, r) {
378
- var o;
379
- const i = (o = n[e]) == null ? void 0 : o.type;
377
+ function ht(e, t, n, r) {
378
+ var a;
379
+ const i = (a = n[e]) == null ? void 0 : a.type;
380
380
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
381
381
  return t;
382
382
  if (r === "toAttribute")
@@ -404,8 +404,8 @@ function ft(e, t, n, r) {
404
404
  return t;
405
405
  }
406
406
  }
407
- function Dr(e, t, n, r, i, o) {
408
- let l = class extends Un {
407
+ function Pr(e, t, n, r, i, a) {
408
+ let l = class extends Dn {
409
409
  constructor() {
410
410
  super(e, n, i), this.$$p_d = t;
411
411
  }
@@ -422,7 +422,7 @@ function Dr(e, t, n, r, i, o) {
422
422
  },
423
423
  set(c) {
424
424
  var u;
425
- c = ft(s, c, t), this.$$d[s] = c, (u = this.$$c) == null || u.$set({ [s]: c });
425
+ c = ht(s, c, t), this.$$d[s] = c, (u = this.$$c) == null || u.$set({ [s]: c });
426
426
  }
427
427
  });
428
428
  }), r.forEach((s) => {
@@ -435,7 +435,7 @@ function Dr(e, t, n, r, i, o) {
435
435
  }), e.element = /** @type {any} */
436
436
  l, l;
437
437
  }
438
- class Ur {
438
+ class Dr {
439
439
  constructor() {
440
440
  /**
441
441
  * ### PRIVATE API
@@ -456,7 +456,7 @@ class Ur {
456
456
  }
457
457
  /** @returns {void} */
458
458
  $destroy() {
459
- Nr(this, 1), this.$destroy = le;
459
+ Mr(this, 1), this.$destroy = le;
460
460
  }
461
461
  /**
462
462
  * @template {Extract<keyof Events, string>} K
@@ -465,7 +465,7 @@ class Ur {
465
465
  * @returns {() => void}
466
466
  */
467
467
  $on(t, n) {
468
- if (!rn(n))
468
+ if (!tn(n))
469
469
  return le;
470
470
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
471
471
  return r.push(n), () => {
@@ -478,18 +478,18 @@ class Ur {
478
478
  * @returns {void}
479
479
  */
480
480
  $set(t) {
481
- this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
481
+ this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
482
482
  }
483
483
  }
484
- const Fr = "4";
485
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
486
- function Gr(e, t) {
484
+ const Ur = "4";
485
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
486
+ function Fr(e, t) {
487
487
  if (e) {
488
488
  const n = document.createElement("style");
489
489
  n.innerHTML = t, e.appendChild(n);
490
490
  }
491
491
  }
492
- function $r(e, t) {
492
+ function Gr(e, t) {
493
493
  const n = new URL(t);
494
494
  fetch(n.href).then((r) => r.text()).then((r) => {
495
495
  const i = document.createElement("style");
@@ -498,7 +498,7 @@ function $r(e, t) {
498
498
  console.error("There was an error while trying to load client styling from URL", r);
499
499
  });
500
500
  }
501
- function jr(e, t, n) {
501
+ function $r(e, t, n) {
502
502
  if (window.emMessageBus) {
503
503
  const r = document.createElement("style");
504
504
  window.emMessageBus.subscribe(t, (i) => {
@@ -506,44 +506,44 @@ function jr(e, t, n) {
506
506
  });
507
507
  }
508
508
  }
509
- const Ue = [];
510
- function kr(e, t) {
509
+ const De = [];
510
+ function jr(e, t) {
511
511
  return {
512
- subscribe: xt(e, t).subscribe
512
+ subscribe: vt(e, t).subscribe
513
513
  };
514
514
  }
515
- function xt(e, t = le) {
515
+ function vt(e, t = le) {
516
516
  let n;
517
517
  const r = /* @__PURE__ */ new Set();
518
518
  function i(s) {
519
- if (In(e, s) && (e = s, n)) {
520
- const c = !Ue.length;
519
+ if (Nn(e, s) && (e = s, n)) {
520
+ const c = !De.length;
521
521
  for (const u of r)
522
- u[1](), Ue.push(u, e);
522
+ u[1](), De.push(u, e);
523
523
  if (c) {
524
- for (let u = 0; u < Ue.length; u += 2)
525
- Ue[u][0](Ue[u + 1]);
526
- Ue.length = 0;
524
+ for (let u = 0; u < De.length; u += 2)
525
+ De[u][0](De[u + 1]);
526
+ De.length = 0;
527
527
  }
528
528
  }
529
529
  }
530
- function o(s) {
530
+ function a(s) {
531
531
  i(s(e));
532
532
  }
533
533
  function l(s, c = le) {
534
534
  const u = [s, c];
535
- return r.add(u), r.size === 1 && (n = t(i, o) || le), s(e), () => {
535
+ return r.add(u), r.size === 1 && (n = t(i, a) || le), s(e), () => {
536
536
  r.delete(u), r.size === 0 && n && (n(), n = null);
537
537
  };
538
538
  }
539
- return { set: i, update: o, subscribe: l };
539
+ return { set: i, update: a, subscribe: l };
540
540
  }
541
- function ze(e, t, n) {
541
+ function Xe(e, t, n) {
542
542
  const r = !Array.isArray(e), i = r ? [e] : e;
543
543
  if (!i.every(Boolean))
544
544
  throw new Error("derived() expects stores as input, got a falsy value");
545
- const o = t.length < 2;
546
- return kr(n, (l, s) => {
545
+ const a = t.length < 2;
546
+ return jr(n, (l, s) => {
547
547
  let c = !1;
548
548
  const u = [];
549
549
  let d = 0, g = le;
@@ -552,9 +552,9 @@ function ze(e, t, n) {
552
552
  return;
553
553
  g();
554
554
  const B = t(r ? u[0] : u, l, s);
555
- o ? l(B) : g = rn(B) ? B : le;
555
+ a ? l(B) : g = tn(B) ? B : le;
556
556
  }, _ = i.map(
557
- (B, T) => Pn(
557
+ (B, T) => In(
558
558
  B,
559
559
  (x) => {
560
560
  u[T] = x, d &= ~(1 << T), c && b();
@@ -565,113 +565,127 @@ function ze(e, t, n) {
565
565
  )
566
566
  );
567
567
  return c = !0, b(), function() {
568
- Xe(_), g(), c = !1;
568
+ Ve(_), g(), c = !1;
569
569
  };
570
570
  });
571
571
  }
572
- var Vr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
573
- function Xr(e) {
572
+ var kr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
573
+ function Vr(e) {
574
574
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
575
575
  }
576
- var zr = function(t) {
577
- return Wr(t) && !Zr(t);
576
+ var Xr = function(t) {
577
+ return zr(t) && !Wr(t);
578
578
  };
579
- function Wr(e) {
579
+ function zr(e) {
580
580
  return !!e && typeof e == "object";
581
581
  }
582
- function Zr(e) {
582
+ function Wr(e) {
583
583
  var t = Object.prototype.toString.call(e);
584
- return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
584
+ return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
585
585
  }
586
- var qr = typeof Symbol == "function" && Symbol.for, Qr = qr ? Symbol.for("react.element") : 60103;
587
- function Jr(e) {
588
- return e.$$typeof === Qr;
586
+ var Zr = typeof Symbol == "function" && Symbol.for, qr = Zr ? Symbol.for("react.element") : 60103;
587
+ function Qr(e) {
588
+ return e.$$typeof === qr;
589
589
  }
590
- function Yr(e) {
590
+ function Jr(e) {
591
591
  return Array.isArray(e) ? [] : {};
592
592
  }
593
- function rt(e, t) {
594
- return t.clone !== !1 && t.isMergeableObject(e) ? $e(Yr(e), e, t) : e;
593
+ function nt(e, t) {
594
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ge(Jr(e), e, t) : e;
595
595
  }
596
- function Kr(e, t, n) {
596
+ function Yr(e, t, n) {
597
597
  return e.concat(t).map(function(r) {
598
- return rt(r, n);
598
+ return nt(r, n);
599
599
  });
600
600
  }
601
- function ei(e, t) {
601
+ function Kr(e, t) {
602
602
  if (!t.customMerge)
603
- return $e;
603
+ return Ge;
604
604
  var n = t.customMerge(e);
605
- return typeof n == "function" ? n : $e;
605
+ return typeof n == "function" ? n : Ge;
606
606
  }
607
- function ti(e) {
607
+ function ei(e) {
608
608
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
609
609
  return Object.propertyIsEnumerable.call(e, t);
610
610
  }) : [];
611
611
  }
612
- function dn(e) {
613
- return Object.keys(e).concat(ti(e));
612
+ function fn(e) {
613
+ return Object.keys(e).concat(ei(e));
614
614
  }
615
- function Fn(e, t) {
615
+ function Un(e, t) {
616
616
  try {
617
617
  return t in e;
618
618
  } catch (n) {
619
619
  return !1;
620
620
  }
621
621
  }
622
- function ni(e, t) {
623
- return Fn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
622
+ function ti(e, t) {
623
+ return Un(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
624
624
  }
625
- function ri(e, t, n) {
625
+ function ni(e, t, n) {
626
626
  var r = {};
627
- return n.isMergeableObject(e) && dn(e).forEach(function(i) {
628
- r[i] = rt(e[i], n);
629
- }), dn(t).forEach(function(i) {
630
- ni(e, i) || (Fn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ei(i, n)(e[i], t[i], n) : r[i] = rt(t[i], n));
627
+ return n.isMergeableObject(e) && fn(e).forEach(function(i) {
628
+ r[i] = nt(e[i], n);
629
+ }), fn(t).forEach(function(i) {
630
+ ti(e, i) || (Un(e, i) && n.isMergeableObject(t[i]) ? r[i] = Kr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
631
631
  }), r;
632
632
  }
633
- function $e(e, t, n) {
634
- n = n || {}, n.arrayMerge = n.arrayMerge || Kr, n.isMergeableObject = n.isMergeableObject || zr, n.cloneUnlessOtherwiseSpecified = rt;
635
- var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
636
- return o ? r ? n.arrayMerge(e, t, n) : ri(e, t, n) : rt(t, n);
633
+ function Ge(e, t, n) {
634
+ n = n || {}, n.arrayMerge = n.arrayMerge || Yr, n.isMergeableObject = n.isMergeableObject || Xr, n.cloneUnlessOtherwiseSpecified = nt;
635
+ var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
636
+ return a ? r ? n.arrayMerge(e, t, n) : ni(e, t, n) : nt(t, n);
637
637
  }
638
- $e.all = function(t, n) {
638
+ Ge.all = function(t, n) {
639
639
  if (!Array.isArray(t))
640
640
  throw new Error("first argument should be an array");
641
641
  return t.reduce(function(r, i) {
642
- return $e(r, i, n);
642
+ return Ge(r, i, n);
643
643
  }, {});
644
644
  };
645
- var ii = $e, oi = ii;
646
- const ai = /* @__PURE__ */ Xr(oi);
647
- var Wt = function(e, t) {
648
- return Wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
645
+ var ri = Ge, ii = ri;
646
+ const ai = /* @__PURE__ */ Vr(ii);
647
+ /*! *****************************************************************************
648
+ Copyright (c) Microsoft Corporation.
649
+
650
+ Permission to use, copy, modify, and/or distribute this software for any
651
+ purpose with or without fee is hereby granted.
652
+
653
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
654
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
655
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
656
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
657
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
658
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
659
+ PERFORMANCE OF THIS SOFTWARE.
660
+ ***************************************************************************** */
661
+ var Xt = function(e, t) {
662
+ return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
649
663
  n.__proto__ = r;
650
664
  } || function(n, r) {
651
665
  for (var i in r)
652
666
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
653
- }, Wt(e, t);
667
+ }, Xt(e, t);
654
668
  };
655
- function _t(e, t) {
669
+ function Et(e, t) {
656
670
  if (typeof t != "function" && t !== null)
657
671
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
658
- Wt(e, t);
672
+ Xt(e, t);
659
673
  function n() {
660
674
  this.constructor = e;
661
675
  }
662
676
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
663
677
  }
664
- var ge = function() {
665
- return ge = Object.assign || function(t) {
678
+ var N = function() {
679
+ return N = Object.assign || function(t) {
666
680
  for (var n, r = 1, i = arguments.length; r < i; r++) {
667
681
  n = arguments[r];
668
- for (var o in n)
669
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
682
+ for (var a in n)
683
+ Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
670
684
  }
671
685
  return t;
672
- }, ge.apply(this, arguments);
686
+ }, N.apply(this, arguments);
673
687
  };
674
- function si(e, t) {
688
+ function oi(e, t) {
675
689
  var n = {};
676
690
  for (var r in e)
677
691
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -680,43 +694,46 @@ function si(e, t) {
680
694
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
681
695
  return n;
682
696
  }
683
- function Ut(e, t, n) {
684
- if (n || arguments.length === 2)
685
- for (var r = 0, i = t.length, o; r < i; r++)
686
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
687
- return e.concat(o || Array.prototype.slice.call(t));
697
+ function Pt(e, t, n) {
698
+ if (arguments.length === 2)
699
+ for (var r = 0, i = t.length, a; r < i; r++)
700
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
701
+ return e.concat(a || t);
688
702
  }
689
- function Ft(e, t) {
690
- var n = t && t.cache ? t.cache : pi, r = t && t.serializer ? t.serializer : fi, i = t && t.strategy ? t.strategy : ci;
703
+ function Dt(e, t) {
704
+ var n = t && t.cache ? t.cache : di, r = t && t.serializer ? t.serializer : hi, i = t && t.strategy ? t.strategy : li;
691
705
  return i(e, {
692
706
  cache: n,
693
707
  serializer: r
694
708
  });
695
709
  }
696
- function li(e) {
710
+ function si(e) {
697
711
  return e == null || typeof e == "number" || typeof e == "boolean";
698
712
  }
699
- function ui(e, t, n, r) {
700
- var i = li(r) ? r : n(r), o = t.get(i);
701
- return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
713
+ function Fn(e, t, n, r) {
714
+ var i = si(r) ? r : n(r), a = t.get(i);
715
+ return typeof a == "undefined" && (a = e.call(this, r), t.set(i, a)), a;
702
716
  }
703
717
  function Gn(e, t, n) {
704
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
705
- return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
718
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
719
+ return typeof a == "undefined" && (a = e.apply(this, r), t.set(i, a)), a;
706
720
  }
707
- function $n(e, t, n, r, i) {
721
+ function nn(e, t, n, r, i) {
708
722
  return n.bind(t, e, r, i);
709
723
  }
710
- function ci(e, t) {
711
- var n = e.length === 1 ? ui : Gn;
712
- return $n(e, this, n, t.cache.create(), t.serializer);
724
+ function li(e, t) {
725
+ var n = e.length === 1 ? Fn : Gn;
726
+ return nn(e, this, n, t.cache.create(), t.serializer);
713
727
  }
714
- function hi(e, t) {
715
- return $n(e, this, Gn, t.cache.create(), t.serializer);
728
+ function ui(e, t) {
729
+ return nn(e, this, Gn, t.cache.create(), t.serializer);
716
730
  }
717
- var fi = function() {
731
+ function ci(e, t) {
732
+ return nn(e, this, Fn, t.cache.create(), t.serializer);
733
+ }
734
+ var hi = function() {
718
735
  return JSON.stringify(arguments);
719
- }, di = (
736
+ }, fi = (
720
737
  /** @class */
721
738
  function() {
722
739
  function e() {
@@ -728,71 +745,62 @@ var fi = function() {
728
745
  this.cache[t] = n;
729
746
  }, e;
730
747
  }()
731
- ), pi = {
748
+ ), di = {
732
749
  create: function() {
733
- return new di();
750
+ return new fi();
734
751
  }
735
- }, Gt = {
736
- variadic: hi
737
- }, yt = function() {
738
- return yt = Object.assign || function(t) {
739
- for (var n, r = 1, i = arguments.length; r < i; r++) {
740
- n = arguments[r];
741
- for (var o in n)
742
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
743
- }
744
- return t;
745
- }, yt.apply(this, arguments);
746
- };
747
- var O;
752
+ }, Ut = {
753
+ variadic: ui,
754
+ monadic: ci
755
+ }, O;
748
756
  (function(e) {
749
757
  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";
750
758
  })(O || (O = {}));
751
- var j;
759
+ var k;
752
760
  (function(e) {
753
761
  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";
754
- })(j || (j = {}));
755
- var je;
762
+ })(k || (k = {}));
763
+ var $e;
756
764
  (function(e) {
757
765
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
758
- })(je || (je = {}));
759
- function pn(e) {
760
- return e.type === j.literal;
766
+ })($e || ($e = {}));
767
+ function dn(e) {
768
+ return e.type === k.literal;
761
769
  }
762
- function mi(e) {
763
- return e.type === j.argument;
770
+ function pi(e) {
771
+ return e.type === k.argument;
772
+ }
773
+ function $n(e) {
774
+ return e.type === k.number;
764
775
  }
765
776
  function jn(e) {
766
- return e.type === j.number;
777
+ return e.type === k.date;
767
778
  }
768
779
  function kn(e) {
769
- return e.type === j.date;
780
+ return e.type === k.time;
770
781
  }
771
782
  function Vn(e) {
772
- return e.type === j.time;
783
+ return e.type === k.select;
773
784
  }
774
785
  function Xn(e) {
775
- return e.type === j.select;
786
+ return e.type === k.plural;
776
787
  }
777
- function zn(e) {
778
- return e.type === j.plural;
788
+ function mi(e) {
789
+ return e.type === k.pound;
779
790
  }
780
- function gi(e) {
781
- return e.type === j.pound;
791
+ function zn(e) {
792
+ return e.type === k.tag;
782
793
  }
783
794
  function Wn(e) {
784
- return e.type === j.tag;
795
+ return !!(e && typeof e == "object" && e.type === $e.number);
785
796
  }
786
- function Zn(e) {
787
- return !!(e && typeof e == "object" && e.type === je.number);
788
- }
789
- function Zt(e) {
790
- return !!(e && typeof e == "object" && e.type === je.dateTime);
797
+ function zt(e) {
798
+ return !!(e && typeof e == "object" && e.type === $e.dateTime);
791
799
  }
792
- var qn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bi = /(?:[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;
793
- function yi(e) {
800
+ var Zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gi = /(?:[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;
801
+ function bi(e) {
794
802
  var t = {};
795
- return e.replace(bi, function(n) {
803
+ return e.replace(gi, function(n) {
796
804
  var r = n.length;
797
805
  switch (n[0]) {
798
806
  case "G":
@@ -881,24 +889,14 @@ function yi(e) {
881
889
  return "";
882
890
  }), t;
883
891
  }
884
- var X = function() {
885
- return X = Object.assign || function(t) {
886
- for (var n, r = 1, i = arguments.length; r < i; r++) {
887
- n = arguments[r];
888
- for (var o in n)
889
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
890
- }
891
- return t;
892
- }, X.apply(this, arguments);
893
- };
894
- var vi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
895
- function Ei(e) {
892
+ var yi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
893
+ function vi(e) {
896
894
  if (e.length === 0)
897
895
  throw new Error("Number skeleton cannot be empty");
898
- for (var t = e.split(vi).filter(function(b) {
896
+ for (var t = e.split(yi).filter(function(b) {
899
897
  return b.length > 0;
900
898
  }), n = [], r = 0, i = t; r < i.length; r++) {
901
- var o = i[r], l = o.split("/");
899
+ var a = i[r], l = a.split("/");
902
900
  if (l.length === 0)
903
901
  throw new Error("Invalid number skeleton");
904
902
  for (var s = l[0], c = l.slice(1), u = 0, d = c; u < d.length; u++) {
@@ -910,17 +908,17 @@ function Ei(e) {
910
908
  }
911
909
  return n;
912
910
  }
913
- function xi(e) {
911
+ function Ei(e) {
914
912
  return e.replace(/^(.*?)-/, "");
915
913
  }
916
- var mn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qn = /^(@+)?(\+|#+)?[rs]?$/g, _i = /(\*)(0+)|(#+)(0+)|(0+)/g, Jn = /^(0+)$/;
917
- function gn(e) {
914
+ var pn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qn = /^(@+)?(\+|#+)?[rs]?$/g, xi = /(\*)(0+)|(#+)(0+)|(0+)/g, Qn = /^(0+)$/;
915
+ function mn(e) {
918
916
  var t = {};
919
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qn, function(n, r, i) {
917
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qn, function(n, r, i) {
920
918
  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)), "";
921
919
  }), t;
922
920
  }
923
- function Yn(e) {
921
+ function Jn(e) {
924
922
  switch (e) {
925
923
  case "sign-auto":
926
924
  return {
@@ -960,7 +958,7 @@ function Yn(e) {
960
958
  };
961
959
  }
962
960
  }
963
- function Bi(e) {
961
+ function _i(e) {
964
962
  var t;
965
963
  if (e[0] === "E" && e[1] === "E" ? (t = {
966
964
  notation: "engineering"
@@ -968,17 +966,17 @@ function Bi(e) {
968
966
  notation: "scientific"
969
967
  }, e = e.slice(1)), t) {
970
968
  var n = e.slice(0, 2);
971
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jn.test(e))
969
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qn.test(e))
972
970
  throw new Error("Malformed concise eng/scientific notation");
973
971
  t.minimumIntegerDigits = e.length;
974
972
  }
975
973
  return t;
976
974
  }
977
- function bn(e) {
978
- var t = {}, n = Yn(e);
975
+ function gn(e) {
976
+ var t = {}, n = Jn(e);
979
977
  return n || t;
980
978
  }
981
- function Ti(e) {
979
+ function Bi(e) {
982
980
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
983
981
  var i = r[n];
984
982
  switch (i.stem) {
@@ -1002,7 +1000,7 @@ function Ti(e) {
1002
1000
  continue;
1003
1001
  case "measure-unit":
1004
1002
  case "unit":
1005
- t.style = "unit", t.unit = xi(i.options[0]);
1003
+ t.style = "unit", t.unit = Ei(i.options[0]);
1006
1004
  continue;
1007
1005
  case "compact-short":
1008
1006
  case "K":
@@ -1013,13 +1011,13 @@ function Ti(e) {
1013
1011
  t.notation = "compact", t.compactDisplay = "long";
1014
1012
  continue;
1015
1013
  case "scientific":
1016
- t = X(X(X({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
1017
- return X(X({}, c), bn(u));
1014
+ t = N(N(N({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
1015
+ return N(N({}, c), gn(u));
1018
1016
  }, {}));
1019
1017
  continue;
1020
1018
  case "engineering":
1021
- t = X(X(X({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
1022
- return X(X({}, c), bn(u));
1019
+ t = N(N(N({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
1020
+ return N(N({}, c), gn(u));
1023
1021
  }, {}));
1024
1022
  continue;
1025
1023
  case "notation-simple":
@@ -1064,7 +1062,7 @@ function Ti(e) {
1064
1062
  case "integer-width":
1065
1063
  if (i.options.length > 1)
1066
1064
  throw new RangeError("integer-width stems only accept a single optional option");
1067
- i.options[0].replace(_i, function(c, u, d, g, b, _) {
1065
+ i.options[0].replace(xi, function(c, u, d, g, b, _) {
1068
1066
  if (u)
1069
1067
  t.minimumIntegerDigits = d.length;
1070
1068
  else {
@@ -1077,32 +1075,32 @@ function Ti(e) {
1077
1075
  });
1078
1076
  continue;
1079
1077
  }
1080
- if (Jn.test(i.stem)) {
1078
+ if (Qn.test(i.stem)) {
1081
1079
  t.minimumIntegerDigits = i.stem.length;
1082
1080
  continue;
1083
1081
  }
1084
- if (mn.test(i.stem)) {
1082
+ if (pn.test(i.stem)) {
1085
1083
  if (i.options.length > 1)
1086
1084
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1087
- i.stem.replace(mn, function(c, u, d, g, b, _) {
1085
+ i.stem.replace(pn, function(c, u, d, g, b, _) {
1088
1086
  return d === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1089
1087
  });
1090
- var o = i.options[0];
1091
- o === "w" ? t = X(X({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = X(X({}, t), gn(o)));
1088
+ var a = i.options[0];
1089
+ a === "w" ? t = N(N({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = N(N({}, t), mn(a)));
1092
1090
  continue;
1093
1091
  }
1094
- if (Qn.test(i.stem)) {
1095
- t = X(X({}, t), gn(i.stem));
1092
+ if (qn.test(i.stem)) {
1093
+ t = N(N({}, t), mn(i.stem));
1096
1094
  continue;
1097
1095
  }
1098
- var l = Yn(i.stem);
1099
- l && (t = X(X({}, t), l));
1100
- var s = Bi(i.stem);
1101
- s && (t = X(X({}, t), s));
1096
+ var l = Jn(i.stem);
1097
+ l && (t = N(N({}, t), l));
1098
+ var s = _i(i.stem);
1099
+ s && (t = N(N({}, t), s));
1102
1100
  }
1103
1101
  return t;
1104
1102
  }
1105
- var ht = {
1103
+ var ct = {
1106
1104
  "001": [
1107
1105
  "H",
1108
1106
  "h"
@@ -2517,13 +2515,13 @@ var ht = {
2517
2515
  "h"
2518
2516
  ]
2519
2517
  };
2520
- function wi(e, t) {
2518
+ function Ti(e, t) {
2521
2519
  for (var n = "", r = 0; r < e.length; r++) {
2522
2520
  var i = e.charAt(r);
2523
2521
  if (i === "j") {
2524
- for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2525
- o++, r++;
2526
- var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = Si(t);
2522
+ for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2523
+ a++, r++;
2524
+ var l = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a", u = wi(t);
2527
2525
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2528
2526
  n += c;
2529
2527
  for (; l-- > 0; )
@@ -2533,7 +2531,7 @@ function wi(e, t) {
2533
2531
  }
2534
2532
  return n;
2535
2533
  }
2536
- function Si(e) {
2534
+ function wi(e) {
2537
2535
  var t = e.hourCycle;
2538
2536
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2539
2537
  e.hourCycles && // @ts-ignore
@@ -2552,23 +2550,23 @@ function Si(e) {
2552
2550
  }
2553
2551
  var n = e.language, r;
2554
2552
  n !== "root" && (r = e.maximize().region);
2555
- var i = ht[r || ""] || ht[n || ""] || ht["".concat(n, "-001")] || ht["001"];
2553
+ var i = ct[r || ""] || ct[n || ""] || ct["".concat(n, "-001")] || ct["001"];
2556
2554
  return i[0];
2557
2555
  }
2558
- var $t, Ai = new RegExp("^".concat(qn.source, "*")), Ci = new RegExp("".concat(qn.source, "*$"));
2556
+ var Ft, Si = new RegExp("^".concat(Zn.source, "*")), Ai = new RegExp("".concat(Zn.source, "*$"));
2559
2557
  function L(e, t) {
2560
2558
  return { start: e, end: t };
2561
2559
  }
2562
- var Hi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Oi = !!String.fromCodePoint, Ri = !!Object.fromEntries, Li = !!String.prototype.codePointAt, Mi = !!String.prototype.trimStart, Ni = !!String.prototype.trimEnd, Ii = !!Number.isSafeInteger, Pi = Ii ? Number.isSafeInteger : function(e) {
2560
+ var Ci = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hi = !!String.fromCodePoint, Oi = !!Object.fromEntries, Ri = !!String.prototype.codePointAt, Li = !!String.prototype.trimStart, Mi = !!String.prototype.trimEnd, Ni = !!Number.isSafeInteger, Ii = Ni ? Number.isSafeInteger : function(e) {
2563
2561
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2564
- }, qt = !0;
2562
+ }, Wt = !0;
2565
2563
  try {
2566
- var Di = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2567
- qt = (($t = Di.exec("a")) === null || $t === void 0 ? void 0 : $t[0]) === "a";
2564
+ var Pi = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2565
+ Wt = ((Ft = Pi.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
2568
2566
  } catch (e) {
2569
- qt = !1;
2567
+ Wt = !1;
2570
2568
  }
2571
- var yn = Hi ? (
2569
+ var bn = Ci ? (
2572
2570
  // Native
2573
2571
  function(t, n, r) {
2574
2572
  return t.startsWith(n, r);
@@ -2578,31 +2576,31 @@ var yn = Hi ? (
2578
2576
  function(t, n, r) {
2579
2577
  return t.slice(r, r + n.length) === n;
2580
2578
  }
2581
- ), Qt = Oi ? String.fromCodePoint : (
2579
+ ), Zt = Hi ? String.fromCodePoint : (
2582
2580
  // IE11
2583
2581
  function() {
2584
2582
  for (var t = [], n = 0; n < arguments.length; n++)
2585
2583
  t[n] = arguments[n];
2586
- for (var r = "", i = t.length, o = 0, l; i > o; ) {
2587
- if (l = t[o++], l > 1114111)
2584
+ for (var r = "", i = t.length, a = 0, l; i > a; ) {
2585
+ if (l = t[a++], l > 1114111)
2588
2586
  throw RangeError(l + " is not a valid code point");
2589
2587
  r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
2590
2588
  }
2591
2589
  return r;
2592
2590
  }
2593
- ), vn = (
2591
+ ), yn = (
2594
2592
  // native
2595
- Ri ? Object.fromEntries : (
2593
+ Oi ? Object.fromEntries : (
2596
2594
  // Ponyfill
2597
2595
  function(t) {
2598
2596
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
2599
- var o = i[r], l = o[0], s = o[1];
2597
+ var a = i[r], l = a[0], s = a[1];
2600
2598
  n[l] = s;
2601
2599
  }
2602
2600
  return n;
2603
2601
  }
2604
2602
  )
2605
- ), Kn = Li ? (
2603
+ ), Yn = Ri ? (
2606
2604
  // Native
2607
2605
  function(t, n) {
2608
2606
  return t.codePointAt(n);
@@ -2612,11 +2610,11 @@ var yn = Hi ? (
2612
2610
  function(t, n) {
2613
2611
  var r = t.length;
2614
2612
  if (!(n < 0 || n >= r)) {
2615
- var i = t.charCodeAt(n), o;
2616
- return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2613
+ var i = t.charCodeAt(n), a;
2614
+ return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2617
2615
  }
2618
2616
  }
2619
- ), Ui = Mi ? (
2617
+ ), Di = Li ? (
2620
2618
  // Native
2621
2619
  function(t) {
2622
2620
  return t.trimStart();
@@ -2624,9 +2622,9 @@ var yn = Hi ? (
2624
2622
  ) : (
2625
2623
  // Ponyfill
2626
2624
  function(t) {
2627
- return t.replace(Ai, "");
2625
+ return t.replace(Si, "");
2628
2626
  }
2629
- ), Fi = Ni ? (
2627
+ ), Ui = Mi ? (
2630
2628
  // Native
2631
2629
  function(t) {
2632
2630
  return t.trimEnd();
@@ -2634,32 +2632,32 @@ var yn = Hi ? (
2634
2632
  ) : (
2635
2633
  // Ponyfill
2636
2634
  function(t) {
2637
- return t.replace(Ci, "");
2635
+ return t.replace(Ai, "");
2638
2636
  }
2639
2637
  );
2640
- function er(e, t) {
2638
+ function Kn(e, t) {
2641
2639
  return new RegExp(e, t);
2642
2640
  }
2643
- var Jt;
2644
- if (qt) {
2645
- var En = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2646
- Jt = function(t, n) {
2641
+ var qt;
2642
+ if (Wt) {
2643
+ var vn = Kn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2644
+ qt = function(t, n) {
2647
2645
  var r;
2648
- En.lastIndex = n;
2649
- var i = En.exec(t);
2646
+ vn.lastIndex = n;
2647
+ var i = vn.exec(t);
2650
2648
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2651
2649
  };
2652
2650
  } else
2653
- Jt = function(t, n) {
2651
+ qt = function(t, n) {
2654
2652
  for (var r = []; ; ) {
2655
- var i = Kn(t, n);
2656
- if (i === void 0 || tr(i) || ki(i))
2653
+ var i = Yn(t, n);
2654
+ if (i === void 0 || er(i) || ji(i))
2657
2655
  break;
2658
2656
  r.push(i), n += i >= 65536 ? 2 : 1;
2659
2657
  }
2660
- return Qt.apply(void 0, r);
2658
+ return Zt.apply(void 0, r);
2661
2659
  };
2662
- var Gi = (
2660
+ var Fi = (
2663
2661
  /** @class */
2664
2662
  function() {
2665
2663
  function e(t, n) {
@@ -2671,26 +2669,26 @@ var Gi = (
2671
2669
  return this.parseMessage(0, "", !1);
2672
2670
  }, e.prototype.parseMessage = function(t, n, r) {
2673
2671
  for (var i = []; !this.isEOF(); ) {
2674
- var o = this.char();
2675
- if (o === 123) {
2672
+ var a = this.char();
2673
+ if (a === 123) {
2676
2674
  var l = this.parseArgument(t, r);
2677
2675
  if (l.err)
2678
2676
  return l;
2679
2677
  i.push(l.val);
2680
2678
  } else {
2681
- if (o === 125 && t > 0)
2679
+ if (a === 125 && t > 0)
2682
2680
  break;
2683
- if (o === 35 && (n === "plural" || n === "selectordinal")) {
2681
+ if (a === 35 && (n === "plural" || n === "selectordinal")) {
2684
2682
  var s = this.clonePosition();
2685
2683
  this.bump(), i.push({
2686
- type: j.pound,
2684
+ type: k.pound,
2687
2685
  location: L(s, this.clonePosition())
2688
2686
  });
2689
- } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2687
+ } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2690
2688
  if (r)
2691
2689
  break;
2692
2690
  return this.error(O.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2693
- } else if (o === 60 && !this.ignoreTag && Yt(this.peek() || 0)) {
2691
+ } else if (a === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
2694
2692
  var l = this.parseTag(t, n);
2695
2693
  if (l.err)
2696
2694
  return l;
@@ -2711,24 +2709,24 @@ var Gi = (
2711
2709
  if (this.bumpSpace(), this.bumpIf("/>"))
2712
2710
  return {
2713
2711
  val: {
2714
- type: j.literal,
2712
+ type: k.literal,
2715
2713
  value: "<".concat(i, "/>"),
2716
2714
  location: L(r, this.clonePosition())
2717
2715
  },
2718
2716
  err: null
2719
2717
  };
2720
2718
  if (this.bumpIf(">")) {
2721
- var o = this.parseMessage(t + 1, n, !0);
2722
- if (o.err)
2723
- return o;
2724
- var l = o.val, s = this.clonePosition();
2719
+ var a = this.parseMessage(t + 1, n, !0);
2720
+ if (a.err)
2721
+ return a;
2722
+ var l = a.val, s = this.clonePosition();
2725
2723
  if (this.bumpIf("</")) {
2726
- if (this.isEOF() || !Yt(this.char()))
2724
+ if (this.isEOF() || !Qt(this.char()))
2727
2725
  return this.error(O.INVALID_TAG, L(s, this.clonePosition()));
2728
2726
  var c = this.clonePosition(), u = this.parseTagName();
2729
2727
  return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, L(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2730
2728
  val: {
2731
- type: j.tag,
2729
+ type: k.tag,
2732
2730
  value: i,
2733
2731
  children: l,
2734
2732
  location: L(r, this.clonePosition())
@@ -2741,14 +2739,14 @@ var Gi = (
2741
2739
  return this.error(O.INVALID_TAG, L(r, this.clonePosition()));
2742
2740
  }, e.prototype.parseTagName = function() {
2743
2741
  var t = this.offset();
2744
- for (this.bump(); !this.isEOF() && ji(this.char()); )
2742
+ for (this.bump(); !this.isEOF() && $i(this.char()); )
2745
2743
  this.bump();
2746
2744
  return this.message.slice(t, this.offset());
2747
2745
  }, e.prototype.parseLiteral = function(t, n) {
2748
2746
  for (var r = this.clonePosition(), i = ""; ; ) {
2749
- var o = this.tryParseQuote(n);
2750
- if (o) {
2751
- i += o;
2747
+ var a = this.tryParseQuote(n);
2748
+ if (a) {
2749
+ i += a;
2752
2750
  continue;
2753
2751
  }
2754
2752
  var l = this.tryParseUnquoted(t, n);
@@ -2765,12 +2763,12 @@ var Gi = (
2765
2763
  }
2766
2764
  var c = L(r, this.clonePosition());
2767
2765
  return {
2768
- val: { type: j.literal, value: i, location: c },
2766
+ val: { type: k.literal, value: i, location: c },
2769
2767
  err: null
2770
2768
  };
2771
2769
  }, e.prototype.tryParseLeftAngleBracket = function() {
2772
2770
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2773
- !$i(this.peek() || 0)) ? (this.bump(), "<") : null;
2771
+ !Gi(this.peek() || 0)) ? (this.bump(), "<") : null;
2774
2772
  }, e.prototype.tryParseQuote = function(t) {
2775
2773
  if (this.isEOF() || this.char() !== 39)
2776
2774
  return null;
@@ -2804,12 +2802,12 @@ var Gi = (
2804
2802
  n.push(r);
2805
2803
  this.bump();
2806
2804
  }
2807
- return Qt.apply(void 0, n);
2805
+ return Zt.apply(void 0, n);
2808
2806
  }, e.prototype.tryParseUnquoted = function(t, n) {
2809
2807
  if (this.isEOF())
2810
2808
  return null;
2811
2809
  var r = this.char();
2812
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Qt(r));
2810
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Zt(r));
2813
2811
  }, e.prototype.parseArgument = function(t, n) {
2814
2812
  var r = this.clonePosition();
2815
2813
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2825,7 +2823,7 @@ var Gi = (
2825
2823
  case 125:
2826
2824
  return this.bump(), {
2827
2825
  val: {
2828
- type: j.argument,
2826
+ type: k.argument,
2829
2827
  // value does not include the opening and closing braces.
2830
2828
  value: i,
2831
2829
  location: L(r, this.clonePosition())
@@ -2838,12 +2836,12 @@ var Gi = (
2838
2836
  return this.error(O.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2839
2837
  }
2840
2838
  }, e.prototype.parseIdentifierIfPossible = function() {
2841
- var t = this.clonePosition(), n = this.offset(), r = Jt(this.message, n), i = n + r.length;
2839
+ var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
2842
2840
  this.bumpTo(i);
2843
- var o = this.clonePosition(), l = L(t, o);
2841
+ var a = this.clonePosition(), l = L(t, a);
2844
2842
  return { value: r, location: l };
2845
2843
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2846
- var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2844
+ var a, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2847
2845
  switch (s) {
2848
2846
  case "":
2849
2847
  return this.error(O.EXPECT_ARGUMENT_TYPE, L(l, c));
@@ -2857,7 +2855,7 @@ var Gi = (
2857
2855
  var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2858
2856
  if (g.err)
2859
2857
  return g;
2860
- var b = Fi(g.val);
2858
+ var b = Ui(g.val);
2861
2859
  if (b.length === 0)
2862
2860
  return this.error(O.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2863
2861
  var _ = L(d, this.clonePosition());
@@ -2867,37 +2865,37 @@ var Gi = (
2867
2865
  if (B.err)
2868
2866
  return B;
2869
2867
  var T = L(i, this.clonePosition());
2870
- if (u && yn(u == null ? void 0 : u.style, "::", 0)) {
2871
- var x = Ui(u.style.slice(2));
2868
+ if (u && bn(u == null ? void 0 : u.style, "::", 0)) {
2869
+ var x = Di(u.style.slice(2));
2872
2870
  if (s === "number") {
2873
2871
  var g = this.parseNumberSkeletonFromString(x, u.styleLocation);
2874
2872
  return g.err ? g : {
2875
- val: { type: j.number, value: r, location: T, style: g.val },
2873
+ val: { type: k.number, value: r, location: T, style: g.val },
2876
2874
  err: null
2877
2875
  };
2878
2876
  } else {
2879
2877
  if (x.length === 0)
2880
2878
  return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
2881
2879
  var S = x;
2882
- this.locale && (S = wi(x, this.locale));
2880
+ this.locale && (S = Ti(x, this.locale));
2883
2881
  var b = {
2884
- type: je.dateTime,
2882
+ type: $e.dateTime,
2885
2883
  pattern: S,
2886
2884
  location: u.styleLocation,
2887
- parsedOptions: this.shouldParseSkeletons ? yi(S) : {}
2888
- }, P = s === "date" ? j.date : j.time;
2885
+ parsedOptions: this.shouldParseSkeletons ? bi(S) : {}
2886
+ }, D = s === "date" ? k.date : k.time;
2889
2887
  return {
2890
- val: { type: P, value: r, location: T, style: b },
2888
+ val: { type: D, value: r, location: T, style: b },
2891
2889
  err: null
2892
2890
  };
2893
2891
  }
2894
2892
  }
2895
2893
  return {
2896
2894
  val: {
2897
- type: s === "number" ? j.number : s === "date" ? j.date : j.time,
2895
+ type: s === "number" ? k.number : s === "date" ? k.date : k.time,
2898
2896
  value: r,
2899
2897
  location: T,
2900
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2898
+ style: (a = u == null ? void 0 : u.style) !== null && a !== void 0 ? a : null
2901
2899
  },
2902
2900
  err: null
2903
2901
  };
@@ -2907,19 +2905,19 @@ var Gi = (
2907
2905
  case "select": {
2908
2906
  var C = this.clonePosition();
2909
2907
  if (this.bumpSpace(), !this.bumpIf(","))
2910
- return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, L(C, yt({}, C)));
2908
+ return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, L(C, N({}, C)));
2911
2909
  this.bumpSpace();
2912
- var D = this.parseIdentifierIfPossible(), W = 0;
2913
- if (s !== "select" && D.value === "offset") {
2910
+ var U = this.parseIdentifierIfPossible(), W = 0;
2911
+ if (s !== "select" && U.value === "offset") {
2914
2912
  if (!this.bumpIf(":"))
2915
2913
  return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2916
2914
  this.bumpSpace();
2917
2915
  var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2918
2916
  if (g.err)
2919
2917
  return g;
2920
- this.bumpSpace(), D = this.parseIdentifierIfPossible(), W = g.val;
2918
+ this.bumpSpace(), U = this.parseIdentifierIfPossible(), W = g.val;
2921
2919
  }
2922
- var J = this.tryParsePluralOrSelectOptions(t, s, n, D);
2920
+ var J = this.tryParsePluralOrSelectOptions(t, s, n, U);
2923
2921
  if (J.err)
2924
2922
  return J;
2925
2923
  var B = this.tryParseArgumentClose(i);
@@ -2928,17 +2926,17 @@ var Gi = (
2928
2926
  var Y = L(i, this.clonePosition());
2929
2927
  return s === "select" ? {
2930
2928
  val: {
2931
- type: j.select,
2929
+ type: k.select,
2932
2930
  value: r,
2933
- options: vn(J.val),
2931
+ options: yn(J.val),
2934
2932
  location: Y
2935
2933
  },
2936
2934
  err: null
2937
2935
  } : {
2938
2936
  val: {
2939
- type: j.plural,
2937
+ type: k.plural,
2940
2938
  value: r,
2941
- options: vn(J.val),
2939
+ options: yn(J.val),
2942
2940
  offset: W,
2943
2941
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2944
2942
  location: Y
@@ -2989,21 +2987,21 @@ var Gi = (
2989
2987
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2990
2988
  var r = [];
2991
2989
  try {
2992
- r = Ei(t);
2990
+ r = vi(t);
2993
2991
  } catch (i) {
2994
2992
  return this.error(O.INVALID_NUMBER_SKELETON, n);
2995
2993
  }
2996
2994
  return {
2997
2995
  val: {
2998
- type: je.number,
2996
+ type: $e.number,
2999
2997
  tokens: r,
3000
2998
  location: n,
3001
- parsedOptions: this.shouldParseSkeletons ? Ti(r) : {}
2999
+ parsedOptions: this.shouldParseSkeletons ? Bi(r) : {}
3002
3000
  },
3003
3001
  err: null
3004
3002
  };
3005
3003
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3006
- for (var o, l = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
3004
+ for (var a, l = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
3007
3005
  if (u.length === 0) {
3008
3006
  var g = this.clonePosition();
3009
3007
  if (n !== "select" && this.bumpIf("=")) {
@@ -3032,21 +3030,21 @@ var Gi = (
3032
3030
  value: B.val,
3033
3031
  location: L(_, this.clonePosition())
3034
3032
  }
3035
- ]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
3033
+ ]), c.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, d = a.location;
3036
3034
  }
3037
3035
  return s.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(O.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3038
3036
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3039
3037
  var r = 1, i = this.clonePosition();
3040
3038
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3041
- for (var o = !1, l = 0; !this.isEOF(); ) {
3039
+ for (var a = !1, l = 0; !this.isEOF(); ) {
3042
3040
  var s = this.char();
3043
3041
  if (s >= 48 && s <= 57)
3044
- o = !0, l = l * 10 + (s - 48), this.bump();
3042
+ a = !0, l = l * 10 + (s - 48), this.bump();
3045
3043
  else
3046
3044
  break;
3047
3045
  }
3048
3046
  var c = L(i, this.clonePosition());
3049
- return o ? (l *= r, Pi(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
3047
+ return a ? (l *= r, Ii(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
3050
3048
  }, e.prototype.offset = function() {
3051
3049
  return this.position.offset;
3052
3050
  }, e.prototype.isEOF = function() {
@@ -3061,7 +3059,7 @@ var Gi = (
3061
3059
  var t = this.position.offset;
3062
3060
  if (t >= this.message.length)
3063
3061
  throw Error("out of bound");
3064
- var n = Kn(this.message, t);
3062
+ var n = Yn(this.message, t);
3065
3063
  if (n === void 0)
3066
3064
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3067
3065
  return n;
@@ -3080,7 +3078,7 @@ var Gi = (
3080
3078
  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);
3081
3079
  }
3082
3080
  }, e.prototype.bumpIf = function(t) {
3083
- if (yn(this.message, t, this.offset())) {
3081
+ if (bn(this.message, t, this.offset())) {
3084
3082
  for (var n = 0; n < t.length; n++)
3085
3083
  this.bump();
3086
3084
  return !0;
@@ -3102,7 +3100,7 @@ var Gi = (
3102
3100
  break;
3103
3101
  }
3104
3102
  }, e.prototype.bumpSpace = function() {
3105
- for (; !this.isEOF() && tr(this.char()); )
3103
+ for (; !this.isEOF() && er(this.char()); )
3106
3104
  this.bump();
3107
3105
  }, e.prototype.peek = function() {
3108
3106
  if (this.isEOF())
@@ -3112,97 +3110,97 @@ var Gi = (
3112
3110
  }, e;
3113
3111
  }()
3114
3112
  );
3115
- function Yt(e) {
3113
+ function Qt(e) {
3116
3114
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3117
3115
  }
3118
- function $i(e) {
3119
- return Yt(e) || e === 47;
3116
+ function Gi(e) {
3117
+ return Qt(e) || e === 47;
3120
3118
  }
3121
- function ji(e) {
3119
+ function $i(e) {
3122
3120
  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;
3123
3121
  }
3124
- function tr(e) {
3122
+ function er(e) {
3125
3123
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3126
3124
  }
3127
- function ki(e) {
3125
+ function ji(e) {
3128
3126
  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;
3129
3127
  }
3130
- function Kt(e) {
3128
+ function Jt(e) {
3131
3129
  e.forEach(function(t) {
3132
- if (delete t.location, Xn(t) || zn(t))
3130
+ if (delete t.location, Vn(t) || Xn(t))
3133
3131
  for (var n in t.options)
3134
- delete t.options[n].location, Kt(t.options[n].value);
3132
+ delete t.options[n].location, Jt(t.options[n].value);
3135
3133
  else
3136
- jn(t) && Zn(t.style) || (kn(t) || Vn(t)) && Zt(t.style) ? delete t.style.location : Wn(t) && Kt(t.children);
3134
+ $n(t) && Wn(t.style) || (jn(t) || kn(t)) && zt(t.style) ? delete t.style.location : zn(t) && Jt(t.children);
3137
3135
  });
3138
3136
  }
3139
- function Vi(e, t) {
3140
- t === void 0 && (t = {}), t = yt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3141
- var n = new Gi(e, t).parse();
3137
+ function ki(e, t) {
3138
+ t === void 0 && (t = {}), t = N({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3139
+ var n = new Fi(e, t).parse();
3142
3140
  if (n.err) {
3143
3141
  var r = SyntaxError(O[n.err.kind]);
3144
3142
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3145
3143
  }
3146
- return t != null && t.captureLocation || Kt(n.val), n.val;
3144
+ return t != null && t.captureLocation || Jt(n.val), n.val;
3147
3145
  }
3148
- var ke;
3146
+ var je;
3149
3147
  (function(e) {
3150
3148
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3151
- })(ke || (ke = {}));
3152
- var Bt = (
3149
+ })(je || (je = {}));
3150
+ var xt = (
3153
3151
  /** @class */
3154
3152
  function(e) {
3155
- _t(t, e);
3153
+ Et(t, e);
3156
3154
  function t(n, r, i) {
3157
- var o = e.call(this, n) || this;
3158
- return o.code = r, o.originalMessage = i, o;
3155
+ var a = e.call(this, n) || this;
3156
+ return a.code = r, a.originalMessage = i, a;
3159
3157
  }
3160
3158
  return t.prototype.toString = function() {
3161
3159
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3162
3160
  }, t;
3163
3161
  }(Error)
3164
- ), xn = (
3162
+ ), En = (
3165
3163
  /** @class */
3166
3164
  function(e) {
3167
- _t(t, e);
3168
- function t(n, r, i, o) {
3169
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ke.INVALID_VALUE, o) || this;
3165
+ Et(t, e);
3166
+ function t(n, r, i, a) {
3167
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), je.INVALID_VALUE, a) || this;
3170
3168
  }
3171
3169
  return t;
3172
- }(Bt)
3173
- ), Xi = (
3170
+ }(xt)
3171
+ ), Vi = (
3174
3172
  /** @class */
3175
3173
  function(e) {
3176
- _t(t, e);
3174
+ Et(t, e);
3177
3175
  function t(n, r, i) {
3178
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ke.INVALID_VALUE, i) || this;
3176
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), je.INVALID_VALUE, i) || this;
3179
3177
  }
3180
3178
  return t;
3181
- }(Bt)
3182
- ), zi = (
3179
+ }(xt)
3180
+ ), Xi = (
3183
3181
  /** @class */
3184
3182
  function(e) {
3185
- _t(t, e);
3183
+ Et(t, e);
3186
3184
  function t(n, r) {
3187
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ke.MISSING_VALUE, r) || this;
3185
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), je.MISSING_VALUE, r) || this;
3188
3186
  }
3189
3187
  return t;
3190
- }(Bt)
3188
+ }(xt)
3191
3189
  ), ne;
3192
3190
  (function(e) {
3193
3191
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3194
3192
  })(ne || (ne = {}));
3195
- function Wi(e) {
3193
+ function zi(e) {
3196
3194
  return e.length < 2 ? e : e.reduce(function(t, n) {
3197
3195
  var r = t[t.length - 1];
3198
3196
  return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
3199
3197
  }, []);
3200
3198
  }
3201
- function Zi(e) {
3199
+ function Wi(e) {
3202
3200
  return typeof e == "function";
3203
3201
  }
3204
- function dt(e, t, n, r, i, o, l) {
3205
- if (e.length === 1 && pn(e[0]))
3202
+ function ft(e, t, n, r, i, a, l) {
3203
+ if (e.length === 1 && dn(e[0]))
3206
3204
  return [
3207
3205
  {
3208
3206
  type: ne.literal,
@@ -3211,105 +3209,105 @@ function dt(e, t, n, r, i, o, l) {
3211
3209
  ];
3212
3210
  for (var s = [], c = 0, u = e; c < u.length; c++) {
3213
3211
  var d = u[c];
3214
- if (pn(d)) {
3212
+ if (dn(d)) {
3215
3213
  s.push({
3216
3214
  type: ne.literal,
3217
3215
  value: d.value
3218
3216
  });
3219
3217
  continue;
3220
3218
  }
3221
- if (gi(d)) {
3222
- typeof o == "number" && s.push({
3219
+ if (mi(d)) {
3220
+ typeof a == "number" && s.push({
3223
3221
  type: ne.literal,
3224
- value: n.getNumberFormat(t).format(o)
3222
+ value: n.getNumberFormat(t).format(a)
3225
3223
  });
3226
3224
  continue;
3227
3225
  }
3228
3226
  var g = d.value;
3229
3227
  if (!(i && g in i))
3230
- throw new zi(g, l);
3228
+ throw new Xi(g, l);
3231
3229
  var b = i[g];
3232
- if (mi(d)) {
3230
+ if (pi(d)) {
3233
3231
  (!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
3234
3232
  type: typeof b == "string" ? ne.literal : ne.object,
3235
3233
  value: b
3236
3234
  });
3237
3235
  continue;
3238
3236
  }
3239
- if (kn(d)) {
3240
- var _ = typeof d.style == "string" ? r.date[d.style] : Zt(d.style) ? d.style.parsedOptions : void 0;
3237
+ if (jn(d)) {
3238
+ var _ = typeof d.style == "string" ? r.date[d.style] : zt(d.style) ? d.style.parsedOptions : void 0;
3241
3239
  s.push({
3242
3240
  type: ne.literal,
3243
3241
  value: n.getDateTimeFormat(t, _).format(b)
3244
3242
  });
3245
3243
  continue;
3246
3244
  }
3247
- if (Vn(d)) {
3248
- var _ = typeof d.style == "string" ? r.time[d.style] : Zt(d.style) ? d.style.parsedOptions : r.time.medium;
3245
+ if (kn(d)) {
3246
+ var _ = typeof d.style == "string" ? r.time[d.style] : zt(d.style) ? d.style.parsedOptions : r.time.medium;
3249
3247
  s.push({
3250
3248
  type: ne.literal,
3251
3249
  value: n.getDateTimeFormat(t, _).format(b)
3252
3250
  });
3253
3251
  continue;
3254
3252
  }
3255
- if (jn(d)) {
3256
- var _ = typeof d.style == "string" ? r.number[d.style] : Zn(d.style) ? d.style.parsedOptions : void 0;
3253
+ if ($n(d)) {
3254
+ var _ = typeof d.style == "string" ? r.number[d.style] : Wn(d.style) ? d.style.parsedOptions : void 0;
3257
3255
  _ && _.scale && (b = b * (_.scale || 1)), s.push({
3258
3256
  type: ne.literal,
3259
3257
  value: n.getNumberFormat(t, _).format(b)
3260
3258
  });
3261
3259
  continue;
3262
3260
  }
3263
- if (Wn(d)) {
3261
+ if (zn(d)) {
3264
3262
  var B = d.children, T = d.value, x = i[T];
3265
- if (!Zi(x))
3266
- throw new Xi(T, "function", l);
3267
- var S = dt(B, t, n, r, i, o), P = x(S.map(function(W) {
3263
+ if (!Wi(x))
3264
+ throw new Vi(T, "function", l);
3265
+ var S = ft(B, t, n, r, i, a), D = x(S.map(function(W) {
3268
3266
  return W.value;
3269
3267
  }));
3270
- Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(W) {
3268
+ Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(W) {
3271
3269
  return {
3272
3270
  type: typeof W == "string" ? ne.literal : ne.object,
3273
3271
  value: W
3274
3272
  };
3275
3273
  }));
3276
3274
  }
3277
- if (Xn(d)) {
3275
+ if (Vn(d)) {
3278
3276
  var C = d.options[b] || d.options.other;
3279
3277
  if (!C)
3280
- throw new xn(d.value, b, Object.keys(d.options), l);
3281
- s.push.apply(s, dt(C.value, t, n, r, i));
3278
+ throw new En(d.value, b, Object.keys(d.options), l);
3279
+ s.push.apply(s, ft(C.value, t, n, r, i));
3282
3280
  continue;
3283
3281
  }
3284
- if (zn(d)) {
3282
+ if (Xn(d)) {
3285
3283
  var C = d.options["=".concat(b)];
3286
3284
  if (!C) {
3287
3285
  if (!Intl.PluralRules)
3288
- throw new Bt(`Intl.PluralRules is not available in this environment.
3286
+ throw new xt(`Intl.PluralRules is not available in this environment.
3289
3287
  Try polyfilling it using "@formatjs/intl-pluralrules"
3290
- `, ke.MISSING_INTL_API, l);
3291
- var D = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
3292
- C = d.options[D] || d.options.other;
3288
+ `, je.MISSING_INTL_API, l);
3289
+ var U = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
3290
+ C = d.options[U] || d.options.other;
3293
3291
  }
3294
3292
  if (!C)
3295
- throw new xn(d.value, b, Object.keys(d.options), l);
3296
- s.push.apply(s, dt(C.value, t, n, r, i, b - (d.offset || 0)));
3293
+ throw new En(d.value, b, Object.keys(d.options), l);
3294
+ s.push.apply(s, ft(C.value, t, n, r, i, b - (d.offset || 0)));
3297
3295
  continue;
3298
3296
  }
3299
3297
  }
3300
- return Wi(s);
3298
+ return zi(s);
3301
3299
  }
3302
- function qi(e, t) {
3303
- return t ? ge(ge(ge({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3304
- return n[r] = ge(ge({}, e[r]), t[r] || {}), n;
3300
+ function Zi(e, t) {
3301
+ return t ? N(N(N({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3302
+ return n[r] = N(N({}, e[r]), t[r] || {}), n;
3305
3303
  }, {})) : e;
3306
3304
  }
3307
- function Qi(e, t) {
3305
+ function qi(e, t) {
3308
3306
  return t ? Object.keys(e).reduce(function(n, r) {
3309
- return n[r] = qi(e[r], t[r]), n;
3310
- }, ge({}, e)) : e;
3307
+ return n[r] = Zi(e[r], t[r]), n;
3308
+ }, N({}, e)) : e;
3311
3309
  }
3312
- function jt(e) {
3310
+ function Gt(e) {
3313
3311
  return {
3314
3312
  create: function() {
3315
3313
  return {
@@ -3323,50 +3321,50 @@ function jt(e) {
3323
3321
  }
3324
3322
  };
3325
3323
  }
3326
- function Ji(e) {
3324
+ function Qi(e) {
3327
3325
  return e === void 0 && (e = {
3328
3326
  number: {},
3329
3327
  dateTime: {},
3330
3328
  pluralRules: {}
3331
3329
  }), {
3332
- getNumberFormat: Ft(function() {
3330
+ getNumberFormat: Dt(function() {
3333
3331
  for (var t, n = [], r = 0; r < arguments.length; r++)
3334
3332
  n[r] = arguments[r];
3335
- return new ((t = Intl.NumberFormat).bind.apply(t, Ut([void 0], n, !1)))();
3333
+ return new ((t = Intl.NumberFormat).bind.apply(t, Pt([void 0], n, !1)))();
3336
3334
  }, {
3337
- cache: jt(e.number),
3338
- strategy: Gt.variadic
3335
+ cache: Gt(e.number),
3336
+ strategy: Ut.variadic
3339
3337
  }),
3340
- getDateTimeFormat: Ft(function() {
3338
+ getDateTimeFormat: Dt(function() {
3341
3339
  for (var t, n = [], r = 0; r < arguments.length; r++)
3342
3340
  n[r] = arguments[r];
3343
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ut([void 0], n, !1)))();
3341
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Pt([void 0], n, !1)))();
3344
3342
  }, {
3345
- cache: jt(e.dateTime),
3346
- strategy: Gt.variadic
3343
+ cache: Gt(e.dateTime),
3344
+ strategy: Ut.variadic
3347
3345
  }),
3348
- getPluralRules: Ft(function() {
3346
+ getPluralRules: Dt(function() {
3349
3347
  for (var t, n = [], r = 0; r < arguments.length; r++)
3350
3348
  n[r] = arguments[r];
3351
- return new ((t = Intl.PluralRules).bind.apply(t, Ut([void 0], n, !1)))();
3349
+ return new ((t = Intl.PluralRules).bind.apply(t, Pt([void 0], n, !1)))();
3352
3350
  }, {
3353
- cache: jt(e.pluralRules),
3354
- strategy: Gt.variadic
3351
+ cache: Gt(e.pluralRules),
3352
+ strategy: Ut.variadic
3355
3353
  })
3356
3354
  };
3357
3355
  }
3358
- var Yi = (
3356
+ var Ji = (
3359
3357
  /** @class */
3360
3358
  function() {
3361
3359
  function e(t, n, r, i) {
3362
3360
  n === void 0 && (n = e.defaultLocale);
3363
- var o = this;
3361
+ var a = this;
3364
3362
  if (this.formatterCache = {
3365
3363
  number: {},
3366
3364
  dateTime: {},
3367
3365
  pluralRules: {}
3368
3366
  }, this.format = function(c) {
3369
- var u = o.formatToParts(c);
3367
+ var u = a.formatToParts(c);
3370
3368
  if (u.length === 1)
3371
3369
  return u[0].value;
3372
3370
  var d = u.reduce(function(g, b) {
@@ -3374,26 +3372,26 @@ var Yi = (
3374
3372
  }, []);
3375
3373
  return d.length <= 1 ? d[0] || "" : d;
3376
3374
  }, this.formatToParts = function(c) {
3377
- return dt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3375
+ return ft(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
3378
3376
  }, this.resolvedOptions = function() {
3379
3377
  var c;
3380
3378
  return {
3381
- locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3379
+ locale: ((c = a.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
3382
3380
  };
3383
3381
  }, this.getAst = function() {
3384
- return o.ast;
3382
+ return a.ast;
3385
3383
  }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3386
3384
  if (this.message = t, !e.__parse)
3387
3385
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3388
3386
  var l = i || {};
3389
3387
  l.formatters;
3390
- var s = si(l, ["formatters"]);
3391
- this.ast = e.__parse(t, ge(ge({}, s), { locale: this.resolvedLocale }));
3388
+ var s = oi(l, ["formatters"]);
3389
+ this.ast = e.__parse(t, N(N({}, s), { locale: this.resolvedLocale }));
3392
3390
  } else
3393
3391
  this.ast = t;
3394
3392
  if (!Array.isArray(this.ast))
3395
3393
  throw new TypeError("A message must be provided as a String or AST.");
3396
- this.formats = Qi(e.formats, r), this.formatters = i && i.formatters || Ji(this.formatterCache);
3394
+ this.formats = qi(e.formats, r), this.formatters = i && i.formatters || Qi(this.formatterCache);
3397
3395
  }
3398
3396
  return Object.defineProperty(e, "defaultLocale", {
3399
3397
  get: function() {
@@ -3406,7 +3404,7 @@ var Yi = (
3406
3404
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3407
3405
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3408
3406
  }
3409
- }, e.__parse = Vi, e.formats = {
3407
+ }, e.__parse = ki, e.formats = {
3410
3408
  number: {
3411
3409
  integer: {
3412
3410
  maximumFractionDigits: 0
@@ -3467,7 +3465,7 @@ var Yi = (
3467
3465
  }, e;
3468
3466
  }()
3469
3467
  );
3470
- function Ki(e, t) {
3468
+ function Yi(e, t) {
3471
3469
  if (t == null)
3472
3470
  return;
3473
3471
  if (t in e)
@@ -3477,9 +3475,9 @@ function Ki(e, t) {
3477
3475
  for (let i = 0; i < n.length; i++)
3478
3476
  if (typeof r == "object") {
3479
3477
  if (i > 0) {
3480
- const o = n.slice(i, n.length).join(".");
3481
- if (o in r) {
3482
- r = r[o];
3478
+ const a = n.slice(i, n.length).join(".");
3479
+ if (a in r) {
3480
+ r = r[a];
3483
3481
  break;
3484
3482
  }
3485
3483
  }
@@ -3488,92 +3486,92 @@ function Ki(e, t) {
3488
3486
  r = void 0;
3489
3487
  return r;
3490
3488
  }
3491
- const Ae = {}, eo = (e, t, n) => n && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = n), n), nr = (e, t) => {
3489
+ const Se = {}, Ki = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), tr = (e, t) => {
3492
3490
  if (t == null)
3493
3491
  return;
3494
- if (t in Ae && e in Ae[t])
3495
- return Ae[t][e];
3496
- const n = Tt(t);
3492
+ if (t in Se && e in Se[t])
3493
+ return Se[t][e];
3494
+ const n = _t(t);
3497
3495
  for (let r = 0; r < n.length; r++) {
3498
- const i = n[r], o = no(i, e);
3499
- if (o)
3500
- return eo(e, t, o);
3496
+ const i = n[r], a = ta(i, e);
3497
+ if (a)
3498
+ return Ki(e, t, a);
3501
3499
  }
3502
3500
  };
3503
- let on;
3504
- const ot = xt({});
3505
- function to(e) {
3506
- return on[e] || null;
3501
+ let rn;
3502
+ const it = vt({});
3503
+ function ea(e) {
3504
+ return rn[e] || null;
3507
3505
  }
3508
- function rr(e) {
3509
- return e in on;
3506
+ function nr(e) {
3507
+ return e in rn;
3510
3508
  }
3511
- function no(e, t) {
3512
- if (!rr(e))
3509
+ function ta(e, t) {
3510
+ if (!nr(e))
3513
3511
  return null;
3514
- const n = to(e);
3515
- return Ki(n, t);
3512
+ const n = ea(e);
3513
+ return Yi(n, t);
3516
3514
  }
3517
- function ro(e) {
3515
+ function na(e) {
3518
3516
  if (e == null)
3519
3517
  return;
3520
- const t = Tt(e);
3518
+ const t = _t(e);
3521
3519
  for (let n = 0; n < t.length; n++) {
3522
3520
  const r = t[n];
3523
- if (rr(r))
3521
+ if (nr(r))
3524
3522
  return r;
3525
3523
  }
3526
3524
  }
3527
- function ir(e, ...t) {
3528
- delete Ae[e], ot.update((n) => (n[e] = ai.all([n[e] || {}, ...t]), n));
3525
+ function rr(e, ...t) {
3526
+ delete Se[e], it.update((n) => (n[e] = ai.all([n[e] || {}, ...t]), n));
3529
3527
  }
3530
- ze(
3531
- [ot],
3528
+ Xe(
3529
+ [it],
3532
3530
  ([e]) => Object.keys(e)
3533
3531
  );
3534
- ot.subscribe((e) => on = e);
3535
- const pt = {};
3536
- function io(e, t) {
3537
- pt[e].delete(t), pt[e].size === 0 && delete pt[e];
3532
+ it.subscribe((e) => rn = e);
3533
+ const dt = {};
3534
+ function ra(e, t) {
3535
+ dt[e].delete(t), dt[e].size === 0 && delete dt[e];
3538
3536
  }
3539
- function or(e) {
3540
- return pt[e];
3537
+ function ir(e) {
3538
+ return dt[e];
3541
3539
  }
3542
- function oo(e) {
3543
- return Tt(e).map((t) => {
3544
- const n = or(t);
3540
+ function ia(e) {
3541
+ return _t(e).map((t) => {
3542
+ const n = ir(t);
3545
3543
  return [t, n ? [...n] : []];
3546
3544
  }).filter(([, t]) => t.length > 0);
3547
3545
  }
3548
- function en(e) {
3549
- return e == null ? !1 : Tt(e).some(
3546
+ function Yt(e) {
3547
+ return e == null ? !1 : _t(e).some(
3550
3548
  (t) => {
3551
3549
  var n;
3552
- return (n = or(t)) == null ? void 0 : n.size;
3550
+ return (n = ir(t)) == null ? void 0 : n.size;
3553
3551
  }
3554
3552
  );
3555
3553
  }
3556
- function ao(e, t) {
3554
+ function aa(e, t) {
3557
3555
  return Promise.all(
3558
- t.map((r) => (io(e, r), r().then((i) => i.default || i)))
3559
- ).then((r) => ir(e, ...r));
3556
+ t.map((r) => (ra(e, r), r().then((i) => i.default || i)))
3557
+ ).then((r) => rr(e, ...r));
3560
3558
  }
3561
- const et = {};
3559
+ const Ke = {};
3562
3560
  function ar(e) {
3563
- if (!en(e))
3564
- return e in et ? et[e] : Promise.resolve();
3565
- const t = oo(e);
3566
- return et[e] = Promise.all(
3561
+ if (!Yt(e))
3562
+ return e in Ke ? Ke[e] : Promise.resolve();
3563
+ const t = ia(e);
3564
+ return Ke[e] = Promise.all(
3567
3565
  t.map(
3568
- ([n, r]) => ao(n, r)
3566
+ ([n, r]) => aa(n, r)
3569
3567
  )
3570
3568
  ).then(() => {
3571
- if (en(e))
3569
+ if (Yt(e))
3572
3570
  return ar(e);
3573
- delete et[e];
3574
- }), et[e];
3571
+ delete Ke[e];
3572
+ }), Ke[e];
3575
3573
  }
3576
- const so = {
3574
+ const oa = {
3577
3575
  number: {
3578
3576
  scientific: { notation: "scientific" },
3579
3577
  engineering: { notation: "engineering" },
@@ -3602,150 +3600,150 @@ const so = {
3602
3600
  timeZoneName: "short"
3603
3601
  }
3604
3602
  }
3605
- }, lo = {
3603
+ }, sa = {
3606
3604
  fallbackLocale: null,
3607
3605
  loadingDelay: 200,
3608
- formats: so,
3606
+ formats: oa,
3609
3607
  warnOnMissingMessages: !0,
3610
3608
  handleMissingMessage: void 0,
3611
3609
  ignoreTag: !0
3612
- }, uo = lo;
3613
- function Ve() {
3614
- return uo;
3615
- }
3616
- const kt = xt(!1);
3617
- var co = Object.defineProperty, ho = Object.defineProperties, fo = Object.getOwnPropertyDescriptors, _n = Object.getOwnPropertySymbols, po = Object.prototype.hasOwnProperty, mo = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, go = (e, t) => {
3618
- for (var n in t || (t = {}))
3619
- po.call(t, n) && Bn(e, n, t[n]);
3620
- if (_n)
3621
- for (var n of _n(t))
3622
- mo.call(t, n) && Bn(e, n, t[n]);
3610
+ }, la = sa;
3611
+ function ke() {
3612
+ return la;
3613
+ }
3614
+ const $t = vt(!1);
3615
+ var ua = Object.defineProperty, ca = Object.defineProperties, ha = Object.getOwnPropertyDescriptors, xn = Object.getOwnPropertySymbols, fa = Object.prototype.hasOwnProperty, da = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? ua(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, pa = (e, t) => {
3616
+ for (var n in t)
3617
+ fa.call(t, n) && _n(e, n, t[n]);
3618
+ if (xn)
3619
+ for (var n of xn(t))
3620
+ da.call(t, n) && _n(e, n, t[n]);
3623
3621
  return e;
3624
- }, bo = (e, t) => ho(e, fo(t));
3625
- let tn;
3626
- const vt = xt(null);
3627
- function Tn(e) {
3622
+ }, ma = (e, t) => ca(e, ha(t));
3623
+ let Kt;
3624
+ const bt = vt(null);
3625
+ function Bn(e) {
3628
3626
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3629
3627
  }
3630
- function Tt(e, t = Ve().fallbackLocale) {
3631
- const n = Tn(e);
3632
- return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
3628
+ function _t(e, t = ke().fallbackLocale) {
3629
+ const n = Bn(e);
3630
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Bn(t)])] : n;
3633
3631
  }
3634
- function Re() {
3635
- return tn != null ? tn : void 0;
3632
+ function Oe() {
3633
+ return Kt != null ? Kt : void 0;
3636
3634
  }
3637
- vt.subscribe((e) => {
3638
- tn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3635
+ bt.subscribe((e) => {
3636
+ Kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3639
3637
  });
3640
- const yo = (e) => {
3641
- if (e && ro(e) && en(e)) {
3642
- const { loadingDelay: t } = Ve();
3638
+ const ga = (e) => {
3639
+ if (e && na(e) && Yt(e)) {
3640
+ const { loadingDelay: t } = ke();
3643
3641
  let n;
3644
- return typeof window != "undefined" && Re() != null && t ? n = window.setTimeout(
3645
- () => kt.set(!0),
3642
+ return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
3643
+ () => $t.set(!0),
3646
3644
  t
3647
- ) : kt.set(!0), ar(e).then(() => {
3648
- vt.set(e);
3645
+ ) : $t.set(!0), ar(e).then(() => {
3646
+ bt.set(e);
3649
3647
  }).finally(() => {
3650
- clearTimeout(n), kt.set(!1);
3648
+ clearTimeout(n), $t.set(!1);
3651
3649
  });
3652
3650
  }
3653
- return vt.set(e);
3654
- }, We = bo(go({}, vt), {
3655
- set: yo
3656
- }), wt = (e) => {
3651
+ return bt.set(e);
3652
+ }, ze = ma(pa({}, bt), {
3653
+ set: ga
3654
+ }), Bt = (e) => {
3657
3655
  const t = /* @__PURE__ */ Object.create(null);
3658
3656
  return (r) => {
3659
3657
  const i = JSON.stringify(r);
3660
3658
  return i in t ? t[i] : t[i] = e(r);
3661
3659
  };
3662
3660
  };
3663
- var vo = Object.defineProperty, Et = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, wn = (e, t, n) => t in e ? vo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, an = (e, t) => {
3661
+ var ba = Object.defineProperty, yt = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, Tn = (e, t, n) => t in e ? ba(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, an = (e, t) => {
3664
3662
  for (var n in t || (t = {}))
3665
- sr.call(t, n) && wn(e, n, t[n]);
3666
- if (Et)
3667
- for (var n of Et(t))
3668
- lr.call(t, n) && wn(e, n, t[n]);
3663
+ or.call(t, n) && Tn(e, n, t[n]);
3664
+ if (yt)
3665
+ for (var n of yt(t))
3666
+ sr.call(t, n) && Tn(e, n, t[n]);
3669
3667
  return e;
3670
- }, Ze = (e, t) => {
3668
+ }, We = (e, t) => {
3671
3669
  var n = {};
3672
3670
  for (var r in e)
3673
- sr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3674
- if (e != null && Et)
3675
- for (var r of Et(e))
3676
- t.indexOf(r) < 0 && lr.call(e, r) && (n[r] = e[r]);
3671
+ or.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3672
+ if (e != null && yt)
3673
+ for (var r of yt(e))
3674
+ t.indexOf(r) < 0 && sr.call(e, r) && (n[r] = e[r]);
3677
3675
  return n;
3678
3676
  };
3679
- const it = (e, t) => {
3680
- const { formats: n } = Ve();
3677
+ const rt = (e, t) => {
3678
+ const { formats: n } = ke();
3681
3679
  if (e in n && t in n[e])
3682
3680
  return n[e][t];
3683
3681
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3684
- }, Eo = wt(
3682
+ }, ya = Bt(
3685
3683
  (e) => {
3686
- var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3684
+ var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3687
3685
  if (n == null)
3688
3686
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3689
- return r && (i = it("number", r)), new Intl.NumberFormat(n, i);
3687
+ return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
3690
3688
  }
3691
- ), xo = wt(
3689
+ ), va = Bt(
3692
3690
  (e) => {
3693
- var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3691
+ var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3694
3692
  if (n == null)
3695
3693
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3696
- return r ? i = it("date", r) : Object.keys(i).length === 0 && (i = it("date", "short")), new Intl.DateTimeFormat(n, i);
3694
+ return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
3697
3695
  }
3698
- ), _o = wt(
3696
+ ), Ea = Bt(
3699
3697
  (e) => {
3700
- var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3698
+ var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3701
3699
  if (n == null)
3702
3700
  throw new Error(
3703
3701
  '[svelte-i18n] A "locale" must be set to format time values'
3704
3702
  );
3705
- return r ? i = it("time", r) : Object.keys(i).length === 0 && (i = it("time", "short")), new Intl.DateTimeFormat(n, i);
3703
+ return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
3706
3704
  }
3707
- ), Bo = (e = {}) => {
3705
+ ), xa = (e = {}) => {
3708
3706
  var t = e, {
3709
- locale: n = Re()
3710
- } = t, r = Ze(t, [
3707
+ locale: n = Oe()
3708
+ } = t, r = We(t, [
3711
3709
  "locale"
3712
3710
  ]);
3713
- return Eo(an({ locale: n }, r));
3714
- }, To = (e = {}) => {
3711
+ return ya(an({ locale: n }, r));
3712
+ }, _a = (e = {}) => {
3715
3713
  var t = e, {
3716
- locale: n = Re()
3717
- } = t, r = Ze(t, [
3714
+ locale: n = Oe()
3715
+ } = t, r = We(t, [
3718
3716
  "locale"
3719
3717
  ]);
3720
- return xo(an({ locale: n }, r));
3721
- }, wo = (e = {}) => {
3718
+ return va(an({ locale: n }, r));
3719
+ }, Ba = (e = {}) => {
3722
3720
  var t = e, {
3723
- locale: n = Re()
3724
- } = t, r = Ze(t, [
3721
+ locale: n = Oe()
3722
+ } = t, r = We(t, [
3725
3723
  "locale"
3726
3724
  ]);
3727
- return _o(an({ locale: n }, r));
3728
- }, So = wt(
3725
+ return Ea(an({ locale: n }, r));
3726
+ }, Ta = Bt(
3729
3727
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3730
- (e, t = Re()) => new Yi(e, t, Ve().formats, {
3731
- ignoreTag: Ve().ignoreTag
3728
+ (e, t = Oe()) => new Ji(e, t, ke().formats, {
3729
+ ignoreTag: ke().ignoreTag
3732
3730
  })
3733
- ), Ao = (e, t = {}) => {
3734
- var n, r, i, o;
3731
+ ), wa = (e, t = {}) => {
3732
+ var n, r, i, a;
3735
3733
  let l = t;
3736
3734
  typeof e == "object" && (l = e, e = l.id);
3737
3735
  const {
3738
3736
  values: s,
3739
- locale: c = Re(),
3737
+ locale: c = Oe(),
3740
3738
  default: u
3741
3739
  } = l;
3742
3740
  if (c == null)
3743
3741
  throw new Error(
3744
3742
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3745
3743
  );
3746
- let d = nr(e, c);
3744
+ let d = tr(e, c);
3747
3745
  if (!d)
3748
- d = (o = (i = (r = (n = Ve()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3746
+ d = (a = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3749
3747
  else if (typeof d != "string")
3750
3748
  return console.warn(
3751
3749
  `[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.`
@@ -3754,7 +3752,7 @@ const it = (e, t) => {
3754
3752
  return d;
3755
3753
  let g = d;
3756
3754
  try {
3757
- g = So(d, c).format(s);
3755
+ g = Ta(d, c).format(s);
3758
3756
  } catch (b) {
3759
3757
  b instanceof Error && console.warn(
3760
3758
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3762,18 +3760,18 @@ const it = (e, t) => {
3762
3760
  );
3763
3761
  }
3764
3762
  return g;
3765
- }, Co = (e, t) => wo(t).format(e), Ho = (e, t) => To(t).format(e), Oo = (e, t) => Bo(t).format(e), Ro = (e, t = Re()) => nr(e, t), Lo = ze([We, ot], () => Ao);
3766
- ze([We], () => Co);
3767
- ze([We], () => Ho);
3768
- ze([We], () => Oo);
3769
- ze([We, ot], () => Ro);
3770
- function Sn(e, t) {
3771
- ir(e, t);
3772
- }
3773
- function Mo(e) {
3774
- We.set(e);
3775
- }
3776
- const An = {
3763
+ }, Sa = (e, t) => Ba(t).format(e), Aa = (e, t) => _a(t).format(e), Ca = (e, t) => xa(t).format(e), Ha = (e, t = Oe()) => tr(e, t), Oa = Xe([ze, it], () => wa);
3764
+ Xe([ze], () => Sa);
3765
+ Xe([ze], () => Aa);
3766
+ Xe([ze], () => Ca);
3767
+ Xe([ze, it], () => Ha);
3768
+ function wn(e, t) {
3769
+ rr(e, t);
3770
+ }
3771
+ function Ra(e) {
3772
+ ze.set(e);
3773
+ }
3774
+ const Sn = {
3777
3775
  en: {
3778
3776
  Title: "Your Balance",
3779
3777
  Total: "Total Balance",
@@ -3973,7 +3971,7 @@ const An = {
3973
3971
  Loading: "Loading ..."
3974
3972
  }
3975
3973
  };
3976
- var nn = { exports: {} };
3974
+ var en = { exports: {} };
3977
3975
  /** @license
3978
3976
  * eventsource.js
3979
3977
  * Available under MIT License (MIT)
@@ -3981,22 +3979,22 @@ var nn = { exports: {} };
3981
3979
  */
3982
3980
  (function(e, t) {
3983
3981
  (function(n) {
3984
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, u = n.document, d = n.Promise, g = n.fetch, b = n.Response, _ = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
3985
- if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
3982
+ var r = n.setTimeout, i = n.clearTimeout, a = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, u = n.document, d = n.Promise, g = n.fetch, b = n.Response, _ = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
3983
+ if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(o) {
3986
3984
  u.readyState = "complete";
3987
- }, !1)), o == null && s != null && (o = function() {
3985
+ }, !1)), a == null && s != null && (a = function() {
3988
3986
  return new s("Microsoft.XMLHTTP");
3989
- }), Object.create == null && (Object.create = function(a) {
3987
+ }), Object.create == null && (Object.create = function(o) {
3990
3988
  function f() {
3991
3989
  }
3992
- return f.prototype = a, new f();
3990
+ return f.prototype = o, new f();
3993
3991
  }), Date.now || (Date.now = function() {
3994
3992
  return (/* @__PURE__ */ new Date()).getTime();
3995
3993
  }), T == null) {
3996
3994
  var x = g;
3997
- g = function(a, f) {
3995
+ g = function(o, f) {
3998
3996
  var p = f.signal;
3999
- return x(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(h) {
3997
+ return x(o, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(h) {
4000
3998
  var E = h.body.getReader();
4001
3999
  return p._reader = E, p._aborted && p._reader.cancel(), {
4002
4000
  status: h.status,
@@ -4021,46 +4019,46 @@ var nn = { exports: {} };
4021
4019
  function S() {
4022
4020
  this.bitsNeeded = 0, this.codePoint = 0;
4023
4021
  }
4024
- S.prototype.decode = function(a) {
4025
- function f(I, F, w) {
4022
+ S.prototype.decode = function(o) {
4023
+ function f(P, G, w) {
4026
4024
  if (w === 1)
4027
- return I >= 128 >> F && I << F <= 2047;
4025
+ return P >= 128 >> G && P << G <= 2047;
4028
4026
  if (w === 2)
4029
- return I >= 2048 >> F && I << F <= 55295 || I >= 57344 >> F && I << F <= 65535;
4027
+ return P >= 2048 >> G && P << G <= 55295 || P >= 57344 >> G && P << G <= 65535;
4030
4028
  if (w === 3)
4031
- return I >= 65536 >> F && I << F <= 1114111;
4029
+ return P >= 65536 >> G && P << G <= 1114111;
4032
4030
  throw new Error();
4033
4031
  }
4034
- function p(I, F) {
4035
- if (I === 6 * 1)
4036
- return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
4037
- if (I === 6 * 2)
4038
- return F > 15 ? 3 : 2;
4039
- if (I === 6 * 3)
4032
+ function p(P, G) {
4033
+ if (P === 6 * 1)
4034
+ return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
4035
+ if (P === 6 * 2)
4036
+ return G > 15 ? 3 : 2;
4037
+ if (P === 6 * 3)
4040
4038
  return 3;
4041
4039
  throw new Error();
4042
4040
  }
4043
- for (var h = 65533, E = "", v = this.bitsNeeded, m = this.codePoint, R = 0; R < a.length; R += 1) {
4044
- var A = a[R];
4041
+ for (var h = 65533, E = "", v = this.bitsNeeded, m = this.codePoint, R = 0; R < o.length; R += 1) {
4042
+ var A = o[R];
4045
4043
  v !== 0 && (A < 128 || A > 191 || !f(m << 6 | A & 63, v - 6, p(v, m))) && (v = 0, m = h, E += String.fromCharCode(m)), v === 0 ? (A >= 0 && A <= 127 ? (v = 0, m = A) : A >= 192 && A <= 223 ? (v = 6 * 1, m = A & 31) : A >= 224 && A <= 239 ? (v = 6 * 2, m = A & 15) : A >= 240 && A <= 247 ? (v = 6 * 3, m = A & 7) : (v = 0, m = h), v !== 0 && !f(m, v, p(v, m)) && (v = 0, m = h)) : (v -= 6, m = m << 6 | A & 63), v === 0 && (m <= 65535 ? E += String.fromCharCode(m) : (E += String.fromCharCode(55296 + (m - 65535 - 1 >> 10)), E += String.fromCharCode(56320 + (m - 65535 - 1 & 1023))));
4046
4044
  }
4047
4045
  return this.bitsNeeded = v, this.codePoint = m, E;
4048
4046
  };
4049
- var P = function() {
4047
+ var D = function() {
4050
4048
  try {
4051
4049
  return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
4052
- } catch (a) {
4053
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
4050
+ } catch (o) {
4051
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + o);
4054
4052
  }
4055
4053
  return !1;
4056
4054
  };
4057
- (_ == null || B == null || !P()) && (_ = S);
4055
+ (_ == null || B == null || !D()) && (_ = S);
4058
4056
  var C = function() {
4059
4057
  };
4060
- function D(a) {
4061
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = C, this.onload = C, this.onerror = C, this.onreadystatechange = C, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = C;
4058
+ function U(o) {
4059
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = C, this.onload = C, this.onerror = C, this.onreadystatechange = C, this._contentType = "", this._xhr = o, this._sendTimeout = 0, this._abort = C;
4062
4060
  }
4063
- D.prototype.open = function(a, f) {
4061
+ U.prototype.open = function(o, f) {
4064
4062
  this._abort(!0);
4065
4063
  var p = this, h = this._xhr, E = 1, v = 0;
4066
4064
  this._abort = function(w) {
@@ -4068,16 +4066,16 @@ var nn = { exports: {} };
4068
4066
  };
4069
4067
  var m = function() {
4070
4068
  if (E === 1) {
4071
- var w = 0, V = "", ye = void 0;
4069
+ var w = 0, X = "", be = void 0;
4072
4070
  if ("contentType" in h)
4073
- w = 200, V = "OK", ye = h.contentType;
4071
+ w = 200, X = "OK", be = h.contentType;
4074
4072
  else
4075
4073
  try {
4076
- w = h.status, V = h.statusText, ye = h.getResponseHeader("Content-Type");
4077
- } catch (Ye) {
4078
- w = 0, V = "", ye = void 0;
4074
+ w = h.status, X = h.statusText, be = h.getResponseHeader("Content-Type");
4075
+ } catch (Je) {
4076
+ w = 0, X = "", be = void 0;
4079
4077
  }
4080
- w !== 0 && (E = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = ye, p.onreadystatechange());
4078
+ w !== 0 && (E = 2, p.readyState = 2, p.status = w, p.statusText = X, p._contentType = be, p.onreadystatechange());
4081
4079
  }
4082
4080
  }, R = function() {
4083
4081
  if (m(), E === 2 || E === 3) {
@@ -4085,29 +4083,29 @@ var nn = { exports: {} };
4085
4083
  var w = "";
4086
4084
  try {
4087
4085
  w = h.responseText;
4088
- } catch (V) {
4086
+ } catch (X) {
4089
4087
  }
4090
4088
  p.readyState = 3, p.responseText = w, p.onprogress();
4091
4089
  }
4092
- }, A = function(w, V) {
4093
- if ((V == null || V.preventDefault == null) && (V = {
4090
+ }, A = function(w, X) {
4091
+ if ((X == null || X.preventDefault == null) && (X = {
4094
4092
  preventDefault: C
4095
4093
  }), R(), E === 1 || E === 2 || E === 3) {
4096
4094
  if (E = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, w === "load")
4097
- p.onload(V);
4095
+ p.onload(X);
4098
4096
  else if (w === "error")
4099
- p.onerror(V);
4097
+ p.onerror(X);
4100
4098
  else if (w === "abort")
4101
- p.onabort(V);
4099
+ p.onabort(X);
4102
4100
  else
4103
4101
  throw new TypeError();
4104
4102
  p.onreadystatechange();
4105
4103
  }
4106
- }, I = function(w) {
4104
+ }, P = function(w) {
4107
4105
  h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && A(h.responseText === "" ? "error" : "load", w) : h.readyState === 3 ? "onprogress" in h || R() : h.readyState === 2 && m());
4108
- }, F = function() {
4106
+ }, G = function() {
4109
4107
  v = r(function() {
4110
- F();
4108
+ G();
4111
4109
  }, 500), h.readyState === 3 && R();
4112
4110
  };
4113
4111
  "onload" in h && (h.onload = function(w) {
@@ -4117,24 +4115,24 @@ var nn = { exports: {} };
4117
4115
  }), "onabort" in h && (h.onabort = function(w) {
4118
4116
  A("abort", w);
4119
4117
  }), "onprogress" in h && (h.onprogress = R), "onreadystatechange" in h && (h.onreadystatechange = function(w) {
4120
- I(w);
4121
- }), ("contentType" in h || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(a, f, !0), "readyState" in h && (v = r(function() {
4122
- F();
4118
+ P(w);
4119
+ }), ("contentType" in h || !("ontimeout" in a.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(o, f, !0), "readyState" in h && (v = r(function() {
4120
+ G();
4123
4121
  }, 0));
4124
- }, D.prototype.abort = function() {
4122
+ }, U.prototype.abort = function() {
4125
4123
  this._abort(!1);
4126
- }, D.prototype.getResponseHeader = function(a) {
4124
+ }, U.prototype.getResponseHeader = function(o) {
4127
4125
  return this._contentType;
4128
- }, D.prototype.setRequestHeader = function(a, f) {
4126
+ }, U.prototype.setRequestHeader = function(o, f) {
4129
4127
  var p = this._xhr;
4130
- "setRequestHeader" in p && p.setRequestHeader(a, f);
4131
- }, D.prototype.getAllResponseHeaders = function() {
4128
+ "setRequestHeader" in p && p.setRequestHeader(o, f);
4129
+ }, U.prototype.getAllResponseHeaders = function() {
4132
4130
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4133
- }, D.prototype.send = function() {
4134
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4135
- var a = this;
4136
- a._sendTimeout = r(function() {
4137
- a._sendTimeout = 0, a.send();
4131
+ }, U.prototype.send = function() {
4132
+ if ((!("ontimeout" in a.prototype) || !("sendAsBinary" in a.prototype) && !("mozAnon" in a.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4133
+ var o = this;
4134
+ o._sendTimeout = r(function() {
4135
+ o._sendTimeout = 0, o.send();
4138
4136
  }, 4);
4139
4137
  return;
4140
4138
  }
@@ -4146,76 +4144,76 @@ var nn = { exports: {} };
4146
4144
  throw p;
4147
4145
  }
4148
4146
  };
4149
- function W(a) {
4150
- return a.replace(/[A-Z]/g, function(f) {
4147
+ function W(o) {
4148
+ return o.replace(/[A-Z]/g, function(f) {
4151
4149
  return String.fromCharCode(f.charCodeAt(0) + 32);
4152
4150
  });
4153
4151
  }
4154
- function J(a) {
4155
- for (var f = /* @__PURE__ */ Object.create(null), p = a.split(`\r
4152
+ function J(o) {
4153
+ for (var f = /* @__PURE__ */ Object.create(null), p = o.split(`\r
4156
4154
  `), h = 0; h < p.length; h += 1) {
4157
4155
  var E = p[h], v = E.split(": "), m = v.shift(), R = v.join(": ");
4158
4156
  f[W(m)] = R;
4159
4157
  }
4160
4158
  this._map = f;
4161
4159
  }
4162
- J.prototype.get = function(a) {
4163
- return this._map[W(a)];
4164
- }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4160
+ J.prototype.get = function(o) {
4161
+ return this._map[W(o)];
4162
+ }, a != null && a.HEADERS_RECEIVED == null && (a.HEADERS_RECEIVED = 2);
4165
4163
  function Y() {
4166
4164
  }
4167
- Y.prototype.open = function(a, f, p, h, E, v, m) {
4168
- a.open("GET", E);
4165
+ Y.prototype.open = function(o, f, p, h, E, v, m) {
4166
+ o.open("GET", E);
4169
4167
  var R = 0;
4170
- a.onprogress = function() {
4171
- var I = a.responseText, F = I.slice(R);
4172
- R += F.length, p(F);
4173
- }, a.onerror = function(I) {
4174
- I.preventDefault(), h(new Error("NetworkError"));
4175
- }, a.onload = function() {
4168
+ o.onprogress = function() {
4169
+ var P = o.responseText, G = P.slice(R);
4170
+ R += G.length, p(G);
4171
+ }, o.onerror = function(P) {
4172
+ P.preventDefault(), h(new Error("NetworkError"));
4173
+ }, o.onload = function() {
4176
4174
  h(null);
4177
- }, a.onabort = function() {
4175
+ }, o.onabort = function() {
4178
4176
  h(null);
4179
- }, a.onreadystatechange = function() {
4180
- if (a.readyState === o.HEADERS_RECEIVED) {
4181
- var I = a.status, F = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
4182
- f(I, F, w, new J(V));
4177
+ }, o.onreadystatechange = function() {
4178
+ if (o.readyState === a.HEADERS_RECEIVED) {
4179
+ var P = o.status, G = o.statusText, w = o.getResponseHeader("Content-Type"), X = o.getAllResponseHeaders();
4180
+ f(P, G, w, new J(X));
4183
4181
  }
4184
- }, a.withCredentials = v;
4182
+ }, o.withCredentials = v;
4185
4183
  for (var A in m)
4186
- Object.prototype.hasOwnProperty.call(m, A) && a.setRequestHeader(A, m[A]);
4187
- return a.send(), a;
4184
+ Object.prototype.hasOwnProperty.call(m, A) && o.setRequestHeader(A, m[A]);
4185
+ return o.send(), o;
4188
4186
  };
4189
- function G(a) {
4190
- this._headers = a;
4187
+ function $(o) {
4188
+ this._headers = o;
4191
4189
  }
4192
- G.prototype.get = function(a) {
4193
- return this._headers.get(a);
4190
+ $.prototype.get = function(o) {
4191
+ return this._headers.get(o);
4194
4192
  };
4195
- function N() {
4193
+ function I() {
4196
4194
  }
4197
- N.prototype.open = function(a, f, p, h, E, v, m) {
4198
- var R = null, A = new T(), I = A.signal, F = new _();
4195
+ I.prototype.open = function(o, f, p, h, E, v, m) {
4196
+ var R = null, A = new T(), P = A.signal, G = new _();
4199
4197
  return g(E, {
4200
4198
  headers: m,
4201
4199
  credentials: v ? "include" : "same-origin",
4202
- signal: I,
4200
+ signal: P,
4203
4201
  cache: "no-store"
4204
4202
  }).then(function(w) {
4205
- return R = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new G(w.headers)), new d(function(V, ye) {
4206
- var Ye = function() {
4203
+ return R = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new $(w.headers)), new d(function(X, be) {
4204
+ var Je = function() {
4207
4205
  R.read().then(function(ie) {
4208
4206
  if (ie.done)
4209
- V(void 0);
4207
+ X(void 0);
4210
4208
  else {
4211
- var K = F.decode(ie.value, { stream: !0 });
4212
- p(K), Ye();
4209
+ var K = G.decode(ie.value, { stream: !0 });
4210
+ p(K), Je();
4213
4211
  }
4214
4212
  }).catch(function(ie) {
4215
- ye(ie);
4213
+ be(ie);
4216
4214
  });
4217
4215
  };
4218
- Ye();
4216
+ Je();
4219
4217
  });
4220
4218
  }).catch(function(w) {
4221
4219
  if (w.name !== "AbortError")
@@ -4228,197 +4226,197 @@ var nn = { exports: {} };
4228
4226
  }
4229
4227
  };
4230
4228
  };
4231
- function $() {
4229
+ function j() {
4232
4230
  this._listeners = /* @__PURE__ */ Object.create(null);
4233
4231
  }
4234
- function U(a) {
4232
+ function F(o) {
4235
4233
  r(function() {
4236
- throw a;
4234
+ throw o;
4237
4235
  }, 0);
4238
4236
  }
4239
- $.prototype.dispatchEvent = function(a) {
4240
- a.target = this;
4241
- var f = this._listeners[a.type];
4237
+ j.prototype.dispatchEvent = function(o) {
4238
+ o.target = this;
4239
+ var f = this._listeners[o.type];
4242
4240
  if (f != null)
4243
4241
  for (var p = f.length, h = 0; h < p; h += 1) {
4244
4242
  var E = f[h];
4245
4243
  try {
4246
- typeof E.handleEvent == "function" ? E.handleEvent(a) : E.call(this, a);
4244
+ typeof E.handleEvent == "function" ? E.handleEvent(o) : E.call(this, o);
4247
4245
  } catch (v) {
4248
- U(v);
4246
+ F(v);
4249
4247
  }
4250
4248
  }
4251
- }, $.prototype.addEventListener = function(a, f) {
4252
- a = String(a);
4253
- var p = this._listeners, h = p[a];
4254
- h == null && (h = [], p[a] = h);
4249
+ }, j.prototype.addEventListener = function(o, f) {
4250
+ o = String(o);
4251
+ var p = this._listeners, h = p[o];
4252
+ h == null && (h = [], p[o] = h);
4255
4253
  for (var E = !1, v = 0; v < h.length; v += 1)
4256
4254
  h[v] === f && (E = !0);
4257
4255
  E || h.push(f);
4258
- }, $.prototype.removeEventListener = function(a, f) {
4259
- a = String(a);
4260
- var p = this._listeners, h = p[a];
4256
+ }, j.prototype.removeEventListener = function(o, f) {
4257
+ o = String(o);
4258
+ var p = this._listeners, h = p[o];
4261
4259
  if (h != null) {
4262
4260
  for (var E = [], v = 0; v < h.length; v += 1)
4263
4261
  h[v] !== f && E.push(h[v]);
4264
- E.length === 0 ? delete p[a] : p[a] = E;
4262
+ E.length === 0 ? delete p[o] : p[o] = E;
4265
4263
  }
4266
4264
  };
4267
- function y(a) {
4268
- this.type = a, this.target = void 0;
4265
+ function y(o) {
4266
+ this.type = o, this.target = void 0;
4269
4267
  }
4270
- function Be(a, f) {
4271
- y.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
4268
+ function _e(o, f) {
4269
+ y.call(this, o), this.data = f.data, this.lastEventId = f.lastEventId;
4272
4270
  }
4273
- Be.prototype = Object.create(y.prototype);
4274
- function qe(a, f) {
4275
- y.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
4271
+ _e.prototype = Object.create(y.prototype);
4272
+ function Ze(o, f) {
4273
+ y.call(this, o), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
4276
4274
  }
4277
- qe.prototype = Object.create(y.prototype);
4278
- function Te(a, f) {
4279
- y.call(this, a), this.error = f.error;
4275
+ Ze.prototype = Object.create(y.prototype);
4276
+ function Be(o, f) {
4277
+ y.call(this, o), this.error = f.error;
4280
4278
  }
4281
- Te.prototype = Object.create(y.prototype);
4282
- var Le = -1, me = 0, we = 1, Ce = 2, He = -1, ue = 0, Qe = 1, Me = 2, at = 3, St = /^text\/event\-stream(;.*)?$/i, st = 1e3, At = 18e6, Je = function(a, f) {
4283
- var p = a == null ? f : parseInt(a, 10);
4284
- return p !== p && (p = f), Ne(p);
4285
- }, Ne = function(a) {
4286
- return Math.min(Math.max(a, st), At);
4287
- }, Se = function(a, f, p) {
4279
+ Be.prototype = Object.create(y.prototype);
4280
+ var Re = -1, me = 0, Te = 1, Ae = 2, Ce = -1, ue = 0, qe = 1, Le = 2, at = 3, Tt = /^text\/event\-stream(;.*)?$/i, ot = 1e3, wt = 18e6, Qe = function(o, f) {
4281
+ var p = o == null ? f : parseInt(o, 10);
4282
+ return p !== p && (p = f), Me(p);
4283
+ }, Me = function(o) {
4284
+ return Math.min(Math.max(o, ot), wt);
4285
+ }, we = function(o, f, p) {
4288
4286
  try {
4289
- typeof f == "function" && f.call(a, p);
4287
+ typeof f == "function" && f.call(o, p);
4290
4288
  } catch (h) {
4291
- U(h);
4289
+ F(h);
4292
4290
  }
4293
4291
  };
4294
- function re(a, f) {
4295
- $.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, Ot(this, a, f);
4292
+ function re(o, f) {
4293
+ j.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, Ct(this, o, f);
4296
4294
  }
4297
- function Ct() {
4298
- return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
4295
+ function St() {
4296
+ return a != null && "withCredentials" in a.prototype || l == null ? new a() : new l();
4299
4297
  }
4300
- var Ht = g != null && b != null && "body" in b.prototype;
4301
- function Ot(a, f, p) {
4298
+ var At = g != null && b != null && "body" in b.prototype;
4299
+ function Ct(o, f, p) {
4302
4300
  f = String(f);
4303
- var h = !!p.withCredentials, E = p.lastEventIdQueryParameterName || "lastEventId", v = Ne(1e3), m = Je(p.heartbeatTimeout, 45e3), R = "", A = v, I = !1, F = 0, w = p.headers || {}, V = p.Transport, ye = Ht && V == null ? void 0 : new D(V != null ? new V() : Ct()), Ye = V != null && typeof V != "string" ? new V() : ye == null ? new N() : new Y(), ie = void 0, K = 0, ce = Le, Ie = "", ut = "", ve = "", ct = "", ee = ue, Rt = 0, Oe = 0, cr = function(Z, z, oe, ae) {
4301
+ var h = !!p.withCredentials, E = p.lastEventIdQueryParameterName || "lastEventId", v = Me(1e3), m = Qe(p.heartbeatTimeout, 45e3), R = "", A = v, P = !1, G = 0, w = p.headers || {}, X = p.Transport, be = At && X == null ? void 0 : new U(X != null ? new X() : St()), Je = X != null && typeof X != "string" ? new X() : be == null ? new I() : new Y(), ie = void 0, K = 0, ce = Re, Ne = "", lt = "", ye = "", ut = "", ee = ue, Ht = 0, He = 0, ur = function(Z, z, ae, oe) {
4304
4302
  if (ce === me)
4305
- if (Z === 200 && oe != null && St.test(oe)) {
4306
- ce = we, I = Date.now(), A = v, a.readyState = we;
4307
- var te = new qe("open", {
4303
+ if (Z === 200 && ae != null && Tt.test(ae)) {
4304
+ ce = Te, P = Date.now(), A = v, o.readyState = Te;
4305
+ var te = new Ze("open", {
4308
4306
  status: Z,
4309
4307
  statusText: z,
4310
- headers: ae
4308
+ headers: oe
4311
4309
  });
4312
- a.dispatchEvent(te), Se(a, a.onopen, te);
4310
+ o.dispatchEvent(te), we(o, o.onopen, te);
4313
4311
  } else {
4314
4312
  var q = "";
4315
- 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.", Lt();
4316
- var te = new qe("error", {
4313
+ 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.", Ot();
4314
+ var te = new Ze("error", {
4317
4315
  status: Z,
4318
4316
  statusText: z,
4319
- headers: ae
4317
+ headers: oe
4320
4318
  });
4321
- a.dispatchEvent(te), Se(a, a.onerror, te), console.error(q);
4319
+ o.dispatchEvent(te), we(o, o.onerror, te), console.error(q);
4322
4320
  }
4323
- }, hr = function(Z) {
4324
- if (ce === we) {
4325
- for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
4326
- var ae = Z.charCodeAt(oe);
4327
- (ae === 10 || ae === 13) && (z = oe);
4321
+ }, cr = function(Z) {
4322
+ if (ce === Te) {
4323
+ for (var z = -1, ae = 0; ae < Z.length; ae += 1) {
4324
+ var oe = Z.charCodeAt(ae);
4325
+ (oe === 10 || oe === 13) && (z = ae);
4328
4326
  }
4329
- var te = (z !== -1 ? ct : "") + Z.slice(0, z + 1);
4330
- ct = (z === -1 ? ct : "") + Z.slice(z + 1), Z !== "" && (I = Date.now(), F += Z.length);
4327
+ var te = (z !== -1 ? ut : "") + Z.slice(0, z + 1);
4328
+ ut = (z === -1 ? ut : "") + Z.slice(z + 1), Z !== "" && (P = Date.now(), G += Z.length);
4331
4329
  for (var q = 0; q < te.length; q += 1) {
4332
- var ae = te.charCodeAt(q);
4333
- if (ee === He && ae === 10)
4330
+ var oe = te.charCodeAt(q);
4331
+ if (ee === Ce && oe === 10)
4334
4332
  ee = ue;
4335
- else if (ee === He && (ee = ue), ae === 13 || ae === 10) {
4333
+ else if (ee === Ce && (ee = ue), oe === 13 || oe === 10) {
4336
4334
  if (ee !== ue) {
4337
- ee === Qe && (Oe = q + 1);
4338
- var Ee = te.slice(Rt, Oe - 1), xe = te.slice(Oe + (Oe < q && te.charCodeAt(Oe) === 32 ? 1 : 0), q);
4339
- Ee === "data" ? (Ie += `
4340
- `, Ie += xe) : Ee === "id" ? ut = xe : Ee === "event" ? ve = xe : Ee === "retry" ? (v = Je(xe, v), A = v) : Ee === "heartbeatTimeout" && (m = Je(xe, m), K !== 0 && (i(K), K = r(function() {
4341
- Ke();
4335
+ ee === qe && (He = q + 1);
4336
+ var ve = te.slice(Ht, He - 1), Ee = te.slice(He + (He < q && te.charCodeAt(He) === 32 ? 1 : 0), q);
4337
+ ve === "data" ? (Ne += `
4338
+ `, Ne += Ee) : ve === "id" ? lt = Ee : ve === "event" ? ye = Ee : ve === "retry" ? (v = Qe(Ee, v), A = v) : ve === "heartbeatTimeout" && (m = Qe(Ee, m), K !== 0 && (i(K), K = r(function() {
4339
+ Ye();
4342
4340
  }, m)));
4343
4341
  }
4344
4342
  if (ee === ue) {
4345
- if (Ie !== "") {
4346
- R = ut, ve === "" && (ve = "message");
4347
- var Pe = new Be(ve, {
4348
- data: Ie.slice(1),
4349
- lastEventId: ut
4343
+ if (Ne !== "") {
4344
+ R = lt, ye === "" && (ye = "message");
4345
+ var Ie = new _e(ye, {
4346
+ data: Ne.slice(1),
4347
+ lastEventId: lt
4350
4348
  });
4351
- if (a.dispatchEvent(Pe), ve === "open" ? Se(a, a.onopen, Pe) : ve === "message" ? Se(a, a.onmessage, Pe) : ve === "error" && Se(a, a.onerror, Pe), ce === Ce)
4349
+ if (o.dispatchEvent(Ie), ye === "open" ? we(o, o.onopen, Ie) : ye === "message" ? we(o, o.onmessage, Ie) : ye === "error" && we(o, o.onerror, Ie), ce === Ae)
4352
4350
  return;
4353
4351
  }
4354
- Ie = "", ve = "";
4352
+ Ne = "", ye = "";
4355
4353
  }
4356
- ee = ae === 13 ? He : ue;
4354
+ ee = oe === 13 ? Ce : ue;
4357
4355
  } else
4358
- ee === ue && (Rt = q, ee = Qe), ee === Qe ? ae === 58 && (Oe = q + 1, ee = Me) : ee === Me && (ee = at);
4356
+ ee === ue && (Ht = q, ee = qe), ee === qe ? oe === 58 && (He = q + 1, ee = Le) : ee === Le && (ee = at);
4359
4357
  }
4360
4358
  }
4361
- }, ln = function(Z) {
4362
- if (ce === we || ce === me) {
4363
- ce = Le, K !== 0 && (i(K), K = 0), K = r(function() {
4364
- Ke();
4365
- }, A), A = Ne(Math.min(v * 16, A * 2)), a.readyState = me;
4366
- var z = new Te("error", { error: Z });
4367
- a.dispatchEvent(z), Se(a, a.onerror, z), Z != null && console.error(Z);
4359
+ }, sn = function(Z) {
4360
+ if (ce === Te || ce === me) {
4361
+ ce = Re, K !== 0 && (i(K), K = 0), K = r(function() {
4362
+ Ye();
4363
+ }, A), A = Me(Math.min(v * 16, A * 2)), o.readyState = me;
4364
+ var z = new Be("error", { error: Z });
4365
+ o.dispatchEvent(z), we(o, o.onerror, z), Z != null && console.error(Z);
4368
4366
  }
4369
- }, Lt = function() {
4370
- ce = Ce, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ce;
4371
- }, Ke = function() {
4372
- if (K = 0, ce !== Le) {
4373
- if (!I && ie != null)
4374
- ln(new Error("No activity within " + m + " milliseconds. " + (ce === me ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4367
+ }, Ot = function() {
4368
+ ce = Ae, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), o.readyState = Ae;
4369
+ }, Ye = function() {
4370
+ if (K = 0, ce !== Re) {
4371
+ if (!P && ie != null)
4372
+ sn(new Error("No activity within " + m + " milliseconds. " + (ce === me ? "No response received." : G + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4375
4373
  else {
4376
- var Z = Math.max((I || Date.now()) + m - Date.now(), 1);
4377
- I = !1, K = r(function() {
4378
- Ke();
4374
+ var Z = Math.max((P || Date.now()) + m - Date.now(), 1);
4375
+ P = !1, K = r(function() {
4376
+ Ye();
4379
4377
  }, Z);
4380
4378
  }
4381
4379
  return;
4382
4380
  }
4383
- I = !1, F = 0, K = r(function() {
4384
- Ke();
4385
- }, m), ce = me, Ie = "", ve = "", ut = R, ct = "", Rt = 0, Oe = 0, ee = ue;
4381
+ P = !1, G = 0, K = r(function() {
4382
+ Ye();
4383
+ }, m), ce = me, Ne = "", ye = "", lt = R, ut = "", Ht = 0, He = 0, ee = ue;
4386
4384
  var z = f;
4387
4385
  if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && R !== "") {
4388
- var oe = f.indexOf("?");
4389
- z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Pe) {
4390
- return Pe === E ? "" : xe;
4386
+ var ae = f.indexOf("?");
4387
+ z = ae === -1 ? f : f.slice(0, ae + 1) + f.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Ie) {
4388
+ return Ie === E ? "" : Ee;
4391
4389
  }), z += (f.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(R);
4392
4390
  }
4393
- var ae = a.withCredentials, te = {};
4391
+ var oe = o.withCredentials, te = {};
4394
4392
  te.Accept = "text/event-stream";
4395
- var q = a.headers;
4393
+ var q = o.headers;
4396
4394
  if (q != null)
4397
- for (var Ee in q)
4398
- Object.prototype.hasOwnProperty.call(q, Ee) && (te[Ee] = q[Ee]);
4395
+ for (var ve in q)
4396
+ Object.prototype.hasOwnProperty.call(q, ve) && (te[ve] = q[ve]);
4399
4397
  try {
4400
- ie = Ye.open(ye, cr, hr, ln, z, ae, te);
4401
- } catch (xe) {
4402
- throw Lt(), xe;
4398
+ ie = Je.open(be, ur, cr, sn, z, oe, te);
4399
+ } catch (Ee) {
4400
+ throw Ot(), Ee;
4403
4401
  }
4404
4402
  };
4405
- a.url = f, a.readyState = me, a.withCredentials = h, a.headers = w, a._close = Lt, Ke();
4403
+ o.url = f, o.readyState = me, o.withCredentials = h, o.headers = w, o._close = Ot, Ye();
4406
4404
  }
4407
- re.prototype = Object.create($.prototype), re.prototype.CONNECTING = me, re.prototype.OPEN = we, re.prototype.CLOSED = Ce, re.prototype.close = function() {
4405
+ re.prototype = Object.create(j.prototype), re.prototype.CONNECTING = me, re.prototype.OPEN = Te, re.prototype.CLOSED = Ae, re.prototype.close = function() {
4408
4406
  this._close();
4409
- }, re.CONNECTING = me, re.OPEN = we, re.CLOSED = Ce, re.prototype.withCredentials = void 0;
4410
- var lt = c;
4411
- o != null && (c == null || !("withCredentials" in c.prototype)) && (lt = re), function(a) {
4407
+ }, re.CONNECTING = me, re.OPEN = Te, re.CLOSED = Ae, re.prototype.withCredentials = void 0;
4408
+ var st = c;
4409
+ a != null && (c == null || !("withCredentials" in c.prototype)) && (st = re), function(o) {
4412
4410
  {
4413
- var f = a(t);
4411
+ var f = o(t);
4414
4412
  f !== void 0 && (e.exports = f);
4415
4413
  }
4416
- }(function(a) {
4417
- a.EventSourcePolyfill = re, a.NativeEventSource = c, a.EventSource = lt;
4414
+ }(function(o) {
4415
+ o.EventSourcePolyfill = re, o.NativeEventSource = c, o.EventSource = st;
4418
4416
  });
4419
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Vr : globalThis);
4420
- })(nn, nn.exports);
4421
- var No = nn.exports;
4417
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : kr : globalThis);
4418
+ })(en, en.exports);
4419
+ var La = en.exports;
4422
4420
  /*!
4423
4421
  * currency.js - v2.0.4
4424
4422
  * http://scurker.github.io/currency.js
@@ -4426,7 +4424,7 @@ var No = nn.exports;
4426
4424
  * Copyright (c) 2021 Jason Wilson
4427
4425
  * Released under MIT license
4428
4426
  */
4429
- var Io = {
4427
+ var Ma = {
4430
4428
  symbol: "$",
4431
4429
  separator: ",",
4432
4430
  decimal: ".",
@@ -4434,24 +4432,24 @@ var Io = {
4434
4432
  precision: 2,
4435
4433
  pattern: "!#",
4436
4434
  negativePattern: "-!#",
4437
- format: Fo,
4435
+ format: Da,
4438
4436
  fromCents: !1
4439
- }, ur = function(t) {
4437
+ }, lr = function(t) {
4440
4438
  return Math.round(t);
4441
- }, sn = function(t) {
4439
+ }, on = function(t) {
4442
4440
  return Math.pow(10, t);
4443
- }, Po = function(t, n) {
4444
- return ur(t / n) * n;
4445
- }, Do = /(\d)(?=(\d{3})+\b)/g, Uo = /(\d)(?=(\d\d)+\d\b)/g;
4441
+ }, Na = function(t, n) {
4442
+ return lr(t / n) * n;
4443
+ }, Ia = /(\d)(?=(\d{3})+\b)/g, Pa = /(\d)(?=(\d\d)+\d\b)/g;
4446
4444
  function he(e, t) {
4447
4445
  var n = this;
4448
4446
  if (!(n instanceof he))
4449
4447
  return new he(e, t);
4450
- var r = Object.assign({}, Io, t), i = sn(r.precision), o = mt(e, r);
4451
- n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Uo : r.groups = Do, this.s = r, this.p = i;
4448
+ var r = Object.assign({}, Ma, t), i = on(r.precision), a = pt(e, r);
4449
+ n.intValue = a, n.value = a / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Pa : r.groups = Ia, this.s = r, this.p = i;
4452
4450
  }
4453
- function mt(e, t) {
4454
- 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, c = sn(l), u = typeof e == "number", d = e instanceof he;
4451
+ function pt(e, t) {
4452
+ 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, c = on(l), u = typeof e == "number", d = e instanceof he;
4455
4453
  if (d && s)
4456
4454
  return e.intValue;
4457
4455
  if (u || d)
@@ -4460,15 +4458,15 @@ function mt(e, t) {
4460
4458
  var g = new RegExp("[^-\\d" + i + "]", "g"), b = new RegExp("\\" + i, "g");
4461
4459
  r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(b, "."), r = r || 0;
4462
4460
  } else {
4463
- if (o)
4461
+ if (a)
4464
4462
  throw Error("Invalid Input");
4465
4463
  r = 0;
4466
4464
  }
4467
- return s || (r *= c, r = r.toFixed(4)), n ? ur(r) : r;
4465
+ return s || (r *= c, r = r.toFixed(4)), n ? lr(r) : r;
4468
4466
  }
4469
- function Fo(e, t) {
4470
- var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], d = c[1];
4471
- return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
4467
+ function Da(e, t) {
4468
+ var n = t.pattern, r = t.negativePattern, i = t.symbol, a = t.separator, l = t.decimal, s = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], d = c[1];
4469
+ return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + a) + (d ? l + d : ""));
4472
4470
  }
4473
4471
  he.prototype = {
4474
4472
  /**
@@ -4478,7 +4476,7 @@ he.prototype = {
4478
4476
  */
4479
4477
  add: function(t) {
4480
4478
  var n = this.intValue, r = this.s, i = this.p;
4481
- return he((n += mt(t, r)) / (r.fromCents ? 1 : i), r);
4479
+ return he((n += pt(t, r)) / (r.fromCents ? 1 : i), r);
4482
4480
  },
4483
4481
  /**
4484
4482
  * Subtracts value.
@@ -4487,7 +4485,7 @@ he.prototype = {
4487
4485
  */
4488
4486
  subtract: function(t) {
4489
4487
  var n = this.intValue, r = this.s, i = this.p;
4490
- return he((n -= mt(t, r)) / (r.fromCents ? 1 : i), r);
4488
+ return he((n -= pt(t, r)) / (r.fromCents ? 1 : i), r);
4491
4489
  },
4492
4490
  /**
4493
4491
  * Multiplies values.
@@ -4496,7 +4494,7 @@ he.prototype = {
4496
4494
  */
4497
4495
  multiply: function(t) {
4498
4496
  var n = this.intValue, r = this.s;
4499
- return he((n *= t) / (r.fromCents ? 1 : sn(r.precision)), r);
4497
+ return he((n *= t) / (r.fromCents ? 1 : on(r.precision)), r);
4500
4498
  },
4501
4499
  /**
4502
4500
  * Divides value.
@@ -4505,7 +4503,7 @@ he.prototype = {
4505
4503
  */
4506
4504
  divide: function(t) {
4507
4505
  var n = this.intValue, r = this.s;
4508
- return he(n /= mt(t, r, !1), r);
4506
+ return he(n /= pt(t, r, !1), r);
4509
4507
  },
4510
4508
  /**
4511
4509
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -4514,11 +4512,11 @@ he.prototype = {
4514
4512
  * @returns {array}
4515
4513
  */
4516
4514
  distribute: function(t) {
4517
- 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), c = i.fromCents ? 1 : r; t !== 0; t--) {
4515
+ 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), c = i.fromCents ? 1 : r; t !== 0; t--) {
4518
4516
  var u = he(l / c, i);
4519
- s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)), o.push(u);
4517
+ s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)), a.push(u);
4520
4518
  }
4521
- return o;
4519
+ return a;
4522
4520
  },
4523
4521
  /**
4524
4522
  * Returns the dollar value.
@@ -4550,7 +4548,7 @@ he.prototype = {
4550
4548
  */
4551
4549
  toString: function() {
4552
4550
  var t = this.intValue, n = this.p, r = this.s;
4553
- return Po(t / n, r.increment).toFixed(r.precision);
4551
+ return Na(t / n, r.increment).toFixed(r.precision);
4554
4552
  },
4555
4553
  /**
4556
4554
  * Value for JSON serialization.
@@ -4560,18 +4558,18 @@ he.prototype = {
4560
4558
  return this.value;
4561
4559
  }
4562
4560
  };
4563
- function Go(e) {
4564
- vr(e, "svelte-lfsn3o", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4561
+ function Ua(e) {
4562
+ yr(e, "svelte-lfsn3o", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4565
4563
  }
4566
- function Cn(e, t, n) {
4564
+ function An(e, t, n) {
4567
4565
  const r = e.slice();
4568
4566
  return r[50] = t[n], r;
4569
4567
  }
4570
- function Hn(e, t, n) {
4568
+ function Cn(e, t, n) {
4571
4569
  const r = e.slice();
4572
4570
  return r[53] = t[n], r;
4573
4571
  }
4574
- function $o(e) {
4572
+ function Fa(e) {
4575
4573
  let t, n, r = (
4576
4574
  /*balances*/
4577
4575
  (e[1].Total ? (
@@ -4581,28 +4579,28 @@ function $o(e) {
4581
4579
  e[1].Total[0].amount
4582
4580
  )
4583
4581
  ) : "0") + ""
4584
- ), i, o, l, s, c, u, d, g, b, _, B, T, x = (
4582
+ ), i, a, l, s, c, u, d, g, b, _, B, T, x = (
4585
4583
  /*showBalance*/
4586
- e[4] && On(e)
4584
+ e[4] && Hn(e)
4587
4585
  );
4588
4586
  return {
4589
4587
  c() {
4590
- t = k("button"), n = k("p"), i = fe(r), o = pe(), l = fe(
4588
+ t = V("button"), n = V("p"), i = fe(r), a = pe(), l = fe(
4591
4589
  /*currency*/
4592
4590
  e[5]
4593
- ), s = pe(), c = k("span"), u = hn("svg"), d = hn("path"), b = pe(), x && x.c(), _ = _r(), 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(c, "class", g = /*isModalDisplayed*/
4591
+ ), s = pe(), c = V("span"), u = cn("svg"), d = cn("path"), b = pe(), x && x.c(), _ = xr(), 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(c, "class", g = /*isModalDisplayed*/
4594
4592
  e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
4595
4593
  },
4596
- m(S, P) {
4597
- be(S, t, P), H(t, n), H(n, i), H(n, o), H(n, l), H(t, s), H(t, c), H(c, u), H(u, d), be(S, b, P), x && x.m(S, P), be(S, _, P), B || (T = gt(
4594
+ m(S, D) {
4595
+ ge(S, t, D), H(t, n), H(n, i), H(n, a), H(n, l), H(t, s), H(t, c), H(c, u), H(u, d), ge(S, b, D), x && x.m(S, D), ge(S, _, D), B || (T = mt(
4598
4596
  t,
4599
4597
  "click",
4600
4598
  /*click_handler*/
4601
4599
  e[25]
4602
4600
  ), B = !0);
4603
4601
  },
4604
- p(S, P) {
4605
- P[0] & /*balances*/
4602
+ p(S, D) {
4603
+ D[0] & /*balances*/
4606
4604
  2 && r !== (r = /*balances*/
4607
4605
  (S[1].Total ? (
4608
4606
  /*formatBalance*/
@@ -4610,79 +4608,79 @@ function $o(e) {
4610
4608
  /*balances*/
4611
4609
  S[1].Total[0].amount
4612
4610
  )
4613
- ) : "0") + "") && _e(i, r), P[0] & /*currency*/
4614
- 32 && _e(
4611
+ ) : "0") + "") && xe(i, r), D[0] & /*currency*/
4612
+ 32 && xe(
4615
4613
  l,
4616
4614
  /*currency*/
4617
4615
  S[5]
4618
- ), P[0] & /*isModalDisplayed*/
4616
+ ), D[0] & /*isModalDisplayed*/
4619
4617
  8 && g !== (g = /*isModalDisplayed*/
4620
4618
  S[3] ? "TriangleActive" : "TriangleInactive") && M(c, "class", g), /*showBalance*/
4621
- S[4] ? x ? x.p(S, P) : (x = On(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
4619
+ S[4] ? x ? x.p(S, D) : (x = Hn(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
4622
4620
  },
4623
4621
  d(S) {
4624
4622
  S && (de(t), de(b), de(_)), x && x.d(S), B = !1, T();
4625
4623
  }
4626
4624
  };
4627
4625
  }
4628
- function jo(e) {
4626
+ function Ga(e) {
4629
4627
  let t, n = (
4630
4628
  /*$_*/
4631
4629
  e[6]("Loading") + ""
4632
4630
  ), r;
4633
4631
  return {
4634
4632
  c() {
4635
- t = k("p"), r = fe(n), M(t, "class", "Loading");
4633
+ t = V("p"), r = fe(n), M(t, "class", "Loading");
4636
4634
  },
4637
- m(i, o) {
4638
- be(i, t, o), H(t, r);
4635
+ m(i, a) {
4636
+ ge(i, t, a), H(t, r);
4639
4637
  },
4640
- p(i, o) {
4641
- o[0] & /*$_*/
4638
+ p(i, a) {
4639
+ a[0] & /*$_*/
4642
4640
  64 && n !== (n = /*$_*/
4643
- i[6]("Loading") + "") && _e(r, n);
4641
+ i[6]("Loading") + "") && xe(r, n);
4644
4642
  },
4645
4643
  d(i) {
4646
4644
  i && de(t);
4647
4645
  }
4648
4646
  };
4649
4647
  }
4650
- function On(e) {
4651
- let t, n, r, i, o, l, s, c, u = (
4648
+ function Hn(e) {
4649
+ let t, n, r, i, a, l, s, c, u = (
4652
4650
  /*$_*/
4653
4651
  e[6]("Title") + ""
4654
4652
  ), d, g, b, _, B, T, x = (
4655
4653
  /*$_*/
4656
4654
  e[6]("DepositButton") + ""
4657
- ), S, P, C, D, W, J, Y = bt(Object.keys(
4655
+ ), S, D, C, U, W, J, Y = gt(Object.keys(
4658
4656
  /*balances*/
4659
4657
  e[1]
4660
- )), G = [];
4661
- for (let N = 0; N < Y.length; N += 1)
4662
- G[N] = Ln(Cn(e, Y, N));
4658
+ )), $ = [];
4659
+ for (let I = 0; I < Y.length; I += 1)
4660
+ $[I] = Rn(An(e, Y, I));
4663
4661
  return {
4664
4662
  c() {
4665
- t = k("div"), n = k("button"), i = pe(), o = k("div"), l = k("div"), s = k("div"), c = k("p"), d = fe(u), g = pe(), b = k("div");
4666
- for (let N = 0; N < G.length; N += 1)
4667
- G[N].c();
4668
- _ = pe(), B = k("div"), T = k("button"), S = fe(x), M(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
4669
- (e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(b, "class", "BalanceModalBody"), M(T, "class", "BalanceModalAction"), M(B, "class", "BalanceModalFooter"), M(l, "class", P = "ModalContent " + /*isModalDisplayed*/
4670
- (e[3] ? "Open" : "")), M(o, "class", C = "BalanceModal " + /*isModalDisplayed*/
4671
- (e[3] ? "Open" : "")), M(t, "class", D = "BalanceModalWrapper " + /*isModalDisplayed*/
4663
+ t = V("div"), n = V("button"), i = pe(), a = V("div"), l = V("div"), s = V("div"), c = V("p"), d = fe(u), g = pe(), b = V("div");
4664
+ for (let I = 0; I < $.length; I += 1)
4665
+ $[I].c();
4666
+ _ = pe(), B = V("div"), T = V("button"), S = fe(x), M(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
4667
+ (e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(b, "class", "BalanceModalBody"), M(T, "class", "BalanceModalAction"), M(B, "class", "BalanceModalFooter"), M(l, "class", D = "ModalContent " + /*isModalDisplayed*/
4668
+ (e[3] ? "Open" : "")), M(a, "class", C = "BalanceModal " + /*isModalDisplayed*/
4669
+ (e[3] ? "Open" : "")), M(t, "class", U = "BalanceModalWrapper " + /*isModalDisplayed*/
4672
4670
  (e[3] ? "Open" : ""));
4673
4671
  },
4674
- m(N, $) {
4675
- be(N, t, $), H(t, n), H(t, i), H(t, o), H(o, l), H(l, s), H(s, c), H(c, d), H(l, g), H(l, b);
4676
- for (let U = 0; U < G.length; U += 1)
4677
- G[U] && G[U].m(b, null);
4672
+ m(I, j) {
4673
+ ge(I, t, j), H(t, n), H(t, i), H(t, a), H(a, l), H(l, s), H(s, c), H(c, d), H(l, g), H(l, b);
4674
+ for (let F = 0; F < $.length; F += 1)
4675
+ $[F] && $[F].m(b, null);
4678
4676
  H(l, _), H(l, B), H(B, T), H(T, S), W || (J = [
4679
- gt(
4677
+ mt(
4680
4678
  n,
4681
4679
  "click",
4682
4680
  /*click_handler_1*/
4683
4681
  e[26]
4684
4682
  ),
4685
- gt(
4683
+ mt(
4686
4684
  T,
4687
4685
  "click",
4688
4686
  /*click_handler_2*/
@@ -4690,49 +4688,49 @@ function On(e) {
4690
4688
  )
4691
4689
  ], W = !0);
4692
4690
  },
4693
- p(N, $) {
4694
- if ($[0] & /*isModalDisplayed*/
4691
+ p(I, j) {
4692
+ if (j[0] & /*isModalDisplayed*/
4695
4693
  8 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
4696
- (N[3] ? "Open" : "")) && M(n, "class", r), $[0] & /*$_*/
4694
+ (I[3] ? "Open" : "")) && M(n, "class", r), j[0] & /*$_*/
4697
4695
  64 && u !== (u = /*$_*/
4698
- N[6]("Title") + "") && _e(d, u), $[0] & /*balances, currency, formatBalance, $_*/
4696
+ I[6]("Title") + "") && xe(d, u), j[0] & /*balances, currency, formatBalance, $_*/
4699
4697
  354) {
4700
- Y = bt(Object.keys(
4698
+ Y = gt(Object.keys(
4701
4699
  /*balances*/
4702
- N[1]
4700
+ I[1]
4703
4701
  ));
4704
- let U;
4705
- for (U = 0; U < Y.length; U += 1) {
4706
- const y = Cn(N, Y, U);
4707
- G[U] ? G[U].p(y, $) : (G[U] = Ln(y), G[U].c(), G[U].m(b, null));
4702
+ let F;
4703
+ for (F = 0; F < Y.length; F += 1) {
4704
+ const y = An(I, Y, F);
4705
+ $[F] ? $[F].p(y, j) : ($[F] = Rn(y), $[F].c(), $[F].m(b, null));
4708
4706
  }
4709
- for (; U < G.length; U += 1)
4710
- G[U].d(1);
4711
- G.length = Y.length;
4707
+ for (; F < $.length; F += 1)
4708
+ $[F].d(1);
4709
+ $.length = Y.length;
4712
4710
  }
4713
- $[0] & /*$_*/
4711
+ j[0] & /*$_*/
4714
4712
  64 && x !== (x = /*$_*/
4715
- N[6]("DepositButton") + "") && _e(S, x), $[0] & /*isModalDisplayed*/
4716
- 8 && P !== (P = "ModalContent " + /*isModalDisplayed*/
4717
- (N[3] ? "Open" : "")) && M(l, "class", P), $[0] & /*isModalDisplayed*/
4713
+ I[6]("DepositButton") + "") && xe(S, x), j[0] & /*isModalDisplayed*/
4714
+ 8 && D !== (D = "ModalContent " + /*isModalDisplayed*/
4715
+ (I[3] ? "Open" : "")) && M(l, "class", D), j[0] & /*isModalDisplayed*/
4718
4716
  8 && C !== (C = "BalanceModal " + /*isModalDisplayed*/
4719
- (N[3] ? "Open" : "")) && M(o, "class", C), $[0] & /*isModalDisplayed*/
4720
- 8 && D !== (D = "BalanceModalWrapper " + /*isModalDisplayed*/
4721
- (N[3] ? "Open" : "")) && M(t, "class", D);
4717
+ (I[3] ? "Open" : "")) && M(a, "class", C), j[0] & /*isModalDisplayed*/
4718
+ 8 && U !== (U = "BalanceModalWrapper " + /*isModalDisplayed*/
4719
+ (I[3] ? "Open" : "")) && M(t, "class", U);
4722
4720
  },
4723
- d(N) {
4724
- N && de(t), Dn(G, N), W = !1, Xe(J);
4721
+ d(I) {
4722
+ I && de(t), Pn($, I), W = !1, Ve(J);
4725
4723
  }
4726
4724
  };
4727
4725
  }
4728
- function Rn(e) {
4726
+ function On(e) {
4729
4727
  let t, n, r = (
4730
4728
  /*$_*/
4731
4729
  e[6](
4732
4730
  /*k*/
4733
4731
  e[50]
4734
4732
  ) + ""
4735
- ), i, o, l = (
4733
+ ), i, a, l = (
4736
4734
  /*b*/
4737
4735
  (e[53].productType ? (
4738
4736
  /*$_*/
@@ -4753,13 +4751,13 @@ function Rn(e) {
4753
4751
  ), b, _, B, T;
4754
4752
  return {
4755
4753
  c() {
4756
- t = k("div"), n = k("p"), i = fe(r), o = pe(), s = fe(l), c = pe(), u = k("p"), d = k("span"), b = fe(g), _ = pe(), B = k("span"), T = fe(
4754
+ t = V("div"), n = V("p"), i = fe(r), a = pe(), s = fe(l), c = pe(), u = V("p"), d = V("span"), b = fe(g), _ = pe(), B = V("span"), T = fe(
4757
4755
  /*currency*/
4758
4756
  e[5]
4759
4757
  ), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(B, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
4760
4758
  },
4761
4759
  m(x, S) {
4762
- be(x, t, S), H(t, n), H(n, i), H(n, o), H(n, s), H(t, c), H(t, u), H(u, d), H(d, b), H(u, _), H(u, B), H(B, T);
4760
+ ge(x, t, S), H(t, n), H(n, i), H(n, a), H(n, s), H(t, c), H(t, u), H(u, d), H(d, b), H(u, _), H(u, B), H(B, T);
4763
4761
  },
4764
4762
  p(x, S) {
4765
4763
  S[0] & /*$_, balances*/
@@ -4767,7 +4765,7 @@ function Rn(e) {
4767
4765
  x[6](
4768
4766
  /*k*/
4769
4767
  x[50]
4770
- ) + "") && _e(i, r), S[0] & /*balances, $_*/
4768
+ ) + "") && xe(i, r), S[0] & /*balances, $_*/
4771
4769
  66 && l !== (l = /*b*/
4772
4770
  (x[53].productType ? (
4773
4771
  /*$_*/
@@ -4775,7 +4773,7 @@ function Rn(e) {
4775
4773
  /*b*/
4776
4774
  x[53].productType
4777
4775
  )
4778
- ) : "") + "") && _e(s, l), S[0] & /*balances*/
4776
+ ) : "") + "") && xe(s, l), S[0] & /*balances*/
4779
4777
  2 && g !== (g = /*b*/
4780
4778
  (x[53].amount ? (
4781
4779
  /*formatBalance*/
@@ -4783,8 +4781,8 @@ function Rn(e) {
4783
4781
  /*b*/
4784
4782
  x[53].amount
4785
4783
  )
4786
- ) : "0") + "") && _e(b, g), S[0] & /*currency*/
4787
- 32 && _e(
4784
+ ) : "0") + "") && xe(b, g), S[0] & /*currency*/
4785
+ 32 && xe(
4788
4786
  T,
4789
4787
  /*currency*/
4790
4788
  x[5]
@@ -4795,62 +4793,62 @@ function Rn(e) {
4795
4793
  }
4796
4794
  };
4797
4795
  }
4798
- function Ln(e) {
4799
- let t, n, r = bt(
4796
+ function Rn(e) {
4797
+ let t, n, r = gt(
4800
4798
  /*balances*/
4801
4799
  e[1][
4802
4800
  /*k*/
4803
4801
  e[50]
4804
4802
  ]
4805
4803
  ), i = [];
4806
- for (let o = 0; o < r.length; o += 1)
4807
- i[o] = Rn(Hn(e, r, o));
4804
+ for (let a = 0; a < r.length; a += 1)
4805
+ i[a] = On(Cn(e, r, a));
4808
4806
  return {
4809
4807
  c() {
4810
- t = k("div");
4811
- for (let o = 0; o < i.length; o += 1)
4812
- i[o].c();
4808
+ t = V("div");
4809
+ for (let a = 0; a < i.length; a += 1)
4810
+ i[a].c();
4813
4811
  n = pe(), M(t, "class", "BalanceModalRowBoth");
4814
4812
  },
4815
- m(o, l) {
4816
- be(o, t, l);
4813
+ m(a, l) {
4814
+ ge(a, t, l);
4817
4815
  for (let s = 0; s < i.length; s += 1)
4818
4816
  i[s] && i[s].m(t, null);
4819
4817
  H(t, n);
4820
4818
  },
4821
- p(o, l) {
4819
+ p(a, l) {
4822
4820
  if (l[0] & /*currency, balances, formatBalance, $_*/
4823
4821
  354) {
4824
- r = bt(
4822
+ r = gt(
4825
4823
  /*balances*/
4826
- o[1][
4824
+ a[1][
4827
4825
  /*k*/
4828
- o[50]
4826
+ a[50]
4829
4827
  ]
4830
4828
  );
4831
4829
  let s;
4832
4830
  for (s = 0; s < r.length; s += 1) {
4833
- const c = Hn(o, r, s);
4834
- i[s] ? i[s].p(c, l) : (i[s] = Rn(c), i[s].c(), i[s].m(t, n));
4831
+ const c = Cn(a, r, s);
4832
+ i[s] ? i[s].p(c, l) : (i[s] = On(c), i[s].c(), i[s].m(t, n));
4835
4833
  }
4836
4834
  for (; s < i.length; s += 1)
4837
4835
  i[s].d(1);
4838
4836
  i.length = r.length;
4839
4837
  }
4840
4838
  },
4841
- d(o) {
4842
- o && de(t), Dn(i, o);
4839
+ d(a) {
4840
+ a && de(t), Pn(i, a);
4843
4841
  }
4844
4842
  };
4845
4843
  }
4846
- function Mn(e) {
4844
+ function Ln(e) {
4847
4845
  let t, n, r;
4848
4846
  return {
4849
4847
  c() {
4850
- t = k("button"), M(t, "class", "ShowBalanceModalOverlay");
4848
+ t = V("button"), M(t, "class", "ShowBalanceModalOverlay");
4851
4849
  },
4852
- m(i, o) {
4853
- be(i, t, o), n || (r = gt(
4850
+ m(i, a) {
4851
+ ge(i, t, a), n || (r = mt(
4854
4852
  t,
4855
4853
  "click",
4856
4854
  /*click_handler_3*/
@@ -4863,28 +4861,28 @@ function Mn(e) {
4863
4861
  }
4864
4862
  };
4865
4863
  }
4866
- function ko(e) {
4864
+ function $a(e) {
4867
4865
  let t, n, r;
4868
4866
  function i(c, u) {
4869
4867
  return (
4870
4868
  /*isLoading*/
4871
- c[2] ? jo : $o
4869
+ c[2] ? Ga : Fa
4872
4870
  );
4873
4871
  }
4874
- let o = i(e), l = o(e), s = (
4872
+ let a = i(e), l = a(e), s = (
4875
4873
  /*showBalance*/
4876
- e[4] && Mn(e)
4874
+ e[4] && Ln(e)
4877
4875
  );
4878
4876
  return {
4879
4877
  c() {
4880
- t = k("div"), n = k("div"), l.c(), r = pe(), s && s.c(), M(n, "class", "ShowBalance");
4878
+ t = V("div"), n = V("div"), l.c(), r = pe(), s && s.c(), M(n, "class", "ShowBalance");
4881
4879
  },
4882
4880
  m(c, u) {
4883
- be(c, t, u), H(t, n), l.m(n, null), H(t, r), s && s.m(t, null), e[29](t);
4881
+ ge(c, t, u), H(t, n), l.m(n, null), H(t, r), s && s.m(t, null), e[29](t);
4884
4882
  },
4885
4883
  p(c, u) {
4886
- o === (o = i(c)) && l ? l.p(c, u) : (l.d(1), l = o(c), l && (l.c(), l.m(n, null))), /*showBalance*/
4887
- c[4] ? s ? s.p(c, u) : (s = Mn(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4884
+ a === (a = i(c)) && l ? l.p(c, u) : (l.d(1), l = a(c), l && (l.c(), l.m(n, null))), /*showBalance*/
4885
+ c[4] ? s ? s.p(c, u) : (s = Ln(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4888
4886
  },
4889
4887
  i: le,
4890
4888
  o: le,
@@ -4893,16 +4891,16 @@ function ko(e) {
4893
4891
  }
4894
4892
  };
4895
4893
  }
4896
- function Vo(e, t, n) {
4894
+ function ja(e, t, n) {
4897
4895
  let r;
4898
- yr(e, Lo, (a) => n(6, r = a));
4899
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: P = "" } = t, C, D = !0, W = !1, J = !1, Y = !1, G, N = "", $ = [], U;
4900
- const y = {}, Be = ["totalCashAmount", "totalRealAmount"], qe = () => {
4901
- fetch(g).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => Sn(f, a[f]))).catch((a) => console.log(a));
4896
+ br(e, Oa, (o) => n(6, r = o));
4897
+ let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: D = "" } = t, C, U = !0, W = !1, J = !1, Y = !1, $, I = "", j = [], F;
4898
+ const y = {}, _e = ["totalCashAmount", "totalRealAmount"], Ze = () => {
4899
+ fetch(g).then((o) => o.json()).then((o) => Object.keys(o).forEach((f) => wn(f, o[f]))).catch((o) => console.log(o));
4902
4900
  };
4903
- Object.keys(An).forEach((a) => Sn(a, An[a]));
4904
- const Te = (a) => {
4905
- switch (a) {
4901
+ Object.keys(Sn).forEach((o) => wn(o, Sn[o]));
4902
+ const Be = (o) => {
4903
+ switch (o) {
4906
4904
  case "balance":
4907
4905
  window.postMessage(
4908
4906
  {
@@ -4927,34 +4925,34 @@ function Vo(e, t, n) {
4927
4925
  );
4928
4926
  break;
4929
4927
  }
4930
- }, Le = () => {
4928
+ }, Re = () => {
4931
4929
  if (b.includes(s))
4932
4930
  return b;
4933
- }, me = (a) => b ? new Intl.NumberFormat(Le(), { useGrouping: !0 }).format(a) : x && S ? he(a, {
4931
+ }, me = (o) => b ? new Intl.NumberFormat(Re(), { useGrouping: !0 }).format(o) : x && S ? he(o, {
4934
4932
  separator: x,
4935
4933
  decimal: S,
4936
4934
  symbol: "",
4937
- precision: parseInt(P || "2", 10)
4938
- }).format() : he(a, {
4935
+ precision: parseInt(D || "2", 10)
4936
+ }).format() : he(o, {
4939
4937
  separator: ".",
4940
4938
  decimal: ",",
4941
4939
  symbol: "",
4942
- precision: parseInt(P || "2", 10)
4943
- }).format(), we = () => Pt(this, null, function* () {
4940
+ precision: parseInt(D || "2", 10)
4941
+ }).format(), Te = () => Nt(this, null, function* () {
4944
4942
  var f, p, h;
4945
- n(2, D = !0);
4946
- const a = new URL(`${l}/v1/player/${i}/account`);
4943
+ n(2, U = !0);
4944
+ const o = new URL(`${l}/v1/player/${i}/account`);
4947
4945
  try {
4948
- const E = yield fetch(a, {
4946
+ const E = yield fetch(o, {
4949
4947
  method: "GET",
4950
- headers: { "X-SessionID": o }
4948
+ headers: { "X-SessionID": a }
4951
4949
  }), v = yield E.json();
4952
4950
  if (E.ok)
4953
- window.postMessage({ type: "BalancedFetched" }, window.location.href), $ = v.items, n(5, N = (f = $.find((m) => m.displayName === "Casino")) == null ? void 0 : f.currency), n(1, y.Total = [{ amount: v.totalAmount[N] }], y), n(
4951
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), j = v.items, n(5, I = (f = j.find((m) => m.displayName === "Casino")) == null ? void 0 : f.currency), n(1, y.Total = [{ amount: v.totalAmount[I] }], y), n(
4954
4952
  1,
4955
4953
  y.Real = [
4956
4954
  {
4957
- amount: (p = $.find((m) => m.displayName === "Casino")) == null ? void 0 : p.balanceAmount
4955
+ amount: (p = j.find((m) => m.displayName === "Casino")) == null ? void 0 : p.balanceAmount
4958
4956
  }
4959
4957
  ],
4960
4958
  y
@@ -4962,7 +4960,7 @@ function Vo(e, t, n) {
4962
4960
  1,
4963
4961
  y.Bonus = [
4964
4962
  {
4965
- amount: (h = $.find((m) => m.displayName === "UBS")) == null ? void 0 : h.balanceAmount
4963
+ amount: (h = j.find((m) => m.displayName === "UBS")) == null ? void 0 : h.balanceAmount
4966
4964
  }
4967
4965
  ],
4968
4966
  y
@@ -4972,19 +4970,19 @@ function Vo(e, t, n) {
4972
4970
  } catch (E) {
4973
4971
  console.log("Balance error: ", E);
4974
4972
  } finally {
4975
- n(2, D = !1);
4973
+ n(2, U = !1);
4976
4974
  }
4977
- }), Ce = () => {
4978
- n(2, D = !0);
4979
- const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
4980
- f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((h) => h.json()).then((h) => {
4981
- h[T] || n(10, T = Be[0]);
4975
+ }), Ae = () => {
4976
+ n(2, U = !0);
4977
+ const o = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
4978
+ f.append("X-SessionID", a), fetch(o, { method: "GET", headers: f }).then((h) => h.json()).then((h) => {
4979
+ h[T] || n(10, T = _e[0]);
4982
4980
  const E = h.items.find((m) => m.type === "Real" && m.walletAccountType === "Ordinary");
4983
- if (n(5, N = E.currency), J = !!E.productType, n(1, y.Total = [{ amount: 0 }], y), n(1, y.Real = [], y), n(1, y.Bonus = [], y), n(1, y.Credit = [], y), !J) {
4984
- U = {
4981
+ if (n(5, I = E.currency), J = !!E.productType, n(1, y.Total = [{ amount: 0 }], y), n(1, y.Real = [], y), n(1, y.Bonus = [], y), n(1, y.Credit = [], y), !J) {
4982
+ F = {
4985
4983
  lastOrdinaryAfterAmount: 0,
4986
4984
  showCreditLineAfterAmount: !1
4987
- }, n(1, y.Total[0].amount = h[T][N], y);
4985
+ }, n(1, y.Total[0].amount = h[T][I], y);
4988
4986
  for (const m of h.items)
4989
4987
  switch (m.type) {
4990
4988
  case "Bonus":
@@ -4998,10 +4996,10 @@ function Vo(e, t, n) {
4998
4996
  }
4999
4997
  for (const [m, R] of Object.entries(y))
5000
4998
  R.length < 1 && delete y[m];
5001
- n(2, D = !1);
4999
+ n(2, U = !1);
5002
5000
  return;
5003
5001
  }
5004
- U = {
5002
+ F = {
5005
5003
  Casino: {
5006
5004
  lastOrdinaryAfterAmount: 0,
5007
5005
  showCreditLineAfterAmount: !1
@@ -5036,49 +5034,49 @@ function Vo(e, t, n) {
5036
5034
  at();
5037
5035
  for (const [m, R] of Object.entries(y))
5038
5036
  R.length < 1 && delete y[m];
5039
- n(2, D = !1);
5037
+ n(2, U = !1);
5040
5038
  }).catch((h) => {
5041
- throw n(2, D = !1), console.log("Balance fetch error", h), new Error("Failed to fetch balance data!");
5039
+ throw n(2, U = !1), console.log("Balance fetch error", h), new Error("Failed to fetch balance data!");
5042
5040
  });
5043
- }, He = () => {
5044
- if (G && G.close(), o.length < 1)
5041
+ }, Ce = () => {
5042
+ if ($ && $.close(), a.length < 1)
5045
5043
  return;
5046
- let a, f;
5044
+ let o, f;
5047
5045
  switch (_) {
5048
5046
  case "gm16":
5049
- a = new URL(`${l}/v2/player/${i}/information/updates`), f = (E) => St(E);
5047
+ o = new URL(`${l}/v2/player/${i}/information/updates`), f = (E) => Tt(E);
5050
5048
  break;
5051
5049
  case "gmcore":
5052
- a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (E) => Qe(E);
5050
+ o = new URL(`${l}/v1/player/${i}/balance/updates`), f = (E) => qe(E);
5053
5051
  break;
5054
5052
  }
5055
5053
  const p = {
5056
5054
  accept: "text/event-stream",
5057
- "X-SessionId": o
5058
- }, h = new No.EventSourcePolyfill(a, { headers: p });
5059
- G = h, h.addEventListener("message", f);
5060
- }, ue = (a) => {
5055
+ "X-SessionId": a
5056
+ }, h = new La.EventSourcePolyfill(o, { headers: p });
5057
+ $ = h, h.addEventListener("message", f);
5058
+ }, ue = (o) => {
5061
5059
  let f;
5062
5060
  try {
5063
- f = JSON.parse(a);
5061
+ f = JSON.parse(o);
5064
5062
  } catch (p) {
5065
5063
  console.log("Balance stream failed: ", p);
5066
5064
  return;
5067
5065
  }
5068
5066
  return f;
5069
- }, Qe = (a) => {
5067
+ }, qe = (o) => {
5070
5068
  var E, v;
5071
- const f = ue(a.data);
5069
+ const f = ue(o.data);
5072
5070
  if (!f) {
5073
- He();
5071
+ Ce();
5074
5072
  return;
5075
5073
  }
5076
5074
  let p = "0";
5077
5075
  const h = f.balanceChange;
5078
- $ = $.map((m) => (h && h[m.id] && (m = It(Nt({}, m), {
5076
+ j = j.map((m) => (h && h[m.id] && (m = Mt(Lt({}, m), {
5079
5077
  balanceAmount: h[m.id].afterAmount
5080
- })), p = (parseFloat(m == null ? void 0 : m.balanceAmount) + parseFloat(p)).toString(), m)), n(1, y.Real = [{ amount: (E = $[0]) == null ? void 0 : E.balanceAmount }], y), n(1, y.Bonus = [{ amount: (v = $[1]) == null ? void 0 : v.balanceAmount }], y), n(1, y.Total = [{ amount: Number(p) }], y);
5081
- }, Me = (a, f, p) => {
5078
+ })), p = (parseFloat(m == null ? void 0 : m.balanceAmount) + parseFloat(p)).toString(), m)), n(1, y.Real = [{ amount: (E = j[0]) == null ? void 0 : E.balanceAmount }], y), n(1, y.Bonus = [{ amount: (v = j[1]) == null ? void 0 : v.balanceAmount }], y), n(1, y.Total = [{ amount: Number(p) }], y);
5079
+ }, Le = (o, f, p) => {
5082
5080
  let h = null;
5083
5081
  switch (p.walletAccountType) {
5084
5082
  case "Ordinary":
@@ -5090,15 +5088,15 @@ function Vo(e, t, n) {
5090
5088
  default:
5091
5089
  h = p.afterAmount;
5092
5090
  }
5093
- return h === null ? a : h;
5091
+ return h === null ? o : h;
5094
5092
  }, at = () => {
5095
5093
  switch (T) {
5096
5094
  case "totalCashAmount":
5097
- let a = 0;
5095
+ let o = 0;
5098
5096
  for (const p of ["Real", "Bonus"])
5099
5097
  for (const h of y[p])
5100
- a += Math.max(h.amount, 0);
5101
- n(1, y.Total[0].amount = a, y);
5098
+ o += Math.max(h.amount, 0);
5099
+ n(1, y.Total[0].amount = o, y);
5102
5100
  break;
5103
5101
  case "totalRealAmount":
5104
5102
  if (!J)
@@ -5108,78 +5106,78 @@ function Vo(e, t, n) {
5108
5106
  f += p.amount;
5109
5107
  n(1, y.Total[0].amount = f, y);
5110
5108
  }
5111
- }, St = (a) => {
5112
- const f = ue(a.data);
5109
+ }, Tt = (o) => {
5110
+ const f = ue(o.data);
5113
5111
  if (!f) {
5114
- He();
5112
+ Ce();
5115
5113
  return;
5116
5114
  }
5117
5115
  if (f.type !== "BALANCE_UPDATE_V2")
5118
5116
  return;
5119
5117
  const p = f.body.balanceChange;
5120
5118
  for (const [h, E] of Object.entries(p))
5121
- if (T === "totalRealAmount" && h === "Real" && !J && n(1, y.Total[0].amount = Me(y.Total[0].amount, U, E), y), !!y[h])
5119
+ if (T === "totalRealAmount" && h === "Real" && !J && n(1, y.Total[0].amount = Le(y.Total[0].amount, F, E), y), !!y[h])
5122
5120
  for (const v of y[h]) {
5123
5121
  if (!J) {
5124
- v.amount = h === "Real" ? Me(v.amount, U, E) : E.afterAmount;
5122
+ v.amount = h === "Real" ? Le(v.amount, F, E) : E.afterAmount;
5125
5123
  continue;
5126
5124
  }
5127
- E.productType === v.productType && (v.amount = h === "Real" ? Me(v.amount, U[v.productType], E) : E.afterAmount);
5125
+ E.productType === v.productType && (v.amount = h === "Real" ? Le(v.amount, F[v.productType], E) : E.afterAmount);
5128
5126
  }
5129
5127
  at();
5130
- }, st = () => {
5131
- Te("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5132
- }, At = () => {
5133
- Be.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${Be}. Using default value ('${Be[0]}').`), n(10, T = Be[0]));
5134
- }, Je = () => {
5135
- switch (Mo(s), At(), _) {
5128
+ }, ot = () => {
5129
+ Be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5130
+ }, wt = () => {
5131
+ _e.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`), n(10, T = _e[0]));
5132
+ }, Qe = () => {
5133
+ switch (Ra(s), wt(), _) {
5136
5134
  case "gmcore":
5137
- we();
5135
+ Te();
5138
5136
  break;
5139
5137
  case "gm16":
5140
- Ce();
5138
+ Ae();
5141
5139
  break;
5142
5140
  default:
5143
5141
  throw Error(`Invalid apiversion attribute: ${_}`);
5144
5142
  }
5145
- }, Ne = (a) => a.data && a.data.type === "LogoutSuccessfull" && G.close(), Se = () => {
5143
+ }, Me = (o) => o.data && o.data.type === "LogoutSuccessfull" && $.close(), we = () => {
5146
5144
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5147
5145
  };
5148
- Sr(() => (window.addEventListener("message", Ne, !1), () => {
5149
- window.removeEventListener("message", Ne), G && G.close();
5146
+ wr(() => (window.addEventListener("message", Me, !1), () => {
5147
+ window.removeEventListener("message", Me), $ && $.close();
5150
5148
  }));
5151
- const re = () => Te("balance"), Ct = () => Te("closebalance"), Ht = () => st(), Ot = () => Te("closeBalance");
5152
- function lt(a) {
5153
- Vt[a ? "unshift" : "push"](() => {
5154
- C = a, n(0, C);
5149
+ const re = () => Be("balance"), St = () => Be("closebalance"), At = () => ot(), Ct = () => Be("closeBalance");
5150
+ function st(o) {
5151
+ jt[o ? "unshift" : "push"](() => {
5152
+ C = o, n(0, C);
5155
5153
  });
5156
5154
  }
5157
- return e.$$set = (a) => {
5158
- "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, c = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, g = a.translationurl), "customlocaleidentifier" in a && n(19, b = 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, P = a.currencyprecision);
5155
+ return e.$$set = (o) => {
5156
+ "userid" in o && n(11, i = o.userid), "session" in o && n(12, a = o.session), "endpoint" in o && n(13, l = o.endpoint), "lang" in o && n(14, s = o.lang), "mbsource" in o && n(15, c = o.mbsource), "clientstyling" in o && n(16, u = o.clientstyling), "clientstylingurl" in o && n(17, d = o.clientstylingurl), "translationurl" in o && n(18, g = o.translationurl), "customlocaleidentifier" in o && n(19, b = o.customlocaleidentifier), "gmversion" in o && n(20, _ = o.gmversion), "displaybalanceoption" in o && n(21, B = o.displaybalanceoption), "totalcalculationmode" in o && n(10, T = o.totalcalculationmode), "currencyseparator" in o && n(22, x = o.currencyseparator), "currencydecimal" in o && n(23, S = o.currencydecimal), "currencyprecision" in o && n(24, D = o.currencyprecision);
5159
5157
  }, e.$$.update = () => {
5160
5158
  e.$$.dirty[0] & /*lang*/
5161
- 16384 && s && Le(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5162
- 3176448 && l && i && o && s && _ && B && Je(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5163
- 1062912 && l && i && o && _ && He(), e.$$.dirty[0] & /*translationurl*/
5164
- 262144 && g && qe(), e.$$.dirty[0] & /*balances*/
5165
- 2 && y.Total && Se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5166
- 65537 && u && C && Gr(C, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5167
- 131073 && d && C && $r(C, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5168
- 32769 && c && C && jr(C, `${c}.Style`);
5159
+ 16384 && s && Re(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5160
+ 3176448 && l && i && a && s && _ && B && Qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5161
+ 1062912 && l && i && a && _ && Ce(), e.$$.dirty[0] & /*translationurl*/
5162
+ 262144 && g && Ze(), e.$$.dirty[0] & /*balances*/
5163
+ 2 && y.Total && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5164
+ 65537 && u && C && Fr(C, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5165
+ 131073 && d && C && Gr(C, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5166
+ 32769 && c && C && $r(C, `${c}.Style`);
5169
5167
  }, [
5170
5168
  C,
5171
5169
  y,
5172
- D,
5170
+ U,
5173
5171
  W,
5174
5172
  Y,
5175
- N,
5173
+ I,
5176
5174
  r,
5177
- Te,
5175
+ Be,
5178
5176
  me,
5179
- st,
5177
+ ot,
5180
5178
  T,
5181
5179
  i,
5182
- o,
5180
+ a,
5183
5181
  l,
5184
5182
  s,
5185
5183
  c,
@@ -5191,22 +5189,22 @@ function Vo(e, t, n) {
5191
5189
  B,
5192
5190
  x,
5193
5191
  S,
5194
- P,
5192
+ D,
5195
5193
  re,
5194
+ St,
5195
+ At,
5196
5196
  Ct,
5197
- Ht,
5198
- Ot,
5199
- lt
5197
+ st
5200
5198
  ];
5201
5199
  }
5202
- class Xo extends Ur {
5200
+ class ka extends Dr {
5203
5201
  constructor(t) {
5204
- super(), Pr(
5202
+ super(), Ir(
5205
5203
  this,
5206
5204
  t,
5207
- Vo,
5208
- ko,
5209
- In,
5205
+ ja,
5206
+ $a,
5207
+ Nn,
5210
5208
  {
5211
5209
  userid: 11,
5212
5210
  session: 12,
@@ -5224,7 +5222,7 @@ class Xo extends Ur {
5224
5222
  currencydecimal: 23,
5225
5223
  currencyprecision: 24
5226
5224
  },
5227
- Go,
5225
+ Ua,
5228
5226
  [-1, -1]
5229
5227
  );
5230
5228
  }
@@ -5319,7 +5317,7 @@ class Xo extends Ur {
5319
5317
  this.$$set({ currencyprecision: t }), Q();
5320
5318
  }
5321
5319
  }
5322
- Dr(Xo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5320
+ Pr(ka, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5323
5321
  export {
5324
- Xo as default
5322
+ ka as default
5325
5323
  };