@everymatrix/casino-betslip-indicator 1.54.6 → 1.54.8

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