@everymatrix/casino-collections-providers 1.54.6 → 1.54.8

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