@everymatrix/casino-slider 1.54.0 → 1.54.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,61 +1,32 @@
1
- var Pr = Object.defineProperty, Or = Object.defineProperties;
2
- var Lr = Object.getOwnPropertyDescriptors;
3
- var ht = Object.getOwnPropertySymbols;
4
- var Fr = Object.prototype.hasOwnProperty, Rr = Object.prototype.propertyIsEnumerable;
5
- var Fe = (e, t, r) => t in e ? Pr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ct = (e, t) => {
6
- for (var r in t || (t = {}))
7
- Fr.call(t, r) && Fe(e, r, t[r]);
8
- if (ht)
9
- for (var r of ht(t))
10
- Rr.call(t, r) && Fe(e, r, t[r]);
11
- return e;
12
- }, ft = (e, t) => Or(e, Lr(t));
13
- var U = (e, t, r) => Fe(e, typeof t != "symbol" ? t + "" : t, r);
14
- var dt = (e, t, r) => new Promise((n, i) => {
15
- var o = (u) => {
16
- try {
17
- a(r.next(u));
18
- } catch (l) {
19
- i(l);
20
- }
21
- }, s = (u) => {
22
- try {
23
- a(r.throw(u));
24
- } catch (l) {
25
- i(l);
26
- }
27
- }, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
28
- a((r = r.apply(e, t)).next());
29
- });
30
- function $() {
1
+ function k() {
31
2
  }
32
- function $t(e) {
3
+ function Ft(e) {
33
4
  return e();
34
5
  }
35
- function mt() {
6
+ function lt() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function q(e) {
39
- e.forEach($t);
9
+ function Z(e) {
10
+ e.forEach(Ft);
40
11
  }
41
- function tt(e) {
12
+ function Ke(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function jt(e, t) {
15
+ function Rt(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- let xe;
48
- function pt(e, t) {
49
- return e === t ? !0 : (xe || (xe = document.createElement("a")), xe.href = t, e === xe.href);
18
+ let Ee;
19
+ function ut(e, t) {
20
+ return e === t ? !0 : (Ee || (Ee = document.createElement("a")), Ee.href = t, e === Ee.href);
50
21
  }
51
- function Dr(e) {
22
+ function Tr(e) {
52
23
  return Object.keys(e).length === 0;
53
24
  }
54
- function Gr(e, ...t) {
25
+ function Ar(e, ...t) {
55
26
  if (e == null) {
56
27
  for (const n of t)
57
28
  n(void 0);
58
- return $;
29
+ return k;
59
30
  }
60
31
  const r = e.subscribe(...t);
61
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
@@ -63,14 +34,14 @@ function Gr(e, ...t) {
63
34
  function I(e, t) {
64
35
  e.appendChild(t);
65
36
  }
66
- function Ur(e, t, r) {
67
- const n = kr(e);
37
+ function Ir(e, t, r) {
38
+ const n = Br(e);
68
39
  if (!n.getElementById(t)) {
69
- const i = M("style");
70
- i.id = t, i.textContent = r, $r(n, i);
40
+ const i = B("style");
41
+ i.id = t, i.textContent = r, Mr(n, i);
71
42
  }
72
43
  }
73
- function kr(e) {
44
+ function Br(e) {
74
45
  if (!e) return document;
75
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
76
47
  return t && /** @type {ShadowRoot} */
@@ -79,49 +50,49 @@ function kr(e) {
79
50
  t
80
51
  ) : e.ownerDocument;
81
52
  }
82
- function $r(e, t) {
53
+ function Mr(e, t) {
83
54
  return I(
84
55
  /** @type {Document} */
85
56
  e.head || e,
86
57
  t
87
58
  ), t.sheet;
88
59
  }
89
- function k(e, t, r) {
60
+ function U(e, t, r) {
90
61
  e.insertBefore(t, r || null);
91
62
  }
92
- function D(e) {
63
+ function F(e) {
93
64
  e.parentNode && e.parentNode.removeChild(e);
94
65
  }
95
- function jr(e, t) {
66
+ function Nr(e, t) {
96
67
  for (let r = 0; r < e.length; r += 1)
97
68
  e[r] && e[r].d(t);
98
69
  }
99
- function M(e) {
70
+ function B(e) {
100
71
  return document.createElement(e);
101
72
  }
102
- function ye(e) {
73
+ function ge(e) {
103
74
  return document.createTextNode(e);
104
75
  }
105
- function Q() {
106
- return ye(" ");
76
+ function z() {
77
+ return ge(" ");
107
78
  }
108
- function me() {
109
- return ye("");
79
+ function fe() {
80
+ return ge("");
110
81
  }
111
- function Te(e, t, r, n) {
82
+ function Se(e, t, r, n) {
112
83
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
113
84
  }
114
- function S(e, t, r) {
85
+ function H(e, t, r) {
115
86
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
116
87
  }
117
- function Vr(e) {
88
+ function Pr(e) {
118
89
  return Array.from(e.childNodes);
119
90
  }
120
- function rt(e, t) {
91
+ function et(e, t) {
121
92
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
122
93
  t);
123
94
  }
124
- function Xr(e) {
95
+ function Or(e) {
125
96
  const t = {};
126
97
  return e.childNodes.forEach(
127
98
  /** @param {Element} node */
@@ -130,276 +101,272 @@ function Xr(e) {
130
101
  }
131
102
  ), t;
132
103
  }
133
- let pe;
134
- function fe(e) {
135
- pe = e;
104
+ let me;
105
+ function he(e) {
106
+ me = e;
136
107
  }
137
- function Wr() {
138
- if (!pe) throw new Error("Function called outside component initialization");
139
- return pe;
108
+ function Lr() {
109
+ if (!me) throw new Error("Function called outside component initialization");
110
+ return me;
140
111
  }
141
- function zr(e) {
142
- Wr().$$.on_mount.push(e);
112
+ function Fr(e) {
113
+ Lr().$$.on_mount.push(e);
143
114
  }
144
- const ee = [], de = [];
145
- let te = [];
146
- const gt = [], Zr = /* @__PURE__ */ Promise.resolve();
147
- let Ve = !1;
148
- function Qr() {
149
- Ve || (Ve = !0, Zr.then(A));
115
+ const Y = [], ce = [];
116
+ let K = [];
117
+ const ht = [], Rr = /* @__PURE__ */ Promise.resolve();
118
+ let $e = !1;
119
+ function Dr() {
120
+ $e || ($e = !0, Rr.then(A));
150
121
  }
151
- function Xe(e) {
152
- te.push(e);
122
+ function je(e) {
123
+ K.push(e);
153
124
  }
154
- const Re = /* @__PURE__ */ new Set();
155
- let Y = 0;
125
+ const Le = /* @__PURE__ */ new Set();
126
+ let q = 0;
156
127
  function A() {
157
- if (Y !== 0)
128
+ if (q !== 0)
158
129
  return;
159
- const e = pe;
130
+ const e = me;
160
131
  do {
161
132
  try {
162
- for (; Y < ee.length; ) {
163
- const t = ee[Y];
164
- Y++, fe(t), qr(t.$$);
133
+ for (; q < Y.length; ) {
134
+ const t = Y[q];
135
+ q++, he(t), Gr(t.$$);
165
136
  }
166
137
  } catch (t) {
167
- throw ee.length = 0, Y = 0, t;
138
+ throw Y.length = 0, q = 0, t;
168
139
  }
169
- for (fe(null), ee.length = 0, Y = 0; de.length; ) de.pop()();
170
- for (let t = 0; t < te.length; t += 1) {
171
- const r = te[t];
172
- Re.has(r) || (Re.add(r), r());
140
+ for (he(null), Y.length = 0, q = 0; ce.length; ) ce.pop()();
141
+ for (let t = 0; t < K.length; t += 1) {
142
+ const r = K[t];
143
+ Le.has(r) || (Le.add(r), r());
173
144
  }
174
- te.length = 0;
175
- } while (ee.length);
176
- for (; gt.length; )
177
- gt.pop()();
178
- Ve = !1, Re.clear(), fe(e);
145
+ K.length = 0;
146
+ } while (Y.length);
147
+ for (; ht.length; )
148
+ ht.pop()();
149
+ $e = !1, Le.clear(), he(e);
179
150
  }
180
- function qr(e) {
151
+ function Gr(e) {
181
152
  if (e.fragment !== null) {
182
- e.update(), q(e.before_update);
153
+ e.update(), Z(e.before_update);
183
154
  const t = e.dirty;
184
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xe);
155
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(je);
185
156
  }
186
157
  }
187
- function Jr(e) {
158
+ function Ur(e) {
188
159
  const t = [], r = [];
189
- te.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), te = t;
160
+ K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
190
161
  }
191
- const Yr = /* @__PURE__ */ new Set();
192
- function Vt(e, t) {
193
- e && e.i && (Yr.delete(e), e.i(t));
162
+ const kr = /* @__PURE__ */ new Set();
163
+ function Dt(e, t) {
164
+ e && e.i && (kr.delete(e), e.i(t));
194
165
  }
195
- function re(e) {
196
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
166
+ function ee(e) {
167
+ return e?.length !== void 0 ? e : Array.from(e);
197
168
  }
198
- function Xt(e, t) {
169
+ function Gt(e, t) {
199
170
  e.d(1), t.delete(e.key);
200
171
  }
201
- function Wt(e, t, r, n, i, o, s, a, u, l, h, d) {
202
- let f = e.length, p = o.length, g = f;
172
+ function Ut(e, t, r, n, i, s, o, a, h, l, u, m) {
173
+ let f = e.length, p = s.length, g = f;
203
174
  const b = {};
204
175
  for (; g--; ) b[e[g].key] = g;
205
- const m = [], w = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), C = [];
176
+ const d = [], C = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), S = [];
206
177
  for (g = p; g--; ) {
207
- const H = d(i, o, g), N = r(H);
208
- let R = s.get(N);
209
- R ? C.push(() => R.p(H, t)) : (R = l(N, H), R.c()), w.set(N, m[g] = R), N in b && _.set(N, Math.abs(g - b[N]));
178
+ const w = m(i, s, g), M = r(w);
179
+ let L = o.get(M);
180
+ L ? S.push(() => L.p(w, t)) : (L = l(M, w), L.c()), C.set(M, d[g] = L), M in b && x.set(M, Math.abs(g - b[M]));
210
181
  }
211
- const P = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Set();
212
- function L(H) {
213
- Vt(H, 1), H.m(a, h), s.set(H.key, H), h = H.first, p--;
182
+ const R = /* @__PURE__ */ new Set(), D = /* @__PURE__ */ new Set();
183
+ function P(w) {
184
+ Dt(w, 1), w.m(a, u), o.set(w.key, w), u = w.first, p--;
214
185
  }
215
186
  for (; f && p; ) {
216
- const H = m[p - 1], N = e[f - 1], R = H.key, G = N.key;
217
- H === N ? (h = H.first, f--, p--) : w.has(G) ? !s.has(R) || P.has(R) ? L(H) : O.has(G) ? f-- : _.get(R) > _.get(G) ? (O.add(R), L(H)) : (P.add(G), f--) : (u(N, s), f--);
187
+ const w = d[p - 1], M = e[f - 1], L = w.key, G = M.key;
188
+ w === M ? (u = w.first, f--, p--) : C.has(G) ? !o.has(L) || R.has(L) ? P(w) : D.has(G) ? f-- : x.get(L) > x.get(G) ? (D.add(L), P(w)) : (R.add(G), f--) : (h(M, o), f--);
218
189
  }
219
190
  for (; f--; ) {
220
- const H = e[f];
221
- w.has(H.key) || u(H, s);
191
+ const w = e[f];
192
+ C.has(w.key) || h(w, o);
222
193
  }
223
- for (; p; ) L(m[p - 1]);
224
- return q(C), m;
194
+ for (; p; ) P(d[p - 1]);
195
+ return Z(S), d;
225
196
  }
226
- function Kr(e, t, r) {
197
+ function $r(e, t, r) {
227
198
  const { fragment: n, after_update: i } = e.$$;
228
- n && n.m(t, r), Xe(() => {
229
- const o = e.$$.on_mount.map($t).filter(tt);
230
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : q(o), e.$$.on_mount = [];
231
- }), i.forEach(Xe);
199
+ n && n.m(t, r), je(() => {
200
+ const s = e.$$.on_mount.map(Ft).filter(Ke);
201
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : Z(s), e.$$.on_mount = [];
202
+ }), i.forEach(je);
232
203
  }
233
- function en(e, t) {
204
+ function jr(e, t) {
234
205
  const r = e.$$;
235
- r.fragment !== null && (Jr(r.after_update), q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
206
+ r.fragment !== null && (Ur(r.after_update), Z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
236
207
  }
237
- function tn(e, t) {
238
- e.$$.dirty[0] === -1 && (ee.push(e), Qr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
208
+ function Vr(e, t) {
209
+ e.$$.dirty[0] === -1 && (Y.push(e), Dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
239
210
  }
240
- function rn(e, t, r, n, i, o, s = null, a = [-1]) {
241
- const u = pe;
242
- fe(e);
211
+ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
212
+ const h = me;
213
+ he(e);
243
214
  const l = e.$$ = {
244
215
  fragment: null,
245
216
  ctx: [],
246
217
  // state
247
- props: o,
248
- update: $,
218
+ props: s,
219
+ update: k,
249
220
  not_equal: i,
250
- bound: mt(),
221
+ bound: lt(),
251
222
  // lifecycle
252
223
  on_mount: [],
253
224
  on_destroy: [],
254
225
  on_disconnect: [],
255
226
  before_update: [],
256
227
  after_update: [],
257
- context: new Map(t.context || (u ? u.$$.context : [])),
228
+ context: new Map(t.context || (h ? h.$$.context : [])),
258
229
  // everything else
259
- callbacks: mt(),
230
+ callbacks: lt(),
260
231
  dirty: a,
261
232
  skip_bound: !1,
262
- root: t.target || u.$$.root
233
+ root: t.target || h.$$.root
263
234
  };
264
- s && s(l.root);
265
- let h = !1;
266
- if (l.ctx = r(e, t.props || {}, (d, f, ...p) => {
235
+ o && o(l.root);
236
+ let u = !1;
237
+ if (l.ctx = r(e, t.props || {}, (m, f, ...p) => {
267
238
  const g = p.length ? p[0] : f;
268
- return l.ctx && i(l.ctx[d], l.ctx[d] = g) && (!l.skip_bound && l.bound[d] && l.bound[d](g), h && tn(e, d)), f;
269
- }), l.update(), h = !0, q(l.before_update), l.fragment = n(l.ctx), t.target) {
239
+ return l.ctx && i(l.ctx[m], l.ctx[m] = g) && (!l.skip_bound && l.bound[m] && l.bound[m](g), u && Vr(e, m)), f;
240
+ }), l.update(), u = !0, Z(l.before_update), l.fragment = n(l.ctx), t.target) {
270
241
  if (t.hydrate) {
271
- const d = Vr(t.target);
272
- l.fragment && l.fragment.l(d), d.forEach(D);
242
+ const m = Pr(t.target);
243
+ l.fragment && l.fragment.l(m), m.forEach(F);
273
244
  } else
274
245
  l.fragment && l.fragment.c();
275
- t.intro && Vt(e.$$.fragment), Kr(e, t.target, t.anchor), A();
246
+ t.intro && Dt(e.$$.fragment), $r(e, t.target, t.anchor), A();
276
247
  }
277
- fe(u);
278
- }
279
- let zt;
280
- typeof HTMLElement == "function" && (zt = class extends HTMLElement {
281
- constructor(t, r, n) {
282
- super();
283
- /** The Svelte component constructor */
284
- U(this, "$$ctor");
285
- /** Slots */
286
- U(this, "$$s");
287
- /** The Svelte component instance */
288
- U(this, "$$c");
289
- /** Whether or not the custom element is connected */
290
- U(this, "$$cn", !1);
291
- /** Component props data */
292
- U(this, "$$d", {});
293
- /** `true` if currently in the process of reflecting component props back to attributes */
294
- U(this, "$$r", !1);
295
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
296
- U(this, "$$p_d", {});
297
- /** @type {Record<string, Function[]>} Event listeners */
298
- U(this, "$$l", {});
299
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
300
- U(this, "$$l_u", /* @__PURE__ */ new Map());
301
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
248
+ he(h);
249
+ }
250
+ let kt;
251
+ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
252
+ /** The Svelte component constructor */
253
+ $$ctor;
254
+ /** Slots */
255
+ $$s;
256
+ /** The Svelte component instance */
257
+ $$c;
258
+ /** Whether or not the custom element is connected */
259
+ $$cn = !1;
260
+ /** Component props data */
261
+ $$d = {};
262
+ /** `true` if currently in the process of reflecting component props back to attributes */
263
+ $$r = !1;
264
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
265
+ $$p_d = {};
266
+ /** @type {Record<string, Function[]>} Event listeners */
267
+ $$l = {};
268
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
269
+ $$l_u = /* @__PURE__ */ new Map();
270
+ constructor(e, t, r) {
271
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
302
272
  }
303
- addEventListener(t, r, n) {
304
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
305
- const i = this.$$c.$on(t, r);
306
- this.$$l_u.set(r, i);
273
+ addEventListener(e, t, r) {
274
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
275
+ const n = this.$$c.$on(e, t);
276
+ this.$$l_u.set(t, n);
307
277
  }
308
- super.addEventListener(t, r, n);
278
+ super.addEventListener(e, t, r);
309
279
  }
310
- removeEventListener(t, r, n) {
311
- if (super.removeEventListener(t, r, n), this.$$c) {
312
- const i = this.$$l_u.get(r);
313
- i && (i(), this.$$l_u.delete(r));
280
+ removeEventListener(e, t, r) {
281
+ if (super.removeEventListener(e, t, r), this.$$c) {
282
+ const n = this.$$l_u.get(t);
283
+ n && (n(), this.$$l_u.delete(t));
314
284
  }
315
285
  }
316
- connectedCallback() {
317
- return dt(this, null, function* () {
318
- if (this.$$cn = !0, !this.$$c) {
319
- let t = function(o) {
320
- return () => {
321
- let s;
322
- return {
323
- c: function() {
324
- s = M("slot"), o !== "default" && S(s, "name", o);
325
- },
326
- /**
327
- * @param {HTMLElement} target
328
- * @param {HTMLElement} [anchor]
329
- */
330
- m: function(l, h) {
331
- k(l, s, h);
332
- },
333
- d: function(l) {
334
- l && D(s);
335
- }
336
- };
286
+ async connectedCallback() {
287
+ if (this.$$cn = !0, !this.$$c) {
288
+ let e = function(i) {
289
+ return () => {
290
+ let s;
291
+ return {
292
+ c: function() {
293
+ s = B("slot"), i !== "default" && H(s, "name", i);
294
+ },
295
+ /**
296
+ * @param {HTMLElement} target
297
+ * @param {HTMLElement} [anchor]
298
+ */
299
+ m: function(h, l) {
300
+ U(h, s, l);
301
+ },
302
+ d: function(h) {
303
+ h && F(s);
304
+ }
337
305
  };
338
306
  };
339
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
340
- return;
341
- const r = {}, n = Xr(this);
342
- for (const o of this.$$s)
343
- o in n && (r[o] = [t(o)]);
344
- for (const o of this.attributes) {
345
- const s = this.$$g_p(o.name);
346
- s in this.$$d || (this.$$d[s] = we(s, o.value, this.$$p_d, "toProp"));
307
+ };
308
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
309
+ return;
310
+ const t = {}, r = Or(this);
311
+ for (const i of this.$$s)
312
+ i in r && (t[i] = [e(i)]);
313
+ for (const i of this.attributes) {
314
+ const s = this.$$g_p(i.name);
315
+ s in this.$$d || (this.$$d[s] = Ce(s, i.value, this.$$p_d, "toProp"));
316
+ }
317
+ for (const i in this.$$p_d)
318
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
319
+ this.$$c = new this.$$ctor({
320
+ target: this.shadowRoot || this,
321
+ props: {
322
+ ...this.$$d,
323
+ $$slots: t,
324
+ $$scope: {
325
+ ctx: []
326
+ }
347
327
  }
348
- for (const o in this.$$p_d)
349
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
350
- this.$$c = new this.$$ctor({
351
- target: this.shadowRoot || this,
352
- props: ft(ct({}, this.$$d), {
353
- $$slots: r,
354
- $$scope: {
355
- ctx: []
356
- }
357
- })
358
- });
359
- const i = () => {
360
- this.$$r = !0;
361
- for (const o in this.$$p_d)
362
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
363
- const s = we(
364
- o,
365
- this.$$d[o],
366
- this.$$p_d,
367
- "toAttribute"
368
- );
369
- s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
370
- }
371
- this.$$r = !1;
372
- };
373
- this.$$c.$$.after_update.push(i), i();
374
- for (const o in this.$$l)
375
- for (const s of this.$$l[o]) {
376
- const a = this.$$c.$on(o, s);
377
- this.$$l_u.set(s, a);
328
+ });
329
+ const n = () => {
330
+ this.$$r = !0;
331
+ for (const i in this.$$p_d)
332
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
333
+ const s = Ce(
334
+ i,
335
+ this.$$d[i],
336
+ this.$$p_d,
337
+ "toAttribute"
338
+ );
339
+ s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
378
340
  }
379
- this.$$l = {};
380
- }
381
- });
341
+ this.$$r = !1;
342
+ };
343
+ this.$$c.$$.after_update.push(n), n();
344
+ for (const i in this.$$l)
345
+ for (const s of this.$$l[i]) {
346
+ const o = this.$$c.$on(i, s);
347
+ this.$$l_u.set(s, o);
348
+ }
349
+ this.$$l = {};
350
+ }
382
351
  }
383
352
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
384
353
  // and setting attributes through setAttribute etc, this is helpful
385
- attributeChangedCallback(t, r, n) {
386
- var i;
387
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = we(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
354
+ attributeChangedCallback(e, t, r) {
355
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ce(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
388
356
  }
389
357
  disconnectedCallback() {
390
358
  this.$$cn = !1, Promise.resolve().then(() => {
391
359
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
392
360
  });
393
361
  }
394
- $$g_p(t) {
362
+ $$g_p(e) {
395
363
  return Object.keys(this.$$p_d).find(
396
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
397
- ) || t;
364
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
365
+ ) || e;
398
366
  }
399
367
  });
400
- function we(e, t, r, n) {
401
- var o;
402
- const i = (o = r[e]) == null ? void 0 : o.type;
368
+ function Ce(e, t, r, n) {
369
+ const i = r[e]?.type;
403
370
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
404
371
  return t;
405
372
  if (n === "toAttribute")
@@ -410,7 +377,7 @@ function we(e, t, r, n) {
410
377
  case "Boolean":
411
378
  return t ? "" : null;
412
379
  case "Number":
413
- return t == null ? null : t;
380
+ return t ?? null;
414
381
  default:
415
382
  return t;
416
383
  }
@@ -427,8 +394,8 @@ function we(e, t, r, n) {
427
394
  return t;
428
395
  }
429
396
  }
430
- function nn(e, t, r, n, i, o) {
431
- let s = class extends zt {
397
+ function Wr(e, t, r, n, i, s) {
398
+ let o = class extends kt {
432
399
  constructor() {
433
400
  super(e, r, i), this.$$p_d = t;
434
401
  }
@@ -439,47 +406,43 @@ function nn(e, t, r, n, i, o) {
439
406
  }
440
407
  };
441
408
  return Object.keys(t).forEach((a) => {
442
- Object.defineProperty(s.prototype, a, {
409
+ Object.defineProperty(o.prototype, a, {
443
410
  get() {
444
411
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
445
412
  },
446
- set(u) {
447
- var l;
448
- u = we(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
413
+ set(h) {
414
+ h = Ce(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
449
415
  }
450
416
  });
451
417
  }), n.forEach((a) => {
452
- Object.defineProperty(s.prototype, a, {
418
+ Object.defineProperty(o.prototype, a, {
453
419
  get() {
454
- var u;
455
- return (u = this.$$c) == null ? void 0 : u[a];
420
+ return this.$$c?.[a];
456
421
  }
457
422
  });
458
423
  }), e.element = /** @type {any} */
459
- s, s;
460
- }
461
- class on {
462
- constructor() {
463
- /**
464
- * ### PRIVATE API
465
- *
466
- * Do not use, may change at any time
467
- *
468
- * @type {any}
469
- */
470
- U(this, "$$");
471
- /**
472
- * ### PRIVATE API
473
- *
474
- * Do not use, may change at any time
475
- *
476
- * @type {any}
477
- */
478
- U(this, "$$set");
479
- }
424
+ o, o;
425
+ }
426
+ class zr {
427
+ /**
428
+ * ### PRIVATE API
429
+ *
430
+ * Do not use, may change at any time
431
+ *
432
+ * @type {any}
433
+ */
434
+ $$ = void 0;
435
+ /**
436
+ * ### PRIVATE API
437
+ *
438
+ * Do not use, may change at any time
439
+ *
440
+ * @type {any}
441
+ */
442
+ $$set = void 0;
480
443
  /** @returns {void} */
481
444
  $destroy() {
482
- en(this, 1), this.$destroy = $;
445
+ jr(this, 1), this.$destroy = k;
483
446
  }
484
447
  /**
485
448
  * @template {Extract<keyof Events, string>} K
@@ -488,8 +451,8 @@ class on {
488
451
  * @returns {() => void}
489
452
  */
490
453
  $on(t, r) {
491
- if (!tt(r))
492
- return $;
454
+ if (!Ke(r))
455
+ return k;
493
456
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
494
457
  return n.push(r), () => {
495
458
  const i = n.indexOf(r);
@@ -501,174 +464,174 @@ class on {
501
464
  * @returns {void}
502
465
  */
503
466
  $set(t) {
504
- this.$$set && !Dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
467
+ this.$$set && !Tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
505
468
  }
506
469
  }
507
- const sn = "4";
508
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(sn);
509
- const K = [];
510
- function an(e, t) {
470
+ const Zr = "4";
471
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zr);
472
+ const J = [];
473
+ function Qr(e, t) {
511
474
  return {
512
- subscribe: Be(e, t).subscribe
475
+ subscribe: Ie(e, t).subscribe
513
476
  };
514
477
  }
515
- function Be(e, t = $) {
478
+ function Ie(e, t = k) {
516
479
  let r;
517
480
  const n = /* @__PURE__ */ new Set();
518
481
  function i(a) {
519
- if (jt(e, a) && (e = a, r)) {
520
- const u = !K.length;
482
+ if (Rt(e, a) && (e = a, r)) {
483
+ const h = !J.length;
521
484
  for (const l of n)
522
- l[1](), K.push(l, e);
523
- if (u) {
524
- for (let l = 0; l < K.length; l += 2)
525
- K[l][0](K[l + 1]);
526
- K.length = 0;
485
+ l[1](), J.push(l, e);
486
+ if (h) {
487
+ for (let l = 0; l < J.length; l += 2)
488
+ J[l][0](J[l + 1]);
489
+ J.length = 0;
527
490
  }
528
491
  }
529
492
  }
530
- function o(a) {
493
+ function s(a) {
531
494
  i(a(e));
532
495
  }
533
- function s(a, u = $) {
534
- const l = [a, u];
535
- return n.add(l), n.size === 1 && (r = t(i, o) || $), a(e), () => {
496
+ function o(a, h = k) {
497
+ const l = [a, h];
498
+ return n.add(l), n.size === 1 && (r = t(i, s) || k), a(e), () => {
536
499
  n.delete(l), n.size === 0 && r && (r(), r = null);
537
500
  };
538
501
  }
539
- return { set: i, update: o, subscribe: s };
502
+ return { set: i, update: s, subscribe: o };
540
503
  }
541
- function ae(e, t, r) {
504
+ function oe(e, t, r) {
542
505
  const n = !Array.isArray(e), i = n ? [e] : e;
543
506
  if (!i.every(Boolean))
544
507
  throw new Error("derived() expects stores as input, got a falsy value");
545
- const o = t.length < 2;
546
- return an(r, (s, a) => {
547
- let u = !1;
508
+ const s = t.length < 2;
509
+ return Qr(r, (o, a) => {
510
+ let h = !1;
548
511
  const l = [];
549
- let h = 0, d = $;
512
+ let u = 0, m = k;
550
513
  const f = () => {
551
- if (h)
514
+ if (u)
552
515
  return;
553
- d();
554
- const g = t(n ? l[0] : l, s, a);
555
- o ? s(g) : d = tt(g) ? g : $;
516
+ m();
517
+ const g = t(n ? l[0] : l, o, a);
518
+ s ? o(g) : m = Ke(g) ? g : k;
556
519
  }, p = i.map(
557
- (g, b) => Gr(
520
+ (g, b) => Ar(
558
521
  g,
559
- (m) => {
560
- l[b] = m, h &= ~(1 << b), u && f();
522
+ (d) => {
523
+ l[b] = d, u &= ~(1 << b), h && f();
561
524
  },
562
525
  () => {
563
- h |= 1 << b;
526
+ u |= 1 << b;
564
527
  }
565
528
  )
566
529
  );
567
- return u = !0, f(), function() {
568
- q(p), d(), u = !1;
530
+ return h = !0, f(), function() {
531
+ Z(p), m(), h = !1;
569
532
  };
570
533
  });
571
534
  }
572
- function ln(e) {
535
+ function qr(e) {
573
536
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
574
537
  }
575
- var un = function(t) {
576
- return hn(t) && !cn(t);
538
+ var Jr = function(t) {
539
+ return Yr(t) && !Kr(t);
577
540
  };
578
- function hn(e) {
541
+ function Yr(e) {
579
542
  return !!e && typeof e == "object";
580
543
  }
581
- function cn(e) {
544
+ function Kr(e) {
582
545
  var t = Object.prototype.toString.call(e);
583
- return t === "[object RegExp]" || t === "[object Date]" || mn(e);
546
+ return t === "[object RegExp]" || t === "[object Date]" || rn(e);
584
547
  }
585
- var fn = typeof Symbol == "function" && Symbol.for, dn = fn ? Symbol.for("react.element") : 60103;
586
- function mn(e) {
587
- return e.$$typeof === dn;
548
+ var en = typeof Symbol == "function" && Symbol.for, tn = en ? Symbol.for("react.element") : 60103;
549
+ function rn(e) {
550
+ return e.$$typeof === tn;
588
551
  }
589
- function pn(e) {
552
+ function nn(e) {
590
553
  return Array.isArray(e) ? [] : {};
591
554
  }
592
- function ge(e, t) {
593
- return t.clone !== !1 && t.isMergeableObject(e) ? ne(pn(e), e, t) : e;
555
+ function de(e, t) {
556
+ return t.clone !== !1 && t.isMergeableObject(e) ? te(nn(e), e, t) : e;
594
557
  }
595
- function gn(e, t, r) {
558
+ function on(e, t, r) {
596
559
  return e.concat(t).map(function(n) {
597
- return ge(n, r);
560
+ return de(n, r);
598
561
  });
599
562
  }
600
- function bn(e, t) {
563
+ function sn(e, t) {
601
564
  if (!t.customMerge)
602
- return ne;
565
+ return te;
603
566
  var r = t.customMerge(e);
604
- return typeof r == "function" ? r : ne;
567
+ return typeof r == "function" ? r : te;
605
568
  }
606
- function yn(e) {
569
+ function an(e) {
607
570
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
608
571
  return Object.propertyIsEnumerable.call(e, t);
609
572
  }) : [];
610
573
  }
611
- function bt(e) {
612
- return Object.keys(e).concat(yn(e));
574
+ function ct(e) {
575
+ return Object.keys(e).concat(an(e));
613
576
  }
614
- function Zt(e, t) {
577
+ function $t(e, t) {
615
578
  try {
616
579
  return t in e;
617
- } catch (r) {
580
+ } catch {
618
581
  return !1;
619
582
  }
620
583
  }
621
- function vn(e, t) {
622
- return Zt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
584
+ function ln(e, t) {
585
+ return $t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
623
586
  }
624
- function _n(e, t, r) {
587
+ function un(e, t, r) {
625
588
  var n = {};
626
- return r.isMergeableObject(e) && bt(e).forEach(function(i) {
627
- n[i] = ge(e[i], r);
628
- }), bt(t).forEach(function(i) {
629
- vn(e, i) || (Zt(e, i) && r.isMergeableObject(t[i]) ? n[i] = bn(i, r)(e[i], t[i], r) : n[i] = ge(t[i], r));
589
+ return r.isMergeableObject(e) && ct(e).forEach(function(i) {
590
+ n[i] = de(e[i], r);
591
+ }), ct(t).forEach(function(i) {
592
+ ln(e, i) || ($t(e, i) && r.isMergeableObject(t[i]) ? n[i] = sn(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
630
593
  }), n;
631
594
  }
632
- function ne(e, t, r) {
633
- r = r || {}, r.arrayMerge = r.arrayMerge || gn, r.isMergeableObject = r.isMergeableObject || un, r.cloneUnlessOtherwiseSpecified = ge;
634
- var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
635
- return o ? n ? r.arrayMerge(e, t, r) : _n(e, t, r) : ge(t, r);
595
+ function te(e, t, r) {
596
+ r = r || {}, r.arrayMerge = r.arrayMerge || on, r.isMergeableObject = r.isMergeableObject || Jr, r.cloneUnlessOtherwiseSpecified = de;
597
+ var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
598
+ return s ? n ? r.arrayMerge(e, t, r) : un(e, t, r) : de(t, r);
636
599
  }
637
- ne.all = function(t, r) {
600
+ te.all = function(t, r) {
638
601
  if (!Array.isArray(t))
639
602
  throw new Error("first argument should be an array");
640
603
  return t.reduce(function(n, i) {
641
- return ne(n, i, r);
604
+ return te(n, i, r);
642
605
  }, {});
643
606
  };
644
- var En = ne, xn = En;
645
- const Cn = /* @__PURE__ */ ln(xn);
646
- var We = function(e, t) {
647
- return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
607
+ var hn = te, cn = hn;
608
+ const fn = /* @__PURE__ */ qr(cn);
609
+ var Ve = function(e, t) {
610
+ return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
648
611
  r.__proto__ = n;
649
612
  } || function(r, n) {
650
613
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
651
- }, We(e, t);
614
+ }, Ve(e, t);
652
615
  };
653
- function Me(e, t) {
616
+ function Be(e, t) {
654
617
  if (typeof t != "function" && t !== null)
655
618
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
656
- We(e, t);
619
+ Ve(e, t);
657
620
  function r() {
658
621
  this.constructor = e;
659
622
  }
660
623
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
661
624
  }
662
- var E = function() {
663
- return E = Object.assign || function(t) {
625
+ var v = function() {
626
+ return v = Object.assign || function(t) {
664
627
  for (var r, n = 1, i = arguments.length; n < i; n++) {
665
628
  r = arguments[n];
666
- for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
629
+ for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
667
630
  }
668
631
  return t;
669
- }, E.apply(this, arguments);
632
+ }, v.apply(this, arguments);
670
633
  };
671
- function wn(e, t) {
634
+ function mn(e, t) {
672
635
  var r = {};
673
636
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
674
637
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -676,45 +639,45 @@ function wn(e, t) {
676
639
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
677
640
  return r;
678
641
  }
679
- function De(e, t, r) {
680
- if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
681
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
682
- return e.concat(o || Array.prototype.slice.call(t));
642
+ function Fe(e, t, r) {
643
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
644
+ (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
645
+ return e.concat(s || Array.prototype.slice.call(t));
683
646
  }
684
- function Ge(e, t) {
685
- var r = t && t.cache ? t.cache : Mn, n = t && t.serializer ? t.serializer : In, i = t && t.strategy ? t.strategy : Sn;
647
+ function Re(e, t) {
648
+ var r = t && t.cache ? t.cache : vn, n = t && t.serializer ? t.serializer : yn, i = t && t.strategy ? t.strategy : pn;
686
649
  return i(e, {
687
650
  cache: r,
688
651
  serializer: n
689
652
  });
690
653
  }
691
- function Hn(e) {
654
+ function dn(e) {
692
655
  return e == null || typeof e == "number" || typeof e == "boolean";
693
656
  }
694
- function Qt(e, t, r, n) {
695
- var i = Hn(n) ? n : r(n), o = t.get(i);
696
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
657
+ function jt(e, t, r, n) {
658
+ var i = dn(n) ? n : r(n), s = t.get(i);
659
+ return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
697
660
  }
698
- function qt(e, t, r) {
699
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
700
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
661
+ function Vt(e, t, r) {
662
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
663
+ return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
701
664
  }
702
- function nt(e, t, r, n, i) {
665
+ function tt(e, t, r, n, i) {
703
666
  return r.bind(t, e, n, i);
704
667
  }
705
- function Sn(e, t) {
706
- var r = e.length === 1 ? Qt : qt;
707
- return nt(e, this, r, t.cache.create(), t.serializer);
668
+ function pn(e, t) {
669
+ var r = e.length === 1 ? jt : Vt;
670
+ return tt(e, this, r, t.cache.create(), t.serializer);
708
671
  }
709
- function Tn(e, t) {
710
- return nt(e, this, qt, t.cache.create(), t.serializer);
672
+ function gn(e, t) {
673
+ return tt(e, this, Vt, t.cache.create(), t.serializer);
711
674
  }
712
- function An(e, t) {
713
- return nt(e, this, Qt, t.cache.create(), t.serializer);
675
+ function bn(e, t) {
676
+ return tt(e, this, jt, t.cache.create(), t.serializer);
714
677
  }
715
- var In = function() {
678
+ var yn = function() {
716
679
  return JSON.stringify(arguments);
717
- }, Bn = (
680
+ }, _n = (
718
681
  /** @class */
719
682
  function() {
720
683
  function e() {
@@ -726,13 +689,13 @@ var In = function() {
726
689
  this.cache[t] = r;
727
690
  }, e;
728
691
  }()
729
- ), Mn = {
692
+ ), vn = {
730
693
  create: function() {
731
- return new Bn();
694
+ return new _n();
732
695
  }
733
- }, Ue = {
734
- variadic: Tn,
735
- monadic: An
696
+ }, De = {
697
+ variadic: gn,
698
+ monadic: bn
736
699
  }, y;
737
700
  (function(e) {
738
701
  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";
@@ -741,47 +704,47 @@ var T;
741
704
  (function(e) {
742
705
  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";
743
706
  })(T || (T = {}));
744
- var ie;
707
+ var re;
745
708
  (function(e) {
746
709
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
747
- })(ie || (ie = {}));
748
- function yt(e) {
710
+ })(re || (re = {}));
711
+ function ft(e) {
749
712
  return e.type === T.literal;
750
713
  }
751
- function Nn(e) {
714
+ function En(e) {
752
715
  return e.type === T.argument;
753
716
  }
754
- function Jt(e) {
717
+ function Xt(e) {
755
718
  return e.type === T.number;
756
719
  }
757
- function Yt(e) {
720
+ function Wt(e) {
758
721
  return e.type === T.date;
759
722
  }
760
- function Kt(e) {
723
+ function zt(e) {
761
724
  return e.type === T.time;
762
725
  }
763
- function er(e) {
726
+ function Zt(e) {
764
727
  return e.type === T.select;
765
728
  }
766
- function tr(e) {
729
+ function Qt(e) {
767
730
  return e.type === T.plural;
768
731
  }
769
- function Pn(e) {
732
+ function xn(e) {
770
733
  return e.type === T.pound;
771
734
  }
772
- function rr(e) {
735
+ function qt(e) {
773
736
  return e.type === T.tag;
774
737
  }
775
- function nr(e) {
776
- return !!(e && typeof e == "object" && e.type === ie.number);
738
+ function Jt(e) {
739
+ return !!(e && typeof e == "object" && e.type === re.number);
777
740
  }
778
- function ze(e) {
779
- return !!(e && typeof e == "object" && e.type === ie.dateTime);
741
+ function Xe(e) {
742
+ return !!(e && typeof e == "object" && e.type === re.dateTime);
780
743
  }
781
- var ir = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
782
- function Ln(e) {
744
+ var Yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Cn = /(?:[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 wn(e) {
783
746
  var t = {};
784
- return e.replace(On, function(r) {
747
+ return e.replace(Cn, function(r) {
785
748
  var n = r.length;
786
749
  switch (r[0]) {
787
750
  case "G":
@@ -870,36 +833,36 @@ function Ln(e) {
870
833
  return "";
871
834
  }), t;
872
835
  }
873
- var Fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
874
- function Rn(e) {
836
+ var Hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
837
+ function Sn(e) {
875
838
  if (e.length === 0)
876
839
  throw new Error("Number skeleton cannot be empty");
877
- for (var t = e.split(Fn).filter(function(f) {
840
+ for (var t = e.split(Hn).filter(function(f) {
878
841
  return f.length > 0;
879
842
  }), r = [], n = 0, i = t; n < i.length; n++) {
880
- var o = i[n], s = o.split("/");
881
- if (s.length === 0)
843
+ var s = i[n], o = s.split("/");
844
+ if (o.length === 0)
882
845
  throw new Error("Invalid number skeleton");
883
- for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
884
- var d = h[l];
885
- if (d.length === 0)
846
+ for (var a = o[0], h = o.slice(1), l = 0, u = h; l < u.length; l++) {
847
+ var m = u[l];
848
+ if (m.length === 0)
886
849
  throw new Error("Invalid number skeleton");
887
850
  }
888
- r.push({ stem: a, options: u });
851
+ r.push({ stem: a, options: h });
889
852
  }
890
853
  return r;
891
854
  }
892
- function Dn(e) {
855
+ function Tn(e) {
893
856
  return e.replace(/^(.*?)-/, "");
894
857
  }
895
- var vt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, or = /^(@+)?(\+|#+)?[rs]?$/g, Gn = /(\*)(0+)|(#+)(0+)|(0+)/g, sr = /^(0+)$/;
896
- function _t(e) {
858
+ var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, An = /(\*)(0+)|(#+)(0+)|(0+)/g, er = /^(0+)$/;
859
+ function dt(e) {
897
860
  var t = {};
898
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(or, function(r, n, i) {
861
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
899
862
  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)), "";
900
863
  }), t;
901
864
  }
902
- function ar(e) {
865
+ function tr(e) {
903
866
  switch (e) {
904
867
  case "sign-auto":
905
868
  return {
@@ -939,7 +902,7 @@ function ar(e) {
939
902
  };
940
903
  }
941
904
  }
942
- function Un(e) {
905
+ function In(e) {
943
906
  var t;
944
907
  if (e[0] === "E" && e[1] === "E" ? (t = {
945
908
  notation: "engineering"
@@ -947,17 +910,17 @@ function Un(e) {
947
910
  notation: "scientific"
948
911
  }, e = e.slice(1)), t) {
949
912
  var r = e.slice(0, 2);
950
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !sr.test(e))
913
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !er.test(e))
951
914
  throw new Error("Malformed concise eng/scientific notation");
952
915
  t.minimumIntegerDigits = e.length;
953
916
  }
954
917
  return t;
955
918
  }
956
- function Et(e) {
957
- var t = {}, r = ar(e);
919
+ function pt(e) {
920
+ var t = {}, r = tr(e);
958
921
  return r || t;
959
922
  }
960
- function kn(e) {
923
+ function Bn(e) {
961
924
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
962
925
  var i = n[r];
963
926
  switch (i.stem) {
@@ -981,7 +944,7 @@ function kn(e) {
981
944
  continue;
982
945
  case "measure-unit":
983
946
  case "unit":
984
- t.style = "unit", t.unit = Dn(i.options[0]);
947
+ t.style = "unit", t.unit = Tn(i.options[0]);
985
948
  continue;
986
949
  case "compact-short":
987
950
  case "K":
@@ -992,13 +955,13 @@ function kn(e) {
992
955
  t.notation = "compact", t.compactDisplay = "long";
993
956
  continue;
994
957
  case "scientific":
995
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
996
- return E(E({}, u), Et(l));
958
+ t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
959
+ return v(v({}, h), pt(l));
997
960
  }, {}));
998
961
  continue;
999
962
  case "engineering":
1000
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
1001
- return E(E({}, u), Et(l));
963
+ t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
964
+ return v(v({}, h), pt(l));
1002
965
  }, {}));
1003
966
  continue;
1004
967
  case "notation-simple":
@@ -1043,11 +1006,11 @@ function kn(e) {
1043
1006
  case "integer-width":
1044
1007
  if (i.options.length > 1)
1045
1008
  throw new RangeError("integer-width stems only accept a single optional option");
1046
- i.options[0].replace(Gn, function(u, l, h, d, f, p) {
1009
+ i.options[0].replace(An, function(h, l, u, m, f, p) {
1047
1010
  if (l)
1048
- t.minimumIntegerDigits = h.length;
1011
+ t.minimumIntegerDigits = u.length;
1049
1012
  else {
1050
- if (d && f)
1013
+ if (m && f)
1051
1014
  throw new Error("We currently do not support maximum integer digits");
1052
1015
  if (p)
1053
1016
  throw new Error("We currently do not support exact integer digits");
@@ -1056,32 +1019,32 @@ function kn(e) {
1056
1019
  });
1057
1020
  continue;
1058
1021
  }
1059
- if (sr.test(i.stem)) {
1022
+ if (er.test(i.stem)) {
1060
1023
  t.minimumIntegerDigits = i.stem.length;
1061
1024
  continue;
1062
1025
  }
1063
- if (vt.test(i.stem)) {
1026
+ if (mt.test(i.stem)) {
1064
1027
  if (i.options.length > 1)
1065
1028
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1066
- i.stem.replace(vt, function(u, l, h, d, f, p) {
1067
- return h === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1029
+ i.stem.replace(mt, function(h, l, u, m, f, p) {
1030
+ return u === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1068
1031
  });
1069
- var o = i.options[0];
1070
- o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), _t(o)));
1032
+ var s = i.options[0];
1033
+ s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), dt(s)));
1071
1034
  continue;
1072
1035
  }
1073
- if (or.test(i.stem)) {
1074
- t = E(E({}, t), _t(i.stem));
1036
+ if (Kt.test(i.stem)) {
1037
+ t = v(v({}, t), dt(i.stem));
1075
1038
  continue;
1076
1039
  }
1077
- var s = ar(i.stem);
1078
- s && (t = E(E({}, t), s));
1079
- var a = Un(i.stem);
1080
- a && (t = E(E({}, t), a));
1040
+ var o = tr(i.stem);
1041
+ o && (t = v(v({}, t), o));
1042
+ var a = In(i.stem);
1043
+ a && (t = v(v({}, t), a));
1081
1044
  }
1082
1045
  return t;
1083
1046
  }
1084
- var Ce = {
1047
+ var xe = {
1085
1048
  "001": [
1086
1049
  "H",
1087
1050
  "h"
@@ -2496,22 +2459,22 @@ var Ce = {
2496
2459
  "h"
2497
2460
  ]
2498
2461
  };
2499
- function $n(e, t) {
2462
+ function Mn(e, t) {
2500
2463
  for (var r = "", n = 0; n < e.length; n++) {
2501
2464
  var i = e.charAt(n);
2502
2465
  if (i === "j") {
2503
- for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2504
- o++, n++;
2505
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = jn(t);
2466
+ for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2467
+ s++, n++;
2468
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", l = Nn(t);
2506
2469
  for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
2507
- r += u;
2508
- for (; s-- > 0; )
2470
+ r += h;
2471
+ for (; o-- > 0; )
2509
2472
  r = l + r;
2510
2473
  } else i === "J" ? r += "H" : r += i;
2511
2474
  }
2512
2475
  return r;
2513
2476
  }
2514
- function jn(e) {
2477
+ function Nn(e) {
2515
2478
  var t = e.hourCycle;
2516
2479
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2517
2480
  e.hourCycles && // @ts-ignore
@@ -2530,23 +2493,23 @@ function jn(e) {
2530
2493
  }
2531
2494
  var r = e.language, n;
2532
2495
  r !== "root" && (n = e.maximize().region);
2533
- var i = Ce[n || ""] || Ce[r || ""] || Ce["".concat(r, "-001")] || Ce["001"];
2496
+ var i = xe[n || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
2534
2497
  return i[0];
2535
2498
  }
2536
- var ke, Vn = new RegExp("^".concat(ir.source, "*")), Xn = new RegExp("".concat(ir.source, "*$"));
2537
- function v(e, t) {
2499
+ var Ge, Pn = new RegExp("^".concat(Yt.source, "*")), On = new RegExp("".concat(Yt.source, "*$"));
2500
+ function _(e, t) {
2538
2501
  return { start: e, end: t };
2539
2502
  }
2540
- var Wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), zn = !!String.fromCodePoint, Zn = !!Object.fromEntries, Qn = !!String.prototype.codePointAt, qn = !!String.prototype.trimStart, Jn = !!String.prototype.trimEnd, Yn = !!Number.isSafeInteger, Kn = Yn ? Number.isSafeInteger : function(e) {
2503
+ var Ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, Rn = !!Object.fromEntries, Dn = !!String.prototype.codePointAt, Gn = !!String.prototype.trimStart, Un = !!String.prototype.trimEnd, kn = !!Number.isSafeInteger, $n = kn ? Number.isSafeInteger : function(e) {
2541
2504
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2542
- }, Ze = !0;
2505
+ }, We = !0;
2543
2506
  try {
2544
- var ei = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2545
- Ze = ((ke = ei.exec("a")) === null || ke === void 0 ? void 0 : ke[0]) === "a";
2546
- } catch (e) {
2547
- Ze = !1;
2507
+ var jn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2508
+ We = ((Ge = jn.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
2509
+ } catch {
2510
+ We = !1;
2548
2511
  }
2549
- var xt = Wn ? (
2512
+ var gt = Ln ? (
2550
2513
  // Native
2551
2514
  function(t, r, n) {
2552
2515
  return t.startsWith(r, n);
@@ -2556,31 +2519,31 @@ var xt = Wn ? (
2556
2519
  function(t, r, n) {
2557
2520
  return t.slice(n, n + r.length) === r;
2558
2521
  }
2559
- ), Qe = zn ? String.fromCodePoint : (
2522
+ ), ze = Fn ? String.fromCodePoint : (
2560
2523
  // IE11
2561
2524
  function() {
2562
2525
  for (var t = [], r = 0; r < arguments.length; r++)
2563
2526
  t[r] = arguments[r];
2564
- for (var n = "", i = t.length, o = 0, s; i > o; ) {
2565
- if (s = t[o++], s > 1114111)
2566
- throw RangeError(s + " is not a valid code point");
2567
- n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2527
+ for (var n = "", i = t.length, s = 0, o; i > s; ) {
2528
+ if (o = t[s++], o > 1114111)
2529
+ throw RangeError(o + " is not a valid code point");
2530
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2568
2531
  }
2569
2532
  return n;
2570
2533
  }
2571
- ), Ct = (
2534
+ ), bt = (
2572
2535
  // native
2573
- Zn ? Object.fromEntries : (
2536
+ Rn ? Object.fromEntries : (
2574
2537
  // Ponyfill
2575
2538
  function(t) {
2576
2539
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
2577
- var o = i[n], s = o[0], a = o[1];
2578
- r[s] = a;
2540
+ var s = i[n], o = s[0], a = s[1];
2541
+ r[o] = a;
2579
2542
  }
2580
2543
  return r;
2581
2544
  }
2582
2545
  )
2583
- ), lr = Qn ? (
2546
+ ), rr = Dn ? (
2584
2547
  // Native
2585
2548
  function(t, r) {
2586
2549
  return t.codePointAt(r);
@@ -2590,11 +2553,11 @@ var xt = Wn ? (
2590
2553
  function(t, r) {
2591
2554
  var n = t.length;
2592
2555
  if (!(r < 0 || r >= n)) {
2593
- var i = t.charCodeAt(r), o;
2594
- return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2556
+ var i = t.charCodeAt(r), s;
2557
+ return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
2595
2558
  }
2596
2559
  }
2597
- ), ti = qn ? (
2560
+ ), Vn = Gn ? (
2598
2561
  // Native
2599
2562
  function(t) {
2600
2563
  return t.trimStart();
@@ -2602,9 +2565,9 @@ var xt = Wn ? (
2602
2565
  ) : (
2603
2566
  // Ponyfill
2604
2567
  function(t) {
2605
- return t.replace(Vn, "");
2568
+ return t.replace(Pn, "");
2606
2569
  }
2607
- ), ri = Jn ? (
2570
+ ), Xn = Un ? (
2608
2571
  // Native
2609
2572
  function(t) {
2610
2573
  return t.trimEnd();
@@ -2612,32 +2575,32 @@ var xt = Wn ? (
2612
2575
  ) : (
2613
2576
  // Ponyfill
2614
2577
  function(t) {
2615
- return t.replace(Xn, "");
2578
+ return t.replace(On, "");
2616
2579
  }
2617
2580
  );
2618
- function ur(e, t) {
2581
+ function nr(e, t) {
2619
2582
  return new RegExp(e, t);
2620
2583
  }
2621
- var qe;
2622
- if (Ze) {
2623
- var wt = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2624
- qe = function(t, r) {
2584
+ var Ze;
2585
+ if (We) {
2586
+ var yt = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2587
+ Ze = function(t, r) {
2625
2588
  var n;
2626
- wt.lastIndex = r;
2627
- var i = wt.exec(t);
2589
+ yt.lastIndex = r;
2590
+ var i = yt.exec(t);
2628
2591
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2629
2592
  };
2630
2593
  } else
2631
- qe = function(t, r) {
2594
+ Ze = function(t, r) {
2632
2595
  for (var n = []; ; ) {
2633
- var i = lr(t, r);
2634
- if (i === void 0 || hr(i) || si(i))
2596
+ var i = rr(t, r);
2597
+ if (i === void 0 || ir(i) || Qn(i))
2635
2598
  break;
2636
2599
  n.push(i), r += i >= 65536 ? 2 : 1;
2637
2600
  }
2638
- return Qe.apply(void 0, n);
2601
+ return ze.apply(void 0, n);
2639
2602
  };
2640
- var ni = (
2603
+ var Wn = (
2641
2604
  /** @class */
2642
2605
  function() {
2643
2606
  function e(t, r) {
@@ -2649,35 +2612,35 @@ var ni = (
2649
2612
  return this.parseMessage(0, "", !1);
2650
2613
  }, e.prototype.parseMessage = function(t, r, n) {
2651
2614
  for (var i = []; !this.isEOF(); ) {
2652
- var o = this.char();
2653
- if (o === 123) {
2654
- var s = this.parseArgument(t, n);
2655
- if (s.err)
2656
- return s;
2657
- i.push(s.val);
2615
+ var s = this.char();
2616
+ if (s === 123) {
2617
+ var o = this.parseArgument(t, n);
2618
+ if (o.err)
2619
+ return o;
2620
+ i.push(o.val);
2658
2621
  } else {
2659
- if (o === 125 && t > 0)
2622
+ if (s === 125 && t > 0)
2660
2623
  break;
2661
- if (o === 35 && (r === "plural" || r === "selectordinal")) {
2624
+ if (s === 35 && (r === "plural" || r === "selectordinal")) {
2662
2625
  var a = this.clonePosition();
2663
2626
  this.bump(), i.push({
2664
2627
  type: T.pound,
2665
- location: v(a, this.clonePosition())
2628
+ location: _(a, this.clonePosition())
2666
2629
  });
2667
- } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2630
+ } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
2668
2631
  if (n)
2669
2632
  break;
2670
- return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
2671
- } else if (o === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
2672
- var s = this.parseTag(t, r);
2673
- if (s.err)
2674
- return s;
2675
- i.push(s.val);
2633
+ return this.error(y.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
2634
+ } else if (s === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
2635
+ var o = this.parseTag(t, r);
2636
+ if (o.err)
2637
+ return o;
2638
+ i.push(o.val);
2676
2639
  } else {
2677
- var s = this.parseLiteral(t, r);
2678
- if (s.err)
2679
- return s;
2680
- i.push(s.val);
2640
+ var o = this.parseLiteral(t, r);
2641
+ if (o.err)
2642
+ return o;
2643
+ i.push(o.val);
2681
2644
  }
2682
2645
  }
2683
2646
  }
@@ -2691,49 +2654,49 @@ var ni = (
2691
2654
  val: {
2692
2655
  type: T.literal,
2693
2656
  value: "<".concat(i, "/>"),
2694
- location: v(n, this.clonePosition())
2657
+ location: _(n, this.clonePosition())
2695
2658
  },
2696
2659
  err: null
2697
2660
  };
2698
2661
  if (this.bumpIf(">")) {
2699
- var o = this.parseMessage(t + 1, r, !0);
2700
- if (o.err)
2701
- return o;
2702
- var s = o.val, a = this.clonePosition();
2662
+ var s = this.parseMessage(t + 1, r, !0);
2663
+ if (s.err)
2664
+ return s;
2665
+ var o = s.val, a = this.clonePosition();
2703
2666
  if (this.bumpIf("</")) {
2704
- if (this.isEOF() || !Je(this.char()))
2705
- return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
2706
- var u = this.clonePosition(), l = this.parseTagName();
2707
- return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2667
+ if (this.isEOF() || !Qe(this.char()))
2668
+ return this.error(y.INVALID_TAG, _(a, this.clonePosition()));
2669
+ var h = this.clonePosition(), l = this.parseTagName();
2670
+ return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2708
2671
  val: {
2709
2672
  type: T.tag,
2710
2673
  value: i,
2711
- children: s,
2712
- location: v(n, this.clonePosition())
2674
+ children: o,
2675
+ location: _(n, this.clonePosition())
2713
2676
  },
2714
2677
  err: null
2715
- } : this.error(y.INVALID_TAG, v(a, this.clonePosition())));
2678
+ } : this.error(y.INVALID_TAG, _(a, this.clonePosition())));
2716
2679
  } else
2717
- return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
2680
+ return this.error(y.UNCLOSED_TAG, _(n, this.clonePosition()));
2718
2681
  } else
2719
- return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
2682
+ return this.error(y.INVALID_TAG, _(n, this.clonePosition()));
2720
2683
  }, e.prototype.parseTagName = function() {
2721
2684
  var t = this.offset();
2722
- for (this.bump(); !this.isEOF() && oi(this.char()); )
2685
+ for (this.bump(); !this.isEOF() && Zn(this.char()); )
2723
2686
  this.bump();
2724
2687
  return this.message.slice(t, this.offset());
2725
2688
  }, e.prototype.parseLiteral = function(t, r) {
2726
2689
  for (var n = this.clonePosition(), i = ""; ; ) {
2727
- var o = this.tryParseQuote(r);
2728
- if (o) {
2729
- i += o;
2730
- continue;
2731
- }
2732
- var s = this.tryParseUnquoted(t, r);
2690
+ var s = this.tryParseQuote(r);
2733
2691
  if (s) {
2734
2692
  i += s;
2735
2693
  continue;
2736
2694
  }
2695
+ var o = this.tryParseUnquoted(t, r);
2696
+ if (o) {
2697
+ i += o;
2698
+ continue;
2699
+ }
2737
2700
  var a = this.tryParseLeftAngleBracket();
2738
2701
  if (a) {
2739
2702
  i += a;
@@ -2741,14 +2704,14 @@ var ni = (
2741
2704
  }
2742
2705
  break;
2743
2706
  }
2744
- var u = v(n, this.clonePosition());
2707
+ var h = _(n, this.clonePosition());
2745
2708
  return {
2746
- val: { type: T.literal, value: i, location: u },
2709
+ val: { type: T.literal, value: i, location: h },
2747
2710
  err: null
2748
2711
  };
2749
2712
  }, e.prototype.tryParseLeftAngleBracket = function() {
2750
2713
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2751
- !ii(this.peek() || 0)) ? (this.bump(), "<") : null;
2714
+ !zn(this.peek() || 0)) ? (this.bump(), "<") : null;
2752
2715
  }, e.prototype.tryParseQuote = function(t) {
2753
2716
  if (this.isEOF() || this.char() !== 39)
2754
2717
  return null;
@@ -2782,23 +2745,23 @@ var ni = (
2782
2745
  r.push(n);
2783
2746
  this.bump();
2784
2747
  }
2785
- return Qe.apply(void 0, r);
2748
+ return ze.apply(void 0, r);
2786
2749
  }, e.prototype.tryParseUnquoted = function(t, r) {
2787
2750
  if (this.isEOF())
2788
2751
  return null;
2789
2752
  var n = this.char();
2790
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Qe(n));
2753
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
2791
2754
  }, e.prototype.parseArgument = function(t, r) {
2792
2755
  var n = this.clonePosition();
2793
2756
  if (this.bump(), this.bumpSpace(), this.isEOF())
2794
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
2757
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
2795
2758
  if (this.char() === 125)
2796
- return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
2759
+ return this.bump(), this.error(y.EMPTY_ARGUMENT, _(n, this.clonePosition()));
2797
2760
  var i = this.parseIdentifierIfPossible().value;
2798
2761
  if (!i)
2799
- return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
2762
+ return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2800
2763
  if (this.bumpSpace(), this.isEOF())
2801
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
2764
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
2802
2765
  switch (this.char()) {
2803
2766
  case 125:
2804
2767
  return this.bump(), {
@@ -2806,25 +2769,25 @@ var ni = (
2806
2769
  type: T.argument,
2807
2770
  // value does not include the opening and closing braces.
2808
2771
  value: i,
2809
- location: v(n, this.clonePosition())
2772
+ location: _(n, this.clonePosition())
2810
2773
  },
2811
2774
  err: null
2812
2775
  };
2813
2776
  case 44:
2814
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2777
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2815
2778
  default:
2816
- return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
2779
+ return this.error(y.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
2817
2780
  }
2818
2781
  }, e.prototype.parseIdentifierIfPossible = function() {
2819
- var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
2782
+ var t = this.clonePosition(), r = this.offset(), n = Ze(this.message, r), i = r + n.length;
2820
2783
  this.bumpTo(i);
2821
- var o = this.clonePosition(), s = v(t, o);
2822
- return { value: n, location: s };
2784
+ var s = this.clonePosition(), o = _(t, s);
2785
+ return { value: n, location: o };
2823
2786
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2824
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2787
+ var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2825
2788
  switch (a) {
2826
2789
  case "":
2827
- return this.error(y.EXPECT_ARGUMENT_TYPE, v(s, u));
2790
+ return this.error(y.EXPECT_ARGUMENT_TYPE, _(o, h));
2828
2791
  case "number":
2829
2792
  case "date":
2830
2793
  case "time": {
@@ -2832,40 +2795,40 @@ var ni = (
2832
2795
  var l = null;
2833
2796
  if (this.bumpIf(",")) {
2834
2797
  this.bumpSpace();
2835
- var h = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
2836
- if (d.err)
2837
- return d;
2838
- var f = ri(d.val);
2798
+ var u = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2799
+ if (m.err)
2800
+ return m;
2801
+ var f = Xn(m.val);
2839
2802
  if (f.length === 0)
2840
- return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
2841
- var p = v(h, this.clonePosition());
2803
+ return this.error(y.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
2804
+ var p = _(u, this.clonePosition());
2842
2805
  l = { style: f, styleLocation: p };
2843
2806
  }
2844
2807
  var g = this.tryParseArgumentClose(i);
2845
2808
  if (g.err)
2846
2809
  return g;
2847
- var b = v(i, this.clonePosition());
2848
- if (l && xt(l == null ? void 0 : l.style, "::", 0)) {
2849
- var m = ti(l.style.slice(2));
2810
+ var b = _(i, this.clonePosition());
2811
+ if (l && gt(l?.style, "::", 0)) {
2812
+ var d = Vn(l.style.slice(2));
2850
2813
  if (a === "number") {
2851
- var d = this.parseNumberSkeletonFromString(m, l.styleLocation);
2852
- return d.err ? d : {
2853
- val: { type: T.number, value: n, location: b, style: d.val },
2814
+ var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
2815
+ return m.err ? m : {
2816
+ val: { type: T.number, value: n, location: b, style: m.val },
2854
2817
  err: null
2855
2818
  };
2856
2819
  } else {
2857
- if (m.length === 0)
2820
+ if (d.length === 0)
2858
2821
  return this.error(y.EXPECT_DATE_TIME_SKELETON, b);
2859
- var w = m;
2860
- this.locale && (w = $n(m, this.locale));
2822
+ var C = d;
2823
+ this.locale && (C = Mn(d, this.locale));
2861
2824
  var f = {
2862
- type: ie.dateTime,
2863
- pattern: w,
2825
+ type: re.dateTime,
2826
+ pattern: C,
2864
2827
  location: l.styleLocation,
2865
- parsedOptions: this.shouldParseSkeletons ? Ln(w) : {}
2866
- }, _ = a === "date" ? T.date : T.time;
2828
+ parsedOptions: this.shouldParseSkeletons ? wn(C) : {}
2829
+ }, x = a === "date" ? T.date : T.time;
2867
2830
  return {
2868
- val: { type: _, value: n, location: b, style: f },
2831
+ val: { type: x, value: n, location: b, style: f },
2869
2832
  err: null
2870
2833
  };
2871
2834
  }
@@ -2875,7 +2838,7 @@ var ni = (
2875
2838
  type: a === "number" ? T.number : a === "date" ? T.date : T.time,
2876
2839
  value: n,
2877
2840
  location: b,
2878
- style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
2841
+ style: (s = l?.style) !== null && s !== void 0 ? s : null
2879
2842
  },
2880
2843
  err: null
2881
2844
  };
@@ -2883,52 +2846,52 @@ var ni = (
2883
2846
  case "plural":
2884
2847
  case "selectordinal":
2885
2848
  case "select": {
2886
- var C = this.clonePosition();
2849
+ var S = this.clonePosition();
2887
2850
  if (this.bumpSpace(), !this.bumpIf(","))
2888
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(C, E({}, C)));
2851
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, v({}, S)));
2889
2852
  this.bumpSpace();
2890
- var P = this.parseIdentifierIfPossible(), O = 0;
2891
- if (a !== "select" && P.value === "offset") {
2853
+ var R = this.parseIdentifierIfPossible(), D = 0;
2854
+ if (a !== "select" && R.value === "offset") {
2892
2855
  if (!this.bumpIf(":"))
2893
- return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
2856
+ return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
2894
2857
  this.bumpSpace();
2895
- var d = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2896
- if (d.err)
2897
- return d;
2898
- this.bumpSpace(), P = this.parseIdentifierIfPossible(), O = d.val;
2858
+ var m = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2859
+ if (m.err)
2860
+ return m;
2861
+ this.bumpSpace(), R = this.parseIdentifierIfPossible(), D = m.val;
2899
2862
  }
2900
- var L = this.tryParsePluralOrSelectOptions(t, a, r, P);
2901
- if (L.err)
2902
- return L;
2863
+ var P = this.tryParsePluralOrSelectOptions(t, a, r, R);
2864
+ if (P.err)
2865
+ return P;
2903
2866
  var g = this.tryParseArgumentClose(i);
2904
2867
  if (g.err)
2905
2868
  return g;
2906
- var H = v(i, this.clonePosition());
2869
+ var w = _(i, this.clonePosition());
2907
2870
  return a === "select" ? {
2908
2871
  val: {
2909
2872
  type: T.select,
2910
2873
  value: n,
2911
- options: Ct(L.val),
2912
- location: H
2874
+ options: bt(P.val),
2875
+ location: w
2913
2876
  },
2914
2877
  err: null
2915
2878
  } : {
2916
2879
  val: {
2917
2880
  type: T.plural,
2918
2881
  value: n,
2919
- options: Ct(L.val),
2920
- offset: O,
2882
+ options: bt(P.val),
2883
+ offset: D,
2921
2884
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2922
- location: H
2885
+ location: w
2923
2886
  },
2924
2887
  err: null
2925
2888
  };
2926
2889
  }
2927
2890
  default:
2928
- return this.error(y.INVALID_ARGUMENT_TYPE, v(s, u));
2891
+ return this.error(y.INVALID_ARGUMENT_TYPE, _(o, h));
2929
2892
  }
2930
2893
  }, e.prototype.tryParseArgumentClose = function(t) {
2931
- return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2894
+ return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2932
2895
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2933
2896
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2934
2897
  var n = this.char();
@@ -2937,7 +2900,7 @@ var ni = (
2937
2900
  this.bump();
2938
2901
  var i = this.clonePosition();
2939
2902
  if (!this.bumpUntil("'"))
2940
- return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
2903
+ return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
2941
2904
  this.bump();
2942
2905
  break;
2943
2906
  }
@@ -2967,37 +2930,37 @@ var ni = (
2967
2930
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2968
2931
  var n = [];
2969
2932
  try {
2970
- n = Rn(t);
2971
- } catch (i) {
2933
+ n = Sn(t);
2934
+ } catch {
2972
2935
  return this.error(y.INVALID_NUMBER_SKELETON, r);
2973
2936
  }
2974
2937
  return {
2975
2938
  val: {
2976
- type: ie.number,
2939
+ type: re.number,
2977
2940
  tokens: n,
2978
2941
  location: r,
2979
- parsedOptions: this.shouldParseSkeletons ? kn(n) : {}
2942
+ parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
2980
2943
  },
2981
2944
  err: null
2982
2945
  };
2983
2946
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2984
- for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
2947
+ for (var s, o = !1, a = [], h = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
2985
2948
  if (l.length === 0) {
2986
- var d = this.clonePosition();
2949
+ var m = this.clonePosition();
2987
2950
  if (r !== "select" && this.bumpIf("=")) {
2988
2951
  var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
2989
2952
  if (f.err)
2990
2953
  return f;
2991
- h = v(d, this.clonePosition()), l = this.message.slice(d.offset, this.offset());
2954
+ u = _(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
2992
2955
  } else
2993
2956
  break;
2994
2957
  }
2995
- if (u.has(l))
2996
- return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2997
- l === "other" && (s = !0), this.bumpSpace();
2958
+ if (h.has(l))
2959
+ return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2960
+ l === "other" && (o = !0), this.bumpSpace();
2998
2961
  var p = this.clonePosition();
2999
2962
  if (!this.bumpIf("{"))
3000
- return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
2963
+ return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
3001
2964
  var g = this.parseMessage(t + 1, r, n);
3002
2965
  if (g.err)
3003
2966
  return g;
@@ -3008,23 +2971,23 @@ var ni = (
3008
2971
  l,
3009
2972
  {
3010
2973
  value: g.val,
3011
- location: v(p, this.clonePosition())
2974
+ location: _(p, this.clonePosition())
3012
2975
  }
3013
- ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
2976
+ ]), h.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, u = s.location;
3014
2977
  }
3015
- return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
2978
+ return a.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: a, err: null };
3016
2979
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3017
2980
  var n = 1, i = this.clonePosition();
3018
2981
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3019
- for (var o = !1, s = 0; !this.isEOF(); ) {
2982
+ for (var s = !1, o = 0; !this.isEOF(); ) {
3020
2983
  var a = this.char();
3021
2984
  if (a >= 48 && a <= 57)
3022
- o = !0, s = s * 10 + (a - 48), this.bump();
2985
+ s = !0, o = o * 10 + (a - 48), this.bump();
3023
2986
  else
3024
2987
  break;
3025
2988
  }
3026
- var u = v(i, this.clonePosition());
3027
- return o ? (s *= n, Kn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
2989
+ var h = _(i, this.clonePosition());
2990
+ return s ? (o *= n, $n(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
3028
2991
  }, e.prototype.offset = function() {
3029
2992
  return this.position.offset;
3030
2993
  }, e.prototype.isEOF = function() {
@@ -3039,7 +3002,7 @@ var ni = (
3039
3002
  var t = this.position.offset;
3040
3003
  if (t >= this.message.length)
3041
3004
  throw Error("out of bound");
3042
- var r = lr(this.message, t);
3005
+ var r = rr(this.message, t);
3043
3006
  if (r === void 0)
3044
3007
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3045
3008
  return r;
@@ -3058,7 +3021,7 @@ var ni = (
3058
3021
  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);
3059
3022
  }
3060
3023
  }, e.prototype.bumpIf = function(t) {
3061
- if (xt(this.message, t, this.offset())) {
3024
+ if (gt(this.message, t, this.offset())) {
3062
3025
  for (var r = 0; r < t.length; r++)
3063
3026
  this.bump();
3064
3027
  return !0;
@@ -3080,213 +3043,213 @@ var ni = (
3080
3043
  break;
3081
3044
  }
3082
3045
  }, e.prototype.bumpSpace = function() {
3083
- for (; !this.isEOF() && hr(this.char()); )
3046
+ for (; !this.isEOF() && ir(this.char()); )
3084
3047
  this.bump();
3085
3048
  }, e.prototype.peek = function() {
3086
3049
  if (this.isEOF())
3087
3050
  return null;
3088
3051
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3089
- return n != null ? n : null;
3052
+ return n ?? null;
3090
3053
  }, e;
3091
3054
  }()
3092
3055
  );
3093
- function Je(e) {
3056
+ function Qe(e) {
3094
3057
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3095
3058
  }
3096
- function ii(e) {
3097
- return Je(e) || e === 47;
3059
+ function zn(e) {
3060
+ return Qe(e) || e === 47;
3098
3061
  }
3099
- function oi(e) {
3062
+ function Zn(e) {
3100
3063
  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;
3101
3064
  }
3102
- function hr(e) {
3065
+ function ir(e) {
3103
3066
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3104
3067
  }
3105
- function si(e) {
3068
+ function Qn(e) {
3106
3069
  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;
3107
3070
  }
3108
- function Ye(e) {
3071
+ function qe(e) {
3109
3072
  e.forEach(function(t) {
3110
- if (delete t.location, er(t) || tr(t))
3073
+ if (delete t.location, Zt(t) || Qt(t))
3111
3074
  for (var r in t.options)
3112
- delete t.options[r].location, Ye(t.options[r].value);
3113
- else Jt(t) && nr(t.style) || (Yt(t) || Kt(t)) && ze(t.style) ? delete t.style.location : rr(t) && Ye(t.children);
3075
+ delete t.options[r].location, qe(t.options[r].value);
3076
+ else Xt(t) && Jt(t.style) || (Wt(t) || zt(t)) && Xe(t.style) ? delete t.style.location : qt(t) && qe(t.children);
3114
3077
  });
3115
3078
  }
3116
- function ai(e, t) {
3117
- t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3118
- var r = new ni(e, t).parse();
3079
+ function qn(e, t) {
3080
+ t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3081
+ var r = new Wn(e, t).parse();
3119
3082
  if (r.err) {
3120
3083
  var n = SyntaxError(y[r.err.kind]);
3121
3084
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3122
3085
  }
3123
- return t != null && t.captureLocation || Ye(r.val), r.val;
3086
+ return t?.captureLocation || qe(r.val), r.val;
3124
3087
  }
3125
- var oe;
3088
+ var ne;
3126
3089
  (function(e) {
3127
3090
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3128
- })(oe || (oe = {}));
3129
- var Ne = (
3091
+ })(ne || (ne = {}));
3092
+ var Me = (
3130
3093
  /** @class */
3131
3094
  function(e) {
3132
- Me(t, e);
3095
+ Be(t, e);
3133
3096
  function t(r, n, i) {
3134
- var o = e.call(this, r) || this;
3135
- return o.code = n, o.originalMessage = i, o;
3097
+ var s = e.call(this, r) || this;
3098
+ return s.code = n, s.originalMessage = i, s;
3136
3099
  }
3137
3100
  return t.prototype.toString = function() {
3138
3101
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3139
3102
  }, t;
3140
3103
  }(Error)
3141
- ), Ht = (
3104
+ ), _t = (
3142
3105
  /** @class */
3143
3106
  function(e) {
3144
- Me(t, e);
3145
- function t(r, n, i, o) {
3146
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), oe.INVALID_VALUE, o) || this;
3107
+ Be(t, e);
3108
+ 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('", "'), '"'), ne.INVALID_VALUE, s) || this;
3147
3110
  }
3148
3111
  return t;
3149
- }(Ne)
3150
- ), li = (
3112
+ }(Me)
3113
+ ), Jn = (
3151
3114
  /** @class */
3152
3115
  function(e) {
3153
- Me(t, e);
3116
+ Be(t, e);
3154
3117
  function t(r, n, i) {
3155
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), oe.INVALID_VALUE, i) || this;
3118
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
3156
3119
  }
3157
3120
  return t;
3158
- }(Ne)
3159
- ), ui = (
3121
+ }(Me)
3122
+ ), Yn = (
3160
3123
  /** @class */
3161
3124
  function(e) {
3162
- Me(t, e);
3125
+ Be(t, e);
3163
3126
  function t(r, n) {
3164
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), oe.MISSING_VALUE, n) || this;
3127
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
3165
3128
  }
3166
3129
  return t;
3167
- }(Ne)
3168
- ), F;
3130
+ }(Me)
3131
+ ), O;
3169
3132
  (function(e) {
3170
3133
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3171
- })(F || (F = {}));
3172
- function hi(e) {
3134
+ })(O || (O = {}));
3135
+ function Kn(e) {
3173
3136
  return e.length < 2 ? e : e.reduce(function(t, r) {
3174
3137
  var n = t[t.length - 1];
3175
- return !n || n.type !== F.literal || r.type !== F.literal ? t.push(r) : n.value += r.value, t;
3138
+ return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3176
3139
  }, []);
3177
3140
  }
3178
- function ci(e) {
3141
+ function ei(e) {
3179
3142
  return typeof e == "function";
3180
3143
  }
3181
- function He(e, t, r, n, i, o, s) {
3182
- if (e.length === 1 && yt(e[0]))
3144
+ function we(e, t, r, n, i, s, o) {
3145
+ if (e.length === 1 && ft(e[0]))
3183
3146
  return [
3184
3147
  {
3185
- type: F.literal,
3148
+ type: O.literal,
3186
3149
  value: e[0].value
3187
3150
  }
3188
3151
  ];
3189
- for (var a = [], u = 0, l = e; u < l.length; u++) {
3190
- var h = l[u];
3191
- if (yt(h)) {
3152
+ for (var a = [], h = 0, l = e; h < l.length; h++) {
3153
+ var u = l[h];
3154
+ if (ft(u)) {
3192
3155
  a.push({
3193
- type: F.literal,
3194
- value: h.value
3156
+ type: O.literal,
3157
+ value: u.value
3195
3158
  });
3196
3159
  continue;
3197
3160
  }
3198
- if (Pn(h)) {
3199
- typeof o == "number" && a.push({
3200
- type: F.literal,
3201
- value: r.getNumberFormat(t).format(o)
3161
+ if (xn(u)) {
3162
+ typeof s == "number" && a.push({
3163
+ type: O.literal,
3164
+ value: r.getNumberFormat(t).format(s)
3202
3165
  });
3203
3166
  continue;
3204
3167
  }
3205
- var d = h.value;
3206
- if (!(i && d in i))
3207
- throw new ui(d, s);
3208
- var f = i[d];
3209
- if (Nn(h)) {
3168
+ var m = u.value;
3169
+ if (!(i && m in i))
3170
+ throw new Yn(m, o);
3171
+ var f = i[m];
3172
+ if (En(u)) {
3210
3173
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3211
- type: typeof f == "string" ? F.literal : F.object,
3174
+ type: typeof f == "string" ? O.literal : O.object,
3212
3175
  value: f
3213
3176
  });
3214
3177
  continue;
3215
3178
  }
3216
- if (Yt(h)) {
3217
- var p = typeof h.style == "string" ? n.date[h.style] : ze(h.style) ? h.style.parsedOptions : void 0;
3179
+ if (Wt(u)) {
3180
+ var p = typeof u.style == "string" ? n.date[u.style] : Xe(u.style) ? u.style.parsedOptions : void 0;
3218
3181
  a.push({
3219
- type: F.literal,
3182
+ type: O.literal,
3220
3183
  value: r.getDateTimeFormat(t, p).format(f)
3221
3184
  });
3222
3185
  continue;
3223
3186
  }
3224
- if (Kt(h)) {
3225
- var p = typeof h.style == "string" ? n.time[h.style] : ze(h.style) ? h.style.parsedOptions : n.time.medium;
3187
+ if (zt(u)) {
3188
+ var p = typeof u.style == "string" ? n.time[u.style] : Xe(u.style) ? u.style.parsedOptions : n.time.medium;
3226
3189
  a.push({
3227
- type: F.literal,
3190
+ type: O.literal,
3228
3191
  value: r.getDateTimeFormat(t, p).format(f)
3229
3192
  });
3230
3193
  continue;
3231
3194
  }
3232
- if (Jt(h)) {
3233
- var p = typeof h.style == "string" ? n.number[h.style] : nr(h.style) ? h.style.parsedOptions : void 0;
3195
+ if (Xt(u)) {
3196
+ var p = typeof u.style == "string" ? n.number[u.style] : Jt(u.style) ? u.style.parsedOptions : void 0;
3234
3197
  p && p.scale && (f = f * (p.scale || 1)), a.push({
3235
- type: F.literal,
3198
+ type: O.literal,
3236
3199
  value: r.getNumberFormat(t, p).format(f)
3237
3200
  });
3238
3201
  continue;
3239
3202
  }
3240
- if (rr(h)) {
3241
- var g = h.children, b = h.value, m = i[b];
3242
- if (!ci(m))
3243
- throw new li(b, "function", s);
3244
- var w = He(g, t, r, n, i, o), _ = m(w.map(function(O) {
3245
- return O.value;
3203
+ if (qt(u)) {
3204
+ var g = u.children, b = u.value, d = i[b];
3205
+ if (!ei(d))
3206
+ throw new Jn(b, "function", o);
3207
+ var C = we(g, t, r, n, i, s), x = d(C.map(function(D) {
3208
+ return D.value;
3246
3209
  }));
3247
- Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(O) {
3210
+ Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(D) {
3248
3211
  return {
3249
- type: typeof O == "string" ? F.literal : F.object,
3250
- value: O
3212
+ type: typeof D == "string" ? O.literal : O.object,
3213
+ value: D
3251
3214
  };
3252
3215
  }));
3253
3216
  }
3254
- if (er(h)) {
3255
- var C = h.options[f] || h.options.other;
3256
- if (!C)
3257
- throw new Ht(h.value, f, Object.keys(h.options), s);
3258
- a.push.apply(a, He(C.value, t, r, n, i));
3217
+ if (Zt(u)) {
3218
+ var S = u.options[f] || u.options.other;
3219
+ if (!S)
3220
+ throw new _t(u.value, f, Object.keys(u.options), o);
3221
+ a.push.apply(a, we(S.value, t, r, n, i));
3259
3222
  continue;
3260
3223
  }
3261
- if (tr(h)) {
3262
- var C = h.options["=".concat(f)];
3263
- if (!C) {
3224
+ if (Qt(u)) {
3225
+ var S = u.options["=".concat(f)];
3226
+ if (!S) {
3264
3227
  if (!Intl.PluralRules)
3265
- throw new Ne(`Intl.PluralRules is not available in this environment.
3228
+ throw new Me(`Intl.PluralRules is not available in this environment.
3266
3229
  Try polyfilling it using "@formatjs/intl-pluralrules"
3267
- `, oe.MISSING_INTL_API, s);
3268
- var P = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3269
- C = h.options[P] || h.options.other;
3230
+ `, ne.MISSING_INTL_API, o);
3231
+ var R = r.getPluralRules(t, { type: u.pluralType }).select(f - (u.offset || 0));
3232
+ S = u.options[R] || u.options.other;
3270
3233
  }
3271
- if (!C)
3272
- throw new Ht(h.value, f, Object.keys(h.options), s);
3273
- a.push.apply(a, He(C.value, t, r, n, i, f - (h.offset || 0)));
3234
+ if (!S)
3235
+ throw new _t(u.value, f, Object.keys(u.options), o);
3236
+ a.push.apply(a, we(S.value, t, r, n, i, f - (u.offset || 0)));
3274
3237
  continue;
3275
3238
  }
3276
3239
  }
3277
- return hi(a);
3240
+ return Kn(a);
3278
3241
  }
3279
- function fi(e, t) {
3280
- return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3281
- return r[n] = E(E({}, e[n]), t[n] || {}), r;
3242
+ function ti(e, t) {
3243
+ return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3244
+ return r[n] = v(v({}, e[n]), t[n] || {}), r;
3282
3245
  }, {})) : e;
3283
3246
  }
3284
- function di(e, t) {
3247
+ function ri(e, t) {
3285
3248
  return t ? Object.keys(e).reduce(function(r, n) {
3286
- return r[n] = fi(e[n], t[n]), r;
3287
- }, E({}, e)) : e;
3249
+ return r[n] = ti(e[n], t[n]), r;
3250
+ }, v({}, e)) : e;
3288
3251
  }
3289
- function $e(e) {
3252
+ function Ue(e) {
3290
3253
  return {
3291
3254
  create: function() {
3292
3255
  return {
@@ -3300,77 +3263,77 @@ function $e(e) {
3300
3263
  }
3301
3264
  };
3302
3265
  }
3303
- function mi(e) {
3266
+ function ni(e) {
3304
3267
  return e === void 0 && (e = {
3305
3268
  number: {},
3306
3269
  dateTime: {},
3307
3270
  pluralRules: {}
3308
3271
  }), {
3309
- getNumberFormat: Ge(function() {
3272
+ getNumberFormat: Re(function() {
3310
3273
  for (var t, r = [], n = 0; n < arguments.length; n++)
3311
3274
  r[n] = arguments[n];
3312
- return new ((t = Intl.NumberFormat).bind.apply(t, De([void 0], r, !1)))();
3275
+ return new ((t = Intl.NumberFormat).bind.apply(t, Fe([void 0], r, !1)))();
3313
3276
  }, {
3314
- cache: $e(e.number),
3315
- strategy: Ue.variadic
3277
+ cache: Ue(e.number),
3278
+ strategy: De.variadic
3316
3279
  }),
3317
- getDateTimeFormat: Ge(function() {
3280
+ getDateTimeFormat: Re(function() {
3318
3281
  for (var t, r = [], n = 0; n < arguments.length; n++)
3319
3282
  r[n] = arguments[n];
3320
- return new ((t = Intl.DateTimeFormat).bind.apply(t, De([void 0], r, !1)))();
3283
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Fe([void 0], r, !1)))();
3321
3284
  }, {
3322
- cache: $e(e.dateTime),
3323
- strategy: Ue.variadic
3285
+ cache: Ue(e.dateTime),
3286
+ strategy: De.variadic
3324
3287
  }),
3325
- getPluralRules: Ge(function() {
3288
+ getPluralRules: Re(function() {
3326
3289
  for (var t, r = [], n = 0; n < arguments.length; n++)
3327
3290
  r[n] = arguments[n];
3328
- return new ((t = Intl.PluralRules).bind.apply(t, De([void 0], r, !1)))();
3291
+ return new ((t = Intl.PluralRules).bind.apply(t, Fe([void 0], r, !1)))();
3329
3292
  }, {
3330
- cache: $e(e.pluralRules),
3331
- strategy: Ue.variadic
3293
+ cache: Ue(e.pluralRules),
3294
+ strategy: De.variadic
3332
3295
  })
3333
3296
  };
3334
3297
  }
3335
- var pi = (
3298
+ var ii = (
3336
3299
  /** @class */
3337
3300
  function() {
3338
3301
  function e(t, r, n, i) {
3339
3302
  r === void 0 && (r = e.defaultLocale);
3340
- var o = this;
3303
+ var s = this;
3341
3304
  if (this.formatterCache = {
3342
3305
  number: {},
3343
3306
  dateTime: {},
3344
3307
  pluralRules: {}
3345
- }, this.format = function(u) {
3346
- var l = o.formatToParts(u);
3308
+ }, this.format = function(h) {
3309
+ var l = s.formatToParts(h);
3347
3310
  if (l.length === 1)
3348
3311
  return l[0].value;
3349
- var h = l.reduce(function(d, f) {
3350
- return !d.length || f.type !== F.literal || typeof d[d.length - 1] != "string" ? d.push(f.value) : d[d.length - 1] += f.value, d;
3312
+ var u = l.reduce(function(m, f) {
3313
+ return !m.length || f.type !== O.literal || typeof m[m.length - 1] != "string" ? m.push(f.value) : m[m.length - 1] += f.value, m;
3351
3314
  }, []);
3352
- return h.length <= 1 ? h[0] || "" : h;
3353
- }, this.formatToParts = function(u) {
3354
- return He(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
3315
+ return u.length <= 1 ? u[0] || "" : u;
3316
+ }, this.formatToParts = function(h) {
3317
+ return we(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
3355
3318
  }, this.resolvedOptions = function() {
3356
- var u;
3319
+ var h;
3357
3320
  return {
3358
- locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3321
+ locale: ((h = s.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3359
3322
  };
3360
3323
  }, this.getAst = function() {
3361
- return o.ast;
3324
+ return s.ast;
3362
3325
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3363
3326
  if (this.message = t, !e.__parse)
3364
3327
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3365
- var s = i || {};
3366
- s.formatters;
3367
- var a = wn(s, ["formatters"]);
3368
- this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
3328
+ var o = i || {};
3329
+ o.formatters;
3330
+ var a = mn(o, ["formatters"]);
3331
+ this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
3369
3332
  } else
3370
3333
  this.ast = t;
3371
3334
  if (!Array.isArray(this.ast))
3372
3335
  throw new TypeError("A message must be provided as a String or AST.");
3373
- this.formats = di(e.formats, n), this.formatters = i && i.formatters || mi(this.formatterCache);
3336
+ this.formats = ri(e.formats, n), this.formatters = i && i.formatters || ni(this.formatterCache);
3374
3337
  }
3375
3338
  return Object.defineProperty(e, "defaultLocale", {
3376
3339
  get: function() {
@@ -3379,11 +3342,11 @@ var pi = (
3379
3342
  enumerable: !1,
3380
3343
  configurable: !0
3381
3344
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3382
- if (typeof Intl.Locale != "undefined") {
3345
+ if (!(typeof Intl.Locale > "u")) {
3383
3346
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3384
3347
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3385
3348
  }
3386
- }, e.__parse = ai, e.formats = {
3349
+ }, e.__parse = qn, e.formats = {
3387
3350
  number: {
3388
3351
  integer: {
3389
3352
  maximumFractionDigits: 0
@@ -3444,7 +3407,7 @@ var pi = (
3444
3407
  }, e;
3445
3408
  }()
3446
3409
  );
3447
- function gi(e, t) {
3410
+ function oi(e, t) {
3448
3411
  if (t == null)
3449
3412
  return;
3450
3413
  if (t in e)
@@ -3454,9 +3417,9 @@ function gi(e, t) {
3454
3417
  for (let i = 0; i < r.length; i++)
3455
3418
  if (typeof n == "object") {
3456
3419
  if (i > 0) {
3457
- const o = r.slice(i, r.length).join(".");
3458
- if (o in n) {
3459
- n = n[o];
3420
+ const s = r.slice(i, r.length).join(".");
3421
+ if (s in n) {
3422
+ n = n[s];
3460
3423
  break;
3461
3424
  }
3462
3425
  }
@@ -3465,92 +3428,92 @@ function gi(e, t) {
3465
3428
  n = void 0;
3466
3429
  return n;
3467
3430
  }
3468
- const X = {}, bi = (e, t, r) => r && (t in X || (X[t] = {}), e in X[t] || (X[t][e] = r), r), cr = (e, t) => {
3431
+ const V = {}, si = (e, t, r) => r && (t in V || (V[t] = {}), e in V[t] || (V[t][e] = r), r), or = (e, t) => {
3469
3432
  if (t == null)
3470
3433
  return;
3471
- if (t in X && e in X[t])
3472
- return X[t][e];
3473
- const r = Pe(t);
3434
+ if (t in V && e in V[t])
3435
+ return V[t][e];
3436
+ const r = Ne(t);
3474
3437
  for (let n = 0; n < r.length; n++) {
3475
- const i = r[n], o = vi(i, e);
3476
- if (o)
3477
- return bi(e, t, o);
3438
+ const i = r[n], s = li(i, e);
3439
+ if (s)
3440
+ return si(e, t, s);
3478
3441
  }
3479
3442
  };
3480
- let it;
3481
- const le = Be({});
3482
- function yi(e) {
3483
- return it[e] || null;
3443
+ let rt;
3444
+ const se = Ie({});
3445
+ function ai(e) {
3446
+ return rt[e] || null;
3484
3447
  }
3485
- function fr(e) {
3486
- return e in it;
3448
+ function sr(e) {
3449
+ return e in rt;
3487
3450
  }
3488
- function vi(e, t) {
3489
- if (!fr(e))
3451
+ function li(e, t) {
3452
+ if (!sr(e))
3490
3453
  return null;
3491
- const r = yi(e);
3492
- return gi(r, t);
3454
+ const r = ai(e);
3455
+ return oi(r, t);
3493
3456
  }
3494
- function _i(e) {
3457
+ function ui(e) {
3495
3458
  if (e == null)
3496
3459
  return;
3497
- const t = Pe(e);
3460
+ const t = Ne(e);
3498
3461
  for (let r = 0; r < t.length; r++) {
3499
3462
  const n = t[r];
3500
- if (fr(n))
3463
+ if (sr(n))
3501
3464
  return n;
3502
3465
  }
3503
3466
  }
3504
- function dr(e, ...t) {
3505
- delete X[e], le.update((r) => (r[e] = Cn.all([r[e] || {}, ...t]), r));
3467
+ function ar(e, ...t) {
3468
+ delete V[e], se.update((r) => (r[e] = fn.all([r[e] || {}, ...t]), r));
3506
3469
  }
3507
- ae(
3508
- [le],
3470
+ oe(
3471
+ [se],
3509
3472
  ([e]) => Object.keys(e)
3510
3473
  );
3511
- le.subscribe((e) => it = e);
3512
- const Se = {};
3513
- function Ei(e, t) {
3514
- Se[e].delete(t), Se[e].size === 0 && delete Se[e];
3474
+ se.subscribe((e) => rt = e);
3475
+ const He = {};
3476
+ function hi(e, t) {
3477
+ He[e].delete(t), He[e].size === 0 && delete He[e];
3515
3478
  }
3516
- function mr(e) {
3517
- return Se[e];
3479
+ function lr(e) {
3480
+ return He[e];
3518
3481
  }
3519
- function xi(e) {
3520
- return Pe(e).map((t) => {
3521
- const r = mr(t);
3482
+ function ci(e) {
3483
+ return Ne(e).map((t) => {
3484
+ const r = lr(t);
3522
3485
  return [t, r ? [...r] : []];
3523
3486
  }).filter(([, t]) => t.length > 0);
3524
3487
  }
3525
- function Ke(e) {
3526
- return e == null ? !1 : Pe(e).some(
3488
+ function Je(e) {
3489
+ return e == null ? !1 : Ne(e).some(
3527
3490
  (t) => {
3528
3491
  var r;
3529
- return (r = mr(t)) == null ? void 0 : r.size;
3492
+ return (r = lr(t)) == null ? void 0 : r.size;
3530
3493
  }
3531
3494
  );
3532
3495
  }
3533
- function Ci(e, t) {
3496
+ function fi(e, t) {
3534
3497
  return Promise.all(
3535
- t.map((n) => (Ei(e, n), n().then((i) => i.default || i)))
3536
- ).then((n) => dr(e, ...n));
3537
- }
3538
- const ce = {};
3539
- function pr(e) {
3540
- if (!Ke(e))
3541
- return e in ce ? ce[e] : Promise.resolve();
3542
- const t = xi(e);
3543
- return ce[e] = Promise.all(
3498
+ t.map((n) => (hi(e, n), n().then((i) => i.default || i)))
3499
+ ).then((n) => ar(e, ...n));
3500
+ }
3501
+ const ue = {};
3502
+ function ur(e) {
3503
+ if (!Je(e))
3504
+ return e in ue ? ue[e] : Promise.resolve();
3505
+ const t = ci(e);
3506
+ return ue[e] = Promise.all(
3544
3507
  t.map(
3545
- ([r, n]) => Ci(r, n)
3508
+ ([r, n]) => fi(r, n)
3546
3509
  )
3547
3510
  ).then(() => {
3548
- if (Ke(e))
3549
- return pr(e);
3550
- delete ce[e];
3551
- }), ce[e];
3511
+ if (Je(e))
3512
+ return ur(e);
3513
+ delete ue[e];
3514
+ }), ue[e];
3552
3515
  }
3553
- const wi = {
3516
+ const mi = {
3554
3517
  number: {
3555
3518
  scientific: { notation: "scientific" },
3556
3519
  engineering: { notation: "engineering" },
@@ -3579,184 +3542,184 @@ const wi = {
3579
3542
  timeZoneName: "short"
3580
3543
  }
3581
3544
  }
3582
- }, Hi = {
3545
+ }, di = {
3583
3546
  fallbackLocale: null,
3584
3547
  loadingDelay: 200,
3585
- formats: wi,
3548
+ formats: mi,
3586
3549
  warnOnMissingMessages: !0,
3587
3550
  handleMissingMessage: void 0,
3588
3551
  ignoreTag: !0
3589
- }, Si = Hi;
3590
- function se() {
3591
- return Si;
3552
+ }, pi = di;
3553
+ function ie() {
3554
+ return pi;
3592
3555
  }
3593
- const je = Be(!1);
3594
- var Ti = Object.defineProperty, Ai = Object.defineProperties, Ii = Object.getOwnPropertyDescriptors, St = Object.getOwnPropertySymbols, Bi = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ni = (e, t) => {
3556
+ const ke = Ie(!1);
3557
+ var gi = Object.defineProperty, bi = Object.defineProperties, yi = Object.getOwnPropertyDescriptors, vt = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, vi = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ei = (e, t) => {
3595
3558
  for (var r in t)
3596
- Bi.call(t, r) && Tt(e, r, t[r]);
3597
- if (St)
3598
- for (var r of St(t))
3599
- Mi.call(t, r) && Tt(e, r, t[r]);
3559
+ _i.call(t, r) && Et(e, r, t[r]);
3560
+ if (vt)
3561
+ for (var r of vt(t))
3562
+ vi.call(t, r) && Et(e, r, t[r]);
3600
3563
  return e;
3601
- }, Pi = (e, t) => Ai(e, Ii(t));
3602
- let et;
3603
- const Ae = Be(null);
3604
- function At(e) {
3564
+ }, xi = (e, t) => bi(e, yi(t));
3565
+ let Ye;
3566
+ const Te = Ie(null);
3567
+ function xt(e) {
3605
3568
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3606
3569
  }
3607
- function Pe(e, t = se().fallbackLocale) {
3608
- const r = At(e);
3609
- return t ? [.../* @__PURE__ */ new Set([...r, ...At(t)])] : r;
3570
+ function Ne(e, t = ie().fallbackLocale) {
3571
+ const r = xt(e);
3572
+ return t ? [.../* @__PURE__ */ new Set([...r, ...xt(t)])] : r;
3610
3573
  }
3611
- function J() {
3612
- return et != null ? et : void 0;
3574
+ function Q() {
3575
+ return Ye ?? void 0;
3613
3576
  }
3614
- Ae.subscribe((e) => {
3615
- et = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3577
+ Te.subscribe((e) => {
3578
+ Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3616
3579
  });
3617
- const Oi = (e) => {
3618
- if (e && _i(e) && Ke(e)) {
3619
- const { loadingDelay: t } = se();
3580
+ const Ci = (e) => {
3581
+ if (e && ui(e) && Je(e)) {
3582
+ const { loadingDelay: t } = ie();
3620
3583
  let r;
3621
- return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
3622
- () => je.set(!0),
3584
+ return typeof window < "u" && Q() != null && t ? r = window.setTimeout(
3585
+ () => ke.set(!0),
3623
3586
  t
3624
- ) : je.set(!0), pr(e).then(() => {
3625
- Ae.set(e);
3587
+ ) : ke.set(!0), ur(e).then(() => {
3588
+ Te.set(e);
3626
3589
  }).finally(() => {
3627
- clearTimeout(r), je.set(!1);
3590
+ clearTimeout(r), ke.set(!1);
3628
3591
  });
3629
3592
  }
3630
- return Ae.set(e);
3631
- }, W = Pi(Ni({}, Ae), {
3632
- set: Oi
3633
- }), Oe = (e) => {
3593
+ return Te.set(e);
3594
+ }, X = xi(Ei({}, Te), {
3595
+ set: Ci
3596
+ }), Pe = (e) => {
3634
3597
  const t = /* @__PURE__ */ Object.create(null);
3635
3598
  return (n) => {
3636
3599
  const i = JSON.stringify(n);
3637
3600
  return i in t ? t[i] : t[i] = e(n);
3638
3601
  };
3639
3602
  };
3640
- var Li = Object.defineProperty, Ie = Object.getOwnPropertySymbols, gr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
3603
+ var wi = Object.defineProperty, Ae = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
3641
3604
  for (var r in t || (t = {}))
3642
- gr.call(t, r) && It(e, r, t[r]);
3643
- if (Ie)
3644
- for (var r of Ie(t))
3645
- br.call(t, r) && It(e, r, t[r]);
3605
+ hr.call(t, r) && Ct(e, r, t[r]);
3606
+ if (Ae)
3607
+ for (var r of Ae(t))
3608
+ cr.call(t, r) && Ct(e, r, t[r]);
3646
3609
  return e;
3647
- }, ue = (e, t) => {
3610
+ }, ae = (e, t) => {
3648
3611
  var r = {};
3649
3612
  for (var n in e)
3650
- gr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3651
- if (e != null && Ie)
3652
- for (var n of Ie(e))
3653
- t.indexOf(n) < 0 && br.call(e, n) && (r[n] = e[n]);
3613
+ hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3614
+ if (e != null && Ae)
3615
+ for (var n of Ae(e))
3616
+ t.indexOf(n) < 0 && cr.call(e, n) && (r[n] = e[n]);
3654
3617
  return r;
3655
3618
  };
3656
- const be = (e, t) => {
3657
- const { formats: r } = se();
3619
+ const pe = (e, t) => {
3620
+ const { formats: r } = ie();
3658
3621
  if (e in r && t in r[e])
3659
3622
  return r[e][t];
3660
3623
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3661
- }, Fi = Oe(
3624
+ }, Hi = Pe(
3662
3625
  (e) => {
3663
- var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3626
+ var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3664
3627
  if (r == null)
3665
3628
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3666
- return n && (i = be("number", n)), new Intl.NumberFormat(r, i);
3629
+ return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
3667
3630
  }
3668
- ), Ri = Oe(
3631
+ ), Si = Pe(
3669
3632
  (e) => {
3670
- var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3633
+ var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3671
3634
  if (r == null)
3672
3635
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3673
- return n ? i = be("date", n) : Object.keys(i).length === 0 && (i = be("date", "short")), new Intl.DateTimeFormat(r, i);
3636
+ return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
3674
3637
  }
3675
- ), Di = Oe(
3638
+ ), Ti = Pe(
3676
3639
  (e) => {
3677
- var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3640
+ var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
3678
3641
  if (r == null)
3679
3642
  throw new Error(
3680
3643
  '[svelte-i18n] A "locale" must be set to format time values'
3681
3644
  );
3682
- return n ? i = be("time", n) : Object.keys(i).length === 0 && (i = be("time", "short")), new Intl.DateTimeFormat(r, i);
3645
+ return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
3683
3646
  }
3684
- ), Gi = (e = {}) => {
3647
+ ), Ai = (e = {}) => {
3685
3648
  var t = e, {
3686
- locale: r = J()
3687
- } = t, n = ue(t, [
3649
+ locale: r = Q()
3650
+ } = t, n = ae(t, [
3688
3651
  "locale"
3689
3652
  ]);
3690
- return Fi(ot({ locale: r }, n));
3691
- }, Ui = (e = {}) => {
3653
+ return Hi(nt({ locale: r }, n));
3654
+ }, Ii = (e = {}) => {
3692
3655
  var t = e, {
3693
- locale: r = J()
3694
- } = t, n = ue(t, [
3656
+ locale: r = Q()
3657
+ } = t, n = ae(t, [
3695
3658
  "locale"
3696
3659
  ]);
3697
- return Ri(ot({ locale: r }, n));
3698
- }, ki = (e = {}) => {
3660
+ return Si(nt({ locale: r }, n));
3661
+ }, Bi = (e = {}) => {
3699
3662
  var t = e, {
3700
- locale: r = J()
3701
- } = t, n = ue(t, [
3663
+ locale: r = Q()
3664
+ } = t, n = ae(t, [
3702
3665
  "locale"
3703
3666
  ]);
3704
- return Di(ot({ locale: r }, n));
3705
- }, $i = Oe(
3667
+ return Ti(nt({ locale: r }, n));
3668
+ }, Mi = Pe(
3706
3669
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3707
- (e, t = J()) => new pi(e, t, se().formats, {
3708
- ignoreTag: se().ignoreTag
3670
+ (e, t = Q()) => new ii(e, t, ie().formats, {
3671
+ ignoreTag: ie().ignoreTag
3709
3672
  })
3710
- ), ji = (e, t = {}) => {
3711
- var r, n, i, o;
3712
- let s = t;
3713
- typeof e == "object" && (s = e, e = s.id);
3673
+ ), Ni = (e, t = {}) => {
3674
+ var r, n, i, s;
3675
+ let o = t;
3676
+ typeof e == "object" && (o = e, e = o.id);
3714
3677
  const {
3715
3678
  values: a,
3716
- locale: u = J(),
3679
+ locale: h = Q(),
3717
3680
  default: l
3718
- } = s;
3719
- if (u == null)
3681
+ } = o;
3682
+ if (h == null)
3720
3683
  throw new Error(
3721
3684
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3722
3685
  );
3723
- let h = cr(e, u);
3724
- if (!h)
3725
- h = (o = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3726
- else if (typeof h != "string")
3686
+ let u = or(e, h);
3687
+ if (!u)
3688
+ u = (s = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
3689
+ else if (typeof u != "string")
3727
3690
  return console.warn(
3728
- `[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.`
3729
- ), h;
3691
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3692
+ ), u;
3730
3693
  if (!a)
3731
- return h;
3732
- let d = h;
3694
+ return u;
3695
+ let m = u;
3733
3696
  try {
3734
- d = $i(h, u).format(a);
3697
+ m = Mi(u, h).format(a);
3735
3698
  } catch (f) {
3736
3699
  f instanceof Error && console.warn(
3737
3700
  `[svelte-i18n] Message "${e}" has syntax error:`,
3738
3701
  f.message
3739
3702
  );
3740
3703
  }
3741
- return d;
3742
- }, Vi = (e, t) => ki(t).format(e), Xi = (e, t) => Ui(t).format(e), Wi = (e, t) => Gi(t).format(e), zi = (e, t = J()) => cr(e, t);
3743
- ae([W, le], () => ji);
3744
- ae([W], () => Vi);
3745
- ae([W], () => Xi);
3746
- ae([W], () => Wi);
3747
- ae([W, le], () => zi);
3748
- function Zi({ withLocale: e, translations: t }) {
3749
- W.subscribe((r) => {
3750
- r == null && (le.set(t), W.set(e));
3704
+ return m;
3705
+ }, Pi = (e, t) => Bi(t).format(e), Oi = (e, t) => Ii(t).format(e), Li = (e, t) => Ai(t).format(e), Fi = (e, t = Q()) => or(e, t);
3706
+ oe([X, se], () => Ni);
3707
+ oe([X], () => Pi);
3708
+ oe([X], () => Oi);
3709
+ oe([X], () => Li);
3710
+ oe([X, se], () => Fi);
3711
+ function Ri({ withLocale: e, translations: t }) {
3712
+ X.subscribe((r) => {
3713
+ r == null && (se.set(t), X.set(e));
3751
3714
  });
3752
3715
  }
3753
- function Bt(e, t) {
3754
- dr(e, t);
3716
+ function wt(e, t) {
3717
+ ar(e, t);
3755
3718
  }
3756
- function Qi(e) {
3757
- W.set(e);
3719
+ function Di(e) {
3720
+ X.set(e);
3758
3721
  }
3759
- const Mt = {
3722
+ const Ht = {
3760
3723
  en: {
3761
3724
  login: "Login",
3762
3725
  register: "Register",
@@ -3813,177 +3776,176 @@ const Mt = {
3813
3776
  deposit: "Deposit"
3814
3777
  }
3815
3778
  };
3816
- function qi(e) {
3817
- Ur(e, "svelte-1lgwoo3", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}');
3779
+ function Gi(e) {
3780
+ Ir(e, "svelte-1lgwoo3", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(to left, var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--header-color-primary, var(--emw--color-primary, #D0046C))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}');
3818
3781
  }
3819
- function Nt(e, t, r) {
3782
+ function St(e, t, r) {
3820
3783
  const n = e.slice();
3821
3784
  return n[49] = t[r], n[51] = r, n;
3822
3785
  }
3823
- function Pt(e, t, r) {
3786
+ function Tt(e, t, r) {
3824
3787
  const n = e.slice();
3825
3788
  return n[52] = t[r], n;
3826
3789
  }
3827
- function Ot(e, t, r) {
3790
+ function At(e, t, r) {
3828
3791
  const n = e.slice();
3829
3792
  return n[55] = t[r], n[57] = r, n;
3830
3793
  }
3831
- function Lt(e) {
3832
- let t = [], r = /* @__PURE__ */ new Map(), n, i = re(
3794
+ function It(e) {
3795
+ let t = [], r = /* @__PURE__ */ new Map(), n, i = ee(
3833
3796
  /*sliderdata*/
3834
3797
  e[9]
3835
3798
  );
3836
- const o = (s) => (
3799
+ const s = (o) => (
3837
3800
  /*category*/
3838
- s[49].id
3801
+ o[49].id
3839
3802
  );
3840
- for (let s = 0; s < i.length; s += 1) {
3841
- let a = Nt(e, i, s), u = o(a);
3842
- r.set(u, t[s] = kt(u, a));
3803
+ for (let o = 0; o < i.length; o += 1) {
3804
+ let a = St(e, i, o), h = s(a);
3805
+ r.set(h, t[o] = Lt(h, a));
3843
3806
  }
3844
3807
  return {
3845
3808
  c() {
3846
- for (let s = 0; s < t.length; s += 1)
3847
- t[s].c();
3848
- n = me();
3809
+ for (let o = 0; o < t.length; o += 1)
3810
+ t[o].c();
3811
+ n = fe();
3849
3812
  },
3850
- m(s, a) {
3851
- for (let u = 0; u < t.length; u += 1)
3852
- t[u] && t[u].m(s, a);
3853
- k(s, n, a);
3813
+ m(o, a) {
3814
+ for (let h = 0; h < t.length; h += 1)
3815
+ t[h] && t[h].m(o, a);
3816
+ U(o, n, a);
3854
3817
  },
3855
- p(s, a) {
3818
+ p(o, a) {
3856
3819
  a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
3857
- 77775 && (i = re(
3820
+ 77775 && (i = ee(
3858
3821
  /*sliderdata*/
3859
- s[9]
3860
- ), t = Wt(t, a, o, 1, s, i, r, n.parentNode, Xt, kt, n, Nt));
3822
+ o[9]
3823
+ ), t = Ut(t, a, s, 1, o, i, r, n.parentNode, Gt, Lt, n, St));
3861
3824
  },
3862
- d(s) {
3863
- s && D(n);
3825
+ d(o) {
3826
+ o && F(n);
3864
3827
  for (let a = 0; a < t.length; a += 1)
3865
- t[a].d(s);
3828
+ t[a].d(o);
3866
3829
  }
3867
3830
  };
3868
3831
  }
3869
- function Ji(e) {
3832
+ function Ui(e) {
3870
3833
  let t, r = (
3871
3834
  /*category*/
3872
3835
  e[49].name + ""
3873
3836
  ), n;
3874
3837
  return {
3875
3838
  c() {
3876
- t = M("button"), n = ye(r), S(t, "class", "CategoryButton");
3839
+ t = B("button"), n = ge(r), H(t, "class", "CategoryButton");
3877
3840
  },
3878
- m(i, o) {
3879
- k(i, t, o), I(t, n);
3841
+ m(i, s) {
3842
+ U(i, t, s), I(t, n);
3880
3843
  },
3881
- p(i, o) {
3882
- o[0] & /*sliderdata*/
3844
+ p(i, s) {
3845
+ s[0] & /*sliderdata*/
3883
3846
  512 && r !== (r = /*category*/
3884
- i[49].name + "") && rt(n, r);
3847
+ i[49].name + "") && et(n, r);
3885
3848
  },
3886
3849
  d(i) {
3887
- i && D(t);
3850
+ i && F(t);
3888
3851
  }
3889
3852
  };
3890
3853
  }
3891
- function Yi(e) {
3854
+ function ki(e) {
3892
3855
  let t, r = (
3893
3856
  /*category*/
3894
3857
  e[49].label + ""
3895
3858
  ), n, i;
3896
3859
  return {
3897
3860
  c() {
3898
- t = M("a"), n = ye(r), S(t, "href", i = /*category*/
3861
+ t = B("a"), n = ge(r), H(t, "href", i = /*category*/
3899
3862
  e[49].path);
3900
3863
  },
3901
- m(o, s) {
3902
- k(o, t, s), I(t, n);
3864
+ m(s, o) {
3865
+ U(s, t, o), I(t, n);
3903
3866
  },
3904
- p(o, s) {
3905
- s[0] & /*sliderdata*/
3867
+ p(s, o) {
3868
+ o[0] & /*sliderdata*/
3906
3869
  512 && r !== (r = /*category*/
3907
- o[49].label + "") && rt(n, r), s[0] & /*sliderdata*/
3870
+ s[49].label + "") && et(n, r), o[0] & /*sliderdata*/
3908
3871
  512 && i !== (i = /*category*/
3909
- o[49].path) && S(t, "href", i);
3872
+ s[49].path) && H(t, "href", i);
3910
3873
  },
3911
- d(o) {
3912
- o && D(t);
3874
+ d(s) {
3875
+ s && F(t);
3913
3876
  }
3914
3877
  };
3915
3878
  }
3916
- function Ft(e) {
3879
+ function Bt(e) {
3917
3880
  let t, r = (
3918
3881
  /*subGroupsData*/
3919
3882
  e[10].length > 0 && /*showsubgroups*/
3920
- e[2] == "true" && Rt(e)
3883
+ e[2] == "true" && Mt(e)
3921
3884
  );
3922
3885
  return {
3923
3886
  c() {
3924
- r && r.c(), t = me();
3887
+ r && r.c(), t = fe();
3925
3888
  },
3926
3889
  m(n, i) {
3927
- r && r.m(n, i), k(n, t, i);
3890
+ r && r.m(n, i), U(n, t, i);
3928
3891
  },
3929
3892
  p(n, i) {
3930
3893
  /*subGroupsData*/
3931
3894
  n[10].length > 0 && /*showsubgroups*/
3932
- n[2] == "true" ? r ? r.p(n, i) : (r = Rt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3895
+ n[2] == "true" ? r ? r.p(n, i) : (r = Mt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3933
3896
  },
3934
3897
  d(n) {
3935
- n && D(t), r && r.d(n);
3898
+ n && F(t), r && r.d(n);
3936
3899
  }
3937
3900
  };
3938
3901
  }
3939
- function Rt(e) {
3940
- let t, r = re(
3902
+ function Mt(e) {
3903
+ let t, r = ee(
3941
3904
  /*subGroupsData*/
3942
3905
  e[10]
3943
3906
  ), n = [];
3944
3907
  for (let i = 0; i < r.length; i += 1)
3945
- n[i] = Ut(Pt(e, r, i));
3908
+ n[i] = Ot(Tt(e, r, i));
3946
3909
  return {
3947
3910
  c() {
3948
- t = M("ul");
3911
+ t = B("ul");
3949
3912
  for (let i = 0; i < n.length; i += 1)
3950
3913
  n[i].c();
3951
- S(t, "class", "DropDown");
3914
+ H(t, "class", "DropDown");
3952
3915
  },
3953
- m(i, o) {
3954
- k(i, t, o);
3955
- for (let s = 0; s < n.length; s += 1)
3956
- n[s] && n[s].m(t, null);
3916
+ m(i, s) {
3917
+ U(i, t, s);
3918
+ for (let o = 0; o < n.length; o += 1)
3919
+ n[o] && n[o].m(t, null);
3957
3920
  },
3958
- p(i, o) {
3959
- if (o[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
3921
+ p(i, s) {
3922
+ if (s[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
3960
3923
  10176) {
3961
- r = re(
3924
+ r = ee(
3962
3925
  /*subGroupsData*/
3963
3926
  i[10]
3964
3927
  );
3965
- let s;
3966
- for (s = 0; s < r.length; s += 1) {
3967
- const a = Pt(i, r, s);
3968
- n[s] ? n[s].p(a, o) : (n[s] = Ut(a), n[s].c(), n[s].m(t, null));
3928
+ let o;
3929
+ for (o = 0; o < r.length; o += 1) {
3930
+ const a = Tt(i, r, o);
3931
+ n[o] ? n[o].p(a, s) : (n[o] = Ot(a), n[o].c(), n[o].m(t, null));
3969
3932
  }
3970
- for (; s < n.length; s += 1)
3971
- n[s].d(1);
3933
+ for (; o < n.length; o += 1)
3934
+ n[o].d(1);
3972
3935
  n.length = r.length;
3973
3936
  }
3974
3937
  },
3975
3938
  d(i) {
3976
- i && D(t), jr(n, i);
3939
+ i && F(t), Nr(n, i);
3977
3940
  }
3978
3941
  };
3979
3942
  }
3980
- function Dt(e) {
3981
- var h;
3943
+ function Nt(e) {
3982
3944
  let t, r, n = (
3983
3945
  /*subGroupItem*/
3984
- ((h = e[55]) == null ? void 0 : h.name) + ""
3985
- ), i, o, s, a, u;
3986
- function l(...d) {
3946
+ e[55]?.name + ""
3947
+ ), i, s, o, a, h;
3948
+ function l(...u) {
3987
3949
  return (
3988
3950
  /*click_handler_1*/
3989
3951
  e[32](
@@ -3995,13 +3957,13 @@ function Dt(e) {
3995
3957
  e[55],
3996
3958
  /*subindex*/
3997
3959
  e[57],
3998
- ...d
3960
+ ...u
3999
3961
  )
4000
3962
  );
4001
3963
  }
4002
3964
  return {
4003
3965
  c() {
4004
- t = M("li"), r = M("a"), i = ye(n), s = Q(), S(r, "class", o = "SubDropDown " + /*index*/
3966
+ t = B("li"), r = B("a"), i = ge(n), o = z(), H(r, "class", s = "SubDropDown " + /*index*/
4005
3967
  (e[51] == /*activeIndex*/
4006
3968
  e[6] && /*activeSubIndex*/
4007
3969
  (e[7] == /*subindex*/
@@ -4009,106 +3971,105 @@ function Dt(e) {
4009
3971
  e[8] == /*subindex*/
4010
3972
  e[57]) ? "active" : ""));
4011
3973
  },
4012
- m(d, f) {
4013
- k(d, t, f), I(t, r), I(r, i), I(t, s), a || (u = Te(t, "click", l), a = !0);
3974
+ m(u, m) {
3975
+ U(u, t, m), I(t, r), I(r, i), I(t, o), a || (h = Se(t, "click", l), a = !0);
4014
3976
  },
4015
- p(d, f) {
4016
- var p;
4017
- e = d, f[0] & /*subGroupsData*/
3977
+ p(u, m) {
3978
+ e = u, m[0] & /*subGroupsData*/
4018
3979
  1024 && n !== (n = /*subGroupItem*/
4019
- ((p = e[55]) == null ? void 0 : p.name) + "") && rt(i, n), f[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
4020
- 1984 && o !== (o = "SubDropDown " + /*index*/
3980
+ e[55]?.name + "") && et(i, n), m[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
3981
+ 1984 && s !== (s = "SubDropDown " + /*index*/
4021
3982
  (e[51] == /*activeIndex*/
4022
3983
  e[6] && /*activeSubIndex*/
4023
3984
  (e[7] == /*subindex*/
4024
3985
  e[57] || /*prevSubIndex*/
4025
3986
  e[8] == /*subindex*/
4026
- e[57]) ? "active" : "")) && S(r, "class", o);
3987
+ e[57]) ? "active" : "")) && H(r, "class", s);
4027
3988
  },
4028
- d(d) {
4029
- d && D(t), a = !1, u();
3989
+ d(u) {
3990
+ u && F(t), a = !1, h();
4030
3991
  }
4031
3992
  };
4032
3993
  }
4033
- function Gt(e, t) {
3994
+ function Pt(e, t) {
4034
3995
  let r, n, i = (
4035
3996
  /*index*/
4036
3997
  t[51] == /*subGroup*/
4037
- t[52].index && Dt(t)
3998
+ t[52].index && Nt(t)
4038
3999
  );
4039
4000
  return {
4040
4001
  key: e,
4041
4002
  first: null,
4042
4003
  c() {
4043
- r = me(), i && i.c(), n = me(), this.first = r;
4004
+ r = fe(), i && i.c(), n = fe(), this.first = r;
4044
4005
  },
4045
- m(o, s) {
4046
- k(o, r, s), i && i.m(o, s), k(o, n, s);
4006
+ m(s, o) {
4007
+ U(s, r, o), i && i.m(s, o), U(s, n, o);
4047
4008
  },
4048
- p(o, s) {
4049
- t = o, /*index*/
4009
+ p(s, o) {
4010
+ t = s, /*index*/
4050
4011
  t[51] == /*subGroup*/
4051
- t[52].index ? i ? i.p(t, s) : (i = Dt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
4012
+ t[52].index ? i ? i.p(t, o) : (i = Nt(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
4052
4013
  },
4053
- d(o) {
4054
- o && (D(r), D(n)), i && i.d(o);
4014
+ d(s) {
4015
+ s && (F(r), F(n)), i && i.d(s);
4055
4016
  }
4056
4017
  };
4057
4018
  }
4058
- function Ut(e) {
4059
- let t = [], r = /* @__PURE__ */ new Map(), n, i = re(
4019
+ function Ot(e) {
4020
+ let t = [], r = /* @__PURE__ */ new Map(), n, i = ee(
4060
4021
  /*subGroup*/
4061
4022
  e[52].items
4062
4023
  );
4063
- const o = (s) => (
4024
+ const s = (o) => (
4064
4025
  /*subGroupItem*/
4065
- s[55].id
4026
+ o[55].id
4066
4027
  );
4067
- for (let s = 0; s < i.length; s += 1) {
4068
- let a = Ot(e, i, s), u = o(a);
4069
- r.set(u, t[s] = Gt(u, a));
4028
+ for (let o = 0; o < i.length; o += 1) {
4029
+ let a = At(e, i, o), h = s(a);
4030
+ r.set(h, t[o] = Pt(h, a));
4070
4031
  }
4071
4032
  return {
4072
4033
  c() {
4073
- for (let s = 0; s < t.length; s += 1)
4074
- t[s].c();
4075
- n = me();
4034
+ for (let o = 0; o < t.length; o += 1)
4035
+ t[o].c();
4036
+ n = fe();
4076
4037
  },
4077
- m(s, a) {
4078
- for (let u = 0; u < t.length; u += 1)
4079
- t[u] && t[u].m(s, a);
4080
- k(s, n, a);
4038
+ m(o, a) {
4039
+ for (let h = 0; h < t.length; h += 1)
4040
+ t[h] && t[h].m(o, a);
4041
+ U(o, n, a);
4081
4042
  },
4082
- p(s, a) {
4043
+ p(o, a) {
4083
4044
  a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
4084
- 10176 && (i = re(
4045
+ 10176 && (i = ee(
4085
4046
  /*subGroup*/
4086
- s[52].items
4087
- ), t = Wt(t, a, o, 1, s, i, r, n.parentNode, Xt, Gt, n, Ot));
4047
+ o[52].items
4048
+ ), t = Ut(t, a, s, 1, o, i, r, n.parentNode, Gt, Pt, n, At));
4088
4049
  },
4089
- d(s) {
4090
- s && D(n);
4050
+ d(o) {
4051
+ o && F(n);
4091
4052
  for (let a = 0; a < t.length; a += 1)
4092
- t[a].d(s);
4053
+ t[a].d(o);
4093
4054
  }
4094
4055
  };
4095
4056
  }
4096
- function kt(e, t) {
4097
- let r, n, i, o, s, a, u, l, h, d, f;
4098
- function p(_, C) {
4057
+ function Lt(e, t) {
4058
+ let r, n, i, s, o, a, h, l, u, m, f;
4059
+ function p(x, S) {
4099
4060
  return (
4100
4061
  /*location*/
4101
- _[0] === "headerMain" ? Yi : Ji
4062
+ x[0] === "headerMain" ? ki : Ui
4102
4063
  );
4103
4064
  }
4104
- let g = p(t), b = g(t), m = (
4065
+ let g = p(t), b = g(t), d = (
4105
4066
  /*itemsActive*/
4106
4067
  t[11][
4107
4068
  /*index*/
4108
4069
  t[51]
4109
- ] == !0 && Ft(t)
4070
+ ] == !0 && Bt(t)
4110
4071
  );
4111
- function w(..._) {
4072
+ function C(...x) {
4112
4073
  return (
4113
4074
  /*click_handler_2*/
4114
4075
  t[33](
@@ -4116,7 +4077,7 @@ function kt(e, t) {
4116
4077
  t[49],
4117
4078
  /*index*/
4118
4079
  t[51],
4119
- ..._
4080
+ ...x
4120
4081
  )
4121
4082
  );
4122
4083
  }
@@ -4124,295 +4085,291 @@ function kt(e, t) {
4124
4085
  key: e,
4125
4086
  first: null,
4126
4087
  c() {
4127
- var _, C;
4128
- r = M("li"), n = M("div"), i = M("img"), a = Q(), b.c(), u = Q(), m && m.c(), l = Q(), S(i, "class", o = "CategoryIconImg " + /*categoriesicon*/
4129
- (t[3] === "true" ? "" : "DisplayNone")), pt(i.src, s = /*handleSrc*/
4088
+ r = B("li"), n = B("div"), i = B("img"), a = z(), b.c(), h = z(), d && d.c(), l = z(), H(i, "class", s = "CategoryIconImg " + /*categoriesicon*/
4089
+ (t[3] === "true" ? "" : "DisplayNone")), ut(i.src, o = /*handleSrc*/
4130
4090
  t[16](
4131
4091
  /*category*/
4132
4092
  t[49]
4133
- )) || S(i, "src", s), S(n, "class", "CategoryIcon"), S(r, "class", h = "CarouselItem " + /*activeindex*/
4134
- (((_ = t[1]) == null ? void 0 : _.toString().indexOf("$")) > -1 ? (
4093
+ )) || H(i, "src", o), H(n, "class", "CategoryIcon"), H(r, "class", u = "CarouselItem " + /*activeindex*/
4094
+ (t[1]?.toString().indexOf("$") > -1 ? (
4135
4095
  /*activeindex*/
4136
- ((C = t[1]) == null ? void 0 : C.split("$").pop()) == /*category*/
4096
+ t[1]?.split("$").pop() == /*category*/
4137
4097
  t[49].id.split("$").pop() ? "active" : ""
4138
4098
  ) : (
4139
4099
  /*activeindex*/
4140
4100
  t[1] == /*category*/
4141
4101
  t[49].id ? "active" : ""
4142
4102
  )) + " " + /*location*/
4143
- (t[0] == "headerMain" ? "" : "SecondaryMenu")), S(r, "part", "CarouselItem"), this.first = r;
4103
+ (t[0] == "headerMain" ? "" : "SecondaryMenu")), H(r, "part", "CarouselItem"), this.first = r;
4144
4104
  },
4145
- m(_, C) {
4146
- k(_, r, C), I(r, n), I(n, i), I(r, a), b.m(r, null), I(r, u), m && m.m(r, null), I(r, l), d || (f = Te(r, "click", w), d = !0);
4105
+ m(x, S) {
4106
+ U(x, r, S), I(r, n), I(n, i), I(r, a), b.m(r, null), I(r, h), d && d.m(r, null), I(r, l), m || (f = Se(r, "click", C), m = !0);
4147
4107
  },
4148
- p(_, C) {
4149
- var P, O;
4150
- t = _, C[0] & /*categoriesicon*/
4151
- 8 && o !== (o = "CategoryIconImg " + /*categoriesicon*/
4152
- (t[3] === "true" ? "" : "DisplayNone")) && S(i, "class", o), C[0] & /*sliderdata*/
4153
- 512 && !pt(i.src, s = /*handleSrc*/
4108
+ p(x, S) {
4109
+ t = x, S[0] & /*categoriesicon*/
4110
+ 8 && s !== (s = "CategoryIconImg " + /*categoriesicon*/
4111
+ (t[3] === "true" ? "" : "DisplayNone")) && H(i, "class", s), S[0] & /*sliderdata*/
4112
+ 512 && !ut(i.src, o = /*handleSrc*/
4154
4113
  t[16](
4155
4114
  /*category*/
4156
4115
  t[49]
4157
- )) && S(i, "src", s), g === (g = p(t)) && b ? b.p(t, C) : (b.d(1), b = g(t), b && (b.c(), b.m(r, u))), /*itemsActive*/
4116
+ )) && H(i, "src", o), g === (g = p(t)) && b ? b.p(t, S) : (b.d(1), b = g(t), b && (b.c(), b.m(r, h))), /*itemsActive*/
4158
4117
  t[11][
4159
4118
  /*index*/
4160
4119
  t[51]
4161
- ] == !0 ? m ? m.p(t, C) : (m = Ft(t), m.c(), m.m(r, l)) : m && (m.d(1), m = null), C[0] & /*activeindex, sliderdata, location*/
4162
- 515 && h !== (h = "CarouselItem " + /*activeindex*/
4163
- (((P = t[1]) == null ? void 0 : P.toString().indexOf("$")) > -1 ? (
4120
+ ] == !0 ? d ? d.p(t, S) : (d = Bt(t), d.c(), d.m(r, l)) : d && (d.d(1), d = null), S[0] & /*activeindex, sliderdata, location*/
4121
+ 515 && u !== (u = "CarouselItem " + /*activeindex*/
4122
+ (t[1]?.toString().indexOf("$") > -1 ? (
4164
4123
  /*activeindex*/
4165
- ((O = t[1]) == null ? void 0 : O.split("$").pop()) == /*category*/
4124
+ t[1]?.split("$").pop() == /*category*/
4166
4125
  t[49].id.split("$").pop() ? "active" : ""
4167
4126
  ) : (
4168
4127
  /*activeindex*/
4169
4128
  t[1] == /*category*/
4170
4129
  t[49].id ? "active" : ""
4171
4130
  )) + " " + /*location*/
4172
- (t[0] == "headerMain" ? "" : "SecondaryMenu")) && S(r, "class", h);
4131
+ (t[0] == "headerMain" ? "" : "SecondaryMenu")) && H(r, "class", u);
4173
4132
  },
4174
- d(_) {
4175
- _ && D(r), b.d(), m && m.d(), d = !1, f();
4133
+ d(x) {
4134
+ x && F(r), b.d(), d && d.d(), m = !1, f();
4176
4135
  }
4177
4136
  };
4178
4137
  }
4179
- function Ki(e) {
4180
- let t, r, n, i, o, s, a, u, l, h, d, f, p, g, b, m = (
4138
+ function $i(e) {
4139
+ let t, r, n, i, s, o, a, h, l, u, m, f, p, g, b, d = (
4181
4140
  /*sliderdata*/
4182
- e[9].length > 0 && Lt(e)
4141
+ e[9].length > 0 && It(e)
4183
4142
  );
4184
4143
  return {
4185
4144
  c() {
4186
- t = M("div"), r = M("div"), n = M("div"), n.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', i = Q(), o = M("div"), s = M("ul"), a = M("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', u = Q(), m && m.c(), l = Q(), h = M("div"), h.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', S(n, "class", "CarouselLeftArrow"), S(a, "class", "TouchOnly"), S(s, "id", "CarouselNav"), S(s, "class", "CarouselItems"), S(o, "class", "CarouselNavWrap"), S(h, "class", "CarouselRightArrow"), S(r, "class", d = `CarouselContainer CarouselContainerMobile ${/*location*/
4187
- e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), S(r, "style", f = /*location*/
4188
- e[0] === "headerMain" ? "max-width: auto" : void 0), S(t, "class", p = "CarouselWrapper " + /*location*/
4145
+ t = B("div"), r = B("div"), n = B("div"), n.innerHTML = '<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', i = z(), s = B("div"), o = B("ul"), a = B("li"), a.innerHTML = '<a href="#CarouselNav">Close Subs</a>', h = z(), d && d.c(), l = z(), u = B("div"), u.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', H(n, "class", "CarouselLeftArrow"), H(a, "class", "TouchOnly"), H(o, "id", "CarouselNav"), H(o, "class", "CarouselItems"), H(s, "class", "CarouselNavWrap"), H(u, "class", "CarouselRightArrow"), H(r, "class", m = `CarouselContainer CarouselContainerMobile ${/*location*/
4146
+ e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`), H(r, "style", f = /*location*/
4147
+ e[0] === "headerMain" ? "max-width: auto" : void 0), H(t, "class", p = "CarouselWrapper " + /*location*/
4189
4148
  (e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : ""));
4190
4149
  },
4191
- m(w, _) {
4192
- k(w, t, _), I(t, r), I(r, n), I(r, i), I(r, o), I(o, s), I(s, a), I(s, u), m && m.m(s, null), e[34](s), e[35](o), I(r, l), I(r, h), e[37](t), g || (b = [
4193
- Te(
4150
+ m(C, x) {
4151
+ U(C, t, x), I(t, r), I(r, n), I(r, i), I(r, s), I(s, o), I(o, a), I(o, h), d && d.m(o, null), e[34](o), e[35](s), I(r, l), I(r, u), e[37](t), g || (b = [
4152
+ Se(
4194
4153
  n,
4195
4154
  "click",
4196
4155
  /*click_handler*/
4197
4156
  e[31]
4198
4157
  ),
4199
- Te(
4200
- h,
4158
+ Se(
4159
+ u,
4201
4160
  "click",
4202
4161
  /*click_handler_3*/
4203
4162
  e[36]
4204
4163
  )
4205
4164
  ], g = !0);
4206
4165
  },
4207
- p(w, _) {
4166
+ p(C, x) {
4208
4167
  /*sliderdata*/
4209
- w[9].length > 0 ? m ? m.p(w, _) : (m = Lt(w), m.c(), m.m(s, null)) : m && (m.d(1), m = null), _[0] & /*location*/
4210
- 1 && d !== (d = `CarouselContainer CarouselContainerMobile ${/*location*/
4211
- w[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && S(r, "class", d), _[0] & /*location*/
4168
+ C[9].length > 0 ? d ? d.p(C, x) : (d = It(C), d.c(), d.m(o, null)) : d && (d.d(1), d = null), x[0] & /*location*/
4169
+ 1 && m !== (m = `CarouselContainer CarouselContainerMobile ${/*location*/
4170
+ C[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) && H(r, "class", m), x[0] & /*location*/
4212
4171
  1 && f !== (f = /*location*/
4213
- w[0] === "headerMain" ? "max-width: auto" : void 0) && S(r, "style", f), _[0] & /*location*/
4172
+ C[0] === "headerMain" ? "max-width: auto" : void 0) && H(r, "style", f), x[0] & /*location*/
4214
4173
  1 && p !== (p = "CarouselWrapper " + /*location*/
4215
- (w[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && S(t, "class", p);
4174
+ (C[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "")) && H(t, "class", p);
4216
4175
  },
4217
- i: $,
4218
- o: $,
4219
- d(w) {
4220
- w && D(t), m && m.d(), e[34](null), e[35](null), e[37](null), g = !1, q(b);
4176
+ i: k,
4177
+ o: k,
4178
+ d(C) {
4179
+ C && F(t), d && d.d(), e[34](null), e[35](null), e[37](null), g = !1, Z(b);
4221
4180
  }
4222
4181
  };
4223
4182
  }
4224
- function eo(e, t, r) {
4225
- let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: o = "defaultEvent" } = t, { actionevent: s = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: u = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: h = "" } = t, { identity: d = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: m = "0" } = t, { showsubgroups: w = "false" } = t, { categoriesicon: _ = "false" } = t, { lobbyiconimage: C = "" } = t, { mygamesiconimage: P = "" } = t;
4226
- Zi({ withLocale: "en", translations: {} });
4227
- const O = () => {
4228
- fetch(f).then((x) => x.json()).then((x) => {
4229
- Object.keys(x).forEach((B) => {
4230
- Bt(B, x[B]);
4183
+ function ji(e, t, r) {
4184
+ let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: s = "defaultEvent" } = t, { actionevent: o = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: h = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { identity: m = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: p = !1 } = t, { issecondarymenu: g = !1 } = t, { lang: b = "" } = t, { activeindex: d = "0" } = t, { showsubgroups: C = "false" } = t, { categoriesicon: x = "false" } = t, { lobbyiconimage: S = "" } = t, { mygamesiconimage: R = "" } = t;
4185
+ Ri({ withLocale: "en", translations: {} });
4186
+ const D = () => {
4187
+ fetch(f).then((E) => E.json()).then((E) => {
4188
+ Object.keys(E).forEach((N) => {
4189
+ wt(N, E[N]);
4231
4190
  });
4232
- }).catch((x) => {
4233
- console.log(x);
4191
+ }).catch((E) => {
4192
+ console.log(E);
4234
4193
  });
4235
4194
  };
4236
- Object.keys(Mt).forEach((c) => {
4237
- Bt(c, Mt[c]);
4195
+ Object.keys(Ht).forEach((c) => {
4196
+ wt(c, Ht[c]);
4238
4197
  });
4239
- let L, H, N, R, G, he = [], ve = [], _e = [], j, Le = (c, x, B, z, V) => {
4240
- var Z;
4241
- if (!(c.subGroups && z === null)) {
4242
- if (Ee(), r(6, H = x), r(6, H), V != "secondary") {
4198
+ let P, w, M, L, G, le = [], be = [], ye = [], $, Oe = (c, E, N, W, j) => {
4199
+ if (!(c.subGroups && W === null)) {
4200
+ if (_e(), r(6, w = E), r(6, w), j != "secondary") {
4243
4201
  window.postMessage(
4244
4202
  {
4245
- type: s == "CategoryChange" ? "CategoryChange" : "NavigateTo",
4203
+ type: o == "CategoryChange" ? "CategoryChange" : "NavigateTo",
4246
4204
  buzz: "1",
4247
4205
  itemId: c.id,
4248
- index: x,
4206
+ index: E,
4249
4207
  item: c,
4250
4208
  path: c.path,
4251
4209
  externalLink: c.externalLink || !1,
4252
- target: ((Z = c.attrs) == null ? void 0 : Z.target) || null
4210
+ target: c.attrs?.target || null
4253
4211
  },
4254
4212
  window.location.href
4255
- ), r(7, N = null), r(8, R = null);
4213
+ ), r(7, M = null), r(8, L = null);
4256
4214
  return;
4257
4215
  }
4258
- r(7, N = z), r(7, N), r(8, R = N), window.postMessage(
4216
+ r(7, M = W), r(7, M), r(8, L = M), window.postMessage(
4259
4217
  {
4260
- type: s,
4261
- itemId: B.id,
4262
- subIndex: z,
4263
- subItem: B
4218
+ type: o,
4219
+ itemId: N.id,
4220
+ subIndex: W,
4221
+ subItem: N
4264
4222
  },
4265
4223
  window.location.href
4266
4224
  );
4267
4225
  }
4268
- }, st = () => {
4269
- j.scrollBy({ left: -250, behavior: "smooth" });
4270
- }, at = () => {
4271
- j.scrollBy({ left: 250, behavior: "smooth" });
4226
+ }, it = () => {
4227
+ $.scrollBy({ left: -250, behavior: "smooth" });
4228
+ }, ot = () => {
4229
+ $.scrollBy({ left: 250, behavior: "smooth" });
4272
4230
  };
4273
- const lt = (c) => {
4274
- c.data.type == "SliderData" && c.data.identity == d && (r(9, he = c.data.data), r(11, _e = new Array(he.length).fill(!1)), w == "true" && _r()), c.data.type == "GoToHomepage" && he.forEach((x, B) => {
4275
- x.path.endsWith("/casino") && (r(6, H = B), r(6, H));
4231
+ const st = (c) => {
4232
+ c.data.type == "SliderData" && c.data.identity == m && (r(9, le = c.data.data), r(11, ye = new Array(le.length).fill(!1)), C == "true" && dr()), c.data.type == "GoToHomepage" && le.forEach((E, N) => {
4233
+ E.path.endsWith("/casino") && (r(6, w = N), r(6, w));
4276
4234
  });
4277
- }, yr = () => {
4278
- Qi(b);
4279
- }, vr = (c, x, B) => {
4280
- if (u == "secondaryMenu" && n && i && b && c.id) {
4281
- let z = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
4282
- fetch(z.href).then((V) => V.json()).then((V) => {
4283
- V.index = x, r(10, ve = ve.concat(V)), w == "false" && window.postMessage(
4235
+ }, fr = () => {
4236
+ Di(b);
4237
+ }, mr = (c, E, N) => {
4238
+ if (h == "secondaryMenu" && n && i && b && c.id) {
4239
+ let W = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${b}`);
4240
+ fetch(W.href).then((j) => j.json()).then((j) => {
4241
+ j.index = E, r(10, be = be.concat(j)), C == "false" && window.postMessage(
4284
4242
  {
4285
- type: s,
4243
+ type: o,
4286
4244
  itemId: c.id,
4287
- index: x,
4245
+ index: E,
4288
4246
  item: c
4289
4247
  },
4290
4248
  window.location.href
4291
4249
  );
4292
- const Z = [];
4293
- ve.map((Mr) => (Mr.items.forEach((ut) => {
4294
- Z.find((Nr) => ut.id == Nr) || Z.push(ut.id);
4295
- }), Z.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: Z }, window.location.href);
4250
+ const ve = [];
4251
+ be.map((Hr) => (Hr.items.forEach((at) => {
4252
+ ve.find((Sr) => at.id == Sr) || ve.push(at.id);
4253
+ }), ve.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: ve }, window.location.href);
4296
4254
  }).then(() => {
4297
- L.querySelectorAll(".DropDown") && Ee();
4255
+ P.querySelectorAll(".DropDown") && _e();
4298
4256
  });
4299
4257
  }
4300
- u == "headerMain" && window.postMessage({ type: s, item: c }, window.location.href);
4301
- }, Ee = () => {
4302
- const c = L.querySelectorAll(".DropDown");
4303
- document.activeElement.blur(), j.classList.add("isScrolling");
4304
- for (let x = 0; x < c.length; x++)
4305
- c[x].style.transform = "translateX(-" + j.scrollLeft + "px)";
4306
- j.classList.remove("isScrolling");
4307
- }, _r = () => {
4308
- he.forEach((c, x) => {
4309
- var B;
4310
- ((B = c == null ? void 0 : c.subGroups) == null ? void 0 : B.count) > 0 && (r(11, _e[x] = !0, _e), vr(c, x));
4258
+ h == "headerMain" && window.postMessage({ type: o, item: c }, window.location.href);
4259
+ }, _e = () => {
4260
+ const c = P.querySelectorAll(".DropDown");
4261
+ document.activeElement.blur(), $.classList.add("isScrolling");
4262
+ for (let E = 0; E < c.length; E++)
4263
+ c[E].style.transform = "translateX(-" + $.scrollLeft + "px)";
4264
+ $.classList.remove("isScrolling");
4265
+ }, dr = () => {
4266
+ le.forEach((c, E) => {
4267
+ c?.subGroups?.count > 0 && (r(11, ye[E] = !0, ye), mr(c, E));
4311
4268
  });
4312
- }, Er = () => {
4269
+ }, pr = () => {
4313
4270
  let c = document.createElement("style");
4314
4271
  c.innerHTML = l, G.appendChild(c);
4315
- }, xr = () => {
4316
- let c = document.createElement("style"), x = new URL(h);
4317
- fetch(x.href).then((B) => B.text()).then((B) => {
4318
- c.innerHTML = B, setTimeout(
4272
+ }, gr = () => {
4273
+ let c = document.createElement("style"), E = new URL(u);
4274
+ fetch(E.href).then((N) => N.text()).then((N) => {
4275
+ c.innerHTML = N, setTimeout(
4319
4276
  () => {
4320
4277
  G.appendChild(c);
4321
4278
  },
4322
4279
  1
4323
4280
  );
4324
4281
  });
4325
- }, Cr = (c) => {
4326
- let x = "";
4327
- return c.id === "LOBBY" ? x = C : c.id === "MYGAMES" && (x = P), c.icon || x;
4282
+ }, br = (c) => {
4283
+ let E = "";
4284
+ return c.id === "LOBBY" ? E = S : c.id === "MYGAMES" && (E = R), c.icon || E;
4328
4285
  };
4329
- zr(() => (window.addEventListener("message", lt, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
4286
+ Fr(() => (window.addEventListener("message", st, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
4330
4287
  () => {
4331
- j.addEventListener("scroll", Ee);
4288
+ $.addEventListener("scroll", _e);
4332
4289
  },
4333
4290
  500
4334
- ), window.postMessage({ type: "SliderLoaded", identity: d }), () => {
4335
- window.removeEventListener("message", lt), L.removeEventListener("scroll", Ee);
4291
+ ), window.postMessage({ type: "SliderLoaded", identity: m }), () => {
4292
+ window.removeEventListener("message", st), P.removeEventListener("scroll", _e);
4336
4293
  }));
4337
- const wr = () => st(), Hr = (c, x, B, z, V) => {
4338
- Le(c, x, B, z, "secondary"), V.stopPropagation();
4339
- }, Sr = (c, x, B) => {
4340
- Le(c, x, null, null, "main"), B.preventDefault();
4294
+ const yr = () => it(), _r = (c, E, N, W, j) => {
4295
+ Oe(c, E, N, W, "secondary"), j.stopPropagation();
4296
+ }, vr = (c, E, N) => {
4297
+ Oe(c, E, null, null, "main"), N.preventDefault();
4341
4298
  };
4342
- function Tr(c) {
4343
- de[c ? "unshift" : "push"](() => {
4344
- L = c, r(5, L);
4299
+ function Er(c) {
4300
+ ce[c ? "unshift" : "push"](() => {
4301
+ P = c, r(5, P);
4345
4302
  });
4346
4303
  }
4347
- function Ar(c) {
4348
- de[c ? "unshift" : "push"](() => {
4349
- j = c, r(12, j);
4304
+ function xr(c) {
4305
+ ce[c ? "unshift" : "push"](() => {
4306
+ $ = c, r(12, $);
4350
4307
  });
4351
4308
  }
4352
- const Ir = () => at();
4353
- function Br(c) {
4354
- de[c ? "unshift" : "push"](() => {
4309
+ const Cr = () => ot();
4310
+ function wr(c) {
4311
+ ce[c ? "unshift" : "push"](() => {
4355
4312
  G = c, r(4, G);
4356
4313
  });
4357
4314
  }
4358
4315
  return e.$$set = (c) => {
4359
- "endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19, o = c.onclickeventname), "actionevent" in c && r(20, s = c.actionevent), "favoritesnumber" in c && r(21, a = c.favoritesnumber), "location" in c && r(0, u = c.location), "clientstyling" in c && r(22, l = c.clientstyling), "clientstylingurl" in c && r(23, h = c.clientstylingurl), "identity" in c && r(24, d = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26, p = c.isprimarymenu), "issecondarymenu" in c && r(27, g = c.issecondarymenu), "lang" in c && r(28, b = c.lang), "activeindex" in c && r(1, m = c.activeindex), "showsubgroups" in c && r(2, w = c.showsubgroups), "categoriesicon" in c && r(3, _ = c.categoriesicon), "lobbyiconimage" in c && r(29, C = c.lobbyiconimage), "mygamesiconimage" in c && r(30, P = c.mygamesiconimage);
4316
+ "endpoint" in c && r(17, n = c.endpoint), "datasource" in c && r(18, i = c.datasource), "onclickeventname" in c && r(19, s = c.onclickeventname), "actionevent" in c && r(20, o = c.actionevent), "favoritesnumber" in c && r(21, a = c.favoritesnumber), "location" in c && r(0, h = c.location), "clientstyling" in c && r(22, l = c.clientstyling), "clientstylingurl" in c && r(23, u = c.clientstylingurl), "identity" in c && r(24, m = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26, p = c.isprimarymenu), "issecondarymenu" in c && r(27, g = c.issecondarymenu), "lang" in c && r(28, b = c.lang), "activeindex" in c && r(1, d = c.activeindex), "showsubgroups" in c && r(2, C = c.showsubgroups), "categoriesicon" in c && r(3, x = c.categoriesicon), "lobbyiconimage" in c && r(29, S = c.lobbyiconimage), "mygamesiconimage" in c && r(30, R = c.mygamesiconimage);
4360
4317
  }, e.$$.update = () => {
4361
4318
  e.$$.dirty[0] & /*activeindex*/
4362
4319
  2, e.$$.dirty[0] & /*translationurl*/
4363
- 33554432 && f && O(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4364
- 4194320 && l && G && Er(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4365
- 8388624 && h && G && xr(), e.$$.dirty[0] & /*lang*/
4366
- 268435456 && b && yr();
4320
+ 33554432 && f && D(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4321
+ 4194320 && l && G && pr(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4322
+ 8388624 && u && G && gr(), e.$$.dirty[0] & /*lang*/
4323
+ 268435456 && b && fr();
4367
4324
  }, [
4368
- u,
4369
- m,
4370
- w,
4371
- _,
4325
+ h,
4326
+ d,
4327
+ C,
4328
+ x,
4372
4329
  G,
4330
+ P,
4331
+ w,
4332
+ M,
4373
4333
  L,
4374
- H,
4375
- N,
4376
- R,
4377
- he,
4378
- ve,
4379
- _e,
4380
- j,
4381
- Le,
4382
- st,
4383
- at,
4384
- Cr,
4334
+ le,
4335
+ be,
4336
+ ye,
4337
+ $,
4338
+ Oe,
4339
+ it,
4340
+ ot,
4341
+ br,
4385
4342
  n,
4386
4343
  i,
4387
- o,
4388
4344
  s,
4345
+ o,
4389
4346
  a,
4390
4347
  l,
4391
- h,
4392
- d,
4348
+ u,
4349
+ m,
4393
4350
  f,
4394
4351
  p,
4395
4352
  g,
4396
4353
  b,
4397
- C,
4398
- P,
4399
- wr,
4400
- Hr,
4401
- Sr,
4402
- Tr,
4403
- Ar,
4404
- Ir,
4405
- Br
4354
+ S,
4355
+ R,
4356
+ yr,
4357
+ _r,
4358
+ vr,
4359
+ Er,
4360
+ xr,
4361
+ Cr,
4362
+ wr
4406
4363
  ];
4407
4364
  }
4408
- class to extends on {
4365
+ class Vi extends zr {
4409
4366
  constructor(t) {
4410
- super(), rn(
4367
+ super(), Xr(
4411
4368
  this,
4412
4369
  t,
4413
- eo,
4414
- Ki,
4415
- jt,
4370
+ ji,
4371
+ $i,
4372
+ Rt,
4416
4373
  {
4417
4374
  endpoint: 17,
4418
4375
  datasource: 18,
@@ -4433,7 +4390,7 @@ class to extends on {
4433
4390
  lobbyiconimage: 29,
4434
4391
  mygamesiconimage: 30
4435
4392
  },
4436
- qi,
4393
+ Gi,
4437
4394
  [-1, -1]
4438
4395
  );
4439
4396
  }
@@ -4546,7 +4503,7 @@ class to extends on {
4546
4503
  this.$$set({ mygamesiconimage: t }), A();
4547
4504
  }
4548
4505
  }
4549
- nn(to, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
4506
+ Wr(Vi, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
4550
4507
  export {
4551
- to as default
4508
+ Vi as C
4552
4509
  };