@everymatrix/casino-lobby-mini-games 0.1.0

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