@everymatrix/casino-collections-providers 1.0.16 → 1.0.70

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