@everymatrix/player-account-vault 0.19.3 → 0.19.4

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