@everymatrix/casino-collections-providers 1.62.0 → 1.62.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/components/{CasinoCollectionsProviders-eD9PL2e1.js → CasinoCollectionsProviders-B1VO9UIp.js} +898 -877
  2. package/components/CasinoCollectionsProviders-DCbQhqxv.cjs +18 -0
  3. package/components/{CasinoCollectionsProviders-B0cikWdq.js → CasinoCollectionsProviders-tpstUX6u.js} +864 -843
  4. package/es2015/casino-collections-providers.cjs +1 -1
  5. package/es2015/casino-collections-providers.js +1 -1
  6. package/esnext/casino-collections-providers.js +1 -1
  7. package/package.json +1 -1
  8. package/stencil/index-97d17652-B8yQdy7J.js +542 -0
  9. package/stencil/index-97d17652-C616IYj2.js +558 -0
  10. package/stencil/index-97d17652-C9Ph2JiE.cjs +1 -0
  11. package/stencil/ui-image-7da92f1f-26DzsVFt.js +39 -0
  12. package/stencil/ui-image-7da92f1f-BAghvEDf.js +39 -0
  13. package/stencil/ui-image-7da92f1f-BiVBd_OW.cjs +1 -0
  14. package/stencil/ui-image-Bz0nQwNJ.cjs +1 -0
  15. package/stencil/ui-image-DX8NqsyA.js +25 -0
  16. package/stencil/ui-image-o9dMcntc.js +7 -0
  17. package/stencil/ui-image_2-BXgptLvl.js +154 -0
  18. package/stencil/ui-image_2-Cctik3aF.cjs +73 -0
  19. package/stencil/ui-image_2-Cyqb4u7k.js +154 -0
  20. package/components/CasinoCollectionsProviders-Dj4DXUcf.cjs +0 -18
  21. package/stencil/index-b7bbd57e-6KaMTlNN.js +0 -534
  22. package/stencil/index-b7bbd57e-BSagye0B.js +0 -550
  23. package/stencil/index-b7bbd57e-DIQXXTTR.cjs +0 -1
  24. package/stencil/ui-image-38c3c15f-CumwWbNu.js +0 -39
  25. package/stencil/ui-image-38c3c15f-Dxl-aZb-.js +0 -39
  26. package/stencil/ui-image-38c3c15f-y5t5ZLG0.cjs +0 -1
  27. package/stencil/ui-image-BQa5UbqU.js +0 -11
  28. package/stencil/ui-image-Bi4jDe3D.js +0 -29
  29. package/stencil/ui-image-z441BZiX.cjs +0 -1
@@ -1,58 +1,58 @@
1
- var zr = Object.defineProperty, Zr = Object.defineProperties;
2
- var Qr = Object.getOwnPropertyDescriptors;
3
- var yt = Object.getOwnPropertySymbols;
4
- var qr = Object.prototype.hasOwnProperty, Jr = Object.prototype.propertyIsEnumerable;
5
- var Ie = (e, t, r) => t in e ? zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _t = (e, t) => {
1
+ var Zr = Object.defineProperty, Qr = Object.defineProperties;
2
+ var Jr = Object.getOwnPropertyDescriptors;
3
+ var Et = Object.getOwnPropertySymbols;
4
+ var qr = Object.prototype.hasOwnProperty, Yr = Object.prototype.propertyIsEnumerable;
5
+ var Me = (e, t, r) => t in e ? Zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- qr.call(t, r) && Ie(e, r, t[r]);
8
- if (yt)
9
- for (var r of yt(t))
10
- Jr.call(t, r) && Ie(e, r, t[r]);
7
+ qr.call(t, r) && Me(e, r, t[r]);
8
+ if (Et)
9
+ for (var r of Et(t))
10
+ Yr.call(t, r) && Me(e, r, t[r]);
11
11
  return e;
12
- }, Et = (e, t) => Zr(e, Qr(t));
13
- var N = (e, t, r) => (Ie(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var xt = (e, t, r) => new Promise((n, i) => {
12
+ }, St = (e, t) => Qr(e, Jr(t));
13
+ var N = (e, t, r) => (Me(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var wt = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (h) => {
16
16
  try {
17
17
  a(r.next(h));
18
- } catch (u) {
19
- i(u);
18
+ } catch (l) {
19
+ i(l);
20
20
  }
21
21
  }, s = (h) => {
22
22
  try {
23
23
  a(r.throw(h));
24
- } catch (u) {
25
- i(u);
24
+ } catch (l) {
25
+ i(l);
26
26
  }
27
27
  }, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
28
28
  a((r = r.apply(e, t)).next());
29
29
  });
30
- import "../stencil/ui-image-Bi4jDe3D.js";
30
+ import "../stencil/ui-image-DX8NqsyA.js";
31
31
  function I() {
32
32
  }
33
- function Kt(e) {
33
+ function tr(e) {
34
34
  return e();
35
35
  }
36
- function St() {
36
+ function Tt() {
37
37
  return /* @__PURE__ */ Object.create(null);
38
38
  }
39
- function ne(e) {
40
- e.forEach(Kt);
39
+ function re(e) {
40
+ e.forEach(tr);
41
41
  }
42
- function it(e) {
42
+ function ut(e) {
43
43
  return typeof e == "function";
44
44
  }
45
- function er(e, t) {
45
+ function rr(e, t) {
46
46
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
47
47
  }
48
48
  let de;
49
49
  function _e(e, t) {
50
50
  return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
51
51
  }
52
- function Yr(e) {
52
+ function Kr(e) {
53
53
  return Object.keys(e).length === 0;
54
54
  }
55
- function tr(e, ...t) {
55
+ function nr(e, ...t) {
56
56
  if (e == null) {
57
57
  for (const n of t)
58
58
  n(void 0);
@@ -61,20 +61,20 @@ function tr(e, ...t) {
61
61
  const r = e.subscribe(...t);
62
62
  return r.unsubscribe ? () => r.unsubscribe() : r;
63
63
  }
64
- function Kr(e, t, r) {
65
- e.$$.on_destroy.push(tr(t, r));
64
+ function en(e, t, r) {
65
+ e.$$.on_destroy.push(nr(t, r));
66
66
  }
67
67
  function H(e, t) {
68
68
  e.appendChild(t);
69
69
  }
70
- function en(e, t, r) {
71
- const n = tn(e);
70
+ function tn(e, t, r) {
71
+ const n = rn(e);
72
72
  if (!n.getElementById(t)) {
73
73
  const i = C("style");
74
- i.id = t, i.textContent = r, rn(n, i);
74
+ i.id = t, i.textContent = r, nn(n, i);
75
75
  }
76
76
  }
77
- function tn(e) {
77
+ function rn(e) {
78
78
  if (!e)
79
79
  return document;
80
80
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -84,36 +84,36 @@ function tn(e) {
84
84
  t
85
85
  ) : e.ownerDocument;
86
86
  }
87
- function rn(e, t) {
87
+ function nn(e, t) {
88
88
  return H(
89
89
  /** @type {Document} */
90
90
  e.head || e,
91
91
  t
92
92
  ), t.sheet;
93
93
  }
94
- function U(e, t, r) {
94
+ function D(e, t, r) {
95
95
  e.insertBefore(t, r || null);
96
96
  }
97
97
  function R(e) {
98
98
  e.parentNode && e.parentNode.removeChild(e);
99
99
  }
100
- function rr(e, t) {
100
+ function ir(e, t) {
101
101
  for (let r = 0; r < e.length; r += 1)
102
102
  e[r] && e[r].d(t);
103
103
  }
104
104
  function C(e) {
105
105
  return document.createElement(e);
106
106
  }
107
- function He(e) {
107
+ function Ce(e) {
108
108
  return document.createTextNode(e);
109
109
  }
110
110
  function X() {
111
- return He(" ");
111
+ return Ce(" ");
112
112
  }
113
113
  function Ee(e, t, r, n) {
114
114
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
115
115
  }
116
- function nn(e) {
116
+ function on(e) {
117
117
  return function(t) {
118
118
  return t.stopPropagation(), e.call(this, t);
119
119
  };
@@ -125,17 +125,17 @@ function G(e, t, r) {
125
125
  const n = t.toLowerCase();
126
126
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : P(e, t, r);
127
127
  }
128
- function on(e) {
128
+ function sn(e) {
129
129
  return Array.from(e.childNodes);
130
130
  }
131
- function ot(e, t) {
131
+ function lt(e, t) {
132
132
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
133
133
  t);
134
134
  }
135
- function Ne(e, t, r, n) {
135
+ function Re(e, t, r, n) {
136
136
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
137
137
  }
138
- function sn(e) {
138
+ function an(e) {
139
139
  const t = {};
140
140
  return e.childNodes.forEach(
141
141
  /** @param {Element} node */
@@ -145,28 +145,28 @@ function sn(e) {
145
145
  ), t;
146
146
  }
147
147
  let ue;
148
- function le(e) {
148
+ function ae(e) {
149
149
  ue = e;
150
150
  }
151
- function an() {
151
+ function un() {
152
152
  if (!ue)
153
153
  throw new Error("Function called outside component initialization");
154
154
  return ue;
155
155
  }
156
156
  function ln(e) {
157
- an().$$.on_mount.push(e);
157
+ un().$$.on_mount.push(e);
158
158
  }
159
- const q = [], xe = [];
160
- let J = [];
161
- const wt = [], un = /* @__PURE__ */ Promise.resolve();
162
- let ke = !1;
163
- function hn() {
164
- ke || (ke = !0, un.then(M));
159
+ const J = [], xe = [];
160
+ let q = [];
161
+ const Ht = [], hn = /* @__PURE__ */ Promise.resolve();
162
+ let Xe = !1;
163
+ function cn() {
164
+ Xe || (Xe = !0, hn.then(M));
165
165
  }
166
- function Ve(e) {
167
- J.push(e);
166
+ function We(e) {
167
+ q.push(e);
168
168
  }
169
- const Me = /* @__PURE__ */ new Set();
169
+ const $e = /* @__PURE__ */ new Set();
170
170
  let Z = 0;
171
171
  function M() {
172
172
  if (Z !== 0)
@@ -174,68 +174,68 @@ function M() {
174
174
  const e = ue;
175
175
  do {
176
176
  try {
177
- for (; Z < q.length; ) {
178
- const t = q[Z];
179
- Z++, le(t), cn(t.$$);
177
+ for (; Z < J.length; ) {
178
+ const t = J[Z];
179
+ Z++, ae(t), fn(t.$$);
180
180
  }
181
181
  } catch (t) {
182
- throw q.length = 0, Z = 0, t;
182
+ throw J.length = 0, Z = 0, t;
183
183
  }
184
- for (le(null), q.length = 0, Z = 0; xe.length; )
184
+ for (ae(null), J.length = 0, Z = 0; xe.length; )
185
185
  xe.pop()();
186
- for (let t = 0; t < J.length; t += 1) {
187
- const r = J[t];
188
- Me.has(r) || (Me.add(r), r());
186
+ for (let t = 0; t < q.length; t += 1) {
187
+ const r = q[t];
188
+ $e.has(r) || ($e.add(r), r());
189
189
  }
190
- J.length = 0;
191
- } while (q.length);
192
- for (; wt.length; )
193
- wt.pop()();
194
- ke = !1, Me.clear(), le(e);
190
+ q.length = 0;
191
+ } while (J.length);
192
+ for (; Ht.length; )
193
+ Ht.pop()();
194
+ Xe = !1, $e.clear(), ae(e);
195
195
  }
196
- function cn(e) {
196
+ function fn(e) {
197
197
  if (e.fragment !== null) {
198
- e.update(), ne(e.before_update);
198
+ e.update(), re(e.before_update);
199
199
  const t = e.dirty;
200
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ve);
200
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(We);
201
201
  }
202
202
  }
203
- function fn(e) {
203
+ function dn(e) {
204
204
  const t = [], r = [];
205
- J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
205
+ q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), q = t;
206
206
  }
207
- const dn = /* @__PURE__ */ new Set();
208
- function pn(e, t) {
209
- e && e.i && (dn.delete(e), e.i(t));
207
+ const pn = /* @__PURE__ */ new Set();
208
+ function mn(e, t) {
209
+ e && e.i && (pn.delete(e), e.i(t));
210
210
  }
211
211
  function Se(e) {
212
212
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
213
213
  }
214
- function mn(e, t, r) {
214
+ function bn(e, t, r) {
215
215
  const { fragment: n, after_update: i } = e.$$;
216
- n && n.m(t, r), Ve(() => {
217
- const o = e.$$.on_mount.map(Kt).filter(it);
218
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
219
- }), i.forEach(Ve);
216
+ n && n.m(t, r), We(() => {
217
+ const o = e.$$.on_mount.map(tr).filter(ut);
218
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
219
+ }), i.forEach(We);
220
220
  }
221
- function bn(e, t) {
221
+ function gn(e, t) {
222
222
  const r = e.$$;
223
- r.fragment !== null && (fn(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
223
+ r.fragment !== null && (dn(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
224
224
  }
225
- function gn(e, t) {
226
- e.$$.dirty[0] === -1 && (q.push(e), hn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
225
+ function vn(e, t) {
226
+ e.$$.dirty[0] === -1 && (J.push(e), cn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
227
227
  }
228
- function vn(e, t, r, n, i, o, s = null, a = [-1]) {
228
+ function yn(e, t, r, n, i, o, s = null, a = [-1]) {
229
229
  const h = ue;
230
- le(e);
231
- const u = e.$$ = {
230
+ ae(e);
231
+ const l = e.$$ = {
232
232
  fragment: null,
233
233
  ctx: [],
234
234
  // state
235
235
  props: o,
236
236
  update: I,
237
237
  not_equal: i,
238
- bound: St(),
238
+ bound: Tt(),
239
239
  // lifecycle
240
240
  on_mount: [],
241
241
  on_destroy: [],
@@ -244,28 +244,28 @@ function vn(e, t, r, n, i, o, s = null, a = [-1]) {
244
244
  after_update: [],
245
245
  context: new Map(t.context || (h ? h.$$.context : [])),
246
246
  // everything else
247
- callbacks: St(),
247
+ callbacks: Tt(),
248
248
  dirty: a,
249
249
  skip_bound: !1,
250
250
  root: t.target || h.$$.root
251
251
  };
252
- s && s(u.root);
253
- let l = !1;
254
- if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
252
+ s && s(l.root);
253
+ let u = !1;
254
+ if (l.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
255
255
  const m = d.length ? d[0] : c;
256
- return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), l && gn(e, f)), c;
257
- }) : [], u.update(), l = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
256
+ return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), u && vn(e, f)), c;
257
+ }) : [], l.update(), u = !0, re(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
258
258
  if (t.hydrate) {
259
- const f = on(t.target);
260
- u.fragment && u.fragment.l(f), f.forEach(R);
259
+ const f = sn(t.target);
260
+ l.fragment && l.fragment.l(f), f.forEach(R);
261
261
  } else
262
- u.fragment && u.fragment.c();
263
- t.intro && pn(e.$$.fragment), mn(e, t.target, t.anchor), M();
262
+ l.fragment && l.fragment.c();
263
+ t.intro && mn(e.$$.fragment), bn(e, t.target, t.anchor), M();
264
264
  }
265
- le(h);
265
+ ae(h);
266
266
  }
267
- let nr;
268
- typeof HTMLElement == "function" && (nr = class extends HTMLElement {
267
+ let or;
268
+ typeof HTMLElement == "function" && (or = class extends HTMLElement {
269
269
  constructor(t, r, n) {
270
270
  super();
271
271
  /** The Svelte component constructor */
@@ -302,7 +302,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
302
302
  }
303
303
  }
304
304
  connectedCallback() {
305
- return xt(this, null, function* () {
305
+ return wt(this, null, function* () {
306
306
  if (this.$$cn = !0, !this.$$c) {
307
307
  let t = function(o) {
308
308
  return () => {
@@ -315,18 +315,18 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
315
315
  * @param {HTMLElement} target
316
316
  * @param {HTMLElement} [anchor]
317
317
  */
318
- m: function(u, l) {
319
- U(u, s, l);
318
+ m: function(l, u) {
319
+ D(l, s, u);
320
320
  },
321
- d: function(u) {
322
- u && R(s);
321
+ d: function(l) {
322
+ l && R(s);
323
323
  }
324
324
  };
325
325
  };
326
326
  };
327
327
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
328
328
  return;
329
- const r = {}, n = sn(this);
329
+ const r = {}, n = an(this);
330
330
  for (const o of this.$$s)
331
331
  o in n && (r[o] = [t(o)]);
332
332
  for (const o of this.attributes) {
@@ -337,7 +337,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
337
337
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
338
338
  this.$$c = new this.$$ctor({
339
339
  target: this.shadowRoot || this,
340
- props: Et(_t({}, this.$$d), {
340
+ props: St(xt({}, this.$$d), {
341
341
  $$slots: r,
342
342
  $$scope: {
343
343
  ctx: []
@@ -415,8 +415,8 @@ function be(e, t, r, n) {
415
415
  return t;
416
416
  }
417
417
  }
418
- function yn(e, t, r, n, i, o) {
419
- let s = class extends nr {
418
+ function _n(e, t, r, n, i, o) {
419
+ let s = class extends or {
420
420
  constructor() {
421
421
  super(e, r, i), this.$$p_d = t;
422
422
  }
@@ -432,8 +432,8 @@ function yn(e, t, r, n, i, o) {
432
432
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
433
433
  },
434
434
  set(h) {
435
- var u;
436
- h = be(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
435
+ var l;
436
+ h = be(a, h, t), this.$$d[a] = h, (l = this.$$c) == null || l.$set({ [a]: h });
437
437
  }
438
438
  });
439
439
  }), n.forEach((a) => {
@@ -446,7 +446,7 @@ function yn(e, t, r, n, i, o) {
446
446
  }), e.element = /** @type {any} */
447
447
  s, s;
448
448
  }
449
- class _n {
449
+ class En {
450
450
  constructor() {
451
451
  /**
452
452
  * ### PRIVATE API
@@ -467,7 +467,7 @@ class _n {
467
467
  }
468
468
  /** @returns {void} */
469
469
  $destroy() {
470
- bn(this, 1), this.$destroy = I;
470
+ gn(this, 1), this.$destroy = I;
471
471
  }
472
472
  /**
473
473
  * @template {Extract<keyof Events, string>} K
@@ -476,7 +476,7 @@ class _n {
476
476
  * @returns {() => void}
477
477
  */
478
478
  $on(t, r) {
479
- if (!it(r))
479
+ if (!ut(r))
480
480
  return I;
481
481
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
482
482
  return n.push(r), () => {
@@ -489,28 +489,28 @@ class _n {
489
489
  * @returns {void}
490
490
  */
491
491
  $set(t) {
492
- this.$$set && !Yr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
492
+ this.$$set && !Kr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
493
493
  }
494
494
  }
495
- const En = "4";
496
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(En);
495
+ const xn = "4";
496
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xn);
497
497
  const Q = [];
498
- function xn(e, t) {
498
+ function Sn(e, t) {
499
499
  return {
500
- subscribe: Ce(e, t).subscribe
500
+ subscribe: Pe(e, t).subscribe
501
501
  };
502
502
  }
503
- function Ce(e, t = I) {
503
+ function Pe(e, t = I) {
504
504
  let r;
505
505
  const n = /* @__PURE__ */ new Set();
506
506
  function i(a) {
507
- if (er(e, a) && (e = a, r)) {
507
+ if (rr(e, a) && (e = a, r)) {
508
508
  const h = !Q.length;
509
- for (const u of n)
510
- u[1](), Q.push(u, e);
509
+ for (const l of n)
510
+ l[1](), Q.push(l, e);
511
511
  if (h) {
512
- for (let u = 0; u < Q.length; u += 2)
513
- Q[u][0](Q[u + 1]);
512
+ for (let l = 0; l < Q.length; l += 2)
513
+ Q[l][0](Q[l + 1]);
514
514
  Q.length = 0;
515
515
  }
516
516
  }
@@ -519,160 +519,146 @@ function Ce(e, t = I) {
519
519
  i(a(e));
520
520
  }
521
521
  function s(a, h = I) {
522
- const u = [a, h];
523
- return n.add(u), n.size === 1 && (r = t(i, o) || I), a(e), () => {
524
- n.delete(u), n.size === 0 && r && (r(), r = null);
522
+ const l = [a, h];
523
+ return n.add(l), n.size === 1 && (r = t(i, o) || I), a(e), () => {
524
+ n.delete(l), n.size === 0 && r && (r(), r = null);
525
525
  };
526
526
  }
527
527
  return { set: i, update: o, subscribe: s };
528
528
  }
529
- function ie(e, t, r) {
529
+ function ne(e, t, r) {
530
530
  const n = !Array.isArray(e), i = n ? [e] : e;
531
531
  if (!i.every(Boolean))
532
532
  throw new Error("derived() expects stores as input, got a falsy value");
533
533
  const o = t.length < 2;
534
- return xn(r, (s, a) => {
534
+ return Sn(r, (s, a) => {
535
535
  let h = !1;
536
- const u = [];
537
- let l = 0, f = I;
536
+ const l = [];
537
+ let u = 0, f = I;
538
538
  const c = () => {
539
- if (l)
539
+ if (u)
540
540
  return;
541
541
  f();
542
- const m = t(n ? u[0] : u, s, a);
543
- o ? s(m) : f = it(m) ? m : I;
542
+ const m = t(n ? l[0] : l, s, a);
543
+ o ? s(m) : f = ut(m) ? m : I;
544
544
  }, d = i.map(
545
- (m, b) => tr(
545
+ (m, b) => nr(
546
546
  m,
547
547
  (g) => {
548
- u[b] = g, l &= ~(1 << b), h && c();
548
+ l[b] = g, u &= ~(1 << b), h && c();
549
549
  },
550
550
  () => {
551
- l |= 1 << b;
551
+ u |= 1 << b;
552
552
  }
553
553
  )
554
554
  );
555
555
  return h = !0, c(), function() {
556
- ne(d), f(), h = !1;
556
+ re(d), f(), h = !1;
557
557
  };
558
558
  });
559
559
  }
560
- function Sn(e) {
560
+ function wn(e) {
561
561
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
562
562
  }
563
- var wn = function(t) {
564
- return Tn(t) && !Hn(t);
563
+ var Tn = function(t) {
564
+ return Hn(t) && !Cn(t);
565
565
  };
566
- function Tn(e) {
566
+ function Hn(e) {
567
567
  return !!e && typeof e == "object";
568
568
  }
569
- function Hn(e) {
569
+ function Cn(e) {
570
570
  var t = Object.prototype.toString.call(e);
571
- return t === "[object RegExp]" || t === "[object Date]" || Bn(e);
572
- }
573
- var Cn = typeof Symbol == "function" && Symbol.for, Pn = Cn ? Symbol.for("react.element") : 60103;
574
- function Bn(e) {
575
- return e.$$typeof === Pn;
571
+ return t === "[object RegExp]" || t === "[object Date]" || An(e);
576
572
  }
573
+ var Pn = typeof Symbol == "function" && Symbol.for, Bn = Pn ? Symbol.for("react.element") : 60103;
577
574
  function An(e) {
575
+ return e.$$typeof === Bn;
576
+ }
577
+ function On(e) {
578
578
  return Array.isArray(e) ? [] : {};
579
579
  }
580
- function he(e, t) {
581
- return t.clone !== !1 && t.isMergeableObject(e) ? K(An(e), e, t) : e;
580
+ function le(e, t) {
581
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y(On(e), e, t) : e;
582
582
  }
583
- function On(e, t, r) {
583
+ function Ln(e, t, r) {
584
584
  return e.concat(t).map(function(n) {
585
- return he(n, r);
585
+ return le(n, r);
586
586
  });
587
587
  }
588
- function Ln(e, t) {
588
+ function In(e, t) {
589
589
  if (!t.customMerge)
590
- return K;
590
+ return Y;
591
591
  var r = t.customMerge(e);
592
- return typeof r == "function" ? r : K;
592
+ return typeof r == "function" ? r : Y;
593
593
  }
594
- function In(e) {
594
+ function Nn(e) {
595
595
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
596
596
  return Object.propertyIsEnumerable.call(e, t);
597
597
  }) : [];
598
598
  }
599
- function Tt(e) {
600
- return Object.keys(e).concat(In(e));
599
+ function Ct(e) {
600
+ return Object.keys(e).concat(Nn(e));
601
601
  }
602
- function ir(e, t) {
602
+ function sr(e, t) {
603
603
  try {
604
604
  return t in e;
605
605
  } catch (r) {
606
606
  return !1;
607
607
  }
608
608
  }
609
- function Nn(e, t) {
610
- return ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
609
+ function Mn(e, t) {
610
+ return sr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
611
611
  }
612
- function Mn(e, t, r) {
612
+ function Rn(e, t, r) {
613
613
  var n = {};
614
- return r.isMergeableObject(e) && Tt(e).forEach(function(i) {
615
- n[i] = he(e[i], r);
616
- }), Tt(t).forEach(function(i) {
617
- Nn(e, i) || (ir(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ln(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
614
+ return r.isMergeableObject(e) && Ct(e).forEach(function(i) {
615
+ n[i] = le(e[i], r);
616
+ }), Ct(t).forEach(function(i) {
617
+ Mn(e, i) || (sr(e, i) && r.isMergeableObject(t[i]) ? n[i] = In(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
618
618
  }), n;
619
619
  }
620
- function K(e, t, r) {
621
- r = r || {}, r.arrayMerge = r.arrayMerge || On, r.isMergeableObject = r.isMergeableObject || wn, r.cloneUnlessOtherwiseSpecified = he;
620
+ function Y(e, t, r) {
621
+ r = r || {}, r.arrayMerge = r.arrayMerge || Ln, r.isMergeableObject = r.isMergeableObject || Tn, r.cloneUnlessOtherwiseSpecified = le;
622
622
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
623
- return o ? n ? r.arrayMerge(e, t, r) : Mn(e, t, r) : he(t, r);
623
+ return o ? n ? r.arrayMerge(e, t, r) : Rn(e, t, r) : le(t, r);
624
624
  }
625
- K.all = function(t, r) {
625
+ Y.all = function(t, r) {
626
626
  if (!Array.isArray(t))
627
627
  throw new Error("first argument should be an array");
628
628
  return t.reduce(function(n, i) {
629
- return K(n, i, r);
629
+ return Y(n, i, r);
630
630
  }, {});
631
631
  };
632
- var Rn = K, $n = Rn;
633
- const Gn = /* @__PURE__ */ Sn($n);
634
- /*! *****************************************************************************
635
- Copyright (c) Microsoft Corporation.
636
-
637
- Permission to use, copy, modify, and/or distribute this software for any
638
- purpose with or without fee is hereby granted.
639
-
640
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
641
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
642
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
643
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
644
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
645
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
646
- PERFORMANCE OF THIS SOFTWARE.
647
- ***************************************************************************** */
648
- var Xe = function(e, t) {
649
- return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
632
+ var $n = Y, Gn = $n;
633
+ const Un = /* @__PURE__ */ wn(Gn);
634
+ var ze = function(e, t) {
635
+ return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
650
636
  r.__proto__ = n;
651
637
  } || function(r, n) {
652
638
  for (var i in n)
653
639
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
654
- }, Xe(e, t);
640
+ }, ze(e, t);
655
641
  };
656
- function j(e, t) {
642
+ function Be(e, t) {
657
643
  if (typeof t != "function" && t !== null)
658
644
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
659
- Xe(e, t);
645
+ ze(e, t);
660
646
  function r() {
661
647
  this.constructor = e;
662
648
  }
663
649
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
664
650
  }
665
- var _ = function() {
666
- return _ = Object.assign || function(t) {
651
+ var U = function() {
652
+ return U = Object.assign || function(t) {
667
653
  for (var r, n = 1, i = arguments.length; n < i; n++) {
668
654
  r = arguments[n];
669
655
  for (var o in r)
670
656
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
671
657
  }
672
658
  return t;
673
- }, _.apply(this, arguments);
659
+ }, U.apply(this, arguments);
674
660
  };
675
- function Un(e, t) {
661
+ function Dn(e, t) {
676
662
  var r = {};
677
663
  for (var n in e)
678
664
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -681,143 +667,119 @@ function Un(e, t) {
681
667
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
682
668
  return r;
683
669
  }
684
- function We(e) {
685
- var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
686
- if (r)
687
- return r.call(e);
688
- if (e && typeof e.length == "number")
689
- return {
690
- next: function() {
691
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
692
- }
693
- };
694
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
695
- }
696
- function ze(e, t) {
697
- var r = typeof Symbol == "function" && e[Symbol.iterator];
698
- if (!r)
699
- return e;
700
- var n = r.call(e), i, o = [], s;
701
- try {
702
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
703
- o.push(i.value);
704
- } catch (a) {
705
- s = { error: a };
706
- } finally {
707
- try {
708
- i && !i.done && (r = n.return) && r.call(n);
709
- } finally {
710
- if (s)
711
- throw s.error;
712
- }
713
- }
714
- return o;
715
- }
716
- function Y(e, t, r) {
670
+ function Ge(e, t, r) {
717
671
  if (r || arguments.length === 2)
718
672
  for (var n = 0, i = t.length, o; n < i; n++)
719
673
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
720
- return e.concat(o || t);
674
+ return e.concat(o || Array.prototype.slice.call(t));
721
675
  }
722
- function Re(e, t) {
723
- var r = t && t.cache ? t.cache : Xn, n = t && t.serializer ? t.serializer : Vn, i = t && t.strategy ? t.strategy : Fn;
676
+ function Ue(e, t) {
677
+ var r = t && t.cache ? t.cache : zn, n = t && t.serializer ? t.serializer : Xn, i = t && t.strategy ? t.strategy : kn;
724
678
  return i(e, {
725
679
  cache: r,
726
680
  serializer: n
727
681
  });
728
682
  }
729
- function Dn(e) {
683
+ function Fn(e) {
730
684
  return e == null || typeof e == "number" || typeof e == "boolean";
731
685
  }
732
- function or(e, t, r, n) {
733
- var i = Dn(n) ? n : r(n), o = t.get(i);
686
+ function jn(e, t, r, n) {
687
+ var i = Fn(n) ? n : r(n), o = t.get(i);
734
688
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
735
689
  }
736
- function sr(e, t, r) {
690
+ function ar(e, t, r) {
737
691
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
738
692
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
739
693
  }
740
- function st(e, t, r, n, i) {
694
+ function ur(e, t, r, n, i) {
741
695
  return r.bind(t, e, n, i);
742
696
  }
743
- function Fn(e, t) {
744
- var r = e.length === 1 ? or : sr;
745
- return st(e, this, r, t.cache.create(), t.serializer);
746
- }
747
- function jn(e, t) {
748
- return st(e, this, sr, t.cache.create(), t.serializer);
749
- }
750
697
  function kn(e, t) {
751
- return st(e, this, or, t.cache.create(), t.serializer);
698
+ var r = e.length === 1 ? jn : ar;
699
+ return ur(e, this, r, t.cache.create(), t.serializer);
752
700
  }
753
- var Vn = function() {
754
- return JSON.stringify(arguments);
755
- };
756
- function at() {
757
- this.cache = /* @__PURE__ */ Object.create(null);
701
+ function Vn(e, t) {
702
+ return ur(e, this, ar, t.cache.create(), t.serializer);
758
703
  }
759
- at.prototype.get = function(e) {
760
- return this.cache[e];
761
- };
762
- at.prototype.set = function(e, t) {
763
- this.cache[e] = t;
764
- };
765
- var Xn = {
704
+ var Xn = function() {
705
+ return JSON.stringify(arguments);
706
+ }, Wn = (
707
+ /** @class */
708
+ function() {
709
+ function e() {
710
+ this.cache = /* @__PURE__ */ Object.create(null);
711
+ }
712
+ return e.prototype.get = function(t) {
713
+ return this.cache[t];
714
+ }, e.prototype.set = function(t, r) {
715
+ this.cache[t] = r;
716
+ }, e;
717
+ }()
718
+ ), zn = {
766
719
  create: function() {
767
- return new at();
720
+ return new Wn();
768
721
  }
769
- }, $e = {
770
- variadic: jn,
771
- monadic: kn
772
- }, v;
722
+ }, De = {
723
+ variadic: Vn
724
+ }, we = function() {
725
+ return we = Object.assign || function(t) {
726
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
727
+ r = arguments[n];
728
+ for (var o in r)
729
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
730
+ }
731
+ return t;
732
+ }, we.apply(this, arguments);
733
+ };
734
+ var v;
773
735
  (function(e) {
774
736
  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";
775
737
  })(v || (v = {}));
776
- var S;
738
+ var x;
777
739
  (function(e) {
778
740
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
779
- })(S || (S = {}));
780
- var ee;
741
+ })(x || (x = {}));
742
+ var K;
781
743
  (function(e) {
782
744
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
783
- })(ee || (ee = {}));
784
- function Ht(e) {
785
- return e.type === S.literal;
786
- }
787
- function Wn(e) {
788
- return e.type === S.argument;
745
+ })(K || (K = {}));
746
+ function Pt(e) {
747
+ return e.type === x.literal;
789
748
  }
790
- function ar(e) {
791
- return e.type === S.number;
749
+ function Zn(e) {
750
+ return e.type === x.argument;
792
751
  }
793
752
  function lr(e) {
794
- return e.type === S.date;
795
- }
796
- function ur(e) {
797
- return e.type === S.time;
753
+ return e.type === x.number;
798
754
  }
799
755
  function hr(e) {
800
- return e.type === S.select;
756
+ return e.type === x.date;
801
757
  }
802
758
  function cr(e) {
803
- return e.type === S.plural;
804
- }
805
- function zn(e) {
806
- return e.type === S.pound;
759
+ return e.type === x.time;
807
760
  }
808
761
  function fr(e) {
809
- return e.type === S.tag;
762
+ return e.type === x.select;
810
763
  }
811
764
  function dr(e) {
812
- return !!(e && typeof e == "object" && e.type === ee.number);
765
+ return e.type === x.plural;
766
+ }
767
+ function Qn(e) {
768
+ return e.type === x.pound;
769
+ }
770
+ function pr(e) {
771
+ return e.type === x.tag;
772
+ }
773
+ function mr(e) {
774
+ return !!(e && typeof e == "object" && e.type === K.number);
813
775
  }
814
776
  function Ze(e) {
815
- return !!(e && typeof e == "object" && e.type === ee.dateTime);
777
+ return !!(e && typeof e == "object" && e.type === K.dateTime);
816
778
  }
817
- var pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Zn = /(?:[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;
818
- function Qn(e) {
779
+ var br = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Jn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
780
+ function qn(e) {
819
781
  var t = {};
820
- return e.replace(Zn, function(r) {
782
+ return e.replace(Jn, function(r) {
821
783
  var n = r.length;
822
784
  switch (r[0]) {
823
785
  case "G":
@@ -906,18 +868,28 @@ function Qn(e) {
906
868
  return "";
907
869
  }), t;
908
870
  }
909
- var qn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
910
- function Jn(e) {
871
+ var S = function() {
872
+ return S = Object.assign || function(t) {
873
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
874
+ r = arguments[n];
875
+ for (var o in r)
876
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
877
+ }
878
+ return t;
879
+ }, S.apply(this, arguments);
880
+ };
881
+ var Yn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
882
+ function Kn(e) {
911
883
  if (e.length === 0)
912
884
  throw new Error("Number skeleton cannot be empty");
913
- for (var t = e.split(qn).filter(function(c) {
885
+ for (var t = e.split(Yn).filter(function(c) {
914
886
  return c.length > 0;
915
887
  }), r = [], n = 0, i = t; n < i.length; n++) {
916
888
  var o = i[n], s = o.split("/");
917
889
  if (s.length === 0)
918
890
  throw new Error("Invalid number skeleton");
919
- for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
920
- var f = l[u];
891
+ for (var a = s[0], h = s.slice(1), l = 0, u = h; l < u.length; l++) {
892
+ var f = u[l];
921
893
  if (f.length === 0)
922
894
  throw new Error("Invalid number skeleton");
923
895
  }
@@ -925,17 +897,17 @@ function Jn(e) {
925
897
  }
926
898
  return r;
927
899
  }
928
- function Yn(e) {
900
+ function ei(e) {
929
901
  return e.replace(/^(.*?)-/, "");
930
902
  }
931
- var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mr = /^(@+)?(\+|#+)?[rs]?$/g, Kn = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
932
- function Pt(e) {
903
+ var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, gr = /^(@+)?(\+|#+)?[rs]?$/g, ti = /(\*)(0+)|(#+)(0+)|(0+)/g, vr = /^(0+)$/;
904
+ function At(e) {
933
905
  var t = {};
934
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mr, function(r, n, i) {
906
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(gr, function(r, n, i) {
935
907
  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)), "";
936
908
  }), t;
937
909
  }
938
- function gr(e) {
910
+ function yr(e) {
939
911
  switch (e) {
940
912
  case "sign-auto":
941
913
  return {
@@ -975,7 +947,7 @@ function gr(e) {
975
947
  };
976
948
  }
977
949
  }
978
- function ei(e) {
950
+ function ri(e) {
979
951
  var t;
980
952
  if (e[0] === "E" && e[1] === "E" ? (t = {
981
953
  notation: "engineering"
@@ -983,17 +955,17 @@ function ei(e) {
983
955
  notation: "scientific"
984
956
  }, e = e.slice(1)), t) {
985
957
  var r = e.slice(0, 2);
986
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !br.test(e))
958
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !vr.test(e))
987
959
  throw new Error("Malformed concise eng/scientific notation");
988
960
  t.minimumIntegerDigits = e.length;
989
961
  }
990
962
  return t;
991
963
  }
992
- function Bt(e) {
993
- var t = {}, r = gr(e);
964
+ function Ot(e) {
965
+ var t = {}, r = yr(e);
994
966
  return r || t;
995
967
  }
996
- function ti(e) {
968
+ function ni(e) {
997
969
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
998
970
  var i = n[r];
999
971
  switch (i.stem) {
@@ -1017,7 +989,7 @@ function ti(e) {
1017
989
  continue;
1018
990
  case "measure-unit":
1019
991
  case "unit":
1020
- t.style = "unit", t.unit = Yn(i.options[0]);
992
+ t.style = "unit", t.unit = ei(i.options[0]);
1021
993
  continue;
1022
994
  case "compact-short":
1023
995
  case "K":
@@ -1028,13 +1000,13 @@ function ti(e) {
1028
1000
  t.notation = "compact", t.compactDisplay = "long";
1029
1001
  continue;
1030
1002
  case "scientific":
1031
- t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1032
- return _(_({}, h), Bt(u));
1003
+ t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
1004
+ return S(S({}, h), Ot(l));
1033
1005
  }, {}));
1034
1006
  continue;
1035
1007
  case "engineering":
1036
- t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1037
- return _(_({}, h), Bt(u));
1008
+ t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
1009
+ return S(S({}, h), Ot(l));
1038
1010
  }, {}));
1039
1011
  continue;
1040
1012
  case "notation-simple":
@@ -1079,9 +1051,9 @@ function ti(e) {
1079
1051
  case "integer-width":
1080
1052
  if (i.options.length > 1)
1081
1053
  throw new RangeError("integer-width stems only accept a single optional option");
1082
- i.options[0].replace(Kn, function(h, u, l, f, c, d) {
1083
- if (u)
1084
- t.minimumIntegerDigits = l.length;
1054
+ i.options[0].replace(ti, function(h, l, u, f, c, d) {
1055
+ if (l)
1056
+ t.minimumIntegerDigits = u.length;
1085
1057
  else {
1086
1058
  if (f && c)
1087
1059
  throw new Error("We currently do not support maximum integer digits");
@@ -1092,28 +1064,28 @@ function ti(e) {
1092
1064
  });
1093
1065
  continue;
1094
1066
  }
1095
- if (br.test(i.stem)) {
1067
+ if (vr.test(i.stem)) {
1096
1068
  t.minimumIntegerDigits = i.stem.length;
1097
1069
  continue;
1098
1070
  }
1099
- if (Ct.test(i.stem)) {
1071
+ if (Bt.test(i.stem)) {
1100
1072
  if (i.options.length > 1)
1101
1073
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1102
- i.stem.replace(Ct, function(h, u, l, f, c, d) {
1103
- return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1074
+ i.stem.replace(Bt, function(h, l, u, f, c, d) {
1075
+ return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1104
1076
  });
1105
1077
  var o = i.options[0];
1106
- o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), Pt(o)));
1078
+ o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), At(o)));
1107
1079
  continue;
1108
1080
  }
1109
- if (mr.test(i.stem)) {
1110
- t = _(_({}, t), Pt(i.stem));
1081
+ if (gr.test(i.stem)) {
1082
+ t = S(S({}, t), At(i.stem));
1111
1083
  continue;
1112
1084
  }
1113
- var s = gr(i.stem);
1114
- s && (t = _(_({}, t), s));
1115
- var a = ei(i.stem);
1116
- a && (t = _(_({}, t), a));
1085
+ var s = yr(i.stem);
1086
+ s && (t = S(S({}, t), s));
1087
+ var a = ri(i.stem);
1088
+ a && (t = S(S({}, t), a));
1117
1089
  }
1118
1090
  return t;
1119
1091
  }
@@ -2532,23 +2504,23 @@ var pe = {
2532
2504
  "h"
2533
2505
  ]
2534
2506
  };
2535
- function ri(e, t) {
2507
+ function ii(e, t) {
2536
2508
  for (var r = "", n = 0; n < e.length; n++) {
2537
2509
  var i = e.charAt(n);
2538
2510
  if (i === "j") {
2539
2511
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2540
2512
  o++, n++;
2541
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = ni(t);
2542
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2513
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = oi(t);
2514
+ for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2543
2515
  r += h;
2544
2516
  for (; s-- > 0; )
2545
- r = u + r;
2517
+ r = l + r;
2546
2518
  } else
2547
2519
  i === "J" ? r += "H" : r += i;
2548
2520
  }
2549
2521
  return r;
2550
2522
  }
2551
- function ni(e) {
2523
+ function oi(e) {
2552
2524
  var t = e.hourCycle;
2553
2525
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2554
2526
  e.hourCycles && // @ts-ignore
@@ -2570,20 +2542,20 @@ function ni(e) {
2570
2542
  var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
2571
2543
  return i[0];
2572
2544
  }
2573
- var Ge, ii = new RegExp("^".concat(pr.source, "*")), oi = new RegExp("".concat(pr.source, "*$"));
2545
+ var Fe, si = new RegExp("^".concat(br.source, "*")), ai = new RegExp("".concat(br.source, "*$"));
2574
2546
  function y(e, t) {
2575
2547
  return { start: e, end: t };
2576
2548
  }
2577
- var si = !!String.prototype.startsWith && "_a".startsWith("a", 1), ai = !!String.fromCodePoint, li = !!Object.fromEntries, ui = !!String.prototype.codePointAt, hi = !!String.prototype.trimStart, ci = !!String.prototype.trimEnd, fi = !!Number.isSafeInteger, di = fi ? Number.isSafeInteger : function(e) {
2549
+ var ui = !!String.prototype.startsWith && "_a".startsWith("a", 1), li = !!String.fromCodePoint, hi = !!Object.fromEntries, ci = !!String.prototype.codePointAt, fi = !!String.prototype.trimStart, di = !!String.prototype.trimEnd, pi = !!Number.isSafeInteger, mi = pi ? Number.isSafeInteger : function(e) {
2578
2550
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2579
2551
  }, Qe = !0;
2580
2552
  try {
2581
- var pi = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2582
- Qe = ((Ge = pi.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
2553
+ var bi = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2554
+ Qe = ((Fe = bi.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
2583
2555
  } catch (e) {
2584
2556
  Qe = !1;
2585
2557
  }
2586
- var At = si ? (
2558
+ var Lt = ui ? (
2587
2559
  // Native
2588
2560
  function(t, r, n) {
2589
2561
  return t.startsWith(r, n);
@@ -2593,7 +2565,7 @@ var At = si ? (
2593
2565
  function(t, r, n) {
2594
2566
  return t.slice(n, n + r.length) === r;
2595
2567
  }
2596
- ), qe = ai ? String.fromCodePoint : (
2568
+ ), Je = li ? String.fromCodePoint : (
2597
2569
  // IE11
2598
2570
  function() {
2599
2571
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2605,9 +2577,9 @@ var At = si ? (
2605
2577
  }
2606
2578
  return n;
2607
2579
  }
2608
- ), Ot = (
2580
+ ), It = (
2609
2581
  // native
2610
- li ? Object.fromEntries : (
2582
+ hi ? Object.fromEntries : (
2611
2583
  // Ponyfill
2612
2584
  function(t) {
2613
2585
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2617,7 +2589,7 @@ var At = si ? (
2617
2589
  return r;
2618
2590
  }
2619
2591
  )
2620
- ), vr = ui ? (
2592
+ ), _r = ci ? (
2621
2593
  // Native
2622
2594
  function(t, r) {
2623
2595
  return t.codePointAt(r);
@@ -2631,7 +2603,7 @@ var At = si ? (
2631
2603
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2632
2604
  }
2633
2605
  }
2634
- ), mi = hi ? (
2606
+ ), gi = fi ? (
2635
2607
  // Native
2636
2608
  function(t) {
2637
2609
  return t.trimStart();
@@ -2639,9 +2611,9 @@ var At = si ? (
2639
2611
  ) : (
2640
2612
  // Ponyfill
2641
2613
  function(t) {
2642
- return t.replace(ii, "");
2614
+ return t.replace(si, "");
2643
2615
  }
2644
- ), bi = ci ? (
2616
+ ), vi = di ? (
2645
2617
  // Native
2646
2618
  function(t) {
2647
2619
  return t.trimEnd();
@@ -2649,32 +2621,32 @@ var At = si ? (
2649
2621
  ) : (
2650
2622
  // Ponyfill
2651
2623
  function(t) {
2652
- return t.replace(oi, "");
2624
+ return t.replace(ai, "");
2653
2625
  }
2654
2626
  );
2655
- function yr(e, t) {
2627
+ function Er(e, t) {
2656
2628
  return new RegExp(e, t);
2657
2629
  }
2658
- var Je;
2630
+ var qe;
2659
2631
  if (Qe) {
2660
- var Lt = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2661
- Je = function(t, r) {
2632
+ var Nt = Er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2633
+ qe = function(t, r) {
2662
2634
  var n;
2663
- Lt.lastIndex = r;
2664
- var i = Lt.exec(t);
2635
+ Nt.lastIndex = r;
2636
+ var i = Nt.exec(t);
2665
2637
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2666
2638
  };
2667
2639
  } else
2668
- Je = function(t, r) {
2640
+ qe = function(t, r) {
2669
2641
  for (var n = []; ; ) {
2670
- var i = vr(t, r);
2671
- if (i === void 0 || _r(i) || _i(i))
2642
+ var i = _r(t, r);
2643
+ if (i === void 0 || xr(i) || xi(i))
2672
2644
  break;
2673
2645
  n.push(i), r += i >= 65536 ? 2 : 1;
2674
2646
  }
2675
- return qe.apply(void 0, n);
2647
+ return Je.apply(void 0, n);
2676
2648
  };
2677
- var gi = (
2649
+ var yi = (
2678
2650
  /** @class */
2679
2651
  function() {
2680
2652
  function e(t, r) {
@@ -2698,7 +2670,7 @@ var gi = (
2698
2670
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
2699
2671
  var a = this.clonePosition();
2700
2672
  this.bump(), i.push({
2701
- type: S.pound,
2673
+ type: x.pound,
2702
2674
  location: y(a, this.clonePosition())
2703
2675
  });
2704
2676
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
@@ -2726,7 +2698,7 @@ var gi = (
2726
2698
  if (this.bumpSpace(), this.bumpIf("/>"))
2727
2699
  return {
2728
2700
  val: {
2729
- type: S.literal,
2701
+ type: x.literal,
2730
2702
  value: "<".concat(i, "/>"),
2731
2703
  location: y(n, this.clonePosition())
2732
2704
  },
@@ -2740,10 +2712,10 @@ var gi = (
2740
2712
  if (this.bumpIf("</")) {
2741
2713
  if (this.isEOF() || !Ye(this.char()))
2742
2714
  return this.error(v.INVALID_TAG, y(a, this.clonePosition()));
2743
- var h = this.clonePosition(), u = this.parseTagName();
2744
- return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2715
+ var h = this.clonePosition(), l = this.parseTagName();
2716
+ return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2745
2717
  val: {
2746
- type: S.tag,
2718
+ type: x.tag,
2747
2719
  value: i,
2748
2720
  children: s,
2749
2721
  location: y(n, this.clonePosition())
@@ -2756,7 +2728,7 @@ var gi = (
2756
2728
  return this.error(v.INVALID_TAG, y(n, this.clonePosition()));
2757
2729
  }, e.prototype.parseTagName = function() {
2758
2730
  var t = this.offset();
2759
- for (this.bump(); !this.isEOF() && yi(this.char()); )
2731
+ for (this.bump(); !this.isEOF() && Ei(this.char()); )
2760
2732
  this.bump();
2761
2733
  return this.message.slice(t, this.offset());
2762
2734
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2780,12 +2752,12 @@ var gi = (
2780
2752
  }
2781
2753
  var h = y(n, this.clonePosition());
2782
2754
  return {
2783
- val: { type: S.literal, value: i, location: h },
2755
+ val: { type: x.literal, value: i, location: h },
2784
2756
  err: null
2785
2757
  };
2786
2758
  }, e.prototype.tryParseLeftAngleBracket = function() {
2787
2759
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2788
- !vi(this.peek() || 0)) ? (this.bump(), "<") : null;
2760
+ !_i(this.peek() || 0)) ? (this.bump(), "<") : null;
2789
2761
  }, e.prototype.tryParseQuote = function(t) {
2790
2762
  if (this.isEOF() || this.char() !== 39)
2791
2763
  return null;
@@ -2819,12 +2791,12 @@ var gi = (
2819
2791
  r.push(n);
2820
2792
  this.bump();
2821
2793
  }
2822
- return qe.apply(void 0, r);
2794
+ return Je.apply(void 0, r);
2823
2795
  }, e.prototype.tryParseUnquoted = function(t, r) {
2824
2796
  if (this.isEOF())
2825
2797
  return null;
2826
2798
  var n = this.char();
2827
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
2799
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Je(n));
2828
2800
  }, e.prototype.parseArgument = function(t, r) {
2829
2801
  var n = this.clonePosition();
2830
2802
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2840,7 +2812,7 @@ var gi = (
2840
2812
  case 125:
2841
2813
  return this.bump(), {
2842
2814
  val: {
2843
- type: S.argument,
2815
+ type: x.argument,
2844
2816
  // value does not include the opening and closing braces.
2845
2817
  value: i,
2846
2818
  location: y(n, this.clonePosition())
@@ -2853,7 +2825,7 @@ var gi = (
2853
2825
  return this.error(v.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
2854
2826
  }
2855
2827
  }, e.prototype.parseIdentifierIfPossible = function() {
2856
- var t = this.clonePosition(), r = this.offset(), n = Je(this.message, r), i = r + n.length;
2828
+ var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
2857
2829
  this.bumpTo(i);
2858
2830
  var o = this.clonePosition(), s = y(t, o);
2859
2831
  return { value: n, location: s };
@@ -2866,53 +2838,53 @@ var gi = (
2866
2838
  case "date":
2867
2839
  case "time": {
2868
2840
  this.bumpSpace();
2869
- var u = null;
2841
+ var l = null;
2870
2842
  if (this.bumpIf(",")) {
2871
2843
  this.bumpSpace();
2872
- var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2844
+ var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2873
2845
  if (f.err)
2874
2846
  return f;
2875
- var c = bi(f.val);
2847
+ var c = vi(f.val);
2876
2848
  if (c.length === 0)
2877
2849
  return this.error(v.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
2878
- var d = y(l, this.clonePosition());
2879
- u = { style: c, styleLocation: d };
2850
+ var d = y(u, this.clonePosition());
2851
+ l = { style: c, styleLocation: d };
2880
2852
  }
2881
2853
  var m = this.tryParseArgumentClose(i);
2882
2854
  if (m.err)
2883
2855
  return m;
2884
2856
  var b = y(i, this.clonePosition());
2885
- if (u && At(u == null ? void 0 : u.style, "::", 0)) {
2886
- var g = mi(u.style.slice(2));
2857
+ if (l && Lt(l == null ? void 0 : l.style, "::", 0)) {
2858
+ var g = gi(l.style.slice(2));
2887
2859
  if (a === "number") {
2888
- var f = this.parseNumberSkeletonFromString(g, u.styleLocation);
2860
+ var f = this.parseNumberSkeletonFromString(g, l.styleLocation);
2889
2861
  return f.err ? f : {
2890
- val: { type: S.number, value: n, location: b, style: f.val },
2862
+ val: { type: x.number, value: n, location: b, style: f.val },
2891
2863
  err: null
2892
2864
  };
2893
2865
  } else {
2894
2866
  if (g.length === 0)
2895
2867
  return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
2896
- var E = g;
2897
- this.locale && (E = ri(g, this.locale));
2868
+ var _ = g;
2869
+ this.locale && (_ = ii(g, this.locale));
2898
2870
  var c = {
2899
- type: ee.dateTime,
2900
- pattern: E,
2901
- location: u.styleLocation,
2902
- parsedOptions: this.shouldParseSkeletons ? Qn(E) : {}
2903
- }, x = a === "date" ? S.date : S.time;
2871
+ type: K.dateTime,
2872
+ pattern: _,
2873
+ location: l.styleLocation,
2874
+ parsedOptions: this.shouldParseSkeletons ? qn(_) : {}
2875
+ }, E = a === "date" ? x.date : x.time;
2904
2876
  return {
2905
- val: { type: x, value: n, location: b, style: c },
2877
+ val: { type: E, value: n, location: b, style: c },
2906
2878
  err: null
2907
2879
  };
2908
2880
  }
2909
2881
  }
2910
2882
  return {
2911
2883
  val: {
2912
- type: a === "number" ? S.number : a === "date" ? S.date : S.time,
2884
+ type: a === "number" ? x.number : a === "date" ? x.date : x.time,
2913
2885
  value: n,
2914
2886
  location: b,
2915
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
2887
+ style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
2916
2888
  },
2917
2889
  err: null
2918
2890
  };
@@ -2922,7 +2894,7 @@ var gi = (
2922
2894
  case "select": {
2923
2895
  var w = this.clonePosition();
2924
2896
  if (this.bumpSpace(), !this.bumpIf(","))
2925
- return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(w, _({}, w)));
2897
+ return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, y(w, we({}, w)));
2926
2898
  this.bumpSpace();
2927
2899
  var T = this.parseIdentifierIfPossible(), O = 0;
2928
2900
  if (a !== "select" && T.value === "offset") {
@@ -2943,17 +2915,17 @@ var gi = (
2943
2915
  var z = y(i, this.clonePosition());
2944
2916
  return a === "select" ? {
2945
2917
  val: {
2946
- type: S.select,
2918
+ type: x.select,
2947
2919
  value: n,
2948
- options: Ot(V.val),
2920
+ options: It(V.val),
2949
2921
  location: z
2950
2922
  },
2951
2923
  err: null
2952
2924
  } : {
2953
2925
  val: {
2954
- type: S.plural,
2926
+ type: x.plural,
2955
2927
  value: n,
2956
- options: Ot(V.val),
2928
+ options: It(V.val),
2957
2929
  offset: O,
2958
2930
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2959
2931
  location: z
@@ -3004,34 +2976,34 @@ var gi = (
3004
2976
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3005
2977
  var n = [];
3006
2978
  try {
3007
- n = Jn(t);
2979
+ n = Kn(t);
3008
2980
  } catch (i) {
3009
2981
  return this.error(v.INVALID_NUMBER_SKELETON, r);
3010
2982
  }
3011
2983
  return {
3012
2984
  val: {
3013
- type: ee.number,
2985
+ type: K.number,
3014
2986
  tokens: n,
3015
2987
  location: r,
3016
- parsedOptions: this.shouldParseSkeletons ? ti(n) : {}
2988
+ parsedOptions: this.shouldParseSkeletons ? ni(n) : {}
3017
2989
  },
3018
2990
  err: null
3019
2991
  };
3020
2992
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3021
- for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3022
- if (u.length === 0) {
2993
+ for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
2994
+ if (l.length === 0) {
3023
2995
  var f = this.clonePosition();
3024
2996
  if (r !== "select" && this.bumpIf("=")) {
3025
2997
  var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
3026
2998
  if (c.err)
3027
2999
  return c;
3028
- l = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3000
+ u = y(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
3029
3001
  } else
3030
3002
  break;
3031
3003
  }
3032
- if (h.has(u))
3033
- return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3034
- u === "other" && (s = !0), this.bumpSpace();
3004
+ if (h.has(l))
3005
+ return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3006
+ l === "other" && (s = !0), this.bumpSpace();
3035
3007
  var d = this.clonePosition();
3036
3008
  if (!this.bumpIf("{"))
3037
3009
  return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
@@ -3042,12 +3014,12 @@ var gi = (
3042
3014
  if (b.err)
3043
3015
  return b;
3044
3016
  a.push([
3045
- u,
3017
+ l,
3046
3018
  {
3047
3019
  value: m.val,
3048
3020
  location: y(d, this.clonePosition())
3049
3021
  }
3050
- ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3022
+ ]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
3051
3023
  }
3052
3024
  return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3053
3025
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
@@ -3061,7 +3033,7 @@ var gi = (
3061
3033
  break;
3062
3034
  }
3063
3035
  var h = y(i, this.clonePosition());
3064
- return o ? (s *= n, di(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3036
+ return o ? (s *= n, mi(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3065
3037
  }, e.prototype.offset = function() {
3066
3038
  return this.position.offset;
3067
3039
  }, e.prototype.isEOF = function() {
@@ -3076,7 +3048,7 @@ var gi = (
3076
3048
  var t = this.position.offset;
3077
3049
  if (t >= this.message.length)
3078
3050
  throw Error("out of bound");
3079
- var r = vr(this.message, t);
3051
+ var r = _r(this.message, t);
3080
3052
  if (r === void 0)
3081
3053
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3082
3054
  return r;
@@ -3095,7 +3067,7 @@ var gi = (
3095
3067
  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);
3096
3068
  }
3097
3069
  }, e.prototype.bumpIf = function(t) {
3098
- if (At(this.message, t, this.offset())) {
3070
+ if (Lt(this.message, t, this.offset())) {
3099
3071
  for (var r = 0; r < t.length; r++)
3100
3072
  this.bump();
3101
3073
  return !0;
@@ -3117,7 +3089,7 @@ var gi = (
3117
3089
  break;
3118
3090
  }
3119
3091
  }, e.prototype.bumpSpace = function() {
3120
- for (; !this.isEOF() && _r(this.char()); )
3092
+ for (; !this.isEOF() && xr(this.char()); )
3121
3093
  this.bump();
3122
3094
  }, e.prototype.peek = function() {
3123
3095
  if (this.isEOF())
@@ -3130,44 +3102,44 @@ var gi = (
3130
3102
  function Ye(e) {
3131
3103
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3132
3104
  }
3133
- function vi(e) {
3105
+ function _i(e) {
3134
3106
  return Ye(e) || e === 47;
3135
3107
  }
3136
- function yi(e) {
3108
+ function Ei(e) {
3137
3109
  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;
3138
3110
  }
3139
- function _r(e) {
3111
+ function xr(e) {
3140
3112
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3141
3113
  }
3142
- function _i(e) {
3114
+ function xi(e) {
3143
3115
  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;
3144
3116
  }
3145
3117
  function Ke(e) {
3146
3118
  e.forEach(function(t) {
3147
- if (delete t.location, hr(t) || cr(t))
3119
+ if (delete t.location, fr(t) || dr(t))
3148
3120
  for (var r in t.options)
3149
3121
  delete t.options[r].location, Ke(t.options[r].value);
3150
3122
  else
3151
- ar(t) && dr(t.style) || (lr(t) || ur(t)) && Ze(t.style) ? delete t.style.location : fr(t) && Ke(t.children);
3123
+ lr(t) && mr(t.style) || (hr(t) || cr(t)) && Ze(t.style) ? delete t.style.location : pr(t) && Ke(t.children);
3152
3124
  });
3153
3125
  }
3154
- function Ei(e, t) {
3155
- t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3156
- var r = new gi(e, t).parse();
3126
+ function Si(e, t) {
3127
+ t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3128
+ var r = new yi(e, t).parse();
3157
3129
  if (r.err) {
3158
3130
  var n = SyntaxError(v[r.err.kind]);
3159
3131
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3160
3132
  }
3161
3133
  return t != null && t.captureLocation || Ke(r.val), r.val;
3162
3134
  }
3163
- var te;
3135
+ var ee;
3164
3136
  (function(e) {
3165
3137
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3166
- })(te || (te = {}));
3167
- var Pe = (
3138
+ })(ee || (ee = {}));
3139
+ var Ae = (
3168
3140
  /** @class */
3169
3141
  function(e) {
3170
- j(t, e);
3142
+ Be(t, e);
3171
3143
  function t(r, n, i) {
3172
3144
  var o = e.call(this, r) || this;
3173
3145
  return o.code = n, o.originalMessage = i, o;
@@ -3176,155 +3148,155 @@ var Pe = (
3176
3148
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3177
3149
  }, t;
3178
3150
  }(Error)
3179
- ), It = (
3151
+ ), Mt = (
3180
3152
  /** @class */
3181
3153
  function(e) {
3182
- j(t, e);
3154
+ Be(t, e);
3183
3155
  function t(r, n, i, o) {
3184
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
3156
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
3185
3157
  }
3186
3158
  return t;
3187
- }(Pe)
3188
- ), xi = (
3159
+ }(Ae)
3160
+ ), wi = (
3189
3161
  /** @class */
3190
3162
  function(e) {
3191
- j(t, e);
3163
+ Be(t, e);
3192
3164
  function t(r, n, i) {
3193
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
3165
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
3194
3166
  }
3195
3167
  return t;
3196
- }(Pe)
3197
- ), Si = (
3168
+ }(Ae)
3169
+ ), Ti = (
3198
3170
  /** @class */
3199
3171
  function(e) {
3200
- j(t, e);
3172
+ Be(t, e);
3201
3173
  function t(r, n) {
3202
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
3174
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
3203
3175
  }
3204
3176
  return t;
3205
- }(Pe)
3177
+ }(Ae)
3206
3178
  ), A;
3207
3179
  (function(e) {
3208
3180
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3209
3181
  })(A || (A = {}));
3210
- function wi(e) {
3182
+ function Hi(e) {
3211
3183
  return e.length < 2 ? e : e.reduce(function(t, r) {
3212
3184
  var n = t[t.length - 1];
3213
3185
  return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
3214
3186
  }, []);
3215
3187
  }
3216
- function Ti(e) {
3188
+ function Ci(e) {
3217
3189
  return typeof e == "function";
3218
3190
  }
3219
3191
  function ge(e, t, r, n, i, o, s) {
3220
- if (e.length === 1 && Ht(e[0]))
3192
+ if (e.length === 1 && Pt(e[0]))
3221
3193
  return [
3222
3194
  {
3223
3195
  type: A.literal,
3224
3196
  value: e[0].value
3225
3197
  }
3226
3198
  ];
3227
- for (var a = [], h = 0, u = e; h < u.length; h++) {
3228
- var l = u[h];
3229
- if (Ht(l)) {
3199
+ for (var a = [], h = 0, l = e; h < l.length; h++) {
3200
+ var u = l[h];
3201
+ if (Pt(u)) {
3230
3202
  a.push({
3231
3203
  type: A.literal,
3232
- value: l.value
3204
+ value: u.value
3233
3205
  });
3234
3206
  continue;
3235
3207
  }
3236
- if (zn(l)) {
3208
+ if (Qn(u)) {
3237
3209
  typeof o == "number" && a.push({
3238
3210
  type: A.literal,
3239
3211
  value: r.getNumberFormat(t).format(o)
3240
3212
  });
3241
3213
  continue;
3242
3214
  }
3243
- var f = l.value;
3215
+ var f = u.value;
3244
3216
  if (!(i && f in i))
3245
- throw new Si(f, s);
3217
+ throw new Ti(f, s);
3246
3218
  var c = i[f];
3247
- if (Wn(l)) {
3219
+ if (Zn(u)) {
3248
3220
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3249
3221
  type: typeof c == "string" ? A.literal : A.object,
3250
3222
  value: c
3251
3223
  });
3252
3224
  continue;
3253
3225
  }
3254
- if (lr(l)) {
3255
- var d = typeof l.style == "string" ? n.date[l.style] : Ze(l.style) ? l.style.parsedOptions : void 0;
3226
+ if (hr(u)) {
3227
+ var d = typeof u.style == "string" ? n.date[u.style] : Ze(u.style) ? u.style.parsedOptions : void 0;
3256
3228
  a.push({
3257
3229
  type: A.literal,
3258
3230
  value: r.getDateTimeFormat(t, d).format(c)
3259
3231
  });
3260
3232
  continue;
3261
3233
  }
3262
- if (ur(l)) {
3263
- var d = typeof l.style == "string" ? n.time[l.style] : Ze(l.style) ? l.style.parsedOptions : n.time.medium;
3234
+ if (cr(u)) {
3235
+ var d = typeof u.style == "string" ? n.time[u.style] : Ze(u.style) ? u.style.parsedOptions : n.time.medium;
3264
3236
  a.push({
3265
3237
  type: A.literal,
3266
3238
  value: r.getDateTimeFormat(t, d).format(c)
3267
3239
  });
3268
3240
  continue;
3269
3241
  }
3270
- if (ar(l)) {
3271
- var d = typeof l.style == "string" ? n.number[l.style] : dr(l.style) ? l.style.parsedOptions : void 0;
3242
+ if (lr(u)) {
3243
+ var d = typeof u.style == "string" ? n.number[u.style] : mr(u.style) ? u.style.parsedOptions : void 0;
3272
3244
  d && d.scale && (c = c * (d.scale || 1)), a.push({
3273
3245
  type: A.literal,
3274
3246
  value: r.getNumberFormat(t, d).format(c)
3275
3247
  });
3276
3248
  continue;
3277
3249
  }
3278
- if (fr(l)) {
3279
- var m = l.children, b = l.value, g = i[b];
3280
- if (!Ti(g))
3281
- throw new xi(b, "function", s);
3282
- var E = ge(m, t, r, n, i, o), x = g(E.map(function(O) {
3250
+ if (pr(u)) {
3251
+ var m = u.children, b = u.value, g = i[b];
3252
+ if (!Ci(g))
3253
+ throw new wi(b, "function", s);
3254
+ var _ = ge(m, t, r, n, i, o), E = g(_.map(function(O) {
3283
3255
  return O.value;
3284
3256
  }));
3285
- Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(O) {
3257
+ Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(O) {
3286
3258
  return {
3287
3259
  type: typeof O == "string" ? A.literal : A.object,
3288
3260
  value: O
3289
3261
  };
3290
3262
  }));
3291
3263
  }
3292
- if (hr(l)) {
3293
- var w = l.options[c] || l.options.other;
3264
+ if (fr(u)) {
3265
+ var w = u.options[c] || u.options.other;
3294
3266
  if (!w)
3295
- throw new It(l.value, c, Object.keys(l.options), s);
3267
+ throw new Mt(u.value, c, Object.keys(u.options), s);
3296
3268
  a.push.apply(a, ge(w.value, t, r, n, i));
3297
3269
  continue;
3298
3270
  }
3299
- if (cr(l)) {
3300
- var w = l.options["=".concat(c)];
3271
+ if (dr(u)) {
3272
+ var w = u.options["=".concat(c)];
3301
3273
  if (!w) {
3302
3274
  if (!Intl.PluralRules)
3303
- throw new Pe(`Intl.PluralRules is not available in this environment.
3275
+ throw new Ae(`Intl.PluralRules is not available in this environment.
3304
3276
  Try polyfilling it using "@formatjs/intl-pluralrules"
3305
- `, te.MISSING_INTL_API, s);
3306
- var T = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3307
- w = l.options[T] || l.options.other;
3277
+ `, ee.MISSING_INTL_API, s);
3278
+ var T = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
3279
+ w = u.options[T] || u.options.other;
3308
3280
  }
3309
3281
  if (!w)
3310
- throw new It(l.value, c, Object.keys(l.options), s);
3311
- a.push.apply(a, ge(w.value, t, r, n, i, c - (l.offset || 0)));
3282
+ throw new Mt(u.value, c, Object.keys(u.options), s);
3283
+ a.push.apply(a, ge(w.value, t, r, n, i, c - (u.offset || 0)));
3312
3284
  continue;
3313
3285
  }
3314
3286
  }
3315
- return wi(a);
3287
+ return Hi(a);
3316
3288
  }
3317
- function Hi(e, t) {
3318
- return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3319
- return r[n] = _(_({}, e[n]), t[n] || {}), r;
3289
+ function Pi(e, t) {
3290
+ return t ? U(U(U({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3291
+ return r[n] = U(U({}, e[n]), t[n] || {}), r;
3320
3292
  }, {})) : e;
3321
3293
  }
3322
- function Ci(e, t) {
3294
+ function Bi(e, t) {
3323
3295
  return t ? Object.keys(e).reduce(function(r, n) {
3324
- return r[n] = Hi(e[n], t[n]), r;
3325
- }, _({}, e)) : e;
3296
+ return r[n] = Pi(e[n], t[n]), r;
3297
+ }, U({}, e)) : e;
3326
3298
  }
3327
- function Ue(e) {
3299
+ function je(e) {
3328
3300
  return {
3329
3301
  create: function() {
3330
3302
  return {
@@ -3338,39 +3310,39 @@ function Ue(e) {
3338
3310
  }
3339
3311
  };
3340
3312
  }
3341
- function Pi(e) {
3313
+ function Ai(e) {
3342
3314
  return e === void 0 && (e = {
3343
3315
  number: {},
3344
3316
  dateTime: {},
3345
3317
  pluralRules: {}
3346
3318
  }), {
3347
- getNumberFormat: Re(function() {
3319
+ getNumberFormat: Ue(function() {
3348
3320
  for (var t, r = [], n = 0; n < arguments.length; n++)
3349
3321
  r[n] = arguments[n];
3350
- return new ((t = Intl.NumberFormat).bind.apply(t, Y([void 0], r, !1)))();
3322
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ge([void 0], r, !1)))();
3351
3323
  }, {
3352
- cache: Ue(e.number),
3353
- strategy: $e.variadic
3324
+ cache: je(e.number),
3325
+ strategy: De.variadic
3354
3326
  }),
3355
- getDateTimeFormat: Re(function() {
3327
+ getDateTimeFormat: Ue(function() {
3356
3328
  for (var t, r = [], n = 0; n < arguments.length; n++)
3357
3329
  r[n] = arguments[n];
3358
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Y([void 0], r, !1)))();
3330
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ge([void 0], r, !1)))();
3359
3331
  }, {
3360
- cache: Ue(e.dateTime),
3361
- strategy: $e.variadic
3332
+ cache: je(e.dateTime),
3333
+ strategy: De.variadic
3362
3334
  }),
3363
- getPluralRules: Re(function() {
3335
+ getPluralRules: Ue(function() {
3364
3336
  for (var t, r = [], n = 0; n < arguments.length; n++)
3365
3337
  r[n] = arguments[n];
3366
- return new ((t = Intl.PluralRules).bind.apply(t, Y([void 0], r, !1)))();
3338
+ return new ((t = Intl.PluralRules).bind.apply(t, Ge([void 0], r, !1)))();
3367
3339
  }, {
3368
- cache: Ue(e.pluralRules),
3369
- strategy: $e.variadic
3340
+ cache: je(e.pluralRules),
3341
+ strategy: De.variadic
3370
3342
  })
3371
3343
  };
3372
3344
  }
3373
- var Bi = (
3345
+ var Oi = (
3374
3346
  /** @class */
3375
3347
  function() {
3376
3348
  function e(t, r, n, i) {
@@ -3381,13 +3353,13 @@ var Bi = (
3381
3353
  dateTime: {},
3382
3354
  pluralRules: {}
3383
3355
  }, this.format = function(h) {
3384
- var u = o.formatToParts(h);
3385
- if (u.length === 1)
3386
- return u[0].value;
3387
- var l = u.reduce(function(f, c) {
3356
+ var l = o.formatToParts(h);
3357
+ if (l.length === 1)
3358
+ return l[0].value;
3359
+ var u = l.reduce(function(f, c) {
3388
3360
  return !f.length || c.type !== A.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3389
3361
  }, []);
3390
- return l.length <= 1 ? l[0] || "" : l;
3362
+ return u.length <= 1 ? u[0] || "" : u;
3391
3363
  }, this.formatToParts = function(h) {
3392
3364
  return ge(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3393
3365
  }, this.resolvedOptions = function() {
@@ -3402,13 +3374,13 @@ var Bi = (
3402
3374
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3403
3375
  var s = i || {};
3404
3376
  s.formatters;
3405
- var a = Un(s, ["formatters"]);
3406
- this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
3377
+ var a = Dn(s, ["formatters"]);
3378
+ this.ast = e.__parse(t, U(U({}, a), { locale: this.resolvedLocale }));
3407
3379
  } else
3408
3380
  this.ast = t;
3409
3381
  if (!Array.isArray(this.ast))
3410
3382
  throw new TypeError("A message must be provided as a String or AST.");
3411
- this.formats = Ci(e.formats, n), this.formatters = i && i.formatters || Pi(this.formatterCache);
3383
+ this.formats = Bi(e.formats, n), this.formatters = i && i.formatters || Ai(this.formatterCache);
3412
3384
  }
3413
3385
  return Object.defineProperty(e, "defaultLocale", {
3414
3386
  get: function() {
@@ -3421,7 +3393,7 @@ var Bi = (
3421
3393
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3422
3394
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3423
3395
  }
3424
- }, e.__parse = Ei, e.formats = {
3396
+ }, e.__parse = Si, e.formats = {
3425
3397
  number: {
3426
3398
  integer: {
3427
3399
  maximumFractionDigits: 0
@@ -3482,7 +3454,7 @@ var Bi = (
3482
3454
  }, e;
3483
3455
  }()
3484
3456
  );
3485
- function Ai(e, t) {
3457
+ function Li(e, t) {
3486
3458
  if (t == null)
3487
3459
  return;
3488
3460
  if (t in e)
@@ -3503,92 +3475,92 @@ function Ai(e, t) {
3503
3475
  n = void 0;
3504
3476
  return n;
3505
3477
  }
3506
- const k = {}, Oi = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Er = (e, t) => {
3478
+ const k = {}, Ii = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Sr = (e, t) => {
3507
3479
  if (t == null)
3508
3480
  return;
3509
3481
  if (t in k && e in k[t])
3510
3482
  return k[t][e];
3511
- const r = Be(t);
3483
+ const r = Oe(t);
3512
3484
  for (let n = 0; n < r.length; n++) {
3513
- const i = r[n], o = Ii(i, e);
3485
+ const i = r[n], o = Mi(i, e);
3514
3486
  if (o)
3515
- return Oi(e, t, o);
3487
+ return Ii(e, t, o);
3516
3488
  }
3517
3489
  };
3518
- let lt;
3519
- const fe = Ce({});
3520
- function Li(e) {
3521
- return lt[e] || null;
3490
+ let ht;
3491
+ const ce = Pe({});
3492
+ function Ni(e) {
3493
+ return ht[e] || null;
3522
3494
  }
3523
- function xr(e) {
3524
- return e in lt;
3495
+ function wr(e) {
3496
+ return e in ht;
3525
3497
  }
3526
- function Ii(e, t) {
3527
- if (!xr(e))
3498
+ function Mi(e, t) {
3499
+ if (!wr(e))
3528
3500
  return null;
3529
- const r = Li(e);
3530
- return Ai(r, t);
3501
+ const r = Ni(e);
3502
+ return Li(r, t);
3531
3503
  }
3532
- function Ni(e) {
3504
+ function Ri(e) {
3533
3505
  if (e == null)
3534
3506
  return;
3535
- const t = Be(e);
3507
+ const t = Oe(e);
3536
3508
  for (let r = 0; r < t.length; r++) {
3537
3509
  const n = t[r];
3538
- if (xr(n))
3510
+ if (wr(n))
3539
3511
  return n;
3540
3512
  }
3541
3513
  }
3542
- function Sr(e, ...t) {
3543
- delete k[e], fe.update((r) => (r[e] = Gn.all([r[e] || {}, ...t]), r));
3514
+ function Tr(e, ...t) {
3515
+ delete k[e], ce.update((r) => (r[e] = Un.all([r[e] || {}, ...t]), r));
3544
3516
  }
3545
- ie(
3546
- [fe],
3517
+ ne(
3518
+ [ce],
3547
3519
  ([e]) => Object.keys(e)
3548
3520
  );
3549
- fe.subscribe((e) => lt = e);
3521
+ ce.subscribe((e) => ht = e);
3550
3522
  const ve = {};
3551
- function Mi(e, t) {
3523
+ function $i(e, t) {
3552
3524
  ve[e].delete(t), ve[e].size === 0 && delete ve[e];
3553
3525
  }
3554
- function wr(e) {
3526
+ function Hr(e) {
3555
3527
  return ve[e];
3556
3528
  }
3557
- function Ri(e) {
3558
- return Be(e).map((t) => {
3559
- const r = wr(t);
3529
+ function Gi(e) {
3530
+ return Oe(e).map((t) => {
3531
+ const r = Hr(t);
3560
3532
  return [t, r ? [...r] : []];
3561
3533
  }).filter(([, t]) => t.length > 0);
3562
3534
  }
3563
3535
  function et(e) {
3564
- return e == null ? !1 : Be(e).some(
3536
+ return e == null ? !1 : Oe(e).some(
3565
3537
  (t) => {
3566
3538
  var r;
3567
- return (r = wr(t)) == null ? void 0 : r.size;
3539
+ return (r = Hr(t)) == null ? void 0 : r.size;
3568
3540
  }
3569
3541
  );
3570
3542
  }
3571
- function $i(e, t) {
3543
+ function Ui(e, t) {
3572
3544
  return Promise.all(
3573
- t.map((n) => (Mi(e, n), n().then((i) => i.default || i)))
3574
- ).then((n) => Sr(e, ...n));
3545
+ t.map((n) => ($i(e, n), n().then((i) => i.default || i)))
3546
+ ).then((n) => Tr(e, ...n));
3575
3547
  }
3576
- const ae = {};
3577
- function Tr(e) {
3548
+ const se = {};
3549
+ function Cr(e) {
3578
3550
  if (!et(e))
3579
- return e in ae ? ae[e] : Promise.resolve();
3580
- const t = Ri(e);
3581
- return ae[e] = Promise.all(
3551
+ return e in se ? se[e] : Promise.resolve();
3552
+ const t = Gi(e);
3553
+ return se[e] = Promise.all(
3582
3554
  t.map(
3583
- ([r, n]) => $i(r, n)
3555
+ ([r, n]) => Ui(r, n)
3584
3556
  )
3585
3557
  ).then(() => {
3586
3558
  if (et(e))
3587
- return Tr(e);
3588
- delete ae[e];
3589
- }), ae[e];
3559
+ return Cr(e);
3560
+ delete se[e];
3561
+ }), se[e];
3590
3562
  }
3591
- const Gi = {
3563
+ const Di = {
3592
3564
  number: {
3593
3565
  scientific: { notation: "scientific" },
3594
3566
  engineering: { notation: "engineering" },
@@ -3617,159 +3589,159 @@ const Gi = {
3617
3589
  timeZoneName: "short"
3618
3590
  }
3619
3591
  }
3620
- }, Ui = {
3592
+ }, Fi = {
3621
3593
  fallbackLocale: null,
3622
3594
  loadingDelay: 200,
3623
- formats: Gi,
3595
+ formats: Di,
3624
3596
  warnOnMissingMessages: !0,
3625
3597
  handleMissingMessage: void 0,
3626
3598
  ignoreTag: !0
3627
- }, Di = Ui;
3628
- function re() {
3629
- return Di;
3599
+ }, ji = Fi;
3600
+ function te() {
3601
+ return ji;
3630
3602
  }
3631
- const De = Ce(!1);
3632
- var Fi = Object.defineProperty, ji = Object.defineProperties, ki = Object.getOwnPropertyDescriptors, Nt = Object.getOwnPropertySymbols, Vi = Object.prototype.hasOwnProperty, Xi = Object.prototype.propertyIsEnumerable, Mt = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Wi = (e, t) => {
3603
+ const ke = Pe(!1);
3604
+ var ki = Object.defineProperty, Vi = Object.defineProperties, Xi = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, Wi = Object.prototype.hasOwnProperty, zi = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Zi = (e, t) => {
3633
3605
  for (var r in t || (t = {}))
3634
- Vi.call(t, r) && Mt(e, r, t[r]);
3635
- if (Nt)
3636
- for (var r of Nt(t))
3637
- Xi.call(t, r) && Mt(e, r, t[r]);
3606
+ Wi.call(t, r) && $t(e, r, t[r]);
3607
+ if (Rt)
3608
+ for (var r of Rt(t))
3609
+ zi.call(t, r) && $t(e, r, t[r]);
3638
3610
  return e;
3639
- }, zi = (e, t) => ji(e, ki(t));
3611
+ }, Qi = (e, t) => Vi(e, Xi(t));
3640
3612
  let tt;
3641
- const we = Ce(null);
3642
- function Rt(e) {
3613
+ const Te = Pe(null);
3614
+ function Gt(e) {
3643
3615
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3644
3616
  }
3645
- function Be(e, t = re().fallbackLocale) {
3646
- const r = Rt(e);
3647
- return t ? [.../* @__PURE__ */ new Set([...r, ...Rt(t)])] : r;
3617
+ function Oe(e, t = te().fallbackLocale) {
3618
+ const r = Gt(e);
3619
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Gt(t)])] : r;
3648
3620
  }
3649
3621
  function W() {
3650
3622
  return tt != null ? tt : void 0;
3651
3623
  }
3652
- we.subscribe((e) => {
3624
+ Te.subscribe((e) => {
3653
3625
  tt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3654
3626
  });
3655
- const Zi = (e) => {
3656
- if (e && Ni(e) && et(e)) {
3657
- const { loadingDelay: t } = re();
3627
+ const Ji = (e) => {
3628
+ if (e && Ri(e) && et(e)) {
3629
+ const { loadingDelay: t } = te();
3658
3630
  let r;
3659
3631
  return typeof window != "undefined" && W() != null && t ? r = window.setTimeout(
3660
- () => De.set(!0),
3632
+ () => ke.set(!0),
3661
3633
  t
3662
- ) : De.set(!0), Tr(e).then(() => {
3663
- we.set(e);
3634
+ ) : ke.set(!0), Cr(e).then(() => {
3635
+ Te.set(e);
3664
3636
  }).finally(() => {
3665
- clearTimeout(r), De.set(!1);
3637
+ clearTimeout(r), ke.set(!1);
3666
3638
  });
3667
3639
  }
3668
- return we.set(e);
3669
- }, oe = zi(Wi({}, we), {
3670
- set: Zi
3671
- }), Ae = (e) => {
3640
+ return Te.set(e);
3641
+ }, ie = Qi(Zi({}, Te), {
3642
+ set: Ji
3643
+ }), Le = (e) => {
3672
3644
  const t = /* @__PURE__ */ Object.create(null);
3673
3645
  return (n) => {
3674
3646
  const i = JSON.stringify(n);
3675
3647
  return i in t ? t[i] : t[i] = e(n);
3676
3648
  };
3677
3649
  };
3678
- var Qi = Object.defineProperty, Te = Object.getOwnPropertySymbols, Hr = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? Qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t) => {
3650
+ var qi = Object.defineProperty, He = Object.getOwnPropertySymbols, Pr = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
3679
3651
  for (var r in t || (t = {}))
3680
- Hr.call(t, r) && $t(e, r, t[r]);
3681
- if (Te)
3682
- for (var r of Te(t))
3683
- Cr.call(t, r) && $t(e, r, t[r]);
3652
+ Pr.call(t, r) && Ut(e, r, t[r]);
3653
+ if (He)
3654
+ for (var r of He(t))
3655
+ Br.call(t, r) && Ut(e, r, t[r]);
3684
3656
  return e;
3685
- }, se = (e, t) => {
3657
+ }, oe = (e, t) => {
3686
3658
  var r = {};
3687
3659
  for (var n in e)
3688
- Hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3689
- if (e != null && Te)
3690
- for (var n of Te(e))
3691
- t.indexOf(n) < 0 && Cr.call(e, n) && (r[n] = e[n]);
3660
+ Pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3661
+ if (e != null && He)
3662
+ for (var n of He(e))
3663
+ t.indexOf(n) < 0 && Br.call(e, n) && (r[n] = e[n]);
3692
3664
  return r;
3693
3665
  };
3694
- const ce = (e, t) => {
3695
- const { formats: r } = re();
3666
+ const he = (e, t) => {
3667
+ const { formats: r } = te();
3696
3668
  if (e in r && t in r[e])
3697
3669
  return r[e][t];
3698
3670
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3699
- }, qi = Ae(
3671
+ }, Yi = Le(
3700
3672
  (e) => {
3701
- var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3673
+ var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
3702
3674
  if (r == null)
3703
3675
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3704
- return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
3676
+ return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
3705
3677
  }
3706
- ), Ji = Ae(
3678
+ ), Ki = Le(
3707
3679
  (e) => {
3708
- var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3680
+ var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
3709
3681
  if (r == null)
3710
3682
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3711
- return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
3683
+ return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
3712
3684
  }
3713
- ), Yi = Ae(
3685
+ ), eo = Le(
3714
3686
  (e) => {
3715
- var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3687
+ var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
3716
3688
  if (r == null)
3717
3689
  throw new Error(
3718
3690
  '[svelte-i18n] A "locale" must be set to format time values'
3719
3691
  );
3720
- return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
3692
+ return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
3721
3693
  }
3722
- ), Ki = (e = {}) => {
3694
+ ), to = (e = {}) => {
3723
3695
  var t = e, {
3724
3696
  locale: r = W()
3725
- } = t, n = se(t, [
3697
+ } = t, n = oe(t, [
3726
3698
  "locale"
3727
3699
  ]);
3728
- return qi(ut({ locale: r }, n));
3729
- }, eo = (e = {}) => {
3700
+ return Yi(ct({ locale: r }, n));
3701
+ }, ro = (e = {}) => {
3730
3702
  var t = e, {
3731
3703
  locale: r = W()
3732
- } = t, n = se(t, [
3704
+ } = t, n = oe(t, [
3733
3705
  "locale"
3734
3706
  ]);
3735
- return Ji(ut({ locale: r }, n));
3736
- }, to = (e = {}) => {
3707
+ return Ki(ct({ locale: r }, n));
3708
+ }, no = (e = {}) => {
3737
3709
  var t = e, {
3738
3710
  locale: r = W()
3739
- } = t, n = se(t, [
3711
+ } = t, n = oe(t, [
3740
3712
  "locale"
3741
3713
  ]);
3742
- return Yi(ut({ locale: r }, n));
3743
- }, ro = Ae(
3714
+ return eo(ct({ locale: r }, n));
3715
+ }, io = Le(
3744
3716
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3745
- (e, t = W()) => new Bi(e, t, re().formats, {
3746
- ignoreTag: re().ignoreTag
3717
+ (e, t = W()) => new Oi(e, t, te().formats, {
3718
+ ignoreTag: te().ignoreTag
3747
3719
  })
3748
- ), no = (e, t = {}) => {
3720
+ ), oo = (e, t = {}) => {
3749
3721
  var r, n, i, o;
3750
3722
  let s = t;
3751
3723
  typeof e == "object" && (s = e, e = s.id);
3752
3724
  const {
3753
3725
  values: a,
3754
3726
  locale: h = W(),
3755
- default: u
3727
+ default: l
3756
3728
  } = s;
3757
3729
  if (h == null)
3758
3730
  throw new Error(
3759
3731
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3760
3732
  );
3761
- let l = Er(e, h);
3762
- if (!l)
3763
- l = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3764
- else if (typeof l != "string")
3733
+ let u = Sr(e, h);
3734
+ if (!u)
3735
+ u = (o = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3736
+ else if (typeof u != "string")
3765
3737
  return console.warn(
3766
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3767
- ), l;
3738
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3739
+ ), u;
3768
3740
  if (!a)
3769
- return l;
3770
- let f = l;
3741
+ return u;
3742
+ let f = u;
3771
3743
  try {
3772
- f = ro(l, h).format(a);
3744
+ f = io(u, h).format(a);
3773
3745
  } catch (c) {
3774
3746
  c instanceof Error && console.warn(
3775
3747
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3777,18 +3749,18 @@ const ce = (e, t) => {
3777
3749
  );
3778
3750
  }
3779
3751
  return f;
3780
- }, io = (e, t) => to(t).format(e), oo = (e, t) => eo(t).format(e), so = (e, t) => Ki(t).format(e), ao = (e, t = W()) => Er(e, t), lo = ie([oe, fe], () => no);
3781
- ie([oe], () => io);
3782
- ie([oe], () => oo);
3783
- ie([oe], () => so);
3784
- ie([oe, fe], () => ao);
3785
- function Gt(e, t) {
3786
- Sr(e, t);
3787
- }
3788
- function uo(e) {
3789
- oe.set(e);
3790
- }
3791
- const Ut = {
3752
+ }, so = (e, t) => no(t).format(e), ao = (e, t) => ro(t).format(e), uo = (e, t) => to(t).format(e), lo = (e, t = W()) => Sr(e, t), ho = ne([ie, ce], () => oo);
3753
+ ne([ie], () => so);
3754
+ ne([ie], () => ao);
3755
+ ne([ie], () => uo);
3756
+ ne([ie, ce], () => lo);
3757
+ function Dt(e, t) {
3758
+ Tr(e, t);
3759
+ }
3760
+ function co(e) {
3761
+ ie.set(e);
3762
+ }
3763
+ const Ft = {
3792
3764
  en: {
3793
3765
  collections: "Game Collections",
3794
3766
  providers: "Game Providers",
@@ -3885,16 +3857,85 @@ const Ut = {
3885
3857
  loading: "Loading, please wait ..."
3886
3858
  }
3887
3859
  };
3888
- function F(e) {
3860
+ /*! *****************************************************************************
3861
+ Copyright (c) Microsoft Corporation.
3862
+
3863
+ Permission to use, copy, modify, and/or distribute this software for any
3864
+ purpose with or without fee is hereby granted.
3865
+
3866
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3867
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3868
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3869
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3870
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3871
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3872
+ PERFORMANCE OF THIS SOFTWARE.
3873
+ ***************************************************************************** */
3874
+ var rt = function(e, t) {
3875
+ return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
3876
+ r.__proto__ = n;
3877
+ } || function(r, n) {
3878
+ for (var i in n)
3879
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
3880
+ }, rt(e, t);
3881
+ };
3882
+ function fe(e, t) {
3883
+ if (typeof t != "function" && t !== null)
3884
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
3885
+ rt(e, t);
3886
+ function r() {
3887
+ this.constructor = e;
3888
+ }
3889
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
3890
+ }
3891
+ function nt(e) {
3892
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
3893
+ if (r)
3894
+ return r.call(e);
3895
+ if (e && typeof e.length == "number")
3896
+ return {
3897
+ next: function() {
3898
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
3899
+ }
3900
+ };
3901
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
3902
+ }
3903
+ function it(e, t) {
3904
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
3905
+ if (!r)
3906
+ return e;
3907
+ var n = r.call(e), i, o = [], s;
3908
+ try {
3909
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
3910
+ o.push(i.value);
3911
+ } catch (a) {
3912
+ s = { error: a };
3913
+ } finally {
3914
+ try {
3915
+ i && !i.done && (r = n.return) && r.call(n);
3916
+ } finally {
3917
+ if (s)
3918
+ throw s.error;
3919
+ }
3920
+ }
3921
+ return o;
3922
+ }
3923
+ function ot(e, t, r) {
3924
+ if (arguments.length === 2)
3925
+ for (var n = 0, i = t.length, o; n < i; n++)
3926
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
3927
+ return e.concat(o || t);
3928
+ }
3929
+ function j(e) {
3889
3930
  return typeof e == "function";
3890
3931
  }
3891
- function Pr(e) {
3932
+ function Ar(e) {
3892
3933
  var t = function(n) {
3893
3934
  Error.call(n), n.stack = new Error().stack;
3894
3935
  }, r = e(t);
3895
3936
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
3896
3937
  }
3897
- var Fe = Pr(function(e) {
3938
+ var Ve = Ar(function(e) {
3898
3939
  return function(r) {
3899
3940
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
3900
3941
  ` + r.map(function(n, i) {
@@ -3903,13 +3944,13 @@ var Fe = Pr(function(e) {
3903
3944
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
3904
3945
  };
3905
3946
  });
3906
- function rt(e, t) {
3947
+ function st(e, t) {
3907
3948
  if (e) {
3908
3949
  var r = e.indexOf(t);
3909
3950
  0 <= r && e.splice(r, 1);
3910
3951
  }
3911
3952
  }
3912
- var Oe = function() {
3953
+ var Ie = function() {
3913
3954
  function e(t) {
3914
3955
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
3915
3956
  }
@@ -3921,9 +3962,9 @@ var Oe = function() {
3921
3962
  if (s)
3922
3963
  if (this._parentage = null, Array.isArray(s))
3923
3964
  try {
3924
- for (var a = We(s), h = a.next(); !h.done; h = a.next()) {
3925
- var u = h.value;
3926
- u.remove(this);
3965
+ for (var a = nt(s), h = a.next(); !h.done; h = a.next()) {
3966
+ var l = h.value;
3967
+ l.remove(this);
3927
3968
  }
3928
3969
  } catch (b) {
3929
3970
  t = { error: b };
@@ -3937,23 +3978,23 @@ var Oe = function() {
3937
3978
  }
3938
3979
  else
3939
3980
  s.remove(this);
3940
- var l = this.initialTeardown;
3941
- if (F(l))
3981
+ var u = this.initialTeardown;
3982
+ if (j(u))
3942
3983
  try {
3943
- l();
3984
+ u();
3944
3985
  } catch (b) {
3945
- o = b instanceof Fe ? b.errors : [b];
3986
+ o = b instanceof Ve ? b.errors : [b];
3946
3987
  }
3947
3988
  var f = this._finalizers;
3948
3989
  if (f) {
3949
3990
  this._finalizers = null;
3950
3991
  try {
3951
- for (var c = We(f), d = c.next(); !d.done; d = c.next()) {
3992
+ for (var c = nt(f), d = c.next(); !d.done; d = c.next()) {
3952
3993
  var m = d.value;
3953
3994
  try {
3954
- Dt(m);
3995
+ jt(m);
3955
3996
  } catch (b) {
3956
- o = o != null ? o : [], b instanceof Fe ? o = Y(Y([], ze(o)), ze(b.errors)) : o.push(b);
3997
+ o = o != null ? o : [], b instanceof Ve ? o = ot(ot([], it(o)), it(b.errors)) : o.push(b);
3957
3998
  }
3958
3999
  }
3959
4000
  } catch (b) {
@@ -3968,13 +4009,13 @@ var Oe = function() {
3968
4009
  }
3969
4010
  }
3970
4011
  if (o)
3971
- throw new Fe(o);
4012
+ throw new Ve(o);
3972
4013
  }
3973
4014
  }, e.prototype.add = function(t) {
3974
4015
  var r;
3975
4016
  if (t && t !== this)
3976
4017
  if (this.closed)
3977
- Dt(t);
4018
+ jt(t);
3978
4019
  else {
3979
4020
  if (t instanceof e) {
3980
4021
  if (t.closed || t._hasParent(this))
@@ -3991,56 +4032,52 @@ var Oe = function() {
3991
4032
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
3992
4033
  }, e.prototype._removeParent = function(t) {
3993
4034
  var r = this._parentage;
3994
- r === t ? this._parentage = null : Array.isArray(r) && rt(r, t);
4035
+ r === t ? this._parentage = null : Array.isArray(r) && st(r, t);
3995
4036
  }, e.prototype.remove = function(t) {
3996
4037
  var r = this._finalizers;
3997
- r && rt(r, t), t instanceof e && t._removeParent(this);
4038
+ r && st(r, t), t instanceof e && t._removeParent(this);
3998
4039
  }, e.EMPTY = function() {
3999
4040
  var t = new e();
4000
4041
  return t.closed = !0, t;
4001
4042
  }(), e;
4002
- }(), Br = Oe.EMPTY;
4003
- function Ar(e) {
4004
- return e instanceof Oe || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
4005
- }
4006
- function Dt(e) {
4007
- F(e) ? e() : e.unsubscribe();
4008
- }
4009
- var Or = {
4010
- onUnhandledError: null,
4011
- onStoppedNotification: null,
4012
- Promise: void 0,
4013
- useDeprecatedSynchronousErrorHandling: !1,
4014
- useDeprecatedNextContext: !1
4015
- }, ho = {
4043
+ }(), Or = Ie.EMPTY;
4044
+ function Lr(e) {
4045
+ return e instanceof Ie || e && "closed" in e && j(e.remove) && j(e.add) && j(e.unsubscribe);
4046
+ }
4047
+ function jt(e) {
4048
+ j(e) ? e() : e.unsubscribe();
4049
+ }
4050
+ var fo = {
4051
+ Promise: void 0
4052
+ }, po = {
4016
4053
  setTimeout: function(e, t) {
4017
4054
  for (var r = [], n = 2; n < arguments.length; n++)
4018
4055
  r[n - 2] = arguments[n];
4019
- return setTimeout.apply(void 0, Y([e, t], ze(r)));
4056
+ return setTimeout.apply(void 0, ot([e, t], it(r)));
4020
4057
  },
4021
4058
  clearTimeout: function(e) {
4022
4059
  return clearTimeout(e);
4023
4060
  },
4024
4061
  delegate: void 0
4025
4062
  };
4026
- function co(e) {
4027
- ho.setTimeout(function() {
4063
+ function mo(e) {
4064
+ po.setTimeout(function() {
4028
4065
  throw e;
4029
4066
  });
4030
4067
  }
4031
- function Ft() {
4068
+ function kt() {
4032
4069
  }
4033
4070
  function ye(e) {
4034
4071
  e();
4035
4072
  }
4036
- var Lr = function(e) {
4037
- j(t, e);
4073
+ var Ir = function(e) {
4074
+ fe(t, e);
4038
4075
  function t(r) {
4039
4076
  var n = e.call(this) || this;
4040
- return n.isStopped = !1, r ? (n.destination = r, Ar(r) && r.add(n)) : n.destination = bo, n;
4077
+ return n.isStopped = !1, r ? (n.destination = r, Lr(r) && r.add(n)) : n.destination = vo, n;
4041
4078
  }
4042
4079
  return t.create = function(r, n, i) {
4043
- return new nt(r, n, i);
4080
+ return new at(r, n, i);
4044
4081
  }, t.prototype.next = function(r) {
4045
4082
  this.isStopped || this._next(r);
4046
4083
  }, t.prototype.error = function(r) {
@@ -4064,11 +4101,7 @@ var Lr = function(e) {
4064
4101
  this.unsubscribe();
4065
4102
  }
4066
4103
  }, t;
4067
- }(Oe), fo = Function.prototype.bind;
4068
- function je(e, t) {
4069
- return fo.call(e, t);
4070
- }
4071
- var po = function() {
4104
+ }(Ie), bo = function() {
4072
4105
  function e(t) {
4073
4106
  this.partialObserver = t;
4074
4107
  }
@@ -4099,55 +4132,43 @@ var po = function() {
4099
4132
  me(r);
4100
4133
  }
4101
4134
  }, e;
4102
- }(), nt = function(e) {
4103
- j(t, e);
4135
+ }(), at = function(e) {
4136
+ fe(t, e);
4104
4137
  function t(r, n, i) {
4105
4138
  var o = e.call(this) || this, s;
4106
- if (F(r) || !r)
4107
- s = {
4108
- next: r != null ? r : void 0,
4109
- error: n != null ? n : void 0,
4110
- complete: i != null ? i : void 0
4111
- };
4112
- else {
4113
- var a;
4114
- o && Or.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
4115
- return o.unsubscribe();
4116
- }, s = {
4117
- next: r.next && je(r.next, a),
4118
- error: r.error && je(r.error, a),
4119
- complete: r.complete && je(r.complete, a)
4120
- }) : s = r;
4121
- }
4122
- return o.destination = new po(s), o;
4139
+ return j(r) || !r ? s = {
4140
+ next: r != null ? r : void 0,
4141
+ error: n != null ? n : void 0,
4142
+ complete: i != null ? i : void 0
4143
+ } : s = r, o.destination = new bo(s), o;
4123
4144
  }
4124
4145
  return t;
4125
- }(Lr);
4146
+ }(Ir);
4126
4147
  function me(e) {
4127
- co(e);
4148
+ mo(e);
4128
4149
  }
4129
- function mo(e) {
4150
+ function go(e) {
4130
4151
  throw e;
4131
4152
  }
4132
- var bo = {
4153
+ var vo = {
4133
4154
  closed: !0,
4134
- next: Ft,
4135
- error: mo,
4136
- complete: Ft
4137
- }, go = function() {
4155
+ next: kt,
4156
+ error: go,
4157
+ complete: kt
4158
+ }, yo = function() {
4138
4159
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
4139
4160
  }();
4140
- function vo(e) {
4161
+ function _o(e) {
4141
4162
  return e;
4142
4163
  }
4143
- function yo(e) {
4144
- return e.length === 0 ? vo : e.length === 1 ? e[0] : function(r) {
4164
+ function Eo(e) {
4165
+ return e.length === 0 ? _o : e.length === 1 ? e[0] : function(r) {
4145
4166
  return e.reduce(function(n, i) {
4146
4167
  return i(n);
4147
4168
  }, r);
4148
4169
  };
4149
4170
  }
4150
- var jt = function() {
4171
+ var Vt = function() {
4151
4172
  function e(t) {
4152
4173
  t && (this._subscribe = t);
4153
4174
  }
@@ -4155,7 +4176,7 @@ var jt = function() {
4155
4176
  var r = new e();
4156
4177
  return r.source = this, r.operator = t, r;
4157
4178
  }, e.prototype.subscribe = function(t, r, n) {
4158
- var i = this, o = Eo(t) ? t : new nt(t, r, n);
4179
+ var i = this, o = So(t) ? t : new at(t, r, n);
4159
4180
  return ye(function() {
4160
4181
  var s = i, a = s.operator, h = s.source;
4161
4182
  o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
@@ -4168,8 +4189,8 @@ var jt = function() {
4168
4189
  }
4169
4190
  }, e.prototype.forEach = function(t, r) {
4170
4191
  var n = this;
4171
- return r = kt(r), new r(function(i, o) {
4172
- var s = new nt({
4192
+ return r = Xt(r), new r(function(i, o) {
4193
+ var s = new at({
4173
4194
  next: function(a) {
4174
4195
  try {
4175
4196
  t(a);
@@ -4185,15 +4206,15 @@ var jt = function() {
4185
4206
  }, e.prototype._subscribe = function(t) {
4186
4207
  var r;
4187
4208
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
4188
- }, e.prototype[go] = function() {
4209
+ }, e.prototype[yo] = function() {
4189
4210
  return this;
4190
4211
  }, e.prototype.pipe = function() {
4191
4212
  for (var t = [], r = 0; r < arguments.length; r++)
4192
4213
  t[r] = arguments[r];
4193
- return yo(t)(this);
4214
+ return Eo(t)(this);
4194
4215
  }, e.prototype.toPromise = function(t) {
4195
4216
  var r = this;
4196
- return t = kt(t), new t(function(n, i) {
4217
+ return t = Xt(t), new t(function(n, i) {
4197
4218
  var o;
4198
4219
  r.subscribe(function(s) {
4199
4220
  return o = s;
@@ -4207,32 +4228,32 @@ var jt = function() {
4207
4228
  return new e(t);
4208
4229
  }, e;
4209
4230
  }();
4210
- function kt(e) {
4231
+ function Xt(e) {
4211
4232
  var t;
4212
- return (t = e != null ? e : Or.Promise) !== null && t !== void 0 ? t : Promise;
4233
+ return (t = e != null ? e : fo.Promise) !== null && t !== void 0 ? t : Promise;
4213
4234
  }
4214
- function _o(e) {
4215
- return e && F(e.next) && F(e.error) && F(e.complete);
4235
+ function xo(e) {
4236
+ return e && j(e.next) && j(e.error) && j(e.complete);
4216
4237
  }
4217
- function Eo(e) {
4218
- return e && e instanceof Lr || _o(e) && Ar(e);
4238
+ function So(e) {
4239
+ return e && e instanceof Ir || xo(e) && Lr(e);
4219
4240
  }
4220
- var xo = Pr(function(e) {
4241
+ var wo = Ar(function(e) {
4221
4242
  return function() {
4222
4243
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4223
4244
  };
4224
- }), Ir = function(e) {
4225
- j(t, e);
4245
+ }), Nr = function(e) {
4246
+ fe(t, e);
4226
4247
  function t() {
4227
4248
  var r = e.call(this) || this;
4228
4249
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
4229
4250
  }
4230
4251
  return t.prototype.lift = function(r) {
4231
- var n = new Vt(this, this);
4252
+ var n = new Wt(this, this);
4232
4253
  return n.operator = r, n;
4233
4254
  }, t.prototype._throwIfClosed = function() {
4234
4255
  if (this.closed)
4235
- throw new xo();
4256
+ throw new wo();
4236
4257
  }, t.prototype.next = function(r) {
4237
4258
  var n = this;
4238
4259
  ye(function() {
@@ -4240,12 +4261,12 @@ var xo = Pr(function(e) {
4240
4261
  if (n._throwIfClosed(), !n.isStopped) {
4241
4262
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
4242
4263
  try {
4243
- for (var s = We(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
4264
+ for (var s = nt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
4244
4265
  var h = a.value;
4245
4266
  h.next(r);
4246
4267
  }
4247
- } catch (u) {
4248
- i = { error: u };
4268
+ } catch (l) {
4269
+ i = { error: l };
4249
4270
  } finally {
4250
4271
  try {
4251
4272
  a && !a.done && (o = s.return) && o.call(s);
@@ -4289,20 +4310,20 @@ var xo = Pr(function(e) {
4289
4310
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
4290
4311
  }, t.prototype._innerSubscribe = function(r) {
4291
4312
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
4292
- return o || s ? Br : (this.currentObservers = null, a.push(r), new Oe(function() {
4293
- n.currentObservers = null, rt(a, r);
4313
+ return o || s ? Or : (this.currentObservers = null, a.push(r), new Ie(function() {
4314
+ n.currentObservers = null, st(a, r);
4294
4315
  }));
4295
4316
  }, t.prototype._checkFinalizedStatuses = function(r) {
4296
4317
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
4297
4318
  i ? r.error(o) : s && r.complete();
4298
4319
  }, t.prototype.asObservable = function() {
4299
- var r = new jt();
4320
+ var r = new Vt();
4300
4321
  return r.source = this, r;
4301
4322
  }, t.create = function(r, n) {
4302
- return new Vt(r, n);
4323
+ return new Wt(r, n);
4303
4324
  }, t;
4304
- }(jt), Vt = function(e) {
4305
- j(t, e);
4325
+ }(Vt), Wt = function(e) {
4326
+ fe(t, e);
4306
4327
  function t(r, n) {
4307
4328
  var i = e.call(this) || this;
4308
4329
  return i.destination = r, i.source = n, i;
@@ -4318,17 +4339,17 @@ var xo = Pr(function(e) {
4318
4339
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
4319
4340
  }, t.prototype._subscribe = function(r) {
4320
4341
  var n, i;
4321
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Br;
4342
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Or;
4322
4343
  }, t;
4323
- }(Ir), Nr = {
4344
+ }(Nr), Mr = {
4324
4345
  now: function() {
4325
- return (Nr.delegate || Date).now();
4346
+ return (Mr.delegate || Date).now();
4326
4347
  },
4327
4348
  delegate: void 0
4328
- }, So = function(e) {
4329
- j(t, e);
4349
+ }, To = function(e) {
4350
+ fe(t, e);
4330
4351
  function t(r, n, i) {
4331
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Nr);
4352
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Mr);
4332
4353
  var o = e.call(this) || this;
4333
4354
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
4334
4355
  }
@@ -4343,28 +4364,28 @@ var xo = Pr(function(e) {
4343
4364
  }, t.prototype._trimBuffer = function() {
4344
4365
  var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
4345
4366
  if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
4346
- for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
4347
- u = l;
4348
- u && o.splice(0, u + 1);
4367
+ for (var h = i.now(), l = 0, u = 1; u < o.length && o[u] <= h; u += 2)
4368
+ l = u;
4369
+ l && o.splice(0, l + 1);
4349
4370
  }
4350
4371
  }, t;
4351
- }(Ir);
4352
- const Xt = [], Wt = {}, wo = (e, t = 0) => {
4353
- if (Xt.indexOf(e) == -1) {
4354
- const r = new So(t);
4355
- Wt[e] = r, Xt.push(e);
4372
+ }(Nr);
4373
+ const zt = [], Zt = {}, Ho = (e, t = 0) => {
4374
+ if (zt.indexOf(e) == -1) {
4375
+ const r = new To(t);
4376
+ Zt[e] = r, zt.push(e);
4356
4377
  }
4357
- return Wt[e];
4378
+ return Zt[e];
4358
4379
  };
4359
- window.emWidgets = { topic: wo };
4360
- const To = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4361
- function Ho(e, t) {
4380
+ window.emWidgets = { topic: Ho };
4381
+ const Co = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4382
+ function Po(e, t) {
4362
4383
  if (e) {
4363
4384
  const r = document.createElement("style");
4364
4385
  r.innerHTML = t, e.appendChild(r);
4365
4386
  }
4366
4387
  }
4367
- function Co(e, t) {
4388
+ function Bo(e, t) {
4368
4389
  const r = new URL(t);
4369
4390
  fetch(r.href).then((n) => n.text()).then((n) => {
4370
4391
  const i = document.createElement("style");
@@ -4373,7 +4394,7 @@ function Co(e, t) {
4373
4394
  console.error("There was an error while trying to load client styling from URL", n);
4374
4395
  });
4375
4396
  }
4376
- function Po(e, t, r) {
4397
+ function Ao(e, t, r) {
4377
4398
  if (window.emMessageBus) {
4378
4399
  const n = document.createElement("style");
4379
4400
  window.emMessageBus.subscribe(t, (i) => {
@@ -4381,18 +4402,18 @@ function Po(e, t, r) {
4381
4402
  });
4382
4403
  }
4383
4404
  }
4384
- function Bo(e) {
4385
- en(e, "svelte-3oqkg3", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
4405
+ function Oo(e) {
4406
+ tn(e, "svelte-ci1i8", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:70px;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:60px;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
4386
4407
  }
4387
- function zt(e, t, r) {
4408
+ function Qt(e, t, r) {
4388
4409
  const n = e.slice();
4389
4410
  return n[41] = t[r], n;
4390
4411
  }
4391
- function Zt(e, t, r) {
4412
+ function Jt(e, t, r) {
4392
4413
  const n = e.slice();
4393
4414
  return n[44] = t[r], n;
4394
4415
  }
4395
- function Ao(e) {
4416
+ function Lo(e) {
4396
4417
  let t, r, n, i = (
4397
4418
  /*type*/
4398
4419
  (e[0] === "vendor" ? (
@@ -4402,27 +4423,27 @@ function Ao(e) {
4402
4423
  /*$_*/
4403
4424
  e[10]("collections")
4404
4425
  )) + ""
4405
- ), o, s, a, h, u, l = (
4426
+ ), o, s, a, h, l, u = (
4406
4427
  /*numberOfSlides*/
4407
4428
  e[7] > /*numberOfVisibleSlides*/
4408
- e[8] && Qt(e)
4429
+ e[8] && qt(e)
4409
4430
  ), f = Se(
4410
4431
  /*gameCategories*/
4411
4432
  e[3]
4412
4433
  ), c = [];
4413
4434
  for (let d = 0; d < f.length; d += 1)
4414
- c[d] = Yt(zt(e, f, d));
4435
+ c[d] = er(Qt(e, f, d));
4415
4436
  return {
4416
4437
  c() {
4417
- t = C("div"), r = C("div"), n = C("p"), o = He(i), s = X(), l && l.c(), a = X(), h = C("div");
4438
+ t = C("div"), r = C("div"), n = C("p"), o = Ce(i), s = X(), u && u.c(), a = X(), h = C("div");
4418
4439
  for (let d = 0; d < c.length; d += 1)
4419
4440
  c[d].c();
4420
- P(n, "class", "Title"), P(r, "class", "CategoriesHeader"), P(h, "class", "CategoriesSlider"), P(t, "class", u = "CasinoCollectionsProviders " + /*mobile*/
4441
+ P(n, "class", "Title"), P(r, "class", "CategoriesHeader"), P(h, "class", "CategoriesSlider"), P(t, "class", l = "CasinoCollectionsProviders " + /*mobile*/
4421
4442
  (e[9] ? "Mobile" : "") + " " + /*type*/
4422
4443
  (e[0] === "vendor" ? "Providers" : "Collections"));
4423
4444
  },
4424
4445
  m(d, m) {
4425
- U(d, t, m), H(t, r), H(r, n), H(n, o), H(r, s), l && l.m(r, null), H(t, a), H(t, h);
4446
+ D(d, t, m), H(t, r), H(r, n), H(n, o), H(r, s), u && u.m(r, null), H(t, a), H(t, h);
4426
4447
  for (let b = 0; b < c.length; b += 1)
4427
4448
  c[b] && c[b].m(h, null);
4428
4449
  e[25](h);
@@ -4436,9 +4457,9 @@ function Ao(e) {
4436
4457
  ) : (
4437
4458
  /*$_*/
4438
4459
  d[10]("collections")
4439
- )) + "") && ot(o, i), /*numberOfSlides*/
4460
+ )) + "") && lt(o, i), /*numberOfSlides*/
4440
4461
  d[7] > /*numberOfVisibleSlides*/
4441
- d[8] ? l ? l.p(d, m) : (l = Qt(d), l.c(), l.m(r, null)) : l && (l.d(1), l = null), m[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
4462
+ d[8] ? u ? u.p(d, m) : (u = qt(d), u.c(), u.m(r, null)) : u && (u.d(1), u = null), m[0] & /*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/
4442
4463
  24590) {
4443
4464
  f = Se(
4444
4465
  /*gameCategories*/
@@ -4446,31 +4467,31 @@ function Ao(e) {
4446
4467
  );
4447
4468
  let b;
4448
4469
  for (b = 0; b < f.length; b += 1) {
4449
- const g = zt(d, f, b);
4450
- c[b] ? c[b].p(g, m) : (c[b] = Yt(g), c[b].c(), c[b].m(h, null));
4470
+ const g = Qt(d, f, b);
4471
+ c[b] ? c[b].p(g, m) : (c[b] = er(g), c[b].c(), c[b].m(h, null));
4451
4472
  }
4452
4473
  for (; b < c.length; b += 1)
4453
4474
  c[b].d(1);
4454
4475
  c.length = f.length;
4455
4476
  }
4456
4477
  m[0] & /*mobile, type*/
4457
- 513 && u !== (u = "CasinoCollectionsProviders " + /*mobile*/
4478
+ 513 && l !== (l = "CasinoCollectionsProviders " + /*mobile*/
4458
4479
  (d[9] ? "Mobile" : "") + " " + /*type*/
4459
- (d[0] === "vendor" ? "Providers" : "Collections")) && P(t, "class", u);
4480
+ (d[0] === "vendor" ? "Providers" : "Collections")) && P(t, "class", l);
4460
4481
  },
4461
4482
  d(d) {
4462
- d && R(t), l && l.d(), rr(c, d), e[25](null);
4483
+ d && R(t), u && u.d(), ir(c, d), e[25](null);
4463
4484
  }
4464
4485
  };
4465
4486
  }
4466
- function Oo(e) {
4487
+ function Io(e) {
4467
4488
  let t;
4468
4489
  return {
4469
4490
  c() {
4470
4491
  t = C("div"), P(t, "class", "LoadingSpinner");
4471
4492
  },
4472
4493
  m(r, n) {
4473
- U(r, t, n);
4494
+ D(r, t, n);
4474
4495
  },
4475
4496
  p: I,
4476
4497
  d(r) {
@@ -4478,14 +4499,14 @@ function Oo(e) {
4478
4499
  }
4479
4500
  };
4480
4501
  }
4481
- function Qt(e) {
4502
+ function qt(e) {
4482
4503
  let t, r, n, i, o, s;
4483
4504
  return {
4484
4505
  c() {
4485
4506
  t = C("div"), r = C("button"), r.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>', n = X(), i = C("button"), i.innerHTML = '<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>', P(t, "class", "ButtonsContainer");
4486
4507
  },
4487
4508
  m(a, h) {
4488
- U(a, t, h), H(t, r), H(t, n), H(t, i), o || (s = [
4509
+ D(a, t, h), H(t, r), H(t, n), H(t, i), o || (s = [
4489
4510
  Ee(
4490
4511
  r,
4491
4512
  "click",
@@ -4502,42 +4523,42 @@ function Qt(e) {
4502
4523
  },
4503
4524
  p: I,
4504
4525
  d(a) {
4505
- a && R(t), o = !1, ne(s);
4526
+ a && R(t), o = !1, re(s);
4506
4527
  }
4507
4528
  };
4508
4529
  }
4509
- function Lo(e) {
4530
+ function No(e) {
4510
4531
  let t, r = (
4511
4532
  /*category*/
4512
4533
  e[41].name + ""
4513
4534
  ), n;
4514
4535
  return {
4515
4536
  c() {
4516
- t = C("p"), n = He(r), P(t, "class", "CategorySlideTitle");
4537
+ t = C("p"), n = Ce(r), P(t, "class", "CategorySlideTitle");
4517
4538
  },
4518
4539
  m(i, o) {
4519
- U(i, t, o), H(t, n);
4540
+ D(i, t, o), H(t, n);
4520
4541
  },
4521
4542
  p(i, o) {
4522
4543
  o[0] & /*gameCategories*/
4523
4544
  8 && r !== (r = /*category*/
4524
- i[41].name + "") && ot(n, r);
4545
+ i[41].name + "") && lt(n, r);
4525
4546
  },
4526
4547
  d(i) {
4527
4548
  i && R(t);
4528
4549
  }
4529
4550
  };
4530
4551
  }
4531
- function Io(e) {
4552
+ function Mo(e) {
4532
4553
  let t, r, n;
4533
4554
  return {
4534
4555
  c() {
4535
- t = C("ui-image"), G(t, "imgClass", "CategorySlideLogo"), _e(t.src, r = /*category*/
4556
+ t = C("ui-image"), G(t, "class", "CategorySlideLogo"), _e(t.src, r = /*category*/
4536
4557
  e[41].icon) || G(t, "src", r), G(t, "alt", n = /*category*/
4537
4558
  e[41].name + " icon");
4538
4559
  },
4539
4560
  m(i, o) {
4540
- U(i, t, o);
4561
+ D(i, t, o);
4541
4562
  },
4542
4563
  p(i, o) {
4543
4564
  o[0] & /*gameCategories*/
@@ -4551,23 +4572,23 @@ function Io(e) {
4551
4572
  }
4552
4573
  };
4553
4574
  }
4554
- function qt(e) {
4575
+ function Yt(e) {
4555
4576
  let t, r = (
4556
4577
  /*game*/
4557
4578
  e[44].name + ""
4558
4579
  ), n, i;
4559
4580
  return {
4560
4581
  c() {
4561
- t = C("p"), n = He(r), P(t, "title", i = /*game*/
4582
+ t = C("p"), n = Ce(r), P(t, "title", i = /*game*/
4562
4583
  e[44].name);
4563
4584
  },
4564
4585
  m(o, s) {
4565
- U(o, t, s), H(t, n);
4586
+ D(o, t, s), H(t, n);
4566
4587
  },
4567
4588
  p(o, s) {
4568
4589
  s[0] & /*gameCategories*/
4569
4590
  8 && r !== (r = /*game*/
4570
- o[44].name + "") && ot(n, r), s[0] & /*gameCategories*/
4591
+ o[44].name + "") && lt(n, r), s[0] & /*gameCategories*/
4571
4592
  8 && i !== (i = /*game*/
4572
4593
  o[44].name) && P(t, "title", i);
4573
4594
  },
@@ -4576,9 +4597,9 @@ function qt(e) {
4576
4597
  }
4577
4598
  };
4578
4599
  }
4579
- function Jt(e) {
4600
+ function Kt(e) {
4580
4601
  let t, r, n, i, o, s, a, h;
4581
- function u() {
4602
+ function l() {
4582
4603
  return (
4583
4604
  /*click_handler*/
4584
4605
  e[23](
@@ -4587,18 +4608,18 @@ function Jt(e) {
4587
4608
  )
4588
4609
  );
4589
4610
  }
4590
- let l = (
4611
+ let u = (
4591
4612
  /*collectionprovidersgamenames*/
4592
- e[2] == "true" && qt(e)
4613
+ e[2] == "true" && Yt(e)
4593
4614
  );
4594
4615
  return {
4595
4616
  c() {
4596
- t = C("div"), r = C("ui-image"), o = X(), l && l.c(), s = X(), G(r, "imgClass", "CategorySlideGameImage"), _e(r.src, n = /*game*/
4617
+ t = C("div"), r = C("ui-image"), o = X(), u && u.c(), s = X(), G(r, "class", "CategorySlideGameImage"), _e(r.src, n = /*game*/
4597
4618
  e[44].defaultThumbnail) || G(r, "src", n), G(r, "alt", i = /*game*/
4598
4619
  e[44].name), P(t, "class", "CategorySlideGames");
4599
4620
  },
4600
4621
  m(f, c) {
4601
- U(f, t, c), H(t, r), H(t, o), l && l.m(t, null), H(t, s), a || (h = Ee(r, "click", nn(u)), a = !0);
4622
+ D(f, t, c), H(t, r), H(t, o), u && u.m(t, null), H(t, s), a || (h = Ee(r, "click", on(l)), a = !0);
4602
4623
  },
4603
4624
  p(f, c) {
4604
4625
  e = f, c[0] & /*gameCategories*/
@@ -4606,33 +4627,33 @@ function Jt(e) {
4606
4627
  e[44].defaultThumbnail) && G(r, "src", n), c[0] & /*gameCategories*/
4607
4628
  8 && i !== (i = /*game*/
4608
4629
  e[44].name) && G(r, "alt", i), /*collectionprovidersgamenames*/
4609
- e[2] == "true" ? l ? l.p(e, c) : (l = qt(e), l.c(), l.m(t, s)) : l && (l.d(1), l = null);
4630
+ e[2] == "true" ? u ? u.p(e, c) : (u = Yt(e), u.c(), u.m(t, s)) : u && (u.d(1), u = null);
4610
4631
  },
4611
4632
  d(f) {
4612
- f && R(t), l && l.d(), a = !1, h();
4633
+ f && R(t), u && u.d(), a = !1, h();
4613
4634
  }
4614
4635
  };
4615
4636
  }
4616
- function Yt(e) {
4617
- let t, r, n, i, o, s, a, h, u;
4618
- function l(g, E) {
4637
+ function er(e) {
4638
+ let t, r, n, i, o, s, a, h, l;
4639
+ function u(g, _) {
4619
4640
  if (
4620
4641
  /*titletype*/
4621
4642
  g[1] === "logo"
4622
4643
  )
4623
- return Io;
4644
+ return Mo;
4624
4645
  if (
4625
4646
  /*titletype*/
4626
4647
  g[1] === "title"
4627
4648
  )
4628
- return Lo;
4649
+ return No;
4629
4650
  }
4630
- let f = l(e), c = f && f(e), d = Se(
4651
+ let f = u(e), c = f && f(e), d = Se(
4631
4652
  /*category*/
4632
4653
  e[41].games
4633
4654
  ), m = [];
4634
4655
  for (let g = 0; g < d.length; g += 1)
4635
- m[g] = Jt(Zt(e, d, g));
4656
+ m[g] = Kt(Jt(e, d, g));
4636
4657
  function b() {
4637
4658
  return (
4638
4659
  /*click_handler_1*/
@@ -4644,23 +4665,23 @@ function Yt(e) {
4644
4665
  }
4645
4666
  return {
4646
4667
  c() {
4647
- var g, E;
4668
+ var g, _;
4648
4669
  t = C("div"), r = C("div"), n = C("div"), c && c.c(), i = X(), o = C("div");
4649
- for (let x = 0; x < m.length; x += 1)
4650
- m[x].c();
4670
+ for (let E = 0; E < m.length; E += 1)
4671
+ m[E].c();
4651
4672
  a = X(), P(n, "class", "CategorySlideTopContainer"), P(o, "class", "CategorySlideGameContainer"), P(r, "class", s = "CategorySlide " + /*category*/
4652
- (((g = e[41]) == null ? void 0 : g.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")), Ne(r, "background-image", "url(" + /*category*/
4653
- ((E = e[41]) == null ? void 0 : E.background) + ")"), Ne(r, "background-size", "cover"), P(t, "class", "CategoriesSliderWrapper Animation");
4673
+ (((g = e[41]) == null ? void 0 : g.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")), Re(r, "background-image", "url(" + /*category*/
4674
+ ((_ = e[41]) == null ? void 0 : _.background) + ")"), Re(r, "background-size", "cover"), P(t, "class", "CategoriesSliderWrapper Animation");
4654
4675
  },
4655
- m(g, E) {
4656
- U(g, t, E), H(t, r), H(r, n), c && c.m(n, null), H(r, i), H(r, o);
4657
- for (let x = 0; x < m.length; x += 1)
4658
- m[x] && m[x].m(o, null);
4659
- H(t, a), h || (u = Ee(r, "click", b), h = !0);
4676
+ m(g, _) {
4677
+ D(g, t, _), H(t, r), H(r, n), c && c.m(n, null), H(r, i), H(r, o);
4678
+ for (let E = 0; E < m.length; E += 1)
4679
+ m[E] && m[E].m(o, null);
4680
+ H(t, a), h || (l = Ee(r, "click", b), h = !0);
4660
4681
  },
4661
- p(g, E) {
4662
- var x, w;
4663
- if (e = g, f === (f = l(e)) && c ? c.p(e, E) : (c && c.d(1), c = f && f(e), c && (c.c(), c.m(n, null))), E[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
4682
+ p(g, _) {
4683
+ var E, w;
4684
+ if (e = g, f === (f = u(e)) && c ? c.p(e, _) : (c && c.d(1), c = f && f(e), c && (c.c(), c.m(n, null))), _[0] & /*gameCategories, collectionprovidersgamenames, openGame*/
4664
4685
  8204) {
4665
4686
  d = Se(
4666
4687
  /*category*/
@@ -4668,30 +4689,30 @@ function Yt(e) {
4668
4689
  );
4669
4690
  let T;
4670
4691
  for (T = 0; T < d.length; T += 1) {
4671
- const O = Zt(e, d, T);
4672
- m[T] ? m[T].p(O, E) : (m[T] = Jt(O), m[T].c(), m[T].m(o, null));
4692
+ const O = Jt(e, d, T);
4693
+ m[T] ? m[T].p(O, _) : (m[T] = Kt(O), m[T].c(), m[T].m(o, null));
4673
4694
  }
4674
4695
  for (; T < m.length; T += 1)
4675
4696
  m[T].d(1);
4676
4697
  m.length = d.length;
4677
4698
  }
4678
- E[0] & /*gameCategories*/
4699
+ _[0] & /*gameCategories*/
4679
4700
  8 && s !== (s = "CategorySlide " + /*category*/
4680
- (((x = e[41]) == null ? void 0 : x.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")) && P(r, "class", s), E[0] & /*gameCategories*/
4681
- 8 && Ne(r, "background-image", "url(" + /*category*/
4701
+ (((E = e[41]) == null ? void 0 : E.flag[0]) === "vendor" ? "CategorySlideNoHighlight" : "")) && P(r, "class", s), _[0] & /*gameCategories*/
4702
+ 8 && Re(r, "background-image", "url(" + /*category*/
4682
4703
  ((w = e[41]) == null ? void 0 : w.background) + ")");
4683
4704
  },
4684
4705
  d(g) {
4685
- g && R(t), c && c.d(), rr(m, g), h = !1, u();
4706
+ g && R(t), c && c.d(), ir(m, g), h = !1, l();
4686
4707
  }
4687
4708
  };
4688
4709
  }
4689
- function No(e) {
4710
+ function Ro(e) {
4690
4711
  let t;
4691
4712
  function r(o, s) {
4692
4713
  return (
4693
4714
  /*isLoading*/
4694
- o[6] ? Oo : Ao
4715
+ o[6] ? Io : Lo
4695
4716
  );
4696
4717
  }
4697
4718
  let n = r(e), i = n(e);
@@ -4700,7 +4721,7 @@ function No(e) {
4700
4721
  t = C("div"), i.c();
4701
4722
  },
4702
4723
  m(o, s) {
4703
- U(o, t, s), i.m(t, null), e[26](t);
4724
+ D(o, t, s), i.m(t, null), e[26](t);
4704
4725
  },
4705
4726
  p(o, s) {
4706
4727
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
@@ -4712,70 +4733,70 @@ function No(e) {
4712
4733
  }
4713
4734
  };
4714
4735
  }
4715
- function Mo(e, t, r) {
4736
+ function $o(e, t, r) {
4716
4737
  let n;
4717
- Kr(e, lo, (p) => r(10, n = p));
4718
- let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { type: a = "" } = t, { titletype: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, { collectionprovidersgamenames: c = "" } = t, { mbsource: d } = t, m = [], b = !0, g, E = 0, x = 0, w = 0, T, O, V = 0, z = 50, Le = !1, $, Mr = window.navigator.userAgent, ht;
4719
- const Rr = () => {
4738
+ en(e, ho, (p) => r(10, n = p));
4739
+ let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { type: a = "" } = t, { titletype: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: f = "" } = t, { collectionprovidersgamenames: c = "" } = t, { mbsource: d } = t, m = [], b = !0, g, _ = 0, E = 0, w = 0, T, O, V = 0, z = 50, Ne = !1, $, Rr = window.navigator.userAgent, ft;
4740
+ const $r = () => {
4720
4741
  fetch(f).then((B) => B.json()).then((B) => {
4721
- Object.keys(B).forEach((D) => {
4722
- Gt(D, B[D]);
4742
+ Object.keys(B).forEach((F) => {
4743
+ Dt(F, B[F]);
4723
4744
  });
4724
4745
  }).catch((B) => {
4725
4746
  console.log(B);
4726
4747
  });
4727
4748
  };
4728
- Object.keys(Ut).forEach((p) => {
4729
- Gt(p, Ut[p]);
4749
+ Object.keys(Ft).forEach((p) => {
4750
+ Dt(p, Ft[p]);
4730
4751
  });
4731
- const ct = () => {
4752
+ const dt = () => {
4732
4753
  const p = new URL(`${i}/v2/casino/groups/${o}`);
4733
4754
  p.searchParams.append("language", s), p.searchParams.append("expand", "games"), p.searchParams.append("filter", `$and(flags=${a})`), p.searchParams.append("pagination", `offset=${V},limit=${z}`), fetch(p.href).then((B) => B.json()).then((B) => {
4734
- r(6, b = !1), B.total > z && (V += 50, z += 50, r(22, Le = !0));
4735
- let D = B.items.map((L) => {
4736
- var bt, gt, vt;
4755
+ r(6, b = !1), B.total > z && (V += 50, z += 50, r(22, Ne = !0));
4756
+ let F = B.items.map((L) => {
4757
+ var vt, yt, _t;
4737
4758
  return {
4738
4759
  id: L.id,
4739
4760
  name: L.name,
4740
- icon: L.icon ? L.icon : (vt = (gt = (bt = L.vendors) == null ? void 0 : bt.items[0]) == null ? void 0 : gt.subVendors[0]) == null ? void 0 : vt.logo,
4741
- games: L.games.items.slice(0, 4).map((Wr) => Wr),
4761
+ icon: L.icon ? L.icon : (_t = (yt = (vt = L.vendors) == null ? void 0 : vt.items[0]) == null ? void 0 : yt.subVendors[0]) == null ? void 0 : _t.logo,
4762
+ games: L.games.items.slice(0, 4).map((zr) => zr),
4742
4763
  background: L.background,
4743
4764
  flag: L.flags
4744
4765
  };
4745
4766
  });
4746
- r(3, m = [...m, ...D]), r(7, x = m.length), $r();
4767
+ r(3, m = [...m, ...F]), r(7, E = m.length), Gr();
4747
4768
  });
4748
- }, $r = () => {
4769
+ }, Gr = () => {
4749
4770
  const p = $.getRootNode().host;
4750
4771
  p.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: p } }));
4751
- }, ft = (p) => {
4772
+ }, pt = (p) => {
4752
4773
  var B;
4753
- O = [...g.children], O.forEach((D, L) => {
4754
- D.style.transform = `translateX(${100 * (p ? L - p : L)}%)`;
4755
- }), T = (B = O[0]) == null ? void 0 : B.getBoundingClientRect().width, Gr();
4756
- }, Gr = () => {
4757
- r(8, w = Math.floor(g.clientWidth / T));
4758
- }, dt = () => {
4759
- ft(E);
4774
+ O = [...g.children], O.forEach((F, L) => {
4775
+ F.style.transform = `translateX(${100 * (p ? L - p : L)}%)`;
4776
+ }), T = (B = O[0]) == null ? void 0 : B.getBoundingClientRect().width, Ur();
4760
4777
  }, Ur = () => {
4761
- E === 0 ? E = x - w : E - w < -1 ? E = 0 : E--, dt();
4778
+ r(8, w = Math.floor(g.clientWidth / T));
4779
+ }, mt = () => {
4780
+ pt(_);
4762
4781
  }, Dr = () => {
4763
- E === x - w ? E = 0 : x - w < E + 1 ? E = x - w : E++, dt();
4764
- }, pt = (p, B, D, L) => {
4782
+ _ === 0 ? _ = E - w : _ - w < -1 ? _ = 0 : _--, mt();
4783
+ }, Fr = () => {
4784
+ _ === E - w ? _ = 0 : E - w < _ + 1 ? _ = E - w : _++, mt();
4785
+ }, bt = (p, B, F, L) => {
4765
4786
  window.postMessage(
4766
4787
  {
4767
4788
  type: "OpenCollectionsProvidersGame",
4768
4789
  gameId: p,
4769
4790
  launchUrl: B,
4770
- gameName: D,
4791
+ gameName: F,
4771
4792
  subVendor: L
4772
4793
  },
4773
4794
  window.location.href
4774
4795
  ), typeof gtag == "function" && gtag("event", "OpenGame", {
4775
4796
  context: "CollectionsProviders",
4776
- gameName: `${D}`
4797
+ gameName: `${F}`
4777
4798
  });
4778
- }, mt = (p) => {
4799
+ }, gt = (p) => {
4779
4800
  window.postMessage(
4780
4801
  {
4781
4802
  type: "OpenCollectionsProvidersCategory",
@@ -4783,34 +4804,34 @@ function Mo(e, t, r) {
4783
4804
  },
4784
4805
  window.location.href
4785
4806
  );
4786
- }, Fr = () => {
4787
- uo(s);
4807
+ }, jr = () => {
4808
+ co(s);
4788
4809
  };
4789
- ln(() => (r(9, ht = To(Mr)), () => {
4810
+ ln(() => (r(9, ft = Co(Rr)), () => {
4790
4811
  }));
4791
- const jr = (p) => pt(p.gameId, p.launchUrl, p.name, p.subVendor), kr = (p) => mt(p.id);
4792
- function Vr(p) {
4812
+ const kr = (p) => bt(p.gameId, p.launchUrl, p.name, p.subVendor), Vr = (p) => gt(p.id);
4813
+ function Xr(p) {
4793
4814
  xe[p ? "unshift" : "push"](() => {
4794
4815
  g = p, r(4, g);
4795
4816
  });
4796
4817
  }
4797
- function Xr(p) {
4818
+ function Wr(p) {
4798
4819
  xe[p ? "unshift" : "push"](() => {
4799
4820
  $ = p, r(5, $);
4800
4821
  });
4801
4822
  }
4802
4823
  return e.$$set = (p) => {
4803
- "endpoint" in p && r(15, i = p.endpoint), "datasource" in p && r(16, o = p.datasource), "lang" in p && r(17, s = p.lang), "type" in p && r(0, a = p.type), "titletype" in p && r(1, h = p.titletype), "clientstyling" in p && r(18, u = p.clientstyling), "clientstylingurl" in p && r(19, l = p.clientstylingurl), "translationurl" in p && r(20, f = p.translationurl), "collectionprovidersgamenames" in p && r(2, c = p.collectionprovidersgamenames), "mbsource" in p && r(21, d = p.mbsource);
4824
+ "endpoint" in p && r(15, i = p.endpoint), "datasource" in p && r(16, o = p.datasource), "lang" in p && r(17, s = p.lang), "type" in p && r(0, a = p.type), "titletype" in p && r(1, h = p.titletype), "clientstyling" in p && r(18, l = p.clientstyling), "clientstylingurl" in p && r(19, u = p.clientstylingurl), "translationurl" in p && r(20, f = p.translationurl), "collectionprovidersgamenames" in p && r(2, c = p.collectionprovidersgamenames), "mbsource" in p && r(21, d = p.mbsource);
4804
4825
  }, e.$$.update = () => {
4805
4826
  e.$$.dirty[0] & /*endpoint, datasource, lang*/
4806
- 229376 && i && o && s && ct(), e.$$.dirty[0] & /*gameCategories, categoriesSlider*/
4807
- 24 && m && g && ft(), e.$$.dirty[0] & /*lang*/
4808
- 131072 && s && Fr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4809
- 262176 && u && $ && Ho($, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4810
- 524320 && l && $ && Co($, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4811
- 2097184 && $ && Po($, `${d}.Style`), e.$$.dirty[0] & /*translationurl*/
4812
- 1048576 && f && Rr(), e.$$.dirty[0] & /*paginationrequired*/
4813
- 4194304 && Le && ct();
4827
+ 229376 && i && o && s && dt(), e.$$.dirty[0] & /*gameCategories, categoriesSlider*/
4828
+ 24 && m && g && pt(), e.$$.dirty[0] & /*lang*/
4829
+ 131072 && s && jr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4830
+ 262176 && l && $ && Po($, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4831
+ 524320 && u && $ && Bo($, u), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4832
+ 2097184 && $ && Ao($, `${d}.Style`), e.$$.dirty[0] & /*translationurl*/
4833
+ 1048576 && f && $r(), e.$$.dirty[0] & /*paginationrequired*/
4834
+ 4194304 && Ne && dt();
4814
4835
  }, [
4815
4836
  a,
4816
4837
  h,
@@ -4819,36 +4840,36 @@ function Mo(e, t, r) {
4819
4840
  g,
4820
4841
  $,
4821
4842
  b,
4822
- x,
4843
+ E,
4823
4844
  w,
4824
- ht,
4845
+ ft,
4825
4846
  n,
4826
- Ur,
4827
4847
  Dr,
4828
- pt,
4829
- mt,
4848
+ Fr,
4849
+ bt,
4850
+ gt,
4830
4851
  i,
4831
4852
  o,
4832
4853
  s,
4833
- u,
4834
4854
  l,
4855
+ u,
4835
4856
  f,
4836
4857
  d,
4837
- Le,
4838
- jr,
4858
+ Ne,
4839
4859
  kr,
4840
4860
  Vr,
4841
- Xr
4861
+ Xr,
4862
+ Wr
4842
4863
  ];
4843
4864
  }
4844
- class Ro extends _n {
4865
+ class Go extends En {
4845
4866
  constructor(t) {
4846
- super(), vn(
4867
+ super(), yn(
4847
4868
  this,
4848
4869
  t,
4849
- Mo,
4850
- No,
4851
- er,
4870
+ $o,
4871
+ Ro,
4872
+ rr,
4852
4873
  {
4853
4874
  endpoint: 15,
4854
4875
  datasource: 16,
@@ -4861,7 +4882,7 @@ class Ro extends _n {
4861
4882
  collectionprovidersgamenames: 2,
4862
4883
  mbsource: 21
4863
4884
  },
4864
- Bo,
4885
+ Oo,
4865
4886
  [-1, -1]
4866
4887
  );
4867
4888
  }
@@ -4926,7 +4947,7 @@ class Ro extends _n {
4926
4947
  this.$$set({ mbsource: t }), M();
4927
4948
  }
4928
4949
  }
4929
- yn(Ro, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
4950
+ _n(Go, { endpoint: {}, datasource: {}, lang: {}, type: {}, titletype: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, collectionprovidersgamenames: {}, mbsource: {} }, [], [], !0);
4930
4951
  export {
4931
- Ro as default
4952
+ Go as default
4932
4953
  };