@everymatrix/casino-tournaments-thumbnail-games 0.0.1

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