@everymatrix/casino-tournaments-thumbnail-controller 1.54.6 → 1.54.9

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