@everymatrix/casino-page-nd 1.44.0 → 1.45.2

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