@everymatrix/casino-page 1.44.0 → 1.45.0

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