@everymatrix/casino-page 1.87.25 → 1.87.27

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