@everymatrix/casino-categories 1.53.0 → 1.53.10

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,79 +1,50 @@
1
- var tr = Object.defineProperty, rr = Object.defineProperties;
2
- var nr = Object.getOwnPropertyDescriptors;
3
- var qe = Object.getOwnPropertySymbols;
4
- var ir = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
5
- var Te = (e, t, r) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
6
- for (var r in t || (t = {}))
7
- ir.call(t, r) && Te(e, r, t[r]);
8
- if (qe)
9
- for (var r of qe(t))
10
- sr.call(t, r) && Te(e, r, t[r]);
11
- return e;
12
- }, Ke = (e, t) => rr(e, nr(t));
13
- var L = (e, t, r) => Te(e, typeof t != "symbol" ? t + "" : t, r);
14
- var et = (e, t, r) => new Promise((n, i) => {
15
- var s = (h) => {
16
- try {
17
- u(r.next(h));
18
- } catch (a) {
19
- i(a);
20
- }
21
- }, o = (h) => {
22
- try {
23
- u(r.throw(h));
24
- } catch (a) {
25
- i(a);
26
- }
27
- }, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
28
- u((r = r.apply(e, t)).next());
29
- });
30
- function M() {
1
+ function L() {
31
2
  }
32
- function Tt(e) {
3
+ function pt(e) {
33
4
  return e();
34
5
  }
35
- function tt() {
6
+ function We() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function ae(e) {
39
- e.forEach(Tt);
9
+ function oe(e) {
10
+ e.forEach(pt);
40
11
  }
41
- function ke(e) {
12
+ function Fe(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function Ct(e, t) {
15
+ function dt(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- let he;
48
- function pe(e, t) {
49
- return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
18
+ let ue;
19
+ function me(e, t) {
20
+ return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
50
21
  }
51
- function or(e) {
22
+ function Wt(e) {
52
23
  return Object.keys(e).length === 0;
53
24
  }
54
- function Ht(e, ...t) {
25
+ function bt(e, ...t) {
55
26
  if (e == null) {
56
27
  for (const n of t)
57
28
  n(void 0);
58
- return M;
29
+ return L;
59
30
  }
60
31
  const r = e.subscribe(...t);
61
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
33
  }
63
- function ar(e, t, r) {
64
- e.$$.on_destroy.push(Ht(t, r));
34
+ function Zt(e, t, r) {
35
+ e.$$.on_destroy.push(bt(t, r));
65
36
  }
66
37
  function v(e, t) {
67
38
  e.appendChild(t);
68
39
  }
69
- function ur(e, t, r) {
70
- const n = hr(e);
40
+ function Qt(e, t, r) {
41
+ const n = Jt(e);
71
42
  if (!n.getElementById(t)) {
72
43
  const i = O("style");
73
- i.id = t, i.textContent = r, lr(n, i);
44
+ i.id = t, i.textContent = r, qt(n, i);
74
45
  }
75
46
  }
76
- function hr(e) {
47
+ function Jt(e) {
77
48
  if (!e) return document;
78
49
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
79
50
  return t && /** @type {ShadowRoot} */
@@ -82,46 +53,46 @@ function hr(e) {
82
53
  t
83
54
  ) : e.ownerDocument;
84
55
  }
85
- function lr(e, t) {
56
+ function qt(e, t) {
86
57
  return v(
87
58
  /** @type {Document} */
88
59
  e.head || e,
89
60
  t
90
61
  ), t.sheet;
91
62
  }
92
- function K(e, t, r) {
63
+ function Y(e, t, r) {
93
64
  e.insertBefore(t, r || null);
94
65
  }
95
- function k(e) {
66
+ function j(e) {
96
67
  e.parentNode && e.parentNode.removeChild(e);
97
68
  }
98
- function rt(e, t) {
69
+ function Ze(e, t) {
99
70
  for (let r = 0; r < e.length; r += 1)
100
71
  e[r] && e[r].d(t);
101
72
  }
102
73
  function O(e) {
103
74
  return document.createElement(e);
104
75
  }
105
- function U(e) {
76
+ function R(e) {
106
77
  return document.createTextNode(e);
107
78
  }
108
- function R() {
109
- return U(" ");
79
+ function $() {
80
+ return R(" ");
110
81
  }
111
- function At(e, t, r, n) {
82
+ function yt(e, t, r, n) {
112
83
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
113
84
  }
114
85
  function B(e, t, r) {
115
86
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
116
87
  }
117
- function fr(e) {
88
+ function Yt(e) {
118
89
  return Array.from(e.childNodes);
119
90
  }
120
- function F(e, t) {
91
+ function D(e, t) {
121
92
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
122
93
  t);
123
94
  }
124
- function cr(e) {
95
+ function Kt(e) {
125
96
  const t = {};
126
97
  return e.childNodes.forEach(
127
98
  /** @param {Element} node */
@@ -130,241 +101,237 @@ function cr(e) {
130
101
  }
131
102
  ), t;
132
103
  }
133
- let Ve;
134
- function ie(e) {
135
- Ve = e;
104
+ let je;
105
+ function ne(e) {
106
+ je = e;
136
107
  }
137
- const W = [], we = [];
138
- let Z = [];
139
- const nt = [], gr = /* @__PURE__ */ Promise.resolve();
140
- let Ne = !1;
141
- function mr() {
142
- Ne || (Ne = !0, gr.then($));
108
+ const z = [], Oe = [];
109
+ let W = [];
110
+ const Qe = [], er = /* @__PURE__ */ Promise.resolve();
111
+ let Pe = !1;
112
+ function tr() {
113
+ Pe || (Pe = !0, er.then(M));
143
114
  }
144
- function Ie(e) {
145
- Z.push(e);
115
+ function we(e) {
116
+ W.push(e);
146
117
  }
147
- const Ce = /* @__PURE__ */ new Set();
148
- let X = 0;
149
- function $() {
150
- if (X !== 0)
118
+ const ve = /* @__PURE__ */ new Set();
119
+ let V = 0;
120
+ function M() {
121
+ if (V !== 0)
151
122
  return;
152
- const e = Ve;
123
+ const e = je;
153
124
  do {
154
125
  try {
155
- for (; X < W.length; ) {
156
- const t = W[X];
157
- X++, ie(t), pr(t.$$);
126
+ for (; V < z.length; ) {
127
+ const t = z[V];
128
+ V++, ne(t), rr(t.$$);
158
129
  }
159
130
  } catch (t) {
160
- throw W.length = 0, X = 0, t;
131
+ throw z.length = 0, V = 0, t;
161
132
  }
162
- for (ie(null), W.length = 0, X = 0; we.length; ) we.pop()();
163
- for (let t = 0; t < Z.length; t += 1) {
164
- const r = Z[t];
165
- Ce.has(r) || (Ce.add(r), r());
133
+ for (ne(null), z.length = 0, V = 0; Oe.length; ) Oe.pop()();
134
+ for (let t = 0; t < W.length; t += 1) {
135
+ const r = W[t];
136
+ ve.has(r) || (ve.add(r), r());
166
137
  }
167
- Z.length = 0;
168
- } while (W.length);
169
- for (; nt.length; )
170
- nt.pop()();
171
- Ne = !1, Ce.clear(), ie(e);
138
+ W.length = 0;
139
+ } while (z.length);
140
+ for (; Qe.length; )
141
+ Qe.pop()();
142
+ Pe = !1, ve.clear(), ne(e);
172
143
  }
173
- function pr(e) {
144
+ function rr(e) {
174
145
  if (e.fragment !== null) {
175
- e.update(), ae(e.before_update);
146
+ e.update(), oe(e.before_update);
176
147
  const t = e.dirty;
177
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
148
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
178
149
  }
179
150
  }
180
- function dr(e) {
151
+ function nr(e) {
181
152
  const t = [], r = [];
182
- Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
153
+ W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
183
154
  }
184
- const br = /* @__PURE__ */ new Set();
185
- function yr(e, t) {
186
- e && e.i && (br.delete(e), e.i(t));
155
+ const ir = /* @__PURE__ */ new Set();
156
+ function sr(e, t) {
157
+ e && e.i && (ir.delete(e), e.i(t));
187
158
  }
188
- function le(e) {
189
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
159
+ function he(e) {
160
+ return e?.length !== void 0 ? e : Array.from(e);
190
161
  }
191
- function Er(e, t, r) {
162
+ function or(e, t, r) {
192
163
  const { fragment: n, after_update: i } = e.$$;
193
- n && n.m(t, r), Ie(() => {
194
- const s = e.$$.on_mount.map(Tt).filter(ke);
195
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ae(s), e.$$.on_mount = [];
196
- }), i.forEach(Ie);
164
+ n && n.m(t, r), we(() => {
165
+ const s = e.$$.on_mount.map(pt).filter(Fe);
166
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : oe(s), e.$$.on_mount = [];
167
+ }), i.forEach(we);
197
168
  }
198
- function xr(e, t) {
169
+ function ar(e, t) {
199
170
  const r = e.$$;
200
- 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 = []);
171
+ r.fragment !== null && (nr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
201
172
  }
202
- function _r(e, t) {
203
- e.$$.dirty[0] === -1 && (W.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
173
+ function ur(e, t) {
174
+ e.$$.dirty[0] === -1 && (z.push(e), tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
204
175
  }
205
- function vr(e, t, r, n, i, s, o = null, u = [-1]) {
206
- const h = Ve;
207
- ie(e);
176
+ function hr(e, t, r, n, i, s, o = null, u = [-1]) {
177
+ const f = je;
178
+ ne(e);
208
179
  const a = e.$$ = {
209
180
  fragment: null,
210
181
  ctx: [],
211
182
  // state
212
183
  props: s,
213
- update: M,
184
+ update: L,
214
185
  not_equal: i,
215
- bound: tt(),
186
+ bound: We(),
216
187
  // lifecycle
217
188
  on_mount: [],
218
189
  on_destroy: [],
219
190
  on_disconnect: [],
220
191
  before_update: [],
221
192
  after_update: [],
222
- context: new Map(t.context || (h ? h.$$.context : [])),
193
+ context: new Map(t.context || (f ? f.$$.context : [])),
223
194
  // everything else
224
- callbacks: tt(),
195
+ callbacks: We(),
225
196
  dirty: u,
226
197
  skip_bound: !1,
227
- root: t.target || h.$$.root
198
+ root: t.target || f.$$.root
228
199
  };
229
200
  o && o(a.root);
230
- let l = !1;
231
- if (a.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
232
- const p = d.length ? d[0] : f;
233
- return a.ctx && i(a.ctx[c], a.ctx[c] = p) && (!a.skip_bound && a.bound[c] && a.bound[c](p), l && _r(e, c)), f;
234
- }) : [], a.update(), l = !0, ae(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
201
+ let h = !1;
202
+ if (a.ctx = r(e, t.props || {}, (c, l, ...d) => {
203
+ const p = d.length ? d[0] : l;
204
+ return a.ctx && i(a.ctx[c], a.ctx[c] = p) && (!a.skip_bound && a.bound[c] && a.bound[c](p), h && ur(e, c)), l;
205
+ }), a.update(), h = !0, oe(a.before_update), a.fragment = n(a.ctx), t.target) {
235
206
  if (t.hydrate) {
236
- const c = fr(t.target);
237
- a.fragment && a.fragment.l(c), c.forEach(k);
207
+ const c = Yt(t.target);
208
+ a.fragment && a.fragment.l(c), c.forEach(j);
238
209
  } else
239
210
  a.fragment && a.fragment.c();
240
- t.intro && yr(e.$$.fragment), Er(e, t.target, t.anchor), $();
211
+ t.intro && sr(e.$$.fragment), or(e, t.target, t.anchor), M();
241
212
  }
242
- ie(h);
243
- }
244
- let Bt;
245
- typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
246
- constructor(t, r, n) {
247
- super();
248
- /** The Svelte component constructor */
249
- L(this, "$$ctor");
250
- /** Slots */
251
- L(this, "$$s");
252
- /** The Svelte component instance */
253
- L(this, "$$c");
254
- /** Whether or not the custom element is connected */
255
- L(this, "$$cn", !1);
256
- /** Component props data */
257
- L(this, "$$d", {});
258
- /** `true` if currently in the process of reflecting component props back to attributes */
259
- L(this, "$$r", !1);
260
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
261
- L(this, "$$p_d", {});
262
- /** @type {Record<string, Function[]>} Event listeners */
263
- L(this, "$$l", {});
264
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
265
- L(this, "$$l_u", /* @__PURE__ */ new Map());
266
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
213
+ ne(f);
214
+ }
215
+ let _t;
216
+ typeof HTMLElement == "function" && (_t = class extends HTMLElement {
217
+ /** The Svelte component constructor */
218
+ $$ctor;
219
+ /** Slots */
220
+ $$s;
221
+ /** The Svelte component instance */
222
+ $$c;
223
+ /** Whether or not the custom element is connected */
224
+ $$cn = !1;
225
+ /** Component props data */
226
+ $$d = {};
227
+ /** `true` if currently in the process of reflecting component props back to attributes */
228
+ $$r = !1;
229
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
230
+ $$p_d = {};
231
+ /** @type {Record<string, Function[]>} Event listeners */
232
+ $$l = {};
233
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
234
+ $$l_u = /* @__PURE__ */ new Map();
235
+ constructor(e, t, r) {
236
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
267
237
  }
268
- addEventListener(t, r, n) {
269
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
270
- const i = this.$$c.$on(t, r);
271
- this.$$l_u.set(r, i);
238
+ addEventListener(e, t, r) {
239
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
240
+ const n = this.$$c.$on(e, t);
241
+ this.$$l_u.set(t, n);
272
242
  }
273
- super.addEventListener(t, r, n);
243
+ super.addEventListener(e, t, r);
274
244
  }
275
- removeEventListener(t, r, n) {
276
- if (super.removeEventListener(t, r, n), this.$$c) {
277
- const i = this.$$l_u.get(r);
278
- i && (i(), this.$$l_u.delete(r));
245
+ removeEventListener(e, t, r) {
246
+ if (super.removeEventListener(e, t, r), this.$$c) {
247
+ const n = this.$$l_u.get(t);
248
+ n && (n(), this.$$l_u.delete(t));
279
249
  }
280
250
  }
281
- connectedCallback() {
282
- return et(this, null, function* () {
283
- if (this.$$cn = !0, !this.$$c) {
284
- let t = function(s) {
285
- return () => {
286
- let o;
287
- return {
288
- c: function() {
289
- o = O("slot"), s !== "default" && B(o, "name", s);
290
- },
291
- /**
292
- * @param {HTMLElement} target
293
- * @param {HTMLElement} [anchor]
294
- */
295
- m: function(a, l) {
296
- K(a, o, l);
297
- },
298
- d: function(a) {
299
- a && k(o);
300
- }
301
- };
251
+ async connectedCallback() {
252
+ if (this.$$cn = !0, !this.$$c) {
253
+ let e = function(i) {
254
+ return () => {
255
+ let s;
256
+ return {
257
+ c: function() {
258
+ s = O("slot"), i !== "default" && B(s, "name", i);
259
+ },
260
+ /**
261
+ * @param {HTMLElement} target
262
+ * @param {HTMLElement} [anchor]
263
+ */
264
+ m: function(f, a) {
265
+ Y(f, s, a);
266
+ },
267
+ d: function(f) {
268
+ f && j(s);
269
+ }
302
270
  };
303
271
  };
304
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
305
- return;
306
- const r = {}, n = cr(this);
307
- for (const s of this.$$s)
308
- s in n && (r[s] = [t(s)]);
309
- for (const s of this.attributes) {
310
- const o = this.$$g_p(s.name);
311
- o in this.$$d || (this.$$d[o] = ce(o, s.value, this.$$p_d, "toProp"));
272
+ };
273
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
274
+ return;
275
+ const t = {}, r = Kt(this);
276
+ for (const i of this.$$s)
277
+ i in r && (t[i] = [e(i)]);
278
+ for (const i of this.attributes) {
279
+ const s = this.$$g_p(i.name);
280
+ s in this.$$d || (this.$$d[s] = fe(s, i.value, this.$$p_d, "toProp"));
281
+ }
282
+ for (const i in this.$$p_d)
283
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
284
+ this.$$c = new this.$$ctor({
285
+ target: this.shadowRoot || this,
286
+ props: {
287
+ ...this.$$d,
288
+ $$slots: t,
289
+ $$scope: {
290
+ ctx: []
291
+ }
312
292
  }
313
- for (const s in this.$$p_d)
314
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
315
- this.$$c = new this.$$ctor({
316
- target: this.shadowRoot || this,
317
- props: Ke(Ye({}, this.$$d), {
318
- $$slots: r,
319
- $$scope: {
320
- ctx: []
321
- }
322
- })
323
- });
324
- const i = () => {
325
- this.$$r = !0;
326
- for (const s in this.$$p_d)
327
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
328
- const o = ce(
329
- s,
330
- this.$$d[s],
331
- this.$$p_d,
332
- "toAttribute"
333
- );
334
- o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
335
- }
336
- this.$$r = !1;
337
- };
338
- this.$$c.$$.after_update.push(i), i();
339
- for (const s in this.$$l)
340
- for (const o of this.$$l[s]) {
341
- const u = this.$$c.$on(s, o);
342
- this.$$l_u.set(o, u);
293
+ });
294
+ const n = () => {
295
+ this.$$r = !0;
296
+ for (const i in this.$$p_d)
297
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
298
+ const s = fe(
299
+ i,
300
+ this.$$d[i],
301
+ this.$$p_d,
302
+ "toAttribute"
303
+ );
304
+ s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
343
305
  }
344
- this.$$l = {};
345
- }
346
- });
306
+ this.$$r = !1;
307
+ };
308
+ this.$$c.$$.after_update.push(n), n();
309
+ for (const i in this.$$l)
310
+ for (const s of this.$$l[i]) {
311
+ const o = this.$$c.$on(i, s);
312
+ this.$$l_u.set(s, o);
313
+ }
314
+ this.$$l = {};
315
+ }
347
316
  }
348
317
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
349
318
  // and setting attributes through setAttribute etc, this is helpful
350
- attributeChangedCallback(t, r, n) {
351
- var i;
352
- 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] }));
319
+ attributeChangedCallback(e, t, r) {
320
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
353
321
  }
354
322
  disconnectedCallback() {
355
323
  this.$$cn = !1, Promise.resolve().then(() => {
356
324
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
357
325
  });
358
326
  }
359
- $$g_p(t) {
327
+ $$g_p(e) {
360
328
  return Object.keys(this.$$p_d).find(
361
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
362
- ) || t;
329
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
330
+ ) || e;
363
331
  }
364
332
  });
365
- function ce(e, t, r, n) {
366
- var s;
367
- const i = (s = r[e]) == null ? void 0 : s.type;
333
+ function fe(e, t, r, n) {
334
+ const i = r[e]?.type;
368
335
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
369
336
  return t;
370
337
  if (n === "toAttribute")
@@ -375,7 +342,7 @@ function ce(e, t, r, n) {
375
342
  case "Boolean":
376
343
  return t ? "" : null;
377
344
  case "Number":
378
- return t == null ? null : t;
345
+ return t ?? null;
379
346
  default:
380
347
  return t;
381
348
  }
@@ -392,8 +359,8 @@ function ce(e, t, r, n) {
392
359
  return t;
393
360
  }
394
361
  }
395
- function Tr(e, t, r, n, i, s) {
396
- let o = class extends Bt {
362
+ function lr(e, t, r, n, i, s) {
363
+ let o = class extends _t {
397
364
  constructor() {
398
365
  super(e, r, i), this.$$p_d = t;
399
366
  }
@@ -408,43 +375,39 @@ function Tr(e, t, r, n, i, s) {
408
375
  get() {
409
376
  return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
410
377
  },
411
- set(h) {
412
- var a;
413
- h = ce(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
378
+ set(f) {
379
+ f = fe(u, f, t), this.$$d[u] = f, this.$$c?.$set({ [u]: f });
414
380
  }
415
381
  });
416
382
  }), n.forEach((u) => {
417
383
  Object.defineProperty(o.prototype, u, {
418
384
  get() {
419
- var h;
420
- return (h = this.$$c) == null ? void 0 : h[u];
385
+ return this.$$c?.[u];
421
386
  }
422
387
  });
423
388
  }), e.element = /** @type {any} */
424
389
  o, o;
425
390
  }
426
- class Cr {
427
- constructor() {
428
- /**
429
- * ### PRIVATE API
430
- *
431
- * Do not use, may change at any time
432
- *
433
- * @type {any}
434
- */
435
- L(this, "$$");
436
- /**
437
- * ### PRIVATE API
438
- *
439
- * Do not use, may change at any time
440
- *
441
- * @type {any}
442
- */
443
- L(this, "$$set");
444
- }
391
+ class fr {
392
+ /**
393
+ * ### PRIVATE API
394
+ *
395
+ * Do not use, may change at any time
396
+ *
397
+ * @type {any}
398
+ */
399
+ $$ = void 0;
400
+ /**
401
+ * ### PRIVATE API
402
+ *
403
+ * Do not use, may change at any time
404
+ *
405
+ * @type {any}
406
+ */
407
+ $$set = void 0;
445
408
  /** @returns {void} */
446
409
  $destroy() {
447
- xr(this, 1), this.$destroy = M;
410
+ ar(this, 1), this.$destroy = L;
448
411
  }
449
412
  /**
450
413
  * @template {Extract<keyof Events, string>} K
@@ -453,8 +416,8 @@ class Cr {
453
416
  * @returns {() => void}
454
417
  */
455
418
  $on(t, r) {
456
- if (!ke(r))
457
- return M;
419
+ if (!Fe(r))
420
+ return L;
458
421
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
459
422
  return n.push(r), () => {
460
423
  const i = n.indexOf(r);
@@ -466,159 +429,159 @@ class Cr {
466
429
  * @returns {void}
467
430
  */
468
431
  $set(t) {
469
- this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
432
+ this.$$set && !Wt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
470
433
  }
471
434
  }
472
- const Hr = "4";
473
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
474
- const z = [];
475
- function Ar(e, t) {
435
+ const cr = "4";
436
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cr);
437
+ const X = [];
438
+ function gr(e, t) {
476
439
  return {
477
- subscribe: ye(e, t).subscribe
440
+ subscribe: be(e, t).subscribe
478
441
  };
479
442
  }
480
- function ye(e, t = M) {
443
+ function be(e, t = L) {
481
444
  let r;
482
445
  const n = /* @__PURE__ */ new Set();
483
446
  function i(u) {
484
- if (Ct(e, u) && (e = u, r)) {
485
- const h = !z.length;
447
+ if (dt(e, u) && (e = u, r)) {
448
+ const f = !X.length;
486
449
  for (const a of n)
487
- a[1](), z.push(a, e);
488
- if (h) {
489
- for (let a = 0; a < z.length; a += 2)
490
- z[a][0](z[a + 1]);
491
- z.length = 0;
450
+ a[1](), X.push(a, e);
451
+ if (f) {
452
+ for (let a = 0; a < X.length; a += 2)
453
+ X[a][0](X[a + 1]);
454
+ X.length = 0;
492
455
  }
493
456
  }
494
457
  }
495
458
  function s(u) {
496
459
  i(u(e));
497
460
  }
498
- function o(u, h = M) {
499
- const a = [u, h];
500
- return n.add(a), n.size === 1 && (r = t(i, s) || M), u(e), () => {
461
+ function o(u, f = L) {
462
+ const a = [u, f];
463
+ return n.add(a), n.size === 1 && (r = t(i, s) || L), u(e), () => {
501
464
  n.delete(a), n.size === 0 && r && (r(), r = null);
502
465
  };
503
466
  }
504
467
  return { set: i, update: s, subscribe: o };
505
468
  }
506
- function ee(e, t, r) {
469
+ function K(e, t, r) {
507
470
  const n = !Array.isArray(e), i = n ? [e] : e;
508
471
  if (!i.every(Boolean))
509
472
  throw new Error("derived() expects stores as input, got a falsy value");
510
473
  const s = t.length < 2;
511
- return Ar(r, (o, u) => {
512
- let h = !1;
474
+ return gr(r, (o, u) => {
475
+ let f = !1;
513
476
  const a = [];
514
- let l = 0, c = M;
515
- const f = () => {
516
- if (l)
477
+ let h = 0, c = L;
478
+ const l = () => {
479
+ if (h)
517
480
  return;
518
481
  c();
519
482
  const p = t(n ? a[0] : a, o, u);
520
- s ? o(p) : c = ke(p) ? p : M;
483
+ s ? o(p) : c = Fe(p) ? p : L;
521
484
  }, d = i.map(
522
- (p, g) => Ht(
485
+ (p, g) => bt(
523
486
  p,
524
- (_) => {
525
- a[g] = _, l &= ~(1 << g), h && f();
487
+ (E) => {
488
+ a[g] = E, h &= ~(1 << g), f && l();
526
489
  },
527
490
  () => {
528
- l |= 1 << g;
491
+ h |= 1 << g;
529
492
  }
530
493
  )
531
494
  );
532
- return h = !0, f(), function() {
533
- ae(d), c(), h = !1;
495
+ return f = !0, l(), function() {
496
+ oe(d), c(), f = !1;
534
497
  };
535
498
  });
536
499
  }
537
- function Br(e) {
538
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
500
+ function mr(e) {
501
+ return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
539
502
  }
540
- var Sr = function(t) {
541
- return Or(t) && !Pr(t);
503
+ var pr = function(t) {
504
+ return dr(t) && !br(t);
542
505
  };
543
- function Or(e) {
506
+ function dr(e) {
544
507
  return !!e && typeof e == "object";
545
508
  }
546
- function Pr(e) {
509
+ function br(e) {
547
510
  var t = Object.prototype.toString.call(e);
548
- return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
511
+ return t === "[object RegExp]" || t === "[object Date]" || xr(e);
549
512
  }
550
- var wr = typeof Symbol == "function" && Symbol.for, Nr = wr ? Symbol.for("react.element") : 60103;
551
- function Ir(e) {
552
- return e.$$typeof === Nr;
513
+ var yr = typeof Symbol == "function" && Symbol.for, _r = yr ? Symbol.for("react.element") : 60103;
514
+ function xr(e) {
515
+ return e.$$typeof === _r;
553
516
  }
554
- function Lr(e) {
517
+ function Er(e) {
555
518
  return Array.isArray(e) ? [] : {};
556
519
  }
557
- function se(e, t) {
558
- return t.clone !== !1 && t.isMergeableObject(e) ? Q(Lr(e), e, t) : e;
520
+ function ie(e, t) {
521
+ return t.clone !== !1 && t.isMergeableObject(e) ? Z(Er(e), e, t) : e;
559
522
  }
560
- function Mr(e, t, r) {
523
+ function vr(e, t, r) {
561
524
  return e.concat(t).map(function(n) {
562
- return se(n, r);
525
+ return ie(n, r);
563
526
  });
564
527
  }
565
- function $r(e, t) {
528
+ function Tr(e, t) {
566
529
  if (!t.customMerge)
567
- return Q;
530
+ return Z;
568
531
  var r = t.customMerge(e);
569
- return typeof r == "function" ? r : Q;
532
+ return typeof r == "function" ? r : Z;
570
533
  }
571
- function Rr(e) {
534
+ function Cr(e) {
572
535
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
573
536
  return Object.propertyIsEnumerable.call(e, t);
574
537
  }) : [];
575
538
  }
576
- function it(e) {
577
- return Object.keys(e).concat(Rr(e));
539
+ function Je(e) {
540
+ return Object.keys(e).concat(Cr(e));
578
541
  }
579
- function St(e, t) {
542
+ function xt(e, t) {
580
543
  try {
581
544
  return t in e;
582
- } catch (r) {
545
+ } catch {
583
546
  return !1;
584
547
  }
585
548
  }
586
- function Ur(e, t) {
587
- return St(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
549
+ function Hr(e, t) {
550
+ return xt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
588
551
  }
589
- function Gr(e, t, r) {
552
+ function Ar(e, t, r) {
590
553
  var n = {};
591
- return r.isMergeableObject(e) && it(e).forEach(function(i) {
592
- n[i] = se(e[i], r);
593
- }), it(t).forEach(function(i) {
594
- Ur(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = $r(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
554
+ return r.isMergeableObject(e) && Je(e).forEach(function(i) {
555
+ n[i] = ie(e[i], r);
556
+ }), Je(t).forEach(function(i) {
557
+ Hr(e, i) || (xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
595
558
  }), n;
596
559
  }
597
- function Q(e, t, r) {
598
- r = r || {}, r.arrayMerge = r.arrayMerge || Mr, r.isMergeableObject = r.isMergeableObject || Sr, r.cloneUnlessOtherwiseSpecified = se;
560
+ function Z(e, t, r) {
561
+ r = r || {}, r.arrayMerge = r.arrayMerge || vr, r.isMergeableObject = r.isMergeableObject || pr, r.cloneUnlessOtherwiseSpecified = ie;
599
562
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
600
- return s ? n ? r.arrayMerge(e, t, r) : Gr(e, t, r) : se(t, r);
563
+ return s ? n ? r.arrayMerge(e, t, r) : Ar(e, t, r) : ie(t, r);
601
564
  }
602
- Q.all = function(t, r) {
565
+ Z.all = function(t, r) {
603
566
  if (!Array.isArray(t))
604
567
  throw new Error("first argument should be an array");
605
568
  return t.reduce(function(n, i) {
606
- return Q(n, i, r);
569
+ return Z(n, i, r);
607
570
  }, {});
608
571
  };
609
- var Dr = Q, Fr = Dr;
610
- const jr = /* @__PURE__ */ Br(Fr);
611
- var Le = function(e, t) {
612
- return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
572
+ var Br = Z, Sr = Br;
573
+ const Or = /* @__PURE__ */ mr(Sr);
574
+ var Ne = function(e, t) {
575
+ return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
613
576
  r.__proto__ = n;
614
577
  } || function(r, n) {
615
578
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
616
- }, Le(e, t);
579
+ }, Ne(e, t);
617
580
  };
618
- function Ee(e, t) {
581
+ function ye(e, t) {
619
582
  if (typeof t != "function" && t !== null)
620
583
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
621
- Le(e, t);
584
+ Ne(e, t);
622
585
  function r() {
623
586
  this.constructor = e;
624
587
  }
@@ -633,7 +596,7 @@ var x = function() {
633
596
  return t;
634
597
  }, x.apply(this, arguments);
635
598
  };
636
- function kr(e, t) {
599
+ function Pr(e, t) {
637
600
  var r = {};
638
601
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
639
602
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -641,61 +604,63 @@ function kr(e, t) {
641
604
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
642
605
  return r;
643
606
  }
644
- function He(e, t, r) {
607
+ function Te(e, t, r) {
645
608
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
646
609
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
647
610
  return e.concat(s || Array.prototype.slice.call(t));
648
611
  }
649
- function Ae(e, t) {
650
- var r = t && t.cache ? t.cache : Qr, n = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : Xr;
612
+ function Ce(e, t) {
613
+ var r = t && t.cache ? t.cache : Rr, n = t && t.serializer ? t.serializer : Mr, i = t && t.strategy ? t.strategy : Nr;
651
614
  return i(e, {
652
615
  cache: r,
653
616
  serializer: n
654
617
  });
655
618
  }
656
- function Vr(e) {
619
+ function wr(e) {
657
620
  return e == null || typeof e == "number" || typeof e == "boolean";
658
621
  }
659
- function Ot(e, t, r, n) {
660
- var i = Vr(n) ? n : r(n), s = t.get(i);
661
- return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
622
+ function Et(e, t, r, n) {
623
+ var i = wr(n) ? n : r(n), s = t.get(i);
624
+ return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
662
625
  }
663
- function Pt(e, t, r) {
626
+ function vt(e, t, r) {
664
627
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
665
- return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
628
+ return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
666
629
  }
667
- function Xe(e, t, r, n, i) {
630
+ function ke(e, t, r, n, i) {
668
631
  return r.bind(t, e, n, i);
669
632
  }
670
- function Xr(e, t) {
671
- var r = e.length === 1 ? Ot : Pt;
672
- return Xe(e, this, r, t.cache.create(), t.serializer);
633
+ function Nr(e, t) {
634
+ var r = e.length === 1 ? Et : vt;
635
+ return ke(e, this, r, t.cache.create(), t.serializer);
673
636
  }
674
- function zr(e, t) {
675
- return Xe(e, this, Pt, t.cache.create(), t.serializer);
637
+ function Ir(e, t) {
638
+ return ke(e, this, vt, t.cache.create(), t.serializer);
676
639
  }
677
- function Wr(e, t) {
678
- return Xe(e, this, Ot, t.cache.create(), t.serializer);
640
+ function Lr(e, t) {
641
+ return ke(e, this, Et, t.cache.create(), t.serializer);
679
642
  }
680
- var Zr = function() {
643
+ var Mr = function() {
681
644
  return JSON.stringify(arguments);
682
- };
683
- function ze() {
684
- this.cache = /* @__PURE__ */ Object.create(null);
685
- }
686
- ze.prototype.get = function(e) {
687
- return this.cache[e];
688
- };
689
- ze.prototype.set = function(e, t) {
690
- this.cache[e] = t;
691
- };
692
- var Qr = {
645
+ }, $r = (
646
+ /** @class */
647
+ function() {
648
+ function e() {
649
+ this.cache = /* @__PURE__ */ Object.create(null);
650
+ }
651
+ return e.prototype.get = function(t) {
652
+ return this.cache[t];
653
+ }, e.prototype.set = function(t, r) {
654
+ this.cache[t] = r;
655
+ }, e;
656
+ }()
657
+ ), Rr = {
693
658
  create: function() {
694
- return new ze();
659
+ return new $r();
695
660
  }
696
- }, Be = {
697
- variadic: zr,
698
- monadic: Wr
661
+ }, He = {
662
+ variadic: Ir,
663
+ monadic: Lr
699
664
  }, y;
700
665
  (function(e) {
701
666
  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";
@@ -704,47 +669,47 @@ var T;
704
669
  (function(e) {
705
670
  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";
706
671
  })(T || (T = {}));
707
- var J;
672
+ var Q;
708
673
  (function(e) {
709
674
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
710
- })(J || (J = {}));
711
- function st(e) {
675
+ })(Q || (Q = {}));
676
+ function qe(e) {
712
677
  return e.type === T.literal;
713
678
  }
714
- function Jr(e) {
679
+ function Ur(e) {
715
680
  return e.type === T.argument;
716
681
  }
717
- function wt(e) {
682
+ function Tt(e) {
718
683
  return e.type === T.number;
719
684
  }
720
- function Nt(e) {
685
+ function Ct(e) {
721
686
  return e.type === T.date;
722
687
  }
723
- function It(e) {
688
+ function Ht(e) {
724
689
  return e.type === T.time;
725
690
  }
726
- function Lt(e) {
691
+ function At(e) {
727
692
  return e.type === T.select;
728
693
  }
729
- function Mt(e) {
694
+ function Bt(e) {
730
695
  return e.type === T.plural;
731
696
  }
732
- function qr(e) {
697
+ function Gr(e) {
733
698
  return e.type === T.pound;
734
699
  }
735
- function $t(e) {
700
+ function St(e) {
736
701
  return e.type === T.tag;
737
702
  }
738
- function Rt(e) {
739
- return !!(e && typeof e == "object" && e.type === J.number);
703
+ function Ot(e) {
704
+ return !!(e && typeof e == "object" && e.type === Q.number);
740
705
  }
741
- function Me(e) {
742
- return !!(e && typeof e == "object" && e.type === J.dateTime);
706
+ function Ie(e) {
707
+ return !!(e && typeof e == "object" && e.type === Q.dateTime);
743
708
  }
744
- var Ut = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Yr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
745
- function Kr(e) {
709
+ var Pt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
710
+ function Fr(e) {
746
711
  var t = {};
747
- return e.replace(Yr, function(r) {
712
+ return e.replace(Dr, function(r) {
748
713
  var n = r.length;
749
714
  switch (r[0]) {
750
715
  case "G":
@@ -833,36 +798,36 @@ function Kr(e) {
833
798
  return "";
834
799
  }), t;
835
800
  }
836
- var en = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
837
- function tn(e) {
801
+ var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
802
+ function kr(e) {
838
803
  if (e.length === 0)
839
804
  throw new Error("Number skeleton cannot be empty");
840
- for (var t = e.split(en).filter(function(f) {
841
- return f.length > 0;
805
+ for (var t = e.split(jr).filter(function(l) {
806
+ return l.length > 0;
842
807
  }), r = [], n = 0, i = t; n < i.length; n++) {
843
808
  var s = i[n], o = s.split("/");
844
809
  if (o.length === 0)
845
810
  throw new Error("Invalid number skeleton");
846
- for (var u = o[0], h = o.slice(1), a = 0, l = h; a < l.length; a++) {
847
- var c = l[a];
811
+ for (var u = o[0], f = o.slice(1), a = 0, h = f; a < h.length; a++) {
812
+ var c = h[a];
848
813
  if (c.length === 0)
849
814
  throw new Error("Invalid number skeleton");
850
815
  }
851
- r.push({ stem: u, options: h });
816
+ r.push({ stem: u, options: f });
852
817
  }
853
818
  return r;
854
819
  }
855
- function rn(e) {
820
+ function Vr(e) {
856
821
  return e.replace(/^(.*?)-/, "");
857
822
  }
858
- var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gt = /^(@+)?(\+|#+)?[rs]?$/g, nn = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
859
- function at(e) {
823
+ var Ye = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, wt = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Nt = /^(0+)$/;
824
+ function Ke(e) {
860
825
  var t = {};
861
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gt, function(r, n, i) {
826
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(wt, function(r, n, i) {
862
827
  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)), "";
863
828
  }), t;
864
829
  }
865
- function Ft(e) {
830
+ function It(e) {
866
831
  switch (e) {
867
832
  case "sign-auto":
868
833
  return {
@@ -902,7 +867,7 @@ function Ft(e) {
902
867
  };
903
868
  }
904
869
  }
905
- function sn(e) {
870
+ function zr(e) {
906
871
  var t;
907
872
  if (e[0] === "E" && e[1] === "E" ? (t = {
908
873
  notation: "engineering"
@@ -910,17 +875,17 @@ function sn(e) {
910
875
  notation: "scientific"
911
876
  }, e = e.slice(1)), t) {
912
877
  var r = e.slice(0, 2);
913
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
878
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nt.test(e))
914
879
  throw new Error("Malformed concise eng/scientific notation");
915
880
  t.minimumIntegerDigits = e.length;
916
881
  }
917
882
  return t;
918
883
  }
919
- function ut(e) {
920
- var t = {}, r = Ft(e);
884
+ function et(e) {
885
+ var t = {}, r = It(e);
921
886
  return r || t;
922
887
  }
923
- function on(e) {
888
+ function Wr(e) {
924
889
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
925
890
  var i = n[r];
926
891
  switch (i.stem) {
@@ -944,7 +909,7 @@ function on(e) {
944
909
  continue;
945
910
  case "measure-unit":
946
911
  case "unit":
947
- t.style = "unit", t.unit = rn(i.options[0]);
912
+ t.style = "unit", t.unit = Vr(i.options[0]);
948
913
  continue;
949
914
  case "compact-short":
950
915
  case "K":
@@ -955,13 +920,13 @@ function on(e) {
955
920
  t.notation = "compact", t.compactDisplay = "long";
956
921
  continue;
957
922
  case "scientific":
958
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
959
- return x(x({}, h), ut(a));
923
+ t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(f, a) {
924
+ return x(x({}, f), et(a));
960
925
  }, {}));
961
926
  continue;
962
927
  case "engineering":
963
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
964
- return x(x({}, h), ut(a));
928
+ t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(f, a) {
929
+ return x(x({}, f), et(a));
965
930
  }, {}));
966
931
  continue;
967
932
  case "notation-simple":
@@ -1006,11 +971,11 @@ function on(e) {
1006
971
  case "integer-width":
1007
972
  if (i.options.length > 1)
1008
973
  throw new RangeError("integer-width stems only accept a single optional option");
1009
- i.options[0].replace(nn, function(h, a, l, c, f, d) {
974
+ i.options[0].replace(Xr, function(f, a, h, c, l, d) {
1010
975
  if (a)
1011
- t.minimumIntegerDigits = l.length;
976
+ t.minimumIntegerDigits = h.length;
1012
977
  else {
1013
- if (c && f)
978
+ if (c && l)
1014
979
  throw new Error("We currently do not support maximum integer digits");
1015
980
  if (d)
1016
981
  throw new Error("We currently do not support exact integer digits");
@@ -1019,32 +984,32 @@ function on(e) {
1019
984
  });
1020
985
  continue;
1021
986
  }
1022
- if (Dt.test(i.stem)) {
987
+ if (Nt.test(i.stem)) {
1023
988
  t.minimumIntegerDigits = i.stem.length;
1024
989
  continue;
1025
990
  }
1026
- if (ot.test(i.stem)) {
991
+ if (Ye.test(i.stem)) {
1027
992
  if (i.options.length > 1)
1028
993
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1029
- i.stem.replace(ot, function(h, a, l, c, f, d) {
1030
- 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), "";
994
+ i.stem.replace(Ye, function(f, a, h, c, l, d) {
995
+ return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : l && d ? (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
1031
996
  });
1032
997
  var s = i.options[0];
1033
- s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), at(s)));
998
+ s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), Ke(s)));
1034
999
  continue;
1035
1000
  }
1036
- if (Gt.test(i.stem)) {
1037
- t = x(x({}, t), at(i.stem));
1001
+ if (wt.test(i.stem)) {
1002
+ t = x(x({}, t), Ke(i.stem));
1038
1003
  continue;
1039
1004
  }
1040
- var o = Ft(i.stem);
1005
+ var o = It(i.stem);
1041
1006
  o && (t = x(x({}, t), o));
1042
- var u = sn(i.stem);
1007
+ var u = zr(i.stem);
1043
1008
  u && (t = x(x({}, t), u));
1044
1009
  }
1045
1010
  return t;
1046
1011
  }
1047
- var fe = {
1012
+ var le = {
1048
1013
  "001": [
1049
1014
  "H",
1050
1015
  "h"
@@ -2459,22 +2424,22 @@ var fe = {
2459
2424
  "h"
2460
2425
  ]
2461
2426
  };
2462
- function an(e, t) {
2427
+ function Zr(e, t) {
2463
2428
  for (var r = "", n = 0; n < e.length; n++) {
2464
2429
  var i = e.charAt(n);
2465
2430
  if (i === "j") {
2466
2431
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2467
2432
  s++, n++;
2468
- var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = un(t);
2433
+ var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), f = "a", a = Qr(t);
2469
2434
  for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
2470
- r += h;
2435
+ r += f;
2471
2436
  for (; o-- > 0; )
2472
2437
  r = a + r;
2473
2438
  } else i === "J" ? r += "H" : r += i;
2474
2439
  }
2475
2440
  return r;
2476
2441
  }
2477
- function un(e) {
2442
+ function Qr(e) {
2478
2443
  var t = e.hourCycle;
2479
2444
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2480
2445
  e.hourCycles && // @ts-ignore
@@ -2493,23 +2458,23 @@ function un(e) {
2493
2458
  }
2494
2459
  var r = e.language, n;
2495
2460
  r !== "root" && (n = e.maximize().region);
2496
- var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2461
+ var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
2497
2462
  return i[0];
2498
2463
  }
2499
- var Se, hn = new RegExp("^".concat(Ut.source, "*")), ln = new RegExp("".concat(Ut.source, "*$"));
2500
- function E(e, t) {
2464
+ var Ae, Jr = new RegExp("^".concat(Pt.source, "*")), qr = new RegExp("".concat(Pt.source, "*$"));
2465
+ function _(e, t) {
2501
2466
  return { start: e, end: t };
2502
2467
  }
2503
- var fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), cn = !!String.fromCodePoint, gn = !!Object.fromEntries, mn = !!String.prototype.codePointAt, pn = !!String.prototype.trimStart, dn = !!String.prototype.trimEnd, bn = !!Number.isSafeInteger, yn = bn ? Number.isSafeInteger : function(e) {
2468
+ var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, on = sn ? Number.isSafeInteger : function(e) {
2504
2469
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2505
- }, $e = !0;
2470
+ }, Le = !0;
2506
2471
  try {
2507
- var En = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2508
- $e = ((Se = En.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
2509
- } catch (e) {
2510
- $e = !1;
2472
+ var an = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2473
+ Le = ((Ae = an.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
2474
+ } catch {
2475
+ Le = !1;
2511
2476
  }
2512
- var ht = fn ? (
2477
+ var tt = Yr ? (
2513
2478
  // Native
2514
2479
  function(t, r, n) {
2515
2480
  return t.startsWith(r, n);
@@ -2519,7 +2484,7 @@ var ht = fn ? (
2519
2484
  function(t, r, n) {
2520
2485
  return t.slice(n, n + r.length) === r;
2521
2486
  }
2522
- ), Re = cn ? String.fromCodePoint : (
2487
+ ), Me = Kr ? String.fromCodePoint : (
2523
2488
  // IE11
2524
2489
  function() {
2525
2490
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2531,9 +2496,9 @@ var ht = fn ? (
2531
2496
  }
2532
2497
  return n;
2533
2498
  }
2534
- ), lt = (
2499
+ ), rt = (
2535
2500
  // native
2536
- gn ? Object.fromEntries : (
2501
+ en ? Object.fromEntries : (
2537
2502
  // Ponyfill
2538
2503
  function(t) {
2539
2504
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2543,7 +2508,7 @@ var ht = fn ? (
2543
2508
  return r;
2544
2509
  }
2545
2510
  )
2546
- ), jt = mn ? (
2511
+ ), Lt = tn ? (
2547
2512
  // Native
2548
2513
  function(t, r) {
2549
2514
  return t.codePointAt(r);
@@ -2557,7 +2522,7 @@ var ht = fn ? (
2557
2522
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2558
2523
  }
2559
2524
  }
2560
- ), xn = pn ? (
2525
+ ), un = rn ? (
2561
2526
  // Native
2562
2527
  function(t) {
2563
2528
  return t.trimStart();
@@ -2565,9 +2530,9 @@ var ht = fn ? (
2565
2530
  ) : (
2566
2531
  // Ponyfill
2567
2532
  function(t) {
2568
- return t.replace(hn, "");
2533
+ return t.replace(Jr, "");
2569
2534
  }
2570
- ), _n = dn ? (
2535
+ ), hn = nn ? (
2571
2536
  // Native
2572
2537
  function(t) {
2573
2538
  return t.trimEnd();
@@ -2575,32 +2540,32 @@ var ht = fn ? (
2575
2540
  ) : (
2576
2541
  // Ponyfill
2577
2542
  function(t) {
2578
- return t.replace(ln, "");
2543
+ return t.replace(qr, "");
2579
2544
  }
2580
2545
  );
2581
- function kt(e, t) {
2546
+ function Mt(e, t) {
2582
2547
  return new RegExp(e, t);
2583
2548
  }
2584
- var Ue;
2585
- if ($e) {
2586
- var ft = kt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2587
- Ue = function(t, r) {
2549
+ var $e;
2550
+ if (Le) {
2551
+ var nt = Mt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2552
+ $e = function(t, r) {
2588
2553
  var n;
2589
- ft.lastIndex = r;
2590
- var i = ft.exec(t);
2554
+ nt.lastIndex = r;
2555
+ var i = nt.exec(t);
2591
2556
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2592
2557
  };
2593
2558
  } else
2594
- Ue = function(t, r) {
2559
+ $e = function(t, r) {
2595
2560
  for (var n = []; ; ) {
2596
- var i = jt(t, r);
2597
- if (i === void 0 || Vt(i) || Hn(i))
2561
+ var i = Lt(t, r);
2562
+ if (i === void 0 || $t(i) || gn(i))
2598
2563
  break;
2599
2564
  n.push(i), r += i >= 65536 ? 2 : 1;
2600
2565
  }
2601
- return Re.apply(void 0, n);
2566
+ return Me.apply(void 0, n);
2602
2567
  };
2603
- var vn = (
2568
+ var ln = (
2604
2569
  /** @class */
2605
2570
  function() {
2606
2571
  function e(t, r) {
@@ -2625,13 +2590,13 @@ var vn = (
2625
2590
  var u = this.clonePosition();
2626
2591
  this.bump(), i.push({
2627
2592
  type: T.pound,
2628
- location: E(u, this.clonePosition())
2593
+ location: _(u, this.clonePosition())
2629
2594
  });
2630
2595
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2631
2596
  if (n)
2632
2597
  break;
2633
- return this.error(y.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
2634
- } else if (s === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
2598
+ return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
2599
+ } else if (s === 60 && !this.ignoreTag && Re(this.peek() || 0)) {
2635
2600
  var o = this.parseTag(t, r);
2636
2601
  if (o.err)
2637
2602
  return o;
@@ -2654,7 +2619,7 @@ var vn = (
2654
2619
  val: {
2655
2620
  type: T.literal,
2656
2621
  value: "<".concat(i, "/>"),
2657
- location: E(n, this.clonePosition())
2622
+ location: _(n, this.clonePosition())
2658
2623
  },
2659
2624
  err: null
2660
2625
  };
@@ -2664,25 +2629,25 @@ var vn = (
2664
2629
  return s;
2665
2630
  var o = s.val, u = this.clonePosition();
2666
2631
  if (this.bumpIf("</")) {
2667
- if (this.isEOF() || !Ge(this.char()))
2668
- return this.error(y.INVALID_TAG, E(u, this.clonePosition()));
2669
- var h = this.clonePosition(), a = this.parseTagName();
2670
- return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, E(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2632
+ if (this.isEOF() || !Re(this.char()))
2633
+ return this.error(y.INVALID_TAG, _(u, this.clonePosition()));
2634
+ var f = this.clonePosition(), a = this.parseTagName();
2635
+ return i !== a ? this.error(y.UNMATCHED_CLOSING_TAG, _(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2671
2636
  val: {
2672
2637
  type: T.tag,
2673
2638
  value: i,
2674
2639
  children: o,
2675
- location: E(n, this.clonePosition())
2640
+ location: _(n, this.clonePosition())
2676
2641
  },
2677
2642
  err: null
2678
- } : this.error(y.INVALID_TAG, E(u, this.clonePosition())));
2643
+ } : this.error(y.INVALID_TAG, _(u, this.clonePosition())));
2679
2644
  } else
2680
- return this.error(y.UNCLOSED_TAG, E(n, this.clonePosition()));
2645
+ return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
2681
2646
  } else
2682
- return this.error(y.INVALID_TAG, E(n, this.clonePosition()));
2647
+ return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
2683
2648
  }, e.prototype.parseTagName = function() {
2684
2649
  var t = this.offset();
2685
- for (this.bump(); !this.isEOF() && Cn(this.char()); )
2650
+ for (this.bump(); !this.isEOF() && cn(this.char()); )
2686
2651
  this.bump();
2687
2652
  return this.message.slice(t, this.offset());
2688
2653
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2704,14 +2669,14 @@ var vn = (
2704
2669
  }
2705
2670
  break;
2706
2671
  }
2707
- var h = E(n, this.clonePosition());
2672
+ var f = _(n, this.clonePosition());
2708
2673
  return {
2709
- val: { type: T.literal, value: i, location: h },
2674
+ val: { type: T.literal, value: i, location: f },
2710
2675
  err: null
2711
2676
  };
2712
2677
  }, e.prototype.tryParseLeftAngleBracket = function() {
2713
2678
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2714
- !Tn(this.peek() || 0)) ? (this.bump(), "<") : null;
2679
+ !fn(this.peek() || 0)) ? (this.bump(), "<") : null;
2715
2680
  }, e.prototype.tryParseQuote = function(t) {
2716
2681
  if (this.isEOF() || this.char() !== 39)
2717
2682
  return null;
@@ -2745,23 +2710,23 @@ var vn = (
2745
2710
  r.push(n);
2746
2711
  this.bump();
2747
2712
  }
2748
- return Re.apply(void 0, r);
2713
+ return Me.apply(void 0, r);
2749
2714
  }, e.prototype.tryParseUnquoted = function(t, r) {
2750
2715
  if (this.isEOF())
2751
2716
  return null;
2752
2717
  var n = this.char();
2753
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
2718
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Me(n));
2754
2719
  }, e.prototype.parseArgument = function(t, r) {
2755
2720
  var n = this.clonePosition();
2756
2721
  if (this.bump(), this.bumpSpace(), this.isEOF())
2757
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
2722
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
2758
2723
  if (this.char() === 125)
2759
- return this.bump(), this.error(y.EMPTY_ARGUMENT, E(n, this.clonePosition()));
2724
+ return this.bump(), this.error(y.EMPTY_ARGUMENT, _(n, this.clonePosition()));
2760
2725
  var i = this.parseIdentifierIfPossible().value;
2761
2726
  if (!i)
2762
- return this.error(y.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
2727
+ return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2763
2728
  if (this.bumpSpace(), this.isEOF())
2764
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
2729
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
2765
2730
  switch (this.char()) {
2766
2731
  case 125:
2767
2732
  return this.bump(), {
@@ -2769,25 +2734,25 @@ var vn = (
2769
2734
  type: T.argument,
2770
2735
  // value does not include the opening and closing braces.
2771
2736
  value: i,
2772
- location: E(n, this.clonePosition())
2737
+ location: _(n, this.clonePosition())
2773
2738
  },
2774
2739
  err: null
2775
2740
  };
2776
2741
  case 44:
2777
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2742
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2778
2743
  default:
2779
- return this.error(y.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
2744
+ return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2780
2745
  }
2781
2746
  }, e.prototype.parseIdentifierIfPossible = function() {
2782
- var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
2747
+ var t = this.clonePosition(), r = this.offset(), n = $e(this.message, r), i = r + n.length;
2783
2748
  this.bumpTo(i);
2784
- var s = this.clonePosition(), o = E(t, s);
2749
+ var s = this.clonePosition(), o = _(t, s);
2785
2750
  return { value: n, location: o };
2786
2751
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2787
- var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2752
+ var s, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, f = this.clonePosition();
2788
2753
  switch (u) {
2789
2754
  case "":
2790
- return this.error(y.EXPECT_ARGUMENT_TYPE, E(o, h));
2755
+ return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, f));
2791
2756
  case "number":
2792
2757
  case "date":
2793
2758
  case "time": {
@@ -2795,40 +2760,40 @@ var vn = (
2795
2760
  var a = null;
2796
2761
  if (this.bumpIf(",")) {
2797
2762
  this.bumpSpace();
2798
- var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2763
+ var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2799
2764
  if (c.err)
2800
2765
  return c;
2801
- var f = _n(c.val);
2802
- if (f.length === 0)
2803
- return this.error(y.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
2804
- var d = E(l, this.clonePosition());
2805
- a = { style: f, styleLocation: d };
2766
+ var l = hn(c.val);
2767
+ if (l.length === 0)
2768
+ return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
2769
+ var d = _(h, this.clonePosition());
2770
+ a = { style: l, styleLocation: d };
2806
2771
  }
2807
2772
  var p = this.tryParseArgumentClose(i);
2808
2773
  if (p.err)
2809
2774
  return p;
2810
- var g = E(i, this.clonePosition());
2811
- if (a && ht(a == null ? void 0 : a.style, "::", 0)) {
2812
- var _ = xn(a.style.slice(2));
2775
+ var g = _(i, this.clonePosition());
2776
+ if (a && tt(a?.style, "::", 0)) {
2777
+ var E = un(a.style.slice(2));
2813
2778
  if (u === "number") {
2814
- var c = this.parseNumberSkeletonFromString(_, a.styleLocation);
2779
+ var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
2815
2780
  return c.err ? c : {
2816
2781
  val: { type: T.number, value: n, location: g, style: c.val },
2817
2782
  err: null
2818
2783
  };
2819
2784
  } else {
2820
- if (_.length === 0)
2785
+ if (E.length === 0)
2821
2786
  return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
2822
- var m = _;
2823
- this.locale && (m = an(_, this.locale));
2824
- var f = {
2825
- type: J.dateTime,
2787
+ var m = E;
2788
+ this.locale && (m = Zr(E, this.locale));
2789
+ var l = {
2790
+ type: Q.dateTime,
2826
2791
  pattern: m,
2827
2792
  location: a.styleLocation,
2828
- parsedOptions: this.shouldParseSkeletons ? Kr(m) : {}
2793
+ parsedOptions: this.shouldParseSkeletons ? Fr(m) : {}
2829
2794
  }, C = u === "date" ? T.date : T.time;
2830
2795
  return {
2831
- val: { type: C, value: n, location: g, style: f },
2796
+ val: { type: C, value: n, location: g, style: l },
2832
2797
  err: null
2833
2798
  };
2834
2799
  }
@@ -2838,7 +2803,7 @@ var vn = (
2838
2803
  type: u === "number" ? T.number : u === "date" ? T.date : T.time,
2839
2804
  value: n,
2840
2805
  location: g,
2841
- style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
2806
+ style: (s = a?.style) !== null && s !== void 0 ? s : null
2842
2807
  },
2843
2808
  err: null
2844
2809
  };
@@ -2848,12 +2813,12 @@ var vn = (
2848
2813
  case "select": {
2849
2814
  var H = this.clonePosition();
2850
2815
  if (this.bumpSpace(), !this.bumpIf(","))
2851
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, E(H, x({}, H)));
2816
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(H, x({}, H)));
2852
2817
  this.bumpSpace();
2853
2818
  var I = this.parseIdentifierIfPossible(), S = 0;
2854
2819
  if (u !== "select" && I.value === "offset") {
2855
2820
  if (!this.bumpIf(":"))
2856
- return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
2821
+ return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
2857
2822
  this.bumpSpace();
2858
2823
  var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2859
2824
  if (c.err)
@@ -2866,12 +2831,12 @@ var vn = (
2866
2831
  var p = this.tryParseArgumentClose(i);
2867
2832
  if (p.err)
2868
2833
  return p;
2869
- var w = E(i, this.clonePosition());
2834
+ var w = _(i, this.clonePosition());
2870
2835
  return u === "select" ? {
2871
2836
  val: {
2872
2837
  type: T.select,
2873
2838
  value: n,
2874
- options: lt(A.val),
2839
+ options: rt(A.val),
2875
2840
  location: w
2876
2841
  },
2877
2842
  err: null
@@ -2879,7 +2844,7 @@ var vn = (
2879
2844
  val: {
2880
2845
  type: T.plural,
2881
2846
  value: n,
2882
- options: lt(A.val),
2847
+ options: rt(A.val),
2883
2848
  offset: S,
2884
2849
  pluralType: u === "plural" ? "cardinal" : "ordinal",
2885
2850
  location: w
@@ -2888,10 +2853,10 @@ var vn = (
2888
2853
  };
2889
2854
  }
2890
2855
  default:
2891
- return this.error(y.INVALID_ARGUMENT_TYPE, E(o, h));
2856
+ return this.error(y.INVALID_ARGUMENT_TYPE, _(o, f));
2892
2857
  }
2893
2858
  }, e.prototype.tryParseArgumentClose = function(t) {
2894
- return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2859
+ return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2895
2860
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2896
2861
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2897
2862
  var n = this.char();
@@ -2900,7 +2865,7 @@ var vn = (
2900
2865
  this.bump();
2901
2866
  var i = this.clonePosition();
2902
2867
  if (!this.bumpUntil("'"))
2903
- return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
2868
+ return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
2904
2869
  this.bump();
2905
2870
  break;
2906
2871
  }
@@ -2930,37 +2895,37 @@ var vn = (
2930
2895
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2931
2896
  var n = [];
2932
2897
  try {
2933
- n = tn(t);
2934
- } catch (i) {
2898
+ n = kr(t);
2899
+ } catch {
2935
2900
  return this.error(y.INVALID_NUMBER_SKELETON, r);
2936
2901
  }
2937
2902
  return {
2938
2903
  val: {
2939
- type: J.number,
2904
+ type: Q.number,
2940
2905
  tokens: n,
2941
2906
  location: r,
2942
- parsedOptions: this.shouldParseSkeletons ? on(n) : {}
2907
+ parsedOptions: this.shouldParseSkeletons ? Wr(n) : {}
2943
2908
  },
2944
2909
  err: null
2945
2910
  };
2946
2911
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2947
- for (var s, o = !1, u = [], h = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
2912
+ for (var s, o = !1, u = [], f = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
2948
2913
  if (a.length === 0) {
2949
2914
  var c = this.clonePosition();
2950
2915
  if (r !== "select" && this.bumpIf("=")) {
2951
- var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2952
- if (f.err)
2953
- return f;
2954
- l = E(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
2916
+ var l = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2917
+ if (l.err)
2918
+ return l;
2919
+ h = _(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
2955
2920
  } else
2956
2921
  break;
2957
2922
  }
2958
- if (h.has(a))
2959
- return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2923
+ if (f.has(a))
2924
+ return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2960
2925
  a === "other" && (o = !0), this.bumpSpace();
2961
2926
  var d = this.clonePosition();
2962
2927
  if (!this.bumpIf("{"))
2963
- return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
2928
+ return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
2964
2929
  var p = this.parseMessage(t + 1, r, n);
2965
2930
  if (p.err)
2966
2931
  return p;
@@ -2971,11 +2936,11 @@ var vn = (
2971
2936
  a,
2972
2937
  {
2973
2938
  value: p.val,
2974
- location: E(d, this.clonePosition())
2939
+ location: _(d, this.clonePosition())
2975
2940
  }
2976
- ]), h.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
2941
+ ]), f.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
2977
2942
  }
2978
- return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
2943
+ return u.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
2979
2944
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2980
2945
  var n = 1, i = this.clonePosition();
2981
2946
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -2986,8 +2951,8 @@ var vn = (
2986
2951
  else
2987
2952
  break;
2988
2953
  }
2989
- var h = E(i, this.clonePosition());
2990
- return s ? (o *= n, yn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
2954
+ var f = _(i, this.clonePosition());
2955
+ return s ? (o *= n, on(o) ? { val: o, err: null } : this.error(r, f)) : this.error(t, f);
2991
2956
  }, e.prototype.offset = function() {
2992
2957
  return this.position.offset;
2993
2958
  }, e.prototype.isEOF = function() {
@@ -3002,7 +2967,7 @@ var vn = (
3002
2967
  var t = this.position.offset;
3003
2968
  if (t >= this.message.length)
3004
2969
  throw Error("out of bound");
3005
- var r = jt(this.message, t);
2970
+ var r = Lt(this.message, t);
3006
2971
  if (r === void 0)
3007
2972
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3008
2973
  return r;
@@ -3021,7 +2986,7 @@ var vn = (
3021
2986
  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);
3022
2987
  }
3023
2988
  }, e.prototype.bumpIf = function(t) {
3024
- if (ht(this.message, t, this.offset())) {
2989
+ if (tt(this.message, t, this.offset())) {
3025
2990
  for (var r = 0; r < t.length; r++)
3026
2991
  this.bump();
3027
2992
  return !0;
@@ -3043,56 +3008,56 @@ var vn = (
3043
3008
  break;
3044
3009
  }
3045
3010
  }, e.prototype.bumpSpace = function() {
3046
- for (; !this.isEOF() && Vt(this.char()); )
3011
+ for (; !this.isEOF() && $t(this.char()); )
3047
3012
  this.bump();
3048
3013
  }, e.prototype.peek = function() {
3049
3014
  if (this.isEOF())
3050
3015
  return null;
3051
3016
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3052
- return n != null ? n : null;
3017
+ return n ?? null;
3053
3018
  }, e;
3054
3019
  }()
3055
3020
  );
3056
- function Ge(e) {
3021
+ function Re(e) {
3057
3022
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3058
3023
  }
3059
- function Tn(e) {
3060
- return Ge(e) || e === 47;
3024
+ function fn(e) {
3025
+ return Re(e) || e === 47;
3061
3026
  }
3062
- function Cn(e) {
3027
+ function cn(e) {
3063
3028
  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;
3064
3029
  }
3065
- function Vt(e) {
3030
+ function $t(e) {
3066
3031
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3067
3032
  }
3068
- function Hn(e) {
3033
+ function gn(e) {
3069
3034
  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;
3070
3035
  }
3071
- function De(e) {
3036
+ function Ue(e) {
3072
3037
  e.forEach(function(t) {
3073
- if (delete t.location, Lt(t) || Mt(t))
3038
+ if (delete t.location, At(t) || Bt(t))
3074
3039
  for (var r in t.options)
3075
- delete t.options[r].location, De(t.options[r].value);
3076
- else wt(t) && Rt(t.style) || (Nt(t) || It(t)) && Me(t.style) ? delete t.style.location : $t(t) && De(t.children);
3040
+ delete t.options[r].location, Ue(t.options[r].value);
3041
+ else Tt(t) && Ot(t.style) || (Ct(t) || Ht(t)) && Ie(t.style) ? delete t.style.location : St(t) && Ue(t.children);
3077
3042
  });
3078
3043
  }
3079
- function An(e, t) {
3044
+ function mn(e, t) {
3080
3045
  t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3081
- var r = new vn(e, t).parse();
3046
+ var r = new ln(e, t).parse();
3082
3047
  if (r.err) {
3083
3048
  var n = SyntaxError(y[r.err.kind]);
3084
3049
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3085
3050
  }
3086
- return t != null && t.captureLocation || De(r.val), r.val;
3051
+ return t?.captureLocation || Ue(r.val), r.val;
3087
3052
  }
3088
- var q;
3053
+ var J;
3089
3054
  (function(e) {
3090
3055
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3091
- })(q || (q = {}));
3092
- var xe = (
3056
+ })(J || (J = {}));
3057
+ var _e = (
3093
3058
  /** @class */
3094
3059
  function(e) {
3095
- Ee(t, e);
3060
+ ye(t, e);
3096
3061
  function t(r, n, i) {
3097
3062
  var s = e.call(this, r) || this;
3098
3063
  return s.code = n, s.originalMessage = i, s;
@@ -3101,110 +3066,110 @@ var xe = (
3101
3066
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3102
3067
  }, t;
3103
3068
  }(Error)
3104
- ), ct = (
3069
+ ), it = (
3105
3070
  /** @class */
3106
3071
  function(e) {
3107
- Ee(t, e);
3072
+ ye(t, e);
3108
3073
  function t(r, n, i, s) {
3109
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, s) || this;
3074
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
3110
3075
  }
3111
3076
  return t;
3112
- }(xe)
3113
- ), Bn = (
3077
+ }(_e)
3078
+ ), pn = (
3114
3079
  /** @class */
3115
3080
  function(e) {
3116
- Ee(t, e);
3081
+ ye(t, e);
3117
3082
  function t(r, n, i) {
3118
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
3083
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
3119
3084
  }
3120
3085
  return t;
3121
- }(xe)
3122
- ), Sn = (
3086
+ }(_e)
3087
+ ), dn = (
3123
3088
  /** @class */
3124
3089
  function(e) {
3125
- Ee(t, e);
3090
+ ye(t, e);
3126
3091
  function t(r, n) {
3127
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
3092
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
3128
3093
  }
3129
3094
  return t;
3130
- }(xe)
3095
+ }(_e)
3131
3096
  ), P;
3132
3097
  (function(e) {
3133
3098
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3134
3099
  })(P || (P = {}));
3135
- function On(e) {
3100
+ function bn(e) {
3136
3101
  return e.length < 2 ? e : e.reduce(function(t, r) {
3137
3102
  var n = t[t.length - 1];
3138
3103
  return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
3139
3104
  }, []);
3140
3105
  }
3141
- function Pn(e) {
3106
+ function yn(e) {
3142
3107
  return typeof e == "function";
3143
3108
  }
3144
- function ge(e, t, r, n, i, s, o) {
3145
- if (e.length === 1 && st(e[0]))
3109
+ function ce(e, t, r, n, i, s, o) {
3110
+ if (e.length === 1 && qe(e[0]))
3146
3111
  return [
3147
3112
  {
3148
3113
  type: P.literal,
3149
3114
  value: e[0].value
3150
3115
  }
3151
3116
  ];
3152
- for (var u = [], h = 0, a = e; h < a.length; h++) {
3153
- var l = a[h];
3154
- if (st(l)) {
3117
+ for (var u = [], f = 0, a = e; f < a.length; f++) {
3118
+ var h = a[f];
3119
+ if (qe(h)) {
3155
3120
  u.push({
3156
3121
  type: P.literal,
3157
- value: l.value
3122
+ value: h.value
3158
3123
  });
3159
3124
  continue;
3160
3125
  }
3161
- if (qr(l)) {
3126
+ if (Gr(h)) {
3162
3127
  typeof s == "number" && u.push({
3163
3128
  type: P.literal,
3164
3129
  value: r.getNumberFormat(t).format(s)
3165
3130
  });
3166
3131
  continue;
3167
3132
  }
3168
- var c = l.value;
3133
+ var c = h.value;
3169
3134
  if (!(i && c in i))
3170
- throw new Sn(c, o);
3171
- var f = i[c];
3172
- if (Jr(l)) {
3173
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
3174
- type: typeof f == "string" ? P.literal : P.object,
3175
- value: f
3135
+ throw new dn(c, o);
3136
+ var l = i[c];
3137
+ if (Ur(h)) {
3138
+ (!l || typeof l == "string" || typeof l == "number") && (l = typeof l == "string" || typeof l == "number" ? String(l) : ""), u.push({
3139
+ type: typeof l == "string" ? P.literal : P.object,
3140
+ value: l
3176
3141
  });
3177
3142
  continue;
3178
3143
  }
3179
- if (Nt(l)) {
3180
- var d = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
3144
+ if (Ct(h)) {
3145
+ var d = typeof h.style == "string" ? n.date[h.style] : Ie(h.style) ? h.style.parsedOptions : void 0;
3181
3146
  u.push({
3182
3147
  type: P.literal,
3183
- value: r.getDateTimeFormat(t, d).format(f)
3148
+ value: r.getDateTimeFormat(t, d).format(l)
3184
3149
  });
3185
3150
  continue;
3186
3151
  }
3187
- if (It(l)) {
3188
- var d = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
3152
+ if (Ht(h)) {
3153
+ var d = typeof h.style == "string" ? n.time[h.style] : Ie(h.style) ? h.style.parsedOptions : n.time.medium;
3189
3154
  u.push({
3190
3155
  type: P.literal,
3191
- value: r.getDateTimeFormat(t, d).format(f)
3156
+ value: r.getDateTimeFormat(t, d).format(l)
3192
3157
  });
3193
3158
  continue;
3194
3159
  }
3195
- if (wt(l)) {
3196
- var d = typeof l.style == "string" ? n.number[l.style] : Rt(l.style) ? l.style.parsedOptions : void 0;
3197
- d && d.scale && (f = f * (d.scale || 1)), u.push({
3160
+ if (Tt(h)) {
3161
+ var d = typeof h.style == "string" ? n.number[h.style] : Ot(h.style) ? h.style.parsedOptions : void 0;
3162
+ d && d.scale && (l = l * (d.scale || 1)), u.push({
3198
3163
  type: P.literal,
3199
- value: r.getNumberFormat(t, d).format(f)
3164
+ value: r.getNumberFormat(t, d).format(l)
3200
3165
  });
3201
3166
  continue;
3202
3167
  }
3203
- if ($t(l)) {
3204
- var p = l.children, g = l.value, _ = i[g];
3205
- if (!Pn(_))
3206
- throw new Bn(g, "function", o);
3207
- var m = ge(p, t, r, n, i, s), C = _(m.map(function(S) {
3168
+ if (St(h)) {
3169
+ var p = h.children, g = h.value, E = i[g];
3170
+ if (!yn(E))
3171
+ throw new pn(g, "function", o);
3172
+ var m = ce(p, t, r, n, i, s), C = E(m.map(function(S) {
3208
3173
  return S.value;
3209
3174
  }));
3210
3175
  Array.isArray(C) || (C = [C]), u.push.apply(u, C.map(function(S) {
@@ -3214,42 +3179,42 @@ function ge(e, t, r, n, i, s, o) {
3214
3179
  };
3215
3180
  }));
3216
3181
  }
3217
- if (Lt(l)) {
3218
- var H = l.options[f] || l.options.other;
3182
+ if (At(h)) {
3183
+ var H = h.options[l] || h.options.other;
3219
3184
  if (!H)
3220
- throw new ct(l.value, f, Object.keys(l.options), o);
3221
- u.push.apply(u, ge(H.value, t, r, n, i));
3185
+ throw new it(h.value, l, Object.keys(h.options), o);
3186
+ u.push.apply(u, ce(H.value, t, r, n, i));
3222
3187
  continue;
3223
3188
  }
3224
- if (Mt(l)) {
3225
- var H = l.options["=".concat(f)];
3189
+ if (Bt(h)) {
3190
+ var H = h.options["=".concat(l)];
3226
3191
  if (!H) {
3227
3192
  if (!Intl.PluralRules)
3228
- throw new xe(`Intl.PluralRules is not available in this environment.
3193
+ throw new _e(`Intl.PluralRules is not available in this environment.
3229
3194
  Try polyfilling it using "@formatjs/intl-pluralrules"
3230
- `, q.MISSING_INTL_API, o);
3231
- var I = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3232
- H = l.options[I] || l.options.other;
3195
+ `, J.MISSING_INTL_API, o);
3196
+ var I = r.getPluralRules(t, { type: h.pluralType }).select(l - (h.offset || 0));
3197
+ H = h.options[I] || h.options.other;
3233
3198
  }
3234
3199
  if (!H)
3235
- throw new ct(l.value, f, Object.keys(l.options), o);
3236
- u.push.apply(u, ge(H.value, t, r, n, i, f - (l.offset || 0)));
3200
+ throw new it(h.value, l, Object.keys(h.options), o);
3201
+ u.push.apply(u, ce(H.value, t, r, n, i, l - (h.offset || 0)));
3237
3202
  continue;
3238
3203
  }
3239
3204
  }
3240
- return On(u);
3205
+ return bn(u);
3241
3206
  }
3242
- function wn(e, t) {
3207
+ function _n(e, t) {
3243
3208
  return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3244
3209
  return r[n] = x(x({}, e[n]), t[n] || {}), r;
3245
3210
  }, {})) : e;
3246
3211
  }
3247
- function Nn(e, t) {
3212
+ function xn(e, t) {
3248
3213
  return t ? Object.keys(e).reduce(function(r, n) {
3249
- return r[n] = wn(e[n], t[n]), r;
3214
+ return r[n] = _n(e[n], t[n]), r;
3250
3215
  }, x({}, e)) : e;
3251
3216
  }
3252
- function Oe(e) {
3217
+ function Be(e) {
3253
3218
  return {
3254
3219
  create: function() {
3255
3220
  return {
@@ -3263,39 +3228,39 @@ function Oe(e) {
3263
3228
  }
3264
3229
  };
3265
3230
  }
3266
- function In(e) {
3231
+ function En(e) {
3267
3232
  return e === void 0 && (e = {
3268
3233
  number: {},
3269
3234
  dateTime: {},
3270
3235
  pluralRules: {}
3271
3236
  }), {
3272
- getNumberFormat: Ae(function() {
3237
+ getNumberFormat: Ce(function() {
3273
3238
  for (var t, r = [], n = 0; n < arguments.length; n++)
3274
3239
  r[n] = arguments[n];
3275
- return new ((t = Intl.NumberFormat).bind.apply(t, He([void 0], r, !1)))();
3240
+ return new ((t = Intl.NumberFormat).bind.apply(t, Te([void 0], r, !1)))();
3276
3241
  }, {
3277
- cache: Oe(e.number),
3278
- strategy: Be.variadic
3242
+ cache: Be(e.number),
3243
+ strategy: He.variadic
3279
3244
  }),
3280
- getDateTimeFormat: Ae(function() {
3245
+ getDateTimeFormat: Ce(function() {
3281
3246
  for (var t, r = [], n = 0; n < arguments.length; n++)
3282
3247
  r[n] = arguments[n];
3283
- return new ((t = Intl.DateTimeFormat).bind.apply(t, He([void 0], r, !1)))();
3248
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Te([void 0], r, !1)))();
3284
3249
  }, {
3285
- cache: Oe(e.dateTime),
3286
- strategy: Be.variadic
3250
+ cache: Be(e.dateTime),
3251
+ strategy: He.variadic
3287
3252
  }),
3288
- getPluralRules: Ae(function() {
3253
+ getPluralRules: Ce(function() {
3289
3254
  for (var t, r = [], n = 0; n < arguments.length; n++)
3290
3255
  r[n] = arguments[n];
3291
- return new ((t = Intl.PluralRules).bind.apply(t, He([void 0], r, !1)))();
3256
+ return new ((t = Intl.PluralRules).bind.apply(t, Te([void 0], r, !1)))();
3292
3257
  }, {
3293
- cache: Oe(e.pluralRules),
3294
- strategy: Be.variadic
3258
+ cache: Be(e.pluralRules),
3259
+ strategy: He.variadic
3295
3260
  })
3296
3261
  };
3297
3262
  }
3298
- var Ln = (
3263
+ var vn = (
3299
3264
  /** @class */
3300
3265
  function() {
3301
3266
  function e(t, r, n, i) {
@@ -3305,20 +3270,20 @@ var Ln = (
3305
3270
  number: {},
3306
3271
  dateTime: {},
3307
3272
  pluralRules: {}
3308
- }, this.format = function(h) {
3309
- var a = s.formatToParts(h);
3273
+ }, this.format = function(f) {
3274
+ var a = s.formatToParts(f);
3310
3275
  if (a.length === 1)
3311
3276
  return a[0].value;
3312
- var l = a.reduce(function(c, f) {
3313
- return !c.length || f.type !== P.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3277
+ var h = a.reduce(function(c, l) {
3278
+ return !c.length || l.type !== P.literal || typeof c[c.length - 1] != "string" ? c.push(l.value) : c[c.length - 1] += l.value, c;
3314
3279
  }, []);
3315
- return l.length <= 1 ? l[0] || "" : l;
3316
- }, this.formatToParts = function(h) {
3317
- return ge(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3280
+ return h.length <= 1 ? h[0] || "" : h;
3281
+ }, this.formatToParts = function(f) {
3282
+ return ce(s.ast, s.locales, s.formatters, s.formats, f, void 0, s.message);
3318
3283
  }, this.resolvedOptions = function() {
3319
- var h;
3284
+ var f;
3320
3285
  return {
3321
- locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3286
+ locale: ((f = s.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3322
3287
  };
3323
3288
  }, this.getAst = function() {
3324
3289
  return s.ast;
@@ -3327,13 +3292,13 @@ var Ln = (
3327
3292
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3328
3293
  var o = i || {};
3329
3294
  o.formatters;
3330
- var u = kr(o, ["formatters"]);
3295
+ var u = Pr(o, ["formatters"]);
3331
3296
  this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
3332
3297
  } else
3333
3298
  this.ast = t;
3334
3299
  if (!Array.isArray(this.ast))
3335
3300
  throw new TypeError("A message must be provided as a String or AST.");
3336
- this.formats = Nn(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
3301
+ this.formats = xn(e.formats, n), this.formatters = i && i.formatters || En(this.formatterCache);
3337
3302
  }
3338
3303
  return Object.defineProperty(e, "defaultLocale", {
3339
3304
  get: function() {
@@ -3342,11 +3307,11 @@ var Ln = (
3342
3307
  enumerable: !1,
3343
3308
  configurable: !0
3344
3309
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3345
- if (typeof Intl.Locale != "undefined") {
3310
+ if (!(typeof Intl.Locale > "u")) {
3346
3311
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3347
3312
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3348
3313
  }
3349
- }, e.__parse = An, e.formats = {
3314
+ }, e.__parse = mn, e.formats = {
3350
3315
  number: {
3351
3316
  integer: {
3352
3317
  maximumFractionDigits: 0
@@ -3407,7 +3372,7 @@ var Ln = (
3407
3372
  }, e;
3408
3373
  }()
3409
3374
  );
3410
- function Mn(e, t) {
3375
+ function Tn(e, t) {
3411
3376
  if (t == null)
3412
3377
  return;
3413
3378
  if (t in e)
@@ -3428,92 +3393,92 @@ function Mn(e, t) {
3428
3393
  n = void 0;
3429
3394
  return n;
3430
3395
  }
3431
- const D = {}, $n = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), Xt = (e, t) => {
3396
+ const G = {}, Cn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Rt = (e, t) => {
3432
3397
  if (t == null)
3433
3398
  return;
3434
- if (t in D && e in D[t])
3435
- return D[t][e];
3436
- const r = _e(t);
3399
+ if (t in G && e in G[t])
3400
+ return G[t][e];
3401
+ const r = xe(t);
3437
3402
  for (let n = 0; n < r.length; n++) {
3438
- const i = r[n], s = Un(i, e);
3403
+ const i = r[n], s = An(i, e);
3439
3404
  if (s)
3440
- return $n(e, t, s);
3405
+ return Cn(e, t, s);
3441
3406
  }
3442
3407
  };
3443
- let We;
3444
- const ue = ye({});
3445
- function Rn(e) {
3446
- return We[e] || null;
3408
+ let Ve;
3409
+ const ae = be({});
3410
+ function Hn(e) {
3411
+ return Ve[e] || null;
3447
3412
  }
3448
- function zt(e) {
3449
- return e in We;
3413
+ function Ut(e) {
3414
+ return e in Ve;
3450
3415
  }
3451
- function Un(e, t) {
3452
- if (!zt(e))
3416
+ function An(e, t) {
3417
+ if (!Ut(e))
3453
3418
  return null;
3454
- const r = Rn(e);
3455
- return Mn(r, t);
3419
+ const r = Hn(e);
3420
+ return Tn(r, t);
3456
3421
  }
3457
- function Gn(e) {
3422
+ function Bn(e) {
3458
3423
  if (e == null)
3459
3424
  return;
3460
- const t = _e(e);
3425
+ const t = xe(e);
3461
3426
  for (let r = 0; r < t.length; r++) {
3462
3427
  const n = t[r];
3463
- if (zt(n))
3428
+ if (Ut(n))
3464
3429
  return n;
3465
3430
  }
3466
3431
  }
3467
- function Wt(e, ...t) {
3468
- delete D[e], ue.update((r) => (r[e] = jr.all([r[e] || {}, ...t]), r));
3432
+ function Gt(e, ...t) {
3433
+ delete G[e], ae.update((r) => (r[e] = Or.all([r[e] || {}, ...t]), r));
3469
3434
  }
3470
- ee(
3471
- [ue],
3435
+ K(
3436
+ [ae],
3472
3437
  ([e]) => Object.keys(e)
3473
3438
  );
3474
- ue.subscribe((e) => We = e);
3475
- const me = {};
3476
- function Dn(e, t) {
3477
- me[e].delete(t), me[e].size === 0 && delete me[e];
3439
+ ae.subscribe((e) => Ve = e);
3440
+ const ge = {};
3441
+ function Sn(e, t) {
3442
+ ge[e].delete(t), ge[e].size === 0 && delete ge[e];
3478
3443
  }
3479
- function Zt(e) {
3480
- return me[e];
3444
+ function Dt(e) {
3445
+ return ge[e];
3481
3446
  }
3482
- function Fn(e) {
3483
- return _e(e).map((t) => {
3484
- const r = Zt(t);
3447
+ function On(e) {
3448
+ return xe(e).map((t) => {
3449
+ const r = Dt(t);
3485
3450
  return [t, r ? [...r] : []];
3486
3451
  }).filter(([, t]) => t.length > 0);
3487
3452
  }
3488
- function Fe(e) {
3489
- return e == null ? !1 : _e(e).some(
3453
+ function Ge(e) {
3454
+ return e == null ? !1 : xe(e).some(
3490
3455
  (t) => {
3491
3456
  var r;
3492
- return (r = Zt(t)) == null ? void 0 : r.size;
3457
+ return (r = Dt(t)) == null ? void 0 : r.size;
3493
3458
  }
3494
3459
  );
3495
3460
  }
3496
- function jn(e, t) {
3461
+ function Pn(e, t) {
3497
3462
  return Promise.all(
3498
- t.map((n) => (Dn(e, n), n().then((i) => i.default || i)))
3499
- ).then((n) => Wt(e, ...n));
3500
- }
3501
- const ne = {};
3502
- function Qt(e) {
3503
- if (!Fe(e))
3504
- return e in ne ? ne[e] : Promise.resolve();
3505
- const t = Fn(e);
3506
- return ne[e] = Promise.all(
3463
+ t.map((n) => (Sn(e, n), n().then((i) => i.default || i)))
3464
+ ).then((n) => Gt(e, ...n));
3465
+ }
3466
+ const re = {};
3467
+ function Ft(e) {
3468
+ if (!Ge(e))
3469
+ return e in re ? re[e] : Promise.resolve();
3470
+ const t = On(e);
3471
+ return re[e] = Promise.all(
3507
3472
  t.map(
3508
- ([r, n]) => jn(r, n)
3473
+ ([r, n]) => Pn(r, n)
3509
3474
  )
3510
3475
  ).then(() => {
3511
- if (Fe(e))
3512
- return Qt(e);
3513
- delete ne[e];
3514
- }), ne[e];
3476
+ if (Ge(e))
3477
+ return Ft(e);
3478
+ delete re[e];
3479
+ }), re[e];
3515
3480
  }
3516
- const kn = {
3481
+ const wn = {
3517
3482
  number: {
3518
3483
  scientific: { notation: "scientific" },
3519
3484
  engineering: { notation: "engineering" },
@@ -3542,178 +3507,178 @@ const kn = {
3542
3507
  timeZoneName: "short"
3543
3508
  }
3544
3509
  }
3545
- }, Vn = {
3510
+ }, Nn = {
3546
3511
  fallbackLocale: null,
3547
3512
  loadingDelay: 200,
3548
- formats: kn,
3513
+ formats: wn,
3549
3514
  warnOnMissingMessages: !0,
3550
3515
  handleMissingMessage: void 0,
3551
3516
  ignoreTag: !0
3552
- }, Xn = Vn;
3553
- function Y() {
3554
- return Xn;
3555
- }
3556
- const Pe = ye(!1);
3557
- var zn = Object.defineProperty, Wn = Object.defineProperties, Zn = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qn = (e, t) => {
3558
- for (var r in t || (t = {}))
3559
- Qn.call(t, r) && mt(e, r, t[r]);
3560
- if (gt)
3561
- for (var r of gt(t))
3562
- Jn.call(t, r) && mt(e, r, t[r]);
3517
+ }, In = Nn;
3518
+ function q() {
3519
+ return In;
3520
+ }
3521
+ const Se = be(!1);
3522
+ var Ln = Object.defineProperty, Mn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, st = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? Ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gn = (e, t) => {
3523
+ for (var r in t)
3524
+ Rn.call(t, r) && ot(e, r, t[r]);
3525
+ if (st)
3526
+ for (var r of st(t))
3527
+ Un.call(t, r) && ot(e, r, t[r]);
3563
3528
  return e;
3564
- }, Yn = (e, t) => Wn(e, Zn(t));
3565
- let je;
3566
- const de = ye(null);
3567
- function pt(e) {
3529
+ }, Dn = (e, t) => Mn(e, $n(t));
3530
+ let De;
3531
+ const pe = be(null);
3532
+ function at(e) {
3568
3533
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3569
3534
  }
3570
- function _e(e, t = Y().fallbackLocale) {
3571
- const r = pt(e);
3572
- return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
3535
+ function xe(e, t = q().fallbackLocale) {
3536
+ const r = at(e);
3537
+ return t ? [.../* @__PURE__ */ new Set([...r, ...at(t)])] : r;
3573
3538
  }
3574
- function V() {
3575
- return je != null ? je : void 0;
3539
+ function k() {
3540
+ return De ?? void 0;
3576
3541
  }
3577
- de.subscribe((e) => {
3578
- je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3542
+ pe.subscribe((e) => {
3543
+ De = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3579
3544
  });
3580
- const Kn = (e) => {
3581
- if (e && Gn(e) && Fe(e)) {
3582
- const { loadingDelay: t } = Y();
3545
+ const Fn = (e) => {
3546
+ if (e && Bn(e) && Ge(e)) {
3547
+ const { loadingDelay: t } = q();
3583
3548
  let r;
3584
- return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
3585
- () => Pe.set(!0),
3549
+ return typeof window < "u" && k() != null && t ? r = window.setTimeout(
3550
+ () => Se.set(!0),
3586
3551
  t
3587
- ) : Pe.set(!0), Qt(e).then(() => {
3588
- de.set(e);
3552
+ ) : Se.set(!0), Ft(e).then(() => {
3553
+ pe.set(e);
3589
3554
  }).finally(() => {
3590
- clearTimeout(r), Pe.set(!1);
3555
+ clearTimeout(r), Se.set(!1);
3591
3556
  });
3592
3557
  }
3593
- return de.set(e);
3594
- }, te = Yn(qn({}, de), {
3595
- set: Kn
3596
- }), ve = (e) => {
3558
+ return pe.set(e);
3559
+ }, ee = Dn(Gn({}, pe), {
3560
+ set: Fn
3561
+ }), Ee = (e) => {
3597
3562
  const t = /* @__PURE__ */ Object.create(null);
3598
3563
  return (n) => {
3599
3564
  const i = JSON.stringify(n);
3600
3565
  return i in t ? t[i] : t[i] = e(n);
3601
3566
  };
3602
3567
  };
3603
- var ei = Object.defineProperty, be = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, qt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
3568
+ var jn = Object.defineProperty, de = Object.getOwnPropertySymbols, jt = Object.prototype.hasOwnProperty, kt = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
3604
3569
  for (var r in t || (t = {}))
3605
- Jt.call(t, r) && dt(e, r, t[r]);
3606
- if (be)
3607
- for (var r of be(t))
3608
- qt.call(t, r) && dt(e, r, t[r]);
3570
+ jt.call(t, r) && ut(e, r, t[r]);
3571
+ if (de)
3572
+ for (var r of de(t))
3573
+ kt.call(t, r) && ut(e, r, t[r]);
3609
3574
  return e;
3610
- }, re = (e, t) => {
3575
+ }, te = (e, t) => {
3611
3576
  var r = {};
3612
3577
  for (var n in e)
3613
- Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3614
- if (e != null && be)
3615
- for (var n of be(e))
3616
- t.indexOf(n) < 0 && qt.call(e, n) && (r[n] = e[n]);
3578
+ jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3579
+ if (e != null && de)
3580
+ for (var n of de(e))
3581
+ t.indexOf(n) < 0 && kt.call(e, n) && (r[n] = e[n]);
3617
3582
  return r;
3618
3583
  };
3619
- const oe = (e, t) => {
3620
- const { formats: r } = Y();
3584
+ const se = (e, t) => {
3585
+ const { formats: r } = q();
3621
3586
  if (e in r && t in r[e])
3622
3587
  return r[e][t];
3623
3588
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3624
- }, ti = ve(
3589
+ }, kn = Ee(
3625
3590
  (e) => {
3626
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
3591
+ var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3627
3592
  if (r == null)
3628
3593
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3629
- return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
3594
+ return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
3630
3595
  }
3631
- ), ri = ve(
3596
+ ), Vn = Ee(
3632
3597
  (e) => {
3633
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
3598
+ var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3634
3599
  if (r == null)
3635
3600
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3636
- return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
3601
+ return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
3637
3602
  }
3638
- ), ni = ve(
3603
+ ), Xn = Ee(
3639
3604
  (e) => {
3640
- var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
3605
+ var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
3641
3606
  if (r == null)
3642
3607
  throw new Error(
3643
3608
  '[svelte-i18n] A "locale" must be set to format time values'
3644
3609
  );
3645
- return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
3610
+ return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
3646
3611
  }
3647
- ), ii = (e = {}) => {
3612
+ ), zn = (e = {}) => {
3648
3613
  var t = e, {
3649
- locale: r = V()
3650
- } = t, n = re(t, [
3614
+ locale: r = k()
3615
+ } = t, n = te(t, [
3651
3616
  "locale"
3652
3617
  ]);
3653
- return ti(Ze({ locale: r }, n));
3654
- }, si = (e = {}) => {
3618
+ return kn(Xe({ locale: r }, n));
3619
+ }, Wn = (e = {}) => {
3655
3620
  var t = e, {
3656
- locale: r = V()
3657
- } = t, n = re(t, [
3621
+ locale: r = k()
3622
+ } = t, n = te(t, [
3658
3623
  "locale"
3659
3624
  ]);
3660
- return ri(Ze({ locale: r }, n));
3661
- }, oi = (e = {}) => {
3625
+ return Vn(Xe({ locale: r }, n));
3626
+ }, Zn = (e = {}) => {
3662
3627
  var t = e, {
3663
- locale: r = V()
3664
- } = t, n = re(t, [
3628
+ locale: r = k()
3629
+ } = t, n = te(t, [
3665
3630
  "locale"
3666
3631
  ]);
3667
- return ni(Ze({ locale: r }, n));
3668
- }, ai = ve(
3632
+ return Xn(Xe({ locale: r }, n));
3633
+ }, Qn = Ee(
3669
3634
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3670
- (e, t = V()) => new Ln(e, t, Y().formats, {
3671
- ignoreTag: Y().ignoreTag
3635
+ (e, t = k()) => new vn(e, t, q().formats, {
3636
+ ignoreTag: q().ignoreTag
3672
3637
  })
3673
- ), ui = (e, t = {}) => {
3638
+ ), Jn = (e, t = {}) => {
3674
3639
  var r, n, i, s;
3675
3640
  let o = t;
3676
3641
  typeof e == "object" && (o = e, e = o.id);
3677
3642
  const {
3678
3643
  values: u,
3679
- locale: h = V(),
3644
+ locale: f = k(),
3680
3645
  default: a
3681
3646
  } = o;
3682
- if (h == null)
3647
+ if (f == null)
3683
3648
  throw new Error(
3684
3649
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3685
3650
  );
3686
- let l = Xt(e, h);
3687
- if (!l)
3688
- 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;
3689
- else if (typeof l != "string")
3651
+ let h = Rt(e, f);
3652
+ if (!h)
3653
+ h = (s = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
3654
+ else if (typeof h != "string")
3690
3655
  return console.warn(
3691
- `[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.`
3692
- ), l;
3656
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3657
+ ), h;
3693
3658
  if (!u)
3694
- return l;
3695
- let c = l;
3659
+ return h;
3660
+ let c = h;
3696
3661
  try {
3697
- c = ai(l, h).format(u);
3698
- } catch (f) {
3699
- f instanceof Error && console.warn(
3662
+ c = Qn(h, f).format(u);
3663
+ } catch (l) {
3664
+ l instanceof Error && console.warn(
3700
3665
  `[svelte-i18n] Message "${e}" has syntax error:`,
3701
- f.message
3666
+ l.message
3702
3667
  );
3703
3668
  }
3704
3669
  return c;
3705
- }, hi = (e, t) => oi(t).format(e), li = (e, t) => si(t).format(e), fi = (e, t) => ii(t).format(e), ci = (e, t = V()) => Xt(e, t), gi = ee([te, ue], () => ui);
3706
- ee([te], () => hi);
3707
- ee([te], () => li);
3708
- ee([te], () => fi);
3709
- ee([te, ue], () => ci);
3710
- function bt(e, t) {
3711
- Wt(e, t);
3712
- }
3713
- function mi(e) {
3714
- te.set(e);
3715
- }
3716
- const yt = {
3670
+ }, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = k()) => Rt(e, t), ti = K([ee, ae], () => Jn);
3671
+ K([ee], () => qn);
3672
+ K([ee], () => Yn);
3673
+ K([ee], () => Kn);
3674
+ K([ee, ae], () => ei);
3675
+ function ht(e, t) {
3676
+ Gt(e, t);
3677
+ }
3678
+ function ri(e) {
3679
+ ee.set(e);
3680
+ }
3681
+ const lt = {
3717
3682
  en: {
3718
3683
  topCategories: "Top Categories",
3719
3684
  otherCategories: "Other Categories",
@@ -3823,84 +3788,84 @@ const yt = {
3823
3788
  games: "games"
3824
3789
  }
3825
3790
  };
3826
- function pi(e) {
3827
- ur(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}");
3791
+ function ni(e) {
3792
+ Qt(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}");
3828
3793
  }
3829
- function Et(e, t, r) {
3794
+ function ft(e, t, r) {
3830
3795
  const n = e.slice();
3831
3796
  return n[24] = t[r], n;
3832
3797
  }
3833
- function xt(e, t, r) {
3798
+ function ct(e, t, r) {
3834
3799
  const n = e.slice();
3835
3800
  return n[24] = t[r], n;
3836
3801
  }
3837
- function di(e) {
3802
+ function ii(e) {
3838
3803
  let t, r, n = (
3839
3804
  /*$_*/
3840
3805
  e[5]("topCategories") + ""
3841
- ), i, s, o, u, h = (
3806
+ ), i, s, o, u, f = (
3842
3807
  /*$_*/
3843
3808
  e[5]("otherCategories") + ""
3844
- ), a, l, c = le(
3809
+ ), a, h, c = he(
3845
3810
  /*topCategories*/
3846
3811
  e[3]
3847
- ), f = [];
3812
+ ), l = [];
3848
3813
  for (let g = 0; g < c.length; g += 1)
3849
- f[g] = _t(xt(e, c, g));
3850
- let d = le(
3814
+ l[g] = gt(ct(e, c, g));
3815
+ let d = he(
3851
3816
  /*otherCategories*/
3852
3817
  e[4]
3853
3818
  ), p = [];
3854
3819
  for (let g = 0; g < d.length; g += 1)
3855
- p[g] = vt(Et(e, d, g));
3820
+ p[g] = mt(ft(e, d, g));
3856
3821
  return {
3857
3822
  c() {
3858
- t = O("div"), r = O("h4"), i = U(n), s = R();
3859
- for (let g = 0; g < f.length; g += 1)
3860
- f[g].c();
3861
- o = R(), u = O("h4"), a = U(h), l = R();
3823
+ t = O("div"), r = O("h4"), i = R(n), s = $();
3824
+ for (let g = 0; g < l.length; g += 1)
3825
+ l[g].c();
3826
+ o = $(), u = O("h4"), a = R(f), h = $();
3862
3827
  for (let g = 0; g < p.length; g += 1)
3863
3828
  p[g].c();
3864
3829
  B(r, "class", "CategoryTitle"), B(u, "class", "CategoryTitle"), B(t, "class", "CasinoCategories");
3865
3830
  },
3866
- m(g, _) {
3867
- K(g, t, _), v(t, r), v(r, i), v(t, s);
3868
- for (let m = 0; m < f.length; m += 1)
3869
- f[m] && f[m].m(t, null);
3870
- v(t, o), v(t, u), v(u, a), v(t, l);
3831
+ m(g, E) {
3832
+ Y(g, t, E), v(t, r), v(r, i), v(t, s);
3833
+ for (let m = 0; m < l.length; m += 1)
3834
+ l[m] && l[m].m(t, null);
3835
+ v(t, o), v(t, u), v(u, a), v(t, h);
3871
3836
  for (let m = 0; m < p.length; m += 1)
3872
3837
  p[m] && p[m].m(t, null);
3873
3838
  },
3874
- p(g, _) {
3875
- if (_ & /*$_*/
3839
+ p(g, E) {
3840
+ if (E & /*$_*/
3876
3841
  32 && n !== (n = /*$_*/
3877
- g[5]("topCategories") + "") && F(i, n), _ & /*activecategory, topCategories, openGameCategory, $_*/
3842
+ g[5]("topCategories") + "") && D(i, n), E & /*activecategory, topCategories, openGameCategory, $_*/
3878
3843
  105) {
3879
- c = le(
3844
+ c = he(
3880
3845
  /*topCategories*/
3881
3846
  g[3]
3882
3847
  );
3883
3848
  let m;
3884
3849
  for (m = 0; m < c.length; m += 1) {
3885
- const C = xt(g, c, m);
3886
- f[m] ? f[m].p(C, _) : (f[m] = _t(C), f[m].c(), f[m].m(t, o));
3850
+ const C = ct(g, c, m);
3851
+ l[m] ? l[m].p(C, E) : (l[m] = gt(C), l[m].c(), l[m].m(t, o));
3887
3852
  }
3888
- for (; m < f.length; m += 1)
3889
- f[m].d(1);
3890
- f.length = c.length;
3853
+ for (; m < l.length; m += 1)
3854
+ l[m].d(1);
3855
+ l.length = c.length;
3891
3856
  }
3892
- if (_ & /*$_*/
3893
- 32 && h !== (h = /*$_*/
3894
- g[5]("otherCategories") + "") && F(a, h), _ & /*activecategory, otherCategories, openGameCategory, $_*/
3857
+ if (E & /*$_*/
3858
+ 32 && f !== (f = /*$_*/
3859
+ g[5]("otherCategories") + "") && D(a, f), E & /*activecategory, otherCategories, openGameCategory, $_*/
3895
3860
  113) {
3896
- d = le(
3861
+ d = he(
3897
3862
  /*otherCategories*/
3898
3863
  g[4]
3899
3864
  );
3900
3865
  let m;
3901
3866
  for (m = 0; m < d.length; m += 1) {
3902
- const C = Et(g, d, m);
3903
- p[m] ? p[m].p(C, _) : (p[m] = vt(C), p[m].c(), p[m].m(t, null));
3867
+ const C = ft(g, d, m);
3868
+ p[m] ? p[m].p(C, E) : (p[m] = mt(C), p[m].c(), p[m].m(t, null));
3904
3869
  }
3905
3870
  for (; m < p.length; m += 1)
3906
3871
  p[m].d(1);
@@ -3908,36 +3873,36 @@ function di(e) {
3908
3873
  }
3909
3874
  },
3910
3875
  d(g) {
3911
- g && k(t), rt(f, g), rt(p, g);
3876
+ g && j(t), Ze(l, g), Ze(p, g);
3912
3877
  }
3913
3878
  };
3914
3879
  }
3915
- function bi(e) {
3880
+ function si(e) {
3916
3881
  let t;
3917
3882
  return {
3918
3883
  c() {
3919
3884
  t = O("p"), t.textContent = "Loading, please wait...", B(t, "class", "Message");
3920
3885
  },
3921
3886
  m(r, n) {
3922
- K(r, t, n);
3887
+ Y(r, t, n);
3923
3888
  },
3924
- p: M,
3889
+ p: L,
3925
3890
  d(r) {
3926
- r && k(t);
3891
+ r && j(t);
3927
3892
  }
3928
3893
  };
3929
3894
  }
3930
- function _t(e) {
3931
- let t, r, n, i, s, o, u, h = (
3895
+ function gt(e) {
3896
+ let t, r, n, i, s, o, u, f = (
3932
3897
  /*category*/
3933
3898
  e[24].name + ""
3934
- ), a, l, c, f = (
3899
+ ), a, h, c, l = (
3935
3900
  /*category*/
3936
3901
  e[24].games.count + ""
3937
3902
  ), d, p, g = (
3938
3903
  /*$_*/
3939
3904
  e[5]("games") + ""
3940
- ), _, m, C, H;
3905
+ ), E, m, C, H;
3941
3906
  function I() {
3942
3907
  return (
3943
3908
  /*click_handler*/
@@ -3949,47 +3914,47 @@ function _t(e) {
3949
3914
  }
3950
3915
  return {
3951
3916
  c() {
3952
- 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(), _ = U(g), pe(r.src, n = /*category*/
3917
+ t = O("div"), r = O("img"), s = $(), o = O("div"), u = O("p"), a = R(f), h = $(), c = O("p"), d = R(l), p = $(), E = R(g), me(r.src, n = /*category*/
3953
3918
  e[24].icon) || B(r, "src", n), B(r, "alt", i = /*category*/
3954
3919
  e[24].name), B(r, "class", "CategoryImage"), B(o, "class", "CategoryTextContainer"), B(t, "class", m = "Category " + /*activecategory*/
3955
3920
  (e[0] === /*category*/
3956
3921
  e[24].id ? "Active" : ""));
3957
3922
  },
3958
3923
  m(S, A) {
3959
- K(S, 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, d), v(c, p), v(c, _), C || (H = At(t, "click", I), C = !0);
3924
+ Y(S, t, A), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, c), v(c, d), v(c, p), v(c, E), C || (H = yt(t, "click", I), C = !0);
3960
3925
  },
3961
3926
  p(S, A) {
3962
3927
  e = S, A & /*topCategories*/
3963
- 8 && !pe(r.src, n = /*category*/
3928
+ 8 && !me(r.src, n = /*category*/
3964
3929
  e[24].icon) && B(r, "src", n), A & /*topCategories*/
3965
3930
  8 && i !== (i = /*category*/
3966
3931
  e[24].name) && B(r, "alt", i), A & /*topCategories*/
3967
- 8 && h !== (h = /*category*/
3968
- e[24].name + "") && F(a, h), A & /*topCategories*/
3969
3932
  8 && f !== (f = /*category*/
3970
- e[24].games.count + "") && F(d, f), A & /*$_*/
3933
+ e[24].name + "") && D(a, f), A & /*topCategories*/
3934
+ 8 && l !== (l = /*category*/
3935
+ e[24].games.count + "") && D(d, l), A & /*$_*/
3971
3936
  32 && g !== (g = /*$_*/
3972
- e[5]("games") + "") && F(_, g), A & /*activecategory, topCategories*/
3937
+ e[5]("games") + "") && D(E, g), A & /*activecategory, topCategories*/
3973
3938
  9 && m !== (m = "Category " + /*activecategory*/
3974
3939
  (e[0] === /*category*/
3975
3940
  e[24].id ? "Active" : "")) && B(t, "class", m);
3976
3941
  },
3977
3942
  d(S) {
3978
- S && k(t), C = !1, H();
3943
+ S && j(t), C = !1, H();
3979
3944
  }
3980
3945
  };
3981
3946
  }
3982
- function vt(e) {
3983
- let t, r, n, i, s, o, u, h = (
3947
+ function mt(e) {
3948
+ let t, r, n, i, s, o, u, f = (
3984
3949
  /*category*/
3985
3950
  e[24].name + ""
3986
- ), a, l, c, f = (
3951
+ ), a, h, c, l = (
3987
3952
  /*category*/
3988
3953
  e[24].games.count + ""
3989
3954
  ), d, p, g = (
3990
3955
  /*$_*/
3991
3956
  e[5]("games") + ""
3992
- ), _, m, C, H, I;
3957
+ ), E, m, C, H, I;
3993
3958
  function S() {
3994
3959
  return (
3995
3960
  /*click_handler_1*/
@@ -4001,42 +3966,42 @@ function vt(e) {
4001
3966
  }
4002
3967
  return {
4003
3968
  c() {
4004
- 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(), _ = U(g), m = R(), pe(r.src, n = /*category*/
3969
+ t = O("div"), r = O("img"), s = $(), o = O("div"), u = O("p"), a = R(f), h = $(), c = O("p"), d = R(l), p = $(), E = R(g), m = $(), me(r.src, n = /*category*/
4005
3970
  e[24].icon) || B(r, "src", n), B(r, "alt", i = /*category*/
4006
3971
  e[24].name), B(r, "class", "CategoryImage"), B(o, "class", "CategoryTextContainer"), B(t, "class", C = "Category " + /*activecategory*/
4007
3972
  (e[0] === /*category*/
4008
3973
  e[24].id ? "Active" : ""));
4009
3974
  },
4010
3975
  m(A, w) {
4011
- K(A, 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, _), v(t, m), H || (I = At(t, "click", S), H = !0);
3976
+ Y(A, t, w), v(t, r), v(t, s), v(t, o), v(o, u), v(u, a), v(o, h), v(o, c), v(c, d), v(c, p), v(c, E), v(t, m), H || (I = yt(t, "click", S), H = !0);
4012
3977
  },
4013
3978
  p(A, w) {
4014
3979
  e = A, w & /*otherCategories*/
4015
- 16 && !pe(r.src, n = /*category*/
3980
+ 16 && !me(r.src, n = /*category*/
4016
3981
  e[24].icon) && B(r, "src", n), w & /*otherCategories*/
4017
3982
  16 && i !== (i = /*category*/
4018
3983
  e[24].name) && B(r, "alt", i), w & /*otherCategories*/
4019
- 16 && h !== (h = /*category*/
4020
- e[24].name + "") && F(a, h), w & /*otherCategories*/
4021
3984
  16 && f !== (f = /*category*/
4022
- e[24].games.count + "") && F(d, f), w & /*$_*/
3985
+ e[24].name + "") && D(a, f), w & /*otherCategories*/
3986
+ 16 && l !== (l = /*category*/
3987
+ e[24].games.count + "") && D(d, l), w & /*$_*/
4023
3988
  32 && g !== (g = /*$_*/
4024
- e[5]("games") + "") && F(_, g), w & /*activecategory, otherCategories*/
3989
+ e[5]("games") + "") && D(E, g), w & /*activecategory, otherCategories*/
4025
3990
  17 && C !== (C = "Category " + /*activecategory*/
4026
3991
  (e[0] === /*category*/
4027
3992
  e[24].id ? "Active" : "")) && B(t, "class", C);
4028
3993
  },
4029
3994
  d(A) {
4030
- A && k(t), H = !1, I();
3995
+ A && j(t), H = !1, I();
4031
3996
  }
4032
3997
  };
4033
3998
  }
4034
- function yi(e) {
3999
+ function oi(e) {
4035
4000
  let t;
4036
4001
  function r(s, o) {
4037
4002
  return (
4038
4003
  /*isLoading*/
4039
- s[2] ? bi : di
4004
+ s[2] ? si : ii
4040
4005
  );
4041
4006
  }
4042
4007
  let n = r(e), i = n(e);
@@ -4045,31 +4010,31 @@ function yi(e) {
4045
4010
  t = O("div"), i.c();
4046
4011
  },
4047
4012
  m(s, o) {
4048
- K(s, t, o), i.m(t, null), e[16](t);
4013
+ Y(s, t, o), i.m(t, null), e[16](t);
4049
4014
  },
4050
4015
  p(s, [o]) {
4051
4016
  n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
4052
4017
  },
4053
- i: M,
4054
- o: M,
4018
+ i: L,
4019
+ o: L,
4055
4020
  d(s) {
4056
- s && k(t), i.d(), e[16](null);
4021
+ s && j(t), i.d(), e[16](null);
4057
4022
  }
4058
4023
  };
4059
4024
  }
4060
- function Ei(e, t, r) {
4025
+ function ai(e, t, r) {
4061
4026
  let n;
4062
- ar(e, gi, (b) => r(5, n = b));
4063
- 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;
4027
+ Zt(e, ti, (b) => r(5, n = b));
4028
+ let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { activecategory: u = "" } = t, { excludedflags: f = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: c = "" } = t, l, d = !1;
4064
4029
  const p = [];
4065
- let g = [], _ = [];
4066
- Object.keys(yt).forEach((b) => {
4067
- bt(b, yt[b]);
4030
+ let g = [], E = [];
4031
+ Object.keys(lt).forEach((b) => {
4032
+ ht(b, lt[b]);
4068
4033
  });
4069
4034
  const m = () => {
4070
4035
  fetch(c).then((N) => N.json()).then((N) => {
4071
- Object.keys(N).forEach((G) => {
4072
- bt(G, N[G]);
4036
+ Object.keys(N).forEach((U) => {
4037
+ ht(U, N[U]);
4073
4038
  });
4074
4039
  }).catch((N) => {
4075
4040
  console.log(N);
@@ -4079,27 +4044,24 @@ function Ei(e, t, r) {
4079
4044
  const b = new URL(`${i}/v1/casino/groups/${s}`);
4080
4045
  b.searchParams.append("language", o), fetch(b).then((N) => N.json()).then((N) => {
4081
4046
  r(2, d = !1);
4082
- const G = h.split(",").map((j) => j.trim());
4047
+ const U = f.split(",").map((F) => F.trim());
4083
4048
  p.push(...N.items);
4084
- const Qe = p.filter((j) => !G.some((er) => {
4085
- var Je;
4086
- return ((Je = j.flags) == null ? void 0 : Je.indexOf(er)) >= 0;
4087
- }));
4088
- r(3, g = Qe.filter((j) => j.isTopCategory === !0)), r(4, _ = Qe.filter((j) => j.isTopCategory === !1));
4049
+ const ze = p.filter((F) => !U.some((zt) => F.flags?.indexOf(zt) >= 0));
4050
+ r(3, g = ze.filter((F) => F.isTopCategory === !0)), r(4, E = ze.filter((F) => F.isTopCategory === !1));
4089
4051
  });
4090
4052
  }, H = (b) => {
4091
4053
  window.postMessage({ type: "OpenGameCategory", categoryId: b }, window.location.href);
4092
4054
  }, I = () => {
4093
- mi(o);
4055
+ ri(o);
4094
4056
  }, S = () => {
4095
4057
  let b = document.createElement("style");
4096
- b.innerHTML = a, f.appendChild(b);
4058
+ b.innerHTML = a, l.appendChild(b);
4097
4059
  }, A = () => {
4098
- let b = new URL(l), N = document.createElement("style");
4099
- fetch(b.href).then((G) => G.text()).then((G) => {
4100
- N.innerHTML = G, setTimeout(
4060
+ let b = new URL(h), N = document.createElement("style");
4061
+ fetch(b.href).then((U) => U.text()).then((U) => {
4062
+ N.innerHTML = U, setTimeout(
4101
4063
  () => {
4102
- f.appendChild(N);
4064
+ l.appendChild(N);
4103
4065
  },
4104
4066
  1
4105
4067
  ), setTimeout(
@@ -4108,49 +4070,49 @@ function Ei(e, t, r) {
4108
4070
  500
4109
4071
  );
4110
4072
  });
4111
- }, w = (b) => H(b.id), Yt = (b) => H(b.id);
4112
- function Kt(b) {
4113
- we[b ? "unshift" : "push"](() => {
4114
- f = b, r(1, f);
4073
+ }, w = (b) => H(b.id), Vt = (b) => H(b.id);
4074
+ function Xt(b) {
4075
+ Oe[b ? "unshift" : "push"](() => {
4076
+ l = b, r(1, l);
4115
4077
  });
4116
4078
  }
4117
4079
  return e.$$set = (b) => {
4118
- "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);
4080
+ "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, f = b.excludedflags), "clientstyling" in b && r(11, a = b.clientstyling), "clientstylingurl" in b && r(12, h = b.clientstylingurl), "translationurl" in b && r(13, c = b.translationurl);
4119
4081
  }, e.$$.update = () => {
4120
4082
  e.$$.dirty & /*endpoint, datasource*/
4121
4083
  384 && i && s && C(), e.$$.dirty & /*translationurl*/
4122
4084
  8192 && c && m(), e.$$.dirty & /*lang*/
4123
4085
  512 && o && I(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4124
- 2050 && a && f && S(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4125
- 4098 && l && f && A();
4086
+ 2050 && a && l && S(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4087
+ 4098 && h && l && A();
4126
4088
  }, [
4127
4089
  u,
4128
- f,
4090
+ l,
4129
4091
  d,
4130
4092
  g,
4131
- _,
4093
+ E,
4132
4094
  n,
4133
4095
  H,
4134
4096
  i,
4135
4097
  s,
4136
4098
  o,
4137
- h,
4099
+ f,
4138
4100
  a,
4139
- l,
4101
+ h,
4140
4102
  c,
4141
4103
  w,
4142
- Yt,
4143
- Kt
4104
+ Vt,
4105
+ Xt
4144
4106
  ];
4145
4107
  }
4146
- class xi extends Cr {
4108
+ class ui extends fr {
4147
4109
  constructor(t) {
4148
- super(), vr(
4110
+ super(), hr(
4149
4111
  this,
4150
4112
  t,
4151
- Ei,
4152
- yi,
4153
- Ct,
4113
+ ai,
4114
+ oi,
4115
+ dt,
4154
4116
  {
4155
4117
  endpoint: 7,
4156
4118
  datasource: 8,
@@ -4161,59 +4123,59 @@ class xi extends Cr {
4161
4123
  clientstylingurl: 12,
4162
4124
  translationurl: 13
4163
4125
  },
4164
- pi
4126
+ ni
4165
4127
  );
4166
4128
  }
4167
4129
  get endpoint() {
4168
4130
  return this.$$.ctx[7];
4169
4131
  }
4170
4132
  set endpoint(t) {
4171
- this.$$set({ endpoint: t }), $();
4133
+ this.$$set({ endpoint: t }), M();
4172
4134
  }
4173
4135
  get datasource() {
4174
4136
  return this.$$.ctx[8];
4175
4137
  }
4176
4138
  set datasource(t) {
4177
- this.$$set({ datasource: t }), $();
4139
+ this.$$set({ datasource: t }), M();
4178
4140
  }
4179
4141
  get lang() {
4180
4142
  return this.$$.ctx[9];
4181
4143
  }
4182
4144
  set lang(t) {
4183
- this.$$set({ lang: t }), $();
4145
+ this.$$set({ lang: t }), M();
4184
4146
  }
4185
4147
  get activecategory() {
4186
4148
  return this.$$.ctx[0];
4187
4149
  }
4188
4150
  set activecategory(t) {
4189
- this.$$set({ activecategory: t }), $();
4151
+ this.$$set({ activecategory: t }), M();
4190
4152
  }
4191
4153
  get excludedflags() {
4192
4154
  return this.$$.ctx[10];
4193
4155
  }
4194
4156
  set excludedflags(t) {
4195
- this.$$set({ excludedflags: t }), $();
4157
+ this.$$set({ excludedflags: t }), M();
4196
4158
  }
4197
4159
  get clientstyling() {
4198
4160
  return this.$$.ctx[11];
4199
4161
  }
4200
4162
  set clientstyling(t) {
4201
- this.$$set({ clientstyling: t }), $();
4163
+ this.$$set({ clientstyling: t }), M();
4202
4164
  }
4203
4165
  get clientstylingurl() {
4204
4166
  return this.$$.ctx[12];
4205
4167
  }
4206
4168
  set clientstylingurl(t) {
4207
- this.$$set({ clientstylingurl: t }), $();
4169
+ this.$$set({ clientstylingurl: t }), M();
4208
4170
  }
4209
4171
  get translationurl() {
4210
4172
  return this.$$.ctx[13];
4211
4173
  }
4212
4174
  set translationurl(t) {
4213
- this.$$set({ translationurl: t }), $();
4175
+ this.$$set({ translationurl: t }), M();
4214
4176
  }
4215
4177
  }
4216
- Tr(xi, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4178
+ lr(ui, { endpoint: {}, datasource: {}, lang: {}, activecategory: {}, excludedflags: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4217
4179
  export {
4218
- xi as default
4180
+ ui as C
4219
4181
  };