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