@everymatrix/player-account-vault 0.17.1 → 0.17.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,46 +1,46 @@
1
- function ae() {
1
+ function re() {
2
2
  }
3
- function vr(e) {
3
+ function xn(e) {
4
4
  return e();
5
5
  }
6
6
  function zt() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function we(e) {
10
- e.forEach(vr);
9
+ function _e(e) {
10
+ e.forEach(xn);
11
11
  }
12
- function Gt(e) {
12
+ function Ft(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function xr(e, t) {
15
+ function En(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function Zr(e) {
18
+ function qn(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function Er(e, ...t) {
21
+ function _n(e, ...t) {
22
22
  if (e == null) {
23
- for (const n of t)
24
- n(void 0);
25
- return ae;
23
+ for (const r of t)
24
+ r(void 0);
25
+ return re;
26
26
  }
27
- const r = e.subscribe(...t);
28
- return r.unsubscribe ? () => r.unsubscribe() : r;
27
+ const n = e.subscribe(...t);
28
+ return n.unsubscribe ? () => n.unsubscribe() : n;
29
29
  }
30
- function qr(e, t, r) {
31
- e.$$.on_destroy.push(Er(t, r));
30
+ function Jn(e, t, n) {
31
+ e.$$.on_destroy.push(_n(t, n));
32
32
  }
33
33
  function m(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function Jr(e, t, r) {
37
- const n = Qr(e);
38
- if (!n.getElementById(t)) {
36
+ function Qn(e, t, n) {
37
+ const r = Yn(e);
38
+ if (!r.getElementById(t)) {
39
39
  const i = E("style");
40
- i.id = t, i.textContent = r, Yr(n, i);
40
+ i.id = t, i.textContent = n, Kn(r, i);
41
41
  }
42
42
  }
43
- function Qr(e) {
43
+ function Yn(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,22 +50,22 @@ function Qr(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function Yr(e, t) {
53
+ function Kn(e, t) {
54
54
  return m(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function Q(e, t, r) {
61
- e.insertBefore(t, r || null);
60
+ function J(e, t, n) {
61
+ e.insertBefore(t, n || null);
62
62
  }
63
- function Z(e) {
63
+ function W(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function _t(e, t) {
67
- for (let r = 0; r < e.length; r += 1)
68
- e[r] && e[r].d(t);
66
+ function Et(e, t) {
67
+ for (let n = 0; n < e.length; n += 1)
68
+ e[n] && e[n].d(t);
69
69
  }
70
70
  function E(e) {
71
71
  return document.createElement(e);
@@ -73,145 +73,145 @@ function E(e) {
73
73
  function Xt(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
- function $(e) {
76
+ function k(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
- function R() {
80
- return $(" ");
79
+ function M() {
80
+ return k(" ");
81
81
  }
82
- function _r() {
83
- return $("");
82
+ function wn() {
83
+ return k("");
84
84
  }
85
- function ee(e, t, r, n) {
86
- return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
85
+ function Y(e, t, n, r) {
86
+ return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
87
87
  }
88
- function T(e, t, r) {
89
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
88
+ function H(e, t, n) {
89
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
90
90
  }
91
91
  function ft(e) {
92
92
  return e === "" ? null : +e;
93
93
  }
94
- function Kr(e) {
94
+ function er(e) {
95
95
  return Array.from(e.childNodes);
96
96
  }
97
- function W(e, t) {
97
+ function X(e, t) {
98
98
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
99
99
  t);
100
100
  }
101
- function xe(e, t) {
101
+ function ve(e, t) {
102
102
  e.value = t ?? "";
103
103
  }
104
- function Wt(e, t, r, n) {
105
- r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
104
+ function Wt(e, t, n, r) {
105
+ n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
106
106
  }
107
- function st(e, t, r) {
108
- for (let n = 0; n < e.options.length; n += 1) {
109
- const i = e.options[n];
107
+ function st(e, t, n) {
108
+ for (let r = 0; r < e.options.length; r += 1) {
109
+ const i = e.options[r];
110
110
  if (i.__value === t) {
111
111
  i.selected = !0;
112
112
  return;
113
113
  }
114
114
  }
115
- (!r || t !== void 0) && (e.selectedIndex = -1);
115
+ (!n || t !== void 0) && (e.selectedIndex = -1);
116
116
  }
117
117
  function Zt(e) {
118
118
  const t = e.querySelector(":checked");
119
119
  return t && t.__value;
120
120
  }
121
- function j(e, t, r) {
122
- e.classList.toggle(t, !!r);
121
+ function G(e, t, n) {
122
+ e.classList.toggle(t, !!n);
123
123
  }
124
- function en(e) {
124
+ function tr(e) {
125
125
  const t = {};
126
126
  return e.childNodes.forEach(
127
127
  /** @param {Element} node */
128
- (r) => {
129
- t[r.slot || "default"] = !0;
128
+ (n) => {
129
+ t[n.slot || "default"] = !0;
130
130
  }
131
131
  ), t;
132
132
  }
133
- let kt;
134
- function Ke(e) {
135
- kt = e;
133
+ let Gt;
134
+ function Ye(e) {
135
+ Gt = e;
136
136
  }
137
137
  const De = [], pt = [];
138
138
  let Ue = [];
139
- const qt = [], tn = /* @__PURE__ */ Promise.resolve();
140
- let Pt = !1;
141
- function rn() {
142
- Pt || (Pt = !0, tn.then(le));
139
+ const qt = [], nr = /* @__PURE__ */ Promise.resolve();
140
+ let Ct = !1;
141
+ function rr() {
142
+ Ct || (Ct = !0, nr.then(oe));
143
143
  }
144
- function et(e) {
144
+ function Ke(e) {
145
145
  Ue.push(e);
146
146
  }
147
- const wt = /* @__PURE__ */ new Set();
147
+ const _t = /* @__PURE__ */ new Set();
148
148
  let Le = 0;
149
- function le() {
149
+ function oe() {
150
150
  if (Le !== 0)
151
151
  return;
152
- const e = kt;
152
+ const e = Gt;
153
153
  do {
154
154
  try {
155
155
  for (; Le < De.length; ) {
156
156
  const t = De[Le];
157
- Le++, Ke(t), nn(t.$$);
157
+ Le++, Ye(t), ir(t.$$);
158
158
  }
159
159
  } catch (t) {
160
160
  throw De.length = 0, Le = 0, t;
161
161
  }
162
- for (Ke(null), De.length = 0, Le = 0; pt.length; )
162
+ for (Ye(null), De.length = 0, Le = 0; pt.length; )
163
163
  pt.pop()();
164
164
  for (let t = 0; t < Ue.length; t += 1) {
165
- const r = Ue[t];
166
- wt.has(r) || (wt.add(r), r());
165
+ const n = Ue[t];
166
+ _t.has(n) || (_t.add(n), n());
167
167
  }
168
168
  Ue.length = 0;
169
169
  } while (De.length);
170
170
  for (; qt.length; )
171
171
  qt.pop()();
172
- Pt = !1, wt.clear(), Ke(e);
172
+ Ct = !1, _t.clear(), Ye(e);
173
173
  }
174
- function nn(e) {
174
+ function ir(e) {
175
175
  if (e.fragment !== null) {
176
- e.update(), we(e.before_update);
176
+ e.update(), _e(e.before_update);
177
177
  const t = e.dirty;
178
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(et);
178
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ke);
179
179
  }
180
180
  }
181
- function an(e) {
182
- const t = [], r = [];
183
- Ue.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Ue = t;
181
+ function ar(e) {
182
+ const t = [], n = [];
183
+ Ue.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ue = t;
184
184
  }
185
- const on = /* @__PURE__ */ new Set();
186
- function sn(e, t) {
187
- e && e.i && (on.delete(e), e.i(t));
185
+ const or = /* @__PURE__ */ new Set();
186
+ function sr(e, t) {
187
+ e && e.i && (or.delete(e), e.i(t));
188
188
  }
189
189
  function Me(e) {
190
190
  return e?.length !== void 0 ? e : Array.from(e);
191
191
  }
192
- function un(e, t, r) {
193
- const { fragment: n, after_update: i } = e.$$;
194
- n && n.m(t, r), et(() => {
195
- const a = e.$$.on_mount.map(vr).filter(Gt);
196
- e.$$.on_destroy ? e.$$.on_destroy.push(...a) : we(a), e.$$.on_mount = [];
197
- }), i.forEach(et);
192
+ function lr(e, t, n) {
193
+ const { fragment: r, after_update: i } = e.$$;
194
+ r && r.m(t, n), Ke(() => {
195
+ const a = e.$$.on_mount.map(xn).filter(Ft);
196
+ e.$$.on_destroy ? e.$$.on_destroy.push(...a) : _e(a), e.$$.on_mount = [];
197
+ }), i.forEach(Ke);
198
198
  }
199
- function ln(e, t) {
200
- const r = e.$$;
201
- r.fragment !== null && (an(r.after_update), we(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
199
+ function ur(e, t) {
200
+ const n = e.$$;
201
+ n.fragment !== null && (ar(n.after_update), _e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
202
202
  }
203
- function cn(e, t) {
204
- e.$$.dirty[0] === -1 && (De.push(e), rn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
203
+ function cr(e, t) {
204
+ e.$$.dirty[0] === -1 && (De.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
205
205
  }
206
- function hn(e, t, r, n, i, a, o = null, s = [-1]) {
207
- const c = kt;
208
- Ke(e);
209
- const l = e.$$ = {
206
+ function hr(e, t, n, r, i, a, o = null, s = [-1]) {
207
+ const c = Gt;
208
+ Ye(e);
209
+ const u = e.$$ = {
210
210
  fragment: null,
211
211
  ctx: [],
212
212
  // state
213
213
  props: a,
214
- update: ae,
214
+ update: re,
215
215
  not_equal: i,
216
216
  bound: zt(),
217
217
  // lifecycle
@@ -227,23 +227,23 @@ function hn(e, t, r, n, i, a, o = null, s = [-1]) {
227
227
  skip_bound: !1,
228
228
  root: t.target || c.$$.root
229
229
  };
230
- o && o(l.root);
231
- let u = !1;
232
- if (l.ctx = r ? r(e, t.props || {}, (h, d, ...b) => {
233
- const v = b.length ? b[0] : d;
234
- return l.ctx && i(l.ctx[h], l.ctx[h] = v) && (!l.skip_bound && l.bound[h] && l.bound[h](v), u && cn(e, h)), d;
235
- }) : [], l.update(), u = !0, we(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
230
+ o && o(u.root);
231
+ let l = !1;
232
+ if (u.ctx = n ? n(e, t.props || {}, (f, d, ...y) => {
233
+ const v = y.length ? y[0] : d;
234
+ return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l && cr(e, f)), d;
235
+ }) : [], u.update(), l = !0, _e(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
236
236
  if (t.hydrate) {
237
- const h = Kr(t.target);
238
- l.fragment && l.fragment.l(h), h.forEach(Z);
237
+ const f = er(t.target);
238
+ u.fragment && u.fragment.l(f), f.forEach(W);
239
239
  } else
240
- l.fragment && l.fragment.c();
241
- t.intro && sn(e.$$.fragment), un(e, t.target, t.anchor), le();
240
+ u.fragment && u.fragment.c();
241
+ t.intro && sr(e.$$.fragment), lr(e, t.target, t.anchor), oe();
242
242
  }
243
- Ke(c);
243
+ Ye(c);
244
244
  }
245
- let wr;
246
- typeof HTMLElement == "function" && (wr = class extends HTMLElement {
245
+ let Tn;
246
+ typeof HTMLElement == "function" && (Tn = class extends HTMLElement {
247
247
  /** The Svelte component constructor */
248
248
  $$ctor;
249
249
  /** Slots */
@@ -262,20 +262,20 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
262
262
  $$l = {};
263
263
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
264
264
  $$l_u = /* @__PURE__ */ new Map();
265
- constructor(e, t, r) {
266
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
265
+ constructor(e, t, n) {
266
+ super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
267
267
  }
268
- addEventListener(e, t, r) {
268
+ addEventListener(e, t, n) {
269
269
  if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
270
- const n = this.$$c.$on(e, t);
271
- this.$$l_u.set(t, n);
270
+ const r = this.$$c.$on(e, t);
271
+ this.$$l_u.set(t, r);
272
272
  }
273
- super.addEventListener(e, t, r);
273
+ super.addEventListener(e, t, n);
274
274
  }
275
- removeEventListener(e, t, r) {
276
- if (super.removeEventListener(e, t, r), this.$$c) {
277
- const n = this.$$l_u.get(t);
278
- n && (n(), this.$$l_u.delete(t));
275
+ removeEventListener(e, t, n) {
276
+ if (super.removeEventListener(e, t, n), this.$$c) {
277
+ const r = this.$$l_u.get(t);
278
+ r && (r(), this.$$l_u.delete(t));
279
279
  }
280
280
  }
281
281
  async connectedCallback() {
@@ -285,29 +285,29 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
285
285
  let a;
286
286
  return {
287
287
  c: function() {
288
- a = E("slot"), i !== "default" && T(a, "name", i);
288
+ a = E("slot"), i !== "default" && H(a, "name", i);
289
289
  },
290
290
  /**
291
291
  * @param {HTMLElement} target
292
292
  * @param {HTMLElement} [anchor]
293
293
  */
294
- m: function(c, l) {
295
- Q(c, a, l);
294
+ m: function(c, u) {
295
+ J(c, a, u);
296
296
  },
297
297
  d: function(c) {
298
- c && Z(a);
298
+ c && W(a);
299
299
  }
300
300
  };
301
301
  };
302
302
  };
303
303
  if (await Promise.resolve(), !this.$$cn || this.$$c)
304
304
  return;
305
- const t = {}, r = en(this);
305
+ const t = {}, n = tr(this);
306
306
  for (const i of this.$$s)
307
- i in r && (t[i] = [e(i)]);
307
+ i in n && (t[i] = [e(i)]);
308
308
  for (const i of this.attributes) {
309
309
  const a = this.$$g_p(i.name);
310
- a in this.$$d || (this.$$d[a] = lt(a, i.value, this.$$p_d, "toProp"));
310
+ a in this.$$d || (this.$$d[a] = ut(a, i.value, this.$$p_d, "toProp"));
311
311
  }
312
312
  for (const i in this.$$p_d)
313
313
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -321,11 +321,11 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
321
321
  }
322
322
  }
323
323
  });
324
- const n = () => {
324
+ const r = () => {
325
325
  this.$$r = !0;
326
326
  for (const i in this.$$p_d)
327
327
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
328
- const a = lt(
328
+ const a = ut(
329
329
  i,
330
330
  this.$$d[i],
331
331
  this.$$p_d,
@@ -335,7 +335,7 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
335
335
  }
336
336
  this.$$r = !1;
337
337
  };
338
- this.$$c.$$.after_update.push(n), n();
338
+ this.$$c.$$.after_update.push(r), r();
339
339
  for (const i in this.$$l)
340
340
  for (const a of this.$$l[i]) {
341
341
  const o = this.$$c.$on(i, a);
@@ -346,8 +346,8 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
346
346
  }
347
347
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
348
348
  // and setting attributes through setAttribute etc, this is helpful
349
- attributeChangedCallback(e, t, r) {
350
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = lt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
349
+ attributeChangedCallback(e, t, n) {
350
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ut(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
351
351
  }
352
352
  disconnectedCallback() {
353
353
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -360,11 +360,11 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
360
360
  ) || e;
361
361
  }
362
362
  });
363
- function lt(e, t, r, n) {
364
- const i = r[e]?.type;
365
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
363
+ function ut(e, t, n, r) {
364
+ const i = n[e]?.type;
365
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
366
366
  return t;
367
- if (n === "toAttribute")
367
+ if (r === "toAttribute")
368
368
  switch (i) {
369
369
  case "Object":
370
370
  case "Array":
@@ -389,10 +389,10 @@ function lt(e, t, r, n) {
389
389
  return t;
390
390
  }
391
391
  }
392
- function fn(e, t, r, n, i, a) {
393
- let o = class extends wr {
392
+ function fr(e, t, n, r, i, a) {
393
+ let o = class extends Tn {
394
394
  constructor() {
395
- super(e, r, i), this.$$p_d = t;
395
+ super(e, n, i), this.$$p_d = t;
396
396
  }
397
397
  static get observedAttributes() {
398
398
  return Object.keys(t).map(
@@ -406,10 +406,10 @@ function fn(e, t, r, n, i, a) {
406
406
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
407
407
  },
408
408
  set(c) {
409
- c = lt(s, c, t), this.$$d[s] = c, this.$$c?.$set({ [s]: c });
409
+ c = ut(s, c, t), this.$$d[s] = c, this.$$c?.$set({ [s]: c });
410
410
  }
411
411
  });
412
- }), n.forEach((s) => {
412
+ }), r.forEach((s) => {
413
413
  Object.defineProperty(o.prototype, s, {
414
414
  get() {
415
415
  return this.$$c?.[s];
@@ -418,7 +418,7 @@ function fn(e, t, r, n, i, a) {
418
418
  }), e.element = /** @type {any} */
419
419
  o, o;
420
420
  }
421
- class pn {
421
+ class pr {
422
422
  /**
423
423
  * ### PRIVATE API
424
424
  *
@@ -437,7 +437,7 @@ class pn {
437
437
  $$set = void 0;
438
438
  /** @returns {void} */
439
439
  $destroy() {
440
- ln(this, 1), this.$destroy = ae;
440
+ ur(this, 1), this.$destroy = re;
441
441
  }
442
442
  /**
443
443
  * @template {Extract<keyof Events, string>} K
@@ -445,13 +445,13 @@ class pn {
445
445
  * @param {((e: Events[K]) => void) | null | undefined} callback
446
446
  * @returns {() => void}
447
447
  */
448
- $on(t, r) {
449
- if (!Gt(r))
450
- return ae;
451
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
452
- return n.push(r), () => {
453
- const i = n.indexOf(r);
454
- i !== -1 && n.splice(i, 1);
448
+ $on(t, n) {
449
+ if (!Ft(n))
450
+ return re;
451
+ const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
452
+ return r.push(n), () => {
453
+ const i = r.indexOf(n);
454
+ i !== -1 && r.splice(i, 1);
455
455
  };
456
456
  }
457
457
  /**
@@ -459,28 +459,28 @@ class pn {
459
459
  * @returns {void}
460
460
  */
461
461
  $set(t) {
462
- this.$$set && !Zr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
462
+ this.$$set && !qn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
463
463
  }
464
464
  }
465
- const mn = "4";
466
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mn);
465
+ const mr = "4";
466
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mr);
467
467
  const Re = [];
468
- function dn(e, t) {
468
+ function dr(e, t) {
469
469
  return {
470
- subscribe: bt(e, t).subscribe
470
+ subscribe: gt(e, t).subscribe
471
471
  };
472
472
  }
473
- function bt(e, t = ae) {
474
- let r;
475
- const n = /* @__PURE__ */ new Set();
473
+ function gt(e, t = re) {
474
+ let n;
475
+ const r = /* @__PURE__ */ new Set();
476
476
  function i(s) {
477
- if (xr(e, s) && (e = s, r)) {
477
+ if (En(e, s) && (e = s, n)) {
478
478
  const c = !Re.length;
479
- for (const l of n)
480
- l[1](), Re.push(l, e);
479
+ for (const u of r)
480
+ u[1](), Re.push(u, e);
481
481
  if (c) {
482
- for (let l = 0; l < Re.length; l += 2)
483
- Re[l][0](Re[l + 1]);
482
+ for (let u = 0; u < Re.length; u += 2)
483
+ Re[u][0](Re[u + 1]);
484
484
  Re.length = 0;
485
485
  }
486
486
  }
@@ -488,275 +488,281 @@ function bt(e, t = ae) {
488
488
  function a(s) {
489
489
  i(s(e));
490
490
  }
491
- function o(s, c = ae) {
492
- const l = [s, c];
493
- return n.add(l), n.size === 1 && (r = t(i, a) || ae), s(e), () => {
494
- n.delete(l), n.size === 0 && r && (r(), r = null);
491
+ function o(s, c = re) {
492
+ const u = [s, c];
493
+ return r.add(u), r.size === 1 && (n = t(i, a) || re), s(e), () => {
494
+ r.delete(u), r.size === 0 && n && (n(), n = null);
495
495
  };
496
496
  }
497
497
  return { set: i, update: a, subscribe: o };
498
498
  }
499
- function $e(e, t, r) {
500
- const n = !Array.isArray(e), i = n ? [e] : e;
499
+ function je(e, t, n) {
500
+ const r = !Array.isArray(e), i = r ? [e] : e;
501
501
  if (!i.every(Boolean))
502
502
  throw new Error("derived() expects stores as input, got a falsy value");
503
503
  const a = t.length < 2;
504
- return dn(r, (o, s) => {
504
+ return dr(n, (o, s) => {
505
505
  let c = !1;
506
- const l = [];
507
- let u = 0, h = ae;
506
+ const u = [];
507
+ let l = 0, f = re;
508
508
  const d = () => {
509
- if (u)
509
+ if (l)
510
510
  return;
511
- h();
512
- const v = t(n ? l[0] : l, o, s);
513
- a ? o(v) : h = Gt(v) ? v : ae;
514
- }, b = i.map(
515
- (v, P) => Er(
511
+ f();
512
+ const v = t(r ? u[0] : u, o, s);
513
+ a ? o(v) : f = Ft(v) ? v : re;
514
+ }, y = i.map(
515
+ (v, I) => _n(
516
516
  v,
517
- (F) => {
518
- l[P] = F, u &= ~(1 << P), c && d();
517
+ (U) => {
518
+ u[I] = U, l &= ~(1 << I), c && d();
519
519
  },
520
520
  () => {
521
- u |= 1 << P;
521
+ l |= 1 << I;
522
522
  }
523
523
  )
524
524
  );
525
525
  return c = !0, d(), function() {
526
- we(b), h(), c = !1;
526
+ _e(y), f(), c = !1;
527
527
  };
528
528
  });
529
529
  }
530
- function gn(e) {
530
+ function gr(e) {
531
531
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
532
532
  }
533
- var bn = function(t) {
534
- return yn(t) && !vn(t);
533
+ var br = function(t) {
534
+ return yr(t) && !vr(t);
535
535
  };
536
- function yn(e) {
536
+ function yr(e) {
537
537
  return !!e && typeof e == "object";
538
538
  }
539
- function vn(e) {
539
+ function vr(e) {
540
540
  var t = Object.prototype.toString.call(e);
541
- return t === "[object RegExp]" || t === "[object Date]" || _n(e);
541
+ return t === "[object RegExp]" || t === "[object Date]" || _r(e);
542
542
  }
543
- var xn = typeof Symbol == "function" && Symbol.for, En = xn ? Symbol.for("react.element") : 60103;
544
- function _n(e) {
545
- return e.$$typeof === En;
543
+ var xr = typeof Symbol == "function" && Symbol.for, Er = xr ? Symbol.for("react.element") : 60103;
544
+ function _r(e) {
545
+ return e.$$typeof === Er;
546
546
  }
547
- function wn(e) {
547
+ function wr(e) {
548
548
  return Array.isArray(e) ? [] : {};
549
549
  }
550
- function tt(e, t) {
551
- return t.clone !== !1 && t.isMergeableObject(e) ? Fe(wn(e), e, t) : e;
550
+ function et(e, t) {
551
+ return t.clone !== !1 && t.isMergeableObject(e) ? Fe(wr(e), e, t) : e;
552
552
  }
553
- function Tn(e, t, r) {
554
- return e.concat(t).map(function(n) {
555
- return tt(n, r);
553
+ function Tr(e, t, n) {
554
+ return e.concat(t).map(function(r) {
555
+ return et(r, n);
556
556
  });
557
557
  }
558
- function Hn(e, t) {
558
+ function Hr(e, t) {
559
559
  if (!t.customMerge)
560
560
  return Fe;
561
- var r = t.customMerge(e);
562
- return typeof r == "function" ? r : Fe;
561
+ var n = t.customMerge(e);
562
+ return typeof n == "function" ? n : Fe;
563
563
  }
564
- function An(e) {
564
+ function Ar(e) {
565
565
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
566
566
  return Object.propertyIsEnumerable.call(e, t);
567
567
  }) : [];
568
568
  }
569
569
  function Jt(e) {
570
- return Object.keys(e).concat(An(e));
570
+ return Object.keys(e).concat(Ar(e));
571
571
  }
572
- function Tr(e, t) {
572
+ function Hn(e, t) {
573
573
  try {
574
574
  return t in e;
575
575
  } catch {
576
576
  return !1;
577
577
  }
578
578
  }
579
- function Bn(e, t) {
580
- return Tr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
579
+ function Br(e, t) {
580
+ return Hn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
581
581
  }
582
- function Sn(e, t, r) {
583
- var n = {};
584
- return r.isMergeableObject(e) && Jt(e).forEach(function(i) {
585
- n[i] = tt(e[i], r);
582
+ function Sr(e, t, n) {
583
+ var r = {};
584
+ return n.isMergeableObject(e) && Jt(e).forEach(function(i) {
585
+ r[i] = et(e[i], n);
586
586
  }), Jt(t).forEach(function(i) {
587
- Bn(e, i) || (Tr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = tt(t[i], r));
588
- }), n;
587
+ Br(e, i) || (Hn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Hr(i, n)(e[i], t[i], n) : r[i] = et(t[i], n));
588
+ }), r;
589
589
  }
590
- function Fe(e, t, r) {
591
- r = r || {}, r.arrayMerge = r.arrayMerge || Tn, r.isMergeableObject = r.isMergeableObject || bn, r.cloneUnlessOtherwiseSpecified = tt;
592
- var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
593
- return a ? n ? r.arrayMerge(e, t, r) : Sn(e, t, r) : tt(t, r);
590
+ function Fe(e, t, n) {
591
+ n = n || {}, n.arrayMerge = n.arrayMerge || Tr, n.isMergeableObject = n.isMergeableObject || br, n.cloneUnlessOtherwiseSpecified = et;
592
+ var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
593
+ return a ? r ? n.arrayMerge(e, t, n) : Sr(e, t, n) : et(t, n);
594
594
  }
595
- Fe.all = function(t, r) {
595
+ Fe.all = function(t, n) {
596
596
  if (!Array.isArray(t))
597
597
  throw new Error("first argument should be an array");
598
- return t.reduce(function(n, i) {
599
- return Fe(n, i, r);
598
+ return t.reduce(function(r, i) {
599
+ return Fe(r, i, n);
600
600
  }, {});
601
601
  };
602
- var Cn = Fe, Pn = Cn;
603
- const In = /* @__PURE__ */ gn(Pn);
604
- var It = function(e, t) {
605
- return It = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
606
- r.__proto__ = n;
607
- } || function(r, n) {
608
- for (var i in n)
609
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
610
- }, It(e, t);
602
+ var Cr = Fe, Pr = Cr;
603
+ const Ir = /* @__PURE__ */ gr(Pr);
604
+ /*! *****************************************************************************
605
+ Copyright (c) Microsoft Corporation.
606
+
607
+ Permission to use, copy, modify, and/or distribute this software for any
608
+ purpose with or without fee is hereby granted.
609
+
610
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
611
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
612
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
613
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
614
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
615
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
616
+ PERFORMANCE OF THIS SOFTWARE.
617
+ ***************************************************************************** */
618
+ var Pt = function(e, t) {
619
+ return Pt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
620
+ n.__proto__ = r;
621
+ } || function(n, r) {
622
+ for (var i in r)
623
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
624
+ }, Pt(e, t);
611
625
  };
612
- function yt(e, t) {
626
+ function bt(e, t) {
613
627
  if (typeof t != "function" && t !== null)
614
628
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
615
- It(e, t);
616
- function r() {
629
+ Pt(e, t);
630
+ function n() {
617
631
  this.constructor = e;
618
632
  }
619
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
620
- }
621
- var ce = function() {
622
- return ce = Object.assign || function(t) {
623
- for (var r, n = 1, i = arguments.length; n < i; n++) {
624
- r = arguments[n];
625
- for (var a in r)
626
- Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
633
+ e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
634
+ }
635
+ var B = function() {
636
+ return B = Object.assign || function(t) {
637
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
638
+ n = arguments[r];
639
+ for (var a in n)
640
+ Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
627
641
  }
628
642
  return t;
629
- }, ce.apply(this, arguments);
643
+ }, B.apply(this, arguments);
630
644
  };
631
- function Nn(e, t) {
632
- var r = {};
633
- for (var n in e)
634
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
645
+ function Nr(e, t) {
646
+ var n = {};
647
+ for (var r in e)
648
+ Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
635
649
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
636
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
637
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
638
- return r;
650
+ for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
651
+ t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
652
+ return n;
639
653
  }
640
- function Tt(e, t, r) {
641
- if (r || arguments.length === 2)
642
- for (var n = 0, i = t.length, a; n < i; n++)
643
- (a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
644
- return e.concat(a || Array.prototype.slice.call(t));
654
+ function wt(e, t, n) {
655
+ if (arguments.length === 2)
656
+ for (var r = 0, i = t.length, a; r < i; r++)
657
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
658
+ return e.concat(a || t);
645
659
  }
646
- function Ht(e, t) {
647
- var r = t && t.cache ? t.cache : Fn, n = t && t.serializer ? t.serializer : Dn, i = t && t.strategy ? t.strategy : Mn;
660
+ function Tt(e, t) {
661
+ var n = t && t.cache ? t.cache : Ur, r = t && t.serializer ? t.serializer : Dr, i = t && t.strategy ? t.strategy : Lr;
648
662
  return i(e, {
649
- cache: r,
650
- serializer: n
663
+ cache: n,
664
+ serializer: r
651
665
  });
652
666
  }
653
- function On(e) {
667
+ function Or(e) {
654
668
  return e == null || typeof e == "number" || typeof e == "boolean";
655
669
  }
656
- function Ln(e, t, r, n) {
657
- var i = On(n) ? n : r(n), a = t.get(i);
658
- return typeof a > "u" && (a = e.call(this, n), t.set(i, a)), a;
670
+ function An(e, t, n, r) {
671
+ var i = Or(r) ? r : n(r), a = t.get(i);
672
+ return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
673
+ }
674
+ function Bn(e, t, n) {
675
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
676
+ return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
659
677
  }
660
- function Hr(e, t, r) {
661
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
662
- return typeof a > "u" && (a = e.apply(this, n), t.set(i, a)), a;
678
+ function kt(e, t, n, r, i) {
679
+ return n.bind(t, e, r, i);
663
680
  }
664
- function Ar(e, t, r, n, i) {
665
- return r.bind(t, e, n, i);
681
+ function Lr(e, t) {
682
+ var n = e.length === 1 ? An : Bn;
683
+ return kt(e, this, n, t.cache.create(), t.serializer);
666
684
  }
667
- function Mn(e, t) {
668
- var r = e.length === 1 ? Ln : Hr;
669
- return Ar(e, this, r, t.cache.create(), t.serializer);
685
+ function Mr(e, t) {
686
+ return kt(e, this, Bn, t.cache.create(), t.serializer);
670
687
  }
671
- function Rn(e, t) {
672
- return Ar(e, this, Hr, t.cache.create(), t.serializer);
688
+ function Rr(e, t) {
689
+ return kt(e, this, An, t.cache.create(), t.serializer);
673
690
  }
674
- var Dn = function() {
691
+ var Dr = function() {
675
692
  return JSON.stringify(arguments);
676
- }, Un = (
677
- /** @class */
678
- function() {
679
- function e() {
680
- this.cache = /* @__PURE__ */ Object.create(null);
681
- }
682
- return e.prototype.get = function(t) {
683
- return this.cache[t];
684
- }, e.prototype.set = function(t, r) {
685
- this.cache[t] = r;
686
- }, e;
687
- }()
688
- ), Fn = {
693
+ };
694
+ function $t() {
695
+ this.cache = /* @__PURE__ */ Object.create(null);
696
+ }
697
+ $t.prototype.get = function(e) {
698
+ return this.cache[e];
699
+ };
700
+ $t.prototype.set = function(e, t) {
701
+ this.cache[e] = t;
702
+ };
703
+ var Ur = {
689
704
  create: function() {
690
- return new Un();
705
+ return new $t();
691
706
  }
692
- }, At = {
693
- variadic: Rn
694
- }, mt = function() {
695
- return mt = Object.assign || function(t) {
696
- for (var r, n = 1, i = arguments.length; n < i; n++) {
697
- r = arguments[n];
698
- for (var a in r)
699
- Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
700
- }
701
- return t;
702
- }, mt.apply(this, arguments);
703
- };
704
- var _;
707
+ }, Ht = {
708
+ variadic: Mr,
709
+ monadic: Rr
710
+ }, w;
705
711
  (function(e) {
706
712
  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";
707
- })(_ || (_ = {}));
708
- var S;
713
+ })(w || (w = {}));
714
+ var C;
709
715
  (function(e) {
710
716
  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";
711
- })(S || (S = {}));
717
+ })(C || (C = {}));
712
718
  var Ge;
713
719
  (function(e) {
714
720
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
715
721
  })(Ge || (Ge = {}));
716
722
  function Qt(e) {
717
- return e.type === S.literal;
723
+ return e.type === C.literal;
718
724
  }
719
- function Gn(e) {
720
- return e.type === S.argument;
725
+ function Fr(e) {
726
+ return e.type === C.argument;
721
727
  }
722
- function Br(e) {
723
- return e.type === S.number;
728
+ function Sn(e) {
729
+ return e.type === C.number;
724
730
  }
725
- function Sr(e) {
726
- return e.type === S.date;
731
+ function Cn(e) {
732
+ return e.type === C.date;
727
733
  }
728
- function Cr(e) {
729
- return e.type === S.time;
734
+ function Pn(e) {
735
+ return e.type === C.time;
730
736
  }
731
- function Pr(e) {
732
- return e.type === S.select;
737
+ function In(e) {
738
+ return e.type === C.select;
733
739
  }
734
- function Ir(e) {
735
- return e.type === S.plural;
740
+ function Nn(e) {
741
+ return e.type === C.plural;
736
742
  }
737
- function kn(e) {
738
- return e.type === S.pound;
743
+ function Gr(e) {
744
+ return e.type === C.pound;
739
745
  }
740
- function Nr(e) {
741
- return e.type === S.tag;
746
+ function On(e) {
747
+ return e.type === C.tag;
742
748
  }
743
- function Or(e) {
749
+ function Ln(e) {
744
750
  return !!(e && typeof e == "object" && e.type === Ge.number);
745
751
  }
746
- function Nt(e) {
752
+ function It(e) {
747
753
  return !!(e && typeof e == "object" && e.type === Ge.dateTime);
748
754
  }
749
- var Lr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, jn = /(?:[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;
750
- function $n(e) {
755
+ var Mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kr = /(?:[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;
756
+ function $r(e) {
751
757
  var t = {};
752
- return e.replace(jn, function(r) {
753
- var n = r.length;
754
- switch (r[0]) {
758
+ return e.replace(kr, function(n) {
759
+ var r = n.length;
760
+ switch (n[0]) {
755
761
  case "G":
756
- t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
762
+ t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
757
763
  break;
758
764
  case "y":
759
- t.year = n === 2 ? "2-digit" : "numeric";
765
+ t.year = r === 2 ? "2-digit" : "numeric";
760
766
  break;
761
767
  case "Y":
762
768
  case "u":
@@ -768,30 +774,30 @@ function $n(e) {
768
774
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
769
775
  case "M":
770
776
  case "L":
771
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
777
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
772
778
  break;
773
779
  case "w":
774
780
  case "W":
775
781
  throw new RangeError("`w/W` (week) patterns are not supported");
776
782
  case "d":
777
- t.day = ["numeric", "2-digit"][n - 1];
783
+ t.day = ["numeric", "2-digit"][r - 1];
778
784
  break;
779
785
  case "D":
780
786
  case "F":
781
787
  case "g":
782
788
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
783
789
  case "E":
784
- t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
790
+ t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
785
791
  break;
786
792
  case "e":
787
- if (n < 4)
793
+ if (r < 4)
788
794
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
789
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
795
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
790
796
  break;
791
797
  case "c":
792
- if (n < 4)
798
+ if (r < 4)
793
799
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
794
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
800
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
795
801
  break;
796
802
  case "a":
797
803
  t.hour12 = !0;
@@ -800,32 +806,32 @@ function $n(e) {
800
806
  case "B":
801
807
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
802
808
  case "h":
803
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
809
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
804
810
  break;
805
811
  case "H":
806
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
812
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
807
813
  break;
808
814
  case "K":
809
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
815
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
810
816
  break;
811
817
  case "k":
812
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
818
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
813
819
  break;
814
820
  case "j":
815
821
  case "J":
816
822
  case "C":
817
823
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
818
824
  case "m":
819
- t.minute = ["numeric", "2-digit"][n - 1];
825
+ t.minute = ["numeric", "2-digit"][r - 1];
820
826
  break;
821
827
  case "s":
822
- t.second = ["numeric", "2-digit"][n - 1];
828
+ t.second = ["numeric", "2-digit"][r - 1];
823
829
  break;
824
830
  case "S":
825
831
  case "A":
826
832
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
827
833
  case "z":
828
- t.timeZoneName = n < 4 ? "short" : "long";
834
+ t.timeZoneName = r < 4 ? "short" : "long";
829
835
  break;
830
836
  case "Z":
831
837
  case "O":
@@ -838,46 +844,36 @@ function $n(e) {
838
844
  return "";
839
845
  }), t;
840
846
  }
841
- var N = function() {
842
- return N = Object.assign || function(t) {
843
- for (var r, n = 1, i = arguments.length; n < i; n++) {
844
- r = arguments[n];
845
- for (var a in r)
846
- Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
847
- }
848
- return t;
849
- }, N.apply(this, arguments);
850
- };
851
- var Vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
852
- function zn(e) {
847
+ var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
848
+ function Vr(e) {
853
849
  if (e.length === 0)
854
850
  throw new Error("Number skeleton cannot be empty");
855
- for (var t = e.split(Vn).filter(function(d) {
851
+ for (var t = e.split(jr).filter(function(d) {
856
852
  return d.length > 0;
857
- }), r = [], n = 0, i = t; n < i.length; n++) {
858
- var a = i[n], o = a.split("/");
853
+ }), n = [], r = 0, i = t; r < i.length; r++) {
854
+ var a = i[r], o = a.split("/");
859
855
  if (o.length === 0)
860
856
  throw new Error("Invalid number skeleton");
861
- for (var s = o[0], c = o.slice(1), l = 0, u = c; l < u.length; l++) {
862
- var h = u[l];
863
- if (h.length === 0)
857
+ for (var s = o[0], c = o.slice(1), u = 0, l = c; u < l.length; u++) {
858
+ var f = l[u];
859
+ if (f.length === 0)
864
860
  throw new Error("Invalid number skeleton");
865
861
  }
866
- r.push({ stem: s, options: c });
862
+ n.push({ stem: s, options: c });
867
863
  }
868
- return r;
864
+ return n;
869
865
  }
870
- function Xn(e) {
866
+ function zr(e) {
871
867
  return e.replace(/^(.*?)-/, "");
872
868
  }
873
- var Yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mr = /^(@+)?(\+|#+)?[rs]?$/g, Wn = /(\*)(0+)|(#+)(0+)|(0+)/g, Rr = /^(0+)$/;
869
+ var Yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rn = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Dn = /^(0+)$/;
874
870
  function Kt(e) {
875
871
  var t = {};
876
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Mr, function(r, n, i) {
877
- return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
872
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rn, function(n, r, i) {
873
+ return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
878
874
  }), t;
879
875
  }
880
- function Dr(e) {
876
+ function Un(e) {
881
877
  switch (e) {
882
878
  case "sign-auto":
883
879
  return {
@@ -917,27 +913,27 @@ function Dr(e) {
917
913
  };
918
914
  }
919
915
  }
920
- function Zn(e) {
916
+ function Wr(e) {
921
917
  var t;
922
918
  if (e[0] === "E" && e[1] === "E" ? (t = {
923
919
  notation: "engineering"
924
920
  }, e = e.slice(2)) : e[0] === "E" && (t = {
925
921
  notation: "scientific"
926
922
  }, e = e.slice(1)), t) {
927
- var r = e.slice(0, 2);
928
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rr.test(e))
923
+ var n = e.slice(0, 2);
924
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dn.test(e))
929
925
  throw new Error("Malformed concise eng/scientific notation");
930
926
  t.minimumIntegerDigits = e.length;
931
927
  }
932
928
  return t;
933
929
  }
934
- function er(e) {
935
- var t = {}, r = Dr(e);
936
- return r || t;
930
+ function en(e) {
931
+ var t = {}, n = Un(e);
932
+ return n || t;
937
933
  }
938
- function qn(e) {
939
- for (var t = {}, r = 0, n = e; r < n.length; r++) {
940
- var i = n[r];
934
+ function Zr(e) {
935
+ for (var t = {}, n = 0, r = e; n < r.length; n++) {
936
+ var i = r[n];
941
937
  switch (i.stem) {
942
938
  case "percent":
943
939
  case "%":
@@ -959,7 +955,7 @@ function qn(e) {
959
955
  continue;
960
956
  case "measure-unit":
961
957
  case "unit":
962
- t.style = "unit", t.unit = Xn(i.options[0]);
958
+ t.style = "unit", t.unit = zr(i.options[0]);
963
959
  continue;
964
960
  case "compact-short":
965
961
  case "K":
@@ -970,13 +966,13 @@ function qn(e) {
970
966
  t.notation = "compact", t.compactDisplay = "long";
971
967
  continue;
972
968
  case "scientific":
973
- t = N(N(N({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
974
- return N(N({}, c), er(l));
969
+ t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
970
+ return B(B({}, c), en(u));
975
971
  }, {}));
976
972
  continue;
977
973
  case "engineering":
978
- t = N(N(N({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
979
- return N(N({}, c), er(l));
974
+ t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
975
+ return B(B({}, c), en(u));
980
976
  }, {}));
981
977
  continue;
982
978
  case "notation-simple":
@@ -1021,45 +1017,45 @@ function qn(e) {
1021
1017
  case "integer-width":
1022
1018
  if (i.options.length > 1)
1023
1019
  throw new RangeError("integer-width stems only accept a single optional option");
1024
- i.options[0].replace(Wn, function(c, l, u, h, d, b) {
1025
- if (l)
1026
- t.minimumIntegerDigits = u.length;
1020
+ i.options[0].replace(Xr, function(c, u, l, f, d, y) {
1021
+ if (u)
1022
+ t.minimumIntegerDigits = l.length;
1027
1023
  else {
1028
- if (h && d)
1024
+ if (f && d)
1029
1025
  throw new Error("We currently do not support maximum integer digits");
1030
- if (b)
1026
+ if (y)
1031
1027
  throw new Error("We currently do not support exact integer digits");
1032
1028
  }
1033
1029
  return "";
1034
1030
  });
1035
1031
  continue;
1036
1032
  }
1037
- if (Rr.test(i.stem)) {
1033
+ if (Dn.test(i.stem)) {
1038
1034
  t.minimumIntegerDigits = i.stem.length;
1039
1035
  continue;
1040
1036
  }
1041
1037
  if (Yt.test(i.stem)) {
1042
1038
  if (i.options.length > 1)
1043
1039
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1044
- i.stem.replace(Yt, function(c, l, u, h, d, b) {
1045
- return u === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1040
+ i.stem.replace(Yt, function(c, u, l, f, d, y) {
1041
+ return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && y ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1046
1042
  });
1047
1043
  var a = i.options[0];
1048
- a === "w" ? t = N(N({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = N(N({}, t), Kt(a)));
1044
+ a === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = B(B({}, t), Kt(a)));
1049
1045
  continue;
1050
1046
  }
1051
- if (Mr.test(i.stem)) {
1052
- t = N(N({}, t), Kt(i.stem));
1047
+ if (Rn.test(i.stem)) {
1048
+ t = B(B({}, t), Kt(i.stem));
1053
1049
  continue;
1054
1050
  }
1055
- var o = Dr(i.stem);
1056
- o && (t = N(N({}, t), o));
1057
- var s = Zn(i.stem);
1058
- s && (t = N(N({}, t), s));
1051
+ var o = Un(i.stem);
1052
+ o && (t = B(B({}, t), o));
1053
+ var s = Wr(i.stem);
1054
+ s && (t = B(B({}, t), s));
1059
1055
  }
1060
1056
  return t;
1061
1057
  }
1062
- var ut = {
1058
+ var lt = {
1063
1059
  "001": [
1064
1060
  "H",
1065
1061
  "h"
@@ -2474,23 +2470,23 @@ var ut = {
2474
2470
  "h"
2475
2471
  ]
2476
2472
  };
2477
- function Jn(e, t) {
2478
- for (var r = "", n = 0; n < e.length; n++) {
2479
- var i = e.charAt(n);
2473
+ function qr(e, t) {
2474
+ for (var n = "", r = 0; r < e.length; r++) {
2475
+ var i = e.charAt(r);
2480
2476
  if (i === "j") {
2481
- for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2482
- a++, n++;
2483
- var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a", l = Qn(t);
2484
- for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2485
- r += c;
2477
+ for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2478
+ a++, r++;
2479
+ var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a", u = Jr(t);
2480
+ for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2481
+ n += c;
2486
2482
  for (; o-- > 0; )
2487
- r = l + r;
2483
+ n = u + n;
2488
2484
  } else
2489
- i === "J" ? r += "H" : r += i;
2485
+ i === "J" ? n += "H" : n += i;
2490
2486
  }
2491
- return r;
2487
+ return n;
2492
2488
  }
2493
- function Qn(e) {
2489
+ function Jr(e) {
2494
2490
  var t = e.hourCycle;
2495
2491
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2496
2492
  e.hourCycles && // @ts-ignore
@@ -2507,73 +2503,73 @@ function Qn(e) {
2507
2503
  default:
2508
2504
  throw new Error("Invalid hourCycle");
2509
2505
  }
2510
- var r = e.language, n;
2511
- r !== "root" && (n = e.maximize().region);
2512
- var i = ut[n || ""] || ut[r || ""] || ut["".concat(r, "-001")] || ut["001"];
2506
+ var n = e.language, r;
2507
+ n !== "root" && (r = e.maximize().region);
2508
+ var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
2513
2509
  return i[0];
2514
2510
  }
2515
- var Bt, Yn = new RegExp("^".concat(Lr.source, "*")), Kn = new RegExp("".concat(Lr.source, "*$"));
2516
- function w(e, t) {
2511
+ var At, Qr = new RegExp("^".concat(Mn.source, "*")), Yr = new RegExp("".concat(Mn.source, "*$"));
2512
+ function T(e, t) {
2517
2513
  return { start: e, end: t };
2518
2514
  }
2519
- var ei = !!String.prototype.startsWith && "_a".startsWith("a", 1), ti = !!String.fromCodePoint, ri = !!Object.fromEntries, ni = !!String.prototype.codePointAt, ii = !!String.prototype.trimStart, ai = !!String.prototype.trimEnd, oi = !!Number.isSafeInteger, si = oi ? Number.isSafeInteger : function(e) {
2515
+ var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ni = !!String.prototype.codePointAt, ri = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, ai = !!Number.isSafeInteger, oi = ai ? Number.isSafeInteger : function(e) {
2520
2516
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2521
- }, Ot = !0;
2517
+ }, Nt = !0;
2522
2518
  try {
2523
- var ui = Fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2524
- Ot = ((Bt = ui.exec("a")) === null || Bt === void 0 ? void 0 : Bt[0]) === "a";
2519
+ var si = Gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2520
+ Nt = ((At = si.exec("a")) === null || At === void 0 ? void 0 : At[0]) === "a";
2525
2521
  } catch {
2526
- Ot = !1;
2522
+ Nt = !1;
2527
2523
  }
2528
- var tr = ei ? (
2524
+ var tn = Kr ? (
2529
2525
  // Native
2530
- function(t, r, n) {
2531
- return t.startsWith(r, n);
2526
+ function(t, n, r) {
2527
+ return t.startsWith(n, r);
2532
2528
  }
2533
2529
  ) : (
2534
2530
  // For IE11
2535
- function(t, r, n) {
2536
- return t.slice(n, n + r.length) === r;
2531
+ function(t, n, r) {
2532
+ return t.slice(r, r + n.length) === n;
2537
2533
  }
2538
- ), Lt = ti ? String.fromCodePoint : (
2534
+ ), Ot = ei ? String.fromCodePoint : (
2539
2535
  // IE11
2540
2536
  function() {
2541
- for (var t = [], r = 0; r < arguments.length; r++)
2542
- t[r] = arguments[r];
2543
- for (var n = "", i = t.length, a = 0, o; i > a; ) {
2537
+ for (var t = [], n = 0; n < arguments.length; n++)
2538
+ t[n] = arguments[n];
2539
+ for (var r = "", i = t.length, a = 0, o; i > a; ) {
2544
2540
  if (o = t[a++], o > 1114111)
2545
2541
  throw RangeError(o + " is not a valid code point");
2546
- n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2542
+ r += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2547
2543
  }
2548
- return n;
2544
+ return r;
2549
2545
  }
2550
- ), rr = (
2546
+ ), nn = (
2551
2547
  // native
2552
- ri ? Object.fromEntries : (
2548
+ ti ? Object.fromEntries : (
2553
2549
  // Ponyfill
2554
2550
  function(t) {
2555
- for (var r = {}, n = 0, i = t; n < i.length; n++) {
2556
- var a = i[n], o = a[0], s = a[1];
2557
- r[o] = s;
2551
+ for (var n = {}, r = 0, i = t; r < i.length; r++) {
2552
+ var a = i[r], o = a[0], s = a[1];
2553
+ n[o] = s;
2558
2554
  }
2559
- return r;
2555
+ return n;
2560
2556
  }
2561
2557
  )
2562
- ), Ur = ni ? (
2558
+ ), Fn = ni ? (
2563
2559
  // Native
2564
- function(t, r) {
2565
- return t.codePointAt(r);
2560
+ function(t, n) {
2561
+ return t.codePointAt(n);
2566
2562
  }
2567
2563
  ) : (
2568
2564
  // IE 11
2569
- function(t, r) {
2570
- var n = t.length;
2571
- if (!(r < 0 || r >= n)) {
2572
- var i = t.charCodeAt(r), a;
2573
- return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2565
+ function(t, n) {
2566
+ var r = t.length;
2567
+ if (!(n < 0 || n >= r)) {
2568
+ var i = t.charCodeAt(n), a;
2569
+ return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2574
2570
  }
2575
2571
  }
2576
- ), li = ii ? (
2572
+ ), li = ri ? (
2577
2573
  // Native
2578
2574
  function(t) {
2579
2575
  return t.trimStart();
@@ -2581,9 +2577,9 @@ var tr = ei ? (
2581
2577
  ) : (
2582
2578
  // Ponyfill
2583
2579
  function(t) {
2584
- return t.replace(Yn, "");
2580
+ return t.replace(Qr, "");
2585
2581
  }
2586
- ), ci = ai ? (
2582
+ ), ui = ii ? (
2587
2583
  // Native
2588
2584
  function(t) {
2589
2585
  return t.trimEnd();
@@ -2591,69 +2587,69 @@ var tr = ei ? (
2591
2587
  ) : (
2592
2588
  // Ponyfill
2593
2589
  function(t) {
2594
- return t.replace(Kn, "");
2590
+ return t.replace(Yr, "");
2595
2591
  }
2596
2592
  );
2597
- function Fr(e, t) {
2593
+ function Gn(e, t) {
2598
2594
  return new RegExp(e, t);
2599
2595
  }
2600
- var Mt;
2601
- if (Ot) {
2602
- var nr = Fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2603
- Mt = function(t, r) {
2604
- var n;
2605
- nr.lastIndex = r;
2606
- var i = nr.exec(t);
2607
- return (n = i[1]) !== null && n !== void 0 ? n : "";
2596
+ var Lt;
2597
+ if (Nt) {
2598
+ var rn = Gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2599
+ Lt = function(t, n) {
2600
+ var r;
2601
+ rn.lastIndex = n;
2602
+ var i = rn.exec(t);
2603
+ return (r = i[1]) !== null && r !== void 0 ? r : "";
2608
2604
  };
2609
2605
  } else
2610
- Mt = function(t, r) {
2611
- for (var n = []; ; ) {
2612
- var i = Ur(t, r);
2613
- if (i === void 0 || Gr(i) || mi(i))
2606
+ Lt = function(t, n) {
2607
+ for (var r = []; ; ) {
2608
+ var i = Fn(t, n);
2609
+ if (i === void 0 || kn(i) || pi(i))
2614
2610
  break;
2615
- n.push(i), r += i >= 65536 ? 2 : 1;
2611
+ r.push(i), n += i >= 65536 ? 2 : 1;
2616
2612
  }
2617
- return Lt.apply(void 0, n);
2613
+ return Ot.apply(void 0, r);
2618
2614
  };
2619
- var hi = (
2615
+ var ci = (
2620
2616
  /** @class */
2621
2617
  function() {
2622
- function e(t, r) {
2623
- r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
2618
+ function e(t, n) {
2619
+ n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
2624
2620
  }
2625
2621
  return e.prototype.parse = function() {
2626
2622
  if (this.offset() !== 0)
2627
2623
  throw Error("parser can only be used once");
2628
2624
  return this.parseMessage(0, "", !1);
2629
- }, e.prototype.parseMessage = function(t, r, n) {
2625
+ }, e.prototype.parseMessage = function(t, n, r) {
2630
2626
  for (var i = []; !this.isEOF(); ) {
2631
2627
  var a = this.char();
2632
2628
  if (a === 123) {
2633
- var o = this.parseArgument(t, n);
2629
+ var o = this.parseArgument(t, r);
2634
2630
  if (o.err)
2635
2631
  return o;
2636
2632
  i.push(o.val);
2637
2633
  } else {
2638
2634
  if (a === 125 && t > 0)
2639
2635
  break;
2640
- if (a === 35 && (r === "plural" || r === "selectordinal")) {
2636
+ if (a === 35 && (n === "plural" || n === "selectordinal")) {
2641
2637
  var s = this.clonePosition();
2642
2638
  this.bump(), i.push({
2643
- type: S.pound,
2644
- location: w(s, this.clonePosition())
2639
+ type: C.pound,
2640
+ location: T(s, this.clonePosition())
2645
2641
  });
2646
2642
  } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2647
- if (n)
2643
+ if (r)
2648
2644
  break;
2649
- return this.error(_.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
2650
- } else if (a === 60 && !this.ignoreTag && Rt(this.peek() || 0)) {
2651
- var o = this.parseTag(t, r);
2645
+ return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
2646
+ } else if (a === 60 && !this.ignoreTag && Mt(this.peek() || 0)) {
2647
+ var o = this.parseTag(t, n);
2652
2648
  if (o.err)
2653
2649
  return o;
2654
2650
  i.push(o.val);
2655
2651
  } else {
2656
- var o = this.parseLiteral(t, r);
2652
+ var o = this.parseLiteral(t, n);
2657
2653
  if (o.err)
2658
2654
  return o;
2659
2655
  i.push(o.val);
@@ -2661,54 +2657,54 @@ var hi = (
2661
2657
  }
2662
2658
  }
2663
2659
  return { val: i, err: null };
2664
- }, e.prototype.parseTag = function(t, r) {
2665
- var n = this.clonePosition();
2660
+ }, e.prototype.parseTag = function(t, n) {
2661
+ var r = this.clonePosition();
2666
2662
  this.bump();
2667
2663
  var i = this.parseTagName();
2668
2664
  if (this.bumpSpace(), this.bumpIf("/>"))
2669
2665
  return {
2670
2666
  val: {
2671
- type: S.literal,
2667
+ type: C.literal,
2672
2668
  value: "<".concat(i, "/>"),
2673
- location: w(n, this.clonePosition())
2669
+ location: T(r, this.clonePosition())
2674
2670
  },
2675
2671
  err: null
2676
2672
  };
2677
2673
  if (this.bumpIf(">")) {
2678
- var a = this.parseMessage(t + 1, r, !0);
2674
+ var a = this.parseMessage(t + 1, n, !0);
2679
2675
  if (a.err)
2680
2676
  return a;
2681
2677
  var o = a.val, s = this.clonePosition();
2682
2678
  if (this.bumpIf("</")) {
2683
- if (this.isEOF() || !Rt(this.char()))
2684
- return this.error(_.INVALID_TAG, w(s, this.clonePosition()));
2685
- var c = this.clonePosition(), l = this.parseTagName();
2686
- return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, w(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2679
+ if (this.isEOF() || !Mt(this.char()))
2680
+ return this.error(w.INVALID_TAG, T(s, this.clonePosition()));
2681
+ var c = this.clonePosition(), u = this.parseTagName();
2682
+ return i !== u ? this.error(w.UNMATCHED_CLOSING_TAG, T(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2687
2683
  val: {
2688
- type: S.tag,
2684
+ type: C.tag,
2689
2685
  value: i,
2690
2686
  children: o,
2691
- location: w(n, this.clonePosition())
2687
+ location: T(r, this.clonePosition())
2692
2688
  },
2693
2689
  err: null
2694
- } : this.error(_.INVALID_TAG, w(s, this.clonePosition())));
2690
+ } : this.error(w.INVALID_TAG, T(s, this.clonePosition())));
2695
2691
  } else
2696
- return this.error(_.UNCLOSED_TAG, w(n, this.clonePosition()));
2692
+ return this.error(w.UNCLOSED_TAG, T(r, this.clonePosition()));
2697
2693
  } else
2698
- return this.error(_.INVALID_TAG, w(n, this.clonePosition()));
2694
+ return this.error(w.INVALID_TAG, T(r, this.clonePosition()));
2699
2695
  }, e.prototype.parseTagName = function() {
2700
2696
  var t = this.offset();
2701
- for (this.bump(); !this.isEOF() && pi(this.char()); )
2697
+ for (this.bump(); !this.isEOF() && fi(this.char()); )
2702
2698
  this.bump();
2703
2699
  return this.message.slice(t, this.offset());
2704
- }, e.prototype.parseLiteral = function(t, r) {
2705
- for (var n = this.clonePosition(), i = ""; ; ) {
2706
- var a = this.tryParseQuote(r);
2700
+ }, e.prototype.parseLiteral = function(t, n) {
2701
+ for (var r = this.clonePosition(), i = ""; ; ) {
2702
+ var a = this.tryParseQuote(n);
2707
2703
  if (a) {
2708
2704
  i += a;
2709
2705
  continue;
2710
2706
  }
2711
- var o = this.tryParseUnquoted(t, r);
2707
+ var o = this.tryParseUnquoted(t, n);
2712
2708
  if (o) {
2713
2709
  i += o;
2714
2710
  continue;
@@ -2720,14 +2716,14 @@ var hi = (
2720
2716
  }
2721
2717
  break;
2722
2718
  }
2723
- var c = w(n, this.clonePosition());
2719
+ var c = T(r, this.clonePosition());
2724
2720
  return {
2725
- val: { type: S.literal, value: i, location: c },
2721
+ val: { type: C.literal, value: i, location: c },
2726
2722
  err: null
2727
2723
  };
2728
2724
  }, e.prototype.tryParseLeftAngleBracket = function() {
2729
2725
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2730
- !fi(this.peek() || 0)) ? (this.bump(), "<") : null;
2726
+ !hi(this.peek() || 0)) ? (this.bump(), "<") : null;
2731
2727
  }, e.prototype.tryParseQuote = function(t) {
2732
2728
  if (this.isEOF() || this.char() !== 39)
2733
2729
  return null;
@@ -2747,114 +2743,114 @@ var hi = (
2747
2743
  return null;
2748
2744
  }
2749
2745
  this.bump();
2750
- var r = [this.char()];
2746
+ var n = [this.char()];
2751
2747
  for (this.bump(); !this.isEOF(); ) {
2752
- var n = this.char();
2753
- if (n === 39)
2748
+ var r = this.char();
2749
+ if (r === 39)
2754
2750
  if (this.peek() === 39)
2755
- r.push(39), this.bump();
2751
+ n.push(39), this.bump();
2756
2752
  else {
2757
2753
  this.bump();
2758
2754
  break;
2759
2755
  }
2760
2756
  else
2761
- r.push(n);
2757
+ n.push(r);
2762
2758
  this.bump();
2763
2759
  }
2764
- return Lt.apply(void 0, r);
2765
- }, e.prototype.tryParseUnquoted = function(t, r) {
2760
+ return Ot.apply(void 0, n);
2761
+ }, e.prototype.tryParseUnquoted = function(t, n) {
2766
2762
  if (this.isEOF())
2767
2763
  return null;
2768
- var n = this.char();
2769
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Lt(n));
2770
- }, e.prototype.parseArgument = function(t, r) {
2771
- var n = this.clonePosition();
2764
+ var r = this.char();
2765
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Ot(r));
2766
+ }, e.prototype.parseArgument = function(t, n) {
2767
+ var r = this.clonePosition();
2772
2768
  if (this.bump(), this.bumpSpace(), this.isEOF())
2773
- return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
2769
+ return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2774
2770
  if (this.char() === 125)
2775
- return this.bump(), this.error(_.EMPTY_ARGUMENT, w(n, this.clonePosition()));
2771
+ return this.bump(), this.error(w.EMPTY_ARGUMENT, T(r, this.clonePosition()));
2776
2772
  var i = this.parseIdentifierIfPossible().value;
2777
2773
  if (!i)
2778
- return this.error(_.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
2774
+ return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2779
2775
  if (this.bumpSpace(), this.isEOF())
2780
- return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
2776
+ return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2781
2777
  switch (this.char()) {
2782
2778
  case 125:
2783
2779
  return this.bump(), {
2784
2780
  val: {
2785
- type: S.argument,
2781
+ type: C.argument,
2786
2782
  // value does not include the opening and closing braces.
2787
2783
  value: i,
2788
- location: w(n, this.clonePosition())
2784
+ location: T(r, this.clonePosition())
2789
2785
  },
2790
2786
  err: null
2791
2787
  };
2792
2788
  case 44:
2793
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2789
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2794
2790
  default:
2795
- return this.error(_.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
2791
+ return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2796
2792
  }
2797
2793
  }, e.prototype.parseIdentifierIfPossible = function() {
2798
- var t = this.clonePosition(), r = this.offset(), n = Mt(this.message, r), i = r + n.length;
2794
+ var t = this.clonePosition(), n = this.offset(), r = Lt(this.message, n), i = n + r.length;
2799
2795
  this.bumpTo(i);
2800
- var a = this.clonePosition(), o = w(t, a);
2801
- return { value: n, location: o };
2802
- }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2796
+ var a = this.clonePosition(), o = T(t, a);
2797
+ return { value: r, location: o };
2798
+ }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2803
2799
  var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2804
2800
  switch (s) {
2805
2801
  case "":
2806
- return this.error(_.EXPECT_ARGUMENT_TYPE, w(o, c));
2802
+ return this.error(w.EXPECT_ARGUMENT_TYPE, T(o, c));
2807
2803
  case "number":
2808
2804
  case "date":
2809
2805
  case "time": {
2810
2806
  this.bumpSpace();
2811
- var l = null;
2807
+ var u = null;
2812
2808
  if (this.bumpIf(",")) {
2813
2809
  this.bumpSpace();
2814
- var u = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
2815
- if (h.err)
2816
- return h;
2817
- var d = ci(h.val);
2810
+ var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2811
+ if (f.err)
2812
+ return f;
2813
+ var d = ui(f.val);
2818
2814
  if (d.length === 0)
2819
- return this.error(_.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
2820
- var b = w(u, this.clonePosition());
2821
- l = { style: d, styleLocation: b };
2815
+ return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
2816
+ var y = T(l, this.clonePosition());
2817
+ u = { style: d, styleLocation: y };
2822
2818
  }
2823
2819
  var v = this.tryParseArgumentClose(i);
2824
2820
  if (v.err)
2825
2821
  return v;
2826
- var P = w(i, this.clonePosition());
2827
- if (l && tr(l?.style, "::", 0)) {
2828
- var F = li(l.style.slice(2));
2822
+ var I = T(i, this.clonePosition());
2823
+ if (u && tn(u?.style, "::", 0)) {
2824
+ var U = li(u.style.slice(2));
2829
2825
  if (s === "number") {
2830
- var h = this.parseNumberSkeletonFromString(F, l.styleLocation);
2831
- return h.err ? h : {
2832
- val: { type: S.number, value: n, location: P, style: h.val },
2826
+ var f = this.parseNumberSkeletonFromString(U, u.styleLocation);
2827
+ return f.err ? f : {
2828
+ val: { type: C.number, value: r, location: I, style: f.val },
2833
2829
  err: null
2834
2830
  };
2835
2831
  } else {
2836
- if (F.length === 0)
2837
- return this.error(_.EXPECT_DATE_TIME_SKELETON, P);
2838
- var I = F;
2839
- this.locale && (I = Jn(F, this.locale));
2832
+ if (U.length === 0)
2833
+ return this.error(w.EXPECT_DATE_TIME_SKELETON, I);
2834
+ var N = U;
2835
+ this.locale && (N = qr(U, this.locale));
2840
2836
  var d = {
2841
2837
  type: Ge.dateTime,
2842
- pattern: I,
2843
- location: l.styleLocation,
2844
- parsedOptions: this.shouldParseSkeletons ? $n(I) : {}
2845
- }, D = s === "date" ? S.date : S.time;
2838
+ pattern: N,
2839
+ location: u.styleLocation,
2840
+ parsedOptions: this.shouldParseSkeletons ? $r(N) : {}
2841
+ }, R = s === "date" ? C.date : C.time;
2846
2842
  return {
2847
- val: { type: D, value: n, location: P, style: d },
2843
+ val: { type: R, value: r, location: I, style: d },
2848
2844
  err: null
2849
2845
  };
2850
2846
  }
2851
2847
  }
2852
2848
  return {
2853
2849
  val: {
2854
- type: s === "number" ? S.number : s === "date" ? S.date : S.time,
2855
- value: n,
2856
- location: P,
2857
- style: (a = l?.style) !== null && a !== void 0 ? a : null
2850
+ type: s === "number" ? C.number : s === "date" ? C.date : C.time,
2851
+ value: r,
2852
+ location: I,
2853
+ style: (a = u?.style) !== null && a !== void 0 ? a : null
2858
2854
  },
2859
2855
  err: null
2860
2856
  };
@@ -2862,61 +2858,61 @@ var hi = (
2862
2858
  case "plural":
2863
2859
  case "selectordinal":
2864
2860
  case "select": {
2865
- var U = this.clonePosition();
2861
+ var D = this.clonePosition();
2866
2862
  if (this.bumpSpace(), !this.bumpIf(","))
2867
- return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(U, mt({}, U)));
2863
+ return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(D, B({}, D)));
2868
2864
  this.bumpSpace();
2869
- var C = this.parseIdentifierIfPossible(), O = 0;
2870
- if (s !== "select" && C.value === "offset") {
2865
+ var P = this.parseIdentifierIfPossible(), O = 0;
2866
+ if (s !== "select" && P.value === "offset") {
2871
2867
  if (!this.bumpIf(":"))
2872
- return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
2868
+ return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
2873
2869
  this.bumpSpace();
2874
- var h = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2875
- if (h.err)
2876
- return h;
2877
- this.bumpSpace(), C = this.parseIdentifierIfPossible(), O = h.val;
2870
+ var f = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2871
+ if (f.err)
2872
+ return f;
2873
+ this.bumpSpace(), P = this.parseIdentifierIfPossible(), O = f.val;
2878
2874
  }
2879
- var q = this.tryParsePluralOrSelectOptions(t, s, r, C);
2880
- if (q.err)
2881
- return q;
2875
+ var Z = this.tryParsePluralOrSelectOptions(t, s, n, P);
2876
+ if (Z.err)
2877
+ return Z;
2882
2878
  var v = this.tryParseArgumentClose(i);
2883
2879
  if (v.err)
2884
2880
  return v;
2885
- var te = w(i, this.clonePosition());
2881
+ var K = T(i, this.clonePosition());
2886
2882
  return s === "select" ? {
2887
2883
  val: {
2888
- type: S.select,
2889
- value: n,
2890
- options: rr(q.val),
2891
- location: te
2884
+ type: C.select,
2885
+ value: r,
2886
+ options: nn(Z.val),
2887
+ location: K
2892
2888
  },
2893
2889
  err: null
2894
2890
  } : {
2895
2891
  val: {
2896
- type: S.plural,
2897
- value: n,
2898
- options: rr(q.val),
2892
+ type: C.plural,
2893
+ value: r,
2894
+ options: nn(Z.val),
2899
2895
  offset: O,
2900
2896
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2901
- location: te
2897
+ location: K
2902
2898
  },
2903
2899
  err: null
2904
2900
  };
2905
2901
  }
2906
2902
  default:
2907
- return this.error(_.INVALID_ARGUMENT_TYPE, w(o, c));
2903
+ return this.error(w.INVALID_ARGUMENT_TYPE, T(o, c));
2908
2904
  }
2909
2905
  }, e.prototype.tryParseArgumentClose = function(t) {
2910
- return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2906
+ return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2911
2907
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2912
- for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2913
- var n = this.char();
2914
- switch (n) {
2908
+ for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2909
+ var r = this.char();
2910
+ switch (r) {
2915
2911
  case 39: {
2916
2912
  this.bump();
2917
2913
  var i = this.clonePosition();
2918
2914
  if (!this.bumpUntil("'"))
2919
- return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
2915
+ return this.error(w.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, T(i, this.clonePosition()));
2920
2916
  this.bump();
2921
2917
  break;
2922
2918
  }
@@ -2929,7 +2925,7 @@ var hi = (
2929
2925
  t -= 1;
2930
2926
  else
2931
2927
  return {
2932
- val: this.message.slice(r.offset, this.offset()),
2928
+ val: this.message.slice(n.offset, this.offset()),
2933
2929
  err: null
2934
2930
  };
2935
2931
  break;
@@ -2940,61 +2936,61 @@ var hi = (
2940
2936
  }
2941
2937
  }
2942
2938
  return {
2943
- val: this.message.slice(r.offset, this.offset()),
2939
+ val: this.message.slice(n.offset, this.offset()),
2944
2940
  err: null
2945
2941
  };
2946
- }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2947
- var n = [];
2942
+ }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2943
+ var r = [];
2948
2944
  try {
2949
- n = zn(t);
2945
+ r = Vr(t);
2950
2946
  } catch {
2951
- return this.error(_.INVALID_NUMBER_SKELETON, r);
2947
+ return this.error(w.INVALID_NUMBER_SKELETON, n);
2952
2948
  }
2953
2949
  return {
2954
2950
  val: {
2955
2951
  type: Ge.number,
2956
- tokens: n,
2957
- location: r,
2958
- parsedOptions: this.shouldParseSkeletons ? qn(n) : {}
2952
+ tokens: r,
2953
+ location: n,
2954
+ parsedOptions: this.shouldParseSkeletons ? Zr(r) : {}
2959
2955
  },
2960
2956
  err: null
2961
2957
  };
2962
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2963
- for (var a, o = !1, s = [], c = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
2964
- if (l.length === 0) {
2965
- var h = this.clonePosition();
2966
- if (r !== "select" && this.bumpIf("=")) {
2967
- var d = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
2958
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2959
+ for (var a, o = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
2960
+ if (u.length === 0) {
2961
+ var f = this.clonePosition();
2962
+ if (n !== "select" && this.bumpIf("=")) {
2963
+ var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
2968
2964
  if (d.err)
2969
2965
  return d;
2970
- u = w(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
2966
+ l = T(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2971
2967
  } else
2972
2968
  break;
2973
2969
  }
2974
- if (c.has(l))
2975
- return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2976
- l === "other" && (o = !0), this.bumpSpace();
2977
- var b = this.clonePosition();
2970
+ if (c.has(u))
2971
+ return this.error(n === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2972
+ u === "other" && (o = !0), this.bumpSpace();
2973
+ var y = this.clonePosition();
2978
2974
  if (!this.bumpIf("{"))
2979
- return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
2980
- var v = this.parseMessage(t + 1, r, n);
2975
+ return this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
2976
+ var v = this.parseMessage(t + 1, n, r);
2981
2977
  if (v.err)
2982
2978
  return v;
2983
- var P = this.tryParseArgumentClose(b);
2984
- if (P.err)
2985
- return P;
2979
+ var I = this.tryParseArgumentClose(y);
2980
+ if (I.err)
2981
+ return I;
2986
2982
  s.push([
2987
- l,
2983
+ u,
2988
2984
  {
2989
2985
  value: v.val,
2990
- location: w(b, this.clonePosition())
2986
+ location: T(y, this.clonePosition())
2991
2987
  }
2992
- ]), c.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, u = a.location;
2988
+ ]), c.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, l = a.location;
2993
2989
  }
2994
- return s.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2995
- }, e.prototype.tryParseDecimalInteger = function(t, r) {
2996
- var n = 1, i = this.clonePosition();
2997
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2990
+ return s.length === 0 ? this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(w.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2991
+ }, e.prototype.tryParseDecimalInteger = function(t, n) {
2992
+ var r = 1, i = this.clonePosition();
2993
+ this.bumpIf("+") || this.bumpIf("-") && (r = -1);
2998
2994
  for (var a = !1, o = 0; !this.isEOF(); ) {
2999
2995
  var s = this.char();
3000
2996
  if (s >= 48 && s <= 57)
@@ -3002,8 +2998,8 @@ var hi = (
3002
2998
  else
3003
2999
  break;
3004
3000
  }
3005
- var c = w(i, this.clonePosition());
3006
- return a ? (o *= n, si(o) ? { val: o, err: null } : this.error(r, c)) : this.error(t, c);
3001
+ var c = T(i, this.clonePosition());
3002
+ return a ? (o *= r, oi(o) ? { val: o, err: null } : this.error(n, c)) : this.error(t, c);
3007
3003
  }, e.prototype.offset = function() {
3008
3004
  return this.position.offset;
3009
3005
  }, e.prototype.isEOF = function() {
@@ -3018,17 +3014,17 @@ var hi = (
3018
3014
  var t = this.position.offset;
3019
3015
  if (t >= this.message.length)
3020
3016
  throw Error("out of bound");
3021
- var r = Ur(this.message, t);
3022
- if (r === void 0)
3017
+ var n = Fn(this.message, t);
3018
+ if (n === void 0)
3023
3019
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3024
- return r;
3025
- }, e.prototype.error = function(t, r) {
3020
+ return n;
3021
+ }, e.prototype.error = function(t, n) {
3026
3022
  return {
3027
3023
  val: null,
3028
3024
  err: {
3029
3025
  kind: t,
3030
3026
  message: this.message,
3031
- location: r
3027
+ location: n
3032
3028
  }
3033
3029
  };
3034
3030
  }, e.prototype.bump = function() {
@@ -3037,299 +3033,299 @@ var hi = (
3037
3033
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3038
3034
  }
3039
3035
  }, e.prototype.bumpIf = function(t) {
3040
- if (tr(this.message, t, this.offset())) {
3041
- for (var r = 0; r < t.length; r++)
3036
+ if (tn(this.message, t, this.offset())) {
3037
+ for (var n = 0; n < t.length; n++)
3042
3038
  this.bump();
3043
3039
  return !0;
3044
3040
  }
3045
3041
  return !1;
3046
3042
  }, e.prototype.bumpUntil = function(t) {
3047
- var r = this.offset(), n = this.message.indexOf(t, r);
3048
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3043
+ var n = this.offset(), r = this.message.indexOf(t, n);
3044
+ return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3049
3045
  }, e.prototype.bumpTo = function(t) {
3050
3046
  if (this.offset() > t)
3051
3047
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3052
3048
  for (t = Math.min(t, this.message.length); ; ) {
3053
- var r = this.offset();
3054
- if (r === t)
3049
+ var n = this.offset();
3050
+ if (n === t)
3055
3051
  break;
3056
- if (r > t)
3052
+ if (n > t)
3057
3053
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3058
3054
  if (this.bump(), this.isEOF())
3059
3055
  break;
3060
3056
  }
3061
3057
  }, e.prototype.bumpSpace = function() {
3062
- for (; !this.isEOF() && Gr(this.char()); )
3058
+ for (; !this.isEOF() && kn(this.char()); )
3063
3059
  this.bump();
3064
3060
  }, e.prototype.peek = function() {
3065
3061
  if (this.isEOF())
3066
3062
  return null;
3067
- var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3068
- return n ?? null;
3063
+ var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3064
+ return r ?? null;
3069
3065
  }, e;
3070
3066
  }()
3071
3067
  );
3072
- function Rt(e) {
3068
+ function Mt(e) {
3073
3069
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3074
3070
  }
3075
- function fi(e) {
3076
- return Rt(e) || e === 47;
3071
+ function hi(e) {
3072
+ return Mt(e) || e === 47;
3077
3073
  }
3078
- function pi(e) {
3074
+ function fi(e) {
3079
3075
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3080
3076
  }
3081
- function Gr(e) {
3077
+ function kn(e) {
3082
3078
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3083
3079
  }
3084
- function mi(e) {
3080
+ function pi(e) {
3085
3081
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3086
3082
  }
3087
- function Dt(e) {
3083
+ function Rt(e) {
3088
3084
  e.forEach(function(t) {
3089
- if (delete t.location, Pr(t) || Ir(t))
3090
- for (var r in t.options)
3091
- delete t.options[r].location, Dt(t.options[r].value);
3085
+ if (delete t.location, In(t) || Nn(t))
3086
+ for (var n in t.options)
3087
+ delete t.options[n].location, Rt(t.options[n].value);
3092
3088
  else
3093
- Br(t) && Or(t.style) || (Sr(t) || Cr(t)) && Nt(t.style) ? delete t.style.location : Nr(t) && Dt(t.children);
3089
+ Sn(t) && Ln(t.style) || (Cn(t) || Pn(t)) && It(t.style) ? delete t.style.location : On(t) && Rt(t.children);
3094
3090
  });
3095
3091
  }
3096
- function di(e, t) {
3097
- t === void 0 && (t = {}), t = mt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3098
- var r = new hi(e, t).parse();
3099
- if (r.err) {
3100
- var n = SyntaxError(_[r.err.kind]);
3101
- throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3092
+ function mi(e, t) {
3093
+ t === void 0 && (t = {}), t = B({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3094
+ var n = new ci(e, t).parse();
3095
+ if (n.err) {
3096
+ var r = SyntaxError(w[n.err.kind]);
3097
+ throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3102
3098
  }
3103
- return t?.captureLocation || Dt(r.val), r.val;
3099
+ return t?.captureLocation || Rt(n.val), n.val;
3104
3100
  }
3105
3101
  var ke;
3106
3102
  (function(e) {
3107
3103
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3108
3104
  })(ke || (ke = {}));
3109
- var vt = (
3105
+ var yt = (
3110
3106
  /** @class */
3111
3107
  function(e) {
3112
- yt(t, e);
3113
- function t(r, n, i) {
3114
- var a = e.call(this, r) || this;
3115
- return a.code = n, a.originalMessage = i, a;
3108
+ bt(t, e);
3109
+ function t(n, r, i) {
3110
+ var a = e.call(this, n) || this;
3111
+ return a.code = r, a.originalMessage = i, a;
3116
3112
  }
3117
3113
  return t.prototype.toString = function() {
3118
3114
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3119
3115
  }, t;
3120
3116
  }(Error)
3121
- ), ir = (
3117
+ ), an = (
3122
3118
  /** @class */
3123
3119
  function(e) {
3124
- yt(t, e);
3125
- function t(r, n, i, a) {
3126
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ke.INVALID_VALUE, a) || this;
3120
+ bt(t, e);
3121
+ function t(n, r, i, a) {
3122
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ke.INVALID_VALUE, a) || this;
3127
3123
  }
3128
3124
  return t;
3129
- }(vt)
3130
- ), gi = (
3125
+ }(yt)
3126
+ ), di = (
3131
3127
  /** @class */
3132
3128
  function(e) {
3133
- yt(t, e);
3134
- function t(r, n, i) {
3135
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ke.INVALID_VALUE, i) || this;
3129
+ bt(t, e);
3130
+ function t(n, r, i) {
3131
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ke.INVALID_VALUE, i) || this;
3136
3132
  }
3137
3133
  return t;
3138
- }(vt)
3139
- ), bi = (
3134
+ }(yt)
3135
+ ), gi = (
3140
3136
  /** @class */
3141
3137
  function(e) {
3142
- yt(t, e);
3143
- function t(r, n) {
3144
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ke.MISSING_VALUE, n) || this;
3138
+ bt(t, e);
3139
+ function t(n, r) {
3140
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ke.MISSING_VALUE, r) || this;
3145
3141
  }
3146
3142
  return t;
3147
- }(vt)
3148
- ), X;
3143
+ }(yt)
3144
+ ), V;
3149
3145
  (function(e) {
3150
3146
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3151
- })(X || (X = {}));
3152
- function yi(e) {
3153
- return e.length < 2 ? e : e.reduce(function(t, r) {
3154
- var n = t[t.length - 1];
3155
- return !n || n.type !== X.literal || r.type !== X.literal ? t.push(r) : n.value += r.value, t;
3147
+ })(V || (V = {}));
3148
+ function bi(e) {
3149
+ return e.length < 2 ? e : e.reduce(function(t, n) {
3150
+ var r = t[t.length - 1];
3151
+ return !r || r.type !== V.literal || n.type !== V.literal ? t.push(n) : r.value += n.value, t;
3156
3152
  }, []);
3157
3153
  }
3158
- function vi(e) {
3154
+ function yi(e) {
3159
3155
  return typeof e == "function";
3160
3156
  }
3161
- function ct(e, t, r, n, i, a, o) {
3157
+ function ct(e, t, n, r, i, a, o) {
3162
3158
  if (e.length === 1 && Qt(e[0]))
3163
3159
  return [
3164
3160
  {
3165
- type: X.literal,
3161
+ type: V.literal,
3166
3162
  value: e[0].value
3167
3163
  }
3168
3164
  ];
3169
- for (var s = [], c = 0, l = e; c < l.length; c++) {
3170
- var u = l[c];
3171
- if (Qt(u)) {
3165
+ for (var s = [], c = 0, u = e; c < u.length; c++) {
3166
+ var l = u[c];
3167
+ if (Qt(l)) {
3172
3168
  s.push({
3173
- type: X.literal,
3174
- value: u.value
3169
+ type: V.literal,
3170
+ value: l.value
3175
3171
  });
3176
3172
  continue;
3177
3173
  }
3178
- if (kn(u)) {
3174
+ if (Gr(l)) {
3179
3175
  typeof a == "number" && s.push({
3180
- type: X.literal,
3181
- value: r.getNumberFormat(t).format(a)
3176
+ type: V.literal,
3177
+ value: n.getNumberFormat(t).format(a)
3182
3178
  });
3183
3179
  continue;
3184
3180
  }
3185
- var h = u.value;
3186
- if (!(i && h in i))
3187
- throw new bi(h, o);
3188
- var d = i[h];
3189
- if (Gn(u)) {
3181
+ var f = l.value;
3182
+ if (!(i && f in i))
3183
+ throw new gi(f, o);
3184
+ var d = i[f];
3185
+ if (Fr(l)) {
3190
3186
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3191
- type: typeof d == "string" ? X.literal : X.object,
3187
+ type: typeof d == "string" ? V.literal : V.object,
3192
3188
  value: d
3193
3189
  });
3194
3190
  continue;
3195
3191
  }
3196
- if (Sr(u)) {
3197
- var b = typeof u.style == "string" ? n.date[u.style] : Nt(u.style) ? u.style.parsedOptions : void 0;
3192
+ if (Cn(l)) {
3193
+ var y = typeof l.style == "string" ? r.date[l.style] : It(l.style) ? l.style.parsedOptions : void 0;
3198
3194
  s.push({
3199
- type: X.literal,
3200
- value: r.getDateTimeFormat(t, b).format(d)
3195
+ type: V.literal,
3196
+ value: n.getDateTimeFormat(t, y).format(d)
3201
3197
  });
3202
3198
  continue;
3203
3199
  }
3204
- if (Cr(u)) {
3205
- var b = typeof u.style == "string" ? n.time[u.style] : Nt(u.style) ? u.style.parsedOptions : n.time.medium;
3200
+ if (Pn(l)) {
3201
+ var y = typeof l.style == "string" ? r.time[l.style] : It(l.style) ? l.style.parsedOptions : r.time.medium;
3206
3202
  s.push({
3207
- type: X.literal,
3208
- value: r.getDateTimeFormat(t, b).format(d)
3203
+ type: V.literal,
3204
+ value: n.getDateTimeFormat(t, y).format(d)
3209
3205
  });
3210
3206
  continue;
3211
3207
  }
3212
- if (Br(u)) {
3213
- var b = typeof u.style == "string" ? n.number[u.style] : Or(u.style) ? u.style.parsedOptions : void 0;
3214
- b && b.scale && (d = d * (b.scale || 1)), s.push({
3215
- type: X.literal,
3216
- value: r.getNumberFormat(t, b).format(d)
3208
+ if (Sn(l)) {
3209
+ var y = typeof l.style == "string" ? r.number[l.style] : Ln(l.style) ? l.style.parsedOptions : void 0;
3210
+ y && y.scale && (d = d * (y.scale || 1)), s.push({
3211
+ type: V.literal,
3212
+ value: n.getNumberFormat(t, y).format(d)
3217
3213
  });
3218
3214
  continue;
3219
3215
  }
3220
- if (Nr(u)) {
3221
- var v = u.children, P = u.value, F = i[P];
3222
- if (!vi(F))
3223
- throw new gi(P, "function", o);
3224
- var I = ct(v, t, r, n, i, a), D = F(I.map(function(O) {
3216
+ if (On(l)) {
3217
+ var v = l.children, I = l.value, U = i[I];
3218
+ if (!yi(U))
3219
+ throw new di(I, "function", o);
3220
+ var N = ct(v, t, n, r, i, a), R = U(N.map(function(O) {
3225
3221
  return O.value;
3226
3222
  }));
3227
- Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(O) {
3223
+ Array.isArray(R) || (R = [R]), s.push.apply(s, R.map(function(O) {
3228
3224
  return {
3229
- type: typeof O == "string" ? X.literal : X.object,
3225
+ type: typeof O == "string" ? V.literal : V.object,
3230
3226
  value: O
3231
3227
  };
3232
3228
  }));
3233
3229
  }
3234
- if (Pr(u)) {
3235
- var U = u.options[d] || u.options.other;
3236
- if (!U)
3237
- throw new ir(u.value, d, Object.keys(u.options), o);
3238
- s.push.apply(s, ct(U.value, t, r, n, i));
3230
+ if (In(l)) {
3231
+ var D = l.options[d] || l.options.other;
3232
+ if (!D)
3233
+ throw new an(l.value, d, Object.keys(l.options), o);
3234
+ s.push.apply(s, ct(D.value, t, n, r, i));
3239
3235
  continue;
3240
3236
  }
3241
- if (Ir(u)) {
3242
- var U = u.options["=".concat(d)];
3243
- if (!U) {
3237
+ if (Nn(l)) {
3238
+ var D = l.options["=".concat(d)];
3239
+ if (!D) {
3244
3240
  if (!Intl.PluralRules)
3245
- throw new vt(`Intl.PluralRules is not available in this environment.
3241
+ throw new yt(`Intl.PluralRules is not available in this environment.
3246
3242
  Try polyfilling it using "@formatjs/intl-pluralrules"
3247
3243
  `, ke.MISSING_INTL_API, o);
3248
- var C = r.getPluralRules(t, { type: u.pluralType }).select(d - (u.offset || 0));
3249
- U = u.options[C] || u.options.other;
3244
+ var P = n.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
3245
+ D = l.options[P] || l.options.other;
3250
3246
  }
3251
- if (!U)
3252
- throw new ir(u.value, d, Object.keys(u.options), o);
3253
- s.push.apply(s, ct(U.value, t, r, n, i, d - (u.offset || 0)));
3247
+ if (!D)
3248
+ throw new an(l.value, d, Object.keys(l.options), o);
3249
+ s.push.apply(s, ct(D.value, t, n, r, i, d - (l.offset || 0)));
3254
3250
  continue;
3255
3251
  }
3256
3252
  }
3257
- return yi(s);
3253
+ return bi(s);
3258
3254
  }
3259
- function xi(e, t) {
3260
- return t ? ce(ce(ce({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3261
- return r[n] = ce(ce({}, e[n]), t[n] || {}), r;
3255
+ function vi(e, t) {
3256
+ return t ? B(B(B({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3257
+ return n[r] = B(B({}, e[r]), t[r] || {}), n;
3262
3258
  }, {})) : e;
3263
3259
  }
3264
- function Ei(e, t) {
3265
- return t ? Object.keys(e).reduce(function(r, n) {
3266
- return r[n] = xi(e[n], t[n]), r;
3267
- }, ce({}, e)) : e;
3260
+ function xi(e, t) {
3261
+ return t ? Object.keys(e).reduce(function(n, r) {
3262
+ return n[r] = vi(e[r], t[r]), n;
3263
+ }, B({}, e)) : e;
3268
3264
  }
3269
- function St(e) {
3265
+ function Bt(e) {
3270
3266
  return {
3271
3267
  create: function() {
3272
3268
  return {
3273
3269
  get: function(t) {
3274
3270
  return e[t];
3275
3271
  },
3276
- set: function(t, r) {
3277
- e[t] = r;
3272
+ set: function(t, n) {
3273
+ e[t] = n;
3278
3274
  }
3279
3275
  };
3280
3276
  }
3281
3277
  };
3282
3278
  }
3283
- function _i(e) {
3279
+ function Ei(e) {
3284
3280
  return e === void 0 && (e = {
3285
3281
  number: {},
3286
3282
  dateTime: {},
3287
3283
  pluralRules: {}
3288
3284
  }), {
3289
- getNumberFormat: Ht(function() {
3290
- for (var t, r = [], n = 0; n < arguments.length; n++)
3291
- r[n] = arguments[n];
3292
- return new ((t = Intl.NumberFormat).bind.apply(t, Tt([void 0], r, !1)))();
3285
+ getNumberFormat: Tt(function() {
3286
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3287
+ n[r] = arguments[r];
3288
+ return new ((t = Intl.NumberFormat).bind.apply(t, wt([void 0], n, !1)))();
3293
3289
  }, {
3294
- cache: St(e.number),
3295
- strategy: At.variadic
3290
+ cache: Bt(e.number),
3291
+ strategy: Ht.variadic
3296
3292
  }),
3297
- getDateTimeFormat: Ht(function() {
3298
- for (var t, r = [], n = 0; n < arguments.length; n++)
3299
- r[n] = arguments[n];
3300
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Tt([void 0], r, !1)))();
3293
+ getDateTimeFormat: Tt(function() {
3294
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3295
+ n[r] = arguments[r];
3296
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, wt([void 0], n, !1)))();
3301
3297
  }, {
3302
- cache: St(e.dateTime),
3303
- strategy: At.variadic
3298
+ cache: Bt(e.dateTime),
3299
+ strategy: Ht.variadic
3304
3300
  }),
3305
- getPluralRules: Ht(function() {
3306
- for (var t, r = [], n = 0; n < arguments.length; n++)
3307
- r[n] = arguments[n];
3308
- return new ((t = Intl.PluralRules).bind.apply(t, Tt([void 0], r, !1)))();
3301
+ getPluralRules: Tt(function() {
3302
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3303
+ n[r] = arguments[r];
3304
+ return new ((t = Intl.PluralRules).bind.apply(t, wt([void 0], n, !1)))();
3309
3305
  }, {
3310
- cache: St(e.pluralRules),
3311
- strategy: At.variadic
3306
+ cache: Bt(e.pluralRules),
3307
+ strategy: Ht.variadic
3312
3308
  })
3313
3309
  };
3314
3310
  }
3315
- var wi = (
3311
+ var _i = (
3316
3312
  /** @class */
3317
3313
  function() {
3318
- function e(t, r, n, i) {
3319
- r === void 0 && (r = e.defaultLocale);
3314
+ function e(t, n, r, i) {
3315
+ n === void 0 && (n = e.defaultLocale);
3320
3316
  var a = this;
3321
3317
  if (this.formatterCache = {
3322
3318
  number: {},
3323
3319
  dateTime: {},
3324
3320
  pluralRules: {}
3325
3321
  }, this.format = function(c) {
3326
- var l = a.formatToParts(c);
3327
- if (l.length === 1)
3328
- return l[0].value;
3329
- var u = l.reduce(function(h, d) {
3330
- return !h.length || d.type !== X.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
3322
+ var u = a.formatToParts(c);
3323
+ if (u.length === 1)
3324
+ return u[0].value;
3325
+ var l = u.reduce(function(f, d) {
3326
+ return !f.length || d.type !== V.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
3331
3327
  }, []);
3332
- return u.length <= 1 ? u[0] || "" : u;
3328
+ return l.length <= 1 ? l[0] || "" : l;
3333
3329
  }, this.formatToParts = function(c) {
3334
3330
  return ct(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
3335
3331
  }, this.resolvedOptions = function() {
@@ -3339,18 +3335,18 @@ var wi = (
3339
3335
  };
3340
3336
  }, this.getAst = function() {
3341
3337
  return a.ast;
3342
- }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3338
+ }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3343
3339
  if (this.message = t, !e.__parse)
3344
3340
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3345
3341
  var o = i || {};
3346
3342
  o.formatters;
3347
- var s = Nn(o, ["formatters"]);
3348
- this.ast = e.__parse(t, ce(ce({}, s), { locale: this.resolvedLocale }));
3343
+ var s = Nr(o, ["formatters"]);
3344
+ this.ast = e.__parse(t, B(B({}, s), { locale: this.resolvedLocale }));
3349
3345
  } else
3350
3346
  this.ast = t;
3351
3347
  if (!Array.isArray(this.ast))
3352
3348
  throw new TypeError("A message must be provided as a String or AST.");
3353
- this.formats = Ei(e.formats, n), this.formatters = i && i.formatters || _i(this.formatterCache);
3349
+ this.formats = xi(e.formats, r), this.formatters = i && i.formatters || Ei(this.formatterCache);
3354
3350
  }
3355
3351
  return Object.defineProperty(e, "defaultLocale", {
3356
3352
  get: function() {
@@ -3360,10 +3356,10 @@ var wi = (
3360
3356
  configurable: !0
3361
3357
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3362
3358
  if (!(typeof Intl.Locale > "u")) {
3363
- var r = Intl.NumberFormat.supportedLocalesOf(t);
3364
- return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3359
+ var n = Intl.NumberFormat.supportedLocalesOf(t);
3360
+ return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3365
3361
  }
3366
- }, e.__parse = di, e.formats = {
3362
+ }, e.__parse = mi, e.formats = {
3367
3363
  number: {
3368
3364
  integer: {
3369
3365
  maximumFractionDigits: 0
@@ -3424,113 +3420,113 @@ var wi = (
3424
3420
  }, e;
3425
3421
  }()
3426
3422
  );
3427
- function Ti(e, t) {
3423
+ function wi(e, t) {
3428
3424
  if (t == null)
3429
3425
  return;
3430
3426
  if (t in e)
3431
3427
  return e[t];
3432
- const r = t.split(".");
3433
- let n = e;
3434
- for (let i = 0; i < r.length; i++)
3435
- if (typeof n == "object") {
3428
+ const n = t.split(".");
3429
+ let r = e;
3430
+ for (let i = 0; i < n.length; i++)
3431
+ if (typeof r == "object") {
3436
3432
  if (i > 0) {
3437
- const a = r.slice(i, r.length).join(".");
3438
- if (a in n) {
3439
- n = n[a];
3433
+ const a = n.slice(i, n.length).join(".");
3434
+ if (a in r) {
3435
+ r = r[a];
3440
3436
  break;
3441
3437
  }
3442
3438
  }
3443
- n = n[r[i]];
3439
+ r = r[n[i]];
3444
3440
  } else
3445
- n = void 0;
3446
- return n;
3441
+ r = void 0;
3442
+ return r;
3447
3443
  }
3448
- const Ee = {}, Hi = (e, t, r) => r && (t in Ee || (Ee[t] = {}), e in Ee[t] || (Ee[t][e] = r), r), kr = (e, t) => {
3444
+ const xe = {}, Ti = (e, t, n) => n && (t in xe || (xe[t] = {}), e in xe[t] || (xe[t][e] = n), n), $n = (e, t) => {
3449
3445
  if (t == null)
3450
3446
  return;
3451
- if (t in Ee && e in Ee[t])
3452
- return Ee[t][e];
3453
- const r = xt(t);
3454
- for (let n = 0; n < r.length; n++) {
3455
- const i = r[n], a = Bi(i, e);
3447
+ if (t in xe && e in xe[t])
3448
+ return xe[t][e];
3449
+ const n = vt(t);
3450
+ for (let r = 0; r < n.length; r++) {
3451
+ const i = n[r], a = Ai(i, e);
3456
3452
  if (a)
3457
- return Hi(e, t, a);
3453
+ return Ti(e, t, a);
3458
3454
  }
3459
3455
  };
3460
3456
  let jt;
3461
- const Ve = bt({});
3462
- function Ai(e) {
3457
+ const Ve = gt({});
3458
+ function Hi(e) {
3463
3459
  return jt[e] || null;
3464
3460
  }
3465
- function jr(e) {
3461
+ function jn(e) {
3466
3462
  return e in jt;
3467
3463
  }
3468
- function Bi(e, t) {
3469
- if (!jr(e))
3464
+ function Ai(e, t) {
3465
+ if (!jn(e))
3470
3466
  return null;
3471
- const r = Ai(e);
3472
- return Ti(r, t);
3467
+ const n = Hi(e);
3468
+ return wi(n, t);
3473
3469
  }
3474
- function Si(e) {
3470
+ function Bi(e) {
3475
3471
  if (e == null)
3476
3472
  return;
3477
- const t = xt(e);
3478
- for (let r = 0; r < t.length; r++) {
3479
- const n = t[r];
3480
- if (jr(n))
3481
- return n;
3473
+ const t = vt(e);
3474
+ for (let n = 0; n < t.length; n++) {
3475
+ const r = t[n];
3476
+ if (jn(r))
3477
+ return r;
3482
3478
  }
3483
3479
  }
3484
- function $r(e, ...t) {
3485
- delete Ee[e], Ve.update((r) => (r[e] = In.all([r[e] || {}, ...t]), r));
3480
+ function Vn(e, ...t) {
3481
+ delete xe[e], Ve.update((n) => (n[e] = Ir.all([n[e] || {}, ...t]), n));
3486
3482
  }
3487
- $e(
3483
+ je(
3488
3484
  [Ve],
3489
3485
  ([e]) => Object.keys(e)
3490
3486
  );
3491
3487
  Ve.subscribe((e) => jt = e);
3492
3488
  const ht = {};
3493
- function Ci(e, t) {
3489
+ function Si(e, t) {
3494
3490
  ht[e].delete(t), ht[e].size === 0 && delete ht[e];
3495
3491
  }
3496
- function Vr(e) {
3492
+ function zn(e) {
3497
3493
  return ht[e];
3498
3494
  }
3499
- function Pi(e) {
3500
- return xt(e).map((t) => {
3501
- const r = Vr(t);
3502
- return [t, r ? [...r] : []];
3495
+ function Ci(e) {
3496
+ return vt(e).map((t) => {
3497
+ const n = zn(t);
3498
+ return [t, n ? [...n] : []];
3503
3499
  }).filter(([, t]) => t.length > 0);
3504
3500
  }
3505
- function Ut(e) {
3506
- return e == null ? !1 : xt(e).some(
3501
+ function Dt(e) {
3502
+ return e == null ? !1 : vt(e).some(
3507
3503
  (t) => {
3508
- var r;
3509
- return (r = Vr(t)) == null ? void 0 : r.size;
3504
+ var n;
3505
+ return (n = zn(t)) == null ? void 0 : n.size;
3510
3506
  }
3511
3507
  );
3512
3508
  }
3513
- function Ii(e, t) {
3509
+ function Pi(e, t) {
3514
3510
  return Promise.all(
3515
- t.map((n) => (Ci(e, n), n().then((i) => i.default || i)))
3516
- ).then((n) => $r(e, ...n));
3511
+ t.map((r) => (Si(e, r), r().then((i) => i.default || i)))
3512
+ ).then((r) => Vn(e, ...r));
3517
3513
  }
3518
- const Ye = {};
3519
- function zr(e) {
3520
- if (!Ut(e))
3521
- return e in Ye ? Ye[e] : Promise.resolve();
3522
- const t = Pi(e);
3523
- return Ye[e] = Promise.all(
3514
+ const Qe = {};
3515
+ function Xn(e) {
3516
+ if (!Dt(e))
3517
+ return e in Qe ? Qe[e] : Promise.resolve();
3518
+ const t = Ci(e);
3519
+ return Qe[e] = Promise.all(
3524
3520
  t.map(
3525
- ([r, n]) => Ii(r, n)
3521
+ ([n, r]) => Pi(n, r)
3526
3522
  )
3527
3523
  ).then(() => {
3528
- if (Ut(e))
3529
- return zr(e);
3530
- delete Ye[e];
3531
- }), Ye[e];
3524
+ if (Dt(e))
3525
+ return Xn(e);
3526
+ delete Qe[e];
3527
+ }), Qe[e];
3532
3528
  }
3533
- const Ni = {
3529
+ const Ii = {
3534
3530
  number: {
3535
3531
  scientific: { notation: "scientific" },
3536
3532
  engineering: { notation: "engineering" },
@@ -3559,183 +3555,183 @@ const Ni = {
3559
3555
  timeZoneName: "short"
3560
3556
  }
3561
3557
  }
3562
- }, Oi = {
3558
+ }, Ni = {
3563
3559
  fallbackLocale: null,
3564
3560
  loadingDelay: 200,
3565
- formats: Ni,
3561
+ formats: Ii,
3566
3562
  warnOnMissingMessages: !0,
3567
3563
  handleMissingMessage: void 0,
3568
3564
  ignoreTag: !0
3569
- }, Li = Oi;
3570
- function je() {
3571
- return Li;
3572
- }
3573
- const Ct = bt(!1);
3574
- var Mi = Object.defineProperty, Ri = Object.defineProperties, Di = Object.getOwnPropertyDescriptors, ar = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, Fi = Object.prototype.propertyIsEnumerable, or = (e, t, r) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gi = (e, t) => {
3575
- for (var r in t || (t = {}))
3576
- Ui.call(t, r) && or(e, r, t[r]);
3577
- if (ar)
3578
- for (var r of ar(t))
3579
- Fi.call(t, r) && or(e, r, t[r]);
3565
+ }, Oi = Ni;
3566
+ function $e() {
3567
+ return Oi;
3568
+ }
3569
+ const St = gt(!1);
3570
+ var Li = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, on = Object.getOwnPropertySymbols, Di = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, sn = (e, t, n) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fi = (e, t) => {
3571
+ for (var n in t || (t = {}))
3572
+ Di.call(t, n) && sn(e, n, t[n]);
3573
+ if (on)
3574
+ for (var n of on(t))
3575
+ Ui.call(t, n) && sn(e, n, t[n]);
3580
3576
  return e;
3581
- }, ki = (e, t) => Ri(e, Di(t));
3582
- let Ft;
3583
- const dt = bt(null);
3584
- function sr(e) {
3585
- return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3577
+ }, Gi = (e, t) => Mi(e, Ri(t));
3578
+ let Ut;
3579
+ const mt = gt(null);
3580
+ function ln(e) {
3581
+ return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3586
3582
  }
3587
- function xt(e, t = je().fallbackLocale) {
3588
- const r = sr(e);
3589
- return t ? [.../* @__PURE__ */ new Set([...r, ...sr(t)])] : r;
3583
+ function vt(e, t = $e().fallbackLocale) {
3584
+ const n = ln(e);
3585
+ return t ? [.../* @__PURE__ */ new Set([...n, ...ln(t)])] : n;
3590
3586
  }
3591
- function Ae() {
3592
- return Ft ?? void 0;
3587
+ function Be() {
3588
+ return Ut ?? void 0;
3593
3589
  }
3594
- dt.subscribe((e) => {
3595
- Ft = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3590
+ mt.subscribe((e) => {
3591
+ Ut = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3596
3592
  });
3597
- const ji = (e) => {
3598
- if (e && Si(e) && Ut(e)) {
3599
- const { loadingDelay: t } = je();
3600
- let r;
3601
- return typeof window < "u" && Ae() != null && t ? r = window.setTimeout(
3602
- () => Ct.set(!0),
3593
+ const ki = (e) => {
3594
+ if (e && Bi(e) && Dt(e)) {
3595
+ const { loadingDelay: t } = $e();
3596
+ let n;
3597
+ return typeof window < "u" && Be() != null && t ? n = window.setTimeout(
3598
+ () => St.set(!0),
3603
3599
  t
3604
- ) : Ct.set(!0), zr(e).then(() => {
3605
- dt.set(e);
3600
+ ) : St.set(!0), Xn(e).then(() => {
3601
+ mt.set(e);
3606
3602
  }).finally(() => {
3607
- clearTimeout(r), Ct.set(!1);
3603
+ clearTimeout(n), St.set(!1);
3608
3604
  });
3609
3605
  }
3610
- return dt.set(e);
3611
- }, _e = ki(Gi({}, dt), {
3612
- set: ji
3613
- }), Et = (e) => {
3606
+ return mt.set(e);
3607
+ }, Ee = Gi(Fi({}, mt), {
3608
+ set: ki
3609
+ }), xt = (e) => {
3614
3610
  const t = /* @__PURE__ */ Object.create(null);
3615
- return (n) => {
3616
- const i = JSON.stringify(n);
3617
- return i in t ? t[i] : t[i] = e(n);
3611
+ return (r) => {
3612
+ const i = JSON.stringify(r);
3613
+ return i in t ? t[i] : t[i] = e(r);
3618
3614
  };
3619
3615
  };
3620
- var $i = Object.defineProperty, gt = Object.getOwnPropertySymbols, Xr = Object.prototype.hasOwnProperty, Wr = Object.prototype.propertyIsEnumerable, ur = (e, t, r) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $t = (e, t) => {
3621
- for (var r in t || (t = {}))
3622
- Xr.call(t, r) && ur(e, r, t[r]);
3623
- if (gt)
3624
- for (var r of gt(t))
3625
- Wr.call(t, r) && ur(e, r, t[r]);
3616
+ var $i = Object.defineProperty, dt = Object.getOwnPropertySymbols, Wn = Object.prototype.hasOwnProperty, Zn = Object.prototype.propertyIsEnumerable, un = (e, t, n) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Vt = (e, t) => {
3617
+ for (var n in t || (t = {}))
3618
+ Wn.call(t, n) && un(e, n, t[n]);
3619
+ if (dt)
3620
+ for (var n of dt(t))
3621
+ Zn.call(t, n) && un(e, n, t[n]);
3626
3622
  return e;
3627
3623
  }, ze = (e, t) => {
3628
- var r = {};
3629
- for (var n in e)
3630
- Xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3631
- if (e != null && gt)
3632
- for (var n of gt(e))
3633
- t.indexOf(n) < 0 && Wr.call(e, n) && (r[n] = e[n]);
3634
- return r;
3624
+ var n = {};
3625
+ for (var r in e)
3626
+ Wn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3627
+ if (e != null && dt)
3628
+ for (var r of dt(e))
3629
+ t.indexOf(r) < 0 && Zn.call(e, r) && (n[r] = e[r]);
3630
+ return n;
3635
3631
  };
3636
- const rt = (e, t) => {
3637
- const { formats: r } = je();
3638
- if (e in r && t in r[e])
3639
- return r[e][t];
3632
+ const tt = (e, t) => {
3633
+ const { formats: n } = $e();
3634
+ if (e in n && t in n[e])
3635
+ return n[e][t];
3640
3636
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3641
- }, Vi = Et(
3637
+ }, ji = xt(
3642
3638
  (e) => {
3643
- var t = e, { locale: r, format: n } = t, i = ze(t, ["locale", "format"]);
3644
- if (r == null)
3639
+ var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3640
+ if (n == null)
3645
3641
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3646
- return n && (i = rt("number", n)), new Intl.NumberFormat(r, i);
3642
+ return r && (i = tt("number", r)), new Intl.NumberFormat(n, i);
3647
3643
  }
3648
- ), zi = Et(
3644
+ ), Vi = xt(
3649
3645
  (e) => {
3650
- var t = e, { locale: r, format: n } = t, i = ze(t, ["locale", "format"]);
3651
- if (r == null)
3646
+ var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3647
+ if (n == null)
3652
3648
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3653
- return n ? i = rt("date", n) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(r, i);
3649
+ return r ? i = tt("date", r) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(n, i);
3654
3650
  }
3655
- ), Xi = Et(
3651
+ ), zi = xt(
3656
3652
  (e) => {
3657
- var t = e, { locale: r, format: n } = t, i = ze(t, ["locale", "format"]);
3658
- if (r == null)
3653
+ var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3654
+ if (n == null)
3659
3655
  throw new Error(
3660
3656
  '[svelte-i18n] A "locale" must be set to format time values'
3661
3657
  );
3662
- return n ? i = rt("time", n) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(r, i);
3658
+ return r ? i = tt("time", r) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(n, i);
3663
3659
  }
3664
- ), Wi = (e = {}) => {
3660
+ ), Xi = (e = {}) => {
3665
3661
  var t = e, {
3666
- locale: r = Ae()
3667
- } = t, n = ze(t, [
3662
+ locale: n = Be()
3663
+ } = t, r = ze(t, [
3668
3664
  "locale"
3669
3665
  ]);
3670
- return Vi($t({ locale: r }, n));
3671
- }, Zi = (e = {}) => {
3666
+ return ji(Vt({ locale: n }, r));
3667
+ }, Wi = (e = {}) => {
3672
3668
  var t = e, {
3673
- locale: r = Ae()
3674
- } = t, n = ze(t, [
3669
+ locale: n = Be()
3670
+ } = t, r = ze(t, [
3675
3671
  "locale"
3676
3672
  ]);
3677
- return zi($t({ locale: r }, n));
3678
- }, qi = (e = {}) => {
3673
+ return Vi(Vt({ locale: n }, r));
3674
+ }, Zi = (e = {}) => {
3679
3675
  var t = e, {
3680
- locale: r = Ae()
3681
- } = t, n = ze(t, [
3676
+ locale: n = Be()
3677
+ } = t, r = ze(t, [
3682
3678
  "locale"
3683
3679
  ]);
3684
- return Xi($t({ locale: r }, n));
3685
- }, Ji = Et(
3680
+ return zi(Vt({ locale: n }, r));
3681
+ }, qi = xt(
3686
3682
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3687
- (e, t = Ae()) => new wi(e, t, je().formats, {
3688
- ignoreTag: je().ignoreTag
3683
+ (e, t = Be()) => new _i(e, t, $e().formats, {
3684
+ ignoreTag: $e().ignoreTag
3689
3685
  })
3690
- ), Qi = (e, t = {}) => {
3691
- var r, n, i, a;
3686
+ ), Ji = (e, t = {}) => {
3687
+ var n, r, i, a;
3692
3688
  let o = t;
3693
3689
  typeof e == "object" && (o = e, e = o.id);
3694
3690
  const {
3695
3691
  values: s,
3696
- locale: c = Ae(),
3697
- default: l
3692
+ locale: c = Be(),
3693
+ default: u
3698
3694
  } = o;
3699
3695
  if (c == null)
3700
3696
  throw new Error(
3701
3697
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3702
3698
  );
3703
- let u = kr(e, c);
3704
- if (!u)
3705
- u = (a = (i = (n = (r = je()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3706
- else if (typeof u != "string")
3699
+ let l = $n(e, c);
3700
+ if (!l)
3701
+ l = (a = (i = (r = (n = $e()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3702
+ else if (typeof l != "string")
3707
3703
  return console.warn(
3708
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3709
- ), u;
3704
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3705
+ ), l;
3710
3706
  if (!s)
3711
- return u;
3712
- let h = u;
3707
+ return l;
3708
+ let f = l;
3713
3709
  try {
3714
- h = Ji(u, c).format(s);
3710
+ f = qi(l, c).format(s);
3715
3711
  } catch (d) {
3716
3712
  d instanceof Error && console.warn(
3717
3713
  `[svelte-i18n] Message "${e}" has syntax error:`,
3718
3714
  d.message
3719
3715
  );
3720
3716
  }
3721
- return h;
3722
- }, Yi = (e, t) => qi(t).format(e), Ki = (e, t) => Zi(t).format(e), ea = (e, t) => Wi(t).format(e), ta = (e, t = Ae()) => kr(e, t), ra = $e([_e, Ve], () => Qi);
3723
- $e([_e], () => Yi);
3724
- $e([_e], () => Ki);
3725
- $e([_e], () => ea);
3726
- $e([_e, Ve], () => ta);
3717
+ return f;
3718
+ }, Qi = (e, t) => Zi(t).format(e), Yi = (e, t) => Wi(t).format(e), Ki = (e, t) => Xi(t).format(e), ea = (e, t = Be()) => $n(e, t), ta = je([Ee, Ve], () => Ji);
3719
+ je([Ee], () => Qi);
3720
+ je([Ee], () => Yi);
3721
+ je([Ee], () => Ki);
3722
+ je([Ee, Ve], () => ea);
3727
3723
  function na({ withLocale: e, translations: t }) {
3728
- _e.subscribe((r) => {
3729
- r == null && (Ve.set(t), _e.set(e));
3724
+ Ee.subscribe((n) => {
3725
+ n == null && (Ve.set(t), Ee.set(e));
3730
3726
  });
3731
3727
  }
3732
- function lr(e, t) {
3733
- $r(e, t);
3728
+ function cn(e, t) {
3729
+ Vn(e, t);
3734
3730
  }
3735
- function ia(e) {
3736
- _e.set(e);
3731
+ function ra(e) {
3732
+ Ee.set(e);
3737
3733
  }
3738
- const cr = {
3734
+ const hn = {
3739
3735
  en: {
3740
3736
  vaultExchange: "Vault Exchange",
3741
3737
  debitPlaceHolder: "Debit amount",
@@ -3784,187 +3780,187 @@ const cr = {
3784
3780
  "gm.payments.internal_server_error": "Cüzdan değişiminde bir hata oluştu"
3785
3781
  }
3786
3782
  };
3787
- function aa(e) {
3788
- Jr(e, "svelte-y4tbuy", "*{margin:0;padding:0}.player-account-vault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;border:1px solid var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #22B04E) 0px 0px 10px;gap:var(--emw--spacing-medium, 15px)}.player-account-vault .playerVaultContainer{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-small, 5px);padding:var(--emw--spacing-medium, 10px);box-sizing:border-box}.player-account-vault .playerVaultContainer .balanceContainer{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400);gap:var(--emw--spacing-small, 10px);font-family:inherit}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-large, 25px)}.player-account-vault .playerVaultContainer .headerContainer{margin-right:auto;margin-bottom:auto}.player-account-vault .playerVaultContainer .headerContainer h1{width:100%;text-align:center;font-family:inherit;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400)}.player-account-vault .containerExchanges{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;position:relative;gap:var(--emw--spacing-small, 10px);background:var(--emfe-w-color-primary, #22B04E);padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom,.player-account-vault .containerExchanges .containerExchangeTo{width:inherit;height:inherit;display:flex;flex-direction:column;justify-content:center;align-self:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .exchangeHeader,.player-account-vault .containerExchanges .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;color:var(--emfe-w-color-white, #fff);font-family:inherit}.player-account-vault .containerExchanges .containerExchangeFrom .flexingContainerRow,.player-account-vault .containerExchanges .containerExchangeTo .flexingContainerRow{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:var(--emw--spacing-small, 10px);max-width:200px}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{text-align:center;padding:5px 0px;margin:0;border:2px solid var(--emw--button-border-color, #22B04E);color:var(--emfe-w-color-black, #000000)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input{width:100%}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{width:100%}.player-account-vault .containerExchanges .exchangeDetailsWrapper{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerIconExchange{margin:auto;padding-top:20px}.player-account-vault .containerExchanges .containerIconExchange .iconExchange{width:20px;height:20px;transform:rotateZ(-90deg)}.player-account-vault .containerExchanges .containerIconExchange .iconExchange path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault{width:15px;height:15px;position:absolute;top:85%;right:5%;padding:var(--emw--spacing-medium, 10px);background:var(--emfe-w-color-primary, #22B04E);border:3px solid var(--emfe-w-color-white, #fff);border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault.active .iconToggleVault{transform:rotateZ(180deg)}.player-account-vault .vaultDropDown{width:100%;height:0px;margin:0px;display:flex;flex-direction:column;box-sizing:border-box;overflow:auto;scrollbar-width:none;transition:all 0.5s ease-in-out;opacity:0;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 15px);color:var(--emw--color-white, #fff);font-family:inherit}.player-account-vault .vaultDropDown div{display:inherit;flex-direction:row;justify-content:space-between;padding:var(--emw--spacing-medium, 15px) var(--emw--spacing-large, 30px);background:var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px}.player-account-vault .vaultDropDown.active{padding:var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 10px);opacity:1}.player-account-vault .notificationsContainer{width:100%;max-height:0px;padding:0px;box-sizing:border-box;transition:all 0.5s ease-in-out}.player-account-vault .notificationsContainer div{text-align:center;padding:var(--emw--spacing-medium, 15px);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px;color:var(--emfe-w-color-white, #fff);opacity:0;transform:scale(0);transition:inherit;box-sizing:inherit;font-family:inherit}.player-account-vault .notificationsContainer .error{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.player-account-vault .notificationsContainer .success{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #22B04E))}.player-account-vault .notificationsContainer .action{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #abb022))}.player-account-vault .notificationsContainer.error,.player-account-vault .notificationsContainer.success,.player-account-vault .notificationsContainer.action{max-height:200px;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer button{width:100px;height:30px;border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-medium, 15px);border-radius:var(--emw--button-border-radius, 5px);background:var(--emfe-w-color-primary, #22B04E);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF))}.player-account-vault .actionsContainer .disabled{cursor:default;background:var(--emfe-w-color-gray-150, #828282)}@media only screen and (max-width: 300px){.player-account-vault .playerVaultContainer .headerContainer h1{text-align:left;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer p{text-align:right;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-medium, 20px)}}");
3783
+ function ia(e) {
3784
+ Qn(e, "svelte-y4tbuy", "*{margin:0;padding:0}.player-account-vault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;border:1px solid var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #22B04E) 0px 0px 10px;gap:var(--emw--spacing-medium, 15px)}.player-account-vault .playerVaultContainer{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-small, 5px);padding:var(--emw--spacing-medium, 10px);box-sizing:border-box}.player-account-vault .playerVaultContainer .balanceContainer{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400);gap:var(--emw--spacing-small, 10px);font-family:inherit}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-large, 25px)}.player-account-vault .playerVaultContainer .headerContainer{margin-right:auto;margin-bottom:auto}.player-account-vault .playerVaultContainer .headerContainer h1{width:100%;text-align:center;font-family:inherit;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400)}.player-account-vault .containerExchanges{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;position:relative;gap:var(--emw--spacing-small, 10px);background:var(--emfe-w-color-primary, #22B04E);padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom,.player-account-vault .containerExchanges .containerExchangeTo{width:inherit;height:inherit;display:flex;flex-direction:column;justify-content:center;align-self:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .exchangeHeader,.player-account-vault .containerExchanges .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;color:var(--emfe-w-color-white, #fff);font-family:inherit}.player-account-vault .containerExchanges .containerExchangeFrom .flexingContainerRow,.player-account-vault .containerExchanges .containerExchangeTo .flexingContainerRow{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:var(--emw--spacing-small, 10px);max-width:200px}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{text-align:center;padding:5px 0px;margin:0;border:2px solid var(--emw--button-border-color, #22B04E);color:var(--emfe-w-color-black, #000000)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input{width:100%}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{width:100%}.player-account-vault .containerExchanges .exchangeDetailsWrapper{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerIconExchange{margin:auto;padding-top:20px}.player-account-vault .containerExchanges .containerIconExchange .iconExchange{width:20px;height:20px;transform:rotateZ(-90deg)}.player-account-vault .containerExchanges .containerIconExchange .iconExchange path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault{width:15px;height:15px;position:absolute;top:85%;right:5%;padding:var(--emw--spacing-medium, 10px);background:var(--emfe-w-color-primary, #22B04E);border:3px solid var(--emfe-w-color-white, #fff);border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault.active .iconToggleVault{transform:rotateZ(180deg)}.player-account-vault .vaultDropDown{width:100%;height:0px;margin:0px;display:flex;flex-direction:column;box-sizing:border-box;overflow:auto;scrollbar-width:none;transition:all 0.5s ease-in-out;opacity:0;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 15px);color:var(--emw--color-white, #fff);font-family:inherit}.player-account-vault .vaultDropDown div{display:inherit;flex-direction:row;justify-content:space-between;padding:var(--emw--spacing-medium, 15px) var(--emw--spacing-large, 30px);background:var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px}.player-account-vault .vaultDropDown.active{padding:var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 10px);opacity:1}.player-account-vault .notificationsContainer{width:100%;max-height:0px;padding:0px;box-sizing:border-box;transition:all 0.5s ease-in-out}.player-account-vault .notificationsContainer div{text-align:center;padding:var(--emw--spacing-medium, 15px);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px;color:var(--emfe-w-color-white, #fff);opacity:0;transform:scale(0);transition:inherit;box-sizing:inherit;font-family:inherit}.player-account-vault .notificationsContainer .error{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.player-account-vault .notificationsContainer .success{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #22B04E))}.player-account-vault .notificationsContainer .action{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #abb022))}.player-account-vault .notificationsContainer.error,.player-account-vault .notificationsContainer.success,.player-account-vault .notificationsContainer.action{max-height:200px;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer button{width:100px;height:30px;border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-medium, 15px);border-radius:var(--emw--button-border-radius, 5px);background:var(--emfe-w-color-primary, #22B04E);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF))}.player-account-vault .actionsContainer .disabled{cursor:default;background:var(--emfe-w-color-gray-150, #828282)}@media only screen and (max-width: 300px){.player-account-vault .playerVaultContainer .headerContainer h1{text-align:left;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer p{text-align:right;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-medium, 20px)}}");
3789
3785
  }
3790
- function hr(e, t, r) {
3791
- const n = e.slice();
3792
- return n[64] = t[r], n[65] = t, n[66] = r, n;
3786
+ function fn(e, t, n) {
3787
+ const r = e.slice();
3788
+ return r[64] = t[n], r[65] = t, r[66] = n, r;
3793
3789
  }
3794
- function fr(e, t, r) {
3795
- const n = e.slice();
3796
- return n[67] = t[r], n;
3790
+ function pn(e, t, n) {
3791
+ const r = e.slice();
3792
+ return r[67] = t[n], r;
3797
3793
  }
3798
- function pr(e, t, r) {
3799
- const n = e.slice();
3800
- return n[67] = t[r], n;
3794
+ function mn(e, t, n) {
3795
+ const r = e.slice();
3796
+ return r[67] = t[n], r;
3801
3797
  }
3802
- function mr(e) {
3803
- let t, r = (
3798
+ function dn(e) {
3799
+ let t, n = (
3804
3800
  /*balance*/
3805
3801
  e[67].currency + ""
3806
- ), n, i, a;
3802
+ ), r, i, a;
3807
3803
  return {
3808
3804
  c() {
3809
- t = E("option"), n = $(r), i = R(), t.__value = a = /*balance*/
3810
- e[67].currency, xe(t, t.__value);
3805
+ t = E("option"), r = k(n), i = M(), t.__value = a = /*balance*/
3806
+ e[67].currency, ve(t, t.__value);
3811
3807
  },
3812
3808
  m(o, s) {
3813
- Q(o, t, s), m(t, n), m(t, i);
3809
+ J(o, t, s), m(t, r), m(t, i);
3814
3810
  },
3815
3811
  p(o, s) {
3816
3812
  s[0] & /*playerFilteredBalances*/
3817
- 8192 && r !== (r = /*balance*/
3818
- o[67].currency + "") && W(n, r), s[0] & /*playerFilteredBalances*/
3813
+ 8192 && n !== (n = /*balance*/
3814
+ o[67].currency + "") && X(r, n), s[0] & /*playerFilteredBalances*/
3819
3815
  8192 && a !== (a = /*balance*/
3820
- o[67].currency) && (t.__value = a, xe(t, t.__value));
3816
+ o[67].currency) && (t.__value = a, ve(t, t.__value));
3821
3817
  },
3822
3818
  d(o) {
3823
- o && Z(t);
3819
+ o && W(t);
3824
3820
  }
3825
3821
  };
3826
3822
  }
3827
- function dr(e) {
3828
- let t, r = (
3823
+ function gn(e) {
3824
+ let t, n = (
3829
3825
  /*balance*/
3830
- e[67].amount > 0 && mr(e)
3826
+ e[67].amount > 0 && dn(e)
3831
3827
  );
3832
3828
  return {
3833
3829
  c() {
3834
- r && r.c(), t = _r();
3830
+ n && n.c(), t = wn();
3835
3831
  },
3836
- m(n, i) {
3837
- r && r.m(n, i), Q(n, t, i);
3832
+ m(r, i) {
3833
+ n && n.m(r, i), J(r, t, i);
3838
3834
  },
3839
- p(n, i) {
3835
+ p(r, i) {
3840
3836
  /*balance*/
3841
- n[67].amount > 0 ? r ? r.p(n, i) : (r = mr(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3837
+ r[67].amount > 0 ? n ? n.p(r, i) : (n = dn(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
3842
3838
  },
3843
- d(n) {
3844
- n && Z(t), r && r.d(n);
3839
+ d(r) {
3840
+ r && W(t), n && n.d(r);
3845
3841
  }
3846
3842
  };
3847
3843
  }
3848
- function gr(e) {
3849
- let t, r = (
3844
+ function bn(e) {
3845
+ let t, n = (
3850
3846
  /*balance*/
3851
3847
  e[67].currency + ""
3852
- ), n, i, a;
3848
+ ), r, i, a;
3853
3849
  return {
3854
3850
  c() {
3855
- t = E("option"), n = $(r), i = R(), t.__value = a = /*balance*/
3856
- e[67].currency, xe(t, t.__value);
3851
+ t = E("option"), r = k(n), i = M(), t.__value = a = /*balance*/
3852
+ e[67].currency, ve(t, t.__value);
3857
3853
  },
3858
3854
  m(o, s) {
3859
- Q(o, t, s), m(t, n), m(t, i);
3855
+ J(o, t, s), m(t, r), m(t, i);
3860
3856
  },
3861
3857
  p(o, s) {
3862
3858
  s[0] & /*playerFilteredBalances*/
3863
- 8192 && r !== (r = /*balance*/
3864
- o[67].currency + "") && W(n, r), s[0] & /*playerFilteredBalances*/
3859
+ 8192 && n !== (n = /*balance*/
3860
+ o[67].currency + "") && X(r, n), s[0] & /*playerFilteredBalances*/
3865
3861
  8192 && a !== (a = /*balance*/
3866
- o[67].currency) && (t.__value = a, xe(t, t.__value));
3862
+ o[67].currency) && (t.__value = a, ve(t, t.__value));
3867
3863
  },
3868
3864
  d(o) {
3869
- o && Z(t);
3865
+ o && W(t);
3870
3866
  }
3871
3867
  };
3872
3868
  }
3873
- function br(e) {
3874
- let t, r = (
3869
+ function yn(e) {
3870
+ let t, n = (
3875
3871
  /*selectedCurrencyFrom*/
3876
3872
  e[1] !== /*balance*/
3877
- e[67].currency && gr(e)
3873
+ e[67].currency && bn(e)
3878
3874
  );
3879
3875
  return {
3880
3876
  c() {
3881
- r && r.c(), t = _r();
3877
+ n && n.c(), t = wn();
3882
3878
  },
3883
- m(n, i) {
3884
- r && r.m(n, i), Q(n, t, i);
3879
+ m(r, i) {
3880
+ n && n.m(r, i), J(r, t, i);
3885
3881
  },
3886
- p(n, i) {
3882
+ p(r, i) {
3887
3883
  /*selectedCurrencyFrom*/
3888
- n[1] !== /*balance*/
3889
- n[67].currency ? r ? r.p(n, i) : (r = gr(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3884
+ r[1] !== /*balance*/
3885
+ r[67].currency ? n ? n.p(r, i) : (n = bn(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
3890
3886
  },
3891
- d(n) {
3892
- n && Z(t), r && r.d(n);
3887
+ d(r) {
3888
+ r && W(t), n && n.d(r);
3893
3889
  }
3894
3890
  };
3895
3891
  }
3896
- function yr(e) {
3897
- let t, r, n = (
3892
+ function vn(e) {
3893
+ let t, n, r = (
3898
3894
  /*vault*/
3899
3895
  e[64].currency + ""
3900
3896
  ), i, a, o, s = (
3901
3897
  /*vault*/
3902
3898
  e[64].amount + ""
3903
- ), c, l, u = (
3899
+ ), c, u, l = (
3904
3900
  /*index*/
3905
3901
  e[66]
3906
3902
  );
3907
- const h = () => (
3903
+ const f = () => (
3908
3904
  /*div_binding*/
3909
- e[37](t, u)
3905
+ e[37](t, l)
3910
3906
  ), d = () => (
3911
3907
  /*div_binding*/
3912
- e[37](null, u)
3908
+ e[37](null, l)
3913
3909
  );
3914
3910
  return {
3915
3911
  c() {
3916
- t = E("div"), r = E("p"), i = $(n), a = R(), o = E("p"), c = $(s), l = R(), T(t, "class", "vaultItem");
3912
+ t = E("div"), n = E("p"), i = k(r), a = M(), o = E("p"), c = k(s), u = M(), H(t, "class", "vaultItem");
3917
3913
  },
3918
- m(b, v) {
3919
- Q(b, t, v), m(t, r), m(r, i), m(t, a), m(t, o), m(o, c), m(t, l), h();
3914
+ m(y, v) {
3915
+ J(y, t, v), m(t, n), m(n, i), m(t, a), m(t, o), m(o, c), m(t, u), f();
3920
3916
  },
3921
- p(b, v) {
3922
- e = b, v[0] & /*dropDownVaults*/
3923
- 16384 && n !== (n = /*vault*/
3924
- e[64].currency + "") && W(i, n), v[0] & /*dropDownVaults*/
3917
+ p(y, v) {
3918
+ e = y, v[0] & /*dropDownVaults*/
3919
+ 16384 && r !== (r = /*vault*/
3920
+ e[64].currency + "") && X(i, r), v[0] & /*dropDownVaults*/
3925
3921
  16384 && s !== (s = /*vault*/
3926
- e[64].amount + "") && W(c, s), u !== /*index*/
3927
- e[66] && (d(), u = /*index*/
3928
- e[66], h());
3922
+ e[64].amount + "") && X(c, s), l !== /*index*/
3923
+ e[66] && (d(), l = /*index*/
3924
+ e[66], f());
3929
3925
  },
3930
- d(b) {
3931
- b && Z(t), d();
3926
+ d(y) {
3927
+ y && W(t), d();
3932
3928
  }
3933
3929
  };
3934
3930
  }
3935
- function oa(e) {
3936
- let t, r = (
3931
+ function aa(e) {
3932
+ let t, n = (
3937
3933
  /*$_*/
3938
3934
  e[18]("Exchange") + ""
3939
- ), n, i, a, o = (
3935
+ ), r, i, a, o = (
3940
3936
  /*$_*/
3941
3937
  e[18]("Reset") + ""
3942
- ), s, c, l;
3938
+ ), s, c, u;
3943
3939
  return {
3944
3940
  c() {
3945
- t = E("button"), n = $(r), i = R(), a = E("button"), s = $(o), t.disabled = /*exchangeDisabled*/
3946
- e[6], j(
3941
+ t = E("button"), r = k(n), i = M(), a = E("button"), s = k(o), t.disabled = /*exchangeDisabled*/
3942
+ e[6], G(
3947
3943
  t,
3948
3944
  "disabled",
3949
3945
  /*exchangeDisabled*/
3950
3946
  e[6]
3951
3947
  ), a.disabled = /*exchangeDisabled*/
3952
- e[6], j(
3948
+ e[6], G(
3953
3949
  a,
3954
3950
  "disabled",
3955
3951
  /*exchangeDisabled*/
3956
3952
  e[6]
3957
3953
  );
3958
3954
  },
3959
- m(u, h) {
3960
- Q(u, t, h), m(t, n), Q(u, i, h), Q(u, a, h), m(a, s), c || (l = [
3961
- ee(
3955
+ m(l, f) {
3956
+ J(l, t, f), m(t, r), J(l, i, f), J(l, a, f), m(a, s), c || (u = [
3957
+ Y(
3962
3958
  t,
3963
3959
  "click",
3964
3960
  /*walletExchange*/
3965
3961
  e[21]
3966
3962
  ),
3967
- ee(
3963
+ Y(
3968
3964
  a,
3969
3965
  "click",
3970
3966
  /*resetUiToDefault*/
@@ -3972,55 +3968,55 @@ function oa(e) {
3972
3968
  )
3973
3969
  ], c = !0);
3974
3970
  },
3975
- p(u, h) {
3976
- h[0] & /*$_*/
3977
- 262144 && r !== (r = /*$_*/
3978
- u[18]("Exchange") + "") && W(n, r), h[0] & /*exchangeDisabled*/
3971
+ p(l, f) {
3972
+ f[0] & /*$_*/
3973
+ 262144 && n !== (n = /*$_*/
3974
+ l[18]("Exchange") + "") && X(r, n), f[0] & /*exchangeDisabled*/
3979
3975
  64 && (t.disabled = /*exchangeDisabled*/
3980
- u[6]), h[0] & /*exchangeDisabled*/
3981
- 64 && j(
3976
+ l[6]), f[0] & /*exchangeDisabled*/
3977
+ 64 && G(
3982
3978
  t,
3983
3979
  "disabled",
3984
3980
  /*exchangeDisabled*/
3985
- u[6]
3986
- ), h[0] & /*$_*/
3981
+ l[6]
3982
+ ), f[0] & /*$_*/
3987
3983
  262144 && o !== (o = /*$_*/
3988
- u[18]("Reset") + "") && W(s, o), h[0] & /*exchangeDisabled*/
3984
+ l[18]("Reset") + "") && X(s, o), f[0] & /*exchangeDisabled*/
3989
3985
  64 && (a.disabled = /*exchangeDisabled*/
3990
- u[6]), h[0] & /*exchangeDisabled*/
3991
- 64 && j(
3986
+ l[6]), f[0] & /*exchangeDisabled*/
3987
+ 64 && G(
3992
3988
  a,
3993
3989
  "disabled",
3994
3990
  /*exchangeDisabled*/
3995
- u[6]
3991
+ l[6]
3996
3992
  );
3997
3993
  },
3998
- d(u) {
3999
- u && (Z(t), Z(i), Z(a)), c = !1, we(l);
3994
+ d(l) {
3995
+ l && (W(t), W(i), W(a)), c = !1, _e(u);
4000
3996
  }
4001
3997
  };
4002
3998
  }
4003
- function sa(e) {
4004
- let t, r = (
3999
+ function oa(e) {
4000
+ let t, n = (
4005
4001
  /*$_*/
4006
4002
  e[18]("Accept") + ""
4007
- ), n, i, a, o = (
4003
+ ), r, i, a, o = (
4008
4004
  /*$_*/
4009
4005
  e[18]("Decline") + ""
4010
- ), s, c, l;
4006
+ ), s, c, u;
4011
4007
  return {
4012
4008
  c() {
4013
- t = E("button"), n = $(r), i = R(), a = E("button"), s = $(o);
4009
+ t = E("button"), r = k(n), i = M(), a = E("button"), s = k(o);
4014
4010
  },
4015
- m(u, h) {
4016
- Q(u, t, h), m(t, n), Q(u, i, h), Q(u, a, h), m(a, s), c || (l = [
4017
- ee(
4011
+ m(l, f) {
4012
+ J(l, t, f), m(t, r), J(l, i, f), J(l, a, f), m(a, s), c || (u = [
4013
+ Y(
4018
4014
  t,
4019
4015
  "click",
4020
4016
  /*feeAcceptStep*/
4021
4017
  e[22]
4022
4018
  ),
4023
- ee(
4019
+ Y(
4024
4020
  a,
4025
4021
  "click",
4026
4022
  /*resetUiToDefault*/
@@ -4028,452 +4024,465 @@ function sa(e) {
4028
4024
  )
4029
4025
  ], c = !0);
4030
4026
  },
4031
- p(u, h) {
4032
- h[0] & /*$_*/
4033
- 262144 && r !== (r = /*$_*/
4034
- u[18]("Accept") + "") && W(n, r), h[0] & /*$_*/
4027
+ p(l, f) {
4028
+ f[0] & /*$_*/
4029
+ 262144 && n !== (n = /*$_*/
4030
+ l[18]("Accept") + "") && X(r, n), f[0] & /*$_*/
4035
4031
  262144 && o !== (o = /*$_*/
4036
- u[18]("Decline") + "") && W(s, o);
4032
+ l[18]("Decline") + "") && X(s, o);
4037
4033
  },
4038
- d(u) {
4039
- u && (Z(t), Z(i), Z(a)), c = !1, we(l);
4034
+ d(l) {
4035
+ l && (W(t), W(i), W(a)), c = !1, _e(u);
4040
4036
  }
4041
4037
  };
4042
4038
  }
4043
- function ua(e) {
4044
- let t, r, n, i, a = (
4039
+ function sa(e) {
4040
+ let t, n, r, i, a = (
4045
4041
  /*$_*/
4046
4042
  e[18]("vaultExchange") + ""
4047
- ), o, s, c, l, u = (
4043
+ ), o, s, c, u, l = (
4048
4044
  /*$_*/
4049
4045
  e[18]("currentBalance") + ""
4050
- ), h, d, b, v = (
4046
+ ), f, d, y, v = (
4051
4047
  /*playerBalance*/
4052
4048
  e[15].amount + ""
4053
- ), P, F, I = (
4049
+ ), I, U, N = (
4054
4050
  /*playerBalance*/
4055
4051
  e[15].currency + ""
4056
- ), D, U, C, O, q, te = (
4052
+ ), R, D, P, O, Z, K = (
4057
4053
  /*$_*/
4058
4054
  e[18]("exchangeFrom") + ""
4059
- ), oe, Te, he, fe, V, J, pe, G, Be, Y, Xe, re, me, Se = (
4055
+ ), ie, we, se, le, $, q, ue, F, Se, Q, Xe, ee, ce, he = (
4060
4056
  /*$_*/
4061
4057
  e[18]("exchangeTo") + ""
4062
- ), We, Ze, de, k, Ce, Pe, nt, ne, qe, be, ye, Je, Ie, Qe, M, ge, it, K, ie, Ne, Oe = (
4058
+ ), We, nt, fe, j, Te, He, Ze, te, rt, pe, me, Ce, Pe, it, ne, Ie, qe, L, z, Ne, Oe = (
4063
4059
  /*$_*/
4064
4060
  e[18](
4065
4061
  /*errorCode*/
4066
4062
  e[3]
4067
4063
  ) + ""
4068
- ), at, He, p, y, B = Me(
4064
+ ), at, Ae, Je, ot, de = Me(
4069
4065
  /*playerFilteredBalances*/
4070
4066
  e[13]
4071
- ), x = [];
4072
- for (let f = 0; f < B.length; f += 1)
4073
- x[f] = dr(pr(e, B, f));
4074
- let A = Me(
4067
+ ), h = [];
4068
+ for (let p = 0; p < de.length; p += 1)
4069
+ h[p] = gn(mn(e, de, p));
4070
+ let b = Me(
4075
4071
  /*playerFilteredBalances*/
4076
4072
  e[13]
4077
- ), L = [];
4078
- for (let f = 0; f < A.length; f += 1)
4079
- L[f] = br(fr(e, A, f));
4080
- let se = Me(
4073
+ ), x = [];
4074
+ for (let p = 0; p < b.length; p += 1)
4075
+ x[p] = yn(pn(e, b, p));
4076
+ let S = Me(
4081
4077
  /*dropDownVaults*/
4082
4078
  e[14]
4083
- ), z = [];
4084
- for (let f = 0; f < se.length; f += 1)
4085
- z[f] = yr(hr(e, se, f));
4086
- function Vt(f, H) {
4079
+ ), _ = [];
4080
+ for (let p = 0; p < S.length; p += 1)
4081
+ _[p] = vn(fn(e, S, p));
4082
+ function ge(p, A) {
4087
4083
  return (
4088
4084
  /*hasTransactionFee*/
4089
- f[12] && !/*isFeeAccepted*/
4090
- f[11] ? sa : oa
4085
+ p[12] && !/*isFeeAccepted*/
4086
+ p[11] ? oa : aa
4091
4087
  );
4092
4088
  }
4093
- let ot = Vt(e), ue = ot(e);
4089
+ let be = ge(e), ae = be(e);
4094
4090
  return {
4095
4091
  c() {
4096
- t = E("div"), r = E("div"), n = E("div"), i = E("h1"), o = $(a), s = R(), c = E("div"), l = E("p"), h = $(u), d = R(), b = E("p"), P = $(v), F = R(), D = $(I), U = R(), C = E("div"), O = E("div"), q = E("p"), oe = $(te), Te = R(), he = E("div"), fe = E("div"), V = E("input"), pe = R(), G = E("select");
4097
- for (let f = 0; f < x.length; f += 1)
4098
- x[f].c();
4099
- Be = R(), Y = E("div"), Y.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="6 5 20 20" class="iconExchange"><path 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"></path></svg>', Xe = R(), re = E("div"), me = E("p"), We = $(Se), Ze = R(), de = E("div"), k = E("input"), nt = R(), ne = E("select");
4100
- for (let f = 0; f < L.length; f += 1)
4101
- L[f].c();
4102
- qe = R(), be = E("div"), ye = Xt("svg"), Je = Xt("path"), Qe = R(), M = E("div");
4103
- for (let f = 0; f < z.length; f += 1)
4104
- z[f].c();
4105
- it = R(), K = E("div"), ie = E("div"), Ne = E("p"), at = R(), He = E("div"), ue.c(), T(n, "class", "headerContainer"), T(b, "class", "playerBalance"), T(c, "class", "balanceContainer"), T(r, "class", "playerVaultContainer"), T(q, "class", "exchangeHeader"), T(V, "placeholder", J = /*$_*/
4106
- e[18]("debitPlaceHolder")), T(V, "type", "number"), T(V, "min", "0"), /*selectedCurrencyFrom*/
4107
- e[1] === void 0 && et(() => (
4092
+ t = E("div"), n = E("div"), r = E("div"), i = E("h1"), o = k(a), s = M(), c = E("div"), u = E("p"), f = k(l), d = M(), y = E("p"), I = k(v), U = M(), R = k(N), D = M(), P = E("div"), O = E("div"), Z = E("p"), ie = k(K), we = M(), se = E("div"), le = E("div"), $ = E("input"), ue = M(), F = E("select");
4093
+ for (let p = 0; p < h.length; p += 1)
4094
+ h[p].c();
4095
+ Se = M(), Q = E("div"), Q.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="6 5 20 20" class="iconExchange"><path 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"></path></svg>', Xe = M(), ee = E("div"), ce = E("p"), We = k(he), nt = M(), fe = E("div"), j = E("input"), Ze = M(), te = E("select");
4096
+ for (let p = 0; p < x.length; p += 1)
4097
+ x[p].c();
4098
+ rt = M(), pe = E("div"), me = Xt("svg"), Ce = Xt("path"), it = M(), ne = E("div");
4099
+ for (let p = 0; p < _.length; p += 1)
4100
+ _[p].c();
4101
+ qe = M(), L = E("div"), z = E("div"), Ne = E("p"), at = M(), Ae = E("div"), ae.c(), H(r, "class", "headerContainer"), H(y, "class", "playerBalance"), H(c, "class", "balanceContainer"), H(n, "class", "playerVaultContainer"), H(Z, "class", "exchangeHeader"), H($, "placeholder", q = /*$_*/
4102
+ e[18]("debitPlaceHolder")), H($, "type", "number"), H($, "min", "0"), /*selectedCurrencyFrom*/
4103
+ e[1] === void 0 && Ke(() => (
4108
4104
  /*select0_change_handler*/
4109
- e[33].call(G)
4110
- )), T(fe, "class", "containerInputSelect"), T(he, "class", "flexingContainerRow"), T(O, "class", "containerExchangeFrom"), T(Y, "class", "containerIconExchange"), T(me, "class", "exchangeHeader"), k.disabled = Ce = /*inputExchangeFrom*/
4111
- e[4] === 0, T(k, "placeholder", Pe = /*$_*/
4112
- e[18]("creditPlaceHolder")), T(k, "type", "number"), T(k, "min", "0"), k.readOnly = !0, /*selectedCurrencyTo*/
4113
- e[2] === void 0 && et(() => (
4105
+ e[33].call(F)
4106
+ )), H(le, "class", "containerInputSelect"), H(se, "class", "flexingContainerRow"), H(O, "class", "containerExchangeFrom"), H(Q, "class", "containerIconExchange"), H(ce, "class", "exchangeHeader"), j.disabled = Te = /*inputExchangeFrom*/
4107
+ e[4] === 0, H(j, "placeholder", He = /*$_*/
4108
+ e[18]("creditPlaceHolder")), H(j, "type", "number"), H(j, "min", "0"), j.readOnly = !0, /*selectedCurrencyTo*/
4109
+ e[2] === void 0 && Ke(() => (
4114
4110
  /*select1_change_handler*/
4115
- e[35].call(ne)
4116
- )), T(de, "class", "containerInputSelect"), T(re, "class", "containerExchangeTo"), T(Je, "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"), T(ye, "xmlns", "http://www.w3.org/2000/svg"), T(ye, "viewBox", "6 5 20 20"), T(ye, "class", "iconToggleVault"), T(be, "class", Ie = "containerIconVault " + /*isVaultDropDownToggled*/
4111
+ e[35].call(te)
4112
+ )), H(fe, "class", "containerInputSelect"), H(ee, "class", "containerExchangeTo"), H(Ce, "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"), H(me, "xmlns", "http://www.w3.org/2000/svg"), H(me, "viewBox", "6 5 20 20"), H(me, "class", "iconToggleVault"), H(pe, "class", Pe = "containerIconVault " + /*isVaultDropDownToggled*/
4117
4113
  (e[7] && /*dropDownVaults*/
4118
- e[14].length > 0 ? "active" : "")), T(C, "class", "containerExchanges"), T(M, "class", ge = "vaultDropDown " + /*isVaultDropDownToggled*/
4114
+ e[14].length > 0 ? "active" : "")), H(P, "class", "containerExchanges"), H(ne, "class", Ie = "vaultDropDown " + /*isVaultDropDownToggled*/
4119
4115
  (e[7] && /*dropDownVaults*/
4120
4116
  e[14].length > 0 ? "active" : "")), Wt(
4121
- M,
4117
+ ne,
4122
4118
  "height",
4123
4119
  /*calculateHeight*/
4124
4120
  e[0]
4125
- ), j(
4126
- ie,
4121
+ ), G(
4122
+ z,
4127
4123
  "error",
4128
4124
  /*isError*/
4129
4125
  e[8]
4130
- ), j(
4131
- ie,
4126
+ ), G(
4127
+ z,
4132
4128
  "success",
4133
4129
  /*isSuccess*/
4134
4130
  e[9]
4135
- ), j(
4136
- ie,
4131
+ ), G(
4132
+ z,
4137
4133
  "action",
4138
4134
  /*isAction*/
4139
4135
  e[10]
4140
- ), T(K, "class", "notificationsContainer"), j(
4141
- K,
4136
+ ), H(L, "class", "notificationsContainer"), G(
4137
+ L,
4142
4138
  "error",
4143
4139
  /*isError*/
4144
4140
  e[8]
4145
- ), j(
4146
- K,
4141
+ ), G(
4142
+ L,
4147
4143
  "success",
4148
4144
  /*isSuccess*/
4149
4145
  e[9]
4150
- ), j(
4151
- K,
4146
+ ), G(
4147
+ L,
4152
4148
  "action",
4153
4149
  /*isAction*/
4154
4150
  e[10]
4155
- ), T(He, "class", "actionsContainer"), T(t, "class", "player-account-vault");
4151
+ ), H(Ae, "class", "actionsContainer"), H(t, "class", "player-account-vault");
4156
4152
  },
4157
- m(f, H) {
4158
- Q(f, t, H), m(t, r), m(r, n), m(n, i), m(i, o), m(r, s), m(r, c), m(c, l), m(l, h), m(c, d), m(c, b), m(b, P), m(b, F), m(b, D), m(t, U), m(t, C), m(C, O), m(O, q), m(q, oe), m(O, Te), m(O, he), m(he, fe), m(fe, V), xe(
4159
- V,
4153
+ m(p, A) {
4154
+ J(p, t, A), m(t, n), m(n, r), m(r, i), m(i, o), m(n, s), m(n, c), m(c, u), m(u, f), m(c, d), m(c, y), m(y, I), m(y, U), m(y, R), m(t, D), m(t, P), m(P, O), m(O, Z), m(Z, ie), m(O, we), m(O, se), m(se, le), m(le, $), ve(
4155
+ $,
4160
4156
  /*inputExchangeFrom*/
4161
4157
  e[4]
4162
- ), m(fe, pe), m(fe, G);
4163
- for (let g = 0; g < x.length; g += 1)
4164
- x[g] && x[g].m(G, null);
4158
+ ), m(le, ue), m(le, F);
4159
+ for (let g = 0; g < h.length; g += 1)
4160
+ h[g] && h[g].m(F, null);
4165
4161
  st(
4166
- G,
4162
+ F,
4167
4163
  /*selectedCurrencyFrom*/
4168
4164
  e[1],
4169
4165
  !0
4170
- ), m(C, Be), m(C, Y), m(C, Xe), m(C, re), m(re, me), m(me, We), m(re, Ze), m(re, de), m(de, k), xe(
4171
- k,
4166
+ ), m(P, Se), m(P, Q), m(P, Xe), m(P, ee), m(ee, ce), m(ce, We), m(ee, nt), m(ee, fe), m(fe, j), ve(
4167
+ j,
4172
4168
  /*inputExchangeTo*/
4173
4169
  e[5]
4174
- ), m(de, nt), m(de, ne);
4175
- for (let g = 0; g < L.length; g += 1)
4176
- L[g] && L[g].m(ne, null);
4170
+ ), m(fe, Ze), m(fe, te);
4171
+ for (let g = 0; g < x.length; g += 1)
4172
+ x[g] && x[g].m(te, null);
4177
4173
  st(
4178
- ne,
4174
+ te,
4179
4175
  /*selectedCurrencyTo*/
4180
4176
  e[2],
4181
4177
  !0
4182
- ), m(C, qe), m(C, be), m(be, ye), m(ye, Je), m(t, Qe), m(t, M);
4183
- for (let g = 0; g < z.length; g += 1)
4184
- z[g] && z[g].m(M, null);
4185
- e[38](M), m(t, it), m(t, K), m(K, ie), m(ie, Ne), Ne.innerHTML = Oe, m(t, at), m(t, He), ue.m(He, null), p || (y = [
4186
- ee(
4187
- V,
4178
+ ), m(P, rt), m(P, pe), m(pe, me), m(me, Ce), m(t, it), m(t, ne);
4179
+ for (let g = 0; g < _.length; g += 1)
4180
+ _[g] && _[g].m(ne, null);
4181
+ e[38](ne), m(t, qe), m(t, L), m(L, z), m(z, Ne), Ne.innerHTML = Oe, m(t, at), m(t, Ae), ae.m(Ae, null), Je || (ot = [
4182
+ Y(
4183
+ $,
4188
4184
  "input",
4189
4185
  /*input0_input_handler*/
4190
4186
  e[32]
4191
4187
  ),
4192
- ee(
4193
- V,
4188
+ Y(
4189
+ $,
4194
4190
  "input",
4195
4191
  /*debouncedExchangeInterogation*/
4196
4192
  e[20]
4197
4193
  ),
4198
- ee(
4199
- G,
4194
+ Y(
4195
+ F,
4200
4196
  "change",
4201
4197
  /*select0_change_handler*/
4202
4198
  e[33]
4203
4199
  ),
4204
- ee(
4205
- G,
4200
+ Y(
4201
+ F,
4206
4202
  "change",
4207
4203
  /*debouncedExchangeInterogation*/
4208
4204
  e[20]
4209
4205
  ),
4210
- ee(
4211
- k,
4206
+ Y(
4207
+ j,
4212
4208
  "input",
4213
4209
  /*input1_input_handler*/
4214
4210
  e[34]
4215
4211
  ),
4216
- ee(
4217
- ne,
4212
+ Y(
4213
+ te,
4218
4214
  "change",
4219
4215
  /*select1_change_handler*/
4220
4216
  e[35]
4221
4217
  ),
4222
- ee(
4223
- ne,
4218
+ Y(
4219
+ te,
4224
4220
  "change",
4225
4221
  /*debouncedExchangeInterogation*/
4226
4222
  e[20]
4227
4223
  ),
4228
- ee(
4229
- be,
4224
+ Y(
4225
+ pe,
4230
4226
  "click",
4231
4227
  /*click_handler*/
4232
4228
  e[36]
4233
4229
  )
4234
- ], p = !0);
4230
+ ], Je = !0);
4235
4231
  },
4236
- p(f, H) {
4237
- if (H[0] & /*$_*/
4232
+ p(p, A) {
4233
+ if (A[0] & /*$_*/
4238
4234
  262144 && a !== (a = /*$_*/
4239
- f[18]("vaultExchange") + "") && W(o, a), H[0] & /*$_*/
4240
- 262144 && u !== (u = /*$_*/
4241
- f[18]("currentBalance") + "") && W(h, u), H[0] & /*playerBalance*/
4235
+ p[18]("vaultExchange") + "") && X(o, a), A[0] & /*$_*/
4236
+ 262144 && l !== (l = /*$_*/
4237
+ p[18]("currentBalance") + "") && X(f, l), A[0] & /*playerBalance*/
4242
4238
  32768 && v !== (v = /*playerBalance*/
4243
- f[15].amount + "") && W(P, v), H[0] & /*playerBalance*/
4244
- 32768 && I !== (I = /*playerBalance*/
4245
- f[15].currency + "") && W(D, I), H[0] & /*$_*/
4246
- 262144 && te !== (te = /*$_*/
4247
- f[18]("exchangeFrom") + "") && W(oe, te), H[0] & /*$_*/
4248
- 262144 && J !== (J = /*$_*/
4249
- f[18]("debitPlaceHolder")) && T(V, "placeholder", J), H[0] & /*inputExchangeFrom*/
4250
- 16 && ft(V.value) !== /*inputExchangeFrom*/
4251
- f[4] && xe(
4252
- V,
4239
+ p[15].amount + "") && X(I, v), A[0] & /*playerBalance*/
4240
+ 32768 && N !== (N = /*playerBalance*/
4241
+ p[15].currency + "") && X(R, N), A[0] & /*$_*/
4242
+ 262144 && K !== (K = /*$_*/
4243
+ p[18]("exchangeFrom") + "") && X(ie, K), A[0] & /*$_*/
4244
+ 262144 && q !== (q = /*$_*/
4245
+ p[18]("debitPlaceHolder")) && H($, "placeholder", q), A[0] & /*inputExchangeFrom*/
4246
+ 16 && ft($.value) !== /*inputExchangeFrom*/
4247
+ p[4] && ve(
4248
+ $,
4253
4249
  /*inputExchangeFrom*/
4254
- f[4]
4255
- ), H[0] & /*playerFilteredBalances*/
4250
+ p[4]
4251
+ ), A[0] & /*playerFilteredBalances*/
4256
4252
  8192) {
4257
- B = Me(
4253
+ de = Me(
4258
4254
  /*playerFilteredBalances*/
4259
- f[13]
4255
+ p[13]
4260
4256
  );
4261
4257
  let g;
4262
- for (g = 0; g < B.length; g += 1) {
4263
- const ve = pr(f, B, g);
4264
- x[g] ? x[g].p(ve, H) : (x[g] = dr(ve), x[g].c(), x[g].m(G, null));
4258
+ for (g = 0; g < de.length; g += 1) {
4259
+ const ye = mn(p, de, g);
4260
+ h[g] ? h[g].p(ye, A) : (h[g] = gn(ye), h[g].c(), h[g].m(F, null));
4265
4261
  }
4266
- for (; g < x.length; g += 1)
4267
- x[g].d(1);
4268
- x.length = B.length;
4262
+ for (; g < h.length; g += 1)
4263
+ h[g].d(1);
4264
+ h.length = de.length;
4269
4265
  }
4270
- if (H[0] & /*selectedCurrencyFrom, playerFilteredBalances*/
4266
+ if (A[0] & /*selectedCurrencyFrom, playerFilteredBalances*/
4271
4267
  8194 && st(
4272
- G,
4268
+ F,
4273
4269
  /*selectedCurrencyFrom*/
4274
- f[1]
4275
- ), H[0] & /*$_*/
4276
- 262144 && Se !== (Se = /*$_*/
4277
- f[18]("exchangeTo") + "") && W(We, Se), H[0] & /*inputExchangeFrom*/
4278
- 16 && Ce !== (Ce = /*inputExchangeFrom*/
4279
- f[4] === 0) && (k.disabled = Ce), H[0] & /*$_*/
4280
- 262144 && Pe !== (Pe = /*$_*/
4281
- f[18]("creditPlaceHolder")) && T(k, "placeholder", Pe), H[0] & /*inputExchangeTo*/
4282
- 32 && ft(k.value) !== /*inputExchangeTo*/
4283
- f[5] && xe(
4284
- k,
4270
+ p[1]
4271
+ ), A[0] & /*$_*/
4272
+ 262144 && he !== (he = /*$_*/
4273
+ p[18]("exchangeTo") + "") && X(We, he), A[0] & /*inputExchangeFrom*/
4274
+ 16 && Te !== (Te = /*inputExchangeFrom*/
4275
+ p[4] === 0) && (j.disabled = Te), A[0] & /*$_*/
4276
+ 262144 && He !== (He = /*$_*/
4277
+ p[18]("creditPlaceHolder")) && H(j, "placeholder", He), A[0] & /*inputExchangeTo*/
4278
+ 32 && ft(j.value) !== /*inputExchangeTo*/
4279
+ p[5] && ve(
4280
+ j,
4285
4281
  /*inputExchangeTo*/
4286
- f[5]
4287
- ), H[0] & /*playerFilteredBalances, selectedCurrencyFrom*/
4282
+ p[5]
4283
+ ), A[0] & /*playerFilteredBalances, selectedCurrencyFrom*/
4288
4284
  8194) {
4289
- A = Me(
4285
+ b = Me(
4290
4286
  /*playerFilteredBalances*/
4291
- f[13]
4287
+ p[13]
4292
4288
  );
4293
4289
  let g;
4294
- for (g = 0; g < A.length; g += 1) {
4295
- const ve = fr(f, A, g);
4296
- L[g] ? L[g].p(ve, H) : (L[g] = br(ve), L[g].c(), L[g].m(ne, null));
4290
+ for (g = 0; g < b.length; g += 1) {
4291
+ const ye = pn(p, b, g);
4292
+ x[g] ? x[g].p(ye, A) : (x[g] = yn(ye), x[g].c(), x[g].m(te, null));
4297
4293
  }
4298
- for (; g < L.length; g += 1)
4299
- L[g].d(1);
4300
- L.length = A.length;
4294
+ for (; g < x.length; g += 1)
4295
+ x[g].d(1);
4296
+ x.length = b.length;
4301
4297
  }
4302
- if (H[0] & /*selectedCurrencyTo, playerFilteredBalances*/
4298
+ if (A[0] & /*selectedCurrencyTo, playerFilteredBalances*/
4303
4299
  8196 && st(
4304
- ne,
4300
+ te,
4305
4301
  /*selectedCurrencyTo*/
4306
- f[2]
4307
- ), H[0] & /*isVaultDropDownToggled, dropDownVaults*/
4308
- 16512 && Ie !== (Ie = "containerIconVault " + /*isVaultDropDownToggled*/
4309
- (f[7] && /*dropDownVaults*/
4310
- f[14].length > 0 ? "active" : "")) && T(be, "class", Ie), H[0] & /*elements, dropDownVaults*/
4302
+ p[2]
4303
+ ), A[0] & /*isVaultDropDownToggled, dropDownVaults*/
4304
+ 16512 && Pe !== (Pe = "containerIconVault " + /*isVaultDropDownToggled*/
4305
+ (p[7] && /*dropDownVaults*/
4306
+ p[14].length > 0 ? "active" : "")) && H(pe, "class", Pe), A[0] & /*elements, dropDownVaults*/
4311
4307
  147456) {
4312
- se = Me(
4308
+ S = Me(
4313
4309
  /*dropDownVaults*/
4314
- f[14]
4310
+ p[14]
4315
4311
  );
4316
4312
  let g;
4317
- for (g = 0; g < se.length; g += 1) {
4318
- const ve = hr(f, se, g);
4319
- z[g] ? z[g].p(ve, H) : (z[g] = yr(ve), z[g].c(), z[g].m(M, null));
4313
+ for (g = 0; g < S.length; g += 1) {
4314
+ const ye = fn(p, S, g);
4315
+ _[g] ? _[g].p(ye, A) : (_[g] = vn(ye), _[g].c(), _[g].m(ne, null));
4320
4316
  }
4321
- for (; g < z.length; g += 1)
4322
- z[g].d(1);
4323
- z.length = se.length;
4317
+ for (; g < _.length; g += 1)
4318
+ _[g].d(1);
4319
+ _.length = S.length;
4324
4320
  }
4325
- H[0] & /*isVaultDropDownToggled, dropDownVaults*/
4326
- 16512 && ge !== (ge = "vaultDropDown " + /*isVaultDropDownToggled*/
4327
- (f[7] && /*dropDownVaults*/
4328
- f[14].length > 0 ? "active" : "")) && T(M, "class", ge), H[0] & /*calculateHeight*/
4321
+ A[0] & /*isVaultDropDownToggled, dropDownVaults*/
4322
+ 16512 && Ie !== (Ie = "vaultDropDown " + /*isVaultDropDownToggled*/
4323
+ (p[7] && /*dropDownVaults*/
4324
+ p[14].length > 0 ? "active" : "")) && H(ne, "class", Ie), A[0] & /*calculateHeight*/
4329
4325
  1 && Wt(
4330
- M,
4326
+ ne,
4331
4327
  "height",
4332
4328
  /*calculateHeight*/
4333
- f[0]
4334
- ), H[0] & /*$_, errorCode*/
4329
+ p[0]
4330
+ ), A[0] & /*$_, errorCode*/
4335
4331
  262152 && Oe !== (Oe = /*$_*/
4336
- f[18](
4332
+ p[18](
4337
4333
  /*errorCode*/
4338
- f[3]
4339
- ) + "") && (Ne.innerHTML = Oe), H[0] & /*isError*/
4340
- 256 && j(
4341
- ie,
4334
+ p[3]
4335
+ ) + "") && (Ne.innerHTML = Oe), A[0] & /*isError*/
4336
+ 256 && G(
4337
+ z,
4342
4338
  "error",
4343
4339
  /*isError*/
4344
- f[8]
4345
- ), H[0] & /*isSuccess*/
4346
- 512 && j(
4347
- ie,
4340
+ p[8]
4341
+ ), A[0] & /*isSuccess*/
4342
+ 512 && G(
4343
+ z,
4348
4344
  "success",
4349
4345
  /*isSuccess*/
4350
- f[9]
4351
- ), H[0] & /*isAction*/
4352
- 1024 && j(
4353
- ie,
4346
+ p[9]
4347
+ ), A[0] & /*isAction*/
4348
+ 1024 && G(
4349
+ z,
4354
4350
  "action",
4355
4351
  /*isAction*/
4356
- f[10]
4357
- ), H[0] & /*isError*/
4358
- 256 && j(
4359
- K,
4352
+ p[10]
4353
+ ), A[0] & /*isError*/
4354
+ 256 && G(
4355
+ L,
4360
4356
  "error",
4361
4357
  /*isError*/
4362
- f[8]
4363
- ), H[0] & /*isSuccess*/
4364
- 512 && j(
4365
- K,
4358
+ p[8]
4359
+ ), A[0] & /*isSuccess*/
4360
+ 512 && G(
4361
+ L,
4366
4362
  "success",
4367
4363
  /*isSuccess*/
4368
- f[9]
4369
- ), H[0] & /*isAction*/
4370
- 1024 && j(
4371
- K,
4364
+ p[9]
4365
+ ), A[0] & /*isAction*/
4366
+ 1024 && G(
4367
+ L,
4372
4368
  "action",
4373
4369
  /*isAction*/
4374
- f[10]
4375
- ), ot === (ot = Vt(f)) && ue ? ue.p(f, H) : (ue.d(1), ue = ot(f), ue && (ue.c(), ue.m(He, null)));
4370
+ p[10]
4371
+ ), be === (be = ge(p)) && ae ? ae.p(p, A) : (ae.d(1), ae = be(p), ae && (ae.c(), ae.m(Ae, null)));
4376
4372
  },
4377
- i: ae,
4378
- o: ae,
4379
- d(f) {
4380
- f && Z(t), _t(x, f), _t(L, f), _t(z, f), e[38](null), ue.d(), p = !1, we(y);
4373
+ i: re,
4374
+ o: re,
4375
+ d(p) {
4376
+ p && W(t), Et(h, p), Et(x, p), Et(_, p), e[38](null), ae.d(), Je = !1, _e(ot);
4381
4377
  }
4382
4378
  };
4383
4379
  }
4384
4380
  function la(e, t) {
4385
- let r;
4386
- return function(...n) {
4387
- r && clearTimeout(r), r = setTimeout(
4381
+ let n;
4382
+ return function(...r) {
4383
+ n && clearTimeout(n), n = setTimeout(
4388
4384
  () => {
4389
- e.apply(n);
4385
+ e.apply(r);
4390
4386
  },
4391
4387
  t
4392
4388
  );
4393
4389
  };
4394
4390
  }
4395
- function ca(e, t, r) {
4396
- let n;
4397
- qr(e, ra, (p) => r(18, n = p));
4398
- let { session: i = "" } = t, { userid: a = "" } = t, { endpoint: o = "" } = t, { lang: s = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { playercurrency: h = "" } = t, d = "", b = "", v = "", P = "", F = "", I = 0, D = 0, U = 0, C = !0, O = !1, q = !1, te = !1, oe = !1, Te = !0, he = !1, fe = [], V = [], J = [], pe = [], G = [], Be = [], Y = {}, Xe = {}, re = null, me = [];
4399
- const Se = () => {
4400
- ia(s);
4391
+ function ua(e, t, n) {
4392
+ let r;
4393
+ Jn(e, ta, (h) => n(18, r = h));
4394
+ let { session: i = "" } = t, { userid: a = "" } = t, { endpoint: o = "" } = t, { lang: s = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: l = "" } = t, { playercurrency: f = "" } = t, d = "", y = "", v = "", I = "", U = "", N = 0, R = 0, D = 0, P = !0, O = !1, Z = !1, K = !1, ie = !1, we = !0, se = !1, le = [], $ = [], q = [], ue = [], F = [], Se = [], Q = {}, Xe = {}, ee, ce = null, he = [];
4395
+ const We = () => {
4396
+ ra(s);
4401
4397
  };
4402
4398
  na({ withLocale: "en", translations: {} });
4403
- const We = () => {
4404
- fetch(u).then((y) => y.json()).then((y) => {
4405
- Object.keys(y).forEach((B) => {
4406
- lr(B, y[B]);
4399
+ const nt = () => {
4400
+ fetch(l).then((b) => b.json()).then((b) => {
4401
+ Object.keys(b).forEach((x) => {
4402
+ cn(x, b[x]);
4407
4403
  });
4408
- }).catch((y) => {
4409
- console.error("There was a problem with the translations request.", y);
4404
+ }).catch((b) => {
4405
+ console.error("There was a problem with the translations request.", b);
4410
4406
  });
4411
4407
  };
4412
- Object.keys(cr).forEach((p) => {
4413
- lr(p, cr[p]);
4408
+ Object.keys(hn).forEach((h) => {
4409
+ cn(h, hn[h]);
4414
4410
  });
4415
- const Ze = (p) => {
4416
- O && G.length === 0 || (p.preventDefault(), r(7, O = !O), r(0, d = O ? de() : "0px"));
4417
- }, de = () => {
4418
- if (G.length === 0)
4419
- return r(0, d = "0px");
4420
- const p = me[0]?.clientHeight, y = G.length, B = 30, x = parseFloat(getComputedStyle(re).getPropertyValue("gap"));
4421
- return r(0, d = `${y * p + y * x + B}px`);
4422
- }, k = () => new Promise((p, y) => {
4423
- let B = new URL(`${o}/v2/player/${a}/balance`);
4424
- fetch(B, {
4411
+ const fe = () => {
4412
+ let h = document.createElement("style");
4413
+ h.innerHTML = c, ee.appendChild(h);
4414
+ }, j = () => {
4415
+ let h = new URL(u), b = document.createElement("style");
4416
+ fetch(h.href).then((x) => x.text()).then((x) => {
4417
+ b.innerHTML = x, setTimeout(
4418
+ () => {
4419
+ ee.appendChild(b);
4420
+ },
4421
+ 1
4422
+ );
4423
+ });
4424
+ }, Te = (h) => {
4425
+ O && F.length === 0 || (h.preventDefault(), n(7, O = !O), n(0, d = O ? He() : "0px"));
4426
+ }, He = () => {
4427
+ if (F.length === 0)
4428
+ return n(0, d = "0px");
4429
+ const h = he[0]?.clientHeight, b = F.length, x = 30, S = parseFloat(getComputedStyle(ce).getPropertyValue("gap"));
4430
+ return n(0, d = `${b * h + b * S + x}px`);
4431
+ }, Ze = () => new Promise((h, b) => {
4432
+ let x = new URL(`${o}/v2/player/${a}/balance`);
4433
+ fetch(x, {
4425
4434
  method: "GET",
4426
4435
  headers: {
4427
4436
  "X-SessionID": i,
4428
4437
  "Content-Type": "application/json",
4429
4438
  Accept: "application/json"
4430
4439
  }
4431
- }).then((A) => ge(A)).then((A) => {
4432
- A && (r(13, J = []), V = [], pe = [], r(14, G = []), fe = A.items, Pe().then((L) => {
4433
- L.forEach((se) => {
4434
- Be.push(se.code);
4435
- }), Ce(A), p();
4440
+ }).then((_) => z(_)).then((_) => {
4441
+ _ && (n(13, q = []), $ = [], ue = [], n(14, F = []), le = _.items, rt().then((ge) => {
4442
+ ge.forEach((be) => {
4443
+ Se.push(be.code);
4444
+ }), te(_), h();
4436
4445
  }));
4437
- }).catch((A) => {
4438
- y(), M("error", n("generalError")), console.error("There was an error with the player balance request.", A);
4446
+ }).catch((_) => {
4447
+ b(), L("error", r("generalError")), console.error("There was an error with the player balance request.", _);
4439
4448
  });
4440
- }), Ce = (p) => {
4441
- if (fe.forEach((y) => {
4442
- if (y.type === "Real" && !(!Be.includes(y.currency) && Be.length > 0))
4443
- switch (r(13, J = J.concat(y)), y.walletAccountType) {
4449
+ }), te = (h) => {
4450
+ if (le.forEach((b) => {
4451
+ if (b.type === "Real" && !(!Se.includes(b.currency) && Se.length > 0))
4452
+ switch (n(13, q = q.concat(b)), b.walletAccountType) {
4444
4453
  case "Ordinary":
4445
- V = V.concat(y);
4454
+ $ = $.concat(b);
4446
4455
  break;
4447
4456
  case "Vault":
4448
- if (pe = pe.concat(y), y.amount === 0)
4457
+ if (ue = ue.concat(b), b.amount === 0)
4449
4458
  return;
4450
- r(14, G = G.concat(y));
4459
+ n(14, F = F.concat(b));
4451
4460
  break;
4452
4461
  }
4453
- }), r(15, Y = Object.entries(p.totalCashAmount).map(([y, B]) => ({ currency: y, amount: B }))[0]), Y.amount === 0 && !pe.find((y) => y.amount > 0))
4454
- return M("error", n("userHasNoBalances"));
4455
- r(1, b = Y.amount === 0 ? pe.find((y) => y.amount > 0).currency : Y.currency), r(2, v = Y.amount === 0 ? Y.currency : pe.find((y) => y.type === "Real").currency);
4456
- }, Pe = () => new Promise((p, y) => {
4457
- let B = new URL(`${o}/v1/player/${a}/wallet-exchange/currencies`);
4458
- fetch(B, {
4462
+ }), n(15, Q = Object.entries(h.totalCashAmount).map(([b, x]) => ({ currency: b, amount: x }))[0]), Q.amount === 0 && !ue.find((b) => b.amount > 0))
4463
+ return L("error", r("userHasNoBalances"));
4464
+ n(1, y = Q.amount === 0 ? ue.find((b) => b.amount > 0).currency : Q.currency), n(2, v = Q.amount === 0 ? Q.currency : ue.find((b) => b.type === "Real").currency);
4465
+ }, rt = () => new Promise((h, b) => {
4466
+ let x = new URL(`${o}/v1/player/${a}/wallet-exchange/currencies`);
4467
+ fetch(x, {
4459
4468
  method: "GET",
4460
4469
  headers: {
4461
4470
  "X-SessionId": i,
4462
4471
  "Content-Type": "application/json",
4463
4472
  Accept: "application/json"
4464
4473
  }
4465
- }).then((A) => ge(A)).then((A) => {
4466
- A.length !== 0 && p(A.currencies);
4467
- }).catch((A) => {
4468
- y(), M("error", n("generalError")), console.error("There was an error on the allowed currencies request.", A);
4474
+ }).then((_) => z(_)).then((_) => {
4475
+ _.length !== 0 && h(_.currencies);
4476
+ }).catch((_) => {
4477
+ b(), L("error", r("generalError")), console.error("There was an error on the allowed currencies request.", _);
4469
4478
  });
4470
- }), nt = () => new Promise((p, y) => {
4471
- b === v && r(2, v = J.find((x) => x.currency !== b)?.currency), I <= 0 && (Qe(), y());
4472
- const B = J.find((x) => x.currency === b);
4473
- I > B.amount && r(4, I = B.amount), p();
4474
- }), ne = () => {
4475
- nt().then(() => {
4476
- let p = new URL(`${o}/v2/player/${a}/check/wallet-exchange`), B = {
4479
+ }), pe = () => new Promise((h, b) => {
4480
+ y === v && n(2, v = q.find((S) => S.currency !== y)?.currency), N <= 0 && (qe(), b());
4481
+ const x = q.find((S) => S.currency === y);
4482
+ N > x.amount && n(4, N = x.amount), h();
4483
+ }), me = () => {
4484
+ pe().then(() => {
4485
+ let h = new URL(`${o}/v2/player/${a}/check/wallet-exchange`), x = {
4477
4486
  method: "POST",
4478
4487
  headers: {
4479
4488
  "X-SessionID": i,
@@ -4482,32 +4491,32 @@ function ca(e, t, r) {
4482
4491
  },
4483
4492
  body: JSON.stringify({
4484
4493
  userId: a,
4485
- amount: I,
4486
- currency: b,
4487
- fromCurrency: b,
4494
+ amount: N,
4495
+ currency: y,
4496
+ fromCurrency: y,
4488
4497
  toCurrency: v,
4489
- payload: { PlayerCurrency: h }
4498
+ payload: { PlayerCurrency: f }
4490
4499
  })
4491
4500
  };
4492
- fetch(p, B).then((x) => ge(x)).then((x) => {
4493
- if (!x)
4501
+ fetch(h, x).then((S) => z(S)).then((S) => {
4502
+ if (!S)
4494
4503
  return;
4495
- if (r(12, he = !1), r(11, Te = !1), r(10, oe = !1), x.feeDetails && x.feeDetails.fees.length > 0) {
4496
- r(12, he = !0);
4497
- let L = x.feeDetails.fees.find((se) => se.id);
4498
- Je(L);
4504
+ if (n(12, se = !1), n(11, we = !1), n(10, ie = !1), S.feeDetails && S.feeDetails.fees.length > 0) {
4505
+ n(12, se = !0);
4506
+ let ge = S.feeDetails.fees.find((be) => be.id);
4507
+ ne(ge);
4499
4508
  } else
4500
- r(6, C = !1);
4501
- const A = x.walletActions.find((L) => L.directionName === "Credit").amount;
4502
- r(5, D = qe(A));
4503
- }).catch((x) => {
4504
- M("error", n("generalError")), console.error("There was a problem with the wallet exchange request.", x);
4509
+ n(6, P = !1);
4510
+ const _ = S.walletActions.find((ge) => ge.directionName === "Credit").amount;
4511
+ n(5, R = Ce(_));
4512
+ }).catch((S) => {
4513
+ L("error", r("generalError")), console.error("There was a problem with the wallet exchange request.", S);
4505
4514
  });
4506
- }).catch((p) => {
4507
- M("error", n("walletExchangeError"));
4515
+ }).catch((h) => {
4516
+ L("error", r("walletExchangeError"));
4508
4517
  });
4509
- }, qe = (p) => Math.abs(p) < 1e-6 || Math.abs(p) >= 1e6 ? p.toFixed(12).replace(/\.?0+$/, "") : p.toString(), be = la(ne, 500), ye = () => {
4510
- let p = new URL(`${o}/v2/player/${a}/wallet-exchange`), B = {
4518
+ }, Ce = (h) => Math.abs(h) < 1e-6 || Math.abs(h) >= 1e6 ? h.toFixed(12).replace(/\.?0+$/, "") : h.toString(), Pe = la(me, 500), it = () => {
4519
+ let h = new URL(`${o}/v2/player/${a}/wallet-exchange`), x = {
4511
4520
  method: "PUT",
4512
4521
  headers: {
4513
4522
  "X-SessionID": i,
@@ -4516,161 +4525,161 @@ function ca(e, t, r) {
4516
4525
  },
4517
4526
  body: JSON.stringify({
4518
4527
  userId: a,
4519
- amount: I,
4520
- currency: b,
4521
- fromCurrency: b,
4528
+ amount: N,
4529
+ currency: y,
4530
+ fromCurrency: y,
4522
4531
  toCurrency: v,
4523
- payload: { PlayerCurrency: h }
4532
+ payload: { PlayerCurrency: f }
4524
4533
  })
4525
4534
  };
4526
- fetch(p, B).then((x) => ge(x)).then((x) => {
4527
- x && (r(10, oe = !1), r(4, I = 0), r(5, D = 0), M("success", "exchangeSuccess"), k().then((A) => {
4528
- !A || !O || de();
4529
- }).catch((A) => {
4530
- console.error("There was an error with fetching the players balance.", A);
4535
+ fetch(h, x).then((S) => z(S)).then((S) => {
4536
+ S && (n(10, ie = !1), n(4, N = 0), n(5, R = 0), L("success", "exchangeSuccess"), Ze().then((_) => {
4537
+ !_ || !O || He();
4538
+ }).catch((_) => {
4539
+ console.error("There was an error with fetching the players balance.", _);
4531
4540
  }));
4532
- }).catch((x) => {
4533
- M("error", n("generalError")), console.error("There was an error with the wallet exchange request.", x);
4541
+ }).catch((S) => {
4542
+ L("error", r("generalError")), console.error("There was an error with the wallet exchange request.", S);
4534
4543
  });
4535
- }, Je = (p) => {
4536
- U = p.amount, P = p.currency, r(11, Te = !1), M("action", n("feeAcceptNotification", {
4537
- values: { amount: U, currency: P }
4544
+ }, ne = (h) => {
4545
+ D = h.amount, I = h.currency, n(11, we = !1), L("action", r("feeAcceptNotification", {
4546
+ values: { amount: D, currency: I }
4538
4547
  }));
4539
4548
  }, Ie = () => {
4540
- r(10, oe = !1), r(6, C = !1), r(11, Te = !0);
4541
- let y = {
4542
- exchageAmount: qe(I - U),
4543
- exchageCurrency: b,
4544
- exchangedAmount: D,
4549
+ n(10, ie = !1), n(6, P = !1), n(11, we = !0);
4550
+ let b = {
4551
+ exchageAmount: Ce(N - D),
4552
+ exchageCurrency: y,
4553
+ exchangedAmount: R,
4545
4554
  exchangedCurrency: v,
4546
- feeAmount: U,
4547
- feeCurrency: P
4555
+ feeAmount: D,
4556
+ feeCurrency: I
4548
4557
  };
4549
- M("action", n("feeExchangeNotification", { values: y }));
4550
- }, Qe = () => {
4551
- r(10, oe = !1), r(12, he = !1), r(6, C = !0), r(5, D = 0), r(4, I = 0);
4552
- }, M = (p, y) => {
4553
- switch (p) {
4558
+ L("action", r("feeExchangeNotification", { values: b }));
4559
+ }, qe = () => {
4560
+ n(10, ie = !1), n(12, se = !1), n(6, P = !0), n(5, R = 0), n(4, N = 0);
4561
+ }, L = (h, b) => {
4562
+ switch (h) {
4554
4563
  case "error":
4555
- r(8, q = !0), r(6, C = !0), window.postMessage(
4564
+ n(8, Z = !0), n(6, P = !0), window.postMessage(
4556
4565
  {
4557
4566
  type: "WidgetNotification",
4558
- data: { type: "error", message: y }
4567
+ data: { type: "error", message: b }
4559
4568
  },
4560
4569
  window.location.href
4561
4570
  ), setTimeout(
4562
4571
  () => {
4563
- r(8, q = !1);
4572
+ n(8, Z = !1);
4564
4573
  },
4565
4574
  2e3
4566
4575
  );
4567
4576
  break;
4568
4577
  case "success":
4569
- r(9, te = !0), r(6, C = !0), window.postMessage(
4578
+ n(9, K = !0), n(6, P = !0), window.postMessage(
4570
4579
  {
4571
4580
  type: "WidgetNotification",
4572
- data: { type: "success", message: y }
4581
+ data: { type: "success", message: b }
4573
4582
  },
4574
4583
  window.location.href
4575
4584
  ), setTimeout(
4576
4585
  () => {
4577
- r(9, te = !1);
4586
+ n(9, K = !1);
4578
4587
  },
4579
4588
  2e3
4580
4589
  );
4581
4590
  break;
4582
4591
  case "action":
4583
- r(10, oe = !0);
4592
+ n(10, ie = !0);
4584
4593
  break;
4585
4594
  }
4586
- r(3, F = y);
4587
- }, ge = async (p) => p.status >= 300 ? (Xe = await p.json(), r(3, F = Xe.thirdPartyResponse.errorCode), M("error", F || "generalError")) : p.json();
4588
- function it() {
4589
- I = ft(this.value), r(4, I);
4595
+ n(3, U = b);
4596
+ }, z = async (h) => h.status >= 300 ? (Xe = await h.json(), n(3, U = Xe.thirdPartyResponse.errorCode), L("error", U || "generalError")) : h.json();
4597
+ function Ne() {
4598
+ N = ft(this.value), n(4, N);
4590
4599
  }
4591
- function K() {
4592
- b = Zt(this), r(1, b), r(13, J);
4600
+ function Oe() {
4601
+ y = Zt(this), n(1, y), n(13, q);
4593
4602
  }
4594
- function ie() {
4595
- D = ft(this.value), r(5, D);
4603
+ function at() {
4604
+ R = ft(this.value), n(5, R);
4596
4605
  }
4597
- function Ne() {
4598
- v = Zt(this), r(2, v), r(13, J);
4606
+ function Ae() {
4607
+ v = Zt(this), n(2, v), n(13, q);
4599
4608
  }
4600
- const Oe = (p) => {
4601
- Ze(p);
4609
+ const Je = (h) => {
4610
+ Te(h);
4602
4611
  };
4603
- function at(p, y) {
4604
- pt[p ? "unshift" : "push"](() => {
4605
- me[y] = p, r(17, me);
4612
+ function ot(h, b) {
4613
+ pt[h ? "unshift" : "push"](() => {
4614
+ he[b] = h, n(17, he);
4606
4615
  });
4607
4616
  }
4608
- function He(p) {
4609
- pt[p ? "unshift" : "push"](() => {
4610
- re = p, r(16, re);
4617
+ function de(h) {
4618
+ pt[h ? "unshift" : "push"](() => {
4619
+ ce = h, n(16, ce);
4611
4620
  });
4612
4621
  }
4613
- return e.$$set = (p) => {
4614
- "session" in p && r(24, i = p.session), "userid" in p && r(25, a = p.userid), "endpoint" in p && r(26, o = p.endpoint), "lang" in p && r(27, s = p.lang), "clientstyling" in p && r(28, c = p.clientstyling), "clientstylingurl" in p && r(29, l = p.clientstylingurl), "translationurl" in p && r(30, u = p.translationurl), "playercurrency" in p && r(31, h = p.playercurrency);
4622
+ return e.$$set = (h) => {
4623
+ "session" in h && n(24, i = h.session), "userid" in h && n(25, a = h.userid), "endpoint" in h && n(26, o = h.endpoint), "lang" in h && n(27, s = h.lang), "clientstyling" in h && n(28, c = h.clientstyling), "clientstylingurl" in h && n(29, u = h.clientstylingurl), "translationurl" in h && n(30, l = h.translationurl), "playercurrency" in h && n(31, f = h.playercurrency);
4615
4624
  }, e.$$.update = () => {
4616
4625
  e.$$.dirty[0] & /*session*/
4617
4626
  16777216, e.$$.dirty[0] & /*lang*/
4618
- 134217728 && s && Se(), e.$$.dirty[0] & /*session, userid, endpoint*/
4627
+ 134217728 && s && We(), e.$$.dirty[0] & /*session, userid, endpoint*/
4619
4628
  117440512 | e.$$.dirty[1] & /*playercurrency*/
4620
- 1 && i && a && o && h && k(), e.$$.dirty[0] & /*clientstyling*/
4621
- 268435456, e.$$.dirty[0] & /*clientstylingurl*/
4622
- 536870912, e.$$.dirty[0] & /*translationurl*/
4623
- 1073741824 && u && We();
4629
+ 1 && i && a && o && f && Ze(), e.$$.dirty[0] & /*clientstyling*/
4630
+ 268435456 && c && ee && fe(), e.$$.dirty[0] & /*clientstylingurl*/
4631
+ 536870912 && u && ee && j(), e.$$.dirty[0] & /*translationurl*/
4632
+ 1073741824 && l && nt();
4624
4633
  }, [
4625
4634
  d,
4626
- b,
4635
+ y,
4627
4636
  v,
4628
- F,
4629
- I,
4630
- D,
4631
- C,
4637
+ U,
4638
+ N,
4639
+ R,
4640
+ P,
4632
4641
  O,
4642
+ Z,
4643
+ K,
4644
+ ie,
4645
+ we,
4646
+ se,
4633
4647
  q,
4634
- te,
4635
- oe,
4636
- Te,
4648
+ F,
4649
+ Q,
4650
+ ce,
4637
4651
  he,
4638
- J,
4639
- G,
4640
- Y,
4641
- re,
4642
- me,
4643
- n,
4644
- Ze,
4645
- be,
4646
- ye,
4652
+ r,
4653
+ Te,
4654
+ Pe,
4655
+ it,
4647
4656
  Ie,
4648
- Qe,
4657
+ qe,
4649
4658
  i,
4650
4659
  a,
4651
4660
  o,
4652
4661
  s,
4653
4662
  c,
4654
- l,
4655
4663
  u,
4656
- h,
4657
- it,
4658
- K,
4659
- ie,
4664
+ l,
4665
+ f,
4660
4666
  Ne,
4661
4667
  Oe,
4662
4668
  at,
4663
- He
4669
+ Ae,
4670
+ Je,
4671
+ ot,
4672
+ de
4664
4673
  ];
4665
4674
  }
4666
- class ha extends pn {
4675
+ class ca extends pr {
4667
4676
  constructor(t) {
4668
- super(), hn(
4677
+ super(), hr(
4669
4678
  this,
4670
4679
  t,
4671
- ca,
4672
4680
  ua,
4673
- xr,
4681
+ sa,
4682
+ En,
4674
4683
  {
4675
4684
  session: 24,
4676
4685
  userid: 25,
@@ -4681,7 +4690,7 @@ class ha extends pn {
4681
4690
  translationurl: 30,
4682
4691
  playercurrency: 31
4683
4692
  },
4684
- aa,
4693
+ ia,
4685
4694
  [-1, -1, -1]
4686
4695
  );
4687
4696
  }
@@ -4689,52 +4698,52 @@ class ha extends pn {
4689
4698
  return this.$$.ctx[24];
4690
4699
  }
4691
4700
  set session(t) {
4692
- this.$$set({ session: t }), le();
4701
+ this.$$set({ session: t }), oe();
4693
4702
  }
4694
4703
  get userid() {
4695
4704
  return this.$$.ctx[25];
4696
4705
  }
4697
4706
  set userid(t) {
4698
- this.$$set({ userid: t }), le();
4707
+ this.$$set({ userid: t }), oe();
4699
4708
  }
4700
4709
  get endpoint() {
4701
4710
  return this.$$.ctx[26];
4702
4711
  }
4703
4712
  set endpoint(t) {
4704
- this.$$set({ endpoint: t }), le();
4713
+ this.$$set({ endpoint: t }), oe();
4705
4714
  }
4706
4715
  get lang() {
4707
4716
  return this.$$.ctx[27];
4708
4717
  }
4709
4718
  set lang(t) {
4710
- this.$$set({ lang: t }), le();
4719
+ this.$$set({ lang: t }), oe();
4711
4720
  }
4712
4721
  get clientstyling() {
4713
4722
  return this.$$.ctx[28];
4714
4723
  }
4715
4724
  set clientstyling(t) {
4716
- this.$$set({ clientstyling: t }), le();
4725
+ this.$$set({ clientstyling: t }), oe();
4717
4726
  }
4718
4727
  get clientstylingurl() {
4719
4728
  return this.$$.ctx[29];
4720
4729
  }
4721
4730
  set clientstylingurl(t) {
4722
- this.$$set({ clientstylingurl: t }), le();
4731
+ this.$$set({ clientstylingurl: t }), oe();
4723
4732
  }
4724
4733
  get translationurl() {
4725
4734
  return this.$$.ctx[30];
4726
4735
  }
4727
4736
  set translationurl(t) {
4728
- this.$$set({ translationurl: t }), le();
4737
+ this.$$set({ translationurl: t }), oe();
4729
4738
  }
4730
4739
  get playercurrency() {
4731
4740
  return this.$$.ctx[31];
4732
4741
  }
4733
4742
  set playercurrency(t) {
4734
- this.$$set({ playercurrency: t }), le();
4743
+ this.$$set({ playercurrency: t }), oe();
4735
4744
  }
4736
4745
  }
4737
- fn(ha, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {} }, [], [], !0);
4746
+ fr(ca, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {} }, [], [], !0);
4738
4747
  export {
4739
- ha as P
4748
+ ca as P
4740
4749
  };