@everymatrix/casino-categories-providers 1.55.0 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- var rr = Object.defineProperty, nr = Object.defineProperties;
2
- var ir = Object.getOwnPropertyDescriptors;
3
- var Je = Object.getOwnPropertySymbols;
4
- var sr = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable;
5
- var Ce = (e, t, r) => t in e ? rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
1
+ var Kt = Object.defineProperty, er = Object.defineProperties;
2
+ var tr = Object.getOwnPropertyDescriptors;
3
+ var Qe = Object.getOwnPropertySymbols;
4
+ var rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable;
5
+ var Ce = (e, t, r) => t in e ? Kt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- sr.call(t, r) && Ce(e, r, t[r]);
8
- if (Je)
9
- for (var r of Je(t))
10
- or.call(t, r) && Ce(e, r, t[r]);
7
+ rr.call(t, r) && Ce(e, r, t[r]);
8
+ if (Qe)
9
+ for (var r of Qe(t))
10
+ nr.call(t, r) && Ce(e, r, t[r]);
11
11
  return e;
12
- }, Ke = (e, t) => nr(e, ir(t));
13
- var I = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
14
- var et = (e, t, r) => new Promise((n, i) => {
12
+ }, Je = (e, t) => er(e, tr(t));
13
+ var L = (e, t, r) => Ce(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var Ye = (e, t, r) => new Promise((n, i) => {
15
15
  var s = (h) => {
16
16
  try {
17
17
  u(r.next(h));
@@ -27,53 +27,53 @@ var et = (e, t, r) => new Promise((n, i) => {
27
27
  }, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
28
28
  u((r = r.apply(e, t)).next());
29
29
  });
30
- function M() {
30
+ function I() {
31
31
  }
32
- function Ct(e) {
32
+ function xt(e) {
33
33
  return e();
34
34
  }
35
- function tt() {
35
+ function Ke() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function ae(e) {
39
- e.forEach(Ct);
39
+ e.forEach(xt);
40
40
  }
41
- function ke(e) {
41
+ function Ve(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Tt(e, t) {
44
+ function vt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- let he;
48
- function pe(e, t) {
49
- return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
47
+ let le;
48
+ function de(e, t) {
49
+ return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
50
50
  }
51
- function ar(e) {
51
+ function ir(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
- function Ht(e, ...t) {
54
+ function Tt(e, ...t) {
55
55
  if (e == null) {
56
56
  for (const n of t)
57
57
  n(void 0);
58
- return M;
58
+ return I;
59
59
  }
60
60
  const r = e.subscribe(...t);
61
61
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
62
  }
63
- function ur(e, t, r) {
64
- e.$$.on_destroy.push(Ht(t, r));
63
+ function sr(e, t, r) {
64
+ e.$$.on_destroy.push(Tt(t, r));
65
65
  }
66
66
  function v(e, t) {
67
67
  e.appendChild(t);
68
68
  }
69
- function hr(e, t, r) {
70
- const n = lr(e);
69
+ function or(e, t, r) {
70
+ const n = ar(e);
71
71
  if (!n.getElementById(t)) {
72
- const i = O("style");
73
- i.id = t, i.textContent = r, fr(n, i);
72
+ const i = w("style");
73
+ i.id = t, i.textContent = r, ur(n, i);
74
74
  }
75
75
  }
76
- function lr(e) {
76
+ function ar(e) {
77
77
  if (!e) return document;
78
78
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
79
79
  return t && /** @type {ShadowRoot} */
@@ -82,24 +82,24 @@ function lr(e) {
82
82
  t
83
83
  ) : e.ownerDocument;
84
84
  }
85
- function fr(e, t) {
85
+ function ur(e, t) {
86
86
  return v(
87
87
  /** @type {Document} */
88
88
  e.head || e,
89
89
  t
90
90
  ), t.sheet;
91
91
  }
92
- function K(e, t, r) {
92
+ function Y(e, t, r) {
93
93
  e.insertBefore(t, r || null);
94
94
  }
95
- function k(e) {
95
+ function j(e) {
96
96
  e.parentNode && e.parentNode.removeChild(e);
97
97
  }
98
- function rt(e, t) {
98
+ function et(e, t) {
99
99
  for (let r = 0; r < e.length; r += 1)
100
100
  e[r] && e[r].d(t);
101
101
  }
102
- function O(e) {
102
+ function w(e) {
103
103
  return document.createElement(e);
104
104
  }
105
105
  function U(e) {
@@ -108,27 +108,27 @@ function U(e) {
108
108
  function R() {
109
109
  return U(" ");
110
110
  }
111
- function vi() {
111
+ function Hi() {
112
112
  return U("");
113
113
  }
114
- function At(e, t, r, n) {
114
+ function Ct(e, t, r, n) {
115
115
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
116
116
  }
117
117
  function H(e, t, r) {
118
118
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
119
119
  }
120
- function Ci(e, t, r) {
120
+ function Ai(e, t, r) {
121
121
  const n = t.toLowerCase();
122
122
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
123
123
  }
124
- function cr(e) {
124
+ function hr(e) {
125
125
  return Array.from(e.childNodes);
126
126
  }
127
- function F(e, t) {
127
+ function G(e, t) {
128
128
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
129
129
  t);
130
130
  }
131
- function gr(e) {
131
+ function lr(e) {
132
132
  const t = {};
133
133
  return e.childNodes.forEach(
134
134
  /** @param {Element} node */
@@ -137,89 +137,96 @@ function gr(e) {
137
137
  }
138
138
  ), t;
139
139
  }
140
- let Ve;
141
- function ie(e) {
142
- Ve = e;
140
+ let ie;
141
+ function ne(e) {
142
+ ie = e;
143
+ }
144
+ function fr() {
145
+ if (!ie) throw new Error("Function called outside component initialization");
146
+ return ie;
147
+ }
148
+ function cr(e) {
149
+ fr().$$.on_mount.push(e);
143
150
  }
144
- const W = [], we = [];
145
- let Z = [];
146
- const nt = [], mr = /* @__PURE__ */ Promise.resolve();
147
- let Ne = !1;
148
- function pr() {
149
- Ne || (Ne = !0, mr.then($));
151
+ const z = [], Ne = [];
152
+ let W = [];
153
+ const tt = [], gr = /* @__PURE__ */ Promise.resolve();
154
+ let Le = !1;
155
+ function mr() {
156
+ Le || (Le = !0, gr.then(M));
150
157
  }
151
- function Le(e) {
152
- Z.push(e);
158
+ function Ie(e) {
159
+ W.push(e);
153
160
  }
154
- const Te = /* @__PURE__ */ new Set();
155
- let X = 0;
156
- function $() {
157
- if (X !== 0)
161
+ const He = /* @__PURE__ */ new Set();
162
+ let V = 0;
163
+ function M() {
164
+ if (V !== 0)
158
165
  return;
159
- const e = Ve;
166
+ const e = ie;
160
167
  do {
161
168
  try {
162
- for (; X < W.length; ) {
163
- const t = W[X];
164
- X++, ie(t), dr(t.$$);
169
+ for (; V < z.length; ) {
170
+ const t = z[V];
171
+ V++, ne(t), pr(t.$$);
165
172
  }
166
173
  } catch (t) {
167
- throw W.length = 0, X = 0, t;
174
+ throw z.length = 0, V = 0, t;
168
175
  }
169
- for (ie(null), W.length = 0, X = 0; we.length; ) we.pop()();
170
- for (let t = 0; t < Z.length; t += 1) {
171
- const r = Z[t];
172
- Te.has(r) || (Te.add(r), r());
176
+ for (ne(null), z.length = 0, V = 0; Ne.length; ) Ne.pop()();
177
+ for (let t = 0; t < W.length; t += 1) {
178
+ const r = W[t];
179
+ He.has(r) || (He.add(r), r());
173
180
  }
174
- Z.length = 0;
175
- } while (W.length);
176
- for (; nt.length; )
177
- nt.pop()();
178
- Ne = !1, Te.clear(), ie(e);
181
+ W.length = 0;
182
+ } while (z.length);
183
+ for (; tt.length; )
184
+ tt.pop()();
185
+ Le = !1, He.clear(), ne(e);
179
186
  }
180
- function dr(e) {
187
+ function pr(e) {
181
188
  if (e.fragment !== null) {
182
189
  e.update(), ae(e.before_update);
183
190
  const t = e.dirty;
184
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
191
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
185
192
  }
186
193
  }
187
- function br(e) {
194
+ function dr(e) {
188
195
  const t = [], r = [];
189
- Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
196
+ W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
190
197
  }
191
- const yr = /* @__PURE__ */ new Set();
192
- function _r(e, t) {
193
- e && e.i && (yr.delete(e), e.i(t));
198
+ const br = /* @__PURE__ */ new Set();
199
+ function yr(e, t) {
200
+ e && e.i && (br.delete(e), e.i(t));
194
201
  }
195
- function le(e) {
202
+ function fe(e) {
196
203
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
197
204
  }
198
- function xr(e, t, r) {
205
+ function _r(e, t, r) {
199
206
  const { fragment: n, after_update: i } = e.$$;
200
- n && n.m(t, r), Le(() => {
201
- const s = e.$$.on_mount.map(Ct).filter(ke);
207
+ n && n.m(t, r), Ie(() => {
208
+ const s = e.$$.on_mount.map(xt).filter(Ve);
202
209
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
203
- }), i.forEach(Le);
210
+ }), i.forEach(Ie);
204
211
  }
205
212
  function Er(e, t) {
206
213
  const r = e.$$;
207
- r.fragment !== null && (br(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
214
+ r.fragment !== null && (dr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
208
215
  }
209
- function vr(e, t) {
210
- e.$$.dirty[0] === -1 && (W.push(e), pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
216
+ function xr(e, t) {
217
+ e.$$.dirty[0] === -1 && (z.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
211
218
  }
212
- function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
213
- const h = Ve;
214
- ie(e);
219
+ function vr(e, t, r, n, i, s, o = null, u = [-1]) {
220
+ const h = ie;
221
+ ne(e);
215
222
  const a = e.$$ = {
216
223
  fragment: null,
217
224
  ctx: [],
218
225
  // state
219
226
  props: s,
220
- update: M,
227
+ update: I,
221
228
  not_equal: i,
222
- bound: tt(),
229
+ bound: Ke(),
223
230
  // lifecycle
224
231
  on_mount: [],
225
232
  on_destroy: [],
@@ -228,48 +235,48 @@ function Cr(e, t, r, n, i, s, o = null, u = [-1]) {
228
235
  after_update: [],
229
236
  context: new Map(t.context || (h ? h.$$.context : [])),
230
237
  // everything else
231
- callbacks: tt(),
238
+ callbacks: Ke(),
232
239
  dirty: u,
233
240
  skip_bound: !1,
234
241
  root: t.target || h.$$.root
235
242
  };
236
243
  o && o(a.root);
237
244
  let l = !1;
238
- if (a.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
239
- const p = d.length ? d[0] : f;
240
- return a.ctx && i(a.ctx[c], a.ctx[c] = p) && (!a.skip_bound && a.bound[c] && a.bound[c](p), l && vr(e, c)), f;
245
+ if (a.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
246
+ const d = p.length ? p[0] : f;
247
+ return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && xr(e, c)), f;
241
248
  }) : [], a.update(), l = !0, ae(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
242
249
  if (t.hydrate) {
243
- const c = cr(t.target);
244
- a.fragment && a.fragment.l(c), c.forEach(k);
250
+ const c = hr(t.target);
251
+ a.fragment && a.fragment.l(c), c.forEach(j);
245
252
  } else
246
253
  a.fragment && a.fragment.c();
247
- t.intro && _r(e.$$.fragment), xr(e, t.target, t.anchor), $();
254
+ t.intro && yr(e.$$.fragment), _r(e, t.target, t.anchor), M();
248
255
  }
249
- ie(h);
256
+ ne(h);
250
257
  }
251
- let St;
252
- typeof HTMLElement == "function" && (St = class extends HTMLElement {
258
+ let Ht;
259
+ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
253
260
  constructor(t, r, n) {
254
261
  super();
255
262
  /** The Svelte component constructor */
256
- I(this, "$$ctor");
263
+ L(this, "$$ctor");
257
264
  /** Slots */
258
- I(this, "$$s");
265
+ L(this, "$$s");
259
266
  /** The Svelte component instance */
260
- I(this, "$$c");
267
+ L(this, "$$c");
261
268
  /** Whether or not the custom element is connected */
262
- I(this, "$$cn", !1);
269
+ L(this, "$$cn", !1);
263
270
  /** Component props data */
264
- I(this, "$$d", {});
271
+ L(this, "$$d", {});
265
272
  /** `true` if currently in the process of reflecting component props back to attributes */
266
- I(this, "$$r", !1);
273
+ L(this, "$$r", !1);
267
274
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
268
- I(this, "$$p_d", {});
275
+ L(this, "$$p_d", {});
269
276
  /** @type {Record<string, Function[]>} Event listeners */
270
- I(this, "$$l", {});
277
+ L(this, "$$l", {});
271
278
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
272
- I(this, "$$l_u", /* @__PURE__ */ new Map());
279
+ L(this, "$$l_u", /* @__PURE__ */ new Map());
273
280
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
274
281
  }
275
282
  addEventListener(t, r, n) {
@@ -286,42 +293,42 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
286
293
  }
287
294
  }
288
295
  connectedCallback() {
289
- return et(this, null, function* () {
296
+ return Ye(this, null, function* () {
290
297
  if (this.$$cn = !0, !this.$$c) {
291
298
  let t = function(s) {
292
299
  return () => {
293
300
  let o;
294
301
  return {
295
302
  c: function() {
296
- o = O("slot"), s !== "default" && H(o, "name", s);
303
+ o = w("slot"), s !== "default" && H(o, "name", s);
297
304
  },
298
305
  /**
299
306
  * @param {HTMLElement} target
300
307
  * @param {HTMLElement} [anchor]
301
308
  */
302
309
  m: function(a, l) {
303
- K(a, o, l);
310
+ Y(a, o, l);
304
311
  },
305
312
  d: function(a) {
306
- a && k(o);
313
+ a && j(o);
307
314
  }
308
315
  };
309
316
  };
310
317
  };
311
318
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
312
319
  return;
313
- const r = {}, n = gr(this);
320
+ const r = {}, n = lr(this);
314
321
  for (const s of this.$$s)
315
322
  s in n && (r[s] = [t(s)]);
316
323
  for (const s of this.attributes) {
317
324
  const o = this.$$g_p(s.name);
318
- o in this.$$d || (this.$$d[o] = ce(o, s.value, this.$$p_d, "toProp"));
325
+ o in this.$$d || (this.$$d[o] = ge(o, s.value, this.$$p_d, "toProp"));
319
326
  }
320
327
  for (const s in this.$$p_d)
321
328
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
322
329
  this.$$c = new this.$$ctor({
323
330
  target: this.shadowRoot || this,
324
- props: Ke(Ye({}, this.$$d), {
331
+ props: Je(qe({}, this.$$d), {
325
332
  $$slots: r,
326
333
  $$scope: {
327
334
  ctx: []
@@ -332,7 +339,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
332
339
  this.$$r = !0;
333
340
  for (const s in this.$$p_d)
334
341
  if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
335
- const o = ce(
342
+ const o = ge(
336
343
  s,
337
344
  this.$$d[s],
338
345
  this.$$p_d,
@@ -356,7 +363,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
356
363
  // and setting attributes through setAttribute etc, this is helpful
357
364
  attributeChangedCallback(t, r, n) {
358
365
  var i;
359
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ce(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
366
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ge(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
360
367
  }
361
368
  disconnectedCallback() {
362
369
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -369,7 +376,7 @@ typeof HTMLElement == "function" && (St = class extends HTMLElement {
369
376
  ) || t;
370
377
  }
371
378
  });
372
- function ce(e, t, r, n) {
379
+ function ge(e, t, r, n) {
373
380
  var s;
374
381
  const i = (s = r[e]) == null ? void 0 : s.type;
375
382
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -400,7 +407,7 @@ function ce(e, t, r, n) {
400
407
  }
401
408
  }
402
409
  function Tr(e, t, r, n, i, s) {
403
- let o = class extends St {
410
+ let o = class extends Ht {
404
411
  constructor() {
405
412
  super(e, r, i), this.$$p_d = t;
406
413
  }
@@ -417,7 +424,7 @@ function Tr(e, t, r, n, i, s) {
417
424
  },
418
425
  set(h) {
419
426
  var a;
420
- h = ce(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
427
+ h = ge(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
421
428
  }
422
429
  });
423
430
  }), n.forEach((u) => {
@@ -430,7 +437,7 @@ function Tr(e, t, r, n, i, s) {
430
437
  }), e.element = /** @type {any} */
431
438
  o, o;
432
439
  }
433
- class Hr {
440
+ class Cr {
434
441
  constructor() {
435
442
  /**
436
443
  * ### PRIVATE API
@@ -439,7 +446,7 @@ class Hr {
439
446
  *
440
447
  * @type {any}
441
448
  */
442
- I(this, "$$");
449
+ L(this, "$$");
443
450
  /**
444
451
  * ### PRIVATE API
445
452
  *
@@ -447,11 +454,11 @@ class Hr {
447
454
  *
448
455
  * @type {any}
449
456
  */
450
- I(this, "$$set");
457
+ L(this, "$$set");
451
458
  }
452
459
  /** @returns {void} */
453
460
  $destroy() {
454
- Er(this, 1), this.$destroy = M;
461
+ Er(this, 1), this.$destroy = I;
455
462
  }
456
463
  /**
457
464
  * @template {Extract<keyof Events, string>} K
@@ -460,8 +467,8 @@ class Hr {
460
467
  * @returns {() => void}
461
468
  */
462
469
  $on(t, r) {
463
- if (!ke(r))
464
- return M;
470
+ if (!Ve(r))
471
+ return I;
465
472
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
466
473
  return n.push(r), () => {
467
474
  const i = n.indexOf(r);
@@ -473,63 +480,63 @@ class Hr {
473
480
  * @returns {void}
474
481
  */
475
482
  $set(t) {
476
- this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
483
+ this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
477
484
  }
478
485
  }
479
- const Ar = "4";
480
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ar);
481
- const z = [];
482
- function Sr(e, t) {
486
+ const Hr = "4";
487
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
488
+ const X = [];
489
+ function Ar(e, t) {
483
490
  return {
484
- subscribe: ye(e, t).subscribe
491
+ subscribe: _e(e, t).subscribe
485
492
  };
486
493
  }
487
- function ye(e, t = M) {
494
+ function _e(e, t = I) {
488
495
  let r;
489
496
  const n = /* @__PURE__ */ new Set();
490
497
  function i(u) {
491
- if (Tt(e, u) && (e = u, r)) {
492
- const h = !z.length;
498
+ if (vt(e, u) && (e = u, r)) {
499
+ const h = !X.length;
493
500
  for (const a of n)
494
- a[1](), z.push(a, e);
501
+ a[1](), X.push(a, e);
495
502
  if (h) {
496
- for (let a = 0; a < z.length; a += 2)
497
- z[a][0](z[a + 1]);
498
- z.length = 0;
503
+ for (let a = 0; a < X.length; a += 2)
504
+ X[a][0](X[a + 1]);
505
+ X.length = 0;
499
506
  }
500
507
  }
501
508
  }
502
509
  function s(u) {
503
510
  i(u(e));
504
511
  }
505
- function o(u, h = M) {
512
+ function o(u, h = I) {
506
513
  const a = [u, h];
507
- return n.add(a), n.size === 1 && (r = t(i, s) || M), u(e), () => {
514
+ return n.add(a), n.size === 1 && (r = t(i, s) || I), u(e), () => {
508
515
  n.delete(a), n.size === 0 && r && (r(), r = null);
509
516
  };
510
517
  }
511
518
  return { set: i, update: s, subscribe: o };
512
519
  }
513
- function ee(e, t, r) {
520
+ function K(e, t, r) {
514
521
  const n = !Array.isArray(e), i = n ? [e] : e;
515
522
  if (!i.every(Boolean))
516
523
  throw new Error("derived() expects stores as input, got a falsy value");
517
524
  const s = t.length < 2;
518
- return Sr(r, (o, u) => {
525
+ return Ar(r, (o, u) => {
519
526
  let h = !1;
520
527
  const a = [];
521
- let l = 0, c = M;
528
+ let l = 0, c = I;
522
529
  const f = () => {
523
530
  if (l)
524
531
  return;
525
532
  c();
526
- const p = t(n ? a[0] : a, o, u);
527
- s ? o(p) : c = ke(p) ? p : M;
528
- }, d = i.map(
529
- (p, g) => Ht(
530
- p,
531
- (E) => {
532
- a[g] = E, l &= ~(1 << g), h && f();
533
+ const d = t(n ? a[0] : a, o, u);
534
+ s ? o(d) : c = Ve(d) ? d : I;
535
+ }, p = i.map(
536
+ (d, g) => Tt(
537
+ d,
538
+ (x) => {
539
+ a[g] = x, l &= ~(1 << g), h && f();
533
540
  },
534
541
  () => {
535
542
  l |= 1 << g;
@@ -537,110 +544,110 @@ function ee(e, t, r) {
537
544
  )
538
545
  );
539
546
  return h = !0, f(), function() {
540
- ae(d), c(), h = !1;
547
+ ae(p), c(), h = !1;
541
548
  };
542
549
  });
543
550
  }
544
- function Br(e) {
551
+ function Sr(e) {
545
552
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
546
553
  }
547
- var Or = function(t) {
548
- return Pr(t) && !wr(t);
554
+ var Br = function(t) {
555
+ return wr(t) && !Or(t);
549
556
  };
550
- function Pr(e) {
557
+ function wr(e) {
551
558
  return !!e && typeof e == "object";
552
559
  }
553
- function wr(e) {
560
+ function Or(e) {
554
561
  var t = Object.prototype.toString.call(e);
555
- return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
562
+ return t === "[object RegExp]" || t === "[object Date]" || Lr(e);
556
563
  }
557
- var Nr = typeof Symbol == "function" && Symbol.for, Lr = Nr ? Symbol.for("react.element") : 60103;
558
- function Ir(e) {
559
- return e.$$typeof === Lr;
564
+ var Pr = typeof Symbol == "function" && Symbol.for, Nr = Pr ? Symbol.for("react.element") : 60103;
565
+ function Lr(e) {
566
+ return e.$$typeof === Nr;
560
567
  }
561
- function Mr(e) {
568
+ function Ir(e) {
562
569
  return Array.isArray(e) ? [] : {};
563
570
  }
564
571
  function se(e, t) {
565
- return t.clone !== !1 && t.isMergeableObject(e) ? Q(Mr(e), e, t) : e;
572
+ return t.clone !== !1 && t.isMergeableObject(e) ? Z(Ir(e), e, t) : e;
566
573
  }
567
- function $r(e, t, r) {
574
+ function Mr(e, t, r) {
568
575
  return e.concat(t).map(function(n) {
569
576
  return se(n, r);
570
577
  });
571
578
  }
572
- function Rr(e, t) {
579
+ function $r(e, t) {
573
580
  if (!t.customMerge)
574
- return Q;
581
+ return Z;
575
582
  var r = t.customMerge(e);
576
- return typeof r == "function" ? r : Q;
583
+ return typeof r == "function" ? r : Z;
577
584
  }
578
- function Ur(e) {
585
+ function Rr(e) {
579
586
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
580
587
  return Object.propertyIsEnumerable.call(e, t);
581
588
  }) : [];
582
589
  }
583
- function it(e) {
584
- return Object.keys(e).concat(Ur(e));
590
+ function rt(e) {
591
+ return Object.keys(e).concat(Rr(e));
585
592
  }
586
- function Bt(e, t) {
593
+ function At(e, t) {
587
594
  try {
588
595
  return t in e;
589
596
  } catch (r) {
590
597
  return !1;
591
598
  }
592
599
  }
593
- function Gr(e, t) {
594
- return Bt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
600
+ function Ur(e, t) {
601
+ return At(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
595
602
  }
596
603
  function Dr(e, t, r) {
597
604
  var n = {};
598
- return r.isMergeableObject(e) && it(e).forEach(function(i) {
605
+ return r.isMergeableObject(e) && rt(e).forEach(function(i) {
599
606
  n[i] = se(e[i], r);
600
- }), it(t).forEach(function(i) {
601
- Gr(e, i) || (Bt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Rr(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
607
+ }), rt(t).forEach(function(i) {
608
+ Ur(e, i) || (At(e, i) && r.isMergeableObject(t[i]) ? n[i] = $r(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
602
609
  }), n;
603
610
  }
604
- function Q(e, t, r) {
605
- r = r || {}, r.arrayMerge = r.arrayMerge || $r, r.isMergeableObject = r.isMergeableObject || Or, r.cloneUnlessOtherwiseSpecified = se;
611
+ function Z(e, t, r) {
612
+ r = r || {}, r.arrayMerge = r.arrayMerge || Mr, r.isMergeableObject = r.isMergeableObject || Br, r.cloneUnlessOtherwiseSpecified = se;
606
613
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
607
614
  return s ? n ? r.arrayMerge(e, t, r) : Dr(e, t, r) : se(t, r);
608
615
  }
609
- Q.all = function(t, r) {
616
+ Z.all = function(t, r) {
610
617
  if (!Array.isArray(t))
611
618
  throw new Error("first argument should be an array");
612
619
  return t.reduce(function(n, i) {
613
- return Q(n, i, r);
620
+ return Z(n, i, r);
614
621
  }, {});
615
622
  };
616
- var Fr = Q, jr = Fr;
617
- const kr = /* @__PURE__ */ Br(jr);
618
- var Ie = function(e, t) {
619
- return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
623
+ var Gr = Z, Fr = Gr;
624
+ const jr = /* @__PURE__ */ Sr(Fr);
625
+ var Me = function(e, t) {
626
+ return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
620
627
  r.__proto__ = n;
621
628
  } || function(r, n) {
622
629
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
623
- }, Ie(e, t);
630
+ }, Me(e, t);
624
631
  };
625
- function _e(e, t) {
632
+ function Ee(e, t) {
626
633
  if (typeof t != "function" && t !== null)
627
634
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
628
- Ie(e, t);
635
+ Me(e, t);
629
636
  function r() {
630
637
  this.constructor = e;
631
638
  }
632
639
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
633
640
  }
634
- var x = function() {
635
- return x = Object.assign || function(t) {
641
+ var E = function() {
642
+ return E = Object.assign || function(t) {
636
643
  for (var r, n = 1, i = arguments.length; n < i; n++) {
637
644
  r = arguments[n];
638
645
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
639
646
  }
640
647
  return t;
641
- }, x.apply(this, arguments);
648
+ }, E.apply(this, arguments);
642
649
  };
643
- function Vr(e, t) {
650
+ function kr(e, t) {
644
651
  var r = {};
645
652
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
646
653
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -648,107 +655,105 @@ function Vr(e, t) {
648
655
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
649
656
  return r;
650
657
  }
651
- function He(e, t, r) {
658
+ function Ae(e, t, r) {
652
659
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
653
660
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
654
661
  return e.concat(s || Array.prototype.slice.call(t));
655
662
  }
656
- function Ae(e, t) {
657
- var r = t && t.cache ? t.cache : qr, n = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : zr;
663
+ function Se(e, t) {
664
+ var r = t && t.cache ? t.cache : qr, n = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : zr;
658
665
  return i(e, {
659
666
  cache: r,
660
667
  serializer: n
661
668
  });
662
669
  }
663
- function Xr(e) {
670
+ function Vr(e) {
664
671
  return e == null || typeof e == "number" || typeof e == "boolean";
665
672
  }
666
- function Ot(e, t, r, n) {
667
- var i = Xr(n) ? n : r(n), s = t.get(i);
673
+ function Xr(e, t, r, n) {
674
+ var i = Vr(n) ? n : r(n), s = t.get(i);
668
675
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
669
676
  }
670
- function Pt(e, t, r) {
677
+ function St(e, t, r) {
671
678
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
672
679
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
673
680
  }
674
- function Xe(e, t, r, n, i) {
681
+ function Bt(e, t, r, n, i) {
675
682
  return r.bind(t, e, n, i);
676
683
  }
677
684
  function zr(e, t) {
678
- var r = e.length === 1 ? Ot : Pt;
679
- return Xe(e, this, r, t.cache.create(), t.serializer);
685
+ var r = e.length === 1 ? Xr : St;
686
+ return Bt(e, this, r, t.cache.create(), t.serializer);
680
687
  }
681
688
  function Wr(e, t) {
682
- return Xe(e, this, Pt, t.cache.create(), t.serializer);
689
+ return Bt(e, this, St, t.cache.create(), t.serializer);
683
690
  }
684
- function Zr(e, t) {
685
- return Xe(e, this, Ot, t.cache.create(), t.serializer);
686
- }
687
- var Qr = function() {
691
+ var Zr = function() {
688
692
  return JSON.stringify(arguments);
689
- };
690
- function ze() {
691
- this.cache = /* @__PURE__ */ Object.create(null);
692
- }
693
- ze.prototype.get = function(e) {
694
- return this.cache[e];
695
- };
696
- ze.prototype.set = function(e, t) {
697
- this.cache[e] = t;
698
- };
699
- var qr = {
693
+ }, Qr = (
694
+ /** @class */
695
+ function() {
696
+ function e() {
697
+ this.cache = /* @__PURE__ */ Object.create(null);
698
+ }
699
+ return e.prototype.get = function(t) {
700
+ return this.cache[t];
701
+ }, e.prototype.set = function(t, r) {
702
+ this.cache[t] = r;
703
+ }, e;
704
+ }()
705
+ ), qr = {
700
706
  create: function() {
701
- return new ze();
707
+ return new Qr();
702
708
  }
703
- }, Se = {
704
- variadic: Wr,
705
- monadic: Zr
709
+ }, Be = {
710
+ variadic: Wr
706
711
  }, y;
707
712
  (function(e) {
708
713
  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";
709
714
  })(y || (y = {}));
710
- var C;
715
+ var T;
711
716
  (function(e) {
712
717
  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";
713
- })(C || (C = {}));
714
- var q;
718
+ })(T || (T = {}));
719
+ var Q;
715
720
  (function(e) {
716
721
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
717
- })(q || (q = {}));
718
- function st(e) {
719
- return e.type === C.literal;
722
+ })(Q || (Q = {}));
723
+ function nt(e) {
724
+ return e.type === T.literal;
720
725
  }
721
726
  function Jr(e) {
722
- return e.type === C.argument;
727
+ return e.type === T.argument;
723
728
  }
724
729
  function wt(e) {
725
- return e.type === C.number;
730
+ return e.type === T.number;
726
731
  }
727
- function Nt(e) {
728
- return e.type === C.date;
732
+ function Ot(e) {
733
+ return e.type === T.date;
729
734
  }
730
- function Lt(e) {
731
- return e.type === C.time;
735
+ function Pt(e) {
736
+ return e.type === T.time;
732
737
  }
733
- function It(e) {
734
- return e.type === C.select;
738
+ function Nt(e) {
739
+ return e.type === T.select;
735
740
  }
736
- function Mt(e) {
737
- return e.type === C.plural;
741
+ function Lt(e) {
742
+ return e.type === T.plural;
738
743
  }
739
744
  function Yr(e) {
740
- return e.type === C.pound;
745
+ return e.type === T.pound;
741
746
  }
742
- function $t(e) {
743
- return e.type === C.tag;
747
+ function It(e) {
748
+ return e.type === T.tag;
744
749
  }
745
- function Rt(e) {
746
- return !!(e && typeof e == "object" && e.type === q.number);
750
+ function Mt(e) {
751
+ return !!(e && typeof e == "object" && e.type === Q.number);
747
752
  }
748
- function Me(e) {
749
- return !!(e && typeof e == "object" && e.type === q.dateTime);
753
+ function $e(e) {
754
+ return !!(e && typeof e == "object" && e.type === Q.dateTime);
750
755
  }
751
- var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
756
+ var $t = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
752
757
  function en(e) {
753
758
  var t = {};
754
759
  return e.replace(Kr, function(r) {
@@ -862,14 +867,14 @@ function rn(e) {
862
867
  function nn(e) {
863
868
  return e.replace(/^(.*?)-/, "");
864
869
  }
865
- var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gt = /^(@+)?(\+|#+)?[rs]?$/g, sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
866
- function at(e) {
870
+ var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rt = /^(@+)?(\+|#+)?[rs]?$/g, sn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
871
+ function st(e) {
867
872
  var t = {};
868
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gt, function(r, n, i) {
873
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rt, function(r, n, i) {
869
874
  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)), "";
870
875
  }), t;
871
876
  }
872
- function Ft(e) {
877
+ function Dt(e) {
873
878
  switch (e) {
874
879
  case "sign-auto":
875
880
  return {
@@ -917,14 +922,14 @@ function on(e) {
917
922
  notation: "scientific"
918
923
  }, e = e.slice(1)), t) {
919
924
  var r = e.slice(0, 2);
920
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
925
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
921
926
  throw new Error("Malformed concise eng/scientific notation");
922
927
  t.minimumIntegerDigits = e.length;
923
928
  }
924
929
  return t;
925
930
  }
926
- function ut(e) {
927
- var t = {}, r = Ft(e);
931
+ function ot(e) {
932
+ var t = {}, r = Dt(e);
928
933
  return r || t;
929
934
  }
930
935
  function an(e) {
@@ -962,13 +967,13 @@ function an(e) {
962
967
  t.notation = "compact", t.compactDisplay = "long";
963
968
  continue;
964
969
  case "scientific":
965
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
966
- return x(x({}, h), ut(a));
970
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
971
+ return E(E({}, h), ot(a));
967
972
  }, {}));
968
973
  continue;
969
974
  case "engineering":
970
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
971
- return x(x({}, h), ut(a));
975
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
976
+ return E(E({}, h), ot(a));
972
977
  }, {}));
973
978
  continue;
974
979
  case "notation-simple":
@@ -1013,45 +1018,45 @@ function an(e) {
1013
1018
  case "integer-width":
1014
1019
  if (i.options.length > 1)
1015
1020
  throw new RangeError("integer-width stems only accept a single optional option");
1016
- i.options[0].replace(sn, function(h, a, l, c, f, d) {
1021
+ i.options[0].replace(sn, function(h, a, l, c, f, p) {
1017
1022
  if (a)
1018
1023
  t.minimumIntegerDigits = l.length;
1019
1024
  else {
1020
1025
  if (c && f)
1021
1026
  throw new Error("We currently do not support maximum integer digits");
1022
- if (d)
1027
+ if (p)
1023
1028
  throw new Error("We currently do not support exact integer digits");
1024
1029
  }
1025
1030
  return "";
1026
1031
  });
1027
1032
  continue;
1028
1033
  }
1029
- if (Dt.test(i.stem)) {
1034
+ if (Ut.test(i.stem)) {
1030
1035
  t.minimumIntegerDigits = i.stem.length;
1031
1036
  continue;
1032
1037
  }
1033
- if (ot.test(i.stem)) {
1038
+ if (it.test(i.stem)) {
1034
1039
  if (i.options.length > 1)
1035
1040
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1036
- i.stem.replace(ot, function(h, a, l, c, f, d) {
1037
- return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1041
+ i.stem.replace(it, function(h, a, l, c, f, p) {
1042
+ return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1038
1043
  });
1039
1044
  var s = i.options[0];
1040
- s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), at(s)));
1045
+ s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), st(s)));
1041
1046
  continue;
1042
1047
  }
1043
- if (Gt.test(i.stem)) {
1044
- t = x(x({}, t), at(i.stem));
1048
+ if (Rt.test(i.stem)) {
1049
+ t = E(E({}, t), st(i.stem));
1045
1050
  continue;
1046
1051
  }
1047
- var o = Ft(i.stem);
1048
- o && (t = x(x({}, t), o));
1052
+ var o = Dt(i.stem);
1053
+ o && (t = E(E({}, t), o));
1049
1054
  var u = on(i.stem);
1050
- u && (t = x(x({}, t), u));
1055
+ u && (t = E(E({}, t), u));
1051
1056
  }
1052
1057
  return t;
1053
1058
  }
1054
- var fe = {
1059
+ var ce = {
1055
1060
  "001": [
1056
1061
  "H",
1057
1062
  "h"
@@ -2500,23 +2505,23 @@ function hn(e) {
2500
2505
  }
2501
2506
  var r = e.language, n;
2502
2507
  r !== "root" && (n = e.maximize().region);
2503
- var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2508
+ var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2504
2509
  return i[0];
2505
2510
  }
2506
- var Be, ln = new RegExp("^".concat(Ut.source, "*")), fn = new RegExp("".concat(Ut.source, "*$"));
2511
+ var we, ln = new RegExp("^".concat($t.source, "*")), fn = new RegExp("".concat($t.source, "*$"));
2507
2512
  function _(e, t) {
2508
2513
  return { start: e, end: t };
2509
2514
  }
2510
2515
  var cn = !!String.prototype.startsWith && "_a".startsWith("a", 1), gn = !!String.fromCodePoint, mn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, dn = !!String.prototype.trimStart, bn = !!String.prototype.trimEnd, yn = !!Number.isSafeInteger, _n = yn ? Number.isSafeInteger : function(e) {
2511
2516
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2512
- }, $e = !0;
2517
+ }, Re = !0;
2513
2518
  try {
2514
- var xn = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2515
- $e = ((Be = xn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
2519
+ var En = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2520
+ Re = ((we = En.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
2516
2521
  } catch (e) {
2517
- $e = !1;
2522
+ Re = !1;
2518
2523
  }
2519
- var ht = cn ? (
2524
+ var at = cn ? (
2520
2525
  // Native
2521
2526
  function(t, r, n) {
2522
2527
  return t.startsWith(r, n);
@@ -2526,7 +2531,7 @@ var ht = cn ? (
2526
2531
  function(t, r, n) {
2527
2532
  return t.slice(n, n + r.length) === r;
2528
2533
  }
2529
- ), Re = gn ? String.fromCodePoint : (
2534
+ ), Ue = gn ? String.fromCodePoint : (
2530
2535
  // IE11
2531
2536
  function() {
2532
2537
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2538,7 +2543,7 @@ var ht = cn ? (
2538
2543
  }
2539
2544
  return n;
2540
2545
  }
2541
- ), lt = (
2546
+ ), ut = (
2542
2547
  // native
2543
2548
  mn ? Object.fromEntries : (
2544
2549
  // Ponyfill
@@ -2550,7 +2555,7 @@ var ht = cn ? (
2550
2555
  return r;
2551
2556
  }
2552
2557
  )
2553
- ), jt = pn ? (
2558
+ ), Gt = pn ? (
2554
2559
  // Native
2555
2560
  function(t, r) {
2556
2561
  return t.codePointAt(r);
@@ -2564,7 +2569,7 @@ var ht = cn ? (
2564
2569
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2565
2570
  }
2566
2571
  }
2567
- ), En = dn ? (
2572
+ ), xn = dn ? (
2568
2573
  // Native
2569
2574
  function(t) {
2570
2575
  return t.trimStart();
@@ -2585,29 +2590,29 @@ var ht = cn ? (
2585
2590
  return t.replace(fn, "");
2586
2591
  }
2587
2592
  );
2588
- function kt(e, t) {
2593
+ function Ft(e, t) {
2589
2594
  return new RegExp(e, t);
2590
2595
  }
2591
- var Ue;
2592
- if ($e) {
2593
- var ft = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2594
- Ue = function(t, r) {
2596
+ var De;
2597
+ if (Re) {
2598
+ var ht = Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2599
+ De = function(t, r) {
2595
2600
  var n;
2596
- ft.lastIndex = r;
2597
- var i = ft.exec(t);
2601
+ ht.lastIndex = r;
2602
+ var i = ht.exec(t);
2598
2603
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2599
2604
  };
2600
2605
  } else
2601
- Ue = function(t, r) {
2606
+ De = function(t, r) {
2602
2607
  for (var n = []; ; ) {
2603
- var i = jt(t, r);
2604
- if (i === void 0 || Vt(i) || An(i))
2608
+ var i = Gt(t, r);
2609
+ if (i === void 0 || jt(i) || An(i))
2605
2610
  break;
2606
2611
  n.push(i), r += i >= 65536 ? 2 : 1;
2607
2612
  }
2608
- return Re.apply(void 0, n);
2613
+ return Ue.apply(void 0, n);
2609
2614
  };
2610
- var Cn = (
2615
+ var Tn = (
2611
2616
  /** @class */
2612
2617
  function() {
2613
2618
  function e(t, r) {
@@ -2631,7 +2636,7 @@ var Cn = (
2631
2636
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
2632
2637
  var u = this.clonePosition();
2633
2638
  this.bump(), i.push({
2634
- type: C.pound,
2639
+ type: T.pound,
2635
2640
  location: _(u, this.clonePosition())
2636
2641
  });
2637
2642
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
@@ -2659,7 +2664,7 @@ var Cn = (
2659
2664
  if (this.bumpSpace(), this.bumpIf("/>"))
2660
2665
  return {
2661
2666
  val: {
2662
- type: C.literal,
2667
+ type: T.literal,
2663
2668
  value: "<".concat(i, "/>"),
2664
2669
  location: _(n, this.clonePosition())
2665
2670
  },
@@ -2676,7 +2681,7 @@ var Cn = (
2676
2681
  var h = this.clonePosition(), a = this.parseTagName();
2677
2682
  return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2678
2683
  val: {
2679
- type: C.tag,
2684
+ type: T.tag,
2680
2685
  value: i,
2681
2686
  children: o,
2682
2687
  location: _(n, this.clonePosition())
@@ -2713,12 +2718,12 @@ var Cn = (
2713
2718
  }
2714
2719
  var h = _(n, this.clonePosition());
2715
2720
  return {
2716
- val: { type: C.literal, value: i, location: h },
2721
+ val: { type: T.literal, value: i, location: h },
2717
2722
  err: null
2718
2723
  };
2719
2724
  }, e.prototype.tryParseLeftAngleBracket = function() {
2720
2725
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2721
- !Tn(this.peek() || 0)) ? (this.bump(), "<") : null;
2726
+ !Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
2722
2727
  }, e.prototype.tryParseQuote = function(t) {
2723
2728
  if (this.isEOF() || this.char() !== 39)
2724
2729
  return null;
@@ -2752,12 +2757,12 @@ var Cn = (
2752
2757
  r.push(n);
2753
2758
  this.bump();
2754
2759
  }
2755
- return Re.apply(void 0, r);
2760
+ return Ue.apply(void 0, r);
2756
2761
  }, e.prototype.tryParseUnquoted = function(t, r) {
2757
2762
  if (this.isEOF())
2758
2763
  return null;
2759
2764
  var n = this.char();
2760
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
2765
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
2761
2766
  }, e.prototype.parseArgument = function(t, r) {
2762
2767
  var n = this.clonePosition();
2763
2768
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2773,7 +2778,7 @@ var Cn = (
2773
2778
  case 125:
2774
2779
  return this.bump(), {
2775
2780
  val: {
2776
- type: C.argument,
2781
+ type: T.argument,
2777
2782
  // value does not include the opening and closing braces.
2778
2783
  value: i,
2779
2784
  location: _(n, this.clonePosition())
@@ -2786,7 +2791,7 @@ var Cn = (
2786
2791
  return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2787
2792
  }
2788
2793
  }, e.prototype.parseIdentifierIfPossible = function() {
2789
- var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
2794
+ var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
2790
2795
  this.bumpTo(i);
2791
2796
  var s = this.clonePosition(), o = _(t, s);
2792
2797
  return { value: n, location: o };
@@ -2808,41 +2813,41 @@ var Cn = (
2808
2813
  var f = vn(c.val);
2809
2814
  if (f.length === 0)
2810
2815
  return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
2811
- var d = _(l, this.clonePosition());
2812
- a = { style: f, styleLocation: d };
2816
+ var p = _(l, this.clonePosition());
2817
+ a = { style: f, styleLocation: p };
2813
2818
  }
2814
- var p = this.tryParseArgumentClose(i);
2815
- if (p.err)
2816
- return p;
2819
+ var d = this.tryParseArgumentClose(i);
2820
+ if (d.err)
2821
+ return d;
2817
2822
  var g = _(i, this.clonePosition());
2818
- if (a && ht(a == null ? void 0 : a.style, "::", 0)) {
2819
- var E = En(a.style.slice(2));
2823
+ if (a && at(a == null ? void 0 : a.style, "::", 0)) {
2824
+ var x = xn(a.style.slice(2));
2820
2825
  if (u === "number") {
2821
- var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
2826
+ var c = this.parseNumberSkeletonFromString(x, a.styleLocation);
2822
2827
  return c.err ? c : {
2823
- val: { type: C.number, value: n, location: g, style: c.val },
2828
+ val: { type: T.number, value: n, location: g, style: c.val },
2824
2829
  err: null
2825
2830
  };
2826
2831
  } else {
2827
- if (E.length === 0)
2832
+ if (x.length === 0)
2828
2833
  return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
2829
- var m = E;
2830
- this.locale && (m = un(E, this.locale));
2834
+ var m = x;
2835
+ this.locale && (m = un(x, this.locale));
2831
2836
  var f = {
2832
- type: q.dateTime,
2837
+ type: Q.dateTime,
2833
2838
  pattern: m,
2834
2839
  location: a.styleLocation,
2835
2840
  parsedOptions: this.shouldParseSkeletons ? en(m) : {}
2836
- }, T = u === "date" ? C.date : C.time;
2841
+ }, C = u === "date" ? T.date : T.time;
2837
2842
  return {
2838
- val: { type: T, value: n, location: g, style: f },
2843
+ val: { type: C, value: n, location: g, style: f },
2839
2844
  err: null
2840
2845
  };
2841
2846
  }
2842
2847
  }
2843
2848
  return {
2844
2849
  val: {
2845
- type: u === "number" ? C.number : u === "date" ? C.date : C.time,
2850
+ type: u === "number" ? T.number : u === "date" ? T.date : T.time,
2846
2851
  value: n,
2847
2852
  location: g,
2848
2853
  style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
@@ -2853,43 +2858,43 @@ var Cn = (
2853
2858
  case "plural":
2854
2859
  case "selectordinal":
2855
2860
  case "select": {
2856
- var A = this.clonePosition();
2861
+ var S = this.clonePosition();
2857
2862
  if (this.bumpSpace(), !this.bumpIf(","))
2858
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(A, x({}, A)));
2863
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, E({}, S)));
2859
2864
  this.bumpSpace();
2860
- var L = this.parseIdentifierIfPossible(), B = 0;
2861
- if (u !== "select" && L.value === "offset") {
2865
+ var P = this.parseIdentifierIfPossible(), B = 0;
2866
+ if (u !== "select" && P.value === "offset") {
2862
2867
  if (!this.bumpIf(":"))
2863
2868
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
2864
2869
  this.bumpSpace();
2865
2870
  var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2866
2871
  if (c.err)
2867
2872
  return c;
2868
- this.bumpSpace(), L = this.parseIdentifierIfPossible(), B = c.val;
2873
+ this.bumpSpace(), P = this.parseIdentifierIfPossible(), B = c.val;
2869
2874
  }
2870
- var S = this.tryParsePluralOrSelectOptions(t, u, r, L);
2871
- if (S.err)
2872
- return S;
2873
- var p = this.tryParseArgumentClose(i);
2874
- if (p.err)
2875
- return p;
2876
- var w = _(i, this.clonePosition());
2875
+ var A = this.tryParsePluralOrSelectOptions(t, u, r, P);
2876
+ if (A.err)
2877
+ return A;
2878
+ var d = this.tryParseArgumentClose(i);
2879
+ if (d.err)
2880
+ return d;
2881
+ var N = _(i, this.clonePosition());
2877
2882
  return u === "select" ? {
2878
2883
  val: {
2879
- type: C.select,
2884
+ type: T.select,
2880
2885
  value: n,
2881
- options: lt(S.val),
2882
- location: w
2886
+ options: ut(A.val),
2887
+ location: N
2883
2888
  },
2884
2889
  err: null
2885
2890
  } : {
2886
2891
  val: {
2887
- type: C.plural,
2892
+ type: T.plural,
2888
2893
  value: n,
2889
- options: lt(S.val),
2894
+ options: ut(A.val),
2890
2895
  offset: B,
2891
2896
  pluralType: u === "plural" ? "cardinal" : "ordinal",
2892
- location: w
2897
+ location: N
2893
2898
  },
2894
2899
  err: null
2895
2900
  };
@@ -2943,7 +2948,7 @@ var Cn = (
2943
2948
  }
2944
2949
  return {
2945
2950
  val: {
2946
- type: q.number,
2951
+ type: Q.number,
2947
2952
  tokens: n,
2948
2953
  location: r,
2949
2954
  parsedOptions: this.shouldParseSkeletons ? an(n) : {}
@@ -2965,20 +2970,20 @@ var Cn = (
2965
2970
  if (h.has(a))
2966
2971
  return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2967
2972
  a === "other" && (o = !0), this.bumpSpace();
2968
- var d = this.clonePosition();
2973
+ var p = this.clonePosition();
2969
2974
  if (!this.bumpIf("{"))
2970
2975
  return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
2971
- var p = this.parseMessage(t + 1, r, n);
2972
- if (p.err)
2973
- return p;
2974
- var g = this.tryParseArgumentClose(d);
2976
+ var d = this.parseMessage(t + 1, r, n);
2977
+ if (d.err)
2978
+ return d;
2979
+ var g = this.tryParseArgumentClose(p);
2975
2980
  if (g.err)
2976
2981
  return g;
2977
2982
  u.push([
2978
2983
  a,
2979
2984
  {
2980
- value: p.val,
2981
- location: _(d, this.clonePosition())
2985
+ value: d.val,
2986
+ location: _(p, this.clonePosition())
2982
2987
  }
2983
2988
  ]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
2984
2989
  }
@@ -3009,7 +3014,7 @@ var Cn = (
3009
3014
  var t = this.position.offset;
3010
3015
  if (t >= this.message.length)
3011
3016
  throw Error("out of bound");
3012
- var r = jt(this.message, t);
3017
+ var r = Gt(this.message, t);
3013
3018
  if (r === void 0)
3014
3019
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3015
3020
  return r;
@@ -3028,7 +3033,7 @@ var Cn = (
3028
3033
  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);
3029
3034
  }
3030
3035
  }, e.prototype.bumpIf = function(t) {
3031
- if (ht(this.message, t, this.offset())) {
3036
+ if (at(this.message, t, this.offset())) {
3032
3037
  for (var r = 0; r < t.length; r++)
3033
3038
  this.bump();
3034
3039
  return !0;
@@ -3050,7 +3055,7 @@ var Cn = (
3050
3055
  break;
3051
3056
  }
3052
3057
  }, e.prototype.bumpSpace = function() {
3053
- for (; !this.isEOF() && Vt(this.char()); )
3058
+ for (; !this.isEOF() && jt(this.char()); )
3054
3059
  this.bump();
3055
3060
  }, e.prototype.peek = function() {
3056
3061
  if (this.isEOF())
@@ -3063,43 +3068,43 @@ var Cn = (
3063
3068
  function Ge(e) {
3064
3069
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3065
3070
  }
3066
- function Tn(e) {
3071
+ function Cn(e) {
3067
3072
  return Ge(e) || e === 47;
3068
3073
  }
3069
3074
  function Hn(e) {
3070
3075
  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;
3071
3076
  }
3072
- function Vt(e) {
3077
+ function jt(e) {
3073
3078
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3074
3079
  }
3075
3080
  function An(e) {
3076
3081
  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;
3077
3082
  }
3078
- function De(e) {
3083
+ function Fe(e) {
3079
3084
  e.forEach(function(t) {
3080
- if (delete t.location, It(t) || Mt(t))
3085
+ if (delete t.location, Nt(t) || Lt(t))
3081
3086
  for (var r in t.options)
3082
- delete t.options[r].location, De(t.options[r].value);
3083
- else wt(t) && Rt(t.style) || (Nt(t) || Lt(t)) && Me(t.style) ? delete t.style.location : $t(t) && De(t.children);
3087
+ delete t.options[r].location, Fe(t.options[r].value);
3088
+ else wt(t) && Mt(t.style) || (Ot(t) || Pt(t)) && $e(t.style) ? delete t.style.location : It(t) && Fe(t.children);
3084
3089
  });
3085
3090
  }
3086
3091
  function Sn(e, t) {
3087
- t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3088
- var r = new Cn(e, t).parse();
3092
+ t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3093
+ var r = new Tn(e, t).parse();
3089
3094
  if (r.err) {
3090
3095
  var n = SyntaxError(y[r.err.kind]);
3091
3096
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3092
3097
  }
3093
- return t != null && t.captureLocation || De(r.val), r.val;
3098
+ return t != null && t.captureLocation || Fe(r.val), r.val;
3094
3099
  }
3095
- var J;
3100
+ var q;
3096
3101
  (function(e) {
3097
3102
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3098
- })(J || (J = {}));
3103
+ })(q || (q = {}));
3099
3104
  var xe = (
3100
3105
  /** @class */
3101
3106
  function(e) {
3102
- _e(t, e);
3107
+ Ee(t, e);
3103
3108
  function t(r, n, i) {
3104
3109
  var s = e.call(this, r) || this;
3105
3110
  return s.code = n, s.originalMessage = i, s;
@@ -3108,153 +3113,153 @@ var xe = (
3108
3113
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3109
3114
  }, t;
3110
3115
  }(Error)
3111
- ), ct = (
3116
+ ), lt = (
3112
3117
  /** @class */
3113
3118
  function(e) {
3114
- _e(t, e);
3119
+ Ee(t, e);
3115
3120
  function t(r, n, i, s) {
3116
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
3121
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
3117
3122
  }
3118
3123
  return t;
3119
3124
  }(xe)
3120
3125
  ), Bn = (
3121
3126
  /** @class */
3122
3127
  function(e) {
3123
- _e(t, e);
3128
+ Ee(t, e);
3124
3129
  function t(r, n, i) {
3125
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
3130
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
3126
3131
  }
3127
3132
  return t;
3128
3133
  }(xe)
3129
- ), On = (
3134
+ ), wn = (
3130
3135
  /** @class */
3131
3136
  function(e) {
3132
- _e(t, e);
3137
+ Ee(t, e);
3133
3138
  function t(r, n) {
3134
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
3139
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
3135
3140
  }
3136
3141
  return t;
3137
3142
  }(xe)
3138
- ), P;
3143
+ ), O;
3139
3144
  (function(e) {
3140
3145
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3141
- })(P || (P = {}));
3142
- function Pn(e) {
3146
+ })(O || (O = {}));
3147
+ function On(e) {
3143
3148
  return e.length < 2 ? e : e.reduce(function(t, r) {
3144
3149
  var n = t[t.length - 1];
3145
- return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
3150
+ return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3146
3151
  }, []);
3147
3152
  }
3148
- function wn(e) {
3153
+ function Pn(e) {
3149
3154
  return typeof e == "function";
3150
3155
  }
3151
- function ge(e, t, r, n, i, s, o) {
3152
- if (e.length === 1 && st(e[0]))
3156
+ function me(e, t, r, n, i, s, o) {
3157
+ if (e.length === 1 && nt(e[0]))
3153
3158
  return [
3154
3159
  {
3155
- type: P.literal,
3160
+ type: O.literal,
3156
3161
  value: e[0].value
3157
3162
  }
3158
3163
  ];
3159
3164
  for (var u = [], h = 0, a = e; h < a.length; h++) {
3160
3165
  var l = a[h];
3161
- if (st(l)) {
3166
+ if (nt(l)) {
3162
3167
  u.push({
3163
- type: P.literal,
3168
+ type: O.literal,
3164
3169
  value: l.value
3165
3170
  });
3166
3171
  continue;
3167
3172
  }
3168
3173
  if (Yr(l)) {
3169
3174
  typeof s == "number" && u.push({
3170
- type: P.literal,
3175
+ type: O.literal,
3171
3176
  value: r.getNumberFormat(t).format(s)
3172
3177
  });
3173
3178
  continue;
3174
3179
  }
3175
3180
  var c = l.value;
3176
3181
  if (!(i && c in i))
3177
- throw new On(c, o);
3182
+ throw new wn(c, o);
3178
3183
  var f = i[c];
3179
3184
  if (Jr(l)) {
3180
3185
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
3181
- type: typeof f == "string" ? P.literal : P.object,
3186
+ type: typeof f == "string" ? O.literal : O.object,
3182
3187
  value: f
3183
3188
  });
3184
3189
  continue;
3185
3190
  }
3186
- if (Nt(l)) {
3187
- var d = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
3191
+ if (Ot(l)) {
3192
+ var p = typeof l.style == "string" ? n.date[l.style] : $e(l.style) ? l.style.parsedOptions : void 0;
3188
3193
  u.push({
3189
- type: P.literal,
3190
- value: r.getDateTimeFormat(t, d).format(f)
3194
+ type: O.literal,
3195
+ value: r.getDateTimeFormat(t, p).format(f)
3191
3196
  });
3192
3197
  continue;
3193
3198
  }
3194
- if (Lt(l)) {
3195
- var d = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
3199
+ if (Pt(l)) {
3200
+ var p = typeof l.style == "string" ? n.time[l.style] : $e(l.style) ? l.style.parsedOptions : n.time.medium;
3196
3201
  u.push({
3197
- type: P.literal,
3198
- value: r.getDateTimeFormat(t, d).format(f)
3202
+ type: O.literal,
3203
+ value: r.getDateTimeFormat(t, p).format(f)
3199
3204
  });
3200
3205
  continue;
3201
3206
  }
3202
3207
  if (wt(l)) {
3203
- var d = typeof l.style == "string" ? n.number[l.style] : Rt(l.style) ? l.style.parsedOptions : void 0;
3204
- d && d.scale && (f = f * (d.scale || 1)), u.push({
3205
- type: P.literal,
3206
- value: r.getNumberFormat(t, d).format(f)
3208
+ var p = typeof l.style == "string" ? n.number[l.style] : Mt(l.style) ? l.style.parsedOptions : void 0;
3209
+ p && p.scale && (f = f * (p.scale || 1)), u.push({
3210
+ type: O.literal,
3211
+ value: r.getNumberFormat(t, p).format(f)
3207
3212
  });
3208
3213
  continue;
3209
3214
  }
3210
- if ($t(l)) {
3211
- var p = l.children, g = l.value, E = i[g];
3212
- if (!wn(E))
3215
+ if (It(l)) {
3216
+ var d = l.children, g = l.value, x = i[g];
3217
+ if (!Pn(x))
3213
3218
  throw new Bn(g, "function", o);
3214
- var m = ge(p, t, r, n, i, s), T = E(m.map(function(B) {
3219
+ var m = me(d, t, r, n, i, s), C = x(m.map(function(B) {
3215
3220
  return B.value;
3216
3221
  }));
3217
- Array.isArray(T) || (T = [T]), u.push.apply(u, T.map(function(B) {
3222
+ Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(B) {
3218
3223
  return {
3219
- type: typeof B == "string" ? P.literal : P.object,
3224
+ type: typeof B == "string" ? O.literal : O.object,
3220
3225
  value: B
3221
3226
  };
3222
3227
  }));
3223
3228
  }
3224
- if (It(l)) {
3225
- var A = l.options[f] || l.options.other;
3226
- if (!A)
3227
- throw new ct(l.value, f, Object.keys(l.options), o);
3228
- u.push.apply(u, ge(A.value, t, r, n, i));
3229
+ if (Nt(l)) {
3230
+ var S = l.options[f] || l.options.other;
3231
+ if (!S)
3232
+ throw new lt(l.value, f, Object.keys(l.options), o);
3233
+ u.push.apply(u, me(S.value, t, r, n, i));
3229
3234
  continue;
3230
3235
  }
3231
- if (Mt(l)) {
3232
- var A = l.options["=".concat(f)];
3233
- if (!A) {
3236
+ if (Lt(l)) {
3237
+ var S = l.options["=".concat(f)];
3238
+ if (!S) {
3234
3239
  if (!Intl.PluralRules)
3235
3240
  throw new xe(`Intl.PluralRules is not available in this environment.
3236
3241
  Try polyfilling it using "@formatjs/intl-pluralrules"
3237
- `, J.MISSING_INTL_API, o);
3238
- var L = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3239
- A = l.options[L] || l.options.other;
3242
+ `, q.MISSING_INTL_API, o);
3243
+ var P = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3244
+ S = l.options[P] || l.options.other;
3240
3245
  }
3241
- if (!A)
3242
- throw new ct(l.value, f, Object.keys(l.options), o);
3243
- u.push.apply(u, ge(A.value, t, r, n, i, f - (l.offset || 0)));
3246
+ if (!S)
3247
+ throw new lt(l.value, f, Object.keys(l.options), o);
3248
+ u.push.apply(u, me(S.value, t, r, n, i, f - (l.offset || 0)));
3244
3249
  continue;
3245
3250
  }
3246
3251
  }
3247
- return Pn(u);
3252
+ return On(u);
3248
3253
  }
3249
3254
  function Nn(e, t) {
3250
- return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3251
- return r[n] = x(x({}, e[n]), t[n] || {}), r;
3255
+ return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3256
+ return r[n] = E(E({}, e[n]), t[n] || {}), r;
3252
3257
  }, {})) : e;
3253
3258
  }
3254
3259
  function Ln(e, t) {
3255
3260
  return t ? Object.keys(e).reduce(function(r, n) {
3256
3261
  return r[n] = Nn(e[n], t[n]), r;
3257
- }, x({}, e)) : e;
3262
+ }, E({}, e)) : e;
3258
3263
  }
3259
3264
  function Oe(e) {
3260
3265
  return {
@@ -3276,29 +3281,29 @@ function In(e) {
3276
3281
  dateTime: {},
3277
3282
  pluralRules: {}
3278
3283
  }), {
3279
- getNumberFormat: Ae(function() {
3284
+ getNumberFormat: Se(function() {
3280
3285
  for (var t, r = [], n = 0; n < arguments.length; n++)
3281
3286
  r[n] = arguments[n];
3282
- return new ((t = Intl.NumberFormat).bind.apply(t, He([void 0], r, !1)))();
3287
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
3283
3288
  }, {
3284
3289
  cache: Oe(e.number),
3285
- strategy: Se.variadic
3290
+ strategy: Be.variadic
3286
3291
  }),
3287
- getDateTimeFormat: Ae(function() {
3292
+ getDateTimeFormat: Se(function() {
3288
3293
  for (var t, r = [], n = 0; n < arguments.length; n++)
3289
3294
  r[n] = arguments[n];
3290
- return new ((t = Intl.DateTimeFormat).bind.apply(t, He([void 0], r, !1)))();
3295
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
3291
3296
  }, {
3292
3297
  cache: Oe(e.dateTime),
3293
- strategy: Se.variadic
3298
+ strategy: Be.variadic
3294
3299
  }),
3295
- getPluralRules: Ae(function() {
3300
+ getPluralRules: Se(function() {
3296
3301
  for (var t, r = [], n = 0; n < arguments.length; n++)
3297
3302
  r[n] = arguments[n];
3298
- return new ((t = Intl.PluralRules).bind.apply(t, He([void 0], r, !1)))();
3303
+ return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
3299
3304
  }, {
3300
3305
  cache: Oe(e.pluralRules),
3301
- strategy: Se.variadic
3306
+ strategy: Be.variadic
3302
3307
  })
3303
3308
  };
3304
3309
  }
@@ -3317,11 +3322,11 @@ var Mn = (
3317
3322
  if (a.length === 1)
3318
3323
  return a[0].value;
3319
3324
  var l = a.reduce(function(c, f) {
3320
- return !c.length || f.type !== P.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3325
+ return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3321
3326
  }, []);
3322
3327
  return l.length <= 1 ? l[0] || "" : l;
3323
3328
  }, this.formatToParts = function(h) {
3324
- return ge(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3329
+ return me(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3325
3330
  }, this.resolvedOptions = function() {
3326
3331
  var h;
3327
3332
  return {
@@ -3334,8 +3339,8 @@ var Mn = (
3334
3339
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3335
3340
  var o = i || {};
3336
3341
  o.formatters;
3337
- var u = Vr(o, ["formatters"]);
3338
- this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
3342
+ var u = kr(o, ["formatters"]);
3343
+ this.ast = e.__parse(t, E(E({}, u), { locale: this.resolvedLocale }));
3339
3344
  } else
3340
3345
  this.ast = t;
3341
3346
  if (!Array.isArray(this.ast))
@@ -3435,90 +3440,90 @@ function $n(e, t) {
3435
3440
  n = void 0;
3436
3441
  return n;
3437
3442
  }
3438
- const D = {}, Rn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Xt = (e, t) => {
3443
+ const D = {}, Rn = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), kt = (e, t) => {
3439
3444
  if (t == null)
3440
3445
  return;
3441
3446
  if (t in D && e in D[t])
3442
3447
  return D[t][e];
3443
- const r = Ee(t);
3448
+ const r = ve(t);
3444
3449
  for (let n = 0; n < r.length; n++) {
3445
- const i = r[n], s = Gn(i, e);
3450
+ const i = r[n], s = Dn(i, e);
3446
3451
  if (s)
3447
3452
  return Rn(e, t, s);
3448
3453
  }
3449
3454
  };
3450
- let We;
3451
- const ue = ye({});
3455
+ let Xe;
3456
+ const ue = _e({});
3452
3457
  function Un(e) {
3453
- return We[e] || null;
3458
+ return Xe[e] || null;
3454
3459
  }
3455
- function zt(e) {
3456
- return e in We;
3460
+ function Vt(e) {
3461
+ return e in Xe;
3457
3462
  }
3458
- function Gn(e, t) {
3459
- if (!zt(e))
3463
+ function Dn(e, t) {
3464
+ if (!Vt(e))
3460
3465
  return null;
3461
3466
  const r = Un(e);
3462
3467
  return $n(r, t);
3463
3468
  }
3464
- function Dn(e) {
3469
+ function Gn(e) {
3465
3470
  if (e == null)
3466
3471
  return;
3467
- const t = Ee(e);
3472
+ const t = ve(e);
3468
3473
  for (let r = 0; r < t.length; r++) {
3469
3474
  const n = t[r];
3470
- if (zt(n))
3475
+ if (Vt(n))
3471
3476
  return n;
3472
3477
  }
3473
3478
  }
3474
- function Wt(e, ...t) {
3475
- delete D[e], ue.update((r) => (r[e] = kr.all([r[e] || {}, ...t]), r));
3479
+ function Xt(e, ...t) {
3480
+ delete D[e], ue.update((r) => (r[e] = jr.all([r[e] || {}, ...t]), r));
3476
3481
  }
3477
- ee(
3482
+ K(
3478
3483
  [ue],
3479
3484
  ([e]) => Object.keys(e)
3480
3485
  );
3481
- ue.subscribe((e) => We = e);
3482
- const me = {};
3486
+ ue.subscribe((e) => Xe = e);
3487
+ const pe = {};
3483
3488
  function Fn(e, t) {
3484
- me[e].delete(t), me[e].size === 0 && delete me[e];
3489
+ pe[e].delete(t), pe[e].size === 0 && delete pe[e];
3485
3490
  }
3486
- function Zt(e) {
3487
- return me[e];
3491
+ function zt(e) {
3492
+ return pe[e];
3488
3493
  }
3489
3494
  function jn(e) {
3490
- return Ee(e).map((t) => {
3491
- const r = Zt(t);
3495
+ return ve(e).map((t) => {
3496
+ const r = zt(t);
3492
3497
  return [t, r ? [...r] : []];
3493
3498
  }).filter(([, t]) => t.length > 0);
3494
3499
  }
3495
- function Fe(e) {
3496
- return e == null ? !1 : Ee(e).some(
3500
+ function je(e) {
3501
+ return e == null ? !1 : ve(e).some(
3497
3502
  (t) => {
3498
3503
  var r;
3499
- return (r = Zt(t)) == null ? void 0 : r.size;
3504
+ return (r = zt(t)) == null ? void 0 : r.size;
3500
3505
  }
3501
3506
  );
3502
3507
  }
3503
3508
  function kn(e, t) {
3504
3509
  return Promise.all(
3505
3510
  t.map((n) => (Fn(e, n), n().then((i) => i.default || i)))
3506
- ).then((n) => Wt(e, ...n));
3511
+ ).then((n) => Xt(e, ...n));
3507
3512
  }
3508
- const ne = {};
3509
- function Qt(e) {
3510
- if (!Fe(e))
3511
- return e in ne ? ne[e] : Promise.resolve();
3513
+ const re = {};
3514
+ function Wt(e) {
3515
+ if (!je(e))
3516
+ return e in re ? re[e] : Promise.resolve();
3512
3517
  const t = jn(e);
3513
- return ne[e] = Promise.all(
3518
+ return re[e] = Promise.all(
3514
3519
  t.map(
3515
3520
  ([r, n]) => kn(r, n)
3516
3521
  )
3517
3522
  ).then(() => {
3518
- if (Fe(e))
3519
- return Qt(e);
3520
- delete ne[e];
3521
- }), ne[e];
3523
+ if (je(e))
3524
+ return Wt(e);
3525
+ delete re[e];
3526
+ }), re[e];
3522
3527
  }
3523
3528
  const Vn = {
3524
3529
  number: {
@@ -3557,94 +3562,94 @@ const Vn = {
3557
3562
  handleMissingMessage: void 0,
3558
3563
  ignoreTag: !0
3559
3564
  }, zn = Xn;
3560
- function Y() {
3565
+ function J() {
3561
3566
  return zn;
3562
3567
  }
3563
- const Pe = ye(!1);
3564
- var Wn = Object.defineProperty, Zn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
3568
+ const Pe = _e(!1);
3569
+ var Wn = Object.defineProperty, Zn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Yn = (e, t) => {
3565
3570
  for (var r in t || (t = {}))
3566
- qn.call(t, r) && mt(e, r, t[r]);
3567
- if (gt)
3568
- for (var r of gt(t))
3569
- Jn.call(t, r) && mt(e, r, t[r]);
3571
+ qn.call(t, r) && ct(e, r, t[r]);
3572
+ if (ft)
3573
+ for (var r of ft(t))
3574
+ Jn.call(t, r) && ct(e, r, t[r]);
3570
3575
  return e;
3571
3576
  }, Kn = (e, t) => Zn(e, Qn(t));
3572
- let je;
3573
- const de = ye(null);
3574
- function pt(e) {
3577
+ let ke;
3578
+ const be = _e(null);
3579
+ function gt(e) {
3575
3580
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3576
3581
  }
3577
- function Ee(e, t = Y().fallbackLocale) {
3578
- const r = pt(e);
3579
- return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
3582
+ function ve(e, t = J().fallbackLocale) {
3583
+ const r = gt(e);
3584
+ return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
3580
3585
  }
3581
- function V() {
3582
- return je != null ? je : void 0;
3586
+ function k() {
3587
+ return ke != null ? ke : void 0;
3583
3588
  }
3584
- de.subscribe((e) => {
3585
- je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3589
+ be.subscribe((e) => {
3590
+ ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3586
3591
  });
3587
3592
  const ei = (e) => {
3588
- if (e && Dn(e) && Fe(e)) {
3589
- const { loadingDelay: t } = Y();
3593
+ if (e && Gn(e) && je(e)) {
3594
+ const { loadingDelay: t } = J();
3590
3595
  let r;
3591
- return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
3596
+ return typeof window != "undefined" && k() != null && t ? r = window.setTimeout(
3592
3597
  () => Pe.set(!0),
3593
3598
  t
3594
- ) : Pe.set(!0), Qt(e).then(() => {
3595
- de.set(e);
3599
+ ) : Pe.set(!0), Wt(e).then(() => {
3600
+ be.set(e);
3596
3601
  }).finally(() => {
3597
3602
  clearTimeout(r), Pe.set(!1);
3598
3603
  });
3599
3604
  }
3600
- return de.set(e);
3601
- }, te = Kn(Yn({}, de), {
3605
+ return be.set(e);
3606
+ }, ee = Kn(Yn({}, be), {
3602
3607
  set: ei
3603
- }), ve = (e) => {
3608
+ }), Te = (e) => {
3604
3609
  const t = /* @__PURE__ */ Object.create(null);
3605
3610
  return (n) => {
3606
3611
  const i = JSON.stringify(n);
3607
3612
  return i in t ? t[i] : t[i] = e(n);
3608
3613
  };
3609
3614
  };
3610
- var ti = Object.defineProperty, be = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
3615
+ var ti = Object.defineProperty, ye = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
3611
3616
  for (var r in t || (t = {}))
3612
- qt.call(t, r) && dt(e, r, t[r]);
3613
- if (be)
3614
- for (var r of be(t))
3615
- Jt.call(t, r) && dt(e, r, t[r]);
3617
+ Zt.call(t, r) && mt(e, r, t[r]);
3618
+ if (ye)
3619
+ for (var r of ye(t))
3620
+ Qt.call(t, r) && mt(e, r, t[r]);
3616
3621
  return e;
3617
- }, re = (e, t) => {
3622
+ }, te = (e, t) => {
3618
3623
  var r = {};
3619
3624
  for (var n in e)
3620
- qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3621
- if (e != null && be)
3622
- for (var n of be(e))
3623
- t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
3625
+ Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3626
+ if (e != null && ye)
3627
+ for (var n of ye(e))
3628
+ t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
3624
3629
  return r;
3625
3630
  };
3626
3631
  const oe = (e, t) => {
3627
- const { formats: r } = Y();
3632
+ const { formats: r } = J();
3628
3633
  if (e in r && t in r[e])
3629
3634
  return r[e][t];
3630
3635
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3631
- }, ri = ve(
3636
+ }, ri = Te(
3632
3637
  (e) => {
3633
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
3638
+ var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3634
3639
  if (r == null)
3635
3640
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3636
3641
  return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
3637
3642
  }
3638
- ), ni = ve(
3643
+ ), ni = Te(
3639
3644
  (e) => {
3640
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
3645
+ var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3641
3646
  if (r == null)
3642
3647
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3643
3648
  return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
3644
3649
  }
3645
- ), ii = ve(
3650
+ ), ii = Te(
3646
3651
  (e) => {
3647
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
3652
+ var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3648
3653
  if (r == null)
3649
3654
  throw new Error(
3650
3655
  '[svelte-i18n] A "locale" must be set to format time values'
@@ -3653,29 +3658,29 @@ const oe = (e, t) => {
3653
3658
  }
3654
3659
  ), si = (e = {}) => {
3655
3660
  var t = e, {
3656
- locale: r = V()
3657
- } = t, n = re(t, [
3661
+ locale: r = k()
3662
+ } = t, n = te(t, [
3658
3663
  "locale"
3659
3664
  ]);
3660
- return ri(Ze({ locale: r }, n));
3665
+ return ri(ze({ locale: r }, n));
3661
3666
  }, oi = (e = {}) => {
3662
3667
  var t = e, {
3663
- locale: r = V()
3664
- } = t, n = re(t, [
3668
+ locale: r = k()
3669
+ } = t, n = te(t, [
3665
3670
  "locale"
3666
3671
  ]);
3667
- return ni(Ze({ locale: r }, n));
3672
+ return ni(ze({ locale: r }, n));
3668
3673
  }, ai = (e = {}) => {
3669
3674
  var t = e, {
3670
- locale: r = V()
3671
- } = t, n = re(t, [
3675
+ locale: r = k()
3676
+ } = t, n = te(t, [
3672
3677
  "locale"
3673
3678
  ]);
3674
- return ii(Ze({ locale: r }, n));
3675
- }, ui = ve(
3679
+ return ii(ze({ locale: r }, n));
3680
+ }, ui = Te(
3676
3681
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3677
- (e, t = V()) => new Mn(e, t, Y().formats, {
3678
- ignoreTag: Y().ignoreTag
3682
+ (e, t = k()) => new Mn(e, t, J().formats, {
3683
+ ignoreTag: J().ignoreTag
3679
3684
  })
3680
3685
  ), hi = (e, t = {}) => {
3681
3686
  var r, n, i, s;
@@ -3683,16 +3688,16 @@ const oe = (e, t) => {
3683
3688
  typeof e == "object" && (o = e, e = o.id);
3684
3689
  const {
3685
3690
  values: u,
3686
- locale: h = V(),
3691
+ locale: h = k(),
3687
3692
  default: a
3688
3693
  } = o;
3689
3694
  if (h == null)
3690
3695
  throw new Error(
3691
3696
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3692
3697
  );
3693
- let l = Xt(e, h);
3698
+ let l = kt(e, h);
3694
3699
  if (!l)
3695
- l = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3700
+ l = (s = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3696
3701
  else if (typeof l != "string")
3697
3702
  return console.warn(
3698
3703
  `[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.`
@@ -3709,18 +3714,41 @@ const oe = (e, t) => {
3709
3714
  );
3710
3715
  }
3711
3716
  return c;
3712
- }, li = (e, t) => ai(t).format(e), fi = (e, t) => oi(t).format(e), ci = (e, t) => si(t).format(e), gi = (e, t = V()) => Xt(e, t), mi = ee([te, ue], () => hi);
3713
- ee([te], () => li);
3714
- ee([te], () => fi);
3715
- ee([te], () => ci);
3716
- ee([te, ue], () => gi);
3717
- function bt(e, t) {
3718
- Wt(e, t);
3719
- }
3720
- function pi(e) {
3721
- te.set(e);
3722
- }
3723
- const yt = {
3717
+ }, li = (e, t) => ai(t).format(e), fi = (e, t) => oi(t).format(e), ci = (e, t) => si(t).format(e), gi = (e, t = k()) => kt(e, t), mi = K([ee, ue], () => hi);
3718
+ K([ee], () => li);
3719
+ K([ee], () => fi);
3720
+ K([ee], () => ci);
3721
+ K([ee, ue], () => gi);
3722
+ function pi(e, t) {
3723
+ if (e) {
3724
+ const r = document.createElement("style");
3725
+ r.innerHTML = t, e.appendChild(r);
3726
+ }
3727
+ }
3728
+ function di(e, t) {
3729
+ const r = new URL(t);
3730
+ fetch(r.href).then((n) => n.text()).then((n) => {
3731
+ const i = document.createElement("style");
3732
+ i.innerHTML = n, e && e.appendChild(i);
3733
+ }).catch((n) => {
3734
+ console.error("There was an error while trying to load client styling from URL", n);
3735
+ });
3736
+ }
3737
+ function bi(e, t, r) {
3738
+ if (window.emMessageBus) {
3739
+ const n = document.createElement("style");
3740
+ window.emMessageBus.subscribe(t, (i) => {
3741
+ n.innerHTML = i, e && e.appendChild(n);
3742
+ });
3743
+ }
3744
+ }
3745
+ function pt(e, t) {
3746
+ Xt(e, t);
3747
+ }
3748
+ function yi(e) {
3749
+ ee.set(e);
3750
+ }
3751
+ const dt = {
3724
3752
  en: {
3725
3753
  topCategories: "Top Categories",
3726
3754
  otherCategories: "Other Categories",
@@ -3830,314 +3858,301 @@ const yt = {
3830
3858
  games: "games"
3831
3859
  }
3832
3860
  };
3833
- function di(e) {
3834
- hr(e, "svelte-131a9uf", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
3861
+ function _i(e) {
3862
+ or(e, "svelte-2l182v", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emw--color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}");
3835
3863
  }
3836
- function _t(e, t, r) {
3864
+ function bt(e, t, r) {
3837
3865
  const n = e.slice();
3838
- return n[24] = t[r], n;
3866
+ return n[23] = t[r], n;
3839
3867
  }
3840
- function xt(e, t, r) {
3868
+ function yt(e, t, r) {
3841
3869
  const n = e.slice();
3842
- return n[24] = t[r], n;
3870
+ return n[23] = t[r], n;
3843
3871
  }
3844
- function bi(e) {
3872
+ function Ei(e) {
3845
3873
  let t, r, n = (
3846
3874
  /*$_*/
3847
3875
  e[5]("topCategories") + ""
3848
3876
  ), i, s, o, u, h = (
3849
3877
  /*$_*/
3850
3878
  e[5]("otherCategories") + ""
3851
- ), a, l, c = le(
3879
+ ), a, l, c = fe(
3852
3880
  /*topCategories*/
3853
3881
  e[3]
3854
3882
  ), f = [];
3855
3883
  for (let g = 0; g < c.length; g += 1)
3856
- f[g] = Et(xt(e, c, g));
3857
- let d = le(
3884
+ f[g] = _t(yt(e, c, g));
3885
+ let p = fe(
3858
3886
  /*otherCategories*/
3859
3887
  e[4]
3860
- ), p = [];
3861
- for (let g = 0; g < d.length; g += 1)
3862
- p[g] = vt(_t(e, d, g));
3888
+ ), d = [];
3889
+ for (let g = 0; g < p.length; g += 1)
3890
+ d[g] = Et(bt(e, p, g));
3863
3891
  return {
3864
3892
  c() {
3865
- t = O("div"), r = O("h4"), i = U(n), s = R();
3893
+ t = w("div"), r = w("h4"), i = U(n), s = R();
3866
3894
  for (let g = 0; g < f.length; g += 1)
3867
3895
  f[g].c();
3868
- o = R(), u = O("h4"), a = U(h), l = R();
3869
- for (let g = 0; g < p.length; g += 1)
3870
- p[g].c();
3896
+ o = R(), u = w("h4"), a = U(h), l = R();
3897
+ for (let g = 0; g < d.length; g += 1)
3898
+ d[g].c();
3871
3899
  H(r, "class", "CategoryTitle"), H(u, "class", "CategoryTitle"), H(t, "class", "CasinoCategories");
3872
3900
  },
3873
- m(g, E) {
3874
- K(g, t, E), v(t, r), v(r, i), v(t, s);
3901
+ m(g, x) {
3902
+ Y(g, t, x), v(t, r), v(r, i), v(t, s);
3875
3903
  for (let m = 0; m < f.length; m += 1)
3876
3904
  f[m] && f[m].m(t, null);
3877
3905
  v(t, o), v(t, u), v(u, a), v(t, l);
3878
- for (let m = 0; m < p.length; m += 1)
3879
- p[m] && p[m].m(t, null);
3906
+ for (let m = 0; m < d.length; m += 1)
3907
+ d[m] && d[m].m(t, null);
3880
3908
  },
3881
- p(g, E) {
3882
- if (E & /*$_*/
3909
+ p(g, x) {
3910
+ if (x & /*$_*/
3883
3911
  32 && n !== (n = /*$_*/
3884
- g[5]("topCategories") + "") && F(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
3912
+ g[5]("topCategories") + "") && G(i, n), x & /*activecategory, topCategories, openGameCategory, $_*/
3885
3913
  105) {
3886
- c = le(
3914
+ c = fe(
3887
3915
  /*topCategories*/
3888
3916
  g[3]
3889
3917
  );
3890
3918
  let m;
3891
3919
  for (m = 0; m < c.length; m += 1) {
3892
- const T = xt(g, c, m);
3893
- f[m] ? f[m].p(T, E) : (f[m] = Et(T), f[m].c(), f[m].m(t, o));
3920
+ const C = yt(g, c, m);
3921
+ f[m] ? f[m].p(C, x) : (f[m] = _t(C), f[m].c(), f[m].m(t, o));
3894
3922
  }
3895
3923
  for (; m < f.length; m += 1)
3896
3924
  f[m].d(1);
3897
3925
  f.length = c.length;
3898
3926
  }
3899
- if (E & /*$_*/
3927
+ if (x & /*$_*/
3900
3928
  32 && h !== (h = /*$_*/
3901
- g[5]("otherCategories") + "") && F(a, h), E & /*activecategory, otherCategories, openGameCategory, $_*/
3929
+ g[5]("otherCategories") + "") && G(a, h), x & /*activecategory, otherCategories, openGameCategory, $_*/
3902
3930
  113) {
3903
- d = le(
3931
+ p = fe(
3904
3932
  /*otherCategories*/
3905
3933
  g[4]
3906
3934
  );
3907
3935
  let m;
3908
- for (m = 0; m < d.length; m += 1) {
3909
- const T = _t(g, d, m);
3910
- p[m] ? p[m].p(T, E) : (p[m] = vt(T), p[m].c(), p[m].m(t, null));
3936
+ for (m = 0; m < p.length; m += 1) {
3937
+ const C = bt(g, p, m);
3938
+ d[m] ? d[m].p(C, x) : (d[m] = Et(C), d[m].c(), d[m].m(t, null));
3911
3939
  }
3912
- for (; m < p.length; m += 1)
3913
- p[m].d(1);
3914
- p.length = d.length;
3940
+ for (; m < d.length; m += 1)
3941
+ d[m].d(1);
3942
+ d.length = p.length;
3915
3943
  }
3916
3944
  },
3917
3945
  d(g) {
3918
- g && k(t), rt(f, g), rt(p, g);
3946
+ g && j(t), et(f, g), et(d, g);
3919
3947
  }
3920
3948
  };
3921
3949
  }
3922
- function yi(e) {
3950
+ function xi(e) {
3923
3951
  let t;
3924
3952
  return {
3925
3953
  c() {
3926
- t = O("p"), t.textContent = "Loading, please wait...", H(t, "class", "Message");
3954
+ t = w("p"), t.textContent = "Loading, please wait...", H(t, "class", "Message");
3927
3955
  },
3928
3956
  m(r, n) {
3929
- K(r, t, n);
3957
+ Y(r, t, n);
3930
3958
  },
3931
- p: M,
3959
+ p: I,
3932
3960
  d(r) {
3933
- r && k(t);
3961
+ r && j(t);
3934
3962
  }
3935
3963
  };
3936
3964
  }
3937
- function Et(e) {
3965
+ function _t(e) {
3938
3966
  let t, r, n, i, s, o, u, h = (
3939
3967
  /*category*/
3940
- e[24].name + ""
3968
+ e[23].name + ""
3941
3969
  ), a, l, c, f = (
3942
3970
  /*category*/
3943
- e[24].games.count + ""
3944
- ), d, p, g = (
3971
+ e[23].games.count + ""
3972
+ ), p, d, g = (
3945
3973
  /*$_*/
3946
3974
  e[5]("games") + ""
3947
- ), E, m, T, A;
3948
- function L() {
3975
+ ), x, m, C, S;
3976
+ function P() {
3949
3977
  return (
3950
3978
  /*click_handler*/
3951
- e[14](
3979
+ e[15](
3952
3980
  /*category*/
3953
- e[24]
3981
+ e[23]
3954
3982
  )
3955
3983
  );
3956
3984
  }
3957
3985
  return {
3958
3986
  c() {
3959
- t = O("div"), r = O("img"), s = R(), o = O("div"), u = O("p"), a = U(h), l = R(), c = O("p"), d = U(f), p = R(), E = U(g), pe(r.src, n = /*category*/
3960
- e[24].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
3961
- e[24].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", m = "Category " + /*activecategory*/
3987
+ t = w("div"), r = w("img"), s = R(), o = w("div"), u = w("p"), a = U(h), l = R(), c = w("p"), p = U(f), d = R(), x = U(g), de(r.src, n = /*category*/
3988
+ e[23].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
3989
+ e[23].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", m = "Category " + /*activecategory*/
3962
3990
  (e[0] === /*category*/
3963
- e[24].id ? "Active" : ""));
3991
+ e[23].id ? "Active" : ""));
3964
3992
  },
3965
- m(B, S) {
3966
- K(B, t, S), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, d), v(c, p), v(c, E), T || (A = At(t, "click", L), T = !0);
3993
+ m(B, A) {
3994
+ Y(B, t, A), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, x), C || (S = Ct(t, "click", P), C = !0);
3967
3995
  },
3968
- p(B, S) {
3969
- e = B, S & /*topCategories*/
3970
- 8 && !pe(r.src, n = /*category*/
3971
- e[24].icon) && H(r, "src", n), S & /*topCategories*/
3996
+ p(B, A) {
3997
+ e = B, A & /*topCategories*/
3998
+ 8 && !de(r.src, n = /*category*/
3999
+ e[23].icon) && H(r, "src", n), A & /*topCategories*/
3972
4000
  8 && i !== (i = /*category*/
3973
- e[24].name) && H(r, "alt", i), S & /*topCategories*/
4001
+ e[23].name) && H(r, "alt", i), A & /*topCategories*/
3974
4002
  8 && h !== (h = /*category*/
3975
- e[24].name + "") && F(a, h), S & /*topCategories*/
4003
+ e[23].name + "") && G(a, h), A & /*topCategories*/
3976
4004
  8 && f !== (f = /*category*/
3977
- e[24].games.count + "") && F(d, f), S & /*$_*/
4005
+ e[23].games.count + "") && G(p, f), A & /*$_*/
3978
4006
  32 && g !== (g = /*$_*/
3979
- e[5]("games") + "") && F(E, g), S & /*activecategory, topCategories*/
4007
+ e[5]("games") + "") && G(x, g), A & /*activecategory, topCategories*/
3980
4008
  9 && m !== (m = "Category " + /*activecategory*/
3981
4009
  (e[0] === /*category*/
3982
- e[24].id ? "Active" : "")) && H(t, "class", m);
4010
+ e[23].id ? "Active" : "")) && H(t, "class", m);
3983
4011
  },
3984
4012
  d(B) {
3985
- B && k(t), T = !1, A();
4013
+ B && j(t), C = !1, S();
3986
4014
  }
3987
4015
  };
3988
4016
  }
3989
- function vt(e) {
4017
+ function Et(e) {
3990
4018
  let t, r, n, i, s, o, u, h = (
3991
4019
  /*category*/
3992
- e[24].name + ""
4020
+ e[23].name + ""
3993
4021
  ), a, l, c, f = (
3994
4022
  /*category*/
3995
- e[24].games.count + ""
3996
- ), d, p, g = (
4023
+ e[23].games.count + ""
4024
+ ), p, d, g = (
3997
4025
  /*$_*/
3998
4026
  e[5]("games") + ""
3999
- ), E, m, T, A, L;
4027
+ ), x, m, C, S, P;
4000
4028
  function B() {
4001
4029
  return (
4002
4030
  /*click_handler_1*/
4003
- e[15](
4031
+ e[16](
4004
4032
  /*category*/
4005
- e[24]
4033
+ e[23]
4006
4034
  )
4007
4035
  );
4008
4036
  }
4009
4037
  return {
4010
4038
  c() {
4011
- t = O("div"), r = O("img"), s = R(), o = O("div"), u = O("p"), a = U(h), l = R(), c = O("p"), d = U(f), p = R(), E = U(g), m = R(), pe(r.src, n = /*category*/
4012
- e[24].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
4013
- e[24].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", T = "Category " + /*activecategory*/
4039
+ t = w("div"), r = w("img"), s = R(), o = w("div"), u = w("p"), a = U(h), l = R(), c = w("p"), p = U(f), d = R(), x = U(g), m = R(), de(r.src, n = /*category*/
4040
+ e[23].icon) || H(r, "src", n), H(r, "alt", i = /*category*/
4041
+ e[23].name), H(r, "class", "CategoryImage"), H(o, "class", "CategoryTextContainer"), H(t, "class", C = "Category " + /*activecategory*/
4014
4042
  (e[0] === /*category*/
4015
- e[24].id ? "Active" : ""));
4043
+ e[23].id ? "Active" : ""));
4016
4044
  },
4017
- m(S, w) {
4018
- K(S, t, w), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, d), v(c, p), v(c, E), v(t, m), A || (L = At(t, "click", B), A = !0);
4045
+ m(A, N) {
4046
+ Y(A, t, N), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, l), v(o, c), v(c, p), v(c, d), v(c, x), v(t, m), S || (P = Ct(t, "click", B), S = !0);
4019
4047
  },
4020
- p(S, w) {
4021
- e = S, w & /*otherCategories*/
4022
- 16 && !pe(r.src, n = /*category*/
4023
- e[24].icon) && H(r, "src", n), w & /*otherCategories*/
4048
+ p(A, N) {
4049
+ e = A, N & /*otherCategories*/
4050
+ 16 && !de(r.src, n = /*category*/
4051
+ e[23].icon) && H(r, "src", n), N & /*otherCategories*/
4024
4052
  16 && i !== (i = /*category*/
4025
- e[24].name) && H(r, "alt", i), w & /*otherCategories*/
4053
+ e[23].name) && H(r, "alt", i), N & /*otherCategories*/
4026
4054
  16 && h !== (h = /*category*/
4027
- e[24].name + "") && F(a, h), w & /*otherCategories*/
4055
+ e[23].name + "") && G(a, h), N & /*otherCategories*/
4028
4056
  16 && f !== (f = /*category*/
4029
- e[24].games.count + "") && F(d, f), w & /*$_*/
4057
+ e[23].games.count + "") && G(p, f), N & /*$_*/
4030
4058
  32 && g !== (g = /*$_*/
4031
- e[5]("games") + "") && F(E, g), w & /*activecategory, otherCategories*/
4032
- 17 && T !== (T = "Category " + /*activecategory*/
4059
+ e[5]("games") + "") && G(x, g), N & /*activecategory, otherCategories*/
4060
+ 17 && C !== (C = "Category " + /*activecategory*/
4033
4061
  (e[0] === /*category*/
4034
- e[24].id ? "Active" : "")) && H(t, "class", T);
4062
+ e[23].id ? "Active" : "")) && H(t, "class", C);
4035
4063
  },
4036
- d(S) {
4037
- S && k(t), A = !1, L();
4064
+ d(A) {
4065
+ A && j(t), S = !1, P();
4038
4066
  }
4039
4067
  };
4040
4068
  }
4041
- function _i(e) {
4069
+ function vi(e) {
4042
4070
  let t;
4043
4071
  function r(s, o) {
4044
4072
  return (
4045
4073
  /*isLoading*/
4046
- s[2] ? yi : bi
4074
+ s[2] ? xi : Ei
4047
4075
  );
4048
4076
  }
4049
4077
  let n = r(e), i = n(e);
4050
4078
  return {
4051
4079
  c() {
4052
- t = O("div"), i.c();
4080
+ t = w("div"), i.c();
4053
4081
  },
4054
4082
  m(s, o) {
4055
- K(s, t, o), i.m(t, null), e[16](t);
4083
+ Y(s, t, o), i.m(t, null), e[17](t);
4056
4084
  },
4057
4085
  p(s, [o]) {
4058
4086
  n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
4059
4087
  },
4060
- i: M,
4061
- o: M,
4088
+ i: I,
4089
+ o: I,
4062
4090
  d(s) {
4063
- s && k(t), i.d(), e[16](null);
4091
+ s && j(t), i.d(), e[17](null);
4064
4092
  }
4065
4093
  };
4066
4094
  }
4067
- function xi(e, t, r) {
4095
+ function Ti(e, t, r) {
4068
4096
  let n;
4069
- ur(e, mi, (b) => r(5, n = b));
4070
- let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, f, d = !1;
4071
- const p = [];
4072
- let g = [], E = [];
4073
- Object.keys(yt).forEach((b) => {
4074
- bt(b, yt[b]);
4097
+ sr(e, mi, (b) => r(5, n = b));
4098
+ let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: h = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f } = t, p, d = !1;
4099
+ const g = [];
4100
+ let x = [], m = [];
4101
+ Object.keys(dt).forEach((b) => {
4102
+ pt(b, dt[b]);
4075
4103
  });
4076
- const m = () => {
4077
- fetch(c).then((N) => N.json()).then((N) => {
4078
- Object.keys(N).forEach((G) => {
4079
- bt(G, N[G]);
4104
+ const C = () => {
4105
+ fetch(c).then(($) => $.json()).then(($) => {
4106
+ Object.keys($).forEach((he) => {
4107
+ pt(he, $[he]);
4080
4108
  });
4081
- }).catch((N) => {
4082
- console.log(N);
4109
+ }).catch(($) => {
4110
+ console.log($);
4083
4111
  });
4084
- }, T = () => {
4112
+ }, S = () => {
4085
4113
  r(2, d = !0);
4086
4114
  const b = new URL(`${i}/v1/casino/groups/${s}`);
4087
- b.searchParams.append("language", o), fetch(b).then((N) => N.json()).then((N) => {
4115
+ b.searchParams.append("language", o), fetch(b).then(($) => $.json()).then(($) => {
4088
4116
  r(2, d = !1);
4089
- const G = h.split(",").map((j) => j.trim());
4090
- p.push(...N.items);
4091
- const Qe = p.filter((j) => !G.some((tr) => {
4092
- var qe;
4093
- return ((qe = j.flags) == null ? void 0 : qe.indexOf(tr)) >= 0;
4117
+ const he = h.split(",").map((F) => F.trim());
4118
+ g.push(...$.items);
4119
+ const We = g.filter((F) => !he.some((Yt) => {
4120
+ var Ze;
4121
+ return ((Ze = F.flags) == null ? void 0 : Ze.indexOf(Yt)) >= 0;
4094
4122
  }));
4095
- r(3, g = Qe.filter((j) => j.isTopCategory === !0)), r(4, E = Qe.filter((j) => j.isTopCategory === !1));
4123
+ r(3, x = We.filter((F) => F.isTopCategory === !0)), r(4, m = We.filter((F) => F.isTopCategory === !1));
4096
4124
  });
4097
- }, A = (b) => {
4125
+ }, P = (b) => {
4098
4126
  window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
4099
- }, L = () => {
4100
- pi(o);
4101
4127
  }, B = () => {
4102
- let b = document.createElement("style");
4103
- b.innerHTML = a, f.appendChild(b);
4104
- }, S = () => {
4105
- let b = new URL(l), N = document.createElement("style");
4106
- fetch(b.href).then((G) => G.text()).then((G) => {
4107
- N.innerHTML = G, setTimeout(
4108
- () => {
4109
- f.appendChild(N);
4110
- },
4111
- 1
4112
- ), setTimeout(
4113
- () => {
4114
- },
4115
- 500
4116
- );
4117
- });
4118
- }, w = (b) => A(b.id), Kt = (b) => A(b.id);
4119
- function er(b) {
4120
- we[b ? "unshift" : "push"](() => {
4121
- f = b, r(1, f);
4128
+ yi(o);
4129
+ };
4130
+ cr(() => () => {
4131
+ });
4132
+ const A = (b) => P(b.id), N = (b) => P(b.id);
4133
+ function Jt(b) {
4134
+ Ne[b ? "unshift" : "push"](() => {
4135
+ p = b, r(1, p);
4122
4136
  });
4123
4137
  }
4124
4138
  return e.$$set = (b) => {
4125
- "endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl);
4139
+ "endpoint" in b && r(7, i = b.endpoint), "datasource" in b && r(8, s = b.datasource), "lang" in b && r(9, o = b.lang), "activecategory" in b && r(0, u = b.activecategory), "excludedflags" in b && r(10, h = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, l = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl), "mbsource" in b && r(14, f = b.mbsource);
4126
4140
  }, e.$$.update = () => {
4127
4141
  e.$$.dirty & /*endpoint, datasource*/
4128
- 384 && i && s && T(), e.$$.dirty & /*translationurl*/
4129
- 8192 && c && m(), e.$$.dirty & /*lang*/
4130
- 512 && o && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4131
- 2050 && a && f && B(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4132
- 4098 && l && f && S();
4142
+ 384 && i && s && S(), e.$$.dirty & /*translationurl*/
4143
+ 8192 && c && C(), e.$$.dirty & /*lang*/
4144
+ 512 && o && B(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4145
+ 2050 && a && p && pi(p, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4146
+ 4098 && l && p && di(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4147
+ 16386 && f && p && bi(p, `${f}.Style`);
4133
4148
  }, [
4134
4149
  u,
4135
- f,
4150
+ p,
4136
4151
  d,
4137
- g,
4138
- E,
4152
+ x,
4153
+ m,
4139
4154
  n,
4140
- A,
4155
+ P,
4141
4156
  i,
4142
4157
  s,
4143
4158
  o,
@@ -4145,19 +4160,20 @@ function xi(e, t, r) {
4145
4160
  a,
4146
4161
  l,
4147
4162
  c,
4148
- w,
4149
- Kt,
4150
- er
4163
+ f,
4164
+ A,
4165
+ N,
4166
+ Jt
4151
4167
  ];
4152
4168
  }
4153
- class Yt extends Hr {
4169
+ class qt extends Cr {
4154
4170
  constructor(t) {
4155
- super(), Cr(
4171
+ super(), vr(
4156
4172
  this,
4157
4173
  t,
4158
- xi,
4159
- _i,
4160
- Tt,
4174
+ Ti,
4175
+ vi,
4176
+ vt,
4161
4177
  {
4162
4178
  endpoint: 7,
4163
4179
  datasource: 8,
@@ -4166,92 +4182,103 @@ class Yt extends Hr {
4166
4182
  excludedflags: 10,
4167
4183
  clientstyling: 11,
4168
4184
  clientstylingurl: 12,
4169
- translationurl: 13
4185
+ translationurl: 13,
4186
+ mbsource: 14
4170
4187
  },
4171
- di
4188
+ _i
4172
4189
  );
4173
4190
  }
4174
4191
  get endpoint() {
4175
4192
  return this.$$.ctx[7];
4176
4193
  }
4177
4194
  set endpoint(t) {
4178
- this.$$set({ endpoint: t }), $();
4195
+ this.$$set({ endpoint: t }), M();
4179
4196
  }
4180
4197
  get datasource() {
4181
4198
  return this.$$.ctx[8];
4182
4199
  }
4183
4200
  set datasource(t) {
4184
- this.$$set({ datasource: t }), $();
4201
+ this.$$set({ datasource: t }), M();
4185
4202
  }
4186
4203
  get lang() {
4187
4204
  return this.$$.ctx[9];
4188
4205
  }
4189
4206
  set lang(t) {
4190
- this.$$set({ lang: t }), $();
4207
+ this.$$set({ lang: t }), M();
4191
4208
  }
4192
4209
  get activecategory() {
4193
4210
  return this.$$.ctx[0];
4194
4211
  }
4195
4212
  set activecategory(t) {
4196
- this.$$set({ activecategory: t }), $();
4213
+ this.$$set({ activecategory: t }), M();
4197
4214
  }
4198
4215
  get excludedflags() {
4199
4216
  return this.$$.ctx[10];
4200
4217
  }
4201
4218
  set excludedflags(t) {
4202
- this.$$set({ excludedflags: t }), $();
4219
+ this.$$set({ excludedflags: t }), M();
4203
4220
  }
4204
4221
  get clientstyling() {
4205
4222
  return this.$$.ctx[11];
4206
4223
  }
4207
4224
  set clientstyling(t) {
4208
- this.$$set({ clientstyling: t }), $();
4225
+ this.$$set({ clientstyling: t }), M();
4209
4226
  }
4210
4227
  get clientstylingurl() {
4211
4228
  return this.$$.ctx[12];
4212
4229
  }
4213
4230
  set clientstylingurl(t) {
4214
- this.$$set({ clientstylingurl: t }), $();
4231
+ this.$$set({ clientstylingurl: t }), M();
4215
4232
  }
4216
4233
  get translationurl() {
4217
4234
  return this.$$.ctx[13];
4218
4235
  }
4219
4236
  set translationurl(t) {
4220
- this.$$set({ translationurl: t }), $();
4237
+ this.$$set({ translationurl: t }), M();
4238
+ }
4239
+ get mbsource() {
4240
+ return this.$$.ctx[14];
4241
+ }
4242
+ set mbsource(t) {
4243
+ this.$$set({ mbsource: t }), M();
4221
4244
  }
4222
4245
  }
4223
- Tr(Yt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4224
- const Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4246
+ Tr(qt, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
4247
+ const Si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4225
4248
  __proto__: null,
4226
- default: Yt
4249
+ default: qt
4227
4250
  }, Symbol.toStringTag, { value: "Module" }));
4228
4251
  export {
4229
- te as $,
4230
- Ti as C,
4231
- Hr as S,
4232
- Wt as a,
4233
- hr as b,
4252
+ ee as $,
4253
+ et as A,
4254
+ Hi as B,
4255
+ de as C,
4256
+ Si as D,
4257
+ Cr as S,
4258
+ Xt as a,
4259
+ or as b,
4234
4260
  Tr as c,
4235
- R as d,
4236
- O as e,
4237
- $ as f,
4261
+ j as d,
4262
+ G as e,
4263
+ M as f,
4238
4264
  H as g,
4239
- Ci as h,
4240
- Cr as i,
4241
- K as j,
4265
+ Ai as h,
4266
+ vr as i,
4267
+ Y as j,
4242
4268
  v as k,
4243
- At as l,
4244
- F as m,
4245
- M as n,
4246
- k as o,
4247
- ur as p,
4248
- we as q,
4269
+ Ct as l,
4270
+ w as m,
4271
+ I as n,
4272
+ R as o,
4273
+ sr as p,
4274
+ cr as q,
4249
4275
  ae as r,
4250
- Tt as s,
4276
+ vt as s,
4251
4277
  U as t,
4252
- mi as u,
4253
- le as v,
4254
- vi as w,
4255
- rt as x,
4256
- pe as y
4278
+ Ne as u,
4279
+ mi as v,
4280
+ pi as w,
4281
+ di as x,
4282
+ bi as y,
4283
+ fe as z
4257
4284
  };