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