@everymatrix/casino-categories 1.59.3 → 1.60.1

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