@everymatrix/casino-slider 1.44.0 → 1.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5040 @@
1
+ var ln = Object.defineProperty, un = Object.defineProperties;
2
+ var hn = Object.getOwnPropertyDescriptors;
3
+ var xt = Object.getOwnPropertySymbols;
4
+ var cn = Object.prototype.hasOwnProperty, fn = Object.prototype.propertyIsEnumerable;
5
+ var $e = (e, t, r) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wt = (e, t) => {
6
+ for (var r in t || (t = {}))
7
+ cn.call(t, r) && $e(e, r, t[r]);
8
+ if (xt)
9
+ for (var r of xt(t))
10
+ fn.call(t, r) && $e(e, r, t[r]);
11
+ return e;
12
+ }, Ct = (e, t) => un(e, hn(t));
13
+ var D = (e, t, r) => $e(e, typeof t != "symbol" ? t + "" : t, r);
14
+ var St = (e, t, r) => new Promise((n, i) => {
15
+ var s = (l) => {
16
+ try {
17
+ a(r.next(l));
18
+ } catch (u) {
19
+ i(u);
20
+ }
21
+ }, o = (l) => {
22
+ try {
23
+ a(r.throw(l));
24
+ } catch (u) {
25
+ i(u);
26
+ }
27
+ }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
28
+ a((r = r.apply(e, t)).next());
29
+ });
30
+ function G() {
31
+ }
32
+ function lr(e) {
33
+ return e();
34
+ }
35
+ function Ht() {
36
+ return /* @__PURE__ */ Object.create(null);
37
+ }
38
+ function K(e) {
39
+ e.forEach(lr);
40
+ }
41
+ function ft(e) {
42
+ return typeof e == "function";
43
+ }
44
+ function ur(e, t) {
45
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
+ }
47
+ let He;
48
+ function Tt(e, t) {
49
+ return e === t ? !0 : (He || (He = document.createElement("a")), He.href = t, e === He.href);
50
+ }
51
+ function gn(e) {
52
+ return Object.keys(e).length === 0;
53
+ }
54
+ function dn(e, ...t) {
55
+ if (e == null) {
56
+ for (const n of t)
57
+ n(void 0);
58
+ return G;
59
+ }
60
+ const r = e.subscribe(...t);
61
+ return r.unsubscribe ? () => r.unsubscribe() : r;
62
+ }
63
+ function At(e) {
64
+ return e == null ? "" : e;
65
+ }
66
+ function I(e, t) {
67
+ e.appendChild(t);
68
+ }
69
+ function vn(e, t, r) {
70
+ const n = pn(e);
71
+ if (!n.getElementById(t)) {
72
+ const i = P("style");
73
+ i.id = t, i.textContent = r, mn(n, i);
74
+ }
75
+ }
76
+ function pn(e) {
77
+ if (!e) return document;
78
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
79
+ return t && /** @type {ShadowRoot} */
80
+ t.host ? (
81
+ /** @type {ShadowRoot} */
82
+ t
83
+ ) : e.ownerDocument;
84
+ }
85
+ function mn(e, t) {
86
+ return I(
87
+ /** @type {Document} */
88
+ e.head || e,
89
+ t
90
+ ), t.sheet;
91
+ }
92
+ function U(e, t, r) {
93
+ e.insertBefore(t, r || null);
94
+ }
95
+ function R(e) {
96
+ e.parentNode && e.parentNode.removeChild(e);
97
+ }
98
+ function bn(e, t) {
99
+ for (let r = 0; r < e.length; r += 1)
100
+ e[r] && e[r].d(t);
101
+ }
102
+ function P(e) {
103
+ return document.createElement(e);
104
+ }
105
+ function xe(e) {
106
+ return document.createTextNode(e);
107
+ }
108
+ function J() {
109
+ return xe(" ");
110
+ }
111
+ function be() {
112
+ return xe("");
113
+ }
114
+ function Oe(e, t, r, n) {
115
+ return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
116
+ }
117
+ function C(e, t, r) {
118
+ r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
119
+ }
120
+ function yn(e) {
121
+ return Array.from(e.childNodes);
122
+ }
123
+ function gt(e, t) {
124
+ t = "" + t, e.data !== t && (e.data = /** @type {string} */
125
+ t);
126
+ }
127
+ function _n(e) {
128
+ const t = {};
129
+ return e.childNodes.forEach(
130
+ /** @param {Element} node */
131
+ (r) => {
132
+ t[r.slot || "default"] = !0;
133
+ }
134
+ ), t;
135
+ }
136
+ let ye;
137
+ function pe(e) {
138
+ ye = e;
139
+ }
140
+ function En() {
141
+ if (!ye) throw new Error("Function called outside component initialization");
142
+ return ye;
143
+ }
144
+ function xn(e) {
145
+ En().$$.on_mount.push(e);
146
+ }
147
+ const ne = [], me = [];
148
+ let ie = [];
149
+ const It = [], wn = /* @__PURE__ */ Promise.resolve();
150
+ let qe = !1;
151
+ function Cn() {
152
+ qe || (qe = !0, wn.then(A));
153
+ }
154
+ function Je(e) {
155
+ ie.push(e);
156
+ }
157
+ const je = /* @__PURE__ */ new Set();
158
+ let te = 0;
159
+ function A() {
160
+ if (te !== 0)
161
+ return;
162
+ const e = ye;
163
+ do {
164
+ try {
165
+ for (; te < ne.length; ) {
166
+ const t = ne[te];
167
+ te++, pe(t), Sn(t.$$);
168
+ }
169
+ } catch (t) {
170
+ throw ne.length = 0, te = 0, t;
171
+ }
172
+ for (pe(null), ne.length = 0, te = 0; me.length; ) me.pop()();
173
+ for (let t = 0; t < ie.length; t += 1) {
174
+ const r = ie[t];
175
+ je.has(r) || (je.add(r), r());
176
+ }
177
+ ie.length = 0;
178
+ } while (ne.length);
179
+ for (; It.length; )
180
+ It.pop()();
181
+ qe = !1, je.clear(), pe(e);
182
+ }
183
+ function Sn(e) {
184
+ if (e.fragment !== null) {
185
+ e.update(), K(e.before_update);
186
+ const t = e.dirty;
187
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Je);
188
+ }
189
+ }
190
+ function Hn(e) {
191
+ const t = [], r = [];
192
+ ie.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ie = t;
193
+ }
194
+ const Tn = /* @__PURE__ */ new Set();
195
+ function hr(e, t) {
196
+ e && e.i && (Tn.delete(e), e.i(t));
197
+ }
198
+ function oe(e) {
199
+ return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
200
+ }
201
+ function cr(e, t) {
202
+ e.d(1), t.delete(e.key);
203
+ }
204
+ function fr(e, t, r, n, i, s, o, a, l, u, h, g) {
205
+ let f = e.length, d = s.length, m = f;
206
+ const v = {};
207
+ for (; m--; ) v[e[m].key] = m;
208
+ const p = [], H = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), w = [];
209
+ for (m = d; m--; ) {
210
+ const S = g(i, s, m), M = r(S);
211
+ let O = o.get(M);
212
+ O ? w.push(() => O.p(S, t)) : (O = u(M, S), O.c()), H.set(M, p[m] = O), M in v && _.set(M, Math.abs(m - v[M]));
213
+ }
214
+ const L = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set();
215
+ function k(S) {
216
+ hr(S, 1), S.m(a, h), o.set(S.key, S), h = S.first, d--;
217
+ }
218
+ for (; f && d; ) {
219
+ const S = p[d - 1], M = e[f - 1], O = S.key, X = M.key;
220
+ S === M ? (h = S.first, f--, d--) : H.has(X) ? !o.has(O) || L.has(O) ? k(S) : N.has(X) ? f-- : _.get(O) > _.get(X) ? (N.add(O), k(S)) : (L.add(X), f--) : (l(M, o), f--);
221
+ }
222
+ for (; f--; ) {
223
+ const S = e[f];
224
+ H.has(S.key) || l(S, o);
225
+ }
226
+ for (; d; ) k(p[d - 1]);
227
+ return K(w), p;
228
+ }
229
+ function An(e, t, r) {
230
+ const { fragment: n, after_update: i } = e.$$;
231
+ n && n.m(t, r), Je(() => {
232
+ const s = e.$$.on_mount.map(lr).filter(ft);
233
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
234
+ }), i.forEach(Je);
235
+ }
236
+ function In(e, t) {
237
+ const r = e.$$;
238
+ r.fragment !== null && (Hn(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
239
+ }
240
+ function Bn(e, t) {
241
+ e.$$.dirty[0] === -1 && (ne.push(e), Cn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
242
+ }
243
+ function Pn(e, t, r, n, i, s, o = null, a = [-1]) {
244
+ const l = ye;
245
+ pe(e);
246
+ const u = e.$$ = {
247
+ fragment: null,
248
+ ctx: [],
249
+ // state
250
+ props: s,
251
+ update: G,
252
+ not_equal: i,
253
+ bound: Ht(),
254
+ // lifecycle
255
+ on_mount: [],
256
+ on_destroy: [],
257
+ on_disconnect: [],
258
+ before_update: [],
259
+ after_update: [],
260
+ context: new Map(t.context || (l ? l.$$.context : [])),
261
+ // everything else
262
+ callbacks: Ht(),
263
+ dirty: a,
264
+ skip_bound: !1,
265
+ root: t.target || l.$$.root
266
+ };
267
+ o && o(u.root);
268
+ let h = !1;
269
+ if (u.ctx = r ? r(e, t.props || {}, (g, f, ...d) => {
270
+ const m = d.length ? d[0] : f;
271
+ return u.ctx && i(u.ctx[g], u.ctx[g] = m) && (!u.skip_bound && u.bound[g] && u.bound[g](m), h && Bn(e, g)), f;
272
+ }) : [], u.update(), h = !0, K(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
273
+ if (t.hydrate) {
274
+ const g = yn(t.target);
275
+ u.fragment && u.fragment.l(g), g.forEach(R);
276
+ } else
277
+ u.fragment && u.fragment.c();
278
+ t.intro && hr(e.$$.fragment), An(e, t.target, t.anchor), A();
279
+ }
280
+ pe(l);
281
+ }
282
+ let gr;
283
+ typeof HTMLElement == "function" && (gr = class extends HTMLElement {
284
+ constructor(t, r, n) {
285
+ super();
286
+ /** The Svelte component constructor */
287
+ D(this, "$$ctor");
288
+ /** Slots */
289
+ D(this, "$$s");
290
+ /** The Svelte component instance */
291
+ D(this, "$$c");
292
+ /** Whether or not the custom element is connected */
293
+ D(this, "$$cn", !1);
294
+ /** Component props data */
295
+ D(this, "$$d", {});
296
+ /** `true` if currently in the process of reflecting component props back to attributes */
297
+ D(this, "$$r", !1);
298
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
299
+ D(this, "$$p_d", {});
300
+ /** @type {Record<string, Function[]>} Event listeners */
301
+ D(this, "$$l", {});
302
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
303
+ D(this, "$$l_u", /* @__PURE__ */ new Map());
304
+ this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
305
+ }
306
+ addEventListener(t, r, n) {
307
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
308
+ const i = this.$$c.$on(t, r);
309
+ this.$$l_u.set(r, i);
310
+ }
311
+ super.addEventListener(t, r, n);
312
+ }
313
+ removeEventListener(t, r, n) {
314
+ if (super.removeEventListener(t, r, n), this.$$c) {
315
+ const i = this.$$l_u.get(r);
316
+ i && (i(), this.$$l_u.delete(r));
317
+ }
318
+ }
319
+ connectedCallback() {
320
+ return St(this, null, function* () {
321
+ if (this.$$cn = !0, !this.$$c) {
322
+ let t = function(s) {
323
+ return () => {
324
+ let o;
325
+ return {
326
+ c: function() {
327
+ o = P("slot"), s !== "default" && C(o, "name", s);
328
+ },
329
+ /**
330
+ * @param {HTMLElement} target
331
+ * @param {HTMLElement} [anchor]
332
+ */
333
+ m: function(u, h) {
334
+ U(u, o, h);
335
+ },
336
+ d: function(u) {
337
+ u && R(o);
338
+ }
339
+ };
340
+ };
341
+ };
342
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
343
+ return;
344
+ const r = {}, n = _n(this);
345
+ for (const s of this.$$s)
346
+ s in n && (r[s] = [t(s)]);
347
+ for (const s of this.attributes) {
348
+ const o = this.$$g_p(s.name);
349
+ o in this.$$d || (this.$$d[o] = Ie(o, s.value, this.$$p_d, "toProp"));
350
+ }
351
+ for (const s in this.$$p_d)
352
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
353
+ this.$$c = new this.$$ctor({
354
+ target: this.shadowRoot || this,
355
+ props: Ct(wt({}, this.$$d), {
356
+ $$slots: r,
357
+ $$scope: {
358
+ ctx: []
359
+ }
360
+ })
361
+ });
362
+ const i = () => {
363
+ this.$$r = !0;
364
+ for (const s in this.$$p_d)
365
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
366
+ const o = Ie(
367
+ s,
368
+ this.$$d[s],
369
+ this.$$p_d,
370
+ "toAttribute"
371
+ );
372
+ o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
373
+ }
374
+ this.$$r = !1;
375
+ };
376
+ this.$$c.$$.after_update.push(i), i();
377
+ for (const s in this.$$l)
378
+ for (const o of this.$$l[s]) {
379
+ const a = this.$$c.$on(s, o);
380
+ this.$$l_u.set(o, a);
381
+ }
382
+ this.$$l = {};
383
+ }
384
+ });
385
+ }
386
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
387
+ // and setting attributes through setAttribute etc, this is helpful
388
+ attributeChangedCallback(t, r, n) {
389
+ var i;
390
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ie(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
391
+ }
392
+ disconnectedCallback() {
393
+ this.$$cn = !1, Promise.resolve().then(() => {
394
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
395
+ });
396
+ }
397
+ $$g_p(t) {
398
+ return Object.keys(this.$$p_d).find(
399
+ (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
400
+ ) || t;
401
+ }
402
+ });
403
+ function Ie(e, t, r, n) {
404
+ var s;
405
+ const i = (s = r[e]) == null ? void 0 : s.type;
406
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
407
+ return t;
408
+ if (n === "toAttribute")
409
+ switch (i) {
410
+ case "Object":
411
+ case "Array":
412
+ return t == null ? null : JSON.stringify(t);
413
+ case "Boolean":
414
+ return t ? "" : null;
415
+ case "Number":
416
+ return t == null ? null : t;
417
+ default:
418
+ return t;
419
+ }
420
+ else
421
+ switch (i) {
422
+ case "Object":
423
+ case "Array":
424
+ return t && JSON.parse(t);
425
+ case "Boolean":
426
+ return t;
427
+ case "Number":
428
+ return t != null ? +t : t;
429
+ default:
430
+ return t;
431
+ }
432
+ }
433
+ function Mn(e, t, r, n, i, s) {
434
+ let o = class extends gr {
435
+ constructor() {
436
+ super(e, r, i), this.$$p_d = t;
437
+ }
438
+ static get observedAttributes() {
439
+ return Object.keys(t).map(
440
+ (a) => (t[a].attribute || a).toLowerCase()
441
+ );
442
+ }
443
+ };
444
+ return Object.keys(t).forEach((a) => {
445
+ Object.defineProperty(o.prototype, a, {
446
+ get() {
447
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
448
+ },
449
+ set(l) {
450
+ var u;
451
+ l = Ie(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
452
+ }
453
+ });
454
+ }), n.forEach((a) => {
455
+ Object.defineProperty(o.prototype, a, {
456
+ get() {
457
+ var l;
458
+ return (l = this.$$c) == null ? void 0 : l[a];
459
+ }
460
+ });
461
+ }), e.element = /** @type {any} */
462
+ o, o;
463
+ }
464
+ class On {
465
+ constructor() {
466
+ /**
467
+ * ### PRIVATE API
468
+ *
469
+ * Do not use, may change at any time
470
+ *
471
+ * @type {any}
472
+ */
473
+ D(this, "$$");
474
+ /**
475
+ * ### PRIVATE API
476
+ *
477
+ * Do not use, may change at any time
478
+ *
479
+ * @type {any}
480
+ */
481
+ D(this, "$$set");
482
+ }
483
+ /** @returns {void} */
484
+ $destroy() {
485
+ In(this, 1), this.$destroy = G;
486
+ }
487
+ /**
488
+ * @template {Extract<keyof Events, string>} K
489
+ * @param {K} type
490
+ * @param {((e: Events[K]) => void) | null | undefined} callback
491
+ * @returns {() => void}
492
+ */
493
+ $on(t, r) {
494
+ if (!ft(r))
495
+ return G;
496
+ const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
497
+ return n.push(r), () => {
498
+ const i = n.indexOf(r);
499
+ i !== -1 && n.splice(i, 1);
500
+ };
501
+ }
502
+ /**
503
+ * @param {Partial<Props>} props
504
+ * @returns {void}
505
+ */
506
+ $set(t) {
507
+ this.$$set && !gn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
508
+ }
509
+ }
510
+ const Ln = "4";
511
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ln);
512
+ var Ke = function(e, t) {
513
+ return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
514
+ r.__proto__ = n;
515
+ } || function(r, n) {
516
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
517
+ }, Ke(e, t);
518
+ };
519
+ function V(e, t) {
520
+ if (typeof t != "function" && t !== null)
521
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
522
+ Ke(e, t);
523
+ function r() {
524
+ this.constructor = e;
525
+ }
526
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
527
+ }
528
+ var E = function() {
529
+ return E = Object.assign || function(t) {
530
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
531
+ r = arguments[n];
532
+ for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
533
+ }
534
+ return t;
535
+ }, E.apply(this, arguments);
536
+ };
537
+ function Nn(e, t) {
538
+ var r = {};
539
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
540
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
541
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
542
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
543
+ return r;
544
+ }
545
+ function et(e) {
546
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
547
+ if (r) return r.call(e);
548
+ if (e && typeof e.length == "number") return {
549
+ next: function() {
550
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
551
+ }
552
+ };
553
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
554
+ }
555
+ function tt(e, t) {
556
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
557
+ if (!r) return e;
558
+ var n = r.call(e), i, s = [], o;
559
+ try {
560
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) s.push(i.value);
561
+ } catch (a) {
562
+ o = { error: a };
563
+ } finally {
564
+ try {
565
+ i && !i.done && (r = n.return) && r.call(n);
566
+ } finally {
567
+ if (o) throw o.error;
568
+ }
569
+ }
570
+ return s;
571
+ }
572
+ function se(e, t, r) {
573
+ if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
574
+ (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
575
+ return e.concat(s || Array.prototype.slice.call(t));
576
+ }
577
+ function j(e) {
578
+ return typeof e == "function";
579
+ }
580
+ function dr(e) {
581
+ var t = function(n) {
582
+ Error.call(n), n.stack = new Error().stack;
583
+ }, r = e(t);
584
+ return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
585
+ }
586
+ var Ve = dr(function(e) {
587
+ return function(r) {
588
+ e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
589
+ ` + r.map(function(n, i) {
590
+ return i + 1 + ") " + n.toString();
591
+ }).join(`
592
+ `) : "", this.name = "UnsubscriptionError", this.errors = r;
593
+ };
594
+ });
595
+ function rt(e, t) {
596
+ if (e) {
597
+ var r = e.indexOf(t);
598
+ 0 <= r && e.splice(r, 1);
599
+ }
600
+ }
601
+ var Fe = function() {
602
+ function e(t) {
603
+ this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
604
+ }
605
+ return e.prototype.unsubscribe = function() {
606
+ var t, r, n, i, s;
607
+ if (!this.closed) {
608
+ this.closed = !0;
609
+ var o = this._parentage;
610
+ if (o)
611
+ if (this._parentage = null, Array.isArray(o))
612
+ try {
613
+ for (var a = et(o), l = a.next(); !l.done; l = a.next()) {
614
+ var u = l.value;
615
+ u.remove(this);
616
+ }
617
+ } catch (v) {
618
+ t = { error: v };
619
+ } finally {
620
+ try {
621
+ l && !l.done && (r = a.return) && r.call(a);
622
+ } finally {
623
+ if (t) throw t.error;
624
+ }
625
+ }
626
+ else
627
+ o.remove(this);
628
+ var h = this.initialTeardown;
629
+ if (j(h))
630
+ try {
631
+ h();
632
+ } catch (v) {
633
+ s = v instanceof Ve ? v.errors : [v];
634
+ }
635
+ var g = this._finalizers;
636
+ if (g) {
637
+ this._finalizers = null;
638
+ try {
639
+ for (var f = et(g), d = f.next(); !d.done; d = f.next()) {
640
+ var m = d.value;
641
+ try {
642
+ Bt(m);
643
+ } catch (v) {
644
+ s = s != null ? s : [], v instanceof Ve ? s = se(se([], tt(s)), tt(v.errors)) : s.push(v);
645
+ }
646
+ }
647
+ } catch (v) {
648
+ n = { error: v };
649
+ } finally {
650
+ try {
651
+ d && !d.done && (i = f.return) && i.call(f);
652
+ } finally {
653
+ if (n) throw n.error;
654
+ }
655
+ }
656
+ }
657
+ if (s)
658
+ throw new Ve(s);
659
+ }
660
+ }, e.prototype.add = function(t) {
661
+ var r;
662
+ if (t && t !== this)
663
+ if (this.closed)
664
+ Bt(t);
665
+ else {
666
+ if (t instanceof e) {
667
+ if (t.closed || t._hasParent(this))
668
+ return;
669
+ t._addParent(this);
670
+ }
671
+ (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
672
+ }
673
+ }, e.prototype._hasParent = function(t) {
674
+ var r = this._parentage;
675
+ return r === t || Array.isArray(r) && r.includes(t);
676
+ }, e.prototype._addParent = function(t) {
677
+ var r = this._parentage;
678
+ this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
679
+ }, e.prototype._removeParent = function(t) {
680
+ var r = this._parentage;
681
+ r === t ? this._parentage = null : Array.isArray(r) && rt(r, t);
682
+ }, e.prototype.remove = function(t) {
683
+ var r = this._finalizers;
684
+ r && rt(r, t), t instanceof e && t._removeParent(this);
685
+ }, e.EMPTY = function() {
686
+ var t = new e();
687
+ return t.closed = !0, t;
688
+ }(), e;
689
+ }(), vr = Fe.EMPTY;
690
+ function pr(e) {
691
+ return e instanceof Fe || e && "closed" in e && j(e.remove) && j(e.add) && j(e.unsubscribe);
692
+ }
693
+ function Bt(e) {
694
+ j(e) ? e() : e.unsubscribe();
695
+ }
696
+ var mr = {
697
+ onUnhandledError: null,
698
+ onStoppedNotification: null,
699
+ Promise: void 0,
700
+ useDeprecatedSynchronousErrorHandling: !1,
701
+ useDeprecatedNextContext: !1
702
+ }, br = {
703
+ setTimeout: function(e, t) {
704
+ for (var r = [], n = 2; n < arguments.length; n++)
705
+ r[n - 2] = arguments[n];
706
+ return setTimeout.apply(void 0, se([e, t], tt(r)));
707
+ },
708
+ clearTimeout: function(e) {
709
+ var t = br.delegate;
710
+ return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
711
+ },
712
+ delegate: void 0
713
+ };
714
+ function Fn(e) {
715
+ br.setTimeout(function() {
716
+ throw e;
717
+ });
718
+ }
719
+ function Pt() {
720
+ }
721
+ function Be(e) {
722
+ e();
723
+ }
724
+ var yr = function(e) {
725
+ V(t, e);
726
+ function t(r) {
727
+ var n = e.call(this) || this;
728
+ return n.isStopped = !1, r ? (n.destination = r, pr(r) && r.add(n)) : n.destination = Gn, n;
729
+ }
730
+ return t.create = function(r, n, i) {
731
+ return new nt(r, n, i);
732
+ }, t.prototype.next = function(r) {
733
+ this.isStopped || this._next(r);
734
+ }, t.prototype.error = function(r) {
735
+ this.isStopped || (this.isStopped = !0, this._error(r));
736
+ }, t.prototype.complete = function() {
737
+ this.isStopped || (this.isStopped = !0, this._complete());
738
+ }, t.prototype.unsubscribe = function() {
739
+ this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
740
+ }, t.prototype._next = function(r) {
741
+ this.destination.next(r);
742
+ }, t.prototype._error = function(r) {
743
+ try {
744
+ this.destination.error(r);
745
+ } finally {
746
+ this.unsubscribe();
747
+ }
748
+ }, t.prototype._complete = function() {
749
+ try {
750
+ this.destination.complete();
751
+ } finally {
752
+ this.unsubscribe();
753
+ }
754
+ }, t;
755
+ }(Fe), Rn = Function.prototype.bind;
756
+ function Xe(e, t) {
757
+ return Rn.call(e, t);
758
+ }
759
+ var Dn = function() {
760
+ function e(t) {
761
+ this.partialObserver = t;
762
+ }
763
+ return e.prototype.next = function(t) {
764
+ var r = this.partialObserver;
765
+ if (r.next)
766
+ try {
767
+ r.next(t);
768
+ } catch (n) {
769
+ Te(n);
770
+ }
771
+ }, e.prototype.error = function(t) {
772
+ var r = this.partialObserver;
773
+ if (r.error)
774
+ try {
775
+ r.error(t);
776
+ } catch (n) {
777
+ Te(n);
778
+ }
779
+ else
780
+ Te(t);
781
+ }, e.prototype.complete = function() {
782
+ var t = this.partialObserver;
783
+ if (t.complete)
784
+ try {
785
+ t.complete();
786
+ } catch (r) {
787
+ Te(r);
788
+ }
789
+ }, e;
790
+ }(), nt = function(e) {
791
+ V(t, e);
792
+ function t(r, n, i) {
793
+ var s = e.call(this) || this, o;
794
+ if (j(r) || !r)
795
+ o = {
796
+ next: r != null ? r : void 0,
797
+ error: n != null ? n : void 0,
798
+ complete: i != null ? i : void 0
799
+ };
800
+ else {
801
+ var a;
802
+ s && mr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
803
+ return s.unsubscribe();
804
+ }, o = {
805
+ next: r.next && Xe(r.next, a),
806
+ error: r.error && Xe(r.error, a),
807
+ complete: r.complete && Xe(r.complete, a)
808
+ }) : o = r;
809
+ }
810
+ return s.destination = new Dn(o), s;
811
+ }
812
+ return t;
813
+ }(yr);
814
+ function Te(e) {
815
+ Fn(e);
816
+ }
817
+ function Un(e) {
818
+ throw e;
819
+ }
820
+ var Gn = {
821
+ closed: !0,
822
+ next: Pt,
823
+ error: Un,
824
+ complete: Pt
825
+ }, kn = function() {
826
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
827
+ }();
828
+ function $n(e) {
829
+ return e;
830
+ }
831
+ function jn(e) {
832
+ return e.length === 0 ? $n : e.length === 1 ? e[0] : function(r) {
833
+ return e.reduce(function(n, i) {
834
+ return i(n);
835
+ }, r);
836
+ };
837
+ }
838
+ var Mt = function() {
839
+ function e(t) {
840
+ t && (this._subscribe = t);
841
+ }
842
+ return e.prototype.lift = function(t) {
843
+ var r = new e();
844
+ return r.source = this, r.operator = t, r;
845
+ }, e.prototype.subscribe = function(t, r, n) {
846
+ var i = this, s = Xn(t) ? t : new nt(t, r, n);
847
+ return Be(function() {
848
+ var o = i, a = o.operator, l = o.source;
849
+ s.add(a ? a.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
850
+ }), s;
851
+ }, e.prototype._trySubscribe = function(t) {
852
+ try {
853
+ return this._subscribe(t);
854
+ } catch (r) {
855
+ t.error(r);
856
+ }
857
+ }, e.prototype.forEach = function(t, r) {
858
+ var n = this;
859
+ return r = Ot(r), new r(function(i, s) {
860
+ var o = new nt({
861
+ next: function(a) {
862
+ try {
863
+ t(a);
864
+ } catch (l) {
865
+ s(l), o.unsubscribe();
866
+ }
867
+ },
868
+ error: s,
869
+ complete: i
870
+ });
871
+ n.subscribe(o);
872
+ });
873
+ }, e.prototype._subscribe = function(t) {
874
+ var r;
875
+ return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
876
+ }, e.prototype[kn] = function() {
877
+ return this;
878
+ }, e.prototype.pipe = function() {
879
+ for (var t = [], r = 0; r < arguments.length; r++)
880
+ t[r] = arguments[r];
881
+ return jn(t)(this);
882
+ }, e.prototype.toPromise = function(t) {
883
+ var r = this;
884
+ return t = Ot(t), new t(function(n, i) {
885
+ var s;
886
+ r.subscribe(function(o) {
887
+ return s = o;
888
+ }, function(o) {
889
+ return i(o);
890
+ }, function() {
891
+ return n(s);
892
+ });
893
+ });
894
+ }, e.create = function(t) {
895
+ return new e(t);
896
+ }, e;
897
+ }();
898
+ function Ot(e) {
899
+ var t;
900
+ return (t = e != null ? e : mr.Promise) !== null && t !== void 0 ? t : Promise;
901
+ }
902
+ function Vn(e) {
903
+ return e && j(e.next) && j(e.error) && j(e.complete);
904
+ }
905
+ function Xn(e) {
906
+ return e && e instanceof yr || Vn(e) && pr(e);
907
+ }
908
+ var Wn = dr(function(e) {
909
+ return function() {
910
+ e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
911
+ };
912
+ }), _r = function(e) {
913
+ V(t, e);
914
+ function t() {
915
+ var r = e.call(this) || this;
916
+ return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
917
+ }
918
+ return t.prototype.lift = function(r) {
919
+ var n = new Lt(this, this);
920
+ return n.operator = r, n;
921
+ }, t.prototype._throwIfClosed = function() {
922
+ if (this.closed)
923
+ throw new Wn();
924
+ }, t.prototype.next = function(r) {
925
+ var n = this;
926
+ Be(function() {
927
+ var i, s;
928
+ if (n._throwIfClosed(), !n.isStopped) {
929
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
930
+ try {
931
+ for (var o = et(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
932
+ var l = a.value;
933
+ l.next(r);
934
+ }
935
+ } catch (u) {
936
+ i = { error: u };
937
+ } finally {
938
+ try {
939
+ a && !a.done && (s = o.return) && s.call(o);
940
+ } finally {
941
+ if (i) throw i.error;
942
+ }
943
+ }
944
+ }
945
+ });
946
+ }, t.prototype.error = function(r) {
947
+ var n = this;
948
+ Be(function() {
949
+ if (n._throwIfClosed(), !n.isStopped) {
950
+ n.hasError = n.isStopped = !0, n.thrownError = r;
951
+ for (var i = n.observers; i.length; )
952
+ i.shift().error(r);
953
+ }
954
+ });
955
+ }, t.prototype.complete = function() {
956
+ var r = this;
957
+ Be(function() {
958
+ if (r._throwIfClosed(), !r.isStopped) {
959
+ r.isStopped = !0;
960
+ for (var n = r.observers; n.length; )
961
+ n.shift().complete();
962
+ }
963
+ });
964
+ }, t.prototype.unsubscribe = function() {
965
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
966
+ }, Object.defineProperty(t.prototype, "observed", {
967
+ get: function() {
968
+ var r;
969
+ return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
970
+ },
971
+ enumerable: !1,
972
+ configurable: !0
973
+ }), t.prototype._trySubscribe = function(r) {
974
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
975
+ }, t.prototype._subscribe = function(r) {
976
+ return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
977
+ }, t.prototype._innerSubscribe = function(r) {
978
+ var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
979
+ return s || o ? vr : (this.currentObservers = null, a.push(r), new Fe(function() {
980
+ n.currentObservers = null, rt(a, r);
981
+ }));
982
+ }, t.prototype._checkFinalizedStatuses = function(r) {
983
+ var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
984
+ i ? r.error(s) : o && r.complete();
985
+ }, t.prototype.asObservable = function() {
986
+ var r = new Mt();
987
+ return r.source = this, r;
988
+ }, t.create = function(r, n) {
989
+ return new Lt(r, n);
990
+ }, t;
991
+ }(Mt), Lt = function(e) {
992
+ V(t, e);
993
+ function t(r, n) {
994
+ var i = e.call(this) || this;
995
+ return i.destination = r, i.source = n, i;
996
+ }
997
+ return t.prototype.next = function(r) {
998
+ var n, i;
999
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
1000
+ }, t.prototype.error = function(r) {
1001
+ var n, i;
1002
+ (i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
1003
+ }, t.prototype.complete = function() {
1004
+ var r, n;
1005
+ (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1006
+ }, t.prototype._subscribe = function(r) {
1007
+ var n, i;
1008
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : vr;
1009
+ }, t;
1010
+ }(_r), Er = {
1011
+ now: function() {
1012
+ return (Er.delegate || Date).now();
1013
+ },
1014
+ delegate: void 0
1015
+ }, zn = function(e) {
1016
+ V(t, e);
1017
+ function t(r, n, i) {
1018
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Er);
1019
+ var s = e.call(this) || this;
1020
+ return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
1021
+ }
1022
+ return t.prototype.next = function(r) {
1023
+ var n = this, i = n.isStopped, s = n._buffer, o = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
1024
+ i || (s.push(r), !o && s.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
1025
+ }, t.prototype._subscribe = function(r) {
1026
+ this._throwIfClosed(), this._trimBuffer();
1027
+ for (var n = this._innerSubscribe(r), i = this, s = i._infiniteTimeWindow, o = i._buffer, a = o.slice(), l = 0; l < a.length && !r.closed; l += s ? 1 : 2)
1028
+ r.next(a[l]);
1029
+ return this._checkFinalizedStatuses(r), n;
1030
+ }, t.prototype._trimBuffer = function() {
1031
+ var r = this, n = r._bufferSize, i = r._timestampProvider, s = r._buffer, o = r._infiniteTimeWindow, a = (o ? 1 : 2) * n;
1032
+ if (n < 1 / 0 && a < s.length && s.splice(0, s.length - a), !o) {
1033
+ for (var l = i.now(), u = 0, h = 1; h < s.length && s[h] <= l; h += 2)
1034
+ u = h;
1035
+ u && s.splice(0, u + 1);
1036
+ }
1037
+ }, t;
1038
+ }(_r);
1039
+ const Nt = [], Ft = {}, Zn = (e, t = 0) => {
1040
+ if (Nt.indexOf(e) == -1) {
1041
+ const r = new zn(t);
1042
+ Ft[e] = r, Nt.push(e);
1043
+ }
1044
+ return Ft[e];
1045
+ }, re = [];
1046
+ function Yn(e, t) {
1047
+ return {
1048
+ subscribe: Re(e, t).subscribe
1049
+ };
1050
+ }
1051
+ function Re(e, t = G) {
1052
+ let r;
1053
+ const n = /* @__PURE__ */ new Set();
1054
+ function i(a) {
1055
+ if (ur(e, a) && (e = a, r)) {
1056
+ const l = !re.length;
1057
+ for (const u of n)
1058
+ u[1](), re.push(u, e);
1059
+ if (l) {
1060
+ for (let u = 0; u < re.length; u += 2)
1061
+ re[u][0](re[u + 1]);
1062
+ re.length = 0;
1063
+ }
1064
+ }
1065
+ }
1066
+ function s(a) {
1067
+ i(a(e));
1068
+ }
1069
+ function o(a, l = G) {
1070
+ const u = [a, l];
1071
+ return n.add(u), n.size === 1 && (r = t(i, s) || G), a(e), () => {
1072
+ n.delete(u), n.size === 0 && r && (r(), r = null);
1073
+ };
1074
+ }
1075
+ return { set: i, update: s, subscribe: o };
1076
+ }
1077
+ function ce(e, t, r) {
1078
+ const n = !Array.isArray(e), i = n ? [e] : e;
1079
+ if (!i.every(Boolean))
1080
+ throw new Error("derived() expects stores as input, got a falsy value");
1081
+ const s = t.length < 2;
1082
+ return Yn(r, (o, a) => {
1083
+ let l = !1;
1084
+ const u = [];
1085
+ let h = 0, g = G;
1086
+ const f = () => {
1087
+ if (h)
1088
+ return;
1089
+ g();
1090
+ const m = t(n ? u[0] : u, o, a);
1091
+ s ? o(m) : g = ft(m) ? m : G;
1092
+ }, d = i.map(
1093
+ (m, v) => dn(
1094
+ m,
1095
+ (p) => {
1096
+ u[v] = p, h &= ~(1 << v), l && f();
1097
+ },
1098
+ () => {
1099
+ h |= 1 << v;
1100
+ }
1101
+ )
1102
+ );
1103
+ return l = !0, f(), function() {
1104
+ K(d), g(), l = !1;
1105
+ };
1106
+ });
1107
+ }
1108
+ function Qn(e) {
1109
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1110
+ }
1111
+ var qn = function(t) {
1112
+ return Jn(t) && !Kn(t);
1113
+ };
1114
+ function Jn(e) {
1115
+ return !!e && typeof e == "object";
1116
+ }
1117
+ function Kn(e) {
1118
+ var t = Object.prototype.toString.call(e);
1119
+ return t === "[object RegExp]" || t === "[object Date]" || ri(e);
1120
+ }
1121
+ var ei = typeof Symbol == "function" && Symbol.for, ti = ei ? Symbol.for("react.element") : 60103;
1122
+ function ri(e) {
1123
+ return e.$$typeof === ti;
1124
+ }
1125
+ function ni(e) {
1126
+ return Array.isArray(e) ? [] : {};
1127
+ }
1128
+ function _e(e, t) {
1129
+ return t.clone !== !1 && t.isMergeableObject(e) ? ae(ni(e), e, t) : e;
1130
+ }
1131
+ function ii(e, t, r) {
1132
+ return e.concat(t).map(function(n) {
1133
+ return _e(n, r);
1134
+ });
1135
+ }
1136
+ function si(e, t) {
1137
+ if (!t.customMerge)
1138
+ return ae;
1139
+ var r = t.customMerge(e);
1140
+ return typeof r == "function" ? r : ae;
1141
+ }
1142
+ function oi(e) {
1143
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1144
+ return Object.propertyIsEnumerable.call(e, t);
1145
+ }) : [];
1146
+ }
1147
+ function Rt(e) {
1148
+ return Object.keys(e).concat(oi(e));
1149
+ }
1150
+ function xr(e, t) {
1151
+ try {
1152
+ return t in e;
1153
+ } catch (r) {
1154
+ return !1;
1155
+ }
1156
+ }
1157
+ function ai(e, t) {
1158
+ return xr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1159
+ }
1160
+ function li(e, t, r) {
1161
+ var n = {};
1162
+ return r.isMergeableObject(e) && Rt(e).forEach(function(i) {
1163
+ n[i] = _e(e[i], r);
1164
+ }), Rt(t).forEach(function(i) {
1165
+ ai(e, i) || (xr(e, i) && r.isMergeableObject(t[i]) ? n[i] = si(i, r)(e[i], t[i], r) : n[i] = _e(t[i], r));
1166
+ }), n;
1167
+ }
1168
+ function ae(e, t, r) {
1169
+ r = r || {}, r.arrayMerge = r.arrayMerge || ii, r.isMergeableObject = r.isMergeableObject || qn, r.cloneUnlessOtherwiseSpecified = _e;
1170
+ var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
1171
+ return s ? n ? r.arrayMerge(e, t, r) : li(e, t, r) : _e(t, r);
1172
+ }
1173
+ ae.all = function(t, r) {
1174
+ if (!Array.isArray(t))
1175
+ throw new Error("first argument should be an array");
1176
+ return t.reduce(function(n, i) {
1177
+ return ae(n, i, r);
1178
+ }, {});
1179
+ };
1180
+ var ui = ae, hi = ui;
1181
+ const ci = /* @__PURE__ */ Qn(hi);
1182
+ var b;
1183
+ (function(e) {
1184
+ 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";
1185
+ })(b || (b = {}));
1186
+ var T;
1187
+ (function(e) {
1188
+ 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";
1189
+ })(T || (T = {}));
1190
+ var le;
1191
+ (function(e) {
1192
+ e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1193
+ })(le || (le = {}));
1194
+ function Dt(e) {
1195
+ return e.type === T.literal;
1196
+ }
1197
+ function fi(e) {
1198
+ return e.type === T.argument;
1199
+ }
1200
+ function wr(e) {
1201
+ return e.type === T.number;
1202
+ }
1203
+ function Cr(e) {
1204
+ return e.type === T.date;
1205
+ }
1206
+ function Sr(e) {
1207
+ return e.type === T.time;
1208
+ }
1209
+ function Hr(e) {
1210
+ return e.type === T.select;
1211
+ }
1212
+ function Tr(e) {
1213
+ return e.type === T.plural;
1214
+ }
1215
+ function gi(e) {
1216
+ return e.type === T.pound;
1217
+ }
1218
+ function Ar(e) {
1219
+ return e.type === T.tag;
1220
+ }
1221
+ function Ir(e) {
1222
+ return !!(e && typeof e == "object" && e.type === le.number);
1223
+ }
1224
+ function it(e) {
1225
+ return !!(e && typeof e == "object" && e.type === le.dateTime);
1226
+ }
1227
+ var Br = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, di = /(?:[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;
1228
+ function vi(e) {
1229
+ var t = {};
1230
+ return e.replace(di, function(r) {
1231
+ var n = r.length;
1232
+ switch (r[0]) {
1233
+ case "G":
1234
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1235
+ break;
1236
+ case "y":
1237
+ t.year = n === 2 ? "2-digit" : "numeric";
1238
+ break;
1239
+ case "Y":
1240
+ case "u":
1241
+ case "U":
1242
+ case "r":
1243
+ throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
1244
+ case "q":
1245
+ case "Q":
1246
+ throw new RangeError("`q/Q` (quarter) patterns are not supported");
1247
+ case "M":
1248
+ case "L":
1249
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1250
+ break;
1251
+ case "w":
1252
+ case "W":
1253
+ throw new RangeError("`w/W` (week) patterns are not supported");
1254
+ case "d":
1255
+ t.day = ["numeric", "2-digit"][n - 1];
1256
+ break;
1257
+ case "D":
1258
+ case "F":
1259
+ case "g":
1260
+ throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1261
+ case "E":
1262
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1263
+ break;
1264
+ case "e":
1265
+ if (n < 4)
1266
+ throw new RangeError("`e..eee` (weekday) patterns are not supported");
1267
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1268
+ break;
1269
+ case "c":
1270
+ if (n < 4)
1271
+ throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1272
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
1273
+ break;
1274
+ case "a":
1275
+ t.hour12 = !0;
1276
+ break;
1277
+ case "b":
1278
+ case "B":
1279
+ throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1280
+ case "h":
1281
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1282
+ break;
1283
+ case "H":
1284
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1285
+ break;
1286
+ case "K":
1287
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1288
+ break;
1289
+ case "k":
1290
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1291
+ break;
1292
+ case "j":
1293
+ case "J":
1294
+ case "C":
1295
+ throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1296
+ case "m":
1297
+ t.minute = ["numeric", "2-digit"][n - 1];
1298
+ break;
1299
+ case "s":
1300
+ t.second = ["numeric", "2-digit"][n - 1];
1301
+ break;
1302
+ case "S":
1303
+ case "A":
1304
+ throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1305
+ case "z":
1306
+ t.timeZoneName = n < 4 ? "short" : "long";
1307
+ break;
1308
+ case "Z":
1309
+ case "O":
1310
+ case "v":
1311
+ case "V":
1312
+ case "X":
1313
+ case "x":
1314
+ throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
1315
+ }
1316
+ return "";
1317
+ }), t;
1318
+ }
1319
+ var pi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1320
+ function mi(e) {
1321
+ if (e.length === 0)
1322
+ throw new Error("Number skeleton cannot be empty");
1323
+ for (var t = e.split(pi).filter(function(f) {
1324
+ return f.length > 0;
1325
+ }), r = [], n = 0, i = t; n < i.length; n++) {
1326
+ var s = i[n], o = s.split("/");
1327
+ if (o.length === 0)
1328
+ throw new Error("Invalid number skeleton");
1329
+ for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
1330
+ var g = h[u];
1331
+ if (g.length === 0)
1332
+ throw new Error("Invalid number skeleton");
1333
+ }
1334
+ r.push({ stem: a, options: l });
1335
+ }
1336
+ return r;
1337
+ }
1338
+ function bi(e) {
1339
+ return e.replace(/^(.*?)-/, "");
1340
+ }
1341
+ var Ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Pr = /^(@+)?(\+|#+)?[rs]?$/g, yi = /(\*)(0+)|(#+)(0+)|(0+)/g, Mr = /^(0+)$/;
1342
+ function Gt(e) {
1343
+ var t = {};
1344
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Pr, function(r, n, i) {
1345
+ 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)), "";
1346
+ }), t;
1347
+ }
1348
+ function Or(e) {
1349
+ switch (e) {
1350
+ case "sign-auto":
1351
+ return {
1352
+ signDisplay: "auto"
1353
+ };
1354
+ case "sign-accounting":
1355
+ case "()":
1356
+ return {
1357
+ currencySign: "accounting"
1358
+ };
1359
+ case "sign-always":
1360
+ case "+!":
1361
+ return {
1362
+ signDisplay: "always"
1363
+ };
1364
+ case "sign-accounting-always":
1365
+ case "()!":
1366
+ return {
1367
+ signDisplay: "always",
1368
+ currencySign: "accounting"
1369
+ };
1370
+ case "sign-except-zero":
1371
+ case "+?":
1372
+ return {
1373
+ signDisplay: "exceptZero"
1374
+ };
1375
+ case "sign-accounting-except-zero":
1376
+ case "()?":
1377
+ return {
1378
+ signDisplay: "exceptZero",
1379
+ currencySign: "accounting"
1380
+ };
1381
+ case "sign-never":
1382
+ case "+_":
1383
+ return {
1384
+ signDisplay: "never"
1385
+ };
1386
+ }
1387
+ }
1388
+ function _i(e) {
1389
+ var t;
1390
+ if (e[0] === "E" && e[1] === "E" ? (t = {
1391
+ notation: "engineering"
1392
+ }, e = e.slice(2)) : e[0] === "E" && (t = {
1393
+ notation: "scientific"
1394
+ }, e = e.slice(1)), t) {
1395
+ var r = e.slice(0, 2);
1396
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Mr.test(e))
1397
+ throw new Error("Malformed concise eng/scientific notation");
1398
+ t.minimumIntegerDigits = e.length;
1399
+ }
1400
+ return t;
1401
+ }
1402
+ function kt(e) {
1403
+ var t = {}, r = Or(e);
1404
+ return r || t;
1405
+ }
1406
+ function Ei(e) {
1407
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
1408
+ var i = n[r];
1409
+ switch (i.stem) {
1410
+ case "percent":
1411
+ case "%":
1412
+ t.style = "percent";
1413
+ continue;
1414
+ case "%x100":
1415
+ t.style = "percent", t.scale = 100;
1416
+ continue;
1417
+ case "currency":
1418
+ t.style = "currency", t.currency = i.options[0];
1419
+ continue;
1420
+ case "group-off":
1421
+ case ",_":
1422
+ t.useGrouping = !1;
1423
+ continue;
1424
+ case "precision-integer":
1425
+ case ".":
1426
+ t.maximumFractionDigits = 0;
1427
+ continue;
1428
+ case "measure-unit":
1429
+ case "unit":
1430
+ t.style = "unit", t.unit = bi(i.options[0]);
1431
+ continue;
1432
+ case "compact-short":
1433
+ case "K":
1434
+ t.notation = "compact", t.compactDisplay = "short";
1435
+ continue;
1436
+ case "compact-long":
1437
+ case "KK":
1438
+ t.notation = "compact", t.compactDisplay = "long";
1439
+ continue;
1440
+ case "scientific":
1441
+ t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1442
+ return E(E({}, l), kt(u));
1443
+ }, {}));
1444
+ continue;
1445
+ case "engineering":
1446
+ t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1447
+ return E(E({}, l), kt(u));
1448
+ }, {}));
1449
+ continue;
1450
+ case "notation-simple":
1451
+ t.notation = "standard";
1452
+ continue;
1453
+ case "unit-width-narrow":
1454
+ t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
1455
+ continue;
1456
+ case "unit-width-short":
1457
+ t.currencyDisplay = "code", t.unitDisplay = "short";
1458
+ continue;
1459
+ case "unit-width-full-name":
1460
+ t.currencyDisplay = "name", t.unitDisplay = "long";
1461
+ continue;
1462
+ case "unit-width-iso-code":
1463
+ t.currencyDisplay = "symbol";
1464
+ continue;
1465
+ case "scale":
1466
+ t.scale = parseFloat(i.options[0]);
1467
+ continue;
1468
+ case "rounding-mode-floor":
1469
+ t.roundingMode = "floor";
1470
+ continue;
1471
+ case "rounding-mode-ceiling":
1472
+ t.roundingMode = "ceil";
1473
+ continue;
1474
+ case "rounding-mode-down":
1475
+ t.roundingMode = "trunc";
1476
+ continue;
1477
+ case "rounding-mode-up":
1478
+ t.roundingMode = "expand";
1479
+ continue;
1480
+ case "rounding-mode-half-even":
1481
+ t.roundingMode = "halfEven";
1482
+ continue;
1483
+ case "rounding-mode-half-down":
1484
+ t.roundingMode = "halfTrunc";
1485
+ continue;
1486
+ case "rounding-mode-half-up":
1487
+ t.roundingMode = "halfExpand";
1488
+ continue;
1489
+ case "integer-width":
1490
+ if (i.options.length > 1)
1491
+ throw new RangeError("integer-width stems only accept a single optional option");
1492
+ i.options[0].replace(yi, function(l, u, h, g, f, d) {
1493
+ if (u)
1494
+ t.minimumIntegerDigits = h.length;
1495
+ else {
1496
+ if (g && f)
1497
+ throw new Error("We currently do not support maximum integer digits");
1498
+ if (d)
1499
+ throw new Error("We currently do not support exact integer digits");
1500
+ }
1501
+ return "";
1502
+ });
1503
+ continue;
1504
+ }
1505
+ if (Mr.test(i.stem)) {
1506
+ t.minimumIntegerDigits = i.stem.length;
1507
+ continue;
1508
+ }
1509
+ if (Ut.test(i.stem)) {
1510
+ if (i.options.length > 1)
1511
+ throw new RangeError("Fraction-precision stems only accept a single optional option");
1512
+ i.stem.replace(Ut, function(l, u, h, g, f, d) {
1513
+ return h === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1514
+ });
1515
+ var s = i.options[0];
1516
+ s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), Gt(s)));
1517
+ continue;
1518
+ }
1519
+ if (Pr.test(i.stem)) {
1520
+ t = E(E({}, t), Gt(i.stem));
1521
+ continue;
1522
+ }
1523
+ var o = Or(i.stem);
1524
+ o && (t = E(E({}, t), o));
1525
+ var a = _i(i.stem);
1526
+ a && (t = E(E({}, t), a));
1527
+ }
1528
+ return t;
1529
+ }
1530
+ var Ae = {
1531
+ "001": [
1532
+ "H",
1533
+ "h"
1534
+ ],
1535
+ AC: [
1536
+ "H",
1537
+ "h",
1538
+ "hb",
1539
+ "hB"
1540
+ ],
1541
+ AD: [
1542
+ "H",
1543
+ "hB"
1544
+ ],
1545
+ AE: [
1546
+ "h",
1547
+ "hB",
1548
+ "hb",
1549
+ "H"
1550
+ ],
1551
+ AF: [
1552
+ "H",
1553
+ "hb",
1554
+ "hB",
1555
+ "h"
1556
+ ],
1557
+ AG: [
1558
+ "h",
1559
+ "hb",
1560
+ "H",
1561
+ "hB"
1562
+ ],
1563
+ AI: [
1564
+ "H",
1565
+ "h",
1566
+ "hb",
1567
+ "hB"
1568
+ ],
1569
+ AL: [
1570
+ "h",
1571
+ "H",
1572
+ "hB"
1573
+ ],
1574
+ AM: [
1575
+ "H",
1576
+ "hB"
1577
+ ],
1578
+ AO: [
1579
+ "H",
1580
+ "hB"
1581
+ ],
1582
+ AR: [
1583
+ "H",
1584
+ "h",
1585
+ "hB",
1586
+ "hb"
1587
+ ],
1588
+ AS: [
1589
+ "h",
1590
+ "H"
1591
+ ],
1592
+ AT: [
1593
+ "H",
1594
+ "hB"
1595
+ ],
1596
+ AU: [
1597
+ "h",
1598
+ "hb",
1599
+ "H",
1600
+ "hB"
1601
+ ],
1602
+ AW: [
1603
+ "H",
1604
+ "hB"
1605
+ ],
1606
+ AX: [
1607
+ "H"
1608
+ ],
1609
+ AZ: [
1610
+ "H",
1611
+ "hB",
1612
+ "h"
1613
+ ],
1614
+ BA: [
1615
+ "H",
1616
+ "hB",
1617
+ "h"
1618
+ ],
1619
+ BB: [
1620
+ "h",
1621
+ "hb",
1622
+ "H",
1623
+ "hB"
1624
+ ],
1625
+ BD: [
1626
+ "h",
1627
+ "hB",
1628
+ "H"
1629
+ ],
1630
+ BE: [
1631
+ "H",
1632
+ "hB"
1633
+ ],
1634
+ BF: [
1635
+ "H",
1636
+ "hB"
1637
+ ],
1638
+ BG: [
1639
+ "H",
1640
+ "hB",
1641
+ "h"
1642
+ ],
1643
+ BH: [
1644
+ "h",
1645
+ "hB",
1646
+ "hb",
1647
+ "H"
1648
+ ],
1649
+ BI: [
1650
+ "H",
1651
+ "h"
1652
+ ],
1653
+ BJ: [
1654
+ "H",
1655
+ "hB"
1656
+ ],
1657
+ BL: [
1658
+ "H",
1659
+ "hB"
1660
+ ],
1661
+ BM: [
1662
+ "h",
1663
+ "hb",
1664
+ "H",
1665
+ "hB"
1666
+ ],
1667
+ BN: [
1668
+ "hb",
1669
+ "hB",
1670
+ "h",
1671
+ "H"
1672
+ ],
1673
+ BO: [
1674
+ "H",
1675
+ "hB",
1676
+ "h",
1677
+ "hb"
1678
+ ],
1679
+ BQ: [
1680
+ "H"
1681
+ ],
1682
+ BR: [
1683
+ "H",
1684
+ "hB"
1685
+ ],
1686
+ BS: [
1687
+ "h",
1688
+ "hb",
1689
+ "H",
1690
+ "hB"
1691
+ ],
1692
+ BT: [
1693
+ "h",
1694
+ "H"
1695
+ ],
1696
+ BW: [
1697
+ "H",
1698
+ "h",
1699
+ "hb",
1700
+ "hB"
1701
+ ],
1702
+ BY: [
1703
+ "H",
1704
+ "h"
1705
+ ],
1706
+ BZ: [
1707
+ "H",
1708
+ "h",
1709
+ "hb",
1710
+ "hB"
1711
+ ],
1712
+ CA: [
1713
+ "h",
1714
+ "hb",
1715
+ "H",
1716
+ "hB"
1717
+ ],
1718
+ CC: [
1719
+ "H",
1720
+ "h",
1721
+ "hb",
1722
+ "hB"
1723
+ ],
1724
+ CD: [
1725
+ "hB",
1726
+ "H"
1727
+ ],
1728
+ CF: [
1729
+ "H",
1730
+ "h",
1731
+ "hB"
1732
+ ],
1733
+ CG: [
1734
+ "H",
1735
+ "hB"
1736
+ ],
1737
+ CH: [
1738
+ "H",
1739
+ "hB",
1740
+ "h"
1741
+ ],
1742
+ CI: [
1743
+ "H",
1744
+ "hB"
1745
+ ],
1746
+ CK: [
1747
+ "H",
1748
+ "h",
1749
+ "hb",
1750
+ "hB"
1751
+ ],
1752
+ CL: [
1753
+ "H",
1754
+ "h",
1755
+ "hB",
1756
+ "hb"
1757
+ ],
1758
+ CM: [
1759
+ "H",
1760
+ "h",
1761
+ "hB"
1762
+ ],
1763
+ CN: [
1764
+ "H",
1765
+ "hB",
1766
+ "hb",
1767
+ "h"
1768
+ ],
1769
+ CO: [
1770
+ "h",
1771
+ "H",
1772
+ "hB",
1773
+ "hb"
1774
+ ],
1775
+ CP: [
1776
+ "H"
1777
+ ],
1778
+ CR: [
1779
+ "H",
1780
+ "h",
1781
+ "hB",
1782
+ "hb"
1783
+ ],
1784
+ CU: [
1785
+ "H",
1786
+ "h",
1787
+ "hB",
1788
+ "hb"
1789
+ ],
1790
+ CV: [
1791
+ "H",
1792
+ "hB"
1793
+ ],
1794
+ CW: [
1795
+ "H",
1796
+ "hB"
1797
+ ],
1798
+ CX: [
1799
+ "H",
1800
+ "h",
1801
+ "hb",
1802
+ "hB"
1803
+ ],
1804
+ CY: [
1805
+ "h",
1806
+ "H",
1807
+ "hb",
1808
+ "hB"
1809
+ ],
1810
+ CZ: [
1811
+ "H"
1812
+ ],
1813
+ DE: [
1814
+ "H",
1815
+ "hB"
1816
+ ],
1817
+ DG: [
1818
+ "H",
1819
+ "h",
1820
+ "hb",
1821
+ "hB"
1822
+ ],
1823
+ DJ: [
1824
+ "h",
1825
+ "H"
1826
+ ],
1827
+ DK: [
1828
+ "H"
1829
+ ],
1830
+ DM: [
1831
+ "h",
1832
+ "hb",
1833
+ "H",
1834
+ "hB"
1835
+ ],
1836
+ DO: [
1837
+ "h",
1838
+ "H",
1839
+ "hB",
1840
+ "hb"
1841
+ ],
1842
+ DZ: [
1843
+ "h",
1844
+ "hB",
1845
+ "hb",
1846
+ "H"
1847
+ ],
1848
+ EA: [
1849
+ "H",
1850
+ "h",
1851
+ "hB",
1852
+ "hb"
1853
+ ],
1854
+ EC: [
1855
+ "H",
1856
+ "hB",
1857
+ "h",
1858
+ "hb"
1859
+ ],
1860
+ EE: [
1861
+ "H",
1862
+ "hB"
1863
+ ],
1864
+ EG: [
1865
+ "h",
1866
+ "hB",
1867
+ "hb",
1868
+ "H"
1869
+ ],
1870
+ EH: [
1871
+ "h",
1872
+ "hB",
1873
+ "hb",
1874
+ "H"
1875
+ ],
1876
+ ER: [
1877
+ "h",
1878
+ "H"
1879
+ ],
1880
+ ES: [
1881
+ "H",
1882
+ "hB",
1883
+ "h",
1884
+ "hb"
1885
+ ],
1886
+ ET: [
1887
+ "hB",
1888
+ "hb",
1889
+ "h",
1890
+ "H"
1891
+ ],
1892
+ FI: [
1893
+ "H"
1894
+ ],
1895
+ FJ: [
1896
+ "h",
1897
+ "hb",
1898
+ "H",
1899
+ "hB"
1900
+ ],
1901
+ FK: [
1902
+ "H",
1903
+ "h",
1904
+ "hb",
1905
+ "hB"
1906
+ ],
1907
+ FM: [
1908
+ "h",
1909
+ "hb",
1910
+ "H",
1911
+ "hB"
1912
+ ],
1913
+ FO: [
1914
+ "H",
1915
+ "h"
1916
+ ],
1917
+ FR: [
1918
+ "H",
1919
+ "hB"
1920
+ ],
1921
+ GA: [
1922
+ "H",
1923
+ "hB"
1924
+ ],
1925
+ GB: [
1926
+ "H",
1927
+ "h",
1928
+ "hb",
1929
+ "hB"
1930
+ ],
1931
+ GD: [
1932
+ "h",
1933
+ "hb",
1934
+ "H",
1935
+ "hB"
1936
+ ],
1937
+ GE: [
1938
+ "H",
1939
+ "hB",
1940
+ "h"
1941
+ ],
1942
+ GF: [
1943
+ "H",
1944
+ "hB"
1945
+ ],
1946
+ GG: [
1947
+ "H",
1948
+ "h",
1949
+ "hb",
1950
+ "hB"
1951
+ ],
1952
+ GH: [
1953
+ "h",
1954
+ "H"
1955
+ ],
1956
+ GI: [
1957
+ "H",
1958
+ "h",
1959
+ "hb",
1960
+ "hB"
1961
+ ],
1962
+ GL: [
1963
+ "H",
1964
+ "h"
1965
+ ],
1966
+ GM: [
1967
+ "h",
1968
+ "hb",
1969
+ "H",
1970
+ "hB"
1971
+ ],
1972
+ GN: [
1973
+ "H",
1974
+ "hB"
1975
+ ],
1976
+ GP: [
1977
+ "H",
1978
+ "hB"
1979
+ ],
1980
+ GQ: [
1981
+ "H",
1982
+ "hB",
1983
+ "h",
1984
+ "hb"
1985
+ ],
1986
+ GR: [
1987
+ "h",
1988
+ "H",
1989
+ "hb",
1990
+ "hB"
1991
+ ],
1992
+ GT: [
1993
+ "H",
1994
+ "h",
1995
+ "hB",
1996
+ "hb"
1997
+ ],
1998
+ GU: [
1999
+ "h",
2000
+ "hb",
2001
+ "H",
2002
+ "hB"
2003
+ ],
2004
+ GW: [
2005
+ "H",
2006
+ "hB"
2007
+ ],
2008
+ GY: [
2009
+ "h",
2010
+ "hb",
2011
+ "H",
2012
+ "hB"
2013
+ ],
2014
+ HK: [
2015
+ "h",
2016
+ "hB",
2017
+ "hb",
2018
+ "H"
2019
+ ],
2020
+ HN: [
2021
+ "H",
2022
+ "h",
2023
+ "hB",
2024
+ "hb"
2025
+ ],
2026
+ HR: [
2027
+ "H",
2028
+ "hB"
2029
+ ],
2030
+ HU: [
2031
+ "H",
2032
+ "h"
2033
+ ],
2034
+ IC: [
2035
+ "H",
2036
+ "h",
2037
+ "hB",
2038
+ "hb"
2039
+ ],
2040
+ ID: [
2041
+ "H"
2042
+ ],
2043
+ IE: [
2044
+ "H",
2045
+ "h",
2046
+ "hb",
2047
+ "hB"
2048
+ ],
2049
+ IL: [
2050
+ "H",
2051
+ "hB"
2052
+ ],
2053
+ IM: [
2054
+ "H",
2055
+ "h",
2056
+ "hb",
2057
+ "hB"
2058
+ ],
2059
+ IN: [
2060
+ "h",
2061
+ "H"
2062
+ ],
2063
+ IO: [
2064
+ "H",
2065
+ "h",
2066
+ "hb",
2067
+ "hB"
2068
+ ],
2069
+ IQ: [
2070
+ "h",
2071
+ "hB",
2072
+ "hb",
2073
+ "H"
2074
+ ],
2075
+ IR: [
2076
+ "hB",
2077
+ "H"
2078
+ ],
2079
+ IS: [
2080
+ "H"
2081
+ ],
2082
+ IT: [
2083
+ "H",
2084
+ "hB"
2085
+ ],
2086
+ JE: [
2087
+ "H",
2088
+ "h",
2089
+ "hb",
2090
+ "hB"
2091
+ ],
2092
+ JM: [
2093
+ "h",
2094
+ "hb",
2095
+ "H",
2096
+ "hB"
2097
+ ],
2098
+ JO: [
2099
+ "h",
2100
+ "hB",
2101
+ "hb",
2102
+ "H"
2103
+ ],
2104
+ JP: [
2105
+ "H",
2106
+ "K",
2107
+ "h"
2108
+ ],
2109
+ KE: [
2110
+ "hB",
2111
+ "hb",
2112
+ "H",
2113
+ "h"
2114
+ ],
2115
+ KG: [
2116
+ "H",
2117
+ "h",
2118
+ "hB",
2119
+ "hb"
2120
+ ],
2121
+ KH: [
2122
+ "hB",
2123
+ "h",
2124
+ "H",
2125
+ "hb"
2126
+ ],
2127
+ KI: [
2128
+ "h",
2129
+ "hb",
2130
+ "H",
2131
+ "hB"
2132
+ ],
2133
+ KM: [
2134
+ "H",
2135
+ "h",
2136
+ "hB",
2137
+ "hb"
2138
+ ],
2139
+ KN: [
2140
+ "h",
2141
+ "hb",
2142
+ "H",
2143
+ "hB"
2144
+ ],
2145
+ KP: [
2146
+ "h",
2147
+ "H",
2148
+ "hB",
2149
+ "hb"
2150
+ ],
2151
+ KR: [
2152
+ "h",
2153
+ "H",
2154
+ "hB",
2155
+ "hb"
2156
+ ],
2157
+ KW: [
2158
+ "h",
2159
+ "hB",
2160
+ "hb",
2161
+ "H"
2162
+ ],
2163
+ KY: [
2164
+ "h",
2165
+ "hb",
2166
+ "H",
2167
+ "hB"
2168
+ ],
2169
+ KZ: [
2170
+ "H",
2171
+ "hB"
2172
+ ],
2173
+ LA: [
2174
+ "H",
2175
+ "hb",
2176
+ "hB",
2177
+ "h"
2178
+ ],
2179
+ LB: [
2180
+ "h",
2181
+ "hB",
2182
+ "hb",
2183
+ "H"
2184
+ ],
2185
+ LC: [
2186
+ "h",
2187
+ "hb",
2188
+ "H",
2189
+ "hB"
2190
+ ],
2191
+ LI: [
2192
+ "H",
2193
+ "hB",
2194
+ "h"
2195
+ ],
2196
+ LK: [
2197
+ "H",
2198
+ "h",
2199
+ "hB",
2200
+ "hb"
2201
+ ],
2202
+ LR: [
2203
+ "h",
2204
+ "hb",
2205
+ "H",
2206
+ "hB"
2207
+ ],
2208
+ LS: [
2209
+ "h",
2210
+ "H"
2211
+ ],
2212
+ LT: [
2213
+ "H",
2214
+ "h",
2215
+ "hb",
2216
+ "hB"
2217
+ ],
2218
+ LU: [
2219
+ "H",
2220
+ "h",
2221
+ "hB"
2222
+ ],
2223
+ LV: [
2224
+ "H",
2225
+ "hB",
2226
+ "hb",
2227
+ "h"
2228
+ ],
2229
+ LY: [
2230
+ "h",
2231
+ "hB",
2232
+ "hb",
2233
+ "H"
2234
+ ],
2235
+ MA: [
2236
+ "H",
2237
+ "h",
2238
+ "hB",
2239
+ "hb"
2240
+ ],
2241
+ MC: [
2242
+ "H",
2243
+ "hB"
2244
+ ],
2245
+ MD: [
2246
+ "H",
2247
+ "hB"
2248
+ ],
2249
+ ME: [
2250
+ "H",
2251
+ "hB",
2252
+ "h"
2253
+ ],
2254
+ MF: [
2255
+ "H",
2256
+ "hB"
2257
+ ],
2258
+ MG: [
2259
+ "H",
2260
+ "h"
2261
+ ],
2262
+ MH: [
2263
+ "h",
2264
+ "hb",
2265
+ "H",
2266
+ "hB"
2267
+ ],
2268
+ MK: [
2269
+ "H",
2270
+ "h",
2271
+ "hb",
2272
+ "hB"
2273
+ ],
2274
+ ML: [
2275
+ "H"
2276
+ ],
2277
+ MM: [
2278
+ "hB",
2279
+ "hb",
2280
+ "H",
2281
+ "h"
2282
+ ],
2283
+ MN: [
2284
+ "H",
2285
+ "h",
2286
+ "hb",
2287
+ "hB"
2288
+ ],
2289
+ MO: [
2290
+ "h",
2291
+ "hB",
2292
+ "hb",
2293
+ "H"
2294
+ ],
2295
+ MP: [
2296
+ "h",
2297
+ "hb",
2298
+ "H",
2299
+ "hB"
2300
+ ],
2301
+ MQ: [
2302
+ "H",
2303
+ "hB"
2304
+ ],
2305
+ MR: [
2306
+ "h",
2307
+ "hB",
2308
+ "hb",
2309
+ "H"
2310
+ ],
2311
+ MS: [
2312
+ "H",
2313
+ "h",
2314
+ "hb",
2315
+ "hB"
2316
+ ],
2317
+ MT: [
2318
+ "H",
2319
+ "h"
2320
+ ],
2321
+ MU: [
2322
+ "H",
2323
+ "h"
2324
+ ],
2325
+ MV: [
2326
+ "H",
2327
+ "h"
2328
+ ],
2329
+ MW: [
2330
+ "h",
2331
+ "hb",
2332
+ "H",
2333
+ "hB"
2334
+ ],
2335
+ MX: [
2336
+ "H",
2337
+ "h",
2338
+ "hB",
2339
+ "hb"
2340
+ ],
2341
+ MY: [
2342
+ "hb",
2343
+ "hB",
2344
+ "h",
2345
+ "H"
2346
+ ],
2347
+ MZ: [
2348
+ "H",
2349
+ "hB"
2350
+ ],
2351
+ NA: [
2352
+ "h",
2353
+ "H",
2354
+ "hB",
2355
+ "hb"
2356
+ ],
2357
+ NC: [
2358
+ "H",
2359
+ "hB"
2360
+ ],
2361
+ NE: [
2362
+ "H"
2363
+ ],
2364
+ NF: [
2365
+ "H",
2366
+ "h",
2367
+ "hb",
2368
+ "hB"
2369
+ ],
2370
+ NG: [
2371
+ "H",
2372
+ "h",
2373
+ "hb",
2374
+ "hB"
2375
+ ],
2376
+ NI: [
2377
+ "H",
2378
+ "h",
2379
+ "hB",
2380
+ "hb"
2381
+ ],
2382
+ NL: [
2383
+ "H",
2384
+ "hB"
2385
+ ],
2386
+ NO: [
2387
+ "H",
2388
+ "h"
2389
+ ],
2390
+ NP: [
2391
+ "H",
2392
+ "h",
2393
+ "hB"
2394
+ ],
2395
+ NR: [
2396
+ "H",
2397
+ "h",
2398
+ "hb",
2399
+ "hB"
2400
+ ],
2401
+ NU: [
2402
+ "H",
2403
+ "h",
2404
+ "hb",
2405
+ "hB"
2406
+ ],
2407
+ NZ: [
2408
+ "h",
2409
+ "hb",
2410
+ "H",
2411
+ "hB"
2412
+ ],
2413
+ OM: [
2414
+ "h",
2415
+ "hB",
2416
+ "hb",
2417
+ "H"
2418
+ ],
2419
+ PA: [
2420
+ "h",
2421
+ "H",
2422
+ "hB",
2423
+ "hb"
2424
+ ],
2425
+ PE: [
2426
+ "H",
2427
+ "hB",
2428
+ "h",
2429
+ "hb"
2430
+ ],
2431
+ PF: [
2432
+ "H",
2433
+ "h",
2434
+ "hB"
2435
+ ],
2436
+ PG: [
2437
+ "h",
2438
+ "H"
2439
+ ],
2440
+ PH: [
2441
+ "h",
2442
+ "hB",
2443
+ "hb",
2444
+ "H"
2445
+ ],
2446
+ PK: [
2447
+ "h",
2448
+ "hB",
2449
+ "H"
2450
+ ],
2451
+ PL: [
2452
+ "H",
2453
+ "h"
2454
+ ],
2455
+ PM: [
2456
+ "H",
2457
+ "hB"
2458
+ ],
2459
+ PN: [
2460
+ "H",
2461
+ "h",
2462
+ "hb",
2463
+ "hB"
2464
+ ],
2465
+ PR: [
2466
+ "h",
2467
+ "H",
2468
+ "hB",
2469
+ "hb"
2470
+ ],
2471
+ PS: [
2472
+ "h",
2473
+ "hB",
2474
+ "hb",
2475
+ "H"
2476
+ ],
2477
+ PT: [
2478
+ "H",
2479
+ "hB"
2480
+ ],
2481
+ PW: [
2482
+ "h",
2483
+ "H"
2484
+ ],
2485
+ PY: [
2486
+ "H",
2487
+ "h",
2488
+ "hB",
2489
+ "hb"
2490
+ ],
2491
+ QA: [
2492
+ "h",
2493
+ "hB",
2494
+ "hb",
2495
+ "H"
2496
+ ],
2497
+ RE: [
2498
+ "H",
2499
+ "hB"
2500
+ ],
2501
+ RO: [
2502
+ "H",
2503
+ "hB"
2504
+ ],
2505
+ RS: [
2506
+ "H",
2507
+ "hB",
2508
+ "h"
2509
+ ],
2510
+ RU: [
2511
+ "H"
2512
+ ],
2513
+ RW: [
2514
+ "H",
2515
+ "h"
2516
+ ],
2517
+ SA: [
2518
+ "h",
2519
+ "hB",
2520
+ "hb",
2521
+ "H"
2522
+ ],
2523
+ SB: [
2524
+ "h",
2525
+ "hb",
2526
+ "H",
2527
+ "hB"
2528
+ ],
2529
+ SC: [
2530
+ "H",
2531
+ "h",
2532
+ "hB"
2533
+ ],
2534
+ SD: [
2535
+ "h",
2536
+ "hB",
2537
+ "hb",
2538
+ "H"
2539
+ ],
2540
+ SE: [
2541
+ "H"
2542
+ ],
2543
+ SG: [
2544
+ "h",
2545
+ "hb",
2546
+ "H",
2547
+ "hB"
2548
+ ],
2549
+ SH: [
2550
+ "H",
2551
+ "h",
2552
+ "hb",
2553
+ "hB"
2554
+ ],
2555
+ SI: [
2556
+ "H",
2557
+ "hB"
2558
+ ],
2559
+ SJ: [
2560
+ "H"
2561
+ ],
2562
+ SK: [
2563
+ "H"
2564
+ ],
2565
+ SL: [
2566
+ "h",
2567
+ "hb",
2568
+ "H",
2569
+ "hB"
2570
+ ],
2571
+ SM: [
2572
+ "H",
2573
+ "h",
2574
+ "hB"
2575
+ ],
2576
+ SN: [
2577
+ "H",
2578
+ "h",
2579
+ "hB"
2580
+ ],
2581
+ SO: [
2582
+ "h",
2583
+ "H"
2584
+ ],
2585
+ SR: [
2586
+ "H",
2587
+ "hB"
2588
+ ],
2589
+ SS: [
2590
+ "h",
2591
+ "hb",
2592
+ "H",
2593
+ "hB"
2594
+ ],
2595
+ ST: [
2596
+ "H",
2597
+ "hB"
2598
+ ],
2599
+ SV: [
2600
+ "H",
2601
+ "h",
2602
+ "hB",
2603
+ "hb"
2604
+ ],
2605
+ SX: [
2606
+ "H",
2607
+ "h",
2608
+ "hb",
2609
+ "hB"
2610
+ ],
2611
+ SY: [
2612
+ "h",
2613
+ "hB",
2614
+ "hb",
2615
+ "H"
2616
+ ],
2617
+ SZ: [
2618
+ "h",
2619
+ "hb",
2620
+ "H",
2621
+ "hB"
2622
+ ],
2623
+ TA: [
2624
+ "H",
2625
+ "h",
2626
+ "hb",
2627
+ "hB"
2628
+ ],
2629
+ TC: [
2630
+ "h",
2631
+ "hb",
2632
+ "H",
2633
+ "hB"
2634
+ ],
2635
+ TD: [
2636
+ "h",
2637
+ "H",
2638
+ "hB"
2639
+ ],
2640
+ TF: [
2641
+ "H",
2642
+ "h",
2643
+ "hB"
2644
+ ],
2645
+ TG: [
2646
+ "H",
2647
+ "hB"
2648
+ ],
2649
+ TH: [
2650
+ "H",
2651
+ "h"
2652
+ ],
2653
+ TJ: [
2654
+ "H",
2655
+ "h"
2656
+ ],
2657
+ TL: [
2658
+ "H",
2659
+ "hB",
2660
+ "hb",
2661
+ "h"
2662
+ ],
2663
+ TM: [
2664
+ "H",
2665
+ "h"
2666
+ ],
2667
+ TN: [
2668
+ "h",
2669
+ "hB",
2670
+ "hb",
2671
+ "H"
2672
+ ],
2673
+ TO: [
2674
+ "h",
2675
+ "H"
2676
+ ],
2677
+ TR: [
2678
+ "H",
2679
+ "hB"
2680
+ ],
2681
+ TT: [
2682
+ "h",
2683
+ "hb",
2684
+ "H",
2685
+ "hB"
2686
+ ],
2687
+ TW: [
2688
+ "hB",
2689
+ "hb",
2690
+ "h",
2691
+ "H"
2692
+ ],
2693
+ TZ: [
2694
+ "hB",
2695
+ "hb",
2696
+ "H",
2697
+ "h"
2698
+ ],
2699
+ UA: [
2700
+ "H",
2701
+ "hB",
2702
+ "h"
2703
+ ],
2704
+ UG: [
2705
+ "hB",
2706
+ "hb",
2707
+ "H",
2708
+ "h"
2709
+ ],
2710
+ UM: [
2711
+ "h",
2712
+ "hb",
2713
+ "H",
2714
+ "hB"
2715
+ ],
2716
+ US: [
2717
+ "h",
2718
+ "hb",
2719
+ "H",
2720
+ "hB"
2721
+ ],
2722
+ UY: [
2723
+ "H",
2724
+ "h",
2725
+ "hB",
2726
+ "hb"
2727
+ ],
2728
+ UZ: [
2729
+ "H",
2730
+ "hB",
2731
+ "h"
2732
+ ],
2733
+ VA: [
2734
+ "H",
2735
+ "h",
2736
+ "hB"
2737
+ ],
2738
+ VC: [
2739
+ "h",
2740
+ "hb",
2741
+ "H",
2742
+ "hB"
2743
+ ],
2744
+ VE: [
2745
+ "h",
2746
+ "H",
2747
+ "hB",
2748
+ "hb"
2749
+ ],
2750
+ VG: [
2751
+ "h",
2752
+ "hb",
2753
+ "H",
2754
+ "hB"
2755
+ ],
2756
+ VI: [
2757
+ "h",
2758
+ "hb",
2759
+ "H",
2760
+ "hB"
2761
+ ],
2762
+ VN: [
2763
+ "H",
2764
+ "h"
2765
+ ],
2766
+ VU: [
2767
+ "h",
2768
+ "H"
2769
+ ],
2770
+ WF: [
2771
+ "H",
2772
+ "hB"
2773
+ ],
2774
+ WS: [
2775
+ "h",
2776
+ "H"
2777
+ ],
2778
+ XK: [
2779
+ "H",
2780
+ "hB",
2781
+ "h"
2782
+ ],
2783
+ YE: [
2784
+ "h",
2785
+ "hB",
2786
+ "hb",
2787
+ "H"
2788
+ ],
2789
+ YT: [
2790
+ "H",
2791
+ "hB"
2792
+ ],
2793
+ ZA: [
2794
+ "H",
2795
+ "h",
2796
+ "hb",
2797
+ "hB"
2798
+ ],
2799
+ ZM: [
2800
+ "h",
2801
+ "hb",
2802
+ "H",
2803
+ "hB"
2804
+ ],
2805
+ ZW: [
2806
+ "H",
2807
+ "h"
2808
+ ],
2809
+ "af-ZA": [
2810
+ "H",
2811
+ "h",
2812
+ "hB",
2813
+ "hb"
2814
+ ],
2815
+ "ar-001": [
2816
+ "h",
2817
+ "hB",
2818
+ "hb",
2819
+ "H"
2820
+ ],
2821
+ "ca-ES": [
2822
+ "H",
2823
+ "h",
2824
+ "hB"
2825
+ ],
2826
+ "en-001": [
2827
+ "h",
2828
+ "hb",
2829
+ "H",
2830
+ "hB"
2831
+ ],
2832
+ "es-BO": [
2833
+ "H",
2834
+ "h",
2835
+ "hB",
2836
+ "hb"
2837
+ ],
2838
+ "es-BR": [
2839
+ "H",
2840
+ "h",
2841
+ "hB",
2842
+ "hb"
2843
+ ],
2844
+ "es-EC": [
2845
+ "H",
2846
+ "h",
2847
+ "hB",
2848
+ "hb"
2849
+ ],
2850
+ "es-ES": [
2851
+ "H",
2852
+ "h",
2853
+ "hB",
2854
+ "hb"
2855
+ ],
2856
+ "es-GQ": [
2857
+ "H",
2858
+ "h",
2859
+ "hB",
2860
+ "hb"
2861
+ ],
2862
+ "es-PE": [
2863
+ "H",
2864
+ "h",
2865
+ "hB",
2866
+ "hb"
2867
+ ],
2868
+ "fr-CA": [
2869
+ "H",
2870
+ "h",
2871
+ "hB"
2872
+ ],
2873
+ "gl-ES": [
2874
+ "H",
2875
+ "h",
2876
+ "hB"
2877
+ ],
2878
+ "gu-IN": [
2879
+ "hB",
2880
+ "hb",
2881
+ "h",
2882
+ "H"
2883
+ ],
2884
+ "hi-IN": [
2885
+ "hB",
2886
+ "h",
2887
+ "H"
2888
+ ],
2889
+ "it-CH": [
2890
+ "H",
2891
+ "h",
2892
+ "hB"
2893
+ ],
2894
+ "it-IT": [
2895
+ "H",
2896
+ "h",
2897
+ "hB"
2898
+ ],
2899
+ "kn-IN": [
2900
+ "hB",
2901
+ "h",
2902
+ "H"
2903
+ ],
2904
+ "ml-IN": [
2905
+ "hB",
2906
+ "h",
2907
+ "H"
2908
+ ],
2909
+ "mr-IN": [
2910
+ "hB",
2911
+ "hb",
2912
+ "h",
2913
+ "H"
2914
+ ],
2915
+ "pa-IN": [
2916
+ "hB",
2917
+ "hb",
2918
+ "h",
2919
+ "H"
2920
+ ],
2921
+ "ta-IN": [
2922
+ "hB",
2923
+ "h",
2924
+ "hb",
2925
+ "H"
2926
+ ],
2927
+ "te-IN": [
2928
+ "hB",
2929
+ "h",
2930
+ "H"
2931
+ ],
2932
+ "zu-ZA": [
2933
+ "H",
2934
+ "hB",
2935
+ "hb",
2936
+ "h"
2937
+ ]
2938
+ };
2939
+ function xi(e, t) {
2940
+ for (var r = "", n = 0; n < e.length; n++) {
2941
+ var i = e.charAt(n);
2942
+ if (i === "j") {
2943
+ for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2944
+ s++, n++;
2945
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = wi(t);
2946
+ for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2947
+ r += l;
2948
+ for (; o-- > 0; )
2949
+ r = u + r;
2950
+ } else i === "J" ? r += "H" : r += i;
2951
+ }
2952
+ return r;
2953
+ }
2954
+ function wi(e) {
2955
+ var t = e.hourCycle;
2956
+ if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2957
+ e.hourCycles && // @ts-ignore
2958
+ e.hourCycles.length && (t = e.hourCycles[0]), t)
2959
+ switch (t) {
2960
+ case "h24":
2961
+ return "k";
2962
+ case "h23":
2963
+ return "H";
2964
+ case "h12":
2965
+ return "h";
2966
+ case "h11":
2967
+ return "K";
2968
+ default:
2969
+ throw new Error("Invalid hourCycle");
2970
+ }
2971
+ var r = e.language, n;
2972
+ r !== "root" && (n = e.maximize().region);
2973
+ var i = Ae[n || ""] || Ae[r || ""] || Ae["".concat(r, "-001")] || Ae["001"];
2974
+ return i[0];
2975
+ }
2976
+ var We, Ci = new RegExp("^".concat(Br.source, "*")), Si = new RegExp("".concat(Br.source, "*$"));
2977
+ function y(e, t) {
2978
+ return { start: e, end: t };
2979
+ }
2980
+ var Hi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ti = !!String.fromCodePoint, Ai = !!Object.fromEntries, Ii = !!String.prototype.codePointAt, Bi = !!String.prototype.trimStart, Pi = !!String.prototype.trimEnd, Mi = !!Number.isSafeInteger, Oi = Mi ? Number.isSafeInteger : function(e) {
2981
+ return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2982
+ }, st = !0;
2983
+ try {
2984
+ var Li = Nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2985
+ st = ((We = Li.exec("a")) === null || We === void 0 ? void 0 : We[0]) === "a";
2986
+ } catch (e) {
2987
+ st = !1;
2988
+ }
2989
+ var $t = Hi ? (
2990
+ // Native
2991
+ function(t, r, n) {
2992
+ return t.startsWith(r, n);
2993
+ }
2994
+ ) : (
2995
+ // For IE11
2996
+ function(t, r, n) {
2997
+ return t.slice(n, n + r.length) === r;
2998
+ }
2999
+ ), ot = Ti ? String.fromCodePoint : (
3000
+ // IE11
3001
+ function() {
3002
+ for (var t = [], r = 0; r < arguments.length; r++)
3003
+ t[r] = arguments[r];
3004
+ for (var n = "", i = t.length, s = 0, o; i > s; ) {
3005
+ if (o = t[s++], o > 1114111)
3006
+ throw RangeError(o + " is not a valid code point");
3007
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
3008
+ }
3009
+ return n;
3010
+ }
3011
+ ), jt = (
3012
+ // native
3013
+ Ai ? Object.fromEntries : (
3014
+ // Ponyfill
3015
+ function(t) {
3016
+ for (var r = {}, n = 0, i = t; n < i.length; n++) {
3017
+ var s = i[n], o = s[0], a = s[1];
3018
+ r[o] = a;
3019
+ }
3020
+ return r;
3021
+ }
3022
+ )
3023
+ ), Lr = Ii ? (
3024
+ // Native
3025
+ function(t, r) {
3026
+ return t.codePointAt(r);
3027
+ }
3028
+ ) : (
3029
+ // IE 11
3030
+ function(t, r) {
3031
+ var n = t.length;
3032
+ if (!(r < 0 || r >= n)) {
3033
+ var i = t.charCodeAt(r), s;
3034
+ return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
3035
+ }
3036
+ }
3037
+ ), Ni = Bi ? (
3038
+ // Native
3039
+ function(t) {
3040
+ return t.trimStart();
3041
+ }
3042
+ ) : (
3043
+ // Ponyfill
3044
+ function(t) {
3045
+ return t.replace(Ci, "");
3046
+ }
3047
+ ), Fi = Pi ? (
3048
+ // Native
3049
+ function(t) {
3050
+ return t.trimEnd();
3051
+ }
3052
+ ) : (
3053
+ // Ponyfill
3054
+ function(t) {
3055
+ return t.replace(Si, "");
3056
+ }
3057
+ );
3058
+ function Nr(e, t) {
3059
+ return new RegExp(e, t);
3060
+ }
3061
+ var at;
3062
+ if (st) {
3063
+ var Vt = Nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3064
+ at = function(t, r) {
3065
+ var n;
3066
+ Vt.lastIndex = r;
3067
+ var i = Vt.exec(t);
3068
+ return (n = i[1]) !== null && n !== void 0 ? n : "";
3069
+ };
3070
+ } else
3071
+ at = function(t, r) {
3072
+ for (var n = []; ; ) {
3073
+ var i = Lr(t, r);
3074
+ if (i === void 0 || Fr(i) || Gi(i))
3075
+ break;
3076
+ n.push(i), r += i >= 65536 ? 2 : 1;
3077
+ }
3078
+ return ot.apply(void 0, n);
3079
+ };
3080
+ var Ri = (
3081
+ /** @class */
3082
+ function() {
3083
+ function e(t, r) {
3084
+ r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
3085
+ }
3086
+ return e.prototype.parse = function() {
3087
+ if (this.offset() !== 0)
3088
+ throw Error("parser can only be used once");
3089
+ return this.parseMessage(0, "", !1);
3090
+ }, e.prototype.parseMessage = function(t, r, n) {
3091
+ for (var i = []; !this.isEOF(); ) {
3092
+ var s = this.char();
3093
+ if (s === 123) {
3094
+ var o = this.parseArgument(t, n);
3095
+ if (o.err)
3096
+ return o;
3097
+ i.push(o.val);
3098
+ } else {
3099
+ if (s === 125 && t > 0)
3100
+ break;
3101
+ if (s === 35 && (r === "plural" || r === "selectordinal")) {
3102
+ var a = this.clonePosition();
3103
+ this.bump(), i.push({
3104
+ type: T.pound,
3105
+ location: y(a, this.clonePosition())
3106
+ });
3107
+ } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
3108
+ if (n)
3109
+ break;
3110
+ return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
3111
+ } else if (s === 60 && !this.ignoreTag && lt(this.peek() || 0)) {
3112
+ var o = this.parseTag(t, r);
3113
+ if (o.err)
3114
+ return o;
3115
+ i.push(o.val);
3116
+ } else {
3117
+ var o = this.parseLiteral(t, r);
3118
+ if (o.err)
3119
+ return o;
3120
+ i.push(o.val);
3121
+ }
3122
+ }
3123
+ }
3124
+ return { val: i, err: null };
3125
+ }, e.prototype.parseTag = function(t, r) {
3126
+ var n = this.clonePosition();
3127
+ this.bump();
3128
+ var i = this.parseTagName();
3129
+ if (this.bumpSpace(), this.bumpIf("/>"))
3130
+ return {
3131
+ val: {
3132
+ type: T.literal,
3133
+ value: "<".concat(i, "/>"),
3134
+ location: y(n, this.clonePosition())
3135
+ },
3136
+ err: null
3137
+ };
3138
+ if (this.bumpIf(">")) {
3139
+ var s = this.parseMessage(t + 1, r, !0);
3140
+ if (s.err)
3141
+ return s;
3142
+ var o = s.val, a = this.clonePosition();
3143
+ if (this.bumpIf("</")) {
3144
+ if (this.isEOF() || !lt(this.char()))
3145
+ return this.error(b.INVALID_TAG, y(a, this.clonePosition()));
3146
+ var l = this.clonePosition(), u = this.parseTagName();
3147
+ return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3148
+ val: {
3149
+ type: T.tag,
3150
+ value: i,
3151
+ children: o,
3152
+ location: y(n, this.clonePosition())
3153
+ },
3154
+ err: null
3155
+ } : this.error(b.INVALID_TAG, y(a, this.clonePosition())));
3156
+ } else
3157
+ return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
3158
+ } else
3159
+ return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
3160
+ }, e.prototype.parseTagName = function() {
3161
+ var t = this.offset();
3162
+ for (this.bump(); !this.isEOF() && Ui(this.char()); )
3163
+ this.bump();
3164
+ return this.message.slice(t, this.offset());
3165
+ }, e.prototype.parseLiteral = function(t, r) {
3166
+ for (var n = this.clonePosition(), i = ""; ; ) {
3167
+ var s = this.tryParseQuote(r);
3168
+ if (s) {
3169
+ i += s;
3170
+ continue;
3171
+ }
3172
+ var o = this.tryParseUnquoted(t, r);
3173
+ if (o) {
3174
+ i += o;
3175
+ continue;
3176
+ }
3177
+ var a = this.tryParseLeftAngleBracket();
3178
+ if (a) {
3179
+ i += a;
3180
+ continue;
3181
+ }
3182
+ break;
3183
+ }
3184
+ var l = y(n, this.clonePosition());
3185
+ return {
3186
+ val: { type: T.literal, value: i, location: l },
3187
+ err: null
3188
+ };
3189
+ }, e.prototype.tryParseLeftAngleBracket = function() {
3190
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3191
+ !Di(this.peek() || 0)) ? (this.bump(), "<") : null;
3192
+ }, e.prototype.tryParseQuote = function(t) {
3193
+ if (this.isEOF() || this.char() !== 39)
3194
+ return null;
3195
+ switch (this.peek()) {
3196
+ case 39:
3197
+ return this.bump(), this.bump(), "'";
3198
+ case 123:
3199
+ case 60:
3200
+ case 62:
3201
+ case 125:
3202
+ break;
3203
+ case 35:
3204
+ if (t === "plural" || t === "selectordinal")
3205
+ break;
3206
+ return null;
3207
+ default:
3208
+ return null;
3209
+ }
3210
+ this.bump();
3211
+ var r = [this.char()];
3212
+ for (this.bump(); !this.isEOF(); ) {
3213
+ var n = this.char();
3214
+ if (n === 39)
3215
+ if (this.peek() === 39)
3216
+ r.push(39), this.bump();
3217
+ else {
3218
+ this.bump();
3219
+ break;
3220
+ }
3221
+ else
3222
+ r.push(n);
3223
+ this.bump();
3224
+ }
3225
+ return ot.apply(void 0, r);
3226
+ }, e.prototype.tryParseUnquoted = function(t, r) {
3227
+ if (this.isEOF())
3228
+ return null;
3229
+ var n = this.char();
3230
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ot(n));
3231
+ }, e.prototype.parseArgument = function(t, r) {
3232
+ var n = this.clonePosition();
3233
+ if (this.bump(), this.bumpSpace(), this.isEOF())
3234
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
3235
+ if (this.char() === 125)
3236
+ return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
3237
+ var i = this.parseIdentifierIfPossible().value;
3238
+ if (!i)
3239
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3240
+ if (this.bumpSpace(), this.isEOF())
3241
+ return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
3242
+ switch (this.char()) {
3243
+ case 125:
3244
+ return this.bump(), {
3245
+ val: {
3246
+ type: T.argument,
3247
+ // value does not include the opening and closing braces.
3248
+ value: i,
3249
+ location: y(n, this.clonePosition())
3250
+ },
3251
+ err: null
3252
+ };
3253
+ case 44:
3254
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3255
+ default:
3256
+ return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3257
+ }
3258
+ }, e.prototype.parseIdentifierIfPossible = function() {
3259
+ var t = this.clonePosition(), r = this.offset(), n = at(this.message, r), i = r + n.length;
3260
+ this.bumpTo(i);
3261
+ var s = this.clonePosition(), o = y(t, s);
3262
+ return { value: n, location: o };
3263
+ }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3264
+ var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3265
+ switch (a) {
3266
+ case "":
3267
+ return this.error(b.EXPECT_ARGUMENT_TYPE, y(o, l));
3268
+ case "number":
3269
+ case "date":
3270
+ case "time": {
3271
+ this.bumpSpace();
3272
+ var u = null;
3273
+ if (this.bumpIf(",")) {
3274
+ this.bumpSpace();
3275
+ var h = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
3276
+ if (g.err)
3277
+ return g;
3278
+ var f = Fi(g.val);
3279
+ if (f.length === 0)
3280
+ return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
3281
+ var d = y(h, this.clonePosition());
3282
+ u = { style: f, styleLocation: d };
3283
+ }
3284
+ var m = this.tryParseArgumentClose(i);
3285
+ if (m.err)
3286
+ return m;
3287
+ var v = y(i, this.clonePosition());
3288
+ if (u && $t(u == null ? void 0 : u.style, "::", 0)) {
3289
+ var p = Ni(u.style.slice(2));
3290
+ if (a === "number") {
3291
+ var g = this.parseNumberSkeletonFromString(p, u.styleLocation);
3292
+ return g.err ? g : {
3293
+ val: { type: T.number, value: n, location: v, style: g.val },
3294
+ err: null
3295
+ };
3296
+ } else {
3297
+ if (p.length === 0)
3298
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, v);
3299
+ var H = p;
3300
+ this.locale && (H = xi(p, this.locale));
3301
+ var f = {
3302
+ type: le.dateTime,
3303
+ pattern: H,
3304
+ location: u.styleLocation,
3305
+ parsedOptions: this.shouldParseSkeletons ? vi(H) : {}
3306
+ }, _ = a === "date" ? T.date : T.time;
3307
+ return {
3308
+ val: { type: _, value: n, location: v, style: f },
3309
+ err: null
3310
+ };
3311
+ }
3312
+ }
3313
+ return {
3314
+ val: {
3315
+ type: a === "number" ? T.number : a === "date" ? T.date : T.time,
3316
+ value: n,
3317
+ location: v,
3318
+ style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
3319
+ },
3320
+ err: null
3321
+ };
3322
+ }
3323
+ case "plural":
3324
+ case "selectordinal":
3325
+ case "select": {
3326
+ var w = this.clonePosition();
3327
+ if (this.bumpSpace(), !this.bumpIf(","))
3328
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(w, E({}, w)));
3329
+ this.bumpSpace();
3330
+ var L = this.parseIdentifierIfPossible(), N = 0;
3331
+ if (a !== "select" && L.value === "offset") {
3332
+ if (!this.bumpIf(":"))
3333
+ return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
3334
+ this.bumpSpace();
3335
+ var g = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3336
+ if (g.err)
3337
+ return g;
3338
+ this.bumpSpace(), L = this.parseIdentifierIfPossible(), N = g.val;
3339
+ }
3340
+ var k = this.tryParsePluralOrSelectOptions(t, a, r, L);
3341
+ if (k.err)
3342
+ return k;
3343
+ var m = this.tryParseArgumentClose(i);
3344
+ if (m.err)
3345
+ return m;
3346
+ var S = y(i, this.clonePosition());
3347
+ return a === "select" ? {
3348
+ val: {
3349
+ type: T.select,
3350
+ value: n,
3351
+ options: jt(k.val),
3352
+ location: S
3353
+ },
3354
+ err: null
3355
+ } : {
3356
+ val: {
3357
+ type: T.plural,
3358
+ value: n,
3359
+ options: jt(k.val),
3360
+ offset: N,
3361
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
3362
+ location: S
3363
+ },
3364
+ err: null
3365
+ };
3366
+ }
3367
+ default:
3368
+ return this.error(b.INVALID_ARGUMENT_TYPE, y(o, l));
3369
+ }
3370
+ }, e.prototype.tryParseArgumentClose = function(t) {
3371
+ return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3372
+ }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3373
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3374
+ var n = this.char();
3375
+ switch (n) {
3376
+ case 39: {
3377
+ this.bump();
3378
+ var i = this.clonePosition();
3379
+ if (!this.bumpUntil("'"))
3380
+ return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
3381
+ this.bump();
3382
+ break;
3383
+ }
3384
+ case 123: {
3385
+ t += 1, this.bump();
3386
+ break;
3387
+ }
3388
+ case 125: {
3389
+ if (t > 0)
3390
+ t -= 1;
3391
+ else
3392
+ return {
3393
+ val: this.message.slice(r.offset, this.offset()),
3394
+ err: null
3395
+ };
3396
+ break;
3397
+ }
3398
+ default:
3399
+ this.bump();
3400
+ break;
3401
+ }
3402
+ }
3403
+ return {
3404
+ val: this.message.slice(r.offset, this.offset()),
3405
+ err: null
3406
+ };
3407
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3408
+ var n = [];
3409
+ try {
3410
+ n = mi(t);
3411
+ } catch (i) {
3412
+ return this.error(b.INVALID_NUMBER_SKELETON, r);
3413
+ }
3414
+ return {
3415
+ val: {
3416
+ type: le.number,
3417
+ tokens: n,
3418
+ location: r,
3419
+ parsedOptions: this.shouldParseSkeletons ? Ei(n) : {}
3420
+ },
3421
+ err: null
3422
+ };
3423
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3424
+ for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3425
+ if (u.length === 0) {
3426
+ var g = this.clonePosition();
3427
+ if (r !== "select" && this.bumpIf("=")) {
3428
+ var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3429
+ if (f.err)
3430
+ return f;
3431
+ h = y(g, this.clonePosition()), u = this.message.slice(g.offset, this.offset());
3432
+ } else
3433
+ break;
3434
+ }
3435
+ if (l.has(u))
3436
+ return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3437
+ u === "other" && (o = !0), this.bumpSpace();
3438
+ var d = this.clonePosition();
3439
+ if (!this.bumpIf("{"))
3440
+ return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3441
+ var m = this.parseMessage(t + 1, r, n);
3442
+ if (m.err)
3443
+ return m;
3444
+ var v = this.tryParseArgumentClose(d);
3445
+ if (v.err)
3446
+ return v;
3447
+ a.push([
3448
+ u,
3449
+ {
3450
+ value: m.val,
3451
+ location: y(d, this.clonePosition())
3452
+ }
3453
+ ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3454
+ }
3455
+ return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3456
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
3457
+ var n = 1, i = this.clonePosition();
3458
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3459
+ for (var s = !1, o = 0; !this.isEOF(); ) {
3460
+ var a = this.char();
3461
+ if (a >= 48 && a <= 57)
3462
+ s = !0, o = o * 10 + (a - 48), this.bump();
3463
+ else
3464
+ break;
3465
+ }
3466
+ var l = y(i, this.clonePosition());
3467
+ return s ? (o *= n, Oi(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
3468
+ }, e.prototype.offset = function() {
3469
+ return this.position.offset;
3470
+ }, e.prototype.isEOF = function() {
3471
+ return this.offset() === this.message.length;
3472
+ }, e.prototype.clonePosition = function() {
3473
+ return {
3474
+ offset: this.position.offset,
3475
+ line: this.position.line,
3476
+ column: this.position.column
3477
+ };
3478
+ }, e.prototype.char = function() {
3479
+ var t = this.position.offset;
3480
+ if (t >= this.message.length)
3481
+ throw Error("out of bound");
3482
+ var r = Lr(this.message, t);
3483
+ if (r === void 0)
3484
+ throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3485
+ return r;
3486
+ }, e.prototype.error = function(t, r) {
3487
+ return {
3488
+ val: null,
3489
+ err: {
3490
+ kind: t,
3491
+ message: this.message,
3492
+ location: r
3493
+ }
3494
+ };
3495
+ }, e.prototype.bump = function() {
3496
+ if (!this.isEOF()) {
3497
+ var t = this.char();
3498
+ 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);
3499
+ }
3500
+ }, e.prototype.bumpIf = function(t) {
3501
+ if ($t(this.message, t, this.offset())) {
3502
+ for (var r = 0; r < t.length; r++)
3503
+ this.bump();
3504
+ return !0;
3505
+ }
3506
+ return !1;
3507
+ }, e.prototype.bumpUntil = function(t) {
3508
+ var r = this.offset(), n = this.message.indexOf(t, r);
3509
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3510
+ }, e.prototype.bumpTo = function(t) {
3511
+ if (this.offset() > t)
3512
+ throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3513
+ for (t = Math.min(t, this.message.length); ; ) {
3514
+ var r = this.offset();
3515
+ if (r === t)
3516
+ break;
3517
+ if (r > t)
3518
+ throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3519
+ if (this.bump(), this.isEOF())
3520
+ break;
3521
+ }
3522
+ }, e.prototype.bumpSpace = function() {
3523
+ for (; !this.isEOF() && Fr(this.char()); )
3524
+ this.bump();
3525
+ }, e.prototype.peek = function() {
3526
+ if (this.isEOF())
3527
+ return null;
3528
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3529
+ return n != null ? n : null;
3530
+ }, e;
3531
+ }()
3532
+ );
3533
+ function lt(e) {
3534
+ return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3535
+ }
3536
+ function Di(e) {
3537
+ return lt(e) || e === 47;
3538
+ }
3539
+ function Ui(e) {
3540
+ 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;
3541
+ }
3542
+ function Fr(e) {
3543
+ return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3544
+ }
3545
+ function Gi(e) {
3546
+ 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;
3547
+ }
3548
+ function ut(e) {
3549
+ e.forEach(function(t) {
3550
+ if (delete t.location, Hr(t) || Tr(t))
3551
+ for (var r in t.options)
3552
+ delete t.options[r].location, ut(t.options[r].value);
3553
+ else wr(t) && Ir(t.style) || (Cr(t) || Sr(t)) && it(t.style) ? delete t.style.location : Ar(t) && ut(t.children);
3554
+ });
3555
+ }
3556
+ function ki(e, t) {
3557
+ t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3558
+ var r = new Ri(e, t).parse();
3559
+ if (r.err) {
3560
+ var n = SyntaxError(b[r.err.kind]);
3561
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3562
+ }
3563
+ return t != null && t.captureLocation || ut(r.val), r.val;
3564
+ }
3565
+ function ze(e, t) {
3566
+ var r = t && t.cache ? t.cache : zi, n = t && t.serializer ? t.serializer : Wi, i = t && t.strategy ? t.strategy : ji;
3567
+ return i(e, {
3568
+ cache: r,
3569
+ serializer: n
3570
+ });
3571
+ }
3572
+ function $i(e) {
3573
+ return e == null || typeof e == "number" || typeof e == "boolean";
3574
+ }
3575
+ function Rr(e, t, r, n) {
3576
+ var i = $i(n) ? n : r(n), s = t.get(i);
3577
+ return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
3578
+ }
3579
+ function Dr(e, t, r) {
3580
+ var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
3581
+ return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
3582
+ }
3583
+ function dt(e, t, r, n, i) {
3584
+ return r.bind(t, e, n, i);
3585
+ }
3586
+ function ji(e, t) {
3587
+ var r = e.length === 1 ? Rr : Dr;
3588
+ return dt(e, this, r, t.cache.create(), t.serializer);
3589
+ }
3590
+ function Vi(e, t) {
3591
+ return dt(e, this, Dr, t.cache.create(), t.serializer);
3592
+ }
3593
+ function Xi(e, t) {
3594
+ return dt(e, this, Rr, t.cache.create(), t.serializer);
3595
+ }
3596
+ var Wi = function() {
3597
+ return JSON.stringify(arguments);
3598
+ };
3599
+ function vt() {
3600
+ this.cache = /* @__PURE__ */ Object.create(null);
3601
+ }
3602
+ vt.prototype.get = function(e) {
3603
+ return this.cache[e];
3604
+ };
3605
+ vt.prototype.set = function(e, t) {
3606
+ this.cache[e] = t;
3607
+ };
3608
+ var zi = {
3609
+ create: function() {
3610
+ return new vt();
3611
+ }
3612
+ }, Ze = {
3613
+ variadic: Vi,
3614
+ monadic: Xi
3615
+ }, ue;
3616
+ (function(e) {
3617
+ e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3618
+ })(ue || (ue = {}));
3619
+ var De = (
3620
+ /** @class */
3621
+ function(e) {
3622
+ V(t, e);
3623
+ function t(r, n, i) {
3624
+ var s = e.call(this, r) || this;
3625
+ return s.code = n, s.originalMessage = i, s;
3626
+ }
3627
+ return t.prototype.toString = function() {
3628
+ return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3629
+ }, t;
3630
+ }(Error)
3631
+ ), Xt = (
3632
+ /** @class */
3633
+ function(e) {
3634
+ V(t, e);
3635
+ function t(r, n, i, s) {
3636
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ue.INVALID_VALUE, s) || this;
3637
+ }
3638
+ return t;
3639
+ }(De)
3640
+ ), Zi = (
3641
+ /** @class */
3642
+ function(e) {
3643
+ V(t, e);
3644
+ function t(r, n, i) {
3645
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ue.INVALID_VALUE, i) || this;
3646
+ }
3647
+ return t;
3648
+ }(De)
3649
+ ), Yi = (
3650
+ /** @class */
3651
+ function(e) {
3652
+ V(t, e);
3653
+ function t(r, n) {
3654
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ue.MISSING_VALUE, n) || this;
3655
+ }
3656
+ return t;
3657
+ }(De)
3658
+ ), F;
3659
+ (function(e) {
3660
+ e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3661
+ })(F || (F = {}));
3662
+ function Qi(e) {
3663
+ return e.length < 2 ? e : e.reduce(function(t, r) {
3664
+ var n = t[t.length - 1];
3665
+ return !n || n.type !== F.literal || r.type !== F.literal ? t.push(r) : n.value += r.value, t;
3666
+ }, []);
3667
+ }
3668
+ function qi(e) {
3669
+ return typeof e == "function";
3670
+ }
3671
+ function Pe(e, t, r, n, i, s, o) {
3672
+ if (e.length === 1 && Dt(e[0]))
3673
+ return [
3674
+ {
3675
+ type: F.literal,
3676
+ value: e[0].value
3677
+ }
3678
+ ];
3679
+ for (var a = [], l = 0, u = e; l < u.length; l++) {
3680
+ var h = u[l];
3681
+ if (Dt(h)) {
3682
+ a.push({
3683
+ type: F.literal,
3684
+ value: h.value
3685
+ });
3686
+ continue;
3687
+ }
3688
+ if (gi(h)) {
3689
+ typeof s == "number" && a.push({
3690
+ type: F.literal,
3691
+ value: r.getNumberFormat(t).format(s)
3692
+ });
3693
+ continue;
3694
+ }
3695
+ var g = h.value;
3696
+ if (!(i && g in i))
3697
+ throw new Yi(g, o);
3698
+ var f = i[g];
3699
+ if (fi(h)) {
3700
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3701
+ type: typeof f == "string" ? F.literal : F.object,
3702
+ value: f
3703
+ });
3704
+ continue;
3705
+ }
3706
+ if (Cr(h)) {
3707
+ var d = typeof h.style == "string" ? n.date[h.style] : it(h.style) ? h.style.parsedOptions : void 0;
3708
+ a.push({
3709
+ type: F.literal,
3710
+ value: r.getDateTimeFormat(t, d).format(f)
3711
+ });
3712
+ continue;
3713
+ }
3714
+ if (Sr(h)) {
3715
+ var d = typeof h.style == "string" ? n.time[h.style] : it(h.style) ? h.style.parsedOptions : n.time.medium;
3716
+ a.push({
3717
+ type: F.literal,
3718
+ value: r.getDateTimeFormat(t, d).format(f)
3719
+ });
3720
+ continue;
3721
+ }
3722
+ if (wr(h)) {
3723
+ var d = typeof h.style == "string" ? n.number[h.style] : Ir(h.style) ? h.style.parsedOptions : void 0;
3724
+ d && d.scale && (f = f * (d.scale || 1)), a.push({
3725
+ type: F.literal,
3726
+ value: r.getNumberFormat(t, d).format(f)
3727
+ });
3728
+ continue;
3729
+ }
3730
+ if (Ar(h)) {
3731
+ var m = h.children, v = h.value, p = i[v];
3732
+ if (!qi(p))
3733
+ throw new Zi(v, "function", o);
3734
+ var H = Pe(m, t, r, n, i, s), _ = p(H.map(function(N) {
3735
+ return N.value;
3736
+ }));
3737
+ Array.isArray(_) || (_ = [_]), a.push.apply(a, _.map(function(N) {
3738
+ return {
3739
+ type: typeof N == "string" ? F.literal : F.object,
3740
+ value: N
3741
+ };
3742
+ }));
3743
+ }
3744
+ if (Hr(h)) {
3745
+ var w = h.options[f] || h.options.other;
3746
+ if (!w)
3747
+ throw new Xt(h.value, f, Object.keys(h.options), o);
3748
+ a.push.apply(a, Pe(w.value, t, r, n, i));
3749
+ continue;
3750
+ }
3751
+ if (Tr(h)) {
3752
+ var w = h.options["=".concat(f)];
3753
+ if (!w) {
3754
+ if (!Intl.PluralRules)
3755
+ throw new De(`Intl.PluralRules is not available in this environment.
3756
+ Try polyfilling it using "@formatjs/intl-pluralrules"
3757
+ `, ue.MISSING_INTL_API, o);
3758
+ var L = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3759
+ w = h.options[L] || h.options.other;
3760
+ }
3761
+ if (!w)
3762
+ throw new Xt(h.value, f, Object.keys(h.options), o);
3763
+ a.push.apply(a, Pe(w.value, t, r, n, i, f - (h.offset || 0)));
3764
+ continue;
3765
+ }
3766
+ }
3767
+ return Qi(a);
3768
+ }
3769
+ function Ji(e, t) {
3770
+ return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3771
+ return r[n] = E(E({}, e[n]), t[n] || {}), r;
3772
+ }, {})) : e;
3773
+ }
3774
+ function Ki(e, t) {
3775
+ return t ? Object.keys(e).reduce(function(r, n) {
3776
+ return r[n] = Ji(e[n], t[n]), r;
3777
+ }, E({}, e)) : e;
3778
+ }
3779
+ function Ye(e) {
3780
+ return {
3781
+ create: function() {
3782
+ return {
3783
+ get: function(t) {
3784
+ return e[t];
3785
+ },
3786
+ set: function(t, r) {
3787
+ e[t] = r;
3788
+ }
3789
+ };
3790
+ }
3791
+ };
3792
+ }
3793
+ function es(e) {
3794
+ return e === void 0 && (e = {
3795
+ number: {},
3796
+ dateTime: {},
3797
+ pluralRules: {}
3798
+ }), {
3799
+ getNumberFormat: ze(function() {
3800
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3801
+ r[n] = arguments[n];
3802
+ return new ((t = Intl.NumberFormat).bind.apply(t, se([void 0], r, !1)))();
3803
+ }, {
3804
+ cache: Ye(e.number),
3805
+ strategy: Ze.variadic
3806
+ }),
3807
+ getDateTimeFormat: ze(function() {
3808
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3809
+ r[n] = arguments[n];
3810
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, se([void 0], r, !1)))();
3811
+ }, {
3812
+ cache: Ye(e.dateTime),
3813
+ strategy: Ze.variadic
3814
+ }),
3815
+ getPluralRules: ze(function() {
3816
+ for (var t, r = [], n = 0; n < arguments.length; n++)
3817
+ r[n] = arguments[n];
3818
+ return new ((t = Intl.PluralRules).bind.apply(t, se([void 0], r, !1)))();
3819
+ }, {
3820
+ cache: Ye(e.pluralRules),
3821
+ strategy: Ze.variadic
3822
+ })
3823
+ };
3824
+ }
3825
+ var ts = (
3826
+ /** @class */
3827
+ function() {
3828
+ function e(t, r, n, i) {
3829
+ var s = this;
3830
+ if (r === void 0 && (r = e.defaultLocale), this.formatterCache = {
3831
+ number: {},
3832
+ dateTime: {},
3833
+ pluralRules: {}
3834
+ }, this.format = function(l) {
3835
+ var u = s.formatToParts(l);
3836
+ if (u.length === 1)
3837
+ return u[0].value;
3838
+ var h = u.reduce(function(g, f) {
3839
+ return !g.length || f.type !== F.literal || typeof g[g.length - 1] != "string" ? g.push(f.value) : g[g.length - 1] += f.value, g;
3840
+ }, []);
3841
+ return h.length <= 1 ? h[0] || "" : h;
3842
+ }, this.formatToParts = function(l) {
3843
+ return Pe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3844
+ }, this.resolvedOptions = function() {
3845
+ var l;
3846
+ return {
3847
+ locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
3848
+ };
3849
+ }, this.getAst = function() {
3850
+ return s.ast;
3851
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3852
+ if (this.message = t, !e.__parse)
3853
+ throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3854
+ var o = i || {};
3855
+ o.formatters;
3856
+ var a = Nn(o, ["formatters"]);
3857
+ this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
3858
+ } else
3859
+ this.ast = t;
3860
+ if (!Array.isArray(this.ast))
3861
+ throw new TypeError("A message must be provided as a String or AST.");
3862
+ this.formats = Ki(e.formats, n), this.formatters = i && i.formatters || es(this.formatterCache);
3863
+ }
3864
+ return Object.defineProperty(e, "defaultLocale", {
3865
+ get: function() {
3866
+ return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
3867
+ },
3868
+ enumerable: !1,
3869
+ configurable: !0
3870
+ }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3871
+ if (typeof Intl.Locale != "undefined") {
3872
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
3873
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3874
+ }
3875
+ }, e.__parse = ki, e.formats = {
3876
+ number: {
3877
+ integer: {
3878
+ maximumFractionDigits: 0
3879
+ },
3880
+ currency: {
3881
+ style: "currency"
3882
+ },
3883
+ percent: {
3884
+ style: "percent"
3885
+ }
3886
+ },
3887
+ date: {
3888
+ short: {
3889
+ month: "numeric",
3890
+ day: "numeric",
3891
+ year: "2-digit"
3892
+ },
3893
+ medium: {
3894
+ month: "short",
3895
+ day: "numeric",
3896
+ year: "numeric"
3897
+ },
3898
+ long: {
3899
+ month: "long",
3900
+ day: "numeric",
3901
+ year: "numeric"
3902
+ },
3903
+ full: {
3904
+ weekday: "long",
3905
+ month: "long",
3906
+ day: "numeric",
3907
+ year: "numeric"
3908
+ }
3909
+ },
3910
+ time: {
3911
+ short: {
3912
+ hour: "numeric",
3913
+ minute: "numeric"
3914
+ },
3915
+ medium: {
3916
+ hour: "numeric",
3917
+ minute: "numeric",
3918
+ second: "numeric"
3919
+ },
3920
+ long: {
3921
+ hour: "numeric",
3922
+ minute: "numeric",
3923
+ second: "numeric",
3924
+ timeZoneName: "short"
3925
+ },
3926
+ full: {
3927
+ hour: "numeric",
3928
+ minute: "numeric",
3929
+ second: "numeric",
3930
+ timeZoneName: "short"
3931
+ }
3932
+ }
3933
+ }, e;
3934
+ }()
3935
+ );
3936
+ function rs(e, t) {
3937
+ if (t == null)
3938
+ return;
3939
+ if (t in e)
3940
+ return e[t];
3941
+ const r = t.split(".");
3942
+ let n = e;
3943
+ for (let i = 0; i < r.length; i++)
3944
+ if (typeof n == "object") {
3945
+ if (i > 0) {
3946
+ const s = r.slice(i, r.length).join(".");
3947
+ if (s in n) {
3948
+ n = n[s];
3949
+ break;
3950
+ }
3951
+ }
3952
+ n = n[r[i]];
3953
+ } else
3954
+ n = void 0;
3955
+ return n;
3956
+ }
3957
+ const z = {}, ns = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Ur = (e, t) => {
3958
+ if (t == null)
3959
+ return;
3960
+ if (t in z && e in z[t])
3961
+ return z[t][e];
3962
+ const r = Ue(t);
3963
+ for (let n = 0; n < r.length; n++) {
3964
+ const i = r[n], s = ss(i, e);
3965
+ if (s)
3966
+ return ns(e, t, s);
3967
+ }
3968
+ };
3969
+ let pt;
3970
+ const fe = Re({});
3971
+ function is(e) {
3972
+ return pt[e] || null;
3973
+ }
3974
+ function Gr(e) {
3975
+ return e in pt;
3976
+ }
3977
+ function ss(e, t) {
3978
+ if (!Gr(e))
3979
+ return null;
3980
+ const r = is(e);
3981
+ return rs(r, t);
3982
+ }
3983
+ function os(e) {
3984
+ if (e == null)
3985
+ return;
3986
+ const t = Ue(e);
3987
+ for (let r = 0; r < t.length; r++) {
3988
+ const n = t[r];
3989
+ if (Gr(n))
3990
+ return n;
3991
+ }
3992
+ }
3993
+ function kr(e, ...t) {
3994
+ delete z[e], fe.update((r) => (r[e] = ci.all([r[e] || {}, ...t]), r));
3995
+ }
3996
+ ce(
3997
+ [fe],
3998
+ ([e]) => Object.keys(e)
3999
+ );
4000
+ fe.subscribe((e) => pt = e);
4001
+ const Me = {};
4002
+ function as(e, t) {
4003
+ Me[e].delete(t), Me[e].size === 0 && delete Me[e];
4004
+ }
4005
+ function $r(e) {
4006
+ return Me[e];
4007
+ }
4008
+ function ls(e) {
4009
+ return Ue(e).map((t) => {
4010
+ const r = $r(t);
4011
+ return [t, r ? [...r] : []];
4012
+ }).filter(([, t]) => t.length > 0);
4013
+ }
4014
+ function ht(e) {
4015
+ return e == null ? !1 : Ue(e).some(
4016
+ (t) => {
4017
+ var r;
4018
+ return (r = $r(t)) == null ? void 0 : r.size;
4019
+ }
4020
+ );
4021
+ }
4022
+ function us(e, t) {
4023
+ return Promise.all(
4024
+ t.map((n) => (as(e, n), n().then((i) => i.default || i)))
4025
+ ).then((n) => kr(e, ...n));
4026
+ }
4027
+ const ve = {};
4028
+ function jr(e) {
4029
+ if (!ht(e))
4030
+ return e in ve ? ve[e] : Promise.resolve();
4031
+ const t = ls(e);
4032
+ return ve[e] = Promise.all(
4033
+ t.map(
4034
+ ([r, n]) => us(r, n)
4035
+ )
4036
+ ).then(() => {
4037
+ if (ht(e))
4038
+ return jr(e);
4039
+ delete ve[e];
4040
+ }), ve[e];
4041
+ }
4042
+ const hs = {
4043
+ number: {
4044
+ scientific: { notation: "scientific" },
4045
+ engineering: { notation: "engineering" },
4046
+ compactLong: { notation: "compact", compactDisplay: "long" },
4047
+ compactShort: { notation: "compact", compactDisplay: "short" }
4048
+ },
4049
+ date: {
4050
+ short: { month: "numeric", day: "numeric", year: "2-digit" },
4051
+ medium: { month: "short", day: "numeric", year: "numeric" },
4052
+ long: { month: "long", day: "numeric", year: "numeric" },
4053
+ full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
4054
+ },
4055
+ time: {
4056
+ short: { hour: "numeric", minute: "numeric" },
4057
+ medium: { hour: "numeric", minute: "numeric", second: "numeric" },
4058
+ long: {
4059
+ hour: "numeric",
4060
+ minute: "numeric",
4061
+ second: "numeric",
4062
+ timeZoneName: "short"
4063
+ },
4064
+ full: {
4065
+ hour: "numeric",
4066
+ minute: "numeric",
4067
+ second: "numeric",
4068
+ timeZoneName: "short"
4069
+ }
4070
+ }
4071
+ }, cs = {
4072
+ fallbackLocale: null,
4073
+ loadingDelay: 200,
4074
+ formats: hs,
4075
+ warnOnMissingMessages: !0,
4076
+ handleMissingMessage: void 0,
4077
+ ignoreTag: !0
4078
+ }, fs = cs;
4079
+ function he() {
4080
+ return fs;
4081
+ }
4082
+ const Qe = Re(!1);
4083
+ var gs = Object.defineProperty, ds = Object.defineProperties, vs = Object.getOwnPropertyDescriptors, Wt = Object.getOwnPropertySymbols, ps = Object.prototype.hasOwnProperty, ms = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? gs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bs = (e, t) => {
4084
+ for (var r in t || (t = {}))
4085
+ ps.call(t, r) && zt(e, r, t[r]);
4086
+ if (Wt)
4087
+ for (var r of Wt(t))
4088
+ ms.call(t, r) && zt(e, r, t[r]);
4089
+ return e;
4090
+ }, ys = (e, t) => ds(e, vs(t));
4091
+ let ct;
4092
+ const Le = Re(null);
4093
+ function Zt(e) {
4094
+ return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4095
+ }
4096
+ function Ue(e, t = he().fallbackLocale) {
4097
+ const r = Zt(e);
4098
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Zt(t)])] : r;
4099
+ }
4100
+ function ee() {
4101
+ return ct != null ? ct : void 0;
4102
+ }
4103
+ Le.subscribe((e) => {
4104
+ ct = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4105
+ });
4106
+ const _s = (e) => {
4107
+ if (e && os(e) && ht(e)) {
4108
+ const { loadingDelay: t } = he();
4109
+ let r;
4110
+ return typeof window != "undefined" && ee() != null && t ? r = window.setTimeout(
4111
+ () => Qe.set(!0),
4112
+ t
4113
+ ) : Qe.set(!0), jr(e).then(() => {
4114
+ Le.set(e);
4115
+ }).finally(() => {
4116
+ clearTimeout(r), Qe.set(!1);
4117
+ });
4118
+ }
4119
+ return Le.set(e);
4120
+ }, Z = ys(bs({}, Le), {
4121
+ set: _s
4122
+ }), Ge = (e) => {
4123
+ const t = /* @__PURE__ */ Object.create(null);
4124
+ return (n) => {
4125
+ const i = JSON.stringify(n);
4126
+ return i in t ? t[i] : t[i] = e(n);
4127
+ };
4128
+ };
4129
+ var Es = Object.defineProperty, Ne = Object.getOwnPropertySymbols, Vr = Object.prototype.hasOwnProperty, Xr = Object.prototype.propertyIsEnumerable, Yt = (e, t, r) => t in e ? Es(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mt = (e, t) => {
4130
+ for (var r in t || (t = {}))
4131
+ Vr.call(t, r) && Yt(e, r, t[r]);
4132
+ if (Ne)
4133
+ for (var r of Ne(t))
4134
+ Xr.call(t, r) && Yt(e, r, t[r]);
4135
+ return e;
4136
+ }, ge = (e, t) => {
4137
+ var r = {};
4138
+ for (var n in e)
4139
+ Vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4140
+ if (e != null && Ne)
4141
+ for (var n of Ne(e))
4142
+ t.indexOf(n) < 0 && Xr.call(e, n) && (r[n] = e[n]);
4143
+ return r;
4144
+ };
4145
+ const Ee = (e, t) => {
4146
+ const { formats: r } = he();
4147
+ if (e in r && t in r[e])
4148
+ return r[e][t];
4149
+ throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4150
+ }, xs = Ge(
4151
+ (e) => {
4152
+ var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
4153
+ if (r == null)
4154
+ throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4155
+ return n && (i = Ee("number", n)), new Intl.NumberFormat(r, i);
4156
+ }
4157
+ ), ws = Ge(
4158
+ (e) => {
4159
+ var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
4160
+ if (r == null)
4161
+ throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4162
+ return n ? i = Ee("date", n) : Object.keys(i).length === 0 && (i = Ee("date", "short")), new Intl.DateTimeFormat(r, i);
4163
+ }
4164
+ ), Cs = Ge(
4165
+ (e) => {
4166
+ var t = e, { locale: r, format: n } = t, i = ge(t, ["locale", "format"]);
4167
+ if (r == null)
4168
+ throw new Error(
4169
+ '[svelte-i18n] A "locale" must be set to format time values'
4170
+ );
4171
+ return n ? i = Ee("time", n) : Object.keys(i).length === 0 && (i = Ee("time", "short")), new Intl.DateTimeFormat(r, i);
4172
+ }
4173
+ ), Ss = (e = {}) => {
4174
+ var t = e, {
4175
+ locale: r = ee()
4176
+ } = t, n = ge(t, [
4177
+ "locale"
4178
+ ]);
4179
+ return xs(mt({ locale: r }, n));
4180
+ }, Hs = (e = {}) => {
4181
+ var t = e, {
4182
+ locale: r = ee()
4183
+ } = t, n = ge(t, [
4184
+ "locale"
4185
+ ]);
4186
+ return ws(mt({ locale: r }, n));
4187
+ }, Ts = (e = {}) => {
4188
+ var t = e, {
4189
+ locale: r = ee()
4190
+ } = t, n = ge(t, [
4191
+ "locale"
4192
+ ]);
4193
+ return Cs(mt({ locale: r }, n));
4194
+ }, As = Ge(
4195
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4196
+ (e, t = ee()) => new ts(e, t, he().formats, {
4197
+ ignoreTag: he().ignoreTag
4198
+ })
4199
+ ), Is = (e, t = {}) => {
4200
+ var r, n, i, s;
4201
+ let o = t;
4202
+ typeof e == "object" && (o = e, e = o.id);
4203
+ const {
4204
+ values: a,
4205
+ locale: l = ee(),
4206
+ default: u
4207
+ } = o;
4208
+ if (l == null)
4209
+ throw new Error(
4210
+ "[svelte-i18n] Cannot format a message without first setting the initial locale."
4211
+ );
4212
+ let h = Ur(e, l);
4213
+ if (!h)
4214
+ h = (s = (i = (n = (r = he()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4215
+ else if (typeof h != "string")
4216
+ return console.warn(
4217
+ `[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.`
4218
+ ), h;
4219
+ if (!a)
4220
+ return h;
4221
+ let g = h;
4222
+ try {
4223
+ g = As(h, l).format(a);
4224
+ } catch (f) {
4225
+ f instanceof Error && console.warn(
4226
+ `[svelte-i18n] Message "${e}" has syntax error:`,
4227
+ f.message
4228
+ );
4229
+ }
4230
+ return g;
4231
+ }, Bs = (e, t) => Ts(t).format(e), Ps = (e, t) => Hs(t).format(e), Ms = (e, t) => Ss(t).format(e), Os = (e, t = ee()) => Ur(e, t);
4232
+ ce([Z, fe], () => Is);
4233
+ ce([Z], () => Bs);
4234
+ ce([Z], () => Ps);
4235
+ ce([Z], () => Ms);
4236
+ ce([Z, fe], () => Os);
4237
+ window.emWidgets = { topic: Zn };
4238
+ const Ls = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4239
+ function Ns({ withLocale: e, translations: t }) {
4240
+ Z.subscribe((r) => {
4241
+ r == null && (fe.set(t), Z.set(e));
4242
+ });
4243
+ }
4244
+ function Qt(e, t) {
4245
+ kr(e, t);
4246
+ }
4247
+ function Fs(e) {
4248
+ Z.set(e);
4249
+ }
4250
+ const qt = {
4251
+ en: {
4252
+ login: "Login",
4253
+ register: "Register",
4254
+ deposit: "Deposit"
4255
+ },
4256
+ "zh-hk": {
4257
+ login: "登錄",
4258
+ register: "登記",
4259
+ deposit: "訂金"
4260
+ },
4261
+ fr: {
4262
+ login: "Connexion",
4263
+ register: "Registre",
4264
+ deposit: "Dépôt"
4265
+ },
4266
+ tr: {
4267
+ login: "Giriş",
4268
+ register: "Kayıt",
4269
+ deposit: "Para Yatır"
4270
+ },
4271
+ ro: {
4272
+ login: "Autentificare",
4273
+ register: "Inregistrare",
4274
+ deposit: "Depozit"
4275
+ },
4276
+ es: {
4277
+ login: "Iniciar sesión",
4278
+ register: "Regístrate",
4279
+ deposit: "Deposita"
4280
+ },
4281
+ pt: {
4282
+ login: "Entrar",
4283
+ register: "Registro",
4284
+ deposit: "Depósito"
4285
+ },
4286
+ hr: {
4287
+ login: "Prijava",
4288
+ register: "Registracija",
4289
+ deposit: "Uplata"
4290
+ },
4291
+ "pt-br": {
4292
+ login: "Entrem",
4293
+ register: "Registro",
4294
+ deposit: "Depósito"
4295
+ },
4296
+ "es-mx": {
4297
+ login: "Entrar",
4298
+ register: "Registro",
4299
+ deposit: "Depósito"
4300
+ }
4301
+ };
4302
+ function Rs(e) {
4303
+ vn(e, "svelte-1n5gh1", '.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1,.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1::before,.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{background:-webkit-linear-gradient(to left, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));background:linear-gradient(to left, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{background:transparent}.CarouselContainer.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{padding:0}.CarouselContainer.svelte-1n5gh1 ul.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{align-items:center}.CarouselContainer.svelte-1n5gh1 ul.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1::-webkit-scrollbar{display:none}.CarouselContainer.svelte-1n5gh1 ul li.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{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.svelte-1n5gh1 ul li.svelte-1n5gh1>a.svelte-1n5gh1.svelte-1n5gh1{position:relative}.CarouselContainer.svelte-1n5gh1 ul li.SecondaryMenu.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1:hover,.CarouselContainer.svelte-1n5gh1 ul li.SecondaryMenu.active.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1,.CarouselContainer.svelte-1n5gh1 ul li.SecondaryMenu.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1:focus,.CarouselContainer.svelte-1n5gh1 ul li.SecondaryMenu.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1:focus-within{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-background, #07072A));cursor:pointer}.CarouselContainer.svelte-1n5gh1 ul li.svelte-1n5gh1>a.svelte-1n5gh1.svelte-1n5gh1{position:relative}.CarouselContainer.svelte-1n5gh1 ul li.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1:hover,.CarouselContainer.svelte-1n5gh1 ul.svelte-1n5gh1>li.svelte-1n5gh1>a.svelte-1n5gh1:hover,.CarouselContainer.svelte-1n5gh1 ul li.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1:focus,.CarouselContainer.svelte-1n5gh1 ul.svelte-1n5gh1>li.svelte-1n5gh1>a.svelte-1n5gh1:focus{z-index:105}.CarouselContainer.svelte-1n5gh1 .CarouselItems li.svelte-1n5gh1:hover>ul.svelte-1n5gh1.svelte-1n5gh1{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer.svelte-1n5gh1 .CarouselItems li.svelte-1n5gh1:focus-within>ul.svelte-1n5gh1.svelte-1n5gh1{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer.svelte-1n5gh1 .CarouselItems ul ul.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer.svelte-1n5gh1 .CarouselItems li li:hover ul.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer.svelte-1n5gh1 .CarouselItems li li:focus-within ul.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer.svelte-1n5gh1 .CarouselLeftArrow.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1,.CarouselContainer.svelte-1n5gh1 .CarouselRightArrow.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emfe-w-categories-arrows-bg, var(--emfe-w-color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer.svelte-1n5gh1 .CarouselLeftArrow svg.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1,.CarouselContainer.svelte-1n5gh1 .CarouselRightArrow svg.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{width:100%;max-width:39px;stroke:var(--emfe-w-categories-arrows, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainer.svelte-1n5gh1 ul.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{margin:0;padding:0;list-style:none}.CarouselContainer.svelte-1n5gh1 .CarouselNavWrap.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer.svelte-1n5gh1 .CarouselNavWrap.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1::-webkit-scrollbar{display:none}.CarouselContainer.svelte-1n5gh1 .CarouselItems.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{display:table;width:100%;text-align:center}.CarouselContainer.svelte-1n5gh1 .CarouselItems li.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer.svelte-1n5gh1 .CarouselItems li.svelte-1n5gh1>a.svelte-1n5gh1.svelte-1n5gh1{position:relative}.CarouselContainer.svelte-1n5gh1 .CarouselItems li li.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{display:block}.CarouselContainer.svelte-1n5gh1 .CarouselItems button.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{background:none;border:none;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer.svelte-1n5gh1 .CarouselItems a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{display:block;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer.svelte-1n5gh1 .CarouselItems.SecondaryMenu li.svelte-1n5gh1:hover>a.svelte-1n5gh1.svelte-1n5gh1,.CarouselContainer.svelte-1n5gh1 .CarouselItems.SecondaryMenu a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1:hover,.CarouselContainer.svelte-1n5gh1 .CarouselItems.SecondaryMenu li.svelte-1n5gh1:focus>a.svelte-1n5gh1.svelte-1n5gh1,.CarouselContainer.svelte-1n5gh1 .CarouselItems.SecondaryMenu a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1:focus{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-background, #07072A))}.CarouselContainer.svelte-1n5gh1 .CarouselItems ul.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));background:linear-gradient(var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)))}.CarouselContainer.svelte-1n5gh1 .CarouselItems .TouchOnly.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{display:none;left:-10px}.CarouselContainer.svelte-1n5gh1 .touch-device .CarouselItems .TouchOnly.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{display:inline-block}.CarouselContainer.svelte-1n5gh1 .touch-device .CarouselItems .TouchOnly a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainer.svelte-1n5gh1 .isScrolling .CarouselItems ul.DropDown.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{left:-999em;opacity:0}.CarouselContainer.svelte-1n5gh1 .SubDropDown.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1:hover,.CarouselContainer.svelte-1n5gh1 .SubDropDown.active.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{color:var(--emfe-w-categories-contrast, var(--emfe-w-color-contrast, #07072A));background:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainerHeaderMain.svelte-1n5gh1 .CarouselItems .CarouselItem:hover a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1,.CarouselContainerHeaderMain.svelte-1n5gh1 .CarouselItems .CarouselItem.active a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1,.CarouselContainerHeaderMain.svelte-1n5gh1 .CarouselItems .CarouselItem:focus a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1,.CarouselContainerHeaderMain.svelte-1n5gh1 .CarouselItems .CarouselItem:focus-within a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{border-bottom:1px solid var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C))}.CarouselContainerHeaderMain.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain.svelte-1n5gh1 .CarouselLeftArrow.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1,.CarouselContainerHeaderMain.svelte-1n5gh1 .CarouselRightArrow.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain.svelte-1n5gh1 .CarouselItem a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none}.CarouselItems.svelte-1n5gh1 li a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1:first-child:not(:last-child){padding-right:20px}.CarouselItems.svelte-1n5gh1 li a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1: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(--emfe-w-color-white, #FFFFFF)}.CarouselItems.svelte-1n5gh1>li.svelte-1n5gh1>a.svelte-1n5gh1.svelte-1n5gh1:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emfe-w-color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems.svelte-1n5gh1 li:hover a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems.svelte-1n5gh1 li:focus-within a.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems.svelte-1n5gh1>li.svelte-1n5gh1:hover>a.svelte-1n5gh1.svelte-1n5gh1:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems.svelte-1n5gh1>li.svelte-1n5gh1:focus-within>a.svelte-1n5gh1.svelte-1n5gh1:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain.svelte-1n5gh1 .CarouselLeftArrow.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1,.CarouselContainerHeaderMain.svelte-1n5gh1 .CarouselRightArrow.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{display:flex}}.CategoryIconImg.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{height:20px;margin:0 auto;display:block}.DisplayNone.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1.svelte-1n5gh1{display:none}');
4304
+ }
4305
+ function Jt(e, t, r) {
4306
+ const n = e.slice();
4307
+ return n[50] = t[r], n[52] = r, n;
4308
+ }
4309
+ function Kt(e, t, r) {
4310
+ const n = e.slice();
4311
+ return n[53] = t[r], n;
4312
+ }
4313
+ function er(e, t, r) {
4314
+ const n = e.slice();
4315
+ return n[56] = t[r], n[58] = r, n;
4316
+ }
4317
+ function tr(e) {
4318
+ let t = [], r = /* @__PURE__ */ new Map(), n, i = oe(
4319
+ /*sliderdata*/
4320
+ e[9]
4321
+ );
4322
+ const s = (o) => (
4323
+ /*category*/
4324
+ o[50].id
4325
+ );
4326
+ for (let o = 0; o < i.length; o += 1) {
4327
+ let a = Jt(e, i, o), l = s(a);
4328
+ r.set(l, t[o] = ar(l, a));
4329
+ }
4330
+ return {
4331
+ c() {
4332
+ for (let o = 0; o < t.length; o += 1)
4333
+ t[o].c();
4334
+ n = be();
4335
+ },
4336
+ m(o, a) {
4337
+ for (let l = 0; l < t.length; l += 1)
4338
+ t[l] && t[l].m(o, a);
4339
+ U(o, n, a);
4340
+ },
4341
+ p(o, a) {
4342
+ a[0] & /*activeindex, sliderdata, location, handleClick, subGroupsData, activeIndex, activeSubIndex, prevSubIndex, showsubgroups, itemsActive, categoriesicon, handleSrc*/
4343
+ 77775 && (i = oe(
4344
+ /*sliderdata*/
4345
+ o[9]
4346
+ ), t = fr(t, a, s, 1, o, i, r, n.parentNode, cr, ar, n, Jt));
4347
+ },
4348
+ d(o) {
4349
+ o && R(n);
4350
+ for (let a = 0; a < t.length; a += 1)
4351
+ t[a].d(o);
4352
+ }
4353
+ };
4354
+ }
4355
+ function Ds(e) {
4356
+ let t, r = (
4357
+ /*category*/
4358
+ e[50].name + ""
4359
+ ), n;
4360
+ return {
4361
+ c() {
4362
+ t = P("button"), n = xe(r), C(t, "class", "CategoryButton svelte-1n5gh1");
4363
+ },
4364
+ m(i, s) {
4365
+ U(i, t, s), I(t, n);
4366
+ },
4367
+ p(i, s) {
4368
+ s[0] & /*sliderdata*/
4369
+ 512 && r !== (r = /*category*/
4370
+ i[50].name + "") && gt(n, r);
4371
+ },
4372
+ d(i) {
4373
+ i && R(t);
4374
+ }
4375
+ };
4376
+ }
4377
+ function Us(e) {
4378
+ let t, r = (
4379
+ /*category*/
4380
+ e[50].label + ""
4381
+ ), n, i;
4382
+ return {
4383
+ c() {
4384
+ t = P("a"), n = xe(r), C(t, "href", i = /*category*/
4385
+ e[50].path), C(t, "class", "svelte-1n5gh1");
4386
+ },
4387
+ m(s, o) {
4388
+ U(s, t, o), I(t, n);
4389
+ },
4390
+ p(s, o) {
4391
+ o[0] & /*sliderdata*/
4392
+ 512 && r !== (r = /*category*/
4393
+ s[50].label + "") && gt(n, r), o[0] & /*sliderdata*/
4394
+ 512 && i !== (i = /*category*/
4395
+ s[50].path) && C(t, "href", i);
4396
+ },
4397
+ d(s) {
4398
+ s && R(t);
4399
+ }
4400
+ };
4401
+ }
4402
+ function rr(e) {
4403
+ let t, r = (
4404
+ /*subGroupsData*/
4405
+ e[10].length > 0 && /*showsubgroups*/
4406
+ e[2] == "true" && nr(e)
4407
+ );
4408
+ return {
4409
+ c() {
4410
+ r && r.c(), t = be();
4411
+ },
4412
+ m(n, i) {
4413
+ r && r.m(n, i), U(n, t, i);
4414
+ },
4415
+ p(n, i) {
4416
+ /*subGroupsData*/
4417
+ n[10].length > 0 && /*showsubgroups*/
4418
+ n[2] == "true" ? r ? r.p(n, i) : (r = nr(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
4419
+ },
4420
+ d(n) {
4421
+ n && R(t), r && r.d(n);
4422
+ }
4423
+ };
4424
+ }
4425
+ function nr(e) {
4426
+ let t, r = oe(
4427
+ /*subGroupsData*/
4428
+ e[10]
4429
+ ), n = [];
4430
+ for (let i = 0; i < r.length; i += 1)
4431
+ n[i] = or(Kt(e, r, i));
4432
+ return {
4433
+ c() {
4434
+ t = P("ul");
4435
+ for (let i = 0; i < n.length; i += 1)
4436
+ n[i].c();
4437
+ C(t, "class", "DropDown svelte-1n5gh1");
4438
+ },
4439
+ m(i, s) {
4440
+ U(i, t, s);
4441
+ for (let o = 0; o < n.length; o += 1)
4442
+ n[o] && n[o].m(t, null);
4443
+ },
4444
+ p(i, s) {
4445
+ if (s[0] & /*subGroupsData, handleClick, sliderdata, activeIndex, activeSubIndex, prevSubIndex*/
4446
+ 10176) {
4447
+ r = oe(
4448
+ /*subGroupsData*/
4449
+ i[10]
4450
+ );
4451
+ let o;
4452
+ for (o = 0; o < r.length; o += 1) {
4453
+ const a = Kt(i, r, o);
4454
+ n[o] ? n[o].p(a, s) : (n[o] = or(a), n[o].c(), n[o].m(t, null));
4455
+ }
4456
+ for (; o < n.length; o += 1)
4457
+ n[o].d(1);
4458
+ n.length = r.length;
4459
+ }
4460
+ },
4461
+ d(i) {
4462
+ i && R(t), bn(n, i);
4463
+ }
4464
+ };
4465
+ }
4466
+ function ir(e) {
4467
+ var h;
4468
+ let t, r, n = (
4469
+ /*subGroupItem*/
4470
+ ((h = e[56]) == null ? void 0 : h.name) + ""
4471
+ ), i, s, o, a, l;
4472
+ function u(...g) {
4473
+ return (
4474
+ /*click_handler_1*/
4475
+ e[32](
4476
+ /*category*/
4477
+ e[50],
4478
+ /*index*/
4479
+ e[52],
4480
+ /*subGroupItem*/
4481
+ e[56],
4482
+ /*subindex*/
4483
+ e[58],
4484
+ ...g
4485
+ )
4486
+ );
4487
+ }
4488
+ return {
4489
+ c() {
4490
+ t = P("li"), r = P("a"), i = xe(n), o = J(), C(r, "class", s = "SubDropDown " + /*index*/
4491
+ (e[52] == /*activeIndex*/
4492
+ e[6] && /*activeSubIndex*/
4493
+ (e[7] == /*subindex*/
4494
+ e[58] || /*prevSubIndex*/
4495
+ e[8] == /*subindex*/
4496
+ e[58]) ? "active" : "") + " svelte-1n5gh1"), C(t, "class", "svelte-1n5gh1");
4497
+ },
4498
+ m(g, f) {
4499
+ U(g, t, f), I(t, r), I(r, i), I(t, o), a || (l = Oe(t, "click", u), a = !0);
4500
+ },
4501
+ p(g, f) {
4502
+ var d;
4503
+ e = g, f[0] & /*subGroupsData*/
4504
+ 1024 && n !== (n = /*subGroupItem*/
4505
+ ((d = e[56]) == null ? void 0 : d.name) + "") && gt(i, n), f[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
4506
+ 1984 && s !== (s = "SubDropDown " + /*index*/
4507
+ (e[52] == /*activeIndex*/
4508
+ e[6] && /*activeSubIndex*/
4509
+ (e[7] == /*subindex*/
4510
+ e[58] || /*prevSubIndex*/
4511
+ e[8] == /*subindex*/
4512
+ e[58]) ? "active" : "") + " svelte-1n5gh1") && C(r, "class", s);
4513
+ },
4514
+ d(g) {
4515
+ g && R(t), a = !1, l();
4516
+ }
4517
+ };
4518
+ }
4519
+ function sr(e, t) {
4520
+ let r, n, i = (
4521
+ /*index*/
4522
+ t[52] == /*subGroup*/
4523
+ t[53].index && ir(t)
4524
+ );
4525
+ return {
4526
+ key: e,
4527
+ first: null,
4528
+ c() {
4529
+ r = be(), i && i.c(), n = be(), this.first = r;
4530
+ },
4531
+ m(s, o) {
4532
+ U(s, r, o), i && i.m(s, o), U(s, n, o);
4533
+ },
4534
+ p(s, o) {
4535
+ t = s, /*index*/
4536
+ t[52] == /*subGroup*/
4537
+ t[53].index ? i ? i.p(t, o) : (i = ir(t), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
4538
+ },
4539
+ d(s) {
4540
+ s && (R(r), R(n)), i && i.d(s);
4541
+ }
4542
+ };
4543
+ }
4544
+ function or(e) {
4545
+ let t = [], r = /* @__PURE__ */ new Map(), n, i = oe(
4546
+ /*subGroup*/
4547
+ e[53].items
4548
+ );
4549
+ const s = (o) => (
4550
+ /*subGroupItem*/
4551
+ o[56].id
4552
+ );
4553
+ for (let o = 0; o < i.length; o += 1) {
4554
+ let a = er(e, i, o), l = s(a);
4555
+ r.set(l, t[o] = sr(l, a));
4556
+ }
4557
+ return {
4558
+ c() {
4559
+ for (let o = 0; o < t.length; o += 1)
4560
+ t[o].c();
4561
+ n = be();
4562
+ },
4563
+ m(o, a) {
4564
+ for (let l = 0; l < t.length; l += 1)
4565
+ t[l] && t[l].m(o, a);
4566
+ U(o, n, a);
4567
+ },
4568
+ p(o, a) {
4569
+ a[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
4570
+ 10176 && (i = oe(
4571
+ /*subGroup*/
4572
+ o[53].items
4573
+ ), t = fr(t, a, s, 1, o, i, r, n.parentNode, cr, sr, n, er));
4574
+ },
4575
+ d(o) {
4576
+ o && R(n);
4577
+ for (let a = 0; a < t.length; a += 1)
4578
+ t[a].d(o);
4579
+ }
4580
+ };
4581
+ }
4582
+ function ar(e, t) {
4583
+ let r, n, i, s, o, a, l, u, h, g, f;
4584
+ function d(_, w) {
4585
+ return (
4586
+ /*location*/
4587
+ _[0] === "headerMain" ? Us : Ds
4588
+ );
4589
+ }
4590
+ let m = d(t), v = m(t), p = (
4591
+ /*itemsActive*/
4592
+ t[11][
4593
+ /*index*/
4594
+ t[52]
4595
+ ] == !0 && rr(t)
4596
+ );
4597
+ function H(..._) {
4598
+ return (
4599
+ /*click_handler_2*/
4600
+ t[33](
4601
+ /*category*/
4602
+ t[50],
4603
+ /*index*/
4604
+ t[52],
4605
+ ..._
4606
+ )
4607
+ );
4608
+ }
4609
+ return {
4610
+ key: e,
4611
+ first: null,
4612
+ c() {
4613
+ var _, w;
4614
+ r = P("li"), n = P("div"), i = P("img"), a = J(), v.c(), l = J(), p && p.c(), u = J(), C(i, "class", s = "CategoryIconImg " + /*categoriesicon*/
4615
+ (t[3] === "true" ? "" : "DisplayNone") + " svelte-1n5gh1"), Tt(i.src, o = /*handleSrc*/
4616
+ t[16](
4617
+ /*category*/
4618
+ t[50]
4619
+ )) || C(i, "src", o), C(n, "class", "CategoryIcon svelte-1n5gh1"), C(r, "class", h = "CarouselItem " + /*activeindex*/
4620
+ (((_ = t[1]) == null ? void 0 : _.toString().indexOf("$")) > -1 ? (
4621
+ /*activeindex*/
4622
+ ((w = t[1]) == null ? void 0 : w.split("$").pop()) == /*category*/
4623
+ t[50].id.split("$").pop() ? "active" : ""
4624
+ ) : (
4625
+ /*activeindex*/
4626
+ t[1] == /*category*/
4627
+ t[50].id ? "active" : ""
4628
+ )) + " " + /*location*/
4629
+ (t[0] == "headerMain" ? "" : "SecondaryMenu") + " svelte-1n5gh1"), C(r, "part", "CarouselItem"), this.first = r;
4630
+ },
4631
+ m(_, w) {
4632
+ U(_, r, w), I(r, n), I(n, i), I(r, a), v.m(r, null), I(r, l), p && p.m(r, null), I(r, u), g || (f = Oe(r, "click", H), g = !0);
4633
+ },
4634
+ p(_, w) {
4635
+ var L, N;
4636
+ t = _, w[0] & /*categoriesicon*/
4637
+ 8 && s !== (s = "CategoryIconImg " + /*categoriesicon*/
4638
+ (t[3] === "true" ? "" : "DisplayNone") + " svelte-1n5gh1") && C(i, "class", s), w[0] & /*sliderdata*/
4639
+ 512 && !Tt(i.src, o = /*handleSrc*/
4640
+ t[16](
4641
+ /*category*/
4642
+ t[50]
4643
+ )) && C(i, "src", o), m === (m = d(t)) && v ? v.p(t, w) : (v.d(1), v = m(t), v && (v.c(), v.m(r, l))), /*itemsActive*/
4644
+ t[11][
4645
+ /*index*/
4646
+ t[52]
4647
+ ] == !0 ? p ? p.p(t, w) : (p = rr(t), p.c(), p.m(r, u)) : p && (p.d(1), p = null), w[0] & /*activeindex, sliderdata, location*/
4648
+ 515 && h !== (h = "CarouselItem " + /*activeindex*/
4649
+ (((L = t[1]) == null ? void 0 : L.toString().indexOf("$")) > -1 ? (
4650
+ /*activeindex*/
4651
+ ((N = t[1]) == null ? void 0 : N.split("$").pop()) == /*category*/
4652
+ t[50].id.split("$").pop() ? "active" : ""
4653
+ ) : (
4654
+ /*activeindex*/
4655
+ t[1] == /*category*/
4656
+ t[50].id ? "active" : ""
4657
+ )) + " " + /*location*/
4658
+ (t[0] == "headerMain" ? "" : "SecondaryMenu") + " svelte-1n5gh1") && C(r, "class", h);
4659
+ },
4660
+ d(_) {
4661
+ _ && R(r), v.d(), p && p.d(), g = !1, f();
4662
+ }
4663
+ };
4664
+ }
4665
+ function Gs(e) {
4666
+ let t, r, n, i, s, o, a, l, u, h, g, f, d, m, v, p = (
4667
+ /*sliderdata*/
4668
+ e[9].length > 0 && tr(e)
4669
+ );
4670
+ return {
4671
+ c() {
4672
+ t = P("div"), r = P("div"), n = P("div"), n.innerHTML = '<svg fill="none" stroke="var(--emfe-w-categories-arrows, var( --emfe-w-color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="svelte-1n5gh1"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" class="svelte-1n5gh1"></path></svg>', i = J(), s = P("div"), o = P("ul"), a = P("li"), a.innerHTML = '<a href="#CarouselNav" class="svelte-1n5gh1">Close Subs</a>', l = J(), p && p.c(), u = J(), h = P("div"), h.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="svelte-1n5gh1"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" class="svelte-1n5gh1"></path></svg>', C(n, "class", "CarouselLeftArrow svelte-1n5gh1"), C(a, "class", "TouchOnly svelte-1n5gh1"), C(o, "id", "CarouselNav"), C(o, "class", "CarouselItems svelte-1n5gh1"), C(s, "class", "CarouselNavWrap svelte-1n5gh1"), C(h, "class", "CarouselRightArrow svelte-1n5gh1"), C(r, "class", g = At(`CarouselContainer CarouselContainerMobile ${/*location*/
4673
+ e[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) + " svelte-1n5gh1"), C(r, "style", f = /*location*/
4674
+ e[0] === "headerMain" ? "max-width: auto" : void 0), C(t, "class", d = "CarouselWrapper " + /*location*/
4675
+ (e[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "") + " svelte-1n5gh1");
4676
+ },
4677
+ m(H, _) {
4678
+ U(H, t, _), I(t, r), I(r, n), I(r, i), I(r, s), I(s, o), I(o, a), I(o, l), p && p.m(o, null), e[34](o), e[35](s), I(r, u), I(r, h), e[37](t), m || (v = [
4679
+ Oe(
4680
+ n,
4681
+ "click",
4682
+ /*click_handler*/
4683
+ e[31]
4684
+ ),
4685
+ Oe(
4686
+ h,
4687
+ "click",
4688
+ /*click_handler_3*/
4689
+ e[36]
4690
+ )
4691
+ ], m = !0);
4692
+ },
4693
+ p(H, _) {
4694
+ /*sliderdata*/
4695
+ H[9].length > 0 ? p ? p.p(H, _) : (p = tr(H), p.c(), p.m(o, null)) : p && (p.d(1), p = null), _[0] & /*location*/
4696
+ 1 && g !== (g = At(`CarouselContainer CarouselContainerMobile ${/*location*/
4697
+ H[0] === "headerMain" ? "CarouselContainerHeaderMain" : ""}`) + " svelte-1n5gh1") && C(r, "class", g), _[0] & /*location*/
4698
+ 1 && f !== (f = /*location*/
4699
+ H[0] === "headerMain" ? "max-width: auto" : void 0) && C(r, "style", f), _[0] & /*location*/
4700
+ 1 && d !== (d = "CarouselWrapper " + /*location*/
4701
+ (H[0] === "headerMain" ? "CarouselWrapperHeaderMain" : "") + " svelte-1n5gh1") && C(t, "class", d);
4702
+ },
4703
+ i: G,
4704
+ o: G,
4705
+ d(H) {
4706
+ H && R(t), p && p.d(), e[34](null), e[35](null), e[37](null), m = !1, K(v);
4707
+ }
4708
+ };
4709
+ }
4710
+ function ks(e, t, r) {
4711
+ let { endpoint: n = "" } = t, { datasource: i = "" } = t, { onclickeventname: s = "defaultEvent" } = t, { actionevent: o = "defaultEvent" } = t, { favoritesnumber: a = "0" } = t, { location: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { identity: g = "" } = t, { translationurl: f = "" } = t, { isprimarymenu: d = !1 } = t, { issecondarymenu: m = !1 } = t, { lang: v = "" } = t, { activeindex: p = "0" } = t, { showsubgroups: H = "false" } = t, { categoriesicon: _ = "false" } = t, { lobbyiconimage: w = "" } = t, { mygamesiconimage: L = "" } = t;
4712
+ Ns({ withLocale: "en", translations: {} });
4713
+ const N = () => {
4714
+ fetch(f).then((x) => x.json()).then((x) => {
4715
+ Object.keys(x).forEach((B) => {
4716
+ Qt(B, x[B]);
4717
+ });
4718
+ }).catch((x) => {
4719
+ console.log(x);
4720
+ });
4721
+ };
4722
+ Object.keys(qt).forEach((c) => {
4723
+ Qt(c, qt[c]);
4724
+ });
4725
+ let k = window.navigator.userAgent;
4726
+ Ls(k);
4727
+ let S, M, O, X, Y, de = [], we = [], Ce = [], $, ke = (c, x, B, Q, W) => {
4728
+ var q;
4729
+ if (!(c.subGroups && Q === null)) {
4730
+ if (Se(), r(6, M = x), r(6, M), W != "secondary") {
4731
+ window.postMessage(
4732
+ {
4733
+ type: o == "CategoryChange" ? "CategoryChange" : "NavigateTo",
4734
+ buzz: "1",
4735
+ itemId: c.id,
4736
+ index: x,
4737
+ item: c,
4738
+ path: c.path,
4739
+ externalLink: c.externalLink || !1,
4740
+ target: ((q = c.attrs) == null ? void 0 : q.target) || null
4741
+ },
4742
+ window.location.href
4743
+ ), r(7, O = null), r(8, X = null);
4744
+ return;
4745
+ }
4746
+ r(7, O = Q), r(7, O), r(8, X = O), window.postMessage(
4747
+ {
4748
+ type: o,
4749
+ itemId: B.id,
4750
+ subIndex: Q,
4751
+ subItem: B
4752
+ },
4753
+ window.location.href
4754
+ );
4755
+ }
4756
+ }, bt = () => {
4757
+ $.scrollBy({ left: -250, behavior: "smooth" });
4758
+ }, yt = () => {
4759
+ $.scrollBy({ left: 250, behavior: "smooth" });
4760
+ };
4761
+ const _t = (c) => {
4762
+ c.data.type == "SliderData" && c.data.identity == g && (r(9, de = c.data.data), r(11, Ce = new Array(de.length).fill(!1)), H == "true" && Zr()), c.data.type == "GoToHomepage" && de.forEach((x, B) => {
4763
+ x.path.endsWith("/casino") && (r(6, M = B), r(6, M));
4764
+ });
4765
+ }, Wr = () => {
4766
+ Fs(v);
4767
+ }, zr = (c, x, B) => {
4768
+ if (l == "secondaryMenu" && n && i && v && c.id) {
4769
+ let Q = new URL(`${n}/v1/casino/groups/${i}/${c.id}/subGroups?language=${v}`);
4770
+ fetch(Q.href).then((W) => W.json()).then((W) => {
4771
+ W.index = x, r(10, we = we.concat(W)), H == "false" && window.postMessage(
4772
+ {
4773
+ type: o,
4774
+ itemId: c.id,
4775
+ index: x,
4776
+ item: c
4777
+ },
4778
+ window.location.href
4779
+ );
4780
+ const q = [];
4781
+ we.map((on) => (on.items.forEach((Et) => {
4782
+ q.find((an) => Et.id == an) || q.push(Et.id);
4783
+ }), q.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: q }, window.location.href);
4784
+ }).then(() => {
4785
+ S.querySelectorAll(".DropDown") && Se();
4786
+ });
4787
+ }
4788
+ l == "headerMain" && window.postMessage({ type: o, item: c }, window.location.href);
4789
+ }, Se = () => {
4790
+ const c = S.querySelectorAll(".DropDown");
4791
+ document.activeElement.blur(), $.classList.add("isScrolling");
4792
+ for (let x = 0; x < c.length; x++)
4793
+ c[x].style.transform = "translateX(-" + $.scrollLeft + "px)";
4794
+ $.classList.remove("isScrolling");
4795
+ }, Zr = () => {
4796
+ de.forEach((c, x) => {
4797
+ var B;
4798
+ ((B = c == null ? void 0 : c.subGroups) == null ? void 0 : B.count) > 0 && (r(11, Ce[x] = !0, Ce), zr(c, x));
4799
+ });
4800
+ }, Yr = () => {
4801
+ let c = document.createElement("style");
4802
+ c.innerHTML = u, Y.appendChild(c);
4803
+ }, Qr = () => {
4804
+ let c = document.createElement("style"), x = new URL(h);
4805
+ fetch(x.href).then((B) => B.text()).then((B) => {
4806
+ c.innerHTML = B, setTimeout(
4807
+ () => {
4808
+ Y.appendChild(c);
4809
+ },
4810
+ 1
4811
+ );
4812
+ });
4813
+ }, qr = (c) => {
4814
+ let x = "";
4815
+ return c.id === "LOBBY" ? x = w : c.id === "MYGAMES" && (x = L), c.icon || x;
4816
+ };
4817
+ xn(() => ("ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), window.addEventListener("message", _t, !1), setTimeout(
4818
+ () => {
4819
+ $.addEventListener("scroll", Se);
4820
+ },
4821
+ 500
4822
+ ), () => {
4823
+ window.removeEventListener("message", _t), S.removeEventListener("scroll", Se);
4824
+ }));
4825
+ const Jr = () => bt(), Kr = (c, x, B, Q, W) => {
4826
+ ke(c, x, B, Q, "secondary"), W.stopPropagation();
4827
+ }, en = (c, x, B) => {
4828
+ ke(c, x, null, null, "main"), B.preventDefault();
4829
+ };
4830
+ function tn(c) {
4831
+ me[c ? "unshift" : "push"](() => {
4832
+ S = c, r(5, S);
4833
+ });
4834
+ }
4835
+ function rn(c) {
4836
+ me[c ? "unshift" : "push"](() => {
4837
+ $ = c, r(12, $);
4838
+ });
4839
+ }
4840
+ const nn = () => yt();
4841
+ function sn(c) {
4842
+ me[c ? "unshift" : "push"](() => {
4843
+ Y = c, r(4, Y);
4844
+ });
4845
+ }
4846
+ return e.$$set = (c) => {
4847
+ "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, l = c.location), "clientstyling" in c && r(22, u = c.clientstyling), "clientstylingurl" in c && r(23, h = c.clientstylingurl), "identity" in c && r(24, g = c.identity), "translationurl" in c && r(25, f = c.translationurl), "isprimarymenu" in c && r(26, d = c.isprimarymenu), "issecondarymenu" in c && r(27, m = c.issecondarymenu), "lang" in c && r(28, v = c.lang), "activeindex" in c && r(1, p = c.activeindex), "showsubgroups" in c && r(2, H = c.showsubgroups), "categoriesicon" in c && r(3, _ = c.categoriesicon), "lobbyiconimage" in c && r(29, w = c.lobbyiconimage), "mygamesiconimage" in c && r(30, L = c.mygamesiconimage);
4848
+ }, e.$$.update = () => {
4849
+ e.$$.dirty[0] & /*activeindex*/
4850
+ 2, e.$$.dirty[0] & /*translationurl*/
4851
+ 33554432 && f && N(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4852
+ 4194320 && u && Y && Yr(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4853
+ 8388624 && h && Y && Qr(), e.$$.dirty[0] & /*lang*/
4854
+ 268435456 && v && Wr();
4855
+ }, [
4856
+ l,
4857
+ p,
4858
+ H,
4859
+ _,
4860
+ Y,
4861
+ S,
4862
+ M,
4863
+ O,
4864
+ X,
4865
+ de,
4866
+ we,
4867
+ Ce,
4868
+ $,
4869
+ ke,
4870
+ bt,
4871
+ yt,
4872
+ qr,
4873
+ n,
4874
+ i,
4875
+ s,
4876
+ o,
4877
+ a,
4878
+ u,
4879
+ h,
4880
+ g,
4881
+ f,
4882
+ d,
4883
+ m,
4884
+ v,
4885
+ w,
4886
+ L,
4887
+ Jr,
4888
+ Kr,
4889
+ en,
4890
+ tn,
4891
+ rn,
4892
+ nn,
4893
+ sn
4894
+ ];
4895
+ }
4896
+ class $s extends On {
4897
+ constructor(t) {
4898
+ super(), Pn(
4899
+ this,
4900
+ t,
4901
+ ks,
4902
+ Gs,
4903
+ ur,
4904
+ {
4905
+ endpoint: 17,
4906
+ datasource: 18,
4907
+ onclickeventname: 19,
4908
+ actionevent: 20,
4909
+ favoritesnumber: 21,
4910
+ location: 0,
4911
+ clientstyling: 22,
4912
+ clientstylingurl: 23,
4913
+ identity: 24,
4914
+ translationurl: 25,
4915
+ isprimarymenu: 26,
4916
+ issecondarymenu: 27,
4917
+ lang: 28,
4918
+ activeindex: 1,
4919
+ showsubgroups: 2,
4920
+ categoriesicon: 3,
4921
+ lobbyiconimage: 29,
4922
+ mygamesiconimage: 30
4923
+ },
4924
+ Rs,
4925
+ [-1, -1]
4926
+ );
4927
+ }
4928
+ get endpoint() {
4929
+ return this.$$.ctx[17];
4930
+ }
4931
+ set endpoint(t) {
4932
+ this.$$set({ endpoint: t }), A();
4933
+ }
4934
+ get datasource() {
4935
+ return this.$$.ctx[18];
4936
+ }
4937
+ set datasource(t) {
4938
+ this.$$set({ datasource: t }), A();
4939
+ }
4940
+ get onclickeventname() {
4941
+ return this.$$.ctx[19];
4942
+ }
4943
+ set onclickeventname(t) {
4944
+ this.$$set({ onclickeventname: t }), A();
4945
+ }
4946
+ get actionevent() {
4947
+ return this.$$.ctx[20];
4948
+ }
4949
+ set actionevent(t) {
4950
+ this.$$set({ actionevent: t }), A();
4951
+ }
4952
+ get favoritesnumber() {
4953
+ return this.$$.ctx[21];
4954
+ }
4955
+ set favoritesnumber(t) {
4956
+ this.$$set({ favoritesnumber: t }), A();
4957
+ }
4958
+ get location() {
4959
+ return this.$$.ctx[0];
4960
+ }
4961
+ set location(t) {
4962
+ this.$$set({ location: t }), A();
4963
+ }
4964
+ get clientstyling() {
4965
+ return this.$$.ctx[22];
4966
+ }
4967
+ set clientstyling(t) {
4968
+ this.$$set({ clientstyling: t }), A();
4969
+ }
4970
+ get clientstylingurl() {
4971
+ return this.$$.ctx[23];
4972
+ }
4973
+ set clientstylingurl(t) {
4974
+ this.$$set({ clientstylingurl: t }), A();
4975
+ }
4976
+ get identity() {
4977
+ return this.$$.ctx[24];
4978
+ }
4979
+ set identity(t) {
4980
+ this.$$set({ identity: t }), A();
4981
+ }
4982
+ get translationurl() {
4983
+ return this.$$.ctx[25];
4984
+ }
4985
+ set translationurl(t) {
4986
+ this.$$set({ translationurl: t }), A();
4987
+ }
4988
+ get isprimarymenu() {
4989
+ return this.$$.ctx[26];
4990
+ }
4991
+ set isprimarymenu(t) {
4992
+ this.$$set({ isprimarymenu: t }), A();
4993
+ }
4994
+ get issecondarymenu() {
4995
+ return this.$$.ctx[27];
4996
+ }
4997
+ set issecondarymenu(t) {
4998
+ this.$$set({ issecondarymenu: t }), A();
4999
+ }
5000
+ get lang() {
5001
+ return this.$$.ctx[28];
5002
+ }
5003
+ set lang(t) {
5004
+ this.$$set({ lang: t }), A();
5005
+ }
5006
+ get activeindex() {
5007
+ return this.$$.ctx[1];
5008
+ }
5009
+ set activeindex(t) {
5010
+ this.$$set({ activeindex: t }), A();
5011
+ }
5012
+ get showsubgroups() {
5013
+ return this.$$.ctx[2];
5014
+ }
5015
+ set showsubgroups(t) {
5016
+ this.$$set({ showsubgroups: t }), A();
5017
+ }
5018
+ get categoriesicon() {
5019
+ return this.$$.ctx[3];
5020
+ }
5021
+ set categoriesicon(t) {
5022
+ this.$$set({ categoriesicon: t }), A();
5023
+ }
5024
+ get lobbyiconimage() {
5025
+ return this.$$.ctx[29];
5026
+ }
5027
+ set lobbyiconimage(t) {
5028
+ this.$$set({ lobbyiconimage: t }), A();
5029
+ }
5030
+ get mygamesiconimage() {
5031
+ return this.$$.ctx[30];
5032
+ }
5033
+ set mygamesiconimage(t) {
5034
+ this.$$set({ mygamesiconimage: t }), A();
5035
+ }
5036
+ }
5037
+ Mn($s, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
5038
+ export {
5039
+ $s as default
5040
+ };