@everymatrix/player-account-vault 0.17.1 → 0.17.2

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