@everymatrix/player-panic-button 1.44.0 → 1.45.2

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