@everymatrix/player-panic-button 1.0.69 → 1.0.71

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