@everymatrix/player-account-balance-modal-nd 1.59.0 → 1.59.2

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