@everymatrix/casino-jackpot-banner 1.44.0 → 1.45.2

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