@everymatrix/casino-categories 1.57.0 → 1.59.0

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,28 +1,28 @@
1
1
  function L() {
2
2
  }
3
- function dt(e) {
3
+ function mt(e) {
4
4
  return e();
5
5
  }
6
- function Ze() {
6
+ function ze() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function se(e) {
10
- e.forEach(dt);
10
+ e.forEach(mt);
11
11
  }
12
12
  function je(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function bt(e, t) {
15
+ function pt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
18
  let he;
19
19
  function pe(e, t) {
20
20
  return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
21
21
  }
22
- function Wt(e) {
22
+ function Xt(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function yt(e, ...t) {
25
+ function dt(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
@@ -31,20 +31,20 @@ function yt(e, ...t) {
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function Zt(e, t, r) {
35
- e.$$.on_destroy.push(yt(t, r));
34
+ function zt(e, t, r) {
35
+ e.$$.on_destroy.push(dt(t, r));
36
36
  }
37
37
  function v(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function Qt(e, t, r) {
41
- const n = Jt(e);
40
+ function Wt(e, t, r) {
41
+ const n = Zt(e);
42
42
  if (!n.getElementById(t)) {
43
43
  const i = O("style");
44
- i.id = t, i.textContent = r, qt(n, i);
44
+ i.id = t, i.textContent = r, Qt(n, i);
45
45
  }
46
46
  }
47
- function Jt(e) {
47
+ function Zt(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,7 +54,7 @@ function Jt(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function qt(e, t) {
57
+ function Qt(e, t) {
58
58
  return v(
59
59
  /** @type {Document} */
60
60
  e.head || e,
@@ -67,7 +67,7 @@ function q(e, t, r) {
67
67
  function F(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
- function Qe(e, t) {
70
+ function We(e, t) {
71
71
  for (let r = 0; r < e.length; r += 1)
72
72
  e[r] && e[r].d(t);
73
73
  }
@@ -80,20 +80,20 @@ function R(e) {
80
80
  function $() {
81
81
  return R(" ");
82
82
  }
83
- function _t(e, t, r, n) {
83
+ function bt(e, t, r, n) {
84
84
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
85
85
  }
86
86
  function A(e, t, r) {
87
87
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
88
88
  }
89
- function Yt(e) {
89
+ function Jt(e) {
90
90
  return Array.from(e.childNodes);
91
91
  }
92
92
  function G(e, t) {
93
93
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
94
94
  t);
95
95
  }
96
- function Kt(e) {
96
+ function qt(e) {
97
97
  const t = {};
98
98
  return e.childNodes.forEach(
99
99
  /** @param {Element} node */
@@ -106,20 +106,20 @@ let ne;
106
106
  function re(e) {
107
107
  ne = e;
108
108
  }
109
- function er() {
109
+ function Yt() {
110
110
  if (!ne)
111
111
  throw new Error("Function called outside component initialization");
112
112
  return ne;
113
113
  }
114
- function tr(e) {
115
- er().$$.on_mount.push(e);
114
+ function Kt(e) {
115
+ Yt().$$.on_mount.push(e);
116
116
  }
117
117
  const X = [], we = [];
118
118
  let z = [];
119
- const Je = [], rr = /* @__PURE__ */ Promise.resolve();
119
+ const Ze = [], er = /* @__PURE__ */ Promise.resolve();
120
120
  let Pe = !1;
121
- function nr() {
122
- Pe || (Pe = !0, rr.then(I));
121
+ function tr() {
122
+ Pe || (Pe = !0, er.then(I));
123
123
  }
124
124
  function Ne(e) {
125
125
  z.push(e);
@@ -134,7 +134,7 @@ function I() {
134
134
  try {
135
135
  for (; k < X.length; ) {
136
136
  const t = X[k];
137
- k++, re(t), ir(t.$$);
137
+ k++, re(t), rr(t.$$);
138
138
  }
139
139
  } catch (t) {
140
140
  throw X.length = 0, k = 0, t;
@@ -147,43 +147,43 @@ function I() {
147
147
  }
148
148
  z.length = 0;
149
149
  } while (X.length);
150
- for (; Je.length; )
151
- Je.pop()();
150
+ for (; Ze.length; )
151
+ Ze.pop()();
152
152
  Pe = !1, Te.clear(), re(e);
153
153
  }
154
- function ir(e) {
154
+ function rr(e) {
155
155
  if (e.fragment !== null) {
156
156
  e.update(), se(e.before_update);
157
157
  const t = e.dirty;
158
158
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
159
159
  }
160
160
  }
161
- function or(e) {
161
+ function nr(e) {
162
162
  const t = [], r = [];
163
163
  z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
164
164
  }
165
- const sr = /* @__PURE__ */ new Set();
166
- function ar(e, t) {
167
- e && e.i && (sr.delete(e), e.i(t));
165
+ const ir = /* @__PURE__ */ new Set();
166
+ function or(e, t) {
167
+ e && e.i && (ir.delete(e), e.i(t));
168
168
  }
169
169
  function le(e) {
170
170
  return e?.length !== void 0 ? e : Array.from(e);
171
171
  }
172
- function ur(e, t, r) {
172
+ function sr(e, t, r) {
173
173
  const { fragment: n, after_update: i } = e.$$;
174
174
  n && n.m(t, r), Ne(() => {
175
- const o = e.$$.on_mount.map(dt).filter(je);
175
+ const o = e.$$.on_mount.map(mt).filter(je);
176
176
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
177
177
  }), i.forEach(Ne);
178
178
  }
179
- function hr(e, t) {
179
+ function ar(e, t) {
180
180
  const r = e.$$;
181
- r.fragment !== null && (or(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
181
+ r.fragment !== null && (nr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
182
182
  }
183
- function lr(e, t) {
184
- e.$$.dirty[0] === -1 && (X.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
183
+ function ur(e, t) {
184
+ e.$$.dirty[0] === -1 && (X.push(e), tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
185
185
  }
186
- function cr(e, t, r, n, i, o, s = null, u = [-1]) {
186
+ function hr(e, t, r, n, i, o, s = null, u = [-1]) {
187
187
  const l = ne;
188
188
  re(e);
189
189
  const a = e.$$ = {
@@ -193,7 +193,7 @@ function cr(e, t, r, n, i, o, s = null, u = [-1]) {
193
193
  props: o,
194
194
  update: L,
195
195
  not_equal: i,
196
- bound: Ze(),
196
+ bound: ze(),
197
197
  // lifecycle
198
198
  on_mount: [],
199
199
  on_destroy: [],
@@ -202,28 +202,28 @@ function cr(e, t, r, n, i, o, s = null, u = [-1]) {
202
202
  after_update: [],
203
203
  context: new Map(t.context || (l ? l.$$.context : [])),
204
204
  // everything else
205
- callbacks: Ze(),
205
+ callbacks: ze(),
206
206
  dirty: u,
207
207
  skip_bound: !1,
208
208
  root: t.target || l.$$.root
209
209
  };
210
210
  s && s(a.root);
211
211
  let h = !1;
212
- if (a.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
213
- const d = p.length ? p[0] : c;
214
- return a.ctx && i(a.ctx[f], a.ctx[f] = d) && (!a.skip_bound && a.bound[f] && a.bound[f](d), h && lr(e, f)), c;
212
+ if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
213
+ const d = p.length ? p[0] : f;
214
+ return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), h && ur(e, c)), f;
215
215
  }) : [], a.update(), h = !0, se(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
216
216
  if (t.hydrate) {
217
- const f = Yt(t.target);
218
- a.fragment && a.fragment.l(f), f.forEach(F);
217
+ const c = Jt(t.target);
218
+ a.fragment && a.fragment.l(c), c.forEach(F);
219
219
  } else
220
220
  a.fragment && a.fragment.c();
221
- t.intro && ar(e.$$.fragment), ur(e, t.target, t.anchor), I();
221
+ t.intro && or(e.$$.fragment), sr(e, t.target, t.anchor), I();
222
222
  }
223
223
  re(l);
224
224
  }
225
- let xt;
226
- typeof HTMLElement == "function" && (xt = class extends HTMLElement {
225
+ let yt;
226
+ typeof HTMLElement == "function" && (yt = class extends HTMLElement {
227
227
  /** The Svelte component constructor */
228
228
  $$ctor;
229
229
  /** Slots */
@@ -282,12 +282,12 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
282
282
  };
283
283
  if (await Promise.resolve(), !this.$$cn || this.$$c)
284
284
  return;
285
- const t = {}, r = Kt(this);
285
+ const t = {}, r = qt(this);
286
286
  for (const i of this.$$s)
287
287
  i in r && (t[i] = [e(i)]);
288
288
  for (const i of this.attributes) {
289
289
  const o = this.$$g_p(i.name);
290
- o in this.$$d || (this.$$d[o] = fe(o, i.value, this.$$p_d, "toProp"));
290
+ o in this.$$d || (this.$$d[o] = ce(o, i.value, this.$$p_d, "toProp"));
291
291
  }
292
292
  for (const i in this.$$p_d)
293
293
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -305,7 +305,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
305
305
  this.$$r = !0;
306
306
  for (const i in this.$$p_d)
307
307
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
308
- const o = fe(
308
+ const o = ce(
309
309
  i,
310
310
  this.$$d[i],
311
311
  this.$$p_d,
@@ -327,7 +327,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
327
327
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
328
328
  // and setting attributes through setAttribute etc, this is helpful
329
329
  attributeChangedCallback(e, t, r) {
330
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
330
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ce(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
331
331
  }
332
332
  disconnectedCallback() {
333
333
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -340,7 +340,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
340
340
  ) || e;
341
341
  }
342
342
  });
343
- function fe(e, t, r, n) {
343
+ function ce(e, t, r, n) {
344
344
  const i = r[e]?.type;
345
345
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
346
346
  return t;
@@ -369,8 +369,8 @@ function fe(e, t, r, n) {
369
369
  return t;
370
370
  }
371
371
  }
372
- function fr(e, t, r, n, i, o) {
373
- let s = class extends xt {
372
+ function lr(e, t, r, n, i, o) {
373
+ let s = class extends yt {
374
374
  constructor() {
375
375
  super(e, r, i), this.$$p_d = t;
376
376
  }
@@ -386,7 +386,7 @@ function fr(e, t, r, n, i, o) {
386
386
  return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
387
387
  },
388
388
  set(l) {
389
- l = fe(u, l, t), this.$$d[u] = l, this.$$c?.$set({ [u]: l });
389
+ l = ce(u, l, t), this.$$d[u] = l, this.$$c?.$set({ [u]: l });
390
390
  }
391
391
  });
392
392
  }), n.forEach((u) => {
@@ -398,7 +398,7 @@ function fr(e, t, r, n, i, o) {
398
398
  }), e.element = /** @type {any} */
399
399
  s, s;
400
400
  }
401
- class gr {
401
+ class fr {
402
402
  /**
403
403
  * ### PRIVATE API
404
404
  *
@@ -417,7 +417,7 @@ class gr {
417
417
  $$set = void 0;
418
418
  /** @returns {void} */
419
419
  $destroy() {
420
- hr(this, 1), this.$destroy = L;
420
+ ar(this, 1), this.$destroy = L;
421
421
  }
422
422
  /**
423
423
  * @template {Extract<keyof Events, string>} K
@@ -439,13 +439,13 @@ class gr {
439
439
  * @returns {void}
440
440
  */
441
441
  $set(t) {
442
- this.$$set && !Wt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
442
+ this.$$set && !Xt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
443
443
  }
444
444
  }
445
- const mr = "4";
446
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mr);
445
+ const cr = "4";
446
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cr);
447
447
  const V = [];
448
- function pr(e, t) {
448
+ function gr(e, t) {
449
449
  return {
450
450
  subscribe: ye(e, t).subscribe
451
451
  };
@@ -454,7 +454,7 @@ function ye(e, t = L) {
454
454
  let r;
455
455
  const n = /* @__PURE__ */ new Set();
456
456
  function i(u) {
457
- if (bt(e, u) && (e = u, r)) {
457
+ if (pt(e, u) && (e = u, r)) {
458
458
  const l = !V.length;
459
459
  for (const a of n)
460
460
  a[1](), V.push(a, e);
@@ -481,96 +481,96 @@ function Y(e, t, r) {
481
481
  if (!i.every(Boolean))
482
482
  throw new Error("derived() expects stores as input, got a falsy value");
483
483
  const o = t.length < 2;
484
- return pr(r, (s, u) => {
484
+ return gr(r, (s, u) => {
485
485
  let l = !1;
486
486
  const a = [];
487
- let h = 0, f = L;
488
- const c = () => {
487
+ let h = 0, c = L;
488
+ const f = () => {
489
489
  if (h)
490
490
  return;
491
- f();
491
+ c();
492
492
  const d = t(n ? a[0] : a, s, u);
493
- o ? s(d) : f = je(d) ? d : L;
493
+ o ? s(d) : c = je(d) ? d : L;
494
494
  }, p = i.map(
495
- (d, g) => yt(
495
+ (d, g) => dt(
496
496
  d,
497
497
  (E) => {
498
- a[g] = E, h &= ~(1 << g), l && c();
498
+ a[g] = E, h &= ~(1 << g), l && f();
499
499
  },
500
500
  () => {
501
501
  h |= 1 << g;
502
502
  }
503
503
  )
504
504
  );
505
- return l = !0, c(), function() {
506
- se(p), f(), l = !1;
505
+ return l = !0, f(), function() {
506
+ se(p), c(), l = !1;
507
507
  };
508
508
  });
509
509
  }
510
- function dr(e) {
510
+ function mr(e) {
511
511
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
512
512
  }
513
- var br = function(t) {
514
- return yr(t) && !_r(t);
513
+ var pr = function(t) {
514
+ return dr(t) && !br(t);
515
515
  };
516
- function yr(e) {
516
+ function dr(e) {
517
517
  return !!e && typeof e == "object";
518
518
  }
519
- function _r(e) {
519
+ function br(e) {
520
520
  var t = Object.prototype.toString.call(e);
521
- return t === "[object RegExp]" || t === "[object Date]" || vr(e);
521
+ return t === "[object RegExp]" || t === "[object Date]" || xr(e);
522
522
  }
523
- var xr = typeof Symbol == "function" && Symbol.for, Er = xr ? Symbol.for("react.element") : 60103;
524
- function vr(e) {
525
- return e.$$typeof === Er;
523
+ var yr = typeof Symbol == "function" && Symbol.for, _r = yr ? Symbol.for("react.element") : 60103;
524
+ function xr(e) {
525
+ return e.$$typeof === _r;
526
526
  }
527
- function Tr(e) {
527
+ function Er(e) {
528
528
  return Array.isArray(e) ? [] : {};
529
529
  }
530
530
  function ie(e, t) {
531
- return t.clone !== !1 && t.isMergeableObject(e) ? W(Tr(e), e, t) : e;
531
+ return t.clone !== !1 && t.isMergeableObject(e) ? W(Er(e), e, t) : e;
532
532
  }
533
- function Cr(e, t, r) {
533
+ function vr(e, t, r) {
534
534
  return e.concat(t).map(function(n) {
535
535
  return ie(n, r);
536
536
  });
537
537
  }
538
- function Hr(e, t) {
538
+ function Tr(e, t) {
539
539
  if (!t.customMerge)
540
540
  return W;
541
541
  var r = t.customMerge(e);
542
542
  return typeof r == "function" ? r : W;
543
543
  }
544
- function Ar(e) {
544
+ function Cr(e) {
545
545
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
546
546
  return Object.propertyIsEnumerable.call(e, t);
547
547
  }) : [];
548
548
  }
549
- function qe(e) {
550
- return Object.keys(e).concat(Ar(e));
549
+ function Qe(e) {
550
+ return Object.keys(e).concat(Cr(e));
551
551
  }
552
- function Et(e, t) {
552
+ function _t(e, t) {
553
553
  try {
554
554
  return t in e;
555
555
  } catch {
556
556
  return !1;
557
557
  }
558
558
  }
559
- function Br(e, t) {
560
- return Et(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
559
+ function Hr(e, t) {
560
+ return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
561
561
  }
562
- function Sr(e, t, r) {
562
+ function Ar(e, t, r) {
563
563
  var n = {};
564
- return r.isMergeableObject(e) && qe(e).forEach(function(i) {
564
+ return r.isMergeableObject(e) && Qe(e).forEach(function(i) {
565
565
  n[i] = ie(e[i], r);
566
- }), qe(t).forEach(function(i) {
567
- Br(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
566
+ }), Qe(t).forEach(function(i) {
567
+ Hr(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
568
568
  }), n;
569
569
  }
570
570
  function W(e, t, r) {
571
- r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || br, r.cloneUnlessOtherwiseSpecified = ie;
571
+ r = r || {}, r.arrayMerge = r.arrayMerge || vr, r.isMergeableObject = r.isMergeableObject || pr, r.cloneUnlessOtherwiseSpecified = ie;
572
572
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
573
- return o ? n ? r.arrayMerge(e, t, r) : Sr(e, t, r) : ie(t, r);
573
+ return o ? n ? r.arrayMerge(e, t, r) : Ar(e, t, r) : ie(t, r);
574
574
  }
575
575
  W.all = function(t, r) {
576
576
  if (!Array.isArray(t))
@@ -579,8 +579,8 @@ W.all = function(t, r) {
579
579
  return W(n, i, r);
580
580
  }, {});
581
581
  };
582
- var Or = W, wr = Or;
583
- const Pr = /* @__PURE__ */ dr(wr);
582
+ var Br = W, Sr = Br;
583
+ const Or = /* @__PURE__ */ mr(Sr);
584
584
  /*! *****************************************************************************
585
585
  Copyright (c) Microsoft Corporation.
586
586
 
@@ -622,7 +622,7 @@ var x = function() {
622
622
  return t;
623
623
  }, x.apply(this, arguments);
624
624
  };
625
- function Nr(e, t) {
625
+ function wr(e, t) {
626
626
  var r = {};
627
627
  for (var n in e)
628
628
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -638,55 +638,53 @@ function Ce(e, t, r) {
638
638
  return e.concat(o || t);
639
639
  }
640
640
  function He(e, t) {
641
- var r = t && t.cache ? t.cache : Ur, n = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Ir;
641
+ var r = t && t.cache ? t.cache : Rr, n = t && t.serializer ? t.serializer : Mr, i = t && t.strategy ? t.strategy : Lr;
642
642
  return i(e, {
643
643
  cache: r,
644
644
  serializer: n
645
645
  });
646
646
  }
647
- function Lr(e) {
647
+ function Pr(e) {
648
648
  return e == null || typeof e == "number" || typeof e == "boolean";
649
649
  }
650
- function vt(e, t, r, n) {
651
- var i = Lr(n) ? n : r(n), o = t.get(i);
650
+ function Nr(e, t, r, n) {
651
+ var i = Pr(n) ? n : r(n), o = t.get(i);
652
652
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
653
653
  }
654
- function Tt(e, t, r) {
654
+ function xt(e, t, r) {
655
655
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
656
656
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
657
657
  }
658
- function ke(e, t, r, n, i) {
658
+ function Et(e, t, r, n, i) {
659
659
  return r.bind(t, e, n, i);
660
660
  }
661
- function Ir(e, t) {
662
- var r = e.length === 1 ? vt : Tt;
663
- return ke(e, this, r, t.cache.create(), t.serializer);
664
- }
665
- function Mr(e, t) {
666
- return ke(e, this, Tt, t.cache.create(), t.serializer);
661
+ function Lr(e, t) {
662
+ var r = e.length === 1 ? Nr : xt;
663
+ return Et(e, this, r, t.cache.create(), t.serializer);
667
664
  }
668
- function $r(e, t) {
669
- return ke(e, this, vt, t.cache.create(), t.serializer);
665
+ function Ir(e, t) {
666
+ return Et(e, this, xt, t.cache.create(), t.serializer);
670
667
  }
671
- var Rr = function() {
668
+ var Mr = function() {
672
669
  return JSON.stringify(arguments);
673
- };
674
- function Ve() {
675
- this.cache = /* @__PURE__ */ Object.create(null);
676
- }
677
- Ve.prototype.get = function(e) {
678
- return this.cache[e];
679
- };
680
- Ve.prototype.set = function(e, t) {
681
- this.cache[e] = t;
682
- };
683
- var Ur = {
670
+ }, $r = (
671
+ /** @class */
672
+ function() {
673
+ function e() {
674
+ this.cache = /* @__PURE__ */ Object.create(null);
675
+ }
676
+ return e.prototype.get = function(t) {
677
+ return this.cache[t];
678
+ }, e.prototype.set = function(t, r) {
679
+ this.cache[t] = r;
680
+ }, e;
681
+ }()
682
+ ), Rr = {
684
683
  create: function() {
685
- return new Ve();
684
+ return new $r();
686
685
  }
687
686
  }, Ae = {
688
- variadic: Mr,
689
- monadic: $r
687
+ variadic: Ir
690
688
  }, y;
691
689
  (function(e) {
692
690
  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";
@@ -699,43 +697,43 @@ var Z;
699
697
  (function(e) {
700
698
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
701
699
  })(Z || (Z = {}));
702
- function Ye(e) {
700
+ function Je(e) {
703
701
  return e.type === T.literal;
704
702
  }
705
- function Gr(e) {
703
+ function Ur(e) {
706
704
  return e.type === T.argument;
707
705
  }
708
- function Ct(e) {
706
+ function vt(e) {
709
707
  return e.type === T.number;
710
708
  }
711
- function Ht(e) {
709
+ function Tt(e) {
712
710
  return e.type === T.date;
713
711
  }
714
- function At(e) {
712
+ function Ct(e) {
715
713
  return e.type === T.time;
716
714
  }
717
- function Bt(e) {
715
+ function Ht(e) {
718
716
  return e.type === T.select;
719
717
  }
720
- function St(e) {
718
+ function At(e) {
721
719
  return e.type === T.plural;
722
720
  }
723
- function Dr(e) {
721
+ function Gr(e) {
724
722
  return e.type === T.pound;
725
723
  }
726
- function Ot(e) {
724
+ function Bt(e) {
727
725
  return e.type === T.tag;
728
726
  }
729
- function wt(e) {
727
+ function St(e) {
730
728
  return !!(e && typeof e == "object" && e.type === Z.number);
731
729
  }
732
730
  function Ie(e) {
733
731
  return !!(e && typeof e == "object" && e.type === Z.dateTime);
734
732
  }
735
- var Pt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fr = /(?:[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;
736
- function jr(e) {
733
+ var Ot = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
734
+ function Fr(e) {
737
735
  var t = {};
738
- return e.replace(Fr, function(r) {
736
+ return e.replace(Dr, function(r) {
739
737
  var n = r.length;
740
738
  switch (r[0]) {
741
739
  case "G":
@@ -824,36 +822,36 @@ function jr(e) {
824
822
  return "";
825
823
  }), t;
826
824
  }
827
- var kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
828
- function Vr(e) {
825
+ var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
826
+ function kr(e) {
829
827
  if (e.length === 0)
830
828
  throw new Error("Number skeleton cannot be empty");
831
- for (var t = e.split(kr).filter(function(c) {
832
- return c.length > 0;
829
+ for (var t = e.split(jr).filter(function(f) {
830
+ return f.length > 0;
833
831
  }), r = [], n = 0, i = t; n < i.length; n++) {
834
832
  var o = i[n], s = o.split("/");
835
833
  if (s.length === 0)
836
834
  throw new Error("Invalid number skeleton");
837
835
  for (var u = s[0], l = s.slice(1), a = 0, h = l; a < h.length; a++) {
838
- var f = h[a];
839
- if (f.length === 0)
836
+ var c = h[a];
837
+ if (c.length === 0)
840
838
  throw new Error("Invalid number skeleton");
841
839
  }
842
840
  r.push({ stem: u, options: l });
843
841
  }
844
842
  return r;
845
843
  }
846
- function Xr(e) {
844
+ function Vr(e) {
847
845
  return e.replace(/^(.*?)-/, "");
848
846
  }
849
- var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Lt = /^(0+)$/;
850
- function et(e) {
847
+ var qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, wt = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Pt = /^(0+)$/;
848
+ function Ye(e) {
851
849
  var t = {};
852
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nt, function(r, n, i) {
850
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(wt, function(r, n, i) {
853
851
  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)), "";
854
852
  }), t;
855
853
  }
856
- function It(e) {
854
+ function Nt(e) {
857
855
  switch (e) {
858
856
  case "sign-auto":
859
857
  return {
@@ -893,7 +891,7 @@ function It(e) {
893
891
  };
894
892
  }
895
893
  }
896
- function Wr(e) {
894
+ function zr(e) {
897
895
  var t;
898
896
  if (e[0] === "E" && e[1] === "E" ? (t = {
899
897
  notation: "engineering"
@@ -901,17 +899,17 @@ function Wr(e) {
901
899
  notation: "scientific"
902
900
  }, e = e.slice(1)), t) {
903
901
  var r = e.slice(0, 2);
904
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Lt.test(e))
902
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Pt.test(e))
905
903
  throw new Error("Malformed concise eng/scientific notation");
906
904
  t.minimumIntegerDigits = e.length;
907
905
  }
908
906
  return t;
909
907
  }
910
- function tt(e) {
911
- var t = {}, r = It(e);
908
+ function Ke(e) {
909
+ var t = {}, r = Nt(e);
912
910
  return r || t;
913
911
  }
914
- function Zr(e) {
912
+ function Wr(e) {
915
913
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
916
914
  var i = n[r];
917
915
  switch (i.stem) {
@@ -935,7 +933,7 @@ function Zr(e) {
935
933
  continue;
936
934
  case "measure-unit":
937
935
  case "unit":
938
- t.style = "unit", t.unit = Xr(i.options[0]);
936
+ t.style = "unit", t.unit = Vr(i.options[0]);
939
937
  continue;
940
938
  case "compact-short":
941
939
  case "K":
@@ -947,12 +945,12 @@ function Zr(e) {
947
945
  continue;
948
946
  case "scientific":
949
947
  t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
950
- return x(x({}, l), tt(a));
948
+ return x(x({}, l), Ke(a));
951
949
  }, {}));
952
950
  continue;
953
951
  case "engineering":
954
952
  t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
955
- return x(x({}, l), tt(a));
953
+ return x(x({}, l), Ke(a));
956
954
  }, {}));
957
955
  continue;
958
956
  case "notation-simple":
@@ -997,11 +995,11 @@ function Zr(e) {
997
995
  case "integer-width":
998
996
  if (i.options.length > 1)
999
997
  throw new RangeError("integer-width stems only accept a single optional option");
1000
- i.options[0].replace(zr, function(l, a, h, f, c, p) {
998
+ i.options[0].replace(Xr, function(l, a, h, c, f, p) {
1001
999
  if (a)
1002
1000
  t.minimumIntegerDigits = h.length;
1003
1001
  else {
1004
- if (f && c)
1002
+ if (c && f)
1005
1003
  throw new Error("We currently do not support maximum integer digits");
1006
1004
  if (p)
1007
1005
  throw new Error("We currently do not support exact integer digits");
@@ -1010,32 +1008,32 @@ function Zr(e) {
1010
1008
  });
1011
1009
  continue;
1012
1010
  }
1013
- if (Lt.test(i.stem)) {
1011
+ if (Pt.test(i.stem)) {
1014
1012
  t.minimumIntegerDigits = i.stem.length;
1015
1013
  continue;
1016
1014
  }
1017
- if (Ke.test(i.stem)) {
1015
+ if (qe.test(i.stem)) {
1018
1016
  if (i.options.length > 1)
1019
1017
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1020
- i.stem.replace(Ke, function(l, a, h, f, c, p) {
1021
- return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1018
+ i.stem.replace(qe, function(l, a, h, c, f, p) {
1019
+ return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1022
1020
  });
1023
1021
  var o = i.options[0];
1024
- o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), et(o)));
1022
+ o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), Ye(o)));
1025
1023
  continue;
1026
1024
  }
1027
- if (Nt.test(i.stem)) {
1028
- t = x(x({}, t), et(i.stem));
1025
+ if (wt.test(i.stem)) {
1026
+ t = x(x({}, t), Ye(i.stem));
1029
1027
  continue;
1030
1028
  }
1031
- var s = It(i.stem);
1029
+ var s = Nt(i.stem);
1032
1030
  s && (t = x(x({}, t), s));
1033
- var u = Wr(i.stem);
1031
+ var u = zr(i.stem);
1034
1032
  u && (t = x(x({}, t), u));
1035
1033
  }
1036
1034
  return t;
1037
1035
  }
1038
- var ce = {
1036
+ var fe = {
1039
1037
  "001": [
1040
1038
  "H",
1041
1039
  "h"
@@ -2450,13 +2448,13 @@ var ce = {
2450
2448
  "h"
2451
2449
  ]
2452
2450
  };
2453
- function Qr(e, t) {
2451
+ function Zr(e, t) {
2454
2452
  for (var r = "", n = 0; n < e.length; n++) {
2455
2453
  var i = e.charAt(n);
2456
2454
  if (i === "j") {
2457
2455
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2458
2456
  o++, n++;
2459
- var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", a = Jr(t);
2457
+ var s = 1 + (o & 1), u = o < 2 ? 1 : 3 + (o >> 1), l = "a", a = Qr(t);
2460
2458
  for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
2461
2459
  r += l;
2462
2460
  for (; s-- > 0; )
@@ -2466,7 +2464,7 @@ function Qr(e, t) {
2466
2464
  }
2467
2465
  return r;
2468
2466
  }
2469
- function Jr(e) {
2467
+ function Qr(e) {
2470
2468
  var t = e.hourCycle;
2471
2469
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2472
2470
  e.hourCycles && // @ts-ignore
@@ -2485,23 +2483,23 @@ function Jr(e) {
2485
2483
  }
2486
2484
  var r = e.language, n;
2487
2485
  r !== "root" && (n = e.maximize().region);
2488
- var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2486
+ var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2489
2487
  return i[0];
2490
2488
  }
2491
- var Be, qr = new RegExp("^".concat(Pt.source, "*")), Yr = new RegExp("".concat(Pt.source, "*$"));
2489
+ var Be, Jr = new RegExp("^".concat(Ot.source, "*")), qr = new RegExp("".concat(Ot.source, "*$"));
2492
2490
  function _(e, t) {
2493
2491
  return { start: e, end: t };
2494
2492
  }
2495
- var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), en = !!String.fromCodePoint, tn = !!Object.fromEntries, rn = !!String.prototype.codePointAt, nn = !!String.prototype.trimStart, on = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, an = sn ? Number.isSafeInteger : function(e) {
2493
+ var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, on = !!Number.isSafeInteger, sn = on ? Number.isSafeInteger : function(e) {
2496
2494
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2497
2495
  }, Me = !0;
2498
2496
  try {
2499
- var un = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2500
- Me = ((Be = un.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
2497
+ var an = It("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2498
+ Me = ((Be = an.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
2501
2499
  } catch {
2502
2500
  Me = !1;
2503
2501
  }
2504
- var rt = Kr ? (
2502
+ var et = Yr ? (
2505
2503
  // Native
2506
2504
  function(t, r, n) {
2507
2505
  return t.startsWith(r, n);
@@ -2511,7 +2509,7 @@ var rt = Kr ? (
2511
2509
  function(t, r, n) {
2512
2510
  return t.slice(n, n + r.length) === r;
2513
2511
  }
2514
- ), $e = en ? String.fromCodePoint : (
2512
+ ), $e = Kr ? String.fromCodePoint : (
2515
2513
  // IE11
2516
2514
  function() {
2517
2515
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2523,9 +2521,9 @@ var rt = Kr ? (
2523
2521
  }
2524
2522
  return n;
2525
2523
  }
2526
- ), nt = (
2524
+ ), tt = (
2527
2525
  // native
2528
- tn ? Object.fromEntries : (
2526
+ en ? Object.fromEntries : (
2529
2527
  // Ponyfill
2530
2528
  function(t) {
2531
2529
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2535,7 +2533,7 @@ var rt = Kr ? (
2535
2533
  return r;
2536
2534
  }
2537
2535
  )
2538
- ), Mt = rn ? (
2536
+ ), Lt = tn ? (
2539
2537
  // Native
2540
2538
  function(t, r) {
2541
2539
  return t.codePointAt(r);
@@ -2549,7 +2547,7 @@ var rt = Kr ? (
2549
2547
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2550
2548
  }
2551
2549
  }
2552
- ), hn = nn ? (
2550
+ ), un = rn ? (
2553
2551
  // Native
2554
2552
  function(t) {
2555
2553
  return t.trimStart();
@@ -2557,9 +2555,9 @@ var rt = Kr ? (
2557
2555
  ) : (
2558
2556
  // Ponyfill
2559
2557
  function(t) {
2560
- return t.replace(qr, "");
2558
+ return t.replace(Jr, "");
2561
2559
  }
2562
- ), ln = on ? (
2560
+ ), hn = nn ? (
2563
2561
  // Native
2564
2562
  function(t) {
2565
2563
  return t.trimEnd();
@@ -2567,32 +2565,32 @@ var rt = Kr ? (
2567
2565
  ) : (
2568
2566
  // Ponyfill
2569
2567
  function(t) {
2570
- return t.replace(Yr, "");
2568
+ return t.replace(qr, "");
2571
2569
  }
2572
2570
  );
2573
- function $t(e, t) {
2571
+ function It(e, t) {
2574
2572
  return new RegExp(e, t);
2575
2573
  }
2576
2574
  var Re;
2577
2575
  if (Me) {
2578
- var it = $t("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2576
+ var rt = It("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2579
2577
  Re = function(t, r) {
2580
2578
  var n;
2581
- it.lastIndex = r;
2582
- var i = it.exec(t);
2579
+ rt.lastIndex = r;
2580
+ var i = rt.exec(t);
2583
2581
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2584
2582
  };
2585
2583
  } else
2586
2584
  Re = function(t, r) {
2587
2585
  for (var n = []; ; ) {
2588
- var i = Mt(t, r);
2589
- if (i === void 0 || Rt(i) || mn(i))
2586
+ var i = Lt(t, r);
2587
+ if (i === void 0 || Mt(i) || gn(i))
2590
2588
  break;
2591
2589
  n.push(i), r += i >= 65536 ? 2 : 1;
2592
2590
  }
2593
2591
  return $e.apply(void 0, n);
2594
2592
  };
2595
- var cn = (
2593
+ var ln = (
2596
2594
  /** @class */
2597
2595
  function() {
2598
2596
  function e(t, r) {
@@ -2674,7 +2672,7 @@ var cn = (
2674
2672
  return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
2675
2673
  }, e.prototype.parseTagName = function() {
2676
2674
  var t = this.offset();
2677
- for (this.bump(); !this.isEOF() && gn(this.char()); )
2675
+ for (this.bump(); !this.isEOF() && cn(this.char()); )
2678
2676
  this.bump();
2679
2677
  return this.message.slice(t, this.offset());
2680
2678
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2787,40 +2785,40 @@ var cn = (
2787
2785
  var a = null;
2788
2786
  if (this.bumpIf(",")) {
2789
2787
  this.bumpSpace();
2790
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2791
- if (f.err)
2792
- return f;
2793
- var c = ln(f.val);
2794
- if (c.length === 0)
2788
+ var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2789
+ if (c.err)
2790
+ return c;
2791
+ var f = hn(c.val);
2792
+ if (f.length === 0)
2795
2793
  return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
2796
2794
  var p = _(h, this.clonePosition());
2797
- a = { style: c, styleLocation: p };
2795
+ a = { style: f, styleLocation: p };
2798
2796
  }
2799
2797
  var d = this.tryParseArgumentClose(i);
2800
2798
  if (d.err)
2801
2799
  return d;
2802
2800
  var g = _(i, this.clonePosition());
2803
- if (a && rt(a?.style, "::", 0)) {
2804
- var E = hn(a.style.slice(2));
2801
+ if (a && et(a?.style, "::", 0)) {
2802
+ var E = un(a.style.slice(2));
2805
2803
  if (u === "number") {
2806
- var f = this.parseNumberSkeletonFromString(E, a.styleLocation);
2807
- return f.err ? f : {
2808
- val: { type: T.number, value: n, location: g, style: f.val },
2804
+ var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
2805
+ return c.err ? c : {
2806
+ val: { type: T.number, value: n, location: g, style: c.val },
2809
2807
  err: null
2810
2808
  };
2811
2809
  } else {
2812
2810
  if (E.length === 0)
2813
2811
  return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
2814
2812
  var m = E;
2815
- this.locale && (m = Qr(E, this.locale));
2816
- var c = {
2813
+ this.locale && (m = Zr(E, this.locale));
2814
+ var f = {
2817
2815
  type: Z.dateTime,
2818
2816
  pattern: m,
2819
2817
  location: a.styleLocation,
2820
- parsedOptions: this.shouldParseSkeletons ? jr(m) : {}
2818
+ parsedOptions: this.shouldParseSkeletons ? Fr(m) : {}
2821
2819
  }, C = u === "date" ? T.date : T.time;
2822
2820
  return {
2823
- val: { type: C, value: n, location: g, style: c },
2821
+ val: { type: C, value: n, location: g, style: f },
2824
2822
  err: null
2825
2823
  };
2826
2824
  }
@@ -2847,10 +2845,10 @@ var cn = (
2847
2845
  if (!this.bumpIf(":"))
2848
2846
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
2849
2847
  this.bumpSpace();
2850
- var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2851
- if (f.err)
2852
- return f;
2853
- this.bumpSpace(), P = this.parseIdentifierIfPossible(), S = f.val;
2848
+ var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2849
+ if (c.err)
2850
+ return c;
2851
+ this.bumpSpace(), P = this.parseIdentifierIfPossible(), S = c.val;
2854
2852
  }
2855
2853
  var H = this.tryParsePluralOrSelectOptions(t, u, r, P);
2856
2854
  if (H.err)
@@ -2863,7 +2861,7 @@ var cn = (
2863
2861
  val: {
2864
2862
  type: T.select,
2865
2863
  value: n,
2866
- options: nt(H.val),
2864
+ options: tt(H.val),
2867
2865
  location: N
2868
2866
  },
2869
2867
  err: null
@@ -2871,7 +2869,7 @@ var cn = (
2871
2869
  val: {
2872
2870
  type: T.plural,
2873
2871
  value: n,
2874
- options: nt(H.val),
2872
+ options: tt(H.val),
2875
2873
  offset: S,
2876
2874
  pluralType: u === "plural" ? "cardinal" : "ordinal",
2877
2875
  location: N
@@ -2922,7 +2920,7 @@ var cn = (
2922
2920
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2923
2921
  var n = [];
2924
2922
  try {
2925
- n = Vr(t);
2923
+ n = kr(t);
2926
2924
  } catch {
2927
2925
  return this.error(y.INVALID_NUMBER_SKELETON, r);
2928
2926
  }
@@ -2931,19 +2929,19 @@ var cn = (
2931
2929
  type: Z.number,
2932
2930
  tokens: n,
2933
2931
  location: r,
2934
- parsedOptions: this.shouldParseSkeletons ? Zr(n) : {}
2932
+ parsedOptions: this.shouldParseSkeletons ? Wr(n) : {}
2935
2933
  },
2936
2934
  err: null
2937
2935
  };
2938
2936
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2939
2937
  for (var o, s = !1, u = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
2940
2938
  if (a.length === 0) {
2941
- var f = this.clonePosition();
2939
+ var c = this.clonePosition();
2942
2940
  if (r !== "select" && this.bumpIf("=")) {
2943
- var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2944
- if (c.err)
2945
- return c;
2946
- h = _(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
2941
+ var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2942
+ if (f.err)
2943
+ return f;
2944
+ h = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
2947
2945
  } else
2948
2946
  break;
2949
2947
  }
@@ -2979,7 +2977,7 @@ var cn = (
2979
2977
  break;
2980
2978
  }
2981
2979
  var l = _(i, this.clonePosition());
2982
- return o ? (s *= n, an(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
2980
+ return o ? (s *= n, sn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
2983
2981
  }, e.prototype.offset = function() {
2984
2982
  return this.position.offset;
2985
2983
  }, e.prototype.isEOF = function() {
@@ -2994,7 +2992,7 @@ var cn = (
2994
2992
  var t = this.position.offset;
2995
2993
  if (t >= this.message.length)
2996
2994
  throw Error("out of bound");
2997
- var r = Mt(this.message, t);
2995
+ var r = Lt(this.message, t);
2998
2996
  if (r === void 0)
2999
2997
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3000
2998
  return r;
@@ -3013,7 +3011,7 @@ var cn = (
3013
3011
  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);
3014
3012
  }
3015
3013
  }, e.prototype.bumpIf = function(t) {
3016
- if (rt(this.message, t, this.offset())) {
3014
+ if (et(this.message, t, this.offset())) {
3017
3015
  for (var r = 0; r < t.length; r++)
3018
3016
  this.bump();
3019
3017
  return !0;
@@ -3035,7 +3033,7 @@ var cn = (
3035
3033
  break;
3036
3034
  }
3037
3035
  }, e.prototype.bumpSpace = function() {
3038
- for (; !this.isEOF() && Rt(this.char()); )
3036
+ for (; !this.isEOF() && Mt(this.char()); )
3039
3037
  this.bump();
3040
3038
  }, e.prototype.peek = function() {
3041
3039
  if (this.isEOF())
@@ -3051,27 +3049,27 @@ function Ue(e) {
3051
3049
  function fn(e) {
3052
3050
  return Ue(e) || e === 47;
3053
3051
  }
3054
- function gn(e) {
3052
+ function cn(e) {
3055
3053
  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;
3056
3054
  }
3057
- function Rt(e) {
3055
+ function Mt(e) {
3058
3056
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3059
3057
  }
3060
- function mn(e) {
3058
+ function gn(e) {
3061
3059
  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;
3062
3060
  }
3063
3061
  function Ge(e) {
3064
3062
  e.forEach(function(t) {
3065
- if (delete t.location, Bt(t) || St(t))
3063
+ if (delete t.location, Ht(t) || At(t))
3066
3064
  for (var r in t.options)
3067
3065
  delete t.options[r].location, Ge(t.options[r].value);
3068
3066
  else
3069
- Ct(t) && wt(t.style) || (Ht(t) || At(t)) && Ie(t.style) ? delete t.style.location : Ot(t) && Ge(t.children);
3067
+ vt(t) && St(t.style) || (Tt(t) || Ct(t)) && Ie(t.style) ? delete t.style.location : Bt(t) && Ge(t.children);
3070
3068
  });
3071
3069
  }
3072
- function pn(e, t) {
3070
+ function mn(e, t) {
3073
3071
  t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3074
- var r = new cn(e, t).parse();
3072
+ var r = new ln(e, t).parse();
3075
3073
  if (r.err) {
3076
3074
  var n = SyntaxError(y[r.err.kind]);
3077
3075
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
@@ -3094,7 +3092,7 @@ var xe = (
3094
3092
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3095
3093
  }, t;
3096
3094
  }(Error)
3097
- ), ot = (
3095
+ ), nt = (
3098
3096
  /** @class */
3099
3097
  function(e) {
3100
3098
  _e(t, e);
@@ -3103,7 +3101,7 @@ var xe = (
3103
3101
  }
3104
3102
  return t;
3105
3103
  }(xe)
3106
- ), dn = (
3104
+ ), pn = (
3107
3105
  /** @class */
3108
3106
  function(e) {
3109
3107
  _e(t, e);
@@ -3112,7 +3110,7 @@ var xe = (
3112
3110
  }
3113
3111
  return t;
3114
3112
  }(xe)
3115
- ), bn = (
3113
+ ), dn = (
3116
3114
  /** @class */
3117
3115
  function(e) {
3118
3116
  _e(t, e);
@@ -3125,17 +3123,17 @@ var xe = (
3125
3123
  (function(e) {
3126
3124
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3127
3125
  })(w || (w = {}));
3128
- function yn(e) {
3126
+ function bn(e) {
3129
3127
  return e.length < 2 ? e : e.reduce(function(t, r) {
3130
3128
  var n = t[t.length - 1];
3131
3129
  return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
3132
3130
  }, []);
3133
3131
  }
3134
- function _n(e) {
3132
+ function yn(e) {
3135
3133
  return typeof e == "function";
3136
3134
  }
3137
3135
  function ge(e, t, r, n, i, o, s) {
3138
- if (e.length === 1 && Ye(e[0]))
3136
+ if (e.length === 1 && Je(e[0]))
3139
3137
  return [
3140
3138
  {
3141
3139
  type: w.literal,
@@ -3144,59 +3142,59 @@ function ge(e, t, r, n, i, o, s) {
3144
3142
  ];
3145
3143
  for (var u = [], l = 0, a = e; l < a.length; l++) {
3146
3144
  var h = a[l];
3147
- if (Ye(h)) {
3145
+ if (Je(h)) {
3148
3146
  u.push({
3149
3147
  type: w.literal,
3150
3148
  value: h.value
3151
3149
  });
3152
3150
  continue;
3153
3151
  }
3154
- if (Dr(h)) {
3152
+ if (Gr(h)) {
3155
3153
  typeof o == "number" && u.push({
3156
3154
  type: w.literal,
3157
3155
  value: r.getNumberFormat(t).format(o)
3158
3156
  });
3159
3157
  continue;
3160
3158
  }
3161
- var f = h.value;
3162
- if (!(i && f in i))
3163
- throw new bn(f, s);
3164
- var c = i[f];
3165
- if (Gr(h)) {
3166
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
3167
- type: typeof c == "string" ? w.literal : w.object,
3168
- value: c
3159
+ var c = h.value;
3160
+ if (!(i && c in i))
3161
+ throw new dn(c, s);
3162
+ var f = i[c];
3163
+ if (Ur(h)) {
3164
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
3165
+ type: typeof f == "string" ? w.literal : w.object,
3166
+ value: f
3169
3167
  });
3170
3168
  continue;
3171
3169
  }
3172
- if (Ht(h)) {
3170
+ if (Tt(h)) {
3173
3171
  var p = typeof h.style == "string" ? n.date[h.style] : Ie(h.style) ? h.style.parsedOptions : void 0;
3174
3172
  u.push({
3175
3173
  type: w.literal,
3176
- value: r.getDateTimeFormat(t, p).format(c)
3174
+ value: r.getDateTimeFormat(t, p).format(f)
3177
3175
  });
3178
3176
  continue;
3179
3177
  }
3180
- if (At(h)) {
3178
+ if (Ct(h)) {
3181
3179
  var p = typeof h.style == "string" ? n.time[h.style] : Ie(h.style) ? h.style.parsedOptions : n.time.medium;
3182
3180
  u.push({
3183
3181
  type: w.literal,
3184
- value: r.getDateTimeFormat(t, p).format(c)
3182
+ value: r.getDateTimeFormat(t, p).format(f)
3185
3183
  });
3186
3184
  continue;
3187
3185
  }
3188
- if (Ct(h)) {
3189
- var p = typeof h.style == "string" ? n.number[h.style] : wt(h.style) ? h.style.parsedOptions : void 0;
3190
- p && p.scale && (c = c * (p.scale || 1)), u.push({
3186
+ if (vt(h)) {
3187
+ var p = typeof h.style == "string" ? n.number[h.style] : St(h.style) ? h.style.parsedOptions : void 0;
3188
+ p && p.scale && (f = f * (p.scale || 1)), u.push({
3191
3189
  type: w.literal,
3192
- value: r.getNumberFormat(t, p).format(c)
3190
+ value: r.getNumberFormat(t, p).format(f)
3193
3191
  });
3194
3192
  continue;
3195
3193
  }
3196
- if (Ot(h)) {
3194
+ if (Bt(h)) {
3197
3195
  var d = h.children, g = h.value, E = i[g];
3198
- if (!_n(E))
3199
- throw new dn(g, "function", s);
3196
+ if (!yn(E))
3197
+ throw new pn(g, "function", s);
3200
3198
  var m = ge(d, t, r, n, i, o), C = E(m.map(function(S) {
3201
3199
  return S.value;
3202
3200
  }));
@@ -3207,39 +3205,39 @@ function ge(e, t, r, n, i, o, s) {
3207
3205
  };
3208
3206
  }));
3209
3207
  }
3210
- if (Bt(h)) {
3211
- var B = h.options[c] || h.options.other;
3208
+ if (Ht(h)) {
3209
+ var B = h.options[f] || h.options.other;
3212
3210
  if (!B)
3213
- throw new ot(h.value, c, Object.keys(h.options), s);
3211
+ throw new nt(h.value, f, Object.keys(h.options), s);
3214
3212
  u.push.apply(u, ge(B.value, t, r, n, i));
3215
3213
  continue;
3216
3214
  }
3217
- if (St(h)) {
3218
- var B = h.options["=".concat(c)];
3215
+ if (At(h)) {
3216
+ var B = h.options["=".concat(f)];
3219
3217
  if (!B) {
3220
3218
  if (!Intl.PluralRules)
3221
3219
  throw new xe(`Intl.PluralRules is not available in this environment.
3222
3220
  Try polyfilling it using "@formatjs/intl-pluralrules"
3223
3221
  `, Q.MISSING_INTL_API, s);
3224
- var P = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3222
+ var P = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3225
3223
  B = h.options[P] || h.options.other;
3226
3224
  }
3227
3225
  if (!B)
3228
- throw new ot(h.value, c, Object.keys(h.options), s);
3229
- u.push.apply(u, ge(B.value, t, r, n, i, c - (h.offset || 0)));
3226
+ throw new nt(h.value, f, Object.keys(h.options), s);
3227
+ u.push.apply(u, ge(B.value, t, r, n, i, f - (h.offset || 0)));
3230
3228
  continue;
3231
3229
  }
3232
3230
  }
3233
- return yn(u);
3231
+ return bn(u);
3234
3232
  }
3235
- function xn(e, t) {
3233
+ function _n(e, t) {
3236
3234
  return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3237
3235
  return r[n] = x(x({}, e[n]), t[n] || {}), r;
3238
3236
  }, {})) : e;
3239
3237
  }
3240
- function En(e, t) {
3238
+ function xn(e, t) {
3241
3239
  return t ? Object.keys(e).reduce(function(r, n) {
3242
- return r[n] = xn(e[n], t[n]), r;
3240
+ return r[n] = _n(e[n], t[n]), r;
3243
3241
  }, x({}, e)) : e;
3244
3242
  }
3245
3243
  function Se(e) {
@@ -3256,7 +3254,7 @@ function Se(e) {
3256
3254
  }
3257
3255
  };
3258
3256
  }
3259
- function vn(e) {
3257
+ function En(e) {
3260
3258
  return e === void 0 && (e = {
3261
3259
  number: {},
3262
3260
  dateTime: {},
@@ -3288,7 +3286,7 @@ function vn(e) {
3288
3286
  })
3289
3287
  };
3290
3288
  }
3291
- var Tn = (
3289
+ var vn = (
3292
3290
  /** @class */
3293
3291
  function() {
3294
3292
  function e(t, r, n, i) {
@@ -3302,8 +3300,8 @@ var Tn = (
3302
3300
  var a = o.formatToParts(l);
3303
3301
  if (a.length === 1)
3304
3302
  return a[0].value;
3305
- var h = a.reduce(function(f, c) {
3306
- return !f.length || c.type !== w.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3303
+ var h = a.reduce(function(c, f) {
3304
+ return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3307
3305
  }, []);
3308
3306
  return h.length <= 1 ? h[0] || "" : h;
3309
3307
  }, this.formatToParts = function(l) {
@@ -3320,13 +3318,13 @@ var Tn = (
3320
3318
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3321
3319
  var s = i || {};
3322
3320
  s.formatters;
3323
- var u = Nr(s, ["formatters"]);
3321
+ var u = wr(s, ["formatters"]);
3324
3322
  this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
3325
3323
  } else
3326
3324
  this.ast = t;
3327
3325
  if (!Array.isArray(this.ast))
3328
3326
  throw new TypeError("A message must be provided as a String or AST.");
3329
- this.formats = En(e.formats, n), this.formatters = i && i.formatters || vn(this.formatterCache);
3327
+ this.formats = xn(e.formats, n), this.formatters = i && i.formatters || En(this.formatterCache);
3330
3328
  }
3331
3329
  return Object.defineProperty(e, "defaultLocale", {
3332
3330
  get: function() {
@@ -3339,7 +3337,7 @@ var Tn = (
3339
3337
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3340
3338
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3341
3339
  }
3342
- }, e.__parse = pn, e.formats = {
3340
+ }, e.__parse = mn, e.formats = {
3343
3341
  number: {
3344
3342
  integer: {
3345
3343
  maximumFractionDigits: 0
@@ -3400,7 +3398,7 @@ var Tn = (
3400
3398
  }, e;
3401
3399
  }()
3402
3400
  );
3403
- function Cn(e, t) {
3401
+ function Tn(e, t) {
3404
3402
  if (t == null)
3405
3403
  return;
3406
3404
  if (t in e)
@@ -3421,60 +3419,60 @@ function Cn(e, t) {
3421
3419
  n = void 0;
3422
3420
  return n;
3423
3421
  }
3424
- const U = {}, Hn = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), Ut = (e, t) => {
3422
+ const U = {}, Cn = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), $t = (e, t) => {
3425
3423
  if (t == null)
3426
3424
  return;
3427
3425
  if (t in U && e in U[t])
3428
3426
  return U[t][e];
3429
3427
  const r = Ee(t);
3430
3428
  for (let n = 0; n < r.length; n++) {
3431
- const i = r[n], o = Bn(i, e);
3429
+ const i = r[n], o = An(i, e);
3432
3430
  if (o)
3433
- return Hn(e, t, o);
3431
+ return Cn(e, t, o);
3434
3432
  }
3435
3433
  };
3436
- let Xe;
3434
+ let ke;
3437
3435
  const ae = ye({});
3438
- function An(e) {
3439
- return Xe[e] || null;
3436
+ function Hn(e) {
3437
+ return ke[e] || null;
3440
3438
  }
3441
- function Gt(e) {
3442
- return e in Xe;
3439
+ function Rt(e) {
3440
+ return e in ke;
3443
3441
  }
3444
- function Bn(e, t) {
3445
- if (!Gt(e))
3442
+ function An(e, t) {
3443
+ if (!Rt(e))
3446
3444
  return null;
3447
- const r = An(e);
3448
- return Cn(r, t);
3445
+ const r = Hn(e);
3446
+ return Tn(r, t);
3449
3447
  }
3450
- function Sn(e) {
3448
+ function Bn(e) {
3451
3449
  if (e == null)
3452
3450
  return;
3453
3451
  const t = Ee(e);
3454
3452
  for (let r = 0; r < t.length; r++) {
3455
3453
  const n = t[r];
3456
- if (Gt(n))
3454
+ if (Rt(n))
3457
3455
  return n;
3458
3456
  }
3459
3457
  }
3460
- function Dt(e, ...t) {
3461
- delete U[e], ae.update((r) => (r[e] = Pr.all([r[e] || {}, ...t]), r));
3458
+ function Ut(e, ...t) {
3459
+ delete U[e], ae.update((r) => (r[e] = Or.all([r[e] || {}, ...t]), r));
3462
3460
  }
3463
3461
  Y(
3464
3462
  [ae],
3465
3463
  ([e]) => Object.keys(e)
3466
3464
  );
3467
- ae.subscribe((e) => Xe = e);
3465
+ ae.subscribe((e) => ke = e);
3468
3466
  const me = {};
3469
- function On(e, t) {
3467
+ function Sn(e, t) {
3470
3468
  me[e].delete(t), me[e].size === 0 && delete me[e];
3471
3469
  }
3472
- function Ft(e) {
3470
+ function Gt(e) {
3473
3471
  return me[e];
3474
3472
  }
3475
- function wn(e) {
3473
+ function On(e) {
3476
3474
  return Ee(e).map((t) => {
3477
- const r = Ft(t);
3475
+ const r = Gt(t);
3478
3476
  return [t, r ? [...r] : []];
3479
3477
  }).filter(([, t]) => t.length > 0);
3480
3478
  }
@@ -3482,31 +3480,31 @@ function De(e) {
3482
3480
  return e == null ? !1 : Ee(e).some(
3483
3481
  (t) => {
3484
3482
  var r;
3485
- return (r = Ft(t)) == null ? void 0 : r.size;
3483
+ return (r = Gt(t)) == null ? void 0 : r.size;
3486
3484
  }
3487
3485
  );
3488
3486
  }
3489
- function Pn(e, t) {
3487
+ function wn(e, t) {
3490
3488
  return Promise.all(
3491
- t.map((n) => (On(e, n), n().then((i) => i.default || i)))
3492
- ).then((n) => Dt(e, ...n));
3489
+ t.map((n) => (Sn(e, n), n().then((i) => i.default || i)))
3490
+ ).then((n) => Ut(e, ...n));
3493
3491
  }
3494
3492
  const te = {};
3495
- function jt(e) {
3493
+ function Dt(e) {
3496
3494
  if (!De(e))
3497
3495
  return e in te ? te[e] : Promise.resolve();
3498
- const t = wn(e);
3496
+ const t = On(e);
3499
3497
  return te[e] = Promise.all(
3500
3498
  t.map(
3501
- ([r, n]) => Pn(r, n)
3499
+ ([r, n]) => wn(r, n)
3502
3500
  )
3503
3501
  ).then(() => {
3504
3502
  if (De(e))
3505
- return jt(e);
3503
+ return Dt(e);
3506
3504
  delete te[e];
3507
3505
  }), te[e];
3508
3506
  }
3509
- const Nn = {
3507
+ const Pn = {
3510
3508
  number: {
3511
3509
  scientific: { notation: "scientific" },
3512
3510
  engineering: { notation: "engineering" },
@@ -3535,34 +3533,34 @@ const Nn = {
3535
3533
  timeZoneName: "short"
3536
3534
  }
3537
3535
  }
3538
- }, Ln = {
3536
+ }, Nn = {
3539
3537
  fallbackLocale: null,
3540
3538
  loadingDelay: 200,
3541
- formats: Nn,
3539
+ formats: Pn,
3542
3540
  warnOnMissingMessages: !0,
3543
3541
  handleMissingMessage: void 0,
3544
3542
  ignoreTag: !0
3545
- }, In = Ln;
3543
+ }, Ln = Nn;
3546
3544
  function J() {
3547
- return In;
3545
+ return Ln;
3548
3546
  }
3549
3547
  const Oe = ye(!1);
3550
- var Mn = Object.defineProperty, $n = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, st = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Gn = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Dn = (e, t) => {
3548
+ var In = Object.defineProperty, Mn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gn = (e, t) => {
3551
3549
  for (var r in t || (t = {}))
3552
- Un.call(t, r) && at(e, r, t[r]);
3553
- if (st)
3554
- for (var r of st(t))
3555
- Gn.call(t, r) && at(e, r, t[r]);
3550
+ Rn.call(t, r) && ot(e, r, t[r]);
3551
+ if (it)
3552
+ for (var r of it(t))
3553
+ Un.call(t, r) && ot(e, r, t[r]);
3556
3554
  return e;
3557
- }, Fn = (e, t) => $n(e, Rn(t));
3555
+ }, Dn = (e, t) => Mn(e, $n(t));
3558
3556
  let Fe;
3559
3557
  const de = ye(null);
3560
- function ut(e) {
3558
+ function st(e) {
3561
3559
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3562
3560
  }
3563
3561
  function Ee(e, t = J().fallbackLocale) {
3564
- const r = ut(e);
3565
- return t ? [.../* @__PURE__ */ new Set([...r, ...ut(t)])] : r;
3562
+ const r = st(e);
3563
+ return t ? [.../* @__PURE__ */ new Set([...r, ...st(t)])] : r;
3566
3564
  }
3567
3565
  function j() {
3568
3566
  return Fe ?? void 0;
@@ -3570,22 +3568,22 @@ function j() {
3570
3568
  de.subscribe((e) => {
3571
3569
  Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3572
3570
  });
3573
- const jn = (e) => {
3574
- if (e && Sn(e) && De(e)) {
3571
+ const Fn = (e) => {
3572
+ if (e && Bn(e) && De(e)) {
3575
3573
  const { loadingDelay: t } = J();
3576
3574
  let r;
3577
3575
  return typeof window < "u" && j() != null && t ? r = window.setTimeout(
3578
3576
  () => Oe.set(!0),
3579
3577
  t
3580
- ) : Oe.set(!0), jt(e).then(() => {
3578
+ ) : Oe.set(!0), Dt(e).then(() => {
3581
3579
  de.set(e);
3582
3580
  }).finally(() => {
3583
3581
  clearTimeout(r), Oe.set(!1);
3584
3582
  });
3585
3583
  }
3586
3584
  return de.set(e);
3587
- }, K = Fn(Dn({}, de), {
3588
- set: jn
3585
+ }, K = Dn(Gn({}, de), {
3586
+ set: Fn
3589
3587
  }), ve = (e) => {
3590
3588
  const t = /* @__PURE__ */ Object.create(null);
3591
3589
  return (n) => {
@@ -3593,20 +3591,20 @@ const jn = (e) => {
3593
3591
  return i in t ? t[i] : t[i] = e(n);
3594
3592
  };
3595
3593
  };
3596
- var kn = Object.defineProperty, be = Object.getOwnPropertySymbols, kt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
3594
+ var jn = Object.defineProperty, be = Object.getOwnPropertySymbols, Ft = Object.prototype.hasOwnProperty, jt = Object.prototype.propertyIsEnumerable, at = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ve = (e, t) => {
3597
3595
  for (var r in t || (t = {}))
3598
- kt.call(t, r) && ht(e, r, t[r]);
3596
+ Ft.call(t, r) && at(e, r, t[r]);
3599
3597
  if (be)
3600
3598
  for (var r of be(t))
3601
- Vt.call(t, r) && ht(e, r, t[r]);
3599
+ jt.call(t, r) && at(e, r, t[r]);
3602
3600
  return e;
3603
3601
  }, ee = (e, t) => {
3604
3602
  var r = {};
3605
3603
  for (var n in e)
3606
- kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3604
+ Ft.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3607
3605
  if (e != null && be)
3608
3606
  for (var n of be(e))
3609
- t.indexOf(n) < 0 && Vt.call(e, n) && (r[n] = e[n]);
3607
+ t.indexOf(n) < 0 && jt.call(e, n) && (r[n] = e[n]);
3610
3608
  return r;
3611
3609
  };
3612
3610
  const oe = (e, t) => {
@@ -3614,21 +3612,21 @@ const oe = (e, t) => {
3614
3612
  if (e in r && t in r[e])
3615
3613
  return r[e][t];
3616
3614
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3617
- }, Vn = ve(
3615
+ }, kn = ve(
3618
3616
  (e) => {
3619
3617
  var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
3620
3618
  if (r == null)
3621
3619
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3622
3620
  return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
3623
3621
  }
3624
- ), Xn = ve(
3622
+ ), Vn = ve(
3625
3623
  (e) => {
3626
3624
  var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
3627
3625
  if (r == null)
3628
3626
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3629
3627
  return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
3630
3628
  }
3631
- ), zn = ve(
3629
+ ), Xn = ve(
3632
3630
  (e) => {
3633
3631
  var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
3634
3632
  if (r == null)
@@ -3637,33 +3635,33 @@ const oe = (e, t) => {
3637
3635
  );
3638
3636
  return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
3639
3637
  }
3640
- ), Wn = (e = {}) => {
3638
+ ), zn = (e = {}) => {
3641
3639
  var t = e, {
3642
3640
  locale: r = j()
3643
3641
  } = t, n = ee(t, [
3644
3642
  "locale"
3645
3643
  ]);
3646
- return Vn(ze({ locale: r }, n));
3647
- }, Zn = (e = {}) => {
3644
+ return kn(Ve({ locale: r }, n));
3645
+ }, Wn = (e = {}) => {
3648
3646
  var t = e, {
3649
3647
  locale: r = j()
3650
3648
  } = t, n = ee(t, [
3651
3649
  "locale"
3652
3650
  ]);
3653
- return Xn(ze({ locale: r }, n));
3654
- }, Qn = (e = {}) => {
3651
+ return Vn(Ve({ locale: r }, n));
3652
+ }, Zn = (e = {}) => {
3655
3653
  var t = e, {
3656
3654
  locale: r = j()
3657
3655
  } = t, n = ee(t, [
3658
3656
  "locale"
3659
3657
  ]);
3660
- return zn(ze({ locale: r }, n));
3661
- }, Jn = ve(
3658
+ return Xn(Ve({ locale: r }, n));
3659
+ }, Qn = ve(
3662
3660
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3663
- (e, t = j()) => new Tn(e, t, J().formats, {
3661
+ (e, t = j()) => new vn(e, t, J().formats, {
3664
3662
  ignoreTag: J().ignoreTag
3665
3663
  })
3666
- ), qn = (e, t = {}) => {
3664
+ ), Jn = (e, t = {}) => {
3667
3665
  var r, n, i, o;
3668
3666
  let s = t;
3669
3667
  typeof e == "object" && (s = e, e = s.id);
@@ -3676,7 +3674,7 @@ const oe = (e, t) => {
3676
3674
  throw new Error(
3677
3675
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3678
3676
  );
3679
- let h = Ut(e, l);
3677
+ let h = $t(e, l);
3680
3678
  if (!h)
3681
3679
  h = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
3682
3680
  else if (typeof h != "string")
@@ -3685,28 +3683,28 @@ const oe = (e, t) => {
3685
3683
  ), h;
3686
3684
  if (!u)
3687
3685
  return h;
3688
- let f = h;
3686
+ let c = h;
3689
3687
  try {
3690
- f = Jn(h, l).format(u);
3691
- } catch (c) {
3692
- c instanceof Error && console.warn(
3688
+ c = Qn(h, l).format(u);
3689
+ } catch (f) {
3690
+ f instanceof Error && console.warn(
3693
3691
  `[svelte-i18n] Message "${e}" has syntax error:`,
3694
- c.message
3692
+ f.message
3695
3693
  );
3696
3694
  }
3697
- return f;
3698
- }, Yn = (e, t) => Qn(t).format(e), Kn = (e, t) => Zn(t).format(e), ei = (e, t) => Wn(t).format(e), ti = (e, t = j()) => Ut(e, t), ri = Y([K, ae], () => qn);
3695
+ return c;
3696
+ }, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = j()) => $t(e, t), ti = Y([K, ae], () => Jn);
3697
+ Y([K], () => qn);
3699
3698
  Y([K], () => Yn);
3700
3699
  Y([K], () => Kn);
3701
- Y([K], () => ei);
3702
- Y([K, ae], () => ti);
3703
- function lt(e, t) {
3704
- Dt(e, t);
3700
+ Y([K, ae], () => ei);
3701
+ function ut(e, t) {
3702
+ Ut(e, t);
3705
3703
  }
3706
- function ni(e) {
3704
+ function ri(e) {
3707
3705
  K.set(e);
3708
3706
  }
3709
- const ct = {
3707
+ const ht = {
3710
3708
  en: {
3711
3709
  topCategories: "Top Categories",
3712
3710
  otherCategories: "Other Categories",
@@ -3816,13 +3814,13 @@ const ct = {
3816
3814
  games: "games"
3817
3815
  }
3818
3816
  };
3819
- function ii(e, t) {
3817
+ function ni(e, t) {
3820
3818
  if (e) {
3821
3819
  const r = document.createElement("style");
3822
3820
  r.innerHTML = t, e.appendChild(r);
3823
3821
  }
3824
3822
  }
3825
- function oi(e, t) {
3823
+ function ii(e, t) {
3826
3824
  const r = new URL(t);
3827
3825
  fetch(r.href).then((n) => n.text()).then((n) => {
3828
3826
  const i = document.createElement("style");
@@ -3831,7 +3829,7 @@ function oi(e, t) {
3831
3829
  console.error("There was an error while trying to load client styling from URL", n);
3832
3830
  });
3833
3831
  }
3834
- function si(e, t, r) {
3832
+ function oi(e, t, r) {
3835
3833
  if (window.emMessageBus) {
3836
3834
  const n = document.createElement("style");
3837
3835
  window.emMessageBus.subscribe(t, (i) => {
@@ -3839,41 +3837,41 @@ function si(e, t, r) {
3839
3837
  });
3840
3838
  }
3841
3839
  }
3842
- function ai(e) {
3843
- Qt(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
3840
+ function si(e) {
3841
+ Wt(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
3844
3842
  }
3845
- function ft(e, t, r) {
3843
+ function lt(e, t, r) {
3846
3844
  const n = e.slice();
3847
3845
  return n[23] = t[r], n;
3848
3846
  }
3849
- function gt(e, t, r) {
3847
+ function ft(e, t, r) {
3850
3848
  const n = e.slice();
3851
3849
  return n[23] = t[r], n;
3852
3850
  }
3853
- function ui(e) {
3851
+ function ai(e) {
3854
3852
  let t, r, n = (
3855
3853
  /*$_*/
3856
3854
  e[5]("topCategories") + ""
3857
3855
  ), i, o, s, u, l = (
3858
3856
  /*$_*/
3859
3857
  e[5]("otherCategories") + ""
3860
- ), a, h, f = le(
3858
+ ), a, h, c = le(
3861
3859
  /*topCategories*/
3862
3860
  e[3]
3863
- ), c = [];
3864
- for (let g = 0; g < f.length; g += 1)
3865
- c[g] = mt(gt(e, f, g));
3861
+ ), f = [];
3862
+ for (let g = 0; g < c.length; g += 1)
3863
+ f[g] = ct(ft(e, c, g));
3866
3864
  let p = le(
3867
3865
  /*otherCategories*/
3868
3866
  e[4]
3869
3867
  ), d = [];
3870
3868
  for (let g = 0; g < p.length; g += 1)
3871
- d[g] = pt(ft(e, p, g));
3869
+ d[g] = gt(lt(e, p, g));
3872
3870
  return {
3873
3871
  c() {
3874
3872
  t = O("div"), r = O("h4"), i = R(n), o = $();
3875
- for (let g = 0; g < c.length; g += 1)
3876
- c[g].c();
3873
+ for (let g = 0; g < f.length; g += 1)
3874
+ f[g].c();
3877
3875
  s = $(), u = O("h4"), a = R(l), h = $();
3878
3876
  for (let g = 0; g < d.length; g += 1)
3879
3877
  d[g].c();
@@ -3881,8 +3879,8 @@ function ui(e) {
3881
3879
  },
3882
3880
  m(g, E) {
3883
3881
  q(g, t, E), v(t, r), v(r, i), v(t, o);
3884
- for (let m = 0; m < c.length; m += 1)
3885
- c[m] && c[m].m(t, null);
3882
+ for (let m = 0; m < f.length; m += 1)
3883
+ f[m] && f[m].m(t, null);
3886
3884
  v(t, s), v(t, u), v(u, a), v(t, h);
3887
3885
  for (let m = 0; m < d.length; m += 1)
3888
3886
  d[m] && d[m].m(t, null);
@@ -3892,18 +3890,18 @@ function ui(e) {
3892
3890
  32 && n !== (n = /*$_*/
3893
3891
  g[5]("topCategories") + "") && G(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
3894
3892
  105) {
3895
- f = le(
3893
+ c = le(
3896
3894
  /*topCategories*/
3897
3895
  g[3]
3898
3896
  );
3899
3897
  let m;
3900
- for (m = 0; m < f.length; m += 1) {
3901
- const C = gt(g, f, m);
3902
- c[m] ? c[m].p(C, E) : (c[m] = mt(C), c[m].c(), c[m].m(t, s));
3898
+ for (m = 0; m < c.length; m += 1) {
3899
+ const C = ft(g, c, m);
3900
+ f[m] ? f[m].p(C, E) : (f[m] = ct(C), f[m].c(), f[m].m(t, s));
3903
3901
  }
3904
- for (; m < c.length; m += 1)
3905
- c[m].d(1);
3906
- c.length = f.length;
3902
+ for (; m < f.length; m += 1)
3903
+ f[m].d(1);
3904
+ f.length = c.length;
3907
3905
  }
3908
3906
  if (E & /*$_*/
3909
3907
  32 && l !== (l = /*$_*/
@@ -3915,8 +3913,8 @@ function ui(e) {
3915
3913
  );
3916
3914
  let m;
3917
3915
  for (m = 0; m < p.length; m += 1) {
3918
- const C = ft(g, p, m);
3919
- d[m] ? d[m].p(C, E) : (d[m] = pt(C), d[m].c(), d[m].m(t, null));
3916
+ const C = lt(g, p, m);
3917
+ d[m] ? d[m].p(C, E) : (d[m] = gt(C), d[m].c(), d[m].m(t, null));
3920
3918
  }
3921
3919
  for (; m < d.length; m += 1)
3922
3920
  d[m].d(1);
@@ -3924,11 +3922,11 @@ function ui(e) {
3924
3922
  }
3925
3923
  },
3926
3924
  d(g) {
3927
- g && F(t), Qe(c, g), Qe(d, g);
3925
+ g && F(t), We(f, g), We(d, g);
3928
3926
  }
3929
3927
  };
3930
3928
  }
3931
- function hi(e) {
3929
+ function ui(e) {
3932
3930
  let t;
3933
3931
  return {
3934
3932
  c() {
@@ -3943,11 +3941,11 @@ function hi(e) {
3943
3941
  }
3944
3942
  };
3945
3943
  }
3946
- function mt(e) {
3944
+ function ct(e) {
3947
3945
  let t, r, n, i, o, s, u, l = (
3948
3946
  /*category*/
3949
3947
  e[23].name + ""
3950
- ), a, h, f, c = (
3948
+ ), a, h, c, f = (
3951
3949
  /*category*/
3952
3950
  e[23].games.count + ""
3953
3951
  ), p, d, g = (
@@ -3965,14 +3963,14 @@ function mt(e) {
3965
3963
  }
3966
3964
  return {
3967
3965
  c() {
3968
- t = O("div"), r = O("img"), o = $(), s = O("div"), u = O("p"), a = R(l), h = $(), f = O("p"), p = R(c), d = $(), E = R(g), pe(r.src, n = /*category*/
3966
+ t = O("div"), r = O("img"), o = $(), s = O("div"), u = O("p"), a = R(l), h = $(), c = O("p"), p = R(f), d = $(), E = R(g), pe(r.src, n = /*category*/
3969
3967
  e[23].icon) || A(r, "src", n), A(r, "alt", i = /*category*/
3970
3968
  e[23].name), A(r, "class", "CategoryImage"), A(s, "class", "CategoryTextContainer"), A(t, "class", m = "Category " + /*activecategory*/
3971
3969
  (e[0] === /*category*/
3972
3970
  e[23].id ? "Active" : ""));
3973
3971
  },
3974
3972
  m(S, H) {
3975
- q(S, t, H), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, h), v(s, f), v(f, p), v(f, d), v(f, E), C || (B = _t(t, "click", P), C = !0);
3973
+ q(S, t, H), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, h), v(s, c), v(c, p), v(c, d), v(c, E), C || (B = bt(t, "click", P), C = !0);
3976
3974
  },
3977
3975
  p(S, H) {
3978
3976
  e = S, H & /*topCategories*/
@@ -3982,8 +3980,8 @@ function mt(e) {
3982
3980
  e[23].name) && A(r, "alt", i), H & /*topCategories*/
3983
3981
  8 && l !== (l = /*category*/
3984
3982
  e[23].name + "") && G(a, l), H & /*topCategories*/
3985
- 8 && c !== (c = /*category*/
3986
- e[23].games.count + "") && G(p, c), H & /*$_*/
3983
+ 8 && f !== (f = /*category*/
3984
+ e[23].games.count + "") && G(p, f), H & /*$_*/
3987
3985
  32 && g !== (g = /*$_*/
3988
3986
  e[5]("games") + "") && G(E, g), H & /*activecategory, topCategories*/
3989
3987
  9 && m !== (m = "Category " + /*activecategory*/
@@ -3995,11 +3993,11 @@ function mt(e) {
3995
3993
  }
3996
3994
  };
3997
3995
  }
3998
- function pt(e) {
3996
+ function gt(e) {
3999
3997
  let t, r, n, i, o, s, u, l = (
4000
3998
  /*category*/
4001
3999
  e[23].name + ""
4002
- ), a, h, f, c = (
4000
+ ), a, h, c, f = (
4003
4001
  /*category*/
4004
4002
  e[23].games.count + ""
4005
4003
  ), p, d, g = (
@@ -4017,14 +4015,14 @@ function pt(e) {
4017
4015
  }
4018
4016
  return {
4019
4017
  c() {
4020
- t = O("div"), r = O("img"), o = $(), s = O("div"), u = O("p"), a = R(l), h = $(), f = O("p"), p = R(c), d = $(), E = R(g), m = $(), pe(r.src, n = /*category*/
4018
+ t = O("div"), r = O("img"), o = $(), s = O("div"), u = O("p"), a = R(l), h = $(), c = O("p"), p = R(f), d = $(), E = R(g), m = $(), pe(r.src, n = /*category*/
4021
4019
  e[23].icon) || A(r, "src", n), A(r, "alt", i = /*category*/
4022
4020
  e[23].name), A(r, "class", "CategoryImage"), A(s, "class", "CategoryTextContainer"), A(t, "class", C = "Category " + /*activecategory*/
4023
4021
  (e[0] === /*category*/
4024
4022
  e[23].id ? "Active" : ""));
4025
4023
  },
4026
4024
  m(H, N) {
4027
- q(H, t, N), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, h), v(s, f), v(f, p), v(f, d), v(f, E), v(t, m), B || (P = _t(t, "click", S), B = !0);
4025
+ q(H, t, N), v(t, r), v(t, o), v(t, s), v(s, u), v(u, a), v(s, h), v(s, c), v(c, p), v(c, d), v(c, E), v(t, m), B || (P = bt(t, "click", S), B = !0);
4028
4026
  },
4029
4027
  p(H, N) {
4030
4028
  e = H, N & /*otherCategories*/
@@ -4034,8 +4032,8 @@ function pt(e) {
4034
4032
  e[23].name) && A(r, "alt", i), N & /*otherCategories*/
4035
4033
  16 && l !== (l = /*category*/
4036
4034
  e[23].name + "") && G(a, l), N & /*otherCategories*/
4037
- 16 && c !== (c = /*category*/
4038
- e[23].games.count + "") && G(p, c), N & /*$_*/
4035
+ 16 && f !== (f = /*category*/
4036
+ e[23].games.count + "") && G(p, f), N & /*$_*/
4039
4037
  32 && g !== (g = /*$_*/
4040
4038
  e[5]("games") + "") && G(E, g), N & /*activecategory, otherCategories*/
4041
4039
  17 && C !== (C = "Category " + /*activecategory*/
@@ -4047,12 +4045,12 @@ function pt(e) {
4047
4045
  }
4048
4046
  };
4049
4047
  }
4050
- function li(e) {
4048
+ function hi(e) {
4051
4049
  let t;
4052
4050
  function r(o, s) {
4053
4051
  return (
4054
4052
  /*isLoading*/
4055
- o[2] ? hi : ui
4053
+ o[2] ? ui : ai
4056
4054
  );
4057
4055
  }
4058
4056
  let n = r(e), i = n(e);
@@ -4073,19 +4071,19 @@ function li(e) {
4073
4071
  }
4074
4072
  };
4075
4073
  }
4076
- function ci(e, t, r) {
4074
+ function li(e, t, r) {
4077
4075
  let n;
4078
- Zt(e, ri, (b) => r(5, n = b));
4079
- let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, { mbsource: c } = t, p, d = !1;
4076
+ zt(e, ti, (b) => r(5, n = b));
4077
+ let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "en" } = t, { activecategory: u = "" } = t, { excludedflags: l = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
4080
4078
  const g = [];
4081
4079
  let E = [], m = [];
4082
- Object.keys(ct).forEach((b) => {
4083
- lt(b, ct[b]);
4080
+ Object.keys(ht).forEach((b) => {
4081
+ ut(b, ht[b]);
4084
4082
  });
4085
4083
  const C = () => {
4086
- fetch(f).then((M) => M.json()).then((M) => {
4084
+ fetch(c).then((M) => M.json()).then((M) => {
4087
4085
  Object.keys(M).forEach((ue) => {
4088
- lt(ue, M[ue]);
4086
+ ut(ue, M[ue]);
4089
4087
  });
4090
4088
  }).catch((M) => {
4091
4089
  console.log(M);
@@ -4097,32 +4095,32 @@ function ci(e, t, r) {
4097
4095
  r(2, d = !1);
4098
4096
  const ue = l.split(",").map((D) => D.trim());
4099
4097
  g.push(...M.items);
4100
- const We = g.filter((D) => !ue.some((zt) => D.flags?.indexOf(zt) >= 0));
4101
- r(3, E = We.filter((D) => D.isTopCategory === !0)), r(4, m = We.filter((D) => D.isTopCategory === !1));
4098
+ const Xe = g.filter((D) => !ue.some((Vt) => D.flags?.indexOf(Vt) >= 0));
4099
+ r(3, E = Xe.filter((D) => D.isTopCategory === !0)), r(4, m = Xe.filter((D) => D.isTopCategory === !1));
4102
4100
  });
4103
4101
  }, P = (b) => {
4104
4102
  window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
4105
4103
  }, S = () => {
4106
- ni(s);
4104
+ ri(s);
4107
4105
  };
4108
- tr(() => () => {
4106
+ Kt(() => () => {
4109
4107
  });
4110
4108
  const H = (b) => P(b.id), N = (b) => P(b.id);
4111
- function Xt(b) {
4109
+ function kt(b) {
4112
4110
  we[b ? "unshift" : "push"](() => {
4113
4111
  p = b, r(1, p);
4114
4112
  });
4115
4113
  }
4116
4114
  return e.$$set = (b) => {
4117
- "endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, o = b.datasource), "lang" in b && r(9, s = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, l = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, f = b.translationurl), "mbsource" in b && r(14, c = b.mbsource);
4115
+ "endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, o = b.datasource), "lang" in b && r(9, s = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, l = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
4118
4116
  }, e.$$.update = () => {
4119
4117
  e.$$.dirty & /*endpoint, datasource*/
4120
4118
  384 && i && o && B(), e.$$.dirty & /*translationurl*/
4121
- 8192 && f && C(), e.$$.dirty & /*lang*/
4119
+ 8192 && c && C(), e.$$.dirty & /*lang*/
4122
4120
  512 && s && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4123
- 2050 && a && p && ii(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4124
- 4098 && h && p && oi(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4125
- 16386 && c && p && si(p, `${c}.Style`);
4121
+ 2050 && a && p && ni(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4122
+ 4098 && h && p && ii(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4123
+ 16386 && f && p && oi(p, `${f}.Style`);
4126
4124
  }, [
4127
4125
  u,
4128
4126
  p,
@@ -4137,21 +4135,21 @@ function ci(e, t, r) {
4137
4135
  l,
4138
4136
  a,
4139
4137
  h,
4140
- f,
4141
4138
  c,
4139
+ f,
4142
4140
  H,
4143
4141
  N,
4144
- Xt
4142
+ kt
4145
4143
  ];
4146
4144
  }
4147
- class fi extends gr {
4145
+ class fi extends fr {
4148
4146
  constructor(t) {
4149
- super(), cr(
4147
+ super(), hr(
4150
4148
  this,
4151
4149
  t,
4152
- ci,
4153
4150
  li,
4154
- bt,
4151
+ hi,
4152
+ pt,
4155
4153
  {
4156
4154
  endpoint: 7,
4157
4155
  datasource: 8,
@@ -4163,7 +4161,7 @@ class fi extends gr {
4163
4161
  translationurl: 13,
4164
4162
  mbsource: 14
4165
4163
  },
4166
- ai
4164
+ si
4167
4165
  );
4168
4166
  }
4169
4167
  get endpoint() {
@@ -4221,7 +4219,7 @@ class fi extends gr {
4221
4219
  this.$$set({ mbsource: t }), I();
4222
4220
  }
4223
4221
  }
4224
- fr(fi, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
4222
+ lr(fi, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
4225
4223
  export {
4226
4224
  fi as C
4227
4225
  };